@daysnap/utils 0.0.93 → 0.0.94

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 (887) hide show
  1. package/docs/interfaces/StorageManager.md +4 -4
  2. package/docs/interfaces/Trap.md +5 -5
  3. package/docs/modules.md +146 -122
  4. package/es/{ato.d.ts → ato.d.mts} +4 -2
  5. package/es/ato.mjs +6 -0
  6. package/es/base64ToBlob.d.mts +8 -0
  7. package/es/base64ToBlob.mjs +6 -0
  8. package/es/blobToBase64.d.mts +6 -0
  9. package/es/blobToBase64.mjs +6 -0
  10. package/es/cached.d.mts +7 -0
  11. package/es/cached.mjs +6 -0
  12. package/es/camelCase.d.mts +7 -0
  13. package/es/camelCase.mjs +6 -0
  14. package/es/canvasToBlob.d.mts +6 -0
  15. package/es/canvasToBlob.mjs +6 -0
  16. package/es/capitalize.d.mts +7 -0
  17. package/es/capitalize.mjs +6 -0
  18. package/es/chunk-2BCJGKPK.mjs +52 -0
  19. package/es/chunk-2YCUJDBN.mjs +55 -0
  20. package/es/chunk-2ZSYVROU.mjs +12 -0
  21. package/es/chunk-36BFA7SH.mjs +10 -0
  22. package/es/chunk-47AYSPDB.mjs +37 -0
  23. package/es/chunk-4FSOO7WE.mjs +8 -0
  24. package/es/chunk-4HDKZDZI.mjs +16 -0
  25. package/es/chunk-55VPNRDX.mjs +45 -0
  26. package/es/chunk-5FZDYL3X.mjs +14 -0
  27. package/es/chunk-67UQVOZK.mjs +22 -0
  28. package/es/chunk-6UG5VG67.mjs +8 -0
  29. package/es/chunk-7EYJRHPH.mjs +12 -0
  30. package/es/chunk-7K7LDQU5.mjs +8 -0
  31. package/es/chunk-AA7WCD7R.mjs +20 -0
  32. package/es/chunk-ACFNEWIA.mjs +17 -0
  33. package/es/chunk-ALUR2G5E.mjs +7 -0
  34. package/es/chunk-AQXI5M6E.mjs +8 -0
  35. package/es/chunk-AVYLSD4Y.mjs +12 -0
  36. package/es/chunk-B2QDZGN6.mjs +12 -0
  37. package/es/chunk-BI6NG2XY.mjs +8 -0
  38. package/es/chunk-BND7NHHZ.mjs +23 -0
  39. package/es/chunk-BZIKQDNP.mjs +25 -0
  40. package/es/chunk-C3VMHKA2.mjs +32 -0
  41. package/es/chunk-CH54B2NW.mjs +19 -0
  42. package/es/chunk-CIIM7WK6.mjs +12 -0
  43. package/es/chunk-DF4FZM53.mjs +8 -0
  44. package/es/chunk-DFNNXFNH.mjs +22 -0
  45. package/es/chunk-DKP76RFK.mjs +8 -0
  46. package/es/chunk-DPJQZSCQ.mjs +22 -0
  47. package/es/chunk-E3D4KBHK.mjs +11 -0
  48. package/es/chunk-EH5U26GD.mjs +8 -0
  49. package/es/chunk-EHZGMWKM.mjs +8 -0
  50. package/es/chunk-EJPQYVUM.mjs +8 -0
  51. package/es/chunk-FAZP7TZ2.mjs +8 -0
  52. package/es/chunk-FUPB76YN.mjs +8 -0
  53. package/es/chunk-GBEWSYLC.mjs +11 -0
  54. package/es/chunk-GGV2QLUA.mjs +17 -0
  55. package/es/chunk-GLR6PUBW.mjs +14 -0
  56. package/es/chunk-GSEIW3MZ.mjs +8 -0
  57. package/es/chunk-H4Q2L2Z7.mjs +8 -0
  58. package/es/chunk-H625225L.mjs +11 -0
  59. package/es/chunk-HMTKJUIX.mjs +22 -0
  60. package/es/chunk-HX6BTERO.mjs +8 -0
  61. package/es/chunk-IBD2BGUZ.mjs +17 -0
  62. package/es/chunk-IGSBQ6WF.mjs +15 -0
  63. package/es/chunk-IIW4U5AP.mjs +16 -0
  64. package/es/chunk-IQFJ5CYB.mjs +29 -0
  65. package/es/chunk-J3CV6URY.mjs +8 -0
  66. package/es/chunk-JHC77OJC.mjs +12 -0
  67. package/es/chunk-JNYC6ERK.mjs +21 -0
  68. package/es/chunk-KCWWH5WQ.mjs +30 -0
  69. package/es/chunk-KH4FBZOK.mjs +8 -0
  70. package/es/chunk-KH7NPF6I.mjs +15 -0
  71. package/es/chunk-KLSJ3VZG.mjs +10 -0
  72. package/es/chunk-KRWQWZSN.mjs +8 -0
  73. package/es/chunk-KZ3JDS2O.mjs +14 -0
  74. package/es/chunk-L7X3A3OQ.mjs +8 -0
  75. package/es/chunk-LXLIFUBR.mjs +43 -0
  76. package/es/chunk-MPSJ4FMD.mjs +16 -0
  77. package/es/chunk-MRUDDQHD.mjs +23 -0
  78. package/es/chunk-N4OGI2R3.mjs +19 -0
  79. package/es/chunk-N6IG3JYY.mjs +12 -0
  80. package/es/chunk-NPK3BLV3.mjs +30 -0
  81. package/es/chunk-NS4LR37B.mjs +8 -0
  82. package/es/chunk-NSD6JAKL.mjs +19 -0
  83. package/es/chunk-O6RUKPNP.mjs +9 -0
  84. package/es/chunk-ODB7KGAC.mjs +23 -0
  85. package/es/chunk-OG7NHU5G.mjs +42 -0
  86. package/es/chunk-OHCFFQNC.mjs +17 -0
  87. package/es/chunk-OL5ADAY4.mjs +57 -0
  88. package/es/chunk-OMH5TZIZ.mjs +13 -0
  89. package/es/chunk-OQG6GEL2.mjs +13 -0
  90. package/es/chunk-PGVJ5IPJ.mjs +8 -0
  91. package/es/chunk-PMNXLTUL.mjs +8 -0
  92. package/es/chunk-PUHUSCOJ.mjs +8 -0
  93. package/es/chunk-QI5FH522.mjs +11 -0
  94. package/es/chunk-QIYJY2OJ.mjs +8 -0
  95. package/es/chunk-REX225J2.mjs +10 -0
  96. package/es/chunk-RNR7ZEZT.mjs +12 -0
  97. package/es/chunk-SJCOWTEU.mjs +13 -0
  98. package/es/chunk-SLCAL4QM.mjs +8 -0
  99. package/es/chunk-SOAUJN2U.mjs +8 -0
  100. package/es/chunk-SWZD5EEJ.mjs +55 -0
  101. package/es/chunk-T2D2S2FY.mjs +8 -0
  102. package/es/chunk-T3MNPQVN.mjs +12 -0
  103. package/es/chunk-T53J6Z3W.mjs +8 -0
  104. package/es/chunk-TP4LCGUV.mjs +42 -0
  105. package/es/chunk-TZUHPRZ4.mjs +8 -0
  106. package/es/chunk-TZYPEK5T.mjs +34 -0
  107. package/es/chunk-UCRMI3XM.mjs +11 -0
  108. package/es/chunk-UCXP6JO2.mjs +14 -0
  109. package/es/chunk-UKTPML4E.mjs +14 -0
  110. package/es/chunk-USYDW5X4.mjs +8 -0
  111. package/es/chunk-UZ44S2T3.mjs +8 -0
  112. package/es/chunk-VLHC3FS7.mjs +20 -0
  113. package/es/chunk-VUU242QS.mjs +15 -0
  114. package/es/chunk-W56MFMAJ.mjs +16 -0
  115. package/es/chunk-W6L2LW6U.mjs +13 -0
  116. package/es/chunk-W72QWFLR.mjs +27 -0
  117. package/es/chunk-WLGNQDOA.mjs +8 -0
  118. package/es/chunk-WQFMRPXU.mjs +19 -0
  119. package/es/chunk-WTILX3PP.mjs +8 -0
  120. package/es/chunk-XJT6W4OH.mjs +15 -0
  121. package/es/chunk-XY5KATPF.mjs +12 -0
  122. package/es/chunk-Y2L4VRHX.mjs +10 -0
  123. package/es/chunk-Y6WZSPBK.mjs +13 -0
  124. package/es/chunk-YBK27UNT.mjs +24 -0
  125. package/es/chunk-YJKAHUCK.mjs +8 -0
  126. package/es/chunk-YMKK5EMJ.mjs +8 -0
  127. package/es/chunk-YO3WEMCZ.mjs +8 -0
  128. package/es/chunk-YWA5IBEK.mjs +8 -0
  129. package/es/chunk-YY5FUU2J.mjs +8 -0
  130. package/es/chunk-ZDX7R4RH.mjs +19 -0
  131. package/es/chunk-ZHLRSVIE.mjs +8 -0
  132. package/es/{clamp.d.ts → clamp.d.mts} +3 -1
  133. package/es/clamp.mjs +6 -0
  134. package/es/clone.d.mts +7 -0
  135. package/es/clone.mjs +8 -0
  136. package/es/{cloneSimple.d.ts → cloneSimple.d.mts} +3 -1
  137. package/es/cloneSimple.mjs +6 -0
  138. package/es/{compareVersion.d.ts → compareVersion.d.mts} +3 -1
  139. package/es/compareVersion.mjs +6 -0
  140. package/es/compressImage.d.mts +6 -0
  141. package/es/compressImage.mjs +7 -0
  142. package/es/createHexColorByHash.d.mts +6 -0
  143. package/es/createHexColorByHash.mjs +6 -0
  144. package/es/{createLinearFunction.d.ts → createLinearFunction.d.mts} +3 -1
  145. package/es/createLinearFunction.mjs +6 -0
  146. package/es/{createWithLoading.d.ts → createWithLoading.d.mts} +4 -2
  147. package/es/createWithLoading.mjs +6 -0
  148. package/es/debounce.d.mts +7 -0
  149. package/es/debounce.mjs +6 -0
  150. package/es/decode.d.mts +4 -0
  151. package/es/decode.mjs +8 -0
  152. package/es/downloadFile.d.mts +8 -0
  153. package/es/downloadFile.mjs +6 -0
  154. package/es/each.d.mts +7 -0
  155. package/es/each.mjs +6 -0
  156. package/es/{exitFullscreen.d.ts → exitFullscreen.d.mts} +3 -1
  157. package/es/exitFullscreen.mjs +6 -0
  158. package/es/filterBankCardNo.d.mts +6 -0
  159. package/es/filterBankCardNo.mjs +6 -0
  160. package/es/filterCRLF.d.mts +6 -0
  161. package/es/filterCRLF.mjs +6 -0
  162. package/es/filterEmoji.d.mts +6 -0
  163. package/es/filterEmoji.mjs +6 -0
  164. package/es/{filterEmptyValue.d.ts → filterEmptyValue.d.mts} +3 -1
  165. package/es/filterEmptyValue.mjs +14 -0
  166. package/es/filterIdCard.d.mts +7 -0
  167. package/es/filterIdCard.mjs +6 -0
  168. package/es/filterName.d.mts +6 -0
  169. package/es/filterName.mjs +6 -0
  170. package/es/{filterPhone.d.ts → filterPhone.d.mts} +3 -1
  171. package/es/filterPhone.mjs +6 -0
  172. package/es/filterString.d.mts +8 -0
  173. package/es/filterString.mjs +6 -0
  174. package/es/formartDateToZN.d.mts +3 -0
  175. package/es/formartDateToZN.mjs +119 -0
  176. package/es/formatAmount.d.mts +6 -0
  177. package/es/formatAmount.mjs +6 -0
  178. package/es/formatDate.d.mts +7 -0
  179. package/es/formatDate.mjs +8 -0
  180. package/es/{formatDateStr.d.ts → formatDateStr.d.mts} +3 -1
  181. package/es/formatDateStr.mjs +6 -0
  182. package/es/formatFileSize.d.mts +6 -0
  183. package/es/formatFileSize.mjs +6 -0
  184. package/es/{formatMessage.d.ts → formatMessage.d.mts} +3 -1
  185. package/es/formatMessage.mjs +10 -0
  186. package/es/{formatPathParams.d.ts → formatPathParams.d.mts} +3 -1
  187. package/es/formatPathParams.mjs +6 -0
  188. package/es/getBlobByUrl.d.mts +6 -0
  189. package/es/getBlobByUrl.mjs +6 -0
  190. package/es/getDayMillisecond.d.mts +6 -0
  191. package/es/getDayMillisecond.mjs +6 -0
  192. package/es/getImageInfo.d.mts +6 -0
  193. package/es/getImageInfo.mjs +6 -0
  194. package/es/{getRandom.d.ts → getRandom.d.mts} +3 -1
  195. package/es/getRandom.mjs +7 -0
  196. package/es/getRandomColor.d.mts +6 -0
  197. package/es/getRandomColor.mjs +6 -0
  198. package/es/{getRandomNumber.d.ts → getRandomNumber.d.mts} +3 -1
  199. package/es/getRandomNumber.mjs +8 -0
  200. package/es/getScrollTop.d.mts +6 -0
  201. package/es/getScrollTop.mjs +6 -0
  202. package/es/getVideoInfo.d.mts +6 -0
  203. package/es/getVideoInfo.mjs +6 -0
  204. package/es/inBrowser.d.mts +6 -0
  205. package/es/inBrowser.mjs +6 -0
  206. package/es/index.d.mts +115 -0
  207. package/es/index.mjs +470 -0
  208. package/es/insertLink.d.mts +7 -0
  209. package/es/insertLink.mjs +6 -0
  210. package/es/insertScript.d.mts +7 -0
  211. package/es/insertScript.mjs +6 -0
  212. package/es/insertStyle.d.mts +6 -0
  213. package/es/insertStyle.mjs +6 -0
  214. package/es/{isAmount.d.ts → isAmount.d.mts} +3 -1
  215. package/es/isAmount.mjs +6 -0
  216. package/es/isAndroid.d.mts +6 -0
  217. package/es/isAndroid.mjs +6 -0
  218. package/es/{isArray.d.ts → isArray.d.mts} +3 -1
  219. package/es/isArray.mjs +6 -0
  220. package/es/isBoolean.d.mts +7 -0
  221. package/es/isBoolean.mjs +6 -0
  222. package/es/isChinese.d.mts +6 -0
  223. package/es/isChinese.mjs +6 -0
  224. package/es/isDate.d.mts +6 -0
  225. package/es/isDate.mjs +6 -0
  226. package/es/isEmail.d.mts +6 -0
  227. package/es/isEmail.mjs +6 -0
  228. package/es/isEmpty.d.mts +6 -0
  229. package/es/isEmpty.mjs +8 -0
  230. package/es/isEmptyArray.d.mts +6 -0
  231. package/es/isEmptyArray.mjs +7 -0
  232. package/es/isEmptyObject.d.mts +7 -0
  233. package/es/isEmptyObject.mjs +6 -0
  234. package/es/isError.d.mts +6 -0
  235. package/es/isError.mjs +6 -0
  236. package/es/isFunction.d.mts +6 -0
  237. package/es/isFunction.mjs +6 -0
  238. package/es/{isIE.d.ts → isIE.d.mts} +3 -1
  239. package/es/isIE.mjs +6 -0
  240. package/es/isIOS.d.mts +6 -0
  241. package/es/isIOS.mjs +6 -0
  242. package/es/isIdCard.d.mts +6 -0
  243. package/es/isIdCard.mjs +6 -0
  244. package/es/isJSONString.d.mts +7 -0
  245. package/es/isJSONString.mjs +7 -0
  246. package/es/{isLan.d.ts → isLan.d.mts} +3 -1
  247. package/es/isLan.mjs +6 -0
  248. package/es/isLicenseCode.d.mts +7 -0
  249. package/es/isLicenseCode.mjs +6 -0
  250. package/es/isMobile.d.mts +6 -0
  251. package/es/isMobile.mjs +6 -0
  252. package/es/{isNativeFunction.d.ts → isNativeFunction.d.mts} +3 -1
  253. package/es/isNativeFunction.mjs +7 -0
  254. package/es/isNull.d.mts +6 -0
  255. package/es/isNull.mjs +6 -0
  256. package/es/isNumber.d.mts +7 -0
  257. package/es/isNumber.mjs +6 -0
  258. package/es/isObject.d.mts +6 -0
  259. package/es/isObject.mjs +6 -0
  260. package/es/isPhone.d.mts +6 -0
  261. package/es/isPhone.mjs +6 -0
  262. package/es/isPromise.d.mts +6 -0
  263. package/es/isPromise.mjs +6 -0
  264. package/es/isRegExp.d.mts +6 -0
  265. package/es/isRegExp.mjs +6 -0
  266. package/es/isString.d.mts +6 -0
  267. package/es/isString.mjs +6 -0
  268. package/es/isUndefined.d.mts +6 -0
  269. package/es/isUndefined.mjs +6 -0
  270. package/es/isUrl.d.mts +6 -0
  271. package/es/isUrl.mjs +6 -0
  272. package/es/{isWeChat.d.ts → isWeChat.d.mts} +4 -2
  273. package/es/isWeChat.mjs +8 -0
  274. package/es/{isWeChatMiniProgram.d.ts → isWeChatMiniProgram.d.mts} +3 -1
  275. package/es/isWeChatMiniProgram.mjs +6 -0
  276. package/es/isWindow.d.mts +7 -0
  277. package/es/isWindow.mjs +6 -0
  278. package/es/kebabCase.d.mts +7 -0
  279. package/es/kebabCase.mjs +6 -0
  280. package/es/listGenerator.d.mts +7 -0
  281. package/es/listGenerator.mjs +6 -0
  282. package/es/{mousewheel.d.ts → mousewheel.d.mts} +3 -2
  283. package/es/mousewheel.mjs +6 -0
  284. package/es/nf.d.mts +6 -0
  285. package/es/nf.mjs +6 -0
  286. package/es/normalizePath.d.mts +6 -0
  287. package/es/normalizePath.mjs +6 -0
  288. package/es/omit.d.mts +6 -0
  289. package/es/omit.mjs +6 -0
  290. package/es/{padding.d.ts → padding.d.mts} +3 -1
  291. package/es/padding.mjs +6 -0
  292. package/es/parseDate.d.mts +6 -0
  293. package/es/parseDate.mjs +6 -0
  294. package/es/parseError.d.mts +6 -0
  295. package/es/parseError.mjs +10 -0
  296. package/es/parseObject.d.mts +7 -0
  297. package/es/parseObject.mjs +6 -0
  298. package/es/parsePath.d.mts +6 -0
  299. package/es/parsePath.mjs +7 -0
  300. package/es/parseQuery.d.mts +8 -0
  301. package/es/parseQuery.mjs +8 -0
  302. package/es/parseQueryString.d.mts +8 -0
  303. package/es/parseQueryString.mjs +6 -0
  304. package/es/{pascalCase.d.ts → pascalCase.d.mts} +3 -1
  305. package/es/pascalCase.mjs +8 -0
  306. package/es/pick.d.mts +6 -0
  307. package/es/pick.mjs +6 -0
  308. package/es/replaceCrlf.d.mts +6 -0
  309. package/es/replaceCrlf.mjs +6 -0
  310. package/es/{requestFullScreen.d.ts → requestFullScreen.d.mts} +3 -1
  311. package/es/requestFullScreen.mjs +6 -0
  312. package/es/{reserve.d.ts → reserve.d.mts} +3 -1
  313. package/es/reserve.mjs +9 -0
  314. package/es/rgbToHex.d.mts +6 -0
  315. package/es/rgbToHex.mjs +6 -0
  316. package/es/{round.d.ts → round.d.mts} +3 -1
  317. package/es/round.mjs +6 -0
  318. package/es/scrollToTop.d.mts +6 -0
  319. package/es/scrollToTop.mjs +6 -0
  320. package/es/setScrollTop.d.mts +6 -0
  321. package/es/setScrollTop.mjs +6 -0
  322. package/es/{sleep.d.ts → sleep.d.mts} +3 -1
  323. package/es/sleep.mjs +6 -0
  324. package/es/splitArray.d.mts +6 -0
  325. package/es/splitArray.mjs +6 -0
  326. package/es/storage/{factory.d.ts → factory.d.mts} +4 -2
  327. package/es/storage/factory.mjs +8 -0
  328. package/es/storage/{index.d.ts → index.d.mts} +6 -3
  329. package/es/storage/index.mjs +14 -0
  330. package/es/{stringTrim.d.ts → stringTrim.d.mts} +3 -1
  331. package/es/stringTrim.mjs +6 -0
  332. package/es/stringifyQuery.d.mts +6 -0
  333. package/es/stringifyQuery.mjs +8 -0
  334. package/es/stringifyQueryString.d.mts +8 -0
  335. package/es/stringifyQueryString.mjs +6 -0
  336. package/es/throttle.d.mts +17 -0
  337. package/es/throttle.mjs +10 -0
  338. package/es/toCDB.d.mts +6 -0
  339. package/es/toCDB.mjs +6 -0
  340. package/es/toDBC.d.mts +6 -0
  341. package/es/toDBC.mjs +6 -0
  342. package/es/{trap.d.ts → trap.d.mts} +5 -3
  343. package/es/trap.mjs +9 -0
  344. package/es/{typeOf.d.ts → typeOf.d.mts} +3 -1
  345. package/es/typeOf.mjs +6 -0
  346. package/es/withPreventConsecutiveClicks.d.mts +6 -0
  347. package/es/withPreventConsecutiveClicks.mjs +6 -0
  348. package/lib/ato.d.ts +4 -2
  349. package/lib/ato.js +6 -10
  350. package/lib/base64ToBlob.d.ts +3 -1
  351. package/lib/base64ToBlob.js +6 -25
  352. package/lib/blobToBase64.d.ts +3 -1
  353. package/lib/blobToBase64.js +6 -18
  354. package/lib/cached.d.ts +3 -1
  355. package/lib/cached.js +6 -16
  356. package/lib/camelCase.d.ts +3 -1
  357. package/lib/camelCase.js +6 -11
  358. package/lib/canvasToBlob.d.ts +3 -1
  359. package/lib/canvasToBlob.js +6 -12
  360. package/lib/capitalize.d.ts +3 -1
  361. package/lib/capitalize.js +6 -11
  362. package/lib/chunk-2ZSZ4GDI.js +14 -0
  363. package/lib/chunk-3HR2GZUU.js +8 -0
  364. package/lib/chunk-3KRJNCKB.js +8 -0
  365. package/lib/chunk-3MBFDHEW.js +8 -0
  366. package/lib/chunk-3OUQEOSR.js +8 -0
  367. package/lib/chunk-3ZZPPKM3.js +17 -0
  368. package/lib/chunk-4BFL6RXS.js +45 -0
  369. package/lib/chunk-4N33UIAB.js +12 -0
  370. package/lib/chunk-4QMOXXPL.js +22 -0
  371. package/lib/chunk-53VI5KBY.js +17 -0
  372. package/lib/chunk-576ZRCUO.js +10 -0
  373. package/lib/chunk-5BVFSCCX.js +8 -0
  374. package/lib/chunk-5Z3KN6O2.js +8 -0
  375. package/lib/chunk-6EBFQIMY.js +14 -0
  376. package/lib/chunk-6GTFQZL4.js +12 -0
  377. package/lib/chunk-6UGTRW2S.js +8 -0
  378. package/lib/chunk-A4YRDVZ4.js +8 -0
  379. package/lib/chunk-ADGGLX7E.js +55 -0
  380. package/lib/chunk-ASYHV5B7.js +32 -0
  381. package/lib/chunk-AZFTV4OE.js +43 -0
  382. package/lib/chunk-BNF4U7EJ.js +12 -0
  383. package/lib/chunk-BULTIEJG.js +8 -0
  384. package/lib/chunk-CCZL3GEW.js +8 -0
  385. package/lib/chunk-CMP4T3ZH.js +8 -0
  386. package/lib/chunk-CNCI66H4.js +19 -0
  387. package/lib/chunk-CSZ7G34M.js +8 -0
  388. package/lib/chunk-D5O4LXN3.js +8 -0
  389. package/lib/chunk-D7OBO7J6.js +8 -0
  390. package/lib/chunk-DHYITZTI.js +13 -0
  391. package/lib/chunk-DOXFJNJO.js +16 -0
  392. package/lib/chunk-DWT2WM6H.js +11 -0
  393. package/lib/chunk-E2KNR3UG.js +20 -0
  394. package/lib/chunk-EFDRCKKS.js +8 -0
  395. package/lib/chunk-EJMUWNXI.js +30 -0
  396. package/lib/chunk-ELR2DZ56.js +12 -0
  397. package/lib/chunk-F4QMON2N.js +8 -0
  398. package/lib/chunk-FBJWICWM.js +14 -0
  399. package/lib/chunk-FIHEVMN6.js +23 -0
  400. package/lib/chunk-FY3PSILS.js +11 -0
  401. package/lib/chunk-GDCXWM7X.js +24 -0
  402. package/lib/chunk-GNGSV7F7.js +8 -0
  403. package/lib/chunk-GV4IJGB2.js +13 -0
  404. package/lib/chunk-GVPHHNDY.js +55 -0
  405. package/lib/chunk-GVYBTJDA.js +8 -0
  406. package/lib/chunk-HNVHVI6P.js +42 -0
  407. package/lib/chunk-HU5DI7IU.js +8 -0
  408. package/lib/chunk-IF7JMIDO.js +19 -0
  409. package/lib/chunk-IIIHPNUB.js +17 -0
  410. package/lib/chunk-IJCLLBSR.js +21 -0
  411. package/lib/chunk-IJD4RHXI.js +8 -0
  412. package/lib/chunk-IPAT3N4P.js +12 -0
  413. package/lib/chunk-IPIA4Z65.js +9 -0
  414. package/lib/chunk-J2Y5ZZA3.js +19 -0
  415. package/lib/chunk-JG33SHAK.js +17 -0
  416. package/lib/chunk-JKCLDPOC.js +10 -0
  417. package/lib/chunk-JMUWQLHE.js +8 -0
  418. package/lib/chunk-K4SQME6B.js +16 -0
  419. package/lib/chunk-KDND6GRD.js +22 -0
  420. package/lib/chunk-KEADPNJL.js +11 -0
  421. package/lib/chunk-KH7MPMQF.js +15 -0
  422. package/lib/chunk-KJX7IWF5.js +13 -0
  423. package/lib/chunk-KOOGLWJ5.js +8 -0
  424. package/lib/chunk-KYLBUCGC.js +8 -0
  425. package/lib/chunk-KZJIPHQB.js +11 -0
  426. package/lib/chunk-L52JSZDZ.js +16 -0
  427. package/lib/chunk-LJ4CEJ5C.js +8 -0
  428. package/lib/chunk-LOPD7SSH.js +52 -0
  429. package/lib/chunk-M3NXNABN.js +14 -0
  430. package/lib/chunk-M6B3UGFI.js +57 -0
  431. package/lib/chunk-MQDWCBXD.js +13 -0
  432. package/lib/chunk-MTF3ACKC.js +8 -0
  433. package/lib/chunk-NCFA5IXM.js +8 -0
  434. package/lib/chunk-OAVK23A3.js +16 -0
  435. package/lib/chunk-OC64NXZ2.js +22 -0
  436. package/lib/chunk-ONTP5SDE.js +19 -0
  437. package/lib/chunk-P7QW362C.js +12 -0
  438. package/lib/chunk-PAERS3SW.js +7 -0
  439. package/lib/chunk-PQE4SACQ.js +20 -0
  440. package/lib/chunk-QTKWJHHW.js +22 -0
  441. package/lib/chunk-QYCMY2T4.js +8 -0
  442. package/lib/chunk-S2FOFDX4.js +8 -0
  443. package/lib/chunk-S6UH3LMW.js +25 -0
  444. package/lib/chunk-S7PUCGCQ.js +15 -0
  445. package/lib/chunk-SCEONZUJ.js +23 -0
  446. package/lib/chunk-SN35EJZF.js +30 -0
  447. package/lib/chunk-SQ3L6IQW.js +8 -0
  448. package/lib/chunk-SWLGSN5X.js +8 -0
  449. package/lib/chunk-SZ7IZE42.js +12 -0
  450. package/lib/chunk-TNIIDDN4.js +10 -0
  451. package/lib/chunk-TSD6OV4A.js +8 -0
  452. package/lib/chunk-TSFGLHCP.js +11 -0
  453. package/lib/chunk-TT6AI5JN.js +37 -0
  454. package/lib/chunk-TXWIC3L7.js +12 -0
  455. package/lib/chunk-UCDNFQ3U.js +12 -0
  456. package/lib/chunk-UMUYJJ3M.js +15 -0
  457. package/lib/chunk-UXSZFM5G.js +10 -0
  458. package/lib/chunk-VMJHCN3P.js +19 -0
  459. package/lib/chunk-VTSGSUL2.js +29 -0
  460. package/lib/chunk-W52BRMSD.js +14 -0
  461. package/lib/chunk-WCZPEH7E.js +8 -0
  462. package/lib/chunk-WEWAC6GL.js +13 -0
  463. package/lib/chunk-WFPQI6HC.js +27 -0
  464. package/lib/chunk-WXXFRKUS.js +23 -0
  465. package/lib/chunk-XCSSSEK2.js +8 -0
  466. package/lib/chunk-XOQU757U.js +8 -0
  467. package/lib/chunk-XR4BSWOV.js +42 -0
  468. package/lib/chunk-Y4V5R7XA.js +8 -0
  469. package/lib/chunk-YBAHLKXR.js +34 -0
  470. package/lib/chunk-YGV2UKBN.js +15 -0
  471. package/lib/chunk-YGYLI2DC.js +12 -0
  472. package/lib/chunk-YKTD7CLE.js +8 -0
  473. package/lib/chunk-ZDRIUWKX.js +8 -0
  474. package/lib/chunk-ZGN3KUXE.js +8 -0
  475. package/lib/chunk-ZWXX326Y.js +8 -0
  476. package/lib/clamp.d.ts +3 -1
  477. package/lib/clamp.js +6 -20
  478. package/lib/clone.d.ts +3 -1
  479. package/lib/clone.js +8 -23
  480. package/lib/cloneSimple.d.ts +3 -1
  481. package/lib/cloneSimple.js +6 -13
  482. package/lib/compareVersion.d.ts +3 -1
  483. package/lib/compareVersion.js +6 -43
  484. package/lib/compressImage.d.ts +3 -1
  485. package/lib/compressImage.js +7 -20
  486. package/lib/createHexColorByHash.d.ts +3 -1
  487. package/lib/createHexColorByHash.js +6 -67
  488. package/lib/createLinearFunction.d.ts +3 -1
  489. package/lib/createLinearFunction.js +6 -24
  490. package/lib/createWithLoading.d.ts +4 -2
  491. package/lib/createWithLoading.js +6 -39
  492. package/lib/debounce.d.ts +3 -1
  493. package/lib/debounce.js +6 -18
  494. package/lib/decode.d.ts +4 -2
  495. package/lib/decode.js +8 -52
  496. package/lib/downloadFile.d.ts +3 -1
  497. package/lib/downloadFile.js +6 -15
  498. package/lib/each.d.ts +4 -2
  499. package/lib/each.js +6 -17
  500. package/lib/exitFullscreen.d.ts +3 -1
  501. package/lib/exitFullscreen.js +6 -31
  502. package/lib/filterBankCardNo.d.ts +3 -1
  503. package/lib/filterBankCardNo.js +6 -12
  504. package/lib/filterCRLF.d.ts +3 -1
  505. package/lib/filterCRLF.js +6 -10
  506. package/lib/filterEmoji.d.ts +3 -1
  507. package/lib/filterEmoji.js +6 -21
  508. package/lib/filterEmptyValue.d.ts +3 -1
  509. package/lib/filterEmptyValue.js +14 -35
  510. package/lib/filterIdCard.d.ts +3 -1
  511. package/lib/filterIdCard.js +6 -11
  512. package/lib/filterName.d.ts +3 -1
  513. package/lib/filterName.js +6 -20
  514. package/lib/filterPhone.d.ts +3 -1
  515. package/lib/filterPhone.js +6 -12
  516. package/lib/filterString.d.ts +3 -1
  517. package/lib/filterString.js +6 -20
  518. package/lib/formartDateToZN.d.ts +3 -1
  519. package/lib/formartDateToZN.js +119 -34
  520. package/lib/formatAmount.d.ts +3 -1
  521. package/lib/formatAmount.js +6 -25
  522. package/lib/formatDate.d.ts +3 -1
  523. package/lib/formatDate.js +8 -39
  524. package/lib/formatDateStr.d.ts +3 -1
  525. package/lib/formatDateStr.js +6 -11
  526. package/lib/formatFileSize.d.ts +6 -0
  527. package/lib/formatFileSize.js +6 -0
  528. package/lib/formatMessage.d.ts +3 -1
  529. package/lib/formatMessage.js +10 -29
  530. package/lib/formatPathParams.d.ts +3 -1
  531. package/lib/formatPathParams.js +6 -23
  532. package/lib/getBlobByUrl.d.ts +3 -1
  533. package/lib/getBlobByUrl.js +6 -25
  534. package/lib/getDayMillisecond.d.ts +3 -1
  535. package/lib/getDayMillisecond.js +6 -10
  536. package/lib/getImageInfo.d.ts +3 -1
  537. package/lib/getImageInfo.js +6 -18
  538. package/lib/getRandom.d.ts +3 -1
  539. package/lib/getRandom.js +7 -13
  540. package/lib/getRandomColor.d.ts +3 -1
  541. package/lib/getRandomColor.js +6 -10
  542. package/lib/getRandomNumber.d.ts +3 -1
  543. package/lib/getRandomNumber.js +8 -12
  544. package/lib/getScrollTop.d.ts +3 -1
  545. package/lib/getScrollTop.js +6 -10
  546. package/lib/getVideoInfo.d.ts +3 -1
  547. package/lib/getVideoInfo.js +6 -19
  548. package/lib/inBrowser.d.ts +3 -1
  549. package/lib/inBrowser.js +6 -10
  550. package/lib/index.d.ts +115 -112
  551. package/lib/index.js +470 -129
  552. package/lib/insertLink.d.ts +4 -2
  553. package/lib/insertLink.js +6 -19
  554. package/lib/insertScript.d.ts +4 -2
  555. package/lib/insertScript.js +6 -19
  556. package/lib/insertStyle.d.ts +3 -1
  557. package/lib/insertStyle.js +6 -13
  558. package/lib/isAmount.d.ts +3 -1
  559. package/lib/isAmount.js +6 -17
  560. package/lib/isAndroid.d.ts +3 -1
  561. package/lib/isAndroid.js +6 -10
  562. package/lib/isArray.d.ts +3 -1
  563. package/lib/isArray.js +6 -12
  564. package/lib/isBoolean.d.ts +3 -1
  565. package/lib/isBoolean.js +6 -11
  566. package/lib/isChinese.d.ts +3 -1
  567. package/lib/isChinese.js +6 -10
  568. package/lib/isDate.d.ts +3 -1
  569. package/lib/isDate.js +6 -10
  570. package/lib/isEmail.d.ts +3 -1
  571. package/lib/isEmail.js +6 -10
  572. package/lib/isEmpty.d.ts +3 -1
  573. package/lib/isEmpty.js +8 -12
  574. package/lib/isEmptyArray.d.ts +3 -1
  575. package/lib/isEmptyArray.js +7 -11
  576. package/lib/isEmptyObject.d.ts +3 -1
  577. package/lib/isEmptyObject.js +6 -11
  578. package/lib/isError.d.ts +3 -1
  579. package/lib/isError.js +6 -10
  580. package/lib/isFunction.d.ts +3 -1
  581. package/lib/isFunction.js +6 -10
  582. package/lib/isIE.d.ts +3 -1
  583. package/lib/isIE.js +6 -31
  584. package/lib/isIOS.d.ts +3 -1
  585. package/lib/isIOS.js +6 -10
  586. package/lib/isIdCard.d.ts +3 -1
  587. package/lib/isIdCard.js +6 -10
  588. package/lib/isJSONString.d.ts +3 -1
  589. package/lib/isJSONString.js +7 -18
  590. package/lib/isLan.d.ts +3 -1
  591. package/lib/isLan.js +6 -40
  592. package/lib/isLicenseCode.d.ts +3 -1
  593. package/lib/isLicenseCode.js +6 -11
  594. package/lib/isMobile.d.ts +3 -1
  595. package/lib/isMobile.js +6 -15
  596. package/lib/isNativeFunction.d.ts +3 -1
  597. package/lib/isNativeFunction.js +7 -12
  598. package/lib/isNull.d.ts +3 -1
  599. package/lib/isNull.js +6 -10
  600. package/lib/isNumber.d.ts +3 -1
  601. package/lib/isNumber.js +6 -11
  602. package/lib/isObject.d.ts +3 -1
  603. package/lib/isObject.js +6 -10
  604. package/lib/isPhone.d.ts +3 -1
  605. package/lib/isPhone.js +6 -10
  606. package/lib/isPromise.d.ts +3 -1
  607. package/lib/isPromise.js +6 -10
  608. package/lib/isRegExp.d.ts +3 -1
  609. package/lib/isRegExp.js +6 -10
  610. package/lib/isString.d.ts +3 -1
  611. package/lib/isString.js +6 -10
  612. package/lib/isUndefined.d.ts +3 -1
  613. package/lib/isUndefined.js +6 -10
  614. package/lib/isUrl.d.ts +3 -1
  615. package/lib/isUrl.js +6 -10
  616. package/lib/isWeChat.d.ts +4 -2
  617. package/lib/isWeChat.js +8 -18
  618. package/lib/isWeChatMiniProgram.d.ts +3 -1
  619. package/lib/isWeChatMiniProgram.js +6 -12
  620. package/lib/isWindow.d.ts +3 -1
  621. package/lib/isWindow.js +6 -11
  622. package/lib/kebabCase.d.ts +3 -1
  623. package/lib/kebabCase.js +6 -12
  624. package/lib/listGenerator.d.ts +3 -1
  625. package/lib/listGenerator.js +6 -11
  626. package/lib/mousewheel.d.ts +3 -2
  627. package/lib/mousewheel.js +6 -65
  628. package/lib/nf.d.ts +3 -1
  629. package/lib/nf.js +6 -10
  630. package/lib/normalizePath.d.ts +3 -1
  631. package/lib/normalizePath.js +6 -10
  632. package/lib/omit.d.ts +3 -1
  633. package/lib/omit.js +6 -14
  634. package/lib/padding.d.ts +3 -1
  635. package/lib/padding.js +6 -15
  636. package/lib/parseDate.d.ts +3 -1
  637. package/lib/parseDate.js +6 -15
  638. package/lib/parseError.d.ts +3 -1
  639. package/lib/parseError.js +10 -26
  640. package/lib/parseObject.d.ts +3 -1
  641. package/lib/parseObject.js +6 -17
  642. package/lib/parsePath.d.ts +3 -1
  643. package/lib/parsePath.js +7 -18
  644. package/lib/parseQuery.d.ts +3 -1
  645. package/lib/parseQuery.js +8 -31
  646. package/lib/parseQueryString.d.ts +3 -1
  647. package/lib/parseQueryString.js +6 -18
  648. package/lib/pascalCase.d.ts +3 -1
  649. package/lib/pascalCase.js +8 -13
  650. package/lib/pick.d.ts +3 -1
  651. package/lib/pick.js +6 -14
  652. package/lib/replaceCrlf.d.ts +3 -1
  653. package/lib/replaceCrlf.js +6 -10
  654. package/lib/requestFullScreen.d.ts +3 -1
  655. package/lib/requestFullScreen.js +6 -31
  656. package/lib/reserve.d.ts +3 -1
  657. package/lib/reserve.js +9 -14
  658. package/lib/rgbToHex.d.ts +3 -1
  659. package/lib/rgbToHex.js +6 -16
  660. package/lib/round.d.ts +3 -1
  661. package/lib/round.js +6 -51
  662. package/lib/scrollToTop.d.ts +3 -1
  663. package/lib/scrollToTop.js +6 -14
  664. package/lib/setScrollTop.d.ts +3 -1
  665. package/lib/setScrollTop.js +6 -10
  666. package/lib/sleep.d.ts +3 -1
  667. package/lib/sleep.js +6 -14
  668. package/lib/splitArray.d.ts +3 -1
  669. package/lib/splitArray.js +6 -14
  670. package/lib/storage/factory.d.ts +4 -2
  671. package/lib/storage/factory.js +8 -59
  672. package/lib/storage/index.d.ts +6 -3
  673. package/lib/storage/index.js +14 -30
  674. package/lib/stringTrim.d.ts +3 -1
  675. package/lib/stringTrim.js +6 -23
  676. package/lib/stringifyQuery.d.ts +3 -1
  677. package/lib/stringifyQuery.js +8 -20
  678. package/lib/stringifyQueryString.d.ts +3 -1
  679. package/lib/stringifyQueryString.js +6 -17
  680. package/lib/throttle.d.ts +5 -3
  681. package/lib/throttle.js +10 -45
  682. package/lib/toCDB.d.ts +3 -1
  683. package/lib/toCDB.js +6 -23
  684. package/lib/toDBC.d.ts +3 -1
  685. package/lib/toDBC.js +6 -23
  686. package/lib/trap.d.ts +5 -3
  687. package/lib/trap.js +9 -47
  688. package/lib/typeOf.d.ts +3 -1
  689. package/lib/typeOf.js +6 -12
  690. package/lib/withPreventConsecutiveClicks.d.ts +3 -1
  691. package/lib/withPreventConsecutiveClicks.js +6 -42
  692. package/package.json +16 -6
  693. package/es/ato.js +0 -6
  694. package/es/base64ToBlob.d.ts +0 -6
  695. package/es/base64ToBlob.js +0 -21
  696. package/es/blobToBase64.d.ts +0 -4
  697. package/es/blobToBase64.js +0 -14
  698. package/es/cached.d.ts +0 -5
  699. package/es/cached.js +0 -12
  700. package/es/camelCase.d.ts +0 -5
  701. package/es/camelCase.js +0 -7
  702. package/es/canvasToBlob.d.ts +0 -4
  703. package/es/canvasToBlob.js +0 -8
  704. package/es/capitalize.d.ts +0 -5
  705. package/es/capitalize.js +0 -7
  706. package/es/clamp.js +0 -16
  707. package/es/clone.d.ts +0 -5
  708. package/es/clone.js +0 -19
  709. package/es/cloneSimple.js +0 -9
  710. package/es/compareVersion.js +0 -39
  711. package/es/compressImage.d.ts +0 -4
  712. package/es/compressImage.js +0 -16
  713. package/es/createHexColorByHash.d.ts +0 -4
  714. package/es/createHexColorByHash.js +0 -63
  715. package/es/createLinearFunction.js +0 -20
  716. package/es/createWithLoading.js +0 -35
  717. package/es/debounce.d.ts +0 -5
  718. package/es/debounce.js +0 -14
  719. package/es/decode.d.ts +0 -2
  720. package/es/decode.js +0 -47
  721. package/es/downloadFile.d.ts +0 -6
  722. package/es/downloadFile.js +0 -11
  723. package/es/each.d.ts +0 -5
  724. package/es/each.js +0 -13
  725. package/es/exitFullscreen.js +0 -27
  726. package/es/filterBankCardNo.d.ts +0 -4
  727. package/es/filterBankCardNo.js +0 -8
  728. package/es/filterCRLF.d.ts +0 -4
  729. package/es/filterCRLF.js +0 -6
  730. package/es/filterEmoji.d.ts +0 -4
  731. package/es/filterEmoji.js +0 -17
  732. package/es/filterEmptyValue.js +0 -31
  733. package/es/filterIdCard.d.ts +0 -5
  734. package/es/filterIdCard.js +0 -7
  735. package/es/filterName.d.ts +0 -4
  736. package/es/filterName.js +0 -16
  737. package/es/filterPhone.js +0 -8
  738. package/es/filterString.d.ts +0 -6
  739. package/es/filterString.js +0 -16
  740. package/es/formartDateToZN.d.ts +0 -1
  741. package/es/formartDateToZN.js +0 -30
  742. package/es/formatAmount.d.ts +0 -4
  743. package/es/formatAmount.js +0 -21
  744. package/es/formatDate.d.ts +0 -5
  745. package/es/formatDate.js +0 -35
  746. package/es/formatDateStr.js +0 -7
  747. package/es/formatMessage.js +0 -25
  748. package/es/formatPathParams.js +0 -19
  749. package/es/getBlobByUrl.d.ts +0 -4
  750. package/es/getBlobByUrl.js +0 -21
  751. package/es/getDayMillisecond.d.ts +0 -4
  752. package/es/getDayMillisecond.js +0 -6
  753. package/es/getImageInfo.d.ts +0 -4
  754. package/es/getImageInfo.js +0 -14
  755. package/es/getRandom.js +0 -9
  756. package/es/getRandomColor.d.ts +0 -4
  757. package/es/getRandomColor.js +0 -6
  758. package/es/getRandomNumber.js +0 -8
  759. package/es/getScrollTop.d.ts +0 -4
  760. package/es/getScrollTop.js +0 -6
  761. package/es/getVideoInfo.d.ts +0 -4
  762. package/es/getVideoInfo.js +0 -15
  763. package/es/inBrowser.d.ts +0 -4
  764. package/es/inBrowser.js +0 -6
  765. package/es/index.d.ts +0 -112
  766. package/es/index.js +0 -113
  767. package/es/insertLink.d.ts +0 -5
  768. package/es/insertLink.js +0 -15
  769. package/es/insertScript.d.ts +0 -5
  770. package/es/insertScript.js +0 -15
  771. package/es/insertStyle.d.ts +0 -4
  772. package/es/insertStyle.js +0 -9
  773. package/es/isAmount.js +0 -13
  774. package/es/isAndroid.d.ts +0 -4
  775. package/es/isAndroid.js +0 -6
  776. package/es/isArray.js +0 -8
  777. package/es/isBoolean.d.ts +0 -5
  778. package/es/isBoolean.js +0 -7
  779. package/es/isChinese.d.ts +0 -4
  780. package/es/isChinese.js +0 -6
  781. package/es/isDate.d.ts +0 -4
  782. package/es/isDate.js +0 -6
  783. package/es/isEmail.d.ts +0 -4
  784. package/es/isEmail.js +0 -6
  785. package/es/isEmpty.d.ts +0 -4
  786. package/es/isEmpty.js +0 -8
  787. package/es/isEmptyArray.d.ts +0 -4
  788. package/es/isEmptyArray.js +0 -7
  789. package/es/isEmptyObject.d.ts +0 -5
  790. package/es/isEmptyObject.js +0 -7
  791. package/es/isError.d.ts +0 -4
  792. package/es/isError.js +0 -6
  793. package/es/isFunction.d.ts +0 -4
  794. package/es/isFunction.js +0 -6
  795. package/es/isIE.js +0 -27
  796. package/es/isIOS.d.ts +0 -4
  797. package/es/isIOS.js +0 -6
  798. package/es/isIdCard.d.ts +0 -4
  799. package/es/isIdCard.js +0 -6
  800. package/es/isJSONString.d.ts +0 -5
  801. package/es/isJSONString.js +0 -14
  802. package/es/isLan.js +0 -36
  803. package/es/isLicenseCode.d.ts +0 -5
  804. package/es/isLicenseCode.js +0 -7
  805. package/es/isMobile.d.ts +0 -4
  806. package/es/isMobile.js +0 -11
  807. package/es/isNativeFunction.js +0 -8
  808. package/es/isNull.d.ts +0 -4
  809. package/es/isNull.js +0 -6
  810. package/es/isNumber.d.ts +0 -5
  811. package/es/isNumber.js +0 -7
  812. package/es/isObject.d.ts +0 -4
  813. package/es/isObject.js +0 -6
  814. package/es/isPhone.d.ts +0 -4
  815. package/es/isPhone.js +0 -6
  816. package/es/isPromise.d.ts +0 -4
  817. package/es/isPromise.js +0 -6
  818. package/es/isRegExp.d.ts +0 -4
  819. package/es/isRegExp.js +0 -6
  820. package/es/isString.d.ts +0 -4
  821. package/es/isString.js +0 -6
  822. package/es/isUndefined.d.ts +0 -4
  823. package/es/isUndefined.js +0 -6
  824. package/es/isUrl.d.ts +0 -4
  825. package/es/isUrl.js +0 -6
  826. package/es/isWeChat.js +0 -13
  827. package/es/isWeChatMiniProgram.js +0 -8
  828. package/es/isWindow.d.ts +0 -5
  829. package/es/isWindow.js +0 -7
  830. package/es/kebabCase.d.ts +0 -5
  831. package/es/kebabCase.js +0 -8
  832. package/es/listGenerator.d.ts +0 -5
  833. package/es/listGenerator.js +0 -7
  834. package/es/mousewheel.js +0 -61
  835. package/es/nf.d.ts +0 -4
  836. package/es/nf.js +0 -6
  837. package/es/normalizePath.d.ts +0 -4
  838. package/es/normalizePath.js +0 -6
  839. package/es/omit.d.ts +0 -4
  840. package/es/omit.js +0 -10
  841. package/es/padding.js +0 -11
  842. package/es/parseDate.d.ts +0 -4
  843. package/es/parseDate.js +0 -11
  844. package/es/parseError.d.ts +0 -4
  845. package/es/parseError.js +0 -22
  846. package/es/parseObject.d.ts +0 -5
  847. package/es/parseObject.js +0 -13
  848. package/es/parsePath.d.ts +0 -4
  849. package/es/parsePath.js +0 -14
  850. package/es/parseQuery.d.ts +0 -6
  851. package/es/parseQuery.js +0 -27
  852. package/es/parseQueryString.d.ts +0 -6
  853. package/es/parseQueryString.js +0 -14
  854. package/es/pascalCase.js +0 -9
  855. package/es/pick.d.ts +0 -4
  856. package/es/pick.js +0 -10
  857. package/es/replaceCrlf.d.ts +0 -4
  858. package/es/replaceCrlf.js +0 -6
  859. package/es/requestFullScreen.js +0 -27
  860. package/es/reserve.js +0 -10
  861. package/es/rgbToHex.d.ts +0 -4
  862. package/es/rgbToHex.js +0 -12
  863. package/es/round.js +0 -47
  864. package/es/scrollToTop.d.ts +0 -4
  865. package/es/scrollToTop.js +0 -10
  866. package/es/setScrollTop.d.ts +0 -4
  867. package/es/setScrollTop.js +0 -6
  868. package/es/sleep.js +0 -10
  869. package/es/splitArray.d.ts +0 -4
  870. package/es/splitArray.js +0 -10
  871. package/es/storage/factory.js +0 -55
  872. package/es/storage/index.js +0 -13
  873. package/es/stringTrim.js +0 -19
  874. package/es/stringifyQuery.d.ts +0 -4
  875. package/es/stringifyQuery.js +0 -16
  876. package/es/stringifyQueryString.d.ts +0 -6
  877. package/es/stringifyQueryString.js +0 -13
  878. package/es/throttle.d.ts +0 -15
  879. package/es/throttle.js +0 -39
  880. package/es/toCDB.d.ts +0 -4
  881. package/es/toCDB.js +0 -19
  882. package/es/toDBC.d.ts +0 -4
  883. package/es/toDBC.js +0 -19
  884. package/es/trap.js +0 -43
  885. package/es/typeOf.js +0 -8
  886. package/es/withPreventConsecutiveClicks.d.ts +0 -4
  887. package/es/withPreventConsecutiveClicks.js +0 -38
package/lib/clamp.js CHANGED
@@ -1,20 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.clamp = void 0;
4
- /**
5
- * 首选值超出最小值,返回最小值;首选值超出最大值,返回最大值;其余返回首选值
6
- * @param min 最小值
7
- * @param x 首选值
8
- * @param max 最大值
9
- */
10
- function clamp(min, val, max) {
11
- // Math.min(Math.max(min, val), max)
12
- if (val < min) {
13
- return min;
14
- }
15
- if (val > max) {
16
- return max;
17
- }
18
- return val;
19
- }
20
- exports.clamp = clamp;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkW52BRMSDjs = require('./chunk-W52BRMSD.js');
4
+
5
+
6
+ exports.clamp = _chunkW52BRMSDjs.clamp;
package/lib/clone.d.ts CHANGED
@@ -2,4 +2,6 @@
2
2
  * 深拷贝
3
3
  * @param source 需要转换的值
4
4
  * */
5
- export declare function clone<T extends Record<string, any>>(source: T): T;
5
+ declare function clone<T extends Record<string, any>>(source: T): T;
6
+
7
+ export { clone };
package/lib/clone.js CHANGED
@@ -1,23 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.clone = void 0;
4
- const isArray_1 = require("./isArray");
5
- const isObject_1 = require("./isObject");
6
- /**
7
- * 深拷贝
8
- * @param source 需要转换的值
9
- * */
10
- function clone(source) {
11
- if (!(0, isArray_1.isArray)(source) && !(0, isObject_1.isObject)(source)) {
12
- return source;
13
- }
14
- const target = ((0, isArray_1.isArray)(source) ? [] : {});
15
- // eslint-disable-next-line no-restricted-syntax
16
- for (const key in source) {
17
- if (source.hasOwnProperty(key)) {
18
- target[key] = clone(source[key]);
19
- }
20
- }
21
- return target;
22
- }
23
- exports.clone = clone;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkGDCXWM7Xjs = require('./chunk-GDCXWM7X.js');
4
+ require('./chunk-CSZ7G34M.js');
5
+ require('./chunk-XCSSSEK2.js');
6
+
7
+
8
+ exports.clone = _chunkGDCXWM7Xjs.clone;
@@ -4,4 +4,6 @@
4
4
  *
5
5
  * 需要注意 当值为 undefined、function、symbol 会在转换过程中被忽略
6
6
  */
7
- export declare function cloneSimple<T>(source: T): T;
7
+ declare function cloneSimple<T>(source: T): T;
8
+
9
+ export { cloneSimple };
@@ -1,13 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.cloneSimple = void 0;
4
- /**
5
- * 拷贝对象
6
- * @param source 需要转换的值
7
- *
8
- * 需要注意 当值为 undefined、function、symbol 会在转换过程中被忽略
9
- */
10
- function cloneSimple(source) {
11
- return JSON.parse(JSON.stringify(source));
12
- }
13
- exports.cloneSimple = cloneSimple;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkTSD6OV4Ajs = require('./chunk-TSD6OV4A.js');
4
+
5
+
6
+ exports.cloneSimple = _chunkTSD6OV4Ajs.cloneSimple;
@@ -6,4 +6,6 @@
6
6
  * @param nv 新版本
7
7
  * @param v 版本
8
8
  */
9
- export declare function compareVersion(nv: string, v: string): -1 | 0 | 1;
9
+ declare function compareVersion(nv: string, v: string): -1 | 0 | 1;
10
+
11
+ export { compareVersion };
@@ -1,43 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.compareVersion = void 0;
4
- /**
5
- * 比对版本
6
- * -1 => nv < v
7
- * 0 => nv === v
8
- * 1 => nv > v
9
- * @param nv 新版本
10
- * @param v 版本
11
- */
12
- function compareVersion(nv, v) {
13
- const [H = 0, T = 0, S = 0] = nv.split('.').map((i) => +i); // 新
14
- const [h = 0, t = 0, s = 0] = v.split('.').map((i) => +i); // 本
15
- let result = 0;
16
- if (H > h) {
17
- result = 1;
18
- }
19
- else if (H === h) {
20
- if (T > t) {
21
- result = 1;
22
- }
23
- else if (T === t) {
24
- if (S > s) {
25
- result = 1;
26
- }
27
- else if (S === s) {
28
- result = 0;
29
- }
30
- else {
31
- result = -1;
32
- }
33
- }
34
- else {
35
- result = -1;
36
- }
37
- }
38
- else {
39
- result = -1;
40
- }
41
- return result;
42
- }
43
- exports.compareVersion = compareVersion;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkSN35EJZFjs = require('./chunk-SN35EJZF.js');
4
+
5
+
6
+ exports.compareVersion = _chunkSN35EJZFjs.compareVersion;
@@ -1,4 +1,6 @@
1
1
  /**
2
2
  * 压缩图片
3
3
  */
4
- export declare function compressImage(image: HTMLImageElement): HTMLCanvasElement;
4
+ declare function compressImage(image: HTMLImageElement): HTMLCanvasElement;
5
+
6
+ export { compressImage };
@@ -1,20 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.compressImage = void 0;
4
- const pick_1 = require("./pick");
5
- /**
6
- * 压缩图片
7
- */
8
- function compressImage(image) {
9
- const { width, height } = (0, pick_1.pick)(image, ['width', 'height']);
10
- const canvas = document.createElement('canvas');
11
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
12
- const ctx = canvas.getContext('2d');
13
- canvas.width = width;
14
- canvas.height = height;
15
- ctx.fillStyle = '#fff';
16
- ctx.fillRect(0, 0, canvas.width, canvas.height);
17
- ctx.drawImage(image, 0, 0, canvas.width, canvas.height);
18
- return canvas;
19
- }
20
- exports.compressImage = compressImage;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkPQE4SACQjs = require('./chunk-PQE4SACQ.js');
4
+ require('./chunk-IPAT3N4P.js');
5
+
6
+
7
+ exports.compressImage = _chunkPQE4SACQjs.compressImage;
@@ -1,4 +1,6 @@
1
1
  /**
2
2
  * 根据字符串hash值生成颜色值
3
3
  */
4
- export declare const colorGenByHash: (str: string) => string;
4
+ declare const colorGenByHash: (str: string) => string;
5
+
6
+ export { colorGenByHash };
@@ -1,67 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.colorGenByHash = void 0;
4
- /**
5
- * 根据字符串hash值生成颜色值
6
- */
7
- const colorGenByHash = (str) => {
8
- const lsL = [0.35, 0.5, 0.65];
9
- const lsS = [0.35, 0.5, 0.65];
10
- const seed = 131;
11
- const seed2 = 137;
12
- let hash = 0;
13
- // eslint-disable-next-line no-param-reassign
14
- str += 'x';
15
- const MAX_SAFE_INTEGER = parseInt((9007199254740991 / seed2).toString(), 10);
16
- for (let i = 0; i < str.length; i++) {
17
- if (hash > MAX_SAFE_INTEGER) {
18
- hash = parseInt((hash / seed2).toString(), 10);
19
- }
20
- hash = hash * seed + str.charCodeAt(i);
21
- }
22
- let H;
23
- H = hash % 359;
24
- hash = parseInt((hash / 360).toString(), 10);
25
- const S = lsS[hash % lsS.length];
26
- hash = parseInt((hash / lsS.length).toString(), 10);
27
- const L = lsL[hash % lsL.length];
28
- H /= 360;
29
- const q = L < 0.5 ? L * (1 + S) : L + S - L * S;
30
- const p = 2 * L - q;
31
- const RGBArray = [H + 1 / 3, H, H - 1 / 3].map((color) => {
32
- if (color < 0) {
33
- // eslint-disable-next-line no-param-reassign
34
- color++;
35
- }
36
- if (color > 1) {
37
- // eslint-disable-next-line no-param-reassign
38
- color--;
39
- }
40
- if (color < 1 / 6) {
41
- // eslint-disable-next-line no-param-reassign
42
- color = p + (q - p) * 6 * color;
43
- }
44
- else if (color < 0.5) {
45
- // eslint-disable-next-line no-param-reassign
46
- color = q;
47
- }
48
- else if (color < 2 / 3) {
49
- // eslint-disable-next-line no-param-reassign
50
- color = p + (q - p) * 6 * (2 / 3 - color);
51
- }
52
- else {
53
- // eslint-disable-next-line no-param-reassign
54
- color = p;
55
- }
56
- return Math.round(color * 255);
57
- });
58
- let hex = '#';
59
- RGBArray.forEach((value) => {
60
- if (value < 16) {
61
- hex += 0;
62
- }
63
- hex += value.toString(16);
64
- });
65
- return hex;
66
- };
67
- exports.colorGenByHash = colorGenByHash;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkADGGLX7Ejs = require('./chunk-ADGGLX7E.js');
4
+
5
+
6
+ exports.colorGenByHash = _chunkADGGLX7Ejs.colorGenByHash;
@@ -6,4 +6,6 @@
6
6
  * @param y1 坐标轴 y1
7
7
  * @param y2 坐标轴 y2
8
8
  */
9
- export declare function createLinearFunction(x1: number, x2: number, y1: number, y2: number): (x: number) => number;
9
+ declare function createLinearFunction(x1: number, x2: number, y1: number, y2: number): (x: number) => number;
10
+
11
+ export { createLinearFunction };
@@ -1,24 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createLinearFunction = void 0;
4
- /**
5
- * 创建一个线性函数
6
- * 主要用于动画值计算
7
- * @param x1 坐标轴 x1
8
- * @param x2 坐标轴 x2
9
- * @param y1 坐标轴 y1
10
- * @param y2 坐标轴 y2
11
- */
12
- function createLinearFunction(x1, x2, y1, y2) {
13
- return (x) => {
14
- if (x <= x1) {
15
- return y1;
16
- }
17
- if (x >= x2) {
18
- return y2;
19
- }
20
- const r = (y2 - y1) / (x2 - x1);
21
- return r * (x - x1) + y1;
22
- };
23
- }
24
- exports.createLinearFunction = createLinearFunction;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunk53VI5KBYjs = require('./chunk-53VI5KBY.js');
4
+
5
+
6
+ exports.createLinearFunction = _chunk53VI5KBYjs.createLinearFunction;
@@ -1,4 +1,5 @@
1
1
  import { Loose } from '@daysnap/types';
2
+
2
3
  type WithFalse<T> = T | false;
3
4
  /**
4
5
  * loading 生成器
@@ -6,7 +7,8 @@ type WithFalse<T> = T | false;
6
7
  * const fn = withLoading(async () => { // ... })
7
8
  * fn() 执行的时候就会执行showLoading
8
9
  */
9
- export declare function createWithLoading<O = any>(showLoading: (options: O) => Loose<{
10
+ declare function createWithLoading<O = any>(showLoading: (options: O) => Loose<{
10
11
  close: () => any;
11
12
  }>, defaultOptions?: O): <T extends (...args: any[]) => Promise<any>>(fn: T, options?: WithFalse<O>) => (...params: [...Parameters<T>, (WithFalse<O> | undefined)?]) => Promise<Awaited<ReturnType<T>>>;
12
- export {};
13
+
14
+ export { createWithLoading };
@@ -1,39 +1,6 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.createWithLoading = void 0;
13
- /**
14
- * loading 生成器
15
- * const withLoading = createWithLoading(() => showLoading())
16
- * const fn = withLoading(async () => { // ... })
17
- * fn() 执行的时候就会执行showLoading
18
- */
19
- function createWithLoading(showLoading, defaultOptions) {
20
- return function withLoading(fn, options = defaultOptions) {
21
- return (...params) => __awaiter(this, void 0, void 0, function* () {
22
- if (params.length > fn.length) {
23
- options = params.pop();
24
- }
25
- const toast = options ? showLoading(options) : null;
26
- try {
27
- return yield fn(...params);
28
- // eslint-disable-next-line no-useless-catch
29
- }
30
- catch (error) {
31
- throw error;
32
- }
33
- finally {
34
- toast === null || toast === void 0 ? void 0 : toast.close();
35
- }
36
- });
37
- };
38
- }
39
- exports.createWithLoading = createWithLoading;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkOC64NXZ2js = require('./chunk-OC64NXZ2.js');
4
+
5
+
6
+ exports.createWithLoading = _chunkOC64NXZ2js.createWithLoading;
package/lib/debounce.d.ts CHANGED
@@ -2,4 +2,6 @@
2
2
  * 防抖函数
3
3
  * 事件频繁触发,只会执行最后一次
4
4
  */
5
- export declare function debounce<T extends (...args: any[]) => any>(fn: T, ms: number): (this: unknown, ...args: Parameters<T>) => void;
5
+ declare function debounce<T extends (...args: any[]) => any>(fn: T, ms: number): (this: unknown, ...args: Parameters<T>) => void;
6
+
7
+ export { debounce };
package/lib/debounce.js CHANGED
@@ -1,18 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.debounce = void 0;
4
- /**
5
- * 防抖函数
6
- * 事件频繁触发,只会执行最后一次
7
- */
8
- function debounce(fn, ms) {
9
- let timer = null;
10
- // eslint-disable-next-line func-names
11
- return function (...args) {
12
- clearTimeout(timer);
13
- timer = setTimeout(() => {
14
- fn.apply(this, args);
15
- }, ms);
16
- };
17
- }
18
- exports.debounce = debounce;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkFBJWICWMjs = require('./chunk-FBJWICWM.js');
4
+
5
+
6
+ exports.debounce = _chunkFBJWICWMjs.debounce;
package/lib/decode.d.ts CHANGED
@@ -1,2 +1,4 @@
1
- export declare const btoa: (string: string) => string;
2
- export declare const atob: (string: string) => string;
1
+ declare const btoa: (string: string) => string;
2
+ declare const atob: (string: string) => string;
3
+
4
+ export { atob, btoa };
package/lib/decode.js CHANGED
@@ -1,52 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.atob = exports.btoa = void 0;
4
- // weapp jwt-decode
5
- const b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
6
- const b64re =
7
- // eslint-disable-next-line no-useless-escape
8
- /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;
9
- // btoa
10
- const btoa = function (string) {
11
- string = String(string);
12
- let bitmap, a, b, c, result = '', i = 0,
13
- // eslint-disable-next-line prefer-const
14
- rest = string.length % 3;
15
- for (; i < string.length;) {
16
- if ((a = string.charCodeAt(i++)) > 255 ||
17
- (b = string.charCodeAt(i++)) > 255 ||
18
- (c = string.charCodeAt(i++)) > 255)
19
- throw new TypeError("Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.");
20
- bitmap = (a << 16) | (b << 8) | c;
21
- result +=
22
- b64.charAt((bitmap >> 18) & 63) +
23
- b64.charAt((bitmap >> 12) & 63) +
24
- b64.charAt((bitmap >> 6) & 63) +
25
- b64.charAt(bitmap & 63);
26
- }
27
- return rest ? result.slice(0, rest - 3) + '==='.substring(rest) : result;
28
- };
29
- exports.btoa = btoa;
30
- // atob
31
- const atob = function (string) {
32
- string = String(string).replace(/[\t\n\f\r ]+/g, '');
33
- if (!b64re.test(string))
34
- throw new TypeError("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
35
- string += '=='.slice(2 - (string.length & 3));
36
- let bitmap, result = '', r1, r2, i = 0;
37
- for (; i < string.length;) {
38
- bitmap =
39
- (b64.indexOf(string.charAt(i++)) << 18) |
40
- (b64.indexOf(string.charAt(i++)) << 12) |
41
- ((r1 = b64.indexOf(string.charAt(i++))) << 6) |
42
- (r2 = b64.indexOf(string.charAt(i++)));
43
- result +=
44
- r1 === 64
45
- ? String.fromCharCode((bitmap >> 16) & 255)
46
- : r2 === 64
47
- ? String.fromCharCode((bitmap >> 16) & 255, (bitmap >> 8) & 255)
48
- : String.fromCharCode((bitmap >> 16) & 255, (bitmap >> 8) & 255, bitmap & 255);
49
- }
50
- return result;
51
- };
52
- exports.atob = atob;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkXR4BSWOVjs = require('./chunk-XR4BSWOV.js');
5
+
6
+
7
+
8
+ exports.atob = _chunkXR4BSWOVjs.atob; exports.btoa = _chunkXR4BSWOVjs.btoa;
@@ -1,6 +1,8 @@
1
1
  /**
2
2
  * 通过 a 标签下载文件
3
3
  */
4
- export declare function downloadFile(data: string | Blob | MediaSource, options?: {
4
+ declare function downloadFile(data: string | Blob | MediaSource, options?: {
5
5
  fileName?: string;
6
6
  }): void;
7
+
8
+ export { downloadFile };
@@ -1,15 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.downloadFile = void 0;
4
- /**
5
- * 通过 a 标签下载文件
6
- */
7
- function downloadFile(data, options) {
8
- const a = document.createElement('a');
9
- a.href = typeof data === 'string' ? data : URL.createObjectURL(data);
10
- if (options === null || options === void 0 ? void 0 : options.fileName) {
11
- a.download = options.fileName;
12
- }
13
- a.click();
14
- }
15
- exports.downloadFile = downloadFile;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkDHYITZTIjs = require('./chunk-DHYITZTI.js');
4
+
5
+
6
+ exports.downloadFile = _chunkDHYITZTIjs.downloadFile;
package/lib/each.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  /**
2
2
  * 支持遍历数组和对象
3
3
  */
4
- export declare function each<T>(data: T[], callback: (item: T, index: number) => void): void;
5
- export declare function each<T>(data: Record<string, T>, callback: (item: T, key: string) => void): void;
4
+ declare function each<T>(data: T[], callback: (item: T, index: number) => void): void;
5
+ declare function each<T>(data: Record<string, T>, callback: (item: T, key: string) => void): void;
6
+
7
+ export { each };
package/lib/each.js CHANGED
@@ -1,17 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.each = void 0;
4
- function each(data, callback) {
5
- if (Array.isArray(data)) {
6
- // eslint-disable-next-line no-plusplus
7
- for (let index = 0, { length } = data; index < length; index++) {
8
- callback.call(data[index], data[index], index);
9
- }
10
- }
11
- else {
12
- Object.keys(data).forEach((key) => {
13
- callback.call(data[key], data[key], key);
14
- });
15
- }
16
- }
17
- exports.each = each;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkK4SQME6Bjs = require('./chunk-K4SQME6B.js');
4
+
5
+
6
+ exports.each = _chunkK4SQME6Bjs.each;
@@ -3,4 +3,6 @@
3
3
  * 成功则 resolve , 如果不支持退出全屏或退出失败则 rejected
4
4
  * [MDN Reference](https://developer.mozilla.org/zh-CN/docs/Web/API/Document/exitFullscreen)
5
5
  */
6
- export declare function exitFullscreen(): Promise<any>;
6
+ declare function exitFullscreen(): Promise<any>;
7
+
8
+ export { exitFullscreen };
@@ -1,31 +1,6 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.exitFullscreen = void 0;
13
- /**
14
- * 退出全屏
15
- * 成功则 resolve , 如果不支持退出全屏或退出失败则 rejected
16
- * [MDN Reference](https://developer.mozilla.org/zh-CN/docs/Web/API/Document/exitFullscreen)
17
- */
18
- function exitFullscreen() {
19
- return __awaiter(this, void 0, void 0, function* () {
20
- const doc = window.document;
21
- const exit = doc.exitFullscreen ||
22
- doc.msExitFullscreen ||
23
- doc.mozCancelFullScreen ||
24
- doc.webkitExitFullscreen;
25
- if (exit) {
26
- return yield exit();
27
- }
28
- return Promise.reject();
29
- });
30
- }
31
- exports.exitFullscreen = exitFullscreen;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkGV4IJGB2js = require('./chunk-GV4IJGB2.js');
4
+
5
+
6
+ exports.exitFullscreen = _chunkGV4IJGB2js.exitFullscreen;
@@ -1,4 +1,6 @@
1
1
  /**
2
2
  * 过滤银行卡号
3
3
  */
4
- export declare function filterBankCardNo(val: string): string;
4
+ declare function filterBankCardNo(val: string): string;
5
+
6
+ export { filterBankCardNo };
@@ -1,12 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.filterBankCardNo = void 0;
4
- /**
5
- * 过滤银行卡号
6
- */
7
- function filterBankCardNo(val) {
8
- return val
9
- ? `${new Array(val.length - 3).join('*')}${val.substring(val.length - 4)}`.replace(/(.{4})/g, '$1 ')
10
- : '';
11
- }
12
- exports.filterBankCardNo = filterBankCardNo;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkJKCLDPOCjs = require('./chunk-JKCLDPOC.js');
4
+
5
+
6
+ exports.filterBankCardNo = _chunkJKCLDPOCjs.filterBankCardNo;
@@ -1,4 +1,6 @@
1
1
  /**
2
2
  * 替换字符串里面的回车换行符
3
3
  */
4
- export declare function filterCRLF(v: string): string;
4
+ declare function filterCRLF(v: string): string;
5
+
6
+ export { filterCRLF };