wsemi 1.8.69 → 1.8.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (495) hide show
  1. package/README.md +1 -1
  2. package/dist/wsemi.umd.js +4 -4
  3. package/dist/wsemi.umd.js.map +1 -1
  4. package/docs/-_class.mjs.html +2 -2
  5. package/docs/ab2blob.mjs.html +2 -2
  6. package/docs/ab2u8arr.mjs.html +2 -2
  7. package/docs/addExcelWorksheetFromData.mjs.html +2 -2
  8. package/docs/addMonth.mjs.html +2 -2
  9. package/docs/aes2str.mjs.html +12 -9
  10. package/docs/alive.mjs.html +2 -2
  11. package/docs/arr2dt.mjs.html +2 -2
  12. package/docs/arrAccum.mjs.html +2 -2
  13. package/docs/arrAdd.mjs.html +2 -2
  14. package/docs/arrAt.mjs.html +2 -2
  15. package/docs/arrDiff.mjs.html +2 -2
  16. package/docs/arrFilterByKeywords.mjs.html +2 -2
  17. package/docs/arrFilterByNum.mjs.html +2 -2
  18. package/docs/arrFilterByPnum.mjs.html +2 -2
  19. package/docs/arrFilterByPnumAndToLog.mjs.html +2 -2
  20. package/docs/arrFind.mjs.html +2 -2
  21. package/docs/arrGroupByMaxmin.mjs.html +2 -2
  22. package/docs/arrHas.mjs.html +2 -2
  23. package/docs/arrInsert.mjs.html +2 -2
  24. package/docs/arrLookupByMaxmin.mjs.html +2 -2
  25. package/docs/arrMax.mjs.html +2 -2
  26. package/docs/arrMin.mjs.html +2 -2
  27. package/docs/arrMulti.mjs.html +2 -2
  28. package/docs/arrNorm.mjs.html +2 -2
  29. package/docs/arrProduct.mjs.html +2 -2
  30. package/docs/arrPull.mjs.html +2 -2
  31. package/docs/arrPullAt.mjs.html +2 -2
  32. package/docs/arrReduce.mjs.html +2 -2
  33. package/docs/arrReverse.mjs.html +2 -2
  34. package/docs/arrSep.mjs.html +2 -2
  35. package/docs/arrSort.mjs.html +2 -2
  36. package/docs/asind.mjs.html +2 -2
  37. package/docs/atan2d.mjs.html +2 -2
  38. package/docs/atand.mjs.html +2 -2
  39. package/docs/attstr.mjs.html +2 -2
  40. package/docs/b642obj.mjs.html +2 -2
  41. package/docs/b642str.mjs.html +2 -2
  42. package/docs/b642u16arr.mjs.html +2 -2
  43. package/docs/b642u8arr.mjs.html +2 -2
  44. package/docs/binstr.mjs.html +2 -2
  45. package/docs/blob2ab.mjs.html +2 -2
  46. package/docs/blob2b64.mjs.html +2 -2
  47. package/docs/blob2str.mjs.html +2 -2
  48. package/docs/blob2u8arr.mjs.html +2 -2
  49. package/docs/blobs2b64s.mjs.html +2 -2
  50. package/docs/blobs2u8arrs.mjs.html +2 -2
  51. package/docs/bodyLog.mjs.html +2 -2
  52. package/docs/browserView.mjs.html +2 -2
  53. package/docs/browserViewFromBlob.mjs.html +2 -2
  54. package/docs/browserViewFromText.mjs.html +2 -2
  55. package/docs/browserViewFromU8arr.mjs.html +2 -2
  56. package/docs/bs2u8arr.mjs.html +2 -2
  57. package/docs/bufRead.mjs.html +2 -2
  58. package/docs/bufReadDbl.mjs.html +2 -2
  59. package/docs/bufWrite.mjs.html +2 -2
  60. package/docs/bufWriteDbl.mjs.html +2 -2
  61. package/docs/cache.mjs.html +2 -2
  62. package/docs/cacheBd.mjs.html +2 -2
  63. package/docs/cacheSt.mjs.html +2 -2
  64. package/docs/cbol.mjs.html +2 -2
  65. package/docs/cdbl.mjs.html +2 -2
  66. package/docs/ceil.mjs.html +2 -2
  67. package/docs/cfilesize.mjs.html +2 -2
  68. package/docs/cfinancial.mjs.html +2 -2
  69. package/docs/cint.mjs.html +2 -2
  70. package/docs/clearXSS.mjs.html +2 -2
  71. package/docs/clearXSSDyn.mjs.html +2 -2
  72. package/docs/color.mjs.html +2 -2
  73. package/docs/composeToTree.mjs.html +2 -2
  74. package/docs/convertToTree.mjs.html +2 -2
  75. package/docs/copyStrToClipboard.mjs.html +2 -2
  76. package/docs/cosd.mjs.html +2 -2
  77. package/docs/cotd.mjs.html +2 -2
  78. package/docs/createExcelWorkbook.mjs.html +2 -2
  79. package/docs/cscd.mjs.html +2 -2
  80. package/docs/cstr.mjs.html +2 -2
  81. package/docs/day2cht.mjs.html +2 -2
  82. package/docs/debounce.mjs.html +2 -2
  83. package/docs/delay.mjs.html +2 -2
  84. package/docs/dig.mjs.html +2 -2
  85. package/docs/digExp.mjs.html +2 -2
  86. package/docs/domAlert.mjs.html +2 -2
  87. package/docs/domAppend.mjs.html +2 -2
  88. package/docs/domCancelEvent.mjs.html +2 -2
  89. package/docs/domCompareText.mjs.html +2 -2
  90. package/docs/domConvertToPic.mjs.html +2 -2
  91. package/docs/domConvertToPicDyn.mjs.html +2 -2
  92. package/docs/domDetect.mjs.html +2 -2
  93. package/docs/domDrag.mjs.html +2 -2
  94. package/docs/domDragBarAndScroll.mjs.html +2 -2
  95. package/docs/domDragPreview.mjs.html +2 -2
  96. package/docs/domDropFiles.mjs.html +2 -2
  97. package/docs/domElementsFromPoint.mjs.html +2 -2
  98. package/docs/domFadeIn.mjs.html +2 -2
  99. package/docs/domFadeOut.mjs.html +2 -2
  100. package/docs/domFind.mjs.html +2 -2
  101. package/docs/domFinds.mjs.html +2 -2
  102. package/docs/domGetAttr.mjs.html +2 -2
  103. package/docs/domGetBoudRect.mjs.html +2 -2
  104. package/docs/domGetBoudRectRefSelf.mjs.html +2 -2
  105. package/docs/domGetFileAccept.mjs.html +2 -2
  106. package/docs/domGetFiles.mjs.html +2 -2
  107. package/docs/domGetParents.mjs.html +2 -2
  108. package/docs/domGetPointFromEvent.mjs.html +2 -2
  109. package/docs/domGetScrollableParent.mjs.html +2 -2
  110. package/docs/domGetWindowSize.mjs.html +2 -2
  111. package/docs/domIsClientXYIn.mjs.html +2 -2
  112. package/docs/domIsFocused.mjs.html +2 -2
  113. package/docs/domIsStable.mjs.html +2 -2
  114. package/docs/domIsVisible.mjs.html +2 -2
  115. package/docs/domPrepend.mjs.html +2 -2
  116. package/docs/domRemove.mjs.html +2 -2
  117. package/docs/domRenderMarkdownMind.mjs.html +2 -2
  118. package/docs/domRenderMarkdownMindDyn.mjs.html +2 -2
  119. package/docs/domRipple.mjs.html +2 -2
  120. package/docs/domScrollIntoView.mjs.html +2 -2
  121. package/docs/domScrollTo.mjs.html +2 -2
  122. package/docs/domSetAttr.mjs.html +2 -2
  123. package/docs/domShowImages.mjs.html +2 -2
  124. package/docs/domShowImagesDyn.mjs.html +2 -2
  125. package/docs/domShowInputAndGetFiles.mjs.html +2 -2
  126. package/docs/domShowInputAndGetFilesU8Arrs.mjs.html +2 -2
  127. package/docs/domShowInputDatatime.mjs.html +2 -2
  128. package/docs/domTooltip.mjs.html +2 -2
  129. package/docs/domTriggerEvent.mjs.html +2 -2
  130. package/docs/domVirtualCreate.mjs.html +2 -2
  131. package/docs/domVirtualCreateQueue.mjs.html +2 -2
  132. package/docs/downloadExcelFileFromData.mjs.html +2 -2
  133. package/docs/downloadExcelFileFromDataDyn.mjs.html +2 -2
  134. package/docs/downloadFileFromB64.mjs.html +2 -2
  135. package/docs/downloadFileFromBlob.mjs.html +2 -2
  136. package/docs/downloadFileFromText.mjs.html +2 -2
  137. package/docs/downloadFileFromU8Arr.mjs.html +2 -2
  138. package/docs/dtmapping.mjs.html +2 -2
  139. package/docs/dtpick.mjs.html +2 -2
  140. package/docs/estimateTicks.mjs.html +2 -2
  141. package/docs/evem.mjs.html +2 -2
  142. package/docs/examples/ex-blob2b64.html +1 -1
  143. package/docs/examples/ex-clearXSS.html +1 -1
  144. package/docs/examples/ex-clearXSSDyn.html +1 -1
  145. package/docs/examples/ex-colorConverter.html +1 -1
  146. package/docs/examples/ex-domCompareText.html +1 -1
  147. package/docs/examples/ex-domConvertToPic.html +1 -1
  148. package/docs/examples/ex-domDrag.html +1 -1
  149. package/docs/examples/ex-domDropFiles.html +1 -1
  150. package/docs/examples/ex-domIsVisible.html +1 -1
  151. package/docs/examples/ex-domRenderMarkdownMind.html +1 -1
  152. package/docs/examples/ex-domRenderMarkdownMindDyn.html +1 -1
  153. package/docs/examples/ex-domRipple.html +1 -1
  154. package/docs/examples/ex-domScrollIntoView.html +1 -1
  155. package/docs/examples/ex-domScrollTo.html +1 -1
  156. package/docs/examples/ex-domShowImages.html +1 -1
  157. package/docs/examples/ex-domShowImagesDyn.html +1 -1
  158. package/docs/examples/ex-domShowInputAndGetFiles.html +1 -1
  159. package/docs/examples/ex-domTooltip.html +1 -1
  160. package/docs/examples/ex-getFileHash.html +1 -1
  161. package/docs/examples/ex-getUserAgent.html +1 -1
  162. package/docs/examples/ex-getUserAgentDyn.html +1 -1
  163. package/docs/examples/ex-html2str.html +1 -1
  164. package/docs/examples/ex-obj2u8arr-u8arr2obj.html +1 -1
  165. package/docs/examples/ex-openLink.html +1 -1
  166. package/docs/examples/ex-str2aes-aes2str.html +1 -1
  167. package/docs/examples/ex-str2b64-b642str.html +1 -1
  168. package/docs/examples/ex-strFindFuzz.html +1 -1
  169. package/docs/examples/ex-timeTZ2expire-timeTZ2past.html +1 -1
  170. package/docs/examples/ex-xlsx.html +1 -1
  171. package/docs/examples/ex-xlsxDyn.html +1 -1
  172. package/docs/execCli.mjs.html +36 -3
  173. package/docs/execJsCode.mjs.html +2 -2
  174. package/docs/execProcess.mjs.html +2 -2
  175. package/docs/execProcessKillPid.mjs.html +2 -2
  176. package/docs/filepathToTree.mjs.html +2 -2
  177. package/docs/files2data.mjs.html +2 -2
  178. package/docs/flattenToConn.mjs.html +2 -2
  179. package/docs/flattenTree.mjs.html +2 -2
  180. package/docs/floor.mjs.html +2 -2
  181. package/docs/fsBuildReadStreamText.mjs.html +2 -2
  182. package/docs/fsBuildWriteStreamText.mjs.html +2 -2
  183. package/docs/fsCleanFolder.mjs.html +2 -2
  184. package/docs/fsCleanFolderCore.mjs.html +2 -2
  185. package/docs/fsCopyFile.mjs.html +2 -2
  186. package/docs/fsCopyFileCore.mjs.html +2 -2
  187. package/docs/fsCopyFolder.mjs.html +2 -2
  188. package/docs/fsCopyFolderCore.mjs.html +2 -2
  189. package/docs/fsCreateFile.mjs.html +2 -2
  190. package/docs/fsCreateFileCore.mjs.html +2 -2
  191. package/docs/fsCreateFolder.mjs.html +2 -2
  192. package/docs/fsCreateFolderCore.mjs.html +2 -2
  193. package/docs/fsDeleteFile.mjs.html +2 -2
  194. package/docs/fsDeleteFileCore.mjs.html +2 -2
  195. package/docs/fsDeleteFileSafe.mjs.html +2 -2
  196. package/docs/fsDeleteFileSafeCore.mjs.html +2 -2
  197. package/docs/fsDeleteFolder.mjs.html +2 -2
  198. package/docs/fsDeleteFolderCore.mjs.html +2 -2
  199. package/docs/fsDeleteFolderSafe.mjs.html +2 -2
  200. package/docs/fsDeleteFolderSafeCore.mjs.html +2 -2
  201. package/docs/fsDownloadFile.mjs.html +2 -2
  202. package/docs/fsDownloadFileCore.mjs.html +2 -2
  203. package/docs/fsEvem.mjs.html +2 -2
  204. package/docs/fsExists.mjs.html +2 -2
  205. package/docs/fsExistsCore.mjs.html +2 -2
  206. package/docs/fsGetFileBasicHash.mjs.html +2 -2
  207. package/docs/fsGetFileBasicHashCore.mjs.html +2 -2
  208. package/docs/fsGetFileHash.mjs.html +2 -2
  209. package/docs/fsGetFileHashCore.mjs.html +2 -2
  210. package/docs/fsGetFileXxHash.mjs.html +2 -2
  211. package/docs/fsGetFileXxHashCore.mjs.html +2 -2
  212. package/docs/fsGetFilesInFolder.mjs.html +2 -2
  213. package/docs/fsGetFilesInFolderCore.mjs.html +2 -2
  214. package/docs/fsGetFilesWithHashInFolder.mjs.html +2 -2
  215. package/docs/fsGetFilesWithHashInFolderCore.mjs.html +2 -2
  216. package/docs/fsGetFolderBasicHash.mjs.html +2 -2
  217. package/docs/fsGetFolderBasicHashCore.mjs.html +2 -2
  218. package/docs/fsGetFoldersInFolder.mjs.html +2 -2
  219. package/docs/fsGetFoldersInFolderCore.mjs.html +2 -2
  220. package/docs/fsIsFile.mjs.html +2 -2
  221. package/docs/fsIsFileCore.mjs.html +2 -2
  222. package/docs/fsIsFolder.mjs.html +2 -2
  223. package/docs/fsIsFolderCore.mjs.html +2 -2
  224. package/docs/fsMergeFiles.mjs.html +2 -2
  225. package/docs/fsMergeFilesCore.mjs.html +2 -2
  226. package/docs/fsReadJson.mjs.html +2 -2
  227. package/docs/fsReadText.mjs.html +2 -2
  228. package/docs/fsReadTextCore.mjs.html +2 -2
  229. package/docs/fsRenameFile.mjs.html +2 -2
  230. package/docs/fsRenameFileCore.mjs.html +2 -2
  231. package/docs/fsRenameFolder.mjs.html +2 -2
  232. package/docs/fsRenameFolderCore.mjs.html +2 -2
  233. package/docs/fsSrlog.mjs.html +2 -2
  234. package/docs/fsSyncFolder.mjs.html +2 -2
  235. package/docs/fsSyncFolderCore.mjs.html +2 -2
  236. package/docs/fsTask.mjs.html +2 -2
  237. package/docs/fsTaskCp.mjs.html +2 -2
  238. package/docs/fsTreeFolder.mjs.html +2 -2
  239. package/docs/fsTreeFolderCore.mjs.html +2 -2
  240. package/docs/fsTreeFolderWithHash.mjs.html +2 -2
  241. package/docs/fsTreeFolderWithHashCore.mjs.html +2 -2
  242. package/docs/fsWatchFile.mjs.html +2 -2
  243. package/docs/fsWatchFolder.mjs.html +2 -2
  244. package/docs/fsWriteJson.mjs.html +2 -2
  245. package/docs/fsWriteText.mjs.html +2 -2
  246. package/docs/fsWriteTextCore.mjs.html +2 -2
  247. package/docs/genGradientColor.mjs.html +2 -2
  248. package/docs/genID.mjs.html +2 -2
  249. package/docs/genIDSeq.mjs.html +2 -2
  250. package/docs/genPm.mjs.html +2 -2
  251. package/docs/getBufferSize.mjs.html +2 -2
  252. package/docs/getClearPathName.mjs.html +2 -2
  253. package/docs/getCsvStrFromData.mjs.html +2 -2
  254. package/docs/getDataFromExcelFileU8Arr.mjs.html +2 -2
  255. package/docs/getDataFromExcelFileU8ArrDyn.mjs.html +2 -2
  256. package/docs/getEnv.mjs.html +2 -2
  257. package/docs/getErrorMessage.mjs.html +2 -2
  258. package/docs/getExcelU8ArrFromData.mjs.html +2 -2
  259. package/docs/getExcelU8ArrFromWorkbook.mjs.html +2 -2
  260. package/docs/getExcelWorkbookFromData.mjs.html +2 -2
  261. package/docs/getExcelWorkbookFromWorksheet.mjs.html +2 -2
  262. package/docs/getExcelWorksheetFromData.mjs.html +2 -2
  263. package/docs/getFileAccept.mjs.html +2 -2
  264. package/docs/getFileBasicHash.mjs.html +2 -2
  265. package/docs/getFileHash.mjs.html +2 -2
  266. package/docs/getFileName.mjs.html +2 -2
  267. package/docs/getFileNameExt.mjs.html +2 -2
  268. package/docs/getFileTrueName.mjs.html +2 -2
  269. package/docs/getFileType.mjs.html +2 -2
  270. package/docs/getFileXxHash.mjs.html +2 -2
  271. package/docs/getGlobal.mjs.html +2 -2
  272. package/docs/getObjSize.mjs.html +2 -2
  273. package/docs/getPathParent.mjs.html +2 -2
  274. package/docs/getTimeBetween.mjs.html +2 -2
  275. package/docs/getTimeFromUnit.mjs.html +2 -2
  276. package/docs/getTimeHp.mjs.html +2 -2
  277. package/docs/getTimeObject.mjs.html +2 -2
  278. package/docs/getTimeRange.mjs.html +2 -2
  279. package/docs/getUserAgent.mjs.html +2 -2
  280. package/docs/getUserAgentDyn.mjs.html +2 -2
  281. package/docs/getltdtkeys.mjs.html +2 -2
  282. package/docs/global.html +2 -2
  283. package/docs/haskey.mjs.html +2 -2
  284. package/docs/html2str.mjs.html +2 -2
  285. package/docs/htmlDecode.mjs.html +2 -2
  286. package/docs/htmlEncode.mjs.html +2 -2
  287. package/docs/importResources.mjs.html +2 -2
  288. package/docs/index.html +2 -2
  289. package/docs/interp1.mjs.html +2 -2
  290. package/docs/isDate.mjs.html +2 -2
  291. package/docs/isDev.mjs.html +2 -2
  292. package/docs/isEle.mjs.html +2 -2
  293. package/docs/isEleExistByID.mjs.html +2 -2
  294. package/docs/isEmail.mjs.html +2 -2
  295. package/docs/isErr.mjs.html +2 -2
  296. package/docs/isIE.mjs.html +2 -2
  297. package/docs/isNarrow.mjs.html +2 -2
  298. package/docs/isStrHasCapital.mjs.html +2 -2
  299. package/docs/isStrHasLetter.mjs.html +2 -2
  300. package/docs/isStrHasLowerCase.mjs.html +2 -2
  301. package/docs/isStrHasNumber.mjs.html +2 -2
  302. package/docs/isStrHasSpace.mjs.html +2 -2
  303. package/docs/isStrHasSymbol.mjs.html +2 -2
  304. package/docs/isUserIdentify.mjs.html +2 -2
  305. package/docs/isUserName.mjs.html +2 -2
  306. package/docs/isUserPw.mjs.html +2 -2
  307. package/docs/isWindow.mjs.html +2 -2
  308. package/docs/isab.mjs.html +2 -2
  309. package/docs/isarr.mjs.html +2 -2
  310. package/docs/isarr0.mjs.html +2 -2
  311. package/docs/isbigint.mjs.html +2 -2
  312. package/docs/isblob.mjs.html +2 -2
  313. package/docs/isbol.mjs.html +2 -2
  314. package/docs/isday.mjs.html +2 -2
  315. package/docs/isearr.mjs.html +2 -2
  316. package/docs/iseobj.mjs.html +2 -2
  317. package/docs/iser.mjs.html +2 -2
  318. package/docs/isernot.mjs.html +2 -2
  319. package/docs/isestr.mjs.html +2 -2
  320. package/docs/isfile.mjs.html +2 -2
  321. package/docs/isfun.mjs.html +2 -2
  322. package/docs/isint.mjs.html +2 -2
  323. package/docs/ismonth.mjs.html +2 -2
  324. package/docs/isn0int.mjs.html +2 -2
  325. package/docs/isn0num.mjs.html +2 -2
  326. package/docs/isnan.mjs.html +2 -2
  327. package/docs/isnbr.mjs.html +2 -2
  328. package/docs/isnint.mjs.html +2 -2
  329. package/docs/isnnum.mjs.html +2 -2
  330. package/docs/isnull.mjs.html +2 -2
  331. package/docs/isnum.mjs.html +2 -2
  332. package/docs/isobj.mjs.html +2 -2
  333. package/docs/isobj0.mjs.html +2 -2
  334. package/docs/isp0int.mjs.html +2 -2
  335. package/docs/isp0num.mjs.html +2 -2
  336. package/docs/ispint.mjs.html +2 -2
  337. package/docs/ispm.mjs.html +2 -2
  338. package/docs/ispnum.mjs.html +2 -2
  339. package/docs/isstr.mjs.html +2 -2
  340. package/docs/isstr0.mjs.html +2 -2
  341. package/docs/istime.mjs.html +2 -2
  342. package/docs/istimeTZ.mjs.html +2 -2
  343. package/docs/istimems.mjs.html +2 -2
  344. package/docs/istimemsTZ.mjs.html +2 -2
  345. package/docs/isu16arr.mjs.html +2 -2
  346. package/docs/isu8arr.mjs.html +2 -2
  347. package/docs/isundefined.mjs.html +2 -2
  348. package/docs/j2o.mjs.html +2 -2
  349. package/docs/judge.mjs.html +2 -2
  350. package/docs/keysmat2ltdt.mjs.html +2 -2
  351. package/docs/ltdt2vrtsable.mjs.html +2 -2
  352. package/docs/ltdtDiff.mjs.html +2 -2
  353. package/docs/ltdtDiffByKey.mjs.html +2 -2
  354. package/docs/ltdtkeys2mat.mjs.html +2 -2
  355. package/docs/ltdtkeysheads2mat.mjs.html +2 -2
  356. package/docs/ltdtmapping.mjs.html +2 -2
  357. package/docs/ltdtmerge.mjs.html +2 -2
  358. package/docs/ltdtpick.mjs.html +2 -2
  359. package/docs/ltdtpull.mjs.html +2 -2
  360. package/docs/mat2ltdt.mjs.html +2 -2
  361. package/docs/matConcat.mjs.html +2 -2
  362. package/docs/matDiff.mjs.html +2 -2
  363. package/docs/matat.mjs.html +2 -2
  364. package/docs/now2str.mjs.html +2 -2
  365. package/docs/now2strp.mjs.html +2 -2
  366. package/docs/nowDay2str.mjs.html +2 -2
  367. package/docs/nowms2str.mjs.html +2 -2
  368. package/docs/nowms2strp.mjs.html +2 -2
  369. package/docs/o2j.mjs.html +2 -2
  370. package/docs/obj2b64.mjs.html +2 -2
  371. package/docs/obj2pb64.mjs.html +2 -2
  372. package/docs/obj2str.mjs.html +8 -8
  373. package/docs/obj2stru8arr.mjs.html +2 -2
  374. package/docs/obj2u8arr.mjs.html +2 -2
  375. package/docs/objSortBy.mjs.html +2 -2
  376. package/docs/objSortByKeys.mjs.html +2 -2
  377. package/docs/oo.mjs.html +2 -2
  378. package/docs/openLink.mjs.html +2 -2
  379. package/docs/pb642obj.mjs.html +2 -2
  380. package/docs/pmChain.mjs.html +2 -2
  381. package/docs/pmConvertResolve.mjs.html +2 -2
  382. package/docs/pmDebounce.mjs.html +2 -2
  383. package/docs/pmHook.mjs.html +2 -2
  384. package/docs/pmHookReject.mjs.html +2 -2
  385. package/docs/pmIni.mjs.html +2 -2
  386. package/docs/pmInvResolve.mjs.html +2 -2
  387. package/docs/pmKeyMutex.mjs.html +2 -2
  388. package/docs/pmMap.mjs.html +2 -2
  389. package/docs/pmQueue.mjs.html +2 -2
  390. package/docs/pmSeries.mjs.html +2 -2
  391. package/docs/pmThrottle.mjs.html +2 -2
  392. package/docs/preciseNum.mjs.html +2 -2
  393. package/docs/pseudoRandom.mjs.html +2 -2
  394. package/docs/pseudoRandomIntRange.mjs.html +2 -2
  395. package/docs/pseudoRandomIntsNdpRange.mjs.html +2 -2
  396. package/docs/pseudoRandomIntsRange.mjs.html +2 -2
  397. package/docs/pseudoRandomRange.mjs.html +2 -2
  398. package/docs/pseudoRandomsRange.mjs.html +2 -2
  399. package/docs/queue.mjs.html +2 -2
  400. package/docs/random.mjs.html +2 -2
  401. package/docs/randomIntRange.mjs.html +2 -2
  402. package/docs/randomIntsNdpRange.mjs.html +2 -2
  403. package/docs/randomIntsRange.mjs.html +2 -2
  404. package/docs/randomRange.mjs.html +2 -2
  405. package/docs/randomsRange.mjs.html +2 -2
  406. package/docs/rang.mjs.html +2 -2
  407. package/docs/rep.mjs.html +2 -2
  408. package/docs/repObj.mjs.html +2 -2
  409. package/docs/replace.mjs.html +2 -2
  410. package/docs/replaceObj.mjs.html +2 -2
  411. package/docs/replacePlus.mjs.html +2 -2
  412. package/docs/round.mjs.html +2 -2
  413. package/docs/secd.mjs.html +2 -2
  414. package/docs/sep.mjs.html +2 -2
  415. package/docs/sepInt.mjs.html +2 -2
  416. package/docs/setIntervalHp.mjs.html +2 -2
  417. package/docs/setTimeoutHp.mjs.html +2 -2
  418. package/docs/sind.mjs.html +2 -2
  419. package/docs/split.mjs.html +2 -2
  420. package/docs/str2aes.mjs.html +9 -7
  421. package/docs/str2b64.mjs.html +2 -2
  422. package/docs/str2hint.mjs.html +2 -2
  423. package/docs/str2md5.mjs.html +8 -6
  424. package/docs/str2obj.mjs.html +7 -7
  425. package/docs/str2sha.mjs.html +192 -0
  426. package/docs/str2sha512.mjs.html +31 -51
  427. package/docs/str2u8arr.mjs.html +2 -2
  428. package/docs/strCompare.mjs.html +2 -2
  429. package/docs/strDiff.mjs.html +2 -2
  430. package/docs/strDiffToHtml.mjs.html +2 -2
  431. package/docs/strFindFuzz.mjs.html +2 -2
  432. package/docs/strFindSimilar.mjs.html +2 -2
  433. package/docs/strTruncate.mjs.html +2 -2
  434. package/docs/strdelleft.mjs.html +2 -2
  435. package/docs/strdelright.mjs.html +2 -2
  436. package/docs/strleft.mjs.html +2 -2
  437. package/docs/strmid.mjs.html +2 -2
  438. package/docs/strright.mjs.html +2 -2
  439. package/docs/stru8arr2obj.mjs.html +2 -2
  440. package/docs/tand.mjs.html +2 -2
  441. package/docs/time2day.mjs.html +2 -2
  442. package/docs/time2hour.mjs.html +2 -2
  443. package/docs/time2min.mjs.html +2 -2
  444. package/docs/timeTZ2day.mjs.html +2 -2
  445. package/docs/timeTZ2expire.mjs.html +2 -2
  446. package/docs/timeTZ2hour.mjs.html +2 -2
  447. package/docs/timeTZ2min.mjs.html +2 -2
  448. package/docs/timeTZ2past.mjs.html +2 -2
  449. package/docs/timems2day.mjs.html +2 -2
  450. package/docs/timems2hour.mjs.html +2 -2
  451. package/docs/timems2min.mjs.html +2 -2
  452. package/docs/timems2time.mjs.html +2 -2
  453. package/docs/timemsTZ2day.mjs.html +2 -2
  454. package/docs/timemsTZ2expire.mjs.html +2 -2
  455. package/docs/timemsTZ2hour.mjs.html +2 -2
  456. package/docs/timemsTZ2min.mjs.html +2 -2
  457. package/docs/timemsTZ2past.mjs.html +2 -2
  458. package/docs/timemsTZ2time.mjs.html +2 -2
  459. package/docs/treeObj.mjs.html +2 -2
  460. package/docs/treeToFilepath.mjs.html +2 -2
  461. package/docs/trim.mjs.html +2 -2
  462. package/docs/u16arr2b64.mjs.html +2 -2
  463. package/docs/u16arr2u8arr.mjs.html +2 -2
  464. package/docs/u8arr2ab.mjs.html +2 -2
  465. package/docs/u8arr2b64.mjs.html +2 -2
  466. package/docs/u8arr2blob.mjs.html +2 -2
  467. package/docs/u8arr2bs.mjs.html +2 -2
  468. package/docs/u8arr2obj.mjs.html +2 -2
  469. package/docs/u8arr2str.mjs.html +2 -2
  470. package/docs/u8arr2u16arr.mjs.html +2 -2
  471. package/docs/urlParse.mjs.html +2 -2
  472. package/docs/verifyValue.mjs.html +2 -2
  473. package/docs/waitFun.mjs.html +2 -2
  474. package/docs/wsemi.html +367 -28
  475. package/package.json +2 -2
  476. package/src/aes2str.mjs +10 -7
  477. package/src/execCli.mjs +34 -1
  478. package/src/index.mjs +1 -0
  479. package/src/obj2str.mjs +6 -6
  480. package/src/str2aes.mjs +7 -5
  481. package/src/str2md5.mjs +6 -4
  482. package/src/str2obj.mjs +5 -5
  483. package/src/str2sha.mjs +120 -0
  484. package/src/str2sha512.mjs +29 -49
  485. package/test/aes2str.test.mjs +16 -0
  486. package/test/execCli.test.mjs +80 -0
  487. package/test/obj2str.test.mjs +22 -0
  488. package/test/str2aes.test.mjs +17 -0
  489. package/test/str2md5.test.mjs +14 -8
  490. package/test/str2obj.test.mjs +21 -0
  491. package/test/str2sha.test.mjs +176 -0
  492. package/test/str2sha512.test.mjs +8 -8
  493. package/toolfp/dist/wsemip.umd.js +1 -1
  494. package/toolparfor/dist/wpf.umd.js +1 -1
  495. package/toolparfor/dist/wpf_pmSeries.umd.js +1 -1
package/dist/wsemi.umd.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * wsemi v1.8.69
2
+ * wsemi v1.8.71
3
3
  * (c) 2018-2021 yuda-lyu(semisphere)
4
4
  * Released under the MIT License.
5
5
  */
6
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("xlsx"),require("dayjs"),require("xss"),require("child_process"),require("path"),require("fs"),require("tree-kill"),require("url"),require("readline"),require("stream"),require("events"),require("chokidar"),require("crypto"),require("ua-parser-js"),require("html-to-text")):"function"==typeof define&&define.amd?define(["exports","xlsx","dayjs","xss","child_process","path","fs","tree-kill","url","readline","stream","events","chokidar","crypto","ua-parser-js","html-to-text"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).wsemi={},e.XLSX,e.dayjs,e.filterXSS,e.child_process,e.path,e.fs,e.treeKill,e.url,e.readline,e.stream,e.events,e.chokidar,e.crypto,e.UAParser,e["html-to-text"])}(this,function(e,t,r,n,i,o,a,s,l,c,u,f,d,g,p,h){"use strict";function A(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var m=A(t),I=A(h);function y(e){return"[object ArrayBuffer]"===Object.prototype.toString.call(e)}function v(e){if(!y(e))return new Uint8Array;return new Uint8Array(e)}var b=Array.isArray,w="object"==typeof global&&global&&global.Object===Object&&global,B="object"==typeof self&&self&&self.Object===Object&&self,E=w||B||Function("return this")(),C=E.Symbol,x=Object.prototype,D=x.hasOwnProperty,F=x.toString,Q=C?C.toStringTag:void 0;var S=Object.prototype.toString;var k=C?C.toStringTag:void 0;function N(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":k&&k in Object(e)?function(e){var t=D.call(e,Q),r=e[Q];try{e[Q]=void 0;var n=!0}catch(e){}var i=F.call(e);return n&&(t?e[Q]=r:delete e[Q]),i}(e):function(e){return S.call(e)}(e)}function q(e){return null!=e&&"object"==typeof e}function M(e){return"symbol"==typeof e||q(e)&&"[object Symbol]"==N(e)}var H=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,L=/^\w*$/;function U(e,t){if(b(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!M(e))||(L.test(e)||!H.test(e)||null!=t&&e in Object(t))}function R(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function O(e){if(!R(e))return!1;var t=N(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var T,Y=E["__core-js_shared__"],j=(T=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+T:"";var G=Function.prototype.toString;function J(e){if(null!=e){try{return G.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var z=/^\[object .+?Constructor\]$/,V=Function.prototype,P=Object.prototype,X=V.toString,_=P.hasOwnProperty,W=RegExp("^"+X.call(_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function K(e){return!(!R(e)||(t=e,j&&j in t))&&(O(e)?W:z).test(J(e));var t}function $(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return K(r)?r:void 0}var Z=$(Object,"create");var ee=Object.prototype.hasOwnProperty;var te=Object.prototype.hasOwnProperty;function re(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ne(e,t){return e===t||e!=e&&t!=t}function ie(e,t){for(var r=e.length;r--;)if(ne(e[r][0],t))return r;return-1}re.prototype.clear=function(){this.__data__=Z?Z(null):{},this.size=0},re.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},re.prototype.get=function(e){var t=this.__data__;if(Z){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return ee.call(t,e)?t[e]:void 0},re.prototype.has=function(e){var t=this.__data__;return Z?void 0!==t[e]:te.call(t,e)},re.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Z&&void 0===t?"__lodash_hash_undefined__":t,this};var oe=Array.prototype.splice;function ae(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ae.prototype.clear=function(){this.__data__=[],this.size=0},ae.prototype.delete=function(e){var t=this.__data__,r=ie(t,e);return!(r<0)&&(r==t.length-1?t.pop():oe.call(t,r,1),--this.size,!0)},ae.prototype.get=function(e){var t=this.__data__,r=ie(t,e);return r<0?void 0:t[r][1]},ae.prototype.has=function(e){return ie(this.__data__,e)>-1},ae.prototype.set=function(e,t){var r=this.__data__,n=ie(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var se=$(E,"Map");function le(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function ce(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ce.prototype.clear=function(){this.size=0,this.__data__={hash:new re,map:new(se||ae),string:new re}},ce.prototype.delete=function(e){var t=le(this,e).delete(e);return this.size-=t?1:0,t},ce.prototype.get=function(e){return le(this,e).get(e)},ce.prototype.has=function(e){return le(this,e).has(e)},ce.prototype.set=function(e,t){var r=le(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function ue(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(ue.Cache||ce),r}ue.Cache=ce;var fe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,de=/\\(\\)?/g,ge=function(e){var t=ue(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(fe,function(e,r,n,i){t.push(n?i.replace(de,"$1"):r||e)}),t}),pe=ge;function he(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Ae=C?C.prototype:void 0,me=Ae?Ae.toString:void 0;function Ie(e){if("string"==typeof e)return e;if(b(e))return he(e,Ie)+"";if(M(e))return me?me.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ye(e){return null==e?"":Ie(e)}function ve(e,t){return b(e)?e:U(e,t)?[e]:pe(ye(e))}function be(e){if("string"==typeof e||M(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function we(e,t){for(var r=0,n=(t=ve(t,e)).length;null!=e&&r<n;)e=e[be(t[r++])];return r&&r==n?e:void 0}function Be(e,t,r){var n=null==e?void 0:we(e,t);return void 0===n?r:n}function Ee(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ce(e){if(Ee(e)){for(let t in e)return!0;return!1}return!1}function xe(e){return"[object Array]"===Object.prototype.toString.call(e)}function De(e){return"[object String]"===Object.prototype.toString.call(e)}function Fe(e){return!(!De(e)||""===e)}function Qe(e){return"[object Number]"===Object.prototype.toString.call(e)}function Se(e){return e!=e}function ke(e){let t=!1;if(Fe(e))t=!isNaN(Number(e));else if(Qe(e)){if(Se(e))return!1;t=!0}return t}function Ne(e,t){return!!Ee(e)&&(!(!Fe(t)&&!ke(t))&&t in e)}function qe(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}var Me,He=function(e,t,r){for(var n=-1,i=Object(e),o=r(e),a=o.length;a--;){var s=o[Me?a:++n];if(!1===t(i[s],s,i))break}return e};function Le(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Ue(e){return q(e)&&"[object Arguments]"==N(e)}var Re=Object.prototype,Oe=Re.hasOwnProperty,Te=Re.propertyIsEnumerable,Ye=Ue(function(){return arguments}())?Ue:function(e){return q(e)&&Oe.call(e,"callee")&&!Te.call(e,"callee")},je=Ye;var Ge="object"==typeof e&&e&&!e.nodeType&&e,Je=Ge&&"object"==typeof module&&module&&!module.nodeType&&module,ze=Je&&Je.exports===Ge?E.Buffer:void 0,Ve=(ze?ze.isBuffer:void 0)||function(){return!1},Pe=/^(?:0|[1-9]\d*)$/;function Xe(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Pe.test(e))&&e>-1&&e%1==0&&e<t}function _e(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var We={};function Ke(e){return function(t){return e(t)}}We["[object Float32Array]"]=We["[object Float64Array]"]=We["[object Int8Array]"]=We["[object Int16Array]"]=We["[object Int32Array]"]=We["[object Uint8Array]"]=We["[object Uint8ClampedArray]"]=We["[object Uint16Array]"]=We["[object Uint32Array]"]=!0,We["[object Arguments]"]=We["[object Array]"]=We["[object ArrayBuffer]"]=We["[object Boolean]"]=We["[object DataView]"]=We["[object Date]"]=We["[object Error]"]=We["[object Function]"]=We["[object Map]"]=We["[object Number]"]=We["[object Object]"]=We["[object RegExp]"]=We["[object Set]"]=We["[object String]"]=We["[object WeakMap]"]=!1;var $e="object"==typeof e&&e&&!e.nodeType&&e,Ze=$e&&"object"==typeof module&&module&&!module.nodeType&&module,et=Ze&&Ze.exports===$e&&w.process,tt=function(){try{var e=Ze&&Ze.require&&Ze.require("util").types;return e||et&&et.binding&&et.binding("util")}catch(e){}}(),rt=tt&&tt.isTypedArray,nt=rt?Ke(rt):function(e){return q(e)&&_e(e.length)&&!!We[N(e)]},it=Object.prototype.hasOwnProperty;function ot(e,t){var r=b(e),n=!r&&je(e),i=!r&&!n&&Ve(e),o=!r&&!n&&!i&&nt(e),a=r||n||i||o,s=a?Le(e.length,String):[],l=s.length;for(var c in e)!t&&!it.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Xe(c,l))||s.push(c);return s}var at=Object.prototype;function st(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||at)}function lt(e,t){return function(r){return e(t(r))}}var ct=lt(Object.keys,Object),ut=Object.prototype.hasOwnProperty;function ft(e){if(!st(e))return ct(e);var t=[];for(var r in Object(e))ut.call(e,r)&&"constructor"!=r&&t.push(r);return t}function dt(e){return null!=e&&_e(e.length)&&!O(e)}function gt(e){return dt(e)?ot(e):ft(e)}var pt=function(e,t){return function(r,n){if(null==r)return r;if(!dt(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=Object(r);(t?o--:++o<i)&&!1!==n(a[o],o,a););return r}}(function(e,t){return e&&He(e,t,gt)}),ht=pt;function At(e,t){var r=!0;return ht(e,function(e,n,i){return r=!!t(e,n,i)}),r}function mt(e){var t=this.__data__=new ae(e);this.size=t.size}mt.prototype.clear=function(){this.__data__=new ae,this.size=0},mt.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},mt.prototype.get=function(e){return this.__data__.get(e)},mt.prototype.has=function(e){return this.__data__.has(e)},mt.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ae){var n=r.__data__;if(!se||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ce(n)}return r.set(e,t),this.size=r.size,this};function It(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new ce;++t<r;)this.add(e[t])}function yt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function vt(e,t){return e.has(t)}It.prototype.add=It.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},It.prototype.has=function(e){return this.__data__.has(e)};function bt(e,t,r,n,i,o){var a=1&r,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var f=-1,d=!0,g=2&r?new It:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var p=e[f],h=t[f];if(n)var A=a?n(h,p,f,t,e,o):n(p,h,f,e,t,o);if(void 0!==A){if(A)continue;d=!1;break}if(g){if(!yt(t,function(e,t){if(!vt(g,t)&&(p===e||i(p,e,r,n,o)))return g.push(t)})){d=!1;break}}else if(p!==h&&!i(p,h,r,n,o)){d=!1;break}}return o.delete(e),o.delete(t),d}var wt=E.Uint8Array;function Bt(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function Et(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var Ct=C?C.prototype:void 0,xt=Ct?Ct.valueOf:void 0;function Dt(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function Ft(e,t,r){var n=t(e);return b(e)?n:Dt(n,r(e))}function Qt(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}function St(){return[]}var kt=Object.prototype.propertyIsEnumerable,Nt=Object.getOwnPropertySymbols,qt=Nt?function(e){return null==e?[]:(e=Object(e),Qt(Nt(e),function(t){return kt.call(e,t)}))}:St;function Mt(e){return Ft(e,gt,qt)}var Ht=Object.prototype.hasOwnProperty;var Lt=$(E,"DataView"),Ut=$(E,"Promise"),Rt=$(E,"Set"),Ot=$(E,"WeakMap"),Tt="[object Map]",Yt="[object Promise]",jt="[object Set]",Gt="[object WeakMap]",Jt="[object DataView]",zt=J(Lt),Vt=J(se),Pt=J(Ut),Xt=J(Rt),_t=J(Ot),Wt=N;(Lt&&Wt(new Lt(new ArrayBuffer(1)))!=Jt||se&&Wt(new se)!=Tt||Ut&&Wt(Ut.resolve())!=Yt||Rt&&Wt(new Rt)!=jt||Ot&&Wt(new Ot)!=Gt)&&(Wt=function(e){var t=N(e),r="[object Object]"==t?e.constructor:void 0,n=r?J(r):"";if(n)switch(n){case zt:return Jt;case Vt:return Tt;case Pt:return Yt;case Xt:return jt;case _t:return Gt}return t});var Kt=Wt,$t="[object Arguments]",Zt="[object Array]",er="[object Object]",tr=Object.prototype.hasOwnProperty;function rr(e,t,r,n,i,o){var a=b(e),s=b(t),l=a?Zt:Kt(e),c=s?Zt:Kt(t),u=(l=l==$t?er:l)==er,f=(c=c==$t?er:c)==er,d=l==c;if(d&&Ve(e)){if(!Ve(t))return!1;a=!0,u=!1}if(d&&!u)return o||(o=new mt),a||nt(e)?bt(e,t,r,n,i,o):function(e,t,r,n,i,o,a){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new wt(e),new wt(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ne(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Bt;case"[object Set]":var l=1&n;if(s||(s=Et),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;n|=2,a.set(e,t);var u=bt(s(e),s(t),n,i,o,a);return a.delete(e),u;case"[object Symbol]":if(xt)return xt.call(e)==xt.call(t)}return!1}(e,t,l,r,n,i,o);if(!(1&r)){var g=u&&tr.call(e,"__wrapped__"),p=f&&tr.call(t,"__wrapped__");if(g||p){var h=g?e.value():e,A=p?t.value():t;return o||(o=new mt),i(h,A,r,n,o)}}return!!d&&(o||(o=new mt),function(e,t,r,n,i,o){var a=1&r,s=Mt(e),l=s.length;if(l!=Mt(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:Ht.call(t,u)))return!1}var f=o.get(e),d=o.get(t);if(f&&d)return f==t&&d==e;var g=!0;o.set(e,t),o.set(t,e);for(var p=a;++c<l;){var h=e[u=s[c]],A=t[u];if(n)var m=a?n(A,h,u,t,e,o):n(h,A,u,e,t,o);if(!(void 0===m?h===A||i(h,A,r,n,o):m)){g=!1;break}p||(p="constructor"==u)}if(g&&!p){var I=e.constructor,y=t.constructor;I==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof I&&I instanceof I&&"function"==typeof y&&y instanceof y||(g=!1)}return o.delete(e),o.delete(t),g}(e,t,r,n,i,o))}function nr(e,t,r,n,i){return e===t||(null==e||null==t||!q(e)&&!q(t)?e!=e&&t!=t:rr(e,t,r,n,nr,i))}function ir(e){return e==e&&!R(e)}function or(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}function ar(e){var t=function(e){for(var t=gt(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,ir(i)]}return t}(e);return 1==t.length&&t[0][2]?or(t[0][0],t[0][1]):function(r){return r===e||function(e,t,r,n){var i=r.length,o=i,a=!n;if(null==e)return!o;for(e=Object(e);i--;){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=r[i])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var f=new mt;if(n)var d=n(c,u,l,e,t,f);if(!(void 0===d?nr(u,c,3,n,f):d))return!1}}return!0}(r,e,t)}}function sr(e,t){return null!=e&&t in Object(e)}function lr(e,t){return null!=e&&function(e,t,r){for(var n=-1,i=(t=ve(t,e)).length,o=!1;++n<i;){var a=be(t[n]);if(!(o=null!=e&&r(e,a)))break;e=e[a]}return o||++n!=i?o:!!(i=null==e?0:e.length)&&_e(i)&&Xe(a,i)&&(b(e)||je(e))}(e,t,sr)}function cr(e){return e}function ur(e){return function(t){return null==t?void 0:t[e]}}function fr(e){return U(e)?ur(be(e)):function(e){return function(t){return we(t,e)}}(e)}function dr(e){return"function"==typeof e?e:null==e?cr:"object"==typeof e?b(e)?function(e,t){return U(e)&&ir(t)?or(be(e),t):function(r){var n=Be(r,e);return void 0===n&&n===t?lr(r,e):nr(t,n,3)}}(e[0],e[1]):ar(e):fr(e)}function gr(e,t,r){if(!R(r))return!1;var n=typeof t;return!!("number"==n?dt(r)&&Xe(t,r.length):"string"==n&&t in r)&&ne(r[t],e)}function pr(e,t,r){var n=b(e)?qe:At;return r&&gr(e,t,r)&&(t=void 0),n(e,dr(t))}var hr=lt(Object.getPrototypeOf,Object),Ar=Function.prototype,mr=Object.prototype,Ir=Ar.toString,yr=mr.hasOwnProperty,vr=Ir.call(Object);function br(e){if(!q(e)||"[object Object]"!=N(e))return!1;var t=hr(e);if(null===t)return!0;var r=yr.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Ir.call(r)==vr}function wr(e){return q(t=e)&&1===t.nodeType&&!br(t);var t}function Br(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function Er(e){return"function"==typeof e?e:cr}function Cr(e,t){return(b(e)?Br:ht)(e,Er(t))}function xr(e,t){var r=-1,n=dt(e)?Array(e.length):[];return ht(e,function(e,i,o){n[++r]=t(e,i,o)}),n}function Dr(e,t){return(b(e)?he:xr)(e,dr(t))}var Fr=C?C.isConcatSpreadable:void 0;function Qr(e){return b(e)||je(e)||!!(Fr&&e&&e[Fr])}function Sr(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=Qr),i||(i=[]);++o<a;){var s=e[o];t>0&&r(s)?t>1?Sr(s,t-1,r,n,i):Dt(i,s):n||(i[i.length]=s)}return i}function kr(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function Nr(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return Dt(b(r)?kr(r):[r],Sr(t,1))}function qr(e){return"[object Undefined]"===Object.prototype.toString.call(e)}function Mr(e){return"[object Null]"===Object.prototype.toString.call(e)}function Hr(e){if(Ee(e)){for(let t in e)return!1;return!0}return!1}function Lr(e){return!(!De(e)||""!==e)}function Ur(e){return!!xe(e)&&0===e.length}function Rr(e){return!!qr(e)||(!!Mr(e)||(!!Hr(e)||(!!Lr(e)||(!!Ur(e)||!!Se(e)))))}function Or(e){return!!xe(e)&&(0!==e.length&&(1!==e.length||!Rr(e[0])))}function Tr(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Yr(e){return e!=e}function jr(e,t,r){return t==t?function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}(e,t,r):Tr(e,Yr,r)}function Gr(e,t){return!!(null==e?0:e.length)&&jr(e,t,0)>-1}function Jr(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}var zr=Rt&&1/Et(new Rt([,-0]))[1]==1/0?function(e){return new Rt(e)}:function(){},Vr=zr;function Pr(e,t,r){var n=-1,i=Gr,o=e.length,a=!0,s=[],l=s;if(r)a=!1,i=Jr;else if(o>=200){var c=t?null:Vr(e);if(c)return Et(c);a=!1,i=vt,l=new It}else l=t?[]:s;e:for(;++n<o;){var u=e[n],f=t?t(u):u;if(u=r||0!==u?u:0,a&&f==f){for(var d=l.length;d--;)if(l[d]===f)continue e;t&&l.push(f),s.push(u)}else i(l,f,r)||(l!==s&&l.push(f),s.push(u))}return s}function Xr(e){return e&&e.length?Pr(e):[]}function _r(e){if(!Or(e))return[];let t=[];return Cr(e,function(e){let r=gt(e);t=[...t,...r],t=Xr(t)}),t}var Wr=ur("length"),Kr=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function $r(e){return Kr.test(e)}var Zr="\\ud800-\\udfff",en="["+Zr+"]",tn="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",rn="\\ud83c[\\udffb-\\udfff]",nn="[^"+Zr+"]",on="(?:\\ud83c[\\udde6-\\uddff]){2}",an="[\\ud800-\\udbff][\\udc00-\\udfff]",sn="(?:"+tn+"|"+rn+")"+"?",ln="[\\ufe0e\\ufe0f]?",cn=ln+sn+("(?:\\u200d(?:"+[nn,on,an].join("|")+")"+ln+sn+")*"),un="(?:"+[nn+tn+"?",tn,on,an,en].join("|")+")",fn=RegExp(rn+"(?="+rn+")|"+un+cn,"g");function dn(e){return $r(e)?function(e){for(var t=fn.lastIndex=0;fn.test(e);)++t;return t}(e):Wr(e)}function gn(e){if(null==e)return 0;if(dt(e))return"string"==typeof(t=e)||!b(t)&&q(t)&&"[object String]"==N(t)?dn(e):e.length;var t,r=Kt(e);return"[object Map]"==r||"[object Set]"==r?e.size:ft(e).length}function pn(e){return!0===e||!1===e||q(e)&&"[object Boolean]"==N(e)}function hn(e){return pn(e)}function An(e,t=!1){if(qr(e))return"";let r="";try{r=t?JSON.stringify(e,null,2):JSON.stringify(e)}catch(e){r=""}return r}function mn(e,t=null,r={}){if(!Or(e))return[];if(Or(t)||(t=_r(e)),0===gn(t))return[];let n=!1;if(Cr(e,function(e){Ce(e)||(n=!0)}),n)return[];let i=Be(r,"empty",""),o=[];return Cr(e,function(e){let r=Dr(t,function(t){return Ne(e,t)?hn(e[t])?e[t]?"true":"false":De(e[t])||ke(e[t])?e[t]:An(e[t]):i});o.push(r)}),o}function In(e,t=[],r={}){if(!Or(e))return[];Or(t)||(t=_r(e)),Ce(r)||(r={},Cr(t,e=>{r[e]=e}));let n=!1;return Cr(e,function(e){Ce(e)||(n=!0)}),n?[]:Nr([Dr(t,function(e){return Be(r,e)})],mn(e,t))}function yn(){return"undefined"!=typeof window&&void 0!==window.document}function vn(){return"undefined"!=typeof self?self:yn()?window:"undefined"!=typeof global?global:null}function bn(){let e=vn();if(Ce(Be(m,"utils")))return m;if(Ce(Be(m,"default.utils")))return Be(m,"default");if(Ce(Be(e,"XLSX.utils")))return Be(e,"XLSX");if(Ce(Be(e,"XLSX.default.utils")))return Be(e,"XLSX.default");if(Ce(Be(e,"xlsx.utils")))return Be(e,"xlsx");if(Ce(Be(e,"xlsx.default.utils")))return Be(e,"xlsx.default");throw console.log("XLSX",m,"g.XLSX",e.XLSX,"g.xlsx",e.xlsx),new Error("invalid XLSX, g.XLSX, g.xlsx")}function wn(e){if(!xe(e)&&!wr(e))return{error:"data is not an array or element"};let t=null;try{let r=bn().utils;if(xe(e)){pr(e,Ce)&&(e=In(e)),t=r.aoa_to_sheet(e)}else wr(e)&&(t=r.table_to_sheet(e,{raw:!0}))}catch(e){return{error:e}}return t}function Bn(e){if(!Fe(e))return!1;let t="YYYY-MM";return e===r(e,t).format(t)}var En=/\s/;var Cn=/^\s+/;function xn(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&En.test(e.charAt(t)););return t}(e)+1).replace(Cn,""):e}var Dn=/^[-+]0x[0-9a-f]+$/i,Fn=/^0b[01]+$/i,Qn=/^0o[0-7]+$/i,Sn=parseInt;function kn(e){if("number"==typeof e)return e;if(M(e))return NaN;if(R(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=R(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=xn(e);var r=Fn.test(e);return r||Qn.test(e)?Sn(e.slice(2),r?2:8):Dn.test(e)?NaN:+e}var Nn=1/0;function qn(e){return e?(e=kn(e))===Nn||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function Mn(e){var t=qn(e),r=t%1;return t==t?r?t-r:t:0}function Hn(e){if(!ke(e))return 0;return qn(e)}function Ln(e){return!!ke(e)&&(e=Hn(e),"number"==typeof(t=e)&&t==Mn(t));var t}var Un="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Rn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var On={exports:{}};var Tn,Yn={exports:{}};function jn(){return Tn||(Tn=1,function(e){var t;e.exports=(t=t||function(e,t){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==Un&&Un.crypto&&(r=Un.crypto),!r)try{r=require("crypto")}catch(e){}var n=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),o={},a=o.lib={},s=a.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},l=a.WordArray=s.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var a=r[o>>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var s=0;s<i;s+=4)t[n+s>>>2]=r[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(n());return new l.init(t,e)}}),c=o.enc={},u=c.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new l.init(r,t/2)}},f=c.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new l.init(r,t)}},d=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},g=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,i=n.words,o=n.sigBytes,a=this.blockSize,s=o/(4*a),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,u=e.min(4*c,o);if(c){for(var f=0;f<c;f+=a)this._doProcessBlock(i,f);r=i.splice(0,c),n.sigBytes-=u}return new l.init(r,u)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=g.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new p.HMAC.init(e,r).finalize(t)}}});var p=o.algo={};return o}(Math),t)}(Yn)),Yn.exports}var Gn={exports:{}};!function(e){var t;e.exports=(t=jn(),function(){var e=t,r=e.lib.WordArray;function n(e,t,n){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2|n[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return r.create(i,o)}e.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o<r;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<r;s++)i.push(n.charAt(a>>>6*(3-s)&63));var l=n.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<r.length;o++)i[r.charCodeAt(o)]=o}var a=r.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return n(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),t.enc.Base64)}(Gn);var Jn,zn=Gn.exports,Vn=Rn(zn),Pn={exports:{}};function Xn(){return Jn||(Jn=1,function(e){var t;e.exports=(t=jn(),function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],l=e[t+1],g=e[t+2],p=e[t+3],h=e[t+4],A=e[t+5],m=e[t+6],I=e[t+7],y=e[t+8],v=e[t+9],b=e[t+10],w=e[t+11],B=e[t+12],E=e[t+13],C=e[t+14],x=e[t+15],D=o[0],F=o[1],Q=o[2],S=o[3];D=c(D,F,Q,S,a,7,s[0]),S=c(S,D,F,Q,l,12,s[1]),Q=c(Q,S,D,F,g,17,s[2]),F=c(F,Q,S,D,p,22,s[3]),D=c(D,F,Q,S,h,7,s[4]),S=c(S,D,F,Q,A,12,s[5]),Q=c(Q,S,D,F,m,17,s[6]),F=c(F,Q,S,D,I,22,s[7]),D=c(D,F,Q,S,y,7,s[8]),S=c(S,D,F,Q,v,12,s[9]),Q=c(Q,S,D,F,b,17,s[10]),F=c(F,Q,S,D,w,22,s[11]),D=c(D,F,Q,S,B,7,s[12]),S=c(S,D,F,Q,E,12,s[13]),Q=c(Q,S,D,F,C,17,s[14]),D=u(D,F=c(F,Q,S,D,x,22,s[15]),Q,S,l,5,s[16]),S=u(S,D,F,Q,m,9,s[17]),Q=u(Q,S,D,F,w,14,s[18]),F=u(F,Q,S,D,a,20,s[19]),D=u(D,F,Q,S,A,5,s[20]),S=u(S,D,F,Q,b,9,s[21]),Q=u(Q,S,D,F,x,14,s[22]),F=u(F,Q,S,D,h,20,s[23]),D=u(D,F,Q,S,v,5,s[24]),S=u(S,D,F,Q,C,9,s[25]),Q=u(Q,S,D,F,p,14,s[26]),F=u(F,Q,S,D,y,20,s[27]),D=u(D,F,Q,S,E,5,s[28]),S=u(S,D,F,Q,g,9,s[29]),Q=u(Q,S,D,F,I,14,s[30]),D=f(D,F=u(F,Q,S,D,B,20,s[31]),Q,S,A,4,s[32]),S=f(S,D,F,Q,y,11,s[33]),Q=f(Q,S,D,F,w,16,s[34]),F=f(F,Q,S,D,C,23,s[35]),D=f(D,F,Q,S,l,4,s[36]),S=f(S,D,F,Q,h,11,s[37]),Q=f(Q,S,D,F,I,16,s[38]),F=f(F,Q,S,D,b,23,s[39]),D=f(D,F,Q,S,E,4,s[40]),S=f(S,D,F,Q,a,11,s[41]),Q=f(Q,S,D,F,p,16,s[42]),F=f(F,Q,S,D,m,23,s[43]),D=f(D,F,Q,S,v,4,s[44]),S=f(S,D,F,Q,B,11,s[45]),Q=f(Q,S,D,F,x,16,s[46]),D=d(D,F=f(F,Q,S,D,g,23,s[47]),Q,S,a,6,s[48]),S=d(S,D,F,Q,I,10,s[49]),Q=d(Q,S,D,F,C,15,s[50]),F=d(F,Q,S,D,A,21,s[51]),D=d(D,F,Q,S,B,6,s[52]),S=d(S,D,F,Q,p,10,s[53]),Q=d(Q,S,D,F,b,15,s[54]),F=d(F,Q,S,D,l,21,s[55]),D=d(D,F,Q,S,y,6,s[56]),S=d(S,D,F,Q,x,10,s[57]),Q=d(Q,S,D,F,m,15,s[58]),F=d(F,Q,S,D,E,21,s[59]),D=d(D,F,Q,S,h,6,s[60]),S=d(S,D,F,Q,w,10,s[61]),Q=d(Q,S,D,F,g,15,s[62]),F=d(F,Q,S,D,v,21,s[63]),o[0]=o[0]+D|0,o[1]=o[1]+F|0,o[2]=o[2]+Q|0,o[3]=o[3]+S|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var o=e.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<<o|s>>>32-o)+t}function u(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<<o|s>>>32-o)+t}function f(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<<o|s>>>32-o)+t}function d(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<<o|s>>>32-o)+t}r.MD5=o._createHelper(l),r.HmacMD5=o._createHmacHelper(l)}(Math),t.MD5)}(Pn)),Pn.exports}var _n,Wn={exports:{}},Kn={exports:{}};function $n(){return _n||(_n=1,function(e){var t,r,n,i,o,a,s,l;e.exports=(l=jn(),r=(t=l).lib,n=r.WordArray,i=r.Hasher,o=t.algo,a=[],s=o.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],s=r[3],l=r[4],c=0;c<80;c++){if(c<16)a[c]=0|e[t+c];else{var u=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=u<<1|u>>>31}var f=(n<<5|n>>>27)+l+a[c];f+=c<20?1518500249+(i&o|~i&s):c<40?1859775393+(i^o^s):c<60?(i&o|i&s|o&s)-1894007588:(i^o^s)-899497514,l=s,s=o,o=i<<30|i>>>2,i=n,n=f}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA1=i._createHelper(s),t.HmacSHA1=i._createHmacHelper(s),l.SHA1)}(Kn)),Kn.exports}var Zn,ei,ti={exports:{}};function ri(){return ei||(ei=1,function(e){var t;e.exports=(t=jn(),$n(),Zn||(Zn=1,function(e){var t,r,n;e.exports=(r=(t=jn()).lib.Base,n=t.enc.Utf8,void(t.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var r=e.blockSize,i=4*r;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,l=a.words,c=0;c<r;c++)s[c]^=1549556828,l[c]^=909522486;o.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})))}(ti)),function(){var e=t,r=e.lib,n=r.Base,i=r.WordArray,o=e.algo,a=o.MD5,s=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,n=this.cfg,o=n.hasher.create(),a=i.create(),s=a.words,l=n.keySize,c=n.iterations;s.length<l;){r&&o.update(r),r=o.update(e).finalize(t),o.reset();for(var u=1;u<c;u++)r=o.finalize(r),o.reset();a.concat(r)}return a.sigBytes=4*l,a}});e.EvpKDF=function(e,t,r){return s.create(r).compute(e,t)}}(),t.EvpKDF)}(Wn)),Wn.exports}var ni,ii={exports:{}};!function(e){var t;e.exports=(t=jn(),Xn(),ri(),ni||(ni=1,function(e){var t;e.exports=(t=jn(),ri(),void(t.lib.Cipher||function(e){var r=t,n=r.lib,i=n.Base,o=n.WordArray,a=n.BufferedBlockAlgorithm,s=r.enc;s.Utf8;var l=s.Base64,c=r.algo.EvpKDF,u=n.Cipher=a.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?y:m}return function(t){return{encrypt:function(r,n,i){return e(n).encrypt(t,r,n,i)},decrypt:function(r,n,i){return e(n).decrypt(t,r,n,i)}}}}()});n.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var f=r.mode={},d=n.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),g=f.CBC=function(){var t=d.extend();function r(t,r,n){var i,o=this._iv;o?(i=o,this._iv=e):i=this._prevBlock;for(var a=0;a<n;a++)t[r+a]^=i[a]}return t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;r.call(this,e,t,i),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),t.Decryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=e.slice(t,t+i);n.decryptBlock(e,t),r.call(this,e,t,i),this._prevBlock=o}}),t}(),p=(r.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,i=n<<24|n<<16|n<<8|n,a=[],s=0;s<n;s+=4)a.push(i);var l=o.create(a,n);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:g,padding:p}),reset:function(){var e;u.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var h=n.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),A=(r.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?o.create([1398893684,1701076831]).concat(r).concat(t):t).toString(l)},parse:function(e){var t,r=l.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=o.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),h.create({ciphertext:r,salt:t})}},m=n.SerializableCipher=i.extend({cfg:i.extend({format:A}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),a=i.cfg;return h.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),I=(r.kdf={}).OpenSSL={execute:function(e,t,r,n,i){if(n||(n=o.random(8)),i)a=c.create({keySize:t+r,hasher:i}).compute(e,n);else var a=c.create({keySize:t+r}).compute(e,n);var s=o.create(a.words.slice(t),4*r);return a.sigBytes=4*t,h.create({key:a,iv:s,salt:n})}},y=n.PasswordBasedCipher=m.extend({cfg:m.cfg.extend({kdf:I}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=i.iv;var o=m.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt,n.hasher);return n.iv=i.iv,m.decrypt.call(this,e,t,i.key,n)}})}()))}(ii)),function(){var e=t,r=e.lib.BlockCipher,n=e.algo,i=[],o=[],a=[],s=[],l=[],c=[],u=[],f=[],d=[],g=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var h=e[r],A=e[h],m=e[A],I=257*e[p]^16843008*p;a[r]=I<<24|I>>>8,s[r]=I<<16|I>>>16,l[r]=I<<8|I>>>24,c[r]=I,I=16843009*m^65537*A^257*h^16843008*r,u[p]=I<<24|I>>>8,f[p]=I<<16|I>>>16,d[p]=I<<8|I>>>24,g[p]=I,r?(r=h^e[e[e[m^h]]],n^=e[e[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],h=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<r?o[a]=t[a]:(c=o[a-1],a%r?r>6&&a%r==4&&(c=i[c>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c]):(c=i[(c=c<<8|c>>>24)>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c],c^=p[a/r|0]<<24),o[a]=o[a-r]^c);for(var s=this._invKeySchedule=[],l=0;l<n;l++){if(a=n-l,l%4)var c=o[a];else c=o[a-4];s[l]=l<4||a<=4?c:u[i[c>>>24]]^f[i[c>>>16&255]]^d[i[c>>>8&255]]^g[i[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,l,c,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,f,d,g,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var l=this._nRounds,c=e[t]^r[0],u=e[t+1]^r[1],f=e[t+2]^r[2],d=e[t+3]^r[3],g=4,p=1;p<l;p++){var h=n[c>>>24]^i[u>>>16&255]^o[f>>>8&255]^a[255&d]^r[g++],A=n[u>>>24]^i[f>>>16&255]^o[d>>>8&255]^a[255&c]^r[g++],m=n[f>>>24]^i[d>>>16&255]^o[c>>>8&255]^a[255&u]^r[g++],I=n[d>>>24]^i[c>>>16&255]^o[u>>>8&255]^a[255&f]^r[g++];c=h,u=A,f=m,d=I}h=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[f>>>8&255]<<8|s[255&d])^r[g++],A=(s[u>>>24]<<24|s[f>>>16&255]<<16|s[d>>>8&255]<<8|s[255&c])^r[g++],m=(s[f>>>24]<<24|s[d>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^r[g++],I=(s[d>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&f])^r[g++],e[t]=h,e[t+1]=A,e[t+2]=m,e[t+3]=I},keySize:8});e.AES=r._createHelper(h)}(),t.AES)}(On);var oi=Rn(On.exports),ai={exports:{}};!function(e){e.exports=jn().enc.Utf8}(ai);var si=Rn(ai.exports),li={exports:{}};!function(e){e.exports=jn().enc.Hex}(li);var ci=Rn(li.exports);function ui(e,t,r=!1){if(!Fe(e))return"";if(!Fe(t))return"";if(!hn(r))return"";let n="";if(r){n=oi.decrypt(e,t).toString(si)}else{let r=ci.parse(e).toString(Vn);n=oi.decrypt(r,t).toString(si)}return n}var fi=function(){try{var e=$(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),di=fi;function gi(e,t,r){"__proto__"==t&&di?di(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var pi=Object.prototype.hasOwnProperty;function hi(e,t,r){var n=e[t];pi.call(e,t)&&ne(n,r)&&(void 0!==r||t in e)||gi(e,t,r)}function Ai(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=n?n(r[s],e[s],s,r,e):void 0;void 0===l&&(l=e[s]),i?gi(r,s,l):hi(r,s,l)}return r}var mi=Object.prototype.hasOwnProperty;function Ii(e){if(!R(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=st(e),r=[];for(var n in e)("constructor"!=n||!t&&mi.call(e,n))&&r.push(n);return r}function yi(e){return dt(e)?ot(e,!0):Ii(e)}var vi="object"==typeof e&&e&&!e.nodeType&&e,bi=vi&&"object"==typeof module&&module&&!module.nodeType&&module,wi=bi&&bi.exports===vi?E.Buffer:void 0,Bi=wi?wi.allocUnsafe:void 0;function Ei(e,t){if(t)return e.slice();var r=e.length,n=Bi?Bi(r):new e.constructor(r);return e.copy(n),n}var Ci=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Dt(t,qt(e)),e=hr(e);return t}:St;function xi(e){return Ft(e,yi,Ci)}var Di=Object.prototype.hasOwnProperty;function Fi(e){var t=new e.constructor(e.byteLength);return new wt(t).set(new wt(e)),t}var Qi=/\w*$/;var Si=C?C.prototype:void 0,ki=Si?Si.valueOf:void 0;function Ni(e,t){var r=t?Fi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function qi(e,t,r){var n,i,o,a=e.constructor;switch(t){case"[object ArrayBuffer]":return Fi(e);case"[object Boolean]":case"[object Date]":return new a(+e);case"[object DataView]":return function(e,t){var r=t?Fi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Ni(e,r);case"[object Map]":case"[object Set]":return new a;case"[object Number]":case"[object String]":return new a(e);case"[object RegExp]":return(o=new(i=e).constructor(i.source,Qi.exec(i))).lastIndex=i.lastIndex,o;case"[object Symbol]":return n=e,ki?Object(ki.call(n)):{}}}var Mi=Object.create,Hi=function(){function e(){}return function(t){if(!R(t))return{};if(Mi)return Mi(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Li(e){return"function"!=typeof e.constructor||st(e)?{}:Hi(hr(e))}var Ui=tt&&tt.isMap,Ri=Ui?Ke(Ui):function(e){return q(e)&&"[object Map]"==Kt(e)};var Oi=tt&&tt.isSet,Ti=Oi?Ke(Oi):function(e){return q(e)&&"[object Set]"==Kt(e)},Yi="[object Arguments]",ji="[object Function]",Gi="[object Object]",Ji={};function zi(e,t,r,n,i,o){var a,s=1&t,l=2&t,c=4&t;if(r&&(a=i?r(e,n,i,o):r(e)),void 0!==a)return a;if(!R(e))return e;var u=b(e);if(u){if(a=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Di.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!s)return kr(e,a)}else{var f=Kt(e),d=f==ji||"[object GeneratorFunction]"==f;if(Ve(e))return Ei(e,s);if(f==Gi||f==Yi||d&&!i){if(a=l||d?{}:Li(e),!s)return l?function(e,t){return Ai(e,Ci(e),t)}(e,function(e,t){return e&&Ai(t,yi(t),e)}(a,e)):function(e,t){return Ai(e,qt(e),t)}(e,function(e,t){return e&&Ai(t,gt(t),e)}(a,e))}else{if(!Ji[f])return i?e:{};a=qi(e,f,s)}}o||(o=new mt);var g=o.get(e);if(g)return g;o.set(e,a),Ti(e)?e.forEach(function(n){a.add(zi(n,t,r,n,e,o))}):Ri(e)&&e.forEach(function(n,i){a.set(i,zi(n,t,r,i,e,o))});var p=u?void 0:(c?l?xi:Mt:l?yi:gt)(e);return Br(p||e,function(n,i){p&&(n=e[i=n]),hi(a,i,zi(n,t,r,i,e,o))}),a}Ji[Yi]=Ji["[object Array]"]=Ji["[object ArrayBuffer]"]=Ji["[object DataView]"]=Ji["[object Boolean]"]=Ji["[object Date]"]=Ji["[object Float32Array]"]=Ji["[object Float64Array]"]=Ji["[object Int8Array]"]=Ji["[object Int16Array]"]=Ji["[object Int32Array]"]=Ji["[object Map]"]=Ji["[object Number]"]=Ji[Gi]=Ji["[object RegExp]"]=Ji["[object Set]"]=Ji["[object String]"]=Ji["[object Symbol]"]=Ji["[object Uint8Array]"]=Ji["[object Uint8ClampedArray]"]=Ji["[object Uint16Array]"]=Ji["[object Uint32Array]"]=!0,Ji["[object Error]"]=Ji[ji]=Ji["[object WeakMap]"]=!1;function Vi(e){return zi(e,5)}var Pi={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function o(e,t,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new i(n,o||e,a),l=r?r+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function a(e,t){0===--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,i,o,a){var s=r?r+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],f=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),f){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,i),!0;case 5:return u.fn.call(u.context,t,n,i,o),!0;case 6:return u.fn.call(u.context,t,n,i,o,a),!0}for(c=1,l=new Array(f-1);c<f;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var d,g=u.length;for(c=0;c<g;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),f){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,i);break;default:if(!l)for(d=1,l=new Array(f-1);d<f;d++)l[d-1]=arguments[d];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(e,t,r){return o(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return o(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,i){var o=r?r+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||n&&s.context!==n||a(this,o);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||i&&!s[l].once||n&&s[l].context!==n)&&c.push(s[l]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s}(Pi);var Xi=Rn(Pi.exports);function _i(){return new Xi}var Wi=E.isFinite,Ki=Math.min;function $i(e){var t=Math[e];return function(e,r){if(e=kn(e),(r=null==r?0:Ki(Mn(r),292))&&Wi(e)){var n=(ye(e)+"e").split("e");return+((n=(ye(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Zi=$i("round");function eo(e){if(!ke(e))return 0;e=Hn(e);let t=Zi(e);return"0"===String(t)?0:t}function to(e){if(!Ln(e))return!1;return eo(e)>0}function ro(e,t){return function(e,t,r){for(var n=-1,i=e.length,o=t.length,a={};++n<i;){var s=n<o?t[n]:void 0;r(a,e[n],s)}return a}(e||[],t||[],hi)}function no(e,t){if(!xe(e))return[];if(!xe(t))return[];if(gn(e)!==gn(t))return[];let r=[];return Cr(e,function(n,i){let o=null,a=ke(e[i]),s=ke(t[i]);(a||s)&&(o=0),a&&(o+=Hn(e[i])),s&&(o+=Hn(t[i])),r.push(o)}),r}var io=Math.ceil,oo=Math.max;var ao=function(e){return function(t,r,n){return n&&"number"!=typeof n&&gr(t,r,n)&&(r=n=void 0),t=qn(t),void 0===r?(r=t,t=0):r=qn(r),function(e,t,r,n){for(var i=-1,o=oo(io((t-e)/(r||1)),0),a=Array(o);o--;)a[n?o:++i]=e,e+=r;return a}(t,r,n=void 0===n?t<r?1:-1:qn(n),e)}}(),so=ao;function lo(e,t){for(var r=-1,n=t.length,i=Array(n),o=null==e;++r<n;)i[r]=o?void 0:Be(e,t[r]);return i}function co(e){return(null==e?0:e.length)?Sr(e,1):[]}var uo=Math.max;function fo(e,t,r){return t=uo(void 0===t?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=uo(n.length-t,0),a=Array(o);++i<o;)a[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(a),function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(e,this,s)}}function go(e){return function(){return e}}var po=di?function(e,t){return di(e,"toString",{configurable:!0,enumerable:!1,value:go(t),writable:!0})}:cr,ho=po,Ao=Date.now;var mo,Io,yo,vo=(mo=ho,Io=0,yo=0,function(){var e=Ao(),t=16-(e-yo);if(yo=e,t>0){if(++Io>=800)return arguments[0]}else Io=0;return mo.apply(void 0,arguments)}),bo=vo;function wo(e){return bo(fo(e,void 0,co),e+"")}var Bo=wo(lo);function Eo(e){if(!Ln(e))return!1;return eo(e)>=0}function Co(e,t,r=null){if(!Or(e))return[];if(!Eo(t))return[];let n;if(t=eo(t),Rr(r)){if(t>=e.length)return[];n=Bo(e,t)}else{if(!Eo(r))return[];if(r=eo(r),t>=e.length||r>=e.length)return[];let i=so(t,r+1);n=Bo(e,i)}return n}var xo=Array.prototype.join;function Do(e,t){return null==e?"":xo.call(e,t)}function Fo(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n<i;)o[n]=e[n+t];return o}function Qo(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:Fo(e,t,r)}var So=tt&&tt.isRegExp,ko=So?Ke(So):function(e){return q(e)&&"[object RegExp]"==N(e)};var No="\\ud800-\\udfff",qo="["+No+"]",Mo="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ho="\\ud83c[\\udffb-\\udfff]",Lo="[^"+No+"]",Uo="(?:\\ud83c[\\udde6-\\uddff]){2}",Ro="[\\ud800-\\udbff][\\udc00-\\udfff]",Oo="(?:"+Mo+"|"+Ho+")"+"?",To="[\\ufe0e\\ufe0f]?",Yo=To+Oo+("(?:\\u200d(?:"+[Lo,Uo,Ro].join("|")+")"+To+Oo+")*"),jo="(?:"+[Lo+Mo+"?",Mo,Uo,Ro,qo].join("|")+")",Go=RegExp(Ho+"(?="+Ho+")|"+jo+Yo,"g");function Jo(e){return $r(e)?function(e){return e.match(Go)||[]}(e):function(e){return e.split("")}(e)}function zo(e,t,r){return r&&"number"!=typeof r&&gr(e,t,r)&&(t=r=void 0),(r=void 0===r?4294967295:r>>>0)?(e=ye(e))&&("string"==typeof t||null!=t&&!ko(t))&&!(t=Ie(t))&&$r(e)?Qo(Jo(e),0,r):e.split(t,r):[]}function Vo(e,t,r){var n=null==e?0:e.length;return n?Fo(e,0,(t=n-(t=r||void 0===t?1:Mn(t)))<0?0:t):[]}let Po=class{diff(e,t,r={}){let n;"function"==typeof r?(n=r,r={}):"callback"in r&&(n=r.callback);const i=this.castInput(e,r),o=this.castInput(t,r),a=this.removeEmpty(this.tokenize(i,r)),s=this.removeEmpty(this.tokenize(o,r));return this.diffWithOptionsObj(a,s,r,n)}diffWithOptionsObj(e,t,r,n){var i;const o=e=>(e=this.postProcess(e,r),n?void setTimeout(function(){n(e)},0):e),a=t.length,s=e.length;let l=1,c=a+s;null!=r.maxEditLength&&(c=Math.min(c,r.maxEditLength));const u=null!==(i=r.timeout)&&void 0!==i?i:1/0,f=Date.now()+u,d=[{oldPos:-1,lastComponent:void 0}];let g=this.extractCommon(d[0],t,e,0,r);if(d[0].oldPos+1>=s&&g+1>=a)return o(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,h=1/0;const A=()=>{for(let n=Math.max(p,-l);n<=Math.min(h,l);n+=2){let i;const l=d[n-1],c=d[n+1];l&&(d[n-1]=void 0);let u=!1;if(c){const e=c.oldPos-n;u=c&&0<=e&&e<a}const f=l&&l.oldPos+1<s;if(u||f){if(i=!f||u&&l.oldPos<c.oldPos?this.addToPath(c,!0,!1,0,r):this.addToPath(l,!1,!0,1,r),g=this.extractCommon(i,t,e,n,r),i.oldPos+1>=s&&g+1>=a)return o(this.buildValues(i.lastComponent,t,e))||!0;d[n]=i,i.oldPos+1>=s&&(h=Math.min(h,n-1)),g+1>=a&&(p=Math.max(p,n+1))}else d[n]=void 0}l++};if(n)!function e(){setTimeout(function(){if(l>c||Date.now()>f)return n(void 0);A()||e()},0)}();else for(;l<=c&&Date.now()<=f;){const e=A();if(e)return e}}addToPath(e,t,r,n,i){const o=e.lastComponent;return o&&!i.oneChangePerToken&&o.added===t&&o.removed===r?{oldPos:e.oldPos+n,lastComponent:{count:o.count+1,added:t,removed:r,previousComponent:o.previousComponent}}:{oldPos:e.oldPos+n,lastComponent:{count:1,added:t,removed:r,previousComponent:o}}}extractCommon(e,t,r,n,i){const o=t.length,a=r.length;let s=e.oldPos,l=s-n,c=0;for(;l+1<o&&s+1<a&&this.equals(r[s+1],t[l+1],i);)l++,s++,c++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return c&&!i.oneChangePerToken&&(e.lastComponent={count:c,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,l}equals(e,t,r){return r.comparator?r.comparator(e,t):e===t||!!r.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){const t=[];for(let r=0;r<e.length;r++)e[r]&&t.push(e[r]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,r){const n=[];let i;for(;e;)n.push(e),i=e.previousComponent,delete e.previousComponent,e=i;n.reverse();const o=n.length;let a=0,s=0,l=0;for(;a<o;a++){const e=n[a];if(e.removed)e.value=this.join(r.slice(l,l+e.count)),l+=e.count;else{if(!e.added&&this.useLongestToken){let n=t.slice(s,s+e.count);n=n.map(function(e,t){const n=r[l+t];return n.length>e.length?n:e}),e.value=this.join(n)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(l+=e.count)}}return n}};const Xo=new class extends Po{constructor(){super(...arguments),this.tokenize=Wo}equals(e,t,r){return r.ignoreWhitespace?(r.newlineIsToken&&e.includes("\n")||(e=e.trim()),r.newlineIsToken&&t.includes("\n")||(t=t.trim())):r.ignoreNewlineAtEof&&!r.newlineIsToken&&(e.endsWith("\n")&&(e=e.slice(0,-1)),t.endsWith("\n")&&(t=t.slice(0,-1))),super.equals(e,t,r)}};function _o(e,t,r){return Xo.diff(e,t,r)}function Wo(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,"\n"));const r=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(let e=0;e<n.length;e++){const i=n[e];e%2&&!t.newlineIsToken?r[r.length-1]+=i:r.push(i)}return r}function Ko(e){if(!function(e){for(let t=0;t<e.length;t++)if(e[t]<" "||e[t]>"~"||'"'===e[t]||"\\"===e[t])return!0;return!1}(e))return e;let t='"';const r=(new TextEncoder).encode(e);let n=0;for(;n<r.length;){const e=r[n];t+=7===e?"\\a":8===e?"\\b":9===e?"\\t":10===e?"\\n":11===e?"\\v":12===e?"\\f":13===e?"\\r":34===e?'\\"':92===e?"\\\\":e>=32&&e<=126?String.fromCharCode(e):"\\"+e.toString(8).padStart(3,"0"),n++}return t+='"',t}const $o={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function Zo(e,t,r,n,i,o,a){let s;s=a?"function"==typeof a?{callback:a}:a:{},void 0===s.context&&(s.context=4);const l=s.context;if(s.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(!s.callback)return c(_o(r,n,s));{const{callback:e}=s;_o(r,n,Object.assign(Object.assign({},s),{callback:t=>{const r=c(t);e(r)}}))}function c(r){if(!r)return;function n(e){return e.map(function(e){return" "+e})}r.push({value:"",lines:[]});const a=[];let s=0,c=0,u=[],f=1,d=1;for(let e=0;e<r.length;e++){const t=r[e],i=t.lines||ra(t.value);if(t.lines=i,t.added||t.removed){if(!s){const t=r[e-1];s=f,c=d,t&&(u=l>0?n(t.lines.slice(-l)):[],s-=u.length,c-=u.length)}for(const e of i)u.push((t.added?"+":"-")+e);t.added?d+=i.length:f+=i.length}else{if(s)if(i.length<=2*l&&e<r.length-2)for(const e of n(i))u.push(e);else{const e=Math.min(i.length,l);for(const t of n(i.slice(0,e)))u.push(t);const t={oldStart:s,oldLines:f-s+e,newStart:c,newLines:d-c+e,lines:u};a.push(t),s=0,c=0,u=[]}f+=i.length,d+=i.length}}for(const e of a)for(let t=0;t<e.lines.length;t++)e.lines[t].endsWith("\n")?e.lines[t]=e.lines[t].slice(0,-1):(e.lines.splice(t+1,0,"\"),t++);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:o,hunks:a}}}function ea(e,t){var r,n,i,o,a,s;if(t||(t=$o),Array.isArray(e)){if(e.length>1&&!t.includeFileHeaders&&!e.every(e=>e.isGit))throw new Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return e.map(e=>ea(e,t)).join("\n")}const l=[];if(e.isGit){if(t=$o,!e.oldFileName)throw new Error("oldFileName must be specified for Git patches");if(!e.newFileName)throw new Error("newFileName must be specified for Git patches");let c=e.oldFileName,u=e.newFileName;e.isCreate&&"/dev/null"===c?c=u.replace(/^b\//,"a/"):e.isDelete&&"/dev/null"===u&&(u=c.replace(/^a\//,"b/")),l.push("diff --git "+Ko(c)+" "+Ko(u)),e.isDelete&&l.push("deleted file mode "+(null!==(r=e.oldMode)&&void 0!==r?r:"100644")),e.isCreate&&l.push("new file mode "+(null!==(n=e.newMode)&&void 0!==n?n:"100644")),e.oldMode&&e.newMode&&!e.isDelete&&!e.isCreate&&(l.push("old mode "+e.oldMode),l.push("new mode "+e.newMode)),e.isRename&&(l.push("rename from "+Ko((null!==(i=e.oldFileName)&&void 0!==i?i:"").replace(/^a\//,""))),l.push("rename to "+Ko((null!==(o=e.newFileName)&&void 0!==o?o:"").replace(/^b\//,"")))),e.isCopy&&(l.push("copy from "+Ko((null!==(a=e.oldFileName)&&void 0!==a?a:"").replace(/^a\//,""))),l.push("copy to "+Ko((null!==(s=e.newFileName)&&void 0!==s?s:"").replace(/^b\//,""))))}else t.includeIndex&&e.oldFileName==e.newFileName&&void 0!==e.oldFileName&&l.push("Index: "+e.oldFileName),t.includeUnderline&&l.push("===================================================================");const c=e.hunks.length>0;!t.includeFileHeaders||void 0===e.oldFileName||void 0===e.newFileName||e.isGit&&!c||(l.push("--- "+Ko(e.oldFileName)+(e.oldHeader?"\t"+e.oldHeader:"")),l.push("+++ "+Ko(e.newFileName)+(e.newHeader?"\t"+e.newHeader:"")));for(let t=0;t<e.hunks.length;t++){const r=e.hunks[t],n=0===r.oldLines?r.oldStart-1:r.oldStart,i=0===r.newLines?r.newStart-1:r.newStart;l.push("@@ -"+n+","+r.oldLines+" +"+i+","+r.newLines+" @@");for(const e of r.lines)l.push(e)}return l.join("\n")+"\n"}function ta(e,t,r,n,i,o,a){if("function"==typeof a&&(a={callback:a}),!(null==a?void 0:a.callback)){const s=Zo(e,t,r,n,i,o,a);if(!s)return;return ea(s,null==a?void 0:a.headerOptions)}{const{callback:s}=a;Zo(e,t,r,n,i,o,Object.assign(Object.assign({},a),{callback:e=>{s(e?ea(e,a.headerOptions):void 0)}}))}}function ra(e){const t=e.endsWith("\n"),r=e.split("\n").map(e=>e+"\n");return t?r.pop():r.push(r.pop().slice(0,-1)),r}function na(e,t,r){return e&&e.length?Fo(e,0,(t=r||void 0===t?1:Mn(t))<0?0:t):[]}function ia(e,t,r={}){if(!De(e))return{};if(!De(t))return{};if(""===e&&""===t)return{};let n=Be(r,"useNormNewline");hn(n)||(n=!0),n&&(e=(e=e.replaceAll("\r\n","\n")).replaceAll("\r","\n"),t=(t=t.replaceAll("\r\n","\n")).replaceAll("\r","\n"));let i,o=_o(e,t),a=gn(o),s=[],l=[];for(i=-1;i++,!(i>a-1);){let e=o[i],t=Be(e,"count",0),r=Be(e,"removed",!1),n=Be(e,"added",!1),a=zo(Be(e,"value",""),"\n");a=na(a,t);for(let e=1;e<=t;e++){let t=a[e-1];r||n?r&&!n?(s.push({p:"remove",v:t}),l.push({p:"empty",v:""})):!r&&n&&(s.push({p:"empty",v:""}),l.push({p:"add",v:t})):(s.push({p:"",v:t}),l.push({p:"",v:t}))}}let c=gn(s);for(i=-1;i++,!(i>c-1);){let e=Be(s,i,null),t=Be(l,i,null),r=Be(e,"p",""),n=Be(t,"p","");if("remove"===r&&"empty"===n){let e=0,t=i,r=-1;for(let t=i;t<=c-1;t++){let n=Be(s,t,null),i=Be(l,t,null),o=Be(n,"p",""),a=Be(i,"p","");if("remove"!==o||"empty"!==a)break;e++,r=t}if(e<=0)continue;let n=0,o=!1,a=-1;for(let t=i;t<=r+e;t++){let e=Be(s,t,null),r=Be(l,t,null),i=Be(e,"p",""),c=Be(r,"p","");if("empty"===i&&"add"===c)o||(a=t),o=!0,n++;else if(o)break}if(n<=0)continue;let u=Math.min(e,n);if(u>=1){for(let e=0;e<=u-1;e++){let r=t+e,n=a+e;s[r]={p:"modify",vo:Be(s,`${r}.v`,""),vn:Be(l,`${n}.v`,"")},l[r]=null,s[n]=null,l[n]=null}i+=u+1}}}let u=[];for(i=-1;i++,!(i>c-1);){let e=Be(s,i,null),t=Be(l,i,null),r=Be(e,"p",""),n=Be(t,"p",""),o=Be(e,"v",""),a=Be(t,"v","");if(null===e&&null===t)continue;let c="",f=o,d="";"modify"===r?(c="modify",f=e.vo,d=e.vn):"remove"===r&&"empty"===n?(c="remove",f=o,d=""):"empty"===r&&"add"===n&&(c="add",f=a,d=""),u.push({p:c,vo:f,vn:d})}return{diff:o,dfs:u}}let oa="\n";function aa(e,t){if(!xe(e))return{};if(!xe(t))return{};let r=Dr(e,e=>`${e}${oa}`);r=Do(r,"");let n=Dr(t,e=>`${e}${oa}`);n=Do(n,"");let i=ia(r,n,{eliminateEndLine:!0});return i.dfs=Dr(i.dfs,(e,t)=>({p:e.p,k:t,vo:e.vo,vn:e.vn})),i}function sa(e,t,r={}){if(!xe(e))return{};if(!xe(t))return{};if(0===gn(e)&&0===gn(t))return{};let n,i=Be(r,"mode","");return"array"!==i&&"matrix"!==i&&(i="array"),"array"===i?n=aa(e,t):"matrix"===i&&(n=function(e,t,r={}){if(!xe(e))return{};if(!xe(t))return{};let n=Be(r,"dls","");Fe(n)||(n="⟋");let i=Be(r,"dlq","");Fe(i)||(i="∶");let o=[];Cr(e,(t,r)=>{if(!xe(t))throw console.log("arrOld",e),console.log(r,t),new Error("arrOld is not a matrix");Cr(t,(e,t)=>{o.push(`${t}${i}${e}${n}`)}),o.push(oa)}),o=Do(o,"");let a=[];Cr(t,(e,r)=>{if(!xe(e))throw console.log("arrNew",t),console.log(r,e),new Error("arrNew is not a matrix");Cr(e,(e,t)=>{a.push(`${t}${i}${e}${n}`)}),a.push(oa)}),a=Do(a,"");let s=ia(o,a,{...r,eliminateEndLine:!0}),l=[];return Cr(s.dfs,e=>{let t=zo(e.vo,n);if(t=Vo(t,1),"modify"===e.p){let r=zo(e.vn,n);r=Vo(r,1);let i=aa(t,r);e.dfs=i.dfs}let r=[];"modify"===e.p?Cr(e.dfs,e=>{r.push(e)}):Cr(t,t=>{r.push({p:e.p,vo:t,vn:""})}),r=Dr(r,(e,t)=>{let r=Be(zo(e.vo,i),1,""),n=Be(zo(e.vn,i),1,"");return{p:e.p,k:t,vo:r,vn:n}}),l.push(r)}),{diff:s.diff,dfs:l}}(e,t,r)),n}function la(e,t,r){if((e=ye(e))&&(r||void 0===t))return xn(e);if(!e||!(t=Ie(t)))return e;var n=Jo(e),i=Jo(t),o=function(e,t){for(var r=-1,n=e.length;++r<n&&jr(t,e[r],0)>-1;);return r}(n,i),a=function(e,t){for(var r=e.length;r--&&jr(t,e[r],0)>-1;);return r}(n,i)+1;return Qo(n,o,a).join("")}function ca(e,t){if(!Fe(e))return[];if(!Fe(t))return[];return e.split(t)}function ua(e,t){if(!Fe(e))return[];if(!Fe(t))return[];let r=ca(e,t);r=Dr(r,la);let n=[];return Cr(r,function(e){Fe(e)&&n.push(e)}),n}function fa(e,t){return Fe(e)&&Eo(t)?0===(t=eo(t))?"":e.substring(0,t):""}function da(e,t){if(!Fe(e))return"";if(!Eo(t))return"";if(0===(t=eo(t)))return"";let r=e.length-t;return r<0&&(r=0),e.substring(r,r+t)}function ga(e,t){return Fe(e)&&Eo(t)?0===(t=eo(t))?e:da(e,e.length-t):""}function pa(e,t){var r=[];return ht(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}function ha(e,t){return(b(e)?Qt:pa)(e,dr(t))}function Aa(e){if(!ke(e))return!1;return Hn(e)>0}function ma(e){return Or(e)?e=Dr(e=ha(e=Vi(e),Aa),Hn):[]}function Ia(e,t){return nr(e,t)}function ya(e){return"number"==typeof e||q(e)&&"[object Number]"==N(e)}function va(e,t){function r(e){return xe(e)?e:[e]}if(Rr(e))return!1;if(0===(e=r(e)).length)return!1;if(Rr(e))return!1;if(0===(t=r(t)).length)return!1;for(let r=0;r<e.length;r++)for(let n=0;n<t.length;n++)if(Ia(e[r],t[n]))return!0;return!1}function ba(e){let t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t}function wa(e,t,r={}){if(!Or(e))return null;if(!ba(t))return null;let n=Be(r,"returnIndex");hn(n)||(n=!1);let i=-1,o=null;for(let r=0;r<gn(e);r++){let n=t(o,e[r]);Ia(o,n)||(o=n,i=r)}let a=null;return a=n?i:o,a}function Ba(e,t){if(!xe(e))return[];if(!xe(t))return[];if(gn(e)!==gn(t))return[];let r=[];return Cr(e,function(n,i){let o=null,a=ke(e[i]),s=ke(t[i]);(a||s)&&(o=1),a&&(o*=Hn(e[i])),s&&(o*=Hn(t[i])),r.push(o)}),r}function Ea(){if(gn(arguments)<2)return[];let e=arguments[0];for(let t=1;t<gn(arguments);t++){e=Ba(e,arguments[t])}return e}function Ca(e,t){for(var r,n=-1,i=e.length;++n<i;){var o=t(e[n]);void 0!==o&&(r=void 0===r?o:r+o)}return r}function xa(){if(gn(arguments)<2)return null;let e=Ea(...arguments);return 0===gn(e)?null:(e=(t=e)&&t.length?Ca(t,cr):0,e);var t}function Da(e,t,r,n){for(var i=r-1,o=e.length;++i<o;)if(n(e[i],t))return i;return-1}var Fa=Array.prototype.splice;function Qa(e,t){return e&&e.length&&t&&t.length?function(e,t,r,n){var i=n?Da:jr,o=-1,a=t.length,s=e;for(e===t&&(t=kr(t)),r&&(s=he(e,Ke(r)));++o<a;)for(var l=0,c=t[o],u=r?r(c):c;(l=i(s,u,l,n))>-1;)s!==e&&Fa.call(s,l,1),Fa.call(e,l,1);return e}(e,t):e}function Sa(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var ka=Object.prototype.hasOwnProperty;function Na(e,t){var r=-1,n=(t=ve(t,e)).length;if(!n)return!0;for(;++r<n;){var i=be(t[r]);if("__proto__"===i&&!ka.call(e,"__proto__"))return!1;if(("constructor"===i||"prototype"===i)&&r<n-1)return!1}var o=function(e,t){return t.length<2?e:we(e,Fo(t,0,-1))}(e,t);return null==o||delete o[be(Sa(t))]}var qa=Array.prototype.splice;function Ma(e,t){if(e!==t){var r=void 0!==e,n=null===e,i=e==e,o=M(e),a=void 0!==t,s=null===t,l=t==t,c=M(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||n&&a&&l||!r&&l||!i)return 1;if(!n&&!o&&!c&&e<t||c&&r&&i&&!n&&!o||s&&r&&i||!a&&i||!l)return-1}return 0}var Ha=wo(function(e,t){var r=null==e?0:e.length,n=lo(e,t);return function(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;Xe(i)?qa.call(e,i,1):Na(e,i)}}}(e,he(t,function(e){return Xe(e,r)?+e:e}).sort(Ma)),n});var La=Array.prototype.reverse;function Ua(e){return null==e?e:La.call(e)}function Ra(e,t,r){t=t.length?he(t,function(e){return b(e)?function(t){return we(t,1===e.length?e[0]:e)}:e}):[cr];var n=-1;return t=he(t,Ke(dr)),function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(xr(e,function(e,r,i){return{criteria:he(t,function(t){return t(e)}),index:++n,value:e}}),function(e,t){return function(e,t,r){for(var n=-1,i=e.criteria,o=t.criteria,a=i.length,s=r.length;++n<a;){var l=Ma(i[n],o[n]);if(l)return n>=s?l:l*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)})}function Oa(e,t){return bo(fo(e,t,cr),e+"")}var Ta=Oa(function(e,t){if(null==e)return[];var r=t.length;return r>1&&gr(e,t[0],t[1])?t=[]:r>2&&gr(t[0],t[1],t[2])&&(t=[t[0]]),Ra(e,Sr(t,1),[])});function Ya(e){return"[object BigInt]"===Object.prototype.toString.call(e)}function ja(e){if(!(Fe(e)||ke(e)||M(e)||Ya(e)))return"";let t="";try{t=String(e)}catch(e){}try{t=e.toString()}catch(e){}return t}function Ga(e,t,r){var n=null==e?0:e.length;return n?Fo(e,(t=r||void 0===t?1:Mn(t))<0?0:t,n):[]}function Ja(e,t){return Fe(e)&&Eo(t)?0===(t=eo(t))?e:fa(e,e.length-t):""}function za(e,t={}){let r=Be(t,"excludeString");if(hn(r)||(r=!1),!Fe(e))return"";let n=e=>e>="0"&&e<="9"||"."===e||"-"===e||"+"===e,i=la(e);if(r){let e=i.split("");for(let t=0;t<e.length;t++)if(n(e[t])){i=ga(i,t),e=Ga(e,t);break}e=Ua(e);for(let t=0;t<e.length;t++)if(n(e[t])){i=Ja(i,t);break}}return i}function Va(e){let t=0,r=0,n=0,i=gn(e);Cr(e,e=>{ke(e)?t+=1:De(e)?r+=1:Ee(e)&&(n+=1)});let o="";return t===i?o="num":r===i?o="str":n===i?o="obj":t+r===i?o="str":console.log("eles in array are non-homogeneous",e),o}function Pa(e,t,r={}){let n=[];if("num"!==t&&"str"!==t&&"files"!==t)throw new Error(`invalid type[${t}]`);if("num"===t)n=Dr(e,(e,t)=>({key:t,payload:e,value:Hn(e)}));else if("files"===t)n=Dr(e,(e,t)=>({key:t,payload:e,value:ja(e)}));else if("str"===t){let t=Dr(e,e=>za(e,{excludeString:!0})),r=0;Cr(t,e=>{ke(e)&&r++});let i=r===gn(t);n=Dr(e,(e,r)=>{let n=e;return i?(n=t[r],n=Hn(n)):n=ja(n),{key:r,payload:e,value:n}})}return n}function Xa(e,t){let r=Ta(e,"value");return Dr(r,t?"key":"payload")}function _a(e,t){let r=function(e,t){let r=Vi(e);return r.sort((e,r)=>e[t].localeCompare(r[t],"standard",{numeric:!0})),r}(e,"value");return Dr(r,t?"key":"payload")}function Wa(e,t={}){if(!Or(e))return[];if(1===gn(e))return e;let r=Be(t,"localeCompare");hn(r)||(r=!1);let n=Be(t,"returnIndex");hn(n)||(n=!1);let i=Be(t,"compareKey",null),o=null;o=r?_a:Xa;let a,s=Va(e);if(""===s)return[];if("obj"===s){if(!Fe(i))return[];let s=Dr(e,(e,t)=>Be(e,i,"")),l=Va(s);if("num"!==l&&"str"!==l)return[];{r&&(l="files");let i=o(Pa(s,l,t),!0);a=n?i:Dr(i,t=>e[t])}}else if("num"===s||"str"===s){r&&(s="files"),a=o(Pa(e,s,t),n)}return a}function Ka(e){if(!Fe(e))return"";return Vn.parse(e).toString(si)}function $a(e){if(!Fe(e))return{};let t={};try{t=JSON.parse(e)}catch(e){t={}}return t}function Za(e){if(!De(e))return new Uint8Array;let t=Vn.parse(e),r=t.words,n=t.sigBytes,i=new Uint8Array(n);for(let e=0;e<n;e++){let t=r[e>>>2]>>>24-e%4*8&255;i[e]=t}return i}function es(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)}function ts(e){return es(e)?new Uint16Array(e):new Uint16Array}function rs(e){if(!De(e))return new Uint16Array;return ts(Za(e))}function ns(e,t,r="anyone"){if(!Fe(e))return!1;if("anyone"!==r&&"all"!==r)return!1;if(De(t)){if(!Fe(t))return!1;t=[t]}if(!Or(t))return!1;let n=!1;if(Cr(t,function(e){Fe(e)||(n=!0)}),n)return!1;let i=0;return Cr(t,function(t){-1!==function(e,t){return e.indexOf(t)}(e,t)&&i++}),"anyone"===r?i>0:"all"===r&&i===t.length}function is(){let e,t,r=new Promise(function(){e=arguments[0],t=arguments[1]});return r.resolve=e,r.reject=t,r}function os(e){if(!yn())return Promise.reject("no window");try{return function(e){return e.arrayBuffer()}(e)}catch(t){return function(e){let t=is(),r=new FileReader;return r.onload=function(){let e=r.result;t.resolve(e)},r.onerror=function(e){t.reject(e)},r.readAsArrayBuffer(e),t}(e)}}function as(e){let t=is(),r=new FileReader;r.onload=function(){t.resolve(r.result)},r.onerror=function(e){t.reject(e)};try{r.readAsDataURL(e)}catch(e){t.reject("cancel")}return t}function ss(e){let t=is();return os(e).then(e=>{let r=new Uint8Array(e);t.resolve(r)}).catch(e=>{t.reject(e)}),t}function ls(e){let t=Dr(e,function(e){return as(e)});return Promise.all(t)}function cs(e){let t=Dr(e,function(e){return ss(e)});return Promise.all(t)}var us={exports:{}};
6
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("xlsx"),require("dayjs"),require("xss"),require("child_process"),require("path"),require("fs"),require("tree-kill"),require("url"),require("readline"),require("stream"),require("events"),require("chokidar"),require("crypto"),require("ua-parser-js"),require("html-to-text")):"function"==typeof define&&define.amd?define(["exports","xlsx","dayjs","xss","child_process","path","fs","tree-kill","url","readline","stream","events","chokidar","crypto","ua-parser-js","html-to-text"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).wsemi={},e.XLSX,e.dayjs,e.filterXSS,e.child_process,e.path,e.fs,e.treeKill,e.url,e.readline,e.stream,e.events,e.chokidar,e.crypto,e.UAParser,e["html-to-text"])}(this,function(e,t,r,n,i,o,a,s,l,c,u,f,d,g,p,h){"use strict";function A(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var m=A(t),I=A(h);function y(e){return"[object ArrayBuffer]"===Object.prototype.toString.call(e)}function v(e){if(!y(e))return new Uint8Array;return new Uint8Array(e)}var b=Array.isArray,w="object"==typeof global&&global&&global.Object===Object&&global,B="object"==typeof self&&self&&self.Object===Object&&self,E=w||B||Function("return this")(),C=E.Symbol,x=Object.prototype,D=x.hasOwnProperty,F=x.toString,Q=C?C.toStringTag:void 0;var S=Object.prototype.toString;var k=C?C.toStringTag:void 0;function N(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":k&&k in Object(e)?function(e){var t=D.call(e,Q),r=e[Q];try{e[Q]=void 0;var n=!0}catch(e){}var i=F.call(e);return n&&(t?e[Q]=r:delete e[Q]),i}(e):function(e){return S.call(e)}(e)}function q(e){return null!=e&&"object"==typeof e}function M(e){return"symbol"==typeof e||q(e)&&"[object Symbol]"==N(e)}var H=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,L=/^\w*$/;function U(e,t){if(b(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!M(e))||(L.test(e)||!H.test(e)||null!=t&&e in Object(t))}function R(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function O(e){if(!R(e))return!1;var t=N(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var T,Y=E["__core-js_shared__"],j=(T=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+T:"";var G=Function.prototype.toString;function J(e){if(null!=e){try{return G.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var z=/^\[object .+?Constructor\]$/,V=Function.prototype,P=Object.prototype,X=V.toString,_=P.hasOwnProperty,W=RegExp("^"+X.call(_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function K(e){return!(!R(e)||(t=e,j&&j in t))&&(O(e)?W:z).test(J(e));var t}function $(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return K(r)?r:void 0}var Z=$(Object,"create");var ee=Object.prototype.hasOwnProperty;var te=Object.prototype.hasOwnProperty;function re(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ne(e,t){return e===t||e!=e&&t!=t}function ie(e,t){for(var r=e.length;r--;)if(ne(e[r][0],t))return r;return-1}re.prototype.clear=function(){this.__data__=Z?Z(null):{},this.size=0},re.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},re.prototype.get=function(e){var t=this.__data__;if(Z){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return ee.call(t,e)?t[e]:void 0},re.prototype.has=function(e){var t=this.__data__;return Z?void 0!==t[e]:te.call(t,e)},re.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Z&&void 0===t?"__lodash_hash_undefined__":t,this};var oe=Array.prototype.splice;function ae(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ae.prototype.clear=function(){this.__data__=[],this.size=0},ae.prototype.delete=function(e){var t=this.__data__,r=ie(t,e);return!(r<0)&&(r==t.length-1?t.pop():oe.call(t,r,1),--this.size,!0)},ae.prototype.get=function(e){var t=this.__data__,r=ie(t,e);return r<0?void 0:t[r][1]},ae.prototype.has=function(e){return ie(this.__data__,e)>-1},ae.prototype.set=function(e,t){var r=this.__data__,n=ie(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var se=$(E,"Map");function le(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function ce(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ce.prototype.clear=function(){this.size=0,this.__data__={hash:new re,map:new(se||ae),string:new re}},ce.prototype.delete=function(e){var t=le(this,e).delete(e);return this.size-=t?1:0,t},ce.prototype.get=function(e){return le(this,e).get(e)},ce.prototype.has=function(e){return le(this,e).has(e)},ce.prototype.set=function(e,t){var r=le(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function ue(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(ue.Cache||ce),r}ue.Cache=ce;var fe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,de=/\\(\\)?/g,ge=function(e){var t=ue(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(fe,function(e,r,n,i){t.push(n?i.replace(de,"$1"):r||e)}),t}),pe=ge;function he(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Ae=C?C.prototype:void 0,me=Ae?Ae.toString:void 0;function Ie(e){if("string"==typeof e)return e;if(b(e))return he(e,Ie)+"";if(M(e))return me?me.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ye(e){return null==e?"":Ie(e)}function ve(e,t){return b(e)?e:U(e,t)?[e]:pe(ye(e))}function be(e){if("string"==typeof e||M(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function we(e,t){for(var r=0,n=(t=ve(t,e)).length;null!=e&&r<n;)e=e[be(t[r++])];return r&&r==n?e:void 0}function Be(e,t,r){var n=null==e?void 0:we(e,t);return void 0===n?r:n}function Ee(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ce(e){if(Ee(e)){for(let t in e)return!0;return!1}return!1}function xe(e){return"[object Array]"===Object.prototype.toString.call(e)}function De(e){return"[object String]"===Object.prototype.toString.call(e)}function Fe(e){return!(!De(e)||""===e)}function Qe(e){return"[object Number]"===Object.prototype.toString.call(e)}function Se(e){return e!=e}function ke(e){let t=!1;if(Fe(e))t=!isNaN(Number(e));else if(Qe(e)){if(Se(e))return!1;t=!0}return t}function Ne(e,t){return!!Ee(e)&&(!(!Fe(t)&&!ke(t))&&t in e)}function qe(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}var Me,He=function(e,t,r){for(var n=-1,i=Object(e),o=r(e),a=o.length;a--;){var s=o[Me?a:++n];if(!1===t(i[s],s,i))break}return e};function Le(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Ue(e){return q(e)&&"[object Arguments]"==N(e)}var Re=Object.prototype,Oe=Re.hasOwnProperty,Te=Re.propertyIsEnumerable,Ye=Ue(function(){return arguments}())?Ue:function(e){return q(e)&&Oe.call(e,"callee")&&!Te.call(e,"callee")},je=Ye;var Ge="object"==typeof e&&e&&!e.nodeType&&e,Je=Ge&&"object"==typeof module&&module&&!module.nodeType&&module,ze=Je&&Je.exports===Ge?E.Buffer:void 0,Ve=(ze?ze.isBuffer:void 0)||function(){return!1},Pe=/^(?:0|[1-9]\d*)$/;function Xe(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Pe.test(e))&&e>-1&&e%1==0&&e<t}function _e(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var We={};function Ke(e){return function(t){return e(t)}}We["[object Float32Array]"]=We["[object Float64Array]"]=We["[object Int8Array]"]=We["[object Int16Array]"]=We["[object Int32Array]"]=We["[object Uint8Array]"]=We["[object Uint8ClampedArray]"]=We["[object Uint16Array]"]=We["[object Uint32Array]"]=!0,We["[object Arguments]"]=We["[object Array]"]=We["[object ArrayBuffer]"]=We["[object Boolean]"]=We["[object DataView]"]=We["[object Date]"]=We["[object Error]"]=We["[object Function]"]=We["[object Map]"]=We["[object Number]"]=We["[object Object]"]=We["[object RegExp]"]=We["[object Set]"]=We["[object String]"]=We["[object WeakMap]"]=!1;var $e="object"==typeof e&&e&&!e.nodeType&&e,Ze=$e&&"object"==typeof module&&module&&!module.nodeType&&module,et=Ze&&Ze.exports===$e&&w.process,tt=function(){try{var e=Ze&&Ze.require&&Ze.require("util").types;return e||et&&et.binding&&et.binding("util")}catch(e){}}(),rt=tt&&tt.isTypedArray,nt=rt?Ke(rt):function(e){return q(e)&&_e(e.length)&&!!We[N(e)]},it=Object.prototype.hasOwnProperty;function ot(e,t){var r=b(e),n=!r&&je(e),i=!r&&!n&&Ve(e),o=!r&&!n&&!i&&nt(e),a=r||n||i||o,s=a?Le(e.length,String):[],l=s.length;for(var c in e)!t&&!it.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Xe(c,l))||s.push(c);return s}var at=Object.prototype;function st(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||at)}function lt(e,t){return function(r){return e(t(r))}}var ct=lt(Object.keys,Object),ut=Object.prototype.hasOwnProperty;function ft(e){if(!st(e))return ct(e);var t=[];for(var r in Object(e))ut.call(e,r)&&"constructor"!=r&&t.push(r);return t}function dt(e){return null!=e&&_e(e.length)&&!O(e)}function gt(e){return dt(e)?ot(e):ft(e)}var pt=function(e,t){return function(r,n){if(null==r)return r;if(!dt(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=Object(r);(t?o--:++o<i)&&!1!==n(a[o],o,a););return r}}(function(e,t){return e&&He(e,t,gt)}),ht=pt;function At(e,t){var r=!0;return ht(e,function(e,n,i){return r=!!t(e,n,i)}),r}function mt(e){var t=this.__data__=new ae(e);this.size=t.size}mt.prototype.clear=function(){this.__data__=new ae,this.size=0},mt.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},mt.prototype.get=function(e){return this.__data__.get(e)},mt.prototype.has=function(e){return this.__data__.has(e)},mt.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ae){var n=r.__data__;if(!se||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ce(n)}return r.set(e,t),this.size=r.size,this};function It(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new ce;++t<r;)this.add(e[t])}function yt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function vt(e,t){return e.has(t)}It.prototype.add=It.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},It.prototype.has=function(e){return this.__data__.has(e)};function bt(e,t,r,n,i,o){var a=1&r,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var f=-1,d=!0,g=2&r?new It:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var p=e[f],h=t[f];if(n)var A=a?n(h,p,f,t,e,o):n(p,h,f,e,t,o);if(void 0!==A){if(A)continue;d=!1;break}if(g){if(!yt(t,function(e,t){if(!vt(g,t)&&(p===e||i(p,e,r,n,o)))return g.push(t)})){d=!1;break}}else if(p!==h&&!i(p,h,r,n,o)){d=!1;break}}return o.delete(e),o.delete(t),d}var wt=E.Uint8Array;function Bt(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function Et(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var Ct=C?C.prototype:void 0,xt=Ct?Ct.valueOf:void 0;function Dt(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function Ft(e,t,r){var n=t(e);return b(e)?n:Dt(n,r(e))}function Qt(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}function St(){return[]}var kt=Object.prototype.propertyIsEnumerable,Nt=Object.getOwnPropertySymbols,qt=Nt?function(e){return null==e?[]:(e=Object(e),Qt(Nt(e),function(t){return kt.call(e,t)}))}:St;function Mt(e){return Ft(e,gt,qt)}var Ht=Object.prototype.hasOwnProperty;var Lt=$(E,"DataView"),Ut=$(E,"Promise"),Rt=$(E,"Set"),Ot=$(E,"WeakMap"),Tt="[object Map]",Yt="[object Promise]",jt="[object Set]",Gt="[object WeakMap]",Jt="[object DataView]",zt=J(Lt),Vt=J(se),Pt=J(Ut),Xt=J(Rt),_t=J(Ot),Wt=N;(Lt&&Wt(new Lt(new ArrayBuffer(1)))!=Jt||se&&Wt(new se)!=Tt||Ut&&Wt(Ut.resolve())!=Yt||Rt&&Wt(new Rt)!=jt||Ot&&Wt(new Ot)!=Gt)&&(Wt=function(e){var t=N(e),r="[object Object]"==t?e.constructor:void 0,n=r?J(r):"";if(n)switch(n){case zt:return Jt;case Vt:return Tt;case Pt:return Yt;case Xt:return jt;case _t:return Gt}return t});var Kt=Wt,$t="[object Arguments]",Zt="[object Array]",er="[object Object]",tr=Object.prototype.hasOwnProperty;function rr(e,t,r,n,i,o){var a=b(e),s=b(t),l=a?Zt:Kt(e),c=s?Zt:Kt(t),u=(l=l==$t?er:l)==er,f=(c=c==$t?er:c)==er,d=l==c;if(d&&Ve(e)){if(!Ve(t))return!1;a=!0,u=!1}if(d&&!u)return o||(o=new mt),a||nt(e)?bt(e,t,r,n,i,o):function(e,t,r,n,i,o,a){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new wt(e),new wt(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ne(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Bt;case"[object Set]":var l=1&n;if(s||(s=Et),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;n|=2,a.set(e,t);var u=bt(s(e),s(t),n,i,o,a);return a.delete(e),u;case"[object Symbol]":if(xt)return xt.call(e)==xt.call(t)}return!1}(e,t,l,r,n,i,o);if(!(1&r)){var g=u&&tr.call(e,"__wrapped__"),p=f&&tr.call(t,"__wrapped__");if(g||p){var h=g?e.value():e,A=p?t.value():t;return o||(o=new mt),i(h,A,r,n,o)}}return!!d&&(o||(o=new mt),function(e,t,r,n,i,o){var a=1&r,s=Mt(e),l=s.length;if(l!=Mt(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:Ht.call(t,u)))return!1}var f=o.get(e),d=o.get(t);if(f&&d)return f==t&&d==e;var g=!0;o.set(e,t),o.set(t,e);for(var p=a;++c<l;){var h=e[u=s[c]],A=t[u];if(n)var m=a?n(A,h,u,t,e,o):n(h,A,u,e,t,o);if(!(void 0===m?h===A||i(h,A,r,n,o):m)){g=!1;break}p||(p="constructor"==u)}if(g&&!p){var I=e.constructor,y=t.constructor;I==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof I&&I instanceof I&&"function"==typeof y&&y instanceof y||(g=!1)}return o.delete(e),o.delete(t),g}(e,t,r,n,i,o))}function nr(e,t,r,n,i){return e===t||(null==e||null==t||!q(e)&&!q(t)?e!=e&&t!=t:rr(e,t,r,n,nr,i))}function ir(e){return e==e&&!R(e)}function or(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}function ar(e){var t=function(e){for(var t=gt(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,ir(i)]}return t}(e);return 1==t.length&&t[0][2]?or(t[0][0],t[0][1]):function(r){return r===e||function(e,t,r,n){var i=r.length,o=i,a=!n;if(null==e)return!o;for(e=Object(e);i--;){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=r[i])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var f=new mt;if(n)var d=n(c,u,l,e,t,f);if(!(void 0===d?nr(u,c,3,n,f):d))return!1}}return!0}(r,e,t)}}function sr(e,t){return null!=e&&t in Object(e)}function lr(e,t){return null!=e&&function(e,t,r){for(var n=-1,i=(t=ve(t,e)).length,o=!1;++n<i;){var a=be(t[n]);if(!(o=null!=e&&r(e,a)))break;e=e[a]}return o||++n!=i?o:!!(i=null==e?0:e.length)&&_e(i)&&Xe(a,i)&&(b(e)||je(e))}(e,t,sr)}function cr(e){return e}function ur(e){return function(t){return null==t?void 0:t[e]}}function fr(e){return U(e)?ur(be(e)):function(e){return function(t){return we(t,e)}}(e)}function dr(e){return"function"==typeof e?e:null==e?cr:"object"==typeof e?b(e)?function(e,t){return U(e)&&ir(t)?or(be(e),t):function(r){var n=Be(r,e);return void 0===n&&n===t?lr(r,e):nr(t,n,3)}}(e[0],e[1]):ar(e):fr(e)}function gr(e,t,r){if(!R(r))return!1;var n=typeof t;return!!("number"==n?dt(r)&&Xe(t,r.length):"string"==n&&t in r)&&ne(r[t],e)}function pr(e,t,r){var n=b(e)?qe:At;return r&&gr(e,t,r)&&(t=void 0),n(e,dr(t))}var hr=lt(Object.getPrototypeOf,Object),Ar=Function.prototype,mr=Object.prototype,Ir=Ar.toString,yr=mr.hasOwnProperty,vr=Ir.call(Object);function br(e){if(!q(e)||"[object Object]"!=N(e))return!1;var t=hr(e);if(null===t)return!0;var r=yr.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Ir.call(r)==vr}function wr(e){return q(t=e)&&1===t.nodeType&&!br(t);var t}function Br(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function Er(e){return"function"==typeof e?e:cr}function Cr(e,t){return(b(e)?Br:ht)(e,Er(t))}function xr(e,t){var r=-1,n=dt(e)?Array(e.length):[];return ht(e,function(e,i,o){n[++r]=t(e,i,o)}),n}function Dr(e,t){return(b(e)?he:xr)(e,dr(t))}var Fr=C?C.isConcatSpreadable:void 0;function Qr(e){return b(e)||je(e)||!!(Fr&&e&&e[Fr])}function Sr(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=Qr),i||(i=[]);++o<a;){var s=e[o];t>0&&r(s)?t>1?Sr(s,t-1,r,n,i):Dt(i,s):n||(i[i.length]=s)}return i}function kr(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function Nr(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return Dt(b(r)?kr(r):[r],Sr(t,1))}function qr(e){return"[object Undefined]"===Object.prototype.toString.call(e)}function Mr(e){return"[object Null]"===Object.prototype.toString.call(e)}function Hr(e){if(Ee(e)){for(let t in e)return!1;return!0}return!1}function Lr(e){return!(!De(e)||""!==e)}function Ur(e){return!!xe(e)&&0===e.length}function Rr(e){return!!qr(e)||(!!Mr(e)||(!!Hr(e)||(!!Lr(e)||(!!Ur(e)||!!Se(e)))))}function Or(e){return!!xe(e)&&(0!==e.length&&(1!==e.length||!Rr(e[0])))}function Tr(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Yr(e){return e!=e}function jr(e,t,r){return t==t?function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}(e,t,r):Tr(e,Yr,r)}function Gr(e,t){return!!(null==e?0:e.length)&&jr(e,t,0)>-1}function Jr(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}var zr=Rt&&1/Et(new Rt([,-0]))[1]==1/0?function(e){return new Rt(e)}:function(){},Vr=zr;function Pr(e,t,r){var n=-1,i=Gr,o=e.length,a=!0,s=[],l=s;if(r)a=!1,i=Jr;else if(o>=200){var c=t?null:Vr(e);if(c)return Et(c);a=!1,i=vt,l=new It}else l=t?[]:s;e:for(;++n<o;){var u=e[n],f=t?t(u):u;if(u=r||0!==u?u:0,a&&f==f){for(var d=l.length;d--;)if(l[d]===f)continue e;t&&l.push(f),s.push(u)}else i(l,f,r)||(l!==s&&l.push(f),s.push(u))}return s}function Xr(e){return e&&e.length?Pr(e):[]}function _r(e){if(!Or(e))return[];let t=[];return Cr(e,function(e){let r=gt(e);t=[...t,...r],t=Xr(t)}),t}var Wr=ur("length"),Kr=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function $r(e){return Kr.test(e)}var Zr="\\ud800-\\udfff",en="["+Zr+"]",tn="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",rn="\\ud83c[\\udffb-\\udfff]",nn="[^"+Zr+"]",on="(?:\\ud83c[\\udde6-\\uddff]){2}",an="[\\ud800-\\udbff][\\udc00-\\udfff]",sn="(?:"+tn+"|"+rn+")"+"?",ln="[\\ufe0e\\ufe0f]?",cn=ln+sn+("(?:\\u200d(?:"+[nn,on,an].join("|")+")"+ln+sn+")*"),un="(?:"+[nn+tn+"?",tn,on,an,en].join("|")+")",fn=RegExp(rn+"(?="+rn+")|"+un+cn,"g");function dn(e){return $r(e)?function(e){for(var t=fn.lastIndex=0;fn.test(e);)++t;return t}(e):Wr(e)}function gn(e){if(null==e)return 0;if(dt(e))return"string"==typeof(t=e)||!b(t)&&q(t)&&"[object String]"==N(t)?dn(e):e.length;var t,r=Kt(e);return"[object Map]"==r||"[object Set]"==r?e.size:ft(e).length}function pn(e){return!0===e||!1===e||q(e)&&"[object Boolean]"==N(e)}function hn(e){return pn(e)}function An(e,t=!1){if(qr(e))return"";let r="";try{r=t?JSON.stringify(e,null,2):JSON.stringify(e)}catch(e){r=""}return r}function mn(e,t=null,r={}){if(!Or(e))return[];if(Or(t)||(t=_r(e)),0===gn(t))return[];let n=!1;if(Cr(e,function(e){Ce(e)||(n=!0)}),n)return[];let i=Be(r,"empty",""),o=[];return Cr(e,function(e){let r=Dr(t,function(t){return Ne(e,t)?hn(e[t])?e[t]?"true":"false":De(e[t])||ke(e[t])?e[t]:An(e[t]):i});o.push(r)}),o}function In(e,t=[],r={}){if(!Or(e))return[];Or(t)||(t=_r(e)),Ce(r)||(r={},Cr(t,e=>{r[e]=e}));let n=!1;return Cr(e,function(e){Ce(e)||(n=!0)}),n?[]:Nr([Dr(t,function(e){return Be(r,e)})],mn(e,t))}function yn(){return"undefined"!=typeof window&&void 0!==window.document}function vn(){return"undefined"!=typeof self?self:yn()?window:"undefined"!=typeof global?global:null}function bn(){let e=vn();if(Ce(Be(m,"utils")))return m;if(Ce(Be(m,"default.utils")))return Be(m,"default");if(Ce(Be(e,"XLSX.utils")))return Be(e,"XLSX");if(Ce(Be(e,"XLSX.default.utils")))return Be(e,"XLSX.default");if(Ce(Be(e,"xlsx.utils")))return Be(e,"xlsx");if(Ce(Be(e,"xlsx.default.utils")))return Be(e,"xlsx.default");throw console.log("XLSX",m,"g.XLSX",e.XLSX,"g.xlsx",e.xlsx),new Error("invalid XLSX, g.XLSX, g.xlsx")}function wn(e){if(!xe(e)&&!wr(e))return{error:"data is not an array or element"};let t=null;try{let r=bn().utils;if(xe(e)){pr(e,Ce)&&(e=In(e)),t=r.aoa_to_sheet(e)}else wr(e)&&(t=r.table_to_sheet(e,{raw:!0}))}catch(e){return{error:e}}return t}function Bn(e){if(!Fe(e))return!1;let t="YYYY-MM";return e===r(e,t).format(t)}var En=/\s/;var Cn=/^\s+/;function xn(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&En.test(e.charAt(t)););return t}(e)+1).replace(Cn,""):e}var Dn=/^[-+]0x[0-9a-f]+$/i,Fn=/^0b[01]+$/i,Qn=/^0o[0-7]+$/i,Sn=parseInt;function kn(e){if("number"==typeof e)return e;if(M(e))return NaN;if(R(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=R(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=xn(e);var r=Fn.test(e);return r||Qn.test(e)?Sn(e.slice(2),r?2:8):Dn.test(e)?NaN:+e}var Nn=1/0;function qn(e){return e?(e=kn(e))===Nn||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function Mn(e){var t=qn(e),r=t%1;return t==t?r?t-r:t:0}function Hn(e){if(!ke(e))return 0;return qn(e)}function Ln(e){return!!ke(e)&&(e=Hn(e),"number"==typeof(t=e)&&t==Mn(t));var t}var Un="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Rn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var On={exports:{}};var Tn,Yn={exports:{}};function jn(){return Tn||(Tn=1,function(e){var t;e.exports=(t=t||function(e,t){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==Un&&Un.crypto&&(r=Un.crypto),!r)try{r=require("crypto")}catch(e){}var n=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),o={},a=o.lib={},s=a.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},l=a.WordArray=s.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var a=r[o>>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var s=0;s<i;s+=4)t[n+s>>>2]=r[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(n());return new l.init(t,e)}}),c=o.enc={},u=c.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new l.init(r,t/2)}},f=c.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new l.init(r,t)}},d=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},g=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,i=n.words,o=n.sigBytes,a=this.blockSize,s=o/(4*a),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,u=e.min(4*c,o);if(c){for(var f=0;f<c;f+=a)this._doProcessBlock(i,f);r=i.splice(0,c),n.sigBytes-=u}return new l.init(r,u)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=g.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new p.HMAC.init(e,r).finalize(t)}}});var p=o.algo={};return o}(Math),t)}(Yn)),Yn.exports}var Gn={exports:{}};!function(e){var t;e.exports=(t=jn(),function(){var e=t,r=e.lib.WordArray;function n(e,t,n){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2|n[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return r.create(i,o)}e.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o<r;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<r;s++)i.push(n.charAt(a>>>6*(3-s)&63));var l=n.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<r.length;o++)i[r.charCodeAt(o)]=o}var a=r.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return n(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),t.enc.Base64)}(Gn);var Jn,zn=Gn.exports,Vn=Rn(zn),Pn={exports:{}};function Xn(){return Jn||(Jn=1,function(e){var t;e.exports=(t=jn(),function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],l=e[t+1],g=e[t+2],p=e[t+3],h=e[t+4],A=e[t+5],m=e[t+6],I=e[t+7],y=e[t+8],v=e[t+9],b=e[t+10],w=e[t+11],B=e[t+12],E=e[t+13],C=e[t+14],x=e[t+15],D=o[0],F=o[1],Q=o[2],S=o[3];D=c(D,F,Q,S,a,7,s[0]),S=c(S,D,F,Q,l,12,s[1]),Q=c(Q,S,D,F,g,17,s[2]),F=c(F,Q,S,D,p,22,s[3]),D=c(D,F,Q,S,h,7,s[4]),S=c(S,D,F,Q,A,12,s[5]),Q=c(Q,S,D,F,m,17,s[6]),F=c(F,Q,S,D,I,22,s[7]),D=c(D,F,Q,S,y,7,s[8]),S=c(S,D,F,Q,v,12,s[9]),Q=c(Q,S,D,F,b,17,s[10]),F=c(F,Q,S,D,w,22,s[11]),D=c(D,F,Q,S,B,7,s[12]),S=c(S,D,F,Q,E,12,s[13]),Q=c(Q,S,D,F,C,17,s[14]),D=u(D,F=c(F,Q,S,D,x,22,s[15]),Q,S,l,5,s[16]),S=u(S,D,F,Q,m,9,s[17]),Q=u(Q,S,D,F,w,14,s[18]),F=u(F,Q,S,D,a,20,s[19]),D=u(D,F,Q,S,A,5,s[20]),S=u(S,D,F,Q,b,9,s[21]),Q=u(Q,S,D,F,x,14,s[22]),F=u(F,Q,S,D,h,20,s[23]),D=u(D,F,Q,S,v,5,s[24]),S=u(S,D,F,Q,C,9,s[25]),Q=u(Q,S,D,F,p,14,s[26]),F=u(F,Q,S,D,y,20,s[27]),D=u(D,F,Q,S,E,5,s[28]),S=u(S,D,F,Q,g,9,s[29]),Q=u(Q,S,D,F,I,14,s[30]),D=f(D,F=u(F,Q,S,D,B,20,s[31]),Q,S,A,4,s[32]),S=f(S,D,F,Q,y,11,s[33]),Q=f(Q,S,D,F,w,16,s[34]),F=f(F,Q,S,D,C,23,s[35]),D=f(D,F,Q,S,l,4,s[36]),S=f(S,D,F,Q,h,11,s[37]),Q=f(Q,S,D,F,I,16,s[38]),F=f(F,Q,S,D,b,23,s[39]),D=f(D,F,Q,S,E,4,s[40]),S=f(S,D,F,Q,a,11,s[41]),Q=f(Q,S,D,F,p,16,s[42]),F=f(F,Q,S,D,m,23,s[43]),D=f(D,F,Q,S,v,4,s[44]),S=f(S,D,F,Q,B,11,s[45]),Q=f(Q,S,D,F,x,16,s[46]),D=d(D,F=f(F,Q,S,D,g,23,s[47]),Q,S,a,6,s[48]),S=d(S,D,F,Q,I,10,s[49]),Q=d(Q,S,D,F,C,15,s[50]),F=d(F,Q,S,D,A,21,s[51]),D=d(D,F,Q,S,B,6,s[52]),S=d(S,D,F,Q,p,10,s[53]),Q=d(Q,S,D,F,b,15,s[54]),F=d(F,Q,S,D,l,21,s[55]),D=d(D,F,Q,S,y,6,s[56]),S=d(S,D,F,Q,x,10,s[57]),Q=d(Q,S,D,F,m,15,s[58]),F=d(F,Q,S,D,E,21,s[59]),D=d(D,F,Q,S,h,6,s[60]),S=d(S,D,F,Q,w,10,s[61]),Q=d(Q,S,D,F,g,15,s[62]),F=d(F,Q,S,D,v,21,s[63]),o[0]=o[0]+D|0,o[1]=o[1]+F|0,o[2]=o[2]+Q|0,o[3]=o[3]+S|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var o=e.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<<o|s>>>32-o)+t}function u(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<<o|s>>>32-o)+t}function f(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<<o|s>>>32-o)+t}function d(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<<o|s>>>32-o)+t}r.MD5=o._createHelper(l),r.HmacMD5=o._createHmacHelper(l)}(Math),t.MD5)}(Pn)),Pn.exports}var _n={exports:{}},Wn={exports:{}};!function(e){var t;e.exports=(t=jn(),function(){var e=t,r=e.lib,n=r.WordArray,i=r.Hasher,o=e.algo,a=[],s=o.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],s=r[3],l=r[4],c=0;c<80;c++){if(c<16)a[c]=0|e[t+c];else{var u=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=u<<1|u>>>31}var f=(n<<5|n>>>27)+l+a[c];f+=c<20?1518500249+(i&o|~i&s):c<40?1859775393+(i^o^s):c<60?(i&o|i&s|o&s)-1894007588:(i^o^s)-899497514,l=s,s=o,o=i<<30|i>>>2,i=n,n=f}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA1=i._createHelper(s),e.HmacSHA1=i._createHmacHelper(s)}(),t.SHA1)}(Wn);var Kn,$n,Zn=Wn.exports,ei=Rn(Zn),ti={exports:{}};function ri(){return $n||($n=1,function(e){var t;e.exports=(t=jn(),Kn||(Kn=1,function(e){var t,r,n;e.exports=(r=(t=jn()).lib.Base,n=t.enc.Utf8,void(t.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var r=e.blockSize,i=4*r;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,l=a.words,c=0;c<r;c++)s[c]^=1549556828,l[c]^=909522486;o.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})))}(ti)),function(){var e=t,r=e.lib,n=r.Base,i=r.WordArray,o=e.algo,a=o.MD5,s=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,n=this.cfg,o=n.hasher.create(),a=i.create(),s=a.words,l=n.keySize,c=n.iterations;s.length<l;){r&&o.update(r),r=o.update(e).finalize(t),o.reset();for(var u=1;u<c;u++)r=o.finalize(r),o.reset();a.concat(r)}return a.sigBytes=4*l,a}});e.EvpKDF=function(e,t,r){return s.create(r).compute(e,t)}}(),t.EvpKDF)}(_n)),_n.exports}var ni,ii={exports:{}};!function(e){var t;e.exports=(t=jn(),Xn(),ri(),ni||(ni=1,function(e){var t;e.exports=(t=jn(),ri(),void(t.lib.Cipher||function(e){var r=t,n=r.lib,i=n.Base,o=n.WordArray,a=n.BufferedBlockAlgorithm,s=r.enc;s.Utf8;var l=s.Base64,c=r.algo.EvpKDF,u=n.Cipher=a.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?y:m}return function(t){return{encrypt:function(r,n,i){return e(n).encrypt(t,r,n,i)},decrypt:function(r,n,i){return e(n).decrypt(t,r,n,i)}}}}()});n.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var f=r.mode={},d=n.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),g=f.CBC=function(){var t=d.extend();function r(t,r,n){var i,o=this._iv;o?(i=o,this._iv=e):i=this._prevBlock;for(var a=0;a<n;a++)t[r+a]^=i[a]}return t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;r.call(this,e,t,i),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),t.Decryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=e.slice(t,t+i);n.decryptBlock(e,t),r.call(this,e,t,i),this._prevBlock=o}}),t}(),p=(r.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,i=n<<24|n<<16|n<<8|n,a=[],s=0;s<n;s+=4)a.push(i);var l=o.create(a,n);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:g,padding:p}),reset:function(){var e;u.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var h=n.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),A=(r.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?o.create([1398893684,1701076831]).concat(r).concat(t):t).toString(l)},parse:function(e){var t,r=l.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=o.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),h.create({ciphertext:r,salt:t})}},m=n.SerializableCipher=i.extend({cfg:i.extend({format:A}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),a=i.cfg;return h.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),I=(r.kdf={}).OpenSSL={execute:function(e,t,r,n,i){if(n||(n=o.random(8)),i)a=c.create({keySize:t+r,hasher:i}).compute(e,n);else var a=c.create({keySize:t+r}).compute(e,n);var s=o.create(a.words.slice(t),4*r);return a.sigBytes=4*t,h.create({key:a,iv:s,salt:n})}},y=n.PasswordBasedCipher=m.extend({cfg:m.cfg.extend({kdf:I}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=i.iv;var o=m.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt,n.hasher);return n.iv=i.iv,m.decrypt.call(this,e,t,i.key,n)}})}()))}(ii)),function(){var e=t,r=e.lib.BlockCipher,n=e.algo,i=[],o=[],a=[],s=[],l=[],c=[],u=[],f=[],d=[],g=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var h=e[r],A=e[h],m=e[A],I=257*e[p]^16843008*p;a[r]=I<<24|I>>>8,s[r]=I<<16|I>>>16,l[r]=I<<8|I>>>24,c[r]=I,I=16843009*m^65537*A^257*h^16843008*r,u[p]=I<<24|I>>>8,f[p]=I<<16|I>>>16,d[p]=I<<8|I>>>24,g[p]=I,r?(r=h^e[e[e[m^h]]],n^=e[e[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],h=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<r?o[a]=t[a]:(c=o[a-1],a%r?r>6&&a%r==4&&(c=i[c>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c]):(c=i[(c=c<<8|c>>>24)>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c],c^=p[a/r|0]<<24),o[a]=o[a-r]^c);for(var s=this._invKeySchedule=[],l=0;l<n;l++){if(a=n-l,l%4)var c=o[a];else c=o[a-4];s[l]=l<4||a<=4?c:u[i[c>>>24]]^f[i[c>>>16&255]]^d[i[c>>>8&255]]^g[i[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,l,c,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,f,d,g,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var l=this._nRounds,c=e[t]^r[0],u=e[t+1]^r[1],f=e[t+2]^r[2],d=e[t+3]^r[3],g=4,p=1;p<l;p++){var h=n[c>>>24]^i[u>>>16&255]^o[f>>>8&255]^a[255&d]^r[g++],A=n[u>>>24]^i[f>>>16&255]^o[d>>>8&255]^a[255&c]^r[g++],m=n[f>>>24]^i[d>>>16&255]^o[c>>>8&255]^a[255&u]^r[g++],I=n[d>>>24]^i[c>>>16&255]^o[u>>>8&255]^a[255&f]^r[g++];c=h,u=A,f=m,d=I}h=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[f>>>8&255]<<8|s[255&d])^r[g++],A=(s[u>>>24]<<24|s[f>>>16&255]<<16|s[d>>>8&255]<<8|s[255&c])^r[g++],m=(s[f>>>24]<<24|s[d>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^r[g++],I=(s[d>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&f])^r[g++],e[t]=h,e[t+1]=A,e[t+2]=m,e[t+3]=I},keySize:8});e.AES=r._createHelper(h)}(),t.AES)}(On);var oi=Rn(On.exports),ai={exports:{}};!function(e){e.exports=jn().enc.Utf8}(ai);var si=Rn(ai.exports),li={exports:{}};!function(e){e.exports=jn().enc.Hex}(li);var ci=Rn(li.exports);function ui(e,t,r=!1){if(!Fe(e))return"";if(!Fe(t))return"";hn(r)||(r=!1);let n="";if(r){n=oi.decrypt(e,t).toString(si)}else{let r=ci.parse(e).toString(Vn);n=oi.decrypt(r,t).toString(si)}return n}var fi=function(){try{var e=$(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),di=fi;function gi(e,t,r){"__proto__"==t&&di?di(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var pi=Object.prototype.hasOwnProperty;function hi(e,t,r){var n=e[t];pi.call(e,t)&&ne(n,r)&&(void 0!==r||t in e)||gi(e,t,r)}function Ai(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=n?n(r[s],e[s],s,r,e):void 0;void 0===l&&(l=e[s]),i?gi(r,s,l):hi(r,s,l)}return r}var mi=Object.prototype.hasOwnProperty;function Ii(e){if(!R(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=st(e),r=[];for(var n in e)("constructor"!=n||!t&&mi.call(e,n))&&r.push(n);return r}function yi(e){return dt(e)?ot(e,!0):Ii(e)}var vi="object"==typeof e&&e&&!e.nodeType&&e,bi=vi&&"object"==typeof module&&module&&!module.nodeType&&module,wi=bi&&bi.exports===vi?E.Buffer:void 0,Bi=wi?wi.allocUnsafe:void 0;function Ei(e,t){if(t)return e.slice();var r=e.length,n=Bi?Bi(r):new e.constructor(r);return e.copy(n),n}var Ci=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Dt(t,qt(e)),e=hr(e);return t}:St;function xi(e){return Ft(e,yi,Ci)}var Di=Object.prototype.hasOwnProperty;function Fi(e){var t=new e.constructor(e.byteLength);return new wt(t).set(new wt(e)),t}var Qi=/\w*$/;var Si=C?C.prototype:void 0,ki=Si?Si.valueOf:void 0;function Ni(e,t){var r=t?Fi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function qi(e,t,r){var n,i,o,a=e.constructor;switch(t){case"[object ArrayBuffer]":return Fi(e);case"[object Boolean]":case"[object Date]":return new a(+e);case"[object DataView]":return function(e,t){var r=t?Fi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Ni(e,r);case"[object Map]":case"[object Set]":return new a;case"[object Number]":case"[object String]":return new a(e);case"[object RegExp]":return(o=new(i=e).constructor(i.source,Qi.exec(i))).lastIndex=i.lastIndex,o;case"[object Symbol]":return n=e,ki?Object(ki.call(n)):{}}}var Mi=Object.create,Hi=function(){function e(){}return function(t){if(!R(t))return{};if(Mi)return Mi(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Li(e){return"function"!=typeof e.constructor||st(e)?{}:Hi(hr(e))}var Ui=tt&&tt.isMap,Ri=Ui?Ke(Ui):function(e){return q(e)&&"[object Map]"==Kt(e)};var Oi=tt&&tt.isSet,Ti=Oi?Ke(Oi):function(e){return q(e)&&"[object Set]"==Kt(e)},Yi="[object Arguments]",ji="[object Function]",Gi="[object Object]",Ji={};function zi(e,t,r,n,i,o){var a,s=1&t,l=2&t,c=4&t;if(r&&(a=i?r(e,n,i,o):r(e)),void 0!==a)return a;if(!R(e))return e;var u=b(e);if(u){if(a=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Di.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!s)return kr(e,a)}else{var f=Kt(e),d=f==ji||"[object GeneratorFunction]"==f;if(Ve(e))return Ei(e,s);if(f==Gi||f==Yi||d&&!i){if(a=l||d?{}:Li(e),!s)return l?function(e,t){return Ai(e,Ci(e),t)}(e,function(e,t){return e&&Ai(t,yi(t),e)}(a,e)):function(e,t){return Ai(e,qt(e),t)}(e,function(e,t){return e&&Ai(t,gt(t),e)}(a,e))}else{if(!Ji[f])return i?e:{};a=qi(e,f,s)}}o||(o=new mt);var g=o.get(e);if(g)return g;o.set(e,a),Ti(e)?e.forEach(function(n){a.add(zi(n,t,r,n,e,o))}):Ri(e)&&e.forEach(function(n,i){a.set(i,zi(n,t,r,i,e,o))});var p=u?void 0:(c?l?xi:Mt:l?yi:gt)(e);return Br(p||e,function(n,i){p&&(n=e[i=n]),hi(a,i,zi(n,t,r,i,e,o))}),a}Ji[Yi]=Ji["[object Array]"]=Ji["[object ArrayBuffer]"]=Ji["[object DataView]"]=Ji["[object Boolean]"]=Ji["[object Date]"]=Ji["[object Float32Array]"]=Ji["[object Float64Array]"]=Ji["[object Int8Array]"]=Ji["[object Int16Array]"]=Ji["[object Int32Array]"]=Ji["[object Map]"]=Ji["[object Number]"]=Ji[Gi]=Ji["[object RegExp]"]=Ji["[object Set]"]=Ji["[object String]"]=Ji["[object Symbol]"]=Ji["[object Uint8Array]"]=Ji["[object Uint8ClampedArray]"]=Ji["[object Uint16Array]"]=Ji["[object Uint32Array]"]=!0,Ji["[object Error]"]=Ji[ji]=Ji["[object WeakMap]"]=!1;function Vi(e){return zi(e,5)}var Pi={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function o(e,t,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new i(n,o||e,a),l=r?r+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function a(e,t){0===--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,i,o,a){var s=r?r+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],f=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),f){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,i),!0;case 5:return u.fn.call(u.context,t,n,i,o),!0;case 6:return u.fn.call(u.context,t,n,i,o,a),!0}for(c=1,l=new Array(f-1);c<f;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var d,g=u.length;for(c=0;c<g;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),f){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,i);break;default:if(!l)for(d=1,l=new Array(f-1);d<f;d++)l[d-1]=arguments[d];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(e,t,r){return o(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return o(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,i){var o=r?r+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||n&&s.context!==n||a(this,o);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||i&&!s[l].once||n&&s[l].context!==n)&&c.push(s[l]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s}(Pi);var Xi=Rn(Pi.exports);function _i(){return new Xi}var Wi=E.isFinite,Ki=Math.min;function $i(e){var t=Math[e];return function(e,r){if(e=kn(e),(r=null==r?0:Ki(Mn(r),292))&&Wi(e)){var n=(ye(e)+"e").split("e");return+((n=(ye(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Zi=$i("round");function eo(e){if(!ke(e))return 0;e=Hn(e);let t=Zi(e);return"0"===String(t)?0:t}function to(e){if(!Ln(e))return!1;return eo(e)>0}function ro(e,t){return function(e,t,r){for(var n=-1,i=e.length,o=t.length,a={};++n<i;){var s=n<o?t[n]:void 0;r(a,e[n],s)}return a}(e||[],t||[],hi)}function no(e,t){if(!xe(e))return[];if(!xe(t))return[];if(gn(e)!==gn(t))return[];let r=[];return Cr(e,function(n,i){let o=null,a=ke(e[i]),s=ke(t[i]);(a||s)&&(o=0),a&&(o+=Hn(e[i])),s&&(o+=Hn(t[i])),r.push(o)}),r}var io=Math.ceil,oo=Math.max;var ao=function(e){return function(t,r,n){return n&&"number"!=typeof n&&gr(t,r,n)&&(r=n=void 0),t=qn(t),void 0===r?(r=t,t=0):r=qn(r),function(e,t,r,n){for(var i=-1,o=oo(io((t-e)/(r||1)),0),a=Array(o);o--;)a[n?o:++i]=e,e+=r;return a}(t,r,n=void 0===n?t<r?1:-1:qn(n),e)}}(),so=ao;function lo(e,t){for(var r=-1,n=t.length,i=Array(n),o=null==e;++r<n;)i[r]=o?void 0:Be(e,t[r]);return i}function co(e){return(null==e?0:e.length)?Sr(e,1):[]}var uo=Math.max;function fo(e,t,r){return t=uo(void 0===t?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=uo(n.length-t,0),a=Array(o);++i<o;)a[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(a),function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(e,this,s)}}function go(e){return function(){return e}}var po=di?function(e,t){return di(e,"toString",{configurable:!0,enumerable:!1,value:go(t),writable:!0})}:cr,ho=po,Ao=Date.now;var mo,Io,yo,vo=(mo=ho,Io=0,yo=0,function(){var e=Ao(),t=16-(e-yo);if(yo=e,t>0){if(++Io>=800)return arguments[0]}else Io=0;return mo.apply(void 0,arguments)}),bo=vo;function wo(e){return bo(fo(e,void 0,co),e+"")}var Bo=wo(lo);function Eo(e){if(!Ln(e))return!1;return eo(e)>=0}function Co(e,t,r=null){if(!Or(e))return[];if(!Eo(t))return[];let n;if(t=eo(t),Rr(r)){if(t>=e.length)return[];n=Bo(e,t)}else{if(!Eo(r))return[];if(r=eo(r),t>=e.length||r>=e.length)return[];let i=so(t,r+1);n=Bo(e,i)}return n}var xo=Array.prototype.join;function Do(e,t){return null==e?"":xo.call(e,t)}function Fo(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n<i;)o[n]=e[n+t];return o}function Qo(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:Fo(e,t,r)}var So=tt&&tt.isRegExp,ko=So?Ke(So):function(e){return q(e)&&"[object RegExp]"==N(e)};var No="\\ud800-\\udfff",qo="["+No+"]",Mo="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ho="\\ud83c[\\udffb-\\udfff]",Lo="[^"+No+"]",Uo="(?:\\ud83c[\\udde6-\\uddff]){2}",Ro="[\\ud800-\\udbff][\\udc00-\\udfff]",Oo="(?:"+Mo+"|"+Ho+")"+"?",To="[\\ufe0e\\ufe0f]?",Yo=To+Oo+("(?:\\u200d(?:"+[Lo,Uo,Ro].join("|")+")"+To+Oo+")*"),jo="(?:"+[Lo+Mo+"?",Mo,Uo,Ro,qo].join("|")+")",Go=RegExp(Ho+"(?="+Ho+")|"+jo+Yo,"g");function Jo(e){return $r(e)?function(e){return e.match(Go)||[]}(e):function(e){return e.split("")}(e)}function zo(e,t,r){return r&&"number"!=typeof r&&gr(e,t,r)&&(t=r=void 0),(r=void 0===r?4294967295:r>>>0)?(e=ye(e))&&("string"==typeof t||null!=t&&!ko(t))&&!(t=Ie(t))&&$r(e)?Qo(Jo(e),0,r):e.split(t,r):[]}function Vo(e,t,r){var n=null==e?0:e.length;return n?Fo(e,0,(t=n-(t=r||void 0===t?1:Mn(t)))<0?0:t):[]}let Po=class{diff(e,t,r={}){let n;"function"==typeof r?(n=r,r={}):"callback"in r&&(n=r.callback);const i=this.castInput(e,r),o=this.castInput(t,r),a=this.removeEmpty(this.tokenize(i,r)),s=this.removeEmpty(this.tokenize(o,r));return this.diffWithOptionsObj(a,s,r,n)}diffWithOptionsObj(e,t,r,n){var i;const o=e=>(e=this.postProcess(e,r),n?void setTimeout(function(){n(e)},0):e),a=t.length,s=e.length;let l=1,c=a+s;null!=r.maxEditLength&&(c=Math.min(c,r.maxEditLength));const u=null!==(i=r.timeout)&&void 0!==i?i:1/0,f=Date.now()+u,d=[{oldPos:-1,lastComponent:void 0}];let g=this.extractCommon(d[0],t,e,0,r);if(d[0].oldPos+1>=s&&g+1>=a)return o(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,h=1/0;const A=()=>{for(let n=Math.max(p,-l);n<=Math.min(h,l);n+=2){let i;const l=d[n-1],c=d[n+1];l&&(d[n-1]=void 0);let u=!1;if(c){const e=c.oldPos-n;u=c&&0<=e&&e<a}const f=l&&l.oldPos+1<s;if(u||f){if(i=!f||u&&l.oldPos<c.oldPos?this.addToPath(c,!0,!1,0,r):this.addToPath(l,!1,!0,1,r),g=this.extractCommon(i,t,e,n,r),i.oldPos+1>=s&&g+1>=a)return o(this.buildValues(i.lastComponent,t,e))||!0;d[n]=i,i.oldPos+1>=s&&(h=Math.min(h,n-1)),g+1>=a&&(p=Math.max(p,n+1))}else d[n]=void 0}l++};if(n)!function e(){setTimeout(function(){if(l>c||Date.now()>f)return n(void 0);A()||e()},0)}();else for(;l<=c&&Date.now()<=f;){const e=A();if(e)return e}}addToPath(e,t,r,n,i){const o=e.lastComponent;return o&&!i.oneChangePerToken&&o.added===t&&o.removed===r?{oldPos:e.oldPos+n,lastComponent:{count:o.count+1,added:t,removed:r,previousComponent:o.previousComponent}}:{oldPos:e.oldPos+n,lastComponent:{count:1,added:t,removed:r,previousComponent:o}}}extractCommon(e,t,r,n,i){const o=t.length,a=r.length;let s=e.oldPos,l=s-n,c=0;for(;l+1<o&&s+1<a&&this.equals(r[s+1],t[l+1],i);)l++,s++,c++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return c&&!i.oneChangePerToken&&(e.lastComponent={count:c,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,l}equals(e,t,r){return r.comparator?r.comparator(e,t):e===t||!!r.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){const t=[];for(let r=0;r<e.length;r++)e[r]&&t.push(e[r]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,r){const n=[];let i;for(;e;)n.push(e),i=e.previousComponent,delete e.previousComponent,e=i;n.reverse();const o=n.length;let a=0,s=0,l=0;for(;a<o;a++){const e=n[a];if(e.removed)e.value=this.join(r.slice(l,l+e.count)),l+=e.count;else{if(!e.added&&this.useLongestToken){let n=t.slice(s,s+e.count);n=n.map(function(e,t){const n=r[l+t];return n.length>e.length?n:e}),e.value=this.join(n)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(l+=e.count)}}return n}};const Xo=new class extends Po{constructor(){super(...arguments),this.tokenize=Wo}equals(e,t,r){return r.ignoreWhitespace?(r.newlineIsToken&&e.includes("\n")||(e=e.trim()),r.newlineIsToken&&t.includes("\n")||(t=t.trim())):r.ignoreNewlineAtEof&&!r.newlineIsToken&&(e.endsWith("\n")&&(e=e.slice(0,-1)),t.endsWith("\n")&&(t=t.slice(0,-1))),super.equals(e,t,r)}};function _o(e,t,r){return Xo.diff(e,t,r)}function Wo(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,"\n"));const r=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(let e=0;e<n.length;e++){const i=n[e];e%2&&!t.newlineIsToken?r[r.length-1]+=i:r.push(i)}return r}function Ko(e){if(!function(e){for(let t=0;t<e.length;t++)if(e[t]<" "||e[t]>"~"||'"'===e[t]||"\\"===e[t])return!0;return!1}(e))return e;let t='"';const r=(new TextEncoder).encode(e);let n=0;for(;n<r.length;){const e=r[n];t+=7===e?"\\a":8===e?"\\b":9===e?"\\t":10===e?"\\n":11===e?"\\v":12===e?"\\f":13===e?"\\r":34===e?'\\"':92===e?"\\\\":e>=32&&e<=126?String.fromCharCode(e):"\\"+e.toString(8).padStart(3,"0"),n++}return t+='"',t}const $o={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function Zo(e,t,r,n,i,o,a){let s;s=a?"function"==typeof a?{callback:a}:a:{},void 0===s.context&&(s.context=4);const l=s.context;if(s.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(!s.callback)return c(_o(r,n,s));{const{callback:e}=s;_o(r,n,Object.assign(Object.assign({},s),{callback:t=>{const r=c(t);e(r)}}))}function c(r){if(!r)return;function n(e){return e.map(function(e){return" "+e})}r.push({value:"",lines:[]});const a=[];let s=0,c=0,u=[],f=1,d=1;for(let e=0;e<r.length;e++){const t=r[e],i=t.lines||ra(t.value);if(t.lines=i,t.added||t.removed){if(!s){const t=r[e-1];s=f,c=d,t&&(u=l>0?n(t.lines.slice(-l)):[],s-=u.length,c-=u.length)}for(const e of i)u.push((t.added?"+":"-")+e);t.added?d+=i.length:f+=i.length}else{if(s)if(i.length<=2*l&&e<r.length-2)for(const e of n(i))u.push(e);else{const e=Math.min(i.length,l);for(const t of n(i.slice(0,e)))u.push(t);const t={oldStart:s,oldLines:f-s+e,newStart:c,newLines:d-c+e,lines:u};a.push(t),s=0,c=0,u=[]}f+=i.length,d+=i.length}}for(const e of a)for(let t=0;t<e.lines.length;t++)e.lines[t].endsWith("\n")?e.lines[t]=e.lines[t].slice(0,-1):(e.lines.splice(t+1,0,"\"),t++);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:o,hunks:a}}}function ea(e,t){var r,n,i,o,a,s;if(t||(t=$o),Array.isArray(e)){if(e.length>1&&!t.includeFileHeaders&&!e.every(e=>e.isGit))throw new Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return e.map(e=>ea(e,t)).join("\n")}const l=[];if(e.isGit){if(t=$o,!e.oldFileName)throw new Error("oldFileName must be specified for Git patches");if(!e.newFileName)throw new Error("newFileName must be specified for Git patches");let c=e.oldFileName,u=e.newFileName;e.isCreate&&"/dev/null"===c?c=u.replace(/^b\//,"a/"):e.isDelete&&"/dev/null"===u&&(u=c.replace(/^a\//,"b/")),l.push("diff --git "+Ko(c)+" "+Ko(u)),e.isDelete&&l.push("deleted file mode "+(null!==(r=e.oldMode)&&void 0!==r?r:"100644")),e.isCreate&&l.push("new file mode "+(null!==(n=e.newMode)&&void 0!==n?n:"100644")),e.oldMode&&e.newMode&&!e.isDelete&&!e.isCreate&&(l.push("old mode "+e.oldMode),l.push("new mode "+e.newMode)),e.isRename&&(l.push("rename from "+Ko((null!==(i=e.oldFileName)&&void 0!==i?i:"").replace(/^a\//,""))),l.push("rename to "+Ko((null!==(o=e.newFileName)&&void 0!==o?o:"").replace(/^b\//,"")))),e.isCopy&&(l.push("copy from "+Ko((null!==(a=e.oldFileName)&&void 0!==a?a:"").replace(/^a\//,""))),l.push("copy to "+Ko((null!==(s=e.newFileName)&&void 0!==s?s:"").replace(/^b\//,""))))}else t.includeIndex&&e.oldFileName==e.newFileName&&void 0!==e.oldFileName&&l.push("Index: "+e.oldFileName),t.includeUnderline&&l.push("===================================================================");const c=e.hunks.length>0;!t.includeFileHeaders||void 0===e.oldFileName||void 0===e.newFileName||e.isGit&&!c||(l.push("--- "+Ko(e.oldFileName)+(e.oldHeader?"\t"+e.oldHeader:"")),l.push("+++ "+Ko(e.newFileName)+(e.newHeader?"\t"+e.newHeader:"")));for(let t=0;t<e.hunks.length;t++){const r=e.hunks[t],n=0===r.oldLines?r.oldStart-1:r.oldStart,i=0===r.newLines?r.newStart-1:r.newStart;l.push("@@ -"+n+","+r.oldLines+" +"+i+","+r.newLines+" @@");for(const e of r.lines)l.push(e)}return l.join("\n")+"\n"}function ta(e,t,r,n,i,o,a){if("function"==typeof a&&(a={callback:a}),!(null==a?void 0:a.callback)){const s=Zo(e,t,r,n,i,o,a);if(!s)return;return ea(s,null==a?void 0:a.headerOptions)}{const{callback:s}=a;Zo(e,t,r,n,i,o,Object.assign(Object.assign({},a),{callback:e=>{s(e?ea(e,a.headerOptions):void 0)}}))}}function ra(e){const t=e.endsWith("\n"),r=e.split("\n").map(e=>e+"\n");return t?r.pop():r.push(r.pop().slice(0,-1)),r}function na(e,t,r){return e&&e.length?Fo(e,0,(t=r||void 0===t?1:Mn(t))<0?0:t):[]}function ia(e,t,r={}){if(!De(e))return{};if(!De(t))return{};if(""===e&&""===t)return{};let n=Be(r,"useNormNewline");hn(n)||(n=!0),n&&(e=(e=e.replaceAll("\r\n","\n")).replaceAll("\r","\n"),t=(t=t.replaceAll("\r\n","\n")).replaceAll("\r","\n"));let i,o=_o(e,t),a=gn(o),s=[],l=[];for(i=-1;i++,!(i>a-1);){let e=o[i],t=Be(e,"count",0),r=Be(e,"removed",!1),n=Be(e,"added",!1),a=zo(Be(e,"value",""),"\n");a=na(a,t);for(let e=1;e<=t;e++){let t=a[e-1];r||n?r&&!n?(s.push({p:"remove",v:t}),l.push({p:"empty",v:""})):!r&&n&&(s.push({p:"empty",v:""}),l.push({p:"add",v:t})):(s.push({p:"",v:t}),l.push({p:"",v:t}))}}let c=gn(s);for(i=-1;i++,!(i>c-1);){let e=Be(s,i,null),t=Be(l,i,null),r=Be(e,"p",""),n=Be(t,"p","");if("remove"===r&&"empty"===n){let e=0,t=i,r=-1;for(let t=i;t<=c-1;t++){let n=Be(s,t,null),i=Be(l,t,null),o=Be(n,"p",""),a=Be(i,"p","");if("remove"!==o||"empty"!==a)break;e++,r=t}if(e<=0)continue;let n=0,o=!1,a=-1;for(let t=i;t<=r+e;t++){let e=Be(s,t,null),r=Be(l,t,null),i=Be(e,"p",""),c=Be(r,"p","");if("empty"===i&&"add"===c)o||(a=t),o=!0,n++;else if(o)break}if(n<=0)continue;let u=Math.min(e,n);if(u>=1){for(let e=0;e<=u-1;e++){let r=t+e,n=a+e;s[r]={p:"modify",vo:Be(s,`${r}.v`,""),vn:Be(l,`${n}.v`,"")},l[r]=null,s[n]=null,l[n]=null}i+=u+1}}}let u=[];for(i=-1;i++,!(i>c-1);){let e=Be(s,i,null),t=Be(l,i,null),r=Be(e,"p",""),n=Be(t,"p",""),o=Be(e,"v",""),a=Be(t,"v","");if(null===e&&null===t)continue;let c="",f=o,d="";"modify"===r?(c="modify",f=e.vo,d=e.vn):"remove"===r&&"empty"===n?(c="remove",f=o,d=""):"empty"===r&&"add"===n&&(c="add",f=a,d=""),u.push({p:c,vo:f,vn:d})}return{diff:o,dfs:u}}let oa="\n";function aa(e,t){if(!xe(e))return{};if(!xe(t))return{};let r=Dr(e,e=>`${e}${oa}`);r=Do(r,"");let n=Dr(t,e=>`${e}${oa}`);n=Do(n,"");let i=ia(r,n,{eliminateEndLine:!0});return i.dfs=Dr(i.dfs,(e,t)=>({p:e.p,k:t,vo:e.vo,vn:e.vn})),i}function sa(e,t,r={}){if(!xe(e))return{};if(!xe(t))return{};if(0===gn(e)&&0===gn(t))return{};let n,i=Be(r,"mode","");return"array"!==i&&"matrix"!==i&&(i="array"),"array"===i?n=aa(e,t):"matrix"===i&&(n=function(e,t,r={}){if(!xe(e))return{};if(!xe(t))return{};let n=Be(r,"dls","");Fe(n)||(n="⟋");let i=Be(r,"dlq","");Fe(i)||(i="∶");let o=[];Cr(e,(t,r)=>{if(!xe(t))throw console.log("arrOld",e),console.log(r,t),new Error("arrOld is not a matrix");Cr(t,(e,t)=>{o.push(`${t}${i}${e}${n}`)}),o.push(oa)}),o=Do(o,"");let a=[];Cr(t,(e,r)=>{if(!xe(e))throw console.log("arrNew",t),console.log(r,e),new Error("arrNew is not a matrix");Cr(e,(e,t)=>{a.push(`${t}${i}${e}${n}`)}),a.push(oa)}),a=Do(a,"");let s=ia(o,a,{...r,eliminateEndLine:!0}),l=[];return Cr(s.dfs,e=>{let t=zo(e.vo,n);if(t=Vo(t,1),"modify"===e.p){let r=zo(e.vn,n);r=Vo(r,1);let i=aa(t,r);e.dfs=i.dfs}let r=[];"modify"===e.p?Cr(e.dfs,e=>{r.push(e)}):Cr(t,t=>{r.push({p:e.p,vo:t,vn:""})}),r=Dr(r,(e,t)=>{let r=Be(zo(e.vo,i),1,""),n=Be(zo(e.vn,i),1,"");return{p:e.p,k:t,vo:r,vn:n}}),l.push(r)}),{diff:s.diff,dfs:l}}(e,t,r)),n}function la(e,t,r){if((e=ye(e))&&(r||void 0===t))return xn(e);if(!e||!(t=Ie(t)))return e;var n=Jo(e),i=Jo(t),o=function(e,t){for(var r=-1,n=e.length;++r<n&&jr(t,e[r],0)>-1;);return r}(n,i),a=function(e,t){for(var r=e.length;r--&&jr(t,e[r],0)>-1;);return r}(n,i)+1;return Qo(n,o,a).join("")}function ca(e,t){if(!Fe(e))return[];if(!Fe(t))return[];return e.split(t)}function ua(e,t){if(!Fe(e))return[];if(!Fe(t))return[];let r=ca(e,t);r=Dr(r,la);let n=[];return Cr(r,function(e){Fe(e)&&n.push(e)}),n}function fa(e,t){return Fe(e)&&Eo(t)?0===(t=eo(t))?"":e.substring(0,t):""}function da(e,t){if(!Fe(e))return"";if(!Eo(t))return"";if(0===(t=eo(t)))return"";let r=e.length-t;return r<0&&(r=0),e.substring(r,r+t)}function ga(e,t){return Fe(e)&&Eo(t)?0===(t=eo(t))?e:da(e,e.length-t):""}function pa(e,t){var r=[];return ht(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}function ha(e,t){return(b(e)?Qt:pa)(e,dr(t))}function Aa(e){if(!ke(e))return!1;return Hn(e)>0}function ma(e){return Or(e)?e=Dr(e=ha(e=Vi(e),Aa),Hn):[]}function Ia(e,t){return nr(e,t)}function ya(e){return"number"==typeof e||q(e)&&"[object Number]"==N(e)}function va(e,t){function r(e){return xe(e)?e:[e]}if(Rr(e))return!1;if(0===(e=r(e)).length)return!1;if(Rr(e))return!1;if(0===(t=r(t)).length)return!1;for(let r=0;r<e.length;r++)for(let n=0;n<t.length;n++)if(Ia(e[r],t[n]))return!0;return!1}function ba(e){let t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t}function wa(e,t,r={}){if(!Or(e))return null;if(!ba(t))return null;let n=Be(r,"returnIndex");hn(n)||(n=!1);let i=-1,o=null;for(let r=0;r<gn(e);r++){let n=t(o,e[r]);Ia(o,n)||(o=n,i=r)}let a=null;return a=n?i:o,a}function Ba(e,t){if(!xe(e))return[];if(!xe(t))return[];if(gn(e)!==gn(t))return[];let r=[];return Cr(e,function(n,i){let o=null,a=ke(e[i]),s=ke(t[i]);(a||s)&&(o=1),a&&(o*=Hn(e[i])),s&&(o*=Hn(t[i])),r.push(o)}),r}function Ea(){if(gn(arguments)<2)return[];let e=arguments[0];for(let t=1;t<gn(arguments);t++){e=Ba(e,arguments[t])}return e}function Ca(e,t){for(var r,n=-1,i=e.length;++n<i;){var o=t(e[n]);void 0!==o&&(r=void 0===r?o:r+o)}return r}function xa(){if(gn(arguments)<2)return null;let e=Ea(...arguments);return 0===gn(e)?null:(e=(t=e)&&t.length?Ca(t,cr):0,e);var t}function Da(e,t,r,n){for(var i=r-1,o=e.length;++i<o;)if(n(e[i],t))return i;return-1}var Fa=Array.prototype.splice;function Qa(e,t){return e&&e.length&&t&&t.length?function(e,t,r,n){var i=n?Da:jr,o=-1,a=t.length,s=e;for(e===t&&(t=kr(t)),r&&(s=he(e,Ke(r)));++o<a;)for(var l=0,c=t[o],u=r?r(c):c;(l=i(s,u,l,n))>-1;)s!==e&&Fa.call(s,l,1),Fa.call(e,l,1);return e}(e,t):e}function Sa(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var ka=Object.prototype.hasOwnProperty;function Na(e,t){var r=-1,n=(t=ve(t,e)).length;if(!n)return!0;for(;++r<n;){var i=be(t[r]);if("__proto__"===i&&!ka.call(e,"__proto__"))return!1;if(("constructor"===i||"prototype"===i)&&r<n-1)return!1}var o=function(e,t){return t.length<2?e:we(e,Fo(t,0,-1))}(e,t);return null==o||delete o[be(Sa(t))]}var qa=Array.prototype.splice;function Ma(e,t){if(e!==t){var r=void 0!==e,n=null===e,i=e==e,o=M(e),a=void 0!==t,s=null===t,l=t==t,c=M(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||n&&a&&l||!r&&l||!i)return 1;if(!n&&!o&&!c&&e<t||c&&r&&i&&!n&&!o||s&&r&&i||!a&&i||!l)return-1}return 0}var Ha=wo(function(e,t){var r=null==e?0:e.length,n=lo(e,t);return function(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;Xe(i)?qa.call(e,i,1):Na(e,i)}}}(e,he(t,function(e){return Xe(e,r)?+e:e}).sort(Ma)),n});var La=Array.prototype.reverse;function Ua(e){return null==e?e:La.call(e)}function Ra(e,t,r){t=t.length?he(t,function(e){return b(e)?function(t){return we(t,1===e.length?e[0]:e)}:e}):[cr];var n=-1;return t=he(t,Ke(dr)),function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(xr(e,function(e,r,i){return{criteria:he(t,function(t){return t(e)}),index:++n,value:e}}),function(e,t){return function(e,t,r){for(var n=-1,i=e.criteria,o=t.criteria,a=i.length,s=r.length;++n<a;){var l=Ma(i[n],o[n]);if(l)return n>=s?l:l*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)})}function Oa(e,t){return bo(fo(e,t,cr),e+"")}var Ta=Oa(function(e,t){if(null==e)return[];var r=t.length;return r>1&&gr(e,t[0],t[1])?t=[]:r>2&&gr(t[0],t[1],t[2])&&(t=[t[0]]),Ra(e,Sr(t,1),[])});function Ya(e){return"[object BigInt]"===Object.prototype.toString.call(e)}function ja(e){if(!(Fe(e)||ke(e)||M(e)||Ya(e)))return"";let t="";try{t=String(e)}catch(e){}try{t=e.toString()}catch(e){}return t}function Ga(e,t,r){var n=null==e?0:e.length;return n?Fo(e,(t=r||void 0===t?1:Mn(t))<0?0:t,n):[]}function Ja(e,t){return Fe(e)&&Eo(t)?0===(t=eo(t))?e:fa(e,e.length-t):""}function za(e,t={}){let r=Be(t,"excludeString");if(hn(r)||(r=!1),!Fe(e))return"";let n=e=>e>="0"&&e<="9"||"."===e||"-"===e||"+"===e,i=la(e);if(r){let e=i.split("");for(let t=0;t<e.length;t++)if(n(e[t])){i=ga(i,t),e=Ga(e,t);break}e=Ua(e);for(let t=0;t<e.length;t++)if(n(e[t])){i=Ja(i,t);break}}return i}function Va(e){let t=0,r=0,n=0,i=gn(e);Cr(e,e=>{ke(e)?t+=1:De(e)?r+=1:Ee(e)&&(n+=1)});let o="";return t===i?o="num":r===i?o="str":n===i?o="obj":t+r===i?o="str":console.log("eles in array are non-homogeneous",e),o}function Pa(e,t,r={}){let n=[];if("num"!==t&&"str"!==t&&"files"!==t)throw new Error(`invalid type[${t}]`);if("num"===t)n=Dr(e,(e,t)=>({key:t,payload:e,value:Hn(e)}));else if("files"===t)n=Dr(e,(e,t)=>({key:t,payload:e,value:ja(e)}));else if("str"===t){let t=Dr(e,e=>za(e,{excludeString:!0})),r=0;Cr(t,e=>{ke(e)&&r++});let i=r===gn(t);n=Dr(e,(e,r)=>{let n=e;return i?(n=t[r],n=Hn(n)):n=ja(n),{key:r,payload:e,value:n}})}return n}function Xa(e,t){let r=Ta(e,"value");return Dr(r,t?"key":"payload")}function _a(e,t){let r=function(e,t){let r=Vi(e);return r.sort((e,r)=>e[t].localeCompare(r[t],"standard",{numeric:!0})),r}(e,"value");return Dr(r,t?"key":"payload")}function Wa(e,t={}){if(!Or(e))return[];if(1===gn(e))return e;let r=Be(t,"localeCompare");hn(r)||(r=!1);let n=Be(t,"returnIndex");hn(n)||(n=!1);let i=Be(t,"compareKey",null),o=null;o=r?_a:Xa;let a,s=Va(e);if(""===s)return[];if("obj"===s){if(!Fe(i))return[];let s=Dr(e,(e,t)=>Be(e,i,"")),l=Va(s);if("num"!==l&&"str"!==l)return[];{r&&(l="files");let i=o(Pa(s,l,t),!0);a=n?i:Dr(i,t=>e[t])}}else if("num"===s||"str"===s){r&&(s="files"),a=o(Pa(e,s,t),n)}return a}function Ka(e){if(!Fe(e))return"";return Vn.parse(e).toString(si)}function $a(e){if(!Fe(e))return{};let t={};try{t=JSON.parse(e)}catch(e){t={}}return t}function Za(e){if(!De(e))return new Uint8Array;let t=Vn.parse(e),r=t.words,n=t.sigBytes,i=new Uint8Array(n);for(let e=0;e<n;e++){let t=r[e>>>2]>>>24-e%4*8&255;i[e]=t}return i}function es(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)}function ts(e){return es(e)?new Uint16Array(e):new Uint16Array}function rs(e){if(!De(e))return new Uint16Array;return ts(Za(e))}function ns(e,t,r="anyone"){if(!Fe(e))return!1;if("anyone"!==r&&"all"!==r)return!1;if(De(t)){if(!Fe(t))return!1;t=[t]}if(!Or(t))return!1;let n=!1;if(Cr(t,function(e){Fe(e)||(n=!0)}),n)return!1;let i=0;return Cr(t,function(t){-1!==function(e,t){return e.indexOf(t)}(e,t)&&i++}),"anyone"===r?i>0:"all"===r&&i===t.length}function is(){let e,t,r=new Promise(function(){e=arguments[0],t=arguments[1]});return r.resolve=e,r.reject=t,r}function os(e){if(!yn())return Promise.reject("no window");try{return function(e){return e.arrayBuffer()}(e)}catch(t){return function(e){let t=is(),r=new FileReader;return r.onload=function(){let e=r.result;t.resolve(e)},r.onerror=function(e){t.reject(e)},r.readAsArrayBuffer(e),t}(e)}}function as(e){let t=is(),r=new FileReader;r.onload=function(){t.resolve(r.result)},r.onerror=function(e){t.reject(e)};try{r.readAsDataURL(e)}catch(e){t.reject("cancel")}return t}function ss(e){let t=is();return os(e).then(e=>{let r=new Uint8Array(e);t.resolve(r)}).catch(e=>{t.reject(e)}),t}function ls(e){let t=Dr(e,function(e){return as(e)});return Promise.all(t)}function cs(e){let t=Dr(e,function(e){return ss(e)});return Promise.all(t)}var us={exports:{}};
7
7
  /*! https://mths.be/he v1.2.0 by @mathias | MIT license */!function(e,t){!function(r){var n=t,i=e&&e.exports==n&&e,o="object"==typeof Un&&Un;o.global!==o&&o.window!==o||(r=o);var a=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,s=/[\x01-\x7F]/g,l=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,c=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,u={"­":"shy","‌":"zwnj","‍":"zwj","‎":"lrm","⁣":"ic","⁢":"it","⁡":"af","‏":"rlm","​":"ZeroWidthSpace","⁠":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp","  ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","´":"acute","˜":"tilde","^":"Hat","¯":"macr","˘":"breve","˙":"dot","¨":"die","˚":"ring","˝":"dblac","¸":"cedil","˛":"ogon","ˆ":"circ","ˇ":"caron","°":"deg","©":"copy","®":"reg","℗":"copysr","℘":"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","±":"pm","÷":"div","×":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","¬":"not","|":"vert","¦":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"apacir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","¤":"curren","¢":"cent",$:"dollar","£":"pound","¥":"yen","€":"euro","¹":"sup1","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","²":"sup2","⅔":"frac23","⅖":"frac25","³":"sup3","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78","𝒶":"ascr","𝕒":"aopf","𝔞":"afr","𝔸":"Aopf","𝔄":"Afr","𝒜":"Ascr","ª":"ordf","á":"aacute","Á":"Aacute","à":"agrave","À":"Agrave","ă":"abreve","Ă":"Abreve","â":"acirc","Â":"Acirc","å":"aring","Å":"angst","ä":"auml","Ä":"Auml","ã":"atilde","Ã":"Atilde","ą":"aogon","Ą":"Aogon","ā":"amacr","Ā":"Amacr","æ":"aelig","Æ":"AElig","𝒷":"bscr","𝕓":"bopf","𝔟":"bfr","𝔹":"Bopf","ℬ":"Bscr","𝔅":"Bfr","𝔠":"cfr","𝒸":"cscr","𝕔":"copf","ℭ":"Cfr","𝒞":"Cscr","ℂ":"Copf","ć":"cacute","Ć":"Cacute","ĉ":"ccirc","Ĉ":"Ccirc","č":"ccaron","Č":"Ccaron","ċ":"cdot","Ċ":"Cdot","ç":"ccedil","Ç":"Ccedil","℅":"incare","𝔡":"dfr","ⅆ":"dd","𝕕":"dopf","𝒹":"dscr","𝒟":"Dscr","𝔇":"Dfr","ⅅ":"DD","𝔻":"Dopf","ď":"dcaron","Ď":"Dcaron","đ":"dstrok","Đ":"Dstrok","ð":"eth","Ð":"ETH","ⅇ":"ee","ℯ":"escr","𝔢":"efr","𝕖":"eopf","ℰ":"Escr","𝔈":"Efr","𝔼":"Eopf","é":"eacute","É":"Eacute","è":"egrave","È":"Egrave","ê":"ecirc","Ê":"Ecirc","ě":"ecaron","Ě":"Ecaron","ë":"euml","Ë":"Euml","ė":"edot","Ė":"Edot","ę":"eogon","Ę":"Eogon","ē":"emacr","Ē":"Emacr","𝔣":"ffr","𝕗":"fopf","𝒻":"fscr","𝔉":"Ffr","𝔽":"Fopf","ℱ":"Fscr","ff":"fflig","ffi":"ffilig","ffl":"ffllig","fi":"filig",fj:"fjlig","fl":"fllig","ƒ":"fnof","ℊ":"gscr","𝕘":"gopf","𝔤":"gfr","𝒢":"Gscr","𝔾":"Gopf","𝔊":"Gfr","ǵ":"gacute","ğ":"gbreve","Ğ":"Gbreve","ĝ":"gcirc","Ĝ":"Gcirc","ġ":"gdot","Ġ":"Gdot","Ģ":"Gcedil","𝔥":"hfr","ℎ":"planckh","𝒽":"hscr","𝕙":"hopf","ℋ":"Hscr","ℌ":"Hfr","ℍ":"Hopf","ĥ":"hcirc","Ĥ":"Hcirc","ℏ":"hbar","ħ":"hstrok","Ħ":"Hstrok","𝕚":"iopf","𝔦":"ifr","𝒾":"iscr","ⅈ":"ii","𝕀":"Iopf","ℐ":"Iscr","ℑ":"Im","í":"iacute","Í":"Iacute","ì":"igrave","Ì":"Igrave","î":"icirc","Î":"Icirc","ï":"iuml","Ï":"Iuml","ĩ":"itilde","Ĩ":"Itilde","İ":"Idot","į":"iogon","Į":"Iogon","ī":"imacr","Ī":"Imacr","ij":"ijlig","IJ":"IJlig","ı":"imath","𝒿":"jscr","𝕛":"jopf","𝔧":"jfr","𝒥":"Jscr","𝔍":"Jfr","𝕁":"Jopf","ĵ":"jcirc","Ĵ":"Jcirc","ȷ":"jmath","𝕜":"kopf","𝓀":"kscr","𝔨":"kfr","𝒦":"Kscr","𝕂":"Kopf","𝔎":"Kfr","ķ":"kcedil","Ķ":"Kcedil","𝔩":"lfr","𝓁":"lscr","ℓ":"ell","𝕝":"lopf","ℒ":"Lscr","𝔏":"Lfr","𝕃":"Lopf","ĺ":"lacute","Ĺ":"Lacute","ľ":"lcaron","Ľ":"Lcaron","ļ":"lcedil","Ļ":"Lcedil","ł":"lstrok","Ł":"Lstrok","ŀ":"lmidot","Ŀ":"Lmidot","𝔪":"mfr","𝕞":"mopf","𝓂":"mscr","𝔐":"Mfr","𝕄":"Mopf","ℳ":"Mscr","𝔫":"nfr","𝕟":"nopf","𝓃":"nscr","ℕ":"Nopf","𝒩":"Nscr","𝔑":"Nfr","ń":"nacute","Ń":"Nacute","ň":"ncaron","Ň":"Ncaron","ñ":"ntilde","Ñ":"Ntilde","ņ":"ncedil","Ņ":"Ncedil","№":"numero","ŋ":"eng","Ŋ":"ENG","𝕠":"oopf","𝔬":"ofr","ℴ":"oscr","𝒪":"Oscr","𝔒":"Ofr","𝕆":"Oopf","º":"ordm","ó":"oacute","Ó":"Oacute","ò":"ograve","Ò":"Ograve","ô":"ocirc","Ô":"Ocirc","ö":"ouml","Ö":"Ouml","ő":"odblac","Ő":"Odblac","õ":"otilde","Õ":"Otilde","ø":"oslash","Ø":"Oslash","ō":"omacr","Ō":"Omacr","œ":"oelig","Œ":"OElig","𝔭":"pfr","𝓅":"pscr","𝕡":"popf","ℙ":"Popf","𝔓":"Pfr","𝒫":"Pscr","𝕢":"qopf","𝔮":"qfr","𝓆":"qscr","𝒬":"Qscr","𝔔":"Qfr","ℚ":"Qopf","ĸ":"kgreen","𝔯":"rfr","𝕣":"ropf","𝓇":"rscr","ℛ":"Rscr","ℜ":"Re","ℝ":"Ropf","ŕ":"racute","Ŕ":"Racute","ř":"rcaron","Ř":"Rcaron","ŗ":"rcedil","Ŗ":"Rcedil","𝕤":"sopf","𝓈":"sscr","𝔰":"sfr","𝕊":"Sopf","𝔖":"Sfr","𝒮":"Sscr","Ⓢ":"oS","ś":"sacute","Ś":"Sacute","ŝ":"scirc","Ŝ":"Scirc","š":"scaron","Š":"Scaron","ş":"scedil","Ş":"Scedil","ß":"szlig","𝔱":"tfr","𝓉":"tscr","𝕥":"topf","𝒯":"Tscr","𝔗":"Tfr","𝕋":"Topf","ť":"tcaron","Ť":"Tcaron","ţ":"tcedil","Ţ":"Tcedil","™":"trade","ŧ":"tstrok","Ŧ":"Tstrok","𝓊":"uscr","𝕦":"uopf","𝔲":"ufr","𝕌":"Uopf","𝔘":"Ufr","𝒰":"Uscr","ú":"uacute","Ú":"Uacute","ù":"ugrave","Ù":"Ugrave","ŭ":"ubreve","Ŭ":"Ubreve","û":"ucirc","Û":"Ucirc","ů":"uring","Ů":"Uring","ü":"uuml","Ü":"Uuml","ű":"udblac","Ű":"Udblac","ũ":"utilde","Ũ":"Utilde","ų":"uogon","Ų":"Uogon","ū":"umacr","Ū":"Umacr","𝔳":"vfr","𝕧":"vopf","𝓋":"vscr","𝔙":"Vfr","𝕍":"Vopf","𝒱":"Vscr","𝕨":"wopf","𝓌":"wscr","𝔴":"wfr","𝒲":"Wscr","𝕎":"Wopf","𝔚":"Wfr","ŵ":"wcirc","Ŵ":"Wcirc","𝔵":"xfr","𝓍":"xscr","𝕩":"xopf","𝕏":"Xopf","𝔛":"Xfr","𝒳":"Xscr","𝔶":"yfr","𝓎":"yscr","𝕪":"yopf","𝒴":"Yscr","𝔜":"Yfr","𝕐":"Yopf","ý":"yacute","Ý":"Yacute","ŷ":"ycirc","Ŷ":"Ycirc","ÿ":"yuml","Ÿ":"Yuml","𝓏":"zscr","𝔷":"zfr","𝕫":"zopf","ℨ":"Zfr","ℤ":"Zopf","𝒵":"Zscr","ź":"zacute","Ź":"Zacute","ž":"zcaron","Ž":"Zcaron","ż":"zdot","Ż":"Zdot","Ƶ":"imped","þ":"thorn","Þ":"THORN","ʼn":"napos","α":"alpha","Α":"Alpha","β":"beta","Β":"Beta","γ":"gamma","Γ":"Gamma","δ":"delta","Δ":"Delta","ε":"epsi","ϵ":"epsiv","Ε":"Epsilon","ϝ":"gammad","Ϝ":"Gammad","ζ":"zeta","Ζ":"Zeta","η":"eta","Η":"Eta","θ":"theta","ϑ":"thetav","Θ":"Theta","ι":"iota","Ι":"Iota","κ":"kappa","ϰ":"kappav","Κ":"Kappa","λ":"lambda","Λ":"Lambda","μ":"mu","µ":"micro","Μ":"Mu","ν":"nu","Ν":"Nu","ξ":"xi","Ξ":"Xi","ο":"omicron","Ο":"Omicron","π":"pi","ϖ":"piv","Π":"Pi","ρ":"rho","ϱ":"rhov","Ρ":"Rho","σ":"sigma","Σ":"Sigma","ς":"sigmaf","τ":"tau","Τ":"Tau","υ":"upsi","Υ":"Upsilon","ϒ":"Upsi","φ":"phi","ϕ":"phiv","Φ":"Phi","χ":"chi","Χ":"Chi","ψ":"psi","Ψ":"Psi","ω":"omega","Ω":"ohm","а":"acy","А":"Acy","б":"bcy","Б":"Bcy","в":"vcy","В":"Vcy","г":"gcy","Г":"Gcy","ѓ":"gjcy","Ѓ":"GJcy","д":"dcy","Д":"Dcy","ђ":"djcy","Ђ":"DJcy","е":"iecy","Е":"IEcy","ё":"iocy","Ё":"IOcy","є":"jukcy","Є":"Jukcy","ж":"zhcy","Ж":"ZHcy","з":"zcy","З":"Zcy","ѕ":"dscy","Ѕ":"DScy","и":"icy","И":"Icy","і":"iukcy","І":"Iukcy","ї":"yicy","Ї":"YIcy","й":"jcy","Й":"Jcy","ј":"jsercy","Ј":"Jsercy","к":"kcy","К":"Kcy","ќ":"kjcy","Ќ":"KJcy","л":"lcy","Л":"Lcy","љ":"ljcy","Љ":"LJcy","м":"mcy","М":"Mcy","н":"ncy","Н":"Ncy","њ":"njcy","Њ":"NJcy","о":"ocy","О":"Ocy","п":"pcy","П":"Pcy","р":"rcy","Р":"Rcy","с":"scy","С":"Scy","т":"tcy","Т":"Tcy","ћ":"tshcy","Ћ":"TSHcy","у":"ucy","У":"Ucy","ў":"ubrcy","Ў":"Ubrcy","ф":"fcy","Ф":"Fcy","х":"khcy","Х":"KHcy","ц":"tscy","Ц":"TScy","ч":"chcy","Ч":"CHcy","џ":"dzcy","Џ":"DZcy","ш":"shcy","Ш":"SHcy","щ":"shchcy","Щ":"SHCHcy","ъ":"hardcy","Ъ":"HARDcy","ы":"ycy","Ы":"Ycy","ь":"softcy","Ь":"SOFTcy","э":"ecy","Э":"Ecy","ю":"yucy","Ю":"YUcy","я":"yacy","Я":"YAcy","ℵ":"aleph","ℶ":"beth","ℷ":"gimel","ℸ":"daleth"},f=/["&'<>`]/g,d={'"':"&quot;","&":"&amp;","'":"&#x27;","<":"&lt;",">":"&gt;","`":"&#x60;"},g=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,p=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,h=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,A={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"⁡",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",aring:"å",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",Ffr:"𝔉",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"⁣",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",IJlig:"IJ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"ȷ",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"​",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"‍",zwnj:"‌"},m={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},I={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},y=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],v=String.fromCharCode,b={}.hasOwnProperty,w=function(e,t){return b.call(e,t)},B=function(e,t){if(!e)return t;var r,n={};for(r in t)n[r]=w(e,r)?e[r]:t[r];return n},E=function(e,t){var r="";return e>=55296&&e<=57343||e>1114111?(t&&D("character reference outside the permissible Unicode range"),"�"):w(I,e)?(t&&D("disallowed character reference"),I[e]):(t&&function(e,t){for(var r=-1,n=e.length;++r<n;)if(e[r]==t)return!0;return!1}(y,e)&&D("disallowed character reference"),e>65535&&(r+=v((e-=65536)>>>10&1023|55296),e=56320|1023&e),r+=v(e))},C=function(e){return"&#x"+e.toString(16).toUpperCase()+";"},x=function(e){return"&#"+e+";"},D=function(e){throw Error("Parse error: "+e)},F=function(e,t){(t=B(t,F.options)).strict&&p.test(e)&&D("forbidden code point");var r=t.encodeEverything,n=t.useNamedReferences,i=t.allowUnsafeSymbols,o=t.decimal?x:C,d=function(e){return o(e.charCodeAt(0))};return r?(e=e.replace(s,function(e){return n&&w(u,e)?"&"+u[e]+";":d(e)}),n&&(e=e.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;").replace(/&#x66;&#x6A;/g,"&fjlig;")),n&&(e=e.replace(c,function(e){return"&"+u[e]+";"}))):n?(i||(e=e.replace(f,function(e){return"&"+u[e]+";"})),e=(e=e.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;")).replace(c,function(e){return"&"+u[e]+";"})):i||(e=e.replace(f,d)),e.replace(a,function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return o(1024*(t-55296)+r-56320+65536)}).replace(l,d)};F.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var Q=function(e,t){var r=(t=B(t,Q.options)).strict;return r&&g.test(e)&&D("malformed character reference"),e.replace(h,function(e,n,i,o,a,s,l,c,u){var f,d,g,p,h,I;return n?A[h=n]:i?(h=i,(I=o)&&t.isAttributeValue?(r&&"="==I&&D("`&` did not start a character reference"),e):(r&&D("named character reference was not terminated by a semicolon"),m[h]+(I||""))):a?(g=a,d=s,r&&!d&&D("character reference was not terminated by a semicolon"),f=parseInt(g,10),E(f,r)):l?(p=l,d=c,r&&!d&&D("character reference was not terminated by a semicolon"),f=parseInt(p,16),E(f,r)):(r&&D("named character reference was not terminated by a semicolon"),e)})};Q.options={isAttributeValue:!1,strict:!1};var S={version:"1.2.0",encode:F,decode:Q,escape:function(e){return e.replace(f,function(e){return d[e]})},unescape:Q};if(n&&!n.nodeType)if(i)i.exports=S;else for(var k in S)w(S,k)&&(n[k]=S[k]);else r.he=S}(Un)}(us,us.exports);var fs=Rn(us.exports);function ds(e,t={}){if(!Fe(e))return"";return fs.encode(e,t)}function gs(e,t){let r=new Blob([e],{type:t});try{let e=window.URL.createObjectURL(r);window.open(e)}catch(e){console.log("window.URL.createObjectURL is not support for IE11",e)}}function ps(e){return"[object Blob]"===Object.prototype.toString.call(e)}function hs(e){if(!Fe(e))return new Uint8Array;let t=e.length,r=new Uint8Array(t);for(let n=0;n<t;n++)r[n]=e.charCodeAt(n);return r}function As(e,t,r,n,i){if(!es(e))return null;if(!Ln(t))return null;if(!hn(r))return null;if(!Ln(n))return null;if(!Ln(i))return null;let o,a,s=8*i-n-1,l=(1<<s)-1,c=l>>1,u=-7,f=r?0:i-1,d=r?1:-1,g=e[t+f];for(f+=d,o=g&(1<<-u)-1,g>>=-u,u+=s;u>0;o=256*o+e[t+f],f+=d,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=n;u>0;a=256*a+e[t+f],f+=d,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(g?-1:1);a+=Math.pow(2,n),o-=c}return(g?-1:1)*a*Math.pow(2,o-n)}function ms(e,t=0,r=!0,n=52,i=8){return As(e,t,r,n,i)}function Is(e,t,r,n,i,o){if(!ke(e))return null;if(!es(t))return null;if(!Ln(r))return null;if(!hn(n))return null;if(!Ln(i))return null;if(!Ln(o))return null;let a,s,l;e=Hn(e);let c=8*o-i-1,u=(1<<c)-1,f=u>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,g=n?o-1:0,p=n?-1:1,h=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=u?(s=0,a=u):a+f>=1?(s=(e*l-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[r+g]=255&s,g+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;t[r+g]=255&a,g+=p,a/=256,c-=8);return t[r+g-p]|=128*h,null}function ys(e,t,r=0,n=!0,i=52,o=8){return Is(e,t,r,n,i,o)}function vs(e){let t,r=Object.prototype.toString.call(e);if(t="[object Promise]"===r,t)return!0;if("[object Function]"!==r)return!1;try{t="function"!=typeof e.subscribe&&"function"==typeof e.then}catch(e){}return t}async function bs(e,t={}){let r=null,n=is();if(!ba(e))return n.reject("waitfunction需輸入函數f"),n;let i=async()=>{let t=e();return vs(t)&&(t=await t),t};if(r=await i(),!0===r)return n.resolve(),n;let o=Be(t,"attemptNum",null);to(o)||(o=200);let a=Be(t,"timeInterval",null);to(a)||(a=1e3);let s=0,l=setInterval(async()=>{s+=1,r=await i(),!0===r&&(clearInterval(l),n.resolve()),s>o&&(clearInterval(l),n.reject(`exceeded attemptNum[${o}]`))},a);return n}function ws(e=10){ke(e)||(e=10);let t=is();return setTimeout(function(){t.resolve()},e),t}function Bs(e){return ye(e).toLowerCase()}
8
8
  /*!
9
9
  * decimal.js v10.6.0
@@ -12,7 +12,7 @@
12
12
  * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
13
13
  * MIT Licence
14
14
  */
15
- var Es,Cs,xs=9e15,Ds=1e9,Fs="0123456789abcdef",Qs="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",Ss="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",ks={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-xs,maxE:xs,crypto:!1},Ns=!0,qs="[DecimalError] ",Ms=qs+"Invalid argument: ",Hs=qs+"Precision limit exceeded",Ls=qs+"crypto unavailable",Us="[object Decimal]",Rs=Math.floor,Os=Math.pow,Ts=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,Ys=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,js=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,Gs=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Js=1e7,zs=Qs.length-1,Vs=Ss.length-1,Ps={toStringTag:Us};function Xs(e){var t,r,n,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)(r=7-(n=e[t]+"").length)&&(o+=ol(r)),o+=n;(r=7-(n=(a=e[t])+"").length)&&(o+=ol(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}function _s(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Ms+e)}function Ws(e,t,r,n){var i,o,a,s;for(o=e[0];o>=10;o/=10)--t;return--t<0?(t+=7,i=0):(i=Math.ceil((t+1)/7),t%=7),o=Os(10,7-t),s=e[i]%o|0,null==n?t<3?(0==t?s=s/100|0:1==t&&(s=s/10|0),a=r<4&&99999==s||r>3&&49999==s||5e4==s||0==s):a=(r<4&&s+1==o||r>3&&s+1==o/2)&&(e[i+1]/o/100|0)==Os(10,t-2)-1||(s==o/2||0==s)&&!(e[i+1]/o/100|0):t<4?(0==t?s=s/1e3|0:1==t?s=s/100|0:2==t&&(s=s/10|0),a=(n||r<4)&&9999==s||!n&&r>3&&4999==s):a=((n||r<4)&&s+1==o||!n&&r>3&&s+1==o/2)&&(e[i+1]/o/1e3|0)==Os(10,t-3)-1,a}function Ks(e,t,r){for(var n,i,o=[0],a=0,s=e.length;a<s;){for(i=o.length;i--;)o[i]*=t;for(o[0]+=Fs.indexOf(e.charAt(a++)),n=0;n<o.length;n++)o[n]>r-1&&(void 0===o[n+1]&&(o[n+1]=0),o[n+1]+=o[n]/r|0,o[n]%=r)}return o.reverse()}Ps.absoluteValue=Ps.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),Zs(e)},Ps.ceil=function(){return Zs(new this.constructor(this),this.e+1,2)},Ps.clampedTo=Ps.clamp=function(e,t){var r=this,n=r.constructor;if(e=new n(e),t=new n(t),!e.s||!t.s)return new n(NaN);if(e.gt(t))throw Error(Ms+t);return r.cmp(e)<0?e:r.cmp(t)>0?t:new n(r)},Ps.comparedTo=Ps.cmp=function(e){var t,r,n,i,o=this,a=o.d,s=(e=new o.constructor(e)).d,l=o.s,c=e.s;if(!a||!s)return l&&c?l!==c?l:a===s?0:!a^l<0?1:-1:NaN;if(!a[0]||!s[0])return a[0]?l:s[0]?-c:0;if(l!==c)return l;if(o.e!==e.e)return o.e>e.e^l<0?1:-1;for(t=0,r=(n=a.length)<(i=s.length)?n:i;t<r;++t)if(a[t]!==s[t])return a[t]>s[t]^l<0?1:-1;return n===i?0:n>i^l<0?1:-1},Ps.cosine=Ps.cos=function(){var e,t,r=this,n=r.constructor;return r.d?r.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+7,n.rounding=1,r=function(e,t){var r,n,i;if(t.isZero())return t;n=t.d.length,n<32?i=(1/hl(4,r=Math.ceil(n/3))).toString():(r=16,i="2.3283064365386962890625e-10");e.precision+=r,t=pl(e,1,t.times(i),new e(1));for(var o=r;o--;){var a=t.times(t);t=a.times(a).minus(a).times(8).plus(1)}return e.precision-=r,t}(n,Al(n,r)),n.precision=e,n.rounding=t,Zs(2==Cs||3==Cs?r.neg():r,e,t,!0)):new n(1):new n(NaN)},Ps.cubeRoot=Ps.cbrt=function(){var e,t,r,n,i,o,a,s,l,c,u=this,f=u.constructor;if(!u.isFinite()||u.isZero())return new f(u);for(Ns=!1,(o=u.s*Os(u.s*u,1/3))&&Math.abs(o)!=1/0?n=new f(o.toString()):(r=Xs(u.d),(o=((e=u.e)-r.length+1)%3)&&(r+=1==o||-2==o?"0":"00"),o=Os(r,1/3),e=Rs((e+1)/3)-(e%3==(e<0?-1:2)),(n=new f(r=o==1/0?"5e"+e:(r=o.toExponential()).slice(0,r.indexOf("e")+1)+e)).s=u.s),a=(e=f.precision)+3;;)if(c=(l=(s=n).times(s).times(s)).plus(u),n=$s(c.plus(u).times(s),c.plus(l),a+2,1),Xs(s.d).slice(0,a)===(r=Xs(n.d)).slice(0,a)){if("9999"!=(r=r.slice(a-3,a+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(Zs(n,e+1,1),t=!n.times(n).times(n).eq(u));break}if(!i&&(Zs(s,e+1,0),s.times(s).times(s).eq(u))){n=s;break}a+=4,i=1}return Ns=!0,Zs(n,e,f.rounding,t)},Ps.decimalPlaces=Ps.dp=function(){var e,t=this.d,r=NaN;if(t){if(r=7*((e=t.length-1)-Rs(this.e/7)),e=t[e])for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r},Ps.dividedBy=Ps.div=function(e){return $s(this,new this.constructor(e))},Ps.dividedToIntegerBy=Ps.divToInt=function(e){var t=this.constructor;return Zs($s(this,new t(e),0,1,1),t.precision,t.rounding)},Ps.equals=Ps.eq=function(e){return 0===this.cmp(e)},Ps.floor=function(){return Zs(new this.constructor(this),this.e+1,3)},Ps.greaterThan=Ps.gt=function(e){return this.cmp(e)>0},Ps.greaterThanOrEqualTo=Ps.gte=function(e){var t=this.cmp(e);return 1==t||0===t},Ps.hyperbolicCosine=Ps.cosh=function(){var e,t,r,n,i,o=this,a=o.constructor,s=new a(1);if(!o.isFinite())return new a(o.s?1/0:NaN);if(o.isZero())return s;r=a.precision,n=a.rounding,a.precision=r+Math.max(o.e,o.sd())+4,a.rounding=1,(i=o.d.length)<32?t=(1/hl(4,e=Math.ceil(i/3))).toString():(e=16,t="2.3283064365386962890625e-10"),o=pl(a,1,o.times(t),new a(1),!0);for(var l,c=e,u=new a(8);c--;)l=o.times(o),o=s.minus(l.times(u.minus(l.times(u))));return Zs(o,a.precision=r,a.rounding=n,!0)},Ps.hyperbolicSine=Ps.sinh=function(){var e,t,r,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(t=o.precision,r=o.rounding,o.precision=t+Math.max(i.e,i.sd())+4,o.rounding=1,(n=i.d.length)<3)i=pl(o,2,i,i,!0);else{e=(e=1.4*Math.sqrt(n))>16?16:0|e,i=pl(o,2,i=i.times(1/hl(5,e)),i,!0);for(var a,s=new o(5),l=new o(16),c=new o(20);e--;)a=i.times(i),i=i.times(s.plus(a.times(l.times(a).plus(c))))}return o.precision=t,o.rounding=r,Zs(i,t,r,!0)},Ps.hyperbolicTangent=Ps.tanh=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+7,n.rounding=1,$s(r.sinh(),r.cosh(),n.precision=e,n.rounding=t)):new n(r.s)},Ps.inverseCosine=Ps.acos=function(){var e=this,t=e.constructor,r=e.abs().cmp(1),n=t.precision,i=t.rounding;return-1!==r?0===r?e.isNeg()?nl(t,n,i):new t(0):new t(NaN):e.isZero()?nl(t,n+4,i).times(.5):(t.precision=n+6,t.rounding=1,e=new t(1).minus(e).div(e.plus(1)).sqrt().atan(),t.precision=n,t.rounding=i,e.times(2))},Ps.inverseHyperbolicCosine=Ps.acosh=function(){var e,t,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,Ns=!1,r=r.times(r).minus(1).sqrt().plus(r),Ns=!0,n.precision=e,n.rounding=t,r.ln()):new n(r)},Ps.inverseHyperbolicSine=Ps.asinh=function(){var e,t,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,Ns=!1,r=r.times(r).plus(1).sqrt().plus(r),Ns=!0,n.precision=e,n.rounding=t,r.ln())},Ps.inverseHyperbolicTangent=Ps.atanh=function(){var e,t,r,n,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=o.precision,t=o.rounding,n=i.sd(),Math.max(n,e)<2*-i.e-1?Zs(new o(i),e,t,!0):(o.precision=r=n-i.e,i=$s(i.plus(1),new o(1).minus(i),r+e,1),o.precision=e+4,o.rounding=1,i=i.ln(),o.precision=e,o.rounding=t,i.times(.5))):new o(NaN)},Ps.inverseSine=Ps.asin=function(){var e,t,r,n,i=this,o=i.constructor;return i.isZero()?new o(i):(t=i.abs().cmp(1),r=o.precision,n=o.rounding,-1!==t?0===t?((e=nl(o,r+4,n).times(.5)).s=i.s,e):new o(NaN):(o.precision=r+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=r,o.rounding=n,i.times(2)))},Ps.inverseTangent=Ps.atan=function(){var e,t,r,n,i,o,a,s,l,c=this,u=c.constructor,f=u.precision,d=u.rounding;if(c.isFinite()){if(c.isZero())return new u(c);if(c.abs().eq(1)&&f+4<=Vs)return(a=nl(u,f+4,d).times(.25)).s=c.s,a}else{if(!c.s)return new u(NaN);if(f+4<=Vs)return(a=nl(u,f+4,d).times(.5)).s=c.s,a}for(u.precision=s=f+10,u.rounding=1,e=r=Math.min(28,s/7+2|0);e;--e)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(Ns=!1,t=Math.ceil(s/7),n=1,l=c.times(c),a=new u(c),i=c;-1!==e;)if(i=i.times(l),o=a.minus(i.div(n+=2)),i=i.times(l),void 0!==(a=o.plus(i.div(n+=2))).d[t])for(e=t;a.d[e]===o.d[e]&&e--;);return r&&(a=a.times(2<<r-1)),Ns=!0,Zs(a,u.precision=f,u.rounding=d,!0)},Ps.isFinite=function(){return!!this.d},Ps.isInteger=Ps.isInt=function(){return!!this.d&&Rs(this.e/7)>this.d.length-2},Ps.isNaN=function(){return!this.s},Ps.isNegative=Ps.isNeg=function(){return this.s<0},Ps.isPositive=Ps.isPos=function(){return this.s>0},Ps.isZero=function(){return!!this.d&&0===this.d[0]},Ps.lessThan=Ps.lt=function(e){return this.cmp(e)<0},Ps.lessThanOrEqualTo=Ps.lte=function(e){return this.cmp(e)<1},Ps.logarithm=Ps.log=function(e){var t,r,n,i,o,a,s,l,c=this,u=c.constructor,f=u.precision,d=u.rounding;if(null==e)e=new u(10),t=!0;else{if(r=(e=new u(e)).d,e.s<0||!r||!r[0]||e.eq(1))return new u(NaN);t=e.eq(10)}if(r=c.d,c.s<0||!r||!r[0]||c.eq(1))return new u(r&&!r[0]?-1/0:1!=c.s?NaN:r?0:1/0);if(t)if(r.length>1)o=!0;else{for(i=r[0];i%10==0;)i/=10;o=1!==i}if(Ns=!1,a=ul(c,s=f+5),n=t?rl(u,s+10):ul(e,s),Ws((l=$s(a,n,s,1)).d,i=f,d))do{if(a=ul(c,s+=10),n=t?rl(u,s+10):ul(e,s),l=$s(a,n,s,1),!o){+Xs(l.d).slice(i+1,i+15)+1==1e14&&(l=Zs(l,f+1,0));break}}while(Ws(l.d,i+=10,d));return Ns=!0,Zs(l,f,d)},Ps.minus=Ps.sub=function(e){var t,r,n,i,o,a,s,l,c,u,f,d,g=this,p=g.constructor;if(e=new p(e),!g.d||!e.d)return g.s&&e.s?g.d?e.s=-e.s:e=new p(e.d||g.s!==e.s?g:NaN):e=new p(NaN),e;if(g.s!=e.s)return e.s=-e.s,g.plus(e);if(c=g.d,d=e.d,s=p.precision,l=p.rounding,!c[0]||!d[0]){if(d[0])e.s=-e.s;else{if(!c[0])return new p(3===l?-0:0);e=new p(g)}return Ns?Zs(e,s,l):e}if(r=Rs(e.e/7),u=Rs(g.e/7),c=c.slice(),o=u-r){for((f=o<0)?(t=c,o=-o,a=d.length):(t=d,r=u,a=c.length),o>(n=Math.max(Math.ceil(s/7),a)+2)&&(o=n,t.length=1),t.reverse(),n=o;n--;)t.push(0);t.reverse()}else{for((f=(n=c.length)<(a=d.length))&&(a=n),n=0;n<a;n++)if(c[n]!=d[n]){f=c[n]<d[n];break}o=0}for(f&&(t=c,c=d,d=t,e.s=-e.s),a=c.length,n=d.length-a;n>0;--n)c[a++]=0;for(n=d.length;n>o;){if(c[--n]<d[n]){for(i=n;i&&0===c[--i];)c[i]=Js-1;--c[i],c[n]+=Js}c[n]-=d[n]}for(;0===c[--a];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(e.d=c,e.e=tl(c,r),Ns?Zs(e,s,l):e):new p(3===l?-0:0)},Ps.modulo=Ps.mod=function(e){var t,r=this,n=r.constructor;return e=new n(e),!r.d||!e.s||e.d&&!e.d[0]?new n(NaN):!e.d||r.d&&!r.d[0]?Zs(new n(r),n.precision,n.rounding):(Ns=!1,9==n.modulo?(t=$s(r,e.abs(),0,3,1)).s*=e.s:t=$s(r,e,0,n.modulo,1),t=t.times(e),Ns=!0,r.minus(t))},Ps.naturalExponential=Ps.exp=function(){return cl(this)},Ps.naturalLogarithm=Ps.ln=function(){return ul(this)},Ps.negated=Ps.neg=function(){var e=new this.constructor(this);return e.s=-e.s,Zs(e)},Ps.plus=Ps.add=function(e){var t,r,n,i,o,a,s,l,c,u,f=this,d=f.constructor;if(e=new d(e),!f.d||!e.d)return f.s&&e.s?f.d||(e=new d(e.d||f.s===e.s?f:NaN)):e=new d(NaN),e;if(f.s!=e.s)return e.s=-e.s,f.minus(e);if(c=f.d,u=e.d,s=d.precision,l=d.rounding,!c[0]||!u[0])return u[0]||(e=new d(f)),Ns?Zs(e,s,l):e;if(o=Rs(f.e/7),n=Rs(e.e/7),c=c.slice(),i=o-n){for(i<0?(r=c,i=-i,a=u.length):(r=u,n=o,a=c.length),i>(a=(o=Math.ceil(s/7))>a?o+1:a+1)&&(i=a,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((a=c.length)-(i=u.length)<0&&(i=a,r=u,u=c,c=r),t=0;i;)t=(c[--i]=c[i]+u[i]+t)/Js|0,c[i]%=Js;for(t&&(c.unshift(t),++n),a=c.length;0==c[--a];)c.pop();return e.d=c,e.e=tl(c,n),Ns?Zs(e,s,l):e},Ps.precision=Ps.sd=function(e){var t,r=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(Ms+e);return r.d?(t=il(r.d),e&&r.e+1>t&&(t=r.e+1)):t=NaN,t},Ps.round=function(){var e=this,t=e.constructor;return Zs(new t(e),e.e+1,t.rounding)},Ps.sine=Ps.sin=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+7,n.rounding=1,r=function(e,t){var r,n=t.d.length;if(n<3)return t.isZero()?t:pl(e,2,t,t);r=(r=1.4*Math.sqrt(n))>16?16:0|r,t=t.times(1/hl(5,r)),t=pl(e,2,t,t);for(var i,o=new e(5),a=new e(16),s=new e(20);r--;)i=t.times(t),t=t.times(o.plus(i.times(a.times(i).minus(s))));return t}(n,Al(n,r)),n.precision=e,n.rounding=t,Zs(Cs>2?r.neg():r,e,t,!0)):new n(NaN)},Ps.squareRoot=Ps.sqrt=function(){var e,t,r,n,i,o,a=this,s=a.d,l=a.e,c=a.s,u=a.constructor;if(1!==c||!s||!s[0])return new u(!c||c<0&&(!s||s[0])?NaN:s?a:1/0);for(Ns=!1,0==(c=Math.sqrt(+a))||c==1/0?(((t=Xs(s)).length+l)%2==0&&(t+="0"),c=Math.sqrt(t),l=Rs((l+1)/2)-(l<0||l%2),n=new u(t=c==1/0?"5e"+l:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+l)):n=new u(c.toString()),r=(l=u.precision)+3;;)if(n=(o=n).plus($s(a,o,r+2,1)).times(.5),Xs(o.d).slice(0,r)===(t=Xs(n.d)).slice(0,r)){if("9999"!=(t=t.slice(r-3,r+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(Zs(n,l+1,1),e=!n.times(n).eq(a));break}if(!i&&(Zs(o,l+1,0),o.times(o).eq(a))){n=o;break}r+=4,i=1}return Ns=!0,Zs(n,l,u.rounding,e)},Ps.tangent=Ps.tan=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,(r=r.sin()).s=1,r=$s(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,Zs(2==Cs||4==Cs?r.neg():r,e,t,!0)):new n(NaN)},Ps.times=Ps.mul=function(e){var t,r,n,i,o,a,s,l,c,u=this,f=u.constructor,d=u.d,g=(e=new f(e)).d;if(e.s*=u.s,!(d&&d[0]&&g&&g[0]))return new f(!e.s||d&&!d[0]&&!g||g&&!g[0]&&!d?NaN:d&&g?0*e.s:e.s/0);for(r=Rs(u.e/7)+Rs(e.e/7),(l=d.length)<(c=g.length)&&(o=d,d=g,g=o,a=l,l=c,c=a),o=[],n=a=l+c;n--;)o.push(0);for(n=c;--n>=0;){for(t=0,i=l+n;i>n;)s=o[i]+g[n]*d[i-n-1]+t,o[i--]=s%Js|0,t=s/Js|0;o[i]=(o[i]+t)%Js|0}for(;!o[--a];)o.pop();return t?++r:o.shift(),e.d=o,e.e=tl(o,r),Ns?Zs(e,f.precision,f.rounding):e},Ps.toBinary=function(e,t){return ml(this,2,e,t)},Ps.toDecimalPlaces=Ps.toDP=function(e,t){var r=this,n=r.constructor;return r=new n(r),void 0===e?r:(_s(e,0,Ds),void 0===t?t=n.rounding:_s(t,0,8),Zs(r,e+r.e+1,t))},Ps.toExponential=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=el(n,!0):(_s(e,0,Ds),void 0===t?t=i.rounding:_s(t,0,8),r=el(n=Zs(new i(n),e+1,t),!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r},Ps.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return void 0===e?r=el(i):(_s(e,0,Ds),void 0===t?t=o.rounding:_s(t,0,8),r=el(n=Zs(new o(i),e+i.e+1,t),!1,e+n.e+1)),i.isNeg()&&!i.isZero()?"-"+r:r},Ps.toFraction=function(e){var t,r,n,i,o,a,s,l,c,u,f,d,g=this,p=g.d,h=g.constructor;if(!p)return new h(g);if(c=r=new h(1),n=l=new h(0),a=(o=(t=new h(n)).e=il(p)-g.e-1)%7,t.d[0]=Os(10,a<0?7+a:a),null==e)e=o>0?t:c;else{if(!(s=new h(e)).isInt()||s.lt(c))throw Error(Ms+s);e=s.gt(t)?o>0?t:c:s}for(Ns=!1,s=new h(Xs(p)),u=h.precision,h.precision=o=7*p.length*2;f=$s(s,t,0,1,1),1!=(i=r.plus(f.times(n))).cmp(e);)r=n,n=i,i=c,c=l.plus(f.times(i)),l=i,i=t,t=s.minus(f.times(i)),s=i;return i=$s(e.minus(r),n,0,1,1),l=l.plus(i.times(c)),r=r.plus(i.times(n)),l.s=c.s=g.s,d=$s(c,n,o,1).minus(g).abs().cmp($s(l,r,o,1).minus(g).abs())<1?[c,n]:[l,r],h.precision=u,Ns=!0,d},Ps.toHexadecimal=Ps.toHex=function(e,t){return ml(this,16,e,t)},Ps.toNearest=function(e,t){var r=this,n=r.constructor;if(r=new n(r),null==e){if(!r.d)return r;e=new n(1),t=n.rounding}else{if(e=new n(e),void 0===t?t=n.rounding:_s(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(Ns=!1,r=$s(r,e,0,t,1).times(e),Ns=!0,Zs(r)):(e.s=r.s,r=e),r},Ps.toNumber=function(){return+this},Ps.toOctal=function(e,t){return ml(this,8,e,t)},Ps.toPower=Ps.pow=function(e){var t,r,n,i,o,a,s=this,l=s.constructor,c=+(e=new l(e));if(!(s.d&&e.d&&s.d[0]&&e.d[0]))return new l(Os(+s,c));if((s=new l(s)).eq(1))return s;if(n=l.precision,o=l.rounding,e.eq(1))return Zs(s,n,o);if((t=Rs(e.e/7))>=e.d.length-1&&(r=c<0?-c:c)<=9007199254740991)return i=al(l,s,r,n),e.s<0?new l(1).div(i):Zs(i,n,o);if((a=s.s)<0){if(t<e.d.length-1)return new l(NaN);if(1&e.d[t]||(a=1),0==s.e&&1==s.d[0]&&1==s.d.length)return s.s=a,s}return(t=0!=(r=Os(+s,c))&&isFinite(r)?new l(r+"").e:Rs(c*(Math.log("0."+Xs(s.d))/Math.LN10+s.e+1)))>l.maxE+1||t<l.minE-1?new l(t>0?a/0:0):(Ns=!1,l.rounding=s.s=1,r=Math.min(12,(t+"").length),(i=cl(e.times(ul(s,n+r)),n)).d&&Ws((i=Zs(i,n+5,1)).d,n,o)&&(t=n+10,+Xs((i=Zs(cl(e.times(ul(s,t+r)),t),t+5,1)).d).slice(n+1,n+15)+1==1e14&&(i=Zs(i,n+1,0))),i.s=a,Ns=!0,l.rounding=o,Zs(i,n,o))},Ps.toPrecision=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=el(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(_s(e,1,Ds),void 0===t?t=i.rounding:_s(t,0,8),r=el(n=Zs(new i(n),e,t),e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r},Ps.toSignificantDigits=Ps.toSD=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(_s(e,1,Ds),void 0===t?t=r.rounding:_s(t,0,8)),Zs(new r(this),e,t)},Ps.toString=function(){var e=this,t=e.constructor,r=el(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+r:r},Ps.truncated=Ps.trunc=function(){return Zs(new this.constructor(this),this.e+1,1)},Ps.valueOf=Ps.toJSON=function(){var e=this,t=e.constructor,r=el(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+r:r};var $s=function(){function e(e,t,r){var n,i=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+i,e[o]=n%r|0,i=n/r|0;return i&&e.unshift(i),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;)e.shift()}return function(n,i,o,a,s,l){var c,u,f,d,g,p,h,A,m,I,y,v,b,w,B,E,C,x,D,F,Q=n.constructor,S=n.s==i.s?1:-1,k=n.d,N=i.d;if(!(k&&k[0]&&N&&N[0]))return new Q(n.s&&i.s&&(k?!N||k[0]!=N[0]:N)?k&&0==k[0]||!N?0*S:S/0:NaN);for(l?(g=1,u=n.e-i.e):(l=Js,g=7,u=Rs(n.e/g)-Rs(i.e/g)),D=N.length,C=k.length,I=(m=new Q(S)).d=[],f=0;N[f]==(k[f]||0);f++);if(N[f]>(k[f]||0)&&u--,null==o?(w=o=Q.precision,a=Q.rounding):w=s?o+(n.e-i.e)+1:o,w<0)I.push(1),p=!0;else{if(w=w/g+2|0,f=0,1==D){for(d=0,N=N[0],w++;(f<C||d)&&w--;f++)B=d*l+(k[f]||0),I[f]=B/N|0,d=B%N|0;p=d||f<C}else{for((d=l/(N[0]+1)|0)>1&&(N=e(N,d,l),k=e(k,d,l),D=N.length,C=k.length),E=D,v=(y=k.slice(0,D)).length;v<D;)y[v++]=0;(F=N.slice()).unshift(0),x=N[0],N[1]>=l/2&&++x;do{d=0,(c=t(N,y,D,v))<0?(b=y[0],D!=v&&(b=b*l+(y[1]||0)),(d=b/x|0)>1?(d>=l&&(d=l-1),1==(c=t(h=e(N,d,l),y,A=h.length,v=y.length))&&(d--,r(h,D<A?F:N,A,l))):(0==d&&(c=d=1),h=N.slice()),(A=h.length)<v&&h.unshift(0),r(y,h,v,l),-1==c&&(c=t(N,y,D,v=y.length))<1&&(d++,r(y,D<v?F:N,v,l)),v=y.length):0===c&&(d++,y=[0]),I[f++]=d,c&&y[0]?y[v++]=k[E]||0:(y=[k[E]],v=1)}while((E++<C||void 0!==y[0])&&w--);p=void 0!==y[0]}I[0]||I.shift()}if(1==g)m.e=u,Es=p;else{for(f=1,d=I[0];d>=10;d/=10)f++;m.e=f+u*g-1,Zs(m,s?o+m.e+1:o,a,p)}return m}}();function Zs(e,t,r,n){var i,o,a,s,l,c,u,f,d,g=e.constructor;e:if(null!=t){if(!(f=e.d))return e;for(i=1,s=f[0];s>=10;s/=10)i++;if((o=t-i)<0)o+=7,a=t,l=(u=f[d=0])/Os(10,i-a-1)%10|0;else if((d=Math.ceil((o+1)/7))>=(s=f.length)){if(!n)break e;for(;s++<=d;)f.push(0);u=l=0,i=1,a=(o%=7)-7+1}else{for(u=s=f[d],i=1;s>=10;s/=10)i++;l=(a=(o%=7)-7+i)<0?0:u/Os(10,i-a-1)%10|0}if(n=n||t<0||void 0!==f[d+1]||(a<0?u:u%Os(10,i-a-1)),c=r<4?(l||n)&&(0==r||r==(e.s<0?3:2)):l>5||5==l&&(4==r||n||6==r&&(o>0?a>0?u/Os(10,i-a):0:f[d-1])%10&1||r==(e.s<0?8:7)),t<1||!f[0])return f.length=0,c?(t-=e.e+1,f[0]=Os(10,(7-t%7)%7),e.e=-t||0):f[0]=e.e=0,e;if(0==o?(f.length=d,s=1,d--):(f.length=d+1,s=Os(10,7-o),f[d]=a>0?(u/Os(10,i-a)%Os(10,a)|0)*s:0),c)for(;;){if(0==d){for(o=1,a=f[0];a>=10;a/=10)o++;for(a=f[0]+=s,s=1;a>=10;a/=10)s++;o!=s&&(e.e++,f[0]==Js&&(f[0]=1));break}if(f[d]+=s,f[d]!=Js)break;f[d--]=0,s=1}for(o=f.length;0===f[--o];)f.pop()}return Ns&&(e.e>g.maxE?(e.d=null,e.e=NaN):e.e<g.minE&&(e.e=0,e.d=[0])),e}function el(e,t,r){if(!e.isFinite())return fl(e);var n,i=e.e,o=Xs(e.d),a=o.length;return t?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+ol(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):i<0?(o="0."+ol(-i-1)+o,r&&(n=r-a)>0&&(o+=ol(n))):i>=a?(o+=ol(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+ol(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=ol(n))),o}function tl(e,t){var r=e[0];for(t*=7;r>=10;r/=10)t++;return t}function rl(e,t,r){if(t>zs)throw Ns=!0,r&&(e.precision=r),Error(Hs);return Zs(new e(Qs),t,1,!0)}function nl(e,t,r){if(t>Vs)throw Error(Hs);return Zs(new e(Ss),t,r,!0)}function il(e){var t=e.length-1,r=7*t+1;if(t=e[t]){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function ol(e){for(var t="";e--;)t+="0";return t}function al(e,t,r,n){var i,o=new e(1),a=Math.ceil(n/7+4);for(Ns=!1;;){if(r%2&&Il((o=o.times(t)).d,a)&&(i=!0),0===(r=Rs(r/2))){r=o.d.length-1,i&&0===o.d[r]&&++o.d[r];break}Il((t=t.times(t)).d,a)}return Ns=!0,o}function sl(e){return 1&e.d[e.d.length-1]}function ll(e,t,r){for(var n,i,o=new e(t[0]),a=0;++a<t.length;){if(!(i=new e(t[a])).s){o=i;break}((n=o.cmp(i))===r||0===n&&o.s===r)&&(o=i)}return o}function cl(e,t){var r,n,i,o,a,s,l,c=0,u=0,f=0,d=e.constructor,g=d.rounding,p=d.precision;if(!e.d||!e.d[0]||e.e>17)return new d(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(null==t?(Ns=!1,l=p):l=t,s=new d(.03125);e.e>-2;)e=e.times(s),f+=5;for(l+=n=Math.log(Os(2,f))/Math.LN10*2+5|0,r=o=a=new d(1),d.precision=l;;){if(o=Zs(o.times(e),l,1),r=r.times(++u),Xs((s=a.plus($s(o,r,l,1))).d).slice(0,l)===Xs(a.d).slice(0,l)){for(i=f;i--;)a=Zs(a.times(a),l,1);if(null!=t)return d.precision=p,a;if(!(c<3&&Ws(a.d,l-n,g,c)))return Zs(a,d.precision=p,g,Ns=!0);d.precision=l+=10,r=o=s=new d(1),u=0,c++}a=s}}function ul(e,t){var r,n,i,o,a,s,l,c,u,f,d,g=1,p=e,h=p.d,A=p.constructor,m=A.rounding,I=A.precision;if(p.s<0||!h||!h[0]||!p.e&&1==h[0]&&1==h.length)return new A(h&&!h[0]?-1/0:1!=p.s?NaN:h?0:p);if(null==t?(Ns=!1,u=I):u=t,A.precision=u+=10,n=(r=Xs(h)).charAt(0),!(Math.abs(o=p.e)<15e14))return c=rl(A,u+2,I).times(o+""),p=ul(new A(n+"."+r.slice(1)),u-10).plus(c),A.precision=I,null==t?Zs(p,I,m,Ns=!0):p;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=Xs((p=p.times(e)).d)).charAt(0),g++;for(o=p.e,n>1?(p=new A("0."+r),o++):p=new A(n+"."+r.slice(1)),f=p,l=a=p=$s(p.minus(1),p.plus(1),u,1),d=Zs(p.times(p),u,1),i=3;;){if(a=Zs(a.times(d),u,1),Xs((c=l.plus($s(a,new A(i),u,1))).d).slice(0,u)===Xs(l.d).slice(0,u)){if(l=l.times(2),0!==o&&(l=l.plus(rl(A,u+2,I).times(o+""))),l=$s(l,new A(g),u,1),null!=t)return A.precision=I,l;if(!Ws(l.d,u-10,m,s))return Zs(l,A.precision=I,m,Ns=!0);A.precision=u+=10,c=a=p=$s(f.minus(1),f.plus(1),u,1),d=Zs(p.times(p),u,1),i=s=1}l=c,i+=2}}function fl(e){return String(e.s*e.s/0)}function dl(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);n++);for(i=t.length;48===t.charCodeAt(i-1);--i);if(t=t.slice(n,i)){if(i-=n,e.e=r=r-n-1,e.d=[],n=(r+1)%7,r<0&&(n+=7),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=7;n<i;)e.d.push(+t.slice(n,n+=7));n=7-(t=t.slice(n)).length}else n-=i;for(;n--;)t+="0";e.d.push(+t),Ns&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function gl(e,t){var r,n,i,o,a,s,l,c,u;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),Gs.test(t))return dl(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(Ys.test(t))r=16,t=t.toLowerCase();else if(Ts.test(t))r=2;else{if(!js.test(t))throw Error(Ms+t);r=8}for((o=t.search(/p/i))>0?(l=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),a=(o=t.indexOf("."))>=0,n=e.constructor,a&&(o=(s=(t=t.replace(".","")).length)-o,i=al(n,new n(r),o,2*o)),o=u=(c=Ks(t,r,Js)).length-1;0===c[o];--o)c.pop();return o<0?new n(0*e.s):(e.e=tl(c,u),e.d=c,Ns=!1,a&&(e=$s(e,i,4*s)),l&&(e=e.times(Math.abs(l)<54?Os(2,l):oc.pow(2,l))),Ns=!0,e)}function pl(e,t,r,n,i){var o,a,s,l,c=e.precision,u=Math.ceil(c/7);for(Ns=!1,l=r.times(r),s=new e(n);;){if(a=$s(s.times(l),new e(t++*t++),c,1),s=i?n.plus(a):n.minus(a),n=$s(a.times(l),new e(t++*t++),c,1),void 0!==(a=s.plus(n)).d[u]){for(o=u;a.d[o]===s.d[o]&&o--;);if(-1==o)break}o=s,s=n,n=a,a=o}return Ns=!0,a.d.length=u+1,a}function hl(e,t){for(var r=e;--t;)r*=e;return r}function Al(e,t){var r,n=t.s<0,i=nl(e,e.precision,1),o=i.times(.5);if((t=t.abs()).lte(o))return Cs=n?4:1,t;if((r=t.divToInt(i)).isZero())Cs=n?3:2;else{if((t=t.minus(r.times(i))).lte(o))return Cs=sl(r)?n?2:3:n?4:1,t;Cs=sl(r)?n?1:4:n?3:2}return t.minus(i).abs()}function ml(e,t,r,n){var i,o,a,s,l,c,u,f,d,g=e.constructor,p=void 0!==r;if(p?(_s(r,1,Ds),void 0===n?n=g.rounding:_s(n,0,8)):(r=g.precision,n=g.rounding),e.isFinite()){for(p?(i=2,16==t?r=4*r-3:8==t&&(r=3*r-2)):i=t,(a=(u=el(e)).indexOf("."))>=0&&(u=u.replace(".",""),(d=new g(1)).e=u.length-a,d.d=Ks(el(d),10,i),d.e=d.d.length),o=l=(f=Ks(u,10,i)).length;0==f[--l];)f.pop();if(f[0]){if(a<0?o--:((e=new g(e)).d=f,e.e=o,f=(e=$s(e,d,r,n,0,i)).d,o=e.e,c=Es),a=f[r],s=i/2,c=c||void 0!==f[r+1],c=n<4?(void 0!==a||c)&&(0===n||n===(e.s<0?3:2)):a>s||a===s&&(4===n||c||6===n&&1&f[r-1]||n===(e.s<0?8:7)),f.length=r,c)for(;++f[--r]>i-1;)f[r]=0,r||(++o,f.unshift(1));for(l=f.length;!f[l-1];--l);for(a=0,u="";a<l;a++)u+=Fs.charAt(f[a]);if(p){if(l>1)if(16==t||8==t){for(a=16==t?4:3,--l;l%a;l++)u+="0";for(l=(f=Ks(u,i,t)).length;!f[l-1];--l);for(a=1,u="1.";a<l;a++)u+=Fs.charAt(f[a])}else u=u.charAt(0)+"."+u.slice(1);u=u+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)u="0"+u;u="0."+u}else if(++o>l)for(o-=l;o--;)u+="0";else o<l&&(u=u.slice(0,o)+"."+u.slice(o))}else u=p?"0p+0":"0";u=(16==t?"0x":2==t?"0b":8==t?"0o":"")+u}else u=fl(e);return e.s<0?"-"+u:u}function Il(e,t){if(e.length>t)return e.length=t,!0}function yl(e){return new this(e).abs()}function vl(e){return new this(e).acos()}function bl(e){return new this(e).acosh()}function wl(e,t){return new this(e).plus(t)}function Bl(e){return new this(e).asin()}function El(e){return new this(e).asinh()}function Cl(e){return new this(e).atan()}function xl(e){return new this(e).atanh()}function Dl(e,t){e=new this(e),t=new this(t);var r,n=this.precision,i=this.rounding,o=n+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(r=t.s<0?nl(this,n,i):new this(0)).s=e.s:!e.d||t.isZero()?(r=nl(this,o,1).times(.5)).s=e.s:t.s<0?(this.precision=o,this.rounding=1,r=this.atan($s(e,t,o,1)),t=nl(this,o,1),this.precision=n,this.rounding=i,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan($s(e,t,o,1)):(r=nl(this,o,1).times(t.s>0?.25:.75)).s=e.s:r=new this(NaN),r}function Fl(e){return new this(e).cbrt()}function Ql(e){return Zs(e=new this(e),e.e+1,2)}function Sl(e,t,r){return new this(e).clamp(t,r)}function kl(e){if(!e||"object"!=typeof e)throw Error(qs+"Object expected");var t,r,n,i=!0===e.defaults,o=["precision",1,Ds,"rounding",0,8,"toExpNeg",-xs,0,"toExpPos",0,xs,"maxE",0,xs,"minE",-xs,0,"modulo",0,9];for(t=0;t<o.length;t+=3)if(r=o[t],i&&(this[r]=ks[r]),void 0!==(n=e[r])){if(!(Rs(n)===n&&n>=o[t+1]&&n<=o[t+2]))throw Error(Ms+r+": "+n);this[r]=n}if(r="crypto",i&&(this[r]=ks[r]),void 0!==(n=e[r])){if(!0!==n&&!1!==n&&0!==n&&1!==n)throw Error(Ms+r+": "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(Ls);this[r]=!0}else this[r]=!1}return this}function Nl(e){return new this(e).cos()}function ql(e){return new this(e).cosh()}function Ml(e,t){return new this(e).div(t)}function Hl(e){return new this(e).exp()}function Ll(e){return Zs(e=new this(e),e.e+1,3)}function Ul(){var e,t,r=new this(0);for(Ns=!1,e=0;e<arguments.length;)if((t=new this(arguments[e++])).d)r.d&&(r=r.plus(t.times(t)));else{if(t.s)return Ns=!0,new this(1/0);r=t}return Ns=!0,r.sqrt()}function Rl(e){return e instanceof oc||e&&e.toStringTag===Us||!1}function Ol(e){return new this(e).ln()}function Tl(e,t){return new this(e).log(t)}function Yl(e){return new this(e).log(2)}function jl(e){return new this(e).log(10)}function Gl(){return ll(this,arguments,-1)}function Jl(){return ll(this,arguments,1)}function zl(e,t){return new this(e).mod(t)}function Vl(e,t){return new this(e).mul(t)}function Pl(e,t){return new this(e).pow(t)}function Xl(e){var t,r,n,i,o=0,a=new this(1),s=[];if(void 0===e?e=this.precision:_s(e,1,Ds),n=Math.ceil(e/7),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(n));o<n;)(i=t[o])>=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:s[o++]=i%1e7;else{if(!crypto.randomBytes)throw Error(Ls);for(t=crypto.randomBytes(n*=4);o<n;)(i=t[o]+(t[o+1]<<8)+(t[o+2]<<16)+((127&t[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,o):(s.push(i%1e7),o+=4);o=n/4}else for(;o<n;)s[o++]=1e7*Math.random()|0;for(e%=7,(n=s[--o])&&e&&(i=Os(10,7-e),s[o]=(n/i|0)*i);0===s[o];o--)s.pop();if(o<0)r=0,s=[0];else{for(r=-1;0===s[0];r-=7)s.shift();for(n=1,i=s[0];i>=10;i/=10)n++;n<7&&(r-=7-n)}return a.e=r,a.d=s,a}function _l(e){return Zs(e=new this(e),e.e+1,this.rounding)}function Wl(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function Kl(e){return new this(e).sin()}function $l(e){return new this(e).sinh()}function Zl(e){return new this(e).sqrt()}function ec(e,t){return new this(e).sub(t)}function tc(){var e=0,t=arguments,r=new this(t[e]);for(Ns=!1;r.s&&++e<t.length;)r=r.plus(t[e]);return Ns=!0,Zs(r,this.precision,this.rounding)}function rc(e){return new this(e).tan()}function nc(e){return new this(e).tanh()}function ic(e){return Zs(e=new this(e),e.e+1,1)}Ps[Symbol.for("nodejs.util.inspect.custom")]=Ps.toString,Ps[Symbol.toStringTag]="Decimal";var oc=Ps.constructor=function e(t){var r,n,i;function o(e){var t,r,n,i=this;if(!(i instanceof o))return new o(e);if(i.constructor=o,Rl(e))return i.s=e.s,void(Ns?!e.d||e.e>o.maxE?(i.e=NaN,i.d=null):e.e<o.minE?(i.e=0,i.d=[0]):(i.e=e.e,i.d=e.d.slice()):(i.e=e.e,i.d=e.d?e.d.slice():e.d));if("number"===(n=typeof e)){if(0===e)return i.s=1/e<0?-1:1,i.e=0,void(i.d=[0]);if(e<0?(e=-e,i.s=-1):i.s=1,e===~~e&&e<1e7){for(t=0,r=e;r>=10;r/=10)t++;return void(Ns?t>o.maxE?(i.e=NaN,i.d=null):t<o.minE?(i.e=0,i.d=[0]):(i.e=t,i.d=[e]):(i.e=t,i.d=[e]))}return 0*e!=0?(e||(i.s=NaN),i.e=NaN,void(i.d=null)):dl(i,e.toString())}if("string"===n)return 45===(r=e.charCodeAt(0))?(e=e.slice(1),i.s=-1):(43===r&&(e=e.slice(1)),i.s=1),Gs.test(e)?dl(i,e):gl(i,e);if("bigint"===n)return e<0?(e=-e,i.s=-1):i.s=1,dl(i,e.toString());throw Error(Ms+e)}if(o.prototype=Ps,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=kl,o.clone=e,o.isDecimal=Rl,o.abs=yl,o.acos=vl,o.acosh=bl,o.add=wl,o.asin=Bl,o.asinh=El,o.atan=Cl,o.atanh=xl,o.atan2=Dl,o.cbrt=Fl,o.ceil=Ql,o.clamp=Sl,o.cos=Nl,o.cosh=ql,o.div=Ml,o.exp=Hl,o.floor=Ll,o.hypot=Ul,o.ln=Ol,o.log=Tl,o.log10=jl,o.log2=Yl,o.max=Gl,o.min=Jl,o.mod=zl,o.mul=Vl,o.pow=Pl,o.random=Xl,o.round=_l,o.sign=Wl,o.sin=Kl,o.sinh=$l,o.sqrt=Zl,o.sub=ec,o.sum=tc,o.tan=rc,o.tanh=nc,o.trunc=ic,void 0===t&&(t={}),t&&!0!==t.defaults)for(i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],r=0;r<i.length;)t.hasOwnProperty(n=i[r++])||(t[n]=this[n]);return o.config(t),o}(ks);function ac(e,t=0){if(Eo(t)||(t=0),t=eo(t),!ke(e))return"";return new oc(e).toDecimalPlaces(t,oc.ROUND_CEIL).toNumber()}function sc(e,t=0){if(!ke(e))return"";if(!Eo(t))return"";return e=Hn(e),Zi(e,t).toFixed(t)}function lc(e){let t=function(){let e=vn();return n||e.xss}();let r=function e(r){return xe(r)||Ee(r)?(Cr(r,function(t,n){r[n]=e(t)}),r):Fe(r)?t(r,{onIgnoreTagAttr:function(e,r,n,i){if("style"===r)return r+'="'+t.escapeAttrValue(n)+'"'}}):r}(Vi(e));return r}function cc(e,t){let r=is();if(!xe(e)&&!Ee(e))return r.reject("rs is not an array or object"),r;let n=!1;if(Ee(e)){n=!0;let t=[];Cr(e,(e,r)=>{t.push({k:r,v:e})}),e=t}ba(t)||(t=function(e){return e});let i=-1,o=[];return e.reduce(function(e,r){return e.then(function(e){o.push(e),i+=1;let a=i,s=r;return n&&(a=r.k,s=r.v),ba(t)?t(s,a):s})},Promise.resolve()).then(function(e){o.push(e),o=Ga(o),r.resolve(o)}).catch(function(e){r.reject(e)}),r}Qs=new oc(Qs),Ss=new oc(Ss);let uc={},fc={};function dc({tagName:e,path:t,attributes:r={},func:n}){let i=is();if("done"===uc[t])return i.resolve("loaded"),i;if("loading"===uc[t])return bs(()=>"done"===uc[t]).then(function(){i.resolve("loaded")}),i;uc[t]="loading";let o=document.createElement(e);return Cr(r,(e,t)=>{o.setAttribute(t,e)}),r.rel&&"stylesheet"===r.rel?(o.setAttribute("href",t),setTimeout(()=>{i.resolve(o),uc[t]="done"},1)):(o.src=t,o.addEventListener("load",()=>{let e;ba(n)?e=bs(n):(e=is(),e.resolve()),e.then(()=>ws(500)).then(function(){i.resolve(o),uc[t]="done"})}),o.addEventListener("error",()=>{i.reject(o),uc[t]="done"})),document.getElementsByTagName("head")[0].appendChild(o),i}function gc(e){let t=is();xe(e)||(e=[e]),Cr(e,(t,r)=>{De(t)&&(e[r]={path:t})});let r=Do(Dr(e,"path"),"|");return"done"===fc[r]?(t.resolve("loaded"),t):"loading"===fc[r]?(bs(()=>"done"===fc[r]).then(function(){t.resolve("loaded")}),t):(fc[r]="loading",Cr(e,(e,t)=>{e.type||(".js"===da(e.path,3)?e.type="js":".css"===da(e.path,4)?e.type="css":e.type="unknow")}),cc(e,e=>{let t=is();if("js"===e.type)t=dc({tagName:"script",path:e.path,attributes:{type:"text/javascript"},func:e.func});else if("css"===e.type)t=dc({tagName:"link",path:e.path,attributes:{rel:"stylesheet"}});else{let r="invalid pathItem.type: "+e.type;console.log(r),t.reject(r)}return t}).finally(()=>{fc[r]="done"}))}function pc(e){return ye(e).toUpperCase()}function hc(e,t,r){if(!Fe(e))return"";if(!Fe(t))return"";if(!De(r))return"";return String(e).replaceAll(t,r)}function Ac(e,t,r=1){return Fe(e)&&Eo(t)?(r=to(r)?eo(r):1,e.substring(t,t+r)):""}let mc={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function Ic(e){return vc(e,1)}function yc(e){return vc(e,360)}function vc(e,t=1){if(e.indexOf("%")>=0){if(!ke(e=hc(e,"%","")))throw new Error("invalid color: value is not a number");e=Hn(e)/100}else{if(!ke(e))throw new Error("invalid color: value is not a number");e=Hn(e)/t}if(e>1)throw new Error("invalid color: value > 1");if(e<0)throw new Error("invalid color: value < 0");return e}function bc(e){if(!ke(e))throw new Error("invalid color: value is not a number");if((e=Hn(e))>1)throw new Error("invalid color: value > 1");if(e<0)throw new Error("invalid color: value < 0");return e}function wc(e,t="rgba"){if(!xe(e))throw new Error("invalid colors array");let r=Be(e,0,0),n=Be(e,1,0),i=Be(e,2,0),o=Be(e,3,1);if(4!==gn(t=t.split("")))throw new Error("tar.length !== 4");let a=Be(t,0),s=Be(t,1),l=Be(t,2),c=Be(t,3);return{[a]:r,[s]:n,[l]:i,[c]:o}}function Bc(e){let t=(e=ga(e,1)).length;if(2===t)e=`${e}${e}${e}ff`;else if(3===t){let t=Ac(e,0,1),r=Ac(e,1,1),n=Ac(e,2,1);e=`${t}${t}${r}${r}${n}${n}ff`}else if(6===t)e=`${e}ff`;else if(8!==t)throw new Error("invalid hex color");function r(e){if(2!==e.length)throw new Error("hex.length of color is not equal to 2");if(!ke(e=parseInt(e,16)))throw new Error("invalid hex of color");return(e=Hn(e))/255}return{r:r(Ac(e,0,2)),g:r(Ac(e,2,2)),b:r(Ac(e,4,2)),a:r(Ac(e,6,2))}}function Ec(e){return e=wc(e=Dr(e,(e,t)=>t<=2?vc(e,255):3===t?bc(e):null),"rgba")}function Cc(e){return e=qc(e=wc(e=Dr(e,(e,t)=>0===t?yc(e):1===t||2===t?Ic(e):3===t?bc(e):null),"hsla"))}function xc(e){return e=Mc(e=wc(e=Dr(e,(e,t)=>0===t?yc(e):1===t||2===t?Ic(e):3===t?bc(e):null),"hsva"))}function Dc(e){if("transparent"===e)return{r:0,g:0,b:0,a:0};if(function(e){return Ne(mc,e)}(e))return Bc(e=function(e){return`#${mc[e]}`}(e));if(function(e){return"#"===fa(e,1)&&(!!/[0-9A-Fa-f]{2}/g.test(e)||(!!/[0-9A-Fa-f]{3}/g.test(e)||(!!/[0-9A-Fa-f]{6}/g.test(e)||!!/[0-9A-Fa-f]{8}/g.test(e))))}(e))return Bc(e);if(function(e){return"rgb"===fa(e,3)||"rgba"===fa(e,4)}(e))return function(e){return e=hc(e,"rgba",""),e=hc(e,"rgb",""),Ec(ua(e=hc(e=e.replace(/[()]/g,""),","," ")," "))}(e);if(function(e){return"hsl"===fa(e,3)||"hsla"===fa(e,4)}(e))return function(e){return e=hc(e,"hsla",""),e=hc(e,"hsl",""),Cc(ua(e=hc(e=e.replace(/[()]/g,""),","," ")," "))}(e);if(function(e){return"hsv"===fa(e,3)||"hsva"===fa(e,4)}(e))return function(e){return e=hc(e,"hsva",""),e=hc(e,"hsv",""),xc(ua(e=hc(e=e.replace(/[()]/g,""),","," ")," "))}(e);throw new Error("format of color string is not hex-color, name-color, rgba, hsla, hsva")}function Fc(e,t){return!!Ne(e,t=Bs(t))||!!Ne(e,t=pc(t))}function Qc(e,t,r){let n;return n=Be(e,t,null),null!==n?n:(n=Be(e,t=pc(t),null),null!==n?n:r)}function Sc(e){if(function(e){let t=Fc(e,"r"),r=Fc(e,"g"),n=Fc(e,"b");return t&&r&&n}(e))return function(e){let t=[Qc(e,"r",null),Qc(e,"g",null),Qc(e,"b",null),Qc(e,"a",1)];return t=Dr(t,ja),Ec(t)}(e);if(function(e){let t=Fc(e,"h"),r=Fc(e,"s"),n=Fc(e,"l");return t&&r&&n}(e))return function(e){let t=[Qc(e,"h",null),Qc(e,"s",null),Qc(e,"l",null),Qc(e,"a",1)];return t=Dr(t,ja),Cc(t)}(e);if(function(e){let t=Fc(e,"h"),r=Fc(e,"s"),n=Fc(e,"v");return t&&r&&n}(e))return function(e){let t=[Qc(e,"h",null),Qc(e,"s",null),Qc(e,"v",null),Qc(e,"a",1)];return t=Dr(t,ja),xc(t)}(e);throw new Error("color object is not one of rgba, hsla, hsva")}function kc(e){let t,r,n=e.r,i=e.g,o=e.b,a=Math.max(n,i,o),s=Math.min(n,i,o),l=(a+s)/2;if(a===s)t=r=0;else{let e=a-s;switch(r=l>.5?e/(2-a-s):e/(a+s),a){case n:t=(i-o)/e+(i<o?6:0);break;case i:t=(o-n)/e+2;break;case o:t=(n-i)/e+4}t/=6}return{h:t,s:r,l:l,a:e.a}}function Nc(e){let t,r,n=e.r,i=e.g,o=e.b,a=Math.max(n,i,o),s=Math.min(n,i,o),l=a,c=a-s;if(r=0===a?0:c/a,a===s)t=0;else{switch(a){case n:t=(i-o)/c+(i<o?6:0);break;case i:t=(o-n)/c+2;break;case o:t=(n-i)/c+4}t/=6}return{h:t,s:r,v:l,a:e.a}}function qc(e){let t,r,n,i=e.h,o=e.s,a=e.l;function s(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(0===o)t=r=n=a;else{let e=a<.5?a*(1+o):a+o-a*o,l=2*a-e;t=s(l,e,i+1/3),r=s(l,e,i),n=s(l,e,i-1/3)}return{r:t,g:r,b:n,a:e.a}}function Mc(e){let t,r,n,i=e.h,o=e.s,a=e.v,s=Math.floor(6*i),l=6*i-s,c=a*(1-o),u=a*(1-l*o),f=a*(1-(1-l)*o);switch(s%6){case 0:t=a,r=f,n=c;break;case 1:t=u,r=a,n=c;break;case 2:t=c,r=a,n=f;break;case 3:t=c,r=u,n=a;break;case 4:t=f,r=c,n=a;break;case 5:t=a,r=c,n=u}return{r:t,g:r,b:n,a:e.a}}function Hc(e){let t=Math.round(255*e).toString(16);if(1===t.length)return`0${t}`;if(2===t.length)return t;throw new Error("invalid value")}function Lc(e,t=!0){let r=e.r,n=e.g,i=e.b,o=e.a,a=`${Hc(r)}${Hc(n)}${Hc(i)}`;return t&&(a=`${a}${Hc(o)}`),a}function Uc(e){return Math.min(1,Math.max(0,e))}function Rc(e,t){if(!Fe(t))throw new Error("fmtOutput is not a string");if(!Iu[t])throw console.log(`fmtOutput must be [${gt(Iu)}]`),new Error("invalid fmtOutput");return e=Iu[t](e)}function Oc(e,t,r="toRgbString"){if(t<0||t>1)throw new Error("amount < 0 or > 1");let n=kc(e);return n.h+=t,n.h=n.h%1,Rc(qc(n),r)}function Tc(e,t,r,n,i="toRgbString"){if(t<0||t>1)throw new Error("w1 < 0 or > 1");if(n<0||n>1)throw new Error("w1 < 0 or > 1");return Rc({r:e.r*t+r.r*n,g:e.g*t+r.g*n,b:e.b*t+r.b*n,a:e.a*t+r.a*n},i)}function Yc(e){return`${Zi(100*e,1)}%`}function jc(e){return Zi(e,0)}function Gc(e){return Zi(e,3)}function Jc(e){return{r:jc(255*e.r),g:jc(255*e.g),b:jc(255*e.b)}}function zc(e){return`rgb(${jc(255*e.r)}, ${jc(255*e.g)}, ${jc(255*e.b)})`}function Vc(e){return{r:jc(255*e.r),g:jc(255*e.g),b:jc(255*e.b),a:Gc(e.a)}}function Pc(e){return`rgba(${jc(255*e.r)}, ${jc(255*e.g)}, ${jc(255*e.b)}, ${Gc(e.a)})`}function Xc(e){let t=kc(e);return{h:jc(360*t.h),s:Gc(t.s),l:Gc(t.l)}}function _c(e){let t=kc(e);return`hsl(${jc(360*t.h)}, ${Gc(t.s)}, ${Gc(t.l)})`}function Wc(e){let t=kc(e);return{h:jc(360*t.h),s:Gc(t.s),l:Gc(t.l),a:Gc(t.a)}}function Kc(e){let t=kc(e);return`hsla(${jc(360*t.h)}, ${Gc(t.s)}, ${Gc(t.l)}, ${Gc(t.a)})`}function $c(e){let t=Nc(e);return{h:jc(360*t.h),s:Gc(t.s),v:Gc(t.v)}}function Zc(e){let t=Nc(e);return`hsv(${jc(360*t.h)}, ${Gc(t.s)}, ${Gc(t.v)})`}function eu(e){let t=Nc(e);return{h:jc(360*t.h),s:Gc(t.s),v:Gc(t.v),a:Gc(t.a)}}function tu(e){let t=Nc(e);return`hsva(${jc(360*t.h)}, ${Gc(t.s)}, ${Gc(t.v)}, ${Gc(t.a)})`}function ru(e){return{r:Yc(e.r),g:Yc(e.g),b:Yc(e.b)}}function nu(e){return`rgb(${Yc(e.r)}, ${Yc(e.g)}, ${Yc(e.b)})`}function iu(e){return{r:Yc(e.r),g:Yc(e.g),b:Yc(e.b),a:Gc(e.a)}}function ou(e){return`rgba(${Yc(e.r)}, ${Yc(e.g)}, ${Yc(e.b)}, ${Gc(e.a)})`}function au(e){let t=kc(e);return{h:jc(360*t.h),s:Yc(t.s),l:Yc(t.l)}}function su(e){let t=kc(e);return`hsl(${jc(360*t.h)}, ${Yc(t.s)}, ${Yc(t.l)})`}function lu(e){let t=kc(e);return{h:jc(360*t.h),s:Yc(t.s),l:Yc(t.l),a:Gc(t.a)}}function cu(e){let t=kc(e);return`hsla(${jc(360*t.h)}, ${Yc(t.s)}, ${Yc(t.l)}, ${Gc(t.a)})`}function uu(e){let t=Nc(e);return{h:jc(360*t.h),s:Yc(t.s),v:Yc(t.v)}}function fu(e){let t=Nc(e);return`hsv(${jc(360*t.h)}, ${Yc(t.s)}, ${Yc(t.v)})`}function du(e){let t=Nc(e);return{h:jc(360*t.h),s:Yc(t.s),v:Yc(t.v),a:Gc(t.a)}}function gu(e){let t=Nc(e);return`hsva(${jc(360*t.h)}, ${Yc(t.s)}, ${Yc(t.v)}, ${Gc(t.a)})`}function pu(e){let t=function(e){return Lc(e,!1)}(e);return`#${t}`}function hu(e){return`#${Lc(e)}`}function Au(e){let t=null,r=null,n=null;if(Fe(e))t=Bs(la(e));else{if(!Ce(e))throw console.log("color=",e),new Error("color is not a string or an object");r=e}if(null!==t)try{n=Dc(t)}catch(e){throw console.log(e),new Error(`can not parse color: ${t}`)}else if(null!==r)try{n=Sc(r)}catch(e){throw console.log(e),new Error(`can not parse color: ${JSON.stringify(r)}`)}return n}function mu(e){if(!Ce(e))return console.log("gradient is not an effective object"),e=>`rgb(${255*(e=Math.min(Math.max(e,0),1))},${255*e},${255*e})`;let t=[];return Cr(e,(e,r)=>{t.push([Hn(r),Vc(Au(e)),e])}),t=Ta(t,0),function(e){let r=null;for(let n=1;n<t.length;n++){let i=t[n-1][0],o=t[n-1][1],a=t[n][0],s=t[n][1];if(i<=e&&a>=e){let t=(a-e)/(a-i),n=(e-i)/(a-i);r=Tc(Au(o),t,Au(s),n,"toRgbaString");break}}return r}}let Iu={toRgb:Jc,toRgbString:zc,toRgba:Vc,toRgbaString:Pc,toHsl:Xc,toHslString:_c,toHsla:Wc,toHslaString:Kc,toHsv:$c,toHsvString:Zc,toHsva:eu,toHsvaString:tu,toRgbP:ru,toRgbPString:nu,toRgbaP:iu,toRgbaPString:ou,toHslP:au,toHslPString:su,toHslaP:lu,toHslaPString:cu,toHsvP:uu,toHsvPString:fu,toHsvaP:du,toHsvaPString:gu,toHexString:pu,toHex8String:hu};var yu={toRgb:e=>Jc(Au(e)),toRgbString:e=>zc(Au(e)),toRgba:e=>Vc(Au(e)),toRgbaString:e=>Pc(Au(e)),toHsl:e=>Xc(Au(e)),toHslString:e=>_c(Au(e)),toHsla:e=>Wc(Au(e)),toHslaString:e=>Kc(Au(e)),toHsv:e=>$c(Au(e)),toHsvString:e=>Zc(Au(e)),toHsva:e=>eu(Au(e)),toHsvaString:e=>tu(Au(e)),toRgbP:e=>ru(Au(e)),toRgbPString:e=>nu(Au(e)),toRgbaP:e=>iu(Au(e)),toRgbaPString:e=>ou(Au(e)),toHslP:e=>au(Au(e)),toHslPString:e=>su(Au(e)),toHslaP:e=>lu(Au(e)),toHslaPString:e=>cu(Au(e)),toHsvP:e=>uu(Au(e)),toHsvPString:e=>fu(Au(e)),toHsvaP:e=>du(Au(e)),toHsvaPString:e=>gu(Au(e)),toHexString:e=>pu(Au(e)),toHex8String:e=>hu(Au(e)),modSaturate:(e,t,r)=>function(e,t,r="toRgbString"){if(t<0||t>1)throw new Error("amount < 0 or > 1");let n=kc(e);return n.s+=t,n.s=Uc(n.s),Rc(qc(n),r)}(Au(e),t,r),modGrey:(e,t)=>function(e,t="toRgbString"){let r=kc(e);return r.s=0,Rc(qc(r),t)}(Au(e),t),modLighten:(e,t,r)=>function(e,t,r="toRgbString"){if(t<0||t>1)throw new Error("amount < 0 or > 1");let n=kc(e);return n.l+=t,n.l=Uc(n.l),Rc(qc(n),r)}(Au(e),t,r),modBrighten:(e,t,r)=>function(e,t,r="toRgbString"){if(t<0||t>1)throw new Error("amount < 0 or > 1");return e.r+=t,e.r=Uc(e.r),e.g+=t,e.g=Uc(e.g),e.b+=t,e.b=Uc(e.b),Rc(e,r)}(Au(e),t,r),modHue:(e,t,r)=>Oc(Au(e),t,r),modComplement:(e,t)=>function(e,t="toRgbString"){return Oc(e,.5,t)}(Au(e),t),spreadHue:(e,t,r)=>function(e,t,r="toRgbString"){if(!Ln(t))throw new Error("num is not an integer");if((t=eo(t))<=1)return[e];let n=kc(e),i=1/t,o=[];for(let e=0;e<t;e++)o.push(Rc(qc(n),r)),n.h+=i,n.h=n.h%1;return o}(Au(e),t,r),spreadMonochromatic:(e,t,r)=>function(e,t,r="toRgbString"){if(!Ln(t))throw new Error("num is not an integer");if((t=eo(t))<=1)return[e];let n=Nc(e);n.s=1,n.l=1;let i=1/t,o=[];for(let e=0;e<t;e++)o.push(Rc(Mc(n),r)),n.h-=i,n.l-=i;return o}(Au(e),t,r),mix:(e,t,r,n,i)=>Tc(Au(e),t,Au(r),n,i),getBrightness:e=>function(e){if(1!==e.a)throw new Error("alpha of color can not be equal to 1");return(299*e.r+587*e.g+114*e.b)/1e3}(Au(e)),getLuminance:e=>function(e){if(1!==e.a)throw new Error("alpha of color can not be equal to 1");let t,r,n,i=e.r,o=e.g,a=e.b;return t=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),r=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),n=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4),.2126*t+.7152*r+.0722*n}(Au(e)),interp:mu};function vu(e,t,r){return null==e?e:function(e,t,r,n){if(!R(e))return e;for(var i=-1,o=(t=ve(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var l=be(t[i]),c=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=a){var u=s[l];void 0===(c=n?n(u,l,s):void 0)&&(c=R(u)?u:Xe(t[i+1])?[]:{})}hi(s,l,c),s=s[l]}return e}(e,t,r)}function bu(e){return br(e)?void 0:e}var wu=wo(function(e,t){var r={};if(null==e)return r;var n=!1;t=he(t,function(t){return t=ve(t,e),n||(n=t.length>1),t}),Ai(e,xi(e),r),n&&(r=zi(r,7,bu));for(var i=t.length;i--;)Na(r,t[i]);return r}),Bu=wu;function Eu(e,t={}){let r="$level",n="$parents";if(!Or(e))return[];let i=Be(t,"bindKey",null);Fe(i)||(i="id");let o=Be(t,"bindParent",null);Fe(o)||(o="parentId");let a=Be(t,"bindChildren",null);Fe(a)||(a="children");let s=Be(t,"saveExtProps",null);hn(s)||(s=!1),e=function(e){let t=[];function a(a){let s=[];Cr(e,(e,l)=>{let c=Be(e,o),u=Be(a,i);if(c&&u&&c===u){let o=Be(a,n,[]);o=Vi(o),o.push(a[i]),t.push({[r]:a[r]+1,[n]:o,...e})}else s.push(e)}),e=s}if(e=Vi(e),function(){let i=[];Cr(e,(e,a)=>{Rr(e[o])?t.push({[r]:0,[n]:[],...e}):i.push(e)}),e=i}(),0===t.length)return t;let s=-1;for(;s+=1,!(s>t.length-1);){if(a(t[s]),0===e.length)break}return t}(e);let l=function(e){let t=[];function l(e){return s?e:Bu(e,[r,n])}let c={};return Cr(e,(n,s)=>{if(0===n[r]){let e=l(n);t.push(e),c[n[i]]=[s]}else{let r=function(t){for(let r=0;r<e.length;r++){let n=e[r];if(t[o]===n[i])return n}return null}(n);if(null!==r){let e=c[r[i]];e=[...e,a];let o=Be(t,e,[]),s=l(n);o.push(s),c[n[i]]=[...e,o.length-1],vu(t,e,o)}else console.log(`can not find parent for ${Be(n,o)}`)}}),t}(e);return l}function Cu(e,t=null,r={}){O(t)||(t=e=>e);let n=Be(r,"force",!1);return hn(n)||(n=!1),function(e,t,r=!1){let n=[];if(!xe(e)&&!Ee(e))return t(e,null,[]);function i(e){if(xe(e))return so(gn(e));if(Ee(e)){let t=Object.getOwnPropertyNames(e),n=null;return r&&(n=Object.getOwnPropertySymbols(e)),xe(t)||(t=[]),xe(n)||(n=[]),[...t,...n]}return e}return function e(r,o){if(xe(r))return i(r).map(i=>{let o=r[i],a=Vi(n);return n.push(i),o=t(o,i,a),o=e(o),n.pop(),o});if(Ee(r)){let o=i(r),a={};return o.map(i=>{let o=r[i],s=Vi(n);n.push(i),o=t(o,i,s),o=e(o),n.pop(),a[i]=o}),a}return r}(e)}(e,t,n)}function xu(e,t={}){if(!Ce(e)&&!Or(e))return[];let r=Be(t,"bindKey",null);Fe(r)||(r="id");let n=Be(t,"bindParent",null);Fe(n)||(n="parentId");let i=Be(t,"bindBelong",null);Fe(i)||(i="key");let o=Be(t,"bindText",null);Fe(o)||(o="text");let a=Be(t,"bindType",null);Fe(a)||(a="type");let s=Be(t,"bindNumOfChilren",null);function l(e,t){return e=Dr(e=Vi(e),e=>M(e)?ja(e):e),M(t)&&(t=ja(t)),(Fe(t)||ke(t))&&e.push(t),Do(e,"-")}Fe(s)||(s="numOfChilren");let c=[];return Cu(e,(e,t,u)=>{let f=l(u,t),d=l(u,null),g="node";Ee(e)?g="object":xe(e)&&(g="array");let p={[r]:f,[n]:d,[a]:g};if((Fe(t)||ya(t))&&(p[i]=t),Ee(e)||xe(e)||(p[o]=e),Ee(e)||xe(e)){let t=null;Ee(e)?t=gn(gt(e)):xe(e)&&(t=gn(e)),p[s]=t}return c.push(p),e},{force:!0}),c}function Du(e){if(!wr(e))return"invalid element";let t=!1;try{t=document.activeElement===e}catch(e){console.log(e)}return t}function Fu(e){return ke(e)?(e=Hn(e),Math.cos(e*Math.PI/180)):null}function Qu(e){return ke(e)?(e=Hn(e),Math.tan(e*Math.PI/180)):null}function Su(){let e=new function e(){if(!(this instanceof e))return new e;this.SheetNames=[],this.Sheets={}};return e}function ku(e){return ke(e)?(e=Hn(e),Math.sin(e*Math.PI/180)):null}function Nu(e){if(!Fe(e))return!1;let t="YYYY-MM-DD";return e===r(e,t).format(t)}function qu(e=300){return new function(e){let t=[],r=null,n=Date.now();return to(e)||(e=300),e=eo(e),function(i,...o){ba(i)?(n=Date.now(),t.push({func:i,input:o}),null===r&&(r=setInterval(()=>{if(0===gn(t))return clearInterval(r),void(r=null);if(Date.now()-n>e){let e=t.pop();t=[];try{e.func(...e.input)}catch(e){console.log("m.func catch",e)}}},10))):console.log("func is not a function")}}(e)}let Mu="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),Hu=Mu.length;function Lu(e=32){let t=[];e=to(e)?eo(e):32;for(let r=0;r<e;r++)t[r]=Mu[0|Math.random()*Hu];return t.join("")}function Uu(e,t={}){if(!wr(e))return;let r=Be(t,"duration",500);r=Hn(r),r<0&&(r=1e3);let n=Be(t,"delay",0);n=Hn(n),n<0&&(n=0);let i=Be(t,"opacityIni",0);i=Hn(i),i=Math.min(Math.max(i,0),1),ke(e.style.opacity)&&(i=Hn(e.style.opacity));let o=10/r,a=`tag-${Lu()}`;e.setAttribute("dom-fade-tag",a),setTimeout(()=>{let t=setInterval(()=>{try{e.getAttribute("dom-fade-tag")!==a&&clearInterval(t),e.style.opacity=i,i>=1&&(clearInterval(t),e.removeAttribute("dom-fade-tag")),i+=o,i>1&&(i=1)}catch(e){console.log(e),clearInterval(t)}},10)},n)}function Ru(e,t={}){if(!wr(e))return;let r=Be(t,"duration",500);r=Hn(r),r<0&&(r=1e3);let n=Be(t,"delay",0);n=Hn(n),n<0&&(n=0);let i=Be(t,"opacityIni",1);i=Hn(i),i=Math.min(Math.max(i,0),1),ke(e.style.opacity)&&(i=Hn(e.style.opacity));let o=10/r,a=`tag-${Lu()}`;e.setAttribute("dom-fade-tag",a),setTimeout(()=>{let t=setInterval(()=>{try{e.getAttribute("dom-fade-tag")!==a&&clearInterval(t),e.style.opacity=i,i<=0&&(clearInterval(t),e.removeAttribute("dom-fade-tag")),i-=o,i<0&&(i=0)}catch(e){console.log(e),clearInterval(t)}},10)},n)}let Ou='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 512.001 512.001" style="width:12px; height:12px; enable-background:new 0 0 512.001 512.001;" xml:space="preserve"><g><g><path d="M284.286,256.002L506.143,34.144c7.811-7.811,7.811-20.475,0-28.285c-7.811-7.81-20.475-7.811-28.285,0L256,227.717L34.143,5.859c-7.811-7.811-20.475-7.811-28.285,0c-7.81,7.811-7.811,20.475,0,28.285l221.857,221.857L5.858,477.859c-7.811,7.811-7.811,20.475,0,28.285c3.905,3.905,9.024,5.857,14.143,5.857c5.119,0,10.237-1.952,14.143-5.857L256,284.287l221.857,221.857c3.905,3.905,9.024,5.857,14.143,5.857s10.237-1.952,14.143-5.857c7.811-7.811,7.811-20.475,0-28.285L284.286,256.002z"/></g></g></svg>',Tu={success:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 426.667 426.667" style="width:24px; height:24px; enable-background:new 0 0 426.667 426.667" xml:space="preserve"><path style="fill:#6ac259" d="M213.333,0C95.518,0,0,95.514,0,213.333s95.518,213.333,213.333,213.333 c117.828,0,213.333-95.514,213.333-213.333S331.157,0,213.333,0z M174.199,322.918l-93.935-93.931l31.309-31.309l62.626,62.622 l140.894-140.898l31.309,31.309L174.199,322.918z"/></svg>',error:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 496.158 496.158" style="width:24px; height:24px; enable-background:new 0 0 496.158 496.158" xml:space="preserve"><path style="fill:#e04f5f" d="M496.158,248.085c0-137.021-111.07-248.082-248.076-248.082C111.07,0.003,0,111.063,0,248.085 c0,137.002,111.07,248.07,248.082,248.07C385.088,496.155,496.158,385.087,496.158,248.085z"/><path style="fill:#fff" d="M277.042,248.082l72.528-84.196c7.91-9.182,6.876-23.041-2.31-30.951 c-9.172-7.904-23.032-6.876-30.947,2.306l-68.236,79.212l-68.229-79.212c-7.91-9.188-21.771-10.216-30.954-2.306 c-9.186,7.91-10.214,21.77-2.304,30.951l72.522,84.196l-72.522,84.192c-7.91,9.182-6.882,23.041,2.304,30.951 c4.143,3.569,9.241,5.318,14.316,5.318c6.161,0,12.294-2.586,16.638-7.624l68.229-79.212l68.236,79.212 c4.338,5.041,10.47,7.624,16.637,7.624c5.069,0,10.168-1.749,14.311-5.318c9.186-7.91,10.22-21.77,2.31-30.951L277.042,248.082z"/></svg>',warning:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 497.472 497.472" style="width:24px; height:24px; enable-background:new 0 0 497.472 497.472" xml:space="preserve"><g transform="matrix(1.25 0 0 -1.25 0 45)"><path style="fill:#ffcc4d" d="M24.374-357.857c-20.958,0-30.197,15.223-20.548,33.826L181.421,17.928 c9.648,18.603,25.463,18.603,35.123,0L394.14-324.031c9.671-18.603,0.421-33.826-20.548-33.826H24.374z"/><path style="fill:#231f20" d="M173.605-80.922c0,14.814,10.934,23.984,25.395,23.984c14.12,0,25.407-9.512,25.407-23.984 V-216.75c0-14.461-11.287-23.984-25.407-23.984c-14.461,0-25.395,9.182-25.395,23.984V-80.922z M171.489-289.056 c0,15.167,12.345,27.511,27.511,27.511c15.167,0,27.523-12.345,27.523-27.511c0-15.178-12.356-27.523-27.523-27.523 C183.834-316.579,171.489-304.234,171.489-289.056"/></g></svg>',infor:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 496.16 496.16" style="width:24px; height:24px; enable-background:new 0 0 496.158 496.158;" xml:space="preserve"><path d="m496.16 248.08c0-137.02-111.07-248.08-248.08-248.08-137.01 0-248.08 111.06-248.08 248.08 0 137 111.07 248.07 248.08 248.07 137.01 0 248.08-111.07 248.08-248.07z" fill="#25B7D3"/><g fill="#fff"><path d="m315.25 359.56c-1.387-2.032-4.048-2.755-6.27-1.702-24.582 11.637-52.482 23.94-57.958 25.015-0.138-0.123-0.357-0.348-0.644-0.737-0.742-1.005-1.103-2.318-1.103-4.015 0-13.905 10.495-56.205 31.192-125.72 17.451-58.406 19.469-70.499 19.469-74.514 0-6.198-2.373-11.435-6.865-15.146-4.267-3.519-10.229-5.302-17.719-5.302-12.459 0-26.899 4.73-44.146 14.461-16.713 9.433-35.352 25.41-55.396 47.487-1.569 1.729-1.733 4.314-0.395 6.228 1.34 1.915 3.825 2.644 5.986 1.764 7.037-2.872 42.402-17.359 47.557-20.597 4.221-2.646 7.875-3.989 10.861-3.989 0.107 0 0.199 4e-3 0.276 0.01 0.036 0.198 0.07 0.5 0.07 0.933 0 3.047-0.627 6.654-1.856 10.703-30.136 97.641-44.785 157.5-44.785 182.99 0 8.998 2.501 16.242 7.432 21.528 5.025 5.393 11.803 8.127 20.146 8.127 8.891 0 19.712-3.714 33.08-11.354 12.936-7.392 32.68-23.653 60.363-49.717 1.793-1.687 2.092-4.426 0.705-6.458z"/><path d="m314.28 76.672c-4.925-5.041-11.227-7.597-18.729-7.597-9.34 0-17.475 3.691-24.176 10.971-6.594 7.16-9.938 15.946-9.938 26.113 0 8.033 2.463 14.69 7.32 19.785 4.922 5.172 11.139 7.794 18.476 7.794 8.958 0 17.049-3.898 24.047-11.586 6.876-7.553 10.363-16.433 10.363-26.393 1e-3 -7.654-2.476-14.075-7.363-19.087z"/></g></svg>',cancel:Ou},Yu={},ju=null,Gu=vn();function Ju(){Cr(["top-right","top-left","bottom-right","bottom-left"],e=>{!function(e){let t=ha(Yu,{position:e});t=Ta(t,"timeStart");let r=16;Cr(t,e=>{Yu[e.id].ele||(Yu[e.id].ele=document.querySelector(`#${e.id}`)),Yu[e.id].loc.top=r,Yu[e.id].loc.height=Yu[e.id].ele.offsetHeight,r+=Yu[e.id].loc.height+16}),Cr(t,t=>{e.indexOf("bottom-")>=0?(Yu[t.id].ele.style.bottom=`${Yu[t.id].loc.top}px`,Yu[t.id].loc.bottom=Yu[t.id].loc.top):Yu[t.id].ele.style.top=`${Yu[t.id].loc.top}px`,e.indexOf("-left")>=0?(Yu[t.id].ele.style.left="16px",Yu[t.id].loc.left=16):(Yu[t.id].ele.style.right="16px",Yu[t.id].loc.right=16),Yu[t.id].ele.style.zIndex=2e5,Yu[t.id].ele.style.opacity=1,Yu[t.id].ele.style.transform="",Yu[t.id].ele.style.transform=null})}(e)})}function zu(e){Yu[e].ele&&Yu[e].ele.parentNode.removeChild(Yu[e].ele),Yu[e]&&delete Yu[e],Ju()}function Vu(e,t){if(!wr(e))return"invalid eleParent";if(De(t))e.insertAdjacentHTML("beforeend",t);else{if(!wr(t))return"invalid itemChild";e.appendChild(t)}}function Pu(){return null!==navigator.userAgent.toLowerCase().match(/rv:([\d.]+)\) like gecko/)}function Xu(e){if(!e)return"invalid event";if(!e.cancelable)return"event is not cancelable";try{Pu()?e.cancelBubble=!0:e.stopPropagation(),e.preventDefault()}catch(e){}}var _u;Gu.ttWAlertCancel=function(e){zu(e)},Gu.ttWAlertFadeIn=function(e){Uu(document.querySelector(`#${e}`))},Gu.ttWAlertFadeOut=function(e){Ru(document.querySelector(`#${e}`))},function(e){e.INSERT="insert",e.DELETE="delete",e.CONTEXT="context"}(_u||(_u={}));var Wu;!function(e){e.AUTO="auto",e.DARK="dark",e.LIGHT="light"}(Wu||(Wu={}));const Ku=RegExp("["+["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"].join("\\")+"]","g");function $u(e){return e?e.replace(/\\/g,"/"):e}function Zu(e){const t=e.length;let r=-1/0;for(let n=0;n<t;n++)r=Math.max(r,e[n]);return r}function ef(e,t){const r=e.split(".");return r.length>1?r[r.length-1]:t}function tf(e,t){return t.reduce((t,r)=>t||e.startsWith(r),!1)}const rf=["a/","b/","i/","w/","c/","o/"];function nf(e,t,r){const n=void 0!==r?[...rf,r]:rf,i=t?new RegExp(`^${o=t,o.replace(Ku,"\\$&")} "?(.+?)"?$`):new RegExp('^"?(.+?)"?$');var o;const[,a=""]=i.exec(e)||[],s=n.find(e=>0===a.indexOf(e));return(s?a.slice(s.length):a).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function of(e,t={}){const r=[];let n=null,i=null,o=null,a=null,s=null,l=null,c=null;const u="--- ",f="+++ ",d="@@",g=/^old mode (\d{6})/,p=/^new mode (\d{6})/,h=/^deleted file mode (\d{6})/,A=/^new file mode (\d{6})/,m=/^copy from "?(.+)"?/,I=/^copy to "?(.+)"?/,y=/^rename from "?(.+)"?/,v=/^rename to "?(.+)"?/,b=/^similarity index (\d+)%/,w=/^dissimilarity index (\d+)%/,B=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,E=/^Binary files (.*) and (.*) differ/,C=/^GIT binary patch/,x=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,D=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,F=/^new file mode (\d{6})/,Q=/^deleted file mode (\d{6}),(\d{6})/,S=e.replace(/\/g,"").replace(/\r\n?/g,"\n").split("\n");function k(){null!==i&&null!==n&&(n.blocks.push(i),i=null)}function N(){null!==n&&(n.oldName||null===l||(n.oldName=l),n.newName||null===c||(n.newName=c),n.newName&&(r.push(n),n=null)),l=null,c=null}function q(){k(),N(),n={blocks:[],deletedLines:0,addedLines:0}}function M(e){let t;k(),null!==n&&((t=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(e))?(n.isCombined=!1,o=parseInt(t[1],10),s=parseInt(t[2],10)):(t=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(e))?(n.isCombined=!0,o=parseInt(t[1],10),a=parseInt(t[2],10),s=parseInt(t[3],10)):(e.startsWith(d)&&console.error("Failed to parse lines, starting in 0!"),o=0,s=0,n.isCombined=!1)),i={lines:[],oldStartLine:o,oldStartLine2:a,newStartLine:s,header:e}}return S.forEach((e,a)=>{if(!e||e.startsWith("*"))return;let k;const N=S[a-1],H=S[a+1],L=S[a+2];if(e.startsWith("diff --git")||e.startsWith("diff --combined")){q();if((k=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(e))&&(l=nf(k[1],void 0,t.dstPrefix),c=nf(k[2],void 0,t.srcPrefix)),null===n)throw new Error("Where is my file !!!");return void(n.isGitDiff=!0)}if(e.startsWith("Binary files")&&!(null==n?void 0:n.isGitDiff)){q();if((k=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(e))&&(l=nf(k[1],void 0,t.dstPrefix),c=nf(k[2],void 0,t.srcPrefix)),null===n)throw new Error("Where is my file !!!");return void(n.isBinary=!0)}if((!n||!n.isGitDiff&&n&&e.startsWith(u)&&H.startsWith(f)&&L.startsWith(d))&&q(),null==n?void 0:n.isTooBig)return;if(n&&("number"==typeof t.diffMaxChanges&&n.addedLines+n.deletedLines>t.diffMaxChanges||"number"==typeof t.diffMaxLineLength&&e.length>t.diffMaxLineLength)){n.isTooBig=!0,n.addedLines=0,n.deletedLines=0,n.blocks=[],i=null;return void M("function"==typeof t.diffTooBigMessage?t.diffTooBigMessage(r.length):"Diff too big to be displayed")}if(e.startsWith(u)&&H.startsWith(f)||e.startsWith(f)&&N.startsWith(u)){if(n&&!n.oldName&&e.startsWith("--- ")&&(k=function(e,t){return nf(e,"---",t)}(e,t.srcPrefix)))return n.oldName=k,void(n.language=ef(n.oldName,n.language));if(n&&!n.newName&&e.startsWith("+++ ")&&(k=function(e,t){return nf(e,"+++",t)}(e,t.dstPrefix)))return n.newName=k,void(n.language=ef(n.newName,n.language))}if(n&&(e.startsWith(d)||n.isGitDiff&&n.oldName&&n.newName&&!i))return void M(e);if(i&&(e.startsWith("+")||e.startsWith("-")||e.startsWith(" ")))return void function(e){if(null===n||null===i||null===o||null===s)return;const t={content:e},r=n.isCombined?["+ "," +","++"]:["+"],a=n.isCombined?["- "," -","--"]:["-"];tf(e,r)?(n.addedLines++,t.type=_u.INSERT,t.oldNumber=void 0,t.newNumber=s++):tf(e,a)?(n.deletedLines++,t.type=_u.DELETE,t.oldNumber=o++,t.newNumber=void 0):(t.type=_u.CONTEXT,t.oldNumber=o++,t.newNumber=s++),i.lines.push(t)}(e);const U=!function(e,t){let r=t;for(;r<S.length-3;){if(e.startsWith("diff"))return!1;if(S[r].startsWith(u)&&S[r+1].startsWith(f)&&S[r+2].startsWith(d))return!0;r++}return!1}(e,a);if(null===n)throw new Error("Where is my file !!!");(k=g.exec(e))?n.oldMode=k[1]:(k=p.exec(e))?n.newMode=k[1]:(k=h.exec(e))?(n.deletedFileMode=k[1],n.isDeleted=!0):(k=A.exec(e))?(n.newFileMode=k[1],n.isNew=!0):(k=m.exec(e))?(U&&(n.oldName=k[1]),n.isCopy=!0):(k=I.exec(e))?(U&&(n.newName=k[1]),n.isCopy=!0):(k=y.exec(e))?(U&&(n.oldName=k[1]),n.isRename=!0):(k=v.exec(e))?(U&&(n.newName=k[1]),n.isRename=!0):(k=E.exec(e))?(n.isBinary=!0,n.oldName=nf(k[1],void 0,t.srcPrefix),n.newName=nf(k[2],void 0,t.dstPrefix),M("Binary file")):C.test(e)?(n.isBinary=!0,M(e)):(k=b.exec(e))?n.unchangedPercentage=parseInt(k[1],10):(k=w.exec(e))?n.changedPercentage=parseInt(k[1],10):(k=B.exec(e))?(n.checksumBefore=k[1],n.checksumAfter=k[2],k[3]&&(n.mode=k[3])):(k=x.exec(e))?(n.checksumBefore=[k[2],k[3]],n.checksumAfter=k[1]):(k=D.exec(e))?(n.oldMode=[k[2],k[3]],n.newMode=k[1]):(k=F.exec(e))?(n.newFileMode=k[1],n.isNew=!0):(k=Q.exec(e))&&(n.deletedFileMode=k[1],n.isDeleted=!0)}),k(),N(),r}class af{diff(e,t,r={}){let n;"function"==typeof r?(n=r,r={}):"callback"in r&&(n=r.callback);const i=this.castInput(e,r),o=this.castInput(t,r),a=this.removeEmpty(this.tokenize(i,r)),s=this.removeEmpty(this.tokenize(o,r));return this.diffWithOptionsObj(a,s,r,n)}diffWithOptionsObj(e,t,r,n){var i;const o=e=>(e=this.postProcess(e,r),n?void setTimeout(function(){n(e)},0):e),a=t.length,s=e.length;let l=1,c=a+s;null!=r.maxEditLength&&(c=Math.min(c,r.maxEditLength));const u=null!==(i=r.timeout)&&void 0!==i?i:1/0,f=Date.now()+u,d=[{oldPos:-1,lastComponent:void 0}];let g=this.extractCommon(d[0],t,e,0,r);if(d[0].oldPos+1>=s&&g+1>=a)return o(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,h=1/0;const A=()=>{for(let n=Math.max(p,-l);n<=Math.min(h,l);n+=2){let i;const l=d[n-1],c=d[n+1];l&&(d[n-1]=void 0);let u=!1;if(c){const e=c.oldPos-n;u=c&&0<=e&&e<a}const f=l&&l.oldPos+1<s;if(u||f){if(i=!f||u&&l.oldPos<c.oldPos?this.addToPath(c,!0,!1,0,r):this.addToPath(l,!1,!0,1,r),g=this.extractCommon(i,t,e,n,r),i.oldPos+1>=s&&g+1>=a)return o(this.buildValues(i.lastComponent,t,e))||!0;d[n]=i,i.oldPos+1>=s&&(h=Math.min(h,n-1)),g+1>=a&&(p=Math.max(p,n+1))}else d[n]=void 0}l++};if(n)!function e(){setTimeout(function(){if(l>c||Date.now()>f)return n(void 0);A()||e()},0)}();else for(;l<=c&&Date.now()<=f;){const e=A();if(e)return e}}addToPath(e,t,r,n,i){const o=e.lastComponent;return o&&!i.oneChangePerToken&&o.added===t&&o.removed===r?{oldPos:e.oldPos+n,lastComponent:{count:o.count+1,added:t,removed:r,previousComponent:o.previousComponent}}:{oldPos:e.oldPos+n,lastComponent:{count:1,added:t,removed:r,previousComponent:o}}}extractCommon(e,t,r,n,i){const o=t.length,a=r.length;let s=e.oldPos,l=s-n,c=0;for(;l+1<o&&s+1<a&&this.equals(r[s+1],t[l+1],i);)l++,s++,c++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return c&&!i.oneChangePerToken&&(e.lastComponent={count:c,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,l}equals(e,t,r){return r.comparator?r.comparator(e,t):e===t||!!r.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){const t=[];for(let r=0;r<e.length;r++)e[r]&&t.push(e[r]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,r){const n=[];let i;for(;e;)n.push(e),i=e.previousComponent,delete e.previousComponent,e=i;n.reverse();const o=n.length;let a=0,s=0,l=0;for(;a<o;a++){const e=n[a];if(e.removed)e.value=this.join(r.slice(l,l+e.count)),l+=e.count;else{if(!e.added&&this.useLongestToken){let n=t.slice(s,s+e.count);n=n.map(function(e,t){const n=r[l+t];return n.length>e.length?n:e}),e.value=this.join(n)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(l+=e.count)}}return n}}const sf=new class extends af{};const lf="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}";const cf=new class extends af{tokenize(e){const t=new RegExp(`(\\r?\\n)|[${lf}]+|[^\\S\\n\\r]+|[^${lf}]`,"ug");return e.match(t)||[]}};function uf(e){return(t,r)=>{const n=e(t).trim(),i=e(r).trim();return function(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;const r=[];let n,i;for(n=0;n<=t.length;n++)r[n]=[n];for(i=0;i<=e.length;i++)r[0][i]=i;for(n=1;n<=t.length;n++)for(i=1;i<=e.length;i++)t.charAt(n-1)===e.charAt(i-1)?r[n][i]=r[n-1][i-1]:r[n][i]=Math.min(r[n-1][i-1]+1,Math.min(r[n][i-1]+1,r[n-1][i]+1));return r[t.length][e.length]}(n,i)/(n.length+i.length)}}function ff(e){return function t(r,n,i=0,o=new Map){const a=function(t,r,n=new Map){let i,o=1/0;for(let a=0;a<t.length;++a)for(let s=0;s<r.length;++s){const l=JSON.stringify([t[a],r[s]]);let c;n.has(l)&&(c=n.get(l))||(c=e(t[a],r[s]),n.set(l,c)),c<o&&(o=c,i={indexA:a,indexB:s,score:o})}return i}(r,n,o);if(!a||r.length+n.length<3)return[[r,n]];const s=r.slice(0,a.indexA),l=n.slice(0,a.indexB),c=[r[a.indexA]],u=[n[a.indexB]],f=a.indexA+1,d=a.indexB+1,g=r.slice(f),p=n.slice(d),h=t(s,l,i+1,o),A=t(c,u,i+1,o),m=t(g,p,i+1,o);let I=A;return(a.indexA>0||a.indexB>0)&&(I=h.concat(I)),(r.length>f||n.length>d)&&(I=I.concat(m)),I}}const df={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},gf={matching:"none",matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:"word",colorScheme:Wu.LIGHT},pf="/",hf=uf(e=>e.value),Af=ff(hf);function mf(e){return-1!==e.indexOf("dev/null")}function If(e){return e.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function yf(e){switch(e){case _u.CONTEXT:return df.CONTEXT;case _u.INSERT:return df.INSERTS;case _u.DELETE:return df.DELETES}}function vf(e){switch(e){case Wu.DARK:return"d2h-dark-color-scheme";case Wu.AUTO:return"d2h-auto-color-scheme";case Wu.LIGHT:default:return"d2h-light-color-scheme"}}function bf(e){return e.slice(0).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}function wf(e,t,r=!0){const n=function(e){return e?2:1}(t);return{prefix:e.substring(0,n),content:r?bf(e.substring(n)):e.substring(n)}}function Bf(e){const t=$u(e.oldName),r=$u(e.newName);if(t===r||mf(t)||mf(r))return mf(r)?t:r;{const e=[],n=[],i=t.split(pf),o=r.split(pf);let a=0,s=i.length-1,l=o.length-1;for(;a<s&&a<l&&i[a]===o[a];)e.push(o[a]),a+=1;for(;s>a&&l>a&&i[s]===o[l];)n.unshift(o[l]),s-=1,l-=1;const c=e.join(pf),u=n.join(pf),f=i.slice(a,s+1).join(pf),d=o.slice(a,l+1).join(pf);return c.length&&u.length?c+pf+"{"+f+" → "+d+"}"+pf+u:c.length?c+pf+"{"+f+" → "+d+"}":u.length?"{"+f+" → "+d+"}"+pf+u:t+" → "+r}}function Ef(e){return`d2h-${function(e){let t,r,n,i=0;for(t=0,n=e.length;t<n;t++)r=e.charCodeAt(t),i=(i<<5)-i+r,i|=0;return i}(Bf(e)).toString().slice(-6)}`}function Cf(e){let t="file-changed";return e.isRename||e.isCopy?t="file-renamed":e.isNew?t="file-added":e.isDeleted?t="file-deleted":e.newName!==e.oldName&&(t="file-renamed"),t}function xf(e,t,r,n={}){const{matching:i,maxLineLengthHighlight:o,matchWordsThreshold:a,diffStyle:s}=Object.assign(Object.assign({},gf),n),l=wf(e,r,!1),c=wf(t,r,!1);if(l.content.length>o||c.content.length>o)return{oldLine:{prefix:l.prefix,content:bf(l.content)},newLine:{prefix:c.prefix,content:bf(c.content)}};const u="char"===s?(f=l.content,d=c.content,sf.diff(f,d,g)):function(e,t,r){return cf.diff(e,t,r)}(l.content,c.content);var f,d,g;const p=[];if("word"===s&&"words"===i){const e=u.filter(e=>e.removed),t=u.filter(e=>e.added);Af(t,e).forEach(e=>{if(1===e[0].length&&1===e[1].length){hf(e[0][0],e[1][0])<a&&(p.push(e[0][0]),p.push(e[1][0]))}})}const h=u.reduce((e,t)=>{const r=t.added?"ins":t.removed?"del":null,n=p.indexOf(t)>-1?' class="d2h-change"':"",i=bf(t.value);return null!==r?`${e}<${r}${n}>${i}</${r}>`:`${e}${i}`},"");return{oldLine:{prefix:l.prefix,content:(A=h,A.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,""))},newLine:{prefix:c.prefix,content:If(h)}};var A}const Df="file-summary",Ff={colorScheme:gf.colorScheme};class Qf{constructor(e,t={}){this.hoganUtils=e,this.config=Object.assign(Object.assign({},Ff),t)}render(e){const t=e.map(e=>this.hoganUtils.render(Df,"line",{fileHtmlId:Ef(e),oldName:e.oldName,newName:e.newName,fileName:Bf(e),deletedLines:"-"+e.deletedLines,addedLines:"+"+e.addedLines},{fileIcon:this.hoganUtils.template("icon",Cf(e))})).join("\n");return this.hoganUtils.render(Df,"wrapper",{colorScheme:vf(this.config.colorScheme),filesNumber:e.length,files:t})}}const Sf=Object.assign(Object.assign({},gf),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),kf="generic",Nf="line-by-line";class qf{constructor(e,t={}){this.hoganUtils=e,this.config=Object.assign(Object.assign({},Sf),t)}render(e){const t=e.map(e=>{let t;return t=e.blocks.length?this.generateFileHtml(e):this.generateEmptyDiff(),this.makeFileDiffHtml(e,t)}).join("\n");return this.hoganUtils.render(kf,"wrapper",{colorScheme:vf(this.config.colorScheme),content:t})}makeFileDiffHtml(e,t){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";const r=this.hoganUtils.template(Nf,"file-diff"),n=this.hoganUtils.template(kf,"file-path"),i=this.hoganUtils.template("icon","file"),o=this.hoganUtils.template("tag",Cf(e));return r.render({file:e,fileHtmlId:Ef(e),diffs:t,filePath:n.render({fileDiffName:Bf(e)},{fileIcon:i,fileTag:o})})}generateEmptyDiff(){return this.hoganUtils.render(kf,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:df})}generateFileHtml(e){const t=ff(uf(t=>wf(t.content,e.isCombined).content));return e.blocks.map(r=>{let n=this.hoganUtils.render(kf,"block-header",{CSSLineClass:df,blockHeader:e.isTooBig?r.header:bf(r.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return this.applyLineGroupping(r).forEach(([r,i,o])=>{if(i.length&&o.length&&!r.length)this.applyRematchMatching(i,o,t).map(([t,r])=>{const{left:i,right:o}=this.processChangedLines(e,e.isCombined,t,r);n+=i,n+=o});else if(r.length)r.forEach(t=>{const{prefix:r,content:i}=wf(t.content,e.isCombined);n+=this.generateSingleLineHtml(e,{type:df.CONTEXT,prefix:r,content:i,oldNumber:t.oldNumber,newNumber:t.newNumber})});else if(i.length||o.length){const{left:t,right:r}=this.processChangedLines(e,e.isCombined,i,o);n+=t,n+=r}else console.error("Unknown state reached while processing groups of lines",r,i,o)}),n}).join("\n")}applyLineGroupping(e){const t=[];let r=[],n=[];for(let i=0;i<e.lines.length;i++){const o=e.lines[i];(o.type!==_u.INSERT&&n.length||o.type===_u.CONTEXT&&r.length>0)&&(t.push([[],r,n]),r=[],n=[]),o.type===_u.CONTEXT?t.push([[o],[],[]]):o.type===_u.INSERT&&0===r.length?t.push([[],[],[o]]):o.type===_u.INSERT&&r.length>0?n.push(o):o.type===_u.DELETE&&r.push(o)}return(r.length||n.length)&&(t.push([[],r,n]),r=[],n=[]),t}applyRematchMatching(e,t,r){const n=e.length*t.length,i=Zu(e.concat(t).map(e=>e.content.length));return n<this.config.matchingMaxComparisons&&i<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?r(e,t):[[e,t]]}processChangedLines(e,t,r,n){const i={right:"",left:""},o=Math.max(r.length,n.length);for(let a=0;a<o;a++){const o=r[a],s=n[a],l=void 0!==o&&void 0!==s?xf(o.content,s.content,t,this.config):void 0,c=void 0!==o&&void 0!==o.oldNumber?Object.assign(Object.assign({},void 0!==l?{prefix:l.oldLine.prefix,content:l.oldLine.content,type:df.DELETE_CHANGES}:Object.assign(Object.assign({},wf(o.content,t)),{type:yf(o.type)})),{oldNumber:o.oldNumber,newNumber:o.newNumber}):void 0,u=void 0!==s&&void 0!==s.newNumber?Object.assign(Object.assign({},void 0!==l?{prefix:l.newLine.prefix,content:l.newLine.content,type:df.INSERT_CHANGES}:Object.assign(Object.assign({},wf(s.content,t)),{type:yf(s.type)})),{oldNumber:s.oldNumber,newNumber:s.newNumber}):void 0,{left:f,right:d}=this.generateLineHtml(e,c,u);i.left+=f,i.right+=d}return i}generateLineHtml(e,t,r){return{left:this.generateSingleLineHtml(e,t),right:this.generateSingleLineHtml(e,r)}}generateSingleLineHtml(e,t){if(void 0===t)return"";const r=this.hoganUtils.render(Nf,"numbers",{oldNumber:t.oldNumber||"",newNumber:t.newNumber||""});return this.hoganUtils.render(kf,"line",{type:t.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:" "===t.prefix?"&nbsp;":t.prefix,content:t.content,lineNumber:r,line:t,file:e})}}const Mf=Object.assign(Object.assign({},gf),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Hf="generic";class Lf{constructor(e,t={}){this.hoganUtils=e,this.config=Object.assign(Object.assign({},Mf),t)}render(e){const t=e.map(e=>{let t;return t=e.blocks.length?this.generateFileHtml(e):this.generateEmptyDiff(),this.makeFileDiffHtml(e,t)}).join("\n");return this.hoganUtils.render(Hf,"wrapper",{colorScheme:vf(this.config.colorScheme),content:t})}makeFileDiffHtml(e,t){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";const r=this.hoganUtils.template("side-by-side","file-diff"),n=this.hoganUtils.template(Hf,"file-path"),i=this.hoganUtils.template("icon","file"),o=this.hoganUtils.template("tag",Cf(e));return r.render({file:e,fileHtmlId:Ef(e),diffs:t,filePath:n.render({fileDiffName:Bf(e)},{fileIcon:i,fileTag:o})})}generateEmptyDiff(){return{right:"",left:this.hoganUtils.render(Hf,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:df})}}generateFileHtml(e){const t=ff(uf(t=>wf(t.content,e.isCombined).content));return e.blocks.map(r=>{const n={left:this.makeHeaderHtml(r.header,e),right:this.makeHeaderHtml("")};return this.applyLineGroupping(r).forEach(([r,i,o])=>{if(i.length&&o.length&&!r.length)this.applyRematchMatching(i,o,t).map(([t,r])=>{const{left:i,right:o}=this.processChangedLines(e.isCombined,t,r);n.left+=i,n.right+=o});else if(r.length)r.forEach(t=>{const{prefix:r,content:i}=wf(t.content,e.isCombined),{left:o,right:a}=this.generateLineHtml({type:df.CONTEXT,prefix:r,content:i,number:t.oldNumber},{type:df.CONTEXT,prefix:r,content:i,number:t.newNumber});n.left+=o,n.right+=a});else if(i.length||o.length){const{left:t,right:r}=this.processChangedLines(e.isCombined,i,o);n.left+=t,n.right+=r}else console.error("Unknown state reached while processing groups of lines",r,i,o)}),n}).reduce((e,t)=>({left:e.left+t.left,right:e.right+t.right}),{left:"",right:""})}applyLineGroupping(e){const t=[];let r=[],n=[];for(let i=0;i<e.lines.length;i++){const o=e.lines[i];(o.type!==_u.INSERT&&n.length||o.type===_u.CONTEXT&&r.length>0)&&(t.push([[],r,n]),r=[],n=[]),o.type===_u.CONTEXT?t.push([[o],[],[]]):o.type===_u.INSERT&&0===r.length?t.push([[],[],[o]]):o.type===_u.INSERT&&r.length>0?n.push(o):o.type===_u.DELETE&&r.push(o)}return(r.length||n.length)&&(t.push([[],r,n]),r=[],n=[]),t}applyRematchMatching(e,t,r){const n=e.length*t.length,i=Zu(e.concat(t).map(e=>e.content.length));return n<this.config.matchingMaxComparisons&&i<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?r(e,t):[[e,t]]}makeHeaderHtml(e,t){return this.hoganUtils.render(Hf,"block-header",{CSSLineClass:df,blockHeader:(null==t?void 0:t.isTooBig)?e:bf(e),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})}processChangedLines(e,t,r){const n={right:"",left:""},i=Math.max(t.length,r.length);for(let o=0;o<i;o++){const i=t[o],a=r[o],s=void 0!==i&&void 0!==a?xf(i.content,a.content,e,this.config):void 0,l=void 0!==i&&void 0!==i.oldNumber?Object.assign(Object.assign({},void 0!==s?{prefix:s.oldLine.prefix,content:s.oldLine.content,type:df.DELETE_CHANGES}:Object.assign(Object.assign({},wf(i.content,e)),{type:yf(i.type)})),{number:i.oldNumber}):void 0,c=void 0!==a&&void 0!==a.newNumber?Object.assign(Object.assign({},void 0!==s?{prefix:s.newLine.prefix,content:s.newLine.content,type:df.INSERT_CHANGES}:Object.assign(Object.assign({},wf(a.content,e)),{type:yf(a.type)})),{number:a.newNumber}):void 0,{left:u,right:f}=this.generateLineHtml(l,c);n.left+=u,n.right+=f}return n}generateLineHtml(e,t){return{left:this.generateSingleHtml(e),right:this.generateSingleHtml(t)}}generateSingleHtml(e){const t="d2h-code-side-linenumber",r="d2h-code-side-line";return this.hoganUtils.render(Hf,"line",{type:(null==e?void 0:e.type)||`${df.CONTEXT} d2h-emptyplaceholder`,lineClass:void 0!==e?t:`${t} d2h-code-side-emptyplaceholder`,contentClass:void 0!==e?r:`${r} d2h-code-side-emptyplaceholder`,prefix:" "===(null==e?void 0:e.prefix)?"&nbsp;":null==e?void 0:e.prefix,content:null==e?void 0:e.content,lineNumber:null==e?void 0:e.number})}}var Uf={};!function(e){!function(e){var t=/\S/,r=/\"/g,n=/\n/g,i=/\r/g,o=/\\/g,a=/\u2028/,s=/\u2029/;function l(e){"}"===e.n.substr(e.n.length-1)&&(e.n=e.n.substring(0,e.n.length-1))}function c(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}function u(e,t,r){if(t.charAt(r)!=e.charAt(0))return!1;for(var n=1,i=e.length;n<i;n++)if(t.charAt(r+n)!=e.charAt(n))return!1;return!0}e.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(r,n){var i=r.length,o=0,a=null,s=null,f="",d=[],g=!1,p=0,h=0,A="{{",m="}}";function I(){f.length>0&&(d.push({tag:"_t",text:new String(f)}),f="")}function y(r,n){if(I(),r&&function(){for(var r=!0,n=h;n<d.length;n++)if(!(r=e.tags[d[n].tag]<e.tags._v||"_t"==d[n].tag&&null===d[n].text.match(t)))return!1;return r}())for(var i,o=h;o<d.length;o++)d[o].text&&((i=d[o+1])&&">"==i.tag&&(i.indent=d[o].text.toString()),d.splice(o,1));else n||d.push({tag:"\n"});g=!1,h=d.length}function v(e,t){var r="="+m,n=e.indexOf(r,t),i=c(e.substring(e.indexOf("=",t)+1,n)).split(" ");return A=i[0],m=i[i.length-1],n+r.length-1}for(n&&(n=n.split(" "),A=n[0],m=n[1]),p=0;p<i;p++)0==o?u(A,r,p)?(--p,I(),o=1):"\n"==r.charAt(p)?y(g):f+=r.charAt(p):1==o?(p+=A.length-1,"="==(a=(s=e.tags[r.charAt(p+1)])?r.charAt(p+1):"_v")?(p=v(r,p),o=0):(s&&p++,o=2),g=p):u(m,r,p)?(d.push({tag:a,n:c(f),otag:A,ctag:m,i:"/"==a?g-A.length:p+m.length}),f="",p+=m.length-1,o=0,"{"==a&&("}}"==m?p++:l(d[d.length-1]))):f+=r.charAt(p);return y(g,!0),d};var f={_t:!0,"\n":!0,$:!0,"/":!0};function d(t,r,n,i){var o,a=[],s=null,l=null;for(o=n[n.length-1];t.length>0;){if(l=t.shift(),o&&"<"==o.tag&&!(l.tag in f))throw new Error("Illegal content in < super tag.");if(e.tags[l.tag]<=e.tags.$||g(l,i))n.push(l),l.nodes=d(t,l.tag,n,i);else{if("/"==l.tag){if(0===n.length)throw new Error("Closing tag without opener: /"+l.n);if(s=n.pop(),l.n!=s.n&&!p(l.n,s.n,i))throw new Error("Nesting error: "+s.n+" vs. "+l.n);return s.end=l.i,a}"\n"==l.tag&&(l.last=0==t.length||"\n"==t[0].tag)}a.push(l)}if(n.length>0)throw new Error("missing closing tag: "+n.pop().n);return a}function g(e,t){for(var r=0,n=t.length;r<n;r++)if(t[r].o==e.n)return e.tag="#",!0}function p(e,t,r){for(var n=0,i=r.length;n<i;n++)if(r[n].c==e&&r[n].o==t)return!0}function h(e){var t=[];for(var r in e.partials)t.push('"'+m(r)+'":{name:"'+m(e.partials[r].name)+'", '+h(e.partials[r])+"}");return"partials: {"+t.join(",")+"}, subs: "+function(e){var t=[];for(var r in e)t.push('"'+m(r)+'": function(c,p,t,i) {'+e[r]+"}");return"{ "+t.join(",")+" }"}(e.subs)}e.stringify=function(t,r,n){return"{code: function (c,p,i) { "+e.wrapMain(t.code)+" },"+h(t)+"}"};var A=0;function m(e){return e.replace(o,"\\\\").replace(r,'\\"').replace(n,"\\n").replace(i,"\\r").replace(a,"\\u2028").replace(s,"\\u2029")}function I(e){return~e.indexOf(".")?"d":"f"}function y(e,t){var r="<"+(t.prefix||"")+e.n+A++;return t.partials[r]={name:e.n,partials:{}},t.code+='t.b(t.rp("'+m(r)+'",c,p,"'+(e.indent||"")+'"));',r}function v(e,t){t.code+="t.b(t.t(t."+I(e.n)+'("'+m(e.n)+'",c,p,0)));'}function b(e){return"t.b("+e+");"}e.generate=function(t,r,n){A=0;var i={code:"",subs:{},partials:{}};return e.walk(t,i),n.asString?this.stringify(i,r,n):this.makeTemplate(i,r,n)},e.wrapMain=function(e){return'var t=this;t.b(i=i||"");'+e+"return t.fl();"},e.template=e.Template,e.makeTemplate=function(e,t,r){var n=this.makePartials(e);return n.code=new Function("c","p","i",this.wrapMain(e.code)),new this.template(n,t,this,r)},e.makePartials=function(e){var t,r={subs:{},partials:e.partials,name:e.name};for(t in r.partials)r.partials[t]=this.makePartials(r.partials[t]);for(t in e.subs)r.subs[t]=new Function("c","p","t","i",e.subs[t]);return r},e.codegen={"#":function(t,r){r.code+="if(t.s(t."+I(t.n)+'("'+m(t.n)+'",c,p,1),c,p,0,'+t.i+","+t.end+',"'+t.otag+" "+t.ctag+'")){t.rs(c,p,function(c,p,t){',e.walk(t.nodes,r),r.code+="});c.pop();}"},"^":function(t,r){r.code+="if(!t.s(t."+I(t.n)+'("'+m(t.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(t.nodes,r),r.code+="};"},">":y,"<":function(t,r){var n={partials:{},code:"",subs:{},inPartial:!0};e.walk(t.nodes,n);var i=r.partials[y(t,r)];i.subs=n.subs,i.partials=n.partials},$:function(t,r){var n={subs:{},code:"",partials:r.partials,prefix:t.n};e.walk(t.nodes,n),r.subs[t.n]=n.code,r.inPartial||(r.code+='t.sub("'+m(t.n)+'",c,p,i);')},"\n":function(e,t){t.code+=b('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+I(e.n)+'("'+m(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=b('"'+m(e.text)+'"')},"{":v,"&":v},e.walk=function(t,r){for(var n,i=0,o=t.length;i<o;i++)(n=e.codegen[t[i].tag])&&n(t[i],r);return r},e.parse=function(e,t,r){return d(e,0,[],(r=r||{}).sectionTags||[])},e.cache={},e.cacheKey=function(e,t){return[e,!!t.asString,!!t.disableLambda,t.delimiters,!!t.modelGet].join("||")},e.compile=function(t,r){r=r||{};var n=e.cacheKey(t,r),i=this.cache[n];if(i){var o=i.partials;for(var a in o)delete o[a].instance;return i}return i=this.generate(this.parse(this.scan(t,r.delimiters),t,r),t,r),this.cache[n]=i}}(e)}(Uf);var Rf={};!function(e){!function(e){function t(e,t,r){var n;return t&&"object"==typeof t&&(void 0!==t[e]?n=t[e]:r&&t.get&&"function"==typeof t.get&&(n=t.get(e))),n}e.Template=function(e,t,r,n){e=e||{},this.r=e.code||this.r,this.c=r,this.options=n||{},this.text=t||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(e,t,r){return""},v:function(e){return e=l(e),s.test(e)?e.replace(r,"&amp;").replace(n,"&lt;").replace(i,"&gt;").replace(o,"&#39;").replace(a,"&quot;"):e},t:l,render:function(e,t,r){return this.ri([e],t||{},r)},ri:function(e,t,r){return this.r(e,t,r)},ep:function(e,t){var r=this.partials[e],n=t[r.name];if(r.instance&&r.base==n)return r.instance;if("string"==typeof n){if(!this.c)throw new Error("No compiler available.");n=this.c.compile(n,this.options)}if(!n)return null;if(this.partials[e].base=n,r.subs){for(key in t.stackText||(t.stackText={}),r.subs)t.stackText[key]||(t.stackText[key]=void 0!==this.activeSub&&t.stackText[this.activeSub]?t.stackText[this.activeSub]:this.text);n=function(e,t,r,n,i,o){function a(){}function s(){}var l;a.prototype=e,s.prototype=e.subs;var c=new a;for(l in c.subs=new s,c.subsText={},c.buf="",n=n||{},c.stackSubs=n,c.subsText=o,t)n[l]||(n[l]=t[l]);for(l in n)c.subs[l]=n[l];for(l in i=i||{},c.stackPartials=i,r)i[l]||(i[l]=r[l]);for(l in i)c.partials[l]=i[l];return c}(n,r.subs,r.partials,this.stackSubs,this.stackPartials,t.stackText)}return this.partials[e].instance=n,n},rp:function(e,t,r,n){var i=this.ep(e,r);return i?i.ri(t,r,n):""},rs:function(e,t,r){var n=e[e.length-1];if(c(n))for(var i=0;i<n.length;i++)e.push(n[i]),r(e,t,this),e.pop();else r(e,t,this)},s:function(e,t,r,n,i,o,a){var s;return(!c(e)||0!==e.length)&&("function"==typeof e&&(e=this.ms(e,t,r,n,i,o,a)),s=!!e,!n&&s&&t&&t.push("object"==typeof e?e:t[t.length-1]),s)},d:function(e,r,n,i){var o,a=e.split("."),s=this.f(a[0],r,n,i),l=this.options.modelGet,u=null;if("."===e&&c(r[r.length-2]))s=r[r.length-1];else for(var f=1;f<a.length;f++)void 0!==(o=t(a[f],s,l))?(u=s,s=o):s="";return!(i&&!s)&&(i||"function"!=typeof s||(r.push(u),s=this.mv(s,r,n),r.pop()),s)},f:function(e,r,n,i){for(var o=!1,a=!1,s=this.options.modelGet,l=r.length-1;l>=0;l--)if(void 0!==(o=t(e,r[l],s))){a=!0;break}return a?(i||"function"!=typeof o||(o=this.mv(o,r,n)),o):!i&&""},ls:function(e,t,r,n,i,o){var a=this.options.delimiters;return this.options.delimiters=o,this.b(this.ct(l(e.call(t,i,r)),t,n)),this.options.delimiters=a,!1},ct:function(e,t,r){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(t,r)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,t,r,n,i,o,a){var s,l=t[t.length-1],c=e.call(l);return"function"==typeof c?!!n||(s=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(c,l,t,r,s.substring(i,o),a)):c},mv:function(e,t,r){var n=t[t.length-1],i=e.call(n);return"function"==typeof i?this.ct(l(i.call(n)),n,r):i},sub:function(e,t,r,n){var i=this.subs[e];i&&(this.activeSub=e,i(t,r,this,n),this.activeSub=!1)}};var r=/&/g,n=/</g,i=/>/g,o=/\'/g,a=/\"/g,s=/[&<>\"\']/;function l(e){return String(null==e?"":e)}var c=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(e)}(Rf);var Of=Uf;Of.Template=Rf.Template,Of.template=Of.Template;var Tf=Of;const Yf={};Yf["file-summary-line"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<li class="d2h-file-list-line">'),n.b("\n"+r),n.b(' <span class="d2h-file-name-wrapper">'),n.b("\n"+r),n.b(n.rp("<fileIcon0",e,t," ")),n.b(' <a href="#'),n.b(n.v(n.f("fileHtmlId",e,t,0))),n.b('" class="d2h-file-name">'),n.b(n.v(n.f("fileName",e,t,0))),n.b("</a>"),n.b("\n"+r),n.b(' <span class="d2h-file-stats">'),n.b("\n"+r),n.b(' <span class="d2h-lines-added">'),n.b(n.v(n.f("addedLines",e,t,0))),n.b("</span>"),n.b("\n"+r),n.b(' <span class="d2h-lines-deleted">'),n.b(n.v(n.f("deletedLines",e,t,0))),n.b("</span>"),n.b("\n"+r),n.b(" </span>"),n.b("\n"+r),n.b(" </span>"),n.b("\n"+r),n.b("</li>"),n.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}}),Yf["file-summary-wrapper"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<div class="d2h-file-list-wrapper '),n.b(n.v(n.f("colorScheme",e,t,0))),n.b('">'),n.b("\n"+r),n.b(' <div class="d2h-file-list-header">'),n.b("\n"+r),n.b(' <span class="d2h-file-list-title">Files changed ('),n.b(n.v(n.f("filesNumber",e,t,0))),n.b(")</span>"),n.b("\n"+r),n.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),n.b("\n"+r),n.b(' <a class="d2h-file-switch d2h-show">show</a>'),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b(' <ol class="d2h-file-list">'),n.b("\n"+r),n.b(" "),n.b(n.t(n.f("files",e,t,0))),n.b("\n"+r),n.b(" </ol>"),n.b("\n"+r),n.b("</div>"),n.fl()},partials:{},subs:{}}),Yf["generic-block-header"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b("<tr>"),n.b("\n"+r),n.b(' <td class="'),n.b(n.v(n.f("lineClass",e,t,0))),n.b(" "),n.b(n.v(n.d("CSSLineClass.INFO",e,t,0))),n.b('"></td>'),n.b("\n"+r),n.b(' <td class="'),n.b(n.v(n.d("CSSLineClass.INFO",e,t,0))),n.b('">'),n.b("\n"+r),n.b(' <div class="'),n.b(n.v(n.f("contentClass",e,t,0))),n.b('">'),n.s(n.f("blockHeader",e,t,1),e,t,0,156,173,"{{ }}")&&(n.rs(e,t,function(e,t,r){r.b(r.t(r.f("blockHeader",e,t,0)))}),e.pop()),n.s(n.f("blockHeader",e,t,1),e,t,1,0,0,"")||n.b("&nbsp;"),n.b("</div>"),n.b("\n"+r),n.b(" </td>"),n.b("\n"+r),n.b("</tr>"),n.fl()},partials:{},subs:{}}),Yf["generic-empty-diff"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b("<tr>"),n.b("\n"+r),n.b(' <td class="'),n.b(n.v(n.d("CSSLineClass.INFO",e,t,0))),n.b('">'),n.b("\n"+r),n.b(' <div class="'),n.b(n.v(n.f("contentClass",e,t,0))),n.b('">'),n.b("\n"+r),n.b(" File without changes"),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b(" </td>"),n.b("\n"+r),n.b("</tr>"),n.fl()},partials:{},subs:{}}),Yf["generic-file-path"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<span class="d2h-file-name-wrapper">'),n.b("\n"+r),n.b(n.rp("<fileIcon0",e,t," ")),n.b(' <span class="d2h-file-name">'),n.b(n.v(n.f("fileDiffName",e,t,0))),n.b("</span>"),n.b("\n"+r),n.b(n.rp("<fileTag1",e,t," ")),n.b("</span>"),n.b("\n"+r),n.b('<label class="d2h-file-collapse">'),n.b("\n"+r),n.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),n.b("\n"+r),n.b(" Viewed"),n.b("\n"+r),n.b("</label>"),n.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}}),Yf["generic-line"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b("<tr>"),n.b("\n"+r),n.b(' <td class="'),n.b(n.v(n.f("lineClass",e,t,0))),n.b(" "),n.b(n.v(n.f("type",e,t,0))),n.b('">'),n.b("\n"+r),n.b(" "),n.b(n.t(n.f("lineNumber",e,t,0))),n.b("\n"+r),n.b(" </td>"),n.b("\n"+r),n.b(' <td class="'),n.b(n.v(n.f("type",e,t,0))),n.b('">'),n.b("\n"+r),n.b(' <div class="'),n.b(n.v(n.f("contentClass",e,t,0))),n.b('">'),n.b("\n"+r),n.s(n.f("prefix",e,t,1),e,t,0,162,238,"{{ }}")&&(n.rs(e,t,function(e,t,n){n.b(' <span class="d2h-code-line-prefix">'),n.b(n.t(n.f("prefix",e,t,0))),n.b("</span>"),n.b("\n"+r)}),e.pop()),n.s(n.f("prefix",e,t,1),e,t,1,0,0,"")||(n.b(' <span class="d2h-code-line-prefix">&nbsp;</span>'),n.b("\n"+r)),n.s(n.f("content",e,t,1),e,t,0,371,445,"{{ }}")&&(n.rs(e,t,function(e,t,n){n.b(' <span class="d2h-code-line-ctn">'),n.b(n.t(n.f("content",e,t,0))),n.b("</span>"),n.b("\n"+r)}),e.pop()),n.s(n.f("content",e,t,1),e,t,1,0,0,"")||(n.b(' <span class="d2h-code-line-ctn"><br></span>'),n.b("\n"+r)),n.b(" </div>"),n.b("\n"+r),n.b(" </td>"),n.b("\n"+r),n.b("</tr>"),n.fl()},partials:{},subs:{}}),Yf["generic-wrapper"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<div class="d2h-wrapper '),n.b(n.v(n.f("colorScheme",e,t,0))),n.b('">'),n.b("\n"+r),n.b(" "),n.b(n.t(n.f("content",e,t,0))),n.b("\n"+r),n.b("</div>"),n.fl()},partials:{},subs:{}}),Yf["icon-file-added"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),n.b("\n"+r),n.b(' width="14">'),n.b("\n"+r),n.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM6 9H3V7h3V4h2v3h3v2H8v3H6V9z"></path>'),n.b("\n"+r),n.b("</svg>"),n.fl()},partials:{},subs:{}}),Yf["icon-file-changed"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),n.b("\n"+r),n.b(' viewBox="0 0 14 16" width="14">'),n.b("\n"+r),n.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path>'),n.b("\n"+r),n.b("</svg>"),n.fl()},partials:{},subs:{}}),Yf["icon-file-deleted"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),n.b("\n"+r),n.b(' viewBox="0 0 14 16" width="14">'),n.b("\n"+r),n.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM11 9H3V7h8v2z"></path>'),n.b("\n"+r),n.b("</svg>"),n.fl()},partials:{},subs:{}}),Yf["icon-file-renamed"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),n.b("\n"+r),n.b(' viewBox="0 0 14 16" width="14">'),n.b("\n"+r),n.b(' <path d="M6 9H3V7h3V4l5 4-5 4V9z m8-7v12c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h12c0.55 0 1 0.45 1 1z m-1 0H1v12h12V2z"></path>'),n.b("\n"+r),n.b("</svg>"),n.fl()},partials:{},subs:{}}),Yf["icon-file"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),n.b("\n"+r),n.b(' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>'),n.b("\n"+r),n.b("</svg>"),n.fl()},partials:{},subs:{}}),Yf["line-by-line-file-diff"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<div id="'),n.b(n.v(n.f("fileHtmlId",e,t,0))),n.b('" class="d2h-file-wrapper" data-lang="'),n.b(n.v(n.d("file.language",e,t,0))),n.b('">'),n.b("\n"+r),n.b(' <div class="d2h-file-header">'),n.b("\n"+r),n.b(" "),n.b(n.t(n.f("filePath",e,t,0))),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b(' <div class="d2h-file-diff">'),n.b("\n"+r),n.b(' <div class="d2h-code-wrapper">'),n.b("\n"+r),n.b(' <table class="d2h-diff-table">'),n.b("\n"+r),n.b(' <tbody class="d2h-diff-tbody">'),n.b("\n"+r),n.b(" "),n.b(n.t(n.f("diffs",e,t,0))),n.b("\n"+r),n.b(" </tbody>"),n.b("\n"+r),n.b(" </table>"),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b("</div>"),n.fl()},partials:{},subs:{}}),Yf["line-by-line-numbers"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<div class="line-num1">'),n.b(n.v(n.f("oldNumber",e,t,0))),n.b("</div>"),n.b("\n"+r),n.b('<div class="line-num2">'),n.b(n.v(n.f("newNumber",e,t,0))),n.b("</div>"),n.fl()},partials:{},subs:{}}),Yf["side-by-side-file-diff"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<div id="'),n.b(n.v(n.f("fileHtmlId",e,t,0))),n.b('" class="d2h-file-wrapper" data-lang="'),n.b(n.v(n.d("file.language",e,t,0))),n.b('">'),n.b("\n"+r),n.b(' <div class="d2h-file-header">'),n.b("\n"+r),n.b(" "),n.b(n.t(n.f("filePath",e,t,0))),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b(' <div class="d2h-files-diff">'),n.b("\n"+r),n.b(' <div class="d2h-file-side-diff">'),n.b("\n"+r),n.b(' <div class="d2h-code-wrapper">'),n.b("\n"+r),n.b(' <table class="d2h-diff-table">'),n.b("\n"+r),n.b(' <tbody class="d2h-diff-tbody">'),n.b("\n"+r),n.b(" "),n.b(n.t(n.d("diffs.left",e,t,0))),n.b("\n"+r),n.b(" </tbody>"),n.b("\n"+r),n.b(" </table>"),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b(' <div class="d2h-file-side-diff">'),n.b("\n"+r),n.b(' <div class="d2h-code-wrapper">'),n.b("\n"+r),n.b(' <table class="d2h-diff-table">'),n.b("\n"+r),n.b(' <tbody class="d2h-diff-tbody">'),n.b("\n"+r),n.b(" "),n.b(n.t(n.d("diffs.right",e,t,0))),n.b("\n"+r),n.b(" </tbody>"),n.b("\n"+r),n.b(" </table>"),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b("</div>"),n.fl()},partials:{},subs:{}}),Yf["tag-file-added"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),n.fl()},partials:{},subs:{}}),Yf["tag-file-changed"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),n.fl()},partials:{},subs:{}}),Yf["tag-file-deleted"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),n.fl()},partials:{},subs:{}}),Yf["tag-file-renamed"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),n.fl()},partials:{},subs:{}});class jf{constructor({compiledTemplates:e={},rawTemplates:t={}}){const r=Object.entries(t).reduce((e,[t,r])=>{const n=Tf.compile(r,{asString:!1});return Object.assign(Object.assign({},e),{[t]:n})},{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},Yf),e),r)}static compile(e){return Tf.compile(e,{asString:!1})}render(e,t,r,n,i){const o=this.templateKey(e,t);try{return this.preCompiledTemplates[o].render(r,n,i)}catch(e){throw new Error(`Could not find template to render '${o}'`)}}template(e,t){return this.preCompiledTemplates[this.templateKey(e,t)]}templateKey(e,t){return`${e}-${t}`}}const Gf=Object.assign(Object.assign(Object.assign({},Sf),Mf),{outputFormat:"line-by-line",drawFileList:!0});var Jf=Object.freeze({__proto__:null,defaultDiff2HtmlConfig:Gf,html:function(e,t={}){const r=Object.assign(Object.assign({},Gf),t),n="string"==typeof e?of(e,r):e,i=new jf(r),{colorScheme:o}=r,a={colorScheme:o};return(r.drawFileList?new Qf(i,a).render(n):"")+("side-by-side"===r.outputFormat?new Lf(i,r).render(n):new qf(i,r).render(n))},parse:function(e,t={}){return of(e,Object.assign(Object.assign({},Gf),t))}});function zf(){if("[object Module]"===Object.prototype.toString.call(Jf))return Jf;let e=vn(),t=Be(e,"Diff2Html.default",null),r=Be(e,"Diff2Html",null),n="html";if(Ce(t)&&ba(t[n]))return t;if(Ce(r)&&ba(r[n]))return r;throw console.log("Diff2Html",Jf,"g.Diff2Html",e.Diff2Html),new Error("invalid Diff2Html, g.Diff2Html, g.Diff2Html.default, use script for import")}function Vf(e){return document.querySelectorAll(e)}function Pf(e){function t(e){e.parentNode.removeChild(e)}if(wr(e)){return void t(e)}if(!Fe(e))return;Cr(Vf(e),function(e){t(e)})}function Xf(e,t){if(!wr(e))return"invalid eleParent";if(De(t))e.insertAdjacentHTML("afterbegin",t);else{if(!wr(t))return"invalid itemChild";e.insertBefore(t,e.firstChild)}}async function _f(e,t={}){if(!wr(e))return Promise.reject("invalid ele");let r=Be(t,"scale",null);if(ke(r)||(r=1),r=Hn(r),r<1)return Promise.reject("opt.scale can not less then 1");let n=Be(t,"picType",null);"image/jpg"!==n&&"image/jpeg"!==n&&"image/png"!==n&&"svg"!==n&&(n="image/png");let i=Be(t,"toBase64",null);hn(i)||(i=!0);let o=e.cloneNode(!0),a=document.createElement("div");a.style.position="absolute",a.style.top=0,a.style.left=0,a.style.zIndex=-1,a.appendChild(o);let s=document.createElement("div");s.style.opacity=0,s.style.position="relative",s.appendChild(a),Xf(document.querySelector("body"),s);let l,c=vn().snapdom,u={scale:r,quality:1,cache:"disabled"};return"image/jpg"===n||"image/jpeg"===n?l=await c.toJpg(a,u):"image/png"===n?l=await c.toPng(a,u):"svg"===n&&(l=await c.toSvg(a,u)),i&&(l=Be(l,"src","")),Pf(s),l}var Wf=Oa(Qa);function Kf(e){let t=function(e,r){return null===e.parentNode?r:t(e.parentNode,r.concat([e]))};return e instanceof HTMLElement||e instanceof SVGElement?t(e.parentNode,[]):[]}function $f(e){let t=Be(e,"clientX",null),r=Be(e,"clientY",null),n=Be(e,"pageX",null),i=Be(e,"pageY",null);if(null!==t&&null!==r&&null!==n&&null!==i)return{clientX:t,clientY:r,pageX:n,pageY:i};let o=Be(e,"changedTouches",[]);if(1!==gn(o))return null;let a=o[0];return{clientX:Be(a,"clientX",null),clientY:Be(a,"clientY",null),pageX:Be(a,"pageX",null),pageY:Be(a,"pageY",null)}}function Zf(e,t){let r=[];try{r=document.elementsFromPoint(e,t)}catch(e){console.log(e)}return r}function ed(e,t){if(!wr(e))return null;if(!Fe(t))return null;try{return e.getAttribute(t)}catch(e){}return null}function td(e){if(!wr(e))return null;try{return e.getBoundingClientRect()}catch(e){}return null}function rd(e,t){if(!Ce(e))return null;if(!ya(e.clientX)||!ya(e.clientY))return null;if(!wr(t))return null;let r=td(t);return r?{x:e.clientX-r.left,y:e.clientY-r.top,w:t.offsetWidth,h:t.offsetHeight}:null}function nd(e={}){let t="dragpreviewid",r=null,n=null,i=null,o=null,a=null,s=!1,l=Be(e,"attIdentify",null);Fe(l)||(l="dragprevid");let c=Be(e,"containerOpacity",null);ya(c)||(c=.4);let u=Be(e,"containerBackground",null);Fe(u)||(u="white");let f=Be(e,"containerBorderWidth",null);ya(f)||(f=1);let d=Be(e,"containerBorderColor",null);Fe(d)||(d="#f26");let g=`c${Lu(8)}`;function p(e,t,r){n&&i&&o&&a&&!s&&(a.style.top=t-n.tShiftY+"px",a.style.left=e-n.tShiftX+"px")}function h(){Pf(`[${t}='${g}']`),n=null,i=null,o=null,a=null}let A=function(e){p(e.clientX,e.clientY)};window.addEventListener("mousemove",A);let m=function(e){let t=$f(e);t&&p(t.clientX,t.clientY)};return window.addEventListener("touchmove",m),{createPreview:function(e,s,A){try{!function(){let h=function(e,t,n){let i=td(e);if(!i)return null;r=e;let o=e.cloneNode(!0);return o.tShiftX=t-i.left,o.tShiftY=n-i.top,o.tWidth=e.offsetWidth,o.tHeight=e.offsetHeight,o.tParent=e.parentNode,o.setAttribute(l,""),o}(e,s,A);if(null===h)return;let m=document.createElement("div");m.style.position="absolute",m.style.zIndex=1,m.style.top=0,m.style.left=0,m.style.width="100%",m.style.height="100%",m.appendChild(h);let I=document.createElement("div");I.style.position="relative",I.appendChild(m);let y=document.createElement("div");y.setAttribute(t,g),y.style.position="fixed",y.style.zIndex=1e5,y.style.width=`${h.tWidth+2*f}px`,y.style.height=`${h.tHeight+2*f}px`,y.style.opacity=c,y.style.background=u,y.style.border=`${f}px solid ${d}`,y.style.pointerEvents="none",y.appendChild(I),document.querySelector("body").appendChild(y),n=h,i=m,o=I,a=y,p(s,A)}()}catch(e){}let m=setInterval(()=>{let e=ed(r,l);document.querySelector(`[${l}='${e}']`)||(clearInterval(m),h())},500)},updateDragPreview:p,pauseDragPreview:function(e){s=e},removeDragPreview:h,setNodeStyle:function(e){try{Cr(e,(e,t)=>{n.style[t]=e})}catch(e){}},setCoverStyle:function(e){try{Cr(e,(e,t)=>{i.style[t]=e})}catch(e){}},setSellStyle:function(e){try{Cr(e,(e,t)=>{o.style[t]=e})}catch(e){}},setContainerStyle:function(e){try{Cr(e,(e,t)=>{a.style[t]=e})}catch(e){}},clear:function(){window.removeEventListener("mousemove",A),window.removeEventListener("touchmove",m)}}}let id={};function od(e,t,{attIdentify:r,previewOpacity:n,previewBackground:i,previewBorderWidth:o,previewBorderColor:a}){if(!Ne(id,e)){let t=_i(),s=function(e){let t=[];function r(){let r;r="mousemove";let n=function(t){e.dragMove({e:t,name:"mousemove"})};window.addEventListener(r,n),t.push({ele:window,name:r,f:n}),r="mouseup";let i=function(t){e.dragDrop({e:t,name:"mouseup"})};window.addEventListener(r,i),t.push({ele:window,name:r,f:i}),r="touchmove";let o=function(t){e.dragMove({e:t,name:"touchmove"})};window.addEventListener(r,o),t.push({ele:window,name:r,f:o}),r="touchend";let a=function(t){e.dragDrop({e:t,name:"touchend"})};window.addEventListener(r,a),t.push({ele:window,name:r,f:a})}function n(){Cr(t,({ele:e,name:t,f:r})=>{e.removeEventListener(t,r)})}return{bind:r,unbind:n}}({dragMove:r=>{t.emit(e+"-dragMove",r)},dragDrop:r=>{t.emit(e+"-dragDrop",r)}});s.bind();let l=nd({attIdentify:r,containerOpacity:n,containerBackground:i,containerBorderWidth:o,containerBorderColor:a});id[e]={eleIds:[],evg:t,oevg:s,pv:l,isInit:!1,isActive:!0}}return id[e].eleIds.push(t),id[e].evg}function ad(e,t){let r=ed(e,t);return r=eo(r),r}function sd({gid:e,attGroup:t,attIndex:r,attIdentify:n,timeDragStartDelay:i,previewOpacity:o,previewDisabledOpacity:a}){let s=null,l=null,c=null,u=null;if(id[e].isInit)return id[e].evg;id[e].isInit=!0;let f=id[e].evg;f.on(e+"-dragStart",function({e:t,ele:o,from:c}){if(!id[e].isActive)return;let u=ad(o,r);if(null===u)return;s=u,l=o;let g={event:t,startInd:s,startEle:l,tarInd:s,tarEid:ed(l,n)};f.emit(e+"-change",{mode:"start",...g}),f.emit(e+"-start",g);let p=$f(t);if(!p)return;setTimeout(()=>{null!==s&&(d.createPreview(l,p.clientX,p.clientY),d.setContainerStyle({opacity:a}))},i)}),f.on(e+"-dragMove",function({e:i,name:g,from:p}){if(!id[e].isActive)return;let h=function(e,t,r){let n=null;return Cr(Kf(e.target),e=>{if(ed(e,t)===r)return n=e,!1}),n}(i,t,e);if(null===s)return;let A=$f(i);if(!A)return;function m(){let t={event:i,startInd:s,startEle:l,endInd:c,endEle:u,tarInd:c,tarEid:ed(u,n)};f.emit(e+"-change",{mode:"leave",...t}),f.emit(e+"-leave",t),c=null,u=null,d.setContainerStyle({opacity:a})}if(!h)return void(null!==c&&m());let I=ad(h,r);if(null===I)return;if(I===s)return void(null!==c&&m());if(I!==c)null!==c&&m(),function(t,r){c=t,u=r;let a={event:i,startInd:s,startEle:l,endInd:c,endEle:u,tarInd:c,tarEid:ed(u,n)};f.emit(e+"-change",{mode:"enter",...a}),f.emit(e+"-enter",a),d.setContainerStyle({opacity:o})}(I,h);else{let t=rd(A,h),r=0;t.w>0&&(r=t.x/t.w);let a=0;t.h>0&&(a=t.y/t.h),r>=0&&r<=1&&a>=0&&a<=1&&function(t,r,a){let g={event:i,startInd:s,startEle:l,endInd:c,endEle:u,tarInd:c,tarEid:ed(u,n),...t,rx:r,ry:a};f.emit(e+"-change",{mode:"move",...g}),f.emit(e+"-move",g),d.setContainerStyle({opacity:o})}(t,r,a)}}),f.on(e+"-dragDrop",function({e:i,name:o,from:a}){if(d.removeDragPreview(),!id[e].isActive)return;if(null===s)return;let g=function(e,t,r){let n=null,i=$f(e);return i?(Cr(Zf(i.clientX,i.clientY),e=>{if(ed(e,t)===r)return n=e,!1}),n):n}(i,t,e);if(!g)return s=null,l=null,c=null,void(u=null);let p=ad(g,r);if(null===p)return;(function(t,r){c=t,u=r;let o={event:i,startInd:s,startEle:l,endInd:c,endEle:u,tarInd:c,tarEid:ed(u,n)};f.emit(e+"-change",{mode:"drop",...o}),f.emit(e+"-drop",o)})(p,g),s=null,l=null,c=null,u=null});let d=id[e].pv}async function ld(e){let t=[],r=is();return await async function e(r){let n=null;if(r.isFile&&(n=await function(e){let t=is();try{e.file(t.resolve,t.reject)}catch(e){t.reject(e)}return t}(r)),t.push({type:r.isDirectory?"folder":r.isFile?"file":"unknow",path:r.fullPath,name:r.name,entry:r,file:n}),r.isDirectory){let t=r.createReader(),n=await function(e){let t=is();try{e.readEntries(t.resolve,t.reject)}catch(e){t.reject(e)}return t}(t);await cc(n,async t=>{await e(t)})}}(e),r.resolve(t),r}async function cd(e){let t=[];Cr(e,e=>{let r=e.webkitGetAsEntry();r&&t.push(r)});let r=await async function(e){let t=[];return await cc(e,async e=>{Cr(await ld(e),e=>{t.push(e)})}),t}(t);return r}async function ud(e){let t=[],r=[];try{t=await async function(e){let t=[];return Cr(e,e=>{e.type&&t.push({type:"file",name:e.name,file:e})}),t}(Be(e,"files",[])),Pu()||(r=await cd(Be(e,"items",[])).catch(e=>{console.log(e)}))}catch(e){return Promise.reject(e)}return{files:t,entries:r}}function fd(e){return document.querySelector(e)}function dd(e){return!Rr(e)}var gd=Math.max;var pd,hd=(pd=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:Mn(r);return i<0&&(i=gd(n+i,0)),Tr(e,dr(t),i)},function(e,t,r){var n=Object(e);if(!dt(e)){var i=dr(t);e=gt(e),t=function(e){return i(n[e],e,n)}}var o=pd(e,t,r);return o>-1?n[i?e[o]:o]:void 0});let Ad=[{name:"pic",group:"image",acp:"image/*",exec:"imageviwer"},{name:"xml",group:"data",acp:"text/xml",exec:"textviwer"},{name:"htm",group:"docums",acp:"text/html",exec:"browser"},{name:"html",group:"docums",acp:"text/html",exec:"browser"},{name:"json",group:"data",acp:"application/json",exec:"textviwer"},{name:"geojson",group:"data",acp:"application/geo+json",exec:"textviwer"},{name:"txt",group:"data",acp:"text/plain",exec:"textviwer"},{name:"csv",group:"data",acp:"text/csv",exec:"excel"},{name:"dat",group:"data",acp:"application/octet-stream",exec:"binaryviwer"},{name:"7z",group:"compress",acp:"application/x-7z-compressed",exec:"compressor"},{name:"bzip",group:"compress",acp:"application/x-bzip",exec:"7z"},{name:"bzip2",group:"compress",acp:"application/x-bzip2",exec:"compressor"},{name:"bz2",group:"compress",acp:"application/x-bzip2",exec:"compressor"},{name:"ace",group:"compress",acp:"application/x-ace-compressed",exec:"compressor"},{name:"Z",group:"compress",acp:"application/x-compress",exec:"compressor"},{name:"lzh",group:"compress",acp:"application/x-lzh-compressed",exec:"compressor"},{name:"lz",group:"compress",acp:"application/x-lzip",exec:"compressor"},{name:"rar",group:"compress",acp:"application/x-rar-compressed",exec:"compressor"},{name:"tar",group:"compress",acp:"application/x-tar",exec:"compressor"},{name:"ar",group:"compress",acp:"application/x-unix-archive",exec:"compressor"},{name:"zip",group:"compress",acp:"application/zip",exec:"compressor"},{name:"gz",group:"compress",acp:"application/gzip",exec:"compressor"},{name:"avro",group:"",acp:"application/avro",exec:""},{name:"dcm",group:"",acp:"application/dicom",exec:""},{name:"eps",group:"",acp:"application/eps",exec:""},{name:"epub",group:"",acp:"application/epub+zip",exec:""},{name:"class",group:"",acp:"application/java-vm",exec:""},{name:"mxf",group:"",acp:"application/mxf",exec:""},{name:"ogx",group:"",acp:"application/ogg",exec:""},{name:"pdf",group:"docums",acp:"application/pdf",exec:"acrobat"},{name:"pgp",group:"",acp:"application/pgp-encrypted",exec:""},{name:"ps",group:"",acp:"application/postscript",exec:""},{name:"ai",group:"",acp:"application/postscript",exec:""},{name:"rtf",group:"docums",acp:"application/rtf",exec:"word"},{name:"icc",group:"",acp:"application/vnd.iccprofile",exec:""},{name:"asf",group:"",acp:"application/vnd.ms-asf",exec:"",msg:"asf的acp可能為application/vnd.ms-asf或audio/x-ms-asf或video/x-ms-asf"},{name:"cab",group:"",acp:"application/vnd.ms-cab-compressed",exec:""},{name:"eot",group:"",acp:"application/vnd.ms-fontobject",exec:""},{name:"chm",group:"",acp:"application/vnd.ms-htmlhelp",exec:""},{name:"pst",group:"",acp:"application/vnd.ms-outlook",exec:""},{name:"odp",group:"docums",acp:"application/vnd.oasis.opendocument.presentation",exec:"powerpoint"},{name:"ods",group:"docums",acp:"application/vnd.oasis.opendocument.spreadsheet",exec:"excel"},{name:"odt",group:"docums",acp:"application/vnd.oasis.opendocument.text",exec:"word"},{name:"ppt",group:"docums",acp:"application/vnd.ms-powerpoint",exec:"powerpoint"},{name:"pptx",group:"docums",acp:"application/vnd.openxmlformats-officedocument.presentationml.presentation",exec:"powerpoint"},{name:"xls",group:"docums",acp:"application/vnd.ms-excel",exec:"excel"},{name:"xlsx",group:"docums",acp:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",exec:"excel"},{name:"doc",group:"docums",acp:"application/msword",exec:"word"},{name:"docx",group:"docums",acp:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",exec:"word"},{name:"skp",group:"",acp:"application/vnd.sketchup.skp",exec:""},{name:"pcap",group:"",acp:"application/vnd.tcpdump.pcap",exec:""},{name:"wasm",group:"",acp:"application/wasm",exec:""},{name:"arrow",group:"",acp:"application/x-apache-arrow",exec:""},{name:"dmg",group:"",acp:"application/x-apple-diskimage",exec:""},{name:"arj",group:"",acp:"application/x-arj",exec:""},{name:"asar",group:"",acp:"application/x-asar",exec:""},{name:"blend",group:"",acp:"application/x-blender",exec:"blender"},{name:"cfb",group:"",acp:"application/x-cfb",exec:""},{name:"cpio",group:"",acp:"application/x-cpio",exec:""},{name:"deb",group:"",acp:"application/x-deb",exec:""},{name:"elf",group:"",acp:"application/x-elf",exec:""},{name:"shp",group:"",acp:"application/x-esri-shape",exec:""},{name:"crx",group:"",acp:"application/x-google-chrome-extension",exec:""},{name:"indd",group:"",acp:"application/x-indesign",exec:""},{name:"macho",group:"",acp:"application/x-mach-binary",exec:""},{name:"mie",group:"",acp:"application/x-mie",exec:""},{name:"mobi",group:"",acp:"application/x-mobipocket-ebook",exec:""},{name:"exe",group:"",acp:"application/x-msdownload",exec:""},{name:"nes",group:"",acp:"application/x-nintendo-nes-rom",exec:""},{name:"parquet",group:"",acp:"application/x-parquet",exec:""},{name:"rpm",group:"",acp:"application/x-rpm",exec:""},{name:"swf",group:"",acp:"application/x-shockwave-flash",exec:""},{name:"sqlite",group:"",acp:"application/x-sqlite3",exec:""},{name:"xpi",group:"",acp:"application/x-xpinstall",exec:""},{name:"xz",group:"",acp:"application/x-xz",exec:""},{name:"alias",group:"",acp:"application/x.apple.alias",exec:""},{name:"fbx",group:"",acp:"application/x.autodesk.fbx",exec:""},{name:"lnk",group:"",acp:"application/x.ms.shortcut",exec:""},{name:"zst",group:"",acp:"application/zstd",exec:""},{name:"aac",group:"audio",acp:"audio/aac",exec:"audioplayer"},{name:"aif",group:"audio",acp:"audio/aiff",exec:"audioplayer"},{name:"amr",group:"audio",acp:"audio/amr",exec:"audioplayer"},{name:"ape",group:"audio",acp:"audio/ape",exec:"audioplayer"},{name:"mid",group:"audio",acp:"audio/midi",exec:"audioplayer"},{name:"m4b",group:"audio",acp:"audio/mp4",exec:"audioplayer"},{name:"f4a",group:"audio",acp:"audio/mp4",exec:"audioplayer"},{name:"f4b",group:"audio",acp:"audio/mp4",exec:"audioplayer"},{name:"mp3",group:"audio",acp:"audio/mpeg",exec:"audioplayer"},{name:"mp2",group:"audio",acp:"audio/mpeg",exec:"audioplayer"},{name:"mp1",group:"audio",acp:"audio/mpeg",exec:"audioplayer"},{name:"oga",group:"audio",acp:"audio/ogg",exec:"audioplayer"},{name:"spx",group:"audio",acp:"audio/ogg",exec:"audioplayer"},{name:"ogg",group:"audio",acp:"audio/ogg",exec:"audioplayer"},{name:"opus",group:"audio",acp:"audio/opus",exec:"audioplayer"},{name:"qcp",group:"audio",acp:"audio/qcelp",exec:"audioplayer"},{name:"ac3",group:"audio",acp:"audio/vnd.dolby.dd-raw",exec:"audioplayer"},{name:"wav",group:"audio",acp:"audio/wav",exec:"audioplayer"},{name:"wv",group:"audio",acp:"audio/wavpack",exec:"audioplayer"},{name:"dsf",group:"audio",acp:"audio/x-dsf",exec:"audioplayer"},{name:"flac",group:"audio",acp:"audio/x-flac",exec:"audioplayer"},{name:"it",group:"audio",acp:"audio/x-it",exec:"audioplayer"},{name:"m4a",group:"audio",acp:"audio/x-m4a",exec:"audioplayer"},{name:"mpc",group:"audio",acp:"audio/x-musepack",exec:"audioplayer"},{name:"s3m",group:"audio",acp:"audio/x-s3m",exec:"audioplayer"},{name:"voc",group:"audio",acp:"audio/x-voc",exec:"audioplayer"},{name:"xm",group:"audio",acp:"audio/x-xm",exec:"audioplayer"},{name:"otf",group:"",acp:"font/otf",exec:""},{name:"ttf",group:"",acp:"font/ttf",exec:""},{name:"woff",group:"",acp:"font/woff",exec:""},{name:"woff2",group:"",acp:"font/woff2",exec:""},{name:"apng",group:"image",acp:"image/apng",exec:"imageviwer"},{name:"avif",group:"image",acp:"image/avif",exec:"imageviwer"},{name:"bmp",group:"image",acp:"image/bmp",exec:"imageviwer"},{name:"bpg",group:"image",acp:"image/bpg",exec:"imageviwer"},{name:"flif",group:"image",acp:"image/flif",exec:"imageviwer"},{name:"gif",group:"image",acp:"image/gif",exec:"imageviwer"},{name:"heic",group:"image",acp:"image/heif",exec:"imageviwer"},{name:"icns",group:"image",acp:"image/icns",exec:"imageviwer"},{name:"j2c",group:"image",acp:"image/j2c",exec:"imageviwer"},{name:"jls",group:"image",acp:"image/jls",exec:"imageviwer"},{name:"jp2",group:"image",acp:"image/jp2",exec:"imageviwer"},{name:"jpg",group:"image",acp:"image/jpeg",exec:"imageviwer"},{name:"jpm",group:"image",acp:"image/jpm",exec:"imageviwer"},{name:"jpx",group:"image",acp:"image/jpx",exec:"imageviwer"},{name:"jxl",group:"image",acp:"image/jxl",exec:"imageviwer"},{name:"ktx",group:"image",acp:"image/ktx",exec:"imageviwer"},{name:"mj2",group:"image",acp:"image/mj2",exec:"imageviwer"},{name:"png",group:"image",acp:"image/png",exec:"imageviwer"},{name:"tif",group:"image",acp:"image/tiff",exec:"imageviwer"},{name:"psd",group:"image",acp:"image/vnd.adobe.photoshop",exec:"imageviwer"},{name:"dwg",group:"image",acp:"image/vnd.dwg",exec:"imageviwer"},{name:"jxr",group:"image",acp:"image/vnd.ms-photo",exec:"imageviwer"},{name:"webp",group:"image",acp:"image/webp",exec:"imageviwer"},{name:"dng",group:"image",acp:"image/x-adobe-dng",exec:"imageviwer"},{name:"cr2",group:"image",acp:"image/x-canon-cr2",exec:"imageviwer"},{name:"cr3",group:"image",acp:"image/x-canon-cr3",exec:"imageviwer"},{name:"raf",group:"image",acp:"image/x-fujifilm-raf",exec:"imageviwer"},{name:"ico",group:"image",acp:"image/x-icon",exec:"imageviwer"},{name:"cur",group:"image",acp:"image/x-icon",exec:"imageviwer"},{name:"nef",group:"image",acp:"image/x-nikon-nef",exec:"imageviwer"},{name:"orf",group:"image",acp:"image/x-olympus-orf",exec:"imageviwer"},{name:"rw2",group:"image",acp:"image/x-panasonic-rw2",exec:"imageviwer"},{name:"arw",group:"image",acp:"image/x-sony-arw",exec:"imageviwer"},{name:"xcf",group:"image",acp:"image/x-xcf",exec:"imageviwer"},{name:"3mf",group:"",acp:"model/3mf",exec:""},{name:"glb",group:"",acp:"model/gltf-binary",exec:""},{name:"stl",group:"",acp:"model/stl",exec:""},{name:"vtp",group:"",acp:"model/vtp",exec:""},{name:"vtk",group:"",acp:"model/vtk",exec:""},{name:"vtu",group:"",acp:"model/vtu",exec:""},{name:"vti",group:"",acp:"model/vti",exec:""},{name:"vts",group:"",acp:"model/vts",exec:""},{name:"vtr",group:"",acp:"model/vtr",exec:""},{name:"ics",group:"",acp:"text/calendar",exec:""},{name:"vcf",group:"",acp:"text/vcard",exec:""},{name:"3gp",group:"video",acp:"video/3gpp",exec:"videoplayer"},{name:"3g2",group:"video",acp:"video/3gpp2",exec:"videoplayer"},{name:"m2p",group:"video",acp:"video/MP2P",exec:"videoplayer"},{name:"vob",group:"video",acp:"video/MP2P",exec:"videoplayer"},{name:"sub",group:"video",acp:"video/MP2P",exec:"videoplayer",msg:"與字幕檔衝突"},{name:"mts",group:"video",acp:"video/mp2t",exec:"videoplayer"},{name:"m4p",group:"video",acp:"video/mp4",exec:"videoplayer"},{name:"f4v",group:"video",acp:"video/mp4",exec:"videoplayer"},{name:"f4p",group:"video",acp:"video/mp4",exec:"videoplayer"},{name:"mp4",group:"video",acp:"video/mp4",exec:"videoplayer"},{name:"mpg",group:"video",acp:"video/mpeg",exec:"videoplayer",msg:"mpg可能為mpeg或video/MP1S或video/MP2S"},{name:"ogv",group:"video",acp:"video/ogg",exec:"videoplayer"},{name:"ogm",group:"video",acp:"video/ogg",exec:"videoplayer"},{name:"mov",group:"video",acp:"video/quicktime",exec:"videoplayer"},{name:"avi",group:"video",acp:"video/vnd.avi",exec:"videoplayer"},{name:"webm",group:"video",acp:"video/webm",exec:"videoplayer"},{name:"flv",group:"video",acp:"video/x-flv",exec:"videoplayer"},{name:"m4v",group:"video",acp:"video/x-m4v",exec:"videoplayer"},{name:"mkv",group:"video",acp:"video/x-matroska",exec:"videoplayer"}];function md(e=""){let t=null;return Fe(e)?(t=hd(Ad,{name:e}),Ce(t)||(t=null)):t=Ad,t}function Id(e=""){if(""!==e&&"name"!==e&&"group"!==e&&"acp"!==e&&"exec"!==e)return[];let t=md();if(""===e)return t;let r={};return Cr(t,function(t){let n=t[e];Ne(r,n)||(r[n]=[]),r[n].push(t)}),r}function yd(e="*"){if("*"===e)return e;if(!De(e)&&!Or(e))return"*";"common"===e&&(e=["docums","compress","image","data"]);let t=Id();function r(e){return Xr(Dr(e,"acp"))}De(e)&&(e=[e]);let n="";if(Or(e)){let i=Dr(e,function(e){return function(e){return r(ha(t,{group:e}))}(e)}),o=Nr(i,Dr(e,function(e){return r(ha(t,{name:e}))}));o=ha(o,dd),n=Do(o,",")}return n}function vd(e,t=1e3){(t=Hn(t))<=0&&(t=1e3);let r={},n=[];return Cr(Be(e,"files",[]),function(e,i){let o=e.size/1024/1024;o>t&&(r[i]=`file size[${o}]mb > ${t}mb`),n.push(e)}),{files:n,errs:r}}function bd(e,t,r){for(var n=-1,i=e.length;++n<i;){var o=e[n],a=t(o);if(null!=a&&(void 0===s?a==a&&!M(a):r(a,s)))var s=a,l=o}return l}function wd(e,t){return e<t}function Bd(e){return e&&e.length?bd(e,cr,wd):void 0}function Ed(){return!function(){try{return"IntersectionObserver"in window}catch(e){return!1}}()||!function(){try{return"IntersectionObserverEntry"in window}catch(e){return!1}}()||!(function(){try{return"intersectionRatio"in window.IntersectionObserverEntry.prototype}catch(e){return!1}}()||ba(window.IntersectionObserverEntry))}function Cd(e,t,r={}){if(!wr(e))return Promise.reject("invalid ele");let n=vn().markmap,{Transformer:i,Markmap:o,loadCSS:a,loadJS:s}=n,l=e=>{let t=new i,{root:r,features:n}=t.transform(e),{styles:o,scripts:a}=t.getUsedAssets(n);return{root:r,features:n,styles:o,scripts:a}},{root:c,styles:u,scripts:f}=l(t);u&&a(u),f&&s(f,{getMarkmap:()=>n}),e.innerHTML="";let d=o.create(e,null,c);return d.transMarkdown=l,d}const xd=e=>void 0===e||"auto"===e||"instant"===e||"smooth"===e;function Dd(e,t){this.scrollLeft=e,this.scrollTop=t}const Fd=(e,t,r="cannot convert to dictionary.")=>`Failed to execute '${e}' on '${t}': ${r}`,Qd=(e,t,r)=>Fd(e,t,`The provided value '${r}' is not a valid enum value of type ScrollBehavior.`),Sd=(e,t,r)=>{var n;const i=`__SEAMLESS.BACKUP$${t}`;return e[i]||!e[t]||(null===(n=e[t])||void 0===n?void 0:n.__isPolyfill)||(e[i]=e[t]),e[i]||r},kd=e=>{const t=typeof e;return null!==e&&("object"===t||"function"===t)},Nd=e=>"scrollBehavior"in window.document.documentElement.style&&!0!==(null==e?void 0:e.forcePolyfill),qd=e=>{Object.defineProperty(e,"__isPolyfill",{value:!0})},Md=(e,t)=>{qd(t),[HTMLElement.prototype,SVGElement.prototype,Element.prototype].forEach(r=>{Sd(r,e),r[e]=t})},Hd=e=>e.ownerDocument.scrollingElement||e.ownerDocument.documentElement;const Ld=e=>.5*(1-Math.cos(Math.PI*e));function Ud(){var e;let t;return t=(null===(e=window.performance)||void 0===e?void 0:e.now)?()=>window.performance.now():()=>window.Date.now(),Ud=t,t()}const Rd=e=>{const t=(Ud()-e.timeStamp)/(e.duration||500);if(t>1)return e.method(e.targetX,e.targetY),void e.callback();const r=(e.timingFunc||Ld)(t),n=e.startX+(e.targetX-e.startX)*r,i=e.startY+(e.targetY-e.startY)*r;e.method(n,i),e.rafId=window.requestAnimationFrame(()=>{Rd(e)})},Od=e=>isFinite(e)?Number(e):0,Td=(e,t,r)=>{var n,i;if(!(e=>{var t;return null!==(t=e.isConnected)&&void 0!==t?t:!(e.ownerDocument&&1&e.ownerDocument.compareDocumentPosition(e))})(e))return;const o=e.scrollLeft,a=e.scrollTop,s=Od(null!==(n=t.left)&&void 0!==n?n:o),l=Od(null!==(i=t.top)&&void 0!==i?i:a);if(s===o&&l===a)return;const c=Sd(HTMLElement.prototype,"scroll",Dd),u=Sd(Object.getPrototypeOf(e),"scroll",c).bind(e);if("smooth"!==t.behavior)return void u(s,l);const f=()=>{window.removeEventListener("wheel",g),window.removeEventListener("touchmove",g)},d=Object.assign(Object.assign({},r),{timeStamp:Ud(),startX:o,startY:a,targetX:s,targetY:l,rafId:0,method:u,callback:()=>{f();const t=9===e.nodeType;e.dispatchEvent(function(e){if("function"==typeof Event)return new Event("scrollend",{bubbles:e,cancelable:!1});const t=document.createEvent("Event");return t.initEvent("scrollend",e,!1),t}(t))}}),g=()=>{window.cancelAnimationFrame(d.rafId),f()};window.addEventListener("wheel",g,{passive:!0,once:!0}),window.addEventListener("touchmove",g,{passive:!0,once:!0}),Rd(d)},Yd=e=>(t,r,n)=>{const[i,o]=(a=t).window===a?[Hd(t.document.documentElement),"Window"]:[t,"Element"];var a;const s=null!=r?r:{};if(!kd(s))throw new TypeError(Fd(e,o));if(!xd(s.behavior))throw new TypeError(Qd(e,o,s.behavior));"scrollBy"===e&&(s.left=Od(s.left)+i.scrollLeft,s.top=Od(s.top)+i.scrollTop),Td(i,s,n)},jd=Yd("scroll"),Gd=Yd("scrollTo"),Jd=Yd("scrollBy"),zd=jd,Vd=e=>{switch(e){case"horizontal-tb":case"lr":case"lr-tb":case"rl":case"rl-tb":return 0;case"vertical-rl":case"tb":case"tb-rl":return 1;case"vertical-lr":case"tb-lr":return 2;case"sideways-rl":return 3;case"sideways-lr":return 4}return 0},Pd=(e,t,r,n)=>{let i=0;switch(t||(i^=2),e){case 0:i=i>>1|(1&i)<<1,[r,n]=[n,r];break;case 1:case 3:i^=1;break;case 4:i^=2}return[i,r,n]},Xd=e=>!(1&~Pd(Vd(e.writingMode),"rtl"!==e.direction,void 0,void 0)[0]),_d=(e,t,r,n,i,o,a)=>0!==e?e:i<t&&o>r||i>t&&o<r?null:i<=t&&a<=n||o>=r&&a>=n?2:o>r&&a<n||i<t&&a>n?3:null,Wd=e=>"visible"!==e&&"clip"!==e,Kd=(e,t)=>(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth)&&(Wd(t.overflowY)||Wd(t.overflowX)||e===Hd(e)),$d=e=>{const t=e.parentNode,r=e.parentElement;if(null===r&&null!==t){if(11===t.nodeType)return t.host;if(9===t.nodeType)return(e=>{var t;try{return(null===(t=e.ownerDocument.defaultView)||void 0===t?void 0:t.frameElement)||null}catch(e){return null}})(e)}return r},Zd=(e,t,r)=>e<t?t:e>r?r:e,eg=(e,t,r)=>{switch(e){case 1:return(t+r)/2;case 3:return r;case 2:case 0:return t}},tg=(e,t)=>{var r,n,i;const o=null===(r=e.ownerDocument.defaultView)||void 0===r?void 0:r.visualViewport,[a,s,l,c]=e===Hd(e)?[0,0,null!==(n=null==o?void 0:o.width)&&void 0!==n?n:e.clientWidth,null!==(i=null==o?void 0:o.height)&&void 0!==i?i:e.clientHeight]:[t.left,t.top,e.clientWidth,e.clientHeight],u=a+e.clientLeft,f=s+e.clientTop;return[f,u+l,f+c,u]},rg=(e,t)=>{const r=[];let n=e.ownerDocument,i=n.defaultView;if(!i)return r;const o=window.getComputedStyle(e),a="rtl"!==o.direction,s=Vd(o.writingMode||o.getPropertyValue("-webkit-writing-mode")||o.getPropertyValue("-ms-writing-mode")),[l,c]=((e,t,r)=>{const[n,i,o]=Pd(t,r,e.block||"start",e.inline||"nearest");return[i,o].map((e,t)=>{switch(e){case"center":return 1;case"nearest":return 0;default:return"start"===e==!(n>>t&1)?2:3}})})(t,s,a);let[u,f,d,g]=((e,t,r)=>{const{top:n,right:i,bottom:o,left:a}=t,s=(l=e.ownerDocument,["scroll-margin","scroll-snap-margin"].filter(e=>e in l.documentElement.style)[0]);var l;if(!s)return[n,i,o,a];const c=e=>{const t=r.getPropertyValue(`${s}-${e}`);return parseInt(t,10)||0};return[n-c("top"),i+c("right"),o+c("bottom"),a-c("left")]})(e,e.getBoundingClientRect(),o);for(let o=$d(e);null!==o;o=$d(o)){if(n!==o.ownerDocument){if(n=o.ownerDocument,i=n.defaultView,!i)break;const{left:e,top:t}=o.getBoundingClientRect();u+=t,f+=e,d+=t,g+=e}const e=i.getComputedStyle(o);if("fixed"===e.position)break;if(!Kd(o,e))continue;const a=o.getBoundingClientRect(),[s,p,h,A]=tg(o,a),m=_d(l,A,p,o.clientWidth,g,f,f-g),I=_d(c,s,h,o.clientHeight,u,d,d-u),y=null===m?0:eg(m,g,f)-eg(m,A,p),v=null===I?0:eg(I,u,d)-eg(I,s,h),b=Xd(e)?Zd(y,-o.scrollWidth+o.clientWidth-o.scrollLeft,-o.scrollLeft):Zd(y,-o.scrollLeft,o.scrollWidth-o.clientWidth-o.scrollLeft),w=Zd(v,-o.scrollTop,o.scrollHeight-o.clientHeight-o.scrollTop);r.push([o,{left:o.scrollLeft+b,top:o.scrollTop+w,behavior:t.behavior}]),u=Math.max(u-w,s),f=Math.min(f-b,p),d=Math.min(d-w,h),g=Math.max(g-b,A)}return r},ng=(e,t,r)=>{const n=t||{};if(!xd(n.behavior))throw new TypeError(Qd("scrollIntoView","Element",n.behavior));rg(e,n).forEach(([e,t])=>{zd(e,t,r)})},ig=(e,t)=>r=>{if(Nd(r))return;const n={scroll:jd,scrollTo:Gd,scrollBy:Jd}[e];t(e,function(){const e=arguments;if(1===arguments.length)return void n(this,e[0],r);n(this,{left:e[0],top:e[1]})})},og=ig("scroll",Md),ag=ig("scrollTo",Md),sg=ig("scrollBy",Md),lg=(e,t)=>{qd(t),Sd(window,e),window[e]=t},cg=ig("scroll",lg),ug=ig("scrollTo",lg),fg=ig("scrollBy",lg);function dg(e){ng(this,{block:null==e||e?"start":"end",inline:"nearest"})}const gg=e=>{if(Nd(e))return;const t=Sd(window.HTMLElement.prototype,"scrollIntoView",dg);Md("scrollIntoView",function(){const r=arguments,n=r[0];1===r.length&&kd(n)?ng(this,n,e):t.apply(this,r)})},pg=e=>{Nd(e)||(og(e),ag(e),sg(e),gg(e),cg(e),ug(e),fg(e))};function hg(e,t,r){(void 0!==r&&!ne(e[t],r)||void 0===r&&!(t in e))&&gi(e,t,r)}function Ag(e){return q(e)&&dt(e)}function mg(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function Ig(e,t,r,n,i,o,a){var s=mg(e,r),l=mg(t,r),c=a.get(l);if(c)hg(e,r,c);else{var u,f=o?o(s,l,r+"",e,t,a):void 0,d=void 0===f;if(d){var g=b(l),p=!g&&Ve(l),h=!g&&!p&&nt(l);f=l,g||p||h?b(s)?f=s:Ag(s)?f=kr(s):p?(d=!1,f=Ei(l,!0)):h?(d=!1,f=Ni(l,!0)):f=[]:br(l)||je(l)?(f=s,je(s)?f=Ai(u=s,yi(u)):R(s)&&!O(s)||(f=Li(l))):d=!1}d&&(a.set(l,f),i(f,l,n,o,a),a.delete(l)),hg(e,r,f)}}function yg(e,t,r,n,i){e!==t&&He(t,function(o,a){if(i||(i=new mt),R(o))Ig(e,t,a,r,yg,n,i);else{var s=n?n(mg(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),hg(e,a,s)}},yi)}var vg,bg=(vg=function(e,t,r){yg(e,t,r)},Oa(function(e,t){var r=-1,n=t.length,i=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(i=vg.length>3&&"function"==typeof i?(n--,i):void 0,o&&gr(t[0],t[1],o)&&(i=n<3?void 0:i,n=1),e=Object(e);++r<n;){var a=t[r];a&&vg(e,a,r,i)}return e}));async function wg(e,t=null,r={}){let n=!0,i=null,o=is();Ce(r)||(r={});let a=Be(r,"disTouchMoveToHide",null);if(Eo(a)||(a=4),a=eo(a),!wr(e))return o.reject("eleImg is not a HTMLElement"),o;if(i=e,null!==t){if(!wr(t))return o.reject("eleGroup is not a HTMLElement"),o;n=!1,i=t}if(!n){let e=gn(t.querySelectorAll("img"));if(0===e)return o.reject("eleGroup does not contain any img"),o;1===e&&(n=!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};n||(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=bg(s,Vi(r)),s.shown=function(){(async()=>{let e=null;await bs(()=>(e=c.viewer,wr(e)));let t=!1,r=0,n=0,i=0;e.addEventListener("touchstart",e=>{let i=e.touches[0];r=i.clientX,n=i.clientY,((e,t)=>{let r=document.elementsFromPoint(e,t).find(e=>"IMG"===e.tagName);if(!wr(r))return!0;let n=r?.classList?.contains("viewer-move");return!n})(r,n)&&(t=!0)},{passive:!1}),e.addEventListener("touchmove",e=>{if(!t)return;let o=e.touches[0],a=o.clientX,s=o.clientY,l=a-r,c=s-n,u=Math.sqrt(l*l+c*c);i+=u,r=o.clientX,n=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(0,vn().Viewer)(i,s);return c.show(),o}function Bg(e,t){let r=new MouseEvent(t,{view:window,bubbles:!0,cancelable:!0});e.dispatchEvent(r)}function Eg(e={}){let t=Be(e,"kind","*"),r=Be(e,"multiple");hn(r)||(r=!1);let n=Be(e,"entireHierarchy");hn(n)||(n=!1),n&&!r&&(r=!0);let i=Be(e,"sizeMbLimit");ke(i)||(i=1e3),i=Hn(i);let o=is(),a="drf"+Lu(),s="GrpDomReadFile";Pf(`[name=${s}]`);let l=yd(t),c=`<div name="${s}" style="position:relative; width:0px; height:0px; overflow:hidden;"><input id="${a}" type="file" accept="${l}" ${r?"multiple":""} ${n?"webkitdirectory":""} style="opacity:0; position:absolute; top:-10000px; left:-10000px;"></div>`;Vu(document.querySelector("body"),c);let u=fd("#"+a),f=!1;function d(e){f=!0;let t=vd(this,i);o.resolve(t),u.removeEventListener("change",d,!0),n||window.removeEventListener("focus",g),Pf(`[name=${s}]`)}function g(e){setTimeout(()=>{f||d()},300)}return u.addEventListener("change",d,!0),n||window.addEventListener("focus",g),Bg(u,"click"),o}function Cg(e){if(!Fe(e))return!1;let t="YYYY-MM-DDTHH:mm:ss";return e===r(e,t).format(t)}yn()&&function(){try{return new MouseEvent("MouseEventPolyfillTest"),!1}catch(e){}let e=function(e,t){t=t||{bubbles:!1,cancelable:!1};let r=document.createEvent("MouseEvent");return r.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),r};e.prototype=Event.prototype,window.MouseEvent=e}();var xg="top",Dg="bottom",Fg="right",Qg="left",Sg="auto",kg=[xg,Dg,Fg,Qg],Ng="start",qg="end",Mg="viewport",Hg="popper",Lg=kg.reduce(function(e,t){return e.concat([t+"-"+Ng,t+"-"+qg])},[]),Ug=[].concat(kg,[Sg]).reduce(function(e,t){return e.concat([t,t+"-"+Ng,t+"-"+qg])},[]),Rg=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Og(e){return e?(e.nodeName||"").toLowerCase():null}function Tg(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Yg(e){return e instanceof Tg(e).Element||e instanceof Element}function jg(e){return e instanceof Tg(e).HTMLElement||e instanceof HTMLElement}function Gg(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Tg(e).ShadowRoot||e instanceof ShadowRoot)}var Jg={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},i=t.elements[e];jg(i)&&Og(i)&&(Object.assign(i.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});jg(n)&&Og(n)&&(Object.assign(n.style,o),Object.keys(i).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]};function zg(e){return e.split("-")[0]}var Vg=Math.max,Pg=Math.min,Xg=Math.round;function _g(){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 Wg(){return!/^((?!chrome|android).)*safari/i.test(_g())}function Kg(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&jg(e)&&(i=e.offsetWidth>0&&Xg(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Xg(n.height)/e.offsetHeight||1);var a=(Yg(e)?Tg(e):window).visualViewport,s=!Wg()&&r,l=(n.left+(s&&a?a.offsetLeft:0))/i,c=(n.top+(s&&a?a.offsetTop:0))/o,u=n.width/i,f=n.height/o;return{width:u,height:f,top:c,right:l+u,bottom:c+f,left:l,x:l,y:c}}function $g(e){var t=Kg(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Zg(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Gg(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ep(e){return Tg(e).getComputedStyle(e)}function tp(e){return["table","td","th"].indexOf(Og(e))>=0}function rp(e){return((Yg(e)?e.ownerDocument:e.document)||window.document).documentElement}function np(e){return"html"===Og(e)?e:e.assignedSlot||e.parentNode||(Gg(e)?e.host:null)||rp(e)}function ip(e){return jg(e)&&"fixed"!==ep(e).position?e.offsetParent:null}function op(e){for(var t=Tg(e),r=ip(e);r&&tp(r)&&"static"===ep(r).position;)r=ip(r);return r&&("html"===Og(r)||"body"===Og(r)&&"static"===ep(r).position)?t:r||function(e){var t=/firefox/i.test(_g());if(/Trident/i.test(_g())&&jg(e)&&"fixed"===ep(e).position)return null;var r=np(e);for(Gg(r)&&(r=r.host);jg(r)&&["html","body"].indexOf(Og(r))<0;){var n=ep(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}function ap(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function sp(e,t,r){return Vg(e,Pg(t,r))}function lp(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function cp(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}var up={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,s=zg(r.placement),l=ap(s),c=[Qg,Fg].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return lp("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:cp(e,kg))}(i.padding,r),f=$g(o),d="y"===l?xg:Qg,g="y"===l?Dg:Fg,p=r.rects.reference[c]+r.rects.reference[l]-a[l]-r.rects.popper[c],h=a[l]-r.rects.reference[l],A=op(o),m=A?"y"===l?A.clientHeight||0:A.clientWidth||0:0,I=p/2-h/2,y=u[d],v=m-f[c]-u[g],b=m/2-f[c]/2+I,w=sp(y,b,v),B=l;r.modifiersData[n]=((t={})[B]=w,t.centerOffset=w-b,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&Zg(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fp(e){return e.split("-")[1]}var dp={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gp(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,d=a.x,g=void 0===d?0:d,p=a.y,h=void 0===p?0:p,A="function"==typeof u?u({x:g,y:h}):{x:g,y:h};g=A.x,h=A.y;var m=a.hasOwnProperty("x"),I=a.hasOwnProperty("y"),y=Qg,v=xg,b=window;if(c){var w=op(r),B="clientHeight",E="clientWidth";if(w===Tg(r)&&"static"!==ep(w=rp(r)).position&&"absolute"===s&&(B="scrollHeight",E="scrollWidth"),i===xg||(i===Qg||i===Fg)&&o===qg)v=Dg,h-=(f&&w===b&&b.visualViewport?b.visualViewport.height:w[B])-n.height,h*=l?1:-1;if(i===Qg||(i===xg||i===Dg)&&o===qg)y=Fg,g-=(f&&w===b&&b.visualViewport?b.visualViewport.width:w[E])-n.width,g*=l?1:-1}var C,x=Object.assign({position:s},c&&dp),D=!0===u?function(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:Xg(r*i)/i||0,y:Xg(n*i)/i||0}}({x:g,y:h},Tg(r)):{x:g,y:h};return g=D.x,h=D.y,l?Object.assign({},x,((C={})[v]=I?"0":"",C[y]=m?"0":"",C.transform=(b.devicePixelRatio||1)<=1?"translate("+g+"px, "+h+"px)":"translate3d("+g+"px, "+h+"px, 0)",C)):Object.assign({},x,((t={})[v]=I?h+"px":"",t[y]=m?g+"px":"",t.transform="",t))}var pp={passive:!0};var hp={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=void 0===i||i,a=n.resize,s=void 0===a||a,l=Tg(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",r.update,pp)}),s&&l.addEventListener("resize",r.update,pp),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",r.update,pp)}),s&&l.removeEventListener("resize",r.update,pp)}},data:{}},Ap={left:"right",right:"left",bottom:"top",top:"bottom"};function mp(e){return e.replace(/left|right|bottom|top/g,function(e){return Ap[e]})}var Ip={start:"end",end:"start"};function yp(e){return e.replace(/start|end/g,function(e){return Ip[e]})}function vp(e){var t=Tg(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function bp(e){return Kg(rp(e)).left+vp(e).scrollLeft}function wp(e){var t=ep(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Bp(e){return["html","body","#document"].indexOf(Og(e))>=0?e.ownerDocument.body:jg(e)&&wp(e)?e:Bp(np(e))}function Ep(e,t){var r;void 0===t&&(t=[]);var n=Bp(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),o=Tg(n),a=i?[o].concat(o.visualViewport||[],wp(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(Ep(np(a)))}function Cp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function xp(e,t,r){return t===Mg?Cp(function(e,t){var r=Tg(e),n=rp(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=Wg();(c||!c&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+bp(e),y:l}}(e,r)):Yg(t)?function(e,t){var r=Kg(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):Cp(function(e){var t,r=rp(e),n=vp(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=Vg(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Vg(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+bp(e),l=-n.scrollTop;return"rtl"===ep(i||r).direction&&(s+=Vg(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(rp(e)))}function Dp(e,t,r,n){var i="clippingParents"===t?function(e){var t=Ep(np(e)),r=["absolute","fixed"].indexOf(ep(e).position)>=0&&jg(e)?op(e):e;return Yg(r)?t.filter(function(e){return Yg(e)&&Zg(e,r)&&"body"!==Og(e)}):[]}(e):[].concat(t),o=[].concat(i,[r]),a=o[0],s=o.reduce(function(t,r){var i=xp(e,r,n);return t.top=Vg(i.top,t.top),t.right=Pg(i.right,t.right),t.bottom=Pg(i.bottom,t.bottom),t.left=Vg(i.left,t.left),t},xp(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Fp(e){var t,r=e.reference,n=e.element,i=e.placement,o=i?zg(i):null,a=i?fp(i):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(o){case xg:t={x:s,y:r.y-n.height};break;case Dg:t={x:s,y:r.y+r.height};break;case Fg:t={x:r.x+r.width,y:l};break;case Qg:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var c=o?ap(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Ng:t[c]=t[c]-(r[u]/2-n[u]/2);break;case qg:t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}function Qp(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=void 0===n?e.placement:n,o=r.strategy,a=void 0===o?e.strategy:o,s=r.boundary,l=void 0===s?"clippingParents":s,c=r.rootBoundary,u=void 0===c?Mg:c,f=r.elementContext,d=void 0===f?Hg:f,g=r.altBoundary,p=void 0!==g&&g,h=r.padding,A=void 0===h?0:h,m=lp("number"!=typeof A?A:cp(A,kg)),I=d===Hg?"reference":Hg,y=e.rects.popper,v=e.elements[p?I:d],b=Dp(Yg(v)?v:v.contextElement||rp(e.elements.popper),l,u,a),w=Kg(e.elements.reference),B=Fp({reference:w,element:y,strategy:"absolute",placement:i}),E=Cp(Object.assign({},y,B)),C=d===Hg?E:w,x={top:b.top-C.top+m.top,bottom:C.bottom-b.bottom+m.bottom,left:b.left-C.left+m.left,right:C.right-b.right+m.right},D=e.modifiersData.offset;if(d===Hg&&D){var F=D[i];Object.keys(x).forEach(function(e){var t=[Fg,Dg].indexOf(e)>=0?1:-1,r=[xg,Dg].indexOf(e)>=0?"y":"x";x[e]+=F[r]*t})}return x}function Sp(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?Ug:l,u=fp(n),f=u?s?Lg:Lg.filter(function(e){return fp(e)===u}):kg,d=f.filter(function(e){return c.indexOf(e)>=0});0===d.length&&(d=f);var g=d.reduce(function(t,r){return t[r]=Qp(e,{placement:r,boundary:i,rootBoundary:o,padding:a})[zg(r)],t},{});return Object.keys(g).sort(function(e,t){return g[e]-g[t]})}var kp={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=void 0===i||i,a=r.altAxis,s=void 0===a||a,l=r.fallbackPlacements,c=r.padding,u=r.boundary,f=r.rootBoundary,d=r.altBoundary,g=r.flipVariations,p=void 0===g||g,h=r.allowedAutoPlacements,A=t.options.placement,m=zg(A),I=l||(m===A||!p?[mp(A)]:function(e){if(zg(e)===Sg)return[];var t=mp(e);return[yp(e),t,yp(t)]}(A)),y=[A].concat(I).reduce(function(e,r){return e.concat(zg(r)===Sg?Sp(t,{placement:r,boundary:u,rootBoundary:f,padding:c,flipVariations:p,allowedAutoPlacements:h}):r)},[]),v=t.rects.reference,b=t.rects.popper,w=new Map,B=!0,E=y[0],C=0;C<y.length;C++){var x=y[C],D=zg(x),F=fp(x)===Ng,Q=[xg,Dg].indexOf(D)>=0,S=Q?"width":"height",k=Qp(t,{placement:x,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),N=Q?F?Fg:Qg:F?Dg:xg;v[S]>b[S]&&(N=mp(N));var q=mp(N),M=[];if(o&&M.push(k[D]<=0),s&&M.push(k[N]<=0,k[q]<=0),M.every(function(e){return e})){E=x,B=!1;break}w.set(x,M)}if(B)for(var H=function(e){var t=y.find(function(t){var r=w.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return E=t,"break"},L=p?3:1;L>0;L--){if("break"===H(L))break}t.placement!==E&&(t.modifiersData[n]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Np(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function qp(e){return[xg,Fg,Dg,Qg].some(function(t){return e[t]>=0})}var Mp={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=void 0===i?[0,0]:i,a=Ug.reduce(function(e,r){return e[r]=function(e,t,r){var n=zg(e),i=[Qg,xg].indexOf(n)>=0?-1:1,o="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Qg,Fg].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,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[n]=a}};var Hp={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=void 0===i||i,a=r.altAxis,s=void 0!==a&&a,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,f=r.padding,d=r.tether,g=void 0===d||d,p=r.tetherOffset,h=void 0===p?0:p,A=Qp(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),m=zg(t.placement),I=fp(t.placement),y=!I,v=ap(m),b="x"===v?"y":"x",w=t.modifiersData.popperOffsets,B=t.rects.reference,E=t.rects.popper,C="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,x="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(w){if(o){var Q,S="y"===v?xg:Qg,k="y"===v?Dg:Fg,N="y"===v?"height":"width",q=w[v],M=q+A[S],H=q-A[k],L=g?-E[N]/2:0,U=I===Ng?B[N]:E[N],R=I===Ng?-E[N]:-B[N],O=t.elements.arrow,T=g&&O?$g(O):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},j=Y[S],G=Y[k],J=sp(0,B[N],T[N]),z=y?B[N]/2-L-J-j-x.mainAxis:U-J-j-x.mainAxis,V=y?-B[N]/2+L+J+G+x.mainAxis:R+J+G+x.mainAxis,P=t.elements.arrow&&op(t.elements.arrow),X=P?"y"===v?P.clientTop||0:P.clientLeft||0:0,_=null!=(Q=null==D?void 0:D[v])?Q:0,W=q+V-_,K=sp(g?Pg(M,q+z-_-X):M,q,g?Vg(H,W):H);w[v]=K,F[v]=K-q}if(s){var $,Z="x"===v?xg:Qg,ee="x"===v?Dg:Fg,te=w[b],re="y"===b?"height":"width",ne=te+A[Z],ie=te-A[ee],oe=-1!==[xg,Qg].indexOf(m),ae=null!=($=null==D?void 0:D[b])?$:0,se=oe?ne:te-B[re]-E[re]-ae+x.altAxis,le=oe?te+B[re]+E[re]-ae-x.altAxis:ie,ce=g&&oe?function(e,t,r){var n=sp(e,t,r);return n>r?r:n}(se,te,le):sp(g?se:ne,te,g?le:ie);w[b]=ce,F[b]=ce-te}t.modifiersData[n]=F}},requiresIfExists:["offset"]};function Lp(e,t,r){void 0===r&&(r=!1);var n,i,o=jg(t),a=jg(t)&&function(e){var t=e.getBoundingClientRect(),r=Xg(t.width)/e.offsetWidth||1,n=Xg(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),s=rp(t),l=Kg(e,a,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!r)&&(("body"!==Og(t)||wp(s))&&(c=(n=t)!==Tg(n)&&jg(n)?{scrollLeft:(i=n).scrollLeft,scrollTop:i.scrollTop}:vp(n)),jg(t)?((u=Kg(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=bp(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Up(e){var t=new Map,r=new Set,n=[];function i(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!r.has(e)){var n=t.get(e);n&&i(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){r.has(e.name)||i(e)}),n}var Rp={placement:"bottom",modifiers:[],strategy:"absolute"};function Op(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Tp(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,i=t.defaultOptions,o=void 0===i?Rp:i;return function(e,t,r){void 0===r&&(r=o);var i,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Rp,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(r){var i="function"==typeof r?r(s.options):r;f(),s.options=Object.assign({},o,s.options,i),s.scrollParents={reference:Yg(e)?Ep(e):e.contextElement?Ep(e.contextElement):[],popper:Ep(t)};var a,c,d=function(e){var t=Up(e);return Rg.reduce(function(e,r){return e.concat(t.filter(function(e){return e.phase===r}))},[])}((a=[].concat(n,s.options.modifiers),c=a.reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{}),Object.keys(c).map(function(e){return c[e]})));return s.orderedModifiers=d.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,i=e.effect;if("function"==typeof i){var o=i({state:s,name:t,instance:u,options:n}),a=function(){};l.push(o||a)}}),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,r=e.popper;if(Op(t,r)){s.rects={reference:Lp(t,op(r),"fixed"===s.options.strategy),popper:$g(r)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var n=0;n<s.orderedModifiers.length;n++)if(!0!==s.reset){var i=s.orderedModifiers[n],o=i.fn,a=i.options,l=void 0===a?{}:a,f=i.name;"function"==typeof o&&(s=o({state:s,options:l,name:f,instance:u})||s)}else s.reset=!1,n=-1}}},update:(i=function(){return new Promise(function(e){u.forceUpdate(),e(s)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(i())})})),a}),destroy:function(){f(),c=!0}};if(!Op(e,t))return u;function f(){l.forEach(function(e){return e()}),l=[]}return u.setOptions(r).then(function(e){!c&&r.onFirstUpdate&&r.onFirstUpdate(e)}),u}}var Yp=Tp({defaultModifiers:[hp,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=Fp({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,r=e.options,n=r.gpuAcceleration,i=void 0===n||n,o=r.adaptive,a=void 0===o||o,s=r.roundOffsets,l=void 0===s||s,c={placement:zg(t.placement),variation:fp(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,gp(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,gp(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:{}},Jg,Mp,kp,Hp,up,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Qp(t,{elementContext:"reference"}),s=Qp(t,{altBoundary:!0}),l=Np(a,n),c=Np(s,i,o),u=qp(l),f=qp(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}}]}),jp="tippy-content",Gp="tippy-arrow",Jp="tippy-svg-arrow",zp={passive:!0,capture:!0},Vp=function(){return document.body};function Pp(e,t,r){if(Array.isArray(e)){var n=e[t];return null==n?Array.isArray(r)?r[t]:r:n}return e}function Xp(e,t){var r={}.toString.call(e);return 0===r.indexOf("[object")&&r.indexOf(t+"]")>-1}function _p(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Wp(e,t){return 0===t?e:function(n){clearTimeout(r),r=setTimeout(function(){e(n)},t)};var r}function Kp(e){return[].concat(e)}function $p(e,t){-1===e.indexOf(t)&&e.push(t)}function Zp(e){return[].slice.call(e)}function eh(e){return Object.keys(e).reduce(function(t,r){return void 0!==e[r]&&(t[r]=e[r]),t},{})}function th(){return document.createElement("div")}function rh(e){return["Element","Fragment"].some(function(t){return Xp(e,t)})}function nh(e){return rh(e)?[e]:function(e){return Xp(e,"NodeList")}(e)?Zp(e):Array.isArray(e)?e:Zp(document.querySelectorAll(e))}function ih(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function oh(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function ah(e,t,r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[n](t,r)})}function sh(e,t){for(var r=t;r;){var n;if(e.contains(r))return!0;r=null==r.getRootNode||null==(n=r.getRootNode())?void 0:n.host}return!1}var lh={isTouch:!1},ch=0;function uh(){lh.isTouch||(lh.isTouch=!0,window.performance&&document.addEventListener("mousemove",fh))}function fh(){var e=performance.now();e-ch<20&&(lh.isTouch=!1,document.removeEventListener("mousemove",fh)),ch=e}function dh(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var r=t._tippy;t.blur&&!r.state.isVisible&&t.blur()}}var gh,ph=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;function hh(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 Ah(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function mh(e){return Ah("\n %ctippy.js\n\n %c"+Ah(e)+"\n\n %c👷‍ This is a development-only message. It will be removed in production.\n ")}function Ih(e){return[mh(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function yh(e,t){var r;e&&!gh.has(t)&&(gh.add(t),(r=console).warn.apply(r,Ih(t)))}function vh(e,t){var r;e&&!gh.has(t)&&(gh.add(t),(r=console).error.apply(r,Ih(t)))}gh=new Set;var bh={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},wh=Object.assign({appendTo:Vp,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},bh,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Bh=Object.keys(wh);function Eh(e){var t=(e.plugins||[]).reduce(function(t,r){var n,i=r.name,o=r.defaultValue;i&&(t[i]=void 0!==e[i]?e[i]:null!=(n=wh[i])?n:o);return t},{});return Object.assign({},e,t)}function Ch(e,t){var r=Object.assign({},t,{content:_p(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Eh(Object.assign({},wh,{plugins:t}))):Bh).reduce(function(t,r){var n=(e.getAttribute("data-tippy-"+r)||"").trim();if(!n)return t;if("content"===r)t[r]=n;else try{t[r]=JSON.parse(n)}catch(e){t[r]=n}return t},{})}(e,t.plugins));return r.aria=Object.assign({},wh.aria,r.aria),r.aria={expanded:"auto"===r.aria.expanded?t.interactive:r.aria.expanded,content:"auto"===r.aria.content?t.interactive?null:"describedby":r.aria.content},r}function xh(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),Object.keys(e).forEach(function(e){var r=function(e,t){var r=Object.assign({},e);return t.forEach(function(e){delete r[e]}),r}(wh,Object.keys(bh)),n=!function(e,t){return{}.hasOwnProperty.call(e,t)}(r,e);n&&(n=0===t.filter(function(t){return t.name===e}).length),yh(n,["`"+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 Dh(e,t){e.innerHTML=t}function Fh(e){var t=th();return!0===e?t.className=Gp:(t.className=Jp,rh(e)?t.appendChild(e):Dh(t,e)),t}function Qh(e,t){rh(t.content)?(Dh(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Dh(e,t.content):e.textContent=t.content)}function Sh(e){var t=e.firstElementChild,r=Zp(t.children);return{box:t,content:r.find(function(e){return e.classList.contains(jp)}),arrow:r.find(function(e){return e.classList.contains(Gp)||e.classList.contains(Jp)}),backdrop:r.find(function(e){return e.classList.contains("tippy-backdrop")})}}function kh(e){var t=th(),r=th();r.className="tippy-box",r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=th();function i(r,n){var i=Sh(t),o=i.box,a=i.content,s=i.arrow;n.theme?o.setAttribute("data-theme",n.theme):o.removeAttribute("data-theme"),"string"==typeof n.animation?o.setAttribute("data-animation",n.animation):o.removeAttribute("data-animation"),n.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?o.setAttribute("role",n.role):o.removeAttribute("role"),r.content===n.content&&r.allowHTML===n.allowHTML||Qh(a,e.props),n.arrow?s?r.arrow!==n.arrow&&(o.removeChild(s),o.appendChild(Fh(n.arrow))):o.appendChild(Fh(n.arrow)):s&&o.removeChild(s)}return n.className=jp,n.setAttribute("data-state","hidden"),Qh(n,e.props),t.appendChild(r),r.appendChild(n),i(e.props,e.props),{popper:t,onUpdate:i}}kh.$$tippy=!0;var Nh=1,qh=[],Mh=[];function Hh(e,t){var r,n,i,o,a,s,l,c,u=Ch(e,Object.assign({},wh,Eh(eh(t)))),f=!1,d=!1,g=!1,p=!1,h=[],A=Wp(P,u.interactiveDebounce),m=Nh++,I=(c=u.plugins).filter(function(e,t){return c.indexOf(e)===t}),y={id:m,reference:e,popper:th(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:I,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(n),cancelAnimationFrame(i)},setProps:function(t){if(yh(y.state.isDestroyed,hh("setProps")),y.state.isDestroyed)return;q("onBeforeUpdate",[y,t]),z();var r=y.props,n=Ch(e,Object.assign({},r,eh(t),{ignoreAttributes:!0}));y.props=n,J(),r.interactiveDebounce!==n.interactiveDebounce&&(L(),A=Wp(P,n.interactiveDebounce));r.triggerTarget&&!n.triggerTarget?Kp(r.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):n.triggerTarget&&e.removeAttribute("aria-expanded");H(),N(),w&&w(r,n);y.popperInstance&&(K(),Z().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}));q("onAfterUpdate",[y,t])},setContent:function(e){y.setProps({content:e})},show:function(){yh(y.state.isDestroyed,hh("show"));var e=y.state.isVisible,t=y.state.isDestroyed,r=!y.state.isEnabled,n=lh.isTouch&&!y.props.touch,i=Pp(y.props.duration,0,wh.duration);if(e||t||r||n)return;if(F().hasAttribute("disabled"))return;if(q("onShow",[y],!1),!1===y.props.onShow(y))return;y.state.isVisible=!0,D()&&(b.style.visibility="visible");N(),T(),y.state.isMounted||(b.style.transition="none");if(D()){var o=S();ih([o.box,o.content],0)}s=function(){var e;if(y.state.isVisible&&!p){if(p=!0,b.offsetHeight,b.style.transition=y.props.moveTransition,D()&&y.props.animation){var t=S(),r=t.box,n=t.content;ih([r,n],i),oh([r,n],"visible")}M(),H(),$p(Mh,y),null==(e=y.popperInstance)||e.forceUpdate(),q("onMount",[y]),y.props.animation&&D()&&function(e,t){j(e,t)}(i,function(){y.state.isShown=!0,q("onShown",[y])})}},function(){var e,t=y.props.appendTo,r=F();e=y.props.interactive&&t===Vp||"parent"===t?r.parentNode:_p(t,[r]);e.contains(b)||e.appendChild(b);y.state.isMounted=!0,K(),yh(y.props.interactive&&t===wh.appendTo&&r.nextElementSibling!==b,["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(){yh(y.state.isDestroyed,hh("hide"));var e=!y.state.isVisible,t=y.state.isDestroyed,r=!y.state.isEnabled,n=Pp(y.props.duration,1,wh.duration);if(e||t||r)return;if(q("onHide",[y],!1),!1===y.props.onHide(y))return;y.state.isVisible=!1,y.state.isShown=!1,p=!1,f=!1,D()&&(b.style.visibility="hidden");if(L(),Y(),N(!0),D()){var i=S(),o=i.box,a=i.content;y.props.animation&&(ih([o,a],n),oh([o,a],"hidden"))}M(),H(),y.props.animation?D()&&function(e,t){j(e,function(){!y.state.isVisible&&b.parentNode&&b.parentNode.contains(b)&&t()})}(n,y.unmount):y.unmount()},hideWithInteractivity:function(e){yh(y.state.isDestroyed,hh("hideWithInteractivity")),Q().addEventListener("mousemove",A),$p(qh,A),A(e)},enable:function(){y.state.isEnabled=!0},disable:function(){y.hide(),y.state.isEnabled=!1},unmount:function(){yh(y.state.isDestroyed,hh("unmount")),y.state.isVisible&&y.hide();if(!y.state.isMounted)return;$(),Z().forEach(function(e){e._tippy.unmount()}),b.parentNode&&b.parentNode.removeChild(b);Mh=Mh.filter(function(e){return e!==y}),y.state.isMounted=!1,q("onHidden",[y])},destroy:function(){if(yh(y.state.isDestroyed,hh("destroy")),y.state.isDestroyed)return;y.clearDelayTimeouts(),y.unmount(),z(),delete e._tippy,y.state.isDestroyed=!0,q("onDestroy",[y])}};if(!u.render)return vh(!0,"render() function has not been supplied."),y;var v=u.render(y),b=v.popper,w=v.onUpdate;b.setAttribute("data-tippy-root",""),b.id="tippy-"+y.id,y.popper=b,e._tippy=y,b._tippy=y;var B=I.map(function(e){return e.fn(y)}),E=e.hasAttribute("aria-expanded");return J(),H(),N(),q("onCreate",[y]),u.showOnCreate&&ee(),b.addEventListener("mouseenter",function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()}),b.addEventListener("mouseleave",function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&Q().addEventListener("mousemove",A)}),y;function C(){var e=y.props.touch;return Array.isArray(e)?e:[e,0]}function x(){return"hold"===C()[0]}function D(){var e;return!(null==(e=y.props.render)||!e.$$tippy)}function F(){return l||e}function Q(){var e,t,r=F().parentNode;return r?null!=(t=Kp(r)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function S(){return Sh(b)}function k(e){return y.state.isMounted&&!y.state.isVisible||lh.isTouch||o&&"focus"===o.type?0:Pp(y.props.delay,e?0:1,wh.delay)}function N(e){void 0===e&&(e=!1),b.style.pointerEvents=y.props.interactive&&!e?"":"none",b.style.zIndex=""+y.props.zIndex}function q(e,t,r){var n;(void 0===r&&(r=!0),B.forEach(function(r){r[e]&&r[e].apply(r,t)}),r)&&(n=y.props)[e].apply(n,t)}function M(){var t=y.props.aria;if(t.content){var r="aria-"+t.content,n=b.id;Kp(y.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(r);if(y.state.isVisible)e.setAttribute(r,t?t+" "+n:n);else{var i=t&&t.replace(n,"").trim();i?e.setAttribute(r,i):e.removeAttribute(r)}})}}function H(){!E&&y.props.aria.expanded&&Kp(y.props.triggerTarget||e).forEach(function(e){y.props.interactive?e.setAttribute("aria-expanded",y.state.isVisible&&e===F()?"true":"false"):e.removeAttribute("aria-expanded")})}function L(){Q().removeEventListener("mousemove",A),qh=qh.filter(function(e){return e!==A})}function U(t){if(!lh.isTouch||!g&&"mousedown"!==t.type){var r=t.composedPath&&t.composedPath()[0]||t.target;if(!y.props.interactive||!sh(b,r)){if(Kp(y.props.triggerTarget||e).some(function(e){return sh(e,r)})){if(lh.isTouch)return;if(y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else q("onClickOutside",[y,t]);!0===y.props.hideOnClick&&(y.clearDelayTimeouts(),y.hide(),d=!0,setTimeout(function(){d=!1}),y.state.isMounted||Y())}}}function R(){g=!0}function O(){g=!1}function T(){var e=Q();e.addEventListener("mousedown",U,!0),e.addEventListener("touchend",U,zp),e.addEventListener("touchstart",O,zp),e.addEventListener("touchmove",R,zp)}function Y(){var e=Q();e.removeEventListener("mousedown",U,!0),e.removeEventListener("touchend",U,zp),e.removeEventListener("touchstart",O,zp),e.removeEventListener("touchmove",R,zp)}function j(e,t){var r=S().box;function n(e){e.target===r&&(ah(r,"remove",n),t())}if(0===e)return t();ah(r,"remove",a),ah(r,"add",n),a=n}function G(t,r,n){void 0===n&&(n=!1),Kp(y.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,r,n),h.push({node:e,eventType:t,handler:r,options:n})})}function J(){var e;x()&&(G("touchstart",V,{passive:!0}),G("touchend",X,{passive:!0})),(e=y.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(G(e,V),e){case"mouseenter":G("mouseleave",X);break;case"focus":G(ph?"focusout":"blur",_);break;case"focusin":G("focusout",_)}})}function z(){h.forEach(function(e){var t=e.node,r=e.eventType,n=e.handler,i=e.options;t.removeEventListener(r,n,i)}),h=[]}function V(e){var t,r=!1;if(y.state.isEnabled&&!W(e)&&!d){var n="focus"===(null==(t=o)?void 0:t.type);o=e,l=e.currentTarget,H(),!y.state.isVisible&&Xp(e,"MouseEvent")&&qh.forEach(function(t){return t(e)}),"click"===e.type&&(y.props.trigger.indexOf("mouseenter")<0||f)&&!1!==y.props.hideOnClick&&y.state.isVisible?r=!0:ee(e),"click"===e.type&&(f=!r),r&&!n&&te(e)}}function P(e){var t=e.target,r=F().contains(t)||b.contains(t);if("mousemove"!==e.type||!r){var n=Z().concat(b).map(function(e){var t,r=null==(t=e._tippy.popperInstance)?void 0:t.state;return r?{popperRect:e.getBoundingClientRect(),popperState:r,props:u}:null}).filter(Boolean);(function(e,t){var r=t.clientX,n=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,f="left"===a?s.right.x:0,d=t.top-n+l>o,g=n-t.bottom-c>o,p=t.left-r+u>o,h=r-t.right-f>o;return d||g||p||h})})(n,e)&&(L(),te(e))}}function X(e){W(e)||y.props.trigger.indexOf("click")>=0&&f||(y.props.interactive?y.hideWithInteractivity(e):te(e))}function _(e){y.props.trigger.indexOf("focusin")<0&&e.target!==F()||y.props.interactive&&e.relatedTarget&&b.contains(e.relatedTarget)||te(e)}function W(e){return!!lh.isTouch&&x()!==e.type.indexOf("touch")>=0}function K(){$();var t=y.props,r=t.popperOptions,n=t.placement,i=t.offset,o=t.getReferenceClientRect,a=t.moveTransition,l=D()?Sh(b).arrow:null,c=o?{getBoundingClientRect:o,contextElement:o.contextElement||F()}:e,u={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(D()){var r=S().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?r.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?r.setAttribute("data-"+e,""):r.removeAttribute("data-"+e)}),t.attributes.popper={}}}},f=[{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];D()&&l&&f.push({name:"arrow",options:{element:l,padding:3}}),f.push.apply(f,(null==r?void 0:r.modifiers)||[]),y.popperInstance=Yp(c,b,Object.assign({},r,{placement:n,onFirstUpdate:s,modifiers:f}))}function $(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function Z(){return Zp(b.querySelectorAll("[data-tippy-root]"))}function ee(e){y.clearDelayTimeouts(),e&&q("onTrigger",[y,e]),T();var t=k(!0),n=C(),i=n[0],o=n[1];lh.isTouch&&"hold"===i&&o&&(t=o),t?r=setTimeout(function(){y.show()},t):y.show()}function te(e){if(y.clearDelayTimeouts(),q("onUntrigger",[y,e]),y.state.isVisible){if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=k(!1);t?n=setTimeout(function(){y.state.isVisible&&y.hide()},t):i=requestAnimationFrame(function(){y.hide()})}}else Y()}}function Lh(e,t){void 0===t&&(t={});var r=wh.plugins.concat(t.plugins||[]);!function(e){var t=!e,r="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;vh(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),vh(r,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(e),xh(t,r),document.addEventListener("touchstart",uh,zp),window.addEventListener("blur",dh);var n=Object.assign({},t,{plugins:r}),i=nh(e),o=rh(n.content),a=i.length>1;yh(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 r=t&&Hh(t,n);return r&&e.push(r),e},[]);return rh(e)?s[0]:s}function Uh(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===r&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}Lh.defaultProps=wh,Lh.setDefaultProps=function(e){xh(e,[]),Object.keys(e).forEach(function(t){wh[t]=e[t]})},Lh.currentInput=lh,Object.assign({},Jg,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}}),Lh.setDefaultProps({render:kh});Uh('.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 Rh(e,t={}){if(!ba(e))throw new Error("invalid fun");let r=Be(t,"width");r=Fe(r)?la(r):ke(r)?Hn(r):null;let n=Be(t,"height");n=Fe(n)?la(n):ke(n)?Hn(n):null;let i=document.createElement("div");ke(r)&&(i.style.width=`${r}px`),ke(n)&&(i.style.height=`${n}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),Xf(document.querySelector("body"),l);let c=e(i);return s=vs(c)?await c:c,Pf(l),s}function Oh(e){if(!ba(e))throw new Error("fn is not a function");return function(){let t=is(),r=null,n=null;try{r=e.apply(this,arguments)}catch(e){n=e}return null!==n?t.resolve({state:"error",msg:n}):vs(r)?r.then(e=>{t.resolve({state:"success",msg:e})}).catch(e=>{"cancelled"===Be(e,"reason")?t.resolve({state:"cancelled",msg:""}):t.resolve({state:"error",msg:e})}):t.resolve({state:"success",msg:r}),t}}Uh(".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 Th=Oh;function Yh(e){if(!Ln(e))return!1;return eo(e)<0}function jh(e=0){let t=0,r=[];Yh(e)&&(e=0),e=eo(e);let n=_i();return n.get=function(){if(r.length>0){return t+=1,r.splice(0,1)[0]}return null},n.cb=function(){t-=1,t<0&&(t=0),r.length>0&&n.emit("message",r)},n.push=function(i){r.push(i),(e<=0||t<e)&&n.emit("message",r)},n.clear=function(){t=0,r=[]},n}function Gh(e=0,t=!1){return new function(e,t){let r=null;Eo(e)||(e=0),e=eo(e),pn(t)||(t=!1);let n=jh(e);return n.on("message",async function(e){let t=n.get();if(!t)return;await ws(1);let r,i=Be(t,"id"),o=Be(t,"fun"),a=Be(t,"input");r=ba(o)?await Th(o)(...a):{state:"error",msg:"fun is not a function"},n.emit(i,r),n.cb()}),function(e,...i){let o=is(),a=Lu();r=a;let s={id:a,fun:e,input:i};return n.push(s),n.once(a,e=>{t?a===r?"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 Jh(e,t){yn()?Fe(e)?Pu()?function(e,t){window.navigator.msSaveOrOpenBlob(t,e)}(e,t):function(e,t){let r=window.URL.createObjectURL(t),n=document.createElement("a");n.href=r,n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(r)}(e,t):console.log("no filename"):console.log("no window")}function zh(e,t="data"){if(!Ee(e))return{error:"sheet is not an object"};Fe(t)||(t="data");let r=Su();return r.SheetNames.push(t),r.Sheets[t]=e,r}function Vh(e,t="data"){if(!xe(e)&&!wr(e))return{error:"data is not an array or element"};Fe(t)||(t="data");let r=null,n=wn(e);return Ne(n,"error")?n:(r=zh(n,t),Ne(r,"error"),r)}function Ph(e,t="data",r){if(!Fe(e)){let t="no filename";return console.log(t,e),{error:t}}if(Fe(t)||(t="data"),!xe(r)&&!wr(r)){let e="data is not an array or element";return console.log(e,r),{error:e}}xe(r)&&Ce(Be(r,0,null))&&(r=In(r));let n=Vh(r,t);if(Be(n,"error"))return console.log(n.error),n.error;let i=bn();if(yn()){let t=i.write(n,{bookType:"xlsx",bookSST:!1,type:"array"});Jh(e,new Blob([t]))}else try{i.writeFile(n,e)}catch(e){let t=`xl.writeFile failed: ${Be(e,"message",e)}. 提示: 若於Node ESM環境單獨深度import此檔, xlsx ESM build的_fs未注入會擲此錯; 請改用 import { downloadExcelFileFromData } from 'wsemi' (走package main的UMD bundle, xlsx CJS自動載fs), 或於app entry手動呼叫 XLSX.set_fs(fs) 注入fs`;return console.log(t),t}return"ok"}function Xh(e){if(!es(e))return new Blob;return new Blob([e])}function _h(e,t,r=""){if(!Or(t))return{};let n={};return Cr(t,function(t){n[t]=Be(e,t,r)}),n}function Wh(e,t){if(!Ee(e))return{};if(!Or(t))return{};let r={};return Cr(t,function(t){Ne(e,t)&&(r[t]=Be(e,t))}),r}function Kh(e,t=0,r={}){Eo(t)||(t=0),t=eo(t);let n=Be(r,"rounding","");return"ROUND_HALF_UP"!==n&&"ROUND_HALF_EVEN"!==n&&(n="ROUND_HALF_UP"),ke(e)?new oc(e).toDecimalPlaces(t,oc[n]).toNumber():""}function $h(e,t={}){if(!ke(e))throw new Error("v is not a number");let r=Be(t,"returnDigit");if(hn(r)||(r=!1),Ln(e))return r?0:ja(e);let n=null,i=null;for(let t=1;t<=16;t++){let r=e*Math.pow(10,t);if(Math.abs(r-Math.round(r))<1e-9){n=t,i=sc(e,t);break}}return null===i&&(n=16,i=ja(e)),r?n:i}let Zh=e=>{let t=1;e<0&&(t=-1);let r=null;if((e=Math.abs(e))<.1)for(let n=1;n<16;n++){let i=Math.pow(10,n);if((e*=i)<1){r={r:1/i,v:t*e};break}}else{if(e<1)return{r:1,v:t*e};if(e>=1)for(let n=1;n<16;n++){let i=Math.pow(10,n);if((e/=i)<1){r={r:i,v:t*e};break}}}if(null===r)throw new Error(`can not normalize v[${e}]`);return r};function eA(e,t,r={}){if(!Fe(e))return"";if(!Eo(t))return e;if(t=eo(t),e.length<=t)return e;let n=Be(r,"funWithMsg"),i="";if(ba(n)){let r=n(e,t);Fe(r)&&(i=r)}return fa(e,t)+`...${i}`}function tA(e,t={}){let r=Be(t,"fs"),n=!1;try{r.statSync(e),n=!0}catch{n=!1}return n}function rA(e,t={}){let r=Be(t,"fs");return!!tA(e,{fs:r})&&(!r.lstatSync(e).isDirectory()&&!r.lstatSync(e).isSymbolicLink())}function nA(e){return rA(e,{fs:a})}function iA(e,t={}){let r=null,n=Be(t,"fs"),i="";try{i=n.readFileSync(e,"utf8")}catch(e){r=e}return null!==r?{error:r}:{success:i}}function oA(e){return iA(e,{fs:a})}function aA(e){let t=is();return s(Number(e),"SIGKILL",r=>{r?t.reject(r):t.resolve(`pid[${e}] killed`)}),t}function sA(e,t){if("win32"!==process.platform)return{file:e,args:t};let r=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=i.execFileSync("where",[e],{encoding:"utf8",timeout:5e3,windowsHide:!0,shell:!1,stdio:["ignore","pipe","ignore"]}).trim().split(/\r?\n/),r=t.find(e=>/\.cmd$/i.test(e));return r||(t.find(e=>/\.exe$/i.test(e))||t[0]||e)}catch{return e}}(e);if(/\.exe$/i.test(r))return{file:r,args:t};if(/\.(cmd|bat)$/i.test(r)){let e=function(e){let t=Be(oA(e),"success","");if(!Fe(t))return null;let r=t.match(/%dp0%\\(node_modules\\[^"]+)"/i);if(!r)return null;let n=o.dirname(e),i=o.join(n,r[1]);return nA(i)?i:null}(r);if(e)return/\.exe$/i.test(e)?{file:e,args:t}:{file:process.execPath,args:[e,...t]};let i=t.map(e=>`"${e.replace(/(\\*)"/g,'$1$1\\"').replace(/(\\*)$/,"$1$1")}"`.replace(/[()%!^"<>&|]/g,"^$&")),a=`${n=r,n.replace(/[()%!^"<>&|;, ]/g,"^$&")} ${i.join(" ")}`;return{file:process.env.comspec||process.env.COMSPEC||"cmd.exe",args:["/d","/s","/c",`"${a}"`],opt:{windowsVerbatimArguments:!0}}}var n;return{file:r,args:t}}let lA={funWithMsg:e=>`(truncated, total ${e.length} chars)`};function cA(e,t=[],r={}){let{timeoutMs:n=12e4,cwd:o=process.cwd(),input:a,validate:s,maxBuffer:l=10485760,onStdout:c,onStderr:u}=r,f=function(e){if(ba(e))return e;if(!Fe(e))return null;let t=e.split(",").map(e=>e.trim()).filter(Boolean);return 0===t.length?null:e=>{for(let r of t)if("nonempty"===r){if(!Fe(e)||""===e.trim())return!1}else if("json"===r)try{JSON.parse(e)}catch{return!1}else if("min:"===fa(r,4)){let t=ga(r,4);if(!ke(t))return!1;let n=eo(t);if(!Fe(e)||e.length<n)return!1}return!0}}(s),d=Date.now(),g=is(),p=sA(e,t),h=i.spawn(p.file,p.args,{cwd:o,stdio:["pipe","pipe","pipe"],windowsHide:!0,env:{...process.env,PYTHONIOENCODING:"utf-8"},...p.opt}),A="",m="",I=new TextDecoder("utf-8"),y=new TextDecoder("utf-8"),v=!1,b=!1;h.stdout.on("data",e=>{let t=I.decode(e,{stream:!0});t&&(ba(c)&&c(t),A.length<l&&(A+=t))}),h.stderr.on("data",e=>{let t=y.decode(e,{stream:!0});t&&(ba(u)&&u(t),m.length<l&&(m+=t))}),h.stdin.on("error",()=>{}),void 0!==a&&h.stdin.write(a,"utf8"),h.stdin.end();let w=setTimeout(()=>{v||(b=!0,aA(h.pid).catch(()=>{}),setTimeout(()=>{v||(v=!0,g.resolve({ok:!1,stdout:eA(A,500,lA),stderr:eA(m,500,lA),code:null,error:`TIMEOUT after ${n/1e3}s(子進程未能結束)`,durationMs:Date.now()-d,pid:h.pid}))},3e3).unref())},n);return h.on("error",e=>{v||(v=!0,clearTimeout(w),g.resolve({ok:!1,stdout:"",stderr:"",code:null,error:`${e.code||"UNKNOWN"}: ${e.message}`,durationMs:Date.now()-d,pid:h.pid}))}),h.on("close",(e,t)=>{if(v)return;v=!0,clearTimeout(w);let r=I.decode();r&&A.length<l&&(A+=r);let i=y.decode();i&&m.length<l&&(m+=i);let o=Date.now()-d;b?g.resolve({ok:!1,stdout:eA(A,500,lA),stderr:eA(m,500,lA),code:e,error:`TIMEOUT after ${n/1e3}s`,durationMs:o,pid:h.pid}):0===e?!f||f(A)?g.resolve({ok:!0,stdout:A,stderr:m,code:0,error:"",durationMs:o,pid:h.pid}):g.resolve({ok:!1,stdout:eA(A,500,lA),stderr:eA(m,500,lA),code:0,error:"OUTPUT_VALIDATION_FAILED",durationMs:o,pid:h.pid}):g.resolve({ok:!1,stdout:eA(A,500,lA),stderr:eA(m,1e3,lA),code:e,error:t?`Signal: ${t}`:`Exit code ${e}`,durationMs:o,pid:h.pid})}),g}function uA(e,t){return e>t}function fA(e){return e&&e.length?bd(e,cr,uA):void 0}function dA(e){return null==e?[]:function(e,t){return he(t,function(t){return e[t]})}(e,gt(e))}function gA(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(n,a,r(a),e)}return n}function pA(e,t,r,n){return ht(e,function(e,i,o){t(n,e,r(e),o)}),n}var hA,AA,mA=Object.prototype.hasOwnProperty,IA=(hA=function(e,t,r){mA.call(e,r)?e[r].push(t):gi(e,r,[t])},function(e,t){var r=b(e)?gA:pA,n=AA?AA():{};return r(e,hA,dr(t),n)}),yA=IA;function vA(e,t){if(!xe(e)||!xe(t))return[];if(e.length!==t.length)return[];return Dr(e,function(r,n){return bg(e[n],t[n])})}function bA(e,t={}){let r=Be(t,"fs");if(!tA(e,{fs:r}))return!1;let n=r.lstatSync(e);return!n.isFile()&&!n.isSymbolicLink()}function wA(e,t={}){let r=Be(t,"fs");if(bA(e,{fs:r}))return{success:"input folder is already exists: "+e};if(tA(e,{fs:r}))return{error:"input path already exists: "+e};try{r.mkdirSync(e,{recursive:!0})}catch(e){return{error:e}}return{success:"done: "+e}}function BA(e,t={}){let r=Be(t,"path"),n=Be(t,"fs");if(!tA(e,{fs:n})){let t=wA(e,{fs:n});return t.error?t.error:{success:"done: "+e}}if(!bA(e,{fs:n}))return{error:"input path is not a folder"};try{let t=n.readdirSync(e);for(let i of t){let t=r.join(e,i);n.statSync(t).isDirectory()?n.rmSync(t,{recursive:!0,force:!0}):n.unlinkSync(t)}}catch(e){return{error:e}}return{success:"done: "+e}}function EA(e,t,r={}){let n=Be(r,"path"),i=Be(r,"fs"),o=Be(r,"useSync","");hn(o)||(o=!0);let a="";return a=o?function(e,t,r={}){let n=Be(r,"path"),i=Be(r,"fs");if(!rA(e,{fs:i}))return{error:`fpSrc[${e}] is not a file`};try{wA(n.dirname(t),{fs:i}),i.copyFileSync(e,t)}catch(e){return{error:e}}return{success:"done: "+t}}(e,t,{path:n,fs:i}):async function(e,t,r={}){let n=Be(r,"path"),i=Be(r,"fs");if(!rA(e,{fs:i}))return{error:`fpSrc[${e}] is not a file`};let o=null;return await(async(e,t)=>{wA(n.dirname(t),{fs:i}),await new Promise((r,n)=>{let o=i.createReadStream(e),a=i.createWriteStream(t);o.on("error",n),a.on("error",n),a.on("finish",r),o.pipe(a)})})(e,t).then(()=>{o={success:"done: "+t}}).catch(e=>{o={error:e}}),o}(e,t,{path:n,fs:i}),a}function CA(e,t,r={}){let n=Be(r,"path"),i=Be(r,"fs");if(!bA(e,{fs:i}))return{error:`fpSrc[${e}] is not a folder`};try{i.readdirSync(e).forEach(function(r){let o=n.resolve(e,r),a=n.resolve(t,r),s=i.lstatSync(o);if(s.isDirectory())wA(a,{fs:i}),CA(o,a,{path:n,fs:i});else if(s.isSymbolicLink()){let e=i.readlinkSync(o);i.symlinkSync(e,a)}else wA(n.dirname(a),{fs:i}),i.copyFileSync(o,a)})}catch(e){return{error:e}}return{success:"done: "+t}}function xA(e,t,r={}){let n=Be(r,"path"),i=Be(r,"fs"),o=Be(r,"useSync","");hn(o)||(o=!0);let a="";return a=o?CA(e,t,{path:n,fs:i}):async function(e,t,r={}){let n=Be(r,"path"),i=Be(r,"fs");if(!bA(e,{fs:i}))return{error:`fpSrc[${e}] is not a folder`};let o=async(e,t)=>{let r=i.readdirSync(e);for(let a of r){let r=n.join(e,a),s=n.join(t,a),l=i.lstatSync(r);if(l.isDirectory())wA(s,{fs:i}),await o(r,s);else if(l.isSymbolicLink()){let e=i.readlinkSync(r);i.symlinkSync(e,s)}else wA(n.dirname(s),{fs:i}),await new Promise((e,t)=>{let n=i.createReadStream(r),o=i.createWriteStream(s);n.on("error",t),o.on("error",t),o.on("finish",e),n.pipe(o)})}},a=null;return await o(e,t).then(()=>{a={success:"done: "+t}}).catch(e=>{a={error:e}}),a}(e,t,{path:n,fs:i}),a}function DA(e){if(!Fe(e))return{path:"",isRoot:!1};for(;e.indexOf("\\\\")>=0;)e=e.replace("\\\\","\\");for(;e.indexOf("//")>=0;)e=e.replace("//","/");if(":"===da(e,1))return{path:`${e}\\`,isRoot:!0};if("\\"===da(e,1)){let t=Ja(e,1);return":"===da(t,1)?{path:e,isRoot:!0}:{path:t,isRoot:!1}}if("/"===da(e,1)){let t=Ja(e,1);return 0===t.length?{path:e,isRoot:!0}:{path:t,isRoot:!1}}return{path:e,isRoot:!1}}function FA(e){if(!Fe(e))return"";let t=DA(e);if(t.isRoot)return t.path;let r=t.path;try{r=r.split("\\").pop().split("/").pop()}catch(e){}return r}function QA(e){if(!Fe(e))return"";let t=DA(e);if(t.isRoot)return t.path;let r=FA(e=t.path);if(!Fe(r))return e;let n=DA(e=Ja(e,r.length));return n.isRoot,n.path}function SA(e,t="",r={}){let n=Be(r,"fs"),i=Be(r,"encoding","");if(Fe(i)||(i="utf8"),tA(e,{fs:n}))return{error:"input path already exists: "+e};if(rA(e,{fs:n}))return{error:"input file is already exists: "+e};let o=QA(e);bA(o,{fs:n})||wA(o,{fs:n});try{n.writeFileSync(e,t,{encoding:i})}catch(e){return{error:e}}return{success:"done: "+e}}function kA(e){return wA(e,{fs:a})}function NA(e,t={}){let r=Be(t,"fs");if(!tA(e,{fs:r}))return{success:"file does not exist: "+e};if(!rA(e,{fs:r}))return{error:"input path is not a file: "+e};try{r.unlinkSync(e)}catch(e){return{error:e}}return{success:"done: "+e}}async function qA(e,t={}){let r=Be(t,"numRetry");to(r)||(r=5),r=eo(r);let n=Be(t,"fs",null);if(!tA(e,{fs:n}))return"file does not exist: "+e;if(!rA(e,{fs:n}))return Promise.reject("input path is not a file: "+e);for(let t=0;t<r;t++)try{n.unlinkSync(e);break}catch(e){if("EBUSY"!==e.code)return Promise.reject(e);await ws(300)}return"done: "+e}function MA(e,t={}){let r=Be(t,"fs");if(!tA(e,{fs:r}))return{success:"folder does not exist: "+e};if(!bA(e,{fs:r}))return{error:"input path is not a folder: "+e};try{r.rmSync(e,{recursive:!0,force:!0})}catch(e){return{error:e}}return{success:"done: "+e}}function HA(e){return MA(e,{fs:a})}async function LA(e,t={}){let r=Be(t,"numRetry");to(r)||(r=5),r=eo(r);let n=Be(t,"fs",null);if(!tA(e,{fs:n}))return"folder does not exist: "+e;if(!bA(e,{fs:n}))return Promise.reject("input path is not a folder: "+e);for(let t=0;t<r;t++)try{n.rmSync(e,{recursive:!0,force:!0});break}catch(e){if("EBUSY"!==e.code)return Promise.reject(e);await ws(300)}return"done: "+e}async function UA(e,t,r={}){let n="",i=Be(r,"fs"),o=Be(r,"Readable");if(!Fe(e))throw new Error("urlIn in not an effective string");let a=QA(t),s=Be(r,"fnOut","");Fe(s)||(s=FA(t)),bA(a,{fs:i})||wA(a,{fs:i});let l=is();try{let r=await fetch(e);if(!r.ok)return l.reject(r.statusText),l;let a=i.createWriteStream(t);o.fromWeb(r.body).pipe(a),a.on("finish",()=>{l.resolve(t)}),a.on("error",e=>{n=e.message,l.reject(n)})}catch(e){n=e.message,l.reject(n)}return l}function RA(){if(!ba(r))throw new Error("invalid dayjs");return r().format("YYYY-MM-DDTHH:mm:ssZ")}function OA(e){if(!Fe(e))return"";let t=FA(e),r=zo(t,".");if(gn(r)<=1)return t;let n="";try{r=Vo(r),n=Do(r,".")}catch(e){}return n}function TA(e){return bA(e,{fs:a})}function YA(e,t={}){let r=Be(t,"polling");hn(r)||(r=!1);let n=Be(t,"timeInterval");to(n)||(n=100),n=eo(n);let i=Be(t,"timeBinaryInterval");to(i)||(i=300),i=eo(i);let s=new f.EventEmitter,l=e,c=null,u=setInterval(()=>{if(null===c)TA(l)&&(c=d.watch(l,{usePolling:r,interval:n,binaryInterval:i,awaitWriteFinish:!0}),c.on("all",(e,t,r)=>{t=o.resolve(t),s.emit("change",{type:e,fp:t,stats:r}),"unlinkDir"===e&&o.resolve(l)===t&&setTimeout(()=>{g()},1)}));else if(!TA(l)){let e=a.fstatSync;s.emit("change",{type:"unlinkDir",fp:o.resolve(l),stats:e}),setTimeout(()=>{g()},1)}},n),g=()=>{if(null!==c){try{c.unwatch(l)}catch(e){console.log(e)}c.close().catch(e=>{console.log(e)}).finally(()=>{c=null})}};return s.clear=()=>{g(),clearInterval(u)},s}function jA(e,t={}){let r=Be(t,"fs"),n=Be(t,"crypto"),i=Be(t,"type","");Fe(i)||(i="sha512");let o=is();if(!rA(e,{fs:r}))return o.reject(`fp[${e}] is not a file`),o;try{let t=n.createHash(i),a=r.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 GA=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 JA(){return function(e){const{exports:{mem:t,xxh32:r,xxh64:n,init32:i,update32:o,digest32:a,init64:s,update64:l,digest64:c}}=e;let u=new Uint8Array(t.buffer);function f(e,r){if(t.buffer.byteLength<e+r){const n=Math.ceil((e+r-t.buffer.byteLength)/65536);t.grow(n),u=new Uint8Array(t.buffer)}}function d(e,t,r,n,i,o){f(e);const a=new Uint8Array(e);return u.set(a),r(0,t),a.set(u.subarray(0,e)),{update(t){let r;return u.set(a),"string"==typeof t?(f(3*t.length,e),r=A.encodeInto(t,u.subarray(e)).written):(f(t.byteLength,e),u.set(t,e),r=t.byteLength),n(0,e,r),a.set(u.subarray(0,e)),this},digest:()=>(u.set(a),o(i(0)))}}function g(e){return e>>>0}const p=2n**64n-1n;function h(e){return e&p}const A=new TextEncoder;function m(e,t=0){return f(3*e.length,0),g(r(0,A.encodeInto(e,u).written,t))}function I(e,t=0n){return f(3*e.length,0),h(n(0,A.encodeInto(e,u).written,t))}return{h32:m,h32ToString:(e,t=0)=>m(e,t).toString(16).padStart(8,"0"),h32Raw:(e,t=0)=>(f(e.byteLength,0),u.set(e),g(r(0,e.byteLength,t))),create32:(e=0)=>d(48,e,i,o,a,g),h64:I,h64ToString:(e,t=0n)=>I(e,t).toString(16).padStart(16,"0"),h64Raw:(e,t=0n)=>(f(e.byteLength,0),u.set(e),h(n(0,e.byteLength,t))),create64:(e=0n)=>d(88,e,s,l,c,h)}}((await WebAssembly.instantiate(GA)).instance)}async function zA(e,t={}){let r=Be(t,"fs"),n=Be(t,"chunkSize");if(ke(n)||(n=67108864),n=Hn(n),!rA(e,{fs:r}))return Promise.reject("fp is not a file");let i=is();try{let{create64:t}=await JA(),o=t(),a=r.createReadStream(e,{highWaterMark:n});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 VA(e,t={}){let r=Be(t,"fs"),n=Be(t,"crypto"),i=Be(t,"type","");Fe(i)||(i="sha512");let o=Be(t,"chunkSize");ke(o)||(o=67108864),o=Hn(o);let a=is();return rA(e,{fs:r})?"xxhash64"===i?zA(e,{fs:r,chunkSize:o}):jA(e,{fs:r,crypto:n,type:i}):(a.reject(`fp[${e}] is not a file`),a)}function PA(e,t=1,r={}){let n=1,i=Be(r,"path"),o=Be(r,"fs");if(!bA(e,{fs:o}))throw new Error(`fd[${e}] is not a folder`);return null!==t&&to(t)&&(t=eo(t))<1&&(t=1),function e(r){let a=[];return bA(r,{fs:o})?(Cr(o.readdirSync(r),function(s){let l=i.resolve(r,s),c=null;try{c=o.statSync(l)}catch(e){}c&&c.isDirectory()?(a.push({isFolder:!0,level:n,path:l,name:i.basename(l)}),n+=1,(n<=t||null===t)&&(a=a.concat(e(l))),n-=1):a.push({isFolder:!1,level:n,path:l,name:i.basename(l)})}),a):a}(e)}function XA(e,t=1,r={}){let n=Be(r,"path"),i=Be(r,"fs");if(!bA(e,{fs:i}))throw new Error(`fd[${e}] is not a folder`);let o=[];return o=PA(e,t,{path:n,fs:i}),o=ha(o,{isFolder:!1}),o=Dr(o,e=>(delete e.isFolder,e)),o}async function _A(e,t=1,r={}){let n=Be(r,"path"),i=Be(r,"fs"),o=Be(r,"crypto"),a=Be(r,"type","");if(Fe(a)||(a="md5"),!bA(e,{fs:i}))throw new Error(`fd[${e}] is not a folder`);let s=XA(e,t,{path:n,fs:i});return s=await cc(s,async e=>{let t=Be(e,"path","");return e.hashType=a,e.hash="",Fe(t)&&(e.hash=await VA(t,{fs:i,crypto:o,type:a,useSync:!1})),e}),s}async function WA(e,t=1,r={}){return _A(e,t,{path:o,fs:a,crypto:g,...r})}async function KA(e,t={}){let r=Be(t,"path"),n=Be(t,"fs"),i=Be(t,"crypto"),o=Be(t,"type","");Fe(o)||(o="md5");let a=[],s=PA(e,null,{path:r,fs:n});return await cc(s,async e=>{if(e.isFolder)return;let t=await jA(e.path,{fs:n,crypto:i,type:o});a.push(t)}),Do(a,"|")}function $A(e,t=1,r={}){let n=Be(r,"path"),i=Be(r,"fs");if(!bA(e,{fs:i}))throw new Error(`fd[${e}] is not a folder`);let o=[];return o=PA(e,t,{path:n,fs:i}),o=ha(o,{isFolder:!0}),o=Dr(o,e=>(delete e.isFolder,e)),o}async function ZA(e,t,r={}){let n="",i=Be(r,"fs");if(!Or(e))throw new Error("fpsIn in not an effective array");let o=QA(t),a=Be(r,"fnOut","");Fe(a)||(a=FA(t)),bA(o,{fs:i})||wA(o,{fs:i});let s=is();try{let r=i.createWriteStream(t);for(let t=0;t<e.length;t++){let o=e[t];if(!rA(o,{fs:i}))throw new Error(`fpIn[${o}] is not a file`);let a=()=>{let e=is(),t=i.createReadStream(o);return t.on("error",t=>{n=t.message,e.reject(t)}),t.on("end",()=>{NA(o,{fs:i}),e.resolve()}),t.pipe(r,{end:!1}),e};await a()}r.end(),r.on("error",e=>{n=e.message,s.reject(n)}),r.on("finish",()=>{let e={filename:a,path:t};s.resolve(e)})}catch(e){n=e.message,s.reject(n)}return s}function em(e,t,r={}){let n=Be(r,"fs");if(!rA(e,{fs:n}))return{error:`pahOld[${e}] is not a file`};if(tA(t,{fs:n}))return{error:`pahNew[${t}] already exists`};let i=QA(t);bA(i,{fs:n})||wA(i,{fs:n});try{n.renameSync(e,t)}catch(e){return{error:e}}return{success:"done: "+t}}function tm(e,t,r={}){let n=Be(r,"fs");if(!bA(e,{fs:n}))return{error:`pahOld[${e}] is not a folder`};if(tA(t,{fs:n}))return{error:`pahNew[${t}] already exists`};let i=QA(t);bA(i,{fs:n})||wA(i,{fs:n});try{n.renameSync(e,t)}catch(e){return{error:e}}return{success:"done: "+t}}function rm(e,t,r,n={}){let i=Be(n,"withInfor");hn(i)||(i=!0);let o={del:[],add:[],same:[],diff:[]};if(!Fe(r))return console.log("invalid key"),i&&(o.infor={}),o;xe(e)||(e=[e]),xe(t)||(t=[t]),e=ha(e,e=>Ne(e,r)),t=ha(t,e=>Ne(e,r));let a=new Map(t.map(e=>[e[r],e]));for(let t of e){let e=a.get(t[r]);if(e){JSON.stringify(t)===JSON.stringify(e)?o.same.push(e):o.diff.push(e),a.delete(t[r])}else o.del.push(t)}if(o.add=Array.from(a.values()),i){let e={};for(let t of o.del)e[t[r]]="del";for(let t of o.add)e[t[r]]="add";for(let t of o.diff)e[t[r]]="diff";for(let t of o.same)e[t[r]]="same";o.infor=e}return o}async function nm(e,t=1,r={}){let n=Be(r,"path"),i=Be(r,"fs"),o=Be(r,"crypto"),a=Be(r,"type","");Fe(a)||(a="md5");let s=Be(r,"forFile",null);hn(s)||(s=!0);let l=Be(r,"forFolder",null);if(hn(l)||(l=!1),!bA(e,{fs:i}))throw new Error(`fd[${e}] is not a folder`);let c=PA(e,t,{path:n,fs:i});return c=await cc(c,async e=>{let t="";return s&&!e.isFolder&&(t=await jA(e.path,{fs:i,crypto:o,type:a})),l&&e.isFolder&&(t=await KA(e.path,{path:n,fs:i,crypto:o,type:a})),e.hash=t,e}),c}async function im(e,t,r={}){let n=Be(r,"path"),i=Be(r,"fs"),o=Be(r,"crypto"),a=Be(r,"type","");if(Fe(a)||(a="md5"),!bA(e,{fs:i}))throw new Error(`fdSrc[${e}] is not a folder`);let s=!1;if(!bA(t,{fs:i}))return await xA(e,t,{path:n,fs:i,useSync:!1}),s=!0,s;let l=n.sep,c=n.sep.length,u=(e,t)=>(e=Dr(e,e=>((e,t)=>{let r=e.isFolder?"folder":"file",n=e.path.replace(t,"");return fa(n,c)===l&&(n=ga(n,c)),n=n.replaceAll("\\","/"),{id:`${r}|${n}`,isFolder:e.isFolder,name:e.name,rpath:n,hash:e.hash}})(e,t)),e),f=await nm(e,null,{path:n,fs:i,crypto:o,type:a,forFile:!0,forFolder:!1});f=u(f,n.resolve(e));let d=await nm(t,null,{path:n,fs:i,crypto:o,type:a,forFile:!0,forFolder:!1});d=u(d,n.resolve(t));let g=rm(d,f,"id",{withInfor:!1});return s=gn(g.del)>0||gn(g.add)>0||gn(g.diff)>0,await cc(g.del,async e=>{if(e.isFolder){MA(n.resolve(t,e.rpath),{fs:i})}}),await cc(g.del,async e=>{if(!e.isFolder){NA(n.resolve(t,e.rpath),{fs:i})}}),await cc([...g.add,...g.diff],async r=>{if(!r.isFolder){let o=n.resolve(e,r.rpath),a=n.resolve(t,r.rpath);await EA(o,a,{path:n,fs:i,useSync:!1})}}),s}function om(e,t={}){let r=Be(t,"polling");hn(r)||(r=!1);let n=Be(t,"timeInterval");to(n)||(n=100),n=eo(n);let i=Be(t,"timeBinaryInterval");to(i)||(i=300),i=eo(i);let a=new f.EventEmitter,s=e,l=null,c=setInterval(()=>{null===l&&nA(s)&&(l=d.watch(s,{usePolling:r,interval:n,binaryInterval:i,awaitWriteFinish:!0}),l.on("all",(e,t,r)=>{t=o.resolve(t),a.emit("change",{type:e,fp:t,stats:r})}))},n);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 am(e,t,r={}){let n=null,i=Be(r,"fs"),o=QA(e);bA(o,{fs:i})||wA(o,{fs:i});try{i.writeFileSync(e,t,"utf8")}catch(e){n=e}return null!==n?{error:n}:{success:e}}const sm=[];for(let e=0;e<256;++e)sm.push((e+256).toString(16).slice(1));const lm=new Uint8Array(16);function cm(){return crypto.getRandomValues(lm)}const um={};function fm(e,t,r){let n;if(e)n=dm(e.random??e.rng?.()??cm(),e.msecs,e.seq,t,r);else{const e=Date.now(),i=cm();!function(e,t,r){e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=r[6]<<23|r[7]<<16|r[8]<<8|r[9],e.msecs=t):(e.seq=e.seq+1|0,0===e.seq&&e.msecs++)}(um,e,i),n=dm(i,um.msecs,um.seq,t,r)}return t??function(e,t=0){return(sm[e[t+0]]+sm[e[t+1]]+sm[e[t+2]]+sm[e[t+3]]+"-"+sm[e[t+4]]+sm[e[t+5]]+"-"+sm[e[t+6]]+sm[e[t+7]]+"-"+sm[e[t+8]]+sm[e[t+9]]+"-"+sm[e[t+10]]+sm[e[t+11]]+sm[e[t+12]]+sm[e[t+13]]+sm[e[t+14]]+sm[e[t+15]]).toLowerCase()}(n)}function dm(e,t,r,n,i=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(n){if(i<0||i+16>n.length)throw new RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`)}else n=new Uint8Array(16),i=0;return t??=Date.now(),r??=127*e[6]<<24|e[7]<<16|e[8]<<8|e[9],n[i++]=t/1099511627776&255,n[i++]=t/4294967296&255,n[i++]=t/16777216&255,n[i++]=t/65536&255,n[i++]=t/256&255,n[i++]=255&t,n[i++]=112|r>>>28&15,n[i++]=r>>>20&255,n[i++]=128|r>>>14&63,n[i++]=r>>>6&255,n[i++]=r<<2&255|3&e[10],n[i++]=e[11],n[i++]=e[12],n[i++]=e[13],n[i++]=e[14],n[i++]=e[15],n}function gm(e){return"[object Uint16Array]"===Object.prototype.toString.call(e)}function pm(e){if(!(y(e)||ps(e)||es(e)||gm(e)))return null;try{if(e.byteLength)return e.byteLength}catch(e){}try{if(e.length)return e.length}catch(e){}try{if(e.size)return e.size}catch(e){}return null}function hm(e,t=!0){if(!Or(e)){return{error:"no data"}}let r=null;try{r=function(e,t=!0){let r=t?"\ufeff":"";return Cr(e,e=>{let t=[];Cr(e,e=>{De(e)?(e=hc(e,"\r\n",""),e=hc(e,"\r",""),e=`"${e=hc(e,"\n","")}"`):e=hn(e)?e?"true":"false":ja(e),t.push(e)}),r+=Do(t,",")+"\r\n"}),r}(e,t)}catch(e){return{error:e}}return r}function Am(e){return hn(e)?e?"true":"false":ja(e)}function mm(e,t){let r=[];return e.SheetNames.forEach(function(n){let i=bn().utils.sheet_to_json(e.Sheets[n],{header:"A",defval:"",blankrows:!0});i=Dr(i,e=>dA(e)),t&&(i=Dr(i,e=>Dr(e,e=>Am(e)))),r.push({sheetname:n,data:i})}),r}function Im(e,t){let r=Be(t,"fmt","ltdt");if(!va(["ltdt","csv","array"],r))return{error:"opt.fmt is not one of 'ltdt', 'csv', 'array'"};let n,i=Be(t,"valueToString",!0);if(!hn(i))return{error:"opt.valueToString is not a boolean"};try{n=bn().read(e,{type:"buffer"})}catch(e){return console.log("error: ",e),{error:"can not read data from u8a"}}let o=null;try{"ltdt"===r?o=function(e,t){let r=[];return e.SheetNames.forEach(function(n){let i=bn().utils.sheet_to_json(e.Sheets[n]);t&&(i=Dr(i,e=>(Cr(e,(t,r)=>{e[r]=Am(t)}),e))),r.push({sheetname:n,data:i})}),r}(n,i):"array"===r?o=mm(n,i):"csv"===r&&(o=function(e,t){let r=mm(e,t);return Cr(r,(e,t)=>{r[t].data=hm(e.data,!1)}),r}(n,i))}catch(e){return console.log("error: ",e),{error:"can not convert data"}}return o}var ym;function vm(e){if(!q(e))return!1;var t=N(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!br(e)}function bm(e){return vm(e)}function wm(e){if(!Ce(e))return{error:"wb is not an effective object"};if(!xe(Be(e,"SheetNames")))return{error:"wb.SheetNames is not an array"};if(!Ee(Be(e,"Sheets")))return{error:"wb.Sheets is not an object"};let t=null;try{t=hs(bn().write(e,{bookType:"xlsx",type:"binary"}))}catch(e){return{error:e}}return t}
15
+ var Es,Cs,xs=9e15,Ds=1e9,Fs="0123456789abcdef",Qs="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",Ss="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",ks={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-xs,maxE:xs,crypto:!1},Ns=!0,qs="[DecimalError] ",Ms=qs+"Invalid argument: ",Hs=qs+"Precision limit exceeded",Ls=qs+"crypto unavailable",Us="[object Decimal]",Rs=Math.floor,Os=Math.pow,Ts=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,Ys=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,js=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,Gs=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Js=1e7,zs=Qs.length-1,Vs=Ss.length-1,Ps={toStringTag:Us};function Xs(e){var t,r,n,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)(r=7-(n=e[t]+"").length)&&(o+=ol(r)),o+=n;(r=7-(n=(a=e[t])+"").length)&&(o+=ol(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}function _s(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Ms+e)}function Ws(e,t,r,n){var i,o,a,s;for(o=e[0];o>=10;o/=10)--t;return--t<0?(t+=7,i=0):(i=Math.ceil((t+1)/7),t%=7),o=Os(10,7-t),s=e[i]%o|0,null==n?t<3?(0==t?s=s/100|0:1==t&&(s=s/10|0),a=r<4&&99999==s||r>3&&49999==s||5e4==s||0==s):a=(r<4&&s+1==o||r>3&&s+1==o/2)&&(e[i+1]/o/100|0)==Os(10,t-2)-1||(s==o/2||0==s)&&!(e[i+1]/o/100|0):t<4?(0==t?s=s/1e3|0:1==t?s=s/100|0:2==t&&(s=s/10|0),a=(n||r<4)&&9999==s||!n&&r>3&&4999==s):a=((n||r<4)&&s+1==o||!n&&r>3&&s+1==o/2)&&(e[i+1]/o/1e3|0)==Os(10,t-3)-1,a}function Ks(e,t,r){for(var n,i,o=[0],a=0,s=e.length;a<s;){for(i=o.length;i--;)o[i]*=t;for(o[0]+=Fs.indexOf(e.charAt(a++)),n=0;n<o.length;n++)o[n]>r-1&&(void 0===o[n+1]&&(o[n+1]=0),o[n+1]+=o[n]/r|0,o[n]%=r)}return o.reverse()}Ps.absoluteValue=Ps.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),Zs(e)},Ps.ceil=function(){return Zs(new this.constructor(this),this.e+1,2)},Ps.clampedTo=Ps.clamp=function(e,t){var r=this,n=r.constructor;if(e=new n(e),t=new n(t),!e.s||!t.s)return new n(NaN);if(e.gt(t))throw Error(Ms+t);return r.cmp(e)<0?e:r.cmp(t)>0?t:new n(r)},Ps.comparedTo=Ps.cmp=function(e){var t,r,n,i,o=this,a=o.d,s=(e=new o.constructor(e)).d,l=o.s,c=e.s;if(!a||!s)return l&&c?l!==c?l:a===s?0:!a^l<0?1:-1:NaN;if(!a[0]||!s[0])return a[0]?l:s[0]?-c:0;if(l!==c)return l;if(o.e!==e.e)return o.e>e.e^l<0?1:-1;for(t=0,r=(n=a.length)<(i=s.length)?n:i;t<r;++t)if(a[t]!==s[t])return a[t]>s[t]^l<0?1:-1;return n===i?0:n>i^l<0?1:-1},Ps.cosine=Ps.cos=function(){var e,t,r=this,n=r.constructor;return r.d?r.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+7,n.rounding=1,r=function(e,t){var r,n,i;if(t.isZero())return t;n=t.d.length,n<32?i=(1/hl(4,r=Math.ceil(n/3))).toString():(r=16,i="2.3283064365386962890625e-10");e.precision+=r,t=pl(e,1,t.times(i),new e(1));for(var o=r;o--;){var a=t.times(t);t=a.times(a).minus(a).times(8).plus(1)}return e.precision-=r,t}(n,Al(n,r)),n.precision=e,n.rounding=t,Zs(2==Cs||3==Cs?r.neg():r,e,t,!0)):new n(1):new n(NaN)},Ps.cubeRoot=Ps.cbrt=function(){var e,t,r,n,i,o,a,s,l,c,u=this,f=u.constructor;if(!u.isFinite()||u.isZero())return new f(u);for(Ns=!1,(o=u.s*Os(u.s*u,1/3))&&Math.abs(o)!=1/0?n=new f(o.toString()):(r=Xs(u.d),(o=((e=u.e)-r.length+1)%3)&&(r+=1==o||-2==o?"0":"00"),o=Os(r,1/3),e=Rs((e+1)/3)-(e%3==(e<0?-1:2)),(n=new f(r=o==1/0?"5e"+e:(r=o.toExponential()).slice(0,r.indexOf("e")+1)+e)).s=u.s),a=(e=f.precision)+3;;)if(c=(l=(s=n).times(s).times(s)).plus(u),n=$s(c.plus(u).times(s),c.plus(l),a+2,1),Xs(s.d).slice(0,a)===(r=Xs(n.d)).slice(0,a)){if("9999"!=(r=r.slice(a-3,a+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(Zs(n,e+1,1),t=!n.times(n).times(n).eq(u));break}if(!i&&(Zs(s,e+1,0),s.times(s).times(s).eq(u))){n=s;break}a+=4,i=1}return Ns=!0,Zs(n,e,f.rounding,t)},Ps.decimalPlaces=Ps.dp=function(){var e,t=this.d,r=NaN;if(t){if(r=7*((e=t.length-1)-Rs(this.e/7)),e=t[e])for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r},Ps.dividedBy=Ps.div=function(e){return $s(this,new this.constructor(e))},Ps.dividedToIntegerBy=Ps.divToInt=function(e){var t=this.constructor;return Zs($s(this,new t(e),0,1,1),t.precision,t.rounding)},Ps.equals=Ps.eq=function(e){return 0===this.cmp(e)},Ps.floor=function(){return Zs(new this.constructor(this),this.e+1,3)},Ps.greaterThan=Ps.gt=function(e){return this.cmp(e)>0},Ps.greaterThanOrEqualTo=Ps.gte=function(e){var t=this.cmp(e);return 1==t||0===t},Ps.hyperbolicCosine=Ps.cosh=function(){var e,t,r,n,i,o=this,a=o.constructor,s=new a(1);if(!o.isFinite())return new a(o.s?1/0:NaN);if(o.isZero())return s;r=a.precision,n=a.rounding,a.precision=r+Math.max(o.e,o.sd())+4,a.rounding=1,(i=o.d.length)<32?t=(1/hl(4,e=Math.ceil(i/3))).toString():(e=16,t="2.3283064365386962890625e-10"),o=pl(a,1,o.times(t),new a(1),!0);for(var l,c=e,u=new a(8);c--;)l=o.times(o),o=s.minus(l.times(u.minus(l.times(u))));return Zs(o,a.precision=r,a.rounding=n,!0)},Ps.hyperbolicSine=Ps.sinh=function(){var e,t,r,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(t=o.precision,r=o.rounding,o.precision=t+Math.max(i.e,i.sd())+4,o.rounding=1,(n=i.d.length)<3)i=pl(o,2,i,i,!0);else{e=(e=1.4*Math.sqrt(n))>16?16:0|e,i=pl(o,2,i=i.times(1/hl(5,e)),i,!0);for(var a,s=new o(5),l=new o(16),c=new o(20);e--;)a=i.times(i),i=i.times(s.plus(a.times(l.times(a).plus(c))))}return o.precision=t,o.rounding=r,Zs(i,t,r,!0)},Ps.hyperbolicTangent=Ps.tanh=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+7,n.rounding=1,$s(r.sinh(),r.cosh(),n.precision=e,n.rounding=t)):new n(r.s)},Ps.inverseCosine=Ps.acos=function(){var e=this,t=e.constructor,r=e.abs().cmp(1),n=t.precision,i=t.rounding;return-1!==r?0===r?e.isNeg()?nl(t,n,i):new t(0):new t(NaN):e.isZero()?nl(t,n+4,i).times(.5):(t.precision=n+6,t.rounding=1,e=new t(1).minus(e).div(e.plus(1)).sqrt().atan(),t.precision=n,t.rounding=i,e.times(2))},Ps.inverseHyperbolicCosine=Ps.acosh=function(){var e,t,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,Ns=!1,r=r.times(r).minus(1).sqrt().plus(r),Ns=!0,n.precision=e,n.rounding=t,r.ln()):new n(r)},Ps.inverseHyperbolicSine=Ps.asinh=function(){var e,t,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,Ns=!1,r=r.times(r).plus(1).sqrt().plus(r),Ns=!0,n.precision=e,n.rounding=t,r.ln())},Ps.inverseHyperbolicTangent=Ps.atanh=function(){var e,t,r,n,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=o.precision,t=o.rounding,n=i.sd(),Math.max(n,e)<2*-i.e-1?Zs(new o(i),e,t,!0):(o.precision=r=n-i.e,i=$s(i.plus(1),new o(1).minus(i),r+e,1),o.precision=e+4,o.rounding=1,i=i.ln(),o.precision=e,o.rounding=t,i.times(.5))):new o(NaN)},Ps.inverseSine=Ps.asin=function(){var e,t,r,n,i=this,o=i.constructor;return i.isZero()?new o(i):(t=i.abs().cmp(1),r=o.precision,n=o.rounding,-1!==t?0===t?((e=nl(o,r+4,n).times(.5)).s=i.s,e):new o(NaN):(o.precision=r+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=r,o.rounding=n,i.times(2)))},Ps.inverseTangent=Ps.atan=function(){var e,t,r,n,i,o,a,s,l,c=this,u=c.constructor,f=u.precision,d=u.rounding;if(c.isFinite()){if(c.isZero())return new u(c);if(c.abs().eq(1)&&f+4<=Vs)return(a=nl(u,f+4,d).times(.25)).s=c.s,a}else{if(!c.s)return new u(NaN);if(f+4<=Vs)return(a=nl(u,f+4,d).times(.5)).s=c.s,a}for(u.precision=s=f+10,u.rounding=1,e=r=Math.min(28,s/7+2|0);e;--e)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(Ns=!1,t=Math.ceil(s/7),n=1,l=c.times(c),a=new u(c),i=c;-1!==e;)if(i=i.times(l),o=a.minus(i.div(n+=2)),i=i.times(l),void 0!==(a=o.plus(i.div(n+=2))).d[t])for(e=t;a.d[e]===o.d[e]&&e--;);return r&&(a=a.times(2<<r-1)),Ns=!0,Zs(a,u.precision=f,u.rounding=d,!0)},Ps.isFinite=function(){return!!this.d},Ps.isInteger=Ps.isInt=function(){return!!this.d&&Rs(this.e/7)>this.d.length-2},Ps.isNaN=function(){return!this.s},Ps.isNegative=Ps.isNeg=function(){return this.s<0},Ps.isPositive=Ps.isPos=function(){return this.s>0},Ps.isZero=function(){return!!this.d&&0===this.d[0]},Ps.lessThan=Ps.lt=function(e){return this.cmp(e)<0},Ps.lessThanOrEqualTo=Ps.lte=function(e){return this.cmp(e)<1},Ps.logarithm=Ps.log=function(e){var t,r,n,i,o,a,s,l,c=this,u=c.constructor,f=u.precision,d=u.rounding;if(null==e)e=new u(10),t=!0;else{if(r=(e=new u(e)).d,e.s<0||!r||!r[0]||e.eq(1))return new u(NaN);t=e.eq(10)}if(r=c.d,c.s<0||!r||!r[0]||c.eq(1))return new u(r&&!r[0]?-1/0:1!=c.s?NaN:r?0:1/0);if(t)if(r.length>1)o=!0;else{for(i=r[0];i%10==0;)i/=10;o=1!==i}if(Ns=!1,a=ul(c,s=f+5),n=t?rl(u,s+10):ul(e,s),Ws((l=$s(a,n,s,1)).d,i=f,d))do{if(a=ul(c,s+=10),n=t?rl(u,s+10):ul(e,s),l=$s(a,n,s,1),!o){+Xs(l.d).slice(i+1,i+15)+1==1e14&&(l=Zs(l,f+1,0));break}}while(Ws(l.d,i+=10,d));return Ns=!0,Zs(l,f,d)},Ps.minus=Ps.sub=function(e){var t,r,n,i,o,a,s,l,c,u,f,d,g=this,p=g.constructor;if(e=new p(e),!g.d||!e.d)return g.s&&e.s?g.d?e.s=-e.s:e=new p(e.d||g.s!==e.s?g:NaN):e=new p(NaN),e;if(g.s!=e.s)return e.s=-e.s,g.plus(e);if(c=g.d,d=e.d,s=p.precision,l=p.rounding,!c[0]||!d[0]){if(d[0])e.s=-e.s;else{if(!c[0])return new p(3===l?-0:0);e=new p(g)}return Ns?Zs(e,s,l):e}if(r=Rs(e.e/7),u=Rs(g.e/7),c=c.slice(),o=u-r){for((f=o<0)?(t=c,o=-o,a=d.length):(t=d,r=u,a=c.length),o>(n=Math.max(Math.ceil(s/7),a)+2)&&(o=n,t.length=1),t.reverse(),n=o;n--;)t.push(0);t.reverse()}else{for((f=(n=c.length)<(a=d.length))&&(a=n),n=0;n<a;n++)if(c[n]!=d[n]){f=c[n]<d[n];break}o=0}for(f&&(t=c,c=d,d=t,e.s=-e.s),a=c.length,n=d.length-a;n>0;--n)c[a++]=0;for(n=d.length;n>o;){if(c[--n]<d[n]){for(i=n;i&&0===c[--i];)c[i]=Js-1;--c[i],c[n]+=Js}c[n]-=d[n]}for(;0===c[--a];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(e.d=c,e.e=tl(c,r),Ns?Zs(e,s,l):e):new p(3===l?-0:0)},Ps.modulo=Ps.mod=function(e){var t,r=this,n=r.constructor;return e=new n(e),!r.d||!e.s||e.d&&!e.d[0]?new n(NaN):!e.d||r.d&&!r.d[0]?Zs(new n(r),n.precision,n.rounding):(Ns=!1,9==n.modulo?(t=$s(r,e.abs(),0,3,1)).s*=e.s:t=$s(r,e,0,n.modulo,1),t=t.times(e),Ns=!0,r.minus(t))},Ps.naturalExponential=Ps.exp=function(){return cl(this)},Ps.naturalLogarithm=Ps.ln=function(){return ul(this)},Ps.negated=Ps.neg=function(){var e=new this.constructor(this);return e.s=-e.s,Zs(e)},Ps.plus=Ps.add=function(e){var t,r,n,i,o,a,s,l,c,u,f=this,d=f.constructor;if(e=new d(e),!f.d||!e.d)return f.s&&e.s?f.d||(e=new d(e.d||f.s===e.s?f:NaN)):e=new d(NaN),e;if(f.s!=e.s)return e.s=-e.s,f.minus(e);if(c=f.d,u=e.d,s=d.precision,l=d.rounding,!c[0]||!u[0])return u[0]||(e=new d(f)),Ns?Zs(e,s,l):e;if(o=Rs(f.e/7),n=Rs(e.e/7),c=c.slice(),i=o-n){for(i<0?(r=c,i=-i,a=u.length):(r=u,n=o,a=c.length),i>(a=(o=Math.ceil(s/7))>a?o+1:a+1)&&(i=a,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((a=c.length)-(i=u.length)<0&&(i=a,r=u,u=c,c=r),t=0;i;)t=(c[--i]=c[i]+u[i]+t)/Js|0,c[i]%=Js;for(t&&(c.unshift(t),++n),a=c.length;0==c[--a];)c.pop();return e.d=c,e.e=tl(c,n),Ns?Zs(e,s,l):e},Ps.precision=Ps.sd=function(e){var t,r=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(Ms+e);return r.d?(t=il(r.d),e&&r.e+1>t&&(t=r.e+1)):t=NaN,t},Ps.round=function(){var e=this,t=e.constructor;return Zs(new t(e),e.e+1,t.rounding)},Ps.sine=Ps.sin=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+7,n.rounding=1,r=function(e,t){var r,n=t.d.length;if(n<3)return t.isZero()?t:pl(e,2,t,t);r=(r=1.4*Math.sqrt(n))>16?16:0|r,t=t.times(1/hl(5,r)),t=pl(e,2,t,t);for(var i,o=new e(5),a=new e(16),s=new e(20);r--;)i=t.times(t),t=t.times(o.plus(i.times(a.times(i).minus(s))));return t}(n,Al(n,r)),n.precision=e,n.rounding=t,Zs(Cs>2?r.neg():r,e,t,!0)):new n(NaN)},Ps.squareRoot=Ps.sqrt=function(){var e,t,r,n,i,o,a=this,s=a.d,l=a.e,c=a.s,u=a.constructor;if(1!==c||!s||!s[0])return new u(!c||c<0&&(!s||s[0])?NaN:s?a:1/0);for(Ns=!1,0==(c=Math.sqrt(+a))||c==1/0?(((t=Xs(s)).length+l)%2==0&&(t+="0"),c=Math.sqrt(t),l=Rs((l+1)/2)-(l<0||l%2),n=new u(t=c==1/0?"5e"+l:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+l)):n=new u(c.toString()),r=(l=u.precision)+3;;)if(n=(o=n).plus($s(a,o,r+2,1)).times(.5),Xs(o.d).slice(0,r)===(t=Xs(n.d)).slice(0,r)){if("9999"!=(t=t.slice(r-3,r+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(Zs(n,l+1,1),e=!n.times(n).eq(a));break}if(!i&&(Zs(o,l+1,0),o.times(o).eq(a))){n=o;break}r+=4,i=1}return Ns=!0,Zs(n,l,u.rounding,e)},Ps.tangent=Ps.tan=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,(r=r.sin()).s=1,r=$s(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,Zs(2==Cs||4==Cs?r.neg():r,e,t,!0)):new n(NaN)},Ps.times=Ps.mul=function(e){var t,r,n,i,o,a,s,l,c,u=this,f=u.constructor,d=u.d,g=(e=new f(e)).d;if(e.s*=u.s,!(d&&d[0]&&g&&g[0]))return new f(!e.s||d&&!d[0]&&!g||g&&!g[0]&&!d?NaN:d&&g?0*e.s:e.s/0);for(r=Rs(u.e/7)+Rs(e.e/7),(l=d.length)<(c=g.length)&&(o=d,d=g,g=o,a=l,l=c,c=a),o=[],n=a=l+c;n--;)o.push(0);for(n=c;--n>=0;){for(t=0,i=l+n;i>n;)s=o[i]+g[n]*d[i-n-1]+t,o[i--]=s%Js|0,t=s/Js|0;o[i]=(o[i]+t)%Js|0}for(;!o[--a];)o.pop();return t?++r:o.shift(),e.d=o,e.e=tl(o,r),Ns?Zs(e,f.precision,f.rounding):e},Ps.toBinary=function(e,t){return ml(this,2,e,t)},Ps.toDecimalPlaces=Ps.toDP=function(e,t){var r=this,n=r.constructor;return r=new n(r),void 0===e?r:(_s(e,0,Ds),void 0===t?t=n.rounding:_s(t,0,8),Zs(r,e+r.e+1,t))},Ps.toExponential=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=el(n,!0):(_s(e,0,Ds),void 0===t?t=i.rounding:_s(t,0,8),r=el(n=Zs(new i(n),e+1,t),!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r},Ps.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return void 0===e?r=el(i):(_s(e,0,Ds),void 0===t?t=o.rounding:_s(t,0,8),r=el(n=Zs(new o(i),e+i.e+1,t),!1,e+n.e+1)),i.isNeg()&&!i.isZero()?"-"+r:r},Ps.toFraction=function(e){var t,r,n,i,o,a,s,l,c,u,f,d,g=this,p=g.d,h=g.constructor;if(!p)return new h(g);if(c=r=new h(1),n=l=new h(0),a=(o=(t=new h(n)).e=il(p)-g.e-1)%7,t.d[0]=Os(10,a<0?7+a:a),null==e)e=o>0?t:c;else{if(!(s=new h(e)).isInt()||s.lt(c))throw Error(Ms+s);e=s.gt(t)?o>0?t:c:s}for(Ns=!1,s=new h(Xs(p)),u=h.precision,h.precision=o=7*p.length*2;f=$s(s,t,0,1,1),1!=(i=r.plus(f.times(n))).cmp(e);)r=n,n=i,i=c,c=l.plus(f.times(i)),l=i,i=t,t=s.minus(f.times(i)),s=i;return i=$s(e.minus(r),n,0,1,1),l=l.plus(i.times(c)),r=r.plus(i.times(n)),l.s=c.s=g.s,d=$s(c,n,o,1).minus(g).abs().cmp($s(l,r,o,1).minus(g).abs())<1?[c,n]:[l,r],h.precision=u,Ns=!0,d},Ps.toHexadecimal=Ps.toHex=function(e,t){return ml(this,16,e,t)},Ps.toNearest=function(e,t){var r=this,n=r.constructor;if(r=new n(r),null==e){if(!r.d)return r;e=new n(1),t=n.rounding}else{if(e=new n(e),void 0===t?t=n.rounding:_s(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(Ns=!1,r=$s(r,e,0,t,1).times(e),Ns=!0,Zs(r)):(e.s=r.s,r=e),r},Ps.toNumber=function(){return+this},Ps.toOctal=function(e,t){return ml(this,8,e,t)},Ps.toPower=Ps.pow=function(e){var t,r,n,i,o,a,s=this,l=s.constructor,c=+(e=new l(e));if(!(s.d&&e.d&&s.d[0]&&e.d[0]))return new l(Os(+s,c));if((s=new l(s)).eq(1))return s;if(n=l.precision,o=l.rounding,e.eq(1))return Zs(s,n,o);if((t=Rs(e.e/7))>=e.d.length-1&&(r=c<0?-c:c)<=9007199254740991)return i=al(l,s,r,n),e.s<0?new l(1).div(i):Zs(i,n,o);if((a=s.s)<0){if(t<e.d.length-1)return new l(NaN);if(1&e.d[t]||(a=1),0==s.e&&1==s.d[0]&&1==s.d.length)return s.s=a,s}return(t=0!=(r=Os(+s,c))&&isFinite(r)?new l(r+"").e:Rs(c*(Math.log("0."+Xs(s.d))/Math.LN10+s.e+1)))>l.maxE+1||t<l.minE-1?new l(t>0?a/0:0):(Ns=!1,l.rounding=s.s=1,r=Math.min(12,(t+"").length),(i=cl(e.times(ul(s,n+r)),n)).d&&Ws((i=Zs(i,n+5,1)).d,n,o)&&(t=n+10,+Xs((i=Zs(cl(e.times(ul(s,t+r)),t),t+5,1)).d).slice(n+1,n+15)+1==1e14&&(i=Zs(i,n+1,0))),i.s=a,Ns=!0,l.rounding=o,Zs(i,n,o))},Ps.toPrecision=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=el(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(_s(e,1,Ds),void 0===t?t=i.rounding:_s(t,0,8),r=el(n=Zs(new i(n),e,t),e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r},Ps.toSignificantDigits=Ps.toSD=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(_s(e,1,Ds),void 0===t?t=r.rounding:_s(t,0,8)),Zs(new r(this),e,t)},Ps.toString=function(){var e=this,t=e.constructor,r=el(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+r:r},Ps.truncated=Ps.trunc=function(){return Zs(new this.constructor(this),this.e+1,1)},Ps.valueOf=Ps.toJSON=function(){var e=this,t=e.constructor,r=el(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+r:r};var $s=function(){function e(e,t,r){var n,i=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+i,e[o]=n%r|0,i=n/r|0;return i&&e.unshift(i),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;)e.shift()}return function(n,i,o,a,s,l){var c,u,f,d,g,p,h,A,m,I,y,v,b,w,B,E,C,x,D,F,Q=n.constructor,S=n.s==i.s?1:-1,k=n.d,N=i.d;if(!(k&&k[0]&&N&&N[0]))return new Q(n.s&&i.s&&(k?!N||k[0]!=N[0]:N)?k&&0==k[0]||!N?0*S:S/0:NaN);for(l?(g=1,u=n.e-i.e):(l=Js,g=7,u=Rs(n.e/g)-Rs(i.e/g)),D=N.length,C=k.length,I=(m=new Q(S)).d=[],f=0;N[f]==(k[f]||0);f++);if(N[f]>(k[f]||0)&&u--,null==o?(w=o=Q.precision,a=Q.rounding):w=s?o+(n.e-i.e)+1:o,w<0)I.push(1),p=!0;else{if(w=w/g+2|0,f=0,1==D){for(d=0,N=N[0],w++;(f<C||d)&&w--;f++)B=d*l+(k[f]||0),I[f]=B/N|0,d=B%N|0;p=d||f<C}else{for((d=l/(N[0]+1)|0)>1&&(N=e(N,d,l),k=e(k,d,l),D=N.length,C=k.length),E=D,v=(y=k.slice(0,D)).length;v<D;)y[v++]=0;(F=N.slice()).unshift(0),x=N[0],N[1]>=l/2&&++x;do{d=0,(c=t(N,y,D,v))<0?(b=y[0],D!=v&&(b=b*l+(y[1]||0)),(d=b/x|0)>1?(d>=l&&(d=l-1),1==(c=t(h=e(N,d,l),y,A=h.length,v=y.length))&&(d--,r(h,D<A?F:N,A,l))):(0==d&&(c=d=1),h=N.slice()),(A=h.length)<v&&h.unshift(0),r(y,h,v,l),-1==c&&(c=t(N,y,D,v=y.length))<1&&(d++,r(y,D<v?F:N,v,l)),v=y.length):0===c&&(d++,y=[0]),I[f++]=d,c&&y[0]?y[v++]=k[E]||0:(y=[k[E]],v=1)}while((E++<C||void 0!==y[0])&&w--);p=void 0!==y[0]}I[0]||I.shift()}if(1==g)m.e=u,Es=p;else{for(f=1,d=I[0];d>=10;d/=10)f++;m.e=f+u*g-1,Zs(m,s?o+m.e+1:o,a,p)}return m}}();function Zs(e,t,r,n){var i,o,a,s,l,c,u,f,d,g=e.constructor;e:if(null!=t){if(!(f=e.d))return e;for(i=1,s=f[0];s>=10;s/=10)i++;if((o=t-i)<0)o+=7,a=t,l=(u=f[d=0])/Os(10,i-a-1)%10|0;else if((d=Math.ceil((o+1)/7))>=(s=f.length)){if(!n)break e;for(;s++<=d;)f.push(0);u=l=0,i=1,a=(o%=7)-7+1}else{for(u=s=f[d],i=1;s>=10;s/=10)i++;l=(a=(o%=7)-7+i)<0?0:u/Os(10,i-a-1)%10|0}if(n=n||t<0||void 0!==f[d+1]||(a<0?u:u%Os(10,i-a-1)),c=r<4?(l||n)&&(0==r||r==(e.s<0?3:2)):l>5||5==l&&(4==r||n||6==r&&(o>0?a>0?u/Os(10,i-a):0:f[d-1])%10&1||r==(e.s<0?8:7)),t<1||!f[0])return f.length=0,c?(t-=e.e+1,f[0]=Os(10,(7-t%7)%7),e.e=-t||0):f[0]=e.e=0,e;if(0==o?(f.length=d,s=1,d--):(f.length=d+1,s=Os(10,7-o),f[d]=a>0?(u/Os(10,i-a)%Os(10,a)|0)*s:0),c)for(;;){if(0==d){for(o=1,a=f[0];a>=10;a/=10)o++;for(a=f[0]+=s,s=1;a>=10;a/=10)s++;o!=s&&(e.e++,f[0]==Js&&(f[0]=1));break}if(f[d]+=s,f[d]!=Js)break;f[d--]=0,s=1}for(o=f.length;0===f[--o];)f.pop()}return Ns&&(e.e>g.maxE?(e.d=null,e.e=NaN):e.e<g.minE&&(e.e=0,e.d=[0])),e}function el(e,t,r){if(!e.isFinite())return fl(e);var n,i=e.e,o=Xs(e.d),a=o.length;return t?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+ol(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):i<0?(o="0."+ol(-i-1)+o,r&&(n=r-a)>0&&(o+=ol(n))):i>=a?(o+=ol(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+ol(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=ol(n))),o}function tl(e,t){var r=e[0];for(t*=7;r>=10;r/=10)t++;return t}function rl(e,t,r){if(t>zs)throw Ns=!0,r&&(e.precision=r),Error(Hs);return Zs(new e(Qs),t,1,!0)}function nl(e,t,r){if(t>Vs)throw Error(Hs);return Zs(new e(Ss),t,r,!0)}function il(e){var t=e.length-1,r=7*t+1;if(t=e[t]){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function ol(e){for(var t="";e--;)t+="0";return t}function al(e,t,r,n){var i,o=new e(1),a=Math.ceil(n/7+4);for(Ns=!1;;){if(r%2&&Il((o=o.times(t)).d,a)&&(i=!0),0===(r=Rs(r/2))){r=o.d.length-1,i&&0===o.d[r]&&++o.d[r];break}Il((t=t.times(t)).d,a)}return Ns=!0,o}function sl(e){return 1&e.d[e.d.length-1]}function ll(e,t,r){for(var n,i,o=new e(t[0]),a=0;++a<t.length;){if(!(i=new e(t[a])).s){o=i;break}((n=o.cmp(i))===r||0===n&&o.s===r)&&(o=i)}return o}function cl(e,t){var r,n,i,o,a,s,l,c=0,u=0,f=0,d=e.constructor,g=d.rounding,p=d.precision;if(!e.d||!e.d[0]||e.e>17)return new d(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(null==t?(Ns=!1,l=p):l=t,s=new d(.03125);e.e>-2;)e=e.times(s),f+=5;for(l+=n=Math.log(Os(2,f))/Math.LN10*2+5|0,r=o=a=new d(1),d.precision=l;;){if(o=Zs(o.times(e),l,1),r=r.times(++u),Xs((s=a.plus($s(o,r,l,1))).d).slice(0,l)===Xs(a.d).slice(0,l)){for(i=f;i--;)a=Zs(a.times(a),l,1);if(null!=t)return d.precision=p,a;if(!(c<3&&Ws(a.d,l-n,g,c)))return Zs(a,d.precision=p,g,Ns=!0);d.precision=l+=10,r=o=s=new d(1),u=0,c++}a=s}}function ul(e,t){var r,n,i,o,a,s,l,c,u,f,d,g=1,p=e,h=p.d,A=p.constructor,m=A.rounding,I=A.precision;if(p.s<0||!h||!h[0]||!p.e&&1==h[0]&&1==h.length)return new A(h&&!h[0]?-1/0:1!=p.s?NaN:h?0:p);if(null==t?(Ns=!1,u=I):u=t,A.precision=u+=10,n=(r=Xs(h)).charAt(0),!(Math.abs(o=p.e)<15e14))return c=rl(A,u+2,I).times(o+""),p=ul(new A(n+"."+r.slice(1)),u-10).plus(c),A.precision=I,null==t?Zs(p,I,m,Ns=!0):p;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=Xs((p=p.times(e)).d)).charAt(0),g++;for(o=p.e,n>1?(p=new A("0."+r),o++):p=new A(n+"."+r.slice(1)),f=p,l=a=p=$s(p.minus(1),p.plus(1),u,1),d=Zs(p.times(p),u,1),i=3;;){if(a=Zs(a.times(d),u,1),Xs((c=l.plus($s(a,new A(i),u,1))).d).slice(0,u)===Xs(l.d).slice(0,u)){if(l=l.times(2),0!==o&&(l=l.plus(rl(A,u+2,I).times(o+""))),l=$s(l,new A(g),u,1),null!=t)return A.precision=I,l;if(!Ws(l.d,u-10,m,s))return Zs(l,A.precision=I,m,Ns=!0);A.precision=u+=10,c=a=p=$s(f.minus(1),f.plus(1),u,1),d=Zs(p.times(p),u,1),i=s=1}l=c,i+=2}}function fl(e){return String(e.s*e.s/0)}function dl(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);n++);for(i=t.length;48===t.charCodeAt(i-1);--i);if(t=t.slice(n,i)){if(i-=n,e.e=r=r-n-1,e.d=[],n=(r+1)%7,r<0&&(n+=7),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=7;n<i;)e.d.push(+t.slice(n,n+=7));n=7-(t=t.slice(n)).length}else n-=i;for(;n--;)t+="0";e.d.push(+t),Ns&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function gl(e,t){var r,n,i,o,a,s,l,c,u;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),Gs.test(t))return dl(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(Ys.test(t))r=16,t=t.toLowerCase();else if(Ts.test(t))r=2;else{if(!js.test(t))throw Error(Ms+t);r=8}for((o=t.search(/p/i))>0?(l=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),a=(o=t.indexOf("."))>=0,n=e.constructor,a&&(o=(s=(t=t.replace(".","")).length)-o,i=al(n,new n(r),o,2*o)),o=u=(c=Ks(t,r,Js)).length-1;0===c[o];--o)c.pop();return o<0?new n(0*e.s):(e.e=tl(c,u),e.d=c,Ns=!1,a&&(e=$s(e,i,4*s)),l&&(e=e.times(Math.abs(l)<54?Os(2,l):oc.pow(2,l))),Ns=!0,e)}function pl(e,t,r,n,i){var o,a,s,l,c=e.precision,u=Math.ceil(c/7);for(Ns=!1,l=r.times(r),s=new e(n);;){if(a=$s(s.times(l),new e(t++*t++),c,1),s=i?n.plus(a):n.minus(a),n=$s(a.times(l),new e(t++*t++),c,1),void 0!==(a=s.plus(n)).d[u]){for(o=u;a.d[o]===s.d[o]&&o--;);if(-1==o)break}o=s,s=n,n=a,a=o}return Ns=!0,a.d.length=u+1,a}function hl(e,t){for(var r=e;--t;)r*=e;return r}function Al(e,t){var r,n=t.s<0,i=nl(e,e.precision,1),o=i.times(.5);if((t=t.abs()).lte(o))return Cs=n?4:1,t;if((r=t.divToInt(i)).isZero())Cs=n?3:2;else{if((t=t.minus(r.times(i))).lte(o))return Cs=sl(r)?n?2:3:n?4:1,t;Cs=sl(r)?n?1:4:n?3:2}return t.minus(i).abs()}function ml(e,t,r,n){var i,o,a,s,l,c,u,f,d,g=e.constructor,p=void 0!==r;if(p?(_s(r,1,Ds),void 0===n?n=g.rounding:_s(n,0,8)):(r=g.precision,n=g.rounding),e.isFinite()){for(p?(i=2,16==t?r=4*r-3:8==t&&(r=3*r-2)):i=t,(a=(u=el(e)).indexOf("."))>=0&&(u=u.replace(".",""),(d=new g(1)).e=u.length-a,d.d=Ks(el(d),10,i),d.e=d.d.length),o=l=(f=Ks(u,10,i)).length;0==f[--l];)f.pop();if(f[0]){if(a<0?o--:((e=new g(e)).d=f,e.e=o,f=(e=$s(e,d,r,n,0,i)).d,o=e.e,c=Es),a=f[r],s=i/2,c=c||void 0!==f[r+1],c=n<4?(void 0!==a||c)&&(0===n||n===(e.s<0?3:2)):a>s||a===s&&(4===n||c||6===n&&1&f[r-1]||n===(e.s<0?8:7)),f.length=r,c)for(;++f[--r]>i-1;)f[r]=0,r||(++o,f.unshift(1));for(l=f.length;!f[l-1];--l);for(a=0,u="";a<l;a++)u+=Fs.charAt(f[a]);if(p){if(l>1)if(16==t||8==t){for(a=16==t?4:3,--l;l%a;l++)u+="0";for(l=(f=Ks(u,i,t)).length;!f[l-1];--l);for(a=1,u="1.";a<l;a++)u+=Fs.charAt(f[a])}else u=u.charAt(0)+"."+u.slice(1);u=u+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)u="0"+u;u="0."+u}else if(++o>l)for(o-=l;o--;)u+="0";else o<l&&(u=u.slice(0,o)+"."+u.slice(o))}else u=p?"0p+0":"0";u=(16==t?"0x":2==t?"0b":8==t?"0o":"")+u}else u=fl(e);return e.s<0?"-"+u:u}function Il(e,t){if(e.length>t)return e.length=t,!0}function yl(e){return new this(e).abs()}function vl(e){return new this(e).acos()}function bl(e){return new this(e).acosh()}function wl(e,t){return new this(e).plus(t)}function Bl(e){return new this(e).asin()}function El(e){return new this(e).asinh()}function Cl(e){return new this(e).atan()}function xl(e){return new this(e).atanh()}function Dl(e,t){e=new this(e),t=new this(t);var r,n=this.precision,i=this.rounding,o=n+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(r=t.s<0?nl(this,n,i):new this(0)).s=e.s:!e.d||t.isZero()?(r=nl(this,o,1).times(.5)).s=e.s:t.s<0?(this.precision=o,this.rounding=1,r=this.atan($s(e,t,o,1)),t=nl(this,o,1),this.precision=n,this.rounding=i,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan($s(e,t,o,1)):(r=nl(this,o,1).times(t.s>0?.25:.75)).s=e.s:r=new this(NaN),r}function Fl(e){return new this(e).cbrt()}function Ql(e){return Zs(e=new this(e),e.e+1,2)}function Sl(e,t,r){return new this(e).clamp(t,r)}function kl(e){if(!e||"object"!=typeof e)throw Error(qs+"Object expected");var t,r,n,i=!0===e.defaults,o=["precision",1,Ds,"rounding",0,8,"toExpNeg",-xs,0,"toExpPos",0,xs,"maxE",0,xs,"minE",-xs,0,"modulo",0,9];for(t=0;t<o.length;t+=3)if(r=o[t],i&&(this[r]=ks[r]),void 0!==(n=e[r])){if(!(Rs(n)===n&&n>=o[t+1]&&n<=o[t+2]))throw Error(Ms+r+": "+n);this[r]=n}if(r="crypto",i&&(this[r]=ks[r]),void 0!==(n=e[r])){if(!0!==n&&!1!==n&&0!==n&&1!==n)throw Error(Ms+r+": "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(Ls);this[r]=!0}else this[r]=!1}return this}function Nl(e){return new this(e).cos()}function ql(e){return new this(e).cosh()}function Ml(e,t){return new this(e).div(t)}function Hl(e){return new this(e).exp()}function Ll(e){return Zs(e=new this(e),e.e+1,3)}function Ul(){var e,t,r=new this(0);for(Ns=!1,e=0;e<arguments.length;)if((t=new this(arguments[e++])).d)r.d&&(r=r.plus(t.times(t)));else{if(t.s)return Ns=!0,new this(1/0);r=t}return Ns=!0,r.sqrt()}function Rl(e){return e instanceof oc||e&&e.toStringTag===Us||!1}function Ol(e){return new this(e).ln()}function Tl(e,t){return new this(e).log(t)}function Yl(e){return new this(e).log(2)}function jl(e){return new this(e).log(10)}function Gl(){return ll(this,arguments,-1)}function Jl(){return ll(this,arguments,1)}function zl(e,t){return new this(e).mod(t)}function Vl(e,t){return new this(e).mul(t)}function Pl(e,t){return new this(e).pow(t)}function Xl(e){var t,r,n,i,o=0,a=new this(1),s=[];if(void 0===e?e=this.precision:_s(e,1,Ds),n=Math.ceil(e/7),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(n));o<n;)(i=t[o])>=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:s[o++]=i%1e7;else{if(!crypto.randomBytes)throw Error(Ls);for(t=crypto.randomBytes(n*=4);o<n;)(i=t[o]+(t[o+1]<<8)+(t[o+2]<<16)+((127&t[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,o):(s.push(i%1e7),o+=4);o=n/4}else for(;o<n;)s[o++]=1e7*Math.random()|0;for(e%=7,(n=s[--o])&&e&&(i=Os(10,7-e),s[o]=(n/i|0)*i);0===s[o];o--)s.pop();if(o<0)r=0,s=[0];else{for(r=-1;0===s[0];r-=7)s.shift();for(n=1,i=s[0];i>=10;i/=10)n++;n<7&&(r-=7-n)}return a.e=r,a.d=s,a}function _l(e){return Zs(e=new this(e),e.e+1,this.rounding)}function Wl(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function Kl(e){return new this(e).sin()}function $l(e){return new this(e).sinh()}function Zl(e){return new this(e).sqrt()}function ec(e,t){return new this(e).sub(t)}function tc(){var e=0,t=arguments,r=new this(t[e]);for(Ns=!1;r.s&&++e<t.length;)r=r.plus(t[e]);return Ns=!0,Zs(r,this.precision,this.rounding)}function rc(e){return new this(e).tan()}function nc(e){return new this(e).tanh()}function ic(e){return Zs(e=new this(e),e.e+1,1)}Ps[Symbol.for("nodejs.util.inspect.custom")]=Ps.toString,Ps[Symbol.toStringTag]="Decimal";var oc=Ps.constructor=function e(t){var r,n,i;function o(e){var t,r,n,i=this;if(!(i instanceof o))return new o(e);if(i.constructor=o,Rl(e))return i.s=e.s,void(Ns?!e.d||e.e>o.maxE?(i.e=NaN,i.d=null):e.e<o.minE?(i.e=0,i.d=[0]):(i.e=e.e,i.d=e.d.slice()):(i.e=e.e,i.d=e.d?e.d.slice():e.d));if("number"===(n=typeof e)){if(0===e)return i.s=1/e<0?-1:1,i.e=0,void(i.d=[0]);if(e<0?(e=-e,i.s=-1):i.s=1,e===~~e&&e<1e7){for(t=0,r=e;r>=10;r/=10)t++;return void(Ns?t>o.maxE?(i.e=NaN,i.d=null):t<o.minE?(i.e=0,i.d=[0]):(i.e=t,i.d=[e]):(i.e=t,i.d=[e]))}return 0*e!=0?(e||(i.s=NaN),i.e=NaN,void(i.d=null)):dl(i,e.toString())}if("string"===n)return 45===(r=e.charCodeAt(0))?(e=e.slice(1),i.s=-1):(43===r&&(e=e.slice(1)),i.s=1),Gs.test(e)?dl(i,e):gl(i,e);if("bigint"===n)return e<0?(e=-e,i.s=-1):i.s=1,dl(i,e.toString());throw Error(Ms+e)}if(o.prototype=Ps,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=kl,o.clone=e,o.isDecimal=Rl,o.abs=yl,o.acos=vl,o.acosh=bl,o.add=wl,o.asin=Bl,o.asinh=El,o.atan=Cl,o.atanh=xl,o.atan2=Dl,o.cbrt=Fl,o.ceil=Ql,o.clamp=Sl,o.cos=Nl,o.cosh=ql,o.div=Ml,o.exp=Hl,o.floor=Ll,o.hypot=Ul,o.ln=Ol,o.log=Tl,o.log10=jl,o.log2=Yl,o.max=Gl,o.min=Jl,o.mod=zl,o.mul=Vl,o.pow=Pl,o.random=Xl,o.round=_l,o.sign=Wl,o.sin=Kl,o.sinh=$l,o.sqrt=Zl,o.sub=ec,o.sum=tc,o.tan=rc,o.tanh=nc,o.trunc=ic,void 0===t&&(t={}),t&&!0!==t.defaults)for(i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],r=0;r<i.length;)t.hasOwnProperty(n=i[r++])||(t[n]=this[n]);return o.config(t),o}(ks);function ac(e,t=0){if(Eo(t)||(t=0),t=eo(t),!ke(e))return"";return new oc(e).toDecimalPlaces(t,oc.ROUND_CEIL).toNumber()}function sc(e,t=0){if(!ke(e))return"";if(!Eo(t))return"";return e=Hn(e),Zi(e,t).toFixed(t)}function lc(e){let t=function(){let e=vn();return n||e.xss}();let r=function e(r){return xe(r)||Ee(r)?(Cr(r,function(t,n){r[n]=e(t)}),r):Fe(r)?t(r,{onIgnoreTagAttr:function(e,r,n,i){if("style"===r)return r+'="'+t.escapeAttrValue(n)+'"'}}):r}(Vi(e));return r}function cc(e,t){let r=is();if(!xe(e)&&!Ee(e))return r.reject("rs is not an array or object"),r;let n=!1;if(Ee(e)){n=!0;let t=[];Cr(e,(e,r)=>{t.push({k:r,v:e})}),e=t}ba(t)||(t=function(e){return e});let i=-1,o=[];return e.reduce(function(e,r){return e.then(function(e){o.push(e),i+=1;let a=i,s=r;return n&&(a=r.k,s=r.v),ba(t)?t(s,a):s})},Promise.resolve()).then(function(e){o.push(e),o=Ga(o),r.resolve(o)}).catch(function(e){r.reject(e)}),r}Qs=new oc(Qs),Ss=new oc(Ss);let uc={},fc={};function dc({tagName:e,path:t,attributes:r={},func:n}){let i=is();if("done"===uc[t])return i.resolve("loaded"),i;if("loading"===uc[t])return bs(()=>"done"===uc[t]).then(function(){i.resolve("loaded")}),i;uc[t]="loading";let o=document.createElement(e);return Cr(r,(e,t)=>{o.setAttribute(t,e)}),r.rel&&"stylesheet"===r.rel?(o.setAttribute("href",t),setTimeout(()=>{i.resolve(o),uc[t]="done"},1)):(o.src=t,o.addEventListener("load",()=>{let e;ba(n)?e=bs(n):(e=is(),e.resolve()),e.then(()=>ws(500)).then(function(){i.resolve(o),uc[t]="done"})}),o.addEventListener("error",()=>{i.reject(o),uc[t]="done"})),document.getElementsByTagName("head")[0].appendChild(o),i}function gc(e){let t=is();xe(e)||(e=[e]),Cr(e,(t,r)=>{De(t)&&(e[r]={path:t})});let r=Do(Dr(e,"path"),"|");return"done"===fc[r]?(t.resolve("loaded"),t):"loading"===fc[r]?(bs(()=>"done"===fc[r]).then(function(){t.resolve("loaded")}),t):(fc[r]="loading",Cr(e,(e,t)=>{e.type||(".js"===da(e.path,3)?e.type="js":".css"===da(e.path,4)?e.type="css":e.type="unknow")}),cc(e,e=>{let t=is();if("js"===e.type)t=dc({tagName:"script",path:e.path,attributes:{type:"text/javascript"},func:e.func});else if("css"===e.type)t=dc({tagName:"link",path:e.path,attributes:{rel:"stylesheet"}});else{let r="invalid pathItem.type: "+e.type;console.log(r),t.reject(r)}return t}).finally(()=>{fc[r]="done"}))}function pc(e){return ye(e).toUpperCase()}function hc(e,t,r){if(!Fe(e))return"";if(!Fe(t))return"";if(!De(r))return"";return String(e).replaceAll(t,r)}function Ac(e,t,r=1){return Fe(e)&&Eo(t)?(r=to(r)?eo(r):1,e.substring(t,t+r)):""}let mc={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function Ic(e){return vc(e,1)}function yc(e){return vc(e,360)}function vc(e,t=1){if(e.indexOf("%")>=0){if(!ke(e=hc(e,"%","")))throw new Error("invalid color: value is not a number");e=Hn(e)/100}else{if(!ke(e))throw new Error("invalid color: value is not a number");e=Hn(e)/t}if(e>1)throw new Error("invalid color: value > 1");if(e<0)throw new Error("invalid color: value < 0");return e}function bc(e){if(!ke(e))throw new Error("invalid color: value is not a number");if((e=Hn(e))>1)throw new Error("invalid color: value > 1");if(e<0)throw new Error("invalid color: value < 0");return e}function wc(e,t="rgba"){if(!xe(e))throw new Error("invalid colors array");let r=Be(e,0,0),n=Be(e,1,0),i=Be(e,2,0),o=Be(e,3,1);if(4!==gn(t=t.split("")))throw new Error("tar.length !== 4");let a=Be(t,0),s=Be(t,1),l=Be(t,2),c=Be(t,3);return{[a]:r,[s]:n,[l]:i,[c]:o}}function Bc(e){let t=(e=ga(e,1)).length;if(2===t)e=`${e}${e}${e}ff`;else if(3===t){let t=Ac(e,0,1),r=Ac(e,1,1),n=Ac(e,2,1);e=`${t}${t}${r}${r}${n}${n}ff`}else if(6===t)e=`${e}ff`;else if(8!==t)throw new Error("invalid hex color");function r(e){if(2!==e.length)throw new Error("hex.length of color is not equal to 2");if(!ke(e=parseInt(e,16)))throw new Error("invalid hex of color");return(e=Hn(e))/255}return{r:r(Ac(e,0,2)),g:r(Ac(e,2,2)),b:r(Ac(e,4,2)),a:r(Ac(e,6,2))}}function Ec(e){return e=wc(e=Dr(e,(e,t)=>t<=2?vc(e,255):3===t?bc(e):null),"rgba")}function Cc(e){return e=qc(e=wc(e=Dr(e,(e,t)=>0===t?yc(e):1===t||2===t?Ic(e):3===t?bc(e):null),"hsla"))}function xc(e){return e=Mc(e=wc(e=Dr(e,(e,t)=>0===t?yc(e):1===t||2===t?Ic(e):3===t?bc(e):null),"hsva"))}function Dc(e){if("transparent"===e)return{r:0,g:0,b:0,a:0};if(function(e){return Ne(mc,e)}(e))return Bc(e=function(e){return`#${mc[e]}`}(e));if(function(e){return"#"===fa(e,1)&&(!!/[0-9A-Fa-f]{2}/g.test(e)||(!!/[0-9A-Fa-f]{3}/g.test(e)||(!!/[0-9A-Fa-f]{6}/g.test(e)||!!/[0-9A-Fa-f]{8}/g.test(e))))}(e))return Bc(e);if(function(e){return"rgb"===fa(e,3)||"rgba"===fa(e,4)}(e))return function(e){return e=hc(e,"rgba",""),e=hc(e,"rgb",""),Ec(ua(e=hc(e=e.replace(/[()]/g,""),","," ")," "))}(e);if(function(e){return"hsl"===fa(e,3)||"hsla"===fa(e,4)}(e))return function(e){return e=hc(e,"hsla",""),e=hc(e,"hsl",""),Cc(ua(e=hc(e=e.replace(/[()]/g,""),","," ")," "))}(e);if(function(e){return"hsv"===fa(e,3)||"hsva"===fa(e,4)}(e))return function(e){return e=hc(e,"hsva",""),e=hc(e,"hsv",""),xc(ua(e=hc(e=e.replace(/[()]/g,""),","," ")," "))}(e);throw new Error("format of color string is not hex-color, name-color, rgba, hsla, hsva")}function Fc(e,t){return!!Ne(e,t=Bs(t))||!!Ne(e,t=pc(t))}function Qc(e,t,r){let n;return n=Be(e,t,null),null!==n?n:(n=Be(e,t=pc(t),null),null!==n?n:r)}function Sc(e){if(function(e){let t=Fc(e,"r"),r=Fc(e,"g"),n=Fc(e,"b");return t&&r&&n}(e))return function(e){let t=[Qc(e,"r",null),Qc(e,"g",null),Qc(e,"b",null),Qc(e,"a",1)];return t=Dr(t,ja),Ec(t)}(e);if(function(e){let t=Fc(e,"h"),r=Fc(e,"s"),n=Fc(e,"l");return t&&r&&n}(e))return function(e){let t=[Qc(e,"h",null),Qc(e,"s",null),Qc(e,"l",null),Qc(e,"a",1)];return t=Dr(t,ja),Cc(t)}(e);if(function(e){let t=Fc(e,"h"),r=Fc(e,"s"),n=Fc(e,"v");return t&&r&&n}(e))return function(e){let t=[Qc(e,"h",null),Qc(e,"s",null),Qc(e,"v",null),Qc(e,"a",1)];return t=Dr(t,ja),xc(t)}(e);throw new Error("color object is not one of rgba, hsla, hsva")}function kc(e){let t,r,n=e.r,i=e.g,o=e.b,a=Math.max(n,i,o),s=Math.min(n,i,o),l=(a+s)/2;if(a===s)t=r=0;else{let e=a-s;switch(r=l>.5?e/(2-a-s):e/(a+s),a){case n:t=(i-o)/e+(i<o?6:0);break;case i:t=(o-n)/e+2;break;case o:t=(n-i)/e+4}t/=6}return{h:t,s:r,l:l,a:e.a}}function Nc(e){let t,r,n=e.r,i=e.g,o=e.b,a=Math.max(n,i,o),s=Math.min(n,i,o),l=a,c=a-s;if(r=0===a?0:c/a,a===s)t=0;else{switch(a){case n:t=(i-o)/c+(i<o?6:0);break;case i:t=(o-n)/c+2;break;case o:t=(n-i)/c+4}t/=6}return{h:t,s:r,v:l,a:e.a}}function qc(e){let t,r,n,i=e.h,o=e.s,a=e.l;function s(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(0===o)t=r=n=a;else{let e=a<.5?a*(1+o):a+o-a*o,l=2*a-e;t=s(l,e,i+1/3),r=s(l,e,i),n=s(l,e,i-1/3)}return{r:t,g:r,b:n,a:e.a}}function Mc(e){let t,r,n,i=e.h,o=e.s,a=e.v,s=Math.floor(6*i),l=6*i-s,c=a*(1-o),u=a*(1-l*o),f=a*(1-(1-l)*o);switch(s%6){case 0:t=a,r=f,n=c;break;case 1:t=u,r=a,n=c;break;case 2:t=c,r=a,n=f;break;case 3:t=c,r=u,n=a;break;case 4:t=f,r=c,n=a;break;case 5:t=a,r=c,n=u}return{r:t,g:r,b:n,a:e.a}}function Hc(e){let t=Math.round(255*e).toString(16);if(1===t.length)return`0${t}`;if(2===t.length)return t;throw new Error("invalid value")}function Lc(e,t=!0){let r=e.r,n=e.g,i=e.b,o=e.a,a=`${Hc(r)}${Hc(n)}${Hc(i)}`;return t&&(a=`${a}${Hc(o)}`),a}function Uc(e){return Math.min(1,Math.max(0,e))}function Rc(e,t){if(!Fe(t))throw new Error("fmtOutput is not a string");if(!Iu[t])throw console.log(`fmtOutput must be [${gt(Iu)}]`),new Error("invalid fmtOutput");return e=Iu[t](e)}function Oc(e,t,r="toRgbString"){if(t<0||t>1)throw new Error("amount < 0 or > 1");let n=kc(e);return n.h+=t,n.h=n.h%1,Rc(qc(n),r)}function Tc(e,t,r,n,i="toRgbString"){if(t<0||t>1)throw new Error("w1 < 0 or > 1");if(n<0||n>1)throw new Error("w1 < 0 or > 1");return Rc({r:e.r*t+r.r*n,g:e.g*t+r.g*n,b:e.b*t+r.b*n,a:e.a*t+r.a*n},i)}function Yc(e){return`${Zi(100*e,1)}%`}function jc(e){return Zi(e,0)}function Gc(e){return Zi(e,3)}function Jc(e){return{r:jc(255*e.r),g:jc(255*e.g),b:jc(255*e.b)}}function zc(e){return`rgb(${jc(255*e.r)}, ${jc(255*e.g)}, ${jc(255*e.b)})`}function Vc(e){return{r:jc(255*e.r),g:jc(255*e.g),b:jc(255*e.b),a:Gc(e.a)}}function Pc(e){return`rgba(${jc(255*e.r)}, ${jc(255*e.g)}, ${jc(255*e.b)}, ${Gc(e.a)})`}function Xc(e){let t=kc(e);return{h:jc(360*t.h),s:Gc(t.s),l:Gc(t.l)}}function _c(e){let t=kc(e);return`hsl(${jc(360*t.h)}, ${Gc(t.s)}, ${Gc(t.l)})`}function Wc(e){let t=kc(e);return{h:jc(360*t.h),s:Gc(t.s),l:Gc(t.l),a:Gc(t.a)}}function Kc(e){let t=kc(e);return`hsla(${jc(360*t.h)}, ${Gc(t.s)}, ${Gc(t.l)}, ${Gc(t.a)})`}function $c(e){let t=Nc(e);return{h:jc(360*t.h),s:Gc(t.s),v:Gc(t.v)}}function Zc(e){let t=Nc(e);return`hsv(${jc(360*t.h)}, ${Gc(t.s)}, ${Gc(t.v)})`}function eu(e){let t=Nc(e);return{h:jc(360*t.h),s:Gc(t.s),v:Gc(t.v),a:Gc(t.a)}}function tu(e){let t=Nc(e);return`hsva(${jc(360*t.h)}, ${Gc(t.s)}, ${Gc(t.v)}, ${Gc(t.a)})`}function ru(e){return{r:Yc(e.r),g:Yc(e.g),b:Yc(e.b)}}function nu(e){return`rgb(${Yc(e.r)}, ${Yc(e.g)}, ${Yc(e.b)})`}function iu(e){return{r:Yc(e.r),g:Yc(e.g),b:Yc(e.b),a:Gc(e.a)}}function ou(e){return`rgba(${Yc(e.r)}, ${Yc(e.g)}, ${Yc(e.b)}, ${Gc(e.a)})`}function au(e){let t=kc(e);return{h:jc(360*t.h),s:Yc(t.s),l:Yc(t.l)}}function su(e){let t=kc(e);return`hsl(${jc(360*t.h)}, ${Yc(t.s)}, ${Yc(t.l)})`}function lu(e){let t=kc(e);return{h:jc(360*t.h),s:Yc(t.s),l:Yc(t.l),a:Gc(t.a)}}function cu(e){let t=kc(e);return`hsla(${jc(360*t.h)}, ${Yc(t.s)}, ${Yc(t.l)}, ${Gc(t.a)})`}function uu(e){let t=Nc(e);return{h:jc(360*t.h),s:Yc(t.s),v:Yc(t.v)}}function fu(e){let t=Nc(e);return`hsv(${jc(360*t.h)}, ${Yc(t.s)}, ${Yc(t.v)})`}function du(e){let t=Nc(e);return{h:jc(360*t.h),s:Yc(t.s),v:Yc(t.v),a:Gc(t.a)}}function gu(e){let t=Nc(e);return`hsva(${jc(360*t.h)}, ${Yc(t.s)}, ${Yc(t.v)}, ${Gc(t.a)})`}function pu(e){let t=function(e){return Lc(e,!1)}(e);return`#${t}`}function hu(e){return`#${Lc(e)}`}function Au(e){let t=null,r=null,n=null;if(Fe(e))t=Bs(la(e));else{if(!Ce(e))throw console.log("color=",e),new Error("color is not a string or an object");r=e}if(null!==t)try{n=Dc(t)}catch(e){throw console.log(e),new Error(`can not parse color: ${t}`)}else if(null!==r)try{n=Sc(r)}catch(e){throw console.log(e),new Error(`can not parse color: ${JSON.stringify(r)}`)}return n}function mu(e){if(!Ce(e))return console.log("gradient is not an effective object"),e=>`rgb(${255*(e=Math.min(Math.max(e,0),1))},${255*e},${255*e})`;let t=[];return Cr(e,(e,r)=>{t.push([Hn(r),Vc(Au(e)),e])}),t=Ta(t,0),function(e){let r=null;for(let n=1;n<t.length;n++){let i=t[n-1][0],o=t[n-1][1],a=t[n][0],s=t[n][1];if(i<=e&&a>=e){let t=(a-e)/(a-i),n=(e-i)/(a-i);r=Tc(Au(o),t,Au(s),n,"toRgbaString");break}}return r}}let Iu={toRgb:Jc,toRgbString:zc,toRgba:Vc,toRgbaString:Pc,toHsl:Xc,toHslString:_c,toHsla:Wc,toHslaString:Kc,toHsv:$c,toHsvString:Zc,toHsva:eu,toHsvaString:tu,toRgbP:ru,toRgbPString:nu,toRgbaP:iu,toRgbaPString:ou,toHslP:au,toHslPString:su,toHslaP:lu,toHslaPString:cu,toHsvP:uu,toHsvPString:fu,toHsvaP:du,toHsvaPString:gu,toHexString:pu,toHex8String:hu};var yu={toRgb:e=>Jc(Au(e)),toRgbString:e=>zc(Au(e)),toRgba:e=>Vc(Au(e)),toRgbaString:e=>Pc(Au(e)),toHsl:e=>Xc(Au(e)),toHslString:e=>_c(Au(e)),toHsla:e=>Wc(Au(e)),toHslaString:e=>Kc(Au(e)),toHsv:e=>$c(Au(e)),toHsvString:e=>Zc(Au(e)),toHsva:e=>eu(Au(e)),toHsvaString:e=>tu(Au(e)),toRgbP:e=>ru(Au(e)),toRgbPString:e=>nu(Au(e)),toRgbaP:e=>iu(Au(e)),toRgbaPString:e=>ou(Au(e)),toHslP:e=>au(Au(e)),toHslPString:e=>su(Au(e)),toHslaP:e=>lu(Au(e)),toHslaPString:e=>cu(Au(e)),toHsvP:e=>uu(Au(e)),toHsvPString:e=>fu(Au(e)),toHsvaP:e=>du(Au(e)),toHsvaPString:e=>gu(Au(e)),toHexString:e=>pu(Au(e)),toHex8String:e=>hu(Au(e)),modSaturate:(e,t,r)=>function(e,t,r="toRgbString"){if(t<0||t>1)throw new Error("amount < 0 or > 1");let n=kc(e);return n.s+=t,n.s=Uc(n.s),Rc(qc(n),r)}(Au(e),t,r),modGrey:(e,t)=>function(e,t="toRgbString"){let r=kc(e);return r.s=0,Rc(qc(r),t)}(Au(e),t),modLighten:(e,t,r)=>function(e,t,r="toRgbString"){if(t<0||t>1)throw new Error("amount < 0 or > 1");let n=kc(e);return n.l+=t,n.l=Uc(n.l),Rc(qc(n),r)}(Au(e),t,r),modBrighten:(e,t,r)=>function(e,t,r="toRgbString"){if(t<0||t>1)throw new Error("amount < 0 or > 1");return e.r+=t,e.r=Uc(e.r),e.g+=t,e.g=Uc(e.g),e.b+=t,e.b=Uc(e.b),Rc(e,r)}(Au(e),t,r),modHue:(e,t,r)=>Oc(Au(e),t,r),modComplement:(e,t)=>function(e,t="toRgbString"){return Oc(e,.5,t)}(Au(e),t),spreadHue:(e,t,r)=>function(e,t,r="toRgbString"){if(!Ln(t))throw new Error("num is not an integer");if((t=eo(t))<=1)return[e];let n=kc(e),i=1/t,o=[];for(let e=0;e<t;e++)o.push(Rc(qc(n),r)),n.h+=i,n.h=n.h%1;return o}(Au(e),t,r),spreadMonochromatic:(e,t,r)=>function(e,t,r="toRgbString"){if(!Ln(t))throw new Error("num is not an integer");if((t=eo(t))<=1)return[e];let n=Nc(e);n.s=1,n.l=1;let i=1/t,o=[];for(let e=0;e<t;e++)o.push(Rc(Mc(n),r)),n.h-=i,n.l-=i;return o}(Au(e),t,r),mix:(e,t,r,n,i)=>Tc(Au(e),t,Au(r),n,i),getBrightness:e=>function(e){if(1!==e.a)throw new Error("alpha of color can not be equal to 1");return(299*e.r+587*e.g+114*e.b)/1e3}(Au(e)),getLuminance:e=>function(e){if(1!==e.a)throw new Error("alpha of color can not be equal to 1");let t,r,n,i=e.r,o=e.g,a=e.b;return t=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),r=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),n=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4),.2126*t+.7152*r+.0722*n}(Au(e)),interp:mu};function vu(e,t,r){return null==e?e:function(e,t,r,n){if(!R(e))return e;for(var i=-1,o=(t=ve(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var l=be(t[i]),c=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=a){var u=s[l];void 0===(c=n?n(u,l,s):void 0)&&(c=R(u)?u:Xe(t[i+1])?[]:{})}hi(s,l,c),s=s[l]}return e}(e,t,r)}function bu(e){return br(e)?void 0:e}var wu=wo(function(e,t){var r={};if(null==e)return r;var n=!1;t=he(t,function(t){return t=ve(t,e),n||(n=t.length>1),t}),Ai(e,xi(e),r),n&&(r=zi(r,7,bu));for(var i=t.length;i--;)Na(r,t[i]);return r}),Bu=wu;function Eu(e,t={}){let r="$level",n="$parents";if(!Or(e))return[];let i=Be(t,"bindKey",null);Fe(i)||(i="id");let o=Be(t,"bindParent",null);Fe(o)||(o="parentId");let a=Be(t,"bindChildren",null);Fe(a)||(a="children");let s=Be(t,"saveExtProps",null);hn(s)||(s=!1),e=function(e){let t=[];function a(a){let s=[];Cr(e,(e,l)=>{let c=Be(e,o),u=Be(a,i);if(c&&u&&c===u){let o=Be(a,n,[]);o=Vi(o),o.push(a[i]),t.push({[r]:a[r]+1,[n]:o,...e})}else s.push(e)}),e=s}if(e=Vi(e),function(){let i=[];Cr(e,(e,a)=>{Rr(e[o])?t.push({[r]:0,[n]:[],...e}):i.push(e)}),e=i}(),0===t.length)return t;let s=-1;for(;s+=1,!(s>t.length-1);){if(a(t[s]),0===e.length)break}return t}(e);let l=function(e){let t=[];function l(e){return s?e:Bu(e,[r,n])}let c={};return Cr(e,(n,s)=>{if(0===n[r]){let e=l(n);t.push(e),c[n[i]]=[s]}else{let r=function(t){for(let r=0;r<e.length;r++){let n=e[r];if(t[o]===n[i])return n}return null}(n);if(null!==r){let e=c[r[i]];e=[...e,a];let o=Be(t,e,[]),s=l(n);o.push(s),c[n[i]]=[...e,o.length-1],vu(t,e,o)}else console.log(`can not find parent for ${Be(n,o)}`)}}),t}(e);return l}function Cu(e,t=null,r={}){O(t)||(t=e=>e);let n=Be(r,"force",!1);return hn(n)||(n=!1),function(e,t,r=!1){let n=[];if(!xe(e)&&!Ee(e))return t(e,null,[]);function i(e){if(xe(e))return so(gn(e));if(Ee(e)){let t=Object.getOwnPropertyNames(e),n=null;return r&&(n=Object.getOwnPropertySymbols(e)),xe(t)||(t=[]),xe(n)||(n=[]),[...t,...n]}return e}return function e(r,o){if(xe(r))return i(r).map(i=>{let o=r[i],a=Vi(n);return n.push(i),o=t(o,i,a),o=e(o),n.pop(),o});if(Ee(r)){let o=i(r),a={};return o.map(i=>{let o=r[i],s=Vi(n);n.push(i),o=t(o,i,s),o=e(o),n.pop(),a[i]=o}),a}return r}(e)}(e,t,n)}function xu(e,t={}){if(!Ce(e)&&!Or(e))return[];let r=Be(t,"bindKey",null);Fe(r)||(r="id");let n=Be(t,"bindParent",null);Fe(n)||(n="parentId");let i=Be(t,"bindBelong",null);Fe(i)||(i="key");let o=Be(t,"bindText",null);Fe(o)||(o="text");let a=Be(t,"bindType",null);Fe(a)||(a="type");let s=Be(t,"bindNumOfChilren",null);function l(e,t){return e=Dr(e=Vi(e),e=>M(e)?ja(e):e),M(t)&&(t=ja(t)),(Fe(t)||ke(t))&&e.push(t),Do(e,"-")}Fe(s)||(s="numOfChilren");let c=[];return Cu(e,(e,t,u)=>{let f=l(u,t),d=l(u,null),g="node";Ee(e)?g="object":xe(e)&&(g="array");let p={[r]:f,[n]:d,[a]:g};if((Fe(t)||ya(t))&&(p[i]=t),Ee(e)||xe(e)||(p[o]=e),Ee(e)||xe(e)){let t=null;Ee(e)?t=gn(gt(e)):xe(e)&&(t=gn(e)),p[s]=t}return c.push(p),e},{force:!0}),c}function Du(e){if(!wr(e))return"invalid element";let t=!1;try{t=document.activeElement===e}catch(e){console.log(e)}return t}function Fu(e){return ke(e)?(e=Hn(e),Math.cos(e*Math.PI/180)):null}function Qu(e){return ke(e)?(e=Hn(e),Math.tan(e*Math.PI/180)):null}function Su(){let e=new function e(){if(!(this instanceof e))return new e;this.SheetNames=[],this.Sheets={}};return e}function ku(e){return ke(e)?(e=Hn(e),Math.sin(e*Math.PI/180)):null}function Nu(e){if(!Fe(e))return!1;let t="YYYY-MM-DD";return e===r(e,t).format(t)}function qu(e=300){return new function(e){let t=[],r=null,n=Date.now();return to(e)||(e=300),e=eo(e),function(i,...o){ba(i)?(n=Date.now(),t.push({func:i,input:o}),null===r&&(r=setInterval(()=>{if(0===gn(t))return clearInterval(r),void(r=null);if(Date.now()-n>e){let e=t.pop();t=[];try{e.func(...e.input)}catch(e){console.log("m.func catch",e)}}},10))):console.log("func is not a function")}}(e)}let Mu="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),Hu=Mu.length;function Lu(e=32){let t=[];e=to(e)?eo(e):32;for(let r=0;r<e;r++)t[r]=Mu[0|Math.random()*Hu];return t.join("")}function Uu(e,t={}){if(!wr(e))return;let r=Be(t,"duration",500);r=Hn(r),r<0&&(r=1e3);let n=Be(t,"delay",0);n=Hn(n),n<0&&(n=0);let i=Be(t,"opacityIni",0);i=Hn(i),i=Math.min(Math.max(i,0),1),ke(e.style.opacity)&&(i=Hn(e.style.opacity));let o=10/r,a=`tag-${Lu()}`;e.setAttribute("dom-fade-tag",a),setTimeout(()=>{let t=setInterval(()=>{try{e.getAttribute("dom-fade-tag")!==a&&clearInterval(t),e.style.opacity=i,i>=1&&(clearInterval(t),e.removeAttribute("dom-fade-tag")),i+=o,i>1&&(i=1)}catch(e){console.log(e),clearInterval(t)}},10)},n)}function Ru(e,t={}){if(!wr(e))return;let r=Be(t,"duration",500);r=Hn(r),r<0&&(r=1e3);let n=Be(t,"delay",0);n=Hn(n),n<0&&(n=0);let i=Be(t,"opacityIni",1);i=Hn(i),i=Math.min(Math.max(i,0),1),ke(e.style.opacity)&&(i=Hn(e.style.opacity));let o=10/r,a=`tag-${Lu()}`;e.setAttribute("dom-fade-tag",a),setTimeout(()=>{let t=setInterval(()=>{try{e.getAttribute("dom-fade-tag")!==a&&clearInterval(t),e.style.opacity=i,i<=0&&(clearInterval(t),e.removeAttribute("dom-fade-tag")),i-=o,i<0&&(i=0)}catch(e){console.log(e),clearInterval(t)}},10)},n)}let Ou='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 512.001 512.001" style="width:12px; height:12px; enable-background:new 0 0 512.001 512.001;" xml:space="preserve"><g><g><path d="M284.286,256.002L506.143,34.144c7.811-7.811,7.811-20.475,0-28.285c-7.811-7.81-20.475-7.811-28.285,0L256,227.717L34.143,5.859c-7.811-7.811-20.475-7.811-28.285,0c-7.81,7.811-7.811,20.475,0,28.285l221.857,221.857L5.858,477.859c-7.811,7.811-7.811,20.475,0,28.285c3.905,3.905,9.024,5.857,14.143,5.857c5.119,0,10.237-1.952,14.143-5.857L256,284.287l221.857,221.857c3.905,3.905,9.024,5.857,14.143,5.857s10.237-1.952,14.143-5.857c7.811-7.811,7.811-20.475,0-28.285L284.286,256.002z"/></g></g></svg>',Tu={success:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 426.667 426.667" style="width:24px; height:24px; enable-background:new 0 0 426.667 426.667" xml:space="preserve"><path style="fill:#6ac259" d="M213.333,0C95.518,0,0,95.514,0,213.333s95.518,213.333,213.333,213.333 c117.828,0,213.333-95.514,213.333-213.333S331.157,0,213.333,0z M174.199,322.918l-93.935-93.931l31.309-31.309l62.626,62.622 l140.894-140.898l31.309,31.309L174.199,322.918z"/></svg>',error:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 496.158 496.158" style="width:24px; height:24px; enable-background:new 0 0 496.158 496.158" xml:space="preserve"><path style="fill:#e04f5f" d="M496.158,248.085c0-137.021-111.07-248.082-248.076-248.082C111.07,0.003,0,111.063,0,248.085 c0,137.002,111.07,248.07,248.082,248.07C385.088,496.155,496.158,385.087,496.158,248.085z"/><path style="fill:#fff" d="M277.042,248.082l72.528-84.196c7.91-9.182,6.876-23.041-2.31-30.951 c-9.172-7.904-23.032-6.876-30.947,2.306l-68.236,79.212l-68.229-79.212c-7.91-9.188-21.771-10.216-30.954-2.306 c-9.186,7.91-10.214,21.77-2.304,30.951l72.522,84.196l-72.522,84.192c-7.91,9.182-6.882,23.041,2.304,30.951 c4.143,3.569,9.241,5.318,14.316,5.318c6.161,0,12.294-2.586,16.638-7.624l68.229-79.212l68.236,79.212 c4.338,5.041,10.47,7.624,16.637,7.624c5.069,0,10.168-1.749,14.311-5.318c9.186-7.91,10.22-21.77,2.31-30.951L277.042,248.082z"/></svg>',warning:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 497.472 497.472" style="width:24px; height:24px; enable-background:new 0 0 497.472 497.472" xml:space="preserve"><g transform="matrix(1.25 0 0 -1.25 0 45)"><path style="fill:#ffcc4d" d="M24.374-357.857c-20.958,0-30.197,15.223-20.548,33.826L181.421,17.928 c9.648,18.603,25.463,18.603,35.123,0L394.14-324.031c9.671-18.603,0.421-33.826-20.548-33.826H24.374z"/><path style="fill:#231f20" d="M173.605-80.922c0,14.814,10.934,23.984,25.395,23.984c14.12,0,25.407-9.512,25.407-23.984 V-216.75c0-14.461-11.287-23.984-25.407-23.984c-14.461,0-25.395,9.182-25.395,23.984V-80.922z M171.489-289.056 c0,15.167,12.345,27.511,27.511,27.511c15.167,0,27.523-12.345,27.523-27.511c0-15.178-12.356-27.523-27.523-27.523 C183.834-316.579,171.489-304.234,171.489-289.056"/></g></svg>',infor:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 496.16 496.16" style="width:24px; height:24px; enable-background:new 0 0 496.158 496.158;" xml:space="preserve"><path d="m496.16 248.08c0-137.02-111.07-248.08-248.08-248.08-137.01 0-248.08 111.06-248.08 248.08 0 137 111.07 248.07 248.08 248.07 137.01 0 248.08-111.07 248.08-248.07z" fill="#25B7D3"/><g fill="#fff"><path d="m315.25 359.56c-1.387-2.032-4.048-2.755-6.27-1.702-24.582 11.637-52.482 23.94-57.958 25.015-0.138-0.123-0.357-0.348-0.644-0.737-0.742-1.005-1.103-2.318-1.103-4.015 0-13.905 10.495-56.205 31.192-125.72 17.451-58.406 19.469-70.499 19.469-74.514 0-6.198-2.373-11.435-6.865-15.146-4.267-3.519-10.229-5.302-17.719-5.302-12.459 0-26.899 4.73-44.146 14.461-16.713 9.433-35.352 25.41-55.396 47.487-1.569 1.729-1.733 4.314-0.395 6.228 1.34 1.915 3.825 2.644 5.986 1.764 7.037-2.872 42.402-17.359 47.557-20.597 4.221-2.646 7.875-3.989 10.861-3.989 0.107 0 0.199 4e-3 0.276 0.01 0.036 0.198 0.07 0.5 0.07 0.933 0 3.047-0.627 6.654-1.856 10.703-30.136 97.641-44.785 157.5-44.785 182.99 0 8.998 2.501 16.242 7.432 21.528 5.025 5.393 11.803 8.127 20.146 8.127 8.891 0 19.712-3.714 33.08-11.354 12.936-7.392 32.68-23.653 60.363-49.717 1.793-1.687 2.092-4.426 0.705-6.458z"/><path d="m314.28 76.672c-4.925-5.041-11.227-7.597-18.729-7.597-9.34 0-17.475 3.691-24.176 10.971-6.594 7.16-9.938 15.946-9.938 26.113 0 8.033 2.463 14.69 7.32 19.785 4.922 5.172 11.139 7.794 18.476 7.794 8.958 0 17.049-3.898 24.047-11.586 6.876-7.553 10.363-16.433 10.363-26.393 1e-3 -7.654-2.476-14.075-7.363-19.087z"/></g></svg>',cancel:Ou},Yu={},ju=null,Gu=vn();function Ju(){Cr(["top-right","top-left","bottom-right","bottom-left"],e=>{!function(e){let t=ha(Yu,{position:e});t=Ta(t,"timeStart");let r=16;Cr(t,e=>{Yu[e.id].ele||(Yu[e.id].ele=document.querySelector(`#${e.id}`)),Yu[e.id].loc.top=r,Yu[e.id].loc.height=Yu[e.id].ele.offsetHeight,r+=Yu[e.id].loc.height+16}),Cr(t,t=>{e.indexOf("bottom-")>=0?(Yu[t.id].ele.style.bottom=`${Yu[t.id].loc.top}px`,Yu[t.id].loc.bottom=Yu[t.id].loc.top):Yu[t.id].ele.style.top=`${Yu[t.id].loc.top}px`,e.indexOf("-left")>=0?(Yu[t.id].ele.style.left="16px",Yu[t.id].loc.left=16):(Yu[t.id].ele.style.right="16px",Yu[t.id].loc.right=16),Yu[t.id].ele.style.zIndex=2e5,Yu[t.id].ele.style.opacity=1,Yu[t.id].ele.style.transform="",Yu[t.id].ele.style.transform=null})}(e)})}function zu(e){Yu[e].ele&&Yu[e].ele.parentNode.removeChild(Yu[e].ele),Yu[e]&&delete Yu[e],Ju()}function Vu(e,t){if(!wr(e))return"invalid eleParent";if(De(t))e.insertAdjacentHTML("beforeend",t);else{if(!wr(t))return"invalid itemChild";e.appendChild(t)}}function Pu(){return null!==navigator.userAgent.toLowerCase().match(/rv:([\d.]+)\) like gecko/)}function Xu(e){if(!e)return"invalid event";if(!e.cancelable)return"event is not cancelable";try{Pu()?e.cancelBubble=!0:e.stopPropagation(),e.preventDefault()}catch(e){}}var _u;Gu.ttWAlertCancel=function(e){zu(e)},Gu.ttWAlertFadeIn=function(e){Uu(document.querySelector(`#${e}`))},Gu.ttWAlertFadeOut=function(e){Ru(document.querySelector(`#${e}`))},function(e){e.INSERT="insert",e.DELETE="delete",e.CONTEXT="context"}(_u||(_u={}));var Wu;!function(e){e.AUTO="auto",e.DARK="dark",e.LIGHT="light"}(Wu||(Wu={}));const Ku=RegExp("["+["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"].join("\\")+"]","g");function $u(e){return e?e.replace(/\\/g,"/"):e}function Zu(e){const t=e.length;let r=-1/0;for(let n=0;n<t;n++)r=Math.max(r,e[n]);return r}function ef(e,t){const r=e.split(".");return r.length>1?r[r.length-1]:t}function tf(e,t){return t.reduce((t,r)=>t||e.startsWith(r),!1)}const rf=["a/","b/","i/","w/","c/","o/"];function nf(e,t,r){const n=void 0!==r?[...rf,r]:rf,i=t?new RegExp(`^${o=t,o.replace(Ku,"\\$&")} "?(.+?)"?$`):new RegExp('^"?(.+?)"?$');var o;const[,a=""]=i.exec(e)||[],s=n.find(e=>0===a.indexOf(e));return(s?a.slice(s.length):a).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function of(e,t={}){const r=[];let n=null,i=null,o=null,a=null,s=null,l=null,c=null;const u="--- ",f="+++ ",d="@@",g=/^old mode (\d{6})/,p=/^new mode (\d{6})/,h=/^deleted file mode (\d{6})/,A=/^new file mode (\d{6})/,m=/^copy from "?(.+)"?/,I=/^copy to "?(.+)"?/,y=/^rename from "?(.+)"?/,v=/^rename to "?(.+)"?/,b=/^similarity index (\d+)%/,w=/^dissimilarity index (\d+)%/,B=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,E=/^Binary files (.*) and (.*) differ/,C=/^GIT binary patch/,x=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,D=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,F=/^new file mode (\d{6})/,Q=/^deleted file mode (\d{6}),(\d{6})/,S=e.replace(/\/g,"").replace(/\r\n?/g,"\n").split("\n");function k(){null!==i&&null!==n&&(n.blocks.push(i),i=null)}function N(){null!==n&&(n.oldName||null===l||(n.oldName=l),n.newName||null===c||(n.newName=c),n.newName&&(r.push(n),n=null)),l=null,c=null}function q(){k(),N(),n={blocks:[],deletedLines:0,addedLines:0}}function M(e){let t;k(),null!==n&&((t=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(e))?(n.isCombined=!1,o=parseInt(t[1],10),s=parseInt(t[2],10)):(t=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(e))?(n.isCombined=!0,o=parseInt(t[1],10),a=parseInt(t[2],10),s=parseInt(t[3],10)):(e.startsWith(d)&&console.error("Failed to parse lines, starting in 0!"),o=0,s=0,n.isCombined=!1)),i={lines:[],oldStartLine:o,oldStartLine2:a,newStartLine:s,header:e}}return S.forEach((e,a)=>{if(!e||e.startsWith("*"))return;let k;const N=S[a-1],H=S[a+1],L=S[a+2];if(e.startsWith("diff --git")||e.startsWith("diff --combined")){q();if((k=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(e))&&(l=nf(k[1],void 0,t.dstPrefix),c=nf(k[2],void 0,t.srcPrefix)),null===n)throw new Error("Where is my file !!!");return void(n.isGitDiff=!0)}if(e.startsWith("Binary files")&&!(null==n?void 0:n.isGitDiff)){q();if((k=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(e))&&(l=nf(k[1],void 0,t.dstPrefix),c=nf(k[2],void 0,t.srcPrefix)),null===n)throw new Error("Where is my file !!!");return void(n.isBinary=!0)}if((!n||!n.isGitDiff&&n&&e.startsWith(u)&&H.startsWith(f)&&L.startsWith(d))&&q(),null==n?void 0:n.isTooBig)return;if(n&&("number"==typeof t.diffMaxChanges&&n.addedLines+n.deletedLines>t.diffMaxChanges||"number"==typeof t.diffMaxLineLength&&e.length>t.diffMaxLineLength)){n.isTooBig=!0,n.addedLines=0,n.deletedLines=0,n.blocks=[],i=null;return void M("function"==typeof t.diffTooBigMessage?t.diffTooBigMessage(r.length):"Diff too big to be displayed")}if(e.startsWith(u)&&H.startsWith(f)||e.startsWith(f)&&N.startsWith(u)){if(n&&!n.oldName&&e.startsWith("--- ")&&(k=function(e,t){return nf(e,"---",t)}(e,t.srcPrefix)))return n.oldName=k,void(n.language=ef(n.oldName,n.language));if(n&&!n.newName&&e.startsWith("+++ ")&&(k=function(e,t){return nf(e,"+++",t)}(e,t.dstPrefix)))return n.newName=k,void(n.language=ef(n.newName,n.language))}if(n&&(e.startsWith(d)||n.isGitDiff&&n.oldName&&n.newName&&!i))return void M(e);if(i&&(e.startsWith("+")||e.startsWith("-")||e.startsWith(" ")))return void function(e){if(null===n||null===i||null===o||null===s)return;const t={content:e},r=n.isCombined?["+ "," +","++"]:["+"],a=n.isCombined?["- "," -","--"]:["-"];tf(e,r)?(n.addedLines++,t.type=_u.INSERT,t.oldNumber=void 0,t.newNumber=s++):tf(e,a)?(n.deletedLines++,t.type=_u.DELETE,t.oldNumber=o++,t.newNumber=void 0):(t.type=_u.CONTEXT,t.oldNumber=o++,t.newNumber=s++),i.lines.push(t)}(e);const U=!function(e,t){let r=t;for(;r<S.length-3;){if(e.startsWith("diff"))return!1;if(S[r].startsWith(u)&&S[r+1].startsWith(f)&&S[r+2].startsWith(d))return!0;r++}return!1}(e,a);if(null===n)throw new Error("Where is my file !!!");(k=g.exec(e))?n.oldMode=k[1]:(k=p.exec(e))?n.newMode=k[1]:(k=h.exec(e))?(n.deletedFileMode=k[1],n.isDeleted=!0):(k=A.exec(e))?(n.newFileMode=k[1],n.isNew=!0):(k=m.exec(e))?(U&&(n.oldName=k[1]),n.isCopy=!0):(k=I.exec(e))?(U&&(n.newName=k[1]),n.isCopy=!0):(k=y.exec(e))?(U&&(n.oldName=k[1]),n.isRename=!0):(k=v.exec(e))?(U&&(n.newName=k[1]),n.isRename=!0):(k=E.exec(e))?(n.isBinary=!0,n.oldName=nf(k[1],void 0,t.srcPrefix),n.newName=nf(k[2],void 0,t.dstPrefix),M("Binary file")):C.test(e)?(n.isBinary=!0,M(e)):(k=b.exec(e))?n.unchangedPercentage=parseInt(k[1],10):(k=w.exec(e))?n.changedPercentage=parseInt(k[1],10):(k=B.exec(e))?(n.checksumBefore=k[1],n.checksumAfter=k[2],k[3]&&(n.mode=k[3])):(k=x.exec(e))?(n.checksumBefore=[k[2],k[3]],n.checksumAfter=k[1]):(k=D.exec(e))?(n.oldMode=[k[2],k[3]],n.newMode=k[1]):(k=F.exec(e))?(n.newFileMode=k[1],n.isNew=!0):(k=Q.exec(e))&&(n.deletedFileMode=k[1],n.isDeleted=!0)}),k(),N(),r}class af{diff(e,t,r={}){let n;"function"==typeof r?(n=r,r={}):"callback"in r&&(n=r.callback);const i=this.castInput(e,r),o=this.castInput(t,r),a=this.removeEmpty(this.tokenize(i,r)),s=this.removeEmpty(this.tokenize(o,r));return this.diffWithOptionsObj(a,s,r,n)}diffWithOptionsObj(e,t,r,n){var i;const o=e=>(e=this.postProcess(e,r),n?void setTimeout(function(){n(e)},0):e),a=t.length,s=e.length;let l=1,c=a+s;null!=r.maxEditLength&&(c=Math.min(c,r.maxEditLength));const u=null!==(i=r.timeout)&&void 0!==i?i:1/0,f=Date.now()+u,d=[{oldPos:-1,lastComponent:void 0}];let g=this.extractCommon(d[0],t,e,0,r);if(d[0].oldPos+1>=s&&g+1>=a)return o(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,h=1/0;const A=()=>{for(let n=Math.max(p,-l);n<=Math.min(h,l);n+=2){let i;const l=d[n-1],c=d[n+1];l&&(d[n-1]=void 0);let u=!1;if(c){const e=c.oldPos-n;u=c&&0<=e&&e<a}const f=l&&l.oldPos+1<s;if(u||f){if(i=!f||u&&l.oldPos<c.oldPos?this.addToPath(c,!0,!1,0,r):this.addToPath(l,!1,!0,1,r),g=this.extractCommon(i,t,e,n,r),i.oldPos+1>=s&&g+1>=a)return o(this.buildValues(i.lastComponent,t,e))||!0;d[n]=i,i.oldPos+1>=s&&(h=Math.min(h,n-1)),g+1>=a&&(p=Math.max(p,n+1))}else d[n]=void 0}l++};if(n)!function e(){setTimeout(function(){if(l>c||Date.now()>f)return n(void 0);A()||e()},0)}();else for(;l<=c&&Date.now()<=f;){const e=A();if(e)return e}}addToPath(e,t,r,n,i){const o=e.lastComponent;return o&&!i.oneChangePerToken&&o.added===t&&o.removed===r?{oldPos:e.oldPos+n,lastComponent:{count:o.count+1,added:t,removed:r,previousComponent:o.previousComponent}}:{oldPos:e.oldPos+n,lastComponent:{count:1,added:t,removed:r,previousComponent:o}}}extractCommon(e,t,r,n,i){const o=t.length,a=r.length;let s=e.oldPos,l=s-n,c=0;for(;l+1<o&&s+1<a&&this.equals(r[s+1],t[l+1],i);)l++,s++,c++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return c&&!i.oneChangePerToken&&(e.lastComponent={count:c,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,l}equals(e,t,r){return r.comparator?r.comparator(e,t):e===t||!!r.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){const t=[];for(let r=0;r<e.length;r++)e[r]&&t.push(e[r]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,r){const n=[];let i;for(;e;)n.push(e),i=e.previousComponent,delete e.previousComponent,e=i;n.reverse();const o=n.length;let a=0,s=0,l=0;for(;a<o;a++){const e=n[a];if(e.removed)e.value=this.join(r.slice(l,l+e.count)),l+=e.count;else{if(!e.added&&this.useLongestToken){let n=t.slice(s,s+e.count);n=n.map(function(e,t){const n=r[l+t];return n.length>e.length?n:e}),e.value=this.join(n)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(l+=e.count)}}return n}}const sf=new class extends af{};const lf="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}";const cf=new class extends af{tokenize(e){const t=new RegExp(`(\\r?\\n)|[${lf}]+|[^\\S\\n\\r]+|[^${lf}]`,"ug");return e.match(t)||[]}};function uf(e){return(t,r)=>{const n=e(t).trim(),i=e(r).trim();return function(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;const r=[];let n,i;for(n=0;n<=t.length;n++)r[n]=[n];for(i=0;i<=e.length;i++)r[0][i]=i;for(n=1;n<=t.length;n++)for(i=1;i<=e.length;i++)t.charAt(n-1)===e.charAt(i-1)?r[n][i]=r[n-1][i-1]:r[n][i]=Math.min(r[n-1][i-1]+1,Math.min(r[n][i-1]+1,r[n-1][i]+1));return r[t.length][e.length]}(n,i)/(n.length+i.length)}}function ff(e){return function t(r,n,i=0,o=new Map){const a=function(t,r,n=new Map){let i,o=1/0;for(let a=0;a<t.length;++a)for(let s=0;s<r.length;++s){const l=JSON.stringify([t[a],r[s]]);let c;n.has(l)&&(c=n.get(l))||(c=e(t[a],r[s]),n.set(l,c)),c<o&&(o=c,i={indexA:a,indexB:s,score:o})}return i}(r,n,o);if(!a||r.length+n.length<3)return[[r,n]];const s=r.slice(0,a.indexA),l=n.slice(0,a.indexB),c=[r[a.indexA]],u=[n[a.indexB]],f=a.indexA+1,d=a.indexB+1,g=r.slice(f),p=n.slice(d),h=t(s,l,i+1,o),A=t(c,u,i+1,o),m=t(g,p,i+1,o);let I=A;return(a.indexA>0||a.indexB>0)&&(I=h.concat(I)),(r.length>f||n.length>d)&&(I=I.concat(m)),I}}const df={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},gf={matching:"none",matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:"word",colorScheme:Wu.LIGHT},pf="/",hf=uf(e=>e.value),Af=ff(hf);function mf(e){return-1!==e.indexOf("dev/null")}function If(e){return e.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function yf(e){switch(e){case _u.CONTEXT:return df.CONTEXT;case _u.INSERT:return df.INSERTS;case _u.DELETE:return df.DELETES}}function vf(e){switch(e){case Wu.DARK:return"d2h-dark-color-scheme";case Wu.AUTO:return"d2h-auto-color-scheme";case Wu.LIGHT:default:return"d2h-light-color-scheme"}}function bf(e){return e.slice(0).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}function wf(e,t,r=!0){const n=function(e){return e?2:1}(t);return{prefix:e.substring(0,n),content:r?bf(e.substring(n)):e.substring(n)}}function Bf(e){const t=$u(e.oldName),r=$u(e.newName);if(t===r||mf(t)||mf(r))return mf(r)?t:r;{const e=[],n=[],i=t.split(pf),o=r.split(pf);let a=0,s=i.length-1,l=o.length-1;for(;a<s&&a<l&&i[a]===o[a];)e.push(o[a]),a+=1;for(;s>a&&l>a&&i[s]===o[l];)n.unshift(o[l]),s-=1,l-=1;const c=e.join(pf),u=n.join(pf),f=i.slice(a,s+1).join(pf),d=o.slice(a,l+1).join(pf);return c.length&&u.length?c+pf+"{"+f+" → "+d+"}"+pf+u:c.length?c+pf+"{"+f+" → "+d+"}":u.length?"{"+f+" → "+d+"}"+pf+u:t+" → "+r}}function Ef(e){return`d2h-${function(e){let t,r,n,i=0;for(t=0,n=e.length;t<n;t++)r=e.charCodeAt(t),i=(i<<5)-i+r,i|=0;return i}(Bf(e)).toString().slice(-6)}`}function Cf(e){let t="file-changed";return e.isRename||e.isCopy?t="file-renamed":e.isNew?t="file-added":e.isDeleted?t="file-deleted":e.newName!==e.oldName&&(t="file-renamed"),t}function xf(e,t,r,n={}){const{matching:i,maxLineLengthHighlight:o,matchWordsThreshold:a,diffStyle:s}=Object.assign(Object.assign({},gf),n),l=wf(e,r,!1),c=wf(t,r,!1);if(l.content.length>o||c.content.length>o)return{oldLine:{prefix:l.prefix,content:bf(l.content)},newLine:{prefix:c.prefix,content:bf(c.content)}};const u="char"===s?(f=l.content,d=c.content,sf.diff(f,d,g)):function(e,t,r){return cf.diff(e,t,r)}(l.content,c.content);var f,d,g;const p=[];if("word"===s&&"words"===i){const e=u.filter(e=>e.removed),t=u.filter(e=>e.added);Af(t,e).forEach(e=>{if(1===e[0].length&&1===e[1].length){hf(e[0][0],e[1][0])<a&&(p.push(e[0][0]),p.push(e[1][0]))}})}const h=u.reduce((e,t)=>{const r=t.added?"ins":t.removed?"del":null,n=p.indexOf(t)>-1?' class="d2h-change"':"",i=bf(t.value);return null!==r?`${e}<${r}${n}>${i}</${r}>`:`${e}${i}`},"");return{oldLine:{prefix:l.prefix,content:(A=h,A.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,""))},newLine:{prefix:c.prefix,content:If(h)}};var A}const Df="file-summary",Ff={colorScheme:gf.colorScheme};class Qf{constructor(e,t={}){this.hoganUtils=e,this.config=Object.assign(Object.assign({},Ff),t)}render(e){const t=e.map(e=>this.hoganUtils.render(Df,"line",{fileHtmlId:Ef(e),oldName:e.oldName,newName:e.newName,fileName:Bf(e),deletedLines:"-"+e.deletedLines,addedLines:"+"+e.addedLines},{fileIcon:this.hoganUtils.template("icon",Cf(e))})).join("\n");return this.hoganUtils.render(Df,"wrapper",{colorScheme:vf(this.config.colorScheme),filesNumber:e.length,files:t})}}const Sf=Object.assign(Object.assign({},gf),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),kf="generic",Nf="line-by-line";class qf{constructor(e,t={}){this.hoganUtils=e,this.config=Object.assign(Object.assign({},Sf),t)}render(e){const t=e.map(e=>{let t;return t=e.blocks.length?this.generateFileHtml(e):this.generateEmptyDiff(),this.makeFileDiffHtml(e,t)}).join("\n");return this.hoganUtils.render(kf,"wrapper",{colorScheme:vf(this.config.colorScheme),content:t})}makeFileDiffHtml(e,t){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";const r=this.hoganUtils.template(Nf,"file-diff"),n=this.hoganUtils.template(kf,"file-path"),i=this.hoganUtils.template("icon","file"),o=this.hoganUtils.template("tag",Cf(e));return r.render({file:e,fileHtmlId:Ef(e),diffs:t,filePath:n.render({fileDiffName:Bf(e)},{fileIcon:i,fileTag:o})})}generateEmptyDiff(){return this.hoganUtils.render(kf,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:df})}generateFileHtml(e){const t=ff(uf(t=>wf(t.content,e.isCombined).content));return e.blocks.map(r=>{let n=this.hoganUtils.render(kf,"block-header",{CSSLineClass:df,blockHeader:e.isTooBig?r.header:bf(r.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return this.applyLineGroupping(r).forEach(([r,i,o])=>{if(i.length&&o.length&&!r.length)this.applyRematchMatching(i,o,t).map(([t,r])=>{const{left:i,right:o}=this.processChangedLines(e,e.isCombined,t,r);n+=i,n+=o});else if(r.length)r.forEach(t=>{const{prefix:r,content:i}=wf(t.content,e.isCombined);n+=this.generateSingleLineHtml(e,{type:df.CONTEXT,prefix:r,content:i,oldNumber:t.oldNumber,newNumber:t.newNumber})});else if(i.length||o.length){const{left:t,right:r}=this.processChangedLines(e,e.isCombined,i,o);n+=t,n+=r}else console.error("Unknown state reached while processing groups of lines",r,i,o)}),n}).join("\n")}applyLineGroupping(e){const t=[];let r=[],n=[];for(let i=0;i<e.lines.length;i++){const o=e.lines[i];(o.type!==_u.INSERT&&n.length||o.type===_u.CONTEXT&&r.length>0)&&(t.push([[],r,n]),r=[],n=[]),o.type===_u.CONTEXT?t.push([[o],[],[]]):o.type===_u.INSERT&&0===r.length?t.push([[],[],[o]]):o.type===_u.INSERT&&r.length>0?n.push(o):o.type===_u.DELETE&&r.push(o)}return(r.length||n.length)&&(t.push([[],r,n]),r=[],n=[]),t}applyRematchMatching(e,t,r){const n=e.length*t.length,i=Zu(e.concat(t).map(e=>e.content.length));return n<this.config.matchingMaxComparisons&&i<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?r(e,t):[[e,t]]}processChangedLines(e,t,r,n){const i={right:"",left:""},o=Math.max(r.length,n.length);for(let a=0;a<o;a++){const o=r[a],s=n[a],l=void 0!==o&&void 0!==s?xf(o.content,s.content,t,this.config):void 0,c=void 0!==o&&void 0!==o.oldNumber?Object.assign(Object.assign({},void 0!==l?{prefix:l.oldLine.prefix,content:l.oldLine.content,type:df.DELETE_CHANGES}:Object.assign(Object.assign({},wf(o.content,t)),{type:yf(o.type)})),{oldNumber:o.oldNumber,newNumber:o.newNumber}):void 0,u=void 0!==s&&void 0!==s.newNumber?Object.assign(Object.assign({},void 0!==l?{prefix:l.newLine.prefix,content:l.newLine.content,type:df.INSERT_CHANGES}:Object.assign(Object.assign({},wf(s.content,t)),{type:yf(s.type)})),{oldNumber:s.oldNumber,newNumber:s.newNumber}):void 0,{left:f,right:d}=this.generateLineHtml(e,c,u);i.left+=f,i.right+=d}return i}generateLineHtml(e,t,r){return{left:this.generateSingleLineHtml(e,t),right:this.generateSingleLineHtml(e,r)}}generateSingleLineHtml(e,t){if(void 0===t)return"";const r=this.hoganUtils.render(Nf,"numbers",{oldNumber:t.oldNumber||"",newNumber:t.newNumber||""});return this.hoganUtils.render(kf,"line",{type:t.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:" "===t.prefix?"&nbsp;":t.prefix,content:t.content,lineNumber:r,line:t,file:e})}}const Mf=Object.assign(Object.assign({},gf),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Hf="generic";class Lf{constructor(e,t={}){this.hoganUtils=e,this.config=Object.assign(Object.assign({},Mf),t)}render(e){const t=e.map(e=>{let t;return t=e.blocks.length?this.generateFileHtml(e):this.generateEmptyDiff(),this.makeFileDiffHtml(e,t)}).join("\n");return this.hoganUtils.render(Hf,"wrapper",{colorScheme:vf(this.config.colorScheme),content:t})}makeFileDiffHtml(e,t){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";const r=this.hoganUtils.template("side-by-side","file-diff"),n=this.hoganUtils.template(Hf,"file-path"),i=this.hoganUtils.template("icon","file"),o=this.hoganUtils.template("tag",Cf(e));return r.render({file:e,fileHtmlId:Ef(e),diffs:t,filePath:n.render({fileDiffName:Bf(e)},{fileIcon:i,fileTag:o})})}generateEmptyDiff(){return{right:"",left:this.hoganUtils.render(Hf,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:df})}}generateFileHtml(e){const t=ff(uf(t=>wf(t.content,e.isCombined).content));return e.blocks.map(r=>{const n={left:this.makeHeaderHtml(r.header,e),right:this.makeHeaderHtml("")};return this.applyLineGroupping(r).forEach(([r,i,o])=>{if(i.length&&o.length&&!r.length)this.applyRematchMatching(i,o,t).map(([t,r])=>{const{left:i,right:o}=this.processChangedLines(e.isCombined,t,r);n.left+=i,n.right+=o});else if(r.length)r.forEach(t=>{const{prefix:r,content:i}=wf(t.content,e.isCombined),{left:o,right:a}=this.generateLineHtml({type:df.CONTEXT,prefix:r,content:i,number:t.oldNumber},{type:df.CONTEXT,prefix:r,content:i,number:t.newNumber});n.left+=o,n.right+=a});else if(i.length||o.length){const{left:t,right:r}=this.processChangedLines(e.isCombined,i,o);n.left+=t,n.right+=r}else console.error("Unknown state reached while processing groups of lines",r,i,o)}),n}).reduce((e,t)=>({left:e.left+t.left,right:e.right+t.right}),{left:"",right:""})}applyLineGroupping(e){const t=[];let r=[],n=[];for(let i=0;i<e.lines.length;i++){const o=e.lines[i];(o.type!==_u.INSERT&&n.length||o.type===_u.CONTEXT&&r.length>0)&&(t.push([[],r,n]),r=[],n=[]),o.type===_u.CONTEXT?t.push([[o],[],[]]):o.type===_u.INSERT&&0===r.length?t.push([[],[],[o]]):o.type===_u.INSERT&&r.length>0?n.push(o):o.type===_u.DELETE&&r.push(o)}return(r.length||n.length)&&(t.push([[],r,n]),r=[],n=[]),t}applyRematchMatching(e,t,r){const n=e.length*t.length,i=Zu(e.concat(t).map(e=>e.content.length));return n<this.config.matchingMaxComparisons&&i<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?r(e,t):[[e,t]]}makeHeaderHtml(e,t){return this.hoganUtils.render(Hf,"block-header",{CSSLineClass:df,blockHeader:(null==t?void 0:t.isTooBig)?e:bf(e),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})}processChangedLines(e,t,r){const n={right:"",left:""},i=Math.max(t.length,r.length);for(let o=0;o<i;o++){const i=t[o],a=r[o],s=void 0!==i&&void 0!==a?xf(i.content,a.content,e,this.config):void 0,l=void 0!==i&&void 0!==i.oldNumber?Object.assign(Object.assign({},void 0!==s?{prefix:s.oldLine.prefix,content:s.oldLine.content,type:df.DELETE_CHANGES}:Object.assign(Object.assign({},wf(i.content,e)),{type:yf(i.type)})),{number:i.oldNumber}):void 0,c=void 0!==a&&void 0!==a.newNumber?Object.assign(Object.assign({},void 0!==s?{prefix:s.newLine.prefix,content:s.newLine.content,type:df.INSERT_CHANGES}:Object.assign(Object.assign({},wf(a.content,e)),{type:yf(a.type)})),{number:a.newNumber}):void 0,{left:u,right:f}=this.generateLineHtml(l,c);n.left+=u,n.right+=f}return n}generateLineHtml(e,t){return{left:this.generateSingleHtml(e),right:this.generateSingleHtml(t)}}generateSingleHtml(e){const t="d2h-code-side-linenumber",r="d2h-code-side-line";return this.hoganUtils.render(Hf,"line",{type:(null==e?void 0:e.type)||`${df.CONTEXT} d2h-emptyplaceholder`,lineClass:void 0!==e?t:`${t} d2h-code-side-emptyplaceholder`,contentClass:void 0!==e?r:`${r} d2h-code-side-emptyplaceholder`,prefix:" "===(null==e?void 0:e.prefix)?"&nbsp;":null==e?void 0:e.prefix,content:null==e?void 0:e.content,lineNumber:null==e?void 0:e.number})}}var Uf={};!function(e){!function(e){var t=/\S/,r=/\"/g,n=/\n/g,i=/\r/g,o=/\\/g,a=/\u2028/,s=/\u2029/;function l(e){"}"===e.n.substr(e.n.length-1)&&(e.n=e.n.substring(0,e.n.length-1))}function c(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}function u(e,t,r){if(t.charAt(r)!=e.charAt(0))return!1;for(var n=1,i=e.length;n<i;n++)if(t.charAt(r+n)!=e.charAt(n))return!1;return!0}e.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(r,n){var i=r.length,o=0,a=null,s=null,f="",d=[],g=!1,p=0,h=0,A="{{",m="}}";function I(){f.length>0&&(d.push({tag:"_t",text:new String(f)}),f="")}function y(r,n){if(I(),r&&function(){for(var r=!0,n=h;n<d.length;n++)if(!(r=e.tags[d[n].tag]<e.tags._v||"_t"==d[n].tag&&null===d[n].text.match(t)))return!1;return r}())for(var i,o=h;o<d.length;o++)d[o].text&&((i=d[o+1])&&">"==i.tag&&(i.indent=d[o].text.toString()),d.splice(o,1));else n||d.push({tag:"\n"});g=!1,h=d.length}function v(e,t){var r="="+m,n=e.indexOf(r,t),i=c(e.substring(e.indexOf("=",t)+1,n)).split(" ");return A=i[0],m=i[i.length-1],n+r.length-1}for(n&&(n=n.split(" "),A=n[0],m=n[1]),p=0;p<i;p++)0==o?u(A,r,p)?(--p,I(),o=1):"\n"==r.charAt(p)?y(g):f+=r.charAt(p):1==o?(p+=A.length-1,"="==(a=(s=e.tags[r.charAt(p+1)])?r.charAt(p+1):"_v")?(p=v(r,p),o=0):(s&&p++,o=2),g=p):u(m,r,p)?(d.push({tag:a,n:c(f),otag:A,ctag:m,i:"/"==a?g-A.length:p+m.length}),f="",p+=m.length-1,o=0,"{"==a&&("}}"==m?p++:l(d[d.length-1]))):f+=r.charAt(p);return y(g,!0),d};var f={_t:!0,"\n":!0,$:!0,"/":!0};function d(t,r,n,i){var o,a=[],s=null,l=null;for(o=n[n.length-1];t.length>0;){if(l=t.shift(),o&&"<"==o.tag&&!(l.tag in f))throw new Error("Illegal content in < super tag.");if(e.tags[l.tag]<=e.tags.$||g(l,i))n.push(l),l.nodes=d(t,l.tag,n,i);else{if("/"==l.tag){if(0===n.length)throw new Error("Closing tag without opener: /"+l.n);if(s=n.pop(),l.n!=s.n&&!p(l.n,s.n,i))throw new Error("Nesting error: "+s.n+" vs. "+l.n);return s.end=l.i,a}"\n"==l.tag&&(l.last=0==t.length||"\n"==t[0].tag)}a.push(l)}if(n.length>0)throw new Error("missing closing tag: "+n.pop().n);return a}function g(e,t){for(var r=0,n=t.length;r<n;r++)if(t[r].o==e.n)return e.tag="#",!0}function p(e,t,r){for(var n=0,i=r.length;n<i;n++)if(r[n].c==e&&r[n].o==t)return!0}function h(e){var t=[];for(var r in e.partials)t.push('"'+m(r)+'":{name:"'+m(e.partials[r].name)+'", '+h(e.partials[r])+"}");return"partials: {"+t.join(",")+"}, subs: "+function(e){var t=[];for(var r in e)t.push('"'+m(r)+'": function(c,p,t,i) {'+e[r]+"}");return"{ "+t.join(",")+" }"}(e.subs)}e.stringify=function(t,r,n){return"{code: function (c,p,i) { "+e.wrapMain(t.code)+" },"+h(t)+"}"};var A=0;function m(e){return e.replace(o,"\\\\").replace(r,'\\"').replace(n,"\\n").replace(i,"\\r").replace(a,"\\u2028").replace(s,"\\u2029")}function I(e){return~e.indexOf(".")?"d":"f"}function y(e,t){var r="<"+(t.prefix||"")+e.n+A++;return t.partials[r]={name:e.n,partials:{}},t.code+='t.b(t.rp("'+m(r)+'",c,p,"'+(e.indent||"")+'"));',r}function v(e,t){t.code+="t.b(t.t(t."+I(e.n)+'("'+m(e.n)+'",c,p,0)));'}function b(e){return"t.b("+e+");"}e.generate=function(t,r,n){A=0;var i={code:"",subs:{},partials:{}};return e.walk(t,i),n.asString?this.stringify(i,r,n):this.makeTemplate(i,r,n)},e.wrapMain=function(e){return'var t=this;t.b(i=i||"");'+e+"return t.fl();"},e.template=e.Template,e.makeTemplate=function(e,t,r){var n=this.makePartials(e);return n.code=new Function("c","p","i",this.wrapMain(e.code)),new this.template(n,t,this,r)},e.makePartials=function(e){var t,r={subs:{},partials:e.partials,name:e.name};for(t in r.partials)r.partials[t]=this.makePartials(r.partials[t]);for(t in e.subs)r.subs[t]=new Function("c","p","t","i",e.subs[t]);return r},e.codegen={"#":function(t,r){r.code+="if(t.s(t."+I(t.n)+'("'+m(t.n)+'",c,p,1),c,p,0,'+t.i+","+t.end+',"'+t.otag+" "+t.ctag+'")){t.rs(c,p,function(c,p,t){',e.walk(t.nodes,r),r.code+="});c.pop();}"},"^":function(t,r){r.code+="if(!t.s(t."+I(t.n)+'("'+m(t.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(t.nodes,r),r.code+="};"},">":y,"<":function(t,r){var n={partials:{},code:"",subs:{},inPartial:!0};e.walk(t.nodes,n);var i=r.partials[y(t,r)];i.subs=n.subs,i.partials=n.partials},$:function(t,r){var n={subs:{},code:"",partials:r.partials,prefix:t.n};e.walk(t.nodes,n),r.subs[t.n]=n.code,r.inPartial||(r.code+='t.sub("'+m(t.n)+'",c,p,i);')},"\n":function(e,t){t.code+=b('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+I(e.n)+'("'+m(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=b('"'+m(e.text)+'"')},"{":v,"&":v},e.walk=function(t,r){for(var n,i=0,o=t.length;i<o;i++)(n=e.codegen[t[i].tag])&&n(t[i],r);return r},e.parse=function(e,t,r){return d(e,0,[],(r=r||{}).sectionTags||[])},e.cache={},e.cacheKey=function(e,t){return[e,!!t.asString,!!t.disableLambda,t.delimiters,!!t.modelGet].join("||")},e.compile=function(t,r){r=r||{};var n=e.cacheKey(t,r),i=this.cache[n];if(i){var o=i.partials;for(var a in o)delete o[a].instance;return i}return i=this.generate(this.parse(this.scan(t,r.delimiters),t,r),t,r),this.cache[n]=i}}(e)}(Uf);var Rf={};!function(e){!function(e){function t(e,t,r){var n;return t&&"object"==typeof t&&(void 0!==t[e]?n=t[e]:r&&t.get&&"function"==typeof t.get&&(n=t.get(e))),n}e.Template=function(e,t,r,n){e=e||{},this.r=e.code||this.r,this.c=r,this.options=n||{},this.text=t||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(e,t,r){return""},v:function(e){return e=l(e),s.test(e)?e.replace(r,"&amp;").replace(n,"&lt;").replace(i,"&gt;").replace(o,"&#39;").replace(a,"&quot;"):e},t:l,render:function(e,t,r){return this.ri([e],t||{},r)},ri:function(e,t,r){return this.r(e,t,r)},ep:function(e,t){var r=this.partials[e],n=t[r.name];if(r.instance&&r.base==n)return r.instance;if("string"==typeof n){if(!this.c)throw new Error("No compiler available.");n=this.c.compile(n,this.options)}if(!n)return null;if(this.partials[e].base=n,r.subs){for(key in t.stackText||(t.stackText={}),r.subs)t.stackText[key]||(t.stackText[key]=void 0!==this.activeSub&&t.stackText[this.activeSub]?t.stackText[this.activeSub]:this.text);n=function(e,t,r,n,i,o){function a(){}function s(){}var l;a.prototype=e,s.prototype=e.subs;var c=new a;for(l in c.subs=new s,c.subsText={},c.buf="",n=n||{},c.stackSubs=n,c.subsText=o,t)n[l]||(n[l]=t[l]);for(l in n)c.subs[l]=n[l];for(l in i=i||{},c.stackPartials=i,r)i[l]||(i[l]=r[l]);for(l in i)c.partials[l]=i[l];return c}(n,r.subs,r.partials,this.stackSubs,this.stackPartials,t.stackText)}return this.partials[e].instance=n,n},rp:function(e,t,r,n){var i=this.ep(e,r);return i?i.ri(t,r,n):""},rs:function(e,t,r){var n=e[e.length-1];if(c(n))for(var i=0;i<n.length;i++)e.push(n[i]),r(e,t,this),e.pop();else r(e,t,this)},s:function(e,t,r,n,i,o,a){var s;return(!c(e)||0!==e.length)&&("function"==typeof e&&(e=this.ms(e,t,r,n,i,o,a)),s=!!e,!n&&s&&t&&t.push("object"==typeof e?e:t[t.length-1]),s)},d:function(e,r,n,i){var o,a=e.split("."),s=this.f(a[0],r,n,i),l=this.options.modelGet,u=null;if("."===e&&c(r[r.length-2]))s=r[r.length-1];else for(var f=1;f<a.length;f++)void 0!==(o=t(a[f],s,l))?(u=s,s=o):s="";return!(i&&!s)&&(i||"function"!=typeof s||(r.push(u),s=this.mv(s,r,n),r.pop()),s)},f:function(e,r,n,i){for(var o=!1,a=!1,s=this.options.modelGet,l=r.length-1;l>=0;l--)if(void 0!==(o=t(e,r[l],s))){a=!0;break}return a?(i||"function"!=typeof o||(o=this.mv(o,r,n)),o):!i&&""},ls:function(e,t,r,n,i,o){var a=this.options.delimiters;return this.options.delimiters=o,this.b(this.ct(l(e.call(t,i,r)),t,n)),this.options.delimiters=a,!1},ct:function(e,t,r){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(t,r)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,t,r,n,i,o,a){var s,l=t[t.length-1],c=e.call(l);return"function"==typeof c?!!n||(s=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(c,l,t,r,s.substring(i,o),a)):c},mv:function(e,t,r){var n=t[t.length-1],i=e.call(n);return"function"==typeof i?this.ct(l(i.call(n)),n,r):i},sub:function(e,t,r,n){var i=this.subs[e];i&&(this.activeSub=e,i(t,r,this,n),this.activeSub=!1)}};var r=/&/g,n=/</g,i=/>/g,o=/\'/g,a=/\"/g,s=/[&<>\"\']/;function l(e){return String(null==e?"":e)}var c=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(e)}(Rf);var Of=Uf;Of.Template=Rf.Template,Of.template=Of.Template;var Tf=Of;const Yf={};Yf["file-summary-line"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<li class="d2h-file-list-line">'),n.b("\n"+r),n.b(' <span class="d2h-file-name-wrapper">'),n.b("\n"+r),n.b(n.rp("<fileIcon0",e,t," ")),n.b(' <a href="#'),n.b(n.v(n.f("fileHtmlId",e,t,0))),n.b('" class="d2h-file-name">'),n.b(n.v(n.f("fileName",e,t,0))),n.b("</a>"),n.b("\n"+r),n.b(' <span class="d2h-file-stats">'),n.b("\n"+r),n.b(' <span class="d2h-lines-added">'),n.b(n.v(n.f("addedLines",e,t,0))),n.b("</span>"),n.b("\n"+r),n.b(' <span class="d2h-lines-deleted">'),n.b(n.v(n.f("deletedLines",e,t,0))),n.b("</span>"),n.b("\n"+r),n.b(" </span>"),n.b("\n"+r),n.b(" </span>"),n.b("\n"+r),n.b("</li>"),n.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}}),Yf["file-summary-wrapper"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<div class="d2h-file-list-wrapper '),n.b(n.v(n.f("colorScheme",e,t,0))),n.b('">'),n.b("\n"+r),n.b(' <div class="d2h-file-list-header">'),n.b("\n"+r),n.b(' <span class="d2h-file-list-title">Files changed ('),n.b(n.v(n.f("filesNumber",e,t,0))),n.b(")</span>"),n.b("\n"+r),n.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),n.b("\n"+r),n.b(' <a class="d2h-file-switch d2h-show">show</a>'),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b(' <ol class="d2h-file-list">'),n.b("\n"+r),n.b(" "),n.b(n.t(n.f("files",e,t,0))),n.b("\n"+r),n.b(" </ol>"),n.b("\n"+r),n.b("</div>"),n.fl()},partials:{},subs:{}}),Yf["generic-block-header"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b("<tr>"),n.b("\n"+r),n.b(' <td class="'),n.b(n.v(n.f("lineClass",e,t,0))),n.b(" "),n.b(n.v(n.d("CSSLineClass.INFO",e,t,0))),n.b('"></td>'),n.b("\n"+r),n.b(' <td class="'),n.b(n.v(n.d("CSSLineClass.INFO",e,t,0))),n.b('">'),n.b("\n"+r),n.b(' <div class="'),n.b(n.v(n.f("contentClass",e,t,0))),n.b('">'),n.s(n.f("blockHeader",e,t,1),e,t,0,156,173,"{{ }}")&&(n.rs(e,t,function(e,t,r){r.b(r.t(r.f("blockHeader",e,t,0)))}),e.pop()),n.s(n.f("blockHeader",e,t,1),e,t,1,0,0,"")||n.b("&nbsp;"),n.b("</div>"),n.b("\n"+r),n.b(" </td>"),n.b("\n"+r),n.b("</tr>"),n.fl()},partials:{},subs:{}}),Yf["generic-empty-diff"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b("<tr>"),n.b("\n"+r),n.b(' <td class="'),n.b(n.v(n.d("CSSLineClass.INFO",e,t,0))),n.b('">'),n.b("\n"+r),n.b(' <div class="'),n.b(n.v(n.f("contentClass",e,t,0))),n.b('">'),n.b("\n"+r),n.b(" File without changes"),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b(" </td>"),n.b("\n"+r),n.b("</tr>"),n.fl()},partials:{},subs:{}}),Yf["generic-file-path"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<span class="d2h-file-name-wrapper">'),n.b("\n"+r),n.b(n.rp("<fileIcon0",e,t," ")),n.b(' <span class="d2h-file-name">'),n.b(n.v(n.f("fileDiffName",e,t,0))),n.b("</span>"),n.b("\n"+r),n.b(n.rp("<fileTag1",e,t," ")),n.b("</span>"),n.b("\n"+r),n.b('<label class="d2h-file-collapse">'),n.b("\n"+r),n.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),n.b("\n"+r),n.b(" Viewed"),n.b("\n"+r),n.b("</label>"),n.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}}),Yf["generic-line"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b("<tr>"),n.b("\n"+r),n.b(' <td class="'),n.b(n.v(n.f("lineClass",e,t,0))),n.b(" "),n.b(n.v(n.f("type",e,t,0))),n.b('">'),n.b("\n"+r),n.b(" "),n.b(n.t(n.f("lineNumber",e,t,0))),n.b("\n"+r),n.b(" </td>"),n.b("\n"+r),n.b(' <td class="'),n.b(n.v(n.f("type",e,t,0))),n.b('">'),n.b("\n"+r),n.b(' <div class="'),n.b(n.v(n.f("contentClass",e,t,0))),n.b('">'),n.b("\n"+r),n.s(n.f("prefix",e,t,1),e,t,0,162,238,"{{ }}")&&(n.rs(e,t,function(e,t,n){n.b(' <span class="d2h-code-line-prefix">'),n.b(n.t(n.f("prefix",e,t,0))),n.b("</span>"),n.b("\n"+r)}),e.pop()),n.s(n.f("prefix",e,t,1),e,t,1,0,0,"")||(n.b(' <span class="d2h-code-line-prefix">&nbsp;</span>'),n.b("\n"+r)),n.s(n.f("content",e,t,1),e,t,0,371,445,"{{ }}")&&(n.rs(e,t,function(e,t,n){n.b(' <span class="d2h-code-line-ctn">'),n.b(n.t(n.f("content",e,t,0))),n.b("</span>"),n.b("\n"+r)}),e.pop()),n.s(n.f("content",e,t,1),e,t,1,0,0,"")||(n.b(' <span class="d2h-code-line-ctn"><br></span>'),n.b("\n"+r)),n.b(" </div>"),n.b("\n"+r),n.b(" </td>"),n.b("\n"+r),n.b("</tr>"),n.fl()},partials:{},subs:{}}),Yf["generic-wrapper"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<div class="d2h-wrapper '),n.b(n.v(n.f("colorScheme",e,t,0))),n.b('">'),n.b("\n"+r),n.b(" "),n.b(n.t(n.f("content",e,t,0))),n.b("\n"+r),n.b("</div>"),n.fl()},partials:{},subs:{}}),Yf["icon-file-added"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),n.b("\n"+r),n.b(' width="14">'),n.b("\n"+r),n.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM6 9H3V7h3V4h2v3h3v2H8v3H6V9z"></path>'),n.b("\n"+r),n.b("</svg>"),n.fl()},partials:{},subs:{}}),Yf["icon-file-changed"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),n.b("\n"+r),n.b(' viewBox="0 0 14 16" width="14">'),n.b("\n"+r),n.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path>'),n.b("\n"+r),n.b("</svg>"),n.fl()},partials:{},subs:{}}),Yf["icon-file-deleted"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),n.b("\n"+r),n.b(' viewBox="0 0 14 16" width="14">'),n.b("\n"+r),n.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM11 9H3V7h8v2z"></path>'),n.b("\n"+r),n.b("</svg>"),n.fl()},partials:{},subs:{}}),Yf["icon-file-renamed"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),n.b("\n"+r),n.b(' viewBox="0 0 14 16" width="14">'),n.b("\n"+r),n.b(' <path d="M6 9H3V7h3V4l5 4-5 4V9z m8-7v12c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h12c0.55 0 1 0.45 1 1z m-1 0H1v12h12V2z"></path>'),n.b("\n"+r),n.b("</svg>"),n.fl()},partials:{},subs:{}}),Yf["icon-file"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),n.b("\n"+r),n.b(' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>'),n.b("\n"+r),n.b("</svg>"),n.fl()},partials:{},subs:{}}),Yf["line-by-line-file-diff"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<div id="'),n.b(n.v(n.f("fileHtmlId",e,t,0))),n.b('" class="d2h-file-wrapper" data-lang="'),n.b(n.v(n.d("file.language",e,t,0))),n.b('">'),n.b("\n"+r),n.b(' <div class="d2h-file-header">'),n.b("\n"+r),n.b(" "),n.b(n.t(n.f("filePath",e,t,0))),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b(' <div class="d2h-file-diff">'),n.b("\n"+r),n.b(' <div class="d2h-code-wrapper">'),n.b("\n"+r),n.b(' <table class="d2h-diff-table">'),n.b("\n"+r),n.b(' <tbody class="d2h-diff-tbody">'),n.b("\n"+r),n.b(" "),n.b(n.t(n.f("diffs",e,t,0))),n.b("\n"+r),n.b(" </tbody>"),n.b("\n"+r),n.b(" </table>"),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b("</div>"),n.fl()},partials:{},subs:{}}),Yf["line-by-line-numbers"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<div class="line-num1">'),n.b(n.v(n.f("oldNumber",e,t,0))),n.b("</div>"),n.b("\n"+r),n.b('<div class="line-num2">'),n.b(n.v(n.f("newNumber",e,t,0))),n.b("</div>"),n.fl()},partials:{},subs:{}}),Yf["side-by-side-file-diff"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<div id="'),n.b(n.v(n.f("fileHtmlId",e,t,0))),n.b('" class="d2h-file-wrapper" data-lang="'),n.b(n.v(n.d("file.language",e,t,0))),n.b('">'),n.b("\n"+r),n.b(' <div class="d2h-file-header">'),n.b("\n"+r),n.b(" "),n.b(n.t(n.f("filePath",e,t,0))),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b(' <div class="d2h-files-diff">'),n.b("\n"+r),n.b(' <div class="d2h-file-side-diff">'),n.b("\n"+r),n.b(' <div class="d2h-code-wrapper">'),n.b("\n"+r),n.b(' <table class="d2h-diff-table">'),n.b("\n"+r),n.b(' <tbody class="d2h-diff-tbody">'),n.b("\n"+r),n.b(" "),n.b(n.t(n.d("diffs.left",e,t,0))),n.b("\n"+r),n.b(" </tbody>"),n.b("\n"+r),n.b(" </table>"),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b(' <div class="d2h-file-side-diff">'),n.b("\n"+r),n.b(' <div class="d2h-code-wrapper">'),n.b("\n"+r),n.b(' <table class="d2h-diff-table">'),n.b("\n"+r),n.b(' <tbody class="d2h-diff-tbody">'),n.b("\n"+r),n.b(" "),n.b(n.t(n.d("diffs.right",e,t,0))),n.b("\n"+r),n.b(" </tbody>"),n.b("\n"+r),n.b(" </table>"),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b("</div>"),n.fl()},partials:{},subs:{}}),Yf["tag-file-added"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),n.fl()},partials:{},subs:{}}),Yf["tag-file-changed"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),n.fl()},partials:{},subs:{}}),Yf["tag-file-deleted"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),n.fl()},partials:{},subs:{}}),Yf["tag-file-renamed"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),n.fl()},partials:{},subs:{}});class jf{constructor({compiledTemplates:e={},rawTemplates:t={}}){const r=Object.entries(t).reduce((e,[t,r])=>{const n=Tf.compile(r,{asString:!1});return Object.assign(Object.assign({},e),{[t]:n})},{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},Yf),e),r)}static compile(e){return Tf.compile(e,{asString:!1})}render(e,t,r,n,i){const o=this.templateKey(e,t);try{return this.preCompiledTemplates[o].render(r,n,i)}catch(e){throw new Error(`Could not find template to render '${o}'`)}}template(e,t){return this.preCompiledTemplates[this.templateKey(e,t)]}templateKey(e,t){return`${e}-${t}`}}const Gf=Object.assign(Object.assign(Object.assign({},Sf),Mf),{outputFormat:"line-by-line",drawFileList:!0});var Jf=Object.freeze({__proto__:null,defaultDiff2HtmlConfig:Gf,html:function(e,t={}){const r=Object.assign(Object.assign({},Gf),t),n="string"==typeof e?of(e,r):e,i=new jf(r),{colorScheme:o}=r,a={colorScheme:o};return(r.drawFileList?new Qf(i,a).render(n):"")+("side-by-side"===r.outputFormat?new Lf(i,r).render(n):new qf(i,r).render(n))},parse:function(e,t={}){return of(e,Object.assign(Object.assign({},Gf),t))}});function zf(){if("[object Module]"===Object.prototype.toString.call(Jf))return Jf;let e=vn(),t=Be(e,"Diff2Html.default",null),r=Be(e,"Diff2Html",null),n="html";if(Ce(t)&&ba(t[n]))return t;if(Ce(r)&&ba(r[n]))return r;throw console.log("Diff2Html",Jf,"g.Diff2Html",e.Diff2Html),new Error("invalid Diff2Html, g.Diff2Html, g.Diff2Html.default, use script for import")}function Vf(e){return document.querySelectorAll(e)}function Pf(e){function t(e){e.parentNode.removeChild(e)}if(wr(e)){return void t(e)}if(!Fe(e))return;Cr(Vf(e),function(e){t(e)})}function Xf(e,t){if(!wr(e))return"invalid eleParent";if(De(t))e.insertAdjacentHTML("afterbegin",t);else{if(!wr(t))return"invalid itemChild";e.insertBefore(t,e.firstChild)}}async function _f(e,t={}){if(!wr(e))return Promise.reject("invalid ele");let r=Be(t,"scale",null);if(ke(r)||(r=1),r=Hn(r),r<1)return Promise.reject("opt.scale can not less then 1");let n=Be(t,"picType",null);"image/jpg"!==n&&"image/jpeg"!==n&&"image/png"!==n&&"svg"!==n&&(n="image/png");let i=Be(t,"toBase64",null);hn(i)||(i=!0);let o=e.cloneNode(!0),a=document.createElement("div");a.style.position="absolute",a.style.top=0,a.style.left=0,a.style.zIndex=-1,a.appendChild(o);let s=document.createElement("div");s.style.opacity=0,s.style.position="relative",s.appendChild(a),Xf(document.querySelector("body"),s);let l,c=vn().snapdom,u={scale:r,quality:1,cache:"disabled"};return"image/jpg"===n||"image/jpeg"===n?l=await c.toJpg(a,u):"image/png"===n?l=await c.toPng(a,u):"svg"===n&&(l=await c.toSvg(a,u)),i&&(l=Be(l,"src","")),Pf(s),l}var Wf=Oa(Qa);function Kf(e){let t=function(e,r){return null===e.parentNode?r:t(e.parentNode,r.concat([e]))};return e instanceof HTMLElement||e instanceof SVGElement?t(e.parentNode,[]):[]}function $f(e){let t=Be(e,"clientX",null),r=Be(e,"clientY",null),n=Be(e,"pageX",null),i=Be(e,"pageY",null);if(null!==t&&null!==r&&null!==n&&null!==i)return{clientX:t,clientY:r,pageX:n,pageY:i};let o=Be(e,"changedTouches",[]);if(1!==gn(o))return null;let a=o[0];return{clientX:Be(a,"clientX",null),clientY:Be(a,"clientY",null),pageX:Be(a,"pageX",null),pageY:Be(a,"pageY",null)}}function Zf(e,t){let r=[];try{r=document.elementsFromPoint(e,t)}catch(e){console.log(e)}return r}function ed(e,t){if(!wr(e))return null;if(!Fe(t))return null;try{return e.getAttribute(t)}catch(e){}return null}function td(e){if(!wr(e))return null;try{return e.getBoundingClientRect()}catch(e){}return null}function rd(e,t){if(!Ce(e))return null;if(!ya(e.clientX)||!ya(e.clientY))return null;if(!wr(t))return null;let r=td(t);return r?{x:e.clientX-r.left,y:e.clientY-r.top,w:t.offsetWidth,h:t.offsetHeight}:null}function nd(e={}){let t="dragpreviewid",r=null,n=null,i=null,o=null,a=null,s=!1,l=Be(e,"attIdentify",null);Fe(l)||(l="dragprevid");let c=Be(e,"containerOpacity",null);ya(c)||(c=.4);let u=Be(e,"containerBackground",null);Fe(u)||(u="white");let f=Be(e,"containerBorderWidth",null);ya(f)||(f=1);let d=Be(e,"containerBorderColor",null);Fe(d)||(d="#f26");let g=`c${Lu(8)}`;function p(e,t,r){n&&i&&o&&a&&!s&&(a.style.top=t-n.tShiftY+"px",a.style.left=e-n.tShiftX+"px")}function h(){Pf(`[${t}='${g}']`),n=null,i=null,o=null,a=null}let A=function(e){p(e.clientX,e.clientY)};window.addEventListener("mousemove",A);let m=function(e){let t=$f(e);t&&p(t.clientX,t.clientY)};return window.addEventListener("touchmove",m),{createPreview:function(e,s,A){try{!function(){let h=function(e,t,n){let i=td(e);if(!i)return null;r=e;let o=e.cloneNode(!0);return o.tShiftX=t-i.left,o.tShiftY=n-i.top,o.tWidth=e.offsetWidth,o.tHeight=e.offsetHeight,o.tParent=e.parentNode,o.setAttribute(l,""),o}(e,s,A);if(null===h)return;let m=document.createElement("div");m.style.position="absolute",m.style.zIndex=1,m.style.top=0,m.style.left=0,m.style.width="100%",m.style.height="100%",m.appendChild(h);let I=document.createElement("div");I.style.position="relative",I.appendChild(m);let y=document.createElement("div");y.setAttribute(t,g),y.style.position="fixed",y.style.zIndex=1e5,y.style.width=`${h.tWidth+2*f}px`,y.style.height=`${h.tHeight+2*f}px`,y.style.opacity=c,y.style.background=u,y.style.border=`${f}px solid ${d}`,y.style.pointerEvents="none",y.appendChild(I),document.querySelector("body").appendChild(y),n=h,i=m,o=I,a=y,p(s,A)}()}catch(e){}let m=setInterval(()=>{let e=ed(r,l);document.querySelector(`[${l}='${e}']`)||(clearInterval(m),h())},500)},updateDragPreview:p,pauseDragPreview:function(e){s=e},removeDragPreview:h,setNodeStyle:function(e){try{Cr(e,(e,t)=>{n.style[t]=e})}catch(e){}},setCoverStyle:function(e){try{Cr(e,(e,t)=>{i.style[t]=e})}catch(e){}},setSellStyle:function(e){try{Cr(e,(e,t)=>{o.style[t]=e})}catch(e){}},setContainerStyle:function(e){try{Cr(e,(e,t)=>{a.style[t]=e})}catch(e){}},clear:function(){window.removeEventListener("mousemove",A),window.removeEventListener("touchmove",m)}}}let id={};function od(e,t,{attIdentify:r,previewOpacity:n,previewBackground:i,previewBorderWidth:o,previewBorderColor:a}){if(!Ne(id,e)){let t=_i(),s=function(e){let t=[];function r(){let r;r="mousemove";let n=function(t){e.dragMove({e:t,name:"mousemove"})};window.addEventListener(r,n),t.push({ele:window,name:r,f:n}),r="mouseup";let i=function(t){e.dragDrop({e:t,name:"mouseup"})};window.addEventListener(r,i),t.push({ele:window,name:r,f:i}),r="touchmove";let o=function(t){e.dragMove({e:t,name:"touchmove"})};window.addEventListener(r,o),t.push({ele:window,name:r,f:o}),r="touchend";let a=function(t){e.dragDrop({e:t,name:"touchend"})};window.addEventListener(r,a),t.push({ele:window,name:r,f:a})}function n(){Cr(t,({ele:e,name:t,f:r})=>{e.removeEventListener(t,r)})}return{bind:r,unbind:n}}({dragMove:r=>{t.emit(e+"-dragMove",r)},dragDrop:r=>{t.emit(e+"-dragDrop",r)}});s.bind();let l=nd({attIdentify:r,containerOpacity:n,containerBackground:i,containerBorderWidth:o,containerBorderColor:a});id[e]={eleIds:[],evg:t,oevg:s,pv:l,isInit:!1,isActive:!0}}return id[e].eleIds.push(t),id[e].evg}function ad(e,t){let r=ed(e,t);return r=eo(r),r}function sd({gid:e,attGroup:t,attIndex:r,attIdentify:n,timeDragStartDelay:i,previewOpacity:o,previewDisabledOpacity:a}){let s=null,l=null,c=null,u=null;if(id[e].isInit)return id[e].evg;id[e].isInit=!0;let f=id[e].evg;f.on(e+"-dragStart",function({e:t,ele:o,from:c}){if(!id[e].isActive)return;let u=ad(o,r);if(null===u)return;s=u,l=o;let g={event:t,startInd:s,startEle:l,tarInd:s,tarEid:ed(l,n)};f.emit(e+"-change",{mode:"start",...g}),f.emit(e+"-start",g);let p=$f(t);if(!p)return;setTimeout(()=>{null!==s&&(d.createPreview(l,p.clientX,p.clientY),d.setContainerStyle({opacity:a}))},i)}),f.on(e+"-dragMove",function({e:i,name:g,from:p}){if(!id[e].isActive)return;let h=function(e,t,r){let n=null;return Cr(Kf(e.target),e=>{if(ed(e,t)===r)return n=e,!1}),n}(i,t,e);if(null===s)return;let A=$f(i);if(!A)return;function m(){let t={event:i,startInd:s,startEle:l,endInd:c,endEle:u,tarInd:c,tarEid:ed(u,n)};f.emit(e+"-change",{mode:"leave",...t}),f.emit(e+"-leave",t),c=null,u=null,d.setContainerStyle({opacity:a})}if(!h)return void(null!==c&&m());let I=ad(h,r);if(null===I)return;if(I===s)return void(null!==c&&m());if(I!==c)null!==c&&m(),function(t,r){c=t,u=r;let a={event:i,startInd:s,startEle:l,endInd:c,endEle:u,tarInd:c,tarEid:ed(u,n)};f.emit(e+"-change",{mode:"enter",...a}),f.emit(e+"-enter",a),d.setContainerStyle({opacity:o})}(I,h);else{let t=rd(A,h),r=0;t.w>0&&(r=t.x/t.w);let a=0;t.h>0&&(a=t.y/t.h),r>=0&&r<=1&&a>=0&&a<=1&&function(t,r,a){let g={event:i,startInd:s,startEle:l,endInd:c,endEle:u,tarInd:c,tarEid:ed(u,n),...t,rx:r,ry:a};f.emit(e+"-change",{mode:"move",...g}),f.emit(e+"-move",g),d.setContainerStyle({opacity:o})}(t,r,a)}}),f.on(e+"-dragDrop",function({e:i,name:o,from:a}){if(d.removeDragPreview(),!id[e].isActive)return;if(null===s)return;let g=function(e,t,r){let n=null,i=$f(e);return i?(Cr(Zf(i.clientX,i.clientY),e=>{if(ed(e,t)===r)return n=e,!1}),n):n}(i,t,e);if(!g)return s=null,l=null,c=null,void(u=null);let p=ad(g,r);if(null===p)return;(function(t,r){c=t,u=r;let o={event:i,startInd:s,startEle:l,endInd:c,endEle:u,tarInd:c,tarEid:ed(u,n)};f.emit(e+"-change",{mode:"drop",...o}),f.emit(e+"-drop",o)})(p,g),s=null,l=null,c=null,u=null});let d=id[e].pv}async function ld(e){let t=[],r=is();return await async function e(r){let n=null;if(r.isFile&&(n=await function(e){let t=is();try{e.file(t.resolve,t.reject)}catch(e){t.reject(e)}return t}(r)),t.push({type:r.isDirectory?"folder":r.isFile?"file":"unknow",path:r.fullPath,name:r.name,entry:r,file:n}),r.isDirectory){let t=r.createReader(),n=await function(e){let t=is();try{e.readEntries(t.resolve,t.reject)}catch(e){t.reject(e)}return t}(t);await cc(n,async t=>{await e(t)})}}(e),r.resolve(t),r}async function cd(e){let t=[];Cr(e,e=>{let r=e.webkitGetAsEntry();r&&t.push(r)});let r=await async function(e){let t=[];return await cc(e,async e=>{Cr(await ld(e),e=>{t.push(e)})}),t}(t);return r}async function ud(e){let t=[],r=[];try{t=await async function(e){let t=[];return Cr(e,e=>{e.type&&t.push({type:"file",name:e.name,file:e})}),t}(Be(e,"files",[])),Pu()||(r=await cd(Be(e,"items",[])).catch(e=>{console.log(e)}))}catch(e){return Promise.reject(e)}return{files:t,entries:r}}function fd(e){return document.querySelector(e)}function dd(e){return!Rr(e)}var gd=Math.max;var pd,hd=(pd=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:Mn(r);return i<0&&(i=gd(n+i,0)),Tr(e,dr(t),i)},function(e,t,r){var n=Object(e);if(!dt(e)){var i=dr(t);e=gt(e),t=function(e){return i(n[e],e,n)}}var o=pd(e,t,r);return o>-1?n[i?e[o]:o]:void 0});let Ad=[{name:"pic",group:"image",acp:"image/*",exec:"imageviwer"},{name:"xml",group:"data",acp:"text/xml",exec:"textviwer"},{name:"htm",group:"docums",acp:"text/html",exec:"browser"},{name:"html",group:"docums",acp:"text/html",exec:"browser"},{name:"json",group:"data",acp:"application/json",exec:"textviwer"},{name:"geojson",group:"data",acp:"application/geo+json",exec:"textviwer"},{name:"txt",group:"data",acp:"text/plain",exec:"textviwer"},{name:"csv",group:"data",acp:"text/csv",exec:"excel"},{name:"dat",group:"data",acp:"application/octet-stream",exec:"binaryviwer"},{name:"7z",group:"compress",acp:"application/x-7z-compressed",exec:"compressor"},{name:"bzip",group:"compress",acp:"application/x-bzip",exec:"7z"},{name:"bzip2",group:"compress",acp:"application/x-bzip2",exec:"compressor"},{name:"bz2",group:"compress",acp:"application/x-bzip2",exec:"compressor"},{name:"ace",group:"compress",acp:"application/x-ace-compressed",exec:"compressor"},{name:"Z",group:"compress",acp:"application/x-compress",exec:"compressor"},{name:"lzh",group:"compress",acp:"application/x-lzh-compressed",exec:"compressor"},{name:"lz",group:"compress",acp:"application/x-lzip",exec:"compressor"},{name:"rar",group:"compress",acp:"application/x-rar-compressed",exec:"compressor"},{name:"tar",group:"compress",acp:"application/x-tar",exec:"compressor"},{name:"ar",group:"compress",acp:"application/x-unix-archive",exec:"compressor"},{name:"zip",group:"compress",acp:"application/zip",exec:"compressor"},{name:"gz",group:"compress",acp:"application/gzip",exec:"compressor"},{name:"avro",group:"",acp:"application/avro",exec:""},{name:"dcm",group:"",acp:"application/dicom",exec:""},{name:"eps",group:"",acp:"application/eps",exec:""},{name:"epub",group:"",acp:"application/epub+zip",exec:""},{name:"class",group:"",acp:"application/java-vm",exec:""},{name:"mxf",group:"",acp:"application/mxf",exec:""},{name:"ogx",group:"",acp:"application/ogg",exec:""},{name:"pdf",group:"docums",acp:"application/pdf",exec:"acrobat"},{name:"pgp",group:"",acp:"application/pgp-encrypted",exec:""},{name:"ps",group:"",acp:"application/postscript",exec:""},{name:"ai",group:"",acp:"application/postscript",exec:""},{name:"rtf",group:"docums",acp:"application/rtf",exec:"word"},{name:"icc",group:"",acp:"application/vnd.iccprofile",exec:""},{name:"asf",group:"",acp:"application/vnd.ms-asf",exec:"",msg:"asf的acp可能為application/vnd.ms-asf或audio/x-ms-asf或video/x-ms-asf"},{name:"cab",group:"",acp:"application/vnd.ms-cab-compressed",exec:""},{name:"eot",group:"",acp:"application/vnd.ms-fontobject",exec:""},{name:"chm",group:"",acp:"application/vnd.ms-htmlhelp",exec:""},{name:"pst",group:"",acp:"application/vnd.ms-outlook",exec:""},{name:"odp",group:"docums",acp:"application/vnd.oasis.opendocument.presentation",exec:"powerpoint"},{name:"ods",group:"docums",acp:"application/vnd.oasis.opendocument.spreadsheet",exec:"excel"},{name:"odt",group:"docums",acp:"application/vnd.oasis.opendocument.text",exec:"word"},{name:"ppt",group:"docums",acp:"application/vnd.ms-powerpoint",exec:"powerpoint"},{name:"pptx",group:"docums",acp:"application/vnd.openxmlformats-officedocument.presentationml.presentation",exec:"powerpoint"},{name:"xls",group:"docums",acp:"application/vnd.ms-excel",exec:"excel"},{name:"xlsx",group:"docums",acp:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",exec:"excel"},{name:"doc",group:"docums",acp:"application/msword",exec:"word"},{name:"docx",group:"docums",acp:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",exec:"word"},{name:"skp",group:"",acp:"application/vnd.sketchup.skp",exec:""},{name:"pcap",group:"",acp:"application/vnd.tcpdump.pcap",exec:""},{name:"wasm",group:"",acp:"application/wasm",exec:""},{name:"arrow",group:"",acp:"application/x-apache-arrow",exec:""},{name:"dmg",group:"",acp:"application/x-apple-diskimage",exec:""},{name:"arj",group:"",acp:"application/x-arj",exec:""},{name:"asar",group:"",acp:"application/x-asar",exec:""},{name:"blend",group:"",acp:"application/x-blender",exec:"blender"},{name:"cfb",group:"",acp:"application/x-cfb",exec:""},{name:"cpio",group:"",acp:"application/x-cpio",exec:""},{name:"deb",group:"",acp:"application/x-deb",exec:""},{name:"elf",group:"",acp:"application/x-elf",exec:""},{name:"shp",group:"",acp:"application/x-esri-shape",exec:""},{name:"crx",group:"",acp:"application/x-google-chrome-extension",exec:""},{name:"indd",group:"",acp:"application/x-indesign",exec:""},{name:"macho",group:"",acp:"application/x-mach-binary",exec:""},{name:"mie",group:"",acp:"application/x-mie",exec:""},{name:"mobi",group:"",acp:"application/x-mobipocket-ebook",exec:""},{name:"exe",group:"",acp:"application/x-msdownload",exec:""},{name:"nes",group:"",acp:"application/x-nintendo-nes-rom",exec:""},{name:"parquet",group:"",acp:"application/x-parquet",exec:""},{name:"rpm",group:"",acp:"application/x-rpm",exec:""},{name:"swf",group:"",acp:"application/x-shockwave-flash",exec:""},{name:"sqlite",group:"",acp:"application/x-sqlite3",exec:""},{name:"xpi",group:"",acp:"application/x-xpinstall",exec:""},{name:"xz",group:"",acp:"application/x-xz",exec:""},{name:"alias",group:"",acp:"application/x.apple.alias",exec:""},{name:"fbx",group:"",acp:"application/x.autodesk.fbx",exec:""},{name:"lnk",group:"",acp:"application/x.ms.shortcut",exec:""},{name:"zst",group:"",acp:"application/zstd",exec:""},{name:"aac",group:"audio",acp:"audio/aac",exec:"audioplayer"},{name:"aif",group:"audio",acp:"audio/aiff",exec:"audioplayer"},{name:"amr",group:"audio",acp:"audio/amr",exec:"audioplayer"},{name:"ape",group:"audio",acp:"audio/ape",exec:"audioplayer"},{name:"mid",group:"audio",acp:"audio/midi",exec:"audioplayer"},{name:"m4b",group:"audio",acp:"audio/mp4",exec:"audioplayer"},{name:"f4a",group:"audio",acp:"audio/mp4",exec:"audioplayer"},{name:"f4b",group:"audio",acp:"audio/mp4",exec:"audioplayer"},{name:"mp3",group:"audio",acp:"audio/mpeg",exec:"audioplayer"},{name:"mp2",group:"audio",acp:"audio/mpeg",exec:"audioplayer"},{name:"mp1",group:"audio",acp:"audio/mpeg",exec:"audioplayer"},{name:"oga",group:"audio",acp:"audio/ogg",exec:"audioplayer"},{name:"spx",group:"audio",acp:"audio/ogg",exec:"audioplayer"},{name:"ogg",group:"audio",acp:"audio/ogg",exec:"audioplayer"},{name:"opus",group:"audio",acp:"audio/opus",exec:"audioplayer"},{name:"qcp",group:"audio",acp:"audio/qcelp",exec:"audioplayer"},{name:"ac3",group:"audio",acp:"audio/vnd.dolby.dd-raw",exec:"audioplayer"},{name:"wav",group:"audio",acp:"audio/wav",exec:"audioplayer"},{name:"wv",group:"audio",acp:"audio/wavpack",exec:"audioplayer"},{name:"dsf",group:"audio",acp:"audio/x-dsf",exec:"audioplayer"},{name:"flac",group:"audio",acp:"audio/x-flac",exec:"audioplayer"},{name:"it",group:"audio",acp:"audio/x-it",exec:"audioplayer"},{name:"m4a",group:"audio",acp:"audio/x-m4a",exec:"audioplayer"},{name:"mpc",group:"audio",acp:"audio/x-musepack",exec:"audioplayer"},{name:"s3m",group:"audio",acp:"audio/x-s3m",exec:"audioplayer"},{name:"voc",group:"audio",acp:"audio/x-voc",exec:"audioplayer"},{name:"xm",group:"audio",acp:"audio/x-xm",exec:"audioplayer"},{name:"otf",group:"",acp:"font/otf",exec:""},{name:"ttf",group:"",acp:"font/ttf",exec:""},{name:"woff",group:"",acp:"font/woff",exec:""},{name:"woff2",group:"",acp:"font/woff2",exec:""},{name:"apng",group:"image",acp:"image/apng",exec:"imageviwer"},{name:"avif",group:"image",acp:"image/avif",exec:"imageviwer"},{name:"bmp",group:"image",acp:"image/bmp",exec:"imageviwer"},{name:"bpg",group:"image",acp:"image/bpg",exec:"imageviwer"},{name:"flif",group:"image",acp:"image/flif",exec:"imageviwer"},{name:"gif",group:"image",acp:"image/gif",exec:"imageviwer"},{name:"heic",group:"image",acp:"image/heif",exec:"imageviwer"},{name:"icns",group:"image",acp:"image/icns",exec:"imageviwer"},{name:"j2c",group:"image",acp:"image/j2c",exec:"imageviwer"},{name:"jls",group:"image",acp:"image/jls",exec:"imageviwer"},{name:"jp2",group:"image",acp:"image/jp2",exec:"imageviwer"},{name:"jpg",group:"image",acp:"image/jpeg",exec:"imageviwer"},{name:"jpm",group:"image",acp:"image/jpm",exec:"imageviwer"},{name:"jpx",group:"image",acp:"image/jpx",exec:"imageviwer"},{name:"jxl",group:"image",acp:"image/jxl",exec:"imageviwer"},{name:"ktx",group:"image",acp:"image/ktx",exec:"imageviwer"},{name:"mj2",group:"image",acp:"image/mj2",exec:"imageviwer"},{name:"png",group:"image",acp:"image/png",exec:"imageviwer"},{name:"tif",group:"image",acp:"image/tiff",exec:"imageviwer"},{name:"psd",group:"image",acp:"image/vnd.adobe.photoshop",exec:"imageviwer"},{name:"dwg",group:"image",acp:"image/vnd.dwg",exec:"imageviwer"},{name:"jxr",group:"image",acp:"image/vnd.ms-photo",exec:"imageviwer"},{name:"webp",group:"image",acp:"image/webp",exec:"imageviwer"},{name:"dng",group:"image",acp:"image/x-adobe-dng",exec:"imageviwer"},{name:"cr2",group:"image",acp:"image/x-canon-cr2",exec:"imageviwer"},{name:"cr3",group:"image",acp:"image/x-canon-cr3",exec:"imageviwer"},{name:"raf",group:"image",acp:"image/x-fujifilm-raf",exec:"imageviwer"},{name:"ico",group:"image",acp:"image/x-icon",exec:"imageviwer"},{name:"cur",group:"image",acp:"image/x-icon",exec:"imageviwer"},{name:"nef",group:"image",acp:"image/x-nikon-nef",exec:"imageviwer"},{name:"orf",group:"image",acp:"image/x-olympus-orf",exec:"imageviwer"},{name:"rw2",group:"image",acp:"image/x-panasonic-rw2",exec:"imageviwer"},{name:"arw",group:"image",acp:"image/x-sony-arw",exec:"imageviwer"},{name:"xcf",group:"image",acp:"image/x-xcf",exec:"imageviwer"},{name:"3mf",group:"",acp:"model/3mf",exec:""},{name:"glb",group:"",acp:"model/gltf-binary",exec:""},{name:"stl",group:"",acp:"model/stl",exec:""},{name:"vtp",group:"",acp:"model/vtp",exec:""},{name:"vtk",group:"",acp:"model/vtk",exec:""},{name:"vtu",group:"",acp:"model/vtu",exec:""},{name:"vti",group:"",acp:"model/vti",exec:""},{name:"vts",group:"",acp:"model/vts",exec:""},{name:"vtr",group:"",acp:"model/vtr",exec:""},{name:"ics",group:"",acp:"text/calendar",exec:""},{name:"vcf",group:"",acp:"text/vcard",exec:""},{name:"3gp",group:"video",acp:"video/3gpp",exec:"videoplayer"},{name:"3g2",group:"video",acp:"video/3gpp2",exec:"videoplayer"},{name:"m2p",group:"video",acp:"video/MP2P",exec:"videoplayer"},{name:"vob",group:"video",acp:"video/MP2P",exec:"videoplayer"},{name:"sub",group:"video",acp:"video/MP2P",exec:"videoplayer",msg:"與字幕檔衝突"},{name:"mts",group:"video",acp:"video/mp2t",exec:"videoplayer"},{name:"m4p",group:"video",acp:"video/mp4",exec:"videoplayer"},{name:"f4v",group:"video",acp:"video/mp4",exec:"videoplayer"},{name:"f4p",group:"video",acp:"video/mp4",exec:"videoplayer"},{name:"mp4",group:"video",acp:"video/mp4",exec:"videoplayer"},{name:"mpg",group:"video",acp:"video/mpeg",exec:"videoplayer",msg:"mpg可能為mpeg或video/MP1S或video/MP2S"},{name:"ogv",group:"video",acp:"video/ogg",exec:"videoplayer"},{name:"ogm",group:"video",acp:"video/ogg",exec:"videoplayer"},{name:"mov",group:"video",acp:"video/quicktime",exec:"videoplayer"},{name:"avi",group:"video",acp:"video/vnd.avi",exec:"videoplayer"},{name:"webm",group:"video",acp:"video/webm",exec:"videoplayer"},{name:"flv",group:"video",acp:"video/x-flv",exec:"videoplayer"},{name:"m4v",group:"video",acp:"video/x-m4v",exec:"videoplayer"},{name:"mkv",group:"video",acp:"video/x-matroska",exec:"videoplayer"}];function md(e=""){let t=null;return Fe(e)?(t=hd(Ad,{name:e}),Ce(t)||(t=null)):t=Ad,t}function Id(e=""){if(""!==e&&"name"!==e&&"group"!==e&&"acp"!==e&&"exec"!==e)return[];let t=md();if(""===e)return t;let r={};return Cr(t,function(t){let n=t[e];Ne(r,n)||(r[n]=[]),r[n].push(t)}),r}function yd(e="*"){if("*"===e)return e;if(!De(e)&&!Or(e))return"*";"common"===e&&(e=["docums","compress","image","data"]);let t=Id();function r(e){return Xr(Dr(e,"acp"))}De(e)&&(e=[e]);let n="";if(Or(e)){let i=Dr(e,function(e){return function(e){return r(ha(t,{group:e}))}(e)}),o=Nr(i,Dr(e,function(e){return r(ha(t,{name:e}))}));o=ha(o,dd),n=Do(o,",")}return n}function vd(e,t=1e3){(t=Hn(t))<=0&&(t=1e3);let r={},n=[];return Cr(Be(e,"files",[]),function(e,i){let o=e.size/1024/1024;o>t&&(r[i]=`file size[${o}]mb > ${t}mb`),n.push(e)}),{files:n,errs:r}}function bd(e,t,r){for(var n=-1,i=e.length;++n<i;){var o=e[n],a=t(o);if(null!=a&&(void 0===s?a==a&&!M(a):r(a,s)))var s=a,l=o}return l}function wd(e,t){return e<t}function Bd(e){return e&&e.length?bd(e,cr,wd):void 0}function Ed(){return!function(){try{return"IntersectionObserver"in window}catch(e){return!1}}()||!function(){try{return"IntersectionObserverEntry"in window}catch(e){return!1}}()||!(function(){try{return"intersectionRatio"in window.IntersectionObserverEntry.prototype}catch(e){return!1}}()||ba(window.IntersectionObserverEntry))}function Cd(e,t,r={}){if(!wr(e))return Promise.reject("invalid ele");let n=vn().markmap,{Transformer:i,Markmap:o,loadCSS:a,loadJS:s}=n,l=e=>{let t=new i,{root:r,features:n}=t.transform(e),{styles:o,scripts:a}=t.getUsedAssets(n);return{root:r,features:n,styles:o,scripts:a}},{root:c,styles:u,scripts:f}=l(t);u&&a(u),f&&s(f,{getMarkmap:()=>n}),e.innerHTML="";let d=o.create(e,null,c);return d.transMarkdown=l,d}const xd=e=>void 0===e||"auto"===e||"instant"===e||"smooth"===e;function Dd(e,t){this.scrollLeft=e,this.scrollTop=t}const Fd=(e,t,r="cannot convert to dictionary.")=>`Failed to execute '${e}' on '${t}': ${r}`,Qd=(e,t,r)=>Fd(e,t,`The provided value '${r}' is not a valid enum value of type ScrollBehavior.`),Sd=(e,t,r)=>{var n;const i=`__SEAMLESS.BACKUP$${t}`;return e[i]||!e[t]||(null===(n=e[t])||void 0===n?void 0:n.__isPolyfill)||(e[i]=e[t]),e[i]||r},kd=e=>{const t=typeof e;return null!==e&&("object"===t||"function"===t)},Nd=e=>"scrollBehavior"in window.document.documentElement.style&&!0!==(null==e?void 0:e.forcePolyfill),qd=e=>{Object.defineProperty(e,"__isPolyfill",{value:!0})},Md=(e,t)=>{qd(t),[HTMLElement.prototype,SVGElement.prototype,Element.prototype].forEach(r=>{Sd(r,e),r[e]=t})},Hd=e=>e.ownerDocument.scrollingElement||e.ownerDocument.documentElement;const Ld=e=>.5*(1-Math.cos(Math.PI*e));function Ud(){var e;let t;return t=(null===(e=window.performance)||void 0===e?void 0:e.now)?()=>window.performance.now():()=>window.Date.now(),Ud=t,t()}const Rd=e=>{const t=(Ud()-e.timeStamp)/(e.duration||500);if(t>1)return e.method(e.targetX,e.targetY),void e.callback();const r=(e.timingFunc||Ld)(t),n=e.startX+(e.targetX-e.startX)*r,i=e.startY+(e.targetY-e.startY)*r;e.method(n,i),e.rafId=window.requestAnimationFrame(()=>{Rd(e)})},Od=e=>isFinite(e)?Number(e):0,Td=(e,t,r)=>{var n,i;if(!(e=>{var t;return null!==(t=e.isConnected)&&void 0!==t?t:!(e.ownerDocument&&1&e.ownerDocument.compareDocumentPosition(e))})(e))return;const o=e.scrollLeft,a=e.scrollTop,s=Od(null!==(n=t.left)&&void 0!==n?n:o),l=Od(null!==(i=t.top)&&void 0!==i?i:a);if(s===o&&l===a)return;const c=Sd(HTMLElement.prototype,"scroll",Dd),u=Sd(Object.getPrototypeOf(e),"scroll",c).bind(e);if("smooth"!==t.behavior)return void u(s,l);const f=()=>{window.removeEventListener("wheel",g),window.removeEventListener("touchmove",g)},d=Object.assign(Object.assign({},r),{timeStamp:Ud(),startX:o,startY:a,targetX:s,targetY:l,rafId:0,method:u,callback:()=>{f();const t=9===e.nodeType;e.dispatchEvent(function(e){if("function"==typeof Event)return new Event("scrollend",{bubbles:e,cancelable:!1});const t=document.createEvent("Event");return t.initEvent("scrollend",e,!1),t}(t))}}),g=()=>{window.cancelAnimationFrame(d.rafId),f()};window.addEventListener("wheel",g,{passive:!0,once:!0}),window.addEventListener("touchmove",g,{passive:!0,once:!0}),Rd(d)},Yd=e=>(t,r,n)=>{const[i,o]=(a=t).window===a?[Hd(t.document.documentElement),"Window"]:[t,"Element"];var a;const s=null!=r?r:{};if(!kd(s))throw new TypeError(Fd(e,o));if(!xd(s.behavior))throw new TypeError(Qd(e,o,s.behavior));"scrollBy"===e&&(s.left=Od(s.left)+i.scrollLeft,s.top=Od(s.top)+i.scrollTop),Td(i,s,n)},jd=Yd("scroll"),Gd=Yd("scrollTo"),Jd=Yd("scrollBy"),zd=jd,Vd=e=>{switch(e){case"horizontal-tb":case"lr":case"lr-tb":case"rl":case"rl-tb":return 0;case"vertical-rl":case"tb":case"tb-rl":return 1;case"vertical-lr":case"tb-lr":return 2;case"sideways-rl":return 3;case"sideways-lr":return 4}return 0},Pd=(e,t,r,n)=>{let i=0;switch(t||(i^=2),e){case 0:i=i>>1|(1&i)<<1,[r,n]=[n,r];break;case 1:case 3:i^=1;break;case 4:i^=2}return[i,r,n]},Xd=e=>!(1&~Pd(Vd(e.writingMode),"rtl"!==e.direction,void 0,void 0)[0]),_d=(e,t,r,n,i,o,a)=>0!==e?e:i<t&&o>r||i>t&&o<r?null:i<=t&&a<=n||o>=r&&a>=n?2:o>r&&a<n||i<t&&a>n?3:null,Wd=e=>"visible"!==e&&"clip"!==e,Kd=(e,t)=>(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth)&&(Wd(t.overflowY)||Wd(t.overflowX)||e===Hd(e)),$d=e=>{const t=e.parentNode,r=e.parentElement;if(null===r&&null!==t){if(11===t.nodeType)return t.host;if(9===t.nodeType)return(e=>{var t;try{return(null===(t=e.ownerDocument.defaultView)||void 0===t?void 0:t.frameElement)||null}catch(e){return null}})(e)}return r},Zd=(e,t,r)=>e<t?t:e>r?r:e,eg=(e,t,r)=>{switch(e){case 1:return(t+r)/2;case 3:return r;case 2:case 0:return t}},tg=(e,t)=>{var r,n,i;const o=null===(r=e.ownerDocument.defaultView)||void 0===r?void 0:r.visualViewport,[a,s,l,c]=e===Hd(e)?[0,0,null!==(n=null==o?void 0:o.width)&&void 0!==n?n:e.clientWidth,null!==(i=null==o?void 0:o.height)&&void 0!==i?i:e.clientHeight]:[t.left,t.top,e.clientWidth,e.clientHeight],u=a+e.clientLeft,f=s+e.clientTop;return[f,u+l,f+c,u]},rg=(e,t)=>{const r=[];let n=e.ownerDocument,i=n.defaultView;if(!i)return r;const o=window.getComputedStyle(e),a="rtl"!==o.direction,s=Vd(o.writingMode||o.getPropertyValue("-webkit-writing-mode")||o.getPropertyValue("-ms-writing-mode")),[l,c]=((e,t,r)=>{const[n,i,o]=Pd(t,r,e.block||"start",e.inline||"nearest");return[i,o].map((e,t)=>{switch(e){case"center":return 1;case"nearest":return 0;default:return"start"===e==!(n>>t&1)?2:3}})})(t,s,a);let[u,f,d,g]=((e,t,r)=>{const{top:n,right:i,bottom:o,left:a}=t,s=(l=e.ownerDocument,["scroll-margin","scroll-snap-margin"].filter(e=>e in l.documentElement.style)[0]);var l;if(!s)return[n,i,o,a];const c=e=>{const t=r.getPropertyValue(`${s}-${e}`);return parseInt(t,10)||0};return[n-c("top"),i+c("right"),o+c("bottom"),a-c("left")]})(e,e.getBoundingClientRect(),o);for(let o=$d(e);null!==o;o=$d(o)){if(n!==o.ownerDocument){if(n=o.ownerDocument,i=n.defaultView,!i)break;const{left:e,top:t}=o.getBoundingClientRect();u+=t,f+=e,d+=t,g+=e}const e=i.getComputedStyle(o);if("fixed"===e.position)break;if(!Kd(o,e))continue;const a=o.getBoundingClientRect(),[s,p,h,A]=tg(o,a),m=_d(l,A,p,o.clientWidth,g,f,f-g),I=_d(c,s,h,o.clientHeight,u,d,d-u),y=null===m?0:eg(m,g,f)-eg(m,A,p),v=null===I?0:eg(I,u,d)-eg(I,s,h),b=Xd(e)?Zd(y,-o.scrollWidth+o.clientWidth-o.scrollLeft,-o.scrollLeft):Zd(y,-o.scrollLeft,o.scrollWidth-o.clientWidth-o.scrollLeft),w=Zd(v,-o.scrollTop,o.scrollHeight-o.clientHeight-o.scrollTop);r.push([o,{left:o.scrollLeft+b,top:o.scrollTop+w,behavior:t.behavior}]),u=Math.max(u-w,s),f=Math.min(f-b,p),d=Math.min(d-w,h),g=Math.max(g-b,A)}return r},ng=(e,t,r)=>{const n=t||{};if(!xd(n.behavior))throw new TypeError(Qd("scrollIntoView","Element",n.behavior));rg(e,n).forEach(([e,t])=>{zd(e,t,r)})},ig=(e,t)=>r=>{if(Nd(r))return;const n={scroll:jd,scrollTo:Gd,scrollBy:Jd}[e];t(e,function(){const e=arguments;if(1===arguments.length)return void n(this,e[0],r);n(this,{left:e[0],top:e[1]})})},og=ig("scroll",Md),ag=ig("scrollTo",Md),sg=ig("scrollBy",Md),lg=(e,t)=>{qd(t),Sd(window,e),window[e]=t},cg=ig("scroll",lg),ug=ig("scrollTo",lg),fg=ig("scrollBy",lg);function dg(e){ng(this,{block:null==e||e?"start":"end",inline:"nearest"})}const gg=e=>{if(Nd(e))return;const t=Sd(window.HTMLElement.prototype,"scrollIntoView",dg);Md("scrollIntoView",function(){const r=arguments,n=r[0];1===r.length&&kd(n)?ng(this,n,e):t.apply(this,r)})},pg=e=>{Nd(e)||(og(e),ag(e),sg(e),gg(e),cg(e),ug(e),fg(e))};function hg(e,t,r){(void 0!==r&&!ne(e[t],r)||void 0===r&&!(t in e))&&gi(e,t,r)}function Ag(e){return q(e)&&dt(e)}function mg(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function Ig(e,t,r,n,i,o,a){var s=mg(e,r),l=mg(t,r),c=a.get(l);if(c)hg(e,r,c);else{var u,f=o?o(s,l,r+"",e,t,a):void 0,d=void 0===f;if(d){var g=b(l),p=!g&&Ve(l),h=!g&&!p&&nt(l);f=l,g||p||h?b(s)?f=s:Ag(s)?f=kr(s):p?(d=!1,f=Ei(l,!0)):h?(d=!1,f=Ni(l,!0)):f=[]:br(l)||je(l)?(f=s,je(s)?f=Ai(u=s,yi(u)):R(s)&&!O(s)||(f=Li(l))):d=!1}d&&(a.set(l,f),i(f,l,n,o,a),a.delete(l)),hg(e,r,f)}}function yg(e,t,r,n,i){e!==t&&He(t,function(o,a){if(i||(i=new mt),R(o))Ig(e,t,a,r,yg,n,i);else{var s=n?n(mg(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),hg(e,a,s)}},yi)}var vg,bg=(vg=function(e,t,r){yg(e,t,r)},Oa(function(e,t){var r=-1,n=t.length,i=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(i=vg.length>3&&"function"==typeof i?(n--,i):void 0,o&&gr(t[0],t[1],o)&&(i=n<3?void 0:i,n=1),e=Object(e);++r<n;){var a=t[r];a&&vg(e,a,r,i)}return e}));async function wg(e,t=null,r={}){let n=!0,i=null,o=is();Ce(r)||(r={});let a=Be(r,"disTouchMoveToHide",null);if(Eo(a)||(a=4),a=eo(a),!wr(e))return o.reject("eleImg is not a HTMLElement"),o;if(i=e,null!==t){if(!wr(t))return o.reject("eleGroup is not a HTMLElement"),o;n=!1,i=t}if(!n){let e=gn(t.querySelectorAll("img"));if(0===e)return o.reject("eleGroup does not contain any img"),o;1===e&&(n=!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};n||(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=bg(s,Vi(r)),s.shown=function(){(async()=>{let e=null;await bs(()=>(e=c.viewer,wr(e)));let t=!1,r=0,n=0,i=0;e.addEventListener("touchstart",e=>{let i=e.touches[0];r=i.clientX,n=i.clientY,((e,t)=>{let r=document.elementsFromPoint(e,t).find(e=>"IMG"===e.tagName);if(!wr(r))return!0;let n=r?.classList?.contains("viewer-move");return!n})(r,n)&&(t=!0)},{passive:!1}),e.addEventListener("touchmove",e=>{if(!t)return;let o=e.touches[0],a=o.clientX,s=o.clientY,l=a-r,c=s-n,u=Math.sqrt(l*l+c*c);i+=u,r=o.clientX,n=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(0,vn().Viewer)(i,s);return c.show(),o}function Bg(e,t){let r=new MouseEvent(t,{view:window,bubbles:!0,cancelable:!0});e.dispatchEvent(r)}function Eg(e={}){let t=Be(e,"kind","*"),r=Be(e,"multiple");hn(r)||(r=!1);let n=Be(e,"entireHierarchy");hn(n)||(n=!1),n&&!r&&(r=!0);let i=Be(e,"sizeMbLimit");ke(i)||(i=1e3),i=Hn(i);let o=is(),a="drf"+Lu(),s="GrpDomReadFile";Pf(`[name=${s}]`);let l=yd(t),c=`<div name="${s}" style="position:relative; width:0px; height:0px; overflow:hidden;"><input id="${a}" type="file" accept="${l}" ${r?"multiple":""} ${n?"webkitdirectory":""} style="opacity:0; position:absolute; top:-10000px; left:-10000px;"></div>`;Vu(document.querySelector("body"),c);let u=fd("#"+a),f=!1;function d(e){f=!0;let t=vd(this,i);o.resolve(t),u.removeEventListener("change",d,!0),n||window.removeEventListener("focus",g),Pf(`[name=${s}]`)}function g(e){setTimeout(()=>{f||d()},300)}return u.addEventListener("change",d,!0),n||window.addEventListener("focus",g),Bg(u,"click"),o}function Cg(e){if(!Fe(e))return!1;let t="YYYY-MM-DDTHH:mm:ss";return e===r(e,t).format(t)}yn()&&function(){try{return new MouseEvent("MouseEventPolyfillTest"),!1}catch(e){}let e=function(e,t){t=t||{bubbles:!1,cancelable:!1};let r=document.createEvent("MouseEvent");return r.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),r};e.prototype=Event.prototype,window.MouseEvent=e}();var xg="top",Dg="bottom",Fg="right",Qg="left",Sg="auto",kg=[xg,Dg,Fg,Qg],Ng="start",qg="end",Mg="viewport",Hg="popper",Lg=kg.reduce(function(e,t){return e.concat([t+"-"+Ng,t+"-"+qg])},[]),Ug=[].concat(kg,[Sg]).reduce(function(e,t){return e.concat([t,t+"-"+Ng,t+"-"+qg])},[]),Rg=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Og(e){return e?(e.nodeName||"").toLowerCase():null}function Tg(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Yg(e){return e instanceof Tg(e).Element||e instanceof Element}function jg(e){return e instanceof Tg(e).HTMLElement||e instanceof HTMLElement}function Gg(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Tg(e).ShadowRoot||e instanceof ShadowRoot)}var Jg={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},i=t.elements[e];jg(i)&&Og(i)&&(Object.assign(i.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});jg(n)&&Og(n)&&(Object.assign(n.style,o),Object.keys(i).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]};function zg(e){return e.split("-")[0]}var Vg=Math.max,Pg=Math.min,Xg=Math.round;function _g(){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 Wg(){return!/^((?!chrome|android).)*safari/i.test(_g())}function Kg(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&jg(e)&&(i=e.offsetWidth>0&&Xg(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Xg(n.height)/e.offsetHeight||1);var a=(Yg(e)?Tg(e):window).visualViewport,s=!Wg()&&r,l=(n.left+(s&&a?a.offsetLeft:0))/i,c=(n.top+(s&&a?a.offsetTop:0))/o,u=n.width/i,f=n.height/o;return{width:u,height:f,top:c,right:l+u,bottom:c+f,left:l,x:l,y:c}}function $g(e){var t=Kg(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Zg(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Gg(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ep(e){return Tg(e).getComputedStyle(e)}function tp(e){return["table","td","th"].indexOf(Og(e))>=0}function rp(e){return((Yg(e)?e.ownerDocument:e.document)||window.document).documentElement}function np(e){return"html"===Og(e)?e:e.assignedSlot||e.parentNode||(Gg(e)?e.host:null)||rp(e)}function ip(e){return jg(e)&&"fixed"!==ep(e).position?e.offsetParent:null}function op(e){for(var t=Tg(e),r=ip(e);r&&tp(r)&&"static"===ep(r).position;)r=ip(r);return r&&("html"===Og(r)||"body"===Og(r)&&"static"===ep(r).position)?t:r||function(e){var t=/firefox/i.test(_g());if(/Trident/i.test(_g())&&jg(e)&&"fixed"===ep(e).position)return null;var r=np(e);for(Gg(r)&&(r=r.host);jg(r)&&["html","body"].indexOf(Og(r))<0;){var n=ep(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}function ap(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function sp(e,t,r){return Vg(e,Pg(t,r))}function lp(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function cp(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}var up={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,s=zg(r.placement),l=ap(s),c=[Qg,Fg].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return lp("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:cp(e,kg))}(i.padding,r),f=$g(o),d="y"===l?xg:Qg,g="y"===l?Dg:Fg,p=r.rects.reference[c]+r.rects.reference[l]-a[l]-r.rects.popper[c],h=a[l]-r.rects.reference[l],A=op(o),m=A?"y"===l?A.clientHeight||0:A.clientWidth||0:0,I=p/2-h/2,y=u[d],v=m-f[c]-u[g],b=m/2-f[c]/2+I,w=sp(y,b,v),B=l;r.modifiersData[n]=((t={})[B]=w,t.centerOffset=w-b,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&Zg(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fp(e){return e.split("-")[1]}var dp={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gp(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,d=a.x,g=void 0===d?0:d,p=a.y,h=void 0===p?0:p,A="function"==typeof u?u({x:g,y:h}):{x:g,y:h};g=A.x,h=A.y;var m=a.hasOwnProperty("x"),I=a.hasOwnProperty("y"),y=Qg,v=xg,b=window;if(c){var w=op(r),B="clientHeight",E="clientWidth";if(w===Tg(r)&&"static"!==ep(w=rp(r)).position&&"absolute"===s&&(B="scrollHeight",E="scrollWidth"),i===xg||(i===Qg||i===Fg)&&o===qg)v=Dg,h-=(f&&w===b&&b.visualViewport?b.visualViewport.height:w[B])-n.height,h*=l?1:-1;if(i===Qg||(i===xg||i===Dg)&&o===qg)y=Fg,g-=(f&&w===b&&b.visualViewport?b.visualViewport.width:w[E])-n.width,g*=l?1:-1}var C,x=Object.assign({position:s},c&&dp),D=!0===u?function(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:Xg(r*i)/i||0,y:Xg(n*i)/i||0}}({x:g,y:h},Tg(r)):{x:g,y:h};return g=D.x,h=D.y,l?Object.assign({},x,((C={})[v]=I?"0":"",C[y]=m?"0":"",C.transform=(b.devicePixelRatio||1)<=1?"translate("+g+"px, "+h+"px)":"translate3d("+g+"px, "+h+"px, 0)",C)):Object.assign({},x,((t={})[v]=I?h+"px":"",t[y]=m?g+"px":"",t.transform="",t))}var pp={passive:!0};var hp={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=void 0===i||i,a=n.resize,s=void 0===a||a,l=Tg(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",r.update,pp)}),s&&l.addEventListener("resize",r.update,pp),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",r.update,pp)}),s&&l.removeEventListener("resize",r.update,pp)}},data:{}},Ap={left:"right",right:"left",bottom:"top",top:"bottom"};function mp(e){return e.replace(/left|right|bottom|top/g,function(e){return Ap[e]})}var Ip={start:"end",end:"start"};function yp(e){return e.replace(/start|end/g,function(e){return Ip[e]})}function vp(e){var t=Tg(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function bp(e){return Kg(rp(e)).left+vp(e).scrollLeft}function wp(e){var t=ep(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Bp(e){return["html","body","#document"].indexOf(Og(e))>=0?e.ownerDocument.body:jg(e)&&wp(e)?e:Bp(np(e))}function Ep(e,t){var r;void 0===t&&(t=[]);var n=Bp(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),o=Tg(n),a=i?[o].concat(o.visualViewport||[],wp(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(Ep(np(a)))}function Cp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function xp(e,t,r){return t===Mg?Cp(function(e,t){var r=Tg(e),n=rp(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=Wg();(c||!c&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+bp(e),y:l}}(e,r)):Yg(t)?function(e,t){var r=Kg(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):Cp(function(e){var t,r=rp(e),n=vp(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=Vg(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Vg(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+bp(e),l=-n.scrollTop;return"rtl"===ep(i||r).direction&&(s+=Vg(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(rp(e)))}function Dp(e,t,r,n){var i="clippingParents"===t?function(e){var t=Ep(np(e)),r=["absolute","fixed"].indexOf(ep(e).position)>=0&&jg(e)?op(e):e;return Yg(r)?t.filter(function(e){return Yg(e)&&Zg(e,r)&&"body"!==Og(e)}):[]}(e):[].concat(t),o=[].concat(i,[r]),a=o[0],s=o.reduce(function(t,r){var i=xp(e,r,n);return t.top=Vg(i.top,t.top),t.right=Pg(i.right,t.right),t.bottom=Pg(i.bottom,t.bottom),t.left=Vg(i.left,t.left),t},xp(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Fp(e){var t,r=e.reference,n=e.element,i=e.placement,o=i?zg(i):null,a=i?fp(i):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(o){case xg:t={x:s,y:r.y-n.height};break;case Dg:t={x:s,y:r.y+r.height};break;case Fg:t={x:r.x+r.width,y:l};break;case Qg:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var c=o?ap(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Ng:t[c]=t[c]-(r[u]/2-n[u]/2);break;case qg:t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}function Qp(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=void 0===n?e.placement:n,o=r.strategy,a=void 0===o?e.strategy:o,s=r.boundary,l=void 0===s?"clippingParents":s,c=r.rootBoundary,u=void 0===c?Mg:c,f=r.elementContext,d=void 0===f?Hg:f,g=r.altBoundary,p=void 0!==g&&g,h=r.padding,A=void 0===h?0:h,m=lp("number"!=typeof A?A:cp(A,kg)),I=d===Hg?"reference":Hg,y=e.rects.popper,v=e.elements[p?I:d],b=Dp(Yg(v)?v:v.contextElement||rp(e.elements.popper),l,u,a),w=Kg(e.elements.reference),B=Fp({reference:w,element:y,strategy:"absolute",placement:i}),E=Cp(Object.assign({},y,B)),C=d===Hg?E:w,x={top:b.top-C.top+m.top,bottom:C.bottom-b.bottom+m.bottom,left:b.left-C.left+m.left,right:C.right-b.right+m.right},D=e.modifiersData.offset;if(d===Hg&&D){var F=D[i];Object.keys(x).forEach(function(e){var t=[Fg,Dg].indexOf(e)>=0?1:-1,r=[xg,Dg].indexOf(e)>=0?"y":"x";x[e]+=F[r]*t})}return x}function Sp(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?Ug:l,u=fp(n),f=u?s?Lg:Lg.filter(function(e){return fp(e)===u}):kg,d=f.filter(function(e){return c.indexOf(e)>=0});0===d.length&&(d=f);var g=d.reduce(function(t,r){return t[r]=Qp(e,{placement:r,boundary:i,rootBoundary:o,padding:a})[zg(r)],t},{});return Object.keys(g).sort(function(e,t){return g[e]-g[t]})}var kp={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=void 0===i||i,a=r.altAxis,s=void 0===a||a,l=r.fallbackPlacements,c=r.padding,u=r.boundary,f=r.rootBoundary,d=r.altBoundary,g=r.flipVariations,p=void 0===g||g,h=r.allowedAutoPlacements,A=t.options.placement,m=zg(A),I=l||(m===A||!p?[mp(A)]:function(e){if(zg(e)===Sg)return[];var t=mp(e);return[yp(e),t,yp(t)]}(A)),y=[A].concat(I).reduce(function(e,r){return e.concat(zg(r)===Sg?Sp(t,{placement:r,boundary:u,rootBoundary:f,padding:c,flipVariations:p,allowedAutoPlacements:h}):r)},[]),v=t.rects.reference,b=t.rects.popper,w=new Map,B=!0,E=y[0],C=0;C<y.length;C++){var x=y[C],D=zg(x),F=fp(x)===Ng,Q=[xg,Dg].indexOf(D)>=0,S=Q?"width":"height",k=Qp(t,{placement:x,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),N=Q?F?Fg:Qg:F?Dg:xg;v[S]>b[S]&&(N=mp(N));var q=mp(N),M=[];if(o&&M.push(k[D]<=0),s&&M.push(k[N]<=0,k[q]<=0),M.every(function(e){return e})){E=x,B=!1;break}w.set(x,M)}if(B)for(var H=function(e){var t=y.find(function(t){var r=w.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return E=t,"break"},L=p?3:1;L>0;L--){if("break"===H(L))break}t.placement!==E&&(t.modifiersData[n]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Np(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function qp(e){return[xg,Fg,Dg,Qg].some(function(t){return e[t]>=0})}var Mp={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=void 0===i?[0,0]:i,a=Ug.reduce(function(e,r){return e[r]=function(e,t,r){var n=zg(e),i=[Qg,xg].indexOf(n)>=0?-1:1,o="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Qg,Fg].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,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[n]=a}};var Hp={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=void 0===i||i,a=r.altAxis,s=void 0!==a&&a,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,f=r.padding,d=r.tether,g=void 0===d||d,p=r.tetherOffset,h=void 0===p?0:p,A=Qp(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),m=zg(t.placement),I=fp(t.placement),y=!I,v=ap(m),b="x"===v?"y":"x",w=t.modifiersData.popperOffsets,B=t.rects.reference,E=t.rects.popper,C="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,x="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(w){if(o){var Q,S="y"===v?xg:Qg,k="y"===v?Dg:Fg,N="y"===v?"height":"width",q=w[v],M=q+A[S],H=q-A[k],L=g?-E[N]/2:0,U=I===Ng?B[N]:E[N],R=I===Ng?-E[N]:-B[N],O=t.elements.arrow,T=g&&O?$g(O):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},j=Y[S],G=Y[k],J=sp(0,B[N],T[N]),z=y?B[N]/2-L-J-j-x.mainAxis:U-J-j-x.mainAxis,V=y?-B[N]/2+L+J+G+x.mainAxis:R+J+G+x.mainAxis,P=t.elements.arrow&&op(t.elements.arrow),X=P?"y"===v?P.clientTop||0:P.clientLeft||0:0,_=null!=(Q=null==D?void 0:D[v])?Q:0,W=q+V-_,K=sp(g?Pg(M,q+z-_-X):M,q,g?Vg(H,W):H);w[v]=K,F[v]=K-q}if(s){var $,Z="x"===v?xg:Qg,ee="x"===v?Dg:Fg,te=w[b],re="y"===b?"height":"width",ne=te+A[Z],ie=te-A[ee],oe=-1!==[xg,Qg].indexOf(m),ae=null!=($=null==D?void 0:D[b])?$:0,se=oe?ne:te-B[re]-E[re]-ae+x.altAxis,le=oe?te+B[re]+E[re]-ae-x.altAxis:ie,ce=g&&oe?function(e,t,r){var n=sp(e,t,r);return n>r?r:n}(se,te,le):sp(g?se:ne,te,g?le:ie);w[b]=ce,F[b]=ce-te}t.modifiersData[n]=F}},requiresIfExists:["offset"]};function Lp(e,t,r){void 0===r&&(r=!1);var n,i,o=jg(t),a=jg(t)&&function(e){var t=e.getBoundingClientRect(),r=Xg(t.width)/e.offsetWidth||1,n=Xg(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),s=rp(t),l=Kg(e,a,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!r)&&(("body"!==Og(t)||wp(s))&&(c=(n=t)!==Tg(n)&&jg(n)?{scrollLeft:(i=n).scrollLeft,scrollTop:i.scrollTop}:vp(n)),jg(t)?((u=Kg(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=bp(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Up(e){var t=new Map,r=new Set,n=[];function i(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!r.has(e)){var n=t.get(e);n&&i(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){r.has(e.name)||i(e)}),n}var Rp={placement:"bottom",modifiers:[],strategy:"absolute"};function Op(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Tp(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,i=t.defaultOptions,o=void 0===i?Rp:i;return function(e,t,r){void 0===r&&(r=o);var i,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Rp,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(r){var i="function"==typeof r?r(s.options):r;f(),s.options=Object.assign({},o,s.options,i),s.scrollParents={reference:Yg(e)?Ep(e):e.contextElement?Ep(e.contextElement):[],popper:Ep(t)};var a,c,d=function(e){var t=Up(e);return Rg.reduce(function(e,r){return e.concat(t.filter(function(e){return e.phase===r}))},[])}((a=[].concat(n,s.options.modifiers),c=a.reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{}),Object.keys(c).map(function(e){return c[e]})));return s.orderedModifiers=d.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,i=e.effect;if("function"==typeof i){var o=i({state:s,name:t,instance:u,options:n}),a=function(){};l.push(o||a)}}),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,r=e.popper;if(Op(t,r)){s.rects={reference:Lp(t,op(r),"fixed"===s.options.strategy),popper:$g(r)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var n=0;n<s.orderedModifiers.length;n++)if(!0!==s.reset){var i=s.orderedModifiers[n],o=i.fn,a=i.options,l=void 0===a?{}:a,f=i.name;"function"==typeof o&&(s=o({state:s,options:l,name:f,instance:u})||s)}else s.reset=!1,n=-1}}},update:(i=function(){return new Promise(function(e){u.forceUpdate(),e(s)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(i())})})),a}),destroy:function(){f(),c=!0}};if(!Op(e,t))return u;function f(){l.forEach(function(e){return e()}),l=[]}return u.setOptions(r).then(function(e){!c&&r.onFirstUpdate&&r.onFirstUpdate(e)}),u}}var Yp=Tp({defaultModifiers:[hp,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=Fp({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,r=e.options,n=r.gpuAcceleration,i=void 0===n||n,o=r.adaptive,a=void 0===o||o,s=r.roundOffsets,l=void 0===s||s,c={placement:zg(t.placement),variation:fp(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,gp(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,gp(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:{}},Jg,Mp,kp,Hp,up,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Qp(t,{elementContext:"reference"}),s=Qp(t,{altBoundary:!0}),l=Np(a,n),c=Np(s,i,o),u=qp(l),f=qp(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}}]}),jp="tippy-content",Gp="tippy-arrow",Jp="tippy-svg-arrow",zp={passive:!0,capture:!0},Vp=function(){return document.body};function Pp(e,t,r){if(Array.isArray(e)){var n=e[t];return null==n?Array.isArray(r)?r[t]:r:n}return e}function Xp(e,t){var r={}.toString.call(e);return 0===r.indexOf("[object")&&r.indexOf(t+"]")>-1}function _p(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Wp(e,t){return 0===t?e:function(n){clearTimeout(r),r=setTimeout(function(){e(n)},t)};var r}function Kp(e){return[].concat(e)}function $p(e,t){-1===e.indexOf(t)&&e.push(t)}function Zp(e){return[].slice.call(e)}function eh(e){return Object.keys(e).reduce(function(t,r){return void 0!==e[r]&&(t[r]=e[r]),t},{})}function th(){return document.createElement("div")}function rh(e){return["Element","Fragment"].some(function(t){return Xp(e,t)})}function nh(e){return rh(e)?[e]:function(e){return Xp(e,"NodeList")}(e)?Zp(e):Array.isArray(e)?e:Zp(document.querySelectorAll(e))}function ih(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function oh(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function ah(e,t,r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[n](t,r)})}function sh(e,t){for(var r=t;r;){var n;if(e.contains(r))return!0;r=null==r.getRootNode||null==(n=r.getRootNode())?void 0:n.host}return!1}var lh={isTouch:!1},ch=0;function uh(){lh.isTouch||(lh.isTouch=!0,window.performance&&document.addEventListener("mousemove",fh))}function fh(){var e=performance.now();e-ch<20&&(lh.isTouch=!1,document.removeEventListener("mousemove",fh)),ch=e}function dh(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var r=t._tippy;t.blur&&!r.state.isVisible&&t.blur()}}var gh,ph=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;function hh(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 Ah(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function mh(e){return Ah("\n %ctippy.js\n\n %c"+Ah(e)+"\n\n %c👷‍ This is a development-only message. It will be removed in production.\n ")}function Ih(e){return[mh(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function yh(e,t){var r;e&&!gh.has(t)&&(gh.add(t),(r=console).warn.apply(r,Ih(t)))}function vh(e,t){var r;e&&!gh.has(t)&&(gh.add(t),(r=console).error.apply(r,Ih(t)))}gh=new Set;var bh={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},wh=Object.assign({appendTo:Vp,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},bh,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Bh=Object.keys(wh);function Eh(e){var t=(e.plugins||[]).reduce(function(t,r){var n,i=r.name,o=r.defaultValue;i&&(t[i]=void 0!==e[i]?e[i]:null!=(n=wh[i])?n:o);return t},{});return Object.assign({},e,t)}function Ch(e,t){var r=Object.assign({},t,{content:_p(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Eh(Object.assign({},wh,{plugins:t}))):Bh).reduce(function(t,r){var n=(e.getAttribute("data-tippy-"+r)||"").trim();if(!n)return t;if("content"===r)t[r]=n;else try{t[r]=JSON.parse(n)}catch(e){t[r]=n}return t},{})}(e,t.plugins));return r.aria=Object.assign({},wh.aria,r.aria),r.aria={expanded:"auto"===r.aria.expanded?t.interactive:r.aria.expanded,content:"auto"===r.aria.content?t.interactive?null:"describedby":r.aria.content},r}function xh(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),Object.keys(e).forEach(function(e){var r=function(e,t){var r=Object.assign({},e);return t.forEach(function(e){delete r[e]}),r}(wh,Object.keys(bh)),n=!function(e,t){return{}.hasOwnProperty.call(e,t)}(r,e);n&&(n=0===t.filter(function(t){return t.name===e}).length),yh(n,["`"+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 Dh(e,t){e.innerHTML=t}function Fh(e){var t=th();return!0===e?t.className=Gp:(t.className=Jp,rh(e)?t.appendChild(e):Dh(t,e)),t}function Qh(e,t){rh(t.content)?(Dh(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Dh(e,t.content):e.textContent=t.content)}function Sh(e){var t=e.firstElementChild,r=Zp(t.children);return{box:t,content:r.find(function(e){return e.classList.contains(jp)}),arrow:r.find(function(e){return e.classList.contains(Gp)||e.classList.contains(Jp)}),backdrop:r.find(function(e){return e.classList.contains("tippy-backdrop")})}}function kh(e){var t=th(),r=th();r.className="tippy-box",r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=th();function i(r,n){var i=Sh(t),o=i.box,a=i.content,s=i.arrow;n.theme?o.setAttribute("data-theme",n.theme):o.removeAttribute("data-theme"),"string"==typeof n.animation?o.setAttribute("data-animation",n.animation):o.removeAttribute("data-animation"),n.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?o.setAttribute("role",n.role):o.removeAttribute("role"),r.content===n.content&&r.allowHTML===n.allowHTML||Qh(a,e.props),n.arrow?s?r.arrow!==n.arrow&&(o.removeChild(s),o.appendChild(Fh(n.arrow))):o.appendChild(Fh(n.arrow)):s&&o.removeChild(s)}return n.className=jp,n.setAttribute("data-state","hidden"),Qh(n,e.props),t.appendChild(r),r.appendChild(n),i(e.props,e.props),{popper:t,onUpdate:i}}kh.$$tippy=!0;var Nh=1,qh=[],Mh=[];function Hh(e,t){var r,n,i,o,a,s,l,c,u=Ch(e,Object.assign({},wh,Eh(eh(t)))),f=!1,d=!1,g=!1,p=!1,h=[],A=Wp(P,u.interactiveDebounce),m=Nh++,I=(c=u.plugins).filter(function(e,t){return c.indexOf(e)===t}),y={id:m,reference:e,popper:th(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:I,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(n),cancelAnimationFrame(i)},setProps:function(t){if(yh(y.state.isDestroyed,hh("setProps")),y.state.isDestroyed)return;q("onBeforeUpdate",[y,t]),z();var r=y.props,n=Ch(e,Object.assign({},r,eh(t),{ignoreAttributes:!0}));y.props=n,J(),r.interactiveDebounce!==n.interactiveDebounce&&(L(),A=Wp(P,n.interactiveDebounce));r.triggerTarget&&!n.triggerTarget?Kp(r.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):n.triggerTarget&&e.removeAttribute("aria-expanded");H(),N(),w&&w(r,n);y.popperInstance&&(K(),Z().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}));q("onAfterUpdate",[y,t])},setContent:function(e){y.setProps({content:e})},show:function(){yh(y.state.isDestroyed,hh("show"));var e=y.state.isVisible,t=y.state.isDestroyed,r=!y.state.isEnabled,n=lh.isTouch&&!y.props.touch,i=Pp(y.props.duration,0,wh.duration);if(e||t||r||n)return;if(F().hasAttribute("disabled"))return;if(q("onShow",[y],!1),!1===y.props.onShow(y))return;y.state.isVisible=!0,D()&&(b.style.visibility="visible");N(),T(),y.state.isMounted||(b.style.transition="none");if(D()){var o=S();ih([o.box,o.content],0)}s=function(){var e;if(y.state.isVisible&&!p){if(p=!0,b.offsetHeight,b.style.transition=y.props.moveTransition,D()&&y.props.animation){var t=S(),r=t.box,n=t.content;ih([r,n],i),oh([r,n],"visible")}M(),H(),$p(Mh,y),null==(e=y.popperInstance)||e.forceUpdate(),q("onMount",[y]),y.props.animation&&D()&&function(e,t){j(e,t)}(i,function(){y.state.isShown=!0,q("onShown",[y])})}},function(){var e,t=y.props.appendTo,r=F();e=y.props.interactive&&t===Vp||"parent"===t?r.parentNode:_p(t,[r]);e.contains(b)||e.appendChild(b);y.state.isMounted=!0,K(),yh(y.props.interactive&&t===wh.appendTo&&r.nextElementSibling!==b,["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(){yh(y.state.isDestroyed,hh("hide"));var e=!y.state.isVisible,t=y.state.isDestroyed,r=!y.state.isEnabled,n=Pp(y.props.duration,1,wh.duration);if(e||t||r)return;if(q("onHide",[y],!1),!1===y.props.onHide(y))return;y.state.isVisible=!1,y.state.isShown=!1,p=!1,f=!1,D()&&(b.style.visibility="hidden");if(L(),Y(),N(!0),D()){var i=S(),o=i.box,a=i.content;y.props.animation&&(ih([o,a],n),oh([o,a],"hidden"))}M(),H(),y.props.animation?D()&&function(e,t){j(e,function(){!y.state.isVisible&&b.parentNode&&b.parentNode.contains(b)&&t()})}(n,y.unmount):y.unmount()},hideWithInteractivity:function(e){yh(y.state.isDestroyed,hh("hideWithInteractivity")),Q().addEventListener("mousemove",A),$p(qh,A),A(e)},enable:function(){y.state.isEnabled=!0},disable:function(){y.hide(),y.state.isEnabled=!1},unmount:function(){yh(y.state.isDestroyed,hh("unmount")),y.state.isVisible&&y.hide();if(!y.state.isMounted)return;$(),Z().forEach(function(e){e._tippy.unmount()}),b.parentNode&&b.parentNode.removeChild(b);Mh=Mh.filter(function(e){return e!==y}),y.state.isMounted=!1,q("onHidden",[y])},destroy:function(){if(yh(y.state.isDestroyed,hh("destroy")),y.state.isDestroyed)return;y.clearDelayTimeouts(),y.unmount(),z(),delete e._tippy,y.state.isDestroyed=!0,q("onDestroy",[y])}};if(!u.render)return vh(!0,"render() function has not been supplied."),y;var v=u.render(y),b=v.popper,w=v.onUpdate;b.setAttribute("data-tippy-root",""),b.id="tippy-"+y.id,y.popper=b,e._tippy=y,b._tippy=y;var B=I.map(function(e){return e.fn(y)}),E=e.hasAttribute("aria-expanded");return J(),H(),N(),q("onCreate",[y]),u.showOnCreate&&ee(),b.addEventListener("mouseenter",function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()}),b.addEventListener("mouseleave",function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&Q().addEventListener("mousemove",A)}),y;function C(){var e=y.props.touch;return Array.isArray(e)?e:[e,0]}function x(){return"hold"===C()[0]}function D(){var e;return!(null==(e=y.props.render)||!e.$$tippy)}function F(){return l||e}function Q(){var e,t,r=F().parentNode;return r?null!=(t=Kp(r)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function S(){return Sh(b)}function k(e){return y.state.isMounted&&!y.state.isVisible||lh.isTouch||o&&"focus"===o.type?0:Pp(y.props.delay,e?0:1,wh.delay)}function N(e){void 0===e&&(e=!1),b.style.pointerEvents=y.props.interactive&&!e?"":"none",b.style.zIndex=""+y.props.zIndex}function q(e,t,r){var n;(void 0===r&&(r=!0),B.forEach(function(r){r[e]&&r[e].apply(r,t)}),r)&&(n=y.props)[e].apply(n,t)}function M(){var t=y.props.aria;if(t.content){var r="aria-"+t.content,n=b.id;Kp(y.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(r);if(y.state.isVisible)e.setAttribute(r,t?t+" "+n:n);else{var i=t&&t.replace(n,"").trim();i?e.setAttribute(r,i):e.removeAttribute(r)}})}}function H(){!E&&y.props.aria.expanded&&Kp(y.props.triggerTarget||e).forEach(function(e){y.props.interactive?e.setAttribute("aria-expanded",y.state.isVisible&&e===F()?"true":"false"):e.removeAttribute("aria-expanded")})}function L(){Q().removeEventListener("mousemove",A),qh=qh.filter(function(e){return e!==A})}function U(t){if(!lh.isTouch||!g&&"mousedown"!==t.type){var r=t.composedPath&&t.composedPath()[0]||t.target;if(!y.props.interactive||!sh(b,r)){if(Kp(y.props.triggerTarget||e).some(function(e){return sh(e,r)})){if(lh.isTouch)return;if(y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else q("onClickOutside",[y,t]);!0===y.props.hideOnClick&&(y.clearDelayTimeouts(),y.hide(),d=!0,setTimeout(function(){d=!1}),y.state.isMounted||Y())}}}function R(){g=!0}function O(){g=!1}function T(){var e=Q();e.addEventListener("mousedown",U,!0),e.addEventListener("touchend",U,zp),e.addEventListener("touchstart",O,zp),e.addEventListener("touchmove",R,zp)}function Y(){var e=Q();e.removeEventListener("mousedown",U,!0),e.removeEventListener("touchend",U,zp),e.removeEventListener("touchstart",O,zp),e.removeEventListener("touchmove",R,zp)}function j(e,t){var r=S().box;function n(e){e.target===r&&(ah(r,"remove",n),t())}if(0===e)return t();ah(r,"remove",a),ah(r,"add",n),a=n}function G(t,r,n){void 0===n&&(n=!1),Kp(y.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,r,n),h.push({node:e,eventType:t,handler:r,options:n})})}function J(){var e;x()&&(G("touchstart",V,{passive:!0}),G("touchend",X,{passive:!0})),(e=y.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(G(e,V),e){case"mouseenter":G("mouseleave",X);break;case"focus":G(ph?"focusout":"blur",_);break;case"focusin":G("focusout",_)}})}function z(){h.forEach(function(e){var t=e.node,r=e.eventType,n=e.handler,i=e.options;t.removeEventListener(r,n,i)}),h=[]}function V(e){var t,r=!1;if(y.state.isEnabled&&!W(e)&&!d){var n="focus"===(null==(t=o)?void 0:t.type);o=e,l=e.currentTarget,H(),!y.state.isVisible&&Xp(e,"MouseEvent")&&qh.forEach(function(t){return t(e)}),"click"===e.type&&(y.props.trigger.indexOf("mouseenter")<0||f)&&!1!==y.props.hideOnClick&&y.state.isVisible?r=!0:ee(e),"click"===e.type&&(f=!r),r&&!n&&te(e)}}function P(e){var t=e.target,r=F().contains(t)||b.contains(t);if("mousemove"!==e.type||!r){var n=Z().concat(b).map(function(e){var t,r=null==(t=e._tippy.popperInstance)?void 0:t.state;return r?{popperRect:e.getBoundingClientRect(),popperState:r,props:u}:null}).filter(Boolean);(function(e,t){var r=t.clientX,n=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,f="left"===a?s.right.x:0,d=t.top-n+l>o,g=n-t.bottom-c>o,p=t.left-r+u>o,h=r-t.right-f>o;return d||g||p||h})})(n,e)&&(L(),te(e))}}function X(e){W(e)||y.props.trigger.indexOf("click")>=0&&f||(y.props.interactive?y.hideWithInteractivity(e):te(e))}function _(e){y.props.trigger.indexOf("focusin")<0&&e.target!==F()||y.props.interactive&&e.relatedTarget&&b.contains(e.relatedTarget)||te(e)}function W(e){return!!lh.isTouch&&x()!==e.type.indexOf("touch")>=0}function K(){$();var t=y.props,r=t.popperOptions,n=t.placement,i=t.offset,o=t.getReferenceClientRect,a=t.moveTransition,l=D()?Sh(b).arrow:null,c=o?{getBoundingClientRect:o,contextElement:o.contextElement||F()}:e,u={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(D()){var r=S().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?r.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?r.setAttribute("data-"+e,""):r.removeAttribute("data-"+e)}),t.attributes.popper={}}}},f=[{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];D()&&l&&f.push({name:"arrow",options:{element:l,padding:3}}),f.push.apply(f,(null==r?void 0:r.modifiers)||[]),y.popperInstance=Yp(c,b,Object.assign({},r,{placement:n,onFirstUpdate:s,modifiers:f}))}function $(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function Z(){return Zp(b.querySelectorAll("[data-tippy-root]"))}function ee(e){y.clearDelayTimeouts(),e&&q("onTrigger",[y,e]),T();var t=k(!0),n=C(),i=n[0],o=n[1];lh.isTouch&&"hold"===i&&o&&(t=o),t?r=setTimeout(function(){y.show()},t):y.show()}function te(e){if(y.clearDelayTimeouts(),q("onUntrigger",[y,e]),y.state.isVisible){if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=k(!1);t?n=setTimeout(function(){y.state.isVisible&&y.hide()},t):i=requestAnimationFrame(function(){y.hide()})}}else Y()}}function Lh(e,t){void 0===t&&(t={});var r=wh.plugins.concat(t.plugins||[]);!function(e){var t=!e,r="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;vh(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),vh(r,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(e),xh(t,r),document.addEventListener("touchstart",uh,zp),window.addEventListener("blur",dh);var n=Object.assign({},t,{plugins:r}),i=nh(e),o=rh(n.content),a=i.length>1;yh(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 r=t&&Hh(t,n);return r&&e.push(r),e},[]);return rh(e)?s[0]:s}function Uh(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===r&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}Lh.defaultProps=wh,Lh.setDefaultProps=function(e){xh(e,[]),Object.keys(e).forEach(function(t){wh[t]=e[t]})},Lh.currentInput=lh,Object.assign({},Jg,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}}),Lh.setDefaultProps({render:kh});Uh('.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 Rh(e,t={}){if(!ba(e))throw new Error("invalid fun");let r=Be(t,"width");r=Fe(r)?la(r):ke(r)?Hn(r):null;let n=Be(t,"height");n=Fe(n)?la(n):ke(n)?Hn(n):null;let i=document.createElement("div");ke(r)&&(i.style.width=`${r}px`),ke(n)&&(i.style.height=`${n}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),Xf(document.querySelector("body"),l);let c=e(i);return s=vs(c)?await c:c,Pf(l),s}function Oh(e){if(!ba(e))throw new Error("fn is not a function");return function(){let t=is(),r=null,n=null;try{r=e.apply(this,arguments)}catch(e){n=e}return null!==n?t.resolve({state:"error",msg:n}):vs(r)?r.then(e=>{t.resolve({state:"success",msg:e})}).catch(e=>{"cancelled"===Be(e,"reason")?t.resolve({state:"cancelled",msg:""}):t.resolve({state:"error",msg:e})}):t.resolve({state:"success",msg:r}),t}}Uh(".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 Th=Oh;function Yh(e){if(!Ln(e))return!1;return eo(e)<0}function jh(e=0){let t=0,r=[];Yh(e)&&(e=0),e=eo(e);let n=_i();return n.get=function(){if(r.length>0){return t+=1,r.splice(0,1)[0]}return null},n.cb=function(){t-=1,t<0&&(t=0),r.length>0&&n.emit("message",r)},n.push=function(i){r.push(i),(e<=0||t<e)&&n.emit("message",r)},n.clear=function(){t=0,r=[]},n}function Gh(e=0,t=!1){return new function(e,t){let r=null;Eo(e)||(e=0),e=eo(e),pn(t)||(t=!1);let n=jh(e);return n.on("message",async function(e){let t=n.get();if(!t)return;await ws(1);let r,i=Be(t,"id"),o=Be(t,"fun"),a=Be(t,"input");r=ba(o)?await Th(o)(...a):{state:"error",msg:"fun is not a function"},n.emit(i,r),n.cb()}),function(e,...i){let o=is(),a=Lu();r=a;let s={id:a,fun:e,input:i};return n.push(s),n.once(a,e=>{t?a===r?"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 Jh(e,t){yn()?Fe(e)?Pu()?function(e,t){window.navigator.msSaveOrOpenBlob(t,e)}(e,t):function(e,t){let r=window.URL.createObjectURL(t),n=document.createElement("a");n.href=r,n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(r)}(e,t):console.log("no filename"):console.log("no window")}function zh(e,t="data"){if(!Ee(e))return{error:"sheet is not an object"};Fe(t)||(t="data");let r=Su();return r.SheetNames.push(t),r.Sheets[t]=e,r}function Vh(e,t="data"){if(!xe(e)&&!wr(e))return{error:"data is not an array or element"};Fe(t)||(t="data");let r=null,n=wn(e);return Ne(n,"error")?n:(r=zh(n,t),Ne(r,"error"),r)}function Ph(e,t="data",r){if(!Fe(e)){let t="no filename";return console.log(t,e),{error:t}}if(Fe(t)||(t="data"),!xe(r)&&!wr(r)){let e="data is not an array or element";return console.log(e,r),{error:e}}xe(r)&&Ce(Be(r,0,null))&&(r=In(r));let n=Vh(r,t);if(Be(n,"error"))return console.log(n.error),n.error;let i=bn();if(yn()){let t=i.write(n,{bookType:"xlsx",bookSST:!1,type:"array"});Jh(e,new Blob([t]))}else try{i.writeFile(n,e)}catch(e){let t=`xl.writeFile failed: ${Be(e,"message",e)}. 提示: 若於Node ESM環境單獨深度import此檔, xlsx ESM build的_fs未注入會擲此錯; 請改用 import { downloadExcelFileFromData } from 'wsemi' (走package main的UMD bundle, xlsx CJS自動載fs), 或於app entry手動呼叫 XLSX.set_fs(fs) 注入fs`;return console.log(t),t}return"ok"}function Xh(e){if(!es(e))return new Blob;return new Blob([e])}function _h(e,t,r=""){if(!Or(t))return{};let n={};return Cr(t,function(t){n[t]=Be(e,t,r)}),n}function Wh(e,t){if(!Ee(e))return{};if(!Or(t))return{};let r={};return Cr(t,function(t){Ne(e,t)&&(r[t]=Be(e,t))}),r}function Kh(e,t=0,r={}){Eo(t)||(t=0),t=eo(t);let n=Be(r,"rounding","");return"ROUND_HALF_UP"!==n&&"ROUND_HALF_EVEN"!==n&&(n="ROUND_HALF_UP"),ke(e)?new oc(e).toDecimalPlaces(t,oc[n]).toNumber():""}function $h(e,t={}){if(!ke(e))throw new Error("v is not a number");let r=Be(t,"returnDigit");if(hn(r)||(r=!1),Ln(e))return r?0:ja(e);let n=null,i=null;for(let t=1;t<=16;t++){let r=e*Math.pow(10,t);if(Math.abs(r-Math.round(r))<1e-9){n=t,i=sc(e,t);break}}return null===i&&(n=16,i=ja(e)),r?n:i}let Zh=e=>{let t=1;e<0&&(t=-1);let r=null;if((e=Math.abs(e))<.1)for(let n=1;n<16;n++){let i=Math.pow(10,n);if((e*=i)<1){r={r:1/i,v:t*e};break}}else{if(e<1)return{r:1,v:t*e};if(e>=1)for(let n=1;n<16;n++){let i=Math.pow(10,n);if((e/=i)<1){r={r:i,v:t*e};break}}}if(null===r)throw new Error(`can not normalize v[${e}]`);return r};function eA(e,t,r={}){if(!Fe(e))return"";if(!Eo(t))return e;if(t=eo(t),e.length<=t)return e;let n=Be(r,"funWithMsg"),i="";if(ba(n)){let r=n(e,t);Fe(r)&&(i=r)}return fa(e,t)+`...${i}`}function tA(e,t={}){let r=Be(t,"fs"),n=!1;try{r.statSync(e),n=!0}catch{n=!1}return n}function rA(e,t={}){let r=Be(t,"fs");return!!tA(e,{fs:r})&&(!r.lstatSync(e).isDirectory()&&!r.lstatSync(e).isSymbolicLink())}function nA(e){return rA(e,{fs:a})}function iA(e,t={}){let r=null,n=Be(t,"fs"),i="";try{i=n.readFileSync(e,"utf8")}catch(e){r=e}return null!==r?{error:r}:{success:i}}function oA(e){return iA(e,{fs:a})}function aA(e){let t=is();return s(Number(e),"SIGKILL",r=>{r?t.reject(r):t.resolve(`pid[${e}] killed`)}),t}function sA(e,t){if("win32"!==process.platform)return{file:e,args:t};let r=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=i.execFileSync("where",[e],{encoding:"utf8",timeout:5e3,windowsHide:!0,shell:!1,stdio:["ignore","pipe","ignore"]}).trim().split(/\r?\n/),r=t.find(e=>/\.cmd$/i.test(e));return r||(t.find(e=>/\.exe$/i.test(e))||t[0]||e)}catch{return e}}(e);if(/\.exe$/i.test(r))return{file:r,args:t};if(/\.(cmd|bat)$/i.test(r)){let e=function(e){let t=Be(oA(e),"success","");if(!Fe(t))return null;let r=t.match(/%dp0%\\(node_modules\\[^"]+)"/i);if(!r)return null;let n=o.dirname(e),i=o.join(n,r[1]);return nA(i)?i:null}(r);if(e)return/\.exe$/i.test(e)?{file:e,args:t}:{file:process.execPath,args:[e,...t]};let i=t.map(e=>`"${e.replace(/(\\*)"/g,'$1$1\\"').replace(/(\\*)$/,"$1$1")}"`.replace(/[()%!^"<>&|]/g,"^$&")),a=`${n=r,n.replace(/[()%!^"<>&|;, ]/g,"^$&")} ${i.join(" ")}`;return{file:process.env.comspec||process.env.COMSPEC||"cmd.exe",args:["/d","/s","/c",`"${a}"`],opt:{windowsVerbatimArguments:!0}}}var n;return{file:r,args:t}}let lA={funWithMsg:e=>`(truncated, total ${e.length} chars)`};function cA(e,t=[],r={}){let{timeoutMs:n=12e4,cwd:o=process.cwd(),input:a,validate:s,maxBuffer:l=10485760,onStdout:c,onStderr:u,env:f}=r,d=function(e){if(ba(e))return e;if(!Fe(e))return null;let t=e.split(",").map(e=>e.trim()).filter(Boolean);return 0===t.length?null:e=>{for(let r of t)if("nonempty"===r){if(!Fe(e)||""===e.trim())return!1}else if("json"===r)try{JSON.parse(e)}catch{return!1}else if("min:"===fa(r,4)){let t=ga(r,4);if(!ke(t))return!1;let n=eo(t);if(!Fe(e)||e.length<n)return!1}return!0}}(s),g=Date.now(),p=is(),h={...process.env,PYTHONIOENCODING:"utf-8"};if(void 0!==f){if("win32"===process.platform){let e=Object.keys(f).map(e=>e.toLowerCase());for(let t of Object.keys(h))e.includes(t.toLowerCase())&&delete h[t]}h={...h,...f}}let A=sA(e,t),m=i.spawn(A.file,A.args,{cwd:o,stdio:["pipe","pipe","pipe"],windowsHide:!0,env:h,...A.opt}),I="",y="",v=new TextDecoder("utf-8"),b=new TextDecoder("utf-8"),w=!1,B=!1;m.stdout.on("data",e=>{let t=v.decode(e,{stream:!0});t&&(ba(c)&&c(t),I.length<l&&(I+=t))}),m.stderr.on("data",e=>{let t=b.decode(e,{stream:!0});t&&(ba(u)&&u(t),y.length<l&&(y+=t))}),m.stdin.on("error",()=>{}),void 0!==a&&m.stdin.write(a,"utf8"),m.stdin.end();let E=setTimeout(()=>{w||(B=!0,aA(m.pid).catch(()=>{}),setTimeout(()=>{w||(w=!0,p.resolve({ok:!1,stdout:eA(I,500,lA),stderr:eA(y,500,lA),code:null,error:`TIMEOUT after ${n/1e3}s(子進程未能結束)`,durationMs:Date.now()-g,pid:m.pid}))},3e3).unref())},n);return m.on("error",e=>{w||(w=!0,clearTimeout(E),p.resolve({ok:!1,stdout:"",stderr:"",code:null,error:`${e.code||"UNKNOWN"}: ${e.message}`,durationMs:Date.now()-g,pid:m.pid}))}),m.on("close",(e,t)=>{if(w)return;w=!0,clearTimeout(E);let r=v.decode();r&&I.length<l&&(I+=r);let i=b.decode();i&&y.length<l&&(y+=i);let o=Date.now()-g;B?p.resolve({ok:!1,stdout:eA(I,500,lA),stderr:eA(y,500,lA),code:e,error:`TIMEOUT after ${n/1e3}s`,durationMs:o,pid:m.pid}):0===e?!d||d(I)?p.resolve({ok:!0,stdout:I,stderr:y,code:0,error:"",durationMs:o,pid:m.pid}):p.resolve({ok:!1,stdout:eA(I,500,lA),stderr:eA(y,500,lA),code:0,error:"OUTPUT_VALIDATION_FAILED",durationMs:o,pid:m.pid}):p.resolve({ok:!1,stdout:eA(I,500,lA),stderr:eA(y,1e3,lA),code:e,error:t?`Signal: ${t}`:`Exit code ${e}`,durationMs:o,pid:m.pid})}),p}function uA(e,t){return e>t}function fA(e){return e&&e.length?bd(e,cr,uA):void 0}function dA(e){return null==e?[]:function(e,t){return he(t,function(t){return e[t]})}(e,gt(e))}function gA(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(n,a,r(a),e)}return n}function pA(e,t,r,n){return ht(e,function(e,i,o){t(n,e,r(e),o)}),n}var hA,AA,mA=Object.prototype.hasOwnProperty,IA=(hA=function(e,t,r){mA.call(e,r)?e[r].push(t):gi(e,r,[t])},function(e,t){var r=b(e)?gA:pA,n=AA?AA():{};return r(e,hA,dr(t),n)}),yA=IA;function vA(e,t){if(!xe(e)||!xe(t))return[];if(e.length!==t.length)return[];return Dr(e,function(r,n){return bg(e[n],t[n])})}function bA(e,t={}){let r=Be(t,"fs");if(!tA(e,{fs:r}))return!1;let n=r.lstatSync(e);return!n.isFile()&&!n.isSymbolicLink()}function wA(e,t={}){let r=Be(t,"fs");if(bA(e,{fs:r}))return{success:"input folder is already exists: "+e};if(tA(e,{fs:r}))return{error:"input path already exists: "+e};try{r.mkdirSync(e,{recursive:!0})}catch(e){return{error:e}}return{success:"done: "+e}}function BA(e,t={}){let r=Be(t,"path"),n=Be(t,"fs");if(!tA(e,{fs:n})){let t=wA(e,{fs:n});return t.error?t.error:{success:"done: "+e}}if(!bA(e,{fs:n}))return{error:"input path is not a folder"};try{let t=n.readdirSync(e);for(let i of t){let t=r.join(e,i);n.statSync(t).isDirectory()?n.rmSync(t,{recursive:!0,force:!0}):n.unlinkSync(t)}}catch(e){return{error:e}}return{success:"done: "+e}}function EA(e,t,r={}){let n=Be(r,"path"),i=Be(r,"fs"),o=Be(r,"useSync","");hn(o)||(o=!0);let a="";return a=o?function(e,t,r={}){let n=Be(r,"path"),i=Be(r,"fs");if(!rA(e,{fs:i}))return{error:`fpSrc[${e}] is not a file`};try{wA(n.dirname(t),{fs:i}),i.copyFileSync(e,t)}catch(e){return{error:e}}return{success:"done: "+t}}(e,t,{path:n,fs:i}):async function(e,t,r={}){let n=Be(r,"path"),i=Be(r,"fs");if(!rA(e,{fs:i}))return{error:`fpSrc[${e}] is not a file`};let o=null;return await(async(e,t)=>{wA(n.dirname(t),{fs:i}),await new Promise((r,n)=>{let o=i.createReadStream(e),a=i.createWriteStream(t);o.on("error",n),a.on("error",n),a.on("finish",r),o.pipe(a)})})(e,t).then(()=>{o={success:"done: "+t}}).catch(e=>{o={error:e}}),o}(e,t,{path:n,fs:i}),a}function CA(e,t,r={}){let n=Be(r,"path"),i=Be(r,"fs");if(!bA(e,{fs:i}))return{error:`fpSrc[${e}] is not a folder`};try{i.readdirSync(e).forEach(function(r){let o=n.resolve(e,r),a=n.resolve(t,r),s=i.lstatSync(o);if(s.isDirectory())wA(a,{fs:i}),CA(o,a,{path:n,fs:i});else if(s.isSymbolicLink()){let e=i.readlinkSync(o);i.symlinkSync(e,a)}else wA(n.dirname(a),{fs:i}),i.copyFileSync(o,a)})}catch(e){return{error:e}}return{success:"done: "+t}}function xA(e,t,r={}){let n=Be(r,"path"),i=Be(r,"fs"),o=Be(r,"useSync","");hn(o)||(o=!0);let a="";return a=o?CA(e,t,{path:n,fs:i}):async function(e,t,r={}){let n=Be(r,"path"),i=Be(r,"fs");if(!bA(e,{fs:i}))return{error:`fpSrc[${e}] is not a folder`};let o=async(e,t)=>{let r=i.readdirSync(e);for(let a of r){let r=n.join(e,a),s=n.join(t,a),l=i.lstatSync(r);if(l.isDirectory())wA(s,{fs:i}),await o(r,s);else if(l.isSymbolicLink()){let e=i.readlinkSync(r);i.symlinkSync(e,s)}else wA(n.dirname(s),{fs:i}),await new Promise((e,t)=>{let n=i.createReadStream(r),o=i.createWriteStream(s);n.on("error",t),o.on("error",t),o.on("finish",e),n.pipe(o)})}},a=null;return await o(e,t).then(()=>{a={success:"done: "+t}}).catch(e=>{a={error:e}}),a}(e,t,{path:n,fs:i}),a}function DA(e){if(!Fe(e))return{path:"",isRoot:!1};for(;e.indexOf("\\\\")>=0;)e=e.replace("\\\\","\\");for(;e.indexOf("//")>=0;)e=e.replace("//","/");if(":"===da(e,1))return{path:`${e}\\`,isRoot:!0};if("\\"===da(e,1)){let t=Ja(e,1);return":"===da(t,1)?{path:e,isRoot:!0}:{path:t,isRoot:!1}}if("/"===da(e,1)){let t=Ja(e,1);return 0===t.length?{path:e,isRoot:!0}:{path:t,isRoot:!1}}return{path:e,isRoot:!1}}function FA(e){if(!Fe(e))return"";let t=DA(e);if(t.isRoot)return t.path;let r=t.path;try{r=r.split("\\").pop().split("/").pop()}catch(e){}return r}function QA(e){if(!Fe(e))return"";let t=DA(e);if(t.isRoot)return t.path;let r=FA(e=t.path);if(!Fe(r))return e;let n=DA(e=Ja(e,r.length));return n.isRoot,n.path}function SA(e,t="",r={}){let n=Be(r,"fs"),i=Be(r,"encoding","");if(Fe(i)||(i="utf8"),tA(e,{fs:n}))return{error:"input path already exists: "+e};if(rA(e,{fs:n}))return{error:"input file is already exists: "+e};let o=QA(e);bA(o,{fs:n})||wA(o,{fs:n});try{n.writeFileSync(e,t,{encoding:i})}catch(e){return{error:e}}return{success:"done: "+e}}function kA(e){return wA(e,{fs:a})}function NA(e,t={}){let r=Be(t,"fs");if(!tA(e,{fs:r}))return{success:"file does not exist: "+e};if(!rA(e,{fs:r}))return{error:"input path is not a file: "+e};try{r.unlinkSync(e)}catch(e){return{error:e}}return{success:"done: "+e}}async function qA(e,t={}){let r=Be(t,"numRetry");to(r)||(r=5),r=eo(r);let n=Be(t,"fs",null);if(!tA(e,{fs:n}))return"file does not exist: "+e;if(!rA(e,{fs:n}))return Promise.reject("input path is not a file: "+e);for(let t=0;t<r;t++)try{n.unlinkSync(e);break}catch(e){if("EBUSY"!==e.code)return Promise.reject(e);await ws(300)}return"done: "+e}function MA(e,t={}){let r=Be(t,"fs");if(!tA(e,{fs:r}))return{success:"folder does not exist: "+e};if(!bA(e,{fs:r}))return{error:"input path is not a folder: "+e};try{r.rmSync(e,{recursive:!0,force:!0})}catch(e){return{error:e}}return{success:"done: "+e}}function HA(e){return MA(e,{fs:a})}async function LA(e,t={}){let r=Be(t,"numRetry");to(r)||(r=5),r=eo(r);let n=Be(t,"fs",null);if(!tA(e,{fs:n}))return"folder does not exist: "+e;if(!bA(e,{fs:n}))return Promise.reject("input path is not a folder: "+e);for(let t=0;t<r;t++)try{n.rmSync(e,{recursive:!0,force:!0});break}catch(e){if("EBUSY"!==e.code)return Promise.reject(e);await ws(300)}return"done: "+e}async function UA(e,t,r={}){let n="",i=Be(r,"fs"),o=Be(r,"Readable");if(!Fe(e))throw new Error("urlIn in not an effective string");let a=QA(t),s=Be(r,"fnOut","");Fe(s)||(s=FA(t)),bA(a,{fs:i})||wA(a,{fs:i});let l=is();try{let r=await fetch(e);if(!r.ok)return l.reject(r.statusText),l;let a=i.createWriteStream(t);o.fromWeb(r.body).pipe(a),a.on("finish",()=>{l.resolve(t)}),a.on("error",e=>{n=e.message,l.reject(n)})}catch(e){n=e.message,l.reject(n)}return l}function RA(){if(!ba(r))throw new Error("invalid dayjs");return r().format("YYYY-MM-DDTHH:mm:ssZ")}function OA(e){if(!Fe(e))return"";let t=FA(e),r=zo(t,".");if(gn(r)<=1)return t;let n="";try{r=Vo(r),n=Do(r,".")}catch(e){}return n}function TA(e){return bA(e,{fs:a})}function YA(e,t={}){let r=Be(t,"polling");hn(r)||(r=!1);let n=Be(t,"timeInterval");to(n)||(n=100),n=eo(n);let i=Be(t,"timeBinaryInterval");to(i)||(i=300),i=eo(i);let s=new f.EventEmitter,l=e,c=null,u=setInterval(()=>{if(null===c)TA(l)&&(c=d.watch(l,{usePolling:r,interval:n,binaryInterval:i,awaitWriteFinish:!0}),c.on("all",(e,t,r)=>{t=o.resolve(t),s.emit("change",{type:e,fp:t,stats:r}),"unlinkDir"===e&&o.resolve(l)===t&&setTimeout(()=>{g()},1)}));else if(!TA(l)){let e=a.fstatSync;s.emit("change",{type:"unlinkDir",fp:o.resolve(l),stats:e}),setTimeout(()=>{g()},1)}},n),g=()=>{if(null!==c){try{c.unwatch(l)}catch(e){console.log(e)}c.close().catch(e=>{console.log(e)}).finally(()=>{c=null})}};return s.clear=()=>{g(),clearInterval(u)},s}function jA(e,t={}){let r=Be(t,"fs"),n=Be(t,"crypto"),i=Be(t,"type","");Fe(i)||(i="sha512");let o=is();if(!rA(e,{fs:r}))return o.reject(`fp[${e}] is not a file`),o;try{let t=n.createHash(i),a=r.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 GA=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 JA(){return function(e){const{exports:{mem:t,xxh32:r,xxh64:n,init32:i,update32:o,digest32:a,init64:s,update64:l,digest64:c}}=e;let u=new Uint8Array(t.buffer);function f(e,r){if(t.buffer.byteLength<e+r){const n=Math.ceil((e+r-t.buffer.byteLength)/65536);t.grow(n),u=new Uint8Array(t.buffer)}}function d(e,t,r,n,i,o){f(e);const a=new Uint8Array(e);return u.set(a),r(0,t),a.set(u.subarray(0,e)),{update(t){let r;return u.set(a),"string"==typeof t?(f(3*t.length,e),r=A.encodeInto(t,u.subarray(e)).written):(f(t.byteLength,e),u.set(t,e),r=t.byteLength),n(0,e,r),a.set(u.subarray(0,e)),this},digest:()=>(u.set(a),o(i(0)))}}function g(e){return e>>>0}const p=2n**64n-1n;function h(e){return e&p}const A=new TextEncoder;function m(e,t=0){return f(3*e.length,0),g(r(0,A.encodeInto(e,u).written,t))}function I(e,t=0n){return f(3*e.length,0),h(n(0,A.encodeInto(e,u).written,t))}return{h32:m,h32ToString:(e,t=0)=>m(e,t).toString(16).padStart(8,"0"),h32Raw:(e,t=0)=>(f(e.byteLength,0),u.set(e),g(r(0,e.byteLength,t))),create32:(e=0)=>d(48,e,i,o,a,g),h64:I,h64ToString:(e,t=0n)=>I(e,t).toString(16).padStart(16,"0"),h64Raw:(e,t=0n)=>(f(e.byteLength,0),u.set(e),h(n(0,e.byteLength,t))),create64:(e=0n)=>d(88,e,s,l,c,h)}}((await WebAssembly.instantiate(GA)).instance)}async function zA(e,t={}){let r=Be(t,"fs"),n=Be(t,"chunkSize");if(ke(n)||(n=67108864),n=Hn(n),!rA(e,{fs:r}))return Promise.reject("fp is not a file");let i=is();try{let{create64:t}=await JA(),o=t(),a=r.createReadStream(e,{highWaterMark:n});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 VA(e,t={}){let r=Be(t,"fs"),n=Be(t,"crypto"),i=Be(t,"type","");Fe(i)||(i="sha512");let o=Be(t,"chunkSize");ke(o)||(o=67108864),o=Hn(o);let a=is();return rA(e,{fs:r})?"xxhash64"===i?zA(e,{fs:r,chunkSize:o}):jA(e,{fs:r,crypto:n,type:i}):(a.reject(`fp[${e}] is not a file`),a)}function PA(e,t=1,r={}){let n=1,i=Be(r,"path"),o=Be(r,"fs");if(!bA(e,{fs:o}))throw new Error(`fd[${e}] is not a folder`);return null!==t&&to(t)&&(t=eo(t))<1&&(t=1),function e(r){let a=[];return bA(r,{fs:o})?(Cr(o.readdirSync(r),function(s){let l=i.resolve(r,s),c=null;try{c=o.statSync(l)}catch(e){}c&&c.isDirectory()?(a.push({isFolder:!0,level:n,path:l,name:i.basename(l)}),n+=1,(n<=t||null===t)&&(a=a.concat(e(l))),n-=1):a.push({isFolder:!1,level:n,path:l,name:i.basename(l)})}),a):a}(e)}function XA(e,t=1,r={}){let n=Be(r,"path"),i=Be(r,"fs");if(!bA(e,{fs:i}))throw new Error(`fd[${e}] is not a folder`);let o=[];return o=PA(e,t,{path:n,fs:i}),o=ha(o,{isFolder:!1}),o=Dr(o,e=>(delete e.isFolder,e)),o}async function _A(e,t=1,r={}){let n=Be(r,"path"),i=Be(r,"fs"),o=Be(r,"crypto"),a=Be(r,"type","");if(Fe(a)||(a="md5"),!bA(e,{fs:i}))throw new Error(`fd[${e}] is not a folder`);let s=XA(e,t,{path:n,fs:i});return s=await cc(s,async e=>{let t=Be(e,"path","");return e.hashType=a,e.hash="",Fe(t)&&(e.hash=await VA(t,{fs:i,crypto:o,type:a,useSync:!1})),e}),s}async function WA(e,t=1,r={}){return _A(e,t,{path:o,fs:a,crypto:g,...r})}async function KA(e,t={}){let r=Be(t,"path"),n=Be(t,"fs"),i=Be(t,"crypto"),o=Be(t,"type","");Fe(o)||(o="md5");let a=[],s=PA(e,null,{path:r,fs:n});return await cc(s,async e=>{if(e.isFolder)return;let t=await jA(e.path,{fs:n,crypto:i,type:o});a.push(t)}),Do(a,"|")}function $A(e,t=1,r={}){let n=Be(r,"path"),i=Be(r,"fs");if(!bA(e,{fs:i}))throw new Error(`fd[${e}] is not a folder`);let o=[];return o=PA(e,t,{path:n,fs:i}),o=ha(o,{isFolder:!0}),o=Dr(o,e=>(delete e.isFolder,e)),o}async function ZA(e,t,r={}){let n="",i=Be(r,"fs");if(!Or(e))throw new Error("fpsIn in not an effective array");let o=QA(t),a=Be(r,"fnOut","");Fe(a)||(a=FA(t)),bA(o,{fs:i})||wA(o,{fs:i});let s=is();try{let r=i.createWriteStream(t);for(let t=0;t<e.length;t++){let o=e[t];if(!rA(o,{fs:i}))throw new Error(`fpIn[${o}] is not a file`);let a=()=>{let e=is(),t=i.createReadStream(o);return t.on("error",t=>{n=t.message,e.reject(t)}),t.on("end",()=>{NA(o,{fs:i}),e.resolve()}),t.pipe(r,{end:!1}),e};await a()}r.end(),r.on("error",e=>{n=e.message,s.reject(n)}),r.on("finish",()=>{let e={filename:a,path:t};s.resolve(e)})}catch(e){n=e.message,s.reject(n)}return s}function em(e,t,r={}){let n=Be(r,"fs");if(!rA(e,{fs:n}))return{error:`pahOld[${e}] is not a file`};if(tA(t,{fs:n}))return{error:`pahNew[${t}] already exists`};let i=QA(t);bA(i,{fs:n})||wA(i,{fs:n});try{n.renameSync(e,t)}catch(e){return{error:e}}return{success:"done: "+t}}function tm(e,t,r={}){let n=Be(r,"fs");if(!bA(e,{fs:n}))return{error:`pahOld[${e}] is not a folder`};if(tA(t,{fs:n}))return{error:`pahNew[${t}] already exists`};let i=QA(t);bA(i,{fs:n})||wA(i,{fs:n});try{n.renameSync(e,t)}catch(e){return{error:e}}return{success:"done: "+t}}function rm(e,t,r,n={}){let i=Be(n,"withInfor");hn(i)||(i=!0);let o={del:[],add:[],same:[],diff:[]};if(!Fe(r))return console.log("invalid key"),i&&(o.infor={}),o;xe(e)||(e=[e]),xe(t)||(t=[t]),e=ha(e,e=>Ne(e,r)),t=ha(t,e=>Ne(e,r));let a=new Map(t.map(e=>[e[r],e]));for(let t of e){let e=a.get(t[r]);if(e){JSON.stringify(t)===JSON.stringify(e)?o.same.push(e):o.diff.push(e),a.delete(t[r])}else o.del.push(t)}if(o.add=Array.from(a.values()),i){let e={};for(let t of o.del)e[t[r]]="del";for(let t of o.add)e[t[r]]="add";for(let t of o.diff)e[t[r]]="diff";for(let t of o.same)e[t[r]]="same";o.infor=e}return o}async function nm(e,t=1,r={}){let n=Be(r,"path"),i=Be(r,"fs"),o=Be(r,"crypto"),a=Be(r,"type","");Fe(a)||(a="md5");let s=Be(r,"forFile",null);hn(s)||(s=!0);let l=Be(r,"forFolder",null);if(hn(l)||(l=!1),!bA(e,{fs:i}))throw new Error(`fd[${e}] is not a folder`);let c=PA(e,t,{path:n,fs:i});return c=await cc(c,async e=>{let t="";return s&&!e.isFolder&&(t=await jA(e.path,{fs:i,crypto:o,type:a})),l&&e.isFolder&&(t=await KA(e.path,{path:n,fs:i,crypto:o,type:a})),e.hash=t,e}),c}async function im(e,t,r={}){let n=Be(r,"path"),i=Be(r,"fs"),o=Be(r,"crypto"),a=Be(r,"type","");if(Fe(a)||(a="md5"),!bA(e,{fs:i}))throw new Error(`fdSrc[${e}] is not a folder`);let s=!1;if(!bA(t,{fs:i}))return await xA(e,t,{path:n,fs:i,useSync:!1}),s=!0,s;let l=n.sep,c=n.sep.length,u=(e,t)=>(e=Dr(e,e=>((e,t)=>{let r=e.isFolder?"folder":"file",n=e.path.replace(t,"");return fa(n,c)===l&&(n=ga(n,c)),n=n.replaceAll("\\","/"),{id:`${r}|${n}`,isFolder:e.isFolder,name:e.name,rpath:n,hash:e.hash}})(e,t)),e),f=await nm(e,null,{path:n,fs:i,crypto:o,type:a,forFile:!0,forFolder:!1});f=u(f,n.resolve(e));let d=await nm(t,null,{path:n,fs:i,crypto:o,type:a,forFile:!0,forFolder:!1});d=u(d,n.resolve(t));let g=rm(d,f,"id",{withInfor:!1});return s=gn(g.del)>0||gn(g.add)>0||gn(g.diff)>0,await cc(g.del,async e=>{if(e.isFolder){MA(n.resolve(t,e.rpath),{fs:i})}}),await cc(g.del,async e=>{if(!e.isFolder){NA(n.resolve(t,e.rpath),{fs:i})}}),await cc([...g.add,...g.diff],async r=>{if(!r.isFolder){let o=n.resolve(e,r.rpath),a=n.resolve(t,r.rpath);await EA(o,a,{path:n,fs:i,useSync:!1})}}),s}function om(e,t={}){let r=Be(t,"polling");hn(r)||(r=!1);let n=Be(t,"timeInterval");to(n)||(n=100),n=eo(n);let i=Be(t,"timeBinaryInterval");to(i)||(i=300),i=eo(i);let a=new f.EventEmitter,s=e,l=null,c=setInterval(()=>{null===l&&nA(s)&&(l=d.watch(s,{usePolling:r,interval:n,binaryInterval:i,awaitWriteFinish:!0}),l.on("all",(e,t,r)=>{t=o.resolve(t),a.emit("change",{type:e,fp:t,stats:r})}))},n);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 am(e,t,r={}){let n=null,i=Be(r,"fs"),o=QA(e);bA(o,{fs:i})||wA(o,{fs:i});try{i.writeFileSync(e,t,"utf8")}catch(e){n=e}return null!==n?{error:n}:{success:e}}const sm=[];for(let e=0;e<256;++e)sm.push((e+256).toString(16).slice(1));const lm=new Uint8Array(16);function cm(){return crypto.getRandomValues(lm)}const um={};function fm(e,t,r){let n;if(e)n=dm(e.random??e.rng?.()??cm(),e.msecs,e.seq,t,r);else{const e=Date.now(),i=cm();!function(e,t,r){e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=r[6]<<23|r[7]<<16|r[8]<<8|r[9],e.msecs=t):(e.seq=e.seq+1|0,0===e.seq&&e.msecs++)}(um,e,i),n=dm(i,um.msecs,um.seq,t,r)}return t??function(e,t=0){return(sm[e[t+0]]+sm[e[t+1]]+sm[e[t+2]]+sm[e[t+3]]+"-"+sm[e[t+4]]+sm[e[t+5]]+"-"+sm[e[t+6]]+sm[e[t+7]]+"-"+sm[e[t+8]]+sm[e[t+9]]+"-"+sm[e[t+10]]+sm[e[t+11]]+sm[e[t+12]]+sm[e[t+13]]+sm[e[t+14]]+sm[e[t+15]]).toLowerCase()}(n)}function dm(e,t,r,n,i=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(n){if(i<0||i+16>n.length)throw new RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`)}else n=new Uint8Array(16),i=0;return t??=Date.now(),r??=127*e[6]<<24|e[7]<<16|e[8]<<8|e[9],n[i++]=t/1099511627776&255,n[i++]=t/4294967296&255,n[i++]=t/16777216&255,n[i++]=t/65536&255,n[i++]=t/256&255,n[i++]=255&t,n[i++]=112|r>>>28&15,n[i++]=r>>>20&255,n[i++]=128|r>>>14&63,n[i++]=r>>>6&255,n[i++]=r<<2&255|3&e[10],n[i++]=e[11],n[i++]=e[12],n[i++]=e[13],n[i++]=e[14],n[i++]=e[15],n}function gm(e){return"[object Uint16Array]"===Object.prototype.toString.call(e)}function pm(e){if(!(y(e)||ps(e)||es(e)||gm(e)))return null;try{if(e.byteLength)return e.byteLength}catch(e){}try{if(e.length)return e.length}catch(e){}try{if(e.size)return e.size}catch(e){}return null}function hm(e,t=!0){if(!Or(e)){return{error:"no data"}}let r=null;try{r=function(e,t=!0){let r=t?"\ufeff":"";return Cr(e,e=>{let t=[];Cr(e,e=>{De(e)?(e=hc(e,"\r\n",""),e=hc(e,"\r",""),e=`"${e=hc(e,"\n","")}"`):e=hn(e)?e?"true":"false":ja(e),t.push(e)}),r+=Do(t,",")+"\r\n"}),r}(e,t)}catch(e){return{error:e}}return r}function Am(e){return hn(e)?e?"true":"false":ja(e)}function mm(e,t){let r=[];return e.SheetNames.forEach(function(n){let i=bn().utils.sheet_to_json(e.Sheets[n],{header:"A",defval:"",blankrows:!0});i=Dr(i,e=>dA(e)),t&&(i=Dr(i,e=>Dr(e,e=>Am(e)))),r.push({sheetname:n,data:i})}),r}function Im(e,t){let r=Be(t,"fmt","ltdt");if(!va(["ltdt","csv","array"],r))return{error:"opt.fmt is not one of 'ltdt', 'csv', 'array'"};let n,i=Be(t,"valueToString",!0);if(!hn(i))return{error:"opt.valueToString is not a boolean"};try{n=bn().read(e,{type:"buffer"})}catch(e){return console.log("error: ",e),{error:"can not read data from u8a"}}let o=null;try{"ltdt"===r?o=function(e,t){let r=[];return e.SheetNames.forEach(function(n){let i=bn().utils.sheet_to_json(e.Sheets[n]);t&&(i=Dr(i,e=>(Cr(e,(t,r)=>{e[r]=Am(t)}),e))),r.push({sheetname:n,data:i})}),r}(n,i):"array"===r?o=mm(n,i):"csv"===r&&(o=function(e,t){let r=mm(e,t);return Cr(r,(e,t)=>{r[t].data=hm(e.data,!1)}),r}(n,i))}catch(e){return console.log("error: ",e),{error:"can not convert data"}}return o}var ym;function vm(e){if(!q(e))return!1;var t=N(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!br(e)}function bm(e){return vm(e)}function wm(e){if(!Ce(e))return{error:"wb is not an effective object"};if(!xe(Be(e,"SheetNames")))return{error:"wb.SheetNames is not an array"};if(!Ee(Be(e,"Sheets")))return{error:"wb.Sheets is not an object"};let t=null;try{t=hs(bn().write(e,{bookType:"xlsx",type:"binary"}))}catch(e){return{error:e}}return t}
16
16
  /*!
17
17
  * hash-wasm (https://www.npmjs.com/package/hash-wasm)
18
18
  * (c) Dani Biro
@@ -20,5 +20,5 @@ var Es,Cs,xs=9e15,Ds=1e9,Fs="0123456789abcdef",Qs="2.302585092994045684017991454
20
20
  */
21
21
  function Bm(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;class Em{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 Bm(this,void 0,void 0,function*(){const t=yield this.lock();try{return yield Promise.resolve(e())}finally{t()}})}}const Cm="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,xm=null!==(ym=Cm.Buffer)&&void 0!==ym?ym:null,Dm=Cm.TextEncoder?new Cm.TextEncoder:null;function Fm(e,t){return(15&e)+(e>>6|e>>3&8)<<4|(15&t)+(t>>6|t>>3&8)}const Qm="a".charCodeAt(0)-10,Sm="0".charCodeAt(0);function km(e,t,r){let n=0;for(let i=0;i<r;i++){let r=t[i]>>>4;e[n++]=r>9?r+Qm:r+Sm,r=15&t[i],e[n++]=r>9?r+Qm:r+Sm}return String.fromCharCode.apply(null,e)}const Nm=null!==xm?e=>{if("string"==typeof e){const t=xm.from(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.length)}if(xm.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 Dm.encode(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Invalid data type!")},qm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mm=new Uint8Array(256);for(let e=0;e<64;e++)Mm[qm.charCodeAt(e)]=e;function Hm(e){const t=function(e){let t=Math.floor(.75*e.length);const r=e.length;return"="===e[r-1]&&(t-=1,"="===e[r-2]&&(t-=1)),t}(e),r=e.length,n=new Uint8Array(t);let i=0;for(let t=0;t<r;t+=4){const r=Mm[e.charCodeAt(t)],o=Mm[e.charCodeAt(t+1)],a=Mm[e.charCodeAt(t+2)],s=Mm[e.charCodeAt(t+3)];n[i]=r<<2|o>>4,i+=1,n[i]=(15&o)<<4|a>>2,i+=1,n[i]=(3&a)<<6|63&s,i+=1}return n}const Lm=16384,Um=new Em,Rm=new Map;function Om(e,t){return Bm(this,void 0,void 0,function*(){let r=null,n=null,i=!1;if("undefined"==typeof WebAssembly)throw new Error("WebAssembly is not supported in this environment!");const o=()=>new DataView(r.exports.memory.buffer).getUint32(r.exports.STATE_SIZE,!0),a=Um.dispatch(()=>Bm(this,void 0,void 0,function*(){if(!Rm.has(e.name)){const t=Hm(e.data),r=WebAssembly.compile(t);Rm.set(e.name,r)}const t=yield Rm.get(e.name);r=yield WebAssembly.instantiate(t,{})})),s=(e=null)=>{i=!0,r.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+Lm);t+=i.length,n.set(i),r.exports.Hash_Update(i.length)}})(Nm(e))},c=new Uint8Array(2*t),u=(e,o=null)=>{if(!i)throw new Error("digest() called before init()");return i=!1,r.exports.Hash_Final(o),"binary"===e?n.slice(0,t):km(c,n,t)},f=e=>"string"==typeof e?e.length<4096:e.byteLength<Lm;let d=f;switch(e.name){case"argon2":case"scrypt":d=()=>!0;break;case"blake2b":case"blake2s":d=(e,t)=>t<=512&&f(e);break;case"blake3":d=(e,t)=>0===t&&f(e);break;case"xxhash64":case"xxhash3":case"xxhash128":case"crc64":d=()=>!1}return yield(()=>Bm(this,void 0,void 0,function*(){r||(yield a);const e=r.exports.Hash_GetBuffer(),t=r.exports.memory.buffer;n=new Uint8Array(t,e,Lm)}))(),{getMemory:()=>n,writeMemory:(e,t=0)=>{n.set(e,t)},getExports:()=>r.exports,setMemorySize:e=>{r.exports.Hash_SetMemorySize(e);const t=r.exports.Hash_GetBuffer(),i=r.exports.memory.buffer;n=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=r.exports.Hash_GetState(),n=o(),a=r.exports.memory.buffer,s=new Uint8Array(a,t,n),l=new Uint8Array(4+n);return function(e,t){const r=t.length>>1;for(let n=0;n<r;n++){const r=n<<1;e[n]=Fm(t.charCodeAt(r),t.charCodeAt(r+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 n=r.exports.Hash_GetState(),a=o(),s=4+a,l=r.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 r=0;r<t.length;r++){const n=r<<1;if(t[r]!==Fm(e.charCodeAt(n),e.charCodeAt(n+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,n,a).set(c),i=!0},calculate:(e,i=null,o=null)=>{if(!d(e,i))return s(i),l(e),u("hex",o);const a=Nm(e);return n.set(a),r.exports.Hash_Calculate(a.length,i,o),km(c,n,t)},hashLength:t}})}new Em,new Em,new Em,new Em,new Em,new Em,new Em;var Tm={name:"md5",data:"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",hash:"e6508e4b"};function Ym(){return Om(Tm,16).then(e=>{e.init();const t={init:()=>(e.init(),t),update:r=>(e.update(r),t),digest:t=>e.digest(t),save:()=>e.save(),load:r=>(e.load(r),t),blockSize:64,digestSize:16};return t})}new Em;var jm={name:"sha1",data:"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",hash:"6b530c24"};function Gm(){return Om(jm,20).then(e=>{e.init();const t={init:()=>(e.init(),t),update:r=>(e.update(r),t),digest:t=>e.digest(t),save:()=>e.save(),load:r=>(e.load(r),t),blockSize:64,digestSize:20};return t})}new Em,new Em,new Em;var Jm={name:"sha256",data:"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c2pBx6KerX1qIhkgASADcyACcSABIANxcyABQR53IAFBE3dzIAFBCndzaiAaaiICaiIJIBMgEnNxIBJzaiAJQRp3IAlBFXdzIAlBB3dzakHRxqk2aiIaIAIgAXMgA3EgAiABcXMgAkEedyACQRN3cyACQQp3c2ogGGoiA2oiESAJIBNzcSATc2ogEUEadyARQRV3cyARQQd3c2pB59KkoQFqIhggAyACcyABcSADIAJxcyADQR53IANBE3dzIANBCndzaiAUaiIBaiISIBEgCXNxIAlzaiASQRp3IBJBFXdzIBJBB3dzakGFldy9AmoiFCABIANzIAJxIAEgA3FzIAFBHncgAUETd3MgAUEKd3NqIBdqIgJqIhMgI2ogJiASaiAiIBFqICUgCWogEyASIBFzcSARc2ogE0EadyATQRV3cyATQQd3c2pBuMLs8AJqIhcgAiABcyADcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAZaiIDaiIJIBMgEnNxIBJzaiAJQRp3IAlBFXdzIAlBB3dzakH827HpBGoiGSADIAJzIAFxIAMgAnFzIANBHncgA0ETd3MgA0EKd3NqIBpqIgFqIhEgCSATc3EgE3NqIBFBGncgEUEVd3MgEUEHd3NqQZOa4JkFaiIaIAEgA3MgAnEgASADcXMgAUEedyABQRN3cyABQQp3c2ogGGoiAmoiEiARIAlzcSAJc2ogEkEadyASQRV3cyASQQd3c2pB1OapqAZqIhggAiABcyADcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAUaiIDaiITaiAoIBJqICQgEWogJyAJaiATIBIgEXNxIBFzaiATQRp3IBNBFXdzIBNBB3dzakG7laizB2oiFCADIAJzIAFxIAMgAnFzIANBHncgA0ETd3MgA0EKd3NqIBdqIgFqIgkgEyASc3EgEnNqIAlBGncgCUEVd3MgCUEHd3NqQa6Si454aiIXIAEgA3MgAnEgASADcXMgAUEedyABQRN3cyABQQp3c2ogGWoiAmoiESAJIBNzcSATc2ogEUEadyARQRV3cyARQQd3c2pBhdnIk3lqIhkgAiABcyADcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAaaiIDaiISIBEgCXNxIAlzaiASQRp3IBJBFXdzIBJBB3dzakGh0f+VemoiGiADIAJz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",hash:"8c18dd94"};function zm(){return Om(Jm,32).then(e=>{e.init(256);const t={init:()=>(e.init(256),t),update:r=>(e.update(r),t),digest:t=>e.digest(t),save:()=>e.save(),load:r=>(e.load(r),t),blockSize:64,digestSize:32};return t})}new Em,new Em;var Vm={name:"sha512",data:"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",hash:"f2e40eb1"};function Pm(){return Om(Vm,48).then(e=>{e.init(384);const t={init:()=>(e.init(384),t),update:r=>(e.update(r),t),digest:t=>e.digest(t),save:()=>e.save(),load:r=>(e.load(r),t),blockSize:128,digestSize:48};return t})}function Xm(){return Om(Vm,64).then(e=>{e.init(512);const t={init:()=>(e.init(512),t),update:r=>(e.update(r),t),digest:t=>e.digest(t),save:()=>e.save(),load:r=>(e.load(r),t),blockSize:128,digestSize:64};return t})}function _m(e){return"[object File]"===Object.prototype.toString.call(e)}async function Wm(e,t={}){if(!ps(e)&&!_m(e))return console.log("inp",e),Promise.reject("inp is not a Blob or File");let r=Be(t,"type","");Fe(r)||(r="sha512");let n=Be(t,"chunkSize");ke(n)||(n=67108864),n=Hn(n);let i={MD5:Ym,"SHA-1":Gm,"SHA-256":zm,"SHA-384":Pm,"SHA-512":Xm,md5:Ym,sha1:Gm,sha256:zm,sha384:Pm,sha512:Xm};if(!Ne(i,r))return Promise.reject(`type[${r}] must be one of [ 'md5', 'sha1', 'sha256', 'sha384', 'sha512' ]`);let o=Be(i,r),a=await o(),s=0;for(;s<e.size;){let t=e.slice(s,s+n),r=await t.arrayBuffer();a.update(new Uint8Array(r)),s+=n}return a.digest()}async function Km(e,t={}){if(!ps(e)&&!_m(e))return console.log("inp",e),Promise.reject("inp is not a Blob or File");let r=Be(t,"chunkSize");ke(r)||(r=67108864),r=Hn(r);let{create64:n}=await JA(),i=n(),o=0;for(;o<e.size;){let t=e.slice(o,o+r),n=await t.arrayBuffer();i.update(new Uint8Array(n)),o+=r}return i.digest().toString(16).padStart(16,"0")}new Em,new Em,new Em,new Em,new Em,new Em,new Em,new Em,new Em;var $m=4294967295,Zm=Math.min;function eI(e,t){if((e=Mn(e))<1||e>9007199254740991)return[];var r=$m,n=Zm(e,$m);t=Er(t),e-=$m;for(var i=Le(n,t);++r<e;)t(r);return i}function tI(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 rI(e,t="days"){if(!Fe(e))return null;if(!Fe(t))return null;let n=function(e,t){let n="";return"years"===t?n="-01-01T00:00:00":"months"===t?n="-01T00:00:00":"days"===t?n="T00:00:00":"hours"===t?n=":00:00":"minutes"===t&&(n=":00"),r(e+n,"YYYY-MM-DDTHH:mm:ss")}(e,t),i=tI(t);return e===n.format(i)?n:null}function nI(){let e=vn(),t=()=>Number(e.process.hrtime.bigint())/1e6,r=()=>e.performance.now(),n=null;return n=yn()?r:t,n}function iI(e){if(!Cg(e))return"";return r(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH:mm")}function oI(e=null){let t,r=function(){let e=vn();return p.UAParser||e.UAParser}();t=De(e)?new r(e):new r;let n=t.getResult();return{browsername:n.browser.name,browserversion:n.browser.version,engineinfor:n.engine.name+n.engine.version,platform:n.os.name+n.os.version,devicetype:Be(n.device,"type",""),cpuarchitecture:Be(n.cpu,"architecture","")}}let aI="in x-range",sI="out of x-range",lI="order list",cI="reverse order list";function uI(e,t){let r=null,n=null;return r=e[0].x,n=e[gn(e)-1].x,t<r?{err:sI,msg:`x[${t}] less than lower limit[${r}]`,data:{ps:e,x:t,xmin:r,xmax:n}}:t>n?{err:sI,msg:`x[${t}] greater than upper limit[${n}]`,data:{ps:e,x:t,xmin:r,xmax:n}}:aI}function fI(e){if(!Ln(e))return!1;return eo(e)<=0}function dI(e){if(!ke(e))return!1;return Hn(e)<=0}function gI(e){if(!ke(e))return!1;return Hn(e)>=0}function pI(e){if(!Fe(e))return!1;return!(null===e.match(/^.*[A-Z]+.*$/))}function hI(e){if(!Fe(e))return!1;return!(null===e.match(/^.*[a-zA-Z]+.*$/))}function AI(e){if(!Fe(e))return!1;return!(null===e.match(/^.*[a-z]+.*$/))}function mI(e){if(!Fe(e))return!1;return!(null===e.match(/^.*[0-9]+.*$/))}function II(e){if(!Fe(e))return!1;return!(null===e.match(/^.*\s+.*$/))}function yI(e){if(!Fe(e))return!1;
22
22
  //!"#$%&'()*+,-./ :;<=>?@ [\]^_` {|}~
23
- return/[!-/:-@[-`{-~]/.test(e)}function vI(e){if(!Fe(e))return!1;let t="YYYY-MM-DDTHH:mm:ss.SSS";return e===r(e,t).format(t)}function bI(e){let t;return t=da(e,1),"Z"===t?`${e=Ja(e,1)}+00:00`:e}let wI={checkTZ:function(e){let t;return t=da(e,1),"Z"===t||(t=da(e,6),!!/[+|-]\d\d:\d\d/.test(t))},delTZ:function(e){let t;return t=da(e,1),Ja(e,"Z"===t?1:6)},normTZ:bI,sepTZ:function(e){let t=bI(e);return{t:Ja(t,6),tz:da(t,6)}}};function BI(e){if(!Fe(e))return!1;if(!wI.checkTZ(e))return!1;let t=wI.delTZ(e),n="YYYY-MM-DDTHH:mm:ss.SSS";return t===r(t,n).format(n)}function EI(e){if(!Fe(e))return!1;if(!wI.checkTZ(e))return!1;let t=wI.delTZ(e),n="YYYY-MM-DDTHH:mm:ss";return t===r(t,n).format(n)}let CI=["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 xI(e,t){return new oc(e).eq(t)}function DI(e,t){if(!Or(e))return[];if(!Or(t))return[];if(!Or(t[0]))return[];return Dr(t,function(t){let r=ro(e,t);return Cr(r,function(e,t){void 0===e&&(r[t]="")}),r})}var FI=Oa(function(e){return Pr(Sr(e,1,Ag,!0))});var QI=Oa(function(e,t){var r=Sa(t);return Ag(r)&&(r=void 0),Ag(e)?function(e,t,r,n){var i=-1,o=Gr,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;r&&(t=he(t,Ke(r))),n?(o=Jr,a=!1):t.length>=200&&(o=vt,a=!1,t=new It(t));e:for(;++i<s;){var u=e[i],f=null==r?u:r(u);if(u=n||0!==u?u:0,a&&f==f){for(var d=c;d--;)if(t[d]===f)continue e;l.push(u)}else o(t,f,n)||l.push(u)}return l}(e,Sr(t,1,Ag,!0),dr(r)):[]}),SI=QI;function kI(e){if(!Fe(e))return"";let t=si.parse(e);return Vn.stringify(t)}function NI(e,t,r=!1){if(!Fe(e))return"";if(!Fe(t))return"";if(!hn(r))return"";let n=oi.encrypt(e,t),i="";if(r)i=n.toString();else{let e=n.toString();i=Vn.parse(e).toString(ci)}return i}var qI={exports:{}};!function(e){var t;e.exports=(t=jn(),function(){if("function"==typeof ArrayBuffer){var e=t.lib.WordArray,r=e.init,n=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,n=[],i=0;i<t;i++)n[i>>>2]|=e[i]<<24-i%4*8;r.call(this,n,t)}else r.apply(this,arguments)};n.prototype=e}}(),t.lib.WordArray)}(qI);var MI=Rn(qI.exports);function HI(e){if(!es(e))return"";return MI.create(e).toString(Vn)}function LI(e){return gm(e)?new Uint8Array(e):new Uint8Array}function UI(e){return gm(e)?HI(LI(e)):""}let RI="[Uint8Array]::";let OI="[Uint16Array]::";let TI={tagU8A:RI,u8arr2b64:function(e){return es(e)?RI+HI(e):e},b642u8arr:function(e){return De(e)&&fa(e,14)===RI?Za(e=ga(e,14)):e},tagU16A:OI,u16arr2b64:function(e){return gm(e)?OI+UI(e):e},b642u16arr:function(e){return De(e)&&fa(e,15)===OI?rs(e=ga(e,15)):e}};function YI(e){if(!Ee(e))return{results:"",binarys:[]};if(Hr(e))return{results:"",binarys:[]};let t="",r=[];try{let n=-1;t=JSON.stringify(e,function(e,t){if(es(t)){n+=1;let e=`[Uint8Array]::${n}`;return r.push(t),e}if(gm(t)){n+=1;let e=`[Uint16Array]::${n}`;return r.push(t),e}if(y(t)){n+=1;let e=`[ArrayBuffer]::${n}`;return r.push(t),e}return vm(t)&&(t=t.toString()),t})}catch(e){}return{results:t,binarys:r}}function jI(e){if(!Fe(e))return new Uint8Array;let t;try{t=Za(kI(e))}catch(e){return new Uint8Array}return t}function GI(e,t){if(!Ce(e))return{};if(!ba(t))throw new Error("fun is not a function");let r=Dr(e,(e,r)=>({k:r,v:e,t:t(e,r)}));r=Ta(r,"t");let n={};return Cr(r,e=>{n[e.k]=e.v}),n}function JI(e,t=()=>{}){if(!ba(e))return null;function r(e,t){let r;return Mr(e)||qr(e)?t:(r=Be(e,"data",null),r||e)}return ba(t)||(t=()=>{}),function(){let n,i=is(),o=t({mode:"before",data:arguments});return(Mr(o)||qr(o))&&(o=arguments),e(...o).then(e=>{n=t({mode:"afterThen",data:e}),e=r(n,e),i.resolve(e)}).catch(e=>{n=t({mode:"afterCatch",data:e}),e=r(n,e),i.reject(e)}),i}}function zI(e){if(!De(e))return null;if(""===e)return 0;let t=e.split("").reduce((e,t)=>t.charCodeAt(0)+(e<<6)+(e<<16)-e,0);return t}let VI=0;function PI(e="start1",t=!1){void 0===e?e=(new Date).getTime():"start1"===e&&(VI++,e=VI);let r=624,n=397,i=2147483648,o=2147483647,a=new Array(r),s=625,l=e=>{for(ya(e)?a[0]=e>>>0:(e=ja(e),a[0]=zI(e)),s=1;s<r;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>=r){let c;for(625===s&&l(5489),c=0;c<227;c++)e=a[c]&i|a[c+1]&o,a[c]=a[c+n]^e>>>1^t[1&e];for(;c<623;c++)e=a[c]&i|a[c+1]&o,a[c]=a[c+(n-r)]^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 XI=PI((new Date).getTime(),!0);function _I(){return XI()}function WI(e,t,r){return e==e&&(void 0!==r&&(e=e<=r?e:r),void 0!==t&&(e=e>=t?e:t)),e}var KI=Math.floor,$I=Math.random;function ZI(e,t){return e+KI($I()*(t-e+1))}function ey(e,t){var r=-1,n=e.length,i=n-1;for(t=void 0===t?n:t;++r<t;){var o=ZI(r,i),a=e[o];e[o]=e[r],e[r]=a}return e.length=t,e}function ty(e,t){return ey(kr(e),WI(t,0,e.length))}function ry(e,t){var r=dA(e);return ey(r,WI(t,0,r.length))}var ny=Math.floor;function iy(e,t,r){return t=(r?gr(e,t,r):void 0===t)?1:Mn(t),function(e,t){var r="";if(!e||t<1||t>9007199254740991)return r;do{t%2&&(r+=e),(t=ny(t/2))&&(e+=e)}while(t);return r}(ye(e),t)}var oy=$i("floor");var ay=Rn(Xn());var sy,ly={exports:{}},cy={exports:{}};!function(e){var t;e.exports=(t=jn(),sy||(sy=1,function(e){var t,r,n,i,o,a,s;e.exports=(n=(r=s=jn()).lib,i=n.Base,o=n.WordArray,(a=r.x64={}).Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=i.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n<t;n++){var i=e[n];r.push(i.high),r.push(i.low)}return o.create(r,this.sigBytes)},clone:function(){for(var e=i.clone.call(this),t=e.words=this.words.slice(0),r=t.length,n=0;n<r;n++)t[n]=t[n].clone();return e}}),s)}(cy)),function(){var e=t,r=e.lib.Hasher,n=e.x64,i=n.Word,o=n.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=r.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 r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=r[5],f=r[6],d=r[7],g=n.high,p=n.low,h=i.high,A=i.low,m=o.high,I=o.low,y=a.high,v=a.low,b=s.high,w=s.low,B=u.high,E=u.low,C=f.high,x=f.low,D=d.high,F=d.low,Q=g,S=p,k=h,N=A,q=m,M=I,H=y,L=v,U=b,R=w,O=B,T=E,Y=C,j=x,G=D,J=F,z=0;z<80;z++){var V,P,X=c[z];if(z<16)P=X.high=0|e[t+2*z],V=X.low=0|e[t+2*z+1];else{var _=c[z-15],W=_.high,K=_.low,$=(W>>>1|K<<31)^(W>>>8|K<<24)^W>>>7,Z=(K>>>1|W<<31)^(K>>>8|W<<24)^(K>>>7|W<<25),ee=c[z-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ie=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=c[z-7],ae=oe.high,se=oe.low,le=c[z-16],ce=le.high,ue=le.low;P=(P=(P=$+ae+((V=Z+se)>>>0<Z>>>0?1:0))+ne+((V+=ie)>>>0<ie>>>0?1:0))+ce+((V+=ue)>>>0<ue>>>0?1:0),X.high=P,X.low=V}var fe,de=U&O^~U&Y,ge=R&T^~R&j,pe=Q&k^Q&q^k&q,he=S&N^S&M^N&M,Ae=(Q>>>28|S<<4)^(Q<<30|S>>>2)^(Q<<25|S>>>7),me=(S>>>28|Q<<4)^(S<<30|Q>>>2)^(S<<25|Q>>>7),Ie=(U>>>14|R<<18)^(U>>>18|R<<14)^(U<<23|R>>>9),ye=(R>>>14|U<<18)^(R>>>18|U<<14)^(R<<23|U>>>9),ve=l[z],be=ve.high,we=ve.low,Be=G+Ie+((fe=J+ye)>>>0<J>>>0?1:0),Ee=me+he;G=Y,J=j,Y=O,j=T,O=U,T=R,U=H+(Be=(Be=(Be=Be+de+((fe+=ge)>>>0<ge>>>0?1:0))+be+((fe+=we)>>>0<we>>>0?1:0))+P+((fe+=V)>>>0<V>>>0?1:0))+((R=L+fe|0)>>>0<L>>>0?1:0)|0,H=q,L=M,q=k,M=N,k=Q,N=S,Q=Be+(Ae+pe+(Ee>>>0<me>>>0?1:0))+((S=fe+Ee|0)>>>0<fe>>>0?1:0)|0}p=n.low=p+S,n.high=g+Q+(p>>>0<S>>>0?1:0),A=i.low=A+N,i.high=h+k+(A>>>0<N>>>0?1:0),I=o.low=I+M,o.high=m+q+(I>>>0<M>>>0?1:0),v=a.low=v+L,a.high=y+H+(v>>>0<L>>>0?1:0),w=s.low=w+R,s.high=b+U+(w>>>0<R>>>0?1:0),E=u.low=E+T,u.high=B+O+(E>>>0<T>>>0?1:0),x=f.low=x+j,f.high=C+Y+(x>>>0<j>>>0?1:0),F=d.low=F+J,d.high=D+G+(F>>>0<J>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=r._createHelper(u),e.HmacSHA512=r._createHmacHelper(u)}(),t.SHA512)}(ly);var uy=Rn(ly.exports);function fy(e,t){return Fe(e)&&Fe(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 r=new Map;for(let t=0;t<e.length-1;t++){const n=e.substring(t,t+2),i=r.has(n)?r.get(n)+1:1;r.set(n,i)}let n=0;for(let e=0;e<t.length-1;e++){const i=t.substring(e,e+2),o=r.has(i)?r.get(i):0;o>0&&(r.set(i,o-1),n++)}return 2*n/(e.length+t.length-2)}(e,t):0}function dy(e){return Array.isArray?Array.isArray(e):"[object Array]"===vy(e)}function gy(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 py(e){return"string"==typeof e}function hy(e){return"number"==typeof e}function Ay(e){return!0===e||!1===e||function(e){return my(e)&&null!==e}(e)&&"[object Boolean]"==vy(e)}function my(e){return"object"==typeof e}function Iy(e){return null!=e}function yy(e){return!e.trim().length}function vy(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const by="Invalid doc index: must be a non-negative integer within the bounds of the docs array",wy=Object.prototype.hasOwnProperty;var By=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{const r=Ey(e);this._keys.push(r),this._keyMap[r.id]=r,t+=r.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 Ey(e){let t=null,r=null,n=null,i=1,o=null;if(py(e)||dy(e))n=e,t=Cy(e),r=xy(e);else{if(!wy.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const a=e.name;if(n=a,wy.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`)(xy(a)));t=Cy(a),r=xy(a),o=e.getFn??null}return{path:t,id:r,weight:i,src:n,getFn:o}}function Cy(e){return dy(e)?e:e.split(".")}function xy(e){return dy(e)?e.join("."):e}const Dy={useExtendedSearch:!1,useTokenSearch:!1,tokenize:void 0,tokenMatch:"any",getFn:function(e,t){const r=[];let n=!1;const i=(e,t,o,a)=>{if(Iy(e))if(t[o]){const s=e[t[o]];if(!Iy(s))return;if(o===t.length-1&&(py(s)||hy(s)||Ay(s)||"bigint"==typeof s))r.push(void 0!==a?{v:gy(s),i:a}:gy(s));else if(dy(s)){n=!0;for(let e=0,r=s.length;e<r;e+=1)i(s[e],t,o+1,e)}else t.length&&i(s,t,o+1,a)}else r.push(void 0!==a?{v:e,i:a}:e)};return i(e,py(t)?t.split("."):t,0),n?r:r[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},Fy=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,...Dy});function Qy(e){return e>=9&&e<=13||32===e||160===e}var Sy=class{constructor({getFn:e=Fy.getFn,fieldNormWeight:t=Fy.fieldNormWeight}={}){this.norm=function(e=1,t=3){const r=new Map,n=Math.pow(10,t);return{get(t){let i=0,o=!1;for(let e=0;e<t.length;e++)Qy(t.charCodeAt(e))?o=!1:o||(i++,o=!0);if(0===i&&(i=1),r.has(i))return r.get(i);const a=Math.round(n/Math.pow(i,.5*e))/n;return r.set(i,a),a},clear(){r.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(py(this.docs[0]))for(let r=0;r<e;r++){const e=this._createStringRecord(this.docs[r],r);e&&(this.records[t++]=e)}else for(let r=0;r<e;r++)this.records[t++]=this._createObjectRecord(this.docs[r],r);this.records.length=t,this.norm.clear()}add(e,t){if(!Number.isInteger(t)||t<0)throw new Error(by);if(py(e)){const r=this._createStringRecord(e,t);return r&&this.records.push(r),r}const r=this._createObjectRecord(e,t);return this.records.push(r),r}removeAt(e){if(!Number.isInteger(e)||e<0)throw new Error(by);for(let t=0,r=this.records.length;t<r;t+=1)if(this.records[t].i===e){this.records.splice(t,1);break}for(let t=0,r=this.records.length;t<r;t+=1)this.records[t].i>e&&(this.records[t].i-=1)}removeAll(e){const t=new Set;for(const r of e)Number.isInteger(r)&&r>=0&&t.add(r);if(0===t.size)return;this.records=this.records.filter(e=>!t.has(e.i));const r=Array.from(t).sort((e,t)=>e-t);for(const e of this.records){let t=0,n=r.length;for(;t<n;){const i=t+n>>>1;r[i]<e.i?t=i+1:n=i}e.i-=t}}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_createStringRecord(e,t){return!Iy(e)||yy(e)?null:{v:e,i:t,n:this.norm.get(e)}}_createObjectRecord(e,t){const r={i:t,$:{}};for(let t=0,n=this.keys.length;t<n;t++){const n=this.keys[t],i=n.getFn?n.getFn(e):this.getFn(e,n.path);if(Iy(i))if(dy(i)){const e=[];for(let t=0,r=i.length;t<r;t+=1){const r=i[t];if(Iy(r))if(py(r)){if(!yy(r)){const n={v:r,i:t,n:this.norm.get(r)};e.push(n)}}else if(Iy(r.v)){const t=py(r.v)?r.v:gy(r.v);if(!yy(t)){const n={v:t,i:r.i,n:this.norm.get(t)};e.push(n)}}}r.$[t]=e}else if(py(i)&&!yy(i)){const e={v:i,n:this.norm.get(i)};r.$[t]=e}}return r}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}};function ky(e,t,{getFn:r=Fy.getFn,fieldNormWeight:n=Fy.fieldNormWeight}={}){const i=new Sy({getFn:r,fieldNormWeight:n});return i.setKeys(e.map(Ey)),i.setSources(t),i.create(),i}function Ny(e,t,r,{location:n=Fy.location,distance:i=Fy.distance,threshold:o=Fy.threshold,findAllMatches:a=Fy.findAllMatches,minMatchCharLength:s=Fy.minMatchCharLength,includeMatches:l=Fy.includeMatches,ignoreLocation:c=Fy.ignoreLocation}={}){if(t.length>32)throw new Error((e=>`Pattern length exceeds max of ${e}.`)(32));const u=t.length,f=e.length,d=Math.max(0,Math.min(n,f));let g=o,p=d;const h=(e,t)=>{const r=e/u;if(c)return r;const n=Math.abs(d-t);return i?r+n/i:n?1:r},A=s>1||l,m=A?Array(f):[];let I;for(;(I=e.indexOf(t,p))>-1;){const e=h(0,I);if(g=Math.min(e,g),p=I+u,A){let e=0;for(;e<u;)m[I+e]=1,e+=1}}p=-1;let y=[],v=1,b=0,w=u+f;const B=1<<u-1;for(let t=0;t<u;t+=1){let n=0,i=w;for(;n<i;)h(t,d+i)<=g?n=i:w=i,i=Math.floor((w-n)/2+n);w=i;let o=Math.max(1,d-i+1);const s=a?f:Math.min(d+i,f)+u,l=Array(s+2);l[s+1]=(1<<t)-1;for(let n=s;n>=o;n-=1){const i=n-1,a=r[e[i]];if(l[n]=(l[n+1]<<1|1)&a,t&&(l[n]|=(y[n+1]|y[n])<<1|1|y[n+1]),l[n]&B&&(v=h(t,i),v<=g)){if(g=v,p=i,b=t,p<=d)break;o=Math.max(1,2*d-p)}}if(h(t+1,d)>g)break;y=l}if(A&&p>=0){const t=Math.min(f-1,p+u-1+b);for(let n=p;n<=t;n+=1)r[e[n]]&&(m[n]=1)}const E={isMatch:p>=0,score:Math.max(.001,v)};if(A){const e=function(e=[],t=Fy.minMatchCharLength){const r=[];let n=-1,i=-1,o=0;for(let a=e.length;o<a;o+=1){const a=e[o];a&&-1===n?n=o:a||-1===n||(i=o-1,i-n+1>=t&&r.push([n,i]),n=-1)}return e[o-1]&&o-n>=t&&r.push([n,o-1]),r}(m,s);e.length?l&&(E.indices=e):E.isMatch=!1}return E}function qy(e){const t={};for(let r=0,n=e.length;r<n;r+=1){const i=e.charAt(r);t[i]=(t[i]||0)|1<<n-r-1}return t}function My(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 r=1,n=e.length;r<n;r+=1){const n=t[t.length-1],i=e[r];i[0]<=n[1]+1?n[1]=Math.max(n[1],i[1]):t.push(i)}return t}const Hy={"ł":"l","Ł":"L","đ":"d","Đ":"D","ø":"o","Ø":"O","ħ":"h","Ħ":"H","ŧ":"t","Ŧ":"T","ı":"i","ß":"ss"},Ly=new RegExp("["+Object.keys(Hy).join("")+"]","g"),Uy="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(Ly,e=>Hy[e]):e=>e;var Ry=class{constructor(e,{location:t=Fy.location,threshold:r=Fy.threshold,distance:n=Fy.distance,includeMatches:i=Fy.includeMatches,findAllMatches:o=Fy.findAllMatches,minMatchCharLength:a=Fy.minMatchCharLength,isCaseSensitive:s=Fy.isCaseSensitive,ignoreDiacritics:l=Fy.ignoreDiacritics,ignoreLocation:c=Fy.ignoreLocation}={}){if(this.options={location:t,threshold:r,distance:n,includeMatches:i,findAllMatches:o,minMatchCharLength:a,isCaseSensitive:s,ignoreDiacritics:l,ignoreLocation:c},e=s?e:e.toLowerCase(),e=l?Uy(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const u=(e,t)=>{this.chunks.push({pattern:e,alphabet:qy(e),startIndex:t})},f=this.pattern.length;if(f>32){let e=0;const t=f%32,r=f-t;for(;e<r;)u(this.pattern.substr(e,32),e),e+=32;if(t){const e=f-32;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,ignoreDiacritics:r,includeMatches:n}=this.options;if(e=t?e:e.toLowerCase(),e=r?Uy(e):e,this.pattern===e){if(e.length<this.options.minMatchCharLength)return{isMatch:!1,score:1};const t={isMatch:!0,score:0};return n&&(t.indices=[[0,e.length-1]]),t}const{location:i,distance:o,threshold:a,findAllMatches:s,minMatchCharLength:l,ignoreLocation:c}=this.options,u=[];let f=0,d=!1;this.chunks.forEach(({pattern:t,alphabet:r,startIndex:g})=>{const{isMatch:p,score:h,indices:A}=Ny(e,t,r,{location:i+g,distance:o,threshold:a,findAllMatches:s,minMatchCharLength:l,includeMatches:n,ignoreLocation:c});p&&(d=!0),f+=h,p&&A&&u.push(...A)});const g={isMatch:d,score:d?f/this.chunks.length:1};return d&&n&&(g.indices=My(u)),g}};const Oy=new Set(["fuzzy","include"]);function Ty(e){return e.startsWith("inverse")}const Yy=[{type:"exact",multiRegex:/^="(.*)"$/,singleRegex:/^=(.*)$/,create:e=>({type:"exact",search(t){const r=t===e;return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}})},{type:"include",multiRegex:/^'"(.*)"$/,singleRegex:/^'(.*)$/,create:e=>({type:"include",search(t){let r,n=0;const i=[],o=e.length;for(;(r=t.indexOf(e,n))>-1;)n=r+o,i.push([r,n-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 r=t.startsWith(e);return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}})},{type:"inverse-prefix-exact",multiRegex:/^!\^"(.*)"$/,singleRegex:/^!\^(.*)$/,create:e=>({type:"inverse-prefix-exact",search(t){const r=!t.startsWith(e);return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}})},{type:"inverse-suffix-exact",multiRegex:/^!"(.*)"\$$/,singleRegex:/^!(.*)\$$/,create:e=>({type:"inverse-suffix-exact",search(t){const r=!t.endsWith(e);return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}})},{type:"suffix-exact",multiRegex:/^"(.*)"\$$/,singleRegex:/^(.*)\$$/,create:e=>({type:"suffix-exact",search(t){const r=t.endsWith(e);return{isMatch:r,score:r?0:1,indices:[t.length-e.length,t.length-1]}}})},{type:"inverse-exact",multiRegex:/^!"(.*)"$/,singleRegex:/^!(.*)$/,create:e=>({type:"inverse-exact",search(t){const r=-1===t.indexOf(e);return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}})},{type:"fuzzy",multiRegex:/^"(.*)"$/,singleRegex:/^(.*)$/,create:(e,t={})=>{const r=new Ry(e,{location:t.location??Fy.location,threshold:t.threshold??Fy.threshold,distance:t.distance??Fy.distance,includeMatches:t.includeMatches??Fy.includeMatches,findAllMatches:t.findAllMatches??Fy.findAllMatches,minMatchCharLength:t.minMatchCharLength??Fy.minMatchCharLength,isCaseSensitive:t.isCaseSensitive??Fy.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics??Fy.ignoreDiacritics,ignoreLocation:t.ignoreLocation??Fy.ignoreLocation});return{type:"fuzzy",search:e=>r.searchIn(e)}}}],jy=Yy.length;function Gy(e,t){const r=e.match(t);return r?r[1]:null}const Jy=[];function zy(...e){Jy.push(...e)}function Vy(e,t){for(let r=0,n=Jy.length;r<n;r+=1){const n=Jy[r];if(n.condition(e,t))return new n(e,t)}return new Ry(e,t)}const Py="$and",Xy="$or",_y="$path",Wy="$val",Ky=e=>!(!e[Py]&&!e[Xy]),$y=e=>({[Py]:Object.keys(e).map(t=>({[t]:e[t]}))});function Zy(e,t,{auto:r=!0}={}){const n=e=>{if(py(e)){const n={keyId:null,pattern:e};return r&&(n.searcher=Vy(e,t)),n}const i=Object.keys(e),o=(e=>!!e[_y])(e);if(!o&&i.length>1&&!Ky(e))return n($y(e));if((e=>!dy(e)&&my(e)&&!Ky(e))(e)){const n=o?e[_y]:i[0],a=o?e[Wy]:e[n];if(!py(a))throw new Error((e=>`Invalid value for key ${e}`)(n));const s={keyId:xy(n),pattern:a};return r&&(s.searcher=Vy(a,t)),s}const a={children:[],operator:i[0]};return i.forEach(t=>{const r=e[t];dy(r)&&r.forEach(e=>{a.children.push(n(e))})}),a};return Ky(e)||(e=$y(e)),n(e)}function ev(e,{ignoreFieldNorm:t=Fy.ignoreFieldNorm}){let r=1;return e.forEach(({key:e,norm:n,score:i})=>{const o=e?e.weight:null;r*=Math.pow(0===i&&o?Number.EPSILON:i,(o||1)*(t?1:n))}),r}var tv=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 r=e-1>>1;if(this.comparator(t[e],t[r])<=0)break;const n=t[e];t[e]=t[r],t[r]=n,e=r}}_sinkDown(e){const t=this.heap,r=t.length;let n=e;do{const i=2*(e=n)+1,o=2*e+2;if(i<r&&this.comparator(t[i],t[n])>0&&(n=i),o<r&&this.comparator(t[o],t[n])>0&&(n=o),n!==e){const r=t[e];t[e]=t[n],t[n]=r}}while(n!==e)}};function rv(e,t,{includeMatches:r=Fy.includeMatches,includeScore:n=Fy.includeScore}={}){return e.map(e=>{const{idx:i}=e,o={item:t[i],refIndex:i};return r&&(o.matches=function(e){const t=[];return e.matches.forEach(e=>{if(!Iy(e.indices)||!e.indices.length)return;const r={indices:e.indices,value:e.value};e.key&&(r.key=e.key.id),e.idx>-1&&(r.refIndex=e.idx),t.push(r)}),t}(e)),n&&(o.score=e.score),o})}const nv=/[\p{L}\p{M}\p{N}_]+/gu,iv=new WeakSet;function ov(e){if("function"==typeof e){let t=!1;return r=>{const n=e(r);if(!t&&(t=!0,!Array.isArray(n)||n.some(e=>"string"!=typeof e)))throw new Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(n)?"array containing non-strings":typeof n}.`);return n}}return e instanceof RegExp?(e.global||function(e){iv.has(e)||(iv.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(nv)||[]}function av({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:r}={}){const n=ov(r);return{tokenize:r=>(e||(r=r.toLowerCase()),t&&(r=Uy(r)),n(r))}}function sv(e,t,r,n){const i=n.tokenize(t);if(!i.length)return;e.fieldCount++,e.docFieldCount.set(r,(e.docFieldCount.get(r)||0)+1);const o=new Set(i);let a=e.docTermFieldHits.get(r);a||(a=new Map,e.docTermFieldHits.set(r,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 lv(e,t,r,n){const{i:i,v:o,$:a}=t;if(void 0===o){if(a)for(let t=0;t<r;t++){const r=a[t];if(r)if(Array.isArray(r))for(const t of r)sv(e,t.v,i,n);else sv(e,r.v,i,n)}}else sv(e,o,i,n)}function cv(e,t){const r=e.docFieldCount.get(t);if(void 0===r)return;e.fieldCount-=r,e.docFieldCount.delete(t);const n=e.docTermFieldHits.get(t);if(n){for(const[t,r]of n){const n=(e.df.get(t)||0)-r;n<=0?e.df.delete(t):e.df.set(t,n)}e.docTermFieldHits.delete(t)}}function uv(e,t){if(0===t.length)return;const r=Array.from(new Set(t)).sort((e,t)=>e-t);for(const t of r)cv(e,t);const n=e=>{let t=0,n=r.length;for(;t<n;){const i=t+n>>>1;r[i]<e?t=i+1:n=i}return e-t},i=r[0],o=new Map;for(const[t,r]of e.docFieldCount)o.set(t>i?n(t):t,r);e.docFieldCount=o;const a=new Map;for(const[t,r]of e.docTermFieldHits)a.set(t>i?n(t):t,r);e.docTermFieldHits=a}var fv=class{constructor(e,t,r){this.options={...Fy,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new By(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,r),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;const t=Vy(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 Sy))throw new Error("Incorrect 'index' type");if(this._myIndex=t||ky(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){const e=av({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=function(e,t,r){const n={fieldCount:0,df:new Map,docFieldCount:new Map,docTermFieldHits:new Map};for(const i of e)lv(n,i,t,r);return n}(this._myIndex.records,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}add(e){if(!Iy(e))return;this._docs.push(e);const t=this._myIndex.add(e,this._docs.length-1);if(this._invertedIndex&&t){const e=av({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});!function(e,t,r,n){lv(e,t,r,n)}(this._invertedIndex,t,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}remove(e=()=>!1){const t=[],r=[];for(let n=0,i=this._docs.length;n<i;n+=1)e(this._docs[n],n)&&(t.push(this._docs[n]),r.push(n));if(r.length){this._invertedIndex&&uv(this._invertedIndex,r);const e=new Set(r);this._docs=this._docs.filter((t,r)=>!e.has(r)),this._myIndex.removeAll(r),this._invalidateSearcherCache()}return t}removeAt(e){if(!Number.isInteger(e)||e<0||e>=this._docs.length)throw new Error(by);this._invertedIndex&&uv(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:r=-1}=t||{},{includeMatches:n,includeScore:i,shouldSort:o,sortFn:a,ignoreFieldNorm:s}=this.options;if(py(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return hy(r)&&r>-1&&(e=e.slice(0,r)),e}const l=o&&hy(r)&&r>0&&py(e),c=a,u=(e,t)=>c(e,t)||e.idx-t.idx;let f;if(l){const t=new tv(r,u);py(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:s}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:s}),f=t.extractSorted()}else f=py(e)?py(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),function(e,{ignoreFieldNorm:t=Fy.ignoreFieldNorm}){e.forEach(e=>{e.score=ev(e.matches,{ignoreFieldNorm:t})})}(f,{ignoreFieldNorm:s}),o&&f.sort(py(e)?u:c),hy(r)&&r>-1&&(f=f.slice(0,r));return rv(f,this._docs,{includeMatches:n,includeScore:i})}_searchStringList(e,{heap:t,ignoreFieldNorm:r}={}){const n=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(!Iy(e))return;const l=n.searchIn(e);if(l.isMatch){const n={score:l.score,value:e,norm:s,indices:l.indices};i&&(n.matchedMask=l.matchedMask,n.matchedTerms=l.matchedTerms,n.termCount=l.termCount);const c=[n];if(!i||this._coversAllTokens(c)){const n={item:e,idx:o,matches:c};t?(n.score=ev(n.matches,{ignoreFieldNorm:r}),t.insert(n)):a.push(n)}}}),a}_searchLogical(e){const t=Zy(e,this.options),r=this._normalizedKeys(),n=(e,t,i)=>{if(!("children"in e)){const{keyId:n,searcher:o}=e;let a;return null===n?(a=[],r.forEach((e,r)=>{a.push(...this._findMatches({key:e,value:t[r],searcher:o}))})):a=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:o}),a&&a.length?[{idx:i,item:t,matches:a}]:[]}const{children:o,operator:a}=e,s=[];for(let e=0,r=o.length;e<r;e+=1){const r=o[e],l=n(r,t,i);if(l.length)s.push(...l);else if(a===Py)return[]}return s},i=this._myIndex.records,o=new Map,a=[];return i.forEach(({$:e,i:r})=>{if(Iy(e)){const i=n(t,e,r);i.length&&(o.has(r)||(o.set(r,{idx:r,item:e,matches:[]}),a.push(o.get(r))),i.forEach(({matches:e})=>{o.get(r).matches.push(...e)}))}}),a}_searchObjectList(e,{heap:t,ignoreFieldNorm:r}={}){const n=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(!Iy(e))return;const l=[];let c=!1,u=!1;if(a.forEach((t,r)=>{const i=this._findMatches({key:t,value:e[r],searcher:n});i.length?(l.push(...i),i[0].hasInverse&&(u=!0)):c=!0}),(!u||!c)&&l.length&&(!i||this._coversAllTokens(l))){const n={idx:o,item:e,matches:l};t?(n.score=ev(n.matches,{ignoreFieldNorm:r}),t.insert(n)):s.push(n)}}),s}_findMatches({key:e,value:t,searcher:r}){if(!Iy(t))return[];const n=[];if(dy(t))t.forEach(({v:t,i:i,n:o})=>{if(!Iy(t))return;const a=r.searchIn(t);if(a.isMatch){const r={score:a.score,key:e,value:t,idx:i,norm:o,indices:a.indices,hasInverse:a.hasInverse};void 0!==a.termCount&&(r.matchedMask=a.matchedMask,r.matchedTerms=a.matchedTerms,r.termCount=a.termCount),n.push(r)}});else{const{v:i,n:o}=t,a=r.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),n.push(t)}}return n}_coversAllTokens(e){const t=e.length?e[0].termCount:void 0;if(void 0===t)return!0;if(t<=31){let r=0;for(let t=0;t<e.length;t++)r|=e[t].matchedMask||0;return r===2**t-1}const r=new Set;for(let t=0;t<e.length;t++){const n=e[t].matchedTerms;if(n)for(const e of n)r.add(e)}return r.size===t}};fv.version="7.5.0",fv.createIndex=ky,fv.parseIndex=function(e,{getFn:t=Fy.getFn,fieldNormWeight:r=Fy.fieldNormWeight}={}){const{keys:n,records:i}=e,o=new Sy({getFn:t,fieldNormWeight:r});return o.setKeys(n),o.setIndexRecords(i),o},fv.config=Fy,fv.match=function(e,t,r){if(r&&r.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 Vy(e,{...Fy,...r}).searchIn(t)},fv.parseQuery=Zy,zy(class{constructor(e,{isCaseSensitive:t=Fy.isCaseSensitive,ignoreDiacritics:r=Fy.ignoreDiacritics,includeMatches:n=Fy.includeMatches,minMatchCharLength:i=Fy.minMatchCharLength,ignoreLocation:o=Fy.ignoreLocation,findAllMatches:a=Fy.findAllMatches,location:s=Fy.location,threshold:l=Fy.threshold,distance:c=Fy.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:r,includeMatches:n,minMatchCharLength:i,findAllMatches:a,ignoreLocation:o,location:s,threshold:l,distance:c},e=t?e:e.toLowerCase(),e=r?Uy(e):e,this.pattern=e,this.query=function(e,t={}){return e.replace(/\\\|/g,"\0").split("|").map(e=>{const r=function(e){const t=[],r=e.length;let n=0;for(;n<r;){for(;n<r&&" "===e[n];)n++;if(n>=r)break;let i=n;for(;i<r&&" "!==e[i]&&'"'!==e[i];)i++;if(i<r&&'"'===e[i]){for(i++;i<r;){if('"'===e[i]){const t=i+1;if(t>=r||" "===e[t]){i++;break}if("$"===e[t]&&(t+1>=r||" "===e[t+1])){i+=2;break}}i++}t.push(e.substring(n,i)),n=i}else{for(;i<r&&" "!==e[i];)i++;t.push(e.substring(n,i)),n=i}}return t}(e.replace(/\u0000/g,"|").trim()).filter(e=>e&&!!e.trim()),n=[];for(let e=0,i=r.length;e<i;e+=1){const i=r[e];let o=!1,a=-1;for(;!o&&++a<jy;){const e=Yy[a],r=Gy(i,e.multiRegex);r&&(n.push(e.create(r,t)),o=!0)}if(!o)for(a=-1;++a<jy;){const e=Yy[a],r=Gy(i,e.singleRegex);if(r){n.push(e.create(r,t));break}}}return n})}(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:r,isCaseSensitive:n,ignoreDiacritics:i}=this.options;e=n?e:e.toLowerCase(),e=i?Uy(e):e;let o=0;const a=[];let s=0,l=!1;for(let n=0,i=t.length;n<i;n+=1){const i=t[n];a.length=0,o=0,l=!1;for(let t=0,n=i.length;t<n;t+=1){const n=i[t],{isMatch:c,indices:u,score:f}=n.search(e);if(!c){s=0,o=0,a.length=0,l=!1;break}o+=1,s+=f,Ty(n.type)&&(l=!0),r&&(Oy.has(n.type)?a.push(...u):a.push(u))}if(o){const e={isMatch:!0,score:s/o};return l&&(e.hasInverse=!0),r&&(e.indices=My(a)),e}}return{isMatch:!1,score:1}}}),zy(class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=av({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,tokenize:t.tokenize});const r=this.analyzer.tokenize(e),{df:n,fieldCount:i}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(const e of r){this.termSearchers.push(new Ry(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 r=n.get(e)||0,o=Math.log(1+(i-r+.5)/(r+.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 r=0,n=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];n+=c,l.isMatch&&(i++,r+=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=n>0?1-r/n:0,l={isMatch:!0,score:Math.max(.001,s)};return this.options.includeMatches&&t.length&&(l.indices=My(t)),this.combineAll&&(this.useMask?l.matchedMask=o:l.matchedTerms=a,l.termCount=this.numTerms),l}}),fv.use=function(...e){e.forEach(e=>zy(e))};var dv=fv;function gv(e){return function(e,t){var r=null==e?0:e.length;return r?Ca(e,t)/r:NaN}(e,cr)}function pv(e){if(!Ce(e))return{};let{results:t,binarys:r}=e;if(!Fe(t))return{};if(!xe(r))return{};let n={};try{n=JSON.parse(t,function(e,t){if(Fe(t)){if(t.indexOf("[Uint8Array]::")>=0){let e=eo(t.replace("[Uint8Array]::",""));return r[e]}if(t.indexOf("[Uint16Array]::")>=0){let e=eo(t.replace("[Uint16Array]::",""));return r[e]}if(t.indexOf("[ArrayBuffer]::")>=0){let e=eo(t.replace("[ArrayBuffer]::",""));return r[e]}}return t})}catch(e){}return n}function hv(e,t=null){if(!ba(r))throw new Error("invalid dayjs");if(!BI(e))return{today:null,msg:"",err:"時間格式錯誤"};let n=r();BI(t)&&(n=r(t,"YYYY-MM-DDTHH:mm:ss.SSSZ"));let i=r(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(n>i)return{today:null,msg:"",err:"時間已過"};let o,a=n.format("YYYY-MM-DD"),s=i.format("YYYY-MM-DD"),l=r(a,"YYYY-MM-DD"),c=r(s,"YYYY-MM-DD"),u=i.diff(n,"seconds"),f=i.diff(n,"minutes"),d=i.diff(n,"hours"),g=c.diff(l,"days"),p=c.diff(l,"weeks"),h=c.diff(l,"months"),A=c.diff(l,"years"),m="即將到來";if(u>=0&&(o=!0,m=u+"秒後"),f>0&&(o=!0,m=f+"分鐘後"),d>0){let e=i.format("HH:mm");a===s?(o=!0,m=d+"小時後,今天"+e):(o=!1,m=d+"小時後,明天"+e)}return g>1&&(o=!1,m=2===g?"後天":g+"天後"),p>0&&(o=!1,m=p+"周後"),h>0&&(o=!1,m=h+"個月後"),A>0&&(o=!1,m=A+"年後"),{today:o,msg:m,err:""}}function Av(e,t=null){if(!ba(r))throw new Error("invalid dayjs");if(!BI(e))return{today:null,msg:"",err:"時間格式錯誤"};let n=r();BI(t)&&(n=r(t,"YYYY-MM-DDTHH:mm:ss.SSSZ"));let i=r(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(n<i)return{today:null,msg:"",err:"時間未到"};let o=n.format("YYYY-MM-DD"),a=i.format("YYYY-MM-DD"),s=r(o,"YYYY-MM-DD"),l=r(a,"YYYY-MM-DD"),c=n.diff(i,"seconds"),u=n.diff(i,"minutes"),f=n.diff(i,"hours"),d=s.diff(l,"days"),g=s.diff(l,"weeks"),p=s.diff(l,"months"),h=s.diff(l,"years"),A=!1,m="剛剛";if(c>=0&&(A=!0,m=c+"秒前"),u>0&&(A=!0,m=u+"分鐘前"),f>0){let e=i.format("HH:mm");o===a?(A=!0,m=f+"小時前"):(A=!1,m="昨天"+e)}return d>1&&(A=!1,m=d+"天前"),g>0&&(A=!1,m=g+"周前"),p>0&&(A=!1,m=p+"個月前"),h>0&&(A=!1,m=h+"年前"),{today:A,msg:m,err:""}}function mv(e){let t=wI.sepTZ(e);return e=`${t.t}.000${t.tz}`}function Iv(e){let t=wI.sepTZ(e);return e=`${t.t}.000${t.tz}`}function yv(e){if(!es(e))return"";let t;try{t=Ka(HI(e))}catch(e){return""}return t}e.ab2blob=function(e){let t=v(e);return new Blob([t])},e.ab2u8arr=v,e.addExcelWorksheetFromData=function(e,t,r="data"){if(!Ce(e))return{error:"wb is not an effective object"};if(!xe(Be(e,"SheetNames")))return{error:"wb.SheetNames is not an array"};if(!Ee(Be(e,"Sheets")))return{error:"wb.Sheets is not an object"};let n=wn(t);return Ne(n,"error")?n:(e.SheetNames.push(r),e.Sheets[r]=n,e)},e.addMonth=function(e,t){return Bn(e)&&Ln(t)?r(e,"YYYY-MM").add(t,"months").format("YYYY-MM"):""},e.aes2str=ui,e.alive=function(e={}){let t=_i(),r={},n=null,i=Be(e,"timeAlive");to(i)||(i=1e4),i=eo(i);let o=Be(e,"timeDetect");return to(o)||(o=50),o=eo(o),t.trigger=function(e,a){Fe(e)?(Ne(r,e)||setTimeout(()=>{t.emit("message",{eventName:"enter",key:e,data:a,now:gn(r)})},1),r[e]={data:a,time:Date.now()},null===n&&(n=setInterval(()=>{Cr(r,(e,n)=>{if(Date.now()-e.time>i){let e=Vi(r[n]);delete r[n],t.emit("message",{eventName:"leave",key:n,data:e.data,now:gn(r)})}}),Ce(r)||(clearInterval(n),n=null)},o))):console.log("trigger need key")},t.get=function(){let e=[];return Cr(r,(t,r)=>{e.push({key:r,data:t.data})}),e=Vi(e),e},t},e.arr2dt=function(e,t=""){if(!Or(e))return{};if(Or(t))return gn(e)===gn(t)?ro(e,t):{};let r=[];for(let n=0;n<gn(e);n++)r.push(Vi(t));return ro(e,r)},e.arrAccum=function(e){if(!Or(e))return[];let t=[],r=0;return Cr(e,function(e){r+=Hn(e),ke(e)?t.push(r):t.push("")}),t},e.arrAdd=function(){if(gn(arguments)<2)return[];let e=arguments[0];for(let t=1;t<gn(arguments);t++){e=no(e,arguments[t])}return e},e.arrAt=Co,e.arrDiff=sa,e.arrFilterByKeywords=function(e,t){if(!Or(e))return[];if(!Fe(t)&&!Or(t))return[];let r=null;r=Fe(t)?ua(t," "):t;let n=gn(r);return Dr(e,e=>function(e){let t=!1,i=0;for(let o=0;o<n;o++){let a=r[o],s=a,l="+"===fa(a,1),c="-"===fa(a,1);if((l||c)&&(s=ga(a,1)),""===la(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/n;e=e**2,i+=e}}return{hasKeyword:t,weight:i}}(e))},e.arrFilterByNum=function(e){return Or(e)?e=Dr(e=ha(e=Vi(e),ke),Hn):[]},e.arrFilterByPnum=ma,e.arrFilterByPnumAndToLog=function(e){return Or(e)?e=Dr(e=ma(e),Math.log):[]},e.arrFind=function(e,t){function r(e){return xe(e)?e:[e]}return Rr(e)||0===(e=r(e)).length||Rr(t)?[]:Dr(t=r(t),function(t){let r=-1;for(let n=0;n<e.length;n++)if(Ia(e[n],t)){r=n;break}return r})},e.arrGroupByMaxmin=function(e,t,r={}){let n=Be(r,"keyMax");Fe(n)||(n="max");let i=Be(r,"keyMin");Fe(i)||(i="min");let o=Be(r,"keyValue");Fe(o)||(o="value");let a=Be(r,"keyItems");if(Fe(a)||(a="items"),!Or(e))return[];if(!Or(t))return[];let s=Vi(t);return Cr(e,(e,r)=>{let l=Be(e,o);ke(l)?l=Hn(l):ke(e)&&(l=Hn(e)),ya(l)&&Cr(t,(t,r)=>{let o=Be(t,n,null),c=Be(t,i,null);if(null!==o&&null!==c&&ke(o)&&ke(c)){let n=Be(t,"maxType");"<="!==n&&"<"!==n&&(n="<=");let i,u,f=Be(t,"minType");">="!==f&&">"!==f&&(f=">="),o=Hn(o),c=Hn(c),i=">="===f?l>=c:l>c,u="<="===n?l<=o:l<o,i&&u&&(Ne(s[r],a)||(s[r][a]=[]),s[r][a].push(e))}})}),s},e.arrHas=va,e.arrInsert=function(e,t,r){if(!xe(e))return[];if(xe(r)||(r=[r]),!Eo(t))return e;if((t=eo(t))>gn(e))return e;let n=e;try{n=[...e.slice(0,t),...r,...e.slice(t)]}catch(e){}return n},e.arrLookupByMaxmin=function(e,t,r={}){let n=Be(r,"keyMax");Fe(n)||(n="max");let i=Be(r,"keyMin");Fe(i)||(i="min");let o=Be(r,"keyValue");Fe(o)||(o="value");let a=Be(r,"keyItems");Fe(a)||(a="items");let s=Be(r,"beforeAddResult",null);if(!Or(e))return[];if(!Or(t))return[];if(!Ce(Be(e,0)))return[];let l=Vi(e);return Cr(l,(e,r)=>{let c=Be(e,o);ke(c)&&(c=Hn(c)),ya(c)&&Cr(t,(e,t)=>{let o=Be(e,n,null),u=Be(e,i,null);if(null!==o&&null!==u&&ke(o)&&ke(u)){let t=Be(e,"maxType");"<="!==t&&"<"!==t&&(t="<=");let n,i,f=Be(e,"minType");">="!==f&&">"!==f&&(f=">="),o=Hn(o),u=Hn(u),n=">="===f?c>=u:c>u,i="<="===t?c<=o:c<o,n&&i&&(ba(s)&&(e=s(e,l[r],r)),Ne(l[r],a)||(l[r][a]=[]),l[r][a].push(e))}})}),l},e.arrMax=function(e,t={}){if(!Or(e))return null;let r=Be(t,"returnIndex");hn(r)||(r=!1);let n=Be(t,"compareKey",null),i=e;Fe(n)&&(i=Dr(e,(e,t)=>Be(e,n,"")));let o=null,a=wa(i,(e,t)=>ke(t)?(t=Hn(t),null===e?(o=t,t):(e=Math.max(e,t),o=e,e)):e,{returnIndex:!0});if(r)return a;let s=null;return a>=0&&(s=Fe(n)?e[a]:o),s},e.arrMin=function(e,t={}){if(!Or(e))return null;let r=Be(t,"returnIndex");hn(r)||(r=!1);let n=Be(t,"compareKey",null),i=e;Fe(n)&&(i=Dr(e,(e,t)=>Be(e,n,"")));let o=null,a=wa(i,(e,t)=>ke(t)?(t=Hn(t),null===e?(o=t,t):(e=Math.min(e,t),o=e,e)):e,{returnIndex:!0});if(r)return a;let s=null;return a>=0&&(s=Fe(n)?e[a]:o),s},e.arrMulti=Ea,e.arrNorm=function(e){if(!Or(e))return null;let t=xa(e,e);return ke(t)?t<=0?null:Math.sqrt(t):null},e.arrProduct=xa,e.arrPull=function(e,t){if(!Or(e))return[];if((Ee(t)||ke(t)||De(t)||hn(t))&&(t=[t]),!Or(t))return e;let r=Vi(e);return Qa(r,t),r},e.arrPullAt=function(e,t){if(!Or(e))return[];if(Eo(t)&&(t=[t]),!Or(t))return e;t=Dr(t,e=>eo(e));let r=Vi(e);return Ha(r,t),r},e.arrReduce=wa,e.arrReverse=function(e){if(!Or(e))return[];let t=Vi(e);return Ua(t),t},e.arrSep=function(e,t){if(!Or(e))return[];if(!to(t)&&!Ce(t))return[];let r="",n=null;if(to(t))n=t,r="numCount";else if(Ce(t))if(to(Be(t,"numCount")))n=t.numCount,r="numCount";else{if(!to(Be(t,"numGroup")))throw new Error("invalid opt.numCount or opt.numGroup");n=t.numGroup,r="numGroup"}let i=gn(e),o=[];if("numCount"===r)for(let t=0;t<i;t+=n){let r=[];for(let o=0;o<n;o++){let n=t+o;n<i&&r.push(e[n])}o.push(r)}else if("numGroup"===r){for(let e=0;e<n;e++)o[e]=[];let t=-1;for(let r=0;r<i;r++)t++,t>n-1&&(t=0),o[t].push(e[r])}return o},e.arrSort=Wa,e.asind=function(e){return ke(e)?(e=Hn(e),180*Math.asin(e)/Math.PI):null},e.atan2d=function(e,t){return ke(e)?(e=Hn(e),ke(t)?(t=Hn(t),180*Math.atan2(t,e)/Math.PI):null):null},e.atand=function(e){return ke(e)?(e=Hn(e),180*Math.atan(e)/Math.PI):null},e.attstr=function(e={}){let t=";",r="@",n="table",i="id",o=Be(e,"uniqItems");hn(o)||(o=!1);let a=Be(e,"dlmItem","");Fe(a)&&(t=a);let s=Be(e,"dlmSep","");Fe(s)&&(r=s);let l=Be(e,"keyTable","");Fe(l)&&(n=l);let c=Be(e,"keyId","");Fe(c)&&(i=c);let u=Be(e,"mode");function f(e){if(!Fe(e))return[];let r=zo(e,t);return o&&(r=Xr(r)),r}function d(e){if(!Or(e))return"";return o&&(e=Xr(e)),Do(e,t)}function g(e){return e=ha(e,Fe),o&&(e=Xr(e)),d(e)}function p(e){let t=[];return Cr(e,e=>{let o=Be(e,n,""),a=Be(e,i,"");if(Fe(o),De(a)||(xe(a)?gn(a):a=""),De(a))t.push(`${o}${r}${a}`);else if(xe(a)){let e=Do(a,r);t.push(`${o}${r}${e}`)}}),e=d(t)}function h(e){if(!Fe(e))return[];return ha(f(e),Fe)}function A(e){if(!Fe(e))return[];let t=f(e),o=[];return Cr(t,e=>{let t=zo(e,r),a=Be(t,0,""),s=Be(t,1,"");gn(t)>=3&&(t=Ga(t),s=t),o.push({item:e,[n]:a,[i]:s})}),o}function m(e,t){let r=[...h(e),...h(t)];return 0===gn(r)?"":g(r)}function I(e,t){let r=[...A(e),...A(t)];return 0===gn(r)?"":p(r)}function y(e,t){let r=h(e),n=h(t),i=[];return Cr(r,e=>{va(e,n)||i.push(e)}),0===gn(i)?"":g(i)}function v(e,t){let r=A(e),n=A(t),i=[];return Cr(r,e=>{va(e,n)||i.push(e)}),0===gn(i)?"":p(i)}"1p"!==u&&"2p"!==u&&(u="auto");let b={parse:function(e,t={}){if(!Fe(e))return[];let n=Be(t,"mode");return"1p"!==n&&"2p"!==n&&(n=u),"1p"===n?h(e):"2p"===n||e.indexOf(r)>=0?A(e):h(e)},join:function(e,t={}){if(!Or(e))return"";let r=Be(t,"mode");if("1p"!==r&&"2p"!==r&&(r=u),"1p"===r)return g(e);if("2p"===r)return p(e);let o=Be(e,0);return Ne(o,n)&&Ne(o,i)?p(e):g(e)},remove:function(e,t,n={}){if(!Fe(e))return"";if(!Fe(t))return e;let i=Be(n,"mode");return"1p"!==i&&"2p"!==i&&(i=u),"1p"===i?y(e,t):"2p"===i||t.indexOf(r)>=0?v(e,t):y(e,t)},add:function(e,t,n={}){let i=Be(n,"mode");if("1p"!==i&&"2p"!==i&&(i=u),"1p"===i)return m(e,t);if("2p"===i)return I(e,t);let o=e.indexOf(r)>=0,a=t.indexOf(r)>=0;return o||a?I(e,t):m(e,t)}};return b},e.b642obj=function(e){if(!De(e))return{};let t={};try{t=$a(Ka(e))}catch(e){t={}}return t},e.b642str=Ka,e.b642u16arr=rs,e.b642u8arr=Za,e.binstr=ns,e.blob2ab=os,e.blob2b64=as,e.blob2str=function(e){let t=is(),r=new FileReader;return r.onload=function(){t.resolve(r.result)},r.onerror=function(e){t.reject(e)},r.readAsText(e),t},e.blob2u8arr=ss,e.blobs2b64s=ls,e.blobs2u8arrs=cs,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>${ds(Dr(arguments,function(e){return An(e)}).join(", "))}</code>\n </div>\n `;document.querySelector("body").insertAdjacentHTML("beforeend",e)},e.browserView=gs,e.browserViewFromBlob=function(e,t){ps(e)&&gs(e,t)},e.browserViewFromText=function(e){De(e)&&gs(e,"text/plain")},e.browserViewFromU8arr=function(e,t){es(e)&&gs(e,t)},e.bs2u8arr=hs,e.bufRead=As,e.bufReadDbl=ms,e.bufWrite=Is,e.bufWriteDbl=ys,e.cache=function(){let e=_i(),t={};function r(t,r){setTimeout(()=>{e.emit(t,r)},1)}function n(e,n={}){if(Ne(t,e))return;let i=Be(n,"fun");ba(i)||(i=async()=>{});let o=Be(n,"inputs");xe(o)||(o=[]);let a=Be(n,"timeExpired");to(a)||(a=5e3),a=eo(a),t[e]={needExec:!0,fun:i,running:!1,inputs:o,value:null,time:null,timeExpired:a},r("message",{fun:"set",key:e,timeExpired:a})}async function i(e){if(Ne(t,e)){let n;r("message",{fun:"get",key:e,msg:"waiting"}),await bs(()=>!t[e].running,{timeInterval:1e3});let i=Date.now();n=t[e].needExec;let o=i-t[e].time;return n?r("message",{fun:"get",key:e,msg:"execute first"}):t[e].timeExpired>0&&o>t[e].timeExpired&&(r("message",{fun:"get",key:e,msg:"execute by timeExpired",timeDiff:o}),n=!0),n?(r("message",{fun:"get",key:e,msg:"fun start"}),t[e].running=!0,t[e].value=await t[e].fun(...t[e].inputs).catch(t=>{r("error",{fun:"get",key:e,msg:t})}),t[e].needExec=!1,t[e].time=i,t[e].running=!1,r("message",{fun:"get",key:e,msg:"fun end"})):r("message",{fun:"get",key:e,msg:"use cache"}),Vi(t[e].value)}return r("error",{fun:"get",key:e,msg:"invalid key"}),null}return e.set=n,e.getProxy=async function(e,t={}){return n(e,t),i(e)},e.get=i,e.update=function(e,n){Ne(t,e)&&(r("message",{fun:"updateValue",key:e}),t[e].value=n,t[e].time=Date.now())},e.clear=function(e){Ne(t,e)&&(r("message",{fun:"clear",key:e}),t[e].needExec=!0)},e.remove=function(e){Ne(t,e)&&(r("message",{fun:"remove",key:e}),delete t[e])},e},e.cacheBd=function(e,t={}){let r=Be(t,"nMax");to(r)||(r=200),r=eo(r);let n=Be(t,"nTrigger");to(n)||(n=3),n=eo(n);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<=r&&(t>n&&!o&&await a(...e).catch(()=>{}),null===i);t++)await ws(1e3);if(null===i)throw new Error(`exceeded nMax[${r}]`);return i}}},e.cacheSt=function(e={}){let t=Be(e,"timeExpire",null);to(t)||(t=18e5),t=eo(t);let r=Be(e,"timeDetect",null);to(r)||(r=2e3),r=eo(r);let n=_i(),i={},o=e=>{if(Ne(i,e)){let t=`checkWithSet: key in use: ${e}`;return n.emit("checkWithSet",{state:"error",msg:t}),!1}i[e]={time:Date.now(),value:!0};let t=`checkWithSet: ${e}`;return n.emit("checkWithSet",{state:"success",msg:t}),!0},a=setInterval(()=>{n.emit("detect",{state:"start"});let e=Date.now();for(let r of Object.keys(i)){let n=i[r];n&&e-n.time>t&&delete i[r]}n.emit("detect",{state:"finish"})},r);return n.checkWithSet=o,n.setWithFree=async(e,t)=>{n.emit("setWithFree",{state:"start"});let r=[];for(let t of e){if(!o(t)){for(let e of r)delete i[e];let e=`setWithFree: key in use: ${t}`;return n.emit("setWithFree",{state:"error",msg:e}),Promise.reject(e)}r.push(t)}try{let r=await t(),i=`setWithFree: ${e.join(", ")}`;return n.emit("setWithFree",{state:"success",msg:i}),r}catch(e){let t=`setWithFree: fn threw: ${e&&e.message||e}`;throw n.emit("setWithFree",{state:"error",msg:t}),e}finally{for(let e of r)delete i[e]}},n.set=async(e,t=!0)=>{i[e]={time:Date.now(),value:t};let r=`set: ${e}`;n.emit("set",{state:"success",msg:r})},n.get=async e=>{let t=i[e],r=void 0===t?null:t.value,o=`get: ${e}`;return n.emit("get",{state:"success",msg:o}),r},n.check=async e=>{let t=Ne(i,e),r=`check: ${e} = ${t}`;return n.emit("check",{state:"success",msg:r}),t},n.del=async e=>{delete i[e];let t=`del: ${e}`;n.emit("del",{state:"success",msg:t})},n.waitExist=async(e,t={})=>{let r=Be(t,"attemptNum",null);to(r)||(r=30),r=eo(r);let o=Be(t,"timeInterval",null);to(o)||(o=100),o=eo(o),n.emit("waitExist",{state:"start"});try{await bs(()=>Ne(i,e),{attemptNum:r,timeInterval:o})}catch(t){let i=`waitExist timeout (${r*o}ms): ${e}`;return n.emit("waitExist",{state:"error",msg:i}),Promise.reject(i)}let a=`waitExist resolved: ${e}`;n.emit("waitExist",{state:"success",msg:a})},n.waitNotExist=async(e,t={})=>{let r=Be(t,"attemptNum",null);to(r)||(r=30),r=eo(r);let o=Be(t,"timeInterval",null);to(o)||(o=100),o=eo(o),n.emit("waitNotExist",{state:"start"});try{await bs(()=>!Ne(i,e),{attemptNum:r,timeInterval:o})}catch(t){let i=`waitNotExist timeout (${r*o}ms): ${e}`;return n.emit("waitNotExist",{state:"error",msg:i}),Promise.reject(i)}let a=`waitNotExist resolved: ${e}`;n.emit("waitNotExist",{state:"success",msg:a})},n.clear=()=>{clearInterval(a)},n},e.cbol=function(e){if(hn(e))return e;if(0===e)return!1;if(1===e)return!0;let t=!1;return Fe(e)&&"true"===(e=Bs(la(e)))&&(t=!0),t},e.cdbl=Hn,e.ceil=ac,e.cfilesize=function(e){return ke(e)?(e=Hn(e))<1024?sc(e,1)+" b":e<1048576?sc(e/1024,1)+" kb":e<1073741824?sc(e/1024/1024,1)+" mb":e<1099511627776?sc(e/1024/1024/1024,1)+" gb":"":""},e.cfinancial=function(e,t=0){if(!ke(e))return"";if(!Eo(t))return"";let r=(e=sc(e,t)).split("."),n=r[0],i=r.length>1?"."+r[1]:"",o=/(\d+)(\d{3})/;for(;o.test(n);)n=n.replace(o,"$1,$2");return n+i},e.cint=eo,e.clearXSS=lc,e.clearXSSDyn=async function(e,t={},r){return Or(r)||(r=["https://cdn.jsdelivr.net/npm/xss@1.0.15/dist/xss.min.js"]),await gc(r),lc(e)},e.color=yu,e.composeToTree=Eu,e.convertToTree=function(e,t={}){if(!Ce(e)&&!Or(e))return[];let r=Be(t,"bindKey",null);Fe(r)||(r="id");let n=Be(t,"bindParent",null);Fe(n)||(n="parentId");let i=Be(t,"bindText",null);Fe(i)||(i="text");let o=Be(t,"bindChildren",null);Fe(o)||(o="children");let a=Be(t,"bindType",null);Fe(a)||(a="type");let s=Be(t,"bindNumOfChilren",null);Fe(s)||(s="numOfChilren");let l=Be(t,"bindRoot",null);Fe(l)||(l="root");let c=Be(t,"saveExtProps",null);return hn(c)||(c=!1),Fe(l)&&(e={[l]:e}),Eu(xu(e,{bindKey:r,bindParent:n,bindText:i,bindType:a,bindNumOfChilren:s}),{bindKey:r,bindParent:n,bindChildren:o,saveExtProps:c})},e.copyStrToClipboard=function(e,t={}){if(!De(e))return"invalid input";let r=Be(t,"eleParent");wr(r)||(r=document.body);let n=document.createElement("textarea");if(n.style.position="fixed",n.style.left=0,n.style.top=0,n.style.zIndex=-1,n.style.background="transparent",n.style.color="transparent",n.value=e,r.appendChild(n),n.select(),!Du(n))return"ele can not be focusd";try{document.execCommand("copy")}catch(e){return"can not copy str to clipboard"}return r.removeChild(n),""},e.cosd=Fu,e.cotd=function(e){return ke(e)?1/Qu(e=Hn(e)):null},e.createExcelWorkbook=Su,e.cscd=function(e){return ke(e)?1/ku(e=Hn(e)):null},e.cstr=ja,e.day2cht=function(e,t=!1){if(!Nu(e))return"";let n=r(e,"YYYY-MM-DD"),i="";return i=t?n.month()+1+"月"+n.date()+"日":"民國 "+(n.year()-1911)+" 年 "+(n.month()+1)+" 月 "+n.date()+" 日",i},e.debounce=qu,e.delay=ws,e.dig=sc,e.digExp=function(e,t=0){if(!ke(e))return"";if(!Eo(t))return"";let r="";return r=0===(e=Hn(e))?"0":Math.abs(e)<=1e-6?e.toExponential(t):sc(e,t),r},e.domAlert=function(e,t={}){if(!Fe(e))return;let r=Be(t,"type","success");Ne(Tu,r)||(r="success");let n=Be(t,"icon",null);Fe(n)||(n=Tu[r]);let i="top-right";"top-left"!==t.position&&"bottom-right"!==t.position&&"bottom-left"!==t.position||(i=t.position);let o=Be(t,"time");ya(o)||(o=4e3),o<0&&(o=4e3);let a=Be(t,"paddingStyle",null);null===a&&(a={top:14,right:26,bottom:14,left:14});let s="";{let e=Be(a,"top",0),t=Be(a,"bottom",0),r=Be(a,"left",0);s=`padding:${e}px ${Be(a,"right",0)}px ${t}px ${r}px;`}let l=Be(t,"textColor","#000");l=hc(l,";","");let c=Be(t,"backgroundColor","#fff");c=hc(c,";","");let u=Be(t,"borderWidth",1),f=Be(t,"borderColor","#ebeef5");f=hc(f,";","");let d=Be(t,"borderRadius",8),g=Be(t,"shadowStyle","0 2px 12px 0 rgba(0,0,0,.1)");g=hc(g,";","");let p=Be(t,"closeIconShift",null);null===p&&(p={top:10,right:10});let h="";{let e=Be(p,"top",""),t=Be(p,"bottom",""),r=Be(p,"left",""),n=Be(p,"right","");ya(e)&&(e=`top:${e}px;`),ya(t)&&(t=`bottom:${t}px;`),ya(r)&&(r=`left:${r}px;`),ya(n)&&(n=`right:${n}px;`),h=`position:absolute; ${e} ${n} ${t} ${r}`}let A=`alt-${Lu()}`,m=`alt-${Lu()}`,I=`\n <div \n style="display:inline-block; color:${l}; background:${c}; border:${u}px solid ${f}; border-radius:${d}px; box-shadow:${g};"\n onmouseenter="ttWAlertFadeIn('${m}')"\n onmouseleave="ttWAlertFadeOut('${m}')"\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;">${n}</div>\n </div>\n <div>${e}</div>\n </div>\n\n <div style="${h}">\n <div \n id="${m}" \n style="display:flex; cursor:pointer; opacity:0;" \n onclick="ttWAlertCancel('${A}')"\n >\n ${Ou}\n </div>\n </div>\n\n </div>\n </div>\n `,y=document.createElement("div");y.id=A,y.style.position="fixed",y.style.transition="transform 0.3s, top 0.5s, bottom 0.5s",y.style.zIndex=-1,y.style.opacity=.001,i.indexOf("-left")>=0?y.style.transform="translateX(-100%)":y.style.transform="translateX(100%)",y.innerHTML=I,document.querySelector("body").appendChild(y);let v=is();return function({id:e,position:t,time:r,pm:n}){Yu[e]={id:e,position:t,ele:null,loc:{height:null,top:null,bottom:null,left:null,right:null},timeShow:r,timeStart:Date.now(),pm:n},Ju(),null===ju&&(ju=setInterval(()=>{Cr(Yu,e=>{Date.now()-e.timeStart>e.timeShow&&(e.pm.resolve(),zu(e.id))}),Ce(Yu)||(clearInterval(ju),ju=null)},50))}({id:A,position:i,time:o,pm:v}),v},e.domAppend=Vu,e.domCancelEvent=Xu,e.domCompareText=function(e,t,r,n,i={}){if(!wr(e))return Promise.reject("invalid ele");let o=Be(i,"format");"side"!==o&&"line"!==o&&(o="side");let a="side"===o?"side-by-side":"line-by-line",s=zf();Fe(t)||(t="Text");let l=ta(t,t,r,n),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=_f,e.domConvertToPicDyn=async function(e,t={},r){return Or(r)||(r=["https://cdn.jsdelivr.net/npm/@zumer/snapdom@1.9.14/dist/snapdom.min.js"]),await gc(r),_f(e,t)},e.domDetect=function(e,t={}){let r=Be(t,"timeInterval",null);to(r)||(r=20);let n=Be(t,"tolerancePixel",null);to(n)||(n=1);let i,o=_i(),a={offsetWidth:0,offsetHeight:0,clientWidth:0,clientHeight:0,windowWidth:0,windowHeight:0},s=Vi(a),l={width:"",height:""};if(!ba(e))return console.log("invalid f",e),null;i=setInterval(()=>{let t=e();if(t){let e={offsetWidth:t.offsetWidth,offsetHeight:t.offsetHeight,clientWidth:t.clientWidth,clientHeight:t.clientHeight,windowWidth:window.innerWidth,windowHeight:window.innerHeight},r=s.offsetWidth-e.offsetWidth,i=s.offsetHeight-e.offsetHeight,c=Math.abs(r)>n,u=Math.abs(i)>n,f="";r>0?f="smaller":r<0&&(f="larger");let d="";if(i>0?d="smaller":i<0&&(d="larger"),l={width:f,height:d},c||u){let r={...s};setTimeout(()=>{e.offsetWidth>0&&e.offsetHeight>0&&(o.emit("resize",{sold:r,snew:e,smode:l,ele:t}),o.emit("resizeWithWindow",{sold:r,snew:e,smode:l,ele:t,from:"dom"}))},1)}a=s,s=e}},r);let c=e=>{o.emit("resizeWithWindow",{sold:a,snew:s,smode:l,from:"window"})};return window.addEventListener("resize",c),o.clear=()=>{clearInterval(i),window.removeEventListener("resize",c)},o},e.domDrag=function(e,t={}){if(!wr(e))return void console.log("ele is not a HTMLElement",e);let r=Be(t,"attIdentify",null);Fe(r)||(r="dragid");let n=Be(t,"attIndex",null);Fe(n)||(n="dragindex");let i=Be(t,"attGroup",null);Fe(i)||(i="draggroup");let o=Be(t,"group",null);Fe(o)||(o="group");let a=Be(t,"previewOpacity",null);ya(a)||(a=.4);let s=Be(t,"previewDisabledOpacity",null);ya(s)||(s=.2);let l=Be(t,"previewBackground",null);Fe(l)||(l="white");let c=Be(t,"previewBorderWidth",null);ya(c)||(c=1);let u=Be(t,"previewBorderColor",null);Fe(u)||(u="#f26");let f=Be(t,"timeDragStartDelay",null);ya(f)||(f=120);let d=`c${Lu(8)}`,g=o;e.setAttribute(i,g),e.setAttribute(r,d);let p=od(g,d,{attIdentify:r,previewOpacity:a,previewBackground:l,previewBorderWidth:c,previewBorderColor:u}),h=function(e,t){let r=[];return{bind:function(){let n;n="mousedown";let i=function(r){t.dragStart({e:r,ele:e,name:"mousedown"})};e.addEventListener(n,i,!1),r.push({ele:e,name:n,f:i}),n="touchstart";let o=function(r){t.dragStart({e:r,ele:e,name:"touchstart"})};e.addEventListener(n,o,!1),r.push({ele:e,name:n,f:o}),n="touchmove";let a=function(e){t.dragMove({e:e,name:"touchmove"}),e.cancelable&&e.preventDefault()};e.addEventListener(n,a,!1),r.push({ele:e,name:n,f:a})},unbind:function(){Cr(r,({ele:e,name:t,f:r})=>{e.removeEventListener(t,r)})}}}(e,{dragStart:e=>{p.emit(g+"-dragStart",e)},dragMove:e=>{p.emit(g+"-dragMove",e)}});h.bind(),sd({gid:g,attGroup:i,attIndex:n,attIdentify:r,timeDragStartDelay:f,previewOpacity:a,previewDisabledOpacity:s});let A=_i();return p.on(o+"-change",e=>{e.tarEid===d&&A.emit("change",e)}),p.on(o+"-start",e=>{e.tarEid===d&&A.emit("start",e)}),p.on(o+"-move",e=>{e.tarEid===d&&A.emit("move",e)}),p.on(o+"-enter",e=>{e.tarEid===d&&A.emit("enter",e)}),p.on(o+"-leave",e=>{e.tarEid===d&&A.emit("leave",e)}),p.on(o+"-drop",e=>{e.tarEid===d&&A.emit("drop",e)}),A.setIsActive=function(e){id[g].isActive=e},A.unbind=function(){h.unbind(),function(e,t){let r=id[e],n=Vi(r.eleIds);Wf(n,t),r.eleIds=n,0===n.length&&(r.oevg.unbind(),r.pv.clear(),delete id[e])}(g,d)},A},e.domDragBarAndScroll=function(e,t,r={}){let n=null,i=null,o=null,a=null,s=null,l=null,c=null,u=null,f=null,d=null,g=null,p=null,h=null,A=null,m=null,I=!1,y=Be(r,"getHeighRatio",null);O(y)||(y=()=>1);let v=Be(r,"getWidthRatio",null);O(v)||(v=()=>1);let b=Be(r,"stopScrollPropagationForPanel",null);pn(b)||(b=!1);let w=Be(r,"stopTouchDragPropagationForPanel",null);pn(w)||(w=!1);let B=Be(r,"useTouchDragForPanel",null);pn(B)||(B=!0);let E=e,C=t,x=_i();return n=e=>{let t=e.deltaY/Math.abs(e.deltaY),r=e.deltaX/Math.abs(e.deltaX);x.emit("scrollPanel",{ratioY:t,ratioX:r}),b&&Xu(e)},E.addEventListener("wheel",n),i=e=>{if(B){let t=Be(e,"touches.0.clientY",0),r=Be(e,"touches.0.clientX",0),n=-t*y(),i=-r*v();I=!0,x.emit("pressBar",{clientY:n,clientX:i}),w&&Xu(e)}},E.addEventListener("touchstart",i),o=e=>{if(B&&I){let t=Be(e,"touches.0.clientY",0),r=Be(e,"touches.0.clientX",0),n=-t*y(),i=-r*v();x.emit("dragBar",{clientY:n,clientX:i}),w&&Xu(e)}},E.addEventListener("touchmove",o,{passive:!1}),a=e=>{B&&I&&(I=!1,x.emit("freeBar"),w&&Xu(e))},E.addEventListener("touchend",a),s=e=>{I=!0,x.emit("pressBar",{clientY:e.clientY,clientX:e.clientX})},C.addEventListener("mousedown",s),l=e=>{I&&(I=!1,x.emit("freeBar"))},C.addEventListener("mouseup",l),c=e=>{I=!0,x.emit("pressBar",{clientY:e.touches[0].clientY,clientX:e.touches[0].clientX})},C.addEventListener("touchstart",c),u=e=>{I&&(x.emit("dragBar",{clientY:e.touches[0].clientY,clientX:e.touches[0].clientX}),Xu(e))},C.addEventListener("touchmove",u,{passive:!1}),f=e=>{I&&(I=!1,x.emit("freeBar"))},C.addEventListener("touchend",f),d=e=>{I&&x.emit("dragBar",{clientY:e.clientY,clientX:e.clientX})},window.addEventListener("mousemove",d),g=e=>{I&&(I=!1,x.emit("freeBar"),b&&Xu(e))},window.addEventListener("mouseup",g),p=e=>{},window.addEventListener("scroll",p,{passive:!1}),h=e=>{},window.addEventListener("wheel",h,{passive:!1}),A=e=>{},document.addEventListener("scroll",A,{passive:!1}),m=e=>{},document.addEventListener("wheel",m,{passive:!1}),x.clear=function(){E.removeEventListener("wheel",n),E.removeEventListener("touchstart",i),E.removeEventListener("touchmove",o),E.removeEventListener("touchend",a),C.removeEventListener("mousedown",s),C.removeEventListener("mouseup",l),C.removeEventListener("touchstart",c),C.removeEventListener("touchmove",u),C.removeEventListener("touchend",f),window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",g),window.removeEventListener("scroll",p),window.removeEventListener("wheel",h),document.removeEventListener("scroll",A),document.removeEventListener("wheel",m)},x},e.domDragPreview=nd,e.domDropFiles=function(e){let t=!1,r=!1,n=_i();function i(e){Xu(e),r=!0,!1===t&&(t=!0,n.emit("dropIn",{ev:e}))}function o(e){Xu(e),r=!1,setTimeout(function(){r||(t=!1,n.emit("dropOut",{ev:e}))},100)}function a(e){i(e)}function s(e){o(e)}function l(e){function t(){o(e)}i(e),ud(e.dataTransfer).then(r=>{let i=ha(r.entries,{type:"file"});n.emit("getFiles",{ev:e,files:r.files,filesTree:i,entries:r.entries,cb:t})}).catch(e=>{n.emit("error",e)})}return e.addEventListener("dragenter",a,!1),e.addEventListener("dragover",a,!1),e.addEventListener("dragleave",s,!1),e.addEventListener("drop",l,!1),n.off=function(){e.removeEventListener("dragenter",a,!1),e.removeEventListener("dragover",a,!1),e.removeEventListener("dragleave",s,!1),e.removeEventListener("drop",l,!1)},n},e.domElementsFromPoint=Zf,e.domFadeIn=Uu,e.domFadeOut=Ru,e.domFind=fd,e.domFinds=Vf,e.domGetAttr=ed,e.domGetBoudRect=td,e.domGetBoudRectRefSelf=rd,e.domGetFileAccept=yd,e.domGetFiles=vd,e.domGetParents=Kf,e.domGetPointFromEvent=$f,e.domGetScrollableParent=function(e){let t=/(auto|scroll)/,r=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},n=function(e){return t.test(function(e){return r(e,"overflow")+r(e,"overflow-y")+r(e,"overflow-x")}(e))};if(!(e instanceof HTMLElement||e instanceof SVGElement))return;let i=Kf(e);for(let e=0;e<i.length;e+=1)if(n(i[e]))return i[e];return document.scrollingElement||document.documentElement},e.domGetWindowSize=function(){let e=vn();return{width:(()=>{let t=[Be(e,"innerWidth"),Be(e,"document.documentElement.clientWidth"),Be(e,"document.body.clientWidth")];return t=ha(t,ya),Bd(t)})(),height:(()=>{let t=[Be(e,"innerHeight"),Be(e,"document.documentElement.clientHeight"),Be(e,"document.body.clientHeight")];return t=ha(t,ya),Bd(t)})()}},e.domIsClientXYIn=function(e,t,r){if(!ya(e))return void console.log("clientX is not a number",e);if(!ya(t))return void console.log("clientY is not a number",t);if(!wr(r))return void console.log("ele is not a HTMLElement",r);let n;try{n=r.getBoundingClientRect()}catch(e){return void console.log("invalid ele for getBoundingClientRect",e)}let i=!1;try{i=e>=n.left&&e<=n.right&&t>=n.top&&t<=n.bottom}catch(e){console.log("catch when calculating page information of element",e)}return i},e.domIsFocused=Du,e.domIsStable=function(e,t={}){if(!wr(e))return Promise.reject("invalid element");if(!ba(e.getBoundingClientRect))return Promise.reject("invalid element.getBoundingClientRect");let r=Be(t,"mode","");"promise"!==r&&"event"!==r&&(r="promise");let n=Be(t,"tolerance",0),i=Be(t,"timeDiff",100),o=Be(t,"timeDetect",50),a=()=>{let t=e.getBoundingClientRect();return{x:t.left,y:t.top,w:t.width,h:t.height}},s=()=>{try{return e.getAnimations({subtree:!0})}catch(e){return[]}},l=async()=>{let e=is();try{let t=a();await ws(i);let r=((e,t)=>!!e&&!!t&&Math.abs(e.x-t.x)<=n&&Math.abs(e.y-t.y)<=n&&Math.abs(e.w-t.w)<=n&&Math.abs(e.h-t.h)<=n)(t,a());await Promise.allSettled(s().map(e=>e.finished));let o=0===s().length,l=r&&o;e.resolve(l)}catch(t){e.reject(t)}return e},c=()=>{let t=_i(),r=!1,n=null,i=null,a=!1;return t.create=()=>{n=setInterval(()=>{r=(e=>{let r=!1;if(!wr(e))return r;try{let e=!1,n=!1;i=setInterval(()=>{a?clearInterval(i):e||(e=!0,l().then(e=>{a||n!==e&&(n=e,t.emit("stable",e))}).catch(()=>{}).finally(()=>{e=!1}))},o),r=!0}catch(e){}return r})(e),r&&clearInterval(n)},50)},t.dispose=()=>{let e=!1;try{clearInterval(n),clearInterval(i),a=!0,e=!0}catch(e){}return e},t},u=null;return"promise"===r?u=l():"event"===r&&(u=c()),u},e.domIsVisible=function(e,t={}){if(!wr(e))return Promise.reject("invalid element");if(Ed())return Promise.reject("invalid IntersectionObserver");let r=Be(t,"mode","");"promise"!==r&&"event"!==r&&(r="promise");let n=()=>{let t=_i(),r=!1,n=null,i=!1,o=new IntersectionObserver(e=>{if(i)return;let r=e[0].isIntersecting;t.emit("visible",r)});return t.create=()=>{n=setInterval(()=>{i?clearInterval(n):(r=(e=>{let t=!1;if(!wr(e))return t;try{o.observe(e),t=!0}catch(e){}return t})(e),r&&clearInterval(n))},50)},t.dispose=()=>{let e=!1;try{clearInterval(n),o.disconnect(),i=!0,e=!0}catch(e){}return e},t},i=null;return"promise"===r?i=(()=>{let t=is();try{let r=new IntersectionObserver(e=>{t.resolve(e[0].isIntersecting),r.disconnect()});r.observe(e)}catch(e){t.reject(e)}return t})():"event"===r&&(i=n()),i},e.domPrepend=Xf,e.domRemove=Pf,e.domRenderMarkdownMind=Cd,e.domRenderMarkdownMindDyn=async function(e,t,r={},n){return Or(n)||(n=["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 gc(n),Cd(e,t,r)},e.domRipple=function(e,t,r={}){let n=Be(r,"timeDuration",null);to(n)||(n=1e3);let i=Be(r,"color",null);if(Fe(i)||(i="rgba(255, 255, 255, 0.5)"),!wr(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 ${n/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(()=>{Pf(c)},n)},e.domScrollIntoView=function(e,t={}){if(!wr(e))return;Ee(t)||(t={});let r={behavior:"smooth"};r={...r,...t},Pu()&&pg(),e.scrollIntoView(r)},e.domScrollTo=function(e,t={}){if(!wr(e))return;Ee(t)||(t={});let r={behavior:"smooth"};r={...r,...t},Pu()&&pg(),e.scrollTo(r)},e.domSetAttr=function(e,t,r){if(!wr(e))return null;if(!Fe(t))return null;if(!Fe(r)&&!ke(r))return null;try{return e.setAttribute(t,r),e.getAttribute(t)}catch(e){}return null},e.domShowImages=wg,e.domShowImagesDyn=async function(e,t=null,r={},n){return Or(n)||(n=["https://cdn.jsdelivr.net/npm/viewerjs@1.11.7/dist/viewer.min.css","https://cdn.jsdelivr.net/npm/viewerjs@1.11.7/dist/viewer.min.js"]),await gc(n),wg(e,t,r)},e.domShowInputAndGetFiles=Eg,e.domShowInputAndGetFilesU8Arrs=function(e={}){let t=Be(e,"kind","*"),r=Be(e,"multiple");hn(r)||(r=!1);let n=Be(e,"entireHierarchy");hn(n)||(n=!1);let i=Be(e,"sizeMbLimit");ke(i)||(i=1e3),i=Hn(i);let o=is(),a=[];return Eg({kind:t,multiple:r,entireHierarchy:n,sizeMbLimit:i}).then(function(e){let t=is(),r=Be(e,"errs",{}),n=Be(e,"files",[]);return Ce(r)?t.reject(r):t.resolve(n),t}).then(function(e){return Cr(e,function(e){a.push({name:e.name,size:e.size,type:e.type})}),cs(e)}).then(function(e){Cr(e,function(e,t){a[t].u8a=e}),o.resolve(a)}).catch(function(e){o.reject(e)}),o},e.domShowInputDatatime=function(e,t={}){let n=Be(t,"type","");"date"!==n&&"datetime-local"!==n&&(n="datetime-local");let i=Be(t,"eleRef",null);wr(i)||(i=document.activeElement);let o=is(),a="drf"+Lu(),s="GrpDomShowDatatime";Pf(`[name=${s}]`);let l=!1,c="";if("date"===n)Nu(e)&&(l=!0,c=e);else if(Cg(e)){l=!0,c=r(e).format("YYYY-MM-DDTHH:mm")}Fe(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="${n}" style="opacity:0;" ${l?c:""} />\n </div>\n `;let f=null;wr(i)?i.parentNode.insertBefore(u,i.nextSibling):document.querySelector("body").appendChild(u);let d=!1;function g(){if(!d){d=!0;try{f.removeEventListener("change",h,!0),i.removeEventListener("focusout",A,!0)}catch(e){}if(Pf(`[name=${s}]`),Fe(p)){let e="";e="date"===n?p:`${p}:00`,o.resolve(e)}}}let p="";function h(e){try{p=e.target.value}catch(e){console.log(e)}g()}function A(e){setTimeout(()=>{g()},50)}return setTimeout(()=>{f=fd("#"+a),f.addEventListener("change",h,!0),f.showPicker()},1),i.addEventListener("focusout",A,!0),o},e.domTooltip=function(e,t,r={}){let n=null,i=null;function o(){null!==n&&n.destroy(!0),e.setAttribute("tippystate",""),clearInterval(i)}let a={arrow:!0,theme:"dark",placement:"bottom",delay:150};r=Ce(r)?bg(a,r):a;let s=t;t||(s=e.innerHTML);let l=ke(e.getAttribute("tippystate"));if(e.setAttribute("tippystate","5"),l)return;s=`<div style="text-align:left;">${s}</div>`;let c=Lh;Lh.default&&(c=Lh.default),n=c(e,{...r,content:s,allowHTML:!0,onHidden(){o()},onDestroy(){n=null,o()}}),n.show(),i=setInterval(()=>{let t=e.getAttribute("tippystate");ke(t)?(t=eo(t),t-=1,e.setAttribute("tippystate",t),t<=0&&o()):o()},1e3)},e.domTriggerEvent=Bg,e.domVirtualCreate=Rh,e.domVirtualCreateQueue=function(){return new function(){let e=Gh(1);return async function(t,r={}){return e(Rh,t,r)}}},e.downloadExcelFileFromData=Ph,e.downloadExcelFileFromDataDyn=async function(e,t="data",r,n){Or(n)||(n=["https://cdn.sheetjs.com/xlsx-0.20.3/package/dist/xlsx.full.min.js"]),await gc(n);let i=Ph(e,t,r);return""!==Be(i,"error","")?Promise.reject(i.error):i},e.downloadFileFromB64=function(e,t){if(!yn())return void console.log("no window");if(!Fe(e))return void console.log("no filename");let r=document.createElement("a");r.href=t,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)},e.downloadFileFromBlob=Jh,e.downloadFileFromText=function(e,t,r=!0){if(!yn())return void console.log("no window");if(!Fe(e))return void console.log("invalid filename");if(!De(t))return void console.log("invalid content");if(!hn(r))return void console.log("withBOM is not a boolean");let n;n=r?new Blob(["\ufeff",t]):new Blob([t]),Jh(e,n)},e.downloadFileFromU8Arr=function(e,t){if(!yn())return void console.log("no window");if(!Fe(e))return void console.log("no filename");if(!es(t))return void console.log("no data");Jh(e,Xh(t))},e.dtmapping=_h,e.dtpick=Wh,e.estimateTicks=function(e,t,r={}){if(!ke(e))throw new Error("rmin is not a number");if(e=Hn(e),!ke(t))throw new Error("rmax is not a number");if(e===(t=Hn(t))){let t=null;t=0===e?1:Math.abs(e/10);let r=$h(t,{returnDigit:!0});return t=Kh(t,r),{tickNum:3,tickInterval:t,tickPositions:[e-t,e,e+t],tickDig:r}}if(e>t)throw new Error(`rmin[${e}] > rmax[${t}]`);let n=Be(r,"testTickNums");Or(n)||(n=[3,4,5]);let i=e,o=t,a=Zh(i),s=Zh(o),l=Math.max(a.r,s.r),c=Math.log10(l),u=i/l,f=o/l,d=(u+f)/2,g=f-u,p=[];Cr(n,e=>{let t=g/(e-1),r=$h(t,{returnDigit:!0});r=Math.min(r,2),Cr(so(r,-1,-1),r=>{let n=r-c;n=Math.max(n,0);let i=ac(t,r),o=i-1/Math.pow(10,r);o=Kh(o,r);let a=i+1/Math.pow(10,r);a=Kh(a,r);let s=[o,i,a];s=ha(s,e=>e>0);let h=Kh(d,r),A=h-1/Math.pow(10,r);A=Kh(A,r);let m=h+1/Math.pow(10,r);m=Kh(m,r);let I=[A,h,m];Cr(s,t=>{let i=l*t;i=Kh(i,n),Cr(I,o=>{let a=[],s=[];{let i=o-(e-1)/2*t;for(let o=0;o<e;o++){let e=i+o*t;e=Kh(e,r),a.push(e);let c=l*e;c=Kh(c,n),s.push(c)}}let c=(d=a)&&d.length?d[0]:void 0;var d;let h=Sa(a);if(c>u||h<f)return!0;let A=(u-c)/g,m=(h-f)/g,I=(A+m)/2,y=0;Cr(s,e=>{Ln(e)&&y++});let v=y/e,b=0;Cr(a,e=>{0===e&&b++});let w=b/e,B=0;Cr(a,e=>{.5===e&&B++});let E=B/e,C=0;Cr(a,e=>{1===e&&C++});let x=C/e,D={diff:I,rngCenter:o,numInt:y,ratInt:v,num0:b,rat0:w,num5:B,rat5:E,num10:C,rat10:x,overMin:A,overMax:m,fitness:I+.2*r+.1*e+1.5*A+1.5*m+(1-.25*v)+(1-.4*w)+(1-.3*E)+(1-.3*x),idg:r,tickNum:e,_tickDig:r,_tickInterval:t,_tickPositions:a,tickDig:n,tickInterval:i,tickPositions:s};p.push(D)})})})}),p=Ta(p,"fitness");let h=Be(p,0);return{tickNum:h.tickNum,tickInterval:h.tickInterval,tickPositions:h.tickPositions,tickDig:h.tickDig}},e.evem=_i,e.execCli=async function(e,t=[],r={}){if(!Fe(e))return{ok:!1,stdout:"",stderr:"",code:null,error:"command 須為非空字串",durationMs:0,attempts:0};xe(t)||(t=[]),Ee(r)||(r={});let{maxRetries:n=0,retryDelayMs:i=5e3,...o}=r,a=Be(o,"cwd",null);Fe(a)?o.cwd=a:o.cwd=process.cwd();let s=Be(o,"input",null);Fe(s)?o.input=s:o.input=void 0;let l=Be(o,"validate",null);ba(l)||Fe(l)?o.validate=l:o.validate=void 0;let c=Be(o,"onStdout",null);ba(c)?o.onStdout=c:o.onStdout=void 0;let u=Be(o,"onStderr",null);ba(u)?o.onStderr=u:o.onStderr=void 0,n=Eo(n)?eo(n):0,i=to(i)?eo(i):5e3;let f=Be(o,"timeoutMs",null);to(f)?o.timeoutMs=eo(f):o.timeoutMs=12e4;let d,g=Be(o,"maxBuffer",null);to(g)?o.maxBuffer=eo(g):o.maxBuffer=10485760;let p=0;for(let r=0;r<=n;r++){if(r>0){let e=Math.min(i*r,15e3);await ws(e)}if(d=await cA(e,t,o),p=r+1,d.ok)return d.attempts=p,d;if(d.error.includes("ENOENT"))break;if(2===d.code)break}return d.attempts=p,d},e.execJsCode=async function(e,t={}){e=o.resolve(e);let r=(await import(l.pathToFileURL(e).href)).default;if(!ba(r))throw new Error(`the default export of [${e}] is not a function`);return await r(t)},e.execProcess=function(e,t,r={}){if(!Or(t)&&!Fe(t))throw new Error("args is not an effective array or string");Fe(t)&&(t=[t]);let n=Be(r,"mode");"spawn"!==n&&"exec"!==n&&"execFile"!==n&&(n="spawn");let o=Be(r,"cbStdout"),a=Be(r,"cbStderr"),s=Be(r,"codeCmd");Fe(s)||(s="utf8");let l=Be(r,"useChcp");hn(l)||(l=!1);let c=Be(r,"timeout");(!ke(c)||c<=0)&&(c=null);let u=is();if(!va(n,["spawn","exec","execFile"]))return u.reject(`invalid mode[${n}]`),u;let f=null,d="";try{if("spawn"===n){let r=fa(e,1),n=da(e,1);if('"'===r||'"'===n||"'"===r||"'"===n)throw new Error("prog of spawn doens not need to add quotes");f=i.spawn(e,t,{windowsHide:!0,shell:!1})}else if("exec"===n){let r="";l&&(r="cmd /c chcp 65001>nul &&"),f=i.exec(`${r} ${e} ${t.join(" ")} & exit`,{windowsHide:!0,encoding:s})}else"execFile"===n&&(f=i.execFile(e,t,{windowsHide:!0,encoding:s}))}catch(e){return u.reject(e),u}f.stdout.on("data",e=>{let t="";t="spawn"===n?e.toString(s):e.toString(),d+=t+"\n",ba(o)&&o(t)}),f.stderr.on("data",e=>{let t="";t="spawn"===n?e.toString(s):e.toString(),d+=t+"\n",ba(a)&&a(t)});let g=null,p=!1;return null!==c&&(g=setTimeout(()=>{p=!0,f&&f.pid&&aA(f.pid).catch(()=>{})},c)),f.on("close",e=>{null!==g&&clearTimeout(g),p?u.reject(`timeout[${c}ms]:\n${d}`):0!==e?u.reject(`code[${e}]:\n${d}`):u.resolve(d)}),f.on("error",e=>{null!==g&&clearTimeout(g),u.reject(e)}),u},e.execProcessKillPid=aA,e.filepathToTree=function(e,t={}){if(!Or(e))return{};let r=Be(t,"delimiter");Fe(r)||(r="❯");let n=Be(t,"bindRoot");Fe(n)||(n="");let i=Fe(n),o="";o=i?n:"root";let a=Be(t,"soryItems"),s=Dr(e,(e,t)=>{"folder"!==e.type&&"file"!==e.type&&(e.type="file");let n=(e=>{let t=ua(e=(e=e.replace(/\\\\/g,"\\")).replace(/\\/g,"/"),"/");return{ss:t,cfp:Do(t,r)}})(e.path);return{ind:t,type:e.type,ss:n.ss,data:Vi(e)}}),l=e=>{let t=gn(e),n=[];for(let i=0;i<t;i++){let t=[];for(let r=0;r<=i;r++)t.push(e[r]);let o=Do(t,r);n.push({id:o,name:e[i]})}return n},c=-1,u=[],f={};Cr(s,e=>{let t=null;t=[o];let n=null;n=o;let i=gn(e.ss)-1;Cr(e.ss,(o,a)=>{let s=a<i||"folder"===e.type;t.push(o);let d=null,g=null;a===i&&(d=e.ind,g=e.data);let p=Do(t,r),h=l(t);if(Ne(f,p)){let t=f[p],r="folder"===Be(t,"_type","");if(!r&&s)throw console.log("kpLv[id]",t),console.log("v",e),new Error(`id[${p}] is unrecognized from a file to folder`);if(!r&&!s)throw console.log("kpLv[id]",t),console.log("v",e),new Error(`id[${p}] get repeat data from two files`);if(r&&!s)throw console.log("kpLv[id]",t),console.log("v",e),new Error(`id[${p}] is unrecognized from a folder to file`);if(Ce(f[p].data)&&Ce(g))throw console.log("kpLv[id]",t),console.log("v",e),new Error(`id[${p}] get repeat data from two folders`);if(null===f[p].data&&Ce(g)){f[p]._indOri=d,f[p].data=g;let e=f[p]._indNormalize,t=u[e];u[e]={...g,type:t.type,path:t.path}}}else{c++;let e=c,r=null;r=s?{_indOri:d,_indNormalize:e,ns:gn(t),ts:Vi(t),pathInfors:h,_type:"folder",type:"array",numOfChilren:-1,id:p,parentId:n,text:o,children:[],data:g}:{_indOri:d,_indNormalize:e,ns:gn(t),ts:Vi(t),pathInfors:h,_type:"file",type:"node",numOfChilren:-1,id:p,parentId:n,text:o,data:g},f[p]=r,u.push({...Be(f[p],"data",{}),type:f[p]._type,path:"/"+Do(t,"/")})}n=p})});let d=dA(f);if(d=Ta(d,"id"),d=Ta(d,"ns"),ba(a)){let e=[];Cr(yA(d,"ns"),(t,r)=>{Cr(yA(t,"parentId"),(t,n)=>{let i=a(t,n,r);e=[...e,...i]})}),d=e}let g=[],p=[];Cr(d,e=>{"folder"===e._type?g.push(e):p.push(e)});let h=yA(g,"ns"),A=yA(p,"ns"),m=fA(Dr(g,"ns")),I=fA(Dr(p,"ns")),y=null;{let e=[o];y=[{_indOri:null,_indNormalize:null,ns:gn(e),ts:Vi(e),pathInfors:l(e),_type:"folder",type:"array",numOfChilren:-1,id:o,parentId:"",text:o,children:[],data:null}]}let v={};v[o]="0.children";let b={};b[o]="0";for(let e=2;e<=m;e++){Cr(h[e],e=>{let t=Be(v,e.parentId,"");if(!Fe(t))throw console.log("kpPathFd",v),console.log("v",e,e.parentId),new Error(`invalid parentId[${e.parentId}] in folder`);let r=Be(y,t);if(xe(r)||vu(y,t,[]),r=Be(y,t),!Ce(hd(r,{id:e.id}))){r.push({...e,children:[]});let n=`${t}.${gn(r)-1}`;v[e.id]=`${n}.children`,b[e.id]=n}})}let w=Vi(y),B={};for(let e=2;e<=I;e++){Cr(A[e],e=>{let t=Be(v,e.parentId,"");if(!Fe(t))throw console.log("kpPathFd",v),console.log("v",e,e.parentId),new Error(`invalid parentId[${e.parentId}] in file`);let r=Be(y,t);if(!xe(r))throw console.log("treeItems",y),console.log("k",t),console.log("v",e),new Error("無預先建置資料夾");if(!Ce(hd(r,{id:e.id}))){r.push(e);let n=`${t}.${gn(r)-1}`;B[e.id]=n,b[e.id]=n}})}return{treeItems:y,treeItemsFolder:w,kpPath:b,fpsNormalize:u}},e.files2data=function(e){let t=is(),r=Dr(e,function(e){return{name:e.name,size:e.size,type:e.type}});return ls(e).then(function(e){let n=Dr(e,function(e){return{b64:e}}),i=vA(r,n);t.resolve(i)}),t},e.flattenToConn=xu,e.flattenTree=function(e,t={}){if(xe(e)){if(0===e.length)return[]}else{if(!Ee(e))return[];if(Hr(e))return[]}let r=Be(t,"bindKey",null);Fe(r)||(r="id");let n=Be(t,"bindChildren",null);Fe(n)||(n="children");let i=!1;Ee(e)&&(i=!0,e=[e]);let o=[];return Cu(e,(e,t,i)=>{let a=Be(e,r,null),s=Be(e,n,null);if(a){let r=function(e){let t=[e[0]];for(let r=1;r<e.length;r++){let i=e[r];t.push(n),t.push(i)}return t}([...i,t]);if(o.push({...e,level:(gn(r)-1)/2,nk:r}),s)return s}}),i&&(o=o[0]),o},e.floor=function(e,t=0){return Eo(t)||(t=0),t=eo(t),ke(e)?new oc(e).toDecimalPlaces(t,oc.ROUND_FLOOR).toNumber():""},e.fsBuildReadStreamText=function(e){if(!nA(e))throw new Error("fp is not a file");let t=_i(),r=a.createReadStream(e,{encoding:"utf8"});return t.emit("create"),c.createInterface({input:r,crlfDelay:1/0}).on("line",e=>{t.emit("line",e)}),r.on("close",()=>{t.emit("close")}),t},e.fsBuildWriteStreamText=function(){let e=null;return{create:t=>{let r=is();return e=a.createWriteStream(t,{flags:"w",encoding:"utf8"}),e.on("finish",()=>{r.resolve()}),e.on("error",e=>{r.reject(e)}),r},write:t=>{e.write(t+"\n")},end:()=>{let t=is();return e.on("close",()=>{t.resolve()}),e.end(),t}}},e.fsCleanFolder=function(e){return BA(e,{path:o,fs:a})},e.fsCleanFolderCore=BA,e.fsCopyFile=function(e,t,r={}){return EA(e,t,{path:o,fs:a,...r})},e.fsCopyFileCore=EA,e.fsCopyFolder=function(e,t,r={}){return xA(e,t,{path:o,fs:a,...r})},e.fsCopyFolderCore=xA,e.fsCreateFile=function(e,t,r={}){return SA(e,t,{fs:a,...r})},e.fsCreateFileCore=SA,e.fsCreateFolder=kA,e.fsCreateFolderCore=wA,e.fsDeleteFile=function(e){return NA(e,{fs:a})},e.fsDeleteFileCore=NA,e.fsDeleteFileSafe=async function(e,t={}){return await qA(e,{fs:a,...t})},e.fsDeleteFileSafeCore=qA,e.fsDeleteFolder=HA,e.fsDeleteFolderCore=MA,e.fsDeleteFolderSafe=async function(e,t={}){return await LA(e,{fs:a,...t})},e.fsDeleteFolderSafeCore=LA,e.fsDownloadFile=async function(e,t){return UA(e,t,{fs:a,Readable:u.Readable})},e.fsDownloadFileCore=UA,e.fsEvem=function(e={}){let t=Be(e,"fd");Fe(t)||(t="./_evps");let r=Be(e,"polling");hn(r)||(r=!1);let n=Be(e,"timeInterval");to(n)||(n=100),n=eo(n);let i=Be(e,"timeBinaryInterval");to(i)||(i=300),i=eo(i);let s=Be(e,"keySys");Fe(s)||(s="[::pkg_content::]"),TA(t)||kA(t);let l=YA(t,{polling:r,timeInterval:n,timeBinaryInterval:i});l.on("change",e=>{if("add"!==e.type&&"change"!==e.type)return;let t=OA(e.fp),r="";try{r=a.readFileSync(e.fp,"utf8"),r=$a(r)}catch(e){}Ce(r)&&c.emit(t,{[s]:r})});let c=new f.EventEmitter,u=c.emit;return c.emit=function(e,r){let n=!1;if(Ce(r)&&(n=Ne(r,s)),n){let t=Be(r,s,null),n=Be(t,"pkg",""),i=Be(t,"time","");return u.call(this,e,n,i)}((e,r)=>{let n=o.resolve(t,e);De(r)||(r=An(r)),a.writeFileSync(n,r,"utf8")})(e,{pkg:r,time:RA()})},c.clear=()=>{l.clear(),HA(t)},c},e.fsExists=function(e){return tA(e,{fs:a})},e.fsExistsCore=tA,e.fsGetFileBasicHash=function(e,t={}){return jA(e,{fs:a,crypto:g,...t})},e.fsGetFileBasicHashCore=jA,e.fsGetFileHash=function(e,t={}){return VA(e,{fs:a,crypto:g,...t})},e.fsGetFileHashCore=VA,e.fsGetFileXxHash=function(e,t={}){return zA(e,{fs:a,...t})},e.fsGetFileXxHashCore=zA,e.fsGetFilesInFolder=function(e,t=1){return XA(e,t,{path:o,fs:a})},e.fsGetFilesInFolderCore=XA,e.fsGetFilesWithHashInFolder=WA,e.fsGetFilesWithHashInFolderCore=_A,e.fsGetFolderBasicHash=function(e,t={}){return KA(e,{path:o,fs:a,crypto:g,...t})},e.fsGetFolderBasicHashCore=KA,e.fsGetFoldersInFolder=function(e,t=1){return $A(e,t,{path:o,fs:a})},e.fsGetFoldersInFolderCore=$A,e.fsIsFile=nA,e.fsIsFileCore=rA,e.fsIsFolder=TA,e.fsIsFolderCore=bA,e.fsMergeFiles=async function(e,t,r={}){return ZA(e,t,{fs:a,...r})},e.fsMergeFilesCore=ZA,e.fsReadJson=function(e){let t=null,r=iA(e,{fs:a});if(r.error)return r;let n=r.success,i=null;try{i=JSON.parse(n)}catch(e){t=e}return null!==t?{error:t}:{success:i}},e.fsReadText=oA,e.fsReadTextCore=iA,e.fsRenameFile=function(e,t){return em(e,t,{fs:a})},e.fsRenameFileCore=em,e.fsRenameFolder=function(e,t){return tm(e,t,{fs:a})},e.fsRenameFolderCore=tm,e.fsSrlog=function(e={}){let t=Be(e,"fdSys","");Fe(t)||(t=o.resolve(),t=t.replaceAll("\\","/"));let n=Be(e,"fdLog","");Fe(n)||(n="./syslog"),TA(n)||kA(n);let i=Be(e,"dlm","");Fe(i)||(i="ꓹ");let s=Be(e,"useTime",null);hn(s)||(s=!0);let l=Be(e,"useLoc",null);hn(l)||(l=!0);let c=Be(e,"useLocRela",null);async function u(e,t,...o){let c=(()=>{let e=r().format("YYYY-MM-DD");return`${n}/${e}.log`})(),u=Dr(o,e=>{let t="";return t=Ee(e)||xe(e)?JSON.stringify(e):hn(e)?e?"true":"false":ja(e),t}),f="";s&&(f=`[${e}]\n`,a.appendFileSync(c,f,"utf8")),l&&(f=`[${t}]\n`,a.appendFileSync(c,f,"utf8")),f=`${Do(u,`${i} `)}\n\n`,a.appendFileSync(c,f,"utf8")}return hn(c)||(c=!0),function(...e){let r="";s&&(r=RA());let n="",i="",o=[];if(l){if(o=ua((new Error).stack,"\n"),Cr(o,e=>{if((e=la(e)).indexOf("file:")<0)return!0;if(e.indexOf("fsSrlog.mjs")>=0)return!0;return Cr(ua(e," "),e=>{if(e.indexOf("file:")>=0)return n=e,!1}),!Fe(n)&&void 0}),!Fe(n))throw console.log("stackLines",o),new Error("can not parse stackLines");"("===fa(n,1)&&(n=ga(n,1)),")"===da(n,1)&&(n=Ja(n,1));try{n=decodeURIComponent(n)}catch(e){console.log(e)}i=n,i=ga(i,8),i=i.replace(t,"")}let a=[];s&&(a=[...a,`[${r}]`]);let f="";l&&(f=n,c&&(f=i),a=[...a,`[${f}]`]),a=[...a,...e],console.log(...a),u(r,f,...e)}},e.fsSyncFolder=function(e,t,r={}){return im(e,t,{path:o,fs:a,crypto:g,...r})},e.fsSyncFolderCore=im,e.fsTask=function(e,t={}){let r=Be(t,"fdStorage","");Fe(r)||(r="./_tkfs");let n=Be(t,"levelLimit","");to(n)||(n=1),n=eo(n);let i=Be(t,"typeHash","");Fe(i)||(i="md5");let o=Be(t,"timeInterval");Aa(o)||(o=6e4),o=eo(o),kA(r);let s=_i(),l=!1,c=`${r}/fpHash.json`,u=`${r}/fpResult.json`,f=async()=>{if(!0===l)return;let t=(()=>{let e={};try{e=$a(a.readFileSync(c,"utf8"))}catch(e){}return e})(),r=await(async()=>{let t={};return TA(e)?(Cr(await WA(e,n,{type:i}),e=>{t[e.path]=e.hash}),t):t})(),o=Dr(t,(e,t)=>({path:t,hash:e})),u=Dr(r,(e,t)=>({path:t,hash:e}));Cr(rm(o,u,"path").infor,(e,n)=>{if("same"===e)return!0;let i=Be(t,n,""),o=Be(r,n,""),u="";u="del"===e?i:o;let f=e,d=n,g=FA(n);l=!0;let p=is();return s.emit("change",{type:f,fp:d,fn:g,hash:u,pm:p}),p.then(()=>{let e=Vi(t);e[d]=r[d],(e=>{try{let t=An(e);a.writeFileSync(c,t,"utf8")}catch(e){}})(e)}).finally(()=>{l=!1}),!1})},d=()=>{let e={};try{e=$a(a.readFileSync(u,"utf8"))}catch(e){}return e},g=(e={})=>{try{let t=An(e);a.writeFileSync(u,t,"utf8")}catch(e){}},p=setInterval(()=>{f().catch(()=>{})},o);return s.getResult=(e,t)=>{let r=`${e}|${t}`,n=Be(d(),r,[]);return xe(n)||console.log(`result for key[${r}] is not an array`),n},s.getAndEliminateResult=(e,t)=>{let r=`${e}|${t}`,n=d(),i=Be(n,r,[]);return xe(i)||console.log(`result for key[${r}] is not an array`),n=((e,t)=>{let r={};return Cr(e,(e,n)=>{Be(ua(n,"|"),0,"")!==t&&(r[n]=e)}),r})(n,e),g(n),i},s.setResult=(e,t,r)=>{xe(r)||(console.log("result is not an array, default to []"),r=[]);let n=`${e}|${t}`,i=d();i[n]=r,g(i)},s.clear=()=>{clearInterval(p)},s},e.fsTaskCp=function(e,t,r={}){TA(e)||kA(e),TA(t)||kA(t);let n=`${e}/fpHash.json`,i=`${t}/fpHash.json`,o=e=>{let t={};try{t=$a(a.readFileSync(e,"utf8"))}catch(e){}return t},s=(e,t)=>{try{let r=An(t);a.writeFileSync(e,r,"utf8")}catch(e){}},l=(e,t)=>Be(o(e),t,""),c=(e,t,r)=>{let n=o(e);n[t]=r,s(e,n)},u=(e,t)=>{let r=o(e);Ne(r,t)&&delete r[t],s(e,r)},f=()=>o(n),d=e=>s(n,e),g=e=>l(n,e),p=()=>o(i),h=e=>s(i,e),A=e=>l(i,e),m=(e,t)=>c(i,e,t),I=e=>u(i,e),y=e=>{let t=[];return Cr(e,(e,r)=>{t.push({fp:r,hash:e})}),t},v={buildSrc:()=>{let e=_i();return e.set=(t,r)=>{((e,t)=>{c(n,e,t)})(t,r),e.emit("set",{type:"set",fp:t,hash:r})},e.get=g,e.remove=t=>{(e=>{u(n,e)})(t),e.emit("remove",{type:"remove",fp:t})},e.readKp=f,e.writeKp=d,e},buildTar:()=>{let e=_i(),t=qu(300),r=om(n);return r.on("change",r=>{t(()=>{(async()=>{let t=is(),r=f();if(!Ce(r))return t.resolve("no src"),t;let n=p(),i=y(r),o=rm(y(n),i,"fp",{withInfor:!1}),a=is();return a.then(e=>{h(r)}).catch(()=>{}),e.emit("change",{kpSrc:r,kpTar:n,kpCmp:o,pm:a}),t})().catch(()=>{})})}),e.set=m,e.get=A,e.remove=I,e.readKp=p,e.writeKp=h,e.clear=r.clear,e}};return v},e.fsTreeFolder=function(e,t=1){return PA(e,t,{path:o,fs:a})},e.fsTreeFolderCore=PA,e.fsTreeFolderWithHash=function(e,t=1,r={}){return nm(e,t,{path:o,fs:a,crypto:g,...r})},e.fsTreeFolderWithHashCore=nm,e.fsWatchFile=om,e.fsWatchFolder=YA,e.fsWriteJson=function(e,t,r={}){let n=null;if(!Ee(t)&&!xe(t))return{error:"inp is not an object or array"};let i=Be(r,"useFormat",null);hn(i)||(i=!1);let o="";try{o=i?JSON.stringify(t,null,2):JSON.stringify(t)}catch(e){n=e}return null!==n?{error:n}:am(e,o,{fs:a})},e.fsWriteText=function(e,t){return am(e,t,{fs:a})},e.fsWriteTextCore=am,e.genGradientColor=function(e){if(Rr(e))return{};let t;try{t=yu.toRgba(e)}catch(e){return{}}function r(e,t){return e.a=t,yu.toRgbaString(e)}return{linearGradient:{x1:0,x2:0,y1:0,y2:1},stops:[[0,r(t,.4)],[1,r(t,.9)]]}},e.genID=Lu,e.genIDSeq=function(){return fm()},e.genPm=is,e.getBufferSize=pm,e.getClearPathName=DA,e.getCsvStrFromData=hm,e.getDataFromExcelFileU8Arr=Im,e.getDataFromExcelFileU8ArrDyn=async function(e,t,r){Or(r)||(r=["https://cdn.sheetjs.com/xlsx-0.20.3/package/dist/xlsx.full.min.js"]),await gc(r);let n=Im(e,t);return""!==Be(n,"error","")?Promise.reject(n.error):n},e.getEnv=function(){let e=yn(),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=function(e){let t="";if(bm(e))t=e.message;else{if(De(e))return e;if(Ee(e))return Ne(e,"message")?e.message:JSON.stringify(e);if(xe(e))return JSON.stringify(e);t=ja(e)}return t},e.getExcelU8ArrFromData=function(e,t="data"){if(!Or(e)){return{error:"no data"}}Fe(t)||(t="data");let r=null,n=Vh(e,t);return Ne(n,"error")?n:(r=wm(n),Ne(r,"error"),r)},e.getExcelU8ArrFromWorkbook=wm,e.getExcelWorkbookFromData=Vh,e.getExcelWorkbookFromWorksheet=zh,e.getExcelWorksheetFromData=wn,e.getFileAccept=Id,e.getFileBasicHash=Wm,e.getFileHash=async function(e,t={}){if(!ps(e)&&!_m(e))return console.log("inp",e),Promise.reject("inp is not a Blob or File");let r=Be(t,"type","");Fe(r)||(r="sha512");let n=Be(t,"chunkSize");return ke(n)||(n=67108864),n=Hn(n),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"},r)?"xxhash64"===r?Km(e,t):Wm(e,t):Promise.reject(`type[${r}] must be one of [ 'md5', 'sha1', 'sha256', 'sha384', 'sha512', 'xxhash64' ]`)},e.getFileName=FA,e.getFileNameExt=function(e){if(!Fe(e))return"";let t=zo(FA(e),".");if(gn(t)<=1)return"";let r="";try{r=Sa(t)}catch(e){}return r},e.getFileTrueName=OA,e.getFileType=md,e.getFileXxHash=Km,e.getGlobal=vn,e.getObjSize=function(e){let t=0,r=function e(r){if(null!=r)switch(typeof r){case"number":t+=8;break;case"string":t+=2*r.length;break;case"boolean":t+=4;break;case"object":let n=Object.prototype.toString.call(r).slice(8,-1);if("Object"===n||"Array"===n)for(let t in r)r.hasOwnProperty(t)&&e(r[t]);else t+=2*r.toString().length}return t}(e),n=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"}(r);return{int:r,str:n}},e.getPathParent=QA,e.getTimeBetween=function(e,t,r="days"){let n=tI(r);if(""===n)return[];let i=rI(e,r),o=rI(t,r);return null===i||null===o||e>=t?[]:Dr(eI(o.diff(i,r)+1),function(e){return i.clone().add(e,r).format(n)})},e.getTimeFromUnit=tI,e.getTimeHp=nI,e.getTimeObject=rI,e.getTimeRange=function(e,t){if(!Cg(e))return"無起始時間";if(void 0===t&&(t=e),!Cg(t))return"結束時間格式錯誤";let n=r(e,"YYYY-MM-DDTHH:mm:ss"),i=r(t,"YYYY-MM-DDTHH:mm:ss"),o=n.format("YYYY-MM-DD"),a=i.format("YYYY-MM-DD");if(o===a){let r=i.format("HH:mm");if(e===t)return iI(e)+" 至 無";if(e<t)return iI(e)+" 至 "+r;if(e>t)return iI(e)+" 至 "+r+" (起始時間大於結束時間)"}else{if(o<a)return iI(e)+" 至 "+iI(t);if(o>a)return iI(e)+" 至 "+iI(t)+" (起始時間大於結束時間)"}return""},e.getUserAgent=oI,e.getUserAgentDyn=async function(e=null,t){return Or(t)||(t=["https://cdn.jsdelivr.net/npm/ua-parser-js@2.0.3/dist/ua-parser.min.js"]),await gc(t),oI(e)},e.getltdtkeys=_r,e.haskey=Ne,e.html2str=async function(e){if(!Fe(e))return"";let t=await async function(){let e="htmlToText";if(ba(Be(I,e)))return I;if(ba(Be(I,["default",e])))return I.default;let t=globalThis,r=null;if(await bs(()=>(r=Be(t,"ht",null),Ce(r)),{attemptNum:4e3,timeInterval:50}),ba(Be(r,e)))return r;if(ba(Be(r,["default",e])))return r.default;throw console.log("ht",I,"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=function(e,t={}){return Fe(e)?fs.decode(e,t):""},e.htmlEncode=ds,e.importResources=gc,e.interp1=function(e,t,r={}){if(!xe(e))return{err:"ps is not an array"};{let e=!ke(t),r=!xe(t);if(e&&r)return{err:"px is not a number or an array"}}let n=function(e,t={}){if(gn(e)<=0)return[];let r=Be(t,"keyX");Fe(r)||(r="x");let n=Be(t,"keyY");Fe(n)||(n="y");let i=[];return Cr(e,e=>{let t=null,o=null;xe(e)&&gn(e)>=2?(t=Be(e,0),o=Be(e,1)):(t=Be(e,r,null),o=Be(e,n,null)),ke(t)&&ke(o)&&(t=kn(t),o=kn(o),i.push({x:t,y:o}))}),i}(e,r);if(Be(n,"err"))return Be(n,"err");if(0===gn(n))return{err:"ps(length=0) is not an effective array",ps:e,psEff:n};if(1===gn(n))return{err:"ps(length=1) is one point only",ps:e,psEff:n};let i=function(e){let t=!0,r=!0;for(let n=1;n<gn(e);n++){let i=e[n-1],o=e[n];if(t&&i.x>o.x&&(t=!1),r&&i.x<o.x&&(r=!1),i.x===o.x)return{err:`x can not be equal: i=${n}, x=${i.x}`}}return t?lI:r?cI:"no"}(n);if("no"===i)return{err:"psEff is not increasing or decreasing"};i===cI&&(i=lI,n=Ua(n));let o=!xe(t);o&&(t=[t]);let a=function(e,t={}){if(gn(e)<=0)return[];let r=Be(t,"keyX");Fe(r)||(r="x");let n=[];return Cr(e,e=>{let t=null;t=ke(e)?kn(e):xe(e)&&gn(e)>=1?Be(e,0):Be(e,r,null),ke(t)&&(t=kn(t),n.push({x:t}))}),n}(t,r),s=Be(r,"mode");"linear"!==s&&"stairs"!==s&&"blocks"!==s&&(s="linear");let l,c=Dr(a,(e,t)=>{let i=Be(e,"x"),o=null;try{"linear"===s?o=function(e,t){let r=uI(e,t);if(r!==aI)return r;let n=null;for(let r=1;r<gn(e);r++){let i=e[r-1],o=e[r];if(i.x<=t&&t<=o.x){n=((t-i.x)*o.y+(o.x-t)*i.y)/(o.x-i.x);break}}return null===n?{err:sI}:n}(n,i):"blocks"===s?o=function(e,t){let r=uI(e,t);if(r!==aI)return r;let n=null;for(let r=1;r<gn(e);r++){let i=e[r-1],o=e[r],a=i.x,s=o.x;if(a<=t&&t<=s){n=o.y;break}}return null===n?{err:sI}:n}(n,i):"stairs"===s&&(o=function(e,t,r={}){let n=Be(r,"xMin");if(ya(n)){if(n>e[0].x)return{err:`xMin=${n} > ps[0].x=${e[0].x}`};n===e[0].x||(e=[{x:n,y:e[0].y},...e])}let i=Be(r,"xMax");if(ya(i)){if(i<e[gn(e)-1].x)return{err:`xMax=${i} < ps[size(ps)-1].x=${e[gn(e)-1].x}`};if(i===e[gn(e)-1].x);else{let t={x:i,y:e[gn(e)-1].y};e=[...e,t]}}let o=uI(e,t);if(o!==aI)return o;let a=null;for(let r=0;r<gn(e);r++){let n=Be(e,r-1,null),i=Be(e,r,null),o=Be(e,r+1,null),s=i.x;n&&(s=(n.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:sI}:a}(n,i,r))}catch(e){o={err:e.toString()}}return o});return l=o?c[0]:c,l},e.isDate=function(e){let t=e;return Fe(e)&&(t=new Date(e)),ke(e)&&(t=Hn(e),t=new Date(e)),t instanceof Date&&!isNaN(t)},e.isDev=function(){return!!location&&ns(location.href,"localhost")},e.isEle=wr,e.isEleExistByID=function(e){return!!Fe(e)&&!(null===document.getElementById(e))},e.isEmail=function(e){return!!Fe(e)&&/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(e)},e.isErr=bm,e.isIE=Pu,e.isNarrow=function(e){if(!yn())return!1;let t=window.innerWidth>0&&window.innerWidth<=1024,r=!1;if(e){let t=Be(e,"clientWidth",0);r=t>0&&t<=700}return t||r},e.isStrHasCapital=pI,e.isStrHasLetter=hI,e.isStrHasLowerCase=AI,e.isStrHasNumber=mI,e.isStrHasSpace=II,e.isStrHasSymbol=yI,e.isUserIdentify=function(e){let t=is();if(!Fe(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 r=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)),n=parseInt(e.substring(10,11));return r%10!=0&&10-r%10!==n?(t.reject("非有效身份證"),t):(t.resolve(),t)},e.isUserName=function(e){let t=is();return Fe(e)?(t.resolve(),t):(t.reject("請填入姓名"),t)},e.isUserPw=function(e,t={}){let r=[],n=Be(t,"useKeyForError",null);hn(n)||(n=!1);let i=Be(t,"useOnlyOneError",null);if(hn(i)||(i=!1),De(e)||(n?r.push("keyInvalidPassword"):r.push("密碼非有效字串")),gn(r)>0)throw new Error(r[0]);let o=Be(t,"numLenMin","");(!Ln(o)||eo(o)<0)&&(o=8),o=eo(o);let a=Be(t,"numLenMax","");if((!Ln(a)||eo(a)<0)&&(a=30),a=eo(a),o>a&&(n?r.push("keyLimNumLenMinOrMax"):r.push("設定密碼最小長度大於最大長度")),gn(r)>0)throw new Error(r[0]);let s=Be(t,"noSpace",null);if(hn(s)||(s=!0),s&&(II(e)&&(n?r.push("keyLimHasSpace"):r.push("密碼不可包含空白字元")),i&&gn(r)>0))throw new Error(r[0]);let l=Be(t,"onlyAscii",null);if(hn(l)||(l=!0),l&&(/[^\x20-\x7e]/.test(e)&&(n?r.push("keyLimNonAsciiChar"):r.push("密碼僅允許使用英文大小寫、數字及特殊符號")),i&&gn(r)>0))throw new Error(r[0]);if(gn(e)<o&&(n?r.push("keyLimNumLenMin"):r.push(`密碼長度須大於等於${o}個字元`)),i&&gn(r)>0)throw new Error(r[0]);if(gn(e)>a&&(n?r.push("keyLimNumLenMax"):r.push(`密碼長度須小於等於${a}個字元`)),i&&gn(r)>0)throw new Error(r[0]);let c=Be(t,"requireLetter",null);hn(c)||(c=!1);let u=Be(t,"requireUppercase",null);hn(u)||(u=!0);let f=Be(t,"requireLowercase",null);hn(f)||(f=!0);let d=Be(t,"requireDigit",null);hn(d)||(d=!0);let g=Be(t,"requireSpecial",null);if(hn(g)||(g=!0),c&&!hI(e)&&(n?r.push("keyLimRequireLetter"):r.push("密碼須包含至少一個英文字母")),i&&gn(r)>0)throw new Error(r[0]);if(u&&!pI(e)&&(n?r.push("keyLimRequireUppercase"):r.push("密碼須包含至少一個大寫英文字母")),i&&gn(r)>0)throw new Error(r[0]);if(f&&!AI(e)&&(n?r.push("keyLimRequireLowercase"):r.push("密碼須包含至少一個小寫英文字母")),i&&gn(r)>0)throw new Error(r[0]);if(d&&!mI(e)&&(n?r.push("keyLimRequireDigit"):r.push("密碼須包含至少一個數字")),i&&gn(r)>0)throw new Error(r[0]);if(g&&!yI(e)&&(n?r.push("keyLimRequireSpecial"):r.push("密碼須包含至少一個特殊符號")),i&&gn(r)>0)throw new Error(r[0]);let p=Be(t,"forbiddenChars",null);if(xe(p)||(p=[]),gn(p)>0){for(let t of p)if(e.includes(t)){if(n){r.push("keyLimForbiddenChar");break}r.push(`密碼不可包含字元:${t}`)}if(i&&gn(r)>0)throw new Error(r[0])}let h=Be(t,"commonPasswordBlacklist",null);if(xe(h)||(h=CI),gn(h)>0){let t=e.toLowerCase();if(h.some(e=>De(e)&&t===e.toLowerCase())&&(n?r.push("keyLimCommonPassword"):r.push("此密碼為常見弱密碼,不允許使用")),i&&gn(r)>0)throw new Error(r[0])}let A=Be(t,"account",""),m=Be(t,"noConsecutiveCharsFromAccount",null);hn(m)||(m=!1);let I=Be(t,"consecutiveCharsMinMatch","");if(to(I)||(I=3),I=eo(I),m&&De(A)&&gn(A)>=I){let t=[...A.toLowerCase()],o=e.toLowerCase(),a=!1;for(let e=0;e<=t.length-I;e++){let r=t.slice(e,e+I).join("");if(o.includes(r)){a=!0;break}}if(a&&(n?r.push("keyLimConsecutiveCharsFromAccount"):r.push(`密碼不可包含與帳號相同之${I}個以上連續字元`)),i&&gn(r)>0)throw new Error(r[0])}if(gn(r)>0)throw new Error(r.join(" | "));return!0},e.isWindow=yn,e.isab=y,e.isarr=xe,e.isarr0=Ur,e.isbigint=Ya,e.isblob=ps,e.isbol=hn,e.isday=Nu,e.isearr=Or,e.iseobj=Ce,e.iser=Rr,e.isernot=dd,e.isestr=Fe,e.isfile=_m,e.isfun=ba,e.isint=Ln,e.ismonth=Bn,e.isn0int=fI,e.isn0num=dI,e.isnan=Se,e.isnbr=Qe,e.isnint=Yh,e.isnnum=function(e){return!!ke(e)&&Hn(e)<0},e.isnull=Mr,e.isnum=ke,e.isobj=Ee,e.isobj0=Hr,e.isp0int=Eo,e.isp0num=gI,e.ispint=to,e.ispm=vs,e.ispnum=Aa,e.isstr=De,e.isstr0=Lr,e.istime=Cg,e.istimeTZ=EI,e.istimems=vI,e.istimemsTZ=BI,e.isu16arr=gm,e.isu8arr=es,e.isundefined=qr,e.j2o=$a,e.judge=function(e,t,r,n={}){if(!ke(e))throw new Error("x1 is not a number");if(!ke(r))throw new Error("x2 is not a number");let i=Be(n,"withPreciseNum");if(hn(i)||(i=!0),i&&(e=$h(e),r=$h(r)),"==="===t)return e===r||xI(e,r);if("!=="===t)return function(e,t){return!xI(e,t)}(e,r);if(">="===t)return e===r||function(e,t){return new oc(e).gte(t)}(e,r);if(">"===t)return function(e,t){return new oc(e).gt(t)}(e,r);if("<="===t)return e===r||function(e,t){return new oc(e).lte(t)}(e,r);if("<"===t)return function(e,t){return new oc(e).lt(t)}(e,r);throw console.log(t),new Error(`invalid op[${t}]`)},e.keysmat2ltdt=DI,e.ltdt2vrtsable=function(e,t=[]){if(!Or(e))return[];if(!xe(t))return[];let r=!1;if(Cr(e,function(e){Ce(e)||(r=!0)}),r)return[];let n=_r(e),i=[];Cr(e,function(e){let t={};Cr(n,function(r){t[r]={value:e[r].value,style:e[r].style,rowspan:1}}),i.push(t)});let o=Ua(i),a=gn(o);return Cr(n,function(e){if(va(e,t)){let t=so(0,a,0),r=so(0,a,0),n=so(1,a+1,0);Cr(o,function(i,a){if(a>0){Ia(o[a-1][e].value,o[a][e].value)&&(t[a-1]=1,t[a]=1,n[a]=n[a-1]+1),1===t[a-1]&&1===t[a]&&(r[a-1]=0,r[a]=1)}}),Cr(o,function(i,a){1===t[a]&&(1===r[a]?o[a][e].rowspan=n[a]:o[a][e].rowspan=null)})}}),Ua(o)},e.ltdtDiff=function(e,t,r={}){if(!xe(e))return{};if(!xe(t))return{};if(0===gn(e)&&0===gn(t))return{};let n=Be(r,"empty");Fe(n)||(n="∗empty∗");let i=_r(e),o=_r(t),a=FI(i,o),s={};Cr(a,(e,t)=>{s[t]=e});let l=sa(mn(e,a,{empty:n}),mn(t,a,{empty:n}),{...r,mode:"matrix"});return l.dfs=Dr(l.dfs,e=>{let t={};Cr(e,e=>{e.k=s[e.k],t[e.k]=e});let r={};return Cr(a,e=>{r[e]=t[e]}),r}),l},e.ltdtDiffByKey=rm,e.ltdtkeys2mat=mn,e.ltdtkeysheads2mat=In,e.ltdtmapping=function(e,t,r=""){return Or(e)&&Or(t)?Dr(e,e=>_h(e,t,r)):[]},e.ltdtmerge=vA,e.ltdtpick=function(e,t){return Or(e)&&Or(t)?Dr(e,e=>Wh(e,t)):[]},e.ltdtpull=function(e,t,r){return xe(e)&&xe(t)&&Fe(r)&&pr(e,e=>Ee(e))?0===t.length?e:pr(t,e=>Ee(e))?SI(e,t,r):[]:[]},e.mat2ltdt=function(e){if(!Or(e))return[];if(e.length<=1)return[];let t=!1;return Cr(e,function(e){Or(e)||(t=!0)}),t?[]:DI(na(e)[0],(n=null==(r=e)?0:r.length)?Fo(r,1,n):[]);var r,n},e.matConcat=function(e,t){if(!xe(e))return[];if(!xe(t))return[];if(0===gn(e)&&0===gn(t))return[];let r=gn(e),n=gn(Be(e,0,[])),i=gn(t),o=gn(Be(t,0,[])),a=[],s=Math.max(r,i);for(let r=0;r<s;r++){let i=[],s=-1;for(let t=0;t<n;t++){s++;let n=Be(e,`${r}.${t}`,null);i[s]=n}for(let e=0;e<o;e++){s++;let n=Be(t,`${r}.${e}`,null);i[s]=n}a[r]=i}return a},e.matDiff=function(e,t,r={}){return xe(e)&&xe(t)?0===gn(e)&&0===gn(t)?{}:sa(e,t,{...r,mode:"matrix"}):{}},e.matat=function(e,t,r){return Or(e)?Dr(e,function(e){return Co(e,t,r)}):[]},e.now2str=RA,e.now2strp=function(){if(!ba(r))throw new Error("invalid dayjs");return r().format("YYYYMMDDHHmmss")},e.nowDay2str=function(){if(!ba(r))throw new Error("invalid dayjs");return r().format("YYYY-MM-DD")},e.nowms2str=function(){if(!ba(r))throw new Error("invalid dayjs");return r().format("YYYY-MM-DDTHH:mm:ss.SSSZ")},e.nowms2strp=function(){if(!ba(r))throw new Error("invalid dayjs");return r().format("YYYYMMDDHHmmssSSS")},e.o2j=An,e.obj2b64=function(e){let t="";try{t=kI(An(e))}catch(e){t=""}return t},e.obj2pb64=function(e,t){return void 0===e?"":Fe(t)?NI(An({data:e}),t,!0):""},e.obj2str=function(e,t="Uint8Array"){if(qr(e))return"";if(De(t))t=[t];else if(!xe(t))return"";let r="";try{r=JSON.stringify(e,function(e,r){return t.indexOf("Uint8Array")>=0&&(r=TI.u8arr2b64(r)),t.indexOf("Uint16Array")>=0&&(r=TI.u16arr2b64(r)),r})}catch(e){r=""}return r},e.obj2stru8arr=YI,e.obj2u8arr=function(e){let t=[],r=[];if(!Or(e)&&!Ce(e))return null;let n=[],i=[];function o(e){n.push(pm(e)),i.push(e)}try{let a=YI(e);o(jI(a.results)),Cr(a.binarys,e=>{o(e)});let s=n,l=jI(JSON.stringify(s)),c=new Uint8Array(8);ys(pm(l),c),t.push(c),t.push(l),Cr(i,e=>{t.push(e)}),Cr(t,e=>{r=function(e,t){let r=pm(e),n=pm(t),i=new Uint8Array(r+n);return i.set(new Uint8Array(e),0),i.set(new Uint8Array(t),r),i}(r,e)})}catch(e){return null}return r},e.objSortBy=GI,e.objSortByKeys=function(e,t){if(!Ce(e))return{};if(!Or(t))return{};let r={};return Cr(t,(e,t)=>{r[e]=t}),GI(e,(e,t)=>Be(r,t,0))},e.oo=function(e){if(void 0!==e)return $a(An(e))},e.openLink=function(e){if(!Fe(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){return Fe(e)&&Fe(t)?$a(ui(e,t,!0)).data:""},e.pm2resolve=Th,e.pmChain=function(e,t=null){if(!xe(e)){let e=is();return e.reject("pms is not an array"),e}return e.reduce((e,t)=>e.then(t),Promise.resolve(t))},e.pmConvertResolve=Oh,e.pmDebounce=function(e=300){return new function(e){let t=[],r=null,n=null,i="wait";return to(e)||(e=300),e=eo(e),function(o,...a){ba(o)?((null===n||"wait"===i)&&(n=Date.now()),t.push({func:o,input:a,output:null}),null===r&&"wait"===i&&(r=setInterval(()=>{if(null===n)throw new Error("invalid tLast");if("wait"!==i)return;if("wait"===i&&0===t.length)return clearInterval(r),r=null,void(n=null);let o=Date.now();if(o-n>e){i="doing",n=o;let e=t.pop();t=[];let r=e.func(...e.input);vs(r)?r.then(t=>{e.output=t}).catch(t=>{e.output={err:t}}).finally(()=>{i="wait",n=Date.now()}):(e.output=r,i="wait")}"wait"===i&&0===t.length&&(clearInterval(r),r=null,n=null)},20))):console.log("func is not a function")}}(e)},e.pmHook=JI,e.pmHookReject=function(e,t=()=>{}){return ba(e)?(ba(t)||(t=()=>{}),JI(e,e=>{if("afterCatch"===e.mode)return t(e.data)})):null},e.pmIni=function(){return Promise.resolve()},e.pmInvResolve=function(e,t={}){if(!vs(e))throw new Error("pm is not a promise");let r=Be(t,"thenExtractData");hn(r)||(r=!1);let n=is();return e.then(e=>{r&&(e=Be(e,"data"));let t=Be(e,"state",""),i=Be(e,"msg",{});"success"===t?n.resolve(i):"cancelled"===t?n.reject({reason:"cancelled"}):n.reject(i)}).catch(e=>{n.reject(e)}),n},e.pmKeyMutex=function(){return new function(){let e=new Map,t=new Map;return async(r,n)=>{let i=(e.get(r)||Promise.resolve()).then(async()=>await n(),async()=>await n());e.set(r,i.catch(()=>{})),t.set(r,(t.get(r)||0)+1);try{return await i}finally{let n=t.get(r)-1;n<=0?(t.delete(r),e.delete(r)):t.set(r,n)}}}},e.pmMap=function(e,t,r=0){let n={},i=!1,o=is();if(!xe(e)&&!Ee(e))return o.reject("rs is not an array or object"),o;if(0===gn(e))return o.resolve([]),o;let a=!1;if(Ee(e)){a=!0;let t=[];Cr(e,(e,r)=>{t.push({k:r,v:e})}),e=t}let s=jh(r);return s.on("message",function(r){if(i)return;let l,c=s.get();if(ba(t)){let e=c.key,r=c.value;if(a&&(e=c.value.k,r=c.value.v),l=t(r,e),!vs(l))throw new Error("return of fun is not a promise")}else l=c.value;l.then(e=>{n[c.key]=e}).catch(e=>{i=!0,s.clear(),o.reject(e)}).finally(()=>{s.cb(),gn(n)===gn(e)&&o.resolve(dA(n))})}),Cr(e,(e,t)=>{s.push({key:t,value:e})}),o},e.pmQueue=Gh,e.pmSeries=cc,e.pmThrottle=function(){let e=_i(),t=[],r=null,n=!1;return function(i,...o){let a=is();if(!ba(i))return void console.log("func is not a function");let s=Lu();return t.push({id:s,func:i,input:o}),null===r&&(r=setInterval(async()=>{if(n)return;n=!0;let i=t.pop();for(let r=0;r<t.length;r++){let n=t[r].id,i={state:"cancelled"};e.emit(n,i)}if(t=[],i){let t,r=i.id;t=ba(i.func)?await Th(i.func)(...i.input):{state:"error",msg:"fun is not a function"},e.emit(r,t)}n=!1,n||0!==t.length||(clearInterval(r),r=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.preciseNum=$h,e.pseudoRandom=PI,e.pseudoRandomIntRange=function(e=0,t=100,r="start1"){if(Ln(e)||(e=0),e=eo(e),Ln(t)||(t=100),e>(t=eo(t)))throw new Error(`vstart[${e}] > vend[${t}]`);let n=PI(r)*(t-e+1)+e;return n=Math.floor(n),n},e.pseudoRandomIntsNdpRange=function(e=0,t=100,r,n="start1"){if(Ln(e)||(e=0),e=eo(e),Ln(t)||(t=100),t=eo(t),to(r)||(r=1),r=eo(r),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let i=PI(n,!0),o=[],a=t-e;for(let r=0;r<=a;r++){let r=i()*(t-e+1)+e;r=Math.floor(r),o.push(r)}let s=Wa(o,{returnIndex:!0});return s=na(s,r),s},e.pseudoRandomIntsRange=function(e=0,t=100,r,n="start1"){if(Ln(e)||(e=0),e=eo(e),Ln(t)||(t=100),t=eo(t),to(r)||(r=1),r=eo(r),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let i=PI(n,!0),o=[];for(let n=1;n<=r;n++){let r=i()*(t-e+1)+e;r=Math.floor(r),o.push(r)}return o},e.pseudoRandomRange=function(e=0,t=1,r="start1"){if(ke(e)||(e=0),e=Hn(e),ke(t)||(t=1),e>(t=Hn(t)))throw new Error(`vstart[${e}] > vend[${t}]`);return PI(r)*(t-e)+e},e.pseudoRandomsRange=function(e=0,t=1,r=1,n="start1"){if(ke(e)||(e=0),e=Hn(e),ke(t)||(t=1),t=Hn(t),to(r)||(r=1),r=eo(r),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let i=PI(n,!0),o=[];for(let n=1;n<=r;n++){let r=i()*(t-e)+e;o.push(r)}return o},e.queue=jh,e.random=_I,e.randomIntRange=function(e=0,t=100){if(Ln(e)||(e=0),e=eo(e),Ln(t)||(t=100),e>(t=eo(t)))throw new Error(`vstart[${e}] > vend[${t}]`);let r=_I()*(t-e+1)+e;return r=Math.floor(r),r},e.randomIntsNdpRange=function(e=0,t=100,r){if(Ln(e)||(e=0),e=eo(e),Ln(t)||(t=100),t=eo(t),to(r)||(r=1),r=eo(r),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);return function(e,t,r){return t=(r?gr(e,t,r):void 0===t)?1:Mn(t),(b(e)?ty:ry)(e,t)}(so(e,t+1),r)},e.randomIntsRange=function(e=0,t=100,r){if(Ln(e)||(e=0),e=eo(e),Ln(t)||(t=100),t=eo(t),to(r)||(r=1),r=eo(r),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let n=[];for(let i=1;i<=r;i++){let r=_I()*(t-e+1)+e;r=Math.floor(r),n.push(r)}return n},e.randomRange=function(e=0,t=1){if(ke(e)||(e=0),e=Hn(e),ke(t)||(t=1),e>(t=Hn(t)))throw new Error(`vstart[${e}] > vend[${t}]`);return _I()*(t-e)+e},e.randomsRange=function(e=0,t=1,r=1){if(ke(e)||(e=0),e=Hn(e),ke(t)||(t=1),t=Hn(t),to(r)||(r=1),r=eo(r),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let n=[];for(let i=1;i<=r;i++){let r=_I()*(t-e)+e;n.push(r)}return n},e.rang=function(e,t,r=2){if(!ke(e))return[];if(e=Hn(e),!ke(t))return[];if(t=Hn(t),to(r)||(r=2),(r=eo(r))<=0)throw new Error(`num[${r}] <= 0`);let n=(t-e)/r,i=e,o=[];for(let e=0;e<=r;e++)o.push(i),i+=n;return o},e.rep=function(e,t){return Fe(e)&&Eo(t)?iy(e,t):""},e.repObj=function(e,t){return Rr(e)?[]:to(t)?eI(t,go(e)):[]},e.replace=hc,e.replaceObj=function(e,t){return Fe(e)&&Ce(t)?(Cr(t,function(e,t){e=Ee(e)||xe(e)?JSON.stringify(e):ja(e)}),Cr(t,function(t,r){e=hc(e,r,t)}),e):""},e.replacePlus=function(e,t,r,n=null,i){if(!Fe(e)||!Fe(t)||!Fe(r))return"";if(!De(i))return"";let o="[\\s\\S]*";Fe(n)&&(o="[^"+n+"]*");let a=new RegExp(t+o+r,"g");return e.replace(a,i)},e.round=Kh,e.secd=function(e){return ke(e)?1/Fu(e=Hn(e)):null},e.sep=ua,e.sepInt=function(e,t,r=!0){if(!Ln(e))return[];if(!Eo(t))return[];if(!hn(r))return[];let n=oy(e/t),i=e-n*t,o=[];for(let e=1;e<=t;e++){let t=n;e<=i&&(t=n+1),o.push(t)}return r&&(o=Ua(o)),o},e.setIntervalHp=function(e,t=1){let r=vn(),n=yn(),i=e=>{r.setTimeout(e,1)},o=e=>{r.requestAnimationFrame(e)},a=null;a=n?o:i;let s=nI(),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 r=vn(),n=yn(),i=e=>{r.setTimeout(e,1)},o=e=>{r.requestAnimationFrame(e)},a=null;a=n?o:i;let s=nI(),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=ku,e.split=ca,e.str2aes=NI,e.str2b64=kI,e.str2hint=zI,e.str2md5=function(e,t=!1){if(!Fe(e))return"";if(!hn(t))return"";let r=ay(e),n="";return n=t?r.toString(Vn):r.toString(ci),n},e.str2obj=function(e,t="Uint8Array"){if(De(t))t=[t];else if(!xe(t))return{};let r={};try{r=JSON.parse(e,function(e,r){return t.indexOf("Uint8Array")>=0&&(r=TI.b642u8arr(r)),t.indexOf("Uint16Array")>=0&&(r=TI.b642u16arr(r)),r})}catch(e){r={}}return r},e.str2sha512=function(e,t=!1){if(!Fe(e))return"";if(!hn(t))return"";let r=uy(e),n="";return n=t?r.toString(Vn):r.toString(ci),n},e.str2u8arr=jI,e.strCompare=fy,e.strDiff=ia,e.strDiffToHtml=function(e,t,r={}){if(!De(e))return"";if(!De(t))return"";if(""===e&&""===t)return"";let n=Be(r,"useNormNewline");hn(n)||(n=!0),n&&(e=(e=e.replaceAll("\r\n","\n")).replaceAll("\r","\n"),t=(t=t.replaceAll("\r\n","\n")).replaceAll("\r","\n"));let i=zf(),o=ta("file","file",e,t),a=i.html(o,{drawFileList:!1,matching:"none",diffStyle:"char",outputFormat:"line-by-line"}),s=zo(a,"\n"),l="",c=!1;return Cr(s,e=>{'<div class="d2h-code-line">'===la(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>"===la(e)&&(c=!1)}),a=l,a},e.strFindFuzz=function(e,t,r=!1){let n="";if(Fe(e)||ke(e))n=ja(e);else{if(!Or(e))return!!r&&0;n=Do(e,"")}if(""===t)return!r||100;if(Rr(t))return!!r&&0;if(ns(n,t))return!r||100;let i=ua(t," "),o=Dr(i,function(e){return((e,t)=>{let r=new dv([e],{includeScore:!0}).search(t);r=Be(r,0);let n=Be(r,"score",1);return n=1-n,n*=100,n})(n,e)});if(r)return gv(o);{let e=80;return pr(o,function(t){return t>=e})}},e.strFindSimilar=function(e,t){let r="";if(Fe(e)||ke(e))r=ja(e);else{if(!Or(e))return{};r=Do(e,"")}return ke(t)&&(t=ja(t)),Fe(t)&&(t=[t]),Or(t)?function(e,t){let r=[],n=0;for(let i=0;i<t.length;i++){let o=t[i],a=fy(e,o);r.push({target:o,rating:a}),a>r[n].rating&&(n=i)}return{ratings:r,bestMatch:r[n],bestMatchIndex:n}}(r,t=Dr(t,function(e){return ja(e)})):{}},e.strTruncate=eA,e.strdelleft=ga,e.strdelright=Ja,e.strleft=fa,e.strmid=Ac,e.strright=da,e.stru8arr2obj=pv,e.tand=Qu,e.time2day=function(e){return Cg(e)?r(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD"):""},e.time2hour=function(e){return Cg(e)?r(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH"):""},e.time2min=iI,e.timeTZ2day=function(e){return EI(e)?(e=wI.delTZ(e),r(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD")):""},e.timeTZ2expire=function(e,t=null){return EI(e)?hv(e=mv(e),t=mv(t)):{today:null,msg:"",err:"時間格式錯誤"}},e.timeTZ2hour=function(e){return EI(e)?(e=wI.delTZ(e),r(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH")):""},e.timeTZ2min=function(e){return EI(e)?(e=wI.delTZ(e),r(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH:mm")):""},e.timeTZ2past=function(e,t=null){return EI(e)?Av(e=Iv(e),t=Iv(t)):{today:null,msg:"",err:"時間格式錯誤"}},e.timems2day=function(e){return vI(e)?r(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DD"):""},e.timems2hour=function(e){return vI(e)?r(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH"):""},e.timems2min=function(e){return vI(e)?r(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm"):""},e.timems2time=function(e){return vI(e)?r(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm:ss"):""},e.timemsTZ2day=function(e){return BI(e)?(e=wI.delTZ(e),r(e).format("YYYY-MM-DD")):""},e.timemsTZ2expire=hv,e.timemsTZ2hour=function(e){return BI(e)?(e=wI.delTZ(e),r(e).format("YYYY-MM-DDTHH")):""},e.timemsTZ2min=function(e){return BI(e)?(e=wI.delTZ(e),r(e).format("YYYY-MM-DDTHH:mm")):""},e.timemsTZ2past=Av,e.timemsTZ2time=function(e){return BI(e)?(e=wI.delTZ(e),r(e).format("YYYY-MM-DDTHH:mm:ss")):""},e.treeObj=Cu,e.treeToFilepath=function(e,t={}){if(!Or(e))return[];let r=Be(t,"delimiter");Fe(r)||(r="/");let n=Be(t,"bindRoot");Fe(n)||(n="root");let i=[];return Cu(e,(e,t,o)=>{let a=Be(e,"_type","");if("folder"!==a&&"file"!==a)return e;let s=Dr(Be(e,"pathInfors",[]),"name"),l=Be(s,0,"")===n;if(1===gn(s)&&l)return e;l&&(s=Ga(s));let c={type:a,path:r+Do(s,r)};return i.push(c),e},{force:!0}),i},e.trim=za,e.u16arr2b64=UI,e.u16arr2u8arr=LI,e.u8arr2ab=function(e){return es(e)?e.buffer:new ArrayBuffer},e.u8arr2b64=HI,e.u8arr2blob=Xh,e.u8arr2bs=function(e){if(!es(e))return"";let t=e.length,r="";for(let n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r},e.u8arr2obj=function(e){let t=null;if(!es(e))return null;try{let r=8,n=e.slice(0,r),i=e.slice(r,pm(e)),o=ms(n),a=i.slice(0,o),s=i.slice(o,pm(i)),l=yv(a),c=function(e,t){let r=0,n=0,i=[];return Cr(t,t=>{n=r+t;let o=e.slice(r,n);r=n,i.push(o)}),i}(s,JSON.parse(l));t=pv({results:yv(c.shift()),binarys:c})}catch(e){}return t},e.u8arr2str=yv,e.u8arr2u16arr=ts,e.urlParse=function(e){if(!Fe(e))return{};if(!Fe(e=Be(e=zo(e,"?"),"[1]")))return{};let t=zo(e,"&");return t=Dr(t,function(e){return zo(e,"=")}),t=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var i=e[t];gi(n,i[0],i[1])}return n}(t),t},e.verifyValue=function(e,t,r={}){let n=!1,i="";if("isstr"===t)De(e)||(n=!0,i="需要為字串",e="");else if("isnum"===t)ke(e)||(n=!0,i="需要為數字",e=0);else if("isp0num"===t)gI(e)||(n=!0,i="需要為含0的正浮點數",e=0);else if("isn0num"===t)dI(e)||(n=!0,i="需要為含0的負浮點數",e=0);else if("isint"===t)Ln(e)||(n=!0,i="需要為整數",e=0);else if("ispint"===t)to(e)||(n=!0,i="需要為不含0正整數",e=0);else if("isp0int"===t)Eo(e)||(n=!0,i="需要為含0正整數",e=0);else if("isnint"===t)Yh(e)||(n=!0,i="需要為不含0負整數",e=0);else if("isn0int"===t)fI(e)||(n=!0,i="需要為含0負整數",e=0);else if("custom"===t){let t=Be(r,"funCustom");if(!ba(t))throw new Error("invalid opt.funCustom when type='custom'");let o=t(e);if(!hn(o.err))throw new Error("invalid return.err for type='custom'");if(o.err&&!Fe(o.errmsg))throw new Error("invalid return.errmsg when return.err=true for type='custom'");if(!ke(o.value)&!De(o.value))throw new Error("invalid return.value for type='custom'");n=o.err,i=o.errmsg,e=o.value}else if(ba(t)){e=t(e)}else"any"===t?ke(e)||De(e)||(n=!0,i="需要為字串或數字",e=""):(n=!0,i="需要指定驗證類型",e=null);return{value:e,err:n,errmsg:i}},e.waitFun=bs});
23
+ return/[!-/:-@[-`{-~]/.test(e)}function vI(e){if(!Fe(e))return!1;let t="YYYY-MM-DDTHH:mm:ss.SSS";return e===r(e,t).format(t)}function bI(e){let t;return t=da(e,1),"Z"===t?`${e=Ja(e,1)}+00:00`:e}let wI={checkTZ:function(e){let t;return t=da(e,1),"Z"===t||(t=da(e,6),!!/[+|-]\d\d:\d\d/.test(t))},delTZ:function(e){let t;return t=da(e,1),Ja(e,"Z"===t?1:6)},normTZ:bI,sepTZ:function(e){let t=bI(e);return{t:Ja(t,6),tz:da(t,6)}}};function BI(e){if(!Fe(e))return!1;if(!wI.checkTZ(e))return!1;let t=wI.delTZ(e),n="YYYY-MM-DDTHH:mm:ss.SSS";return t===r(t,n).format(n)}function EI(e){if(!Fe(e))return!1;if(!wI.checkTZ(e))return!1;let t=wI.delTZ(e),n="YYYY-MM-DDTHH:mm:ss";return t===r(t,n).format(n)}let CI=["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 xI(e,t){return new oc(e).eq(t)}function DI(e,t){if(!Or(e))return[];if(!Or(t))return[];if(!Or(t[0]))return[];return Dr(t,function(t){let r=ro(e,t);return Cr(r,function(e,t){void 0===e&&(r[t]="")}),r})}var FI=Oa(function(e){return Pr(Sr(e,1,Ag,!0))});var QI=Oa(function(e,t){var r=Sa(t);return Ag(r)&&(r=void 0),Ag(e)?function(e,t,r,n){var i=-1,o=Gr,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;r&&(t=he(t,Ke(r))),n?(o=Jr,a=!1):t.length>=200&&(o=vt,a=!1,t=new It(t));e:for(;++i<s;){var u=e[i],f=null==r?u:r(u);if(u=n||0!==u?u:0,a&&f==f){for(var d=c;d--;)if(t[d]===f)continue e;l.push(u)}else o(t,f,n)||l.push(u)}return l}(e,Sr(t,1,Ag,!0),dr(r)):[]}),SI=QI;function kI(e){if(!Fe(e))return"";let t=si.parse(e);return Vn.stringify(t)}function NI(e,t,r=!1){if(!Fe(e))return"";if(!Fe(t))return"";hn(r)||(r=!1);let n=oi.encrypt(e,t),i="";if(r)i=n.toString();else{let e=n.toString();i=Vn.parse(e).toString(ci)}return i}var qI={exports:{}};!function(e){var t;e.exports=(t=jn(),function(){if("function"==typeof ArrayBuffer){var e=t.lib.WordArray,r=e.init,n=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,n=[],i=0;i<t;i++)n[i>>>2]|=e[i]<<24-i%4*8;r.call(this,n,t)}else r.apply(this,arguments)};n.prototype=e}}(),t.lib.WordArray)}(qI);var MI=Rn(qI.exports);function HI(e){if(!es(e))return"";return MI.create(e).toString(Vn)}function LI(e){return gm(e)?new Uint8Array(e):new Uint8Array}function UI(e){return gm(e)?HI(LI(e)):""}let RI="[Uint8Array]::";let OI="[Uint16Array]::";let TI={tagU8A:RI,u8arr2b64:function(e){return es(e)?RI+HI(e):e},b642u8arr:function(e){return De(e)&&fa(e,14)===RI?Za(e=ga(e,14)):e},tagU16A:OI,u16arr2b64:function(e){return gm(e)?OI+UI(e):e},b642u16arr:function(e){return De(e)&&fa(e,15)===OI?rs(e=ga(e,15)):e}};function YI(e){if(!Ee(e))return{results:"",binarys:[]};if(Hr(e))return{results:"",binarys:[]};let t="",r=[];try{let n=-1;t=JSON.stringify(e,function(e,t){if(es(t)){n+=1;let e=`[Uint8Array]::${n}`;return r.push(t),e}if(gm(t)){n+=1;let e=`[Uint16Array]::${n}`;return r.push(t),e}if(y(t)){n+=1;let e=`[ArrayBuffer]::${n}`;return r.push(t),e}return vm(t)&&(t=t.toString()),t})}catch(e){}return{results:t,binarys:r}}function jI(e){if(!Fe(e))return new Uint8Array;let t;try{t=Za(kI(e))}catch(e){return new Uint8Array}return t}function GI(e,t){if(!Ce(e))return{};if(!ba(t))throw new Error("fun is not a function");let r=Dr(e,(e,r)=>({k:r,v:e,t:t(e,r)}));r=Ta(r,"t");let n={};return Cr(r,e=>{n[e.k]=e.v}),n}function JI(e,t=()=>{}){if(!ba(e))return null;function r(e,t){let r;return Mr(e)||qr(e)?t:(r=Be(e,"data",null),r||e)}return ba(t)||(t=()=>{}),function(){let n,i=is(),o=t({mode:"before",data:arguments});return(Mr(o)||qr(o))&&(o=arguments),e(...o).then(e=>{n=t({mode:"afterThen",data:e}),e=r(n,e),i.resolve(e)}).catch(e=>{n=t({mode:"afterCatch",data:e}),e=r(n,e),i.reject(e)}),i}}function zI(e){if(!De(e))return null;if(""===e)return 0;let t=e.split("").reduce((e,t)=>t.charCodeAt(0)+(e<<6)+(e<<16)-e,0);return t}let VI=0;function PI(e="start1",t=!1){void 0===e?e=(new Date).getTime():"start1"===e&&(VI++,e=VI);let r=624,n=397,i=2147483648,o=2147483647,a=new Array(r),s=625,l=e=>{for(ya(e)?a[0]=e>>>0:(e=ja(e),a[0]=zI(e)),s=1;s<r;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>=r){let c;for(625===s&&l(5489),c=0;c<227;c++)e=a[c]&i|a[c+1]&o,a[c]=a[c+n]^e>>>1^t[1&e];for(;c<623;c++)e=a[c]&i|a[c+1]&o,a[c]=a[c+(n-r)]^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 XI=PI((new Date).getTime(),!0);function _I(){return XI()}function WI(e,t,r){return e==e&&(void 0!==r&&(e=e<=r?e:r),void 0!==t&&(e=e>=t?e:t)),e}var KI=Math.floor,$I=Math.random;function ZI(e,t){return e+KI($I()*(t-e+1))}function ey(e,t){var r=-1,n=e.length,i=n-1;for(t=void 0===t?n:t;++r<t;){var o=ZI(r,i),a=e[o];e[o]=e[r],e[r]=a}return e.length=t,e}function ty(e,t){return ey(kr(e),WI(t,0,e.length))}function ry(e,t){var r=dA(e);return ey(r,WI(t,0,r.length))}var ny=Math.floor;function iy(e,t,r){return t=(r?gr(e,t,r):void 0===t)?1:Mn(t),function(e,t){var r="";if(!e||t<1||t>9007199254740991)return r;do{t%2&&(r+=e),(t=ny(t/2))&&(e+=e)}while(t);return r}(ye(e),t)}var oy=$i("floor");var ay=Rn(Xn());var sy={exports:{}},ly={exports:{}};!function(e){var t;e.exports=(t=jn(),function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[],l=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)t(n)&&(i<8&&(s[i]=r(e.pow(n,.5))),l[i]=r(e.pow(n,1/3)),i++),n++}();var c=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=r[5],f=r[6],d=r[7],g=0;g<64;g++){if(g<16)c[g]=0|e[t+g];else{var p=c[g-15],h=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,A=c[g-2],m=(A<<15|A>>>17)^(A<<13|A>>>19)^A>>>10;c[g]=h+c[g-7]+m+c[g-16]}var I=n&i^n&o^i&o,y=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),v=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&f)+l[g]+c[g];d=f,f=u,u=s,s=a+v|0,a=o,o=i,i=n,n=v+(y+I)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+u|0,r[6]=r[6]+f|0,r[7]=r[7]+d|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=e.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});r.SHA256=o._createHelper(u),r.HmacSHA256=o._createHmacHelper(u)}(Math),t.SHA256)}(ly);var cy=ly.exports,uy=Rn(cy);!function(e){var t;e.exports=(t=jn(),function(){var e=t,r=e.lib.WordArray,n=e.algo,i=n.SHA256,o=n.SHA224=i.extend({_doReset:function(){this._hash=new r.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)}(sy);var fy,dy=Rn(sy.exports),gy={exports:{}},py={exports:{}};function hy(){return fy||(fy=1,function(e){var t,r,n,i,o,a,s;e.exports=(s=jn(),n=(r=s).lib,i=n.Base,o=n.WordArray,(a=r.x64={}).Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=i.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n<t;n++){var i=e[n];r.push(i.high),r.push(i.low)}return o.create(r,this.sigBytes)},clone:function(){for(var e=i.clone.call(this),t=e.words=this.words.slice(0),r=t.length,n=0;n<r;n++)t[n]=t[n].clone();return e}}),s)}(py)),py.exports}var Ay={exports:{}};!function(e){var t;e.exports=(t=jn(),hy(),function(){var e=t,r=e.lib.Hasher,n=e.x64,i=n.Word,o=n.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=r.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 r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=r[5],f=r[6],d=r[7],g=n.high,p=n.low,h=i.high,A=i.low,m=o.high,I=o.low,y=a.high,v=a.low,b=s.high,w=s.low,B=u.high,E=u.low,C=f.high,x=f.low,D=d.high,F=d.low,Q=g,S=p,k=h,N=A,q=m,M=I,H=y,L=v,U=b,R=w,O=B,T=E,Y=C,j=x,G=D,J=F,z=0;z<80;z++){var V,P,X=c[z];if(z<16)P=X.high=0|e[t+2*z],V=X.low=0|e[t+2*z+1];else{var _=c[z-15],W=_.high,K=_.low,$=(W>>>1|K<<31)^(W>>>8|K<<24)^W>>>7,Z=(K>>>1|W<<31)^(K>>>8|W<<24)^(K>>>7|W<<25),ee=c[z-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ie=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=c[z-7],ae=oe.high,se=oe.low,le=c[z-16],ce=le.high,ue=le.low;P=(P=(P=$+ae+((V=Z+se)>>>0<Z>>>0?1:0))+ne+((V+=ie)>>>0<ie>>>0?1:0))+ce+((V+=ue)>>>0<ue>>>0?1:0),X.high=P,X.low=V}var fe,de=U&O^~U&Y,ge=R&T^~R&j,pe=Q&k^Q&q^k&q,he=S&N^S&M^N&M,Ae=(Q>>>28|S<<4)^(Q<<30|S>>>2)^(Q<<25|S>>>7),me=(S>>>28|Q<<4)^(S<<30|Q>>>2)^(S<<25|Q>>>7),Ie=(U>>>14|R<<18)^(U>>>18|R<<14)^(U<<23|R>>>9),ye=(R>>>14|U<<18)^(R>>>18|U<<14)^(R<<23|U>>>9),ve=l[z],be=ve.high,we=ve.low,Be=G+Ie+((fe=J+ye)>>>0<J>>>0?1:0),Ee=me+he;G=Y,J=j,Y=O,j=T,O=U,T=R,U=H+(Be=(Be=(Be=Be+de+((fe+=ge)>>>0<ge>>>0?1:0))+be+((fe+=we)>>>0<we>>>0?1:0))+P+((fe+=V)>>>0<V>>>0?1:0))+((R=L+fe|0)>>>0<L>>>0?1:0)|0,H=q,L=M,q=k,M=N,k=Q,N=S,Q=Be+(Ae+pe+(Ee>>>0<me>>>0?1:0))+((S=fe+Ee|0)>>>0<fe>>>0?1:0)|0}p=n.low=p+S,n.high=g+Q+(p>>>0<S>>>0?1:0),A=i.low=A+N,i.high=h+k+(A>>>0<N>>>0?1:0),I=o.low=I+M,o.high=m+q+(I>>>0<M>>>0?1:0),v=a.low=v+L,a.high=y+H+(v>>>0<L>>>0?1:0),w=s.low=w+R,s.high=b+U+(w>>>0<R>>>0?1:0),E=u.low=E+T,u.high=B+O+(E>>>0<T>>>0?1:0),x=f.low=x+j,f.high=C+Y+(x>>>0<j>>>0?1:0),F=d.low=F+J,d.high=D+G+(F>>>0<J>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=r._createHelper(u),e.HmacSHA512=r._createHmacHelper(u)}(),t.SHA512)}(Ay);var my=Ay.exports,Iy=Rn(my);!function(e){var t;e.exports=(t=jn(),hy(),function(){var e=t,r=e.x64,n=r.Word,i=r.WordArray,o=e.algo,a=o.SHA512,s=o.SHA384=a.extend({_doReset:function(){this._hash=new i.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.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)}(gy);let yy={1:ei,224:dy,256:uy,384:Rn(gy.exports),512:Iy};function vy(e,t,r=!1){if(!Fe(e))return"";if(!to(t))throw new Error("n is not a positive integer");if(t=eo(t),!Ne(yy,t))throw new Error(`invalid n[${t}]`);hn(r)||(r=!1);let n=(0,yy[t])(e),i="";return i=r?n.toString(Vn):n.toString(ci),i}function by(e,t){return Fe(e)&&Fe(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 r=new Map;for(let t=0;t<e.length-1;t++){const n=e.substring(t,t+2),i=r.has(n)?r.get(n)+1:1;r.set(n,i)}let n=0;for(let e=0;e<t.length-1;e++){const i=t.substring(e,e+2),o=r.has(i)?r.get(i):0;o>0&&(r.set(i,o-1),n++)}return 2*n/(e.length+t.length-2)}(e,t):0}function wy(e){return Array.isArray?Array.isArray(e):"[object Array]"===Sy(e)}function By(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 Ey(e){return"string"==typeof e}function Cy(e){return"number"==typeof e}function xy(e){return!0===e||!1===e||function(e){return Dy(e)&&null!==e}(e)&&"[object Boolean]"==Sy(e)}function Dy(e){return"object"==typeof e}function Fy(e){return null!=e}function Qy(e){return!e.trim().length}function Sy(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const ky="Invalid doc index: must be a non-negative integer within the bounds of the docs array",Ny=Object.prototype.hasOwnProperty;var qy=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{const r=My(e);this._keys.push(r),this._keyMap[r.id]=r,t+=r.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 My(e){let t=null,r=null,n=null,i=1,o=null;if(Ey(e)||wy(e))n=e,t=Hy(e),r=Ly(e);else{if(!Ny.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const a=e.name;if(n=a,Ny.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`)(Ly(a)));t=Hy(a),r=Ly(a),o=e.getFn??null}return{path:t,id:r,weight:i,src:n,getFn:o}}function Hy(e){return wy(e)?e:e.split(".")}function Ly(e){return wy(e)?e.join("."):e}const Uy={useExtendedSearch:!1,useTokenSearch:!1,tokenize:void 0,tokenMatch:"any",getFn:function(e,t){const r=[];let n=!1;const i=(e,t,o,a)=>{if(Fy(e))if(t[o]){const s=e[t[o]];if(!Fy(s))return;if(o===t.length-1&&(Ey(s)||Cy(s)||xy(s)||"bigint"==typeof s))r.push(void 0!==a?{v:By(s),i:a}:By(s));else if(wy(s)){n=!0;for(let e=0,r=s.length;e<r;e+=1)i(s[e],t,o+1,e)}else t.length&&i(s,t,o+1,a)}else r.push(void 0!==a?{v:e,i:a}:e)};return i(e,Ey(t)?t.split("."):t,0),n?r:r[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},Ry=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,...Uy});function Oy(e){return e>=9&&e<=13||32===e||160===e}var Ty=class{constructor({getFn:e=Ry.getFn,fieldNormWeight:t=Ry.fieldNormWeight}={}){this.norm=function(e=1,t=3){const r=new Map,n=Math.pow(10,t);return{get(t){let i=0,o=!1;for(let e=0;e<t.length;e++)Oy(t.charCodeAt(e))?o=!1:o||(i++,o=!0);if(0===i&&(i=1),r.has(i))return r.get(i);const a=Math.round(n/Math.pow(i,.5*e))/n;return r.set(i,a),a},clear(){r.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(Ey(this.docs[0]))for(let r=0;r<e;r++){const e=this._createStringRecord(this.docs[r],r);e&&(this.records[t++]=e)}else for(let r=0;r<e;r++)this.records[t++]=this._createObjectRecord(this.docs[r],r);this.records.length=t,this.norm.clear()}add(e,t){if(!Number.isInteger(t)||t<0)throw new Error(ky);if(Ey(e)){const r=this._createStringRecord(e,t);return r&&this.records.push(r),r}const r=this._createObjectRecord(e,t);return this.records.push(r),r}removeAt(e){if(!Number.isInteger(e)||e<0)throw new Error(ky);for(let t=0,r=this.records.length;t<r;t+=1)if(this.records[t].i===e){this.records.splice(t,1);break}for(let t=0,r=this.records.length;t<r;t+=1)this.records[t].i>e&&(this.records[t].i-=1)}removeAll(e){const t=new Set;for(const r of e)Number.isInteger(r)&&r>=0&&t.add(r);if(0===t.size)return;this.records=this.records.filter(e=>!t.has(e.i));const r=Array.from(t).sort((e,t)=>e-t);for(const e of this.records){let t=0,n=r.length;for(;t<n;){const i=t+n>>>1;r[i]<e.i?t=i+1:n=i}e.i-=t}}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_createStringRecord(e,t){return!Fy(e)||Qy(e)?null:{v:e,i:t,n:this.norm.get(e)}}_createObjectRecord(e,t){const r={i:t,$:{}};for(let t=0,n=this.keys.length;t<n;t++){const n=this.keys[t],i=n.getFn?n.getFn(e):this.getFn(e,n.path);if(Fy(i))if(wy(i)){const e=[];for(let t=0,r=i.length;t<r;t+=1){const r=i[t];if(Fy(r))if(Ey(r)){if(!Qy(r)){const n={v:r,i:t,n:this.norm.get(r)};e.push(n)}}else if(Fy(r.v)){const t=Ey(r.v)?r.v:By(r.v);if(!Qy(t)){const n={v:t,i:r.i,n:this.norm.get(t)};e.push(n)}}}r.$[t]=e}else if(Ey(i)&&!Qy(i)){const e={v:i,n:this.norm.get(i)};r.$[t]=e}}return r}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}};function Yy(e,t,{getFn:r=Ry.getFn,fieldNormWeight:n=Ry.fieldNormWeight}={}){const i=new Ty({getFn:r,fieldNormWeight:n});return i.setKeys(e.map(My)),i.setSources(t),i.create(),i}function jy(e,t,r,{location:n=Ry.location,distance:i=Ry.distance,threshold:o=Ry.threshold,findAllMatches:a=Ry.findAllMatches,minMatchCharLength:s=Ry.minMatchCharLength,includeMatches:l=Ry.includeMatches,ignoreLocation:c=Ry.ignoreLocation}={}){if(t.length>32)throw new Error((e=>`Pattern length exceeds max of ${e}.`)(32));const u=t.length,f=e.length,d=Math.max(0,Math.min(n,f));let g=o,p=d;const h=(e,t)=>{const r=e/u;if(c)return r;const n=Math.abs(d-t);return i?r+n/i:n?1:r},A=s>1||l,m=A?Array(f):[];let I;for(;(I=e.indexOf(t,p))>-1;){const e=h(0,I);if(g=Math.min(e,g),p=I+u,A){let e=0;for(;e<u;)m[I+e]=1,e+=1}}p=-1;let y=[],v=1,b=0,w=u+f;const B=1<<u-1;for(let t=0;t<u;t+=1){let n=0,i=w;for(;n<i;)h(t,d+i)<=g?n=i:w=i,i=Math.floor((w-n)/2+n);w=i;let o=Math.max(1,d-i+1);const s=a?f:Math.min(d+i,f)+u,l=Array(s+2);l[s+1]=(1<<t)-1;for(let n=s;n>=o;n-=1){const i=n-1,a=r[e[i]];if(l[n]=(l[n+1]<<1|1)&a,t&&(l[n]|=(y[n+1]|y[n])<<1|1|y[n+1]),l[n]&B&&(v=h(t,i),v<=g)){if(g=v,p=i,b=t,p<=d)break;o=Math.max(1,2*d-p)}}if(h(t+1,d)>g)break;y=l}if(A&&p>=0){const t=Math.min(f-1,p+u-1+b);for(let n=p;n<=t;n+=1)r[e[n]]&&(m[n]=1)}const E={isMatch:p>=0,score:Math.max(.001,v)};if(A){const e=function(e=[],t=Ry.minMatchCharLength){const r=[];let n=-1,i=-1,o=0;for(let a=e.length;o<a;o+=1){const a=e[o];a&&-1===n?n=o:a||-1===n||(i=o-1,i-n+1>=t&&r.push([n,i]),n=-1)}return e[o-1]&&o-n>=t&&r.push([n,o-1]),r}(m,s);e.length?l&&(E.indices=e):E.isMatch=!1}return E}function Gy(e){const t={};for(let r=0,n=e.length;r<n;r+=1){const i=e.charAt(r);t[i]=(t[i]||0)|1<<n-r-1}return t}function Jy(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 r=1,n=e.length;r<n;r+=1){const n=t[t.length-1],i=e[r];i[0]<=n[1]+1?n[1]=Math.max(n[1],i[1]):t.push(i)}return t}const zy={"ł":"l","Ł":"L","đ":"d","Đ":"D","ø":"o","Ø":"O","ħ":"h","Ħ":"H","ŧ":"t","Ŧ":"T","ı":"i","ß":"ss"},Vy=new RegExp("["+Object.keys(zy).join("")+"]","g"),Py="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(Vy,e=>zy[e]):e=>e;var Xy=class{constructor(e,{location:t=Ry.location,threshold:r=Ry.threshold,distance:n=Ry.distance,includeMatches:i=Ry.includeMatches,findAllMatches:o=Ry.findAllMatches,minMatchCharLength:a=Ry.minMatchCharLength,isCaseSensitive:s=Ry.isCaseSensitive,ignoreDiacritics:l=Ry.ignoreDiacritics,ignoreLocation:c=Ry.ignoreLocation}={}){if(this.options={location:t,threshold:r,distance:n,includeMatches:i,findAllMatches:o,minMatchCharLength:a,isCaseSensitive:s,ignoreDiacritics:l,ignoreLocation:c},e=s?e:e.toLowerCase(),e=l?Py(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const u=(e,t)=>{this.chunks.push({pattern:e,alphabet:Gy(e),startIndex:t})},f=this.pattern.length;if(f>32){let e=0;const t=f%32,r=f-t;for(;e<r;)u(this.pattern.substr(e,32),e),e+=32;if(t){const e=f-32;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,ignoreDiacritics:r,includeMatches:n}=this.options;if(e=t?e:e.toLowerCase(),e=r?Py(e):e,this.pattern===e){if(e.length<this.options.minMatchCharLength)return{isMatch:!1,score:1};const t={isMatch:!0,score:0};return n&&(t.indices=[[0,e.length-1]]),t}const{location:i,distance:o,threshold:a,findAllMatches:s,minMatchCharLength:l,ignoreLocation:c}=this.options,u=[];let f=0,d=!1;this.chunks.forEach(({pattern:t,alphabet:r,startIndex:g})=>{const{isMatch:p,score:h,indices:A}=jy(e,t,r,{location:i+g,distance:o,threshold:a,findAllMatches:s,minMatchCharLength:l,includeMatches:n,ignoreLocation:c});p&&(d=!0),f+=h,p&&A&&u.push(...A)});const g={isMatch:d,score:d?f/this.chunks.length:1};return d&&n&&(g.indices=Jy(u)),g}};const _y=new Set(["fuzzy","include"]);function Wy(e){return e.startsWith("inverse")}const Ky=[{type:"exact",multiRegex:/^="(.*)"$/,singleRegex:/^=(.*)$/,create:e=>({type:"exact",search(t){const r=t===e;return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}})},{type:"include",multiRegex:/^'"(.*)"$/,singleRegex:/^'(.*)$/,create:e=>({type:"include",search(t){let r,n=0;const i=[],o=e.length;for(;(r=t.indexOf(e,n))>-1;)n=r+o,i.push([r,n-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 r=t.startsWith(e);return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}})},{type:"inverse-prefix-exact",multiRegex:/^!\^"(.*)"$/,singleRegex:/^!\^(.*)$/,create:e=>({type:"inverse-prefix-exact",search(t){const r=!t.startsWith(e);return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}})},{type:"inverse-suffix-exact",multiRegex:/^!"(.*)"\$$/,singleRegex:/^!(.*)\$$/,create:e=>({type:"inverse-suffix-exact",search(t){const r=!t.endsWith(e);return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}})},{type:"suffix-exact",multiRegex:/^"(.*)"\$$/,singleRegex:/^(.*)\$$/,create:e=>({type:"suffix-exact",search(t){const r=t.endsWith(e);return{isMatch:r,score:r?0:1,indices:[t.length-e.length,t.length-1]}}})},{type:"inverse-exact",multiRegex:/^!"(.*)"$/,singleRegex:/^!(.*)$/,create:e=>({type:"inverse-exact",search(t){const r=-1===t.indexOf(e);return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}})},{type:"fuzzy",multiRegex:/^"(.*)"$/,singleRegex:/^(.*)$/,create:(e,t={})=>{const r=new Xy(e,{location:t.location??Ry.location,threshold:t.threshold??Ry.threshold,distance:t.distance??Ry.distance,includeMatches:t.includeMatches??Ry.includeMatches,findAllMatches:t.findAllMatches??Ry.findAllMatches,minMatchCharLength:t.minMatchCharLength??Ry.minMatchCharLength,isCaseSensitive:t.isCaseSensitive??Ry.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics??Ry.ignoreDiacritics,ignoreLocation:t.ignoreLocation??Ry.ignoreLocation});return{type:"fuzzy",search:e=>r.searchIn(e)}}}],$y=Ky.length;function Zy(e,t){const r=e.match(t);return r?r[1]:null}const ev=[];function tv(...e){ev.push(...e)}function rv(e,t){for(let r=0,n=ev.length;r<n;r+=1){const n=ev[r];if(n.condition(e,t))return new n(e,t)}return new Xy(e,t)}const nv="$and",iv="$or",ov="$path",av="$val",sv=e=>!(!e[nv]&&!e[iv]),lv=e=>({[nv]:Object.keys(e).map(t=>({[t]:e[t]}))});function cv(e,t,{auto:r=!0}={}){const n=e=>{if(Ey(e)){const n={keyId:null,pattern:e};return r&&(n.searcher=rv(e,t)),n}const i=Object.keys(e),o=(e=>!!e[ov])(e);if(!o&&i.length>1&&!sv(e))return n(lv(e));if((e=>!wy(e)&&Dy(e)&&!sv(e))(e)){const n=o?e[ov]:i[0],a=o?e[av]:e[n];if(!Ey(a))throw new Error((e=>`Invalid value for key ${e}`)(n));const s={keyId:Ly(n),pattern:a};return r&&(s.searcher=rv(a,t)),s}const a={children:[],operator:i[0]};return i.forEach(t=>{const r=e[t];wy(r)&&r.forEach(e=>{a.children.push(n(e))})}),a};return sv(e)||(e=lv(e)),n(e)}function uv(e,{ignoreFieldNorm:t=Ry.ignoreFieldNorm}){let r=1;return e.forEach(({key:e,norm:n,score:i})=>{const o=e?e.weight:null;r*=Math.pow(0===i&&o?Number.EPSILON:i,(o||1)*(t?1:n))}),r}var fv=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 r=e-1>>1;if(this.comparator(t[e],t[r])<=0)break;const n=t[e];t[e]=t[r],t[r]=n,e=r}}_sinkDown(e){const t=this.heap,r=t.length;let n=e;do{const i=2*(e=n)+1,o=2*e+2;if(i<r&&this.comparator(t[i],t[n])>0&&(n=i),o<r&&this.comparator(t[o],t[n])>0&&(n=o),n!==e){const r=t[e];t[e]=t[n],t[n]=r}}while(n!==e)}};function dv(e,t,{includeMatches:r=Ry.includeMatches,includeScore:n=Ry.includeScore}={}){return e.map(e=>{const{idx:i}=e,o={item:t[i],refIndex:i};return r&&(o.matches=function(e){const t=[];return e.matches.forEach(e=>{if(!Fy(e.indices)||!e.indices.length)return;const r={indices:e.indices,value:e.value};e.key&&(r.key=e.key.id),e.idx>-1&&(r.refIndex=e.idx),t.push(r)}),t}(e)),n&&(o.score=e.score),o})}const gv=/[\p{L}\p{M}\p{N}_]+/gu,pv=new WeakSet;function hv(e){if("function"==typeof e){let t=!1;return r=>{const n=e(r);if(!t&&(t=!0,!Array.isArray(n)||n.some(e=>"string"!=typeof e)))throw new Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(n)?"array containing non-strings":typeof n}.`);return n}}return e instanceof RegExp?(e.global||function(e){pv.has(e)||(pv.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(gv)||[]}function Av({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:r}={}){const n=hv(r);return{tokenize:r=>(e||(r=r.toLowerCase()),t&&(r=Py(r)),n(r))}}function mv(e,t,r,n){const i=n.tokenize(t);if(!i.length)return;e.fieldCount++,e.docFieldCount.set(r,(e.docFieldCount.get(r)||0)+1);const o=new Set(i);let a=e.docTermFieldHits.get(r);a||(a=new Map,e.docTermFieldHits.set(r,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 Iv(e,t,r,n){const{i:i,v:o,$:a}=t;if(void 0===o){if(a)for(let t=0;t<r;t++){const r=a[t];if(r)if(Array.isArray(r))for(const t of r)mv(e,t.v,i,n);else mv(e,r.v,i,n)}}else mv(e,o,i,n)}function yv(e,t){const r=e.docFieldCount.get(t);if(void 0===r)return;e.fieldCount-=r,e.docFieldCount.delete(t);const n=e.docTermFieldHits.get(t);if(n){for(const[t,r]of n){const n=(e.df.get(t)||0)-r;n<=0?e.df.delete(t):e.df.set(t,n)}e.docTermFieldHits.delete(t)}}function vv(e,t){if(0===t.length)return;const r=Array.from(new Set(t)).sort((e,t)=>e-t);for(const t of r)yv(e,t);const n=e=>{let t=0,n=r.length;for(;t<n;){const i=t+n>>>1;r[i]<e?t=i+1:n=i}return e-t},i=r[0],o=new Map;for(const[t,r]of e.docFieldCount)o.set(t>i?n(t):t,r);e.docFieldCount=o;const a=new Map;for(const[t,r]of e.docTermFieldHits)a.set(t>i?n(t):t,r);e.docTermFieldHits=a}var bv=class{constructor(e,t,r){this.options={...Ry,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new qy(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,r),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;const t=rv(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 Ty))throw new Error("Incorrect 'index' type");if(this._myIndex=t||Yy(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){const e=Av({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=function(e,t,r){const n={fieldCount:0,df:new Map,docFieldCount:new Map,docTermFieldHits:new Map};for(const i of e)Iv(n,i,t,r);return n}(this._myIndex.records,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}add(e){if(!Fy(e))return;this._docs.push(e);const t=this._myIndex.add(e,this._docs.length-1);if(this._invertedIndex&&t){const e=Av({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});!function(e,t,r,n){Iv(e,t,r,n)}(this._invertedIndex,t,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}remove(e=()=>!1){const t=[],r=[];for(let n=0,i=this._docs.length;n<i;n+=1)e(this._docs[n],n)&&(t.push(this._docs[n]),r.push(n));if(r.length){this._invertedIndex&&vv(this._invertedIndex,r);const e=new Set(r);this._docs=this._docs.filter((t,r)=>!e.has(r)),this._myIndex.removeAll(r),this._invalidateSearcherCache()}return t}removeAt(e){if(!Number.isInteger(e)||e<0||e>=this._docs.length)throw new Error(ky);this._invertedIndex&&vv(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:r=-1}=t||{},{includeMatches:n,includeScore:i,shouldSort:o,sortFn:a,ignoreFieldNorm:s}=this.options;if(Ey(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return Cy(r)&&r>-1&&(e=e.slice(0,r)),e}const l=o&&Cy(r)&&r>0&&Ey(e),c=a,u=(e,t)=>c(e,t)||e.idx-t.idx;let f;if(l){const t=new fv(r,u);Ey(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:s}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:s}),f=t.extractSorted()}else f=Ey(e)?Ey(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),function(e,{ignoreFieldNorm:t=Ry.ignoreFieldNorm}){e.forEach(e=>{e.score=uv(e.matches,{ignoreFieldNorm:t})})}(f,{ignoreFieldNorm:s}),o&&f.sort(Ey(e)?u:c),Cy(r)&&r>-1&&(f=f.slice(0,r));return dv(f,this._docs,{includeMatches:n,includeScore:i})}_searchStringList(e,{heap:t,ignoreFieldNorm:r}={}){const n=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(!Fy(e))return;const l=n.searchIn(e);if(l.isMatch){const n={score:l.score,value:e,norm:s,indices:l.indices};i&&(n.matchedMask=l.matchedMask,n.matchedTerms=l.matchedTerms,n.termCount=l.termCount);const c=[n];if(!i||this._coversAllTokens(c)){const n={item:e,idx:o,matches:c};t?(n.score=uv(n.matches,{ignoreFieldNorm:r}),t.insert(n)):a.push(n)}}}),a}_searchLogical(e){const t=cv(e,this.options),r=this._normalizedKeys(),n=(e,t,i)=>{if(!("children"in e)){const{keyId:n,searcher:o}=e;let a;return null===n?(a=[],r.forEach((e,r)=>{a.push(...this._findMatches({key:e,value:t[r],searcher:o}))})):a=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:o}),a&&a.length?[{idx:i,item:t,matches:a}]:[]}const{children:o,operator:a}=e,s=[];for(let e=0,r=o.length;e<r;e+=1){const r=o[e],l=n(r,t,i);if(l.length)s.push(...l);else if(a===nv)return[]}return s},i=this._myIndex.records,o=new Map,a=[];return i.forEach(({$:e,i:r})=>{if(Fy(e)){const i=n(t,e,r);i.length&&(o.has(r)||(o.set(r,{idx:r,item:e,matches:[]}),a.push(o.get(r))),i.forEach(({matches:e})=>{o.get(r).matches.push(...e)}))}}),a}_searchObjectList(e,{heap:t,ignoreFieldNorm:r}={}){const n=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(!Fy(e))return;const l=[];let c=!1,u=!1;if(a.forEach((t,r)=>{const i=this._findMatches({key:t,value:e[r],searcher:n});i.length?(l.push(...i),i[0].hasInverse&&(u=!0)):c=!0}),(!u||!c)&&l.length&&(!i||this._coversAllTokens(l))){const n={idx:o,item:e,matches:l};t?(n.score=uv(n.matches,{ignoreFieldNorm:r}),t.insert(n)):s.push(n)}}),s}_findMatches({key:e,value:t,searcher:r}){if(!Fy(t))return[];const n=[];if(wy(t))t.forEach(({v:t,i:i,n:o})=>{if(!Fy(t))return;const a=r.searchIn(t);if(a.isMatch){const r={score:a.score,key:e,value:t,idx:i,norm:o,indices:a.indices,hasInverse:a.hasInverse};void 0!==a.termCount&&(r.matchedMask=a.matchedMask,r.matchedTerms=a.matchedTerms,r.termCount=a.termCount),n.push(r)}});else{const{v:i,n:o}=t,a=r.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),n.push(t)}}return n}_coversAllTokens(e){const t=e.length?e[0].termCount:void 0;if(void 0===t)return!0;if(t<=31){let r=0;for(let t=0;t<e.length;t++)r|=e[t].matchedMask||0;return r===2**t-1}const r=new Set;for(let t=0;t<e.length;t++){const n=e[t].matchedTerms;if(n)for(const e of n)r.add(e)}return r.size===t}};bv.version="7.5.0",bv.createIndex=Yy,bv.parseIndex=function(e,{getFn:t=Ry.getFn,fieldNormWeight:r=Ry.fieldNormWeight}={}){const{keys:n,records:i}=e,o=new Ty({getFn:t,fieldNormWeight:r});return o.setKeys(n),o.setIndexRecords(i),o},bv.config=Ry,bv.match=function(e,t,r){if(r&&r.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 rv(e,{...Ry,...r}).searchIn(t)},bv.parseQuery=cv,tv(class{constructor(e,{isCaseSensitive:t=Ry.isCaseSensitive,ignoreDiacritics:r=Ry.ignoreDiacritics,includeMatches:n=Ry.includeMatches,minMatchCharLength:i=Ry.minMatchCharLength,ignoreLocation:o=Ry.ignoreLocation,findAllMatches:a=Ry.findAllMatches,location:s=Ry.location,threshold:l=Ry.threshold,distance:c=Ry.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:r,includeMatches:n,minMatchCharLength:i,findAllMatches:a,ignoreLocation:o,location:s,threshold:l,distance:c},e=t?e:e.toLowerCase(),e=r?Py(e):e,this.pattern=e,this.query=function(e,t={}){return e.replace(/\\\|/g,"\0").split("|").map(e=>{const r=function(e){const t=[],r=e.length;let n=0;for(;n<r;){for(;n<r&&" "===e[n];)n++;if(n>=r)break;let i=n;for(;i<r&&" "!==e[i]&&'"'!==e[i];)i++;if(i<r&&'"'===e[i]){for(i++;i<r;){if('"'===e[i]){const t=i+1;if(t>=r||" "===e[t]){i++;break}if("$"===e[t]&&(t+1>=r||" "===e[t+1])){i+=2;break}}i++}t.push(e.substring(n,i)),n=i}else{for(;i<r&&" "!==e[i];)i++;t.push(e.substring(n,i)),n=i}}return t}(e.replace(/\u0000/g,"|").trim()).filter(e=>e&&!!e.trim()),n=[];for(let e=0,i=r.length;e<i;e+=1){const i=r[e];let o=!1,a=-1;for(;!o&&++a<$y;){const e=Ky[a],r=Zy(i,e.multiRegex);r&&(n.push(e.create(r,t)),o=!0)}if(!o)for(a=-1;++a<$y;){const e=Ky[a],r=Zy(i,e.singleRegex);if(r){n.push(e.create(r,t));break}}}return n})}(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:r,isCaseSensitive:n,ignoreDiacritics:i}=this.options;e=n?e:e.toLowerCase(),e=i?Py(e):e;let o=0;const a=[];let s=0,l=!1;for(let n=0,i=t.length;n<i;n+=1){const i=t[n];a.length=0,o=0,l=!1;for(let t=0,n=i.length;t<n;t+=1){const n=i[t],{isMatch:c,indices:u,score:f}=n.search(e);if(!c){s=0,o=0,a.length=0,l=!1;break}o+=1,s+=f,Wy(n.type)&&(l=!0),r&&(_y.has(n.type)?a.push(...u):a.push(u))}if(o){const e={isMatch:!0,score:s/o};return l&&(e.hasInverse=!0),r&&(e.indices=Jy(a)),e}}return{isMatch:!1,score:1}}}),tv(class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=Av({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,tokenize:t.tokenize});const r=this.analyzer.tokenize(e),{df:n,fieldCount:i}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(const e of r){this.termSearchers.push(new Xy(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 r=n.get(e)||0,o=Math.log(1+(i-r+.5)/(r+.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 r=0,n=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];n+=c,l.isMatch&&(i++,r+=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=n>0?1-r/n:0,l={isMatch:!0,score:Math.max(.001,s)};return this.options.includeMatches&&t.length&&(l.indices=Jy(t)),this.combineAll&&(this.useMask?l.matchedMask=o:l.matchedTerms=a,l.termCount=this.numTerms),l}}),bv.use=function(...e){e.forEach(e=>tv(e))};var wv=bv;function Bv(e){return function(e,t){var r=null==e?0:e.length;return r?Ca(e,t)/r:NaN}(e,cr)}function Ev(e){if(!Ce(e))return{};let{results:t,binarys:r}=e;if(!Fe(t))return{};if(!xe(r))return{};let n={};try{n=JSON.parse(t,function(e,t){if(Fe(t)){if(t.indexOf("[Uint8Array]::")>=0){let e=eo(t.replace("[Uint8Array]::",""));return r[e]}if(t.indexOf("[Uint16Array]::")>=0){let e=eo(t.replace("[Uint16Array]::",""));return r[e]}if(t.indexOf("[ArrayBuffer]::")>=0){let e=eo(t.replace("[ArrayBuffer]::",""));return r[e]}}return t})}catch(e){}return n}function Cv(e,t=null){if(!ba(r))throw new Error("invalid dayjs");if(!BI(e))return{today:null,msg:"",err:"時間格式錯誤"};let n=r();BI(t)&&(n=r(t,"YYYY-MM-DDTHH:mm:ss.SSSZ"));let i=r(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(n>i)return{today:null,msg:"",err:"時間已過"};let o,a=n.format("YYYY-MM-DD"),s=i.format("YYYY-MM-DD"),l=r(a,"YYYY-MM-DD"),c=r(s,"YYYY-MM-DD"),u=i.diff(n,"seconds"),f=i.diff(n,"minutes"),d=i.diff(n,"hours"),g=c.diff(l,"days"),p=c.diff(l,"weeks"),h=c.diff(l,"months"),A=c.diff(l,"years"),m="即將到來";if(u>=0&&(o=!0,m=u+"秒後"),f>0&&(o=!0,m=f+"分鐘後"),d>0){let e=i.format("HH:mm");a===s?(o=!0,m=d+"小時後,今天"+e):(o=!1,m=d+"小時後,明天"+e)}return g>1&&(o=!1,m=2===g?"後天":g+"天後"),p>0&&(o=!1,m=p+"周後"),h>0&&(o=!1,m=h+"個月後"),A>0&&(o=!1,m=A+"年後"),{today:o,msg:m,err:""}}function xv(e,t=null){if(!ba(r))throw new Error("invalid dayjs");if(!BI(e))return{today:null,msg:"",err:"時間格式錯誤"};let n=r();BI(t)&&(n=r(t,"YYYY-MM-DDTHH:mm:ss.SSSZ"));let i=r(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(n<i)return{today:null,msg:"",err:"時間未到"};let o=n.format("YYYY-MM-DD"),a=i.format("YYYY-MM-DD"),s=r(o,"YYYY-MM-DD"),l=r(a,"YYYY-MM-DD"),c=n.diff(i,"seconds"),u=n.diff(i,"minutes"),f=n.diff(i,"hours"),d=s.diff(l,"days"),g=s.diff(l,"weeks"),p=s.diff(l,"months"),h=s.diff(l,"years"),A=!1,m="剛剛";if(c>=0&&(A=!0,m=c+"秒前"),u>0&&(A=!0,m=u+"分鐘前"),f>0){let e=i.format("HH:mm");o===a?(A=!0,m=f+"小時前"):(A=!1,m="昨天"+e)}return d>1&&(A=!1,m=d+"天前"),g>0&&(A=!1,m=g+"周前"),p>0&&(A=!1,m=p+"個月前"),h>0&&(A=!1,m=h+"年前"),{today:A,msg:m,err:""}}function Dv(e){let t=wI.sepTZ(e);return e=`${t.t}.000${t.tz}`}function Fv(e){let t=wI.sepTZ(e);return e=`${t.t}.000${t.tz}`}function Qv(e){if(!es(e))return"";let t;try{t=Ka(HI(e))}catch(e){return""}return t}e.ab2blob=function(e){let t=v(e);return new Blob([t])},e.ab2u8arr=v,e.addExcelWorksheetFromData=function(e,t,r="data"){if(!Ce(e))return{error:"wb is not an effective object"};if(!xe(Be(e,"SheetNames")))return{error:"wb.SheetNames is not an array"};if(!Ee(Be(e,"Sheets")))return{error:"wb.Sheets is not an object"};let n=wn(t);return Ne(n,"error")?n:(e.SheetNames.push(r),e.Sheets[r]=n,e)},e.addMonth=function(e,t){return Bn(e)&&Ln(t)?r(e,"YYYY-MM").add(t,"months").format("YYYY-MM"):""},e.aes2str=ui,e.alive=function(e={}){let t=_i(),r={},n=null,i=Be(e,"timeAlive");to(i)||(i=1e4),i=eo(i);let o=Be(e,"timeDetect");return to(o)||(o=50),o=eo(o),t.trigger=function(e,a){Fe(e)?(Ne(r,e)||setTimeout(()=>{t.emit("message",{eventName:"enter",key:e,data:a,now:gn(r)})},1),r[e]={data:a,time:Date.now()},null===n&&(n=setInterval(()=>{Cr(r,(e,n)=>{if(Date.now()-e.time>i){let e=Vi(r[n]);delete r[n],t.emit("message",{eventName:"leave",key:n,data:e.data,now:gn(r)})}}),Ce(r)||(clearInterval(n),n=null)},o))):console.log("trigger need key")},t.get=function(){let e=[];return Cr(r,(t,r)=>{e.push({key:r,data:t.data})}),e=Vi(e),e},t},e.arr2dt=function(e,t=""){if(!Or(e))return{};if(Or(t))return gn(e)===gn(t)?ro(e,t):{};let r=[];for(let n=0;n<gn(e);n++)r.push(Vi(t));return ro(e,r)},e.arrAccum=function(e){if(!Or(e))return[];let t=[],r=0;return Cr(e,function(e){r+=Hn(e),ke(e)?t.push(r):t.push("")}),t},e.arrAdd=function(){if(gn(arguments)<2)return[];let e=arguments[0];for(let t=1;t<gn(arguments);t++){e=no(e,arguments[t])}return e},e.arrAt=Co,e.arrDiff=sa,e.arrFilterByKeywords=function(e,t){if(!Or(e))return[];if(!Fe(t)&&!Or(t))return[];let r=null;r=Fe(t)?ua(t," "):t;let n=gn(r);return Dr(e,e=>function(e){let t=!1,i=0;for(let o=0;o<n;o++){let a=r[o],s=a,l="+"===fa(a,1),c="-"===fa(a,1);if((l||c)&&(s=ga(a,1)),""===la(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/n;e=e**2,i+=e}}return{hasKeyword:t,weight:i}}(e))},e.arrFilterByNum=function(e){return Or(e)?e=Dr(e=ha(e=Vi(e),ke),Hn):[]},e.arrFilterByPnum=ma,e.arrFilterByPnumAndToLog=function(e){return Or(e)?e=Dr(e=ma(e),Math.log):[]},e.arrFind=function(e,t){function r(e){return xe(e)?e:[e]}return Rr(e)||0===(e=r(e)).length||Rr(t)?[]:Dr(t=r(t),function(t){let r=-1;for(let n=0;n<e.length;n++)if(Ia(e[n],t)){r=n;break}return r})},e.arrGroupByMaxmin=function(e,t,r={}){let n=Be(r,"keyMax");Fe(n)||(n="max");let i=Be(r,"keyMin");Fe(i)||(i="min");let o=Be(r,"keyValue");Fe(o)||(o="value");let a=Be(r,"keyItems");if(Fe(a)||(a="items"),!Or(e))return[];if(!Or(t))return[];let s=Vi(t);return Cr(e,(e,r)=>{let l=Be(e,o);ke(l)?l=Hn(l):ke(e)&&(l=Hn(e)),ya(l)&&Cr(t,(t,r)=>{let o=Be(t,n,null),c=Be(t,i,null);if(null!==o&&null!==c&&ke(o)&&ke(c)){let n=Be(t,"maxType");"<="!==n&&"<"!==n&&(n="<=");let i,u,f=Be(t,"minType");">="!==f&&">"!==f&&(f=">="),o=Hn(o),c=Hn(c),i=">="===f?l>=c:l>c,u="<="===n?l<=o:l<o,i&&u&&(Ne(s[r],a)||(s[r][a]=[]),s[r][a].push(e))}})}),s},e.arrHas=va,e.arrInsert=function(e,t,r){if(!xe(e))return[];if(xe(r)||(r=[r]),!Eo(t))return e;if((t=eo(t))>gn(e))return e;let n=e;try{n=[...e.slice(0,t),...r,...e.slice(t)]}catch(e){}return n},e.arrLookupByMaxmin=function(e,t,r={}){let n=Be(r,"keyMax");Fe(n)||(n="max");let i=Be(r,"keyMin");Fe(i)||(i="min");let o=Be(r,"keyValue");Fe(o)||(o="value");let a=Be(r,"keyItems");Fe(a)||(a="items");let s=Be(r,"beforeAddResult",null);if(!Or(e))return[];if(!Or(t))return[];if(!Ce(Be(e,0)))return[];let l=Vi(e);return Cr(l,(e,r)=>{let c=Be(e,o);ke(c)&&(c=Hn(c)),ya(c)&&Cr(t,(e,t)=>{let o=Be(e,n,null),u=Be(e,i,null);if(null!==o&&null!==u&&ke(o)&&ke(u)){let t=Be(e,"maxType");"<="!==t&&"<"!==t&&(t="<=");let n,i,f=Be(e,"minType");">="!==f&&">"!==f&&(f=">="),o=Hn(o),u=Hn(u),n=">="===f?c>=u:c>u,i="<="===t?c<=o:c<o,n&&i&&(ba(s)&&(e=s(e,l[r],r)),Ne(l[r],a)||(l[r][a]=[]),l[r][a].push(e))}})}),l},e.arrMax=function(e,t={}){if(!Or(e))return null;let r=Be(t,"returnIndex");hn(r)||(r=!1);let n=Be(t,"compareKey",null),i=e;Fe(n)&&(i=Dr(e,(e,t)=>Be(e,n,"")));let o=null,a=wa(i,(e,t)=>ke(t)?(t=Hn(t),null===e?(o=t,t):(e=Math.max(e,t),o=e,e)):e,{returnIndex:!0});if(r)return a;let s=null;return a>=0&&(s=Fe(n)?e[a]:o),s},e.arrMin=function(e,t={}){if(!Or(e))return null;let r=Be(t,"returnIndex");hn(r)||(r=!1);let n=Be(t,"compareKey",null),i=e;Fe(n)&&(i=Dr(e,(e,t)=>Be(e,n,"")));let o=null,a=wa(i,(e,t)=>ke(t)?(t=Hn(t),null===e?(o=t,t):(e=Math.min(e,t),o=e,e)):e,{returnIndex:!0});if(r)return a;let s=null;return a>=0&&(s=Fe(n)?e[a]:o),s},e.arrMulti=Ea,e.arrNorm=function(e){if(!Or(e))return null;let t=xa(e,e);return ke(t)?t<=0?null:Math.sqrt(t):null},e.arrProduct=xa,e.arrPull=function(e,t){if(!Or(e))return[];if((Ee(t)||ke(t)||De(t)||hn(t))&&(t=[t]),!Or(t))return e;let r=Vi(e);return Qa(r,t),r},e.arrPullAt=function(e,t){if(!Or(e))return[];if(Eo(t)&&(t=[t]),!Or(t))return e;t=Dr(t,e=>eo(e));let r=Vi(e);return Ha(r,t),r},e.arrReduce=wa,e.arrReverse=function(e){if(!Or(e))return[];let t=Vi(e);return Ua(t),t},e.arrSep=function(e,t){if(!Or(e))return[];if(!to(t)&&!Ce(t))return[];let r="",n=null;if(to(t))n=t,r="numCount";else if(Ce(t))if(to(Be(t,"numCount")))n=t.numCount,r="numCount";else{if(!to(Be(t,"numGroup")))throw new Error("invalid opt.numCount or opt.numGroup");n=t.numGroup,r="numGroup"}let i=gn(e),o=[];if("numCount"===r)for(let t=0;t<i;t+=n){let r=[];for(let o=0;o<n;o++){let n=t+o;n<i&&r.push(e[n])}o.push(r)}else if("numGroup"===r){for(let e=0;e<n;e++)o[e]=[];let t=-1;for(let r=0;r<i;r++)t++,t>n-1&&(t=0),o[t].push(e[r])}return o},e.arrSort=Wa,e.asind=function(e){return ke(e)?(e=Hn(e),180*Math.asin(e)/Math.PI):null},e.atan2d=function(e,t){return ke(e)?(e=Hn(e),ke(t)?(t=Hn(t),180*Math.atan2(t,e)/Math.PI):null):null},e.atand=function(e){return ke(e)?(e=Hn(e),180*Math.atan(e)/Math.PI):null},e.attstr=function(e={}){let t=";",r="@",n="table",i="id",o=Be(e,"uniqItems");hn(o)||(o=!1);let a=Be(e,"dlmItem","");Fe(a)&&(t=a);let s=Be(e,"dlmSep","");Fe(s)&&(r=s);let l=Be(e,"keyTable","");Fe(l)&&(n=l);let c=Be(e,"keyId","");Fe(c)&&(i=c);let u=Be(e,"mode");function f(e){if(!Fe(e))return[];let r=zo(e,t);return o&&(r=Xr(r)),r}function d(e){if(!Or(e))return"";return o&&(e=Xr(e)),Do(e,t)}function g(e){return e=ha(e,Fe),o&&(e=Xr(e)),d(e)}function p(e){let t=[];return Cr(e,e=>{let o=Be(e,n,""),a=Be(e,i,"");if(Fe(o),De(a)||(xe(a)?gn(a):a=""),De(a))t.push(`${o}${r}${a}`);else if(xe(a)){let e=Do(a,r);t.push(`${o}${r}${e}`)}}),e=d(t)}function h(e){if(!Fe(e))return[];return ha(f(e),Fe)}function A(e){if(!Fe(e))return[];let t=f(e),o=[];return Cr(t,e=>{let t=zo(e,r),a=Be(t,0,""),s=Be(t,1,"");gn(t)>=3&&(t=Ga(t),s=t),o.push({item:e,[n]:a,[i]:s})}),o}function m(e,t){let r=[...h(e),...h(t)];return 0===gn(r)?"":g(r)}function I(e,t){let r=[...A(e),...A(t)];return 0===gn(r)?"":p(r)}function y(e,t){let r=h(e),n=h(t),i=[];return Cr(r,e=>{va(e,n)||i.push(e)}),0===gn(i)?"":g(i)}function v(e,t){let r=A(e),n=A(t),i=[];return Cr(r,e=>{va(e,n)||i.push(e)}),0===gn(i)?"":p(i)}"1p"!==u&&"2p"!==u&&(u="auto");let b={parse:function(e,t={}){if(!Fe(e))return[];let n=Be(t,"mode");return"1p"!==n&&"2p"!==n&&(n=u),"1p"===n?h(e):"2p"===n||e.indexOf(r)>=0?A(e):h(e)},join:function(e,t={}){if(!Or(e))return"";let r=Be(t,"mode");if("1p"!==r&&"2p"!==r&&(r=u),"1p"===r)return g(e);if("2p"===r)return p(e);let o=Be(e,0);return Ne(o,n)&&Ne(o,i)?p(e):g(e)},remove:function(e,t,n={}){if(!Fe(e))return"";if(!Fe(t))return e;let i=Be(n,"mode");return"1p"!==i&&"2p"!==i&&(i=u),"1p"===i?y(e,t):"2p"===i||t.indexOf(r)>=0?v(e,t):y(e,t)},add:function(e,t,n={}){let i=Be(n,"mode");if("1p"!==i&&"2p"!==i&&(i=u),"1p"===i)return m(e,t);if("2p"===i)return I(e,t);let o=e.indexOf(r)>=0,a=t.indexOf(r)>=0;return o||a?I(e,t):m(e,t)}};return b},e.b642obj=function(e){if(!De(e))return{};let t={};try{t=$a(Ka(e))}catch(e){t={}}return t},e.b642str=Ka,e.b642u16arr=rs,e.b642u8arr=Za,e.binstr=ns,e.blob2ab=os,e.blob2b64=as,e.blob2str=function(e){let t=is(),r=new FileReader;return r.onload=function(){t.resolve(r.result)},r.onerror=function(e){t.reject(e)},r.readAsText(e),t},e.blob2u8arr=ss,e.blobs2b64s=ls,e.blobs2u8arrs=cs,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>${ds(Dr(arguments,function(e){return An(e)}).join(", "))}</code>\n </div>\n `;document.querySelector("body").insertAdjacentHTML("beforeend",e)},e.browserView=gs,e.browserViewFromBlob=function(e,t){ps(e)&&gs(e,t)},e.browserViewFromText=function(e){De(e)&&gs(e,"text/plain")},e.browserViewFromU8arr=function(e,t){es(e)&&gs(e,t)},e.bs2u8arr=hs,e.bufRead=As,e.bufReadDbl=ms,e.bufWrite=Is,e.bufWriteDbl=ys,e.cache=function(){let e=_i(),t={};function r(t,r){setTimeout(()=>{e.emit(t,r)},1)}function n(e,n={}){if(Ne(t,e))return;let i=Be(n,"fun");ba(i)||(i=async()=>{});let o=Be(n,"inputs");xe(o)||(o=[]);let a=Be(n,"timeExpired");to(a)||(a=5e3),a=eo(a),t[e]={needExec:!0,fun:i,running:!1,inputs:o,value:null,time:null,timeExpired:a},r("message",{fun:"set",key:e,timeExpired:a})}async function i(e){if(Ne(t,e)){let n;r("message",{fun:"get",key:e,msg:"waiting"}),await bs(()=>!t[e].running,{timeInterval:1e3});let i=Date.now();n=t[e].needExec;let o=i-t[e].time;return n?r("message",{fun:"get",key:e,msg:"execute first"}):t[e].timeExpired>0&&o>t[e].timeExpired&&(r("message",{fun:"get",key:e,msg:"execute by timeExpired",timeDiff:o}),n=!0),n?(r("message",{fun:"get",key:e,msg:"fun start"}),t[e].running=!0,t[e].value=await t[e].fun(...t[e].inputs).catch(t=>{r("error",{fun:"get",key:e,msg:t})}),t[e].needExec=!1,t[e].time=i,t[e].running=!1,r("message",{fun:"get",key:e,msg:"fun end"})):r("message",{fun:"get",key:e,msg:"use cache"}),Vi(t[e].value)}return r("error",{fun:"get",key:e,msg:"invalid key"}),null}return e.set=n,e.getProxy=async function(e,t={}){return n(e,t),i(e)},e.get=i,e.update=function(e,n){Ne(t,e)&&(r("message",{fun:"updateValue",key:e}),t[e].value=n,t[e].time=Date.now())},e.clear=function(e){Ne(t,e)&&(r("message",{fun:"clear",key:e}),t[e].needExec=!0)},e.remove=function(e){Ne(t,e)&&(r("message",{fun:"remove",key:e}),delete t[e])},e},e.cacheBd=function(e,t={}){let r=Be(t,"nMax");to(r)||(r=200),r=eo(r);let n=Be(t,"nTrigger");to(n)||(n=3),n=eo(n);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<=r&&(t>n&&!o&&await a(...e).catch(()=>{}),null===i);t++)await ws(1e3);if(null===i)throw new Error(`exceeded nMax[${r}]`);return i}}},e.cacheSt=function(e={}){let t=Be(e,"timeExpire",null);to(t)||(t=18e5),t=eo(t);let r=Be(e,"timeDetect",null);to(r)||(r=2e3),r=eo(r);let n=_i(),i={},o=e=>{if(Ne(i,e)){let t=`checkWithSet: key in use: ${e}`;return n.emit("checkWithSet",{state:"error",msg:t}),!1}i[e]={time:Date.now(),value:!0};let t=`checkWithSet: ${e}`;return n.emit("checkWithSet",{state:"success",msg:t}),!0},a=setInterval(()=>{n.emit("detect",{state:"start"});let e=Date.now();for(let r of Object.keys(i)){let n=i[r];n&&e-n.time>t&&delete i[r]}n.emit("detect",{state:"finish"})},r);return n.checkWithSet=o,n.setWithFree=async(e,t)=>{n.emit("setWithFree",{state:"start"});let r=[];for(let t of e){if(!o(t)){for(let e of r)delete i[e];let e=`setWithFree: key in use: ${t}`;return n.emit("setWithFree",{state:"error",msg:e}),Promise.reject(e)}r.push(t)}try{let r=await t(),i=`setWithFree: ${e.join(", ")}`;return n.emit("setWithFree",{state:"success",msg:i}),r}catch(e){let t=`setWithFree: fn threw: ${e&&e.message||e}`;throw n.emit("setWithFree",{state:"error",msg:t}),e}finally{for(let e of r)delete i[e]}},n.set=async(e,t=!0)=>{i[e]={time:Date.now(),value:t};let r=`set: ${e}`;n.emit("set",{state:"success",msg:r})},n.get=async e=>{let t=i[e],r=void 0===t?null:t.value,o=`get: ${e}`;return n.emit("get",{state:"success",msg:o}),r},n.check=async e=>{let t=Ne(i,e),r=`check: ${e} = ${t}`;return n.emit("check",{state:"success",msg:r}),t},n.del=async e=>{delete i[e];let t=`del: ${e}`;n.emit("del",{state:"success",msg:t})},n.waitExist=async(e,t={})=>{let r=Be(t,"attemptNum",null);to(r)||(r=30),r=eo(r);let o=Be(t,"timeInterval",null);to(o)||(o=100),o=eo(o),n.emit("waitExist",{state:"start"});try{await bs(()=>Ne(i,e),{attemptNum:r,timeInterval:o})}catch(t){let i=`waitExist timeout (${r*o}ms): ${e}`;return n.emit("waitExist",{state:"error",msg:i}),Promise.reject(i)}let a=`waitExist resolved: ${e}`;n.emit("waitExist",{state:"success",msg:a})},n.waitNotExist=async(e,t={})=>{let r=Be(t,"attemptNum",null);to(r)||(r=30),r=eo(r);let o=Be(t,"timeInterval",null);to(o)||(o=100),o=eo(o),n.emit("waitNotExist",{state:"start"});try{await bs(()=>!Ne(i,e),{attemptNum:r,timeInterval:o})}catch(t){let i=`waitNotExist timeout (${r*o}ms): ${e}`;return n.emit("waitNotExist",{state:"error",msg:i}),Promise.reject(i)}let a=`waitNotExist resolved: ${e}`;n.emit("waitNotExist",{state:"success",msg:a})},n.clear=()=>{clearInterval(a)},n},e.cbol=function(e){if(hn(e))return e;if(0===e)return!1;if(1===e)return!0;let t=!1;return Fe(e)&&"true"===(e=Bs(la(e)))&&(t=!0),t},e.cdbl=Hn,e.ceil=ac,e.cfilesize=function(e){return ke(e)?(e=Hn(e))<1024?sc(e,1)+" b":e<1048576?sc(e/1024,1)+" kb":e<1073741824?sc(e/1024/1024,1)+" mb":e<1099511627776?sc(e/1024/1024/1024,1)+" gb":"":""},e.cfinancial=function(e,t=0){if(!ke(e))return"";if(!Eo(t))return"";let r=(e=sc(e,t)).split("."),n=r[0],i=r.length>1?"."+r[1]:"",o=/(\d+)(\d{3})/;for(;o.test(n);)n=n.replace(o,"$1,$2");return n+i},e.cint=eo,e.clearXSS=lc,e.clearXSSDyn=async function(e,t={},r){return Or(r)||(r=["https://cdn.jsdelivr.net/npm/xss@1.0.15/dist/xss.min.js"]),await gc(r),lc(e)},e.color=yu,e.composeToTree=Eu,e.convertToTree=function(e,t={}){if(!Ce(e)&&!Or(e))return[];let r=Be(t,"bindKey",null);Fe(r)||(r="id");let n=Be(t,"bindParent",null);Fe(n)||(n="parentId");let i=Be(t,"bindText",null);Fe(i)||(i="text");let o=Be(t,"bindChildren",null);Fe(o)||(o="children");let a=Be(t,"bindType",null);Fe(a)||(a="type");let s=Be(t,"bindNumOfChilren",null);Fe(s)||(s="numOfChilren");let l=Be(t,"bindRoot",null);Fe(l)||(l="root");let c=Be(t,"saveExtProps",null);return hn(c)||(c=!1),Fe(l)&&(e={[l]:e}),Eu(xu(e,{bindKey:r,bindParent:n,bindText:i,bindType:a,bindNumOfChilren:s}),{bindKey:r,bindParent:n,bindChildren:o,saveExtProps:c})},e.copyStrToClipboard=function(e,t={}){if(!De(e))return"invalid input";let r=Be(t,"eleParent");wr(r)||(r=document.body);let n=document.createElement("textarea");if(n.style.position="fixed",n.style.left=0,n.style.top=0,n.style.zIndex=-1,n.style.background="transparent",n.style.color="transparent",n.value=e,r.appendChild(n),n.select(),!Du(n))return"ele can not be focusd";try{document.execCommand("copy")}catch(e){return"can not copy str to clipboard"}return r.removeChild(n),""},e.cosd=Fu,e.cotd=function(e){return ke(e)?1/Qu(e=Hn(e)):null},e.createExcelWorkbook=Su,e.cscd=function(e){return ke(e)?1/ku(e=Hn(e)):null},e.cstr=ja,e.day2cht=function(e,t=!1){if(!Nu(e))return"";let n=r(e,"YYYY-MM-DD"),i="";return i=t?n.month()+1+"月"+n.date()+"日":"民國 "+(n.year()-1911)+" 年 "+(n.month()+1)+" 月 "+n.date()+" 日",i},e.debounce=qu,e.delay=ws,e.dig=sc,e.digExp=function(e,t=0){if(!ke(e))return"";if(!Eo(t))return"";let r="";return r=0===(e=Hn(e))?"0":Math.abs(e)<=1e-6?e.toExponential(t):sc(e,t),r},e.domAlert=function(e,t={}){if(!Fe(e))return;let r=Be(t,"type","success");Ne(Tu,r)||(r="success");let n=Be(t,"icon",null);Fe(n)||(n=Tu[r]);let i="top-right";"top-left"!==t.position&&"bottom-right"!==t.position&&"bottom-left"!==t.position||(i=t.position);let o=Be(t,"time");ya(o)||(o=4e3),o<0&&(o=4e3);let a=Be(t,"paddingStyle",null);null===a&&(a={top:14,right:26,bottom:14,left:14});let s="";{let e=Be(a,"top",0),t=Be(a,"bottom",0),r=Be(a,"left",0);s=`padding:${e}px ${Be(a,"right",0)}px ${t}px ${r}px;`}let l=Be(t,"textColor","#000");l=hc(l,";","");let c=Be(t,"backgroundColor","#fff");c=hc(c,";","");let u=Be(t,"borderWidth",1),f=Be(t,"borderColor","#ebeef5");f=hc(f,";","");let d=Be(t,"borderRadius",8),g=Be(t,"shadowStyle","0 2px 12px 0 rgba(0,0,0,.1)");g=hc(g,";","");let p=Be(t,"closeIconShift",null);null===p&&(p={top:10,right:10});let h="";{let e=Be(p,"top",""),t=Be(p,"bottom",""),r=Be(p,"left",""),n=Be(p,"right","");ya(e)&&(e=`top:${e}px;`),ya(t)&&(t=`bottom:${t}px;`),ya(r)&&(r=`left:${r}px;`),ya(n)&&(n=`right:${n}px;`),h=`position:absolute; ${e} ${n} ${t} ${r}`}let A=`alt-${Lu()}`,m=`alt-${Lu()}`,I=`\n <div \n style="display:inline-block; color:${l}; background:${c}; border:${u}px solid ${f}; border-radius:${d}px; box-shadow:${g};"\n onmouseenter="ttWAlertFadeIn('${m}')"\n onmouseleave="ttWAlertFadeOut('${m}')"\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;">${n}</div>\n </div>\n <div>${e}</div>\n </div>\n\n <div style="${h}">\n <div \n id="${m}" \n style="display:flex; cursor:pointer; opacity:0;" \n onclick="ttWAlertCancel('${A}')"\n >\n ${Ou}\n </div>\n </div>\n\n </div>\n </div>\n `,y=document.createElement("div");y.id=A,y.style.position="fixed",y.style.transition="transform 0.3s, top 0.5s, bottom 0.5s",y.style.zIndex=-1,y.style.opacity=.001,i.indexOf("-left")>=0?y.style.transform="translateX(-100%)":y.style.transform="translateX(100%)",y.innerHTML=I,document.querySelector("body").appendChild(y);let v=is();return function({id:e,position:t,time:r,pm:n}){Yu[e]={id:e,position:t,ele:null,loc:{height:null,top:null,bottom:null,left:null,right:null},timeShow:r,timeStart:Date.now(),pm:n},Ju(),null===ju&&(ju=setInterval(()=>{Cr(Yu,e=>{Date.now()-e.timeStart>e.timeShow&&(e.pm.resolve(),zu(e.id))}),Ce(Yu)||(clearInterval(ju),ju=null)},50))}({id:A,position:i,time:o,pm:v}),v},e.domAppend=Vu,e.domCancelEvent=Xu,e.domCompareText=function(e,t,r,n,i={}){if(!wr(e))return Promise.reject("invalid ele");let o=Be(i,"format");"side"!==o&&"line"!==o&&(o="side");let a="side"===o?"side-by-side":"line-by-line",s=zf();Fe(t)||(t="Text");let l=ta(t,t,r,n),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=_f,e.domConvertToPicDyn=async function(e,t={},r){return Or(r)||(r=["https://cdn.jsdelivr.net/npm/@zumer/snapdom@1.9.14/dist/snapdom.min.js"]),await gc(r),_f(e,t)},e.domDetect=function(e,t={}){let r=Be(t,"timeInterval",null);to(r)||(r=20);let n=Be(t,"tolerancePixel",null);to(n)||(n=1);let i,o=_i(),a={offsetWidth:0,offsetHeight:0,clientWidth:0,clientHeight:0,windowWidth:0,windowHeight:0},s=Vi(a),l={width:"",height:""};if(!ba(e))return console.log("invalid f",e),null;i=setInterval(()=>{let t=e();if(t){let e={offsetWidth:t.offsetWidth,offsetHeight:t.offsetHeight,clientWidth:t.clientWidth,clientHeight:t.clientHeight,windowWidth:window.innerWidth,windowHeight:window.innerHeight},r=s.offsetWidth-e.offsetWidth,i=s.offsetHeight-e.offsetHeight,c=Math.abs(r)>n,u=Math.abs(i)>n,f="";r>0?f="smaller":r<0&&(f="larger");let d="";if(i>0?d="smaller":i<0&&(d="larger"),l={width:f,height:d},c||u){let r={...s};setTimeout(()=>{e.offsetWidth>0&&e.offsetHeight>0&&(o.emit("resize",{sold:r,snew:e,smode:l,ele:t}),o.emit("resizeWithWindow",{sold:r,snew:e,smode:l,ele:t,from:"dom"}))},1)}a=s,s=e}},r);let c=e=>{o.emit("resizeWithWindow",{sold:a,snew:s,smode:l,from:"window"})};return window.addEventListener("resize",c),o.clear=()=>{clearInterval(i),window.removeEventListener("resize",c)},o},e.domDrag=function(e,t={}){if(!wr(e))return void console.log("ele is not a HTMLElement",e);let r=Be(t,"attIdentify",null);Fe(r)||(r="dragid");let n=Be(t,"attIndex",null);Fe(n)||(n="dragindex");let i=Be(t,"attGroup",null);Fe(i)||(i="draggroup");let o=Be(t,"group",null);Fe(o)||(o="group");let a=Be(t,"previewOpacity",null);ya(a)||(a=.4);let s=Be(t,"previewDisabledOpacity",null);ya(s)||(s=.2);let l=Be(t,"previewBackground",null);Fe(l)||(l="white");let c=Be(t,"previewBorderWidth",null);ya(c)||(c=1);let u=Be(t,"previewBorderColor",null);Fe(u)||(u="#f26");let f=Be(t,"timeDragStartDelay",null);ya(f)||(f=120);let d=`c${Lu(8)}`,g=o;e.setAttribute(i,g),e.setAttribute(r,d);let p=od(g,d,{attIdentify:r,previewOpacity:a,previewBackground:l,previewBorderWidth:c,previewBorderColor:u}),h=function(e,t){let r=[];return{bind:function(){let n;n="mousedown";let i=function(r){t.dragStart({e:r,ele:e,name:"mousedown"})};e.addEventListener(n,i,!1),r.push({ele:e,name:n,f:i}),n="touchstart";let o=function(r){t.dragStart({e:r,ele:e,name:"touchstart"})};e.addEventListener(n,o,!1),r.push({ele:e,name:n,f:o}),n="touchmove";let a=function(e){t.dragMove({e:e,name:"touchmove"}),e.cancelable&&e.preventDefault()};e.addEventListener(n,a,!1),r.push({ele:e,name:n,f:a})},unbind:function(){Cr(r,({ele:e,name:t,f:r})=>{e.removeEventListener(t,r)})}}}(e,{dragStart:e=>{p.emit(g+"-dragStart",e)},dragMove:e=>{p.emit(g+"-dragMove",e)}});h.bind(),sd({gid:g,attGroup:i,attIndex:n,attIdentify:r,timeDragStartDelay:f,previewOpacity:a,previewDisabledOpacity:s});let A=_i();return p.on(o+"-change",e=>{e.tarEid===d&&A.emit("change",e)}),p.on(o+"-start",e=>{e.tarEid===d&&A.emit("start",e)}),p.on(o+"-move",e=>{e.tarEid===d&&A.emit("move",e)}),p.on(o+"-enter",e=>{e.tarEid===d&&A.emit("enter",e)}),p.on(o+"-leave",e=>{e.tarEid===d&&A.emit("leave",e)}),p.on(o+"-drop",e=>{e.tarEid===d&&A.emit("drop",e)}),A.setIsActive=function(e){id[g].isActive=e},A.unbind=function(){h.unbind(),function(e,t){let r=id[e],n=Vi(r.eleIds);Wf(n,t),r.eleIds=n,0===n.length&&(r.oevg.unbind(),r.pv.clear(),delete id[e])}(g,d)},A},e.domDragBarAndScroll=function(e,t,r={}){let n=null,i=null,o=null,a=null,s=null,l=null,c=null,u=null,f=null,d=null,g=null,p=null,h=null,A=null,m=null,I=!1,y=Be(r,"getHeighRatio",null);O(y)||(y=()=>1);let v=Be(r,"getWidthRatio",null);O(v)||(v=()=>1);let b=Be(r,"stopScrollPropagationForPanel",null);pn(b)||(b=!1);let w=Be(r,"stopTouchDragPropagationForPanel",null);pn(w)||(w=!1);let B=Be(r,"useTouchDragForPanel",null);pn(B)||(B=!0);let E=e,C=t,x=_i();return n=e=>{let t=e.deltaY/Math.abs(e.deltaY),r=e.deltaX/Math.abs(e.deltaX);x.emit("scrollPanel",{ratioY:t,ratioX:r}),b&&Xu(e)},E.addEventListener("wheel",n),i=e=>{if(B){let t=Be(e,"touches.0.clientY",0),r=Be(e,"touches.0.clientX",0),n=-t*y(),i=-r*v();I=!0,x.emit("pressBar",{clientY:n,clientX:i}),w&&Xu(e)}},E.addEventListener("touchstart",i),o=e=>{if(B&&I){let t=Be(e,"touches.0.clientY",0),r=Be(e,"touches.0.clientX",0),n=-t*y(),i=-r*v();x.emit("dragBar",{clientY:n,clientX:i}),w&&Xu(e)}},E.addEventListener("touchmove",o,{passive:!1}),a=e=>{B&&I&&(I=!1,x.emit("freeBar"),w&&Xu(e))},E.addEventListener("touchend",a),s=e=>{I=!0,x.emit("pressBar",{clientY:e.clientY,clientX:e.clientX})},C.addEventListener("mousedown",s),l=e=>{I&&(I=!1,x.emit("freeBar"))},C.addEventListener("mouseup",l),c=e=>{I=!0,x.emit("pressBar",{clientY:e.touches[0].clientY,clientX:e.touches[0].clientX})},C.addEventListener("touchstart",c),u=e=>{I&&(x.emit("dragBar",{clientY:e.touches[0].clientY,clientX:e.touches[0].clientX}),Xu(e))},C.addEventListener("touchmove",u,{passive:!1}),f=e=>{I&&(I=!1,x.emit("freeBar"))},C.addEventListener("touchend",f),d=e=>{I&&x.emit("dragBar",{clientY:e.clientY,clientX:e.clientX})},window.addEventListener("mousemove",d),g=e=>{I&&(I=!1,x.emit("freeBar"),b&&Xu(e))},window.addEventListener("mouseup",g),p=e=>{},window.addEventListener("scroll",p,{passive:!1}),h=e=>{},window.addEventListener("wheel",h,{passive:!1}),A=e=>{},document.addEventListener("scroll",A,{passive:!1}),m=e=>{},document.addEventListener("wheel",m,{passive:!1}),x.clear=function(){E.removeEventListener("wheel",n),E.removeEventListener("touchstart",i),E.removeEventListener("touchmove",o),E.removeEventListener("touchend",a),C.removeEventListener("mousedown",s),C.removeEventListener("mouseup",l),C.removeEventListener("touchstart",c),C.removeEventListener("touchmove",u),C.removeEventListener("touchend",f),window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",g),window.removeEventListener("scroll",p),window.removeEventListener("wheel",h),document.removeEventListener("scroll",A),document.removeEventListener("wheel",m)},x},e.domDragPreview=nd,e.domDropFiles=function(e){let t=!1,r=!1,n=_i();function i(e){Xu(e),r=!0,!1===t&&(t=!0,n.emit("dropIn",{ev:e}))}function o(e){Xu(e),r=!1,setTimeout(function(){r||(t=!1,n.emit("dropOut",{ev:e}))},100)}function a(e){i(e)}function s(e){o(e)}function l(e){function t(){o(e)}i(e),ud(e.dataTransfer).then(r=>{let i=ha(r.entries,{type:"file"});n.emit("getFiles",{ev:e,files:r.files,filesTree:i,entries:r.entries,cb:t})}).catch(e=>{n.emit("error",e)})}return e.addEventListener("dragenter",a,!1),e.addEventListener("dragover",a,!1),e.addEventListener("dragleave",s,!1),e.addEventListener("drop",l,!1),n.off=function(){e.removeEventListener("dragenter",a,!1),e.removeEventListener("dragover",a,!1),e.removeEventListener("dragleave",s,!1),e.removeEventListener("drop",l,!1)},n},e.domElementsFromPoint=Zf,e.domFadeIn=Uu,e.domFadeOut=Ru,e.domFind=fd,e.domFinds=Vf,e.domGetAttr=ed,e.domGetBoudRect=td,e.domGetBoudRectRefSelf=rd,e.domGetFileAccept=yd,e.domGetFiles=vd,e.domGetParents=Kf,e.domGetPointFromEvent=$f,e.domGetScrollableParent=function(e){let t=/(auto|scroll)/,r=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},n=function(e){return t.test(function(e){return r(e,"overflow")+r(e,"overflow-y")+r(e,"overflow-x")}(e))};if(!(e instanceof HTMLElement||e instanceof SVGElement))return;let i=Kf(e);for(let e=0;e<i.length;e+=1)if(n(i[e]))return i[e];return document.scrollingElement||document.documentElement},e.domGetWindowSize=function(){let e=vn();return{width:(()=>{let t=[Be(e,"innerWidth"),Be(e,"document.documentElement.clientWidth"),Be(e,"document.body.clientWidth")];return t=ha(t,ya),Bd(t)})(),height:(()=>{let t=[Be(e,"innerHeight"),Be(e,"document.documentElement.clientHeight"),Be(e,"document.body.clientHeight")];return t=ha(t,ya),Bd(t)})()}},e.domIsClientXYIn=function(e,t,r){if(!ya(e))return void console.log("clientX is not a number",e);if(!ya(t))return void console.log("clientY is not a number",t);if(!wr(r))return void console.log("ele is not a HTMLElement",r);let n;try{n=r.getBoundingClientRect()}catch(e){return void console.log("invalid ele for getBoundingClientRect",e)}let i=!1;try{i=e>=n.left&&e<=n.right&&t>=n.top&&t<=n.bottom}catch(e){console.log("catch when calculating page information of element",e)}return i},e.domIsFocused=Du,e.domIsStable=function(e,t={}){if(!wr(e))return Promise.reject("invalid element");if(!ba(e.getBoundingClientRect))return Promise.reject("invalid element.getBoundingClientRect");let r=Be(t,"mode","");"promise"!==r&&"event"!==r&&(r="promise");let n=Be(t,"tolerance",0),i=Be(t,"timeDiff",100),o=Be(t,"timeDetect",50),a=()=>{let t=e.getBoundingClientRect();return{x:t.left,y:t.top,w:t.width,h:t.height}},s=()=>{try{return e.getAnimations({subtree:!0})}catch(e){return[]}},l=async()=>{let e=is();try{let t=a();await ws(i);let r=((e,t)=>!!e&&!!t&&Math.abs(e.x-t.x)<=n&&Math.abs(e.y-t.y)<=n&&Math.abs(e.w-t.w)<=n&&Math.abs(e.h-t.h)<=n)(t,a());await Promise.allSettled(s().map(e=>e.finished));let o=0===s().length,l=r&&o;e.resolve(l)}catch(t){e.reject(t)}return e},c=()=>{let t=_i(),r=!1,n=null,i=null,a=!1;return t.create=()=>{n=setInterval(()=>{r=(e=>{let r=!1;if(!wr(e))return r;try{let e=!1,n=!1;i=setInterval(()=>{a?clearInterval(i):e||(e=!0,l().then(e=>{a||n!==e&&(n=e,t.emit("stable",e))}).catch(()=>{}).finally(()=>{e=!1}))},o),r=!0}catch(e){}return r})(e),r&&clearInterval(n)},50)},t.dispose=()=>{let e=!1;try{clearInterval(n),clearInterval(i),a=!0,e=!0}catch(e){}return e},t},u=null;return"promise"===r?u=l():"event"===r&&(u=c()),u},e.domIsVisible=function(e,t={}){if(!wr(e))return Promise.reject("invalid element");if(Ed())return Promise.reject("invalid IntersectionObserver");let r=Be(t,"mode","");"promise"!==r&&"event"!==r&&(r="promise");let n=()=>{let t=_i(),r=!1,n=null,i=!1,o=new IntersectionObserver(e=>{if(i)return;let r=e[0].isIntersecting;t.emit("visible",r)});return t.create=()=>{n=setInterval(()=>{i?clearInterval(n):(r=(e=>{let t=!1;if(!wr(e))return t;try{o.observe(e),t=!0}catch(e){}return t})(e),r&&clearInterval(n))},50)},t.dispose=()=>{let e=!1;try{clearInterval(n),o.disconnect(),i=!0,e=!0}catch(e){}return e},t},i=null;return"promise"===r?i=(()=>{let t=is();try{let r=new IntersectionObserver(e=>{t.resolve(e[0].isIntersecting),r.disconnect()});r.observe(e)}catch(e){t.reject(e)}return t})():"event"===r&&(i=n()),i},e.domPrepend=Xf,e.domRemove=Pf,e.domRenderMarkdownMind=Cd,e.domRenderMarkdownMindDyn=async function(e,t,r={},n){return Or(n)||(n=["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 gc(n),Cd(e,t,r)},e.domRipple=function(e,t,r={}){let n=Be(r,"timeDuration",null);to(n)||(n=1e3);let i=Be(r,"color",null);if(Fe(i)||(i="rgba(255, 255, 255, 0.5)"),!wr(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 ${n/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(()=>{Pf(c)},n)},e.domScrollIntoView=function(e,t={}){if(!wr(e))return;Ee(t)||(t={});let r={behavior:"smooth"};r={...r,...t},Pu()&&pg(),e.scrollIntoView(r)},e.domScrollTo=function(e,t={}){if(!wr(e))return;Ee(t)||(t={});let r={behavior:"smooth"};r={...r,...t},Pu()&&pg(),e.scrollTo(r)},e.domSetAttr=function(e,t,r){if(!wr(e))return null;if(!Fe(t))return null;if(!Fe(r)&&!ke(r))return null;try{return e.setAttribute(t,r),e.getAttribute(t)}catch(e){}return null},e.domShowImages=wg,e.domShowImagesDyn=async function(e,t=null,r={},n){return Or(n)||(n=["https://cdn.jsdelivr.net/npm/viewerjs@1.11.7/dist/viewer.min.css","https://cdn.jsdelivr.net/npm/viewerjs@1.11.7/dist/viewer.min.js"]),await gc(n),wg(e,t,r)},e.domShowInputAndGetFiles=Eg,e.domShowInputAndGetFilesU8Arrs=function(e={}){let t=Be(e,"kind","*"),r=Be(e,"multiple");hn(r)||(r=!1);let n=Be(e,"entireHierarchy");hn(n)||(n=!1);let i=Be(e,"sizeMbLimit");ke(i)||(i=1e3),i=Hn(i);let o=is(),a=[];return Eg({kind:t,multiple:r,entireHierarchy:n,sizeMbLimit:i}).then(function(e){let t=is(),r=Be(e,"errs",{}),n=Be(e,"files",[]);return Ce(r)?t.reject(r):t.resolve(n),t}).then(function(e){return Cr(e,function(e){a.push({name:e.name,size:e.size,type:e.type})}),cs(e)}).then(function(e){Cr(e,function(e,t){a[t].u8a=e}),o.resolve(a)}).catch(function(e){o.reject(e)}),o},e.domShowInputDatatime=function(e,t={}){let n=Be(t,"type","");"date"!==n&&"datetime-local"!==n&&(n="datetime-local");let i=Be(t,"eleRef",null);wr(i)||(i=document.activeElement);let o=is(),a="drf"+Lu(),s="GrpDomShowDatatime";Pf(`[name=${s}]`);let l=!1,c="";if("date"===n)Nu(e)&&(l=!0,c=e);else if(Cg(e)){l=!0,c=r(e).format("YYYY-MM-DDTHH:mm")}Fe(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="${n}" style="opacity:0;" ${l?c:""} />\n </div>\n `;let f=null;wr(i)?i.parentNode.insertBefore(u,i.nextSibling):document.querySelector("body").appendChild(u);let d=!1;function g(){if(!d){d=!0;try{f.removeEventListener("change",h,!0),i.removeEventListener("focusout",A,!0)}catch(e){}if(Pf(`[name=${s}]`),Fe(p)){let e="";e="date"===n?p:`${p}:00`,o.resolve(e)}}}let p="";function h(e){try{p=e.target.value}catch(e){console.log(e)}g()}function A(e){setTimeout(()=>{g()},50)}return setTimeout(()=>{f=fd("#"+a),f.addEventListener("change",h,!0),f.showPicker()},1),i.addEventListener("focusout",A,!0),o},e.domTooltip=function(e,t,r={}){let n=null,i=null;function o(){null!==n&&n.destroy(!0),e.setAttribute("tippystate",""),clearInterval(i)}let a={arrow:!0,theme:"dark",placement:"bottom",delay:150};r=Ce(r)?bg(a,r):a;let s=t;t||(s=e.innerHTML);let l=ke(e.getAttribute("tippystate"));if(e.setAttribute("tippystate","5"),l)return;s=`<div style="text-align:left;">${s}</div>`;let c=Lh;Lh.default&&(c=Lh.default),n=c(e,{...r,content:s,allowHTML:!0,onHidden(){o()},onDestroy(){n=null,o()}}),n.show(),i=setInterval(()=>{let t=e.getAttribute("tippystate");ke(t)?(t=eo(t),t-=1,e.setAttribute("tippystate",t),t<=0&&o()):o()},1e3)},e.domTriggerEvent=Bg,e.domVirtualCreate=Rh,e.domVirtualCreateQueue=function(){return new function(){let e=Gh(1);return async function(t,r={}){return e(Rh,t,r)}}},e.downloadExcelFileFromData=Ph,e.downloadExcelFileFromDataDyn=async function(e,t="data",r,n){Or(n)||(n=["https://cdn.sheetjs.com/xlsx-0.20.3/package/dist/xlsx.full.min.js"]),await gc(n);let i=Ph(e,t,r);return""!==Be(i,"error","")?Promise.reject(i.error):i},e.downloadFileFromB64=function(e,t){if(!yn())return void console.log("no window");if(!Fe(e))return void console.log("no filename");let r=document.createElement("a");r.href=t,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)},e.downloadFileFromBlob=Jh,e.downloadFileFromText=function(e,t,r=!0){if(!yn())return void console.log("no window");if(!Fe(e))return void console.log("invalid filename");if(!De(t))return void console.log("invalid content");if(!hn(r))return void console.log("withBOM is not a boolean");let n;n=r?new Blob(["\ufeff",t]):new Blob([t]),Jh(e,n)},e.downloadFileFromU8Arr=function(e,t){if(!yn())return void console.log("no window");if(!Fe(e))return void console.log("no filename");if(!es(t))return void console.log("no data");Jh(e,Xh(t))},e.dtmapping=_h,e.dtpick=Wh,e.estimateTicks=function(e,t,r={}){if(!ke(e))throw new Error("rmin is not a number");if(e=Hn(e),!ke(t))throw new Error("rmax is not a number");if(e===(t=Hn(t))){let t=null;t=0===e?1:Math.abs(e/10);let r=$h(t,{returnDigit:!0});return t=Kh(t,r),{tickNum:3,tickInterval:t,tickPositions:[e-t,e,e+t],tickDig:r}}if(e>t)throw new Error(`rmin[${e}] > rmax[${t}]`);let n=Be(r,"testTickNums");Or(n)||(n=[3,4,5]);let i=e,o=t,a=Zh(i),s=Zh(o),l=Math.max(a.r,s.r),c=Math.log10(l),u=i/l,f=o/l,d=(u+f)/2,g=f-u,p=[];Cr(n,e=>{let t=g/(e-1),r=$h(t,{returnDigit:!0});r=Math.min(r,2),Cr(so(r,-1,-1),r=>{let n=r-c;n=Math.max(n,0);let i=ac(t,r),o=i-1/Math.pow(10,r);o=Kh(o,r);let a=i+1/Math.pow(10,r);a=Kh(a,r);let s=[o,i,a];s=ha(s,e=>e>0);let h=Kh(d,r),A=h-1/Math.pow(10,r);A=Kh(A,r);let m=h+1/Math.pow(10,r);m=Kh(m,r);let I=[A,h,m];Cr(s,t=>{let i=l*t;i=Kh(i,n),Cr(I,o=>{let a=[],s=[];{let i=o-(e-1)/2*t;for(let o=0;o<e;o++){let e=i+o*t;e=Kh(e,r),a.push(e);let c=l*e;c=Kh(c,n),s.push(c)}}let c=(d=a)&&d.length?d[0]:void 0;var d;let h=Sa(a);if(c>u||h<f)return!0;let A=(u-c)/g,m=(h-f)/g,I=(A+m)/2,y=0;Cr(s,e=>{Ln(e)&&y++});let v=y/e,b=0;Cr(a,e=>{0===e&&b++});let w=b/e,B=0;Cr(a,e=>{.5===e&&B++});let E=B/e,C=0;Cr(a,e=>{1===e&&C++});let x=C/e,D={diff:I,rngCenter:o,numInt:y,ratInt:v,num0:b,rat0:w,num5:B,rat5:E,num10:C,rat10:x,overMin:A,overMax:m,fitness:I+.2*r+.1*e+1.5*A+1.5*m+(1-.25*v)+(1-.4*w)+(1-.3*E)+(1-.3*x),idg:r,tickNum:e,_tickDig:r,_tickInterval:t,_tickPositions:a,tickDig:n,tickInterval:i,tickPositions:s};p.push(D)})})})}),p=Ta(p,"fitness");let h=Be(p,0);return{tickNum:h.tickNum,tickInterval:h.tickInterval,tickPositions:h.tickPositions,tickDig:h.tickDig}},e.evem=_i,e.execCli=async function(e,t=[],r={}){if(!Fe(e))return{ok:!1,stdout:"",stderr:"",code:null,error:"command 須為非空字串",durationMs:0,attempts:0};xe(t)||(t=[]),Ee(r)||(r={});let{maxRetries:n=0,retryDelayMs:i=5e3,...o}=r,a=Be(o,"cwd",null);Fe(a)?o.cwd=a:o.cwd=process.cwd();let s=Be(o,"input",null);Fe(s)?o.input=s:o.input=void 0;let l=Be(o,"env",null);Ee(l)?o.env=l:o.env=void 0;let c=Be(o,"validate",null);ba(c)||Fe(c)?o.validate=c:o.validate=void 0;let u=Be(o,"onStdout",null);ba(u)?o.onStdout=u:o.onStdout=void 0;let f=Be(o,"onStderr",null);ba(f)?o.onStderr=f:o.onStderr=void 0,n=Eo(n)?eo(n):0,i=to(i)?eo(i):5e3;let d=Be(o,"timeoutMs",null);to(d)?o.timeoutMs=eo(d):o.timeoutMs=12e4;let g,p=Be(o,"maxBuffer",null);to(p)?o.maxBuffer=eo(p):o.maxBuffer=10485760;let h=0;for(let r=0;r<=n;r++){if(r>0){let e=Math.min(i*r,15e3);await ws(e)}if(g=await cA(e,t,o),h=r+1,g.ok)return g.attempts=h,g;if(g.error.includes("ENOENT"))break;if(2===g.code)break}return g.attempts=h,g},e.execJsCode=async function(e,t={}){e=o.resolve(e);let r=(await import(l.pathToFileURL(e).href)).default;if(!ba(r))throw new Error(`the default export of [${e}] is not a function`);return await r(t)},e.execProcess=function(e,t,r={}){if(!Or(t)&&!Fe(t))throw new Error("args is not an effective array or string");Fe(t)&&(t=[t]);let n=Be(r,"mode");"spawn"!==n&&"exec"!==n&&"execFile"!==n&&(n="spawn");let o=Be(r,"cbStdout"),a=Be(r,"cbStderr"),s=Be(r,"codeCmd");Fe(s)||(s="utf8");let l=Be(r,"useChcp");hn(l)||(l=!1);let c=Be(r,"timeout");(!ke(c)||c<=0)&&(c=null);let u=is();if(!va(n,["spawn","exec","execFile"]))return u.reject(`invalid mode[${n}]`),u;let f=null,d="";try{if("spawn"===n){let r=fa(e,1),n=da(e,1);if('"'===r||'"'===n||"'"===r||"'"===n)throw new Error("prog of spawn doens not need to add quotes");f=i.spawn(e,t,{windowsHide:!0,shell:!1})}else if("exec"===n){let r="";l&&(r="cmd /c chcp 65001>nul &&"),f=i.exec(`${r} ${e} ${t.join(" ")} & exit`,{windowsHide:!0,encoding:s})}else"execFile"===n&&(f=i.execFile(e,t,{windowsHide:!0,encoding:s}))}catch(e){return u.reject(e),u}f.stdout.on("data",e=>{let t="";t="spawn"===n?e.toString(s):e.toString(),d+=t+"\n",ba(o)&&o(t)}),f.stderr.on("data",e=>{let t="";t="spawn"===n?e.toString(s):e.toString(),d+=t+"\n",ba(a)&&a(t)});let g=null,p=!1;return null!==c&&(g=setTimeout(()=>{p=!0,f&&f.pid&&aA(f.pid).catch(()=>{})},c)),f.on("close",e=>{null!==g&&clearTimeout(g),p?u.reject(`timeout[${c}ms]:\n${d}`):0!==e?u.reject(`code[${e}]:\n${d}`):u.resolve(d)}),f.on("error",e=>{null!==g&&clearTimeout(g),u.reject(e)}),u},e.execProcessKillPid=aA,e.filepathToTree=function(e,t={}){if(!Or(e))return{};let r=Be(t,"delimiter");Fe(r)||(r="❯");let n=Be(t,"bindRoot");Fe(n)||(n="");let i=Fe(n),o="";o=i?n:"root";let a=Be(t,"soryItems"),s=Dr(e,(e,t)=>{"folder"!==e.type&&"file"!==e.type&&(e.type="file");let n=(e=>{let t=ua(e=(e=e.replace(/\\\\/g,"\\")).replace(/\\/g,"/"),"/");return{ss:t,cfp:Do(t,r)}})(e.path);return{ind:t,type:e.type,ss:n.ss,data:Vi(e)}}),l=e=>{let t=gn(e),n=[];for(let i=0;i<t;i++){let t=[];for(let r=0;r<=i;r++)t.push(e[r]);let o=Do(t,r);n.push({id:o,name:e[i]})}return n},c=-1,u=[],f={};Cr(s,e=>{let t=null;t=[o];let n=null;n=o;let i=gn(e.ss)-1;Cr(e.ss,(o,a)=>{let s=a<i||"folder"===e.type;t.push(o);let d=null,g=null;a===i&&(d=e.ind,g=e.data);let p=Do(t,r),h=l(t);if(Ne(f,p)){let t=f[p],r="folder"===Be(t,"_type","");if(!r&&s)throw console.log("kpLv[id]",t),console.log("v",e),new Error(`id[${p}] is unrecognized from a file to folder`);if(!r&&!s)throw console.log("kpLv[id]",t),console.log("v",e),new Error(`id[${p}] get repeat data from two files`);if(r&&!s)throw console.log("kpLv[id]",t),console.log("v",e),new Error(`id[${p}] is unrecognized from a folder to file`);if(Ce(f[p].data)&&Ce(g))throw console.log("kpLv[id]",t),console.log("v",e),new Error(`id[${p}] get repeat data from two folders`);if(null===f[p].data&&Ce(g)){f[p]._indOri=d,f[p].data=g;let e=f[p]._indNormalize,t=u[e];u[e]={...g,type:t.type,path:t.path}}}else{c++;let e=c,r=null;r=s?{_indOri:d,_indNormalize:e,ns:gn(t),ts:Vi(t),pathInfors:h,_type:"folder",type:"array",numOfChilren:-1,id:p,parentId:n,text:o,children:[],data:g}:{_indOri:d,_indNormalize:e,ns:gn(t),ts:Vi(t),pathInfors:h,_type:"file",type:"node",numOfChilren:-1,id:p,parentId:n,text:o,data:g},f[p]=r,u.push({...Be(f[p],"data",{}),type:f[p]._type,path:"/"+Do(t,"/")})}n=p})});let d=dA(f);if(d=Ta(d,"id"),d=Ta(d,"ns"),ba(a)){let e=[];Cr(yA(d,"ns"),(t,r)=>{Cr(yA(t,"parentId"),(t,n)=>{let i=a(t,n,r);e=[...e,...i]})}),d=e}let g=[],p=[];Cr(d,e=>{"folder"===e._type?g.push(e):p.push(e)});let h=yA(g,"ns"),A=yA(p,"ns"),m=fA(Dr(g,"ns")),I=fA(Dr(p,"ns")),y=null;{let e=[o];y=[{_indOri:null,_indNormalize:null,ns:gn(e),ts:Vi(e),pathInfors:l(e),_type:"folder",type:"array",numOfChilren:-1,id:o,parentId:"",text:o,children:[],data:null}]}let v={};v[o]="0.children";let b={};b[o]="0";for(let e=2;e<=m;e++){Cr(h[e],e=>{let t=Be(v,e.parentId,"");if(!Fe(t))throw console.log("kpPathFd",v),console.log("v",e,e.parentId),new Error(`invalid parentId[${e.parentId}] in folder`);let r=Be(y,t);if(xe(r)||vu(y,t,[]),r=Be(y,t),!Ce(hd(r,{id:e.id}))){r.push({...e,children:[]});let n=`${t}.${gn(r)-1}`;v[e.id]=`${n}.children`,b[e.id]=n}})}let w=Vi(y),B={};for(let e=2;e<=I;e++){Cr(A[e],e=>{let t=Be(v,e.parentId,"");if(!Fe(t))throw console.log("kpPathFd",v),console.log("v",e,e.parentId),new Error(`invalid parentId[${e.parentId}] in file`);let r=Be(y,t);if(!xe(r))throw console.log("treeItems",y),console.log("k",t),console.log("v",e),new Error("無預先建置資料夾");if(!Ce(hd(r,{id:e.id}))){r.push(e);let n=`${t}.${gn(r)-1}`;B[e.id]=n,b[e.id]=n}})}return{treeItems:y,treeItemsFolder:w,kpPath:b,fpsNormalize:u}},e.files2data=function(e){let t=is(),r=Dr(e,function(e){return{name:e.name,size:e.size,type:e.type}});return ls(e).then(function(e){let n=Dr(e,function(e){return{b64:e}}),i=vA(r,n);t.resolve(i)}),t},e.flattenToConn=xu,e.flattenTree=function(e,t={}){if(xe(e)){if(0===e.length)return[]}else{if(!Ee(e))return[];if(Hr(e))return[]}let r=Be(t,"bindKey",null);Fe(r)||(r="id");let n=Be(t,"bindChildren",null);Fe(n)||(n="children");let i=!1;Ee(e)&&(i=!0,e=[e]);let o=[];return Cu(e,(e,t,i)=>{let a=Be(e,r,null),s=Be(e,n,null);if(a){let r=function(e){let t=[e[0]];for(let r=1;r<e.length;r++){let i=e[r];t.push(n),t.push(i)}return t}([...i,t]);if(o.push({...e,level:(gn(r)-1)/2,nk:r}),s)return s}}),i&&(o=o[0]),o},e.floor=function(e,t=0){return Eo(t)||(t=0),t=eo(t),ke(e)?new oc(e).toDecimalPlaces(t,oc.ROUND_FLOOR).toNumber():""},e.fsBuildReadStreamText=function(e){if(!nA(e))throw new Error("fp is not a file");let t=_i(),r=a.createReadStream(e,{encoding:"utf8"});return t.emit("create"),c.createInterface({input:r,crlfDelay:1/0}).on("line",e=>{t.emit("line",e)}),r.on("close",()=>{t.emit("close")}),t},e.fsBuildWriteStreamText=function(){let e=null;return{create:t=>{let r=is();return e=a.createWriteStream(t,{flags:"w",encoding:"utf8"}),e.on("finish",()=>{r.resolve()}),e.on("error",e=>{r.reject(e)}),r},write:t=>{e.write(t+"\n")},end:()=>{let t=is();return e.on("close",()=>{t.resolve()}),e.end(),t}}},e.fsCleanFolder=function(e){return BA(e,{path:o,fs:a})},e.fsCleanFolderCore=BA,e.fsCopyFile=function(e,t,r={}){return EA(e,t,{path:o,fs:a,...r})},e.fsCopyFileCore=EA,e.fsCopyFolder=function(e,t,r={}){return xA(e,t,{path:o,fs:a,...r})},e.fsCopyFolderCore=xA,e.fsCreateFile=function(e,t,r={}){return SA(e,t,{fs:a,...r})},e.fsCreateFileCore=SA,e.fsCreateFolder=kA,e.fsCreateFolderCore=wA,e.fsDeleteFile=function(e){return NA(e,{fs:a})},e.fsDeleteFileCore=NA,e.fsDeleteFileSafe=async function(e,t={}){return await qA(e,{fs:a,...t})},e.fsDeleteFileSafeCore=qA,e.fsDeleteFolder=HA,e.fsDeleteFolderCore=MA,e.fsDeleteFolderSafe=async function(e,t={}){return await LA(e,{fs:a,...t})},e.fsDeleteFolderSafeCore=LA,e.fsDownloadFile=async function(e,t){return UA(e,t,{fs:a,Readable:u.Readable})},e.fsDownloadFileCore=UA,e.fsEvem=function(e={}){let t=Be(e,"fd");Fe(t)||(t="./_evps");let r=Be(e,"polling");hn(r)||(r=!1);let n=Be(e,"timeInterval");to(n)||(n=100),n=eo(n);let i=Be(e,"timeBinaryInterval");to(i)||(i=300),i=eo(i);let s=Be(e,"keySys");Fe(s)||(s="[::pkg_content::]"),TA(t)||kA(t);let l=YA(t,{polling:r,timeInterval:n,timeBinaryInterval:i});l.on("change",e=>{if("add"!==e.type&&"change"!==e.type)return;let t=OA(e.fp),r="";try{r=a.readFileSync(e.fp,"utf8"),r=$a(r)}catch(e){}Ce(r)&&c.emit(t,{[s]:r})});let c=new f.EventEmitter,u=c.emit;return c.emit=function(e,r){let n=!1;if(Ce(r)&&(n=Ne(r,s)),n){let t=Be(r,s,null),n=Be(t,"pkg",""),i=Be(t,"time","");return u.call(this,e,n,i)}((e,r)=>{let n=o.resolve(t,e);De(r)||(r=An(r)),a.writeFileSync(n,r,"utf8")})(e,{pkg:r,time:RA()})},c.clear=()=>{l.clear(),HA(t)},c},e.fsExists=function(e){return tA(e,{fs:a})},e.fsExistsCore=tA,e.fsGetFileBasicHash=function(e,t={}){return jA(e,{fs:a,crypto:g,...t})},e.fsGetFileBasicHashCore=jA,e.fsGetFileHash=function(e,t={}){return VA(e,{fs:a,crypto:g,...t})},e.fsGetFileHashCore=VA,e.fsGetFileXxHash=function(e,t={}){return zA(e,{fs:a,...t})},e.fsGetFileXxHashCore=zA,e.fsGetFilesInFolder=function(e,t=1){return XA(e,t,{path:o,fs:a})},e.fsGetFilesInFolderCore=XA,e.fsGetFilesWithHashInFolder=WA,e.fsGetFilesWithHashInFolderCore=_A,e.fsGetFolderBasicHash=function(e,t={}){return KA(e,{path:o,fs:a,crypto:g,...t})},e.fsGetFolderBasicHashCore=KA,e.fsGetFoldersInFolder=function(e,t=1){return $A(e,t,{path:o,fs:a})},e.fsGetFoldersInFolderCore=$A,e.fsIsFile=nA,e.fsIsFileCore=rA,e.fsIsFolder=TA,e.fsIsFolderCore=bA,e.fsMergeFiles=async function(e,t,r={}){return ZA(e,t,{fs:a,...r})},e.fsMergeFilesCore=ZA,e.fsReadJson=function(e){let t=null,r=iA(e,{fs:a});if(r.error)return r;let n=r.success,i=null;try{i=JSON.parse(n)}catch(e){t=e}return null!==t?{error:t}:{success:i}},e.fsReadText=oA,e.fsReadTextCore=iA,e.fsRenameFile=function(e,t){return em(e,t,{fs:a})},e.fsRenameFileCore=em,e.fsRenameFolder=function(e,t){return tm(e,t,{fs:a})},e.fsRenameFolderCore=tm,e.fsSrlog=function(e={}){let t=Be(e,"fdSys","");Fe(t)||(t=o.resolve(),t=t.replaceAll("\\","/"));let n=Be(e,"fdLog","");Fe(n)||(n="./syslog"),TA(n)||kA(n);let i=Be(e,"dlm","");Fe(i)||(i="ꓹ");let s=Be(e,"useTime",null);hn(s)||(s=!0);let l=Be(e,"useLoc",null);hn(l)||(l=!0);let c=Be(e,"useLocRela",null);async function u(e,t,...o){let c=(()=>{let e=r().format("YYYY-MM-DD");return`${n}/${e}.log`})(),u=Dr(o,e=>{let t="";return t=Ee(e)||xe(e)?JSON.stringify(e):hn(e)?e?"true":"false":ja(e),t}),f="";s&&(f=`[${e}]\n`,a.appendFileSync(c,f,"utf8")),l&&(f=`[${t}]\n`,a.appendFileSync(c,f,"utf8")),f=`${Do(u,`${i} `)}\n\n`,a.appendFileSync(c,f,"utf8")}return hn(c)||(c=!0),function(...e){let r="";s&&(r=RA());let n="",i="",o=[];if(l){if(o=ua((new Error).stack,"\n"),Cr(o,e=>{if((e=la(e)).indexOf("file:")<0)return!0;if(e.indexOf("fsSrlog.mjs")>=0)return!0;return Cr(ua(e," "),e=>{if(e.indexOf("file:")>=0)return n=e,!1}),!Fe(n)&&void 0}),!Fe(n))throw console.log("stackLines",o),new Error("can not parse stackLines");"("===fa(n,1)&&(n=ga(n,1)),")"===da(n,1)&&(n=Ja(n,1));try{n=decodeURIComponent(n)}catch(e){console.log(e)}i=n,i=ga(i,8),i=i.replace(t,"")}let a=[];s&&(a=[...a,`[${r}]`]);let f="";l&&(f=n,c&&(f=i),a=[...a,`[${f}]`]),a=[...a,...e],console.log(...a),u(r,f,...e)}},e.fsSyncFolder=function(e,t,r={}){return im(e,t,{path:o,fs:a,crypto:g,...r})},e.fsSyncFolderCore=im,e.fsTask=function(e,t={}){let r=Be(t,"fdStorage","");Fe(r)||(r="./_tkfs");let n=Be(t,"levelLimit","");to(n)||(n=1),n=eo(n);let i=Be(t,"typeHash","");Fe(i)||(i="md5");let o=Be(t,"timeInterval");Aa(o)||(o=6e4),o=eo(o),kA(r);let s=_i(),l=!1,c=`${r}/fpHash.json`,u=`${r}/fpResult.json`,f=async()=>{if(!0===l)return;let t=(()=>{let e={};try{e=$a(a.readFileSync(c,"utf8"))}catch(e){}return e})(),r=await(async()=>{let t={};return TA(e)?(Cr(await WA(e,n,{type:i}),e=>{t[e.path]=e.hash}),t):t})(),o=Dr(t,(e,t)=>({path:t,hash:e})),u=Dr(r,(e,t)=>({path:t,hash:e}));Cr(rm(o,u,"path").infor,(e,n)=>{if("same"===e)return!0;let i=Be(t,n,""),o=Be(r,n,""),u="";u="del"===e?i:o;let f=e,d=n,g=FA(n);l=!0;let p=is();return s.emit("change",{type:f,fp:d,fn:g,hash:u,pm:p}),p.then(()=>{let e=Vi(t);e[d]=r[d],(e=>{try{let t=An(e);a.writeFileSync(c,t,"utf8")}catch(e){}})(e)}).finally(()=>{l=!1}),!1})},d=()=>{let e={};try{e=$a(a.readFileSync(u,"utf8"))}catch(e){}return e},g=(e={})=>{try{let t=An(e);a.writeFileSync(u,t,"utf8")}catch(e){}},p=setInterval(()=>{f().catch(()=>{})},o);return s.getResult=(e,t)=>{let r=`${e}|${t}`,n=Be(d(),r,[]);return xe(n)||console.log(`result for key[${r}] is not an array`),n},s.getAndEliminateResult=(e,t)=>{let r=`${e}|${t}`,n=d(),i=Be(n,r,[]);return xe(i)||console.log(`result for key[${r}] is not an array`),n=((e,t)=>{let r={};return Cr(e,(e,n)=>{Be(ua(n,"|"),0,"")!==t&&(r[n]=e)}),r})(n,e),g(n),i},s.setResult=(e,t,r)=>{xe(r)||(console.log("result is not an array, default to []"),r=[]);let n=`${e}|${t}`,i=d();i[n]=r,g(i)},s.clear=()=>{clearInterval(p)},s},e.fsTaskCp=function(e,t,r={}){TA(e)||kA(e),TA(t)||kA(t);let n=`${e}/fpHash.json`,i=`${t}/fpHash.json`,o=e=>{let t={};try{t=$a(a.readFileSync(e,"utf8"))}catch(e){}return t},s=(e,t)=>{try{let r=An(t);a.writeFileSync(e,r,"utf8")}catch(e){}},l=(e,t)=>Be(o(e),t,""),c=(e,t,r)=>{let n=o(e);n[t]=r,s(e,n)},u=(e,t)=>{let r=o(e);Ne(r,t)&&delete r[t],s(e,r)},f=()=>o(n),d=e=>s(n,e),g=e=>l(n,e),p=()=>o(i),h=e=>s(i,e),A=e=>l(i,e),m=(e,t)=>c(i,e,t),I=e=>u(i,e),y=e=>{let t=[];return Cr(e,(e,r)=>{t.push({fp:r,hash:e})}),t},v={buildSrc:()=>{let e=_i();return e.set=(t,r)=>{((e,t)=>{c(n,e,t)})(t,r),e.emit("set",{type:"set",fp:t,hash:r})},e.get=g,e.remove=t=>{(e=>{u(n,e)})(t),e.emit("remove",{type:"remove",fp:t})},e.readKp=f,e.writeKp=d,e},buildTar:()=>{let e=_i(),t=qu(300),r=om(n);return r.on("change",r=>{t(()=>{(async()=>{let t=is(),r=f();if(!Ce(r))return t.resolve("no src"),t;let n=p(),i=y(r),o=rm(y(n),i,"fp",{withInfor:!1}),a=is();return a.then(e=>{h(r)}).catch(()=>{}),e.emit("change",{kpSrc:r,kpTar:n,kpCmp:o,pm:a}),t})().catch(()=>{})})}),e.set=m,e.get=A,e.remove=I,e.readKp=p,e.writeKp=h,e.clear=r.clear,e}};return v},e.fsTreeFolder=function(e,t=1){return PA(e,t,{path:o,fs:a})},e.fsTreeFolderCore=PA,e.fsTreeFolderWithHash=function(e,t=1,r={}){return nm(e,t,{path:o,fs:a,crypto:g,...r})},e.fsTreeFolderWithHashCore=nm,e.fsWatchFile=om,e.fsWatchFolder=YA,e.fsWriteJson=function(e,t,r={}){let n=null;if(!Ee(t)&&!xe(t))return{error:"inp is not an object or array"};let i=Be(r,"useFormat",null);hn(i)||(i=!1);let o="";try{o=i?JSON.stringify(t,null,2):JSON.stringify(t)}catch(e){n=e}return null!==n?{error:n}:am(e,o,{fs:a})},e.fsWriteText=function(e,t){return am(e,t,{fs:a})},e.fsWriteTextCore=am,e.genGradientColor=function(e){if(Rr(e))return{};let t;try{t=yu.toRgba(e)}catch(e){return{}}function r(e,t){return e.a=t,yu.toRgbaString(e)}return{linearGradient:{x1:0,x2:0,y1:0,y2:1},stops:[[0,r(t,.4)],[1,r(t,.9)]]}},e.genID=Lu,e.genIDSeq=function(){return fm()},e.genPm=is,e.getBufferSize=pm,e.getClearPathName=DA,e.getCsvStrFromData=hm,e.getDataFromExcelFileU8Arr=Im,e.getDataFromExcelFileU8ArrDyn=async function(e,t,r){Or(r)||(r=["https://cdn.sheetjs.com/xlsx-0.20.3/package/dist/xlsx.full.min.js"]),await gc(r);let n=Im(e,t);return""!==Be(n,"error","")?Promise.reject(n.error):n},e.getEnv=function(){let e=yn(),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=function(e){let t="";if(bm(e))t=e.message;else{if(De(e))return e;if(Ee(e))return Ne(e,"message")?e.message:JSON.stringify(e);if(xe(e))return JSON.stringify(e);t=ja(e)}return t},e.getExcelU8ArrFromData=function(e,t="data"){if(!Or(e)){return{error:"no data"}}Fe(t)||(t="data");let r=null,n=Vh(e,t);return Ne(n,"error")?n:(r=wm(n),Ne(r,"error"),r)},e.getExcelU8ArrFromWorkbook=wm,e.getExcelWorkbookFromData=Vh,e.getExcelWorkbookFromWorksheet=zh,e.getExcelWorksheetFromData=wn,e.getFileAccept=Id,e.getFileBasicHash=Wm,e.getFileHash=async function(e,t={}){if(!ps(e)&&!_m(e))return console.log("inp",e),Promise.reject("inp is not a Blob or File");let r=Be(t,"type","");Fe(r)||(r="sha512");let n=Be(t,"chunkSize");return ke(n)||(n=67108864),n=Hn(n),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"},r)?"xxhash64"===r?Km(e,t):Wm(e,t):Promise.reject(`type[${r}] must be one of [ 'md5', 'sha1', 'sha256', 'sha384', 'sha512', 'xxhash64' ]`)},e.getFileName=FA,e.getFileNameExt=function(e){if(!Fe(e))return"";let t=zo(FA(e),".");if(gn(t)<=1)return"";let r="";try{r=Sa(t)}catch(e){}return r},e.getFileTrueName=OA,e.getFileType=md,e.getFileXxHash=Km,e.getGlobal=vn,e.getObjSize=function(e){let t=0,r=function e(r){if(null!=r)switch(typeof r){case"number":t+=8;break;case"string":t+=2*r.length;break;case"boolean":t+=4;break;case"object":let n=Object.prototype.toString.call(r).slice(8,-1);if("Object"===n||"Array"===n)for(let t in r)r.hasOwnProperty(t)&&e(r[t]);else t+=2*r.toString().length}return t}(e),n=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"}(r);return{int:r,str:n}},e.getPathParent=QA,e.getTimeBetween=function(e,t,r="days"){let n=tI(r);if(""===n)return[];let i=rI(e,r),o=rI(t,r);return null===i||null===o||e>=t?[]:Dr(eI(o.diff(i,r)+1),function(e){return i.clone().add(e,r).format(n)})},e.getTimeFromUnit=tI,e.getTimeHp=nI,e.getTimeObject=rI,e.getTimeRange=function(e,t){if(!Cg(e))return"無起始時間";if(void 0===t&&(t=e),!Cg(t))return"結束時間格式錯誤";let n=r(e,"YYYY-MM-DDTHH:mm:ss"),i=r(t,"YYYY-MM-DDTHH:mm:ss"),o=n.format("YYYY-MM-DD"),a=i.format("YYYY-MM-DD");if(o===a){let r=i.format("HH:mm");if(e===t)return iI(e)+" 至 無";if(e<t)return iI(e)+" 至 "+r;if(e>t)return iI(e)+" 至 "+r+" (起始時間大於結束時間)"}else{if(o<a)return iI(e)+" 至 "+iI(t);if(o>a)return iI(e)+" 至 "+iI(t)+" (起始時間大於結束時間)"}return""},e.getUserAgent=oI,e.getUserAgentDyn=async function(e=null,t){return Or(t)||(t=["https://cdn.jsdelivr.net/npm/ua-parser-js@2.0.3/dist/ua-parser.min.js"]),await gc(t),oI(e)},e.getltdtkeys=_r,e.haskey=Ne,e.html2str=async function(e){if(!Fe(e))return"";let t=await async function(){let e="htmlToText";if(ba(Be(I,e)))return I;if(ba(Be(I,["default",e])))return I.default;let t=globalThis,r=null;if(await bs(()=>(r=Be(t,"ht",null),Ce(r)),{attemptNum:4e3,timeInterval:50}),ba(Be(r,e)))return r;if(ba(Be(r,["default",e])))return r.default;throw console.log("ht",I,"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=function(e,t={}){return Fe(e)?fs.decode(e,t):""},e.htmlEncode=ds,e.importResources=gc,e.interp1=function(e,t,r={}){if(!xe(e))return{err:"ps is not an array"};{let e=!ke(t),r=!xe(t);if(e&&r)return{err:"px is not a number or an array"}}let n=function(e,t={}){if(gn(e)<=0)return[];let r=Be(t,"keyX");Fe(r)||(r="x");let n=Be(t,"keyY");Fe(n)||(n="y");let i=[];return Cr(e,e=>{let t=null,o=null;xe(e)&&gn(e)>=2?(t=Be(e,0),o=Be(e,1)):(t=Be(e,r,null),o=Be(e,n,null)),ke(t)&&ke(o)&&(t=kn(t),o=kn(o),i.push({x:t,y:o}))}),i}(e,r);if(Be(n,"err"))return Be(n,"err");if(0===gn(n))return{err:"ps(length=0) is not an effective array",ps:e,psEff:n};if(1===gn(n))return{err:"ps(length=1) is one point only",ps:e,psEff:n};let i=function(e){let t=!0,r=!0;for(let n=1;n<gn(e);n++){let i=e[n-1],o=e[n];if(t&&i.x>o.x&&(t=!1),r&&i.x<o.x&&(r=!1),i.x===o.x)return{err:`x can not be equal: i=${n}, x=${i.x}`}}return t?lI:r?cI:"no"}(n);if("no"===i)return{err:"psEff is not increasing or decreasing"};i===cI&&(i=lI,n=Ua(n));let o=!xe(t);o&&(t=[t]);let a=function(e,t={}){if(gn(e)<=0)return[];let r=Be(t,"keyX");Fe(r)||(r="x");let n=[];return Cr(e,e=>{let t=null;t=ke(e)?kn(e):xe(e)&&gn(e)>=1?Be(e,0):Be(e,r,null),ke(t)&&(t=kn(t),n.push({x:t}))}),n}(t,r),s=Be(r,"mode");"linear"!==s&&"stairs"!==s&&"blocks"!==s&&(s="linear");let l,c=Dr(a,(e,t)=>{let i=Be(e,"x"),o=null;try{"linear"===s?o=function(e,t){let r=uI(e,t);if(r!==aI)return r;let n=null;for(let r=1;r<gn(e);r++){let i=e[r-1],o=e[r];if(i.x<=t&&t<=o.x){n=((t-i.x)*o.y+(o.x-t)*i.y)/(o.x-i.x);break}}return null===n?{err:sI}:n}(n,i):"blocks"===s?o=function(e,t){let r=uI(e,t);if(r!==aI)return r;let n=null;for(let r=1;r<gn(e);r++){let i=e[r-1],o=e[r],a=i.x,s=o.x;if(a<=t&&t<=s){n=o.y;break}}return null===n?{err:sI}:n}(n,i):"stairs"===s&&(o=function(e,t,r={}){let n=Be(r,"xMin");if(ya(n)){if(n>e[0].x)return{err:`xMin=${n} > ps[0].x=${e[0].x}`};n===e[0].x||(e=[{x:n,y:e[0].y},...e])}let i=Be(r,"xMax");if(ya(i)){if(i<e[gn(e)-1].x)return{err:`xMax=${i} < ps[size(ps)-1].x=${e[gn(e)-1].x}`};if(i===e[gn(e)-1].x);else{let t={x:i,y:e[gn(e)-1].y};e=[...e,t]}}let o=uI(e,t);if(o!==aI)return o;let a=null;for(let r=0;r<gn(e);r++){let n=Be(e,r-1,null),i=Be(e,r,null),o=Be(e,r+1,null),s=i.x;n&&(s=(n.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:sI}:a}(n,i,r))}catch(e){o={err:e.toString()}}return o});return l=o?c[0]:c,l},e.isDate=function(e){let t=e;return Fe(e)&&(t=new Date(e)),ke(e)&&(t=Hn(e),t=new Date(e)),t instanceof Date&&!isNaN(t)},e.isDev=function(){return!!location&&ns(location.href,"localhost")},e.isEle=wr,e.isEleExistByID=function(e){return!!Fe(e)&&!(null===document.getElementById(e))},e.isEmail=function(e){return!!Fe(e)&&/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(e)},e.isErr=bm,e.isIE=Pu,e.isNarrow=function(e){if(!yn())return!1;let t=window.innerWidth>0&&window.innerWidth<=1024,r=!1;if(e){let t=Be(e,"clientWidth",0);r=t>0&&t<=700}return t||r},e.isStrHasCapital=pI,e.isStrHasLetter=hI,e.isStrHasLowerCase=AI,e.isStrHasNumber=mI,e.isStrHasSpace=II,e.isStrHasSymbol=yI,e.isUserIdentify=function(e){let t=is();if(!Fe(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 r=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)),n=parseInt(e.substring(10,11));return r%10!=0&&10-r%10!==n?(t.reject("非有效身份證"),t):(t.resolve(),t)},e.isUserName=function(e){let t=is();return Fe(e)?(t.resolve(),t):(t.reject("請填入姓名"),t)},e.isUserPw=function(e,t={}){let r=[],n=Be(t,"useKeyForError",null);hn(n)||(n=!1);let i=Be(t,"useOnlyOneError",null);if(hn(i)||(i=!1),De(e)||(n?r.push("keyInvalidPassword"):r.push("密碼非有效字串")),gn(r)>0)throw new Error(r[0]);let o=Be(t,"numLenMin","");(!Ln(o)||eo(o)<0)&&(o=8),o=eo(o);let a=Be(t,"numLenMax","");if((!Ln(a)||eo(a)<0)&&(a=30),a=eo(a),o>a&&(n?r.push("keyLimNumLenMinOrMax"):r.push("設定密碼最小長度大於最大長度")),gn(r)>0)throw new Error(r[0]);let s=Be(t,"noSpace",null);if(hn(s)||(s=!0),s&&(II(e)&&(n?r.push("keyLimHasSpace"):r.push("密碼不可包含空白字元")),i&&gn(r)>0))throw new Error(r[0]);let l=Be(t,"onlyAscii",null);if(hn(l)||(l=!0),l&&(/[^\x20-\x7e]/.test(e)&&(n?r.push("keyLimNonAsciiChar"):r.push("密碼僅允許使用英文大小寫、數字及特殊符號")),i&&gn(r)>0))throw new Error(r[0]);if(gn(e)<o&&(n?r.push("keyLimNumLenMin"):r.push(`密碼長度須大於等於${o}個字元`)),i&&gn(r)>0)throw new Error(r[0]);if(gn(e)>a&&(n?r.push("keyLimNumLenMax"):r.push(`密碼長度須小於等於${a}個字元`)),i&&gn(r)>0)throw new Error(r[0]);let c=Be(t,"requireLetter",null);hn(c)||(c=!1);let u=Be(t,"requireUppercase",null);hn(u)||(u=!0);let f=Be(t,"requireLowercase",null);hn(f)||(f=!0);let d=Be(t,"requireDigit",null);hn(d)||(d=!0);let g=Be(t,"requireSpecial",null);if(hn(g)||(g=!0),c&&!hI(e)&&(n?r.push("keyLimRequireLetter"):r.push("密碼須包含至少一個英文字母")),i&&gn(r)>0)throw new Error(r[0]);if(u&&!pI(e)&&(n?r.push("keyLimRequireUppercase"):r.push("密碼須包含至少一個大寫英文字母")),i&&gn(r)>0)throw new Error(r[0]);if(f&&!AI(e)&&(n?r.push("keyLimRequireLowercase"):r.push("密碼須包含至少一個小寫英文字母")),i&&gn(r)>0)throw new Error(r[0]);if(d&&!mI(e)&&(n?r.push("keyLimRequireDigit"):r.push("密碼須包含至少一個數字")),i&&gn(r)>0)throw new Error(r[0]);if(g&&!yI(e)&&(n?r.push("keyLimRequireSpecial"):r.push("密碼須包含至少一個特殊符號")),i&&gn(r)>0)throw new Error(r[0]);let p=Be(t,"forbiddenChars",null);if(xe(p)||(p=[]),gn(p)>0){for(let t of p)if(e.includes(t)){if(n){r.push("keyLimForbiddenChar");break}r.push(`密碼不可包含字元:${t}`)}if(i&&gn(r)>0)throw new Error(r[0])}let h=Be(t,"commonPasswordBlacklist",null);if(xe(h)||(h=CI),gn(h)>0){let t=e.toLowerCase();if(h.some(e=>De(e)&&t===e.toLowerCase())&&(n?r.push("keyLimCommonPassword"):r.push("此密碼為常見弱密碼,不允許使用")),i&&gn(r)>0)throw new Error(r[0])}let A=Be(t,"account",""),m=Be(t,"noConsecutiveCharsFromAccount",null);hn(m)||(m=!1);let I=Be(t,"consecutiveCharsMinMatch","");if(to(I)||(I=3),I=eo(I),m&&De(A)&&gn(A)>=I){let t=[...A.toLowerCase()],o=e.toLowerCase(),a=!1;for(let e=0;e<=t.length-I;e++){let r=t.slice(e,e+I).join("");if(o.includes(r)){a=!0;break}}if(a&&(n?r.push("keyLimConsecutiveCharsFromAccount"):r.push(`密碼不可包含與帳號相同之${I}個以上連續字元`)),i&&gn(r)>0)throw new Error(r[0])}if(gn(r)>0)throw new Error(r.join(" | "));return!0},e.isWindow=yn,e.isab=y,e.isarr=xe,e.isarr0=Ur,e.isbigint=Ya,e.isblob=ps,e.isbol=hn,e.isday=Nu,e.isearr=Or,e.iseobj=Ce,e.iser=Rr,e.isernot=dd,e.isestr=Fe,e.isfile=_m,e.isfun=ba,e.isint=Ln,e.ismonth=Bn,e.isn0int=fI,e.isn0num=dI,e.isnan=Se,e.isnbr=Qe,e.isnint=Yh,e.isnnum=function(e){return!!ke(e)&&Hn(e)<0},e.isnull=Mr,e.isnum=ke,e.isobj=Ee,e.isobj0=Hr,e.isp0int=Eo,e.isp0num=gI,e.ispint=to,e.ispm=vs,e.ispnum=Aa,e.isstr=De,e.isstr0=Lr,e.istime=Cg,e.istimeTZ=EI,e.istimems=vI,e.istimemsTZ=BI,e.isu16arr=gm,e.isu8arr=es,e.isundefined=qr,e.j2o=$a,e.judge=function(e,t,r,n={}){if(!ke(e))throw new Error("x1 is not a number");if(!ke(r))throw new Error("x2 is not a number");let i=Be(n,"withPreciseNum");if(hn(i)||(i=!0),i&&(e=$h(e),r=$h(r)),"==="===t)return e===r||xI(e,r);if("!=="===t)return function(e,t){return!xI(e,t)}(e,r);if(">="===t)return e===r||function(e,t){return new oc(e).gte(t)}(e,r);if(">"===t)return function(e,t){return new oc(e).gt(t)}(e,r);if("<="===t)return e===r||function(e,t){return new oc(e).lte(t)}(e,r);if("<"===t)return function(e,t){return new oc(e).lt(t)}(e,r);throw console.log(t),new Error(`invalid op[${t}]`)},e.keysmat2ltdt=DI,e.ltdt2vrtsable=function(e,t=[]){if(!Or(e))return[];if(!xe(t))return[];let r=!1;if(Cr(e,function(e){Ce(e)||(r=!0)}),r)return[];let n=_r(e),i=[];Cr(e,function(e){let t={};Cr(n,function(r){t[r]={value:e[r].value,style:e[r].style,rowspan:1}}),i.push(t)});let o=Ua(i),a=gn(o);return Cr(n,function(e){if(va(e,t)){let t=so(0,a,0),r=so(0,a,0),n=so(1,a+1,0);Cr(o,function(i,a){if(a>0){Ia(o[a-1][e].value,o[a][e].value)&&(t[a-1]=1,t[a]=1,n[a]=n[a-1]+1),1===t[a-1]&&1===t[a]&&(r[a-1]=0,r[a]=1)}}),Cr(o,function(i,a){1===t[a]&&(1===r[a]?o[a][e].rowspan=n[a]:o[a][e].rowspan=null)})}}),Ua(o)},e.ltdtDiff=function(e,t,r={}){if(!xe(e))return{};if(!xe(t))return{};if(0===gn(e)&&0===gn(t))return{};let n=Be(r,"empty");Fe(n)||(n="∗empty∗");let i=_r(e),o=_r(t),a=FI(i,o),s={};Cr(a,(e,t)=>{s[t]=e});let l=sa(mn(e,a,{empty:n}),mn(t,a,{empty:n}),{...r,mode:"matrix"});return l.dfs=Dr(l.dfs,e=>{let t={};Cr(e,e=>{e.k=s[e.k],t[e.k]=e});let r={};return Cr(a,e=>{r[e]=t[e]}),r}),l},e.ltdtDiffByKey=rm,e.ltdtkeys2mat=mn,e.ltdtkeysheads2mat=In,e.ltdtmapping=function(e,t,r=""){return Or(e)&&Or(t)?Dr(e,e=>_h(e,t,r)):[]},e.ltdtmerge=vA,e.ltdtpick=function(e,t){return Or(e)&&Or(t)?Dr(e,e=>Wh(e,t)):[]},e.ltdtpull=function(e,t,r){return xe(e)&&xe(t)&&Fe(r)&&pr(e,e=>Ee(e))?0===t.length?e:pr(t,e=>Ee(e))?SI(e,t,r):[]:[]},e.mat2ltdt=function(e){if(!Or(e))return[];if(e.length<=1)return[];let t=!1;return Cr(e,function(e){Or(e)||(t=!0)}),t?[]:DI(na(e)[0],(n=null==(r=e)?0:r.length)?Fo(r,1,n):[]);var r,n},e.matConcat=function(e,t){if(!xe(e))return[];if(!xe(t))return[];if(0===gn(e)&&0===gn(t))return[];let r=gn(e),n=gn(Be(e,0,[])),i=gn(t),o=gn(Be(t,0,[])),a=[],s=Math.max(r,i);for(let r=0;r<s;r++){let i=[],s=-1;for(let t=0;t<n;t++){s++;let n=Be(e,`${r}.${t}`,null);i[s]=n}for(let e=0;e<o;e++){s++;let n=Be(t,`${r}.${e}`,null);i[s]=n}a[r]=i}return a},e.matDiff=function(e,t,r={}){return xe(e)&&xe(t)?0===gn(e)&&0===gn(t)?{}:sa(e,t,{...r,mode:"matrix"}):{}},e.matat=function(e,t,r){return Or(e)?Dr(e,function(e){return Co(e,t,r)}):[]},e.now2str=RA,e.now2strp=function(){if(!ba(r))throw new Error("invalid dayjs");return r().format("YYYYMMDDHHmmss")},e.nowDay2str=function(){if(!ba(r))throw new Error("invalid dayjs");return r().format("YYYY-MM-DD")},e.nowms2str=function(){if(!ba(r))throw new Error("invalid dayjs");return r().format("YYYY-MM-DDTHH:mm:ss.SSSZ")},e.nowms2strp=function(){if(!ba(r))throw new Error("invalid dayjs");return r().format("YYYYMMDDHHmmssSSS")},e.o2j=An,e.obj2b64=function(e){let t="";try{t=kI(An(e))}catch(e){t=""}return t},e.obj2pb64=function(e,t){return void 0===e?"":Fe(t)?NI(An({data:e}),t,!0):""},e.obj2str=function(e,t="Uint8Array"){if(qr(e))return"";De(t)?t=[t]:xe(t)||(t=["Uint8Array"]);let r="";try{r=JSON.stringify(e,function(e,r){return t.indexOf("Uint8Array")>=0&&(r=TI.u8arr2b64(r)),t.indexOf("Uint16Array")>=0&&(r=TI.u16arr2b64(r)),r})}catch(e){r=""}return r},e.obj2stru8arr=YI,e.obj2u8arr=function(e){let t=[],r=[];if(!Or(e)&&!Ce(e))return null;let n=[],i=[];function o(e){n.push(pm(e)),i.push(e)}try{let a=YI(e);o(jI(a.results)),Cr(a.binarys,e=>{o(e)});let s=n,l=jI(JSON.stringify(s)),c=new Uint8Array(8);ys(pm(l),c),t.push(c),t.push(l),Cr(i,e=>{t.push(e)}),Cr(t,e=>{r=function(e,t){let r=pm(e),n=pm(t),i=new Uint8Array(r+n);return i.set(new Uint8Array(e),0),i.set(new Uint8Array(t),r),i}(r,e)})}catch(e){return null}return r},e.objSortBy=GI,e.objSortByKeys=function(e,t){if(!Ce(e))return{};if(!Or(t))return{};let r={};return Cr(t,(e,t)=>{r[e]=t}),GI(e,(e,t)=>Be(r,t,0))},e.oo=function(e){if(void 0!==e)return $a(An(e))},e.openLink=function(e){if(!Fe(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){return Fe(e)&&Fe(t)?$a(ui(e,t,!0)).data:""},e.pm2resolve=Th,e.pmChain=function(e,t=null){if(!xe(e)){let e=is();return e.reject("pms is not an array"),e}return e.reduce((e,t)=>e.then(t),Promise.resolve(t))},e.pmConvertResolve=Oh,e.pmDebounce=function(e=300){return new function(e){let t=[],r=null,n=null,i="wait";return to(e)||(e=300),e=eo(e),function(o,...a){ba(o)?((null===n||"wait"===i)&&(n=Date.now()),t.push({func:o,input:a,output:null}),null===r&&"wait"===i&&(r=setInterval(()=>{if(null===n)throw new Error("invalid tLast");if("wait"!==i)return;if("wait"===i&&0===t.length)return clearInterval(r),r=null,void(n=null);let o=Date.now();if(o-n>e){i="doing",n=o;let e=t.pop();t=[];let r=e.func(...e.input);vs(r)?r.then(t=>{e.output=t}).catch(t=>{e.output={err:t}}).finally(()=>{i="wait",n=Date.now()}):(e.output=r,i="wait")}"wait"===i&&0===t.length&&(clearInterval(r),r=null,n=null)},20))):console.log("func is not a function")}}(e)},e.pmHook=JI,e.pmHookReject=function(e,t=()=>{}){return ba(e)?(ba(t)||(t=()=>{}),JI(e,e=>{if("afterCatch"===e.mode)return t(e.data)})):null},e.pmIni=function(){return Promise.resolve()},e.pmInvResolve=function(e,t={}){if(!vs(e))throw new Error("pm is not a promise");let r=Be(t,"thenExtractData");hn(r)||(r=!1);let n=is();return e.then(e=>{r&&(e=Be(e,"data"));let t=Be(e,"state",""),i=Be(e,"msg",{});"success"===t?n.resolve(i):"cancelled"===t?n.reject({reason:"cancelled"}):n.reject(i)}).catch(e=>{n.reject(e)}),n},e.pmKeyMutex=function(){return new function(){let e=new Map,t=new Map;return async(r,n)=>{let i=(e.get(r)||Promise.resolve()).then(async()=>await n(),async()=>await n());e.set(r,i.catch(()=>{})),t.set(r,(t.get(r)||0)+1);try{return await i}finally{let n=t.get(r)-1;n<=0?(t.delete(r),e.delete(r)):t.set(r,n)}}}},e.pmMap=function(e,t,r=0){let n={},i=!1,o=is();if(!xe(e)&&!Ee(e))return o.reject("rs is not an array or object"),o;if(0===gn(e))return o.resolve([]),o;let a=!1;if(Ee(e)){a=!0;let t=[];Cr(e,(e,r)=>{t.push({k:r,v:e})}),e=t}let s=jh(r);return s.on("message",function(r){if(i)return;let l,c=s.get();if(ba(t)){let e=c.key,r=c.value;if(a&&(e=c.value.k,r=c.value.v),l=t(r,e),!vs(l))throw new Error("return of fun is not a promise")}else l=c.value;l.then(e=>{n[c.key]=e}).catch(e=>{i=!0,s.clear(),o.reject(e)}).finally(()=>{s.cb(),gn(n)===gn(e)&&o.resolve(dA(n))})}),Cr(e,(e,t)=>{s.push({key:t,value:e})}),o},e.pmQueue=Gh,e.pmSeries=cc,e.pmThrottle=function(){let e=_i(),t=[],r=null,n=!1;return function(i,...o){let a=is();if(!ba(i))return void console.log("func is not a function");let s=Lu();return t.push({id:s,func:i,input:o}),null===r&&(r=setInterval(async()=>{if(n)return;n=!0;let i=t.pop();for(let r=0;r<t.length;r++){let n=t[r].id,i={state:"cancelled"};e.emit(n,i)}if(t=[],i){let t,r=i.id;t=ba(i.func)?await Th(i.func)(...i.input):{state:"error",msg:"fun is not a function"},e.emit(r,t)}n=!1,n||0!==t.length||(clearInterval(r),r=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.preciseNum=$h,e.pseudoRandom=PI,e.pseudoRandomIntRange=function(e=0,t=100,r="start1"){if(Ln(e)||(e=0),e=eo(e),Ln(t)||(t=100),e>(t=eo(t)))throw new Error(`vstart[${e}] > vend[${t}]`);let n=PI(r)*(t-e+1)+e;return n=Math.floor(n),n},e.pseudoRandomIntsNdpRange=function(e=0,t=100,r,n="start1"){if(Ln(e)||(e=0),e=eo(e),Ln(t)||(t=100),t=eo(t),to(r)||(r=1),r=eo(r),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let i=PI(n,!0),o=[],a=t-e;for(let r=0;r<=a;r++){let r=i()*(t-e+1)+e;r=Math.floor(r),o.push(r)}let s=Wa(o,{returnIndex:!0});return s=na(s,r),s},e.pseudoRandomIntsRange=function(e=0,t=100,r,n="start1"){if(Ln(e)||(e=0),e=eo(e),Ln(t)||(t=100),t=eo(t),to(r)||(r=1),r=eo(r),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let i=PI(n,!0),o=[];for(let n=1;n<=r;n++){let r=i()*(t-e+1)+e;r=Math.floor(r),o.push(r)}return o},e.pseudoRandomRange=function(e=0,t=1,r="start1"){if(ke(e)||(e=0),e=Hn(e),ke(t)||(t=1),e>(t=Hn(t)))throw new Error(`vstart[${e}] > vend[${t}]`);return PI(r)*(t-e)+e},e.pseudoRandomsRange=function(e=0,t=1,r=1,n="start1"){if(ke(e)||(e=0),e=Hn(e),ke(t)||(t=1),t=Hn(t),to(r)||(r=1),r=eo(r),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let i=PI(n,!0),o=[];for(let n=1;n<=r;n++){let r=i()*(t-e)+e;o.push(r)}return o},e.queue=jh,e.random=_I,e.randomIntRange=function(e=0,t=100){if(Ln(e)||(e=0),e=eo(e),Ln(t)||(t=100),e>(t=eo(t)))throw new Error(`vstart[${e}] > vend[${t}]`);let r=_I()*(t-e+1)+e;return r=Math.floor(r),r},e.randomIntsNdpRange=function(e=0,t=100,r){if(Ln(e)||(e=0),e=eo(e),Ln(t)||(t=100),t=eo(t),to(r)||(r=1),r=eo(r),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);return function(e,t,r){return t=(r?gr(e,t,r):void 0===t)?1:Mn(t),(b(e)?ty:ry)(e,t)}(so(e,t+1),r)},e.randomIntsRange=function(e=0,t=100,r){if(Ln(e)||(e=0),e=eo(e),Ln(t)||(t=100),t=eo(t),to(r)||(r=1),r=eo(r),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let n=[];for(let i=1;i<=r;i++){let r=_I()*(t-e+1)+e;r=Math.floor(r),n.push(r)}return n},e.randomRange=function(e=0,t=1){if(ke(e)||(e=0),e=Hn(e),ke(t)||(t=1),e>(t=Hn(t)))throw new Error(`vstart[${e}] > vend[${t}]`);return _I()*(t-e)+e},e.randomsRange=function(e=0,t=1,r=1){if(ke(e)||(e=0),e=Hn(e),ke(t)||(t=1),t=Hn(t),to(r)||(r=1),r=eo(r),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let n=[];for(let i=1;i<=r;i++){let r=_I()*(t-e)+e;n.push(r)}return n},e.rang=function(e,t,r=2){if(!ke(e))return[];if(e=Hn(e),!ke(t))return[];if(t=Hn(t),to(r)||(r=2),(r=eo(r))<=0)throw new Error(`num[${r}] <= 0`);let n=(t-e)/r,i=e,o=[];for(let e=0;e<=r;e++)o.push(i),i+=n;return o},e.rep=function(e,t){return Fe(e)&&Eo(t)?iy(e,t):""},e.repObj=function(e,t){return Rr(e)?[]:to(t)?eI(t,go(e)):[]},e.replace=hc,e.replaceObj=function(e,t){return Fe(e)&&Ce(t)?(Cr(t,function(e,t){e=Ee(e)||xe(e)?JSON.stringify(e):ja(e)}),Cr(t,function(t,r){e=hc(e,r,t)}),e):""},e.replacePlus=function(e,t,r,n=null,i){if(!Fe(e)||!Fe(t)||!Fe(r))return"";if(!De(i))return"";let o="[\\s\\S]*";Fe(n)&&(o="[^"+n+"]*");let a=new RegExp(t+o+r,"g");return e.replace(a,i)},e.round=Kh,e.secd=function(e){return ke(e)?1/Fu(e=Hn(e)):null},e.sep=ua,e.sepInt=function(e,t,r=!0){if(!Ln(e))return[];if(!Eo(t))return[];if(!hn(r))return[];let n=oy(e/t),i=e-n*t,o=[];for(let e=1;e<=t;e++){let t=n;e<=i&&(t=n+1),o.push(t)}return r&&(o=Ua(o)),o},e.setIntervalHp=function(e,t=1){let r=vn(),n=yn(),i=e=>{r.setTimeout(e,1)},o=e=>{r.requestAnimationFrame(e)},a=null;a=n?o:i;let s=nI(),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 r=vn(),n=yn(),i=e=>{r.setTimeout(e,1)},o=e=>{r.requestAnimationFrame(e)},a=null;a=n?o:i;let s=nI(),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=ku,e.split=ca,e.str2aes=NI,e.str2b64=kI,e.str2hint=zI,e.str2md5=function(e,t=!1){if(!Fe(e))return"";hn(t)||(t=!1);let r=ay(e),n="";return n=t?r.toString(Vn):r.toString(ci),n},e.str2obj=function(e,t="Uint8Array"){De(t)?t=[t]:xe(t)||(t=["Uint8Array"]);let r={};try{r=JSON.parse(e,function(e,r){return t.indexOf("Uint8Array")>=0&&(r=TI.b642u8arr(r)),t.indexOf("Uint16Array")>=0&&(r=TI.b642u16arr(r)),r})}catch(e){r={}}return r},e.str2sha=vy,e.str2sha512=function(e,t=!1){return vy(e,512,t)},e.str2u8arr=jI,e.strCompare=by,e.strDiff=ia,e.strDiffToHtml=function(e,t,r={}){if(!De(e))return"";if(!De(t))return"";if(""===e&&""===t)return"";let n=Be(r,"useNormNewline");hn(n)||(n=!0),n&&(e=(e=e.replaceAll("\r\n","\n")).replaceAll("\r","\n"),t=(t=t.replaceAll("\r\n","\n")).replaceAll("\r","\n"));let i=zf(),o=ta("file","file",e,t),a=i.html(o,{drawFileList:!1,matching:"none",diffStyle:"char",outputFormat:"line-by-line"}),s=zo(a,"\n"),l="",c=!1;return Cr(s,e=>{'<div class="d2h-code-line">'===la(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>"===la(e)&&(c=!1)}),a=l,a},e.strFindFuzz=function(e,t,r=!1){let n="";if(Fe(e)||ke(e))n=ja(e);else{if(!Or(e))return!!r&&0;n=Do(e,"")}if(""===t)return!r||100;if(Rr(t))return!!r&&0;if(ns(n,t))return!r||100;let i=ua(t," "),o=Dr(i,function(e){return((e,t)=>{let r=new wv([e],{includeScore:!0}).search(t);r=Be(r,0);let n=Be(r,"score",1);return n=1-n,n*=100,n})(n,e)});if(r)return Bv(o);{let e=80;return pr(o,function(t){return t>=e})}},e.strFindSimilar=function(e,t){let r="";if(Fe(e)||ke(e))r=ja(e);else{if(!Or(e))return{};r=Do(e,"")}return ke(t)&&(t=ja(t)),Fe(t)&&(t=[t]),Or(t)?function(e,t){let r=[],n=0;for(let i=0;i<t.length;i++){let o=t[i],a=by(e,o);r.push({target:o,rating:a}),a>r[n].rating&&(n=i)}return{ratings:r,bestMatch:r[n],bestMatchIndex:n}}(r,t=Dr(t,function(e){return ja(e)})):{}},e.strTruncate=eA,e.strdelleft=ga,e.strdelright=Ja,e.strleft=fa,e.strmid=Ac,e.strright=da,e.stru8arr2obj=Ev,e.tand=Qu,e.time2day=function(e){return Cg(e)?r(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD"):""},e.time2hour=function(e){return Cg(e)?r(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH"):""},e.time2min=iI,e.timeTZ2day=function(e){return EI(e)?(e=wI.delTZ(e),r(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD")):""},e.timeTZ2expire=function(e,t=null){return EI(e)?Cv(e=Dv(e),t=Dv(t)):{today:null,msg:"",err:"時間格式錯誤"}},e.timeTZ2hour=function(e){return EI(e)?(e=wI.delTZ(e),r(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH")):""},e.timeTZ2min=function(e){return EI(e)?(e=wI.delTZ(e),r(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH:mm")):""},e.timeTZ2past=function(e,t=null){return EI(e)?xv(e=Fv(e),t=Fv(t)):{today:null,msg:"",err:"時間格式錯誤"}},e.timems2day=function(e){return vI(e)?r(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DD"):""},e.timems2hour=function(e){return vI(e)?r(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH"):""},e.timems2min=function(e){return vI(e)?r(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm"):""},e.timems2time=function(e){return vI(e)?r(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm:ss"):""},e.timemsTZ2day=function(e){return BI(e)?(e=wI.delTZ(e),r(e).format("YYYY-MM-DD")):""},e.timemsTZ2expire=Cv,e.timemsTZ2hour=function(e){return BI(e)?(e=wI.delTZ(e),r(e).format("YYYY-MM-DDTHH")):""},e.timemsTZ2min=function(e){return BI(e)?(e=wI.delTZ(e),r(e).format("YYYY-MM-DDTHH:mm")):""},e.timemsTZ2past=xv,e.timemsTZ2time=function(e){return BI(e)?(e=wI.delTZ(e),r(e).format("YYYY-MM-DDTHH:mm:ss")):""},e.treeObj=Cu,e.treeToFilepath=function(e,t={}){if(!Or(e))return[];let r=Be(t,"delimiter");Fe(r)||(r="/");let n=Be(t,"bindRoot");Fe(n)||(n="root");let i=[];return Cu(e,(e,t,o)=>{let a=Be(e,"_type","");if("folder"!==a&&"file"!==a)return e;let s=Dr(Be(e,"pathInfors",[]),"name"),l=Be(s,0,"")===n;if(1===gn(s)&&l)return e;l&&(s=Ga(s));let c={type:a,path:r+Do(s,r)};return i.push(c),e},{force:!0}),i},e.trim=za,e.u16arr2b64=UI,e.u16arr2u8arr=LI,e.u8arr2ab=function(e){return es(e)?e.buffer:new ArrayBuffer},e.u8arr2b64=HI,e.u8arr2blob=Xh,e.u8arr2bs=function(e){if(!es(e))return"";let t=e.length,r="";for(let n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r},e.u8arr2obj=function(e){let t=null;if(!es(e))return null;try{let r=8,n=e.slice(0,r),i=e.slice(r,pm(e)),o=ms(n),a=i.slice(0,o),s=i.slice(o,pm(i)),l=Qv(a),c=function(e,t){let r=0,n=0,i=[];return Cr(t,t=>{n=r+t;let o=e.slice(r,n);r=n,i.push(o)}),i}(s,JSON.parse(l));t=Ev({results:Qv(c.shift()),binarys:c})}catch(e){}return t},e.u8arr2str=Qv,e.u8arr2u16arr=ts,e.urlParse=function(e){if(!Fe(e))return{};if(!Fe(e=Be(e=zo(e,"?"),"[1]")))return{};let t=zo(e,"&");return t=Dr(t,function(e){return zo(e,"=")}),t=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var i=e[t];gi(n,i[0],i[1])}return n}(t),t},e.verifyValue=function(e,t,r={}){let n=!1,i="";if("isstr"===t)De(e)||(n=!0,i="需要為字串",e="");else if("isnum"===t)ke(e)||(n=!0,i="需要為數字",e=0);else if("isp0num"===t)gI(e)||(n=!0,i="需要為含0的正浮點數",e=0);else if("isn0num"===t)dI(e)||(n=!0,i="需要為含0的負浮點數",e=0);else if("isint"===t)Ln(e)||(n=!0,i="需要為整數",e=0);else if("ispint"===t)to(e)||(n=!0,i="需要為不含0正整數",e=0);else if("isp0int"===t)Eo(e)||(n=!0,i="需要為含0正整數",e=0);else if("isnint"===t)Yh(e)||(n=!0,i="需要為不含0負整數",e=0);else if("isn0int"===t)fI(e)||(n=!0,i="需要為含0負整數",e=0);else if("custom"===t){let t=Be(r,"funCustom");if(!ba(t))throw new Error("invalid opt.funCustom when type='custom'");let o=t(e);if(!hn(o.err))throw new Error("invalid return.err for type='custom'");if(o.err&&!Fe(o.errmsg))throw new Error("invalid return.errmsg when return.err=true for type='custom'");if(!ke(o.value)&!De(o.value))throw new Error("invalid return.value for type='custom'");n=o.err,i=o.errmsg,e=o.value}else if(ba(t)){e=t(e)}else"any"===t?ke(e)||De(e)||(n=!0,i="需要為字串或數字",e=""):(n=!0,i="需要指定驗證類型",e=null);return{value:e,err:n,errmsg:i}},e.waitFun=bs});
24
24
  //# sourceMappingURL=wsemi.umd.js.map