@rpcbase/ui 0.164.0 → 0.165.0

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 (693) hide show
  1. package/dist/index10.js +1 -1
  2. package/dist/index100.js +4 -24
  3. package/dist/index100.js.map +1 -1
  4. package/dist/index101.js +4 -6
  5. package/dist/index101.js.map +1 -1
  6. package/dist/index102.js +6 -4
  7. package/dist/index102.js.map +1 -1
  8. package/dist/index103.js +145 -6
  9. package/dist/index103.js.map +1 -1
  10. package/dist/index104.js +39 -5
  11. package/dist/index104.js.map +1 -1
  12. package/dist/index105.js +4 -4
  13. package/dist/index105.js.map +1 -1
  14. package/dist/index106.js +7 -5
  15. package/dist/index106.js.map +1 -1
  16. package/dist/index107.js +13 -4
  17. package/dist/index107.js.map +1 -1
  18. package/dist/index108.js +13 -8
  19. package/dist/index108.js.map +1 -1
  20. package/dist/index109.js +7 -5
  21. package/dist/index109.js.map +1 -1
  22. package/dist/index11.js +6 -15
  23. package/dist/index11.js.map +1 -1
  24. package/dist/index110.js +31 -4
  25. package/dist/index110.js.map +1 -1
  26. package/dist/index111.js +10 -4
  27. package/dist/index111.js.map +1 -1
  28. package/dist/index112.js +10 -6
  29. package/dist/index112.js.map +1 -1
  30. package/dist/index113.js +7 -144
  31. package/dist/index113.js.map +1 -1
  32. package/dist/index114.js +11 -37
  33. package/dist/index114.js.map +1 -1
  34. package/dist/index115.js +101 -4
  35. package/dist/index115.js.map +1 -1
  36. package/dist/index116.js +20 -8
  37. package/dist/index116.js.map +1 -1
  38. package/dist/index117.js +53 -13
  39. package/dist/index117.js.map +1 -1
  40. package/dist/index118.js +72 -13
  41. package/dist/index118.js.map +1 -1
  42. package/dist/index119.js +9 -7
  43. package/dist/index119.js.map +1 -1
  44. package/dist/index12.js +1 -1
  45. package/dist/index120.js +18 -29
  46. package/dist/index120.js.map +1 -1
  47. package/dist/index121.js +16 -10
  48. package/dist/index121.js.map +1 -1
  49. package/dist/index122.js +23 -10
  50. package/dist/index122.js.map +1 -1
  51. package/dist/index123.js +6 -8
  52. package/dist/index123.js.map +1 -1
  53. package/dist/index124.js +5 -13
  54. package/dist/index124.js.map +1 -1
  55. package/dist/index125.js +23 -101
  56. package/dist/index125.js.map +1 -1
  57. package/dist/index126.js +35 -20
  58. package/dist/index126.js.map +1 -1
  59. package/dist/index127.js +16 -54
  60. package/dist/index127.js.map +1 -1
  61. package/dist/index128.js +6 -72
  62. package/dist/index128.js.map +1 -1
  63. package/dist/index129.js +4 -9
  64. package/dist/index129.js.map +1 -1
  65. package/dist/index13.js +2 -2
  66. package/dist/index130.js +4 -20
  67. package/dist/index130.js.map +1 -1
  68. package/dist/index131.js +4 -16
  69. package/dist/index131.js.map +1 -1
  70. package/dist/index132.js +4 -23
  71. package/dist/index132.js.map +1 -1
  72. package/dist/index133.js +3 -6
  73. package/dist/index133.js.map +1 -1
  74. package/dist/index134.js +6 -5
  75. package/dist/index134.js.map +1 -1
  76. package/dist/index135.js +24 -24
  77. package/dist/index135.js.map +1 -1
  78. package/dist/index136.js +8 -35
  79. package/dist/index136.js.map +1 -1
  80. package/dist/index137.js +7 -16
  81. package/dist/index137.js.map +1 -1
  82. package/dist/index138.js +5 -6
  83. package/dist/index138.js.map +1 -1
  84. package/dist/index139.js +3 -4
  85. package/dist/index139.js.map +1 -1
  86. package/dist/index14.js +4 -4
  87. package/dist/index140.js +3 -4
  88. package/dist/index140.js.map +1 -1
  89. package/dist/index141.js +4 -4
  90. package/dist/index141.js.map +1 -1
  91. package/dist/index142.js +3 -4
  92. package/dist/index142.js.map +1 -1
  93. package/dist/index143.js +4 -3
  94. package/dist/index143.js.map +1 -1
  95. package/dist/index144.js +3 -6
  96. package/dist/index144.js.map +1 -1
  97. package/dist/index145.js +4 -24
  98. package/dist/index145.js.map +1 -1
  99. package/dist/index146.js +3 -7
  100. package/dist/index146.js.map +1 -1
  101. package/dist/index147.js +46 -6
  102. package/dist/index147.js.map +1 -1
  103. package/dist/index148.js +46 -5
  104. package/dist/index148.js.map +1 -1
  105. package/dist/index149.js +205 -3
  106. package/dist/index149.js.map +1 -1
  107. package/dist/index15.js +1 -1
  108. package/dist/index150.js +22 -4
  109. package/dist/index150.js.map +1 -1
  110. package/dist/index151.js +24 -4
  111. package/dist/index151.js.map +1 -1
  112. package/dist/index152.js +399 -3
  113. package/dist/index152.js.map +1 -1
  114. package/dist/index153.js +5 -4
  115. package/dist/index153.js.map +1 -1
  116. package/dist/index154.js +68 -3
  117. package/dist/index154.js.map +1 -1
  118. package/dist/index155.js +2 -4
  119. package/dist/index155.js.map +1 -1
  120. package/dist/index156.js +363 -3
  121. package/dist/index156.js.map +1 -1
  122. package/dist/index157.js +261 -3
  123. package/dist/index157.js.map +1 -1
  124. package/dist/index158.js +56 -29
  125. package/dist/index158.js.map +1 -1
  126. package/dist/index159.js +43 -246
  127. package/dist/index159.js.map +1 -1
  128. package/dist/index16.js +1 -1
  129. package/dist/index160.js +160 -105
  130. package/dist/index160.js.map +1 -1
  131. package/dist/index161.js +105 -215
  132. package/dist/index161.js.map +1 -1
  133. package/dist/index162.js +24 -66
  134. package/dist/index162.js.map +1 -1
  135. package/dist/index163.js +8 -21
  136. package/dist/index163.js.map +1 -1
  137. package/dist/index164.js +4 -209
  138. package/dist/index164.js.map +1 -1
  139. package/dist/index165.js +5 -319
  140. package/dist/index165.js.map +1 -1
  141. package/dist/index166.js +4 -130
  142. package/dist/index166.js.map +1 -1
  143. package/dist/index167.js +464 -18
  144. package/dist/index167.js.map +1 -1
  145. package/dist/index168.js +179 -69
  146. package/dist/index168.js.map +1 -1
  147. package/dist/index169.js +105 -16
  148. package/dist/index169.js.map +1 -1
  149. package/dist/index17.js +1 -1
  150. package/dist/index170.js +253 -92
  151. package/dist/index170.js.map +1 -1
  152. package/dist/index171.js +10 -5
  153. package/dist/index171.js.map +1 -1
  154. package/dist/index172.js +42 -14
  155. package/dist/index172.js.map +1 -1
  156. package/dist/index173.js +5 -2
  157. package/dist/index173.js.map +1 -1
  158. package/dist/index174.js +67 -7
  159. package/dist/index174.js.map +1 -1
  160. package/dist/index175.js +177 -323
  161. package/dist/index175.js.map +1 -1
  162. package/dist/index176.js +44 -47
  163. package/dist/index176.js.map +1 -1
  164. package/dist/index177.js +58 -46
  165. package/dist/index177.js.map +1 -1
  166. package/dist/index178.js +8 -46
  167. package/dist/index178.js.map +1 -1
  168. package/dist/index179.js +62 -201
  169. package/dist/index179.js.map +1 -1
  170. package/dist/index18.js +3 -12
  171. package/dist/index18.js.map +1 -1
  172. package/dist/index180.js +20 -22
  173. package/dist/index180.js.map +1 -1
  174. package/dist/index181.js +16 -24
  175. package/dist/index181.js.map +1 -1
  176. package/dist/index182.js +4 -398
  177. package/dist/index182.js.map +1 -1
  178. package/dist/index183.js +5 -3
  179. package/dist/index183.js.map +1 -1
  180. package/dist/index184.js +6 -5
  181. package/dist/index184.js.map +1 -1
  182. package/dist/index185.js +4 -68
  183. package/dist/index185.js.map +1 -1
  184. package/dist/index186.js +8 -2
  185. package/dist/index186.js.map +1 -1
  186. package/dist/index187.js +17 -363
  187. package/dist/index187.js.map +1 -1
  188. package/dist/index188.js +5 -261
  189. package/dist/index188.js.map +1 -1
  190. package/dist/index189.js +5 -60
  191. package/dist/index189.js.map +1 -1
  192. package/dist/index19.js +7 -7
  193. package/dist/index190.js +13 -46
  194. package/dist/index190.js.map +1 -1
  195. package/dist/index191.js +10 -169
  196. package/dist/index191.js.map +1 -1
  197. package/dist/index192.js +14 -109
  198. package/dist/index192.js.map +1 -1
  199. package/dist/index193.js +14 -24
  200. package/dist/index193.js.map +1 -1
  201. package/dist/index194.js +6 -8
  202. package/dist/index194.js.map +1 -1
  203. package/dist/index195.js +6 -4
  204. package/dist/index195.js.map +1 -1
  205. package/dist/index196.js +7 -5
  206. package/dist/index196.js.map +1 -1
  207. package/dist/index197.js +6 -4
  208. package/dist/index197.js.map +1 -1
  209. package/dist/index198.js +9 -466
  210. package/dist/index198.js.map +1 -1
  211. package/dist/index199.js +5 -185
  212. package/dist/index199.js.map +1 -1
  213. package/dist/index20.js +2 -2
  214. package/dist/index200.js +5 -107
  215. package/dist/index200.js.map +1 -1
  216. package/dist/index201.js +9 -262
  217. package/dist/index201.js.map +1 -1
  218. package/dist/index202.js +5 -9
  219. package/dist/index202.js.map +1 -1
  220. package/dist/index203.js +5 -42
  221. package/dist/index203.js.map +1 -1
  222. package/dist/index204.js +4 -4
  223. package/dist/index204.js.map +1 -1
  224. package/dist/index205.js +12 -2
  225. package/dist/index205.js.map +1 -1
  226. package/dist/index206.js +10 -67
  227. package/dist/index206.js.map +1 -1
  228. package/dist/index207.js +10 -84
  229. package/dist/index207.js.map +1 -1
  230. package/dist/index208.js +11 -46
  231. package/dist/index208.js.map +1 -1
  232. package/dist/index209.js +11 -7
  233. package/dist/index209.js.map +1 -1
  234. package/dist/index21.js +1 -1
  235. package/dist/index210.js +10 -4
  236. package/dist/index210.js.map +1 -1
  237. package/dist/index211.js +7 -51
  238. package/dist/index211.js.map +1 -1
  239. package/dist/index212.js +6 -67
  240. package/dist/index212.js.map +1 -1
  241. package/dist/index213.js +5 -180
  242. package/dist/index213.js.map +1 -1
  243. package/dist/index214.js +6 -46
  244. package/dist/index214.js.map +1 -1
  245. package/dist/index215.js +7 -58
  246. package/dist/index215.js.map +1 -1
  247. package/dist/index216.js +6 -8
  248. package/dist/index216.js.map +1 -1
  249. package/dist/index217.js +54 -65
  250. package/dist/index217.js.map +1 -1
  251. package/dist/index218.js +23 -19
  252. package/dist/index218.js.map +1 -1
  253. package/dist/index219.js +14 -14
  254. package/dist/index219.js.map +1 -1
  255. package/dist/index22.js +1 -1
  256. package/dist/index220.js +7 -5
  257. package/dist/index220.js.map +1 -1
  258. package/dist/index221.js +9 -4
  259. package/dist/index221.js.map +1 -1
  260. package/dist/index222.js +10 -6
  261. package/dist/index222.js.map +1 -1
  262. package/dist/index223.js +21 -4
  263. package/dist/index223.js.map +1 -1
  264. package/dist/index224.js +10 -7
  265. package/dist/index224.js.map +1 -1
  266. package/dist/index225.js +9 -17
  267. package/dist/index225.js.map +1 -1
  268. package/dist/index226.js +9 -5
  269. package/dist/index226.js.map +1 -1
  270. package/dist/index227.js +4 -5
  271. package/dist/index227.js.map +1 -1
  272. package/dist/index228.js +5 -13
  273. package/dist/index228.js.map +1 -1
  274. package/dist/index229.js +16 -10
  275. package/dist/index229.js.map +1 -1
  276. package/dist/index23.js +2 -2
  277. package/dist/index230.js +9 -14
  278. package/dist/index230.js.map +1 -1
  279. package/dist/index231.js +18 -14
  280. package/dist/index231.js.map +1 -1
  281. package/dist/index232.js +15 -5
  282. package/dist/index232.js.map +1 -1
  283. package/dist/index233.js +12 -6
  284. package/dist/index233.js.map +1 -1
  285. package/dist/index234.js +29 -7
  286. package/dist/index234.js.map +1 -1
  287. package/dist/index235.js +12 -6
  288. package/dist/index235.js.map +1 -1
  289. package/dist/index236.js +25 -9
  290. package/dist/index236.js.map +1 -1
  291. package/dist/index237.js +5 -5
  292. package/dist/index237.js.map +1 -1
  293. package/dist/index238.js +24 -5
  294. package/dist/index238.js.map +1 -1
  295. package/dist/index239.js +29 -10
  296. package/dist/index239.js.map +1 -1
  297. package/dist/index24.js +1 -1
  298. package/dist/index240.js +5 -6
  299. package/dist/index240.js.map +1 -1
  300. package/dist/index241.js +13 -5
  301. package/dist/index241.js.map +1 -1
  302. package/dist/index242.js +154 -4
  303. package/dist/index242.js.map +1 -1
  304. package/dist/index243.js +30 -11
  305. package/dist/index243.js.map +1 -1
  306. package/dist/index244.js +9 -10
  307. package/dist/index244.js.map +1 -1
  308. package/dist/index245.js +47 -10
  309. package/dist/index245.js.map +1 -1
  310. package/dist/index246.js +11 -11
  311. package/dist/index246.js.map +1 -1
  312. package/dist/index247.js +44 -11
  313. package/dist/index247.js.map +1 -1
  314. package/dist/index248.js +95 -10
  315. package/dist/index248.js.map +1 -1
  316. package/dist/index249.js +86 -7
  317. package/dist/index249.js.map +1 -1
  318. package/dist/index250.js +105 -6
  319. package/dist/index250.js.map +1 -1
  320. package/dist/index251.js +52 -5
  321. package/dist/index251.js.map +1 -1
  322. package/dist/index252.js +11 -6
  323. package/dist/index252.js.map +1 -1
  324. package/dist/index253.js +37 -7
  325. package/dist/index253.js.map +1 -1
  326. package/dist/index254.js +8 -6
  327. package/dist/index254.js.map +1 -1
  328. package/dist/index255.js +112 -51
  329. package/dist/index255.js.map +1 -1
  330. package/dist/index256.js +17 -23
  331. package/dist/index256.js.map +1 -1
  332. package/dist/index257.js +14 -15
  333. package/dist/index257.js.map +1 -1
  334. package/dist/index258.js +3 -7
  335. package/dist/index258.js.map +1 -1
  336. package/dist/index259.js +35 -9
  337. package/dist/index259.js.map +1 -1
  338. package/dist/index260.js +19 -9
  339. package/dist/index260.js.map +1 -1
  340. package/dist/index261.js +9 -21
  341. package/dist/index261.js.map +1 -1
  342. package/dist/index262.js +8 -10
  343. package/dist/index262.js.map +1 -1
  344. package/dist/index263.js +19 -9
  345. package/dist/index263.js.map +1 -1
  346. package/dist/index264.js +28 -9
  347. package/dist/index264.js.map +1 -1
  348. package/dist/index265.js +16 -4
  349. package/dist/index265.js.map +1 -1
  350. package/dist/index266.js +4 -5
  351. package/dist/index266.js.map +1 -1
  352. package/dist/index267.js +18 -16
  353. package/dist/index267.js.map +1 -1
  354. package/dist/index268.js +12 -9
  355. package/dist/index268.js.map +1 -1
  356. package/dist/index269.js +5 -19
  357. package/dist/index269.js.map +1 -1
  358. package/dist/index27.js +37 -3
  359. package/dist/index27.js.map +1 -1
  360. package/dist/index270.js +3 -16
  361. package/dist/index270.js.map +1 -1
  362. package/dist/index271.js +23 -12
  363. package/dist/index271.js.map +1 -1
  364. package/dist/index272.js +112 -29
  365. package/dist/index272.js.map +1 -1
  366. package/dist/index273.js +15 -12
  367. package/dist/index273.js.map +1 -1
  368. package/dist/index274.js +523 -24
  369. package/dist/index274.js.map +1 -1
  370. package/dist/index275.js +127 -5
  371. package/dist/index275.js.map +1 -1
  372. package/dist/index276.js +129 -60
  373. package/dist/index276.js.map +1 -1
  374. package/dist/index277.js +20 -48
  375. package/dist/index277.js.map +1 -1
  376. package/dist/index278.js +5 -39
  377. package/dist/index278.js.map +1 -1
  378. package/dist/index279.js +5 -100
  379. package/dist/index279.js.map +1 -1
  380. package/dist/index28.js +3 -125
  381. package/dist/index28.js.map +1 -1
  382. package/dist/index280.js +4 -98
  383. package/dist/index280.js.map +1 -1
  384. package/dist/index281.js +15 -99
  385. package/dist/index281.js.map +1 -1
  386. package/dist/index282.js +8 -24
  387. package/dist/index282.js.map +1 -1
  388. package/dist/index283.js +6 -29
  389. package/dist/index283.js.map +1 -1
  390. package/dist/index284.js +5 -5
  391. package/dist/index284.js.map +1 -1
  392. package/dist/index285.js +546 -2
  393. package/dist/index285.js.map +1 -1
  394. package/dist/index286.js +47 -2
  395. package/dist/index286.js.map +1 -1
  396. package/dist/index287.js +16 -12
  397. package/dist/index287.js.map +1 -1
  398. package/dist/index288.js +6 -154
  399. package/dist/index288.js.map +1 -1
  400. package/dist/index289.js +8 -30
  401. package/dist/index289.js.map +1 -1
  402. package/dist/index29.js +124 -47
  403. package/dist/index29.js.map +1 -1
  404. package/dist/index290.js +7 -9
  405. package/dist/index290.js.map +1 -1
  406. package/dist/index291.js +8 -47
  407. package/dist/index291.js.map +1 -1
  408. package/dist/index292.js +12 -11
  409. package/dist/index292.js.map +1 -1
  410. package/dist/index293.js +9 -44
  411. package/dist/index293.js.map +1 -1
  412. package/dist/index294.js +13 -95
  413. package/dist/index294.js.map +1 -1
  414. package/dist/index295.js +59 -81
  415. package/dist/index295.js.map +1 -1
  416. package/dist/index296.js +64 -101
  417. package/dist/index296.js.map +1 -1
  418. package/dist/index297.js +9 -53
  419. package/dist/index297.js.map +1 -1
  420. package/dist/index298.js +13 -11
  421. package/dist/index298.js.map +1 -1
  422. package/dist/index299.js +66 -38
  423. package/dist/index299.js.map +1 -1
  424. package/dist/index30.js +230 -218
  425. package/dist/index30.js.map +1 -1
  426. package/dist/index300.js +4 -8
  427. package/dist/index300.js.map +1 -1
  428. package/dist/index301.js +54 -115
  429. package/dist/index301.js.map +1 -1
  430. package/dist/index302.js +68 -18
  431. package/dist/index302.js.map +1 -1
  432. package/dist/index303.js +31 -16
  433. package/dist/index303.js.map +1 -1
  434. package/dist/index304.js +9 -4
  435. package/dist/index304.js.map +1 -1
  436. package/dist/index305.js +151 -35
  437. package/dist/index305.js.map +1 -1
  438. package/dist/index306.js +107 -20
  439. package/dist/index306.js.map +1 -1
  440. package/dist/index307.js +3 -9
  441. package/dist/index307.js.map +1 -1
  442. package/dist/index308.js +22 -8
  443. package/dist/index308.js.map +1 -1
  444. package/dist/index309.js +14 -18
  445. package/dist/index309.js.map +1 -1
  446. package/dist/index31.js +49 -42
  447. package/dist/index31.js.map +1 -1
  448. package/dist/index310.js +27 -27
  449. package/dist/index310.js.map +1 -1
  450. package/dist/index311.js +12 -16
  451. package/dist/index311.js.map +1 -1
  452. package/dist/index312.js +6 -4
  453. package/dist/index312.js.map +1 -1
  454. package/dist/index313.js +22 -18
  455. package/dist/index313.js.map +1 -1
  456. package/dist/index314.js +13 -13
  457. package/dist/index314.js.map +1 -1
  458. package/dist/index315.js +28 -5
  459. package/dist/index315.js.map +1 -1
  460. package/dist/index316.js +5 -3
  461. package/dist/index316.js.map +1 -1
  462. package/dist/index32.js +2638 -38
  463. package/dist/index32.js.map +1 -1
  464. package/dist/index33.js +390 -25
  465. package/dist/index33.js.map +1 -1
  466. package/dist/index34.js +230 -43
  467. package/dist/index34.js.map +1 -1
  468. package/dist/index35.js +20 -30
  469. package/dist/index35.js.map +1 -1
  470. package/dist/index36.js +137 -23
  471. package/dist/index36.js.map +1 -1
  472. package/dist/index37.js +187 -23
  473. package/dist/index37.js.map +1 -1
  474. package/dist/index38.js +75 -127
  475. package/dist/index38.js.map +1 -1
  476. package/dist/index39.js +87 -228
  477. package/dist/index39.js.map +1 -1
  478. package/dist/index40.js +6 -51
  479. package/dist/index40.js.map +1 -1
  480. package/dist/index41.js +804 -2601
  481. package/dist/index41.js.map +1 -1
  482. package/dist/index42.js +63 -391
  483. package/dist/index42.js.map +1 -1
  484. package/dist/index43.js +7 -232
  485. package/dist/index43.js.map +1 -1
  486. package/dist/index44.js +2 -22
  487. package/dist/index44.js.map +1 -1
  488. package/dist/index45.js +21 -139
  489. package/dist/index45.js.map +1 -1
  490. package/dist/index46.js +230 -183
  491. package/dist/index46.js.map +1 -1
  492. package/dist/index47.js +202 -74
  493. package/dist/index47.js.map +1 -1
  494. package/dist/index48.js +2 -91
  495. package/dist/index48.js.map +1 -1
  496. package/dist/index49.js +2 -6
  497. package/dist/index49.js.map +1 -1
  498. package/dist/index5.js +1 -1
  499. package/dist/index50.js +6 -843
  500. package/dist/index50.js.map +1 -1
  501. package/dist/index51.js +34 -66
  502. package/dist/index51.js.map +1 -1
  503. package/dist/index52.js +24 -34
  504. package/dist/index52.js.map +1 -1
  505. package/dist/index53.js +7 -7
  506. package/dist/index53.js.map +1 -1
  507. package/dist/index54.js +12 -2
  508. package/dist/index54.js.map +1 -1
  509. package/dist/index55.js +3 -23
  510. package/dist/index55.js.map +1 -1
  511. package/dist/index56.js +46 -232
  512. package/dist/index56.js.map +1 -1
  513. package/dist/index57.js +49 -203
  514. package/dist/index57.js.map +1 -1
  515. package/dist/index58.js +7 -6
  516. package/dist/index58.js.map +1 -1
  517. package/dist/index59.js +14 -33
  518. package/dist/index59.js.map +1 -1
  519. package/dist/index60.js +129 -22
  520. package/dist/index60.js.map +1 -1
  521. package/dist/index61.js +10 -7
  522. package/dist/index61.js.map +1 -1
  523. package/dist/index62.js +216 -11
  524. package/dist/index62.js.map +1 -1
  525. package/dist/index63.js +13 -4
  526. package/dist/index63.js.map +1 -1
  527. package/dist/index64.js +43 -44
  528. package/dist/index64.js.map +1 -1
  529. package/dist/index65.js +47 -48
  530. package/dist/index65.js.map +1 -1
  531. package/dist/index66.js +3 -7
  532. package/dist/index66.js.map +1 -1
  533. package/dist/index67.js +5 -14
  534. package/dist/index67.js.map +1 -1
  535. package/dist/index68.js +27 -133
  536. package/dist/index68.js.map +1 -1
  537. package/dist/index69.js +50 -11
  538. package/dist/index69.js.map +1 -1
  539. package/dist/index70.js +8 -216
  540. package/dist/index70.js.map +1 -1
  541. package/dist/index71.js +54 -13
  542. package/dist/index71.js.map +1 -1
  543. package/dist/index72.js +5 -46
  544. package/dist/index72.js.map +1 -1
  545. package/dist/index73.js +7 -49
  546. package/dist/index73.js.map +1 -1
  547. package/dist/index74.js +6 -4
  548. package/dist/index74.js.map +1 -1
  549. package/dist/index75.js +605 -5
  550. package/dist/index75.js.map +1 -1
  551. package/dist/index76.js +52 -28
  552. package/dist/index76.js.map +1 -1
  553. package/dist/index77.js +5 -50
  554. package/dist/index77.js.map +1 -1
  555. package/dist/index78.js +5 -9
  556. package/dist/index78.js.map +1 -1
  557. package/dist/index79.js +16 -2
  558. package/dist/index79.js.map +1 -1
  559. package/dist/index8.js +1 -1
  560. package/dist/index80.js +6 -2
  561. package/dist/index80.js.map +1 -1
  562. package/dist/index81.js +7 -53
  563. package/dist/index81.js.map +1 -1
  564. package/dist/index82.js +16 -5
  565. package/dist/index82.js.map +1 -1
  566. package/dist/index83.js +4 -7
  567. package/dist/index83.js.map +1 -1
  568. package/dist/index84.js +4 -5
  569. package/dist/index84.js.map +1 -1
  570. package/dist/index85.js +5 -605
  571. package/dist/index85.js.map +1 -1
  572. package/dist/index86.js +6 -52
  573. package/dist/index86.js.map +1 -1
  574. package/dist/index87.js +3 -3
  575. package/dist/index87.js.map +1 -1
  576. package/dist/index88.js +4 -4
  577. package/dist/index88.js.map +1 -1
  578. package/dist/index89.js +5 -14
  579. package/dist/index89.js.map +1 -1
  580. package/dist/index9.js +1 -1
  581. package/dist/index90.js +24 -5
  582. package/dist/index90.js.map +1 -1
  583. package/dist/index91.js +6 -7
  584. package/dist/index91.js.map +1 -1
  585. package/dist/index92.js +3 -15
  586. package/dist/index92.js.map +1 -1
  587. package/dist/index93.js +6 -4
  588. package/dist/index93.js.map +1 -1
  589. package/dist/index94.js +5 -4
  590. package/dist/index94.js.map +1 -1
  591. package/dist/index95.js +4 -5
  592. package/dist/index95.js.map +1 -1
  593. package/dist/index96.js +5 -5
  594. package/dist/index96.js.map +1 -1
  595. package/dist/index97.js +4 -4
  596. package/dist/index97.js.map +1 -1
  597. package/dist/index98.js +7 -3
  598. package/dist/index98.js.map +1 -1
  599. package/dist/index99.js +5 -6
  600. package/dist/index99.js.map +1 -1
  601. package/package.json +1 -1
  602. package/dist/index317.js +0 -27
  603. package/dist/index317.js.map +0 -1
  604. package/dist/index318.js +0 -116
  605. package/dist/index318.js.map +0 -1
  606. package/dist/index319.js +0 -19
  607. package/dist/index319.js.map +0 -1
  608. package/dist/index320.js +0 -528
  609. package/dist/index320.js.map +0 -1
  610. package/dist/index321.js +0 -131
  611. package/dist/index321.js.map +0 -1
  612. package/dist/index322.js +0 -137
  613. package/dist/index322.js.map +0 -1
  614. package/dist/index323.js +0 -24
  615. package/dist/index323.js.map +0 -1
  616. package/dist/index324.js +0 -9
  617. package/dist/index324.js.map +0 -1
  618. package/dist/index325.js +0 -9
  619. package/dist/index325.js.map +0 -1
  620. package/dist/index326.js +0 -7
  621. package/dist/index326.js.map +0 -1
  622. package/dist/index327.js +0 -19
  623. package/dist/index327.js.map +0 -1
  624. package/dist/index328.js +0 -12
  625. package/dist/index328.js.map +0 -1
  626. package/dist/index329.js +0 -9
  627. package/dist/index329.js.map +0 -1
  628. package/dist/index330.js +0 -8
  629. package/dist/index330.js.map +0 -1
  630. package/dist/index331.js +0 -549
  631. package/dist/index331.js.map +0 -1
  632. package/dist/index332.js +0 -50
  633. package/dist/index332.js.map +0 -1
  634. package/dist/index333.js +0 -21
  635. package/dist/index333.js.map +0 -1
  636. package/dist/index334.js +0 -10
  637. package/dist/index334.js.map +0 -1
  638. package/dist/index335.js +0 -12
  639. package/dist/index335.js.map +0 -1
  640. package/dist/index336.js +0 -11
  641. package/dist/index336.js.map +0 -1
  642. package/dist/index337.js +0 -12
  643. package/dist/index337.js.map +0 -1
  644. package/dist/index338.js +0 -16
  645. package/dist/index338.js.map +0 -1
  646. package/dist/index339.js +0 -13
  647. package/dist/index339.js.map +0 -1
  648. package/dist/index340.js +0 -17
  649. package/dist/index340.js.map +0 -1
  650. package/dist/index341.js +0 -68
  651. package/dist/index341.js.map +0 -1
  652. package/dist/index342.js +0 -72
  653. package/dist/index342.js.map +0 -1
  654. package/dist/index343.js +0 -12
  655. package/dist/index343.js.map +0 -1
  656. package/dist/index344.js +0 -17
  657. package/dist/index344.js.map +0 -1
  658. package/dist/index345.js +0 -69
  659. package/dist/index345.js.map +0 -1
  660. package/dist/index346.js +0 -71
  661. package/dist/index346.js.map +0 -1
  662. package/dist/index347.js +0 -34
  663. package/dist/index347.js.map +0 -1
  664. package/dist/index348.js +0 -12
  665. package/dist/index348.js.map +0 -1
  666. package/dist/index349.js +0 -156
  667. package/dist/index349.js.map +0 -1
  668. package/dist/index350.js +0 -111
  669. package/dist/index350.js.map +0 -1
  670. package/dist/index351.js +0 -8
  671. package/dist/index351.js.map +0 -1
  672. package/dist/index352.js +0 -59
  673. package/dist/index352.js.map +0 -1
  674. package/dist/index353.js +0 -7
  675. package/dist/index353.js.map +0 -1
  676. package/dist/index354.js +0 -26
  677. package/dist/index354.js.map +0 -1
  678. package/dist/index355.js +0 -19
  679. package/dist/index355.js.map +0 -1
  680. package/dist/index356.js +0 -32
  681. package/dist/index356.js.map +0 -1
  682. package/dist/index357.js +0 -16
  683. package/dist/index357.js.map +0 -1
  684. package/dist/index358.js +0 -10
  685. package/dist/index358.js.map +0 -1
  686. package/dist/index359.js +0 -26
  687. package/dist/index359.js.map +0 -1
  688. package/dist/index360.js +0 -16
  689. package/dist/index360.js.map +0 -1
  690. package/dist/index361.js +0 -31
  691. package/dist/index361.js.map +0 -1
  692. package/dist/index362.js +0 -8
  693. package/dist/index362.js.map +0 -1
package/dist/index159.js CHANGED
@@ -1,253 +1,50 @@
1
- import h from "./index158.js";
2
- import f from "./index278.js";
3
- import { isString as v, DIRECTION as o, objectIncludes as V, forceDirection as I } from "./index276.js";
4
- import _ from "./index157.js";
5
- class p {
6
- /** */
7
- /** */
8
- /** Transforms value before mask processing */
9
- /** Transforms each char before mask processing */
10
- /** Validates if value is acceptable */
11
- /** Does additional processing at the end of editing */
12
- /** Format typed value to string */
13
- /** Parse string to get typed value */
14
- /** Enable characters overwriting */
15
- /** */
16
- /** */
17
- /** */
18
- /** */
19
- constructor(t) {
20
- this._value = "", this._update({
21
- ...p.DEFAULTS,
22
- ...t
23
- }), this._initialized = !0;
24
- }
25
- /** Sets and applies new options */
26
- updateOptions(t) {
27
- this.optionsIsChanged(t) && this.withValueRefresh(this._update.bind(this, t));
28
- }
29
- /** Sets new options */
30
- _update(t) {
31
- Object.assign(this, t);
32
- }
33
- /** Mask state */
34
- get state() {
35
- return {
36
- _value: this.value,
37
- _rawInputValue: this.rawInputValue
38
- };
39
- }
40
- set state(t) {
41
- this._value = t._value;
42
- }
43
- /** Resets value */
44
- reset() {
45
- this._value = "";
46
- }
47
- get value() {
48
- return this._value;
49
- }
50
- set value(t) {
51
- this.resolve(t, {
52
- input: !0
53
- });
54
- }
55
- /** Resolve new value */
56
- resolve(t, e) {
57
- e === void 0 && (e = {
58
- input: !0
59
- }), this.reset(), this.append(t, e, ""), this.doCommit();
60
- }
61
- get unmaskedValue() {
62
- return this.value;
63
- }
64
- set unmaskedValue(t) {
65
- this.resolve(t, {});
66
- }
67
- get typedValue() {
68
- return this.parse ? this.parse(this.value, this) : this.unmaskedValue;
69
- }
70
- set typedValue(t) {
71
- this.format ? this.value = this.format(t, this) : this.unmaskedValue = String(t);
72
- }
73
- /** Value that includes raw user input */
74
- get rawInputValue() {
75
- return this.extractInput(0, this.displayValue.length, {
76
- raw: !0
77
- });
78
- }
79
- set rawInputValue(t) {
80
- this.resolve(t, {
81
- raw: !0
1
+ import f from "./index241.js";
2
+ import u from "./index161.js";
3
+ import m from "./index162.js";
4
+ function p(a, t, r) {
5
+ var e = r.metadata, n = r.shouldTryNationalPrefixFormattingRule, o = r.getSeparatorAfterNationalPrefix, i = new RegExp("^(?:".concat(t.pattern(), ")$"));
6
+ if (i.test(a.nationalSignificantNumber))
7
+ return N(a, t, {
8
+ metadata: e,
9
+ shouldTryNationalPrefixFormattingRule: n,
10
+ getSeparatorAfterNationalPrefix: o
82
11
  });
83
- }
84
- get displayValue() {
85
- return this.value;
86
- }
87
- get isComplete() {
88
- return !0;
89
- }
90
- get isFilled() {
91
- return this.isComplete;
92
- }
93
- /** Finds nearest input position in direction */
94
- nearestInputPos(t, e) {
95
- return t;
96
- }
97
- totalInputPositions(t, e) {
98
- return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), Math.min(this.displayValue.length, e - t);
99
- }
100
- /** Extracts value in range considering flags */
101
- extractInput(t, e, i) {
102
- return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), this.displayValue.slice(t, e);
103
- }
104
- /** Extracts tail in range */
105
- extractTail(t, e) {
106
- return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), new f(this.extractInput(t, e), t);
107
- }
108
- /** Appends tail */
109
- appendTail(t) {
110
- return v(t) && (t = new f(String(t))), t.appendTo(this);
111
- }
112
- /** Appends char */
113
- _appendCharRaw(t, e) {
114
- return t ? (this._value += t, new h({
115
- inserted: t,
116
- rawInserted: t
117
- })) : new h();
118
- }
119
- /** Appends char */
120
- _appendChar(t, e, i) {
121
- e === void 0 && (e = {});
122
- const s = this.state;
123
- let a;
124
- if ([t, a] = this.doPrepareChar(t, e), t && (a = a.aggregate(this._appendCharRaw(t, e)), !a.rawInserted && this.autofix === "pad")) {
125
- const n = this.state;
126
- this.state = s;
127
- let r = this.pad(e);
128
- const l = this._appendCharRaw(t, e);
129
- r = r.aggregate(l), l.rawInserted || r.equals(a) ? a = r : this.state = n;
130
- }
131
- if (a.inserted) {
132
- let n, r = this.doValidate(e) !== !1;
133
- if (r && i != null) {
134
- const l = this.state;
135
- if (this.overwrite === !0) {
136
- n = i.state;
137
- for (let d = 0; d < a.rawInserted.length; ++d)
138
- i.unshift(this.displayValue.length - a.tailShift);
139
- }
140
- let u = this.appendTail(i);
141
- if (r = u.rawInserted.length === i.toString().length, !(r && u.inserted) && this.overwrite === "shift") {
142
- this.state = l, n = i.state;
143
- for (let d = 0; d < a.rawInserted.length; ++d)
144
- i.shift();
145
- u = this.appendTail(i), r = u.rawInserted.length === i.toString().length;
146
- }
147
- r && u.inserted && (this.state = l);
148
- }
149
- r || (a = new h(), this.state = s, i && n && (i.state = n));
150
- }
151
- return a;
152
- }
153
- /** Appends optional placeholder at the end */
154
- _appendPlaceholder() {
155
- return new h();
156
- }
157
- /** Appends optional eager placeholder at the end */
158
- _appendEager() {
159
- return new h();
160
- }
161
- /** Appends symbols considering flags */
162
- append(t, e, i) {
163
- if (!v(t)) throw new Error("value should be string");
164
- const s = v(i) ? new f(String(i)) : i;
165
- e != null && e.tail && (e._beforeTailState = this.state);
166
- let a;
167
- [t, a] = this.doPrepare(t, e);
168
- for (let n = 0; n < t.length; ++n) {
169
- const r = this._appendChar(t[n], e, s);
170
- if (!r.rawInserted && !this.doSkipInvalid(t[n], e, s)) break;
171
- a.aggregate(r);
172
- }
173
- return (this.eager === !0 || this.eager === "append") && e != null && e.input && t && a.aggregate(this._appendEager()), s != null && (a.tailShift += this.appendTail(s).tailShift), a;
174
- }
175
- remove(t, e) {
176
- return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), this._value = this.displayValue.slice(0, t) + this.displayValue.slice(e), new h();
177
- }
178
- /** Calls function and reapplies current value */
179
- withValueRefresh(t) {
180
- if (this._refreshing || !this._initialized) return t();
181
- this._refreshing = !0;
182
- const e = this.rawInputValue, i = this.value, s = t();
183
- return this.rawInputValue = e, this.value && this.value !== i && i.indexOf(this.value) === 0 && (this.append(i.slice(this.displayValue.length), {}, ""), this.doCommit()), delete this._refreshing, s;
184
- }
185
- runIsolated(t) {
186
- if (this._isolated || !this._initialized) return t(this);
187
- this._isolated = !0;
188
- const e = this.state, i = t(this);
189
- return this.state = e, delete this._isolated, i;
190
- }
191
- doSkipInvalid(t, e, i) {
192
- return !!this.skipInvalid;
193
- }
194
- /** Prepares string before mask processing */
195
- doPrepare(t, e) {
196
- return e === void 0 && (e = {}), h.normalize(this.prepare ? this.prepare(t, this, e) : t);
197
- }
198
- /** Prepares each char before mask processing */
199
- doPrepareChar(t, e) {
200
- return e === void 0 && (e = {}), h.normalize(this.prepareChar ? this.prepareChar(t, this, e) : t);
201
- }
202
- /** Validates if value is acceptable */
203
- doValidate(t) {
204
- return (!this.validate || this.validate(this.value, this, t)) && (!this.parent || this.parent.doValidate(t));
205
- }
206
- /** Does additional processing at the end of editing */
207
- doCommit() {
208
- this.commit && this.commit(this.value, this);
209
- }
210
- splice(t, e, i, s, a) {
211
- i === void 0 && (i = ""), s === void 0 && (s = o.NONE), a === void 0 && (a = {
212
- input: !0
12
+ }
13
+ function c(a, t, r) {
14
+ return f(a, t, r) === "IS_POSSIBLE";
15
+ }
16
+ function N(a, t, r) {
17
+ var e = r.metadata, n = r.shouldTryNationalPrefixFormattingRule, o = r.getSeparatorAfterNationalPrefix;
18
+ if (a.nationalSignificantNumber, a.international, a.nationalPrefix, a.carrierCode, n(t)) {
19
+ var i = l(a, t, {
20
+ useNationalPrefixFormattingRule: !0,
21
+ getSeparatorAfterNationalPrefix: o,
22
+ metadata: e
213
23
  });
214
- const n = t + e, r = this.extractTail(n), l = this.eager === !0 || this.eager === "remove";
215
- let u;
216
- l && (s = I(s), u = this.extractInput(0, n, {
217
- raw: !0
218
- }));
219
- let d = t;
220
- const g = new h();
221
- if (s !== o.NONE && (d = this.nearestInputPos(t, e > 1 && t !== 0 && !l ? o.NONE : s), g.tailShift = d - t), g.aggregate(this.remove(d)), l && s !== o.NONE && u === this.rawInputValue)
222
- if (s === o.FORCE_LEFT) {
223
- let w;
224
- for (; u === this.rawInputValue && (w = this.displayValue.length); )
225
- g.aggregate(new h({
226
- tailShift: -1
227
- })).aggregate(this.remove(w - 1));
228
- } else s === o.FORCE_RIGHT && r.unshift();
229
- return g.aggregate(this.append(i, a, r));
230
- }
231
- maskEquals(t) {
232
- return this.mask === t;
233
- }
234
- optionsIsChanged(t) {
235
- return !V(this, t);
236
- }
237
- typedValueEquals(t) {
238
- const e = this.typedValue;
239
- return t === e || p.EMPTY_VALUES.includes(t) && p.EMPTY_VALUES.includes(e) || (this.format ? this.format(t, this) === this.format(this.typedValue, this) : !1);
240
- }
241
- pad(t) {
242
- return new h();
243
- }
24
+ if (i)
25
+ return i;
26
+ }
27
+ return l(a, t, {
28
+ useNationalPrefixFormattingRule: !1,
29
+ getSeparatorAfterNationalPrefix: o,
30
+ metadata: e
31
+ });
32
+ }
33
+ function l(a, t, r) {
34
+ var e = r.metadata, n = r.useNationalPrefixFormattingRule, o = r.getSeparatorAfterNationalPrefix, i = m(a.nationalSignificantNumber, t, {
35
+ carrierCode: a.carrierCode,
36
+ useInternationalFormat: a.international,
37
+ withNationalPrefix: n,
38
+ metadata: e
39
+ });
40
+ if (n || (a.nationalPrefix ? i = a.nationalPrefix + o(t) + i : a.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix && (i = a.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + " " + i)), g(i, a))
41
+ return i;
42
+ }
43
+ function g(a, t) {
44
+ return u(a) === t.getNationalDigits();
244
45
  }
245
- p.DEFAULTS = {
246
- skipInvalid: !0
247
- };
248
- p.EMPTY_VALUES = [void 0, null, ""];
249
- _.Masked = p;
250
46
  export {
47
+ c as canFormatCompleteNumber,
251
48
  p as default
252
49
  };
253
50
  //# sourceMappingURL=index159.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index159.js","sources":["../../../node_modules/imask/esm/masked/base.js"],"sourcesContent":["import ChangeDetails from '../core/change-details.js';\nimport ContinuousTailDetails from '../core/continuous-tail-details.js';\nimport { isString, DIRECTION, objectIncludes, forceDirection } from '../core/utils.js';\nimport IMask from '../core/holder.js';\n\n/** Append flags */\n\n/** Extract flags */\n\n// see https://github.com/microsoft/TypeScript/issues/6223\n\n/** Provides common masking stuff */\nclass Masked {\n /** */\n\n /** */\n\n /** Transforms value before mask processing */\n\n /** Transforms each char before mask processing */\n\n /** Validates if value is acceptable */\n\n /** Does additional processing at the end of editing */\n\n /** Format typed value to string */\n\n /** Parse string to get typed value */\n\n /** Enable characters overwriting */\n\n /** */\n\n /** */\n\n /** */\n\n /** */\n\n constructor(opts) {\n this._value = '';\n this._update({\n ...Masked.DEFAULTS,\n ...opts\n });\n this._initialized = true;\n }\n\n /** Sets and applies new options */\n updateOptions(opts) {\n if (!this.optionsIsChanged(opts)) return;\n this.withValueRefresh(this._update.bind(this, opts));\n }\n\n /** Sets new options */\n _update(opts) {\n Object.assign(this, opts);\n }\n\n /** Mask state */\n get state() {\n return {\n _value: this.value,\n _rawInputValue: this.rawInputValue\n };\n }\n set state(state) {\n this._value = state._value;\n }\n\n /** Resets value */\n reset() {\n this._value = '';\n }\n get value() {\n return this._value;\n }\n set value(value) {\n this.resolve(value, {\n input: true\n });\n }\n\n /** Resolve new value */\n resolve(value, flags) {\n if (flags === void 0) {\n flags = {\n input: true\n };\n }\n this.reset();\n this.append(value, flags, '');\n this.doCommit();\n }\n get unmaskedValue() {\n return this.value;\n }\n set unmaskedValue(value) {\n this.resolve(value, {});\n }\n get typedValue() {\n return this.parse ? this.parse(this.value, this) : this.unmaskedValue;\n }\n set typedValue(value) {\n if (this.format) {\n this.value = this.format(value, this);\n } else {\n this.unmaskedValue = String(value);\n }\n }\n\n /** Value that includes raw user input */\n get rawInputValue() {\n return this.extractInput(0, this.displayValue.length, {\n raw: true\n });\n }\n set rawInputValue(value) {\n this.resolve(value, {\n raw: true\n });\n }\n get displayValue() {\n return this.value;\n }\n get isComplete() {\n return true;\n }\n get isFilled() {\n return this.isComplete;\n }\n\n /** Finds nearest input position in direction */\n nearestInputPos(cursorPos, direction) {\n return cursorPos;\n }\n totalInputPositions(fromPos, toPos) {\n if (fromPos === void 0) {\n fromPos = 0;\n }\n if (toPos === void 0) {\n toPos = this.displayValue.length;\n }\n return Math.min(this.displayValue.length, toPos - fromPos);\n }\n\n /** Extracts value in range considering flags */\n extractInput(fromPos, toPos, flags) {\n if (fromPos === void 0) {\n fromPos = 0;\n }\n if (toPos === void 0) {\n toPos = this.displayValue.length;\n }\n return this.displayValue.slice(fromPos, toPos);\n }\n\n /** Extracts tail in range */\n extractTail(fromPos, toPos) {\n if (fromPos === void 0) {\n fromPos = 0;\n }\n if (toPos === void 0) {\n toPos = this.displayValue.length;\n }\n return new ContinuousTailDetails(this.extractInput(fromPos, toPos), fromPos);\n }\n\n /** Appends tail */\n appendTail(tail) {\n if (isString(tail)) tail = new ContinuousTailDetails(String(tail));\n return tail.appendTo(this);\n }\n\n /** Appends char */\n _appendCharRaw(ch, flags) {\n if (!ch) return new ChangeDetails();\n this._value += ch;\n return new ChangeDetails({\n inserted: ch,\n rawInserted: ch\n });\n }\n\n /** Appends char */\n _appendChar(ch, flags, checkTail) {\n if (flags === void 0) {\n flags = {};\n }\n const consistentState = this.state;\n let details;\n [ch, details] = this.doPrepareChar(ch, flags);\n if (ch) {\n details = details.aggregate(this._appendCharRaw(ch, flags));\n\n // TODO handle `skip`?\n\n // try `autofix` lookahead\n if (!details.rawInserted && this.autofix === 'pad') {\n const noFixState = this.state;\n this.state = consistentState;\n let fixDetails = this.pad(flags);\n const chDetails = this._appendCharRaw(ch, flags);\n fixDetails = fixDetails.aggregate(chDetails);\n\n // if fix was applied or\n // if details are equal use skip restoring state optimization\n if (chDetails.rawInserted || fixDetails.equals(details)) {\n details = fixDetails;\n } else {\n this.state = noFixState;\n }\n }\n }\n if (details.inserted) {\n let consistentTail;\n let appended = this.doValidate(flags) !== false;\n if (appended && checkTail != null) {\n // validation ok, check tail\n const beforeTailState = this.state;\n if (this.overwrite === true) {\n consistentTail = checkTail.state;\n for (let i = 0; i < details.rawInserted.length; ++i) {\n checkTail.unshift(this.displayValue.length - details.tailShift);\n }\n }\n let tailDetails = this.appendTail(checkTail);\n appended = tailDetails.rawInserted.length === checkTail.toString().length;\n\n // not ok, try shift\n if (!(appended && tailDetails.inserted) && this.overwrite === 'shift') {\n this.state = beforeTailState;\n consistentTail = checkTail.state;\n for (let i = 0; i < details.rawInserted.length; ++i) {\n checkTail.shift();\n }\n tailDetails = this.appendTail(checkTail);\n appended = tailDetails.rawInserted.length === checkTail.toString().length;\n }\n\n // if ok, rollback state after tail\n if (appended && tailDetails.inserted) this.state = beforeTailState;\n }\n\n // revert all if something went wrong\n if (!appended) {\n details = new ChangeDetails();\n this.state = consistentState;\n if (checkTail && consistentTail) checkTail.state = consistentTail;\n }\n }\n return details;\n }\n\n /** Appends optional placeholder at the end */\n _appendPlaceholder() {\n return new ChangeDetails();\n }\n\n /** Appends optional eager placeholder at the end */\n _appendEager() {\n return new ChangeDetails();\n }\n\n /** Appends symbols considering flags */\n append(str, flags, tail) {\n if (!isString(str)) throw new Error('value should be string');\n const checkTail = isString(tail) ? new ContinuousTailDetails(String(tail)) : tail;\n if (flags != null && flags.tail) flags._beforeTailState = this.state;\n let details;\n [str, details] = this.doPrepare(str, flags);\n for (let ci = 0; ci < str.length; ++ci) {\n const d = this._appendChar(str[ci], flags, checkTail);\n if (!d.rawInserted && !this.doSkipInvalid(str[ci], flags, checkTail)) break;\n details.aggregate(d);\n }\n if ((this.eager === true || this.eager === 'append') && flags != null && flags.input && str) {\n details.aggregate(this._appendEager());\n }\n\n // append tail but aggregate only tailShift\n if (checkTail != null) {\n details.tailShift += this.appendTail(checkTail).tailShift;\n // TODO it's a good idea to clear state after appending ends\n // but it causes bugs when one append calls another (when dynamic dispatch set rawInputValue)\n // this._resetBeforeTailState();\n }\n return details;\n }\n remove(fromPos, toPos) {\n if (fromPos === void 0) {\n fromPos = 0;\n }\n if (toPos === void 0) {\n toPos = this.displayValue.length;\n }\n this._value = this.displayValue.slice(0, fromPos) + this.displayValue.slice(toPos);\n return new ChangeDetails();\n }\n\n /** Calls function and reapplies current value */\n withValueRefresh(fn) {\n if (this._refreshing || !this._initialized) return fn();\n this._refreshing = true;\n const rawInput = this.rawInputValue;\n const value = this.value;\n const ret = fn();\n this.rawInputValue = rawInput;\n // append lost trailing chars at the end\n if (this.value && this.value !== value && value.indexOf(this.value) === 0) {\n this.append(value.slice(this.displayValue.length), {}, '');\n this.doCommit();\n }\n delete this._refreshing;\n return ret;\n }\n runIsolated(fn) {\n if (this._isolated || !this._initialized) return fn(this);\n this._isolated = true;\n const state = this.state;\n const ret = fn(this);\n this.state = state;\n delete this._isolated;\n return ret;\n }\n doSkipInvalid(ch, flags, checkTail) {\n return Boolean(this.skipInvalid);\n }\n\n /** Prepares string before mask processing */\n doPrepare(str, flags) {\n if (flags === void 0) {\n flags = {};\n }\n return ChangeDetails.normalize(this.prepare ? this.prepare(str, this, flags) : str);\n }\n\n /** Prepares each char before mask processing */\n doPrepareChar(str, flags) {\n if (flags === void 0) {\n flags = {};\n }\n return ChangeDetails.normalize(this.prepareChar ? this.prepareChar(str, this, flags) : str);\n }\n\n /** Validates if value is acceptable */\n doValidate(flags) {\n return (!this.validate || this.validate(this.value, this, flags)) && (!this.parent || this.parent.doValidate(flags));\n }\n\n /** Does additional processing at the end of editing */\n doCommit() {\n if (this.commit) this.commit(this.value, this);\n }\n splice(start, deleteCount, inserted, removeDirection, flags) {\n if (inserted === void 0) {\n inserted = '';\n }\n if (removeDirection === void 0) {\n removeDirection = DIRECTION.NONE;\n }\n if (flags === void 0) {\n flags = {\n input: true\n };\n }\n const tailPos = start + deleteCount;\n const tail = this.extractTail(tailPos);\n const eagerRemove = this.eager === true || this.eager === 'remove';\n let oldRawValue;\n if (eagerRemove) {\n removeDirection = forceDirection(removeDirection);\n oldRawValue = this.extractInput(0, tailPos, {\n raw: true\n });\n }\n let startChangePos = start;\n const details = new ChangeDetails();\n\n // if it is just deletion without insertion\n if (removeDirection !== DIRECTION.NONE) {\n startChangePos = this.nearestInputPos(start, deleteCount > 1 && start !== 0 && !eagerRemove ? DIRECTION.NONE : removeDirection);\n\n // adjust tailShift if start was aligned\n details.tailShift = startChangePos - start;\n }\n details.aggregate(this.remove(startChangePos));\n if (eagerRemove && removeDirection !== DIRECTION.NONE && oldRawValue === this.rawInputValue) {\n if (removeDirection === DIRECTION.FORCE_LEFT) {\n let valLength;\n while (oldRawValue === this.rawInputValue && (valLength = this.displayValue.length)) {\n details.aggregate(new ChangeDetails({\n tailShift: -1\n })).aggregate(this.remove(valLength - 1));\n }\n } else if (removeDirection === DIRECTION.FORCE_RIGHT) {\n tail.unshift();\n }\n }\n return details.aggregate(this.append(inserted, flags, tail));\n }\n maskEquals(mask) {\n return this.mask === mask;\n }\n optionsIsChanged(opts) {\n return !objectIncludes(this, opts);\n }\n typedValueEquals(value) {\n const tval = this.typedValue;\n return value === tval || Masked.EMPTY_VALUES.includes(value) && Masked.EMPTY_VALUES.includes(tval) || (this.format ? this.format(value, this) === this.format(this.typedValue, this) : false);\n }\n pad(flags) {\n return new ChangeDetails();\n }\n}\nMasked.DEFAULTS = {\n skipInvalid: true\n};\nMasked.EMPTY_VALUES = [undefined, null, ''];\nIMask.Masked = Masked;\n\nexport { Masked as default };\n"],"names":["Masked","opts","state","value","flags","cursorPos","direction","fromPos","toPos","ContinuousTailDetails","tail","isString","ch","ChangeDetails","checkTail","consistentState","details","noFixState","fixDetails","chDetails","consistentTail","appended","beforeTailState","i","tailDetails","str","ci","d","fn","rawInput","ret","start","deleteCount","inserted","removeDirection","DIRECTION","tailPos","eagerRemove","oldRawValue","forceDirection","startChangePos","valLength","mask","objectIncludes","tval","IMask"],"mappings":";;;;AAYA,MAAMA,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EA2BX,YAAYC,GAAM;AAChB,SAAK,SAAS,IACd,KAAK,QAAQ;AAAA,MACX,GAAGD,EAAO;AAAA,MACV,GAAGC;AAAA,IACT,CAAK,GACD,KAAK,eAAe;AAAA,E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A,WAAWgC,GAAM;AACf,WAAO,KAAK,SAASA;AAAA,EACvB;AAAA,EACA,iBAAiBzC,GAAM;AACrB,WAAO,CAAC0C,EAAe,MAAM1C,CAAI;AAAA,EACnC;AAAA,EACA,iBAAiBE,GAAO;AACtB,UAAMyC,IAAO,KAAK;AAClB,WAAOzC,MAAUyC,KAAQ5C,EAAO,aAAa,SAASG,CAAK,KAAKH,EAAO,aAAa,SAAS4C,CAAI,MAAM,KAAK,SAAS,KAAK,OAAOzC,GAAO,IAAI,MAAM,KAAK,OAAO,KAAK,YAAY,IAAI,IAAI;AAAA,EACzL;AAAA,EACA,IAAIC,GAAO;AACT,WAAO,IAAIS,EAAa;AAAA,EAC1B;AACF;AACAb,EAAO,WAAW;AAAA,EAChB,aAAa;AACf;AACAA,EAAO,eAAe,CAAC,QAAW,MAAM,EAAE;AAC1C6C,EAAM,SAAS7C;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index159.js","sources":["../../../node_modules/libphonenumber-js/es6/AsYouTypeFormatter.complete.js"],"sourcesContent":["import checkNumberLength from './helpers/checkNumberLength.js';\nimport parseDigits from './helpers/parseDigits.js';\nimport formatNationalNumberUsingFormat from './helpers/formatNationalNumberUsingFormat.js';\nexport default function formatCompleteNumber(state, format, _ref) {\n var metadata = _ref.metadata,\n shouldTryNationalPrefixFormattingRule = _ref.shouldTryNationalPrefixFormattingRule,\n getSeparatorAfterNationalPrefix = _ref.getSeparatorAfterNationalPrefix;\n var matcher = new RegExp(\"^(?:\".concat(format.pattern(), \")$\"));\n if (matcher.test(state.nationalSignificantNumber)) {\n return formatNationalNumberWithAndWithoutNationalPrefixFormattingRule(state, format, {\n metadata: metadata,\n shouldTryNationalPrefixFormattingRule: shouldTryNationalPrefixFormattingRule,\n getSeparatorAfterNationalPrefix: getSeparatorAfterNationalPrefix\n });\n }\n}\nexport function canFormatCompleteNumber(nationalSignificantNumber, country, metadata) {\n return checkNumberLength(nationalSignificantNumber, country, metadata) === 'IS_POSSIBLE';\n}\nfunction formatNationalNumberWithAndWithoutNationalPrefixFormattingRule(state, format, _ref2) {\n var metadata = _ref2.metadata,\n shouldTryNationalPrefixFormattingRule = _ref2.shouldTryNationalPrefixFormattingRule,\n getSeparatorAfterNationalPrefix = _ref2.getSeparatorAfterNationalPrefix;\n // `format` has already been checked for `nationalPrefix` requirement.\n\n var nationalSignificantNumber = state.nationalSignificantNumber,\n international = state.international,\n nationalPrefix = state.nationalPrefix,\n carrierCode = state.carrierCode;\n\n // Format the number with using `national_prefix_formatting_rule`.\n // If the resulting formatted number is a valid formatted number, then return it.\n //\n // Google's AsYouType formatter is different in a way that it doesn't try\n // to format using the \"national prefix formatting rule\", and instead it\n // simply prepends a national prefix followed by a \" \" character.\n // This code does that too, but as a fallback.\n // The reason is that \"national prefix formatting rule\" may use parentheses,\n // which wouldn't be included has it used the simpler Google's way.\n //\n if (shouldTryNationalPrefixFormattingRule(format)) {\n var formattedNumber = formatNationalNumber(state, format, {\n useNationalPrefixFormattingRule: true,\n getSeparatorAfterNationalPrefix: getSeparatorAfterNationalPrefix,\n metadata: metadata\n });\n if (formattedNumber) {\n return formattedNumber;\n }\n }\n\n // Format the number without using `national_prefix_formatting_rule`.\n return formatNationalNumber(state, format, {\n useNationalPrefixFormattingRule: false,\n getSeparatorAfterNationalPrefix: getSeparatorAfterNationalPrefix,\n metadata: metadata\n });\n}\nfunction formatNationalNumber(state, format, _ref3) {\n var metadata = _ref3.metadata,\n useNationalPrefixFormattingRule = _ref3.useNationalPrefixFormattingRule,\n getSeparatorAfterNationalPrefix = _ref3.getSeparatorAfterNationalPrefix;\n var formattedNationalNumber = formatNationalNumberUsingFormat(state.nationalSignificantNumber, format, {\n carrierCode: state.carrierCode,\n useInternationalFormat: state.international,\n withNationalPrefix: useNationalPrefixFormattingRule,\n metadata: metadata\n });\n if (!useNationalPrefixFormattingRule) {\n if (state.nationalPrefix) {\n // If a national prefix was extracted, then just prepend it,\n // followed by a \" \" character.\n formattedNationalNumber = state.nationalPrefix + getSeparatorAfterNationalPrefix(format) + formattedNationalNumber;\n } else if (state.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix) {\n formattedNationalNumber = state.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + ' ' + formattedNationalNumber;\n }\n }\n if (isValidFormattedNationalNumber(formattedNationalNumber, state)) {\n return formattedNationalNumber;\n }\n}\n\n// Check that the formatted phone number contains exactly\n// the same digits that have been input by the user.\n// For example, when \"0111523456789\" is input for `AR` country,\n// the extracted `this.nationalSignificantNumber` is \"91123456789\",\n// which means that the national part of `this.digits` isn't simply equal to\n// `this.nationalPrefix` + `this.nationalSignificantNumber`.\n//\n// Also, a `format` can add extra digits to the `this.nationalSignificantNumber`\n// being formatted via `metadata[country].national_prefix_transform_rule`.\n// For example, for `VI` country, it prepends `340` to the national number,\n// and if this check hasn't been implemented, then there would be a bug\n// when `340` \"area coude\" is \"duplicated\" during input for `VI` country:\n// https://github.com/catamphetamine/libphonenumber-js/issues/318\n//\n// So, all these \"gotchas\" are filtered out.\n//\n// In the original Google's code, the comments say:\n// \"Check that we didn't remove nor add any extra digits when we matched\n// this formatting pattern. This usually happens after we entered the last\n// digit during AYTF. Eg: In case of MX, we swallow mobile token (1) when\n// formatted but AYTF should retain all the number entered and not change\n// in order to match a format (of same leading digits and length) display\n// in that way.\"\n// \"If it's the same (i.e entered number and format is same), then it's\n// safe to return this in formatted number as nothing is lost / added.\"\n// Otherwise, don't use this format.\n// https://github.com/google/libphonenumber/commit/3e7c1f04f5e7200f87fb131e6f85c6e99d60f510#diff-9149457fa9f5d608a11bb975c6ef4bc5\n// https://github.com/google/libphonenumber/commit/3ac88c7106e7dcb553bcc794b15f19185928a1c6#diff-2dcb77e833422ee304da348b905cde0b\n//\nfunction isValidFormattedNationalNumber(formattedNationalNumber, state) {\n return parseDigits(formattedNationalNumber) === state.getNationalDigits();\n}\n//# sourceMappingURL=AsYouTypeFormatter.complete.js.map"],"names":["formatCompleteNumber","state","format","_ref","metadata","shouldTryNationalPrefixFormattingRule","getSeparatorAfterNationalPrefix","matcher","formatNationalNumberWithAndWithoutNationalPrefixFormattingRule","canFormatCompleteNumber","nationalSignificantNumber","country","checkNumberLength","_ref2","formattedNumber","formatNationalNumber","_ref3","useNationalPrefixFormattingRule","formattedNationalNumber","formatNationalNumberUsingFormat","isValidFormattedNationalNumber","parseDigits"],"mappings":";;;AAGe,SAASA,EAAqBC,GAAOC,GAAQC,GAAM;AAChE,MAAIC,IAAWD,EAAK,UAClBE,IAAwCF,EAAK,uCAC7CG,IAAkCH,EAAK,iCACrCI,IAAU,IAAI,OAAO,OAAO,OAAOL,EAAO,WAAW,IAAI,CAAC;AAC9D,MAAIK,EAAQ,KAAKN,EAAM,yBAAyB;AAC9C,WAAOO,EAA+DP,GAAOC,GAAQ;AAAA,MACnF,UAAUE;AAAA,MACV,uCAAuCC;AAAA,MACvC,iCAAiCC;AAAA,IACvC,CAAK;AAEL;AACO,SAASG,EAAwBC,GAA2BC,GAASP,GAAU;AACpF,SAAOQ,EAAkBF,GAA2BC,GAASP,CAAQ,MAAM;AAC7E;AACA,SAASI,EAA+DP,GAAOC,GAAQW,GAAO;AAC5F,MAAIT,IAAWS,EAAM,UACnBR,IAAwCQ,EAAM,uCAC9CP,IAAkCO,EAAM;AAkB1C,MAfgCZ,EAAM,2BACpBA,EAAM,eACLA,EAAM,gBACTA,EAAM,aAYlBI,EAAsCH,CAAM,GAAG;AACjD,QAAIY,IAAkBC,EAAqBd,GAAOC,GAAQ;AAAA,MACxD,iCAAiC;AAAA,MACjC,iCAAiCI;AAAA,MACjC,UAAUF;AAAA,IAChB,CAAK;AACD,QAAIU;AACF,aAAOA;AAAA,EAEX;AAGA,SAAOC,EAAqBd,GAAOC,GAAQ;AAAA,IACzC,iCAAiC;AAAA,IACjC,iCAAiCI;AAAA,IACjC,UAAUF;AAAA,EACd,CAAG;AACH;AACA,SAASW,EAAqBd,GAAOC,GAAQc,GAAO;AAClD,MAAIZ,IAAWY,EAAM,UACnBC,IAAkCD,EAAM,iCACxCV,IAAkCU,EAAM,iCACtCE,IAA0BC,EAAgClB,EAAM,2BAA2BC,GAAQ;AAAA,IACrG,aAAaD,EAAM;AAAA,IACnB,wBAAwBA,EAAM;AAAA,IAC9B,oBAAoBgB;AAAA,IACpB,UAAUb;AAAA,EACd,CAAG;AAUD,MATKa,MACChB,EAAM,iBAGRiB,IAA0BjB,EAAM,iBAAiBK,EAAgCJ,CAAM,IAAIgB,IAClFjB,EAAM,iEACfiB,IAA0BjB,EAAM,+DAA+D,MAAMiB,KAGrGE,EAA+BF,GAAyBjB,CAAK;AAC/D,WAAOiB;AAEX;AA+BA,SAASE,EAA+BF,GAAyBjB,GAAO;AACtE,SAAOoB,EAAYH,CAAuB,MAAMjB,EAAM,kBAAiB;AACzE;","x_google_ignoreList":[0]}
package/dist/index16.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as i } from "./index27.js";
1
+ import { j as i } from "./index28.js";
2
2
  import { cn as s } from "./index2.js";
3
3
  function n(e) {
4
4
  const { className: t, type: o, ...r } = e;
package/dist/index160.js CHANGED
@@ -1,118 +1,173 @@
1
- import u from "./index165.js";
2
- import m from "./index168.js";
3
- import l from "./index157.js";
4
- import { isString as o } from "./index276.js";
5
- import "./index158.js";
6
- import "./index159.js";
7
- import "./index31.js";
8
- import "./index166.js";
9
- import "./index169.js";
10
- const d = "d{.}`m{.}`Y";
11
- class r extends u {
12
- static extractPatternOptions(t) {
13
- const {
14
- mask: e,
15
- pattern: s,
16
- ...n
17
- } = t;
18
- return {
19
- ...n,
20
- mask: o(e) ? e : s
1
+ import w from "./index242.js";
2
+ function p(r, e) {
3
+ var t = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
4
+ if (t) return (t = t.call(r)).next.bind(t);
5
+ if (Array.isArray(r) || (t = S(r)) || e) {
6
+ t && (r = t);
7
+ var n = 0;
8
+ return function() {
9
+ return n >= r.length ? { done: !0 } : { done: !1, value: r[n++] };
21
10
  };
22
11
  }
23
- /** Pattern mask for date according to {@link MaskedDate#format} */
24
- /** Start date */
25
- /** End date */
26
- /** Format typed value to string */
27
- /** Parse string to get typed value */
28
- constructor(t) {
29
- super(r.extractPatternOptions({
30
- ...r.DEFAULTS,
31
- ...t
32
- }));
33
- }
34
- updateOptions(t) {
35
- super.updateOptions(t);
36
- }
37
- _update(t) {
38
- const {
39
- mask: e,
40
- pattern: s,
41
- blocks: n,
42
- ...p
43
- } = {
44
- ...r.DEFAULTS,
45
- ...t
46
- }, a = Object.assign({}, r.GET_DEFAULT_BLOCKS());
47
- t.min && (a.Y.from = t.min.getFullYear()), t.max && (a.Y.to = t.max.getFullYear()), t.min && t.max && a.Y.from === a.Y.to && (a.m.from = t.min.getMonth() + 1, a.m.to = t.max.getMonth() + 1, a.m.from === a.m.to && (a.d.from = t.min.getDate(), a.d.to = t.max.getDate())), Object.assign(a, this.blocks, n), super._update({
48
- ...p,
49
- mask: o(e) ? e : s,
50
- blocks: a
51
- });
52
- }
53
- doValidate(t) {
54
- const e = this.date;
55
- return super.doValidate(t) && (!this.isComplete || this.isDateExist(this.value) && e != null && (this.min == null || this.min <= e) && (this.max == null || e <= this.max));
56
- }
57
- /** Checks if date is exists */
58
- isDateExist(t) {
59
- return this.format(this.parse(t, this), this).indexOf(t) >= 0;
12
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
13
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
14
+ }
15
+ function S(r, e) {
16
+ if (r) {
17
+ if (typeof r == "string") return v(r, e);
18
+ var t = {}.toString.call(r).slice(8, -1);
19
+ return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? v(r, e) : void 0;
60
20
  }
61
- /** Parsed Date */
62
- get date() {
63
- return this.typedValue;
21
+ }
22
+ function v(r, e) {
23
+ (e == null || e > r.length) && (e = r.length);
24
+ for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t];
25
+ return n;
26
+ }
27
+ function f(r) {
28
+ "@babel/helpers - typeof";
29
+ return f = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
30
+ return typeof e;
31
+ } : function(e) {
32
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
33
+ }, f(r);
34
+ }
35
+ function C(r, e) {
36
+ if (!(r instanceof e)) throw new TypeError("Cannot call a class as a function");
37
+ }
38
+ function P(r, e) {
39
+ for (var t = 0; t < e.length; t++) {
40
+ var n = e[t];
41
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, O(n.key), n);
64
42
  }
65
- set date(t) {
66
- this.typedValue = t;
43
+ }
44
+ function A(r, e, t) {
45
+ return e && P(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r;
46
+ }
47
+ function O(r) {
48
+ var e = M(r, "string");
49
+ return f(e) == "symbol" ? e : e + "";
50
+ }
51
+ function M(r, e) {
52
+ if (f(r) != "object" || !r) return r;
53
+ var t = r[Symbol.toPrimitive];
54
+ if (t !== void 0) {
55
+ var n = t.call(r, e);
56
+ if (f(n) != "object") return n;
57
+ throw new TypeError("@@toPrimitive must return a primitive value.");
67
58
  }
68
- get typedValue() {
69
- return this.isComplete ? super.typedValue : null;
59
+ return String(r);
60
+ }
61
+ var E = /* @__PURE__ */ (function() {
62
+ function r(e) {
63
+ C(this, r), this.matchTree = new w().parse(e);
70
64
  }
71
- set typedValue(t) {
72
- super.typedValue = t;
65
+ return A(r, [{
66
+ key: "match",
67
+ value: function(t) {
68
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = n.allowOverflow;
69
+ if (!t)
70
+ throw new Error("String is required");
71
+ var o = l(t.split(""), this.matchTree, !0);
72
+ if (o && o.match && delete o.matchedChars, !(o && o.overflow && !i))
73
+ return o;
74
+ }
75
+ }]);
76
+ })();
77
+ function l(r, e, t) {
78
+ if (typeof e == "string") {
79
+ var n = r.join("");
80
+ return e.indexOf(n) === 0 ? r.length === e.length ? {
81
+ match: !0,
82
+ matchedChars: r
83
+ } : {
84
+ partialMatch: !0
85
+ // matchedChars: characters
86
+ } : n.indexOf(e) === 0 ? t && r.length > e.length ? {
87
+ overflow: !0
88
+ } : {
89
+ match: !0,
90
+ matchedChars: r.slice(0, e.length)
91
+ } : void 0;
73
92
  }
74
- maskEquals(t) {
75
- return t === Date || super.maskEquals(t);
93
+ if (Array.isArray(e)) {
94
+ for (var i = r.slice(), o = 0; o < e.length; ) {
95
+ var s = e[o], a = l(i, s, t && o === e.length - 1);
96
+ if (a) {
97
+ if (a.overflow)
98
+ return a;
99
+ if (a.match) {
100
+ if (i = i.slice(a.matchedChars.length), i.length === 0)
101
+ return o === e.length - 1 ? {
102
+ match: !0,
103
+ matchedChars: r
104
+ } : {
105
+ partialMatch: !0
106
+ // matchedChars: characters
107
+ };
108
+ } else {
109
+ if (a.partialMatch)
110
+ return {
111
+ partialMatch: !0
112
+ // matchedChars: characters
113
+ };
114
+ throw new Error(`Unsupported match result:
115
+ `.concat(JSON.stringify(a, null, 2)));
116
+ }
117
+ } else return;
118
+ o++;
119
+ }
120
+ return t ? {
121
+ overflow: !0
122
+ } : {
123
+ match: !0,
124
+ matchedChars: r.slice(0, r.length - i.length)
125
+ };
76
126
  }
77
- optionsIsChanged(t) {
78
- return super.optionsIsChanged(r.extractPatternOptions(t));
127
+ switch (e.op) {
128
+ case "|":
129
+ for (var c, d = p(e.args), h; !(h = d()).done; ) {
130
+ var g = h.value, u = l(r, g, t);
131
+ if (u) {
132
+ if (u.overflow)
133
+ return u;
134
+ if (u.match)
135
+ return {
136
+ match: !0,
137
+ matchedChars: u.matchedChars
138
+ };
139
+ if (u.partialMatch)
140
+ c = !0;
141
+ else
142
+ throw new Error(`Unsupported match result:
143
+ `.concat(JSON.stringify(u, null, 2)));
144
+ }
145
+ }
146
+ return c ? {
147
+ partialMatch: !0
148
+ // matchedChars: ...
149
+ } : void 0;
150
+ case "[]":
151
+ for (var b = p(e.args), m; !(m = b()).done; ) {
152
+ var y = m.value;
153
+ if (r[0] === y)
154
+ return r.length === 1 ? {
155
+ match: !0,
156
+ matchedChars: r
157
+ } : t ? {
158
+ overflow: !0
159
+ } : {
160
+ match: !0,
161
+ matchedChars: [y]
162
+ };
163
+ }
164
+ return;
165
+ /* istanbul ignore next */
166
+ default:
167
+ throw new Error("Unsupported instruction tree: ".concat(e));
79
168
  }
80
169
  }
81
- r.GET_DEFAULT_BLOCKS = () => ({
82
- d: {
83
- mask: m,
84
- from: 1,
85
- to: 31,
86
- maxLength: 2
87
- },
88
- m: {
89
- mask: m,
90
- from: 1,
91
- to: 12,
92
- maxLength: 2
93
- },
94
- Y: {
95
- mask: m,
96
- from: 1900,
97
- to: 9999
98
- }
99
- });
100
- r.DEFAULTS = {
101
- ...u.DEFAULTS,
102
- mask: Date,
103
- pattern: d,
104
- format: (i, t) => {
105
- if (!i) return "";
106
- const e = String(i.getDate()).padStart(2, "0"), s = String(i.getMonth() + 1).padStart(2, "0"), n = i.getFullYear();
107
- return [e, s, n].join(".");
108
- },
109
- parse: (i, t) => {
110
- const [e, s, n] = i.split(".").map(Number);
111
- return new Date(n, s - 1, e);
112
- }
113
- };
114
- l.MaskedDate = r;
115
170
  export {
116
- r as default
171
+ E as default
117
172
  };
118
173
  //# sourceMappingURL=index160.js.map