@unicom-cloud/utils 0.1.32 → 0.1.33

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 (353) hide show
  1. package/case-name/index.js +1 -1
  2. package/caseName.js +1 -1
  3. package/class-name/index.js +1 -1
  4. package/className.js +1 -1
  5. package/clipboard-copy/index.js +1 -1
  6. package/clipboardCopy.js +1 -1
  7. package/constant/address.js +1 -1
  8. package/constant/chineseCharacters.js +1 -1
  9. package/constant/constellations.js +1 -1
  10. package/constant/domain.js +1 -1
  11. package/constant/emoji.js +1 -1
  12. package/constant/identity.js +1 -1
  13. package/constant/index.js +1 -1
  14. package/constant/isMobile.js +1 -1
  15. package/constant/keyboardCode.js +1 -1
  16. package/constant/licensePlate.js +1 -1
  17. package/constant/name.js +1 -1
  18. package/constant/platform.js +1 -1
  19. package/constant/protocol.js +1 -1
  20. package/constant/string.js +1 -1
  21. package/constant/ui.js +1 -1
  22. package/constant.js +1 -1
  23. package/content-disposition/index.js +1 -1
  24. package/contentDisposition.js +1 -1
  25. package/cookie/index.js +1 -1
  26. package/cookie/src/api.js +1 -1
  27. package/cookie/src/assign.js +1 -1
  28. package/cookie/src/converter.js +1 -1
  29. package/cookie.js +1 -1
  30. package/date/convertTime.js +1 -1
  31. package/date/convertToDuration.js +1 -1
  32. package/date/index.js +5 -5
  33. package/date.js +5 -5
  34. package/decimal/decimal.js +1 -1
  35. package/decimal/index.js +1 -1
  36. package/decimal.js +1 -1
  37. package/dom-helpers/activeElement.js +1 -1
  38. package/dom-helpers/addClass.js +1 -1
  39. package/dom-helpers/addEventListener.js +1 -1
  40. package/dom-helpers/animate.js +1 -1
  41. package/dom-helpers/animationFrame.js +1 -1
  42. package/dom-helpers/attribute.js +1 -1
  43. package/dom-helpers/camelize.js +1 -1
  44. package/dom-helpers/camelizeStyle.js +1 -1
  45. package/dom-helpers/canUseDOM.js +1 -1
  46. package/dom-helpers/childElements.js +1 -1
  47. package/dom-helpers/childNodes.js +1 -1
  48. package/dom-helpers/clear.js +1 -1
  49. package/dom-helpers/closest.js +1 -1
  50. package/dom-helpers/collectElements.js +1 -1
  51. package/dom-helpers/collectSiblings.js +1 -1
  52. package/dom-helpers/contains.js +1 -1
  53. package/dom-helpers/css.js +1 -1
  54. package/dom-helpers/filterEventHandler.js +1 -1
  55. package/dom-helpers/getComputedStyle.js +1 -1
  56. package/dom-helpers/getElementCoordinates.js +46 -0
  57. package/dom-helpers/getScrollAccessor.js +1 -1
  58. package/dom-helpers/hasClass.js +1 -1
  59. package/dom-helpers/height.js +1 -1
  60. package/dom-helpers/hyphenate.js +1 -1
  61. package/dom-helpers/hyphenateStyle.js +1 -1
  62. package/dom-helpers/index.js +87 -84
  63. package/dom-helpers/insertAfter.js +1 -1
  64. package/dom-helpers/isDocument.js +1 -1
  65. package/dom-helpers/isInput.js +1 -1
  66. package/dom-helpers/isTransform.js +1 -1
  67. package/dom-helpers/isVisible.js +1 -1
  68. package/dom-helpers/isWindow.js +1 -1
  69. package/dom-helpers/listen.js +1 -1
  70. package/dom-helpers/matches.js +1 -1
  71. package/dom-helpers/nextUntil.js +1 -1
  72. package/dom-helpers/offset.js +1 -1
  73. package/dom-helpers/offsetParent.js +1 -1
  74. package/dom-helpers/ownerDocument.js +1 -1
  75. package/dom-helpers/ownerWindow.js +1 -1
  76. package/dom-helpers/parents.js +1 -1
  77. package/dom-helpers/position.js +1 -1
  78. package/dom-helpers/prepend.js +1 -1
  79. package/dom-helpers/querySelectorAll.js +1 -1
  80. package/dom-helpers/reflow.js +1 -1
  81. package/dom-helpers/remove.js +1 -1
  82. package/dom-helpers/removeClass.js +1 -1
  83. package/dom-helpers/removeEventListener.js +1 -1
  84. package/dom-helpers/scrollLeft.js +1 -1
  85. package/dom-helpers/scrollParent.js +1 -1
  86. package/dom-helpers/scrollTo.js +1 -1
  87. package/dom-helpers/scrollTop.js +1 -1
  88. package/dom-helpers/scrollbarSize.js +1 -1
  89. package/dom-helpers/siblings.js +1 -1
  90. package/dom-helpers/text.js +1 -1
  91. package/dom-helpers/toggleClass.js +1 -1
  92. package/dom-helpers/transitionEnd.js +2 -2
  93. package/dom-helpers/triggerEvent.js +1 -1
  94. package/dom-helpers/types.js +1 -1
  95. package/dom-helpers/width.js +1 -1
  96. package/domHelpers.js +65 -63
  97. package/emitter/index.js +1 -1
  98. package/emitter/src/index.js +1 -1
  99. package/emitter.js +1 -1
  100. package/escape/index.js +11 -0
  101. package/escape.js +6 -0
  102. package/file/fileToURL.js +1 -1
  103. package/file/index.js +1 -1
  104. package/file/saveAs.js +1 -1
  105. package/file.js +1 -1
  106. package/idb/index.js +1 -1
  107. package/idb.js +1 -1
  108. package/index.js +1 -1
  109. package/invariant/index.js +1 -1
  110. package/invariant.js +1 -1
  111. package/is/index.js +196 -141
  112. package/is/lib/isAscii.js +9 -0
  113. package/is/lib/isBase64.js +13 -0
  114. package/is/lib/isChinese.js +19 -0
  115. package/is/lib/isDataURI.js +25 -0
  116. package/is/lib/isEmail.js +72 -0
  117. package/is/lib/isFQDN.js +21 -0
  118. package/is/lib/isFullWidth.js +10 -0
  119. package/is/lib/isHSL.js +11 -0
  120. package/is/lib/isHalfWidth.js +10 -0
  121. package/is/lib/isHash.js +23 -0
  122. package/is/lib/isHexColor.js +12 -0
  123. package/is/lib/isIMEI.js +19 -0
  124. package/is/lib/isIP.js +21 -0
  125. package/is/lib/isIPRange.js +25 -0
  126. package/is/lib/isIdentityCard.js +190 -0
  127. package/is/lib/isJWT.js +14 -0
  128. package/is/lib/isMACAddress.js +9 -0
  129. package/is/lib/isMD5.js +9 -0
  130. package/is/lib/isMimeType.js +9 -0
  131. package/is/lib/isMobilePhone.js +192 -0
  132. package/is/lib/isPort.js +7 -0
  133. package/is/lib/isRgbColor.js +18 -0
  134. package/is/lib/isSemVer.js +20 -0
  135. package/is/lib/isSlug.js +9 -0
  136. package/is/lib/isStrongPassword.js +48 -0
  137. package/is/lib/isURL.js +78 -0
  138. package/is/lib/isUUID.js +24 -0
  139. package/is/lib/isVariableWidth.js +10 -0
  140. package/is/lib/util/assertString.js +12 -0
  141. package/is.js +122 -66
  142. package/lunar/index.js +1 -1
  143. package/lunar/lib/Holiday.js +1 -1
  144. package/lunar/lib/HolidayUtil.js +1 -1
  145. package/lunar/lib/I18n.js +1 -1
  146. package/lunar/lib/JieQi.js +1 -1
  147. package/lunar/lib/Lunar.js +1 -1
  148. package/lunar/lib/LunarMonth.js +1 -1
  149. package/lunar/lib/LunarTime.js +1 -1
  150. package/lunar/lib/LunarUtil.js +1 -1
  151. package/lunar/lib/LunarYear.js +1 -1
  152. package/lunar/lib/ShouXingUtil.js +1 -1
  153. package/lunar/lib/Solar.js +1 -1
  154. package/lunar/lib/SolarHalfYear.js +1 -1
  155. package/lunar/lib/SolarMonth.js +1 -1
  156. package/lunar/lib/SolarSeason.js +1 -1
  157. package/lunar/lib/SolarUtil.js +1 -1
  158. package/lunar/lib/SolarWeek.js +1 -1
  159. package/lunar/lib/SolarYear.js +1 -1
  160. package/lunar/lib/index.js +1 -1
  161. package/lunar.js +1 -1
  162. package/math/index.js +1 -1
  163. package/math.js +1 -1
  164. package/md5/index.js +1 -1
  165. package/md5.js +1 -1
  166. package/mock/MockWebSocket.js +1 -1
  167. package/mock/MockXMLHttpRequest.js +1 -1
  168. package/mock/index.js +1 -1
  169. package/mock.js +1 -1
  170. package/normalize-wheel/ExecutionEnvironment.js +1 -1
  171. package/normalize-wheel/UserAgent_DEPRECATED.js +1 -1
  172. package/normalize-wheel/index.js +1 -1
  173. package/normalize-wheel/isEventSupported.js +1 -1
  174. package/normalizeWheel.js +1 -1
  175. package/number-to-chinese/index.js +1 -1
  176. package/numberToChinese.js +1 -1
  177. package/nzh/cn.js +1 -1
  178. package/nzh/hk.js +1 -1
  179. package/nzh/index.js +1 -1
  180. package/nzh/nzh.js +1 -1
  181. package/nzh/src/autoGet.js +1 -1
  182. package/nzh/src/index.js +1 -1
  183. package/nzh/src/langs/cn_b.js +1 -1
  184. package/nzh/src/langs/cn_s.js +1 -1
  185. package/nzh/src/langs/hk_b.js +1 -1
  186. package/nzh/src/langs/hk_s.js +1 -1
  187. package/nzh/src/utils.js +1 -1
  188. package/nzh.js +1 -1
  189. package/object-keys-sort/index.js +1 -1
  190. package/object-prototype-to-string-call/index.js +2 -2
  191. package/objectKeysSort.js +1 -1
  192. package/objectPrototypeToStringCall.js +1 -1
  193. package/package.json +1 -1
  194. package/pinyin/index.js +1 -1
  195. package/pinyin/simplified.js +1 -1
  196. package/pinyin/src/core.js +1 -1
  197. package/pinyin/src/simplified.js +6 -6
  198. package/pinyin/src/simplified_dict.js +5 -4
  199. package/pinyin/src/traditional.js +4 -4
  200. package/pinyin/src/traditional_dict.js +4 -3
  201. package/pinyin/traditional.js +1 -1
  202. package/pinyin.js +1 -1
  203. package/query-string/base.js +1 -1
  204. package/query-string/index.js +1 -1
  205. package/query-string/splitOnFirst.js +1 -1
  206. package/queryString.js +1 -1
  207. package/random/address.js +1 -1
  208. package/random/constellation.js +1 -1
  209. package/random/image.js +1 -1
  210. package/random/index.js +1 -1
  211. package/random/licensePlate.js +1 -1
  212. package/random/name.js +1 -1
  213. package/random/number.js +1 -1
  214. package/random/text.js +1 -1
  215. package/random/time.js +1 -1
  216. package/random/web.js +1 -1
  217. package/random.js +1 -1
  218. package/screenfull/index.js +1 -1
  219. package/screenfull.js +1 -1
  220. package/sleep/index.js +1 -1
  221. package/sleep.js +1 -1
  222. package/snapdom/index.js +1 -1
  223. package/snapdom/src/api/preCache.js +1 -1
  224. package/snapdom/src/api/snapdom.js +2 -2
  225. package/snapdom/src/core/cache.js +1 -1
  226. package/snapdom/src/core/capture.js +1 -1
  227. package/snapdom/src/core/clone.js +1 -1
  228. package/snapdom/src/core/context.js +1 -1
  229. package/snapdom/src/core/plugins.js +1 -1
  230. package/snapdom/src/core/prepare.js +1 -1
  231. package/snapdom/src/exporters/download.js +14 -9
  232. package/snapdom/src/exporters/toBlob.js +1 -1
  233. package/snapdom/src/exporters/toCanvas.js +1 -1
  234. package/snapdom/src/exporters/toImg.js +1 -1
  235. package/snapdom/src/modules/CSSVar.js +1 -1
  236. package/snapdom/src/modules/background.js +1 -1
  237. package/snapdom/src/modules/changeCSS.js +1 -1
  238. package/snapdom/src/modules/counter.js +1 -1
  239. package/snapdom/src/modules/fonts.js +1 -1
  240. package/snapdom/src/modules/iconFonts.js +1 -1
  241. package/snapdom/src/modules/images.js +1 -1
  242. package/snapdom/src/modules/lineClamp.js +1 -1
  243. package/snapdom/src/modules/pseudo.js +1 -1
  244. package/snapdom/src/modules/rasterize.js +1 -1
  245. package/snapdom/src/modules/snapFetch.js +1 -1
  246. package/snapdom/src/modules/styles.js +2 -2
  247. package/snapdom/src/modules/svgDefs.js +1 -1
  248. package/snapdom/src/utils/browser.js +1 -1
  249. package/snapdom/src/utils/capture.helpers.js +1 -1
  250. package/snapdom/src/utils/clone.helpers.js +1 -1
  251. package/snapdom/src/utils/css.js +1 -1
  252. package/snapdom/src/utils/helpers.js +1 -1
  253. package/snapdom/src/utils/image.js +1 -1
  254. package/snapdom/src/utils/prepare.helpers.js +1 -1
  255. package/snapdom/src/utils/transforms.helpers.js +1 -1
  256. package/snapdom.js +1 -1
  257. package/string/index.js +1 -1
  258. package/string.js +1 -1
  259. package/tinycolor/index.js +1 -1
  260. package/tinycolor/src/conversion.js +1 -1
  261. package/tinycolor/src/css-color-names.js +1 -1
  262. package/tinycolor/src/format-input.js +1 -1
  263. package/tinycolor/src/from-ratio.js +12 -11
  264. package/tinycolor/src/index.js +1 -1
  265. package/tinycolor/src/random.js +30 -29
  266. package/tinycolor/src/readability.js +1 -1
  267. package/tinycolor/src/to-ms-filter.js +1 -1
  268. package/tinycolor/src/utils.js +1 -1
  269. package/tinycolor.js +1 -1
  270. package/tree/index.js +54 -75
  271. package/tree/search/index.js +1 -1
  272. package/tree.js +9 -11
  273. package/tween/index.js +1 -1
  274. package/tween/src/easing.js +1 -1
  275. package/tween/src/tween.js +15 -14
  276. package/tween.js +1 -1
  277. package/types/date/index.d.ts +3 -3
  278. package/types/dom-helpers/getElementCoordinates.d.ts +40 -0
  279. package/types/dom-helpers/index.d.ts +3 -1
  280. package/types/escape/index.d.ts +2 -0
  281. package/types/is/index.d.ts +28 -1
  282. package/types/is/lib/isAscii.d.ts +1 -0
  283. package/types/is/lib/isBase64.d.ts +1 -0
  284. package/types/is/lib/isChinese.d.ts +4 -0
  285. package/types/is/lib/isDataURI.d.ts +1 -0
  286. package/types/is/lib/isEmail.d.ts +1 -0
  287. package/types/is/lib/isFQDN.d.ts +1 -0
  288. package/types/is/lib/isFullWidth.d.ts +2 -0
  289. package/types/is/lib/isHSL.d.ts +1 -0
  290. package/types/is/lib/isHalfWidth.d.ts +2 -0
  291. package/types/is/lib/isHash.d.ts +1 -0
  292. package/types/is/lib/isHexColor.d.ts +1 -0
  293. package/types/is/lib/isIMEI.d.ts +1 -0
  294. package/types/is/lib/isIP.d.ts +1 -0
  295. package/types/is/lib/isIPRange.d.ts +1 -0
  296. package/types/is/lib/isIdentityCard.d.ts +1 -0
  297. package/types/is/lib/isJWT.d.ts +1 -0
  298. package/types/is/lib/isMACAddress.d.ts +1 -0
  299. package/types/is/lib/isMD5.d.ts +1 -0
  300. package/types/is/lib/isMimeType.d.ts +1 -0
  301. package/types/is/lib/isMobilePhone.d.ts +2 -0
  302. package/types/is/lib/isOctal.d.ts +1 -0
  303. package/types/is/lib/isPort.d.ts +1 -0
  304. package/types/is/lib/isRgbColor.d.ts +1 -0
  305. package/types/is/lib/isSemVer.d.ts +1 -0
  306. package/types/is/lib/isSlug.d.ts +1 -0
  307. package/types/is/lib/isStrongPassword.d.ts +1 -0
  308. package/types/is/lib/isURL.d.ts +1 -0
  309. package/types/is/lib/isUUID.d.ts +1 -0
  310. package/types/is/lib/isVariableWidth.d.ts +1 -0
  311. package/types/is/lib/util/assertString.d.ts +1 -0
  312. package/types/pinyin/es/main.d.ts +4 -0
  313. package/types/pinyin/es/traditional.d.ts +4 -0
  314. package/types/snapdom/src/api/snapdom.d.ts +1 -0
  315. package/types/tree/index.d.ts +3 -4
  316. package/types/validate/src/index.d.ts +23 -25
  317. package/types/validate/src/interface.d.ts +5 -3
  318. package/types/validate/src/locale/en-US.d.ts +12 -2
  319. package/types/validate/src/locale/index.d.ts +171 -0
  320. package/types/validate/src/locale/zh-CN.d.ts +12 -2
  321. package/types/validate/src/rules/base.d.ts +3 -1
  322. package/types/validate/src/rules/custom.d.ts +1 -1
  323. package/types/validate/src/rules/type.d.ts +10 -0
  324. package/ui-color/compareColorByRange.js +1 -1
  325. package/ui-color/index.js +8 -7
  326. package/uiColor.js +25 -24
  327. package/url-toolkit/index.js +1 -1
  328. package/url-toolkit/src/url-toolkit.js +1 -1
  329. package/urlToolkit.js +1 -1
  330. package/validate/index.js +23 -25
  331. package/validate/src/index.js +116 -73
  332. package/validate/src/locale/en-US.js +12 -2
  333. package/validate/src/locale/index.js +11 -0
  334. package/validate/src/locale/zh-CN.js +12 -2
  335. package/validate/src/rules/array.js +2 -2
  336. package/validate/src/rules/base.js +35 -31
  337. package/validate/src/rules/boolean.js +1 -1
  338. package/validate/src/rules/custom.js +2 -2
  339. package/validate/src/rules/number.js +1 -1
  340. package/validate/src/rules/object.js +1 -1
  341. package/validate/src/rules/string.js +6 -5
  342. package/validate/src/rules/type.js +84 -14
  343. package/validate.js +23 -25
  344. package/version/index.js +1 -1
  345. package/version.js +1 -1
  346. package/xlsx/index.d.ts +4 -8
  347. package/xlsx/index.js +1 -1
  348. package/xlsx/xlsx.js +2 -2
  349. package/xlsx.js +1 -1
  350. package/types/validate/src/message.d.ts +0 -2
  351. package/types/validate/src/utils.d.ts +0 -3
  352. package/validate/src/message.js +0 -5
  353. package/validate/src/utils.js +0 -8
@@ -0,0 +1,23 @@
1
+ /* 2025-12-17 18:26:57 */
2
+ import e from "./util/assertString.js";
3
+ const r = {
4
+ md5: 32,
5
+ md4: 32,
6
+ sha1: 40,
7
+ sha256: 64,
8
+ sha384: 96,
9
+ sha512: 128,
10
+ ripemd128: 32,
11
+ ripemd160: 40,
12
+ tiger128: 32,
13
+ tiger160: 40,
14
+ tiger192: 48,
15
+ crc32: 8,
16
+ crc32b: 8
17
+ };
18
+ function i(s, t) {
19
+ return e(s), new RegExp(`^[a-fA-F0-9]{${r[t]}}$`).test(s);
20
+ }
21
+ export {
22
+ i as default
23
+ };
@@ -0,0 +1,12 @@
1
+ /* 2025-12-17 18:26:57 */
2
+ import o from "lodash/defaults";
3
+ import t from "./util/assertString.js";
4
+ const s = /^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i, i = /^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i, a = {
5
+ require_hashtag: !1
6
+ };
7
+ function x(r, e) {
8
+ return t(r), e = o(e, a), (e.require_hashtag ? i : s).test(r);
9
+ }
10
+ export {
11
+ x as default
12
+ };
@@ -0,0 +1,19 @@
1
+ /* 2025-12-17 18:26:57 */
2
+ import a from "./util/assertString.js";
3
+ const c = /^[0-9]{15}$/, g = /^\d{2}-\d{6}-\d{6}-\d{1}$/;
4
+ function m(e, s) {
5
+ a(e), s = s || {};
6
+ let f = c;
7
+ if (s.allow_hyphens && (f = g), !f.test(e))
8
+ return !1;
9
+ e = e.replace(/-/g, "");
10
+ let n = 0, t = 2, l = 14;
11
+ for (let i = 0; i < l; i++) {
12
+ const u = e.substring(l - i - 1, l - i), r = parseInt(u, 10) * t;
13
+ r >= 10 ? n += r % 10 + 1 : n += r, t === 1 ? t += 1 : t -= 1;
14
+ }
15
+ return (10 - n % 10) % 10 === parseInt(e.substring(14, 15), 10);
16
+ }
17
+ export {
18
+ m as default
19
+ };
package/is/lib/isIP.js ADDED
@@ -0,0 +1,21 @@
1
+ /* 2025-12-17 18:26:57 */
2
+ import a from "lodash/isObject";
3
+ import g from "./util/assertString.js";
4
+ const o = "(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])", t = `(${o}[.]){3}${o}`, i = new RegExp(`^${t}$`), $ = "(?:[0-9a-fA-F]{1,4})", m = new RegExp(
5
+ `^((?:${$}:){7}(?:${$}|:)|(?:${$}:){6}(?:${t}|:${$}|:)|(?:${$}:){5}(?::${t}|(:${$}){1,2}|:)|(?:${$}:){4}(?:(:${$}){0,1}:${t}|(:${$}){1,3}|:)|(?:${$}:){3}(?:(:${$}){0,2}:${t}|(:${$}){1,4}|:)|(?:${$}:){2}(?:(:${$}){0,3}:${t}|(:${$}){1,5}|:)|(?:${$}:){1}(?:(:${$}){0,4}:${t}|(:${$}){1,6}|:)|(?::((?::${$}){0,5}:${t}|(?::${$}){1,7}|:)))(%[0-9a-zA-Z.]{1,})?$`
6
+ );
7
+ function s(e, n = {}) {
8
+ g(e);
9
+ const r = (a(n) ? n.version : arguments[1]) || "";
10
+ if (r) {
11
+ if (r.toString() === "4")
12
+ return i.test(e);
13
+ if (r.toString() === "6")
14
+ return m.test(e);
15
+ } else
16
+ return s(e, { version: 4 }) || s(e, { version: 6 });
17
+ return !1;
18
+ }
19
+ export {
20
+ s as default
21
+ };
@@ -0,0 +1,25 @@
1
+ /* 2025-12-17 18:26:57 */
2
+ import r from "./isIP.js";
3
+ import l from "./util/assertString.js";
4
+ const f = /^\d{1,3}$/, a = 32, i = 128;
5
+ function b(s, n = "") {
6
+ l(s);
7
+ const t = s.split("/");
8
+ if (t.length !== 2 || !f.test(t[1]) || t[1].length > 1 && t[1].startsWith("0") || !r(t[0], n))
9
+ return !1;
10
+ let e = null;
11
+ switch (String(n)) {
12
+ case "4":
13
+ e = a;
14
+ break;
15
+ case "6":
16
+ e = i;
17
+ break;
18
+ default:
19
+ e = r(t[0], "6") ? i : a;
20
+ }
21
+ return t[1] <= e && t[1] >= 0;
22
+ }
23
+ export {
24
+ b as default
25
+ };
@@ -0,0 +1,190 @@
1
+ /* 2025-12-17 18:26:57 */
2
+ import A from "./util/assertString.js";
3
+ const h = {
4
+ "zh-CN": (t) => {
5
+ const u = [
6
+ "11",
7
+ // 北京
8
+ "12",
9
+ // 天津
10
+ "13",
11
+ // 河北
12
+ "14",
13
+ // 山西
14
+ "15",
15
+ // 内蒙古
16
+ "21",
17
+ // 辽宁
18
+ "22",
19
+ // 吉林
20
+ "23",
21
+ // 黑龙江
22
+ "31",
23
+ // 上海
24
+ "32",
25
+ // 江苏
26
+ "33",
27
+ // 浙江
28
+ "34",
29
+ // 安徽
30
+ "35",
31
+ // 福建
32
+ "36",
33
+ // 江西
34
+ "37",
35
+ // 山东
36
+ "41",
37
+ // 河南
38
+ "42",
39
+ // 湖北
40
+ "43",
41
+ // 湖南
42
+ "44",
43
+ // 广东
44
+ "45",
45
+ // 广西
46
+ "46",
47
+ // 海南
48
+ "50",
49
+ // 重庆
50
+ "51",
51
+ // 四川
52
+ "52",
53
+ // 贵州
54
+ "53",
55
+ // 云南
56
+ "54",
57
+ // 西藏
58
+ "61",
59
+ // 陕西
60
+ "62",
61
+ // 甘肃
62
+ "63",
63
+ // 青海
64
+ "64",
65
+ // 宁夏
66
+ "65",
67
+ // 新疆
68
+ "71",
69
+ // 台湾
70
+ "81",
71
+ // 香港
72
+ "82",
73
+ // 澳门
74
+ "91"
75
+ // 国外
76
+ ], o = [
77
+ "7",
78
+ "9",
79
+ "10",
80
+ "5",
81
+ "8",
82
+ "4",
83
+ "2",
84
+ "1",
85
+ "6",
86
+ "3",
87
+ "7",
88
+ "9",
89
+ "10",
90
+ "5",
91
+ "8",
92
+ "4",
93
+ "2"
94
+ ], s = ["1", "0", "X", "9", "8", "7", "6", "5", "4", "3", "2"], c = (e) => u.includes(e), n = (e) => {
95
+ const r = parseInt(e.substring(0, 4), 10), i = parseInt(e.substring(4, 6), 10), l = parseInt(e.substring(6), 10), a = new Date(r, i - 1, l);
96
+ return a > /* @__PURE__ */ new Date() ? !1 : a.getFullYear() === r && a.getMonth() === i - 1 && a.getDate() === l;
97
+ }, f = (e) => {
98
+ const r = e.substring(0, 17);
99
+ let i = 0;
100
+ for (let a = 0; a < 17; a++)
101
+ i += parseInt(r.charAt(a), 10) * parseInt(o[a], 10);
102
+ const l = i % 11;
103
+ return s[l];
104
+ }, d = (e) => f(e) === e.charAt(17).toUpperCase(), g = (e) => {
105
+ let r = /^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(
106
+ e
107
+ );
108
+ if (!r) return !1;
109
+ const i = e.substring(0, 2);
110
+ if (r = c(i), !r) return !1;
111
+ const l = `19${e.substring(6, 12)}`;
112
+ return r = n(l), !!r;
113
+ }, p = (e) => {
114
+ let r = /^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(
115
+ e
116
+ );
117
+ if (!r) return !1;
118
+ const i = e.substring(0, 2);
119
+ if (r = c(i), !r) return !1;
120
+ const l = e.substring(6, 14);
121
+ return r = n(l), r ? d(e) : !1;
122
+ };
123
+ return ((e) => /^\d{15}|(\d{17}(\d|x|X))$/.test(e) ? e.length === 15 ? g(e) : p(e) : !1)(t);
124
+ },
125
+ "zh-HK": (t) => {
126
+ t = t.trim();
127
+ const u = /^[A-Z]{1,2}[0-9]{6}((\([0-9A]\))|(\[[0-9A]\])|([0-9A]))$/, o = /^[0-9]$/;
128
+ if (t = t.toUpperCase(), !u.test(t)) return !1;
129
+ t = t.replace(/\[|\]|\(|\)/g, ""), t.length === 8 && (t = `3${t}`);
130
+ let s = 0;
131
+ for (let n = 0; n <= 7; n++) {
132
+ let f;
133
+ o.test(t[n]) ? f = t[n] : f = (t[n].charCodeAt(0) - 55) % 11, s += f * (9 - n);
134
+ }
135
+ s %= 11;
136
+ let c;
137
+ return s === 0 ? c = "0" : s === 1 ? c = "A" : c = String(11 - s), c === t[t.length - 1];
138
+ },
139
+ "zh-TW": (t) => {
140
+ const u = {
141
+ A: 10,
142
+ B: 11,
143
+ C: 12,
144
+ D: 13,
145
+ E: 14,
146
+ F: 15,
147
+ G: 16,
148
+ H: 17,
149
+ I: 34,
150
+ J: 18,
151
+ K: 19,
152
+ L: 20,
153
+ M: 21,
154
+ N: 22,
155
+ O: 35,
156
+ P: 23,
157
+ Q: 24,
158
+ R: 25,
159
+ S: 26,
160
+ T: 27,
161
+ U: 28,
162
+ V: 29,
163
+ W: 32,
164
+ X: 30,
165
+ Y: 31,
166
+ Z: 33
167
+ }, o = t.trim().toUpperCase();
168
+ return /^[A-Z][0-9]{9}$/.test(o) ? Array.from(o).reduce((s, c, n) => {
169
+ if (n === 0) {
170
+ const f = u[c];
171
+ return f % 10 * 9 + Math.floor(f / 10);
172
+ }
173
+ return n === 9 ? (10 - s % 10 - Number(c)) % 10 === 0 : s + Number(c) * (9 - n);
174
+ }, 0) : !1;
175
+ }
176
+ };
177
+ function I(t, u) {
178
+ if (A(t), u in h)
179
+ return h[u](t);
180
+ for (const o in h)
181
+ if (Object.prototype.hasOwnProperty.call(h, o)) {
182
+ const s = h[o];
183
+ if (s(t))
184
+ return !0;
185
+ }
186
+ return !1;
187
+ }
188
+ export {
189
+ I as default
190
+ };
@@ -0,0 +1,14 @@
1
+ /* 2025-12-17 18:26:57 */
2
+ import i from "./isBase64.js";
3
+ import o from "./util/assertString.js";
4
+ function f(t) {
5
+ o(t);
6
+ const e = t.split(".");
7
+ return e.length !== 3 ? !1 : e.reduce(
8
+ (r, n) => r && i(n, { urlSafe: !0 }),
9
+ !0
10
+ );
11
+ }
12
+ export {
13
+ f as default
14
+ };
@@ -0,0 +1,9 @@
1
+ /* 2025-12-17 18:26:57 */
2
+ import r from "./util/assertString.js";
3
+ const A = /^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/, t = /^([0-9a-fA-F]){12}$/, u = /^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/, d = /^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){6}([0-9a-fA-F]{2})$/, s = /^([0-9a-fA-F]){16}$/, c = /^([0-9a-fA-F]{4}\.){3}([0-9a-fA-F]{4})$/;
4
+ function f(e, a) {
5
+ return r(e), a?.eui && (a.eui = String(a.eui)), a?.no_colons || a?.no_separators ? a.eui === "48" ? t.test(e) : a.eui === "64" ? s.test(e) : t.test(e) || s.test(e) : a?.eui === "48" ? A.test(e) || u.test(e) : a?.eui === "64" ? d.test(e) || c.test(e) : f(e, { eui: "48" }) || f(e, { eui: "64" });
6
+ }
7
+ export {
8
+ f as default
9
+ };
@@ -0,0 +1,9 @@
1
+ /* 2025-12-17 18:26:57 */
2
+ import r from "./util/assertString.js";
3
+ const e = /^[a-f0-9]{32}$/;
4
+ function o(t) {
5
+ return r(t), e.test(t);
6
+ }
7
+ export {
8
+ o as default
9
+ };
@@ -0,0 +1,9 @@
1
+ /* 2025-12-17 18:26:57 */
2
+ import e from "./util/assertString.js";
3
+ const a = /^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9.\-+_]{1,100}$/i, i = /^text\/[a-zA-Z0-9.\-+]{1,100};\s?charset=("[a-zA-Z0-9.\-+\s]{0,70}"|[a-zA-Z0-9.\-+]{0,70})(\s?\([a-zA-Z0-9.\-+\s]{1,20}\))?$/i, s = /^multipart\/[a-zA-Z0-9.\-+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9.\-+\s]{0,70}"|[a-zA-Z0-9.\-+]{0,70})(\s?\([a-zA-Z0-9.\-+\s]{1,20}\))?){0,2}$/i;
4
+ function o(t) {
5
+ return e(t), a.test(t) || i.test(t) || s.test(t);
6
+ }
7
+ export {
8
+ o as default
9
+ };
@@ -0,0 +1,192 @@
1
+ /* 2025-12-17 18:26:57 */
2
+ import t from "./util/assertString.js";
3
+ const d = {
4
+ "am-AM": /^(\+?374|0)(33|4[134]|55|77|88|9[13-689])\d{6}$/,
5
+ "ar-AE": /^((\+?971)|0)?5[024568]\d{7}$/,
6
+ "ar-BH": /^(\+?973)?(3|6)\d{7}$/,
7
+ "ar-DZ": /^(\+?213|0)(5|6|7)\d{8}$/,
8
+ "ar-LB": /^(\+?961)?((3|81)\d{6}|7\d{7})$/,
9
+ "ar-EG": /^((\+?20)|0)?1[0125]\d{8}$/,
10
+ "ar-IQ": /^(\+?964|0)?7[0-9]\d{8}$/,
11
+ "ar-JO": /^(\+?962|0)?7[789]\d{7}$/,
12
+ "ar-KW": /^(\+?965)([569]\d{7}|41\d{6})$/,
13
+ "ar-LY": /^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,
14
+ "ar-MA": /^(?:(?:\+|00)212|0)[5-7]\d{8}$/,
15
+ "ar-OM": /^((\+|00)968)?([79][1-9])\d{6}$/,
16
+ "ar-PS": /^(\+?970|0)5[6|9](\d{7})$/,
17
+ "ar-SA": /^(!?(\+?966)|0)?5\d{8}$/,
18
+ "ar-SD": /^((\+?249)|0)?(9[012369]|1[012])\d{7}$/,
19
+ "ar-SY": /^(!?(\+?963)|0)?9\d{8}$/,
20
+ "ar-TN": /^(\+?216)?[2459]\d{7}$/,
21
+ "az-AZ": /^(\+994|0)(10|5[015]|7[07]|99)\d{7}$/,
22
+ "ar-QA": /^(\+?974|0)?([3567]\d{7})$/,
23
+ "bs-BA": /^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,
24
+ "be-BY": /^(\+?375)?(24|25|29|33|44)\d{7}$/,
25
+ "bg-BG": /^(\+?359|0)?8[789]\d{7}$/,
26
+ "bn-BD": /^(\+?880|0)1[13456789][0-9]{8}$/,
27
+ "ca-AD": /^(\+376)?[346]\d{5}$/,
28
+ "cs-CZ": /^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,
29
+ "da-DK": /^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,
30
+ "de-DE": /^((\+49|0)1)(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,
31
+ "de-AT": /^(\+43|0)\d{1,4}\d{3,12}$/,
32
+ "de-CH": /^(\+41|0)([1-9])\d{1,9}$/,
33
+ "de-LU": /^(\+352)?((6\d1)\d{6})$/,
34
+ "dv-MV": /^(\+?960)?(7[2-9]|9[1-9])\d{5}$/,
35
+ "el-GR": /^(\+?30|0)?6(8[5-9]|9(?![26])[0-9])\d{7}$/,
36
+ "el-CY": /^(\+?357?)?(9(9|7|6|5|4)\d{6})$/,
37
+ "en-AI": /^(\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\d{4}$/,
38
+ "en-AU": /^(\+?61|0)4\d{8}$/,
39
+ "en-AG": /^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/,
40
+ "en-BM": /^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}$))/,
41
+ "en-BS": /^(\+?1[-\s]?|0)?\(?242\)?[-\s]?\d{3}[-\s]?\d{4}$/,
42
+ "en-GB": /^(\+?44|0)7[1-9]\d{8}$/,
43
+ "en-GG": /^(\+?44|0)1481\d{6}$/,
44
+ "en-GH": /^(\+233|0)(20|50|24|54|27|57|26|56|23|53|28|55|59)\d{7}$/,
45
+ "en-GY": /^(\+592|0)6\d{6}$/,
46
+ "en-HK": /^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,
47
+ "en-MO": /^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,
48
+ "en-IE": /^(\+?353|0)8[356789]\d{7}$/,
49
+ "en-IN": /^(\+?91|0)?[6789]\d{9}$/,
50
+ "en-JM": /^(\+?876)?\d{7}$/,
51
+ "en-KE": /^(\+?254|0)(7|1)\d{8}$/,
52
+ "fr-CF": /^(\+?236| ?)(70|75|77|72|21|22)\d{6}$/,
53
+ "en-SS": /^(\+?211|0)(9[1257])\d{7}$/,
54
+ "en-KI": /^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,
55
+ "en-KN": /^(?:\+1|1)869(?:46\d|48[89]|55[6-8]|66\d|76[02-7])\d{4}$/,
56
+ "en-LS": /^(\+?266)(22|28|57|58|59|27|52)\d{6}$/,
57
+ "en-MT": /^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,
58
+ "en-MU": /^(\+?230|0)?\d{8}$/,
59
+ "en-MW": /^(\+?265|0)(((77|88|31|99|98|21)\d{7})|(((111)|1)\d{6})|(32000\d{4}))$/,
60
+ "en-NA": /^(\+?264|0)(6|8)\d{7}$/,
61
+ "en-NG": /^(\+?234|0)?[789]\d{9}$/,
62
+ "en-NZ": /^(\+?64|0)[28]\d{7,9}$/,
63
+ "en-PG": /^(\+?675|0)?(7\d|8[18])\d{6}$/,
64
+ "en-PK": /^((00|\+)?92|0)3[0-6]\d{8}$/,
65
+ "en-PH": /^(09|\+639)\d{9}$/,
66
+ "en-RW": /^(\+?250|0)?[7]\d{8}$/,
67
+ "en-SG": /^(\+65)?[3689]\d{7}$/,
68
+ "en-SL": /^(\+?232|0)\d{8}$/,
69
+ "en-TZ": /^(\+?255|0)?[67]\d{8}$/,
70
+ "en-UG": /^(\+?256|0)?[7]\d{8}$/,
71
+ "en-US": /^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,
72
+ "en-ZA": /^(\+?27|0)\d{9}$/,
73
+ "en-ZM": /^(\+?26)?0[79][567]\d{7}$/,
74
+ "en-ZW": /^(\+263)[0-9]{9}$/,
75
+ "en-BW": /^(\+?267)?(7[1-8]{1})\d{6}$/,
76
+ "es-AR": /^\+?549(11|[2368]\d)\d{8}$/,
77
+ "es-BO": /^(\+?591)?(6|7)\d{7}$/,
78
+ "es-CO": /^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,
79
+ "es-CL": /^(\+?56|0)[2-9]\d{1}\d{7}$/,
80
+ "es-CR": /^(\+506)?[2-8]\d{7}$/,
81
+ "es-CU": /^(\+53|0053)?5\d{7}$/,
82
+ "es-DO": /^(\+?1)?8[024]9\d{7}$/,
83
+ "es-HN": /^(\+?504)?[9|8|3|2]\d{7}$/,
84
+ "es-EC": /^(\+?593|0)([2-7]|9[2-9])\d{7}$/,
85
+ "es-ES": /^(\+?34)?[6|7]\d{8}$/,
86
+ "es-GT": /^(\+?502)?[2|6|7]\d{7}$/,
87
+ "es-PE": /^(\+?51)?9\d{8}$/,
88
+ "es-MX": /^(\+?52)?(1|01)?\d{10,11}$/,
89
+ "es-NI": /^(\+?505)\d{7,8}$/,
90
+ "es-PA": /^(\+?507)\d{7,8}$/,
91
+ "es-PY": /^(\+?595|0)9[9876]\d{7}$/,
92
+ "es-SV": /^(\+?503)?[67]\d{7}$/,
93
+ "es-UY": /^(\+598|0)9[1-9][\d]{6}$/,
94
+ "es-VE": /^(\+?58)?(2|4)\d{9}$/,
95
+ "et-EE": /^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,
96
+ "fa-IR": /^(\+?98[-\s]?|0)9[0-39]\d[-\s]?\d{3}[-\s]?\d{4}$/,
97
+ "fi-FI": /^(\+?358|0)\s?(4[0-6]|50)\s?(\d\s?){4,8}$/,
98
+ "fj-FJ": /^(\+?679)?\s?\d{3}\s?\d{4}$/,
99
+ "fo-FO": /^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,
100
+ "fr-BF": /^(\+226|0)[67]\d{7}$/,
101
+ "fr-BJ": /^(\+229)\d{8}$/,
102
+ "fr-CD": /^(\+?243|0)?(8|9)\d{8}$/,
103
+ "fr-CM": /^(\+?237)6[0-9]{8}$/,
104
+ "fr-FR": /^(\+?33|0)[67]\d{8}$/,
105
+ "fr-GF": /^(\+?594|0|00594)[67]\d{8}$/,
106
+ "fr-GP": /^(\+?590|0|00590)[67]\d{8}$/,
107
+ "fr-MQ": /^(\+?596|0|00596)[67]\d{8}$/,
108
+ "fr-PF": /^(\+?689)?8[789]\d{6}$/,
109
+ "fr-RE": /^(\+?262|0|00262)[67]\d{8}$/,
110
+ "fr-WF": /^(\+681)?\d{6}$/,
111
+ "he-IL": /^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,
112
+ "hu-HU": /^(\+?36|06)(20|30|31|50|70)\d{7}$/,
113
+ "id-ID": /^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,
114
+ "ir-IR": /^(\+98|0)?9\d{9}$/,
115
+ "it-IT": /^(\+?39)?\s?3\d{2} ?\d{6,7}$/,
116
+ "it-SM": /^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,
117
+ "ja-JP": /^(\+81[ -]?(\(0\))?|0)[6789]0[ -]?\d{4}[ -]?\d{4}$/,
118
+ "ka-GE": /^(\+?995)?(79\d{7}|5\d{8})$/,
119
+ "kk-KZ": /^(\+?7|8)?7\d{9}$/,
120
+ "kl-GL": /^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,
121
+ "ko-KR": /^((\+?82)[ -]?)?0?1([0|1|6|7|8|9]{1})[ -]?\d{3,4}[ -]?\d{4}$/,
122
+ "ky-KG": /^(\+996\s?)?(22[0-9]|50[0-9]|55[0-9]|70[0-9]|75[0-9]|77[0-9]|880|990|995|996|997|998)\s?\d{3}\s?\d{3}$/,
123
+ "lt-LT": /^(\+370|8)\d{8}$/,
124
+ "lv-LV": /^(\+?371)2\d{7}$/,
125
+ "mg-MG": /^((\+?261|0)(2|3)\d)?\d{7}$/,
126
+ "mn-MN": /^(\+|00|011)?976(77|81|88|91|94|95|96|99)\d{6}$/,
127
+ "my-MM": /^(\+?959|09|9)(2[5-7]|3[1-2]|4[0-5]|6[6-9]|7[5-9]|9[6-9])[0-9]{7}$/,
128
+ "ms-MY": /^(\+?60|0)1(([0145](-|\s)?\d{7,8})|([236-9](-|\s)?\d{7}))$/,
129
+ "mz-MZ": /^(\+?258)?8[234567]\d{7}$/,
130
+ "nb-NO": /^(\+?47)?[49]\d{7}$/,
131
+ "ne-NP": /^(\+?977)?9[78]\d{8}$/,
132
+ "nl-BE": /^(\+?32|0)4\d{8}$/,
133
+ "nl-NL": /^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,
134
+ "nl-AW": /^(\+)?297(56|59|64|73|74|99)\d{5}$/,
135
+ "nn-NO": /^(\+?47)?[49]\d{7}$/,
136
+ "pl-PL": /^(\+?48)? ?([5-8]\d|45) ?\d{3} ?\d{2} ?\d{2}$/,
137
+ "pt-BR": /^((\+?55 ?[1-9]{2} ?)|(\+?55 ?\([1-9]{2}\) ?)|(0[1-9]{2} ?)|(\([1-9]{2}\) ?)|([1-9]{2} ?))((\d{4}-?\d{4})|(9[1-9]{1}\d{3}-?\d{4}))$/,
138
+ "pt-PT": /^(\+?351)?9[1236]\d{7}$/,
139
+ "pt-AO": /^(\+?244)?9\d{8}$/,
140
+ "ro-MD": /^(\+?373|0)((6(0|1|2|6|7|8|9))|(7(6|7|8|9)))\d{6}$/,
141
+ "ro-RO": /^(\+?40|0)\s?7\d{2}(\/|\s|\.|-)?\d{3}(\s|\.|-)?\d{3}$/,
142
+ "ru-RU": /^(\+?7|8)?9\d{9}$/,
143
+ "si-LK": /^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,
144
+ "sl-SI": /^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,
145
+ "sk-SK": /^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,
146
+ "so-SO": /^(\+?252|0)((6[0-9])\d{7}|(7[1-9])\d{7})$/,
147
+ "sq-AL": /^(\+355|0)6[2-9]\d{7}$/,
148
+ "sr-RS": /^(\+3816|06)[- \d]{5,9}$/,
149
+ "sv-SE": /^(\+?46|0)[\s-]?7[\s-]?[02369]([\s-]?\d){7}$/,
150
+ "tg-TJ": /^(\+?992)?[5][5]\d{7}$/,
151
+ "th-TH": /^(\+66|66|0)\d{9}$/,
152
+ "tr-TR": /^(\+?90|0)?5\d{9}$/,
153
+ "tk-TM": /^(\+993|993|8)\d{8}$/,
154
+ "uk-UA": /^(\+?38)?0(50|6[36-8]|7[357]|9[1-9])\d{7}$/,
155
+ "uz-UZ": /^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,
156
+ "vi-VN": /^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,
157
+ "zh-CN": /^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,
158
+ "zh-TW": /^(\+?886-?|0)?9\d{8}$/,
159
+ "dz-BT": /^(\+?975|0)?(17|16|77|02)\d{6}$/,
160
+ "ar-YE": /^(((\+|00)9677|0?7)[0137]\d{7}|((\+|00)967|0)[1-7]\d{6})$/,
161
+ "ar-EH": /^(\+?212|0)[\s-]?(5288|5289)[\s-]?\d{5}$/,
162
+ "fa-AF": /^(\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\d{7})$/,
163
+ "mk-MK": /^(\+?389|0)?((?:2[2-9]\d{6}|(?:3[1-4]|4[2-8])\d{6}|500\d{5}|5[2-9]\d{6}|7[0-9][2-9]\d{5}|8[1-9]\d{6}|800\d{5}|8009\d{4}))$/
164
+ };
165
+ d["en-CA"] = d["en-US"];
166
+ d["fr-CA"] = d["en-CA"];
167
+ d["fr-BE"] = d["nl-BE"];
168
+ d["zh-HK"] = d["en-HK"];
169
+ d["zh-MO"] = d["en-MO"];
170
+ d["ga-IE"] = d["en-IE"];
171
+ d["fr-CH"] = d["de-CH"];
172
+ d["it-CH"] = d["fr-CH"];
173
+ function f(e, $, n) {
174
+ if (t(e), n && n.strictMode && !e.startsWith("+"))
175
+ return !1;
176
+ if (Array.isArray($))
177
+ return $.some((s) => !!(Object.prototype.hasOwnProperty.call(d, s) && d[s].test(e)));
178
+ if ($ in d)
179
+ return d[$].test(e);
180
+ if (!$ || $ === "any") {
181
+ for (const s in d)
182
+ if (Object.prototype.hasOwnProperty.call(d, s) && d[s].test(e))
183
+ return !0;
184
+ return !1;
185
+ }
186
+ throw new Error(`Invalid locale '${$}'`);
187
+ }
188
+ const M = Object.keys(d);
189
+ export {
190
+ f as default,
191
+ M as locales
192
+ };
@@ -0,0 +1,7 @@
1
+ /* 2025-12-17 18:26:57 */
2
+ function n(e) {
3
+ return Number.isInteger(e) && e >= 0 && e <= 65535;
4
+ }
5
+ export {
6
+ n as default
7
+ };
@@ -0,0 +1,18 @@
1
+ /* 2025-12-17 18:26:57 */
2
+ import s from "lodash/isObject";
3
+ import a from "lodash/isUndefined";
4
+ import o from "./util/assertString.js";
5
+ const n = /^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/, c = /^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d\d?|1(\.0)?|0(\.0)?)\)$/, g = /^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)$/, i = /^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d\d?|1(\.0)?|0(\.0)?)\)$/, u = /^rgba?/;
6
+ function m(e, t) {
7
+ o(e);
8
+ let l = !1, r = !0;
9
+ if (s(t) ? (l = a(t.allowSpaces) ? l : t.allowSpaces, r = a(t.includePercentValues) ? r : t.includePercentValues) : arguments.length >= 2 && (r = arguments[1]), l) {
10
+ if (!u.test(e))
11
+ return !1;
12
+ e = e.replace(/\s/g, "");
13
+ }
14
+ return r ? n.test(e) || c.test(e) || g.test(e) || i.test(e) : n.test(e) || c.test(e);
15
+ }
16
+ export {
17
+ m as default
18
+ };
@@ -0,0 +1,20 @@
1
+ /* 2025-12-17 18:26:57 */
2
+ import i from "./util/assertString.js";
3
+ const r = a(
4
+ [
5
+ "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)",
6
+ "(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))",
7
+ "?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$"
8
+ ],
9
+ "i"
10
+ );
11
+ function a(e, n) {
12
+ const t = e.join("");
13
+ return new RegExp(t, n);
14
+ }
15
+ function s(e) {
16
+ return i(e), r.test(e);
17
+ }
18
+ export {
19
+ s as default
20
+ };
@@ -0,0 +1,9 @@
1
+ /* 2025-12-17 18:26:57 */
2
+ import s from "./util/assertString.js";
3
+ const e = /^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;
4
+ function a(t) {
5
+ return s(t), e.test(t);
6
+ }
7
+ export {
8
+ a as default
9
+ };
@@ -0,0 +1,48 @@
1
+ /* 2025-12-17 18:26:57 */
2
+ import r from "lodash/defaults";
3
+ import u from "./util/assertString.js";
4
+ const s = /^[A-Z]$/, i = /^[a-z]$/, m = /^[0-9]$/, l = /^[-#!$@£%^&*()_+|~=`{}[\]:";'<>?,./\\ ]$/, C = {
5
+ minLength: 8,
6
+ minLowercase: 1,
7
+ minUppercase: 1,
8
+ minNumbers: 1,
9
+ minSymbols: 1,
10
+ returnScore: !1,
11
+ pointsPerUnique: 1,
12
+ pointsPerRepeat: 0.5,
13
+ pointsForContainingLower: 10,
14
+ pointsForContainingUpper: 10,
15
+ pointsForContainingNumber: 10,
16
+ pointsForContainingSymbol: 10
17
+ };
18
+ function a(t) {
19
+ const e = {};
20
+ return Array.from(t).forEach((n) => {
21
+ e[n] ? e[n] += 1 : e[n] = 1;
22
+ }), e;
23
+ }
24
+ function p(t) {
25
+ const e = a(t), n = {
26
+ length: t.length,
27
+ uniqueChars: Object.keys(e).length,
28
+ uppercaseCount: 0,
29
+ lowercaseCount: 0,
30
+ numberCount: 0,
31
+ symbolCount: 0
32
+ };
33
+ return Object.keys(e).forEach((o) => {
34
+ s.test(o) ? n.uppercaseCount += e[o] : i.test(o) ? n.lowercaseCount += e[o] : m.test(o) ? n.numberCount += e[o] : l.test(o) && (n.symbolCount += e[o]);
35
+ }), n;
36
+ }
37
+ function c(t, e) {
38
+ let n = 0;
39
+ return n += t.uniqueChars * e.pointsPerUnique, n += (t.length - t.uniqueChars) * e.pointsPerRepeat, t.lowercaseCount > 0 && (n += e.pointsForContainingLower), t.uppercaseCount > 0 && (n += e.pointsForContainingUpper), t.numberCount > 0 && (n += e.pointsForContainingNumber), t.symbolCount > 0 && (n += e.pointsForContainingSymbol), n;
40
+ }
41
+ function g(t, e = null) {
42
+ u(t);
43
+ const n = p(t);
44
+ return e = r(e || {}, C), e.returnScore ? c(n, e) : n.length >= e.minLength && n.lowercaseCount >= e.minLowercase && n.uppercaseCount >= e.minUppercase && n.numberCount >= e.minNumbers && n.symbolCount >= e.minSymbols;
45
+ }
46
+ export {
47
+ g as default
48
+ };