wsemi 1.9.14 → 1.9.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/wsemi.umd.js +4 -4
- package/dist/wsemi.umd.js.map +1 -1
- package/docs/-_class.mjs.html +1 -1
- package/docs/-_const.mjs.html +1 -1
- package/docs/-_detector.mjs.html +1 -1
- package/docs/-_optNum.mjs.html +1 -1
- package/docs/ab2blob.mjs.html +1 -1
- package/docs/ab2u8arr.mjs.html +1 -1
- package/docs/addExcelWorksheetFromData.mjs.html +1 -1
- package/docs/addMonth.mjs.html +1 -1
- package/docs/aes2str.mjs.html +1 -1
- package/docs/alive.mjs.html +1 -1
- package/docs/arr2dt.mjs.html +1 -1
- package/docs/arrAccum.mjs.html +1 -1
- package/docs/arrAdd.mjs.html +1 -1
- package/docs/arrAt.mjs.html +1 -1
- package/docs/arrDiff.mjs.html +1 -1
- package/docs/arrFilterByKeywords.mjs.html +1 -1
- package/docs/arrFilterByNum.mjs.html +1 -1
- package/docs/arrFilterByPnum.mjs.html +1 -1
- package/docs/arrFilterByPnumAndToLog.mjs.html +1 -1
- package/docs/arrFind.mjs.html +1 -1
- package/docs/arrGroupByMaxmin.mjs.html +1 -1
- package/docs/arrHas.mjs.html +1 -1
- package/docs/arrInsert.mjs.html +1 -1
- package/docs/arrLookupByMaxmin.mjs.html +1 -1
- package/docs/arrMax.mjs.html +1 -1
- package/docs/arrMin.mjs.html +1 -1
- package/docs/arrMulti.mjs.html +1 -1
- package/docs/arrNorm.mjs.html +1 -1
- package/docs/arrProduct.mjs.html +1 -1
- package/docs/arrPull.mjs.html +1 -1
- package/docs/arrPullAt.mjs.html +1 -1
- package/docs/arrReduce.mjs.html +1 -1
- package/docs/arrReverse.mjs.html +1 -1
- package/docs/arrSep.mjs.html +1 -1
- package/docs/arrSort.mjs.html +1 -1
- package/docs/asind.mjs.html +1 -1
- package/docs/atan2d.mjs.html +1 -1
- package/docs/atand.mjs.html +1 -1
- package/docs/attstr.mjs.html +1 -1
- package/docs/b642obj.mjs.html +1 -1
- package/docs/b642str.mjs.html +1 -1
- package/docs/b642u16arr.mjs.html +1 -1
- package/docs/b642u8arr.mjs.html +1 -1
- package/docs/binstr.mjs.html +1 -1
- package/docs/blob2ab.mjs.html +1 -1
- package/docs/blob2b64.mjs.html +1 -1
- package/docs/blob2str.mjs.html +1 -1
- package/docs/blob2u8arr.mjs.html +1 -1
- package/docs/blobs2b64s.mjs.html +1 -1
- package/docs/blobs2u8arrs.mjs.html +1 -1
- package/docs/bodyLog.mjs.html +1 -1
- package/docs/browserView.mjs.html +1 -1
- package/docs/browserViewFromBlob.mjs.html +1 -1
- package/docs/browserViewFromText.mjs.html +1 -1
- package/docs/browserViewFromU8arr.mjs.html +1 -1
- package/docs/bs2u8arr.mjs.html +1 -1
- package/docs/bufRead.mjs.html +1 -1
- package/docs/bufReadDbl.mjs.html +1 -1
- package/docs/bufWrite.mjs.html +1 -1
- package/docs/bufWriteDbl.mjs.html +1 -1
- package/docs/cache.mjs.html +1 -1
- package/docs/cacheBd.mjs.html +1 -1
- package/docs/cacheSt.mjs.html +1 -1
- package/docs/cbol.mjs.html +1 -1
- package/docs/cdbl.mjs.html +1 -1
- package/docs/ceil.mjs.html +1 -1
- package/docs/cfilesize.mjs.html +1 -1
- package/docs/cfinancial.mjs.html +1 -1
- package/docs/cint.mjs.html +1 -1
- package/docs/clearXSS.mjs.html +1 -1
- package/docs/clearXSSDyn.mjs.html +1 -1
- package/docs/color.mjs.html +1 -1
- package/docs/composeToTree.mjs.html +1 -1
- package/docs/convertToTree.mjs.html +1 -1
- package/docs/copyStrToClipboard.mjs.html +1 -1
- package/docs/cosd.mjs.html +1 -1
- package/docs/cotd.mjs.html +1 -1
- package/docs/createExcelWorkbook.mjs.html +1 -1
- package/docs/cscd.mjs.html +1 -1
- package/docs/cstr.mjs.html +1 -1
- package/docs/day2cht.mjs.html +1 -1
- package/docs/debounce.mjs.html +1 -1
- package/docs/delay.mjs.html +1 -1
- package/docs/detectXSS.mjs.html +1 -1
- package/docs/detectXSSDyn.mjs.html +1 -1
- package/docs/dig.mjs.html +1 -1
- package/docs/digExp.mjs.html +1 -1
- package/docs/domAlert.mjs.html +1 -1
- package/docs/domAppend.mjs.html +1 -1
- package/docs/domCancelEvent.mjs.html +1 -1
- package/docs/domCompareText.mjs.html +1 -1
- package/docs/domConvertToPic.mjs.html +1 -1
- package/docs/domConvertToPicDyn.mjs.html +1 -1
- package/docs/domDetect.mjs.html +1 -1
- package/docs/domDrag.mjs.html +1 -1
- package/docs/domDragBarAndScroll.mjs.html +1 -1
- package/docs/domDragPointer.mjs.html +1 -1
- package/docs/domDragPreview.mjs.html +1 -1
- package/docs/domDropFiles.mjs.html +1 -1
- package/docs/domElementsFromPoint.mjs.html +1 -1
- package/docs/domFadeIn.mjs.html +1 -1
- package/docs/domFadeOut.mjs.html +1 -1
- package/docs/domFind.mjs.html +1 -1
- package/docs/domFinds.mjs.html +1 -1
- package/docs/domGetAttr.mjs.html +1 -1
- package/docs/domGetBoudRect.mjs.html +1 -1
- package/docs/domGetBoudRectRefSelf.mjs.html +1 -1
- package/docs/domGetFileAccept.mjs.html +1 -1
- package/docs/domGetFiles.mjs.html +1 -1
- package/docs/domGetParents.mjs.html +1 -1
- package/docs/domGetPointFromEvent.mjs.html +1 -1
- package/docs/domGetScrollableParent.mjs.html +1 -1
- package/docs/domGetWindowSize.mjs.html +1 -1
- package/docs/domIsClientXYIn.mjs.html +1 -1
- package/docs/domIsFocused.mjs.html +1 -1
- package/docs/domIsRendered.mjs.html +1 -1
- package/docs/domIsStable.mjs.html +1 -1
- package/docs/domIsVisible.mjs.html +1 -1
- package/docs/domPrepend.mjs.html +1 -1
- package/docs/domRemove.mjs.html +1 -1
- package/docs/domRenderMarkdownMind.mjs.html +1 -1
- package/docs/domRenderMarkdownMindDyn.mjs.html +1 -1
- package/docs/domRipple.mjs.html +1 -1
- package/docs/domScrollIntoView.mjs.html +1 -1
- package/docs/domScrollTo.mjs.html +1 -1
- package/docs/domSetAttr.mjs.html +1 -1
- package/docs/domShowImages.mjs.html +1 -1
- package/docs/domShowImagesDyn.mjs.html +1 -1
- package/docs/domShowInputAndGetFiles.mjs.html +1 -1
- package/docs/domShowInputAndGetFilesU8Arrs.mjs.html +1 -1
- package/docs/domShowInputDatatime.mjs.html +1 -1
- package/docs/domTooltip.mjs.html +1 -1
- package/docs/domTriggerEvent.mjs.html +1 -1
- package/docs/domVirtualCreate.mjs.html +1 -1
- package/docs/domVirtualCreateQueue.mjs.html +1 -1
- package/docs/downloadExcelFileFromData.mjs.html +1 -1
- package/docs/downloadExcelFileFromDataDyn.mjs.html +1 -1
- package/docs/downloadFileFromB64.mjs.html +1 -1
- package/docs/downloadFileFromBlob.mjs.html +1 -1
- package/docs/downloadFileFromText.mjs.html +1 -1
- package/docs/downloadFileFromU8Arr.mjs.html +1 -1
- package/docs/dtmapping.mjs.html +1 -1
- package/docs/dtpick.mjs.html +1 -1
- package/docs/estimateTicks.mjs.html +1 -1
- package/docs/evEmit.mjs.html +1 -1
- package/docs/evEmitDelay.mjs.html +1 -1
- package/docs/evem.mjs.html +1 -1
- package/docs/examples/ex-blob2b64.html +1 -1
- package/docs/examples/ex-clearXSS.html +1 -1
- package/docs/examples/ex-clearXSSDyn.html +1 -1
- package/docs/examples/ex-colorConverter.html +1 -1
- package/docs/examples/ex-detectXSS.html +1 -1
- package/docs/examples/ex-detectXSSDyn.html +1 -1
- package/docs/examples/ex-domCompareText.html +1 -1
- package/docs/examples/ex-domConvertToPic.html +1 -1
- package/docs/examples/ex-domDrag.html +1 -1
- package/docs/examples/ex-domDropFiles.html +1 -1
- package/docs/examples/ex-domIsVisible.html +1 -1
- package/docs/examples/ex-domRenderMarkdownMind.html +1 -1
- package/docs/examples/ex-domRenderMarkdownMindDyn.html +1 -1
- package/docs/examples/ex-domRipple.html +1 -1
- package/docs/examples/ex-domScrollIntoView.html +1 -1
- package/docs/examples/ex-domScrollTo.html +1 -1
- package/docs/examples/ex-domShowImages.html +1 -1
- package/docs/examples/ex-domShowImagesDyn.html +1 -1
- package/docs/examples/ex-domShowInputAndGetFiles.html +1 -1
- package/docs/examples/ex-domTooltip.html +1 -1
- package/docs/examples/ex-getFileHash.html +1 -1
- package/docs/examples/ex-getUserAgent.html +1 -1
- package/docs/examples/ex-getUserAgentDyn.html +1 -1
- package/docs/examples/ex-html2str.html +1 -1
- package/docs/examples/ex-obj2u8arr-u8arr2obj.html +1 -1
- package/docs/examples/ex-openLink.html +1 -1
- package/docs/examples/ex-str2aes-aes2str.html +1 -1
- package/docs/examples/ex-str2b64-b642str.html +1 -1
- package/docs/examples/ex-strFindFuzz.html +1 -1
- package/docs/examples/ex-timeTZ2expire-timeTZ2past.html +1 -1
- package/docs/examples/ex-xlsx.html +1 -1
- package/docs/execCli.mjs.html +67 -33
- package/docs/execCliCore.mjs.html +4 -1
- package/docs/execCliJsonRpc.mjs.html +3 -3
- package/docs/execCliSession.mjs.html +24 -12
- package/docs/execJsCode.mjs.html +1 -1
- package/docs/execProcess.mjs.html +58 -35
- package/docs/execProcessKillPid.mjs.html +5 -3
- package/docs/filepathToTree.mjs.html +1 -1
- package/docs/files2data.mjs.html +1 -1
- package/docs/flattenToConn.mjs.html +1 -1
- package/docs/flattenTree.mjs.html +1 -1
- package/docs/floor.mjs.html +1 -1
- package/docs/fsBuildReadStreamText.mjs.html +1 -1
- package/docs/fsBuildWriteStreamText.mjs.html +1 -1
- package/docs/fsCleanFolder.mjs.html +1 -1
- package/docs/fsCleanFolderCore.mjs.html +1 -1
- package/docs/fsCopyFile.mjs.html +1 -1
- package/docs/fsCopyFileCore.mjs.html +1 -1
- package/docs/fsCopyFolder.mjs.html +1 -1
- package/docs/fsCopyFolderCore.mjs.html +1 -1
- package/docs/fsCreateFile.mjs.html +1 -1
- package/docs/fsCreateFileCore.mjs.html +1 -1
- package/docs/fsCreateFolder.mjs.html +1 -1
- package/docs/fsCreateFolderCore.mjs.html +1 -1
- package/docs/fsDeleteFile.mjs.html +1 -1
- package/docs/fsDeleteFileCore.mjs.html +1 -1
- package/docs/fsDeleteFileSafe.mjs.html +1 -1
- package/docs/fsDeleteFileSafeCore.mjs.html +1 -1
- package/docs/fsDeleteFolder.mjs.html +1 -1
- package/docs/fsDeleteFolderCore.mjs.html +1 -1
- package/docs/fsDeleteFolderSafe.mjs.html +1 -1
- package/docs/fsDeleteFolderSafeCore.mjs.html +1 -1
- package/docs/fsDownloadFile.mjs.html +1 -1
- package/docs/fsDownloadFileCore.mjs.html +1 -1
- package/docs/fsEvem.mjs.html +1 -1
- package/docs/fsExists.mjs.html +1 -1
- package/docs/fsExistsCore.mjs.html +1 -1
- package/docs/fsGetFileBasicHash.mjs.html +1 -1
- package/docs/fsGetFileBasicHashCore.mjs.html +1 -1
- package/docs/fsGetFileHash.mjs.html +1 -1
- package/docs/fsGetFileHashCore.mjs.html +1 -1
- package/docs/fsGetFileXxHash.mjs.html +1 -1
- package/docs/fsGetFileXxHashCore.mjs.html +1 -1
- package/docs/fsGetFilesInFolder.mjs.html +1 -1
- package/docs/fsGetFilesInFolderCore.mjs.html +1 -1
- package/docs/fsGetFilesWithHashInFolder.mjs.html +1 -1
- package/docs/fsGetFilesWithHashInFolderCore.mjs.html +1 -1
- package/docs/fsGetFolderBasicHash.mjs.html +1 -1
- package/docs/fsGetFolderBasicHashCore.mjs.html +1 -1
- package/docs/fsGetFoldersInFolder.mjs.html +1 -1
- package/docs/fsGetFoldersInFolderCore.mjs.html +1 -1
- package/docs/fsIsFile.mjs.html +1 -1
- package/docs/fsIsFileCore.mjs.html +1 -1
- package/docs/fsIsFolder.mjs.html +1 -1
- package/docs/fsIsFolderCore.mjs.html +1 -1
- package/docs/fsMergeFiles.mjs.html +1 -1
- package/docs/fsMergeFilesCore.mjs.html +1 -1
- package/docs/fsReadJson.mjs.html +1 -1
- package/docs/fsReadText.mjs.html +1 -1
- package/docs/fsReadTextCore.mjs.html +1 -1
- package/docs/fsRenameFile.mjs.html +1 -1
- package/docs/fsRenameFileCore.mjs.html +1 -1
- package/docs/fsRenameFolder.mjs.html +1 -1
- package/docs/fsRenameFolderCore.mjs.html +1 -1
- package/docs/fsSrlog.mjs.html +1 -1
- package/docs/fsSyncFolder.mjs.html +1 -1
- package/docs/fsSyncFolderCore.mjs.html +1 -1
- package/docs/fsTask.mjs.html +1 -1
- package/docs/fsTaskCp.mjs.html +1 -1
- package/docs/fsTreeFolder.mjs.html +1 -1
- package/docs/fsTreeFolderCore.mjs.html +1 -1
- package/docs/fsTreeFolderWithHash.mjs.html +1 -1
- package/docs/fsTreeFolderWithHashCore.mjs.html +1 -1
- package/docs/fsWatchFile.mjs.html +1 -1
- package/docs/fsWatchFolder.mjs.html +1 -1
- package/docs/fsWriteJson.mjs.html +1 -1
- package/docs/fsWriteText.mjs.html +1 -1
- package/docs/fsWriteTextCore.mjs.html +1 -1
- package/docs/genGradientColor.mjs.html +1 -1
- package/docs/genID.mjs.html +1 -1
- package/docs/genIDSeq.mjs.html +1 -1
- package/docs/genPm.mjs.html +1 -1
- package/docs/getBufferSize.mjs.html +1 -1
- package/docs/getClearPathName.mjs.html +1 -1
- package/docs/getCsvStrFromData.mjs.html +1 -1
- package/docs/getDataFromExcelFileU8Arr.mjs.html +1 -1
- package/docs/getDataFromExcelFileU8ArrDyn.mjs.html +1 -1
- package/docs/getEnv.mjs.html +1 -1
- package/docs/getErrorMessage.mjs.html +1 -1
- package/docs/getExcelU8ArrFromData.mjs.html +1 -1
- package/docs/getExcelU8ArrFromWorkbook.mjs.html +1 -1
- package/docs/getExcelWorkbookFromData.mjs.html +1 -1
- package/docs/getExcelWorkbookFromWorksheet.mjs.html +1 -1
- package/docs/getExcelWorksheetFromData.mjs.html +1 -1
- package/docs/getFileAccept.mjs.html +1 -1
- package/docs/getFileBasicHash.mjs.html +1 -1
- package/docs/getFileHash.mjs.html +1 -1
- package/docs/getFileName.mjs.html +1 -1
- package/docs/getFileNameExt.mjs.html +1 -1
- package/docs/getFileTrueName.mjs.html +1 -1
- package/docs/getFileType.mjs.html +1 -1
- package/docs/getFileXxHash.mjs.html +1 -1
- package/docs/getGlobal.mjs.html +1 -1
- package/docs/getObjSize.mjs.html +1 -1
- package/docs/getPathParent.mjs.html +1 -1
- package/docs/getTimeBetween.mjs.html +1 -1
- package/docs/getTimeFromUnit.mjs.html +1 -1
- package/docs/getTimeHp.mjs.html +1 -1
- package/docs/getTimeObject.mjs.html +1 -1
- package/docs/getTimeRange.mjs.html +1 -1
- package/docs/getUserAgent.mjs.html +1 -1
- package/docs/getUserAgentDyn.mjs.html +1 -1
- package/docs/getltdtkeys.mjs.html +1 -1
- package/docs/global.html +7 -7
- package/docs/haskey.mjs.html +1 -1
- package/docs/html2str.mjs.html +1 -1
- package/docs/htmlDecode.mjs.html +1 -1
- package/docs/htmlEncode.mjs.html +1 -1
- package/docs/importResources.mjs.html +1 -1
- package/docs/index.html +1 -1
- package/docs/interp1.mjs.html +1 -1
- package/docs/isDate.mjs.html +1 -1
- package/docs/isDev.mjs.html +1 -1
- package/docs/isEle.mjs.html +1 -1
- package/docs/isEleExistByID.mjs.html +1 -1
- package/docs/isEmail.mjs.html +1 -1
- package/docs/isErr.mjs.html +1 -1
- package/docs/isIE.mjs.html +1 -1
- package/docs/isNarrow.mjs.html +1 -1
- package/docs/isStrHasCapital.mjs.html +1 -1
- package/docs/isStrHasLetter.mjs.html +1 -1
- package/docs/isStrHasLowerCase.mjs.html +1 -1
- package/docs/isStrHasNumber.mjs.html +1 -1
- package/docs/isStrHasSpace.mjs.html +1 -1
- package/docs/isStrHasSymbol.mjs.html +1 -1
- package/docs/isUserIdentify.mjs.html +1 -1
- package/docs/isUserName.mjs.html +1 -1
- package/docs/isUserPw.mjs.html +1 -1
- package/docs/isWindow.mjs.html +1 -1
- package/docs/isab.mjs.html +1 -1
- package/docs/isarr.mjs.html +1 -1
- package/docs/isarr0.mjs.html +1 -1
- package/docs/isarr1.mjs.html +1 -1
- package/docs/isbigint.mjs.html +1 -1
- package/docs/isblob.mjs.html +1 -1
- package/docs/isbol.mjs.html +1 -1
- package/docs/isday.mjs.html +1 -1
- package/docs/isearr.mjs.html +1 -1
- package/docs/iseobj.mjs.html +1 -1
- package/docs/iser.mjs.html +1 -1
- package/docs/isernot.mjs.html +1 -1
- package/docs/isestr.mjs.html +1 -1
- package/docs/isfile.mjs.html +1 -1
- package/docs/isfun.mjs.html +1 -1
- package/docs/isint.mjs.html +1 -1
- package/docs/ismonth.mjs.html +1 -1
- package/docs/isn0int.mjs.html +1 -1
- package/docs/isn0num.mjs.html +1 -1
- package/docs/isnan.mjs.html +1 -1
- package/docs/isnbr.mjs.html +1 -1
- package/docs/isnint.mjs.html +1 -1
- package/docs/isnnum.mjs.html +1 -1
- package/docs/isnull.mjs.html +1 -1
- package/docs/isnum.mjs.html +1 -1
- package/docs/isobj.mjs.html +1 -1
- package/docs/isobj0.mjs.html +1 -1
- package/docs/isp0int.mjs.html +1 -1
- package/docs/isp0num.mjs.html +1 -1
- package/docs/ispint.mjs.html +1 -1
- package/docs/ispm.mjs.html +1 -1
- package/docs/ispnum.mjs.html +1 -1
- package/docs/isstr.mjs.html +1 -1
- package/docs/isstr0.mjs.html +1 -1
- package/docs/istime.mjs.html +1 -1
- package/docs/istimeTZ.mjs.html +1 -1
- package/docs/istimems.mjs.html +1 -1
- package/docs/istimemsTZ.mjs.html +1 -1
- package/docs/isu16arr.mjs.html +1 -1
- package/docs/isu8arr.mjs.html +1 -1
- package/docs/isundefined.mjs.html +1 -1
- package/docs/j2o.mjs.html +1 -1
- package/docs/judge.mjs.html +1 -1
- package/docs/keysmat2ltdt.mjs.html +1 -1
- package/docs/ltdt2vrtsable.mjs.html +1 -1
- package/docs/ltdtDiff.mjs.html +1 -1
- package/docs/ltdtDiffByKey.mjs.html +1 -1
- package/docs/ltdtkeys2mat.mjs.html +1 -1
- package/docs/ltdtkeysheads2mat.mjs.html +1 -1
- package/docs/ltdtmapping.mjs.html +1 -1
- package/docs/ltdtmerge.mjs.html +1 -1
- package/docs/ltdtpick.mjs.html +1 -1
- package/docs/ltdtpull.mjs.html +1 -1
- package/docs/mat2ltdt.mjs.html +1 -1
- package/docs/matConcat.mjs.html +1 -1
- package/docs/matDiff.mjs.html +1 -1
- package/docs/matat.mjs.html +1 -1
- package/docs/now2str.mjs.html +1 -1
- package/docs/now2strp.mjs.html +1 -1
- package/docs/nowDay2str.mjs.html +1 -1
- package/docs/nowms2str.mjs.html +1 -1
- package/docs/nowms2strp.mjs.html +1 -1
- package/docs/o2j.mjs.html +1 -1
- package/docs/obj2b64.mjs.html +1 -1
- package/docs/obj2pb64.mjs.html +1 -1
- package/docs/obj2str.mjs.html +1 -1
- package/docs/obj2stru8arr.mjs.html +1 -1
- package/docs/obj2u8arr.mjs.html +1 -1
- package/docs/objSortBy.mjs.html +1 -1
- package/docs/objSortByKeys.mjs.html +1 -1
- package/docs/oo.mjs.html +1 -1
- package/docs/openLink.mjs.html +1 -1
- package/docs/pb642obj.mjs.html +1 -1
- package/docs/pmChain.mjs.html +1 -1
- package/docs/pmConvertResolve.mjs.html +1 -1
- package/docs/pmDebounce.mjs.html +1 -1
- package/docs/pmHook.mjs.html +1 -1
- package/docs/pmHookReject.mjs.html +1 -1
- package/docs/pmIni.mjs.html +1 -1
- package/docs/pmInvResolve.mjs.html +1 -1
- package/docs/pmKeyMutex.mjs.html +1 -1
- package/docs/pmMap.mjs.html +1 -1
- package/docs/pmQueue.mjs.html +1 -1
- package/docs/pmSeries.mjs.html +1 -1
- package/docs/pmThrottle.mjs.html +1 -1
- package/docs/pmTimeout.mjs.html +1 -1
- package/docs/preciseNum.mjs.html +1 -1
- package/docs/pseudoRandom.mjs.html +1 -1
- package/docs/pseudoRandomIntRange.mjs.html +1 -1
- package/docs/pseudoRandomIntsNdpRange.mjs.html +1 -1
- package/docs/pseudoRandomIntsRange.mjs.html +1 -1
- package/docs/pseudoRandomRange.mjs.html +1 -1
- package/docs/pseudoRandomsRange.mjs.html +1 -1
- package/docs/queue.mjs.html +1 -1
- package/docs/random.mjs.html +1 -1
- package/docs/randomIntRange.mjs.html +1 -1
- package/docs/randomIntsNdpRange.mjs.html +1 -1
- package/docs/randomIntsRange.mjs.html +1 -1
- package/docs/randomRange.mjs.html +1 -1
- package/docs/randomsRange.mjs.html +1 -1
- package/docs/rang.mjs.html +1 -1
- package/docs/rep.mjs.html +1 -1
- package/docs/repObj.mjs.html +1 -1
- package/docs/replace.mjs.html +1 -1
- package/docs/replaceObj.mjs.html +1 -1
- package/docs/replacePlus.mjs.html +1 -1
- package/docs/round.mjs.html +1 -1
- package/docs/secd.mjs.html +1 -1
- package/docs/sep.mjs.html +1 -1
- package/docs/sepInt.mjs.html +1 -1
- package/docs/setIntervalHp.mjs.html +1 -1
- package/docs/setTimeoutHp.mjs.html +1 -1
- package/docs/sind.mjs.html +1 -1
- package/docs/split.mjs.html +1 -1
- package/docs/str2aes.mjs.html +1 -1
- package/docs/str2b64.mjs.html +1 -1
- package/docs/str2hint.mjs.html +1 -1
- package/docs/str2md5.mjs.html +1 -1
- package/docs/str2obj.mjs.html +1 -1
- package/docs/str2sha.mjs.html +1 -1
- package/docs/str2sha512.mjs.html +1 -1
- package/docs/str2u8arr.mjs.html +1 -1
- package/docs/strCompare.mjs.html +1 -1
- package/docs/strCompareForVersion.mjs.html +1 -1
- package/docs/strDiff.mjs.html +1 -1
- package/docs/strDiffToHtml.mjs.html +1 -1
- package/docs/strFindFuzz.mjs.html +1 -1
- package/docs/strFindSimilar.mjs.html +1 -1
- package/docs/strTruncate.mjs.html +1 -1
- package/docs/strdelleft.mjs.html +1 -1
- package/docs/strdelright.mjs.html +1 -1
- package/docs/strleft.mjs.html +1 -1
- package/docs/strmid.mjs.html +1 -1
- package/docs/strright.mjs.html +1 -1
- package/docs/stru8arr2obj.mjs.html +1 -1
- package/docs/tand.mjs.html +1 -1
- package/docs/time2day.mjs.html +1 -1
- package/docs/time2hour.mjs.html +1 -1
- package/docs/time2min.mjs.html +1 -1
- package/docs/timeTZ2day.mjs.html +1 -1
- package/docs/timeTZ2expire.mjs.html +1 -1
- package/docs/timeTZ2hour.mjs.html +1 -1
- package/docs/timeTZ2min.mjs.html +1 -1
- package/docs/timeTZ2past.mjs.html +1 -1
- package/docs/timems2day.mjs.html +1 -1
- package/docs/timems2hour.mjs.html +1 -1
- package/docs/timems2min.mjs.html +1 -1
- package/docs/timems2time.mjs.html +1 -1
- package/docs/timemsTZ2day.mjs.html +1 -1
- package/docs/timemsTZ2expire.mjs.html +1 -1
- package/docs/timemsTZ2hour.mjs.html +1 -1
- package/docs/timemsTZ2min.mjs.html +1 -1
- package/docs/timemsTZ2past.mjs.html +1 -1
- package/docs/timemsTZ2time.mjs.html +1 -1
- package/docs/treeObj.mjs.html +1 -1
- package/docs/treeToFilepath.mjs.html +1 -1
- package/docs/trim.mjs.html +1 -1
- package/docs/u16arr2b64.mjs.html +1 -1
- package/docs/u16arr2u8arr.mjs.html +1 -1
- package/docs/u8arr2ab.mjs.html +1 -1
- package/docs/u8arr2b64.mjs.html +1 -1
- package/docs/u8arr2blob.mjs.html +1 -1
- package/docs/u8arr2bs.mjs.html +1 -1
- package/docs/u8arr2obj.mjs.html +1 -1
- package/docs/u8arr2str.mjs.html +1 -1
- package/docs/u8arr2u16arr.mjs.html +1 -1
- package/docs/urlParse.mjs.html +1 -1
- package/docs/verifyValue.mjs.html +1 -1
- package/docs/waitFun.mjs.html +1 -1
- package/docs/wsemi.html +20 -19
- package/package.json +2 -2
- package/script.txt +1 -1
- package/src/_execSpawnError.mjs +41 -0
- package/src/execCli.mjs +66 -32
- package/src/execCliCore.mjs +3 -0
- package/src/execCliJsonRpc.mjs +2 -2
- package/src/execCliSession.mjs +23 -11
- package/src/execProcess.mjs +57 -34
- package/src/execProcessKillPid.mjs +4 -2
- package/test/_execSpawnError.test.mjs +81 -0
- package/test/execCli.test.mjs +95 -0
- package/test/execCliJsonRpc.test.mjs +27 -0
- package/test/execCliSession.test.mjs +82 -0
- package/test/execProcess.test.mjs +135 -3
- package/test/execProcessKillPid.test.mjs +34 -0
- package/test/tools/spawnEmfileRunner.mjs +55 -0
- package/toolfp/dist/wsemip.umd.js +1 -1
- package/toolparfor/dist/wpf.umd.js +1 -1
- package/toolparfor/dist/wpf_pmSeries.umd.js +1 -1
package/dist/wsemi.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* wsemi v1.9.
|
|
2
|
+
* wsemi v1.9.15
|
|
3
3
|
* (c) 2018-2021 yuda-lyu(semisphere)
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -21,13 +21,13 @@ var ys,vs,bs=9e15,As=1e9,ws="0123456789abcdef",xs="2.302585092994045684017991454
|
|
|
21
21
|
* Released under the MIT license
|
|
22
22
|
*
|
|
23
23
|
* Date: 2026-10-01T05:04:39.019Z
|
|
24
|
-
*/!function(e){e.exports=function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function r(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function s(e){var t=a(e,"string");return"symbol"==typeof t?t:t+""}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}var c={backdrop:!0,button:!0,navbar:!0,navigation:!1,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,inheritedAttributes:["crossOrigin","decoding","isMap","loading","referrerPolicy","sizes","srcset","useMap"],initialCoverage:.9,initialViewIndex:0,inline:!1,autoplay:!0,interval:5e3,keyboard:!0,focus:!0,loading:!0,loop:!0,preload:!0,minWidth:200,minHeight:100,movable:!0,magnifier:!1,rotatable:!0,rotateOnGesture:!0,rotateOnTouch:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnGesture:!0,zoomOnWheel:!0,slideOnTouch:!0,slideOnWheel:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,move:null,moved:null,rotate:null,rotated:null,scale:null,scaled:null,zoom:null,zoomed:null,play:null,playing:null,stop:null},u='<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-magnifier" aria-hidden="true"><img class="viewer-magnifier-image" alt=""></div><div class="viewer-navigation" aria-hidden="true"><div class="viewer-prev" data-viewer-action="prev" role="button" aria-label="Previous"></div><div class="viewer-next" data-viewer-action="next" role="button" aria-label="Next"></div></div><div class="viewer-title" aria-hidden="true"></div><div class="viewer-toolbar" aria-hidden="true"></div><div class="viewer-navbar" aria-hidden="true"><ul class="viewer-list" role="navigation"></ul></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button" aria-hidden="true"></div><div class="viewer-player" aria-hidden="true"></div></div>',d="undefined"!=typeof window&&void 0!==window.document,f=d?window:{},h=!(!d||!f.document.documentElement)&&"ontouchstart"in f.document.documentElement,p=!!d&&"PointerEvent"in f,g="viewer",m="move",y="rotate",v="switch",b="transform",A="zoom",w="".concat(g,"-active"),x="".concat(g,"-close"),I="".concat(g,"-fade"),C="".concat(g,"-fixed"),S="".concat(g,"-fullscreen"),E="".concat(g,"-fullscreen-exit"),k="".concat(g,"-hide"),B="".concat(g,"-hide-md-down"),F="".concat(g,"-hide-sm-down"),D="".concat(g,"-hide-xs-down"),M="".concat(g,"-in"),N="".concat(g,"-invisible"),T="".concat(g,"-loading"),Q="".concat(g,"-move"),R="".concat(g,"-open"),L="".concat(g,"-show"),P="".concat(g,"-transition"),O="click",U="dblclick",$="dragstart",H="focusin",z="keydown",q="load",j="error",W=h?"touchend touchcancel":"mouseup",_=h?"touchmove":"mousemove",V=h?"touchstart":"mousedown",Y=p?"pointerdown":V,G=p?"pointerenter":"mouseenter",J=p?"pointerleave":"mouseleave",X=p?"pointermove":_,K=p?"pointerup pointercancel":W,Z="resize",ee="transitionend",te="wheel",ne="gesturestart gesturechange gestureend",re="ready",ie="show",oe="shown",ae="hide",se="hidden",le="view",ce="viewed",ue="move",de="moved",fe="rotate",he="rotated",pe="scale",ge="scaled",me="zoom",ye="zoomed",ve="play",be="playing",Ae="stop",we="".concat(g,"Action"),xe=/\s+/,Ie=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function Ce(e){return"string"==typeof e}var Se={ctrl:"ctrlKey",shift:"shiftKey",alt:"altKey",meta:"metaKey"};function Ee(e,t){return!!e&&(!0===e||Ce(e)&&e.split("+").every(function(e){return t[Se[e.trim().toLowerCase()]]}))}var ke=Number.isNaN||f.isNaN;function Be(e){return"number"==typeof e&&!ke(e)}function Fe(e){return void 0===e}function De(e){return"object"===l(e)&&null!==e}var Me=Object.prototype.hasOwnProperty;function Ne(e){if(!De(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&Me.call(n,"isPrototypeOf")}catch(e){return!1}}function Te(e){return"function"==typeof e}function Qe(e,t){if(e&&Te(t))if(Array.isArray(e)||Be(e.length)){var n,r=e.length;for(n=0;n<r&&!1!==t.call(e,e[n],n,e);n+=1);}else De(e)&&Object.keys(e).forEach(function(n){t.call(e,e[n],n,e)});return e}function Re(e,t,n){Qe(n,function(n){var r=t.getAttribute(n);null!==r&&e.setAttribute(n,r)})}function Le(e,t){var n=e.transition;return n&&!1!==n[t]}var Pe=Object.assign||function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return De(e)&&n.length>0&&n.forEach(function(t){De(t)&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e},Oe=/^(?:width|height|left|top|marginLeft|marginTop)$/;function Ue(e,t){var n=e.style;Qe(t,function(e,t){Oe.test(t)&&Be(e)&&(e+="px"),n[t]=e})}function $e(e){return Ce(e)?e.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"):e}function He(e,t){return!(!e||!t)&&(e.classList?e.classList.contains(t):e.className.split(xe).indexOf(t)>-1)}function ze(e,t){if(e&&t)if(Be(e.length))Qe(e,function(e){ze(e,t)});else if(e.classList)e.classList.add(t);else{var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function qe(e,t){if(e&&t)if(Be(e.length))Qe(e,function(e){qe(e,t)});else if(e.classList)e.classList.remove(t);else{var n=e.className;n&&n.indexOf(t)>=0&&(e.className=n.split(xe).filter(function(e){return e&&e!==t}).join(" "))}}function je(e,t,n){t&&(Be(e.length)?Qe(e,function(e){je(e,t,n)}):n?ze(e,t):qe(e,t))}var We=/([a-z\d])([A-Z])/g;function _e(e){return e.replace(We,"$1-$2").toLowerCase()}function Ve(e,t){return De(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(_e(t)))}function Ye(e,t,n){De(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(_e(t)),n)}var Ge=function(){var e=!1;if(d){var t=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});f.addEventListener("test",n,r),f.removeEventListener("test",n,r)}return e}();function Je(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(xe).forEach(function(t){if(!Ge){var o=e.listeners;o&&o[t]&&o[t][n]&&(i=o[t][n],delete o[t][n],0===Object.keys(o[t]).length&&delete o[t],0===Object.keys(o).length&&delete e.listeners)}e.removeEventListener(t,i,r)})}function Xe(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(xe).forEach(function(t){if(r.once&&!Ge){var o=e.listeners,a=void 0===o?{}:o;i=function(){delete a[t][n],e.removeEventListener(t,i,r);for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];n.apply(e,s)},a[t]||(a[t]={}),a[t][n]&&e.removeEventListener(t,a[t][n],r),a[t][n]=i,e.listeners=a}e.addEventListener(t,i,r)})}function Ke(e,t,n,r){var i;return Te(Event)&&Te(CustomEvent)?i=new CustomEvent(t,o({bubbles:!0,cancelable:!0,detail:n},r)):(i=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,n),e.dispatchEvent(i)}function Ze(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}function et(e){var t=e.rotate,n=e.scaleX,r=e.scaleY,i=e.translateX,o=e.translateY,a=[];Be(i)&&0!==i&&a.push("translateX(".concat(i,"px)")),Be(o)&&0!==o&&a.push("translateY(".concat(o,"px)")),Be(t)&&0!==t&&a.push("rotate(".concat(t,"deg)")),Be(n)&&Be(r)&&(1!==n||1!==r)&&(a.push("scaleX(".concat(n,")")),a.push("scaleY(".concat(r,")")));var s=a.length?a.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function tt(e){return Ce(e)?decodeURIComponent(e.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}var nt=f.navigator&&/Version\/\d+(\.\d+)+?\s+Safari/i.test(f.navigator.userAgent);function rt(e,t,n){var r=document.createElement("img");if(e.naturalWidth&&!nt)return n(e.naturalWidth,e.naturalHeight),r;var i=document.body||document.documentElement;return r.onload=function(){n(r.width,r.height),nt||i.removeChild(r)},Re(r,e,t.inheritedAttributes),r.src=e.src,nt||(r.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",i.appendChild(r)),r}function it(e){switch(e){case 2:return D;case 3:return F;case 4:return B;default:return""}}function ot(e){var t=o({},e),n=[];return Qe(e,function(e,r){delete t[r],Qe(t,function(t){var r=Math.abs(e.startX-t.startX),i=Math.abs(e.startY-t.startY),o=Math.abs(e.endX-t.endX),a=Math.abs(e.endY-t.endY),s=Math.sqrt(r*r+i*i),l=(Math.sqrt(o*o+a*a)-s)/s;n.push(l)})}),n.sort(function(e,t){return Math.abs(e)<Math.abs(t)}),n[0]}function at(e){var t=o({},e),n=[];return Qe(e,function(e,r){delete t[r],Qe(t,function(t){var r=Math.atan2(t.startY-e.startY,t.startX-e.startX),i=Math.atan2(t.endY-e.endY,t.endX-e.endX)-r;i>Math.PI?i-=2*Math.PI:i<-Math.PI&&(i+=2*Math.PI),n.push(180*i/Math.PI)})}),n.sort(function(e,t){return Math.abs(t)-Math.abs(e)}),n[0]||0}function st(e,t){var n=e.pageX,r=e.pageY,i={endX:n,endY:r};return t?i:o({timeStamp:Date.now(),startX:n,startY:r},i)}function lt(e){var t=0,n=0,r=0;return Qe(e,function(e){var i=e.startX,o=e.startY;t+=i,n+=o,r+=1}),{pageX:t/=r,pageY:n/=r}}var ct={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var e=this.ownerDocument,t=e.body||e.documentElement;this.body=t,this.scrollbarWidth=window.innerWidth-e.documentElement.clientWidth,this.initialBodyPaddingRight=t.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(t).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var e,t=this.options,n=this.parent;t.inline&&(e={width:Math.max(n.offsetWidth,t.minWidth),height:Math.max(n.offsetHeight,t.minHeight)},this.parentData=e),!this.fulled&&e||(e=this.containerData),this.viewerData=Pe({},e)},renderViewer:function(){this.options.inline&&!this.fulled&&Ue(this.viewer,this.viewerData)},initList:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.index,n=this.element,r=this.options,i=this.list,o=[],a=Ne(r.navbar)?r.navbar:{},s=document.createElement("li");this.containerData||this.initContainer(),i.appendChild(s);var l=this.isNavbarVertical?s.offsetHeight+parseInt(window.getComputedStyle(s).marginTop,10):s.offsetWidth+parseInt(window.getComputedStyle(s).marginLeft,10);i.removeChild(s);var c=Be(a.visibleItemCount)?Math.floor(a.visibleItemCount):Math.floor((this.isNavbarVertical?this.containerData.height:this.containerData.width)/l),u=(c=Math.min(c,this.length))>0?Math.min(Math.max(0,t-Math.floor(c/2)),Math.max(0,this.length-c)):0,d=c>0?Math.min(this.length,u+c):this.length;if(i.innerHTML="",Qe(this.images,function(t,n){if(!(c>0&&(n<u||n>=d))){var a=t.src,s=t.alt||tt(a),l=e.getImageURL(t);if(a||l){var f=document.createElement("li"),h=document.createElement("img");Re(h,t,r.inheritedAttributes),r.navbar&&(h.src=a||l),h.alt=s,h.setAttribute("data-original-url",l||a),f.setAttribute("data-index",n),f.setAttribute("data-viewer-action","view"),f.setAttribute("role","button"),r.keyboard&&f.setAttribute("tabindex",0),f.appendChild(h),i.appendChild(f),o.push(f)}}}),this.items=o,this.viewed){var f=this.getItem(this.index);f&&(ze(f,w),f.setAttribute("aria-selected",!0))}Qe(o,function(t){var n,i,o=t.firstElementChild;Ye(o,"filled",!0),r.loading&&ze(t,T),Xe(o,q,n=function(n){Je(o,j,i),r.loading&&qe(t,T),e.loadImage(n)},{once:!0}),Xe(o,j,i=function(){Je(o,q,n),r.loading&&qe(t,T)},{once:!0})}),Le(r,"view")&&Xe(n,ce,function(){ze(i,P)},{once:!0})},getItem:function(e){var t;return Qe(this.items,function(n){return Number(Ve(n,"index"))!==e||(t=n,!1)}),t},renderList:function(){var e=this.index,t=this.getItem(e);if(t){var n=t.nextElementSibling,i=parseInt(window.getComputedStyle(n||t)[this.isNavbarVertical?"marginTop":"marginLeft"],10),o=this.isNavbarVertical?t.offsetHeight:t.offsetWidth,a=o+i;Ue(this.list,Pe(r({},this.isNavbarVertical?"height":"width",a*this.items.length-i),et(r({},this.isNavbarVertical?"translateY":"translateX",((this.isNavbarVertical?this.viewerData.height:this.viewerData.width)-o)/2-(this.isNavbarVertical?t.offsetTop:t.offsetLeft)))))}},resetList:function(){var e=this.list;e.innerHTML="",qe(e,P),Ue(e,Pe(r({},this.isNavbarVertical?"height":"width",0),et(r({},this.isNavbarVertical?"translateY":"translateX",0))))},initImage:function(e){var t,n=this,r=this.options,i=this.image,o=this.viewerData,a=this.title,s=this.toolbar,l=this.navbar,c={top:0,right:0,bottom:0,left:0},u=this.imageData||{};a.offsetHeight&&(c.bottom=o.height-a.offsetTop),Qe([s,l],function(e){var t=e.offsetWidth,n=e.offsetHeight;(t||n)&&["top","right","bottom","left"].some(function(r){if(He(e,"".concat(g,"-").concat(e===s?"toolbar":"navbar","-").concat(r))){var i=e.offsetLeft+t;return"top"===r?i=e.offsetTop+n:"right"===r?i=o.width-e.offsetLeft:"bottom"===r&&(i=o.height-e.offsetTop),c[r]=Math.max(c[r],i),!0}return!1})});var d=Math.max(o.width-c.left-c.right,c.left,c.right),f=Math.max(o.height-c.top-c.bottom,c.top,c.bottom);this.imageInitializing={abort:function(){t.onload=null}},t=rt(i,r,function(t,i){var o=t/i,a=Math.max(0,Math.min(1,r.initialCoverage)),s=d,l=f;n.imageInitializing=!1,f*o>d?l=d/o:s=f*o,a=Be(a)?a:.9,s=Math.min(s*a,t),l=Math.min(l*a,i);var h=c.left+(d-s)/2,p=c.top+(f-l)/2,g={left:h,top:p,x:h,y:p,width:s,height:l,oldRatio:1,ratio:s/t,aspectRatio:o,naturalWidth:t,naturalHeight:i},m=Pe({},g);r.rotatable&&(g.rotate=u.rotate||0,m.rotate=0),r.scalable&&(g.scaleX=u.scaleX||1,g.scaleY=u.scaleY||1,m.scaleX=1,m.scaleY=1),n.imageData=g,n.initialImageData=m,e&&e()})},renderImage:function(e){var t=this,n=this.image,r=this.imageData;if(Ue(n,Pe({width:r.width,height:r.height,marginLeft:r.x,marginTop:r.y},et(r))),this.magnifierPoint&&this.renderMagnifier(),e){var i=!1;if(this.viewing?i="view":this.moving?i="move":this.rotating?i="rotate":this.scaling?i="scale":this.zooming&&(i="zoom"),i&&Le(this.options,i)&&He(n,P)){var o=function(){t.imageRendering=!1,e()};this.imageRendering={abort:function(){Je(n,ee,o)}},Xe(n,ee,o,{once:!0})}else e()}},resetImage:function(){var e=this.image;e&&(this.viewing&&this.viewing.abort(),e.parentNode.removeChild(e),this.image=null,this.title.innerHTML="")}},ut={bind:function(){var e=this.options,t=this.viewer,n=this.canvas,r=this.ownerDocument;Xe(t,O,this.onClick=this.click.bind(this)),Xe(t,$,this.onDragStart=this.dragstart.bind(this)),Xe(t,G,this.onMagnifyEnter=this.magnify.bind(this)),Xe(t,X,this.onMagnify=this.magnify.bind(this)),Xe(t,J,this.onMagnifierLeave=this.hideMagnifier.bind(this)),Xe(n,Y,this.onPointerDown=this.pointerdown.bind(this)),Xe(r,X,this.onPointerMove=this.pointermove.bind(this)),Xe(r,K,this.onPointerUp=this.pointerup.bind(this)),Xe(r,z,this.onKeyDown=this.keydown.bind(this)),Xe(window,Z,this.onResize=this.resize.bind(this)),(e.zoomable&&e.zoomOnWheel||e.slideOnWheel)&&Xe(t,te,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),(e.zoomable&&e.zoomOnGesture||e.rotatable&&e.rotateOnGesture)&&Xe(t,ne,this.onGesture=this.gesture.bind(this),{passive:!1}),e.toggleOnDblclick&&Xe(n,U,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var e=this.options,t=this.viewer,n=this.canvas,r=this.ownerDocument;Je(t,O,this.onClick),Je(t,$,this.onDragStart),Je(t,G,this.onMagnifyEnter),Je(t,X,this.onMagnify),Je(t,J,this.onMagnifierLeave),Je(n,Y,this.onPointerDown),Je(r,X,this.onPointerMove),Je(r,K,this.onPointerUp),Je(r,z,this.onKeyDown),Je(window,Z,this.onResize),(e.zoomable&&e.zoomOnWheel||e.slideOnWheel)&&Je(t,te,this.onWheel,{passive:!1,capture:!0}),(e.zoomable&&e.zoomOnGesture||e.rotatable&&e.rotateOnGesture)&&Je(t,ne,this.onGesture,{passive:!1}),e.toggleOnDblclick&&Je(n,U,this.onDblclick)}},dt={click:function(e){var t=this.options,n=this.imageData,r=e.target,i=Ve(r,we);switch(i||"img"!==r.localName||"li"!==r.parentElement.localName||(i=Ve(r=r.parentElement,we)),h&&e.isTrusted&&r===this.canvas&&clearTimeout(this.clickCanvasTimeout),this.actionEvent=e,i){case"mix":this.played?this.stop():t.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.pointerMoved||this.hide();break;case"view":this.view(Ve(r,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(t.loop);break;case"play":this.play(t.fullscreen);break;case"next":this.next(t.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-n.scaleX||-1);break;case"flip-vertical":this.scaleY(-n.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(e){e.preventDefault(),this.viewed&&e.target===this.image&&(h&&e.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.actionEvent=e.isTrusted?e:e.detail&&e.detail.originalEvent,this.toggle())},load:function(){var e=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var t=this.element,n=this.options,r=this.image,i=this.index,o=this.viewerData;qe(r,N),n.loading&&qe(this.canvas,T),r.style.cssText="height:0;"+"margin-left:".concat(o.width/2,"px;")+"margin-top:".concat(o.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage(function(){je(r,Q,n.movable),je(r,P,Le(n,"view")),e.renderImage(function(){e.viewed=!0,e.viewing=!1,setTimeout(function(){je(r,P,n.transition)},300),Te(n.viewed)&&Xe(t,ce,n.viewed,{once:!0}),Ke(t,ce,{originalImage:e.images[i],index:i,image:r,originalEvent:e.viewOriginalEvent||null},{cancelable:!1}),e.viewOriginalEvent=null})})},loadImage:function(e){var t=e.target,n=t.parentNode,r=n.offsetWidth||30,i=n.offsetHeight||50,o=!!Ve(t,"filled");rt(t,this.options,function(e,n){var a=e/n,s=r,l=i;i*a>r?o?s=i*a:l=r/a:o?l=r/a:s=i*a,Ue(t,Pe({width:s,height:l},et({translateX:(r-s)/2,translateY:(i-l)/2})))})},keydown:function(e){var t=this.options;if(t.keyboard){var n=e.keyCode||e.which||e.charCode;if(this.actionEvent=e,13===n&&this.viewer.contains(e.target)&&this.click(e),this.fulled)switch(n){case 27:this.played?this.stop():t.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.played&&this.playing?this.playing.prev():this.prev(t.loop);break;case 38:e.preventDefault(),this.zoom(t.zoomRatio,!0);break;case 39:this.played&&this.playing?this.playing.next():this.next(t.loop);break;case 40:e.preventDefault(),this.zoom(-t.zoomRatio,!0);break;case 48:case 49:e.ctrlKey&&(e.preventDefault(),this.toggle())}}},dragstart:function(e){"img"===e.target.localName&&e.preventDefault()},magnify:function(e){e.changedTouches||e.pointerType&&"mouse"!==e.pointerType?this.hideMagnifier():(this.magnifierPoint={clientX:e.clientX,clientY:e.clientY},this.renderMagnifier())},renderMagnifier:function(){var e=this.options,t=this.imageData,n=this.magnifier,r=this.magnifierImage,i=this.viewer,o=Ne(e.magnifier)?e.magnifier:{},a=this.magnifierPoint;if(e.magnifier&&this.fulled&&this.viewed&&n&&r&&a){var s=Math.max(1,Number(o.size)||100),l=Math.max(1,Number(o.zoomRatio)||2),c=Number(o.opacity),u=i.getBoundingClientRect(),d=a.clientX-u.left,f=a.clientY-u.top,h=this.image.currentSrc||this.image.src,p=this.image.getBoundingClientRect();if(a.clientX<p.left||a.clientX>p.right||a.clientY<p.top||a.clientY>p.bottom)this.hideMagnifier();else{var g=Be(t.scaleX)?t.scaleX:1,m=Be(t.scaleY)?t.scaleY:1,y=(t.rotate||0)*Math.PI/180,v=Math.cos(y),b=Math.sin(y),A=v*g,w=b*g,x=-b*m,I=v*m,C=g*m;if(0!==C){var S=t.x+t.width/2,E=t.y+t.height/2,k=(-w*(d-S)+A*(f-E))/C,B=(I*(d-S)-x*(f-E))/C+t.width/2,F=k+t.height/2,D=t.width*l,M=t.height*l,N=A*(B*l-D/2)+x*(F*l-M/2),T=w*(B*l-D/2)+I*(F*l-M/2);this.magnifierSourcePoint={x:B,y:F},n.style.width="".concat(s,"px"),n.style.height="".concat(s,"px"),n.style.opacity="".concat(Math.max(0,Math.min(1,Be(c)?c:1))),r.src=h,r.style.width="".concat(D,"px"),r.style.height="".concat(M,"px"),r.style.left="".concat(s/2-D/2-N,"px"),r.style.top="".concat(s/2-M/2-T,"px"),r.style.transform="rotate(".concat(t.rotate||0,"deg) scaleX(").concat(g,") scaleY(").concat(m,")"),n.removeAttribute("aria-hidden"),ze(n,"viewer-show")}else this.hideMagnifier()}}else this.hideMagnifier()},hideMagnifier:function(){this.magnifier&&(qe(this.magnifier,"viewer-show"),this.magnifier.setAttribute("aria-hidden",!0),this.magnifierPoint=null)},pointerdown:function(e){var t=this.options,n=this.pointers,r=this.imageData,i=e.buttons,o=e.button,a=0===Object.keys(n).length;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(Be(i)&&1!==i||Be(o)&&0!==o||e.ctrlKey))){e.preventDefault(),e.changedTouches?Qe(e.changedTouches,function(e){n[e.identifier]=st(e)}):n[e.pointerId||0]=st(e);var s=!!t.movable&&m;(t.zoomable&&t.zoomOnTouch||t.rotatable&&t.rotateOnTouch)&&Object.keys(n).length>1?s=b:t.slideOnTouch&&("touch"===e.pointerType||"touchstart"===e.type)&&this.isSwitchable()&&(s=v),s&&qe(this.image,P),a&&(this.rotateThreshold=0===r.rotate),this.switching=s===v&&{x:r.x,y:r.y},this.action=s}},pointermove:function(e){var t=this.pointers,n=this.action;this.viewed&&n&&(e.preventDefault(),e.changedTouches?Qe(e.changedTouches,function(e){Pe(t[e.identifier]||{},st(e,!0))}):Pe(t[e.pointerId||0]||{},st(e,!0)),this.change(e),qe(this.image,P))},pointerup:function(e){var t,n=this,r=this.options,i=this.action,o=this.pointers,a=this.viewerData;if(e.changedTouches?Qe(e.changedTouches,function(e){t=o[e.identifier],delete o[e.identifier]}):(t=o[e.pointerId||0],delete o[e.pointerId||0]),0===Object.keys(o).length){if(this.rotateThreshold){var s=90*Math.round(this.imageData.rotate/90);s!==this.imageData.rotate&&(this.actionEvent=e,this.rotateTo(s))}this.rotateThreshold=!1}if(i){e.preventDefault();var l=i===b?Le(r,A)||Le(r,y):Le(r,i);if(je(this.image,P,l),i===v&&this.switching){var c=this.imageData,u=this.switching,d=c.x-u.x;this.switching=!1,this.actionEvent=e,Math.abs(d)>a.width/2?d>0?this.prev(r.loop):this.next(r.loop):c.x===u.x&&c.y===u.y||this.moveTo(u.x,u.y)}this.action=!1,h&&i!==A&&i!==b&&t&&Date.now()-t.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),r.toggleOnDblclick&&this.viewed&&e.target===this.image?this.pointerMoved?this.imageClicked=!1:this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){Ke(n.image,U,{originalEvent:e})},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){n.imageClicked=!1},500)):(this.imageClicked=!1,r.backdrop&&"static"!==r.backdrop&&e.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){Ke(n.canvas,O,{originalEvent:e})},50))))}},resize:function(){var e=this;if(this.isShown&&!this.hiding&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),Fe((Ne(this.options.navbar)?this.options.navbar:{}).visibleItemCount)&&this.initList(this.index),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage()}),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement))return void this.stop();Qe(this.player.getElementsByTagName("img"),function(t){Xe(t,q,e.loadImage.bind(e),{once:!0}),Ke(t,q)})}},wheel:function(e){var t=this,n=this.options,r=this.navbar;if(this.viewed&&(e.preventDefault(),!this.gesturing&&!this.wheeling)){this.wheeling=!0,setTimeout(function(){t.wheeling=!1},50);var i=1;if(e.deltaY?i=e.deltaY>0?1:-1:e.wheelDelta?i=-e.wheelDelta/120:e.detail&&(i=e.detail>0?1:-1),(!r||!r.contains(e.target))&&n.zoomable&&Ee(n.zoomOnWheel,e)){var o=Number(n.zoomRatio)||.1;return this.actionEvent=e,void this.zoom(-i*o,!0)}Ee(n.slideOnWheel,e)&&(this.actionEvent=e,i>0?this.next(n.loop):i<0&&this.prev(n.loop))}},gesture:function(e){var t=this.options;if(this.viewed&&(t.zoomOnGesture||t.rotateOnGesture))switch(e.preventDefault(),e.type){case"gesturestart":this.gesturing=!0,this.gestureScale=e.scale||1,this.gestureRotation=e.rotation||0;break;case"gesturechange":var n=e.scale||1,r=n/(this.gestureScale||1),i=Number(e.rotation),o=i-(this.gestureRotation||0);this.gestureScale=n,t.zoomable&&t.zoomOnGesture&&1!==r&&(this.actionEvent=e,this.zoom(r>=1?r-1:1-1/r)),t.rotatable&&t.rotateOnGesture&&Be(i)&&(this.gestureRotation=i,0!==o&&(this.actionEvent=e,this.rotate(o)));break;case"gestureend":if(t.rotatable&&t.rotateOnGesture){var a=90*Math.round(this.imageData.rotate/90);a!==this.imageData.rotate&&(this.actionEvent=e,this.rotateTo(a))}this.gesturing=!1,this.gestureScale=1,this.gestureRotation=0}}},ft={show:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.element,n=this.options;if(n.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(e),this;var r=this.actionEvent||this.showOriginalEvent||this.viewOriginalEvent||null;if(this.actionEvent=null,this.showOriginalEvent=r,Te(n.show)&&Xe(t,ie,n.show,{once:!0}),!1===Ke(t,ie,{originalEvent:r})||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var i=this.viewer;if(qe(i,k),i.setAttribute("role","dialog"),i.setAttribute("aria-labelledby",this.title.id),i.setAttribute("aria-modal",!0),i.removeAttribute("aria-hidden"),Le(n,"show")&&!e){var o=this.shown.bind(this);this.transitioning={abort:function(){Je(i,ee,o),qe(i,M)}},ze(i,P),i.initialOffsetWidth=i.offsetWidth,Xe(i,ee,o,{once:!0}),ze(i,M)}else ze(i,M),this.shown();return this},hide:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.element,r=this.options;if(r.inline||this.hiding||!this.isShown&&!this.showing)return this;var i=this.actionEvent||this.hideOriginalEvent||null;if(this.actionEvent=null,this.hideOriginalEvent=i,Te(r.hide)&&Xe(n,ae,r.hide,{once:!0}),!1===Ke(n,ae,{originalEvent:i})||this.destroyed)return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var o=this.viewer,a=this.image,s=function(){qe(o,M),e.hidden()};if(Le(r,"hide")&&!t){var l=function(t){t&&t.target===o&&(Je(o,ee,l),e.hidden())},c=function(){He(o,P)?(Xe(o,ee,l),qe(o,M)):s()};this.transitioning={abort:function(){e.viewed&&He(a,P)?Je(a,ee,c):He(o,P)&&Je(o,ee,l)}},this.viewed&&He(a,P)?(Xe(a,ee,c,{once:!0}),this.zoomable=!0,this.zoomTo(0,!1)):c()}else s();return this},view:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.initialViewIndex,n=this.index;if(t=Number(t)||0,this.hiding||this.played||t<0||t>=this.length||this.viewed&&t===n)return this;var r=this.actionEvent||this.viewOriginalEvent||null;if(this.actionEvent=null,this.viewOriginalEvent=r,!this.isShown)return this.index=t,this.show();this.viewing&&this.viewing.abort();var i=this.element,o=this.options,a=this.title,s=this.canvas,l=this.getItem(t);l||(this.initList(t),l=this.getItem(t));var c=l.querySelector("img"),u=Ve(c,"originalUrl"),d=c.getAttribute("alt"),f=document.createElement("img");if(Re(f,c,o.inheritedAttributes),f.src=u,f.alt=d,Te(o.view)&&Xe(i,le,o.view,{once:!0}),!1===Ke(i,le,{originalImage:this.images[t],index:t,image:f,originalEvent:r})||!this.isShown||this.hiding||this.played)return this;this.hideMagnifier();var h=this.getItem(n);h&&(qe(h,w),h.removeAttribute("aria-selected")),ze(l,w),l.setAttribute("aria-selected",!0),o.focus&&l.focus(),this.image=f,this.viewed=!1,this.index=t,this.imageData={},ze(f,N),o.loading&&ze(s,T),s.innerHTML="",s.appendChild(f),this.renderList(),a.innerHTML="";var p=function(){var r=e.imageData,i=Array.isArray(o.title)?o.title[1]:o.title;if(a.innerHTML=$e(Te(i)?i.call(e,f,r):"".concat(d," (").concat(r.naturalWidth," × ").concat(r.naturalHeight,")")),o.preload){var s=t<n?-1:1,l=t+s;if((l<0||l>=e.length)&&(l=o.loop?s>0?0:e.length-1:-1),l!==t){var c=e.images[l],u=document.createElement("img");Re(u,c,o.inheritedAttributes),u.src=e.getImageURL(c)||c.src}}};Xe(i,ce,p,{once:!0});var g=function(){var t,n,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=function(){Je(f,q,t),Je(f,j,n),e.timeout&&(clearTimeout(e.timeout),e.timeout=!1)};e.viewing={abort:function(){Je(i,ce,p),f.complete?e.imageRendering?e.imageRendering.abort():e.imageInitializing&&e.imageInitializing.abort():(f.src="",a())}},f.complete?e.load():(Xe(f,q,t=function(){a(),e.load()},{once:!0}),Xe(f,j,n=function(){if(a(),!r){var t=c.src;if(t&&t!==f.src)return f.src=t,void g(!0)}qe(f,N),o.loading&&qe(e.canvas,T)},{once:!0}),e.timeout&&clearTimeout(e.timeout),e.timeout=setTimeout(function(){qe(f,N),e.timeout=!1},1e3))};return g(),this},prev:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.index-1;return t<0&&(t=e?this.length-1:0),this.view(t),this},next:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.length-1,n=this.index+1;return n>t&&(n=e?0:t),this.view(n),this},move:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.imageData;return this.moveTo(Fe(e)?e:n.x+Number(e),Fe(t)?t:n.y+Number(t)),this},moveTo:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=this.element,i=this.options,o=this.imageData;if(e=Number(e),n=Number(n),this.viewed&&!this.played&&i.movable){var a=o.x,s=o.y,l=!1;if(Be(e)?l=!0:e=a,Be(n)?l=!0:n=s,l){var c=this.actionEvent||null;if(this.actionEvent=null,Te(i.move)&&Xe(r,ue,i.move,{once:!0}),!1===Ke(r,ue,{x:e,y:n,oldX:a,oldY:s,originalEvent:c}))return this;o.x=e,o.y=n,o.left=e,o.top=n,je(this.image,P,Le(i,"move")),this.moving=!0,this.renderImage(function(){t.moving=!1,Te(i.moved)&&Xe(r,de,i.moved,{once:!0}),Ke(r,de,{x:e,y:n,oldX:a,oldY:s,originalEvent:c},{cancelable:!1})})}}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e)),this},rotateTo:function(e){var t=this,n=this.element,r=this.options,i=this.imageData;if(Be(e=Number(e))&&this.viewed&&!this.played&&r.rotatable){var o=i.rotate,a=this.actionEvent||null;if(this.actionEvent=null,Te(r.rotate)&&Xe(n,fe,r.rotate,{once:!0}),!1===Ke(n,fe,{degree:e,oldDegree:o,originalEvent:a}))return this;i.rotate=e,je(this.image,P,Le(r,"rotate")),this.rotating=!0,this.renderImage(function(){t.rotating=!1,Te(r.rotated)&&Xe(n,he,r.rotated,{once:!0}),Ke(n,he,{degree:e,oldDegree:o,originalEvent:a},{cancelable:!1})})}return this},scaleX:function(e){return this.scale(e,this.imageData.scaleY),this},scaleY:function(e){return this.scale(this.imageData.scaleX,e),this},scale:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=this.element,i=this.options,o=this.imageData;if(e=Number(e),n=Number(n),this.viewed&&!this.played&&i.scalable){var a=o.scaleX,s=o.scaleY,l=!1;if(Be(e)?l=!0:e=a,Be(n)?l=!0:n=s,l){var c=this.actionEvent||null;if(this.actionEvent=null,Te(i.scale)&&Xe(r,pe,i.scale,{once:!0}),!1===Ke(r,pe,{scaleX:e,scaleY:n,oldScaleX:a,oldScaleY:s,originalEvent:c}))return this;o.scaleX=e,o.scaleY=n,je(this.image,P,Le(i,"scale")),this.scaling=!0,this.renderImage(function(){t.scaling=!1,Te(i.scaled)&&Xe(r,ge,i.scaled,{once:!0}),Ke(r,ge,{scaleX:e,scaleY:n,oldScaleX:a,oldScaleY:s,originalEvent:c},{cancelable:!1})})}}return this},zoom:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.imageData;return e=(e=Number(e))<0?1/(1-e):1+e,this.zoomTo(r.width*e/r.naturalWidth,t,n),this},zoomTo:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.element,o=this.options,a=this.pointers,s=this.imageData,l=this.zoomable,c=s.x,u=s.y,d=s.width,f=s.height,h=s.naturalWidth,p=s.naturalHeight;if(this.zoomable=!1,Be(e=Math.max(0,e))&&this.viewed&&!this.played&&(l||o.zoomable)){if(!l){var g=Math.max(.01,Te(o.minZoomRatio)?o.minZoomRatio.call(this,this.image,s):o.minZoomRatio),m=Math.min(100,Te(o.maxZoomRatio)?o.maxZoomRatio.call(this,this.image,s):o.maxZoomRatio);e=Math.min(Math.max(e,g),m)}var y=this.actionEvent||null;if(this.actionEvent=null,y&&y.type!==O)switch(y.type){case"wheel":o.zoomRatio>=.055&&e>.95&&e<1.05&&(e=1);break;case"pointermove":case"touchmove":case"mousemove":e>.99&&e<1.01&&(e=1)}var v=h*e,b=p*e,A=v-d,w=b-f,x=s.ratio;if(Te(o.zoom)&&Xe(i,me,o.zoom,{once:!0}),!1===Ke(i,me,{ratio:e,oldRatio:x,originalEvent:y}))return this;if(this.zooming=!0,y&&y.type!==O){var I=Ze(this.viewer),C=a&&Object.keys(a).length>0?lt(a):{pageX:y.pageX,pageY:y.pageY};s.x-=A*((C.pageX-I.left-c)/d),s.y-=w*((C.pageY-I.top-u)/f)}else Ne(r)&&Be(r.x)&&Be(r.y)?(s.x-=A*((r.x-c)/d),s.y-=w*((r.y-u)/f)):(s.x-=A/2,s.y-=w/2);s.left=s.x,s.top=s.y,s.width=v,s.height=b,s.oldRatio=x,s.ratio=e,je(this.image,P,Le(o,"zoom")),this.renderImage(function(){t.zooming=!1,Te(o.zoomed)&&Xe(i,ye,o.zoomed,{once:!0}),Ke(i,ye,{ratio:e,oldRatio:x,originalEvent:y},{cancelable:!1})}),n&&this.tooltip()}return this},play:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isShown||this.played)return this;var n=this.element,r=this.options,i=this.actionEvent||null;if(this.actionEvent=null,Te(r.play)&&Xe(n,ve,r.play,{once:!0}),!1===Ke(n,ve,{originalEvent:i}))return this;var o=this.player,a=this.loadImage.bind(this),s=[],l=0,c=0;if(this.played=!0,this.onLoadWhenPlay=a,t&&this.requestFullscreen(t),ze(o,L),o.removeAttribute("aria-hidden"),Qe(this.images,function(t,n){var i=document.createElement("img");i.src=e.getImageURL(t)||t.src,i.alt=t.alt||"",i.referrerPolicy=t.referrerPolicy,l+=1,ze(i,I),je(i,P,Le(r,"play")),n===e.index&&(ze(i,M),c=n),s.push(i),Xe(i,q,a,{once:!0}),o.appendChild(i)}),Be(r.interval)&&r.interval>0){var u=function(){clearTimeout(e.playing.timeout);var t=e.actionEvent||null;e.actionEvent=null;var i=c-1;i=i>=0?i:l-1,Te(r.playing)&&Xe(n,be,r.playing,{once:!0}),!1!==Ke(n,be,{originalImage:e.images[i],index:i,image:s[i],originalEvent:t})?(qe(s[c],M),ze(s[c=i],M),e.playing.timeout=r.autoplay?setTimeout(u,r.interval):null):e.playing.timeout=r.autoplay?setTimeout(u,r.interval):null},d=function(){clearTimeout(e.playing.timeout);var t=e.actionEvent||null;e.actionEvent=null;var i=c+1;i=i<l?i:0,Te(r.playing)&&Xe(n,be,r.playing,{once:!0}),!1!==Ke(n,be,{originalImage:e.images[i],index:i,image:s[i],originalEvent:t})?(qe(s[c],M),ze(s[c=i],M),e.playing.timeout=r.autoplay?setTimeout(d,r.interval):null):e.playing.timeout=r.autoplay?setTimeout(d,r.interval):null};l>1&&(this.playing={prev:u,next:d,timeout:r.autoplay?setTimeout(d,r.interval):null})}return this},stop:function(){var e=this;if(!this.played)return this;var t=this.element,n=this.options,r=this.actionEvent||null;if(this.actionEvent=null,Te(n.stop)&&Xe(t,Ae,n.stop,{once:!0}),!1===Ke(t,Ae,{originalEvent:r}))return this;var i=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,Qe(i.getElementsByTagName("img"),function(t){Je(t,q,e.onLoadWhenPlay)}),qe(i,L),i.setAttribute("aria-hidden",!0),i.innerHTML="",this.exitFullscreen(),this},full:function(){var e=this,t=this.options,n=this.viewer,r=this.image,i=this.list;return!this.isShown||this.played||this.fulled||!t.inline||(this.fulled=!0,this.open(),ze(this.button,E),qe(i,P),this.viewed&&qe(r,P),ze(n,C),n.setAttribute("role","dialog"),n.setAttribute("aria-labelledby",this.title.id),n.setAttribute("aria-modal",!0),n.removeAttribute("style"),Ue(n,{zIndex:t.zIndex}),t.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=Pe({},this.containerData),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage()})),this},exit:function(){var e=this,t=this.options,n=this.viewer,r=this.image,i=this.list;return this.isShown&&!this.played&&this.fulled&&t.inline?(this.fulled=!1,this.close(),qe(this.button,E),qe(i,P),this.viewed&&qe(r,P),t.focus&&this.clearEnforceFocus(),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),qe(n,C),Ue(n,{zIndex:t.zIndexInline}),this.viewerData=Pe({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage()}),this):this},tooltip:function(){var e=this,t=this.options,n=this.tooltipBox,r=this.imageData;return this.viewed&&!this.played&&t.tooltip?(n.textContent="".concat(Math.round(100*r.ratio),"%"),this.tooltipping?clearTimeout(this.tooltipping):Le(t,"tooltip")?(this.fading&&Ke(n,ee),ze(n,L),ze(n,I),ze(n,P),n.removeAttribute("aria-hidden"),n.initialOffsetWidth=n.offsetWidth,ze(n,M)):(ze(n,L),n.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){Le(t,"tooltip")?(Xe(n,ee,function(){qe(n,L),qe(n,I),qe(n,P),n.setAttribute("aria-hidden",!0),e.fading=!1},{once:!0}),qe(n,M),e.fading=!0):(qe(n,L),n.setAttribute("aria-hidden",!0)),e.tooltipping=!1},1e3),this):this},toggle:function(){return 1===this.imageData.ratio?this.zoomTo(this.imageData.oldRatio,!0):this.zoomTo(1,!0),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=Pe({},this.initialImageData),this.renderImage()),this},update:function(e){var t=this,n=this.element,r=this.options,i=this.isImg;if(Ne(e)&&Pe(r,e),i&&!n.parentNode)return this.destroy();var o=[];if(Qe(i?[n]:n.querySelectorAll("img"),function(e){Te(r.filter)?r.filter.call(t,e)&&o.push(e):t.getImageURL(e)&&o.push(e)}),!o.length)return this;if(this.images=o,this.length=o.length,this.ready){var a=[];if(Qe(this.items,function(e){var t=e.querySelector("img"),n=Number(Ve(e,"index")),r=o[n];r&&t&&r.src===t.src&&r.alt===t.alt||a.push(n)}),Ue(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var s=a.indexOf(this.index);if(s>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-s,this.length-1),0));else{var l=this.getItem(this.index);ze(l,w),l.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var e=this.element,t=this.options;return e[g]?(this.destroyed=!0,this.ready?(this.played&&this.stop(),t.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):t.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),t.inline||(Je(e,O,this.onElementClick),Je(e,z,this.onElementKeyDown)),e[g]=void 0,this):this}},ht={getImageURL:function(e){var t=this.options.url;return t=Ce(t)?e.getAttribute(t):Te(t)?t.call(this,e):""},enforceFocus:function(){var e=this;this.clearEnforceFocus(),Xe(document,H,this.onFocusin=function(t){var n=e.viewer,r=t.target;if(r!==document&&r!==n&&!n.contains(r)){for(;r;){if(null!==r.getAttribute("tabindex")||"true"===r.getAttribute("aria-modal"))return;r=r.parentElement}n.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(Je(document,H,this.onFocusin),this.onFocusin=null)},open:function(){var e=this.body;ze(e,R),this.scrollbarWidth>0&&(e.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var e=this.body;qe(e,R),this.scrollbarWidth>0&&(e.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var e=this.element,t=this.options,n=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,t.focus&&(n.focus(),this.enforceFocus()),Te(t.shown)&&Xe(e,oe,t.shown,{once:!0}),!1!==Ke(e,oe,{originalEvent:this.showOriginalEvent||null})&&(this.showOriginalEvent=null,this.ready&&this.isShown&&!this.hiding&&this.view(this.index))},hidden:function(){var e=this.element,t=this.options,n=this.viewer,r=n.ownerDocument.activeElement;r&&n.contains(r)&&Te(r.blur)&&r.blur(),t.focus&&this.clearEnforceFocus(),this.close(),this.unbind(),ze(n,k),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),n.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.hiding=!1,this.destroyed||(Te(t.hidden)&&Xe(e,se,t.hidden,{once:!0}),Ke(e,se,{originalEvent:this.hideOriginalEvent||null},{cancelable:!1}),this.hideOriginalEvent=null)},requestFullscreen:function(e){var t=this.ownerDocument;if(this.fulled&&!(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)){var n=t.documentElement;n.requestFullscreen?Ne(e)?n.requestFullscreen(e):n.requestFullscreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):n.mozRequestFullScreen?n.mozRequestFullScreen():n.msRequestFullscreen&&n.msRequestFullscreen()}},exitFullscreen:function(){var e=this.ownerDocument;this.fulled&&(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement)&&(e.exitFullscreen?e.exitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen())},change:function(e){var t=this.options,n=this.pointers,r=n[Object.keys(n)[0]];if(r){var i=r.endX-r.startX,o=r.endY-r.startY;switch(this.action){case m:0===i&&0===o||(this.pointerMoved=!0,this.actionEvent=e,this.move(i,o));break;case A:if(t.zoomable&&t.zoomOnTouch){var a=ot(n);0!==a&&(this.actionEvent=e,this.zoom(a))}break;case y:if(t.rotatable&&t.rotateOnTouch){var s=at(n);0!==s&&(this.actionEvent=e,this.rotate(s))}break;case b:if(t.zoomable&&t.zoomOnTouch){var l=ot(n);0!==l&&(this.actionEvent=e,this.zoom(l))}if(t.rotatable&&t.rotateOnTouch){var c=at(n);0!==c&&(this.actionEvent=e,this.rotate(c))}break;case v:var u=Math.abs(i);u>1&&u>Math.abs(o)&&(this.pointerMoved=!0,this.actionEvent=e,this.move(i,0))}Qe(n,function(e){e.startX=e.endX,e.startY=e.endY})}},isSwitchable:function(){var e=this.imageData,t=this.viewerData;return this.length>1&&e.x>=0&&e.y>=0&&e.width<=t.width&&e.height<=t.height}},pt=f.Viewer,gt=function(e){return function(){return e+=1}}(-1),mt=function(){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e(this,t),!n||1!==n.nodeType&&11!==n.nodeType)throw new Error("The first argument is required and must be an element.");this.element=n,this.ownerDocument=n.ownerDocument||n.host.ownerDocument,this.options=Pe({},c,Ne(r)&&r),this.action=!1,this.actionEvent=null,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zoomable=!1,this.zooming=!1,this.pointerMoved=!1,this.id=gt(),this.init()}return n(t,[{key:"init",value:function(){var e=this,t=this.element,n=this.options;if(!t[g]){t[g]=this,n.focus&&!n.keyboard&&(n.focus=!1);var r="img"===t.localName,i=[];if(Qe(r?[t]:t.querySelectorAll("img"),function(t){Te(n.filter)?n.filter.call(e,t)&&i.push(t):e.getImageURL(t)&&i.push(t)}),this.isImg=r,this.length=i.length,this.images=i,this.initBody(),Fe(this.ownerDocument.createElement(g).style.transition)&&(n.transition=!1),n.inline){var o=0,a=function(){var t;(o+=1)===e.length&&(e.initializing=!1,e.delaying={abort:function(){clearTimeout(t)}},t=setTimeout(function(){e.delaying=!1,e.build()},0))};this.initializing={abort:function(){Qe(i,function(e){e.complete||(Je(e,q,a),Je(e,j,a))})}},Qe(i,function(e){var t,n;e.complete?a():(Xe(e,q,t=function(){Je(e,j,n),a()},{once:!0}),Xe(e,j,n=function(){Je(e,q,t),a()},{once:!0}))})}else Xe(t,O,this.onElementClick=function(t){var r=t.target;"img"!==r.localName||Te(n.filter)&&!n.filter.call(e,r)||(e.actionEvent=t,e.view(e.images.indexOf(r)))}),Xe(t,z,this.onElementKeyDown=function(t){var r=t.target,i=t.key;"img"!==r.localName||"Enter"!==i&&" "!==i||(t.preventDefault(),Te(n.filter)&&!n.filter.call(e,r)||(e.actionEvent=t,e.view(e.images.indexOf(r))))})}}},{key:"build",value:function(){var e=this;if(!this.ready){var t=this.element,n=this.options,r=t.parentNode,i=document.createElement("div");i.innerHTML=u;var o=i.querySelector(".".concat(g,"-container")),a=o.querySelector(".".concat(g,"-title")),s=o.querySelector(".".concat(g,"-toolbar")),l=o.querySelector(".".concat(g,"-navbar")),c=o.querySelector(".".concat(g,"-navigation")),d=o.querySelector(".".concat(g,"-button")),f=o.querySelector(".".concat(g,"-canvas"));this.parent=r,this.viewer=o,this.title=a,this.toolbar=s,this.navbar=l,this.navigation=c,this.button=d,this.canvas=f,this.magnifier=o.querySelector(".".concat(g,"-magnifier")),this.magnifierImage=o.querySelector(".".concat(g,"-magnifier-image")),this.tooltipBox=o.querySelector(".".concat(g,"-tooltip")),this.player=o.querySelector(".".concat(g,"-player")),this.list=o.querySelector(".".concat(g,"-list")),o.id="".concat(g).concat(this.id),a.id="".concat(g,"Title").concat(this.id),ze(a,n.title?it(Array.isArray(n.title)?n.title[0]:n.title):k),n.title&&a.removeAttribute("aria-hidden");var h=Ne(n.navbar)?n.navbar:{},p=n.navbar,m=Fe(h.size)?n.navbar:h.size,y=-1!==["top","right","bottom","left"].indexOf(h.position)?h.position:"bottom";Ne(n.navbar)&&(p=!!Fe(h.show)||h.show),ze(l,p?it(p):k),p&&l.removeAttribute("aria-hidden"),-1!==["small","medium","large"].indexOf(m)&&ze(l,"".concat(g,"-").concat(m));var v="left"===y||"right"===y;if(this.isNavbarVertical=v,ze(l,"".concat(g,"-navbar-").concat(y)),p){var b=v?c:a,A=v?"navigation":"title";ze(b,"".concat(g,"-").concat(A,"-navbar-").concat(y)),v&&ze(a,"".concat(g,"-title-navbar-").concat(y)),-1!==["small","large"].indexOf(m)&&(ze(b,"".concat(g,"-").concat(A,"-navbar-").concat(v?"".concat(y,"-"):"").concat(m)),v&&ze(a,"".concat(g,"-title-navbar-").concat(y,"-").concat(m)))}if(Ne(n.navigation)?Qe(c.querySelectorAll('[role="button"]'),function(e){var t=Ve(e,we),r=n.navigation[t],i=Ne(r),o=i&&!Fe(r.show)?r.show:r,a=i&&!Fe(r.size)?r.size:r;je(e,k,!o),Be(o)&&ze(e,it(o)),-1!==["small","large"].indexOf(a)&&ze(e,"".concat(g,"-").concat(a))}):ze(c,n.navigation?it(n.navigation):k),n.navigation&&c.removeAttribute("aria-hidden"),je(d,k,!n.button),n.button&&d.removeAttribute("aria-hidden"),n.keyboard&&(d.setAttribute("tabindex",0),Qe(c.querySelectorAll('[role="button"]'),function(e){e.setAttribute("tabindex",0)})),n.backdrop&&(ze(o,"".concat(g,"-backdrop")),n.inline||"static"===n.backdrop||Ye(f,we,"hide")),Ce(n.className)&&n.className&&n.className.split(xe).forEach(function(e){ze(o,e)}),n.toolbar){var w=document.createElement("ul"),E=Ne(n.toolbar),B=E&&-1!==["top","right","bottom","left"].indexOf(n.toolbar.position)?n.toolbar.position:"bottom",F=Ie.slice(0,3),D=Ie.slice(7,9),M=Ie.slice(9);E||ze(s,it(n.toolbar)),s.removeAttribute("aria-hidden"),ze(s,"".concat(g,"-toolbar-").concat(B)),ze(a,"".concat(g,"-title-toolbar-").concat(B)),p&&B===y&&(ze(s,"".concat(g,"-toolbar-navbar-").concat(y)),-1!==["small","large"].indexOf(m)&&ze(s,"".concat(g,"-toolbar-navbar-").concat(m))),Qe(E?n.toolbar:Ie,function(t,r){if("position"!==r){var i=E&&Ne(t),o=E?_e(r):t,a=i&&!Fe(t.show)?t.show:t;if(a&&(n.zoomable||-1===F.indexOf(o))&&(n.rotatable||-1===D.indexOf(o))&&(n.scalable||-1===M.indexOf(o))){var s=i&&!Fe(t.size)?t.size:t,l=i&&!Fe(t.click)?t.click:t,c=document.createElement("li");n.keyboard&&c.setAttribute("tabindex",0),c.setAttribute("role","button"),ze(c,"".concat(g,"-").concat(o)),Te(l)||Ye(c,we,o),Be(a)&&ze(c,it(a)),-1!==["small","large"].indexOf(s)?ze(c,"".concat(g,"-").concat(s)):"play"===o&&ze(c,"".concat(g,"-large")),Te(l)&&Xe(c,O,l.bind(e)),w.appendChild(c)}}}),s.appendChild(w),"left"!==B&&"right"!==B||ze(c,"".concat(g,"-navigation-toolbar-").concat(B))}else ze(s,k);if(!n.rotatable){var T=s.querySelectorAll('li[class*="rotate"]');ze(T,N),Qe(T,function(e){s.appendChild(e)})}if(n.inline)ze(d,S),Ue(o,{zIndex:n.zIndexInline}),"static"===window.getComputedStyle(r).position&&Ue(r,{position:"relative"}),r.insertBefore(o,t.nextSibling);else{ze(d,x),ze(o,C),ze(o,I),ze(o,k),Ue(o,{zIndex:n.zIndex});var Q=n.container;Ce(Q)&&(Q=this.ownerDocument.querySelector(Q)),Q||(Q=this.body),Q.appendChild(o)}n.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,Te(n.ready)&&Xe(t,re,n.ready,{once:!0}),!1!==Ke(t,re)?this.ready&&n.inline&&this.view(this.index):this.ready=!1}}}],[{key:"create",value:function(e,n){return new t(e,n)}},{key:"setDefaults",value:function(e){Pe(c,Ne(e)&&e)}},{key:"noConflict",value:function(){return window.Viewer=pt,t}}])}();return Pe(mt.prototype,ct,ut,dt,ft,ht),mt}()}(vI);var bI=Sr(vI.exports);function AI(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}function wI(e,t,n){(void 0!==n&&!ee(e[t],n)||void 0===n&&!(t in e))&&ei(e,t,n)}function xI(e){return D(e)&&ft(e)}function II(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function CI(e,t,n,r,i,o,a){var s=II(e,n),l=II(t,n),c=a.get(l);if(c)wI(e,n,c);else{var u,d=o?o(s,l,n+"",e,t,a):void 0,f=void 0===d;if(f){var h=v(l),p=!h&&_e(l),g=!h&&!p&&rt(l);d=l,h||p||g?v(s)?d=s:xI(s)?d=Cn(s):p?(f=!1,d=di(l,!0)):g?(f=!1,d=Ai(l,!0)):d=[]:Iu(l)||ze(l)?(d=s,ze(s)?d=ri(u=s,ai(u)):R(s)&&!L(s)||(d=Ci(l))):f=!1}f&&(a.set(l,d),i(d,l,r,o,a),a.delete(l)),wI(e,n,d)}}function SI(e,t,n,r,i){e!==t&&Re(t,function(o,a){if(i||(i=new yt),R(o))CI(e,t,a,n,SI,r,i);else{var s=r?r(II(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),wI(e,a,s)}},ai)}AI("/*!\n * Viewer.js v1.15.2\n * https://fengyuanchen.github.io/viewerjs\n *\n * Copyright 2015-present Chen Fengyuan\n * Released under the MIT license\n *\n * Date: 2026-10-01T05:04:36.958Z\n */\n\n.viewer-zoom-in::before, .viewer-zoom-out::before, .viewer-one-to-one::before, .viewer-reset::before, .viewer-prev::before, .viewer-play::before, .viewer-next::before, .viewer-rotate-left::before, .viewer-rotate-right::before, .viewer-flip-horizontal::before, .viewer-flip-vertical::before, .viewer-fullscreen::before, .viewer-fullscreen-exit::before, .viewer-close::before {\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 560 40%22%3E%3Cpath fill%3D%22%23fff%22 d%3D%22M49.6 17.9h20.2v3.9H49.6zm123.1 2 10.9-11 2.7 2.8-8.2 8.2 8.2 8.2-2.7 2.7-10.9-10.9zm94 0-10.8-11-2.7 2.8 8.1 8.2-8.1 8.2 2.7 2.7 10.8-10.9zM212 9.3l20.1 10.6L212 30.5V9.3zm161.5 4.6-7.2 6 7.2 5.9v-4h12.4v4l7.3-5.9-7.3-6v4h-12.4v-4zm40.2 12.3 5.9 7.2 5.9-7.2h-4V13.6h4l-5.9-7.3-5.9 7.3h4v12.6h-4zm35.9-16.5h6.3v2h-4.3V16h-2V9.7Zm14 0h6.2V16h-2v-4.3h-4.2v-2Zm6.2 14V30h-6.2v-2h4.2v-4.3h2Zm-14 6.3h-6.2v-6.3h2v4.4h4.3v2Zm-438 .1v-8.3H9.6v-3.9h8.2V9.7h3.9v8.2h8.1v3.9h-8.1v8.3h-3.9zM93.6 9.7h-5.8v3.9h2V30h3.8V9.7zm16.1 0h-5.8v3.9h1.9V30h3.9V9.7zm-11.9 4.1h3.9v3.9h-3.9zm0 8.2h3.9v3.9h-3.9zm244.6-11.7 7.2 5.9-7.2 6v-3.6c-5.4-.4-7.8.8-8.7 2.8-.8 1.7-1.8 4.9 2.8 8.2-6.3-2-7.5-6.9-6-11.3 1.6-4.4 8-5 11.9-4.9v-3.1Zm147.2 13.4h6.3V30h-2v-4.3h-4.3v-2zm14 6.3v-6.3h6.2v2h-4.3V30h-1.9zm6.2-14h-6.2V9.7h1.9V14h4.3v2zm-13.9 0h-6.3v-2h4.3V9.7h2V16zm33.3 12.5 8.6-8.6-8.6-8.7 1.9-1.9 8.6 8.7 8.6-8.7 1.9 1.9-8.6 8.7 8.6 8.6-1.9 2-8.6-8.7-8.6 8.7-1.9-2zM297 10.3l-7.1 5.9 7.2 6v-3.6c5.3-.4 7.7.8 8.7 2.8.8 1.7 1.7 4.9-2.9 8.2 6.3-2 7.5-6.9 6-11.3-1.6-4.4-7.9-5-11.8-4.9v-3.1Zm-157.3-.6c2.3 0 4.4.7 6 2l2.5-3 1.9 9.2h-9.3l2.6-3.1a6.2 6.2 0 0 0-9.9 5.1c0 3.4 2.8 6.3 6.2 6.3 2.8 0 5.1-1.9 6-4.4h4c-1 4.7-5 8.3-10 8.3a10 10 0 0 1-10-10.2 10 10 0 0 1 10-10.2Z%22%2F%3E%3C%2Fsvg%3E\");\n background-repeat: no-repeat;\n background-size: 280px;\n color: transparent;\n display: block;\n font-size: 0;\n height: 20px;\n line-height: 0;\n width: 20px;\n }\n\n.viewer-zoom-in::before {\n background-position: 0 0;\n content: 'Zoom In';\n}\n\n.viewer-zoom-out::before {\n background-position: -20px 0;\n content: 'Zoom Out';\n}\n\n.viewer-one-to-one::before {\n background-position: -40px 0;\n content: 'One to One';\n}\n\n.viewer-reset::before {\n background-position: -60px 0;\n content: 'Reset';\n}\n\n.viewer-prev::before {\n background-position: -80px 0;\n content: 'Previous';\n}\n\n.viewer-play::before {\n background-position: -100px 0;\n content: 'Play';\n}\n\n.viewer-next::before {\n background-position: -120px 0;\n content: 'Next';\n}\n\n.viewer-rotate-left::before {\n background-position: -140px 0;\n content: 'Rotate Left';\n}\n\n.viewer-rotate-right::before {\n background-position: -160px 0;\n content: 'Rotate Right';\n}\n\n.viewer-flip-horizontal::before {\n background-position: -180px 0;\n content: 'Flip Horizontal';\n}\n\n.viewer-flip-vertical::before {\n background-position: -200px 0;\n content: 'Flip Vertical';\n}\n\n.viewer-fullscreen::before {\n background-position: -220px 0;\n content: 'Enter Full Screen';\n}\n\n.viewer-fullscreen-exit::before {\n background-position: -240px 0;\n content: 'Exit Full Screen';\n}\n\n.viewer-close::before {\n background-position: -260px 0;\n content: 'Close';\n}\n\n.viewer-container {\n bottom: 0;\n direction: ltr;\n font-size: 0;\n left: 0;\n line-height: 0;\n overflow: hidden;\n position: absolute;\n right: 0;\n -webkit-tap-highlight-color: transparent;\n top: 0;\n -ms-touch-action: none;\n touch-action: none;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.viewer-container::-moz-selection, .viewer-container *::-moz-selection {\n background-color: transparent;\n }\n\n.viewer-container::selection,\n .viewer-container *::selection {\n background-color: transparent;\n }\n\n.viewer-container:focus {\n outline: 0;\n }\n\n.viewer-container img {\n display: block;\n height: auto;\n max-height: none !important;\n max-width: none !important;\n min-height: 0 !important;\n min-width: 0 !important;\n width: 100%;\n }\n\n.viewer-canvas {\n bottom: 0;\n left: 0;\n overflow: hidden;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.viewer-canvas > img {\n height: auto;\n margin: 15px auto;\n max-width: 90% !important;\n width: auto;\n }\n\n.viewer-magnifier {\n background-color: #fff;\n background-repeat: no-repeat;\n border: 2px solid #fff;\n border-radius: 50%;\n box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);\n box-sizing: border-box;\n display: none;\n left: 16px;\n overflow: hidden;\n pointer-events: none;\n position: absolute;\n top: 16px;\n z-index: 2;\n}\n\n.viewer-magnifier.viewer-show {\n display: block;\n }\n\n.viewer-magnifier-image {\n left: 0;\n max-width: none !important;\n position: absolute;\n top: 0;\n -ms-transform-origin: center;\n transform-origin: center;\n}\n\n.viewer-navigation {\n left: 0;\n position: absolute;\n right: 0;\n top: 50%;\n}\n\n.viewer-navigation > .viewer-prev,\n .viewer-navigation > .viewer-next {\n background-color: rgba(0, 0, 0, 0.5);\n border-radius: 50%;\n cursor: pointer;\n height: 40px;\n margin-top: -20px;\n position: absolute;\n width: 40px;\n }\n\n.viewer-navigation > .viewer-prev:focus,\n .viewer-navigation > .viewer-next:focus,\n .viewer-navigation > .viewer-prev:hover,\n .viewer-navigation > .viewer-next:hover {\n background-color: rgba(0, 0, 0, 0.8);\n }\n\n.viewer-navigation > .viewer-prev:focus, .viewer-navigation > .viewer-next:focus {\n box-shadow: 0 0 3px #fff;\n outline: 0;\n }\n\n.viewer-navigation > .viewer-prev::before, .viewer-navigation > .viewer-next::before {\n margin: 10px;\n }\n\n.viewer-navigation > .viewer-prev {\n left: 15px;\n }\n\n.viewer-navigation > .viewer-next {\n right: 15px;\n }\n\n.viewer-navigation > .viewer-large {\n height: 48px;\n margin-top: -24px;\n width: 48px;\n }\n\n.viewer-navigation > .viewer-large::before {\n margin: 14px;\n }\n\n.viewer-navigation > .viewer-small {\n height: 32px;\n margin-top: -16px;\n width: 32px;\n }\n\n.viewer-navigation > .viewer-small::before {\n margin: 6px;\n }\n\n.viewer-navigation-toolbar-left > .viewer-prev {\n left: 51px;\n}\n\n.viewer-navigation-toolbar-right > .viewer-next {\n right: 51px;\n}\n\n.viewer-navigation-navbar-left > .viewer-prev {\n left: 67px;\n}\n\n.viewer-navigation-navbar-right > .viewer-next {\n right: 67px;\n}\n\n.viewer-navigation-navbar-left-small > .viewer-prev {\n left: 57px;\n}\n\n.viewer-navigation-navbar-right-small > .viewer-next {\n right: 57px;\n}\n\n.viewer-navigation-navbar-left-large > .viewer-prev {\n left: 77px;\n}\n\n.viewer-navigation-navbar-right-large > .viewer-next {\n right: 77px;\n}\n\n.viewer-navigation.viewer-navigation-toolbar-left.viewer-navigation-navbar-left > .viewer-prev {\n left: 103px;\n}\n\n.viewer-navigation.viewer-navigation-toolbar-left.viewer-navigation-navbar-left.viewer-navigation-navbar-left-small > .viewer-prev {\n left: 93px;\n}\n\n.viewer-navigation.viewer-navigation-toolbar-left.viewer-navigation-navbar-left.viewer-navigation-navbar-left-large > .viewer-prev {\n left: 113px;\n}\n\n.viewer-navigation.viewer-navigation-toolbar-right.viewer-navigation-navbar-right > .viewer-next {\n right: 103px;\n}\n\n.viewer-navigation.viewer-navigation-toolbar-right.viewer-navigation-navbar-right.viewer-navigation-navbar-right-small > .viewer-next {\n right: 93px;\n}\n\n.viewer-navigation.viewer-navigation-toolbar-right.viewer-navigation-navbar-right.viewer-navigation-navbar-right-large > .viewer-next {\n right: 113px;\n}\n\n.viewer-navbar {\n background-color: rgba(0, 0, 0, 0.5);\n bottom: 0;\n left: 0;\n overflow: hidden;\n position: absolute;\n right: 0;\n}\n\n.viewer-navbar.viewer-small > .viewer-list {\n height: 40px;\n\n > li {\n height: 40px;\n width: 24px;\n }\n }\n\n.viewer-navbar.viewer-large > .viewer-list {\n height: 60px;\n\n > li {\n height: 60px;\n width: 36px;\n }\n }\n\n.viewer-navbar-top {\n bottom: auto;\n top: 0;\n}\n\n.viewer-navbar-left,\n.viewer-navbar-right {\n bottom: 0;\n top: 0;\n width: 52px;\n\n > .viewer-list {\n height: auto;\n padding: 0 1px;\n width: 50px;\n\n > li {\n float: none;\n height: 30px;\n width: 50px;\n }\n\n > li + li {\n margin-left: 0;\n margin-top: 1px;\n }\n }\n}\n\n.viewer-navbar-left.viewer-small, .viewer-navbar-right.viewer-small {\n width: 42px;\n\n > .viewer-list {\n width: 40px;\n\n > li {\n height: 24px;\n width: 40px;\n }\n }\n }\n\n.viewer-navbar-left.viewer-large, .viewer-navbar-right.viewer-large {\n width: 62px;\n\n > .viewer-list {\n width: 60px;\n\n > li {\n height: 36px;\n width: 60px;\n }\n }\n }\n\n.viewer-navbar-left {\n right: auto;\n}\n\n.viewer-navbar-right {\n left: auto;\n}\n\n.viewer-list {\n box-sizing: content-box;\n height: 50px;\n margin: 0;\n overflow: hidden;\n padding: 1px 0;\n}\n\n.viewer-list > li {\n color: transparent;\n cursor: pointer;\n float: left;\n font-size: 0;\n height: 50px;\n line-height: 0;\n opacity: 0.5;\n overflow: hidden;\n transition: opacity 0.15s;\n width: 30px;\n }\n\n.viewer-list > li:focus,\n .viewer-list > li:hover {\n opacity: 0.75;\n }\n\n.viewer-list > li:focus {\n outline: 0;\n }\n\n.viewer-list > li + li {\n margin-left: 1px;\n }\n\n.viewer-list > .viewer-loading {\n position: relative;\n }\n\n.viewer-list > .viewer-loading::after {\n border-width: 2px;\n height: 20px;\n margin-left: -10px;\n margin-top: -10px;\n width: 20px;\n }\n\n.viewer-list > .viewer-active,\n .viewer-list > .viewer-active:focus,\n .viewer-list > .viewer-active:hover {\n opacity: 1;\n }\n\n.viewer-player {\n background-color: #000;\n bottom: 0;\n cursor: none;\n display: none;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 1;\n}\n\n.viewer-player > img {\n left: 0;\n position: absolute;\n top: 0;\n }\n\n.viewer-toolbar {\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n text-align: center;\n}\n\n.viewer-toolbar.viewer-toolbar-top {\n bottom: auto;\n top: 0;\n }\n\n.viewer-toolbar.viewer-toolbar-navbar-top {\n top: 52px;\n }\n\n.viewer-toolbar.viewer-toolbar-navbar-top.viewer-toolbar-navbar-small {\n top: 42px;\n }\n\n.viewer-toolbar.viewer-toolbar-navbar-top.viewer-toolbar-navbar-large {\n top: 62px;\n }\n\n.viewer-toolbar.viewer-toolbar-navbar-right {\n right: 52px;\n }\n\n.viewer-toolbar.viewer-toolbar-navbar-right.viewer-toolbar-navbar-small {\n right: 42px;\n }\n\n.viewer-toolbar.viewer-toolbar-navbar-right.viewer-toolbar-navbar-large {\n right: 62px;\n }\n\n.viewer-toolbar.viewer-toolbar-navbar-bottom {\n bottom: 52px;\n }\n\n.viewer-toolbar.viewer-toolbar-navbar-bottom.viewer-toolbar-navbar-small {\n bottom: 42px;\n }\n\n.viewer-toolbar.viewer-toolbar-navbar-bottom.viewer-toolbar-navbar-large {\n bottom: 62px;\n }\n\n.viewer-toolbar.viewer-toolbar-navbar-left {\n left: 52px;\n }\n\n.viewer-toolbar.viewer-toolbar-navbar-left.viewer-toolbar-navbar-small {\n left: 42px;\n }\n\n.viewer-toolbar.viewer-toolbar-navbar-left.viewer-toolbar-navbar-large {\n left: 62px;\n }\n\n.viewer-toolbar.viewer-toolbar-left,\n .viewer-toolbar.viewer-toolbar-right {\n bottom: auto;\n left: auto;\n right: 0;\n top: 50%;\n -ms-transform: translateY(-50%);\n transform: translateY(-50%);\n width: 36px;\n }\n\n.viewer-toolbar.viewer-toolbar-left > ul, .viewer-toolbar.viewer-toolbar-right > ul {\n margin: 0;\n padding: 3px 6px;\n }\n\n.viewer-toolbar.viewer-toolbar-left > ul > li, .viewer-toolbar.viewer-toolbar-right > ul > li {\n float: none;\n }\n\n.viewer-toolbar.viewer-toolbar-left > ul > li + li, .viewer-toolbar.viewer-toolbar-right > ul > li + li {\n margin-left: 0;\n margin-top: 1px !important;\n }\n\n.viewer-toolbar.viewer-toolbar-left > ul > .viewer-small, .viewer-toolbar.viewer-toolbar-right > ul > .viewer-small {\n margin: 0 3px;\n }\n\n.viewer-toolbar.viewer-toolbar-left > ul > .viewer-large, .viewer-toolbar.viewer-toolbar-right > ul > .viewer-large {\n margin: 0 -3px;\n }\n\n.viewer-toolbar.viewer-toolbar-left {\n left: 0;\n right: auto;\n }\n\n.viewer-toolbar > ul {\n display: inline-block;\n margin: 0 auto 5px;\n overflow: hidden;\n padding: 6px 3px;\n }\n\n.viewer-toolbar > ul > li {\n background-color: rgba(0, 0, 0, 0.5);\n border-radius: 50%;\n cursor: pointer;\n float: left;\n height: 24px;\n overflow: hidden;\n transition: background-color 0.15s;\n width: 24px;\n }\n\n.viewer-toolbar > ul > li:focus,\n .viewer-toolbar > ul > li:hover {\n background-color: rgba(0, 0, 0, 0.8);\n }\n\n.viewer-toolbar > ul > li:focus {\n box-shadow: 0 0 3px #fff;\n outline: 0;\n position: relative;\n z-index: 1;\n }\n\n.viewer-toolbar > ul > li::before {\n margin: 2px;\n }\n\n.viewer-toolbar > ul > li + li {\n margin-left: 1px;\n }\n\n.viewer-toolbar > ul > .viewer-small {\n height: 18px;\n margin-bottom: 3px;\n margin-top: 3px;\n width: 18px;\n }\n\n.viewer-toolbar > ul > .viewer-small::before {\n margin: -1px;\n }\n\n.viewer-toolbar > ul > .viewer-large {\n height: 30px;\n margin-bottom: -3px;\n margin-top: -3px;\n width: 30px;\n }\n\n.viewer-toolbar > ul > .viewer-large::before {\n margin: 5px;\n }\n\n.viewer-tooltip {\n background-color: rgba(0, 0, 0, 0.8);\n border-radius: 10px;\n color: #fff;\n display: none;\n font-size: 12px;\n height: 20px;\n left: 50%;\n line-height: 20px;\n margin-left: -25px;\n margin-top: -10px;\n position: absolute;\n text-align: center;\n top: 50%;\n width: 50px;\n}\n\n.viewer-title {\n bottom: 0;\n color: #ccc;\n display: inline-block;\n font-size: 12px;\n left: 50%;\n line-height: 1.2;\n max-width: 90%;\n min-height: 14px;\n opacity: 0.8;\n overflow: hidden;\n padding: 5px;\n position: absolute;\n text-overflow: ellipsis;\n -ms-transform: translateX(-50%);\n transform: translateX(-50%);\n transition: opacity 0.15s;\n white-space: nowrap;\n}\n\n.viewer-title.viewer-title-navbar-bottom {\n bottom: 52px;\n }\n\n.viewer-title.viewer-title-navbar-bottom.viewer-title-navbar-small {\n bottom: 42px;\n }\n\n.viewer-title.viewer-title-navbar-bottom.viewer-title-navbar-large {\n bottom: 62px;\n }\n\n.viewer-title.viewer-title-toolbar-bottom {\n bottom: 42px;\n }\n\n.viewer-title.viewer-title-toolbar-bottom.viewer-title-navbar-bottom {\n bottom: 94px;\n }\n\n.viewer-title.viewer-title-toolbar-bottom.viewer-title-navbar-bottom.viewer-title-navbar-small {\n bottom: 84px;\n }\n\n.viewer-title.viewer-title-toolbar-bottom.viewer-title-navbar-bottom.viewer-title-navbar-large {\n bottom: 104px;\n }\n\n.viewer-title.viewer-title-toolbar-left,\n .viewer-title.viewer-title-toolbar-right,\n .viewer-title.viewer-title-navbar-left,\n .viewer-title.viewer-title-navbar-right {\n max-width: none;\n text-align: center;\n -ms-transform: none;\n transform: none;\n }\n\n.viewer-title.viewer-title-toolbar-left {\n left: 36px;\n right: 0;\n }\n\n.viewer-title.viewer-title-toolbar-right {\n left: 0;\n right: 36px;\n }\n\n.viewer-title.viewer-title-navbar-left {\n left: 52px;\n right: 0;\n }\n\n.viewer-title.viewer-title-navbar-left.viewer-title-navbar-left-small {\n left: 42px;\n }\n\n.viewer-title.viewer-title-navbar-left.viewer-title-navbar-left-large {\n left: 62px;\n }\n\n.viewer-title.viewer-title-navbar-right {\n left: 0;\n right: 52px;\n }\n\n.viewer-title.viewer-title-navbar-right.viewer-title-navbar-right-small {\n right: 42px;\n }\n\n.viewer-title.viewer-title-navbar-right.viewer-title-navbar-right-large {\n right: 62px;\n }\n\n.viewer-title.viewer-title-toolbar-left.viewer-title-navbar-right {\n left: 36px;\n }\n\n.viewer-title.viewer-title-toolbar-right.viewer-title-navbar-left {\n right: 36px;\n }\n\n.viewer-title.viewer-title-toolbar-left.viewer-title-navbar-left {\n left: 88px;\n }\n\n.viewer-title.viewer-title-toolbar-left.viewer-title-navbar-left.viewer-title-navbar-left-small {\n left: 78px;\n }\n\n.viewer-title.viewer-title-toolbar-left.viewer-title-navbar-left.viewer-title-navbar-left-large {\n left: 98px;\n }\n\n.viewer-title.viewer-title-toolbar-right.viewer-title-navbar-right {\n right: 88px;\n }\n\n.viewer-title.viewer-title-toolbar-right.viewer-title-navbar-right.viewer-title-navbar-right-small {\n right: 78px;\n }\n\n.viewer-title.viewer-title-toolbar-right.viewer-title-navbar-right.viewer-title-navbar-right-large {\n right: 98px;\n }\n\n.viewer-title:hover {\n opacity: 1;\n }\n\n.viewer-button {\n -webkit-app-region: no-drag;\n background-color: rgba(0, 0, 0, 0.5);\n border-radius: 50%;\n cursor: pointer;\n height: 80px;\n overflow: hidden;\n position: absolute;\n right: -40px;\n top: -40px;\n transition: background-color 0.15s;\n width: 80px;\n}\n\n.viewer-button:focus,\n .viewer-button:hover {\n background-color: rgba(0, 0, 0, 0.8);\n }\n\n.viewer-button:focus {\n box-shadow: 0 0 3px #fff;\n outline: 0;\n }\n\n.viewer-button::before {\n bottom: 15px;\n left: 15px;\n position: absolute;\n }\n\n.viewer-fixed {\n position: fixed;\n}\n\n.viewer-open {\n overflow: hidden;\n}\n\n.viewer-show {\n display: block;\n}\n\n.viewer-hide {\n display: none;\n}\n\n.viewer-backdrop {\n background-color: rgba(0, 0, 0, 0.5);\n}\n\n.viewer-invisible {\n visibility: hidden;\n}\n\n.viewer-move {\n cursor: move;\n cursor: grab;\n}\n\n.viewer-fade {\n opacity: 0;\n}\n\n.viewer-in {\n opacity: 1;\n}\n\n.viewer-transition {\n transition: all 0.3s;\n}\n\n@keyframes viewer-spinner {\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.viewer-loading::after {\n animation: viewer-spinner 1s linear infinite;\n border: 4px solid rgba(255, 255, 255, 0.1);\n border-left-color: rgba(255, 255, 255, 0.5);\n border-radius: 50%;\n content: '';\n display: inline-block;\n height: 40px;\n left: 50%;\n margin-left: -20px;\n margin-top: -20px;\n position: absolute;\n top: 50%;\n width: 40px;\n z-index: 1;\n }\n\n@media (max-width: 767px) {\n .viewer-hide-xs-down {\n display: none;\n }\n}\n\n@media (max-width: 991px) {\n .viewer-hide-sm-down {\n display: none;\n }\n}\n\n@media (max-width: 1199px) {\n .viewer-hide-md-down {\n display: none;\n }\n}\n");var EI,kI=(EI=function(e,t,n){SI(e,t,n)},Fa(function(e,t){var n=-1,r=t.length,i=r>1?t[r-1]:void 0,o=r>2?t[2]:void 0;for(i=EI.length>3&&"function"==typeof i?(r--,i):void 0,o&&pn(t[0],t[1],o)&&(i=r<3?void 0:i,r=1),e=Object(e);++n<r;){var a=t[n];a&&EI(e,a,n,i)}return e}));async function BI(e,t=null,n={}){let r=!0,i=null,o=Ga();Ee(n)||(n={});let a=Ae(n,"disTouchMoveToHide",null);if(go(a)||(a=4),a=Wi(a),!Du(e))return o.reject("eleImg is not a HTMLElement"),o;if(i=e,null!==t){if(!Du(t))return o.reject("eleGroup is not a HTMLElement"),o;r=!1,i=t}if(!r){let e=or(t.querySelectorAll("img"));if(0===e)return o.reject("eleGroup does not contain any img"),o;1===e&&(r=!0)}let s={button:!1,navbar:!1,title:!1,toolbar:{zoomIn:4,zoomOut:4,oneToOne:4,reset:4,prev:0,play:0,next:0,rotateLeft:4,rotateRight:4,flipHorizontal:4,flipVertical:4},tooltip:!1,movable:!0,zoomable:!0,rotatable:!0,scalable:!0,transition:!0,fullscreen:!1,keyboard:!0};r||(s=function(){let e={button:!1,navbar:!1,title:!1,toolbar:{zoomIn:4,zoomOut:4,oneToOne:4,reset:4,prev:0,play:0,next:0,rotateLeft:4,rotateRight:4,flipHorizontal:4,flipVertical:4},tooltip:!1,movable:!0,zoomable:!0,rotatable:!0,scalable:!0,transition:!0,fullscreen:!1,keyboard:!0};return e.navbar=!0,e.toolbar.prev=4,e.toolbar.next=4,e}()),s=kI(s,Qi(n)),s.shown=function(){(async()=>{let e=null;await gs(()=>(e=c.viewer,Du(e)));let t=!1,n=0,r=0,i=0;e.addEventListener("touchstart",e=>{let i=e.touches[0];n=i.clientX,r=i.clientY,((e,t)=>{let n=document.elementsFromPoint(e,t).find(e=>"IMG"===e.tagName);if(!Du(n))return!0;let r=n?.classList?.contains("viewer-move");return!r})(n,r)&&(t=!0)},{passive:!1}),e.addEventListener("touchmove",e=>{if(!t)return;let o=e.touches[0],a=o.clientX,s=o.clientY,l=a-n,c=s-r,u=Math.sqrt(l*l+c*c);i+=u,n=o.clientX,r=o.clientY},{passive:!1}),e.addEventListener("touchend",e=>{t&&(i<a&&(e.preventDefault(),e.stopPropagation(),c.hide(!0)),t=!1,i=0)},{passive:!1}),e.addEventListener("touchcancel",e=>{t=!1,i=0})})().catch(e=>{console.log(e)})};let l=!1;s.hide=function(){l||(l=!0,c.hide(!0))},s.hidden=function(){c.destroy(),o.resolve("close")};let c=new bI(i,s);return c.show(),o}function FI(e,t){let n=new MouseEvent(t,{view:window,bubbles:!0,cancelable:!0});e.dispatchEvent(n)}function DI(e={}){let t=Ae(e,"kind","*"),n=Ae(e,"multiple");we(n)||(n=!1);let r=Ae(e,"entireHierarchy");we(r)||(r=!1),r&&!n&&(n=!0);let i=Ae(e,"sizeMbLimit");Me(i)||(i=1e3),i=xr(i);let o=Ga(),a="drf"+Wu(),s="GrpDomReadFile";Aw(`[name=${s}]`);let l=vx(t),c=`<div name="${s}" style="position:relative; width:0px; height:0px; overflow:hidden;"><input id="${a}" type="file" accept="${l}" ${n?"multiple":""} ${r?"webkitdirectory":""} style="opacity:0; position:absolute; top:-10000px; left:-10000px;"></div>`;td(document.querySelector("body"),c);let u=ux("#"+a),d=!1;function f(e){d=!0;let t=bx(this,i);o.resolve(t),u.removeEventListener("change",f,!0),u.removeEventListener("cancel",h,!0),r||window.removeEventListener("focus",p),Aw(`[name=${s}]`)}function h(e){d||f.call(u,e)}function p(e){setTimeout(()=>{d||f.call(u,e)},1500)}return u.addEventListener("change",f,!0),u.addEventListener("cancel",h,!0),r||window.addEventListener("focus",p),FI(u,"click"),o}function MI(e){if(!Be(e))return!1;let n="YYYY-MM-DDTHH:mm:ss";return e===t(e,n).format(n)}Xa()&&function(){try{return new MouseEvent("MouseEventPolyfillTest"),!1}catch(e){}let e=function(e,t){t=t||{bubbles:!1,cancelable:!1};let n=document.createEvent("MouseEvent");return n.initMouseEvent(e,t.bubbles,t.cancelable,window,0,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null),n};e.prototype=Event.prototype,window.MouseEvent=e}();var NI="top",TI="bottom",QI="right",RI="left",LI="auto",PI=[NI,TI,QI,RI],OI="start",UI="end",$I="viewport",HI="popper",zI=PI.reduce(function(e,t){return e.concat([t+"-"+OI,t+"-"+UI])},[]),qI=[].concat(PI,[LI]).reduce(function(e,t){return e.concat([t,t+"-"+OI,t+"-"+UI])},[]),jI=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function WI(e){return e?(e.nodeName||"").toLowerCase():null}function _I(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function VI(e){return e instanceof _I(e).Element||e instanceof Element}function YI(e){return e instanceof _I(e).HTMLElement||e instanceof HTMLElement}function GI(e){return"undefined"!=typeof ShadowRoot&&(e instanceof _I(e).ShadowRoot||e instanceof ShadowRoot)}var JI={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];YI(i)&&WI(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});YI(r)&&WI(r)&&(Object.assign(r.style,o),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]};function XI(e){return e.split("-")[0]}var KI=Math.max,ZI=Math.min,eC=Math.round;function tC(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function nC(){return!/^((?!chrome|android).)*safari/i.test(tC())}function rC(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&YI(e)&&(i=e.offsetWidth>0&&eC(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&eC(r.height)/e.offsetHeight||1);var a=(VI(e)?_I(e):window).visualViewport,s=!nC()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/i,c=(r.top+(s&&a?a.offsetTop:0))/o,u=r.width/i,d=r.height/o;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function iC(e){var t=rC(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function oC(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&GI(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function aC(e){return _I(e).getComputedStyle(e)}function sC(e){return["table","td","th"].indexOf(WI(e))>=0}function lC(e){return((VI(e)?e.ownerDocument:e.document)||window.document).documentElement}function cC(e){return"html"===WI(e)?e:e.assignedSlot||e.parentNode||(GI(e)?e.host:null)||lC(e)}function uC(e){return YI(e)&&"fixed"!==aC(e).position?e.offsetParent:null}function dC(e){for(var t=_I(e),n=uC(e);n&&sC(n)&&"static"===aC(n).position;)n=uC(n);return n&&("html"===WI(n)||"body"===WI(n)&&"static"===aC(n).position)?t:n||function(e){var t=/firefox/i.test(tC());if(/Trident/i.test(tC())&&YI(e)&&"fixed"===aC(e).position)return null;var n=cC(e);for(GI(n)&&(n=n.host);YI(n)&&["html","body"].indexOf(WI(n))<0;){var r=aC(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function fC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function hC(e,t,n){return KI(e,ZI(t,n))}function pC(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function gC(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var mC={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=XI(n.placement),l=fC(s),c=[RI,QI].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return pC("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:gC(e,PI))}(i.padding,n),d=iC(o),f="y"===l?NI:RI,h="y"===l?TI:QI,p=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],g=a[l]-n.rects.reference[l],m=dC(o),y=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,v=p/2-g/2,b=u[f],A=y-d[c]-u[h],w=y/2-d[c]/2+v,x=hC(b,w,A),I=l;n.modifiersData[r]=((t={})[I]=x,t.centerOffset=x-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&oC(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function yC(e){return e.split("-")[1]}var vC={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bC(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,h=void 0===f?0:f,p=a.y,g=void 0===p?0:p,m="function"==typeof u?u({x:h,y:g}):{x:h,y:g};h=m.x,g=m.y;var y=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),b=RI,A=NI,w=window;if(c){var x=dC(n),I="clientHeight",C="clientWidth";if(x===_I(n)&&"static"!==aC(x=lC(n)).position&&"absolute"===s&&(I="scrollHeight",C="scrollWidth"),i===NI||(i===RI||i===QI)&&o===UI)A=TI,g-=(d&&x===w&&w.visualViewport?w.visualViewport.height:x[I])-r.height,g*=l?1:-1;if(i===RI||(i===NI||i===TI)&&o===UI)b=QI,h-=(d&&x===w&&w.visualViewport?w.visualViewport.width:x[C])-r.width,h*=l?1:-1}var S,E=Object.assign({position:s},c&&vC),k=!0===u?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:eC(n*i)/i||0,y:eC(r*i)/i||0}}({x:h,y:g},_I(n)):{x:h,y:g};return h=k.x,g=k.y,l?Object.assign({},E,((S={})[A]=v?"0":"",S[b]=y?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",S)):Object.assign({},E,((t={})[A]=v?g+"px":"",t[b]=y?h+"px":"",t.transform="",t))}var AC={passive:!0};var wC={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,l=_I(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",n.update,AC)}),s&&l.addEventListener("resize",n.update,AC),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",n.update,AC)}),s&&l.removeEventListener("resize",n.update,AC)}},data:{}},xC={left:"right",right:"left",bottom:"top",top:"bottom"};function IC(e){return e.replace(/left|right|bottom|top/g,function(e){return xC[e]})}var CC={start:"end",end:"start"};function SC(e){return e.replace(/start|end/g,function(e){return CC[e]})}function EC(e){var t=_I(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function kC(e){return rC(lC(e)).left+EC(e).scrollLeft}function BC(e){var t=aC(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function FC(e){return["html","body","#document"].indexOf(WI(e))>=0?e.ownerDocument.body:YI(e)&&BC(e)?e:FC(cC(e))}function DC(e,t){var n;void 0===t&&(t=[]);var r=FC(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=_I(r),a=i?[o].concat(o.visualViewport||[],BC(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(DC(cC(a)))}function MC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function NC(e,t,n){return t===$I?MC(function(e,t){var n=_I(e),r=lC(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=nC();(c||!c&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+kC(e),y:l}}(e,n)):VI(t)?function(e,t){var n=rC(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):MC(function(e){var t,n=lC(e),r=EC(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=KI(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=KI(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+kC(e),l=-r.scrollTop;return"rtl"===aC(i||n).direction&&(s+=KI(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(lC(e)))}function TC(e,t,n,r){var i="clippingParents"===t?function(e){var t=DC(cC(e)),n=["absolute","fixed"].indexOf(aC(e).position)>=0&&YI(e)?dC(e):e;return VI(n)?t.filter(function(e){return VI(e)&&oC(e,n)&&"body"!==WI(e)}):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(t,n){var i=NC(e,n,r);return t.top=KI(i.top,t.top),t.right=ZI(i.right,t.right),t.bottom=ZI(i.bottom,t.bottom),t.left=KI(i.left,t.left),t},NC(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function QC(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?XI(i):null,a=i?yC(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case NI:t={x:s,y:n.y-r.height};break;case TI:t={x:s,y:n.y+n.height};break;case QI:t={x:n.x+n.width,y:l};break;case RI:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?fC(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case OI:t[c]=t[c]-(n[u]/2-r[u]/2);break;case UI:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function RC(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,u=void 0===c?$I:c,d=n.elementContext,f=void 0===d?HI:d,h=n.altBoundary,p=void 0!==h&&h,g=n.padding,m=void 0===g?0:g,y=pC("number"!=typeof m?m:gC(m,PI)),v=f===HI?"reference":HI,b=e.rects.popper,A=e.elements[p?v:f],w=TC(VI(A)?A:A.contextElement||lC(e.elements.popper),l,u,a),x=rC(e.elements.reference),I=QC({reference:x,element:b,strategy:"absolute",placement:i}),C=MC(Object.assign({},b,I)),S=f===HI?C:x,E={top:w.top-S.top+y.top,bottom:S.bottom-w.bottom+y.bottom,left:w.left-S.left+y.left,right:S.right-w.right+y.right},k=e.modifiersData.offset;if(f===HI&&k){var B=k[i];Object.keys(E).forEach(function(e){var t=[QI,TI].indexOf(e)>=0?1:-1,n=[NI,TI].indexOf(e)>=0?"y":"x";E[e]+=B[n]*t})}return E}function LC(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?qI:l,u=yC(r),d=u?s?zI:zI.filter(function(e){return yC(e)===u}):PI,f=d.filter(function(e){return c.indexOf(e)>=0});0===f.length&&(f=d);var h=f.reduce(function(t,n){return t[n]=RC(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[XI(n)],t},{});return Object.keys(h).sort(function(e,t){return h[e]-h[t]})}var PC={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=void 0===h||h,g=n.allowedAutoPlacements,m=t.options.placement,y=XI(m),v=l||(y===m||!p?[IC(m)]:function(e){if(XI(e)===LI)return[];var t=IC(e);return[SC(e),t,SC(t)]}(m)),b=[m].concat(v).reduce(function(e,n){return e.concat(XI(n)===LI?LC(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:g}):n)},[]),A=t.rects.reference,w=t.rects.popper,x=new Map,I=!0,C=b[0],S=0;S<b.length;S++){var E=b[S],k=XI(E),B=yC(E)===OI,F=[NI,TI].indexOf(k)>=0,D=F?"width":"height",M=RC(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),N=F?B?QI:RI:B?TI:NI;A[D]>w[D]&&(N=IC(N));var T=IC(N),Q=[];if(o&&Q.push(M[k]<=0),s&&Q.push(M[N]<=0,M[T]<=0),Q.every(function(e){return e})){C=E,I=!1;break}x.set(E,Q)}if(I)for(var R=function(e){var t=b.find(function(t){var n=x.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return C=t,"break"},L=p?3:1;L>0;L--){if("break"===R(L))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function OC(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function UC(e){return[NI,QI,TI,RI].some(function(t){return e[t]>=0})}var $C={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=qI.reduce(function(e,n){return e[n]=function(e,t,n){var r=XI(e),i=[RI,NI].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[RI,QI].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e},{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var HC={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,h=void 0===f||f,p=n.tetherOffset,g=void 0===p?0:p,m=RC(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=XI(t.placement),v=yC(t.placement),b=!v,A=fC(y),w="x"===A?"y":"x",x=t.modifiersData.popperOffsets,I=t.rects.reference,C=t.rects.popper,S="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,E="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(x){if(o){var F,D="y"===A?NI:RI,M="y"===A?TI:QI,N="y"===A?"height":"width",T=x[A],Q=T+m[D],R=T-m[M],L=h?-C[N]/2:0,P=v===OI?I[N]:C[N],O=v===OI?-C[N]:-I[N],U=t.elements.arrow,$=h&&U?iC(U):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=H[D],q=H[M],j=hC(0,I[N],$[N]),W=b?I[N]/2-L-j-z-E.mainAxis:P-j-z-E.mainAxis,_=b?-I[N]/2+L+j+q+E.mainAxis:O+j+q+E.mainAxis,V=t.elements.arrow&&dC(t.elements.arrow),Y=V?"y"===A?V.clientTop||0:V.clientLeft||0:0,G=null!=(F=null==k?void 0:k[A])?F:0,J=T+_-G,X=hC(h?ZI(Q,T+W-G-Y):Q,T,h?KI(R,J):R);x[A]=X,B[A]=X-T}if(s){var K,Z="x"===A?NI:RI,ee="x"===A?TI:QI,te=x[w],ne="y"===w?"height":"width",re=te+m[Z],ie=te-m[ee],oe=-1!==[NI,RI].indexOf(y),ae=null!=(K=null==k?void 0:k[w])?K:0,se=oe?re:te-I[ne]-C[ne]-ae+E.altAxis,le=oe?te+I[ne]+C[ne]-ae-E.altAxis:ie,ce=h&&oe?function(e,t,n){var r=hC(e,t,n);return r>n?n:r}(se,te,le):hC(h?se:re,te,h?le:ie);x[w]=ce,B[w]=ce-te}t.modifiersData[r]=B}},requiresIfExists:["offset"]};function zC(e,t,n){void 0===n&&(n=!1);var r,i,o=YI(t),a=YI(t)&&function(e){var t=e.getBoundingClientRect(),n=eC(t.width)/e.offsetWidth||1,r=eC(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=lC(t),l=rC(e,a,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&(("body"!==WI(t)||BC(s))&&(c=(r=t)!==_I(r)&&YI(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:EC(r)),YI(t)?((u=rC(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=kC(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function qC(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||i(e)}),r}function jC(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}var WC={placement:"bottom",modifiers:[],strategy:"absolute"};function _C(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function VC(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?WC:i;return function(e,t,n){void 0===n&&(n=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},WC,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,l={state:i,setOptions:function(n){var s="function"==typeof n?n(i.options):n;c(),i.options=Object.assign({},o,i.options,s),i.scrollParents={reference:VI(e)?DC(e):e.contextElement?DC(e.contextElement):[],popper:DC(t)};var u,d,f=function(e){var t=qC(e);return jI.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((u=[].concat(r,i.options.modifiers),d=u.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(d).map(function(e){return d[e]})));return i.orderedModifiers=f.filter(function(e){return e.enabled}),i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var s=o({state:i,name:t,instance:l,options:r}),c=function(){};a.push(s||c)}}),l.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(_C(t,n)){i.rects={reference:zC(t,dC(n),"fixed"===i.options.strategy),popper:iC(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],a=o.fn,c=o.options,u=void 0===c?{}:c,d=o.name;"function"==typeof a&&(i=a({state:i,options:u,name:d,instance:l})||i)}else i.reset=!1,r=-1}}},update:jC(function(){return new Promise(function(e){l.forceUpdate(),e(i)})}),destroy:function(){c(),s=!0}};if(!_C(e,t))return l;function c(){a.forEach(function(e){return e()}),a=[]}return l.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)}),l}}var YC=VC({defaultModifiers:[wC,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=QC({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,c={placement:XI(t.placement),variation:yC(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,bC(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,bC(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},JI,$C,PC,HC,mC,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=RC(t,{elementContext:"reference"}),s=RC(t,{altBoundary:!0}),l=OC(a,r),c=OC(s,i,o),u=UC(l),d=UC(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),GC="tippy-content",JC="tippy-arrow",XC="tippy-svg-arrow",KC={passive:!0,capture:!0},ZC=function(){return document.body};function eS(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function tS(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function nS(e,t){return"function"==typeof e?e.apply(void 0,t):e}function rS(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)};var n}function iS(e){return[].concat(e)}function oS(e,t){-1===e.indexOf(t)&&e.push(t)}function aS(e){return[].slice.call(e)}function sS(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function lS(){return document.createElement("div")}function cS(e){return["Element","Fragment"].some(function(t){return tS(e,t)})}function uS(e){return cS(e)?[e]:function(e){return tS(e,"NodeList")}(e)?aS(e):Array.isArray(e)?e:aS(document.querySelectorAll(e))}function dS(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function fS(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function hS(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[r](t,n)})}function pS(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var gS={isTouch:!1},mS=0;function yS(){gS.isTouch||(gS.isTouch=!0,window.performance&&document.addEventListener("mousemove",vS))}function vS(){var e=performance.now();e-mS<20&&(gS.isTouch=!1,document.removeEventListener("mousemove",vS)),mS=e}function bS(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var AS,wS=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;function xS(e){return[e+"() was called on a"+("destroy"===e?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function IS(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function CS(e){return IS("\n %ctippy.js\n\n %c"+IS(e)+"\n\n %c👷 This is a development-only message. It will be removed in production.\n ")}function SS(e){return[CS(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function ES(e,t){var n;e&&!AS.has(t)&&(AS.add(t),(n=console).warn.apply(n,SS(t)))}function kS(e,t){var n;e&&!AS.has(t)&&(AS.add(t),(n=console).error.apply(n,SS(t)))}AS=new Set;var BS={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},FS=Object.assign({appendTo:ZC,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},BS,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),DS=Object.keys(FS);function MS(e){var t=(e.plugins||[]).reduce(function(t,n){var r,i=n.name,o=n.defaultValue;i&&(t[i]=void 0!==e[i]?e[i]:null!=(r=FS[i])?r:o);return t},{});return Object.assign({},e,t)}function NS(e,t){var n=Object.assign({},t,{content:nS(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(MS(Object.assign({},FS,{plugins:t}))):DS).reduce(function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t},{})}(e,t.plugins));return n.aria=Object.assign({},FS.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function TS(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),Object.keys(e).forEach(function(e){var n=function(e,t){var n=Object.assign({},e);return t.forEach(function(e){delete n[e]}),n}(FS,Object.keys(BS)),r=!function(e,t){return{}.hasOwnProperty.call(e,t)}(n,e);r&&(r=0===t.filter(function(t){return t.name===e}).length),ES(r,["`"+e+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}function QS(e,t){e.innerHTML=t}function RS(e){var t=lS();return!0===e?t.className=JC:(t.className=XC,cS(e)?t.appendChild(e):QS(t,e)),t}function LS(e,t){cS(t.content)?(QS(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?QS(e,t.content):e.textContent=t.content)}function PS(e){var t=e.firstElementChild,n=aS(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(GC)}),arrow:n.find(function(e){return e.classList.contains(JC)||e.classList.contains(XC)}),backdrop:n.find(function(e){return e.classList.contains("tippy-backdrop")})}}function OS(e){var t=lS(),n=lS();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=lS();function i(n,r){var i=PS(t),o=i.box,a=i.content,s=i.arrow;r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),"string"==typeof r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||LS(a,e.props),r.arrow?s?n.arrow!==r.arrow&&(o.removeChild(s),o.appendChild(RS(r.arrow))):o.appendChild(RS(r.arrow)):s&&o.removeChild(s)}return r.className=GC,r.setAttribute("data-state","hidden"),LS(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props),{popper:t,onUpdate:i}}OS.$$tippy=!0;var US=1,$S=[],HS=[];function zS(e,t){var n,r,i,o,a,s,l,c,u=NS(e,Object.assign({},FS,MS(sS(t)))),d=!1,f=!1,h=!1,p=!1,g=[],m=rS(V,u.interactiveDebounce),y=US++,v=(c=u.plugins).filter(function(e,t){return c.indexOf(e)===t}),b={id:y,reference:e,popper:lS(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:v,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(i)},setProps:function(t){if(ES(b.state.isDestroyed,xS("setProps")),b.state.isDestroyed)return;T("onBeforeUpdate",[b,t]),W();var n=b.props,r=NS(e,Object.assign({},n,sS(t),{ignoreAttributes:!0}));b.props=r,j(),n.interactiveDebounce!==r.interactiveDebounce&&(L(),m=rS(V,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?iS(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):r.triggerTarget&&e.removeAttribute("aria-expanded");R(),N(),x&&x(n,r);b.popperInstance&&(X(),Z().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}));T("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){ES(b.state.isDestroyed,xS("show"));var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=gS.isTouch&&!b.props.touch,i=eS(b.props.duration,0,FS.duration);if(e||t||n||r)return;if(B().hasAttribute("disabled"))return;if(T("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,k()&&(w.style.visibility="visible");N(),$(),b.state.isMounted||(w.style.transition="none");if(k()){var o=D();dS([o.box,o.content],0)}s=function(){var e;if(b.state.isVisible&&!p){if(p=!0,w.offsetHeight,w.style.transition=b.props.moveTransition,k()&&b.props.animation){var t=D(),n=t.box,r=t.content;dS([n,r],i),fS([n,r],"visible")}Q(),R(),oS(HS,b),null==(e=b.popperInstance)||e.forceUpdate(),T("onMount",[b]),b.props.animation&&k()&&function(e,t){z(e,t)}(i,function(){b.state.isShown=!0,T("onShown",[b])})}},function(){var e,t=b.props.appendTo,n=B();e=b.props.interactive&&t===ZC||"parent"===t?n.parentNode:nS(t,[n]);e.contains(w)||e.appendChild(w);b.state.isMounted=!0,X(),ES(b.props.interactive&&t===FS.appendTo&&n.nextElementSibling!==w,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}()},hide:function(){ES(b.state.isDestroyed,xS("hide"));var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=eS(b.props.duration,1,FS.duration);if(e||t||n)return;if(T("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,p=!1,d=!1,k()&&(w.style.visibility="hidden");if(L(),H(),N(!0),k()){var i=D(),o=i.box,a=i.content;b.props.animation&&(dS([o,a],r),fS([o,a],"hidden"))}Q(),R(),b.props.animation?k()&&function(e,t){z(e,function(){!b.state.isVisible&&w.parentNode&&w.parentNode.contains(w)&&t()})}(r,b.unmount):b.unmount()},hideWithInteractivity:function(e){ES(b.state.isDestroyed,xS("hideWithInteractivity")),F().addEventListener("mousemove",m),oS($S,m),m(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){ES(b.state.isDestroyed,xS("unmount")),b.state.isVisible&&b.hide();if(!b.state.isMounted)return;K(),Z().forEach(function(e){e._tippy.unmount()}),w.parentNode&&w.parentNode.removeChild(w);HS=HS.filter(function(e){return e!==b}),b.state.isMounted=!1,T("onHidden",[b])},destroy:function(){if(ES(b.state.isDestroyed,xS("destroy")),b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),W(),delete e._tippy,b.state.isDestroyed=!0,T("onDestroy",[b])}};if(!u.render)return kS(!0,"render() function has not been supplied."),b;var A=u.render(b),w=A.popper,x=A.onUpdate;w.setAttribute("data-tippy-root",""),w.id="tippy-"+b.id,b.popper=w,e._tippy=b,w._tippy=b;var I=v.map(function(e){return e.fn(b)}),C=e.hasAttribute("aria-expanded");return j(),R(),N(),T("onCreate",[b]),u.showOnCreate&&ee(),w.addEventListener("mouseenter",function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()}),w.addEventListener("mouseleave",function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&F().addEventListener("mousemove",m)}),b;function S(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function E(){return"hold"===S()[0]}function k(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function B(){return l||e}function F(){var e,t,n=B().parentNode;return n?null!=(t=iS(n)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function D(){return PS(w)}function M(e){return b.state.isMounted&&!b.state.isVisible||gS.isTouch||o&&"focus"===o.type?0:eS(b.props.delay,e?0:1,FS.delay)}function N(e){void 0===e&&(e=!1),w.style.pointerEvents=b.props.interactive&&!e?"":"none",w.style.zIndex=""+b.props.zIndex}function T(e,t,n){var r;(void 0===n&&(n=!0),I.forEach(function(n){n[e]&&n[e].apply(n,t)}),n)&&(r=b.props)[e].apply(r,t)}function Q(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,r=w.id;iS(b.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var i=t&&t.replace(r,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}})}}function R(){!C&&b.props.aria.expanded&&iS(b.props.triggerTarget||e).forEach(function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===B()?"true":"false"):e.removeAttribute("aria-expanded")})}function L(){F().removeEventListener("mousemove",m),$S=$S.filter(function(e){return e!==m})}function P(t){if(!gS.isTouch||!h&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!pS(w,n)){if(iS(b.props.triggerTarget||e).some(function(e){return pS(e,n)})){if(gS.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else T("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),f=!0,setTimeout(function(){f=!1}),b.state.isMounted||H())}}}function O(){h=!0}function U(){h=!1}function $(){var e=F();e.addEventListener("mousedown",P,!0),e.addEventListener("touchend",P,KC),e.addEventListener("touchstart",U,KC),e.addEventListener("touchmove",O,KC)}function H(){var e=F();e.removeEventListener("mousedown",P,!0),e.removeEventListener("touchend",P,KC),e.removeEventListener("touchstart",U,KC),e.removeEventListener("touchmove",O,KC)}function z(e,t){var n=D().box;function r(e){e.target===n&&(hS(n,"remove",r),t())}if(0===e)return t();hS(n,"remove",a),hS(n,"add",r),a=r}function q(t,n,r){void 0===r&&(r=!1),iS(b.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,r),g.push({node:e,eventType:t,handler:n,options:r})})}function j(){var e;E()&&(q("touchstart",_,{passive:!0}),q("touchend",Y,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(q(e,_),e){case"mouseenter":q("mouseleave",Y);break;case"focus":q(wS?"focusout":"blur",G);break;case"focusin":q("focusout",G)}})}function W(){g.forEach(function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)}),g=[]}function _(e){var t,n=!1;if(b.state.isEnabled&&!J(e)&&!f){var r="focus"===(null==(t=o)?void 0:t.type);o=e,l=e.currentTarget,R(),!b.state.isVisible&&tS(e,"MouseEvent")&&$S.forEach(function(t){return t(e)}),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||d)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(d=!n),n&&!r&&te(e)}}function V(e){var t=e.target,n=B().contains(t)||w.contains(t);if("mousemove"!==e.type||!n){var r=Z().concat(w).map(function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:u}:null}).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every(function(e){var t=e.popperRect,i=e.popperState,o=e.props.interactiveBorder,a=i.placement.split("-")[0],s=i.modifiersData.offset;if(!s)return!0;var l="bottom"===a?s.top.y:0,c="top"===a?s.bottom.y:0,u="right"===a?s.left.x:0,d="left"===a?s.right.x:0,f=t.top-r+l>o,h=r-t.bottom-c>o,p=t.left-n+u>o,g=n-t.right-d>o;return f||h||p||g})})(r,e)&&(L(),te(e))}}function Y(e){J(e)||b.props.trigger.indexOf("click")>=0&&d||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function G(e){b.props.trigger.indexOf("focusin")<0&&e.target!==B()||b.props.interactive&&e.relatedTarget&&w.contains(e.relatedTarget)||te(e)}function J(e){return!!gS.isTouch&&E()!==e.type.indexOf("touch")>=0}function X(){K();var t=b.props,n=t.popperOptions,r=t.placement,i=t.offset,o=t.getReferenceClientRect,a=t.moveTransition,l=k()?PS(w).arrow:null,c=o?{getBoundingClientRect:o,contextElement:o.contextElement||B()}:e,u={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(k()){var n=D().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)}),t.attributes.popper={}}}},d=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},u];k()&&l&&d.push({name:"arrow",options:{element:l,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),b.popperInstance=YC(c,w,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:d}))}function K(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Z(){return aS(w.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&T("onTrigger",[b,e]),$();var t=M(!0),r=S(),i=r[0],o=r[1];gS.isTouch&&"hold"===i&&o&&(t=o),t?n=setTimeout(function(){b.show()},t):b.show()}function te(e){if(b.clearDelayTimeouts(),T("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=M(!1);t?r=setTimeout(function(){b.state.isVisible&&b.hide()},t):i=requestAnimationFrame(function(){b.hide()})}}else H()}}function qS(e,t){void 0===t&&(t={});var n=FS.plugins.concat(t.plugins||[]);!function(e){var t=!e,n="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;kS(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),kS(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(e),TS(t,n),document.addEventListener("touchstart",yS,KC),window.addEventListener("blur",bS);var r=Object.assign({},t,{plugins:n}),i=uS(e),o=cS(r.content),a=i.length>1;ES(o&&a,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: () => element.cloneNode(true)"].join(" "));var s=i.reduce(function(e,t){var n=t&&zS(t,r);return n&&e.push(n),e},[]);return cS(e)?s[0]:s}qS.defaultProps=FS,qS.setDefaultProps=function(e){TS(e,[]),Object.keys(e).forEach(function(t){FS[t]=e[t]})},qS.currentInput=gS,Object.assign({},JI,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),qS.setDefaultProps({render:OS});AI('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}');async function jS(e,t={}){if(!Ui(e))throw new Error("invalid fun");let n=Ae(t,"width");n=Be(n)?Zo(n):Me(n)?xr(n):null;let r=Ae(t,"height");r=Be(r)?Zo(r):Me(r)?xr(r):null;let i=document.createElement("div");Me(n)&&(i.style.width=`${n}px`),Me(r)&&(i.style.height=`${r}px`);let o=document.createElement("div");o.style.position="absolute",o.style.top=0,o.style.left=0,o.style.zIndex=-1,o.appendChild(i);let a=document.createElement("div");a.style.position="relative",a.appendChild(o);let s,l=document.createElement("div");l.style.position="fixed",l.style.zIndex=-1,l.appendChild(a),ww(document.querySelector("body"),l);let c=e(i);return s=ps(c)?await c:c,Aw(l),s}function WS(e){if(!Ui(e))throw new Error("fn is not a function");return function(){let t=Ga(),n=null,r=null;try{n=e.apply(this,arguments)}catch(e){r=e}return null!==r?t.resolve({state:"error",msg:r}):ps(n)?n.then(e=>{t.resolve({state:"success",msg:e})}).catch(e=>{"cancelled"===Ae(e,"reason")?t.resolve({state:"cancelled",msg:""}):t.resolve({state:"error",msg:e})}):t.resolve({state:"success",msg:n}),t}}AI(".tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px rgba(154,161,177,.15),0 4px 80px -8px rgba(36,40,47,.25),0 4px 4px -2px rgba(91,94,105,.15);background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}");let _S=WS;function VS(e){if(!Ir(e))return!1;return Wi(e)<0}function YS(e=0){let t=0,n=[];VS(e)&&(e=0),e=Wi(e);let r=Oi();return r.get=function(){if(n.length>0){return t+=1,n.splice(0,1)[0]}return null},r.cb=function(){t-=1,t<0&&(t=0),n.length>0&&$i(r,"message",[n],{tag:"queue"})},r.push=function(i){n.push(i),(e<=0||t<e)&&$i(r,"message",[n],{tag:"queue"})},r.clear=function(){t=0,n=[]},r}function GS(e=0,t=!1){return new function(e,t){let n=null;go(e)||(e=0),e=Wi(e),we(t)||(t=!1);let r=YS(e);return r.on("message",async function(e){let t=r.get();if(!t)return;await hs(1);let n,i=Ae(t,"id"),o=Ae(t,"fun"),a=Ae(t,"input");n=Ui(o)?await _S(o)(...a):{state:"error",msg:"fun is not a function"},r.emit(i,n),r.cb()}),function(e,...i){let o=Ga(),a=Wu();n=a;let s={id:a,fun:e,input:i};return r.push(s),r.once(a,e=>{t?a===n?"success"===e.state?o.resolve(e.msg):o.reject(e.msg):o.reject({reason:"cancelled"}):"success"===e.state?o.resolve(e.msg):o.reject(e.msg)}),o}}(e,t)}function JS(e,t){Xa()?Be(e)?nd()?function(e,t){window.navigator.msSaveOrOpenBlob(t,e)}(e,t):function(e,t){let n=window.URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(n)}(e,t):console.log("no filename"):console.log("no window")}function XS(e,t="data"){if(!Se(e))return{error:"sheet is not an object"};if(!Ce(Ae(e,"rows")))return{error:"sheet.rows is not an array"};Be(t)||(t="data");let n={sheets:[]};return n.sheets.push({...e,name:t}),n}function KS(e,t="data"){if(!Ce(e))return{error:"data is not an array"};Be(t)||(t="data");let n=null,r=cr(e);return Ne(r,"error")?r:(n=XS(r,t),Ne(n,"error"),n)}class ZS extends Error{name="HucreError";constructor(e,t){super(e,t)}}class eE extends ZS{details;name="ParseError";constructor(e,t,n){super(e,n),this.details=t}}class tE extends ZS{name="ZipError"}class nE extends ZS{name="XmlError"}class rE extends ZS{name="InvalidArgumentError"}class iE extends ZS{name="EncryptedFileError";format;constructor(e,t){super(t??(e?`File is password-protected (${e.toUpperCase()} encrypted with the OLE2/CFB container). Provide a password in options to decrypt it.`:"File is password-protected. Provide a password in options.")),this.format=e}}class oE extends ZS{name="DecryptionError";constructor(e="Failed to decrypt: incorrect password or corrupt encryption data.",t){super(e,t)}}const aE=536870888;class sE extends eE{}function lE(e,t){try{return new TextDecoder("utf-8").decode(e)}catch(n){if(n instanceof RangeError||"ERR_STRING_TOO_LONG"===n?.code||e.length>aE)throw function(e,t){return new sE(`Part "${e}" is ${t.toLocaleString("en-US")} bytes, over the ${aE.toLocaleString("en-US")}-character maximum string length this runtime supports, so it cannot be read into memory whole.\n - streamXlsxRows(input) reads a worksheet of any size, a row at a time.\n - The workbook is not damaged; this is a limit of the buffered reader.`)}(t,e.length);throw n}}const cE={amp:"&",lt:"<",gt:">",quot:'"',apos:"'"};function uE(e){return-1===e.indexOf("\r")?e:e.replace(/\r\n?/g,"\n")}function dE(e){return-1===e.indexOf("&")?e:e.replace(/&(#x[0-9a-fA-F]+|#[0-9]+|[a-zA-Z]+);/g,(e,t)=>{if(35===t.charCodeAt(0)){const n=120===t.charCodeAt(1)||88===t.charCodeAt(1)?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Number.isNaN(n)||(n<0||n>1114111)?e:String.fromCodePoint(n)}return cE[t]??e})}function fE(e){return-1===e.indexOf("_x")?e:e.replace(/_x([0-9A-Fa-f]{4})_/g,(e,t)=>String.fromCharCode(parseInt(t,16)))}function hE(e){const t={};let n=0;const r=e.length;for(;n<r;){for(;n<r&&pE(e.charCodeAt(n));)n++;if(n>=r)break;const i=n;for(;n<r&&61!==e.charCodeAt(n)&&!pE(e.charCodeAt(n));)n++;const o=e.slice(i,n);if(!o)break;for(;n<r&&pE(e.charCodeAt(n));)n++;if(n>=r||61!==e.charCodeAt(n)){t[o]="";continue}for(n++;n<r&&pE(e.charCodeAt(n));)n++;if(n>=r)break;const a=e.charCodeAt(n);if(34===a||39===a){n++;const i=n;for(;n<r&&e.charCodeAt(n)!==a;)n++;t[o]=dE(uE(e.slice(i,n))),n++}else{const i=n;for(;n<r&&!pE(e.charCodeAt(n));)n++;t[o]=dE(uE(e.slice(i,n)))}}return t}function pE(e){return 32===e||9===e||10===e||13===e}function gE(e,t){const n=65279===e.charCodeAt(0)?e.slice(1):e,r=n.length;let i=0;function o(e){let t=1,o=1;for(let e=0;e<i&&e<r;e++)10===n.charCodeAt(e)?(t++,o=1):o++;throw new nE(`${e} at line ${t}, column ${o}`)}for(;i<r;){if(60===n.charCodeAt(i)){const e=i+1<r?n.charCodeAt(i+1):0;if(33===e){if("\x3c!--"===n.slice(i,i+4)){const e=n.indexOf("--\x3e",i+4);-1===e&&o("Unterminated comment"),i=e+3;continue}if("<![CDATA["===n.slice(i,i+9)){const e=n.indexOf("]]>",i+9);-1===e&&o("Unterminated CDATA section");const r=n.slice(i+9,e);t.onCData?.(r),t.onText?.(r),i=e+3;continue}const e=n.indexOf(">",i+2);-1===e&&o("Unterminated declaration"),i=e+1;continue}if(63===e){const e=n.indexOf("?>",i+2);-1===e&&o("Unterminated processing instruction"),i=e+2;continue}if(47===e){const e=n.indexOf(">",i+2);-1===e&&o("Unterminated closing tag");const r=n.slice(i+2,e).trim();t.onCloseTag?.(r),i=e+1;continue}let a=i+1,s=0;for(;a<r;){const e=n.charCodeAt(a);if(s)e===s&&(s=0);else if(34===e||39===e)s=e;else if(62===e)break;a++}a>=r&&o("Unterminated opening tag");const l=47===n.charCodeAt(a-1),c=n.slice(i+1,l?a-1:a);let u=0;const d=c.length;for(;u<d&&!pE(c.charCodeAt(u));)u++;const f=c.slice(0,u),h=u<d?c.slice(u+1):"",p=h?hE(h):{};t.onOpenTag?.(f,p),l&&t.onCloseTag?.(f),i=a+1;continue}const e=i;for(;i<r&&60!==n.charCodeAt(i);)i++;const a=n.slice(e,i);if(a){const e=dE(uE(a));t.onText?.(e)}}}const mE=262144,yE=64;function vE(e,t,n){let r=n;const i=e.lastIndexOf("&",r-1);i>=t&&n-i<=yE&&-1===e.indexOf(";",i)&&(r=i);const o=r>t?e.charCodeAt(r-1):0;return(o>=55296&&o<=56319||13===o)&&r--,r>t?r:t}function bE(e,t,n,r){if(e)throw new nE(r);return t.slice(n)}function AE(e,t,n,r){let i=0;const o=e.length;for(;i<o;){if(60===e.charCodeAt(i)){const a=i+1<o?e.charCodeAt(i+1):-1;if(-1===a&&!n)return e.slice(i);if(33===a){if("\x3c!--"===e.slice(i,i+4)){const t=e.indexOf("--\x3e",i+4);if(-1===t)return bE(n&&r,e,i,"Unterminated comment");i=t+3;continue}if("<![CDATA["===e.slice(i,i+9)){const o=e.indexOf("]]>",i+9);if(-1===o)return bE(n&&r,e,i,"Unterminated CDATA section");const a=e.slice(i+9,o);t.onCData?.(a),t.onText?.(a),i=o+3;continue}if(!n&&o-i<9)return e.slice(i);const a=e.indexOf(">",i+2);if(-1===a)return bE(n&&r,e,i,"Unterminated declaration");i=a+1;continue}if(63===a){const t=e.indexOf("?>",i+2);if(-1===t)return bE(n&&r,e,i,"Unterminated processing instruction");i=t+2;continue}if(47===a){const o=e.indexOf(">",i+2);if(-1===o)return bE(n&&r,e,i,"Unterminated closing tag");const a=e.slice(i+2,o).trim();t.onCloseTag?.(a),i=o+1;continue}let s=i+1,l=0;for(;s<o;){const t=e.charCodeAt(s);if(l)t===l&&(l=0);else if(34===t||39===t)l=t;else if(62===t)break;s++}if(s>=o)return bE(n&&r,e,i,"Unterminated opening tag");const c=47===e.charCodeAt(s-1),u=e.slice(i+1,c?s-1:s);let d=0;const f=u.length;for(;d<f&&!pE(u.charCodeAt(d));)d++;const h=u.slice(0,d),p=d<f?u.slice(d+1):"",g=p?hE(p):{};t.onOpenTag?.(h,g),c&&t.onCloseTag?.(h),i=s+1;continue}const a=i;for(;i<o&&60!==e.charCodeAt(i);)i++;if(i>=o&&!n){if(o-a>mE){const n=vE(e,a,o);if(n>a)return t.onText?.(dE(uE(e.slice(a,n)))),e.slice(n)}return e.slice(a)}const s=e.slice(a,i);if(s){const e=dE(uE(s));t.onText?.(e)}}return""}function wE(e){const t={tag:"",local:"",prefix:"",attrs:{},children:[]},n=[t];if(gE(e,{onOpenTag(e,t){const{local:r,prefix:i}=function(e){const t=e.indexOf(":");return-1===t?{local:e,prefix:""}:{prefix:e.slice(0,t),local:e.slice(t+1)}}(e),o={tag:e,local:r,prefix:i,attrs:t,children:[]};n[n.length-1].children.push(o),n.push(o)},onCloseTag(e){if(n.length<=1)throw new nE("Unexpected closing tag: no matching open tag");const t=n[n.length-1];if(t.tag!==e)throw new nE(`Mismatched closing tag: expected </${t.tag}> but found </${e}>`);if(n.pop(),t.children.length>0){const e=[];for(const n of t.children)"string"==typeof n&&e.push(n);e.length>0&&(t.text=e.join(""))}},onText(e){n[n.length-1].children.push(e)}}),n.length>1){const e=n[n.length-1].tag;throw new nE(`Unexpected end of document: unclosed element <${e}>`)}if(0===t.children.length)throw new nE("Empty document: no root element found");for(const e of t.children)if("string"!=typeof e)return e;throw new nE("No root element found in document")}function xE(e,t){for(const n of e.children)if("string"!=typeof n&&n.local===t)return n}function IE(e){const t=[];for(const n of e.children)"string"!=typeof n&&t.push(n);return t}function CE(e,t){if(e.local===t)return e;for(const n of e.children){if("string"==typeof n)continue;const e=CE(n,t);if(e)return e}}function SE(e,t){const n=xE(e,t);if(!n)return"";let r="";for(const e of n.children)"string"==typeof e&&(r+=e);return r}function EE(e,t){if(void 0===e)return t;const n=parseInt(e,10);return Number.isNaN(n)?t:n}function kE(e){const t=wE(e),n=[];for(const e of IE(t)){if("threadedComment"!==e.local)continue;const t=e.attrs.id,r=e.attrs.personId;if(!t||!r)continue;const i={id:t,personId:r,text:SE(e,"text")};e.attrs.ref&&(i.ref=e.attrs.ref),e.attrs.parentId&&(i.parentId=e.attrs.parentId),e.attrs.dT&&(i.date=e.attrs.dT),"1"!==e.attrs.done&&"true"!==e.attrs.done||(i.done=!0);const o=xE(e,"mentions");if(o){const e=[];for(const t of IE(o)){if("mention"!==t.local)continue;const n=t.attrs.mentionpersonId,r=t.attrs.mentionId;n&&r&&e.push({mentionPersonId:n,mentionId:r,startIndex:EE(t.attrs.startIndex,0),length:EE(t.attrs.length,0)})}e.length>0&&(i.mentions=e)}n.push(i)}return n}function BE(e){const t=wE(e),n=[];for(const e of t.children){if("string"==typeof e)continue;if("Relationship"===(e.local||e.tag)){const t=e.attrs.Id??"",r=e.attrs.Type??"",i=e.attrs.Target??"",o=e.attrs.TargetMode;if(t&&r&&i){const e={id:t,type:r,target:i};o&&(e.targetMode=o),n.push(e)}}}return n}function FE(e,t){if(t.startsWith("/"))return t.slice(1);const n=e.split("/").filter(Boolean),r=t.split("/").filter(Boolean);for(const e of r)".."===e?n.pop():"."!==e&&n.push(e);return n.join("/")}function DE(e){const t=e.lastIndexOf("/");return-1===t?"":e.slice(0,t)}function ME(e){for(const t of Object.keys(e))if(t.endsWith(":id")&&e[t].startsWith("rId"))return e[t]}const NE=new Set(["n","s","b","e","str"]);function TE(e,t){const n=xE(wE(e),"externalBook");let r,i="";if(n&&t){const e=BE(t),o=n.attrs["r:id"]??n.attrs.id,a=o?e.find(e=>e.id===o):void 0;a&&(i=a.target,"External"!==a.targetMode&&"Internal"!==a.targetMode||(r=a.targetMode))}const o=function(e){const t=e?xE(e,"sheetNames"):void 0;if(!t)return[];const n=[];for(const e of IE(t))"sheetName"===e.local&&n.push(e.attrs.val??"");return n}(n),a=function(e){const t=e?xE(e,"sheetDataSet"):void 0;if(!t)return[];const n=[];for(const e of IE(t)){if("sheetData"!==e.local)continue;const t=EE(e.attrs.sheetId,0),r=[];for(const t of IE(e))if("row"===t.local)for(const e of IE(t)){if("cell"!==e.local)continue;const t=e.attrs.r??"";if(!t)continue;const n=e.attrs.t??"n",i=NE.has(n)?n:"n",o=SE(e,"v");r.push({ref:t,type:i,value:QE(i,o)})}n.push({sheetId:t,cells:r})}return n}(n),s=function(e){const t=e?xE(e,"definedNames"):void 0;if(!t)return[];const n=[];for(const e of IE(t)){if("definedName"!==e.local)continue;const t={name:e.attrs.name??""};if(e.attrs.refersTo&&(t.refersTo=e.attrs.refersTo),void 0!==e.attrs.sheetId){const n=EE(e.attrs.sheetId,NaN);Number.isNaN(n)||(t.sheetId=n)}t.name&&n.push(t)}return n}(n),l={target:i,sheetNames:o,sheetData:a};return r&&(l.targetMode=r),s&&s.length>0&&(l.definedNames=s),l}function QE(e,t){switch(e){case"n":case"s":{const e=Number(t);return Number.isFinite(e)?e:0}case"b":return"1"===t||"true"===t;case"e":case"str":return t}}function RE(e){const t=xE(e,"pic");if(!t)return;const n=xE(t,"nvPicPr"),r=n?xE(n,"cNvPr"):void 0,i=r?.attrs.name;if(!i)return;const o=xE(t,"blipFill"),a=o?xE(o,"blip"):void 0,s=a?.attrs["r:embed"]??a?.attrs.embed;if(!s)return;const l={id:i,embedRId:s},c=r?.attrs.descr;return c&&(l.description=c),l}function LE(e){const t=wE(e),n="pivotCacheDefinition"===t.local?t:xE(t,"pivotCacheDefinition");if(!n)return;const r={cacheId:0,fieldNames:[]},i=xE(n,"cacheSource");if(i){const e=i.attrs.type;"worksheet"!==e&&"external"!==e&&"consolidation"!==e&&"scenario"!==e||(r.sourceType=e);const t=xE(i,"worksheetSource");t&&(t.attrs.ref?r.sourceRef=t.attrs.ref:t.attrs.name&&(r.sourceRef=t.attrs.name),t.attrs.sheet&&(r.sourceSheet=t.attrs.sheet))}const o=xE(n,"cacheFields");if(o)for(const e of IE(o)){if("cacheField"!==e.local)continue;const t=e.attrs.name??"";r.fieldNames.push(t)}return r}function PE(e){const t=wE(e),n="pivotTableDefinition"===t.local?t:xE(t,"pivotTableDefinition");if(!n)return;const r=n.attrs.name;if(!r)return;const i=EE(n.attrs.cacheId,NaN),o={name:r,cacheId:Number.isNaN(i)?0:i,location:"",fields:[]},a=xE(n,"location");if(a){a.attrs.ref&&(o.location=a.attrs.ref);const e=EE(a.attrs.firstHeaderRow,NaN);Number.isNaN(e)||(o.firstHeaderRow=e);const t=EE(a.attrs.firstDataRow,NaN);Number.isNaN(t)||(o.firstDataRow=t);const n=EE(a.attrs.firstDataCol,NaN);Number.isNaN(n)||(o.firstDataCol=n);const r=EE(a.attrs.rowPageCount,NaN);Number.isNaN(r)||(o.rowPageCount=r);const i=EE(a.attrs.colPageCount,NaN);Number.isNaN(i)||(o.colPageCount=i)}const s=xE(n,"pivotFields"),l=[];if(s)for(const e of IE(s)){if("pivotField"!==e.local)continue;const t=e.attrs.axis,n="1"===e.attrs.dataField||"true"===e.attrs.dataField;let r="hidden";"axisRow"===t?r="row":"axisCol"===t?r="col":"axisPage"===t?r="page":("axisValues"===t||n)&&(r="data"),l.push({axis:r,raw:e})}const c=xE(n,"dataFields"),u=new Map;if(c)for(const e of IE(c)){if("dataField"!==e.local)continue;const t=EE(e.attrs.fld,NaN);if(Number.isNaN(t))continue;const n={};e.attrs.name&&(n.name=e.attrs.name);const r=UE(e.attrs.subtotal);r&&(n.subtotal=r),u.set(t,n)}for(let e=0;e<l.length;e++){const{axis:t}=l[e],n={name:`field${e+1}`,axis:t};if("data"===t){const t=u.get(e);n.function=t?.subtotal?t.subtotal:"sum",t?.name&&(n.displayName=t.name)}o.fields.push(n)}const d=xE(n,"pivotTableStyleInfo");return d?.attrs.name&&(o.styleName=d.attrs.name),n.attrs.dataCaption&&(o.dataCaption=n.attrs.dataCaption),o}function OE(e,t){for(let n=0;n<e.fields.length;n++){const r=t.fieldNames[n];r&&(e.fields[n].name=r)}}function UE(e){if(e)switch(e){case"sum":case"count":case"average":case"max":case"min":case"product":case"countNums":case"stdDev":case"stdDevp":case"var":case"varp":return e;case"countA":return"count";default:return}}function $E(e){const t=wE(e),n=[];for(const e of IE(t)){if("slicer"!==e.local)continue;const t=e.attrs.name,r=e.attrs.cache;if(!t||!r)continue;const i={name:t,cache:r};if(e.attrs.caption&&(i.caption=e.attrs.caption),void 0!==e.attrs.columnCount){const t=EE(e.attrs.columnCount,NaN);Number.isNaN(t)||(i.columnCount=t)}if(e.attrs.style&&(i.style=e.attrs.style),e.attrs.sortOrder&&(i.sortOrder=e.attrs.sortOrder),void 0!==e.attrs.rowHeight){const t=EE(e.attrs.rowHeight,NaN);Number.isNaN(t)||(i.rowHeight=t)}n.push(i)}return n}function HE(e){const t=wE(e),n="slicerCacheDefinition"===t.local?t:xE(t,"slicerCacheDefinition");if(!n)return;const r=n.attrs.name;if(!r)return;const i={name:r};n.attrs.sourceName&&(i.sourceName=n.attrs.sourceName);const o=jE(n);o.length>0&&(i.pivotTables=o);const a=function(e){const t=xE(e,"extLst");if(!t)return;for(const e of IE(t)){if("ext"!==e.local)continue;const t=xE(e,"tableSlicerCache");if(!t)continue;const n=t.attrs.name??t.attrs.tableId;if(!n)continue;const r={name:n};return t.attrs.column&&(r.column=t.attrs.column),r}return}(n);return a&&(i.tableSource=a),i}function zE(e){const t=wE(e),n=[];for(const e of IE(t)){if("timeline"!==e.local)continue;const t=e.attrs.name,r=e.attrs.cache;if(!t||!r)continue;const i={name:t,cache:r};e.attrs.caption&&(i.caption=e.attrs.caption),e.attrs.style&&(i.style=e.attrs.style),e.attrs.level&&(i.level=e.attrs.level),void 0!==e.attrs.showHeader&&(i.showHeader=WE(e.attrs.showHeader)),void 0!==e.attrs.showSelectionLabel&&(i.showSelectionLabel=WE(e.attrs.showSelectionLabel)),void 0!==e.attrs.showTimeLevel&&(i.showTimeLevel=WE(e.attrs.showTimeLevel)),void 0!==e.attrs.showHorizontalScrollbar&&(i.showHorizontalScrollbar=WE(e.attrs.showHorizontalScrollbar)),n.push(i)}return n}function qE(e){const t=wE(e),n="timelineCacheDefinition"===t.local?t:xE(t,"timelineCacheDefinition");if(!n)return;const r=n.attrs.name;if(!r)return;const i={name:r};n.attrs.sourceName&&(i.sourceName=n.attrs.sourceName);const o=jE(n);return o.length>0&&(i.pivotTables=o),i}function jE(e){const t=xE(e,"pivotTables");if(!t)return[];const n=[];for(const e of IE(t)){if("pivotTable"!==e.local)continue;const t=e.attrs.name;if(!t)continue;const r=EE(e.attrs.tabId,NaN);Number.isNaN(r)||n.push({tabId:r,name:t})}return n}function WE(e){return"1"===e||"true"===e}function _E(e){return`_x${e.toString(16).toUpperCase().padStart(4,"0")}_`}function VE(e){return e>=0&&e<=8||11===e||12===e||e>=14&&e<=31}function YE(e,t="ooxml"){let n="",r=0;for(let i=0;i<e.length;i++){const o=e.charCodeAt(i);let a;switch(o){case 38:a="&";break;case 60:a="<";break;case 62:a=">";break;case 13:a="charRef"===t?" ":_E(13);break;default:VE(o)&&(a=_E(o))}a&&(n+=e.slice(r,i)+a,r=i+1)}return 0===r?e:n+e.slice(r)}function GE(e){let t="",n=0;for(let r=0;r<e.length;r++){let i;switch(e.charCodeAt(r)){case 38:i="&";break;case 60:i="<";break;case 62:i=">";break;case 34:i=""";break;case 39:i="'";break;case 9:i="	";break;case 10:i=" ";break;case 13:i=" ";break;default:VE(e.charCodeAt(r))&&(i=_E(e.charCodeAt(r)))}i&&(t+=e.slice(n,r)+i,n=r+1)}return 0===n?e:t+e.slice(n)}function JE(e){if(!e)return"";let t="";const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=n[r],o=e[i];null!=o&&(t+="boolean"==typeof o?` ${i}="${o?"true":"false"}"`:` ${i}="${GE(String(o))}"`)}return t}function XE(e,t){return`<${e}${JE(t)}/>`}function KE(e){const t=YE(e);return e.length>0&&(" "===e[0]||" "===e[e.length-1]||e.includes("\n")||e.includes("\t"))?`<t xml:space="preserve">${t}</t>`:ZE("t",void 0,t)}function ZE(e,t,n){const r=JE(t);if(null==n)return`<${e}${r}/>`;const i=Array.isArray(n)?n.join(""):n;return i?`<${e}${r}>${i}</${e}>`:`<${e}${r}/>`}function ek(e,t,n,r){const i=[];return!1!==r?.declaration&&i.push(function(e){return`<?xml version="1.0" encoding="UTF-8" standalone="${e?.standalone??"yes"}"?>`}(r)),null==n?i.push(XE(e,t)):i.push(ZE(e,t,n)),i.join("")}function tk(e,t){for(const n of e.children)"string"!=typeof n&&("t"===n.local?t.push(nk(n)):tk(n,t))}function nk(e){let t="";for(const n of e.children)t+="string"==typeof n?n:nk(n);return t}function rk(e){if("string"!=typeof e)return;const t=e.trim().toLowerCase();return"1"===t||"true"===t||"0"!==t&&"false"!==t&&void 0}function ik(e){const t=e.attrs.val;if("string"==typeof t)return"1"===t||"true"===t.toLowerCase()}function ok(e){if(void 0!==e)return"1"===e||"true"===e||"0"!==e&&"false"!==e&&void 0}function ak(e){if(!e)return;const t=xE(e,"numRef")??xE(e,"strRef");if(t){const e=xE(t,"f");if(e){const t=nk(e).trim();if(t.length>0)return t}}const n=xE(e,"f");if(n){const e=nk(n).trim();if(e.length>0)return e}}function sk(e,t){const n=xE(e,t);if(!n)return;const r=n.attrs.val;if("string"!=typeof r)return;const i=r.trim();if(0===i.length)return;const o=Number(i);return Number.isFinite(o)?o:void 0}const lk=.25,ck=13.5,uk=12700,dk=new Set(["solid","dot","dash","lgDash","dashDot","lgDashDot","lgDashDotDot","sysDash","sysDot","sysDashDot","sysDashDotDot"]),fk=new Set(["solid","dash","dashDot","dot","lgDash","lgDashDot","lgDashDotDot","sysDash","sysDashDot","sysDashDotDot","sysDot"]),hk=new Set(["rnd","sq","flat"]),pk=new Set(["sng","dbl","thickThin","thinThick","tri"]);function gk(e){if("string"==typeof e&&hk.has(e)&&"flat"!==e)return e}function mk(e){if("string"==typeof e&&pk.has(e)&&"sng"!==e)return e}function yk(e){const t=xE(e,"spPr");if(!t)return;const n=xE(t,"ln");if(!n)return;const r=n.attrs.cap;if("string"!=typeof r)return;const i=r.trim();return hk.has(i)&&"flat"!==i?i:void 0}function vk(e){const t=xE(e,"spPr");if(!t)return;const n=xE(t,"ln");if(!n)return;const r=n.attrs.cmpd;if("string"!=typeof r)return;const i=r.trim();return pk.has(i)&&"sng"!==i?i:void 0}const bk=new Set(["bg1","tx1","bg2","tx2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink","phClr","dk1","lt1","dk2","lt2"]),Ak=1e5,wk=-1e5,xk=1e5;function Ik(e,t,n,r){const i=xE(e,t);if(!i)return;const o=i.attrs.val;if("string"!=typeof o)return;const a=Number.parseInt(o.trim(),10);return Number.isFinite(a)&&!(a<n||a>r)?a:void 0}function Ck(e){const t=e.attrs.val;if("string"!=typeof t)return;const n=t.trim();if(!bk.has(n))return;const r={theme:n},i=Ik(e,"lumMod",0,Ak);void 0!==i&&(r.lumMod=i);const o=Ik(e,"lumOff",0,Ak);void 0!==o&&(r.lumOff=o);const a=Ik(e,"tint",wk,xk);void 0!==a&&(r.tint=a);const s=Ik(e,"shade",wk,xk);void 0!==s&&(r.shade=s);const l=Ik(e,"alpha",0,Ak);return void 0!==l&&(r.alpha=l),r}function Sk(e){if(null==e)return;if("string"==typeof e){return kk(e)}if("object"!=typeof e)return;const t=e.theme;if("string"!=typeof t||!bk.has(t))return;const n={theme:t},r=(e,t,n)=>{if("number"!=typeof e||!Number.isFinite(e))return;const r=Math.round(e);return r<t||r>n?void 0:r},i=r(e.lumMod,0,Ak);void 0!==i&&(n.lumMod=i);const o=r(e.lumOff,0,Ak);void 0!==o&&(n.lumOff=o);const a=r(e.tint,wk,xk);void 0!==a&&(n.tint=a);const s=r(e.shade,wk,xk);void 0!==s&&(n.shade=s);const l=r(e.alpha,0,Ak);return void 0!==l&&(n.alpha=l),n}function Ek(e){if("string"==typeof e)return XE("a:srgbClr",{val:e});const t=[];return void 0!==e.tint&&t.push(XE("a:tint",{val:e.tint})),void 0!==e.shade&&t.push(XE("a:shade",{val:e.shade})),void 0!==e.alpha&&t.push(XE("a:alpha",{val:e.alpha})),void 0!==e.lumMod&&t.push(XE("a:lumMod",{val:e.lumMod})),void 0!==e.lumOff&&t.push(XE("a:lumOff",{val:e.lumOff})),0===t.length?XE("a:schemeClr",{val:e.theme}):ZE("a:schemeClr",{val:e.theme},t)}function kk(e){if("string"!=typeof e)return;const t=e.trim();if(0===t.length)return;const n=t.startsWith("#")?t.slice(1):t;return 6===n.length&&/^[0-9a-fA-F]{6}$/.test(n)?n.toUpperCase():void 0}function Bk(e){const t=xE(e,"spPr");if(!t)return;const n=xE(t,"solidFill");if(!n)return;const r=xE(n,"srgbClr");if(r)return kk(r.attrs.val);const i=xE(n,"schemeClr");return i?Ck(i):void 0}function Fk(e){const t=xE(e,"spPr");if(!t)return;const n=xE(t,"ln");if(!n)return;const r=xE(n,"solidFill");if(!r)return;const i=xE(r,"srgbClr");if(i)return kk(i.attrs.val);const o=xE(r,"schemeClr");return o?Ck(o):void 0}function Dk(e){const t=xE(e,"spPr");if(!t)return;const n=xE(t,"ln");if(!n)return;const r=n.attrs.w;if("string"!=typeof r)return;const i=Number.parseFloat(r);if(!Number.isFinite(i)||i<=0)return;const o=Math.round(i/uk*4)/4;return o<lk?lk:o>ck?ck:o}function Mk(e){const t=xE(e,"spPr");if(!t)return;const n=xE(t,"ln");if(!n)return;const r=xE(n,"prstDash");if(!r)return;const i=r.attrs.val;if("string"!=typeof i)return;const o=i.trim();return fk.has(o)&&"solid"!==o?o:void 0}function Nk(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(4*e)/4;return t<lk?lk:t>ck?ck:t}function Tk(e){if("string"==typeof e&&fk.has(e)&&"solid"!==e)return e}function Qk(e){const t=xE(e,"view3D");if(!t)return;const n={},r=Rk(t,"rotX",-90,90);void 0!==r&&(n.rotX=r);const i=Rk(t,"hPercent",5,500);void 0!==i&&(n.hPercent=i);const o=Rk(t,"rotY",0,360);void 0!==o&&(n.rotY=o);const a=Rk(t,"depthPercent",20,2e3);void 0!==a&&(n.depthPercent=a);const s=function(e,t){const n=xE(e,t);if(!n)return;const r=n.attrs.val;if("string"!=typeof r)return;switch(r){case"1":case"true":return!0;case"0":case"false":return!1;default:return}}(t,"rAngAx");void 0!==s&&(n.rAngAx=s);const l=Rk(t,"perspective",0,240);return void 0!==l&&(n.perspective=l),n}function Rk(e,t,n,r){const i=xE(e,t);if(!i)return;const o=i.attrs.val;if("string"!=typeof o)return;if(!/^-?\d+$/.test(o))return;const a=Number(o);return Number.isInteger(a)&&!(a<n||a>r)?a:void 0}function Lk(e,t,n){if("number"==typeof e&&Number.isFinite(e)&&Number.isInteger(e)&&!(e<t||e>n))return e}function Pk(e){if(!e)return;const t=e.attrs.val;if("string"!=typeof t)return;const n=t.trim();if(0===n.length)return;const r=Number(n);return Number.isFinite(r)&&!(r<0||r>1)?r:void 0}function Ok(e){const t=xE(e,"layout");if(!t)return;const n=xE(t,"manualLayout");if(!n)return;const r=Pk(xE(n,"x")),i=Pk(xE(n,"y")),o=Pk(xE(n,"w")),a=Pk(xE(n,"h"));if(void 0===r&&void 0===i&&void 0===o&&void 0===a)return;const s={};return void 0!==r&&(s.x=r),void 0!==i&&(s.y=i),void 0!==o&&(s.w=o),void 0!==a&&(s.h=a),s}function Uk(e){if(!e||"object"!=typeof e)return;const t={},n=$k(e.x);void 0!==n&&(t.x=n);const r=$k(e.y);void 0!==r&&(t.y=r);const i=$k(e.w);void 0!==i&&(t.w=i);const o=$k(e.h);return void 0!==o&&(t.h=o),void 0!==t.x||void 0!==t.y||void 0!==t.w||void 0!==t.h?t:void 0}function $k(e){if("number"==typeof e&&Number.isFinite(e)&&!(e<0||e>1))return e}function Hk(e){if(!e)return;const t=[];return void 0!==e.x&&t.push(XE("c:xMode",{val:"edge"})),void 0!==e.y&&t.push(XE("c:yMode",{val:"edge"})),void 0!==e.w&&t.push(XE("c:wMode",{val:"edge"})),void 0!==e.h&&t.push(XE("c:hMode",{val:"edge"})),void 0!==e.x&&t.push(XE("c:x",{val:e.x})),void 0!==e.y&&t.push(XE("c:y",{val:e.y})),void 0!==e.w&&t.push(XE("c:w",{val:e.w})),void 0!==e.h&&t.push(XE("c:h",{val:e.h})),0!==t.length?ZE("c:layout",void 0,[ZE("c:manualLayout",void 0,t)]):void 0}function zk(e){const t=xE(e,"txPr");if(t)return jk(t)}function qk(e){const t=xE(e,"title");if(!t)return;const n=xE(t,"tx");if(!n)return;const r=xE(n,"rich");return r?jk(r):void 0}function jk(e){const t=xE(e,"p");if(!t)return;const n=xE(t,"pPr");return n?xE(n,"defRPr"):void 0}const Wk=6e4,_k=100,Vk=400,Yk=Wk,Gk=-90;function Jk(e,t,n,r,i,o){if(void 0===e&&void 0===t&&void 0===n&&void 0===r&&void 0===i&&void 0===o)return;const a=[];if(void 0!==e&&a.push(ZE("a:solidFill",void 0,[Ek(e)])),void 0!==t||void 0!==n||void 0!==r||void 0!==i||void 0!==o){const e={};void 0!==n&&(e.w=Math.round(n*uk)),void 0!==i&&(e.cap=i),void 0!==o&&(e.cmpd=o);const s=[];void 0!==t&&s.push(ZE("a:solidFill",void 0,[Ek(t)])),void 0!==r&&s.push(XE("a:prstDash",{val:r})),a.push(0===s.length?XE("a:ln",e):ZE("a:ln",Object.keys(e).length>0?e:void 0,s))}return ZE("c:spPr",void 0,a)}function Xk(e){if(void 0===e||"number"!=typeof e||!Number.isFinite(e))return;let t=Math.round(e);return t<Gk?t=Gk:t>90&&(t=90),0!==t?t:void 0}function Kk(e){if(void 0===e||"number"!=typeof e||!Number.isFinite(e))return;const t=Math.round(2*e)/2;return t<1||t>400?void 0:t}function Zk(e){return!0===e||!1!==e&&void 0}function eB(e){return!0===e||!1!==e&&void 0}function tB(e){return"string"==typeof e?kk(e):Sk(e)}function nB(e){return!0===e||!1!==e&&void 0}function rB(e){return!0===e||!1!==e&&void 0}const iB=_k,oB=Vk;function aB(e,t,n,r,i,o,a,s,l,c,u,d,f,h,p,g,m){const y=[XE("c:legendPos",{val:e})];for(const e of n){const t=[XE("c:idx",{val:e.idx}),XE("c:delete",{val:e.delete?1:0})],n=sB(e.fontSize,e.bold,e.italic,e.underline,e.strikethrough,e.color,e.fontFamily);void 0!==n&&t.push(n),y.push(ZE("c:legendEntry",void 0,t))}const v=Hk(u);void 0!==v&&y.push(v),y.push(XE("c:overlay",{val:t?1:0}));const b=function(e,t,n,r,i,o){if(void 0===e&&void 0===t&&void 0===n&&void 0===r&&void 0===i&&void 0===o)return;const a=[];void 0!==e&&a.push(ZE("a:solidFill",void 0,[Ek(e)]));if(void 0!==t||void 0!==n||void 0!==r||void 0!==i||void 0!==o){const e={};void 0!==n&&(e.w=Math.round(n*uk)),void 0!==i&&(e.cap=i),void 0!==o&&(e.cmpd=o);const s=[];void 0!==t&&s.push(ZE("a:solidFill",void 0,[Ek(t)])),void 0!==r&&s.push(XE("a:prstDash",{val:r})),a.push(0===s.length?XE("a:ln",e):ZE("a:ln",Object.keys(e).length>0?e:void 0,s))}return ZE("c:spPr",void 0,a)}(d,f,h,p,g,m);void 0!==b&&y.push(b);const A=sB(r,i,o,a,s,l,c);return void 0!==A&&y.push(A),ZE("c:legend",void 0,y)}function sB(e,t,n,r,i,o,a){if(void 0===e&&void 0===t&&void 0===n&&void 0===r&&void 0===i&&void 0===o&&void 0===a)return;const s={};void 0!==e&&(s.sz=e*iB),void 0!==t&&(s.b=t?1:0),void 0!==n&&(s.i=n?1:0),void 0!==r&&(s.u=r?"sng":"none"),!0===i&&(s.strike="sngStrike");const l=void 0!==o?ZE("a:solidFill",void 0,[Ek(o)]):void 0,c=a?XE("a:latin",{typeface:a}):void 0,u=[];l&&u.push(l),c&&u.push(c);const d=u.length>0?ZE("a:defRPr",s,u):XE("a:defRPr",s);return ZE("c:txPr",void 0,[XE("a:bodyPr"),XE("a:lstStyle"),ZE("a:p",void 0,[ZE("a:pPr",void 0,[d]),XE("a:endParaRPr",{lang:"en-US"})])])}const lB=_k;function cB(e){const t=xE(e,"dTable");if(!t)return;const n={},r=uB(t,"showHorzBorder");void 0!==r&&(n.showHorzBorder=r);const i=uB(t,"showVertBorder");void 0!==i&&(n.showVertBorder=i);const o=uB(t,"showOutline");void 0!==o&&(n.showOutline=o);const a=uB(t,"showKeys");void 0!==a&&(n.showKeys=a);const s=function(e){const t=zk(e);if(!t)return;const n=t.attrs.sz;if("string"!=typeof n)return;const r=n.trim();if(0===r.length)return;const i=Number.parseInt(r,10);if(!Number.isFinite(i))return;const o=Math.round(i/lB*2)/2;return o<1||o>400?void 0:o}(t);void 0!==s&&(n.fontSize=s);const l=function(e){const t=zk(e);if(!t)return;const n=xE(t,"solidFill");if(!n)return;const r=xE(n,"srgbClr");if(r)return kk(r.attrs.val);const i=xE(n,"schemeClr");return i?Ck(i):void 0}(t);void 0!==l&&(n.fontColor=l);const c=function(e){const t=zk(e);if(!t)return;const n=t.attrs.b;if("string"!=typeof n)return;switch(n){case"1":case"true":return!0;case"0":case"false":return!1;default:return}}(t);void 0!==c&&(n.bold=c);const u=function(e){const t=zk(e);if(!t)return;const n=t.attrs.i;if("string"!=typeof n)return;switch(n){case"1":case"true":return!0;case"0":case"false":return!1;default:return}}(t);void 0!==u&&(n.italic=u);const d=function(e){const t=zk(e);if(!t)return;const n=t.attrs.u;return"sng"===n||"none"!==n&&void 0}(t);void 0!==d&&(n.underline=d);const f=function(e){const t=zk(e);if(!t)return;return"sngStrike"===t.attrs.strike||void 0}(t);void 0!==f&&(n.strikethrough=f);const h=function(e){const t=zk(e);if(!t)return;const n=xE(t,"latin");if(!n)return;const r=n.attrs.typeface;if("string"!=typeof r)return;const i=r.trim();return 0===i.length?void 0:i}(t);void 0!==h&&(n.fontFamily=h);const p=Bk(t);void 0!==p&&(n.fillColor=p);const g=function(e){return Fk(e)}(t);void 0!==g&&(n.borderColor=g);const m=Dk(t);void 0!==m&&(n.borderWidth=m);const y=Mk(t);void 0!==y&&(n.borderDash=y);const v=yk(t);void 0!==v&&(n.borderCap=v);const b=vk(t);return void 0!==b&&(n.borderCompound=b),n}function uB(e,t){const n=xE(e,t);if(!n)return;const r=n.attrs.val;if("string"==typeof r)switch(r){case"1":case"true":return!0;case"0":case"false":return!1;default:return}}function dB(e){return tB(e)}function fB(e){return!0===e||!1!==e&&void 0}function hB(e){return!0===e||!1!==e&&void 0}function pB(e){return!0===e||!1!==e&&void 0}function gB(e){if(!0===e)return!0}function mB(e){if("string"!=typeof e)return;const t=e.trim();return 0!==t.length?t:void 0}function yB(e){return tB(e)}function vB(e){return tB(e)}function bB(e){const t=[XE("c:showHorzBorder",{val:e.showHorzBorder?1:0}),XE("c:showVertBorder",{val:e.showVertBorder?1:0}),XE("c:showOutline",{val:e.showOutline?1:0}),XE("c:showKeys",{val:e.showKeys?1:0})],n=function(e,t,n,r,i,o){if(void 0===e&&void 0===t&&void 0===n&&void 0===r&&void 0===i&&void 0===o)return;const a=[];void 0!==e&&a.push(ZE("a:solidFill",void 0,[Ek(e)]));if(void 0!==t||void 0!==n||void 0!==r||void 0!==i||void 0!==o){const e={};void 0!==n&&(e.w=Math.round(n*uk)),void 0!==i&&(e.cap=i),void 0!==o&&(e.cmpd=o);const s=[];void 0!==t&&s.push(ZE("a:solidFill",void 0,[Ek(t)])),void 0!==r&&s.push(XE("a:prstDash",{val:r})),a.push(0===s.length?XE("a:ln",e):ZE("a:ln",Object.keys(e).length>0?e:void 0,s))}return ZE("c:spPr",void 0,a)}(e.fillColor,e.borderColor,e.borderWidth,e.borderDash,e.borderCap,e.borderCompound);void 0!==n&&t.push(n);const r=function(e,t,n,r,i,o,a){if(void 0===e&&void 0===t&&void 0===n&&void 0===r&&void 0===i&&void 0===o&&void 0===a)return;const s={};void 0!==e&&(s.sz=e*lB);void 0!==n&&(s.b=n?1:0);void 0!==r&&(s.i=r?1:0);void 0!==i&&(s.u=i?"sng":"none");!0===o&&(s.strike="sngStrike");const l=void 0!==t?ZE("a:solidFill",void 0,[Ek(t)]):void 0,c=a?XE("a:latin",{typeface:a}):void 0,u=[];l&&u.push(l);c&&u.push(c);const d=u.length>0?ZE("a:defRPr",s,u):XE("a:defRPr",s);return ZE("c:txPr",void 0,[XE("a:bodyPr"),XE("a:lstStyle"),ZE("a:p",void 0,[ZE("a:pPr",void 0,[d]),XE("a:endParaRPr",{lang:"en-US"})])])}(e.fontSize,e.fontColor,e.bold,e.italic,e.underline,e.strikethrough,e.fontFamily);return void 0!==r&&t.push(r),ZE("c:dTable",void 0,t)}const AB=_k,wB=new Set(["t","b","l","r","ctr","inEnd","inBase","outEnd","bestFit"]);function xB(e){const t=xE(e,"delete");if(t&&!0===ik(t))return;const n={},r=xE(e,"dLblPos");if(r){const e=r.attrs.val;"string"==typeof e&&wB.has(e)&&(n.position=e)}const i=xE(e,"showLegendKey");i&&!0===ik(i)&&(n.showLegendKey=!0);const o=xE(e,"showVal");o&&!0===ik(o)&&(n.showValue=!0);const a=xE(e,"showCatName");a&&!0===ik(a)&&(n.showCategoryName=!0);const s=xE(e,"showSerName");s&&!0===ik(s)&&(n.showSeriesName=!0);const l=xE(e,"showPercent");l&&!0===ik(l)&&(n.showPercent=!0);const c=xE(e,"separator");if(c){const e=nk(c);e.length>0&&(n.separator=e)}const u=function(e){const t=xE(e,"numFmt");if(!t)return;const n=t.attrs.formatCode;if("string"!=typeof n||0===n.length)return;const r={formatCode:n},i=t.attrs.sourceLinked;"string"==typeof i&&("1"!==i&&"true"!==i.toLowerCase()||(r.sourceLinked=!0));return r}(e);u&&(n.numberFormat=u);const d=xE(e,"showLeaderLines");if(d){const e=d.attrs.val;"string"!=typeof e||"0"!==e&&"false"!==e.toLowerCase()||(n.showLeaderLines=!1)}const f=function(e){const t=zk(e);if(!t)return;const n=t.attrs.sz;if("string"!=typeof n)return;const r=n.trim();if(0===r.length)return;const i=Number.parseInt(r,10);if(!Number.isFinite(i))return;const o=Math.round(i/AB*2)/2;return o<1||o>400?void 0:o}(e);void 0!==f&&(n.fontSize=f);const h=function(e){const t=zk(e);if(!t)return;const n=xE(t,"solidFill");if(!n)return;const r=xE(n,"srgbClr");if(r)return kk(r.attrs.val);const i=xE(n,"schemeClr");return i?Ck(i):void 0}(e);void 0!==h&&(n.fontColor=h);const p=function(e){const t=zk(e);if(!t)return;const n=t.attrs.b;return"1"===n||"true"===n||void 0}(e);void 0!==p&&(n.bold=p);const g=function(e){const t=zk(e);if(!t)return;const n=t.attrs.i;return"1"===n||"true"===n||void 0}(e);void 0!==g&&(n.italic=g);const m=function(e){const t=zk(e);if(!t)return;return"sng"===t.attrs.u||void 0}(e);void 0!==m&&(n.underline=m);const y=function(e){const t=zk(e);if(!t)return;return"sngStrike"===t.attrs.strike||void 0}(e);void 0!==y&&(n.strikethrough=y);const v=function(e){const t=zk(e);if(!t)return;const n=xE(t,"latin");if(!n)return;const r=n.attrs.typeface;if("string"!=typeof r)return;const i=r.trim();return 0===i.length?void 0:i}(e);void 0!==v&&(n.fontFamily=v);const b=Bk(e);void 0!==b&&(n.fillColor=b);const A=function(e){return Fk(e)}(e);void 0!==A&&(n.borderColor=A);const w=Dk(e);void 0!==w&&(n.borderWidth=w);const x=Mk(e);void 0!==x&&(n.borderDash=x);const I=yk(e);void 0!==I&&(n.borderCap=I);const C=vk(e);return void 0!==C&&(n.borderCompound=C),void 0!==n.position||n.showValue||n.showCategoryName||n.showSeriesName||n.showPercent||n.showLegendKey||void 0!==n.separator||void 0!==n.numberFormat||void 0!==n.showLeaderLines||void 0!==n.fontSize||void 0!==n.fontColor||void 0!==n.bold||void 0!==n.italic||void 0!==n.underline||void 0!==n.strikethrough||void 0!==n.fontFamily||void 0!==n.fillColor||void 0!==n.borderColor||void 0!==n.borderWidth||void 0!==n.borderDash||void 0!==n.borderCap||void 0!==n.borderCompound?n:void 0}function IB(e){if(e.dataLabels)return CB(e.dataLabels,e.type)}function CB(e,t){const n=[],r=function(e){if(!e)return;const t=e.formatCode;if("string"!=typeof t||0===t.length)return;const n={formatCode:t};!0===e.sourceLinked&&(n.sourceLinked=!0);return n}(e.numberFormat);r&&n.push(XE("c:numFmt",{formatCode:r.formatCode,sourceLinked:!0===r.sourceLinked?1:0}));const i=function(e,t,n,r,i,o){if(void 0===e&&void 0===t&&void 0===n&&void 0===r&&void 0===i&&void 0===o)return;const a=[];void 0!==e&&a.push(ZE("a:solidFill",void 0,[Ek(e)]));if(void 0!==t||void 0!==n||void 0!==r||void 0!==i||void 0!==o){const e={};void 0!==n&&(e.w=Math.round(n*uk)),void 0!==i&&(e.cap=i),void 0!==o&&(e.cmpd=o);const s=[];void 0!==t&&s.push(ZE("a:solidFill",void 0,[Ek(t)])),void 0!==r&&s.push(XE("a:prstDash",{val:r})),a.push(0===s.length?XE("a:ln",e):ZE("a:ln",Object.keys(e).length>0?e:void 0,s))}return ZE("c:spPr",void 0,a)}(tB(e.fillColor),function(e){return tB(e)}(e.borderColor),Nk(e.borderWidth),Tk(e.borderDash),gk(e.borderCap),mk(e.borderCompound));void 0!==i&&n.push(i);const o=function(e,t,n,r,i,o,a){if(void 0===e&&void 0===t&&void 0===n&&void 0===r&&void 0===i&&void 0===o&&void 0===a)return;const s={};void 0!==e&&(s.sz=e*AB);void 0!==n&&(s.b=n?1:0);void 0!==r&&(s.i=r?1:0);void 0!==i&&(s.u=i?"sng":"none");!0===o&&(s.strike="sngStrike");const l=void 0!==t?ZE("a:solidFill",void 0,[Ek(t)]):void 0,c=a?XE("a:latin",{typeface:a}):void 0,u=[];l&&u.push(l);c&&u.push(c);const d=u.length>0?ZE("a:defRPr",s,u):XE("a:defRPr",s);return ZE("c:txPr",void 0,[XE("a:bodyPr"),XE("a:lstStyle"),ZE("a:p",void 0,[ZE("a:pPr",void 0,[d]),XE("a:endParaRPr",{lang:"en-US"})])])}(function(e){return Kk(e)}(e.fontSize),function(e){return tB(e)}(e.fontColor),function(e){return!0===e||!1!==e&&void 0}(e.bold),function(e){return!0===e||!1!==e&&void 0}(e.italic),function(e){return!0===e||!1!==e&&void 0}(e.underline),function(e){return!0===e||void 0}(e.strikethrough),function(e){if("string"!=typeof e)return;const t=e.trim();return 0===t.length?void 0:t}(e.fontFamily));return void 0!==o&&n.push(o),e.position&&n.push(XE("c:dLblPos",{val:e.position})),n.push(XE("c:showLegendKey",{val:!0===e.showLegendKey?1:0})),n.push(XE("c:showVal",{val:e.showValue?1:0})),n.push(XE("c:showCatName",{val:e.showCategoryName?1:0})),n.push(XE("c:showSerName",{val:e.showSeriesName?1:0})),n.push(XE("c:showPercent",{val:e.showPercent?1:0})),n.push(XE("c:showBubbleSize",{val:0})),void 0!==e.separator&&n.push(ZE("c:separator",void 0,YE(e.separator))),"pie"!==t&&"doughnut"!==t||!1!==e.showLeaderLines||n.push(XE("c:showLeaderLines",{val:0})),ZE("c:dLbls",void 0,n)}const SB=new Set(["cone","coneToMax","box","cylinder","pyramid","pyramidToMax"]),EB=new Set(["linear","log","exp","power","poly","movingAvg"]),kB=new Set(["x","y"]),BB=new Set(["both","minus","plus"]),FB=new Set(["cust","fixedVal","percentage","stdDev","stdErr"]);function DB(e){const t=function(e){if("string"==typeof e)return SB.has(e)?e:void 0}(e);if(void 0!==t)return XE("c:shape",{val:t})}function MB(e){const t=xE(e,"spPr");if(!t)return;const n=xE(t,"solidFill");if(!n)return;const r=xE(n,"srgbClr");return r?kk(r.attrs.val):void 0}function NB(e){const t=xE(e,"spPr");if(!t)return;const n=xE(t,"ln");if(!n)return;const r=xE(n,"solidFill");if(!r)return;const i=xE(r,"srgbClr");return i?kk(i.attrs.val):void 0}function TB(e){const t=xE(e,"spPr");if(!t)return;const n=xE(t,"ln");if(!n)return;const r=n.attrs.w;if("string"!=typeof r)return;const i=Number.parseFloat(r);if(!Number.isFinite(i)||i<=0)return;const o=Math.round(i/uk*4)/4;return o<lk?lk:o>ck?ck:o}function QB(e){const t=xE(e,"spPr");if(!t)return;const n=xE(t,"ln");if(!n)return;const r=xE(n,"prstDash");if(!r)return;const i=r.attrs.val;if("string"!=typeof i)return;const o=i.trim();return fk.has(o)&&"solid"!==o?o:void 0}function RB(e){const t="string"==typeof e.type&&EB.has(e.type)?e.type:void 0;if(void 0===t)return;const n=[];"string"==typeof e.name&&e.name.trim().length>0&&n.push(ZE("c:name",void 0,e.name.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")));const r=function(e){const t=kk(e.lineColor),n=Nk(e.lineWidth),r=Tk(e.lineDash);if(!t&&void 0===n&&void 0===r)return;const i={};void 0!==n&&(i.w=Math.round(n*uk));const o=[];t&&o.push(ZE("a:solidFill",void 0,[XE("a:srgbClr",{val:t})]));void 0!==r&&o.push(XE("a:prstDash",{val:r}));const a=0===o.length?XE("a:ln",i):ZE("a:ln",Object.keys(i).length>0?i:void 0,o);return ZE("c:spPr",void 0,[a])}(e);if(r&&n.push(r),n.push(XE("c:trendlineType",{val:t})),"poly"===t&&"number"==typeof e.order&&Number.isFinite(e.order)){const t=Math.max(2,Math.min(6,Math.round(e.order)));n.push(XE("c:order",{val:t}))}if("movingAvg"===t&&"number"==typeof e.period&&Number.isFinite(e.period)){const t=Math.max(2,Math.min(100,Math.round(e.period)));n.push(XE("c:period",{val:t}))}return"number"==typeof e.forward&&Number.isFinite(e.forward)&&n.push(XE("c:forward",{val:e.forward})),"number"==typeof e.backward&&Number.isFinite(e.backward)&&n.push(XE("c:backward",{val:e.backward})),"number"==typeof e.intercept&&Number.isFinite(e.intercept)&&n.push(XE("c:intercept",{val:e.intercept})),!0===e.dispRSquared&&n.push(XE("c:dispRSqr",{val:1})),!0===e.dispEquation&&n.push(XE("c:dispEq",{val:1})),ZE("c:trendline",void 0,n)}function LB(e){if(!kB.has(e.direction))return;if(!BB.has(e.type))return;if(!FB.has(e.valType))return;const t=[XE("c:errDir",{val:e.direction}),XE("c:errBarType",{val:e.type}),XE("c:errValType",{val:e.valType})];!0===e.noEndCap&&t.push(XE("c:noEndCap",{val:1})),"stdErr"!==e.valType&&"cust"!==e.valType&&"number"==typeof e.value&&Number.isFinite(e.value)&&t.push(XE("c:val",{val:e.value}));const n=kk(e.lineColor),r=Nk(e.lineWidth),i=Tk(e.lineDash);if(n||void 0!==r||void 0!==i){const e={};void 0!==r&&(e.w=Math.round(r*uk));const o=[];n&&o.push(ZE("a:solidFill",void 0,[XE("a:srgbClr",{val:n})])),void 0!==i&&o.push(XE("a:prstDash",{val:i}));const a=0===o.length?XE("a:ln",e):ZE("a:ln",Object.keys(e).length>0?e:void 0,o);t.push(ZE("c:spPr",void 0,[a]))}return ZE("c:errBars",void 0,t)}const PB=new Set(["none","auto","circle","square","diamond","triangle","x","star","dot","dash","plus"]),OB=2,UB=72;function $B(e,t){return e.includes("!")?e:`${n=t,/^[A-Za-z_][A-Za-z0-9_]*$/.test(n)?n:`'${n.replace(/'/g,"''")}'`}!${e}`;var n}function HB(e,t,n){const r={kind:t,index:n},i=function(e){const t=xE(e,"tx");if(!t)return;const n=xE(t,"v");if(n){const e=nk(n).trim();if(e.length>0)return e}const r=xE(t,"strRef");if(r){const e=xE(r,"strCache");if(e)for(const t of IE(e)){if("pt"!==t.local)continue;const e=xE(t,"v");if(e){const t=nk(e).trim();if(t.length>0)return t}}const t=ak(r);if(t)return t}return}(e);void 0!==i&&(r.name=i);const o=ak(xE(e,"val"))??ak(xE(e,"yVal"));void 0!==o&&(r.valuesRef=o);const a=ak(xE(e,"cat"))??ak(xE(e,"xVal"));void 0!==a&&(r.categoriesRef=a);const s=function(e){const t=xE(e,"spPr");if(!t)return;const n=xE(t,"solidFill");if(!n)return;const r=xE(n,"srgbClr");if(r){const e=r.attrs.val;if("string"!=typeof e)return;const t=e.replace(/^#/,"").toUpperCase();return/^[0-9A-F]{6}$/.test(t)?t:void 0}const i=xE(n,"schemeClr");return i?Ck(i):void 0}(e);void 0!==s&&(r.color=s);const l=xE(e,"dLbls");if(l){const e=xB(l);e&&(r.dataLabels=e)}if("line"===t||"line3D"===t||"scatter"===t){const t=function(e){const t=xE(e,"smooth");if(!t)return;const n=ik(t);return!0===n||void 0}(e);void 0!==t&&(r.smooth=t);const n=function(e){const t=xE(e,"spPr");if(!t)return;const n=xE(t,"ln");if(!n)return;const r={},i=n.attrs.w;if("string"==typeof i){const e=Number.parseFloat(i);if(Number.isFinite(e)&&e>0){const t=Math.round(e/uk*4)/4;r.width=t<lk?lk:t>ck?ck:t}}const o=xE(n,"prstDash");if(o){const e=o.attrs.val;"string"==typeof e&&dk.has(e)&&(r.dash=e)}const a=n.attrs.cap;if("string"==typeof a){const e=a.trim();hk.has(e)&&"flat"!==e&&(r.cap=e)}const s=n.attrs.cmpd;if("string"==typeof s){const e=s.trim();pk.has(e)&&"sng"!==e&&(r.compound=e)}return void 0===r.dash&&void 0===r.width&&void 0===r.cap&&void 0===r.compound?void 0:r}(e);void 0!==n&&(r.stroke=n);const i=zB(e);void 0!==i&&(r.marker=i)}if("bar"===t||"bar3D"===t){const t=function(e){const t=xE(e,"invertIfNegative");if(!t)return;const n=ik(t);return!0===n||void 0}(e);void 0!==t&&(r.invertIfNegative=t)}if("pie"===t||"pie3D"===t||"doughnut"===t||"ofPie"===t){const t=function(e){const t=xE(e,"explosion");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=Number.parseFloat(n);if(!Number.isFinite(r)||r<0)return;const i=Math.round(r);return 0===i?void 0:i}(e);void 0!==t&&(r.explosion=t)}const c=function(e){const t=[];for(const n of IE(e)){if("dPt"!==n.local)continue;const e=xE(n,"idx");if(!e)continue;const r=e.attrs.val;if("string"!=typeof r)continue;const i=Number.parseInt(r,10);if(!Number.isFinite(i)||i<0)continue;const o={idx:i},a=xE(n,"explosion");if(a){const e=a.attrs.val;if("string"==typeof e){const t=Number.parseFloat(e);if(Number.isFinite(t)&&t>0){const e=Math.round(t);e>0&&(o.explosion=e)}}}const s=xE(n,"bubble3D");s&&!0===ik(s)&&(o.bubble3D=!0);const l=MB(n);void 0!==l&&(o.fillColor=l);const c=NB(n);void 0!==c&&(o.borderColor=c);const u=TB(n);void 0!==u&&(o.borderWidth=u);const d=QB(n);void 0!==d&&(o.borderDash=d);const f=zB(n);void 0!==f&&(o.marker=f),t.push(o)}return t.length>0?t:void 0}(e);if(void 0!==c&&(r.dataPoints=c),"bar"===t||"bar3D"===t||"line"===t||"line3D"===t||"area"===t||"area3D"===t||"scatter"===t||"bubble"===t){const t=function(e){const t=[];for(const n of IE(e)){if("trendline"!==n.local)continue;const e=xE(n,"trendlineType");if(!e)continue;const r=e.attrs.val;if("string"!=typeof r)continue;const i=r.trim();if(!EB.has(i))continue;const o={type:i},a=xE(n,"name");if(a){let e="";for(const t of a.children)"string"==typeof t&&(e+=t);const t=e.trim();t.length>0&&(o.name=t)}const s=xE(n,"order");if(s){const e=parseFloat(String(s.attrs.val??""));if(Number.isFinite(e)){const t=Math.round(e);t>=2&&t<=6&&(o.order=t)}}const l=xE(n,"period");if(l){const e=parseFloat(String(l.attrs.val??""));if(Number.isFinite(e)){const t=Math.round(e);t>=2&&t<=100&&(o.period=t)}}const c=xE(n,"forward");if(c){const e=parseFloat(String(c.attrs.val??""));Number.isFinite(e)&&(o.forward=e)}const u=xE(n,"backward");if(u){const e=parseFloat(String(u.attrs.val??""));Number.isFinite(e)&&(o.backward=e)}const d=xE(n,"intercept");if(d){const e=parseFloat(String(d.attrs.val??""));Number.isFinite(e)&&(o.intercept=e)}const f=xE(n,"dispEq");f&&!0===ik(f)&&(o.dispEquation=!0);const h=xE(n,"dispRSqr");h&&!0===ik(h)&&(o.dispRSquared=!0);const p=xE(n,"spPr");if(p){const e=xE(p,"ln");if(e){const t=xE(e,"solidFill");if(t){const e=xE(t,"srgbClr");if(e){const t=kk(e.attrs.val);t&&(o.lineColor=t)}}const n=e.attrs.w;if("string"==typeof n){const e=Number.parseFloat(n);if(Number.isFinite(e)&&e>0){const t=Math.round(e/uk*4)/4;o.lineWidth=t>=lk&&t<=ck?t:t<lk?lk:ck}}const r=xE(e,"prstDash");if(r){const e=r.attrs.val;if("string"==typeof e){const t=e.trim();fk.has(t)&&"solid"!==t&&(o.lineDash=t)}}}}t.push(o)}return t.length>0?t:void 0}(e);void 0!==t&&(r.trendlines=t);const n=function(e){const t=[];for(const n of IE(e)){if("errBars"!==n.local)continue;const e=xE(n,"errDir");if(!e)continue;const r=e.attrs.val;if("string"!=typeof r)continue;const i=r.trim();if(!kB.has(i))continue;const o=xE(n,"errBarType");if(!o)continue;const a=o.attrs.val;if("string"!=typeof a)continue;const s=a.trim();if(!BB.has(s))continue;const l=xE(n,"errValType");if(!l)continue;const c=l.attrs.val;if("string"!=typeof c)continue;const u=c.trim();if(!FB.has(u))continue;const d={direction:i,type:s,valType:u},f=xE(n,"val");if(f){const e=parseFloat(String(f.attrs.val??""));Number.isFinite(e)&&(d.value=e)}const h=xE(n,"noEndCap");h&&!0===ik(h)&&(d.noEndCap=!0);const p=xE(n,"spPr");if(p){const e=xE(p,"ln");if(e){const t=xE(e,"solidFill");if(t){const e=xE(t,"srgbClr");if(e){const t=kk(e.attrs.val);t&&(d.lineColor=t)}}const n=e.attrs.w;if("string"==typeof n){const e=Number.parseFloat(n);if(Number.isFinite(e)&&e>0){const t=Math.round(e/uk*4)/4;d.lineWidth=t<lk?lk:t>ck?ck:t}}const r=xE(e,"prstDash");if(r){const e=r.attrs.val;if("string"==typeof e){const t=e.trim();fk.has(t)&&"solid"!==t&&(d.lineDash=t)}}}}t.push(d)}return t.length>0?t:void 0}(e);void 0!==n&&(r.errorBars=n)}if("bubble"===t){const t=function(e){return ak(xE(e,"bubbleSize"))}(e);void 0!==t&&(r.bubbleSizeRef=t)}if("bar3D"===t){const t=function(e){const t=xE(e,"shape");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=n.trim();return SB.has(r)?r:void 0}(e);void 0!==t&&(r.shape3D=t)}return r}function zB(e){const t=xE(e,"marker");if(!t)return;const n={},r=xE(t,"symbol");if(r){const e=r.attrs.val;"string"==typeof e&&PB.has(e)&&(n.symbol=e)}const i=xE(t,"size");if(i){const e=i.attrs.val;if("string"==typeof e){const t=Number.parseInt(e,10);Number.isFinite(t)&&(n.size=t<2?2:t>72?72:t)}}const o=xE(t,"spPr");if(o){const e=xE(o,"solidFill");if(e){const t=xE(e,"srgbClr"),r=t?.attrs.val;if("string"==typeof r){const e=r.replace(/^#/,"").toUpperCase();/^[0-9A-F]{6}$/.test(e)&&(n.fill=e)}}const t=xE(o,"ln");if(t){const e=xE(t,"solidFill");if(e){const t=xE(e,"srgbClr"),r=t?.attrs.val;if("string"==typeof r){const e=r.replace(/^#/,"").toUpperCase();/^[0-9A-F]{6}$/.test(e)&&(n.line=e)}}}}return void 0!==n.symbol||void 0!==n.size||void 0!==n.fill||void 0!==n.line?n:void 0}function qB(e,t,n,r,i){const o=[XE("c:idx",{val:t}),XE("c:order",{val:t})];e.name&&o.push(ZE("c:tx",void 0,[ZE("c:v",void 0,YE(e.name))]));const a=function(e,t){let n;if("string"==typeof e){const t=e.replace(/^#/,"").toUpperCase();n=/^[0-9A-F]{6}$/.test(t)?t:void 0}else void 0!==e&&(n=Sk(e));const r=(c=t?.dash,void 0===c?void 0:dk.has(c)?c:void 0),i=Nk(t?.width),o=gk(t?.cap),a="flat"===o?void 0:o,s=mk(t?.compound),l="sng"===s?void 0:s;var c;if(!n&&void 0===r&&void 0===i&&void 0===a&&void 0===l)return;const u=[];void 0!==n&&u.push(ZE("a:solidFill",void 0,[Ek(n)]));if(void 0!==n||void 0!==r||void 0!==i||void 0!==a||void 0!==l){const e={};void 0!==i&&(e.w=Math.round(i*uk)),void 0!==a&&(e.cap=a),void 0!==l&&(e.cmpd=l);const t=[];void 0!==n&&t.push(ZE("a:solidFill",void 0,[Ek(n)])),void 0!==r&&t.push(XE("a:prstDash",{val:r})),u.push(0===t.length?XE("a:ln",e):ZE("a:ln",Object.keys(e).length>0?e:void 0,t))}return ZE("c:spPr",void 0,u)}(e.color,i?.stroke);a&&o.push(a);const s=jB(i?.marker);s&&o.push(s),!0===i?.invertIfNegative&&o.push(XE("c:invertIfNegative",{val:1}));const l=function(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<=0?void 0:t>400?400:t}(i?.explosion);void 0!==l&&o.push(XE("c:explosion",{val:l}));const c=function(e,t){if(!e||0===e.length)return[];const n="pie"===t||"doughnut"===t||"pie3D"===t,r=[];for(const t of e){if(!Number.isFinite(t.idx)||t.idx<0)continue;const e=Math.floor(t.idx),i=[];i.push(XE("c:idx",{val:e}));const o=jB(t.marker);if(o&&i.push(o),i.push(XE("c:bubble3D",{val:!0===t.bubble3D?1:0})),n&&void 0!==t.explosion&&Number.isFinite(t.explosion)){const e=Math.max(0,Math.min(400,Math.round(t.explosion)));e>0&&i.push(XE("c:explosion",{val:e}))}const a=kk(t.fillColor),s=kk(t.borderColor),l=Nk(t.borderWidth),c=Tk(t.borderDash);if(a||s||void 0!==l||void 0!==c){const e=[];if(a&&e.push(ZE("a:solidFill",void 0,[XE("a:srgbClr",{val:a})])),s||void 0!==l||void 0!==c){const t={};void 0!==l&&(t.w=Math.round(l*uk));const n=[];s&&n.push(ZE("a:solidFill",void 0,[XE("a:srgbClr",{val:s})])),void 0!==c&&n.push(XE("a:prstDash",{val:c})),e.push(0===n.length?XE("a:ln",t):ZE("a:ln",Object.keys(t).length>0?t:void 0,n))}i.push(ZE("c:spPr",void 0,e))}r.push(ZE("c:dPt",void 0,i))}return r}(i.dataPoints,i.chartType);for(const e of c)o.push(e);const u=(d=e.dataLabels,i.dataLabels,f=i.chartType,!1===d?ZE("c:dLbls",void 0,[ZE("c:dLbl",void 0,[XE("c:idx",{val:0}),XE("c:delete",{val:1})]),XE("c:delete",{val:1})]):d?CB(d,f):void 0);var d,f;if(u&&o.push(u),i.trendlines&&i.trendlines.length>0){if(!("pie"===i.chartType||"doughnut"===i.chartType)){const e=function(e){if(!e||0===e.length)return[];const t=[];for(const n of e){const e=RB(n);e&&t.push(e)}return t}(i.trendlines);for(const t of e)o.push(t)}}if(i.errorBars&&i.errorBars.length>0){if(!("pie"===i.chartType||"doughnut"===i.chartType)){const e=function(e){if(!e||0===e.length)return[];const t=[];for(const n of e){const e=LB(n);e&&t.push(e)}return t}(i.errorBars);for(const t of e)o.push(t)}}if(e.categories){const t=$B(e.categories,n);r?o.push(ZE("c:xVal",void 0,[ZE("c:numRef",void 0,[ZE("c:f",void 0,YE(t))])])):o.push(ZE("c:cat",void 0,[ZE("c:strRef",void 0,[ZE("c:f",void 0,YE(t))])]))}const h=$B(e.values,n);if(r?o.push(ZE("c:yVal",void 0,[ZE("c:numRef",void 0,[ZE("c:f",void 0,YE(h))])])):o.push(ZE("c:val",void 0,[ZE("c:numRef",void 0,[ZE("c:f",void 0,YE(h))])])),void 0!==i?.smooth&&o.push(XE("c:smooth",{val:i.smooth?1:0})),void 0!==i.shape3D){const e=DB(i.shape3D);e&&o.push(e)}if("string"==typeof i.bubbleSize&&i.bubbleSize.length>0){const e=$B(i.bubbleSize,n);o.push(ZE("c:bubbleSize",void 0,[ZE("c:numRef",void 0,[ZE("c:f",void 0,YE(e))])]))}return ZE("c:ser",void 0,o)}function jB(e){if(!e)return;const t=function(e){if(void 0!==e)return PB.has(e)?e:void 0}(e.symbol),n=function(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<OB?OB:t>UB?UB:t}(e.size),r=kk(e.fill),i=kk(e.line);if(void 0===t&&void 0===n&&!r&&!i)return;const o=[];if(void 0!==t&&o.push(XE("c:symbol",{val:t})),void 0!==n&&o.push(XE("c:size",{val:n})),r||i){const e=[];r&&e.push(ZE("a:solidFill",void 0,[XE("a:srgbClr",{val:r})])),i&&e.push(ZE("a:ln",void 0,[ZE("a:solidFill",void 0,[XE("a:srgbClr",{val:i})])])),o.push(ZE("c:spPr",void 0,e))}return ZE("c:marker",void 0,o)}const WB=_k,_B=Vk,VB=new Set(["none","in","out","cross"]),YB=new Set(["nextTo","low","high","none"]),GB=new Set(["ctr","l","r"]),JB=-90,XB=90,KB=new Set(["autoZero","min","max"]),ZB=new Set(["hundreds","thousands","tenThousands","hundredThousands","millions","tenMillions","hundredMillions","billions","trillions"]),eF=new Set(["between","midCat"]);function tF(e,t){const n=function(e){const t=xE(e,"title");if(!t)return;const n=xE(t,"tx");if(!n)return;const r=xE(n,"rich");if(r){const e=[];tk(r,e);const t=e.join("").trim();return t.length>0?t:void 0}const i=xE(n,"strRef");if(i){const e=xE(i,"strCache");if(e)for(const t of IE(e)){if("pt"!==t.local)continue;const e=xE(t,"v");if(e){const t=nk(e).trim();if(t.length>0)return t}}}return}(e),r=function(e){const t=xE(e,"title");if(!t)return;const n=xE(t,"tx");if(!n)return;const r=xE(n,"rich");if(!r)return;const i=xE(r,"bodyPr");if(!i)return;const o=i.attrs.rot;if("string"!=typeof o)return;const a=o.trim();if(0===a.length)return;const s=Number.parseInt(a,10);if(!Number.isFinite(s))return;const l=Math.round(s/Wk);return 0===l?void 0:l<JB?JB:l>XB?XB:l}(e),i=function(e){const t=qk(e);if(!t)return;const n=t.attrs.sz;if("string"!=typeof n)return;const r=n.trim();if(0===r.length)return;const i=Number.parseInt(r,10);if(!Number.isFinite(i))return;const o=Math.round(i/WB*2)/2;return o<1||o>_B?void 0:o}(e),o=function(e){const t=qk(e);if(!t)return;return!0===rk(t.attrs.b)||void 0}(e),a=function(e){const t=qk(e);if(!t)return;return!0===rk(t.attrs.i)||void 0}(e),s=function(e){const t=qk(e);if(!t)return;const n=xE(t,"solidFill");if(!n)return;const r=xE(n,"srgbClr");if(r)return kk(r.attrs.val);const i=xE(n,"schemeClr");return i?Ck(i):void 0}(e),l=function(e){const t=qk(e);if(!t)return;return"sngStrike"===t.attrs.strike||void 0}(e),c=function(e){const t=qk(e);if(!t)return;return"sng"===t.attrs.u||void 0}(e),u=function(e){const t=qk(e);if(!t)return;const n=xE(t,"latin");if(!n)return;const r=n.attrs.typeface;if("string"!=typeof r)return;const i=r.trim();return 0===i.length?void 0:i}(e),d=function(e){const t=xE(e,"title");if(!t)return;const n=xE(t,"overlay");if(!n)return;const r=n.attrs.val;if("string"!=typeof r)return;switch(r){case"1":case"true":return!0;default:return}}(e),f=function(e){const t=xE(e,"title");return t?Ok(t):void 0}(e),h=function(e){const t=xE(e,"title");return t?Bk(t):void 0}(e),p=function(e){const t=xE(e,"title");return t?Fk(t):void 0}(e),g=function(e){const t=xE(e,"title");return t?Dk(t):void 0}(e),m=function(e){const t=xE(e,"title");return t?Mk(t):void 0}(e),y=function(e){const t=xE(e,"title");return t?yk(t):void 0}(e),v=function(e){const t=xE(e,"title");return t?vk(t):void 0}(e),b=function(e){const t=void 0!==xE(e,"majorGridlines"),n=void 0!==xE(e,"minorGridlines");if(!t&&!n)return;const r={};t&&(r.major=!0);n&&(r.minor=!0);return r}(e),A=function(e){const t={},n=xE(e,"scaling");if(n){const e=sk(n,"min");void 0!==e&&(t.min=e);const r=sk(n,"max");void 0!==r&&(t.max=r);const i=sk(n,"logBase");void 0!==i&&(t.logBase=i)}const r=sk(e,"majorUnit");void 0!==r&&r>0&&(t.majorUnit=r);const i=sk(e,"minorUnit");void 0!==i&&i>0&&(t.minorUnit=i);return Object.keys(t).length>0?t:void 0}(e),w=function(e){const t=xE(e,"numFmt");if(!t)return;const n=t.attrs.formatCode;if("string"!=typeof n||0===n.length)return;const r={formatCode:n},i=t.attrs.sourceLinked;void 0!==i&&!0===rk(i)&&(r.sourceLinked=!0);return r}(e),x=nF(e,"majorTickMark","out"),I=nF(e,"minorTickMark","none"),C=function(e){const t=xE(e,"tickLblPos");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=n.trim();return YB.has(r)?"nextTo"===r?void 0:r:void 0}(e),S=function(e){const t=xE(e,"txPr");if(!t)return;const n=xE(t,"bodyPr");if(!n)return;const r=n.attrs.rot;if("string"!=typeof r)return;const i=r.trim();if(0===i.length)return;const o=Number.parseInt(i,10);if(!Number.isFinite(o))return;const a=Math.round(o/Wk);return 0===a?void 0:a<JB?JB:a>XB?XB:a}(e),E=function(e){const t=zk(e);if(!t)return;const n=t.attrs.sz;if("string"!=typeof n)return;const r=n.trim();if(0===r.length)return;const i=Number.parseInt(r,10);if(!Number.isFinite(i))return;const o=Math.round(i/WB*2)/2;return o<1||o>_B?void 0:o}(e),k=function(e){const t=zk(e);if(!t)return;return!0===rk(t.attrs.b)||void 0}(e),B=function(e){const t=zk(e);if(!t)return;return!0===rk(t.attrs.i)||void 0}(e),F=function(e){const t=zk(e);if(!t)return;const n=xE(t,"solidFill");if(!n)return;const r=xE(n,"srgbClr");if(r)return kk(r.attrs.val);const i=xE(n,"schemeClr");return i?Ck(i):void 0}(e),D=function(e){const t=zk(e);if(!t)return;return"sng"===t.attrs.u||void 0}(e),M=function(e){const t=zk(e);if(!t)return;return"sngStrike"===t.attrs.strike||void 0}(e),N=function(e){const t=zk(e);if(!t)return;const n=xE(t,"latin");if(!n)return;const r=n.attrs.typeface;if("string"!=typeof r)return;const i=r.trim();return 0===i.length?void 0:i}(e),T=function(e){const t=xE(e,"scaling");if(!t)return;const n=xE(t,"orientation");if(!n)return;const r=n.attrs.val;if("string"!=typeof r)return;return"maxMin"===r.trim()||void 0}(e),Q="catAx"===e.local||"dateAx"===e.local,R=Q?rF(e,"tickLblSkip"):void 0,L=Q?rF(e,"tickMarkSkip"):void 0,P=Q?function(e){const t=xE(e,"lblOffset");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=n.trim();if(0===r.length)return;const i=Number.parseInt(r,10);return Number.isFinite(i)?i<0||i>1e3||100===i?void 0:i:void 0}(e):void 0,O=Q?function(e){const t=xE(e,"lblAlgn");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=n.trim();return GB.has(r)?"ctr"===r?void 0:r:void 0}(e):void 0,U="catAx"===e.local?function(e){const t=xE(e,"noMultiLvlLbl");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;switch(n.trim()){case"1":case"true":return!0;default:return}}(e):void 0,$="catAx"===e.local?function(e){const t=xE(e,"auto");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;switch(n.trim()){case"0":case"false":return!1;default:return}}(e):void 0,H=function(e){const t=xE(e,"delete");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;switch(n.trim()){case"1":case"true":return!0;default:return}}(e),z=function(e){const t=xE(e,"crossesAt");if(t){const e=t.attrs.val;if("string"==typeof e){const t=e.trim();if(t.length>0){const e=Number.parseFloat(t);if(Number.isFinite(e))return{crossesAt:e}}}}const n=xE(e,"crosses");if(!n)return{};const r=n.attrs.val;if("string"!=typeof r)return{};const i=r.trim();return KB.has(i)?"autoZero"===i?{}:{crosses:i}:{}}(e),q=z.crosses,j=z.crossesAt,W="valAx"===e.local?function(e){const t=xE(e,"dispUnits");if(!t)return;const n={},r=xE(t,"custUnit");if(r){const e=r.attrs.val;if("string"==typeof e){const t=Number.parseFloat(e.trim());Number.isFinite(t)&&t>0&&(n.custUnit=t)}}if(void 0===n.custUnit){const e=xE(t,"builtInUnit");if(e){const t=e.attrs.val;if("string"==typeof t){const e=t.trim();ZB.has(e)&&(n.unit=e)}}}if(void 0===n.unit&&void 0===n.custUnit)return;const i=xE(t,"dispUnitsLbl");if(i){n.showLabel=!0;const e=xE(i,"tx");if(e){const t=xE(e,"rich");if(t){const e=[];for(const n of t.children){if("string"==typeof n)continue;if("p"!==n.local)continue;const t=[];for(const e of n.children)if("string"!=typeof e&&"r"===e.local)for(const n of e.children){if("string"==typeof n)continue;if("t"!==n.local)continue;let e="";for(const t of n.children)"string"==typeof t&&(e+=t);t.push(e)}t.length>0&&e.push(t.join(""))}const r=e.join("\n").trim();r.length>0&&(n.customLabel=r)}}}return n}(e):void 0,_="valAx"===e.local?function(e){const t=xE(e,"crossBetween");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=n.trim();return eF.has(r)?r:void 0}(e):void 0,V=_===t?void 0:_;if(void 0===n&&void 0===r&&void 0===i&&void 0===o&&void 0===a&&void 0===s&&void 0===l&&void 0===c&&void 0===u&&void 0===d&&void 0===f&&void 0===h&&void 0===p&&void 0===g&&void 0===m&&void 0===y&&void 0===v&&void 0===b&&void 0===A&&void 0===w&&void 0===x&&void 0===I&&void 0===C&&void 0===S&&void 0===E&&void 0===k&&void 0===B&&void 0===F&&void 0===N&&void 0===D&&void 0===M&&void 0===T&&void 0===R&&void 0===L&&void 0===P&&void 0===O&&void 0===U&&void 0===$&&void 0===H&&void 0===q&&void 0===j&&void 0===W&&void 0===V)return;const Y={};return void 0!==n&&(Y.title=n),void 0!==r&&(Y.axisTitleRotation=r),void 0!==i&&(Y.axisTitleFontSize=i),void 0!==o&&(Y.axisTitleBold=o),void 0!==a&&(Y.axisTitleItalic=a),void 0!==s&&(Y.axisTitleColor=s),void 0!==l&&(Y.axisTitleStrike=l),void 0!==c&&(Y.axisTitleUnderline=c),void 0!==u&&(Y.axisTitleFontFamily=u),void 0!==d&&(Y.axisTitleOverlay=d),void 0!==f&&(Y.axisTitleLayout=f),void 0!==h&&(Y.axisTitleFillColor=h),void 0!==p&&(Y.axisTitleBorderColor=p),void 0!==g&&(Y.axisTitleBorderWidth=g),void 0!==m&&(Y.axisTitleBorderDash=m),void 0!==y&&(Y.axisTitleBorderCap=y),void 0!==v&&(Y.axisTitleBorderCompound=v),void 0!==b&&(Y.gridlines=b),void 0!==A&&(Y.scale=A),void 0!==w&&(Y.numberFormat=w),void 0!==x&&(Y.majorTickMark=x),void 0!==I&&(Y.minorTickMark=I),void 0!==C&&(Y.tickLblPos=C),void 0!==S&&(Y.labelRotation=S),void 0!==E&&(Y.labelFontSize=E),void 0!==k&&(Y.labelBold=k),void 0!==B&&(Y.labelItalic=B),void 0!==F&&(Y.labelColor=F),void 0!==N&&(Y.labelFontFamily=N),void 0!==D&&(Y.labelUnderline=D),void 0!==M&&(Y.labelStrike=M),void 0!==T&&(Y.reverse=T),void 0!==R&&(Y.tickLblSkip=R),void 0!==L&&(Y.tickMarkSkip=L),void 0!==P&&(Y.lblOffset=P),void 0!==O&&(Y.lblAlgn=O),void 0!==U&&(Y.noMultiLvlLbl=U),void 0!==$&&(Y.auto=$),void 0!==H&&(Y.hidden=H),void 0!==q&&(Y.crosses=q),void 0!==j&&(Y.crossesAt=j),void 0!==W&&(Y.dispUnits=W),void 0!==V&&(Y.crossBetween=V),Y}function nF(e,t,n){const r=xE(e,t);if(!r)return;const i=r.attrs.val;if("string"!=typeof i)return;const o=i.trim();return VB.has(o)?o===n?void 0:o:void 0}function rF(e,t){const n=xE(e,t);if(!n)return;const r=n.attrs.val;if("string"!=typeof r)return;const i=r.trim();if(0===i.length)return;const o=Number.parseInt(i,10);return Number.isFinite(o)&&!(o<1||o>32767)&&1!==o?o:void 0}const iF=new Set(["autoZero","min","max"]),oF=111111111,aF=222222222,sF=333333333,lF=444444444,cF=new Set(["none","in","out","cross"]),uF=new Set(["nextTo","low","high","none"]);function dF(e){if(!0===e.autoTitleDeleted)return!0;if(!1===e.autoTitleDeleted)return!1;return!((e.showTitle??Boolean(e.title))&&e.title)}function fF(e){if("string"!=typeof e)return;const t=e.trim();return t.length>0?t:void 0}function hF(e){if(!e)return;const t=!0===e.major,n=!0===e.minor;return t||n?{major:t,minor:n}:void 0}function pF(e){if(!e)return[];const t=[];return e.major&&t.push(ZE("c:majorGridlines",void 0,[])),e.minor&&t.push(ZE("c:minorGridlines",void 0,[])),t}function gF(e){if(!e)return;const t={};return"number"==typeof e.min&&Number.isFinite(e.min)&&(t.min=e.min),"number"==typeof e.max&&Number.isFinite(e.max)&&(t.max=e.max),void 0!==t.min&&void 0!==t.max&&t.min>=t.max&&delete t.max,"number"==typeof e.majorUnit&&Number.isFinite(e.majorUnit)&&e.majorUnit>0&&(t.majorUnit=e.majorUnit),"number"==typeof e.minorUnit&&Number.isFinite(e.minorUnit)&&e.minorUnit>0&&(t.minorUnit=e.minorUnit),"number"==typeof e.logBase&&Number.isFinite(e.logBase)&&e.logBase>=2&&e.logBase<=1e3&&(t.logBase=e.logBase),Object.keys(t).length>0?t:void 0}function mF(e){if(!e)return;const t="string"==typeof e.formatCode?e.formatCode:"";if(0===t.length)return;const n={formatCode:t};return!0===e.sourceLinked&&(n.sourceLinked=!0),n}function yF(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<1||t>32767||1===t?void 0:t}function vF(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<0||t>1e3||100===t?void 0:t}function bF(e){if(void 0!==e&&("ctr"===e||"l"===e||"r"===e)&&"ctr"!==e)return e}function AF(e){return!0===e}function wF(e){if(void 0===e||"number"!=typeof e||!Number.isFinite(e))return;let t=Math.round(e);return t<JB?t=JB:t>XB&&(t=XB),0!==t?t:void 0}function xF(e){if(void 0===e||"number"!=typeof e||!Number.isFinite(e))return;const t=Math.round(2*e)/2;return t<1||t>_B?void 0:t}function IF(e){return Zk(e)}function CF(e){return eB(e)}function SF(e){return tB(e)}function EF(e){return rB(e)}function kF(e){return nB(e)}function BF(e){if("string"!=typeof e)return;const t=e.trim();return 0!==t.length?t:void 0}function FF(e,t,n,r,i,o,a,s){if(void 0===e&&void 0===t&&void 0===n&&void 0===r&&void 0===i&&void 0===o&&void 0===a&&void 0===s)return;const l=void 0===e?void 0:e*Wk,c=void 0===t?void 0:t*WB,u=void 0===n?void 0:n?1:0,d=void 0===r?void 0:r?1:0,f=!0===o?"sng":void 0,h=!0===a?"sngStrike":void 0,p=void 0!==i?ZE("a:solidFill",void 0,[Ek(i)]):void 0,g=s?XE("a:latin",{typeface:s}):void 0,m=[];p&&m.push(p),g&&m.push(g);const y=m.length>0?ZE("a:defRPr",{sz:c,b:u,i:d,u:f,strike:h},m):XE("a:defRPr",{sz:c,b:u,i:d,u:f,strike:h});return ZE("c:txPr",void 0,[XE("a:bodyPr",{rot:l}),XE("a:lstStyle"),ZE("a:p",void 0,[ZE("a:pPr",void 0,[y]),XE("a:endParaRPr",{lang:"en-US"})])])}function DF(e,t){return"number"==typeof t&&Number.isFinite(t)?{kind:"numeric",value:t}:void 0!==e&&iF.has(e)&&"autoZero"!==e?{kind:"semantic",value:e}:{kind:"default"}}function MF(e){switch(e.kind){case"numeric":return XE("c:crossesAt",{val:e.value});case"semantic":return XE("c:crosses",{val:e.value});case"default":return XE("c:crosses",{val:"autoZero"})}}function NF(e,t=!1){const{before:n,after:r}=function(e){if(!e)return{before:[],after:[]};const t=[],n=[];return void 0!==e.logBase&&t.push(XE("c:logBase",{val:e.logBase})),void 0!==e.max&&n.push(XE("c:max",{val:e.max})),void 0!==e.min&&n.push(XE("c:min",{val:e.min})),{before:t,after:n}}(e);return ZE("c:scaling",void 0,[...n,XE("c:orientation",{val:t?"maxMin":"minMax"}),...r])}function TF(e){if(!e)return[];const t=[];return void 0!==e.majorUnit&&t.push(XE("c:majorUnit",{val:e.majorUnit})),void 0!==e.minorUnit&&t.push(XE("c:minorUnit",{val:e.minorUnit})),t}function QF(e){if(void 0===e)return;if("string"==typeof e)return ZB.has(e)?{unit:e}:void 0;if("object"!=typeof e||null===e)return;const t={},n=e.unit;"string"==typeof n&&ZB.has(n)&&(t.unit=n);const r=e.custUnit;if("number"==typeof r&&Number.isFinite(r)&&r>0&&(t.custUnit=r),void 0!==t.unit||void 0!==t.custUnit){if(!0===e.showLabel&&(t.showLabel=!0),"string"==typeof e.customLabel){const n=e.customLabel.trim();n.length>0&&(t.customLabel=n)}return t}}function RF(e){if(!e)return[];const t=[];if(void 0!==e.custUnit)t.push(XE("c:custUnit",{val:e.custUnit}));else{if(void 0===e.unit)return[];t.push(XE("c:builtInUnit",{val:e.unit}))}if(!0===e.showLabel||"string"==typeof e.customLabel&&e.customLabel.trim().length>0){const n="string"==typeof e.customLabel?e.customLabel.trim():"";if(n.length>0){const e=n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),r=ZE("c:rich",void 0,[XE("a:bodyPr"),XE("a:lstStyle"),ZE("a:p",void 0,[ZE("a:r",void 0,[ZE("a:t",void 0,e)])])]),i=ZE("c:tx",void 0,[r]);t.push(ZE("c:dispUnitsLbl",void 0,[i]))}else t.push(XE("c:dispUnitsLbl"))}return[ZE("c:dispUnits",void 0,t)]}function LF(e){if("string"==typeof e)return eF.has(e)?e:void 0}function PF(e){if(!e)return[];const t=!0===e.sourceLinked?1:0;return[XE("c:numFmt",{formatCode:e.formatCode,sourceLinked:t})]}function OF(e){if(void 0!==e)return cF.has(e)?e:void 0}function UF(e){if(void 0!==e)return uF.has(e)?e:void 0}function $F(e,t,n){const r=[];return void 0!==e&&r.push(XE("c:majorTickMark",{val:e})),void 0!==t&&r.push(XE("c:minorTickMark",{val:t})),void 0!==n&&r.push(XE("c:tickLblPos",{val:n})),r}function HF(e,t){const n="column"===e?"b":"l",r="column"===e?"l":"b",i=[XE("c:axId",{val:oF}),NF(t.xScale,t.xReverse),XE("c:delete",{val:t.xHidden?1:0}),XE("c:axPos",{val:n}),...pF(t.xGridlines)];t.xAxisTitle&&i.push(zF(t.xAxisTitle,t.xAxisTitleRotation,t.xAxisTitleFontSize,t.xAxisTitleBold,t.xAxisTitleItalic,t.xAxisTitleColor,t.xAxisTitleStrike,t.xAxisTitleUnderline,t.xAxisTitleFontFamily,t.xAxisTitleOverlay,t.xAxisTitleLayout,t.xAxisTitleFillColor,t.xAxisTitleBorderColor,t.xAxisTitleBorderWidth,t.xAxisTitleBorderDash,t.xAxisTitleBorderCap,t.xAxisTitleBorderCompound)),i.push(...PF(t.xNumFmt),...$F(t.xMajorTickMark,t.xMinorTickMark,t.xTickLblPos));const o=FF(t.xLabelRotation,t.xLabelFontSize,t.xLabelBold,t.xLabelItalic,t.xLabelColor,t.xLabelUnderline,t.xLabelStrike,t.xLabelFontFamily);o&&i.push(o),i.push(XE("c:crossAx",{val:aF}),MF(t.xCrosses),XE("c:auto",{val:t.xAuto?1:0}),XE("c:lblAlgn",{val:t.xLblAlgn??"ctr"}),XE("c:lblOffset",{val:t.xLblOffset??100}),...function(e,t){const n=[];return void 0!==e&&n.push(XE("c:tickLblSkip",{val:e})),void 0!==t&&n.push(XE("c:tickMarkSkip",{val:t})),n}(t.xTickLblSkip,t.xTickMarkSkip),XE("c:noMultiLvlLbl",{val:t.xNoMultiLvlLbl?1:0}));const a=[XE("c:axId",{val:aF}),NF(t.yScale,t.yReverse),XE("c:delete",{val:t.yHidden?1:0}),XE("c:axPos",{val:r}),...pF(t.yGridlines)];t.yAxisTitle&&a.push(zF(t.yAxisTitle,t.yAxisTitleRotation,t.yAxisTitleFontSize,t.yAxisTitleBold,t.yAxisTitleItalic,t.yAxisTitleColor,t.yAxisTitleStrike,t.yAxisTitleUnderline,t.yAxisTitleFontFamily,t.yAxisTitleOverlay,t.yAxisTitleLayout,t.yAxisTitleFillColor,t.yAxisTitleBorderColor,t.yAxisTitleBorderWidth,t.yAxisTitleBorderDash,t.yAxisTitleBorderCap,t.yAxisTitleBorderCompound)),a.push(...PF(t.yNumFmt),...$F(t.yMajorTickMark,t.yMinorTickMark,t.yTickLblPos));const s=FF(t.yLabelRotation,t.yLabelFontSize,t.yLabelBold,t.yLabelItalic,t.yLabelColor,t.yLabelUnderline,t.yLabelStrike,t.yLabelFontFamily);return s&&a.push(s),a.push(XE("c:crossAx",{val:oF}),MF(t.yCrosses),XE("c:crossBetween",{val:t.yCrossBetween??"between"}),...TF(t.yScale),...RF(t.yDispUnits)),[ZE("c:catAx",void 0,i),ZE("c:valAx",void 0,a)]}function zF(e,t,n,r,i,o,a,s,l,c,u,d,f,h,p,g,m){const y=void 0===t?0:6e4*t,v=void 0===n?1e3:n*WB,b=r?1:0,A=!0===i?1:void 0,w=!0===a?"sngStrike":void 0,x=!0===s?"sng":void 0,I=void 0!==o?ZE("a:solidFill",void 0,[Ek(o)]):void 0,C=l?XE("a:latin",{typeface:l}):void 0,S=[];I&&S.push(I),C&&S.push(C);const E=S.length>0?ZE("a:defRPr",{sz:v,b:b,i:A,u:x,strike:w},S):XE("a:defRPr",{sz:v,b:b,i:A,u:x,strike:w}),k=S.length>0?ZE("a:rPr",{lang:"en-US",sz:v,b:b,i:A,u:x,strike:w},S):XE("a:rPr",{lang:"en-US",sz:v,b:b,i:A,u:x,strike:w}),B=Hk(u),F=[ZE("c:tx",void 0,[ZE("c:rich",void 0,[ZE("a:bodyPr",{rot:y,spcFirstLastPara:1,vertOverflow:"ellipsis",wrap:"square",anchor:"ctr",anchorCtr:1},[]),XE("a:lstStyle"),ZE("a:p",void 0,[ZE("a:pPr",void 0,[E]),ZE("a:r",void 0,[k,ZE("a:t",void 0,YE(e))])])])])];B&&F.push(B),F.push(XE("c:overlay",{val:c?1:0}));const D=Jk(d,f,h,p,g,m);return void 0!==D&&F.push(D),ZE("c:title",void 0,F)}function qF(e){return Xk(e)}function jF(e){return Kk(e)}function WF(e){return Zk(e)}function _F(e){return eB(e)}function VF(e){return tB(e)}function YF(e){return nB(e)}function GF(e){return rB(e)}function JF(e){if("string"!=typeof e)return;const t=e.trim();return 0!==t.length?t:void 0}const XF=new Set(["pie","pie3D","doughnut","ofPie"]),KF=new Set(["none","line","lineMarker","marker","smooth","smoothMarker"]),ZF=new Set(["pie","doughnut"]),eD=new Set(["none","line","lineMarker","marker","smooth","smoothMarker"]);function tD(e,t){const n=xE(e,"varyColors");if(!n)return;const r=n.attrs.val;if("string"!=typeof r)return;const i=XF.has(t);let o;switch(r){case"1":case"true":o=!0;break;case"0":case"false":o=!1;break;default:return}return o!==i?o:void 0}function nD(e){const t=xE(e,"scatterStyle");if(!t)return;const n=t.attrs.val;return"string"==typeof n&&KF.has(n)?n:void 0}function rD(e){return!!xE(e,"dropLines")||void 0}function iD(e){return!!xE(e,"hiLowLines")||void 0}function oD(e){return!!xE(e,"serLines")||void 0}function aD(e){const t=xE(e,"marker");if(!t)return;const n=t.attrs.val;if("string"==typeof n)switch(n){case"0":case"false":return!1;default:return}}function sD(e){const t=xE(e,"grouping");if(!t)return;const n=t.attrs.val;if("string"==typeof n)switch(n){case"stacked":return"stacked";case"percentStacked":return"percentStacked";case"clustered":return"clustered";default:return}}function lD(e){const t=xE(e,"holeSize");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=Number.parseInt(n,10);return Number.isFinite(r)&&!(r<1||r>99)?r:void 0}function cD(e){const t=xE(e,"gapWidth");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=Number.parseInt(n,10);return Number.isFinite(r)&&!(r<0||r>500)&&150!==r?r:void 0}function uD(e){const t=xE(e,"gapWidth");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=Number.parseInt(n,10);return Number.isFinite(r)&&!(r<0||r>500)&&150!==r?r:void 0}function dD(e){const t=xE(e,"overlap");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=Number.parseInt(n,10);return Number.isFinite(r)&&!(r<-100||r>100)&&0!==r?r:void 0}function fD(e){const t=xE(e,"firstSliceAng");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=Number.parseInt(n,10);return Number.isFinite(r)&&!(r<0||r>360)&&0!==r&&360!==r?r:void 0}function hD(e){const t=xE(e,"grouping");if(!t)return;const n=t.attrs.val;if("string"==typeof n)switch(n){case"stacked":return"stacked";case"percentStacked":return"percentStacked";default:return}}function pD(e,t){const n=Hk(function(e){return Uk(e.plotAreaLayout)}(e)),r=[n??XE("c:layout")],i={xAxisTitle:fF(e.axes?.x?.title),yAxisTitle:fF(e.axes?.y?.title),xAxisTitleRotation:qF(e.axes?.x?.axisTitleRotation),yAxisTitleRotation:qF(e.axes?.y?.axisTitleRotation),xAxisTitleFontSize:jF(e.axes?.x?.axisTitleFontSize),yAxisTitleFontSize:jF(e.axes?.y?.axisTitleFontSize),xAxisTitleBold:WF(e.axes?.x?.axisTitleBold),yAxisTitleBold:WF(e.axes?.y?.axisTitleBold),xAxisTitleItalic:_F(e.axes?.x?.axisTitleItalic),yAxisTitleItalic:_F(e.axes?.y?.axisTitleItalic),xAxisTitleColor:VF(e.axes?.x?.axisTitleColor),yAxisTitleColor:VF(e.axes?.y?.axisTitleColor),xAxisTitleStrike:YF(e.axes?.x?.axisTitleStrike),yAxisTitleStrike:YF(e.axes?.y?.axisTitleStrike),xAxisTitleUnderline:GF(e.axes?.x?.axisTitleUnderline),yAxisTitleUnderline:GF(e.axes?.y?.axisTitleUnderline),xAxisTitleFontFamily:JF(e.axes?.x?.axisTitleFontFamily),yAxisTitleFontFamily:JF(e.axes?.y?.axisTitleFontFamily),xAxisTitleOverlay:!0===e.axes?.x?.axisTitleOverlay,yAxisTitleOverlay:!0===e.axes?.y?.axisTitleOverlay,xAxisTitleLayout:Uk(e.axes?.x?.axisTitleLayout),yAxisTitleLayout:Uk(e.axes?.y?.axisTitleLayout),xAxisTitleFillColor:tB(e.axes?.x?.axisTitleFillColor),yAxisTitleFillColor:tB(e.axes?.y?.axisTitleFillColor),xAxisTitleBorderColor:tB(e.axes?.x?.axisTitleBorderColor),yAxisTitleBorderColor:tB(e.axes?.y?.axisTitleBorderColor),xAxisTitleBorderWidth:Nk(e.axes?.x?.axisTitleBorderWidth),yAxisTitleBorderWidth:Nk(e.axes?.y?.axisTitleBorderWidth),xAxisTitleBorderDash:Tk(e.axes?.x?.axisTitleBorderDash),yAxisTitleBorderDash:Tk(e.axes?.y?.axisTitleBorderDash),xAxisTitleBorderCap:gk(e.axes?.x?.axisTitleBorderCap),yAxisTitleBorderCap:gk(e.axes?.y?.axisTitleBorderCap),xAxisTitleBorderCompound:mk(e.axes?.x?.axisTitleBorderCompound),yAxisTitleBorderCompound:mk(e.axes?.y?.axisTitleBorderCompound),xGridlines:hF(e.axes?.x?.gridlines),yGridlines:hF(e.axes?.y?.gridlines),xScale:gF(e.axes?.x?.scale),yScale:gF(e.axes?.y?.scale),xNumFmt:mF(e.axes?.x?.numberFormat),yNumFmt:mF(e.axes?.y?.numberFormat),xMajorTickMark:OF(e.axes?.x?.majorTickMark),yMajorTickMark:OF(e.axes?.y?.majorTickMark),xMinorTickMark:OF(e.axes?.x?.minorTickMark),yMinorTickMark:OF(e.axes?.y?.minorTickMark),xTickLblPos:UF(e.axes?.x?.tickLblPos),yTickLblPos:UF(e.axes?.y?.tickLblPos),xLabelRotation:wF(e.axes?.x?.labelRotation),yLabelRotation:wF(e.axes?.y?.labelRotation),xLabelFontSize:xF(e.axes?.x?.labelFontSize),yLabelFontSize:xF(e.axes?.y?.labelFontSize),xLabelBold:IF(e.axes?.x?.labelBold),yLabelBold:IF(e.axes?.y?.labelBold),xLabelItalic:CF(e.axes?.x?.labelItalic),yLabelItalic:CF(e.axes?.y?.labelItalic),xLabelColor:SF(e.axes?.x?.labelColor),yLabelColor:SF(e.axes?.y?.labelColor),xLabelUnderline:EF(e.axes?.x?.labelUnderline),yLabelUnderline:EF(e.axes?.y?.labelUnderline),xLabelStrike:kF(e.axes?.x?.labelStrike),yLabelStrike:kF(e.axes?.y?.labelStrike),xLabelFontFamily:BF(e.axes?.x?.labelFontFamily),yLabelFontFamily:BF(e.axes?.y?.labelFontFamily),xReverse:!0===e.axes?.x?.reverse,yReverse:!0===e.axes?.y?.reverse,xTickLblSkip:yF(e.axes?.x?.tickLblSkip),xTickMarkSkip:yF(e.axes?.x?.tickMarkSkip),xLblOffset:vF(e.axes?.x?.lblOffset),xLblAlgn:bF(e.axes?.x?.lblAlgn),xNoMultiLvlLbl:!0===e.axes?.x?.noMultiLvlLbl,xAuto:!1!==e.axes?.x?.auto,xHidden:AF(e.axes?.x?.hidden),yHidden:AF(e.axes?.y?.hidden),xCrosses:DF(e.axes?.x?.crosses,e.axes?.x?.crossesAt),yCrosses:DF(e.axes?.y?.crosses,e.axes?.y?.crossesAt),xDispUnits:QF(e.axes?.x?.dispUnits),yDispUnits:QF(e.axes?.y?.dispUnits),xCrossBetween:LF(e.axes?.x?.crossBetween),yCrossBetween:LF(e.axes?.y?.crossBetween)};switch(e.type){case"bar":case"column":r.push(function(e,t){const n=e.barGrouping??"clustered",r="bar"===e.type?"bar":"col",i="percentStacked"===n||"stacked"===n,o=[XE("c:barDir",{val:r}),XE("c:grouping",{val:n}),XE("c:varyColors",{val:yD(e)?1:0})];for(let n=0;n<e.series.length;n++)o.push(qB(e.series[n],n,t,!1,{chartType:e.type,dataLabels:e.dataLabels,invertIfNegative:!0===e.series[n].invertIfNegative,dataPoints:e.series[n].dataPoints,trendlines:e.series[n].trendlines,errorBars:e.series[n].errorBars}));const a=IB(e);a&&o.push(a);const s=function(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<0?0:t>500?500:t}(e.gapWidth),l=function(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<-100?-100:t>100?100:t}(e.overlap),c=s??(i?void 0:150);void 0!==c&&o.push(XE("c:gapWidth",{val:c}));const u=l??(i?100:void 0);void 0!==u&&o.push(XE("c:overlap",{val:u}));!0===e.serLines&&o.push(ZE("c:serLines",void 0,[]));return o.push(XE("c:axId",{val:oF})),o.push(XE("c:axId",{val:aF})),ZE("c:barChart",void 0,o)}(e,t)),r.push(...HF(e.type,i));break;case"line":r.push(function(e,t){const n=e.lineGrouping??"standard",r=[XE("c:grouping",{val:n}),XE("c:varyColors",{val:yD(e)?1:0})];for(let n=0;n<e.series.length;n++){const i=qB(e.series[n],n,t,!1,{chartType:e.type,smooth:!0===e.series[n].smooth,dataLabels:e.dataLabels,stroke:e.series[n].stroke,marker:e.series[n].marker,dataPoints:e.series[n].dataPoints,trendlines:e.series[n].trendlines,errorBars:e.series[n].errorBars});r.push(i)}const i=IB(e);i&&r.push(i);!0===e.dropLines&&r.push(ZE("c:dropLines",void 0,[]));!0===e.hiLowLines&&r.push(ZE("c:hiLowLines",void 0,[]));!0===e.upDownBars&&r.push(function(e){const t=function(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<0||t>500?void 0:t}(e)??150;return ZE("c:upDownBars",void 0,[XE("c:gapWidth",{val:t})])}(e.upDownBarsGapWidth));return r.push(XE("c:marker",{val:!1===e.showLineMarkers?0:1})),r.push(XE("c:axId",{val:oF})),r.push(XE("c:axId",{val:aF})),ZE("c:lineChart",void 0,r)}(e,t)),r.push(...HF("column",i));break;case"area":r.push(function(e,t){const n=e.areaGrouping??"standard",r=[XE("c:grouping",{val:n}),XE("c:varyColors",{val:yD(e)?1:0})];for(let n=0;n<e.series.length;n++)r.push(qB(e.series[n],n,t,!1,{chartType:e.type,dataLabels:e.dataLabels,dataPoints:e.series[n].dataPoints,trendlines:e.series[n].trendlines,errorBars:e.series[n].errorBars}));const i=IB(e);i&&r.push(i);!0===e.dropLines&&r.push(ZE("c:dropLines",void 0,[]));return r.push(XE("c:axId",{val:oF})),r.push(XE("c:axId",{val:aF})),ZE("c:areaChart",void 0,r)}(e,t)),r.push(...HF("column",i));break;case"pie":r.push(function(e,t){const n=[XE("c:varyColors",{val:yD(e)?1:0})];e.series.length>0&&n.push(qB(e.series[0],0,t,!1,{chartType:e.type,dataLabels:e.dataLabels,explosion:e.series[0].explosion,dataPoints:e.series[0].dataPoints}));const r=IB(e);r&&n.push(r);const i=gD(e.firstSliceAng);void 0!==i&&n.push(XE("c:firstSliceAng",{val:i}));return ZE("c:pieChart",void 0,n)}(e,t));break;case"doughnut":r.push(function(e,t){const n=[XE("c:varyColors",{val:yD(e)?1:0})];for(let r=0;r<e.series.length;r++)n.push(qB(e.series[r],r,t,!1,{chartType:e.type,dataLabels:e.dataLabels,explosion:e.series[r].explosion,dataPoints:e.series[r].dataPoints}));const r=IB(e);r&&n.push(r);return n.push(XE("c:firstSliceAng",{val:gD(e.firstSliceAng)??0})),n.push(XE("c:holeSize",{val:mD(e.holeSize)})),ZE("c:doughnutChart",void 0,n)}(e,t));break;case"scatter":r.push(function(e,t){const n=[XE("c:scatterStyle",{val:vD(e)}),XE("c:varyColors",{val:yD(e)?1:0})];for(let r=0;r<e.series.length;r++)n.push(qB(e.series[r],r,t,!0,{chartType:e.type,smooth:!0===e.series[r].smooth||void 0,dataLabels:e.dataLabels,stroke:e.series[r].stroke,marker:e.series[r].marker,dataPoints:e.series[r].dataPoints,trendlines:e.series[r].trendlines,errorBars:e.series[r].errorBars}));const r=IB(e);r&&n.push(r);return n.push(XE("c:axId",{val:sF})),n.push(XE("c:axId",{val:lF})),ZE("c:scatterChart",void 0,n)}(e,t)),r.push(...function(e){const t=[XE("c:axId",{val:sF}),NF(e.xScale,e.xReverse),XE("c:delete",{val:e.xHidden?1:0}),XE("c:axPos",{val:"b"}),...pF(e.xGridlines)];e.xAxisTitle&&t.push(zF(e.xAxisTitle,e.xAxisTitleRotation,e.xAxisTitleFontSize,e.xAxisTitleBold,e.xAxisTitleItalic,e.xAxisTitleColor,e.xAxisTitleStrike,e.xAxisTitleUnderline,e.xAxisTitleFontFamily,e.xAxisTitleOverlay,e.xAxisTitleLayout,e.xAxisTitleFillColor,e.xAxisTitleBorderColor,e.xAxisTitleBorderWidth,e.xAxisTitleBorderDash,e.xAxisTitleBorderCap,e.xAxisTitleBorderCompound)),t.push(...PF(e.xNumFmt),...$F(e.xMajorTickMark,e.xMinorTickMark,e.xTickLblPos));const n=FF(e.xLabelRotation,e.xLabelFontSize,e.xLabelBold,e.xLabelItalic,e.xLabelColor,e.xLabelUnderline,e.xLabelStrike,e.xLabelFontFamily);n&&t.push(n),t.push(XE("c:crossAx",{val:lF}),MF(e.xCrosses),XE("c:crossBetween",{val:e.xCrossBetween??"midCat"}),...TF(e.xScale),...RF(e.xDispUnits));const r=[XE("c:axId",{val:lF}),NF(e.yScale,e.yReverse),XE("c:delete",{val:e.yHidden?1:0}),XE("c:axPos",{val:"l"}),...pF(e.yGridlines)];e.yAxisTitle&&r.push(zF(e.yAxisTitle,e.yAxisTitleRotation,e.yAxisTitleFontSize,e.yAxisTitleBold,e.yAxisTitleItalic,e.yAxisTitleColor,e.yAxisTitleStrike,e.yAxisTitleUnderline,e.yAxisTitleFontFamily,e.yAxisTitleOverlay,e.yAxisTitleLayout,e.yAxisTitleFillColor,e.yAxisTitleBorderColor,e.yAxisTitleBorderWidth,e.yAxisTitleBorderDash,e.yAxisTitleBorderCap,e.yAxisTitleBorderCompound)),r.push(...PF(e.yNumFmt),...$F(e.yMajorTickMark,e.yMinorTickMark,e.yTickLblPos));const i=FF(e.yLabelRotation,e.yLabelFontSize,e.yLabelBold,e.yLabelItalic,e.yLabelColor,e.yLabelUnderline,e.yLabelStrike,e.yLabelFontFamily);return i&&r.push(i),r.push(XE("c:crossAx",{val:sF}),MF(e.yCrosses),XE("c:crossBetween",{val:e.yCrossBetween??"midCat"}),...TF(e.yScale),...RF(e.yDispUnits)),[ZE("c:valAx",void 0,t),ZE("c:valAx",void 0,r)]}(i));break;default:{const t=e.type;throw new Error(`Unsupported chart type: ${String(t)}`)}}const o=function(e){if("pie"===e.type||"doughnut"===e.type)return;const t=e.dataTable;var n;return void 0!==t&&!1!==t?!0===t?{showHorzBorder:!0,showVertBorder:!0,showOutline:!0,showKeys:!0,fontSize:void 0,fontColor:void 0,bold:void 0,italic:void 0,underline:void 0,strikethrough:void 0,fontFamily:void 0,fillColor:void 0,borderColor:void 0,borderWidth:void 0,borderDash:void 0,borderCap:void 0,borderCompound:void 0}:{showHorzBorder:!1!==t.showHorzBorder,showVertBorder:!1!==t.showVertBorder,showOutline:!1!==t.showOutline,showKeys:!1!==t.showKeys,fontSize:(n=t.fontSize,Kk(n)),fontColor:dB(t.fontColor),bold:fB(t.bold),italic:hB(t.italic),underline:pB(t.underline),strikethrough:gB(t.strikethrough),fontFamily:mB(t.fontFamily),fillColor:yB(t.fillColor),borderColor:vB(t.borderColor),borderWidth:Nk(t.borderWidth),borderDash:Tk(t.borderDash),borderCap:gk(t.borderCap),borderCompound:mk(t.borderCompound)}:void 0}(e);void 0!==o&&r.push(bB(o));const a=function(e){const t=(s=e.plotAreaFillColor,tB(s)),n=function(e){return tB(e)}(e.plotAreaBorderColor),r=Nk(e.plotAreaBorderWidth),i=Tk(e.plotAreaBorderDash),o=gk(e.plotAreaBorderCap),a=mk(e.plotAreaBorderCompound);var s;if(void 0===t&&void 0===n&&void 0===r&&void 0===i&&void 0===o&&void 0===a)return;const l=[];void 0!==t&&l.push(ZE("a:solidFill",void 0,[Ek(t)]));if(void 0!==n||void 0!==r||void 0!==i||void 0!==o||void 0!==a){const e={};void 0!==r&&(e.w=Math.round(r*uk)),void 0!==o&&(e.cap=o),void 0!==a&&(e.cmpd=a);const t=[];void 0!==n&&t.push(ZE("a:solidFill",void 0,[Ek(n)])),void 0!==i&&t.push(XE("a:prstDash",{val:i})),l.push(0===t.length?XE("a:ln",e):ZE("a:ln",Object.keys(e).length>0?e:void 0,t))}return ZE("c:spPr",void 0,l)}(e);return void 0!==a&&r.push(a),ZE("c:plotArea",void 0,r)}function gD(e){if(void 0===e||!Number.isFinite(e))return;let t=Math.round(e)%360;return t<0&&(t+=360),0!==t?t:void 0}function mD(e){if(void 0===e||!Number.isFinite(e))return 50;const t=Math.round(e);return t<10?10:t>90?90:t}function yD(e){return"boolean"==typeof e.varyColors?e.varyColors:ZF.has(e.type)}function vD(e){const t=e.scatterStyle;return t&&eD.has(t)?t:"lineMarker"}const bD=new Map([["barChart","bar"],["bar3DChart","bar3D"],["lineChart","line"],["line3DChart","line3D"],["pieChart","pie"],["pie3DChart","pie3D"],["doughnutChart","doughnut"],["areaChart","area"],["area3DChart","area3D"],["scatterChart","scatter"],["bubbleChart","bubble"],["radarChart","radar"],["surfaceChart","surface"],["surface3DChart","surface3D"],["stockChart","stock"],["ofPieChart","ofPie"]]);function AD(e){const t=wE(e),n="chartSpace"===t.local?t:CE(t,"chartSpace");if(!n)return;const r=xE(n,"chart");if(!r)return{kinds:[],seriesCount:0};const i={kinds:[],seriesCount:0},o=function(e){const t=xE(e,"title");if(!t)return;const n=xE(t,"tx");if(!n)return;const r=xE(n,"rich");if(r){const e=[];tk(r,e);const t=e.join("").trim();return t.length>0?t:void 0}const i=xE(n,"strRef");if(i){const e=xE(i,"strCache");if(e)for(const t of IE(e)){if("pt"!==t.local)continue;const e=xE(t,"v");if(e){const t=nk(e).trim();if(t.length>0)return t}}}}(r);void 0!==o&&(i.title=o);const a=function(e){const t=xE(e,"title");if(!t)return;const n=xE(t,"overlay");if(!n)return;const r=n.attrs.val;if("string"==typeof r)switch(r){case"1":case"true":return!0;default:return}}(r);void 0!==a&&(i.titleOverlay=a);const s=function(e){const t=xE(e,"title");if(!t)return;const n=xE(t,"tx");if(!n)return;const r=xE(n,"rich");if(!r)return;const i=xE(r,"bodyPr");if(!i)return;const o=i.attrs.rot;if("string"!=typeof o)return;const a=o.trim();if(0===a.length)return;const s=Number.parseInt(a,10);if(!Number.isFinite(s))return;const l=Math.round(s/Yk);return 0!==l?l<Gk?Gk:l>90?90:l:void 0}(r);void 0!==s&&(i.titleRotation=s);const l=function(e){const t=qk(e);if(!t)return;const n=t.attrs.sz;if("string"!=typeof n)return;const r=n.trim();if(0===r.length)return;const i=Number.parseInt(r,10);if(!Number.isFinite(i))return;const o=Math.round(i/100*2)/2;return o<1||o>400?void 0:o}(r);void 0!==l&&(i.titleFontSize=l);const c=function(e){const t=qk(e);if(!t)return;return!0===rk(t.attrs.b)||void 0}(r);void 0!==c&&(i.titleBold=c);const u=function(e){const t=qk(e);if(!t)return;return!0===rk(t.attrs.i)||void 0}(r);void 0!==u&&(i.titleItalic=u);const d=function(e){const t=qk(e);if(!t)return;const n=xE(t,"solidFill");if(!n)return;const r=xE(n,"srgbClr");if(r)return kk(r.attrs.val);const i=xE(n,"schemeClr");return i?Ck(i):void 0}(r);void 0!==d&&(i.titleColor=d);const f=function(e){const t=qk(e);if(!t)return;return"sngStrike"===t.attrs.strike||void 0}(r);void 0!==f&&(i.titleStrike=f);const h=function(e){const t=qk(e);if(!t)return;return"sng"===t.attrs.u||void 0}(r);void 0!==h&&(i.titleUnderline=h);const p=function(e){const t=qk(e);if(!t)return;const n=xE(t,"latin");if(!n)return;const r=n.attrs.typeface;if("string"!=typeof r)return;const i=r.trim();return 0!==i.length?i:void 0}(r);void 0!==p&&(i.titleFontFamily=p);const g=function(e){const t=xE(e,"title");if(t)return Ok(t)}(r);void 0!==g&&(i.titleLayout=g);const m=function(e){const t=xE(e,"title");if(t)return Bk(t)}(r);void 0!==m&&(i.titleFillColor=m);const y=function(e){const t=xE(e,"title");if(t)return Fk(t)}(r);void 0!==y&&(i.titleBorderColor=y);const v=function(e){const t=xE(e,"title");if(t)return Dk(t)}(r);void 0!==v&&(i.titleBorderWidth=v);const b=function(e){const t=xE(e,"title");if(t)return Mk(t)}(r);void 0!==b&&(i.titleBorderDash=b);const A=function(e){const t=xE(e,"title");if(t)return yk(t)}(r);void 0!==A&&(i.titleBorderCap=A);const w=function(e){const t=xE(e,"title");if(t)return vk(t)}(r);void 0!==w&&(i.titleBorderCompound=w);const x=function(e){const t=xE(e,"autoTitleDeleted");if(!t)return;const n=t.attrs.val;if("string"==typeof n)switch(n){case"1":case"true":return!0;default:return}}(r);void 0!==x&&(i.autoTitleDeleted=x);const I=xE(r,"plotArea");if(I){let e=0;const t=[];let n,r,o,a,s,l,c,u,d,f,h,p,g,m,y,v;for(const b of IE(I)){const A=bD.get(b.local);if(!A)continue;if(i.kinds.includes(A)||i.kinds.push(A),void 0===d&&(d=tD(b,A)),void 0!==n||"bar"!==A&&"bar3D"!==A||(n=sD(b)),void 0!==l||"bar"!==A&&"bar3D"!==A||(l=cD(b)),void 0!==c||"bar"!==A&&"bar3D"!==A||(c=dD(b)),void 0!==r||"line"!==A&&"line3D"!==A||(r=hD(b)),void 0!==o||"area"!==A&&"area3D"!==A||(o=hD(b)),void 0===s&&"doughnut"===A&&(s=lD(b)),void 0!==u||"pie"!==A&&"pie3D"!==A&&"doughnut"!==A&&"ofPie"!==A||(u=fD(b)),void 0===f&&"scatter"===A&&(f=nD(b)),void 0!==h||"line"!==A&&"line3D"!==A&&"area"!==A&&"area3D"!==A||(h=rD(b)),void 0!==p||"line"!==A&&"line3D"!==A&&"stock"!==A||(p=iD(b)),void 0!==g||"bar"!==A&&"ofPie"!==A||(g=oD(b)),void 0===m&&("line"===A||"line3D"===A||"stock"===A)){const e=xE(b,"upDownBars");void 0!==e&&(m=!0,y=uD(e))}void 0===v&&"line"===A&&(v=aD(b));let w=0;for(const n of IE(b))"ser"===n.local&&(e++,t.push(HB(n,A,w)),w++);if(void 0===a){const e=xE(b,"dLbls");if(e){const t=xB(e);t&&(a=t)}}}i.seriesCount=e,t.length>0&&(i.series=t),void 0!==n&&(i.barGrouping=n),void 0!==r&&(i.lineGrouping=r),void 0!==o&&(i.areaGrouping=o),a&&(i.dataLabels=a),void 0!==s&&(i.holeSize=s),void 0!==l&&(i.gapWidth=l),void 0!==c&&(i.overlap=c),void 0!==u&&(i.firstSliceAng=u),void 0!==d&&(i.varyColors=d),void 0!==f&&(i.scatterStyle=f),void 0!==h&&(i.dropLines=h),void 0!==p&&(i.hiLowLines=p),void 0!==g&&(i.serLines=g),void 0!==m&&(i.upDownBars=m),void 0!==y&&(i.upDownBarsGapWidth=y),void 0!==v&&(i.showLineMarkers=v);const b=function(e){let t;const n=[];for(const r of IE(e))"catAx"===r.local?t??=r:"valAx"===r.local&&n.push(r);let r,i;t?(r=t,i=n[0]):(r=n[0],i=n[1]);const o=t?"between":"midCat",a=r?tF(r,o):void 0,s=i?tF(i,o):void 0;if(!a&&!s)return;const l={};return a&&(l.x=a),s&&(l.y=s),l}(I);void 0!==b&&(i.axes=b);const A=cB(I);void 0!==A&&(i.dataTable=A);const w=function(e){return Ok(e)}(I);void 0!==w&&(i.plotAreaLayout=w);const x=function(e){return Bk(e)}(I);void 0!==x&&(i.plotAreaFillColor=x);const C=function(e){return Fk(e)}(I);void 0!==C&&(i.plotAreaBorderColor=C);const S=function(e){return Dk(e)}(I);void 0!==S&&(i.plotAreaBorderWidth=S);const E=Mk(I);void 0!==E&&(i.plotAreaBorderDash=E);const k=yk(I);void 0!==k&&(i.plotAreaBorderCap=k);const B=vk(I);void 0!==B&&(i.plotAreaBorderCompound=B)}const C=function(e){const t=xE(e,"legend");if(!t)return;const n=xE(t,"delete");if(n&&!0===ok(n.attrs.val))return!1;const r=xE(t,"legendPos");if(!r)return"right";const i=r.attrs.val;if("string"!=typeof i)return"right";switch(i){case"t":return"top";case"b":return"bottom";case"l":return"left";case"r":return"right";case"tr":return"topRight";default:return}}(r);if(void 0!==C&&(i.legend=C),void 0!==C&&!1!==C){const e=function(e){const t=xE(e,"legend");if(!t)return;const n=xE(t,"overlay");if(!n)return;const r=n.attrs.val;if("string"==typeof r)switch(r){case"1":case"true":return!0;default:return}}(r);void 0!==e&&(i.legendOverlay=e);const t=function(e){const t=xE(e,"legend");if(!t)return;const n=new Set,r=[];for(const e of IE(t)){if("legendEntry"!==e.local)continue;const t=xE(e,"idx");if(!t)continue;const i=t.attrs.val;if("string"!=typeof i)continue;const o=Number.parseInt(i,10);if(!Number.isFinite(o)||o<0)continue;if(n.has(o))continue;n.add(o);const a=xE(e,"delete"),s={idx:o,delete:void 0!==a&&!0===ok(a.attrs.val)},l=zk(e);if(l){const e=l.attrs.sz;if("string"==typeof e){const t=e.trim();if(t.length>0){const e=Number.parseInt(t,10);if(Number.isFinite(e)){const t=Math.round(e/iB*2)/2;t>=1&&t<=oB&&(s.fontSize=t)}}}const t=l.attrs.b;"string"==typeof t&&!0===ok(t)&&(s.bold=!0);const n=l.attrs.i;"string"==typeof n&&!0===ok(n)&&(s.italic=!0);const r=l.attrs.u;"string"==typeof r&&"sng"===r&&(s.underline=!0);const i=l.attrs.strike;"string"==typeof i&&"sngStrike"===i&&(s.strikethrough=!0);const o=xE(l,"solidFill");if(o){const e=xE(o,"srgbClr");if(e){const t=e.attrs.val;if("string"==typeof t){const e=t.replace(/^#/,"").toUpperCase();/^[0-9A-F]{6}$/.test(e)&&(s.color=e)}}}const a=xE(l,"latin");if(a){const e=a.attrs.typeface;if("string"==typeof e){const t=e.trim();t.length>0&&(s.fontFamily=t)}}}r.push(s)}return r.length>0?r:void 0}(r);void 0!==t&&(i.legendEntries=t);const n=function(e){const t=xE(e,"legend");if(!t)return;const n=zk(t);if(!n)return;const r=n.attrs.sz;if("string"!=typeof r)return;const i=r.trim();if(0===i.length)return;const o=Number.parseInt(i,10);if(!Number.isFinite(o))return;const a=Math.round(o/iB*2)/2;return a<1||a>oB?void 0:a}(r);void 0!==n&&(i.legendFontSize=n);const o=function(e){const t=xE(e,"legend");if(!t)return;const n=zk(t);if(!n)return;const r=n.attrs.b;return"1"===r||"true"===r||void 0}(r);void 0!==o&&(i.legendBold=o);const a=function(e){const t=xE(e,"legend");if(!t)return;const n=zk(t);if(!n)return;const r=n.attrs.i;return"1"===r||"true"===r||void 0}(r);void 0!==a&&(i.legendItalic=a);const s=function(e){const t=xE(e,"legend");if(!t)return;const n=zk(t);if(!n)return;return"sng"===n.attrs.u||void 0}(r);void 0!==s&&(i.legendUnderline=s);const l=function(e){const t=xE(e,"legend");if(!t)return;const n=zk(t);if(!n)return;return"sngStrike"===n.attrs.strike||void 0}(r);void 0!==l&&(i.legendStrikethrough=l);const c=function(e){const t=xE(e,"legend");if(!t)return;const n=zk(t);if(!n)return;const r=xE(n,"solidFill");if(!r)return;const i=xE(r,"srgbClr");if(i)return kk(i.attrs.val);const o=xE(r,"schemeClr");return o?Ck(o):void 0}(r);void 0!==c&&(i.legendFontColor=c);const u=function(e){const t=xE(e,"legend");if(!t)return;const n=zk(t);if(!n)return;const r=xE(n,"latin");if(!r)return;const i=r.attrs.typeface;if("string"!=typeof i)return;const o=i.trim();return 0!==o.length?o:void 0}(r);void 0!==u&&(i.legendFontFamily=u);const d=function(e){const t=xE(e,"legend");if(t)return Ok(t)}(r);void 0!==d&&(i.legendLayout=d);const f=function(e){const t=xE(e,"legend");if(t)return Bk(t)}(r);void 0!==f&&(i.legendFillColor=f);const h=function(e){const t=xE(e,"legend");if(t)return Fk(t)}(r);void 0!==h&&(i.legendBorderColor=h);const p=function(e){const t=xE(e,"legend");if(t)return Dk(t)}(r);void 0!==p&&(i.legendBorderWidth=p);const g=function(e){const t=xE(e,"legend");if(t)return Mk(t)}(r);void 0!==g&&(i.legendBorderDash=g);const m=function(e){const t=xE(e,"legend");if(t)return yk(t)}(r);void 0!==m&&(i.legendBorderCap=m);const y=function(e){const t=xE(e,"legend");if(t)return vk(t)}(r);void 0!==y&&(i.legendBorderCompound=y)}const S=function(e){const t=xE(e,"dispBlanksAs");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;switch(n){case"zero":return"zero";case"span":return"span";default:return}}(r);void 0!==S&&(i.dispBlanksAs=S);const E=function(e){const t=xE(e,"plotVisOnly");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;switch(n){case"0":case"false":return!1;default:return}}(r);void 0!==E&&(i.plotVisOnly=E);const k=function(e){const t=xE(e,"showDLblsOverMax");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;switch(n){case"0":case"false":return!1;default:return}}(r);void 0!==k&&(i.showDLblsOverMax=k);const B=function(e){const t=xE(e,"roundedCorners");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;switch(n){case"1":case"true":return!0;default:return}}(n);void 0!==B&&(i.roundedCorners=B);const F=function(e){const t=xE(e,"style");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;if(!/^\d+$/.test(n))return;const r=Number(n);return Number.isInteger(r)?r<1||r>48?void 0:r:void 0}(n);void 0!==F&&(i.style=F);const D=function(e){const t=xE(e,"lang");if(!t)return;const n=t.attrs.val;return"string"!=typeof n?void 0:/^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$/.test(n)?n:void 0}(n);void 0!==D&&(i.lang=D);const M=function(e){const t=xE(e,"date1904");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;switch(n){case"1":case"true":return!0;default:return}}(n);void 0!==M&&(i.date1904=M);const N=function(e){const t=xE(e,"protection");if(!t)return;const n={},r=wD(t,"chartObject");void 0!==r&&(n.chartObject=r);const i=wD(t,"data");void 0!==i&&(n.data=i);const o=wD(t,"formatting");void 0!==o&&(n.formatting=o);const a=wD(t,"selection");void 0!==a&&(n.selection=a);const s=wD(t,"userInterface");void 0!==s&&(n.userInterface=s);return n}(n);void 0!==N&&(i.protection=N);const T=Qk(r);void 0!==T&&(i.view3D=T);const Q=function(e){const t=xE(e,"floor");if(!t)return;const n=xE(t,"thickness");if(!n)return;const r=n.attrs.val;if("string"!=typeof r)return;if(!/^\d+$/.test(r))return;const i=Number(r);return!Number.isInteger(i)||0===i||i>100?void 0:i}(r);void 0!==Q&&(i.floorThickness=Q);const R=function(e){const t=xE(e,"sideWall");if(!t)return;const n=xE(t,"thickness");if(!n)return;const r=n.attrs.val;if("string"!=typeof r)return;if(!/^\d+$/.test(r))return;const i=Number(r);return!Number.isInteger(i)||0===i||i>100?void 0:i}(r);void 0!==R&&(i.sideWallThickness=R);const L=function(e){const t=xE(e,"backWall");if(!t)return;const n=xE(t,"thickness");if(!n)return;const r=n.attrs.val;if("string"!=typeof r)return;if(!/^\d+$/.test(r))return;const i=Number(r);return!Number.isInteger(i)||0===i||i>100?void 0:i}(r);void 0!==L&&(i.backWallThickness=L);const P=function(e){return Bk(e)}(n);void 0!==P&&(i.chartSpaceFillColor=P);const O=function(e){return Fk(e)}(n);void 0!==O&&(i.chartSpaceBorderColor=O);const U=Dk(n);void 0!==U&&(i.chartSpaceBorderWidth=U);const $=Mk(n);void 0!==$&&(i.chartSpaceBorderDash=$);const H=yk(n);void 0!==H&&(i.chartSpaceBorderCap=H);const z=vk(n);return void 0!==z&&(i.chartSpaceBorderCompound=z),i}function wD(e,t){const n=xE(e,t);if(!n)return;const r=n.attrs.val;if("string"==typeof r)switch(r){case"1":case"true":return!0;case"0":case"false":return!1;default:return}}const xD=1073741824,ID=1048575,CD=16383,SD=16777216,ED=Object.freeze([208,207,17,224,161,177,26,225]);async function kD(e,t){if(e instanceof Uint8Array)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if("object"==typeof(n=e)&&null!==n&&"function"==typeof n.getReader)return async function(e,t=1073741824){const n=Number.isFinite(t)&&t>0?t:xD,r=e.getReader(),i=[];let o=0;try{for(;;){const{done:e,value:t}=await r.read();if(e)break;if(t){if(o+=t.length,o>n)throw new eE(`Input stream exceeds the maximum of ${n} bytes. Raise \`maxInputBytes\` if the file really is this large.`);i.push(t)}}if(0===i.length)return new Uint8Array(0);if(1===i.length)return i[0];const e=new Uint8Array(o);let t=0;for(const n of i)e.set(n,t),t+=n.length;return e}finally{try{await r.cancel()}catch{}try{r.releaseLock()}catch{}}}(e,t);var n;throw new eE("Unsupported input type. Expected Uint8Array, ArrayBuffer, or ReadableStream<Uint8Array>.")}const BD=[208,207,17,224,161,177,26,225],FD=4294967294,DD=4294967295,MD=4096,ND=64;function TD(e){if(e.length<512)throw new eE("CFB: file too small");for(let t=0;t<BD.length;t++)if(e[t]!==BD[t])throw new eE("CFB: bad signature");const t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=1<<t.getUint16(30,!0),r=1<<t.getUint16(32,!0),i=t.getUint32(44,!0),o=t.getUint32(48,!0),a=t.getUint32(56,!0),s=t.getUint32(60,!0),l=t.getUint32(64,!0),c=t.getUint32(68,!0),u=t.getUint32(72,!0),d=t=>{const r=(e=>(e+1)*n)(t);if(r+n>e.length)throw new eE("CFB: sector out of range");return e.subarray(r,r+n)},f=[];for(let e=0;e<109&&f.length<i;e++){const n=t.getUint32(76+4*e,!0);if(n===DD||n===FD)break;f.push(n)}const h=Math.floor(e.length/n)+1,p=Math.min(u,h);let g=c,m=0;for(;g!==FD&&g!==DD&&p>0&&m++<p+1;){const e=d(g),t=new DataView(e.buffer,e.byteOffset,e.byteLength),r=n/4-1;for(let e=0;e<r&&f.length<i;e++){const n=t.getUint32(4*e,!0);n!==DD&&n!==FD&&f.push(n)}g=t.getUint32(n-4,!0)}const y=[];for(const e of f){const t=d(e),r=new DataView(t.buffer,t.byteOffset,t.byteLength);for(let e=0;e<n/4;e++)y.push(r.getUint32(4*e,!0))}const v=(e,t)=>{const r=(e=>{const t=[];let n=e,r=0;for(;n!==FD&&n!==DD&&r++<y.length+1;)t.push(n),n=y[n]??FD;return t})(e),i=new Uint8Array(r.length*n);let o=0;for(const e of r)i.set(d(e),o),o+=n;return t>=0?i.subarray(0,t):i},b=v(o,-1),A=new DataView(b.buffer,b.byteOffset,b.byteLength),w=[];for(let e=0;e+128<=b.length;e+=128){const t=b[e+66];if(0===t)continue;const n=A.getUint16(e+64,!0);let r="";for(let t=0;t+1<n;t+=2){const n=A.getUint16(e+t,!0);if(0===n)break;r+=String.fromCharCode(n)}const i=A.getUint32(e+116,!0),o=A.getUint32(e+120,!0);w.push({name:r,type:t,startSector:i,size:o})}const x=w.find(e=>5===e.type);if(!x)throw new eE("CFB: missing root entry");const I=v(x.startSector,x.size),C=[];if(l>0&&s!==FD){const e=v(s,l*n),t=new DataView(e.buffer,e.byteOffset,e.byteLength);for(let n=0;n<e.length/4;n++)C.push(t.getUint32(4*n,!0))}const S=(e,t)=>{if(t<0||t>I.length)throw new eE("CFB: mini stream size out of range");const n=new Uint8Array(t);let i=e,o=0,a=0;for(;i!==FD&&i!==DD&&o<t&&a++<C.length+1;){const e=i*r,a=Math.min(r,t-o);n.set(I.subarray(e,e+a),o),o+=a,i=C[i]??FD}return n},E=new Map;for(const e of w){if(2!==e.type)continue;const t=a||MD;E.set(e.name,e.size<t?S(e.startSector,e.size):v(e.startSector,e.size))}return E}function QD(e){const t=512,n=[],r=[],i=[],o=new Map;let a=0;for(const t of e)if(t.data.length<MD){o.set(t.name,{mini:!0}),r.push(a);const e=RD(t.data,ND);n.push(e),a+=e.length/ND}else o.set(t.name,{mini:!1}),i.push({name:t.name,data:t.data});const s=function(e){let t=0;for(const n of e)t+=n.length;const n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(n);let l=0;const c=e=>{const n=Math.max(1,Math.ceil(e/t)),r=l;return l+=n,{startSector:r,sectorCount:n}},u=i.map(e=>({name:e.name,data:e.data,region:c(e.data.length)})),d=s.length>0?c(s.length):null,f=new Uint8Array(Math.ceil(Math.max(a,0)/128)*t);{const t=new DataView(f.buffer);for(let e=0;e<f.length/4;e++)t.setUint32(4*e,DD,!0);let n=0;for(const i of e){if(i.data.length>=MD)continue;const e=RD(i.data,ND).length/ND;for(let i=0;i<e;i++){const o=r[n]+i;t.setUint32(4*o,i===e-1?FD:o+1,!0)}n++}}const h=a>0?c(f.length):null,p=1+e.length,g=Math.ceil(p/4)*t,m=c(g),y=l;let v=1;for(;;){const e=y+v,t=Math.ceil(e/128);if(t<=v)break;v=t}const b={startSector:l,sectorCount:v};l+=v;const A=l,w=new Uint32Array(128*v);w.fill(DD);const x=e=>{for(let t=0;t<e.sectorCount;t++)w[e.startSector+t]=t===e.sectorCount-1?FD:e.startSector+t+1};for(const e of u)x(e.region);d&&x(d),h&&x(h),x(m);for(let e=0;e<v;e++)w[b.startSector+e]=4294967293;const I=new Uint8Array(g),C=new DataView(I.buffer),S=(e,t,n,r,i,o,a,s,l)=>{const c=128*e;for(let e=0;e<t.length;e++)C.setUint16(c+2*e,t.charCodeAt(e),!0);C.setUint16(c+64,2*(t.length+1),!0),I[c+66]=n,I[c+67]=r,C.setUint32(c+68,i,!0),C.setUint32(c+72,o,!0),C.setUint32(c+76,a,!0),C.setUint32(c+116,s,!0),C.setUint32(c+120,l,!0)};for(let e=0;e<g/128;e++)C.setUint32(128*e+68,DD,!0),C.setUint32(128*e+72,DD,!0),C.setUint32(128*e+76,DD,!0);S(0,"Root Entry",5,1,DD,DD,e.length>0?1:DD,d?d.startSector:FD,s.length);for(let t=0;t<e.length;t++){const n=e[t],r=o.get(n.name),i=t+1,a=t+1<e.length?i+1:DD;let s;if(r.mini){let n=0;for(let r=0;r<t;r++){const t=e[r];t.data.length<MD&&(n+=RD(t.data,ND).length/ND)}s=n}else{s=u.find(e=>e.name===n.name).region.startSector}S(i,n.name,2,1,DD,a,DD,s,n.data.length)}const E=new Uint8Array((A+1)*t),k=new DataView(E.buffer);for(let e=0;e<BD.length;e++)E[e]=BD[e];k.setUint16(24,62,!0),k.setUint16(26,3,!0),k.setUint16(28,65534,!0),k.setUint16(30,9,!0),k.setUint16(32,6,!0),k.setUint32(44,v,!0),k.setUint32(48,m.startSector,!0),k.setUint32(56,MD,!0),k.setUint32(60,h?h.startSector:FD,!0),k.setUint32(64,h?h.sectorCount:0,!0),k.setUint32(68,FD,!0),k.setUint32(72,0,!0);for(let e=0;e<109;e++)k.setUint32(76+4*e,e<v?b.startSector+e:DD,!0);const B=e=>(e+1)*t,F=(e,t)=>{E.set(t,B(e.startSector))};for(const e of u)F(e.region,e.data);d&&F(d,s),h&&F(h,f),F(m,I);{const e=B(b.startSector),n=new DataView(E.buffer,e,v*t);for(let e=0;e<w.length;e++)n.setUint32(4*e,w[e],!0)}return E}function RD(e,t){if(e.length%t===0)return e;const n=new Uint8Array(Math.ceil(e.length/t)*t);return n.set(e,0),n}let LD,PD;function OD(e,t,n,r){const i=LD;for(let e=0;e<32;e++){const i=r+4*e;t[e]=n[i]<<24|n[i+1]<<16|n[i+2]<<8|n[i+3]}for(let e=16;e<80;e++){let n=t[2*(e-15)],r=t[2*(e-15)+1];const i=(n>>>1|r<<31)^(n>>>8|r<<24)^n>>>7,o=(r>>>1|n<<31)^(r>>>8|n<<24)^(r>>>7|n<<25);n=t[2*(e-2)],r=t[2*(e-2)+1];const a=(n>>>19|r<<13)^(r>>>29|n<<3)^n>>>6;let s=(((r>>>19|n<<13)^(n>>>29|r<<3)^(r>>>6|n<<26))>>>0)+(t[2*(e-7)+1]>>>0)+(o>>>0)+(t[2*(e-16)+1]>>>0);const l=a+t[2*(e-7)]+i+t[2*(e-16)]+(s/4294967296|0)|0;s|=0,t[2*e]=l,t[2*e+1]=s}let o=e[0],a=e[1],s=e[2],l=e[3],c=e[4],u=e[5],d=e[6],f=e[7],h=e[8],p=e[9],g=e[10],m=e[11],y=e[12],v=e[13],b=e[14],A=e[15];for(let e=0;e<80;e++){const n=(h>>>14|p<<18)^(h>>>18|p<<14)^(p>>>9|h<<23),r=h&g^~h&y;let w=(A>>>0)+(((p>>>14|h<<18)^(p>>>18|h<<14)^(h>>>9|p<<23))>>>0)+((p&m^~p&v)>>>0)+(i[2*e+1]>>>0)+(t[2*e+1]>>>0);const x=b+n+r+i[2*e]+t[2*e]+(w/4294967296|0)|0;w|=0;let I=(((a>>>28|o<<4)^(o>>>2|a<<30)^(o>>>7|a<<25))>>>0)+((a&l^a&u^l&u)>>>0);const C=((o>>>28|a<<4)^(a>>>2|o<<30)^(a>>>7|o<<25))+(o&s^o&c^s&c)+(I/4294967296|0)|0;I|=0,b=y,A=v,y=g,v=m,g=h,m=p;let S=(f>>>0)+(w>>>0);h=d+x+(S/4294967296|0)|0,p=0|S,d=c,f=u,c=s,u=l,s=o,l=a,S=(w>>>0)+(I>>>0),o=x+C+(S/4294967296|0)|0,a=0|S}UD(e,0,o,a),UD(e,2,s,l),UD(e,4,c,u),UD(e,6,d,f),UD(e,8,h,p),UD(e,10,g,m),UD(e,12,y,v),UD(e,14,b,A)}function UD(e,t,n,r){const i=(e[t+1]>>>0)+(r>>>0);e[t]=e[t]+n+(i/4294967296|0)|0,e[t+1]=0|i}function $D(e,t,n){for(let r=0;r<16;r++){const i=e[r],o=n+4*r;t[o]=i>>>24,t[o+1]=i>>>16,t[o+2]=i>>>8,t[o+3]=i}}function HD(e,t,n=0){if(64!==e.length)throw new RangeError("sha512Spin expects a 64-byte SHA-512 hash");PD||function(){const e=[];for(let t=2n;e.length<80;t++)e.every(e=>t%e!==0n)&&e.push(t);const t=(e,t)=>{let n=1n<<BigInt(e.toString(2).length)/t+1n;for(;;){const r=((t-1n)*n+e/n**(t-1n))/t;if(r>=n)return n;n=r}},n=(n,r)=>{const i=new Int32Array(2*n);for(let o=0;o<n;o++){const n=18446744073709551615n&t(e[o]<<64n*r,r);i[2*o]=0|Number(n>>32n),i[2*o+1]=0|Number(4294967295n&n)}return i};LD=n(80,3n),PD=n(8,2n)}();const r=new Uint8Array(128);r.set(e,4),r[68]=128,r[127]=544,r[126]=2;const i=new Int32Array(16),o=new Int32Array(160);for(let e=n;e<n+t;e++)r[0]=e,r[1]=e>>>8,r[2]=e>>>16,r[3]=e>>>24,i.set(PD),OD(i,o,r,0),$D(i,r,4);return r.slice(4,68)}const zD=new Uint8Array([254,167,210,118,59,75,158,121]),qD=new Uint8Array([215,170,15,109,48,97,52,78]),jD=new Uint8Array([20,110,11,231,171,172,208,214]),WD=new Uint8Array([95,178,173,1,12,185,225,246]),_D=new Uint8Array([160,103,127,2,178,44,132,51]),VD=4096,YD=new Uint8Array(16);async function GD(e,t,n=1e7){let r;try{r=TD(e)}catch(e){throw new oE("Not a valid encrypted workbook container.",{cause:e})}const i=r.get("EncryptionInfo"),o=r.get("EncryptedPackage");if(!i||!o)throw new oE("Encrypted workbook missing EncryptionInfo/EncryptedPackage.");const a=i[0]|i[1]<<8,s=i[2]|i[3]<<8;if(4!==a||4!==s)throw new oE(`Unsupported encryption (version ${a}.${s}); only ECMA-376 Agile is supported.`);const l=new TextDecoder("utf-8").decode(i.subarray(8)),c=function(e,t){const n=cM(e,"encryptedKey");if(!n)throw new oE("EncryptionInfo missing encryptedKey.");const r=parseInt(uM(n,"spinCount"),10);if(!Number.isFinite(r)||r<0)throw new oE("EncryptionInfo has an invalid spinCount.");if(r>t)throw new oE(`EncryptionInfo spinCount ${r} exceeds the maximum of ${t}. Raise \`maxSpinCount\` to agree to spend that time.`);return{saltValue:vM(uM(n,"saltValue")),hashAlgorithm:fM(uM(n,"hashAlgorithm")),keyBytes:parseInt(uM(n,"keyBits"),10)/8,blockSize:parseInt(uM(n,"blockSize"),10),spinCount:r,encryptedVerifierHashInput:vM(uM(n,"encryptedVerifierHashInput")),encryptedVerifierHashValue:vM(uM(n,"encryptedVerifierHashValue")),encryptedKeyValue:vM(uM(n,"encryptedKeyValue"))}}(l,n),u=function(e){const t=cM(e,"keyData");if(!t)throw new oE("EncryptionInfo missing keyData.");return{saltValue:vM(uM(t,"saltValue")),hashAlgorithm:fM(uM(t,"hashAlgorithm")),keyBytes:parseInt(uM(t,"keyBits"),10)/8,blockSize:parseInt(uM(t,"blockSize"),10)}}(l),d=await async function(e,t){const n=await KD(e,t.saltValue,t.spinCount,t.hashAlgorithm),r=await ZD(n,zD,t.keyBytes,t.hashAlgorithm),i=await ZD(n,qD,t.keyBytes,t.hashAlgorithm),o=await ZD(n,jD,t.keyBytes,t.hashAlgorithm),a=await aM(r,t.saltValue,t.encryptedVerifierHashInput),s=await aM(i,t.saltValue,t.encryptedVerifierHashValue),l=await rM(t.hashAlgorithm,a),c=Math.min(l.length,s.length);if(!function(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r<e.length;r++)n|=e[r]^t[r];return 0===n}(l.subarray(0,c),s.subarray(0,c)))return null;const u=await aM(o,t.saltValue,t.encryptedKeyValue);return u.subarray(0,t.keyBytes)}(t,c);if(!d)throw new oE("Incorrect password.");return await async function(e,t,n,r){const i=cM(e,"dataIntegrity");if(!i)return;if("SHA-512"!==r.hashAlgorithm)return;const o=vM(uM(i,"encryptedHmacKey")),a=vM(uM(i,"encryptedHmacValue"));if(0===o.length||0===a.length)return;const s=await eM(r.saltValue,WD,r.hashAlgorithm,r.blockSize),l=await eM(r.saltValue,_D,r.hashAlgorithm,r.blockSize),c=await aM(n,s,o),u=await aM(n,l,a),d=await lM(c,t),f=Math.min(d.length,u.length);let h=0===d.length?1:0;for(let e=0;e<f;e++)h|=d[e]^u[e];if(0!==h)throw new oE("Encrypted package failed integrity check (HMAC mismatch).")}(l,o,d,u),async function(e,t,n){const r=Number(new DataView(e.buffer,e.byteOffset,8).getBigUint64(0,!0)),i=e.subarray(8),o=new Uint8Array(Math.ceil(i.length/VD)*VD),a=new Uint8Array(4),s=new DataView(a.buffer);let l=0,c=0;for(;l<i.length;){const e=i.subarray(l,Math.min(l+VD,i.length));s.setUint32(0,c,!0);const r=tM(await rM(n.hashAlgorithm,gM([n.saltValue,a])),n.blockSize),u=await aM(t,r,e);o.set(u,l),l+=VD,c++}return o.subarray(0,r)}(o,d,u)}async function JD(e,t,n){const r=n?.spinCount??1e5,i="SHA-512",o=32,a=16,s=hM(16),l=hM(16),c=hM(o),u=await KD(t,l,r,i),d=hM(a),f=await rM(i,d),h=await ZD(u,zD,o,i),p=await ZD(u,qD,o,i),g=await ZD(u,jD,o,i),m=await sM(h,l,d),y=await sM(p,l,pM(f,a)),v=await sM(g,l,c),b=await async function(e,t,n){const r=new Uint8Array(8);new DataView(r.buffer).setBigUint64(0,BigInt(e.length),!0);const i=pM(e,VD),o=new Uint8Array(i.length),a=new Uint8Array(4),s=new DataView(a.buffer);let l=0,c=0;for(;l<i.length;){const e=i.subarray(l,l+VD);s.setUint32(0,c,!0);const r=tM(await rM(n.hashAlgorithm,gM([n.saltValue,a])),n.blockSize),u=await sM(t,r,e);o.set(u,l),l+=VD,c++}return gM([r,o])}(e,c,{saltValue:s,hashAlgorithm:i,keyBytes:o,blockSize:a}),A=hM(64),w=await eM(s,WD,i,a),x=await sM(c,w,pM(A,a)),I=await lM(A,b),C=await eM(s,_D,i,a),S=function(e){const t=yM;return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><encryption xmlns="http://schemas.microsoft.com/office/2006/encryption" xmlns:p="http://schemas.microsoft.com/office/2006/keyEncryptor/password"><keyData saltSize="${e.keyDataSalt.length}" blockSize="${e.blockSize}" keyBits="${e.keyBits}" hashSize="${e.hashSize}" cipherAlgorithm="AES" cipherChaining="ChainingModeCBC" hashAlgorithm="SHA512" saltValue="${t(e.keyDataSalt)}"/><dataIntegrity encryptedHmacKey="${t(e.encryptedHmacKey)}" encryptedHmacValue="${t(e.encryptedHmacValue)}"/><keyEncryptors><keyEncryptor uri="http://schemas.microsoft.com/office/2006/keyEncryptor/password"><p:encryptedKey spinCount="${e.spinCount}" saltSize="${e.pwSalt.length}" blockSize="${e.blockSize}" keyBits="${e.keyBits}" hashSize="${e.hashSize}" cipherAlgorithm="AES" cipherChaining="ChainingModeCBC" hashAlgorithm="SHA512" saltValue="${t(e.pwSalt)}" encryptedVerifierHashInput="${t(e.encryptedVerifierHashInput)}" encryptedVerifierHashValue="${t(e.encryptedVerifierHashValue)}" encryptedKeyValue="${t(e.encryptedKeyValue)}"/></keyEncryptor></keyEncryptors></encryption>`}({keyDataSalt:s,pwSalt:l,spinCount:r,keyBits:256,hashSize:64,blockSize:a,encryptedVerifierHashInput:m,encryptedVerifierHashValue:y,encryptedKeyValue:v,encryptedHmacKey:x,encryptedHmacValue:await sM(c,C,pM(I,a))}),E=new Uint8Array(8),k=new DataView(E.buffer);k.setUint16(0,4,!0),k.setUint16(2,4,!0),k.setUint32(4,64,!0);return QD([{name:"EncryptionInfo",data:gM([E,(new TextEncoder).encode(S)])},{name:"EncryptedPackage",data:b}])}function XD(e){const t=new Uint8Array(2*e.length),n=new DataView(t.buffer);for(let t=0;t<e.length;t++)n.setUint16(2*t,e.charCodeAt(t),!0);return t}async function KD(e,t,n,r){let i=await rM(r,gM([t,XD(e)]));if("SHA-512"===r){for(let e=0;e<n;e+=1e4)e>0&&await new Promise(e=>setTimeout(e,0)),i=HD(i,Math.min(1e4,n-e),e);return i}const o=new Uint8Array(4),a=new DataView(o.buffer);for(let e=0;e<n;e++)a.setUint32(0,e,!0),i=await rM(r,gM([o,i]));return i}async function ZD(e,t,n,r){return function(e,t){if(e.length>=t)return e.subarray(0,t);const n=new Uint8Array(t).fill(54);return n.set(e,0),n}(await rM(r,gM([e,t])),n)}async function eM(e,t,n,r){return tM(await rM(n,gM([e,t])),r)}function tM(e,t){if(e.length>=t)return e.subarray(0,t);const n=new Uint8Array(t).fill(54);return n.set(e,0),n}const nM=e=>e;async function rM(e,t){return new Uint8Array(await crypto.subtle.digest(e,nM(t)))}async function iM(e){return crypto.subtle.importKey("raw",nM(e),{name:"AES-CBC"},!1,["encrypt","decrypt"])}async function oM(e,t,n){if(0===n.length)return new Uint8Array(0);const r=n.subarray(n.length-16),i=new Uint8Array(16);for(let e=0;e<16;e++)i[e]=16^r[e];const o=await async function(e,t){return new Uint8Array(await crypto.subtle.encrypt({name:"AES-CBC",iv:nM(YD)},e,nM(t))).subarray(0,16)}(e,i),a=gM([n,o]);return new Uint8Array(await crypto.subtle.decrypt({name:"AES-CBC",iv:nM(t)},e,nM(a))).subarray(0,n.length)}async function aM(e,t,n){return oM(await iM(e),t,n)}async function sM(e,t,n){return async function(e,t,n){return 0===n.length?new Uint8Array(0):new Uint8Array(await crypto.subtle.encrypt({name:"AES-CBC",iv:nM(t)},e,nM(n))).subarray(0,n.length)}(await iM(e),t,n)}async function lM(e,t){const n=await crypto.subtle.importKey("raw",nM(e),{name:"HMAC",hash:"SHA-512"},!1,["sign"]);return new Uint8Array(await crypto.subtle.sign("HMAC",n,nM(t)))}function cM(e,t){const n=new RegExp(`<(?:\\w+:)?${t}\\b[^>]*?/?>`).exec(e);return n?n[0]:null}function uM(e,t){const n=new RegExp(`\\b${t}="([^"]*)"`).exec(e);return n?n[1]:""}const dM={SHA512:"SHA-512",SHA384:"SHA-384",SHA256:"SHA-256",SHA1:"SHA-1"};function fM(e){return dM[e]??"SHA-512"}function hM(e){const t=new Uint8Array(e);return crypto.getRandomValues(t),t}function pM(e,t){if(e.length%t===0)return e;const n=new Uint8Array(Math.ceil(e.length/t)*t);return n.set(e,0),n}function gM(e){let t=0;for(const n of e)t+=n.length;const n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}const mM="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function yM(e){let t="",n=0;for(;n+2<e.length;n+=3){const r=e[n]<<16|e[n+1]<<8|e[n+2];t+=mM[r>>18&63]+mM[r>>12&63]+mM[r>>6&63]+mM[63&r]}if(n<e.length){if(1===e.length-n){const r=e[n]<<16;t+=mM[r>>18&63]+mM[r>>12&63]+"=="}else{const r=e[n]<<16|e[n+1]<<8;t+=mM[r>>18&63]+mM[r>>12&63]+mM[r>>6&63]+"="}}return t}function vM(e){const t=e.replace(/[^A-Za-z0-9+/]/g,""),n=Math.floor(3*t.length/4),r=new Uint8Array(n);let i=0,o=0,a=0;for(let e=0;e<t.length;e++)o=o<<6|mM.indexOf(t[e]),i+=6,i>=8&&(i-=8,r[a++]=o>>i&255);return r.subarray(0,a)}function bM(e){let t=0;return new ReadableStream({pull(n){if(t>=e.length)return void n.close();const r=Math.min(t+1048576,e.length);n.enqueue(e.subarray(t,r)),t=r}})}const AM=(()=>{const e=new Uint32Array(256);for(let t=0;t<256;t++){let n=t;for(let e=0;e<8;e++)n=1&n?3988292384^n>>>1:n>>>1;e[t]=n}return e})();function wM(e){return t=function(e,t){let n=e;for(let e=0;e<t.length;e++)n=AM[255&(n^t[e])]^n>>>8;return n>>>0}(4294967295,e),(4294967295^t)>>>0;var t}class xM{data;pos=0;bitBuf=0;bitCount=0;constructor(e){this.data=e}readBits(e){for(;this.bitCount<e;){if(this.pos>=this.data.length)throw new tE("Unexpected end of DEFLATE data");this.bitBuf|=this.data[this.pos++]<<this.bitCount,this.bitCount+=8}const t=this.bitBuf&(1<<e)-1;return this.bitBuf>>>=e,this.bitCount-=e,t}alignToByte(){this.bitBuf=0,this.bitCount=0}readByte(){if(this.pos>=this.data.length)throw new tE("Unexpected end of DEFLATE data");return this.data[this.pos++]}readUint16LE(){return this.readByte()|this.readByte()<<8}get offset(){return this.pos}get available(){return this.pos<this.data.length||this.bitCount>0}}function IM(e,t){const n=new Uint16Array(16);for(let r=0;r<t;r++)e[r]&&n[e[r]]++;const r=new Uint16Array(16);for(let e=1;e<15;e++)r[e+1]=r[e]+n[e];const i=r[15]+n[15],o=new Uint16Array(i);for(let n=0;n<t;n++)e[n]&&(o[r[e[n]]++]=n);return{counts:n,symbols:o}}function CM(e,t){let n=0,r=0,i=0;for(let o=1;o<=15;o++){n|=e.readBits(1);const a=t.counts[o];if(n<r+a)return t.symbols[i+(n-r)];i+=a,r=r+a<<1,n<<=1}throw new tE("Invalid Huffman code")}const SM=(()=>{const e=new Uint8Array(288);for(let t=0;t<=143;t++)e[t]=8;for(let t=144;t<=255;t++)e[t]=9;for(let t=256;t<=279;t++)e[t]=7;for(let t=280;t<=287;t++)e[t]=8;return IM(e,288)})(),EM=(()=>{const e=new Uint8Array(32);for(let t=0;t<32;t++)e[t]=5;return IM(e,32)})(),kM=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],BM=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],FM=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],DM=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],MM=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function NM(e,t=2147483648){const n=new xM(e);let r=new Uint8Array(3*e.length||1024),i=0;function o(e){if(i+e>t)throw new tE(`Decompressed size exceeds limit of ${t} bytes (possible zip bomb)`);if(i+e>r.length){let n=2*r.length;for(;i+e>n;)n*=2;n>t&&(n=t);const o=new Uint8Array(n);o.set(r),r=o}}function a(e){o(1),r[i++]=e}function s(e,t){o(t);let n=i-e;for(let e=0;e<t;e++)r[i++]=r[n++]}function l(e,t){for(;;){const r=CM(n,e);if(r<256)a(r);else{if(256===r)return;{const e=r-257,i=kM[e]+n.readBits(BM[e]),o=CM(n,t);s(FM[o]+n.readBits(DM[o]),i)}}}}let c=0;do{c=n.readBits(1);const e=n.readBits(2);if(0===e){n.alignToByte();const e=n.readUint16LE();n.readUint16LE(),o(e);for(let t=0;t<e;t++)r[i++]=n.readByte()}else if(1===e)l(SM,EM);else{if(2!==e)throw new tE(`Invalid DEFLATE block type: ${e}`);{const e=n.readBits(5)+257,t=n.readBits(5)+1,r=n.readBits(4)+4,i=new Uint8Array(19);for(let e=0;e<r;e++)i[MM[e]]=n.readBits(3);const o=IM(i,19),a=e+t,s=new Uint8Array(a);let c=0;for(;c<a;){const e=CM(n,o);if(e<16)s[c++]=e;else if(16===e){const e=n.readBits(2)+3,t=c>0?s[c-1]:0;for(let n=0;n<e;n++)s[c++]=t}else if(17===e){const e=n.readBits(3)+3;for(let t=0;t<e;t++)s[c++]=0}else if(18===e){const e=n.readBits(7)+11;for(let t=0;t<e;t++)s[c++]=0}}const u=s.subarray(0,e),d=s.subarray(e,e+t);l(IM(u,e),IM(d,t))}}}while(0===c);return r.subarray(0,i)}function TM(e){return 0===e.length?new Uint8Array([3,0]):e.length<=64?function(e){const t=[];let n=0;for(;n<e.length;){const r=e.length-n,i=Math.min(r,65535),o=n+i>=e.length,a=new Uint8Array(5+i);a[0]=o?1:0,a[1]=255&i,a[2]=i>>8&255,a[3]=255&~i,a[4]=~i>>8&255,a.set(e.subarray(n,n+i),5),t.push(a),n+=i}const r=t.reduce((e,t)=>e+t.length,0),i=new Uint8Array(r);let o=0;for(const e of t)i.set(e,o),o+=e.length;return i}(e):function(e){let t=new Uint8Array(e.length+512),n=0,r=0,i=0;function o(e){if(n+e>t.length){let r=2*t.length;for(;n+e>r;)r*=2;const i=new Uint8Array(r);i.set(t),t=i}}function a(e,a){for(r|=e<<i,i+=a;i>=8;)o(1),t[n++]=255&r,r>>>=8,i-=8}function s(){i>0&&(o(1),t[n++]=255&r,r=0,i=0)}function l(e){e<=143?a(QM(48+e,8),8):e<=255?a(QM(e-144+400,9),9):e<=279?a(QM(e-256,7),7):a(QM(e-280+192,8),8)}function c(e){a(QM(e,5),5)}a(1,1),a(1,2);const u=32768,d=258,f=3,h=32768,p=h-1,g=new Int32Array(h).fill(-1),m=new Int32Array(u);function y(t){return t+2>=e.length?0:(e[t]<<10^e[t+1]<<5^e[t+2])&p}let v=0;for(;v<e.length;){if(v+f>e.length){l(e[v]),v++;continue}const t=y(v);let n=f-1,r=0,i=g[t],o=0;const s=128,h=Math.max(0,v-u);for(;i>=h&&o<s;){const t=v-i;if(t>0&&t<=u){let o=0;const a=Math.min(d,e.length-v);for(;o<a&&e[i+o]===e[v+o];)o++;if(o>n&&(n=o,r=t,o===d))break}i=m[i&u-1],o++}if(m[v&u-1]=g[t],g[t]=v,n>=f){const t=RM(n);l(t+257),a(n-kM[t],BM[t]);const i=LM(r);c(i),a(r-FM[i],DM[i]);for(let t=1;t<n;t++){const n=v+t;if(n+f<=e.length){const e=y(n);m[n&u-1]=g[e],g[e]=n}}v+=n}else l(e[v]),v++}return l(256),s(),t.subarray(0,n)}(e)}function QM(e,t){let n=0;for(let r=0;r<t;r++)n=n<<1|1&e,e>>=1;return n}function RM(e){for(let t=kM.length-1;t>=0;t--)if(e>=kM[t])return t;return 0}function LM(e){for(let t=FM.length-1;t>=0;t--)if(e>=FM[t])return t;return 0}let PM,OM;function UM(){if(void 0===OM)try{new DecompressionStream("deflate-raw"),OM="undefined"!=typeof ReadableStream}catch{OM=!1}return OM}const $M=67324752,HM=4294967295;class zM{data;view;centralDir=[];entryMap=new Map;maxDecompressedBytes;constructor(e,t=2147483648){if(this.data=e,this.maxDecompressedBytes=t,e.length<22)throw new tE("Data too small to be a valid ZIP archive");this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.readEndOfCentralDir()}entries(){return this.centralDir.map(e=>e.fileName)}has(e){return this.entryMap.has(e)}declaredSize(e){const t=this.entryMap.get(e);if(!t?.uncompressedSize)return;const n=0===t.compressionMethod?t.compressedSize:1032*t.compressedSize;return t.compressedSize>0&&t.uncompressedSize>n?void 0:t.uncompressedSize}async extract(e){const t=this.entryMap.get(e);if(!t)throw new tE(`Entry not found: ${e}`);return this.extractEntry(t)}extractStream(e){const t=this.entryMap.get(e);if(!t)throw new tE(`Entry not found: ${e}`);return this.extractEntryStream(t)}async extractAll(){const e=new Map;for(const t of this.centralDir){if(t.fileName.endsWith("/"))continue;const n=await this.extractEntry(t);e.set(t.fileName,n)}return e}readEndOfCentralDir(){const e=Math.max(0,this.data.length-65557);let t=-1;for(let n=this.data.length-22;n>=e;n--)if(101010256===this.view.getUint32(n,!0)){t=n;break}if(-1===t)throw new tE("End of Central Directory not found — not a valid ZIP file");let n=this.view.getUint32(t+12,!0),r=this.view.getUint32(t+16,!0),i=this.view.getUint16(t+10,!0);if(65535===i||n===HM||r===HM){const e=this.readZip64EndOfCentralDir(t);i=e.entryCount,n=e.centralDirSize,r=e.centralDirOffset}this.readCentralDirectory(r,n,i)}readZip64EndOfCentralDir(e){const t=e-20;if(t<0||117853008!==this.view.getUint32(t,!0))throw new tE("ZIP64 End of Central Directory locator not found");const n=this.readUint64(t+8,"ZIP64 EOCD offset");if(n+56>this.data.length)throw new tE("ZIP64 End of Central Directory record extends beyond file");if(101075792!==this.view.getUint32(n,!0))throw new tE("Invalid ZIP64 End of Central Directory signature");return{entryCount:this.readUint64(n+32,"ZIP64 entry count"),centralDirSize:this.readUint64(n+40,"ZIP64 central directory size"),centralDirOffset:this.readUint64(n+48,"ZIP64 central directory offset")}}readUint64(e,t){if(e+8>this.data.length)throw new tE(`${t} extends beyond file`);const n=this.view.getBigUint64(e,!0);if(n>BigInt(Number.MAX_SAFE_INTEGER))throw new tE(`${t} (${n}) exceeds the addressable range`);return Number(n)}readCentralDirectory(e,t,n){let r=e;for(let e=0;e<n;e++){if(r+46>this.data.length)throw new tE("Central Directory entry extends beyond file");const e=this.view.getUint32(r,!0);if(33639248!==e)throw new tE(`Invalid Central Directory signature at offset ${r}: 0x${e.toString(16)}`);const t=this.view.getUint16(r+8,!0),n=this.view.getUint16(r+10,!0),i=this.view.getUint32(r+16,!0);let o=this.view.getUint32(r+20,!0),a=this.view.getUint32(r+24,!0);const s=this.view.getUint16(r+28,!0),l=this.view.getUint16(r+30,!0),c=this.view.getUint16(r+32,!0);let u=this.view.getUint32(r+42,!0);const d=this.data.subarray(r+46,r+46+s),f=(new TextDecoder).decode(d);if(o===HM||a===HM||u===HM){const e=this.readZip64Extra(r+46+s,l,a===HM,o===HM,u===HM,f);void 0!==e.uncompressedSize&&(a=e.uncompressedSize),void 0!==e.compressedSize&&(o=e.compressedSize),void 0!==e.localHeaderOffset&&(u=e.localHeaderOffset)}const h={fileName:f,compressionMethod:n,compressedSize:o,uncompressedSize:a,crc32:i,localHeaderOffset:u,hasDataDescriptor:!!(8&t)};this.centralDir.push(h),this.entryMap.set(f,h),r+=46+s+l+c}}readZip64Extra(e,t,n,r,i,o){const a=Math.min(e+t,this.data.length);let s=e;for(;s+4<=a;){const e=this.view.getUint16(s,!0),t=this.view.getUint16(s+2,!0),a=s+4;if(1!==e){s=a+t;continue}const l=a+t;let c=a;const u={},d=e=>{if(c+8>l)throw new tE(`Truncated ZIP64 extra field for entry: ${o}`);const t=this.readUint64(c,e);return c+=8,t};return n&&(u.uncompressedSize=d("ZIP64 uncompressed size")),r&&(u.compressedSize=d("ZIP64 compressed size")),i&&(u.localHeaderOffset=d("ZIP64 local header offset")),u}throw new tE(`Missing ZIP64 extra field for entry: ${o}`)}async extractEntry(e){const t=e.localHeaderOffset;if(t+30>this.data.length)throw new tE("Local file header extends beyond file");if(this.view.getUint32(t,!0)!==$M)throw new tE(`Invalid local file header signature at offset ${t}`);const n=t+30+this.view.getUint16(t+26,!0)+this.view.getUint16(t+28,!0);let{compressedSize:r,uncompressedSize:i,crc32:o}=e;if(e.hasDataDescriptor&&0===r){const e=this.view.getUint32(t+18,!0);e>0&&e!==HM&&(r=e);const a=this.view.getUint32(t+22,!0);if(a>0&&a!==HM&&(i=a),0===r){const e=this.findDataDescriptor(n);e&&(o=e.crc,r=e.compressedSize,i=e.uncompressedSize)}}if(n+r>this.data.length)throw new tE(`Compressed data extends beyond file for entry: ${e.fileName}`);const a=this.data.subarray(n,n+r);let s;if(0===e.compressionMethod)s=a;else{if(8!==e.compressionMethod)throw new tE(`Unsupported compression method ${e.compressionMethod} for entry: ${e.fileName}`);if(0===r&&0===i)s=new Uint8Array(0);else{const e=i>0?Math.min(i,this.maxDecompressedBytes):this.maxDecompressedBytes;s=await async function(e,t=2147483648){if(UM())try{const n=new DecompressionStream("deflate-raw"),r=n.writable.getWriter(),i=n.readable.getReader();r.write(e).catch(()=>{}),r.close().catch(()=>{});const o=[];let a=0;for(;;){const{done:e,value:n}=await i.read();if(e)break;if(a+=n.length,a>t){try{await i.cancel()}catch{}throw new tE(`Decompressed size exceeds limit of ${t} bytes (possible zip bomb)`)}o.push(n)}const s=new Uint8Array(a);let l=0;for(const e of o)s.set(e,l),l+=e.length;return s}catch(e){if(e instanceof tE)throw e}return NM(e,t)}(a,e)}}if(0!==o&&s.length>0){const t=wM(s);if(t!==o)throw new tE(`CRC-32 mismatch for ${e.fileName}: expected 0x${o.toString(16)}, got 0x${t.toString(16)}`)}return s}extractEntryStream(e){const t=e.localHeaderOffset;if(t+30>this.data.length)throw new tE("Local file header extends beyond file");if(this.view.getUint32(t,!0)!==$M)throw new tE(`Invalid local file header signature at offset ${t}`);const n=t+30+this.view.getUint16(t+26,!0)+this.view.getUint16(t+28,!0);let{compressedSize:r}=e;if(e.hasDataDescriptor&&0===r){const e=this.view.getUint32(t+18,!0);if(e>0&&e!==HM&&(r=e),0===r){const e=this.findDataDescriptor(n);e&&(r=e.compressedSize)}}if(n+r>this.data.length)throw new tE(`Compressed data extends beyond file for entry: ${e.fileName}`);const i=this.data.subarray(n,n+r);if(0===e.compressionMethod)return bM(i);if(8===e.compressionMethod){if(0===r&&0===e.uncompressedSize)return new ReadableStream({start(e){e.close()}});const t=e.uncompressedSize>0?Math.min(e.uncompressedSize,this.maxDecompressedBytes):this.maxDecompressedBytes;if(UM()){return new ReadableStream({start(e){e.enqueue(i),e.close()}}).pipeThrough(new DecompressionStream("deflate-raw")).pipeThrough(function(e){let t=0;return new TransformStream({transform(n,r){if(t+=n.length,t>e)throw new tE(`Decompressed size exceeds limit of ${e} bytes (possible zip bomb)`);r.enqueue(n)}})}(t))}return bM(NM(i,t))}throw new tE(`Unsupported compression method ${e.compressionMethod} for entry: ${e.fileName}`)}findDataDescriptor(e){for(let t=e;t<this.data.length-16;t++)if(134695760===this.view.getUint32(t,!0))return{crc:this.view.getUint32(t+4,!0),compressedSize:this.view.getUint32(t+8,!0),uncompressedSize:this.view.getUint32(t+12,!0)};return null}}function qM(e){const t=[];let n=null;for(const r of e.children){if("string"==typeof r)continue;const e=r.local||r.tag;"t"===e?n=jM(r):"r"===e&&t.push(r)}if(0===t.length)return{text:fE(n??"")};const r=[],i=[];for(const e of t){let t,n="";for(const r of e.children){if("string"==typeof r)continue;const e=r.local||r.tag;"t"===e?n=jM(r):"rPr"===e&&(t=WM(r))}const o=fE(n);i.push(o),r.push(t?{text:o,font:t}:{text:o})}return{text:i.join(""),richText:r}}function jM(e){return e.text??""}function WM(e){const t={};for(const n of e.children){if("string"==typeof n)continue;switch(n.local||n.tag){case"b":t.bold="0"!==n.attrs.val&&"false"!==n.attrs.val;break;case"i":t.italic="0"!==n.attrs.val&&"false"!==n.attrs.val;break;case"u":{const e=n.attrs.val;t.underline="double"===e?"double":"singleAccounting"===e?"singleAccounting":"doubleAccounting"!==e||"doubleAccounting";break}case"strike":t.strikethrough="0"!==n.attrs.val&&"false"!==n.attrs.val;break;case"sz":n.attrs.val&&(t.size=Number(n.attrs.val));break;case"rFont":n.attrs.val&&(t.name=n.attrs.val);break;case"color":if(t.color={},n.attrs.rgb){const e=n.attrs.rgb;t.color.rgb=8===e.length?e.slice(2):e}n.attrs.theme&&(t.color.theme=Number(n.attrs.theme)),n.attrs.tint&&(t.color.tint=Number(n.attrs.tint)),n.attrs.indexed&&(t.color.indexed=Number(n.attrs.indexed));break;case"vertAlign":"superscript"!==n.attrs.val&&"subscript"!==n.attrs.val||(t.vertAlign=n.attrs.val);break;case"family":n.attrs.val&&(t.family=Number(n.attrs.val));break;case"charset":n.attrs.val&&(t.charset=Number(n.attrs.val));break;case"scheme":"major"!==n.attrs.val&&"minor"!==n.attrs.val&&"none"!==n.attrs.val||(t.scheme=n.attrs.val)}}return t}const _M=Date.UTC(1899,11,31),VM=Date.UTC(1904,0,1),YM=864e5;function GM(e,t){const n=e.getTime();if(t)return(n-VM)/YM;let r=(n-_M)/YM;return r>=60&&(r+=1),Math.round(1e10*r)/1e10}const JM=new Set([14,15,16,17,18,19,20,21,22,27,28,29,30,31,32,33,34,35,36,45,46,47,50,51,52,53,54,55,56,57,58]);function XM(e){if(!e)return!1;const t=Number(e);if(!Number.isNaN(t)&&Number.isInteger(t)&&JM.has(t))return!0;let n=e.replace(/\[[$\-\w]*\]/g,"");if(n=n.replace(/\\./g,""),n=n.replace(/"[^"]*"/g,""),n=n.replace(/[*_]./g,""),/^(General|@)$/i.test(n.trim()))return!1;const r=n.toLowerCase();if(/[hs]/.test(r)){if(/\bh{1,2}\b|(?:^|[^a-z])h{1,2}(?:[^a-z]|$)/i.test(r))return!0;if(/\bs{1,2}\b|(?:^|[^a-z])s{1,2}(?:[^a-z]|$)/i.test(r))return!0}return!!/am\/pm|a\/p/i.test(r)||(!!/\[h+\]|\[m+\]|\[s+\]/i.test(e)||(!!/y{1,4}/.test(r)||(!!/d{1,4}/.test(r)||!!/m{3,}/.test(r))))}const KM=["January","February","March","April","May","June","July","August","September","October","November","December"],ZM=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],eN=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],tN=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const nN=["000000","FFFFFF","FF0000","00FF00","0000FF","FFFF00","FF00FF","00FFFF","000000","FFFFFF","FF0000","00FF00","0000FF","FFFF00","FF00FF","00FFFF","800000","008000","000080","808000","800080","008080","C0C0C0","808080","9999FF","993366","FFFFCC","CCFFFF","660066","FF8080","0066CC","CCCCFF","000080","FF00FF","FFFF00","00FFFF","800080","800000","008080","0000FF","00CCFF","CCFFFF","CCFFCC","FFFF99","99CCFF","FF99CC","CC99FF","FFCC99","3366FF","33CCCC","99CC00","FFCC00","FF9900","FF6600","666699","969696","003366","339966","003300","333300","993300","993366","333399","333333"],rN="http://schemas.microsoft.com/office/spreadsheetml/2022/featurepropertybag",iN="{C7286773-470A-42A8-94C5-96B5CB345126}",oN="xl/featurePropertyBag/featurePropertyBag.xml";const aN={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",5:"$#,##0_);\\($#,##0\\)",6:"$#,##0_);[Red]\\($#,##0\\)",7:"$#,##0.00_);\\($#,##0.00\\)",8:"$#,##0.00_);[Red]\\($#,##0.00\\)",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yyyy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yyyy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@"};function sN(e){const t=wE(e),n=new Map,r=[],i=[],o=[],a=[],s=[];for(const e of t.children){if("string"==typeof e)continue;switch(e.local||e.tag){case"numFmts":cN(e,n);break;case"fonts":uN(e,r);break;case"fills":hN(e,i);break;case"borders":yN(e,o);break;case"cellXfs":AN(e,a);break;case"dxfs":xN(e,s)}}const l=function(e){for(const t of e.children)if("string"!=typeof t&&"colors"===(t.local||t.tag))for(const e of t.children){if("string"==typeof e)continue;if("indexedColors"!==(e.local||e.tag))continue;const t=[];for(const n of e.children){if("string"==typeof n)continue;if("rgbColor"!==(n.local||n.tag))continue;const e=n.attrs.rgb;e&&t.push(8===e.length?e.slice(2):e)}if(t.length>0)return t}return nN}(t);for(const e of[r,i,o,s])lN(e,l);return{numFmts:n,fonts:r,fills:i,borders:o,cellXfs:a,dxfs:s}}function lN(e,t){if(null===e||"object"!=typeof e)return;if(Array.isArray(e)){for(const n of e)lN(n,t);return}const n=e;if("number"==typeof n.indexed&&"string"!=typeof n.rgb){const e=t[n.indexed];e&&(n.rgb=e)}for(const e of Object.values(n))lN(e,t)}function cN(e,t){for(const n of e.children){if("string"==typeof n)continue;if("numFmt"===(n.local||n.tag)){const e=Number(n.attrs.numFmtId),r=n.attrs.formatCode??"";Number.isNaN(e)||t.set(e,r)}}}function uN(e,t){for(const n of e.children){if("string"==typeof n)continue;"font"===(n.local||n.tag)&&t.push(dN(n))}}function dN(e){const t={};for(const n of e.children){if("string"==typeof n)continue;switch(n.local||n.tag){case"b":t.bold="0"!==n.attrs.val&&"false"!==n.attrs.val;break;case"i":t.italic="0"!==n.attrs.val&&"false"!==n.attrs.val;break;case"u":{const e=n.attrs.val;t.underline="double"===e?"double":"singleAccounting"===e?"singleAccounting":"doubleAccounting"!==e||"doubleAccounting";break}case"strike":t.strikethrough="0"!==n.attrs.val&&"false"!==n.attrs.val;break;case"sz":n.attrs.val&&(t.size=Number(n.attrs.val));break;case"name":n.attrs.val&&(t.name=n.attrs.val);break;case"color":t.color=fN(n);break;case"vertAlign":"superscript"!==n.attrs.val&&"subscript"!==n.attrs.val||(t.vertAlign=n.attrs.val);break;case"family":n.attrs.val&&(t.family=Number(n.attrs.val));break;case"charset":n.attrs.val&&(t.charset=Number(n.attrs.val));break;case"scheme":"major"!==n.attrs.val&&"minor"!==n.attrs.val&&"none"!==n.attrs.val||(t.scheme=n.attrs.val)}}return t}function fN(e){const t={};if(e.attrs.rgb){const n=e.attrs.rgb;t.rgb=8===n.length?n.slice(2):n}return e.attrs.theme&&(t.theme=Number(e.attrs.theme)),e.attrs.tint&&(t.tint=Number(e.attrs.tint)),e.attrs.indexed&&(t.indexed=Number(e.attrs.indexed)),t}function hN(e,t){for(const n of e.children){if("string"==typeof n)continue;"fill"===(n.local||n.tag)&&t.push(pN(n))}}function pN(e){for(const t of e.children){if("string"==typeof t)continue;const e=t.local||t.tag;if("patternFill"===e)return gN(t);if("gradientFill"===e)return mN(t)}return{type:"pattern",pattern:"none"}}function gN(e){const t={type:"pattern",pattern:e.attrs.patternType??"none"};for(const n of e.children){if("string"==typeof n)continue;const e=n.local||n.tag;"fgColor"===e?t.fgColor=fN(n):"bgColor"===e&&(t.bgColor=fN(n))}return t}function mN(e){const t=e.attrs.degree?Number(e.attrs.degree):void 0,n=[];for(const t of e.children){if("string"==typeof t)continue;if("stop"===(t.local||t.tag)){const e=Number(t.attrs.position??"0");for(const r of t.children){if("string"==typeof r)continue;"color"===(r.local||r.tag)&&n.push({position:e,color:fN(r)})}}}return{type:"gradient",degree:t,stops:n}}function yN(e,t){for(const n of e.children){if("string"==typeof n)continue;"border"===(n.local||n.tag)&&t.push(vN(n))}}function vN(e){const t={},n=e.attrs.diagonalUp,r=e.attrs.diagonalDown;"1"!==n&&"true"!==n||(t.diagonalUp=!0),"1"!==r&&"true"!==r||(t.diagonalDown=!0);for(const n of e.children){if("string"==typeof n)continue;const e=n.local||n.tag,r=bN(n);if(r)switch(e){case"left":t.left=r;break;case"right":t.right=r;break;case"top":t.top=r;break;case"bottom":t.bottom=r;break;case"diagonal":t.diagonal=r}}return t}function bN(e){const t=e.attrs.style;if(!t)return;const n={style:t};for(const t of e.children){if("string"==typeof t)continue;"color"===(t.local||t.tag)&&(n.color=fN(t))}return n}function AN(e,t){for(const n of e.children){if("string"==typeof n)continue;"xf"===(n.local||n.tag)&&t.push(wN(n))}}function wN(e){const t={numFmtId:Number(e.attrs.numFmtId??"0"),fontId:Number(e.attrs.fontId??"0"),fillId:Number(e.attrs.fillId??"0"),borderId:Number(e.attrs.borderId??"0")};"1"!==e.attrs.applyNumberFormat&&"true"!==e.attrs.applyNumberFormat||(t.applyNumberFormat=!0),"1"!==e.attrs.applyFont&&"true"!==e.attrs.applyFont||(t.applyFont=!0),"1"!==e.attrs.applyFill&&"true"!==e.attrs.applyFill||(t.applyFill=!0),"1"!==e.attrs.applyBorder&&"true"!==e.attrs.applyBorder||(t.applyBorder=!0),"1"!==e.attrs.applyAlignment&&"true"!==e.attrs.applyAlignment||(t.applyAlignment=!0),"1"!==e.attrs.applyProtection&&"true"!==e.attrs.applyProtection||(t.applyProtection=!0);for(const n of e.children){if("string"==typeof n)continue;const e=n.local||n.tag;"alignment"===e?t.alignment=EN(n):"protection"===e?t.protection=SN(n):"extLst"===e&&CN(n)&&(t.hasCheckboxFeature=!0)}return t}function xN(e,t){for(const n of e.children){if("string"==typeof n)continue;"dxf"===(n.local||n.tag)&&t.push(IN(n))}}function IN(e){const t={};for(const n of e.children){if("string"==typeof n)continue;switch(n.local||n.tag){case"font":t.font=dN(n);break;case"numFmt":{const e=n.attrs.formatCode;if(e)t.numFmt=e;else{const e=Number(n.attrs.numFmtId),r=Number.isNaN(e)?void 0:aN[e];r&&(t.numFmt=r)}break}case"fill":t.fill=pN(n);break;case"border":t.border=vN(n);break;case"alignment":t.alignment=EN(n)}}return t}function CN(e){for(const t of e.children){if("string"==typeof t)continue;if("ext"===(t.local||t.tag)&&t.attrs.uri===iN)return!0}return!1}function SN(e){const t={},n=e.attrs.locked;void 0!==n&&(t.locked="1"===n||"true"===n);const r=e.attrs.hidden;return void 0!==r&&(t.hidden="1"===r||"true"===r),t}function EN(e){const t={};if(e.attrs.horizontal&&(t.horizontal=e.attrs.horizontal),e.attrs.vertical&&(t.vertical=e.attrs.vertical),"1"!==e.attrs.wrapText&&"true"!==e.attrs.wrapText||(t.wrapText=!0),"1"!==e.attrs.shrinkToFit&&"true"!==e.attrs.shrinkToFit||(t.shrinkToFit=!0),e.attrs.textRotation&&(t.textRotation=Number(e.attrs.textRotation)),e.attrs.indent&&(t.indent=Number(e.attrs.indent)),e.attrs.readingOrder){const n=Number(e.attrs.readingOrder);t.readingOrder=1===n?"ltr":2===n?"rtl":"context"}return t}function kN(e,t){const n=e.cellXfs[t];if(!n)return{};const r={};if(0!==n.numFmtId){const t=e.numFmts.get(n.numFmtId)??aN[n.numFmtId];t&&(r.numFmt=t)}return n.fontId<e.fonts.length&&0!==n.fontId&&(r.font=e.fonts[n.fontId]),n.fillId<e.fills.length&&n.fillId>1&&(r.fill=e.fills[n.fillId]),n.borderId<e.borders.length&&0!==n.borderId&&(r.border=e.borders[n.borderId]),n.alignment&&(r.alignment=n.alignment),n.protection&&(r.protection=n.protection),r}function BN(e,t){const n=e.cellXfs[t];if(!n)return!1;const r=n.numFmtId,i=e.numFmts.get(r);if(i)return XM(i);if(function(e){return JM.has(e)}(r))return!0;const o=aN[r];return!!o&&XM(o)}function FN(e){return void 0===e?void 0:{...e}}function DN(e){const t={...e};return e.color&&(t.color=FN(e.color)),t}function MN(e){if("gradient"===e.type)return{...e,stops:e.stops.map(e=>({...e,color:{...e.color}}))};const t={...e};return e.fgColor&&(t.fgColor=FN(e.fgColor)),e.bgColor&&(t.bgColor=FN(e.bgColor)),t}function NN(e){if(void 0===e)return;const t={...e};return e.color&&(t.color=FN(e.color)),t}function TN(e){const t={...e};for(const n of["top","right","bottom","left","diagonal"])e[n]&&(t[n]=NN(e[n]));return t}function QN(e){const t={...e};return e.font&&(t.font=DN(e.font)),e.fill&&(t.fill=MN(e.fill)),e.border&&(t.border=TN(e.border)),e.alignment&&(t.alignment={...e.alignment}),e.protection&&(t.protection={...e.protection}),t}function RN(e){return"string"==typeof e?function(e){const t=e.split(":"),n=BT(t[0]),r=t.length>1?BT(t[1]):n;return{startRow:n.row,startCol:n.col,endRow:r.row,endCol:r.col}}(e):e}function LN(e){return"object"==typeof e&&null!==e&&"string"==typeof e.hyperlink&&"string"==typeof e.text}function PN(e){return LN(e)?e.text:e}function ON(e){return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=63744&&e<=64255||e>=44032&&e<=55215||e>=12448&&e<=12543||e>=12352&&e<=12447||e>=12288&&e<=12351||e>=65280&&e<=65376||e>=65504&&e<=65510}function UN(e){const t=e.indexOf(".");if(-1===t)return 0;let n=0;for(let r=t+1;r<e.length&&("0"===e[r]||"#"===e[r]);r++)n++;return n}function $N(e,t){if(!t.includes(","))return e;const n=e.split(".");let r=n[0];const i=r.startsWith("-");i&&(r=r.slice(1));let o="";for(let e=0;e<r.length;e++)e>0&&(r.length-e)%3==0&&(o+=","),o+=r[e];return i&&(o="-"+o),void 0!==n[1]&&(o+="."+n[1]),o}function HN(e){let t=0;for(const n of e){const e=n.codePointAt(0);void 0!==e&&ON(e)?t+=2:t+=1}return t}function zN(e,t){if(null==e)return 0;if("boolean"==typeof e)return e?5:6;if("string"==typeof e){if(0===e.length)return 0;if(e.includes("\n")){const t=e.split("\n");let n=0;for(const e of t){const t=HN(e);t>n&&(n=t)}return n}return HN(e)}if("number"==typeof e){if(t){const n=function(e,t){const n=t.trim().split(";");let r;if(e>0?r=n[0]:e<0&&n.length>1?(r=n[1],e=Math.abs(e)):r=0===e&&n.length>2?n[2]:n[0],r=r.replace(/\[[^\]]*\]/g,""),r=r.replace(/\\./g,e=>e[1]),r=r.replace(/"([^"]*)"/g,"$1"),r.includes("%")){const t=UN(r.replace(/%/g,""));return $N((100*e).toFixed(t),r)+"%"}const i=UN(r);return $N(e.toFixed(i),r)}(e,t),r=function(e){let t=0;const n=e.split(";")[0].replace(/\[[^\]]*\]/g,"");for(let e=0;e<n.length;e++){const r=n[e];if('"'===r)for(e++;e<n.length&&'"'!==n[e];)t++,e++;else"\\"===r?(t++,e++):"$"!==r&&"€"!==r&&"£"!==r&&"¥"!==r||t++}return t}(t);return HN(n)+r}return HN(String(e))}if(e instanceof Date){if(t){const n=function(e,t,n){const r=e.getUTCFullYear(),i=e.getUTCMonth(),o=e.getUTCDate(),a=e.getUTCDay();let s=e.getUTCHours();const l=e.getUTCMinutes(),c=e.getUTCSeconds(),u=e.getUTCMilliseconds();let d="",f=s;/am\/pm|a\/p/i.test(t)&&(d=s>=12?"PM":"AM",f=s%12,0===f&&(f=12));const h=function(e){const t=[];let n=0;for(;n<e.length;){if("["===e[n]&&"$"===e[n+1]){const t=e.indexOf("]",n);if(-1!==t){n=t+1;continue}}if("["===e[n]){const r=e.indexOf("]",n);if(-1!==r){const i=e.slice(n+1,r);if(/^h+$/i.test(i)||/^m+$/i.test(i)||/^s+$/i.test(i)){t.push(e.slice(n,r+1)),n=r+1;continue}n=r+1;continue}}if('"'===e[n]){let r="";for(n++;n<e.length&&'"'!==e[n];)r+=e[n],n++;n++,t.push(r);continue}if("\\"===e[n]){n++,n<e.length&&(t.push(e[n]),n++);continue}if(/^am\/pm/i.test(e.slice(n))){t.push(e.slice(n,n+5)),n+=5;continue}if(/^a\/p/i.test(e.slice(n))){t.push(e.slice(n,n+3)),n+=3;continue}if("."===e[n]&&n+1<e.length&&"0"===e[n+1]){let r=".",i=n+1;for(;i<e.length&&"0"===e[i];)r+="0",i++;t.push(r),n=i;continue}const r=e[n].toLowerCase();if("ymdhsn".includes(r)){let i="";const o=r;for(;n<e.length&&e[n].toLowerCase()===o;)i+=e[n],n++;t.push(i);continue}t.push(e[n]),n++}return t}(t),p=void 0!==n&&n>0?n:0,g=Math.floor(24*p),m=Math.floor(24*p*60),y=Math.floor(24*p*60*60),v=Array.from({length:h.length},()=>!1);for(let e=0;e<h.length;e++){const t=h[e].toLowerCase();if("m"!==t&&"mm"!==t)continue;let n=!1;for(let t=e-1;t>=0;t--){const e=h[t].toLowerCase();if("h"===e||"hh"===e||/^\[h+\]$/.test(e)){n=!0;break}if(/^[ymdhs]+$/.test(e)||/^\[[ms]+\]$/.test(e)||"am/pm"===e||"a/p"===e)break}let r=!1;for(let t=e+1;t<h.length;t++){const e=h[t].toLowerCase();if("s"===e||"ss"===e){r=!0;break}if(/^[ymdh]+$/.test(e)||"am/pm"===e||"a/p"===e)break}v[e]=n||r}let b="";for(let e=0;e<h.length;e++){const t=h[e],n=t.toLowerCase();if(t.startsWith("[")&&t.endsWith("]")){const e=n.slice(1,-1);/^h+$/.test(e)?b+=String(g).padStart(e.length,"0"):/^m+$/.test(e)?b+=String(m).padStart(e.length,"0"):/^s+$/.test(e)&&(b+=String(y).padStart(e.length,"0"));continue}switch(n){case"yyyy":b+=String(r);break;case"yy":b+=String(r%100).padStart(2,"0");break;case"mmmm":b+=KM[i];break;case"mmm":b+=ZM[i];break;case"mm":v[e]?b+=String(l).padStart(2,"0"):b+=String(i+1).padStart(2,"0");break;case"m":v[e]?b+=String(l):b+=String(i+1);break;case"dddd":b+=eN[a];break;case"ddd":b+=tN[a];break;case"dd":b+=String(o).padStart(2,"0");break;case"d":b+=String(o);break;case"hh":b+=String(f).padStart(2,"0");break;case"h":b+=String(f);break;case"ss":b+=String(c).padStart(2,"0");break;case"s":b+=String(c);break;case".0":case".00":case".000":{const e=n.length-1;b+="."+String(u).padStart(3,"0").slice(0,e)}break;case"am/pm":b+=d;break;case"a/p":b+=d.charAt(0);break;default:b+=t}}return b}(e,t);return HN(n)}return HN(`${e.getUTCFullYear()}-${String(e.getUTCMonth()+1).padStart(2,"0")}-${String(e.getUTCDate()).padStart(2,"0")}`)}return 0}function qN(e,t){const n=t?.minWidth??8,r=t?.maxWidth??255,i=t?.padding??2,o=!0===t?.font?.bold;let a=0;for(const n of e){const e=zN(n,t?.numFmt);e>a&&(a=e)}let s=1.1*a;return o&&(s*=1.05),s+=i,s=Math.ceil(2*s)/2,s<n&&(s=n),s>r&&(s=r),s}const jN="XLDAPR",WN="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}",_N="xl/metadata.xml";function VN(e){for(const t of IE(e))if("extLst"===t.local)for(const e of IE(t))if("ext"===e.local&&(e.attrs.uri??"").toLowerCase()===WN)for(const t of IE(e)){if("dynamicArrayProperties"!==t.local)continue;const e=t.attrs.fDynamic;return"0"!==e&&"false"!==e}return!0}function YN(e){let t=0;for(let n=e.length-1;n>=0;n--){t=t>>14&1|t<<1&32767,t^=e.charCodeAt(n)}return t=t>>14&1|t<<1&32767,t^=e.length,t^=52811,t.toString(16).toUpperCase().padStart(4,"0")}const GN=/[[\]:*?/\\]/;function JN(e,t){const n=`sheet ${t+1}`;if("string"!=typeof e||0===e.length)throw new rE(`Sheet name is empty (${n}); Excel requires a name`);if(e.length>31)throw new rE(`Sheet name "${e}" is ${e.length} characters (${n}); Excel allows at most 31`);const r=e.match(GN);if(r)throw new rE(`Sheet name "${e}" contains ${JSON.stringify(r[0])} (${n}); Excel forbids [ ] : * ? / \\ in sheet names`);if(e.startsWith("'")||e.endsWith("'"))throw new rE(`Sheet name "${e}" starts or ends with an apostrophe (${n}); Excel forbids it because it breaks quoted range references`);if("history"===e.toLowerCase())throw new rE(`Sheet name "${e}" is reserved by Excel for change tracking (${n})`)}function XN(e){return!("object"!=typeof e||null===e||e instanceof Date||Array.isArray(e)||LN(e))}function KN(e){return XN(e)?e.value??null:e}function ZN(e){let t=!1;const n=e.map(e=>{const n=function(e){const t=e.rows;if(!t)return e;let n=!1;for(const e of t){for(const t of e)if(XN(t)){n=!0;break}if(n)break}if(!n)return e;const r=[],i=new Map;for(let e=0;e<t.length;e++){const n=t[e],o=[];for(let t=0;t<n.length;t++){const r=n[t];XN(r)?(i.set(`${e},${t}`,r),o.push(r.value??null)):o.push(r)}r[e]=o}if(e.cells)for(const[t,n]of e.cells)i.set(t,n);return{...e,rows:r,cells:i}}(e);return n!==e&&(t=!0),n});return t?n:e}const eT="http://schemas.openxmlformats.org/spreadsheetml/2006/main";function tT(e){!function(e){if(!Number.isInteger(e)||e<0||e>CD)throw new rE(`Column index ${e} is not a valid 0-based column (Excel allows 0..16383)`)}(e);let t="",n=e;do{t=String.fromCharCode(65+n%26)+t,n=Math.floor(n/26)-1}while(n>=0);return t}function nT(e,t){const n={r:e+1};return void 0!==t?.height&&(n.ht=t.height,n.customHeight=1),t?.hidden&&(n.hidden=1),t?.outlineLevel&&(n.outlineLevel=t.outlineLevel),t?.collapsed&&(n.collapsed=1),n}function rT(e,t){return tT(t)+(e+1)}function iT(e,t,n,r){return`${rT(e,t)}:${rT(n,r)}`}function oT(e){const t=e.hyperlink.startsWith("#")?{target:"",location:e.hyperlink.slice(1),display:e.text}:{target:e.hyperlink,display:e.text};return void 0!==e.tooltip&&(t.tooltip=e.tooltip),t}const aT="yyyy-mm-dd",sT=Object.freeze({numFmt:aT}),lT=new WeakMap,cT=new Set(["#VALUE!","#REF!","#N/A","#NAME?","#NULL!","#DIV/0!","#NUM!","#GETTING_DATA","#SPILL!","#CALC!"]);function uT(e,t,n,r,i,o,a){const s="1904"===r,l=fT(e),c=l.length;let u=0;for(const e of l)e.length>u&&(u=e.length);e.columns&&e.columns.length>u&&(u=e.columns.length);const d=[];{const t=[];if(e.view?.tabColor&&t.push(XE("tabColor",vT(e.view.tabColor))),e.outlineProperties){const n={};void 0!==e.outlineProperties.summaryBelow&&(n.summaryBelow=e.outlineProperties.summaryBelow?1:0),void 0!==e.outlineProperties.summaryRight&&(n.summaryRight=e.outlineProperties.summaryRight?1:0),t.push(XE("outlinePr",n))}e.pageSetup?.fitToPage&&t.push(XE("pageSetUpPr",{fitToPage:1})),t.length>0&&d.push(ZE("sheetPr",void 0,t))}if(c>0||u>0){const e=c>0?c-1:0,t=u>0?u-1:0;d.push(XE("dimension",{ref:iT(0,0,e,t)}))}const f=[];if(e.freezePane){const t=e.freezePane,n=rT(t.rows??0,t.columns??0),r={};t.columns&&t.columns>0&&(r.xSplit=t.columns),t.rows&&t.rows>0&&(r.ySplit=t.rows),r.topLeftCell=n,r.state="frozen";const i=t.columns&&t.columns>0,o=t.rows&&t.rows>0;r.activePane=i&&o?"bottomRight":i?"topRight":"bottomLeft",f.push(XE("pane",r))}else if(e.splitPane){const t=e.splitPane,n={},r=void 0!==t.xSplit&&t.xSplit>0,i=void 0!==t.ySplit&&t.ySplit>0;r&&(n.xSplit=t.xSplit),i&&(n.ySplit=t.ySplit),n.topLeftCell="A1",n.state="split",n.activePane=r&&i?"bottomRight":r?"topRight":"bottomLeft",f.push(XE("pane",n))}const h={workbookViewId:0};e.view&&(!1===e.view.showGridLines&&(h.showGridLines=0),!1===e.view.showRowColHeaders&&(h.showRowColHeaders=0),void 0!==e.view.zoomScale&&(h.zoomScale=e.view.zoomScale),e.view.rightToLeft&&(h.rightToLeft=1)),d.push(ZE("sheetViews",void 0,[f.length>0?ZE("sheetView",h,f):XE("sheetView",h)]));const p={defaultRowHeight:e.defaultRowHeight??15};if(void 0!==e.defaultRowHeight&&(p.customHeight=1),void 0!==e.defaultColWidth&&(p.defaultColWidth=e.defaultColWidth),d.push(XE("sheetFormatPr",p)),e.columns&&e.columns.length>0){const n=[];for(let r=0;r<e.columns.length;r++){const i=e.columns[r];let o=i.width;if(i.autoWidth&&void 0===o){const e=[];for(const t of l)t&&r<t.length&&t[r]&&e.push(t[r].value);o=qN(e,{font:i.style?.font,numFmt:i.numFmt??i.style?.numFmt})}const a=i.numFmt&&!i.style?.numFmt?{...i.style,numFmt:i.numFmt}:i.style??void 0,s=a?t.addStyle(a):0;if(void 0!==o||i.hidden||i.outlineLevel||i.collapsed||0!==s){const e={min:r+1,max:r+1};void 0!==o&&(e.width=o,e.customWidth=!0),0!==s&&(e.style=s),i.hidden&&(e.hidden=!0),i.outlineLevel&&(e.outlineLevel=i.outlineLevel),i.collapsed&&(e.collapsed=!0),n.push(XE("col",e))}}n.length>0&&d.push(ZE("cols",void 0,n))}const g=[];let m=!1;for(let r=0;r<c;r++){const i=l[r],a=e.rowDefs?.get(r),c=a&&(void 0!==a.height||a.hidden||a.outlineLevel||a.collapsed);if(!(i&&0!==i.length||c))continue;const u=[];let d=!1;if(i)for(let e=0;e<i.length;e++){const a=i[e];if(!a)continue;a.formulaDynamic&&void 0!==a.formula&&null!==a.formula&&(m=!0);const l=pT(r,e,a,t,n,s,o);l&&(u.push(l),d=!0)}if(d||c){const e=nT(r,a);d?g.push(ZE("row",e,u)):g.push(XE("row",e))}}d.push(ZE("sheetData",void 0,g.length>0?g:"")),e.protection&&d.push(function(e){const t={};e.password&&(t.password=YN(e.password));!1!==e.sheet&&(t.sheet=1);e.objects&&(t.objects=1);e.scenarios&&(t.scenarios=1);const n=[["selectLockedCells","selectLockedCells"],["selectUnlockedCells","selectUnlockedCells"],["formatCells","formatCells"],["formatColumns","formatColumns"],["formatRows","formatRows"],["insertColumns","insertColumns"],["insertRows","insertRows"],["insertHyperlinks","insertHyperlinks"],["deleteColumns","deleteColumns"],["deleteRows","deleteRows"],["sort","sort"],["autoFilter","autoFilter"],["pivotTables","pivotTables"]];for(const[r,i]of n){const n=e[r];void 0!==n&&"boolean"==typeof n&&(t[i]=n?0:1)}return XE("sheetProtection",t)}(e.protection)),e.autoFilter&&d.push(function(e){if(e.columns&&e.columns.length>0){const t=[];for(const n of e.columns)if(n.filters&&n.filters.length>0){const e=n.filters.map(e=>XE("filter",{val:e}));t.push(ZE("filterColumn",{colId:n.colIndex},[ZE("filters",void 0,e)]))}return ZE("autoFilter",{ref:e.range},t)}return XE("autoFilter",{ref:e.range})}(e.autoFilter));const y=function(e){if(e)return e.some(e=>"string"==typeof e)?e.map(RN):e}(e.merges);if(y&&y.length>0){const e=y.map(e=>XE("mergeCell",{ref:iT(e.startRow,e.startCol,e.endRow,e.endCol)}));d.push(ZE("mergeCells",{count:y.length},e))}e.conditionalRules&&e.conditionalRules.length>0&&d.push(...function(e,t){const n=new Map;for(const t of e){const e=n.get(t.range);e?e.push(t):n.set(t.range,[t])}const r=[];for(const[e,i]of n){const n=[];for(const e of i)n.push(AT(e,t));r.push(ZE("conditionalFormatting",{sqref:e},n))}return r}(e.conditionalRules,t)),e.dataValidations&&e.dataValidations.length>0&&d.push(function(e){const t=[];for(const n of e){const e={type:n.type,sqref:n.range};n.operator&&(e.operator=n.operator),n.allowBlank&&(e.allowBlank=1),n.showInputMessage&&(e.showInputMessage=1),n.showErrorMessage&&(e.showErrorMessage=1),n.errorStyle&&(e.errorStyle=n.errorStyle),n.inputTitle&&(e.promptTitle=n.inputTitle),n.inputMessage&&(e.prompt=n.inputMessage),n.errorTitle&&(e.errorTitle=n.errorTitle),n.errorMessage&&(e.error=n.errorMessage);const r=[];if("list"===n.type&&n.values&&n.values.length>0){const e=`"${n.values.join(",")}"`;r.push(ZE("formula1",void 0,YE(e)))}else void 0!==n.formula1&&r.push(ZE("formula1",void 0,YE(n.formula1)));void 0!==n.formula2&&r.push(ZE("formula2",void 0,YE(n.formula2))),r.length>0?t.push(ZE("dataValidation",e,r)):t.push(XE("dataValidation",e))}return ZE("dataValidations",{count:e.length},t)}(e.dataValidations));const{xml:v,relationships:b}=function(e,t){const n=t??fT(e),r=[],i=[];let o=1;for(let e=0;e<n.length;e++){const t=n[e];for(let n=0;n<t.length;n++){const a=t[n]?.hyperlink;if(!a)continue;const s={ref:rT(e,n)};if(a.location)s.location=a.location;else if(a.target){const e="rId"+o++;s["r:id"]=e,i.push({id:e,target:a.target})}a.tooltip&&(s.tooltip=a.tooltip),a.display&&(s.display=a.display),r.push(XE("hyperlink",s))}}if(0===r.length)return{xml:"",relationships:[]};return{xml:ZE("hyperlinks",void 0,r),relationships:i}}(e,l);v&&d.push(v);const A=function(e){if(!e)return"";const t={};e.showGridLines&&(t.gridLines=1);e.showRowColHeaders&&(t.headings=1);e.horizontalCentered&&(t.horizontalCentered=1);e.verticalCentered&&(t.verticalCentered=1);return 0===Object.keys(t).length?"":XE("printOptions",t)}(e.pageSetup);if(A&&d.push(A),d.push(function(e){const t=e??{};return XE("pageMargins",{left:t.left??yT.left,right:t.right??yT.right,top:t.top??yT.top,bottom:t.bottom??yT.bottom,header:t.header??yT.header,footer:t.footer??yT.footer})}(e.pageSetup?.margins)),e.pageSetup&&d.push(function(e){const t={};if(void 0!==e.paperSize){const n=function(e){if("number"==typeof e)return Number.isInteger(e)&&e>0?e:void 0;return gT[e]}(e.paperSize);void 0!==n&&(t.paperSize=n)}e.orientation&&(t.orientation=e.orientation);void 0!==e.scale&&(t.scale=e.scale);e.fitToPage&&(void 0!==e.fitToWidth&&(t.fitToWidth=e.fitToWidth),void 0!==e.fitToHeight&&(t.fitToHeight=e.fitToHeight));void 0!==e.paperWidth&&(t.paperWidth=e.paperWidth);void 0!==e.paperHeight&&(t.paperHeight=e.paperHeight);void 0!==e.firstPageNumber&&(t.firstPageNumber=e.firstPageNumber);const n=e.useFirstPageNumber??(void 0!==e.firstPageNumber||void 0);void 0!==n&&(t.useFirstPageNumber=n?1:0);void 0!==e.pageOrder&&"downThenOver"!==e.pageOrder&&(t.pageOrder=e.pageOrder);e.blackAndWhite&&(t.blackAndWhite=1);e.draft&&(t.draft=1);void 0!==e.cellComments&&"none"!==e.cellComments&&(t.cellComments=e.cellComments);void 0!==e.errors&&"displayed"!==e.errors&&(t.errors=e.errors);void 0!==e.copies&&(t.copies=e.copies);void 0!==e.horizontalDpi&&(t.horizontalDpi=e.horizontalDpi);void 0!==e.verticalDpi&&(t.verticalDpi=e.verticalDpi);!1===e.usePrinterDefaults&&(t.usePrinterDefaults=0);if(0===Object.keys(t).length)return"";return XE("pageSetup",t)}(e.pageSetup)),e.headerFooter&&d.push(function(e){const t={};e.differentOddEven&&(t.differentOddEven=1);e.differentFirst&&(t.differentFirst=1);const n=[];e.oddHeader&&n.push(ZE("oddHeader",void 0,YE(e.oddHeader)));e.oddFooter&&n.push(ZE("oddFooter",void 0,YE(e.oddFooter)));e.evenHeader&&n.push(ZE("evenHeader",void 0,YE(e.evenHeader)));e.evenFooter&&n.push(ZE("evenFooter",void 0,YE(e.evenFooter)));e.firstHeader&&n.push(ZE("firstHeader",void 0,YE(e.firstHeader)));e.firstFooter&&n.push(ZE("firstFooter",void 0,YE(e.firstFooter)));if(0===n.length)return"";return ZE("headerFooter",Object.keys(t).length>0?t:void 0,n)}(e.headerFooter)),e.rowBreaks&&e.rowBreaks.length>0){const t=[...e.rowBreaks].sort((e,t)=>e-t),n=t.map(e=>XE("brk",{id:e+1,max:16383,man:1}));d.push(ZE("rowBreaks",{count:t.length,manualBreakCount:t.length},n))}if(e.colBreaks&&e.colBreaks.length>0){const t=[...e.colBreaks].sort((e,t)=>e-t),n=t.map(e=>XE("brk",{id:e+1,max:1048575,man:1}));d.push(ZE("colBreaks",{count:t.length,manualBreakCount:t.length},n))}let w=null,x=b.length+1;const I=e.images&&e.images.length>0,C=e.textBoxes&&e.textBoxes.length>0,S=e.charts&&e.charts.length>0,E=d.length;(I||C||S)&&(w=`rId${x}`,x++,d.push(XE("drawing",{"r:id":w})));let k=null,B=null,F=!1;if(e.cells)for(const[,t]of e.cells)if(t.comment){F=!0;break}F&&(k=`rId${x}`,x++,B=`rId${x}`,x++,d.push(XE("legacyDrawing",{"r:id":k})));let D=null;e.backgroundImage&&(D=`rId${x}`,x++,d.push(XE("picture",{"r:id":D})));const M=[];if(e.tables&&e.tables.length>0&&void 0!==i){const t=[];for(let n=0;n<e.tables.length;n++){const e=`rId${x}`;x++;const r=i+n;M.push({rId:e,globalTableIndex:r}),t.push(XE("tablePart",{"r:id":e}))}d.push(ZE("tableParts",{count:e.tables.length},t))}e.sparklines&&e.sparklines.length>0&&d.push(function(e){const t=[];let n=1;for(const r of e){const e={},i=r.type??"line";"line"!==i&&(e.type=i),e.displayEmptyCellsAs="gap";const o=`{00000000-0000-0000-0000-${String(n++).padStart(12,"0")}}`;e["xr2:uid"]=o,r.markers&&(e.markers="1");const a=[],s=r.color??"376092",l=6===s.length?`FF${s}`:s;a.push(XE("x14:colorSeries",{rgb:l}));const c=ZE("x14:sparkline",void 0,[ZE("xm:f",void 0,r.dataRange),ZE("xm:sqref",void 0,r.location)]);a.push(ZE("x14:sparklines",void 0,[c])),t.push(ZE("x14:sparklineGroup",e,a))}const r=ZE("x14:sparklineGroups",{"xmlns:xm":xT},t),i=ZE("ext",{uri:CT,"xmlns:x14":wT,"xmlns:xr2":IT},[r]);return ZE("extLst",void 0,[i])}(e.sparklines));const N=[];if(e.pivotTables&&e.pivotTables.length>0&&void 0!==a)for(let t=0;t<e.pivotTables.length;t++){const e=`rId${x}`;x++,N.push({rId:e,globalPivotIndex:a+t})}const T=ek("worksheet",{xmlns:eT,"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},d);return{xml:T,drawingInsertOffset:ST(T,d,E),hyperlinkRelationships:b,drawingRId:w,legacyDrawingRId:k,commentsRId:B,hasComments:F,tables:M,pictureRId:D,pivotTables:N,hasDynamicArray:m}}function dT(e){if(e)return e.numFmt&&!e.style?.numFmt?{...e.style,numFmt:e.numFmt}:e.style}function fT(e){const t=[];if(e.data&&e.columns){const n=e.columns.map(e=>e.key);if(e.columns.some(e=>e.header)){const n=[];for(let t=0;t<e.columns.length;t++){const r=e.columns[t];n.push({value:r.header??r.key??null,style:r.style})}t.push(n)}for(const r of e.data){const i=[];for(let t=0;t<n.length;t++){const o=n[t],a=void 0!==o?r[o]??null:null,s={value:LN(a)?a.text:a,style:dT(e.columns[t])};LN(a)&&(s.hyperlink=oT(a)),i.push(s)}t.push(i)}}else if(e.rows)for(const n of e.rows){const r=[];for(let t=0;t<n.length;t++){const i=KN(n[t]),o=e.columns?dT(e.columns[t]):void 0;r.push(o?{value:i,style:o}:{value:i})}t.push(r)}if(e.cells)for(const[n,r]of e.cells){const[e,i]=n.split(","),o=parseInt(e,10),a=parseInt(i,10);for(;t.length<=o;)t.push([]);const s=t[o];for(;s.length<=a;)s.push(null);const l=s[a];s[a]={value:r.value??l?.value??null,style:r.style??l?.style,checkbox:r.checkbox??l?.checkbox,formula:r.formula??l?.formula,formulaResult:r.formulaResult??l?.formulaResult,formulaType:r.formulaType??l?.formulaType,formulaSharedIndex:r.formulaSharedIndex??l?.formulaSharedIndex,formulaRef:r.formulaRef??l?.formulaRef,formulaDynamic:r.formulaDynamic??l?.formulaDynamic,richText:r.richText??l?.richText,hyperlink:r.hyperlink??l?.hyperlink}}return t}function hT(e,t,n,r){return 0===t?""===n?`<c r="${e}"><v>${r}</v></c>`:`<c r="${e}" t="${n}"><v>${r}</v></c>`:""===n?`<c r="${e}" s="${t}"><v>${r}</v></c>`:`<c r="${e}" t="${n}" s="${t}"><v>${r}</v></c>`}function pT(e,t,n,r,i,o,a){const{value:s,style:l,formula:c,formulaResult:u,formulaType:d,formulaSharedIndex:f,formulaRef:h,formulaDynamic:p,richText:g}=n;let m=0,y=l;if(s instanceof Date&&(!y||!y.numFmt))if(y){const e=lT.get(y);if(e)y=e;else{const e={...y,numFmt:aT};lT.set(y,e),y=e}}else y=sT;n.checkbox?m=r.addCheckboxStyle(y):y&&(m=r.addStyle(y));const v=rT(e,t);if(g&&g.length>0){const e={r:v,t:"inlineStr"};0!==m&&(e.s=m);const t=function(e){const t=[];for(const n of e){const e=[];if(n.font){const t=bT(n.font);t.length>0&&e.push(ZE("rPr",void 0,t))}e.push(KE(n.text)),t.push(ZE("r",void 0,e))}return t}(g);return ZE("c",e,[ZE("is",void 0,t)])}if(null!=c){const e={r:v};let t;if(0!==m&&(e.s=m),p&&(e.cm=1),"shared"===d){const e={t:"shared"};void 0!==f&&(e.si=f),h&&(e.ref=h),t=""===c?XE("f",e):ZE("f",e,YE(c))}else if("array"===d){const e={t:"array"};h&&(e.ref=h),t=ZE("f",e,YE(c))}else t=ZE("f",void 0,YE(c));const n=[t];return null!=u&&("string"==typeof u?(e.t="str",n.push(ZE("v",void 0,YE(u)))):"boolean"==typeof u?(e.t="b",n.push(ZE("v",void 0,u?"1":"0"))):"number"==typeof u?Number.isFinite(u)&&n.push(ZE("v",void 0,String(u))):u instanceof Date&&n.push(ZE("v",void 0,String(GM(u,o))))),ZE("c",e,n)}if(null==s)return 0!==m?XE("c",{r:v,s:m}):null;if("string"==typeof s&&cT.has(s))return hT(v,m,"e",s);if("string"==typeof s){if(a){const e=`<is>${KE(s)}</is>`;return 0===m?`<c r="${v}" t="inlineStr">${e}</c>`:`<c r="${v}" t="inlineStr" s="${m}">${e}</c>`}return hT(v,m,"s",String(i.add(s)))}return"number"==typeof s?Number.isFinite(s)?hT(v,m,"",String(s)):0!==m?XE("c",{r:v,s:m}):null:"boolean"==typeof s?hT(v,m,"b",s?"1":"0"):s instanceof Date?hT(v,m,"",String(GM(s,o))):null}const gT={letter:1,letterSmall:2,tabloid:3,ledger:4,legal:5,statement:6,executive:7,a3:8,a4:9,a4Small:10,a5:11,b4:12,b5:13,folio:14,quarto:15,note:18,envelope9:19,envelope10:20,envelope11:21,envelope12:22,envelope14:23,cSheet:24,dSheet:25,eSheet:26,envelopeDL:27,envelopeC5:28,envelopeC3:29,envelopeC4:30,envelopeC6:31,envelopeC65:32,envelopeB4:33,envelopeB5:34,envelopeB6:35,envelopeItaly:36,envelopeMonarch:37,envelopePersonal:38,fanfoldUS:39,fanfoldGermanStd:40,fanfoldGermanLegal:41,a6:70,japanesePostcard:43,japaneseDoublePostcard:69},mT={};for(const[e,t]of Object.entries(gT))mT[t]=e;const yT={left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3};function vT(e){const t={};if(void 0!==e.rgb){const n=e.rgb;t.rgb=6===n.length?`FF${n}`:n}return void 0!==e.theme&&(t.theme=e.theme),void 0!==e.tint&&(t.tint=e.tint),void 0!==e.indexed&&(t.indexed=e.indexed),t}function bT(e){const t=[];return e.bold&&t.push(XE("b")),e.italic&&t.push(XE("i")),e.underline&&(!0===e.underline||"single"===e.underline?t.push(XE("u")):t.push(XE("u",{val:e.underline}))),e.strikethrough&&t.push(XE("strike")),e.vertAlign&&t.push(XE("vertAlign",{val:e.vertAlign})),void 0!==e.size&&t.push(XE("sz",{val:e.size})),e.color&&t.push(XE("color",vT(e.color))),e.name&&t.push(XE("rFont",{val:e.name})),void 0!==e.family&&t.push(XE("family",{val:e.family})),void 0!==e.charset&&t.push(XE("charset",{val:e.charset})),e.scheme&&t.push(XE("scheme",{val:e.scheme})),t}function AT(e,t){const n={type:e.type,priority:e.priority};e.style&&(n.dxfId=t.addDxf(e.style)),e.operator&&(n.operator=e.operator),e.stopIfTrue&&(n.stopIfTrue=!0),void 0!==e.text&&(n.text=e.text);const r=[];if(void 0!==e.formula){const t=Array.isArray(e.formula)?e.formula:[e.formula];for(const e of t)r.push(ZE("formula",void 0,YE(e)))}if("colorScale"===e.type&&e.colorScale){const t=[];for(const n of e.colorScale.cfvo){const e={type:n.type};void 0!==n.value&&(e.val=n.value),t.push(XE("cfvo",e))}for(const n of e.colorScale.colors)t.push(XE("color",{rgb:n}));r.push(ZE("colorScale",void 0,t))}if("dataBar"===e.type&&e.dataBar){const t=[];for(const n of e.dataBar.cfvo){const e={type:n.type};void 0!==n.value&&(e.val=n.value),t.push(XE("cfvo",e))}t.push(XE("color",{rgb:e.dataBar.color})),r.push(ZE("dataBar",void 0,t))}if("iconSet"===e.type&&e.iconSet){const t={iconSet:e.iconSet.iconSet};e.iconSet.reverse&&(t.reverse=!0),!1===e.iconSet.showValue&&(t.showValue=!1);const n=[];for(const t of e.iconSet.cfvo){const e={type:t.type};void 0!==t.value&&(e.val=t.value),n.push(XE("cfvo",e))}r.push(ZE("iconSet",t,n))}return r.length>0?ZE("cfRule",n,r):XE("cfRule",n)}const wT="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main",xT="http://schemas.microsoft.com/office/excel/2006/main",IT="http://schemas.microsoft.com/office/spreadsheetml/2015/revision2",CT="{05C60535-1F16-4fd2-B633-F4F36F0B64E0}";function ST(e,t,n){const r=t.join(""),i=0===r.length?e.lastIndexOf("</worksheet>"):e.indexOf(r);if(i<0)return e.lastIndexOf("</worksheet>");let o=i;for(let e=0;e<n;e++)o+=t[e].length;return o}function ET(e,t,n){if(!(e.size<SD||e.has(t)))throw new eE(`Sheet "${n??"?"}" has more than 16777216 filled cells, which is the most \`Sheet.cells\` can hold — a Map caps at 2^24 entries.\n - streamXlsxRows(input) reads it a row at a time and has no such bound.\nThe file is not damaged; it is larger than this model.`)}function kT(e,t){if(void 0===e)return!1;const n=Number(e);return!(!Number.isFinite(n)||n<=0)&&(!t.dynamicArrayCm||t.dynamicArrayCm.has(n))}function BT(e){let t=0,n=0;for(;t<e.length;){const r=e.charCodeAt(t);if(r>=65&&r<=90)n=26*n+(r-64),t++;else{if(!(r>=97&&r<=122))break;n=26*n+(r-96),t++}}n--;return{row:Number(e.slice(t))-1,col:n}}function FT(e,t){const n=Number(e??"");if(Number.isNaN(n))return t;const r=Math.trunc(n);return r<1?t:Math.min(r,16384)}function DT(e){const t=e.split(":"),n=BT(t[0]),r=t.length>1?BT(t[1]):n;return{startRow:n.row,startCol:n.col,endRow:r.row,endCol:r.col}}function MT(e,t){const n=[],r=new Map,i=[];let o,a=-1,s=-1,l=0,c=!1;function u(n,r,i){if(t.sparse)return;const o=(n+1)*(r+1),a=t.maxTotalCells??2e7;if(o>a)throw new eE(function(e,t,n,r,i,o){const a=i<=SD;return`Sheet "${e}" spans ${t} rows x ${n} columns (${r} cells, ${(r>0?100*i/r:100).toFixed(2)}% of them filled), over the ${o} limit.\n - streamXlsxRows(input) reads it a row at a time, whatever the box.\n`+(a?" - readXlsx(input, { sparse: true }) returns the cells and no grid.\n":` - \`sparse: true\` cannot help here: ${i} filled cells is past the 16777216 a Map can hold.\n`)+" - `range` or `maxRows` bound the area, if you know where the data is.\n - `maxTotalCells` raises the bound, if the sheet really is this large."}(e,n+1,r+1,o,i,a))}function d(e,t){u(Math.max(s,e),Math.max(a,t),l+1)}t.range&&(o=DT(t.range));const f=[],h=[],p=[];let g,m,y,v,b,A,w,x,I,C=!1,S=-1,E=[],k=!1,B=!1;const F=[],D=[];let M=!1,N=!1;const T=[];let Q=!1,R=!1,L=!1,P=!1,O=!1,U="",$="",H=!1,z="",q="",j=!1,W=!1,_=!1,V=!1,Y=!1,G=!1,J=!1,X="";const K=t.maxRows??0;let Z=0;const ee=new Map,te=[];let ne,re,ie,oe=!1,ae=!1,se=!1,le=!1,ce=!1,ue=!1,de=!1,fe=!1,he=!1,pe=!1,ge=!1,me=!1,ye=!1,ve=!1,be="",Ae="",we={},xe=!1,Ie="",Ce=!1,Se={},Ee=!1,ke="",Be=[],Fe=!1,De=[],Me=[],Ne=!1,Te=[],Qe="",Re=!1,Le={},Pe=[],Oe=!1,Ue=!1,$e=!1,He="",ze=0,qe=0,je="",We=-1,_e="",Ve="",Ye="",Ge=-1,Je="",Xe=!1,Ke="",Ze=[],et="";const tt={onOpenTag(e,n){const r=e.includes(":")?e.slice(e.indexOf(":")+1):e;switch(r){case"cols":oe=!0;break;case"col":if(oe){const e=FT(n.min,1),r=FT(n.max,0),i=n.width?Number(n.width):void 0,o="1"===n.hidden||"true"===n.hidden,a=n.outlineLevel?Number(n.outlineLevel):void 0,s="1"===n.collapsed||"true"===n.collapsed,l="1"===n.bestFit||"true"===n.bestFit,c=void 0!==n.style?Number(n.style):void 0,u=t.readStyles&&t.styles&&void 0!==c&&c>=0?kN(t.styles,c):void 0;for(let t=e;t<=r;t++){const e=t-1;for(;te.length<=e;)te.push({});const n={};void 0===i||Number.isNaN(i)||(n.width=i),o&&(n.hidden=!0),void 0!==a&&!Number.isNaN(a)&&a>0&&(n.outlineLevel=a),s&&(n.collapsed=!0),l&&(n.autoWidth=!0),u&&Object.keys(u).length>0&&(n.style=QN(u)),Object.keys(n).length>0&&(te[e]=n)}}break;case"sheetFormatPr":{const e=n.defaultRowHeight,t=n.defaultColWidth;if(void 0!==e){const t=Number(e);Number.isFinite(t)&&t>0&&15!==t&&(ne=t)}if(void 0!==t){const e=Number(t);Number.isFinite(e)&&e>0&&(re=e)}break}case"sheetData":ae=!0;break;case"row":if(ae){if(K>0&&Z>=K)break;if(se=!0,ze=Number(n.r)||ze+1,qe=0,n.ht&&("1"===n.customHeight||"true"===n.customHeight)){const e=Number(n.r)-1,t=Number(n.ht);if(!Number.isNaN(e)&&!Number.isNaN(t)){const n=ee.get(e)??{};n.height=t,ee.set(e,n)}}if("1"===n.hidden||"true"===n.hidden){const e=Number(n.r)-1;if(!Number.isNaN(e)){const t=ee.get(e)??{};t.hidden=!0,ee.set(e,t)}}if(n.outlineLevel){const e=Number(n.r)-1,t=Number(n.outlineLevel);if(!Number.isNaN(e)&&!Number.isNaN(t)&&t>0){const n=ee.get(e)??{};n.outlineLevel=t,ee.set(e,n)}}if("1"===n.collapsed||"true"===n.collapsed){const e=Number(n.r)-1;if(!Number.isNaN(e)){const t=ee.get(e)??{};t.collapsed=!0,ee.set(e,t)}}}break;case"c":se&&(le=!0,He=n.r??"",je=n.t??"",We=n.s?Number(n.s):-1,_e="",Ve="",Ye="",Ge=-1,Je="",Xe=kT(n.cm,t),Ke="",Ze=[]);break;case"v":le&&(ce=!0);break;case"f":L?(P=!0,z=""):le&&(ue=!0,Ye=n.t??"",void 0!==n.si&&(Ge=Number(n.si)),n.ref&&(Je=n.ref),void 0!==n.cm&&kT(n.cm,t)&&(Xe=!0));break;case"is":le&&(de=!0);break;case"t":de&&!Oe?fe=!0:Oe&&($e=!0);break;case"r":de&&(Oe=!0,et="",ie=void 0);break;case"rPr":Oe&&(Ue=!0,ie={});break;case"sheetPr":k=!0;break;case"outlinePr":if(k){const e={};void 0!==n.summaryBelow&&(e.summaryBelow="1"===n.summaryBelow||"true"===n.summaryBelow),void 0!==n.summaryRight&&(e.summaryRight="1"===n.summaryRight||"true"===n.summaryRight),Object.keys(e).length>0&&(v=e)}break;case"pageSetUpPr":k&&(B="1"===n.fitToPage||"true"===n.fitToPage);break;case"tabColor":k&&(y||(y={}),y.tabColor=function(e){const t={};if(e.rgb){const n=e.rgb;t.rgb=8===n.length?n.slice(2):n}e.theme&&(t.theme=Number(e.theme));e.tint&&(t.tint=Number(e.tint));e.indexed&&(t.indexed=Number(e.indexed));return t}(n));break;case"sheetView":if(!ae){if(y||(y={}),"0"!==n.showGridLines&&"false"!==n.showGridLines||(y.showGridLines=!1),"0"!==n.showRowColHeaders&&"false"!==n.showRowColHeaders||(y.showRowColHeaders=!1),n.zoomScale){const e=Number(n.zoomScale);Number.isNaN(e)||(y.zoomScale=e)}"1"!==n.rightToLeft&&"true"!==n.rightToLeft||(y.rightToLeft=!0)}break;case"pane":if(!ae){const e=n.state;if("frozen"===e||"frozenSplit"===e){const e=Number(n.xSplit||"0"),t=Number(n.ySplit||"0");(e>0||t>0)&&(b={},e>0&&(b.columns=e),t>0&&(b.rows=t))}else if("split"===e){const e=Number(n.xSplit||"0"),t=Number(n.ySplit||"0");(e>0||t>0)&&(A={},e>0&&(A.xSplit=e),t>0&&(A.ySplit=t))}}break;case"sheetProtection":m=function(e){const t={};"1"!==e.sheet&&"true"!==e.sheet||(t.sheet=!0);"1"!==e.objects&&"true"!==e.objects||(t.objects=!0);"1"!==e.scenarios&&"true"!==e.scenarios||(t.scenarios=!0);const n=[["selectLockedCells","selectLockedCells"],["selectUnlockedCells","selectUnlockedCells"],["formatCells","formatCells"],["formatColumns","formatColumns"],["formatRows","formatRows"],["insertColumns","insertColumns"],["insertRows","insertRows"],["insertHyperlinks","insertHyperlinks"],["deleteColumns","deleteColumns"],["deleteRows","deleteRows"],["sort","sort"],["autoFilter","autoFilter"],["pivotTables","pivotTables"]];for(const[r,i]of n){const n=e[r];void 0!==n&&(t[i]=!("1"===n||"true"===n))}return t}(n);break;case"autoFilter":n.ref&&(g={range:n.ref},C=!0);break;case"filterColumn":C&&void 0!==n.colId&&(S=Number(n.colId),E=[]);break;case"filter":C&&S>=0&&void 0!==n.val&&E.push(n.val);break;case"mergeCells":he=!0;break;case"mergeCell":he&&n.ref&&i.push(DT(n.ref));break;case"hyperlinks":pe=!0;break;case"hyperlink":if(pe&&n.ref){const e={ref:n.ref},t=n["r:id"]??n["R:id"];t&&(e.rId=t),n.location&&(e.location=n.location),n.tooltip&&(e.tooltip=n.tooltip),n.display&&(e.display=n.display),f.push(e)}break;case"conditionalFormatting":xe=!0,Ie=n.sqref??"";break;case"cfRule":xe&&(Ce=!0,Se={...n},Be=[],De=[],Me=[],Te=[],Qe="",Pe=[],Le={});break;case"colorScale":Ce&&(Fe=!0,De=[],Me=[]);break;case"cfvo":Fe?De.push({type:n.type??"min",value:n.val}):Ne?Te.push({type:n.type??"min",value:n.val}):Re&&Pe.push({type:n.type??"min",value:n.val});break;case"dataBar":Ce&&(Ne=!0,Te=[],Qe="");break;case"iconSet":Ce&&(Re=!0,Le={...n},Pe=[]);break;case"dataValidations":ge=!0;break;case"dataValidation":ge&&(me=!0,we={...n},be="",Ae="");break;case"formula1":me&&(ye=!0);break;case"formula2":me&&(ve=!0);break;case"pageMargins":x=function(e){const t={};e.left&&(t.left=Number(e.left));e.right&&(t.right=Number(e.right));e.top&&(t.top=Number(e.top));e.bottom&&(t.bottom=Number(e.bottom));e.header&&(t.header=Number(e.header));e.footer&&(t.footer=Number(e.footer));return t}(n);break;case"pageSetup":w={...w,...PT(n,t)};break;case"printOptions":w=function(e,t){const n=e??{},r=e=>"1"===e||"true"===e;r(t.gridLines)&&(n.showGridLines=!0);r(t.headings)&&(n.showRowColHeaders=!0);r(t.horizontalCentered)&&(n.horizontalCentered=!0);r(t.verticalCentered)&&(n.verticalCentered=!0);return n}(w,n);break;case"headerFooter":j=!0,I={},"1"!==n.differentOddEven&&"true"!==n.differentOddEven||(I.differentOddEven=!0),"1"!==n.differentFirst&&"true"!==n.differentFirst||(I.differentFirst=!0);break;case"oddHeader":j&&(W=!0,X="");break;case"oddFooter":j&&(_=!0,X="");break;case"evenHeader":j&&(V=!0,X="");break;case"evenFooter":j&&(Y=!0,X="");break;case"firstHeader":j&&(G=!0,X="");break;case"firstFooter":j&&(J=!0,X="");break;case"rowBreaks":M=!0;break;case"colBreaks":N=!0;break;case"brk":if(M||N){const e=n.id;if(e){const t=Number(e)-1;M?F.push(t):D.push(t)}}break;case"color":Fe?Me.push(n.rgb??""):Ne?Qe=n.rgb??"":Ue&&ie&<(ie,r,n);break;case"formula":Ce&&!me&&(Ee=!0,ke="");break;case"sparklineGroups":Q=!0;break;case"sparklineGroup":Q&&(R=!0,U=n.type??"line",$="",H="1"===n.markers||"true"===n.markers);break;case"colorSeries":if(R){const e=n.rgb??"";$=8===e.length?e.slice(2):e}break;case"sparkline":R&&(L=!0,z="",q="");break;default:if(L&&"sqref"===r){O=!0,q="";break}Ue&&ie&<(ie,r,n)}},onText(e){ce?_e+=e:ue?Ve+=e:Ee?ke+=e:fe?Ke+=e:$e?et+=e:ye?be+=e:ve?Ae+=e:W||_||V||Y||G||J?X+=e:P?z+=e:O&&(q+=e)},onCloseTag(e){const i=e.includes(":")?e.slice(e.indexOf(":")+1):e;switch(i){case"cols":oe=!1;break;case"sheetData":ae=!1;break;case"row":se&&Z++,se=!1;break;case"c":if(le){const e=He?BT(He).row:ze-1,i=He?BT(He).col:qe;qe=i+1;let u=!1;o&&(e<o.startRow||e>o.endRow||i<o.startCol||i>o.endCol)&&(u=!0);const f=""!==_e||""!==Ke||Ze.length>0||""!==Ve||"e"===je||"inlineStr"===je||t.readStyles&&We>=0||!!(t.styles&&We>=0)&&(t.styles.cellXfs[We]?.hasCheckboxFeature??!1);!u&&f&&(!function(e,t,n,r,i,o,a,s,l,c,u,d,f,h,p,g,m){const y=""!==e?BT(e):void 0!==g&&void 0!==m?{row:g,col:m}:null;if(!y)return;const{row:v,col:b}=y;if(v>ID||b>CD)throw new eE(`Cell reference "${e}" is outside the supported sheet bounds (max row 1048576, max col 16384)`);if(!Number.isInteger(v)||!Number.isInteger(b)||v<0||b<0)return void s.onWarning?.({code:"malformed-cell-ref",message:`Cell reference "${e}" is not a cell reference — a column needs a row number and rows are 1-based. The cell is dropped; the rest of the sheet is read.`,sheet:s.sheetName});if(u(v,b),!s.sparse){for(;l.length<=v;)l.push([]);for(;l[v].length<=b;)l[v].push(null)}let A,w,x,I=null,C="empty";i?A=i:"shared"===d&&void 0!==f&&f>=0&&(A="");switch(t){case"s":{const t=Number(r);if(!Number.isNaN(t)&&t>=0&&t<s.sharedStrings.length){const e=s.sharedStrings[t];I=e.text,e.richText&&e.richText.length>0?(x=e.richText,C="richText"):C="string"}else s.onWarning?.({code:"unresolved-shared-string",message:`Cell ${e||`${v},${b}`} points at shared string ${r}, which the file does not have (${s.sharedStrings.length} present). Read as empty.`,sheet:s.sheetName,row:v,col:b}),I=null,C="empty";break}case"str":I=fE(r),C=A?"formula":"string",A&&(w=I);break;case"inlineStr":a&&a.length>0?(I=a.map(e=>e.text).join(""),x=a,C="richText"):(I=fE(o),C="string");break;case"b":I="1"===r||"true"===r.toLowerCase(),C=A?"formula":"boolean",A&&(w=I);break;case"e":I=r,C=A?"formula":"error",A&&(w=I);break;case"d":{const e=function(e){const t=e.trim();if(!/^\d{4}-\d{2}-\d{2}([T ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:?\d{2})?)?$/.test(t))return;const n=/(?:Z|[+-]\d{2}:?\d{2})$/.test(t),r=/[T ]\d{2}:/.test(t),i=t.replace(" ","T"),o=new Date(r&&!n?`${i}Z`:i);return Number.isNaN(o.getTime())?void 0:o}(r);e?(I=e,C="date"):""!==r?(I=r,C="string"):(I=null,C="empty"),A&&(w=I,C="formula");break}default:{if(""===r&&!A){I=null,C="empty";break}const e=Number(r);Number.isNaN(e)||""===r?""!==r&&(I=r,C="string"):s.styles&&n>=0&&BN(s.styles,n)?(I=function(e,t){if(t){const t=VM+Math.round(e*YM);return new Date(t)}if(60===e)return new Date(Date.UTC(1900,1,28));let n=e;e>60&&(n=e-1);const r=_M+Math.round(n*YM);return new Date(r)}(e,"1904"===s.dateSystem),C="date"):(I=e,C="number"),A&&(w=I,C="formula");break}}s.sparse||(l[v][b]=I);const S=!!(s.styles&&n>=0)&&(s.styles.cellXfs[n]?.hasCheckboxFeature??!1),E=s.sparse||void 0!==A||void 0!==x||s.readStyles&&s.styles&&n>=0||S||"error"===C||"formula"===C||"richText"===C;if(E){const t={value:I,type:C};if(S&&(t.checkbox=!0),void 0!==A&&(t.formula=A,void 0!==w&&(t.formulaResult=w),"shared"===d?(t.formulaType="shared",void 0!==f&&f>=0&&(t.formulaSharedIndex=f),h&&(t.formulaRef=h)):"array"===d&&(t.formulaType="array",h&&(t.formulaRef=h)),p&&(t.formulaDynamic=!0)),x&&(t.richText=x),s.readStyles&&s.styles&&n>=0){const r=kN(s.styles,n);Object.keys(r).length>0?t.style=r:n>=s.styles.cellXfs.length&&s.onWarning?.({code:"unresolved-style",message:`Cell ${e||`${v},${b}`} points at cell format ${n}, which the file does not have (${s.styles.cellXfs.length} present). Read unstyled.`,sheet:s.sheetName,row:v,col:b})}const r=`${v},${b}`;ET(c,r,s.sheetName),c.set(r,t)}}(He,je,We,_e,Ve,Ke,Ze.length>0?Ze:void 0,t,n,r,d,Ye,Ge,Je,Xe,e,i),e>=0&&i>=0&&(i>a&&(a=i),e>s&&(s=e),c=!0,l++)),le=!1}break;case"v":ce=!1;break;case"f":P?P=!1:ue=!1;break;case"is":de=!1;break;case"t":$e?$e=!1:fe&&(fe=!1);break;case"r":if(Oe){const e=fE(et);Ze.push(ie?{text:e,font:ie}:{text:e}),Oe=!1}break;case"rPr":Ue=!1;break;case"sheetPr":k=!1;break;case"mergeCells":he=!1;break;case"autoFilter":C=!1;break;case"filterColumn":C&&g&&S>=0&&E.length>0&&(g.columns||(g.columns=[]),g.columns.push({colIndex:S,filters:E})),S=-1,E=[];break;case"hyperlinks":pe=!1;break;case"conditionalFormatting":xe=!1;break;case"cfRule":if(Ce){const e=function(e,t,n,r,i,o,a,s,l,c,u){const d=e.type;if(!d||!RT.has(d))return null;if(!t)return null;const f={type:d,priority:Number(e.priority??"1"),range:t},h=e.operator;h&&QT.has(h)&&(f.operator=h);const p=Number(e.dxfId);if(c&&!Number.isNaN(p)){const e=c[p];e&&Object.keys(e).length>0?f.style=e:e||u?.onWarning?.({code:"unresolved-dxf",message:`Conditional rule on ${t} asks for differential format ${p}, which the file does not have (${c.length} present). The rule keeps its condition and loses its formatting.`,sheet:u.sheetName})}"1"!==e.stopIfTrue&&"true"!==e.stopIfTrue||(f.stopIfTrue=!0);void 0!==e.text&&(f.text=e.text);1===n.length?f.formula=n[0]:n.length>1&&(f.formula=n);"colorScale"===d&&r.length>0&&(f.colorScale={cfvo:r.map(e=>({type:e.type,value:e.value})),colors:i});"dataBar"===d&&o.length>0&&(f.dataBar={cfvo:o.map(e=>({type:e.type,value:e.value})),color:a});"iconSet"===d&&s.length>0&&(f.iconSet={iconSet:l.iconSet??"3TrafficLights1",cfvo:s.map(e=>({type:e.type,value:e.value}))},"1"!==l.reverse&&"true"!==l.reverse||(f.iconSet.reverse=!0),"0"!==l.showValue&&"false"!==l.showValue||(f.iconSet.showValue=!1));return f}(Se,Ie,Be,De,Me,Te,Qe,Pe,Le,t.styles?.dxfs,t);e&&p.push(e),Ce=!1}break;case"colorScale":Fe=!1;break;case"dataBar":Ce&&(Ne=!1);break;case"iconSet":Re=!1;break;case"formula":Ee&&(Be.push(ke),Ee=!1);break;case"dataValidations":ge=!1;break;case"dataValidation":if(me){const e=function(e,t,n){const r=e.type;if(!r||!TT.has(r))return null;const i=e.sqref;if(!i)return null;const o={type:r,range:i},a=e.operator;a&&QT.has(a)&&(o.operator=a);"1"!==e.allowBlank&&"true"!==e.allowBlank||(o.allowBlank=!0);"1"!==e.showInputMessage&&"true"!==e.showInputMessage||(o.showInputMessage=!0);"1"!==e.showErrorMessage&&"true"!==e.showErrorMessage||(o.showErrorMessage=!0);const s=e.errorStyle;"stop"!==s&&"warning"!==s&&"information"!==s||(o.errorStyle=s);e.promptTitle&&(o.inputTitle=e.promptTitle);e.prompt&&(o.inputMessage=e.prompt);e.errorTitle&&(o.errorTitle=e.errorTitle);e.error&&(o.errorMessage=e.error);if(t)if("list"===r){const e=t.trim();if(e.startsWith('"')&&e.endsWith('"')){const t=e.slice(1,-1);o.values=t.split(",")}else o.formula1=t}else o.formula1=t;n&&(o.formula2=n);return o}(we,be,Ae);e&&h.push(e),me=!1}break;case"formula1":ye=!1;break;case"formula2":ve=!1;break;case"headerFooter":j=!1;break;case"oddHeader":W&&I&&(I.oddHeader=X,W=!1);break;case"oddFooter":_&&I&&(I.oddFooter=X,_=!1);break;case"evenHeader":V&&I&&(I.evenHeader=X,V=!1);break;case"evenFooter":Y&&I&&(I.evenFooter=X,Y=!1);break;case"firstHeader":G&&I&&(I.firstHeader=X,G=!1);break;case"firstFooter":J&&I&&(I.firstFooter=X,J=!1);break;case"rowBreaks":M=!1;break;case"colBreaks":N=!1;break;case"sparklineGroups":Q=!1;break;case"sparklineGroup":R=!1;break;case"sparkline":if(L&&q){const e={location:q,dataRange:z};U&&"line"!==U&&(e.type=U),$&&(e.color=$),H&&(e.markers=!0),T.push(e)}L=!1;break;default:if(L&&"sqref"===i){O=!1;break}}}};return{handlers:tt,finish:function(){if(c&&!t.sparse){const e=a+1;u(s,a,l);for(let t=0;t<=s;t++)if(n[t])for(;n[t].length<e;)n[t].push(null);else n[t]=Array.from({length:e},()=>null)}const o=new Map;if(t.worksheetRels)for(const e of t.worksheetRels)o.set(e.id,e.target);for(const i of f){const a=BT(i.ref),s=`${a.row},${a.col}`;let l=r.get(s);l||(l={value:(n[a.row]&&n[a.row][a.col])??null,type:"string"},ET(r,s,e),r.set(s,l));const c={target:""};if(i.location)c.location=i.location,c.target=i.location;else if(i.rId){const e=o.get(i.rId);e?c.target=e:t.onWarning?.({code:"unresolved-hyperlink",message:`Cell ${i.ref} links through ${i.rId}, which the sheet's relationships do not define. Read with an empty target.`,sheet:t.sheetName,row:a.row,col:a.col})}i.tooltip&&(c.tooltip=i.tooltip),i.display&&(c.display=i.display),l.hyperlink=c}const d={name:e,rows:n};if(r.size>0&&(d.cells=r),void 0!==ne&&(d.defaultRowHeight=ne),void 0!==re&&(d.defaultColWidth=re),te.some(e=>Object.keys(e).length>0)&&(d.columns=te),i.length>0&&(d.merges=i),h.length>0&&(d.dataValidations=h),p.length>0&&(d.conditionalRules=p),g&&(d.autoFilter=g),b&&(d.freezePane=b),A&&(d.splitPane=A),m&&(d.protection=m),y&&Object.keys(y).length>0&&(d.view=y),w||x||B){const e=w??{};x&&(e.margins=x),B&&(e.fitToPage=!0),d.pageSetup=e}return I&&Object.keys(I).length>0&&(d.headerFooter=I),F.length>0&&(d.rowBreaks=F.sort((e,t)=>e-t)),D.length>0&&(d.colBreaks=D.sort((e,t)=>e-t)),ee.size>0&&(d.rowDefs=ee),T.length>0&&(d.sparklines=T),v&&(d.outlineProperties=v),d}}}async function NT(e,t,n){const{handlers:r,finish:i}=MT(t,n);return await async function(e,t,n){const r=n?.strict??!1,i=e.getReader(),o=new TextDecoder("utf-8");let a="",s=!1;try{for(;;){const{done:e,value:n}=await i.read();if(e)break;a+=o.decode(n,{stream:!0}),s||(65279===a.charCodeAt(0)&&(a=a.slice(1)),s=!0),a=AE(a,t,!1,r)}a+=o.decode(),a.length>0&&AE(a,t,!0,r)}finally{try{await i.cancel()}catch{}try{i.releaseLock()}catch{}}}(e,r,{strict:!0}),i()}const TT=new Set(["list","whole","decimal","date","time","textLength","custom"]),QT=new Set(["between","notBetween","equal","notEqual","greaterThan","lessThan","greaterThanOrEqual","lessThanOrEqual"]);const RT=new Set(["cellIs","expression","colorScale","dataBar","iconSet","top10","aboveAverage","duplicateValues","uniqueValues","containsText","notContainsText","beginsWith","endsWith","containsBlanks","notContainsBlanks"]);function LT(e,t,n){switch(t){case"b":e.bold="0"!==n.val&&"false"!==n.val;break;case"i":e.italic="0"!==n.val&&"false"!==n.val;break;case"u":{const t=n.val;e.underline="double"!==t||"double";break}case"strike":e.strikethrough="0"!==n.val&&"false"!==n.val;break;case"sz":n.val&&(e.size=Number(n.val));break;case"rFont":n.val&&(e.name=n.val);break;case"color":if(e.color={},n.rgb){const t=n.rgb;e.color.rgb=8===t.length?t.slice(2):t}n.theme&&(e.color.theme=Number(n.theme)),n.tint&&(e.color.tint=Number(n.tint)),n.indexed&&(e.color.indexed=Number(n.indexed));break;case"vertAlign":"superscript"!==n.val&&"subscript"!==n.val||(e.vertAlign=n.val);break;case"family":n.val&&(e.family=Number(n.val));break;case"charset":n.val&&(e.charset=Number(n.val));break;case"scheme":"major"!==n.val&&"minor"!==n.val&&"none"!==n.val||(e.scheme=n.val)}}function PT(e,t){const n={};if(e.paperSize){const r=Number(e.paperSize);Number.isInteger(r)&&r>0?n.paperSize=mT[r]??r:t?.onWarning?.({code:"unusable-paper-size",message:`Page setup names paper size "${e.paperSize}", which is not a positive integer code. Dropped; the sheet reads with no paper size set.`,sheet:t.sheetName})}"landscape"!==e.orientation&&"portrait"!==e.orientation||(n.orientation=e.orientation),e.scale&&(n.scale=Number(e.scale)),void 0===e.fitToWidth&&void 0===e.fitToHeight||(n.fitToPage=!0,e.fitToWidth&&(n.fitToWidth=Number(e.fitToWidth)),e.fitToHeight&&(n.fitToHeight=Number(e.fitToHeight))),"1"!==e.horizontalCentered&&"true"!==e.horizontalCentered||(n.horizontalCentered=!0),"1"!==e.verticalCentered&&"true"!==e.verticalCentered||(n.verticalCentered=!0),e.paperWidth&&(n.paperWidth=e.paperWidth),e.paperHeight&&(n.paperHeight=e.paperHeight);const r=UT(e.firstPageNumber);void 0!==r&&(n.firstPageNumber=r),void 0!==e.useFirstPageNumber&&(n.useFirstPageNumber=OT(e.useFirstPageNumber)),"overThenDown"!==e.pageOrder&&"downThenOver"!==e.pageOrder||(n.pageOrder=e.pageOrder),OT(e.blackAndWhite)&&(n.blackAndWhite=!0),OT(e.draft)&&(n.draft=!0);const i=e.cellComments;"none"!==i&&"asDisplayed"!==i&&"atEnd"!==i||(n.cellComments=i);const o=e.errors;"displayed"!==o&&"blank"!==o&&"dash"!==o&&"NA"!==o||(n.errors=o);const a=UT(e.copies);void 0!==a&&(n.copies=a);const s=UT(e.horizontalDpi);void 0!==s&&(n.horizontalDpi=s);const l=UT(e.verticalDpi);return void 0!==l&&(n.verticalDpi=l),void 0!==e.usePrinterDefaults&&(n.usePrinterDefaults=OT(e.usePrinterDefaults)),n}function OT(e){return"1"===e||"true"===e}function UT(e){if(void 0===e)return;const t=Number(e);return Number.isInteger(t)&&t>=0?t:void 0}function $T(e){const t=new Map,n=[];let r=!1,i=!1,o=!1,a=!1,s=!1,l=!1,c="",u="",d=-1,f="";return gE(e,{onOpenTag(e,t){switch(e.includes(":")?e.slice(e.indexOf(":")+1):e){case"authors":r=!0;break;case"author":r&&(i=!0,c="");break;case"commentList":o=!0;break;case"comment":o&&(a=!0,u=t.ref??"",d=t.authorId?Number(t.authorId):-1,f="");break;case"text":a&&(s=!0);break;case"r":break;case"t":s&&(l=!0)}},onText(e){i?c+=e:l&&(f+=e)},onCloseTag(e){switch(e.includes(":")?e.slice(e.indexOf(":")+1):e){case"authors":r=!1;break;case"author":i&&(n.push(c),i=!1);break;case"commentList":o=!1;break;case"comment":if(a&&u){const e={text:f};if(d>=0&&d<n.length){const t=n[d];t&&(e.author=t)}t.set(u,e),a=!1}break;case"text":s=!1;break;case"r":break;case"t":l=!1}}}),t}function HT(e,t){for(const n of e.children){if("string"==typeof n)continue;if((n.local||n.tag)===t){return n.children.filter(e=>"string"==typeof e).join("")||void 0}}}function zT(e){if(e)return function(e){const t=e.trim(),n=t.indexOf("T"),r=n>=0&&/(?:Z|[+-]\d{2}:?\d{2})$/.test(t.slice(n+1)),i=new Date(n>=0&&!r?`${t}Z`:t);return Number.isNaN(i.getTime())?void 0:i}(e)}const qT=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];function jT(e,t){return e===`http://schemas.openxmlformats.org/officeDocument/2006/relationships/${t}`||e===`http://purl.oclc.org/ooxml/officeDocument/relationships/${t}`||e.endsWith("/"+t)}function WT(e,t="(unknown)"){return lE(e,t)}async function _T(e,t,n,r){const i=e.declaredSize(t);if(void 0===i||i<=aE)try{return function(e,t,n){const{handlers:r,finish:i}=MT(t,n);return gE(e,r),i()}(WT(await e.extract(t),t),n,r)}catch(e){if(!function(e){return e instanceof sE}(e))throw e}return NT(e.extractStream(t),n,r)}async function VT(e,t){let n,r=await kD(e,t?.maxInputBytes);if(function(e){if(e.length<ED.length)return!1;for(let t=0;t<ED.length;t++)if(e[t]!==ED[t])return!1;return!0}(r)){if(!t?.password)throw new iE("xlsx");r=await GD(r,t.password,t.maxSpinCount)}try{n=new zM(r,t?.maxDecompressedBytes)}catch(e){if(e instanceof tE)throw e;throw new eE("Failed to open XLSX file: not a valid ZIP archive",void 0,{cause:e})}if(!n.has("[Content_Types].xml"))throw new eE("Invalid XLSX: missing [Content_Types].xml");if(function(e){const t=wE(e),n=new Map,r=new Map;for(const e of t.children){if("string"==typeof e)continue;const t=e.local||e.tag;if("Default"===t){const t=e.attrs.Extension,r=e.attrs.ContentType;t&&r&&n.set(t,r)}else if("Override"===t){const t=e.attrs.PartName,n=e.attrs.ContentType;t&&n&&r.set(t,n)}}}(WT(await n.extract("[Content_Types].xml"),"[Content_Types].xml")),!n.has("_rels/.rels"))throw new eE("Invalid XLSX: missing _rels/.rels");const i=BE(WT(await n.extract("_rels/.rels"),"_rels/.rels")).find(e=>jT(e.type,"officeDocument"));if(!i)throw new eE("Invalid XLSX: cannot find workbook relationship in _rels/.rels");const o=i.target.startsWith("/")?i.target.slice(1):i.target,a=DE(o),s=a?`${a}/_rels/${o.slice(a.length+1)}.rels`:`_rels/${o}.rels`;let l=[];if(n.has(s)){l=BE(WT(await n.extract(s),s))}if(!n.has(o))throw new eE(`Invalid XLSX: missing workbook at ${o}`);const c=WT(await n.extract(o),o),{sheets:u,dateSystem:d,namedRanges:f,workbookProtection:h,activeSheet:p,pivotCacheRefs:g}=function(e,t){const n=wE(e),r=[],i=[],o=[];let a,s,l="1900";"1904"===t?.dateSystem?l="1904":"1900"===t?.dateSystem&&(l="1900");for(const e of n.children){if("string"==typeof e)continue;const n=e.local||e.tag;if("workbookPr"===n&&("1"!==e.attrs.date1904&&"true"!==e.attrs.date1904||t?.dateSystem&&"auto"!==t.dateSystem||(l="1904")),"workbookProtection"===n){const t="1"===e.attrs.lockStructure||"true"===e.attrs.lockStructure,n="1"===e.attrs.lockWindows||"true"===e.attrs.lockWindows;(t||n)&&(a={},t&&(a.lockStructure=!0),n&&(a.lockWindows=!0))}if("bookViews"===n)for(const t of e.children){if("string"==typeof t)continue;if("workbookView"!==(t.local||t.tag))continue;const e=Number(t.attrs.activeTab);Number.isInteger(e)&&e>0&&void 0===s&&(s=e)}if("sheets"===n)for(const t of e.children){if("string"==typeof t)continue;if("sheet"===(t.local||t.tag)){const e=t.attrs.name??"",n=Number(t.attrs.sheetId??"0"),i=t.attrs["r:id"]??t.attrs["R:id"]??ME(t.attrs)??"",o=t.attrs.state;let a="visible";"hidden"===o?a="hidden":"veryHidden"===o&&(a="veryHidden"),e&&i&&r.push({name:e,sheetId:n,rId:i,state:a})}}if("pivotCaches"===n)for(const t of e.children){if("string"==typeof t)continue;if("pivotCache"===(t.local||t.tag)){const e=t.attrs.cacheId,n=void 0===e?NaN:Number(e),r=t.attrs["r:id"]??t.attrs["R:id"]??ME(t.attrs)??"";r&&!Number.isNaN(n)&&o.push({cacheId:n,rId:r})}}}for(const e of n.children){if("string"==typeof e)continue;if("definedNames"===(e.local||e.tag))for(const t of e.children){if("string"==typeof t)continue;if("definedName"===(t.local||t.tag)){const e=t.attrs.name??"",n=t.children.filter(e=>"string"==typeof e).join("");if(e&&n){const o={name:e,range:n},a=t.attrs.localSheetId;if(void 0!==a){const e=Number(a);e>=0&&e<r.length&&(o.scope=r[e].name)}t.attrs.comment&&(o.comment=t.attrs.comment),i.push(o)}}}}return{sheets:r,dateSystem:l,namedRanges:i,workbookProtection:a,activeSheet:s,pivotCacheRefs:o}}(c,t);let m=[];const y=l.find(e=>jT(e.type,"sharedStrings"));if(y){const e=FE(a,y.target);if(n.has(e)){m=function(e){const t=wE(e),n=[];for(const e of t.children)"string"!=typeof e&&"si"===(e.local||e.tag)&&n.push(qM(e));return n}(WT(await n.extract(e),e))}}let v=null;const b=l.find(e=>jT(e.type,"styles"));if(b){const e=FE(a,b.target);if(n.has(e)){v=sN(WT(await n.extract(e),e))}}let A;const w=a?`${a}/theme/theme1.xml`:"theme/theme1.xml";if(n.has(w)){A=function(e){const t=new Map;let n=!1,r="";return gE(e,{onOpenTag(e,i){if("clrScheme"===e||"a:clrScheme"===e)return void(n=!0);if(!n)return;const o=e.includes(":")?e.split(":").pop():e;qT.includes(o)?r=o:r&&("srgbClr"===o&&i.val?t.set(r,i.val.toUpperCase()):"sysClr"===o&&i.lastClr&&t.set(r,i.lastClr.toUpperCase()))},onCloseTag(e){const t=e.includes(":")?e.split(":").pop():e;"clrScheme"===t&&(n=!1),r&&qT.includes(t)&&(r="")}}),qT.map(e=>t.get(e)??"000000")}(WT(await n.extract(w),w))}let x;const I=l.find(e=>jT(e.type,"person"));if(I){const e=FE(a,I.target);if(n.has(e)){x=function(e){const t=wE(e),n=[];for(const e of IE(t)){if("person"!==e.local)continue;const t=e.attrs.id,r=e.attrs.displayName;if(!t||void 0===r)continue;const i={id:t,displayName:r};e.attrs.userId&&(i.userId=e.attrs.userId),e.attrs.providerId&&(i.providerId=e.attrs.providerId),n.push(i)}return n}(WT(await n.extract(e),e))}}const C=l.filter(e=>jT(e.type,"externalLink")).sort((e,t)=>GT(e.id)-GT(t.id)),S=[];for(const e of C){const t=FE(a,e.target);if(!n.has(t))continue;const r=WT(await n.extract(t),t),i=JT(t),o=n.has(i)?WT(await n.extract(i),i):void 0;S.push(TE(r,o))}let E;const k=l.find(e=>"http://www.wps.cn/officeDocument/2017/relationships/cellimage"===e.type);if(k){const e=FE(a,k.target);if(n.has(e)){const t=function(e){const t=wE(e),n=[];for(const e of IE(t)){if("cellImage"!==e.local)continue;const t=RE(e);t&&n.push(t)}return n}(WT(await n.extract(e),e)),r=JT(e),i=DE(e),o=new Map;if(n.has(r)){const e=WT(await n.extract(r),r);for(const t of BE(e)){if(!jT(t.type,"image"))continue;const e=FE(i,t.target);if(!n.has(e))continue;const r=e.split(".").pop()?.toLowerCase()??"",a=XT[r];a&&o.set(t.id,{data:await n.extract(e),type:a})}}const a=function(e,t){const n=[],r=new Set;for(const i of e){if(r.has(i.id))continue;const e=t.get(i.embedRId);if(!e)continue;const o={id:i.id,data:e.data,type:e.type};i.description&&(o.description=i.description),n.push(o),r.add(i.id)}return n}(t,o);a.length>0&&(E=a)}}const B=new Map,F=new Map;for(const e of g){const t=l.find(t=>t.id===e.rId);if(!t)continue;const r=FE(a,t.target);if(!n.has(r))continue;const i=LE(WT(await n.extract(r),r));if(!i)continue;i.cacheId=e.cacheId;const o=JT(r);if(n.has(o)){BE(WT(await n.extract(o),o)).some(e=>jT(e.type,"pivotCacheRecords"))&&(i.hasRecords=!0)}B.set(e.cacheId,i),F.set(e.rId,i)}const D=g.map(e=>B.get(e.cacheId)).filter(e=>void 0!==e),M=l.filter(e=>jT(e.type,"slicerCache")).sort((e,t)=>YT(e.target)-YT(t.target)),N=[];for(const e of M){const t=FE(a,e.target);if(!n.has(t))continue;const r=HE(WT(await n.extract(t),t));r&&N.push(r)}const T=l.filter(e=>jT(e.type,"timelineCache")).sort((e,t)=>YT(e.target)-YT(t.target)),Q=[];for(const e of T){const t=FE(a,e.target);if(!n.has(t))continue;const r=qE(WT(await n.extract(t),t));r&&Q.push(r)}let R;const L=l.find(e=>jT(e.type,"sheetMetadata"));if(L){const e=FE(a,L.target);n.has(e)&&(R=function(e){const t=new Set,n=wE(e),r="metadata"===n.local?n:xE(n,"metadata");if(!r)return t;const i=[],o=xE(r,"metadataTypes");if(o)for(const e of IE(o))"metadataType"===e.local&&i.push(e.attrs.name??"");const a=new Map;for(const e of IE(r)){if("futureMetadata"!==e.local)continue;const t=e.attrs.name??"",n=a.get(t)??[];for(const t of IE(e))"bk"===t.local&&n.push(VN(t));a.set(t,n)}const s=xE(r,"cellMetadata");if(!s)return t;let l=0;for(const e of IE(s))if("bk"===e.local){l++;for(const n of IE(e)){if("rc"!==n.local)continue;if(i[EE(n.attrs.t,0)-1]!==jN)continue;const e=a.get(jN),r=EE(n.attrs.v,-1);(!e||r<0||r>=e.length||e[r])&&t.add(l)}}return t}(WT(await n.extract(e),e)))}const P=new Map,O=new Map;for(const e of l)jT(e.type,"worksheet")?P.set(e.id,FE(a,e.target)):jT(e.type,"chartsheet")?O.set(e.id,"chartsheet"):jT(e.type,"dialogsheet")&&O.set(e.id,"dialogsheet");const U=function(e,t){if(void 0===t)return e;if("function"==typeof t){const n=[];for(let r=0;r<e.length;r++){const i=e[r];t({name:i.name,index:r,hidden:"hidden"===i.state,veryHidden:"veryHidden"===i.state},r)&&n.push(i)}return n}if(0===t.length)return e;const n=[];for(const r of t)if("number"==typeof r)r>=0&&r<e.length&&n.push(e[r]);else{const t=e.find(e=>e.name===r);t&&n.push(t)}return n}(u,t?.sheets),$=t?.readStyles??!1,H=[];for(const e of U){const r=O.get(e.rId);if(void 0!==r){const t={name:e.name,rows:[],kind:r};"hidden"===e.state&&(t.hidden=!0),"veryHidden"===e.state&&(t.veryHidden=!0),H.push(t);continue}const i=P.get(e.rId);if(!i||!n.has(i))throw new eE(`Invalid XLSX: missing worksheet file for sheet "${e.name}"`);const o=DE(i),s=JT(i);let c;if(n.has(s)){c=BE(WT(await n.extract(s),s))}const u={sharedStrings:m,styles:v,readStyles:$,dateSystem:d,worksheetRels:c,maxRows:t?.maxRows,range:t?.range,maxTotalCells:t?.maxTotalCells,sparse:t?.sparse,dynamicArrayCm:R,sheetName:e.name,onWarning:t?.onWarning},f=await _T(n,i,e.name,u);if("hidden"===e.state&&(f.hidden=!0),"veryHidden"===e.state&&(f.veryHidden=!0),c){const e=c.find(e=>jT(e.type,"drawing"));if(e){const t=FE(o,e.target),r=await KT(n,t);if(r.images.length>0&&(f.images=r.images),r.textBoxes.length>0&&(f.textBoxes=r.textBoxes),r.chartRefs.length>0){const e=[];for(const t of r.chartRefs){if(!n.has(t.path))continue;const r=AD(WT(await n.extract(t.path),t.path));r&&(t.anchor&&(r.anchor=t.anchor),t.altText&&(r.altText=t.altText),t.frameTitle&&(r.frameTitle=t.frameTitle),e.push(r))}e.length>0&&(f.charts=e)}}}if(c){const e=c.find(e=>jT(e.type,"comments"));if(e){const t=FE(o,e.target);if(n.has(t)){const e=$T(WT(await n.extract(t),t));if(e.size>0){f.cells||(f.cells=new Map);for(const[t,n]of e){const e=BT(t),r=`${e.row},${e.col}`;let i=f.cells.get(r);i||(i={value:(f.rows[e.row]&&f.rows[e.row][e.col])??null,type:"string"},f.cells.set(r,i)),i.comment=n}}}}const t=c.find(e=>jT(e.type,"threadedComment"));if(t){const e=FE(o,t.target);if(n.has(e)){const t=kE(WT(await n.extract(e),e));t.length>0&&(f.threadedComments=t)}}}if(c){const e=c.filter(e=>jT(e.type,"table"));if(e.length>0){const t=[];for(const r of e){const e=FE(o,r.target);if(n.has(e)){const r=hQ(WT(await n.extract(e),e));r&&t.push(r)}}t.length>0&&(f.tables=t)}}if(c){const e=c.find(e=>jT(e.type,"image"));if(e){const t=FE(o,e.target);n.has(t)&&(f.backgroundImage=await n.extract(t))}}if(c){const e=c.filter(e=>jT(e.type,"pivotTable"));if(e.length>0){const t=[];for(const r of e){const e=FE(o,r.target);if(!n.has(e))continue;const i=PE(WT(await n.extract(e),e));if(!i)continue;const s=JT(e);if(n.has(s)){const t=BE(WT(await n.extract(s),s)).find(e=>jT(e.type,"pivotCacheDefinition"));if(t){const n=FE(DE(e),t.target);for(const e of g){const t=l.find(t=>t.id===e.rId);if(!t)continue;if(FE(a,t.target)===n){i.cacheId=e.cacheId;break}}}}const c=B.get(i.cacheId);c&&OE(i,c),t.push(i)}t.length>0&&(f.pivotTables=t)}const t=c.filter(e=>jT(e.type,"slicer"));if(t.length>0){const e=[];for(const r of t){const t=FE(o,r.target);if(!n.has(t))continue;const i=WT(await n.extract(t),t);for(const t of $E(i))e.push(t)}e.length>0&&(f.slicers=e)}const r=c.filter(e=>jT(e.type,"timeline"));if(r.length>0){const e=[];for(const t of r){const r=FE(o,t.target);if(!n.has(r))continue;const i=WT(await n.extract(r),r);for(const t of zE(i))e.push(t)}e.length>0&&(f.timelines=e)}}H.push(f)}let z;if(n.has("docProps/core.xml")){const e=function(e){const t=wE(e),n={};for(const e of t.children){if("string"==typeof e)continue;const t=e.local||e.tag,r=e.children.filter(e=>"string"==typeof e).join("");switch(t){case"title":r&&(n.title=r);break;case"subject":r&&(n.subject=r);break;case"creator":r&&(n.creator=r);break;case"keywords":r&&(n.keywords=r);break;case"description":r&&(n.description=r);break;case"lastModifiedBy":r&&(n.lastModifiedBy=r);break;case"category":r&&(n.category=r);break;case"created":if(r){const e=zT(r);e&&(n.created=e)}break;case"modified":if(r){const e=zT(r);e&&(n.modified=e)}}}return n}(WT(await n.extract("docProps/core.xml"),"docProps/core.xml"));Object.keys(e).length>0&&(z={...e})}if(n.has("docProps/app.xml")){const e=function(e){const t=wE(e),n={},r=HT(t,"Company");r&&(n.company=r);const i=HT(t,"Manager");return i&&(n.manager=i),n}(WT(await n.extract("docProps/app.xml"),"docProps/app.xml"));Object.keys(e).length>0&&(z={...z,...e})}if(n.has("docProps/custom.xml")){const e=function(e){const t=wE(e),n={};for(const e of t.children){if("string"==typeof e)continue;if("property"!==(e.local||e.tag))continue;const t=e.attrs.name;if(t)for(const r of e.children){if("string"==typeof r)continue;const e=r.local||r.tag,i=r.children.filter(e=>"string"==typeof e).join("");switch(e){case"lpwstr":n[t]=i;break;case"i4":case"i8":case"int":i&&(n[t]=parseInt(i,10));break;case"r8":case"decimal":i&&(n[t]=parseFloat(i));break;case"bool":n[t]="true"===i||"1"===i;break;case"filetime":case"date":if(i){const e=new Date(i);Number.isNaN(e.getTime())||(n[t]=e)}}break}}return n}(WT(await n.extract("docProps/custom.xml"),"docProps/custom.xml"));Object.keys(e).length>0&&(z||(z={}),z.custom=e)}const q={sheets:H,dateSystem:d},j=function(e,t){if(0===t.length)return t;const n=new Map;for(const t of e)n.set(t.name,t);const r=[];for(const e of t){const t="_xlnm.Print_Area"===e.name,i="_xlnm.Print_Titles"===e.name,o=void 0!==e.scope?n.get(e.scope):void 0;if(!t&&!i||!o){r.push(e);continue}const a=o.pageSetup??(o.pageSetup={});if(t){const t=e.range.split(",").map(fQ).filter(e=>e.length>0).join(",");t&&(a.printArea=t)}else for(const t of e.range.split(",")){const e=fQ(t);e&&(/\d/.test(e)?a.printTitlesRow=e:a.printTitlesColumn=e)}}return r}(H,f);j.length>0&&(q.namedRanges=j),z&&(q.properties=z),A&&(q.themeColors=A),h&&(q.workbookProtection=h),void 0!==p&&(q.activeSheet=p);const W=v?.fonts[0];return W&&Object.keys(W).length>0&&(q.defaultFont=W),x&&x.length>0&&(q.persons=x),S.length>0&&(q.externalLinks=S),E&&E.length>0&&(q.cellImages=E),D.length>0&&(q.pivotCaches=D),N.length>0&&(q.slicerCaches=N),Q.length>0&&(q.timelineCaches=Q),q}function YT(e){const t=e.match(/(\d+)\.xml$/i);return t?parseInt(t[1],10):Number.POSITIVE_INFINITY}function GT(e){const t=e.match(/(\d+)$/);return t?parseInt(t[1],10):Number.POSITIVE_INFINITY}function JT(e){const t=e.lastIndexOf("/");return-1===t?`_rels/${e}.rels`:`${e.slice(0,t)}/_rels/${e.slice(t+1)}.rels`}const XT={png:"png",jpg:"jpeg",jpeg:"jpeg",gif:"gif",svg:"svg",webp:"webp"};async function KT(e,t){if(!e.has(t))return{images:[],textBoxes:[],chartRefs:[]};const n=WT(await e.extract(t),t),r=DE(t),i=JT(t),o=new Map,a=new Map;if(e.has(i)){const t=BE(WT(await e.extract(i),i));for(const e of t)jT(e.type,"image")?o.set(e.id,FE(r,e.target)):jT(e.type,"chart")&&a.set(e.id,FE(r,e.target))}const s=wE(n),l=[],c=[],u=[];for(const t of s.children){if("string"==typeof t)continue;const n=t.local||t.tag;if("twoCellAnchor"===n||"oneCellAnchor"===n||"absoluteAnchor"===n){const e=eQ(t);if(e){const r=a.get(e);if(r&&!u.some(e=>e.path===r)){const e="absoluteAnchor"===n?void 0:ZT(t,n),i={path:r};e&&(i.anchor=e);const o=iQ(t,"graphicFrame");if(o){const e=lQ(o,"nvGraphicFramePr");e.altText&&(i.altText=e.altText),e.title&&(i.frameTitle=e.title)}u.push(i)}}}if("twoCellAnchor"===n){const n=rQ(t);if(n){c.push(n);continue}const r=tQ(t,o);if(r){const t=r.mediaPath;if(e.has(t)){const n={data:await e.extract(t),type:r.type,anchor:r.anchor};void 0!==r.width&&(n.width=r.width),void 0!==r.height&&(n.height=r.height),void 0!==r.altText&&(n.altText=r.altText),void 0!==r.title&&(n.title=r.title),l.push(n)}}}else if("oneCellAnchor"===n){const n=sQ(t,o);if(n){const t=n.mediaPath;if(e.has(t)){const r={data:await e.extract(t),type:n.type,anchor:n.anchor};void 0!==n.width&&(r.width=n.width),void 0!==n.height&&(r.height=n.height),void 0!==n.altText&&(r.altText=n.altText),void 0!==n.title&&(r.title=n.title),l.push(r)}}}}return{images:l,textBoxes:c,chartRefs:u}}function ZT(e,t){let n,r;for(const t of e.children){if("string"==typeof t)continue;const e=t,i=e.local||e.tag;"from"===i?n=cQ(e):"to"===i&&(r=cQ(e))}if(n)return"twoCellAnchor"===t&&r?{from:n,to:r}:{from:n}}function eQ(e){for(const t of e.children){if("string"==typeof t)continue;const e=t;if("chart"===(e.local||e.tag)){const t=e.attrs["r:id"]??e.attrs.id;if(t)return t}const n=eQ(e);if(n)return n}}function tQ(e,t){let n,r,i,o,a=0,s=0,l=0,c=0;for(const t of e.children){if("string"==typeof t)continue;const e=t,u=e.local||e.tag;if("from"===u){const t=cQ(e);a=t.row,s=t.col}else if("to"===u){const t=cQ(e);l=t.row,c=t.col}else if("pic"===u){n=uQ(e);const t=lQ(e,"nvPicPr");r=t.altText,i=t.title,o=nQ(e)}}if(!n)return null;const u=t.get(n);if(!u)return null;const d=u.split(".").pop()?.toLowerCase()??"",f={mediaPath:u,type:XT[d]??"png",anchor:{from:{row:a,col:s},to:{row:l,col:c}}};return o&&(f.width=o.width,f.height=o.height),r&&(f.altText=r),i&&(f.title=i),f}function nQ(e){const t=iQ(e,"spPr");if(!t)return;const n=iQ(t,"xfrm");if(!n)return;const r=iQ(n,"ext");if(!r)return;const i=Number(r.attrs.cx),o=Number(r.attrs.cy);return i>0&&o>0?{width:Math.round(i/aQ),height:Math.round(o/aQ)}:void 0}function rQ(e){let t=0,n=0,r=0,i=0,o=null;for(const a of e.children){if("string"==typeof a)continue;const e=a,s=e.local||e.tag;if("from"===s){const r=cQ(e);t=r.row,n=r.col}else if("to"===s){const t=cQ(e);r=t.row,i=t.col}else if("sp"===s){const t=iQ(e,"nvSpPr");if(t){const n=iQ(t,"cNvSpPr");!n||"1"!==n.attrs.txBox&&"true"!==n.attrs.txBox||(o=e)}}}if(!o)return null;const a=iQ(o,"txBody");let s,l,c,u,d,f="";if(a){const e=[];for(const t of a.children){if("string"==typeof t)continue;if("p"===(t.local||t.tag)){const n=oQ(t);e.push(n.text),void 0!==n.fontSize&&void 0===s&&(s=n.fontSize),void 0!==n.bold&&void 0===l&&(l=n.bold),void 0!==n.color&&void 0===c&&(c=n.color)}}f=e.join("\n")}if(!f)return null;const h=iQ(o,"spPr");if(h){const e=iQ(h,"solidFill");if(e){const t=iQ(e,"srgbClr");t&&t.attrs.val&&(u=t.attrs.val)}const t=iQ(h,"ln");if(t){const e=iQ(t,"solidFill");if(e){const t=iQ(e,"srgbClr");t&&t.attrs.val&&(d=t.attrs.val)}}}const p={text:f,anchor:{from:{row:t,col:n},to:{row:r,col:i}}},g=nQ(o);g&&(p.width=g.width,p.height=g.height);const m=lQ(o,"nvSpPr");m.altText&&(p.altText=m.altText),m.title&&(p.title=m.title);const y={};let v=!1;return void 0!==s&&(y.fontSize=s,v=!0),void 0!==l&&(y.bold=l,v=!0),void 0!==c&&(y.color=c,v=!0),void 0!==u&&(y.fillColor=u,v=!0),void 0!==d&&(y.borderColor=d,v=!0),v&&(p.style=y),p}function iQ(e,t){for(const n of e.children){if("string"==typeof n)continue;const e=n;if((e.local||e.tag)===t)return e}return null}function oQ(e){let t,n,r,i="";for(const o of e.children){if("string"==typeof o)continue;const e=o;if("r"===(e.local||e.tag)){const o=iQ(e,"rPr");if(o){o.attrs.sz&&(t=Number(o.attrs.sz)/100),"1"!==o.attrs.b&&"true"!==o.attrs.b||(n=!0);const e=iQ(o,"solidFill");if(e){const t=iQ(e,"srgbClr");t&&t.attrs.val&&(r=t.attrs.val)}}const a=iQ(e,"t");a&&(i+=a.children.filter(e=>"string"==typeof e).join(""))}}return{text:i,fontSize:t,bold:n,color:r}}const aQ=9525;function sQ(e,t){let n,r,i,o=0,a=0,s=0,l=0;for(const t of e.children){if("string"==typeof t)continue;const e=t,c=e.local||e.tag;if("from"===c){const t=cQ(e);o=t.row,a=t.col}else if("ext"===c)s=Number(e.attrs.cx)||0,l=Number(e.attrs.cy)||0;else if("pic"===c){n=uQ(e);const t=lQ(e,"nvPicPr");r=t.altText,i=t.title}}if(!n)return null;const c=t.get(n);if(!c)return null;const u=c.split(".").pop()?.toLowerCase()??"",d={mediaPath:c,type:XT[u]??"png",anchor:{from:{row:o,col:a}}};return s>0&&(d.width=Math.round(s/aQ)),l>0&&(d.height=Math.round(l/aQ)),r&&(d.altText=r),i&&(d.title=i),d}function lQ(e,t){const n=iQ(e,t);if(!n)return{};const r=iQ(n,"cNvPr");if(!r)return{};const i={};return r.attrs.descr&&(i.altText=r.attrs.descr),r.attrs.title&&(i.title=r.attrs.title),i}function cQ(e){let t=0,n=0;for(const r of e.children){if("string"==typeof r)continue;const e=r,i=e.local||e.tag,o=e.children.filter(e=>"string"==typeof e).join("");"row"===i?t=Number(o)||0:"col"===i&&(n=Number(o)||0)}return{row:t,col:n}}function uQ(e){for(const t of e.children){if("string"==typeof t)continue;const e=t;if("blipFill"===(e.local||e.tag))for(const t of e.children){if("string"==typeof t)continue;const e=t;if("blip"===(e.local||e.tag))return e.attrs["r:embed"]??e.attrs["R:embed"]??dQ(e.attrs)}}}function dQ(e){for(const t of Object.keys(e))if(t.endsWith(":embed")&&e[t].startsWith("rId"))return e[t]}function fQ(e){const t=e.trim(),n=t.lastIndexOf("!");return-1===n?t:t.slice(n+1)}function hQ(e){const t=wE(e),n=t.attrs.name??"",r=t.attrs.displayName??n,i=t.attrs.ref??"";if(!n)return null;const o=t.attrs.totalsRowCount,a=void 0!==o&&"0"!==o,s=[];let l,c,u,d=!1;for(const e of t.children){if("string"==typeof e)continue;const t=e.local||e.tag;if("autoFilter"===t)d=!0;else if("tableColumns"===t)for(const t of e.children){if("string"==typeof t)continue;if("tableColumn"===(t.local||t.tag)){const e={name:t.attrs.name??""};t.attrs.totalsRowFunction&&(e.totalFunction=t.attrs.totalsRowFunction),t.attrs.totalsRowLabel&&(e.totalLabel=t.attrs.totalsRowLabel);for(const n of t.children){if("string"==typeof n)continue;if("totalsRowFormula"===(n.local||n.tag)){const t=n.children.filter(e=>"string"==typeof e).join("");t&&(e.totalFormula=t)}}s.push(e)}}else"tableStyleInfo"===t&&(l=e.attrs.name,c="1"===e.attrs.showRowStripes,u="1"===e.attrs.showColumnStripes)}const f={name:n,columns:s};return r&&r!==n&&(f.displayName=r),i&&(f.range=i),l&&(f.style=l),void 0!==c&&(f.showRowStripes=c),void 0!==u&&(f.showColumnStripes=u),f.showAutoFilter=d,a&&(f.showTotalRow=!0),f}async function pQ(e){if(function(){if(void 0===PM)try{new CompressionStream("deflate-raw"),PM="undefined"!=typeof ReadableStream}catch{PM=!1}return PM}())try{const t=new CompressionStream("deflate-raw"),n=t.writable.getWriter(),r=t.readable.getReader();n.write(e),n.close();const i=[];let o=0;for(;;){const{done:e,value:t}=await r.read();if(e)break;i.push(t),o+=t.length}const a=new Uint8Array(o);let s=0;for(const e of i)a.set(e,s),s+=e.length;return a}catch{}return TM(e)}class gQ{entries=[];paths=new Set;add(e,t,n){if(this.paths.has(e))throw new tE(`Duplicate ZIP entry: "${e}"`);this.paths.add(e);const r=n?.compress??!0;this.entries.push({path:e,data:t,compress:r})}async build(){const e=[];for(const t of this.entries){const n=t.data.length>0?wM(t.data):0;let r,i;t.compress&&t.data.length>0?(r=await pQ(t.data),i=8,r.length>=t.data.length&&(r=t.data,i=0)):(r=t.data,i=0),e.push({path:t.path,data:t.data,compressedData:r,method:i,entryCrc32:n})}const t=new TextEncoder,n=e.map(e=>t.encode(e.path));let r=0;for(let t=0;t<e.length;t++)r+=30+n[t].length+e[t].compressedData.length;let i=0;for(let t=0;t<e.length;t++)i+=46+n[t].length;const o=new Uint8Array(r+i+22),a=new DataView(o.buffer);let s=0;const l=[];for(let t=0;t<e.length;t++){const r=e[t],i=n[t];l.push(s),a.setUint32(s,67324752,!0),a.setUint16(s+4,20,!0),a.setUint16(s+6,0,!0),a.setUint16(s+8,r.method,!0),a.setUint16(s+10,0,!0),a.setUint16(s+12,33,!0),a.setUint32(s+14,r.entryCrc32,!0),a.setUint32(s+18,r.compressedData.length,!0),a.setUint32(s+22,r.data.length,!0),a.setUint16(s+26,i.length,!0),a.setUint16(s+28,0,!0),o.set(i,s+30),s+=30+i.length,o.set(r.compressedData,s),s+=r.compressedData.length}const c=s;for(let t=0;t<e.length;t++){const r=e[t],i=n[t];a.setUint32(s,33639248,!0),a.setUint16(s+4,20,!0),a.setUint16(s+6,20,!0),a.setUint16(s+8,0,!0),a.setUint16(s+10,r.method,!0),a.setUint16(s+12,0,!0),a.setUint16(s+14,33,!0),a.setUint32(s+16,r.entryCrc32,!0),a.setUint32(s+20,r.compressedData.length,!0),a.setUint32(s+24,r.data.length,!0),a.setUint16(s+28,i.length,!0),a.setUint16(s+30,0,!0),a.setUint16(s+32,0,!0),a.setUint16(s+34,0,!0),a.setUint16(s+36,0,!0),a.setUint32(s+38,0,!0),a.setUint32(s+42,l[t],!0),o.set(i,s+46),s+=46+i.length}const u=s-c;return a.setUint32(s,101010256,!0),a.setUint16(s+4,0,!0),a.setUint16(s+6,0,!0),a.setUint16(s+8,e.length,!0),a.setUint16(s+10,e.length,!0),a.setUint32(s+12,u,!0),a.setUint32(s+16,c,!0),a.setUint16(s+20,0,!0),o}}const mQ={png:"image/png",jpeg:"image/jpeg",gif:"image/gif",svg:"image/svg+xml",webp:"image/webp"};const yQ="http://schemas.openxmlformats.org/package/2006/relationships";function vQ(e,t){const n={};return void 0!==t.rgb&&(n.rgb=6===t.rgb.length?`FF${t.rgb}`:t.rgb),void 0!==t.theme&&(n.theme=t.theme),void 0!==t.tint&&(n.tint=t.tint),void 0!==t.indexed&&(n.indexed=t.indexed),XE(e,n)}function bQ(e){const t=[];return e.bold&&t.push(XE("b")),e.italic&&t.push(XE("i")),void 0!==e.underline&&!1!==e.underline&&(!0===e.underline||"single"===e.underline?t.push(XE("u")):t.push(XE("u",{val:e.underline}))),e.strikethrough&&t.push(XE("strike")),void 0!==e.charset&&t.push(XE("charset",{val:e.charset})),void 0!==e.family&&t.push(XE("family",{val:e.family})),e.scheme&&t.push(XE("scheme",{val:e.scheme})),e.color&&t.push(vQ("color",e.color)),void 0!==e.size&&t.push(XE("sz",{val:e.size})),e.name&&t.push(XE("name",{val:e.name})),e.vertAlign&&t.push(XE("vertAlign",{val:e.vertAlign})),ZE("font",void 0,t)}function AQ(e){if("pattern"===e.type){const t=[];e.fgColor&&t.push(vQ("fgColor",e.fgColor)),e.bgColor&&t.push(vQ("bgColor",e.bgColor));const n=ZE("patternFill",{patternType:e.pattern},t.length>0?t:void 0);return ZE("fill",void 0,[n])}const t=[];for(const n of e.stops)t.push(ZE("stop",{position:n.position},[vQ("color",n.color)]));const n={};void 0!==e.degree&&(n.degree=e.degree);const r=ZE("gradientFill",n,t);return ZE("fill",void 0,[r])}function wQ(e,t){return t?t.color?ZE(""+e,{style:t.style},[vQ("color",t.color)]):XE(e,{style:t.style}):XE(e)}function xQ(e){const t={};e.diagonalUp&&(t.diagonalUp=!0),e.diagonalDown&&(t.diagonalDown=!0);const n=[wQ("left",e.left),wQ("right",e.right),wQ("top",e.top),wQ("bottom",e.bottom),wQ("diagonal",e.diagonal)];return ZE("border",Object.keys(t).length>0?t:void 0,n)}function IQ(e){if(!e)return"";const t=[];return void 0!==e.rgb&&t.push(`rgb:${e.rgb}`),void 0!==e.theme&&t.push(`th:${e.theme}`),void 0!==e.tint&&t.push(`tint:${e.tint}`),void 0!==e.indexed&&t.push(`idx:${e.indexed}`),t.join("|")}function CQ(e){const t=[];return e.name&&t.push(`n:${e.name}`),void 0!==e.size&&t.push(`s:${e.size}`),e.bold&&t.push("b"),e.italic&&t.push("i"),void 0!==e.underline&&!1!==e.underline&&t.push(`u:${e.underline}`),e.strikethrough&&t.push("st"),e.color&&t.push(`c:${IQ(e.color)}`),e.vertAlign&&t.push(`va:${e.vertAlign}`),void 0!==e.family&&t.push(`fam:${e.family}`),void 0!==e.charset&&t.push(`cs:${e.charset}`),e.scheme&&t.push(`sch:${e.scheme}`),t.join(",")}function SQ(e){return"pattern"===e.type?`p:${e.pattern}|fg:${IQ(e.fgColor)}|bg:${IQ(e.bgColor)}`:`g:${e.degree??""}|${e.stops.map(e=>`${e.position}:${IQ(e.color)}`).join(";")}`}function EQ(e){return e?`${e.style}:${IQ(e.color)}`:""}function kQ(e){return[`l:${EQ(e.left)}`,`r:${EQ(e.right)}`,`t:${EQ(e.top)}`,`b:${EQ(e.bottom)}`,`d:${EQ(e.diagonal)}`,e.diagonalUp?"du":"",e.diagonalDown?"dd":""].join("|")}function BQ(e,t){const n=t?.reuseStyleIdentity??!1,r={name:e?.name??"Calibri",size:e?.size??11,...e},i=[{key:CQ(r),font:r}],o=new Map([[i[0].key,0]]),a=[{key:"p:none|fg:|bg:",fill:{type:"pattern",pattern:"none"}},{key:"p:gray125|fg:|bg:",fill:{type:"pattern",pattern:"gray125"}}],s=new Map([[a[0].key,0],[a[1].key,1]]),l={},c=[{key:kQ(l),border:l}],u=new Map([[c[0].key,0]]),d=[],f=new Map;let h=164;const p="nf:0|f:0|fl:0|b:0|a:|p:",g=[{key:p,numFmtId:0,fontId:0,fillId:0,borderId:0}],m=new Map([[p,0]]);function y(e){const t=f.get(e);if(void 0!==t)return t;const n=h++;return d.push({id:n,formatCode:e}),f.set(e,n),n}function v(e){if(!e)return"";const t=[];return e.horizontal&&t.push(`h:${e.horizontal}`),e.vertical&&t.push(`v:${e.vertical}`),e.wrapText&&t.push("w"),e.shrinkToFit&&t.push("sf"),void 0!==e.textRotation&&t.push(`r:${e.textRotation}`),void 0!==e.indent&&t.push(`i:${e.indent}`),e.readingOrder&&t.push(`ro:${e.readingOrder}`),t.join(",")}function b(e){if(!e)return"";const t=[];return void 0!==e.locked&&t.push(`l:${e.locked}`),void 0!==e.hidden&&t.push(`h:${e.hidden}`),t.join(",")}const A=[],w=new Map;const x=n?new WeakMap:void 0;function I(e,t){if(x&&!t){const t=x.get(e);if(void 0!==t)return t}const n=e.font?function(e){const t=CQ(e),n=o.get(t);if(void 0!==n)return n;const r=i.length;return i.push({key:t,font:DN(e)}),o.set(t,r),r}(e.font):0,r=e.fill?function(e){const t=SQ(e),n=s.get(t);if(void 0!==n)return n;const r=a.length;return a.push({key:t,fill:MN(e)}),s.set(t,r),r}(e.fill):0,l=e.border?function(e){const t=kQ(e),n=u.get(t);if(void 0!==n)return n;const r=c.length;return c.push({key:t,border:TN(e)}),u.set(t,r),r}(e.border):0,d=e.numFmt?y(e.numFmt):0,f=[`nf:${d}`,`f:${n}`,`fl:${r}`,`b:${l}`,`a:${v(e.alignment)}`,`p:${b(e.protection)}`,t?"cb:1":"cb:0"].join("|"),h=m.get(f);if(void 0!==h)return x&&!t&&x.set(e,h),h;const p=g.length;return g.push({key:f,numFmtId:d,fontId:n,fillId:r,borderId:l,alignment:e.alignment?{...e.alignment}:void 0,protection:e.protection?{...e.protection}:void 0,hasCheckboxFeature:t||void 0}),m.set(f,p),x&&!t&&x.set(e,p),p}function C(e){const t={};if(e.horizontal&&(t.horizontal=e.horizontal),e.vertical&&(t.vertical=e.vertical),e.wrapText&&(t.wrapText=!0),e.shrinkToFit&&(t.shrinkToFit=!0),void 0!==e.textRotation&&(t.textRotation=e.textRotation),void 0!==e.indent&&(t.indent=e.indent),e.readingOrder){const n={ltr:1,rtl:2,context:0};t.readingOrder=n[e.readingOrder]}return XE("alignment",t)}return{addStyle:function(e){return I(e,!1)},addCheckboxStyle:function(e){return I(e??{},!0)},addNumFmt:y,addDxf:function(e){const t=function(e){const t=[];return e.font&&t.push(`f:${CQ(e.font)}`),e.fill&&t.push(`fl:${SQ(e.fill)}`),e.border&&t.push(`b:${kQ(e.border)}`),e.numFmt&&t.push(`nf:${e.numFmt}`),e.alignment&&t.push(`a:${v(e.alignment)}`),t.join("|")}(e),n=w.get(t);if(void 0!==n)return n;const r=A.length;return A.push(e),w.set(t,r),r},hasCheckboxFeature:function(){for(const e of g)if(e.hasCheckboxFeature)return!0;return!1},toXml:function(){const e=[];if(d.length>0){const t=d.map(e=>XE("numFmt",{numFmtId:e.id,formatCode:e.formatCode}));e.push(ZE("numFmts",{count:d.length},t))}const t=i.map(e=>bQ(e.font));e.push(ZE("fonts",{count:i.length},t));const n=a.map(e=>AQ(e.fill));e.push(ZE("fills",{count:a.length},n));const r=c.map(e=>xQ(e.border));e.push(ZE("borders",{count:c.length},r)),e.push(ZE("cellStyleXfs",{count:1},[XE("xf",{numFmtId:0,fontId:0,fillId:0,borderId:0})]));const o=g.map(e=>{const t={numFmtId:e.numFmtId,fontId:e.fontId,fillId:e.fillId,borderId:e.borderId,xfId:0};0!==e.numFmtId&&(t.applyNumberFormat=!0),0!==e.fontId&&(t.applyFont=!0),0!==e.fillId&&(t.applyFill=!0),0!==e.borderId&&(t.applyBorder=!0);const n=void 0!==e.alignment,r=void 0!==e.protection,i=!0===e.hasCheckboxFeature;if(n&&(t.applyAlignment=!0),r&&(t.applyProtection=!0),n||r||i){const o=[];return n&&o.push(C(e.alignment)),r&&o.push(function(e){const t={};return void 0!==e.locked&&(t.locked=e.locked?1:0),void 0!==e.hidden&&(t.hidden=e.hidden?1:0),XE("protection",t)}(e.protection)),i&&o.push(ZE("extLst",void 0,ZE("ext",{uri:iN,"xmlns:xfpb":rN},XE("xfpb:xfComplement",{i:"0"})))),ZE("xf",t,o)}return XE("xf",t)});if(e.push(ZE("cellXfs",{count:g.length},o)),e.push(ZE("cellStyles",{count:1},[XE("cellStyle",{name:"Normal",xfId:0,builtinId:0})])),A.length>0){const t=A.map(e=>{const t=[];if(e.font&&t.push(bQ(e.font)),e.numFmt){const n=y(e.numFmt);t.push(XE("numFmt",{numFmtId:n,formatCode:e.numFmt}))}return e.fill&&t.push(AQ(e.fill)),e.border&&t.push(xQ(e.border)),e.alignment&&t.push(C(e.alignment)),ZE("dxf",void 0,t)});e.push(ZE("dxfs",{count:A.length},t))}else e.push(XE("dxfs",{count:0}));return e.push(XE("tableStyles",{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"})),ek("styleSheet",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"},e)}}}function FQ(e){const t=e;return t.length>=8&&137===t[0]&&80===t[1]&&78===t[2]&&71===t[3]?"png":t.length>=3&&255===t[0]&&216===t[1]&&255===t[2]?"jpeg":t.length>=6&&71===t[0]&&73===t[1]&&70===t[2]?"gif":t.length>=12&&82===t[0]&&73===t[1]&&70===t[2]&&70===t[3]&&87===t[8]&&69===t[9]&&66===t[10]&&80===t[11]?"webp":function(e){const t=e.subarray(0,DQ);let n="";for(let e=0;e<t.length;e++)n+=String.fromCharCode(t[e]);const r=n.trimStart().replace(/^/,"");return!!r.startsWith("<")&&/<svg[\s>]/i.test(r)}(t)?"svg":"png"}const DQ=1024;const MQ="http://schemas.openxmlformats.org/officeDocument/2006/relationships",NQ="http://schemas.openxmlformats.org/drawingml/2006/chart",TQ=9525,QQ={png:"png",jpeg:"jpeg",gif:"gif",svg:"svg",webp:"webp"},RQ={png:"image/png",jpeg:"image/jpeg",gif:"image/gif",svg:"image/svg+xml",webp:"image/webp"};function LQ(e,t,n,r,i=1){const o=[],a=[],s=[];for(let n=0;n<e.length;n++){const r=e[n],i=t+n,l=`rId${n+1}`,c=QQ[r.type]??"png",u=RQ[r.type]??"image/png",d=`xl/media/image${i}.${c}`,f=`../media/image${i}.${c}`;o.push({path:d,data:r.data,contentType:u}),a.push(XE("Relationship",{Id:l,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:f}));const h=r.width?r.width*TQ:3e6,p=r.height?r.height*TQ:2e6,g=r.anchor.from.col,m=r.anchor.from.row,y=r.anchor.to?.col??g+3,v=r.anchor.to?.row??m+5,b=ZE("xdr:from",void 0,[ZE("xdr:col",void 0,String(g)),ZE("xdr:colOff",void 0,"0"),ZE("xdr:row",void 0,String(m)),ZE("xdr:rowOff",void 0,"0")]),A=ZE("xdr:to",void 0,[ZE("xdr:col",void 0,String(y)),ZE("xdr:colOff",void 0,"0"),ZE("xdr:row",void 0,String(v)),ZE("xdr:rowOff",void 0,"0")]),w={id:n+2,name:`Picture ${n+1}`};r.title&&(w.title=r.title),r.altText&&(w.descr=r.altText);const x=ZE("xdr:nvPicPr",void 0,[XE("xdr:cNvPr",w),ZE("xdr:cNvPicPr",void 0,[XE("a:picLocks",{noChangeAspect:1})])]),I=ZE("xdr:blipFill",void 0,[XE("a:blip",{"r:embed":l}),ZE("a:stretch",void 0,[XE("a:fillRect")])]),C=ZE("xdr:spPr",void 0,[ZE("a:xfrm",void 0,[XE("a:off",{x:0,y:0}),XE("a:ext",{cx:h,cy:p})]),ZE("a:prstGeom",{prst:"rect"},[XE("a:avLst")])]),S=ZE("xdr:pic",void 0,[x,I,C]),E=ZE("xdr:twoCellAnchor",void 0,[b,A,S,XE("xdr:clientData")]);s.push(E)}if(n&&n.length>0){let t=e.length+2;for(let e=0;e<n.length;e++){const r=n[e],i=r.anchor.from.col,o=r.anchor.from.row,a=r.anchor.to?.col??i+3,l=r.anchor.to?.row??o+3,c=r.width?r.width*TQ:2e6,u=r.height?r.height*TQ:5e5,d=ZE("xdr:from",void 0,[ZE("xdr:col",void 0,String(i)),ZE("xdr:colOff",void 0,"0"),ZE("xdr:row",void 0,String(o)),ZE("xdr:rowOff",void 0,"0")]),f=ZE("xdr:to",void 0,[ZE("xdr:col",void 0,String(a)),ZE("xdr:colOff",void 0,"0"),ZE("xdr:row",void 0,String(l)),ZE("xdr:rowOff",void 0,"0")]),h={id:t++,name:`TextBox ${e+1}`};r.title&&(h.title=r.title),r.altText&&(h.descr=r.altText);const p=ZE("xdr:nvSpPr",void 0,[XE("xdr:cNvPr",h),ZE("xdr:cNvSpPr",{txBox:1},[])]),g=[ZE("a:xfrm",void 0,[XE("a:off",{x:0,y:0}),XE("a:ext",{cx:c,cy:u})]),ZE("a:prstGeom",{prst:"rect"},[XE("a:avLst")])],m=r.style?.fillColor??"FFFFFF";g.push(ZE("a:solidFill",void 0,[XE("a:srgbClr",{val:m})]));const y=r.style?.borderColor??"000000";g.push(ZE("a:ln",void 0,[ZE("a:solidFill",void 0,[XE("a:srgbClr",{val:y})])]));const v=ZE("xdr:spPr",void 0,g),b={lang:"en-US",sz:100*(r.style?.fontSize??11)};r.style?.bold&&(b.b=1);const A=[];r.style?.color&&A.push(ZE("a:solidFill",void 0,[XE("a:srgbClr",{val:r.style.color})]));const w=A.length>0?ZE("a:rPr",b,A):XE("a:rPr",b),x=ZE("xdr:txBody",void 0,[XE("a:bodyPr",{wrap:"square"}),ZE("a:p",void 0,[ZE("a:r",void 0,[w,ZE("a:t",void 0,YE(r.text))])])]),I=ZE("xdr:sp",void 0,[p,v,x]),C=ZE("xdr:twoCellAnchor",void 0,[d,f,I,XE("xdr:clientData")]);s.push(C)}}const l=[];if(r&&r.length>0){let t=e.length+(n?.length??0)+2;for(let n=0;n<r.length;n++){const o=r[n],c=i+n,u=`rId${e.length+n+1}`;a.push(XE("Relationship",{Id:u,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",Target:`../charts/chart${c}.xml`}));const d=o.anchor.from.col,f=o.anchor.from.row,h=o.anchor.to?.col??d+8,p=o.anchor.to?.row??f+15,g=ZE("xdr:from",void 0,[ZE("xdr:col",void 0,String(d)),ZE("xdr:colOff",void 0,"0"),ZE("xdr:row",void 0,String(f)),ZE("xdr:rowOff",void 0,"0")]),m=ZE("xdr:to",void 0,[ZE("xdr:col",void 0,String(h)),ZE("xdr:colOff",void 0,"0"),ZE("xdr:row",void 0,String(p)),ZE("xdr:rowOff",void 0,"0")]),y={id:t++,name:`Chart ${n+1}`};o.frameTitle&&(y.title=o.frameTitle),o.altText&&(y.descr=o.altText);const v=ZE("xdr:nvGraphicFramePr",void 0,[XE("xdr:cNvPr",y),ZE("xdr:cNvGraphicFramePr",void 0,[])]),b=ZE("xdr:xfrm",void 0,[XE("a:off",{x:0,y:0}),XE("a:ext",{cx:0,cy:0})]),A=ZE("a:graphic",void 0,ZE("a:graphicData",{uri:NQ},[XE("c:chart",{"xmlns:c":NQ,"xmlns:r":MQ,"r:id":u})])),w=ZE("xdr:graphicFrame",{macro:""},[v,b,A]),x=ZE("xdr:twoCellAnchor",{editAs:"oneCell"},[g,m,w,XE("xdr:clientData")]);s.push(x),l.push({globalChartIndex:c})}}return{drawingXml:ek("xdr:wsDr",{"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main","xmlns:r":MQ},s),drawingRels:ek("Relationships",{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},a),images:o,charts:l}}function PQ(e,t){const n=e.showTitle??Boolean(e.title),r=function(e){if(!1===e.legend)return null;if(void 0===e.legend)return"scatter"===e.type?"b":"r";switch(e.legend){case"top":return"t";case"bottom":return"b";case"left":return"l";case"right":return"r";case"topRight":return"tr"}}(e),i=[];n&&e.title&&i.push(function(e,t,n,r,i,o,a,s,l,c,u,d,f,h,p,g,m){const y=void 0===n?0:n*Yk,v=void 0===r?1400:100*r,b=i?1:0,A=!0===o?1:void 0,w=!0===s?"sngStrike":void 0,x=!0===l?"sng":void 0,I=void 0!==a?ZE("a:solidFill",void 0,[Ek(a)]):void 0,C=c?XE("a:latin",{typeface:c}):void 0,S=[];I&&S.push(I),C&&S.push(C);const E=S.length>0?ZE("a:defRPr",{sz:v,b:b,i:A,u:x,strike:w},S):XE("a:defRPr",{sz:v,b:b,i:A,u:x,strike:w}),k=S.length>0?ZE("a:rPr",{lang:"en-US",sz:v,b:b,i:A,u:x,strike:w},S):XE("a:rPr",{lang:"en-US",sz:v,b:b,i:A,u:x,strike:w}),B=Hk(u),F=[ZE("c:tx",void 0,[ZE("c:rich",void 0,[ZE("a:bodyPr",{rot:y,spcFirstLastPara:1,vertOverflow:"ellipsis",wrap:"square",anchor:"ctr",anchorCtr:1},[]),XE("a:lstStyle"),ZE("a:p",void 0,[ZE("a:pPr",void 0,[E]),ZE("a:r",void 0,[k,ZE("a:t",void 0,YE(e))])])])])];void 0!==B&&F.push(B),F.push(XE("c:overlay",{val:t?1:0}));const D=Jk(d,f,h,p,g,m);return void 0!==D&&F.push(D),ZE("c:title",void 0,F)}(e.title,function(e){return!0===e.titleOverlay}(e),function(e){return Xk(e.titleRotation)}(e),function(e){return Kk(e.titleFontSize)}(e),function(e){return Zk(e.titleBold)}(e),function(e){return eB(e.titleItalic)}(e),function(e){return tB(e.titleColor)}(e),function(e){return nB(e.titleStrike)}(e),function(e){return rB(e.titleUnderline)}(e),function(e){return function(e){if("string"!=typeof e)return;const t=e.trim();return 0!==t.length?t:void 0}(e.titleFontFamily)}(e),function(e){return Uk(e.titleLayout)}(e),function(e){return tB(e.titleFillColor)}(e),function(e){return tB(e.titleBorderColor)}(e),function(e){return Nk(e.titleBorderWidth)}(e),function(e){return Tk(e.titleBorderDash)}(e),function(e){return gk(e.titleBorderCap)}(e),function(e){return mk(e.titleBorderCompound)}(e))),i.push(XE("c:autoTitleDeleted",{val:dF(e)?1:0}));const o=function(e){if(void 0===e)return;const t=[],n=Lk(e.rotX,-90,90);void 0!==n&&t.push(XE("c:rotX",{val:n}));const r=Lk(e.hPercent,5,500);void 0!==r&&t.push(XE("c:hPercent",{val:r}));const i=Lk(e.rotY,0,360);void 0!==i&&t.push(XE("c:rotY",{val:i}));const o=Lk(e.depthPercent,20,2e3);void 0!==o&&t.push(XE("c:depthPercent",{val:o})),!0===e.rAngAx?t.push(XE("c:rAngAx",{val:1})):!1===e.rAngAx&&t.push(XE("c:rAngAx",{val:0}));const a=Lk(e.perspective,0,240);return void 0!==a&&t.push(XE("c:perspective",{val:a})),ZE("c:view3D",void 0,t)}(e.view3D);void 0!==o&&i.push(o);const a=function(e){if("number"==typeof e&&Number.isFinite(e)&&Number.isInteger(e)&&!(e<=0||e>100))return ZE("c:floor",void 0,[XE("c:thickness",{val:e})])}(e.floorThickness);void 0!==a&&i.push(a);const s=function(e){if("number"==typeof e&&Number.isFinite(e)&&Number.isInteger(e)&&!(e<=0||e>100))return ZE("c:sideWall",void 0,[XE("c:thickness",{val:e})])}(e.sideWallThickness);void 0!==s&&i.push(s);const l=function(e){if("number"==typeof e&&Number.isFinite(e)&&Number.isInteger(e)&&!(e<=0||e>100))return ZE("c:backWall",void 0,[XE("c:thickness",{val:e})])}(e.backWallThickness);void 0!==l&&i.push(l),i.push(pD(e,t)),r&&i.push(aB(r,function(e){return!0===e.legendOverlay}(e),function(e){const t=e.legendEntries;if(!Array.isArray(t)||0===t.length)return[];const n=new Map;for(const e of t){if(!e||"object"!=typeof e)continue;const t=e.idx;if("number"!=typeof t||!Number.isFinite(t))continue;if(!Number.isInteger(t)||t<0)continue;const r={idx:t,delete:!0===e.delete};if("number"==typeof e.fontSize&&Number.isFinite(e.fontSize)){const t=Math.round(2*e.fontSize)/2;t>=1&&t<=oB&&(r.fontSize=t)}if(!0===e.bold?r.bold=!0:!1===e.bold&&(r.bold=!1),!0===e.italic?r.italic=!0:!1===e.italic&&(r.italic=!1),!0===e.underline?r.underline=!0:!1===e.underline&&(r.underline=!1),!0===e.strikethrough?r.strikethrough=!0:!1===e.strikethrough&&(r.strikethrough=!1),void 0!==e.color){const t=Sk(e.color);void 0!==t&&(r.color=t)}if("string"==typeof e.fontFamily){const t=e.fontFamily.trim();t.length>0&&(r.fontFamily=t)}n.set(t,r)}return Array.from(n.values()).sort((e,t)=>e.idx-t.idx)}(e),function(e){return Kk(e.legendFontSize)}(e),function(e){const t=e.legendBold;return!0===t||!1!==t&&void 0}(e),function(e){const t=e.legendItalic;return!0===t||!1!==t&&void 0}(e),function(e){const t=e.legendUnderline;return!0===t||!1!==t&&void 0}(e),function(e){if(!0===e.legendStrikethrough)return!0}(e),function(e){return tB(e.legendFontColor)}(e),function(e){return function(e){if("string"!=typeof e)return;const t=e.trim();return 0!==t.length?t:void 0}(e.legendFontFamily)}(e),function(e){return Uk(e.legendLayout)}(e),function(e){return tB(e.legendFillColor)}(e),function(e){return tB(e.legendBorderColor)}(e),function(e){return Nk(e.legendBorderWidth)}(e),function(e){return Tk(e.legendBorderDash)}(e),gk(e.legendBorderCap),mk(e.legendBorderCompound))),i.push(XE("c:plotVisOnly",{val:$Q(e)?1:0})),i.push(XE("c:dispBlanksAs",{val:UQ(e)})),i.push(XE("c:showDLblsOverMax",{val:HQ(e)?1:0}));const c=ZE("c:chart",void 0,i),u=[];(function(e){return!0===e.date1904})(e)&&u.push(XE("c:date1904",{val:1}));const d=function(e){const t=e.lang;return"string"!=typeof t?void 0:/^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$/.test(t)?t:void 0}(e);void 0!==d&&u.push(XE("c:lang",{val:d})),u.push(XE("c:roundedCorners",{val:zQ(e)?1:0}));const f=function(e){const t=e.style;return"number"!=typeof t?void 0:Number.isInteger(t)?t<1||t>48?void 0:t:void 0}(e);void 0!==f&&u.push(XE("c:style",{val:f}));const h=function(e){const t=e.protection;if(void 0===t||!1===t)return;if(!0===t)return{chartObject:!1,data:!1,formatting:!1,selection:!1,userInterface:!1};return{chartObject:!0===t.chartObject,data:!0===t.data,formatting:!0===t.formatting,selection:!0===t.selection,userInterface:!0===t.userInterface}}(e);void 0!==h&&u.push(function(e){return ZE("c:protection",void 0,[XE("c:chartObject",{val:e.chartObject?1:0}),XE("c:data",{val:e.data?1:0}),XE("c:formatting",{val:e.formatting?1:0}),XE("c:selection",{val:e.selection?1:0}),XE("c:userInterface",{val:e.userInterface?1:0})])}(h)),u.push(c);const p=function(e){const t=(s=e.chartSpaceFillColor,tB(s)),n=function(e){return tB(e)}(e.chartSpaceBorderColor),r=Nk(e.chartSpaceBorderWidth),i=Tk(e.chartSpaceBorderDash),o=gk(e.chartSpaceBorderCap),a=mk(e.chartSpaceBorderCompound);var s;if(void 0===t&&void 0===n&&void 0===r&&void 0===i&&void 0===o&&void 0===a)return;const l=[];void 0!==t&&l.push(ZE("a:solidFill",void 0,[Ek(t)]));if(void 0!==n||void 0!==r||void 0!==i||void 0!==o||void 0!==a){const e={};void 0!==r&&(e.w=Math.round(r*uk)),void 0!==o&&(e.cap=o),void 0!==a&&(e.cmpd=a);const t=[];void 0!==n&&t.push(ZE("a:solidFill",void 0,[Ek(n)])),void 0!==i&&t.push(XE("a:prstDash",{val:i})),l.push(0===t.length?XE("a:ln",e):ZE("a:ln",Object.keys(e).length>0?e:void 0,t))}return ZE("c:spPr",void 0,l)}(e);void 0!==p&&u.push(p);return{chartXml:ek("c:chartSpace",{"xmlns:c":"http://schemas.openxmlformats.org/drawingml/2006/chart","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},u),chartRels:ek("Relationships",{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},[])}}const OQ=new Set(["gap","zero","span"]);function UQ(e){const t=e.dispBlanksAs;return t&&OQ.has(t)?t:"gap"}function $Q(e){return"boolean"!=typeof e.plotVisOnly||e.plotVisOnly}function HQ(e){return"boolean"!=typeof e.showDLblsOverMax||e.showDLblsOverMax}function zQ(e){return"boolean"==typeof e.roundedCorners&&e.roundedCorners}const qQ="http://schemas.openxmlformats.org/spreadsheetml/2006/main";function jQ(e,t){const n=[];for(const[t,r]of e){if(!r.comment)continue;const[e,i]=t.split(","),o=parseInt(e,10),a=parseInt(i,10),s=rT(o,a),l=r.comment.author??"",c=r.comment.text;n.push({ref:s,row:o,col:a,author:l,text:c})}if(0===n.length)return null;n.sort((e,t)=>e.row-t.row||e.col-t.col);const r=new Map;for(const e of n)r.has(e.author)||r.set(e.author,r.size);const i=function(e,t){const n=[];for(const[e]of t)n.push(ZE("author",void 0,YE(e)));const r=ZE("authors",void 0,n),i=[];for(const n of e){const e=t.get(n.author)??0,r=ZE("text",void 0,[ZE("r",void 0,[ZE("t",void 0,YE(n.text))])]);i.push(ZE("comment",{ref:n.ref,authorId:e},[r]))}const o=ZE("commentList",void 0,i);return ek("comments",{xmlns:qQ},[r,o])}(n,r),o=function(e,t){const n=[];n.push('<xml xmlns:v="urn:schemas-microsoft-com:vml"',' xmlns:o="urn:schemas-microsoft-com:office:office"',' xmlns:x="urn:schemas-microsoft-com:office:excel">'),n.push('<o:shapelayout v:ext="edit">',`<o:idmap v:ext="edit" data="${t+1}"/>`,"</o:shapelayout>"),n.push('<v:shapetype id="_x0000_t202" coordsize="21600,21600" o:spt="202"',' path="m,l,21600r21600,l21600,xe">','<v:stroke joinstyle="miter"/>','<v:path gradientshapeok="t" o:connecttype="rect"/>',"</v:shapetype>");const r=1024*(t+1)+1;for(let t=0;t<e.length;t++){const i=e[t],o=r+t,a=i.col+1,s=i.row,l=a+2,c=s+4,u=48*(i.col+1),d=15*i.row;n.push(`<v:shape id="_x0000_s${o}" type="#_x0000_t202"`,` style="position:absolute;margin-left:${u}pt;margin-top:${d}pt;`,`width:108pt;height:59.25pt;z-index:${t+1};visibility:hidden"`,' fillcolor="#ffffe1" o:insetmode="auto">','<v:fill color2="#ffffe1"/>','<v:shadow on="t" color="black" obscured="t"/>','<v:path o:connecttype="none"/>','<v:textbox style="mso-direction-alt:auto">','<div style="text-align:left"/>',"</v:textbox>",'<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",`<x:Anchor>${a},15,${s},2,${l},31,${c},4</x:Anchor>`,"<x:AutoFill>False</x:AutoFill>",`<x:Row>${i.row}</x:Row>`,`<x:Column>${i.col}</x:Column>`,"</x:ClientData>","</v:shape>")}return n.push("</xml>"),n.join("")}(n,t);return{commentsXml:i,vmlXml:o,comments:n}}function WQ(e,t,n){const r=e.displayName??e.name,i=e.range??"",o=!1!==e.showAutoFilter,a=!0===e.showTotalRow,s={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",id:t,name:e.name,displayName:r,ref:i};a?s.totalsRowCount=1:s.totalsRowShown=0;const l=[];if(o){const e=a?function(e){const t=e.indexOf(":");if(-1===t)return e;const n=e.slice(t+1);let r=n.length;for(;r>0&&n.charCodeAt(r-1)>=48&&n.charCodeAt(r-1)<=57;)r--;const i=n.slice(0,r),o=parseInt(n.slice(r),10);return isNaN(o)||o<=1?e:`${e.slice(0,t+1)}${i}${o-1}`}(i):i;l.push(XE("autoFilter",{ref:e}))}const c=[];for(let t=0;t<e.columns.length;t++){const n=e.columns[t],r={id:t+1,name:n.name};if(a&&n.totalFunction&&(r.totalsRowFunction=n.totalFunction),a&&n.totalLabel&&(r.totalsRowLabel=n.totalLabel),a&&"custom"===n.totalFunction&&n.totalFormula){const e=ZE("totalsRowFormula",void 0,YE(n.totalFormula));c.push(ZE("tableColumn",r,[e]))}else c.push(XE("tableColumn",r))}l.push(ZE("tableColumns",{count:e.columns.length},c));const u=e.style??"TableStyleMedium2",d=!1!==e.showRowStripes,f=!0===e.showColumnStripes;l.push(XE("tableStyleInfo",{name:u,showFirstColumn:0,showLastColumn:0,showRowStripes:d?1:0,showColumnStripes:f?1:0}));return{tableXml:ek("table",s,l),tableId:t}}function _Q(e,t){const n=e.columns.length;let r=0;if(t.rows)r=t.rows.length;else if(t.data){const e=t.columns?.some(e=>e.header);r=t.data.length+(e?1:0)}e.showTotalRow&&(r+=1),r<1&&(r=1);return`${tT(0)}1:${tT(n-1)}${r}`}const VQ="http://schemas.openxmlformats.org/spreadsheetml/2006/main",YQ="http://schemas.openxmlformats.org/officeDocument/2006/relationships",GQ="http://schemas.openxmlformats.org/package/2006/relationships",JQ="http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheRecords",XQ="http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition";function KQ(e,t,n,r=1){const i=function(e,t){const n=t.fieldNames.map((e,n)=>({index:n,name:e,axis:"hidden",axisOrder:0,kind:eR(t.dataRows,n)})),r=(e,t)=>{if(e)for(let r=0;r<e.length;r++){const i=n.find(t=>t.name===e[r]);i&&(i.axis=t,i.axisOrder=r)}};r(e.rows,"row"),r(e.columns,"col"),r(e.pages,"page");const i=[];for(let r=0;r<e.values.length;r++){const o=e.values[r],a=t.fieldNames.indexOf(o.field);if(-1===a)continue;n[a].axis="data",n[a].axisOrder=r;const s=o.function??"sum",l={fieldIndex:a,function:s,displayName:o.displayName??oR(s,o.field)};void 0!==o.numberFormat&&(l.numberFormat=o.numberFormat),i.push(l)}for(const e of n){if("data"===e.axis||"hidden"===e.axis)continue;if("string"!==e.kind)continue;const n=new Set,r=[];for(const i of t.dataRows){const t=i[e.index],o=null==t?"":String(t);n.has(o)||(n.add(o),r.push(o))}e.sharedStrings=r,e.sharedIndex=new Map(r.map((e,t)=>[e,t]))}return{fields:n,dataFieldDefs:i}}(e,t),o=function(e,t){const n=ZE("cacheSource",{type:"worksheet"},[XE("worksheetSource",{ref:e.ref,sheet:e.sheetName})]),r=[];for(const n of t.fields)r.push(tR(n,e.dataRows));return ek("pivotCacheDefinition",{xmlns:VQ,"xmlns:r":YQ,"r:id":"rId1",refreshOnLoad:1,refreshedBy:"hucre",refreshedDate:0,createdVersion:6,refreshedVersion:6,minRefreshableVersion:3,recordCount:e.dataRows.length},[n,ZE("cacheFields",{count:t.fields.length},r)])}(t,i),a=function(e){return ek("Relationships",{xmlns:GQ},[XE("Relationship",{Id:"rId1",Type:JQ,Target:`pivotCacheRecords${e}.xml`})])}(r),s=function(e,t){const n=[];for(const r of e.dataRows){const e=[];for(const n of t.fields)e.push(nR(r[n.index],n));n.push(ZE("r",void 0,e))}return ek("pivotCacheRecords",{xmlns:VQ,"xmlns:r":YQ,count:e.dataRows.length},n)}(t,i),l=function(e,t,n){const r=t.fields.filter(e=>"row"===e.axis).sort((e,t)=>e.axisOrder-t.axisOrder),i=t.fields.filter(e=>"col"===e.axis).sort((e,t)=>e.axisOrder-t.axisOrder),o=t.fields.filter(e=>"page"===e.axis).sort((e,t)=>e.axisOrder-t.axisOrder),a=e.targetCell??"A1",s=e.styleName??"PivotStyleLight16",l=e.dataCaption??"Values",c=function(e,t,n,r){const{col:i,row:o}=function(e){const t=/^([A-Z]+)(\d+)$/i.exec(e.trim());if(!t)throw new Error(`Invalid pivot targetCell "${e}" — expected an A1-style reference`);const n=t[1].toUpperCase();let r=0;for(let e=0;e<n.length;e++)r=26*r+(n.charCodeAt(e)-64);return{col:r-1,row:parseInt(t[2],10)-1}}(e),a=0,s=Math.max(1,n)+(r.dataFieldDefs.length>1?1:0),l=Math.max(1,t),c=Math.max(2,t+Math.max(1,r.dataFieldDefs.length)),u=s+2,d=iR(o,i),f=iR(o+u-1,i+c-1);return{ref:`${d}:${f}`,firstHeaderRow:a,firstDataRow:s,firstDataCol:l}}(a,r.length,i.length,t),u=[];u.push(XE("location",c));const d=[];for(const e of t.fields)d.push(rR(e));u.push(ZE("pivotFields",{count:t.fields.length},d)),r.length>0&&(u.push(ZE("rowFields",{count:r.length},r.map(e=>XE("field",{x:e.index})))),u.push(ZE("rowItems",{count:1},[ZE("i",void 0,[XE("x")])])));if(i.length>0)u.push(ZE("colFields",{count:i.length},i.map(e=>XE("field",{x:e.index})))),u.push(ZE("colItems",{count:1},[ZE("i",void 0,[XE("x")])]));else if(t.dataFieldDefs.length>1){u.push(ZE("colFields",{count:1},[XE("field",{x:-2})]));const e=[];for(let n=0;n<t.dataFieldDefs.length;n++)e.push(ZE("i",0===n?void 0:{i:n},[XE("x",{v:n})]));u.push(ZE("colItems",{count:t.dataFieldDefs.length},e))}o.length>0&&u.push(ZE("pageFields",{count:o.length},o.map(e=>XE("pageField",{fld:e.index,hier:-1}))));if(t.dataFieldDefs.length>0){const e=[];for(const n of t.dataFieldDefs){const t={name:n.displayName,fld:n.fieldIndex,baseField:0,baseItem:0};"sum"!==n.function&&(t.subtotal=n.function),void 0!==n.numberFormat&&(t.numFmtId=0),e.push(XE("dataField",t))}u.push(ZE("dataFields",{count:t.dataFieldDefs.length},e))}return u.push(XE("pivotTableStyleInfo",{name:s,showRowHeaders:1,showColHeaders:1,showRowStripes:0,showColStripes:0,showLastColumn:1})),ek("pivotTableDefinition",{xmlns:VQ,"xmlns:r":YQ,name:e.name,cacheId:n,applyNumberFormats:0,applyBorderFormats:0,applyFontFormats:0,applyPatternFormats:0,applyAlignmentFormats:0,applyWidthHeightFormats:1,dataCaption:l,updatedVersion:6,minRefreshableVersion:3,useAutoFormatting:1,itemPrintTitles:1,createdVersion:6,indent:0,outline:1,outlineData:1,multipleFieldFilters:0},u)}(e,i,n),c=function(e){return ek("Relationships",{xmlns:GQ},[XE("Relationship",{Id:"rId1",Type:XQ,Target:`../pivotCache/pivotCacheDefinition${e}.xml`})])}(r);return{cacheDefinitionXml:o,cacheDefinitionRels:a,cacheRecordsXml:s,pivotTableXml:l,pivotTableRels:c}}function ZQ(e,t,n){if(n.length<2)throw new Error(`Pivot "${e.name}" source sheet "${t}" needs at least a header row plus one data row (got ${n.length}).`);const r=n[0],i=[];for(let e=0;e<r.length;e++){const t=r[e];i.push(null==t?`Column${e+1}`:String(t))}const o=[];for(let e=1;e<n.length;e++){const t=n[e],r=[];for(let e=0;e<i.length;e++)r.push(e<t.length?t[e]:null);o.push(r)}const a=new Set(i),s=[...e.rows??[],...e.columns??[],...e.pages??[]];for(const t of e.values)s.push(t.field);for(const t of s)if(!a.has(t))throw new Error(`Pivot "${e.name}" references field "${t}" which is not in the source header (have: ${i.join(", ")}).`);const l=e.sourceRange??function(e,t){if(e<=0||t<=0)throw new Error("Pivot source range must contain at least one column and row");const n=iR(0,0),r=iR(t-1,e-1);return`${n}:${r}`}(i.length,n.length);return{sheetName:t,fieldNames:i,dataRows:o,ref:l}}function eR(e,t){for(const n of e){const e=n[t];if(null!=e&&""!==e&&("number"!=typeof e||!Number.isFinite(e)))return"string"}return"number"}function tR(e,t){if("string"===e.kind){const t=[];if(e.sharedStrings)for(const n of e.sharedStrings)t.push(XE("s",{v:n}));return ZE("cacheField",{name:e.name,numFmtId:0},[ZE("sharedItems",{count:t.length},t)])}let n=1/0,r=-1/0,i=!1;for(const o of t){const t=o[e.index];null!=t&&""!==t?"number"==typeof t&&(t<n&&(n=t),t>r&&(r=t)):i=!0}const o={containsSemiMixedTypes:0,containsString:0,containsNumber:1,containsInteger:Number.isInteger(n)&&Number.isInteger(r)?1:0};return i&&(o.containsBlank=1),Number.isFinite(n)&&(o.minValue=n),Number.isFinite(r)&&(o.maxValue=r),ZE("cacheField",{name:e.name,numFmtId:0},[XE("sharedItems",o)])}function nR(e,t){if(null==e||""===e)return XE("m");if("string"===t.kind){const n=t.sharedIndex?.get(String(e));return void 0!==n?XE("x",{v:n}):XE("s",{v:String(e)})}return"number"==typeof e&&Number.isFinite(e)?XE("n",{v:e}):"boolean"==typeof e?XE("b",{v:e?1:0}):XE("s",{v:String(e)})}function rR(e){if("data"===e.axis)return XE("pivotField",{dataField:1,showAll:0});if("hidden"===e.axis)return XE("pivotField",{showAll:0});const t="row"===e.axis?"axisRow":"col"===e.axis?"axisCol":"axisPage",n=[];if(e.sharedStrings)for(let t=0;t<e.sharedStrings.length;t++)n.push(XE("item",{x:t}));return n.push(XE("item",{t:"default"})),ZE("pivotField",{axis:t,showAll:0},[ZE("items",{count:n.length},n)])}function iR(e,t){let n=t,r="";for(;n>=0;)r=String.fromCharCode(65+n%26)+r,n=Math.floor(n/26)-1;return`${r}${e+1}`}function oR(e,t){return`${"sum"===e?"Sum":"count"===e?"Count":"average"===e?"Average":"max"===e?"Max":"min"===e?"Min":"product"===e?"Product":"countNums"===e?"Count Nums":"stdDev"===e?"StdDev":"stdDevp"===e?"StdDevp":"var"===e?"Var":"Varp"} of ${t}`}function aR(e){return e.toISOString().replace(/\.\d{3}Z$/,"Z")}const sR=new TextEncoder;async function lR(e){const t=ZN(e.sheets),{defaultFont:n,dateSystem:r,namedRanges:i,activeSheet:o,workbookProtection:a}=e;!function(e){const t=new Map;for(let n=0;n<e.length;n++){const r=e[n].name;JN(r,n);const i=r.toLowerCase(),o=t.get(i);if(void 0!==o)throw new rE(`Duplicate sheet name "${r}" (sheets ${o+1} and ${n+1}); Excel compares sheet names case-insensitively`);t.set(i,n)}}(t);const s=function(e){const t=e.properties;if(t?.description)return t;for(const n of e.sheets){const e=n.a11y?.summary;if(e&&e.trim().length>0)return{...t,description:e}}return t}(e),l=BQ(n,{reuseStyleIdentity:!0}),c=function(){const e=[],t=new Map;return{add:function(n){const r=t.get(n);if(void 0!==r)return r;const i=e.length;return e.push(n),t.set(n,i),i},getAll:function(){return e},count:function(){return e.length}}}();let u=1;const d=[];for(const e of t)e.tables&&e.tables.length>0?(d.push(u),u+=e.tables.length):d.push(void 0);let f=1;const h=[];for(const e of t)e.pivotTables&&e.pivotTables.length>0?(h.push(f),f+=e.pivotTables.length):h.push(void 0);const p=[];for(let n=0;n<t.length;n++){const i=uT(t[n],l,c,r,d[n],"inline"===e.stringMode,h[n]);p.push(i)}const g=c.count()>0,m=[],y=[],v=new Set;let b=1,A=1;const w=[],x=[];for(let e=0;e<t.length;e++){const n=t[e],r=n.images&&n.images.length>0,i=n.textBoxes&&n.textBoxes.length>0,o=n.charts&&n.charts.length>0;if(r||i||o){const t=LQ(n.images??[],b,n.textBoxes,n.charts,A);m.push(t),y.push(e+1);for(const e of t.images){const t=e.path.split(".").pop();t&&v.add(t)}n.images&&(b+=n.images.length);const r=[];if(n.charts){for(let e=0;e<n.charts.length;e++){const t=PQ(n.charts[e],n.name),i=A+e;r.push({globalIndex:i,xml:t.chartXml,rels:t.chartRels}),x.push(i)}A+=n.charts.length}w.push(r)}else m.push(null),w.push([])}const{paths:I,nextIndex:C}=function(e,t,n){const r=[];let i=t;for(const t of e){if(!t.backgroundImage){r.push(null);continue}const e=FQ(t.backgroundImage);r.push(`xl/media/image${i}.${e}`),n.add(e),i++}return{paths:r,nextIndex:i}}(t,b,v);b=C;const S=[],E=[];for(let e=0;e<t.length;e++){const n=t[e];if(n.cells){const t=jQ(n.cells,e);t?(S.push(t),E.push(e+1)):S.push(null)}else S.push(null)}const k=[];for(const e of p)for(const t of e.tables)k.push(t.globalTableIndex);const B=[];for(let e=0;e<t.length;e++){const n=t[e];if(!n.pivotTables||0===n.pivotTables.length)continue;const r=h[e];if(void 0!==r)for(let e=0;e<n.pivotTables.length;e++){const i=n.pivotTables[e],o=i.sourceSheet??n.name,a=t.find(e=>e.name===o);if(!a)throw new Error(`Pivot "${i.name}" sourceSheet "${o}" not found in workbook`);const s=cR(a),l=r+e,c=KQ(i,ZQ(i,o,s),l-1,l);B.push({parts:c,globalIndex:l})}}const F=B.map(e=>e.globalIndex),D=B.map(e=>({rId:`rIdPivot${e.globalIndex}`,target:`pivotCache/pivotCacheDefinition${e.globalIndex}.xml`})),M=B.map((e,t)=>({cacheId:e.globalIndex-1,rId:D[t].rId})),N=new gQ,T=function(e){if(!e?.custom)return null;const t=Object.entries(e.custom);if(0===t.length)return null;const n=[];let r=2;for(const[e,i]of t){let t;if("string"==typeof i)t=ZE("vt:lpwstr",void 0,YE(i));else if("number"==typeof i)t=Number.isInteger(i)?ZE("vt:i4",void 0,String(i)):ZE("vt:r8",void 0,String(i));else if("boolean"==typeof i)t=ZE("vt:bool",void 0,i?"true":"false");else{if(!(i instanceof Date))continue;t=ZE("vt:filetime",void 0,aR(i))}n.push(ZE("property",{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r++,name:e},t))}return 0===n.length?null:ek("Properties",{xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},n)}(s),Q=null!==T,R=void 0!==e.vbaProject&&e.vbaProject.length>0,L=l.hasCheckboxFeature(),P=p.some(e=>e.hasDynamicArray),O={sheetCount:t.length,hasSharedStrings:g,drawingIndices:y.length>0?y:void 0,chartIndices:x.length>0?x:void 0,imageExtensions:v.size>0?v:void 0,commentIndices:E.length>0?E:void 0,tableIndices:k.length>0?k:void 0,pivotTableIndices:F.length>0?F:void 0,pivotCacheDefinitionIndices:F.length>0?F:void 0,pivotCacheRecordIndices:F.length>0?F:void 0,hasCoreProps:!0,hasAppProps:!0,hasCustomProps:Q,hasMacros:R,hasFeaturePropertyBag:L,hasMetadata:P};N.add("[Content_Types].xml",sR.encode(function(e,t){let n;n="number"==typeof e?{sheetCount:e,hasSharedStrings:t??!1}:e;const r=[];if(r.push(XE("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"})),r.push(XE("Default",{Extension:"xml",ContentType:"application/xml"})),n.hasMacros&&r.push(XE("Default",{Extension:"bin",ContentType:"application/vnd.ms-office.vbaProject"})),n.imageExtensions)for(const e of n.imageExtensions){const t=mQ[e];t&&r.push(XE("Default",{Extension:e,ContentType:t}))}r.push(XE("Override",{PartName:"/xl/workbook.xml",ContentType:n.hasMacros?"application/vnd.ms-excel.sheet.macroEnabled.main+xml":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}));for(let e=1;e<=n.sheetCount;e++)r.push(XE("Override",{PartName:`/xl/worksheets/sheet${e}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"}));if(r.push(XE("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"})),r.push(XE("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"})),n.hasSharedStrings&&r.push(XE("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"})),n.drawingIndices)for(const e of n.drawingIndices)r.push(XE("Override",{PartName:`/xl/drawings/drawing${e}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"}));if(n.chartIndices)for(const e of n.chartIndices)r.push(XE("Override",{PartName:`/xl/charts/chart${e}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawingml.chart+xml"}));if(n.commentIndices&&n.commentIndices.length>0&&r.push(XE("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"})),n.commentIndices)for(const e of n.commentIndices)r.push(XE("Override",{PartName:`/xl/comments${e}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"}));if(n.tableIndices)for(const e of n.tableIndices)r.push(XE("Override",{PartName:`/xl/tables/table${e}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"}));if(n.threadedCommentSheetIndices)for(const e of n.threadedCommentSheetIndices)r.push(XE("Override",{PartName:`/xl/threadedComments/threadedComment${e}.xml`,ContentType:"application/vnd.ms-excel.threadedcomments+xml"}));if(n.hasPersons&&r.push(XE("Override",{PartName:"/xl/persons/person.xml",ContentType:"application/vnd.ms-excel.person+xml"})),n.externalLinkIndices)for(const e of n.externalLinkIndices)r.push(XE("Override",{PartName:`/xl/externalLinks/externalLink${e}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml"}));if(n.hasCellImages&&r.push(XE("Override",{PartName:"/xl/cellimages.xml",ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})),n.pivotTableIndices)for(const e of n.pivotTableIndices)r.push(XE("Override",{PartName:`/xl/pivotTables/pivotTable${e}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml"}));if(n.pivotCacheDefinitionIndices)for(const e of n.pivotCacheDefinitionIndices)r.push(XE("Override",{PartName:`/xl/pivotCache/pivotCacheDefinition${e}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml"}));if(n.pivotCacheRecordIndices)for(const e of n.pivotCacheRecordIndices)r.push(XE("Override",{PartName:`/xl/pivotCache/pivotCacheRecords${e}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml"}));if(n.slicerIndices)for(const e of n.slicerIndices)r.push(XE("Override",{PartName:`/xl/slicers/slicer${e}.xml`,ContentType:"application/vnd.ms-excel.slicer+xml"}));if(n.slicerCacheIndices)for(const e of n.slicerCacheIndices)r.push(XE("Override",{PartName:`/xl/slicerCaches/slicerCache${e}.xml`,ContentType:"application/vnd.ms-excel.slicerCache+xml"}));if(n.timelineIndices)for(const e of n.timelineIndices)r.push(XE("Override",{PartName:`/xl/timelines/timeline${e}.xml`,ContentType:"application/vnd.ms-excel.timeline+xml"}));if(n.timelineCacheIndices)for(const e of n.timelineCacheIndices)r.push(XE("Override",{PartName:`/xl/timelineCaches/timelineCache${e}.xml`,ContentType:"application/vnd.ms-excel.timelineCache+xml"}));if(n.chartStyleIndices)for(const e of n.chartStyleIndices)r.push(XE("Override",{PartName:`/xl/charts/style${e}.xml`,ContentType:"application/vnd.ms-office.chartstyle+xml"}));if(n.chartColorsIndices)for(const e of n.chartColorsIndices)r.push(XE("Override",{PartName:`/xl/charts/colors${e}.xml`,ContentType:"application/vnd.ms-office.chartcolorstyle+xml"}));return n.hasMetadata&&r.push(XE("Override",{PartName:`/${_N}`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml"})),n.hasFeaturePropertyBag&&r.push(XE("Override",{PartName:`/${oN}`,ContentType:"application/vnd.ms-excel.featurepropertybag+xml"})),n.hasCoreProps&&r.push(XE("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"})),n.hasAppProps&&r.push(XE("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"})),n.hasCustomProps&&r.push(XE("Override",{PartName:"/docProps/custom.xml",ContentType:"application/vnd.openxmlformats-officedocument.custom-properties+xml"})),ek("Types",{xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},r)}(O))),N.add("_rels/.rels",sR.encode(function(e){const t=[];t.push(XE("Relationship",{Id:"rId1",Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Target:"xl/workbook.xml"}));let n=2;return e?.hasCoreProps&&t.push(XE("Relationship",{Id:"rId"+n++,Type:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",Target:"docProps/core.xml"})),e?.hasAppProps&&t.push(XE("Relationship",{Id:"rId"+n++,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Target:"docProps/app.xml"})),e?.hasCustomProps&&t.push(XE("Relationship",{Id:"rId"+n++,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",Target:"docProps/custom.xml"})),ek("Relationships",{xmlns:yQ},t)}({hasCoreProps:!0,hasAppProps:!0,hasCustomProps:Q}))),N.add("docProps/core.xml",sR.encode(function(e){const t=[];e?.title&&t.push(ZE("dc:title",void 0,YE(e.title))),e?.subject&&t.push(ZE("dc:subject",void 0,YE(e.subject))),e?.creator&&t.push(ZE("dc:creator",void 0,YE(e.creator))),e?.keywords&&t.push(ZE("cp:keywords",void 0,YE(e.keywords))),e?.description&&t.push(ZE("dc:description",void 0,YE(e.description))),e?.lastModifiedBy&&t.push(ZE("cp:lastModifiedBy",void 0,YE(e.lastModifiedBy))),e?.category&&t.push(ZE("cp:category",void 0,YE(e.category))),e?.created&&t.push(ZE("dcterms:created",{"xsi:type":"dcterms:W3CDTF"},aR(e.created)));const n=e?.modified??new Date;return t.push(ZE("dcterms:modified",{"xsi:type":"dcterms:W3CDTF"},aR(n))),ek("cp:coreProperties",{"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},t)}(s))),N.add("docProps/app.xml",sR.encode(function(e){const t=[];return t.push(ZE("Application",void 0,"hucre")),t.push(ZE("DocSecurity",void 0,"0")),e?.company&&t.push(ZE("Company",void 0,YE(e.company))),e?.manager&&t.push(ZE("Manager",void 0,YE(e.manager))),ek("Properties",{xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"},t)}(s))),T&&N.add("docProps/custom.xml",sR.encode(T));const U=function(e,t){const n=t?[...t]:[];for(const t of e){const e=t.pageSetup;if(!e)continue;e.printArea&&n.push({name:"_xlnm.Print_Area",range:`${t.name}!${e.printArea}`,scope:t.name});const r=[];e.printTitlesRow&&r.push(`${t.name}!${e.printTitlesRow}`),e.printTitlesColumn&&r.push(`${t.name}!${e.printTitlesColumn}`),r.length>0&&n.push({name:"_xlnm.Print_Titles",range:r.join(","),scope:t.name})}return n}(t,i);N.add("xl/workbook.xml",sR.encode(function(e,t,n,r,i,o,a,s,l){const c=[];for(let t=0;t<e.length;t++){const n=e[t],r={name:n.name,sheetId:t+1,"r:id":`rId${t+1}`};n.hidden?r.state="hidden":n.veryHidden&&(r.state="veryHidden"),c.push(XE("sheet",r))}const u=[];if("1904"===n&&u.push(XE("workbookPr",{date1904:1})),i){const e={};i.lockStructure&&(e.lockStructure=1),i.lockWindows&&(e.lockWindows=1),i.password&&(e.workbookPassword=YN(i.password)),u.push(XE("workbookProtection",e))}const d=r??0;if(u.push(ZE("bookViews",void 0,[XE("workbookView",{xWindow:0,yWindow:0,windowWidth:16384,windowHeight:8192,activeTab:d})])),u.push(ZE("sheets",void 0,c)),o&&o.length>0){const e=o.map(e=>XE("externalReference",{"r:id":e.rId}));u.push(ZE("externalReferences",void 0,e))}if(t&&t.length>0){const n=new Map;for(let t=0;t<e.length;t++)n.set(e[t].name,t);const r=[];for(const e of t){const t={name:e.name};if(void 0!==e.scope){const r=n.get(e.scope);void 0!==r&&(t.localSheetId=r)}e.comment&&(t.comment=e.comment),r.push(ZE("definedName",t,YE(e.range)))}u.push(ZE("definedNames",void 0,r))}if(u.push(XE("calcPr",{calcId:0,fullCalcOnLoad:1})),a&&a.length>0){const e=a.map(e=>XE("pivotCache",{cacheId:e.cacheId,"r:id":e.rId}));u.push(ZE("pivotCaches",void 0,e))}const f=[];if(s&&s.length>0){const e=ZE("x14:slicerCaches",void 0,s.map(e=>XE("x14:slicerCache",{"r:id":e.rId})));f.push(ZE("ext",{uri:"{BBE1A952-AA13-448E-AADC-164F8A28A991}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},[e]))}if(l&&l.length>0){const e=ZE("x15:timelineCachePivotCaches",void 0,l.map(e=>XE("x15:timelineCachePivotCache",{"r:id":e.rId})));f.push(ZE("ext",{uri:"{7E03D99C-DC04-49D9-9315-930204A7B6E9}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},[e]))}return f.length>0&&u.push(ZE("extLst",void 0,f)),ek("workbook",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},u)}(t,U.length>0?U:void 0,r,o,a,void 0,M.length>0?M:void 0))),N.add("xl/_rels/workbook.xml.rels",sR.encode(function(e,t,n,r,i,o,a,s,l,c,u){const d=[];for(let t=1;t<=e;t++)d.push(XE("Relationship",{Id:`rId${t}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",Target:`worksheets/sheet${t}.xml`}));let f=e+1;if(d.push(XE("Relationship",{Id:`rId${f}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Target:"styles.xml"})),f++,t&&(d.push(XE("Relationship",{Id:`rId${f}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Target:"sharedStrings.xml"})),f++),d.push(XE("Relationship",{Id:`rId${f}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Target:"theme/theme1.xml"})),f++,u&&(d.push(XE("Relationship",{Id:`rId${f}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",Target:"metadata.xml"})),f++),n&&(d.push(XE("Relationship",{Id:`rId${f}`,Type:"http://schemas.microsoft.com/office/2006/relationships/vbaProject",Target:"vbaProject.bin"})),f++),r&&(d.push(XE("Relationship",{Id:`rId${f}`,Type:"http://schemas.microsoft.com/office/2022/11/relationships/FeaturePropertyBag",Target:"featurePropertyBag/featurePropertyBag.xml"})),f++),i&&(d.push(XE("Relationship",{Id:`rId${f}`,Type:"http://schemas.microsoft.com/office/2017/10/relationships/person",Target:"persons/person.xml"})),f++),o){for(const e of o)d.push(XE("Relationship",{Id:e.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",Target:e.target}));f+=o.length}if(c&&(d.push(XE("Relationship",{Id:`rId${f}`,Type:"http://www.wps.cn/officeDocument/2017/relationships/cellimage",Target:"cellimages.xml"})),f++),a)for(const e of a)d.push(XE("Relationship",{Id:e.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition",Target:e.target}));if(s)for(const e of s)d.push(XE("Relationship",{Id:e.rId,Type:"http://schemas.microsoft.com/office/2007/relationships/slicerCache",Target:e.target}));if(l)for(const e of l)d.push(XE("Relationship",{Id:e.rId,Type:"http://schemas.microsoft.com/office/2011/relationships/timelineCache",Target:e.target}));return ek("Relationships",{xmlns:yQ},d)}(t.length,g,R,L,void 0,void 0,D.length>0?D:void 0,void 0,void 0,void 0,P))),N.add("xl/styles.xml",sR.encode(l.toXml())),N.add("xl/theme/theme1.xml",sR.encode('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Calibri Light"/><a:ea typeface=""/><a:cs typeface=""/></a:majorFont><a:minorFont><a:latin typeface="Calibri"/><a:ea typeface=""/><a:cs typeface=""/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:ln><a:ln w="12700"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:ln><a:ln w="19050"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements></a:theme>')),g&&N.add("xl/sharedStrings.xml",sR.encode(function(e){const t=e.getAll(),n=t.length;if(0===n)return ek("sst",{xmlns:eT,count:0,uniqueCount:0},"");const r=[];for(const e of t)r.push(ZE("si",void 0,[KE(e)]));return ek("sst",{xmlns:eT,count:n,uniqueCount:n},r)}(c))),P&&N.add(_N,sR.encode(function(){const e=XE("metadataType",{name:jN,minSupportedVersion:12e4,copy:1,pasteAll:1,pasteValues:1,merge:1,splitFirst:1,rowColShift:1,clearFormats:1,clearComments:1,assign:1,coerce:1,cellMeta:1}),t=ZE("bk",void 0,[ZE("extLst",void 0,[ZE("ext",{uri:WN},[XE("xda:dynamicArrayProperties",{fDynamic:1,fCollapsed:0})])])]),n=ZE("bk",void 0,[XE("rc",{t:1,v:0})]);return ek("metadata",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:xda":"http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray"},[ZE("metadataTypes",{count:1},[e]),ZE("futureMetadata",{name:jN,count:1},[t]),ZE("cellMetadata",{count:1},[n])])}())),L&&N.add(oN,sR.encode(function(){const e=[XE("bag",{type:"Checkbox"}),ZE("bag",{type:"XFControls"},[ZE("bagId",{k:"CellControl"},"0")]),ZE("bag",{type:"XFComplement"},[ZE("bagId",{k:"XFControls"},"1")]),ZE("bag",{type:"XFComplements",extRef:"XFComplementsMapperExtRef"},[ZE("a",{k:"MappedFeaturePropertyBags"},[ZE("bagId",void 0,"2")])])];return ek("FeaturePropertyBags",{xmlns:rN},e)}())),R&&N.add("xl/vbaProject.bin",e.vbaProject);for(let e=0;e<p.length;e++){const n=p[e],r=m[e],i=S[e];N.add(`xl/worksheets/sheet${e+1}.xml`,sR.encode(n.xml));const o=n.hyperlinkRelationships.length>0,a=null!==r&&null!==n.drawingRId,s=null!==i&&null!==n.legacyDrawingRId,l=n.tables.length>0,c=null!==n.pictureRId&&null!==I[e],u=n.pivotTables.length>0;if(o||a||s||l||c||u){const t=[];for(const e of n.hyperlinkRelationships)t.push(XE("Relationship",{Id:e.id,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Target:e.target,TargetMode:"External"}));a&&n.drawingRId&&t.push(XE("Relationship",{Id:n.drawingRId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/drawing${e+1}.xml`})),s&&n.legacyDrawingRId&&n.commentsRId&&(t.push(XE("Relationship",{Id:n.legacyDrawingRId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Target:`../drawings/vmlDrawing${e+1}.vml`})),t.push(XE("Relationship",{Id:n.commentsRId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",Target:`../comments${e+1}.xml`})));for(const e of n.tables)t.push(XE("Relationship",{Id:e.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table",Target:`../tables/table${e.globalTableIndex}.xml`}));if(c&&n.pictureRId&&I[e]){const r=`../${I[e].slice(3)}`;t.push(XE("Relationship",{Id:n.pictureRId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:r}))}for(const e of n.pivotTables)t.push(XE("Relationship",{Id:e.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable",Target:`../pivotTables/pivotTable${e.globalPivotIndex}.xml`}));const r=ek("Relationships",{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},t);N.add(`xl/worksheets/_rels/sheet${e+1}.xml.rels`,sR.encode(r))}if(r){N.add(`xl/drawings/drawing${e+1}.xml`,sR.encode(r.drawingXml)),N.add(`xl/drawings/_rels/drawing${e+1}.xml.rels`,sR.encode(r.drawingRels));for(const e of r.images)N.add(e.path,e.data,{compress:!1})}const d=w[e];if(d&&d.length>0)for(const e of d)N.add(`xl/charts/chart${e.globalIndex}.xml`,sR.encode(e.xml)),N.add(`xl/charts/_rels/chart${e.globalIndex}.xml.rels`,sR.encode(e.rels));c&&I[e]&&t[e].backgroundImage&&N.add(I[e],t[e].backgroundImage,{compress:!1}),i&&(N.add(`xl/comments${e+1}.xml`,sR.encode(i.commentsXml)),N.add(`xl/drawings/vmlDrawing${e+1}.vml`,sR.encode(i.vmlXml)));const f=t[e];if(f.tables&&f.tables.length>0)for(let e=0;e<f.tables.length;e++){const t=f.tables[e],r=n.tables[e].globalTableIndex;let i=t.range;i||(i=_Q(t,f));const o=WQ({...t,range:i},r);N.add(`xl/tables/table${r}.xml`,sR.encode(o.tableXml))}}for(const e of B){const t=e.globalIndex;N.add(`xl/pivotCache/pivotCacheDefinition${t}.xml`,sR.encode(e.parts.cacheDefinitionXml)),N.add(`xl/pivotCache/_rels/pivotCacheDefinition${t}.xml.rels`,sR.encode(e.parts.cacheDefinitionRels)),N.add(`xl/pivotCache/pivotCacheRecords${t}.xml`,sR.encode(e.parts.cacheRecordsXml)),N.add(`xl/pivotTables/pivotTable${t}.xml`,sR.encode(e.parts.pivotTableXml)),N.add(`xl/pivotTables/_rels/pivotTable${t}.xml.rels`,sR.encode(e.parts.pivotTableRels))}const $=await N.build(),H=e.encryption;return H?.password?JD($,H.password,{spinCount:H.spinCount}):$}function cR(e){if(e.rows&&e.rows.length>0)return e.rows.map(e=>e.map(KN));if(e.data&&e.data.length>0&&e.columns&&e.columns.length>0){const t=[],n=e.columns.map(e=>e.header??e.key??"");t.push(n);for(const n of e.data){const r=e.columns.map(e=>{if(!e.key)return null;const t=n[e.key];return void 0===t?null:PN(t)});t.push(r)}return t}return[]}async function uR(e){if(!Ee(e))return{error:"wb is not an effective object"};if(!Ce(Ae(e,"sheets")))return{error:"wb.sheets is not an array"};let t=null;try{t=await lR(e)}catch(e){return{error:e}}return t}async function dR(e,t="data",n){if(!Be(e)){let t="no filename";return console.log(t,e),{error:t}}if(Be(t)||(t="data"),!Ce(n)){let e="data is not an array";return console.log(e,n),{error:e}}Ce(n)&&Ee(Ae(n,0,null))&&(n=lr(n));let r=KS(n,t);if(Ne(r,"error"))return console.log(r.error),r;let i=await uR(r);if(Ne(i,"error"))return console.log(i.error),i;if(Xa())JS(e,new Blob([i]));else{let t="fs";(await import(t)).default.writeFileSync(e,i)}}function fR(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new Blob;if(!ss(e))return r("invalid u8a");let i=null;try{i=new Blob([e])}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i}function hR(e,t,n=""){if(!Nn(t))return{};let r={};return vn(t,function(t){r[t]=Ae(e,t,n)}),r}function pR(e,t){if(!Se(e))return{};if(!Nn(t))return{};let n={};return vn(t,function(t){Ne(e,t)&&(n[t]=Ae(e,t))}),n}function gR(e,t=0,n={}){go(t)||(t=0),t=Wi(t);let r=Ae(n,"rounding","");return"ROUND_HALF_UP"!==r&&"ROUND_HALF_EVEN"!==r&&(r="ROUND_HALF_UP"),Me(e)?new Kl(e).toDecimalPlaces(t,Kl[r]).toNumber():""}function mR(e,t={}){if(!Me(e))throw new Error("v is not a number");let n=Ae(t,"returnDigit");if(we(n)||(n=!1),Ir(e))return n?0:Na(e);let r=null,i=null;for(let t=1;t<=16;t++){let n=e*Math.pow(10,t);if(Math.abs(n-Math.round(n))<1e-9){r=t,i=ec(e,t);break}}return null===i&&(r=16,i=Na(e)),n?r:i}let yR=e=>{let t=1;e<0&&(t=-1);let n=null;if((e=Math.abs(e))<.1)for(let r=1;r<16;r++){let i=Math.pow(10,r);if((e*=i)<1){n={r:1/i,v:t*e};break}}else{if(e<1)return{r:1,v:t*e};if(e>=1)for(let r=1;r<16;r++){let i=Math.pow(10,r);if((e/=i)<1){n={r:i,v:t*e};break}}}if(null===n)throw new Error(`can not normalize v[${e}]`);return n};function vR(e,t,n={}){if(!Be(e))return"";if(!go(t))return e;if(t=Wi(t),e.length<=t)return e;let r=Ae(n,"funWithMsg"),i="";if(Ui(r)){let n=r(e,t);Be(n)&&(i=n)}return na(e,t)+`...${i}`}function bR(e){let t=Ga();return i(Number(e),"SIGKILL",n=>{n?t.reject(n):t.resolve(`pid[${e}] killed`)}),t}function AR(e,t={}){let n=Ae(t,"fs"),r=!1;try{n.statSync(e),r=!0}catch{r=!1}return r}function wR(e,t={}){let n=Ae(t,"fs");return!!AR(e,{fs:n})&&(!n.lstatSync(e).isDirectory()&&!n.lstatSync(e).isSymbolicLink())}function xR(e){return wR(e,{fs:a})}function IR(e,t={}){let n=null,r=Ae(t,"fs"),i="";try{i=r.readFileSync(e,"utf8")}catch(e){n=e}return null!==n?{error:n}:{success:i}}function CR(e){return IR(e,{fs:a})}let SR={buildSpawnArgs:function(e,t=[]){if(Ce(t)||(t=[]),"win32"!==process.platform)return{file:e,args:t,opt:{}};let n=function(e){if("win32"!==process.platform)return e;if(/\.(cmd|exe|bat|ps1)$/i.test(e))return e;if(o.isAbsolute(e))return e;try{let t=r.execFileSync("where",[e],{encoding:"utf8",timeout:5e3,windowsHide:!0,shell:!1,stdio:["ignore","pipe","ignore"]}).trim().split(/\r?\n/),n=t.find(e=>/\.cmd$/i.test(e));return n||(t.find(e=>/\.exe$/i.test(e))||t[0]||e)}catch{return e}}(e);if(/\.exe$/i.test(n))return{file:n,args:t,opt:{}};if(/\.(cmd|bat)$/i.test(n)){let e=function(e){let t=Ae(CR(e),"success","");if(!Be(t))return null;let n=t.match(/%dp0%\\(node_modules\\[^"]+)"/i);if(!n)return null;let r=o.dirname(e),i=o.join(r,n[1]);return xR(i)?i:null}(n);if(e)return/\.exe$/i.test(e)?{file:e,args:t,opt:{}}:{file:process.execPath,args:[e,...t],opt:{}};let r=t.map(e=>`"${e.replace(/(\\*)"/g,'$1$1\\"').replace(/(\\*)$/,"$1$1")}"`.replace(/[()%!^"<>&|]/g,"^$&")),a=`${i=n,i.replace(/[()%!^"<>&|;, ]/g,"^$&")} ${r.join(" ")}`;return{file:process.env.comspec||process.env.COMSPEC||"cmd.exe",args:["/d","/s","/c",`"${a}"`],opt:{windowsVerbatimArguments:!0}}}var i;return{file:n,args:t,opt:{}}},buildSpawnEnv:function(e=void 0){let t={...process.env,PYTHONIOENCODING:"utf-8"};if(void 0!==e){if("win32"===process.platform){let n=Object.keys(e).map(e=>e.toLowerCase());for(let e of Object.keys(t))n.includes(e.toLowerCase())&&delete t[e]}t={...t,...e}}return t}},{buildSpawnArgs:ER,buildSpawnEnv:kR}=SR,BR={funWithMsg:e=>`(truncated, total ${e.length} chars)`};function FR(e,t=[],n={}){let{timeoutMs:i=12e4,cwd:o=process.cwd(),input:a,validate:s,maxBuffer:l=10485760,onStdout:c,onStderr:u,env:d}=n,f=function(e){if(Ui(e))return e;if(!Be(e))return null;let t=e.split(",").map(e=>e.trim()).filter(Boolean);return 0===t.length?null:e=>{for(let n of t)if("nonempty"===n){if(!Be(e)||""===e.trim())return!1}else if("json"===n)try{JSON.parse(e)}catch{return!1}else if("min:"===na(n,4)){let t=ia(n,4);if(!Me(t))return!1;let r=Wi(t);if(!Be(e)||e.length<r)return!1}return!0}}(s),h=Date.now(),p=Ga(),g=kR(d),m=ER(e,t),y=r.spawn(m.file,m.args,{cwd:o,stdio:["pipe","pipe","pipe"],windowsHide:!0,env:g,...m.opt}),v="",b="",A=new TextDecoder("utf-8"),w=new TextDecoder("utf-8"),x=!1,I=!1;y.stdout.on("data",e=>{let t=A.decode(e,{stream:!0});t&&(Ui(c)&&c(t),v.length<l&&(v+=t))}),y.stderr.on("data",e=>{let t=w.decode(e,{stream:!0});t&&(Ui(u)&&u(t),b.length<l&&(b+=t))}),y.stdin.on("error",()=>{}),void 0!==a&&y.stdin.write(a,"utf8"),y.stdin.end();let C=setTimeout(()=>{x||(I=!0,bR(y.pid).catch(()=>{}),setTimeout(()=>{x||(x=!0,p.resolve({ok:!1,stdout:vR(v,500,BR),stderr:vR(b,500,BR),code:null,error:`TIMEOUT after ${i/1e3}s(子進程未能結束)`,durationMs:Date.now()-h,pid:y.pid}))},3e3).unref())},i);return y.on("error",e=>{x||(x=!0,clearTimeout(C),p.resolve({ok:!1,stdout:"",stderr:"",code:null,error:`${e.code||"UNKNOWN"}: ${e.message}`,durationMs:Date.now()-h,pid:y.pid}))}),y.on("close",(e,t)=>{if(x)return;x=!0,clearTimeout(C);let n=A.decode();n&&v.length<l&&(v+=n);let r=w.decode();r&&b.length<l&&(b+=r);let o=Date.now()-h;I?p.resolve({ok:!1,stdout:vR(v,500,BR),stderr:vR(b,500,BR),code:e,error:`TIMEOUT after ${i/1e3}s`,durationMs:o,pid:y.pid}):0===e?!f||f(v)?p.resolve({ok:!0,stdout:v,stderr:b,code:0,error:"",durationMs:o,pid:y.pid}):p.resolve({ok:!1,stdout:vR(v,500,BR),stderr:vR(b,500,BR),code:0,error:"OUTPUT_VALIDATION_FAILED",durationMs:o,pid:y.pid}):p.resolve({ok:!1,stdout:vR(v,500,BR),stderr:vR(b,1e3,BR),code:e,error:t?`Signal: ${t}`:`Exit code ${e}`,durationMs:o,pid:y.pid})}),p}let{buildSpawnArgs:DR,buildSpawnEnv:MR}=SR;function NR(e,t=[],n={}){Ce(t)||(t=[]),Se(n)||(n={});let i=Ae(n,"cwd");Be(i)||(i=process.cwd());let o=Ae(n,"env");Se(o)||(o=void 0);let a=Ae(n,"timeoutMs");a=_i(a)?Math.min(a,Ri):null;let s=Ae(n,"exitGraceMs");go(s)||(s=2e3),s=Math.min(s,Ri);let l=Ae(n,"killWaitMs");go(l)||(l=3e3),l=Math.min(l,Ri);let c=Ae(n,"stderrKeep");go(c)||(c=4e3);let u=Ae(n,"onLine"),d=Ae(n,"onStdout"),f=Ae(n,"onStderr"),h=Ae(n,"onExit"),p=Date.now(),g=!1,m=null,y=!1,v=!1,b=!1,A="",w="",x=null,I=null,C=null,S=Ga(),E=null,k={pid:null,exited:!1,write:null,writeLine:null,stop:null},B=e=>{g||(g=!0,clearTimeout(x),clearTimeout(I),clearTimeout(C),m={code:null,signal:null,exited:!0,timeout:y,killed:v,error:"",stderr:A,durationMs:Date.now()-p,pid:k.pid,...e},k.exited=!0,Ui(h)&&h(m),S.resolve(m))},F=()=>E||(E=Ga(),S.then(e=>{E.resolve(e)}),E);if(!Be(e))return k.write=async()=>!1,k.writeLine=async()=>!1,k.stop=F,setTimeout(()=>{B({error:"command 須為非空字串"})},1),k;let D,M=DR(e,t);try{D=r.spawn(M.file,M.args,{cwd:i,stdio:["pipe","pipe","pipe"],windowsHide:!0,env:MR(o),...M.opt})}catch(e){return k.write=async()=>!1,k.writeLine=async()=>!1,k.stop=F,setTimeout(()=>{B({error:`${e.code||"UNKNOWN"}: ${e.message}`})},1),k}k.pid=D.pid||null;let N=new TextDecoder("utf-8"),T=new TextDecoder("utf-8"),Q=(e,t)=>{w+=e;let n=w.indexOf("\n");for(;n>=0;){let e=w.slice(0,n);w=w.slice(n+1),e.endsWith("\r")&&(e=e.slice(0,-1)),Ui(u)&&u(e),n=w.indexOf("\n")}if(t&&""!==w){let e=w;w="",e.endsWith("\r")&&(e=e.slice(0,-1)),Ui(u)&&u(e)}},R=e=>{A=0!==c?(A+e).slice(-c):""};D.stdout.on("data",e=>{let t=N.decode(e,{stream:!0});t&&(Ui(d)&&d(t),Q(t,!1))}),D.stderr.on("data",e=>{let t=T.decode(e,{stream:!0});t&&(Ui(f)&&f(t),R(t))}),D.stdin.on("error",()=>{});let L=e=>{v=!0,bR(D.pid).catch(()=>{}),C=setTimeout(()=>{g||B({code:null,exited:!1,error:e})},l)};return null!==a&&(x=setTimeout(()=>{g||(y=!0,L(`TIMEOUT after ${a/1e3}s(子進程未能結束)`))},a)),D.on("error",e=>{B({error:`${e.code||"UNKNOWN"}: ${e.message}`})}),D.on("close",(e,t)=>{if(g)return;let n=N.decode();n&&(Ui(d)&&d(n),Q(n,!1)),Q("",!0);let r=T.decode();r&&(Ui(f)&&f(r),R(r));let i="";y?i=`TIMEOUT after ${a/1e3}s`:v||(t?i=`Signal: ${t}`:0!==e&&(i=`Exit code ${e}`)),B({code:e,signal:t,error:i})}),k.write=e=>{let t=Ga();if(g||b||D.stdin.destroyed||!D.stdin.writable)return t.resolve(!1),t;try{D.stdin.write(String(e),"utf8",e=>{t.resolve(!e)})}catch{t.resolve(!1)}return t},k.writeLine=e=>k.write(String(e)+"\n"),k.stop=()=>{if(E)return E;if(E=Ga(),g)return E.resolve(m),E;b=!0;try{D.stdin.end()}catch{}return I=setTimeout(()=>{g||L("STOP_TIMEOUT(子進程未能結束)")},s),S.then(e=>{E.resolve(e)}),E},k}let TR={65001:"utf-8",1200:"utf-16le",950:"big5",936:"gbk",54936:"gb18030",932:"shift_jis",949:"euc-kr",437:"windows-1252"},QR={euckr:"euc-kr",utf16le:"utf-16le",ucs2:"utf-16le"};function RR(e){try{return new TextDecoder(e),!0}catch(e){return!1}}function LR(e){if(e=String(e).trim(),TR[e])return TR[e];let t=[`windows-${e}`,`ibm${e}`];for(let e of t)if(RR(e))return e;return null}let PR=null;function OR(e){let t=e.length;for(let n=1;n<=3&&n<=t;n++){let r=e[t-n];if(r>=128&&r<=191)continue;let i=0;if(r>=194&&r<=223)i=2;else if(r>=224&&r<=239)i=3;else{if(!(r>=240&&r<=244))return 0;i=4}if(n>=i)return 0;if(n>=2){let i=e[t-n+1],o=128,a=191;if(224===r?o=160:237===r?a=159:240===r?o=144:244===r&&(a=143),i<o||i>a)return 0}return n}return 0}let UR={normalizeCodeCmd:function(e){if(!Be(e))return{mode:"fixed",label:"utf-8"};let t=e.trim().toLowerCase();if("auto"===t)return{mode:"auto",label:null};if("system"===t)return{mode:"system",label:null};let n=/^(?:cp|windows-)?(\d{3,5})$/.exec(t);if(null!==n){let e=LR(n[1]);return null===e?null:{mode:"fixed",label:e}}return QR[t]&&(t=QR[t]),RR(t)?{mode:"fixed",label:new TextDecoder(t).encoding}:null},codePageToLabel:LR,getSystemCodePage:function(){if(null!==PR)return PR;let e=new Promise(e=>{if("win32"===process.platform)try{r.exec("chcp",{windowsHide:!0,encoding:"latin1",timeout:1e4},(t,n)=>{let r=null;if(!t){let e=/(\d+)\s*$/.exec(String(n));null!==e&&(r=LR(e[1]))}null===r&&(PR=null,r="utf-8"),e(r)})}catch(t){PR=null,e("utf-8")}else e("utf-8")});return PR=e,e},utf8TailLen:OR,createDecoder:function(e,t={}){if("auto"!==e){let t=new TextDecoder(e);return{switched:!1,label:t.encoding,write:e=>t.decode(e,{stream:!0}),end:()=>t.decode()}}let n=t.labelSystem;Be(n)||(n="utf-8");let r=new TextDecoder("utf-8",{fatal:!0}),i=null,o=null,a={switched:!1,label:"utf-8",write:null,end:null};return a.write=e=>{if(null!==i)return i.decode(e,{stream:!0});let t=e;null!==o&&(t=Buffer.concat([o,e]),o=null);let s=OR(t),l=t;s>0&&(l=t.subarray(0,t.length-s));let c="";try{c=r.decode(l,{stream:!0})}catch(e){return a.switched=!0,a.label=n,i=new TextDecoder(n),i.decode(t,{stream:!0})}return s>0&&(o=Buffer.from(t.subarray(t.length-s))),c},a.end=()=>{if(null!==i)return i.decode();let e="";try{e=r.decode()}catch(t){e=""}return null!==o&&(e+=new TextDecoder("utf-8").decode(o),o=null),e},a}};function $R(e,t){return e>t}function HR(e){return e&&e.length?wx(e,un,$R):void 0}function zR(e){return null==e?[]:function(e,t){return fe(t,function(t){return e[t]})}(e,ht(e))}function qR(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function jR(e,t,n,r){return gt(e,function(e,i,o){t(r,e,n(e),o)}),r}var WR,_R,VR=Object.prototype.hasOwnProperty,YR=(WR=function(e,t,n){VR.call(e,n)?e[n].push(t):ei(e,n,[t])},function(e,t){var n=v(e)?qR:jR,r=_R?_R():{};return n(e,WR,hn(t),r)}),GR=YR;function JR(e,t){if(!Ce(e)||!Ce(t))return[];if(e.length!==t.length)return[];return An(e,function(n,r){return kI(e[r],t[r])})}function XR(e,t={}){let n=Ae(t,"fs");if(!AR(e,{fs:n}))return!1;let r=n.lstatSync(e);return!r.isFile()&&!r.isSymbolicLink()}function KR(e,t={}){let n=Ae(t,"fs");if(XR(e,{fs:n}))return{success:"input folder is already exists: "+e};if(AR(e,{fs:n}))return{error:"input path already exists: "+e};try{n.mkdirSync(e,{recursive:!0})}catch(e){return{error:e}}return{success:"done: "+e}}function ZR(e,t={}){let n=Ae(t,"path"),r=Ae(t,"fs");if(!AR(e,{fs:r})){let t=KR(e,{fs:r});return t.error?t.error:{success:"done: "+e}}if(!XR(e,{fs:r}))return{error:"input path is not a folder"};try{let t=r.readdirSync(e);for(let i of t){let t=n.join(e,i);r.statSync(t).isDirectory()?r.rmSync(t,{recursive:!0,force:!0}):r.unlinkSync(t)}}catch(e){return{error:e}}return{success:"done: "+e}}function eL(e,t,n={}){let r=Ae(n,"path"),i=Ae(n,"fs"),o=Ae(n,"useSync","");we(o)||(o=!0);let a="";return a=o?function(e,t,n={}){let r=Ae(n,"path"),i=Ae(n,"fs");if(!wR(e,{fs:i}))return{error:`fpSrc[${e}] is not a file`};try{KR(r.dirname(t),{fs:i}),i.copyFileSync(e,t)}catch(e){return{error:e}}return{success:"done: "+t}}(e,t,{path:r,fs:i}):async function(e,t,n={}){let r=Ae(n,"path"),i=Ae(n,"fs");if(!wR(e,{fs:i}))return{error:`fpSrc[${e}] is not a file`};let o=null;return await(async(e,t)=>{KR(r.dirname(t),{fs:i}),await new Promise((n,r)=>{let o=i.createReadStream(e),a=i.createWriteStream(t);o.on("error",r),a.on("error",r),a.on("finish",n),o.pipe(a)})})(e,t).then(()=>{o={success:"done: "+t}}).catch(e=>{o={error:e}}),o}(e,t,{path:r,fs:i}),a}function tL(e,t,n={}){let r=Ae(n,"path"),i=Ae(n,"fs");if(!XR(e,{fs:i}))return{error:`fpSrc[${e}] is not a folder`};try{i.readdirSync(e).forEach(function(n){let o=r.resolve(e,n),a=r.resolve(t,n),s=i.lstatSync(o);if(s.isDirectory())KR(a,{fs:i}),tL(o,a,{path:r,fs:i});else if(s.isSymbolicLink()){let e=i.readlinkSync(o);i.symlinkSync(e,a)}else KR(r.dirname(a),{fs:i}),i.copyFileSync(o,a)})}catch(e){return{error:e}}return{success:"done: "+t}}function nL(e,t,n={}){let r=Ae(n,"path"),i=Ae(n,"fs"),o=Ae(n,"useSync","");we(o)||(o=!0);let a="";return a=o?tL(e,t,{path:r,fs:i}):async function(e,t,n={}){let r=Ae(n,"path"),i=Ae(n,"fs");if(!XR(e,{fs:i}))return{error:`fpSrc[${e}] is not a folder`};let o=async(e,t)=>{let n=i.readdirSync(e);for(let a of n){let n=r.join(e,a),s=r.join(t,a),l=i.lstatSync(n);if(l.isDirectory())KR(s,{fs:i}),await o(n,s);else if(l.isSymbolicLink()){let e=i.readlinkSync(n);i.symlinkSync(e,s)}else KR(r.dirname(s),{fs:i}),await new Promise((e,t)=>{let r=i.createReadStream(n),o=i.createWriteStream(s);r.on("error",t),o.on("error",t),o.on("finish",e),r.pipe(o)})}},a=null;return await o(e,t).then(()=>{a={success:"done: "+t}}).catch(e=>{a={error:e}}),a}(e,t,{path:r,fs:i}),a}function rL(e){if(!Be(e))return{path:"",isRoot:!1};for(;e.indexOf("\\\\")>=0;)e=e.replace("\\\\","\\");for(;e.indexOf("//")>=0;)e=e.replace("//","/");if(":"===ra(e,1))return{path:`${e}\\`,isRoot:!0};if("\\"===ra(e,1)){let t=Qa(e,1);return":"===ra(t,1)?{path:e,isRoot:!0}:{path:t,isRoot:!1}}if("/"===ra(e,1)){let t=Qa(e,1);return 0===t.length?{path:e,isRoot:!0}:{path:t,isRoot:!1}}return{path:e,isRoot:!1}}function iL(e){if(!Be(e))return"";let t=rL(e);if(t.isRoot)return t.path;let n=t.path;try{n=n.split("\\").pop().split("/").pop()}catch(e){}return n}function oL(e){if(!Be(e))return"";let t=rL(e);if(t.isRoot)return t.path;let n=iL(e=t.path);if(!Be(n))return e;let r=rL(e=Qa(e,n.length));return r.isRoot,r.path}function aL(e,t="",n={}){let r=Ae(n,"fs"),i=Ae(n,"encoding","");if(Be(i)||(i="utf8"),AR(e,{fs:r}))return{error:"input path already exists: "+e};if(wR(e,{fs:r}))return{error:"input file is already exists: "+e};let o=oL(e);XR(o,{fs:r})||KR(o,{fs:r});try{r.writeFileSync(e,t,{encoding:i})}catch(e){return{error:e}}return{success:"done: "+e}}function sL(e){return KR(e,{fs:a})}function lL(e,t={}){let n=Ae(t,"fs");if(!AR(e,{fs:n}))return{success:"file does not exist: "+e};if(!wR(e,{fs:n}))return{error:"input path is not a file: "+e};try{n.unlinkSync(e)}catch(e){return{error:e}}return{success:"done: "+e}}async function cL(e,t={}){let n=Ae(t,"numRetry");_i(n)||(n=5),n=Wi(n);let r=Ae(t,"fs",null);if(!AR(e,{fs:r}))return"file does not exist: "+e;if(!wR(e,{fs:r}))return Promise.reject("input path is not a file: "+e);for(let t=0;t<n;t++)try{r.unlinkSync(e);break}catch(e){if("EBUSY"!==e.code)return Promise.reject(e);await hs(300)}return"done: "+e}function uL(e,t={}){let n=Ae(t,"fs");if(!AR(e,{fs:n}))return{success:"folder does not exist: "+e};if(!XR(e,{fs:n}))return{error:"input path is not a folder: "+e};try{n.rmSync(e,{recursive:!0,force:!0})}catch(e){return{error:e}}return{success:"done: "+e}}function dL(e){return uL(e,{fs:a})}async function fL(e,t={}){let n=Ae(t,"numRetry");_i(n)||(n=5),n=Wi(n);let r=Ae(t,"fs",null);if(!AR(e,{fs:r}))return"folder does not exist: "+e;if(!XR(e,{fs:r}))return Promise.reject("input path is not a folder: "+e);for(let t=0;t<n;t++)try{r.rmSync(e,{recursive:!0,force:!0});break}catch(e){if("EBUSY"!==e.code)return Promise.reject(e);await hs(300)}return"done: "+e}function hL(e){try{let t=e();return"string"==typeof t?t:""}catch(e){return""}}function pL(e,t){try{let n=new WeakSet,r=[],i=JSON.stringify(e,function(e,i){for(;r.length>0&&r[r.length-1]!==this;)r.pop();if(r.length>=t)return"[Deep]";if("bigint"==typeof i)return String(i);if(null!==i&&"object"==typeof i){if(n.has(i))return"[Circular]";n.add(i),r.push(i)}return i});return"string"==typeof i?i:""}catch(e){return""}}function gL(e){if(e.length>=2&&'"'===e[0]&&'"'===e[e.length-1]){let t=hL(()=>JSON.parse(e));if(""!==t)return t}return e}function mL(e,t){if(void 0===e)return"";if(null===e)return"null";let n=function(e){let t=typeof e;return"string"===t?e:null==e?"":"number"===t||"boolean"===t||"bigint"===t||"symbol"===t?String(e):""}(e);if(""!==n)return n;let r=pL(e,t);if(""!==r&&"{}"!==r)return gL(r);let i=hL(()=>String(e));return""!==i&&"[object Object]"!==i?i:r}function yL(e,t){let n=new WeakSet;null===e||"object"!=typeof e&&"function"!=typeof e||n.add(e);let r=e,i=[];for(let e=0;e<t.levelCauseMax;e++){let e=null;try{e=r.cause}catch(e){break}if(null==e)break;if("object"==typeof e||"function"==typeof e){if(n.has(e))break;n.add(e)}let o=bL(e,{...t,useCause:!1,useAggregate:!1});""!==o&&i.push(o),r=e}return i.join(" <- ")}function vL(e,t){let n=null;try{n=e.errors}catch(e){return""}if(!Array.isArray(n)||0===n.length)return"";let r=[];for(let i=0;i<n.length&&i<t.levelCauseMax;i++){if(n[i]===e)continue;let o=bL(n[i],{...t,useCause:!1,useAggregate:!1});""!==o&&r.push(o)}return r.join("; ")}function bL(e,t){if("string"==typeof e)return e;if(null==e)return"";if("number"==typeof e)return Number.isNaN(e)?"":String(e);if("boolean"==typeof e||"bigint"==typeof e||"symbol"==typeof e)return String(e);let n=null,r=!1;try{n=e.message,r=!0}catch(e){r=!1}if(r&&"string"==typeof n){if(""!==n){let r=n;if(t.useCause){let n=yL(e,t);""!==n&&(r=`${r} <- ${n}`)}if(t.useAggregate){let n=vL(e,t);""!==n&&(r=`${r} [${n}]`)}return r}let r=yL(e,t);return""!==r?r:""}if(r){let e=mL(n,t.levelJsonMax);if(""!==e)return e}let i=yL(e,t);if(""!==i)return i;if(t.useAggregate){let n=vL(e,t);if(""!==n)return n}let o=pL(e,t.levelJsonMax),a=gL(o);if(""!==a&&"{}"!==a)return a;let s=hL(()=>String(e));if(""!==s&&"[object Object]"!==s)return s;let l=hL(()=>Object.prototype.toString.call(e));return""!==l&&"[object Object]"!==l?l:""!==o?o:""}function AL(e,t={}){let n=Ae(t,"useCause",null);we(n)||(n=!1);let r=Ae(t,"useAggregate",null);we(r)||(r=!1);let i=Ae(t,"levelCauseMax",null);_i(i,{useLimitSafe:!0})||(i=8),i=Wi(i);let o=Ae(t,"levelJsonMax",null);_i(o,{useLimitSafe:!0})||(o=6),o=Wi(o);let a=Ae(t,"lengthMessageMax",null);_i(a,{useLimitSafe:!0})||(a=0),a=Wi(a);let s={useCause:n,useAggregate:r,levelCauseMax:i,levelJsonMax:o,lengthMessageMax:a},l="";try{l=bL(e,s)}catch(e){return l="",l}return Be(l)?(s.lengthMessageMax>0&&l.length>s.lengthMessageMax&&(l=s.lengthMessageMax>3?l.slice(0,s.lengthMessageMax-3)+"...":l.slice(0,s.lengthMessageMax)),l):(l="",l)}async function wL(e,t,n={}){let r=Ae(n,"fs"),i=Ae(n,"Readable"),o=Ae(n,"pipeline");if(!Be(e))throw new Error("urlIn in not an effective string");if(!Be(t))throw new Error("fpOut is not an effective string");if(!Ui(o))throw new Error("opt.pipeline is not a function");let a=oL(t);XR(a,{fs:r})||KR(a,{fs:r});let s=`${t}.download`,l=Ga(),c=n=>{try{r.unlinkSync(s)}catch(e){}l.reject(`failed to download url[${e}] to file[${t}]: ${n}`)};try{let n=await fetch(e);if(!n.ok){try{await n.body.cancel()}catch(e){}return c(`status[${n.status}] ${n.statusText}`),l}let a=null,u=n.headers.get("content-length"),d=n.headers.get("content-encoding"),f=n.headers.get("transfer-encoding");if(!Be(u)||!/^\d+$/.test(u.trim())||Be(d)&&"identity"!==d.trim().toLowerCase()||Be(f)||(a=Number(u.trim())),await o(i.fromWeb(n.body),r.createWriteStream(s)),null!==a){let e=r.statSync(s).size;if(e!==a)return c(`size mismatch, content-length[${a}] received[${e}]`),l}r.renameSync(s,t),l.resolve(t)}catch(e){c(AL(e,{useCause:!0}))}return l}function xL(){if(!Ui(t))throw new Error("invalid dayjs");return t().format("YYYY-MM-DDTHH:mm:ssZ")}function IL(e){if(!Be(e))return"";let t=iL(e),n=Lo(t,".");if(or(n)<=1)return t;let r="";try{n=Po(n),r=vo(n,".")}catch(e){}return r}function CL(e){return XR(e,{fs:a})}function SL(e,t={}){let n=Ae(t,"polling");we(n)||(n=!1);let r=Ae(t,"timeInterval");_i(r)||(r=100),r=Wi(r),r=Math.min(r,Ri);let i=Ae(t,"timeBinaryInterval");_i(i)||(i=300),i=Wi(i);let a=Oi(),s=e,l=null,c=setInterval(()=>{null===l?CL(s)&&(l=d.watch(s,{usePolling:n,interval:r,binaryInterval:i,awaitWriteFinish:!0}),l.on("all",(e,t,n)=>{t=o.resolve(t),$i(a,"change",[{type:e,fp:t,stats:n}],{tag:"fsWatchFolder"}),"unlinkDir"===e&&o.resolve(s)===t&&setTimeout(()=>{u()},1)}).on("error",e=>{$i(a,"error",[{fun:"watcher",msg:e}],{tag:"fsWatchFolder"})})):CL(s)||($i(a,"change",[{type:"unlinkDir",fp:o.resolve(s),stats:void 0}],{tag:"fsWatchFolder"}),setTimeout(()=>{u()},1))},r),u=()=>{if(null!==l){try{l.unwatch(s)}catch(e){console.log(e)}l.close().catch(e=>{console.log(e)}).finally(()=>{l=null})}};return a.clear=()=>{u(),clearInterval(c)},a}function EL(e,t={}){let n=Ae(t,"fs"),r=Ae(t,"crypto"),i=Ae(t,"type","");Be(i)||(i="sha512");let o=Ga();if(!wR(e,{fs:n}))return o.reject(`fp[${e}] is not a file`),o;try{let t=r.createHash(i),a=n.createReadStream(e);a.on("readable",()=>{let e=a.read();e?t.update(e):o.resolve(t.digest("hex"))}),a.on("error",e=>{o.reject(e.toString())})}catch(e){o.reject(e.toString())}return o}const kL=new Uint8Array([0,97,115,109,1,0,0,0,1,48,8,96,3,127,127,127,1,127,96,3,127,127,127,0,96,2,127,127,0,96,1,127,1,127,96,3,127,127,126,1,126,96,3,126,127,127,1,126,96,2,127,126,0,96,1,127,1,126,3,11,10,0,0,2,1,3,4,5,6,1,7,5,3,1,0,1,7,85,9,3,109,101,109,2,0,5,120,120,104,51,50,0,0,6,105,110,105,116,51,50,0,2,8,117,112,100,97,116,101,51,50,0,3,8,100,105,103,101,115,116,51,50,0,4,5,120,120,104,54,52,0,5,6,105,110,105,116,54,52,0,7,8,117,112,100,97,116,101,54,52,0,8,8,100,105,103,101,115,116,54,52,0,9,10,251,22,10,242,1,1,4,127,32,0,32,1,106,33,3,32,1,65,16,79,4,127,32,3,65,16,107,33,6,32,2,65,168,136,141,161,2,106,33,3,32,2,65,137,235,208,208,7,107,33,4,32,2,65,207,140,162,142,6,106,33,5,3,64,32,3,32,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,3,32,4,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,4,32,2,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,2,32,5,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,5,32,6,32,0,65,4,106,34,0,79,13,0,11,32,2,65,12,119,32,5,65,18,119,106,32,4,65,7,119,106,32,3,65,1,119,106,5,32,2,65,177,207,217,178,1,106,11,32,1,106,32,0,32,1,65,15,113,16,1,11,146,1,0,32,1,32,2,106,33,2,3,64,32,1,65,4,106,32,2,75,69,4,64,32,0,32,1,40,2,0,65,189,220,202,149,124,108,106,65,17,119,65,175,214,211,190,2,108,33,0,32,1,65,4,106,33,1,12,1,11,11,3,64,32,1,32,2,79,69,4,64,32,0,32,1,45,0,0,65,177,207,217,178,1,108,106,65,11,119,65,177,243,221,241,121,108,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,32,0,65,15,118,115,65,247,148,175,175,120,108,34,0,65,13,118,32,0,115,65,189,220,202,149,124,108,34,0,65,16,118,32,0,115,11,63,0,32,0,65,8,106,32,1,65,168,136,141,161,2,106,54,2,0,32,0,65,12,106,32,1,65,137,235,208,208,7,107,54,2,0,32,0,65,16,106,32,1,54,2,0,32,0,65,20,106,32,1,65,207,140,162,142,6,106,54,2,0,11,195,4,1,6,127,32,1,32,2,106,33,6,32,0,65,24,106,33,4,32,0,65,40,106,40,2,0,33,3,32,0,32,0,40,2,0,32,2,106,54,2,0,32,0,65,4,106,34,5,32,5,40,2,0,32,2,65,16,79,32,0,40,2,0,65,16,79,114,114,54,2,0,32,2,32,3,106,65,16,73,4,64,32,3,32,4,106,32,1,32,2,252,10,0,0,32,0,65,40,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,4,106,32,1,65,16,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,32,3,40,2,0,32,4,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,12,106,34,3,32,3,40,2,0,32,4,65,4,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,16,106,34,3,32,3,40,2,0,32,4,65,8,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,20,106,34,3,32,3,40,2,0,32,4,65,12,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,40,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,32,6,65,16,107,77,4,64,32,6,65,16,107,33,8,32,0,65,8,106,40,2,0,33,2,32,0,65,12,106,40,2,0,33,3,32,0,65,16,106,40,2,0,33,5,32,0,65,20,106,40,2,0,33,7,3,64,32,2,32,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,2,32,3,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,3,32,5,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,5,32,7,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,7,32,8,32,1,65,4,106,34,1,79,13,0,11,32,0,65,8,106,32,2,54,2,0,32,0,65,12,106,32,3,54,2,0,32,0,65,16,106,32,5,54,2,0,32,0,65,20,106,32,7,54,2,0,11,32,1,32,6,73,4,64,32,4,32,1,32,6,32,1,107,34,1,252,10,0,0,32,0,65,40,106,32,1,54,2,0,11,11,97,1,1,127,32,0,65,16,106,40,2,0,33,1,32,0,65,4,106,40,2,0,4,127,32,1,65,12,119,32,0,65,20,106,40,2,0,65,18,119,106,32,0,65,12,106,40,2,0,65,7,119,106,32,0,65,8,106,40,2,0,65,1,119,106,5,32,1,65,177,207,217,178,1,106,11,32,0,40,2,0,106,32,0,65,24,106,32,0,65,40,106,40,2,0,16,1,11,255,3,2,3,126,1,127,32,0,32,1,106,33,6,32,1,65,32,79,4,126,32,6,65,32,107,33,6,32,2,66,214,235,130,238,234,253,137,245,224,0,124,33,3,32,2,66,177,169,172,193,173,184,212,166,61,125,33,4,32,2,66,249,234,208,208,231,201,161,228,225,0,124,33,5,3,64,32,3,32,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,3,32,4,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,4,32,2,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,2,32,5,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,5,32,6,32,0,65,8,106,34,0,79,13,0,11,32,2,66,12,137,32,5,66,18,137,124,32,4,66,7,137,124,32,3,66,1,137,124,32,3,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,4,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,2,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,5,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,5,32,2,66,197,207,217,178,241,229,186,234,39,124,11,32,1,173,124,32,0,32,1,65,31,113,16,6,11,134,2,0,32,1,32,2,106,33,2,3,64,32,2,32,1,65,8,106,79,4,64,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,32,0,133,66,27,137,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,33,0,32,1,65,8,106,33,1,12,1,11,11,32,1,65,4,106,32,2,77,4,64,32,0,32,1,53,2,0,66,135,149,175,175,152,182,222,155,158,127,126,133,66,23,137,66,207,214,211,190,210,199,171,217,66,126,66,249,243,221,241,153,246,153,171,22,124,33,0,32,1,65,4,106,33,1,11,3,64,32,1,32,2,73,4,64,32,0,32,1,49,0,0,66,197,207,217,178,241,229,186,234,39,126,133,66,11,137,66,135,149,175,175,152,182,222,155,158,127,126,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,32,0,66,33,136,133,66,207,214,211,190,210,199,171,217,66,126,34,0,32,0,66,29,136,133,66,249,243,221,241,153,246,153,171,22,126,34,0,32,0,66,32,136,133,11,77,0,32,0,65,8,106,32,1,66,214,235,130,238,234,253,137,245,224,0,124,55,3,0,32,0,65,16,106,32,1,66,177,169,172,193,173,184,212,166,61,125,55,3,0,32,0,65,24,106,32,1,55,3,0,32,0,65,32,106,32,1,66,249,234,208,208,231,201,161,228,225,0,124,55,3,0,11,244,4,2,3,127,4,126,32,1,32,2,106,33,5,32,0,65,40,106,33,4,32,0,65,200,0,106,40,2,0,33,3,32,0,32,0,41,3,0,32,2,173,124,55,3,0,32,2,32,3,106,65,32,73,4,64,32,3,32,4,106,32,1,32,2,252,10,0,0,32,0,65,200,0,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,4,106,32,1,65,32,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,32,3,41,3,0,32,4,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,16,106,34,3,32,3,41,3,0,32,4,65,8,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,24,106,34,3,32,3,41,3,0,32,4,65,16,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,32,106,34,3,32,3,41,3,0,32,4,65,24,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,200,0,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,65,32,106,32,5,77,4,64,32,5,65,32,107,33,2,32,0,65,8,106,41,3,0,33,6,32,0,65,16,106,41,3,0,33,7,32,0,65,24,106,41,3,0,33,8,32,0,65,32,106,41,3,0,33,9,3,64,32,6,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,7,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,7,32,8,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,8,32,9,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,9,32,2,32,1,65,8,106,34,1,79,13,0,11,32,0,65,8,106,32,6,55,3,0,32,0,65,16,106,32,7,55,3,0,32,0,65,24,106,32,8,55,3,0,32,0,65,32,106,32,9,55,3,0,11,32,1,32,5,73,4,64,32,4,32,1,32,5,32,1,107,34,1,252,10,0,0,32,0,65,200,0,106,32,1,54,2,0,11,11,188,2,1,5,126,32,0,65,24,106,41,3,0,33,1,32,0,41,3,0,34,2,66,32,90,4,126,32,0,65,8,106,41,3,0,34,3,66,1,137,32,0,65,16,106,41,3,0,34,4,66,7,137,124,32,1,66,12,137,32,0,65,32,106,41,3,0,34,5,66,18,137,124,124,32,3,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,4,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,1,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,5,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,5,32,1,66,197,207,217,178,241,229,186,234,39,124,11,32,2,124,32,0,65,40,106,32,2,66,31,131,167,16,6,11]);async function BL(){return function(e){const{exports:{mem:t,xxh32:n,xxh64:r,init32:i,update32:o,digest32:a,init64:s,update64:l,digest64:c}}=e;let u=new Uint8Array(t.buffer);function d(e,n){if(t.buffer.byteLength<e+n){const r=Math.ceil((e+n-t.buffer.byteLength)/65536);t.grow(r),u=new Uint8Array(t.buffer)}}function f(e,t,n,r,i,o){d(e);const a=new Uint8Array(e);return u.set(a),n(0,t),a.set(u.subarray(0,e)),{update(t){let n;return u.set(a),"string"==typeof t?(d(3*t.length,e),n=m.encodeInto(t,u.subarray(e)).written):(d(t.byteLength,e),u.set(t,e),n=t.byteLength),r(0,e,n),a.set(u.subarray(0,e)),this},digest:()=>(u.set(a),o(i(0)))}}function h(e){return e>>>0}const p=2n**64n-1n;function g(e){return e&p}const m=new TextEncoder;function y(e,t=0){return d(3*e.length,0),h(n(0,m.encodeInto(e,u).written,t))}function v(e,t=0n){return d(3*e.length,0),g(r(0,m.encodeInto(e,u).written,t))}return{h32:y,h32ToString:(e,t=0)=>y(e,t).toString(16).padStart(8,"0"),h32Raw:(e,t=0)=>(d(e.byteLength,0),u.set(e),h(n(0,e.byteLength,t))),create32:(e=0)=>f(48,e,i,o,a,h),h64:v,h64ToString:(e,t=0n)=>v(e,t).toString(16).padStart(16,"0"),h64Raw:(e,t=0n)=>(d(e.byteLength,0),u.set(e),g(r(0,e.byteLength,t))),create64:(e=0n)=>f(88,e,s,l,c,g)}}((await WebAssembly.instantiate(kL)).instance)}async function FL(e,t={}){let n=Ae(t,"fs"),r=Ae(t,"chunkSize");if(Me(r)||(r=67108864),r=xr(r),!wR(e,{fs:n}))return Promise.reject("fp is not a file");let i=Ga();try{let{create64:t}=await BL(),o=t(),a=n.createReadStream(e,{highWaterMark:r});a.on("data",e=>{o.update(e)}),a.on("end",()=>{let e=o.digest().toString(16).padStart(16,"0");i.resolve(e)}),a.on("error",i.reject)}catch(e){i.reject(e.toString())}return i}function DL(e,t={}){let n=Ae(t,"fs"),r=Ae(t,"crypto"),i=Ae(t,"type","");Be(i)||(i="sha512");let o=Ae(t,"chunkSize");Me(o)||(o=67108864),o=xr(o);let a=Ga();return wR(e,{fs:n})?"xxhash64"===i?FL(e,{fs:n,chunkSize:o}):EL(e,{fs:n,crypto:r,type:i}):(a.reject(`fp[${e}] is not a file`),a)}function ML(e,t=1,n={}){let r=1,i=Ae(n,"path"),o=Ae(n,"fs");if(!XR(e,{fs:o}))throw new Error(`fd[${e}] is not a folder`);return null!==t&&_i(t)&&(t=Wi(t))<1&&(t=1),function e(n){let a=[];return XR(n,{fs:o})?(vn(o.readdirSync(n),function(s){let l=i.resolve(n,s),c=null;try{c=o.statSync(l)}catch(e){}c&&c.isDirectory()?(a.push({isFolder:!0,level:r,path:l,name:i.basename(l)}),r+=1,(r<=t||null===t)&&(a=a.concat(e(l))),r-=1):a.push({isFolder:!1,level:r,path:l,name:i.basename(l)})}),a):a}(e)}function NL(e,t=1,n={}){let r=Ae(n,"path"),i=Ae(n,"fs");if(!XR(e,{fs:i}))throw new Error(`fd[${e}] is not a folder`);let o=[];return o=ML(e,t,{path:r,fs:i}),o=aa(o,{isFolder:!1}),o=An(o,e=>(delete e.isFolder,e)),o}async function TL(e,t=1,n={}){let r=Ae(n,"path"),i=Ae(n,"fs"),o=Ae(n,"crypto"),a=Ae(n,"type","");if(Be(a)||(a="md5"),!XR(e,{fs:i}))throw new Error(`fd[${e}] is not a folder`);let s=NL(e,t,{path:r,fs:i});return s=await ac(s,async e=>{let t=Ae(e,"path","");return e.hashType=a,e.hash="",Be(t)&&(e.hash=await DL(t,{fs:i,crypto:o,type:a,useSync:!1})),e}),s}async function QL(e,t=1,n={}){return TL(e,t,{path:o,fs:a,crypto:f,...n})}async function RL(e,t={}){let n=Ae(t,"path"),r=Ae(t,"fs"),i=Ae(t,"crypto"),o=Ae(t,"type","");Be(o)||(o="md5");let a=[],s=ML(e,null,{path:n,fs:r});return await ac(s,async e=>{if(e.isFolder)return;let t=await EL(e.path,{fs:r,crypto:i,type:o});a.push(t)}),vo(a,"|")}function LL(e,t=1,n={}){let r=Ae(n,"path"),i=Ae(n,"fs");if(!XR(e,{fs:i}))throw new Error(`fd[${e}] is not a folder`);let o=[];return o=ML(e,t,{path:r,fs:i}),o=aa(o,{isFolder:!0}),o=An(o,e=>(delete e.isFolder,e)),o}async function PL(e,t,n={}){let r="",i=Ae(n,"fs");if(!Nn(e))throw new Error("fpsIn in not an effective array");let o=oL(t),a=Ae(n,"fnOut","");Be(a)||(a=iL(t)),XR(o,{fs:i})||KR(o,{fs:i});let s=Ga();s.catch(()=>{});let l=null,c=null,u=Ga();u.catch(()=>{});try{l=i.createWriteStream(t),l.on("error",e=>{c=e,r=e.message,u.reject(e),s.reject(r)}),l.on("finish",()=>{let e={filename:a,path:t};s.resolve(e)});for(let t=0;t<e.length;t++){if(null!==c)throw c;let n=e[t];if(!wR(n,{fs:i}))throw new Error(`fpIn[${n}] is not a file`);let r=async()=>{let e=i.createReadStream(n),t=null;for await(let n of e){if(null!==c)throw c;let e=!1,r=new Promise((t,r)=>{e=!l.write(n,e=>{e?r(e):t()})});r.catch(()=>{}),t=r,e&&await Promise.race([h.once(l,"drain"),u])}if(null!==t&&await t,null!==c)throw c;lL(n,{fs:i})};await r()}l.end()}catch(e){r=Ae(e,"message",String(e));try{l.destroy()}catch(e){}s.reject(r)}return s}function OL(e,t,n={}){let r=Ae(n,"fs");if(!wR(e,{fs:r}))return{error:`pahOld[${e}] is not a file`};if(AR(t,{fs:r}))return{error:`pahNew[${t}] already exists`};let i=oL(t);XR(i,{fs:r})||KR(i,{fs:r});try{r.renameSync(e,t)}catch(e){return{error:e}}return{success:"done: "+t}}function UL(e,t,n={}){let r=Ae(n,"fs");if(!XR(e,{fs:r}))return{error:`pahOld[${e}] is not a folder`};if(AR(t,{fs:r}))return{error:`pahNew[${t}] already exists`};let i=oL(t);XR(i,{fs:r})||KR(i,{fs:r});try{r.renameSync(e,t)}catch(e){return{error:e}}return{success:"done: "+t}}function $L(e,t,n,r={}){let i=Ae(r,"withInfor");we(i)||(i=!0);let o={del:[],add:[],same:[],diff:[]};if(!Be(n))return console.log("invalid key"),i&&(o.infor={}),o;Ce(e)||(e=[e]),Ce(t)||(t=[t]),e=aa(e,e=>Ne(e,n)),t=aa(t,e=>Ne(e,n));let a=new Map(t.map(e=>[e[n],e]));for(let t of e){let e=a.get(t[n]);if(e){JSON.stringify(t)===JSON.stringify(e)?o.same.push(e):o.diff.push(e),a.delete(t[n])}else o.del.push(t)}if(o.add=Array.from(a.values()),i){let e={};for(let t of o.del)e[t[n]]="del";for(let t of o.add)e[t[n]]="add";for(let t of o.diff)e[t[n]]="diff";for(let t of o.same)e[t[n]]="same";o.infor=e}return o}async function HL(e,t=1,n={}){let r=Ae(n,"path"),i=Ae(n,"fs"),o=Ae(n,"crypto"),a=Ae(n,"type","");Be(a)||(a="md5");let s=Ae(n,"forFile",null);we(s)||(s=!0);let l=Ae(n,"forFolder",null);if(we(l)||(l=!1),!XR(e,{fs:i}))throw new Error(`fd[${e}] is not a folder`);let c=ML(e,t,{path:r,fs:i});return c=await ac(c,async e=>{let t="";return s&&!e.isFolder&&(t=await EL(e.path,{fs:i,crypto:o,type:a})),l&&e.isFolder&&(t=await RL(e.path,{path:r,fs:i,crypto:o,type:a})),e.hash=t,e}),c}async function zL(e,t,n={}){let r=Ae(n,"path"),i=Ae(n,"fs"),o=Ae(n,"crypto"),a=Ae(n,"type","");if(Be(a)||(a="md5"),!XR(e,{fs:i}))throw new Error(`fdSrc[${e}] is not a folder`);let s=!1;if(!XR(t,{fs:i}))return await nL(e,t,{path:r,fs:i,useSync:!1}),s=!0,s;let l=r.sep,c=r.sep.length,u=(e,t)=>(e=An(e,e=>((e,t)=>{let n=e.isFolder?"folder":"file",r=e.path.replace(t,"");return na(r,c)===l&&(r=ia(r,c)),r=r.replaceAll("\\","/"),{id:`${n}|${r}`,isFolder:e.isFolder,name:e.name,rpath:r,hash:e.hash}})(e,t)),e),d=await HL(e,null,{path:r,fs:i,crypto:o,type:a,forFile:!0,forFolder:!1});d=u(d,r.resolve(e));let f=await HL(t,null,{path:r,fs:i,crypto:o,type:a,forFile:!0,forFolder:!1});f=u(f,r.resolve(t));let h=$L(f,d,"id",{withInfor:!1});return s=or(h.del)>0||or(h.add)>0||or(h.diff)>0,await ac(h.del,async e=>{if(e.isFolder){uL(r.resolve(t,e.rpath),{fs:i})}}),await ac(h.del,async e=>{if(!e.isFolder){lL(r.resolve(t,e.rpath),{fs:i})}}),await ac([...h.add,...h.diff],async n=>{if(!n.isFolder){let o=r.resolve(e,n.rpath),a=r.resolve(t,n.rpath);await eL(o,a,{path:r,fs:i,useSync:!1})}}),s}function qL(e,t={}){let n=Ae(t,"polling");we(n)||(n=!1);let r=Ae(t,"timeInterval");_i(r)||(r=100),r=Wi(r),r=Math.min(r,Ri);let i=Ae(t,"timeBinaryInterval");_i(i)||(i=300),i=Wi(i);let a=Oi(),s=e,l=null,c=setInterval(()=>{null===l&&xR(s)&&(l=d.watch(s,{usePolling:n,interval:r,binaryInterval:i,awaitWriteFinish:!0}),l.on("all",(e,t,n)=>{t=o.resolve(t),$i(a,"change",[{type:e,fp:t,stats:n}],{tag:"fsWatchFile"})}).on("error",e=>{$i(a,"error",[{fun:"watcher",msg:e}],{tag:"fsWatchFile"})}))},r);return a.clear=()=>{(()=>{if(null!==l){try{l.unwatch(s)}catch(e){console.log(e)}l.close().catch(e=>{console.log(e)}).finally(()=>{l=null})}})(),clearInterval(c)},a}function jL(e,t,n={}){let r=null,i=Ae(n,"fs"),o=oL(e);XR(o,{fs:i})||KR(o,{fs:i});try{i.writeFileSync(e,t,"utf8")}catch(e){r=e}return null!==r?{error:r}:{success:e}}const WL=[];for(let e=0;e<256;++e)WL.push((e+256).toString(16).slice(1));const _L=new Uint8Array(16);function VL(){return crypto.getRandomValues(_L)}const YL={};function GL(e,t,n){let r;if(e)r=JL(e.random??e.rng?.()??VL(),e.msecs,e.seq,t,n);else{const e=Date.now(),i=VL();!function(e,t,n){e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=XL(n),e.msecs=t):(e.seq=e.seq+1|0,0===e.seq&&e.msecs++)}(YL,e,i),r=JL(i,YL.msecs,YL.seq,t,n)}return t??function(e,t=0){return(WL[e[t+0]]+WL[e[t+1]]+WL[e[t+2]]+WL[e[t+3]]+"-"+WL[e[t+4]]+WL[e[t+5]]+"-"+WL[e[t+6]]+WL[e[t+7]]+"-"+WL[e[t+8]]+WL[e[t+9]]+"-"+WL[e[t+10]]+WL[e[t+11]]+WL[e[t+12]]+WL[e[t+13]]+WL[e[t+14]]+WL[e[t+15]]).toLowerCase()}(r)}function JL(e,t,n,r,i=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(r){if(i<0||i+16>r.length)throw new RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`)}else r=new Uint8Array(16),i=0;return t??=Date.now(),n??=XL(e),r[i++]=t/1099511627776&255,r[i++]=t/4294967296&255,r[i++]=t/16777216&255,r[i++]=t/65536&255,r[i++]=t/256&255,r[i++]=255&t,r[i++]=112|n>>>28&15,r[i++]=n>>>20&255,r[i++]=128|n>>>14&63,r[i++]=n>>>6&255,r[i++]=n<<2&255|3&e[10],r[i++]=e[11],r[i++]=e[12],r[i++]=e[13],r[i++]=e[14],r[i++]=e[15],r}function XL(e){return(127&e[6])<<24|e[7]<<16|e[8]<<8|e[9]}function KL(e){return"[object Uint16Array]"===Object.prototype.toString.call(e)}function ZL(e){if(!(xe(e)||Ja(e)||ss(e)||KL(e)))return null;try{if(Me(e.byteLength))return e.byteLength}catch(e){}try{if(Me(e.length))return e.length}catch(e){}try{if(Me(e.size))return e.size}catch(e){}return null}function eP(e,t=!0){if(!Nn(e)){return{error:"no data"}}let n=null;try{n=function(e,t=!0){let n=t?"\ufeff":"";return vn(e,e=>{let t=[];vn(e,e=>{ke(e)?(e=fc(e,"\r\n",""),e=fc(e,"\r",""),e=`"${e=fc(e,"\n","")}"`):e=we(e)?e?"true":"false":Na(e),t.push(e)}),n+=vo(t,",")+"\r\n"}),n}(e,t)}catch(e){return{error:e}}return n}function tP(e,t={}){let n=Ae(t,"onlyCheckDateObject",null);if(we(n)||(n=!1),n)return"[object Date]"===Object.prototype.toString.call(e);let r=e;return Be(e)&&(r=new Date(e)),Me(e)&&(r=xr(e),r=new Date(e)),r instanceof Date&&!isNaN(r)}function nP(e){return tP(e,{onlyCheckDateObject:!0})}function rP(e){if(!Number.isFinite(e.getTime()))return"";let t=(e,t)=>String(e).padStart(t,"0"),n=e.getUTCFullYear();return`${`${n<0?"-":""}${t(Math.abs(n),4)}-${t(e.getUTCMonth()+1,2)}-${t(e.getUTCDate(),2)}`}T${`${t(e.getUTCHours(),2)}:${t(e.getUTCMinutes(),2)}:${t(e.getUTCSeconds(),2)}.${t(e.getUTCMilliseconds(),3)}`}`}function iP(e){return we(e)?e?"true":"false":nP(e)?rP(e):Na(e)}function oP(e,t){let n=[];return vn(e,e=>{let r=An(e.rows,e=>An(e,e=>null===e?"":t?iP(e):e));n.push({sheetname:e.name,data:r})}),n}async function aP(e,t){let n=Ae(t,"fmt","ltdt");if(!da(["ltdt","csv","array"],n))return{error:"opt.fmt is not one of 'ltdt', 'csv', 'array'"};let r,i=Ae(t,"valueToString",!0);if(!we(i))return{error:"opt.valueToString is not a boolean"};try{r=await VT(e)}catch(e){return console.log("error: ",e),{error:"can not read data from u8a"}}let o=null;try{"ltdt"===n?o=function(e,t){let n=[];return vn(e,e=>{let r=e.rows,i=An(Ae(r,0,[]),e=>{if(null===e)return null;let t=iP(e);return""===t?null:t}),o=[];for(let e=1;e<r.length;e++){let n=r[e];if(gn(n,e=>null===e))continue;let a={};for(let e=0;e<i.length;e++){if(null===i[e])continue;let r=Ae(n,e,null);null!==r&&(t&&(r=iP(r)),a[i[e]]=r)}o.push(a)}n.push({sheetname:e.name,data:o})}),n}(r.sheets,i):"array"===n?o=oP(r.sheets,i):"csv"===n&&(o=function(e,t){let n=oP(e,t);return t||vn(n,e=>{e.data=An(e.data,e=>An(e,e=>nP(e)?rP(e):e))}),vn(n,(e,t)=>{n[t].data=eP(e.data,!1)}),n}(r.sheets,i))}catch(e){return console.log("error: ",e),{error:"can not convert data"}}return o}
|
|
24
|
+
*/!function(e){e.exports=function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function r(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function s(e){var t=a(e,"string");return"symbol"==typeof t?t:t+""}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}var c={backdrop:!0,button:!0,navbar:!0,navigation:!1,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,inheritedAttributes:["crossOrigin","decoding","isMap","loading","referrerPolicy","sizes","srcset","useMap"],initialCoverage:.9,initialViewIndex:0,inline:!1,autoplay:!0,interval:5e3,keyboard:!0,focus:!0,loading:!0,loop:!0,preload:!0,minWidth:200,minHeight:100,movable:!0,magnifier:!1,rotatable:!0,rotateOnGesture:!0,rotateOnTouch:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnGesture:!0,zoomOnWheel:!0,slideOnTouch:!0,slideOnWheel:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,move:null,moved:null,rotate:null,rotated:null,scale:null,scaled:null,zoom:null,zoomed:null,play:null,playing:null,stop:null},u='<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-magnifier" aria-hidden="true"><img class="viewer-magnifier-image" alt=""></div><div class="viewer-navigation" aria-hidden="true"><div class="viewer-prev" data-viewer-action="prev" role="button" aria-label="Previous"></div><div class="viewer-next" data-viewer-action="next" role="button" aria-label="Next"></div></div><div class="viewer-title" aria-hidden="true"></div><div class="viewer-toolbar" aria-hidden="true"></div><div class="viewer-navbar" aria-hidden="true"><ul class="viewer-list" role="navigation"></ul></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button" aria-hidden="true"></div><div class="viewer-player" aria-hidden="true"></div></div>',d="undefined"!=typeof window&&void 0!==window.document,f=d?window:{},h=!(!d||!f.document.documentElement)&&"ontouchstart"in f.document.documentElement,p=!!d&&"PointerEvent"in f,g="viewer",m="move",y="rotate",v="switch",b="transform",A="zoom",w="".concat(g,"-active"),x="".concat(g,"-close"),I="".concat(g,"-fade"),C="".concat(g,"-fixed"),S="".concat(g,"-fullscreen"),E="".concat(g,"-fullscreen-exit"),k="".concat(g,"-hide"),B="".concat(g,"-hide-md-down"),F="".concat(g,"-hide-sm-down"),D="".concat(g,"-hide-xs-down"),M="".concat(g,"-in"),N="".concat(g,"-invisible"),T="".concat(g,"-loading"),Q="".concat(g,"-move"),R="".concat(g,"-open"),L="".concat(g,"-show"),P="".concat(g,"-transition"),O="click",U="dblclick",$="dragstart",H="focusin",z="keydown",q="load",j="error",W=h?"touchend touchcancel":"mouseup",_=h?"touchmove":"mousemove",V=h?"touchstart":"mousedown",Y=p?"pointerdown":V,G=p?"pointerenter":"mouseenter",J=p?"pointerleave":"mouseleave",X=p?"pointermove":_,K=p?"pointerup pointercancel":W,Z="resize",ee="transitionend",te="wheel",ne="gesturestart gesturechange gestureend",re="ready",ie="show",oe="shown",ae="hide",se="hidden",le="view",ce="viewed",ue="move",de="moved",fe="rotate",he="rotated",pe="scale",ge="scaled",me="zoom",ye="zoomed",ve="play",be="playing",Ae="stop",we="".concat(g,"Action"),xe=/\s+/,Ie=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function Ce(e){return"string"==typeof e}var Se={ctrl:"ctrlKey",shift:"shiftKey",alt:"altKey",meta:"metaKey"};function Ee(e,t){return!!e&&(!0===e||Ce(e)&&e.split("+").every(function(e){return t[Se[e.trim().toLowerCase()]]}))}var ke=Number.isNaN||f.isNaN;function Be(e){return"number"==typeof e&&!ke(e)}function Fe(e){return void 0===e}function De(e){return"object"===l(e)&&null!==e}var Me=Object.prototype.hasOwnProperty;function Ne(e){if(!De(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&Me.call(n,"isPrototypeOf")}catch(e){return!1}}function Te(e){return"function"==typeof e}function Qe(e,t){if(e&&Te(t))if(Array.isArray(e)||Be(e.length)){var n,r=e.length;for(n=0;n<r&&!1!==t.call(e,e[n],n,e);n+=1);}else De(e)&&Object.keys(e).forEach(function(n){t.call(e,e[n],n,e)});return e}function Re(e,t,n){Qe(n,function(n){var r=t.getAttribute(n);null!==r&&e.setAttribute(n,r)})}function Le(e,t){var n=e.transition;return n&&!1!==n[t]}var Pe=Object.assign||function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return De(e)&&n.length>0&&n.forEach(function(t){De(t)&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e},Oe=/^(?:width|height|left|top|marginLeft|marginTop)$/;function Ue(e,t){var n=e.style;Qe(t,function(e,t){Oe.test(t)&&Be(e)&&(e+="px"),n[t]=e})}function $e(e){return Ce(e)?e.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"):e}function He(e,t){return!(!e||!t)&&(e.classList?e.classList.contains(t):e.className.split(xe).indexOf(t)>-1)}function ze(e,t){if(e&&t)if(Be(e.length))Qe(e,function(e){ze(e,t)});else if(e.classList)e.classList.add(t);else{var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function qe(e,t){if(e&&t)if(Be(e.length))Qe(e,function(e){qe(e,t)});else if(e.classList)e.classList.remove(t);else{var n=e.className;n&&n.indexOf(t)>=0&&(e.className=n.split(xe).filter(function(e){return e&&e!==t}).join(" "))}}function je(e,t,n){t&&(Be(e.length)?Qe(e,function(e){je(e,t,n)}):n?ze(e,t):qe(e,t))}var We=/([a-z\d])([A-Z])/g;function _e(e){return e.replace(We,"$1-$2").toLowerCase()}function Ve(e,t){return De(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(_e(t)))}function Ye(e,t,n){De(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(_e(t)),n)}var Ge=function(){var e=!1;if(d){var t=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});f.addEventListener("test",n,r),f.removeEventListener("test",n,r)}return e}();function Je(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(xe).forEach(function(t){if(!Ge){var o=e.listeners;o&&o[t]&&o[t][n]&&(i=o[t][n],delete o[t][n],0===Object.keys(o[t]).length&&delete o[t],0===Object.keys(o).length&&delete e.listeners)}e.removeEventListener(t,i,r)})}function Xe(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(xe).forEach(function(t){if(r.once&&!Ge){var o=e.listeners,a=void 0===o?{}:o;i=function(){delete a[t][n],e.removeEventListener(t,i,r);for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];n.apply(e,s)},a[t]||(a[t]={}),a[t][n]&&e.removeEventListener(t,a[t][n],r),a[t][n]=i,e.listeners=a}e.addEventListener(t,i,r)})}function Ke(e,t,n,r){var i;return Te(Event)&&Te(CustomEvent)?i=new CustomEvent(t,o({bubbles:!0,cancelable:!0,detail:n},r)):(i=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,n),e.dispatchEvent(i)}function Ze(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}function et(e){var t=e.rotate,n=e.scaleX,r=e.scaleY,i=e.translateX,o=e.translateY,a=[];Be(i)&&0!==i&&a.push("translateX(".concat(i,"px)")),Be(o)&&0!==o&&a.push("translateY(".concat(o,"px)")),Be(t)&&0!==t&&a.push("rotate(".concat(t,"deg)")),Be(n)&&Be(r)&&(1!==n||1!==r)&&(a.push("scaleX(".concat(n,")")),a.push("scaleY(".concat(r,")")));var s=a.length?a.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function tt(e){return Ce(e)?decodeURIComponent(e.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}var nt=f.navigator&&/Version\/\d+(\.\d+)+?\s+Safari/i.test(f.navigator.userAgent);function rt(e,t,n){var r=document.createElement("img");if(e.naturalWidth&&!nt)return n(e.naturalWidth,e.naturalHeight),r;var i=document.body||document.documentElement;return r.onload=function(){n(r.width,r.height),nt||i.removeChild(r)},Re(r,e,t.inheritedAttributes),r.src=e.src,nt||(r.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",i.appendChild(r)),r}function it(e){switch(e){case 2:return D;case 3:return F;case 4:return B;default:return""}}function ot(e){var t=o({},e),n=[];return Qe(e,function(e,r){delete t[r],Qe(t,function(t){var r=Math.abs(e.startX-t.startX),i=Math.abs(e.startY-t.startY),o=Math.abs(e.endX-t.endX),a=Math.abs(e.endY-t.endY),s=Math.sqrt(r*r+i*i),l=(Math.sqrt(o*o+a*a)-s)/s;n.push(l)})}),n.sort(function(e,t){return Math.abs(e)<Math.abs(t)}),n[0]}function at(e){var t=o({},e),n=[];return Qe(e,function(e,r){delete t[r],Qe(t,function(t){var r=Math.atan2(t.startY-e.startY,t.startX-e.startX),i=Math.atan2(t.endY-e.endY,t.endX-e.endX)-r;i>Math.PI?i-=2*Math.PI:i<-Math.PI&&(i+=2*Math.PI),n.push(180*i/Math.PI)})}),n.sort(function(e,t){return Math.abs(t)-Math.abs(e)}),n[0]||0}function st(e,t){var n=e.pageX,r=e.pageY,i={endX:n,endY:r};return t?i:o({timeStamp:Date.now(),startX:n,startY:r},i)}function lt(e){var t=0,n=0,r=0;return Qe(e,function(e){var i=e.startX,o=e.startY;t+=i,n+=o,r+=1}),{pageX:t/=r,pageY:n/=r}}var ct={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var e=this.ownerDocument,t=e.body||e.documentElement;this.body=t,this.scrollbarWidth=window.innerWidth-e.documentElement.clientWidth,this.initialBodyPaddingRight=t.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(t).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var e,t=this.options,n=this.parent;t.inline&&(e={width:Math.max(n.offsetWidth,t.minWidth),height:Math.max(n.offsetHeight,t.minHeight)},this.parentData=e),!this.fulled&&e||(e=this.containerData),this.viewerData=Pe({},e)},renderViewer:function(){this.options.inline&&!this.fulled&&Ue(this.viewer,this.viewerData)},initList:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.index,n=this.element,r=this.options,i=this.list,o=[],a=Ne(r.navbar)?r.navbar:{},s=document.createElement("li");this.containerData||this.initContainer(),i.appendChild(s);var l=this.isNavbarVertical?s.offsetHeight+parseInt(window.getComputedStyle(s).marginTop,10):s.offsetWidth+parseInt(window.getComputedStyle(s).marginLeft,10);i.removeChild(s);var c=Be(a.visibleItemCount)?Math.floor(a.visibleItemCount):Math.floor((this.isNavbarVertical?this.containerData.height:this.containerData.width)/l),u=(c=Math.min(c,this.length))>0?Math.min(Math.max(0,t-Math.floor(c/2)),Math.max(0,this.length-c)):0,d=c>0?Math.min(this.length,u+c):this.length;if(i.innerHTML="",Qe(this.images,function(t,n){if(!(c>0&&(n<u||n>=d))){var a=t.src,s=t.alt||tt(a),l=e.getImageURL(t);if(a||l){var f=document.createElement("li"),h=document.createElement("img");Re(h,t,r.inheritedAttributes),r.navbar&&(h.src=a||l),h.alt=s,h.setAttribute("data-original-url",l||a),f.setAttribute("data-index",n),f.setAttribute("data-viewer-action","view"),f.setAttribute("role","button"),r.keyboard&&f.setAttribute("tabindex",0),f.appendChild(h),i.appendChild(f),o.push(f)}}}),this.items=o,this.viewed){var f=this.getItem(this.index);f&&(ze(f,w),f.setAttribute("aria-selected",!0))}Qe(o,function(t){var n,i,o=t.firstElementChild;Ye(o,"filled",!0),r.loading&&ze(t,T),Xe(o,q,n=function(n){Je(o,j,i),r.loading&&qe(t,T),e.loadImage(n)},{once:!0}),Xe(o,j,i=function(){Je(o,q,n),r.loading&&qe(t,T)},{once:!0})}),Le(r,"view")&&Xe(n,ce,function(){ze(i,P)},{once:!0})},getItem:function(e){var t;return Qe(this.items,function(n){return Number(Ve(n,"index"))!==e||(t=n,!1)}),t},renderList:function(){var e=this.index,t=this.getItem(e);if(t){var n=t.nextElementSibling,i=parseInt(window.getComputedStyle(n||t)[this.isNavbarVertical?"marginTop":"marginLeft"],10),o=this.isNavbarVertical?t.offsetHeight:t.offsetWidth,a=o+i;Ue(this.list,Pe(r({},this.isNavbarVertical?"height":"width",a*this.items.length-i),et(r({},this.isNavbarVertical?"translateY":"translateX",((this.isNavbarVertical?this.viewerData.height:this.viewerData.width)-o)/2-(this.isNavbarVertical?t.offsetTop:t.offsetLeft)))))}},resetList:function(){var e=this.list;e.innerHTML="",qe(e,P),Ue(e,Pe(r({},this.isNavbarVertical?"height":"width",0),et(r({},this.isNavbarVertical?"translateY":"translateX",0))))},initImage:function(e){var t,n=this,r=this.options,i=this.image,o=this.viewerData,a=this.title,s=this.toolbar,l=this.navbar,c={top:0,right:0,bottom:0,left:0},u=this.imageData||{};a.offsetHeight&&(c.bottom=o.height-a.offsetTop),Qe([s,l],function(e){var t=e.offsetWidth,n=e.offsetHeight;(t||n)&&["top","right","bottom","left"].some(function(r){if(He(e,"".concat(g,"-").concat(e===s?"toolbar":"navbar","-").concat(r))){var i=e.offsetLeft+t;return"top"===r?i=e.offsetTop+n:"right"===r?i=o.width-e.offsetLeft:"bottom"===r&&(i=o.height-e.offsetTop),c[r]=Math.max(c[r],i),!0}return!1})});var d=Math.max(o.width-c.left-c.right,c.left,c.right),f=Math.max(o.height-c.top-c.bottom,c.top,c.bottom);this.imageInitializing={abort:function(){t.onload=null}},t=rt(i,r,function(t,i){var o=t/i,a=Math.max(0,Math.min(1,r.initialCoverage)),s=d,l=f;n.imageInitializing=!1,f*o>d?l=d/o:s=f*o,a=Be(a)?a:.9,s=Math.min(s*a,t),l=Math.min(l*a,i);var h=c.left+(d-s)/2,p=c.top+(f-l)/2,g={left:h,top:p,x:h,y:p,width:s,height:l,oldRatio:1,ratio:s/t,aspectRatio:o,naturalWidth:t,naturalHeight:i},m=Pe({},g);r.rotatable&&(g.rotate=u.rotate||0,m.rotate=0),r.scalable&&(g.scaleX=u.scaleX||1,g.scaleY=u.scaleY||1,m.scaleX=1,m.scaleY=1),n.imageData=g,n.initialImageData=m,e&&e()})},renderImage:function(e){var t=this,n=this.image,r=this.imageData;if(Ue(n,Pe({width:r.width,height:r.height,marginLeft:r.x,marginTop:r.y},et(r))),this.magnifierPoint&&this.renderMagnifier(),e){var i=!1;if(this.viewing?i="view":this.moving?i="move":this.rotating?i="rotate":this.scaling?i="scale":this.zooming&&(i="zoom"),i&&Le(this.options,i)&&He(n,P)){var o=function(){t.imageRendering=!1,e()};this.imageRendering={abort:function(){Je(n,ee,o)}},Xe(n,ee,o,{once:!0})}else e()}},resetImage:function(){var e=this.image;e&&(this.viewing&&this.viewing.abort(),e.parentNode.removeChild(e),this.image=null,this.title.innerHTML="")}},ut={bind:function(){var e=this.options,t=this.viewer,n=this.canvas,r=this.ownerDocument;Xe(t,O,this.onClick=this.click.bind(this)),Xe(t,$,this.onDragStart=this.dragstart.bind(this)),Xe(t,G,this.onMagnifyEnter=this.magnify.bind(this)),Xe(t,X,this.onMagnify=this.magnify.bind(this)),Xe(t,J,this.onMagnifierLeave=this.hideMagnifier.bind(this)),Xe(n,Y,this.onPointerDown=this.pointerdown.bind(this)),Xe(r,X,this.onPointerMove=this.pointermove.bind(this)),Xe(r,K,this.onPointerUp=this.pointerup.bind(this)),Xe(r,z,this.onKeyDown=this.keydown.bind(this)),Xe(window,Z,this.onResize=this.resize.bind(this)),(e.zoomable&&e.zoomOnWheel||e.slideOnWheel)&&Xe(t,te,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),(e.zoomable&&e.zoomOnGesture||e.rotatable&&e.rotateOnGesture)&&Xe(t,ne,this.onGesture=this.gesture.bind(this),{passive:!1}),e.toggleOnDblclick&&Xe(n,U,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var e=this.options,t=this.viewer,n=this.canvas,r=this.ownerDocument;Je(t,O,this.onClick),Je(t,$,this.onDragStart),Je(t,G,this.onMagnifyEnter),Je(t,X,this.onMagnify),Je(t,J,this.onMagnifierLeave),Je(n,Y,this.onPointerDown),Je(r,X,this.onPointerMove),Je(r,K,this.onPointerUp),Je(r,z,this.onKeyDown),Je(window,Z,this.onResize),(e.zoomable&&e.zoomOnWheel||e.slideOnWheel)&&Je(t,te,this.onWheel,{passive:!1,capture:!0}),(e.zoomable&&e.zoomOnGesture||e.rotatable&&e.rotateOnGesture)&&Je(t,ne,this.onGesture,{passive:!1}),e.toggleOnDblclick&&Je(n,U,this.onDblclick)}},dt={click:function(e){var t=this.options,n=this.imageData,r=e.target,i=Ve(r,we);switch(i||"img"!==r.localName||"li"!==r.parentElement.localName||(i=Ve(r=r.parentElement,we)),h&&e.isTrusted&&r===this.canvas&&clearTimeout(this.clickCanvasTimeout),this.actionEvent=e,i){case"mix":this.played?this.stop():t.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.pointerMoved||this.hide();break;case"view":this.view(Ve(r,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(t.loop);break;case"play":this.play(t.fullscreen);break;case"next":this.next(t.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-n.scaleX||-1);break;case"flip-vertical":this.scaleY(-n.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(e){e.preventDefault(),this.viewed&&e.target===this.image&&(h&&e.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.actionEvent=e.isTrusted?e:e.detail&&e.detail.originalEvent,this.toggle())},load:function(){var e=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var t=this.element,n=this.options,r=this.image,i=this.index,o=this.viewerData;qe(r,N),n.loading&&qe(this.canvas,T),r.style.cssText="height:0;"+"margin-left:".concat(o.width/2,"px;")+"margin-top:".concat(o.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage(function(){je(r,Q,n.movable),je(r,P,Le(n,"view")),e.renderImage(function(){e.viewed=!0,e.viewing=!1,setTimeout(function(){je(r,P,n.transition)},300),Te(n.viewed)&&Xe(t,ce,n.viewed,{once:!0}),Ke(t,ce,{originalImage:e.images[i],index:i,image:r,originalEvent:e.viewOriginalEvent||null},{cancelable:!1}),e.viewOriginalEvent=null})})},loadImage:function(e){var t=e.target,n=t.parentNode,r=n.offsetWidth||30,i=n.offsetHeight||50,o=!!Ve(t,"filled");rt(t,this.options,function(e,n){var a=e/n,s=r,l=i;i*a>r?o?s=i*a:l=r/a:o?l=r/a:s=i*a,Ue(t,Pe({width:s,height:l},et({translateX:(r-s)/2,translateY:(i-l)/2})))})},keydown:function(e){var t=this.options;if(t.keyboard){var n=e.keyCode||e.which||e.charCode;if(this.actionEvent=e,13===n&&this.viewer.contains(e.target)&&this.click(e),this.fulled)switch(n){case 27:this.played?this.stop():t.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.played&&this.playing?this.playing.prev():this.prev(t.loop);break;case 38:e.preventDefault(),this.zoom(t.zoomRatio,!0);break;case 39:this.played&&this.playing?this.playing.next():this.next(t.loop);break;case 40:e.preventDefault(),this.zoom(-t.zoomRatio,!0);break;case 48:case 49:e.ctrlKey&&(e.preventDefault(),this.toggle())}}},dragstart:function(e){"img"===e.target.localName&&e.preventDefault()},magnify:function(e){e.changedTouches||e.pointerType&&"mouse"!==e.pointerType?this.hideMagnifier():(this.magnifierPoint={clientX:e.clientX,clientY:e.clientY},this.renderMagnifier())},renderMagnifier:function(){var e=this.options,t=this.imageData,n=this.magnifier,r=this.magnifierImage,i=this.viewer,o=Ne(e.magnifier)?e.magnifier:{},a=this.magnifierPoint;if(e.magnifier&&this.fulled&&this.viewed&&n&&r&&a){var s=Math.max(1,Number(o.size)||100),l=Math.max(1,Number(o.zoomRatio)||2),c=Number(o.opacity),u=i.getBoundingClientRect(),d=a.clientX-u.left,f=a.clientY-u.top,h=this.image.currentSrc||this.image.src,p=this.image.getBoundingClientRect();if(a.clientX<p.left||a.clientX>p.right||a.clientY<p.top||a.clientY>p.bottom)this.hideMagnifier();else{var g=Be(t.scaleX)?t.scaleX:1,m=Be(t.scaleY)?t.scaleY:1,y=(t.rotate||0)*Math.PI/180,v=Math.cos(y),b=Math.sin(y),A=v*g,w=b*g,x=-b*m,I=v*m,C=g*m;if(0!==C){var S=t.x+t.width/2,E=t.y+t.height/2,k=(-w*(d-S)+A*(f-E))/C,B=(I*(d-S)-x*(f-E))/C+t.width/2,F=k+t.height/2,D=t.width*l,M=t.height*l,N=A*(B*l-D/2)+x*(F*l-M/2),T=w*(B*l-D/2)+I*(F*l-M/2);this.magnifierSourcePoint={x:B,y:F},n.style.width="".concat(s,"px"),n.style.height="".concat(s,"px"),n.style.opacity="".concat(Math.max(0,Math.min(1,Be(c)?c:1))),r.src=h,r.style.width="".concat(D,"px"),r.style.height="".concat(M,"px"),r.style.left="".concat(s/2-D/2-N,"px"),r.style.top="".concat(s/2-M/2-T,"px"),r.style.transform="rotate(".concat(t.rotate||0,"deg) scaleX(").concat(g,") scaleY(").concat(m,")"),n.removeAttribute("aria-hidden"),ze(n,"viewer-show")}else this.hideMagnifier()}}else this.hideMagnifier()},hideMagnifier:function(){this.magnifier&&(qe(this.magnifier,"viewer-show"),this.magnifier.setAttribute("aria-hidden",!0),this.magnifierPoint=null)},pointerdown:function(e){var t=this.options,n=this.pointers,r=this.imageData,i=e.buttons,o=e.button,a=0===Object.keys(n).length;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(Be(i)&&1!==i||Be(o)&&0!==o||e.ctrlKey))){e.preventDefault(),e.changedTouches?Qe(e.changedTouches,function(e){n[e.identifier]=st(e)}):n[e.pointerId||0]=st(e);var s=!!t.movable&&m;(t.zoomable&&t.zoomOnTouch||t.rotatable&&t.rotateOnTouch)&&Object.keys(n).length>1?s=b:t.slideOnTouch&&("touch"===e.pointerType||"touchstart"===e.type)&&this.isSwitchable()&&(s=v),s&&qe(this.image,P),a&&(this.rotateThreshold=0===r.rotate),this.switching=s===v&&{x:r.x,y:r.y},this.action=s}},pointermove:function(e){var t=this.pointers,n=this.action;this.viewed&&n&&(e.preventDefault(),e.changedTouches?Qe(e.changedTouches,function(e){Pe(t[e.identifier]||{},st(e,!0))}):Pe(t[e.pointerId||0]||{},st(e,!0)),this.change(e),qe(this.image,P))},pointerup:function(e){var t,n=this,r=this.options,i=this.action,o=this.pointers,a=this.viewerData;if(e.changedTouches?Qe(e.changedTouches,function(e){t=o[e.identifier],delete o[e.identifier]}):(t=o[e.pointerId||0],delete o[e.pointerId||0]),0===Object.keys(o).length){if(this.rotateThreshold){var s=90*Math.round(this.imageData.rotate/90);s!==this.imageData.rotate&&(this.actionEvent=e,this.rotateTo(s))}this.rotateThreshold=!1}if(i){e.preventDefault();var l=i===b?Le(r,A)||Le(r,y):Le(r,i);if(je(this.image,P,l),i===v&&this.switching){var c=this.imageData,u=this.switching,d=c.x-u.x;this.switching=!1,this.actionEvent=e,Math.abs(d)>a.width/2?d>0?this.prev(r.loop):this.next(r.loop):c.x===u.x&&c.y===u.y||this.moveTo(u.x,u.y)}this.action=!1,h&&i!==A&&i!==b&&t&&Date.now()-t.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),r.toggleOnDblclick&&this.viewed&&e.target===this.image?this.pointerMoved?this.imageClicked=!1:this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){Ke(n.image,U,{originalEvent:e})},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){n.imageClicked=!1},500)):(this.imageClicked=!1,r.backdrop&&"static"!==r.backdrop&&e.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){Ke(n.canvas,O,{originalEvent:e})},50))))}},resize:function(){var e=this;if(this.isShown&&!this.hiding&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),Fe((Ne(this.options.navbar)?this.options.navbar:{}).visibleItemCount)&&this.initList(this.index),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage()}),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement))return void this.stop();Qe(this.player.getElementsByTagName("img"),function(t){Xe(t,q,e.loadImage.bind(e),{once:!0}),Ke(t,q)})}},wheel:function(e){var t=this,n=this.options,r=this.navbar;if(this.viewed&&(e.preventDefault(),!this.gesturing&&!this.wheeling)){this.wheeling=!0,setTimeout(function(){t.wheeling=!1},50);var i=1;if(e.deltaY?i=e.deltaY>0?1:-1:e.wheelDelta?i=-e.wheelDelta/120:e.detail&&(i=e.detail>0?1:-1),(!r||!r.contains(e.target))&&n.zoomable&&Ee(n.zoomOnWheel,e)){var o=Number(n.zoomRatio)||.1;return this.actionEvent=e,void this.zoom(-i*o,!0)}Ee(n.slideOnWheel,e)&&(this.actionEvent=e,i>0?this.next(n.loop):i<0&&this.prev(n.loop))}},gesture:function(e){var t=this.options;if(this.viewed&&(t.zoomOnGesture||t.rotateOnGesture))switch(e.preventDefault(),e.type){case"gesturestart":this.gesturing=!0,this.gestureScale=e.scale||1,this.gestureRotation=e.rotation||0;break;case"gesturechange":var n=e.scale||1,r=n/(this.gestureScale||1),i=Number(e.rotation),o=i-(this.gestureRotation||0);this.gestureScale=n,t.zoomable&&t.zoomOnGesture&&1!==r&&(this.actionEvent=e,this.zoom(r>=1?r-1:1-1/r)),t.rotatable&&t.rotateOnGesture&&Be(i)&&(this.gestureRotation=i,0!==o&&(this.actionEvent=e,this.rotate(o)));break;case"gestureend":if(t.rotatable&&t.rotateOnGesture){var a=90*Math.round(this.imageData.rotate/90);a!==this.imageData.rotate&&(this.actionEvent=e,this.rotateTo(a))}this.gesturing=!1,this.gestureScale=1,this.gestureRotation=0}}},ft={show:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.element,n=this.options;if(n.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(e),this;var r=this.actionEvent||this.showOriginalEvent||this.viewOriginalEvent||null;if(this.actionEvent=null,this.showOriginalEvent=r,Te(n.show)&&Xe(t,ie,n.show,{once:!0}),!1===Ke(t,ie,{originalEvent:r})||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var i=this.viewer;if(qe(i,k),i.setAttribute("role","dialog"),i.setAttribute("aria-labelledby",this.title.id),i.setAttribute("aria-modal",!0),i.removeAttribute("aria-hidden"),Le(n,"show")&&!e){var o=this.shown.bind(this);this.transitioning={abort:function(){Je(i,ee,o),qe(i,M)}},ze(i,P),i.initialOffsetWidth=i.offsetWidth,Xe(i,ee,o,{once:!0}),ze(i,M)}else ze(i,M),this.shown();return this},hide:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.element,r=this.options;if(r.inline||this.hiding||!this.isShown&&!this.showing)return this;var i=this.actionEvent||this.hideOriginalEvent||null;if(this.actionEvent=null,this.hideOriginalEvent=i,Te(r.hide)&&Xe(n,ae,r.hide,{once:!0}),!1===Ke(n,ae,{originalEvent:i})||this.destroyed)return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var o=this.viewer,a=this.image,s=function(){qe(o,M),e.hidden()};if(Le(r,"hide")&&!t){var l=function(t){t&&t.target===o&&(Je(o,ee,l),e.hidden())},c=function(){He(o,P)?(Xe(o,ee,l),qe(o,M)):s()};this.transitioning={abort:function(){e.viewed&&He(a,P)?Je(a,ee,c):He(o,P)&&Je(o,ee,l)}},this.viewed&&He(a,P)?(Xe(a,ee,c,{once:!0}),this.zoomable=!0,this.zoomTo(0,!1)):c()}else s();return this},view:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.initialViewIndex,n=this.index;if(t=Number(t)||0,this.hiding||this.played||t<0||t>=this.length||this.viewed&&t===n)return this;var r=this.actionEvent||this.viewOriginalEvent||null;if(this.actionEvent=null,this.viewOriginalEvent=r,!this.isShown)return this.index=t,this.show();this.viewing&&this.viewing.abort();var i=this.element,o=this.options,a=this.title,s=this.canvas,l=this.getItem(t);l||(this.initList(t),l=this.getItem(t));var c=l.querySelector("img"),u=Ve(c,"originalUrl"),d=c.getAttribute("alt"),f=document.createElement("img");if(Re(f,c,o.inheritedAttributes),f.src=u,f.alt=d,Te(o.view)&&Xe(i,le,o.view,{once:!0}),!1===Ke(i,le,{originalImage:this.images[t],index:t,image:f,originalEvent:r})||!this.isShown||this.hiding||this.played)return this;this.hideMagnifier();var h=this.getItem(n);h&&(qe(h,w),h.removeAttribute("aria-selected")),ze(l,w),l.setAttribute("aria-selected",!0),o.focus&&l.focus(),this.image=f,this.viewed=!1,this.index=t,this.imageData={},ze(f,N),o.loading&&ze(s,T),s.innerHTML="",s.appendChild(f),this.renderList(),a.innerHTML="";var p=function(){var r=e.imageData,i=Array.isArray(o.title)?o.title[1]:o.title;if(a.innerHTML=$e(Te(i)?i.call(e,f,r):"".concat(d," (").concat(r.naturalWidth," × ").concat(r.naturalHeight,")")),o.preload){var s=t<n?-1:1,l=t+s;if((l<0||l>=e.length)&&(l=o.loop?s>0?0:e.length-1:-1),l!==t){var c=e.images[l],u=document.createElement("img");Re(u,c,o.inheritedAttributes),u.src=e.getImageURL(c)||c.src}}};Xe(i,ce,p,{once:!0});var g=function(){var t,n,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=function(){Je(f,q,t),Je(f,j,n),e.timeout&&(clearTimeout(e.timeout),e.timeout=!1)};e.viewing={abort:function(){Je(i,ce,p),f.complete?e.imageRendering?e.imageRendering.abort():e.imageInitializing&&e.imageInitializing.abort():(f.src="",a())}},f.complete?e.load():(Xe(f,q,t=function(){a(),e.load()},{once:!0}),Xe(f,j,n=function(){if(a(),!r){var t=c.src;if(t&&t!==f.src)return f.src=t,void g(!0)}qe(f,N),o.loading&&qe(e.canvas,T)},{once:!0}),e.timeout&&clearTimeout(e.timeout),e.timeout=setTimeout(function(){qe(f,N),e.timeout=!1},1e3))};return g(),this},prev:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.index-1;return t<0&&(t=e?this.length-1:0),this.view(t),this},next:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.length-1,n=this.index+1;return n>t&&(n=e?0:t),this.view(n),this},move:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.imageData;return this.moveTo(Fe(e)?e:n.x+Number(e),Fe(t)?t:n.y+Number(t)),this},moveTo:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=this.element,i=this.options,o=this.imageData;if(e=Number(e),n=Number(n),this.viewed&&!this.played&&i.movable){var a=o.x,s=o.y,l=!1;if(Be(e)?l=!0:e=a,Be(n)?l=!0:n=s,l){var c=this.actionEvent||null;if(this.actionEvent=null,Te(i.move)&&Xe(r,ue,i.move,{once:!0}),!1===Ke(r,ue,{x:e,y:n,oldX:a,oldY:s,originalEvent:c}))return this;o.x=e,o.y=n,o.left=e,o.top=n,je(this.image,P,Le(i,"move")),this.moving=!0,this.renderImage(function(){t.moving=!1,Te(i.moved)&&Xe(r,de,i.moved,{once:!0}),Ke(r,de,{x:e,y:n,oldX:a,oldY:s,originalEvent:c},{cancelable:!1})})}}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e)),this},rotateTo:function(e){var t=this,n=this.element,r=this.options,i=this.imageData;if(Be(e=Number(e))&&this.viewed&&!this.played&&r.rotatable){var o=i.rotate,a=this.actionEvent||null;if(this.actionEvent=null,Te(r.rotate)&&Xe(n,fe,r.rotate,{once:!0}),!1===Ke(n,fe,{degree:e,oldDegree:o,originalEvent:a}))return this;i.rotate=e,je(this.image,P,Le(r,"rotate")),this.rotating=!0,this.renderImage(function(){t.rotating=!1,Te(r.rotated)&&Xe(n,he,r.rotated,{once:!0}),Ke(n,he,{degree:e,oldDegree:o,originalEvent:a},{cancelable:!1})})}return this},scaleX:function(e){return this.scale(e,this.imageData.scaleY),this},scaleY:function(e){return this.scale(this.imageData.scaleX,e),this},scale:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=this.element,i=this.options,o=this.imageData;if(e=Number(e),n=Number(n),this.viewed&&!this.played&&i.scalable){var a=o.scaleX,s=o.scaleY,l=!1;if(Be(e)?l=!0:e=a,Be(n)?l=!0:n=s,l){var c=this.actionEvent||null;if(this.actionEvent=null,Te(i.scale)&&Xe(r,pe,i.scale,{once:!0}),!1===Ke(r,pe,{scaleX:e,scaleY:n,oldScaleX:a,oldScaleY:s,originalEvent:c}))return this;o.scaleX=e,o.scaleY=n,je(this.image,P,Le(i,"scale")),this.scaling=!0,this.renderImage(function(){t.scaling=!1,Te(i.scaled)&&Xe(r,ge,i.scaled,{once:!0}),Ke(r,ge,{scaleX:e,scaleY:n,oldScaleX:a,oldScaleY:s,originalEvent:c},{cancelable:!1})})}}return this},zoom:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.imageData;return e=(e=Number(e))<0?1/(1-e):1+e,this.zoomTo(r.width*e/r.naturalWidth,t,n),this},zoomTo:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.element,o=this.options,a=this.pointers,s=this.imageData,l=this.zoomable,c=s.x,u=s.y,d=s.width,f=s.height,h=s.naturalWidth,p=s.naturalHeight;if(this.zoomable=!1,Be(e=Math.max(0,e))&&this.viewed&&!this.played&&(l||o.zoomable)){if(!l){var g=Math.max(.01,Te(o.minZoomRatio)?o.minZoomRatio.call(this,this.image,s):o.minZoomRatio),m=Math.min(100,Te(o.maxZoomRatio)?o.maxZoomRatio.call(this,this.image,s):o.maxZoomRatio);e=Math.min(Math.max(e,g),m)}var y=this.actionEvent||null;if(this.actionEvent=null,y&&y.type!==O)switch(y.type){case"wheel":o.zoomRatio>=.055&&e>.95&&e<1.05&&(e=1);break;case"pointermove":case"touchmove":case"mousemove":e>.99&&e<1.01&&(e=1)}var v=h*e,b=p*e,A=v-d,w=b-f,x=s.ratio;if(Te(o.zoom)&&Xe(i,me,o.zoom,{once:!0}),!1===Ke(i,me,{ratio:e,oldRatio:x,originalEvent:y}))return this;if(this.zooming=!0,y&&y.type!==O){var I=Ze(this.viewer),C=a&&Object.keys(a).length>0?lt(a):{pageX:y.pageX,pageY:y.pageY};s.x-=A*((C.pageX-I.left-c)/d),s.y-=w*((C.pageY-I.top-u)/f)}else Ne(r)&&Be(r.x)&&Be(r.y)?(s.x-=A*((r.x-c)/d),s.y-=w*((r.y-u)/f)):(s.x-=A/2,s.y-=w/2);s.left=s.x,s.top=s.y,s.width=v,s.height=b,s.oldRatio=x,s.ratio=e,je(this.image,P,Le(o,"zoom")),this.renderImage(function(){t.zooming=!1,Te(o.zoomed)&&Xe(i,ye,o.zoomed,{once:!0}),Ke(i,ye,{ratio:e,oldRatio:x,originalEvent:y},{cancelable:!1})}),n&&this.tooltip()}return this},play:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isShown||this.played)return this;var n=this.element,r=this.options,i=this.actionEvent||null;if(this.actionEvent=null,Te(r.play)&&Xe(n,ve,r.play,{once:!0}),!1===Ke(n,ve,{originalEvent:i}))return this;var o=this.player,a=this.loadImage.bind(this),s=[],l=0,c=0;if(this.played=!0,this.onLoadWhenPlay=a,t&&this.requestFullscreen(t),ze(o,L),o.removeAttribute("aria-hidden"),Qe(this.images,function(t,n){var i=document.createElement("img");i.src=e.getImageURL(t)||t.src,i.alt=t.alt||"",i.referrerPolicy=t.referrerPolicy,l+=1,ze(i,I),je(i,P,Le(r,"play")),n===e.index&&(ze(i,M),c=n),s.push(i),Xe(i,q,a,{once:!0}),o.appendChild(i)}),Be(r.interval)&&r.interval>0){var u=function(){clearTimeout(e.playing.timeout);var t=e.actionEvent||null;e.actionEvent=null;var i=c-1;i=i>=0?i:l-1,Te(r.playing)&&Xe(n,be,r.playing,{once:!0}),!1!==Ke(n,be,{originalImage:e.images[i],index:i,image:s[i],originalEvent:t})?(qe(s[c],M),ze(s[c=i],M),e.playing.timeout=r.autoplay?setTimeout(u,r.interval):null):e.playing.timeout=r.autoplay?setTimeout(u,r.interval):null},d=function(){clearTimeout(e.playing.timeout);var t=e.actionEvent||null;e.actionEvent=null;var i=c+1;i=i<l?i:0,Te(r.playing)&&Xe(n,be,r.playing,{once:!0}),!1!==Ke(n,be,{originalImage:e.images[i],index:i,image:s[i],originalEvent:t})?(qe(s[c],M),ze(s[c=i],M),e.playing.timeout=r.autoplay?setTimeout(d,r.interval):null):e.playing.timeout=r.autoplay?setTimeout(d,r.interval):null};l>1&&(this.playing={prev:u,next:d,timeout:r.autoplay?setTimeout(d,r.interval):null})}return this},stop:function(){var e=this;if(!this.played)return this;var t=this.element,n=this.options,r=this.actionEvent||null;if(this.actionEvent=null,Te(n.stop)&&Xe(t,Ae,n.stop,{once:!0}),!1===Ke(t,Ae,{originalEvent:r}))return this;var i=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,Qe(i.getElementsByTagName("img"),function(t){Je(t,q,e.onLoadWhenPlay)}),qe(i,L),i.setAttribute("aria-hidden",!0),i.innerHTML="",this.exitFullscreen(),this},full:function(){var e=this,t=this.options,n=this.viewer,r=this.image,i=this.list;return!this.isShown||this.played||this.fulled||!t.inline||(this.fulled=!0,this.open(),ze(this.button,E),qe(i,P),this.viewed&&qe(r,P),ze(n,C),n.setAttribute("role","dialog"),n.setAttribute("aria-labelledby",this.title.id),n.setAttribute("aria-modal",!0),n.removeAttribute("style"),Ue(n,{zIndex:t.zIndex}),t.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=Pe({},this.containerData),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage()})),this},exit:function(){var e=this,t=this.options,n=this.viewer,r=this.image,i=this.list;return this.isShown&&!this.played&&this.fulled&&t.inline?(this.fulled=!1,this.close(),qe(this.button,E),qe(i,P),this.viewed&&qe(r,P),t.focus&&this.clearEnforceFocus(),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),qe(n,C),Ue(n,{zIndex:t.zIndexInline}),this.viewerData=Pe({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage()}),this):this},tooltip:function(){var e=this,t=this.options,n=this.tooltipBox,r=this.imageData;return this.viewed&&!this.played&&t.tooltip?(n.textContent="".concat(Math.round(100*r.ratio),"%"),this.tooltipping?clearTimeout(this.tooltipping):Le(t,"tooltip")?(this.fading&&Ke(n,ee),ze(n,L),ze(n,I),ze(n,P),n.removeAttribute("aria-hidden"),n.initialOffsetWidth=n.offsetWidth,ze(n,M)):(ze(n,L),n.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){Le(t,"tooltip")?(Xe(n,ee,function(){qe(n,L),qe(n,I),qe(n,P),n.setAttribute("aria-hidden",!0),e.fading=!1},{once:!0}),qe(n,M),e.fading=!0):(qe(n,L),n.setAttribute("aria-hidden",!0)),e.tooltipping=!1},1e3),this):this},toggle:function(){return 1===this.imageData.ratio?this.zoomTo(this.imageData.oldRatio,!0):this.zoomTo(1,!0),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=Pe({},this.initialImageData),this.renderImage()),this},update:function(e){var t=this,n=this.element,r=this.options,i=this.isImg;if(Ne(e)&&Pe(r,e),i&&!n.parentNode)return this.destroy();var o=[];if(Qe(i?[n]:n.querySelectorAll("img"),function(e){Te(r.filter)?r.filter.call(t,e)&&o.push(e):t.getImageURL(e)&&o.push(e)}),!o.length)return this;if(this.images=o,this.length=o.length,this.ready){var a=[];if(Qe(this.items,function(e){var t=e.querySelector("img"),n=Number(Ve(e,"index")),r=o[n];r&&t&&r.src===t.src&&r.alt===t.alt||a.push(n)}),Ue(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var s=a.indexOf(this.index);if(s>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-s,this.length-1),0));else{var l=this.getItem(this.index);ze(l,w),l.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var e=this.element,t=this.options;return e[g]?(this.destroyed=!0,this.ready?(this.played&&this.stop(),t.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):t.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),t.inline||(Je(e,O,this.onElementClick),Je(e,z,this.onElementKeyDown)),e[g]=void 0,this):this}},ht={getImageURL:function(e){var t=this.options.url;return t=Ce(t)?e.getAttribute(t):Te(t)?t.call(this,e):""},enforceFocus:function(){var e=this;this.clearEnforceFocus(),Xe(document,H,this.onFocusin=function(t){var n=e.viewer,r=t.target;if(r!==document&&r!==n&&!n.contains(r)){for(;r;){if(null!==r.getAttribute("tabindex")||"true"===r.getAttribute("aria-modal"))return;r=r.parentElement}n.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(Je(document,H,this.onFocusin),this.onFocusin=null)},open:function(){var e=this.body;ze(e,R),this.scrollbarWidth>0&&(e.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var e=this.body;qe(e,R),this.scrollbarWidth>0&&(e.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var e=this.element,t=this.options,n=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,t.focus&&(n.focus(),this.enforceFocus()),Te(t.shown)&&Xe(e,oe,t.shown,{once:!0}),!1!==Ke(e,oe,{originalEvent:this.showOriginalEvent||null})&&(this.showOriginalEvent=null,this.ready&&this.isShown&&!this.hiding&&this.view(this.index))},hidden:function(){var e=this.element,t=this.options,n=this.viewer,r=n.ownerDocument.activeElement;r&&n.contains(r)&&Te(r.blur)&&r.blur(),t.focus&&this.clearEnforceFocus(),this.close(),this.unbind(),ze(n,k),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),n.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.hiding=!1,this.destroyed||(Te(t.hidden)&&Xe(e,se,t.hidden,{once:!0}),Ke(e,se,{originalEvent:this.hideOriginalEvent||null},{cancelable:!1}),this.hideOriginalEvent=null)},requestFullscreen:function(e){var t=this.ownerDocument;if(this.fulled&&!(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)){var n=t.documentElement;n.requestFullscreen?Ne(e)?n.requestFullscreen(e):n.requestFullscreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):n.mozRequestFullScreen?n.mozRequestFullScreen():n.msRequestFullscreen&&n.msRequestFullscreen()}},exitFullscreen:function(){var e=this.ownerDocument;this.fulled&&(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement)&&(e.exitFullscreen?e.exitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen())},change:function(e){var t=this.options,n=this.pointers,r=n[Object.keys(n)[0]];if(r){var i=r.endX-r.startX,o=r.endY-r.startY;switch(this.action){case m:0===i&&0===o||(this.pointerMoved=!0,this.actionEvent=e,this.move(i,o));break;case A:if(t.zoomable&&t.zoomOnTouch){var a=ot(n);0!==a&&(this.actionEvent=e,this.zoom(a))}break;case y:if(t.rotatable&&t.rotateOnTouch){var s=at(n);0!==s&&(this.actionEvent=e,this.rotate(s))}break;case b:if(t.zoomable&&t.zoomOnTouch){var l=ot(n);0!==l&&(this.actionEvent=e,this.zoom(l))}if(t.rotatable&&t.rotateOnTouch){var c=at(n);0!==c&&(this.actionEvent=e,this.rotate(c))}break;case v:var u=Math.abs(i);u>1&&u>Math.abs(o)&&(this.pointerMoved=!0,this.actionEvent=e,this.move(i,0))}Qe(n,function(e){e.startX=e.endX,e.startY=e.endY})}},isSwitchable:function(){var e=this.imageData,t=this.viewerData;return this.length>1&&e.x>=0&&e.y>=0&&e.width<=t.width&&e.height<=t.height}},pt=f.Viewer,gt=function(e){return function(){return e+=1}}(-1),mt=function(){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e(this,t),!n||1!==n.nodeType&&11!==n.nodeType)throw new Error("The first argument is required and must be an element.");this.element=n,this.ownerDocument=n.ownerDocument||n.host.ownerDocument,this.options=Pe({},c,Ne(r)&&r),this.action=!1,this.actionEvent=null,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zoomable=!1,this.zooming=!1,this.pointerMoved=!1,this.id=gt(),this.init()}return n(t,[{key:"init",value:function(){var e=this,t=this.element,n=this.options;if(!t[g]){t[g]=this,n.focus&&!n.keyboard&&(n.focus=!1);var r="img"===t.localName,i=[];if(Qe(r?[t]:t.querySelectorAll("img"),function(t){Te(n.filter)?n.filter.call(e,t)&&i.push(t):e.getImageURL(t)&&i.push(t)}),this.isImg=r,this.length=i.length,this.images=i,this.initBody(),Fe(this.ownerDocument.createElement(g).style.transition)&&(n.transition=!1),n.inline){var o=0,a=function(){var t;(o+=1)===e.length&&(e.initializing=!1,e.delaying={abort:function(){clearTimeout(t)}},t=setTimeout(function(){e.delaying=!1,e.build()},0))};this.initializing={abort:function(){Qe(i,function(e){e.complete||(Je(e,q,a),Je(e,j,a))})}},Qe(i,function(e){var t,n;e.complete?a():(Xe(e,q,t=function(){Je(e,j,n),a()},{once:!0}),Xe(e,j,n=function(){Je(e,q,t),a()},{once:!0}))})}else Xe(t,O,this.onElementClick=function(t){var r=t.target;"img"!==r.localName||Te(n.filter)&&!n.filter.call(e,r)||(e.actionEvent=t,e.view(e.images.indexOf(r)))}),Xe(t,z,this.onElementKeyDown=function(t){var r=t.target,i=t.key;"img"!==r.localName||"Enter"!==i&&" "!==i||(t.preventDefault(),Te(n.filter)&&!n.filter.call(e,r)||(e.actionEvent=t,e.view(e.images.indexOf(r))))})}}},{key:"build",value:function(){var e=this;if(!this.ready){var t=this.element,n=this.options,r=t.parentNode,i=document.createElement("div");i.innerHTML=u;var o=i.querySelector(".".concat(g,"-container")),a=o.querySelector(".".concat(g,"-title")),s=o.querySelector(".".concat(g,"-toolbar")),l=o.querySelector(".".concat(g,"-navbar")),c=o.querySelector(".".concat(g,"-navigation")),d=o.querySelector(".".concat(g,"-button")),f=o.querySelector(".".concat(g,"-canvas"));this.parent=r,this.viewer=o,this.title=a,this.toolbar=s,this.navbar=l,this.navigation=c,this.button=d,this.canvas=f,this.magnifier=o.querySelector(".".concat(g,"-magnifier")),this.magnifierImage=o.querySelector(".".concat(g,"-magnifier-image")),this.tooltipBox=o.querySelector(".".concat(g,"-tooltip")),this.player=o.querySelector(".".concat(g,"-player")),this.list=o.querySelector(".".concat(g,"-list")),o.id="".concat(g).concat(this.id),a.id="".concat(g,"Title").concat(this.id),ze(a,n.title?it(Array.isArray(n.title)?n.title[0]:n.title):k),n.title&&a.removeAttribute("aria-hidden");var h=Ne(n.navbar)?n.navbar:{},p=n.navbar,m=Fe(h.size)?n.navbar:h.size,y=-1!==["top","right","bottom","left"].indexOf(h.position)?h.position:"bottom";Ne(n.navbar)&&(p=!!Fe(h.show)||h.show),ze(l,p?it(p):k),p&&l.removeAttribute("aria-hidden"),-1!==["small","medium","large"].indexOf(m)&&ze(l,"".concat(g,"-").concat(m));var v="left"===y||"right"===y;if(this.isNavbarVertical=v,ze(l,"".concat(g,"-navbar-").concat(y)),p){var b=v?c:a,A=v?"navigation":"title";ze(b,"".concat(g,"-").concat(A,"-navbar-").concat(y)),v&&ze(a,"".concat(g,"-title-navbar-").concat(y)),-1!==["small","large"].indexOf(m)&&(ze(b,"".concat(g,"-").concat(A,"-navbar-").concat(v?"".concat(y,"-"):"").concat(m)),v&&ze(a,"".concat(g,"-title-navbar-").concat(y,"-").concat(m)))}if(Ne(n.navigation)?Qe(c.querySelectorAll('[role="button"]'),function(e){var t=Ve(e,we),r=n.navigation[t],i=Ne(r),o=i&&!Fe(r.show)?r.show:r,a=i&&!Fe(r.size)?r.size:r;je(e,k,!o),Be(o)&&ze(e,it(o)),-1!==["small","large"].indexOf(a)&&ze(e,"".concat(g,"-").concat(a))}):ze(c,n.navigation?it(n.navigation):k),n.navigation&&c.removeAttribute("aria-hidden"),je(d,k,!n.button),n.button&&d.removeAttribute("aria-hidden"),n.keyboard&&(d.setAttribute("tabindex",0),Qe(c.querySelectorAll('[role="button"]'),function(e){e.setAttribute("tabindex",0)})),n.backdrop&&(ze(o,"".concat(g,"-backdrop")),n.inline||"static"===n.backdrop||Ye(f,we,"hide")),Ce(n.className)&&n.className&&n.className.split(xe).forEach(function(e){ze(o,e)}),n.toolbar){var w=document.createElement("ul"),E=Ne(n.toolbar),B=E&&-1!==["top","right","bottom","left"].indexOf(n.toolbar.position)?n.toolbar.position:"bottom",F=Ie.slice(0,3),D=Ie.slice(7,9),M=Ie.slice(9);E||ze(s,it(n.toolbar)),s.removeAttribute("aria-hidden"),ze(s,"".concat(g,"-toolbar-").concat(B)),ze(a,"".concat(g,"-title-toolbar-").concat(B)),p&&B===y&&(ze(s,"".concat(g,"-toolbar-navbar-").concat(y)),-1!==["small","large"].indexOf(m)&&ze(s,"".concat(g,"-toolbar-navbar-").concat(m))),Qe(E?n.toolbar:Ie,function(t,r){if("position"!==r){var i=E&&Ne(t),o=E?_e(r):t,a=i&&!Fe(t.show)?t.show:t;if(a&&(n.zoomable||-1===F.indexOf(o))&&(n.rotatable||-1===D.indexOf(o))&&(n.scalable||-1===M.indexOf(o))){var s=i&&!Fe(t.size)?t.size:t,l=i&&!Fe(t.click)?t.click:t,c=document.createElement("li");n.keyboard&&c.setAttribute("tabindex",0),c.setAttribute("role","button"),ze(c,"".concat(g,"-").concat(o)),Te(l)||Ye(c,we,o),Be(a)&&ze(c,it(a)),-1!==["small","large"].indexOf(s)?ze(c,"".concat(g,"-").concat(s)):"play"===o&&ze(c,"".concat(g,"-large")),Te(l)&&Xe(c,O,l.bind(e)),w.appendChild(c)}}}),s.appendChild(w),"left"!==B&&"right"!==B||ze(c,"".concat(g,"-navigation-toolbar-").concat(B))}else ze(s,k);if(!n.rotatable){var T=s.querySelectorAll('li[class*="rotate"]');ze(T,N),Qe(T,function(e){s.appendChild(e)})}if(n.inline)ze(d,S),Ue(o,{zIndex:n.zIndexInline}),"static"===window.getComputedStyle(r).position&&Ue(r,{position:"relative"}),r.insertBefore(o,t.nextSibling);else{ze(d,x),ze(o,C),ze(o,I),ze(o,k),Ue(o,{zIndex:n.zIndex});var Q=n.container;Ce(Q)&&(Q=this.ownerDocument.querySelector(Q)),Q||(Q=this.body),Q.appendChild(o)}n.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,Te(n.ready)&&Xe(t,re,n.ready,{once:!0}),!1!==Ke(t,re)?this.ready&&n.inline&&this.view(this.index):this.ready=!1}}}],[{key:"create",value:function(e,n){return new t(e,n)}},{key:"setDefaults",value:function(e){Pe(c,Ne(e)&&e)}},{key:"noConflict",value:function(){return window.Viewer=pt,t}}])}();return Pe(mt.prototype,ct,ut,dt,ft,ht),mt}()}(vI);var bI=Sr(vI.exports);function AI(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}function wI(e,t,n){(void 0!==n&&!ee(e[t],n)||void 0===n&&!(t in e))&&ei(e,t,n)}function xI(e){return D(e)&&ft(e)}function II(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function CI(e,t,n,r,i,o,a){var s=II(e,n),l=II(t,n),c=a.get(l);if(c)wI(e,n,c);else{var u,d=o?o(s,l,n+"",e,t,a):void 0,f=void 0===d;if(f){var h=v(l),p=!h&&_e(l),g=!h&&!p&&rt(l);d=l,h||p||g?v(s)?d=s:xI(s)?d=Cn(s):p?(f=!1,d=di(l,!0)):g?(f=!1,d=Ai(l,!0)):d=[]:Iu(l)||ze(l)?(d=s,ze(s)?d=ri(u=s,ai(u)):R(s)&&!L(s)||(d=Ci(l))):f=!1}f&&(a.set(l,d),i(d,l,r,o,a),a.delete(l)),wI(e,n,d)}}function SI(e,t,n,r,i){e!==t&&Re(t,function(o,a){if(i||(i=new yt),R(o))CI(e,t,a,n,SI,r,i);else{var s=r?r(II(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),wI(e,a,s)}},ai)}AI("/*!\n * Viewer.js v1.15.2\n * https://fengyuanchen.github.io/viewerjs\n *\n * Copyright 2015-present Chen Fengyuan\n * Released under the MIT license\n *\n * Date: 2026-10-01T05:04:36.958Z\n */\n\n.viewer-zoom-in::before, .viewer-zoom-out::before, .viewer-one-to-one::before, .viewer-reset::before, .viewer-prev::before, .viewer-play::before, .viewer-next::before, .viewer-rotate-left::before, .viewer-rotate-right::before, .viewer-flip-horizontal::before, .viewer-flip-vertical::before, .viewer-fullscreen::before, .viewer-fullscreen-exit::before, .viewer-close::before {\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 560 40%22%3E%3Cpath fill%3D%22%23fff%22 d%3D%22M49.6 17.9h20.2v3.9H49.6zm123.1 2 10.9-11 2.7 2.8-8.2 8.2 8.2 8.2-2.7 2.7-10.9-10.9zm94 0-10.8-11-2.7 2.8 8.1 8.2-8.1 8.2 2.7 2.7 10.8-10.9zM212 9.3l20.1 10.6L212 30.5V9.3zm161.5 4.6-7.2 6 7.2 5.9v-4h12.4v4l7.3-5.9-7.3-6v4h-12.4v-4zm40.2 12.3 5.9 7.2 5.9-7.2h-4V13.6h4l-5.9-7.3-5.9 7.3h4v12.6h-4zm35.9-16.5h6.3v2h-4.3V16h-2V9.7Zm14 0h6.2V16h-2v-4.3h-4.2v-2Zm6.2 14V30h-6.2v-2h4.2v-4.3h2Zm-14 6.3h-6.2v-6.3h2v4.4h4.3v2Zm-438 .1v-8.3H9.6v-3.9h8.2V9.7h3.9v8.2h8.1v3.9h-8.1v8.3h-3.9zM93.6 9.7h-5.8v3.9h2V30h3.8V9.7zm16.1 0h-5.8v3.9h1.9V30h3.9V9.7zm-11.9 4.1h3.9v3.9h-3.9zm0 8.2h3.9v3.9h-3.9zm244.6-11.7 7.2 5.9-7.2 6v-3.6c-5.4-.4-7.8.8-8.7 2.8-.8 1.7-1.8 4.9 2.8 8.2-6.3-2-7.5-6.9-6-11.3 1.6-4.4 8-5 11.9-4.9v-3.1Zm147.2 13.4h6.3V30h-2v-4.3h-4.3v-2zm14 6.3v-6.3h6.2v2h-4.3V30h-1.9zm6.2-14h-6.2V9.7h1.9V14h4.3v2zm-13.9 0h-6.3v-2h4.3V9.7h2V16zm33.3 12.5 8.6-8.6-8.6-8.7 1.9-1.9 8.6 8.7 8.6-8.7 1.9 1.9-8.6 8.7 8.6 8.6-1.9 2-8.6-8.7-8.6 8.7-1.9-2zM297 10.3l-7.1 5.9 7.2 6v-3.6c5.3-.4 7.7.8 8.7 2.8.8 1.7 1.7 4.9-2.9 8.2 6.3-2 7.5-6.9 6-11.3-1.6-4.4-7.9-5-11.8-4.9v-3.1Zm-157.3-.6c2.3 0 4.4.7 6 2l2.5-3 1.9 9.2h-9.3l2.6-3.1a6.2 6.2 0 0 0-9.9 5.1c0 3.4 2.8 6.3 6.2 6.3 2.8 0 5.1-1.9 6-4.4h4c-1 4.7-5 8.3-10 8.3a10 10 0 0 1-10-10.2 10 10 0 0 1 10-10.2Z%22%2F%3E%3C%2Fsvg%3E\");\n background-repeat: no-repeat;\n background-size: 280px;\n color: transparent;\n display: block;\n font-size: 0;\n height: 20px;\n line-height: 0;\n width: 20px;\n }\n\n.viewer-zoom-in::before {\n background-position: 0 0;\n content: 'Zoom In';\n}\n\n.viewer-zoom-out::before {\n background-position: -20px 0;\n content: 'Zoom Out';\n}\n\n.viewer-one-to-one::before {\n background-position: -40px 0;\n content: 'One to One';\n}\n\n.viewer-reset::before {\n background-position: -60px 0;\n content: 'Reset';\n}\n\n.viewer-prev::before {\n background-position: -80px 0;\n content: 'Previous';\n}\n\n.viewer-play::before {\n background-position: -100px 0;\n content: 'Play';\n}\n\n.viewer-next::before {\n background-position: -120px 0;\n content: 'Next';\n}\n\n.viewer-rotate-left::before {\n background-position: -140px 0;\n content: 'Rotate Left';\n}\n\n.viewer-rotate-right::before {\n background-position: -160px 0;\n content: 'Rotate Right';\n}\n\n.viewer-flip-horizontal::before {\n background-position: -180px 0;\n content: 'Flip Horizontal';\n}\n\n.viewer-flip-vertical::before {\n background-position: -200px 0;\n content: 'Flip Vertical';\n}\n\n.viewer-fullscreen::before {\n background-position: -220px 0;\n content: 'Enter Full Screen';\n}\n\n.viewer-fullscreen-exit::before {\n background-position: -240px 0;\n content: 'Exit Full Screen';\n}\n\n.viewer-close::before {\n background-position: -260px 0;\n content: 'Close';\n}\n\n.viewer-container {\n bottom: 0;\n direction: ltr;\n font-size: 0;\n left: 0;\n line-height: 0;\n overflow: hidden;\n position: absolute;\n right: 0;\n -webkit-tap-highlight-color: transparent;\n top: 0;\n -ms-touch-action: none;\n touch-action: none;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.viewer-container::-moz-selection, .viewer-container *::-moz-selection {\n background-color: transparent;\n }\n\n.viewer-container::selection,\n .viewer-container *::selection {\n background-color: transparent;\n }\n\n.viewer-container:focus {\n outline: 0;\n }\n\n.viewer-container img {\n display: block;\n height: auto;\n max-height: none !important;\n max-width: none !important;\n min-height: 0 !important;\n min-width: 0 !important;\n width: 100%;\n }\n\n.viewer-canvas {\n bottom: 0;\n left: 0;\n overflow: hidden;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.viewer-canvas > img {\n height: auto;\n margin: 15px auto;\n max-width: 90% !important;\n width: auto;\n }\n\n.viewer-magnifier {\n background-color: #fff;\n background-repeat: no-repeat;\n border: 2px solid #fff;\n border-radius: 50%;\n box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);\n box-sizing: border-box;\n display: none;\n left: 16px;\n overflow: hidden;\n pointer-events: none;\n position: absolute;\n top: 16px;\n z-index: 2;\n}\n\n.viewer-magnifier.viewer-show {\n display: block;\n }\n\n.viewer-magnifier-image {\n left: 0;\n max-width: none !important;\n position: absolute;\n top: 0;\n -ms-transform-origin: center;\n transform-origin: center;\n}\n\n.viewer-navigation {\n left: 0;\n position: absolute;\n right: 0;\n top: 50%;\n}\n\n.viewer-navigation > .viewer-prev,\n .viewer-navigation > .viewer-next {\n background-color: rgba(0, 0, 0, 0.5);\n border-radius: 50%;\n cursor: pointer;\n height: 40px;\n margin-top: -20px;\n position: absolute;\n width: 40px;\n }\n\n.viewer-navigation > .viewer-prev:focus,\n .viewer-navigation > .viewer-next:focus,\n .viewer-navigation > .viewer-prev:hover,\n .viewer-navigation > .viewer-next:hover {\n background-color: rgba(0, 0, 0, 0.8);\n }\n\n.viewer-navigation > .viewer-prev:focus, .viewer-navigation > .viewer-next:focus {\n box-shadow: 0 0 3px #fff;\n outline: 0;\n }\n\n.viewer-navigation > .viewer-prev::before, .viewer-navigation > .viewer-next::before {\n margin: 10px;\n }\n\n.viewer-navigation > .viewer-prev {\n left: 15px;\n }\n\n.viewer-navigation > .viewer-next {\n right: 15px;\n }\n\n.viewer-navigation > .viewer-large {\n height: 48px;\n margin-top: -24px;\n width: 48px;\n }\n\n.viewer-navigation > .viewer-large::before {\n margin: 14px;\n }\n\n.viewer-navigation > .viewer-small {\n height: 32px;\n margin-top: -16px;\n width: 32px;\n }\n\n.viewer-navigation > .viewer-small::before {\n margin: 6px;\n }\n\n.viewer-navigation-toolbar-left > .viewer-prev {\n left: 51px;\n}\n\n.viewer-navigation-toolbar-right > .viewer-next {\n right: 51px;\n}\n\n.viewer-navigation-navbar-left > .viewer-prev {\n left: 67px;\n}\n\n.viewer-navigation-navbar-right > .viewer-next {\n right: 67px;\n}\n\n.viewer-navigation-navbar-left-small > .viewer-prev {\n left: 57px;\n}\n\n.viewer-navigation-navbar-right-small > .viewer-next {\n right: 57px;\n}\n\n.viewer-navigation-navbar-left-large > .viewer-prev {\n left: 77px;\n}\n\n.viewer-navigation-navbar-right-large > .viewer-next {\n right: 77px;\n}\n\n.viewer-navigation.viewer-navigation-toolbar-left.viewer-navigation-navbar-left > .viewer-prev {\n left: 103px;\n}\n\n.viewer-navigation.viewer-navigation-toolbar-left.viewer-navigation-navbar-left.viewer-navigation-navbar-left-small > .viewer-prev {\n left: 93px;\n}\n\n.viewer-navigation.viewer-navigation-toolbar-left.viewer-navigation-navbar-left.viewer-navigation-navbar-left-large > .viewer-prev {\n left: 113px;\n}\n\n.viewer-navigation.viewer-navigation-toolbar-right.viewer-navigation-navbar-right > .viewer-next {\n right: 103px;\n}\n\n.viewer-navigation.viewer-navigation-toolbar-right.viewer-navigation-navbar-right.viewer-navigation-navbar-right-small > .viewer-next {\n right: 93px;\n}\n\n.viewer-navigation.viewer-navigation-toolbar-right.viewer-navigation-navbar-right.viewer-navigation-navbar-right-large > .viewer-next {\n right: 113px;\n}\n\n.viewer-navbar {\n background-color: rgba(0, 0, 0, 0.5);\n bottom: 0;\n left: 0;\n overflow: hidden;\n position: absolute;\n right: 0;\n}\n\n.viewer-navbar.viewer-small > .viewer-list {\n height: 40px;\n\n > li {\n height: 40px;\n width: 24px;\n }\n }\n\n.viewer-navbar.viewer-large > .viewer-list {\n height: 60px;\n\n > li {\n height: 60px;\n width: 36px;\n }\n }\n\n.viewer-navbar-top {\n bottom: auto;\n top: 0;\n}\n\n.viewer-navbar-left,\n.viewer-navbar-right {\n bottom: 0;\n top: 0;\n width: 52px;\n\n > .viewer-list {\n height: auto;\n padding: 0 1px;\n width: 50px;\n\n > li {\n float: none;\n height: 30px;\n width: 50px;\n }\n\n > li + li {\n margin-left: 0;\n margin-top: 1px;\n }\n }\n}\n\n.viewer-navbar-left.viewer-small, .viewer-navbar-right.viewer-small {\n width: 42px;\n\n > .viewer-list {\n width: 40px;\n\n > li {\n height: 24px;\n width: 40px;\n }\n }\n }\n\n.viewer-navbar-left.viewer-large, .viewer-navbar-right.viewer-large {\n width: 62px;\n\n > .viewer-list {\n width: 60px;\n\n > li {\n height: 36px;\n width: 60px;\n }\n }\n }\n\n.viewer-navbar-left {\n right: auto;\n}\n\n.viewer-navbar-right {\n left: auto;\n}\n\n.viewer-list {\n box-sizing: content-box;\n height: 50px;\n margin: 0;\n overflow: hidden;\n padding: 1px 0;\n}\n\n.viewer-list > li {\n color: transparent;\n cursor: pointer;\n float: left;\n font-size: 0;\n height: 50px;\n line-height: 0;\n opacity: 0.5;\n overflow: hidden;\n transition: opacity 0.15s;\n width: 30px;\n }\n\n.viewer-list > li:focus,\n .viewer-list > li:hover {\n opacity: 0.75;\n }\n\n.viewer-list > li:focus {\n outline: 0;\n }\n\n.viewer-list > li + li {\n margin-left: 1px;\n }\n\n.viewer-list > .viewer-loading {\n position: relative;\n }\n\n.viewer-list > .viewer-loading::after {\n border-width: 2px;\n height: 20px;\n margin-left: -10px;\n margin-top: -10px;\n width: 20px;\n }\n\n.viewer-list > .viewer-active,\n .viewer-list > .viewer-active:focus,\n .viewer-list > .viewer-active:hover {\n opacity: 1;\n }\n\n.viewer-player {\n background-color: #000;\n bottom: 0;\n cursor: none;\n display: none;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 1;\n}\n\n.viewer-player > img {\n left: 0;\n position: absolute;\n top: 0;\n }\n\n.viewer-toolbar {\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n text-align: center;\n}\n\n.viewer-toolbar.viewer-toolbar-top {\n bottom: auto;\n top: 0;\n }\n\n.viewer-toolbar.viewer-toolbar-navbar-top {\n top: 52px;\n }\n\n.viewer-toolbar.viewer-toolbar-navbar-top.viewer-toolbar-navbar-small {\n top: 42px;\n }\n\n.viewer-toolbar.viewer-toolbar-navbar-top.viewer-toolbar-navbar-large {\n top: 62px;\n }\n\n.viewer-toolbar.viewer-toolbar-navbar-right {\n right: 52px;\n }\n\n.viewer-toolbar.viewer-toolbar-navbar-right.viewer-toolbar-navbar-small {\n right: 42px;\n }\n\n.viewer-toolbar.viewer-toolbar-navbar-right.viewer-toolbar-navbar-large {\n right: 62px;\n }\n\n.viewer-toolbar.viewer-toolbar-navbar-bottom {\n bottom: 52px;\n }\n\n.viewer-toolbar.viewer-toolbar-navbar-bottom.viewer-toolbar-navbar-small {\n bottom: 42px;\n }\n\n.viewer-toolbar.viewer-toolbar-navbar-bottom.viewer-toolbar-navbar-large {\n bottom: 62px;\n }\n\n.viewer-toolbar.viewer-toolbar-navbar-left {\n left: 52px;\n }\n\n.viewer-toolbar.viewer-toolbar-navbar-left.viewer-toolbar-navbar-small {\n left: 42px;\n }\n\n.viewer-toolbar.viewer-toolbar-navbar-left.viewer-toolbar-navbar-large {\n left: 62px;\n }\n\n.viewer-toolbar.viewer-toolbar-left,\n .viewer-toolbar.viewer-toolbar-right {\n bottom: auto;\n left: auto;\n right: 0;\n top: 50%;\n -ms-transform: translateY(-50%);\n transform: translateY(-50%);\n width: 36px;\n }\n\n.viewer-toolbar.viewer-toolbar-left > ul, .viewer-toolbar.viewer-toolbar-right > ul {\n margin: 0;\n padding: 3px 6px;\n }\n\n.viewer-toolbar.viewer-toolbar-left > ul > li, .viewer-toolbar.viewer-toolbar-right > ul > li {\n float: none;\n }\n\n.viewer-toolbar.viewer-toolbar-left > ul > li + li, .viewer-toolbar.viewer-toolbar-right > ul > li + li {\n margin-left: 0;\n margin-top: 1px !important;\n }\n\n.viewer-toolbar.viewer-toolbar-left > ul > .viewer-small, .viewer-toolbar.viewer-toolbar-right > ul > .viewer-small {\n margin: 0 3px;\n }\n\n.viewer-toolbar.viewer-toolbar-left > ul > .viewer-large, .viewer-toolbar.viewer-toolbar-right > ul > .viewer-large {\n margin: 0 -3px;\n }\n\n.viewer-toolbar.viewer-toolbar-left {\n left: 0;\n right: auto;\n }\n\n.viewer-toolbar > ul {\n display: inline-block;\n margin: 0 auto 5px;\n overflow: hidden;\n padding: 6px 3px;\n }\n\n.viewer-toolbar > ul > li {\n background-color: rgba(0, 0, 0, 0.5);\n border-radius: 50%;\n cursor: pointer;\n float: left;\n height: 24px;\n overflow: hidden;\n transition: background-color 0.15s;\n width: 24px;\n }\n\n.viewer-toolbar > ul > li:focus,\n .viewer-toolbar > ul > li:hover {\n background-color: rgba(0, 0, 0, 0.8);\n }\n\n.viewer-toolbar > ul > li:focus {\n box-shadow: 0 0 3px #fff;\n outline: 0;\n position: relative;\n z-index: 1;\n }\n\n.viewer-toolbar > ul > li::before {\n margin: 2px;\n }\n\n.viewer-toolbar > ul > li + li {\n margin-left: 1px;\n }\n\n.viewer-toolbar > ul > .viewer-small {\n height: 18px;\n margin-bottom: 3px;\n margin-top: 3px;\n width: 18px;\n }\n\n.viewer-toolbar > ul > .viewer-small::before {\n margin: -1px;\n }\n\n.viewer-toolbar > ul > .viewer-large {\n height: 30px;\n margin-bottom: -3px;\n margin-top: -3px;\n width: 30px;\n }\n\n.viewer-toolbar > ul > .viewer-large::before {\n margin: 5px;\n }\n\n.viewer-tooltip {\n background-color: rgba(0, 0, 0, 0.8);\n border-radius: 10px;\n color: #fff;\n display: none;\n font-size: 12px;\n height: 20px;\n left: 50%;\n line-height: 20px;\n margin-left: -25px;\n margin-top: -10px;\n position: absolute;\n text-align: center;\n top: 50%;\n width: 50px;\n}\n\n.viewer-title {\n bottom: 0;\n color: #ccc;\n display: inline-block;\n font-size: 12px;\n left: 50%;\n line-height: 1.2;\n max-width: 90%;\n min-height: 14px;\n opacity: 0.8;\n overflow: hidden;\n padding: 5px;\n position: absolute;\n text-overflow: ellipsis;\n -ms-transform: translateX(-50%);\n transform: translateX(-50%);\n transition: opacity 0.15s;\n white-space: nowrap;\n}\n\n.viewer-title.viewer-title-navbar-bottom {\n bottom: 52px;\n }\n\n.viewer-title.viewer-title-navbar-bottom.viewer-title-navbar-small {\n bottom: 42px;\n }\n\n.viewer-title.viewer-title-navbar-bottom.viewer-title-navbar-large {\n bottom: 62px;\n }\n\n.viewer-title.viewer-title-toolbar-bottom {\n bottom: 42px;\n }\n\n.viewer-title.viewer-title-toolbar-bottom.viewer-title-navbar-bottom {\n bottom: 94px;\n }\n\n.viewer-title.viewer-title-toolbar-bottom.viewer-title-navbar-bottom.viewer-title-navbar-small {\n bottom: 84px;\n }\n\n.viewer-title.viewer-title-toolbar-bottom.viewer-title-navbar-bottom.viewer-title-navbar-large {\n bottom: 104px;\n }\n\n.viewer-title.viewer-title-toolbar-left,\n .viewer-title.viewer-title-toolbar-right,\n .viewer-title.viewer-title-navbar-left,\n .viewer-title.viewer-title-navbar-right {\n max-width: none;\n text-align: center;\n -ms-transform: none;\n transform: none;\n }\n\n.viewer-title.viewer-title-toolbar-left {\n left: 36px;\n right: 0;\n }\n\n.viewer-title.viewer-title-toolbar-right {\n left: 0;\n right: 36px;\n }\n\n.viewer-title.viewer-title-navbar-left {\n left: 52px;\n right: 0;\n }\n\n.viewer-title.viewer-title-navbar-left.viewer-title-navbar-left-small {\n left: 42px;\n }\n\n.viewer-title.viewer-title-navbar-left.viewer-title-navbar-left-large {\n left: 62px;\n }\n\n.viewer-title.viewer-title-navbar-right {\n left: 0;\n right: 52px;\n }\n\n.viewer-title.viewer-title-navbar-right.viewer-title-navbar-right-small {\n right: 42px;\n }\n\n.viewer-title.viewer-title-navbar-right.viewer-title-navbar-right-large {\n right: 62px;\n }\n\n.viewer-title.viewer-title-toolbar-left.viewer-title-navbar-right {\n left: 36px;\n }\n\n.viewer-title.viewer-title-toolbar-right.viewer-title-navbar-left {\n right: 36px;\n }\n\n.viewer-title.viewer-title-toolbar-left.viewer-title-navbar-left {\n left: 88px;\n }\n\n.viewer-title.viewer-title-toolbar-left.viewer-title-navbar-left.viewer-title-navbar-left-small {\n left: 78px;\n }\n\n.viewer-title.viewer-title-toolbar-left.viewer-title-navbar-left.viewer-title-navbar-left-large {\n left: 98px;\n }\n\n.viewer-title.viewer-title-toolbar-right.viewer-title-navbar-right {\n right: 88px;\n }\n\n.viewer-title.viewer-title-toolbar-right.viewer-title-navbar-right.viewer-title-navbar-right-small {\n right: 78px;\n }\n\n.viewer-title.viewer-title-toolbar-right.viewer-title-navbar-right.viewer-title-navbar-right-large {\n right: 98px;\n }\n\n.viewer-title:hover {\n opacity: 1;\n }\n\n.viewer-button {\n -webkit-app-region: no-drag;\n background-color: rgba(0, 0, 0, 0.5);\n border-radius: 50%;\n cursor: pointer;\n height: 80px;\n overflow: hidden;\n position: absolute;\n right: -40px;\n top: -40px;\n transition: background-color 0.15s;\n width: 80px;\n}\n\n.viewer-button:focus,\n .viewer-button:hover {\n background-color: rgba(0, 0, 0, 0.8);\n }\n\n.viewer-button:focus {\n box-shadow: 0 0 3px #fff;\n outline: 0;\n }\n\n.viewer-button::before {\n bottom: 15px;\n left: 15px;\n position: absolute;\n }\n\n.viewer-fixed {\n position: fixed;\n}\n\n.viewer-open {\n overflow: hidden;\n}\n\n.viewer-show {\n display: block;\n}\n\n.viewer-hide {\n display: none;\n}\n\n.viewer-backdrop {\n background-color: rgba(0, 0, 0, 0.5);\n}\n\n.viewer-invisible {\n visibility: hidden;\n}\n\n.viewer-move {\n cursor: move;\n cursor: grab;\n}\n\n.viewer-fade {\n opacity: 0;\n}\n\n.viewer-in {\n opacity: 1;\n}\n\n.viewer-transition {\n transition: all 0.3s;\n}\n\n@keyframes viewer-spinner {\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.viewer-loading::after {\n animation: viewer-spinner 1s linear infinite;\n border: 4px solid rgba(255, 255, 255, 0.1);\n border-left-color: rgba(255, 255, 255, 0.5);\n border-radius: 50%;\n content: '';\n display: inline-block;\n height: 40px;\n left: 50%;\n margin-left: -20px;\n margin-top: -20px;\n position: absolute;\n top: 50%;\n width: 40px;\n z-index: 1;\n }\n\n@media (max-width: 767px) {\n .viewer-hide-xs-down {\n display: none;\n }\n}\n\n@media (max-width: 991px) {\n .viewer-hide-sm-down {\n display: none;\n }\n}\n\n@media (max-width: 1199px) {\n .viewer-hide-md-down {\n display: none;\n }\n}\n");var EI,kI=(EI=function(e,t,n){SI(e,t,n)},Fa(function(e,t){var n=-1,r=t.length,i=r>1?t[r-1]:void 0,o=r>2?t[2]:void 0;for(i=EI.length>3&&"function"==typeof i?(r--,i):void 0,o&&pn(t[0],t[1],o)&&(i=r<3?void 0:i,r=1),e=Object(e);++n<r;){var a=t[n];a&&EI(e,a,n,i)}return e}));async function BI(e,t=null,n={}){let r=!0,i=null,o=Ga();Ee(n)||(n={});let a=Ae(n,"disTouchMoveToHide",null);if(go(a)||(a=4),a=Wi(a),!Du(e))return o.reject("eleImg is not a HTMLElement"),o;if(i=e,null!==t){if(!Du(t))return o.reject("eleGroup is not a HTMLElement"),o;r=!1,i=t}if(!r){let e=or(t.querySelectorAll("img"));if(0===e)return o.reject("eleGroup does not contain any img"),o;1===e&&(r=!0)}let s={button:!1,navbar:!1,title:!1,toolbar:{zoomIn:4,zoomOut:4,oneToOne:4,reset:4,prev:0,play:0,next:0,rotateLeft:4,rotateRight:4,flipHorizontal:4,flipVertical:4},tooltip:!1,movable:!0,zoomable:!0,rotatable:!0,scalable:!0,transition:!0,fullscreen:!1,keyboard:!0};r||(s=function(){let e={button:!1,navbar:!1,title:!1,toolbar:{zoomIn:4,zoomOut:4,oneToOne:4,reset:4,prev:0,play:0,next:0,rotateLeft:4,rotateRight:4,flipHorizontal:4,flipVertical:4},tooltip:!1,movable:!0,zoomable:!0,rotatable:!0,scalable:!0,transition:!0,fullscreen:!1,keyboard:!0};return e.navbar=!0,e.toolbar.prev=4,e.toolbar.next=4,e}()),s=kI(s,Qi(n)),s.shown=function(){(async()=>{let e=null;await gs(()=>(e=c.viewer,Du(e)));let t=!1,n=0,r=0,i=0;e.addEventListener("touchstart",e=>{let i=e.touches[0];n=i.clientX,r=i.clientY,((e,t)=>{let n=document.elementsFromPoint(e,t).find(e=>"IMG"===e.tagName);if(!Du(n))return!0;let r=n?.classList?.contains("viewer-move");return!r})(n,r)&&(t=!0)},{passive:!1}),e.addEventListener("touchmove",e=>{if(!t)return;let o=e.touches[0],a=o.clientX,s=o.clientY,l=a-n,c=s-r,u=Math.sqrt(l*l+c*c);i+=u,n=o.clientX,r=o.clientY},{passive:!1}),e.addEventListener("touchend",e=>{t&&(i<a&&(e.preventDefault(),e.stopPropagation(),c.hide(!0)),t=!1,i=0)},{passive:!1}),e.addEventListener("touchcancel",e=>{t=!1,i=0})})().catch(e=>{console.log(e)})};let l=!1;s.hide=function(){l||(l=!0,c.hide(!0))},s.hidden=function(){c.destroy(),o.resolve("close")};let c=new bI(i,s);return c.show(),o}function FI(e,t){let n=new MouseEvent(t,{view:window,bubbles:!0,cancelable:!0});e.dispatchEvent(n)}function DI(e={}){let t=Ae(e,"kind","*"),n=Ae(e,"multiple");we(n)||(n=!1);let r=Ae(e,"entireHierarchy");we(r)||(r=!1),r&&!n&&(n=!0);let i=Ae(e,"sizeMbLimit");Me(i)||(i=1e3),i=xr(i);let o=Ga(),a="drf"+Wu(),s="GrpDomReadFile";Aw(`[name=${s}]`);let l=vx(t),c=`<div name="${s}" style="position:relative; width:0px; height:0px; overflow:hidden;"><input id="${a}" type="file" accept="${l}" ${n?"multiple":""} ${r?"webkitdirectory":""} style="opacity:0; position:absolute; top:-10000px; left:-10000px;"></div>`;td(document.querySelector("body"),c);let u=ux("#"+a),d=!1;function f(e){d=!0;let t=bx(this,i);o.resolve(t),u.removeEventListener("change",f,!0),u.removeEventListener("cancel",h,!0),r||window.removeEventListener("focus",p),Aw(`[name=${s}]`)}function h(e){d||f.call(u,e)}function p(e){setTimeout(()=>{d||f.call(u,e)},1500)}return u.addEventListener("change",f,!0),u.addEventListener("cancel",h,!0),r||window.addEventListener("focus",p),FI(u,"click"),o}function MI(e){if(!Be(e))return!1;let n="YYYY-MM-DDTHH:mm:ss";return e===t(e,n).format(n)}Xa()&&function(){try{return new MouseEvent("MouseEventPolyfillTest"),!1}catch(e){}let e=function(e,t){t=t||{bubbles:!1,cancelable:!1};let n=document.createEvent("MouseEvent");return n.initMouseEvent(e,t.bubbles,t.cancelable,window,0,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null),n};e.prototype=Event.prototype,window.MouseEvent=e}();var NI="top",TI="bottom",QI="right",RI="left",LI="auto",PI=[NI,TI,QI,RI],OI="start",UI="end",$I="viewport",HI="popper",zI=PI.reduce(function(e,t){return e.concat([t+"-"+OI,t+"-"+UI])},[]),qI=[].concat(PI,[LI]).reduce(function(e,t){return e.concat([t,t+"-"+OI,t+"-"+UI])},[]),jI=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function WI(e){return e?(e.nodeName||"").toLowerCase():null}function _I(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function VI(e){return e instanceof _I(e).Element||e instanceof Element}function YI(e){return e instanceof _I(e).HTMLElement||e instanceof HTMLElement}function GI(e){return"undefined"!=typeof ShadowRoot&&(e instanceof _I(e).ShadowRoot||e instanceof ShadowRoot)}var JI={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];YI(i)&&WI(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});YI(r)&&WI(r)&&(Object.assign(r.style,o),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]};function XI(e){return e.split("-")[0]}var KI=Math.max,ZI=Math.min,eC=Math.round;function tC(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function nC(){return!/^((?!chrome|android).)*safari/i.test(tC())}function rC(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&YI(e)&&(i=e.offsetWidth>0&&eC(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&eC(r.height)/e.offsetHeight||1);var a=(VI(e)?_I(e):window).visualViewport,s=!nC()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/i,c=(r.top+(s&&a?a.offsetTop:0))/o,u=r.width/i,d=r.height/o;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function iC(e){var t=rC(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function oC(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&GI(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function aC(e){return _I(e).getComputedStyle(e)}function sC(e){return["table","td","th"].indexOf(WI(e))>=0}function lC(e){return((VI(e)?e.ownerDocument:e.document)||window.document).documentElement}function cC(e){return"html"===WI(e)?e:e.assignedSlot||e.parentNode||(GI(e)?e.host:null)||lC(e)}function uC(e){return YI(e)&&"fixed"!==aC(e).position?e.offsetParent:null}function dC(e){for(var t=_I(e),n=uC(e);n&&sC(n)&&"static"===aC(n).position;)n=uC(n);return n&&("html"===WI(n)||"body"===WI(n)&&"static"===aC(n).position)?t:n||function(e){var t=/firefox/i.test(tC());if(/Trident/i.test(tC())&&YI(e)&&"fixed"===aC(e).position)return null;var n=cC(e);for(GI(n)&&(n=n.host);YI(n)&&["html","body"].indexOf(WI(n))<0;){var r=aC(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function fC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function hC(e,t,n){return KI(e,ZI(t,n))}function pC(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function gC(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var mC={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=XI(n.placement),l=fC(s),c=[RI,QI].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return pC("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:gC(e,PI))}(i.padding,n),d=iC(o),f="y"===l?NI:RI,h="y"===l?TI:QI,p=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],g=a[l]-n.rects.reference[l],m=dC(o),y=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,v=p/2-g/2,b=u[f],A=y-d[c]-u[h],w=y/2-d[c]/2+v,x=hC(b,w,A),I=l;n.modifiersData[r]=((t={})[I]=x,t.centerOffset=x-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&oC(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function yC(e){return e.split("-")[1]}var vC={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bC(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,h=void 0===f?0:f,p=a.y,g=void 0===p?0:p,m="function"==typeof u?u({x:h,y:g}):{x:h,y:g};h=m.x,g=m.y;var y=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),b=RI,A=NI,w=window;if(c){var x=dC(n),I="clientHeight",C="clientWidth";if(x===_I(n)&&"static"!==aC(x=lC(n)).position&&"absolute"===s&&(I="scrollHeight",C="scrollWidth"),i===NI||(i===RI||i===QI)&&o===UI)A=TI,g-=(d&&x===w&&w.visualViewport?w.visualViewport.height:x[I])-r.height,g*=l?1:-1;if(i===RI||(i===NI||i===TI)&&o===UI)b=QI,h-=(d&&x===w&&w.visualViewport?w.visualViewport.width:x[C])-r.width,h*=l?1:-1}var S,E=Object.assign({position:s},c&&vC),k=!0===u?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:eC(n*i)/i||0,y:eC(r*i)/i||0}}({x:h,y:g},_I(n)):{x:h,y:g};return h=k.x,g=k.y,l?Object.assign({},E,((S={})[A]=v?"0":"",S[b]=y?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",S)):Object.assign({},E,((t={})[A]=v?g+"px":"",t[b]=y?h+"px":"",t.transform="",t))}var AC={passive:!0};var wC={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,l=_I(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",n.update,AC)}),s&&l.addEventListener("resize",n.update,AC),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",n.update,AC)}),s&&l.removeEventListener("resize",n.update,AC)}},data:{}},xC={left:"right",right:"left",bottom:"top",top:"bottom"};function IC(e){return e.replace(/left|right|bottom|top/g,function(e){return xC[e]})}var CC={start:"end",end:"start"};function SC(e){return e.replace(/start|end/g,function(e){return CC[e]})}function EC(e){var t=_I(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function kC(e){return rC(lC(e)).left+EC(e).scrollLeft}function BC(e){var t=aC(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function FC(e){return["html","body","#document"].indexOf(WI(e))>=0?e.ownerDocument.body:YI(e)&&BC(e)?e:FC(cC(e))}function DC(e,t){var n;void 0===t&&(t=[]);var r=FC(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=_I(r),a=i?[o].concat(o.visualViewport||[],BC(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(DC(cC(a)))}function MC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function NC(e,t,n){return t===$I?MC(function(e,t){var n=_I(e),r=lC(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=nC();(c||!c&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+kC(e),y:l}}(e,n)):VI(t)?function(e,t){var n=rC(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):MC(function(e){var t,n=lC(e),r=EC(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=KI(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=KI(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+kC(e),l=-r.scrollTop;return"rtl"===aC(i||n).direction&&(s+=KI(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(lC(e)))}function TC(e,t,n,r){var i="clippingParents"===t?function(e){var t=DC(cC(e)),n=["absolute","fixed"].indexOf(aC(e).position)>=0&&YI(e)?dC(e):e;return VI(n)?t.filter(function(e){return VI(e)&&oC(e,n)&&"body"!==WI(e)}):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(t,n){var i=NC(e,n,r);return t.top=KI(i.top,t.top),t.right=ZI(i.right,t.right),t.bottom=ZI(i.bottom,t.bottom),t.left=KI(i.left,t.left),t},NC(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function QC(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?XI(i):null,a=i?yC(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case NI:t={x:s,y:n.y-r.height};break;case TI:t={x:s,y:n.y+n.height};break;case QI:t={x:n.x+n.width,y:l};break;case RI:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?fC(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case OI:t[c]=t[c]-(n[u]/2-r[u]/2);break;case UI:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function RC(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,u=void 0===c?$I:c,d=n.elementContext,f=void 0===d?HI:d,h=n.altBoundary,p=void 0!==h&&h,g=n.padding,m=void 0===g?0:g,y=pC("number"!=typeof m?m:gC(m,PI)),v=f===HI?"reference":HI,b=e.rects.popper,A=e.elements[p?v:f],w=TC(VI(A)?A:A.contextElement||lC(e.elements.popper),l,u,a),x=rC(e.elements.reference),I=QC({reference:x,element:b,strategy:"absolute",placement:i}),C=MC(Object.assign({},b,I)),S=f===HI?C:x,E={top:w.top-S.top+y.top,bottom:S.bottom-w.bottom+y.bottom,left:w.left-S.left+y.left,right:S.right-w.right+y.right},k=e.modifiersData.offset;if(f===HI&&k){var B=k[i];Object.keys(E).forEach(function(e){var t=[QI,TI].indexOf(e)>=0?1:-1,n=[NI,TI].indexOf(e)>=0?"y":"x";E[e]+=B[n]*t})}return E}function LC(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?qI:l,u=yC(r),d=u?s?zI:zI.filter(function(e){return yC(e)===u}):PI,f=d.filter(function(e){return c.indexOf(e)>=0});0===f.length&&(f=d);var h=f.reduce(function(t,n){return t[n]=RC(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[XI(n)],t},{});return Object.keys(h).sort(function(e,t){return h[e]-h[t]})}var PC={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=void 0===h||h,g=n.allowedAutoPlacements,m=t.options.placement,y=XI(m),v=l||(y===m||!p?[IC(m)]:function(e){if(XI(e)===LI)return[];var t=IC(e);return[SC(e),t,SC(t)]}(m)),b=[m].concat(v).reduce(function(e,n){return e.concat(XI(n)===LI?LC(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:g}):n)},[]),A=t.rects.reference,w=t.rects.popper,x=new Map,I=!0,C=b[0],S=0;S<b.length;S++){var E=b[S],k=XI(E),B=yC(E)===OI,F=[NI,TI].indexOf(k)>=0,D=F?"width":"height",M=RC(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),N=F?B?QI:RI:B?TI:NI;A[D]>w[D]&&(N=IC(N));var T=IC(N),Q=[];if(o&&Q.push(M[k]<=0),s&&Q.push(M[N]<=0,M[T]<=0),Q.every(function(e){return e})){C=E,I=!1;break}x.set(E,Q)}if(I)for(var R=function(e){var t=b.find(function(t){var n=x.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return C=t,"break"},L=p?3:1;L>0;L--){if("break"===R(L))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function OC(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function UC(e){return[NI,QI,TI,RI].some(function(t){return e[t]>=0})}var $C={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=qI.reduce(function(e,n){return e[n]=function(e,t,n){var r=XI(e),i=[RI,NI].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[RI,QI].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e},{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var HC={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,h=void 0===f||f,p=n.tetherOffset,g=void 0===p?0:p,m=RC(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=XI(t.placement),v=yC(t.placement),b=!v,A=fC(y),w="x"===A?"y":"x",x=t.modifiersData.popperOffsets,I=t.rects.reference,C=t.rects.popper,S="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,E="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(x){if(o){var F,D="y"===A?NI:RI,M="y"===A?TI:QI,N="y"===A?"height":"width",T=x[A],Q=T+m[D],R=T-m[M],L=h?-C[N]/2:0,P=v===OI?I[N]:C[N],O=v===OI?-C[N]:-I[N],U=t.elements.arrow,$=h&&U?iC(U):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=H[D],q=H[M],j=hC(0,I[N],$[N]),W=b?I[N]/2-L-j-z-E.mainAxis:P-j-z-E.mainAxis,_=b?-I[N]/2+L+j+q+E.mainAxis:O+j+q+E.mainAxis,V=t.elements.arrow&&dC(t.elements.arrow),Y=V?"y"===A?V.clientTop||0:V.clientLeft||0:0,G=null!=(F=null==k?void 0:k[A])?F:0,J=T+_-G,X=hC(h?ZI(Q,T+W-G-Y):Q,T,h?KI(R,J):R);x[A]=X,B[A]=X-T}if(s){var K,Z="x"===A?NI:RI,ee="x"===A?TI:QI,te=x[w],ne="y"===w?"height":"width",re=te+m[Z],ie=te-m[ee],oe=-1!==[NI,RI].indexOf(y),ae=null!=(K=null==k?void 0:k[w])?K:0,se=oe?re:te-I[ne]-C[ne]-ae+E.altAxis,le=oe?te+I[ne]+C[ne]-ae-E.altAxis:ie,ce=h&&oe?function(e,t,n){var r=hC(e,t,n);return r>n?n:r}(se,te,le):hC(h?se:re,te,h?le:ie);x[w]=ce,B[w]=ce-te}t.modifiersData[r]=B}},requiresIfExists:["offset"]};function zC(e,t,n){void 0===n&&(n=!1);var r,i,o=YI(t),a=YI(t)&&function(e){var t=e.getBoundingClientRect(),n=eC(t.width)/e.offsetWidth||1,r=eC(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=lC(t),l=rC(e,a,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&(("body"!==WI(t)||BC(s))&&(c=(r=t)!==_I(r)&&YI(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:EC(r)),YI(t)?((u=rC(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=kC(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function qC(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||i(e)}),r}function jC(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}var WC={placement:"bottom",modifiers:[],strategy:"absolute"};function _C(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function VC(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?WC:i;return function(e,t,n){void 0===n&&(n=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},WC,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,l={state:i,setOptions:function(n){var s="function"==typeof n?n(i.options):n;c(),i.options=Object.assign({},o,i.options,s),i.scrollParents={reference:VI(e)?DC(e):e.contextElement?DC(e.contextElement):[],popper:DC(t)};var u,d,f=function(e){var t=qC(e);return jI.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((u=[].concat(r,i.options.modifiers),d=u.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(d).map(function(e){return d[e]})));return i.orderedModifiers=f.filter(function(e){return e.enabled}),i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var s=o({state:i,name:t,instance:l,options:r}),c=function(){};a.push(s||c)}}),l.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(_C(t,n)){i.rects={reference:zC(t,dC(n),"fixed"===i.options.strategy),popper:iC(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],a=o.fn,c=o.options,u=void 0===c?{}:c,d=o.name;"function"==typeof a&&(i=a({state:i,options:u,name:d,instance:l})||i)}else i.reset=!1,r=-1}}},update:jC(function(){return new Promise(function(e){l.forceUpdate(),e(i)})}),destroy:function(){c(),s=!0}};if(!_C(e,t))return l;function c(){a.forEach(function(e){return e()}),a=[]}return l.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)}),l}}var YC=VC({defaultModifiers:[wC,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=QC({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,c={placement:XI(t.placement),variation:yC(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,bC(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,bC(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},JI,$C,PC,HC,mC,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=RC(t,{elementContext:"reference"}),s=RC(t,{altBoundary:!0}),l=OC(a,r),c=OC(s,i,o),u=UC(l),d=UC(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),GC="tippy-content",JC="tippy-arrow",XC="tippy-svg-arrow",KC={passive:!0,capture:!0},ZC=function(){return document.body};function eS(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function tS(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function nS(e,t){return"function"==typeof e?e.apply(void 0,t):e}function rS(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)};var n}function iS(e){return[].concat(e)}function oS(e,t){-1===e.indexOf(t)&&e.push(t)}function aS(e){return[].slice.call(e)}function sS(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function lS(){return document.createElement("div")}function cS(e){return["Element","Fragment"].some(function(t){return tS(e,t)})}function uS(e){return cS(e)?[e]:function(e){return tS(e,"NodeList")}(e)?aS(e):Array.isArray(e)?e:aS(document.querySelectorAll(e))}function dS(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function fS(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function hS(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[r](t,n)})}function pS(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var gS={isTouch:!1},mS=0;function yS(){gS.isTouch||(gS.isTouch=!0,window.performance&&document.addEventListener("mousemove",vS))}function vS(){var e=performance.now();e-mS<20&&(gS.isTouch=!1,document.removeEventListener("mousemove",vS)),mS=e}function bS(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var AS,wS=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;function xS(e){return[e+"() was called on a"+("destroy"===e?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function IS(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function CS(e){return IS("\n %ctippy.js\n\n %c"+IS(e)+"\n\n %c👷 This is a development-only message. It will be removed in production.\n ")}function SS(e){return[CS(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function ES(e,t){var n;e&&!AS.has(t)&&(AS.add(t),(n=console).warn.apply(n,SS(t)))}function kS(e,t){var n;e&&!AS.has(t)&&(AS.add(t),(n=console).error.apply(n,SS(t)))}AS=new Set;var BS={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},FS=Object.assign({appendTo:ZC,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},BS,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),DS=Object.keys(FS);function MS(e){var t=(e.plugins||[]).reduce(function(t,n){var r,i=n.name,o=n.defaultValue;i&&(t[i]=void 0!==e[i]?e[i]:null!=(r=FS[i])?r:o);return t},{});return Object.assign({},e,t)}function NS(e,t){var n=Object.assign({},t,{content:nS(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(MS(Object.assign({},FS,{plugins:t}))):DS).reduce(function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t},{})}(e,t.plugins));return n.aria=Object.assign({},FS.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function TS(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),Object.keys(e).forEach(function(e){var n=function(e,t){var n=Object.assign({},e);return t.forEach(function(e){delete n[e]}),n}(FS,Object.keys(BS)),r=!function(e,t){return{}.hasOwnProperty.call(e,t)}(n,e);r&&(r=0===t.filter(function(t){return t.name===e}).length),ES(r,["`"+e+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}function QS(e,t){e.innerHTML=t}function RS(e){var t=lS();return!0===e?t.className=JC:(t.className=XC,cS(e)?t.appendChild(e):QS(t,e)),t}function LS(e,t){cS(t.content)?(QS(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?QS(e,t.content):e.textContent=t.content)}function PS(e){var t=e.firstElementChild,n=aS(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(GC)}),arrow:n.find(function(e){return e.classList.contains(JC)||e.classList.contains(XC)}),backdrop:n.find(function(e){return e.classList.contains("tippy-backdrop")})}}function OS(e){var t=lS(),n=lS();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=lS();function i(n,r){var i=PS(t),o=i.box,a=i.content,s=i.arrow;r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),"string"==typeof r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||LS(a,e.props),r.arrow?s?n.arrow!==r.arrow&&(o.removeChild(s),o.appendChild(RS(r.arrow))):o.appendChild(RS(r.arrow)):s&&o.removeChild(s)}return r.className=GC,r.setAttribute("data-state","hidden"),LS(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props),{popper:t,onUpdate:i}}OS.$$tippy=!0;var US=1,$S=[],HS=[];function zS(e,t){var n,r,i,o,a,s,l,c,u=NS(e,Object.assign({},FS,MS(sS(t)))),d=!1,f=!1,h=!1,p=!1,g=[],m=rS(V,u.interactiveDebounce),y=US++,v=(c=u.plugins).filter(function(e,t){return c.indexOf(e)===t}),b={id:y,reference:e,popper:lS(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:v,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(i)},setProps:function(t){if(ES(b.state.isDestroyed,xS("setProps")),b.state.isDestroyed)return;T("onBeforeUpdate",[b,t]),W();var n=b.props,r=NS(e,Object.assign({},n,sS(t),{ignoreAttributes:!0}));b.props=r,j(),n.interactiveDebounce!==r.interactiveDebounce&&(L(),m=rS(V,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?iS(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):r.triggerTarget&&e.removeAttribute("aria-expanded");R(),N(),x&&x(n,r);b.popperInstance&&(X(),Z().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}));T("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){ES(b.state.isDestroyed,xS("show"));var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=gS.isTouch&&!b.props.touch,i=eS(b.props.duration,0,FS.duration);if(e||t||n||r)return;if(B().hasAttribute("disabled"))return;if(T("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,k()&&(w.style.visibility="visible");N(),$(),b.state.isMounted||(w.style.transition="none");if(k()){var o=D();dS([o.box,o.content],0)}s=function(){var e;if(b.state.isVisible&&!p){if(p=!0,w.offsetHeight,w.style.transition=b.props.moveTransition,k()&&b.props.animation){var t=D(),n=t.box,r=t.content;dS([n,r],i),fS([n,r],"visible")}Q(),R(),oS(HS,b),null==(e=b.popperInstance)||e.forceUpdate(),T("onMount",[b]),b.props.animation&&k()&&function(e,t){z(e,t)}(i,function(){b.state.isShown=!0,T("onShown",[b])})}},function(){var e,t=b.props.appendTo,n=B();e=b.props.interactive&&t===ZC||"parent"===t?n.parentNode:nS(t,[n]);e.contains(w)||e.appendChild(w);b.state.isMounted=!0,X(),ES(b.props.interactive&&t===FS.appendTo&&n.nextElementSibling!==w,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}()},hide:function(){ES(b.state.isDestroyed,xS("hide"));var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=eS(b.props.duration,1,FS.duration);if(e||t||n)return;if(T("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,p=!1,d=!1,k()&&(w.style.visibility="hidden");if(L(),H(),N(!0),k()){var i=D(),o=i.box,a=i.content;b.props.animation&&(dS([o,a],r),fS([o,a],"hidden"))}Q(),R(),b.props.animation?k()&&function(e,t){z(e,function(){!b.state.isVisible&&w.parentNode&&w.parentNode.contains(w)&&t()})}(r,b.unmount):b.unmount()},hideWithInteractivity:function(e){ES(b.state.isDestroyed,xS("hideWithInteractivity")),F().addEventListener("mousemove",m),oS($S,m),m(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){ES(b.state.isDestroyed,xS("unmount")),b.state.isVisible&&b.hide();if(!b.state.isMounted)return;K(),Z().forEach(function(e){e._tippy.unmount()}),w.parentNode&&w.parentNode.removeChild(w);HS=HS.filter(function(e){return e!==b}),b.state.isMounted=!1,T("onHidden",[b])},destroy:function(){if(ES(b.state.isDestroyed,xS("destroy")),b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),W(),delete e._tippy,b.state.isDestroyed=!0,T("onDestroy",[b])}};if(!u.render)return kS(!0,"render() function has not been supplied."),b;var A=u.render(b),w=A.popper,x=A.onUpdate;w.setAttribute("data-tippy-root",""),w.id="tippy-"+b.id,b.popper=w,e._tippy=b,w._tippy=b;var I=v.map(function(e){return e.fn(b)}),C=e.hasAttribute("aria-expanded");return j(),R(),N(),T("onCreate",[b]),u.showOnCreate&&ee(),w.addEventListener("mouseenter",function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()}),w.addEventListener("mouseleave",function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&F().addEventListener("mousemove",m)}),b;function S(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function E(){return"hold"===S()[0]}function k(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function B(){return l||e}function F(){var e,t,n=B().parentNode;return n?null!=(t=iS(n)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function D(){return PS(w)}function M(e){return b.state.isMounted&&!b.state.isVisible||gS.isTouch||o&&"focus"===o.type?0:eS(b.props.delay,e?0:1,FS.delay)}function N(e){void 0===e&&(e=!1),w.style.pointerEvents=b.props.interactive&&!e?"":"none",w.style.zIndex=""+b.props.zIndex}function T(e,t,n){var r;(void 0===n&&(n=!0),I.forEach(function(n){n[e]&&n[e].apply(n,t)}),n)&&(r=b.props)[e].apply(r,t)}function Q(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,r=w.id;iS(b.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var i=t&&t.replace(r,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}})}}function R(){!C&&b.props.aria.expanded&&iS(b.props.triggerTarget||e).forEach(function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===B()?"true":"false"):e.removeAttribute("aria-expanded")})}function L(){F().removeEventListener("mousemove",m),$S=$S.filter(function(e){return e!==m})}function P(t){if(!gS.isTouch||!h&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!pS(w,n)){if(iS(b.props.triggerTarget||e).some(function(e){return pS(e,n)})){if(gS.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else T("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),f=!0,setTimeout(function(){f=!1}),b.state.isMounted||H())}}}function O(){h=!0}function U(){h=!1}function $(){var e=F();e.addEventListener("mousedown",P,!0),e.addEventListener("touchend",P,KC),e.addEventListener("touchstart",U,KC),e.addEventListener("touchmove",O,KC)}function H(){var e=F();e.removeEventListener("mousedown",P,!0),e.removeEventListener("touchend",P,KC),e.removeEventListener("touchstart",U,KC),e.removeEventListener("touchmove",O,KC)}function z(e,t){var n=D().box;function r(e){e.target===n&&(hS(n,"remove",r),t())}if(0===e)return t();hS(n,"remove",a),hS(n,"add",r),a=r}function q(t,n,r){void 0===r&&(r=!1),iS(b.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,r),g.push({node:e,eventType:t,handler:n,options:r})})}function j(){var e;E()&&(q("touchstart",_,{passive:!0}),q("touchend",Y,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(q(e,_),e){case"mouseenter":q("mouseleave",Y);break;case"focus":q(wS?"focusout":"blur",G);break;case"focusin":q("focusout",G)}})}function W(){g.forEach(function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)}),g=[]}function _(e){var t,n=!1;if(b.state.isEnabled&&!J(e)&&!f){var r="focus"===(null==(t=o)?void 0:t.type);o=e,l=e.currentTarget,R(),!b.state.isVisible&&tS(e,"MouseEvent")&&$S.forEach(function(t){return t(e)}),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||d)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(d=!n),n&&!r&&te(e)}}function V(e){var t=e.target,n=B().contains(t)||w.contains(t);if("mousemove"!==e.type||!n){var r=Z().concat(w).map(function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:u}:null}).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every(function(e){var t=e.popperRect,i=e.popperState,o=e.props.interactiveBorder,a=i.placement.split("-")[0],s=i.modifiersData.offset;if(!s)return!0;var l="bottom"===a?s.top.y:0,c="top"===a?s.bottom.y:0,u="right"===a?s.left.x:0,d="left"===a?s.right.x:0,f=t.top-r+l>o,h=r-t.bottom-c>o,p=t.left-n+u>o,g=n-t.right-d>o;return f||h||p||g})})(r,e)&&(L(),te(e))}}function Y(e){J(e)||b.props.trigger.indexOf("click")>=0&&d||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function G(e){b.props.trigger.indexOf("focusin")<0&&e.target!==B()||b.props.interactive&&e.relatedTarget&&w.contains(e.relatedTarget)||te(e)}function J(e){return!!gS.isTouch&&E()!==e.type.indexOf("touch")>=0}function X(){K();var t=b.props,n=t.popperOptions,r=t.placement,i=t.offset,o=t.getReferenceClientRect,a=t.moveTransition,l=k()?PS(w).arrow:null,c=o?{getBoundingClientRect:o,contextElement:o.contextElement||B()}:e,u={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(k()){var n=D().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)}),t.attributes.popper={}}}},d=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},u];k()&&l&&d.push({name:"arrow",options:{element:l,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),b.popperInstance=YC(c,w,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:d}))}function K(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Z(){return aS(w.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&T("onTrigger",[b,e]),$();var t=M(!0),r=S(),i=r[0],o=r[1];gS.isTouch&&"hold"===i&&o&&(t=o),t?n=setTimeout(function(){b.show()},t):b.show()}function te(e){if(b.clearDelayTimeouts(),T("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=M(!1);t?r=setTimeout(function(){b.state.isVisible&&b.hide()},t):i=requestAnimationFrame(function(){b.hide()})}}else H()}}function qS(e,t){void 0===t&&(t={});var n=FS.plugins.concat(t.plugins||[]);!function(e){var t=!e,n="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;kS(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),kS(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(e),TS(t,n),document.addEventListener("touchstart",yS,KC),window.addEventListener("blur",bS);var r=Object.assign({},t,{plugins:n}),i=uS(e),o=cS(r.content),a=i.length>1;ES(o&&a,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: () => element.cloneNode(true)"].join(" "));var s=i.reduce(function(e,t){var n=t&&zS(t,r);return n&&e.push(n),e},[]);return cS(e)?s[0]:s}qS.defaultProps=FS,qS.setDefaultProps=function(e){TS(e,[]),Object.keys(e).forEach(function(t){FS[t]=e[t]})},qS.currentInput=gS,Object.assign({},JI,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),qS.setDefaultProps({render:OS});AI('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}');async function jS(e,t={}){if(!Ui(e))throw new Error("invalid fun");let n=Ae(t,"width");n=Be(n)?Zo(n):Me(n)?xr(n):null;let r=Ae(t,"height");r=Be(r)?Zo(r):Me(r)?xr(r):null;let i=document.createElement("div");Me(n)&&(i.style.width=`${n}px`),Me(r)&&(i.style.height=`${r}px`);let o=document.createElement("div");o.style.position="absolute",o.style.top=0,o.style.left=0,o.style.zIndex=-1,o.appendChild(i);let a=document.createElement("div");a.style.position="relative",a.appendChild(o);let s,l=document.createElement("div");l.style.position="fixed",l.style.zIndex=-1,l.appendChild(a),ww(document.querySelector("body"),l);let c=e(i);return s=ps(c)?await c:c,Aw(l),s}function WS(e){if(!Ui(e))throw new Error("fn is not a function");return function(){let t=Ga(),n=null,r=null;try{n=e.apply(this,arguments)}catch(e){r=e}return null!==r?t.resolve({state:"error",msg:r}):ps(n)?n.then(e=>{t.resolve({state:"success",msg:e})}).catch(e=>{"cancelled"===Ae(e,"reason")?t.resolve({state:"cancelled",msg:""}):t.resolve({state:"error",msg:e})}):t.resolve({state:"success",msg:n}),t}}AI(".tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px rgba(154,161,177,.15),0 4px 80px -8px rgba(36,40,47,.25),0 4px 4px -2px rgba(91,94,105,.15);background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}");let _S=WS;function VS(e){if(!Ir(e))return!1;return Wi(e)<0}function YS(e=0){let t=0,n=[];VS(e)&&(e=0),e=Wi(e);let r=Oi();return r.get=function(){if(n.length>0){return t+=1,n.splice(0,1)[0]}return null},r.cb=function(){t-=1,t<0&&(t=0),n.length>0&&$i(r,"message",[n],{tag:"queue"})},r.push=function(i){n.push(i),(e<=0||t<e)&&$i(r,"message",[n],{tag:"queue"})},r.clear=function(){t=0,n=[]},r}function GS(e=0,t=!1){return new function(e,t){let n=null;go(e)||(e=0),e=Wi(e),we(t)||(t=!1);let r=YS(e);return r.on("message",async function(e){let t=r.get();if(!t)return;await hs(1);let n,i=Ae(t,"id"),o=Ae(t,"fun"),a=Ae(t,"input");n=Ui(o)?await _S(o)(...a):{state:"error",msg:"fun is not a function"},r.emit(i,n),r.cb()}),function(e,...i){let o=Ga(),a=Wu();n=a;let s={id:a,fun:e,input:i};return r.push(s),r.once(a,e=>{t?a===n?"success"===e.state?o.resolve(e.msg):o.reject(e.msg):o.reject({reason:"cancelled"}):"success"===e.state?o.resolve(e.msg):o.reject(e.msg)}),o}}(e,t)}function JS(e,t){Xa()?Be(e)?nd()?function(e,t){window.navigator.msSaveOrOpenBlob(t,e)}(e,t):function(e,t){let n=window.URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(n)}(e,t):console.log("no filename"):console.log("no window")}function XS(e,t="data"){if(!Se(e))return{error:"sheet is not an object"};if(!Ce(Ae(e,"rows")))return{error:"sheet.rows is not an array"};Be(t)||(t="data");let n={sheets:[]};return n.sheets.push({...e,name:t}),n}function KS(e,t="data"){if(!Ce(e))return{error:"data is not an array"};Be(t)||(t="data");let n=null,r=cr(e);return Ne(r,"error")?r:(n=XS(r,t),Ne(n,"error"),n)}class ZS extends Error{name="HucreError";constructor(e,t){super(e,t)}}class eE extends ZS{details;name="ParseError";constructor(e,t,n){super(e,n),this.details=t}}class tE extends ZS{name="ZipError"}class nE extends ZS{name="XmlError"}class rE extends ZS{name="InvalidArgumentError"}class iE extends ZS{name="EncryptedFileError";format;constructor(e,t){super(t??(e?`File is password-protected (${e.toUpperCase()} encrypted with the OLE2/CFB container). Provide a password in options to decrypt it.`:"File is password-protected. Provide a password in options.")),this.format=e}}class oE extends ZS{name="DecryptionError";constructor(e="Failed to decrypt: incorrect password or corrupt encryption data.",t){super(e,t)}}const aE=536870888;class sE extends eE{}function lE(e,t){try{return new TextDecoder("utf-8").decode(e)}catch(n){if(n instanceof RangeError||"ERR_STRING_TOO_LONG"===n?.code||e.length>aE)throw function(e,t){return new sE(`Part "${e}" is ${t.toLocaleString("en-US")} bytes, over the ${aE.toLocaleString("en-US")}-character maximum string length this runtime supports, so it cannot be read into memory whole.\n - streamXlsxRows(input) reads a worksheet of any size, a row at a time.\n - The workbook is not damaged; this is a limit of the buffered reader.`)}(t,e.length);throw n}}const cE={amp:"&",lt:"<",gt:">",quot:'"',apos:"'"};function uE(e){return-1===e.indexOf("\r")?e:e.replace(/\r\n?/g,"\n")}function dE(e){return-1===e.indexOf("&")?e:e.replace(/&(#x[0-9a-fA-F]+|#[0-9]+|[a-zA-Z]+);/g,(e,t)=>{if(35===t.charCodeAt(0)){const n=120===t.charCodeAt(1)||88===t.charCodeAt(1)?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Number.isNaN(n)||(n<0||n>1114111)?e:String.fromCodePoint(n)}return cE[t]??e})}function fE(e){return-1===e.indexOf("_x")?e:e.replace(/_x([0-9A-Fa-f]{4})_/g,(e,t)=>String.fromCharCode(parseInt(t,16)))}function hE(e){const t={};let n=0;const r=e.length;for(;n<r;){for(;n<r&&pE(e.charCodeAt(n));)n++;if(n>=r)break;const i=n;for(;n<r&&61!==e.charCodeAt(n)&&!pE(e.charCodeAt(n));)n++;const o=e.slice(i,n);if(!o)break;for(;n<r&&pE(e.charCodeAt(n));)n++;if(n>=r||61!==e.charCodeAt(n)){t[o]="";continue}for(n++;n<r&&pE(e.charCodeAt(n));)n++;if(n>=r)break;const a=e.charCodeAt(n);if(34===a||39===a){n++;const i=n;for(;n<r&&e.charCodeAt(n)!==a;)n++;t[o]=dE(uE(e.slice(i,n))),n++}else{const i=n;for(;n<r&&!pE(e.charCodeAt(n));)n++;t[o]=dE(uE(e.slice(i,n)))}}return t}function pE(e){return 32===e||9===e||10===e||13===e}function gE(e,t){const n=65279===e.charCodeAt(0)?e.slice(1):e,r=n.length;let i=0;function o(e){let t=1,o=1;for(let e=0;e<i&&e<r;e++)10===n.charCodeAt(e)?(t++,o=1):o++;throw new nE(`${e} at line ${t}, column ${o}`)}for(;i<r;){if(60===n.charCodeAt(i)){const e=i+1<r?n.charCodeAt(i+1):0;if(33===e){if("\x3c!--"===n.slice(i,i+4)){const e=n.indexOf("--\x3e",i+4);-1===e&&o("Unterminated comment"),i=e+3;continue}if("<![CDATA["===n.slice(i,i+9)){const e=n.indexOf("]]>",i+9);-1===e&&o("Unterminated CDATA section");const r=n.slice(i+9,e);t.onCData?.(r),t.onText?.(r),i=e+3;continue}const e=n.indexOf(">",i+2);-1===e&&o("Unterminated declaration"),i=e+1;continue}if(63===e){const e=n.indexOf("?>",i+2);-1===e&&o("Unterminated processing instruction"),i=e+2;continue}if(47===e){const e=n.indexOf(">",i+2);-1===e&&o("Unterminated closing tag");const r=n.slice(i+2,e).trim();t.onCloseTag?.(r),i=e+1;continue}let a=i+1,s=0;for(;a<r;){const e=n.charCodeAt(a);if(s)e===s&&(s=0);else if(34===e||39===e)s=e;else if(62===e)break;a++}a>=r&&o("Unterminated opening tag");const l=47===n.charCodeAt(a-1),c=n.slice(i+1,l?a-1:a);let u=0;const d=c.length;for(;u<d&&!pE(c.charCodeAt(u));)u++;const f=c.slice(0,u),h=u<d?c.slice(u+1):"",p=h?hE(h):{};t.onOpenTag?.(f,p),l&&t.onCloseTag?.(f),i=a+1;continue}const e=i;for(;i<r&&60!==n.charCodeAt(i);)i++;const a=n.slice(e,i);if(a){const e=dE(uE(a));t.onText?.(e)}}}const mE=262144,yE=64;function vE(e,t,n){let r=n;const i=e.lastIndexOf("&",r-1);i>=t&&n-i<=yE&&-1===e.indexOf(";",i)&&(r=i);const o=r>t?e.charCodeAt(r-1):0;return(o>=55296&&o<=56319||13===o)&&r--,r>t?r:t}function bE(e,t,n,r){if(e)throw new nE(r);return t.slice(n)}function AE(e,t,n,r){let i=0;const o=e.length;for(;i<o;){if(60===e.charCodeAt(i)){const a=i+1<o?e.charCodeAt(i+1):-1;if(-1===a&&!n)return e.slice(i);if(33===a){if("\x3c!--"===e.slice(i,i+4)){const t=e.indexOf("--\x3e",i+4);if(-1===t)return bE(n&&r,e,i,"Unterminated comment");i=t+3;continue}if("<![CDATA["===e.slice(i,i+9)){const o=e.indexOf("]]>",i+9);if(-1===o)return bE(n&&r,e,i,"Unterminated CDATA section");const a=e.slice(i+9,o);t.onCData?.(a),t.onText?.(a),i=o+3;continue}if(!n&&o-i<9)return e.slice(i);const a=e.indexOf(">",i+2);if(-1===a)return bE(n&&r,e,i,"Unterminated declaration");i=a+1;continue}if(63===a){const t=e.indexOf("?>",i+2);if(-1===t)return bE(n&&r,e,i,"Unterminated processing instruction");i=t+2;continue}if(47===a){const o=e.indexOf(">",i+2);if(-1===o)return bE(n&&r,e,i,"Unterminated closing tag");const a=e.slice(i+2,o).trim();t.onCloseTag?.(a),i=o+1;continue}let s=i+1,l=0;for(;s<o;){const t=e.charCodeAt(s);if(l)t===l&&(l=0);else if(34===t||39===t)l=t;else if(62===t)break;s++}if(s>=o)return bE(n&&r,e,i,"Unterminated opening tag");const c=47===e.charCodeAt(s-1),u=e.slice(i+1,c?s-1:s);let d=0;const f=u.length;for(;d<f&&!pE(u.charCodeAt(d));)d++;const h=u.slice(0,d),p=d<f?u.slice(d+1):"",g=p?hE(p):{};t.onOpenTag?.(h,g),c&&t.onCloseTag?.(h),i=s+1;continue}const a=i;for(;i<o&&60!==e.charCodeAt(i);)i++;if(i>=o&&!n){if(o-a>mE){const n=vE(e,a,o);if(n>a)return t.onText?.(dE(uE(e.slice(a,n)))),e.slice(n)}return e.slice(a)}const s=e.slice(a,i);if(s){const e=dE(uE(s));t.onText?.(e)}}return""}function wE(e){const t={tag:"",local:"",prefix:"",attrs:{},children:[]},n=[t];if(gE(e,{onOpenTag(e,t){const{local:r,prefix:i}=function(e){const t=e.indexOf(":");return-1===t?{local:e,prefix:""}:{prefix:e.slice(0,t),local:e.slice(t+1)}}(e),o={tag:e,local:r,prefix:i,attrs:t,children:[]};n[n.length-1].children.push(o),n.push(o)},onCloseTag(e){if(n.length<=1)throw new nE("Unexpected closing tag: no matching open tag");const t=n[n.length-1];if(t.tag!==e)throw new nE(`Mismatched closing tag: expected </${t.tag}> but found </${e}>`);if(n.pop(),t.children.length>0){const e=[];for(const n of t.children)"string"==typeof n&&e.push(n);e.length>0&&(t.text=e.join(""))}},onText(e){n[n.length-1].children.push(e)}}),n.length>1){const e=n[n.length-1].tag;throw new nE(`Unexpected end of document: unclosed element <${e}>`)}if(0===t.children.length)throw new nE("Empty document: no root element found");for(const e of t.children)if("string"!=typeof e)return e;throw new nE("No root element found in document")}function xE(e,t){for(const n of e.children)if("string"!=typeof n&&n.local===t)return n}function IE(e){const t=[];for(const n of e.children)"string"!=typeof n&&t.push(n);return t}function CE(e,t){if(e.local===t)return e;for(const n of e.children){if("string"==typeof n)continue;const e=CE(n,t);if(e)return e}}function SE(e,t){const n=xE(e,t);if(!n)return"";let r="";for(const e of n.children)"string"==typeof e&&(r+=e);return r}function EE(e,t){if(void 0===e)return t;const n=parseInt(e,10);return Number.isNaN(n)?t:n}function kE(e){const t=wE(e),n=[];for(const e of IE(t)){if("threadedComment"!==e.local)continue;const t=e.attrs.id,r=e.attrs.personId;if(!t||!r)continue;const i={id:t,personId:r,text:SE(e,"text")};e.attrs.ref&&(i.ref=e.attrs.ref),e.attrs.parentId&&(i.parentId=e.attrs.parentId),e.attrs.dT&&(i.date=e.attrs.dT),"1"!==e.attrs.done&&"true"!==e.attrs.done||(i.done=!0);const o=xE(e,"mentions");if(o){const e=[];for(const t of IE(o)){if("mention"!==t.local)continue;const n=t.attrs.mentionpersonId,r=t.attrs.mentionId;n&&r&&e.push({mentionPersonId:n,mentionId:r,startIndex:EE(t.attrs.startIndex,0),length:EE(t.attrs.length,0)})}e.length>0&&(i.mentions=e)}n.push(i)}return n}function BE(e){const t=wE(e),n=[];for(const e of t.children){if("string"==typeof e)continue;if("Relationship"===(e.local||e.tag)){const t=e.attrs.Id??"",r=e.attrs.Type??"",i=e.attrs.Target??"",o=e.attrs.TargetMode;if(t&&r&&i){const e={id:t,type:r,target:i};o&&(e.targetMode=o),n.push(e)}}}return n}function FE(e,t){if(t.startsWith("/"))return t.slice(1);const n=e.split("/").filter(Boolean),r=t.split("/").filter(Boolean);for(const e of r)".."===e?n.pop():"."!==e&&n.push(e);return n.join("/")}function DE(e){const t=e.lastIndexOf("/");return-1===t?"":e.slice(0,t)}function ME(e){for(const t of Object.keys(e))if(t.endsWith(":id")&&e[t].startsWith("rId"))return e[t]}const NE=new Set(["n","s","b","e","str"]);function TE(e,t){const n=xE(wE(e),"externalBook");let r,i="";if(n&&t){const e=BE(t),o=n.attrs["r:id"]??n.attrs.id,a=o?e.find(e=>e.id===o):void 0;a&&(i=a.target,"External"!==a.targetMode&&"Internal"!==a.targetMode||(r=a.targetMode))}const o=function(e){const t=e?xE(e,"sheetNames"):void 0;if(!t)return[];const n=[];for(const e of IE(t))"sheetName"===e.local&&n.push(e.attrs.val??"");return n}(n),a=function(e){const t=e?xE(e,"sheetDataSet"):void 0;if(!t)return[];const n=[];for(const e of IE(t)){if("sheetData"!==e.local)continue;const t=EE(e.attrs.sheetId,0),r=[];for(const t of IE(e))if("row"===t.local)for(const e of IE(t)){if("cell"!==e.local)continue;const t=e.attrs.r??"";if(!t)continue;const n=e.attrs.t??"n",i=NE.has(n)?n:"n",o=SE(e,"v");r.push({ref:t,type:i,value:QE(i,o)})}n.push({sheetId:t,cells:r})}return n}(n),s=function(e){const t=e?xE(e,"definedNames"):void 0;if(!t)return[];const n=[];for(const e of IE(t)){if("definedName"!==e.local)continue;const t={name:e.attrs.name??""};if(e.attrs.refersTo&&(t.refersTo=e.attrs.refersTo),void 0!==e.attrs.sheetId){const n=EE(e.attrs.sheetId,NaN);Number.isNaN(n)||(t.sheetId=n)}t.name&&n.push(t)}return n}(n),l={target:i,sheetNames:o,sheetData:a};return r&&(l.targetMode=r),s&&s.length>0&&(l.definedNames=s),l}function QE(e,t){switch(e){case"n":case"s":{const e=Number(t);return Number.isFinite(e)?e:0}case"b":return"1"===t||"true"===t;case"e":case"str":return t}}function RE(e){const t=xE(e,"pic");if(!t)return;const n=xE(t,"nvPicPr"),r=n?xE(n,"cNvPr"):void 0,i=r?.attrs.name;if(!i)return;const o=xE(t,"blipFill"),a=o?xE(o,"blip"):void 0,s=a?.attrs["r:embed"]??a?.attrs.embed;if(!s)return;const l={id:i,embedRId:s},c=r?.attrs.descr;return c&&(l.description=c),l}function LE(e){const t=wE(e),n="pivotCacheDefinition"===t.local?t:xE(t,"pivotCacheDefinition");if(!n)return;const r={cacheId:0,fieldNames:[]},i=xE(n,"cacheSource");if(i){const e=i.attrs.type;"worksheet"!==e&&"external"!==e&&"consolidation"!==e&&"scenario"!==e||(r.sourceType=e);const t=xE(i,"worksheetSource");t&&(t.attrs.ref?r.sourceRef=t.attrs.ref:t.attrs.name&&(r.sourceRef=t.attrs.name),t.attrs.sheet&&(r.sourceSheet=t.attrs.sheet))}const o=xE(n,"cacheFields");if(o)for(const e of IE(o)){if("cacheField"!==e.local)continue;const t=e.attrs.name??"";r.fieldNames.push(t)}return r}function PE(e){const t=wE(e),n="pivotTableDefinition"===t.local?t:xE(t,"pivotTableDefinition");if(!n)return;const r=n.attrs.name;if(!r)return;const i=EE(n.attrs.cacheId,NaN),o={name:r,cacheId:Number.isNaN(i)?0:i,location:"",fields:[]},a=xE(n,"location");if(a){a.attrs.ref&&(o.location=a.attrs.ref);const e=EE(a.attrs.firstHeaderRow,NaN);Number.isNaN(e)||(o.firstHeaderRow=e);const t=EE(a.attrs.firstDataRow,NaN);Number.isNaN(t)||(o.firstDataRow=t);const n=EE(a.attrs.firstDataCol,NaN);Number.isNaN(n)||(o.firstDataCol=n);const r=EE(a.attrs.rowPageCount,NaN);Number.isNaN(r)||(o.rowPageCount=r);const i=EE(a.attrs.colPageCount,NaN);Number.isNaN(i)||(o.colPageCount=i)}const s=xE(n,"pivotFields"),l=[];if(s)for(const e of IE(s)){if("pivotField"!==e.local)continue;const t=e.attrs.axis,n="1"===e.attrs.dataField||"true"===e.attrs.dataField;let r="hidden";"axisRow"===t?r="row":"axisCol"===t?r="col":"axisPage"===t?r="page":("axisValues"===t||n)&&(r="data"),l.push({axis:r,raw:e})}const c=xE(n,"dataFields"),u=new Map;if(c)for(const e of IE(c)){if("dataField"!==e.local)continue;const t=EE(e.attrs.fld,NaN);if(Number.isNaN(t))continue;const n={};e.attrs.name&&(n.name=e.attrs.name);const r=UE(e.attrs.subtotal);r&&(n.subtotal=r),u.set(t,n)}for(let e=0;e<l.length;e++){const{axis:t}=l[e],n={name:`field${e+1}`,axis:t};if("data"===t){const t=u.get(e);n.function=t?.subtotal?t.subtotal:"sum",t?.name&&(n.displayName=t.name)}o.fields.push(n)}const d=xE(n,"pivotTableStyleInfo");return d?.attrs.name&&(o.styleName=d.attrs.name),n.attrs.dataCaption&&(o.dataCaption=n.attrs.dataCaption),o}function OE(e,t){for(let n=0;n<e.fields.length;n++){const r=t.fieldNames[n];r&&(e.fields[n].name=r)}}function UE(e){if(e)switch(e){case"sum":case"count":case"average":case"max":case"min":case"product":case"countNums":case"stdDev":case"stdDevp":case"var":case"varp":return e;case"countA":return"count";default:return}}function $E(e){const t=wE(e),n=[];for(const e of IE(t)){if("slicer"!==e.local)continue;const t=e.attrs.name,r=e.attrs.cache;if(!t||!r)continue;const i={name:t,cache:r};if(e.attrs.caption&&(i.caption=e.attrs.caption),void 0!==e.attrs.columnCount){const t=EE(e.attrs.columnCount,NaN);Number.isNaN(t)||(i.columnCount=t)}if(e.attrs.style&&(i.style=e.attrs.style),e.attrs.sortOrder&&(i.sortOrder=e.attrs.sortOrder),void 0!==e.attrs.rowHeight){const t=EE(e.attrs.rowHeight,NaN);Number.isNaN(t)||(i.rowHeight=t)}n.push(i)}return n}function HE(e){const t=wE(e),n="slicerCacheDefinition"===t.local?t:xE(t,"slicerCacheDefinition");if(!n)return;const r=n.attrs.name;if(!r)return;const i={name:r};n.attrs.sourceName&&(i.sourceName=n.attrs.sourceName);const o=jE(n);o.length>0&&(i.pivotTables=o);const a=function(e){const t=xE(e,"extLst");if(!t)return;for(const e of IE(t)){if("ext"!==e.local)continue;const t=xE(e,"tableSlicerCache");if(!t)continue;const n=t.attrs.name??t.attrs.tableId;if(!n)continue;const r={name:n};return t.attrs.column&&(r.column=t.attrs.column),r}return}(n);return a&&(i.tableSource=a),i}function zE(e){const t=wE(e),n=[];for(const e of IE(t)){if("timeline"!==e.local)continue;const t=e.attrs.name,r=e.attrs.cache;if(!t||!r)continue;const i={name:t,cache:r};e.attrs.caption&&(i.caption=e.attrs.caption),e.attrs.style&&(i.style=e.attrs.style),e.attrs.level&&(i.level=e.attrs.level),void 0!==e.attrs.showHeader&&(i.showHeader=WE(e.attrs.showHeader)),void 0!==e.attrs.showSelectionLabel&&(i.showSelectionLabel=WE(e.attrs.showSelectionLabel)),void 0!==e.attrs.showTimeLevel&&(i.showTimeLevel=WE(e.attrs.showTimeLevel)),void 0!==e.attrs.showHorizontalScrollbar&&(i.showHorizontalScrollbar=WE(e.attrs.showHorizontalScrollbar)),n.push(i)}return n}function qE(e){const t=wE(e),n="timelineCacheDefinition"===t.local?t:xE(t,"timelineCacheDefinition");if(!n)return;const r=n.attrs.name;if(!r)return;const i={name:r};n.attrs.sourceName&&(i.sourceName=n.attrs.sourceName);const o=jE(n);return o.length>0&&(i.pivotTables=o),i}function jE(e){const t=xE(e,"pivotTables");if(!t)return[];const n=[];for(const e of IE(t)){if("pivotTable"!==e.local)continue;const t=e.attrs.name;if(!t)continue;const r=EE(e.attrs.tabId,NaN);Number.isNaN(r)||n.push({tabId:r,name:t})}return n}function WE(e){return"1"===e||"true"===e}function _E(e){return`_x${e.toString(16).toUpperCase().padStart(4,"0")}_`}function VE(e){return e>=0&&e<=8||11===e||12===e||e>=14&&e<=31}function YE(e,t="ooxml"){let n="",r=0;for(let i=0;i<e.length;i++){const o=e.charCodeAt(i);let a;switch(o){case 38:a="&";break;case 60:a="<";break;case 62:a=">";break;case 13:a="charRef"===t?" ":_E(13);break;default:VE(o)&&(a=_E(o))}a&&(n+=e.slice(r,i)+a,r=i+1)}return 0===r?e:n+e.slice(r)}function GE(e){let t="",n=0;for(let r=0;r<e.length;r++){let i;switch(e.charCodeAt(r)){case 38:i="&";break;case 60:i="<";break;case 62:i=">";break;case 34:i=""";break;case 39:i="'";break;case 9:i="	";break;case 10:i=" ";break;case 13:i=" ";break;default:VE(e.charCodeAt(r))&&(i=_E(e.charCodeAt(r)))}i&&(t+=e.slice(n,r)+i,n=r+1)}return 0===n?e:t+e.slice(n)}function JE(e){if(!e)return"";let t="";const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=n[r],o=e[i];null!=o&&(t+="boolean"==typeof o?` ${i}="${o?"true":"false"}"`:` ${i}="${GE(String(o))}"`)}return t}function XE(e,t){return`<${e}${JE(t)}/>`}function KE(e){const t=YE(e);return e.length>0&&(" "===e[0]||" "===e[e.length-1]||e.includes("\n")||e.includes("\t"))?`<t xml:space="preserve">${t}</t>`:ZE("t",void 0,t)}function ZE(e,t,n){const r=JE(t);if(null==n)return`<${e}${r}/>`;const i=Array.isArray(n)?n.join(""):n;return i?`<${e}${r}>${i}</${e}>`:`<${e}${r}/>`}function ek(e,t,n,r){const i=[];return!1!==r?.declaration&&i.push(function(e){return`<?xml version="1.0" encoding="UTF-8" standalone="${e?.standalone??"yes"}"?>`}(r)),null==n?i.push(XE(e,t)):i.push(ZE(e,t,n)),i.join("")}function tk(e,t){for(const n of e.children)"string"!=typeof n&&("t"===n.local?t.push(nk(n)):tk(n,t))}function nk(e){let t="";for(const n of e.children)t+="string"==typeof n?n:nk(n);return t}function rk(e){if("string"!=typeof e)return;const t=e.trim().toLowerCase();return"1"===t||"true"===t||"0"!==t&&"false"!==t&&void 0}function ik(e){const t=e.attrs.val;if("string"==typeof t)return"1"===t||"true"===t.toLowerCase()}function ok(e){if(void 0!==e)return"1"===e||"true"===e||"0"!==e&&"false"!==e&&void 0}function ak(e){if(!e)return;const t=xE(e,"numRef")??xE(e,"strRef");if(t){const e=xE(t,"f");if(e){const t=nk(e).trim();if(t.length>0)return t}}const n=xE(e,"f");if(n){const e=nk(n).trim();if(e.length>0)return e}}function sk(e,t){const n=xE(e,t);if(!n)return;const r=n.attrs.val;if("string"!=typeof r)return;const i=r.trim();if(0===i.length)return;const o=Number(i);return Number.isFinite(o)?o:void 0}const lk=.25,ck=13.5,uk=12700,dk=new Set(["solid","dot","dash","lgDash","dashDot","lgDashDot","lgDashDotDot","sysDash","sysDot","sysDashDot","sysDashDotDot"]),fk=new Set(["solid","dash","dashDot","dot","lgDash","lgDashDot","lgDashDotDot","sysDash","sysDashDot","sysDashDotDot","sysDot"]),hk=new Set(["rnd","sq","flat"]),pk=new Set(["sng","dbl","thickThin","thinThick","tri"]);function gk(e){if("string"==typeof e&&hk.has(e)&&"flat"!==e)return e}function mk(e){if("string"==typeof e&&pk.has(e)&&"sng"!==e)return e}function yk(e){const t=xE(e,"spPr");if(!t)return;const n=xE(t,"ln");if(!n)return;const r=n.attrs.cap;if("string"!=typeof r)return;const i=r.trim();return hk.has(i)&&"flat"!==i?i:void 0}function vk(e){const t=xE(e,"spPr");if(!t)return;const n=xE(t,"ln");if(!n)return;const r=n.attrs.cmpd;if("string"!=typeof r)return;const i=r.trim();return pk.has(i)&&"sng"!==i?i:void 0}const bk=new Set(["bg1","tx1","bg2","tx2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink","phClr","dk1","lt1","dk2","lt2"]),Ak=1e5,wk=-1e5,xk=1e5;function Ik(e,t,n,r){const i=xE(e,t);if(!i)return;const o=i.attrs.val;if("string"!=typeof o)return;const a=Number.parseInt(o.trim(),10);return Number.isFinite(a)&&!(a<n||a>r)?a:void 0}function Ck(e){const t=e.attrs.val;if("string"!=typeof t)return;const n=t.trim();if(!bk.has(n))return;const r={theme:n},i=Ik(e,"lumMod",0,Ak);void 0!==i&&(r.lumMod=i);const o=Ik(e,"lumOff",0,Ak);void 0!==o&&(r.lumOff=o);const a=Ik(e,"tint",wk,xk);void 0!==a&&(r.tint=a);const s=Ik(e,"shade",wk,xk);void 0!==s&&(r.shade=s);const l=Ik(e,"alpha",0,Ak);return void 0!==l&&(r.alpha=l),r}function Sk(e){if(null==e)return;if("string"==typeof e){return kk(e)}if("object"!=typeof e)return;const t=e.theme;if("string"!=typeof t||!bk.has(t))return;const n={theme:t},r=(e,t,n)=>{if("number"!=typeof e||!Number.isFinite(e))return;const r=Math.round(e);return r<t||r>n?void 0:r},i=r(e.lumMod,0,Ak);void 0!==i&&(n.lumMod=i);const o=r(e.lumOff,0,Ak);void 0!==o&&(n.lumOff=o);const a=r(e.tint,wk,xk);void 0!==a&&(n.tint=a);const s=r(e.shade,wk,xk);void 0!==s&&(n.shade=s);const l=r(e.alpha,0,Ak);return void 0!==l&&(n.alpha=l),n}function Ek(e){if("string"==typeof e)return XE("a:srgbClr",{val:e});const t=[];return void 0!==e.tint&&t.push(XE("a:tint",{val:e.tint})),void 0!==e.shade&&t.push(XE("a:shade",{val:e.shade})),void 0!==e.alpha&&t.push(XE("a:alpha",{val:e.alpha})),void 0!==e.lumMod&&t.push(XE("a:lumMod",{val:e.lumMod})),void 0!==e.lumOff&&t.push(XE("a:lumOff",{val:e.lumOff})),0===t.length?XE("a:schemeClr",{val:e.theme}):ZE("a:schemeClr",{val:e.theme},t)}function kk(e){if("string"!=typeof e)return;const t=e.trim();if(0===t.length)return;const n=t.startsWith("#")?t.slice(1):t;return 6===n.length&&/^[0-9a-fA-F]{6}$/.test(n)?n.toUpperCase():void 0}function Bk(e){const t=xE(e,"spPr");if(!t)return;const n=xE(t,"solidFill");if(!n)return;const r=xE(n,"srgbClr");if(r)return kk(r.attrs.val);const i=xE(n,"schemeClr");return i?Ck(i):void 0}function Fk(e){const t=xE(e,"spPr");if(!t)return;const n=xE(t,"ln");if(!n)return;const r=xE(n,"solidFill");if(!r)return;const i=xE(r,"srgbClr");if(i)return kk(i.attrs.val);const o=xE(r,"schemeClr");return o?Ck(o):void 0}function Dk(e){const t=xE(e,"spPr");if(!t)return;const n=xE(t,"ln");if(!n)return;const r=n.attrs.w;if("string"!=typeof r)return;const i=Number.parseFloat(r);if(!Number.isFinite(i)||i<=0)return;const o=Math.round(i/uk*4)/4;return o<lk?lk:o>ck?ck:o}function Mk(e){const t=xE(e,"spPr");if(!t)return;const n=xE(t,"ln");if(!n)return;const r=xE(n,"prstDash");if(!r)return;const i=r.attrs.val;if("string"!=typeof i)return;const o=i.trim();return fk.has(o)&&"solid"!==o?o:void 0}function Nk(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(4*e)/4;return t<lk?lk:t>ck?ck:t}function Tk(e){if("string"==typeof e&&fk.has(e)&&"solid"!==e)return e}function Qk(e){const t=xE(e,"view3D");if(!t)return;const n={},r=Rk(t,"rotX",-90,90);void 0!==r&&(n.rotX=r);const i=Rk(t,"hPercent",5,500);void 0!==i&&(n.hPercent=i);const o=Rk(t,"rotY",0,360);void 0!==o&&(n.rotY=o);const a=Rk(t,"depthPercent",20,2e3);void 0!==a&&(n.depthPercent=a);const s=function(e,t){const n=xE(e,t);if(!n)return;const r=n.attrs.val;if("string"!=typeof r)return;switch(r){case"1":case"true":return!0;case"0":case"false":return!1;default:return}}(t,"rAngAx");void 0!==s&&(n.rAngAx=s);const l=Rk(t,"perspective",0,240);return void 0!==l&&(n.perspective=l),n}function Rk(e,t,n,r){const i=xE(e,t);if(!i)return;const o=i.attrs.val;if("string"!=typeof o)return;if(!/^-?\d+$/.test(o))return;const a=Number(o);return Number.isInteger(a)&&!(a<n||a>r)?a:void 0}function Lk(e,t,n){if("number"==typeof e&&Number.isFinite(e)&&Number.isInteger(e)&&!(e<t||e>n))return e}function Pk(e){if(!e)return;const t=e.attrs.val;if("string"!=typeof t)return;const n=t.trim();if(0===n.length)return;const r=Number(n);return Number.isFinite(r)&&!(r<0||r>1)?r:void 0}function Ok(e){const t=xE(e,"layout");if(!t)return;const n=xE(t,"manualLayout");if(!n)return;const r=Pk(xE(n,"x")),i=Pk(xE(n,"y")),o=Pk(xE(n,"w")),a=Pk(xE(n,"h"));if(void 0===r&&void 0===i&&void 0===o&&void 0===a)return;const s={};return void 0!==r&&(s.x=r),void 0!==i&&(s.y=i),void 0!==o&&(s.w=o),void 0!==a&&(s.h=a),s}function Uk(e){if(!e||"object"!=typeof e)return;const t={},n=$k(e.x);void 0!==n&&(t.x=n);const r=$k(e.y);void 0!==r&&(t.y=r);const i=$k(e.w);void 0!==i&&(t.w=i);const o=$k(e.h);return void 0!==o&&(t.h=o),void 0!==t.x||void 0!==t.y||void 0!==t.w||void 0!==t.h?t:void 0}function $k(e){if("number"==typeof e&&Number.isFinite(e)&&!(e<0||e>1))return e}function Hk(e){if(!e)return;const t=[];return void 0!==e.x&&t.push(XE("c:xMode",{val:"edge"})),void 0!==e.y&&t.push(XE("c:yMode",{val:"edge"})),void 0!==e.w&&t.push(XE("c:wMode",{val:"edge"})),void 0!==e.h&&t.push(XE("c:hMode",{val:"edge"})),void 0!==e.x&&t.push(XE("c:x",{val:e.x})),void 0!==e.y&&t.push(XE("c:y",{val:e.y})),void 0!==e.w&&t.push(XE("c:w",{val:e.w})),void 0!==e.h&&t.push(XE("c:h",{val:e.h})),0!==t.length?ZE("c:layout",void 0,[ZE("c:manualLayout",void 0,t)]):void 0}function zk(e){const t=xE(e,"txPr");if(t)return jk(t)}function qk(e){const t=xE(e,"title");if(!t)return;const n=xE(t,"tx");if(!n)return;const r=xE(n,"rich");return r?jk(r):void 0}function jk(e){const t=xE(e,"p");if(!t)return;const n=xE(t,"pPr");return n?xE(n,"defRPr"):void 0}const Wk=6e4,_k=100,Vk=400,Yk=Wk,Gk=-90;function Jk(e,t,n,r,i,o){if(void 0===e&&void 0===t&&void 0===n&&void 0===r&&void 0===i&&void 0===o)return;const a=[];if(void 0!==e&&a.push(ZE("a:solidFill",void 0,[Ek(e)])),void 0!==t||void 0!==n||void 0!==r||void 0!==i||void 0!==o){const e={};void 0!==n&&(e.w=Math.round(n*uk)),void 0!==i&&(e.cap=i),void 0!==o&&(e.cmpd=o);const s=[];void 0!==t&&s.push(ZE("a:solidFill",void 0,[Ek(t)])),void 0!==r&&s.push(XE("a:prstDash",{val:r})),a.push(0===s.length?XE("a:ln",e):ZE("a:ln",Object.keys(e).length>0?e:void 0,s))}return ZE("c:spPr",void 0,a)}function Xk(e){if(void 0===e||"number"!=typeof e||!Number.isFinite(e))return;let t=Math.round(e);return t<Gk?t=Gk:t>90&&(t=90),0!==t?t:void 0}function Kk(e){if(void 0===e||"number"!=typeof e||!Number.isFinite(e))return;const t=Math.round(2*e)/2;return t<1||t>400?void 0:t}function Zk(e){return!0===e||!1!==e&&void 0}function eB(e){return!0===e||!1!==e&&void 0}function tB(e){return"string"==typeof e?kk(e):Sk(e)}function nB(e){return!0===e||!1!==e&&void 0}function rB(e){return!0===e||!1!==e&&void 0}const iB=_k,oB=Vk;function aB(e,t,n,r,i,o,a,s,l,c,u,d,f,h,p,g,m){const y=[XE("c:legendPos",{val:e})];for(const e of n){const t=[XE("c:idx",{val:e.idx}),XE("c:delete",{val:e.delete?1:0})],n=sB(e.fontSize,e.bold,e.italic,e.underline,e.strikethrough,e.color,e.fontFamily);void 0!==n&&t.push(n),y.push(ZE("c:legendEntry",void 0,t))}const v=Hk(u);void 0!==v&&y.push(v),y.push(XE("c:overlay",{val:t?1:0}));const b=function(e,t,n,r,i,o){if(void 0===e&&void 0===t&&void 0===n&&void 0===r&&void 0===i&&void 0===o)return;const a=[];void 0!==e&&a.push(ZE("a:solidFill",void 0,[Ek(e)]));if(void 0!==t||void 0!==n||void 0!==r||void 0!==i||void 0!==o){const e={};void 0!==n&&(e.w=Math.round(n*uk)),void 0!==i&&(e.cap=i),void 0!==o&&(e.cmpd=o);const s=[];void 0!==t&&s.push(ZE("a:solidFill",void 0,[Ek(t)])),void 0!==r&&s.push(XE("a:prstDash",{val:r})),a.push(0===s.length?XE("a:ln",e):ZE("a:ln",Object.keys(e).length>0?e:void 0,s))}return ZE("c:spPr",void 0,a)}(d,f,h,p,g,m);void 0!==b&&y.push(b);const A=sB(r,i,o,a,s,l,c);return void 0!==A&&y.push(A),ZE("c:legend",void 0,y)}function sB(e,t,n,r,i,o,a){if(void 0===e&&void 0===t&&void 0===n&&void 0===r&&void 0===i&&void 0===o&&void 0===a)return;const s={};void 0!==e&&(s.sz=e*iB),void 0!==t&&(s.b=t?1:0),void 0!==n&&(s.i=n?1:0),void 0!==r&&(s.u=r?"sng":"none"),!0===i&&(s.strike="sngStrike");const l=void 0!==o?ZE("a:solidFill",void 0,[Ek(o)]):void 0,c=a?XE("a:latin",{typeface:a}):void 0,u=[];l&&u.push(l),c&&u.push(c);const d=u.length>0?ZE("a:defRPr",s,u):XE("a:defRPr",s);return ZE("c:txPr",void 0,[XE("a:bodyPr"),XE("a:lstStyle"),ZE("a:p",void 0,[ZE("a:pPr",void 0,[d]),XE("a:endParaRPr",{lang:"en-US"})])])}const lB=_k;function cB(e){const t=xE(e,"dTable");if(!t)return;const n={},r=uB(t,"showHorzBorder");void 0!==r&&(n.showHorzBorder=r);const i=uB(t,"showVertBorder");void 0!==i&&(n.showVertBorder=i);const o=uB(t,"showOutline");void 0!==o&&(n.showOutline=o);const a=uB(t,"showKeys");void 0!==a&&(n.showKeys=a);const s=function(e){const t=zk(e);if(!t)return;const n=t.attrs.sz;if("string"!=typeof n)return;const r=n.trim();if(0===r.length)return;const i=Number.parseInt(r,10);if(!Number.isFinite(i))return;const o=Math.round(i/lB*2)/2;return o<1||o>400?void 0:o}(t);void 0!==s&&(n.fontSize=s);const l=function(e){const t=zk(e);if(!t)return;const n=xE(t,"solidFill");if(!n)return;const r=xE(n,"srgbClr");if(r)return kk(r.attrs.val);const i=xE(n,"schemeClr");return i?Ck(i):void 0}(t);void 0!==l&&(n.fontColor=l);const c=function(e){const t=zk(e);if(!t)return;const n=t.attrs.b;if("string"!=typeof n)return;switch(n){case"1":case"true":return!0;case"0":case"false":return!1;default:return}}(t);void 0!==c&&(n.bold=c);const u=function(e){const t=zk(e);if(!t)return;const n=t.attrs.i;if("string"!=typeof n)return;switch(n){case"1":case"true":return!0;case"0":case"false":return!1;default:return}}(t);void 0!==u&&(n.italic=u);const d=function(e){const t=zk(e);if(!t)return;const n=t.attrs.u;return"sng"===n||"none"!==n&&void 0}(t);void 0!==d&&(n.underline=d);const f=function(e){const t=zk(e);if(!t)return;return"sngStrike"===t.attrs.strike||void 0}(t);void 0!==f&&(n.strikethrough=f);const h=function(e){const t=zk(e);if(!t)return;const n=xE(t,"latin");if(!n)return;const r=n.attrs.typeface;if("string"!=typeof r)return;const i=r.trim();return 0===i.length?void 0:i}(t);void 0!==h&&(n.fontFamily=h);const p=Bk(t);void 0!==p&&(n.fillColor=p);const g=function(e){return Fk(e)}(t);void 0!==g&&(n.borderColor=g);const m=Dk(t);void 0!==m&&(n.borderWidth=m);const y=Mk(t);void 0!==y&&(n.borderDash=y);const v=yk(t);void 0!==v&&(n.borderCap=v);const b=vk(t);return void 0!==b&&(n.borderCompound=b),n}function uB(e,t){const n=xE(e,t);if(!n)return;const r=n.attrs.val;if("string"==typeof r)switch(r){case"1":case"true":return!0;case"0":case"false":return!1;default:return}}function dB(e){return tB(e)}function fB(e){return!0===e||!1!==e&&void 0}function hB(e){return!0===e||!1!==e&&void 0}function pB(e){return!0===e||!1!==e&&void 0}function gB(e){if(!0===e)return!0}function mB(e){if("string"!=typeof e)return;const t=e.trim();return 0!==t.length?t:void 0}function yB(e){return tB(e)}function vB(e){return tB(e)}function bB(e){const t=[XE("c:showHorzBorder",{val:e.showHorzBorder?1:0}),XE("c:showVertBorder",{val:e.showVertBorder?1:0}),XE("c:showOutline",{val:e.showOutline?1:0}),XE("c:showKeys",{val:e.showKeys?1:0})],n=function(e,t,n,r,i,o){if(void 0===e&&void 0===t&&void 0===n&&void 0===r&&void 0===i&&void 0===o)return;const a=[];void 0!==e&&a.push(ZE("a:solidFill",void 0,[Ek(e)]));if(void 0!==t||void 0!==n||void 0!==r||void 0!==i||void 0!==o){const e={};void 0!==n&&(e.w=Math.round(n*uk)),void 0!==i&&(e.cap=i),void 0!==o&&(e.cmpd=o);const s=[];void 0!==t&&s.push(ZE("a:solidFill",void 0,[Ek(t)])),void 0!==r&&s.push(XE("a:prstDash",{val:r})),a.push(0===s.length?XE("a:ln",e):ZE("a:ln",Object.keys(e).length>0?e:void 0,s))}return ZE("c:spPr",void 0,a)}(e.fillColor,e.borderColor,e.borderWidth,e.borderDash,e.borderCap,e.borderCompound);void 0!==n&&t.push(n);const r=function(e,t,n,r,i,o,a){if(void 0===e&&void 0===t&&void 0===n&&void 0===r&&void 0===i&&void 0===o&&void 0===a)return;const s={};void 0!==e&&(s.sz=e*lB);void 0!==n&&(s.b=n?1:0);void 0!==r&&(s.i=r?1:0);void 0!==i&&(s.u=i?"sng":"none");!0===o&&(s.strike="sngStrike");const l=void 0!==t?ZE("a:solidFill",void 0,[Ek(t)]):void 0,c=a?XE("a:latin",{typeface:a}):void 0,u=[];l&&u.push(l);c&&u.push(c);const d=u.length>0?ZE("a:defRPr",s,u):XE("a:defRPr",s);return ZE("c:txPr",void 0,[XE("a:bodyPr"),XE("a:lstStyle"),ZE("a:p",void 0,[ZE("a:pPr",void 0,[d]),XE("a:endParaRPr",{lang:"en-US"})])])}(e.fontSize,e.fontColor,e.bold,e.italic,e.underline,e.strikethrough,e.fontFamily);return void 0!==r&&t.push(r),ZE("c:dTable",void 0,t)}const AB=_k,wB=new Set(["t","b","l","r","ctr","inEnd","inBase","outEnd","bestFit"]);function xB(e){const t=xE(e,"delete");if(t&&!0===ik(t))return;const n={},r=xE(e,"dLblPos");if(r){const e=r.attrs.val;"string"==typeof e&&wB.has(e)&&(n.position=e)}const i=xE(e,"showLegendKey");i&&!0===ik(i)&&(n.showLegendKey=!0);const o=xE(e,"showVal");o&&!0===ik(o)&&(n.showValue=!0);const a=xE(e,"showCatName");a&&!0===ik(a)&&(n.showCategoryName=!0);const s=xE(e,"showSerName");s&&!0===ik(s)&&(n.showSeriesName=!0);const l=xE(e,"showPercent");l&&!0===ik(l)&&(n.showPercent=!0);const c=xE(e,"separator");if(c){const e=nk(c);e.length>0&&(n.separator=e)}const u=function(e){const t=xE(e,"numFmt");if(!t)return;const n=t.attrs.formatCode;if("string"!=typeof n||0===n.length)return;const r={formatCode:n},i=t.attrs.sourceLinked;"string"==typeof i&&("1"!==i&&"true"!==i.toLowerCase()||(r.sourceLinked=!0));return r}(e);u&&(n.numberFormat=u);const d=xE(e,"showLeaderLines");if(d){const e=d.attrs.val;"string"!=typeof e||"0"!==e&&"false"!==e.toLowerCase()||(n.showLeaderLines=!1)}const f=function(e){const t=zk(e);if(!t)return;const n=t.attrs.sz;if("string"!=typeof n)return;const r=n.trim();if(0===r.length)return;const i=Number.parseInt(r,10);if(!Number.isFinite(i))return;const o=Math.round(i/AB*2)/2;return o<1||o>400?void 0:o}(e);void 0!==f&&(n.fontSize=f);const h=function(e){const t=zk(e);if(!t)return;const n=xE(t,"solidFill");if(!n)return;const r=xE(n,"srgbClr");if(r)return kk(r.attrs.val);const i=xE(n,"schemeClr");return i?Ck(i):void 0}(e);void 0!==h&&(n.fontColor=h);const p=function(e){const t=zk(e);if(!t)return;const n=t.attrs.b;return"1"===n||"true"===n||void 0}(e);void 0!==p&&(n.bold=p);const g=function(e){const t=zk(e);if(!t)return;const n=t.attrs.i;return"1"===n||"true"===n||void 0}(e);void 0!==g&&(n.italic=g);const m=function(e){const t=zk(e);if(!t)return;return"sng"===t.attrs.u||void 0}(e);void 0!==m&&(n.underline=m);const y=function(e){const t=zk(e);if(!t)return;return"sngStrike"===t.attrs.strike||void 0}(e);void 0!==y&&(n.strikethrough=y);const v=function(e){const t=zk(e);if(!t)return;const n=xE(t,"latin");if(!n)return;const r=n.attrs.typeface;if("string"!=typeof r)return;const i=r.trim();return 0===i.length?void 0:i}(e);void 0!==v&&(n.fontFamily=v);const b=Bk(e);void 0!==b&&(n.fillColor=b);const A=function(e){return Fk(e)}(e);void 0!==A&&(n.borderColor=A);const w=Dk(e);void 0!==w&&(n.borderWidth=w);const x=Mk(e);void 0!==x&&(n.borderDash=x);const I=yk(e);void 0!==I&&(n.borderCap=I);const C=vk(e);return void 0!==C&&(n.borderCompound=C),void 0!==n.position||n.showValue||n.showCategoryName||n.showSeriesName||n.showPercent||n.showLegendKey||void 0!==n.separator||void 0!==n.numberFormat||void 0!==n.showLeaderLines||void 0!==n.fontSize||void 0!==n.fontColor||void 0!==n.bold||void 0!==n.italic||void 0!==n.underline||void 0!==n.strikethrough||void 0!==n.fontFamily||void 0!==n.fillColor||void 0!==n.borderColor||void 0!==n.borderWidth||void 0!==n.borderDash||void 0!==n.borderCap||void 0!==n.borderCompound?n:void 0}function IB(e){if(e.dataLabels)return CB(e.dataLabels,e.type)}function CB(e,t){const n=[],r=function(e){if(!e)return;const t=e.formatCode;if("string"!=typeof t||0===t.length)return;const n={formatCode:t};!0===e.sourceLinked&&(n.sourceLinked=!0);return n}(e.numberFormat);r&&n.push(XE("c:numFmt",{formatCode:r.formatCode,sourceLinked:!0===r.sourceLinked?1:0}));const i=function(e,t,n,r,i,o){if(void 0===e&&void 0===t&&void 0===n&&void 0===r&&void 0===i&&void 0===o)return;const a=[];void 0!==e&&a.push(ZE("a:solidFill",void 0,[Ek(e)]));if(void 0!==t||void 0!==n||void 0!==r||void 0!==i||void 0!==o){const e={};void 0!==n&&(e.w=Math.round(n*uk)),void 0!==i&&(e.cap=i),void 0!==o&&(e.cmpd=o);const s=[];void 0!==t&&s.push(ZE("a:solidFill",void 0,[Ek(t)])),void 0!==r&&s.push(XE("a:prstDash",{val:r})),a.push(0===s.length?XE("a:ln",e):ZE("a:ln",Object.keys(e).length>0?e:void 0,s))}return ZE("c:spPr",void 0,a)}(tB(e.fillColor),function(e){return tB(e)}(e.borderColor),Nk(e.borderWidth),Tk(e.borderDash),gk(e.borderCap),mk(e.borderCompound));void 0!==i&&n.push(i);const o=function(e,t,n,r,i,o,a){if(void 0===e&&void 0===t&&void 0===n&&void 0===r&&void 0===i&&void 0===o&&void 0===a)return;const s={};void 0!==e&&(s.sz=e*AB);void 0!==n&&(s.b=n?1:0);void 0!==r&&(s.i=r?1:0);void 0!==i&&(s.u=i?"sng":"none");!0===o&&(s.strike="sngStrike");const l=void 0!==t?ZE("a:solidFill",void 0,[Ek(t)]):void 0,c=a?XE("a:latin",{typeface:a}):void 0,u=[];l&&u.push(l);c&&u.push(c);const d=u.length>0?ZE("a:defRPr",s,u):XE("a:defRPr",s);return ZE("c:txPr",void 0,[XE("a:bodyPr"),XE("a:lstStyle"),ZE("a:p",void 0,[ZE("a:pPr",void 0,[d]),XE("a:endParaRPr",{lang:"en-US"})])])}(function(e){return Kk(e)}(e.fontSize),function(e){return tB(e)}(e.fontColor),function(e){return!0===e||!1!==e&&void 0}(e.bold),function(e){return!0===e||!1!==e&&void 0}(e.italic),function(e){return!0===e||!1!==e&&void 0}(e.underline),function(e){return!0===e||void 0}(e.strikethrough),function(e){if("string"!=typeof e)return;const t=e.trim();return 0===t.length?void 0:t}(e.fontFamily));return void 0!==o&&n.push(o),e.position&&n.push(XE("c:dLblPos",{val:e.position})),n.push(XE("c:showLegendKey",{val:!0===e.showLegendKey?1:0})),n.push(XE("c:showVal",{val:e.showValue?1:0})),n.push(XE("c:showCatName",{val:e.showCategoryName?1:0})),n.push(XE("c:showSerName",{val:e.showSeriesName?1:0})),n.push(XE("c:showPercent",{val:e.showPercent?1:0})),n.push(XE("c:showBubbleSize",{val:0})),void 0!==e.separator&&n.push(ZE("c:separator",void 0,YE(e.separator))),"pie"!==t&&"doughnut"!==t||!1!==e.showLeaderLines||n.push(XE("c:showLeaderLines",{val:0})),ZE("c:dLbls",void 0,n)}const SB=new Set(["cone","coneToMax","box","cylinder","pyramid","pyramidToMax"]),EB=new Set(["linear","log","exp","power","poly","movingAvg"]),kB=new Set(["x","y"]),BB=new Set(["both","minus","plus"]),FB=new Set(["cust","fixedVal","percentage","stdDev","stdErr"]);function DB(e){const t=function(e){if("string"==typeof e)return SB.has(e)?e:void 0}(e);if(void 0!==t)return XE("c:shape",{val:t})}function MB(e){const t=xE(e,"spPr");if(!t)return;const n=xE(t,"solidFill");if(!n)return;const r=xE(n,"srgbClr");return r?kk(r.attrs.val):void 0}function NB(e){const t=xE(e,"spPr");if(!t)return;const n=xE(t,"ln");if(!n)return;const r=xE(n,"solidFill");if(!r)return;const i=xE(r,"srgbClr");return i?kk(i.attrs.val):void 0}function TB(e){const t=xE(e,"spPr");if(!t)return;const n=xE(t,"ln");if(!n)return;const r=n.attrs.w;if("string"!=typeof r)return;const i=Number.parseFloat(r);if(!Number.isFinite(i)||i<=0)return;const o=Math.round(i/uk*4)/4;return o<lk?lk:o>ck?ck:o}function QB(e){const t=xE(e,"spPr");if(!t)return;const n=xE(t,"ln");if(!n)return;const r=xE(n,"prstDash");if(!r)return;const i=r.attrs.val;if("string"!=typeof i)return;const o=i.trim();return fk.has(o)&&"solid"!==o?o:void 0}function RB(e){const t="string"==typeof e.type&&EB.has(e.type)?e.type:void 0;if(void 0===t)return;const n=[];"string"==typeof e.name&&e.name.trim().length>0&&n.push(ZE("c:name",void 0,e.name.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")));const r=function(e){const t=kk(e.lineColor),n=Nk(e.lineWidth),r=Tk(e.lineDash);if(!t&&void 0===n&&void 0===r)return;const i={};void 0!==n&&(i.w=Math.round(n*uk));const o=[];t&&o.push(ZE("a:solidFill",void 0,[XE("a:srgbClr",{val:t})]));void 0!==r&&o.push(XE("a:prstDash",{val:r}));const a=0===o.length?XE("a:ln",i):ZE("a:ln",Object.keys(i).length>0?i:void 0,o);return ZE("c:spPr",void 0,[a])}(e);if(r&&n.push(r),n.push(XE("c:trendlineType",{val:t})),"poly"===t&&"number"==typeof e.order&&Number.isFinite(e.order)){const t=Math.max(2,Math.min(6,Math.round(e.order)));n.push(XE("c:order",{val:t}))}if("movingAvg"===t&&"number"==typeof e.period&&Number.isFinite(e.period)){const t=Math.max(2,Math.min(100,Math.round(e.period)));n.push(XE("c:period",{val:t}))}return"number"==typeof e.forward&&Number.isFinite(e.forward)&&n.push(XE("c:forward",{val:e.forward})),"number"==typeof e.backward&&Number.isFinite(e.backward)&&n.push(XE("c:backward",{val:e.backward})),"number"==typeof e.intercept&&Number.isFinite(e.intercept)&&n.push(XE("c:intercept",{val:e.intercept})),!0===e.dispRSquared&&n.push(XE("c:dispRSqr",{val:1})),!0===e.dispEquation&&n.push(XE("c:dispEq",{val:1})),ZE("c:trendline",void 0,n)}function LB(e){if(!kB.has(e.direction))return;if(!BB.has(e.type))return;if(!FB.has(e.valType))return;const t=[XE("c:errDir",{val:e.direction}),XE("c:errBarType",{val:e.type}),XE("c:errValType",{val:e.valType})];!0===e.noEndCap&&t.push(XE("c:noEndCap",{val:1})),"stdErr"!==e.valType&&"cust"!==e.valType&&"number"==typeof e.value&&Number.isFinite(e.value)&&t.push(XE("c:val",{val:e.value}));const n=kk(e.lineColor),r=Nk(e.lineWidth),i=Tk(e.lineDash);if(n||void 0!==r||void 0!==i){const e={};void 0!==r&&(e.w=Math.round(r*uk));const o=[];n&&o.push(ZE("a:solidFill",void 0,[XE("a:srgbClr",{val:n})])),void 0!==i&&o.push(XE("a:prstDash",{val:i}));const a=0===o.length?XE("a:ln",e):ZE("a:ln",Object.keys(e).length>0?e:void 0,o);t.push(ZE("c:spPr",void 0,[a]))}return ZE("c:errBars",void 0,t)}const PB=new Set(["none","auto","circle","square","diamond","triangle","x","star","dot","dash","plus"]),OB=2,UB=72;function $B(e,t){return e.includes("!")?e:`${n=t,/^[A-Za-z_][A-Za-z0-9_]*$/.test(n)?n:`'${n.replace(/'/g,"''")}'`}!${e}`;var n}function HB(e,t,n){const r={kind:t,index:n},i=function(e){const t=xE(e,"tx");if(!t)return;const n=xE(t,"v");if(n){const e=nk(n).trim();if(e.length>0)return e}const r=xE(t,"strRef");if(r){const e=xE(r,"strCache");if(e)for(const t of IE(e)){if("pt"!==t.local)continue;const e=xE(t,"v");if(e){const t=nk(e).trim();if(t.length>0)return t}}const t=ak(r);if(t)return t}return}(e);void 0!==i&&(r.name=i);const o=ak(xE(e,"val"))??ak(xE(e,"yVal"));void 0!==o&&(r.valuesRef=o);const a=ak(xE(e,"cat"))??ak(xE(e,"xVal"));void 0!==a&&(r.categoriesRef=a);const s=function(e){const t=xE(e,"spPr");if(!t)return;const n=xE(t,"solidFill");if(!n)return;const r=xE(n,"srgbClr");if(r){const e=r.attrs.val;if("string"!=typeof e)return;const t=e.replace(/^#/,"").toUpperCase();return/^[0-9A-F]{6}$/.test(t)?t:void 0}const i=xE(n,"schemeClr");return i?Ck(i):void 0}(e);void 0!==s&&(r.color=s);const l=xE(e,"dLbls");if(l){const e=xB(l);e&&(r.dataLabels=e)}if("line"===t||"line3D"===t||"scatter"===t){const t=function(e){const t=xE(e,"smooth");if(!t)return;const n=ik(t);return!0===n||void 0}(e);void 0!==t&&(r.smooth=t);const n=function(e){const t=xE(e,"spPr");if(!t)return;const n=xE(t,"ln");if(!n)return;const r={},i=n.attrs.w;if("string"==typeof i){const e=Number.parseFloat(i);if(Number.isFinite(e)&&e>0){const t=Math.round(e/uk*4)/4;r.width=t<lk?lk:t>ck?ck:t}}const o=xE(n,"prstDash");if(o){const e=o.attrs.val;"string"==typeof e&&dk.has(e)&&(r.dash=e)}const a=n.attrs.cap;if("string"==typeof a){const e=a.trim();hk.has(e)&&"flat"!==e&&(r.cap=e)}const s=n.attrs.cmpd;if("string"==typeof s){const e=s.trim();pk.has(e)&&"sng"!==e&&(r.compound=e)}return void 0===r.dash&&void 0===r.width&&void 0===r.cap&&void 0===r.compound?void 0:r}(e);void 0!==n&&(r.stroke=n);const i=zB(e);void 0!==i&&(r.marker=i)}if("bar"===t||"bar3D"===t){const t=function(e){const t=xE(e,"invertIfNegative");if(!t)return;const n=ik(t);return!0===n||void 0}(e);void 0!==t&&(r.invertIfNegative=t)}if("pie"===t||"pie3D"===t||"doughnut"===t||"ofPie"===t){const t=function(e){const t=xE(e,"explosion");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=Number.parseFloat(n);if(!Number.isFinite(r)||r<0)return;const i=Math.round(r);return 0===i?void 0:i}(e);void 0!==t&&(r.explosion=t)}const c=function(e){const t=[];for(const n of IE(e)){if("dPt"!==n.local)continue;const e=xE(n,"idx");if(!e)continue;const r=e.attrs.val;if("string"!=typeof r)continue;const i=Number.parseInt(r,10);if(!Number.isFinite(i)||i<0)continue;const o={idx:i},a=xE(n,"explosion");if(a){const e=a.attrs.val;if("string"==typeof e){const t=Number.parseFloat(e);if(Number.isFinite(t)&&t>0){const e=Math.round(t);e>0&&(o.explosion=e)}}}const s=xE(n,"bubble3D");s&&!0===ik(s)&&(o.bubble3D=!0);const l=MB(n);void 0!==l&&(o.fillColor=l);const c=NB(n);void 0!==c&&(o.borderColor=c);const u=TB(n);void 0!==u&&(o.borderWidth=u);const d=QB(n);void 0!==d&&(o.borderDash=d);const f=zB(n);void 0!==f&&(o.marker=f),t.push(o)}return t.length>0?t:void 0}(e);if(void 0!==c&&(r.dataPoints=c),"bar"===t||"bar3D"===t||"line"===t||"line3D"===t||"area"===t||"area3D"===t||"scatter"===t||"bubble"===t){const t=function(e){const t=[];for(const n of IE(e)){if("trendline"!==n.local)continue;const e=xE(n,"trendlineType");if(!e)continue;const r=e.attrs.val;if("string"!=typeof r)continue;const i=r.trim();if(!EB.has(i))continue;const o={type:i},a=xE(n,"name");if(a){let e="";for(const t of a.children)"string"==typeof t&&(e+=t);const t=e.trim();t.length>0&&(o.name=t)}const s=xE(n,"order");if(s){const e=parseFloat(String(s.attrs.val??""));if(Number.isFinite(e)){const t=Math.round(e);t>=2&&t<=6&&(o.order=t)}}const l=xE(n,"period");if(l){const e=parseFloat(String(l.attrs.val??""));if(Number.isFinite(e)){const t=Math.round(e);t>=2&&t<=100&&(o.period=t)}}const c=xE(n,"forward");if(c){const e=parseFloat(String(c.attrs.val??""));Number.isFinite(e)&&(o.forward=e)}const u=xE(n,"backward");if(u){const e=parseFloat(String(u.attrs.val??""));Number.isFinite(e)&&(o.backward=e)}const d=xE(n,"intercept");if(d){const e=parseFloat(String(d.attrs.val??""));Number.isFinite(e)&&(o.intercept=e)}const f=xE(n,"dispEq");f&&!0===ik(f)&&(o.dispEquation=!0);const h=xE(n,"dispRSqr");h&&!0===ik(h)&&(o.dispRSquared=!0);const p=xE(n,"spPr");if(p){const e=xE(p,"ln");if(e){const t=xE(e,"solidFill");if(t){const e=xE(t,"srgbClr");if(e){const t=kk(e.attrs.val);t&&(o.lineColor=t)}}const n=e.attrs.w;if("string"==typeof n){const e=Number.parseFloat(n);if(Number.isFinite(e)&&e>0){const t=Math.round(e/uk*4)/4;o.lineWidth=t>=lk&&t<=ck?t:t<lk?lk:ck}}const r=xE(e,"prstDash");if(r){const e=r.attrs.val;if("string"==typeof e){const t=e.trim();fk.has(t)&&"solid"!==t&&(o.lineDash=t)}}}}t.push(o)}return t.length>0?t:void 0}(e);void 0!==t&&(r.trendlines=t);const n=function(e){const t=[];for(const n of IE(e)){if("errBars"!==n.local)continue;const e=xE(n,"errDir");if(!e)continue;const r=e.attrs.val;if("string"!=typeof r)continue;const i=r.trim();if(!kB.has(i))continue;const o=xE(n,"errBarType");if(!o)continue;const a=o.attrs.val;if("string"!=typeof a)continue;const s=a.trim();if(!BB.has(s))continue;const l=xE(n,"errValType");if(!l)continue;const c=l.attrs.val;if("string"!=typeof c)continue;const u=c.trim();if(!FB.has(u))continue;const d={direction:i,type:s,valType:u},f=xE(n,"val");if(f){const e=parseFloat(String(f.attrs.val??""));Number.isFinite(e)&&(d.value=e)}const h=xE(n,"noEndCap");h&&!0===ik(h)&&(d.noEndCap=!0);const p=xE(n,"spPr");if(p){const e=xE(p,"ln");if(e){const t=xE(e,"solidFill");if(t){const e=xE(t,"srgbClr");if(e){const t=kk(e.attrs.val);t&&(d.lineColor=t)}}const n=e.attrs.w;if("string"==typeof n){const e=Number.parseFloat(n);if(Number.isFinite(e)&&e>0){const t=Math.round(e/uk*4)/4;d.lineWidth=t<lk?lk:t>ck?ck:t}}const r=xE(e,"prstDash");if(r){const e=r.attrs.val;if("string"==typeof e){const t=e.trim();fk.has(t)&&"solid"!==t&&(d.lineDash=t)}}}}t.push(d)}return t.length>0?t:void 0}(e);void 0!==n&&(r.errorBars=n)}if("bubble"===t){const t=function(e){return ak(xE(e,"bubbleSize"))}(e);void 0!==t&&(r.bubbleSizeRef=t)}if("bar3D"===t){const t=function(e){const t=xE(e,"shape");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=n.trim();return SB.has(r)?r:void 0}(e);void 0!==t&&(r.shape3D=t)}return r}function zB(e){const t=xE(e,"marker");if(!t)return;const n={},r=xE(t,"symbol");if(r){const e=r.attrs.val;"string"==typeof e&&PB.has(e)&&(n.symbol=e)}const i=xE(t,"size");if(i){const e=i.attrs.val;if("string"==typeof e){const t=Number.parseInt(e,10);Number.isFinite(t)&&(n.size=t<2?2:t>72?72:t)}}const o=xE(t,"spPr");if(o){const e=xE(o,"solidFill");if(e){const t=xE(e,"srgbClr"),r=t?.attrs.val;if("string"==typeof r){const e=r.replace(/^#/,"").toUpperCase();/^[0-9A-F]{6}$/.test(e)&&(n.fill=e)}}const t=xE(o,"ln");if(t){const e=xE(t,"solidFill");if(e){const t=xE(e,"srgbClr"),r=t?.attrs.val;if("string"==typeof r){const e=r.replace(/^#/,"").toUpperCase();/^[0-9A-F]{6}$/.test(e)&&(n.line=e)}}}}return void 0!==n.symbol||void 0!==n.size||void 0!==n.fill||void 0!==n.line?n:void 0}function qB(e,t,n,r,i){const o=[XE("c:idx",{val:t}),XE("c:order",{val:t})];e.name&&o.push(ZE("c:tx",void 0,[ZE("c:v",void 0,YE(e.name))]));const a=function(e,t){let n;if("string"==typeof e){const t=e.replace(/^#/,"").toUpperCase();n=/^[0-9A-F]{6}$/.test(t)?t:void 0}else void 0!==e&&(n=Sk(e));const r=(c=t?.dash,void 0===c?void 0:dk.has(c)?c:void 0),i=Nk(t?.width),o=gk(t?.cap),a="flat"===o?void 0:o,s=mk(t?.compound),l="sng"===s?void 0:s;var c;if(!n&&void 0===r&&void 0===i&&void 0===a&&void 0===l)return;const u=[];void 0!==n&&u.push(ZE("a:solidFill",void 0,[Ek(n)]));if(void 0!==n||void 0!==r||void 0!==i||void 0!==a||void 0!==l){const e={};void 0!==i&&(e.w=Math.round(i*uk)),void 0!==a&&(e.cap=a),void 0!==l&&(e.cmpd=l);const t=[];void 0!==n&&t.push(ZE("a:solidFill",void 0,[Ek(n)])),void 0!==r&&t.push(XE("a:prstDash",{val:r})),u.push(0===t.length?XE("a:ln",e):ZE("a:ln",Object.keys(e).length>0?e:void 0,t))}return ZE("c:spPr",void 0,u)}(e.color,i?.stroke);a&&o.push(a);const s=jB(i?.marker);s&&o.push(s),!0===i?.invertIfNegative&&o.push(XE("c:invertIfNegative",{val:1}));const l=function(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<=0?void 0:t>400?400:t}(i?.explosion);void 0!==l&&o.push(XE("c:explosion",{val:l}));const c=function(e,t){if(!e||0===e.length)return[];const n="pie"===t||"doughnut"===t||"pie3D"===t,r=[];for(const t of e){if(!Number.isFinite(t.idx)||t.idx<0)continue;const e=Math.floor(t.idx),i=[];i.push(XE("c:idx",{val:e}));const o=jB(t.marker);if(o&&i.push(o),i.push(XE("c:bubble3D",{val:!0===t.bubble3D?1:0})),n&&void 0!==t.explosion&&Number.isFinite(t.explosion)){const e=Math.max(0,Math.min(400,Math.round(t.explosion)));e>0&&i.push(XE("c:explosion",{val:e}))}const a=kk(t.fillColor),s=kk(t.borderColor),l=Nk(t.borderWidth),c=Tk(t.borderDash);if(a||s||void 0!==l||void 0!==c){const e=[];if(a&&e.push(ZE("a:solidFill",void 0,[XE("a:srgbClr",{val:a})])),s||void 0!==l||void 0!==c){const t={};void 0!==l&&(t.w=Math.round(l*uk));const n=[];s&&n.push(ZE("a:solidFill",void 0,[XE("a:srgbClr",{val:s})])),void 0!==c&&n.push(XE("a:prstDash",{val:c})),e.push(0===n.length?XE("a:ln",t):ZE("a:ln",Object.keys(t).length>0?t:void 0,n))}i.push(ZE("c:spPr",void 0,e))}r.push(ZE("c:dPt",void 0,i))}return r}(i.dataPoints,i.chartType);for(const e of c)o.push(e);const u=(d=e.dataLabels,i.dataLabels,f=i.chartType,!1===d?ZE("c:dLbls",void 0,[ZE("c:dLbl",void 0,[XE("c:idx",{val:0}),XE("c:delete",{val:1})]),XE("c:delete",{val:1})]):d?CB(d,f):void 0);var d,f;if(u&&o.push(u),i.trendlines&&i.trendlines.length>0){if(!("pie"===i.chartType||"doughnut"===i.chartType)){const e=function(e){if(!e||0===e.length)return[];const t=[];for(const n of e){const e=RB(n);e&&t.push(e)}return t}(i.trendlines);for(const t of e)o.push(t)}}if(i.errorBars&&i.errorBars.length>0){if(!("pie"===i.chartType||"doughnut"===i.chartType)){const e=function(e){if(!e||0===e.length)return[];const t=[];for(const n of e){const e=LB(n);e&&t.push(e)}return t}(i.errorBars);for(const t of e)o.push(t)}}if(e.categories){const t=$B(e.categories,n);r?o.push(ZE("c:xVal",void 0,[ZE("c:numRef",void 0,[ZE("c:f",void 0,YE(t))])])):o.push(ZE("c:cat",void 0,[ZE("c:strRef",void 0,[ZE("c:f",void 0,YE(t))])]))}const h=$B(e.values,n);if(r?o.push(ZE("c:yVal",void 0,[ZE("c:numRef",void 0,[ZE("c:f",void 0,YE(h))])])):o.push(ZE("c:val",void 0,[ZE("c:numRef",void 0,[ZE("c:f",void 0,YE(h))])])),void 0!==i?.smooth&&o.push(XE("c:smooth",{val:i.smooth?1:0})),void 0!==i.shape3D){const e=DB(i.shape3D);e&&o.push(e)}if("string"==typeof i.bubbleSize&&i.bubbleSize.length>0){const e=$B(i.bubbleSize,n);o.push(ZE("c:bubbleSize",void 0,[ZE("c:numRef",void 0,[ZE("c:f",void 0,YE(e))])]))}return ZE("c:ser",void 0,o)}function jB(e){if(!e)return;const t=function(e){if(void 0!==e)return PB.has(e)?e:void 0}(e.symbol),n=function(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<OB?OB:t>UB?UB:t}(e.size),r=kk(e.fill),i=kk(e.line);if(void 0===t&&void 0===n&&!r&&!i)return;const o=[];if(void 0!==t&&o.push(XE("c:symbol",{val:t})),void 0!==n&&o.push(XE("c:size",{val:n})),r||i){const e=[];r&&e.push(ZE("a:solidFill",void 0,[XE("a:srgbClr",{val:r})])),i&&e.push(ZE("a:ln",void 0,[ZE("a:solidFill",void 0,[XE("a:srgbClr",{val:i})])])),o.push(ZE("c:spPr",void 0,e))}return ZE("c:marker",void 0,o)}const WB=_k,_B=Vk,VB=new Set(["none","in","out","cross"]),YB=new Set(["nextTo","low","high","none"]),GB=new Set(["ctr","l","r"]),JB=-90,XB=90,KB=new Set(["autoZero","min","max"]),ZB=new Set(["hundreds","thousands","tenThousands","hundredThousands","millions","tenMillions","hundredMillions","billions","trillions"]),eF=new Set(["between","midCat"]);function tF(e,t){const n=function(e){const t=xE(e,"title");if(!t)return;const n=xE(t,"tx");if(!n)return;const r=xE(n,"rich");if(r){const e=[];tk(r,e);const t=e.join("").trim();return t.length>0?t:void 0}const i=xE(n,"strRef");if(i){const e=xE(i,"strCache");if(e)for(const t of IE(e)){if("pt"!==t.local)continue;const e=xE(t,"v");if(e){const t=nk(e).trim();if(t.length>0)return t}}}return}(e),r=function(e){const t=xE(e,"title");if(!t)return;const n=xE(t,"tx");if(!n)return;const r=xE(n,"rich");if(!r)return;const i=xE(r,"bodyPr");if(!i)return;const o=i.attrs.rot;if("string"!=typeof o)return;const a=o.trim();if(0===a.length)return;const s=Number.parseInt(a,10);if(!Number.isFinite(s))return;const l=Math.round(s/Wk);return 0===l?void 0:l<JB?JB:l>XB?XB:l}(e),i=function(e){const t=qk(e);if(!t)return;const n=t.attrs.sz;if("string"!=typeof n)return;const r=n.trim();if(0===r.length)return;const i=Number.parseInt(r,10);if(!Number.isFinite(i))return;const o=Math.round(i/WB*2)/2;return o<1||o>_B?void 0:o}(e),o=function(e){const t=qk(e);if(!t)return;return!0===rk(t.attrs.b)||void 0}(e),a=function(e){const t=qk(e);if(!t)return;return!0===rk(t.attrs.i)||void 0}(e),s=function(e){const t=qk(e);if(!t)return;const n=xE(t,"solidFill");if(!n)return;const r=xE(n,"srgbClr");if(r)return kk(r.attrs.val);const i=xE(n,"schemeClr");return i?Ck(i):void 0}(e),l=function(e){const t=qk(e);if(!t)return;return"sngStrike"===t.attrs.strike||void 0}(e),c=function(e){const t=qk(e);if(!t)return;return"sng"===t.attrs.u||void 0}(e),u=function(e){const t=qk(e);if(!t)return;const n=xE(t,"latin");if(!n)return;const r=n.attrs.typeface;if("string"!=typeof r)return;const i=r.trim();return 0===i.length?void 0:i}(e),d=function(e){const t=xE(e,"title");if(!t)return;const n=xE(t,"overlay");if(!n)return;const r=n.attrs.val;if("string"!=typeof r)return;switch(r){case"1":case"true":return!0;default:return}}(e),f=function(e){const t=xE(e,"title");return t?Ok(t):void 0}(e),h=function(e){const t=xE(e,"title");return t?Bk(t):void 0}(e),p=function(e){const t=xE(e,"title");return t?Fk(t):void 0}(e),g=function(e){const t=xE(e,"title");return t?Dk(t):void 0}(e),m=function(e){const t=xE(e,"title");return t?Mk(t):void 0}(e),y=function(e){const t=xE(e,"title");return t?yk(t):void 0}(e),v=function(e){const t=xE(e,"title");return t?vk(t):void 0}(e),b=function(e){const t=void 0!==xE(e,"majorGridlines"),n=void 0!==xE(e,"minorGridlines");if(!t&&!n)return;const r={};t&&(r.major=!0);n&&(r.minor=!0);return r}(e),A=function(e){const t={},n=xE(e,"scaling");if(n){const e=sk(n,"min");void 0!==e&&(t.min=e);const r=sk(n,"max");void 0!==r&&(t.max=r);const i=sk(n,"logBase");void 0!==i&&(t.logBase=i)}const r=sk(e,"majorUnit");void 0!==r&&r>0&&(t.majorUnit=r);const i=sk(e,"minorUnit");void 0!==i&&i>0&&(t.minorUnit=i);return Object.keys(t).length>0?t:void 0}(e),w=function(e){const t=xE(e,"numFmt");if(!t)return;const n=t.attrs.formatCode;if("string"!=typeof n||0===n.length)return;const r={formatCode:n},i=t.attrs.sourceLinked;void 0!==i&&!0===rk(i)&&(r.sourceLinked=!0);return r}(e),x=nF(e,"majorTickMark","out"),I=nF(e,"minorTickMark","none"),C=function(e){const t=xE(e,"tickLblPos");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=n.trim();return YB.has(r)?"nextTo"===r?void 0:r:void 0}(e),S=function(e){const t=xE(e,"txPr");if(!t)return;const n=xE(t,"bodyPr");if(!n)return;const r=n.attrs.rot;if("string"!=typeof r)return;const i=r.trim();if(0===i.length)return;const o=Number.parseInt(i,10);if(!Number.isFinite(o))return;const a=Math.round(o/Wk);return 0===a?void 0:a<JB?JB:a>XB?XB:a}(e),E=function(e){const t=zk(e);if(!t)return;const n=t.attrs.sz;if("string"!=typeof n)return;const r=n.trim();if(0===r.length)return;const i=Number.parseInt(r,10);if(!Number.isFinite(i))return;const o=Math.round(i/WB*2)/2;return o<1||o>_B?void 0:o}(e),k=function(e){const t=zk(e);if(!t)return;return!0===rk(t.attrs.b)||void 0}(e),B=function(e){const t=zk(e);if(!t)return;return!0===rk(t.attrs.i)||void 0}(e),F=function(e){const t=zk(e);if(!t)return;const n=xE(t,"solidFill");if(!n)return;const r=xE(n,"srgbClr");if(r)return kk(r.attrs.val);const i=xE(n,"schemeClr");return i?Ck(i):void 0}(e),D=function(e){const t=zk(e);if(!t)return;return"sng"===t.attrs.u||void 0}(e),M=function(e){const t=zk(e);if(!t)return;return"sngStrike"===t.attrs.strike||void 0}(e),N=function(e){const t=zk(e);if(!t)return;const n=xE(t,"latin");if(!n)return;const r=n.attrs.typeface;if("string"!=typeof r)return;const i=r.trim();return 0===i.length?void 0:i}(e),T=function(e){const t=xE(e,"scaling");if(!t)return;const n=xE(t,"orientation");if(!n)return;const r=n.attrs.val;if("string"!=typeof r)return;return"maxMin"===r.trim()||void 0}(e),Q="catAx"===e.local||"dateAx"===e.local,R=Q?rF(e,"tickLblSkip"):void 0,L=Q?rF(e,"tickMarkSkip"):void 0,P=Q?function(e){const t=xE(e,"lblOffset");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=n.trim();if(0===r.length)return;const i=Number.parseInt(r,10);return Number.isFinite(i)?i<0||i>1e3||100===i?void 0:i:void 0}(e):void 0,O=Q?function(e){const t=xE(e,"lblAlgn");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=n.trim();return GB.has(r)?"ctr"===r?void 0:r:void 0}(e):void 0,U="catAx"===e.local?function(e){const t=xE(e,"noMultiLvlLbl");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;switch(n.trim()){case"1":case"true":return!0;default:return}}(e):void 0,$="catAx"===e.local?function(e){const t=xE(e,"auto");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;switch(n.trim()){case"0":case"false":return!1;default:return}}(e):void 0,H=function(e){const t=xE(e,"delete");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;switch(n.trim()){case"1":case"true":return!0;default:return}}(e),z=function(e){const t=xE(e,"crossesAt");if(t){const e=t.attrs.val;if("string"==typeof e){const t=e.trim();if(t.length>0){const e=Number.parseFloat(t);if(Number.isFinite(e))return{crossesAt:e}}}}const n=xE(e,"crosses");if(!n)return{};const r=n.attrs.val;if("string"!=typeof r)return{};const i=r.trim();return KB.has(i)?"autoZero"===i?{}:{crosses:i}:{}}(e),q=z.crosses,j=z.crossesAt,W="valAx"===e.local?function(e){const t=xE(e,"dispUnits");if(!t)return;const n={},r=xE(t,"custUnit");if(r){const e=r.attrs.val;if("string"==typeof e){const t=Number.parseFloat(e.trim());Number.isFinite(t)&&t>0&&(n.custUnit=t)}}if(void 0===n.custUnit){const e=xE(t,"builtInUnit");if(e){const t=e.attrs.val;if("string"==typeof t){const e=t.trim();ZB.has(e)&&(n.unit=e)}}}if(void 0===n.unit&&void 0===n.custUnit)return;const i=xE(t,"dispUnitsLbl");if(i){n.showLabel=!0;const e=xE(i,"tx");if(e){const t=xE(e,"rich");if(t){const e=[];for(const n of t.children){if("string"==typeof n)continue;if("p"!==n.local)continue;const t=[];for(const e of n.children)if("string"!=typeof e&&"r"===e.local)for(const n of e.children){if("string"==typeof n)continue;if("t"!==n.local)continue;let e="";for(const t of n.children)"string"==typeof t&&(e+=t);t.push(e)}t.length>0&&e.push(t.join(""))}const r=e.join("\n").trim();r.length>0&&(n.customLabel=r)}}}return n}(e):void 0,_="valAx"===e.local?function(e){const t=xE(e,"crossBetween");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=n.trim();return eF.has(r)?r:void 0}(e):void 0,V=_===t?void 0:_;if(void 0===n&&void 0===r&&void 0===i&&void 0===o&&void 0===a&&void 0===s&&void 0===l&&void 0===c&&void 0===u&&void 0===d&&void 0===f&&void 0===h&&void 0===p&&void 0===g&&void 0===m&&void 0===y&&void 0===v&&void 0===b&&void 0===A&&void 0===w&&void 0===x&&void 0===I&&void 0===C&&void 0===S&&void 0===E&&void 0===k&&void 0===B&&void 0===F&&void 0===N&&void 0===D&&void 0===M&&void 0===T&&void 0===R&&void 0===L&&void 0===P&&void 0===O&&void 0===U&&void 0===$&&void 0===H&&void 0===q&&void 0===j&&void 0===W&&void 0===V)return;const Y={};return void 0!==n&&(Y.title=n),void 0!==r&&(Y.axisTitleRotation=r),void 0!==i&&(Y.axisTitleFontSize=i),void 0!==o&&(Y.axisTitleBold=o),void 0!==a&&(Y.axisTitleItalic=a),void 0!==s&&(Y.axisTitleColor=s),void 0!==l&&(Y.axisTitleStrike=l),void 0!==c&&(Y.axisTitleUnderline=c),void 0!==u&&(Y.axisTitleFontFamily=u),void 0!==d&&(Y.axisTitleOverlay=d),void 0!==f&&(Y.axisTitleLayout=f),void 0!==h&&(Y.axisTitleFillColor=h),void 0!==p&&(Y.axisTitleBorderColor=p),void 0!==g&&(Y.axisTitleBorderWidth=g),void 0!==m&&(Y.axisTitleBorderDash=m),void 0!==y&&(Y.axisTitleBorderCap=y),void 0!==v&&(Y.axisTitleBorderCompound=v),void 0!==b&&(Y.gridlines=b),void 0!==A&&(Y.scale=A),void 0!==w&&(Y.numberFormat=w),void 0!==x&&(Y.majorTickMark=x),void 0!==I&&(Y.minorTickMark=I),void 0!==C&&(Y.tickLblPos=C),void 0!==S&&(Y.labelRotation=S),void 0!==E&&(Y.labelFontSize=E),void 0!==k&&(Y.labelBold=k),void 0!==B&&(Y.labelItalic=B),void 0!==F&&(Y.labelColor=F),void 0!==N&&(Y.labelFontFamily=N),void 0!==D&&(Y.labelUnderline=D),void 0!==M&&(Y.labelStrike=M),void 0!==T&&(Y.reverse=T),void 0!==R&&(Y.tickLblSkip=R),void 0!==L&&(Y.tickMarkSkip=L),void 0!==P&&(Y.lblOffset=P),void 0!==O&&(Y.lblAlgn=O),void 0!==U&&(Y.noMultiLvlLbl=U),void 0!==$&&(Y.auto=$),void 0!==H&&(Y.hidden=H),void 0!==q&&(Y.crosses=q),void 0!==j&&(Y.crossesAt=j),void 0!==W&&(Y.dispUnits=W),void 0!==V&&(Y.crossBetween=V),Y}function nF(e,t,n){const r=xE(e,t);if(!r)return;const i=r.attrs.val;if("string"!=typeof i)return;const o=i.trim();return VB.has(o)?o===n?void 0:o:void 0}function rF(e,t){const n=xE(e,t);if(!n)return;const r=n.attrs.val;if("string"!=typeof r)return;const i=r.trim();if(0===i.length)return;const o=Number.parseInt(i,10);return Number.isFinite(o)&&!(o<1||o>32767)&&1!==o?o:void 0}const iF=new Set(["autoZero","min","max"]),oF=111111111,aF=222222222,sF=333333333,lF=444444444,cF=new Set(["none","in","out","cross"]),uF=new Set(["nextTo","low","high","none"]);function dF(e){if(!0===e.autoTitleDeleted)return!0;if(!1===e.autoTitleDeleted)return!1;return!((e.showTitle??Boolean(e.title))&&e.title)}function fF(e){if("string"!=typeof e)return;const t=e.trim();return t.length>0?t:void 0}function hF(e){if(!e)return;const t=!0===e.major,n=!0===e.minor;return t||n?{major:t,minor:n}:void 0}function pF(e){if(!e)return[];const t=[];return e.major&&t.push(ZE("c:majorGridlines",void 0,[])),e.minor&&t.push(ZE("c:minorGridlines",void 0,[])),t}function gF(e){if(!e)return;const t={};return"number"==typeof e.min&&Number.isFinite(e.min)&&(t.min=e.min),"number"==typeof e.max&&Number.isFinite(e.max)&&(t.max=e.max),void 0!==t.min&&void 0!==t.max&&t.min>=t.max&&delete t.max,"number"==typeof e.majorUnit&&Number.isFinite(e.majorUnit)&&e.majorUnit>0&&(t.majorUnit=e.majorUnit),"number"==typeof e.minorUnit&&Number.isFinite(e.minorUnit)&&e.minorUnit>0&&(t.minorUnit=e.minorUnit),"number"==typeof e.logBase&&Number.isFinite(e.logBase)&&e.logBase>=2&&e.logBase<=1e3&&(t.logBase=e.logBase),Object.keys(t).length>0?t:void 0}function mF(e){if(!e)return;const t="string"==typeof e.formatCode?e.formatCode:"";if(0===t.length)return;const n={formatCode:t};return!0===e.sourceLinked&&(n.sourceLinked=!0),n}function yF(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<1||t>32767||1===t?void 0:t}function vF(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<0||t>1e3||100===t?void 0:t}function bF(e){if(void 0!==e&&("ctr"===e||"l"===e||"r"===e)&&"ctr"!==e)return e}function AF(e){return!0===e}function wF(e){if(void 0===e||"number"!=typeof e||!Number.isFinite(e))return;let t=Math.round(e);return t<JB?t=JB:t>XB&&(t=XB),0!==t?t:void 0}function xF(e){if(void 0===e||"number"!=typeof e||!Number.isFinite(e))return;const t=Math.round(2*e)/2;return t<1||t>_B?void 0:t}function IF(e){return Zk(e)}function CF(e){return eB(e)}function SF(e){return tB(e)}function EF(e){return rB(e)}function kF(e){return nB(e)}function BF(e){if("string"!=typeof e)return;const t=e.trim();return 0!==t.length?t:void 0}function FF(e,t,n,r,i,o,a,s){if(void 0===e&&void 0===t&&void 0===n&&void 0===r&&void 0===i&&void 0===o&&void 0===a&&void 0===s)return;const l=void 0===e?void 0:e*Wk,c=void 0===t?void 0:t*WB,u=void 0===n?void 0:n?1:0,d=void 0===r?void 0:r?1:0,f=!0===o?"sng":void 0,h=!0===a?"sngStrike":void 0,p=void 0!==i?ZE("a:solidFill",void 0,[Ek(i)]):void 0,g=s?XE("a:latin",{typeface:s}):void 0,m=[];p&&m.push(p),g&&m.push(g);const y=m.length>0?ZE("a:defRPr",{sz:c,b:u,i:d,u:f,strike:h},m):XE("a:defRPr",{sz:c,b:u,i:d,u:f,strike:h});return ZE("c:txPr",void 0,[XE("a:bodyPr",{rot:l}),XE("a:lstStyle"),ZE("a:p",void 0,[ZE("a:pPr",void 0,[y]),XE("a:endParaRPr",{lang:"en-US"})])])}function DF(e,t){return"number"==typeof t&&Number.isFinite(t)?{kind:"numeric",value:t}:void 0!==e&&iF.has(e)&&"autoZero"!==e?{kind:"semantic",value:e}:{kind:"default"}}function MF(e){switch(e.kind){case"numeric":return XE("c:crossesAt",{val:e.value});case"semantic":return XE("c:crosses",{val:e.value});case"default":return XE("c:crosses",{val:"autoZero"})}}function NF(e,t=!1){const{before:n,after:r}=function(e){if(!e)return{before:[],after:[]};const t=[],n=[];return void 0!==e.logBase&&t.push(XE("c:logBase",{val:e.logBase})),void 0!==e.max&&n.push(XE("c:max",{val:e.max})),void 0!==e.min&&n.push(XE("c:min",{val:e.min})),{before:t,after:n}}(e);return ZE("c:scaling",void 0,[...n,XE("c:orientation",{val:t?"maxMin":"minMax"}),...r])}function TF(e){if(!e)return[];const t=[];return void 0!==e.majorUnit&&t.push(XE("c:majorUnit",{val:e.majorUnit})),void 0!==e.minorUnit&&t.push(XE("c:minorUnit",{val:e.minorUnit})),t}function QF(e){if(void 0===e)return;if("string"==typeof e)return ZB.has(e)?{unit:e}:void 0;if("object"!=typeof e||null===e)return;const t={},n=e.unit;"string"==typeof n&&ZB.has(n)&&(t.unit=n);const r=e.custUnit;if("number"==typeof r&&Number.isFinite(r)&&r>0&&(t.custUnit=r),void 0!==t.unit||void 0!==t.custUnit){if(!0===e.showLabel&&(t.showLabel=!0),"string"==typeof e.customLabel){const n=e.customLabel.trim();n.length>0&&(t.customLabel=n)}return t}}function RF(e){if(!e)return[];const t=[];if(void 0!==e.custUnit)t.push(XE("c:custUnit",{val:e.custUnit}));else{if(void 0===e.unit)return[];t.push(XE("c:builtInUnit",{val:e.unit}))}if(!0===e.showLabel||"string"==typeof e.customLabel&&e.customLabel.trim().length>0){const n="string"==typeof e.customLabel?e.customLabel.trim():"";if(n.length>0){const e=n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),r=ZE("c:rich",void 0,[XE("a:bodyPr"),XE("a:lstStyle"),ZE("a:p",void 0,[ZE("a:r",void 0,[ZE("a:t",void 0,e)])])]),i=ZE("c:tx",void 0,[r]);t.push(ZE("c:dispUnitsLbl",void 0,[i]))}else t.push(XE("c:dispUnitsLbl"))}return[ZE("c:dispUnits",void 0,t)]}function LF(e){if("string"==typeof e)return eF.has(e)?e:void 0}function PF(e){if(!e)return[];const t=!0===e.sourceLinked?1:0;return[XE("c:numFmt",{formatCode:e.formatCode,sourceLinked:t})]}function OF(e){if(void 0!==e)return cF.has(e)?e:void 0}function UF(e){if(void 0!==e)return uF.has(e)?e:void 0}function $F(e,t,n){const r=[];return void 0!==e&&r.push(XE("c:majorTickMark",{val:e})),void 0!==t&&r.push(XE("c:minorTickMark",{val:t})),void 0!==n&&r.push(XE("c:tickLblPos",{val:n})),r}function HF(e,t){const n="column"===e?"b":"l",r="column"===e?"l":"b",i=[XE("c:axId",{val:oF}),NF(t.xScale,t.xReverse),XE("c:delete",{val:t.xHidden?1:0}),XE("c:axPos",{val:n}),...pF(t.xGridlines)];t.xAxisTitle&&i.push(zF(t.xAxisTitle,t.xAxisTitleRotation,t.xAxisTitleFontSize,t.xAxisTitleBold,t.xAxisTitleItalic,t.xAxisTitleColor,t.xAxisTitleStrike,t.xAxisTitleUnderline,t.xAxisTitleFontFamily,t.xAxisTitleOverlay,t.xAxisTitleLayout,t.xAxisTitleFillColor,t.xAxisTitleBorderColor,t.xAxisTitleBorderWidth,t.xAxisTitleBorderDash,t.xAxisTitleBorderCap,t.xAxisTitleBorderCompound)),i.push(...PF(t.xNumFmt),...$F(t.xMajorTickMark,t.xMinorTickMark,t.xTickLblPos));const o=FF(t.xLabelRotation,t.xLabelFontSize,t.xLabelBold,t.xLabelItalic,t.xLabelColor,t.xLabelUnderline,t.xLabelStrike,t.xLabelFontFamily);o&&i.push(o),i.push(XE("c:crossAx",{val:aF}),MF(t.xCrosses),XE("c:auto",{val:t.xAuto?1:0}),XE("c:lblAlgn",{val:t.xLblAlgn??"ctr"}),XE("c:lblOffset",{val:t.xLblOffset??100}),...function(e,t){const n=[];return void 0!==e&&n.push(XE("c:tickLblSkip",{val:e})),void 0!==t&&n.push(XE("c:tickMarkSkip",{val:t})),n}(t.xTickLblSkip,t.xTickMarkSkip),XE("c:noMultiLvlLbl",{val:t.xNoMultiLvlLbl?1:0}));const a=[XE("c:axId",{val:aF}),NF(t.yScale,t.yReverse),XE("c:delete",{val:t.yHidden?1:0}),XE("c:axPos",{val:r}),...pF(t.yGridlines)];t.yAxisTitle&&a.push(zF(t.yAxisTitle,t.yAxisTitleRotation,t.yAxisTitleFontSize,t.yAxisTitleBold,t.yAxisTitleItalic,t.yAxisTitleColor,t.yAxisTitleStrike,t.yAxisTitleUnderline,t.yAxisTitleFontFamily,t.yAxisTitleOverlay,t.yAxisTitleLayout,t.yAxisTitleFillColor,t.yAxisTitleBorderColor,t.yAxisTitleBorderWidth,t.yAxisTitleBorderDash,t.yAxisTitleBorderCap,t.yAxisTitleBorderCompound)),a.push(...PF(t.yNumFmt),...$F(t.yMajorTickMark,t.yMinorTickMark,t.yTickLblPos));const s=FF(t.yLabelRotation,t.yLabelFontSize,t.yLabelBold,t.yLabelItalic,t.yLabelColor,t.yLabelUnderline,t.yLabelStrike,t.yLabelFontFamily);return s&&a.push(s),a.push(XE("c:crossAx",{val:oF}),MF(t.yCrosses),XE("c:crossBetween",{val:t.yCrossBetween??"between"}),...TF(t.yScale),...RF(t.yDispUnits)),[ZE("c:catAx",void 0,i),ZE("c:valAx",void 0,a)]}function zF(e,t,n,r,i,o,a,s,l,c,u,d,f,h,p,g,m){const y=void 0===t?0:6e4*t,v=void 0===n?1e3:n*WB,b=r?1:0,A=!0===i?1:void 0,w=!0===a?"sngStrike":void 0,x=!0===s?"sng":void 0,I=void 0!==o?ZE("a:solidFill",void 0,[Ek(o)]):void 0,C=l?XE("a:latin",{typeface:l}):void 0,S=[];I&&S.push(I),C&&S.push(C);const E=S.length>0?ZE("a:defRPr",{sz:v,b:b,i:A,u:x,strike:w},S):XE("a:defRPr",{sz:v,b:b,i:A,u:x,strike:w}),k=S.length>0?ZE("a:rPr",{lang:"en-US",sz:v,b:b,i:A,u:x,strike:w},S):XE("a:rPr",{lang:"en-US",sz:v,b:b,i:A,u:x,strike:w}),B=Hk(u),F=[ZE("c:tx",void 0,[ZE("c:rich",void 0,[ZE("a:bodyPr",{rot:y,spcFirstLastPara:1,vertOverflow:"ellipsis",wrap:"square",anchor:"ctr",anchorCtr:1},[]),XE("a:lstStyle"),ZE("a:p",void 0,[ZE("a:pPr",void 0,[E]),ZE("a:r",void 0,[k,ZE("a:t",void 0,YE(e))])])])])];B&&F.push(B),F.push(XE("c:overlay",{val:c?1:0}));const D=Jk(d,f,h,p,g,m);return void 0!==D&&F.push(D),ZE("c:title",void 0,F)}function qF(e){return Xk(e)}function jF(e){return Kk(e)}function WF(e){return Zk(e)}function _F(e){return eB(e)}function VF(e){return tB(e)}function YF(e){return nB(e)}function GF(e){return rB(e)}function JF(e){if("string"!=typeof e)return;const t=e.trim();return 0!==t.length?t:void 0}const XF=new Set(["pie","pie3D","doughnut","ofPie"]),KF=new Set(["none","line","lineMarker","marker","smooth","smoothMarker"]),ZF=new Set(["pie","doughnut"]),eD=new Set(["none","line","lineMarker","marker","smooth","smoothMarker"]);function tD(e,t){const n=xE(e,"varyColors");if(!n)return;const r=n.attrs.val;if("string"!=typeof r)return;const i=XF.has(t);let o;switch(r){case"1":case"true":o=!0;break;case"0":case"false":o=!1;break;default:return}return o!==i?o:void 0}function nD(e){const t=xE(e,"scatterStyle");if(!t)return;const n=t.attrs.val;return"string"==typeof n&&KF.has(n)?n:void 0}function rD(e){return!!xE(e,"dropLines")||void 0}function iD(e){return!!xE(e,"hiLowLines")||void 0}function oD(e){return!!xE(e,"serLines")||void 0}function aD(e){const t=xE(e,"marker");if(!t)return;const n=t.attrs.val;if("string"==typeof n)switch(n){case"0":case"false":return!1;default:return}}function sD(e){const t=xE(e,"grouping");if(!t)return;const n=t.attrs.val;if("string"==typeof n)switch(n){case"stacked":return"stacked";case"percentStacked":return"percentStacked";case"clustered":return"clustered";default:return}}function lD(e){const t=xE(e,"holeSize");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=Number.parseInt(n,10);return Number.isFinite(r)&&!(r<1||r>99)?r:void 0}function cD(e){const t=xE(e,"gapWidth");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=Number.parseInt(n,10);return Number.isFinite(r)&&!(r<0||r>500)&&150!==r?r:void 0}function uD(e){const t=xE(e,"gapWidth");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=Number.parseInt(n,10);return Number.isFinite(r)&&!(r<0||r>500)&&150!==r?r:void 0}function dD(e){const t=xE(e,"overlap");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=Number.parseInt(n,10);return Number.isFinite(r)&&!(r<-100||r>100)&&0!==r?r:void 0}function fD(e){const t=xE(e,"firstSliceAng");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=Number.parseInt(n,10);return Number.isFinite(r)&&!(r<0||r>360)&&0!==r&&360!==r?r:void 0}function hD(e){const t=xE(e,"grouping");if(!t)return;const n=t.attrs.val;if("string"==typeof n)switch(n){case"stacked":return"stacked";case"percentStacked":return"percentStacked";default:return}}function pD(e,t){const n=Hk(function(e){return Uk(e.plotAreaLayout)}(e)),r=[n??XE("c:layout")],i={xAxisTitle:fF(e.axes?.x?.title),yAxisTitle:fF(e.axes?.y?.title),xAxisTitleRotation:qF(e.axes?.x?.axisTitleRotation),yAxisTitleRotation:qF(e.axes?.y?.axisTitleRotation),xAxisTitleFontSize:jF(e.axes?.x?.axisTitleFontSize),yAxisTitleFontSize:jF(e.axes?.y?.axisTitleFontSize),xAxisTitleBold:WF(e.axes?.x?.axisTitleBold),yAxisTitleBold:WF(e.axes?.y?.axisTitleBold),xAxisTitleItalic:_F(e.axes?.x?.axisTitleItalic),yAxisTitleItalic:_F(e.axes?.y?.axisTitleItalic),xAxisTitleColor:VF(e.axes?.x?.axisTitleColor),yAxisTitleColor:VF(e.axes?.y?.axisTitleColor),xAxisTitleStrike:YF(e.axes?.x?.axisTitleStrike),yAxisTitleStrike:YF(e.axes?.y?.axisTitleStrike),xAxisTitleUnderline:GF(e.axes?.x?.axisTitleUnderline),yAxisTitleUnderline:GF(e.axes?.y?.axisTitleUnderline),xAxisTitleFontFamily:JF(e.axes?.x?.axisTitleFontFamily),yAxisTitleFontFamily:JF(e.axes?.y?.axisTitleFontFamily),xAxisTitleOverlay:!0===e.axes?.x?.axisTitleOverlay,yAxisTitleOverlay:!0===e.axes?.y?.axisTitleOverlay,xAxisTitleLayout:Uk(e.axes?.x?.axisTitleLayout),yAxisTitleLayout:Uk(e.axes?.y?.axisTitleLayout),xAxisTitleFillColor:tB(e.axes?.x?.axisTitleFillColor),yAxisTitleFillColor:tB(e.axes?.y?.axisTitleFillColor),xAxisTitleBorderColor:tB(e.axes?.x?.axisTitleBorderColor),yAxisTitleBorderColor:tB(e.axes?.y?.axisTitleBorderColor),xAxisTitleBorderWidth:Nk(e.axes?.x?.axisTitleBorderWidth),yAxisTitleBorderWidth:Nk(e.axes?.y?.axisTitleBorderWidth),xAxisTitleBorderDash:Tk(e.axes?.x?.axisTitleBorderDash),yAxisTitleBorderDash:Tk(e.axes?.y?.axisTitleBorderDash),xAxisTitleBorderCap:gk(e.axes?.x?.axisTitleBorderCap),yAxisTitleBorderCap:gk(e.axes?.y?.axisTitleBorderCap),xAxisTitleBorderCompound:mk(e.axes?.x?.axisTitleBorderCompound),yAxisTitleBorderCompound:mk(e.axes?.y?.axisTitleBorderCompound),xGridlines:hF(e.axes?.x?.gridlines),yGridlines:hF(e.axes?.y?.gridlines),xScale:gF(e.axes?.x?.scale),yScale:gF(e.axes?.y?.scale),xNumFmt:mF(e.axes?.x?.numberFormat),yNumFmt:mF(e.axes?.y?.numberFormat),xMajorTickMark:OF(e.axes?.x?.majorTickMark),yMajorTickMark:OF(e.axes?.y?.majorTickMark),xMinorTickMark:OF(e.axes?.x?.minorTickMark),yMinorTickMark:OF(e.axes?.y?.minorTickMark),xTickLblPos:UF(e.axes?.x?.tickLblPos),yTickLblPos:UF(e.axes?.y?.tickLblPos),xLabelRotation:wF(e.axes?.x?.labelRotation),yLabelRotation:wF(e.axes?.y?.labelRotation),xLabelFontSize:xF(e.axes?.x?.labelFontSize),yLabelFontSize:xF(e.axes?.y?.labelFontSize),xLabelBold:IF(e.axes?.x?.labelBold),yLabelBold:IF(e.axes?.y?.labelBold),xLabelItalic:CF(e.axes?.x?.labelItalic),yLabelItalic:CF(e.axes?.y?.labelItalic),xLabelColor:SF(e.axes?.x?.labelColor),yLabelColor:SF(e.axes?.y?.labelColor),xLabelUnderline:EF(e.axes?.x?.labelUnderline),yLabelUnderline:EF(e.axes?.y?.labelUnderline),xLabelStrike:kF(e.axes?.x?.labelStrike),yLabelStrike:kF(e.axes?.y?.labelStrike),xLabelFontFamily:BF(e.axes?.x?.labelFontFamily),yLabelFontFamily:BF(e.axes?.y?.labelFontFamily),xReverse:!0===e.axes?.x?.reverse,yReverse:!0===e.axes?.y?.reverse,xTickLblSkip:yF(e.axes?.x?.tickLblSkip),xTickMarkSkip:yF(e.axes?.x?.tickMarkSkip),xLblOffset:vF(e.axes?.x?.lblOffset),xLblAlgn:bF(e.axes?.x?.lblAlgn),xNoMultiLvlLbl:!0===e.axes?.x?.noMultiLvlLbl,xAuto:!1!==e.axes?.x?.auto,xHidden:AF(e.axes?.x?.hidden),yHidden:AF(e.axes?.y?.hidden),xCrosses:DF(e.axes?.x?.crosses,e.axes?.x?.crossesAt),yCrosses:DF(e.axes?.y?.crosses,e.axes?.y?.crossesAt),xDispUnits:QF(e.axes?.x?.dispUnits),yDispUnits:QF(e.axes?.y?.dispUnits),xCrossBetween:LF(e.axes?.x?.crossBetween),yCrossBetween:LF(e.axes?.y?.crossBetween)};switch(e.type){case"bar":case"column":r.push(function(e,t){const n=e.barGrouping??"clustered",r="bar"===e.type?"bar":"col",i="percentStacked"===n||"stacked"===n,o=[XE("c:barDir",{val:r}),XE("c:grouping",{val:n}),XE("c:varyColors",{val:yD(e)?1:0})];for(let n=0;n<e.series.length;n++)o.push(qB(e.series[n],n,t,!1,{chartType:e.type,dataLabels:e.dataLabels,invertIfNegative:!0===e.series[n].invertIfNegative,dataPoints:e.series[n].dataPoints,trendlines:e.series[n].trendlines,errorBars:e.series[n].errorBars}));const a=IB(e);a&&o.push(a);const s=function(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<0?0:t>500?500:t}(e.gapWidth),l=function(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<-100?-100:t>100?100:t}(e.overlap),c=s??(i?void 0:150);void 0!==c&&o.push(XE("c:gapWidth",{val:c}));const u=l??(i?100:void 0);void 0!==u&&o.push(XE("c:overlap",{val:u}));!0===e.serLines&&o.push(ZE("c:serLines",void 0,[]));return o.push(XE("c:axId",{val:oF})),o.push(XE("c:axId",{val:aF})),ZE("c:barChart",void 0,o)}(e,t)),r.push(...HF(e.type,i));break;case"line":r.push(function(e,t){const n=e.lineGrouping??"standard",r=[XE("c:grouping",{val:n}),XE("c:varyColors",{val:yD(e)?1:0})];for(let n=0;n<e.series.length;n++){const i=qB(e.series[n],n,t,!1,{chartType:e.type,smooth:!0===e.series[n].smooth,dataLabels:e.dataLabels,stroke:e.series[n].stroke,marker:e.series[n].marker,dataPoints:e.series[n].dataPoints,trendlines:e.series[n].trendlines,errorBars:e.series[n].errorBars});r.push(i)}const i=IB(e);i&&r.push(i);!0===e.dropLines&&r.push(ZE("c:dropLines",void 0,[]));!0===e.hiLowLines&&r.push(ZE("c:hiLowLines",void 0,[]));!0===e.upDownBars&&r.push(function(e){const t=function(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<0||t>500?void 0:t}(e)??150;return ZE("c:upDownBars",void 0,[XE("c:gapWidth",{val:t})])}(e.upDownBarsGapWidth));return r.push(XE("c:marker",{val:!1===e.showLineMarkers?0:1})),r.push(XE("c:axId",{val:oF})),r.push(XE("c:axId",{val:aF})),ZE("c:lineChart",void 0,r)}(e,t)),r.push(...HF("column",i));break;case"area":r.push(function(e,t){const n=e.areaGrouping??"standard",r=[XE("c:grouping",{val:n}),XE("c:varyColors",{val:yD(e)?1:0})];for(let n=0;n<e.series.length;n++)r.push(qB(e.series[n],n,t,!1,{chartType:e.type,dataLabels:e.dataLabels,dataPoints:e.series[n].dataPoints,trendlines:e.series[n].trendlines,errorBars:e.series[n].errorBars}));const i=IB(e);i&&r.push(i);!0===e.dropLines&&r.push(ZE("c:dropLines",void 0,[]));return r.push(XE("c:axId",{val:oF})),r.push(XE("c:axId",{val:aF})),ZE("c:areaChart",void 0,r)}(e,t)),r.push(...HF("column",i));break;case"pie":r.push(function(e,t){const n=[XE("c:varyColors",{val:yD(e)?1:0})];e.series.length>0&&n.push(qB(e.series[0],0,t,!1,{chartType:e.type,dataLabels:e.dataLabels,explosion:e.series[0].explosion,dataPoints:e.series[0].dataPoints}));const r=IB(e);r&&n.push(r);const i=gD(e.firstSliceAng);void 0!==i&&n.push(XE("c:firstSliceAng",{val:i}));return ZE("c:pieChart",void 0,n)}(e,t));break;case"doughnut":r.push(function(e,t){const n=[XE("c:varyColors",{val:yD(e)?1:0})];for(let r=0;r<e.series.length;r++)n.push(qB(e.series[r],r,t,!1,{chartType:e.type,dataLabels:e.dataLabels,explosion:e.series[r].explosion,dataPoints:e.series[r].dataPoints}));const r=IB(e);r&&n.push(r);return n.push(XE("c:firstSliceAng",{val:gD(e.firstSliceAng)??0})),n.push(XE("c:holeSize",{val:mD(e.holeSize)})),ZE("c:doughnutChart",void 0,n)}(e,t));break;case"scatter":r.push(function(e,t){const n=[XE("c:scatterStyle",{val:vD(e)}),XE("c:varyColors",{val:yD(e)?1:0})];for(let r=0;r<e.series.length;r++)n.push(qB(e.series[r],r,t,!0,{chartType:e.type,smooth:!0===e.series[r].smooth||void 0,dataLabels:e.dataLabels,stroke:e.series[r].stroke,marker:e.series[r].marker,dataPoints:e.series[r].dataPoints,trendlines:e.series[r].trendlines,errorBars:e.series[r].errorBars}));const r=IB(e);r&&n.push(r);return n.push(XE("c:axId",{val:sF})),n.push(XE("c:axId",{val:lF})),ZE("c:scatterChart",void 0,n)}(e,t)),r.push(...function(e){const t=[XE("c:axId",{val:sF}),NF(e.xScale,e.xReverse),XE("c:delete",{val:e.xHidden?1:0}),XE("c:axPos",{val:"b"}),...pF(e.xGridlines)];e.xAxisTitle&&t.push(zF(e.xAxisTitle,e.xAxisTitleRotation,e.xAxisTitleFontSize,e.xAxisTitleBold,e.xAxisTitleItalic,e.xAxisTitleColor,e.xAxisTitleStrike,e.xAxisTitleUnderline,e.xAxisTitleFontFamily,e.xAxisTitleOverlay,e.xAxisTitleLayout,e.xAxisTitleFillColor,e.xAxisTitleBorderColor,e.xAxisTitleBorderWidth,e.xAxisTitleBorderDash,e.xAxisTitleBorderCap,e.xAxisTitleBorderCompound)),t.push(...PF(e.xNumFmt),...$F(e.xMajorTickMark,e.xMinorTickMark,e.xTickLblPos));const n=FF(e.xLabelRotation,e.xLabelFontSize,e.xLabelBold,e.xLabelItalic,e.xLabelColor,e.xLabelUnderline,e.xLabelStrike,e.xLabelFontFamily);n&&t.push(n),t.push(XE("c:crossAx",{val:lF}),MF(e.xCrosses),XE("c:crossBetween",{val:e.xCrossBetween??"midCat"}),...TF(e.xScale),...RF(e.xDispUnits));const r=[XE("c:axId",{val:lF}),NF(e.yScale,e.yReverse),XE("c:delete",{val:e.yHidden?1:0}),XE("c:axPos",{val:"l"}),...pF(e.yGridlines)];e.yAxisTitle&&r.push(zF(e.yAxisTitle,e.yAxisTitleRotation,e.yAxisTitleFontSize,e.yAxisTitleBold,e.yAxisTitleItalic,e.yAxisTitleColor,e.yAxisTitleStrike,e.yAxisTitleUnderline,e.yAxisTitleFontFamily,e.yAxisTitleOverlay,e.yAxisTitleLayout,e.yAxisTitleFillColor,e.yAxisTitleBorderColor,e.yAxisTitleBorderWidth,e.yAxisTitleBorderDash,e.yAxisTitleBorderCap,e.yAxisTitleBorderCompound)),r.push(...PF(e.yNumFmt),...$F(e.yMajorTickMark,e.yMinorTickMark,e.yTickLblPos));const i=FF(e.yLabelRotation,e.yLabelFontSize,e.yLabelBold,e.yLabelItalic,e.yLabelColor,e.yLabelUnderline,e.yLabelStrike,e.yLabelFontFamily);return i&&r.push(i),r.push(XE("c:crossAx",{val:sF}),MF(e.yCrosses),XE("c:crossBetween",{val:e.yCrossBetween??"midCat"}),...TF(e.yScale),...RF(e.yDispUnits)),[ZE("c:valAx",void 0,t),ZE("c:valAx",void 0,r)]}(i));break;default:{const t=e.type;throw new Error(`Unsupported chart type: ${String(t)}`)}}const o=function(e){if("pie"===e.type||"doughnut"===e.type)return;const t=e.dataTable;var n;return void 0!==t&&!1!==t?!0===t?{showHorzBorder:!0,showVertBorder:!0,showOutline:!0,showKeys:!0,fontSize:void 0,fontColor:void 0,bold:void 0,italic:void 0,underline:void 0,strikethrough:void 0,fontFamily:void 0,fillColor:void 0,borderColor:void 0,borderWidth:void 0,borderDash:void 0,borderCap:void 0,borderCompound:void 0}:{showHorzBorder:!1!==t.showHorzBorder,showVertBorder:!1!==t.showVertBorder,showOutline:!1!==t.showOutline,showKeys:!1!==t.showKeys,fontSize:(n=t.fontSize,Kk(n)),fontColor:dB(t.fontColor),bold:fB(t.bold),italic:hB(t.italic),underline:pB(t.underline),strikethrough:gB(t.strikethrough),fontFamily:mB(t.fontFamily),fillColor:yB(t.fillColor),borderColor:vB(t.borderColor),borderWidth:Nk(t.borderWidth),borderDash:Tk(t.borderDash),borderCap:gk(t.borderCap),borderCompound:mk(t.borderCompound)}:void 0}(e);void 0!==o&&r.push(bB(o));const a=function(e){const t=(s=e.plotAreaFillColor,tB(s)),n=function(e){return tB(e)}(e.plotAreaBorderColor),r=Nk(e.plotAreaBorderWidth),i=Tk(e.plotAreaBorderDash),o=gk(e.plotAreaBorderCap),a=mk(e.plotAreaBorderCompound);var s;if(void 0===t&&void 0===n&&void 0===r&&void 0===i&&void 0===o&&void 0===a)return;const l=[];void 0!==t&&l.push(ZE("a:solidFill",void 0,[Ek(t)]));if(void 0!==n||void 0!==r||void 0!==i||void 0!==o||void 0!==a){const e={};void 0!==r&&(e.w=Math.round(r*uk)),void 0!==o&&(e.cap=o),void 0!==a&&(e.cmpd=a);const t=[];void 0!==n&&t.push(ZE("a:solidFill",void 0,[Ek(n)])),void 0!==i&&t.push(XE("a:prstDash",{val:i})),l.push(0===t.length?XE("a:ln",e):ZE("a:ln",Object.keys(e).length>0?e:void 0,t))}return ZE("c:spPr",void 0,l)}(e);return void 0!==a&&r.push(a),ZE("c:plotArea",void 0,r)}function gD(e){if(void 0===e||!Number.isFinite(e))return;let t=Math.round(e)%360;return t<0&&(t+=360),0!==t?t:void 0}function mD(e){if(void 0===e||!Number.isFinite(e))return 50;const t=Math.round(e);return t<10?10:t>90?90:t}function yD(e){return"boolean"==typeof e.varyColors?e.varyColors:ZF.has(e.type)}function vD(e){const t=e.scatterStyle;return t&&eD.has(t)?t:"lineMarker"}const bD=new Map([["barChart","bar"],["bar3DChart","bar3D"],["lineChart","line"],["line3DChart","line3D"],["pieChart","pie"],["pie3DChart","pie3D"],["doughnutChart","doughnut"],["areaChart","area"],["area3DChart","area3D"],["scatterChart","scatter"],["bubbleChart","bubble"],["radarChart","radar"],["surfaceChart","surface"],["surface3DChart","surface3D"],["stockChart","stock"],["ofPieChart","ofPie"]]);function AD(e){const t=wE(e),n="chartSpace"===t.local?t:CE(t,"chartSpace");if(!n)return;const r=xE(n,"chart");if(!r)return{kinds:[],seriesCount:0};const i={kinds:[],seriesCount:0},o=function(e){const t=xE(e,"title");if(!t)return;const n=xE(t,"tx");if(!n)return;const r=xE(n,"rich");if(r){const e=[];tk(r,e);const t=e.join("").trim();return t.length>0?t:void 0}const i=xE(n,"strRef");if(i){const e=xE(i,"strCache");if(e)for(const t of IE(e)){if("pt"!==t.local)continue;const e=xE(t,"v");if(e){const t=nk(e).trim();if(t.length>0)return t}}}}(r);void 0!==o&&(i.title=o);const a=function(e){const t=xE(e,"title");if(!t)return;const n=xE(t,"overlay");if(!n)return;const r=n.attrs.val;if("string"==typeof r)switch(r){case"1":case"true":return!0;default:return}}(r);void 0!==a&&(i.titleOverlay=a);const s=function(e){const t=xE(e,"title");if(!t)return;const n=xE(t,"tx");if(!n)return;const r=xE(n,"rich");if(!r)return;const i=xE(r,"bodyPr");if(!i)return;const o=i.attrs.rot;if("string"!=typeof o)return;const a=o.trim();if(0===a.length)return;const s=Number.parseInt(a,10);if(!Number.isFinite(s))return;const l=Math.round(s/Yk);return 0!==l?l<Gk?Gk:l>90?90:l:void 0}(r);void 0!==s&&(i.titleRotation=s);const l=function(e){const t=qk(e);if(!t)return;const n=t.attrs.sz;if("string"!=typeof n)return;const r=n.trim();if(0===r.length)return;const i=Number.parseInt(r,10);if(!Number.isFinite(i))return;const o=Math.round(i/100*2)/2;return o<1||o>400?void 0:o}(r);void 0!==l&&(i.titleFontSize=l);const c=function(e){const t=qk(e);if(!t)return;return!0===rk(t.attrs.b)||void 0}(r);void 0!==c&&(i.titleBold=c);const u=function(e){const t=qk(e);if(!t)return;return!0===rk(t.attrs.i)||void 0}(r);void 0!==u&&(i.titleItalic=u);const d=function(e){const t=qk(e);if(!t)return;const n=xE(t,"solidFill");if(!n)return;const r=xE(n,"srgbClr");if(r)return kk(r.attrs.val);const i=xE(n,"schemeClr");return i?Ck(i):void 0}(r);void 0!==d&&(i.titleColor=d);const f=function(e){const t=qk(e);if(!t)return;return"sngStrike"===t.attrs.strike||void 0}(r);void 0!==f&&(i.titleStrike=f);const h=function(e){const t=qk(e);if(!t)return;return"sng"===t.attrs.u||void 0}(r);void 0!==h&&(i.titleUnderline=h);const p=function(e){const t=qk(e);if(!t)return;const n=xE(t,"latin");if(!n)return;const r=n.attrs.typeface;if("string"!=typeof r)return;const i=r.trim();return 0!==i.length?i:void 0}(r);void 0!==p&&(i.titleFontFamily=p);const g=function(e){const t=xE(e,"title");if(t)return Ok(t)}(r);void 0!==g&&(i.titleLayout=g);const m=function(e){const t=xE(e,"title");if(t)return Bk(t)}(r);void 0!==m&&(i.titleFillColor=m);const y=function(e){const t=xE(e,"title");if(t)return Fk(t)}(r);void 0!==y&&(i.titleBorderColor=y);const v=function(e){const t=xE(e,"title");if(t)return Dk(t)}(r);void 0!==v&&(i.titleBorderWidth=v);const b=function(e){const t=xE(e,"title");if(t)return Mk(t)}(r);void 0!==b&&(i.titleBorderDash=b);const A=function(e){const t=xE(e,"title");if(t)return yk(t)}(r);void 0!==A&&(i.titleBorderCap=A);const w=function(e){const t=xE(e,"title");if(t)return vk(t)}(r);void 0!==w&&(i.titleBorderCompound=w);const x=function(e){const t=xE(e,"autoTitleDeleted");if(!t)return;const n=t.attrs.val;if("string"==typeof n)switch(n){case"1":case"true":return!0;default:return}}(r);void 0!==x&&(i.autoTitleDeleted=x);const I=xE(r,"plotArea");if(I){let e=0;const t=[];let n,r,o,a,s,l,c,u,d,f,h,p,g,m,y,v;for(const b of IE(I)){const A=bD.get(b.local);if(!A)continue;if(i.kinds.includes(A)||i.kinds.push(A),void 0===d&&(d=tD(b,A)),void 0!==n||"bar"!==A&&"bar3D"!==A||(n=sD(b)),void 0!==l||"bar"!==A&&"bar3D"!==A||(l=cD(b)),void 0!==c||"bar"!==A&&"bar3D"!==A||(c=dD(b)),void 0!==r||"line"!==A&&"line3D"!==A||(r=hD(b)),void 0!==o||"area"!==A&&"area3D"!==A||(o=hD(b)),void 0===s&&"doughnut"===A&&(s=lD(b)),void 0!==u||"pie"!==A&&"pie3D"!==A&&"doughnut"!==A&&"ofPie"!==A||(u=fD(b)),void 0===f&&"scatter"===A&&(f=nD(b)),void 0!==h||"line"!==A&&"line3D"!==A&&"area"!==A&&"area3D"!==A||(h=rD(b)),void 0!==p||"line"!==A&&"line3D"!==A&&"stock"!==A||(p=iD(b)),void 0!==g||"bar"!==A&&"ofPie"!==A||(g=oD(b)),void 0===m&&("line"===A||"line3D"===A||"stock"===A)){const e=xE(b,"upDownBars");void 0!==e&&(m=!0,y=uD(e))}void 0===v&&"line"===A&&(v=aD(b));let w=0;for(const n of IE(b))"ser"===n.local&&(e++,t.push(HB(n,A,w)),w++);if(void 0===a){const e=xE(b,"dLbls");if(e){const t=xB(e);t&&(a=t)}}}i.seriesCount=e,t.length>0&&(i.series=t),void 0!==n&&(i.barGrouping=n),void 0!==r&&(i.lineGrouping=r),void 0!==o&&(i.areaGrouping=o),a&&(i.dataLabels=a),void 0!==s&&(i.holeSize=s),void 0!==l&&(i.gapWidth=l),void 0!==c&&(i.overlap=c),void 0!==u&&(i.firstSliceAng=u),void 0!==d&&(i.varyColors=d),void 0!==f&&(i.scatterStyle=f),void 0!==h&&(i.dropLines=h),void 0!==p&&(i.hiLowLines=p),void 0!==g&&(i.serLines=g),void 0!==m&&(i.upDownBars=m),void 0!==y&&(i.upDownBarsGapWidth=y),void 0!==v&&(i.showLineMarkers=v);const b=function(e){let t;const n=[];for(const r of IE(e))"catAx"===r.local?t??=r:"valAx"===r.local&&n.push(r);let r,i;t?(r=t,i=n[0]):(r=n[0],i=n[1]);const o=t?"between":"midCat",a=r?tF(r,o):void 0,s=i?tF(i,o):void 0;if(!a&&!s)return;const l={};return a&&(l.x=a),s&&(l.y=s),l}(I);void 0!==b&&(i.axes=b);const A=cB(I);void 0!==A&&(i.dataTable=A);const w=function(e){return Ok(e)}(I);void 0!==w&&(i.plotAreaLayout=w);const x=function(e){return Bk(e)}(I);void 0!==x&&(i.plotAreaFillColor=x);const C=function(e){return Fk(e)}(I);void 0!==C&&(i.plotAreaBorderColor=C);const S=function(e){return Dk(e)}(I);void 0!==S&&(i.plotAreaBorderWidth=S);const E=Mk(I);void 0!==E&&(i.plotAreaBorderDash=E);const k=yk(I);void 0!==k&&(i.plotAreaBorderCap=k);const B=vk(I);void 0!==B&&(i.plotAreaBorderCompound=B)}const C=function(e){const t=xE(e,"legend");if(!t)return;const n=xE(t,"delete");if(n&&!0===ok(n.attrs.val))return!1;const r=xE(t,"legendPos");if(!r)return"right";const i=r.attrs.val;if("string"!=typeof i)return"right";switch(i){case"t":return"top";case"b":return"bottom";case"l":return"left";case"r":return"right";case"tr":return"topRight";default:return}}(r);if(void 0!==C&&(i.legend=C),void 0!==C&&!1!==C){const e=function(e){const t=xE(e,"legend");if(!t)return;const n=xE(t,"overlay");if(!n)return;const r=n.attrs.val;if("string"==typeof r)switch(r){case"1":case"true":return!0;default:return}}(r);void 0!==e&&(i.legendOverlay=e);const t=function(e){const t=xE(e,"legend");if(!t)return;const n=new Set,r=[];for(const e of IE(t)){if("legendEntry"!==e.local)continue;const t=xE(e,"idx");if(!t)continue;const i=t.attrs.val;if("string"!=typeof i)continue;const o=Number.parseInt(i,10);if(!Number.isFinite(o)||o<0)continue;if(n.has(o))continue;n.add(o);const a=xE(e,"delete"),s={idx:o,delete:void 0!==a&&!0===ok(a.attrs.val)},l=zk(e);if(l){const e=l.attrs.sz;if("string"==typeof e){const t=e.trim();if(t.length>0){const e=Number.parseInt(t,10);if(Number.isFinite(e)){const t=Math.round(e/iB*2)/2;t>=1&&t<=oB&&(s.fontSize=t)}}}const t=l.attrs.b;"string"==typeof t&&!0===ok(t)&&(s.bold=!0);const n=l.attrs.i;"string"==typeof n&&!0===ok(n)&&(s.italic=!0);const r=l.attrs.u;"string"==typeof r&&"sng"===r&&(s.underline=!0);const i=l.attrs.strike;"string"==typeof i&&"sngStrike"===i&&(s.strikethrough=!0);const o=xE(l,"solidFill");if(o){const e=xE(o,"srgbClr");if(e){const t=e.attrs.val;if("string"==typeof t){const e=t.replace(/^#/,"").toUpperCase();/^[0-9A-F]{6}$/.test(e)&&(s.color=e)}}}const a=xE(l,"latin");if(a){const e=a.attrs.typeface;if("string"==typeof e){const t=e.trim();t.length>0&&(s.fontFamily=t)}}}r.push(s)}return r.length>0?r:void 0}(r);void 0!==t&&(i.legendEntries=t);const n=function(e){const t=xE(e,"legend");if(!t)return;const n=zk(t);if(!n)return;const r=n.attrs.sz;if("string"!=typeof r)return;const i=r.trim();if(0===i.length)return;const o=Number.parseInt(i,10);if(!Number.isFinite(o))return;const a=Math.round(o/iB*2)/2;return a<1||a>oB?void 0:a}(r);void 0!==n&&(i.legendFontSize=n);const o=function(e){const t=xE(e,"legend");if(!t)return;const n=zk(t);if(!n)return;const r=n.attrs.b;return"1"===r||"true"===r||void 0}(r);void 0!==o&&(i.legendBold=o);const a=function(e){const t=xE(e,"legend");if(!t)return;const n=zk(t);if(!n)return;const r=n.attrs.i;return"1"===r||"true"===r||void 0}(r);void 0!==a&&(i.legendItalic=a);const s=function(e){const t=xE(e,"legend");if(!t)return;const n=zk(t);if(!n)return;return"sng"===n.attrs.u||void 0}(r);void 0!==s&&(i.legendUnderline=s);const l=function(e){const t=xE(e,"legend");if(!t)return;const n=zk(t);if(!n)return;return"sngStrike"===n.attrs.strike||void 0}(r);void 0!==l&&(i.legendStrikethrough=l);const c=function(e){const t=xE(e,"legend");if(!t)return;const n=zk(t);if(!n)return;const r=xE(n,"solidFill");if(!r)return;const i=xE(r,"srgbClr");if(i)return kk(i.attrs.val);const o=xE(r,"schemeClr");return o?Ck(o):void 0}(r);void 0!==c&&(i.legendFontColor=c);const u=function(e){const t=xE(e,"legend");if(!t)return;const n=zk(t);if(!n)return;const r=xE(n,"latin");if(!r)return;const i=r.attrs.typeface;if("string"!=typeof i)return;const o=i.trim();return 0!==o.length?o:void 0}(r);void 0!==u&&(i.legendFontFamily=u);const d=function(e){const t=xE(e,"legend");if(t)return Ok(t)}(r);void 0!==d&&(i.legendLayout=d);const f=function(e){const t=xE(e,"legend");if(t)return Bk(t)}(r);void 0!==f&&(i.legendFillColor=f);const h=function(e){const t=xE(e,"legend");if(t)return Fk(t)}(r);void 0!==h&&(i.legendBorderColor=h);const p=function(e){const t=xE(e,"legend");if(t)return Dk(t)}(r);void 0!==p&&(i.legendBorderWidth=p);const g=function(e){const t=xE(e,"legend");if(t)return Mk(t)}(r);void 0!==g&&(i.legendBorderDash=g);const m=function(e){const t=xE(e,"legend");if(t)return yk(t)}(r);void 0!==m&&(i.legendBorderCap=m);const y=function(e){const t=xE(e,"legend");if(t)return vk(t)}(r);void 0!==y&&(i.legendBorderCompound=y)}const S=function(e){const t=xE(e,"dispBlanksAs");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;switch(n){case"zero":return"zero";case"span":return"span";default:return}}(r);void 0!==S&&(i.dispBlanksAs=S);const E=function(e){const t=xE(e,"plotVisOnly");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;switch(n){case"0":case"false":return!1;default:return}}(r);void 0!==E&&(i.plotVisOnly=E);const k=function(e){const t=xE(e,"showDLblsOverMax");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;switch(n){case"0":case"false":return!1;default:return}}(r);void 0!==k&&(i.showDLblsOverMax=k);const B=function(e){const t=xE(e,"roundedCorners");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;switch(n){case"1":case"true":return!0;default:return}}(n);void 0!==B&&(i.roundedCorners=B);const F=function(e){const t=xE(e,"style");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;if(!/^\d+$/.test(n))return;const r=Number(n);return Number.isInteger(r)?r<1||r>48?void 0:r:void 0}(n);void 0!==F&&(i.style=F);const D=function(e){const t=xE(e,"lang");if(!t)return;const n=t.attrs.val;return"string"!=typeof n?void 0:/^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$/.test(n)?n:void 0}(n);void 0!==D&&(i.lang=D);const M=function(e){const t=xE(e,"date1904");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;switch(n){case"1":case"true":return!0;default:return}}(n);void 0!==M&&(i.date1904=M);const N=function(e){const t=xE(e,"protection");if(!t)return;const n={},r=wD(t,"chartObject");void 0!==r&&(n.chartObject=r);const i=wD(t,"data");void 0!==i&&(n.data=i);const o=wD(t,"formatting");void 0!==o&&(n.formatting=o);const a=wD(t,"selection");void 0!==a&&(n.selection=a);const s=wD(t,"userInterface");void 0!==s&&(n.userInterface=s);return n}(n);void 0!==N&&(i.protection=N);const T=Qk(r);void 0!==T&&(i.view3D=T);const Q=function(e){const t=xE(e,"floor");if(!t)return;const n=xE(t,"thickness");if(!n)return;const r=n.attrs.val;if("string"!=typeof r)return;if(!/^\d+$/.test(r))return;const i=Number(r);return!Number.isInteger(i)||0===i||i>100?void 0:i}(r);void 0!==Q&&(i.floorThickness=Q);const R=function(e){const t=xE(e,"sideWall");if(!t)return;const n=xE(t,"thickness");if(!n)return;const r=n.attrs.val;if("string"!=typeof r)return;if(!/^\d+$/.test(r))return;const i=Number(r);return!Number.isInteger(i)||0===i||i>100?void 0:i}(r);void 0!==R&&(i.sideWallThickness=R);const L=function(e){const t=xE(e,"backWall");if(!t)return;const n=xE(t,"thickness");if(!n)return;const r=n.attrs.val;if("string"!=typeof r)return;if(!/^\d+$/.test(r))return;const i=Number(r);return!Number.isInteger(i)||0===i||i>100?void 0:i}(r);void 0!==L&&(i.backWallThickness=L);const P=function(e){return Bk(e)}(n);void 0!==P&&(i.chartSpaceFillColor=P);const O=function(e){return Fk(e)}(n);void 0!==O&&(i.chartSpaceBorderColor=O);const U=Dk(n);void 0!==U&&(i.chartSpaceBorderWidth=U);const $=Mk(n);void 0!==$&&(i.chartSpaceBorderDash=$);const H=yk(n);void 0!==H&&(i.chartSpaceBorderCap=H);const z=vk(n);return void 0!==z&&(i.chartSpaceBorderCompound=z),i}function wD(e,t){const n=xE(e,t);if(!n)return;const r=n.attrs.val;if("string"==typeof r)switch(r){case"1":case"true":return!0;case"0":case"false":return!1;default:return}}const xD=1073741824,ID=1048575,CD=16383,SD=16777216,ED=Object.freeze([208,207,17,224,161,177,26,225]);async function kD(e,t){if(e instanceof Uint8Array)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if("object"==typeof(n=e)&&null!==n&&"function"==typeof n.getReader)return async function(e,t=1073741824){const n=Number.isFinite(t)&&t>0?t:xD,r=e.getReader(),i=[];let o=0;try{for(;;){const{done:e,value:t}=await r.read();if(e)break;if(t){if(o+=t.length,o>n)throw new eE(`Input stream exceeds the maximum of ${n} bytes. Raise \`maxInputBytes\` if the file really is this large.`);i.push(t)}}if(0===i.length)return new Uint8Array(0);if(1===i.length)return i[0];const e=new Uint8Array(o);let t=0;for(const n of i)e.set(n,t),t+=n.length;return e}finally{try{await r.cancel()}catch{}try{r.releaseLock()}catch{}}}(e,t);var n;throw new eE("Unsupported input type. Expected Uint8Array, ArrayBuffer, or ReadableStream<Uint8Array>.")}const BD=[208,207,17,224,161,177,26,225],FD=4294967294,DD=4294967295,MD=4096,ND=64;function TD(e){if(e.length<512)throw new eE("CFB: file too small");for(let t=0;t<BD.length;t++)if(e[t]!==BD[t])throw new eE("CFB: bad signature");const t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=1<<t.getUint16(30,!0),r=1<<t.getUint16(32,!0),i=t.getUint32(44,!0),o=t.getUint32(48,!0),a=t.getUint32(56,!0),s=t.getUint32(60,!0),l=t.getUint32(64,!0),c=t.getUint32(68,!0),u=t.getUint32(72,!0),d=t=>{const r=(e=>(e+1)*n)(t);if(r+n>e.length)throw new eE("CFB: sector out of range");return e.subarray(r,r+n)},f=[];for(let e=0;e<109&&f.length<i;e++){const n=t.getUint32(76+4*e,!0);if(n===DD||n===FD)break;f.push(n)}const h=Math.floor(e.length/n)+1,p=Math.min(u,h);let g=c,m=0;for(;g!==FD&&g!==DD&&p>0&&m++<p+1;){const e=d(g),t=new DataView(e.buffer,e.byteOffset,e.byteLength),r=n/4-1;for(let e=0;e<r&&f.length<i;e++){const n=t.getUint32(4*e,!0);n!==DD&&n!==FD&&f.push(n)}g=t.getUint32(n-4,!0)}const y=[];for(const e of f){const t=d(e),r=new DataView(t.buffer,t.byteOffset,t.byteLength);for(let e=0;e<n/4;e++)y.push(r.getUint32(4*e,!0))}const v=(e,t)=>{const r=(e=>{const t=[];let n=e,r=0;for(;n!==FD&&n!==DD&&r++<y.length+1;)t.push(n),n=y[n]??FD;return t})(e),i=new Uint8Array(r.length*n);let o=0;for(const e of r)i.set(d(e),o),o+=n;return t>=0?i.subarray(0,t):i},b=v(o,-1),A=new DataView(b.buffer,b.byteOffset,b.byteLength),w=[];for(let e=0;e+128<=b.length;e+=128){const t=b[e+66];if(0===t)continue;const n=A.getUint16(e+64,!0);let r="";for(let t=0;t+1<n;t+=2){const n=A.getUint16(e+t,!0);if(0===n)break;r+=String.fromCharCode(n)}const i=A.getUint32(e+116,!0),o=A.getUint32(e+120,!0);w.push({name:r,type:t,startSector:i,size:o})}const x=w.find(e=>5===e.type);if(!x)throw new eE("CFB: missing root entry");const I=v(x.startSector,x.size),C=[];if(l>0&&s!==FD){const e=v(s,l*n),t=new DataView(e.buffer,e.byteOffset,e.byteLength);for(let n=0;n<e.length/4;n++)C.push(t.getUint32(4*n,!0))}const S=(e,t)=>{if(t<0||t>I.length)throw new eE("CFB: mini stream size out of range");const n=new Uint8Array(t);let i=e,o=0,a=0;for(;i!==FD&&i!==DD&&o<t&&a++<C.length+1;){const e=i*r,a=Math.min(r,t-o);n.set(I.subarray(e,e+a),o),o+=a,i=C[i]??FD}return n},E=new Map;for(const e of w){if(2!==e.type)continue;const t=a||MD;E.set(e.name,e.size<t?S(e.startSector,e.size):v(e.startSector,e.size))}return E}function QD(e){const t=512,n=[],r=[],i=[],o=new Map;let a=0;for(const t of e)if(t.data.length<MD){o.set(t.name,{mini:!0}),r.push(a);const e=RD(t.data,ND);n.push(e),a+=e.length/ND}else o.set(t.name,{mini:!1}),i.push({name:t.name,data:t.data});const s=function(e){let t=0;for(const n of e)t+=n.length;const n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(n);let l=0;const c=e=>{const n=Math.max(1,Math.ceil(e/t)),r=l;return l+=n,{startSector:r,sectorCount:n}},u=i.map(e=>({name:e.name,data:e.data,region:c(e.data.length)})),d=s.length>0?c(s.length):null,f=new Uint8Array(Math.ceil(Math.max(a,0)/128)*t);{const t=new DataView(f.buffer);for(let e=0;e<f.length/4;e++)t.setUint32(4*e,DD,!0);let n=0;for(const i of e){if(i.data.length>=MD)continue;const e=RD(i.data,ND).length/ND;for(let i=0;i<e;i++){const o=r[n]+i;t.setUint32(4*o,i===e-1?FD:o+1,!0)}n++}}const h=a>0?c(f.length):null,p=1+e.length,g=Math.ceil(p/4)*t,m=c(g),y=l;let v=1;for(;;){const e=y+v,t=Math.ceil(e/128);if(t<=v)break;v=t}const b={startSector:l,sectorCount:v};l+=v;const A=l,w=new Uint32Array(128*v);w.fill(DD);const x=e=>{for(let t=0;t<e.sectorCount;t++)w[e.startSector+t]=t===e.sectorCount-1?FD:e.startSector+t+1};for(const e of u)x(e.region);d&&x(d),h&&x(h),x(m);for(let e=0;e<v;e++)w[b.startSector+e]=4294967293;const I=new Uint8Array(g),C=new DataView(I.buffer),S=(e,t,n,r,i,o,a,s,l)=>{const c=128*e;for(let e=0;e<t.length;e++)C.setUint16(c+2*e,t.charCodeAt(e),!0);C.setUint16(c+64,2*(t.length+1),!0),I[c+66]=n,I[c+67]=r,C.setUint32(c+68,i,!0),C.setUint32(c+72,o,!0),C.setUint32(c+76,a,!0),C.setUint32(c+116,s,!0),C.setUint32(c+120,l,!0)};for(let e=0;e<g/128;e++)C.setUint32(128*e+68,DD,!0),C.setUint32(128*e+72,DD,!0),C.setUint32(128*e+76,DD,!0);S(0,"Root Entry",5,1,DD,DD,e.length>0?1:DD,d?d.startSector:FD,s.length);for(let t=0;t<e.length;t++){const n=e[t],r=o.get(n.name),i=t+1,a=t+1<e.length?i+1:DD;let s;if(r.mini){let n=0;for(let r=0;r<t;r++){const t=e[r];t.data.length<MD&&(n+=RD(t.data,ND).length/ND)}s=n}else{s=u.find(e=>e.name===n.name).region.startSector}S(i,n.name,2,1,DD,a,DD,s,n.data.length)}const E=new Uint8Array((A+1)*t),k=new DataView(E.buffer);for(let e=0;e<BD.length;e++)E[e]=BD[e];k.setUint16(24,62,!0),k.setUint16(26,3,!0),k.setUint16(28,65534,!0),k.setUint16(30,9,!0),k.setUint16(32,6,!0),k.setUint32(44,v,!0),k.setUint32(48,m.startSector,!0),k.setUint32(56,MD,!0),k.setUint32(60,h?h.startSector:FD,!0),k.setUint32(64,h?h.sectorCount:0,!0),k.setUint32(68,FD,!0),k.setUint32(72,0,!0);for(let e=0;e<109;e++)k.setUint32(76+4*e,e<v?b.startSector+e:DD,!0);const B=e=>(e+1)*t,F=(e,t)=>{E.set(t,B(e.startSector))};for(const e of u)F(e.region,e.data);d&&F(d,s),h&&F(h,f),F(m,I);{const e=B(b.startSector),n=new DataView(E.buffer,e,v*t);for(let e=0;e<w.length;e++)n.setUint32(4*e,w[e],!0)}return E}function RD(e,t){if(e.length%t===0)return e;const n=new Uint8Array(Math.ceil(e.length/t)*t);return n.set(e,0),n}let LD,PD;function OD(e,t,n,r){const i=LD;for(let e=0;e<32;e++){const i=r+4*e;t[e]=n[i]<<24|n[i+1]<<16|n[i+2]<<8|n[i+3]}for(let e=16;e<80;e++){let n=t[2*(e-15)],r=t[2*(e-15)+1];const i=(n>>>1|r<<31)^(n>>>8|r<<24)^n>>>7,o=(r>>>1|n<<31)^(r>>>8|n<<24)^(r>>>7|n<<25);n=t[2*(e-2)],r=t[2*(e-2)+1];const a=(n>>>19|r<<13)^(r>>>29|n<<3)^n>>>6;let s=(((r>>>19|n<<13)^(n>>>29|r<<3)^(r>>>6|n<<26))>>>0)+(t[2*(e-7)+1]>>>0)+(o>>>0)+(t[2*(e-16)+1]>>>0);const l=a+t[2*(e-7)]+i+t[2*(e-16)]+(s/4294967296|0)|0;s|=0,t[2*e]=l,t[2*e+1]=s}let o=e[0],a=e[1],s=e[2],l=e[3],c=e[4],u=e[5],d=e[6],f=e[7],h=e[8],p=e[9],g=e[10],m=e[11],y=e[12],v=e[13],b=e[14],A=e[15];for(let e=0;e<80;e++){const n=(h>>>14|p<<18)^(h>>>18|p<<14)^(p>>>9|h<<23),r=h&g^~h&y;let w=(A>>>0)+(((p>>>14|h<<18)^(p>>>18|h<<14)^(h>>>9|p<<23))>>>0)+((p&m^~p&v)>>>0)+(i[2*e+1]>>>0)+(t[2*e+1]>>>0);const x=b+n+r+i[2*e]+t[2*e]+(w/4294967296|0)|0;w|=0;let I=(((a>>>28|o<<4)^(o>>>2|a<<30)^(o>>>7|a<<25))>>>0)+((a&l^a&u^l&u)>>>0);const C=((o>>>28|a<<4)^(a>>>2|o<<30)^(a>>>7|o<<25))+(o&s^o&c^s&c)+(I/4294967296|0)|0;I|=0,b=y,A=v,y=g,v=m,g=h,m=p;let S=(f>>>0)+(w>>>0);h=d+x+(S/4294967296|0)|0,p=0|S,d=c,f=u,c=s,u=l,s=o,l=a,S=(w>>>0)+(I>>>0),o=x+C+(S/4294967296|0)|0,a=0|S}UD(e,0,o,a),UD(e,2,s,l),UD(e,4,c,u),UD(e,6,d,f),UD(e,8,h,p),UD(e,10,g,m),UD(e,12,y,v),UD(e,14,b,A)}function UD(e,t,n,r){const i=(e[t+1]>>>0)+(r>>>0);e[t]=e[t]+n+(i/4294967296|0)|0,e[t+1]=0|i}function $D(e,t,n){for(let r=0;r<16;r++){const i=e[r],o=n+4*r;t[o]=i>>>24,t[o+1]=i>>>16,t[o+2]=i>>>8,t[o+3]=i}}function HD(e,t,n=0){if(64!==e.length)throw new RangeError("sha512Spin expects a 64-byte SHA-512 hash");PD||function(){const e=[];for(let t=2n;e.length<80;t++)e.every(e=>t%e!==0n)&&e.push(t);const t=(e,t)=>{let n=1n<<BigInt(e.toString(2).length)/t+1n;for(;;){const r=((t-1n)*n+e/n**(t-1n))/t;if(r>=n)return n;n=r}},n=(n,r)=>{const i=new Int32Array(2*n);for(let o=0;o<n;o++){const n=18446744073709551615n&t(e[o]<<64n*r,r);i[2*o]=0|Number(n>>32n),i[2*o+1]=0|Number(4294967295n&n)}return i};LD=n(80,3n),PD=n(8,2n)}();const r=new Uint8Array(128);r.set(e,4),r[68]=128,r[127]=544,r[126]=2;const i=new Int32Array(16),o=new Int32Array(160);for(let e=n;e<n+t;e++)r[0]=e,r[1]=e>>>8,r[2]=e>>>16,r[3]=e>>>24,i.set(PD),OD(i,o,r,0),$D(i,r,4);return r.slice(4,68)}const zD=new Uint8Array([254,167,210,118,59,75,158,121]),qD=new Uint8Array([215,170,15,109,48,97,52,78]),jD=new Uint8Array([20,110,11,231,171,172,208,214]),WD=new Uint8Array([95,178,173,1,12,185,225,246]),_D=new Uint8Array([160,103,127,2,178,44,132,51]),VD=4096,YD=new Uint8Array(16);async function GD(e,t,n=1e7){let r;try{r=TD(e)}catch(e){throw new oE("Not a valid encrypted workbook container.",{cause:e})}const i=r.get("EncryptionInfo"),o=r.get("EncryptedPackage");if(!i||!o)throw new oE("Encrypted workbook missing EncryptionInfo/EncryptedPackage.");const a=i[0]|i[1]<<8,s=i[2]|i[3]<<8;if(4!==a||4!==s)throw new oE(`Unsupported encryption (version ${a}.${s}); only ECMA-376 Agile is supported.`);const l=new TextDecoder("utf-8").decode(i.subarray(8)),c=function(e,t){const n=cM(e,"encryptedKey");if(!n)throw new oE("EncryptionInfo missing encryptedKey.");const r=parseInt(uM(n,"spinCount"),10);if(!Number.isFinite(r)||r<0)throw new oE("EncryptionInfo has an invalid spinCount.");if(r>t)throw new oE(`EncryptionInfo spinCount ${r} exceeds the maximum of ${t}. Raise \`maxSpinCount\` to agree to spend that time.`);return{saltValue:vM(uM(n,"saltValue")),hashAlgorithm:fM(uM(n,"hashAlgorithm")),keyBytes:parseInt(uM(n,"keyBits"),10)/8,blockSize:parseInt(uM(n,"blockSize"),10),spinCount:r,encryptedVerifierHashInput:vM(uM(n,"encryptedVerifierHashInput")),encryptedVerifierHashValue:vM(uM(n,"encryptedVerifierHashValue")),encryptedKeyValue:vM(uM(n,"encryptedKeyValue"))}}(l,n),u=function(e){const t=cM(e,"keyData");if(!t)throw new oE("EncryptionInfo missing keyData.");return{saltValue:vM(uM(t,"saltValue")),hashAlgorithm:fM(uM(t,"hashAlgorithm")),keyBytes:parseInt(uM(t,"keyBits"),10)/8,blockSize:parseInt(uM(t,"blockSize"),10)}}(l),d=await async function(e,t){const n=await KD(e,t.saltValue,t.spinCount,t.hashAlgorithm),r=await ZD(n,zD,t.keyBytes,t.hashAlgorithm),i=await ZD(n,qD,t.keyBytes,t.hashAlgorithm),o=await ZD(n,jD,t.keyBytes,t.hashAlgorithm),a=await aM(r,t.saltValue,t.encryptedVerifierHashInput),s=await aM(i,t.saltValue,t.encryptedVerifierHashValue),l=await rM(t.hashAlgorithm,a),c=Math.min(l.length,s.length);if(!function(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r<e.length;r++)n|=e[r]^t[r];return 0===n}(l.subarray(0,c),s.subarray(0,c)))return null;const u=await aM(o,t.saltValue,t.encryptedKeyValue);return u.subarray(0,t.keyBytes)}(t,c);if(!d)throw new oE("Incorrect password.");return await async function(e,t,n,r){const i=cM(e,"dataIntegrity");if(!i)return;if("SHA-512"!==r.hashAlgorithm)return;const o=vM(uM(i,"encryptedHmacKey")),a=vM(uM(i,"encryptedHmacValue"));if(0===o.length||0===a.length)return;const s=await eM(r.saltValue,WD,r.hashAlgorithm,r.blockSize),l=await eM(r.saltValue,_D,r.hashAlgorithm,r.blockSize),c=await aM(n,s,o),u=await aM(n,l,a),d=await lM(c,t),f=Math.min(d.length,u.length);let h=0===d.length?1:0;for(let e=0;e<f;e++)h|=d[e]^u[e];if(0!==h)throw new oE("Encrypted package failed integrity check (HMAC mismatch).")}(l,o,d,u),async function(e,t,n){const r=Number(new DataView(e.buffer,e.byteOffset,8).getBigUint64(0,!0)),i=e.subarray(8),o=new Uint8Array(Math.ceil(i.length/VD)*VD),a=new Uint8Array(4),s=new DataView(a.buffer);let l=0,c=0;for(;l<i.length;){const e=i.subarray(l,Math.min(l+VD,i.length));s.setUint32(0,c,!0);const r=tM(await rM(n.hashAlgorithm,gM([n.saltValue,a])),n.blockSize),u=await aM(t,r,e);o.set(u,l),l+=VD,c++}return o.subarray(0,r)}(o,d,u)}async function JD(e,t,n){const r=n?.spinCount??1e5,i="SHA-512",o=32,a=16,s=hM(16),l=hM(16),c=hM(o),u=await KD(t,l,r,i),d=hM(a),f=await rM(i,d),h=await ZD(u,zD,o,i),p=await ZD(u,qD,o,i),g=await ZD(u,jD,o,i),m=await sM(h,l,d),y=await sM(p,l,pM(f,a)),v=await sM(g,l,c),b=await async function(e,t,n){const r=new Uint8Array(8);new DataView(r.buffer).setBigUint64(0,BigInt(e.length),!0);const i=pM(e,VD),o=new Uint8Array(i.length),a=new Uint8Array(4),s=new DataView(a.buffer);let l=0,c=0;for(;l<i.length;){const e=i.subarray(l,l+VD);s.setUint32(0,c,!0);const r=tM(await rM(n.hashAlgorithm,gM([n.saltValue,a])),n.blockSize),u=await sM(t,r,e);o.set(u,l),l+=VD,c++}return gM([r,o])}(e,c,{saltValue:s,hashAlgorithm:i,keyBytes:o,blockSize:a}),A=hM(64),w=await eM(s,WD,i,a),x=await sM(c,w,pM(A,a)),I=await lM(A,b),C=await eM(s,_D,i,a),S=function(e){const t=yM;return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><encryption xmlns="http://schemas.microsoft.com/office/2006/encryption" xmlns:p="http://schemas.microsoft.com/office/2006/keyEncryptor/password"><keyData saltSize="${e.keyDataSalt.length}" blockSize="${e.blockSize}" keyBits="${e.keyBits}" hashSize="${e.hashSize}" cipherAlgorithm="AES" cipherChaining="ChainingModeCBC" hashAlgorithm="SHA512" saltValue="${t(e.keyDataSalt)}"/><dataIntegrity encryptedHmacKey="${t(e.encryptedHmacKey)}" encryptedHmacValue="${t(e.encryptedHmacValue)}"/><keyEncryptors><keyEncryptor uri="http://schemas.microsoft.com/office/2006/keyEncryptor/password"><p:encryptedKey spinCount="${e.spinCount}" saltSize="${e.pwSalt.length}" blockSize="${e.blockSize}" keyBits="${e.keyBits}" hashSize="${e.hashSize}" cipherAlgorithm="AES" cipherChaining="ChainingModeCBC" hashAlgorithm="SHA512" saltValue="${t(e.pwSalt)}" encryptedVerifierHashInput="${t(e.encryptedVerifierHashInput)}" encryptedVerifierHashValue="${t(e.encryptedVerifierHashValue)}" encryptedKeyValue="${t(e.encryptedKeyValue)}"/></keyEncryptor></keyEncryptors></encryption>`}({keyDataSalt:s,pwSalt:l,spinCount:r,keyBits:256,hashSize:64,blockSize:a,encryptedVerifierHashInput:m,encryptedVerifierHashValue:y,encryptedKeyValue:v,encryptedHmacKey:x,encryptedHmacValue:await sM(c,C,pM(I,a))}),E=new Uint8Array(8),k=new DataView(E.buffer);k.setUint16(0,4,!0),k.setUint16(2,4,!0),k.setUint32(4,64,!0);return QD([{name:"EncryptionInfo",data:gM([E,(new TextEncoder).encode(S)])},{name:"EncryptedPackage",data:b}])}function XD(e){const t=new Uint8Array(2*e.length),n=new DataView(t.buffer);for(let t=0;t<e.length;t++)n.setUint16(2*t,e.charCodeAt(t),!0);return t}async function KD(e,t,n,r){let i=await rM(r,gM([t,XD(e)]));if("SHA-512"===r){for(let e=0;e<n;e+=1e4)e>0&&await new Promise(e=>setTimeout(e,0)),i=HD(i,Math.min(1e4,n-e),e);return i}const o=new Uint8Array(4),a=new DataView(o.buffer);for(let e=0;e<n;e++)a.setUint32(0,e,!0),i=await rM(r,gM([o,i]));return i}async function ZD(e,t,n,r){return function(e,t){if(e.length>=t)return e.subarray(0,t);const n=new Uint8Array(t).fill(54);return n.set(e,0),n}(await rM(r,gM([e,t])),n)}async function eM(e,t,n,r){return tM(await rM(n,gM([e,t])),r)}function tM(e,t){if(e.length>=t)return e.subarray(0,t);const n=new Uint8Array(t).fill(54);return n.set(e,0),n}const nM=e=>e;async function rM(e,t){return new Uint8Array(await crypto.subtle.digest(e,nM(t)))}async function iM(e){return crypto.subtle.importKey("raw",nM(e),{name:"AES-CBC"},!1,["encrypt","decrypt"])}async function oM(e,t,n){if(0===n.length)return new Uint8Array(0);const r=n.subarray(n.length-16),i=new Uint8Array(16);for(let e=0;e<16;e++)i[e]=16^r[e];const o=await async function(e,t){return new Uint8Array(await crypto.subtle.encrypt({name:"AES-CBC",iv:nM(YD)},e,nM(t))).subarray(0,16)}(e,i),a=gM([n,o]);return new Uint8Array(await crypto.subtle.decrypt({name:"AES-CBC",iv:nM(t)},e,nM(a))).subarray(0,n.length)}async function aM(e,t,n){return oM(await iM(e),t,n)}async function sM(e,t,n){return async function(e,t,n){return 0===n.length?new Uint8Array(0):new Uint8Array(await crypto.subtle.encrypt({name:"AES-CBC",iv:nM(t)},e,nM(n))).subarray(0,n.length)}(await iM(e),t,n)}async function lM(e,t){const n=await crypto.subtle.importKey("raw",nM(e),{name:"HMAC",hash:"SHA-512"},!1,["sign"]);return new Uint8Array(await crypto.subtle.sign("HMAC",n,nM(t)))}function cM(e,t){const n=new RegExp(`<(?:\\w+:)?${t}\\b[^>]*?/?>`).exec(e);return n?n[0]:null}function uM(e,t){const n=new RegExp(`\\b${t}="([^"]*)"`).exec(e);return n?n[1]:""}const dM={SHA512:"SHA-512",SHA384:"SHA-384",SHA256:"SHA-256",SHA1:"SHA-1"};function fM(e){return dM[e]??"SHA-512"}function hM(e){const t=new Uint8Array(e);return crypto.getRandomValues(t),t}function pM(e,t){if(e.length%t===0)return e;const n=new Uint8Array(Math.ceil(e.length/t)*t);return n.set(e,0),n}function gM(e){let t=0;for(const n of e)t+=n.length;const n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}const mM="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function yM(e){let t="",n=0;for(;n+2<e.length;n+=3){const r=e[n]<<16|e[n+1]<<8|e[n+2];t+=mM[r>>18&63]+mM[r>>12&63]+mM[r>>6&63]+mM[63&r]}if(n<e.length){if(1===e.length-n){const r=e[n]<<16;t+=mM[r>>18&63]+mM[r>>12&63]+"=="}else{const r=e[n]<<16|e[n+1]<<8;t+=mM[r>>18&63]+mM[r>>12&63]+mM[r>>6&63]+"="}}return t}function vM(e){const t=e.replace(/[^A-Za-z0-9+/]/g,""),n=Math.floor(3*t.length/4),r=new Uint8Array(n);let i=0,o=0,a=0;for(let e=0;e<t.length;e++)o=o<<6|mM.indexOf(t[e]),i+=6,i>=8&&(i-=8,r[a++]=o>>i&255);return r.subarray(0,a)}function bM(e){let t=0;return new ReadableStream({pull(n){if(t>=e.length)return void n.close();const r=Math.min(t+1048576,e.length);n.enqueue(e.subarray(t,r)),t=r}})}const AM=(()=>{const e=new Uint32Array(256);for(let t=0;t<256;t++){let n=t;for(let e=0;e<8;e++)n=1&n?3988292384^n>>>1:n>>>1;e[t]=n}return e})();function wM(e){return t=function(e,t){let n=e;for(let e=0;e<t.length;e++)n=AM[255&(n^t[e])]^n>>>8;return n>>>0}(4294967295,e),(4294967295^t)>>>0;var t}class xM{data;pos=0;bitBuf=0;bitCount=0;constructor(e){this.data=e}readBits(e){for(;this.bitCount<e;){if(this.pos>=this.data.length)throw new tE("Unexpected end of DEFLATE data");this.bitBuf|=this.data[this.pos++]<<this.bitCount,this.bitCount+=8}const t=this.bitBuf&(1<<e)-1;return this.bitBuf>>>=e,this.bitCount-=e,t}alignToByte(){this.bitBuf=0,this.bitCount=0}readByte(){if(this.pos>=this.data.length)throw new tE("Unexpected end of DEFLATE data");return this.data[this.pos++]}readUint16LE(){return this.readByte()|this.readByte()<<8}get offset(){return this.pos}get available(){return this.pos<this.data.length||this.bitCount>0}}function IM(e,t){const n=new Uint16Array(16);for(let r=0;r<t;r++)e[r]&&n[e[r]]++;const r=new Uint16Array(16);for(let e=1;e<15;e++)r[e+1]=r[e]+n[e];const i=r[15]+n[15],o=new Uint16Array(i);for(let n=0;n<t;n++)e[n]&&(o[r[e[n]]++]=n);return{counts:n,symbols:o}}function CM(e,t){let n=0,r=0,i=0;for(let o=1;o<=15;o++){n|=e.readBits(1);const a=t.counts[o];if(n<r+a)return t.symbols[i+(n-r)];i+=a,r=r+a<<1,n<<=1}throw new tE("Invalid Huffman code")}const SM=(()=>{const e=new Uint8Array(288);for(let t=0;t<=143;t++)e[t]=8;for(let t=144;t<=255;t++)e[t]=9;for(let t=256;t<=279;t++)e[t]=7;for(let t=280;t<=287;t++)e[t]=8;return IM(e,288)})(),EM=(()=>{const e=new Uint8Array(32);for(let t=0;t<32;t++)e[t]=5;return IM(e,32)})(),kM=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],BM=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],FM=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],DM=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],MM=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function NM(e,t=2147483648){const n=new xM(e);let r=new Uint8Array(3*e.length||1024),i=0;function o(e){if(i+e>t)throw new tE(`Decompressed size exceeds limit of ${t} bytes (possible zip bomb)`);if(i+e>r.length){let n=2*r.length;for(;i+e>n;)n*=2;n>t&&(n=t);const o=new Uint8Array(n);o.set(r),r=o}}function a(e){o(1),r[i++]=e}function s(e,t){o(t);let n=i-e;for(let e=0;e<t;e++)r[i++]=r[n++]}function l(e,t){for(;;){const r=CM(n,e);if(r<256)a(r);else{if(256===r)return;{const e=r-257,i=kM[e]+n.readBits(BM[e]),o=CM(n,t);s(FM[o]+n.readBits(DM[o]),i)}}}}let c=0;do{c=n.readBits(1);const e=n.readBits(2);if(0===e){n.alignToByte();const e=n.readUint16LE();n.readUint16LE(),o(e);for(let t=0;t<e;t++)r[i++]=n.readByte()}else if(1===e)l(SM,EM);else{if(2!==e)throw new tE(`Invalid DEFLATE block type: ${e}`);{const e=n.readBits(5)+257,t=n.readBits(5)+1,r=n.readBits(4)+4,i=new Uint8Array(19);for(let e=0;e<r;e++)i[MM[e]]=n.readBits(3);const o=IM(i,19),a=e+t,s=new Uint8Array(a);let c=0;for(;c<a;){const e=CM(n,o);if(e<16)s[c++]=e;else if(16===e){const e=n.readBits(2)+3,t=c>0?s[c-1]:0;for(let n=0;n<e;n++)s[c++]=t}else if(17===e){const e=n.readBits(3)+3;for(let t=0;t<e;t++)s[c++]=0}else if(18===e){const e=n.readBits(7)+11;for(let t=0;t<e;t++)s[c++]=0}}const u=s.subarray(0,e),d=s.subarray(e,e+t);l(IM(u,e),IM(d,t))}}}while(0===c);return r.subarray(0,i)}function TM(e){return 0===e.length?new Uint8Array([3,0]):e.length<=64?function(e){const t=[];let n=0;for(;n<e.length;){const r=e.length-n,i=Math.min(r,65535),o=n+i>=e.length,a=new Uint8Array(5+i);a[0]=o?1:0,a[1]=255&i,a[2]=i>>8&255,a[3]=255&~i,a[4]=~i>>8&255,a.set(e.subarray(n,n+i),5),t.push(a),n+=i}const r=t.reduce((e,t)=>e+t.length,0),i=new Uint8Array(r);let o=0;for(const e of t)i.set(e,o),o+=e.length;return i}(e):function(e){let t=new Uint8Array(e.length+512),n=0,r=0,i=0;function o(e){if(n+e>t.length){let r=2*t.length;for(;n+e>r;)r*=2;const i=new Uint8Array(r);i.set(t),t=i}}function a(e,a){for(r|=e<<i,i+=a;i>=8;)o(1),t[n++]=255&r,r>>>=8,i-=8}function s(){i>0&&(o(1),t[n++]=255&r,r=0,i=0)}function l(e){e<=143?a(QM(48+e,8),8):e<=255?a(QM(e-144+400,9),9):e<=279?a(QM(e-256,7),7):a(QM(e-280+192,8),8)}function c(e){a(QM(e,5),5)}a(1,1),a(1,2);const u=32768,d=258,f=3,h=32768,p=h-1,g=new Int32Array(h).fill(-1),m=new Int32Array(u);function y(t){return t+2>=e.length?0:(e[t]<<10^e[t+1]<<5^e[t+2])&p}let v=0;for(;v<e.length;){if(v+f>e.length){l(e[v]),v++;continue}const t=y(v);let n=f-1,r=0,i=g[t],o=0;const s=128,h=Math.max(0,v-u);for(;i>=h&&o<s;){const t=v-i;if(t>0&&t<=u){let o=0;const a=Math.min(d,e.length-v);for(;o<a&&e[i+o]===e[v+o];)o++;if(o>n&&(n=o,r=t,o===d))break}i=m[i&u-1],o++}if(m[v&u-1]=g[t],g[t]=v,n>=f){const t=RM(n);l(t+257),a(n-kM[t],BM[t]);const i=LM(r);c(i),a(r-FM[i],DM[i]);for(let t=1;t<n;t++){const n=v+t;if(n+f<=e.length){const e=y(n);m[n&u-1]=g[e],g[e]=n}}v+=n}else l(e[v]),v++}return l(256),s(),t.subarray(0,n)}(e)}function QM(e,t){let n=0;for(let r=0;r<t;r++)n=n<<1|1&e,e>>=1;return n}function RM(e){for(let t=kM.length-1;t>=0;t--)if(e>=kM[t])return t;return 0}function LM(e){for(let t=FM.length-1;t>=0;t--)if(e>=FM[t])return t;return 0}let PM,OM;function UM(){if(void 0===OM)try{new DecompressionStream("deflate-raw"),OM="undefined"!=typeof ReadableStream}catch{OM=!1}return OM}const $M=67324752,HM=4294967295;class zM{data;view;centralDir=[];entryMap=new Map;maxDecompressedBytes;constructor(e,t=2147483648){if(this.data=e,this.maxDecompressedBytes=t,e.length<22)throw new tE("Data too small to be a valid ZIP archive");this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.readEndOfCentralDir()}entries(){return this.centralDir.map(e=>e.fileName)}has(e){return this.entryMap.has(e)}declaredSize(e){const t=this.entryMap.get(e);if(!t?.uncompressedSize)return;const n=0===t.compressionMethod?t.compressedSize:1032*t.compressedSize;return t.compressedSize>0&&t.uncompressedSize>n?void 0:t.uncompressedSize}async extract(e){const t=this.entryMap.get(e);if(!t)throw new tE(`Entry not found: ${e}`);return this.extractEntry(t)}extractStream(e){const t=this.entryMap.get(e);if(!t)throw new tE(`Entry not found: ${e}`);return this.extractEntryStream(t)}async extractAll(){const e=new Map;for(const t of this.centralDir){if(t.fileName.endsWith("/"))continue;const n=await this.extractEntry(t);e.set(t.fileName,n)}return e}readEndOfCentralDir(){const e=Math.max(0,this.data.length-65557);let t=-1;for(let n=this.data.length-22;n>=e;n--)if(101010256===this.view.getUint32(n,!0)){t=n;break}if(-1===t)throw new tE("End of Central Directory not found — not a valid ZIP file");let n=this.view.getUint32(t+12,!0),r=this.view.getUint32(t+16,!0),i=this.view.getUint16(t+10,!0);if(65535===i||n===HM||r===HM){const e=this.readZip64EndOfCentralDir(t);i=e.entryCount,n=e.centralDirSize,r=e.centralDirOffset}this.readCentralDirectory(r,n,i)}readZip64EndOfCentralDir(e){const t=e-20;if(t<0||117853008!==this.view.getUint32(t,!0))throw new tE("ZIP64 End of Central Directory locator not found");const n=this.readUint64(t+8,"ZIP64 EOCD offset");if(n+56>this.data.length)throw new tE("ZIP64 End of Central Directory record extends beyond file");if(101075792!==this.view.getUint32(n,!0))throw new tE("Invalid ZIP64 End of Central Directory signature");return{entryCount:this.readUint64(n+32,"ZIP64 entry count"),centralDirSize:this.readUint64(n+40,"ZIP64 central directory size"),centralDirOffset:this.readUint64(n+48,"ZIP64 central directory offset")}}readUint64(e,t){if(e+8>this.data.length)throw new tE(`${t} extends beyond file`);const n=this.view.getBigUint64(e,!0);if(n>BigInt(Number.MAX_SAFE_INTEGER))throw new tE(`${t} (${n}) exceeds the addressable range`);return Number(n)}readCentralDirectory(e,t,n){let r=e;for(let e=0;e<n;e++){if(r+46>this.data.length)throw new tE("Central Directory entry extends beyond file");const e=this.view.getUint32(r,!0);if(33639248!==e)throw new tE(`Invalid Central Directory signature at offset ${r}: 0x${e.toString(16)}`);const t=this.view.getUint16(r+8,!0),n=this.view.getUint16(r+10,!0),i=this.view.getUint32(r+16,!0);let o=this.view.getUint32(r+20,!0),a=this.view.getUint32(r+24,!0);const s=this.view.getUint16(r+28,!0),l=this.view.getUint16(r+30,!0),c=this.view.getUint16(r+32,!0);let u=this.view.getUint32(r+42,!0);const d=this.data.subarray(r+46,r+46+s),f=(new TextDecoder).decode(d);if(o===HM||a===HM||u===HM){const e=this.readZip64Extra(r+46+s,l,a===HM,o===HM,u===HM,f);void 0!==e.uncompressedSize&&(a=e.uncompressedSize),void 0!==e.compressedSize&&(o=e.compressedSize),void 0!==e.localHeaderOffset&&(u=e.localHeaderOffset)}const h={fileName:f,compressionMethod:n,compressedSize:o,uncompressedSize:a,crc32:i,localHeaderOffset:u,hasDataDescriptor:!!(8&t)};this.centralDir.push(h),this.entryMap.set(f,h),r+=46+s+l+c}}readZip64Extra(e,t,n,r,i,o){const a=Math.min(e+t,this.data.length);let s=e;for(;s+4<=a;){const e=this.view.getUint16(s,!0),t=this.view.getUint16(s+2,!0),a=s+4;if(1!==e){s=a+t;continue}const l=a+t;let c=a;const u={},d=e=>{if(c+8>l)throw new tE(`Truncated ZIP64 extra field for entry: ${o}`);const t=this.readUint64(c,e);return c+=8,t};return n&&(u.uncompressedSize=d("ZIP64 uncompressed size")),r&&(u.compressedSize=d("ZIP64 compressed size")),i&&(u.localHeaderOffset=d("ZIP64 local header offset")),u}throw new tE(`Missing ZIP64 extra field for entry: ${o}`)}async extractEntry(e){const t=e.localHeaderOffset;if(t+30>this.data.length)throw new tE("Local file header extends beyond file");if(this.view.getUint32(t,!0)!==$M)throw new tE(`Invalid local file header signature at offset ${t}`);const n=t+30+this.view.getUint16(t+26,!0)+this.view.getUint16(t+28,!0);let{compressedSize:r,uncompressedSize:i,crc32:o}=e;if(e.hasDataDescriptor&&0===r){const e=this.view.getUint32(t+18,!0);e>0&&e!==HM&&(r=e);const a=this.view.getUint32(t+22,!0);if(a>0&&a!==HM&&(i=a),0===r){const e=this.findDataDescriptor(n);e&&(o=e.crc,r=e.compressedSize,i=e.uncompressedSize)}}if(n+r>this.data.length)throw new tE(`Compressed data extends beyond file for entry: ${e.fileName}`);const a=this.data.subarray(n,n+r);let s;if(0===e.compressionMethod)s=a;else{if(8!==e.compressionMethod)throw new tE(`Unsupported compression method ${e.compressionMethod} for entry: ${e.fileName}`);if(0===r&&0===i)s=new Uint8Array(0);else{const e=i>0?Math.min(i,this.maxDecompressedBytes):this.maxDecompressedBytes;s=await async function(e,t=2147483648){if(UM())try{const n=new DecompressionStream("deflate-raw"),r=n.writable.getWriter(),i=n.readable.getReader();r.write(e).catch(()=>{}),r.close().catch(()=>{});const o=[];let a=0;for(;;){const{done:e,value:n}=await i.read();if(e)break;if(a+=n.length,a>t){try{await i.cancel()}catch{}throw new tE(`Decompressed size exceeds limit of ${t} bytes (possible zip bomb)`)}o.push(n)}const s=new Uint8Array(a);let l=0;for(const e of o)s.set(e,l),l+=e.length;return s}catch(e){if(e instanceof tE)throw e}return NM(e,t)}(a,e)}}if(0!==o&&s.length>0){const t=wM(s);if(t!==o)throw new tE(`CRC-32 mismatch for ${e.fileName}: expected 0x${o.toString(16)}, got 0x${t.toString(16)}`)}return s}extractEntryStream(e){const t=e.localHeaderOffset;if(t+30>this.data.length)throw new tE("Local file header extends beyond file");if(this.view.getUint32(t,!0)!==$M)throw new tE(`Invalid local file header signature at offset ${t}`);const n=t+30+this.view.getUint16(t+26,!0)+this.view.getUint16(t+28,!0);let{compressedSize:r}=e;if(e.hasDataDescriptor&&0===r){const e=this.view.getUint32(t+18,!0);if(e>0&&e!==HM&&(r=e),0===r){const e=this.findDataDescriptor(n);e&&(r=e.compressedSize)}}if(n+r>this.data.length)throw new tE(`Compressed data extends beyond file for entry: ${e.fileName}`);const i=this.data.subarray(n,n+r);if(0===e.compressionMethod)return bM(i);if(8===e.compressionMethod){if(0===r&&0===e.uncompressedSize)return new ReadableStream({start(e){e.close()}});const t=e.uncompressedSize>0?Math.min(e.uncompressedSize,this.maxDecompressedBytes):this.maxDecompressedBytes;if(UM()){return new ReadableStream({start(e){e.enqueue(i),e.close()}}).pipeThrough(new DecompressionStream("deflate-raw")).pipeThrough(function(e){let t=0;return new TransformStream({transform(n,r){if(t+=n.length,t>e)throw new tE(`Decompressed size exceeds limit of ${e} bytes (possible zip bomb)`);r.enqueue(n)}})}(t))}return bM(NM(i,t))}throw new tE(`Unsupported compression method ${e.compressionMethod} for entry: ${e.fileName}`)}findDataDescriptor(e){for(let t=e;t<this.data.length-16;t++)if(134695760===this.view.getUint32(t,!0))return{crc:this.view.getUint32(t+4,!0),compressedSize:this.view.getUint32(t+8,!0),uncompressedSize:this.view.getUint32(t+12,!0)};return null}}function qM(e){const t=[];let n=null;for(const r of e.children){if("string"==typeof r)continue;const e=r.local||r.tag;"t"===e?n=jM(r):"r"===e&&t.push(r)}if(0===t.length)return{text:fE(n??"")};const r=[],i=[];for(const e of t){let t,n="";for(const r of e.children){if("string"==typeof r)continue;const e=r.local||r.tag;"t"===e?n=jM(r):"rPr"===e&&(t=WM(r))}const o=fE(n);i.push(o),r.push(t?{text:o,font:t}:{text:o})}return{text:i.join(""),richText:r}}function jM(e){return e.text??""}function WM(e){const t={};for(const n of e.children){if("string"==typeof n)continue;switch(n.local||n.tag){case"b":t.bold="0"!==n.attrs.val&&"false"!==n.attrs.val;break;case"i":t.italic="0"!==n.attrs.val&&"false"!==n.attrs.val;break;case"u":{const e=n.attrs.val;t.underline="double"===e?"double":"singleAccounting"===e?"singleAccounting":"doubleAccounting"!==e||"doubleAccounting";break}case"strike":t.strikethrough="0"!==n.attrs.val&&"false"!==n.attrs.val;break;case"sz":n.attrs.val&&(t.size=Number(n.attrs.val));break;case"rFont":n.attrs.val&&(t.name=n.attrs.val);break;case"color":if(t.color={},n.attrs.rgb){const e=n.attrs.rgb;t.color.rgb=8===e.length?e.slice(2):e}n.attrs.theme&&(t.color.theme=Number(n.attrs.theme)),n.attrs.tint&&(t.color.tint=Number(n.attrs.tint)),n.attrs.indexed&&(t.color.indexed=Number(n.attrs.indexed));break;case"vertAlign":"superscript"!==n.attrs.val&&"subscript"!==n.attrs.val||(t.vertAlign=n.attrs.val);break;case"family":n.attrs.val&&(t.family=Number(n.attrs.val));break;case"charset":n.attrs.val&&(t.charset=Number(n.attrs.val));break;case"scheme":"major"!==n.attrs.val&&"minor"!==n.attrs.val&&"none"!==n.attrs.val||(t.scheme=n.attrs.val)}}return t}const _M=Date.UTC(1899,11,31),VM=Date.UTC(1904,0,1),YM=864e5;function GM(e,t){const n=e.getTime();if(t)return(n-VM)/YM;let r=(n-_M)/YM;return r>=60&&(r+=1),Math.round(1e10*r)/1e10}const JM=new Set([14,15,16,17,18,19,20,21,22,27,28,29,30,31,32,33,34,35,36,45,46,47,50,51,52,53,54,55,56,57,58]);function XM(e){if(!e)return!1;const t=Number(e);if(!Number.isNaN(t)&&Number.isInteger(t)&&JM.has(t))return!0;let n=e.replace(/\[[$\-\w]*\]/g,"");if(n=n.replace(/\\./g,""),n=n.replace(/"[^"]*"/g,""),n=n.replace(/[*_]./g,""),/^(General|@)$/i.test(n.trim()))return!1;const r=n.toLowerCase();if(/[hs]/.test(r)){if(/\bh{1,2}\b|(?:^|[^a-z])h{1,2}(?:[^a-z]|$)/i.test(r))return!0;if(/\bs{1,2}\b|(?:^|[^a-z])s{1,2}(?:[^a-z]|$)/i.test(r))return!0}return!!/am\/pm|a\/p/i.test(r)||(!!/\[h+\]|\[m+\]|\[s+\]/i.test(e)||(!!/y{1,4}/.test(r)||(!!/d{1,4}/.test(r)||!!/m{3,}/.test(r))))}const KM=["January","February","March","April","May","June","July","August","September","October","November","December"],ZM=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],eN=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],tN=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const nN=["000000","FFFFFF","FF0000","00FF00","0000FF","FFFF00","FF00FF","00FFFF","000000","FFFFFF","FF0000","00FF00","0000FF","FFFF00","FF00FF","00FFFF","800000","008000","000080","808000","800080","008080","C0C0C0","808080","9999FF","993366","FFFFCC","CCFFFF","660066","FF8080","0066CC","CCCCFF","000080","FF00FF","FFFF00","00FFFF","800080","800000","008080","0000FF","00CCFF","CCFFFF","CCFFCC","FFFF99","99CCFF","FF99CC","CC99FF","FFCC99","3366FF","33CCCC","99CC00","FFCC00","FF9900","FF6600","666699","969696","003366","339966","003300","333300","993300","993366","333399","333333"],rN="http://schemas.microsoft.com/office/spreadsheetml/2022/featurepropertybag",iN="{C7286773-470A-42A8-94C5-96B5CB345126}",oN="xl/featurePropertyBag/featurePropertyBag.xml";const aN={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",5:"$#,##0_);\\($#,##0\\)",6:"$#,##0_);[Red]\\($#,##0\\)",7:"$#,##0.00_);\\($#,##0.00\\)",8:"$#,##0.00_);[Red]\\($#,##0.00\\)",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yyyy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yyyy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@"};function sN(e){const t=wE(e),n=new Map,r=[],i=[],o=[],a=[],s=[];for(const e of t.children){if("string"==typeof e)continue;switch(e.local||e.tag){case"numFmts":cN(e,n);break;case"fonts":uN(e,r);break;case"fills":hN(e,i);break;case"borders":yN(e,o);break;case"cellXfs":AN(e,a);break;case"dxfs":xN(e,s)}}const l=function(e){for(const t of e.children)if("string"!=typeof t&&"colors"===(t.local||t.tag))for(const e of t.children){if("string"==typeof e)continue;if("indexedColors"!==(e.local||e.tag))continue;const t=[];for(const n of e.children){if("string"==typeof n)continue;if("rgbColor"!==(n.local||n.tag))continue;const e=n.attrs.rgb;e&&t.push(8===e.length?e.slice(2):e)}if(t.length>0)return t}return nN}(t);for(const e of[r,i,o,s])lN(e,l);return{numFmts:n,fonts:r,fills:i,borders:o,cellXfs:a,dxfs:s}}function lN(e,t){if(null===e||"object"!=typeof e)return;if(Array.isArray(e)){for(const n of e)lN(n,t);return}const n=e;if("number"==typeof n.indexed&&"string"!=typeof n.rgb){const e=t[n.indexed];e&&(n.rgb=e)}for(const e of Object.values(n))lN(e,t)}function cN(e,t){for(const n of e.children){if("string"==typeof n)continue;if("numFmt"===(n.local||n.tag)){const e=Number(n.attrs.numFmtId),r=n.attrs.formatCode??"";Number.isNaN(e)||t.set(e,r)}}}function uN(e,t){for(const n of e.children){if("string"==typeof n)continue;"font"===(n.local||n.tag)&&t.push(dN(n))}}function dN(e){const t={};for(const n of e.children){if("string"==typeof n)continue;switch(n.local||n.tag){case"b":t.bold="0"!==n.attrs.val&&"false"!==n.attrs.val;break;case"i":t.italic="0"!==n.attrs.val&&"false"!==n.attrs.val;break;case"u":{const e=n.attrs.val;t.underline="double"===e?"double":"singleAccounting"===e?"singleAccounting":"doubleAccounting"!==e||"doubleAccounting";break}case"strike":t.strikethrough="0"!==n.attrs.val&&"false"!==n.attrs.val;break;case"sz":n.attrs.val&&(t.size=Number(n.attrs.val));break;case"name":n.attrs.val&&(t.name=n.attrs.val);break;case"color":t.color=fN(n);break;case"vertAlign":"superscript"!==n.attrs.val&&"subscript"!==n.attrs.val||(t.vertAlign=n.attrs.val);break;case"family":n.attrs.val&&(t.family=Number(n.attrs.val));break;case"charset":n.attrs.val&&(t.charset=Number(n.attrs.val));break;case"scheme":"major"!==n.attrs.val&&"minor"!==n.attrs.val&&"none"!==n.attrs.val||(t.scheme=n.attrs.val)}}return t}function fN(e){const t={};if(e.attrs.rgb){const n=e.attrs.rgb;t.rgb=8===n.length?n.slice(2):n}return e.attrs.theme&&(t.theme=Number(e.attrs.theme)),e.attrs.tint&&(t.tint=Number(e.attrs.tint)),e.attrs.indexed&&(t.indexed=Number(e.attrs.indexed)),t}function hN(e,t){for(const n of e.children){if("string"==typeof n)continue;"fill"===(n.local||n.tag)&&t.push(pN(n))}}function pN(e){for(const t of e.children){if("string"==typeof t)continue;const e=t.local||t.tag;if("patternFill"===e)return gN(t);if("gradientFill"===e)return mN(t)}return{type:"pattern",pattern:"none"}}function gN(e){const t={type:"pattern",pattern:e.attrs.patternType??"none"};for(const n of e.children){if("string"==typeof n)continue;const e=n.local||n.tag;"fgColor"===e?t.fgColor=fN(n):"bgColor"===e&&(t.bgColor=fN(n))}return t}function mN(e){const t=e.attrs.degree?Number(e.attrs.degree):void 0,n=[];for(const t of e.children){if("string"==typeof t)continue;if("stop"===(t.local||t.tag)){const e=Number(t.attrs.position??"0");for(const r of t.children){if("string"==typeof r)continue;"color"===(r.local||r.tag)&&n.push({position:e,color:fN(r)})}}}return{type:"gradient",degree:t,stops:n}}function yN(e,t){for(const n of e.children){if("string"==typeof n)continue;"border"===(n.local||n.tag)&&t.push(vN(n))}}function vN(e){const t={},n=e.attrs.diagonalUp,r=e.attrs.diagonalDown;"1"!==n&&"true"!==n||(t.diagonalUp=!0),"1"!==r&&"true"!==r||(t.diagonalDown=!0);for(const n of e.children){if("string"==typeof n)continue;const e=n.local||n.tag,r=bN(n);if(r)switch(e){case"left":t.left=r;break;case"right":t.right=r;break;case"top":t.top=r;break;case"bottom":t.bottom=r;break;case"diagonal":t.diagonal=r}}return t}function bN(e){const t=e.attrs.style;if(!t)return;const n={style:t};for(const t of e.children){if("string"==typeof t)continue;"color"===(t.local||t.tag)&&(n.color=fN(t))}return n}function AN(e,t){for(const n of e.children){if("string"==typeof n)continue;"xf"===(n.local||n.tag)&&t.push(wN(n))}}function wN(e){const t={numFmtId:Number(e.attrs.numFmtId??"0"),fontId:Number(e.attrs.fontId??"0"),fillId:Number(e.attrs.fillId??"0"),borderId:Number(e.attrs.borderId??"0")};"1"!==e.attrs.applyNumberFormat&&"true"!==e.attrs.applyNumberFormat||(t.applyNumberFormat=!0),"1"!==e.attrs.applyFont&&"true"!==e.attrs.applyFont||(t.applyFont=!0),"1"!==e.attrs.applyFill&&"true"!==e.attrs.applyFill||(t.applyFill=!0),"1"!==e.attrs.applyBorder&&"true"!==e.attrs.applyBorder||(t.applyBorder=!0),"1"!==e.attrs.applyAlignment&&"true"!==e.attrs.applyAlignment||(t.applyAlignment=!0),"1"!==e.attrs.applyProtection&&"true"!==e.attrs.applyProtection||(t.applyProtection=!0);for(const n of e.children){if("string"==typeof n)continue;const e=n.local||n.tag;"alignment"===e?t.alignment=EN(n):"protection"===e?t.protection=SN(n):"extLst"===e&&CN(n)&&(t.hasCheckboxFeature=!0)}return t}function xN(e,t){for(const n of e.children){if("string"==typeof n)continue;"dxf"===(n.local||n.tag)&&t.push(IN(n))}}function IN(e){const t={};for(const n of e.children){if("string"==typeof n)continue;switch(n.local||n.tag){case"font":t.font=dN(n);break;case"numFmt":{const e=n.attrs.formatCode;if(e)t.numFmt=e;else{const e=Number(n.attrs.numFmtId),r=Number.isNaN(e)?void 0:aN[e];r&&(t.numFmt=r)}break}case"fill":t.fill=pN(n);break;case"border":t.border=vN(n);break;case"alignment":t.alignment=EN(n)}}return t}function CN(e){for(const t of e.children){if("string"==typeof t)continue;if("ext"===(t.local||t.tag)&&t.attrs.uri===iN)return!0}return!1}function SN(e){const t={},n=e.attrs.locked;void 0!==n&&(t.locked="1"===n||"true"===n);const r=e.attrs.hidden;return void 0!==r&&(t.hidden="1"===r||"true"===r),t}function EN(e){const t={};if(e.attrs.horizontal&&(t.horizontal=e.attrs.horizontal),e.attrs.vertical&&(t.vertical=e.attrs.vertical),"1"!==e.attrs.wrapText&&"true"!==e.attrs.wrapText||(t.wrapText=!0),"1"!==e.attrs.shrinkToFit&&"true"!==e.attrs.shrinkToFit||(t.shrinkToFit=!0),e.attrs.textRotation&&(t.textRotation=Number(e.attrs.textRotation)),e.attrs.indent&&(t.indent=Number(e.attrs.indent)),e.attrs.readingOrder){const n=Number(e.attrs.readingOrder);t.readingOrder=1===n?"ltr":2===n?"rtl":"context"}return t}function kN(e,t){const n=e.cellXfs[t];if(!n)return{};const r={};if(0!==n.numFmtId){const t=e.numFmts.get(n.numFmtId)??aN[n.numFmtId];t&&(r.numFmt=t)}return n.fontId<e.fonts.length&&0!==n.fontId&&(r.font=e.fonts[n.fontId]),n.fillId<e.fills.length&&n.fillId>1&&(r.fill=e.fills[n.fillId]),n.borderId<e.borders.length&&0!==n.borderId&&(r.border=e.borders[n.borderId]),n.alignment&&(r.alignment=n.alignment),n.protection&&(r.protection=n.protection),r}function BN(e,t){const n=e.cellXfs[t];if(!n)return!1;const r=n.numFmtId,i=e.numFmts.get(r);if(i)return XM(i);if(function(e){return JM.has(e)}(r))return!0;const o=aN[r];return!!o&&XM(o)}function FN(e){return void 0===e?void 0:{...e}}function DN(e){const t={...e};return e.color&&(t.color=FN(e.color)),t}function MN(e){if("gradient"===e.type)return{...e,stops:e.stops.map(e=>({...e,color:{...e.color}}))};const t={...e};return e.fgColor&&(t.fgColor=FN(e.fgColor)),e.bgColor&&(t.bgColor=FN(e.bgColor)),t}function NN(e){if(void 0===e)return;const t={...e};return e.color&&(t.color=FN(e.color)),t}function TN(e){const t={...e};for(const n of["top","right","bottom","left","diagonal"])e[n]&&(t[n]=NN(e[n]));return t}function QN(e){const t={...e};return e.font&&(t.font=DN(e.font)),e.fill&&(t.fill=MN(e.fill)),e.border&&(t.border=TN(e.border)),e.alignment&&(t.alignment={...e.alignment}),e.protection&&(t.protection={...e.protection}),t}function RN(e){return"string"==typeof e?function(e){const t=e.split(":"),n=BT(t[0]),r=t.length>1?BT(t[1]):n;return{startRow:n.row,startCol:n.col,endRow:r.row,endCol:r.col}}(e):e}function LN(e){return"object"==typeof e&&null!==e&&"string"==typeof e.hyperlink&&"string"==typeof e.text}function PN(e){return LN(e)?e.text:e}function ON(e){return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=63744&&e<=64255||e>=44032&&e<=55215||e>=12448&&e<=12543||e>=12352&&e<=12447||e>=12288&&e<=12351||e>=65280&&e<=65376||e>=65504&&e<=65510}function UN(e){const t=e.indexOf(".");if(-1===t)return 0;let n=0;for(let r=t+1;r<e.length&&("0"===e[r]||"#"===e[r]);r++)n++;return n}function $N(e,t){if(!t.includes(","))return e;const n=e.split(".");let r=n[0];const i=r.startsWith("-");i&&(r=r.slice(1));let o="";for(let e=0;e<r.length;e++)e>0&&(r.length-e)%3==0&&(o+=","),o+=r[e];return i&&(o="-"+o),void 0!==n[1]&&(o+="."+n[1]),o}function HN(e){let t=0;for(const n of e){const e=n.codePointAt(0);void 0!==e&&ON(e)?t+=2:t+=1}return t}function zN(e,t){if(null==e)return 0;if("boolean"==typeof e)return e?5:6;if("string"==typeof e){if(0===e.length)return 0;if(e.includes("\n")){const t=e.split("\n");let n=0;for(const e of t){const t=HN(e);t>n&&(n=t)}return n}return HN(e)}if("number"==typeof e){if(t){const n=function(e,t){const n=t.trim().split(";");let r;if(e>0?r=n[0]:e<0&&n.length>1?(r=n[1],e=Math.abs(e)):r=0===e&&n.length>2?n[2]:n[0],r=r.replace(/\[[^\]]*\]/g,""),r=r.replace(/\\./g,e=>e[1]),r=r.replace(/"([^"]*)"/g,"$1"),r.includes("%")){const t=UN(r.replace(/%/g,""));return $N((100*e).toFixed(t),r)+"%"}const i=UN(r);return $N(e.toFixed(i),r)}(e,t),r=function(e){let t=0;const n=e.split(";")[0].replace(/\[[^\]]*\]/g,"");for(let e=0;e<n.length;e++){const r=n[e];if('"'===r)for(e++;e<n.length&&'"'!==n[e];)t++,e++;else"\\"===r?(t++,e++):"$"!==r&&"€"!==r&&"£"!==r&&"¥"!==r||t++}return t}(t);return HN(n)+r}return HN(String(e))}if(e instanceof Date){if(t){const n=function(e,t,n){const r=e.getUTCFullYear(),i=e.getUTCMonth(),o=e.getUTCDate(),a=e.getUTCDay();let s=e.getUTCHours();const l=e.getUTCMinutes(),c=e.getUTCSeconds(),u=e.getUTCMilliseconds();let d="",f=s;/am\/pm|a\/p/i.test(t)&&(d=s>=12?"PM":"AM",f=s%12,0===f&&(f=12));const h=function(e){const t=[];let n=0;for(;n<e.length;){if("["===e[n]&&"$"===e[n+1]){const t=e.indexOf("]",n);if(-1!==t){n=t+1;continue}}if("["===e[n]){const r=e.indexOf("]",n);if(-1!==r){const i=e.slice(n+1,r);if(/^h+$/i.test(i)||/^m+$/i.test(i)||/^s+$/i.test(i)){t.push(e.slice(n,r+1)),n=r+1;continue}n=r+1;continue}}if('"'===e[n]){let r="";for(n++;n<e.length&&'"'!==e[n];)r+=e[n],n++;n++,t.push(r);continue}if("\\"===e[n]){n++,n<e.length&&(t.push(e[n]),n++);continue}if(/^am\/pm/i.test(e.slice(n))){t.push(e.slice(n,n+5)),n+=5;continue}if(/^a\/p/i.test(e.slice(n))){t.push(e.slice(n,n+3)),n+=3;continue}if("."===e[n]&&n+1<e.length&&"0"===e[n+1]){let r=".",i=n+1;for(;i<e.length&&"0"===e[i];)r+="0",i++;t.push(r),n=i;continue}const r=e[n].toLowerCase();if("ymdhsn".includes(r)){let i="";const o=r;for(;n<e.length&&e[n].toLowerCase()===o;)i+=e[n],n++;t.push(i);continue}t.push(e[n]),n++}return t}(t),p=void 0!==n&&n>0?n:0,g=Math.floor(24*p),m=Math.floor(24*p*60),y=Math.floor(24*p*60*60),v=Array.from({length:h.length},()=>!1);for(let e=0;e<h.length;e++){const t=h[e].toLowerCase();if("m"!==t&&"mm"!==t)continue;let n=!1;for(let t=e-1;t>=0;t--){const e=h[t].toLowerCase();if("h"===e||"hh"===e||/^\[h+\]$/.test(e)){n=!0;break}if(/^[ymdhs]+$/.test(e)||/^\[[ms]+\]$/.test(e)||"am/pm"===e||"a/p"===e)break}let r=!1;for(let t=e+1;t<h.length;t++){const e=h[t].toLowerCase();if("s"===e||"ss"===e){r=!0;break}if(/^[ymdh]+$/.test(e)||"am/pm"===e||"a/p"===e)break}v[e]=n||r}let b="";for(let e=0;e<h.length;e++){const t=h[e],n=t.toLowerCase();if(t.startsWith("[")&&t.endsWith("]")){const e=n.slice(1,-1);/^h+$/.test(e)?b+=String(g).padStart(e.length,"0"):/^m+$/.test(e)?b+=String(m).padStart(e.length,"0"):/^s+$/.test(e)&&(b+=String(y).padStart(e.length,"0"));continue}switch(n){case"yyyy":b+=String(r);break;case"yy":b+=String(r%100).padStart(2,"0");break;case"mmmm":b+=KM[i];break;case"mmm":b+=ZM[i];break;case"mm":v[e]?b+=String(l).padStart(2,"0"):b+=String(i+1).padStart(2,"0");break;case"m":v[e]?b+=String(l):b+=String(i+1);break;case"dddd":b+=eN[a];break;case"ddd":b+=tN[a];break;case"dd":b+=String(o).padStart(2,"0");break;case"d":b+=String(o);break;case"hh":b+=String(f).padStart(2,"0");break;case"h":b+=String(f);break;case"ss":b+=String(c).padStart(2,"0");break;case"s":b+=String(c);break;case".0":case".00":case".000":{const e=n.length-1;b+="."+String(u).padStart(3,"0").slice(0,e)}break;case"am/pm":b+=d;break;case"a/p":b+=d.charAt(0);break;default:b+=t}}return b}(e,t);return HN(n)}return HN(`${e.getUTCFullYear()}-${String(e.getUTCMonth()+1).padStart(2,"0")}-${String(e.getUTCDate()).padStart(2,"0")}`)}return 0}function qN(e,t){const n=t?.minWidth??8,r=t?.maxWidth??255,i=t?.padding??2,o=!0===t?.font?.bold;let a=0;for(const n of e){const e=zN(n,t?.numFmt);e>a&&(a=e)}let s=1.1*a;return o&&(s*=1.05),s+=i,s=Math.ceil(2*s)/2,s<n&&(s=n),s>r&&(s=r),s}const jN="XLDAPR",WN="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}",_N="xl/metadata.xml";function VN(e){for(const t of IE(e))if("extLst"===t.local)for(const e of IE(t))if("ext"===e.local&&(e.attrs.uri??"").toLowerCase()===WN)for(const t of IE(e)){if("dynamicArrayProperties"!==t.local)continue;const e=t.attrs.fDynamic;return"0"!==e&&"false"!==e}return!0}function YN(e){let t=0;for(let n=e.length-1;n>=0;n--){t=t>>14&1|t<<1&32767,t^=e.charCodeAt(n)}return t=t>>14&1|t<<1&32767,t^=e.length,t^=52811,t.toString(16).toUpperCase().padStart(4,"0")}const GN=/[[\]:*?/\\]/;function JN(e,t){const n=`sheet ${t+1}`;if("string"!=typeof e||0===e.length)throw new rE(`Sheet name is empty (${n}); Excel requires a name`);if(e.length>31)throw new rE(`Sheet name "${e}" is ${e.length} characters (${n}); Excel allows at most 31`);const r=e.match(GN);if(r)throw new rE(`Sheet name "${e}" contains ${JSON.stringify(r[0])} (${n}); Excel forbids [ ] : * ? / \\ in sheet names`);if(e.startsWith("'")||e.endsWith("'"))throw new rE(`Sheet name "${e}" starts or ends with an apostrophe (${n}); Excel forbids it because it breaks quoted range references`);if("history"===e.toLowerCase())throw new rE(`Sheet name "${e}" is reserved by Excel for change tracking (${n})`)}function XN(e){return!("object"!=typeof e||null===e||e instanceof Date||Array.isArray(e)||LN(e))}function KN(e){return XN(e)?e.value??null:e}function ZN(e){let t=!1;const n=e.map(e=>{const n=function(e){const t=e.rows;if(!t)return e;let n=!1;for(const e of t){for(const t of e)if(XN(t)){n=!0;break}if(n)break}if(!n)return e;const r=[],i=new Map;for(let e=0;e<t.length;e++){const n=t[e],o=[];for(let t=0;t<n.length;t++){const r=n[t];XN(r)?(i.set(`${e},${t}`,r),o.push(r.value??null)):o.push(r)}r[e]=o}if(e.cells)for(const[t,n]of e.cells)i.set(t,n);return{...e,rows:r,cells:i}}(e);return n!==e&&(t=!0),n});return t?n:e}const eT="http://schemas.openxmlformats.org/spreadsheetml/2006/main";function tT(e){!function(e){if(!Number.isInteger(e)||e<0||e>CD)throw new rE(`Column index ${e} is not a valid 0-based column (Excel allows 0..16383)`)}(e);let t="",n=e;do{t=String.fromCharCode(65+n%26)+t,n=Math.floor(n/26)-1}while(n>=0);return t}function nT(e,t){const n={r:e+1};return void 0!==t?.height&&(n.ht=t.height,n.customHeight=1),t?.hidden&&(n.hidden=1),t?.outlineLevel&&(n.outlineLevel=t.outlineLevel),t?.collapsed&&(n.collapsed=1),n}function rT(e,t){return tT(t)+(e+1)}function iT(e,t,n,r){return`${rT(e,t)}:${rT(n,r)}`}function oT(e){const t=e.hyperlink.startsWith("#")?{target:"",location:e.hyperlink.slice(1),display:e.text}:{target:e.hyperlink,display:e.text};return void 0!==e.tooltip&&(t.tooltip=e.tooltip),t}const aT="yyyy-mm-dd",sT=Object.freeze({numFmt:aT}),lT=new WeakMap,cT=new Set(["#VALUE!","#REF!","#N/A","#NAME?","#NULL!","#DIV/0!","#NUM!","#GETTING_DATA","#SPILL!","#CALC!"]);function uT(e,t,n,r,i,o,a){const s="1904"===r,l=fT(e),c=l.length;let u=0;for(const e of l)e.length>u&&(u=e.length);e.columns&&e.columns.length>u&&(u=e.columns.length);const d=[];{const t=[];if(e.view?.tabColor&&t.push(XE("tabColor",vT(e.view.tabColor))),e.outlineProperties){const n={};void 0!==e.outlineProperties.summaryBelow&&(n.summaryBelow=e.outlineProperties.summaryBelow?1:0),void 0!==e.outlineProperties.summaryRight&&(n.summaryRight=e.outlineProperties.summaryRight?1:0),t.push(XE("outlinePr",n))}e.pageSetup?.fitToPage&&t.push(XE("pageSetUpPr",{fitToPage:1})),t.length>0&&d.push(ZE("sheetPr",void 0,t))}if(c>0||u>0){const e=c>0?c-1:0,t=u>0?u-1:0;d.push(XE("dimension",{ref:iT(0,0,e,t)}))}const f=[];if(e.freezePane){const t=e.freezePane,n=rT(t.rows??0,t.columns??0),r={};t.columns&&t.columns>0&&(r.xSplit=t.columns),t.rows&&t.rows>0&&(r.ySplit=t.rows),r.topLeftCell=n,r.state="frozen";const i=t.columns&&t.columns>0,o=t.rows&&t.rows>0;r.activePane=i&&o?"bottomRight":i?"topRight":"bottomLeft",f.push(XE("pane",r))}else if(e.splitPane){const t=e.splitPane,n={},r=void 0!==t.xSplit&&t.xSplit>0,i=void 0!==t.ySplit&&t.ySplit>0;r&&(n.xSplit=t.xSplit),i&&(n.ySplit=t.ySplit),n.topLeftCell="A1",n.state="split",n.activePane=r&&i?"bottomRight":r?"topRight":"bottomLeft",f.push(XE("pane",n))}const h={workbookViewId:0};e.view&&(!1===e.view.showGridLines&&(h.showGridLines=0),!1===e.view.showRowColHeaders&&(h.showRowColHeaders=0),void 0!==e.view.zoomScale&&(h.zoomScale=e.view.zoomScale),e.view.rightToLeft&&(h.rightToLeft=1)),d.push(ZE("sheetViews",void 0,[f.length>0?ZE("sheetView",h,f):XE("sheetView",h)]));const p={defaultRowHeight:e.defaultRowHeight??15};if(void 0!==e.defaultRowHeight&&(p.customHeight=1),void 0!==e.defaultColWidth&&(p.defaultColWidth=e.defaultColWidth),d.push(XE("sheetFormatPr",p)),e.columns&&e.columns.length>0){const n=[];for(let r=0;r<e.columns.length;r++){const i=e.columns[r];let o=i.width;if(i.autoWidth&&void 0===o){const e=[];for(const t of l)t&&r<t.length&&t[r]&&e.push(t[r].value);o=qN(e,{font:i.style?.font,numFmt:i.numFmt??i.style?.numFmt})}const a=i.numFmt&&!i.style?.numFmt?{...i.style,numFmt:i.numFmt}:i.style??void 0,s=a?t.addStyle(a):0;if(void 0!==o||i.hidden||i.outlineLevel||i.collapsed||0!==s){const e={min:r+1,max:r+1};void 0!==o&&(e.width=o,e.customWidth=!0),0!==s&&(e.style=s),i.hidden&&(e.hidden=!0),i.outlineLevel&&(e.outlineLevel=i.outlineLevel),i.collapsed&&(e.collapsed=!0),n.push(XE("col",e))}}n.length>0&&d.push(ZE("cols",void 0,n))}const g=[];let m=!1;for(let r=0;r<c;r++){const i=l[r],a=e.rowDefs?.get(r),c=a&&(void 0!==a.height||a.hidden||a.outlineLevel||a.collapsed);if(!(i&&0!==i.length||c))continue;const u=[];let d=!1;if(i)for(let e=0;e<i.length;e++){const a=i[e];if(!a)continue;a.formulaDynamic&&void 0!==a.formula&&null!==a.formula&&(m=!0);const l=pT(r,e,a,t,n,s,o);l&&(u.push(l),d=!0)}if(d||c){const e=nT(r,a);d?g.push(ZE("row",e,u)):g.push(XE("row",e))}}d.push(ZE("sheetData",void 0,g.length>0?g:"")),e.protection&&d.push(function(e){const t={};e.password&&(t.password=YN(e.password));!1!==e.sheet&&(t.sheet=1);e.objects&&(t.objects=1);e.scenarios&&(t.scenarios=1);const n=[["selectLockedCells","selectLockedCells"],["selectUnlockedCells","selectUnlockedCells"],["formatCells","formatCells"],["formatColumns","formatColumns"],["formatRows","formatRows"],["insertColumns","insertColumns"],["insertRows","insertRows"],["insertHyperlinks","insertHyperlinks"],["deleteColumns","deleteColumns"],["deleteRows","deleteRows"],["sort","sort"],["autoFilter","autoFilter"],["pivotTables","pivotTables"]];for(const[r,i]of n){const n=e[r];void 0!==n&&"boolean"==typeof n&&(t[i]=n?0:1)}return XE("sheetProtection",t)}(e.protection)),e.autoFilter&&d.push(function(e){if(e.columns&&e.columns.length>0){const t=[];for(const n of e.columns)if(n.filters&&n.filters.length>0){const e=n.filters.map(e=>XE("filter",{val:e}));t.push(ZE("filterColumn",{colId:n.colIndex},[ZE("filters",void 0,e)]))}return ZE("autoFilter",{ref:e.range},t)}return XE("autoFilter",{ref:e.range})}(e.autoFilter));const y=function(e){if(e)return e.some(e=>"string"==typeof e)?e.map(RN):e}(e.merges);if(y&&y.length>0){const e=y.map(e=>XE("mergeCell",{ref:iT(e.startRow,e.startCol,e.endRow,e.endCol)}));d.push(ZE("mergeCells",{count:y.length},e))}e.conditionalRules&&e.conditionalRules.length>0&&d.push(...function(e,t){const n=new Map;for(const t of e){const e=n.get(t.range);e?e.push(t):n.set(t.range,[t])}const r=[];for(const[e,i]of n){const n=[];for(const e of i)n.push(AT(e,t));r.push(ZE("conditionalFormatting",{sqref:e},n))}return r}(e.conditionalRules,t)),e.dataValidations&&e.dataValidations.length>0&&d.push(function(e){const t=[];for(const n of e){const e={type:n.type,sqref:n.range};n.operator&&(e.operator=n.operator),n.allowBlank&&(e.allowBlank=1),n.showInputMessage&&(e.showInputMessage=1),n.showErrorMessage&&(e.showErrorMessage=1),n.errorStyle&&(e.errorStyle=n.errorStyle),n.inputTitle&&(e.promptTitle=n.inputTitle),n.inputMessage&&(e.prompt=n.inputMessage),n.errorTitle&&(e.errorTitle=n.errorTitle),n.errorMessage&&(e.error=n.errorMessage);const r=[];if("list"===n.type&&n.values&&n.values.length>0){const e=`"${n.values.join(",")}"`;r.push(ZE("formula1",void 0,YE(e)))}else void 0!==n.formula1&&r.push(ZE("formula1",void 0,YE(n.formula1)));void 0!==n.formula2&&r.push(ZE("formula2",void 0,YE(n.formula2))),r.length>0?t.push(ZE("dataValidation",e,r)):t.push(XE("dataValidation",e))}return ZE("dataValidations",{count:e.length},t)}(e.dataValidations));const{xml:v,relationships:b}=function(e,t){const n=t??fT(e),r=[],i=[];let o=1;for(let e=0;e<n.length;e++){const t=n[e];for(let n=0;n<t.length;n++){const a=t[n]?.hyperlink;if(!a)continue;const s={ref:rT(e,n)};if(a.location)s.location=a.location;else if(a.target){const e="rId"+o++;s["r:id"]=e,i.push({id:e,target:a.target})}a.tooltip&&(s.tooltip=a.tooltip),a.display&&(s.display=a.display),r.push(XE("hyperlink",s))}}if(0===r.length)return{xml:"",relationships:[]};return{xml:ZE("hyperlinks",void 0,r),relationships:i}}(e,l);v&&d.push(v);const A=function(e){if(!e)return"";const t={};e.showGridLines&&(t.gridLines=1);e.showRowColHeaders&&(t.headings=1);e.horizontalCentered&&(t.horizontalCentered=1);e.verticalCentered&&(t.verticalCentered=1);return 0===Object.keys(t).length?"":XE("printOptions",t)}(e.pageSetup);if(A&&d.push(A),d.push(function(e){const t=e??{};return XE("pageMargins",{left:t.left??yT.left,right:t.right??yT.right,top:t.top??yT.top,bottom:t.bottom??yT.bottom,header:t.header??yT.header,footer:t.footer??yT.footer})}(e.pageSetup?.margins)),e.pageSetup&&d.push(function(e){const t={};if(void 0!==e.paperSize){const n=function(e){if("number"==typeof e)return Number.isInteger(e)&&e>0?e:void 0;return gT[e]}(e.paperSize);void 0!==n&&(t.paperSize=n)}e.orientation&&(t.orientation=e.orientation);void 0!==e.scale&&(t.scale=e.scale);e.fitToPage&&(void 0!==e.fitToWidth&&(t.fitToWidth=e.fitToWidth),void 0!==e.fitToHeight&&(t.fitToHeight=e.fitToHeight));void 0!==e.paperWidth&&(t.paperWidth=e.paperWidth);void 0!==e.paperHeight&&(t.paperHeight=e.paperHeight);void 0!==e.firstPageNumber&&(t.firstPageNumber=e.firstPageNumber);const n=e.useFirstPageNumber??(void 0!==e.firstPageNumber||void 0);void 0!==n&&(t.useFirstPageNumber=n?1:0);void 0!==e.pageOrder&&"downThenOver"!==e.pageOrder&&(t.pageOrder=e.pageOrder);e.blackAndWhite&&(t.blackAndWhite=1);e.draft&&(t.draft=1);void 0!==e.cellComments&&"none"!==e.cellComments&&(t.cellComments=e.cellComments);void 0!==e.errors&&"displayed"!==e.errors&&(t.errors=e.errors);void 0!==e.copies&&(t.copies=e.copies);void 0!==e.horizontalDpi&&(t.horizontalDpi=e.horizontalDpi);void 0!==e.verticalDpi&&(t.verticalDpi=e.verticalDpi);!1===e.usePrinterDefaults&&(t.usePrinterDefaults=0);if(0===Object.keys(t).length)return"";return XE("pageSetup",t)}(e.pageSetup)),e.headerFooter&&d.push(function(e){const t={};e.differentOddEven&&(t.differentOddEven=1);e.differentFirst&&(t.differentFirst=1);const n=[];e.oddHeader&&n.push(ZE("oddHeader",void 0,YE(e.oddHeader)));e.oddFooter&&n.push(ZE("oddFooter",void 0,YE(e.oddFooter)));e.evenHeader&&n.push(ZE("evenHeader",void 0,YE(e.evenHeader)));e.evenFooter&&n.push(ZE("evenFooter",void 0,YE(e.evenFooter)));e.firstHeader&&n.push(ZE("firstHeader",void 0,YE(e.firstHeader)));e.firstFooter&&n.push(ZE("firstFooter",void 0,YE(e.firstFooter)));if(0===n.length)return"";return ZE("headerFooter",Object.keys(t).length>0?t:void 0,n)}(e.headerFooter)),e.rowBreaks&&e.rowBreaks.length>0){const t=[...e.rowBreaks].sort((e,t)=>e-t),n=t.map(e=>XE("brk",{id:e+1,max:16383,man:1}));d.push(ZE("rowBreaks",{count:t.length,manualBreakCount:t.length},n))}if(e.colBreaks&&e.colBreaks.length>0){const t=[...e.colBreaks].sort((e,t)=>e-t),n=t.map(e=>XE("brk",{id:e+1,max:1048575,man:1}));d.push(ZE("colBreaks",{count:t.length,manualBreakCount:t.length},n))}let w=null,x=b.length+1;const I=e.images&&e.images.length>0,C=e.textBoxes&&e.textBoxes.length>0,S=e.charts&&e.charts.length>0,E=d.length;(I||C||S)&&(w=`rId${x}`,x++,d.push(XE("drawing",{"r:id":w})));let k=null,B=null,F=!1;if(e.cells)for(const[,t]of e.cells)if(t.comment){F=!0;break}F&&(k=`rId${x}`,x++,B=`rId${x}`,x++,d.push(XE("legacyDrawing",{"r:id":k})));let D=null;e.backgroundImage&&(D=`rId${x}`,x++,d.push(XE("picture",{"r:id":D})));const M=[];if(e.tables&&e.tables.length>0&&void 0!==i){const t=[];for(let n=0;n<e.tables.length;n++){const e=`rId${x}`;x++;const r=i+n;M.push({rId:e,globalTableIndex:r}),t.push(XE("tablePart",{"r:id":e}))}d.push(ZE("tableParts",{count:e.tables.length},t))}e.sparklines&&e.sparklines.length>0&&d.push(function(e){const t=[];let n=1;for(const r of e){const e={},i=r.type??"line";"line"!==i&&(e.type=i),e.displayEmptyCellsAs="gap";const o=`{00000000-0000-0000-0000-${String(n++).padStart(12,"0")}}`;e["xr2:uid"]=o,r.markers&&(e.markers="1");const a=[],s=r.color??"376092",l=6===s.length?`FF${s}`:s;a.push(XE("x14:colorSeries",{rgb:l}));const c=ZE("x14:sparkline",void 0,[ZE("xm:f",void 0,r.dataRange),ZE("xm:sqref",void 0,r.location)]);a.push(ZE("x14:sparklines",void 0,[c])),t.push(ZE("x14:sparklineGroup",e,a))}const r=ZE("x14:sparklineGroups",{"xmlns:xm":xT},t),i=ZE("ext",{uri:CT,"xmlns:x14":wT,"xmlns:xr2":IT},[r]);return ZE("extLst",void 0,[i])}(e.sparklines));const N=[];if(e.pivotTables&&e.pivotTables.length>0&&void 0!==a)for(let t=0;t<e.pivotTables.length;t++){const e=`rId${x}`;x++,N.push({rId:e,globalPivotIndex:a+t})}const T=ek("worksheet",{xmlns:eT,"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},d);return{xml:T,drawingInsertOffset:ST(T,d,E),hyperlinkRelationships:b,drawingRId:w,legacyDrawingRId:k,commentsRId:B,hasComments:F,tables:M,pictureRId:D,pivotTables:N,hasDynamicArray:m}}function dT(e){if(e)return e.numFmt&&!e.style?.numFmt?{...e.style,numFmt:e.numFmt}:e.style}function fT(e){const t=[];if(e.data&&e.columns){const n=e.columns.map(e=>e.key);if(e.columns.some(e=>e.header)){const n=[];for(let t=0;t<e.columns.length;t++){const r=e.columns[t];n.push({value:r.header??r.key??null,style:r.style})}t.push(n)}for(const r of e.data){const i=[];for(let t=0;t<n.length;t++){const o=n[t],a=void 0!==o?r[o]??null:null,s={value:LN(a)?a.text:a,style:dT(e.columns[t])};LN(a)&&(s.hyperlink=oT(a)),i.push(s)}t.push(i)}}else if(e.rows)for(const n of e.rows){const r=[];for(let t=0;t<n.length;t++){const i=KN(n[t]),o=e.columns?dT(e.columns[t]):void 0;r.push(o?{value:i,style:o}:{value:i})}t.push(r)}if(e.cells)for(const[n,r]of e.cells){const[e,i]=n.split(","),o=parseInt(e,10),a=parseInt(i,10);for(;t.length<=o;)t.push([]);const s=t[o];for(;s.length<=a;)s.push(null);const l=s[a];s[a]={value:r.value??l?.value??null,style:r.style??l?.style,checkbox:r.checkbox??l?.checkbox,formula:r.formula??l?.formula,formulaResult:r.formulaResult??l?.formulaResult,formulaType:r.formulaType??l?.formulaType,formulaSharedIndex:r.formulaSharedIndex??l?.formulaSharedIndex,formulaRef:r.formulaRef??l?.formulaRef,formulaDynamic:r.formulaDynamic??l?.formulaDynamic,richText:r.richText??l?.richText,hyperlink:r.hyperlink??l?.hyperlink}}return t}function hT(e,t,n,r){return 0===t?""===n?`<c r="${e}"><v>${r}</v></c>`:`<c r="${e}" t="${n}"><v>${r}</v></c>`:""===n?`<c r="${e}" s="${t}"><v>${r}</v></c>`:`<c r="${e}" t="${n}" s="${t}"><v>${r}</v></c>`}function pT(e,t,n,r,i,o,a){const{value:s,style:l,formula:c,formulaResult:u,formulaType:d,formulaSharedIndex:f,formulaRef:h,formulaDynamic:p,richText:g}=n;let m=0,y=l;if(s instanceof Date&&(!y||!y.numFmt))if(y){const e=lT.get(y);if(e)y=e;else{const e={...y,numFmt:aT};lT.set(y,e),y=e}}else y=sT;n.checkbox?m=r.addCheckboxStyle(y):y&&(m=r.addStyle(y));const v=rT(e,t);if(g&&g.length>0){const e={r:v,t:"inlineStr"};0!==m&&(e.s=m);const t=function(e){const t=[];for(const n of e){const e=[];if(n.font){const t=bT(n.font);t.length>0&&e.push(ZE("rPr",void 0,t))}e.push(KE(n.text)),t.push(ZE("r",void 0,e))}return t}(g);return ZE("c",e,[ZE("is",void 0,t)])}if(null!=c){const e={r:v};let t;if(0!==m&&(e.s=m),p&&(e.cm=1),"shared"===d){const e={t:"shared"};void 0!==f&&(e.si=f),h&&(e.ref=h),t=""===c?XE("f",e):ZE("f",e,YE(c))}else if("array"===d){const e={t:"array"};h&&(e.ref=h),t=ZE("f",e,YE(c))}else t=ZE("f",void 0,YE(c));const n=[t];return null!=u&&("string"==typeof u?(e.t="str",n.push(ZE("v",void 0,YE(u)))):"boolean"==typeof u?(e.t="b",n.push(ZE("v",void 0,u?"1":"0"))):"number"==typeof u?Number.isFinite(u)&&n.push(ZE("v",void 0,String(u))):u instanceof Date&&n.push(ZE("v",void 0,String(GM(u,o))))),ZE("c",e,n)}if(null==s)return 0!==m?XE("c",{r:v,s:m}):null;if("string"==typeof s&&cT.has(s))return hT(v,m,"e",s);if("string"==typeof s){if(a){const e=`<is>${KE(s)}</is>`;return 0===m?`<c r="${v}" t="inlineStr">${e}</c>`:`<c r="${v}" t="inlineStr" s="${m}">${e}</c>`}return hT(v,m,"s",String(i.add(s)))}return"number"==typeof s?Number.isFinite(s)?hT(v,m,"",String(s)):0!==m?XE("c",{r:v,s:m}):null:"boolean"==typeof s?hT(v,m,"b",s?"1":"0"):s instanceof Date?hT(v,m,"",String(GM(s,o))):null}const gT={letter:1,letterSmall:2,tabloid:3,ledger:4,legal:5,statement:6,executive:7,a3:8,a4:9,a4Small:10,a5:11,b4:12,b5:13,folio:14,quarto:15,note:18,envelope9:19,envelope10:20,envelope11:21,envelope12:22,envelope14:23,cSheet:24,dSheet:25,eSheet:26,envelopeDL:27,envelopeC5:28,envelopeC3:29,envelopeC4:30,envelopeC6:31,envelopeC65:32,envelopeB4:33,envelopeB5:34,envelopeB6:35,envelopeItaly:36,envelopeMonarch:37,envelopePersonal:38,fanfoldUS:39,fanfoldGermanStd:40,fanfoldGermanLegal:41,a6:70,japanesePostcard:43,japaneseDoublePostcard:69},mT={};for(const[e,t]of Object.entries(gT))mT[t]=e;const yT={left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3};function vT(e){const t={};if(void 0!==e.rgb){const n=e.rgb;t.rgb=6===n.length?`FF${n}`:n}return void 0!==e.theme&&(t.theme=e.theme),void 0!==e.tint&&(t.tint=e.tint),void 0!==e.indexed&&(t.indexed=e.indexed),t}function bT(e){const t=[];return e.bold&&t.push(XE("b")),e.italic&&t.push(XE("i")),e.underline&&(!0===e.underline||"single"===e.underline?t.push(XE("u")):t.push(XE("u",{val:e.underline}))),e.strikethrough&&t.push(XE("strike")),e.vertAlign&&t.push(XE("vertAlign",{val:e.vertAlign})),void 0!==e.size&&t.push(XE("sz",{val:e.size})),e.color&&t.push(XE("color",vT(e.color))),e.name&&t.push(XE("rFont",{val:e.name})),void 0!==e.family&&t.push(XE("family",{val:e.family})),void 0!==e.charset&&t.push(XE("charset",{val:e.charset})),e.scheme&&t.push(XE("scheme",{val:e.scheme})),t}function AT(e,t){const n={type:e.type,priority:e.priority};e.style&&(n.dxfId=t.addDxf(e.style)),e.operator&&(n.operator=e.operator),e.stopIfTrue&&(n.stopIfTrue=!0),void 0!==e.text&&(n.text=e.text);const r=[];if(void 0!==e.formula){const t=Array.isArray(e.formula)?e.formula:[e.formula];for(const e of t)r.push(ZE("formula",void 0,YE(e)))}if("colorScale"===e.type&&e.colorScale){const t=[];for(const n of e.colorScale.cfvo){const e={type:n.type};void 0!==n.value&&(e.val=n.value),t.push(XE("cfvo",e))}for(const n of e.colorScale.colors)t.push(XE("color",{rgb:n}));r.push(ZE("colorScale",void 0,t))}if("dataBar"===e.type&&e.dataBar){const t=[];for(const n of e.dataBar.cfvo){const e={type:n.type};void 0!==n.value&&(e.val=n.value),t.push(XE("cfvo",e))}t.push(XE("color",{rgb:e.dataBar.color})),r.push(ZE("dataBar",void 0,t))}if("iconSet"===e.type&&e.iconSet){const t={iconSet:e.iconSet.iconSet};e.iconSet.reverse&&(t.reverse=!0),!1===e.iconSet.showValue&&(t.showValue=!1);const n=[];for(const t of e.iconSet.cfvo){const e={type:t.type};void 0!==t.value&&(e.val=t.value),n.push(XE("cfvo",e))}r.push(ZE("iconSet",t,n))}return r.length>0?ZE("cfRule",n,r):XE("cfRule",n)}const wT="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main",xT="http://schemas.microsoft.com/office/excel/2006/main",IT="http://schemas.microsoft.com/office/spreadsheetml/2015/revision2",CT="{05C60535-1F16-4fd2-B633-F4F36F0B64E0}";function ST(e,t,n){const r=t.join(""),i=0===r.length?e.lastIndexOf("</worksheet>"):e.indexOf(r);if(i<0)return e.lastIndexOf("</worksheet>");let o=i;for(let e=0;e<n;e++)o+=t[e].length;return o}function ET(e,t,n){if(!(e.size<SD||e.has(t)))throw new eE(`Sheet "${n??"?"}" has more than 16777216 filled cells, which is the most \`Sheet.cells\` can hold — a Map caps at 2^24 entries.\n - streamXlsxRows(input) reads it a row at a time and has no such bound.\nThe file is not damaged; it is larger than this model.`)}function kT(e,t){if(void 0===e)return!1;const n=Number(e);return!(!Number.isFinite(n)||n<=0)&&(!t.dynamicArrayCm||t.dynamicArrayCm.has(n))}function BT(e){let t=0,n=0;for(;t<e.length;){const r=e.charCodeAt(t);if(r>=65&&r<=90)n=26*n+(r-64),t++;else{if(!(r>=97&&r<=122))break;n=26*n+(r-96),t++}}n--;return{row:Number(e.slice(t))-1,col:n}}function FT(e,t){const n=Number(e??"");if(Number.isNaN(n))return t;const r=Math.trunc(n);return r<1?t:Math.min(r,16384)}function DT(e){const t=e.split(":"),n=BT(t[0]),r=t.length>1?BT(t[1]):n;return{startRow:n.row,startCol:n.col,endRow:r.row,endCol:r.col}}function MT(e,t){const n=[],r=new Map,i=[];let o,a=-1,s=-1,l=0,c=!1;function u(n,r,i){if(t.sparse)return;const o=(n+1)*(r+1),a=t.maxTotalCells??2e7;if(o>a)throw new eE(function(e,t,n,r,i,o){const a=i<=SD;return`Sheet "${e}" spans ${t} rows x ${n} columns (${r} cells, ${(r>0?100*i/r:100).toFixed(2)}% of them filled), over the ${o} limit.\n - streamXlsxRows(input) reads it a row at a time, whatever the box.\n`+(a?" - readXlsx(input, { sparse: true }) returns the cells and no grid.\n":` - \`sparse: true\` cannot help here: ${i} filled cells is past the 16777216 a Map can hold.\n`)+" - `range` or `maxRows` bound the area, if you know where the data is.\n - `maxTotalCells` raises the bound, if the sheet really is this large."}(e,n+1,r+1,o,i,a))}function d(e,t){u(Math.max(s,e),Math.max(a,t),l+1)}t.range&&(o=DT(t.range));const f=[],h=[],p=[];let g,m,y,v,b,A,w,x,I,C=!1,S=-1,E=[],k=!1,B=!1;const F=[],D=[];let M=!1,N=!1;const T=[];let Q=!1,R=!1,L=!1,P=!1,O=!1,U="",$="",H=!1,z="",q="",j=!1,W=!1,_=!1,V=!1,Y=!1,G=!1,J=!1,X="";const K=t.maxRows??0;let Z=0;const ee=new Map,te=[];let ne,re,ie,oe=!1,ae=!1,se=!1,le=!1,ce=!1,ue=!1,de=!1,fe=!1,he=!1,pe=!1,ge=!1,me=!1,ye=!1,ve=!1,be="",Ae="",we={},xe=!1,Ie="",Ce=!1,Se={},Ee=!1,ke="",Be=[],Fe=!1,De=[],Me=[],Ne=!1,Te=[],Qe="",Re=!1,Le={},Pe=[],Oe=!1,Ue=!1,$e=!1,He="",ze=0,qe=0,je="",We=-1,_e="",Ve="",Ye="",Ge=-1,Je="",Xe=!1,Ke="",Ze=[],et="";const tt={onOpenTag(e,n){const r=e.includes(":")?e.slice(e.indexOf(":")+1):e;switch(r){case"cols":oe=!0;break;case"col":if(oe){const e=FT(n.min,1),r=FT(n.max,0),i=n.width?Number(n.width):void 0,o="1"===n.hidden||"true"===n.hidden,a=n.outlineLevel?Number(n.outlineLevel):void 0,s="1"===n.collapsed||"true"===n.collapsed,l="1"===n.bestFit||"true"===n.bestFit,c=void 0!==n.style?Number(n.style):void 0,u=t.readStyles&&t.styles&&void 0!==c&&c>=0?kN(t.styles,c):void 0;for(let t=e;t<=r;t++){const e=t-1;for(;te.length<=e;)te.push({});const n={};void 0===i||Number.isNaN(i)||(n.width=i),o&&(n.hidden=!0),void 0!==a&&!Number.isNaN(a)&&a>0&&(n.outlineLevel=a),s&&(n.collapsed=!0),l&&(n.autoWidth=!0),u&&Object.keys(u).length>0&&(n.style=QN(u)),Object.keys(n).length>0&&(te[e]=n)}}break;case"sheetFormatPr":{const e=n.defaultRowHeight,t=n.defaultColWidth;if(void 0!==e){const t=Number(e);Number.isFinite(t)&&t>0&&15!==t&&(ne=t)}if(void 0!==t){const e=Number(t);Number.isFinite(e)&&e>0&&(re=e)}break}case"sheetData":ae=!0;break;case"row":if(ae){if(K>0&&Z>=K)break;if(se=!0,ze=Number(n.r)||ze+1,qe=0,n.ht&&("1"===n.customHeight||"true"===n.customHeight)){const e=Number(n.r)-1,t=Number(n.ht);if(!Number.isNaN(e)&&!Number.isNaN(t)){const n=ee.get(e)??{};n.height=t,ee.set(e,n)}}if("1"===n.hidden||"true"===n.hidden){const e=Number(n.r)-1;if(!Number.isNaN(e)){const t=ee.get(e)??{};t.hidden=!0,ee.set(e,t)}}if(n.outlineLevel){const e=Number(n.r)-1,t=Number(n.outlineLevel);if(!Number.isNaN(e)&&!Number.isNaN(t)&&t>0){const n=ee.get(e)??{};n.outlineLevel=t,ee.set(e,n)}}if("1"===n.collapsed||"true"===n.collapsed){const e=Number(n.r)-1;if(!Number.isNaN(e)){const t=ee.get(e)??{};t.collapsed=!0,ee.set(e,t)}}}break;case"c":se&&(le=!0,He=n.r??"",je=n.t??"",We=n.s?Number(n.s):-1,_e="",Ve="",Ye="",Ge=-1,Je="",Xe=kT(n.cm,t),Ke="",Ze=[]);break;case"v":le&&(ce=!0);break;case"f":L?(P=!0,z=""):le&&(ue=!0,Ye=n.t??"",void 0!==n.si&&(Ge=Number(n.si)),n.ref&&(Je=n.ref),void 0!==n.cm&&kT(n.cm,t)&&(Xe=!0));break;case"is":le&&(de=!0);break;case"t":de&&!Oe?fe=!0:Oe&&($e=!0);break;case"r":de&&(Oe=!0,et="",ie=void 0);break;case"rPr":Oe&&(Ue=!0,ie={});break;case"sheetPr":k=!0;break;case"outlinePr":if(k){const e={};void 0!==n.summaryBelow&&(e.summaryBelow="1"===n.summaryBelow||"true"===n.summaryBelow),void 0!==n.summaryRight&&(e.summaryRight="1"===n.summaryRight||"true"===n.summaryRight),Object.keys(e).length>0&&(v=e)}break;case"pageSetUpPr":k&&(B="1"===n.fitToPage||"true"===n.fitToPage);break;case"tabColor":k&&(y||(y={}),y.tabColor=function(e){const t={};if(e.rgb){const n=e.rgb;t.rgb=8===n.length?n.slice(2):n}e.theme&&(t.theme=Number(e.theme));e.tint&&(t.tint=Number(e.tint));e.indexed&&(t.indexed=Number(e.indexed));return t}(n));break;case"sheetView":if(!ae){if(y||(y={}),"0"!==n.showGridLines&&"false"!==n.showGridLines||(y.showGridLines=!1),"0"!==n.showRowColHeaders&&"false"!==n.showRowColHeaders||(y.showRowColHeaders=!1),n.zoomScale){const e=Number(n.zoomScale);Number.isNaN(e)||(y.zoomScale=e)}"1"!==n.rightToLeft&&"true"!==n.rightToLeft||(y.rightToLeft=!0)}break;case"pane":if(!ae){const e=n.state;if("frozen"===e||"frozenSplit"===e){const e=Number(n.xSplit||"0"),t=Number(n.ySplit||"0");(e>0||t>0)&&(b={},e>0&&(b.columns=e),t>0&&(b.rows=t))}else if("split"===e){const e=Number(n.xSplit||"0"),t=Number(n.ySplit||"0");(e>0||t>0)&&(A={},e>0&&(A.xSplit=e),t>0&&(A.ySplit=t))}}break;case"sheetProtection":m=function(e){const t={};"1"!==e.sheet&&"true"!==e.sheet||(t.sheet=!0);"1"!==e.objects&&"true"!==e.objects||(t.objects=!0);"1"!==e.scenarios&&"true"!==e.scenarios||(t.scenarios=!0);const n=[["selectLockedCells","selectLockedCells"],["selectUnlockedCells","selectUnlockedCells"],["formatCells","formatCells"],["formatColumns","formatColumns"],["formatRows","formatRows"],["insertColumns","insertColumns"],["insertRows","insertRows"],["insertHyperlinks","insertHyperlinks"],["deleteColumns","deleteColumns"],["deleteRows","deleteRows"],["sort","sort"],["autoFilter","autoFilter"],["pivotTables","pivotTables"]];for(const[r,i]of n){const n=e[r];void 0!==n&&(t[i]=!("1"===n||"true"===n))}return t}(n);break;case"autoFilter":n.ref&&(g={range:n.ref},C=!0);break;case"filterColumn":C&&void 0!==n.colId&&(S=Number(n.colId),E=[]);break;case"filter":C&&S>=0&&void 0!==n.val&&E.push(n.val);break;case"mergeCells":he=!0;break;case"mergeCell":he&&n.ref&&i.push(DT(n.ref));break;case"hyperlinks":pe=!0;break;case"hyperlink":if(pe&&n.ref){const e={ref:n.ref},t=n["r:id"]??n["R:id"];t&&(e.rId=t),n.location&&(e.location=n.location),n.tooltip&&(e.tooltip=n.tooltip),n.display&&(e.display=n.display),f.push(e)}break;case"conditionalFormatting":xe=!0,Ie=n.sqref??"";break;case"cfRule":xe&&(Ce=!0,Se={...n},Be=[],De=[],Me=[],Te=[],Qe="",Pe=[],Le={});break;case"colorScale":Ce&&(Fe=!0,De=[],Me=[]);break;case"cfvo":Fe?De.push({type:n.type??"min",value:n.val}):Ne?Te.push({type:n.type??"min",value:n.val}):Re&&Pe.push({type:n.type??"min",value:n.val});break;case"dataBar":Ce&&(Ne=!0,Te=[],Qe="");break;case"iconSet":Ce&&(Re=!0,Le={...n},Pe=[]);break;case"dataValidations":ge=!0;break;case"dataValidation":ge&&(me=!0,we={...n},be="",Ae="");break;case"formula1":me&&(ye=!0);break;case"formula2":me&&(ve=!0);break;case"pageMargins":x=function(e){const t={};e.left&&(t.left=Number(e.left));e.right&&(t.right=Number(e.right));e.top&&(t.top=Number(e.top));e.bottom&&(t.bottom=Number(e.bottom));e.header&&(t.header=Number(e.header));e.footer&&(t.footer=Number(e.footer));return t}(n);break;case"pageSetup":w={...w,...PT(n,t)};break;case"printOptions":w=function(e,t){const n=e??{},r=e=>"1"===e||"true"===e;r(t.gridLines)&&(n.showGridLines=!0);r(t.headings)&&(n.showRowColHeaders=!0);r(t.horizontalCentered)&&(n.horizontalCentered=!0);r(t.verticalCentered)&&(n.verticalCentered=!0);return n}(w,n);break;case"headerFooter":j=!0,I={},"1"!==n.differentOddEven&&"true"!==n.differentOddEven||(I.differentOddEven=!0),"1"!==n.differentFirst&&"true"!==n.differentFirst||(I.differentFirst=!0);break;case"oddHeader":j&&(W=!0,X="");break;case"oddFooter":j&&(_=!0,X="");break;case"evenHeader":j&&(V=!0,X="");break;case"evenFooter":j&&(Y=!0,X="");break;case"firstHeader":j&&(G=!0,X="");break;case"firstFooter":j&&(J=!0,X="");break;case"rowBreaks":M=!0;break;case"colBreaks":N=!0;break;case"brk":if(M||N){const e=n.id;if(e){const t=Number(e)-1;M?F.push(t):D.push(t)}}break;case"color":Fe?Me.push(n.rgb??""):Ne?Qe=n.rgb??"":Ue&&ie&<(ie,r,n);break;case"formula":Ce&&!me&&(Ee=!0,ke="");break;case"sparklineGroups":Q=!0;break;case"sparklineGroup":Q&&(R=!0,U=n.type??"line",$="",H="1"===n.markers||"true"===n.markers);break;case"colorSeries":if(R){const e=n.rgb??"";$=8===e.length?e.slice(2):e}break;case"sparkline":R&&(L=!0,z="",q="");break;default:if(L&&"sqref"===r){O=!0,q="";break}Ue&&ie&<(ie,r,n)}},onText(e){ce?_e+=e:ue?Ve+=e:Ee?ke+=e:fe?Ke+=e:$e?et+=e:ye?be+=e:ve?Ae+=e:W||_||V||Y||G||J?X+=e:P?z+=e:O&&(q+=e)},onCloseTag(e){const i=e.includes(":")?e.slice(e.indexOf(":")+1):e;switch(i){case"cols":oe=!1;break;case"sheetData":ae=!1;break;case"row":se&&Z++,se=!1;break;case"c":if(le){const e=He?BT(He).row:ze-1,i=He?BT(He).col:qe;qe=i+1;let u=!1;o&&(e<o.startRow||e>o.endRow||i<o.startCol||i>o.endCol)&&(u=!0);const f=""!==_e||""!==Ke||Ze.length>0||""!==Ve||"e"===je||"inlineStr"===je||t.readStyles&&We>=0||!!(t.styles&&We>=0)&&(t.styles.cellXfs[We]?.hasCheckboxFeature??!1);!u&&f&&(!function(e,t,n,r,i,o,a,s,l,c,u,d,f,h,p,g,m){const y=""!==e?BT(e):void 0!==g&&void 0!==m?{row:g,col:m}:null;if(!y)return;const{row:v,col:b}=y;if(v>ID||b>CD)throw new eE(`Cell reference "${e}" is outside the supported sheet bounds (max row 1048576, max col 16384)`);if(!Number.isInteger(v)||!Number.isInteger(b)||v<0||b<0)return void s.onWarning?.({code:"malformed-cell-ref",message:`Cell reference "${e}" is not a cell reference — a column needs a row number and rows are 1-based. The cell is dropped; the rest of the sheet is read.`,sheet:s.sheetName});if(u(v,b),!s.sparse){for(;l.length<=v;)l.push([]);for(;l[v].length<=b;)l[v].push(null)}let A,w,x,I=null,C="empty";i?A=i:"shared"===d&&void 0!==f&&f>=0&&(A="");switch(t){case"s":{const t=Number(r);if(!Number.isNaN(t)&&t>=0&&t<s.sharedStrings.length){const e=s.sharedStrings[t];I=e.text,e.richText&&e.richText.length>0?(x=e.richText,C="richText"):C="string"}else s.onWarning?.({code:"unresolved-shared-string",message:`Cell ${e||`${v},${b}`} points at shared string ${r}, which the file does not have (${s.sharedStrings.length} present). Read as empty.`,sheet:s.sheetName,row:v,col:b}),I=null,C="empty";break}case"str":I=fE(r),C=A?"formula":"string",A&&(w=I);break;case"inlineStr":a&&a.length>0?(I=a.map(e=>e.text).join(""),x=a,C="richText"):(I=fE(o),C="string");break;case"b":I="1"===r||"true"===r.toLowerCase(),C=A?"formula":"boolean",A&&(w=I);break;case"e":I=r,C=A?"formula":"error",A&&(w=I);break;case"d":{const e=function(e){const t=e.trim();if(!/^\d{4}-\d{2}-\d{2}([T ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:?\d{2})?)?$/.test(t))return;const n=/(?:Z|[+-]\d{2}:?\d{2})$/.test(t),r=/[T ]\d{2}:/.test(t),i=t.replace(" ","T"),o=new Date(r&&!n?`${i}Z`:i);return Number.isNaN(o.getTime())?void 0:o}(r);e?(I=e,C="date"):""!==r?(I=r,C="string"):(I=null,C="empty"),A&&(w=I,C="formula");break}default:{if(""===r&&!A){I=null,C="empty";break}const e=Number(r);Number.isNaN(e)||""===r?""!==r&&(I=r,C="string"):s.styles&&n>=0&&BN(s.styles,n)?(I=function(e,t){if(t){const t=VM+Math.round(e*YM);return new Date(t)}if(60===e)return new Date(Date.UTC(1900,1,28));let n=e;e>60&&(n=e-1);const r=_M+Math.round(n*YM);return new Date(r)}(e,"1904"===s.dateSystem),C="date"):(I=e,C="number"),A&&(w=I,C="formula");break}}s.sparse||(l[v][b]=I);const S=!!(s.styles&&n>=0)&&(s.styles.cellXfs[n]?.hasCheckboxFeature??!1),E=s.sparse||void 0!==A||void 0!==x||s.readStyles&&s.styles&&n>=0||S||"error"===C||"formula"===C||"richText"===C;if(E){const t={value:I,type:C};if(S&&(t.checkbox=!0),void 0!==A&&(t.formula=A,void 0!==w&&(t.formulaResult=w),"shared"===d?(t.formulaType="shared",void 0!==f&&f>=0&&(t.formulaSharedIndex=f),h&&(t.formulaRef=h)):"array"===d&&(t.formulaType="array",h&&(t.formulaRef=h)),p&&(t.formulaDynamic=!0)),x&&(t.richText=x),s.readStyles&&s.styles&&n>=0){const r=kN(s.styles,n);Object.keys(r).length>0?t.style=r:n>=s.styles.cellXfs.length&&s.onWarning?.({code:"unresolved-style",message:`Cell ${e||`${v},${b}`} points at cell format ${n}, which the file does not have (${s.styles.cellXfs.length} present). Read unstyled.`,sheet:s.sheetName,row:v,col:b})}const r=`${v},${b}`;ET(c,r,s.sheetName),c.set(r,t)}}(He,je,We,_e,Ve,Ke,Ze.length>0?Ze:void 0,t,n,r,d,Ye,Ge,Je,Xe,e,i),e>=0&&i>=0&&(i>a&&(a=i),e>s&&(s=e),c=!0,l++)),le=!1}break;case"v":ce=!1;break;case"f":P?P=!1:ue=!1;break;case"is":de=!1;break;case"t":$e?$e=!1:fe&&(fe=!1);break;case"r":if(Oe){const e=fE(et);Ze.push(ie?{text:e,font:ie}:{text:e}),Oe=!1}break;case"rPr":Ue=!1;break;case"sheetPr":k=!1;break;case"mergeCells":he=!1;break;case"autoFilter":C=!1;break;case"filterColumn":C&&g&&S>=0&&E.length>0&&(g.columns||(g.columns=[]),g.columns.push({colIndex:S,filters:E})),S=-1,E=[];break;case"hyperlinks":pe=!1;break;case"conditionalFormatting":xe=!1;break;case"cfRule":if(Ce){const e=function(e,t,n,r,i,o,a,s,l,c,u){const d=e.type;if(!d||!RT.has(d))return null;if(!t)return null;const f={type:d,priority:Number(e.priority??"1"),range:t},h=e.operator;h&&QT.has(h)&&(f.operator=h);const p=Number(e.dxfId);if(c&&!Number.isNaN(p)){const e=c[p];e&&Object.keys(e).length>0?f.style=e:e||u?.onWarning?.({code:"unresolved-dxf",message:`Conditional rule on ${t} asks for differential format ${p}, which the file does not have (${c.length} present). The rule keeps its condition and loses its formatting.`,sheet:u.sheetName})}"1"!==e.stopIfTrue&&"true"!==e.stopIfTrue||(f.stopIfTrue=!0);void 0!==e.text&&(f.text=e.text);1===n.length?f.formula=n[0]:n.length>1&&(f.formula=n);"colorScale"===d&&r.length>0&&(f.colorScale={cfvo:r.map(e=>({type:e.type,value:e.value})),colors:i});"dataBar"===d&&o.length>0&&(f.dataBar={cfvo:o.map(e=>({type:e.type,value:e.value})),color:a});"iconSet"===d&&s.length>0&&(f.iconSet={iconSet:l.iconSet??"3TrafficLights1",cfvo:s.map(e=>({type:e.type,value:e.value}))},"1"!==l.reverse&&"true"!==l.reverse||(f.iconSet.reverse=!0),"0"!==l.showValue&&"false"!==l.showValue||(f.iconSet.showValue=!1));return f}(Se,Ie,Be,De,Me,Te,Qe,Pe,Le,t.styles?.dxfs,t);e&&p.push(e),Ce=!1}break;case"colorScale":Fe=!1;break;case"dataBar":Ce&&(Ne=!1);break;case"iconSet":Re=!1;break;case"formula":Ee&&(Be.push(ke),Ee=!1);break;case"dataValidations":ge=!1;break;case"dataValidation":if(me){const e=function(e,t,n){const r=e.type;if(!r||!TT.has(r))return null;const i=e.sqref;if(!i)return null;const o={type:r,range:i},a=e.operator;a&&QT.has(a)&&(o.operator=a);"1"!==e.allowBlank&&"true"!==e.allowBlank||(o.allowBlank=!0);"1"!==e.showInputMessage&&"true"!==e.showInputMessage||(o.showInputMessage=!0);"1"!==e.showErrorMessage&&"true"!==e.showErrorMessage||(o.showErrorMessage=!0);const s=e.errorStyle;"stop"!==s&&"warning"!==s&&"information"!==s||(o.errorStyle=s);e.promptTitle&&(o.inputTitle=e.promptTitle);e.prompt&&(o.inputMessage=e.prompt);e.errorTitle&&(o.errorTitle=e.errorTitle);e.error&&(o.errorMessage=e.error);if(t)if("list"===r){const e=t.trim();if(e.startsWith('"')&&e.endsWith('"')){const t=e.slice(1,-1);o.values=t.split(",")}else o.formula1=t}else o.formula1=t;n&&(o.formula2=n);return o}(we,be,Ae);e&&h.push(e),me=!1}break;case"formula1":ye=!1;break;case"formula2":ve=!1;break;case"headerFooter":j=!1;break;case"oddHeader":W&&I&&(I.oddHeader=X,W=!1);break;case"oddFooter":_&&I&&(I.oddFooter=X,_=!1);break;case"evenHeader":V&&I&&(I.evenHeader=X,V=!1);break;case"evenFooter":Y&&I&&(I.evenFooter=X,Y=!1);break;case"firstHeader":G&&I&&(I.firstHeader=X,G=!1);break;case"firstFooter":J&&I&&(I.firstFooter=X,J=!1);break;case"rowBreaks":M=!1;break;case"colBreaks":N=!1;break;case"sparklineGroups":Q=!1;break;case"sparklineGroup":R=!1;break;case"sparkline":if(L&&q){const e={location:q,dataRange:z};U&&"line"!==U&&(e.type=U),$&&(e.color=$),H&&(e.markers=!0),T.push(e)}L=!1;break;default:if(L&&"sqref"===i){O=!1;break}}}};return{handlers:tt,finish:function(){if(c&&!t.sparse){const e=a+1;u(s,a,l);for(let t=0;t<=s;t++)if(n[t])for(;n[t].length<e;)n[t].push(null);else n[t]=Array.from({length:e},()=>null)}const o=new Map;if(t.worksheetRels)for(const e of t.worksheetRels)o.set(e.id,e.target);for(const i of f){const a=BT(i.ref),s=`${a.row},${a.col}`;let l=r.get(s);l||(l={value:(n[a.row]&&n[a.row][a.col])??null,type:"string"},ET(r,s,e),r.set(s,l));const c={target:""};if(i.location)c.location=i.location,c.target=i.location;else if(i.rId){const e=o.get(i.rId);e?c.target=e:t.onWarning?.({code:"unresolved-hyperlink",message:`Cell ${i.ref} links through ${i.rId}, which the sheet's relationships do not define. Read with an empty target.`,sheet:t.sheetName,row:a.row,col:a.col})}i.tooltip&&(c.tooltip=i.tooltip),i.display&&(c.display=i.display),l.hyperlink=c}const d={name:e,rows:n};if(r.size>0&&(d.cells=r),void 0!==ne&&(d.defaultRowHeight=ne),void 0!==re&&(d.defaultColWidth=re),te.some(e=>Object.keys(e).length>0)&&(d.columns=te),i.length>0&&(d.merges=i),h.length>0&&(d.dataValidations=h),p.length>0&&(d.conditionalRules=p),g&&(d.autoFilter=g),b&&(d.freezePane=b),A&&(d.splitPane=A),m&&(d.protection=m),y&&Object.keys(y).length>0&&(d.view=y),w||x||B){const e=w??{};x&&(e.margins=x),B&&(e.fitToPage=!0),d.pageSetup=e}return I&&Object.keys(I).length>0&&(d.headerFooter=I),F.length>0&&(d.rowBreaks=F.sort((e,t)=>e-t)),D.length>0&&(d.colBreaks=D.sort((e,t)=>e-t)),ee.size>0&&(d.rowDefs=ee),T.length>0&&(d.sparklines=T),v&&(d.outlineProperties=v),d}}}async function NT(e,t,n){const{handlers:r,finish:i}=MT(t,n);return await async function(e,t,n){const r=n?.strict??!1,i=e.getReader(),o=new TextDecoder("utf-8");let a="",s=!1;try{for(;;){const{done:e,value:n}=await i.read();if(e)break;a+=o.decode(n,{stream:!0}),s||(65279===a.charCodeAt(0)&&(a=a.slice(1)),s=!0),a=AE(a,t,!1,r)}a+=o.decode(),a.length>0&&AE(a,t,!0,r)}finally{try{await i.cancel()}catch{}try{i.releaseLock()}catch{}}}(e,r,{strict:!0}),i()}const TT=new Set(["list","whole","decimal","date","time","textLength","custom"]),QT=new Set(["between","notBetween","equal","notEqual","greaterThan","lessThan","greaterThanOrEqual","lessThanOrEqual"]);const RT=new Set(["cellIs","expression","colorScale","dataBar","iconSet","top10","aboveAverage","duplicateValues","uniqueValues","containsText","notContainsText","beginsWith","endsWith","containsBlanks","notContainsBlanks"]);function LT(e,t,n){switch(t){case"b":e.bold="0"!==n.val&&"false"!==n.val;break;case"i":e.italic="0"!==n.val&&"false"!==n.val;break;case"u":{const t=n.val;e.underline="double"!==t||"double";break}case"strike":e.strikethrough="0"!==n.val&&"false"!==n.val;break;case"sz":n.val&&(e.size=Number(n.val));break;case"rFont":n.val&&(e.name=n.val);break;case"color":if(e.color={},n.rgb){const t=n.rgb;e.color.rgb=8===t.length?t.slice(2):t}n.theme&&(e.color.theme=Number(n.theme)),n.tint&&(e.color.tint=Number(n.tint)),n.indexed&&(e.color.indexed=Number(n.indexed));break;case"vertAlign":"superscript"!==n.val&&"subscript"!==n.val||(e.vertAlign=n.val);break;case"family":n.val&&(e.family=Number(n.val));break;case"charset":n.val&&(e.charset=Number(n.val));break;case"scheme":"major"!==n.val&&"minor"!==n.val&&"none"!==n.val||(e.scheme=n.val)}}function PT(e,t){const n={};if(e.paperSize){const r=Number(e.paperSize);Number.isInteger(r)&&r>0?n.paperSize=mT[r]??r:t?.onWarning?.({code:"unusable-paper-size",message:`Page setup names paper size "${e.paperSize}", which is not a positive integer code. Dropped; the sheet reads with no paper size set.`,sheet:t.sheetName})}"landscape"!==e.orientation&&"portrait"!==e.orientation||(n.orientation=e.orientation),e.scale&&(n.scale=Number(e.scale)),void 0===e.fitToWidth&&void 0===e.fitToHeight||(n.fitToPage=!0,e.fitToWidth&&(n.fitToWidth=Number(e.fitToWidth)),e.fitToHeight&&(n.fitToHeight=Number(e.fitToHeight))),"1"!==e.horizontalCentered&&"true"!==e.horizontalCentered||(n.horizontalCentered=!0),"1"!==e.verticalCentered&&"true"!==e.verticalCentered||(n.verticalCentered=!0),e.paperWidth&&(n.paperWidth=e.paperWidth),e.paperHeight&&(n.paperHeight=e.paperHeight);const r=UT(e.firstPageNumber);void 0!==r&&(n.firstPageNumber=r),void 0!==e.useFirstPageNumber&&(n.useFirstPageNumber=OT(e.useFirstPageNumber)),"overThenDown"!==e.pageOrder&&"downThenOver"!==e.pageOrder||(n.pageOrder=e.pageOrder),OT(e.blackAndWhite)&&(n.blackAndWhite=!0),OT(e.draft)&&(n.draft=!0);const i=e.cellComments;"none"!==i&&"asDisplayed"!==i&&"atEnd"!==i||(n.cellComments=i);const o=e.errors;"displayed"!==o&&"blank"!==o&&"dash"!==o&&"NA"!==o||(n.errors=o);const a=UT(e.copies);void 0!==a&&(n.copies=a);const s=UT(e.horizontalDpi);void 0!==s&&(n.horizontalDpi=s);const l=UT(e.verticalDpi);return void 0!==l&&(n.verticalDpi=l),void 0!==e.usePrinterDefaults&&(n.usePrinterDefaults=OT(e.usePrinterDefaults)),n}function OT(e){return"1"===e||"true"===e}function UT(e){if(void 0===e)return;const t=Number(e);return Number.isInteger(t)&&t>=0?t:void 0}function $T(e){const t=new Map,n=[];let r=!1,i=!1,o=!1,a=!1,s=!1,l=!1,c="",u="",d=-1,f="";return gE(e,{onOpenTag(e,t){switch(e.includes(":")?e.slice(e.indexOf(":")+1):e){case"authors":r=!0;break;case"author":r&&(i=!0,c="");break;case"commentList":o=!0;break;case"comment":o&&(a=!0,u=t.ref??"",d=t.authorId?Number(t.authorId):-1,f="");break;case"text":a&&(s=!0);break;case"r":break;case"t":s&&(l=!0)}},onText(e){i?c+=e:l&&(f+=e)},onCloseTag(e){switch(e.includes(":")?e.slice(e.indexOf(":")+1):e){case"authors":r=!1;break;case"author":i&&(n.push(c),i=!1);break;case"commentList":o=!1;break;case"comment":if(a&&u){const e={text:f};if(d>=0&&d<n.length){const t=n[d];t&&(e.author=t)}t.set(u,e),a=!1}break;case"text":s=!1;break;case"r":break;case"t":l=!1}}}),t}function HT(e,t){for(const n of e.children){if("string"==typeof n)continue;if((n.local||n.tag)===t){return n.children.filter(e=>"string"==typeof e).join("")||void 0}}}function zT(e){if(e)return function(e){const t=e.trim(),n=t.indexOf("T"),r=n>=0&&/(?:Z|[+-]\d{2}:?\d{2})$/.test(t.slice(n+1)),i=new Date(n>=0&&!r?`${t}Z`:t);return Number.isNaN(i.getTime())?void 0:i}(e)}const qT=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];function jT(e,t){return e===`http://schemas.openxmlformats.org/officeDocument/2006/relationships/${t}`||e===`http://purl.oclc.org/ooxml/officeDocument/relationships/${t}`||e.endsWith("/"+t)}function WT(e,t="(unknown)"){return lE(e,t)}async function _T(e,t,n,r){const i=e.declaredSize(t);if(void 0===i||i<=aE)try{return function(e,t,n){const{handlers:r,finish:i}=MT(t,n);return gE(e,r),i()}(WT(await e.extract(t),t),n,r)}catch(e){if(!function(e){return e instanceof sE}(e))throw e}return NT(e.extractStream(t),n,r)}async function VT(e,t){let n,r=await kD(e,t?.maxInputBytes);if(function(e){if(e.length<ED.length)return!1;for(let t=0;t<ED.length;t++)if(e[t]!==ED[t])return!1;return!0}(r)){if(!t?.password)throw new iE("xlsx");r=await GD(r,t.password,t.maxSpinCount)}try{n=new zM(r,t?.maxDecompressedBytes)}catch(e){if(e instanceof tE)throw e;throw new eE("Failed to open XLSX file: not a valid ZIP archive",void 0,{cause:e})}if(!n.has("[Content_Types].xml"))throw new eE("Invalid XLSX: missing [Content_Types].xml");if(function(e){const t=wE(e),n=new Map,r=new Map;for(const e of t.children){if("string"==typeof e)continue;const t=e.local||e.tag;if("Default"===t){const t=e.attrs.Extension,r=e.attrs.ContentType;t&&r&&n.set(t,r)}else if("Override"===t){const t=e.attrs.PartName,n=e.attrs.ContentType;t&&n&&r.set(t,n)}}}(WT(await n.extract("[Content_Types].xml"),"[Content_Types].xml")),!n.has("_rels/.rels"))throw new eE("Invalid XLSX: missing _rels/.rels");const i=BE(WT(await n.extract("_rels/.rels"),"_rels/.rels")).find(e=>jT(e.type,"officeDocument"));if(!i)throw new eE("Invalid XLSX: cannot find workbook relationship in _rels/.rels");const o=i.target.startsWith("/")?i.target.slice(1):i.target,a=DE(o),s=a?`${a}/_rels/${o.slice(a.length+1)}.rels`:`_rels/${o}.rels`;let l=[];if(n.has(s)){l=BE(WT(await n.extract(s),s))}if(!n.has(o))throw new eE(`Invalid XLSX: missing workbook at ${o}`);const c=WT(await n.extract(o),o),{sheets:u,dateSystem:d,namedRanges:f,workbookProtection:h,activeSheet:p,pivotCacheRefs:g}=function(e,t){const n=wE(e),r=[],i=[],o=[];let a,s,l="1900";"1904"===t?.dateSystem?l="1904":"1900"===t?.dateSystem&&(l="1900");for(const e of n.children){if("string"==typeof e)continue;const n=e.local||e.tag;if("workbookPr"===n&&("1"!==e.attrs.date1904&&"true"!==e.attrs.date1904||t?.dateSystem&&"auto"!==t.dateSystem||(l="1904")),"workbookProtection"===n){const t="1"===e.attrs.lockStructure||"true"===e.attrs.lockStructure,n="1"===e.attrs.lockWindows||"true"===e.attrs.lockWindows;(t||n)&&(a={},t&&(a.lockStructure=!0),n&&(a.lockWindows=!0))}if("bookViews"===n)for(const t of e.children){if("string"==typeof t)continue;if("workbookView"!==(t.local||t.tag))continue;const e=Number(t.attrs.activeTab);Number.isInteger(e)&&e>0&&void 0===s&&(s=e)}if("sheets"===n)for(const t of e.children){if("string"==typeof t)continue;if("sheet"===(t.local||t.tag)){const e=t.attrs.name??"",n=Number(t.attrs.sheetId??"0"),i=t.attrs["r:id"]??t.attrs["R:id"]??ME(t.attrs)??"",o=t.attrs.state;let a="visible";"hidden"===o?a="hidden":"veryHidden"===o&&(a="veryHidden"),e&&i&&r.push({name:e,sheetId:n,rId:i,state:a})}}if("pivotCaches"===n)for(const t of e.children){if("string"==typeof t)continue;if("pivotCache"===(t.local||t.tag)){const e=t.attrs.cacheId,n=void 0===e?NaN:Number(e),r=t.attrs["r:id"]??t.attrs["R:id"]??ME(t.attrs)??"";r&&!Number.isNaN(n)&&o.push({cacheId:n,rId:r})}}}for(const e of n.children){if("string"==typeof e)continue;if("definedNames"===(e.local||e.tag))for(const t of e.children){if("string"==typeof t)continue;if("definedName"===(t.local||t.tag)){const e=t.attrs.name??"",n=t.children.filter(e=>"string"==typeof e).join("");if(e&&n){const o={name:e,range:n},a=t.attrs.localSheetId;if(void 0!==a){const e=Number(a);e>=0&&e<r.length&&(o.scope=r[e].name)}t.attrs.comment&&(o.comment=t.attrs.comment),i.push(o)}}}}return{sheets:r,dateSystem:l,namedRanges:i,workbookProtection:a,activeSheet:s,pivotCacheRefs:o}}(c,t);let m=[];const y=l.find(e=>jT(e.type,"sharedStrings"));if(y){const e=FE(a,y.target);if(n.has(e)){m=function(e){const t=wE(e),n=[];for(const e of t.children)"string"!=typeof e&&"si"===(e.local||e.tag)&&n.push(qM(e));return n}(WT(await n.extract(e),e))}}let v=null;const b=l.find(e=>jT(e.type,"styles"));if(b){const e=FE(a,b.target);if(n.has(e)){v=sN(WT(await n.extract(e),e))}}let A;const w=a?`${a}/theme/theme1.xml`:"theme/theme1.xml";if(n.has(w)){A=function(e){const t=new Map;let n=!1,r="";return gE(e,{onOpenTag(e,i){if("clrScheme"===e||"a:clrScheme"===e)return void(n=!0);if(!n)return;const o=e.includes(":")?e.split(":").pop():e;qT.includes(o)?r=o:r&&("srgbClr"===o&&i.val?t.set(r,i.val.toUpperCase()):"sysClr"===o&&i.lastClr&&t.set(r,i.lastClr.toUpperCase()))},onCloseTag(e){const t=e.includes(":")?e.split(":").pop():e;"clrScheme"===t&&(n=!1),r&&qT.includes(t)&&(r="")}}),qT.map(e=>t.get(e)??"000000")}(WT(await n.extract(w),w))}let x;const I=l.find(e=>jT(e.type,"person"));if(I){const e=FE(a,I.target);if(n.has(e)){x=function(e){const t=wE(e),n=[];for(const e of IE(t)){if("person"!==e.local)continue;const t=e.attrs.id,r=e.attrs.displayName;if(!t||void 0===r)continue;const i={id:t,displayName:r};e.attrs.userId&&(i.userId=e.attrs.userId),e.attrs.providerId&&(i.providerId=e.attrs.providerId),n.push(i)}return n}(WT(await n.extract(e),e))}}const C=l.filter(e=>jT(e.type,"externalLink")).sort((e,t)=>GT(e.id)-GT(t.id)),S=[];for(const e of C){const t=FE(a,e.target);if(!n.has(t))continue;const r=WT(await n.extract(t),t),i=JT(t),o=n.has(i)?WT(await n.extract(i),i):void 0;S.push(TE(r,o))}let E;const k=l.find(e=>"http://www.wps.cn/officeDocument/2017/relationships/cellimage"===e.type);if(k){const e=FE(a,k.target);if(n.has(e)){const t=function(e){const t=wE(e),n=[];for(const e of IE(t)){if("cellImage"!==e.local)continue;const t=RE(e);t&&n.push(t)}return n}(WT(await n.extract(e),e)),r=JT(e),i=DE(e),o=new Map;if(n.has(r)){const e=WT(await n.extract(r),r);for(const t of BE(e)){if(!jT(t.type,"image"))continue;const e=FE(i,t.target);if(!n.has(e))continue;const r=e.split(".").pop()?.toLowerCase()??"",a=XT[r];a&&o.set(t.id,{data:await n.extract(e),type:a})}}const a=function(e,t){const n=[],r=new Set;for(const i of e){if(r.has(i.id))continue;const e=t.get(i.embedRId);if(!e)continue;const o={id:i.id,data:e.data,type:e.type};i.description&&(o.description=i.description),n.push(o),r.add(i.id)}return n}(t,o);a.length>0&&(E=a)}}const B=new Map,F=new Map;for(const e of g){const t=l.find(t=>t.id===e.rId);if(!t)continue;const r=FE(a,t.target);if(!n.has(r))continue;const i=LE(WT(await n.extract(r),r));if(!i)continue;i.cacheId=e.cacheId;const o=JT(r);if(n.has(o)){BE(WT(await n.extract(o),o)).some(e=>jT(e.type,"pivotCacheRecords"))&&(i.hasRecords=!0)}B.set(e.cacheId,i),F.set(e.rId,i)}const D=g.map(e=>B.get(e.cacheId)).filter(e=>void 0!==e),M=l.filter(e=>jT(e.type,"slicerCache")).sort((e,t)=>YT(e.target)-YT(t.target)),N=[];for(const e of M){const t=FE(a,e.target);if(!n.has(t))continue;const r=HE(WT(await n.extract(t),t));r&&N.push(r)}const T=l.filter(e=>jT(e.type,"timelineCache")).sort((e,t)=>YT(e.target)-YT(t.target)),Q=[];for(const e of T){const t=FE(a,e.target);if(!n.has(t))continue;const r=qE(WT(await n.extract(t),t));r&&Q.push(r)}let R;const L=l.find(e=>jT(e.type,"sheetMetadata"));if(L){const e=FE(a,L.target);n.has(e)&&(R=function(e){const t=new Set,n=wE(e),r="metadata"===n.local?n:xE(n,"metadata");if(!r)return t;const i=[],o=xE(r,"metadataTypes");if(o)for(const e of IE(o))"metadataType"===e.local&&i.push(e.attrs.name??"");const a=new Map;for(const e of IE(r)){if("futureMetadata"!==e.local)continue;const t=e.attrs.name??"",n=a.get(t)??[];for(const t of IE(e))"bk"===t.local&&n.push(VN(t));a.set(t,n)}const s=xE(r,"cellMetadata");if(!s)return t;let l=0;for(const e of IE(s))if("bk"===e.local){l++;for(const n of IE(e)){if("rc"!==n.local)continue;if(i[EE(n.attrs.t,0)-1]!==jN)continue;const e=a.get(jN),r=EE(n.attrs.v,-1);(!e||r<0||r>=e.length||e[r])&&t.add(l)}}return t}(WT(await n.extract(e),e)))}const P=new Map,O=new Map;for(const e of l)jT(e.type,"worksheet")?P.set(e.id,FE(a,e.target)):jT(e.type,"chartsheet")?O.set(e.id,"chartsheet"):jT(e.type,"dialogsheet")&&O.set(e.id,"dialogsheet");const U=function(e,t){if(void 0===t)return e;if("function"==typeof t){const n=[];for(let r=0;r<e.length;r++){const i=e[r];t({name:i.name,index:r,hidden:"hidden"===i.state,veryHidden:"veryHidden"===i.state},r)&&n.push(i)}return n}if(0===t.length)return e;const n=[];for(const r of t)if("number"==typeof r)r>=0&&r<e.length&&n.push(e[r]);else{const t=e.find(e=>e.name===r);t&&n.push(t)}return n}(u,t?.sheets),$=t?.readStyles??!1,H=[];for(const e of U){const r=O.get(e.rId);if(void 0!==r){const t={name:e.name,rows:[],kind:r};"hidden"===e.state&&(t.hidden=!0),"veryHidden"===e.state&&(t.veryHidden=!0),H.push(t);continue}const i=P.get(e.rId);if(!i||!n.has(i))throw new eE(`Invalid XLSX: missing worksheet file for sheet "${e.name}"`);const o=DE(i),s=JT(i);let c;if(n.has(s)){c=BE(WT(await n.extract(s),s))}const u={sharedStrings:m,styles:v,readStyles:$,dateSystem:d,worksheetRels:c,maxRows:t?.maxRows,range:t?.range,maxTotalCells:t?.maxTotalCells,sparse:t?.sparse,dynamicArrayCm:R,sheetName:e.name,onWarning:t?.onWarning},f=await _T(n,i,e.name,u);if("hidden"===e.state&&(f.hidden=!0),"veryHidden"===e.state&&(f.veryHidden=!0),c){const e=c.find(e=>jT(e.type,"drawing"));if(e){const t=FE(o,e.target),r=await KT(n,t);if(r.images.length>0&&(f.images=r.images),r.textBoxes.length>0&&(f.textBoxes=r.textBoxes),r.chartRefs.length>0){const e=[];for(const t of r.chartRefs){if(!n.has(t.path))continue;const r=AD(WT(await n.extract(t.path),t.path));r&&(t.anchor&&(r.anchor=t.anchor),t.altText&&(r.altText=t.altText),t.frameTitle&&(r.frameTitle=t.frameTitle),e.push(r))}e.length>0&&(f.charts=e)}}}if(c){const e=c.find(e=>jT(e.type,"comments"));if(e){const t=FE(o,e.target);if(n.has(t)){const e=$T(WT(await n.extract(t),t));if(e.size>0){f.cells||(f.cells=new Map);for(const[t,n]of e){const e=BT(t),r=`${e.row},${e.col}`;let i=f.cells.get(r);i||(i={value:(f.rows[e.row]&&f.rows[e.row][e.col])??null,type:"string"},f.cells.set(r,i)),i.comment=n}}}}const t=c.find(e=>jT(e.type,"threadedComment"));if(t){const e=FE(o,t.target);if(n.has(e)){const t=kE(WT(await n.extract(e),e));t.length>0&&(f.threadedComments=t)}}}if(c){const e=c.filter(e=>jT(e.type,"table"));if(e.length>0){const t=[];for(const r of e){const e=FE(o,r.target);if(n.has(e)){const r=hQ(WT(await n.extract(e),e));r&&t.push(r)}}t.length>0&&(f.tables=t)}}if(c){const e=c.find(e=>jT(e.type,"image"));if(e){const t=FE(o,e.target);n.has(t)&&(f.backgroundImage=await n.extract(t))}}if(c){const e=c.filter(e=>jT(e.type,"pivotTable"));if(e.length>0){const t=[];for(const r of e){const e=FE(o,r.target);if(!n.has(e))continue;const i=PE(WT(await n.extract(e),e));if(!i)continue;const s=JT(e);if(n.has(s)){const t=BE(WT(await n.extract(s),s)).find(e=>jT(e.type,"pivotCacheDefinition"));if(t){const n=FE(DE(e),t.target);for(const e of g){const t=l.find(t=>t.id===e.rId);if(!t)continue;if(FE(a,t.target)===n){i.cacheId=e.cacheId;break}}}}const c=B.get(i.cacheId);c&&OE(i,c),t.push(i)}t.length>0&&(f.pivotTables=t)}const t=c.filter(e=>jT(e.type,"slicer"));if(t.length>0){const e=[];for(const r of t){const t=FE(o,r.target);if(!n.has(t))continue;const i=WT(await n.extract(t),t);for(const t of $E(i))e.push(t)}e.length>0&&(f.slicers=e)}const r=c.filter(e=>jT(e.type,"timeline"));if(r.length>0){const e=[];for(const t of r){const r=FE(o,t.target);if(!n.has(r))continue;const i=WT(await n.extract(r),r);for(const t of zE(i))e.push(t)}e.length>0&&(f.timelines=e)}}H.push(f)}let z;if(n.has("docProps/core.xml")){const e=function(e){const t=wE(e),n={};for(const e of t.children){if("string"==typeof e)continue;const t=e.local||e.tag,r=e.children.filter(e=>"string"==typeof e).join("");switch(t){case"title":r&&(n.title=r);break;case"subject":r&&(n.subject=r);break;case"creator":r&&(n.creator=r);break;case"keywords":r&&(n.keywords=r);break;case"description":r&&(n.description=r);break;case"lastModifiedBy":r&&(n.lastModifiedBy=r);break;case"category":r&&(n.category=r);break;case"created":if(r){const e=zT(r);e&&(n.created=e)}break;case"modified":if(r){const e=zT(r);e&&(n.modified=e)}}}return n}(WT(await n.extract("docProps/core.xml"),"docProps/core.xml"));Object.keys(e).length>0&&(z={...e})}if(n.has("docProps/app.xml")){const e=function(e){const t=wE(e),n={},r=HT(t,"Company");r&&(n.company=r);const i=HT(t,"Manager");return i&&(n.manager=i),n}(WT(await n.extract("docProps/app.xml"),"docProps/app.xml"));Object.keys(e).length>0&&(z={...z,...e})}if(n.has("docProps/custom.xml")){const e=function(e){const t=wE(e),n={};for(const e of t.children){if("string"==typeof e)continue;if("property"!==(e.local||e.tag))continue;const t=e.attrs.name;if(t)for(const r of e.children){if("string"==typeof r)continue;const e=r.local||r.tag,i=r.children.filter(e=>"string"==typeof e).join("");switch(e){case"lpwstr":n[t]=i;break;case"i4":case"i8":case"int":i&&(n[t]=parseInt(i,10));break;case"r8":case"decimal":i&&(n[t]=parseFloat(i));break;case"bool":n[t]="true"===i||"1"===i;break;case"filetime":case"date":if(i){const e=new Date(i);Number.isNaN(e.getTime())||(n[t]=e)}}break}}return n}(WT(await n.extract("docProps/custom.xml"),"docProps/custom.xml"));Object.keys(e).length>0&&(z||(z={}),z.custom=e)}const q={sheets:H,dateSystem:d},j=function(e,t){if(0===t.length)return t;const n=new Map;for(const t of e)n.set(t.name,t);const r=[];for(const e of t){const t="_xlnm.Print_Area"===e.name,i="_xlnm.Print_Titles"===e.name,o=void 0!==e.scope?n.get(e.scope):void 0;if(!t&&!i||!o){r.push(e);continue}const a=o.pageSetup??(o.pageSetup={});if(t){const t=e.range.split(",").map(fQ).filter(e=>e.length>0).join(",");t&&(a.printArea=t)}else for(const t of e.range.split(",")){const e=fQ(t);e&&(/\d/.test(e)?a.printTitlesRow=e:a.printTitlesColumn=e)}}return r}(H,f);j.length>0&&(q.namedRanges=j),z&&(q.properties=z),A&&(q.themeColors=A),h&&(q.workbookProtection=h),void 0!==p&&(q.activeSheet=p);const W=v?.fonts[0];return W&&Object.keys(W).length>0&&(q.defaultFont=W),x&&x.length>0&&(q.persons=x),S.length>0&&(q.externalLinks=S),E&&E.length>0&&(q.cellImages=E),D.length>0&&(q.pivotCaches=D),N.length>0&&(q.slicerCaches=N),Q.length>0&&(q.timelineCaches=Q),q}function YT(e){const t=e.match(/(\d+)\.xml$/i);return t?parseInt(t[1],10):Number.POSITIVE_INFINITY}function GT(e){const t=e.match(/(\d+)$/);return t?parseInt(t[1],10):Number.POSITIVE_INFINITY}function JT(e){const t=e.lastIndexOf("/");return-1===t?`_rels/${e}.rels`:`${e.slice(0,t)}/_rels/${e.slice(t+1)}.rels`}const XT={png:"png",jpg:"jpeg",jpeg:"jpeg",gif:"gif",svg:"svg",webp:"webp"};async function KT(e,t){if(!e.has(t))return{images:[],textBoxes:[],chartRefs:[]};const n=WT(await e.extract(t),t),r=DE(t),i=JT(t),o=new Map,a=new Map;if(e.has(i)){const t=BE(WT(await e.extract(i),i));for(const e of t)jT(e.type,"image")?o.set(e.id,FE(r,e.target)):jT(e.type,"chart")&&a.set(e.id,FE(r,e.target))}const s=wE(n),l=[],c=[],u=[];for(const t of s.children){if("string"==typeof t)continue;const n=t.local||t.tag;if("twoCellAnchor"===n||"oneCellAnchor"===n||"absoluteAnchor"===n){const e=eQ(t);if(e){const r=a.get(e);if(r&&!u.some(e=>e.path===r)){const e="absoluteAnchor"===n?void 0:ZT(t,n),i={path:r};e&&(i.anchor=e);const o=iQ(t,"graphicFrame");if(o){const e=lQ(o,"nvGraphicFramePr");e.altText&&(i.altText=e.altText),e.title&&(i.frameTitle=e.title)}u.push(i)}}}if("twoCellAnchor"===n){const n=rQ(t);if(n){c.push(n);continue}const r=tQ(t,o);if(r){const t=r.mediaPath;if(e.has(t)){const n={data:await e.extract(t),type:r.type,anchor:r.anchor};void 0!==r.width&&(n.width=r.width),void 0!==r.height&&(n.height=r.height),void 0!==r.altText&&(n.altText=r.altText),void 0!==r.title&&(n.title=r.title),l.push(n)}}}else if("oneCellAnchor"===n){const n=sQ(t,o);if(n){const t=n.mediaPath;if(e.has(t)){const r={data:await e.extract(t),type:n.type,anchor:n.anchor};void 0!==n.width&&(r.width=n.width),void 0!==n.height&&(r.height=n.height),void 0!==n.altText&&(r.altText=n.altText),void 0!==n.title&&(r.title=n.title),l.push(r)}}}}return{images:l,textBoxes:c,chartRefs:u}}function ZT(e,t){let n,r;for(const t of e.children){if("string"==typeof t)continue;const e=t,i=e.local||e.tag;"from"===i?n=cQ(e):"to"===i&&(r=cQ(e))}if(n)return"twoCellAnchor"===t&&r?{from:n,to:r}:{from:n}}function eQ(e){for(const t of e.children){if("string"==typeof t)continue;const e=t;if("chart"===(e.local||e.tag)){const t=e.attrs["r:id"]??e.attrs.id;if(t)return t}const n=eQ(e);if(n)return n}}function tQ(e,t){let n,r,i,o,a=0,s=0,l=0,c=0;for(const t of e.children){if("string"==typeof t)continue;const e=t,u=e.local||e.tag;if("from"===u){const t=cQ(e);a=t.row,s=t.col}else if("to"===u){const t=cQ(e);l=t.row,c=t.col}else if("pic"===u){n=uQ(e);const t=lQ(e,"nvPicPr");r=t.altText,i=t.title,o=nQ(e)}}if(!n)return null;const u=t.get(n);if(!u)return null;const d=u.split(".").pop()?.toLowerCase()??"",f={mediaPath:u,type:XT[d]??"png",anchor:{from:{row:a,col:s},to:{row:l,col:c}}};return o&&(f.width=o.width,f.height=o.height),r&&(f.altText=r),i&&(f.title=i),f}function nQ(e){const t=iQ(e,"spPr");if(!t)return;const n=iQ(t,"xfrm");if(!n)return;const r=iQ(n,"ext");if(!r)return;const i=Number(r.attrs.cx),o=Number(r.attrs.cy);return i>0&&o>0?{width:Math.round(i/aQ),height:Math.round(o/aQ)}:void 0}function rQ(e){let t=0,n=0,r=0,i=0,o=null;for(const a of e.children){if("string"==typeof a)continue;const e=a,s=e.local||e.tag;if("from"===s){const r=cQ(e);t=r.row,n=r.col}else if("to"===s){const t=cQ(e);r=t.row,i=t.col}else if("sp"===s){const t=iQ(e,"nvSpPr");if(t){const n=iQ(t,"cNvSpPr");!n||"1"!==n.attrs.txBox&&"true"!==n.attrs.txBox||(o=e)}}}if(!o)return null;const a=iQ(o,"txBody");let s,l,c,u,d,f="";if(a){const e=[];for(const t of a.children){if("string"==typeof t)continue;if("p"===(t.local||t.tag)){const n=oQ(t);e.push(n.text),void 0!==n.fontSize&&void 0===s&&(s=n.fontSize),void 0!==n.bold&&void 0===l&&(l=n.bold),void 0!==n.color&&void 0===c&&(c=n.color)}}f=e.join("\n")}if(!f)return null;const h=iQ(o,"spPr");if(h){const e=iQ(h,"solidFill");if(e){const t=iQ(e,"srgbClr");t&&t.attrs.val&&(u=t.attrs.val)}const t=iQ(h,"ln");if(t){const e=iQ(t,"solidFill");if(e){const t=iQ(e,"srgbClr");t&&t.attrs.val&&(d=t.attrs.val)}}}const p={text:f,anchor:{from:{row:t,col:n},to:{row:r,col:i}}},g=nQ(o);g&&(p.width=g.width,p.height=g.height);const m=lQ(o,"nvSpPr");m.altText&&(p.altText=m.altText),m.title&&(p.title=m.title);const y={};let v=!1;return void 0!==s&&(y.fontSize=s,v=!0),void 0!==l&&(y.bold=l,v=!0),void 0!==c&&(y.color=c,v=!0),void 0!==u&&(y.fillColor=u,v=!0),void 0!==d&&(y.borderColor=d,v=!0),v&&(p.style=y),p}function iQ(e,t){for(const n of e.children){if("string"==typeof n)continue;const e=n;if((e.local||e.tag)===t)return e}return null}function oQ(e){let t,n,r,i="";for(const o of e.children){if("string"==typeof o)continue;const e=o;if("r"===(e.local||e.tag)){const o=iQ(e,"rPr");if(o){o.attrs.sz&&(t=Number(o.attrs.sz)/100),"1"!==o.attrs.b&&"true"!==o.attrs.b||(n=!0);const e=iQ(o,"solidFill");if(e){const t=iQ(e,"srgbClr");t&&t.attrs.val&&(r=t.attrs.val)}}const a=iQ(e,"t");a&&(i+=a.children.filter(e=>"string"==typeof e).join(""))}}return{text:i,fontSize:t,bold:n,color:r}}const aQ=9525;function sQ(e,t){let n,r,i,o=0,a=0,s=0,l=0;for(const t of e.children){if("string"==typeof t)continue;const e=t,c=e.local||e.tag;if("from"===c){const t=cQ(e);o=t.row,a=t.col}else if("ext"===c)s=Number(e.attrs.cx)||0,l=Number(e.attrs.cy)||0;else if("pic"===c){n=uQ(e);const t=lQ(e,"nvPicPr");r=t.altText,i=t.title}}if(!n)return null;const c=t.get(n);if(!c)return null;const u=c.split(".").pop()?.toLowerCase()??"",d={mediaPath:c,type:XT[u]??"png",anchor:{from:{row:o,col:a}}};return s>0&&(d.width=Math.round(s/aQ)),l>0&&(d.height=Math.round(l/aQ)),r&&(d.altText=r),i&&(d.title=i),d}function lQ(e,t){const n=iQ(e,t);if(!n)return{};const r=iQ(n,"cNvPr");if(!r)return{};const i={};return r.attrs.descr&&(i.altText=r.attrs.descr),r.attrs.title&&(i.title=r.attrs.title),i}function cQ(e){let t=0,n=0;for(const r of e.children){if("string"==typeof r)continue;const e=r,i=e.local||e.tag,o=e.children.filter(e=>"string"==typeof e).join("");"row"===i?t=Number(o)||0:"col"===i&&(n=Number(o)||0)}return{row:t,col:n}}function uQ(e){for(const t of e.children){if("string"==typeof t)continue;const e=t;if("blipFill"===(e.local||e.tag))for(const t of e.children){if("string"==typeof t)continue;const e=t;if("blip"===(e.local||e.tag))return e.attrs["r:embed"]??e.attrs["R:embed"]??dQ(e.attrs)}}}function dQ(e){for(const t of Object.keys(e))if(t.endsWith(":embed")&&e[t].startsWith("rId"))return e[t]}function fQ(e){const t=e.trim(),n=t.lastIndexOf("!");return-1===n?t:t.slice(n+1)}function hQ(e){const t=wE(e),n=t.attrs.name??"",r=t.attrs.displayName??n,i=t.attrs.ref??"";if(!n)return null;const o=t.attrs.totalsRowCount,a=void 0!==o&&"0"!==o,s=[];let l,c,u,d=!1;for(const e of t.children){if("string"==typeof e)continue;const t=e.local||e.tag;if("autoFilter"===t)d=!0;else if("tableColumns"===t)for(const t of e.children){if("string"==typeof t)continue;if("tableColumn"===(t.local||t.tag)){const e={name:t.attrs.name??""};t.attrs.totalsRowFunction&&(e.totalFunction=t.attrs.totalsRowFunction),t.attrs.totalsRowLabel&&(e.totalLabel=t.attrs.totalsRowLabel);for(const n of t.children){if("string"==typeof n)continue;if("totalsRowFormula"===(n.local||n.tag)){const t=n.children.filter(e=>"string"==typeof e).join("");t&&(e.totalFormula=t)}}s.push(e)}}else"tableStyleInfo"===t&&(l=e.attrs.name,c="1"===e.attrs.showRowStripes,u="1"===e.attrs.showColumnStripes)}const f={name:n,columns:s};return r&&r!==n&&(f.displayName=r),i&&(f.range=i),l&&(f.style=l),void 0!==c&&(f.showRowStripes=c),void 0!==u&&(f.showColumnStripes=u),f.showAutoFilter=d,a&&(f.showTotalRow=!0),f}async function pQ(e){if(function(){if(void 0===PM)try{new CompressionStream("deflate-raw"),PM="undefined"!=typeof ReadableStream}catch{PM=!1}return PM}())try{const t=new CompressionStream("deflate-raw"),n=t.writable.getWriter(),r=t.readable.getReader();n.write(e),n.close();const i=[];let o=0;for(;;){const{done:e,value:t}=await r.read();if(e)break;i.push(t),o+=t.length}const a=new Uint8Array(o);let s=0;for(const e of i)a.set(e,s),s+=e.length;return a}catch{}return TM(e)}class gQ{entries=[];paths=new Set;add(e,t,n){if(this.paths.has(e))throw new tE(`Duplicate ZIP entry: "${e}"`);this.paths.add(e);const r=n?.compress??!0;this.entries.push({path:e,data:t,compress:r})}async build(){const e=[];for(const t of this.entries){const n=t.data.length>0?wM(t.data):0;let r,i;t.compress&&t.data.length>0?(r=await pQ(t.data),i=8,r.length>=t.data.length&&(r=t.data,i=0)):(r=t.data,i=0),e.push({path:t.path,data:t.data,compressedData:r,method:i,entryCrc32:n})}const t=new TextEncoder,n=e.map(e=>t.encode(e.path));let r=0;for(let t=0;t<e.length;t++)r+=30+n[t].length+e[t].compressedData.length;let i=0;for(let t=0;t<e.length;t++)i+=46+n[t].length;const o=new Uint8Array(r+i+22),a=new DataView(o.buffer);let s=0;const l=[];for(let t=0;t<e.length;t++){const r=e[t],i=n[t];l.push(s),a.setUint32(s,67324752,!0),a.setUint16(s+4,20,!0),a.setUint16(s+6,0,!0),a.setUint16(s+8,r.method,!0),a.setUint16(s+10,0,!0),a.setUint16(s+12,33,!0),a.setUint32(s+14,r.entryCrc32,!0),a.setUint32(s+18,r.compressedData.length,!0),a.setUint32(s+22,r.data.length,!0),a.setUint16(s+26,i.length,!0),a.setUint16(s+28,0,!0),o.set(i,s+30),s+=30+i.length,o.set(r.compressedData,s),s+=r.compressedData.length}const c=s;for(let t=0;t<e.length;t++){const r=e[t],i=n[t];a.setUint32(s,33639248,!0),a.setUint16(s+4,20,!0),a.setUint16(s+6,20,!0),a.setUint16(s+8,0,!0),a.setUint16(s+10,r.method,!0),a.setUint16(s+12,0,!0),a.setUint16(s+14,33,!0),a.setUint32(s+16,r.entryCrc32,!0),a.setUint32(s+20,r.compressedData.length,!0),a.setUint32(s+24,r.data.length,!0),a.setUint16(s+28,i.length,!0),a.setUint16(s+30,0,!0),a.setUint16(s+32,0,!0),a.setUint16(s+34,0,!0),a.setUint16(s+36,0,!0),a.setUint32(s+38,0,!0),a.setUint32(s+42,l[t],!0),o.set(i,s+46),s+=46+i.length}const u=s-c;return a.setUint32(s,101010256,!0),a.setUint16(s+4,0,!0),a.setUint16(s+6,0,!0),a.setUint16(s+8,e.length,!0),a.setUint16(s+10,e.length,!0),a.setUint32(s+12,u,!0),a.setUint32(s+16,c,!0),a.setUint16(s+20,0,!0),o}}const mQ={png:"image/png",jpeg:"image/jpeg",gif:"image/gif",svg:"image/svg+xml",webp:"image/webp"};const yQ="http://schemas.openxmlformats.org/package/2006/relationships";function vQ(e,t){const n={};return void 0!==t.rgb&&(n.rgb=6===t.rgb.length?`FF${t.rgb}`:t.rgb),void 0!==t.theme&&(n.theme=t.theme),void 0!==t.tint&&(n.tint=t.tint),void 0!==t.indexed&&(n.indexed=t.indexed),XE(e,n)}function bQ(e){const t=[];return e.bold&&t.push(XE("b")),e.italic&&t.push(XE("i")),void 0!==e.underline&&!1!==e.underline&&(!0===e.underline||"single"===e.underline?t.push(XE("u")):t.push(XE("u",{val:e.underline}))),e.strikethrough&&t.push(XE("strike")),void 0!==e.charset&&t.push(XE("charset",{val:e.charset})),void 0!==e.family&&t.push(XE("family",{val:e.family})),e.scheme&&t.push(XE("scheme",{val:e.scheme})),e.color&&t.push(vQ("color",e.color)),void 0!==e.size&&t.push(XE("sz",{val:e.size})),e.name&&t.push(XE("name",{val:e.name})),e.vertAlign&&t.push(XE("vertAlign",{val:e.vertAlign})),ZE("font",void 0,t)}function AQ(e){if("pattern"===e.type){const t=[];e.fgColor&&t.push(vQ("fgColor",e.fgColor)),e.bgColor&&t.push(vQ("bgColor",e.bgColor));const n=ZE("patternFill",{patternType:e.pattern},t.length>0?t:void 0);return ZE("fill",void 0,[n])}const t=[];for(const n of e.stops)t.push(ZE("stop",{position:n.position},[vQ("color",n.color)]));const n={};void 0!==e.degree&&(n.degree=e.degree);const r=ZE("gradientFill",n,t);return ZE("fill",void 0,[r])}function wQ(e,t){return t?t.color?ZE(""+e,{style:t.style},[vQ("color",t.color)]):XE(e,{style:t.style}):XE(e)}function xQ(e){const t={};e.diagonalUp&&(t.diagonalUp=!0),e.diagonalDown&&(t.diagonalDown=!0);const n=[wQ("left",e.left),wQ("right",e.right),wQ("top",e.top),wQ("bottom",e.bottom),wQ("diagonal",e.diagonal)];return ZE("border",Object.keys(t).length>0?t:void 0,n)}function IQ(e){if(!e)return"";const t=[];return void 0!==e.rgb&&t.push(`rgb:${e.rgb}`),void 0!==e.theme&&t.push(`th:${e.theme}`),void 0!==e.tint&&t.push(`tint:${e.tint}`),void 0!==e.indexed&&t.push(`idx:${e.indexed}`),t.join("|")}function CQ(e){const t=[];return e.name&&t.push(`n:${e.name}`),void 0!==e.size&&t.push(`s:${e.size}`),e.bold&&t.push("b"),e.italic&&t.push("i"),void 0!==e.underline&&!1!==e.underline&&t.push(`u:${e.underline}`),e.strikethrough&&t.push("st"),e.color&&t.push(`c:${IQ(e.color)}`),e.vertAlign&&t.push(`va:${e.vertAlign}`),void 0!==e.family&&t.push(`fam:${e.family}`),void 0!==e.charset&&t.push(`cs:${e.charset}`),e.scheme&&t.push(`sch:${e.scheme}`),t.join(",")}function SQ(e){return"pattern"===e.type?`p:${e.pattern}|fg:${IQ(e.fgColor)}|bg:${IQ(e.bgColor)}`:`g:${e.degree??""}|${e.stops.map(e=>`${e.position}:${IQ(e.color)}`).join(";")}`}function EQ(e){return e?`${e.style}:${IQ(e.color)}`:""}function kQ(e){return[`l:${EQ(e.left)}`,`r:${EQ(e.right)}`,`t:${EQ(e.top)}`,`b:${EQ(e.bottom)}`,`d:${EQ(e.diagonal)}`,e.diagonalUp?"du":"",e.diagonalDown?"dd":""].join("|")}function BQ(e,t){const n=t?.reuseStyleIdentity??!1,r={name:e?.name??"Calibri",size:e?.size??11,...e},i=[{key:CQ(r),font:r}],o=new Map([[i[0].key,0]]),a=[{key:"p:none|fg:|bg:",fill:{type:"pattern",pattern:"none"}},{key:"p:gray125|fg:|bg:",fill:{type:"pattern",pattern:"gray125"}}],s=new Map([[a[0].key,0],[a[1].key,1]]),l={},c=[{key:kQ(l),border:l}],u=new Map([[c[0].key,0]]),d=[],f=new Map;let h=164;const p="nf:0|f:0|fl:0|b:0|a:|p:",g=[{key:p,numFmtId:0,fontId:0,fillId:0,borderId:0}],m=new Map([[p,0]]);function y(e){const t=f.get(e);if(void 0!==t)return t;const n=h++;return d.push({id:n,formatCode:e}),f.set(e,n),n}function v(e){if(!e)return"";const t=[];return e.horizontal&&t.push(`h:${e.horizontal}`),e.vertical&&t.push(`v:${e.vertical}`),e.wrapText&&t.push("w"),e.shrinkToFit&&t.push("sf"),void 0!==e.textRotation&&t.push(`r:${e.textRotation}`),void 0!==e.indent&&t.push(`i:${e.indent}`),e.readingOrder&&t.push(`ro:${e.readingOrder}`),t.join(",")}function b(e){if(!e)return"";const t=[];return void 0!==e.locked&&t.push(`l:${e.locked}`),void 0!==e.hidden&&t.push(`h:${e.hidden}`),t.join(",")}const A=[],w=new Map;const x=n?new WeakMap:void 0;function I(e,t){if(x&&!t){const t=x.get(e);if(void 0!==t)return t}const n=e.font?function(e){const t=CQ(e),n=o.get(t);if(void 0!==n)return n;const r=i.length;return i.push({key:t,font:DN(e)}),o.set(t,r),r}(e.font):0,r=e.fill?function(e){const t=SQ(e),n=s.get(t);if(void 0!==n)return n;const r=a.length;return a.push({key:t,fill:MN(e)}),s.set(t,r),r}(e.fill):0,l=e.border?function(e){const t=kQ(e),n=u.get(t);if(void 0!==n)return n;const r=c.length;return c.push({key:t,border:TN(e)}),u.set(t,r),r}(e.border):0,d=e.numFmt?y(e.numFmt):0,f=[`nf:${d}`,`f:${n}`,`fl:${r}`,`b:${l}`,`a:${v(e.alignment)}`,`p:${b(e.protection)}`,t?"cb:1":"cb:0"].join("|"),h=m.get(f);if(void 0!==h)return x&&!t&&x.set(e,h),h;const p=g.length;return g.push({key:f,numFmtId:d,fontId:n,fillId:r,borderId:l,alignment:e.alignment?{...e.alignment}:void 0,protection:e.protection?{...e.protection}:void 0,hasCheckboxFeature:t||void 0}),m.set(f,p),x&&!t&&x.set(e,p),p}function C(e){const t={};if(e.horizontal&&(t.horizontal=e.horizontal),e.vertical&&(t.vertical=e.vertical),e.wrapText&&(t.wrapText=!0),e.shrinkToFit&&(t.shrinkToFit=!0),void 0!==e.textRotation&&(t.textRotation=e.textRotation),void 0!==e.indent&&(t.indent=e.indent),e.readingOrder){const n={ltr:1,rtl:2,context:0};t.readingOrder=n[e.readingOrder]}return XE("alignment",t)}return{addStyle:function(e){return I(e,!1)},addCheckboxStyle:function(e){return I(e??{},!0)},addNumFmt:y,addDxf:function(e){const t=function(e){const t=[];return e.font&&t.push(`f:${CQ(e.font)}`),e.fill&&t.push(`fl:${SQ(e.fill)}`),e.border&&t.push(`b:${kQ(e.border)}`),e.numFmt&&t.push(`nf:${e.numFmt}`),e.alignment&&t.push(`a:${v(e.alignment)}`),t.join("|")}(e),n=w.get(t);if(void 0!==n)return n;const r=A.length;return A.push(e),w.set(t,r),r},hasCheckboxFeature:function(){for(const e of g)if(e.hasCheckboxFeature)return!0;return!1},toXml:function(){const e=[];if(d.length>0){const t=d.map(e=>XE("numFmt",{numFmtId:e.id,formatCode:e.formatCode}));e.push(ZE("numFmts",{count:d.length},t))}const t=i.map(e=>bQ(e.font));e.push(ZE("fonts",{count:i.length},t));const n=a.map(e=>AQ(e.fill));e.push(ZE("fills",{count:a.length},n));const r=c.map(e=>xQ(e.border));e.push(ZE("borders",{count:c.length},r)),e.push(ZE("cellStyleXfs",{count:1},[XE("xf",{numFmtId:0,fontId:0,fillId:0,borderId:0})]));const o=g.map(e=>{const t={numFmtId:e.numFmtId,fontId:e.fontId,fillId:e.fillId,borderId:e.borderId,xfId:0};0!==e.numFmtId&&(t.applyNumberFormat=!0),0!==e.fontId&&(t.applyFont=!0),0!==e.fillId&&(t.applyFill=!0),0!==e.borderId&&(t.applyBorder=!0);const n=void 0!==e.alignment,r=void 0!==e.protection,i=!0===e.hasCheckboxFeature;if(n&&(t.applyAlignment=!0),r&&(t.applyProtection=!0),n||r||i){const o=[];return n&&o.push(C(e.alignment)),r&&o.push(function(e){const t={};return void 0!==e.locked&&(t.locked=e.locked?1:0),void 0!==e.hidden&&(t.hidden=e.hidden?1:0),XE("protection",t)}(e.protection)),i&&o.push(ZE("extLst",void 0,ZE("ext",{uri:iN,"xmlns:xfpb":rN},XE("xfpb:xfComplement",{i:"0"})))),ZE("xf",t,o)}return XE("xf",t)});if(e.push(ZE("cellXfs",{count:g.length},o)),e.push(ZE("cellStyles",{count:1},[XE("cellStyle",{name:"Normal",xfId:0,builtinId:0})])),A.length>0){const t=A.map(e=>{const t=[];if(e.font&&t.push(bQ(e.font)),e.numFmt){const n=y(e.numFmt);t.push(XE("numFmt",{numFmtId:n,formatCode:e.numFmt}))}return e.fill&&t.push(AQ(e.fill)),e.border&&t.push(xQ(e.border)),e.alignment&&t.push(C(e.alignment)),ZE("dxf",void 0,t)});e.push(ZE("dxfs",{count:A.length},t))}else e.push(XE("dxfs",{count:0}));return e.push(XE("tableStyles",{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"})),ek("styleSheet",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"},e)}}}function FQ(e){const t=e;return t.length>=8&&137===t[0]&&80===t[1]&&78===t[2]&&71===t[3]?"png":t.length>=3&&255===t[0]&&216===t[1]&&255===t[2]?"jpeg":t.length>=6&&71===t[0]&&73===t[1]&&70===t[2]?"gif":t.length>=12&&82===t[0]&&73===t[1]&&70===t[2]&&70===t[3]&&87===t[8]&&69===t[9]&&66===t[10]&&80===t[11]?"webp":function(e){const t=e.subarray(0,DQ);let n="";for(let e=0;e<t.length;e++)n+=String.fromCharCode(t[e]);const r=n.trimStart().replace(/^/,"");return!!r.startsWith("<")&&/<svg[\s>]/i.test(r)}(t)?"svg":"png"}const DQ=1024;const MQ="http://schemas.openxmlformats.org/officeDocument/2006/relationships",NQ="http://schemas.openxmlformats.org/drawingml/2006/chart",TQ=9525,QQ={png:"png",jpeg:"jpeg",gif:"gif",svg:"svg",webp:"webp"},RQ={png:"image/png",jpeg:"image/jpeg",gif:"image/gif",svg:"image/svg+xml",webp:"image/webp"};function LQ(e,t,n,r,i=1){const o=[],a=[],s=[];for(let n=0;n<e.length;n++){const r=e[n],i=t+n,l=`rId${n+1}`,c=QQ[r.type]??"png",u=RQ[r.type]??"image/png",d=`xl/media/image${i}.${c}`,f=`../media/image${i}.${c}`;o.push({path:d,data:r.data,contentType:u}),a.push(XE("Relationship",{Id:l,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:f}));const h=r.width?r.width*TQ:3e6,p=r.height?r.height*TQ:2e6,g=r.anchor.from.col,m=r.anchor.from.row,y=r.anchor.to?.col??g+3,v=r.anchor.to?.row??m+5,b=ZE("xdr:from",void 0,[ZE("xdr:col",void 0,String(g)),ZE("xdr:colOff",void 0,"0"),ZE("xdr:row",void 0,String(m)),ZE("xdr:rowOff",void 0,"0")]),A=ZE("xdr:to",void 0,[ZE("xdr:col",void 0,String(y)),ZE("xdr:colOff",void 0,"0"),ZE("xdr:row",void 0,String(v)),ZE("xdr:rowOff",void 0,"0")]),w={id:n+2,name:`Picture ${n+1}`};r.title&&(w.title=r.title),r.altText&&(w.descr=r.altText);const x=ZE("xdr:nvPicPr",void 0,[XE("xdr:cNvPr",w),ZE("xdr:cNvPicPr",void 0,[XE("a:picLocks",{noChangeAspect:1})])]),I=ZE("xdr:blipFill",void 0,[XE("a:blip",{"r:embed":l}),ZE("a:stretch",void 0,[XE("a:fillRect")])]),C=ZE("xdr:spPr",void 0,[ZE("a:xfrm",void 0,[XE("a:off",{x:0,y:0}),XE("a:ext",{cx:h,cy:p})]),ZE("a:prstGeom",{prst:"rect"},[XE("a:avLst")])]),S=ZE("xdr:pic",void 0,[x,I,C]),E=ZE("xdr:twoCellAnchor",void 0,[b,A,S,XE("xdr:clientData")]);s.push(E)}if(n&&n.length>0){let t=e.length+2;for(let e=0;e<n.length;e++){const r=n[e],i=r.anchor.from.col,o=r.anchor.from.row,a=r.anchor.to?.col??i+3,l=r.anchor.to?.row??o+3,c=r.width?r.width*TQ:2e6,u=r.height?r.height*TQ:5e5,d=ZE("xdr:from",void 0,[ZE("xdr:col",void 0,String(i)),ZE("xdr:colOff",void 0,"0"),ZE("xdr:row",void 0,String(o)),ZE("xdr:rowOff",void 0,"0")]),f=ZE("xdr:to",void 0,[ZE("xdr:col",void 0,String(a)),ZE("xdr:colOff",void 0,"0"),ZE("xdr:row",void 0,String(l)),ZE("xdr:rowOff",void 0,"0")]),h={id:t++,name:`TextBox ${e+1}`};r.title&&(h.title=r.title),r.altText&&(h.descr=r.altText);const p=ZE("xdr:nvSpPr",void 0,[XE("xdr:cNvPr",h),ZE("xdr:cNvSpPr",{txBox:1},[])]),g=[ZE("a:xfrm",void 0,[XE("a:off",{x:0,y:0}),XE("a:ext",{cx:c,cy:u})]),ZE("a:prstGeom",{prst:"rect"},[XE("a:avLst")])],m=r.style?.fillColor??"FFFFFF";g.push(ZE("a:solidFill",void 0,[XE("a:srgbClr",{val:m})]));const y=r.style?.borderColor??"000000";g.push(ZE("a:ln",void 0,[ZE("a:solidFill",void 0,[XE("a:srgbClr",{val:y})])]));const v=ZE("xdr:spPr",void 0,g),b={lang:"en-US",sz:100*(r.style?.fontSize??11)};r.style?.bold&&(b.b=1);const A=[];r.style?.color&&A.push(ZE("a:solidFill",void 0,[XE("a:srgbClr",{val:r.style.color})]));const w=A.length>0?ZE("a:rPr",b,A):XE("a:rPr",b),x=ZE("xdr:txBody",void 0,[XE("a:bodyPr",{wrap:"square"}),ZE("a:p",void 0,[ZE("a:r",void 0,[w,ZE("a:t",void 0,YE(r.text))])])]),I=ZE("xdr:sp",void 0,[p,v,x]),C=ZE("xdr:twoCellAnchor",void 0,[d,f,I,XE("xdr:clientData")]);s.push(C)}}const l=[];if(r&&r.length>0){let t=e.length+(n?.length??0)+2;for(let n=0;n<r.length;n++){const o=r[n],c=i+n,u=`rId${e.length+n+1}`;a.push(XE("Relationship",{Id:u,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",Target:`../charts/chart${c}.xml`}));const d=o.anchor.from.col,f=o.anchor.from.row,h=o.anchor.to?.col??d+8,p=o.anchor.to?.row??f+15,g=ZE("xdr:from",void 0,[ZE("xdr:col",void 0,String(d)),ZE("xdr:colOff",void 0,"0"),ZE("xdr:row",void 0,String(f)),ZE("xdr:rowOff",void 0,"0")]),m=ZE("xdr:to",void 0,[ZE("xdr:col",void 0,String(h)),ZE("xdr:colOff",void 0,"0"),ZE("xdr:row",void 0,String(p)),ZE("xdr:rowOff",void 0,"0")]),y={id:t++,name:`Chart ${n+1}`};o.frameTitle&&(y.title=o.frameTitle),o.altText&&(y.descr=o.altText);const v=ZE("xdr:nvGraphicFramePr",void 0,[XE("xdr:cNvPr",y),ZE("xdr:cNvGraphicFramePr",void 0,[])]),b=ZE("xdr:xfrm",void 0,[XE("a:off",{x:0,y:0}),XE("a:ext",{cx:0,cy:0})]),A=ZE("a:graphic",void 0,ZE("a:graphicData",{uri:NQ},[XE("c:chart",{"xmlns:c":NQ,"xmlns:r":MQ,"r:id":u})])),w=ZE("xdr:graphicFrame",{macro:""},[v,b,A]),x=ZE("xdr:twoCellAnchor",{editAs:"oneCell"},[g,m,w,XE("xdr:clientData")]);s.push(x),l.push({globalChartIndex:c})}}return{drawingXml:ek("xdr:wsDr",{"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main","xmlns:r":MQ},s),drawingRels:ek("Relationships",{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},a),images:o,charts:l}}function PQ(e,t){const n=e.showTitle??Boolean(e.title),r=function(e){if(!1===e.legend)return null;if(void 0===e.legend)return"scatter"===e.type?"b":"r";switch(e.legend){case"top":return"t";case"bottom":return"b";case"left":return"l";case"right":return"r";case"topRight":return"tr"}}(e),i=[];n&&e.title&&i.push(function(e,t,n,r,i,o,a,s,l,c,u,d,f,h,p,g,m){const y=void 0===n?0:n*Yk,v=void 0===r?1400:100*r,b=i?1:0,A=!0===o?1:void 0,w=!0===s?"sngStrike":void 0,x=!0===l?"sng":void 0,I=void 0!==a?ZE("a:solidFill",void 0,[Ek(a)]):void 0,C=c?XE("a:latin",{typeface:c}):void 0,S=[];I&&S.push(I),C&&S.push(C);const E=S.length>0?ZE("a:defRPr",{sz:v,b:b,i:A,u:x,strike:w},S):XE("a:defRPr",{sz:v,b:b,i:A,u:x,strike:w}),k=S.length>0?ZE("a:rPr",{lang:"en-US",sz:v,b:b,i:A,u:x,strike:w},S):XE("a:rPr",{lang:"en-US",sz:v,b:b,i:A,u:x,strike:w}),B=Hk(u),F=[ZE("c:tx",void 0,[ZE("c:rich",void 0,[ZE("a:bodyPr",{rot:y,spcFirstLastPara:1,vertOverflow:"ellipsis",wrap:"square",anchor:"ctr",anchorCtr:1},[]),XE("a:lstStyle"),ZE("a:p",void 0,[ZE("a:pPr",void 0,[E]),ZE("a:r",void 0,[k,ZE("a:t",void 0,YE(e))])])])])];void 0!==B&&F.push(B),F.push(XE("c:overlay",{val:t?1:0}));const D=Jk(d,f,h,p,g,m);return void 0!==D&&F.push(D),ZE("c:title",void 0,F)}(e.title,function(e){return!0===e.titleOverlay}(e),function(e){return Xk(e.titleRotation)}(e),function(e){return Kk(e.titleFontSize)}(e),function(e){return Zk(e.titleBold)}(e),function(e){return eB(e.titleItalic)}(e),function(e){return tB(e.titleColor)}(e),function(e){return nB(e.titleStrike)}(e),function(e){return rB(e.titleUnderline)}(e),function(e){return function(e){if("string"!=typeof e)return;const t=e.trim();return 0!==t.length?t:void 0}(e.titleFontFamily)}(e),function(e){return Uk(e.titleLayout)}(e),function(e){return tB(e.titleFillColor)}(e),function(e){return tB(e.titleBorderColor)}(e),function(e){return Nk(e.titleBorderWidth)}(e),function(e){return Tk(e.titleBorderDash)}(e),function(e){return gk(e.titleBorderCap)}(e),function(e){return mk(e.titleBorderCompound)}(e))),i.push(XE("c:autoTitleDeleted",{val:dF(e)?1:0}));const o=function(e){if(void 0===e)return;const t=[],n=Lk(e.rotX,-90,90);void 0!==n&&t.push(XE("c:rotX",{val:n}));const r=Lk(e.hPercent,5,500);void 0!==r&&t.push(XE("c:hPercent",{val:r}));const i=Lk(e.rotY,0,360);void 0!==i&&t.push(XE("c:rotY",{val:i}));const o=Lk(e.depthPercent,20,2e3);void 0!==o&&t.push(XE("c:depthPercent",{val:o})),!0===e.rAngAx?t.push(XE("c:rAngAx",{val:1})):!1===e.rAngAx&&t.push(XE("c:rAngAx",{val:0}));const a=Lk(e.perspective,0,240);return void 0!==a&&t.push(XE("c:perspective",{val:a})),ZE("c:view3D",void 0,t)}(e.view3D);void 0!==o&&i.push(o);const a=function(e){if("number"==typeof e&&Number.isFinite(e)&&Number.isInteger(e)&&!(e<=0||e>100))return ZE("c:floor",void 0,[XE("c:thickness",{val:e})])}(e.floorThickness);void 0!==a&&i.push(a);const s=function(e){if("number"==typeof e&&Number.isFinite(e)&&Number.isInteger(e)&&!(e<=0||e>100))return ZE("c:sideWall",void 0,[XE("c:thickness",{val:e})])}(e.sideWallThickness);void 0!==s&&i.push(s);const l=function(e){if("number"==typeof e&&Number.isFinite(e)&&Number.isInteger(e)&&!(e<=0||e>100))return ZE("c:backWall",void 0,[XE("c:thickness",{val:e})])}(e.backWallThickness);void 0!==l&&i.push(l),i.push(pD(e,t)),r&&i.push(aB(r,function(e){return!0===e.legendOverlay}(e),function(e){const t=e.legendEntries;if(!Array.isArray(t)||0===t.length)return[];const n=new Map;for(const e of t){if(!e||"object"!=typeof e)continue;const t=e.idx;if("number"!=typeof t||!Number.isFinite(t))continue;if(!Number.isInteger(t)||t<0)continue;const r={idx:t,delete:!0===e.delete};if("number"==typeof e.fontSize&&Number.isFinite(e.fontSize)){const t=Math.round(2*e.fontSize)/2;t>=1&&t<=oB&&(r.fontSize=t)}if(!0===e.bold?r.bold=!0:!1===e.bold&&(r.bold=!1),!0===e.italic?r.italic=!0:!1===e.italic&&(r.italic=!1),!0===e.underline?r.underline=!0:!1===e.underline&&(r.underline=!1),!0===e.strikethrough?r.strikethrough=!0:!1===e.strikethrough&&(r.strikethrough=!1),void 0!==e.color){const t=Sk(e.color);void 0!==t&&(r.color=t)}if("string"==typeof e.fontFamily){const t=e.fontFamily.trim();t.length>0&&(r.fontFamily=t)}n.set(t,r)}return Array.from(n.values()).sort((e,t)=>e.idx-t.idx)}(e),function(e){return Kk(e.legendFontSize)}(e),function(e){const t=e.legendBold;return!0===t||!1!==t&&void 0}(e),function(e){const t=e.legendItalic;return!0===t||!1!==t&&void 0}(e),function(e){const t=e.legendUnderline;return!0===t||!1!==t&&void 0}(e),function(e){if(!0===e.legendStrikethrough)return!0}(e),function(e){return tB(e.legendFontColor)}(e),function(e){return function(e){if("string"!=typeof e)return;const t=e.trim();return 0!==t.length?t:void 0}(e.legendFontFamily)}(e),function(e){return Uk(e.legendLayout)}(e),function(e){return tB(e.legendFillColor)}(e),function(e){return tB(e.legendBorderColor)}(e),function(e){return Nk(e.legendBorderWidth)}(e),function(e){return Tk(e.legendBorderDash)}(e),gk(e.legendBorderCap),mk(e.legendBorderCompound))),i.push(XE("c:plotVisOnly",{val:$Q(e)?1:0})),i.push(XE("c:dispBlanksAs",{val:UQ(e)})),i.push(XE("c:showDLblsOverMax",{val:HQ(e)?1:0}));const c=ZE("c:chart",void 0,i),u=[];(function(e){return!0===e.date1904})(e)&&u.push(XE("c:date1904",{val:1}));const d=function(e){const t=e.lang;return"string"!=typeof t?void 0:/^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$/.test(t)?t:void 0}(e);void 0!==d&&u.push(XE("c:lang",{val:d})),u.push(XE("c:roundedCorners",{val:zQ(e)?1:0}));const f=function(e){const t=e.style;return"number"!=typeof t?void 0:Number.isInteger(t)?t<1||t>48?void 0:t:void 0}(e);void 0!==f&&u.push(XE("c:style",{val:f}));const h=function(e){const t=e.protection;if(void 0===t||!1===t)return;if(!0===t)return{chartObject:!1,data:!1,formatting:!1,selection:!1,userInterface:!1};return{chartObject:!0===t.chartObject,data:!0===t.data,formatting:!0===t.formatting,selection:!0===t.selection,userInterface:!0===t.userInterface}}(e);void 0!==h&&u.push(function(e){return ZE("c:protection",void 0,[XE("c:chartObject",{val:e.chartObject?1:0}),XE("c:data",{val:e.data?1:0}),XE("c:formatting",{val:e.formatting?1:0}),XE("c:selection",{val:e.selection?1:0}),XE("c:userInterface",{val:e.userInterface?1:0})])}(h)),u.push(c);const p=function(e){const t=(s=e.chartSpaceFillColor,tB(s)),n=function(e){return tB(e)}(e.chartSpaceBorderColor),r=Nk(e.chartSpaceBorderWidth),i=Tk(e.chartSpaceBorderDash),o=gk(e.chartSpaceBorderCap),a=mk(e.chartSpaceBorderCompound);var s;if(void 0===t&&void 0===n&&void 0===r&&void 0===i&&void 0===o&&void 0===a)return;const l=[];void 0!==t&&l.push(ZE("a:solidFill",void 0,[Ek(t)]));if(void 0!==n||void 0!==r||void 0!==i||void 0!==o||void 0!==a){const e={};void 0!==r&&(e.w=Math.round(r*uk)),void 0!==o&&(e.cap=o),void 0!==a&&(e.cmpd=a);const t=[];void 0!==n&&t.push(ZE("a:solidFill",void 0,[Ek(n)])),void 0!==i&&t.push(XE("a:prstDash",{val:i})),l.push(0===t.length?XE("a:ln",e):ZE("a:ln",Object.keys(e).length>0?e:void 0,t))}return ZE("c:spPr",void 0,l)}(e);void 0!==p&&u.push(p);return{chartXml:ek("c:chartSpace",{"xmlns:c":"http://schemas.openxmlformats.org/drawingml/2006/chart","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},u),chartRels:ek("Relationships",{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},[])}}const OQ=new Set(["gap","zero","span"]);function UQ(e){const t=e.dispBlanksAs;return t&&OQ.has(t)?t:"gap"}function $Q(e){return"boolean"!=typeof e.plotVisOnly||e.plotVisOnly}function HQ(e){return"boolean"!=typeof e.showDLblsOverMax||e.showDLblsOverMax}function zQ(e){return"boolean"==typeof e.roundedCorners&&e.roundedCorners}const qQ="http://schemas.openxmlformats.org/spreadsheetml/2006/main";function jQ(e,t){const n=[];for(const[t,r]of e){if(!r.comment)continue;const[e,i]=t.split(","),o=parseInt(e,10),a=parseInt(i,10),s=rT(o,a),l=r.comment.author??"",c=r.comment.text;n.push({ref:s,row:o,col:a,author:l,text:c})}if(0===n.length)return null;n.sort((e,t)=>e.row-t.row||e.col-t.col);const r=new Map;for(const e of n)r.has(e.author)||r.set(e.author,r.size);const i=function(e,t){const n=[];for(const[e]of t)n.push(ZE("author",void 0,YE(e)));const r=ZE("authors",void 0,n),i=[];for(const n of e){const e=t.get(n.author)??0,r=ZE("text",void 0,[ZE("r",void 0,[ZE("t",void 0,YE(n.text))])]);i.push(ZE("comment",{ref:n.ref,authorId:e},[r]))}const o=ZE("commentList",void 0,i);return ek("comments",{xmlns:qQ},[r,o])}(n,r),o=function(e,t){const n=[];n.push('<xml xmlns:v="urn:schemas-microsoft-com:vml"',' xmlns:o="urn:schemas-microsoft-com:office:office"',' xmlns:x="urn:schemas-microsoft-com:office:excel">'),n.push('<o:shapelayout v:ext="edit">',`<o:idmap v:ext="edit" data="${t+1}"/>`,"</o:shapelayout>"),n.push('<v:shapetype id="_x0000_t202" coordsize="21600,21600" o:spt="202"',' path="m,l,21600r21600,l21600,xe">','<v:stroke joinstyle="miter"/>','<v:path gradientshapeok="t" o:connecttype="rect"/>',"</v:shapetype>");const r=1024*(t+1)+1;for(let t=0;t<e.length;t++){const i=e[t],o=r+t,a=i.col+1,s=i.row,l=a+2,c=s+4,u=48*(i.col+1),d=15*i.row;n.push(`<v:shape id="_x0000_s${o}" type="#_x0000_t202"`,` style="position:absolute;margin-left:${u}pt;margin-top:${d}pt;`,`width:108pt;height:59.25pt;z-index:${t+1};visibility:hidden"`,' fillcolor="#ffffe1" o:insetmode="auto">','<v:fill color2="#ffffe1"/>','<v:shadow on="t" color="black" obscured="t"/>','<v:path o:connecttype="none"/>','<v:textbox style="mso-direction-alt:auto">','<div style="text-align:left"/>',"</v:textbox>",'<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",`<x:Anchor>${a},15,${s},2,${l},31,${c},4</x:Anchor>`,"<x:AutoFill>False</x:AutoFill>",`<x:Row>${i.row}</x:Row>`,`<x:Column>${i.col}</x:Column>`,"</x:ClientData>","</v:shape>")}return n.push("</xml>"),n.join("")}(n,t);return{commentsXml:i,vmlXml:o,comments:n}}function WQ(e,t,n){const r=e.displayName??e.name,i=e.range??"",o=!1!==e.showAutoFilter,a=!0===e.showTotalRow,s={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",id:t,name:e.name,displayName:r,ref:i};a?s.totalsRowCount=1:s.totalsRowShown=0;const l=[];if(o){const e=a?function(e){const t=e.indexOf(":");if(-1===t)return e;const n=e.slice(t+1);let r=n.length;for(;r>0&&n.charCodeAt(r-1)>=48&&n.charCodeAt(r-1)<=57;)r--;const i=n.slice(0,r),o=parseInt(n.slice(r),10);return isNaN(o)||o<=1?e:`${e.slice(0,t+1)}${i}${o-1}`}(i):i;l.push(XE("autoFilter",{ref:e}))}const c=[];for(let t=0;t<e.columns.length;t++){const n=e.columns[t],r={id:t+1,name:n.name};if(a&&n.totalFunction&&(r.totalsRowFunction=n.totalFunction),a&&n.totalLabel&&(r.totalsRowLabel=n.totalLabel),a&&"custom"===n.totalFunction&&n.totalFormula){const e=ZE("totalsRowFormula",void 0,YE(n.totalFormula));c.push(ZE("tableColumn",r,[e]))}else c.push(XE("tableColumn",r))}l.push(ZE("tableColumns",{count:e.columns.length},c));const u=e.style??"TableStyleMedium2",d=!1!==e.showRowStripes,f=!0===e.showColumnStripes;l.push(XE("tableStyleInfo",{name:u,showFirstColumn:0,showLastColumn:0,showRowStripes:d?1:0,showColumnStripes:f?1:0}));return{tableXml:ek("table",s,l),tableId:t}}function _Q(e,t){const n=e.columns.length;let r=0;if(t.rows)r=t.rows.length;else if(t.data){const e=t.columns?.some(e=>e.header);r=t.data.length+(e?1:0)}e.showTotalRow&&(r+=1),r<1&&(r=1);return`${tT(0)}1:${tT(n-1)}${r}`}const VQ="http://schemas.openxmlformats.org/spreadsheetml/2006/main",YQ="http://schemas.openxmlformats.org/officeDocument/2006/relationships",GQ="http://schemas.openxmlformats.org/package/2006/relationships",JQ="http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheRecords",XQ="http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition";function KQ(e,t,n,r=1){const i=function(e,t){const n=t.fieldNames.map((e,n)=>({index:n,name:e,axis:"hidden",axisOrder:0,kind:eR(t.dataRows,n)})),r=(e,t)=>{if(e)for(let r=0;r<e.length;r++){const i=n.find(t=>t.name===e[r]);i&&(i.axis=t,i.axisOrder=r)}};r(e.rows,"row"),r(e.columns,"col"),r(e.pages,"page");const i=[];for(let r=0;r<e.values.length;r++){const o=e.values[r],a=t.fieldNames.indexOf(o.field);if(-1===a)continue;n[a].axis="data",n[a].axisOrder=r;const s=o.function??"sum",l={fieldIndex:a,function:s,displayName:o.displayName??oR(s,o.field)};void 0!==o.numberFormat&&(l.numberFormat=o.numberFormat),i.push(l)}for(const e of n){if("data"===e.axis||"hidden"===e.axis)continue;if("string"!==e.kind)continue;const n=new Set,r=[];for(const i of t.dataRows){const t=i[e.index],o=null==t?"":String(t);n.has(o)||(n.add(o),r.push(o))}e.sharedStrings=r,e.sharedIndex=new Map(r.map((e,t)=>[e,t]))}return{fields:n,dataFieldDefs:i}}(e,t),o=function(e,t){const n=ZE("cacheSource",{type:"worksheet"},[XE("worksheetSource",{ref:e.ref,sheet:e.sheetName})]),r=[];for(const n of t.fields)r.push(tR(n,e.dataRows));return ek("pivotCacheDefinition",{xmlns:VQ,"xmlns:r":YQ,"r:id":"rId1",refreshOnLoad:1,refreshedBy:"hucre",refreshedDate:0,createdVersion:6,refreshedVersion:6,minRefreshableVersion:3,recordCount:e.dataRows.length},[n,ZE("cacheFields",{count:t.fields.length},r)])}(t,i),a=function(e){return ek("Relationships",{xmlns:GQ},[XE("Relationship",{Id:"rId1",Type:JQ,Target:`pivotCacheRecords${e}.xml`})])}(r),s=function(e,t){const n=[];for(const r of e.dataRows){const e=[];for(const n of t.fields)e.push(nR(r[n.index],n));n.push(ZE("r",void 0,e))}return ek("pivotCacheRecords",{xmlns:VQ,"xmlns:r":YQ,count:e.dataRows.length},n)}(t,i),l=function(e,t,n){const r=t.fields.filter(e=>"row"===e.axis).sort((e,t)=>e.axisOrder-t.axisOrder),i=t.fields.filter(e=>"col"===e.axis).sort((e,t)=>e.axisOrder-t.axisOrder),o=t.fields.filter(e=>"page"===e.axis).sort((e,t)=>e.axisOrder-t.axisOrder),a=e.targetCell??"A1",s=e.styleName??"PivotStyleLight16",l=e.dataCaption??"Values",c=function(e,t,n,r){const{col:i,row:o}=function(e){const t=/^([A-Z]+)(\d+)$/i.exec(e.trim());if(!t)throw new Error(`Invalid pivot targetCell "${e}" — expected an A1-style reference`);const n=t[1].toUpperCase();let r=0;for(let e=0;e<n.length;e++)r=26*r+(n.charCodeAt(e)-64);return{col:r-1,row:parseInt(t[2],10)-1}}(e),a=0,s=Math.max(1,n)+(r.dataFieldDefs.length>1?1:0),l=Math.max(1,t),c=Math.max(2,t+Math.max(1,r.dataFieldDefs.length)),u=s+2,d=iR(o,i),f=iR(o+u-1,i+c-1);return{ref:`${d}:${f}`,firstHeaderRow:a,firstDataRow:s,firstDataCol:l}}(a,r.length,i.length,t),u=[];u.push(XE("location",c));const d=[];for(const e of t.fields)d.push(rR(e));u.push(ZE("pivotFields",{count:t.fields.length},d)),r.length>0&&(u.push(ZE("rowFields",{count:r.length},r.map(e=>XE("field",{x:e.index})))),u.push(ZE("rowItems",{count:1},[ZE("i",void 0,[XE("x")])])));if(i.length>0)u.push(ZE("colFields",{count:i.length},i.map(e=>XE("field",{x:e.index})))),u.push(ZE("colItems",{count:1},[ZE("i",void 0,[XE("x")])]));else if(t.dataFieldDefs.length>1){u.push(ZE("colFields",{count:1},[XE("field",{x:-2})]));const e=[];for(let n=0;n<t.dataFieldDefs.length;n++)e.push(ZE("i",0===n?void 0:{i:n},[XE("x",{v:n})]));u.push(ZE("colItems",{count:t.dataFieldDefs.length},e))}o.length>0&&u.push(ZE("pageFields",{count:o.length},o.map(e=>XE("pageField",{fld:e.index,hier:-1}))));if(t.dataFieldDefs.length>0){const e=[];for(const n of t.dataFieldDefs){const t={name:n.displayName,fld:n.fieldIndex,baseField:0,baseItem:0};"sum"!==n.function&&(t.subtotal=n.function),void 0!==n.numberFormat&&(t.numFmtId=0),e.push(XE("dataField",t))}u.push(ZE("dataFields",{count:t.dataFieldDefs.length},e))}return u.push(XE("pivotTableStyleInfo",{name:s,showRowHeaders:1,showColHeaders:1,showRowStripes:0,showColStripes:0,showLastColumn:1})),ek("pivotTableDefinition",{xmlns:VQ,"xmlns:r":YQ,name:e.name,cacheId:n,applyNumberFormats:0,applyBorderFormats:0,applyFontFormats:0,applyPatternFormats:0,applyAlignmentFormats:0,applyWidthHeightFormats:1,dataCaption:l,updatedVersion:6,minRefreshableVersion:3,useAutoFormatting:1,itemPrintTitles:1,createdVersion:6,indent:0,outline:1,outlineData:1,multipleFieldFilters:0},u)}(e,i,n),c=function(e){return ek("Relationships",{xmlns:GQ},[XE("Relationship",{Id:"rId1",Type:XQ,Target:`../pivotCache/pivotCacheDefinition${e}.xml`})])}(r);return{cacheDefinitionXml:o,cacheDefinitionRels:a,cacheRecordsXml:s,pivotTableXml:l,pivotTableRels:c}}function ZQ(e,t,n){if(n.length<2)throw new Error(`Pivot "${e.name}" source sheet "${t}" needs at least a header row plus one data row (got ${n.length}).`);const r=n[0],i=[];for(let e=0;e<r.length;e++){const t=r[e];i.push(null==t?`Column${e+1}`:String(t))}const o=[];for(let e=1;e<n.length;e++){const t=n[e],r=[];for(let e=0;e<i.length;e++)r.push(e<t.length?t[e]:null);o.push(r)}const a=new Set(i),s=[...e.rows??[],...e.columns??[],...e.pages??[]];for(const t of e.values)s.push(t.field);for(const t of s)if(!a.has(t))throw new Error(`Pivot "${e.name}" references field "${t}" which is not in the source header (have: ${i.join(", ")}).`);const l=e.sourceRange??function(e,t){if(e<=0||t<=0)throw new Error("Pivot source range must contain at least one column and row");const n=iR(0,0),r=iR(t-1,e-1);return`${n}:${r}`}(i.length,n.length);return{sheetName:t,fieldNames:i,dataRows:o,ref:l}}function eR(e,t){for(const n of e){const e=n[t];if(null!=e&&""!==e&&("number"!=typeof e||!Number.isFinite(e)))return"string"}return"number"}function tR(e,t){if("string"===e.kind){const t=[];if(e.sharedStrings)for(const n of e.sharedStrings)t.push(XE("s",{v:n}));return ZE("cacheField",{name:e.name,numFmtId:0},[ZE("sharedItems",{count:t.length},t)])}let n=1/0,r=-1/0,i=!1;for(const o of t){const t=o[e.index];null!=t&&""!==t?"number"==typeof t&&(t<n&&(n=t),t>r&&(r=t)):i=!0}const o={containsSemiMixedTypes:0,containsString:0,containsNumber:1,containsInteger:Number.isInteger(n)&&Number.isInteger(r)?1:0};return i&&(o.containsBlank=1),Number.isFinite(n)&&(o.minValue=n),Number.isFinite(r)&&(o.maxValue=r),ZE("cacheField",{name:e.name,numFmtId:0},[XE("sharedItems",o)])}function nR(e,t){if(null==e||""===e)return XE("m");if("string"===t.kind){const n=t.sharedIndex?.get(String(e));return void 0!==n?XE("x",{v:n}):XE("s",{v:String(e)})}return"number"==typeof e&&Number.isFinite(e)?XE("n",{v:e}):"boolean"==typeof e?XE("b",{v:e?1:0}):XE("s",{v:String(e)})}function rR(e){if("data"===e.axis)return XE("pivotField",{dataField:1,showAll:0});if("hidden"===e.axis)return XE("pivotField",{showAll:0});const t="row"===e.axis?"axisRow":"col"===e.axis?"axisCol":"axisPage",n=[];if(e.sharedStrings)for(let t=0;t<e.sharedStrings.length;t++)n.push(XE("item",{x:t}));return n.push(XE("item",{t:"default"})),ZE("pivotField",{axis:t,showAll:0},[ZE("items",{count:n.length},n)])}function iR(e,t){let n=t,r="";for(;n>=0;)r=String.fromCharCode(65+n%26)+r,n=Math.floor(n/26)-1;return`${r}${e+1}`}function oR(e,t){return`${"sum"===e?"Sum":"count"===e?"Count":"average"===e?"Average":"max"===e?"Max":"min"===e?"Min":"product"===e?"Product":"countNums"===e?"Count Nums":"stdDev"===e?"StdDev":"stdDevp"===e?"StdDevp":"var"===e?"Var":"Varp"} of ${t}`}function aR(e){return e.toISOString().replace(/\.\d{3}Z$/,"Z")}const sR=new TextEncoder;async function lR(e){const t=ZN(e.sheets),{defaultFont:n,dateSystem:r,namedRanges:i,activeSheet:o,workbookProtection:a}=e;!function(e){const t=new Map;for(let n=0;n<e.length;n++){const r=e[n].name;JN(r,n);const i=r.toLowerCase(),o=t.get(i);if(void 0!==o)throw new rE(`Duplicate sheet name "${r}" (sheets ${o+1} and ${n+1}); Excel compares sheet names case-insensitively`);t.set(i,n)}}(t);const s=function(e){const t=e.properties;if(t?.description)return t;for(const n of e.sheets){const e=n.a11y?.summary;if(e&&e.trim().length>0)return{...t,description:e}}return t}(e),l=BQ(n,{reuseStyleIdentity:!0}),c=function(){const e=[],t=new Map;return{add:function(n){const r=t.get(n);if(void 0!==r)return r;const i=e.length;return e.push(n),t.set(n,i),i},getAll:function(){return e},count:function(){return e.length}}}();let u=1;const d=[];for(const e of t)e.tables&&e.tables.length>0?(d.push(u),u+=e.tables.length):d.push(void 0);let f=1;const h=[];for(const e of t)e.pivotTables&&e.pivotTables.length>0?(h.push(f),f+=e.pivotTables.length):h.push(void 0);const p=[];for(let n=0;n<t.length;n++){const i=uT(t[n],l,c,r,d[n],"inline"===e.stringMode,h[n]);p.push(i)}const g=c.count()>0,m=[],y=[],v=new Set;let b=1,A=1;const w=[],x=[];for(let e=0;e<t.length;e++){const n=t[e],r=n.images&&n.images.length>0,i=n.textBoxes&&n.textBoxes.length>0,o=n.charts&&n.charts.length>0;if(r||i||o){const t=LQ(n.images??[],b,n.textBoxes,n.charts,A);m.push(t),y.push(e+1);for(const e of t.images){const t=e.path.split(".").pop();t&&v.add(t)}n.images&&(b+=n.images.length);const r=[];if(n.charts){for(let e=0;e<n.charts.length;e++){const t=PQ(n.charts[e],n.name),i=A+e;r.push({globalIndex:i,xml:t.chartXml,rels:t.chartRels}),x.push(i)}A+=n.charts.length}w.push(r)}else m.push(null),w.push([])}const{paths:I,nextIndex:C}=function(e,t,n){const r=[];let i=t;for(const t of e){if(!t.backgroundImage){r.push(null);continue}const e=FQ(t.backgroundImage);r.push(`xl/media/image${i}.${e}`),n.add(e),i++}return{paths:r,nextIndex:i}}(t,b,v);b=C;const S=[],E=[];for(let e=0;e<t.length;e++){const n=t[e];if(n.cells){const t=jQ(n.cells,e);t?(S.push(t),E.push(e+1)):S.push(null)}else S.push(null)}const k=[];for(const e of p)for(const t of e.tables)k.push(t.globalTableIndex);const B=[];for(let e=0;e<t.length;e++){const n=t[e];if(!n.pivotTables||0===n.pivotTables.length)continue;const r=h[e];if(void 0!==r)for(let e=0;e<n.pivotTables.length;e++){const i=n.pivotTables[e],o=i.sourceSheet??n.name,a=t.find(e=>e.name===o);if(!a)throw new Error(`Pivot "${i.name}" sourceSheet "${o}" not found in workbook`);const s=cR(a),l=r+e,c=KQ(i,ZQ(i,o,s),l-1,l);B.push({parts:c,globalIndex:l})}}const F=B.map(e=>e.globalIndex),D=B.map(e=>({rId:`rIdPivot${e.globalIndex}`,target:`pivotCache/pivotCacheDefinition${e.globalIndex}.xml`})),M=B.map((e,t)=>({cacheId:e.globalIndex-1,rId:D[t].rId})),N=new gQ,T=function(e){if(!e?.custom)return null;const t=Object.entries(e.custom);if(0===t.length)return null;const n=[];let r=2;for(const[e,i]of t){let t;if("string"==typeof i)t=ZE("vt:lpwstr",void 0,YE(i));else if("number"==typeof i)t=Number.isInteger(i)?ZE("vt:i4",void 0,String(i)):ZE("vt:r8",void 0,String(i));else if("boolean"==typeof i)t=ZE("vt:bool",void 0,i?"true":"false");else{if(!(i instanceof Date))continue;t=ZE("vt:filetime",void 0,aR(i))}n.push(ZE("property",{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r++,name:e},t))}return 0===n.length?null:ek("Properties",{xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},n)}(s),Q=null!==T,R=void 0!==e.vbaProject&&e.vbaProject.length>0,L=l.hasCheckboxFeature(),P=p.some(e=>e.hasDynamicArray),O={sheetCount:t.length,hasSharedStrings:g,drawingIndices:y.length>0?y:void 0,chartIndices:x.length>0?x:void 0,imageExtensions:v.size>0?v:void 0,commentIndices:E.length>0?E:void 0,tableIndices:k.length>0?k:void 0,pivotTableIndices:F.length>0?F:void 0,pivotCacheDefinitionIndices:F.length>0?F:void 0,pivotCacheRecordIndices:F.length>0?F:void 0,hasCoreProps:!0,hasAppProps:!0,hasCustomProps:Q,hasMacros:R,hasFeaturePropertyBag:L,hasMetadata:P};N.add("[Content_Types].xml",sR.encode(function(e,t){let n;n="number"==typeof e?{sheetCount:e,hasSharedStrings:t??!1}:e;const r=[];if(r.push(XE("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"})),r.push(XE("Default",{Extension:"xml",ContentType:"application/xml"})),n.hasMacros&&r.push(XE("Default",{Extension:"bin",ContentType:"application/vnd.ms-office.vbaProject"})),n.imageExtensions)for(const e of n.imageExtensions){const t=mQ[e];t&&r.push(XE("Default",{Extension:e,ContentType:t}))}r.push(XE("Override",{PartName:"/xl/workbook.xml",ContentType:n.hasMacros?"application/vnd.ms-excel.sheet.macroEnabled.main+xml":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}));for(let e=1;e<=n.sheetCount;e++)r.push(XE("Override",{PartName:`/xl/worksheets/sheet${e}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"}));if(r.push(XE("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"})),r.push(XE("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"})),n.hasSharedStrings&&r.push(XE("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"})),n.drawingIndices)for(const e of n.drawingIndices)r.push(XE("Override",{PartName:`/xl/drawings/drawing${e}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"}));if(n.chartIndices)for(const e of n.chartIndices)r.push(XE("Override",{PartName:`/xl/charts/chart${e}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawingml.chart+xml"}));if(n.commentIndices&&n.commentIndices.length>0&&r.push(XE("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"})),n.commentIndices)for(const e of n.commentIndices)r.push(XE("Override",{PartName:`/xl/comments${e}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"}));if(n.tableIndices)for(const e of n.tableIndices)r.push(XE("Override",{PartName:`/xl/tables/table${e}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"}));if(n.threadedCommentSheetIndices)for(const e of n.threadedCommentSheetIndices)r.push(XE("Override",{PartName:`/xl/threadedComments/threadedComment${e}.xml`,ContentType:"application/vnd.ms-excel.threadedcomments+xml"}));if(n.hasPersons&&r.push(XE("Override",{PartName:"/xl/persons/person.xml",ContentType:"application/vnd.ms-excel.person+xml"})),n.externalLinkIndices)for(const e of n.externalLinkIndices)r.push(XE("Override",{PartName:`/xl/externalLinks/externalLink${e}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml"}));if(n.hasCellImages&&r.push(XE("Override",{PartName:"/xl/cellimages.xml",ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})),n.pivotTableIndices)for(const e of n.pivotTableIndices)r.push(XE("Override",{PartName:`/xl/pivotTables/pivotTable${e}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml"}));if(n.pivotCacheDefinitionIndices)for(const e of n.pivotCacheDefinitionIndices)r.push(XE("Override",{PartName:`/xl/pivotCache/pivotCacheDefinition${e}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml"}));if(n.pivotCacheRecordIndices)for(const e of n.pivotCacheRecordIndices)r.push(XE("Override",{PartName:`/xl/pivotCache/pivotCacheRecords${e}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml"}));if(n.slicerIndices)for(const e of n.slicerIndices)r.push(XE("Override",{PartName:`/xl/slicers/slicer${e}.xml`,ContentType:"application/vnd.ms-excel.slicer+xml"}));if(n.slicerCacheIndices)for(const e of n.slicerCacheIndices)r.push(XE("Override",{PartName:`/xl/slicerCaches/slicerCache${e}.xml`,ContentType:"application/vnd.ms-excel.slicerCache+xml"}));if(n.timelineIndices)for(const e of n.timelineIndices)r.push(XE("Override",{PartName:`/xl/timelines/timeline${e}.xml`,ContentType:"application/vnd.ms-excel.timeline+xml"}));if(n.timelineCacheIndices)for(const e of n.timelineCacheIndices)r.push(XE("Override",{PartName:`/xl/timelineCaches/timelineCache${e}.xml`,ContentType:"application/vnd.ms-excel.timelineCache+xml"}));if(n.chartStyleIndices)for(const e of n.chartStyleIndices)r.push(XE("Override",{PartName:`/xl/charts/style${e}.xml`,ContentType:"application/vnd.ms-office.chartstyle+xml"}));if(n.chartColorsIndices)for(const e of n.chartColorsIndices)r.push(XE("Override",{PartName:`/xl/charts/colors${e}.xml`,ContentType:"application/vnd.ms-office.chartcolorstyle+xml"}));return n.hasMetadata&&r.push(XE("Override",{PartName:`/${_N}`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml"})),n.hasFeaturePropertyBag&&r.push(XE("Override",{PartName:`/${oN}`,ContentType:"application/vnd.ms-excel.featurepropertybag+xml"})),n.hasCoreProps&&r.push(XE("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"})),n.hasAppProps&&r.push(XE("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"})),n.hasCustomProps&&r.push(XE("Override",{PartName:"/docProps/custom.xml",ContentType:"application/vnd.openxmlformats-officedocument.custom-properties+xml"})),ek("Types",{xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},r)}(O))),N.add("_rels/.rels",sR.encode(function(e){const t=[];t.push(XE("Relationship",{Id:"rId1",Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Target:"xl/workbook.xml"}));let n=2;return e?.hasCoreProps&&t.push(XE("Relationship",{Id:"rId"+n++,Type:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",Target:"docProps/core.xml"})),e?.hasAppProps&&t.push(XE("Relationship",{Id:"rId"+n++,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Target:"docProps/app.xml"})),e?.hasCustomProps&&t.push(XE("Relationship",{Id:"rId"+n++,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",Target:"docProps/custom.xml"})),ek("Relationships",{xmlns:yQ},t)}({hasCoreProps:!0,hasAppProps:!0,hasCustomProps:Q}))),N.add("docProps/core.xml",sR.encode(function(e){const t=[];e?.title&&t.push(ZE("dc:title",void 0,YE(e.title))),e?.subject&&t.push(ZE("dc:subject",void 0,YE(e.subject))),e?.creator&&t.push(ZE("dc:creator",void 0,YE(e.creator))),e?.keywords&&t.push(ZE("cp:keywords",void 0,YE(e.keywords))),e?.description&&t.push(ZE("dc:description",void 0,YE(e.description))),e?.lastModifiedBy&&t.push(ZE("cp:lastModifiedBy",void 0,YE(e.lastModifiedBy))),e?.category&&t.push(ZE("cp:category",void 0,YE(e.category))),e?.created&&t.push(ZE("dcterms:created",{"xsi:type":"dcterms:W3CDTF"},aR(e.created)));const n=e?.modified??new Date;return t.push(ZE("dcterms:modified",{"xsi:type":"dcterms:W3CDTF"},aR(n))),ek("cp:coreProperties",{"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},t)}(s))),N.add("docProps/app.xml",sR.encode(function(e){const t=[];return t.push(ZE("Application",void 0,"hucre")),t.push(ZE("DocSecurity",void 0,"0")),e?.company&&t.push(ZE("Company",void 0,YE(e.company))),e?.manager&&t.push(ZE("Manager",void 0,YE(e.manager))),ek("Properties",{xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"},t)}(s))),T&&N.add("docProps/custom.xml",sR.encode(T));const U=function(e,t){const n=t?[...t]:[];for(const t of e){const e=t.pageSetup;if(!e)continue;e.printArea&&n.push({name:"_xlnm.Print_Area",range:`${t.name}!${e.printArea}`,scope:t.name});const r=[];e.printTitlesRow&&r.push(`${t.name}!${e.printTitlesRow}`),e.printTitlesColumn&&r.push(`${t.name}!${e.printTitlesColumn}`),r.length>0&&n.push({name:"_xlnm.Print_Titles",range:r.join(","),scope:t.name})}return n}(t,i);N.add("xl/workbook.xml",sR.encode(function(e,t,n,r,i,o,a,s,l){const c=[];for(let t=0;t<e.length;t++){const n=e[t],r={name:n.name,sheetId:t+1,"r:id":`rId${t+1}`};n.hidden?r.state="hidden":n.veryHidden&&(r.state="veryHidden"),c.push(XE("sheet",r))}const u=[];if("1904"===n&&u.push(XE("workbookPr",{date1904:1})),i){const e={};i.lockStructure&&(e.lockStructure=1),i.lockWindows&&(e.lockWindows=1),i.password&&(e.workbookPassword=YN(i.password)),u.push(XE("workbookProtection",e))}const d=r??0;if(u.push(ZE("bookViews",void 0,[XE("workbookView",{xWindow:0,yWindow:0,windowWidth:16384,windowHeight:8192,activeTab:d})])),u.push(ZE("sheets",void 0,c)),o&&o.length>0){const e=o.map(e=>XE("externalReference",{"r:id":e.rId}));u.push(ZE("externalReferences",void 0,e))}if(t&&t.length>0){const n=new Map;for(let t=0;t<e.length;t++)n.set(e[t].name,t);const r=[];for(const e of t){const t={name:e.name};if(void 0!==e.scope){const r=n.get(e.scope);void 0!==r&&(t.localSheetId=r)}e.comment&&(t.comment=e.comment),r.push(ZE("definedName",t,YE(e.range)))}u.push(ZE("definedNames",void 0,r))}if(u.push(XE("calcPr",{calcId:0,fullCalcOnLoad:1})),a&&a.length>0){const e=a.map(e=>XE("pivotCache",{cacheId:e.cacheId,"r:id":e.rId}));u.push(ZE("pivotCaches",void 0,e))}const f=[];if(s&&s.length>0){const e=ZE("x14:slicerCaches",void 0,s.map(e=>XE("x14:slicerCache",{"r:id":e.rId})));f.push(ZE("ext",{uri:"{BBE1A952-AA13-448E-AADC-164F8A28A991}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},[e]))}if(l&&l.length>0){const e=ZE("x15:timelineCachePivotCaches",void 0,l.map(e=>XE("x15:timelineCachePivotCache",{"r:id":e.rId})));f.push(ZE("ext",{uri:"{7E03D99C-DC04-49D9-9315-930204A7B6E9}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},[e]))}return f.length>0&&u.push(ZE("extLst",void 0,f)),ek("workbook",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},u)}(t,U.length>0?U:void 0,r,o,a,void 0,M.length>0?M:void 0))),N.add("xl/_rels/workbook.xml.rels",sR.encode(function(e,t,n,r,i,o,a,s,l,c,u){const d=[];for(let t=1;t<=e;t++)d.push(XE("Relationship",{Id:`rId${t}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",Target:`worksheets/sheet${t}.xml`}));let f=e+1;if(d.push(XE("Relationship",{Id:`rId${f}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Target:"styles.xml"})),f++,t&&(d.push(XE("Relationship",{Id:`rId${f}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Target:"sharedStrings.xml"})),f++),d.push(XE("Relationship",{Id:`rId${f}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Target:"theme/theme1.xml"})),f++,u&&(d.push(XE("Relationship",{Id:`rId${f}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",Target:"metadata.xml"})),f++),n&&(d.push(XE("Relationship",{Id:`rId${f}`,Type:"http://schemas.microsoft.com/office/2006/relationships/vbaProject",Target:"vbaProject.bin"})),f++),r&&(d.push(XE("Relationship",{Id:`rId${f}`,Type:"http://schemas.microsoft.com/office/2022/11/relationships/FeaturePropertyBag",Target:"featurePropertyBag/featurePropertyBag.xml"})),f++),i&&(d.push(XE("Relationship",{Id:`rId${f}`,Type:"http://schemas.microsoft.com/office/2017/10/relationships/person",Target:"persons/person.xml"})),f++),o){for(const e of o)d.push(XE("Relationship",{Id:e.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",Target:e.target}));f+=o.length}if(c&&(d.push(XE("Relationship",{Id:`rId${f}`,Type:"http://www.wps.cn/officeDocument/2017/relationships/cellimage",Target:"cellimages.xml"})),f++),a)for(const e of a)d.push(XE("Relationship",{Id:e.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition",Target:e.target}));if(s)for(const e of s)d.push(XE("Relationship",{Id:e.rId,Type:"http://schemas.microsoft.com/office/2007/relationships/slicerCache",Target:e.target}));if(l)for(const e of l)d.push(XE("Relationship",{Id:e.rId,Type:"http://schemas.microsoft.com/office/2011/relationships/timelineCache",Target:e.target}));return ek("Relationships",{xmlns:yQ},d)}(t.length,g,R,L,void 0,void 0,D.length>0?D:void 0,void 0,void 0,void 0,P))),N.add("xl/styles.xml",sR.encode(l.toXml())),N.add("xl/theme/theme1.xml",sR.encode('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Calibri Light"/><a:ea typeface=""/><a:cs typeface=""/></a:majorFont><a:minorFont><a:latin typeface="Calibri"/><a:ea typeface=""/><a:cs typeface=""/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:ln><a:ln w="12700"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:ln><a:ln w="19050"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements></a:theme>')),g&&N.add("xl/sharedStrings.xml",sR.encode(function(e){const t=e.getAll(),n=t.length;if(0===n)return ek("sst",{xmlns:eT,count:0,uniqueCount:0},"");const r=[];for(const e of t)r.push(ZE("si",void 0,[KE(e)]));return ek("sst",{xmlns:eT,count:n,uniqueCount:n},r)}(c))),P&&N.add(_N,sR.encode(function(){const e=XE("metadataType",{name:jN,minSupportedVersion:12e4,copy:1,pasteAll:1,pasteValues:1,merge:1,splitFirst:1,rowColShift:1,clearFormats:1,clearComments:1,assign:1,coerce:1,cellMeta:1}),t=ZE("bk",void 0,[ZE("extLst",void 0,[ZE("ext",{uri:WN},[XE("xda:dynamicArrayProperties",{fDynamic:1,fCollapsed:0})])])]),n=ZE("bk",void 0,[XE("rc",{t:1,v:0})]);return ek("metadata",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:xda":"http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray"},[ZE("metadataTypes",{count:1},[e]),ZE("futureMetadata",{name:jN,count:1},[t]),ZE("cellMetadata",{count:1},[n])])}())),L&&N.add(oN,sR.encode(function(){const e=[XE("bag",{type:"Checkbox"}),ZE("bag",{type:"XFControls"},[ZE("bagId",{k:"CellControl"},"0")]),ZE("bag",{type:"XFComplement"},[ZE("bagId",{k:"XFControls"},"1")]),ZE("bag",{type:"XFComplements",extRef:"XFComplementsMapperExtRef"},[ZE("a",{k:"MappedFeaturePropertyBags"},[ZE("bagId",void 0,"2")])])];return ek("FeaturePropertyBags",{xmlns:rN},e)}())),R&&N.add("xl/vbaProject.bin",e.vbaProject);for(let e=0;e<p.length;e++){const n=p[e],r=m[e],i=S[e];N.add(`xl/worksheets/sheet${e+1}.xml`,sR.encode(n.xml));const o=n.hyperlinkRelationships.length>0,a=null!==r&&null!==n.drawingRId,s=null!==i&&null!==n.legacyDrawingRId,l=n.tables.length>0,c=null!==n.pictureRId&&null!==I[e],u=n.pivotTables.length>0;if(o||a||s||l||c||u){const t=[];for(const e of n.hyperlinkRelationships)t.push(XE("Relationship",{Id:e.id,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Target:e.target,TargetMode:"External"}));a&&n.drawingRId&&t.push(XE("Relationship",{Id:n.drawingRId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/drawing${e+1}.xml`})),s&&n.legacyDrawingRId&&n.commentsRId&&(t.push(XE("Relationship",{Id:n.legacyDrawingRId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Target:`../drawings/vmlDrawing${e+1}.vml`})),t.push(XE("Relationship",{Id:n.commentsRId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",Target:`../comments${e+1}.xml`})));for(const e of n.tables)t.push(XE("Relationship",{Id:e.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table",Target:`../tables/table${e.globalTableIndex}.xml`}));if(c&&n.pictureRId&&I[e]){const r=`../${I[e].slice(3)}`;t.push(XE("Relationship",{Id:n.pictureRId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:r}))}for(const e of n.pivotTables)t.push(XE("Relationship",{Id:e.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable",Target:`../pivotTables/pivotTable${e.globalPivotIndex}.xml`}));const r=ek("Relationships",{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},t);N.add(`xl/worksheets/_rels/sheet${e+1}.xml.rels`,sR.encode(r))}if(r){N.add(`xl/drawings/drawing${e+1}.xml`,sR.encode(r.drawingXml)),N.add(`xl/drawings/_rels/drawing${e+1}.xml.rels`,sR.encode(r.drawingRels));for(const e of r.images)N.add(e.path,e.data,{compress:!1})}const d=w[e];if(d&&d.length>0)for(const e of d)N.add(`xl/charts/chart${e.globalIndex}.xml`,sR.encode(e.xml)),N.add(`xl/charts/_rels/chart${e.globalIndex}.xml.rels`,sR.encode(e.rels));c&&I[e]&&t[e].backgroundImage&&N.add(I[e],t[e].backgroundImage,{compress:!1}),i&&(N.add(`xl/comments${e+1}.xml`,sR.encode(i.commentsXml)),N.add(`xl/drawings/vmlDrawing${e+1}.vml`,sR.encode(i.vmlXml)));const f=t[e];if(f.tables&&f.tables.length>0)for(let e=0;e<f.tables.length;e++){const t=f.tables[e],r=n.tables[e].globalTableIndex;let i=t.range;i||(i=_Q(t,f));const o=WQ({...t,range:i},r);N.add(`xl/tables/table${r}.xml`,sR.encode(o.tableXml))}}for(const e of B){const t=e.globalIndex;N.add(`xl/pivotCache/pivotCacheDefinition${t}.xml`,sR.encode(e.parts.cacheDefinitionXml)),N.add(`xl/pivotCache/_rels/pivotCacheDefinition${t}.xml.rels`,sR.encode(e.parts.cacheDefinitionRels)),N.add(`xl/pivotCache/pivotCacheRecords${t}.xml`,sR.encode(e.parts.cacheRecordsXml)),N.add(`xl/pivotTables/pivotTable${t}.xml`,sR.encode(e.parts.pivotTableXml)),N.add(`xl/pivotTables/_rels/pivotTable${t}.xml.rels`,sR.encode(e.parts.pivotTableRels))}const $=await N.build(),H=e.encryption;return H?.password?JD($,H.password,{spinCount:H.spinCount}):$}function cR(e){if(e.rows&&e.rows.length>0)return e.rows.map(e=>e.map(KN));if(e.data&&e.data.length>0&&e.columns&&e.columns.length>0){const t=[],n=e.columns.map(e=>e.header??e.key??"");t.push(n);for(const n of e.data){const r=e.columns.map(e=>{if(!e.key)return null;const t=n[e.key];return void 0===t?null:PN(t)});t.push(r)}return t}return[]}async function uR(e){if(!Ee(e))return{error:"wb is not an effective object"};if(!Ce(Ae(e,"sheets")))return{error:"wb.sheets is not an array"};let t=null;try{t=await lR(e)}catch(e){return{error:e}}return t}async function dR(e,t="data",n){if(!Be(e)){let t="no filename";return console.log(t,e),{error:t}}if(Be(t)||(t="data"),!Ce(n)){let e="data is not an array";return console.log(e,n),{error:e}}Ce(n)&&Ee(Ae(n,0,null))&&(n=lr(n));let r=KS(n,t);if(Ne(r,"error"))return console.log(r.error),r;let i=await uR(r);if(Ne(i,"error"))return console.log(i.error),i;if(Xa())JS(e,new Blob([i]));else{let t="fs";(await import(t)).default.writeFileSync(e,i)}}function fR(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new Blob;if(!ss(e))return r("invalid u8a");let i=null;try{i=new Blob([e])}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i}function hR(e,t,n=""){if(!Nn(t))return{};let r={};return vn(t,function(t){r[t]=Ae(e,t,n)}),r}function pR(e,t){if(!Se(e))return{};if(!Nn(t))return{};let n={};return vn(t,function(t){Ne(e,t)&&(n[t]=Ae(e,t))}),n}function gR(e,t=0,n={}){go(t)||(t=0),t=Wi(t);let r=Ae(n,"rounding","");return"ROUND_HALF_UP"!==r&&"ROUND_HALF_EVEN"!==r&&(r="ROUND_HALF_UP"),Me(e)?new Kl(e).toDecimalPlaces(t,Kl[r]).toNumber():""}function mR(e,t={}){if(!Me(e))throw new Error("v is not a number");let n=Ae(t,"returnDigit");if(we(n)||(n=!1),Ir(e))return n?0:Na(e);let r=null,i=null;for(let t=1;t<=16;t++){let n=e*Math.pow(10,t);if(Math.abs(n-Math.round(n))<1e-9){r=t,i=ec(e,t);break}}return null===i&&(r=16,i=Na(e)),n?r:i}let yR=e=>{let t=1;e<0&&(t=-1);let n=null;if((e=Math.abs(e))<.1)for(let r=1;r<16;r++){let i=Math.pow(10,r);if((e*=i)<1){n={r:1/i,v:t*e};break}}else{if(e<1)return{r:1,v:t*e};if(e>=1)for(let r=1;r<16;r++){let i=Math.pow(10,r);if((e/=i)<1){n={r:i,v:t*e};break}}}if(null===n)throw new Error(`can not normalize v[${e}]`);return n};function vR(e,t,n={}){if(!Be(e))return"";if(!go(t))return e;if(t=Wi(t),e.length<=t)return e;let r=Ae(n,"funWithMsg"),i="";if(Ui(r)){let n=r(e,t);Be(n)&&(i=n)}return na(e,t)+`...${i}`}function bR(e){try{let t=e();return"string"==typeof t?t:""}catch(e){return""}}function AR(e,t){try{let n=new WeakSet,r=[],i=JSON.stringify(e,function(e,i){for(;r.length>0&&r[r.length-1]!==this;)r.pop();if(r.length>=t)return"[Deep]";if("bigint"==typeof i)return String(i);if(null!==i&&"object"==typeof i){if(n.has(i))return"[Circular]";n.add(i),r.push(i)}return i});return"string"==typeof i?i:""}catch(e){return""}}function wR(e){if(e.length>=2&&'"'===e[0]&&'"'===e[e.length-1]){let t=bR(()=>JSON.parse(e));if(""!==t)return t}return e}function xR(e,t){if(void 0===e)return"";if(null===e)return"null";let n=function(e){let t=typeof e;return"string"===t?e:null==e?"":"number"===t||"boolean"===t||"bigint"===t||"symbol"===t?String(e):""}(e);if(""!==n)return n;let r=AR(e,t);if(""!==r&&"{}"!==r)return wR(r);let i=bR(()=>String(e));return""!==i&&"[object Object]"!==i?i:r}function IR(e,t){let n=new WeakSet;null===e||"object"!=typeof e&&"function"!=typeof e||n.add(e);let r=e,i=[];for(let e=0;e<t.levelCauseMax;e++){let e=null;try{e=r.cause}catch(e){break}if(null==e)break;if("object"==typeof e||"function"==typeof e){if(n.has(e))break;n.add(e)}let o=SR(e,{...t,useCause:!1,useAggregate:!1});""!==o&&i.push(o),r=e}return i.join(" <- ")}function CR(e,t){let n=null;try{n=e.errors}catch(e){return""}if(!Array.isArray(n)||0===n.length)return"";let r=[];for(let i=0;i<n.length&&i<t.levelCauseMax;i++){if(n[i]===e)continue;let o=SR(n[i],{...t,useCause:!1,useAggregate:!1});""!==o&&r.push(o)}return r.join("; ")}function SR(e,t){if("string"==typeof e)return e;if(null==e)return"";if("number"==typeof e)return Number.isNaN(e)?"":String(e);if("boolean"==typeof e||"bigint"==typeof e||"symbol"==typeof e)return String(e);let n=null,r=!1;try{n=e.message,r=!0}catch(e){r=!1}if(r&&"string"==typeof n){if(""!==n){let r=n;if(t.useCause){let n=IR(e,t);""!==n&&(r=`${r} <- ${n}`)}if(t.useAggregate){let n=CR(e,t);""!==n&&(r=`${r} [${n}]`)}return r}let r=IR(e,t);return""!==r?r:""}if(r){let e=xR(n,t.levelJsonMax);if(""!==e)return e}let i=IR(e,t);if(""!==i)return i;if(t.useAggregate){let n=CR(e,t);if(""!==n)return n}let o=AR(e,t.levelJsonMax),a=wR(o);if(""!==a&&"{}"!==a)return a;let s=bR(()=>String(e));if(""!==s&&"[object Object]"!==s)return s;let l=bR(()=>Object.prototype.toString.call(e));return""!==l&&"[object Object]"!==l?l:""!==o?o:""}function ER(e,t={}){let n=Ae(t,"useCause",null);we(n)||(n=!1);let r=Ae(t,"useAggregate",null);we(r)||(r=!1);let i=Ae(t,"levelCauseMax",null);_i(i,{useLimitSafe:!0})||(i=8),i=Wi(i);let o=Ae(t,"levelJsonMax",null);_i(o,{useLimitSafe:!0})||(o=6),o=Wi(o);let a=Ae(t,"lengthMessageMax",null);_i(a,{useLimitSafe:!0})||(a=0),a=Wi(a);let s={useCause:n,useAggregate:r,levelCauseMax:i,levelJsonMax:o,lengthMessageMax:a},l="";try{l=SR(e,s)}catch(e){return l="",l}return Be(l)?(s.lengthMessageMax>0&&l.length>s.lengthMessageMax&&(l=s.lengthMessageMax>3?l.slice(0,s.lengthMessageMax-3)+"...":l.slice(0,s.lengthMessageMax)),l):(l="",l)}function kR(e){let t=Ga();return i(Number(e),"SIGKILL",n=>{n?t.reject(`pid[${e}] kill failed: ${ER(n)}`):t.resolve(`pid[${e}] killed`)}),t}function BR(e,t={}){let n=Ae(t,"fs"),r=!1;try{n.statSync(e),r=!0}catch{r=!1}return r}function FR(e,t={}){let n=Ae(t,"fs");return!!BR(e,{fs:n})&&(!n.lstatSync(e).isDirectory()&&!n.lstatSync(e).isSymbolicLink())}function DR(e){return FR(e,{fs:a})}function MR(e,t={}){let n=null,r=Ae(t,"fs"),i="";try{i=r.readFileSync(e,"utf8")}catch(e){n=e}return null!==n?{error:n}:{success:i}}function NR(e){return MR(e,{fs:a})}let TR={buildSpawnArgs:function(e,t=[]){if(Ce(t)||(t=[]),"win32"!==process.platform)return{file:e,args:t,opt:{}};let n=function(e){if("win32"!==process.platform)return e;if(/\.(cmd|exe|bat|ps1)$/i.test(e))return e;if(o.isAbsolute(e))return e;try{let t=r.execFileSync("where",[e],{encoding:"utf8",timeout:5e3,windowsHide:!0,shell:!1,stdio:["ignore","pipe","ignore"]}).trim().split(/\r?\n/),n=t.find(e=>/\.cmd$/i.test(e));return n||(t.find(e=>/\.exe$/i.test(e))||t[0]||e)}catch{return e}}(e);if(/\.exe$/i.test(n))return{file:n,args:t,opt:{}};if(/\.(cmd|bat)$/i.test(n)){let e=function(e){let t=Ae(NR(e),"success","");if(!Be(t))return null;let n=t.match(/%dp0%\\(node_modules\\[^"]+)"/i);if(!n)return null;let r=o.dirname(e),i=o.join(r,n[1]);return DR(i)?i:null}(n);if(e)return/\.exe$/i.test(e)?{file:e,args:t,opt:{}}:{file:process.execPath,args:[e,...t],opt:{}};let r=t.map(e=>{return t=e,(t=`"${t=(t=(t=String(t)).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(/[()%!^"<>&|]/g,"^$&");var t}),a=`${i=n,i.replace(/[()%!^"<>&|;, ]/g,"^$&")} ${r.join(" ")}`;return{file:process.env.comspec||process.env.COMSPEC||"cmd.exe",args:["/d","/s","/c",`"${a}"`],opt:{windowsVerbatimArguments:!0}}}var i;return{file:n,args:t,opt:{}}},buildSpawnEnv:function(e=void 0){let t={...process.env,PYTHONIOENCODING:"utf-8"};if(void 0!==e){if("win32"===process.platform){let n=Object.keys(e).map(e=>e.toLowerCase());for(let e of Object.keys(t))n.includes(e.toLowerCase())&&delete t[e]}t={...t,...e}}return t}};function QR(e){let t="",n="",r=null;try{t=e.code,n=e.message,r=e.errno}catch(e){}if(Be(t)||(t="UNKNOWN"),Be(n)||(n=""),"number"!=typeof r){let e=n.indexOf(". Received ");e>=0&&(n=n.slice(0,e))}return""===n&&(n=t),{code:t,message:n}}let{buildSpawnArgs:RR,buildSpawnEnv:LR}=TR,PR=new WeakSet,OR={funWithMsg:e=>`(truncated, total ${e.length} chars)`};function UR(e,t=[],n={}){let i,{timeoutMs:o=12e4,cwd:a=process.cwd(),input:s,validate:l,maxBuffer:c=10485760,onStdout:u,onStderr:d,env:f}=n,h=function(e){if(Ui(e))return e;if(!Be(e))return null;let t=e.split(",").map(e=>e.trim()).filter(Boolean);return 0===t.length?null:e=>{for(let n of t)if("nonempty"===n){if(!Be(e)||""===e.trim())return!1}else if("json"===n)try{JSON.parse(e)}catch{return!1}else if("min:"===na(n,4)){let t=ia(n,4);if(!Me(t))return!1;let r=Wi(t);if(!Be(e)||e.length<r)return!1}return!0}}(l),p=Date.now(),g=Ga(),m=LR(f);try{let n=RR(e,t);i=r.spawn(n.file,n.args,{cwd:a,stdio:["pipe","pipe","pipe"],windowsHide:!0,env:m,...n.opt})}catch(e){let t=QR(e),n={ok:!1,stdout:"",stderr:"",code:null,error:`${t.code}: ${t.message}`,durationMs:Date.now()-p,pid:void 0};return PR.add(n),g.resolve(n),g}let y="",v="",b=new TextDecoder("utf-8"),A=new TextDecoder("utf-8"),w=!1,x=!1,I=null;return i.on("error",e=>{if(w)return;w=!0,clearTimeout(I);let t=QR(e);g.resolve({ok:!1,stdout:"",stderr:"",code:null,error:`${t.code}: ${t.message}`,durationMs:Date.now()-p,pid:i.pid})}),i.stdout&&i.stderr&&i.stdin?(i.stdout.on("data",e=>{let t=b.decode(e,{stream:!0});t&&(Ui(u)&&u(t),y.length<c&&(y+=t))}),i.stderr.on("data",e=>{let t=A.decode(e,{stream:!0});t&&(Ui(d)&&d(t),v.length<c&&(v+=t))}),i.stdin.on("error",()=>{}),void 0!==s&&i.stdin.write(s,"utf8"),i.stdin.end(),I=setTimeout(()=>{w||(x=!0,kR(i.pid).catch(()=>{}),setTimeout(()=>{w||(w=!0,g.resolve({ok:!1,stdout:vR(y,500,OR),stderr:vR(v,500,OR),code:null,error:`TIMEOUT after ${o/1e3}s(子進程未能結束)`,durationMs:Date.now()-p,pid:i.pid}))},3e3).unref())},o),i.on("close",(e,t)=>{if(w)return;w=!0,clearTimeout(I);let n=b.decode();n&&y.length<c&&(y+=n);let r=A.decode();r&&v.length<c&&(v+=r);let a=Date.now()-p;x?g.resolve({ok:!1,stdout:vR(y,500,OR),stderr:vR(v,500,OR),code:e,error:`TIMEOUT after ${o/1e3}s`,durationMs:a,pid:i.pid}):0===e?!h||h(y)?g.resolve({ok:!0,stdout:y,stderr:v,code:0,error:"",durationMs:a,pid:i.pid}):g.resolve({ok:!1,stdout:vR(y,500,OR),stderr:vR(v,500,OR),code:0,error:"OUTPUT_VALIDATION_FAILED",durationMs:a,pid:i.pid}):g.resolve({ok:!1,stdout:vR(y,500,OR),stderr:vR(v,1e3,OR),code:e,error:t?`Signal: ${t}`:`Exit code ${e}`,durationMs:a,pid:i.pid})}),g):g}let{buildSpawnArgs:$R,buildSpawnEnv:HR}=TR;function zR(e,t=[],n={}){Ce(t)||(t=[]),Se(n)||(n={});let i=Ae(n,"cwd");Be(i)||(i=process.cwd());let o=Ae(n,"env");Se(o)||(o=void 0);let a=Ae(n,"timeoutMs");a=_i(a)?Math.min(a,Ri):null;let s=Ae(n,"exitGraceMs");go(s)||(s=2e3),s=Math.min(s,Ri);let l=Ae(n,"killWaitMs");go(l)||(l=3e3),l=Math.min(l,Ri);let c=Ae(n,"stderrKeep");go(c)||(c=4e3);let u,d=Ae(n,"onLine"),f=Ae(n,"onStdout"),h=Ae(n,"onStderr"),p=Ae(n,"onExit"),g=Date.now(),m=!1,y=null,v=!1,b=!1,A=!1,w="",x="",I=null,C=null,S=null,E=Ga(),k=null,B={pid:null,exited:!1,write:null,writeLine:null,stop:null},F=e=>{m||(m=!0,clearTimeout(I),clearTimeout(C),clearTimeout(S),y={code:null,signal:null,exited:!0,timeout:v,killed:b,error:"",stderr:w,durationMs:Date.now()-g,pid:B.pid,...e},B.exited=!0,Ui(p)&&p(y),E.resolve(y))},D=()=>k||(k=Ga(),E.then(e=>{k.resolve(e)}),k);if(!Be(e))return B.write=async()=>!1,B.writeLine=async()=>!1,B.stop=D,setTimeout(()=>{F({error:"command 須為非空字串"})},1),B;try{let n=$R(e,t);u=r.spawn(n.file,n.args,{cwd:i,stdio:["pipe","pipe","pipe"],windowsHide:!0,env:HR(o),...n.opt})}catch(e){let t=QR(e);return B.write=async()=>!1,B.writeLine=async()=>!1,B.stop=D,setTimeout(()=>{F({error:`${t.code}: ${t.message}`})},1),B}if(B.pid=u.pid||null,u.on("error",e=>{let t=QR(e);F({error:`${t.code}: ${t.message}`})}),!u.stdout||!u.stderr||!u.stdin)return B.write=async()=>!1,B.writeLine=async()=>!1,B.stop=D,B;let M=new TextDecoder("utf-8"),N=new TextDecoder("utf-8"),T=(e,t)=>{x+=e;let n=x.indexOf("\n");for(;n>=0;){let e=x.slice(0,n);x=x.slice(n+1),e.endsWith("\r")&&(e=e.slice(0,-1)),Ui(d)&&d(e),n=x.indexOf("\n")}if(t&&""!==x){let e=x;x="",e.endsWith("\r")&&(e=e.slice(0,-1)),Ui(d)&&d(e)}},Q=e=>{w=0!==c?(w+e).slice(-c):""};u.stdout.on("data",e=>{let t=M.decode(e,{stream:!0});t&&(Ui(f)&&f(t),T(t,!1))}),u.stderr.on("data",e=>{let t=N.decode(e,{stream:!0});t&&(Ui(h)&&h(t),Q(t))}),u.stdin.on("error",()=>{});let R=e=>{b=!0,kR(u.pid).catch(()=>{}),S=setTimeout(()=>{m||F({code:null,exited:!1,error:e})},l)};return null!==a&&(I=setTimeout(()=>{m||(v=!0,R(`TIMEOUT after ${a/1e3}s(子進程未能結束)`))},a)),u.on("close",(e,t)=>{if(m)return;let n=M.decode();n&&(Ui(f)&&f(n),T(n,!1)),T("",!0);let r=N.decode();r&&(Ui(h)&&h(r),Q(r));let i="";v?i=`TIMEOUT after ${a/1e3}s`:b||(t?i=`Signal: ${t}`:0!==e&&(i=`Exit code ${e}`)),F({code:e,signal:t,error:i})}),B.write=e=>{let t=Ga();if(m||A||u.stdin.destroyed||!u.stdin.writable)return t.resolve(!1),t;try{u.stdin.write(String(e),"utf8",e=>{t.resolve(!e)})}catch{t.resolve(!1)}return t},B.writeLine=e=>B.write(String(e)+"\n"),B.stop=()=>{if(k)return k;if(k=Ga(),m)return k.resolve(y),k;A=!0;try{u.stdin.end()}catch{}return C=setTimeout(()=>{m||R("STOP_TIMEOUT(子進程未能結束)")},s),E.then(e=>{k.resolve(e)}),k},B}let qR={65001:"utf-8",1200:"utf-16le",950:"big5",936:"gbk",54936:"gb18030",932:"shift_jis",949:"euc-kr",437:"windows-1252"},jR={euckr:"euc-kr",utf16le:"utf-16le",ucs2:"utf-16le"};function WR(e){try{return new TextDecoder(e),!0}catch(e){return!1}}function _R(e){if(e=String(e).trim(),qR[e])return qR[e];let t=[`windows-${e}`,`ibm${e}`];for(let e of t)if(WR(e))return e;return null}let VR=null;function YR(e){let t=e.length;for(let n=1;n<=3&&n<=t;n++){let r=e[t-n];if(r>=128&&r<=191)continue;let i=0;if(r>=194&&r<=223)i=2;else if(r>=224&&r<=239)i=3;else{if(!(r>=240&&r<=244))return 0;i=4}if(n>=i)return 0;if(n>=2){let i=e[t-n+1],o=128,a=191;if(224===r?o=160:237===r?a=159:240===r?o=144:244===r&&(a=143),i<o||i>a)return 0}return n}return 0}let GR={normalizeCodeCmd:function(e){if(!Be(e))return{mode:"fixed",label:"utf-8"};let t=e.trim().toLowerCase();if("auto"===t)return{mode:"auto",label:null};if("system"===t)return{mode:"system",label:null};let n=/^(?:cp|windows-)?(\d{3,5})$/.exec(t);if(null!==n){let e=_R(n[1]);return null===e?null:{mode:"fixed",label:e}}return jR[t]&&(t=jR[t]),WR(t)?{mode:"fixed",label:new TextDecoder(t).encoding}:null},codePageToLabel:_R,getSystemCodePage:function(){if(null!==VR)return VR;let e=new Promise(e=>{if("win32"===process.platform)try{r.exec("chcp",{windowsHide:!0,encoding:"latin1",timeout:1e4},(t,n)=>{let r=null;if(!t){let e=/(\d+)\s*$/.exec(String(n));null!==e&&(r=_R(e[1]))}null===r&&(VR=null,r="utf-8"),e(r)})}catch(t){VR=null,e("utf-8")}else e("utf-8")});return VR=e,e},utf8TailLen:YR,createDecoder:function(e,t={}){if("auto"!==e){let t=new TextDecoder(e);return{switched:!1,label:t.encoding,write:e=>t.decode(e,{stream:!0}),end:()=>t.decode()}}let n=t.labelSystem;Be(n)||(n="utf-8");let r=new TextDecoder("utf-8",{fatal:!0}),i=null,o=null,a={switched:!1,label:"utf-8",write:null,end:null};return a.write=e=>{if(null!==i)return i.decode(e,{stream:!0});let t=e;null!==o&&(t=Buffer.concat([o,e]),o=null);let s=YR(t),l=t;s>0&&(l=t.subarray(0,t.length-s));let c="";try{c=r.decode(l,{stream:!0})}catch(e){return a.switched=!0,a.label=n,i=new TextDecoder(n),i.decode(t,{stream:!0})}return s>0&&(o=Buffer.from(t.subarray(t.length-s))),c},a.end=()=>{if(null!==i)return i.decode();let e="";try{e=r.decode()}catch(t){e=""}return null!==o&&(e+=new TextDecoder("utf-8").decode(o),o=null),e},a}};function JR(e,t){return e>t}function XR(e){return e&&e.length?wx(e,un,JR):void 0}function KR(e){return null==e?[]:function(e,t){return fe(t,function(t){return e[t]})}(e,ht(e))}function ZR(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function eL(e,t,n,r){return gt(e,function(e,i,o){t(r,e,n(e),o)}),r}var tL,nL,rL=Object.prototype.hasOwnProperty,iL=(tL=function(e,t,n){rL.call(e,n)?e[n].push(t):ei(e,n,[t])},function(e,t){var n=v(e)?ZR:eL,r=nL?nL():{};return n(e,tL,hn(t),r)}),oL=iL;function aL(e,t){if(!Ce(e)||!Ce(t))return[];if(e.length!==t.length)return[];return An(e,function(n,r){return kI(e[r],t[r])})}function sL(e,t={}){let n=Ae(t,"fs");if(!BR(e,{fs:n}))return!1;let r=n.lstatSync(e);return!r.isFile()&&!r.isSymbolicLink()}function lL(e,t={}){let n=Ae(t,"fs");if(sL(e,{fs:n}))return{success:"input folder is already exists: "+e};if(BR(e,{fs:n}))return{error:"input path already exists: "+e};try{n.mkdirSync(e,{recursive:!0})}catch(e){return{error:e}}return{success:"done: "+e}}function cL(e,t={}){let n=Ae(t,"path"),r=Ae(t,"fs");if(!BR(e,{fs:r})){let t=lL(e,{fs:r});return t.error?t.error:{success:"done: "+e}}if(!sL(e,{fs:r}))return{error:"input path is not a folder"};try{let t=r.readdirSync(e);for(let i of t){let t=n.join(e,i);r.statSync(t).isDirectory()?r.rmSync(t,{recursive:!0,force:!0}):r.unlinkSync(t)}}catch(e){return{error:e}}return{success:"done: "+e}}function uL(e,t,n={}){let r=Ae(n,"path"),i=Ae(n,"fs"),o=Ae(n,"useSync","");we(o)||(o=!0);let a="";return a=o?function(e,t,n={}){let r=Ae(n,"path"),i=Ae(n,"fs");if(!FR(e,{fs:i}))return{error:`fpSrc[${e}] is not a file`};try{lL(r.dirname(t),{fs:i}),i.copyFileSync(e,t)}catch(e){return{error:e}}return{success:"done: "+t}}(e,t,{path:r,fs:i}):async function(e,t,n={}){let r=Ae(n,"path"),i=Ae(n,"fs");if(!FR(e,{fs:i}))return{error:`fpSrc[${e}] is not a file`};let o=null;return await(async(e,t)=>{lL(r.dirname(t),{fs:i}),await new Promise((n,r)=>{let o=i.createReadStream(e),a=i.createWriteStream(t);o.on("error",r),a.on("error",r),a.on("finish",n),o.pipe(a)})})(e,t).then(()=>{o={success:"done: "+t}}).catch(e=>{o={error:e}}),o}(e,t,{path:r,fs:i}),a}function dL(e,t,n={}){let r=Ae(n,"path"),i=Ae(n,"fs");if(!sL(e,{fs:i}))return{error:`fpSrc[${e}] is not a folder`};try{i.readdirSync(e).forEach(function(n){let o=r.resolve(e,n),a=r.resolve(t,n),s=i.lstatSync(o);if(s.isDirectory())lL(a,{fs:i}),dL(o,a,{path:r,fs:i});else if(s.isSymbolicLink()){let e=i.readlinkSync(o);i.symlinkSync(e,a)}else lL(r.dirname(a),{fs:i}),i.copyFileSync(o,a)})}catch(e){return{error:e}}return{success:"done: "+t}}function fL(e,t,n={}){let r=Ae(n,"path"),i=Ae(n,"fs"),o=Ae(n,"useSync","");we(o)||(o=!0);let a="";return a=o?dL(e,t,{path:r,fs:i}):async function(e,t,n={}){let r=Ae(n,"path"),i=Ae(n,"fs");if(!sL(e,{fs:i}))return{error:`fpSrc[${e}] is not a folder`};let o=async(e,t)=>{let n=i.readdirSync(e);for(let a of n){let n=r.join(e,a),s=r.join(t,a),l=i.lstatSync(n);if(l.isDirectory())lL(s,{fs:i}),await o(n,s);else if(l.isSymbolicLink()){let e=i.readlinkSync(n);i.symlinkSync(e,s)}else lL(r.dirname(s),{fs:i}),await new Promise((e,t)=>{let r=i.createReadStream(n),o=i.createWriteStream(s);r.on("error",t),o.on("error",t),o.on("finish",e),r.pipe(o)})}},a=null;return await o(e,t).then(()=>{a={success:"done: "+t}}).catch(e=>{a={error:e}}),a}(e,t,{path:r,fs:i}),a}function hL(e){if(!Be(e))return{path:"",isRoot:!1};for(;e.indexOf("\\\\")>=0;)e=e.replace("\\\\","\\");for(;e.indexOf("//")>=0;)e=e.replace("//","/");if(":"===ra(e,1))return{path:`${e}\\`,isRoot:!0};if("\\"===ra(e,1)){let t=Qa(e,1);return":"===ra(t,1)?{path:e,isRoot:!0}:{path:t,isRoot:!1}}if("/"===ra(e,1)){let t=Qa(e,1);return 0===t.length?{path:e,isRoot:!0}:{path:t,isRoot:!1}}return{path:e,isRoot:!1}}function pL(e){if(!Be(e))return"";let t=hL(e);if(t.isRoot)return t.path;let n=t.path;try{n=n.split("\\").pop().split("/").pop()}catch(e){}return n}function gL(e){if(!Be(e))return"";let t=hL(e);if(t.isRoot)return t.path;let n=pL(e=t.path);if(!Be(n))return e;let r=hL(e=Qa(e,n.length));return r.isRoot,r.path}function mL(e,t="",n={}){let r=Ae(n,"fs"),i=Ae(n,"encoding","");if(Be(i)||(i="utf8"),BR(e,{fs:r}))return{error:"input path already exists: "+e};if(FR(e,{fs:r}))return{error:"input file is already exists: "+e};let o=gL(e);sL(o,{fs:r})||lL(o,{fs:r});try{r.writeFileSync(e,t,{encoding:i})}catch(e){return{error:e}}return{success:"done: "+e}}function yL(e){return lL(e,{fs:a})}function vL(e,t={}){let n=Ae(t,"fs");if(!BR(e,{fs:n}))return{success:"file does not exist: "+e};if(!FR(e,{fs:n}))return{error:"input path is not a file: "+e};try{n.unlinkSync(e)}catch(e){return{error:e}}return{success:"done: "+e}}async function bL(e,t={}){let n=Ae(t,"numRetry");_i(n)||(n=5),n=Wi(n);let r=Ae(t,"fs",null);if(!BR(e,{fs:r}))return"file does not exist: "+e;if(!FR(e,{fs:r}))return Promise.reject("input path is not a file: "+e);for(let t=0;t<n;t++)try{r.unlinkSync(e);break}catch(e){if("EBUSY"!==e.code)return Promise.reject(e);await hs(300)}return"done: "+e}function AL(e,t={}){let n=Ae(t,"fs");if(!BR(e,{fs:n}))return{success:"folder does not exist: "+e};if(!sL(e,{fs:n}))return{error:"input path is not a folder: "+e};try{n.rmSync(e,{recursive:!0,force:!0})}catch(e){return{error:e}}return{success:"done: "+e}}function wL(e){return AL(e,{fs:a})}async function xL(e,t={}){let n=Ae(t,"numRetry");_i(n)||(n=5),n=Wi(n);let r=Ae(t,"fs",null);if(!BR(e,{fs:r}))return"folder does not exist: "+e;if(!sL(e,{fs:r}))return Promise.reject("input path is not a folder: "+e);for(let t=0;t<n;t++)try{r.rmSync(e,{recursive:!0,force:!0});break}catch(e){if("EBUSY"!==e.code)return Promise.reject(e);await hs(300)}return"done: "+e}async function IL(e,t,n={}){let r=Ae(n,"fs"),i=Ae(n,"Readable"),o=Ae(n,"pipeline");if(!Be(e))throw new Error("urlIn in not an effective string");if(!Be(t))throw new Error("fpOut is not an effective string");if(!Ui(o))throw new Error("opt.pipeline is not a function");let a=gL(t);sL(a,{fs:r})||lL(a,{fs:r});let s=`${t}.download`,l=Ga(),c=n=>{try{r.unlinkSync(s)}catch(e){}l.reject(`failed to download url[${e}] to file[${t}]: ${n}`)};try{let n=await fetch(e);if(!n.ok){try{await n.body.cancel()}catch(e){}return c(`status[${n.status}] ${n.statusText}`),l}let a=null,u=n.headers.get("content-length"),d=n.headers.get("content-encoding"),f=n.headers.get("transfer-encoding");if(!Be(u)||!/^\d+$/.test(u.trim())||Be(d)&&"identity"!==d.trim().toLowerCase()||Be(f)||(a=Number(u.trim())),await o(i.fromWeb(n.body),r.createWriteStream(s)),null!==a){let e=r.statSync(s).size;if(e!==a)return c(`size mismatch, content-length[${a}] received[${e}]`),l}r.renameSync(s,t),l.resolve(t)}catch(e){c(ER(e,{useCause:!0}))}return l}function CL(){if(!Ui(t))throw new Error("invalid dayjs");return t().format("YYYY-MM-DDTHH:mm:ssZ")}function SL(e){if(!Be(e))return"";let t=pL(e),n=Lo(t,".");if(or(n)<=1)return t;let r="";try{n=Po(n),r=vo(n,".")}catch(e){}return r}function EL(e){return sL(e,{fs:a})}function kL(e,t={}){let n=Ae(t,"polling");we(n)||(n=!1);let r=Ae(t,"timeInterval");_i(r)||(r=100),r=Wi(r),r=Math.min(r,Ri);let i=Ae(t,"timeBinaryInterval");_i(i)||(i=300),i=Wi(i);let a=Oi(),s=e,l=null,c=setInterval(()=>{null===l?EL(s)&&(l=d.watch(s,{usePolling:n,interval:r,binaryInterval:i,awaitWriteFinish:!0}),l.on("all",(e,t,n)=>{t=o.resolve(t),$i(a,"change",[{type:e,fp:t,stats:n}],{tag:"fsWatchFolder"}),"unlinkDir"===e&&o.resolve(s)===t&&setTimeout(()=>{u()},1)}).on("error",e=>{$i(a,"error",[{fun:"watcher",msg:e}],{tag:"fsWatchFolder"})})):EL(s)||($i(a,"change",[{type:"unlinkDir",fp:o.resolve(s),stats:void 0}],{tag:"fsWatchFolder"}),setTimeout(()=>{u()},1))},r),u=()=>{if(null!==l){try{l.unwatch(s)}catch(e){console.log(e)}l.close().catch(e=>{console.log(e)}).finally(()=>{l=null})}};return a.clear=()=>{u(),clearInterval(c)},a}function BL(e,t={}){let n=Ae(t,"fs"),r=Ae(t,"crypto"),i=Ae(t,"type","");Be(i)||(i="sha512");let o=Ga();if(!FR(e,{fs:n}))return o.reject(`fp[${e}] is not a file`),o;try{let t=r.createHash(i),a=n.createReadStream(e);a.on("readable",()=>{let e=a.read();e?t.update(e):o.resolve(t.digest("hex"))}),a.on("error",e=>{o.reject(e.toString())})}catch(e){o.reject(e.toString())}return o}const FL=new Uint8Array([0,97,115,109,1,0,0,0,1,48,8,96,3,127,127,127,1,127,96,3,127,127,127,0,96,2,127,127,0,96,1,127,1,127,96,3,127,127,126,1,126,96,3,126,127,127,1,126,96,2,127,126,0,96,1,127,1,126,3,11,10,0,0,2,1,3,4,5,6,1,7,5,3,1,0,1,7,85,9,3,109,101,109,2,0,5,120,120,104,51,50,0,0,6,105,110,105,116,51,50,0,2,8,117,112,100,97,116,101,51,50,0,3,8,100,105,103,101,115,116,51,50,0,4,5,120,120,104,54,52,0,5,6,105,110,105,116,54,52,0,7,8,117,112,100,97,116,101,54,52,0,8,8,100,105,103,101,115,116,54,52,0,9,10,251,22,10,242,1,1,4,127,32,0,32,1,106,33,3,32,1,65,16,79,4,127,32,3,65,16,107,33,6,32,2,65,168,136,141,161,2,106,33,3,32,2,65,137,235,208,208,7,107,33,4,32,2,65,207,140,162,142,6,106,33,5,3,64,32,3,32,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,3,32,4,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,4,32,2,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,2,32,5,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,5,32,6,32,0,65,4,106,34,0,79,13,0,11,32,2,65,12,119,32,5,65,18,119,106,32,4,65,7,119,106,32,3,65,1,119,106,5,32,2,65,177,207,217,178,1,106,11,32,1,106,32,0,32,1,65,15,113,16,1,11,146,1,0,32,1,32,2,106,33,2,3,64,32,1,65,4,106,32,2,75,69,4,64,32,0,32,1,40,2,0,65,189,220,202,149,124,108,106,65,17,119,65,175,214,211,190,2,108,33,0,32,1,65,4,106,33,1,12,1,11,11,3,64,32,1,32,2,79,69,4,64,32,0,32,1,45,0,0,65,177,207,217,178,1,108,106,65,11,119,65,177,243,221,241,121,108,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,32,0,65,15,118,115,65,247,148,175,175,120,108,34,0,65,13,118,32,0,115,65,189,220,202,149,124,108,34,0,65,16,118,32,0,115,11,63,0,32,0,65,8,106,32,1,65,168,136,141,161,2,106,54,2,0,32,0,65,12,106,32,1,65,137,235,208,208,7,107,54,2,0,32,0,65,16,106,32,1,54,2,0,32,0,65,20,106,32,1,65,207,140,162,142,6,106,54,2,0,11,195,4,1,6,127,32,1,32,2,106,33,6,32,0,65,24,106,33,4,32,0,65,40,106,40,2,0,33,3,32,0,32,0,40,2,0,32,2,106,54,2,0,32,0,65,4,106,34,5,32,5,40,2,0,32,2,65,16,79,32,0,40,2,0,65,16,79,114,114,54,2,0,32,2,32,3,106,65,16,73,4,64,32,3,32,4,106,32,1,32,2,252,10,0,0,32,0,65,40,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,4,106,32,1,65,16,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,32,3,40,2,0,32,4,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,12,106,34,3,32,3,40,2,0,32,4,65,4,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,16,106,34,3,32,3,40,2,0,32,4,65,8,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,20,106,34,3,32,3,40,2,0,32,4,65,12,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,40,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,32,6,65,16,107,77,4,64,32,6,65,16,107,33,8,32,0,65,8,106,40,2,0,33,2,32,0,65,12,106,40,2,0,33,3,32,0,65,16,106,40,2,0,33,5,32,0,65,20,106,40,2,0,33,7,3,64,32,2,32,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,2,32,3,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,3,32,5,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,5,32,7,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,7,32,8,32,1,65,4,106,34,1,79,13,0,11,32,0,65,8,106,32,2,54,2,0,32,0,65,12,106,32,3,54,2,0,32,0,65,16,106,32,5,54,2,0,32,0,65,20,106,32,7,54,2,0,11,32,1,32,6,73,4,64,32,4,32,1,32,6,32,1,107,34,1,252,10,0,0,32,0,65,40,106,32,1,54,2,0,11,11,97,1,1,127,32,0,65,16,106,40,2,0,33,1,32,0,65,4,106,40,2,0,4,127,32,1,65,12,119,32,0,65,20,106,40,2,0,65,18,119,106,32,0,65,12,106,40,2,0,65,7,119,106,32,0,65,8,106,40,2,0,65,1,119,106,5,32,1,65,177,207,217,178,1,106,11,32,0,40,2,0,106,32,0,65,24,106,32,0,65,40,106,40,2,0,16,1,11,255,3,2,3,126,1,127,32,0,32,1,106,33,6,32,1,65,32,79,4,126,32,6,65,32,107,33,6,32,2,66,214,235,130,238,234,253,137,245,224,0,124,33,3,32,2,66,177,169,172,193,173,184,212,166,61,125,33,4,32,2,66,249,234,208,208,231,201,161,228,225,0,124,33,5,3,64,32,3,32,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,3,32,4,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,4,32,2,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,2,32,5,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,5,32,6,32,0,65,8,106,34,0,79,13,0,11,32,2,66,12,137,32,5,66,18,137,124,32,4,66,7,137,124,32,3,66,1,137,124,32,3,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,4,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,2,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,5,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,5,32,2,66,197,207,217,178,241,229,186,234,39,124,11,32,1,173,124,32,0,32,1,65,31,113,16,6,11,134,2,0,32,1,32,2,106,33,2,3,64,32,2,32,1,65,8,106,79,4,64,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,32,0,133,66,27,137,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,33,0,32,1,65,8,106,33,1,12,1,11,11,32,1,65,4,106,32,2,77,4,64,32,0,32,1,53,2,0,66,135,149,175,175,152,182,222,155,158,127,126,133,66,23,137,66,207,214,211,190,210,199,171,217,66,126,66,249,243,221,241,153,246,153,171,22,124,33,0,32,1,65,4,106,33,1,11,3,64,32,1,32,2,73,4,64,32,0,32,1,49,0,0,66,197,207,217,178,241,229,186,234,39,126,133,66,11,137,66,135,149,175,175,152,182,222,155,158,127,126,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,32,0,66,33,136,133,66,207,214,211,190,210,199,171,217,66,126,34,0,32,0,66,29,136,133,66,249,243,221,241,153,246,153,171,22,126,34,0,32,0,66,32,136,133,11,77,0,32,0,65,8,106,32,1,66,214,235,130,238,234,253,137,245,224,0,124,55,3,0,32,0,65,16,106,32,1,66,177,169,172,193,173,184,212,166,61,125,55,3,0,32,0,65,24,106,32,1,55,3,0,32,0,65,32,106,32,1,66,249,234,208,208,231,201,161,228,225,0,124,55,3,0,11,244,4,2,3,127,4,126,32,1,32,2,106,33,5,32,0,65,40,106,33,4,32,0,65,200,0,106,40,2,0,33,3,32,0,32,0,41,3,0,32,2,173,124,55,3,0,32,2,32,3,106,65,32,73,4,64,32,3,32,4,106,32,1,32,2,252,10,0,0,32,0,65,200,0,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,4,106,32,1,65,32,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,32,3,41,3,0,32,4,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,16,106,34,3,32,3,41,3,0,32,4,65,8,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,24,106,34,3,32,3,41,3,0,32,4,65,16,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,32,106,34,3,32,3,41,3,0,32,4,65,24,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,200,0,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,65,32,106,32,5,77,4,64,32,5,65,32,107,33,2,32,0,65,8,106,41,3,0,33,6,32,0,65,16,106,41,3,0,33,7,32,0,65,24,106,41,3,0,33,8,32,0,65,32,106,41,3,0,33,9,3,64,32,6,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,7,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,7,32,8,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,8,32,9,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,9,32,2,32,1,65,8,106,34,1,79,13,0,11,32,0,65,8,106,32,6,55,3,0,32,0,65,16,106,32,7,55,3,0,32,0,65,24,106,32,8,55,3,0,32,0,65,32,106,32,9,55,3,0,11,32,1,32,5,73,4,64,32,4,32,1,32,5,32,1,107,34,1,252,10,0,0,32,0,65,200,0,106,32,1,54,2,0,11,11,188,2,1,5,126,32,0,65,24,106,41,3,0,33,1,32,0,41,3,0,34,2,66,32,90,4,126,32,0,65,8,106,41,3,0,34,3,66,1,137,32,0,65,16,106,41,3,0,34,4,66,7,137,124,32,1,66,12,137,32,0,65,32,106,41,3,0,34,5,66,18,137,124,124,32,3,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,4,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,1,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,5,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,5,32,1,66,197,207,217,178,241,229,186,234,39,124,11,32,2,124,32,0,65,40,106,32,2,66,31,131,167,16,6,11]);async function DL(){return function(e){const{exports:{mem:t,xxh32:n,xxh64:r,init32:i,update32:o,digest32:a,init64:s,update64:l,digest64:c}}=e;let u=new Uint8Array(t.buffer);function d(e,n){if(t.buffer.byteLength<e+n){const r=Math.ceil((e+n-t.buffer.byteLength)/65536);t.grow(r),u=new Uint8Array(t.buffer)}}function f(e,t,n,r,i,o){d(e);const a=new Uint8Array(e);return u.set(a),n(0,t),a.set(u.subarray(0,e)),{update(t){let n;return u.set(a),"string"==typeof t?(d(3*t.length,e),n=m.encodeInto(t,u.subarray(e)).written):(d(t.byteLength,e),u.set(t,e),n=t.byteLength),r(0,e,n),a.set(u.subarray(0,e)),this},digest:()=>(u.set(a),o(i(0)))}}function h(e){return e>>>0}const p=2n**64n-1n;function g(e){return e&p}const m=new TextEncoder;function y(e,t=0){return d(3*e.length,0),h(n(0,m.encodeInto(e,u).written,t))}function v(e,t=0n){return d(3*e.length,0),g(r(0,m.encodeInto(e,u).written,t))}return{h32:y,h32ToString:(e,t=0)=>y(e,t).toString(16).padStart(8,"0"),h32Raw:(e,t=0)=>(d(e.byteLength,0),u.set(e),h(n(0,e.byteLength,t))),create32:(e=0)=>f(48,e,i,o,a,h),h64:v,h64ToString:(e,t=0n)=>v(e,t).toString(16).padStart(16,"0"),h64Raw:(e,t=0n)=>(d(e.byteLength,0),u.set(e),g(r(0,e.byteLength,t))),create64:(e=0n)=>f(88,e,s,l,c,g)}}((await WebAssembly.instantiate(FL)).instance)}async function ML(e,t={}){let n=Ae(t,"fs"),r=Ae(t,"chunkSize");if(Me(r)||(r=67108864),r=xr(r),!FR(e,{fs:n}))return Promise.reject("fp is not a file");let i=Ga();try{let{create64:t}=await DL(),o=t(),a=n.createReadStream(e,{highWaterMark:r});a.on("data",e=>{o.update(e)}),a.on("end",()=>{let e=o.digest().toString(16).padStart(16,"0");i.resolve(e)}),a.on("error",i.reject)}catch(e){i.reject(e.toString())}return i}function NL(e,t={}){let n=Ae(t,"fs"),r=Ae(t,"crypto"),i=Ae(t,"type","");Be(i)||(i="sha512");let o=Ae(t,"chunkSize");Me(o)||(o=67108864),o=xr(o);let a=Ga();return FR(e,{fs:n})?"xxhash64"===i?ML(e,{fs:n,chunkSize:o}):BL(e,{fs:n,crypto:r,type:i}):(a.reject(`fp[${e}] is not a file`),a)}function TL(e,t=1,n={}){let r=1,i=Ae(n,"path"),o=Ae(n,"fs");if(!sL(e,{fs:o}))throw new Error(`fd[${e}] is not a folder`);return null!==t&&_i(t)&&(t=Wi(t))<1&&(t=1),function e(n){let a=[];return sL(n,{fs:o})?(vn(o.readdirSync(n),function(s){let l=i.resolve(n,s),c=null;try{c=o.statSync(l)}catch(e){}c&&c.isDirectory()?(a.push({isFolder:!0,level:r,path:l,name:i.basename(l)}),r+=1,(r<=t||null===t)&&(a=a.concat(e(l))),r-=1):a.push({isFolder:!1,level:r,path:l,name:i.basename(l)})}),a):a}(e)}function QL(e,t=1,n={}){let r=Ae(n,"path"),i=Ae(n,"fs");if(!sL(e,{fs:i}))throw new Error(`fd[${e}] is not a folder`);let o=[];return o=TL(e,t,{path:r,fs:i}),o=aa(o,{isFolder:!1}),o=An(o,e=>(delete e.isFolder,e)),o}async function RL(e,t=1,n={}){let r=Ae(n,"path"),i=Ae(n,"fs"),o=Ae(n,"crypto"),a=Ae(n,"type","");if(Be(a)||(a="md5"),!sL(e,{fs:i}))throw new Error(`fd[${e}] is not a folder`);let s=QL(e,t,{path:r,fs:i});return s=await ac(s,async e=>{let t=Ae(e,"path","");return e.hashType=a,e.hash="",Be(t)&&(e.hash=await NL(t,{fs:i,crypto:o,type:a,useSync:!1})),e}),s}async function LL(e,t=1,n={}){return RL(e,t,{path:o,fs:a,crypto:f,...n})}async function PL(e,t={}){let n=Ae(t,"path"),r=Ae(t,"fs"),i=Ae(t,"crypto"),o=Ae(t,"type","");Be(o)||(o="md5");let a=[],s=TL(e,null,{path:n,fs:r});return await ac(s,async e=>{if(e.isFolder)return;let t=await BL(e.path,{fs:r,crypto:i,type:o});a.push(t)}),vo(a,"|")}function OL(e,t=1,n={}){let r=Ae(n,"path"),i=Ae(n,"fs");if(!sL(e,{fs:i}))throw new Error(`fd[${e}] is not a folder`);let o=[];return o=TL(e,t,{path:r,fs:i}),o=aa(o,{isFolder:!0}),o=An(o,e=>(delete e.isFolder,e)),o}async function UL(e,t,n={}){let r="",i=Ae(n,"fs");if(!Nn(e))throw new Error("fpsIn in not an effective array");let o=gL(t),a=Ae(n,"fnOut","");Be(a)||(a=pL(t)),sL(o,{fs:i})||lL(o,{fs:i});let s=Ga();s.catch(()=>{});let l=null,c=null,u=Ga();u.catch(()=>{});try{l=i.createWriteStream(t),l.on("error",e=>{c=e,r=e.message,u.reject(e),s.reject(r)}),l.on("finish",()=>{let e={filename:a,path:t};s.resolve(e)});for(let t=0;t<e.length;t++){if(null!==c)throw c;let n=e[t];if(!FR(n,{fs:i}))throw new Error(`fpIn[${n}] is not a file`);let r=async()=>{let e=i.createReadStream(n),t=null;for await(let n of e){if(null!==c)throw c;let e=!1,r=new Promise((t,r)=>{e=!l.write(n,e=>{e?r(e):t()})});r.catch(()=>{}),t=r,e&&await Promise.race([h.once(l,"drain"),u])}if(null!==t&&await t,null!==c)throw c;vL(n,{fs:i})};await r()}l.end()}catch(e){r=Ae(e,"message",String(e));try{l.destroy()}catch(e){}s.reject(r)}return s}function $L(e,t,n={}){let r=Ae(n,"fs");if(!FR(e,{fs:r}))return{error:`pahOld[${e}] is not a file`};if(BR(t,{fs:r}))return{error:`pahNew[${t}] already exists`};let i=gL(t);sL(i,{fs:r})||lL(i,{fs:r});try{r.renameSync(e,t)}catch(e){return{error:e}}return{success:"done: "+t}}function HL(e,t,n={}){let r=Ae(n,"fs");if(!sL(e,{fs:r}))return{error:`pahOld[${e}] is not a folder`};if(BR(t,{fs:r}))return{error:`pahNew[${t}] already exists`};let i=gL(t);sL(i,{fs:r})||lL(i,{fs:r});try{r.renameSync(e,t)}catch(e){return{error:e}}return{success:"done: "+t}}function zL(e,t,n,r={}){let i=Ae(r,"withInfor");we(i)||(i=!0);let o={del:[],add:[],same:[],diff:[]};if(!Be(n))return console.log("invalid key"),i&&(o.infor={}),o;Ce(e)||(e=[e]),Ce(t)||(t=[t]),e=aa(e,e=>Ne(e,n)),t=aa(t,e=>Ne(e,n));let a=new Map(t.map(e=>[e[n],e]));for(let t of e){let e=a.get(t[n]);if(e){JSON.stringify(t)===JSON.stringify(e)?o.same.push(e):o.diff.push(e),a.delete(t[n])}else o.del.push(t)}if(o.add=Array.from(a.values()),i){let e={};for(let t of o.del)e[t[n]]="del";for(let t of o.add)e[t[n]]="add";for(let t of o.diff)e[t[n]]="diff";for(let t of o.same)e[t[n]]="same";o.infor=e}return o}async function qL(e,t=1,n={}){let r=Ae(n,"path"),i=Ae(n,"fs"),o=Ae(n,"crypto"),a=Ae(n,"type","");Be(a)||(a="md5");let s=Ae(n,"forFile",null);we(s)||(s=!0);let l=Ae(n,"forFolder",null);if(we(l)||(l=!1),!sL(e,{fs:i}))throw new Error(`fd[${e}] is not a folder`);let c=TL(e,t,{path:r,fs:i});return c=await ac(c,async e=>{let t="";return s&&!e.isFolder&&(t=await BL(e.path,{fs:i,crypto:o,type:a})),l&&e.isFolder&&(t=await PL(e.path,{path:r,fs:i,crypto:o,type:a})),e.hash=t,e}),c}async function jL(e,t,n={}){let r=Ae(n,"path"),i=Ae(n,"fs"),o=Ae(n,"crypto"),a=Ae(n,"type","");if(Be(a)||(a="md5"),!sL(e,{fs:i}))throw new Error(`fdSrc[${e}] is not a folder`);let s=!1;if(!sL(t,{fs:i}))return await fL(e,t,{path:r,fs:i,useSync:!1}),s=!0,s;let l=r.sep,c=r.sep.length,u=(e,t)=>(e=An(e,e=>((e,t)=>{let n=e.isFolder?"folder":"file",r=e.path.replace(t,"");return na(r,c)===l&&(r=ia(r,c)),r=r.replaceAll("\\","/"),{id:`${n}|${r}`,isFolder:e.isFolder,name:e.name,rpath:r,hash:e.hash}})(e,t)),e),d=await qL(e,null,{path:r,fs:i,crypto:o,type:a,forFile:!0,forFolder:!1});d=u(d,r.resolve(e));let f=await qL(t,null,{path:r,fs:i,crypto:o,type:a,forFile:!0,forFolder:!1});f=u(f,r.resolve(t));let h=zL(f,d,"id",{withInfor:!1});return s=or(h.del)>0||or(h.add)>0||or(h.diff)>0,await ac(h.del,async e=>{if(e.isFolder){AL(r.resolve(t,e.rpath),{fs:i})}}),await ac(h.del,async e=>{if(!e.isFolder){vL(r.resolve(t,e.rpath),{fs:i})}}),await ac([...h.add,...h.diff],async n=>{if(!n.isFolder){let o=r.resolve(e,n.rpath),a=r.resolve(t,n.rpath);await uL(o,a,{path:r,fs:i,useSync:!1})}}),s}function WL(e,t={}){let n=Ae(t,"polling");we(n)||(n=!1);let r=Ae(t,"timeInterval");_i(r)||(r=100),r=Wi(r),r=Math.min(r,Ri);let i=Ae(t,"timeBinaryInterval");_i(i)||(i=300),i=Wi(i);let a=Oi(),s=e,l=null,c=setInterval(()=>{null===l&&DR(s)&&(l=d.watch(s,{usePolling:n,interval:r,binaryInterval:i,awaitWriteFinish:!0}),l.on("all",(e,t,n)=>{t=o.resolve(t),$i(a,"change",[{type:e,fp:t,stats:n}],{tag:"fsWatchFile"})}).on("error",e=>{$i(a,"error",[{fun:"watcher",msg:e}],{tag:"fsWatchFile"})}))},r);return a.clear=()=>{(()=>{if(null!==l){try{l.unwatch(s)}catch(e){console.log(e)}l.close().catch(e=>{console.log(e)}).finally(()=>{l=null})}})(),clearInterval(c)},a}function _L(e,t,n={}){let r=null,i=Ae(n,"fs"),o=gL(e);sL(o,{fs:i})||lL(o,{fs:i});try{i.writeFileSync(e,t,"utf8")}catch(e){r=e}return null!==r?{error:r}:{success:e}}const VL=[];for(let e=0;e<256;++e)VL.push((e+256).toString(16).slice(1));const YL=new Uint8Array(16);function GL(){return crypto.getRandomValues(YL)}const JL={};function XL(e,t,n){let r;if(e)r=KL(e.random??e.rng?.()??GL(),e.msecs,e.seq,t,n);else{const e=Date.now(),i=GL();!function(e,t,n){e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=ZL(n),e.msecs=t):(e.seq=e.seq+1|0,0===e.seq&&e.msecs++)}(JL,e,i),r=KL(i,JL.msecs,JL.seq,t,n)}return t??function(e,t=0){return(VL[e[t+0]]+VL[e[t+1]]+VL[e[t+2]]+VL[e[t+3]]+"-"+VL[e[t+4]]+VL[e[t+5]]+"-"+VL[e[t+6]]+VL[e[t+7]]+"-"+VL[e[t+8]]+VL[e[t+9]]+"-"+VL[e[t+10]]+VL[e[t+11]]+VL[e[t+12]]+VL[e[t+13]]+VL[e[t+14]]+VL[e[t+15]]).toLowerCase()}(r)}function KL(e,t,n,r,i=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(r){if(i<0||i+16>r.length)throw new RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`)}else r=new Uint8Array(16),i=0;return t??=Date.now(),n??=ZL(e),r[i++]=t/1099511627776&255,r[i++]=t/4294967296&255,r[i++]=t/16777216&255,r[i++]=t/65536&255,r[i++]=t/256&255,r[i++]=255&t,r[i++]=112|n>>>28&15,r[i++]=n>>>20&255,r[i++]=128|n>>>14&63,r[i++]=n>>>6&255,r[i++]=n<<2&255|3&e[10],r[i++]=e[11],r[i++]=e[12],r[i++]=e[13],r[i++]=e[14],r[i++]=e[15],r}function ZL(e){return(127&e[6])<<24|e[7]<<16|e[8]<<8|e[9]}function eP(e){return"[object Uint16Array]"===Object.prototype.toString.call(e)}function tP(e){if(!(xe(e)||Ja(e)||ss(e)||eP(e)))return null;try{if(Me(e.byteLength))return e.byteLength}catch(e){}try{if(Me(e.length))return e.length}catch(e){}try{if(Me(e.size))return e.size}catch(e){}return null}function nP(e,t=!0){if(!Nn(e)){return{error:"no data"}}let n=null;try{n=function(e,t=!0){let n=t?"\ufeff":"";return vn(e,e=>{let t=[];vn(e,e=>{ke(e)?(e=fc(e,"\r\n",""),e=fc(e,"\r",""),e=`"${e=fc(e,"\n","")}"`):e=we(e)?e?"true":"false":Na(e),t.push(e)}),n+=vo(t,",")+"\r\n"}),n}(e,t)}catch(e){return{error:e}}return n}function rP(e,t={}){let n=Ae(t,"onlyCheckDateObject",null);if(we(n)||(n=!1),n)return"[object Date]"===Object.prototype.toString.call(e);let r=e;return Be(e)&&(r=new Date(e)),Me(e)&&(r=xr(e),r=new Date(e)),r instanceof Date&&!isNaN(r)}function iP(e){return rP(e,{onlyCheckDateObject:!0})}function oP(e){if(!Number.isFinite(e.getTime()))return"";let t=(e,t)=>String(e).padStart(t,"0"),n=e.getUTCFullYear();return`${`${n<0?"-":""}${t(Math.abs(n),4)}-${t(e.getUTCMonth()+1,2)}-${t(e.getUTCDate(),2)}`}T${`${t(e.getUTCHours(),2)}:${t(e.getUTCMinutes(),2)}:${t(e.getUTCSeconds(),2)}.${t(e.getUTCMilliseconds(),3)}`}`}function aP(e){return we(e)?e?"true":"false":iP(e)?oP(e):Na(e)}function sP(e,t){let n=[];return vn(e,e=>{let r=An(e.rows,e=>An(e,e=>null===e?"":t?aP(e):e));n.push({sheetname:e.name,data:r})}),n}async function lP(e,t){let n=Ae(t,"fmt","ltdt");if(!da(["ltdt","csv","array"],n))return{error:"opt.fmt is not one of 'ltdt', 'csv', 'array'"};let r,i=Ae(t,"valueToString",!0);if(!we(i))return{error:"opt.valueToString is not a boolean"};try{r=await VT(e)}catch(e){return console.log("error: ",e),{error:"can not read data from u8a"}}let o=null;try{"ltdt"===n?o=function(e,t){let n=[];return vn(e,e=>{let r=e.rows,i=An(Ae(r,0,[]),e=>{if(null===e)return null;let t=aP(e);return""===t?null:t}),o=[];for(let e=1;e<r.length;e++){let n=r[e];if(gn(n,e=>null===e))continue;let a={};for(let e=0;e<i.length;e++){if(null===i[e])continue;let r=Ae(n,e,null);null!==r&&(t&&(r=aP(r)),a[i[e]]=r)}o.push(a)}n.push({sheetname:e.name,data:o})}),n}(r.sheets,i):"array"===n?o=sP(r.sheets,i):"csv"===n&&(o=function(e,t){let n=sP(e,t);return t||vn(n,e=>{e.data=An(e.data,e=>An(e,e=>iP(e)?oP(e):e))}),vn(n,(e,t)=>{n[t].data=nP(e.data,!1)}),n}(r.sheets,i))}catch(e){return console.log("error: ",e),{error:"can not convert data"}}return o}
|
|
25
25
|
/*!
|
|
26
26
|
* hash-wasm (https://www.npmjs.com/package/hash-wasm)
|
|
27
27
|
* (c) Dani Biro
|
|
28
28
|
* @license MIT
|
|
29
29
|
*/
|
|
30
|
-
function sP(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;class lP{constructor(){this.mutex=Promise.resolve()}lock(){let e=()=>{};return this.mutex=this.mutex.then(()=>new Promise(e)),new Promise(t=>{e=t})}dispatch(e){return sP(this,void 0,void 0,function*(){const t=yield this.lock();try{return yield Promise.resolve(e())}finally{t()}})}}var cP;const uP="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,dP=null!==(cP=uP.Buffer)&&void 0!==cP?cP:null,fP=uP.TextEncoder?new uP.TextEncoder:null;function hP(e,t){return(15&e)+(e>>6|e>>3&8)<<4|(15&t)+(t>>6|t>>3&8)}const pP="a".charCodeAt(0)-10,gP="0".charCodeAt(0);function mP(e,t,n){let r=0;for(let i=0;i<n;i++){let n=t[i]>>>4;e[r++]=n>9?n+pP:n+gP,n=15&t[i],e[r++]=n>9?n+pP:n+gP}return String.fromCharCode.apply(null,e)}const yP=null!==dP?e=>{if("string"==typeof e){const t=dP.from(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.length)}if(dP.isBuffer(e))return new Uint8Array(e.buffer,e.byteOffset,e.length);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Invalid data type!")}:e=>{if("string"==typeof e)return fP.encode(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Invalid data type!")},vP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bP=new Uint8Array(256);for(let e=0;e<64;e++)bP[vP.charCodeAt(e)]=e;function AP(e){const t=function(e){let t=Math.floor(.75*e.length);const n=e.length;return"="===e[n-1]&&(t-=1,"="===e[n-2]&&(t-=1)),t}(e),n=e.length,r=new Uint8Array(t);let i=0;for(let t=0;t<n;t+=4){const n=bP[e.charCodeAt(t)],o=bP[e.charCodeAt(t+1)],a=bP[e.charCodeAt(t+2)],s=bP[e.charCodeAt(t+3)];r[i]=n<<2|o>>4,i+=1,r[i]=(15&o)<<4|a>>2,i+=1,r[i]=(3&a)<<6|63&s,i+=1}return r}const wP=16384,xP=new lP,IP=new Map;function CP(e,t){return sP(this,void 0,void 0,function*(){let n=null,r=null,i=!1;if("undefined"==typeof WebAssembly)throw new Error("WebAssembly is not supported in this environment!");const o=()=>new DataView(n.exports.memory.buffer).getUint32(n.exports.STATE_SIZE,!0),a=xP.dispatch(()=>sP(this,void 0,void 0,function*(){if(!IP.has(e.name)){const t=AP(e.data),n=WebAssembly.compile(t);IP.set(e.name,n)}const t=yield IP.get(e.name);n=yield WebAssembly.instantiate(t,{})})),s=(e=null)=>{i=!0,n.exports.Hash_Init(e)},l=e=>{if(!i)throw new Error("update() called before init()");(e=>{let t=0;for(;t<e.length;){const i=e.subarray(t,t+wP);t+=i.length,r.set(i),n.exports.Hash_Update(i.length)}})(yP(e))},c=new Uint8Array(2*t),u=(e,o=null)=>{if(!i)throw new Error("digest() called before init()");return i=!1,n.exports.Hash_Final(o),"binary"===e?r.slice(0,t):mP(c,r,t)},d=e=>"string"==typeof e?e.length<4096:e.byteLength<wP;let f=d;switch(e.name){case"argon2":case"scrypt":f=()=>!0;break;case"blake2b":case"blake2s":f=(e,t)=>t<=512&&d(e);break;case"blake3":f=(e,t)=>0===t&&d(e);break;case"xxhash64":case"xxhash3":case"xxhash128":case"crc64":f=()=>!1}return yield(()=>sP(this,void 0,void 0,function*(){n||(yield a);const e=n.exports.Hash_GetBuffer(),t=n.exports.memory.buffer;r=new Uint8Array(t,e,wP)}))(),{getMemory:()=>r,writeMemory:(e,t=0)=>{r.set(e,t)},getExports:()=>n.exports,setMemorySize:e=>{n.exports.Hash_SetMemorySize(e);const t=n.exports.Hash_GetBuffer(),i=n.exports.memory.buffer;r=new Uint8Array(i,t,e)},init:s,update:l,digest:u,save:()=>{if(!i)throw new Error("save() can only be called after init() and before digest()");const t=n.exports.Hash_GetState(),r=o(),a=n.exports.memory.buffer,s=new Uint8Array(a,t,r),l=new Uint8Array(4+r);return function(e,t){const n=t.length>>1;for(let r=0;r<n;r++){const n=r<<1;e[r]=hP(t.charCodeAt(n),t.charCodeAt(n+1))}}(l,e.hash),l.set(s,4),l},load:t=>{if(!(t instanceof Uint8Array))throw new Error("load() expects an Uint8Array generated by save()");const r=n.exports.Hash_GetState(),a=o(),s=4+a,l=n.exports.memory.buffer;if(t.length!==s)throw new Error(`Bad state length (expected ${s} bytes, got ${t.length})`);if(!function(e,t){if(e.length!==2*t.length)return!1;for(let n=0;n<t.length;n++){const r=n<<1;if(t[n]!==hP(e.charCodeAt(r),e.charCodeAt(r+1)))return!1}return!0}(e.hash,t.subarray(0,4)))throw new Error("This state was written by an incompatible hash implementation");const c=t.subarray(4);new Uint8Array(l,r,a).set(c),i=!0},calculate:(e,i=null,o=null)=>{if(!f(e,i))return s(i),l(e),u("hex",o);const a=yP(e);return r.set(a),n.exports.Hash_Calculate(a.length,i,o),mP(c,r,t)},hashLength:t}})}new lP,new lP,new lP,new lP,new lP,new lP,new lP;var SP={name:"md5",data:"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",hash:"e6508e4b"};function EP(){return CP(SP,16).then(e=>{e.init();const t={init:()=>(e.init(),t),update:n=>(e.update(n),t),digest:t=>e.digest(t),save:()=>e.save(),load:n=>(e.load(n),t),blockSize:64,digestSize:16};return t})}new lP;var kP={name:"sha1",data:"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",hash:"6b530c24"};function BP(){return CP(kP,20).then(e=>{e.init();const t={init:()=>(e.init(),t),update:n=>(e.update(n),t),digest:t=>e.digest(t),save:()=>e.save(),load:n=>(e.load(n),t),blockSize:64,digestSize:20};return t})}new lP,new lP,new lP;var FP={name:"sha256",data:"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c2pBx6KerX1qIhkgASADcyACcSABIANxcyABQR53IAFBE3dzIAFBCndzaiAaaiICaiIJIBMgEnNxIBJzaiAJQRp3IAlBFXdzIAlBB3dzakHRxqk2aiIaIAIgAXMgA3EgAiABcXMgAkEedyACQRN3cyACQQp3c2ogGGoiA2oiESAJIBNzcSATc2ogEUEadyARQRV3cyARQQd3c2pB59KkoQFqIhggAyACcyABcSADIAJxcyADQR53IANBE3dzIANBCndzaiAUaiIBaiISIBEgCXNxIAlzaiASQRp3IBJBFXdzIBJBB3dzakGFldy9AmoiFCABIANzIAJxIAEgA3FzIAFBHncgAUETd3MgAUEKd3NqIBdqIgJqIhMgI2ogJiASaiAiIBFqICUgCWogEyASIBFzcSARc2ogE0EadyATQRV3cyATQQd3c2pBuMLs8AJqIhcgAiABcyADcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAZaiIDaiIJIBMgEnNxIBJzaiAJQRp3IAlBFXdzIAlBB3dzakH827HpBGoiGSADIAJzIAFxIAMgAnFzIANBHncgA0ETd3MgA0EKd3NqIBpqIgFqIhEgCSATc3EgE3NqIBFBGncgEUEVd3MgEUEHd3NqQZOa4JkFaiIaIAEgA3MgAnEgASADcXMgAUEedyABQRN3cyABQQp3c2ogGGoiAmoiEiARIAlzcSAJc2ogEkEadyASQRV3cyASQQd3c2pB1OapqAZqIhggAiABcyADcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAUaiIDaiITaiAoIBJqICQgEWogJyAJaiATIBIgEXNxIBFzaiATQRp3IBNBFXdzIBNBB3dzakG7laizB2oiFCADIAJzIAFxIAMgAnFzIANBHncgA0ETd3MgA0EKd3NqIBdqIgFqIgkgEyASc3EgEnNqIAlBGncgCUEVd3MgCUEHd3NqQa6Si454aiIXIAEgA3MgAnEgASADcXMgAUEedyABQRN3cyABQQp3c2ogGWoiAmoiESAJIBNzcSATc2ogEUEadyARQRV3cyARQQd3c2pBhdnIk3lqIhkgAiABcyADcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAaaiIDaiISIBEgCXNxIAlzaiASQRp3IBJBFXdzIBJBB3dzakGh0f+VemoiGiADIAJz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",hash:"8c18dd94"};function DP(){return CP(FP,32).then(e=>{e.init(256);const t={init:()=>(e.init(256),t),update:n=>(e.update(n),t),digest:t=>e.digest(t),save:()=>e.save(),load:n=>(e.load(n),t),blockSize:64,digestSize:32};return t})}new lP,new lP;var MP={name:"sha512",data:"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",hash:"f2e40eb1"};function NP(){return CP(MP,48).then(e=>{e.init(384);const t={init:()=>(e.init(384),t),update:n=>(e.update(n),t),digest:t=>e.digest(t),save:()=>e.save(),load:n=>(e.load(n),t),blockSize:128,digestSize:48};return t})}function TP(){return CP(MP,64).then(e=>{e.init(512);const t={init:()=>(e.init(512),t),update:n=>(e.update(n),t),digest:t=>e.digest(t),save:()=>e.save(),load:n=>(e.load(n),t),blockSize:128,digestSize:64};return t})}function QP(e){return"[object File]"===Object.prototype.toString.call(e)}async function RP(e,t={}){if(!Ja(e)&&!QP(e))return console.log("inp",e),Promise.reject("inp is not a Blob or File");let n=Ae(t,"type","");Be(n)||(n="sha512");let r=Ae(t,"chunkSize");Me(r)||(r=67108864),r=xr(r);let i={MD5:EP,"SHA-1":BP,"SHA-256":DP,"SHA-384":NP,"SHA-512":TP,md5:EP,sha1:BP,sha256:DP,sha384:NP,sha512:TP};if(!Ne(i,n))return Promise.reject(`type[${n}] must be one of [ 'md5', 'sha1', 'sha256', 'sha384', 'sha512' ]`);let o=Ae(i,n),a=await o(),s=0;for(;s<e.size;){let t=e.slice(s,s+r),n=await t.arrayBuffer();a.update(new Uint8Array(n)),s+=r}return a.digest()}async function LP(e,t={}){if(!Ja(e)&&!QP(e))return console.log("inp",e),Promise.reject("inp is not a Blob or File");let n=Ae(t,"chunkSize");Me(n)||(n=67108864),n=xr(n);let{create64:r}=await BL(),i=r(),o=0;for(;o<e.size;){let t=e.slice(o,o+n),r=await t.arrayBuffer();i.update(new Uint8Array(r)),o+=n}return i.digest().toString(16).padStart(16,"0")}new lP,new lP,new lP,new lP,new lP,new lP,new lP,new lP,new lP;var PP=4294967295,OP=Math.min;function UP(e,t){if((e=wr(e))<1||e>9007199254740991)return[];var n=PP,r=OP(e,PP);t=yn(t),e-=PP;for(var i=Le(r,t);++n<e;)t(n);return i}function $P(e){let t="";return"years"===e?t="YYYY":"months"===e?t="YYYY-MM":"days"===e?t="YYYY-MM-DD":"hours"===e?t="YYYY-MM-DDTHH":"minutes"===e?t="YYYY-MM-DDTHH:mm":"seconds"===e&&(t="YYYY-MM-DDTHH:mm:ss"),t}function HP(e,n="days"){if(!Be(e))return null;if(!Be(n))return null;let r=function(e,n){let r="";return"years"===n?r="-01-01T00:00:00":"months"===n?r="-01T00:00:00":"days"===n?r="T00:00:00":"hours"===n?r=":00:00":"minutes"===n&&(r=":00"),t(e+r,"YYYY-MM-DDTHH:mm:ss")}(e,n),i=$P(n);return e===r.format(i)?r:null}function zP(){let e=tc(),t=()=>Number(e.process.hrtime.bigint())/1e6,n=()=>e.performance.now(),r=null;return r=Xa()?n:t,r}function qP(e,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!MI(e))return i("invalid t");let o="";try{o=t(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH:mm")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o}function jP(e=null){let t,n=function(){let e=tc();return p.UAParser||e.UAParser}();t=ke(e)?new n(e):new n;let r=t.getResult();return{browsername:r.browser.name,browserversion:r.browser.version,engineinfor:r.engine.name+r.engine.version,platform:r.os.name+r.os.version,devicetype:Ae(r.device,"type",""),cpuarchitecture:Ae(r.cpu,"architecture","")}}let WP="in x-range",_P="out of x-range",VP="order list",YP="reverse order list";function GP(e,t){let n=null,r=null;return n=e[0].x,r=e[or(e)-1].x,t<n?{err:_P,msg:`x[${t}] less than lower limit[${n}]`,data:{ps:e,x:t,xmin:n,xmax:r}}:t>r?{err:_P,msg:`x[${t}] greater than upper limit[${r}]`,data:{ps:e,x:t,xmin:n,xmax:r}}:WP}function JP(e){return!!Ce(e)&&e.length>=1}let XP=/^[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?\.)+(?:[A-Za-z]{2,63}|[Xx][Nn]--[A-Za-z0-9-]{0,58}[A-Za-z0-9])$/;function KP(e){if(!D(e))return!1;var t=F(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Iu(e)}function ZP(e){if(!Ir(e))return!1;return Wi(e)<=0}function eO(e){if(!Me(e))return!1;return xr(e)<=0}function tO(e){if(!Me(e))return!1;return xr(e)>=0}function nO(e){if(!Be(e))return!1;return!(null===e.match(/^.*[A-Z]+.*$/))}function rO(e){if(!Be(e))return!1;return!(null===e.match(/^.*[a-zA-Z]+.*$/))}function iO(e){if(!Be(e))return!1;return!(null===e.match(/^.*[a-z]+.*$/))}function oO(e){if(!Be(e))return!1;return!(null===e.match(/^.*[0-9]+.*$/))}function aO(e){if(!Be(e))return!1;return!(null===e.match(/^.*\s+.*$/))}function sO(e){if(!Be(e))return!1;
|
|
30
|
+
function cP(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;class uP{constructor(){this.mutex=Promise.resolve()}lock(){let e=()=>{};return this.mutex=this.mutex.then(()=>new Promise(e)),new Promise(t=>{e=t})}dispatch(e){return cP(this,void 0,void 0,function*(){const t=yield this.lock();try{return yield Promise.resolve(e())}finally{t()}})}}var dP;const fP="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,hP=null!==(dP=fP.Buffer)&&void 0!==dP?dP:null,pP=fP.TextEncoder?new fP.TextEncoder:null;function gP(e,t){return(15&e)+(e>>6|e>>3&8)<<4|(15&t)+(t>>6|t>>3&8)}const mP="a".charCodeAt(0)-10,yP="0".charCodeAt(0);function vP(e,t,n){let r=0;for(let i=0;i<n;i++){let n=t[i]>>>4;e[r++]=n>9?n+mP:n+yP,n=15&t[i],e[r++]=n>9?n+mP:n+yP}return String.fromCharCode.apply(null,e)}const bP=null!==hP?e=>{if("string"==typeof e){const t=hP.from(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.length)}if(hP.isBuffer(e))return new Uint8Array(e.buffer,e.byteOffset,e.length);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Invalid data type!")}:e=>{if("string"==typeof e)return pP.encode(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Invalid data type!")},AP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wP=new Uint8Array(256);for(let e=0;e<64;e++)wP[AP.charCodeAt(e)]=e;function xP(e){const t=function(e){let t=Math.floor(.75*e.length);const n=e.length;return"="===e[n-1]&&(t-=1,"="===e[n-2]&&(t-=1)),t}(e),n=e.length,r=new Uint8Array(t);let i=0;for(let t=0;t<n;t+=4){const n=wP[e.charCodeAt(t)],o=wP[e.charCodeAt(t+1)],a=wP[e.charCodeAt(t+2)],s=wP[e.charCodeAt(t+3)];r[i]=n<<2|o>>4,i+=1,r[i]=(15&o)<<4|a>>2,i+=1,r[i]=(3&a)<<6|63&s,i+=1}return r}const IP=16384,CP=new uP,SP=new Map;function EP(e,t){return cP(this,void 0,void 0,function*(){let n=null,r=null,i=!1;if("undefined"==typeof WebAssembly)throw new Error("WebAssembly is not supported in this environment!");const o=()=>new DataView(n.exports.memory.buffer).getUint32(n.exports.STATE_SIZE,!0),a=CP.dispatch(()=>cP(this,void 0,void 0,function*(){if(!SP.has(e.name)){const t=xP(e.data),n=WebAssembly.compile(t);SP.set(e.name,n)}const t=yield SP.get(e.name);n=yield WebAssembly.instantiate(t,{})})),s=(e=null)=>{i=!0,n.exports.Hash_Init(e)},l=e=>{if(!i)throw new Error("update() called before init()");(e=>{let t=0;for(;t<e.length;){const i=e.subarray(t,t+IP);t+=i.length,r.set(i),n.exports.Hash_Update(i.length)}})(bP(e))},c=new Uint8Array(2*t),u=(e,o=null)=>{if(!i)throw new Error("digest() called before init()");return i=!1,n.exports.Hash_Final(o),"binary"===e?r.slice(0,t):vP(c,r,t)},d=e=>"string"==typeof e?e.length<4096:e.byteLength<IP;let f=d;switch(e.name){case"argon2":case"scrypt":f=()=>!0;break;case"blake2b":case"blake2s":f=(e,t)=>t<=512&&d(e);break;case"blake3":f=(e,t)=>0===t&&d(e);break;case"xxhash64":case"xxhash3":case"xxhash128":case"crc64":f=()=>!1}return yield(()=>cP(this,void 0,void 0,function*(){n||(yield a);const e=n.exports.Hash_GetBuffer(),t=n.exports.memory.buffer;r=new Uint8Array(t,e,IP)}))(),{getMemory:()=>r,writeMemory:(e,t=0)=>{r.set(e,t)},getExports:()=>n.exports,setMemorySize:e=>{n.exports.Hash_SetMemorySize(e);const t=n.exports.Hash_GetBuffer(),i=n.exports.memory.buffer;r=new Uint8Array(i,t,e)},init:s,update:l,digest:u,save:()=>{if(!i)throw new Error("save() can only be called after init() and before digest()");const t=n.exports.Hash_GetState(),r=o(),a=n.exports.memory.buffer,s=new Uint8Array(a,t,r),l=new Uint8Array(4+r);return function(e,t){const n=t.length>>1;for(let r=0;r<n;r++){const n=r<<1;e[r]=gP(t.charCodeAt(n),t.charCodeAt(n+1))}}(l,e.hash),l.set(s,4),l},load:t=>{if(!(t instanceof Uint8Array))throw new Error("load() expects an Uint8Array generated by save()");const r=n.exports.Hash_GetState(),a=o(),s=4+a,l=n.exports.memory.buffer;if(t.length!==s)throw new Error(`Bad state length (expected ${s} bytes, got ${t.length})`);if(!function(e,t){if(e.length!==2*t.length)return!1;for(let n=0;n<t.length;n++){const r=n<<1;if(t[n]!==gP(e.charCodeAt(r),e.charCodeAt(r+1)))return!1}return!0}(e.hash,t.subarray(0,4)))throw new Error("This state was written by an incompatible hash implementation");const c=t.subarray(4);new Uint8Array(l,r,a).set(c),i=!0},calculate:(e,i=null,o=null)=>{if(!f(e,i))return s(i),l(e),u("hex",o);const a=bP(e);return r.set(a),n.exports.Hash_Calculate(a.length,i,o),vP(c,r,t)},hashLength:t}})}new uP,new uP,new uP,new uP,new uP,new uP,new uP;var kP={name:"md5",data:"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",hash:"e6508e4b"};function BP(){return EP(kP,16).then(e=>{e.init();const t={init:()=>(e.init(),t),update:n=>(e.update(n),t),digest:t=>e.digest(t),save:()=>e.save(),load:n=>(e.load(n),t),blockSize:64,digestSize:16};return t})}new uP;var FP={name:"sha1",data:"AGFzbQEAAAABEQRgAAF/YAF/AGAAAGACf38AAwkIAAECAwECAAEFBAEBAgIGDgJ/AUHgiQULfwBBgAgLB3AIBm1lbW9yeQIADkhhc2hfR2V0QnVmZmVyAAAJSGFzaF9Jbml0AAILSGFzaF9VcGRhdGUABApIYXNoX0ZpbmFsAAUNSGFzaF9HZXRTdGF0ZQAGDkhhc2hfQ2FsY3VsYXRlAAcKU1RBVEVfU0laRQMBCpoqCAUAQYAJC68iCgF+An8BfgF/AX4DfwF+AX8Bfkd/QQAgACkDECIBQiCIpyICQRh0IAJBgP4DcUEIdHIgAUIoiKdBgP4DcSABQjiIp3JyIgMgACkDCCIEQiCIpyICQRh0IAJBgP4DcUEIdHIgBEIoiKdBgP4DcSAEQjiIp3JyIgVzIAApAygiBkIgiKciAkEYdCACQYD+A3FBCHRyIAZCKIinQYD+A3EgBkI4iKdyciIHcyAEpyICQRh0IAJBgP4DcUEIdHIgAkEIdkGA/gNxIAJBGHZyciIIIAApAwAiBKciAkEYdCACQYD+A3FBCHRyIAJBCHZBgP4DcSACQRh2cnIiCXMgACkDICIKpyICQRh0IAJBgP4DcUEIdHIgAkEIdkGA/gNxIAJBGHZyciILcyAAKQMwIgxCIIinIgJBGHQgAkGA/gNxQQh0ciAMQiiIp0GA/gNxIAxCOIincnIiAnNBAXciDXNBAXciDiAFIARCIIinIg9BGHQgD0GA/gNxQQh0ciAEQiiIp0GA/gNxIARCOIincnIiEHMgCkIgiKciD0EYdCAPQYD+A3FBCHRyIApCKIinQYD+A3EgCkI4iKdyciIRcyAAKQM4IgSnIg9BGHQgD0GA/gNxQQh0ciAPQQh2QYD+A3EgD0EYdnJyIg9zQQF3IhJzIAcgEXMgEnMgCyAAKQMYIgqnIgBBGHQgAEGA/gNxQQh0ciAAQQh2QYD+A3EgAEEYdnJyIhNzIA9zIA5zQQF3IgBzQQF3IhRzIA0gD3MgAHMgAiAHcyAOcyAGpyIVQRh0IBVBgP4DcUEIdHIgFUEIdkGA/gNxIBVBGHZyciIWIAtzIA1zIApCIIinIhVBGHQgFUGA/gNxQQh0ciAKQiiIp0GA/gNxIApCOIincnIiFyADcyACcyABpyIVQRh0IBVBgP4DcUEIdHIgFUEIdkGA/gNxIBVBGHZyciIYIAhzIBZzIARCIIinIhVBGHQgFUGA/gNxQQh0ciAEQiiIp0GA/gNxIARCOIincnIiFXNBAXciGXNBAXciGnNBAXciG3NBAXciHHNBAXciHXNBAXciHiASIBVzIBEgF3MgFXMgEyAYcyAMpyIfQRh0IB9BgP4DcUEIdHIgH0EIdkGA/gNxIB9BGHZyciIgcyASc0EBdyIfc0EBdyIhcyAPICBzIB9zIBRzQQF3IiJzQQF3IiNzIBQgIXMgI3MgACAfcyAicyAec0EBdyIkc0EBdyIlcyAdICJzICRzIBwgFHMgHnMgGyAAcyAdcyAaIA5zIBxzIBkgDXMgG3MgFSACcyAacyAgIBZzIBlzICFzQQF3IiZzQQF3IidzQQF3IihzQQF3IilzQQF3IipzQQF3IitzQQF3IixzQQF3Ii0gIyAncyAhIBpzICdzIB8gGXMgJnMgI3NBAXciLnNBAXciL3MgIiAmcyAucyAlc0EBdyIwc0EBdyIxcyAlIC9zIDFzICQgLnMgMHMgLXNBAXciMnNBAXciM3MgLCAwcyAycyArICVzIC1zICogJHMgLHMgKSAecyArcyAoIB1zICpzICcgHHMgKXMgJiAbcyAocyAvc0EBdyI0c0EBdyI1c0EBdyI2c0EBdyI3c0EBdyI4c0EBdyI5c0EBdyI6c0EBdyI7IDEgNXMgLyApcyA1cyAuIChzIDRzIDFzQQF3IjxzQQF3Ij1zIDAgNHMgPHMgM3NBAXciPnNBAXciP3MgMyA9cyA/cyAyIDxzID5zIDtzQQF3IkBzQQF3IkFzIDogPnMgQHMgOSAzcyA7cyA4IDJzIDpzIDcgLXMgOXMgNiAscyA4cyA1ICtzIDdzIDQgKnMgNnMgPXNBAXciQnNBAXciQ3NBAXciRHNBAXciRXNBAXciRnNBAXciR3NBAXciSHNBAXciSSA+IEJzIDwgNnMgQnMgP3NBAXciSnMgQXNBAXciSyA9IDdzIENzIEpzQQF3IkwgRCA5IDIgMSA0ICkgHSAUIB8gFSAWQQAoAoCJASJNQQV3QQAoApCJASJOaiAJakEAKAKMiQEiT0EAKAKIiQEiCXNBACgChIkBIlBxIE9zakGZ84nUBWoiUUEedyJSIANqIFBBHnciAyAFaiBPIAMgCXMgTXEgCXNqIBBqIFFBBXdqQZnzidQFaiIQIFIgTUEedyIFc3EgBXNqIAkgCGogUSADIAVzcSADc2ogEEEFd2pBmfOJ1AVqIlFBBXdqQZnzidQFaiJTIFFBHnciAyAQQR53IghzcSAIc2ogBSAYaiBRIAggUnNxIFJzaiBTQQV3akGZ84nUBWoiBUEFd2pBmfOJ1AVqIhhBHnciUmogU0EedyIWIAtqIAggE2ogBSAWIANzcSADc2ogGEEFd2pBmfOJ1AVqIgggUiAFQR53IgtzcSALc2ogAyAXaiAYIAsgFnNxIBZzaiAIQQV3akGZ84nUBWoiBUEFd2pBmfOJ1AVqIhMgBUEedyIWIAhBHnciA3NxIANzaiALIBFqIAUgAyBSc3EgUnNqIBNBBXdqQZnzidQFaiIRQQV3akGZ84nUBWoiUkEedyILaiACIBNBHnciFWogByADaiARIBUgFnNxIBZzaiBSQQV3akGZ84nUBWoiByALIBFBHnciAnNxIAJzaiAgIBZqIFIgAiAVc3EgFXNqIAdBBXdqQZnzidQFaiIRQQV3akGZ84nUBWoiFiARQR53IhUgB0EedyIHc3EgB3NqIA8gAmogESAHIAtzcSALc2ogFkEFd2pBmfOJ1AVqIgtBBXdqQZnzidQFaiIRQR53IgJqIBIgFWogESALQR53Ig8gFkEedyISc3EgEnNqIA0gB2ogCyASIBVzcSAVc2ogEUEFd2pBmfOJ1AVqIg1BBXdqQZnzidQFaiIVQR53Ih8gDUEedyIHcyAZIBJqIA0gAiAPc3EgD3NqIBVBBXdqQZnzidQFaiINc2ogDiAPaiAVIAcgAnNxIAJzaiANQQV3akGZ84nUBWoiAkEFd2pBodfn9gZqIg5BHnciD2ogACAfaiACQR53IgAgDUEedyINcyAOc2ogGiAHaiANIB9zIAJzaiAOQQV3akGh1+f2BmoiAkEFd2pBodfn9gZqIg5BHnciEiACQR53IhRzICEgDWogDyAAcyACc2ogDkEFd2pBodfn9gZqIgJzaiAbIABqIBQgD3MgDnNqIAJBBXdqQaHX5/YGaiIAQQV3akGh1+f2BmoiDUEedyIOaiAcIBJqIABBHnciDyACQR53IgJzIA1zaiAmIBRqIAIgEnMgAHNqIA1BBXdqQaHX5/YGaiIAQQV3akGh1+f2BmoiDUEedyISIABBHnciFHMgIiACaiAOIA9zIABzaiANQQV3akGh1+f2BmoiAHNqICcgD2ogFCAOcyANc2ogAEEFd2pBodfn9gZqIgJBBXdqQaHX5/YGaiINQR53Ig5qICggEmogAkEedyIPIABBHnciAHMgDXNqICMgFGogACAScyACc2ogDUEFd2pBodfn9gZqIgJBBXdqQaHX5/YGaiINQR53IhIgAkEedyIUcyAeIABqIA4gD3MgAnNqIA1BBXdqQaHX5/YGaiIAc2ogLiAPaiAUIA5zIA1zaiAAQQV3akGh1+f2BmoiAkEFd2pBodfn9gZqIg1BHnciDmogKiAAQR53IgBqIA4gAkEedyIPcyAkIBRqIAAgEnMgAnNqIA1BBXdqQaHX5/YGaiIUc2ogLyASaiAPIABzIA1zaiAUQQV3akGh1+f2BmoiDUEFd2pBodfn9gZqIgAgDUEedyICciAUQR53IhJxIAAgAnFyaiAlIA9qIBIgDnMgDXNqIABBBXdqQaHX5/YGaiINQQV3akHc+e74eGoiDkEedyIPaiA1IABBHnciAGogKyASaiANIAByIAJxIA0gAHFyaiAOQQV3akHc+e74eGoiEiAPciANQR53Ig1xIBIgD3FyaiAwIAJqIA4gDXIgAHEgDiANcXJqIBJBBXdqQdz57vh4aiIAQQV3akHc+e74eGoiAiAAQR53Ig5yIBJBHnciEnEgAiAOcXJqICwgDWogACASciAPcSAAIBJxcmogAkEFd2pB3Pnu+HhqIgBBBXdqQdz57vh4aiINQR53Ig9qIDwgAkEedyICaiA2IBJqIAAgAnIgDnEgACACcXJqIA1BBXdqQdz57vh4aiISIA9yIABBHnciAHEgEiAPcXJqIC0gDmogDSAAciACcSANIABxcmogEkEFd2pB3Pnu+HhqIgJBBXdqQdz57vh4aiINIAJBHnciDnIgEkEedyIScSANIA5xcmogNyAAaiACIBJyIA9xIAIgEnFyaiANQQV3akHc+e74eGoiAEEFd2pB3Pnu+HhqIgJBHnciD2ogMyANQR53Ig1qID0gEmogACANciAOcSAAIA1xcmogAkEFd2pB3Pnu+HhqIhIgD3IgAEEedyIAcSASIA9xcmogOCAOaiACIAByIA1xIAIgAHFyaiASQQV3akHc+e74eGoiAkEFd2pB3Pnu+HhqIg0gAkEedyIOciASQR53IhJxIA0gDnFyaiBCIABqIAIgEnIgD3EgAiAScXJqIA1BBXdqQdz57vh4aiIAQQV3akHc+e74eGoiAkEedyIPaiBDIA5qIAIgAEEedyIUciANQR53Ig1xIAIgFHFyaiA+IBJqIAAgDXIgDnEgACANcXJqIAJBBXdqQdz57vh4aiIAQQV3akHc+e74eGoiAkEedyISIABBHnciDnMgOiANaiAAIA9yIBRxIAAgD3FyaiACQQV3akHc+e74eGoiAHNqID8gFGogAiAOciAPcSACIA5xcmogAEEFd2pB3Pnu+HhqIgJBBXdqQdaDi9N8aiINQR53Ig9qIEogEmogAkEedyIUIABBHnciAHMgDXNqIDsgDmogACAScyACc2ogDUEFd2pB1oOL03xqIgJBBXdqQdaDi9N8aiINQR53Ig4gAkEedyIScyBFIABqIA8gFHMgAnNqIA1BBXdqQdaDi9N8aiIAc2ogQCAUaiASIA9zIA1zaiAAQQV3akHWg4vTfGoiAkEFd2pB1oOL03xqIg1BHnciD2ogQSAOaiACQR53IhQgAEEedyIAcyANc2ogRiASaiAAIA5zIAJzaiANQQV3akHWg4vTfGoiAkEFd2pB1oOL03xqIg1BHnciDiACQR53IhJzIEIgOHMgRHMgTHNBAXciFSAAaiAPIBRzIAJzaiANQQV3akHWg4vTfGoiAHNqIEcgFGogEiAPcyANc2ogAEEFd2pB1oOL03xqIgJBBXdqQdaDi9N8aiINQR53Ig9qIEggDmogAkEedyIUIABBHnciAHMgDXNqIEMgOXMgRXMgFXNBAXciGSASaiAAIA5zIAJzaiANQQV3akHWg4vTfGoiAkEFd2pB1oOL03xqIg1BHnciDiACQR53IhJzID8gQ3MgTHMgS3NBAXciGiAAaiAPIBRzIAJzaiANQQV3akHWg4vTfGoiAHNqIEQgOnMgRnMgGXNBAXciGyAUaiASIA9zIA1zaiAAQQV3akHWg4vTfGoiAkEFd2pB1oOL03xqIg1BHnciDyBOajYCkIkBQQAgTyBKIERzIBVzIBpzQQF3IhQgEmogAEEedyIAIA5zIAJzaiANQQV3akHWg4vTfGoiEkEedyIVajYCjIkBQQAgCSBFIDtzIEdzIBtzQQF3IA5qIAJBHnciAiAAcyANc2ogEkEFd2pB1oOL03xqIg1BHndqNgKIiQFBACBQIEAgSnMgS3MgSXNBAXcgAGogDyACcyASc2ogDUEFd2pB1oOL03xqIgBqNgKEiQFBACBNIEwgRXMgGXMgFHNBAXdqIAJqIBUgD3MgDXNqIABBBXdqQdaDi9N8ajYCgIkBCzoAQQBC/rnrxemOlZkQNwKIiQFBAEKBxpS6lvHq5m83AoCJAUEAQvDDy54MNwKQiQFBAEEANgKYiQELqAMBCH9BACECQQBBACgClIkBIgMgAUEDdGoiBDYClIkBQQBBACgCmIkBIAQgA0lqIAFBHXZqNgKYiQECQCADQQN2QT9xIgUgAWpBwABJDQBBwAAgBWsiAkEDcSEGQQAhAwJAIAVBP3NBA0kNACAFQYCJAWohByACQfwAcSEIQQAhAwNAIAcgA2oiBEEcaiAAIANqIgktAAA6AAAgBEEdaiAJQQFqLQAAOgAAIARBHmogCUECai0AADoAACAEQR9qIAlBA2otAAA6AAAgCCADQQRqIgNHDQALCwJAIAZFDQAgACADaiEEIAMgBWpBnIkBaiEDA0AgAyAELQAAOgAAIARBAWohBCADQQFqIQMgBkF/aiIGDQALC0GciQEQASAFQf8AcyEDQQAhBSADIAFPDQADQCAAIAJqEAEgAkH/AGohAyACQcAAaiIEIQIgAyABSQ0ACyAEIQILAkAgASACRg0AIAEgAmshCSAAIAJqIQIgBUGciQFqIQNBACEEA0AgAyACLQAAOgAAIAJBAWohAiADQQFqIQMgCSAEQQFqIgRB/wFxSw0ACwsLCQBBgAkgABADC6YDAQJ/IwBBEGsiACQAIABBgAE6AAcgAEEAKAKYiQEiAUEYdCABQYD+A3FBCHRyIAFBCHZBgP4DcSABQRh2cnI2AAggAEEAKAKUiQEiAUEYdCABQYD+A3FBCHRyIAFBCHZBgP4DcSABQRh2cnI2AAwgAEEHakEBEAMCQEEAKAKUiQFB+ANxQcADRg0AA0AgAEEAOgAHIABBB2pBARADQQAoApSJAUH4A3FBwANHDQALCyAAQQhqQQgQA0EAQQAoAoCJASIBQRh0IAFBgP4DcUEIdHIgAUEIdkGA/gNxIAFBGHZycjYCgAlBAEEAKAKEiQEiAUEYdCABQYD+A3FBCHRyIAFBCHZBgP4DcSABQRh2cnI2AoQJQQBBACgCiIkBIgFBGHQgAUGA/gNxQQh0ciABQQh2QYD+A3EgAUEYdnJyNgKICUEAQQAoAoyJASIBQRh0IAFBgP4DcUEIdHIgAUEIdkGA/gNxIAFBGHZycjYCjAlBAEEAKAKQiQEiAUEYdCABQYD+A3FBCHRyIAFBCHZBgP4DcSABQRh2cnI2ApAJIABBEGokAAsGAEGAiQELQwBBAEL+uevF6Y6VmRA3AoiJAUEAQoHGlLqW8ermbzcCgIkBQQBC8MPLngw3ApCJAUEAQQA2ApiJAUGACSAAEAMQBQsLCwEAQYAICwRcAAAA",hash:"6b530c24"};function DP(){return EP(FP,20).then(e=>{e.init();const t={init:()=>(e.init(),t),update:n=>(e.update(n),t),digest:t=>e.digest(t),save:()=>e.save(),load:n=>(e.load(n),t),blockSize:64,digestSize:20};return t})}new uP,new uP,new uP;var MP={name:"sha256",data:"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c2pBx6KerX1qIhkgASADcyACcSABIANxcyABQR53IAFBE3dzIAFBCndzaiAaaiICaiIJIBMgEnNxIBJzaiAJQRp3IAlBFXdzIAlBB3dzakHRxqk2aiIaIAIgAXMgA3EgAiABcXMgAkEedyACQRN3cyACQQp3c2ogGGoiA2oiESAJIBNzcSATc2ogEUEadyARQRV3cyARQQd3c2pB59KkoQFqIhggAyACcyABcSADIAJxcyADQR53IANBE3dzIANBCndzaiAUaiIBaiISIBEgCXNxIAlzaiASQRp3IBJBFXdzIBJBB3dzakGFldy9AmoiFCABIANzIAJxIAEgA3FzIAFBHncgAUETd3MgAUEKd3NqIBdqIgJqIhMgI2ogJiASaiAiIBFqICUgCWogEyASIBFzcSARc2ogE0EadyATQRV3cyATQQd3c2pBuMLs8AJqIhcgAiABcyADcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAZaiIDaiIJIBMgEnNxIBJzaiAJQRp3IAlBFXdzIAlBB3dzakH827HpBGoiGSADIAJzIAFxIAMgAnFzIANBHncgA0ETd3MgA0EKd3NqIBpqIgFqIhEgCSATc3EgE3NqIBFBGncgEUEVd3MgEUEHd3NqQZOa4JkFaiIaIAEgA3MgAnEgASADcXMgAUEedyABQRN3cyABQQp3c2ogGGoiAmoiEiARIAlzcSAJc2ogEkEadyASQRV3cyASQQd3c2pB1OapqAZqIhggAiABcyADcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAUaiIDaiITaiAoIBJqICQgEWogJyAJaiATIBIgEXNxIBFzaiATQRp3IBNBFXdzIBNBB3dzakG7laizB2oiFCADIAJzIAFxIAMgAnFzIANBHncgA0ETd3MgA0EKd3NqIBdqIgFqIgkgEyASc3EgEnNqIAlBGncgCUEVd3MgCUEHd3NqQa6Si454aiIXIAEgA3MgAnEgASADcXMgAUEedyABQRN3cyABQQp3c2ogGWoiAmoiESAJIBNzcSATc2ogEUEadyARQRV3cyARQQd3c2pBhdnIk3lqIhkgAiABcyADcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAaaiIDaiISIBEgCXNxIAlzaiASQRp3IBJBFXdzIBJBB3dzakGh0f+VemoiGiADIAJz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",hash:"8c18dd94"};function NP(){return EP(MP,32).then(e=>{e.init(256);const t={init:()=>(e.init(256),t),update:n=>(e.update(n),t),digest:t=>e.digest(t),save:()=>e.save(),load:n=>(e.load(n),t),blockSize:64,digestSize:32};return t})}new uP,new uP;var TP={name:"sha512",data:"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",hash:"f2e40eb1"};function QP(){return EP(TP,48).then(e=>{e.init(384);const t={init:()=>(e.init(384),t),update:n=>(e.update(n),t),digest:t=>e.digest(t),save:()=>e.save(),load:n=>(e.load(n),t),blockSize:128,digestSize:48};return t})}function RP(){return EP(TP,64).then(e=>{e.init(512);const t={init:()=>(e.init(512),t),update:n=>(e.update(n),t),digest:t=>e.digest(t),save:()=>e.save(),load:n=>(e.load(n),t),blockSize:128,digestSize:64};return t})}function LP(e){return"[object File]"===Object.prototype.toString.call(e)}async function PP(e,t={}){if(!Ja(e)&&!LP(e))return console.log("inp",e),Promise.reject("inp is not a Blob or File");let n=Ae(t,"type","");Be(n)||(n="sha512");let r=Ae(t,"chunkSize");Me(r)||(r=67108864),r=xr(r);let i={MD5:BP,"SHA-1":DP,"SHA-256":NP,"SHA-384":QP,"SHA-512":RP,md5:BP,sha1:DP,sha256:NP,sha384:QP,sha512:RP};if(!Ne(i,n))return Promise.reject(`type[${n}] must be one of [ 'md5', 'sha1', 'sha256', 'sha384', 'sha512' ]`);let o=Ae(i,n),a=await o(),s=0;for(;s<e.size;){let t=e.slice(s,s+r),n=await t.arrayBuffer();a.update(new Uint8Array(n)),s+=r}return a.digest()}async function OP(e,t={}){if(!Ja(e)&&!LP(e))return console.log("inp",e),Promise.reject("inp is not a Blob or File");let n=Ae(t,"chunkSize");Me(n)||(n=67108864),n=xr(n);let{create64:r}=await DL(),i=r(),o=0;for(;o<e.size;){let t=e.slice(o,o+n),r=await t.arrayBuffer();i.update(new Uint8Array(r)),o+=n}return i.digest().toString(16).padStart(16,"0")}new uP,new uP,new uP,new uP,new uP,new uP,new uP,new uP,new uP;var UP=4294967295,$P=Math.min;function HP(e,t){if((e=wr(e))<1||e>9007199254740991)return[];var n=UP,r=$P(e,UP);t=yn(t),e-=UP;for(var i=Le(r,t);++n<e;)t(n);return i}function zP(e){let t="";return"years"===e?t="YYYY":"months"===e?t="YYYY-MM":"days"===e?t="YYYY-MM-DD":"hours"===e?t="YYYY-MM-DDTHH":"minutes"===e?t="YYYY-MM-DDTHH:mm":"seconds"===e&&(t="YYYY-MM-DDTHH:mm:ss"),t}function qP(e,n="days"){if(!Be(e))return null;if(!Be(n))return null;let r=function(e,n){let r="";return"years"===n?r="-01-01T00:00:00":"months"===n?r="-01T00:00:00":"days"===n?r="T00:00:00":"hours"===n?r=":00:00":"minutes"===n&&(r=":00"),t(e+r,"YYYY-MM-DDTHH:mm:ss")}(e,n),i=zP(n);return e===r.format(i)?r:null}function jP(){let e=tc(),t=()=>Number(e.process.hrtime.bigint())/1e6,n=()=>e.performance.now(),r=null;return r=Xa()?n:t,r}function WP(e,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!MI(e))return i("invalid t");let o="";try{o=t(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH:mm")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o}function _P(e=null){let t,n=function(){let e=tc();return p.UAParser||e.UAParser}();t=ke(e)?new n(e):new n;let r=t.getResult();return{browsername:r.browser.name,browserversion:r.browser.version,engineinfor:r.engine.name+r.engine.version,platform:r.os.name+r.os.version,devicetype:Ae(r.device,"type",""),cpuarchitecture:Ae(r.cpu,"architecture","")}}let VP="in x-range",YP="out of x-range",GP="order list",JP="reverse order list";function XP(e,t){let n=null,r=null;return n=e[0].x,r=e[or(e)-1].x,t<n?{err:YP,msg:`x[${t}] less than lower limit[${n}]`,data:{ps:e,x:t,xmin:n,xmax:r}}:t>r?{err:YP,msg:`x[${t}] greater than upper limit[${r}]`,data:{ps:e,x:t,xmin:n,xmax:r}}:VP}function KP(e){return!!Ce(e)&&e.length>=1}let ZP=/^[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?\.)+(?:[A-Za-z]{2,63}|[Xx][Nn]--[A-Za-z0-9-]{0,58}[A-Za-z0-9])$/;function eO(e){if(!D(e))return!1;var t=F(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Iu(e)}function tO(e){if(!Ir(e))return!1;return Wi(e)<=0}function nO(e){if(!Me(e))return!1;return xr(e)<=0}function rO(e){if(!Me(e))return!1;return xr(e)>=0}function iO(e){if(!Be(e))return!1;return!(null===e.match(/^.*[A-Z]+.*$/))}function oO(e){if(!Be(e))return!1;return!(null===e.match(/^.*[a-zA-Z]+.*$/))}function aO(e){if(!Be(e))return!1;return!(null===e.match(/^.*[a-z]+.*$/))}function sO(e){if(!Be(e))return!1;return!(null===e.match(/^.*[0-9]+.*$/))}function lO(e){if(!Be(e))return!1;return!(null===e.match(/^.*\s+.*$/))}function cO(e){if(!Be(e))return!1;
|
|
31
31
|
//!"#$%&'()*+,-./ :;<=>?@ [\]^_` {|}~
|
|
32
|
-
return/[!-/:-@[-`{-~]/.test(e)}function lO(e){if(!Be(e))return!1;let n="YYYY-MM-DDTHH:mm:ss.SSS";return e===t(e,n).format(n)}function cO(e){let t;return t=ra(e,1),"Z"===t?`${e=Qa(e,1)}+00:00`:e}let uO={checkTZ:function(e){let t;return t=ra(e,1),"Z"===t||(t=ra(e,6),!!/[+|-]\d\d:\d\d/.test(t))},delTZ:function(e){let t;return t=ra(e,1),Qa(e,"Z"===t?1:6)},normTZ:cO,sepTZ:function(e){let t=cO(e);return{t:Qa(t,6),tz:ra(t,6)}}};function dO(e){if(!Be(e))return!1;if(!uO.checkTZ(e))return!1;let n=uO.delTZ(e),r="YYYY-MM-DDTHH:mm:ss.SSS";return n===t(n,r).format(r)}function fO(e){if(!Be(e))return!1;if(!uO.checkTZ(e))return!1;let n=uO.delTZ(e),r="YYYY-MM-DDTHH:mm:ss";return n===t(n,r).format(r)}let hO=["1234","12345","123456","1234567","12345678","123456789","1234567890","12345678910","111111","000000","666666","888888","7777777","11111111","123123","123321","654321","987654321","qwerty","qwerty123","qwerty1","qwertyuiop","qazwsx","1q2w3e4r","1q2w3e4r5t","1q2w3e","1qaz2wsx","zxcvbnm","password","password1","passw0rd","admin","admin123","welcome","letmein","login","master","monkey","dragon","shadow","sunshine","superman","batman","football","baseball","soccer","hockey","michael","jordan","jennifer","hunter","ranger","harley","thomas","charlie","andrew","daniel","ashley","bailey","mustang","access","secret","ninja","jesus","hello","freedom","trustno1","1qaz@WSX","P@ssw0rd","Pass@123","Aa123456","Aa@123456","Admin@123","abc@123","abc123","abcdef","abcd1234","abc","iloveyou","fuckyou","f*ckyou","whatever","nothing","google","computer","internet","samsung","apple","killer","princess","lovely","tigger","starwars","pokemon","minecraft","123qwe","zaq1zaq1","photoshop","adobe123","18atcskd2w","mynoob"];function pO(e,t){return new Kl(e).eq(t)}function gO(e,t,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:[];if(!Nn(e))return i("invalid keys");if(!Nn(t))return i("invalid mat");if(!Nn(t[0]))return i("invalid mat, the first row is not an effective array");let o=An(t,function(t){let n=Vi(e,t);return vn(n,function(e,t){void 0===e&&(n[t]="")}),n});return r?{state:"success",msg:o}:o}var mO=Fa(function(e){return $n(In(e,1,xI,!0))});var yO=Fa(function(e,t){var n=Aa(t);return xI(n)&&(n=void 0),xI(e)?function(e,t,n,r){var i=-1,o=Ln,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=fe(t,Xe(n))),r?(o=Pn,a=!1):t.length>=200&&(o=At,a=!1,t=new vt(t));e:for(;++i<s;){var u=e[i],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var f=c;f--;)if(t[f]===d)continue e;l.push(u)}else o(t,d,r)||l.push(u)}return l}(e,In(t,1,xI,!0),hn(n)):[]}),vO=yO;function bO(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:"";if(!Be(e))return r("invalid str");let i="";try{let t=Yr.parse(e);i=Tr.stringify(t)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i}function AO(e,t,n=!1,r={}){let i=Ae(r,"returnWithStateAndMsg",null);we(i)||(i=!1);let o=e=>i?{state:"error",msg:e}:"";if(!Be(e))return o("invalid str");if(!Be(t))return o("invalid key");we(n)||(n=!1);let a="";try{let r=_r.encrypt(e,t);if(n)a=r.toString();else{let e=r.toString();a=Tr.parse(e).toString(Jr)}}catch(e){return o(e.toString())}return i?{state:"success",msg:a}:a}var wO={exports:{}};!function(e){var t;e.exports=(t=Fr(),function(){if("function"==typeof ArrayBuffer){var e=t.lib.WordArray,n=e.init,r=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,r=[],i=0;i<t;i++)r[i>>>2]|=e[i]<<24-i%4*8;n.call(this,r,t)}else n.apply(this,arguments)};r.prototype=e}}(),t.lib.WordArray)}(wO);var xO=Sr(wO.exports);function IO(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:"";if(!ss(e))return r("invalid u8a");let i="";try{i=xO.create(e).toString(Tr)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i}function CO(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:"";if(!KL(e))return r("invalid u16a");let i="";try{let t=IO(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),{returnWithStateAndMsg:!0});if("error"===t.state)return r(`u8arr2b64: ${t.msg}`);i=t.msg}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i}let SO="[BlazeForPreventEscape]",EO=/^(?:\[BlazeForPreventEscape\])*\[(?:Uint8Array|Uint16Array)\]::[A-Za-z0-9+/]*={0,2}$/,kO=/^\[BlazeForPreventEscape\](?:\[BlazeForPreventEscape\])*\[(?:Uint8Array|Uint16Array)\]::[A-Za-z0-9+/]*={0,2}$/;let BO="[Uint8Array]::",FO=/^\[Uint8Array\]::([A-Za-z0-9+/]*={0,2})$/;let DO="[Uint16Array]::",MO=/^\[Uint16Array\]::([A-Za-z0-9+/]*={0,2})$/;let NO={tagEsc:SO,escape:function(e){return ke(e)&&91===e.charCodeAt(0)&&EO.test(e)?SO+e:e},unescape:function(e){return ke(e)&&91===e.charCodeAt(0)&&kO.test(e)?e.slice(23):e},tagU8A:BO,u8arr2b64:function(e){return ss(e)?BO+IO(e):e},b642u8arr:function(e){if(ke(e)&&91===e.charCodeAt(0)){let t=FO.exec(e);if(null!==t)return _a(t[1])}return e},tagU16A:DO,u16arr2b64:function(e){return KL(e)?DO+CO(e):e},b642u16arr:function(e){if(ke(e)&&91===e.charCodeAt(0)){let t=MO.exec(e);if(null!==t)return Va(t[1])}return e}};function TO(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:{results:"",binarys:[]};if(!Se(e)&&!Ce(e))return r("invalid data, data is not an object or array");if(Bn(e)||Dn(e))return r("invalid data, data is an empty object or empty array");let i=/^(?:\[BlazeForPreventEscape\])*\[BlazeFor(?:Uint8Array|Uint16Array|ArrayBuffer)\]::\d+$/,o="",a=[];try{let t=-1;o=JSON.stringify(e,function(e,n){if(ss(n)){t+=1;let e=`[BlazeForUint8Array]::${t}`;return a.push(n),e}if(KL(n)){t+=1;let e=`[BlazeForUint16Array]::${t}`;return a.push(n),e}if(xe(n)){t+=1;let e=`[BlazeForArrayBuffer]::${t}`;return a.push(n),e}return KP(n)&&(n=n.toString()),Be(n)&&91===n.charCodeAt(0)&&i.test(n)?"[BlazeForPreventEscape]"+n:n})}catch(e){return r(e.toString())}return n?{state:"success",msg:{results:o,binarys:a}}:{results:o,binarys:a}}let QO=/[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:^|[^\uD800-\uDBFF])[\uDC00-\uDFFF]/;function RO(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new Uint8Array;if(!Be(e))return r("invalid str");if(!("function"==typeof e.isWellFormed?e.isWellFormed():!QO.test(e)))return r("invalid str, contains lone surrogates");let i=null;try{i=(new TextEncoder).encode(e)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i}function LO(e){let t=0;vn(e,e=>{t+=ZL(e)});let n=new Uint8Array(t),r=0;return vn(e,e=>{let t=function(e){return xe(e)?new Uint8Array(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(0)}(e);n.set(t,r),r+=t.length}),n}function PO(e,t){if(!Ee(e))return{};if(!Ui(t))throw new Error("fun is not a function");let n=An(e,(e,n)=>({k:n,v:e,t:t(e,n)})),r=$a(An(n,"t"),{returnIndex:!0});n=An(r,e=>n[e]);let i={};return vn(n,e=>{i[e.k]=e.v}),i}function OO(e,t=()=>{}){if(!Ui(e))return null;function n(e,t){let n;return kn(e)||En(e)?t:(n=Ae(e,"data",null),n||e)}return Ui(t)||(t=()=>{}),function(){let r,i=Ga(),o=t({mode:"before",data:arguments});return(kn(o)||En(o))&&(o=arguments),e(...o).then(e=>{r=t({mode:"afterThen",data:e}),e=n(r,e),i.resolve(e)}).catch(e=>{r=t({mode:"afterCatch",data:e}),e=n(r,e),i.reject(e)}),i}}function UO(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"success",msg:e}:e;if(!ke(e))return n?{state:"error",msg:"invalid str"}:null;if(""===e)return r(0);let i=e.split("").reduce((e,t)=>t.charCodeAt(0)+(e<<6)+(e<<16)-e,0);return r(i)}let $O=0;function HO(e="start1",t=!1){void 0===e?e=(new Date).getTime():"start1"===e&&($O++,e=$O);let n=624,r=397,i=2147483648,o=2147483647,a=new Array(n),s=625,l=e=>{for(ua(e)?a[0]=e>>>0:(e=Na(e),a[0]=UO(e)),s=1;s<n;s++){let e=a[s-1]^a[s-1]>>>30;a[s]=(1812433253*((4294901760&e)>>>16)<<16)+1812433253*(65535&e)+s,a[s]>>>=0}},c=()=>(()=>{let e,t=new Array(2567483615);if(s>=n){let c;for(625===s&&l(5489),c=0;c<227;c++)e=a[c]&i|a[c+1]&o,a[c]=a[c+r]^e>>>1^t[1&e];for(;c<623;c++)e=a[c]&i|a[c+1]&o,a[c]=a[c+(r-n)]^e>>>1^t[1&e];e=a[623]&i|a[0]&o,a[623]=a[396]^e>>>1^t[1&e],s=0}return e=a[s++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0})()*(1/4294967296);l(e);let u=null;return u=t?c:c(),u}let zO=HO((new Date).getTime(),!0);function qO(){return zO()}function jO(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}var WO=Math.floor,_O=Math.random;function VO(e,t){return e+WO(_O()*(t-e+1))}function YO(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n<t;){var o=VO(n,i),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}function GO(e,t){return YO(Cn(e),jO(t,0,e.length))}function JO(e,t){var n=zR(e);return YO(n,jO(t,0,n.length))}var XO=Math.floor;function KO(e,t,n){return t=(n?pn(e,t,n):void 0===t)?1:wr(t),function(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=XO(t/2))&&(e+=e)}while(t);return n}(me(e),t)}var ZO=qi("floor");var eU=Sr(Rr());var tU={exports:{}},nU={exports:{}};!function(e){var t;e.exports=(t=Fr(),function(e){var n=t,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.algo,s=[],l=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)t(r)&&(i<8&&(s[i]=n(e.pow(r,.5))),l[i]=n(e.pow(r,1/3)),i++),r++}();var c=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],d=n[6],f=n[7],h=0;h<64;h++){if(h<16)c[h]=0|e[t+h];else{var p=c[h-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=c[h-2],y=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;c[h]=g+c[h-7]+y+c[h-16]}var v=r&i^r&o^i&o,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),A=f+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&d)+l[h]+c[h];f=d,d=u,u=s,s=a+A|0,a=o,o=i,i=r,r=A+(b+v)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+f|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=o._createHelper(u),n.HmacSHA256=o._createHmacHelper(u)}(Math),t.SHA256)}(nU);var rU=nU.exports,iU=Sr(rU);!function(e){var t;e.exports=(t=Fr(),function(){var e=t,n=e.lib.WordArray,r=e.algo,i=r.SHA256,o=r.SHA224=i.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=4,e}});e.SHA224=i._createHelper(o),e.HmacSHA224=i._createHmacHelper(o)}(),t.SHA224)}(tU);var oU,aU=Sr(tU.exports),sU={exports:{}},lU={exports:{}};function cU(){return oU||(oU=1,function(e){var t,n,r,i,o,a,s;e.exports=(s=Fr(),r=(n=s).lib,i=r.Base,o=r.WordArray,(a=n.x64={}).Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=i.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var i=e[r];n.push(i.high),n.push(i.low)}return o.create(n,this.sigBytes)},clone:function(){for(var e=i.clone.call(this),t=e.words=this.words.slice(0),n=t.length,r=0;r<n;r++)t[r]=t[r].clone();return e}}),s)}(lU)),lU.exports}var uU={exports:{}};!function(e){var t;e.exports=(t=Fr(),cU(),function(){var e=t,n=e.lib.Hasher,r=e.x64,i=r.Word,o=r.WordArray,a=e.algo;function s(){return i.create.apply(i,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var u=a.SHA512=n.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],d=n[6],f=n[7],h=r.high,p=r.low,g=i.high,m=i.low,y=o.high,v=o.low,b=a.high,A=a.low,w=s.high,x=s.low,I=u.high,C=u.low,S=d.high,E=d.low,k=f.high,B=f.low,F=h,D=p,M=g,N=m,T=y,Q=v,R=b,L=A,P=w,O=x,U=I,$=C,H=S,z=E,q=k,j=B,W=0;W<80;W++){var _,V,Y=c[W];if(W<16)V=Y.high=0|e[t+2*W],_=Y.low=0|e[t+2*W+1];else{var G=c[W-15],J=G.high,X=G.low,K=(J>>>1|X<<31)^(J>>>8|X<<24)^J>>>7,Z=(X>>>1|J<<31)^(X>>>8|J<<24)^(X>>>7|J<<25),ee=c[W-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ie=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),oe=c[W-7],ae=oe.high,se=oe.low,le=c[W-16],ce=le.high,ue=le.low;V=(V=(V=K+ae+((_=Z+se)>>>0<Z>>>0?1:0))+re+((_+=ie)>>>0<ie>>>0?1:0))+ce+((_+=ue)>>>0<ue>>>0?1:0),Y.high=V,Y.low=_}var de,fe=P&U^~P&H,he=O&$^~O&z,pe=F&M^F&T^M&T,ge=D&N^D&Q^N&Q,me=(F>>>28|D<<4)^(F<<30|D>>>2)^(F<<25|D>>>7),ye=(D>>>28|F<<4)^(D<<30|F>>>2)^(D<<25|F>>>7),ve=(P>>>14|O<<18)^(P>>>18|O<<14)^(P<<23|O>>>9),be=(O>>>14|P<<18)^(O>>>18|P<<14)^(O<<23|P>>>9),Ae=l[W],we=Ae.high,xe=Ae.low,Ie=q+ve+((de=j+be)>>>0<j>>>0?1:0),Ce=ye+ge;q=H,j=z,H=U,z=$,U=P,$=O,P=R+(Ie=(Ie=(Ie=Ie+fe+((de+=he)>>>0<he>>>0?1:0))+we+((de+=xe)>>>0<xe>>>0?1:0))+V+((de+=_)>>>0<_>>>0?1:0))+((O=L+de|0)>>>0<L>>>0?1:0)|0,R=T,L=Q,T=M,Q=N,M=F,N=D,F=Ie+(me+pe+(Ce>>>0<ye>>>0?1:0))+((D=de+Ce|0)>>>0<de>>>0?1:0)|0}p=r.low=p+D,r.high=h+F+(p>>>0<D>>>0?1:0),m=i.low=m+N,i.high=g+M+(m>>>0<N>>>0?1:0),v=o.low=v+Q,o.high=y+T+(v>>>0<Q>>>0?1:0),A=a.low=A+L,a.high=b+R+(A>>>0<L>>>0?1:0),x=s.low=x+O,s.high=w+P+(x>>>0<O>>>0?1:0),C=u.low=C+$,u.high=I+U+(C>>>0<$>>>0?1:0),E=d.low=E+z,d.high=S+H+(E>>>0<z>>>0?1:0),B=f.low=B+j,f.high=k+q+(B>>>0<j>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=n._createHelper(u),e.HmacSHA512=n._createHmacHelper(u)}(),t.SHA512)}(uU);var dU=uU.exports,fU=Sr(dU);!function(e){var t;e.exports=(t=Fr(),cU(),function(){var e=t,n=e.x64,r=n.Word,i=n.WordArray,o=e.algo,a=o.SHA512,s=o.SHA384=a.extend({_doReset:function(){this._hash=new i.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=16,e}});e.SHA384=a._createHelper(s),e.HmacSHA384=a._createHmacHelper(s)}(),t.SHA384)}(sU);let hU={1:Hr,224:aU,256:iU,384:Sr(sU.exports),512:fU};function pU(e,t,n=!1,r={}){let i=Ae(r,"returnWithStateAndMsg",null);we(i)||(i=!1);let o=e=>i?{state:"error",msg:e}:"";if(!Be(e))return o("invalid str");if(!_i(t)){if(i)return o("n is not a positive integer");throw new Error("n is not a positive integer")}if(t=Wi(t),!Ne(hU,t)){if(i)return o(`invalid n[${t}]`);throw new Error(`invalid n[${t}]`)}we(n)||(n=!1);let a="";try{let r=(0,hU[t])(e);a=n?r.toString(Tr):r.toString(Jr)}catch(e){return o(e.toString())}return i?{state:"success",msg:a}:a}function gU(e,t){return Be(e)&&Be(t)?function(e,t){if(e=e.replace(/\s+/g,""),t=t.replace(/\s+/g,""),!e.length&&!t.length)return 1;if(!e.length||!t.length)return 0;if(e===t)return 1;if(1===e.length&&1===t.length)return 0;if(e.length<2||t.length<2)return 0;let n=new Map;for(let t=0;t<e.length-1;t++){const r=e.substring(t,t+2),i=n.has(r)?n.get(r)+1:1;n.set(r,i)}let r=0;for(let e=0;e<t.length-1;e++){const i=t.substring(e,e+2),o=n.has(i)?n.get(i):0;o>0&&(n.set(i,o-1),r++)}return 2*r/(e.length+t.length-2)}(e,t):0}function mU(e){if(!Be(e))return null;let t=e.match(/(\d+)\.(\d+)\.(\d+)/);return t?[Number(t[1]),Number(t[2]),Number(t[3])]:null}function yU(e){return Array.isArray?Array.isArray(e):"[object Array]"===SU(e)}function vU(e){return null==e?"":function(e){if("string"==typeof e)return e;if("bigint"==typeof e)return e.toString();const t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}function bU(e){return"string"==typeof e}function AU(e){return"number"==typeof e}function wU(e){return!0===e||!1===e||function(e){return xU(e)&&null!==e}(e)&&"[object Boolean]"==SU(e)}function xU(e){return"object"==typeof e}function IU(e){return null!=e}function CU(e){return!e.trim().length}function SU(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const EU="Invalid doc index: must be a non-negative integer within the bounds of the docs array",kU=Object.prototype.hasOwnProperty;var BU=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{const n=FU(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function FU(e){let t=null,n=null,r=null,i=1,o=null;if(bU(e)||yU(e))r=e,t=DU(e),n=MU(e);else{if(!kU.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const a=e.name;if(r=a,kU.call(e,"weight")&&void 0!==e.weight&&(i=e.weight,i<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(MU(a)));t=DU(a),n=MU(a),o=e.getFn??null}return{path:t,id:n,weight:i,src:r,getFn:o}}function DU(e){return yU(e)?e:e.split(".")}function MU(e){return yU(e)?e.join("."):e}const NU={useExtendedSearch:!1,useTokenSearch:!1,tokenize:void 0,tokenMatch:"any",getFn:function(e,t){const n=[];let r=!1;const i=(e,t,o,a)=>{if(IU(e))if(t[o]){const s=e[t[o]];if(!IU(s))return;if(o===t.length-1&&(bU(s)||AU(s)||wU(s)||"bigint"==typeof s))n.push(void 0!==a?{v:vU(s),i:a}:vU(s));else if(yU(s)){r=!0;for(let e=0,n=s.length;e<n;e+=1)i(s[e],t,o+1,e)}else t.length&&i(s,t,o+1,a)}else n.push(void 0!==a?{v:e,i:a}:e)};return i(e,bU(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},TU=Object.freeze({isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,...NU});function QU(e){return e>=9&&e<=13||32===e||160===e}var RU=class{constructor({getFn:e=TU.getFn,fieldNormWeight:t=TU.fieldNormWeight}={}){this.norm=function(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(t){let i=0,o=!1;for(let e=0;e<t.length;e++)QU(t.charCodeAt(e))?o=!1:o||(i++,o=!0);if(0===i&&(i=1),n.has(i))return n.get(i);const a=Math.round(r/Math.pow(i,.5*e))/r;return n.set(i,a),a},clear(){n.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){if(this.isCreated||!this.docs.length)return;this.isCreated=!0;const e=this.docs.length;this.records=new Array(e);let t=0;if(bU(this.docs[0]))for(let n=0;n<e;n++){const e=this._createStringRecord(this.docs[n],n);e&&(this.records[t++]=e)}else for(let n=0;n<e;n++)this.records[t++]=this._createObjectRecord(this.docs[n],n);this.records.length=t,this.norm.clear()}add(e,t){if(!Number.isInteger(t)||t<0)throw new Error(EU);if(bU(e)){const n=this._createStringRecord(e,t);return n&&this.records.push(n),n}const n=this._createObjectRecord(e,t);return this.records.push(n),n}removeAt(e){if(!Number.isInteger(e)||e<0)throw new Error(EU);for(let t=0,n=this.records.length;t<n;t+=1)if(this.records[t].i===e){this.records.splice(t,1);break}for(let t=0,n=this.records.length;t<n;t+=1)this.records[t].i>e&&(this.records[t].i-=1)}removeAll(e){const t=new Set;for(const n of e)Number.isInteger(n)&&n>=0&&t.add(n);if(0===t.size)return;this.records=this.records.filter(e=>!t.has(e.i));const n=Array.from(t).sort((e,t)=>e-t);for(const e of this.records){let t=0,r=n.length;for(;t<r;){const i=t+r>>>1;n[i]<e.i?t=i+1:r=i}e.i-=t}}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_createStringRecord(e,t){return!IU(e)||CU(e)?null:{v:e,i:t,n:this.norm.get(e)}}_createObjectRecord(e,t){const n={i:t,$:{}};for(let t=0,r=this.keys.length;t<r;t++){const r=this.keys[t],i=r.getFn?r.getFn(e):this.getFn(e,r.path);if(IU(i))if(yU(i)){const e=[];for(let t=0,n=i.length;t<n;t+=1){const n=i[t];if(IU(n))if(bU(n)){if(!CU(n)){const r={v:n,i:t,n:this.norm.get(n)};e.push(r)}}else if(IU(n.v)){const t=bU(n.v)?n.v:vU(n.v);if(!CU(t)){const r={v:t,i:n.i,n:this.norm.get(t)};e.push(r)}}}n.$[t]=e}else if(bU(i)&&!CU(i)){const e={v:i,n:this.norm.get(i)};n.$[t]=e}}return n}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}};function LU(e,t,{getFn:n=TU.getFn,fieldNormWeight:r=TU.fieldNormWeight}={}){const i=new RU({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(FU)),i.setSources(t),i.create(),i}function PU(e,t,n,{location:r=TU.location,distance:i=TU.distance,threshold:o=TU.threshold,findAllMatches:a=TU.findAllMatches,minMatchCharLength:s=TU.minMatchCharLength,includeMatches:l=TU.includeMatches,ignoreLocation:c=TU.ignoreLocation}={}){if(t.length>32)throw new Error((e=>`Pattern length exceeds max of ${e}.`)(32));const u=t.length,d=e.length,f=Math.max(0,Math.min(r,d));let h=o,p=f;const g=(e,t)=>{const n=e/u;if(c)return n;const r=Math.abs(f-t);return i?n+r/i:r?1:n},m=s>1||l,y=m?Array(d):[];let v;for(;(v=e.indexOf(t,p))>-1;){const e=g(0,v);if(h=Math.min(e,h),p=v+u,m){let e=0;for(;e<u;)y[v+e]=1,e+=1}}p=-1;let b=[],A=1,w=0,x=u+d;const I=1<<u-1;for(let t=0;t<u;t+=1){let r=0,i=x;for(;r<i;)g(t,f+i)<=h?r=i:x=i,i=Math.floor((x-r)/2+r);x=i;let o=Math.max(1,f-i+1);const s=a?d:Math.min(f+i,d)+u,l=Array(s+2);l[s+1]=(1<<t)-1;for(let r=s;r>=o;r-=1){const i=r-1,a=n[e[i]];if(l[r]=(l[r+1]<<1|1)&a,t&&(l[r]|=(b[r+1]|b[r])<<1|1|b[r+1]),l[r]&I&&(A=g(t,i),A<=h)){if(h=A,p=i,w=t,p<=f)break;o=Math.max(1,2*f-p)}}if(g(t+1,f)>h)break;b=l}if(m&&p>=0){const t=Math.min(d-1,p+u-1+w);for(let r=p;r<=t;r+=1)n[e[r]]&&(y[r]=1)}const C={isMatch:p>=0,score:Math.max(.001,A)};if(m){const e=function(e=[],t=TU.minMatchCharLength){const n=[];let r=-1,i=-1,o=0;for(let a=e.length;o<a;o+=1){const a=e[o];a&&-1===r?r=o:a||-1===r||(i=o-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}(y,s);e.length?l&&(C.indices=e):C.isMatch=!1}return C}function OU(e){const t={};for(let n=0,r=e.length;n<r;n+=1){const i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}function UU(e){if(e.length<=1)return e;e.sort((e,t)=>e[0]-t[0]||e[1]-t[1]);const t=[e[0]];for(let n=1,r=e.length;n<r;n+=1){const r=t[t.length-1],i=e[n];i[0]<=r[1]+1?r[1]=Math.max(r[1],i[1]):t.push(i)}return t}const $U={"ł":"l","Ł":"L","đ":"d","Đ":"D","ø":"o","Ø":"O","ħ":"h","Ħ":"H","ŧ":"t","Ŧ":"T","ı":"i","ß":"ss"},HU=new RegExp("["+Object.keys($U).join("")+"]","g"),zU="function"==typeof String.prototype.normalize?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"").replace(HU,e=>$U[e]):e=>e;var qU=class{constructor(e,{location:t=TU.location,threshold:n=TU.threshold,distance:r=TU.distance,includeMatches:i=TU.includeMatches,findAllMatches:o=TU.findAllMatches,minMatchCharLength:a=TU.minMatchCharLength,isCaseSensitive:s=TU.isCaseSensitive,ignoreDiacritics:l=TU.ignoreDiacritics,ignoreLocation:c=TU.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:o,minMatchCharLength:a,isCaseSensitive:s,ignoreDiacritics:l,ignoreLocation:c},e=s?e:e.toLowerCase(),e=l?zU(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const u=(e,t)=>{this.chunks.push({pattern:e,alphabet:OU(e),startIndex:t})},d=this.pattern.length;if(d>32){let e=0;const t=d%32,n=d-t;for(;e<n;)u(this.pattern.substr(e,32),e),e+=32;if(t){const e=d-32;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r}=this.options;if(e=t?e:e.toLowerCase(),e=n?zU(e):e,this.pattern===e){if(e.length<this.options.minMatchCharLength)return{isMatch:!1,score:1};const t={isMatch:!0,score:0};return r&&(t.indices=[[0,e.length-1]]),t}const{location:i,distance:o,threshold:a,findAllMatches:s,minMatchCharLength:l,ignoreLocation:c}=this.options,u=[];let d=0,f=!1;this.chunks.forEach(({pattern:t,alphabet:n,startIndex:h})=>{const{isMatch:p,score:g,indices:m}=PU(e,t,n,{location:i+h,distance:o,threshold:a,findAllMatches:s,minMatchCharLength:l,includeMatches:r,ignoreLocation:c});p&&(f=!0),d+=g,p&&m&&u.push(...m)});const h={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(h.indices=UU(u)),h}};const jU=new Set(["fuzzy","include"]);function WU(e){return e.startsWith("inverse")}const _U=[{type:"exact",multiRegex:/^="(.*)"$/,singleRegex:/^=(.*)$/,create:e=>({type:"exact",search(t){const n=t===e;return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}})},{type:"include",multiRegex:/^'"(.*)"$/,singleRegex:/^'(.*)$/,create:e=>({type:"include",search(t){let n,r=0;const i=[],o=e.length;for(;(n=t.indexOf(e,r))>-1;)r=n+o,i.push([n,r-1]);const a=!!i.length;return{isMatch:a,score:a?0:1,indices:i}}})},{type:"prefix-exact",multiRegex:/^\^"(.*)"$/,singleRegex:/^\^(.*)$/,create:e=>({type:"prefix-exact",search(t){const n=t.startsWith(e);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}})},{type:"inverse-prefix-exact",multiRegex:/^!\^"(.*)"$/,singleRegex:/^!\^(.*)$/,create:e=>({type:"inverse-prefix-exact",search(t){const n=!t.startsWith(e);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}})},{type:"inverse-suffix-exact",multiRegex:/^!"(.*)"\$$/,singleRegex:/^!(.*)\$$/,create:e=>({type:"inverse-suffix-exact",search(t){const n=!t.endsWith(e);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}})},{type:"suffix-exact",multiRegex:/^"(.*)"\$$/,singleRegex:/^(.*)\$$/,create:e=>({type:"suffix-exact",search(t){const n=t.endsWith(e);return{isMatch:n,score:n?0:1,indices:[t.length-e.length,t.length-1]}}})},{type:"inverse-exact",multiRegex:/^!"(.*)"$/,singleRegex:/^!(.*)$/,create:e=>({type:"inverse-exact",search(t){const n=-1===t.indexOf(e);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}})},{type:"fuzzy",multiRegex:/^"(.*)"$/,singleRegex:/^(.*)$/,create:(e,t={})=>{const n=new qU(e,{location:t.location??TU.location,threshold:t.threshold??TU.threshold,distance:t.distance??TU.distance,includeMatches:t.includeMatches??TU.includeMatches,findAllMatches:t.findAllMatches??TU.findAllMatches,minMatchCharLength:t.minMatchCharLength??TU.minMatchCharLength,isCaseSensitive:t.isCaseSensitive??TU.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics??TU.ignoreDiacritics,ignoreLocation:t.ignoreLocation??TU.ignoreLocation});return{type:"fuzzy",search:e=>n.searchIn(e)}}}],VU=_U.length;function YU(e,t){const n=e.match(t);return n?n[1]:null}const GU=[];function JU(...e){GU.push(...e)}function XU(e,t){for(let n=0,r=GU.length;n<r;n+=1){const r=GU[n];if(r.condition(e,t))return new r(e,t)}return new qU(e,t)}const KU="$and",ZU="$or",e$="$path",t$="$val",n$=e=>!(!e[KU]&&!e[ZU]),r$=e=>({[KU]:Object.keys(e).map(t=>({[t]:e[t]}))});function i$(e,t,{auto:n=!0}={}){const r=e=>{if(bU(e)){const r={keyId:null,pattern:e};return n&&(r.searcher=XU(e,t)),r}const i=Object.keys(e),o=(e=>!!e[e$])(e);if(!o&&i.length>1&&!n$(e))return r(r$(e));if((e=>!yU(e)&&xU(e)&&!n$(e))(e)){const r=o?e[e$]:i[0],a=o?e[t$]:e[r];if(!bU(a))throw new Error((e=>`Invalid value for key ${e}`)(r));const s={keyId:MU(r),pattern:a};return n&&(s.searcher=XU(a,t)),s}const a={children:[],operator:i[0]};return i.forEach(t=>{const n=e[t];yU(n)&&n.forEach(e=>{a.children.push(r(e))})}),a};return n$(e)||(e=r$(e)),r(e)}function o$(e,{ignoreFieldNorm:t=TU.ignoreFieldNorm}){let n=1;return e.forEach(({key:e,norm:r,score:i})=>{const o=e?e.weight:null;n*=Math.pow(0===i&&o?Number.EPSILON:i,(o||1)*(t?1:r))}),n}var a$=class{constructor(e,t){this.limit=e,this.heap=[],this.comparator=t}get size(){return this.heap.length}insert(e){this.size<this.limit?(this.heap.push(e),this._bubbleUp(this.size-1)):this.comparator(e,this.heap[0])<0&&(this.heap[0]=e,this._sinkDown(0))}extractSorted(){return this.heap.sort(this.comparator)}_bubbleUp(e){const t=this.heap;for(;e>0;){const n=e-1>>1;if(this.comparator(t[e],t[n])<=0)break;const r=t[e];t[e]=t[n],t[n]=r,e=n}}_sinkDown(e){const t=this.heap,n=t.length;let r=e;do{const i=2*(e=r)+1,o=2*e+2;if(i<n&&this.comparator(t[i],t[r])>0&&(r=i),o<n&&this.comparator(t[o],t[r])>0&&(r=o),r!==e){const n=t[e];t[e]=t[r],t[r]=n}}while(r!==e)}};function s$(e,t,{includeMatches:n=TU.includeMatches,includeScore:r=TU.includeScore}={}){return e.map(e=>{const{idx:i}=e,o={item:t[i],refIndex:i};return n&&(o.matches=function(e){const t=[];return e.matches.forEach(e=>{if(!IU(e.indices)||!e.indices.length)return;const n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.id),e.idx>-1&&(n.refIndex=e.idx),t.push(n)}),t}(e)),r&&(o.score=e.score),o})}const l$=/[\p{L}\p{M}\p{N}_]+/gu,c$=new WeakSet;function u$(e){if("function"==typeof e){let t=!1;return n=>{const r=e(n);if(!t&&(t=!0,!Array.isArray(r)||r.some(e=>"string"!=typeof e)))throw new Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(r)?"array containing non-strings":typeof r}.`);return r}}return e instanceof RegExp?(e.global||function(e){c$.has(e)||(c$.add(e),console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`))}(e),t=>t.match(e)||[]):e=>e.match(l$)||[]}function d$({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:n}={}){const r=u$(n);return{tokenize:n=>(e||(n=n.toLowerCase()),t&&(n=zU(n)),r(n))}}function f$(e,t,n,r){const i=r.tokenize(t);if(!i.length)return;e.fieldCount++,e.docFieldCount.set(n,(e.docFieldCount.get(n)||0)+1);const o=new Set(i);let a=e.docTermFieldHits.get(n);a||(a=new Map,e.docTermFieldHits.set(n,a));for(const t of o)a.set(t,(a.get(t)||0)+1),e.df.set(t,(e.df.get(t)||0)+1)}function h$(e,t,n,r){const{i:i,v:o,$:a}=t;if(void 0===o){if(a)for(let t=0;t<n;t++){const n=a[t];if(n)if(Array.isArray(n))for(const t of n)f$(e,t.v,i,r);else f$(e,n.v,i,r)}}else f$(e,o,i,r)}function p$(e,t){const n=e.docFieldCount.get(t);if(void 0===n)return;e.fieldCount-=n,e.docFieldCount.delete(t);const r=e.docTermFieldHits.get(t);if(r){for(const[t,n]of r){const r=(e.df.get(t)||0)-n;r<=0?e.df.delete(t):e.df.set(t,r)}e.docTermFieldHits.delete(t)}}function g$(e,t){if(0===t.length)return;const n=Array.from(new Set(t)).sort((e,t)=>e-t);for(const t of n)p$(e,t);const r=e=>{let t=0,r=n.length;for(;t<r;){const i=t+r>>>1;n[i]<e?t=i+1:r=i}return e-t},i=n[0],o=new Map;for(const[t,n]of e.docFieldCount)o.set(t>i?r(t):t,n);e.docFieldCount=o;const a=new Map;for(const[t,n]of e.docTermFieldHits)a.set(t>i?r(t):t,n);e.docTermFieldHits=a}var m$=class{constructor(e,t,n){this.options={...TU,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new BU(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,n),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;const t=XU(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof RU))throw new Error("Incorrect 'index' type");if(this._myIndex=t||LU(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){const e=d$({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=function(e,t,n){const r={fieldCount:0,df:new Map,docFieldCount:new Map,docTermFieldHits:new Map};for(const i of e)h$(r,i,t,n);return r}(this._myIndex.records,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}add(e){if(!IU(e))return;this._docs.push(e);const t=this._myIndex.add(e,this._docs.length-1);if(this._invertedIndex&&t){const e=d$({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});!function(e,t,n,r){h$(e,t,n,r)}(this._invertedIndex,t,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}remove(e=()=>!1){const t=[],n=[];for(let r=0,i=this._docs.length;r<i;r+=1)e(this._docs[r],r)&&(t.push(this._docs[r]),n.push(r));if(n.length){this._invertedIndex&&g$(this._invertedIndex,n);const e=new Set(n);this._docs=this._docs.filter((t,n)=>!e.has(n)),this._myIndex.removeAll(n),this._invalidateSearcherCache()}return t}removeAt(e){if(!Number.isInteger(e)||e<0||e>=this._docs.length)throw new Error(EU);this._invertedIndex&&g$(this._invertedIndex,[e]);const t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),this._invalidateSearcherCache(),t}_invalidateSearcherCache(){this._lastQuery=null,this._lastSearcher=null}getIndex(){return this._myIndex}_normalizedKeys(){return this._myIndex.keys.map(e=>this._keyStore.get(e.id)||e)}search(e,t){const{limit:n=-1}=t||{},{includeMatches:r,includeScore:i,shouldSort:o,sortFn:a,ignoreFieldNorm:s}=this.options;if(bU(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return AU(n)&&n>-1&&(e=e.slice(0,n)),e}const l=o&&AU(n)&&n>0&&bU(e),c=a,u=(e,t)=>c(e,t)||e.idx-t.idx;let d;if(l){const t=new a$(n,u);bU(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:s}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:s}),d=t.extractSorted()}else d=bU(e)?bU(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),function(e,{ignoreFieldNorm:t=TU.ignoreFieldNorm}){e.forEach(e=>{e.score=o$(e.matches,{ignoreFieldNorm:t})})}(d,{ignoreFieldNorm:s}),o&&d.sort(bU(e)?u:c),AU(n)&&n>-1&&(d=d.slice(0,n));return s$(d,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e,{heap:t,ignoreFieldNorm:n}={}){const r=this._getSearcher(e),i=this.options.useTokenSearch&&"all"===this.options.tokenMatch,{records:o}=this._myIndex,a=t?null:[];return o.forEach(({v:e,i:o,n:s})=>{if(!IU(e))return;const l=r.searchIn(e);if(l.isMatch){const r={score:l.score,value:e,norm:s,indices:l.indices};i&&(r.matchedMask=l.matchedMask,r.matchedTerms=l.matchedTerms,r.termCount=l.termCount);const c=[r];if(!i||this._coversAllTokens(c)){const r={item:e,idx:o,matches:c};t?(r.score=o$(r.matches,{ignoreFieldNorm:n}),t.insert(r)):a.push(r)}}}),a}_searchLogical(e){const t=i$(e,this.options),n=this._normalizedKeys(),r=(e,t,i)=>{if(!("children"in e)){const{keyId:r,searcher:o}=e;let a;return null===r?(a=[],n.forEach((e,n)=>{a.push(...this._findMatches({key:e,value:t[n],searcher:o}))})):a=this._findMatches({key:this._keyStore.get(r),value:this._myIndex.getValueForItemAtKeyId(t,r),searcher:o}),a&&a.length?[{idx:i,item:t,matches:a}]:[]}const{children:o,operator:a}=e,s=[];for(let e=0,n=o.length;e<n;e+=1){const n=o[e],l=r(n,t,i);if(l.length)s.push(...l);else if(a===KU)return[]}return s},i=this._myIndex.records,o=new Map,a=[];return i.forEach(({$:e,i:n})=>{if(IU(e)){const i=r(t,e,n);i.length&&(o.has(n)||(o.set(n,{idx:n,item:e,matches:[]}),a.push(o.get(n))),i.forEach(({matches:e})=>{o.get(n).matches.push(...e)}))}}),a}_searchObjectList(e,{heap:t,ignoreFieldNorm:n}={}){const r=this._getSearcher(e),i=this.options.useTokenSearch&&"all"===this.options.tokenMatch,{records:o}=this._myIndex,a=this._normalizedKeys(),s=t?null:[];return o.forEach(({$:e,i:o})=>{if(!IU(e))return;const l=[];let c=!1,u=!1;if(a.forEach((t,n)=>{const i=this._findMatches({key:t,value:e[n],searcher:r});i.length?(l.push(...i),i[0].hasInverse&&(u=!0)):c=!0}),(!u||!c)&&l.length&&(!i||this._coversAllTokens(l))){const r={idx:o,item:e,matches:l};t?(r.score=o$(r.matches,{ignoreFieldNorm:n}),t.insert(r)):s.push(r)}}),s}_findMatches({key:e,value:t,searcher:n}){if(!IU(t))return[];const r=[];if(yU(t))t.forEach(({v:t,i:i,n:o})=>{if(!IU(t))return;const a=n.searchIn(t);if(a.isMatch){const n={score:a.score,key:e,value:t,idx:i,norm:o,indices:a.indices,hasInverse:a.hasInverse};void 0!==a.termCount&&(n.matchedMask=a.matchedMask,n.matchedTerms=a.matchedTerms,n.termCount=a.termCount),r.push(n)}});else{const{v:i,n:o}=t,a=n.searchIn(i);if(a.isMatch){const t={score:a.score,key:e,value:i,norm:o,indices:a.indices,hasInverse:a.hasInverse};void 0!==a.termCount&&(t.matchedMask=a.matchedMask,t.matchedTerms=a.matchedTerms,t.termCount=a.termCount),r.push(t)}}return r}_coversAllTokens(e){const t=e.length?e[0].termCount:void 0;if(void 0===t)return!0;if(t<=31){let n=0;for(let t=0;t<e.length;t++)n|=e[t].matchedMask||0;return n===2**t-1}const n=new Set;for(let t=0;t<e.length;t++){const r=e[t].matchedTerms;if(r)for(const e of r)n.add(e)}return n.size===t}};m$.version="7.5.0",m$.createIndex=LU,m$.parseIndex=function(e,{getFn:t=TU.getFn,fieldNormWeight:n=TU.fieldNormWeight}={}){const{keys:r,records:i}=e,o=new RU({getFn:t,fieldNormWeight:n});return o.setKeys(r),o.setIndexRecords(i),o},m$.config=TU,m$.match=function(e,t,n){if(n&&n.useTokenSearch)throw new Error("Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.");return XU(e,{...TU,...n}).searchIn(t)},m$.parseQuery=i$,JU(class{constructor(e,{isCaseSensitive:t=TU.isCaseSensitive,ignoreDiacritics:n=TU.ignoreDiacritics,includeMatches:r=TU.includeMatches,minMatchCharLength:i=TU.minMatchCharLength,ignoreLocation:o=TU.ignoreLocation,findAllMatches:a=TU.findAllMatches,location:s=TU.location,threshold:l=TU.threshold,distance:c=TU.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r,minMatchCharLength:i,findAllMatches:a,ignoreLocation:o,location:s,threshold:l,distance:c},e=t?e:e.toLowerCase(),e=n?zU(e):e,this.pattern=e,this.query=function(e,t={}){return e.replace(/\\\|/g,"\0").split("|").map(e=>{const n=function(e){const t=[],n=e.length;let r=0;for(;r<n;){for(;r<n&&" "===e[r];)r++;if(r>=n)break;let i=r;for(;i<n&&" "!==e[i]&&'"'!==e[i];)i++;if(i<n&&'"'===e[i]){for(i++;i<n;){if('"'===e[i]){const t=i+1;if(t>=n||" "===e[t]){i++;break}if("$"===e[t]&&(t+1>=n||" "===e[t+1])){i+=2;break}}i++}t.push(e.substring(r,i)),r=i}else{for(;i<n&&" "!==e[i];)i++;t.push(e.substring(r,i)),r=i}}return t}(e.replace(/\u0000/g,"|").trim()).filter(e=>e&&!!e.trim()),r=[];for(let e=0,i=n.length;e<i;e+=1){const i=n[e];let o=!1,a=-1;for(;!o&&++a<VU;){const e=_U[a],n=YU(i,e.multiRegex);n&&(r.push(e.create(n,t)),o=!0)}if(!o)for(a=-1;++a<VU;){const e=_U[a],n=YU(i,e.singleRegex);if(n){r.push(e.create(n,t));break}}}return r})}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){const t=this.query;if(!t)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:r,ignoreDiacritics:i}=this.options;e=r?e:e.toLowerCase(),e=i?zU(e):e;let o=0;const a=[];let s=0,l=!1;for(let r=0,i=t.length;r<i;r+=1){const i=t[r];a.length=0,o=0,l=!1;for(let t=0,r=i.length;t<r;t+=1){const r=i[t],{isMatch:c,indices:u,score:d}=r.search(e);if(!c){s=0,o=0,a.length=0,l=!1;break}o+=1,s+=d,WU(r.type)&&(l=!0),n&&(jU.has(r.type)?a.push(...u):a.push(u))}if(o){const e={isMatch:!0,score:s/o};return l&&(e.hasInverse=!0),n&&(e.indices=UU(a)),e}}return{isMatch:!1,score:1}}}),JU(class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=d$({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,tokenize:t.tokenize});const n=this.analyzer.tokenize(e),{df:r,fieldCount:i}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(const e of n){this.termSearchers.push(new qU(e,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));const n=r.get(e)||0,o=Math.log(1+(i-n+.5)/(n+.5));this.idfWeights.push(o)}this.combineAll="all"===t.tokenMatch,this.numTerms=this.termSearchers.length,this.useMask=this.numTerms<=31}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};const t=[];let n=0,r=0,i=0,o=0;const a=this.combineAll&&!this.useMask?new Set:null;for(let s=0;s<this.termSearchers.length;s++){const l=this.termSearchers[s].searchIn(e),c=this.idfWeights[s];r+=c,l.isMatch&&(i++,n+=c*(1-l.score),l.indices&&t.push(...l.indices),this.combineAll&&(this.useMask?o|=1<<s:a.add(s)))}if(0===i)return{isMatch:!1,score:1};const s=r>0?1-n/r:0,l={isMatch:!0,score:Math.max(.001,s)};return this.options.includeMatches&&t.length&&(l.indices=UU(t)),this.combineAll&&(this.useMask?l.matchedMask=o:l.matchedTerms=a,l.termCount=this.numTerms),l}}),m$.use=function(...e){e.forEach(e=>JU(e))};var y$=m$;function v$(e){return function(e,t){var n=null==e?0:e.length;return n?ga(e,t)/n:NaN}(e,un)}function b$(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:{};if(!Ee(e))return r("invalid data");let i=null,o=null;try{i=e.results,o=e.binarys}catch(e){return r(e.toString())}if(!Be(i))return r("invalid results");if(!Ce(o))return r("invalid binarys");let a=/^\[BlazeFor(Uint8Array|Uint16Array|ArrayBuffer)\]::(\d+)$/,s=/^\[BlazeForPreventEscape\](?:\[BlazeForPreventEscape\])*\[BlazeFor(?:Uint8Array|Uint16Array|ArrayBuffer)\]::\d+$/,l={};try{l=JSON.parse(i,function(e,t){if(!Be(t)||91!==t.charCodeAt(0))return t;let n=a.exec(t);if(null===n)return s.test(t)?t.slice(23):t;let r=Number(n[2]);if(r>=o.length)throw new Error(`binary index out of range[${r}], binarys.length[${o.length}]`);return((e,t,n)=>{if("Uint16Array"===e&&!KL(n)){if(!ss(n))throw new Error(`binarys[${t}] can not be restored to Uint16Array`);if(n.byteLength%2!=0)throw new Error(`binarys[${t}] byteLength[${n.byteLength}] is not even, can not be restored to Uint16Array`);let e=0===n.byteOffset&&n.byteLength===n.buffer.byteLength?n:new Uint8Array(n);return new Uint16Array(e.buffer)}if("ArrayBuffer"===e&&!xe(n)){if(!ss(n))throw new Error(`binarys[${t}] can not be restored to ArrayBuffer`);return n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength)}return n})(n[1],r,o[r])})}catch(e){return r(e.toString())}return n?{state:"success",msg:l}:l}function A$(e,n=null,r={}){let i=Ae(r,"returnWithStateAndMsg",null);we(i)||(i=!1);let o=(e,t)=>i?{state:"error",msg:e}:{today:null,msg:"",err:t};if(!Ui(t))throw new Error("invalid dayjs");if(!dO(e))return o("invalid t","時間格式錯誤");let a=null;try{a=function(e,n){let r=t();dO(n)&&(r=t(n,"YYYY-MM-DDTHH:mm:ss.SSSZ"));let i=t(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(r>i)return{today:null,msg:"",err:"時間已過"};let o,a=r.format("YYYY-MM-DD"),s=i.format("YYYY-MM-DD"),l=t(a,"YYYY-MM-DD"),c=t(s,"YYYY-MM-DD"),u=i.diff(r,"seconds"),d=i.diff(r,"minutes"),f=i.diff(r,"hours"),h=c.diff(l,"days"),p=c.diff(l,"weeks"),g=c.diff(l,"months"),m=c.diff(l,"years"),y="即將到來";if(u>=0&&(o=!0,y=u+"秒後"),d>0&&(o=!0,y=d+"分鐘後"),f>0){let e=i.format("HH:mm");a===s?(o=!0,y=f+"小時後,今天"+e):(o=!1,y=f+"小時後,明天"+e)}return h>1&&(o=!1,y=2===h?"後天":h+"天後"),p>0&&(o=!1,y=p+"周後"),g>0&&(o=!1,y=g+"個月後"),m>0&&(o=!1,y=m+"年後"),{today:o,msg:y,err:""}}(e,n)}catch(e){return o(e.toString(),"時間轉換失敗")}return s=a,i?{state:"success",msg:s}:s;var s}function w$(e,n=null,r={}){let i=Ae(r,"returnWithStateAndMsg",null);we(i)||(i=!1);let o=(e,t)=>i?{state:"error",msg:e}:{today:null,msg:"",err:t};if(!Ui(t))throw new Error("invalid dayjs");if(!dO(e))return o("invalid t","時間格式錯誤");let a=null;try{a=function(e,n){let r=t();dO(n)&&(r=t(n,"YYYY-MM-DDTHH:mm:ss.SSSZ"));let i=t(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(r<i)return{today:null,msg:"",err:"時間未到"};let o=r.format("YYYY-MM-DD"),a=i.format("YYYY-MM-DD"),s=t(o,"YYYY-MM-DD"),l=t(a,"YYYY-MM-DD"),c=r.diff(i,"seconds"),u=r.diff(i,"minutes"),d=r.diff(i,"hours"),f=s.diff(l,"days"),h=s.diff(l,"weeks"),p=s.diff(l,"months"),g=s.diff(l,"years"),m=!1,y="剛剛";if(c>=0&&(m=!0,y=c+"秒前"),u>0&&(m=!0,y=u+"分鐘前"),d>0){let e=i.format("HH:mm");o===a?(m=!0,y=d+"小時前"):(m=!1,y="昨天"+e)}return f>1&&(m=!1,y=f+"天前"),h>0&&(m=!1,y=h+"周前"),p>0&&(m=!1,y=p+"個月前"),g>0&&(m=!1,y=g+"年前"),{today:m,msg:y,err:""}}(e,n)}catch(e){return o(e.toString(),"時間轉換失敗")}return s=a,i?{state:"success",msg:s}:s;var s}function x$(e){let t=uO.sepTZ(e);return e=`${t.t}.000${t.tz}`}function I$(e){let t=uO.sepTZ(e);return e=`${t.t}.000${t.tz}`}function C$(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:"";if(!ss(e))return r("invalid u8a");let i="";try{i=new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0}).decode(e)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i}e.ab2blob=function(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new Blob;if(!xe(e))return r("invalid ab");let i=null;try{let t=Ie(e,{returnWithStateAndMsg:!0});if("error"===t.state)return r(`ab2u8arr: ${t.msg}`);i=new Blob([t.msg])}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.ab2u8arr=Ie,e.addExcelWorksheetFromData=function(e,t,n="data"){if(!Ee(e))return{error:"wb is not an effective object"};if(!Ce(Ae(e,"sheets")))return{error:"wb.sheets is not an array"};Be(n)||(n="data");let r=cr(t);return Ne(r,"error")?r:(e.sheets.push({...r,name:n}),e)},e.addMonth=function(e,n){return ur(e)&&Ir(n)?t(e,"YYYY-MM").add(n,"months").format("YYYY-MM"):""},e.aes2str=Xr,e.alive=function(e={}){let t=Oi(),n=Object.create(null),r=null,i=new Set,o=new Set,a=!1,s=Ae(e,"timeAlive");_i(s)||(s=1e4),s=Wi(s),s=Math.min(s,Ri);let l=Ae(e,"timeDetect");return _i(l)||(l=50),l=Wi(l),l=Math.min(l,Ri),t.trigger=function(e,c){if(!a)if(Be(e)){if(!Ne(n,e)){let r=setTimeout(()=>{i.delete(r),Ne(n,e)&&o.add(e),$i(t,"message",[{eventName:"enter",key:e,data:c,now:or(n)}],{tag:"alive"})},1);i.add(r)}n[e]={data:c,time:Date.now()},a||null===r&&(r=setInterval(()=>{vn(n,(e,r)=>{if(Date.now()-e.time>s){let e=Qi(n[r]);if(delete n[r],o.delete(r),$i(t,"message",[{eventName:"leave",key:r,data:e.data,now:or(n)}],{tag:"alive"}),a)return!1}}),a||Ee(n)||(clearInterval(r),r=null)},l))}else console.log("trigger need key")},t.get=function(){let e=[];return vn(n,(t,n)=>{e.push({key:n,data:t.data})}),e=Qi(e),e},t.clear=function(){if(a)return[];a=!0,null!==r&&(clearInterval(r),r=null);for(let e of i)clearTimeout(e);i.clear();let e=[];return vn(n,(t,n)=>{o.has(n)&&e.push({key:n,data:t.data})}),e=Qi(e),n=Object.create(null),o.clear(),e},t},e.arr2dt=function(e,t=""){if(!Nn(e))return{};if(Nn(t))return or(e)===or(t)?Vi(e,t):{};let n=[];for(let r=0;r<or(e);r++)n.push(Qi(t));return Vi(e,n)},e.arrAccum=function(e){if(!Nn(e))return[];let t=[],n=0;return vn(e,function(e){n+=xr(e),Me(e)?t.push(n):t.push("")}),t},e.arrAdd=function(){if(or(arguments)<2)return[];let e=arguments[0];for(let t=1;t<or(arguments);t++){e=Yi(e,arguments[t])}return e},e.arrAt=mo,e.arrDiff=Ko,e.arrFilterByKeywords=function(e,t){if(!Nn(e))return[];if(!Be(t)&&!Nn(t))return[];let n=null;n=Be(t)?ta(t," "):t;let r=or(n);return An(e,e=>function(e){let t=!1,i=0;for(let o=0;o<r;o++){let a=n[o],s=a,l="+"===na(a,1),c="-"===na(a,1);if((l||c)&&(s=ia(a,1)),""===Zo(s))continue;let u=e.indexOf(s)>=0;if(l){if(u){t=!0,i=1;break}t=!1,i=0;break}if(c){if(u){t=!1,i=0;break}t=!0,i=1;break}if(u){t=!0;let e=1-o/r;e=e**2,i+=e}}return{hasKeyword:t,weight:i}}(e))},e.arrFilterByNum=function(e){return Nn(e)?e=An(e=aa(e=Qi(e),Me),xr):[]},e.arrFilterByPnum=la,e.arrFilterByPnumAndToLog=function(e){return Nn(e)?e=An(e=la(e),Math.log):[]},e.arrFind=function(e,t){function n(e){return Ce(e)?e:[e]}return Mn(e)||0===(e=n(e)).length||Mn(t)?[]:An(t=n(t),function(t){let n=-1;for(let r=0;r<e.length;r++)if(ca(e[r],t)){n=r;break}return n})},e.arrGroupByMaxmin=function(e,t,n={}){let r=Ae(n,"keyMax");Be(r)||(r="max");let i=Ae(n,"keyMin");Be(i)||(i="min");let o=Ae(n,"keyValue");Be(o)||(o="value");let a=Ae(n,"keyItems");if(Be(a)||(a="items"),!Nn(e))return[];if(!Nn(t))return[];let s=Qi(t);return vn(e,(e,n)=>{let l=Ae(e,o);Me(l)?l=xr(l):Me(e)&&(l=xr(e)),ua(l)&&vn(t,(t,n)=>{let o=Ae(t,r,null),c=Ae(t,i,null);if(null!==o&&null!==c&&Me(o)&&Me(c)){let r=Ae(t,"maxType");"<="!==r&&"<"!==r&&(r="<=");let i,u,d=Ae(t,"minType");">="!==d&&">"!==d&&(d=">="),o=xr(o),c=xr(c),i=">="===d?l>=c:l>c,u="<="===r?l<=o:l<o,i&&u&&(Ne(s[n],a)||(s[n][a]=[]),s[n][a].push(e))}})}),s},e.arrHas=da,e.arrInsert=function(e,t,n){if(!Ce(e))return[];if(Ce(n)||(n=[n]),!go(t))return e;if((t=Wi(t))>or(e))return e;let r=e;try{r=[...e.slice(0,t),...n,...e.slice(t)]}catch(e){}return r},e.arrLookupByMaxmin=function(e,t,n={}){let r=Ae(n,"keyMax");Be(r)||(r="max");let i=Ae(n,"keyMin");Be(i)||(i="min");let o=Ae(n,"keyValue");Be(o)||(o="value");let a=Ae(n,"keyItems");Be(a)||(a="items");let s=Ae(n,"beforeAddResult",null);if(!Nn(e))return[];if(!Nn(t))return[];if(!Ee(Ae(e,0)))return[];let l=Qi(e);return vn(l,(e,n)=>{let c=Ae(e,o);Me(c)&&(c=xr(c)),ua(c)&&vn(t,(e,t)=>{let o=Ae(e,r,null),u=Ae(e,i,null);if(null!==o&&null!==u&&Me(o)&&Me(u)){let t=Ae(e,"maxType");"<="!==t&&"<"!==t&&(t="<=");let r,i,d=Ae(e,"minType");">="!==d&&">"!==d&&(d=">="),o=xr(o),u=xr(u),r=">="===d?c>=u:c>u,i="<="===t?c<=o:c<o,r&&i&&(Ui(s)&&(e=s(e,l[n],n)),Ne(l[n],a)||(l[n][a]=[]),l[n][a].push(e))}})}),l},e.arrMax=function(e,t={}){if(!Nn(e))return null;let n=Ae(t,"returnIndex");we(n)||(n=!1);let r=Ae(t,"compareKey",null),i=e;Be(r)&&(i=An(e,(e,t)=>Ae(e,r,"")));let o=null,a=fa(i,(e,t)=>Me(t)?(t=xr(t),null===e?(o=t,t):(e=Math.max(e,t),o=e,e)):e,{returnIndex:!0});if(n)return a;let s=null;return a>=0&&(s=Be(r)?e[a]:o),s},e.arrMin=function(e,t={}){if(!Nn(e))return null;let n=Ae(t,"returnIndex");we(n)||(n=!1);let r=Ae(t,"compareKey",null),i=e;Be(r)&&(i=An(e,(e,t)=>Ae(e,r,"")));let o=null,a=fa(i,(e,t)=>Me(t)?(t=xr(t),null===e?(o=t,t):(e=Math.min(e,t),o=e,e)):e,{returnIndex:!0});if(n)return a;let s=null;return a>=0&&(s=Be(r)?e[a]:o),s},e.arrMulti=pa,e.arrNorm=function(e){if(!Nn(e))return null;let t=ma(e,e);return Me(t)?t<=0?null:Math.sqrt(t):null},e.arrProduct=ma,e.arrPull=function(e,t){if(!Nn(e))return[];if((Se(t)||Me(t)||ke(t)||we(t))&&(t=[t]),!Nn(t))return e;let n=Qi(e);return ba(n,t),n},e.arrPullAt=function(e,t){if(!Nn(e))return[];if(go(t)&&(t=[t]),!Nn(t))return e;t=An(t,e=>Wi(e));let n=Qi(e);return Sa(n,t),n},e.arrReduce=fa,e.arrReverse=function(e){if(!Nn(e))return[];let t=Qi(e);return ka(t),t},e.arrSep=function(e,t){if(!Nn(e))return[];if(!_i(t)&&!Ee(t))return[];let n="",r=null;if(_i(t))r=t,n="numCount";else if(Ee(t))if(_i(Ae(t,"numCount")))r=t.numCount,n="numCount";else{if(!_i(Ae(t,"numGroup")))throw new Error("invalid opt.numCount or opt.numGroup");r=t.numGroup,n="numGroup"}let i=or(e),o=[];if("numCount"===n)for(let t=0;t<i;t+=r){let n=[];for(let o=0;o<r;o++){let r=t+o;r<i&&n.push(e[r])}o.push(n)}else if("numGroup"===n){for(let e=0;e<r;e++)o[e]=[];let t=-1;for(let n=0;n<i;n++)t++,t>r-1&&(t=0),o[t].push(e[n])}return o},e.arrSort=$a,e.asind=function(e){return Me(e)?(e=xr(e),180*Math.asin(e)/Math.PI):null},e.atan2d=function(e,t){return Me(e)?(e=xr(e),Me(t)?(t=xr(t),180*Math.atan2(t,e)/Math.PI):null):null},e.atand=function(e){return Me(e)?(e=xr(e),180*Math.atan(e)/Math.PI):null},e.attstr=function(e={}){let t=";",n="@",r="table",i="id",o=Ae(e,"uniqItems");we(o)||(o=!1);let a=Ae(e,"dlmItem","");Be(a)&&(t=a);let s=Ae(e,"dlmSep","");Be(s)&&(n=s);let l=Ae(e,"keyTable","");Be(l)&&(r=l);let c=Ae(e,"keyId","");Be(c)&&(i=c);let u=Ae(e,"mode");function d(e){if(!Be(e))return[];let n=Lo(e,t);return o&&(n=Hn(n)),n}function f(e){if(!Nn(e))return"";return o&&(e=Hn(e)),vo(e,t)}function h(e){return e=aa(e,Be),o&&(e=Hn(e)),f(e)}function p(e){let t=[];return vn(e,e=>{let o=Ae(e,r,""),a=Ae(e,i,"");if(Be(o),ke(a)||(Ce(a)?or(a):a=""),ke(a))t.push(`${o}${n}${a}`);else if(Ce(a)){let e=vo(a,n);t.push(`${o}${n}${e}`)}}),e=f(t)}function g(e){if(!Be(e))return[];return aa(d(e),Be)}function m(e){if(!Be(e))return[];let t=d(e),o=[];return vn(t,e=>{let t=Lo(e,n),a=Ae(t,0,""),s=Ae(t,1,"");or(t)>=3&&(t=Ta(t),s=t),o.push({item:e,[r]:a,[i]:s})}),o}function y(e,t){let n=[...g(e),...g(t)];return 0===or(n)?"":h(n)}function v(e,t){let n=[...m(e),...m(t)];return 0===or(n)?"":p(n)}function b(e,t){let n=g(e),r=g(t),i=[];return vn(n,e=>{da(e,r)||i.push(e)}),0===or(i)?"":h(i)}function A(e,t){let n=m(e),r=m(t),i=[];return vn(n,e=>{da(e,r)||i.push(e)}),0===or(i)?"":p(i)}"1p"!==u&&"2p"!==u&&(u="auto");let w={parse:function(e,t={}){if(!Be(e))return[];let r=Ae(t,"mode");return"1p"!==r&&"2p"!==r&&(r=u),"1p"===r?g(e):"2p"===r||e.indexOf(n)>=0?m(e):g(e)},join:function(e,t={}){if(!Nn(e))return"";let n=Ae(t,"mode");if("1p"!==n&&"2p"!==n&&(n=u),"1p"===n)return h(e);if("2p"===n)return p(e);let o=Ae(e,0);return Ne(o,r)&&Ne(o,i)?p(e):h(e)},remove:function(e,t,r={}){if(!Be(e))return"";if(!Be(t))return e;let i=Ae(r,"mode");return"1p"!==i&&"2p"!==i&&(i=u),"1p"===i?b(e,t):"2p"===i||t.indexOf(n)>=0?A(e,t):b(e,t)},add:function(e,t,r={}){let i=Ae(r,"mode");if("1p"!==i&&"2p"!==i&&(i=u),"1p"===i)return y(e,t);if("2p"===i)return v(e,t);let o=e.indexOf(n)>=0,a=t.indexOf(n)>=0;return o||a?v(e,t):y(e,t)}};return w},e.b642obj=function(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:{};if(!ke(e))return r("invalid b64");let i={};try{let t=Ha(e,{returnWithStateAndMsg:!0});if("error"===t.state)return r(`b642str: ${t.msg}`);let n=za(t.msg,{returnWithStateAndMsg:!0});if("error"===n.state)return r(`j2o: ${n.msg}`);i=n.msg}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.b642str=Ha,e.b642u16arr=Va,e.b642u8arr=_a,e.binstr=Ya,e.blob2ab=Ka,e.blob2b64=Za,e.blob2str=function(e){if(!Ja(e))return Promise.reject("invalid bb");if(!Xa())return Promise.reject("no window");let t=Ga();try{let n=new FileReader;n.onload=function(){t.resolve(n.result)},n.onerror=function(e){t.reject(e)},n.readAsText(e)}catch(e){t.reject(e)}return t},e.blob2u8arr=es,e.blobs2b64s=ts,e.blobs2u8arrs=ns,e.bodyLog=function(){let e=`\n <div style="padding:5px; font-size:10pt; font-family:Microsoft JhengHei, Helvetica;">\n <span style="color:#f26;">log: </span>\n <code>${os(An(arguments,function(e){return ar(e)}).join(", "))}</code>\n </div>\n `;document.querySelector("body").insertAdjacentHTML("beforeend",e)},e.browserView=as,e.browserViewFromBlob=function(e,t){Ja(e)&&as(e,t)},e.browserViewFromText=function(e){ke(e)&&as(e,"text/plain")},e.browserViewFromU8arr=function(e,t){ss(e)&&as(e,t)},e.bs2u8arr=function(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new Uint8Array;if(!Be(e))return r("invalid bs");let i=null;try{let t=e.length;i=new Uint8Array(t);for(let n=0;n<t;n++)i[n]=e.charCodeAt(n)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.bufRead=ls,e.bufReadDbl=cs,e.bufWrite=us,e.bufWriteDbl=ds,e.cache=function(){let e=Oi(),t=Object.create(null);function n(t,n){fs(e,t,[n],{tag:"cache"})}function r(e,r={}){if(Ne(t,e))return;let i=Ae(r,"fun");Ui(i)||(i=async()=>{});let o=Ae(r,"inputs");Ce(o)||(o=[]);let a=Ae(r,"timeExpired");_i(a)||(a=5e3),a=Wi(a);let s=Ae(r,"timeFrom");"end"!==s&&(s="start");let l=Ae(r,"useCacheWhenError");we(l)||(l=!1);let c=Ae(r,"useCloneDeep");we(c)||(c=!0),t[e]={needExec:!0,fun:i,pm:null,gen:0,inputs:o,value:null,time:null,timeExpired:a,timeFrom:s,useCacheWhenError:l,useCloneDeep:c},n("message",{fun:"set",key:e,timeExpired:a,timeFrom:s,useCacheWhenError:l,useCloneDeep:c})}async function i(e,r={}){if(Ne(t,e)){let i=t[e],o=Ae(r,"useCloneDeep");if(we(o)||(o=i.useCloneDeep),i.pm)return n("message",{fun:"get",key:e,msg:"waiting"}),await i.pm,o?Qi(i.value):i.value;let a=Date.now(),s=i.needExec,l=a-i.time;if(s?n("message",{fun:"get",key:e,msg:"execute first"}):i.timeExpired>0&&l>i.timeExpired&&(n("message",{fun:"get",key:e,msg:"execute by timeExpired",timeDiff:l}),s=!0),s){n("message",{fun:"get",key:e,msg:"fun start"}),i.needExec=!1;let t=i.gen,r=async()=>{try{let r;try{r=await i.fun(...i.inputs)}catch(o){if(n("error",{fun:"get",key:e,msg:o}),!i.useCacheWhenError)throw i.gen===t&&(i.needExec=!0),o;r=void 0}i.gen===t&&(i.value=r,i.time="end"===i.timeFrom?Date.now():a)}finally{i.pm=null,n("message",{fun:"get",key:e,msg:"fun end"})}};i.pm=r(),await i.pm}else n("message",{fun:"get",key:e,msg:"use cache"});return o?Qi(i.value):i.value}return n("error",{fun:"get",key:e,msg:"invalid key"}),null}return e.set=r,e.getProxy=async function(e,t={}){return r(e,t),i(e,t)},e.get=i,e.update=function(e,r){Ne(t,e)&&(n("message",{fun:"updateValue",key:e}),t[e].value=r,t[e].time=Date.now(),t[e].gen+=1)},e.clear=function(e){Ne(t,e)&&(n("message",{fun:"clear",key:e}),t[e].needExec=!0)},e.remove=function(e){Ne(t,e)&&(n("message",{fun:"remove",key:e}),delete t[e])},e},e.cacheBd=function(e,t={}){let n=Ae(t,"nMax");_i(n)||(n=200),n=Wi(n);let r=Ae(t,"nTrigger");_i(r)||(r=3),r=Wi(r);let i=null,o=!1,a=async(...t)=>(o=!0,i=await e(...t),o=!1,i);return{get:a,getFromCache:async(...e)=>{for(let t=1;t<=n&&(t>r&&!o&&await a(...e).catch(()=>{}),null===i);t++)await hs(1e3);if(null===i)throw new Error(`exceeded nMax[${n}]`);return i}}},e.cacheSt=function(e={}){let t=Ae(e,"timeExpire",null);_i(t)||(t=18e5),t=Wi(t),t=Math.min(t,Ri);let n=Ae(e,"timeDetect",null);_i(n)||(n=2e3),n=Wi(n),n=Math.min(n,Ri);let r=Oi(),i=Object.create(null),o=e=>{if(Ne(i,e)){return $i(r,"checkWithSet",[{state:"error",msg:`checkWithSet: key in use: ${e}`}],{tag:"cacheSt"}),!1}return i[e]={time:Date.now(),value:!0},$i(r,"checkWithSet",[{state:"success",msg:`checkWithSet: ${e}`}],{tag:"cacheSt"}),!0},a=setInterval(()=>{$i(r,"detect",[{state:"start"}],{tag:"cacheSt"});let e=Date.now();for(let n of Object.keys(i)){let r=i[n];r&&e-r.time>t&&delete i[n]}$i(r,"detect",[{state:"finish"}],{tag:"cacheSt"})},n);return r.checkWithSet=o,r.setWithFree=async(e,t)=>{$i(r,"setWithFree",[{state:"start"}],{tag:"cacheSt"});let n=[];for(let t of e){if(!o(t)){for(let e of n)delete i[e];let e=`setWithFree: key in use: ${t}`;return $i(r,"setWithFree",[{state:"error",msg:e}],{tag:"cacheSt"}),Promise.reject(e)}n.push(t)}try{let n=await t(),i=`setWithFree: ${e.join(", ")}`;return $i(r,"setWithFree",[{state:"success",msg:i}],{tag:"cacheSt"}),n}catch(e){let t=`setWithFree: fn threw: ${e&&e.message||e}`;throw $i(r,"setWithFree",[{state:"error",msg:t}],{tag:"cacheSt"}),e}finally{for(let e of n)delete i[e]}},r.set=async(e,t=!0)=>{i[e]={time:Date.now(),value:t},$i(r,"set",[{state:"success",msg:`set: ${e}`}],{tag:"cacheSt"})},r.get=async e=>{let t=i[e],n=void 0===t?null:t.value;return $i(r,"get",[{state:"success",msg:`get: ${e}`}],{tag:"cacheSt"}),n},r.check=async e=>{let t=Ne(i,e);return $i(r,"check",[{state:"success",msg:`check: ${e} = ${t}`}],{tag:"cacheSt"}),t},r.del=async e=>{delete i[e],$i(r,"del",[{state:"success",msg:`del: ${e}`}],{tag:"cacheSt"})},r.waitExist=async(e,t={})=>{let n=Ae(t,"attemptNum",null);_i(n)||(n=30),n=Wi(n);let o=Ae(t,"timeInterval",null);_i(o)||(o=100),o=Wi(o),$i(r,"waitExist",[{state:"start"}],{tag:"cacheSt"});try{await gs(()=>Ne(i,e),{attemptNum:n,timeInterval:o})}catch(t){let i=`waitExist timeout (${n*o}ms): ${e}`;return $i(r,"waitExist",[{state:"error",msg:i}],{tag:"cacheSt"}),Promise.reject(i)}$i(r,"waitExist",[{state:"success",msg:`waitExist resolved: ${e}`}],{tag:"cacheSt"})},r.waitNotExist=async(e,t={})=>{let n=Ae(t,"attemptNum",null);_i(n)||(n=30),n=Wi(n);let o=Ae(t,"timeInterval",null);_i(o)||(o=100),o=Wi(o),$i(r,"waitNotExist",[{state:"start"}],{tag:"cacheSt"});try{await gs(()=>!Ne(i,e),{attemptNum:n,timeInterval:o})}catch(t){let i=`waitNotExist timeout (${n*o}ms): ${e}`;return $i(r,"waitNotExist",[{state:"error",msg:i}],{tag:"cacheSt"}),Promise.reject(i)}$i(r,"waitNotExist",[{state:"success",msg:`waitNotExist resolved: ${e}`}],{tag:"cacheSt"})},r.clear=()=>{clearInterval(a)},r},e.cbol=function(e){if(we(e))return e;if(0===e)return!1;if(1===e)return!0;let t=!1;return Be(e)&&"true"===(e=ms(Zo(e)))&&(t=!0),t},e.cdbl=xr,e.ceil=Zl,e.cfilesize=function(e){return Me(e)?(e=xr(e))<1024?ec(e,1)+" b":e<1048576?ec(e/1024,1)+" kb":e<1073741824?ec(e/1024/1024,1)+" mb":e<1099511627776?ec(e/1024/1024/1024,1)+" gb":"":""},e.cfinancial=function(e,t=0){if(!Me(e))return"";if(!go(t))return"";let n=(e=ec(e,t)).split("."),r=n[0],i=n.length>1?"."+n[1]:"",o=/(\d+)(\d{3})/;for(;o.test(r);)r=r.replace(o,"$1,$2");return r+i},e.cint=Wi,e.clearXSS=oc,e.clearXSSDyn=async function(e,t={},n){return Nn(n)||(n=["https://cdn.jsdelivr.net/npm/xss@1.0.15/dist/xss.min.js"]),await uc(n),oc(e)},e.color=mu,e.composeToTree=ku,e.convertToTree=function(e,t={}){if(!Ee(e)&&!Nn(e))return[];let n=Ae(t,"bindKey",null);Be(n)||(n="id");let r=Ae(t,"bindParent",null);Be(r)||(r="parentId");let i=Ae(t,"bindText",null);Be(i)||(i="text");let o=Ae(t,"bindChildren",null);Be(o)||(o="children");let a=Ae(t,"bindType",null);Be(a)||(a="type");let s=Ae(t,"bindNumOfChilren",null);Be(s)||(s="numOfChilren");let l=Ae(t,"bindRoot",null);Be(l)||(l="root");let c=Ae(t,"saveExtProps",null);return we(c)||(c=!1),Be(l)&&(e={[l]:e}),ku(Fu(e,{bindKey:n,bindParent:r,bindText:i,bindType:a,bindNumOfChilren:s}),{bindKey:n,bindParent:r,bindChildren:o,saveExtProps:c})},e.copyStrToClipboard=function(e,t={}){if(!ke(e))return"invalid input";let n=Ae(t,"eleParent");Du(n)||(n=document.body);let r=document.createElement("textarea");if(r.style.position="fixed",r.style.left=0,r.style.top=0,r.style.zIndex=-1,r.style.background="transparent",r.style.color="transparent",r.value=e,n.appendChild(r),r.select(),!Mu(r))return"ele can not be focusd";try{document.execCommand("copy")}catch(e){return"can not copy str to clipboard"}return n.removeChild(r),""},e.cosd=Nu,e.cotd=function(e){return Me(e)?1/Tu(e=xr(e)):null},e.createExcelWorkbook=Qu,e.cscd=function(e){return Me(e)?1/Ru(e=xr(e)):null},e.cstr=Na,e.day2cht=function(e,n=!1){if(!Lu(e))return"";let r=t(e,"YYYY-MM-DD"),i="";return i=n?r.month()+1+"月"+r.date()+"日":"民國 "+(r.year()-1911)+" 年 "+(r.month()+1)+" 月 "+r.date()+" 日",i},e.debounce=Pu,e.delay=hs,e.detectXSS=zu,e.detectXSSDyn=async function(e,t){return Nn(t)||(t=["https://cdn.jsdelivr.net/npm/xss@1.0.15/dist/xss.min.js"]),await uc(t),zu(e)},e.dig=ec,e.digExp=function(e,t=0){if(!Me(e))return"";if(!go(t))return"";let n="";return n=0===(e=xr(e))?"0":Math.abs(e)<=1e-6?e.toExponential(t):ec(e,t),n},e.domAlert=function(e,t={}){if(!Be(e))return;let n=Ae(t,"type","success");Ne(Gu,n)||(n="success");let r=Ae(t,"icon",null);Be(r)||(r=Gu[n]);let i="top-right";"top-left"!==t.position&&"bottom-right"!==t.position&&"bottom-left"!==t.position||(i=t.position);let o=Ae(t,"time");ua(o)||(o=4e3),o<0&&(o=4e3);let a=Ae(t,"paddingStyle",null);null===a&&(a={top:14,right:26,bottom:14,left:14});let s="";{let e=Ae(a,"top",0),t=Ae(a,"bottom",0),n=Ae(a,"left",0);s=`padding:${e}px ${Ae(a,"right",0)}px ${t}px ${n}px;`}let l=Ae(t,"textColor","#000");l=fc(l,";","");let c=Ae(t,"backgroundColor","#fff");c=fc(c,";","");let u=Ae(t,"borderWidth",1),d=Ae(t,"borderColor","#ebeef5");d=fc(d,";","");let f=Ae(t,"borderRadius",8),h=Ae(t,"shadowStyle","0 2px 12px 0 rgba(0,0,0,.1)");h=fc(h,";","");let p=Ae(t,"closeIconShift",null);null===p&&(p={top:10,right:10});let g="";{let e=Ae(p,"top",""),t=Ae(p,"bottom",""),n=Ae(p,"left",""),r=Ae(p,"right","");ua(e)&&(e=`top:${e}px;`),ua(t)&&(t=`bottom:${t}px;`),ua(n)&&(n=`left:${n}px;`),ua(r)&&(r=`right:${r}px;`),g=`position:absolute; ${e} ${r} ${t} ${n}`}let m=`alt-${Wu()}`,y=`alt-${Wu()}`,v=`\n <div \n style="display:inline-block; color:${l}; background:${c}; border:${u}px solid ${d}; border-radius:${f}px; box-shadow:${h};"\n onmouseenter="ttWAlertFadeIn('${y}')"\n onmouseleave="ttWAlertFadeOut('${y}')"\n >\n <div style="position:relative; ${s}">\n\n <div style="display:flex; align-items:center;">\n <div style="margin-right:10px;">\n <div style="display:flex;">${r}</div>\n </div>\n <div>${e}</div>\n </div>\n\n <div style="${g}">\n <div \n id="${y}" \n style="display:flex; cursor:pointer; opacity:0;" \n onclick="ttWAlertCancel('${m}')"\n >\n ${Yu}\n </div>\n </div>\n\n </div>\n </div>\n `,b=document.createElement("div");b.id=m,b.style.position="fixed",b.style.transition="transform 0.3s, top 0.5s, bottom 0.5s",b.style.zIndex=-1,b.style.opacity=.001,i.indexOf("-left")>=0?b.style.transform="translateX(-100%)":b.style.transform="translateX(100%)",b.innerHTML=v,document.querySelector("body").appendChild(b);let A=Ga();return function({id:e,position:t,time:n,pm:r}){Ju[e]={id:e,position:t,ele:null,loc:{height:null,top:null,bottom:null,left:null,right:null},timeShow:n,timeStart:Date.now(),pm:r},Zu(),null===Xu&&(Xu=setInterval(()=>{vn(Ju,e=>{Date.now()-e.timeStart>e.timeShow&&(e.pm.resolve(),ed(e.id))}),Ee(Ju)||(clearInterval(Xu),Xu=null)},50))}({id:m,position:i,time:o,pm:A}),A},e.domAppend=td,e.domCancelEvent=rd,e.domCompareText=function(e,t,n,r,i={}){if(!Du(e))return Promise.reject("invalid ele");let o=Ae(i,"format");"side"!==o&&"line"!==o&&(o="side");let a="side"===o?"side-by-side":"line-by-line",s=Zd();Be(t)||(t="Text");let l=_o(t,t,n,r),c=s.html(l,{drawFileList:!0,matching:"lines",outputFormat:a,...i});c=c.replace('<span class="d2h-file-list-title">Files changed (1)</span>',"");try{e.innerHTML=c}catch(e){console.log(e)}return{diff:l,html:c}},e.domConvertToPic=xw,e.domConvertToPicDyn=async function(e,t={},n){return await xw(e,t)},e.domDetect=function(e,t={}){return"undefined"!=typeof window&&!!window.ResizeObserver&&!!window.MutationObserver&&"polling"!==Ae(t,"mode","")?Ow(e,t):function(e,t={}){if(!Ui(e))return console.log("invalid f",e),null;let n=Oi(),r=Pw(n,t),i=setInterval(()=>{r.check(Qw(e),!1)},Nw(t));return n.refresh=()=>{r.isCleared()||r.check(Qw(e),!1)},n.clear=()=>{clearInterval(i),r.clear()},n}(e,t)},e.domDrag=function(e,t={}){if(!Du(e))return void console.log("ele is not a HTMLElement",e);let n=(e,n)=>{let r=Ae(t,e,null);return Be(r)?r:n},r={attIdentify:n("attIdentify","dragid"),attIndex:n("attIndex","dragindex"),attGroup:n("attGroup","draggroup"),group:n("group","group"),previewOpacity:Bw(t,"previewOpacity",.4),previewDisabledOpacity:Bw(t,"previewDisabledOpacity",.2),previewBackground:n("previewBackground","white"),previewBorderWidth:Bw(t,"previewBorderWidth",1),previewBorderColor:n("previewBorderColor","#f26"),timeDragStartDelay:Bw(t,"timeDragStartDelay",120,{min:0,below:"clamp",timer:!0})},i=r.group,o=`c${Wu(8)}`,a=qw.get(i);a||(a={gid:i,members:new Map,isActive:!0,drag:null,teardown:!1},qw.set(i,a));let s=Oi(),l={eid:o,ele:e,ev:s,o:r,g:a,alive:!0};Vw(e,r.attGroup)!==i&&e.setAttribute(r.attGroup,i),e.setAttribute(r.attIdentify,o),a.members.set(e,l);let c=[];function u(){l.alive&&(l.alive=!1,Kw(c),a.members.get(e)===l&&a.members.delete(e),Promise.resolve().then(()=>{Vw(e,r.attIdentify)===o&&(e.removeAttribute(r.attIdentify),Vw(e,r.attGroup)===i&&e.removeAttribute(r.attGroup))}),a.drag&&a.drag.startEle===e&&function(e,t){Promise.resolve().then(()=>{e.drag!==t||e.members.has(t.startEle)||tx(e)})}(a,a.drag),0===a.members.size&&function(e){e.teardown||(e.teardown=!0,Promise.resolve().then(()=>{e.teardown=!1,e.members.size>0||(tx(e),qw.get(e.gid)===e&&qw.delete(e.gid))}))}(a))}return c.push(Xw(e,"mousedown",e=>{ox(l,e,!1)})),c.push(Xw(e,"touchstart",e=>{ox(l,e,!0)})),c.push(Xw(e,"dragstart",t=>{a.drag&&a.drag.startEle===e&&t.preventDefault()})),s.setIsActive=function(e){l.alive&&(a.isActive=e,e||tx(a))},s.unbind=u,s.clear=u,s},e.domDragBarAndScroll=function(e,t,n={}){let r=Ae(n,"getHeighRatio",null);Ui(r)||(r=()=>1);let i=Ae(n,"getWidthRatio",null);Ui(i)||(i=()=>1);let o=Ae(n,"stopScrollPropagationForPanel",null);we(o)||(o=!1);let a=Ae(n,"stopTouchDragPropagationForPanel",null);we(a)||(a=!1);let s=Ae(n,"useTouchDragForPanel",null);we(s)||(s=!0);let l=e,c=t,u=Oi(),d="",f={touchstart:!1,touchend:!1,mouseup:!1},h=[];function p(e,t,n,r){e.addEventListener(t,n,r),h.push({target:e,type:t,fun:n,options:r})}function g(e){return e>0?1:e<0?-1:0}function m(e){let t=Ae(e,"target",null);return!!t&&(t===c||Ui(c.contains)&&c.contains(t))}function y(e){return"bar"===d?{clientY:e.clientY,clientX:e.clientX,pointerType:e.pointerType}:{clientY:-e.clientY*r(),clientX:-e.clientX*i(),pointerType:e.pointerType}}let v=ax([c,l],{canPress:e=>!!m(e)||!!s&&!function(e){let t=Ae(e,"pointerType","");return"touch"!==t&&"pen"!==t}(e),eleTouchMove:s?[c,l]:c,cancelTouchMove:()=>"bar"===d||"panel"===d&&a});return v.on("press",e=>{d=m(e.event)?"bar":"panel",f.touchstart="panel"===d&&a&&"touch"===e.pointerType,f.touchend=!1,f.mouseup=!1,u.emit("pressBar",y(e))}),v.on("drag",e=>{u.emit("dragBar",y(e))}),v.on("free",e=>{let t=d;d="";let n="up"===e.reason||"cancel"===e.reason;f.touchstart=!1,f.touchend="panel"===t&&a&&n&&"touch"===e.pointerType,f.mouseup=""!==t&&o&&n&&"touch"!==e.pointerType,u.emit("freeBar")}),function(){if(s&&a){p(l,"touchstart",e=>{f.touchstart&&(f.touchstart=!1,rd(e))});let e=e=>{f.touchend&&(f.touchend=!1,rd(e))};p(l,"touchend",e),p(l,"touchcancel",e)}o&&p(window,"mouseup",e=>{f.mouseup&&(f.mouseup=!1,rd(e))}),p(l,"wheel",e=>{o&&rd(e),u.emit("scrollPanel",{ratioY:g(e.deltaY),ratioX:g(e.deltaX)})})}(),u.clear=function(){v.clear(),d="",f.touchstart=!1,f.touchend=!1,f.mouseup=!1;for(let e of h)e.target.removeEventListener(e.type,e.fun,e.options);h=[]},u},e.domDragPointer=ax,e.domDragPreview=zw,e.domDropFiles=function(e){let t=!1,n=!1,r=Oi();function i(e){rd(e),n=!0,!1===t&&(t=!0,r.emit("dropIn",{ev:e}))}function o(e){rd(e),n=!1,setTimeout(function(){n||(t=!1,r.emit("dropOut",{ev:e}))},100)}function a(e){i(e)}function s(e){o(e)}function l(e){function t(){o(e)}i(e),cx(e.dataTransfer).then(n=>{let i=aa(n.entries,{type:"file"});r.emit("getFiles",{ev:e,files:n.files,filesTree:i,entries:n.entries,cb:t})}).catch(e=>{r.emit("error",e)})}return e.addEventListener("dragenter",a,!1),e.addEventListener("dragover",a,!1),e.addEventListener("dragleave",s,!1),e.addEventListener("drop",l,!1),r.off=function(){e.removeEventListener("dragenter",a,!1),e.removeEventListener("dragover",a,!1),e.removeEventListener("dragleave",s,!1),e.removeEventListener("drop",l,!1)},r},e.domElementsFromPoint=function(e,t){let n=[];try{n=document.elementsFromPoint(e,t)}catch(e){console.log(e)}return n},e.domFadeIn=_u,e.domFadeOut=Vu,e.domFind=ux,e.domFinds=bw,e.domGetAttr=function(e,t){if(!Du(e))return null;if(!Be(t))return null;try{return e.getAttribute(t)}catch(e){}return null},e.domGetBoudRect=Uw,e.domGetBoudRectRefSelf=$w,e.domGetFileAccept=vx,e.domGetFiles=bx,e.domGetParents=Ax,e.domGetPointFromEvent=Hw,e.domGetScrollableParent=function(e){let t=/(auto|scroll)/,n=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},r=function(e){return t.test(function(e){return n(e,"overflow")+n(e,"overflow-y")+n(e,"overflow-x")}(e))};if(!(e instanceof HTMLElement||e instanceof SVGElement))return;let i=Ax(e);for(let e=0;e<i.length;e+=1)if(r(i[e]))return i[e];return document.scrollingElement||document.documentElement},e.domGetWindowSize=function(){let e=tc(),t={width:(()=>{let t=[Ae(e,"innerWidth"),Ae(e,"document.documentElement.clientWidth"),Ae(e,"document.body.clientWidth")];return t=aa(t,ua),Ix(t)})(),height:(()=>{let t=[Ae(e,"innerHeight"),Ae(e,"document.documentElement.clientHeight"),Ae(e,"document.body.clientHeight")];return t=aa(t,ua),Ix(t)})()};return t},e.domIsClientXYIn=function(e,t,n){if(!ua(e))return void console.log("clientX is not a number",e);if(!ua(t))return void console.log("clientY is not a number",t);if(!Du(n))return void console.log("ele is not a HTMLElement",n);let r;try{r=n.getBoundingClientRect()}catch(e){return void console.log("invalid ele for getBoundingClientRect",e)}let i=!1;try{i=e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom}catch(e){console.log("catch when calculating page information of element",e)}return i},e.domIsFocused=Mu,e.domIsRendered=kw,e.domIsStable=function(e,t={}){let n=Sx.getMode(t);if(!Du(e))return Sx.detectorFail(n,"invalid element");if(!Ui(e.getBoundingClientRect))return Sx.detectorFail(n,"invalid element.getBoundingClientRect");let r=Bw(t,"tolerance",0,{min:0,inf:"keep"}),i=Bw(t,"timeDiff",100,{min:0,below:"clamp",timer:!0}),o=Bw(t,"timeDetect",50,{min:0,minOpen:!0,timer:!0}),a=()=>{let t=e.getBoundingClientRect();return{x:t.left,y:t.top,w:t.width,h:t.height}},s=(e,t)=>!!e&&!!t&&Math.abs(e.x-t.x)<=r&&Math.abs(e.y-t.y)<=r&&Math.abs(e.w-t.w)<=r&&Math.abs(e.h-t.h)<=r,l=e=>{try{return"running"===e.playState&&Number.isFinite(e.effect.getTiming().iterations)}catch(e){return!1}},c=()=>{try{return e.getAnimations({subtree:!0}).filter(l)}catch(e){return[]}},u=async()=>{let e=Ga();try{let t=a();await hs(i);let n=a(),r=c(),o=r.length;await Promise.allSettled(r.map(e=>e.finished));let l=c().length,u=a(),d=s(t,n)&&s(t,u)&&0===o&&0===l;e.resolve(d)}catch(t){e.reject(t)}return e};return"promise"===n?u():Sx.detectorEvent((e,t)=>{let n=!1,r=!1,i=!1,a=null;t(()=>{n=!0,clearInterval(a)});let s=()=>{n||r||(r=!0,u().then(t=>{i!==t&&(i=t,e("stable",t))}).catch(()=>{}).finally(()=>{r=!1}))};a=setInterval(s,o),s()},{tag:"domIsStable"})},e.domIsVisible=function(e,t={}){let n=Sx.getMode(t);if(!Du(e))return Sx.detectorFail(n,"invalid element");if(Ex())return Sx.detectorFail(n,"invalid IntersectionObserver");if("promise"===n){let t=Ga();try{let n=new IntersectionObserver(e=>{let r=kx(e);null!==r&&(t.resolve(r),n.disconnect())});n.observe(e)}catch(e){t.reject(e)}return t}return Sx.detectorEvent((t,n)=>{let r=new IntersectionObserver(e=>{let n=kx(e);null!==n&&t("visible",n)});n(()=>{r.disconnect()}),r.observe(e)},{tag:"domIsVisible"})},e.domPrepend=ww,e.domRemove=Aw,e.domRenderMarkdownMind=Bx,e.domRenderMarkdownMindDyn=async function(e,t,n={},r){return Nn(r)||(r=["https://cdn.jsdelivr.net/npm/d3@7.8.3/dist/d3.min.js","https://cdn.jsdelivr.net/npm/markmap-view@0.14.4/dist/index.min.js","https://cdn.jsdelivr.net/npm/markmap-lib@0.14.4/dist/browser/index.min.js"]),await uc(r),Bx(e,t,n)},e.domRipple=function(e,t,n={}){let r=Ae(n,"timeDuration",null);_i(r)||(r=1e3);let i=Ae(n,"color",null);if(Be(i)||(i="rgba(255, 255, 255, 0.5)"),!Du(e))return;e.style.position="relative",e.style.overflow="hidden";let o=e.getBoundingClientRect(),a=t.clientX-o.left,s=t.clientY-o.top,l=2*Math.max(e.clientWidth,e.clientHeight),c=document.createElement("div");c.style.width=`${l}px`,c.style.height=`${l}px`,c.style.transition=`all ${r/1e3}s linear`,c.style.position="absolute",c.style.zIndex=1,c.style.left=`${a}px`,c.style.top=`${s}px`,c.style.borderRadius="50%",c.style.transformOrigin="center",c.style.transform="translate(-50%,-50%) scale(0)",c.style.background=i,c.style.userSelect="none",c.style.pointerEvents="none",e.appendChild(c),setTimeout(()=>{c.style.transform="translate(-50%,-50%) scale(2)",c.style.opacity=0},1),setTimeout(()=>{Aw(c)},r)},e.domScrollIntoView=function(e,t={}){if(!Du(e))return;Se(t)||(t={});let n={behavior:"smooth"};n={...n,...t},nd()&&yI(),e.scrollIntoView(n)},e.domScrollTo=function(e,t={}){if(!Du(e))return;Se(t)||(t={});let n={behavior:"smooth"};n={...n,...t},nd()&&yI(),e.scrollTo(n)},e.domSetAttr=function(e,t,n){if(!Du(e))return null;if(!Be(t))return null;if(!Be(n)&&!Me(n))return null;try{return e.setAttribute(t,n),e.getAttribute(t)}catch(e){}return null},e.domShowImages=BI,e.domShowImagesDyn=async function(e,t=null,n={},r){return await BI(e,t,n)},e.domShowInputAndGetFiles=DI,e.domShowInputAndGetFilesU8Arrs=function(e={}){let t=Ae(e,"kind","*"),n=Ae(e,"multiple");we(n)||(n=!1);let r=Ae(e,"entireHierarchy");we(r)||(r=!1);let i=Ae(e,"sizeMbLimit");Me(i)||(i=1e3),i=xr(i);let o=Ga(),a=[];return DI({kind:t,multiple:n,entireHierarchy:r,sizeMbLimit:i}).then(function(e){let t=Ga(),n=Ae(e,"errs",{}),r=Ae(e,"files",[]);return Ee(n)?t.reject(n):t.resolve(r),t}).then(function(e){return vn(e,function(e){a.push({name:e.name,size:e.size,type:e.type})}),ns(e)}).then(function(e){vn(e,function(e,t){a[t].u8a=e}),o.resolve(a)}).catch(function(e){o.reject(e)}),o},e.domShowInputDatatime=function(e,n={}){let r=Ae(n,"type","");"date"!==r&&"datetime-local"!==r&&(r="datetime-local");let i=Ae(n,"eleRef",null);Du(i)||(i=document.activeElement);let o=Ga(),a="drf"+Wu(),s="GrpDomShowDatatime";Aw(`[name=${s}]`);let l=!1,c="";if("date"===r)Lu(e)&&(l=!0,c=e);else if(MI(e)){l=!0,c=t(e).format("YYYY-MM-DDTHH:mm")}Be(c)&&(c=`value="${c}"`);let u=document.createElement("div");u.setAttribute("name",s),u.style.width=0,u.style.height=0,u.style.overflow="hidden",u.innerHTML=`\n <div style="transform:translateY(-100%);">\n <input id="${a}" type="${r}" style="opacity:0;" ${l?c:""} />\n </div>\n `;let d=null;Du(i)?i.parentNode.insertBefore(u,i.nextSibling):document.querySelector("body").appendChild(u);let f=!1;function h(){if(!f){f=!0;try{d.removeEventListener("change",g,!0),i.removeEventListener("focusout",m,!0)}catch(e){}if(Aw(`[name=${s}]`),Be(p)){let e="";e="date"===r?p:`${p}:00`,o.resolve(e)}}}let p="";function g(e){try{p=e.target.value}catch(e){console.log(e)}h()}function m(e){setTimeout(()=>{h()},50)}return setTimeout(()=>{d=ux("#"+a),d.addEventListener("change",g,!0),d.showPicker()},1),i.addEventListener("focusout",m,!0),o},e.domTooltip=function(e,t,n={}){let r=null,i=null;function o(){null!==r&&r.destroy(!0),e.setAttribute("tippystate",""),clearInterval(i)}let a={arrow:!0,theme:"dark",placement:"bottom",delay:150};n=Ee(n)?kI(a,n):a;let s=t;t||(s=e.innerHTML);let l=Me(e.getAttribute("tippystate"));if(e.setAttribute("tippystate","5"),l)return;s=`<div style="text-align:left;">${s}</div>`;let c=qS;qS.default&&(c=qS.default),r=c(e,{...n,content:s,allowHTML:!0,onHidden(){o()},onDestroy(){r=null,o()}}),r.show(),i=setInterval(()=>{let t=e.getAttribute("tippystate");Me(t)?(t=Wi(t),t-=1,e.setAttribute("tippystate",t),t<=0&&o()):o()},1e3)},e.domTriggerEvent=FI,e.domVirtualCreate=jS,e.domVirtualCreateQueue=function(){return new function(){let e=GS(1);return async function(t,n={}){return e(jS,t,n)}}},e.downloadExcelFileFromData=dR,e.downloadExcelFileFromDataDyn=async function(e,t="data",n,r){let i=await dR(e,t,n);return""!==Ae(i,"error","")?Promise.reject(i.error):i},e.downloadFileFromB64=function(e,t){if(!Xa())return void console.log("no window");if(!Be(e))return void console.log("no filename");let n=document.createElement("a");n.href=t,n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)},e.downloadFileFromBlob=JS,e.downloadFileFromText=function(e,t,n=!0){if(!Xa())return void console.log("no window");if(!Be(e))return void console.log("invalid filename");if(!ke(t))return void console.log("invalid content");if(!we(n))return void console.log("withBOM is not a boolean");let r;r=n?new Blob(["\ufeff",t]):new Blob([t]),JS(e,r)},e.downloadFileFromU8Arr=function(e,t){if(!Xa())return void console.log("no window");if(!Be(e))return void console.log("no filename");if(!ss(t))return void console.log("no data");JS(e,fR(t))},e.dtmapping=hR,e.dtpick=pR,e.estimateTicks=function(e,t,n={}){if(!Me(e))throw new Error("rmin is not a number");if(e=xr(e),!Me(t))throw new Error("rmax is not a number");if(e===(t=xr(t))){let t=null;t=0===e?1:Math.abs(e/10);let n=mR(t,{returnDigit:!0});return t=gR(t,n),{tickNum:3,tickInterval:t,tickPositions:[e-t,e,e+t],tickDig:n}}if(e>t)throw new Error(`rmin[${e}] > rmax[${t}]`);let r=Ae(n,"testTickNums");Nn(r)||(r=[3,4,5]);let i=e,o=t,a=yR(i),s=yR(o),l=Math.max(a.r,s.r),c=Math.log10(l),u=i/l,d=o/l,f=(u+d)/2,h=d-u,p=[];vn(r,e=>{let t=h/(e-1),n=mR(t,{returnDigit:!0});n=Math.min(n,2),vn(Ki(n,-1,-1),n=>{let r=n-c;r=Math.max(r,0);let i=Zl(t,n),o=i-1/Math.pow(10,n);o=gR(o,n);let a=i+1/Math.pow(10,n);a=gR(a,n);let s=[o,i,a];s=aa(s,e=>e>0);let g=gR(f,n),m=g-1/Math.pow(10,n);m=gR(m,n);let y=g+1/Math.pow(10,n);y=gR(y,n);let v=[m,g,y];vn(s,t=>{let i=l*t;i=gR(i,r),vn(v,o=>{let a=[],s=[];{let i=o-(e-1)/2*t;for(let o=0;o<e;o++){let e=i+o*t;e=gR(e,n),a.push(e);let c=l*e;c=gR(c,r),s.push(c)}}let c=(f=a)&&f.length?f[0]:void 0;var f;let g=Aa(a);if(c>u||g<d)return!0;let m=(u-c)/h,y=(g-d)/h,v=(m+y)/2,b=0;vn(s,e=>{Ir(e)&&b++});let A=b/e,w=0;vn(a,e=>{0===e&&w++});let x=w/e,I=0;vn(a,e=>{.5===e&&I++});let C=I/e,S=0;vn(a,e=>{1===e&&S++});let E=S/e,k={diff:v,rngCenter:o,numInt:b,ratInt:A,num0:w,rat0:x,num5:I,rat5:C,num10:S,rat10:E,overMin:m,overMax:y,fitness:v+.2*n+.1*e+1.5*m+1.5*y+(1-.25*A)+(1-.4*x)+(1-.3*C)+(1-.3*E),idg:n,tickNum:e,_tickDig:n,_tickInterval:t,_tickPositions:a,tickDig:r,tickInterval:i,tickPositions:s};p.push(k)})})})}),p=Da(p,"fitness");let g=Ae(p,0);return{tickNum:g.tickNum,tickInterval:g.tickInterval,tickPositions:g.tickPositions,tickDig:g.tickDig}},e.evEmit=$i,e.evEmitDelay=fs,e.evem=Oi,e.execCli=async function(e,t=[],n={}){if(!Be(e))return{ok:!1,stdout:"",stderr:"",code:null,error:"command 須為非空字串",durationMs:0,attempts:0};Ce(t)||(t=[]),Se(n)||(n={});let{maxRetries:r=0,retryDelayMs:i=5e3,...o}=n,a=Ae(o,"cwd",null);Be(a)?o.cwd=a:o.cwd=process.cwd();let s=Ae(o,"input",null);Be(s)?o.input=s:o.input=void 0;let l=Ae(o,"env",null);Se(l)?o.env=l:o.env=void 0;let c=Ae(o,"validate",null);Ui(c)||Be(c)?o.validate=c:o.validate=void 0;let u=Ae(o,"onStdout",null);Ui(u)?o.onStdout=u:o.onStdout=void 0;let d=Ae(o,"onStderr",null);Ui(d)?o.onStderr=d:o.onStderr=void 0,r=go(r)?Wi(r):0,i=_i(i)?Wi(i):5e3;let f=Ae(o,"timeoutMs",null);_i(f)?o.timeoutMs=Wi(f):o.timeoutMs=12e4,o.timeoutMs=Math.min(o.timeoutMs,Ri);let h,p=Ae(o,"maxBuffer",null);_i(p)?o.maxBuffer=Wi(p):o.maxBuffer=10485760;let g=0;for(let n=0;n<=r;n++){if(n>0){let e=Math.min(i*n,15e3);await hs(e)}if(h=await FR(e,t,o),g=n+1,h.ok)return h.attempts=g,h;if(h.error.includes("ENOENT"))break;if(2===h.code)break}return h.attempts=g,h},e.execCliCore=SR,e.execCliJsonRpc=async function(e,t=[],n=[],r={}){let i=Date.now(),o=(e,t,n={})=>({ok:!1,results:{},responses:[],error:t,errorType:e,durationMs:Date.now()-i,exitCode:null,...n});if(!Be(e))return o("params","command 須為非空字串");if(Ce(t)||(t=[]),!Ce(n))return o("params","requests 須為陣列");for(let e=0;e<n.length;e++){let t=n[e];if(!Se(t)||!Be(t.method)&&!Be(t.notify))return o("params",`requests[${e}] 須為含method或notify之物件`)}Se(r)||(r={});let a=Ae(r,"timeoutMs");_i(a)||(a=12e4);let s=Ae(r,"jsonrpc");!0===s&&(s="2.0"),Be(s)||(s=null);let l=Ae(r,"continueOnError");we(l)||(l=!1);let c=Ae(r,"onNotify"),u=Ae(r,"onServerRequest"),d=new Map,f=null,h=0,p={},g=[],m=(e,t,n)=>{let r={};return null!==s&&(r.jsonrpc=s),void 0!==e&&(r.id=e),r.method=t,void 0!==n&&(r.params=n),r},y=NR(e,t,{cwd:Ae(r,"cwd"),env:Ae(r,"env"),timeoutMs:a,exitGraceMs:Ae(r,"exitGraceMs"),onStderr:Ae(r,"onStderr"),onLine:e=>{if(""===(e=e.trim()))return;let t;try{t=JSON.parse(e)}catch{return}if(!Se(t))return;let n=void 0!==t.id&&null!==t.id;if(n&&("result"in t||"error"in t)){let e=d.get(t.id);return void(e&&(d.delete(t.id),e.pm.resolve({msg:t})))}n&&Be(t.method)?Ui(u)&&u(t,y):Ui(c)&&c(t)},onExit:e=>{f=e;for(let[t,n]of d)n.pm.resolve({exit:e});d.clear()}}),v=(e,t)=>{let n="exit";e.timeout?n="timeout":Be(e.error)&&e.error.includes("ENOENT")&&(n="notfound");let r=Be(e.error)?e.error:`子進程於回應前結束(code ${e.code})`;return o(n,`${t}: ${r}`,{results:p,responses:g,exitCode:e.code})},b=null;for(let e of n){if(!Be(e.method)){if(!await y.writeLine(JSON.stringify(m(void 0,e.notify,e.params)))){b=v(f||await y.stop(),e.notify);break}continue}let t=h;h+=1;let n=Ga();if(d.set(t,{method:e.method,pm:n}),!await y.writeLine(JSON.stringify(m(t,e.method,e.params)))){d.delete(t),b=v(f||await y.stop(),e.method);break}let r=await n;if(r.exit){b=v(r.exit,e.method);break}let i=r.msg;if("error"in i&&null!==i.error&&void 0!==i.error){if(p[e.method]=null,g.push({id:t,method:e.method,result:null,error:i.error}),!l){let t=Ae(i,"error.message");b=o("rpc",`${e.method}: ${Be(t)?t:JSON.stringify(i.error)}`,{results:p,responses:g});break}}else p[e.method]=i.result,g.push({id:t,method:e.method,result:i.result,error:null})}let A=await y.stop();if(b)return b.durationMs=Date.now()-i,null===b.exitCode&&(b.exitCode=A.code),b;let w=g.filter(e=>null!==e.error);if(w.length>0){let e=w[0],t=Ae(e,"error.message");return{ok:!1,results:p,responses:g,error:`${e.method}: ${Be(t)?t:JSON.stringify(e.error)}`,errorType:"rpc",durationMs:Date.now()-i,exitCode:A.code}}return{ok:!0,results:p,responses:g,error:"",errorType:"",durationMs:Date.now()-i,exitCode:A.code}},e.execCliSession=NR,e.execJsCode=async function(e,t={}){e=o.resolve(e);let n=(await import(s.pathToFileURL(e).href)).default;if(!Ui(n))throw new Error(`the default export of [${e}] is not a function`);return await n(t)},e.execProcess=function(e,t,n={}){if(!Nn(t)&&!Be(t))throw new Error("args is not an effective array or string");let i=Be(t);Be(t)&&(t=[t]);let o=Ae(n,"mode");"spawn"!==o&&"exec"!==o&&"execFile"!==o&&(o="spawn");let a=Ae(n,"cbStdout"),s=Ae(n,"cbStderr"),l=Ae(n,"codeCmd"),c=UR.normalizeCodeCmd(l),u=Ae(n,"useChcp");we(u)||(u=!1);let d=Ae(n,"timeout");d=!Me(d)||d<=0?null:Math.min(d,Ri);let f=Ga();if(!da(o,["spawn","exec","execFile"]))return f.reject(`invalid mode[${o}]`),f;if(null===c)return f.reject(`codeCmd[${l}] is not a supported encoding`),f;let h=n=>{let l=null;try{if("spawn"===o){let n=na(e,1),i=ra(e,1);if('"'===n||'"'===i||"'"===n||"'"===i)throw new Error("prog of spawn doens not need to add quotes");l=r.spawn(e,t,{windowsHide:!0,shell:!1})}else if("exec"===o){let n="";u&&(n="cmd /c chcp 65001>nul &&");let o=e=>(e=String(e),/\s/.test(e)&&!e.includes('"')?`"${e}"`:e),a=o(e),s=i?t[0]:t.map(o).join(" ");l=r.exec(`${n} ${a} ${s} & exit`,{windowsHide:!0,encoding:"buffer"})}else"execFile"===o&&(l=r.execFile(e,t,{windowsHide:!0,encoding:"buffer"}))}catch(e){return void f.reject(e)}let h=c.label;"system"===c.mode?h=n:"auto"===c.mode&&(h="auto");let p=UR.createDecoder(h,{labelSystem:n}),g=UR.createDecoder(h,{labelSystem:n}),m=[],y="auto"===c.mode,v=(e,t,n)=>r=>{let i=r;Buffer.isBuffer(i)||(i=Buffer.from(String(i)));let o=t.write(i);m.push({which:e,text:o,buf:y?i:null}),""!==o&&Ui(n)&&n(o)};l.stdout.on("data",v("out",p,a)),l.stderr.on("data",v("err",g,s));let b=null,A=!1;null!==d&&(b=setTimeout(()=>{A=!0,l&&l.pid&&bR(l.pid).catch(()=>{})},d)),l.on("close",e=>{null!==b&&clearTimeout(b);let t=(()=>{let e=(e,t,n)=>{let r=t.end();""!==r&&(m.push({which:e,text:r,buf:null}),Ui(n)&&n(r))};if(e("out",p,a),e("err",g,s),y){let e=(e,t)=>{if(!t.switched)return;let n=UR.createDecoder(t.label),r=null;for(let t of m)t.which===e&&(t.text=null!==t.buf?n.write(t.buf):"",r=t);let i=n.end();""!==i&&null!==r&&(r.text+=i)};e("out",p),e("err",g)}let t="";for(let e of m)t+=e.text;return t})();A?f.reject(`timeout[${d}ms]:\n${t}`):0!==e?f.reject(`code[${e}]:\n${t}`):f.resolve(t)}),l.on("error",e=>{null!==b&&clearTimeout(b),f.reject(e)})};return"fixed"===c.mode?h(null):UR.getSystemCodePage().then(h).catch(e=>{f.reject(e)}),f},e.execProcessKillPid=bR,e.filepathToTree=function(e,t={}){if(!Nn(e))return{};let n=Ae(t,"delimiter");Be(n)||(n="❯");let r=Ae(t,"bindRoot");Be(r)||(r="");let i=Be(r),o="";o=i?r:"root";let a=Ae(t,"soryItems"),s=An(e,(e,t)=>{"folder"!==e.type&&"file"!==e.type&&(e.type="file");let r=(e=>{let t=ta(e=(e=e.replace(/\\\\/g,"\\")).replace(/\\/g,"/"),"/");return{ss:t,cfp:vo(t,n)}})(e.path);return{ind:t,type:e.type,ss:r.ss,data:Qi(e)}}),l=e=>{let t=or(e),r=[];for(let i=0;i<t;i++){let t=[];for(let n=0;n<=i;n++)t.push(e[n]);let o=vo(t,n);r.push({id:o,name:e[i]})}return r},c=-1,u=[],d={};vn(s,e=>{let t=null;t=[o];let r=null;r=o;let i=or(e.ss)-1;vn(e.ss,(o,a)=>{let s=a<i||"folder"===e.type;t.push(o);let f=null,h=null;a===i&&(f=e.ind,h=e.data);let p=vo(t,n),g=l(t);if(Ne(d,p)){let t=d[p],n="folder"===Ae(t,"_type","");if(!n&&s)throw console.log("kpLv[id]",t),console.log("v",e),new Error(`id[${p}] is unrecognized from a file to folder`);if(!n&&!s)throw console.log("kpLv[id]",t),console.log("v",e),new Error(`id[${p}] get repeat data from two files`);if(n&&!s)throw console.log("kpLv[id]",t),console.log("v",e),new Error(`id[${p}] is unrecognized from a folder to file`);if(Ee(d[p].data)&&Ee(h))throw console.log("kpLv[id]",t),console.log("v",e),new Error(`id[${p}] get repeat data from two folders`);if(null===d[p].data&&Ee(h)){d[p]._indOri=f,d[p].data=h;let e=d[p]._indNormalize,t=u[e];u[e]={...h,type:t.type,path:t.path}}}else{c++;let e=c,n=null;n=s?{_indOri:f,_indNormalize:e,ns:or(t),ts:Qi(t),pathInfors:g,_type:"folder",type:"array",numOfChilren:-1,id:p,parentId:r,text:o,children:[],data:h}:{_indOri:f,_indNormalize:e,ns:or(t),ts:Qi(t),pathInfors:g,_type:"file",type:"node",numOfChilren:-1,id:p,parentId:r,text:o,data:h},d[p]=n,u.push({...Ae(d[p],"data",{}),type:d[p]._type,path:"/"+vo(t,"/")})}r=p})});let f=zR(d);if(f=Da(f,"id"),f=Da(f,"ns"),Ui(a)){let e=[];vn(GR(f,"ns"),(t,n)=>{vn(GR(t,"parentId"),(t,r)=>{let i=a(t,r,n);e=[...e,...i]})}),f=e}let h=[],p=[];vn(f,e=>{"folder"===e._type?h.push(e):p.push(e)});let g=GR(h,"ns"),m=GR(p,"ns"),y=HR(An(h,"ns")),v=HR(An(p,"ns")),b=null;{let e=[o];b=[{_indOri:null,_indNormalize:null,ns:or(e),ts:Qi(e),pathInfors:l(e),_type:"folder",type:"array",numOfChilren:-1,id:o,parentId:"",text:o,children:[],data:null}]}let A={};A[o]="0.children";let w={};w[o]="0";for(let e=2;e<=y;e++){vn(g[e],e=>{let t=Ae(A,e.parentId,"");if(!Be(t))throw console.log("kpPathFd",A),console.log("v",e,e.parentId),new Error(`invalid parentId[${e.parentId}] in folder`);let n=Ae(b,t);if(Ce(n)||yu(b,t,[]),n=Ae(b,t),!Ee(px(n,{id:e.id}))){n.push({...e,children:[]});let r=`${t}.${or(n)-1}`;A[e.id]=`${r}.children`,w[e.id]=r}})}let x=Qi(b),I={};for(let e=2;e<=v;e++){vn(m[e],e=>{let t=Ae(A,e.parentId,"");if(!Be(t))throw console.log("kpPathFd",A),console.log("v",e,e.parentId),new Error(`invalid parentId[${e.parentId}] in file`);let n=Ae(b,t);if(!Ce(n))throw console.log("treeItems",b),console.log("k",t),console.log("v",e),new Error("無預先建置資料夾");if(!Ee(px(n,{id:e.id}))){n.push(e);let r=`${t}.${or(n)-1}`;I[e.id]=r,w[e.id]=r}})}return{treeItems:b,treeItemsFolder:x,kpPath:w,fpsNormalize:u}},e.files2data=function(e){if(!Ce(e))return Promise.reject("invalid files");let t=Ga(),n=An(e,function(e){return{name:e.name,size:e.size,type:e.type}});return ts(e).then(function(e){let r=An(e,function(e){return{b64:e}}),i=JR(n,r);t.resolve(i)}).catch(function(e){t.reject(e)}),t},e.flattenToConn=Fu,e.flattenTree=function(e,t={}){if(Ce(e)){if(0===e.length)return[]}else{if(!Se(e))return[];if(Bn(e))return[]}let n=Ae(t,"bindKey",null);Be(n)||(n="id");let r=Ae(t,"bindChildren",null);Be(r)||(r="children");let i=!1;Se(e)&&(i=!0,e=[e]);let o=[];return Bu(e,(e,t,i)=>{let a=Ae(e,n,null),s=Ae(e,r,null);if(a){let n=function(e){let t=[e[0]];for(let n=1;n<e.length;n++){let i=e[n];t.push(r),t.push(i)}return t}([...i,t]);if(o.push({...e,level:(or(n)-1)/2,nk:n}),s)return s}}),i&&(o=o[0]),o},e.floor=function(e,t=0){return go(t)||(t=0),t=Wi(t),Me(e)?new Kl(e).toDecimalPlaces(t,Kl.ROUND_FLOOR).toNumber():""},e.fsBuildReadStreamText=function(e){if(!xR(e))throw new Error("fp is not a file");let t=Oi(),n=a.createReadStream(e,{encoding:"utf8"});n.on("error",e=>{$i(t,"error",[{fun:"stream",msg:e}],{tag:"fsBuildReadStreamText"})}),process.nextTick(()=>{$i(t,"create",[],{tag:"fsBuildReadStreamText"})});let r=l.createInterface({input:n,crlfDelay:1/0});return r.on("line",e=>{$i(t,"line",[e],{tag:"fsBuildReadStreamText"})}),r.on("error",()=>{}),n.on("close",()=>{$i(t,"close",[],{tag:"fsBuildReadStreamText"})}),t},e.fsBuildWriteStreamText=function(){let e=null;return{create:t=>{let n=Ga();return e=a.createWriteStream(t,{flags:"w",encoding:"utf8"}),e.on("finish",()=>{n.resolve()}),e.on("error",e=>{n.reject(e)}),n},write:t=>{e.write(t+"\n")},end:()=>{let t=Ga();return e.on("close",()=>{t.resolve()}),e.end(),t}}},e.fsCleanFolder=function(e){return ZR(e,{path:o,fs:a})},e.fsCleanFolderCore=ZR,e.fsCopyFile=function(e,t,n={}){return eL(e,t,{path:o,fs:a,...n})},e.fsCopyFileCore=eL,e.fsCopyFolder=function(e,t,n={}){return nL(e,t,{path:o,fs:a,...n})},e.fsCopyFolderCore=nL,e.fsCreateFile=function(e,t,n={}){return aL(e,t,{fs:a,...n})},e.fsCreateFileCore=aL,e.fsCreateFolder=sL,e.fsCreateFolderCore=KR,e.fsDeleteFile=function(e){return lL(e,{fs:a})},e.fsDeleteFileCore=lL,e.fsDeleteFileSafe=async function(e,t={}){return await cL(e,{fs:a,...t})},e.fsDeleteFileSafeCore=cL,e.fsDeleteFolder=dL,e.fsDeleteFolderCore=uL,e.fsDeleteFolderSafe=async function(e,t={}){return await fL(e,{fs:a,...t})},e.fsDeleteFolderSafeCore=fL,e.fsDownloadFile=async function(e,t){return wL(e,t,{fs:a,Readable:c.Readable,pipeline:u.pipeline})},e.fsDownloadFileCore=wL,e.fsEvem=function(e={}){let t=Ae(e,"fd");Be(t)||(t="./_evps");let n=Ae(e,"polling");we(n)||(n=!1);let r=Ae(e,"timeInterval");_i(r)||(r=100),r=Wi(r);let i=Ae(e,"timeBinaryInterval");_i(i)||(i=300),i=Wi(i);let s=Ae(e,"keySys");Be(s)||(s="[::pkg_content::]"),CL(t)||sL(t);let l=SL(t,{polling:n,timeInterval:r,timeBinaryInterval:i});l.on("change",e=>{if("add"!==e.type&&"change"!==e.type)return;let t=IL(e.fp),n="";try{n=a.readFileSync(e.fp,"utf8"),n=za(n)}catch(e){}Ee(n)&&c.emit(t,{[s]:n})});let c=Oi(),u=c.emit;return c.emit=function(e,n){let r=!1;if(Ee(n)&&(r=Ne(n,s)),r){let t=Ae(n,s,null),r=Ae(t,"pkg",""),i=Ae(t,"time",""),o=this;return $i(c,e,[r,i],{tag:"fsEvem",funEmit:(e,...t)=>u.call(o,e,...t)})}((e,n)=>{let r=o.resolve(t,e);ke(n)||(n=ar(n)),a.writeFileSync(r,n,"utf8")})(e,{pkg:n,time:xL()})},c.clear=()=>{l.clear(),dL(t)},c},e.fsExists=function(e){return AR(e,{fs:a})},e.fsExistsCore=AR,e.fsGetFileBasicHash=function(e,t={}){return EL(e,{fs:a,crypto:f,...t})},e.fsGetFileBasicHashCore=EL,e.fsGetFileHash=function(e,t={}){return DL(e,{fs:a,crypto:f,...t})},e.fsGetFileHashCore=DL,e.fsGetFileXxHash=function(e,t={}){return FL(e,{fs:a,...t})},e.fsGetFileXxHashCore=FL,e.fsGetFilesInFolder=function(e,t=1){return NL(e,t,{path:o,fs:a})},e.fsGetFilesInFolderCore=NL,e.fsGetFilesWithHashInFolder=QL,e.fsGetFilesWithHashInFolderCore=TL,e.fsGetFolderBasicHash=function(e,t={}){return RL(e,{path:o,fs:a,crypto:f,...t})},e.fsGetFolderBasicHashCore=RL,e.fsGetFoldersInFolder=function(e,t=1){return LL(e,t,{path:o,fs:a})},e.fsGetFoldersInFolderCore=LL,e.fsIsFile=xR,e.fsIsFileCore=wR,e.fsIsFolder=CL,e.fsIsFolderCore=XR,e.fsMergeFiles=async function(e,t,n={}){return PL(e,t,{fs:a,...n})},e.fsMergeFilesCore=PL,e.fsReadJson=function(e){let t=null,n=IR(e,{fs:a});if(n.error)return n;let r=n.success,i=null;try{i=JSON.parse(r)}catch(e){t=e}return null!==t?{error:t}:{success:i}},e.fsReadText=CR,e.fsReadTextCore=IR,e.fsRenameFile=function(e,t){return OL(e,t,{fs:a})},e.fsRenameFileCore=OL,e.fsRenameFolder=function(e,t){return UL(e,t,{fs:a})},e.fsRenameFolderCore=UL,e.fsSrlog=function(e={}){let n=Ae(e,"fdSys","");Be(n)||(n=o.resolve(),n=n.replaceAll("\\","/"));let r=Ae(e,"fdLog","");Be(r)||(r="./syslog"),CL(r)||sL(r);let i=Ae(e,"dlm","");Be(i)||(i="ꓹ");let s=Ae(e,"useTime",null);we(s)||(s=!0);let l=Ae(e,"useLoc",null);we(l)||(l=!0);let c=Ae(e,"useLocRela",null);async function u(e,n,...o){let c=(()=>{let e=t().format("YYYY-MM-DD");return`${r}/${e}.log`})(),u=An(o,e=>{let t="";return t=Se(e)||Ce(e)?JSON.stringify(e):we(e)?e?"true":"false":Na(e),t}),d="";s&&(d=`[${e}]\n`,a.appendFileSync(c,d,"utf8")),l&&(d=`[${n}]\n`,a.appendFileSync(c,d,"utf8")),d=`${vo(u,`${i} `)}\n\n`,a.appendFileSync(c,d,"utf8")}return we(c)||(c=!0),function(...e){let t="";s&&(t=xL());let r="",i="",o=[];if(l){if(o=ta((new Error).stack,"\n"),vn(o,e=>{if((e=Zo(e)).indexOf("file:")<0)return!0;if(e.indexOf("fsSrlog.mjs")>=0)return!0;return vn(ta(e," "),e=>{if(e.indexOf("file:")>=0)return r=e,!1}),!Be(r)&&void 0}),!Be(r))throw console.log("stackLines",o),new Error("can not parse stackLines");"("===na(r,1)&&(r=ia(r,1)),")"===ra(r,1)&&(r=Qa(r,1));try{r=decodeURIComponent(r)}catch(e){console.log(e)}i=r,i=ia(i,8),i=i.replace(n,"")}let a=[];s&&(a=[...a,`[${t}]`]);let d="";l&&(d=r,c&&(d=i),a=[...a,`[${d}]`]),a=[...a,...e],console.log(...a),u(t,d,...e)}},e.fsSyncFolder=function(e,t,n={}){return zL(e,t,{path:o,fs:a,crypto:f,...n})},e.fsSyncFolderCore=zL,e.fsTask=function(e,t={}){let n=Ae(t,"fdStorage","");Be(n)||(n="./_tkfs");let r=Ae(t,"levelLimit","");_i(r)||(r=1),r=Wi(r);let i=Ae(t,"typeHash","");Be(i)||(i="md5");let o=Ae(t,"timeInterval");sa(o)||(o=6e4),o=Wi(o),o=Math.min(o,Ri),sL(n);let s=Oi(),l=!1,c=`${n}/fpHash.json`,u=`${n}/fpResult.json`,d=async()=>{if(!0===l)return;let t=(()=>{let e={};try{e=za(a.readFileSync(c,"utf8"))}catch(e){}return e})(),n=await(async()=>{let t={};return CL(e)?(vn(await QL(e,r,{type:i}),e=>{t[e.path]=e.hash}),t):t})(),o=An(t,(e,t)=>({path:t,hash:e})),u=An(n,(e,t)=>({path:t,hash:e}));vn($L(o,u,"path").infor,(e,r)=>{if("same"===e)return!0;let i=Ae(t,r,""),o=Ae(n,r,""),u="";u="del"===e?i:o;let d=e,f=r,h=iL(r);l=!0;let p=Ga();return $i(s,"change",[{type:d,fp:f,fn:h,hash:u,pm:p}],{tag:"fsTask",funSettle:e=>{p.reject(e)}}),p.then(()=>{let e=Qi(t);e[f]=n[f],(e=>{try{let t=ar(e);a.writeFileSync(c,t,"utf8")}catch(e){}})(e)}).catch(()=>{}).finally(()=>{l=!1}),!1})},f=()=>{let e={};try{e=za(a.readFileSync(u,"utf8"))}catch(e){}return e},h=(e={})=>{try{let t=ar(e);a.writeFileSync(u,t,"utf8")}catch(e){}},p=!1,g=setInterval(()=>{p||(p=!0,d().catch(()=>{}).finally(()=>{p=!1}))},o);return s.getResult=(e,t)=>{let n=`${e}|${t}`,r=Ae(f(),n,[]);return Ce(r)||console.log(`result for key[${n}] is not an array`),r},s.getAndEliminateResult=(e,t)=>{let n=`${e}|${t}`,r=f(),i=Ae(r,n,[]);return Ce(i)||console.log(`result for key[${n}] is not an array`),r=((e,t)=>{let n={};return vn(e,(e,r)=>{Ae(ta(r,"|"),0,"")!==t&&(n[r]=e)}),n})(r,e),h(r),i},s.setResult=(e,t,n)=>{Ce(n)||(console.log("result is not an array, default to []"),n=[]);let r=`${e}|${t}`,i=f();i[r]=n,h(i)},s.clear=()=>{clearInterval(g)},s},e.fsTaskCp=function(e,t,n={}){CL(e)||sL(e),CL(t)||sL(t);let r=`${e}/fpHash.json`,i=`${t}/fpHash.json`,o=e=>{let t={};try{t=za(a.readFileSync(e,"utf8"))}catch(e){}return t},s=(e,t)=>{try{let n=ar(t);a.writeFileSync(e,n,"utf8")}catch(e){}},l=(e,t)=>Ae(o(e),t,""),c=(e,t,n)=>{let r=o(e);r[t]=n,s(e,r)},u=(e,t)=>{let n=o(e);Ne(n,t)&&delete n[t],s(e,n)},d=()=>o(r),f=e=>s(r,e),h=e=>l(r,e),p=()=>o(i),g=e=>s(i,e),m=e=>l(i,e),y=(e,t)=>c(i,e,t),v=e=>u(i,e),b=e=>{let t=[];return vn(e,(e,n)=>{t.push({fp:n,hash:e})}),t},A={buildSrc:()=>{let e=Oi();return e.set=(t,n)=>{((e,t)=>{c(r,e,t)})(t,n),$i(e,"set",[{type:"set",fp:t,hash:n}],{tag:"fsTaskCp"})},e.get=h,e.remove=t=>{(e=>{u(r,e)})(t),$i(e,"remove",[{type:"remove",fp:t}],{tag:"fsTaskCp"})},e.readKp=d,e.writeKp=f,e},buildTar:()=>{let e=Oi(),t=Pu(300),n=qL(r);return n.on("change",n=>{t(()=>{(async()=>{let t=d();if(!Ee(t))return"no src";let n=p(),r=b(t),i=$L(b(n),r,"fp",{withInfor:!1}),o=Ga();return o.then(e=>{g(t)}).catch(()=>{}),$i(e,"change",[{kpSrc:t,kpTar:n,kpCmp:i,pm:o}],{tag:"fsTaskCp",funSettle:e=>{o.reject(e)}}),o})().catch(()=>{})})}),e.set=y,e.get=m,e.remove=v,e.readKp=p,e.writeKp=g,e.clear=n.clear,e}};return A},e.fsTreeFolder=function(e,t=1){return ML(e,t,{path:o,fs:a})},e.fsTreeFolderCore=ML,e.fsTreeFolderWithHash=function(e,t=1,n={}){return HL(e,t,{path:o,fs:a,crypto:f,...n})},e.fsTreeFolderWithHashCore=HL,e.fsWatchFile=qL,e.fsWatchFolder=SL,e.fsWriteJson=function(e,t,n={}){let r=null;if(!Se(t)&&!Ce(t))return{error:"inp is not an object or array"};let i=Ae(n,"useFormat",null);we(i)||(i=!1);let o="";try{o=i?JSON.stringify(t,null,2):JSON.stringify(t)}catch(e){r=e}return null!==r?{error:r}:jL(e,o,{fs:a})},e.fsWriteText=function(e,t){return jL(e,t,{fs:a})},e.fsWriteTextCore=jL,e.genGradientColor=function(e){if(Mn(e))return{};let t;try{t=mu.toRgba(e)}catch(e){return{}}function n(e,t){return e.a=t,mu.toRgbaString(e)}return{linearGradient:{x1:0,x2:0,y1:0,y2:1},stops:[[0,n(t,.4)],[1,n(t,.9)]]}},e.genID=Wu,e.genIDSeq=function(){return GL()},e.genPm=Ga,e.getBufferSize=ZL,e.getClearPathName=rL,e.getCsvStrFromData=eP,e.getDataFromExcelFileU8Arr=aP,e.getDataFromExcelFileU8ArrDyn=async function(e,t,n){let r=await aP(e,t);return""!==Ae(r,"error","")?Promise.reject(r.error):r},e.getEnv=function(){let e=Xa(),t="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope;return e=e||t,{isBrowser:e,isWebWorker:t,isNode:"undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node}},e.getErrorMessage=AL,e.getExcelU8ArrFromData=async function(e,t="data"){if(!Nn(e)){return{error:"no data"}}Be(t)||(t="data");let n=null,r=KS(e,t);return Ne(r,"error")?r:(n=await uR(r),Ne(n,"error"),n)},e.getExcelU8ArrFromWorkbook=uR,e.getExcelWorkbookFromData=KS,e.getExcelWorkbookFromWorksheet=XS,e.getExcelWorksheetFromData=cr,e.getFileAccept=yx,e.getFileBasicHash=RP,e.getFileHash=async function(e,t={}){if(!Ja(e)&&!QP(e))return console.log("inp",e),Promise.reject("inp is not a Blob or File");let n=Ae(t,"type","");Be(n)||(n="sha512");let r=Ae(t,"chunkSize");return Me(r)||(r=67108864),r=xr(r),Ne({MD5:"md5","SHA-1":"sha1","SHA-256":"sha256","SHA-384":"sha384","SHA-512":"sha512",md5:"md5",sha1:"sha1",sha256:"sha256",sha384:"sha384",sha512:"sha512",xxhash64:"xxhash64"},n)?"xxhash64"===n?LP(e,t):RP(e,t):Promise.reject(`type[${n}] must be one of [ 'md5', 'sha1', 'sha256', 'sha384', 'sha512', 'xxhash64' ]`)},e.getFileName=iL,e.getFileNameExt=function(e){if(!Be(e))return"";let t=Lo(iL(e),".");if(or(t)<=1)return"";let n="";try{n=Aa(t)}catch(e){}return n},e.getFileTrueName=IL,e.getFileType=mx,e.getFileXxHash=LP,e.getGlobal=tc,e.getObjSize=function(e){let t=0,n=function e(n){if(null!=n)switch(typeof n){case"number":t+=8;break;case"string":t+=2*n.length;break;case"boolean":t+=4;break;case"object":let r=Object.prototype.toString.call(n).slice(8,-1);if("Object"===r||"Array"===r)for(let t in n)n.hasOwnProperty(t)&&e(n[t]);else t+=2*n.toString().length}return t}(e),r=function(e){return e<1024?e+" bytes":e<1048576?(e/1024).toFixed(3)+" KiB":e<1073741824?(e/1048576).toFixed(3)+" MiB":(e/1073741824).toFixed(3)+" GiB"}(n);return{int:n,str:r}},e.getPathParent=oL,e.getTimeBetween=function(e,t,n="days"){let r=$P(n);if(""===r)return[];let i=HP(e,n),o=HP(t,n);return null===i||null===o||e>=t?[]:An(UP(o.diff(i,n)+1),function(e){return i.clone().add(e,n).format(r)})},e.getTimeFromUnit=$P,e.getTimeHp=zP,e.getTimeObject=HP,e.getTimeRange=function(e,n){if(!MI(e))return"無起始時間";if(void 0===n&&(n=e),!MI(n))return"結束時間格式錯誤";let r=t(e,"YYYY-MM-DDTHH:mm:ss"),i=t(n,"YYYY-MM-DDTHH:mm:ss"),o=r.format("YYYY-MM-DD"),a=i.format("YYYY-MM-DD");if(o===a){let t=i.format("HH:mm");if(e===n)return qP(e)+" 至 無";if(e<n)return qP(e)+" 至 "+t;if(e>n)return qP(e)+" 至 "+t+" (起始時間大於結束時間)"}else{if(o<a)return qP(e)+" 至 "+qP(n);if(o>a)return qP(e)+" 至 "+qP(n)+" (起始時間大於結束時間)"}return""},e.getUserAgent=jP,e.getUserAgentDyn=async function(e=null,t){return Nn(t)||(t=["https://cdn.jsdelivr.net/npm/ua-parser-js@2.0.3/dist/ua-parser.min.js"]),await uc(t),jP(e)},e.getltdtkeys=zn,e.haskey=Ne,e.html2str=async function(e){if(!Be(e))return"";let t=await async function(){let e="htmlToText";if(Ui(Ae(y,e)))return y;if(Ui(Ae(y,["default",e])))return y.default;let t=globalThis,n=null;if(await gs(()=>(n=Ae(t,"ht",null),Ee(n)),{attemptNum:4e3,timeInterval:50}),Ui(Ae(n,e)))return n;if(Ui(Ae(n,["default",e])))return n.default;throw console.log("ht",y,"g.ht",t.ht),new Error("invalid ht, g.ht, g.ht.default, use script for import")}();return t.htmlToText(e,{wordwrap:!1,selectors:[{selector:"script",format:"skip"},{selector:"style",format:"skip"}]})},e.htmlDecode=Ou,e.htmlEncode=os,e.importResources=uc,e.interp1=function(e,t,n={}){if(!Ce(e))return{err:"ps is not an array"};{let e=!Me(t),n=!Ce(t);if(e&&n)return{err:"px is not a number or an array"}}let r=function(e,t={}){if(or(e)<=0)return[];let n=Ae(t,"keyX");Be(n)||(n="x");let r=Ae(t,"keyY");Be(r)||(r="y");let i=[];return vn(e,e=>{let t=null,o=null;Ce(e)&&or(e)>=2?(t=Ae(e,0),o=Ae(e,1)):(t=Ae(e,n,null),o=Ae(e,r,null)),Me(t)&&Me(o)&&(t=vr(t),o=vr(o),i.push({x:t,y:o}))}),i}(e,n);if(Ae(r,"err"))return Ae(r,"err");if(0===or(r))return{err:"ps(length=0) is not an effective array",ps:e,psEff:r};if(1===or(r))return{err:"ps(length=1) is one point only",ps:e,psEff:r};let i=function(e){let t=!0,n=!0;for(let r=1;r<or(e);r++){let i=e[r-1],o=e[r];if(t&&i.x>o.x&&(t=!1),n&&i.x<o.x&&(n=!1),i.x===o.x)return{err:`x can not be equal: i=${r}, x=${i.x}`}}return t?VP:n?YP:"no"}(r);if("no"===i)return{err:"psEff is not increasing or decreasing"};i===YP&&(i=VP,r=ka(r));let o=!Ce(t);o&&(t=[t]);let a=function(e,t={}){if(or(e)<=0)return[];let n=Ae(t,"keyX");Be(n)||(n="x");let r=[];return vn(e,e=>{let t=null;t=Me(e)?vr(e):Ce(e)&&or(e)>=1?Ae(e,0):Ae(e,n,null),Me(t)&&(t=vr(t),r.push({x:t}))}),r}(t,n),s=Ae(n,"mode");"linear"!==s&&"stairs"!==s&&"blocks"!==s&&(s="linear");let l,c=An(a,(e,t)=>{let i=Ae(e,"x"),o=null;try{"linear"===s?o=function(e,t){let n=GP(e,t);if(n!==WP)return n;let r=null;for(let n=1;n<or(e);n++){let i=e[n-1],o=e[n];if(i.x<=t&&t<=o.x){r=((t-i.x)*o.y+(o.x-t)*i.y)/(o.x-i.x);break}}return null===r?{err:_P}:r}(r,i):"blocks"===s?o=function(e,t){let n=GP(e,t);if(n!==WP)return n;let r=null;for(let n=1;n<or(e);n++){let i=e[n-1],o=e[n],a=i.x,s=o.x;if(a<=t&&t<=s){r=o.y;break}}return null===r?{err:_P}:r}(r,i):"stairs"===s&&(o=function(e,t,n={}){let r=Ae(n,"xMin");if(ua(r)){if(r>e[0].x)return{err:`xMin=${r} > ps[0].x=${e[0].x}`};r===e[0].x||(e=[{x:r,y:e[0].y},...e])}let i=Ae(n,"xMax");if(ua(i)){if(i<e[or(e)-1].x)return{err:`xMax=${i} < ps[size(ps)-1].x=${e[or(e)-1].x}`};if(i===e[or(e)-1].x);else{let t={x:i,y:e[or(e)-1].y};e=[...e,t]}}let o=GP(e,t);if(o!==WP)return o;let a=null;for(let n=0;n<or(e);n++){let r=Ae(e,n-1,null),i=Ae(e,n,null),o=Ae(e,n+1,null),s=i.x;r&&(s=(r.x+i.x)/2);let l=i.x;if(o&&(l=(o.x+i.x)/2),s<=t&&t<=l){a=i.y;break}}return null===a?{err:_P}:a}(r,i,n))}catch(e){o={err:e.toString()}}return o});return l=o?c[0]:c,l},e.isDate=tP,e.isDev=function(){return!!location&&Ya(location.href,"localhost")},e.isEle=Du,e.isEleExistByID=function(e){return!!Be(e)&&!(null===document.getElementById(e))},e.isEmail=function(e){return!!Be(e)&&(!(e.length>254)&&(!(e.indexOf("@")>64)&&XP.test(e)))},e.isErr=function(e){return KP(e)},e.isIE=nd,e.isNarrow=function(e){if(!Xa())return!1;let t=window.innerWidth>0&&window.innerWidth<=1024,n=!1;if(e){let t=Ae(e,"clientWidth",0);n=t>0&&t<=700}return t||n},e.isStrHasCapital=nO,e.isStrHasLetter=rO,e.isStrHasLowerCase=iO,e.isStrHasNumber=oO,e.isStrHasSpace=aO,e.isStrHasSymbol=sO,e.isUserIdentify=function(e){let t=Ga();if(!Be(e))return t.reject("身份證字號非有效字串"),t;if(10!==e.length)return t.reject("身份證字號長度非10位"),t;if(isNaN(e.substring(1,10))||!/^[A-Z]$/.test(e.substring(0,1)))return t.reject("身份證格式錯誤,字首需大寫英文"),t;e="ABCDEFGHJKLMNPQRSTUVXYWZIO".indexOf(e.substring(0,1))+10+""+e.substring(1,10);let n=parseInt(e.substring(0,1))+9*parseInt(e.substring(1,2))+8*parseInt(e.substring(2,3))+7*parseInt(e.substring(3,4))+6*parseInt(e.substring(4,5))+5*parseInt(e.substring(5,6))+4*parseInt(e.substring(6,7))+3*parseInt(e.substring(7,8))+2*parseInt(e.substring(8,9))+parseInt(e.substring(9,10)),r=parseInt(e.substring(10,11));return n%10!=0&&10-n%10!==r?(t.reject("非有效身份證"),t):(t.resolve(),t)},e.isUserName=function(e){let t=Ga();return Be(e)?(t.resolve(),t):(t.reject("請填入姓名"),t)},e.isUserPw=function(e,t={}){let n=[],r=Ae(t,"useKeyForError",null);we(r)||(r=!1);let i=Ae(t,"useOnlyOneError",null);if(we(i)||(i=!1),ke(e)||(r?n.push("keyInvalidPassword"):n.push("密碼非有效字串")),or(n)>0)throw new Error(n[0]);let o=Ae(t,"numLenMin","");(!Ir(o)||Wi(o)<0)&&(o=8),o=Wi(o);let a=Ae(t,"numLenMax","");if((!Ir(a)||Wi(a)<0)&&(a=30),a=Wi(a),o>a&&(r?n.push("keyLimNumLenMinOrMax"):n.push("設定密碼最小長度大於最大長度")),or(n)>0)throw new Error(n[0]);let s=Ae(t,"noSpace",null);if(we(s)||(s=!0),s&&(aO(e)&&(r?n.push("keyLimHasSpace"):n.push("密碼不可包含空白字元")),i&&or(n)>0))throw new Error(n[0]);let l=Ae(t,"onlyAscii",null);if(we(l)||(l=!0),l&&(/[^\x20-\x7e]/.test(e)&&(r?n.push("keyLimNonAsciiChar"):n.push("密碼僅允許使用英文大小寫、數字及特殊符號")),i&&or(n)>0))throw new Error(n[0]);if(or(e)<o&&(r?n.push("keyLimNumLenMin"):n.push(`密碼長度須大於等於${o}個字元`)),i&&or(n)>0)throw new Error(n[0]);if(or(e)>a&&(r?n.push("keyLimNumLenMax"):n.push(`密碼長度須小於等於${a}個字元`)),i&&or(n)>0)throw new Error(n[0]);let c=Ae(t,"requireLetter",null);we(c)||(c=!1);let u=Ae(t,"requireUppercase",null);we(u)||(u=!0);let d=Ae(t,"requireLowercase",null);we(d)||(d=!0);let f=Ae(t,"requireDigit",null);we(f)||(f=!0);let h=Ae(t,"requireSpecial",null);if(we(h)||(h=!0),c&&!rO(e)&&(r?n.push("keyLimRequireLetter"):n.push("密碼須包含至少一個英文字母")),i&&or(n)>0)throw new Error(n[0]);if(u&&!nO(e)&&(r?n.push("keyLimRequireUppercase"):n.push("密碼須包含至少一個大寫英文字母")),i&&or(n)>0)throw new Error(n[0]);if(d&&!iO(e)&&(r?n.push("keyLimRequireLowercase"):n.push("密碼須包含至少一個小寫英文字母")),i&&or(n)>0)throw new Error(n[0]);if(f&&!oO(e)&&(r?n.push("keyLimRequireDigit"):n.push("密碼須包含至少一個數字")),i&&or(n)>0)throw new Error(n[0]);if(h&&!sO(e)&&(r?n.push("keyLimRequireSpecial"):n.push("密碼須包含至少一個特殊符號")),i&&or(n)>0)throw new Error(n[0]);let p=Ae(t,"forbiddenChars",null);if(Ce(p)||(p=[]),or(p)>0){for(let t of p)if(e.includes(t)){if(r){n.push("keyLimForbiddenChar");break}n.push(`密碼不可包含字元:${t}`)}if(i&&or(n)>0)throw new Error(n[0])}let g=Ae(t,"commonPasswordBlacklist",null);if(Ce(g)||(g=hO),or(g)>0){let t=e.toLowerCase();if(g.some(e=>ke(e)&&t===e.toLowerCase())&&(r?n.push("keyLimCommonPassword"):n.push("此密碼為常見弱密碼,不允許使用")),i&&or(n)>0)throw new Error(n[0])}let m=Ae(t,"account",""),y=Ae(t,"noConsecutiveCharsFromAccount",null);we(y)||(y=!1);let v=Ae(t,"consecutiveCharsMinMatch","");if(_i(v)||(v=3),v=Wi(v),y&&ke(m)&&or(m)>=v){let t=[...m.toLowerCase()],o=e.toLowerCase(),a=!1;for(let e=0;e<=t.length-v;e++){let n=t.slice(e,e+v).join("");if(o.includes(n)){a=!0;break}}if(a&&(r?n.push("keyLimConsecutiveCharsFromAccount"):n.push(`密碼不可包含與帳號相同之${v}個以上連續字元`)),i&&or(n)>0)throw new Error(n[0])}if(or(n)>0)throw new Error(n.join(" | "));return!0},e.isWindow=Xa,e.isab=xe,e.isarr=Ce,e.isarr0=Dn,e.isarr1=JP,e.isbigint=Ma,e.isblob=Ja,e.isbol=we,e.isday=Lu,e.isearr=Nn,e.iseobj=Ee,e.iser=Mn,e.isernot=dx,e.isestr=Be,e.isfile=QP,e.isfun=Ui,e.isint=Ir,e.ismonth=ur,e.isn0int=ZP,e.isn0num=eO,e.isnan=De,e.isnbr=Fe,e.isnint=VS,e.isnnum=function(e){return!!Me(e)&&xr(e)<0},e.isnull=kn,e.isnum=Me,e.isobj=Se,e.isobj0=Bn,e.isp0int=go,e.isp0num=tO,e.ispint=_i,e.ispm=ps,e.ispnum=sa,e.isstr=ke,e.isstr0=Fn,e.istime=MI,e.istimeTZ=fO,e.istimems=lO,e.istimemsTZ=dO,e.isu16arr=KL,e.isu8arr=ss,e.isundefined=En,e.j2o=za,e.judge=function(e,t,n,r={}){if(!Me(e))throw new Error("x1 is not a number");if(!Me(n))throw new Error("x2 is not a number");let i=Ae(r,"withPreciseNum");if(we(i)||(i=!0),i&&(e=mR(e),n=mR(n)),"==="===t)return e===n||pO(e,n);if("!=="===t)return function(e,t){return!pO(e,t)}(e,n);if(">="===t)return e===n||function(e,t){return new Kl(e).gte(t)}(e,n);if(">"===t)return function(e,t){return new Kl(e).gt(t)}(e,n);if("<="===t)return e===n||function(e,t){return new Kl(e).lte(t)}(e,n);if("<"===t)return function(e,t){return new Kl(e).lt(t)}(e,n);throw console.log(t),new Error(`invalid op[${t}]`)},e.keysmat2ltdt=gO,e.ltdt2vrtsable=function(e,t=[],n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:[];if(!Nn(e))return i("invalid ltdt");if(!Ce(t))return i("invalid mergerowkeys");let o=!1;if(vn(e,function(e){Ee(e)||(o=!0)}),o)return i("invalid ltdt, every element must be an effective object");let a=zn(e),s=[];vn(e,function(e){let t={};vn(a,function(n){t[n]={value:e[n].value,style:e[n].style,rowspan:1}}),s.push(t)});let l=ka(s),c=or(l);vn(a,function(e){if(da(e,t)){let t=Ki(0,c,0),n=Ki(0,c,0),r=Ki(1,c+1,0);vn(l,function(i,o){if(o>0){ca(l[o-1][e].value,l[o][e].value)&&(t[o-1]=1,t[o]=1,r[o]=r[o-1]+1),1===t[o-1]&&1===t[o]&&(n[o-1]=0,n[o]=1)}}),vn(l,function(i,o){1===t[o]&&(1===n[o]?l[o][e].rowspan=r[o]:l[o][e].rowspan=null)})}});let u=ka(l);return r?{state:"success",msg:u}:u},e.ltdtDiff=function(e,t,n={}){if(!Ce(e))return{};if(!Ce(t))return{};if(0===or(e)&&0===or(t))return{};let r=Ae(n,"empty");Be(r)||(r="∗empty∗");let i=zn(e),o=zn(t),a=mO(i,o),s={};vn(a,(e,t)=>{s[t]=e});let l=Ko(sr(e,a,{empty:r}),sr(t,a,{empty:r}),{...n,mode:"matrix"});return l.dfs=An(l.dfs,e=>{let t={};vn(e,e=>{e.k=s[e.k],t[e.k]=e});let n={};return vn(a,e=>{n[e]=t[e]}),n}),l},e.ltdtDiffByKey=$L,e.ltdtkeys2mat=sr,e.ltdtkeysheads2mat=lr,e.ltdtmapping=function(e,t,n=""){if(!Nn(e))return[];if(!Nn(t))return[];let r=An(e,e=>hR(e,t,n));return r},e.ltdtmerge=JR,e.ltdtpick=function(e,t){if(!Nn(e))return[];if(!Nn(t))return[];let n=An(e,e=>pR(e,t));return n},e.ltdtpull=function(e,t,n){return Ce(e)&&Ce(t)&&Be(n)&&gn(e,e=>Se(e))?0===t.length?e:gn(t,e=>Se(e))?vO(e,t,n):[]:[]},e.mat2ltdt=function(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:[];if(!Nn(e))return r("invalid mat");if(e.length<=1)return r("invalid mat, at least 2 rows are required");let i=!1;if(vn(e,function(e){Nn(e)||(i=!0)}),i)return r("invalid mat, every row must be an effective array");var o,a;let s=gO(Yo(e)[0],(a=null==(o=e)?0:o.length)?bo(o,1,a):[],{returnWithStateAndMsg:!0});return"error"===s.state?r(`keysmat2ltdt: ${s.msg}`):n?s:s.msg},e.matConcat=function(e,t){if(!Ce(e))return[];if(!Ce(t))return[];if(0===or(e)&&0===or(t))return[];let n=or(e),r=or(Ae(e,0,[])),i=or(t),o=or(Ae(t,0,[])),a=[],s=Math.max(n,i);for(let n=0;n<s;n++){let i=[],s=-1;for(let t=0;t<r;t++){s++;let r=Ae(e,`${n}.${t}`,null);i[s]=r}for(let e=0;e<o;e++){s++;let r=Ae(t,`${n}.${e}`,null);i[s]=r}a[n]=i}return a},e.matDiff=function(e,t,n={}){return Ce(e)&&Ce(t)?0===or(e)&&0===or(t)?{}:Ko(e,t,{...n,mode:"matrix"}):{}},e.matat=function(e,t,n){return Nn(e)?An(e,function(e){return mo(e,t,n)}):[]},e.now2str=xL,e.now2strp=function(){if(!Ui(t))throw new Error("invalid dayjs");return t().format("YYYYMMDDHHmmss")},e.nowDay2str=function(){if(!Ui(t))throw new Error("invalid dayjs");return t().format("YYYY-MM-DD")},e.nowms2str=function(){if(!Ui(t))throw new Error("invalid dayjs");return t().format("YYYY-MM-DDTHH:mm:ss.SSSZ")},e.nowms2strp=function(){if(!Ui(t))throw new Error("invalid dayjs");return t().format("YYYYMMDDHHmmssSSS")},e.o2j=ar,e.obj2b64=function(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:"",i="";try{let t=ar(e,!1,{returnWithStateAndMsg:!0});if("error"===t.state)return r(`o2j: ${t.msg}`);let n=bO(t.msg,{returnWithStateAndMsg:!0});if("error"===n.state)return r(`str2b64: ${n.msg}`);i=n.msg}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.obj2pb64=function(e,t,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(void 0===e)return i("invalid data");if(!Be(t))return i("invalid key");let o="";try{let n=ar({data:e},!1,{returnWithStateAndMsg:!0});if("error"===n.state)return i(`o2j: ${n.msg}`);o=AO(n.msg,t,!0)}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.obj2str=function(e,t="Uint8Array",n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(En(e))return i("invalid data");ke(t)?t=[t]:Ce(t)||(t=["Uint8Array"]);let o="";try{o=JSON.stringify(e,function(e,n){return n=NO.escape(n),t.indexOf("Uint8Array")>=0&&(n=NO.u8arr2b64(n)),t.indexOf("Uint16Array")>=0&&(n=NO.u16arr2b64(n)),n})}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.obj2stru8arr=TO,e.obj2u8arr=function(e,t={}){let n=[],r=new Uint8Array,i=Ae(t,"returnWithStateAndMsg",null);we(i)||(i=!1);let o=e=>i?{state:"error",msg:e}:new Uint8Array;if(!JP(e)&&!Ee(e))return o("invalid data, data is not an effective object or a non-empty array");let a=[],s=[];function l(e){a.push(ZL(e)),s.push(e)}try{let t=TO(e,{returnWithStateAndMsg:!0});if("error"===t.state)return o(`obj2stru8arr: ${t.msg}`);let i=t.msg;l(RO(i.results)),vn(i.binarys,e=>{l(e)});let c=a,u=RO(JSON.stringify(c)),d=new Uint8Array(8);ds(ZL(u),d),n.push(d),n.push(u),vn(s,e=>{n.push(e)}),r=LO(n)}catch(e){return o(e.toString())}return i?{state:"success",msg:r}:r},e.objSortBy=PO,e.objSortByKeys=function(e,t){if(!Ee(e))return{};if(!Nn(t))return{};let n={};return vn(t,(e,t)=>{n[e]=t}),PO(e,(e,t)=>Ae(n,t,0))},e.oo=function(e){if(void 0!==e)return za(ar(e))},e.openLink=function(e){if(!Be(e))return;let t=document.createElement("a");t.href=e,t.target="_blank",document.body.appendChild(t),t.click(),document.body.removeChild(t)},e.pb642obj=function(e,t,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!Be(e))return i("invalid b64");if(!Be(t))return i("invalid key");let o=null;try{if(o=za(Xr(e,t,!0)).data,void 0===o)return i("can not decrypt b64 with key, or the decrypted data is invalid")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.pm2resolve=_S,e.pmChain=function(e,t=null){if(!Ce(e)){let e=Ga();return e.reject("pms is not an array"),e}return e.reduce((e,t)=>e.then(t),Promise.resolve(t))},e.pmConvertResolve=WS,e.pmDebounce=function(e=300){return new function(e){let t=[],n=null,r=null,i="wait";return _i(e)||(e=300),e=Wi(e),function(o,...a){Ui(o)?((null===r||"wait"===i)&&(r=Date.now()),t.push({func:o,input:a,output:null}),null===n&&"wait"===i&&(n=setInterval(()=>{if(null===r)throw new Error("invalid tLast");if("wait"!==i)return;if("wait"===i&&0===t.length)return clearInterval(n),n=null,void(r=null);let o=Date.now();if(o-r>e){i="doing",r=o;let e=t.pop();t=[];let n=e.func(...e.input);ps(n)?n.then(t=>{e.output=t}).catch(t=>{e.output={err:t}}).finally(()=>{i="wait",r=Date.now()}):(e.output=n,i="wait")}"wait"===i&&0===t.length&&(clearInterval(n),n=null,r=null)},20))):console.log("func is not a function")}}(e)},e.pmHook=OO,e.pmHookReject=function(e,t=()=>{}){return Ui(e)?(Ui(t)||(t=()=>{}),OO(e,e=>{if("afterCatch"===e.mode)return t(e.data)})):null},e.pmIni=function(){return Promise.resolve()},e.pmInvResolve=function(e,t={}){if(!ps(e))throw new Error("pm is not a promise");let n=Ae(t,"thenExtractData");we(n)||(n=!1);let r=Ga();return e.then(e=>{n&&(e=Ae(e,"data"));let t=Ae(e,"state",""),i=Ae(e,"msg",{});"success"===t?r.resolve(i):"cancelled"===t?r.reject({reason:"cancelled"}):r.reject(i)}).catch(e=>{r.reject(e)}),r},e.pmKeyMutex=function(){return new function(){let e=new Map,t=new Map;return async(n,r)=>{let i=(e.get(n)||Promise.resolve()).then(async()=>await r(),async()=>await r());e.set(n,i.catch(()=>{})),t.set(n,(t.get(n)||0)+1);try{return await i}finally{let r=t.get(n)-1;r<=0?(t.delete(n),e.delete(n)):t.set(n,r)}}}},e.pmMap=function(e,t,n=0){let r={},i=!1,o=Ga();if(!Ce(e)&&!Se(e))return o.reject("rs is not an array or object"),o;if(0===or(e))return o.resolve([]),o;let a=!1;if(Se(e)){a=!0;let t=[];vn(e,(e,n)=>{t.push({k:n,v:e})}),e=t}let s=YS(n);return s.on("message",function(n){if(i)return;let l,c=s.get();if(Ui(t)){let e=c.key,n=c.value;if(a&&(e=c.value.k,n=c.value.v),l=t(n,e),!ps(l))throw new Error("return of fun is not a promise")}else l=c.value;l.then(e=>{r[c.key]=e}).catch(e=>{i=!0,s.clear(),o.reject(e)}).finally(()=>{s.cb(),or(r)===or(e)&&o.resolve(zR(r))})}),vn(e,(e,t)=>{s.push({key:t,value:e})}),o},e.pmQueue=GS,e.pmSeries=ac,e.pmThrottle=function(){let e=Oi(),t=[],n=null,r=!1;return function(i,...o){let a=Ga();if(!Ui(i))return void console.log("func is not a function");let s=Wu();return t.push({id:s,func:i,input:o}),null===n&&(n=setInterval(async()=>{if(r)return;r=!0;let i=t.pop();for(let n=0;n<t.length;n++){let r=t[n].id,i={state:"cancelled"};e.emit(r,i)}if(t=[],i){let t,n=i.id;t=Ui(i.func)?await _S(i.func)(...i.input):{state:"error",msg:"fun is not a function"},e.emit(n,t)}r=!1,r||0!==t.length||(clearInterval(n),n=null)},20)),e.once(s,e=>{"success"===e.state?a.resolve(e.msg):"cancelled"===e.state?a.reject({reason:"cancelled"}):a.reject(e.msg)}),a}},e.pmTimeout=async function(e,t,n={}){if(!ps(e))throw new Error("invalid pm");if(!go(t))throw new Error(`invalid ms[${t}]`);t=Math.min(t,Ri);let r=Ae(n,"label",null);Be(r)||(r="");let i,o=`timeout[${t}ms]`;Be(r)&&(o=`${r} ${o}`);let a=Ga();return i=setTimeout(()=>{let e=new Error(o);e.code="TIMEOUT",e.timeout=t,a.reject(e)},t),Promise.race([e,a]).finally(()=>clearTimeout(i))},e.preciseNum=mR,e.pseudoRandom=HO,e.pseudoRandomIntRange=function(e=0,t=100,n="start1"){if(Ir(e)||(e=0),e=Wi(e),Ir(t)||(t=100),e>(t=Wi(t)))throw new Error(`vstart[${e}] > vend[${t}]`);let r=HO(n)*(t-e+1)+e;return r=Math.floor(r),r},e.pseudoRandomIntsNdpRange=function(e=0,t=100,n,r="start1"){if(Ir(e)||(e=0),e=Wi(e),Ir(t)||(t=100),t=Wi(t),_i(n)||(n=1),n=Wi(n),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let i=HO(r,!0),o=[],a=t-e;for(let n=0;n<=a;n++){let n=i()*(t-e+1)+e;n=Math.floor(n),o.push(n)}let s=$a(o,{returnIndex:!0});return s=Yo(s,n),s},e.pseudoRandomIntsRange=function(e=0,t=100,n,r="start1"){if(Ir(e)||(e=0),e=Wi(e),Ir(t)||(t=100),t=Wi(t),_i(n)||(n=1),n=Wi(n),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let i=HO(r,!0),o=[];for(let r=1;r<=n;r++){let n=i()*(t-e+1)+e;n=Math.floor(n),o.push(n)}return o},e.pseudoRandomRange=function(e=0,t=1,n="start1"){if(Me(e)||(e=0),e=xr(e),Me(t)||(t=1),e>(t=xr(t)))throw new Error(`vstart[${e}] > vend[${t}]`);return HO(n)*(t-e)+e},e.pseudoRandomsRange=function(e=0,t=1,n=1,r="start1"){if(Me(e)||(e=0),e=xr(e),Me(t)||(t=1),t=xr(t),_i(n)||(n=1),n=Wi(n),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let i=HO(r,!0),o=[];for(let r=1;r<=n;r++){let n=i()*(t-e)+e;o.push(n)}return o},e.queue=YS,e.random=qO,e.randomIntRange=function(e=0,t=100){if(Ir(e)||(e=0),e=Wi(e),Ir(t)||(t=100),e>(t=Wi(t)))throw new Error(`vstart[${e}] > vend[${t}]`);let n=qO()*(t-e+1)+e;return n=Math.floor(n),n},e.randomIntsNdpRange=function(e=0,t=100,n){if(Ir(e)||(e=0),e=Wi(e),Ir(t)||(t=100),t=Wi(t),_i(n)||(n=1),n=Wi(n),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let r=function(e,t,n){return t=(n?pn(e,t,n):void 0===t)?1:wr(t),(v(e)?GO:JO)(e,t)}(Ki(e,t+1),n);return r},e.randomIntsRange=function(e=0,t=100,n){if(Ir(e)||(e=0),e=Wi(e),Ir(t)||(t=100),t=Wi(t),_i(n)||(n=1),n=Wi(n),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let r=[];for(let i=1;i<=n;i++){let n=qO()*(t-e+1)+e;n=Math.floor(n),r.push(n)}return r},e.randomRange=function(e=0,t=1){if(Me(e)||(e=0),e=xr(e),Me(t)||(t=1),e>(t=xr(t)))throw new Error(`vstart[${e}] > vend[${t}]`);return qO()*(t-e)+e},e.randomsRange=function(e=0,t=1,n=1){if(Me(e)||(e=0),e=xr(e),Me(t)||(t=1),t=xr(t),_i(n)||(n=1),n=Wi(n),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let r=[];for(let i=1;i<=n;i++){let n=qO()*(t-e)+e;r.push(n)}return r},e.rang=function(e,t,n=2){if(!Me(e))return[];if(e=xr(e),!Me(t))return[];if(t=xr(t),_i(n)||(n=2),(n=Wi(n))<=0)throw new Error(`num[${n}] <= 0`);let r=(t-e)/n,i=e,o=[];for(let e=0;e<=n;e++)o.push(i),i+=r;return o},e.rep=function(e,t){return Be(e)&&go(t)?KO(e,t):""},e.repObj=function(e,t){return Mn(e)?[]:_i(t)?UP(t,ro(e)):[]},e.replace=fc,e.replaceObj=function(e,t){return Be(e)&&Ee(t)?(vn(t,function(e,t){e=Se(e)||Ce(e)?JSON.stringify(e):Na(e)}),vn(t,function(t,n){e=fc(e,n,t)}),e):""},e.replacePlus=function(e,t,n,r=null,i){if(!Be(e)||!Be(t)||!Be(n))return"";if(!ke(i))return"";let o="[\\s\\S]*";Be(r)&&(o="[^"+r+"]*");let a=new RegExp(t+o+n,"g");return e.replace(a,i)},e.round=gR,e.secd=function(e){return Me(e)?1/Nu(e=xr(e)):null},e.sep=ta,e.sepInt=function(e,t,n=!0){if(!Ir(e))return[];if(!go(t))return[];if(!we(n))return[];let r=ZO(e/t),i=e-r*t,o=[];for(let e=1;e<=t;e++){let t=r;e<=i&&(t=r+1),o.push(t)}return n&&(o=ka(o)),o},e.setIntervalHp=function(e,t=1){let n=tc(),r=Xa(),i=e=>{n.setTimeout(e,1)},o=e=>{n.requestAnimationFrame(e)},a=null;a=r?o:i;let s=zP(),l=!0,c=s(),u=()=>{if(!l)return;if(s()-c>=t){try{e()}catch(e){console.log(e)}c=s()}a(u)};return a(u),()=>{l=!1}},e.setTimeoutHp=function(e,t=1){let n=tc(),r=Xa(),i=e=>{n.setTimeout(e,1)},o=e=>{n.requestAnimationFrame(e)},a=null;a=r?o:i;let s=zP(),l=!0,c=s(),u=()=>{if(!l)return;if(s()-c>=t){l=!1;try{e()}catch(e){console.log(e)}}a(u)};return a(u),null},e.sind=Ru,e.split=ea,e.str2aes=AO,e.str2b64=bO,e.str2hint=UO,e.str2md5=function(e,t=!1,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!Be(e))return i("invalid str");we(t)||(t=!1);let o="";try{let n=eU(e);o=t?n.toString(Tr):n.toString(Jr)}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.str2obj=function(e,t="Uint8Array",n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:{};if(!ke(e))return i("invalid data");ke(t)?t=[t]:Ce(t)||(t=["Uint8Array"]);let o={};try{o=JSON.parse(e,function(e,n){return t.indexOf("Uint8Array")>=0&&(n=NO.b642u8arr(n)),t.indexOf("Uint16Array")>=0&&(n=NO.b642u16arr(n)),NO.unescape(n)})}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.str2sha=pU,e.str2sha512=function(e,t=!1,n={}){let r=Ae(n,"returnWithStateAndMsg",null);if(we(r)||(r=!1),!r)return pU(e,512,t);let i=pU(e,512,t,{returnWithStateAndMsg:!0});return"error"===i.state?{state:"error",msg:`str2sha: ${i.msg}`}:i},e.str2u8arr=RO,e.strCompare=gU,e.strCompareForVersion=function(e,t){let n=mU(e),r=mU(t);if(null===n||null===r)return null;for(let e=0;e<3;e++){if(n[e]>r[e])return 1;if(n[e]<r[e])return-1}return 0},e.strDiff=Go,e.strDiffToHtml=function(e,t,n={}){if(!ke(e))return"";if(!ke(t))return"";if(""===e&&""===t)return"";let r=Ae(n,"useNormNewline");we(r)||(r=!0),r&&(e=(e=e.replaceAll("\r\n","\n")).replaceAll("\r","\n"),t=(t=t.replaceAll("\r\n","\n")).replaceAll("\r","\n"));let i=Zd(),o=_o("file","file",e,t),a=i.html(o,{drawFileList:!1,matching:"none",diffStyle:"char",outputFormat:"line-by-line"}),s=Lo(a,"\n"),l="",c=!1;return vn(s,e=>{'<div class="d2h-code-line">'===Zo(e)&&(c=!0),e.indexOf('class="d2h-code-line-prefix"')>=0&&(e=e.replaceAll('class="d2h-code-line-prefix"','class="d2h-code-line-prefix" style="display:inline-block; width: 0.7rem;"')),e.indexOf("<del>")>=0&&(e=e.replaceAll("<del>",'<del style="color:#f26; background:#ffefd5;">')),e.indexOf("<ins>")>=0&&(e=e.replaceAll("<ins>",'<ins style="color:#090; background:#e4fed1;">')),c&&(l+=e+"\n"),c&&"</div>"===Zo(e)&&(c=!1)}),a=l,a},e.strFindFuzz=function(e,t,n=!1){let r="";if(Be(e)||Me(e))r=Na(e);else{if(!Nn(e))return!!n&&0;r=vo(e,"")}if(""===t)return!n||100;if(Mn(t))return!!n&&0;if(Ya(r,t))return!n||100;let i=ta(t," "),o=An(i,function(e){return((e,t)=>{let n=new y$([e],{includeScore:!0}).search(t);n=Ae(n,0);let r=Ae(n,"score",1);return r=1-r,r*=100,r})(r,e)});if(n)return v$(o);{let e=80;return gn(o,function(t){return t>=e})}},e.strFindSimilar=function(e,t){let n="";if(Be(e)||Me(e))n=Na(e);else{if(!Nn(e))return{};n=vo(e,"")}return Me(t)&&(t=Na(t)),Be(t)&&(t=[t]),Nn(t)?function(e,t){let n=[],r=0;for(let i=0;i<t.length;i++){let o=t[i],a=gU(e,o);n.push({target:o,rating:a}),a>n[r].rating&&(r=i)}return{ratings:n,bestMatch:n[r],bestMatchIndex:r}}(n,t=An(t,function(e){return Na(e)})):{}},e.strTruncate=vR,e.strdelleft=ia,e.strdelright=Qa,e.strleft=na,e.strmid=hc,e.strright=ra,e.stru8arr2obj=b$,e.tand=Tu,e.time2day=function(e,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!MI(e))return i("invalid t");let o="";try{o=t(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.time2hour=function(e,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!MI(e))return i("invalid t");let o="";try{o=t(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.time2min=qP,e.timeTZ2day=function(e,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!fO(e))return i("invalid t");let o="";try{e=uO.delTZ(e),o=t(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timeTZ2expire=function(e,t=null,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=(e,t)=>r?{state:"error",msg:e}:{today:null,msg:"",err:t};if(!fO(e))return i("invalid t","時間格式錯誤");try{e=x$(e),t=x$(t)}catch(e){return i(e.toString(),"時間轉換失敗")}return A$(e,t,n)},e.timeTZ2hour=function(e,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!fO(e))return i("invalid t");let o="";try{e=uO.delTZ(e),o=t(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timeTZ2min=function(e,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!fO(e))return i("invalid t");let o="";try{e=uO.delTZ(e),o=t(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH:mm")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timeTZ2past=function(e,t=null,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=(e,t)=>r?{state:"error",msg:e}:{today:null,msg:"",err:t};if(!fO(e))return i("invalid t","時間格式錯誤");try{e=I$(e),t=I$(t)}catch(e){return i(e.toString(),"時間轉換失敗")}return w$(e,t,n)},e.timems2day=function(e,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!lO(e))return i("invalid t");let o="";try{o=t(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DD")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timems2hour=function(e,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!lO(e))return i("invalid t");let o="";try{o=t(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timems2min=function(e,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!lO(e))return i("invalid t");let o="";try{o=t(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timems2time=function(e,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!lO(e))return i("invalid t");let o="";try{o=t(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm:ss")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timemsTZ2day=function(e,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!dO(e))return i("invalid t");let o="";try{e=uO.delTZ(e),o=t(e).format("YYYY-MM-DD")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timemsTZ2expire=A$,e.timemsTZ2hour=function(e,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!dO(e))return i("invalid t");let o="";try{e=uO.delTZ(e),o=t(e).format("YYYY-MM-DDTHH")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timemsTZ2min=function(e,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!dO(e))return i("invalid t");let o="";try{e=uO.delTZ(e),o=t(e).format("YYYY-MM-DDTHH:mm")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timemsTZ2past=w$,e.timemsTZ2time=function(e,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!dO(e))return i("invalid t");let o="";try{e=uO.delTZ(e),o=t(e).format("YYYY-MM-DDTHH:mm:ss")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.treeObj=Bu,e.treeToFilepath=function(e,t={}){if(!Nn(e))return[];let n=Ae(t,"delimiter");Be(n)||(n="/");let r=Ae(t,"bindRoot");Be(r)||(r="root");let i=[];return Bu(e,(e,t,o)=>{let a=Ae(e,"_type","");if("folder"!==a&&"file"!==a)return e;let s=An(Ae(e,"pathInfors",[]),"name"),l=Ae(s,0,"")===r;if(1===or(s)&&l)return e;l&&(s=Ta(s));let c={type:a,path:n+vo(s,n)};return i.push(c),e},{force:!0}),i},e.trim=Ra,e.u16arr2b64=CO,e.u16arr2u8arr=function(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new Uint8Array;if(!KL(e))return r("invalid u16a");let i=null;try{i=new Uint8Array(e)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.u8arr2ab=function(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new ArrayBuffer;if(!ss(e))return r("invalid u8a");let i=null;try{i=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.u8arr2b64=IO,e.u8arr2blob=fR,e.u8arr2bs=function(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:"";if(!ss(e))return r("invalid u8a");let i="";try{let t=e.length;for(let n=0;n<t;n++)i+=String.fromCharCode(e[n])}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.u8arr2obj=function(e,t={}){let n={},r=Ae(t,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:{};if(!ss(e))return i("invalid u8a");try{let t=8,r=e.slice(0,t),o=e.slice(t,ZL(e)),a=cs(r),s=o.slice(0,a),l=o.slice(a,ZL(o)),c=C$(s,{returnWithStateAndMsg:!0});if("error"===c.state)return i(`u8arr2str: ${c.msg}`);let u=c.msg,d=function(e,t){let n=0,r=0,i=[];return vn(t,t=>{r=n+t;let o=e.slice(n,r);n=r,i.push(o)}),i}(l,JSON.parse(u)),f=C$(d.shift(),{returnWithStateAndMsg:!0});if("error"===f.state)return i(`u8arr2str: ${f.msg}`);let h=b$({results:f.msg,binarys:d},{returnWithStateAndMsg:!0});if("error"===h.state)return i(`stru8arr2obj: ${h.msg}`);n=h.msg}catch(e){return i(e.toString())}return r?{state:"success",msg:n}:n},e.u8arr2str=C$,e.u8arr2u16arr=function(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new Uint16Array;if(!ss(e))return r("invalid u8a");let i=null;try{i=new Uint16Array(e)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.urlParse=function(e){if(!Be(e))return{};if(!Be(e=Ae(e=Lo(e,"?"),"[1]")))return{};let t=Lo(e,"&");return t=An(t,function(e){return Lo(e,"=")}),t=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];ei(r,i[0],i[1])}return r}(t),t},e.verifyValue=function(e,t,n={}){let r=!1,i="";if("isstr"===t)ke(e)||(r=!0,i="需要為字串",e="");else if("isnum"===t)Me(e)||(r=!0,i="需要為數字",e=0);else if("isp0num"===t)tO(e)||(r=!0,i="需要為含0的正浮點數",e=0);else if("isn0num"===t)eO(e)||(r=!0,i="需要為含0的負浮點數",e=0);else if("isint"===t)Ir(e)||(r=!0,i="需要為整數",e=0);else if("ispint"===t)_i(e)||(r=!0,i="需要為不含0正整數",e=0);else if("isp0int"===t)go(e)||(r=!0,i="需要為含0正整數",e=0);else if("isnint"===t)VS(e)||(r=!0,i="需要為不含0負整數",e=0);else if("isn0int"===t)ZP(e)||(r=!0,i="需要為含0負整數",e=0);else if("custom"===t){let t=Ae(n,"funCustom");if(!Ui(t))throw new Error("invalid opt.funCustom when type='custom'");let o=t(e);if(!we(o.err))throw new Error("invalid return.err for type='custom'");if(o.err&&!Be(o.errmsg))throw new Error("invalid return.errmsg when return.err=true for type='custom'");if(!Me(o.value)&!ke(o.value))throw new Error("invalid return.value for type='custom'");r=o.err,i=o.errmsg,e=o.value}else if(Ui(t)){e=t(e)}else"any"===t?Me(e)||ke(e)||(r=!0,i="需要為字串或數字",e=""):(r=!0,i="需要指定驗證類型",e=null);return{value:e,err:r,errmsg:i}},e.waitFun=gs});
|
|
32
|
+
return/[!-/:-@[-`{-~]/.test(e)}function uO(e){if(!Be(e))return!1;let n="YYYY-MM-DDTHH:mm:ss.SSS";return e===t(e,n).format(n)}function dO(e){let t;return t=ra(e,1),"Z"===t?`${e=Qa(e,1)}+00:00`:e}let fO={checkTZ:function(e){let t;return t=ra(e,1),"Z"===t||(t=ra(e,6),!!/[+|-]\d\d:\d\d/.test(t))},delTZ:function(e){let t;return t=ra(e,1),Qa(e,"Z"===t?1:6)},normTZ:dO,sepTZ:function(e){let t=dO(e);return{t:Qa(t,6),tz:ra(t,6)}}};function hO(e){if(!Be(e))return!1;if(!fO.checkTZ(e))return!1;let n=fO.delTZ(e),r="YYYY-MM-DDTHH:mm:ss.SSS";return n===t(n,r).format(r)}function pO(e){if(!Be(e))return!1;if(!fO.checkTZ(e))return!1;let n=fO.delTZ(e),r="YYYY-MM-DDTHH:mm:ss";return n===t(n,r).format(r)}let gO=["1234","12345","123456","1234567","12345678","123456789","1234567890","12345678910","111111","000000","666666","888888","7777777","11111111","123123","123321","654321","987654321","qwerty","qwerty123","qwerty1","qwertyuiop","qazwsx","1q2w3e4r","1q2w3e4r5t","1q2w3e","1qaz2wsx","zxcvbnm","password","password1","passw0rd","admin","admin123","welcome","letmein","login","master","monkey","dragon","shadow","sunshine","superman","batman","football","baseball","soccer","hockey","michael","jordan","jennifer","hunter","ranger","harley","thomas","charlie","andrew","daniel","ashley","bailey","mustang","access","secret","ninja","jesus","hello","freedom","trustno1","1qaz@WSX","P@ssw0rd","Pass@123","Aa123456","Aa@123456","Admin@123","abc@123","abc123","abcdef","abcd1234","abc","iloveyou","fuckyou","f*ckyou","whatever","nothing","google","computer","internet","samsung","apple","killer","princess","lovely","tigger","starwars","pokemon","minecraft","123qwe","zaq1zaq1","photoshop","adobe123","18atcskd2w","mynoob"];function mO(e,t){return new Kl(e).eq(t)}function yO(e,t,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:[];if(!Nn(e))return i("invalid keys");if(!Nn(t))return i("invalid mat");if(!Nn(t[0]))return i("invalid mat, the first row is not an effective array");let o=An(t,function(t){let n=Vi(e,t);return vn(n,function(e,t){void 0===e&&(n[t]="")}),n});return r?{state:"success",msg:o}:o}var vO=Fa(function(e){return $n(In(e,1,xI,!0))});var bO=Fa(function(e,t){var n=Aa(t);return xI(n)&&(n=void 0),xI(e)?function(e,t,n,r){var i=-1,o=Ln,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=fe(t,Xe(n))),r?(o=Pn,a=!1):t.length>=200&&(o=At,a=!1,t=new vt(t));e:for(;++i<s;){var u=e[i],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var f=c;f--;)if(t[f]===d)continue e;l.push(u)}else o(t,d,r)||l.push(u)}return l}(e,In(t,1,xI,!0),hn(n)):[]}),AO=bO;function wO(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:"";if(!Be(e))return r("invalid str");let i="";try{let t=Yr.parse(e);i=Tr.stringify(t)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i}function xO(e,t,n=!1,r={}){let i=Ae(r,"returnWithStateAndMsg",null);we(i)||(i=!1);let o=e=>i?{state:"error",msg:e}:"";if(!Be(e))return o("invalid str");if(!Be(t))return o("invalid key");we(n)||(n=!1);let a="";try{let r=_r.encrypt(e,t);if(n)a=r.toString();else{let e=r.toString();a=Tr.parse(e).toString(Jr)}}catch(e){return o(e.toString())}return i?{state:"success",msg:a}:a}var IO={exports:{}};!function(e){var t;e.exports=(t=Fr(),function(){if("function"==typeof ArrayBuffer){var e=t.lib.WordArray,n=e.init,r=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,r=[],i=0;i<t;i++)r[i>>>2]|=e[i]<<24-i%4*8;n.call(this,r,t)}else n.apply(this,arguments)};r.prototype=e}}(),t.lib.WordArray)}(IO);var CO=Sr(IO.exports);function SO(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:"";if(!ss(e))return r("invalid u8a");let i="";try{i=CO.create(e).toString(Tr)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i}function EO(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:"";if(!eP(e))return r("invalid u16a");let i="";try{let t=SO(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),{returnWithStateAndMsg:!0});if("error"===t.state)return r(`u8arr2b64: ${t.msg}`);i=t.msg}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i}let kO="[BlazeForPreventEscape]",BO=/^(?:\[BlazeForPreventEscape\])*\[(?:Uint8Array|Uint16Array)\]::[A-Za-z0-9+/]*={0,2}$/,FO=/^\[BlazeForPreventEscape\](?:\[BlazeForPreventEscape\])*\[(?:Uint8Array|Uint16Array)\]::[A-Za-z0-9+/]*={0,2}$/;let DO="[Uint8Array]::",MO=/^\[Uint8Array\]::([A-Za-z0-9+/]*={0,2})$/;let NO="[Uint16Array]::",TO=/^\[Uint16Array\]::([A-Za-z0-9+/]*={0,2})$/;let QO={tagEsc:kO,escape:function(e){return ke(e)&&91===e.charCodeAt(0)&&BO.test(e)?kO+e:e},unescape:function(e){return ke(e)&&91===e.charCodeAt(0)&&FO.test(e)?e.slice(23):e},tagU8A:DO,u8arr2b64:function(e){return ss(e)?DO+SO(e):e},b642u8arr:function(e){if(ke(e)&&91===e.charCodeAt(0)){let t=MO.exec(e);if(null!==t)return _a(t[1])}return e},tagU16A:NO,u16arr2b64:function(e){return eP(e)?NO+EO(e):e},b642u16arr:function(e){if(ke(e)&&91===e.charCodeAt(0)){let t=TO.exec(e);if(null!==t)return Va(t[1])}return e}};function RO(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:{results:"",binarys:[]};if(!Se(e)&&!Ce(e))return r("invalid data, data is not an object or array");if(Bn(e)||Dn(e))return r("invalid data, data is an empty object or empty array");let i=/^(?:\[BlazeForPreventEscape\])*\[BlazeFor(?:Uint8Array|Uint16Array|ArrayBuffer)\]::\d+$/,o="",a=[];try{let t=-1;o=JSON.stringify(e,function(e,n){if(ss(n)){t+=1;let e=`[BlazeForUint8Array]::${t}`;return a.push(n),e}if(eP(n)){t+=1;let e=`[BlazeForUint16Array]::${t}`;return a.push(n),e}if(xe(n)){t+=1;let e=`[BlazeForArrayBuffer]::${t}`;return a.push(n),e}return eO(n)&&(n=n.toString()),Be(n)&&91===n.charCodeAt(0)&&i.test(n)?"[BlazeForPreventEscape]"+n:n})}catch(e){return r(e.toString())}return n?{state:"success",msg:{results:o,binarys:a}}:{results:o,binarys:a}}let LO=/[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:^|[^\uD800-\uDBFF])[\uDC00-\uDFFF]/;function PO(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new Uint8Array;if(!Be(e))return r("invalid str");if(!("function"==typeof e.isWellFormed?e.isWellFormed():!LO.test(e)))return r("invalid str, contains lone surrogates");let i=null;try{i=(new TextEncoder).encode(e)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i}function OO(e){let t=0;vn(e,e=>{t+=tP(e)});let n=new Uint8Array(t),r=0;return vn(e,e=>{let t=function(e){return xe(e)?new Uint8Array(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(0)}(e);n.set(t,r),r+=t.length}),n}function UO(e,t){if(!Ee(e))return{};if(!Ui(t))throw new Error("fun is not a function");let n=An(e,(e,n)=>({k:n,v:e,t:t(e,n)})),r=$a(An(n,"t"),{returnIndex:!0});n=An(r,e=>n[e]);let i={};return vn(n,e=>{i[e.k]=e.v}),i}function $O(e,t=()=>{}){if(!Ui(e))return null;function n(e,t){let n;return kn(e)||En(e)?t:(n=Ae(e,"data",null),n||e)}return Ui(t)||(t=()=>{}),function(){let r,i=Ga(),o=t({mode:"before",data:arguments});return(kn(o)||En(o))&&(o=arguments),e(...o).then(e=>{r=t({mode:"afterThen",data:e}),e=n(r,e),i.resolve(e)}).catch(e=>{r=t({mode:"afterCatch",data:e}),e=n(r,e),i.reject(e)}),i}}function HO(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"success",msg:e}:e;if(!ke(e))return n?{state:"error",msg:"invalid str"}:null;if(""===e)return r(0);let i=e.split("").reduce((e,t)=>t.charCodeAt(0)+(e<<6)+(e<<16)-e,0);return r(i)}let zO=0;function qO(e="start1",t=!1){void 0===e?e=(new Date).getTime():"start1"===e&&(zO++,e=zO);let n=624,r=397,i=2147483648,o=2147483647,a=new Array(n),s=625,l=e=>{for(ua(e)?a[0]=e>>>0:(e=Na(e),a[0]=HO(e)),s=1;s<n;s++){let e=a[s-1]^a[s-1]>>>30;a[s]=(1812433253*((4294901760&e)>>>16)<<16)+1812433253*(65535&e)+s,a[s]>>>=0}},c=()=>(()=>{let e,t=new Array(2567483615);if(s>=n){let c;for(625===s&&l(5489),c=0;c<227;c++)e=a[c]&i|a[c+1]&o,a[c]=a[c+r]^e>>>1^t[1&e];for(;c<623;c++)e=a[c]&i|a[c+1]&o,a[c]=a[c+(r-n)]^e>>>1^t[1&e];e=a[623]&i|a[0]&o,a[623]=a[396]^e>>>1^t[1&e],s=0}return e=a[s++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0})()*(1/4294967296);l(e);let u=null;return u=t?c:c(),u}let jO=qO((new Date).getTime(),!0);function WO(){return jO()}function _O(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}var VO=Math.floor,YO=Math.random;function GO(e,t){return e+VO(YO()*(t-e+1))}function JO(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n<t;){var o=GO(n,i),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}function XO(e,t){return JO(Cn(e),_O(t,0,e.length))}function KO(e,t){var n=KR(e);return JO(n,_O(t,0,n.length))}var ZO=Math.floor;function eU(e,t,n){return t=(n?pn(e,t,n):void 0===t)?1:wr(t),function(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=ZO(t/2))&&(e+=e)}while(t);return n}(me(e),t)}var tU=qi("floor");var nU=Sr(Rr());var rU={exports:{}},iU={exports:{}};!function(e){var t;e.exports=(t=Fr(),function(e){var n=t,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.algo,s=[],l=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)t(r)&&(i<8&&(s[i]=n(e.pow(r,.5))),l[i]=n(e.pow(r,1/3)),i++),r++}();var c=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],d=n[6],f=n[7],h=0;h<64;h++){if(h<16)c[h]=0|e[t+h];else{var p=c[h-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=c[h-2],y=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;c[h]=g+c[h-7]+y+c[h-16]}var v=r&i^r&o^i&o,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),A=f+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&d)+l[h]+c[h];f=d,d=u,u=s,s=a+A|0,a=o,o=i,i=r,r=A+(b+v)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+f|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=o._createHelper(u),n.HmacSHA256=o._createHmacHelper(u)}(Math),t.SHA256)}(iU);var oU=iU.exports,aU=Sr(oU);!function(e){var t;e.exports=(t=Fr(),function(){var e=t,n=e.lib.WordArray,r=e.algo,i=r.SHA256,o=r.SHA224=i.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=4,e}});e.SHA224=i._createHelper(o),e.HmacSHA224=i._createHmacHelper(o)}(),t.SHA224)}(rU);var sU,lU=Sr(rU.exports),cU={exports:{}},uU={exports:{}};function dU(){return sU||(sU=1,function(e){var t,n,r,i,o,a,s;e.exports=(s=Fr(),r=(n=s).lib,i=r.Base,o=r.WordArray,(a=n.x64={}).Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=i.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var i=e[r];n.push(i.high),n.push(i.low)}return o.create(n,this.sigBytes)},clone:function(){for(var e=i.clone.call(this),t=e.words=this.words.slice(0),n=t.length,r=0;r<n;r++)t[r]=t[r].clone();return e}}),s)}(uU)),uU.exports}var fU={exports:{}};!function(e){var t;e.exports=(t=Fr(),dU(),function(){var e=t,n=e.lib.Hasher,r=e.x64,i=r.Word,o=r.WordArray,a=e.algo;function s(){return i.create.apply(i,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var u=a.SHA512=n.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],d=n[6],f=n[7],h=r.high,p=r.low,g=i.high,m=i.low,y=o.high,v=o.low,b=a.high,A=a.low,w=s.high,x=s.low,I=u.high,C=u.low,S=d.high,E=d.low,k=f.high,B=f.low,F=h,D=p,M=g,N=m,T=y,Q=v,R=b,L=A,P=w,O=x,U=I,$=C,H=S,z=E,q=k,j=B,W=0;W<80;W++){var _,V,Y=c[W];if(W<16)V=Y.high=0|e[t+2*W],_=Y.low=0|e[t+2*W+1];else{var G=c[W-15],J=G.high,X=G.low,K=(J>>>1|X<<31)^(J>>>8|X<<24)^J>>>7,Z=(X>>>1|J<<31)^(X>>>8|J<<24)^(X>>>7|J<<25),ee=c[W-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ie=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),oe=c[W-7],ae=oe.high,se=oe.low,le=c[W-16],ce=le.high,ue=le.low;V=(V=(V=K+ae+((_=Z+se)>>>0<Z>>>0?1:0))+re+((_+=ie)>>>0<ie>>>0?1:0))+ce+((_+=ue)>>>0<ue>>>0?1:0),Y.high=V,Y.low=_}var de,fe=P&U^~P&H,he=O&$^~O&z,pe=F&M^F&T^M&T,ge=D&N^D&Q^N&Q,me=(F>>>28|D<<4)^(F<<30|D>>>2)^(F<<25|D>>>7),ye=(D>>>28|F<<4)^(D<<30|F>>>2)^(D<<25|F>>>7),ve=(P>>>14|O<<18)^(P>>>18|O<<14)^(P<<23|O>>>9),be=(O>>>14|P<<18)^(O>>>18|P<<14)^(O<<23|P>>>9),Ae=l[W],we=Ae.high,xe=Ae.low,Ie=q+ve+((de=j+be)>>>0<j>>>0?1:0),Ce=ye+ge;q=H,j=z,H=U,z=$,U=P,$=O,P=R+(Ie=(Ie=(Ie=Ie+fe+((de+=he)>>>0<he>>>0?1:0))+we+((de+=xe)>>>0<xe>>>0?1:0))+V+((de+=_)>>>0<_>>>0?1:0))+((O=L+de|0)>>>0<L>>>0?1:0)|0,R=T,L=Q,T=M,Q=N,M=F,N=D,F=Ie+(me+pe+(Ce>>>0<ye>>>0?1:0))+((D=de+Ce|0)>>>0<de>>>0?1:0)|0}p=r.low=p+D,r.high=h+F+(p>>>0<D>>>0?1:0),m=i.low=m+N,i.high=g+M+(m>>>0<N>>>0?1:0),v=o.low=v+Q,o.high=y+T+(v>>>0<Q>>>0?1:0),A=a.low=A+L,a.high=b+R+(A>>>0<L>>>0?1:0),x=s.low=x+O,s.high=w+P+(x>>>0<O>>>0?1:0),C=u.low=C+$,u.high=I+U+(C>>>0<$>>>0?1:0),E=d.low=E+z,d.high=S+H+(E>>>0<z>>>0?1:0),B=f.low=B+j,f.high=k+q+(B>>>0<j>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=n._createHelper(u),e.HmacSHA512=n._createHmacHelper(u)}(),t.SHA512)}(fU);var hU=fU.exports,pU=Sr(hU);!function(e){var t;e.exports=(t=Fr(),dU(),function(){var e=t,n=e.x64,r=n.Word,i=n.WordArray,o=e.algo,a=o.SHA512,s=o.SHA384=a.extend({_doReset:function(){this._hash=new i.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=16,e}});e.SHA384=a._createHelper(s),e.HmacSHA384=a._createHmacHelper(s)}(),t.SHA384)}(cU);let gU={1:Hr,224:lU,256:aU,384:Sr(cU.exports),512:pU};function mU(e,t,n=!1,r={}){let i=Ae(r,"returnWithStateAndMsg",null);we(i)||(i=!1);let o=e=>i?{state:"error",msg:e}:"";if(!Be(e))return o("invalid str");if(!_i(t)){if(i)return o("n is not a positive integer");throw new Error("n is not a positive integer")}if(t=Wi(t),!Ne(gU,t)){if(i)return o(`invalid n[${t}]`);throw new Error(`invalid n[${t}]`)}we(n)||(n=!1);let a="";try{let r=(0,gU[t])(e);a=n?r.toString(Tr):r.toString(Jr)}catch(e){return o(e.toString())}return i?{state:"success",msg:a}:a}function yU(e,t){return Be(e)&&Be(t)?function(e,t){if(e=e.replace(/\s+/g,""),t=t.replace(/\s+/g,""),!e.length&&!t.length)return 1;if(!e.length||!t.length)return 0;if(e===t)return 1;if(1===e.length&&1===t.length)return 0;if(e.length<2||t.length<2)return 0;let n=new Map;for(let t=0;t<e.length-1;t++){const r=e.substring(t,t+2),i=n.has(r)?n.get(r)+1:1;n.set(r,i)}let r=0;for(let e=0;e<t.length-1;e++){const i=t.substring(e,e+2),o=n.has(i)?n.get(i):0;o>0&&(n.set(i,o-1),r++)}return 2*r/(e.length+t.length-2)}(e,t):0}function vU(e){if(!Be(e))return null;let t=e.match(/(\d+)\.(\d+)\.(\d+)/);return t?[Number(t[1]),Number(t[2]),Number(t[3])]:null}function bU(e){return Array.isArray?Array.isArray(e):"[object Array]"===kU(e)}function AU(e){return null==e?"":function(e){if("string"==typeof e)return e;if("bigint"==typeof e)return e.toString();const t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}function wU(e){return"string"==typeof e}function xU(e){return"number"==typeof e}function IU(e){return!0===e||!1===e||function(e){return CU(e)&&null!==e}(e)&&"[object Boolean]"==kU(e)}function CU(e){return"object"==typeof e}function SU(e){return null!=e}function EU(e){return!e.trim().length}function kU(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const BU="Invalid doc index: must be a non-negative integer within the bounds of the docs array",FU=Object.prototype.hasOwnProperty;var DU=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{const n=MU(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function MU(e){let t=null,n=null,r=null,i=1,o=null;if(wU(e)||bU(e))r=e,t=NU(e),n=TU(e);else{if(!FU.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const a=e.name;if(r=a,FU.call(e,"weight")&&void 0!==e.weight&&(i=e.weight,i<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(TU(a)));t=NU(a),n=TU(a),o=e.getFn??null}return{path:t,id:n,weight:i,src:r,getFn:o}}function NU(e){return bU(e)?e:e.split(".")}function TU(e){return bU(e)?e.join("."):e}const QU={useExtendedSearch:!1,useTokenSearch:!1,tokenize:void 0,tokenMatch:"any",getFn:function(e,t){const n=[];let r=!1;const i=(e,t,o,a)=>{if(SU(e))if(t[o]){const s=e[t[o]];if(!SU(s))return;if(o===t.length-1&&(wU(s)||xU(s)||IU(s)||"bigint"==typeof s))n.push(void 0!==a?{v:AU(s),i:a}:AU(s));else if(bU(s)){r=!0;for(let e=0,n=s.length;e<n;e+=1)i(s[e],t,o+1,e)}else t.length&&i(s,t,o+1,a)}else n.push(void 0!==a?{v:e,i:a}:e)};return i(e,wU(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},RU=Object.freeze({isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,...QU});function LU(e){return e>=9&&e<=13||32===e||160===e}var PU=class{constructor({getFn:e=RU.getFn,fieldNormWeight:t=RU.fieldNormWeight}={}){this.norm=function(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(t){let i=0,o=!1;for(let e=0;e<t.length;e++)LU(t.charCodeAt(e))?o=!1:o||(i++,o=!0);if(0===i&&(i=1),n.has(i))return n.get(i);const a=Math.round(r/Math.pow(i,.5*e))/r;return n.set(i,a),a},clear(){n.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){if(this.isCreated||!this.docs.length)return;this.isCreated=!0;const e=this.docs.length;this.records=new Array(e);let t=0;if(wU(this.docs[0]))for(let n=0;n<e;n++){const e=this._createStringRecord(this.docs[n],n);e&&(this.records[t++]=e)}else for(let n=0;n<e;n++)this.records[t++]=this._createObjectRecord(this.docs[n],n);this.records.length=t,this.norm.clear()}add(e,t){if(!Number.isInteger(t)||t<0)throw new Error(BU);if(wU(e)){const n=this._createStringRecord(e,t);return n&&this.records.push(n),n}const n=this._createObjectRecord(e,t);return this.records.push(n),n}removeAt(e){if(!Number.isInteger(e)||e<0)throw new Error(BU);for(let t=0,n=this.records.length;t<n;t+=1)if(this.records[t].i===e){this.records.splice(t,1);break}for(let t=0,n=this.records.length;t<n;t+=1)this.records[t].i>e&&(this.records[t].i-=1)}removeAll(e){const t=new Set;for(const n of e)Number.isInteger(n)&&n>=0&&t.add(n);if(0===t.size)return;this.records=this.records.filter(e=>!t.has(e.i));const n=Array.from(t).sort((e,t)=>e-t);for(const e of this.records){let t=0,r=n.length;for(;t<r;){const i=t+r>>>1;n[i]<e.i?t=i+1:r=i}e.i-=t}}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_createStringRecord(e,t){return!SU(e)||EU(e)?null:{v:e,i:t,n:this.norm.get(e)}}_createObjectRecord(e,t){const n={i:t,$:{}};for(let t=0,r=this.keys.length;t<r;t++){const r=this.keys[t],i=r.getFn?r.getFn(e):this.getFn(e,r.path);if(SU(i))if(bU(i)){const e=[];for(let t=0,n=i.length;t<n;t+=1){const n=i[t];if(SU(n))if(wU(n)){if(!EU(n)){const r={v:n,i:t,n:this.norm.get(n)};e.push(r)}}else if(SU(n.v)){const t=wU(n.v)?n.v:AU(n.v);if(!EU(t)){const r={v:t,i:n.i,n:this.norm.get(t)};e.push(r)}}}n.$[t]=e}else if(wU(i)&&!EU(i)){const e={v:i,n:this.norm.get(i)};n.$[t]=e}}return n}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}};function OU(e,t,{getFn:n=RU.getFn,fieldNormWeight:r=RU.fieldNormWeight}={}){const i=new PU({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(MU)),i.setSources(t),i.create(),i}function UU(e,t,n,{location:r=RU.location,distance:i=RU.distance,threshold:o=RU.threshold,findAllMatches:a=RU.findAllMatches,minMatchCharLength:s=RU.minMatchCharLength,includeMatches:l=RU.includeMatches,ignoreLocation:c=RU.ignoreLocation}={}){if(t.length>32)throw new Error((e=>`Pattern length exceeds max of ${e}.`)(32));const u=t.length,d=e.length,f=Math.max(0,Math.min(r,d));let h=o,p=f;const g=(e,t)=>{const n=e/u;if(c)return n;const r=Math.abs(f-t);return i?n+r/i:r?1:n},m=s>1||l,y=m?Array(d):[];let v;for(;(v=e.indexOf(t,p))>-1;){const e=g(0,v);if(h=Math.min(e,h),p=v+u,m){let e=0;for(;e<u;)y[v+e]=1,e+=1}}p=-1;let b=[],A=1,w=0,x=u+d;const I=1<<u-1;for(let t=0;t<u;t+=1){let r=0,i=x;for(;r<i;)g(t,f+i)<=h?r=i:x=i,i=Math.floor((x-r)/2+r);x=i;let o=Math.max(1,f-i+1);const s=a?d:Math.min(f+i,d)+u,l=Array(s+2);l[s+1]=(1<<t)-1;for(let r=s;r>=o;r-=1){const i=r-1,a=n[e[i]];if(l[r]=(l[r+1]<<1|1)&a,t&&(l[r]|=(b[r+1]|b[r])<<1|1|b[r+1]),l[r]&I&&(A=g(t,i),A<=h)){if(h=A,p=i,w=t,p<=f)break;o=Math.max(1,2*f-p)}}if(g(t+1,f)>h)break;b=l}if(m&&p>=0){const t=Math.min(d-1,p+u-1+w);for(let r=p;r<=t;r+=1)n[e[r]]&&(y[r]=1)}const C={isMatch:p>=0,score:Math.max(.001,A)};if(m){const e=function(e=[],t=RU.minMatchCharLength){const n=[];let r=-1,i=-1,o=0;for(let a=e.length;o<a;o+=1){const a=e[o];a&&-1===r?r=o:a||-1===r||(i=o-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}(y,s);e.length?l&&(C.indices=e):C.isMatch=!1}return C}function $U(e){const t={};for(let n=0,r=e.length;n<r;n+=1){const i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}function HU(e){if(e.length<=1)return e;e.sort((e,t)=>e[0]-t[0]||e[1]-t[1]);const t=[e[0]];for(let n=1,r=e.length;n<r;n+=1){const r=t[t.length-1],i=e[n];i[0]<=r[1]+1?r[1]=Math.max(r[1],i[1]):t.push(i)}return t}const zU={"ł":"l","Ł":"L","đ":"d","Đ":"D","ø":"o","Ø":"O","ħ":"h","Ħ":"H","ŧ":"t","Ŧ":"T","ı":"i","ß":"ss"},qU=new RegExp("["+Object.keys(zU).join("")+"]","g"),jU="function"==typeof String.prototype.normalize?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"").replace(qU,e=>zU[e]):e=>e;var WU=class{constructor(e,{location:t=RU.location,threshold:n=RU.threshold,distance:r=RU.distance,includeMatches:i=RU.includeMatches,findAllMatches:o=RU.findAllMatches,minMatchCharLength:a=RU.minMatchCharLength,isCaseSensitive:s=RU.isCaseSensitive,ignoreDiacritics:l=RU.ignoreDiacritics,ignoreLocation:c=RU.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:o,minMatchCharLength:a,isCaseSensitive:s,ignoreDiacritics:l,ignoreLocation:c},e=s?e:e.toLowerCase(),e=l?jU(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const u=(e,t)=>{this.chunks.push({pattern:e,alphabet:$U(e),startIndex:t})},d=this.pattern.length;if(d>32){let e=0;const t=d%32,n=d-t;for(;e<n;)u(this.pattern.substr(e,32),e),e+=32;if(t){const e=d-32;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r}=this.options;if(e=t?e:e.toLowerCase(),e=n?jU(e):e,this.pattern===e){if(e.length<this.options.minMatchCharLength)return{isMatch:!1,score:1};const t={isMatch:!0,score:0};return r&&(t.indices=[[0,e.length-1]]),t}const{location:i,distance:o,threshold:a,findAllMatches:s,minMatchCharLength:l,ignoreLocation:c}=this.options,u=[];let d=0,f=!1;this.chunks.forEach(({pattern:t,alphabet:n,startIndex:h})=>{const{isMatch:p,score:g,indices:m}=UU(e,t,n,{location:i+h,distance:o,threshold:a,findAllMatches:s,minMatchCharLength:l,includeMatches:r,ignoreLocation:c});p&&(f=!0),d+=g,p&&m&&u.push(...m)});const h={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(h.indices=HU(u)),h}};const _U=new Set(["fuzzy","include"]);function VU(e){return e.startsWith("inverse")}const YU=[{type:"exact",multiRegex:/^="(.*)"$/,singleRegex:/^=(.*)$/,create:e=>({type:"exact",search(t){const n=t===e;return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}})},{type:"include",multiRegex:/^'"(.*)"$/,singleRegex:/^'(.*)$/,create:e=>({type:"include",search(t){let n,r=0;const i=[],o=e.length;for(;(n=t.indexOf(e,r))>-1;)r=n+o,i.push([n,r-1]);const a=!!i.length;return{isMatch:a,score:a?0:1,indices:i}}})},{type:"prefix-exact",multiRegex:/^\^"(.*)"$/,singleRegex:/^\^(.*)$/,create:e=>({type:"prefix-exact",search(t){const n=t.startsWith(e);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}})},{type:"inverse-prefix-exact",multiRegex:/^!\^"(.*)"$/,singleRegex:/^!\^(.*)$/,create:e=>({type:"inverse-prefix-exact",search(t){const n=!t.startsWith(e);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}})},{type:"inverse-suffix-exact",multiRegex:/^!"(.*)"\$$/,singleRegex:/^!(.*)\$$/,create:e=>({type:"inverse-suffix-exact",search(t){const n=!t.endsWith(e);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}})},{type:"suffix-exact",multiRegex:/^"(.*)"\$$/,singleRegex:/^(.*)\$$/,create:e=>({type:"suffix-exact",search(t){const n=t.endsWith(e);return{isMatch:n,score:n?0:1,indices:[t.length-e.length,t.length-1]}}})},{type:"inverse-exact",multiRegex:/^!"(.*)"$/,singleRegex:/^!(.*)$/,create:e=>({type:"inverse-exact",search(t){const n=-1===t.indexOf(e);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}})},{type:"fuzzy",multiRegex:/^"(.*)"$/,singleRegex:/^(.*)$/,create:(e,t={})=>{const n=new WU(e,{location:t.location??RU.location,threshold:t.threshold??RU.threshold,distance:t.distance??RU.distance,includeMatches:t.includeMatches??RU.includeMatches,findAllMatches:t.findAllMatches??RU.findAllMatches,minMatchCharLength:t.minMatchCharLength??RU.minMatchCharLength,isCaseSensitive:t.isCaseSensitive??RU.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics??RU.ignoreDiacritics,ignoreLocation:t.ignoreLocation??RU.ignoreLocation});return{type:"fuzzy",search:e=>n.searchIn(e)}}}],GU=YU.length;function JU(e,t){const n=e.match(t);return n?n[1]:null}const XU=[];function KU(...e){XU.push(...e)}function ZU(e,t){for(let n=0,r=XU.length;n<r;n+=1){const r=XU[n];if(r.condition(e,t))return new r(e,t)}return new WU(e,t)}const e$="$and",t$="$or",n$="$path",r$="$val",i$=e=>!(!e[e$]&&!e[t$]),o$=e=>({[e$]:Object.keys(e).map(t=>({[t]:e[t]}))});function a$(e,t,{auto:n=!0}={}){const r=e=>{if(wU(e)){const r={keyId:null,pattern:e};return n&&(r.searcher=ZU(e,t)),r}const i=Object.keys(e),o=(e=>!!e[n$])(e);if(!o&&i.length>1&&!i$(e))return r(o$(e));if((e=>!bU(e)&&CU(e)&&!i$(e))(e)){const r=o?e[n$]:i[0],a=o?e[r$]:e[r];if(!wU(a))throw new Error((e=>`Invalid value for key ${e}`)(r));const s={keyId:TU(r),pattern:a};return n&&(s.searcher=ZU(a,t)),s}const a={children:[],operator:i[0]};return i.forEach(t=>{const n=e[t];bU(n)&&n.forEach(e=>{a.children.push(r(e))})}),a};return i$(e)||(e=o$(e)),r(e)}function s$(e,{ignoreFieldNorm:t=RU.ignoreFieldNorm}){let n=1;return e.forEach(({key:e,norm:r,score:i})=>{const o=e?e.weight:null;n*=Math.pow(0===i&&o?Number.EPSILON:i,(o||1)*(t?1:r))}),n}var l$=class{constructor(e,t){this.limit=e,this.heap=[],this.comparator=t}get size(){return this.heap.length}insert(e){this.size<this.limit?(this.heap.push(e),this._bubbleUp(this.size-1)):this.comparator(e,this.heap[0])<0&&(this.heap[0]=e,this._sinkDown(0))}extractSorted(){return this.heap.sort(this.comparator)}_bubbleUp(e){const t=this.heap;for(;e>0;){const n=e-1>>1;if(this.comparator(t[e],t[n])<=0)break;const r=t[e];t[e]=t[n],t[n]=r,e=n}}_sinkDown(e){const t=this.heap,n=t.length;let r=e;do{const i=2*(e=r)+1,o=2*e+2;if(i<n&&this.comparator(t[i],t[r])>0&&(r=i),o<n&&this.comparator(t[o],t[r])>0&&(r=o),r!==e){const n=t[e];t[e]=t[r],t[r]=n}}while(r!==e)}};function c$(e,t,{includeMatches:n=RU.includeMatches,includeScore:r=RU.includeScore}={}){return e.map(e=>{const{idx:i}=e,o={item:t[i],refIndex:i};return n&&(o.matches=function(e){const t=[];return e.matches.forEach(e=>{if(!SU(e.indices)||!e.indices.length)return;const n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.id),e.idx>-1&&(n.refIndex=e.idx),t.push(n)}),t}(e)),r&&(o.score=e.score),o})}const u$=/[\p{L}\p{M}\p{N}_]+/gu,d$=new WeakSet;function f$(e){if("function"==typeof e){let t=!1;return n=>{const r=e(n);if(!t&&(t=!0,!Array.isArray(r)||r.some(e=>"string"!=typeof e)))throw new Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(r)?"array containing non-strings":typeof r}.`);return r}}return e instanceof RegExp?(e.global||function(e){d$.has(e)||(d$.add(e),console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`))}(e),t=>t.match(e)||[]):e=>e.match(u$)||[]}function h$({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:n}={}){const r=f$(n);return{tokenize:n=>(e||(n=n.toLowerCase()),t&&(n=jU(n)),r(n))}}function p$(e,t,n,r){const i=r.tokenize(t);if(!i.length)return;e.fieldCount++,e.docFieldCount.set(n,(e.docFieldCount.get(n)||0)+1);const o=new Set(i);let a=e.docTermFieldHits.get(n);a||(a=new Map,e.docTermFieldHits.set(n,a));for(const t of o)a.set(t,(a.get(t)||0)+1),e.df.set(t,(e.df.get(t)||0)+1)}function g$(e,t,n,r){const{i:i,v:o,$:a}=t;if(void 0===o){if(a)for(let t=0;t<n;t++){const n=a[t];if(n)if(Array.isArray(n))for(const t of n)p$(e,t.v,i,r);else p$(e,n.v,i,r)}}else p$(e,o,i,r)}function m$(e,t){const n=e.docFieldCount.get(t);if(void 0===n)return;e.fieldCount-=n,e.docFieldCount.delete(t);const r=e.docTermFieldHits.get(t);if(r){for(const[t,n]of r){const r=(e.df.get(t)||0)-n;r<=0?e.df.delete(t):e.df.set(t,r)}e.docTermFieldHits.delete(t)}}function y$(e,t){if(0===t.length)return;const n=Array.from(new Set(t)).sort((e,t)=>e-t);for(const t of n)m$(e,t);const r=e=>{let t=0,r=n.length;for(;t<r;){const i=t+r>>>1;n[i]<e?t=i+1:r=i}return e-t},i=n[0],o=new Map;for(const[t,n]of e.docFieldCount)o.set(t>i?r(t):t,n);e.docFieldCount=o;const a=new Map;for(const[t,n]of e.docTermFieldHits)a.set(t>i?r(t):t,n);e.docTermFieldHits=a}var v$=class{constructor(e,t,n){this.options={...RU,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new DU(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,n),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;const t=ZU(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof PU))throw new Error("Incorrect 'index' type");if(this._myIndex=t||OU(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){const e=h$({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=function(e,t,n){const r={fieldCount:0,df:new Map,docFieldCount:new Map,docTermFieldHits:new Map};for(const i of e)g$(r,i,t,n);return r}(this._myIndex.records,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}add(e){if(!SU(e))return;this._docs.push(e);const t=this._myIndex.add(e,this._docs.length-1);if(this._invertedIndex&&t){const e=h$({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});!function(e,t,n,r){g$(e,t,n,r)}(this._invertedIndex,t,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}remove(e=()=>!1){const t=[],n=[];for(let r=0,i=this._docs.length;r<i;r+=1)e(this._docs[r],r)&&(t.push(this._docs[r]),n.push(r));if(n.length){this._invertedIndex&&y$(this._invertedIndex,n);const e=new Set(n);this._docs=this._docs.filter((t,n)=>!e.has(n)),this._myIndex.removeAll(n),this._invalidateSearcherCache()}return t}removeAt(e){if(!Number.isInteger(e)||e<0||e>=this._docs.length)throw new Error(BU);this._invertedIndex&&y$(this._invertedIndex,[e]);const t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),this._invalidateSearcherCache(),t}_invalidateSearcherCache(){this._lastQuery=null,this._lastSearcher=null}getIndex(){return this._myIndex}_normalizedKeys(){return this._myIndex.keys.map(e=>this._keyStore.get(e.id)||e)}search(e,t){const{limit:n=-1}=t||{},{includeMatches:r,includeScore:i,shouldSort:o,sortFn:a,ignoreFieldNorm:s}=this.options;if(wU(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return xU(n)&&n>-1&&(e=e.slice(0,n)),e}const l=o&&xU(n)&&n>0&&wU(e),c=a,u=(e,t)=>c(e,t)||e.idx-t.idx;let d;if(l){const t=new l$(n,u);wU(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:s}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:s}),d=t.extractSorted()}else d=wU(e)?wU(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),function(e,{ignoreFieldNorm:t=RU.ignoreFieldNorm}){e.forEach(e=>{e.score=s$(e.matches,{ignoreFieldNorm:t})})}(d,{ignoreFieldNorm:s}),o&&d.sort(wU(e)?u:c),xU(n)&&n>-1&&(d=d.slice(0,n));return c$(d,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e,{heap:t,ignoreFieldNorm:n}={}){const r=this._getSearcher(e),i=this.options.useTokenSearch&&"all"===this.options.tokenMatch,{records:o}=this._myIndex,a=t?null:[];return o.forEach(({v:e,i:o,n:s})=>{if(!SU(e))return;const l=r.searchIn(e);if(l.isMatch){const r={score:l.score,value:e,norm:s,indices:l.indices};i&&(r.matchedMask=l.matchedMask,r.matchedTerms=l.matchedTerms,r.termCount=l.termCount);const c=[r];if(!i||this._coversAllTokens(c)){const r={item:e,idx:o,matches:c};t?(r.score=s$(r.matches,{ignoreFieldNorm:n}),t.insert(r)):a.push(r)}}}),a}_searchLogical(e){const t=a$(e,this.options),n=this._normalizedKeys(),r=(e,t,i)=>{if(!("children"in e)){const{keyId:r,searcher:o}=e;let a;return null===r?(a=[],n.forEach((e,n)=>{a.push(...this._findMatches({key:e,value:t[n],searcher:o}))})):a=this._findMatches({key:this._keyStore.get(r),value:this._myIndex.getValueForItemAtKeyId(t,r),searcher:o}),a&&a.length?[{idx:i,item:t,matches:a}]:[]}const{children:o,operator:a}=e,s=[];for(let e=0,n=o.length;e<n;e+=1){const n=o[e],l=r(n,t,i);if(l.length)s.push(...l);else if(a===e$)return[]}return s},i=this._myIndex.records,o=new Map,a=[];return i.forEach(({$:e,i:n})=>{if(SU(e)){const i=r(t,e,n);i.length&&(o.has(n)||(o.set(n,{idx:n,item:e,matches:[]}),a.push(o.get(n))),i.forEach(({matches:e})=>{o.get(n).matches.push(...e)}))}}),a}_searchObjectList(e,{heap:t,ignoreFieldNorm:n}={}){const r=this._getSearcher(e),i=this.options.useTokenSearch&&"all"===this.options.tokenMatch,{records:o}=this._myIndex,a=this._normalizedKeys(),s=t?null:[];return o.forEach(({$:e,i:o})=>{if(!SU(e))return;const l=[];let c=!1,u=!1;if(a.forEach((t,n)=>{const i=this._findMatches({key:t,value:e[n],searcher:r});i.length?(l.push(...i),i[0].hasInverse&&(u=!0)):c=!0}),(!u||!c)&&l.length&&(!i||this._coversAllTokens(l))){const r={idx:o,item:e,matches:l};t?(r.score=s$(r.matches,{ignoreFieldNorm:n}),t.insert(r)):s.push(r)}}),s}_findMatches({key:e,value:t,searcher:n}){if(!SU(t))return[];const r=[];if(bU(t))t.forEach(({v:t,i:i,n:o})=>{if(!SU(t))return;const a=n.searchIn(t);if(a.isMatch){const n={score:a.score,key:e,value:t,idx:i,norm:o,indices:a.indices,hasInverse:a.hasInverse};void 0!==a.termCount&&(n.matchedMask=a.matchedMask,n.matchedTerms=a.matchedTerms,n.termCount=a.termCount),r.push(n)}});else{const{v:i,n:o}=t,a=n.searchIn(i);if(a.isMatch){const t={score:a.score,key:e,value:i,norm:o,indices:a.indices,hasInverse:a.hasInverse};void 0!==a.termCount&&(t.matchedMask=a.matchedMask,t.matchedTerms=a.matchedTerms,t.termCount=a.termCount),r.push(t)}}return r}_coversAllTokens(e){const t=e.length?e[0].termCount:void 0;if(void 0===t)return!0;if(t<=31){let n=0;for(let t=0;t<e.length;t++)n|=e[t].matchedMask||0;return n===2**t-1}const n=new Set;for(let t=0;t<e.length;t++){const r=e[t].matchedTerms;if(r)for(const e of r)n.add(e)}return n.size===t}};v$.version="7.5.0",v$.createIndex=OU,v$.parseIndex=function(e,{getFn:t=RU.getFn,fieldNormWeight:n=RU.fieldNormWeight}={}){const{keys:r,records:i}=e,o=new PU({getFn:t,fieldNormWeight:n});return o.setKeys(r),o.setIndexRecords(i),o},v$.config=RU,v$.match=function(e,t,n){if(n&&n.useTokenSearch)throw new Error("Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.");return ZU(e,{...RU,...n}).searchIn(t)},v$.parseQuery=a$,KU(class{constructor(e,{isCaseSensitive:t=RU.isCaseSensitive,ignoreDiacritics:n=RU.ignoreDiacritics,includeMatches:r=RU.includeMatches,minMatchCharLength:i=RU.minMatchCharLength,ignoreLocation:o=RU.ignoreLocation,findAllMatches:a=RU.findAllMatches,location:s=RU.location,threshold:l=RU.threshold,distance:c=RU.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r,minMatchCharLength:i,findAllMatches:a,ignoreLocation:o,location:s,threshold:l,distance:c},e=t?e:e.toLowerCase(),e=n?jU(e):e,this.pattern=e,this.query=function(e,t={}){return e.replace(/\\\|/g,"\0").split("|").map(e=>{const n=function(e){const t=[],n=e.length;let r=0;for(;r<n;){for(;r<n&&" "===e[r];)r++;if(r>=n)break;let i=r;for(;i<n&&" "!==e[i]&&'"'!==e[i];)i++;if(i<n&&'"'===e[i]){for(i++;i<n;){if('"'===e[i]){const t=i+1;if(t>=n||" "===e[t]){i++;break}if("$"===e[t]&&(t+1>=n||" "===e[t+1])){i+=2;break}}i++}t.push(e.substring(r,i)),r=i}else{for(;i<n&&" "!==e[i];)i++;t.push(e.substring(r,i)),r=i}}return t}(e.replace(/\u0000/g,"|").trim()).filter(e=>e&&!!e.trim()),r=[];for(let e=0,i=n.length;e<i;e+=1){const i=n[e];let o=!1,a=-1;for(;!o&&++a<GU;){const e=YU[a],n=JU(i,e.multiRegex);n&&(r.push(e.create(n,t)),o=!0)}if(!o)for(a=-1;++a<GU;){const e=YU[a],n=JU(i,e.singleRegex);if(n){r.push(e.create(n,t));break}}}return r})}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){const t=this.query;if(!t)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:r,ignoreDiacritics:i}=this.options;e=r?e:e.toLowerCase(),e=i?jU(e):e;let o=0;const a=[];let s=0,l=!1;for(let r=0,i=t.length;r<i;r+=1){const i=t[r];a.length=0,o=0,l=!1;for(let t=0,r=i.length;t<r;t+=1){const r=i[t],{isMatch:c,indices:u,score:d}=r.search(e);if(!c){s=0,o=0,a.length=0,l=!1;break}o+=1,s+=d,VU(r.type)&&(l=!0),n&&(_U.has(r.type)?a.push(...u):a.push(u))}if(o){const e={isMatch:!0,score:s/o};return l&&(e.hasInverse=!0),n&&(e.indices=HU(a)),e}}return{isMatch:!1,score:1}}}),KU(class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=h$({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,tokenize:t.tokenize});const n=this.analyzer.tokenize(e),{df:r,fieldCount:i}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(const e of n){this.termSearchers.push(new WU(e,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));const n=r.get(e)||0,o=Math.log(1+(i-n+.5)/(n+.5));this.idfWeights.push(o)}this.combineAll="all"===t.tokenMatch,this.numTerms=this.termSearchers.length,this.useMask=this.numTerms<=31}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};const t=[];let n=0,r=0,i=0,o=0;const a=this.combineAll&&!this.useMask?new Set:null;for(let s=0;s<this.termSearchers.length;s++){const l=this.termSearchers[s].searchIn(e),c=this.idfWeights[s];r+=c,l.isMatch&&(i++,n+=c*(1-l.score),l.indices&&t.push(...l.indices),this.combineAll&&(this.useMask?o|=1<<s:a.add(s)))}if(0===i)return{isMatch:!1,score:1};const s=r>0?1-n/r:0,l={isMatch:!0,score:Math.max(.001,s)};return this.options.includeMatches&&t.length&&(l.indices=HU(t)),this.combineAll&&(this.useMask?l.matchedMask=o:l.matchedTerms=a,l.termCount=this.numTerms),l}}),v$.use=function(...e){e.forEach(e=>KU(e))};var b$=v$;function A$(e){return function(e,t){var n=null==e?0:e.length;return n?ga(e,t)/n:NaN}(e,un)}function w$(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:{};if(!Ee(e))return r("invalid data");let i=null,o=null;try{i=e.results,o=e.binarys}catch(e){return r(e.toString())}if(!Be(i))return r("invalid results");if(!Ce(o))return r("invalid binarys");let a=/^\[BlazeFor(Uint8Array|Uint16Array|ArrayBuffer)\]::(\d+)$/,s=/^\[BlazeForPreventEscape\](?:\[BlazeForPreventEscape\])*\[BlazeFor(?:Uint8Array|Uint16Array|ArrayBuffer)\]::\d+$/,l={};try{l=JSON.parse(i,function(e,t){if(!Be(t)||91!==t.charCodeAt(0))return t;let n=a.exec(t);if(null===n)return s.test(t)?t.slice(23):t;let r=Number(n[2]);if(r>=o.length)throw new Error(`binary index out of range[${r}], binarys.length[${o.length}]`);return((e,t,n)=>{if("Uint16Array"===e&&!eP(n)){if(!ss(n))throw new Error(`binarys[${t}] can not be restored to Uint16Array`);if(n.byteLength%2!=0)throw new Error(`binarys[${t}] byteLength[${n.byteLength}] is not even, can not be restored to Uint16Array`);let e=0===n.byteOffset&&n.byteLength===n.buffer.byteLength?n:new Uint8Array(n);return new Uint16Array(e.buffer)}if("ArrayBuffer"===e&&!xe(n)){if(!ss(n))throw new Error(`binarys[${t}] can not be restored to ArrayBuffer`);return n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength)}return n})(n[1],r,o[r])})}catch(e){return r(e.toString())}return n?{state:"success",msg:l}:l}function x$(e,n=null,r={}){let i=Ae(r,"returnWithStateAndMsg",null);we(i)||(i=!1);let o=(e,t)=>i?{state:"error",msg:e}:{today:null,msg:"",err:t};if(!Ui(t))throw new Error("invalid dayjs");if(!hO(e))return o("invalid t","時間格式錯誤");let a=null;try{a=function(e,n){let r=t();hO(n)&&(r=t(n,"YYYY-MM-DDTHH:mm:ss.SSSZ"));let i=t(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(r>i)return{today:null,msg:"",err:"時間已過"};let o,a=r.format("YYYY-MM-DD"),s=i.format("YYYY-MM-DD"),l=t(a,"YYYY-MM-DD"),c=t(s,"YYYY-MM-DD"),u=i.diff(r,"seconds"),d=i.diff(r,"minutes"),f=i.diff(r,"hours"),h=c.diff(l,"days"),p=c.diff(l,"weeks"),g=c.diff(l,"months"),m=c.diff(l,"years"),y="即將到來";if(u>=0&&(o=!0,y=u+"秒後"),d>0&&(o=!0,y=d+"分鐘後"),f>0){let e=i.format("HH:mm");a===s?(o=!0,y=f+"小時後,今天"+e):(o=!1,y=f+"小時後,明天"+e)}return h>1&&(o=!1,y=2===h?"後天":h+"天後"),p>0&&(o=!1,y=p+"周後"),g>0&&(o=!1,y=g+"個月後"),m>0&&(o=!1,y=m+"年後"),{today:o,msg:y,err:""}}(e,n)}catch(e){return o(e.toString(),"時間轉換失敗")}return s=a,i?{state:"success",msg:s}:s;var s}function I$(e,n=null,r={}){let i=Ae(r,"returnWithStateAndMsg",null);we(i)||(i=!1);let o=(e,t)=>i?{state:"error",msg:e}:{today:null,msg:"",err:t};if(!Ui(t))throw new Error("invalid dayjs");if(!hO(e))return o("invalid t","時間格式錯誤");let a=null;try{a=function(e,n){let r=t();hO(n)&&(r=t(n,"YYYY-MM-DDTHH:mm:ss.SSSZ"));let i=t(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(r<i)return{today:null,msg:"",err:"時間未到"};let o=r.format("YYYY-MM-DD"),a=i.format("YYYY-MM-DD"),s=t(o,"YYYY-MM-DD"),l=t(a,"YYYY-MM-DD"),c=r.diff(i,"seconds"),u=r.diff(i,"minutes"),d=r.diff(i,"hours"),f=s.diff(l,"days"),h=s.diff(l,"weeks"),p=s.diff(l,"months"),g=s.diff(l,"years"),m=!1,y="剛剛";if(c>=0&&(m=!0,y=c+"秒前"),u>0&&(m=!0,y=u+"分鐘前"),d>0){let e=i.format("HH:mm");o===a?(m=!0,y=d+"小時前"):(m=!1,y="昨天"+e)}return f>1&&(m=!1,y=f+"天前"),h>0&&(m=!1,y=h+"周前"),p>0&&(m=!1,y=p+"個月前"),g>0&&(m=!1,y=g+"年前"),{today:m,msg:y,err:""}}(e,n)}catch(e){return o(e.toString(),"時間轉換失敗")}return s=a,i?{state:"success",msg:s}:s;var s}function C$(e){let t=fO.sepTZ(e);return e=`${t.t}.000${t.tz}`}function S$(e){let t=fO.sepTZ(e);return e=`${t.t}.000${t.tz}`}function E$(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:"";if(!ss(e))return r("invalid u8a");let i="";try{i=new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0}).decode(e)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i}e.ab2blob=function(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new Blob;if(!xe(e))return r("invalid ab");let i=null;try{let t=Ie(e,{returnWithStateAndMsg:!0});if("error"===t.state)return r(`ab2u8arr: ${t.msg}`);i=new Blob([t.msg])}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.ab2u8arr=Ie,e.addExcelWorksheetFromData=function(e,t,n="data"){if(!Ee(e))return{error:"wb is not an effective object"};if(!Ce(Ae(e,"sheets")))return{error:"wb.sheets is not an array"};Be(n)||(n="data");let r=cr(t);return Ne(r,"error")?r:(e.sheets.push({...r,name:n}),e)},e.addMonth=function(e,n){return ur(e)&&Ir(n)?t(e,"YYYY-MM").add(n,"months").format("YYYY-MM"):""},e.aes2str=Xr,e.alive=function(e={}){let t=Oi(),n=Object.create(null),r=null,i=new Set,o=new Set,a=!1,s=Ae(e,"timeAlive");_i(s)||(s=1e4),s=Wi(s),s=Math.min(s,Ri);let l=Ae(e,"timeDetect");return _i(l)||(l=50),l=Wi(l),l=Math.min(l,Ri),t.trigger=function(e,c){if(!a)if(Be(e)){if(!Ne(n,e)){let r=setTimeout(()=>{i.delete(r),Ne(n,e)&&o.add(e),$i(t,"message",[{eventName:"enter",key:e,data:c,now:or(n)}],{tag:"alive"})},1);i.add(r)}n[e]={data:c,time:Date.now()},a||null===r&&(r=setInterval(()=>{vn(n,(e,r)=>{if(Date.now()-e.time>s){let e=Qi(n[r]);if(delete n[r],o.delete(r),$i(t,"message",[{eventName:"leave",key:r,data:e.data,now:or(n)}],{tag:"alive"}),a)return!1}}),a||Ee(n)||(clearInterval(r),r=null)},l))}else console.log("trigger need key")},t.get=function(){let e=[];return vn(n,(t,n)=>{e.push({key:n,data:t.data})}),e=Qi(e),e},t.clear=function(){if(a)return[];a=!0,null!==r&&(clearInterval(r),r=null);for(let e of i)clearTimeout(e);i.clear();let e=[];return vn(n,(t,n)=>{o.has(n)&&e.push({key:n,data:t.data})}),e=Qi(e),n=Object.create(null),o.clear(),e},t},e.arr2dt=function(e,t=""){if(!Nn(e))return{};if(Nn(t))return or(e)===or(t)?Vi(e,t):{};let n=[];for(let r=0;r<or(e);r++)n.push(Qi(t));return Vi(e,n)},e.arrAccum=function(e){if(!Nn(e))return[];let t=[],n=0;return vn(e,function(e){n+=xr(e),Me(e)?t.push(n):t.push("")}),t},e.arrAdd=function(){if(or(arguments)<2)return[];let e=arguments[0];for(let t=1;t<or(arguments);t++){e=Yi(e,arguments[t])}return e},e.arrAt=mo,e.arrDiff=Ko,e.arrFilterByKeywords=function(e,t){if(!Nn(e))return[];if(!Be(t)&&!Nn(t))return[];let n=null;n=Be(t)?ta(t," "):t;let r=or(n);return An(e,e=>function(e){let t=!1,i=0;for(let o=0;o<r;o++){let a=n[o],s=a,l="+"===na(a,1),c="-"===na(a,1);if((l||c)&&(s=ia(a,1)),""===Zo(s))continue;let u=e.indexOf(s)>=0;if(l){if(u){t=!0,i=1;break}t=!1,i=0;break}if(c){if(u){t=!1,i=0;break}t=!0,i=1;break}if(u){t=!0;let e=1-o/r;e=e**2,i+=e}}return{hasKeyword:t,weight:i}}(e))},e.arrFilterByNum=function(e){return Nn(e)?e=An(e=aa(e=Qi(e),Me),xr):[]},e.arrFilterByPnum=la,e.arrFilterByPnumAndToLog=function(e){return Nn(e)?e=An(e=la(e),Math.log):[]},e.arrFind=function(e,t){function n(e){return Ce(e)?e:[e]}return Mn(e)||0===(e=n(e)).length||Mn(t)?[]:An(t=n(t),function(t){let n=-1;for(let r=0;r<e.length;r++)if(ca(e[r],t)){n=r;break}return n})},e.arrGroupByMaxmin=function(e,t,n={}){let r=Ae(n,"keyMax");Be(r)||(r="max");let i=Ae(n,"keyMin");Be(i)||(i="min");let o=Ae(n,"keyValue");Be(o)||(o="value");let a=Ae(n,"keyItems");if(Be(a)||(a="items"),!Nn(e))return[];if(!Nn(t))return[];let s=Qi(t);return vn(e,(e,n)=>{let l=Ae(e,o);Me(l)?l=xr(l):Me(e)&&(l=xr(e)),ua(l)&&vn(t,(t,n)=>{let o=Ae(t,r,null),c=Ae(t,i,null);if(null!==o&&null!==c&&Me(o)&&Me(c)){let r=Ae(t,"maxType");"<="!==r&&"<"!==r&&(r="<=");let i,u,d=Ae(t,"minType");">="!==d&&">"!==d&&(d=">="),o=xr(o),c=xr(c),i=">="===d?l>=c:l>c,u="<="===r?l<=o:l<o,i&&u&&(Ne(s[n],a)||(s[n][a]=[]),s[n][a].push(e))}})}),s},e.arrHas=da,e.arrInsert=function(e,t,n){if(!Ce(e))return[];if(Ce(n)||(n=[n]),!go(t))return e;if((t=Wi(t))>or(e))return e;let r=e;try{r=[...e.slice(0,t),...n,...e.slice(t)]}catch(e){}return r},e.arrLookupByMaxmin=function(e,t,n={}){let r=Ae(n,"keyMax");Be(r)||(r="max");let i=Ae(n,"keyMin");Be(i)||(i="min");let o=Ae(n,"keyValue");Be(o)||(o="value");let a=Ae(n,"keyItems");Be(a)||(a="items");let s=Ae(n,"beforeAddResult",null);if(!Nn(e))return[];if(!Nn(t))return[];if(!Ee(Ae(e,0)))return[];let l=Qi(e);return vn(l,(e,n)=>{let c=Ae(e,o);Me(c)&&(c=xr(c)),ua(c)&&vn(t,(e,t)=>{let o=Ae(e,r,null),u=Ae(e,i,null);if(null!==o&&null!==u&&Me(o)&&Me(u)){let t=Ae(e,"maxType");"<="!==t&&"<"!==t&&(t="<=");let r,i,d=Ae(e,"minType");">="!==d&&">"!==d&&(d=">="),o=xr(o),u=xr(u),r=">="===d?c>=u:c>u,i="<="===t?c<=o:c<o,r&&i&&(Ui(s)&&(e=s(e,l[n],n)),Ne(l[n],a)||(l[n][a]=[]),l[n][a].push(e))}})}),l},e.arrMax=function(e,t={}){if(!Nn(e))return null;let n=Ae(t,"returnIndex");we(n)||(n=!1);let r=Ae(t,"compareKey",null),i=e;Be(r)&&(i=An(e,(e,t)=>Ae(e,r,"")));let o=null,a=fa(i,(e,t)=>Me(t)?(t=xr(t),null===e?(o=t,t):(e=Math.max(e,t),o=e,e)):e,{returnIndex:!0});if(n)return a;let s=null;return a>=0&&(s=Be(r)?e[a]:o),s},e.arrMin=function(e,t={}){if(!Nn(e))return null;let n=Ae(t,"returnIndex");we(n)||(n=!1);let r=Ae(t,"compareKey",null),i=e;Be(r)&&(i=An(e,(e,t)=>Ae(e,r,"")));let o=null,a=fa(i,(e,t)=>Me(t)?(t=xr(t),null===e?(o=t,t):(e=Math.min(e,t),o=e,e)):e,{returnIndex:!0});if(n)return a;let s=null;return a>=0&&(s=Be(r)?e[a]:o),s},e.arrMulti=pa,e.arrNorm=function(e){if(!Nn(e))return null;let t=ma(e,e);return Me(t)?t<=0?null:Math.sqrt(t):null},e.arrProduct=ma,e.arrPull=function(e,t){if(!Nn(e))return[];if((Se(t)||Me(t)||ke(t)||we(t))&&(t=[t]),!Nn(t))return e;let n=Qi(e);return ba(n,t),n},e.arrPullAt=function(e,t){if(!Nn(e))return[];if(go(t)&&(t=[t]),!Nn(t))return e;t=An(t,e=>Wi(e));let n=Qi(e);return Sa(n,t),n},e.arrReduce=fa,e.arrReverse=function(e){if(!Nn(e))return[];let t=Qi(e);return ka(t),t},e.arrSep=function(e,t){if(!Nn(e))return[];if(!_i(t)&&!Ee(t))return[];let n="",r=null;if(_i(t))r=t,n="numCount";else if(Ee(t))if(_i(Ae(t,"numCount")))r=t.numCount,n="numCount";else{if(!_i(Ae(t,"numGroup")))throw new Error("invalid opt.numCount or opt.numGroup");r=t.numGroup,n="numGroup"}let i=or(e),o=[];if("numCount"===n)for(let t=0;t<i;t+=r){let n=[];for(let o=0;o<r;o++){let r=t+o;r<i&&n.push(e[r])}o.push(n)}else if("numGroup"===n){for(let e=0;e<r;e++)o[e]=[];let t=-1;for(let n=0;n<i;n++)t++,t>r-1&&(t=0),o[t].push(e[n])}return o},e.arrSort=$a,e.asind=function(e){return Me(e)?(e=xr(e),180*Math.asin(e)/Math.PI):null},e.atan2d=function(e,t){return Me(e)?(e=xr(e),Me(t)?(t=xr(t),180*Math.atan2(t,e)/Math.PI):null):null},e.atand=function(e){return Me(e)?(e=xr(e),180*Math.atan(e)/Math.PI):null},e.attstr=function(e={}){let t=";",n="@",r="table",i="id",o=Ae(e,"uniqItems");we(o)||(o=!1);let a=Ae(e,"dlmItem","");Be(a)&&(t=a);let s=Ae(e,"dlmSep","");Be(s)&&(n=s);let l=Ae(e,"keyTable","");Be(l)&&(r=l);let c=Ae(e,"keyId","");Be(c)&&(i=c);let u=Ae(e,"mode");function d(e){if(!Be(e))return[];let n=Lo(e,t);return o&&(n=Hn(n)),n}function f(e){if(!Nn(e))return"";return o&&(e=Hn(e)),vo(e,t)}function h(e){return e=aa(e,Be),o&&(e=Hn(e)),f(e)}function p(e){let t=[];return vn(e,e=>{let o=Ae(e,r,""),a=Ae(e,i,"");if(Be(o),ke(a)||(Ce(a)?or(a):a=""),ke(a))t.push(`${o}${n}${a}`);else if(Ce(a)){let e=vo(a,n);t.push(`${o}${n}${e}`)}}),e=f(t)}function g(e){if(!Be(e))return[];return aa(d(e),Be)}function m(e){if(!Be(e))return[];let t=d(e),o=[];return vn(t,e=>{let t=Lo(e,n),a=Ae(t,0,""),s=Ae(t,1,"");or(t)>=3&&(t=Ta(t),s=t),o.push({item:e,[r]:a,[i]:s})}),o}function y(e,t){let n=[...g(e),...g(t)];return 0===or(n)?"":h(n)}function v(e,t){let n=[...m(e),...m(t)];return 0===or(n)?"":p(n)}function b(e,t){let n=g(e),r=g(t),i=[];return vn(n,e=>{da(e,r)||i.push(e)}),0===or(i)?"":h(i)}function A(e,t){let n=m(e),r=m(t),i=[];return vn(n,e=>{da(e,r)||i.push(e)}),0===or(i)?"":p(i)}"1p"!==u&&"2p"!==u&&(u="auto");let w={parse:function(e,t={}){if(!Be(e))return[];let r=Ae(t,"mode");return"1p"!==r&&"2p"!==r&&(r=u),"1p"===r?g(e):"2p"===r||e.indexOf(n)>=0?m(e):g(e)},join:function(e,t={}){if(!Nn(e))return"";let n=Ae(t,"mode");if("1p"!==n&&"2p"!==n&&(n=u),"1p"===n)return h(e);if("2p"===n)return p(e);let o=Ae(e,0);return Ne(o,r)&&Ne(o,i)?p(e):h(e)},remove:function(e,t,r={}){if(!Be(e))return"";if(!Be(t))return e;let i=Ae(r,"mode");return"1p"!==i&&"2p"!==i&&(i=u),"1p"===i?b(e,t):"2p"===i||t.indexOf(n)>=0?A(e,t):b(e,t)},add:function(e,t,r={}){let i=Ae(r,"mode");if("1p"!==i&&"2p"!==i&&(i=u),"1p"===i)return y(e,t);if("2p"===i)return v(e,t);let o=e.indexOf(n)>=0,a=t.indexOf(n)>=0;return o||a?v(e,t):y(e,t)}};return w},e.b642obj=function(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:{};if(!ke(e))return r("invalid b64");let i={};try{let t=Ha(e,{returnWithStateAndMsg:!0});if("error"===t.state)return r(`b642str: ${t.msg}`);let n=za(t.msg,{returnWithStateAndMsg:!0});if("error"===n.state)return r(`j2o: ${n.msg}`);i=n.msg}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.b642str=Ha,e.b642u16arr=Va,e.b642u8arr=_a,e.binstr=Ya,e.blob2ab=Ka,e.blob2b64=Za,e.blob2str=function(e){if(!Ja(e))return Promise.reject("invalid bb");if(!Xa())return Promise.reject("no window");let t=Ga();try{let n=new FileReader;n.onload=function(){t.resolve(n.result)},n.onerror=function(e){t.reject(e)},n.readAsText(e)}catch(e){t.reject(e)}return t},e.blob2u8arr=es,e.blobs2b64s=ts,e.blobs2u8arrs=ns,e.bodyLog=function(){let e=`\n <div style="padding:5px; font-size:10pt; font-family:Microsoft JhengHei, Helvetica;">\n <span style="color:#f26;">log: </span>\n <code>${os(An(arguments,function(e){return ar(e)}).join(", "))}</code>\n </div>\n `;document.querySelector("body").insertAdjacentHTML("beforeend",e)},e.browserView=as,e.browserViewFromBlob=function(e,t){Ja(e)&&as(e,t)},e.browserViewFromText=function(e){ke(e)&&as(e,"text/plain")},e.browserViewFromU8arr=function(e,t){ss(e)&&as(e,t)},e.bs2u8arr=function(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new Uint8Array;if(!Be(e))return r("invalid bs");let i=null;try{let t=e.length;i=new Uint8Array(t);for(let n=0;n<t;n++)i[n]=e.charCodeAt(n)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.bufRead=ls,e.bufReadDbl=cs,e.bufWrite=us,e.bufWriteDbl=ds,e.cache=function(){let e=Oi(),t=Object.create(null);function n(t,n){fs(e,t,[n],{tag:"cache"})}function r(e,r={}){if(Ne(t,e))return;let i=Ae(r,"fun");Ui(i)||(i=async()=>{});let o=Ae(r,"inputs");Ce(o)||(o=[]);let a=Ae(r,"timeExpired");_i(a)||(a=5e3),a=Wi(a);let s=Ae(r,"timeFrom");"end"!==s&&(s="start");let l=Ae(r,"useCacheWhenError");we(l)||(l=!1);let c=Ae(r,"useCloneDeep");we(c)||(c=!0),t[e]={needExec:!0,fun:i,pm:null,gen:0,inputs:o,value:null,time:null,timeExpired:a,timeFrom:s,useCacheWhenError:l,useCloneDeep:c},n("message",{fun:"set",key:e,timeExpired:a,timeFrom:s,useCacheWhenError:l,useCloneDeep:c})}async function i(e,r={}){if(Ne(t,e)){let i=t[e],o=Ae(r,"useCloneDeep");if(we(o)||(o=i.useCloneDeep),i.pm)return n("message",{fun:"get",key:e,msg:"waiting"}),await i.pm,o?Qi(i.value):i.value;let a=Date.now(),s=i.needExec,l=a-i.time;if(s?n("message",{fun:"get",key:e,msg:"execute first"}):i.timeExpired>0&&l>i.timeExpired&&(n("message",{fun:"get",key:e,msg:"execute by timeExpired",timeDiff:l}),s=!0),s){n("message",{fun:"get",key:e,msg:"fun start"}),i.needExec=!1;let t=i.gen,r=async()=>{try{let r;try{r=await i.fun(...i.inputs)}catch(o){if(n("error",{fun:"get",key:e,msg:o}),!i.useCacheWhenError)throw i.gen===t&&(i.needExec=!0),o;r=void 0}i.gen===t&&(i.value=r,i.time="end"===i.timeFrom?Date.now():a)}finally{i.pm=null,n("message",{fun:"get",key:e,msg:"fun end"})}};i.pm=r(),await i.pm}else n("message",{fun:"get",key:e,msg:"use cache"});return o?Qi(i.value):i.value}return n("error",{fun:"get",key:e,msg:"invalid key"}),null}return e.set=r,e.getProxy=async function(e,t={}){return r(e,t),i(e,t)},e.get=i,e.update=function(e,r){Ne(t,e)&&(n("message",{fun:"updateValue",key:e}),t[e].value=r,t[e].time=Date.now(),t[e].gen+=1)},e.clear=function(e){Ne(t,e)&&(n("message",{fun:"clear",key:e}),t[e].needExec=!0)},e.remove=function(e){Ne(t,e)&&(n("message",{fun:"remove",key:e}),delete t[e])},e},e.cacheBd=function(e,t={}){let n=Ae(t,"nMax");_i(n)||(n=200),n=Wi(n);let r=Ae(t,"nTrigger");_i(r)||(r=3),r=Wi(r);let i=null,o=!1,a=async(...t)=>(o=!0,i=await e(...t),o=!1,i);return{get:a,getFromCache:async(...e)=>{for(let t=1;t<=n&&(t>r&&!o&&await a(...e).catch(()=>{}),null===i);t++)await hs(1e3);if(null===i)throw new Error(`exceeded nMax[${n}]`);return i}}},e.cacheSt=function(e={}){let t=Ae(e,"timeExpire",null);_i(t)||(t=18e5),t=Wi(t),t=Math.min(t,Ri);let n=Ae(e,"timeDetect",null);_i(n)||(n=2e3),n=Wi(n),n=Math.min(n,Ri);let r=Oi(),i=Object.create(null),o=e=>{if(Ne(i,e)){return $i(r,"checkWithSet",[{state:"error",msg:`checkWithSet: key in use: ${e}`}],{tag:"cacheSt"}),!1}return i[e]={time:Date.now(),value:!0},$i(r,"checkWithSet",[{state:"success",msg:`checkWithSet: ${e}`}],{tag:"cacheSt"}),!0},a=setInterval(()=>{$i(r,"detect",[{state:"start"}],{tag:"cacheSt"});let e=Date.now();for(let n of Object.keys(i)){let r=i[n];r&&e-r.time>t&&delete i[n]}$i(r,"detect",[{state:"finish"}],{tag:"cacheSt"})},n);return r.checkWithSet=o,r.setWithFree=async(e,t)=>{$i(r,"setWithFree",[{state:"start"}],{tag:"cacheSt"});let n=[];for(let t of e){if(!o(t)){for(let e of n)delete i[e];let e=`setWithFree: key in use: ${t}`;return $i(r,"setWithFree",[{state:"error",msg:e}],{tag:"cacheSt"}),Promise.reject(e)}n.push(t)}try{let n=await t(),i=`setWithFree: ${e.join(", ")}`;return $i(r,"setWithFree",[{state:"success",msg:i}],{tag:"cacheSt"}),n}catch(e){let t=`setWithFree: fn threw: ${e&&e.message||e}`;throw $i(r,"setWithFree",[{state:"error",msg:t}],{tag:"cacheSt"}),e}finally{for(let e of n)delete i[e]}},r.set=async(e,t=!0)=>{i[e]={time:Date.now(),value:t},$i(r,"set",[{state:"success",msg:`set: ${e}`}],{tag:"cacheSt"})},r.get=async e=>{let t=i[e],n=void 0===t?null:t.value;return $i(r,"get",[{state:"success",msg:`get: ${e}`}],{tag:"cacheSt"}),n},r.check=async e=>{let t=Ne(i,e);return $i(r,"check",[{state:"success",msg:`check: ${e} = ${t}`}],{tag:"cacheSt"}),t},r.del=async e=>{delete i[e],$i(r,"del",[{state:"success",msg:`del: ${e}`}],{tag:"cacheSt"})},r.waitExist=async(e,t={})=>{let n=Ae(t,"attemptNum",null);_i(n)||(n=30),n=Wi(n);let o=Ae(t,"timeInterval",null);_i(o)||(o=100),o=Wi(o),$i(r,"waitExist",[{state:"start"}],{tag:"cacheSt"});try{await gs(()=>Ne(i,e),{attemptNum:n,timeInterval:o})}catch(t){let i=`waitExist timeout (${n*o}ms): ${e}`;return $i(r,"waitExist",[{state:"error",msg:i}],{tag:"cacheSt"}),Promise.reject(i)}$i(r,"waitExist",[{state:"success",msg:`waitExist resolved: ${e}`}],{tag:"cacheSt"})},r.waitNotExist=async(e,t={})=>{let n=Ae(t,"attemptNum",null);_i(n)||(n=30),n=Wi(n);let o=Ae(t,"timeInterval",null);_i(o)||(o=100),o=Wi(o),$i(r,"waitNotExist",[{state:"start"}],{tag:"cacheSt"});try{await gs(()=>!Ne(i,e),{attemptNum:n,timeInterval:o})}catch(t){let i=`waitNotExist timeout (${n*o}ms): ${e}`;return $i(r,"waitNotExist",[{state:"error",msg:i}],{tag:"cacheSt"}),Promise.reject(i)}$i(r,"waitNotExist",[{state:"success",msg:`waitNotExist resolved: ${e}`}],{tag:"cacheSt"})},r.clear=()=>{clearInterval(a)},r},e.cbol=function(e){if(we(e))return e;if(0===e)return!1;if(1===e)return!0;let t=!1;return Be(e)&&"true"===(e=ms(Zo(e)))&&(t=!0),t},e.cdbl=xr,e.ceil=Zl,e.cfilesize=function(e){return Me(e)?(e=xr(e))<1024?ec(e,1)+" b":e<1048576?ec(e/1024,1)+" kb":e<1073741824?ec(e/1024/1024,1)+" mb":e<1099511627776?ec(e/1024/1024/1024,1)+" gb":"":""},e.cfinancial=function(e,t=0){if(!Me(e))return"";if(!go(t))return"";let n=(e=ec(e,t)).split("."),r=n[0],i=n.length>1?"."+n[1]:"",o=/(\d+)(\d{3})/;for(;o.test(r);)r=r.replace(o,"$1,$2");return r+i},e.cint=Wi,e.clearXSS=oc,e.clearXSSDyn=async function(e,t={},n){return Nn(n)||(n=["https://cdn.jsdelivr.net/npm/xss@1.0.15/dist/xss.min.js"]),await uc(n),oc(e)},e.color=mu,e.composeToTree=ku,e.convertToTree=function(e,t={}){if(!Ee(e)&&!Nn(e))return[];let n=Ae(t,"bindKey",null);Be(n)||(n="id");let r=Ae(t,"bindParent",null);Be(r)||(r="parentId");let i=Ae(t,"bindText",null);Be(i)||(i="text");let o=Ae(t,"bindChildren",null);Be(o)||(o="children");let a=Ae(t,"bindType",null);Be(a)||(a="type");let s=Ae(t,"bindNumOfChilren",null);Be(s)||(s="numOfChilren");let l=Ae(t,"bindRoot",null);Be(l)||(l="root");let c=Ae(t,"saveExtProps",null);return we(c)||(c=!1),Be(l)&&(e={[l]:e}),ku(Fu(e,{bindKey:n,bindParent:r,bindText:i,bindType:a,bindNumOfChilren:s}),{bindKey:n,bindParent:r,bindChildren:o,saveExtProps:c})},e.copyStrToClipboard=function(e,t={}){if(!ke(e))return"invalid input";let n=Ae(t,"eleParent");Du(n)||(n=document.body);let r=document.createElement("textarea");if(r.style.position="fixed",r.style.left=0,r.style.top=0,r.style.zIndex=-1,r.style.background="transparent",r.style.color="transparent",r.value=e,n.appendChild(r),r.select(),!Mu(r))return"ele can not be focusd";try{document.execCommand("copy")}catch(e){return"can not copy str to clipboard"}return n.removeChild(r),""},e.cosd=Nu,e.cotd=function(e){return Me(e)?1/Tu(e=xr(e)):null},e.createExcelWorkbook=Qu,e.cscd=function(e){return Me(e)?1/Ru(e=xr(e)):null},e.cstr=Na,e.day2cht=function(e,n=!1){if(!Lu(e))return"";let r=t(e,"YYYY-MM-DD"),i="";return i=n?r.month()+1+"月"+r.date()+"日":"民國 "+(r.year()-1911)+" 年 "+(r.month()+1)+" 月 "+r.date()+" 日",i},e.debounce=Pu,e.delay=hs,e.detectXSS=zu,e.detectXSSDyn=async function(e,t){return Nn(t)||(t=["https://cdn.jsdelivr.net/npm/xss@1.0.15/dist/xss.min.js"]),await uc(t),zu(e)},e.dig=ec,e.digExp=function(e,t=0){if(!Me(e))return"";if(!go(t))return"";let n="";return n=0===(e=xr(e))?"0":Math.abs(e)<=1e-6?e.toExponential(t):ec(e,t),n},e.domAlert=function(e,t={}){if(!Be(e))return;let n=Ae(t,"type","success");Ne(Gu,n)||(n="success");let r=Ae(t,"icon",null);Be(r)||(r=Gu[n]);let i="top-right";"top-left"!==t.position&&"bottom-right"!==t.position&&"bottom-left"!==t.position||(i=t.position);let o=Ae(t,"time");ua(o)||(o=4e3),o<0&&(o=4e3);let a=Ae(t,"paddingStyle",null);null===a&&(a={top:14,right:26,bottom:14,left:14});let s="";{let e=Ae(a,"top",0),t=Ae(a,"bottom",0),n=Ae(a,"left",0);s=`padding:${e}px ${Ae(a,"right",0)}px ${t}px ${n}px;`}let l=Ae(t,"textColor","#000");l=fc(l,";","");let c=Ae(t,"backgroundColor","#fff");c=fc(c,";","");let u=Ae(t,"borderWidth",1),d=Ae(t,"borderColor","#ebeef5");d=fc(d,";","");let f=Ae(t,"borderRadius",8),h=Ae(t,"shadowStyle","0 2px 12px 0 rgba(0,0,0,.1)");h=fc(h,";","");let p=Ae(t,"closeIconShift",null);null===p&&(p={top:10,right:10});let g="";{let e=Ae(p,"top",""),t=Ae(p,"bottom",""),n=Ae(p,"left",""),r=Ae(p,"right","");ua(e)&&(e=`top:${e}px;`),ua(t)&&(t=`bottom:${t}px;`),ua(n)&&(n=`left:${n}px;`),ua(r)&&(r=`right:${r}px;`),g=`position:absolute; ${e} ${r} ${t} ${n}`}let m=`alt-${Wu()}`,y=`alt-${Wu()}`,v=`\n <div \n style="display:inline-block; color:${l}; background:${c}; border:${u}px solid ${d}; border-radius:${f}px; box-shadow:${h};"\n onmouseenter="ttWAlertFadeIn('${y}')"\n onmouseleave="ttWAlertFadeOut('${y}')"\n >\n <div style="position:relative; ${s}">\n\n <div style="display:flex; align-items:center;">\n <div style="margin-right:10px;">\n <div style="display:flex;">${r}</div>\n </div>\n <div>${e}</div>\n </div>\n\n <div style="${g}">\n <div \n id="${y}" \n style="display:flex; cursor:pointer; opacity:0;" \n onclick="ttWAlertCancel('${m}')"\n >\n ${Yu}\n </div>\n </div>\n\n </div>\n </div>\n `,b=document.createElement("div");b.id=m,b.style.position="fixed",b.style.transition="transform 0.3s, top 0.5s, bottom 0.5s",b.style.zIndex=-1,b.style.opacity=.001,i.indexOf("-left")>=0?b.style.transform="translateX(-100%)":b.style.transform="translateX(100%)",b.innerHTML=v,document.querySelector("body").appendChild(b);let A=Ga();return function({id:e,position:t,time:n,pm:r}){Ju[e]={id:e,position:t,ele:null,loc:{height:null,top:null,bottom:null,left:null,right:null},timeShow:n,timeStart:Date.now(),pm:r},Zu(),null===Xu&&(Xu=setInterval(()=>{vn(Ju,e=>{Date.now()-e.timeStart>e.timeShow&&(e.pm.resolve(),ed(e.id))}),Ee(Ju)||(clearInterval(Xu),Xu=null)},50))}({id:m,position:i,time:o,pm:A}),A},e.domAppend=td,e.domCancelEvent=rd,e.domCompareText=function(e,t,n,r,i={}){if(!Du(e))return Promise.reject("invalid ele");let o=Ae(i,"format");"side"!==o&&"line"!==o&&(o="side");let a="side"===o?"side-by-side":"line-by-line",s=Zd();Be(t)||(t="Text");let l=_o(t,t,n,r),c=s.html(l,{drawFileList:!0,matching:"lines",outputFormat:a,...i});c=c.replace('<span class="d2h-file-list-title">Files changed (1)</span>',"");try{e.innerHTML=c}catch(e){console.log(e)}return{diff:l,html:c}},e.domConvertToPic=xw,e.domConvertToPicDyn=async function(e,t={},n){return await xw(e,t)},e.domDetect=function(e,t={}){return"undefined"!=typeof window&&!!window.ResizeObserver&&!!window.MutationObserver&&"polling"!==Ae(t,"mode","")?Ow(e,t):function(e,t={}){if(!Ui(e))return console.log("invalid f",e),null;let n=Oi(),r=Pw(n,t),i=setInterval(()=>{r.check(Qw(e),!1)},Nw(t));return n.refresh=()=>{r.isCleared()||r.check(Qw(e),!1)},n.clear=()=>{clearInterval(i),r.clear()},n}(e,t)},e.domDrag=function(e,t={}){if(!Du(e))return void console.log("ele is not a HTMLElement",e);let n=(e,n)=>{let r=Ae(t,e,null);return Be(r)?r:n},r={attIdentify:n("attIdentify","dragid"),attIndex:n("attIndex","dragindex"),attGroup:n("attGroup","draggroup"),group:n("group","group"),previewOpacity:Bw(t,"previewOpacity",.4),previewDisabledOpacity:Bw(t,"previewDisabledOpacity",.2),previewBackground:n("previewBackground","white"),previewBorderWidth:Bw(t,"previewBorderWidth",1),previewBorderColor:n("previewBorderColor","#f26"),timeDragStartDelay:Bw(t,"timeDragStartDelay",120,{min:0,below:"clamp",timer:!0})},i=r.group,o=`c${Wu(8)}`,a=qw.get(i);a||(a={gid:i,members:new Map,isActive:!0,drag:null,teardown:!1},qw.set(i,a));let s=Oi(),l={eid:o,ele:e,ev:s,o:r,g:a,alive:!0};Vw(e,r.attGroup)!==i&&e.setAttribute(r.attGroup,i),e.setAttribute(r.attIdentify,o),a.members.set(e,l);let c=[];function u(){l.alive&&(l.alive=!1,Kw(c),a.members.get(e)===l&&a.members.delete(e),Promise.resolve().then(()=>{Vw(e,r.attIdentify)===o&&(e.removeAttribute(r.attIdentify),Vw(e,r.attGroup)===i&&e.removeAttribute(r.attGroup))}),a.drag&&a.drag.startEle===e&&function(e,t){Promise.resolve().then(()=>{e.drag!==t||e.members.has(t.startEle)||tx(e)})}(a,a.drag),0===a.members.size&&function(e){e.teardown||(e.teardown=!0,Promise.resolve().then(()=>{e.teardown=!1,e.members.size>0||(tx(e),qw.get(e.gid)===e&&qw.delete(e.gid))}))}(a))}return c.push(Xw(e,"mousedown",e=>{ox(l,e,!1)})),c.push(Xw(e,"touchstart",e=>{ox(l,e,!0)})),c.push(Xw(e,"dragstart",t=>{a.drag&&a.drag.startEle===e&&t.preventDefault()})),s.setIsActive=function(e){l.alive&&(a.isActive=e,e||tx(a))},s.unbind=u,s.clear=u,s},e.domDragBarAndScroll=function(e,t,n={}){let r=Ae(n,"getHeighRatio",null);Ui(r)||(r=()=>1);let i=Ae(n,"getWidthRatio",null);Ui(i)||(i=()=>1);let o=Ae(n,"stopScrollPropagationForPanel",null);we(o)||(o=!1);let a=Ae(n,"stopTouchDragPropagationForPanel",null);we(a)||(a=!1);let s=Ae(n,"useTouchDragForPanel",null);we(s)||(s=!0);let l=e,c=t,u=Oi(),d="",f={touchstart:!1,touchend:!1,mouseup:!1},h=[];function p(e,t,n,r){e.addEventListener(t,n,r),h.push({target:e,type:t,fun:n,options:r})}function g(e){return e>0?1:e<0?-1:0}function m(e){let t=Ae(e,"target",null);return!!t&&(t===c||Ui(c.contains)&&c.contains(t))}function y(e){return"bar"===d?{clientY:e.clientY,clientX:e.clientX,pointerType:e.pointerType}:{clientY:-e.clientY*r(),clientX:-e.clientX*i(),pointerType:e.pointerType}}let v=ax([c,l],{canPress:e=>!!m(e)||!!s&&!function(e){let t=Ae(e,"pointerType","");return"touch"!==t&&"pen"!==t}(e),eleTouchMove:s?[c,l]:c,cancelTouchMove:()=>"bar"===d||"panel"===d&&a});return v.on("press",e=>{d=m(e.event)?"bar":"panel",f.touchstart="panel"===d&&a&&"touch"===e.pointerType,f.touchend=!1,f.mouseup=!1,u.emit("pressBar",y(e))}),v.on("drag",e=>{u.emit("dragBar",y(e))}),v.on("free",e=>{let t=d;d="";let n="up"===e.reason||"cancel"===e.reason;f.touchstart=!1,f.touchend="panel"===t&&a&&n&&"touch"===e.pointerType,f.mouseup=""!==t&&o&&n&&"touch"!==e.pointerType,u.emit("freeBar")}),function(){if(s&&a){p(l,"touchstart",e=>{f.touchstart&&(f.touchstart=!1,rd(e))});let e=e=>{f.touchend&&(f.touchend=!1,rd(e))};p(l,"touchend",e),p(l,"touchcancel",e)}o&&p(window,"mouseup",e=>{f.mouseup&&(f.mouseup=!1,rd(e))}),p(l,"wheel",e=>{o&&rd(e),u.emit("scrollPanel",{ratioY:g(e.deltaY),ratioX:g(e.deltaX)})})}(),u.clear=function(){v.clear(),d="",f.touchstart=!1,f.touchend=!1,f.mouseup=!1;for(let e of h)e.target.removeEventListener(e.type,e.fun,e.options);h=[]},u},e.domDragPointer=ax,e.domDragPreview=zw,e.domDropFiles=function(e){let t=!1,n=!1,r=Oi();function i(e){rd(e),n=!0,!1===t&&(t=!0,r.emit("dropIn",{ev:e}))}function o(e){rd(e),n=!1,setTimeout(function(){n||(t=!1,r.emit("dropOut",{ev:e}))},100)}function a(e){i(e)}function s(e){o(e)}function l(e){function t(){o(e)}i(e),cx(e.dataTransfer).then(n=>{let i=aa(n.entries,{type:"file"});r.emit("getFiles",{ev:e,files:n.files,filesTree:i,entries:n.entries,cb:t})}).catch(e=>{r.emit("error",e)})}return e.addEventListener("dragenter",a,!1),e.addEventListener("dragover",a,!1),e.addEventListener("dragleave",s,!1),e.addEventListener("drop",l,!1),r.off=function(){e.removeEventListener("dragenter",a,!1),e.removeEventListener("dragover",a,!1),e.removeEventListener("dragleave",s,!1),e.removeEventListener("drop",l,!1)},r},e.domElementsFromPoint=function(e,t){let n=[];try{n=document.elementsFromPoint(e,t)}catch(e){console.log(e)}return n},e.domFadeIn=_u,e.domFadeOut=Vu,e.domFind=ux,e.domFinds=bw,e.domGetAttr=function(e,t){if(!Du(e))return null;if(!Be(t))return null;try{return e.getAttribute(t)}catch(e){}return null},e.domGetBoudRect=Uw,e.domGetBoudRectRefSelf=$w,e.domGetFileAccept=vx,e.domGetFiles=bx,e.domGetParents=Ax,e.domGetPointFromEvent=Hw,e.domGetScrollableParent=function(e){let t=/(auto|scroll)/,n=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},r=function(e){return t.test(function(e){return n(e,"overflow")+n(e,"overflow-y")+n(e,"overflow-x")}(e))};if(!(e instanceof HTMLElement||e instanceof SVGElement))return;let i=Ax(e);for(let e=0;e<i.length;e+=1)if(r(i[e]))return i[e];return document.scrollingElement||document.documentElement},e.domGetWindowSize=function(){let e=tc(),t={width:(()=>{let t=[Ae(e,"innerWidth"),Ae(e,"document.documentElement.clientWidth"),Ae(e,"document.body.clientWidth")];return t=aa(t,ua),Ix(t)})(),height:(()=>{let t=[Ae(e,"innerHeight"),Ae(e,"document.documentElement.clientHeight"),Ae(e,"document.body.clientHeight")];return t=aa(t,ua),Ix(t)})()};return t},e.domIsClientXYIn=function(e,t,n){if(!ua(e))return void console.log("clientX is not a number",e);if(!ua(t))return void console.log("clientY is not a number",t);if(!Du(n))return void console.log("ele is not a HTMLElement",n);let r;try{r=n.getBoundingClientRect()}catch(e){return void console.log("invalid ele for getBoundingClientRect",e)}let i=!1;try{i=e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom}catch(e){console.log("catch when calculating page information of element",e)}return i},e.domIsFocused=Mu,e.domIsRendered=kw,e.domIsStable=function(e,t={}){let n=Sx.getMode(t);if(!Du(e))return Sx.detectorFail(n,"invalid element");if(!Ui(e.getBoundingClientRect))return Sx.detectorFail(n,"invalid element.getBoundingClientRect");let r=Bw(t,"tolerance",0,{min:0,inf:"keep"}),i=Bw(t,"timeDiff",100,{min:0,below:"clamp",timer:!0}),o=Bw(t,"timeDetect",50,{min:0,minOpen:!0,timer:!0}),a=()=>{let t=e.getBoundingClientRect();return{x:t.left,y:t.top,w:t.width,h:t.height}},s=(e,t)=>!!e&&!!t&&Math.abs(e.x-t.x)<=r&&Math.abs(e.y-t.y)<=r&&Math.abs(e.w-t.w)<=r&&Math.abs(e.h-t.h)<=r,l=e=>{try{return"running"===e.playState&&Number.isFinite(e.effect.getTiming().iterations)}catch(e){return!1}},c=()=>{try{return e.getAnimations({subtree:!0}).filter(l)}catch(e){return[]}},u=async()=>{let e=Ga();try{let t=a();await hs(i);let n=a(),r=c(),o=r.length;await Promise.allSettled(r.map(e=>e.finished));let l=c().length,u=a(),d=s(t,n)&&s(t,u)&&0===o&&0===l;e.resolve(d)}catch(t){e.reject(t)}return e};return"promise"===n?u():Sx.detectorEvent((e,t)=>{let n=!1,r=!1,i=!1,a=null;t(()=>{n=!0,clearInterval(a)});let s=()=>{n||r||(r=!0,u().then(t=>{i!==t&&(i=t,e("stable",t))}).catch(()=>{}).finally(()=>{r=!1}))};a=setInterval(s,o),s()},{tag:"domIsStable"})},e.domIsVisible=function(e,t={}){let n=Sx.getMode(t);if(!Du(e))return Sx.detectorFail(n,"invalid element");if(Ex())return Sx.detectorFail(n,"invalid IntersectionObserver");if("promise"===n){let t=Ga();try{let n=new IntersectionObserver(e=>{let r=kx(e);null!==r&&(t.resolve(r),n.disconnect())});n.observe(e)}catch(e){t.reject(e)}return t}return Sx.detectorEvent((t,n)=>{let r=new IntersectionObserver(e=>{let n=kx(e);null!==n&&t("visible",n)});n(()=>{r.disconnect()}),r.observe(e)},{tag:"domIsVisible"})},e.domPrepend=ww,e.domRemove=Aw,e.domRenderMarkdownMind=Bx,e.domRenderMarkdownMindDyn=async function(e,t,n={},r){return Nn(r)||(r=["https://cdn.jsdelivr.net/npm/d3@7.8.3/dist/d3.min.js","https://cdn.jsdelivr.net/npm/markmap-view@0.14.4/dist/index.min.js","https://cdn.jsdelivr.net/npm/markmap-lib@0.14.4/dist/browser/index.min.js"]),await uc(r),Bx(e,t,n)},e.domRipple=function(e,t,n={}){let r=Ae(n,"timeDuration",null);_i(r)||(r=1e3);let i=Ae(n,"color",null);if(Be(i)||(i="rgba(255, 255, 255, 0.5)"),!Du(e))return;e.style.position="relative",e.style.overflow="hidden";let o=e.getBoundingClientRect(),a=t.clientX-o.left,s=t.clientY-o.top,l=2*Math.max(e.clientWidth,e.clientHeight),c=document.createElement("div");c.style.width=`${l}px`,c.style.height=`${l}px`,c.style.transition=`all ${r/1e3}s linear`,c.style.position="absolute",c.style.zIndex=1,c.style.left=`${a}px`,c.style.top=`${s}px`,c.style.borderRadius="50%",c.style.transformOrigin="center",c.style.transform="translate(-50%,-50%) scale(0)",c.style.background=i,c.style.userSelect="none",c.style.pointerEvents="none",e.appendChild(c),setTimeout(()=>{c.style.transform="translate(-50%,-50%) scale(2)",c.style.opacity=0},1),setTimeout(()=>{Aw(c)},r)},e.domScrollIntoView=function(e,t={}){if(!Du(e))return;Se(t)||(t={});let n={behavior:"smooth"};n={...n,...t},nd()&&yI(),e.scrollIntoView(n)},e.domScrollTo=function(e,t={}){if(!Du(e))return;Se(t)||(t={});let n={behavior:"smooth"};n={...n,...t},nd()&&yI(),e.scrollTo(n)},e.domSetAttr=function(e,t,n){if(!Du(e))return null;if(!Be(t))return null;if(!Be(n)&&!Me(n))return null;try{return e.setAttribute(t,n),e.getAttribute(t)}catch(e){}return null},e.domShowImages=BI,e.domShowImagesDyn=async function(e,t=null,n={},r){return await BI(e,t,n)},e.domShowInputAndGetFiles=DI,e.domShowInputAndGetFilesU8Arrs=function(e={}){let t=Ae(e,"kind","*"),n=Ae(e,"multiple");we(n)||(n=!1);let r=Ae(e,"entireHierarchy");we(r)||(r=!1);let i=Ae(e,"sizeMbLimit");Me(i)||(i=1e3),i=xr(i);let o=Ga(),a=[];return DI({kind:t,multiple:n,entireHierarchy:r,sizeMbLimit:i}).then(function(e){let t=Ga(),n=Ae(e,"errs",{}),r=Ae(e,"files",[]);return Ee(n)?t.reject(n):t.resolve(r),t}).then(function(e){return vn(e,function(e){a.push({name:e.name,size:e.size,type:e.type})}),ns(e)}).then(function(e){vn(e,function(e,t){a[t].u8a=e}),o.resolve(a)}).catch(function(e){o.reject(e)}),o},e.domShowInputDatatime=function(e,n={}){let r=Ae(n,"type","");"date"!==r&&"datetime-local"!==r&&(r="datetime-local");let i=Ae(n,"eleRef",null);Du(i)||(i=document.activeElement);let o=Ga(),a="drf"+Wu(),s="GrpDomShowDatatime";Aw(`[name=${s}]`);let l=!1,c="";if("date"===r)Lu(e)&&(l=!0,c=e);else if(MI(e)){l=!0,c=t(e).format("YYYY-MM-DDTHH:mm")}Be(c)&&(c=`value="${c}"`);let u=document.createElement("div");u.setAttribute("name",s),u.style.width=0,u.style.height=0,u.style.overflow="hidden",u.innerHTML=`\n <div style="transform:translateY(-100%);">\n <input id="${a}" type="${r}" style="opacity:0;" ${l?c:""} />\n </div>\n `;let d=null;Du(i)?i.parentNode.insertBefore(u,i.nextSibling):document.querySelector("body").appendChild(u);let f=!1;function h(){if(!f){f=!0;try{d.removeEventListener("change",g,!0),i.removeEventListener("focusout",m,!0)}catch(e){}if(Aw(`[name=${s}]`),Be(p)){let e="";e="date"===r?p:`${p}:00`,o.resolve(e)}}}let p="";function g(e){try{p=e.target.value}catch(e){console.log(e)}h()}function m(e){setTimeout(()=>{h()},50)}return setTimeout(()=>{d=ux("#"+a),d.addEventListener("change",g,!0),d.showPicker()},1),i.addEventListener("focusout",m,!0),o},e.domTooltip=function(e,t,n={}){let r=null,i=null;function o(){null!==r&&r.destroy(!0),e.setAttribute("tippystate",""),clearInterval(i)}let a={arrow:!0,theme:"dark",placement:"bottom",delay:150};n=Ee(n)?kI(a,n):a;let s=t;t||(s=e.innerHTML);let l=Me(e.getAttribute("tippystate"));if(e.setAttribute("tippystate","5"),l)return;s=`<div style="text-align:left;">${s}</div>`;let c=qS;qS.default&&(c=qS.default),r=c(e,{...n,content:s,allowHTML:!0,onHidden(){o()},onDestroy(){r=null,o()}}),r.show(),i=setInterval(()=>{let t=e.getAttribute("tippystate");Me(t)?(t=Wi(t),t-=1,e.setAttribute("tippystate",t),t<=0&&o()):o()},1e3)},e.domTriggerEvent=FI,e.domVirtualCreate=jS,e.domVirtualCreateQueue=function(){return new function(){let e=GS(1);return async function(t,n={}){return e(jS,t,n)}}},e.downloadExcelFileFromData=dR,e.downloadExcelFileFromDataDyn=async function(e,t="data",n,r){let i=await dR(e,t,n);return""!==Ae(i,"error","")?Promise.reject(i.error):i},e.downloadFileFromB64=function(e,t){if(!Xa())return void console.log("no window");if(!Be(e))return void console.log("no filename");let n=document.createElement("a");n.href=t,n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)},e.downloadFileFromBlob=JS,e.downloadFileFromText=function(e,t,n=!0){if(!Xa())return void console.log("no window");if(!Be(e))return void console.log("invalid filename");if(!ke(t))return void console.log("invalid content");if(!we(n))return void console.log("withBOM is not a boolean");let r;r=n?new Blob(["\ufeff",t]):new Blob([t]),JS(e,r)},e.downloadFileFromU8Arr=function(e,t){if(!Xa())return void console.log("no window");if(!Be(e))return void console.log("no filename");if(!ss(t))return void console.log("no data");JS(e,fR(t))},e.dtmapping=hR,e.dtpick=pR,e.estimateTicks=function(e,t,n={}){if(!Me(e))throw new Error("rmin is not a number");if(e=xr(e),!Me(t))throw new Error("rmax is not a number");if(e===(t=xr(t))){let t=null;t=0===e?1:Math.abs(e/10);let n=mR(t,{returnDigit:!0});return t=gR(t,n),{tickNum:3,tickInterval:t,tickPositions:[e-t,e,e+t],tickDig:n}}if(e>t)throw new Error(`rmin[${e}] > rmax[${t}]`);let r=Ae(n,"testTickNums");Nn(r)||(r=[3,4,5]);let i=e,o=t,a=yR(i),s=yR(o),l=Math.max(a.r,s.r),c=Math.log10(l),u=i/l,d=o/l,f=(u+d)/2,h=d-u,p=[];vn(r,e=>{let t=h/(e-1),n=mR(t,{returnDigit:!0});n=Math.min(n,2),vn(Ki(n,-1,-1),n=>{let r=n-c;r=Math.max(r,0);let i=Zl(t,n),o=i-1/Math.pow(10,n);o=gR(o,n);let a=i+1/Math.pow(10,n);a=gR(a,n);let s=[o,i,a];s=aa(s,e=>e>0);let g=gR(f,n),m=g-1/Math.pow(10,n);m=gR(m,n);let y=g+1/Math.pow(10,n);y=gR(y,n);let v=[m,g,y];vn(s,t=>{let i=l*t;i=gR(i,r),vn(v,o=>{let a=[],s=[];{let i=o-(e-1)/2*t;for(let o=0;o<e;o++){let e=i+o*t;e=gR(e,n),a.push(e);let c=l*e;c=gR(c,r),s.push(c)}}let c=(f=a)&&f.length?f[0]:void 0;var f;let g=Aa(a);if(c>u||g<d)return!0;let m=(u-c)/h,y=(g-d)/h,v=(m+y)/2,b=0;vn(s,e=>{Ir(e)&&b++});let A=b/e,w=0;vn(a,e=>{0===e&&w++});let x=w/e,I=0;vn(a,e=>{.5===e&&I++});let C=I/e,S=0;vn(a,e=>{1===e&&S++});let E=S/e,k={diff:v,rngCenter:o,numInt:b,ratInt:A,num0:w,rat0:x,num5:I,rat5:C,num10:S,rat10:E,overMin:m,overMax:y,fitness:v+.2*n+.1*e+1.5*m+1.5*y+(1-.25*A)+(1-.4*x)+(1-.3*C)+(1-.3*E),idg:n,tickNum:e,_tickDig:n,_tickInterval:t,_tickPositions:a,tickDig:r,tickInterval:i,tickPositions:s};p.push(k)})})})}),p=Da(p,"fitness");let g=Ae(p,0);return{tickNum:g.tickNum,tickInterval:g.tickInterval,tickPositions:g.tickPositions,tickDig:g.tickDig}},e.evEmit=$i,e.evEmitDelay=fs,e.evem=Oi,e.execCli=async function(e,t=[],n={}){if(!Be(e))return{ok:!1,stdout:"",stderr:"",code:null,error:"command 須為非空字串",durationMs:0,attempts:0};Ce(t)||(t=[]),Se(n)||(n={});let{maxRetries:r=0,retryDelayMs:i=5e3,...o}=n,a=Ae(o,"cwd",null);Be(a)?o.cwd=a:o.cwd=process.cwd();let s=Ae(o,"input",null);Be(s)?o.input=s:o.input=void 0;let l=Ae(o,"env",null);Se(l)?o.env=l:o.env=void 0;let c=Ae(o,"validate",null);Ui(c)||Be(c)?o.validate=c:o.validate=void 0;let u=Ae(o,"onStdout",null);Ui(u)?o.onStdout=u:o.onStdout=void 0;let d=Ae(o,"onStderr",null);Ui(d)?o.onStderr=d:o.onStderr=void 0,r=go(r)?Wi(r):0,i=_i(i)?Wi(i):5e3;let f=Ae(o,"timeoutMs",null);_i(f)?o.timeoutMs=Wi(f):o.timeoutMs=12e4,o.timeoutMs=Math.min(o.timeoutMs,Ri);let h,p=Ae(o,"maxBuffer",null);_i(p)?o.maxBuffer=Wi(p):o.maxBuffer=10485760;let g=0;for(let n=0;n<=r;n++){if(n>0){let e=Math.min(i*n,15e3);await hs(e)}if(h=await UR(e,t,o),g=n+1,h.ok)return h.attempts=g,h;if(PR.has(h))break;if(h.error.includes("ENOENT"))break;if(2===h.code)break}return h.attempts=g,h},e.execCliCore=TR,e.execCliJsonRpc=async function(e,t=[],n=[],r={}){let i=Date.now(),o=(e,t,n={})=>({ok:!1,results:{},responses:[],error:t,errorType:e,durationMs:Date.now()-i,exitCode:null,...n});if(!Be(e))return o("params","command 須為非空字串");if(Ce(t)||(t=[]),!Ce(n))return o("params","requests 須為陣列");for(let e=0;e<n.length;e++){let t=n[e];if(!Se(t)||!Be(t.method)&&!Be(t.notify))return o("params",`requests[${e}] 須為含method或notify之物件`)}Se(r)||(r={});let a=Ae(r,"timeoutMs");_i(a)||(a=12e4);let s=Ae(r,"jsonrpc");!0===s&&(s="2.0"),Be(s)||(s=null);let l=Ae(r,"continueOnError");we(l)||(l=!1);let c=Ae(r,"onNotify"),u=Ae(r,"onServerRequest"),d=new Map,f=null,h=0,p={},g=[],m=(e,t,n)=>{let r={};return null!==s&&(r.jsonrpc=s),void 0!==e&&(r.id=e),r.method=t,void 0!==n&&(r.params=n),r},y=zR(e,t,{cwd:Ae(r,"cwd"),env:Ae(r,"env"),timeoutMs:a,exitGraceMs:Ae(r,"exitGraceMs"),onStderr:Ae(r,"onStderr"),onLine:e=>{if(""===(e=e.trim()))return;let t;try{t=JSON.parse(e)}catch{return}if(!Se(t))return;let n=void 0!==t.id&&null!==t.id;if(n&&("result"in t||"error"in t)){let e=d.get(t.id);return void(e&&(d.delete(t.id),e.pm.resolve({msg:t})))}n&&Be(t.method)?Ui(u)&&u(t,y):Ui(c)&&c(t)},onExit:e=>{f=e;for(let[t,n]of d)n.pm.resolve({exit:e});d.clear()}}),v=(e,t)=>{let n="exit";e.timeout?n="timeout":Be(e.error)&&e.error.includes("ENOENT")&&(n="notfound");let r=Be(e.error)?e.error:`子進程於回應前結束(code ${e.code})`;return o(n,`${t}: ${r}`,{results:p,responses:g,exitCode:e.code})},b=null;for(let e of n){if(!Be(e.method)){if(!await y.writeLine(JSON.stringify(m(void 0,e.notify,e.params)))){b=v(f||await y.stop(),e.notify);break}continue}let t=h;h+=1;let n=Ga();if(d.set(t,{method:e.method,pm:n}),!await y.writeLine(JSON.stringify(m(t,e.method,e.params)))){d.delete(t),b=v(f||await y.stop(),e.method);break}let r=await n;if(r.exit){b=v(r.exit,e.method);break}let i=r.msg;if("error"in i&&null!==i.error&&void 0!==i.error){if(p[e.method]=null,g.push({id:t,method:e.method,result:null,error:i.error}),!l){let t=Ae(i,"error.message");b=o("rpc",`${e.method}: ${Be(t)?t:JSON.stringify(i.error)}`,{results:p,responses:g});break}}else p[e.method]=i.result,g.push({id:t,method:e.method,result:i.result,error:null})}let A=await y.stop();if(b)return b.durationMs=Date.now()-i,null===b.exitCode&&(b.exitCode=A.code),b;let w=g.filter(e=>null!==e.error);if(w.length>0){let e=w[0],t=Ae(e,"error.message");return{ok:!1,results:p,responses:g,error:`${e.method}: ${Be(t)?t:JSON.stringify(e.error)}`,errorType:"rpc",durationMs:Date.now()-i,exitCode:A.code}}return{ok:!0,results:p,responses:g,error:"",errorType:"",durationMs:Date.now()-i,exitCode:A.code}},e.execCliSession=zR,e.execJsCode=async function(e,t={}){e=o.resolve(e);let n=(await import(s.pathToFileURL(e).href)).default;if(!Ui(n))throw new Error(`the default export of [${e}] is not a function`);return await n(t)},e.execProcess=function(e,t,n={}){let i=Ae(n,"mode");"spawn"!==i&&"exec"!==i&&"execFile"!==i&&(i="spawn");let o=Ae(n,"cbStdout"),a=Ae(n,"cbStderr"),s=Ae(n,"codeCmd"),l=GR.normalizeCodeCmd(s),c=Ae(n,"useChcp");we(c)||(c=!1);let u=Ae(n,"timeout");u=!Me(u)||u<=0?null:Math.min(u,Ri);let d=Ga();if(!Ce(t)&&!ke(t))return d.reject("args is not an array or string"),d;let f=Be(t);if(Be(t)?t=[t]:ke(t)&&(t=[]),!da(i,["spawn","exec","execFile"]))return d.reject(`invalid mode[${i}]`),d;if(null===l)return d.reject(`codeCmd[${s}] is not a supported encoding`),d;let h=n=>{if("spawn"===i){let t=na(e,1),n=ra(e,1);if('"'===t||'"'===n||"'"===t||"'"===n)return void d.reject(`prog[${e}] of spawn does not need to add quotes`)}let s=null;try{if("spawn"===i)s=r.spawn(e,t,{windowsHide:!0,shell:!1});else if("exec"===i){let n="";c&&(n="cmd /c chcp 65001>nul &&");let i=e=>(e=String(e),/\s/.test(e)&&!e.includes('"')?`"${e}"`:e),o=i(e),a=f?t[0]:t.map(i).join(" ");s=r.exec(`${n} ${o} ${a} & exit`,{windowsHide:!0,encoding:"buffer"})}else"execFile"===i&&(s=r.execFile(e,t,{windowsHide:!0,encoding:"buffer"}))}catch(e){let t=QR(e);return void d.reject(`spawn[${t.code}]:\n${t.message}`)}let h=null,p=!1;s.on("error",e=>{null!==h&&clearTimeout(h);let t=QR(e);d.reject(`spawn[${t.code}]:\n${t.message}`)});let g=l.label;"system"===l.mode?g=n:"auto"===l.mode&&(g="auto");let m=GR.createDecoder(g,{labelSystem:n}),y=GR.createDecoder(g,{labelSystem:n}),v=[],b="auto"===l.mode,A=(e,t,n)=>r=>{let i=r;Buffer.isBuffer(i)||(i=Buffer.from(String(i)));let o=t.write(i);v.push({which:e,text:o,buf:b?i:null}),""!==o&&Ui(n)&&n(o)};s.stdout&&s.stdout.on("data",A("out",m,o)),s.stderr&&s.stderr.on("data",A("err",y,a));null!==u&&(h=setTimeout(()=>{p=!0,s&&s.pid&&kR(s.pid).catch(()=>{})},u)),s.on("close",e=>{null!==h&&clearTimeout(h);let t=(()=>{let e=(e,t,n)=>{let r=t.end();""!==r&&(v.push({which:e,text:r,buf:null}),Ui(n)&&n(r))};if(e("out",m,o),e("err",y,a),b){let e=(e,t)=>{if(!t.switched)return;let n=GR.createDecoder(t.label),r=null;for(let t of v)t.which===e&&(t.text=null!==t.buf?n.write(t.buf):"",r=t);let i=n.end();""!==i&&null!==r&&(r.text+=i)};e("out",m),e("err",y)}let t="";for(let e of v)t+=e.text;return t})();p?d.reject(`timeout[${u}ms]:\n${t}`):0!==e?d.reject(`code[${e}]:\n${t}`):d.resolve(t)})};return"fixed"===l.mode?h(null):GR.getSystemCodePage().then(h).catch(e=>{let t=QR(e);d.reject(`spawn[${t.code}]:\n${t.message}`)}),d},e.execProcessKillPid=kR,e.filepathToTree=function(e,t={}){if(!Nn(e))return{};let n=Ae(t,"delimiter");Be(n)||(n="❯");let r=Ae(t,"bindRoot");Be(r)||(r="");let i=Be(r),o="";o=i?r:"root";let a=Ae(t,"soryItems"),s=An(e,(e,t)=>{"folder"!==e.type&&"file"!==e.type&&(e.type="file");let r=(e=>{let t=ta(e=(e=e.replace(/\\\\/g,"\\")).replace(/\\/g,"/"),"/");return{ss:t,cfp:vo(t,n)}})(e.path);return{ind:t,type:e.type,ss:r.ss,data:Qi(e)}}),l=e=>{let t=or(e),r=[];for(let i=0;i<t;i++){let t=[];for(let n=0;n<=i;n++)t.push(e[n]);let o=vo(t,n);r.push({id:o,name:e[i]})}return r},c=-1,u=[],d={};vn(s,e=>{let t=null;t=[o];let r=null;r=o;let i=or(e.ss)-1;vn(e.ss,(o,a)=>{let s=a<i||"folder"===e.type;t.push(o);let f=null,h=null;a===i&&(f=e.ind,h=e.data);let p=vo(t,n),g=l(t);if(Ne(d,p)){let t=d[p],n="folder"===Ae(t,"_type","");if(!n&&s)throw console.log("kpLv[id]",t),console.log("v",e),new Error(`id[${p}] is unrecognized from a file to folder`);if(!n&&!s)throw console.log("kpLv[id]",t),console.log("v",e),new Error(`id[${p}] get repeat data from two files`);if(n&&!s)throw console.log("kpLv[id]",t),console.log("v",e),new Error(`id[${p}] is unrecognized from a folder to file`);if(Ee(d[p].data)&&Ee(h))throw console.log("kpLv[id]",t),console.log("v",e),new Error(`id[${p}] get repeat data from two folders`);if(null===d[p].data&&Ee(h)){d[p]._indOri=f,d[p].data=h;let e=d[p]._indNormalize,t=u[e];u[e]={...h,type:t.type,path:t.path}}}else{c++;let e=c,n=null;n=s?{_indOri:f,_indNormalize:e,ns:or(t),ts:Qi(t),pathInfors:g,_type:"folder",type:"array",numOfChilren:-1,id:p,parentId:r,text:o,children:[],data:h}:{_indOri:f,_indNormalize:e,ns:or(t),ts:Qi(t),pathInfors:g,_type:"file",type:"node",numOfChilren:-1,id:p,parentId:r,text:o,data:h},d[p]=n,u.push({...Ae(d[p],"data",{}),type:d[p]._type,path:"/"+vo(t,"/")})}r=p})});let f=KR(d);if(f=Da(f,"id"),f=Da(f,"ns"),Ui(a)){let e=[];vn(oL(f,"ns"),(t,n)=>{vn(oL(t,"parentId"),(t,r)=>{let i=a(t,r,n);e=[...e,...i]})}),f=e}let h=[],p=[];vn(f,e=>{"folder"===e._type?h.push(e):p.push(e)});let g=oL(h,"ns"),m=oL(p,"ns"),y=XR(An(h,"ns")),v=XR(An(p,"ns")),b=null;{let e=[o];b=[{_indOri:null,_indNormalize:null,ns:or(e),ts:Qi(e),pathInfors:l(e),_type:"folder",type:"array",numOfChilren:-1,id:o,parentId:"",text:o,children:[],data:null}]}let A={};A[o]="0.children";let w={};w[o]="0";for(let e=2;e<=y;e++){vn(g[e],e=>{let t=Ae(A,e.parentId,"");if(!Be(t))throw console.log("kpPathFd",A),console.log("v",e,e.parentId),new Error(`invalid parentId[${e.parentId}] in folder`);let n=Ae(b,t);if(Ce(n)||yu(b,t,[]),n=Ae(b,t),!Ee(px(n,{id:e.id}))){n.push({...e,children:[]});let r=`${t}.${or(n)-1}`;A[e.id]=`${r}.children`,w[e.id]=r}})}let x=Qi(b),I={};for(let e=2;e<=v;e++){vn(m[e],e=>{let t=Ae(A,e.parentId,"");if(!Be(t))throw console.log("kpPathFd",A),console.log("v",e,e.parentId),new Error(`invalid parentId[${e.parentId}] in file`);let n=Ae(b,t);if(!Ce(n))throw console.log("treeItems",b),console.log("k",t),console.log("v",e),new Error("無預先建置資料夾");if(!Ee(px(n,{id:e.id}))){n.push(e);let r=`${t}.${or(n)-1}`;I[e.id]=r,w[e.id]=r}})}return{treeItems:b,treeItemsFolder:x,kpPath:w,fpsNormalize:u}},e.files2data=function(e){if(!Ce(e))return Promise.reject("invalid files");let t=Ga(),n=An(e,function(e){return{name:e.name,size:e.size,type:e.type}});return ts(e).then(function(e){let r=An(e,function(e){return{b64:e}}),i=aL(n,r);t.resolve(i)}).catch(function(e){t.reject(e)}),t},e.flattenToConn=Fu,e.flattenTree=function(e,t={}){if(Ce(e)){if(0===e.length)return[]}else{if(!Se(e))return[];if(Bn(e))return[]}let n=Ae(t,"bindKey",null);Be(n)||(n="id");let r=Ae(t,"bindChildren",null);Be(r)||(r="children");let i=!1;Se(e)&&(i=!0,e=[e]);let o=[];return Bu(e,(e,t,i)=>{let a=Ae(e,n,null),s=Ae(e,r,null);if(a){let n=function(e){let t=[e[0]];for(let n=1;n<e.length;n++){let i=e[n];t.push(r),t.push(i)}return t}([...i,t]);if(o.push({...e,level:(or(n)-1)/2,nk:n}),s)return s}}),i&&(o=o[0]),o},e.floor=function(e,t=0){return go(t)||(t=0),t=Wi(t),Me(e)?new Kl(e).toDecimalPlaces(t,Kl.ROUND_FLOOR).toNumber():""},e.fsBuildReadStreamText=function(e){if(!DR(e))throw new Error("fp is not a file");let t=Oi(),n=a.createReadStream(e,{encoding:"utf8"});n.on("error",e=>{$i(t,"error",[{fun:"stream",msg:e}],{tag:"fsBuildReadStreamText"})}),process.nextTick(()=>{$i(t,"create",[],{tag:"fsBuildReadStreamText"})});let r=l.createInterface({input:n,crlfDelay:1/0});return r.on("line",e=>{$i(t,"line",[e],{tag:"fsBuildReadStreamText"})}),r.on("error",()=>{}),n.on("close",()=>{$i(t,"close",[],{tag:"fsBuildReadStreamText"})}),t},e.fsBuildWriteStreamText=function(){let e=null;return{create:t=>{let n=Ga();return e=a.createWriteStream(t,{flags:"w",encoding:"utf8"}),e.on("finish",()=>{n.resolve()}),e.on("error",e=>{n.reject(e)}),n},write:t=>{e.write(t+"\n")},end:()=>{let t=Ga();return e.on("close",()=>{t.resolve()}),e.end(),t}}},e.fsCleanFolder=function(e){return cL(e,{path:o,fs:a})},e.fsCleanFolderCore=cL,e.fsCopyFile=function(e,t,n={}){return uL(e,t,{path:o,fs:a,...n})},e.fsCopyFileCore=uL,e.fsCopyFolder=function(e,t,n={}){return fL(e,t,{path:o,fs:a,...n})},e.fsCopyFolderCore=fL,e.fsCreateFile=function(e,t,n={}){return mL(e,t,{fs:a,...n})},e.fsCreateFileCore=mL,e.fsCreateFolder=yL,e.fsCreateFolderCore=lL,e.fsDeleteFile=function(e){return vL(e,{fs:a})},e.fsDeleteFileCore=vL,e.fsDeleteFileSafe=async function(e,t={}){return await bL(e,{fs:a,...t})},e.fsDeleteFileSafeCore=bL,e.fsDeleteFolder=wL,e.fsDeleteFolderCore=AL,e.fsDeleteFolderSafe=async function(e,t={}){return await xL(e,{fs:a,...t})},e.fsDeleteFolderSafeCore=xL,e.fsDownloadFile=async function(e,t){return IL(e,t,{fs:a,Readable:c.Readable,pipeline:u.pipeline})},e.fsDownloadFileCore=IL,e.fsEvem=function(e={}){let t=Ae(e,"fd");Be(t)||(t="./_evps");let n=Ae(e,"polling");we(n)||(n=!1);let r=Ae(e,"timeInterval");_i(r)||(r=100),r=Wi(r);let i=Ae(e,"timeBinaryInterval");_i(i)||(i=300),i=Wi(i);let s=Ae(e,"keySys");Be(s)||(s="[::pkg_content::]"),EL(t)||yL(t);let l=kL(t,{polling:n,timeInterval:r,timeBinaryInterval:i});l.on("change",e=>{if("add"!==e.type&&"change"!==e.type)return;let t=SL(e.fp),n="";try{n=a.readFileSync(e.fp,"utf8"),n=za(n)}catch(e){}Ee(n)&&c.emit(t,{[s]:n})});let c=Oi(),u=c.emit;return c.emit=function(e,n){let r=!1;if(Ee(n)&&(r=Ne(n,s)),r){let t=Ae(n,s,null),r=Ae(t,"pkg",""),i=Ae(t,"time",""),o=this;return $i(c,e,[r,i],{tag:"fsEvem",funEmit:(e,...t)=>u.call(o,e,...t)})}((e,n)=>{let r=o.resolve(t,e);ke(n)||(n=ar(n)),a.writeFileSync(r,n,"utf8")})(e,{pkg:n,time:CL()})},c.clear=()=>{l.clear(),wL(t)},c},e.fsExists=function(e){return BR(e,{fs:a})},e.fsExistsCore=BR,e.fsGetFileBasicHash=function(e,t={}){return BL(e,{fs:a,crypto:f,...t})},e.fsGetFileBasicHashCore=BL,e.fsGetFileHash=function(e,t={}){return NL(e,{fs:a,crypto:f,...t})},e.fsGetFileHashCore=NL,e.fsGetFileXxHash=function(e,t={}){return ML(e,{fs:a,...t})},e.fsGetFileXxHashCore=ML,e.fsGetFilesInFolder=function(e,t=1){return QL(e,t,{path:o,fs:a})},e.fsGetFilesInFolderCore=QL,e.fsGetFilesWithHashInFolder=LL,e.fsGetFilesWithHashInFolderCore=RL,e.fsGetFolderBasicHash=function(e,t={}){return PL(e,{path:o,fs:a,crypto:f,...t})},e.fsGetFolderBasicHashCore=PL,e.fsGetFoldersInFolder=function(e,t=1){return OL(e,t,{path:o,fs:a})},e.fsGetFoldersInFolderCore=OL,e.fsIsFile=DR,e.fsIsFileCore=FR,e.fsIsFolder=EL,e.fsIsFolderCore=sL,e.fsMergeFiles=async function(e,t,n={}){return UL(e,t,{fs:a,...n})},e.fsMergeFilesCore=UL,e.fsReadJson=function(e){let t=null,n=MR(e,{fs:a});if(n.error)return n;let r=n.success,i=null;try{i=JSON.parse(r)}catch(e){t=e}return null!==t?{error:t}:{success:i}},e.fsReadText=NR,e.fsReadTextCore=MR,e.fsRenameFile=function(e,t){return $L(e,t,{fs:a})},e.fsRenameFileCore=$L,e.fsRenameFolder=function(e,t){return HL(e,t,{fs:a})},e.fsRenameFolderCore=HL,e.fsSrlog=function(e={}){let n=Ae(e,"fdSys","");Be(n)||(n=o.resolve(),n=n.replaceAll("\\","/"));let r=Ae(e,"fdLog","");Be(r)||(r="./syslog"),EL(r)||yL(r);let i=Ae(e,"dlm","");Be(i)||(i="ꓹ");let s=Ae(e,"useTime",null);we(s)||(s=!0);let l=Ae(e,"useLoc",null);we(l)||(l=!0);let c=Ae(e,"useLocRela",null);async function u(e,n,...o){let c=(()=>{let e=t().format("YYYY-MM-DD");return`${r}/${e}.log`})(),u=An(o,e=>{let t="";return t=Se(e)||Ce(e)?JSON.stringify(e):we(e)?e?"true":"false":Na(e),t}),d="";s&&(d=`[${e}]\n`,a.appendFileSync(c,d,"utf8")),l&&(d=`[${n}]\n`,a.appendFileSync(c,d,"utf8")),d=`${vo(u,`${i} `)}\n\n`,a.appendFileSync(c,d,"utf8")}return we(c)||(c=!0),function(...e){let t="";s&&(t=CL());let r="",i="",o=[];if(l){if(o=ta((new Error).stack,"\n"),vn(o,e=>{if((e=Zo(e)).indexOf("file:")<0)return!0;if(e.indexOf("fsSrlog.mjs")>=0)return!0;return vn(ta(e," "),e=>{if(e.indexOf("file:")>=0)return r=e,!1}),!Be(r)&&void 0}),!Be(r))throw console.log("stackLines",o),new Error("can not parse stackLines");"("===na(r,1)&&(r=ia(r,1)),")"===ra(r,1)&&(r=Qa(r,1));try{r=decodeURIComponent(r)}catch(e){console.log(e)}i=r,i=ia(i,8),i=i.replace(n,"")}let a=[];s&&(a=[...a,`[${t}]`]);let d="";l&&(d=r,c&&(d=i),a=[...a,`[${d}]`]),a=[...a,...e],console.log(...a),u(t,d,...e)}},e.fsSyncFolder=function(e,t,n={}){return jL(e,t,{path:o,fs:a,crypto:f,...n})},e.fsSyncFolderCore=jL,e.fsTask=function(e,t={}){let n=Ae(t,"fdStorage","");Be(n)||(n="./_tkfs");let r=Ae(t,"levelLimit","");_i(r)||(r=1),r=Wi(r);let i=Ae(t,"typeHash","");Be(i)||(i="md5");let o=Ae(t,"timeInterval");sa(o)||(o=6e4),o=Wi(o),o=Math.min(o,Ri),yL(n);let s=Oi(),l=!1,c=`${n}/fpHash.json`,u=`${n}/fpResult.json`,d=async()=>{if(!0===l)return;let t=(()=>{let e={};try{e=za(a.readFileSync(c,"utf8"))}catch(e){}return e})(),n=await(async()=>{let t={};return EL(e)?(vn(await LL(e,r,{type:i}),e=>{t[e.path]=e.hash}),t):t})(),o=An(t,(e,t)=>({path:t,hash:e})),u=An(n,(e,t)=>({path:t,hash:e}));vn(zL(o,u,"path").infor,(e,r)=>{if("same"===e)return!0;let i=Ae(t,r,""),o=Ae(n,r,""),u="";u="del"===e?i:o;let d=e,f=r,h=pL(r);l=!0;let p=Ga();return $i(s,"change",[{type:d,fp:f,fn:h,hash:u,pm:p}],{tag:"fsTask",funSettle:e=>{p.reject(e)}}),p.then(()=>{let e=Qi(t);e[f]=n[f],(e=>{try{let t=ar(e);a.writeFileSync(c,t,"utf8")}catch(e){}})(e)}).catch(()=>{}).finally(()=>{l=!1}),!1})},f=()=>{let e={};try{e=za(a.readFileSync(u,"utf8"))}catch(e){}return e},h=(e={})=>{try{let t=ar(e);a.writeFileSync(u,t,"utf8")}catch(e){}},p=!1,g=setInterval(()=>{p||(p=!0,d().catch(()=>{}).finally(()=>{p=!1}))},o);return s.getResult=(e,t)=>{let n=`${e}|${t}`,r=Ae(f(),n,[]);return Ce(r)||console.log(`result for key[${n}] is not an array`),r},s.getAndEliminateResult=(e,t)=>{let n=`${e}|${t}`,r=f(),i=Ae(r,n,[]);return Ce(i)||console.log(`result for key[${n}] is not an array`),r=((e,t)=>{let n={};return vn(e,(e,r)=>{Ae(ta(r,"|"),0,"")!==t&&(n[r]=e)}),n})(r,e),h(r),i},s.setResult=(e,t,n)=>{Ce(n)||(console.log("result is not an array, default to []"),n=[]);let r=`${e}|${t}`,i=f();i[r]=n,h(i)},s.clear=()=>{clearInterval(g)},s},e.fsTaskCp=function(e,t,n={}){EL(e)||yL(e),EL(t)||yL(t);let r=`${e}/fpHash.json`,i=`${t}/fpHash.json`,o=e=>{let t={};try{t=za(a.readFileSync(e,"utf8"))}catch(e){}return t},s=(e,t)=>{try{let n=ar(t);a.writeFileSync(e,n,"utf8")}catch(e){}},l=(e,t)=>Ae(o(e),t,""),c=(e,t,n)=>{let r=o(e);r[t]=n,s(e,r)},u=(e,t)=>{let n=o(e);Ne(n,t)&&delete n[t],s(e,n)},d=()=>o(r),f=e=>s(r,e),h=e=>l(r,e),p=()=>o(i),g=e=>s(i,e),m=e=>l(i,e),y=(e,t)=>c(i,e,t),v=e=>u(i,e),b=e=>{let t=[];return vn(e,(e,n)=>{t.push({fp:n,hash:e})}),t},A={buildSrc:()=>{let e=Oi();return e.set=(t,n)=>{((e,t)=>{c(r,e,t)})(t,n),$i(e,"set",[{type:"set",fp:t,hash:n}],{tag:"fsTaskCp"})},e.get=h,e.remove=t=>{(e=>{u(r,e)})(t),$i(e,"remove",[{type:"remove",fp:t}],{tag:"fsTaskCp"})},e.readKp=d,e.writeKp=f,e},buildTar:()=>{let e=Oi(),t=Pu(300),n=WL(r);return n.on("change",n=>{t(()=>{(async()=>{let t=d();if(!Ee(t))return"no src";let n=p(),r=b(t),i=zL(b(n),r,"fp",{withInfor:!1}),o=Ga();return o.then(e=>{g(t)}).catch(()=>{}),$i(e,"change",[{kpSrc:t,kpTar:n,kpCmp:i,pm:o}],{tag:"fsTaskCp",funSettle:e=>{o.reject(e)}}),o})().catch(()=>{})})}),e.set=y,e.get=m,e.remove=v,e.readKp=p,e.writeKp=g,e.clear=n.clear,e}};return A},e.fsTreeFolder=function(e,t=1){return TL(e,t,{path:o,fs:a})},e.fsTreeFolderCore=TL,e.fsTreeFolderWithHash=function(e,t=1,n={}){return qL(e,t,{path:o,fs:a,crypto:f,...n})},e.fsTreeFolderWithHashCore=qL,e.fsWatchFile=WL,e.fsWatchFolder=kL,e.fsWriteJson=function(e,t,n={}){let r=null;if(!Se(t)&&!Ce(t))return{error:"inp is not an object or array"};let i=Ae(n,"useFormat",null);we(i)||(i=!1);let o="";try{o=i?JSON.stringify(t,null,2):JSON.stringify(t)}catch(e){r=e}return null!==r?{error:r}:_L(e,o,{fs:a})},e.fsWriteText=function(e,t){return _L(e,t,{fs:a})},e.fsWriteTextCore=_L,e.genGradientColor=function(e){if(Mn(e))return{};let t;try{t=mu.toRgba(e)}catch(e){return{}}function n(e,t){return e.a=t,mu.toRgbaString(e)}return{linearGradient:{x1:0,x2:0,y1:0,y2:1},stops:[[0,n(t,.4)],[1,n(t,.9)]]}},e.genID=Wu,e.genIDSeq=function(){return XL()},e.genPm=Ga,e.getBufferSize=tP,e.getClearPathName=hL,e.getCsvStrFromData=nP,e.getDataFromExcelFileU8Arr=lP,e.getDataFromExcelFileU8ArrDyn=async function(e,t,n){let r=await lP(e,t);return""!==Ae(r,"error","")?Promise.reject(r.error):r},e.getEnv=function(){let e=Xa(),t="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope;return e=e||t,{isBrowser:e,isWebWorker:t,isNode:"undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node}},e.getErrorMessage=ER,e.getExcelU8ArrFromData=async function(e,t="data"){if(!Nn(e)){return{error:"no data"}}Be(t)||(t="data");let n=null,r=KS(e,t);return Ne(r,"error")?r:(n=await uR(r),Ne(n,"error"),n)},e.getExcelU8ArrFromWorkbook=uR,e.getExcelWorkbookFromData=KS,e.getExcelWorkbookFromWorksheet=XS,e.getExcelWorksheetFromData=cr,e.getFileAccept=yx,e.getFileBasicHash=PP,e.getFileHash=async function(e,t={}){if(!Ja(e)&&!LP(e))return console.log("inp",e),Promise.reject("inp is not a Blob or File");let n=Ae(t,"type","");Be(n)||(n="sha512");let r=Ae(t,"chunkSize");return Me(r)||(r=67108864),r=xr(r),Ne({MD5:"md5","SHA-1":"sha1","SHA-256":"sha256","SHA-384":"sha384","SHA-512":"sha512",md5:"md5",sha1:"sha1",sha256:"sha256",sha384:"sha384",sha512:"sha512",xxhash64:"xxhash64"},n)?"xxhash64"===n?OP(e,t):PP(e,t):Promise.reject(`type[${n}] must be one of [ 'md5', 'sha1', 'sha256', 'sha384', 'sha512', 'xxhash64' ]`)},e.getFileName=pL,e.getFileNameExt=function(e){if(!Be(e))return"";let t=Lo(pL(e),".");if(or(t)<=1)return"";let n="";try{n=Aa(t)}catch(e){}return n},e.getFileTrueName=SL,e.getFileType=mx,e.getFileXxHash=OP,e.getGlobal=tc,e.getObjSize=function(e){let t=0,n=function e(n){if(null!=n)switch(typeof n){case"number":t+=8;break;case"string":t+=2*n.length;break;case"boolean":t+=4;break;case"object":let r=Object.prototype.toString.call(n).slice(8,-1);if("Object"===r||"Array"===r)for(let t in n)n.hasOwnProperty(t)&&e(n[t]);else t+=2*n.toString().length}return t}(e),r=function(e){return e<1024?e+" bytes":e<1048576?(e/1024).toFixed(3)+" KiB":e<1073741824?(e/1048576).toFixed(3)+" MiB":(e/1073741824).toFixed(3)+" GiB"}(n);return{int:n,str:r}},e.getPathParent=gL,e.getTimeBetween=function(e,t,n="days"){let r=zP(n);if(""===r)return[];let i=qP(e,n),o=qP(t,n);return null===i||null===o||e>=t?[]:An(HP(o.diff(i,n)+1),function(e){return i.clone().add(e,n).format(r)})},e.getTimeFromUnit=zP,e.getTimeHp=jP,e.getTimeObject=qP,e.getTimeRange=function(e,n){if(!MI(e))return"無起始時間";if(void 0===n&&(n=e),!MI(n))return"結束時間格式錯誤";let r=t(e,"YYYY-MM-DDTHH:mm:ss"),i=t(n,"YYYY-MM-DDTHH:mm:ss"),o=r.format("YYYY-MM-DD"),a=i.format("YYYY-MM-DD");if(o===a){let t=i.format("HH:mm");if(e===n)return WP(e)+" 至 無";if(e<n)return WP(e)+" 至 "+t;if(e>n)return WP(e)+" 至 "+t+" (起始時間大於結束時間)"}else{if(o<a)return WP(e)+" 至 "+WP(n);if(o>a)return WP(e)+" 至 "+WP(n)+" (起始時間大於結束時間)"}return""},e.getUserAgent=_P,e.getUserAgentDyn=async function(e=null,t){return Nn(t)||(t=["https://cdn.jsdelivr.net/npm/ua-parser-js@2.0.3/dist/ua-parser.min.js"]),await uc(t),_P(e)},e.getltdtkeys=zn,e.haskey=Ne,e.html2str=async function(e){if(!Be(e))return"";let t=await async function(){let e="htmlToText";if(Ui(Ae(y,e)))return y;if(Ui(Ae(y,["default",e])))return y.default;let t=globalThis,n=null;if(await gs(()=>(n=Ae(t,"ht",null),Ee(n)),{attemptNum:4e3,timeInterval:50}),Ui(Ae(n,e)))return n;if(Ui(Ae(n,["default",e])))return n.default;throw console.log("ht",y,"g.ht",t.ht),new Error("invalid ht, g.ht, g.ht.default, use script for import")}();return t.htmlToText(e,{wordwrap:!1,selectors:[{selector:"script",format:"skip"},{selector:"style",format:"skip"}]})},e.htmlDecode=Ou,e.htmlEncode=os,e.importResources=uc,e.interp1=function(e,t,n={}){if(!Ce(e))return{err:"ps is not an array"};{let e=!Me(t),n=!Ce(t);if(e&&n)return{err:"px is not a number or an array"}}let r=function(e,t={}){if(or(e)<=0)return[];let n=Ae(t,"keyX");Be(n)||(n="x");let r=Ae(t,"keyY");Be(r)||(r="y");let i=[];return vn(e,e=>{let t=null,o=null;Ce(e)&&or(e)>=2?(t=Ae(e,0),o=Ae(e,1)):(t=Ae(e,n,null),o=Ae(e,r,null)),Me(t)&&Me(o)&&(t=vr(t),o=vr(o),i.push({x:t,y:o}))}),i}(e,n);if(Ae(r,"err"))return Ae(r,"err");if(0===or(r))return{err:"ps(length=0) is not an effective array",ps:e,psEff:r};if(1===or(r))return{err:"ps(length=1) is one point only",ps:e,psEff:r};let i=function(e){let t=!0,n=!0;for(let r=1;r<or(e);r++){let i=e[r-1],o=e[r];if(t&&i.x>o.x&&(t=!1),n&&i.x<o.x&&(n=!1),i.x===o.x)return{err:`x can not be equal: i=${r}, x=${i.x}`}}return t?GP:n?JP:"no"}(r);if("no"===i)return{err:"psEff is not increasing or decreasing"};i===JP&&(i=GP,r=ka(r));let o=!Ce(t);o&&(t=[t]);let a=function(e,t={}){if(or(e)<=0)return[];let n=Ae(t,"keyX");Be(n)||(n="x");let r=[];return vn(e,e=>{let t=null;t=Me(e)?vr(e):Ce(e)&&or(e)>=1?Ae(e,0):Ae(e,n,null),Me(t)&&(t=vr(t),r.push({x:t}))}),r}(t,n),s=Ae(n,"mode");"linear"!==s&&"stairs"!==s&&"blocks"!==s&&(s="linear");let l,c=An(a,(e,t)=>{let i=Ae(e,"x"),o=null;try{"linear"===s?o=function(e,t){let n=XP(e,t);if(n!==VP)return n;let r=null;for(let n=1;n<or(e);n++){let i=e[n-1],o=e[n];if(i.x<=t&&t<=o.x){r=((t-i.x)*o.y+(o.x-t)*i.y)/(o.x-i.x);break}}return null===r?{err:YP}:r}(r,i):"blocks"===s?o=function(e,t){let n=XP(e,t);if(n!==VP)return n;let r=null;for(let n=1;n<or(e);n++){let i=e[n-1],o=e[n],a=i.x,s=o.x;if(a<=t&&t<=s){r=o.y;break}}return null===r?{err:YP}:r}(r,i):"stairs"===s&&(o=function(e,t,n={}){let r=Ae(n,"xMin");if(ua(r)){if(r>e[0].x)return{err:`xMin=${r} > ps[0].x=${e[0].x}`};r===e[0].x||(e=[{x:r,y:e[0].y},...e])}let i=Ae(n,"xMax");if(ua(i)){if(i<e[or(e)-1].x)return{err:`xMax=${i} < ps[size(ps)-1].x=${e[or(e)-1].x}`};if(i===e[or(e)-1].x);else{let t={x:i,y:e[or(e)-1].y};e=[...e,t]}}let o=XP(e,t);if(o!==VP)return o;let a=null;for(let n=0;n<or(e);n++){let r=Ae(e,n-1,null),i=Ae(e,n,null),o=Ae(e,n+1,null),s=i.x;r&&(s=(r.x+i.x)/2);let l=i.x;if(o&&(l=(o.x+i.x)/2),s<=t&&t<=l){a=i.y;break}}return null===a?{err:YP}:a}(r,i,n))}catch(e){o={err:e.toString()}}return o});return l=o?c[0]:c,l},e.isDate=rP,e.isDev=function(){return!!location&&Ya(location.href,"localhost")},e.isEle=Du,e.isEleExistByID=function(e){return!!Be(e)&&!(null===document.getElementById(e))},e.isEmail=function(e){return!!Be(e)&&(!(e.length>254)&&(!(e.indexOf("@")>64)&&ZP.test(e)))},e.isErr=function(e){return eO(e)},e.isIE=nd,e.isNarrow=function(e){if(!Xa())return!1;let t=window.innerWidth>0&&window.innerWidth<=1024,n=!1;if(e){let t=Ae(e,"clientWidth",0);n=t>0&&t<=700}return t||n},e.isStrHasCapital=iO,e.isStrHasLetter=oO,e.isStrHasLowerCase=aO,e.isStrHasNumber=sO,e.isStrHasSpace=lO,e.isStrHasSymbol=cO,e.isUserIdentify=function(e){let t=Ga();if(!Be(e))return t.reject("身份證字號非有效字串"),t;if(10!==e.length)return t.reject("身份證字號長度非10位"),t;if(isNaN(e.substring(1,10))||!/^[A-Z]$/.test(e.substring(0,1)))return t.reject("身份證格式錯誤,字首需大寫英文"),t;e="ABCDEFGHJKLMNPQRSTUVXYWZIO".indexOf(e.substring(0,1))+10+""+e.substring(1,10);let n=parseInt(e.substring(0,1))+9*parseInt(e.substring(1,2))+8*parseInt(e.substring(2,3))+7*parseInt(e.substring(3,4))+6*parseInt(e.substring(4,5))+5*parseInt(e.substring(5,6))+4*parseInt(e.substring(6,7))+3*parseInt(e.substring(7,8))+2*parseInt(e.substring(8,9))+parseInt(e.substring(9,10)),r=parseInt(e.substring(10,11));return n%10!=0&&10-n%10!==r?(t.reject("非有效身份證"),t):(t.resolve(),t)},e.isUserName=function(e){let t=Ga();return Be(e)?(t.resolve(),t):(t.reject("請填入姓名"),t)},e.isUserPw=function(e,t={}){let n=[],r=Ae(t,"useKeyForError",null);we(r)||(r=!1);let i=Ae(t,"useOnlyOneError",null);if(we(i)||(i=!1),ke(e)||(r?n.push("keyInvalidPassword"):n.push("密碼非有效字串")),or(n)>0)throw new Error(n[0]);let o=Ae(t,"numLenMin","");(!Ir(o)||Wi(o)<0)&&(o=8),o=Wi(o);let a=Ae(t,"numLenMax","");if((!Ir(a)||Wi(a)<0)&&(a=30),a=Wi(a),o>a&&(r?n.push("keyLimNumLenMinOrMax"):n.push("設定密碼最小長度大於最大長度")),or(n)>0)throw new Error(n[0]);let s=Ae(t,"noSpace",null);if(we(s)||(s=!0),s&&(lO(e)&&(r?n.push("keyLimHasSpace"):n.push("密碼不可包含空白字元")),i&&or(n)>0))throw new Error(n[0]);let l=Ae(t,"onlyAscii",null);if(we(l)||(l=!0),l&&(/[^\x20-\x7e]/.test(e)&&(r?n.push("keyLimNonAsciiChar"):n.push("密碼僅允許使用英文大小寫、數字及特殊符號")),i&&or(n)>0))throw new Error(n[0]);if(or(e)<o&&(r?n.push("keyLimNumLenMin"):n.push(`密碼長度須大於等於${o}個字元`)),i&&or(n)>0)throw new Error(n[0]);if(or(e)>a&&(r?n.push("keyLimNumLenMax"):n.push(`密碼長度須小於等於${a}個字元`)),i&&or(n)>0)throw new Error(n[0]);let c=Ae(t,"requireLetter",null);we(c)||(c=!1);let u=Ae(t,"requireUppercase",null);we(u)||(u=!0);let d=Ae(t,"requireLowercase",null);we(d)||(d=!0);let f=Ae(t,"requireDigit",null);we(f)||(f=!0);let h=Ae(t,"requireSpecial",null);if(we(h)||(h=!0),c&&!oO(e)&&(r?n.push("keyLimRequireLetter"):n.push("密碼須包含至少一個英文字母")),i&&or(n)>0)throw new Error(n[0]);if(u&&!iO(e)&&(r?n.push("keyLimRequireUppercase"):n.push("密碼須包含至少一個大寫英文字母")),i&&or(n)>0)throw new Error(n[0]);if(d&&!aO(e)&&(r?n.push("keyLimRequireLowercase"):n.push("密碼須包含至少一個小寫英文字母")),i&&or(n)>0)throw new Error(n[0]);if(f&&!sO(e)&&(r?n.push("keyLimRequireDigit"):n.push("密碼須包含至少一個數字")),i&&or(n)>0)throw new Error(n[0]);if(h&&!cO(e)&&(r?n.push("keyLimRequireSpecial"):n.push("密碼須包含至少一個特殊符號")),i&&or(n)>0)throw new Error(n[0]);let p=Ae(t,"forbiddenChars",null);if(Ce(p)||(p=[]),or(p)>0){for(let t of p)if(e.includes(t)){if(r){n.push("keyLimForbiddenChar");break}n.push(`密碼不可包含字元:${t}`)}if(i&&or(n)>0)throw new Error(n[0])}let g=Ae(t,"commonPasswordBlacklist",null);if(Ce(g)||(g=gO),or(g)>0){let t=e.toLowerCase();if(g.some(e=>ke(e)&&t===e.toLowerCase())&&(r?n.push("keyLimCommonPassword"):n.push("此密碼為常見弱密碼,不允許使用")),i&&or(n)>0)throw new Error(n[0])}let m=Ae(t,"account",""),y=Ae(t,"noConsecutiveCharsFromAccount",null);we(y)||(y=!1);let v=Ae(t,"consecutiveCharsMinMatch","");if(_i(v)||(v=3),v=Wi(v),y&&ke(m)&&or(m)>=v){let t=[...m.toLowerCase()],o=e.toLowerCase(),a=!1;for(let e=0;e<=t.length-v;e++){let n=t.slice(e,e+v).join("");if(o.includes(n)){a=!0;break}}if(a&&(r?n.push("keyLimConsecutiveCharsFromAccount"):n.push(`密碼不可包含與帳號相同之${v}個以上連續字元`)),i&&or(n)>0)throw new Error(n[0])}if(or(n)>0)throw new Error(n.join(" | "));return!0},e.isWindow=Xa,e.isab=xe,e.isarr=Ce,e.isarr0=Dn,e.isarr1=KP,e.isbigint=Ma,e.isblob=Ja,e.isbol=we,e.isday=Lu,e.isearr=Nn,e.iseobj=Ee,e.iser=Mn,e.isernot=dx,e.isestr=Be,e.isfile=LP,e.isfun=Ui,e.isint=Ir,e.ismonth=ur,e.isn0int=tO,e.isn0num=nO,e.isnan=De,e.isnbr=Fe,e.isnint=VS,e.isnnum=function(e){return!!Me(e)&&xr(e)<0},e.isnull=kn,e.isnum=Me,e.isobj=Se,e.isobj0=Bn,e.isp0int=go,e.isp0num=rO,e.ispint=_i,e.ispm=ps,e.ispnum=sa,e.isstr=ke,e.isstr0=Fn,e.istime=MI,e.istimeTZ=pO,e.istimems=uO,e.istimemsTZ=hO,e.isu16arr=eP,e.isu8arr=ss,e.isundefined=En,e.j2o=za,e.judge=function(e,t,n,r={}){if(!Me(e))throw new Error("x1 is not a number");if(!Me(n))throw new Error("x2 is not a number");let i=Ae(r,"withPreciseNum");if(we(i)||(i=!0),i&&(e=mR(e),n=mR(n)),"==="===t)return e===n||mO(e,n);if("!=="===t)return function(e,t){return!mO(e,t)}(e,n);if(">="===t)return e===n||function(e,t){return new Kl(e).gte(t)}(e,n);if(">"===t)return function(e,t){return new Kl(e).gt(t)}(e,n);if("<="===t)return e===n||function(e,t){return new Kl(e).lte(t)}(e,n);if("<"===t)return function(e,t){return new Kl(e).lt(t)}(e,n);throw console.log(t),new Error(`invalid op[${t}]`)},e.keysmat2ltdt=yO,e.ltdt2vrtsable=function(e,t=[],n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:[];if(!Nn(e))return i("invalid ltdt");if(!Ce(t))return i("invalid mergerowkeys");let o=!1;if(vn(e,function(e){Ee(e)||(o=!0)}),o)return i("invalid ltdt, every element must be an effective object");let a=zn(e),s=[];vn(e,function(e){let t={};vn(a,function(n){t[n]={value:e[n].value,style:e[n].style,rowspan:1}}),s.push(t)});let l=ka(s),c=or(l);vn(a,function(e){if(da(e,t)){let t=Ki(0,c,0),n=Ki(0,c,0),r=Ki(1,c+1,0);vn(l,function(i,o){if(o>0){ca(l[o-1][e].value,l[o][e].value)&&(t[o-1]=1,t[o]=1,r[o]=r[o-1]+1),1===t[o-1]&&1===t[o]&&(n[o-1]=0,n[o]=1)}}),vn(l,function(i,o){1===t[o]&&(1===n[o]?l[o][e].rowspan=r[o]:l[o][e].rowspan=null)})}});let u=ka(l);return r?{state:"success",msg:u}:u},e.ltdtDiff=function(e,t,n={}){if(!Ce(e))return{};if(!Ce(t))return{};if(0===or(e)&&0===or(t))return{};let r=Ae(n,"empty");Be(r)||(r="∗empty∗");let i=zn(e),o=zn(t),a=vO(i,o),s={};vn(a,(e,t)=>{s[t]=e});let l=Ko(sr(e,a,{empty:r}),sr(t,a,{empty:r}),{...n,mode:"matrix"});return l.dfs=An(l.dfs,e=>{let t={};vn(e,e=>{e.k=s[e.k],t[e.k]=e});let n={};return vn(a,e=>{n[e]=t[e]}),n}),l},e.ltdtDiffByKey=zL,e.ltdtkeys2mat=sr,e.ltdtkeysheads2mat=lr,e.ltdtmapping=function(e,t,n=""){if(!Nn(e))return[];if(!Nn(t))return[];let r=An(e,e=>hR(e,t,n));return r},e.ltdtmerge=aL,e.ltdtpick=function(e,t){if(!Nn(e))return[];if(!Nn(t))return[];let n=An(e,e=>pR(e,t));return n},e.ltdtpull=function(e,t,n){return Ce(e)&&Ce(t)&&Be(n)&&gn(e,e=>Se(e))?0===t.length?e:gn(t,e=>Se(e))?AO(e,t,n):[]:[]},e.mat2ltdt=function(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:[];if(!Nn(e))return r("invalid mat");if(e.length<=1)return r("invalid mat, at least 2 rows are required");let i=!1;if(vn(e,function(e){Nn(e)||(i=!0)}),i)return r("invalid mat, every row must be an effective array");var o,a;let s=yO(Yo(e)[0],(a=null==(o=e)?0:o.length)?bo(o,1,a):[],{returnWithStateAndMsg:!0});return"error"===s.state?r(`keysmat2ltdt: ${s.msg}`):n?s:s.msg},e.matConcat=function(e,t){if(!Ce(e))return[];if(!Ce(t))return[];if(0===or(e)&&0===or(t))return[];let n=or(e),r=or(Ae(e,0,[])),i=or(t),o=or(Ae(t,0,[])),a=[],s=Math.max(n,i);for(let n=0;n<s;n++){let i=[],s=-1;for(let t=0;t<r;t++){s++;let r=Ae(e,`${n}.${t}`,null);i[s]=r}for(let e=0;e<o;e++){s++;let r=Ae(t,`${n}.${e}`,null);i[s]=r}a[n]=i}return a},e.matDiff=function(e,t,n={}){return Ce(e)&&Ce(t)?0===or(e)&&0===or(t)?{}:Ko(e,t,{...n,mode:"matrix"}):{}},e.matat=function(e,t,n){return Nn(e)?An(e,function(e){return mo(e,t,n)}):[]},e.now2str=CL,e.now2strp=function(){if(!Ui(t))throw new Error("invalid dayjs");return t().format("YYYYMMDDHHmmss")},e.nowDay2str=function(){if(!Ui(t))throw new Error("invalid dayjs");return t().format("YYYY-MM-DD")},e.nowms2str=function(){if(!Ui(t))throw new Error("invalid dayjs");return t().format("YYYY-MM-DDTHH:mm:ss.SSSZ")},e.nowms2strp=function(){if(!Ui(t))throw new Error("invalid dayjs");return t().format("YYYYMMDDHHmmssSSS")},e.o2j=ar,e.obj2b64=function(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:"",i="";try{let t=ar(e,!1,{returnWithStateAndMsg:!0});if("error"===t.state)return r(`o2j: ${t.msg}`);let n=wO(t.msg,{returnWithStateAndMsg:!0});if("error"===n.state)return r(`str2b64: ${n.msg}`);i=n.msg}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.obj2pb64=function(e,t,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(void 0===e)return i("invalid data");if(!Be(t))return i("invalid key");let o="";try{let n=ar({data:e},!1,{returnWithStateAndMsg:!0});if("error"===n.state)return i(`o2j: ${n.msg}`);o=xO(n.msg,t,!0)}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.obj2str=function(e,t="Uint8Array",n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(En(e))return i("invalid data");ke(t)?t=[t]:Ce(t)||(t=["Uint8Array"]);let o="";try{o=JSON.stringify(e,function(e,n){return n=QO.escape(n),t.indexOf("Uint8Array")>=0&&(n=QO.u8arr2b64(n)),t.indexOf("Uint16Array")>=0&&(n=QO.u16arr2b64(n)),n})}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.obj2stru8arr=RO,e.obj2u8arr=function(e,t={}){let n=[],r=new Uint8Array,i=Ae(t,"returnWithStateAndMsg",null);we(i)||(i=!1);let o=e=>i?{state:"error",msg:e}:new Uint8Array;if(!KP(e)&&!Ee(e))return o("invalid data, data is not an effective object or a non-empty array");let a=[],s=[];function l(e){a.push(tP(e)),s.push(e)}try{let t=RO(e,{returnWithStateAndMsg:!0});if("error"===t.state)return o(`obj2stru8arr: ${t.msg}`);let i=t.msg;l(PO(i.results)),vn(i.binarys,e=>{l(e)});let c=a,u=PO(JSON.stringify(c)),d=new Uint8Array(8);ds(tP(u),d),n.push(d),n.push(u),vn(s,e=>{n.push(e)}),r=OO(n)}catch(e){return o(e.toString())}return i?{state:"success",msg:r}:r},e.objSortBy=UO,e.objSortByKeys=function(e,t){if(!Ee(e))return{};if(!Nn(t))return{};let n={};return vn(t,(e,t)=>{n[e]=t}),UO(e,(e,t)=>Ae(n,t,0))},e.oo=function(e){if(void 0!==e)return za(ar(e))},e.openLink=function(e){if(!Be(e))return;let t=document.createElement("a");t.href=e,t.target="_blank",document.body.appendChild(t),t.click(),document.body.removeChild(t)},e.pb642obj=function(e,t,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!Be(e))return i("invalid b64");if(!Be(t))return i("invalid key");let o=null;try{if(o=za(Xr(e,t,!0)).data,void 0===o)return i("can not decrypt b64 with key, or the decrypted data is invalid")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.pm2resolve=_S,e.pmChain=function(e,t=null){if(!Ce(e)){let e=Ga();return e.reject("pms is not an array"),e}return e.reduce((e,t)=>e.then(t),Promise.resolve(t))},e.pmConvertResolve=WS,e.pmDebounce=function(e=300){return new function(e){let t=[],n=null,r=null,i="wait";return _i(e)||(e=300),e=Wi(e),function(o,...a){Ui(o)?((null===r||"wait"===i)&&(r=Date.now()),t.push({func:o,input:a,output:null}),null===n&&"wait"===i&&(n=setInterval(()=>{if(null===r)throw new Error("invalid tLast");if("wait"!==i)return;if("wait"===i&&0===t.length)return clearInterval(n),n=null,void(r=null);let o=Date.now();if(o-r>e){i="doing",r=o;let e=t.pop();t=[];let n=e.func(...e.input);ps(n)?n.then(t=>{e.output=t}).catch(t=>{e.output={err:t}}).finally(()=>{i="wait",r=Date.now()}):(e.output=n,i="wait")}"wait"===i&&0===t.length&&(clearInterval(n),n=null,r=null)},20))):console.log("func is not a function")}}(e)},e.pmHook=$O,e.pmHookReject=function(e,t=()=>{}){return Ui(e)?(Ui(t)||(t=()=>{}),$O(e,e=>{if("afterCatch"===e.mode)return t(e.data)})):null},e.pmIni=function(){return Promise.resolve()},e.pmInvResolve=function(e,t={}){if(!ps(e))throw new Error("pm is not a promise");let n=Ae(t,"thenExtractData");we(n)||(n=!1);let r=Ga();return e.then(e=>{n&&(e=Ae(e,"data"));let t=Ae(e,"state",""),i=Ae(e,"msg",{});"success"===t?r.resolve(i):"cancelled"===t?r.reject({reason:"cancelled"}):r.reject(i)}).catch(e=>{r.reject(e)}),r},e.pmKeyMutex=function(){return new function(){let e=new Map,t=new Map;return async(n,r)=>{let i=(e.get(n)||Promise.resolve()).then(async()=>await r(),async()=>await r());e.set(n,i.catch(()=>{})),t.set(n,(t.get(n)||0)+1);try{return await i}finally{let r=t.get(n)-1;r<=0?(t.delete(n),e.delete(n)):t.set(n,r)}}}},e.pmMap=function(e,t,n=0){let r={},i=!1,o=Ga();if(!Ce(e)&&!Se(e))return o.reject("rs is not an array or object"),o;if(0===or(e))return o.resolve([]),o;let a=!1;if(Se(e)){a=!0;let t=[];vn(e,(e,n)=>{t.push({k:n,v:e})}),e=t}let s=YS(n);return s.on("message",function(n){if(i)return;let l,c=s.get();if(Ui(t)){let e=c.key,n=c.value;if(a&&(e=c.value.k,n=c.value.v),l=t(n,e),!ps(l))throw new Error("return of fun is not a promise")}else l=c.value;l.then(e=>{r[c.key]=e}).catch(e=>{i=!0,s.clear(),o.reject(e)}).finally(()=>{s.cb(),or(r)===or(e)&&o.resolve(KR(r))})}),vn(e,(e,t)=>{s.push({key:t,value:e})}),o},e.pmQueue=GS,e.pmSeries=ac,e.pmThrottle=function(){let e=Oi(),t=[],n=null,r=!1;return function(i,...o){let a=Ga();if(!Ui(i))return void console.log("func is not a function");let s=Wu();return t.push({id:s,func:i,input:o}),null===n&&(n=setInterval(async()=>{if(r)return;r=!0;let i=t.pop();for(let n=0;n<t.length;n++){let r=t[n].id,i={state:"cancelled"};e.emit(r,i)}if(t=[],i){let t,n=i.id;t=Ui(i.func)?await _S(i.func)(...i.input):{state:"error",msg:"fun is not a function"},e.emit(n,t)}r=!1,r||0!==t.length||(clearInterval(n),n=null)},20)),e.once(s,e=>{"success"===e.state?a.resolve(e.msg):"cancelled"===e.state?a.reject({reason:"cancelled"}):a.reject(e.msg)}),a}},e.pmTimeout=async function(e,t,n={}){if(!ps(e))throw new Error("invalid pm");if(!go(t))throw new Error(`invalid ms[${t}]`);t=Math.min(t,Ri);let r=Ae(n,"label",null);Be(r)||(r="");let i,o=`timeout[${t}ms]`;Be(r)&&(o=`${r} ${o}`);let a=Ga();return i=setTimeout(()=>{let e=new Error(o);e.code="TIMEOUT",e.timeout=t,a.reject(e)},t),Promise.race([e,a]).finally(()=>clearTimeout(i))},e.preciseNum=mR,e.pseudoRandom=qO,e.pseudoRandomIntRange=function(e=0,t=100,n="start1"){if(Ir(e)||(e=0),e=Wi(e),Ir(t)||(t=100),e>(t=Wi(t)))throw new Error(`vstart[${e}] > vend[${t}]`);let r=qO(n)*(t-e+1)+e;return r=Math.floor(r),r},e.pseudoRandomIntsNdpRange=function(e=0,t=100,n,r="start1"){if(Ir(e)||(e=0),e=Wi(e),Ir(t)||(t=100),t=Wi(t),_i(n)||(n=1),n=Wi(n),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let i=qO(r,!0),o=[],a=t-e;for(let n=0;n<=a;n++){let n=i()*(t-e+1)+e;n=Math.floor(n),o.push(n)}let s=$a(o,{returnIndex:!0});return s=Yo(s,n),s},e.pseudoRandomIntsRange=function(e=0,t=100,n,r="start1"){if(Ir(e)||(e=0),e=Wi(e),Ir(t)||(t=100),t=Wi(t),_i(n)||(n=1),n=Wi(n),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let i=qO(r,!0),o=[];for(let r=1;r<=n;r++){let n=i()*(t-e+1)+e;n=Math.floor(n),o.push(n)}return o},e.pseudoRandomRange=function(e=0,t=1,n="start1"){if(Me(e)||(e=0),e=xr(e),Me(t)||(t=1),e>(t=xr(t)))throw new Error(`vstart[${e}] > vend[${t}]`);return qO(n)*(t-e)+e},e.pseudoRandomsRange=function(e=0,t=1,n=1,r="start1"){if(Me(e)||(e=0),e=xr(e),Me(t)||(t=1),t=xr(t),_i(n)||(n=1),n=Wi(n),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let i=qO(r,!0),o=[];for(let r=1;r<=n;r++){let n=i()*(t-e)+e;o.push(n)}return o},e.queue=YS,e.random=WO,e.randomIntRange=function(e=0,t=100){if(Ir(e)||(e=0),e=Wi(e),Ir(t)||(t=100),e>(t=Wi(t)))throw new Error(`vstart[${e}] > vend[${t}]`);let n=WO()*(t-e+1)+e;return n=Math.floor(n),n},e.randomIntsNdpRange=function(e=0,t=100,n){if(Ir(e)||(e=0),e=Wi(e),Ir(t)||(t=100),t=Wi(t),_i(n)||(n=1),n=Wi(n),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let r=function(e,t,n){return t=(n?pn(e,t,n):void 0===t)?1:wr(t),(v(e)?XO:KO)(e,t)}(Ki(e,t+1),n);return r},e.randomIntsRange=function(e=0,t=100,n){if(Ir(e)||(e=0),e=Wi(e),Ir(t)||(t=100),t=Wi(t),_i(n)||(n=1),n=Wi(n),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let r=[];for(let i=1;i<=n;i++){let n=WO()*(t-e+1)+e;n=Math.floor(n),r.push(n)}return r},e.randomRange=function(e=0,t=1){if(Me(e)||(e=0),e=xr(e),Me(t)||(t=1),e>(t=xr(t)))throw new Error(`vstart[${e}] > vend[${t}]`);return WO()*(t-e)+e},e.randomsRange=function(e=0,t=1,n=1){if(Me(e)||(e=0),e=xr(e),Me(t)||(t=1),t=xr(t),_i(n)||(n=1),n=Wi(n),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let r=[];for(let i=1;i<=n;i++){let n=WO()*(t-e)+e;r.push(n)}return r},e.rang=function(e,t,n=2){if(!Me(e))return[];if(e=xr(e),!Me(t))return[];if(t=xr(t),_i(n)||(n=2),(n=Wi(n))<=0)throw new Error(`num[${n}] <= 0`);let r=(t-e)/n,i=e,o=[];for(let e=0;e<=n;e++)o.push(i),i+=r;return o},e.rep=function(e,t){return Be(e)&&go(t)?eU(e,t):""},e.repObj=function(e,t){return Mn(e)?[]:_i(t)?HP(t,ro(e)):[]},e.replace=fc,e.replaceObj=function(e,t){return Be(e)&&Ee(t)?(vn(t,function(e,t){e=Se(e)||Ce(e)?JSON.stringify(e):Na(e)}),vn(t,function(t,n){e=fc(e,n,t)}),e):""},e.replacePlus=function(e,t,n,r=null,i){if(!Be(e)||!Be(t)||!Be(n))return"";if(!ke(i))return"";let o="[\\s\\S]*";Be(r)&&(o="[^"+r+"]*");let a=new RegExp(t+o+n,"g");return e.replace(a,i)},e.round=gR,e.secd=function(e){return Me(e)?1/Nu(e=xr(e)):null},e.sep=ta,e.sepInt=function(e,t,n=!0){if(!Ir(e))return[];if(!go(t))return[];if(!we(n))return[];let r=tU(e/t),i=e-r*t,o=[];for(let e=1;e<=t;e++){let t=r;e<=i&&(t=r+1),o.push(t)}return n&&(o=ka(o)),o},e.setIntervalHp=function(e,t=1){let n=tc(),r=Xa(),i=e=>{n.setTimeout(e,1)},o=e=>{n.requestAnimationFrame(e)},a=null;a=r?o:i;let s=jP(),l=!0,c=s(),u=()=>{if(!l)return;if(s()-c>=t){try{e()}catch(e){console.log(e)}c=s()}a(u)};return a(u),()=>{l=!1}},e.setTimeoutHp=function(e,t=1){let n=tc(),r=Xa(),i=e=>{n.setTimeout(e,1)},o=e=>{n.requestAnimationFrame(e)},a=null;a=r?o:i;let s=jP(),l=!0,c=s(),u=()=>{if(!l)return;if(s()-c>=t){l=!1;try{e()}catch(e){console.log(e)}}a(u)};return a(u),null},e.sind=Ru,e.split=ea,e.str2aes=xO,e.str2b64=wO,e.str2hint=HO,e.str2md5=function(e,t=!1,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!Be(e))return i("invalid str");we(t)||(t=!1);let o="";try{let n=nU(e);o=t?n.toString(Tr):n.toString(Jr)}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.str2obj=function(e,t="Uint8Array",n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:{};if(!ke(e))return i("invalid data");ke(t)?t=[t]:Ce(t)||(t=["Uint8Array"]);let o={};try{o=JSON.parse(e,function(e,n){return t.indexOf("Uint8Array")>=0&&(n=QO.b642u8arr(n)),t.indexOf("Uint16Array")>=0&&(n=QO.b642u16arr(n)),QO.unescape(n)})}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.str2sha=mU,e.str2sha512=function(e,t=!1,n={}){let r=Ae(n,"returnWithStateAndMsg",null);if(we(r)||(r=!1),!r)return mU(e,512,t);let i=mU(e,512,t,{returnWithStateAndMsg:!0});return"error"===i.state?{state:"error",msg:`str2sha: ${i.msg}`}:i},e.str2u8arr=PO,e.strCompare=yU,e.strCompareForVersion=function(e,t){let n=vU(e),r=vU(t);if(null===n||null===r)return null;for(let e=0;e<3;e++){if(n[e]>r[e])return 1;if(n[e]<r[e])return-1}return 0},e.strDiff=Go,e.strDiffToHtml=function(e,t,n={}){if(!ke(e))return"";if(!ke(t))return"";if(""===e&&""===t)return"";let r=Ae(n,"useNormNewline");we(r)||(r=!0),r&&(e=(e=e.replaceAll("\r\n","\n")).replaceAll("\r","\n"),t=(t=t.replaceAll("\r\n","\n")).replaceAll("\r","\n"));let i=Zd(),o=_o("file","file",e,t),a=i.html(o,{drawFileList:!1,matching:"none",diffStyle:"char",outputFormat:"line-by-line"}),s=Lo(a,"\n"),l="",c=!1;return vn(s,e=>{'<div class="d2h-code-line">'===Zo(e)&&(c=!0),e.indexOf('class="d2h-code-line-prefix"')>=0&&(e=e.replaceAll('class="d2h-code-line-prefix"','class="d2h-code-line-prefix" style="display:inline-block; width: 0.7rem;"')),e.indexOf("<del>")>=0&&(e=e.replaceAll("<del>",'<del style="color:#f26; background:#ffefd5;">')),e.indexOf("<ins>")>=0&&(e=e.replaceAll("<ins>",'<ins style="color:#090; background:#e4fed1;">')),c&&(l+=e+"\n"),c&&"</div>"===Zo(e)&&(c=!1)}),a=l,a},e.strFindFuzz=function(e,t,n=!1){let r="";if(Be(e)||Me(e))r=Na(e);else{if(!Nn(e))return!!n&&0;r=vo(e,"")}if(""===t)return!n||100;if(Mn(t))return!!n&&0;if(Ya(r,t))return!n||100;let i=ta(t," "),o=An(i,function(e){return((e,t)=>{let n=new b$([e],{includeScore:!0}).search(t);n=Ae(n,0);let r=Ae(n,"score",1);return r=1-r,r*=100,r})(r,e)});if(n)return A$(o);{let e=80;return gn(o,function(t){return t>=e})}},e.strFindSimilar=function(e,t){let n="";if(Be(e)||Me(e))n=Na(e);else{if(!Nn(e))return{};n=vo(e,"")}return Me(t)&&(t=Na(t)),Be(t)&&(t=[t]),Nn(t)?function(e,t){let n=[],r=0;for(let i=0;i<t.length;i++){let o=t[i],a=yU(e,o);n.push({target:o,rating:a}),a>n[r].rating&&(r=i)}return{ratings:n,bestMatch:n[r],bestMatchIndex:r}}(n,t=An(t,function(e){return Na(e)})):{}},e.strTruncate=vR,e.strdelleft=ia,e.strdelright=Qa,e.strleft=na,e.strmid=hc,e.strright=ra,e.stru8arr2obj=w$,e.tand=Tu,e.time2day=function(e,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!MI(e))return i("invalid t");let o="";try{o=t(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.time2hour=function(e,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!MI(e))return i("invalid t");let o="";try{o=t(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.time2min=WP,e.timeTZ2day=function(e,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!pO(e))return i("invalid t");let o="";try{e=fO.delTZ(e),o=t(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timeTZ2expire=function(e,t=null,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=(e,t)=>r?{state:"error",msg:e}:{today:null,msg:"",err:t};if(!pO(e))return i("invalid t","時間格式錯誤");try{e=C$(e),t=C$(t)}catch(e){return i(e.toString(),"時間轉換失敗")}return x$(e,t,n)},e.timeTZ2hour=function(e,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!pO(e))return i("invalid t");let o="";try{e=fO.delTZ(e),o=t(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timeTZ2min=function(e,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!pO(e))return i("invalid t");let o="";try{e=fO.delTZ(e),o=t(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH:mm")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timeTZ2past=function(e,t=null,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=(e,t)=>r?{state:"error",msg:e}:{today:null,msg:"",err:t};if(!pO(e))return i("invalid t","時間格式錯誤");try{e=S$(e),t=S$(t)}catch(e){return i(e.toString(),"時間轉換失敗")}return I$(e,t,n)},e.timems2day=function(e,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!uO(e))return i("invalid t");let o="";try{o=t(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DD")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timems2hour=function(e,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!uO(e))return i("invalid t");let o="";try{o=t(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timems2min=function(e,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!uO(e))return i("invalid t");let o="";try{o=t(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timems2time=function(e,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!uO(e))return i("invalid t");let o="";try{o=t(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm:ss")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timemsTZ2day=function(e,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!hO(e))return i("invalid t");let o="";try{e=fO.delTZ(e),o=t(e).format("YYYY-MM-DD")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timemsTZ2expire=x$,e.timemsTZ2hour=function(e,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!hO(e))return i("invalid t");let o="";try{e=fO.delTZ(e),o=t(e).format("YYYY-MM-DDTHH")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timemsTZ2min=function(e,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!hO(e))return i("invalid t");let o="";try{e=fO.delTZ(e),o=t(e).format("YYYY-MM-DDTHH:mm")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timemsTZ2past=I$,e.timemsTZ2time=function(e,n={}){let r=Ae(n,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!hO(e))return i("invalid t");let o="";try{e=fO.delTZ(e),o=t(e).format("YYYY-MM-DDTHH:mm:ss")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.treeObj=Bu,e.treeToFilepath=function(e,t={}){if(!Nn(e))return[];let n=Ae(t,"delimiter");Be(n)||(n="/");let r=Ae(t,"bindRoot");Be(r)||(r="root");let i=[];return Bu(e,(e,t,o)=>{let a=Ae(e,"_type","");if("folder"!==a&&"file"!==a)return e;let s=An(Ae(e,"pathInfors",[]),"name"),l=Ae(s,0,"")===r;if(1===or(s)&&l)return e;l&&(s=Ta(s));let c={type:a,path:n+vo(s,n)};return i.push(c),e},{force:!0}),i},e.trim=Ra,e.u16arr2b64=EO,e.u16arr2u8arr=function(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new Uint8Array;if(!eP(e))return r("invalid u16a");let i=null;try{i=new Uint8Array(e)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.u8arr2ab=function(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new ArrayBuffer;if(!ss(e))return r("invalid u8a");let i=null;try{i=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.u8arr2b64=SO,e.u8arr2blob=fR,e.u8arr2bs=function(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:"";if(!ss(e))return r("invalid u8a");let i="";try{let t=e.length;for(let n=0;n<t;n++)i+=String.fromCharCode(e[n])}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.u8arr2obj=function(e,t={}){let n={},r=Ae(t,"returnWithStateAndMsg",null);we(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:{};if(!ss(e))return i("invalid u8a");try{let t=8,r=e.slice(0,t),o=e.slice(t,tP(e)),a=cs(r),s=o.slice(0,a),l=o.slice(a,tP(o)),c=E$(s,{returnWithStateAndMsg:!0});if("error"===c.state)return i(`u8arr2str: ${c.msg}`);let u=c.msg,d=function(e,t){let n=0,r=0,i=[];return vn(t,t=>{r=n+t;let o=e.slice(n,r);n=r,i.push(o)}),i}(l,JSON.parse(u)),f=E$(d.shift(),{returnWithStateAndMsg:!0});if("error"===f.state)return i(`u8arr2str: ${f.msg}`);let h=w$({results:f.msg,binarys:d},{returnWithStateAndMsg:!0});if("error"===h.state)return i(`stru8arr2obj: ${h.msg}`);n=h.msg}catch(e){return i(e.toString())}return r?{state:"success",msg:n}:n},e.u8arr2str=E$,e.u8arr2u16arr=function(e,t={}){let n=Ae(t,"returnWithStateAndMsg",null);we(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new Uint16Array;if(!ss(e))return r("invalid u8a");let i=null;try{i=new Uint16Array(e)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.urlParse=function(e){if(!Be(e))return{};if(!Be(e=Ae(e=Lo(e,"?"),"[1]")))return{};let t=Lo(e,"&");return t=An(t,function(e){return Lo(e,"=")}),t=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];ei(r,i[0],i[1])}return r}(t),t},e.verifyValue=function(e,t,n={}){let r=!1,i="";if("isstr"===t)ke(e)||(r=!0,i="需要為字串",e="");else if("isnum"===t)Me(e)||(r=!0,i="需要為數字",e=0);else if("isp0num"===t)rO(e)||(r=!0,i="需要為含0的正浮點數",e=0);else if("isn0num"===t)nO(e)||(r=!0,i="需要為含0的負浮點數",e=0);else if("isint"===t)Ir(e)||(r=!0,i="需要為整數",e=0);else if("ispint"===t)_i(e)||(r=!0,i="需要為不含0正整數",e=0);else if("isp0int"===t)go(e)||(r=!0,i="需要為含0正整數",e=0);else if("isnint"===t)VS(e)||(r=!0,i="需要為不含0負整數",e=0);else if("isn0int"===t)tO(e)||(r=!0,i="需要為含0負整數",e=0);else if("custom"===t){let t=Ae(n,"funCustom");if(!Ui(t))throw new Error("invalid opt.funCustom when type='custom'");let o=t(e);if(!we(o.err))throw new Error("invalid return.err for type='custom'");if(o.err&&!Be(o.errmsg))throw new Error("invalid return.errmsg when return.err=true for type='custom'");if(!Me(o.value)&!ke(o.value))throw new Error("invalid return.value for type='custom'");r=o.err,i=o.errmsg,e=o.value}else if(Ui(t)){e=t(e)}else"any"===t?Me(e)||ke(e)||(r=!0,i="需要為字串或數字",e=""):(r=!0,i="需要指定驗證類型",e=null);return{value:e,err:r,errmsg:i}},e.waitFun=gs});
|
|
33
33
|
//# sourceMappingURL=wsemi.umd.js.map
|