tlvant 0.0.20 → 0.0.22

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 (830) hide show
  1. package/LICENSE +21 -21
  2. package/README.en.md +36 -36
  3. package/README.md +40 -40
  4. package/package.json +98 -98
  5. package/es/action-sheet/index.css +0 -1
  6. package/es/action-sheet/index.js +0 -177
  7. package/es/action-sheet/index.less +0 -112
  8. package/es/action-sheet/style/index.js +0 -7
  9. package/es/action-sheet/style/less.js +0 -7
  10. package/es/area/index.js +0 -321
  11. package/es/area/style/index.js +0 -3
  12. package/es/area/style/less.js +0 -3
  13. package/es/button/index.css +0 -1
  14. package/es/button/index.js +0 -171
  15. package/es/button/index.less +0 -238
  16. package/es/button/style/index.js +0 -5
  17. package/es/button/style/less.js +0 -5
  18. package/es/calendar/components/Header.js +0 -55
  19. package/es/calendar/components/Month.js +0 -383
  20. package/es/calendar/index.css +0 -1
  21. package/es/calendar/index.js +0 -539
  22. package/es/calendar/index.less +0 -210
  23. package/es/calendar/style/index.js +0 -9
  24. package/es/calendar/style/less.js +0 -9
  25. package/es/calendar/utils.js +0 -66
  26. package/es/cell/index.css +0 -1
  27. package/es/cell/index.js +0 -121
  28. package/es/cell/index.less +0 -103
  29. package/es/cell/shared.js +0 -24
  30. package/es/cell/style/index.js +0 -4
  31. package/es/cell/style/less.js +0 -4
  32. package/es/cell-group/index.css +0 -1
  33. package/es/cell-group/index.js +0 -34
  34. package/es/cell-group/index.less +0 -12
  35. package/es/cell-group/style/index.js +0 -2
  36. package/es/cell-group/style/less.js +0 -2
  37. package/es/checkbox/index.css +0 -1
  38. package/es/checkbox/index.js +0 -80
  39. package/es/checkbox/index.less +0 -85
  40. package/es/checkbox/style/index.js +0 -4
  41. package/es/checkbox/style/less.js +0 -4
  42. package/es/checkbox-group/index.css +0 -1
  43. package/es/checkbox-group/index.js +0 -64
  44. package/es/checkbox-group/index.less +0 -8
  45. package/es/checkbox-group/style/index.js +0 -2
  46. package/es/checkbox-group/style/less.js +0 -2
  47. package/es/collapse/index.js +0 -39
  48. package/es/collapse/style/index.js +0 -1
  49. package/es/collapse/style/less.js +0 -1
  50. package/es/collapse-item/index.css +0 -1
  51. package/es/collapse-item/index.js +0 -198
  52. package/es/collapse-item/index.less +0 -67
  53. package/es/collapse-item/style/index.js +0 -5
  54. package/es/collapse-item/style/less.js +0 -5
  55. package/es/contact-card/index.css +0 -1
  56. package/es/contact-card/index.js +0 -59
  57. package/es/contact-card/index.less +0 -42
  58. package/es/contact-card/style/index.js +0 -5
  59. package/es/contact-card/style/less.js +0 -5
  60. package/es/contact-edit/index.css +0 -1
  61. package/es/contact-edit/index.js +0 -193
  62. package/es/contact-edit/index.less +0 -30
  63. package/es/contact-edit/style/index.js +0 -14
  64. package/es/contact-edit/style/less.js +0 -14
  65. package/es/contact-list/index.css +0 -1
  66. package/es/contact-list/index.js +0 -119
  67. package/es/contact-list/index.less +0 -54
  68. package/es/contact-list/style/index.js +0 -10
  69. package/es/contact-list/style/less.js +0 -10
  70. package/es/datetime-picker/DatePicker.js +0 -246
  71. package/es/datetime-picker/TimePicker.js +0 -104
  72. package/es/datetime-picker/index.js +0 -29
  73. package/es/datetime-picker/shared.js +0 -110
  74. package/es/datetime-picker/style/index.js +0 -3
  75. package/es/datetime-picker/style/less.js +0 -3
  76. package/es/datetime-picker/utils.js +0 -29
  77. package/es/demo-button/index-sfc.css +0 -1
  78. package/es/demo-button/index-sfc.less +0 -9
  79. package/es/demo-button/index.js +0 -27
  80. package/es/demo-button/style/index.js +0 -1
  81. package/es/demo-button/style/less.js +0 -1
  82. package/es/dialog/Dialog.js +0 -246
  83. package/es/dialog/index.css +0 -1
  84. package/es/dialog/index.js +0 -104
  85. package/es/dialog/index.less +0 -153
  86. package/es/dialog/style/index.js +0 -10
  87. package/es/dialog/style/less.js +0 -10
  88. package/es/dropdown-item/index.css +0 -1
  89. package/es/dropdown-item/index.js +0 -210
  90. package/es/dropdown-item/index.less +0 -39
  91. package/es/dropdown-item/style/index.js +0 -7
  92. package/es/dropdown-item/style/less.js +0 -7
  93. package/es/dropdown-menu/index.css +0 -1
  94. package/es/dropdown-menu/index.js +0 -132
  95. package/es/dropdown-menu/index.less +0 -77
  96. package/es/dropdown-menu/style/index.js +0 -2
  97. package/es/dropdown-menu/style/less.js +0 -2
  98. package/es/empty/Network.js +0 -193
  99. package/es/empty/index.css +0 -1
  100. package/es/empty/index.js +0 -81
  101. package/es/empty/index.less +0 -32
  102. package/es/empty/style/index.js +0 -2
  103. package/es/empty/style/less.js +0 -2
  104. package/es/field/index.css +0 -1
  105. package/es/field/index.js +0 -623
  106. package/es/field/index.less +0 -172
  107. package/es/field/style/index.js +0 -5
  108. package/es/field/style/less.js +0 -5
  109. package/es/form/index.js +0 -200
  110. package/es/form/style/index.js +0 -1
  111. package/es/form/style/less.js +0 -1
  112. package/es/goods-action/index.css +0 -1
  113. package/es/goods-action/index.js +0 -24
  114. package/es/goods-action/index.less +0 -19
  115. package/es/goods-action/style/index.js +0 -2
  116. package/es/goods-action/style/less.js +0 -2
  117. package/es/goods-action-button/index.css +0 -1
  118. package/es/goods-action-button/index.js +0 -57
  119. package/es/goods-action-button/index.less +0 -34
  120. package/es/goods-action-button/style/index.js +0 -6
  121. package/es/goods-action-button/style/less.js +0 -6
  122. package/es/icon/index.css +0 -1
  123. package/es/icon/index.js +0 -74
  124. package/es/icon/index.less +0 -11
  125. package/es/icon/local.css +0 -1
  126. package/es/icon/local.less +0 -1
  127. package/es/icon/style/index.js +0 -3
  128. package/es/icon/style/less.js +0 -3
  129. package/es/image/index.css +0 -1
  130. package/es/image/index.js +0 -189
  131. package/es/image/index.less +0 -47
  132. package/es/image/style/index.js +0 -4
  133. package/es/image/style/less.js +0 -4
  134. package/es/image-preview/ImagePreview.js +0 -234
  135. package/es/image-preview/ImagePreviewItem.js +0 -242
  136. package/es/image-preview/index.css +0 -1
  137. package/es/image-preview/index.js +0 -86
  138. package/es/image-preview/index.less +0 -103
  139. package/es/image-preview/shared.js +0 -7
  140. package/es/image-preview/style/index.js +0 -10
  141. package/es/image-preview/style/less.js +0 -10
  142. package/es/index-anchor/index.css +0 -1
  143. package/es/index-anchor/index.js +0 -83
  144. package/es/index-anchor/index.less +0 -21
  145. package/es/index-anchor/style/index.js +0 -2
  146. package/es/index-anchor/style/less.js +0 -2
  147. package/es/index-bar/index.css +0 -1
  148. package/es/index-bar/index.js +0 -222
  149. package/es/index-bar/index.less +0 -27
  150. package/es/index-bar/style/index.js +0 -2
  151. package/es/index-bar/style/less.js +0 -2
  152. package/es/index.js +0 -80
  153. package/es/info/index.css +0 -1
  154. package/es/info/index.js +0 -30
  155. package/es/info/index.less +0 -29
  156. package/es/info/style/index.js +0 -2
  157. package/es/info/style/less.js +0 -2
  158. package/es/lazyload/index.js +0 -2
  159. package/es/lazyload/style/index.js +0 -1
  160. package/es/lazyload/style/less.js +0 -1
  161. package/es/list/index.css +0 -1
  162. package/es/list/index.js +0 -178
  163. package/es/list/index.less +0 -21
  164. package/es/list/style/index.js +0 -3
  165. package/es/list/style/less.js +0 -3
  166. package/es/loading/index.css +0 -1
  167. package/es/loading/index.js +0 -86
  168. package/es/loading/index.less +0 -103
  169. package/es/loading/style/index.js +0 -2
  170. package/es/loading/style/less.js +0 -2
  171. package/es/locale/index.js +0 -27
  172. package/es/locale/lang/de-DE-formal.js +0 -90
  173. package/es/locale/lang/de-DE.js +0 -90
  174. package/es/locale/lang/en-US.js +0 -90
  175. package/es/locale/lang/es-ES.js +0 -90
  176. package/es/locale/lang/ja-JP.js +0 -91
  177. package/es/locale/lang/nb-NO.js +0 -90
  178. package/es/locale/lang/ro-RO.js +0 -90
  179. package/es/locale/lang/tr-TR.js +0 -90
  180. package/es/locale/lang/zh-CN.js +0 -91
  181. package/es/locale/lang/zh-HK.js +0 -91
  182. package/es/locale/lang/zh-TW.js +0 -91
  183. package/es/locale/style/index.js +0 -1
  184. package/es/locale/style/less.js +0 -1
  185. package/es/mixins/bind-event.js +0 -29
  186. package/es/mixins/checkbox.js +0 -139
  187. package/es/mixins/click-outside.js +0 -33
  188. package/es/mixins/close-on-popstate.js +0 -38
  189. package/es/mixins/field.js +0 -24
  190. package/es/mixins/popup/context.js +0 -10
  191. package/es/mixins/popup/index.js +0 -208
  192. package/es/mixins/popup/overlay.js +0 -76
  193. package/es/mixins/popup/type.js +0 -0
  194. package/es/mixins/portal.js +0 -48
  195. package/es/mixins/relation.js +0 -76
  196. package/es/mixins/slots.js +0 -23
  197. package/es/mixins/touch.js +0 -58
  198. package/es/nav-bar/index.css +0 -1
  199. package/es/nav-bar/index.js +0 -124
  200. package/es/nav-bar/index.less +0 -77
  201. package/es/nav-bar/style/index.js +0 -4
  202. package/es/nav-bar/style/less.js +0 -4
  203. package/es/number-keyboard/CollapseIcon.js +0 -16
  204. package/es/number-keyboard/DeleteIcon.js +0 -16
  205. package/es/number-keyboard/Key.js +0 -121
  206. package/es/number-keyboard/index.css +0 -1
  207. package/es/number-keyboard/index.js +0 -409
  208. package/es/number-keyboard/index.less +0 -191
  209. package/es/number-keyboard/style/index.js +0 -3
  210. package/es/number-keyboard/style/less.js +0 -3
  211. package/es/overlay/index.css +0 -1
  212. package/es/overlay/index.js +0 -53
  213. package/es/overlay/index.less +0 -11
  214. package/es/overlay/style/index.js +0 -2
  215. package/es/overlay/style/less.js +0 -2
  216. package/es/password-input/index.css +0 -1
  217. package/es/password-input/index.js +0 -84
  218. package/es/password-input/index.less +0 -83
  219. package/es/password-input/style/index.js +0 -2
  220. package/es/password-input/style/less.js +0 -2
  221. package/es/picker/PickerColumn.js +0 -300
  222. package/es/picker/index.css +0 -1
  223. package/es/picker/index.js +0 -383
  224. package/es/picker/index.less +0 -118
  225. package/es/picker/shared.js +0 -22
  226. package/es/picker/style/index.js +0 -3
  227. package/es/picker/style/less.js +0 -3
  228. package/es/popover/index.css +0 -1
  229. package/es/popover/index.js +0 -211
  230. package/es/popover/index.less +0 -270
  231. package/es/popover/style/index.js +0 -6
  232. package/es/popover/style/less.js +0 -6
  233. package/es/popup/index.css +0 -1
  234. package/es/popup/index.js +0 -111
  235. package/es/popup/index.less +0 -140
  236. package/es/popup/style/index.js +0 -5
  237. package/es/popup/style/less.js +0 -5
  238. package/es/pull-refresh/index.css +0 -1
  239. package/es/pull-refresh/index.js +0 -213
  240. package/es/pull-refresh/index.less +0 -25
  241. package/es/pull-refresh/style/index.js +0 -3
  242. package/es/pull-refresh/style/less.js +0 -3
  243. package/es/radio/index.css +0 -1
  244. package/es/radio/index.js +0 -32
  245. package/es/radio/index.less +0 -86
  246. package/es/radio/style/index.js +0 -4
  247. package/es/radio/style/less.js +0 -4
  248. package/es/radio-group/index.css +0 -1
  249. package/es/radio-group/index.js +0 -32
  250. package/es/radio-group/index.less +0 -8
  251. package/es/radio-group/style/index.js +0 -2
  252. package/es/radio-group/style/less.js +0 -2
  253. package/es/rate/index.css +0 -1
  254. package/es/rate/index.js +0 -227
  255. package/es/rate/index.less +0 -46
  256. package/es/rate/style/index.js +0 -4
  257. package/es/rate/style/less.js +0 -4
  258. package/es/search/index.css +0 -1
  259. package/es/search/index.js +0 -114
  260. package/es/search/index.less +0 -68
  261. package/es/search/style/index.js +0 -6
  262. package/es/search/style/less.js +0 -6
  263. package/es/slider/index.css +0 -1
  264. package/es/slider/index.js +0 -289
  265. package/es/slider/index.less +0 -94
  266. package/es/slider/style/index.js +0 -2
  267. package/es/slider/style/less.js +0 -2
  268. package/es/step/index.css +0 -1
  269. package/es/step/index.js +0 -115
  270. package/es/step/index.less +0 -151
  271. package/es/step/style/index.js +0 -4
  272. package/es/step/style/less.js +0 -4
  273. package/es/stepper/index.css +0 -1
  274. package/es/stepper/index.js +0 -355
  275. package/es/stepper/index.less +0 -129
  276. package/es/stepper/style/index.js +0 -2
  277. package/es/stepper/style/less.js +0 -2
  278. package/es/steps/index.css +0 -1
  279. package/es/steps/index.js +0 -35
  280. package/es/steps/index.less +0 -21
  281. package/es/steps/style/index.js +0 -2
  282. package/es/steps/style/less.js +0 -2
  283. package/es/sticky/index.css +0 -1
  284. package/es/sticky/index.js +0 -146
  285. package/es/sticky/index.less +0 -11
  286. package/es/sticky/style/index.js +0 -2
  287. package/es/sticky/style/less.js +0 -2
  288. package/es/style/animation.css +0 -1
  289. package/es/style/animation.less +0 -139
  290. package/es/style/base.css +0 -1
  291. package/es/style/base.less +0 -10
  292. package/es/style/clearfix.css +0 -1
  293. package/es/style/clearfix.less +0 -5
  294. package/es/style/ellipsis.css +0 -1
  295. package/es/style/ellipsis.less +0 -13
  296. package/es/style/hairline.css +0 -1
  297. package/es/style/hairline.less +0 -47
  298. package/es/style/iconfont.css +0 -1
  299. package/es/style/iconfont.less +0 -910
  300. package/es/style/mixins/clearfix.css +0 -0
  301. package/es/style/mixins/clearfix.less +0 -7
  302. package/es/style/mixins/ellipsis.css +0 -0
  303. package/es/style/mixins/ellipsis.less +0 -15
  304. package/es/style/mixins/hairline.css +0 -0
  305. package/es/style/mixins/hairline.less +0 -39
  306. package/es/style/normalize.css +0 -1
  307. package/es/style/normalize.less +0 -38
  308. package/es/style/reset.css +0 -1
  309. package/es/style/reset.less +0 -171
  310. package/es/style/var.css +0 -0
  311. package/es/style/var.less +0 -983
  312. package/es/swipe/index.css +0 -1
  313. package/es/swipe/index.js +0 -429
  314. package/es/swipe/index.less +0 -56
  315. package/es/swipe/style/index.js +0 -2
  316. package/es/swipe/style/less.js +0 -2
  317. package/es/swipe-item/index.css +0 -1
  318. package/es/swipe-item/index.js +0 -78
  319. package/es/swipe-item/index.less +0 -8
  320. package/es/swipe-item/style/index.js +0 -2
  321. package/es/swipe-item/style/less.js +0 -2
  322. package/es/switch/index.css +0 -1
  323. package/es/switch/index.js +0 -74
  324. package/es/switch/index.less +0 -57
  325. package/es/switch/shared.js +0 -19
  326. package/es/switch/style/index.js +0 -3
  327. package/es/switch/style/less.js +0 -3
  328. package/es/tab/index.css +0 -1
  329. package/es/tab/index.js +0 -102
  330. package/es/tab/index.less +0 -24
  331. package/es/tab/style/index.js +0 -2
  332. package/es/tab/style/less.js +0 -2
  333. package/es/tabs/Content.js +0 -78
  334. package/es/tabs/Title.js +0 -92
  335. package/es/tabs/index.css +0 -1
  336. package/es/tabs/index.js +0 -419
  337. package/es/tabs/index.less +0 -153
  338. package/es/tabs/style/index.js +0 -4
  339. package/es/tabs/style/less.js +0 -4
  340. package/es/tabs/utils.js +0 -43
  341. package/es/tag/index.css +0 -1
  342. package/es/tag/index.js +0 -74
  343. package/es/tag/index.less +0 -97
  344. package/es/tag/style/index.js +0 -4
  345. package/es/tag/style/less.js +0 -4
  346. package/es/toast/Toast.js +0 -155
  347. package/es/toast/index.css +0 -1
  348. package/es/toast/index.js +0 -189
  349. package/es/toast/index.less +0 -76
  350. package/es/toast/lock-click.js +0 -16
  351. package/es/toast/style/index.js +0 -7
  352. package/es/toast/style/less.js +0 -7
  353. package/es/types/address-edit.d.js +0 -11
  354. package/es/types/area.d.js +0 -11
  355. package/es/types/calendar.d.js +0 -11
  356. package/es/types/checkbox-group.d.js +0 -11
  357. package/es/types/checkbox.d.js +0 -11
  358. package/es/types/collapse-item.d.js +0 -11
  359. package/es/types/component.d.js +0 -11
  360. package/es/types/count-down.d.js +0 -11
  361. package/es/types/datetime-picker.d.js +0 -11
  362. package/es/types/dialog.d.js +0 -1
  363. package/es/types/dropdown-item.d.js +0 -11
  364. package/es/types/field.d.js +0 -11
  365. package/es/types/form.d.js +0 -11
  366. package/es/types/image-preview.d.js +0 -12
  367. package/es/types/index-bar.d.js +0 -11
  368. package/es/types/index.d.js +0 -590
  369. package/es/types/jsx.d.js +0 -0
  370. package/es/types/lazyload.d.js +0 -1
  371. package/es/types/list.d.js +0 -11
  372. package/es/types/locale.d.js +0 -1
  373. package/es/types/mixins/popup.d.js +0 -1
  374. package/es/types/notify.d.js +0 -2
  375. package/es/types/picker.d.js +0 -11
  376. package/es/types/progress.d.js +0 -11
  377. package/es/types/sku.d.js +0 -11
  378. package/es/types/swipe-cell.d.js +0 -11
  379. package/es/types/swipe.d.js +0 -11
  380. package/es/types/tabs.d.js +0 -11
  381. package/es/types/toast.d.js +0 -2
  382. package/es/types/uploader.d.js +0 -11
  383. package/es/uploader/index.css +0 -1
  384. package/es/uploader/index.js +0 -451
  385. package/es/uploader/index.less +0 -159
  386. package/es/uploader/style/index.js +0 -11
  387. package/es/uploader/style/less.js +0 -11
  388. package/es/uploader/utils.js +0 -57
  389. package/es/utils/constant.js +0 -10
  390. package/es/utils/create/bem.js +0 -39
  391. package/es/utils/create/component.js +0 -57
  392. package/es/utils/create/i18n.js +0 -16
  393. package/es/utils/create/index.js +0 -7
  394. package/es/utils/deep-assign.js +0 -24
  395. package/es/utils/deep-clone.js +0 -14
  396. package/es/utils/dom/event.js +0 -48
  397. package/es/utils/dom/node.js +0 -7
  398. package/es/utils/dom/raf.js +0 -36
  399. package/es/utils/dom/reset-scroll.js +0 -14
  400. package/es/utils/dom/scroll.js +0 -69
  401. package/es/utils/dom/style.js +0 -9
  402. package/es/utils/format/number.js +0 -47
  403. package/es/utils/format/string.js +0 -19
  404. package/es/utils/format/unit.js +0 -59
  405. package/es/utils/functional.js +0 -56
  406. package/es/utils/index.js +0 -29
  407. package/es/utils/interceptor.js +0 -22
  408. package/es/utils/router.js +0 -36
  409. package/es/utils/types.js +0 -0
  410. package/es/utils/validate/date.js +0 -4
  411. package/es/utils/validate/email.js +0 -5
  412. package/es/utils/validate/mobile.js +0 -4
  413. package/es/utils/validate/number.js +0 -11
  414. package/es/utils/validate/system.js +0 -9
  415. package/es/utils/vnodes.js +0 -36
  416. package/lib/action-sheet/index.css +0 -1
  417. package/lib/action-sheet/index.js +0 -194
  418. package/lib/action-sheet/index.less +0 -112
  419. package/lib/action-sheet/style/index.js +0 -7
  420. package/lib/action-sheet/style/less.js +0 -7
  421. package/lib/area/index.js +0 -331
  422. package/lib/area/style/index.js +0 -3
  423. package/lib/area/style/less.js +0 -3
  424. package/lib/button/index.css +0 -1
  425. package/lib/button/index.js +0 -188
  426. package/lib/button/index.less +0 -238
  427. package/lib/button/style/index.js +0 -5
  428. package/lib/button/style/less.js +0 -5
  429. package/lib/calendar/components/Header.js +0 -63
  430. package/lib/calendar/components/Month.js +0 -393
  431. package/lib/calendar/index.css +0 -1
  432. package/lib/calendar/index.js +0 -557
  433. package/lib/calendar/index.less +0 -210
  434. package/lib/calendar/style/index.js +0 -9
  435. package/lib/calendar/style/less.js +0 -9
  436. package/lib/calendar/utils.js +0 -91
  437. package/lib/cell/index.css +0 -1
  438. package/lib/cell/index.js +0 -137
  439. package/lib/cell/index.less +0 -103
  440. package/lib/cell/shared.js +0 -29
  441. package/lib/cell/style/index.js +0 -4
  442. package/lib/cell/style/less.js +0 -4
  443. package/lib/cell-group/index.css +0 -1
  444. package/lib/cell-group/index.js +0 -47
  445. package/lib/cell-group/index.less +0 -12
  446. package/lib/cell-group/style/index.js +0 -2
  447. package/lib/cell-group/style/less.js +0 -2
  448. package/lib/checkbox/index.css +0 -1
  449. package/lib/checkbox/index.js +0 -88
  450. package/lib/checkbox/index.less +0 -85
  451. package/lib/checkbox/style/index.js +0 -4
  452. package/lib/checkbox/style/less.js +0 -4
  453. package/lib/checkbox-group/index.css +0 -1
  454. package/lib/checkbox-group/index.js +0 -73
  455. package/lib/checkbox-group/index.less +0 -8
  456. package/lib/checkbox-group/style/index.js +0 -2
  457. package/lib/checkbox-group/style/less.js +0 -2
  458. package/lib/collapse/index.js +0 -48
  459. package/lib/collapse/style/index.js +0 -1
  460. package/lib/collapse/style/less.js +0 -1
  461. package/lib/collapse-item/index.css +0 -1
  462. package/lib/collapse-item/index.js +0 -213
  463. package/lib/collapse-item/index.less +0 -67
  464. package/lib/collapse-item/style/index.js +0 -5
  465. package/lib/collapse-item/style/less.js +0 -5
  466. package/lib/contact-card/index.css +0 -1
  467. package/lib/contact-card/index.js +0 -72
  468. package/lib/contact-card/index.less +0 -42
  469. package/lib/contact-card/style/index.js +0 -5
  470. package/lib/contact-card/style/less.js +0 -5
  471. package/lib/contact-edit/index.css +0 -1
  472. package/lib/contact-edit/index.js +0 -210
  473. package/lib/contact-edit/index.less +0 -30
  474. package/lib/contact-edit/style/index.js +0 -14
  475. package/lib/contact-edit/style/less.js +0 -14
  476. package/lib/contact-list/index.css +0 -1
  477. package/lib/contact-list/index.js +0 -138
  478. package/lib/contact-list/index.less +0 -54
  479. package/lib/contact-list/style/index.js +0 -10
  480. package/lib/contact-list/style/less.js +0 -10
  481. package/lib/datetime-picker/DatePicker.js +0 -261
  482. package/lib/datetime-picker/TimePicker.js +0 -117
  483. package/lib/datetime-picker/index.js +0 -41
  484. package/lib/datetime-picker/shared.js +0 -124
  485. package/lib/datetime-picker/style/index.js +0 -3
  486. package/lib/datetime-picker/style/less.js +0 -3
  487. package/lib/datetime-picker/utils.js +0 -39
  488. package/lib/demo-button/index-sfc.css +0 -1
  489. package/lib/demo-button/index-sfc.less +0 -9
  490. package/lib/demo-button/index.js +0 -33
  491. package/lib/demo-button/style/index.js +0 -1
  492. package/lib/demo-button/style/less.js +0 -1
  493. package/lib/dialog/Dialog.js +0 -261
  494. package/lib/dialog/index.css +0 -1
  495. package/lib/dialog/index.js +0 -116
  496. package/lib/dialog/index.less +0 -153
  497. package/lib/dialog/style/index.js +0 -10
  498. package/lib/dialog/style/less.js +0 -10
  499. package/lib/dropdown-item/index.css +0 -1
  500. package/lib/dropdown-item/index.js +0 -225
  501. package/lib/dropdown-item/index.less +0 -39
  502. package/lib/dropdown-item/style/index.js +0 -7
  503. package/lib/dropdown-item/style/less.js +0 -7
  504. package/lib/dropdown-menu/index.css +0 -1
  505. package/lib/dropdown-menu/index.js +0 -142
  506. package/lib/dropdown-menu/index.less +0 -77
  507. package/lib/dropdown-menu/style/index.js +0 -2
  508. package/lib/dropdown-menu/style/less.js +0 -2
  509. package/lib/empty/Network.js +0 -198
  510. package/lib/empty/index.css +0 -1
  511. package/lib/empty/index.js +0 -92
  512. package/lib/empty/index.less +0 -32
  513. package/lib/empty/style/index.js +0 -2
  514. package/lib/empty/style/less.js +0 -2
  515. package/lib/field/index.css +0 -1
  516. package/lib/field/index.js +0 -639
  517. package/lib/field/index.less +0 -172
  518. package/lib/field/style/index.js +0 -5
  519. package/lib/field/style/less.js +0 -5
  520. package/lib/form/index.js +0 -208
  521. package/lib/form/style/index.js +0 -1
  522. package/lib/form/style/less.js +0 -1
  523. package/lib/goods-action/index.css +0 -1
  524. package/lib/goods-action/index.js +0 -32
  525. package/lib/goods-action/index.less +0 -19
  526. package/lib/goods-action/style/index.js +0 -2
  527. package/lib/goods-action/style/less.js +0 -2
  528. package/lib/goods-action-button/index.css +0 -1
  529. package/lib/goods-action-button/index.js +0 -70
  530. package/lib/goods-action-button/index.less +0 -34
  531. package/lib/goods-action-button/style/index.js +0 -6
  532. package/lib/goods-action-button/style/less.js +0 -6
  533. package/lib/icon/index.css +0 -1
  534. package/lib/icon/index.js +0 -87
  535. package/lib/icon/index.less +0 -11
  536. package/lib/icon/local.css +0 -1
  537. package/lib/icon/local.less +0 -1
  538. package/lib/icon/style/index.js +0 -3
  539. package/lib/icon/style/less.js +0 -3
  540. package/lib/image/index.css +0 -1
  541. package/lib/image/index.js +0 -199
  542. package/lib/image/index.less +0 -47
  543. package/lib/image/style/index.js +0 -4
  544. package/lib/image/style/less.js +0 -4
  545. package/lib/image-preview/ImagePreview.js +0 -250
  546. package/lib/image-preview/ImagePreviewItem.js +0 -256
  547. package/lib/image-preview/index.css +0 -1
  548. package/lib/image-preview/index.js +0 -96
  549. package/lib/image-preview/index.less +0 -103
  550. package/lib/image-preview/shared.js +0 -13
  551. package/lib/image-preview/style/index.js +0 -10
  552. package/lib/image-preview/style/less.js +0 -10
  553. package/lib/index-anchor/index.css +0 -1
  554. package/lib/index-anchor/index.js +0 -93
  555. package/lib/index-anchor/index.less +0 -21
  556. package/lib/index-anchor/style/index.js +0 -2
  557. package/lib/index-anchor/style/less.js +0 -2
  558. package/lib/index-bar/index.css +0 -1
  559. package/lib/index-bar/index.js +0 -235
  560. package/lib/index-bar/index.less +0 -27
  561. package/lib/index-bar/style/index.js +0 -2
  562. package/lib/index-bar/style/less.js +0 -2
  563. package/lib/index.css +0 -1
  564. package/lib/index.js +0 -262
  565. package/lib/index.less +0 -52
  566. package/lib/info/index.css +0 -1
  567. package/lib/info/index.js +0 -42
  568. package/lib/info/index.less +0 -29
  569. package/lib/info/style/index.js +0 -2
  570. package/lib/info/style/less.js +0 -2
  571. package/lib/lazyload/index.js +0 -11
  572. package/lib/lazyload/style/index.js +0 -1
  573. package/lib/lazyload/style/less.js +0 -1
  574. package/lib/list/index.css +0 -1
  575. package/lib/list/index.js +0 -191
  576. package/lib/list/index.less +0 -21
  577. package/lib/list/style/index.js +0 -3
  578. package/lib/list/style/less.js +0 -3
  579. package/lib/loading/index.css +0 -1
  580. package/lib/loading/index.js +0 -98
  581. package/lib/loading/index.less +0 -103
  582. package/lib/loading/style/index.js +0 -2
  583. package/lib/loading/style/less.js +0 -2
  584. package/lib/locale/index.js +0 -38
  585. package/lib/locale/lang/de-DE-formal.js +0 -95
  586. package/lib/locale/lang/de-DE.js +0 -95
  587. package/lib/locale/lang/en-US.js +0 -95
  588. package/lib/locale/lang/es-ES.js +0 -95
  589. package/lib/locale/lang/ja-JP.js +0 -96
  590. package/lib/locale/lang/nb-NO.js +0 -95
  591. package/lib/locale/lang/ro-RO.js +0 -95
  592. package/lib/locale/lang/tr-TR.js +0 -95
  593. package/lib/locale/lang/zh-CN.js +0 -96
  594. package/lib/locale/lang/zh-HK.js +0 -96
  595. package/lib/locale/lang/zh-TW.js +0 -96
  596. package/lib/locale/style/index.js +0 -1
  597. package/lib/locale/style/less.js +0 -1
  598. package/lib/mixins/bind-event.js +0 -36
  599. package/lib/mixins/checkbox.js +0 -152
  600. package/lib/mixins/click-outside.js +0 -41
  601. package/lib/mixins/close-on-popstate.js +0 -46
  602. package/lib/mixins/field.js +0 -29
  603. package/lib/mixins/popup/context.js +0 -15
  604. package/lib/mixins/popup/index.js +0 -224
  605. package/lib/mixins/popup/overlay.js +0 -95
  606. package/lib/mixins/popup/type.js +0 -1
  607. package/lib/mixins/portal.js +0 -53
  608. package/lib/mixins/relation.js +0 -84
  609. package/lib/mixins/slots.js +0 -29
  610. package/lib/mixins/touch.js +0 -65
  611. package/lib/nav-bar/index.css +0 -1
  612. package/lib/nav-bar/index.js +0 -135
  613. package/lib/nav-bar/index.less +0 -77
  614. package/lib/nav-bar/style/index.js +0 -4
  615. package/lib/nav-bar/style/less.js +0 -4
  616. package/lib/number-keyboard/CollapseIcon.js +0 -21
  617. package/lib/number-keyboard/DeleteIcon.js +0 -21
  618. package/lib/number-keyboard/Key.js +0 -134
  619. package/lib/number-keyboard/index.css +0 -1
  620. package/lib/number-keyboard/index.js +0 -423
  621. package/lib/number-keyboard/index.less +0 -191
  622. package/lib/number-keyboard/style/index.js +0 -3
  623. package/lib/number-keyboard/style/less.js +0 -3
  624. package/lib/overlay/index.css +0 -1
  625. package/lib/overlay/index.js +0 -67
  626. package/lib/overlay/index.less +0 -11
  627. package/lib/overlay/style/index.js +0 -2
  628. package/lib/overlay/style/less.js +0 -2
  629. package/lib/password-input/index.css +0 -1
  630. package/lib/password-input/index.js +0 -97
  631. package/lib/password-input/index.less +0 -83
  632. package/lib/password-input/style/index.js +0 -2
  633. package/lib/password-input/style/less.js +0 -2
  634. package/lib/picker/PickerColumn.js +0 -314
  635. package/lib/picker/index.css +0 -1
  636. package/lib/picker/index.js +0 -399
  637. package/lib/picker/index.less +0 -118
  638. package/lib/picker/shared.js +0 -28
  639. package/lib/picker/style/index.js +0 -3
  640. package/lib/picker/style/less.js +0 -3
  641. package/lib/popover/index.css +0 -1
  642. package/lib/popover/index.js +0 -226
  643. package/lib/popover/index.less +0 -270
  644. package/lib/popover/style/index.js +0 -6
  645. package/lib/popover/style/less.js +0 -6
  646. package/lib/popup/index.css +0 -1
  647. package/lib/popup/index.js +0 -122
  648. package/lib/popup/index.less +0 -140
  649. package/lib/popup/style/index.js +0 -5
  650. package/lib/popup/style/less.js +0 -5
  651. package/lib/pull-refresh/index.css +0 -1
  652. package/lib/pull-refresh/index.js +0 -227
  653. package/lib/pull-refresh/index.less +0 -25
  654. package/lib/pull-refresh/style/index.js +0 -3
  655. package/lib/pull-refresh/style/less.js +0 -3
  656. package/lib/radio/index.css +0 -1
  657. package/lib/radio/index.js +0 -40
  658. package/lib/radio/index.less +0 -86
  659. package/lib/radio/style/index.js +0 -4
  660. package/lib/radio/style/less.js +0 -4
  661. package/lib/radio-group/index.css +0 -1
  662. package/lib/radio-group/index.js +0 -41
  663. package/lib/radio-group/index.less +0 -8
  664. package/lib/radio-group/style/index.js +0 -2
  665. package/lib/radio-group/style/less.js +0 -2
  666. package/lib/rate/index.css +0 -1
  667. package/lib/rate/index.js +0 -240
  668. package/lib/rate/index.less +0 -46
  669. package/lib/rate/style/index.js +0 -4
  670. package/lib/rate/style/less.js +0 -4
  671. package/lib/search/index.css +0 -1
  672. package/lib/search/index.js +0 -128
  673. package/lib/search/index.less +0 -68
  674. package/lib/search/style/index.js +0 -6
  675. package/lib/search/style/less.js +0 -6
  676. package/lib/slider/index.css +0 -1
  677. package/lib/slider/index.js +0 -300
  678. package/lib/slider/index.less +0 -94
  679. package/lib/slider/style/index.js +0 -2
  680. package/lib/slider/style/less.js +0 -2
  681. package/lib/step/index.css +0 -1
  682. package/lib/step/index.js +0 -127
  683. package/lib/step/index.less +0 -151
  684. package/lib/step/style/index.js +0 -4
  685. package/lib/step/style/less.js +0 -4
  686. package/lib/stepper/index.css +0 -1
  687. package/lib/stepper/index.js +0 -369
  688. package/lib/stepper/index.less +0 -129
  689. package/lib/stepper/style/index.js +0 -2
  690. package/lib/stepper/style/less.js +0 -2
  691. package/lib/steps/index.css +0 -1
  692. package/lib/steps/index.js +0 -43
  693. package/lib/steps/index.less +0 -21
  694. package/lib/steps/style/index.js +0 -2
  695. package/lib/steps/style/less.js +0 -2
  696. package/lib/sticky/index.css +0 -1
  697. package/lib/sticky/index.js +0 -157
  698. package/lib/sticky/index.less +0 -11
  699. package/lib/sticky/style/index.js +0 -2
  700. package/lib/sticky/style/less.js +0 -2
  701. package/lib/style/animation.css +0 -1
  702. package/lib/style/animation.less +0 -139
  703. package/lib/style/base.css +0 -1
  704. package/lib/style/base.less +0 -10
  705. package/lib/style/clearfix.css +0 -1
  706. package/lib/style/clearfix.less +0 -5
  707. package/lib/style/ellipsis.css +0 -1
  708. package/lib/style/ellipsis.less +0 -13
  709. package/lib/style/hairline.css +0 -1
  710. package/lib/style/hairline.less +0 -47
  711. package/lib/style/iconfont.css +0 -1
  712. package/lib/style/iconfont.less +0 -910
  713. package/lib/style/mixins/clearfix.css +0 -0
  714. package/lib/style/mixins/clearfix.less +0 -7
  715. package/lib/style/mixins/ellipsis.css +0 -0
  716. package/lib/style/mixins/ellipsis.less +0 -15
  717. package/lib/style/mixins/hairline.css +0 -0
  718. package/lib/style/mixins/hairline.less +0 -39
  719. package/lib/style/normalize.css +0 -1
  720. package/lib/style/normalize.less +0 -38
  721. package/lib/style/reset.css +0 -1
  722. package/lib/style/reset.less +0 -171
  723. package/lib/style/var.css +0 -0
  724. package/lib/style/var.less +0 -983
  725. package/lib/swipe/index.css +0 -1
  726. package/lib/swipe/index.js +0 -443
  727. package/lib/swipe/index.less +0 -56
  728. package/lib/swipe/style/index.js +0 -2
  729. package/lib/swipe/style/less.js +0 -2
  730. package/lib/swipe-item/index.css +0 -1
  731. package/lib/swipe-item/index.js +0 -89
  732. package/lib/swipe-item/index.less +0 -8
  733. package/lib/swipe-item/style/index.js +0 -2
  734. package/lib/swipe-item/style/less.js +0 -2
  735. package/lib/switch/index.css +0 -1
  736. package/lib/switch/index.js +0 -86
  737. package/lib/switch/index.less +0 -57
  738. package/lib/switch/shared.js +0 -25
  739. package/lib/switch/style/index.js +0 -3
  740. package/lib/switch/style/less.js +0 -3
  741. package/lib/tab/index.css +0 -1
  742. package/lib/tab/index.js +0 -114
  743. package/lib/tab/index.less +0 -24
  744. package/lib/tab/style/index.js +0 -2
  745. package/lib/tab/style/less.js +0 -2
  746. package/lib/tabs/Content.js +0 -90
  747. package/lib/tabs/Title.js +0 -102
  748. package/lib/tabs/index.css +0 -1
  749. package/lib/tabs/index.js +0 -441
  750. package/lib/tabs/index.less +0 -153
  751. package/lib/tabs/style/index.js +0 -4
  752. package/lib/tabs/style/less.js +0 -4
  753. package/lib/tabs/utils.js +0 -53
  754. package/lib/tag/index.css +0 -1
  755. package/lib/tag/index.js +0 -87
  756. package/lib/tag/index.less +0 -97
  757. package/lib/tag/style/index.js +0 -4
  758. package/lib/tag/style/less.js +0 -4
  759. package/lib/tlvant.js +0 -16704
  760. package/lib/tlvant.min.js +0 -7
  761. package/lib/toast/Toast.js +0 -168
  762. package/lib/toast/index.css +0 -1
  763. package/lib/toast/index.js +0 -200
  764. package/lib/toast/index.less +0 -76
  765. package/lib/toast/lock-click.js +0 -21
  766. package/lib/toast/style/index.js +0 -7
  767. package/lib/toast/style/less.js +0 -7
  768. package/lib/types/address-edit.d.js +0 -22
  769. package/lib/types/area.d.js +0 -22
  770. package/lib/types/calendar.d.js +0 -22
  771. package/lib/types/checkbox-group.d.js +0 -22
  772. package/lib/types/checkbox.d.js +0 -22
  773. package/lib/types/collapse-item.d.js +0 -22
  774. package/lib/types/component.d.js +0 -22
  775. package/lib/types/count-down.d.js +0 -22
  776. package/lib/types/datetime-picker.d.js +0 -22
  777. package/lib/types/dialog.d.js +0 -6
  778. package/lib/types/dropdown-item.d.js +0 -22
  779. package/lib/types/field.d.js +0 -22
  780. package/lib/types/form.d.js +0 -22
  781. package/lib/types/image-preview.d.js +0 -24
  782. package/lib/types/index-bar.d.js +0 -22
  783. package/lib/types/index.d.js +0 -862
  784. package/lib/types/jsx.d.js +0 -1
  785. package/lib/types/lazyload.d.js +0 -6
  786. package/lib/types/list.d.js +0 -22
  787. package/lib/types/locale.d.js +0 -6
  788. package/lib/types/mixins/popup.d.js +0 -8
  789. package/lib/types/notify.d.js +0 -11
  790. package/lib/types/picker.d.js +0 -22
  791. package/lib/types/progress.d.js +0 -22
  792. package/lib/types/sku.d.js +0 -22
  793. package/lib/types/swipe-cell.d.js +0 -22
  794. package/lib/types/swipe.d.js +0 -22
  795. package/lib/types/tabs.d.js +0 -22
  796. package/lib/types/toast.d.js +0 -11
  797. package/lib/types/uploader.d.js +0 -22
  798. package/lib/uploader/index.css +0 -1
  799. package/lib/uploader/index.js +0 -467
  800. package/lib/uploader/index.less +0 -159
  801. package/lib/uploader/style/index.js +0 -11
  802. package/lib/uploader/style/less.js +0 -11
  803. package/lib/uploader/utils.js +0 -71
  804. package/lib/utils/constant.js +0 -22
  805. package/lib/utils/create/bem.js +0 -44
  806. package/lib/utils/create/component.js +0 -70
  807. package/lib/utils/create/i18n.js +0 -27
  808. package/lib/utils/create/index.js +0 -15
  809. package/lib/utils/deep-assign.js +0 -30
  810. package/lib/utils/deep-clone.js +0 -20
  811. package/lib/utils/dom/event.js +0 -62
  812. package/lib/utils/dom/node.js +0 -12
  813. package/lib/utils/dom/raf.js +0 -47
  814. package/lib/utils/dom/reset-scroll.js +0 -21
  815. package/lib/utils/dom/scroll.js +0 -89
  816. package/lib/utils/dom/style.js +0 -14
  817. package/lib/utils/format/number.js +0 -53
  818. package/lib/utils/format/string.js +0 -26
  819. package/lib/utils/format/unit.js +0 -68
  820. package/lib/utils/functional.js +0 -68
  821. package/lib/utils/index.js +0 -56
  822. package/lib/utils/interceptor.js +0 -28
  823. package/lib/utils/router.js +0 -46
  824. package/lib/utils/types.js +0 -1
  825. package/lib/utils/validate/date.js +0 -10
  826. package/lib/utils/validate/email.js +0 -10
  827. package/lib/utils/validate/mobile.js +0 -9
  828. package/lib/utils/validate/number.js +0 -18
  829. package/lib/utils/validate/system.js +0 -17
  830. package/lib/utils/vnodes.js +0 -41
package/lib/tlvant.min.js DELETED
@@ -1,7 +0,0 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define("tlvant",["vue"],e):"object"==typeof exports?exports.tlvant=e(require("vue")):t.tlvant=e(t.Vue)}("undefined"!=typeof self?self:this,(function(t){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=16)}([function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"g",(function(){return o})),i.d(e,"h",(function(){return s})),i.d(e,"c",(function(){return a})),i.d(e,"d",(function(){return l})),i.d(e,"e",(function(){return c})),i.d(e,"f",(function(){return u})),i.d(e,"a",(function(){return h}));var n=i(2),r="undefined"!=typeof window,o=i.n(n).a.prototype.$isServer;function s(){}function a(t){return null!=t}function l(t){return"function"==typeof t}function c(t){return null!==t&&"object"==typeof t}function u(t){return c(t)&&l(t.then)&&l(t.catch)}function h(t,e){var i=e.split("."),n=t;return i.forEach((function(t){var e;n=null!=(e=n[t])?e:""})),n}},function(t,e,i){"use strict";function n(){return(n=Object.assign||function(t){for(var e,i=1;i<arguments.length;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)}var r=["attrs","props","domProps"],o=["class","style","directives"],s=["on","nativeOn"],a=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=function(t){return t.reduce((function(t,e){for(var i in e)if(t[i])if(-1!==r.indexOf(i))t[i]=n({},t[i],e[i]);else if(-1!==o.indexOf(i)){var l=t[i]instanceof Array?t[i]:[t[i]],c=e[i]instanceof Array?e[i]:[e[i]];t[i]=l.concat(c)}else if(-1!==s.indexOf(i))for(var u in e[i])if(t[i][u]){var h=t[i][u]instanceof Array?t[i][u]:[t[i][u]],d=e[i][u]instanceof Array?e[i][u]:[e[i][u]];t[i][u]=h.concat(d)}else t[i][u]=e[i][u];else if("hook"==i)for(var f in e[i])t[i][f]=t[i][f]?a(t[i][f],e[i][f]):e[i][f];else t[i]=e[i];else t[i]=e[i];return t}),{})}},function(e,i){e.exports=t},function(t,e,i){"use strict";i.d(e,"a",(function(){return r})),i.d(e,"b",(function(){return o}));var n=/-(\w)/g;function r(t){return t.replace(n,(function(t,e){return e.toUpperCase()}))}function o(t,e){void 0===e&&(e=2);for(var i=t+"";i.length<e;)i="0"+i;return i}},function(t,e,i){"use strict";(function(t){i.d(e,"c",(function(){return l})),i.d(e,"b",(function(){return c})),i.d(e,"a",(function(){return u}));var n=i(0),r=Date.now();var o=n.g?t:window,s=o.requestAnimationFrame||function(t){var e=Date.now(),i=Math.max(0,16-(e-r)),n=setTimeout(t,i);return r=e+i,n},a=o.cancelAnimationFrame||o.clearTimeout;function l(t){return s.call(o,t)}function c(t){l((function(){l(t)}))}function u(t){a.call(o,t)}}).call(this,i(11))},function(t,e,i){"use strict";i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return l}));var n,r=i(0),o=i(6);function s(t){if(Object(r.c)(t))return t=String(t),Object(o.b)(t)?t+"px":t}function a(t){return+(t=t.replace(/rem/g,""))*function(){if(!n){var t=document.documentElement,e=t.style.fontSize||window.getComputedStyle(t).fontSize;n=parseFloat(e)}return n}()}function l(t){if("number"==typeof t)return t;if(r.b){if(-1!==t.indexOf("rem"))return a(t);if(-1!==t.indexOf("vw"))return function(t){return+(t=t.replace(/vw/g,""))*window.innerWidth/100}(t);if(-1!==t.indexOf("vh"))return function(t){return+(t=t.replace(/vh/g,""))*window.innerHeight/100}(t)}return parseFloat(t)}},function(t,e,i){"use strict";function n(t){return/^\d+(\.\d+)?$/.test(t)}function r(t){return Number.isNaN?Number.isNaN(t):t!=t}i.d(e,"b",(function(){return n})),i.d(e,"a",(function(){return r}))},function(t,e,i){"use strict";var n=i(2),r=i.n(n),o=i(8),s=r.a.prototype,a=r.a.util.defineReactive;a(s,"$vantLang","zh-CN"),a(s,"$vantMessages",{"zh-CN":{name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",complete:"完成",loading:"加载中...",telEmpty:"请填写电话",nameEmpty:"请填写姓名",nameInvalid:"请输入正确的姓名",confirmDelete:"确定要删除吗",telInvalid:"请输入正确的手机号",vanCalendar:{end:"结束",start:"开始",title:"日期选择",confirm:"确定",startEnd:"开始/结束",weekdays:["日","一","二","三","四","五","六"],monthTitle:function(t,e){return t+"年"+e+"月"},rangePrompt:function(t){return"选择天数不能超过 "+t+" 天"}},vanCascader:{select:"请选择"},vanContactCard:{addText:"添加联系人"},vanContactList:{addText:"新建联系人"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无使用门槛",discount:function(t){return t+"折"},condition:function(t){return"满"+t+"元可用"}},vanCouponCell:{title:"优惠券",tips:"暂无可用",count:function(t){return t+"张可用"}},vanCouponList:{empty:"暂无优惠券",exchange:"兑换",close:"不使用优惠券",enable:"可用",disabled:"不可用",placeholder:"请输入优惠码"},vanAddressEdit:{area:"地区",postal:"邮政编码",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码格式不正确",defaultAddress:"设为默认收货地址",telPlaceholder:"收货人手机号",namePlaceholder:"收货人姓名",areaPlaceholder:"选择省 / 市 / 区"},vanAddressEditDetail:{label:"详细地址",placeholder:"街道门牌、楼层房间号等信息"},vanAddressList:{add:"新增地址"}}});e.a={messages:function(){return s.$vantMessages[s.$vantLang]},use:function(t,e){var i;s.$vantLang=t,this.add(((i={})[t]=e,i))},add:function(t){void 0===t&&(t={}),Object(o.a)(s.$vantMessages,t)}}},function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i(0),r=Object.prototype.hasOwnProperty;function o(t,e){return Object.keys(e).forEach((function(i){!function(t,e,i){var s=e[i];Object(n.c)(s)&&(r.call(t,i)&&Object(n.e)(s)?t[i]=o(Object(t[i]),e[i]):t[i]=s)}(t,e,i)})),t}},function(t,e,i){"use strict";function n(t){return function(e,i){return e&&"string"!=typeof e&&(i=e,e=""),""+(e=e?t+"__"+e:t)+function t(e,i){return i?"string"==typeof i?" "+e+"--"+i:Array.isArray(i)?i.reduce((function(i,n){return i+t(e,n)}),""):Object.keys(i).reduce((function(n,r){return n+(i[r]?t(e,r):"")}),""):""}(e,i)}}i.d(e,"a",(function(){return d}));var r=i(0),o=i(3),s={methods:{slots:function(t,e){void 0===t&&(t="default");var i=this.$slots,n=this.$scopedSlots[t];return n?n(e):i[t]}}};i(2);function a(t){var e=this.name;t.component(e,this),t.component(Object(o.a)("-"+e),this)}function l(t){return{functional:!0,props:t.props,model:t.model,render:function(e,i){return t(e,i.props,function(t){var e=t.scopedSlots||t.data.scopedSlots||{},i=t.slots();return Object.keys(i).forEach((function(t){e[t]||(e[t]=function(){return i[t]})})),e}(i),i)}}}function c(t){return function(e){return Object(r.d)(e)&&(e=l(e)),e.functional||(e.mixins=e.mixins||[],e.mixins.push(s)),e.name=t,e.install=a,e}}var u=i(7);function h(t){var e=Object(o.a)(t)+".";return function(t){for(var i=u.a.messages(),n=Object(r.a)(i,e+t)||Object(r.a)(i,t),o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];return Object(r.d)(n)?n.apply(void 0,s):n}}function d(t){return[c(t="van-"+t),n(t),h(t)]}},function(t,e,i){
2
- /*!
3
- * Vue-Lazyload.js v1.2.3
4
- * (c) 2018 Awe <hilongjw@gmail.com>
5
- * Released under the MIT License.
6
- */
7
- t.exports=function(){"use strict";function t(t){t=t||{};var n=arguments.length,r=0;if(1===n)return t;for(;++r<n;){var o=arguments[r];d(t)&&(t=o),i(o)&&e(t,o)}return t}function e(e,r){for(var o in f(e,r),r)if("__proto__"!==o&&n(r,o)){var s=r[o];i(s)?("undefined"===v(e[o])&&"function"===v(s)&&(e[o]=s),e[o]=t(e[o]||{},s)):e[o]=s}return e}function i(t){return"object"===v(t)||"function"===v(t)}function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function r(t,e){if(t.length){var i=t.indexOf(e);return i>-1?t.splice(i,1):void 0}}function o(t,e){if("IMG"===t.tagName&&t.getAttribute("data-srcset")){var i=t.getAttribute("data-srcset"),n=[],r=t.parentNode.offsetWidth*e,o=void 0,s=void 0,a=void 0;(i=i.trim().split(",")).map((function(t){t=t.trim(),-1===(o=t.lastIndexOf(" "))?(s=t,a=999998):(s=t.substr(0,o),a=parseInt(t.substr(o+1,t.length-o-2),10)),n.push([a,s])})),n.sort((function(t,e){if(t[0]<e[0])return-1;if(t[0]>e[0])return 1;if(t[0]===e[0]){if(-1!==e[1].indexOf(".webp",e[1].length-5))return 1;if(-1!==t[1].indexOf(".webp",t[1].length-5))return-1}return 0}));for(var l="",c=void 0,u=n.length,h=0;h<u;h++)if((c=n[h])[0]>=r){l=c[1];break}return l}}function s(t,e){for(var i=void 0,n=0,r=t.length;n<r;n++)if(e(t[n])){i=t[n];break}return i}function a(){if(!g)return!1;var t=!0,e=document;try{var i=e.createElement("object");i.type="image/webp",i.style.visibility="hidden",i.innerHTML="!",e.body.appendChild(i),t=!i.offsetWidth,e.body.removeChild(i)}catch(e){t=!1}return t}function l(){}var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},h=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),d=function(t){return null==t||"function"!=typeof t&&"object"!==(void 0===t?"undefined":c(t))},f=function(t,e){if(null==t)throw new TypeError("expected first argument to be an object.");if(void 0===e||"undefined"==typeof Symbol)return t;if("function"!=typeof Object.getOwnPropertySymbols)return t;for(var i=Object.prototype.propertyIsEnumerable,n=Object(t),r=arguments.length,o=0;++o<r;)for(var s=Object(arguments[o]),a=Object.getOwnPropertySymbols(s),l=0;l<a.length;l++){var c=a[l];i.call(s,c)&&(n[c]=s[c])}return n},p=Object.prototype.toString,v=function(t){var e=void 0===t?"undefined":c(t);return"undefined"===e?"undefined":null===t?"null":!0===t||!1===t||t instanceof Boolean?"boolean":"string"===e||t instanceof String?"string":"number"===e||t instanceof Number?"number":"function"===e||t instanceof Function?void 0!==t.constructor.name&&"Generator"===t.constructor.name.slice(0,9)?"generatorfunction":"function":void 0!==Array.isArray&&Array.isArray(t)?"array":t instanceof RegExp?"regexp":t instanceof Date?"date":"[object RegExp]"===(e=p.call(t))?"regexp":"[object Date]"===e?"date":"[object Arguments]"===e?"arguments":"[object Error]"===e?"error":"[object Promise]"===e?"promise":function(t){return t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}(t)?"buffer":"[object Set]"===e?"set":"[object WeakSet]"===e?"weakset":"[object Map]"===e?"map":"[object WeakMap]"===e?"weakmap":"[object Symbol]"===e?"symbol":"[object Map Iterator]"===e?"mapiterator":"[object Set Iterator]"===e?"setiterator":"[object String Iterator]"===e?"stringiterator":"[object Array Iterator]"===e?"arrayiterator":"[object Int8Array]"===e?"int8array":"[object Uint8Array]"===e?"uint8array":"[object Uint8ClampedArray]"===e?"uint8clampedarray":"[object Int16Array]"===e?"int16array":"[object Uint16Array]"===e?"uint16array":"[object Int32Array]"===e?"int32array":"[object Uint32Array]"===e?"uint32array":"[object Float32Array]"===e?"float32array":"[object Float64Array]"===e?"float64array":"object"},m=t,g="undefined"!=typeof window,y=g&&"IntersectionObserver"in window,b="event",x="observer",w=function(){function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i}if(g)return"function"==typeof window.CustomEvent?window.CustomEvent:(t.prototype=window.Event.prototype,t)}(),S=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return g&&window.devicePixelRatio||t},k=function(){if(g){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}}(),C={on:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];k?t.addEventListener(e,i,{capture:n,passive:!0}):t.addEventListener(e,i,n)},off:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.removeEventListener(e,i,n)}},O=function(t,e,i){var n=new Image;n.src=t.src,n.onload=function(){e({naturalHeight:n.naturalHeight,naturalWidth:n.naturalWidth,src:n.src})},n.onerror=function(t){i(t)}},T=function(t,e){return"undefined"!=typeof getComputedStyle?getComputedStyle(t,null).getPropertyValue(e):t.style[e]},$=function(t){return T(t,"overflow")+T(t,"overflow-y")+T(t,"overflow-x")},I={},B=function(){function t(e){var i=e.el,n=e.src,r=e.error,o=e.loading,s=e.bindType,a=e.$parent,l=e.options,c=e.elRenderer;u(this,t),this.el=i,this.src=n,this.error=r,this.loading=o,this.bindType=s,this.attempt=0,this.naturalHeight=0,this.naturalWidth=0,this.options=l,this.rect=null,this.$parent=a,this.elRenderer=c,this.performanceData={init:Date.now(),loadStart:0,loadEnd:0},this.filter(),this.initState(),this.render("loading",!1)}return h(t,[{key:"initState",value:function(){this.el.dataset.src=this.src,this.state={error:!1,loaded:!1,rendered:!1}}},{key:"record",value:function(t){this.performanceData[t]=Date.now()}},{key:"update",value:function(t){var e=t.src,i=t.loading,n=t.error,r=this.src;this.src=e,this.loading=i,this.error=n,this.filter(),r!==this.src&&(this.attempt=0,this.initState())}},{key:"getRect",value:function(){this.rect=this.el.getBoundingClientRect()}},{key:"checkInView",value:function(){return this.getRect(),this.rect.top<window.innerHeight*this.options.preLoad&&this.rect.bottom>this.options.preLoadTop&&this.rect.left<window.innerWidth*this.options.preLoad&&this.rect.right>0}},{key:"filter",value:function(){var t=this;(function(t){if(!(t instanceof Object))return[];if(Object.keys)return Object.keys(t);var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);return e})(this.options.filter).map((function(e){t.options.filter[e](t,t.options)}))}},{key:"renderLoading",value:function(t){var e=this;O({src:this.loading},(function(i){e.render("loading",!1),t()}),(function(){t(),e.options.silent||console.warn("VueLazyload log: load failed with loading image("+e.loading+")")}))}},{key:"load",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;return this.attempt>this.options.attempt-1&&this.state.error?(this.options.silent||console.log("VueLazyload log: "+this.src+" tried too more than "+this.options.attempt+" times"),void e()):this.state.loaded||I[this.src]?(this.state.loaded=!0,e(),this.render("loaded",!0)):void this.renderLoading((function(){t.attempt++,t.record("loadStart"),O({src:t.src},(function(i){t.naturalHeight=i.naturalHeight,t.naturalWidth=i.naturalWidth,t.state.loaded=!0,t.state.error=!1,t.record("loadEnd"),t.render("loaded",!1),I[t.src]=1,e()}),(function(e){!t.options.silent&&console.error(e),t.state.error=!0,t.state.loaded=!1,t.render("error",!1)}))}))}},{key:"render",value:function(t,e){this.elRenderer(this,t,e)}},{key:"performance",value:function(){var t="loading",e=0;return this.state.loaded&&(t="loaded",e=(this.performanceData.loadEnd-this.performanceData.loadStart)/1e3),this.state.error&&(t="error"),{src:this.src,state:t,time:e}}},{key:"destroy",value:function(){this.el=null,this.src=null,this.error=null,this.loading=null,this.bindType=null,this.attempt=0}}]),t}(),E="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",D=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],j={rootMargin:"0px",threshold:0},z=function(t){return function(){function e(t){var i=t.preLoad,n=t.error,r=t.throttleWait,o=t.preLoadTop,s=t.dispatchEvent,l=t.loading,c=t.attempt,h=t.silent,d=void 0===h||h,f=t.scale,p=t.listenEvents,v=(t.hasbind,t.filter),m=t.adapter,g=t.observer,y=t.observerOptions;u(this,e),this.version="1.2.3",this.mode=b,this.ListenerQueue=[],this.TargetIndex=0,this.TargetQueue=[],this.options={silent:d,dispatchEvent:!!s,throttleWait:r||200,preLoad:i||1.3,preLoadTop:o||0,error:n||E,loading:l||E,attempt:c||3,scale:f||S(f),ListenEvents:p||D,hasbind:!1,supportWebp:a(),filter:v||{},adapter:m||{},observer:!!g,observerOptions:y||j},this._initEvent(),this.lazyLoadHandler=function(t,e){var i=null,n=0;return function(){if(!i){var r=Date.now()-n,o=this,s=arguments,a=function(){n=Date.now(),i=!1,t.apply(o,s)};r>=e?a():i=setTimeout(a,e)}}}(this._lazyLoadHandler.bind(this),this.options.throttleWait),this.setMode(this.options.observer?x:b)}return h(e,[{key:"config",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};m(this.options,t)}},{key:"performance",value:function(){var t=[];return this.ListenerQueue.map((function(e){t.push(e.performance())})),t}},{key:"addLazyBox",value:function(t){this.ListenerQueue.push(t),g&&(this._addListenerTarget(window),this._observer&&this._observer.observe(t.el),t.$el&&t.$el.parentNode&&this._addListenerTarget(t.$el.parentNode))}},{key:"add",value:function(e,i,n){var r=this;if(function(t,e){for(var i=!1,n=0,r=t.length;n<r;n++)if(e(t[n])){i=!0;break}return i}(this.ListenerQueue,(function(t){return t.el===e})))return this.update(e,i),t.nextTick(this.lazyLoadHandler);var s=this._valueFormatter(i.value),a=s.src,l=s.loading,c=s.error;t.nextTick((function(){a=o(e,r.options.scale)||a,r._observer&&r._observer.observe(e);var s=Object.keys(i.modifiers)[0],u=void 0;s&&(u=(u=n.context.$refs[s])?u.$el||u:document.getElementById(s)),u||(u=function(t){if(g){if(!(t instanceof HTMLElement))return window;for(var e=t;e&&e!==document.body&&e!==document.documentElement&&e.parentNode;){if(/(scroll|auto)/.test($(e)))return e;e=e.parentNode}return window}}(e));var h=new B({bindType:i.arg,$parent:u,el:e,loading:l,error:c,src:a,elRenderer:r._elRenderer.bind(r),options:r.options});r.ListenerQueue.push(h),g&&(r._addListenerTarget(window),r._addListenerTarget(u)),r.lazyLoadHandler(),t.nextTick((function(){return r.lazyLoadHandler()}))}))}},{key:"update",value:function(e,i){var n=this,r=this._valueFormatter(i.value),a=r.src,l=r.loading,c=r.error;a=o(e,this.options.scale)||a;var u=s(this.ListenerQueue,(function(t){return t.el===e}));u&&u.update({src:a,loading:l,error:c}),this._observer&&(this._observer.unobserve(e),this._observer.observe(e)),this.lazyLoadHandler(),t.nextTick((function(){return n.lazyLoadHandler()}))}},{key:"remove",value:function(t){if(t){this._observer&&this._observer.unobserve(t);var e=s(this.ListenerQueue,(function(e){return e.el===t}));e&&(this._removeListenerTarget(e.$parent),this._removeListenerTarget(window),r(this.ListenerQueue,e)&&e.destroy())}}},{key:"removeComponent",value:function(t){t&&(r(this.ListenerQueue,t),this._observer&&this._observer.unobserve(t.el),t.$parent&&t.$el.parentNode&&this._removeListenerTarget(t.$el.parentNode),this._removeListenerTarget(window))}},{key:"setMode",value:function(t){var e=this;y||t!==x||(t=b),this.mode=t,t===b?(this._observer&&(this.ListenerQueue.forEach((function(t){e._observer.unobserve(t.el)})),this._observer=null),this.TargetQueue.forEach((function(t){e._initListen(t.el,!0)}))):(this.TargetQueue.forEach((function(t){e._initListen(t.el,!1)})),this._initIntersectionObserver())}},{key:"_addListenerTarget",value:function(t){if(t){var e=s(this.TargetQueue,(function(e){return e.el===t}));return e?e.childrenCount++:(e={el:t,id:++this.TargetIndex,childrenCount:1,listened:!0},this.mode===b&&this._initListen(e.el,!0),this.TargetQueue.push(e)),this.TargetIndex}}},{key:"_removeListenerTarget",value:function(t){var e=this;this.TargetQueue.forEach((function(i,n){i.el===t&&(--i.childrenCount||(e._initListen(i.el,!1),e.TargetQueue.splice(n,1),i=null))}))}},{key:"_initListen",value:function(t,e){var i=this;this.options.ListenEvents.forEach((function(n){return C[e?"on":"off"](t,n,i.lazyLoadHandler)}))}},{key:"_initEvent",value:function(){var t=this;this.Event={listeners:{loading:[],loaded:[],error:[]}},this.$on=function(e,i){t.Event.listeners[e].push(i)},this.$once=function(e,i){var n=t;t.$on(e,(function t(){n.$off(e,t),i.apply(n,arguments)}))},this.$off=function(e,i){i?r(t.Event.listeners[e],i):t.Event.listeners[e]=[]},this.$emit=function(e,i,n){t.Event.listeners[e].forEach((function(t){return t(i,n)}))}}},{key:"_lazyLoadHandler",value:function(){var t=this;this.ListenerQueue.forEach((function(e,i){e.state.loaded||e.checkInView()&&e.load((function(){!e.error&&e.loaded&&t.ListenerQueue.splice(i,1)}))}))}},{key:"_initIntersectionObserver",value:function(){var t=this;y&&(this._observer=new IntersectionObserver(this._observerHandler.bind(this),this.options.observerOptions),this.ListenerQueue.length&&this.ListenerQueue.forEach((function(e){t._observer.observe(e.el)})))}},{key:"_observerHandler",value:function(t,e){var i=this;t.forEach((function(t){t.isIntersecting&&i.ListenerQueue.forEach((function(e){if(e.el===t.target){if(e.state.loaded)return i._observer.unobserve(e.el);e.load()}}))}))}},{key:"_elRenderer",value:function(t,e,i){if(t.el){var n=t.el,r=t.bindType,o=void 0;switch(e){case"loading":o=t.loading;break;case"error":o=t.error;break;default:o=t.src}if(r?n.style[r]='url("'+o+'")':n.getAttribute("src")!==o&&n.setAttribute("src",o),n.setAttribute("lazy",e),this.$emit(e,t,i),this.options.adapter[e]&&this.options.adapter[e](t,this.options),this.options.dispatchEvent){var s=new w(e,{detail:t});n.dispatchEvent(s)}}}},{key:"_valueFormatter",value:function(t){var e=t,i=this.options.loading,n=this.options.error;return function(t){return null!==t&&"object"===(void 0===t?"undefined":c(t))}(t)&&(t.src||this.options.silent||console.error("Vue Lazyload warning: miss src with "+t),e=t.src,i=t.loading||this.options.loading,n=t.error||this.options.error),{src:e,loading:i,error:n}}}]),e}()},P=function(t){return{props:{tag:{type:String,default:"div"}},render:function(t){return!1===this.show?t(this.tag):t(this.tag,null,this.$slots.default)},data:function(){return{el:null,state:{loaded:!1},rect:{},show:!1}},mounted:function(){this.el=this.$el,t.addLazyBox(this),t.lazyLoadHandler()},beforeDestroy:function(){t.removeComponent(this)},methods:{getRect:function(){this.rect=this.$el.getBoundingClientRect()},checkInView:function(){return this.getRect(),g&&this.rect.top<window.innerHeight*t.options.preLoad&&this.rect.bottom>0&&this.rect.left<window.innerWidth*t.options.preLoad&&this.rect.right>0},load:function(){this.show=!0,this.state.loaded=!0,this.$emit("show",this)}}}},L=function(){function t(e){var i=e.lazy;u(this,t),this.lazy=i,i.lazyContainerMananger=this,this._queue=[]}return h(t,[{key:"bind",value:function(t,e,i){var n=new M({el:t,binding:e,vnode:i,lazy:this.lazy});this._queue.push(n)}},{key:"update",value:function(t,e,i){var n=s(this._queue,(function(e){return e.el===t}));n&&n.update({el:t,binding:e,vnode:i})}},{key:"unbind",value:function(t,e,i){var n=s(this._queue,(function(e){return e.el===t}));n&&(n.clear(),r(this._queue,n))}}]),t}(),A={selector:"img"},M=function(){function t(e){var i=e.el,n=e.binding,r=e.vnode,o=e.lazy;u(this,t),this.el=null,this.vnode=r,this.binding=n,this.options={},this.lazy=o,this._queue=[],this.update({el:i,binding:n})}return h(t,[{key:"update",value:function(t){var e=this,i=t.el,n=t.binding;this.el=i,this.options=m({},A,n.value),this.getImgs().forEach((function(t){e.lazy.add(t,m({},e.binding,{value:{src:t.dataset.src,error:t.dataset.error,loading:t.dataset.loading}}),e.vnode)}))}},{key:"getImgs",value:function(){return function(t){for(var e=t.length,i=[],n=0;n<e;n++)i.push(t[n]);return i}(this.el.querySelectorAll(this.options.selector))}},{key:"clear",value:function(){var t=this;this.getImgs().forEach((function(e){return t.lazy.remove(e)})),this.vnode=null,this.binding=null,this.lazy=null}}]),t}();return{install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=z(t),n=new i(e),r=new L({lazy:n}),o="2"===t.version.split(".")[0];t.prototype.$Lazyload=n,e.lazyComponent&&t.component("lazy-component",P(n)),o?(t.directive("lazy",{bind:n.add.bind(n),update:n.update.bind(n),componentUpdated:n.lazyLoadHandler.bind(n),unbind:n.remove.bind(n)}),t.directive("lazy-container",{bind:r.bind.bind(r),update:r.update.bind(r),unbind:r.unbind.bind(r)})):(t.directive("lazy",{bind:n.lazyLoadHandler.bind(n),update:function(t,e){m(this.vm.$refs,this.vm.$els),n.add(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){n.remove(this.el)}}),t.directive("lazy-container",{update:function(t,e){r.update(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){r.unbind(this.el)}}))}}}()},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){var n=i(13),r=i(14);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var o={insert:"head",singleton:!1};n(r,o);t.exports=r.locals||{}},function(t,e,i){"use strict";var n,r=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},o=function(){var t={};return function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}t[e]=i}return t[e]}}(),s=[];function a(t){for(var e=-1,i=0;i<s.length;i++)if(s[i].identifier===t){e=i;break}return e}function l(t,e){for(var i={},n=[],r=0;r<t.length;r++){var o=t[r],l=e.base?o[0]+e.base:o[0],c=i[l]||0,u="".concat(l," ").concat(c);i[l]=c+1;var h=a(u),d={css:o[1],media:o[2],sourceMap:o[3]};-1!==h?(s[h].references++,s[h].updater(d)):s.push({identifier:u,updater:m(d,e),references:1}),n.push(u)}return n}function c(t){var e=document.createElement("style"),n=t.attributes||{};if(void 0===n.nonce){var r=i.nc;r&&(n.nonce=r)}if(Object.keys(n).forEach((function(t){e.setAttribute(t,n[t])})),"function"==typeof t.insert)t.insert(e);else{var s=o(t.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(e)}return e}var u,h=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function d(t,e,i,n){var r=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(t.styleSheet)t.styleSheet.cssText=h(e,r);else{var o=document.createTextNode(r),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function f(t,e,i){var n=i.css,r=i.media,o=i.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var p=null,v=0;function m(t,e){var i,n,r;if(e.singleton){var o=v++;i=p||(p=c(e)),n=d.bind(null,i,o,!1),r=d.bind(null,i,o,!0)}else i=c(e),n=f.bind(null,i,e),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(i)};return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else r()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=r());var i=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var n=0;n<i.length;n++){var r=a(i[n]);s[r].references--}for(var o=l(t,e),c=0;c<i.length;c++){var u=a(i[c]);0===s[u].references&&(s[u].updater(),s.splice(u,1))}i=o}}}},function(t,e,i){(e=i(15)(!1)).push([t.i,".demo-button{min-width:120px;color:#fff;font-size:16px;line-height:36px;border:none;border-radius:30px}",""]),t.exports=e},function(t,e,i){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=function(t,e){var i=t[1]||"",n=t[3];if(!n)return i;if(e&&"function"==typeof btoa){var r=(s=n,a=btoa(unescape(encodeURIComponent(JSON.stringify(s)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(l," */")),o=n.sources.map((function(t){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(t," */")}));return[i].concat(o).concat([r]).join("\n")}var s,a,l;return[i].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(i,"}"):i})).join("")},e.i=function(t,i,n){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(n)for(var o=0;o<this.length;o++){var s=this[o][0];null!=s&&(r[s]=!0)}for(var a=0;a<t.length;a++){var l=[].concat(t[a]);n&&r[l[0]]||(i&&(l[2]?l[2]="".concat(i," and ").concat(l[2]):l[2]=i),e.push(l))}},e}},function(t,e,i){"use strict";function n(){return(n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}i.r(e),i.d(e,"install",(function(){return Ls})),i.d(e,"version",(function(){return Ps})),i.d(e,"ActionSheet",(function(){return xt})),i.d(e,"Area",(function(){return Ht})),i.d(e,"Button",(function(){return Qt})),i.d(e,"Calendar",(function(){return Ie})),i.d(e,"Cell",(function(){return Pe})),i.d(e,"CellGroup",(function(){return Ve})),i.d(e,"Checkbox",(function(){return Xe})),i.d(e,"CheckboxGroup",(function(){return Qe})),i.d(e,"Collapse",(function(){return ti})),i.d(e,"CollapseItem",(function(){return oi})),i.d(e,"ContactCard",(function(){return hi})),i.d(e,"ContactEdit",(function(){return _i})),i.d(e,"ContactList",(function(){return ln})),i.d(e,"DatetimePicker",(function(){return yn})),i.d(e,"DemoButton",(function(){return bn})),i.d(e,"Dialog",(function(){return zi})),i.d(e,"DropdownItem",(function(){return kn})),i.d(e,"DropdownMenu",(function(){return In})),i.d(e,"Empty",(function(){return Pn})),i.d(e,"Field",(function(){return yi})),i.d(e,"Form",(function(){return Nn})),i.d(e,"GoodsAction",(function(){return Si})),i.d(e,"GoodsActionButton",(function(){return Ti})),i.d(e,"Icon",(function(){return rt})),i.d(e,"Image",(function(){return Hn})),i.d(e,"ImagePreview",(function(){return ar})),i.d(e,"IndexAnchor",(function(){return hr})),i.d(e,"IndexBar",(function(){return vr})),i.d(e,"Info",(function(){return G})),i.d(e,"Lazyload",(function(){return gr})),i.d(e,"List",(function(){return Sr})),i.d(e,"Loading",(function(){return vt})),i.d(e,"Locale",(function(){return kr.a})),i.d(e,"NavBar",(function(){return $r})),i.d(e,"NumberKeyboard",(function(){return Mr})),i.d(e,"Overlay",(function(){return T})),i.d(e,"PasswordInput",(function(){return Hr})),i.d(e,"Picker",(function(){return Mt})),i.d(e,"Popover",(function(){return Co})),i.d(e,"Popup",(function(){return lt})),i.d(e,"PullRefresh",(function(){return Eo})),i.d(e,"Radio",(function(){return Zi})),i.d(e,"RadioGroup",(function(){return en})),i.d(e,"Rate",(function(){return Po})),i.d(e,"Search",(function(){return Ro})),i.d(e,"Slider",(function(){return Yo})),i.d(e,"Step",(function(){return qo})),i.d(e,"Stepper",(function(){return es})),i.d(e,"Steps",(function(){return os})),i.d(e,"Sticky",(function(){return cs})),i.d(e,"Swipe",(function(){return Qn})),i.d(e,"SwipeItem",(function(){return tr})),i.d(e,"Switch",(function(){return Ni})),i.d(e,"Tab",(function(){return fs})),i.d(e,"Tabs",(function(){return Os})),i.d(e,"Tag",(function(){return qi})),i.d(e,"Toast",(function(){return Ce})),i.d(e,"Uploader",(function(){return zs}));var r=i(1),o=i.n(r),s=i(9),a=i(2),l=i.n(a),c=["ref","style","class","attrs","refInFor","nativeOn","directives","staticClass","staticStyle"],u={nativeOn:"on"};function h(t,e){var i=c.reduce((function(e,i){return t.data[i]&&(e[u[i]||i]=t.data[i]),e}),{});return e&&(i.on=i.on||{},n(i.on,t.data.on)),i}function d(t,e){for(var i=arguments.length,n=new Array(i>2?i-2:0),r=2;r<i;r++)n[r-2]=arguments[r];var o=t.listeners[e];o&&(Array.isArray(o)?o.forEach((function(t){t.apply(void 0,n)})):o.apply(void 0,n))}var f={zIndex:2e3,lockCount:0,stack:[],find:function(t){return this.stack.filter((function(e){return e.vm===t}))[0]}},p=i(0),v=!1;if(!p.g)try{var m={};Object.defineProperty(m,"passive",{get:function(){v=!0}}),window.addEventListener("test-passive",null,m)}catch(t){}function g(t,e,i,n){void 0===n&&(n=!1),p.g||t.addEventListener(e,i,!!v&&{capture:!1,passive:n})}function y(t,e,i){p.g||t.removeEventListener(e,i)}function b(t){t.stopPropagation()}function x(t,e){("boolean"!=typeof t.cancelable||t.cancelable)&&t.preventDefault(),e&&b(t)}var w=Object(s.a)("overlay"),S=w[0],k=w[1];function C(t){x(t,!0)}function O(t,e,i,r){var s=n({zIndex:e.zIndex},e.customStyle);return Object(p.c)(e.duration)&&(s.animationDuration=e.duration+"s"),t("transition",{attrs:{name:"van-fade"}},[t("div",o()([{directives:[{name:"show",value:e.show}],style:s,class:[k(),e.className],on:{touchmove:e.lockScroll?C:p.h}},h(r,!0)]),[null==i.default?void 0:i.default()])])}O.props={show:Boolean,zIndex:[Number,String],duration:[Number,String],className:null,customStyle:Object,lockScroll:{type:Boolean,default:!0}};var T=S(O);function $(t){var e=t.parentNode;e&&e.removeChild(t)}var I={className:"",customStyle:{}};function B(t){return e=T,i={on:{click:function(){t.$emit("click-overlay"),t.closeOnClickOverlay&&(t.onClickOverlay?t.onClickOverlay():t.close())}}},r=new l.a({el:document.createElement("div"),props:e.props,render:function(t){return t(e,n({props:this.$props},i))}}),document.body.appendChild(r.$el),r;var e,i,r}function E(t){var e=f.find(t);if(e){var i=t.$el,r=e.config,o=e.overlay;i&&i.parentNode&&i.parentNode.insertBefore(o.$el,i),n(o,I,r,{show:!0})}}function D(t){var e=f.find(t);e&&(e.overlay.show=!1)}function j(t){return t===window}var z=/scroll|auto/i;function P(t,e){void 0===e&&(e=window);for(var i=t;i&&"HTML"!==i.tagName&&"BODY"!==i.tagName&&1===i.nodeType&&i!==e;){var n=window.getComputedStyle(i).overflowY;if(z.test(n))return i;i=i.parentNode}return e}function L(t){var e="scrollTop"in t?t.scrollTop:t.pageYOffset;return Math.max(e,0)}function A(t,e){"scrollTop"in t?t.scrollTop=e:t.scrollTo(t.scrollX,e)}function M(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function N(t){A(window,t),A(document.body,t)}function V(t,e){if(j(t))return 0;var i=e?L(e):M();return t.getBoundingClientRect().top+i}var R={data:function(){return{direction:""}},methods:{touchStart:function(t){this.resetTouchStatus(),this.startX=t.touches[0].clientX,this.startY=t.touches[0].clientY},touchMove:function(t){var e,i,n=t.touches[0];this.deltaX=n.clientX-this.startX,this.deltaY=n.clientY-this.startY,this.offsetX=Math.abs(this.deltaX),this.offsetY=Math.abs(this.deltaY),this.direction=this.direction||(e=this.offsetX,i=this.offsetY,e>i&&e>10?"horizontal":i>e&&i>10?"vertical":"")},resetTouchStatus:function(){this.direction="",this.deltaX=0,this.deltaY=0,this.offsetX=0,this.offsetY=0},bindTouchEvent:function(t){var e=this.onTouchStart,i=this.onTouchMove,n=this.onTouchEnd;g(t,"touchstart",e),g(t,"touchmove",i),n&&(g(t,"touchend",n),g(t,"touchcancel",n))}}};function F(t){var e=void 0===t?{}:t,i=e.ref,n=e.afterPortal;return{props:{getContainer:[String,Function]},watch:{getContainer:"portal"},mounted:function(){this.getContainer&&this.portal()},methods:{portal:function(){var t,e,r=this.getContainer,o=i?this.$refs[i]:this.$el;r?t="string"==typeof(e=r)?document.querySelector(e):e():this.$parent&&(t=this.$parent.$el),t&&t!==o.parentNode&&t.appendChild(o),n&&n.call(this)}}}}var H=0;function W(t){var e="binded_"+H++;function i(){this[e]||(t.call(this,g,!0),this[e]=!0)}function n(){this[e]&&(t.call(this,y,!1),this[e]=!1)}return{mounted:i,activated:i,deactivated:n,beforeDestroy:n}}var _={mixins:[W((function(t,e){this.handlePopstate(e&&this.closeOnPopstate)}))],props:{closeOnPopstate:Boolean},data:function(){return{bindStatus:!1}},watch:{closeOnPopstate:function(t){this.handlePopstate(t)}},methods:{onPopstate:function(){this.close(),this.shouldReopen=!1},handlePopstate:function(t){this.$isServer||this.bindStatus!==t&&(this.bindStatus=t,(t?g:y)(window,"popstate",this.onPopstate))}}},Y={transitionAppear:Boolean,value:Boolean,overlay:Boolean,overlayStyle:Object,overlayClass:String,closeOnClickOverlay:Boolean,zIndex:[Number,String],lockScroll:{type:Boolean,default:!0},lazyRender:{type:Boolean,default:!0}};function X(t){return void 0===t&&(t={}),{mixins:[R,_,F({afterPortal:function(){this.overlay&&E()}})],props:Y,data:function(){return{inited:this.value}},computed:{shouldRender:function(){return this.inited||!this.lazyRender}},watch:{value:function(e){var i=e?"open":"close";this.inited=this.inited||this.value,this[i](),t.skipToggleEvent||this.$emit(i)},overlay:"renderOverlay"},mounted:function(){this.value&&this.open()},activated:function(){this.shouldReopen&&(this.$emit("input",!0),this.shouldReopen=!1)},beforeDestroy:function(){var t,e;t=this,(e=f.find(t))&&$(e.overlay.$el),this.opened&&this.removeLock(),this.getContainer&&$(this.$el)},deactivated:function(){this.value&&(this.close(),this.shouldReopen=!0)},methods:{open:function(){this.$isServer||this.opened||(void 0!==this.zIndex&&(f.zIndex=this.zIndex),this.opened=!0,this.renderOverlay(),this.addLock())},addLock:function(){this.lockScroll&&(g(document,"touchstart",this.touchStart),g(document,"touchmove",this.onTouchMove),f.lockCount||document.body.classList.add("van-overflow-hidden"),f.lockCount++)},removeLock:function(){this.lockScroll&&f.lockCount&&(f.lockCount--,y(document,"touchstart",this.touchStart),y(document,"touchmove",this.onTouchMove),f.lockCount||document.body.classList.remove("van-overflow-hidden"))},close:function(){this.opened&&(D(this),this.opened=!1,this.removeLock(),this.$emit("input",!1))},onTouchMove:function(t){this.touchMove(t);var e=this.deltaY>0?"10":"01",i=P(t.target,this.$el),n=i.scrollHeight,r=i.offsetHeight,o=i.scrollTop,s="11";0===o?s=r>=n?"00":"01":o+r>=n&&(s="10"),"11"===s||"vertical"!==this.direction||parseInt(s,2)&parseInt(e,2)||x(t,!0)},renderOverlay:function(){var t=this;!this.$isServer&&this.value&&this.$nextTick((function(){t.updateZIndex(t.overlay?1:0),t.overlay?function(t,e){var i=f.find(t);if(i)i.config=e;else{var n=B(t);f.stack.push({vm:t,config:e,overlay:n})}E(t)}(t,{zIndex:f.zIndex++,duration:t.duration,className:t.overlayClass,customStyle:t.overlayStyle}):D(t)}))},updateZIndex:function(t){void 0===t&&(t=0),this.$el.style.zIndex=++f.zIndex+t}}}}var K=i(5),U=Object(s.a)("info"),q=U[0],Q=U[1];function Z(t,e,i,n){var r=e.dot,s=e.info,a=Object(p.c)(s)&&""!==s;if(r||a)return t("div",o()([{class:Q({dot:r})},h(n,!0)]),[r?"":e.info])}Z.props={dot:Boolean,info:[Number,String]};var G=q(Z),J=Object(s.a)("icon"),tt=J[0],et=J[1];var it={medel:"medal","medel-o":"medal-o","calender-o":"calendar-o"};function nt(t,e,i,n){var r,s=function(t){return t&&it[t]||t}(e.name),a=function(t){return!!t&&-1!==t.indexOf("/")}(s);return t(e.tag,o()([{class:[e.classPrefix,a?"":e.classPrefix+"-"+s],style:{color:e.color,fontSize:Object(K.a)(e.size)}},h(n,!0)]),[i.default&&i.default(),a&&t("img",{class:et("image"),attrs:{src:s}}),t(G,{attrs:{dot:e.dot,info:null!=(r=e.badge)?r:e.info}})])}nt.props={dot:Boolean,name:String,size:[Number,String],info:[Number,String],badge:[Number,String],color:String,tag:{type:String,default:"i"},classPrefix:{type:String,default:et()}};var rt=tt(nt),ot=Object(s.a)("popup"),st=ot[0],at=ot[1],lt=st({mixins:[X()],props:{round:Boolean,duration:[Number,String],closeable:Boolean,transition:String,safeAreaInsetBottom:Boolean,closeIcon:{type:String,default:"arrow-down"},closeIconPosition:{type:String,default:"top-right"},position:{type:String,default:"center"},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}},beforeCreate:function(){var t=this,e=function(e){return function(i){return t.$emit(e,i)}};this.onClick=e("click"),this.onOpened=e("opened"),this.onClosed=e("closed")},methods:{onClickCloseIcon:function(t){this.$emit("click-close-icon",t),this.close()}},render:function(){var t,e=arguments[0];if(this.shouldRender){var i=this.round,n=this.position,r=this.duration,o="center"===n,s=this.transition||(o?"van-fade":"van-popup-slide-"+n),a={};if(Object(p.c)(r)){var l=o?"animationDuration":"transitionDuration";a[l]=r+"s"}return e("transition",{attrs:{appear:this.transitionAppear,name:s},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[e("div",{directives:[{name:"show",value:this.value}],style:a,class:at((t={round:i},t[n]=n,t["safe-area-inset-bottom"]=this.safeAreaInsetBottom,t)),on:{click:this.onClick}},[this.slots(),this.closeable&&e(rt,{attrs:{role:"button",tabindex:"0",name:this.closeIcon},class:at("close-icon",this.closeIconPosition),on:{click:this.onClickCloseIcon}})])])}}}),ct=Object(s.a)("loading"),ut=ct[0],ht=ct[1];function dt(t,e){if("spinner"===e.type){for(var i=[],n=0;n<12;n++)i.push(t("i"));return i}return t("svg",{class:ht("circular"),attrs:{viewBox:"25 25 50 50"}},[t("circle",{attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})])}function ft(t,e,i){if(i.default){var n,r={fontSize:Object(K.a)(e.textSize),color:null!=(n=e.textColor)?n:e.color};return t("span",{class:ht("text"),style:r},[i.default()])}}function pt(t,e,i,n){var r=e.color,s=e.size,a=e.type,l={color:r};if(s){var c=Object(K.a)(s);l.width=c,l.height=c}return t("div",o()([{class:ht([a,{vertical:e.vertical}])},h(n,!0)]),[t("span",{class:ht("spinner",a),style:l},[dt(t,e)]),ft(t,e,i)])}pt.props={color:String,size:[Number,String],vertical:Boolean,textSize:[Number,String],textColor:String,type:{type:String,default:"circular"}};var vt=ut(pt),mt=Object(s.a)("action-sheet"),gt=mt[0],yt=mt[1];function bt(t,e,i,n){var r=e.title,s=e.cancelText,a=e.closeable;function l(){d(n,"input",!1),d(n,"cancel")}return t(lt,o()([{class:yt(),attrs:{position:"bottom",round:e.round,value:e.value,overlay:e.overlay,duration:e.duration,lazyRender:e.lazyRender,lockScroll:e.lockScroll,getContainer:e.getContainer,closeOnPopstate:e.closeOnPopstate,closeOnClickOverlay:e.closeOnClickOverlay,safeAreaInsetBottom:e.safeAreaInsetBottom}},h(n,!0)]),[function(){if(r)return t("div",{class:yt("header")},[r,a&&t(rt,{attrs:{name:e.closeIcon},class:yt("close"),on:{click:l}})])}(),function(){var n=(null==i.description?void 0:i.description())||e.description;if(n)return t("div",{class:yt("description")},[n])}(),t("div",{class:yt("content")},[e.actions&&e.actions.map((function(i,r){var o=i.disabled,s=i.loading,a=i.callback;return t("button",{attrs:{type:"button"},class:[yt("item",{disabled:o,loading:s}),i.className],style:{color:i.color},on:{click:function(t){t.stopPropagation(),o||s||(a&&a(i),d(n,"select",i,r),e.closeOnClickAction&&d(n,"input",!1))}}},[s?t(vt,{class:yt("loading-icon")}):[t("span",{class:yt("name")},[i.name]),i.subname&&t("div",{class:yt("subname")},[i.subname])]])})),null==i.default?void 0:i.default()]),function(){if(s)return[t("div",{class:yt("gap")}),t("button",{attrs:{type:"button"},class:yt("cancel"),on:{click:l}},[s])]}()])}bt.props=n({},Y,{title:String,actions:Array,duration:[Number,String],cancelText:String,description:String,getContainer:[String,Function],closeOnPopstate:Boolean,closeOnClickAction:Boolean,round:{type:Boolean,default:!0},closeable:{type:Boolean,default:!0},closeIcon:{type:String,default:"cross"},safeAreaInsetBottom:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}});var xt=gt(bt),wt={title:String,loading:Boolean,readonly:Boolean,itemHeight:[Number,String],showToolbar:Boolean,cancelButtonText:String,confirmButtonText:String,allowHtml:{type:Boolean,default:!0},visibleItemCount:{type:[Number,String],default:6},swipeDuration:{type:[Number,String],default:1e3}},St="van-hairline",kt=i(8);function Ct(t){return Array.isArray(t)?t.map((function(t){return Ct(t)})):"object"==typeof t?Object(kt.a)({},t):t}function Ot(t,e,i){return Math.min(Math.max(t,e),i)}function Tt(t,e,i){var n=t.indexOf(e),r="";return-1===n?t:"-"===e&&0!==n?t.slice(0,n):("."===e&&t.match(/^(\.|-\.)/)&&(r=n?"-0":"0"),r+t.slice(0,n+1)+t.slice(n).replace(i,""))}function $t(t,e,i){void 0===e&&(e=!0),void 0===i&&(i=!0),t=e?Tt(t,".",/\./g):t.split(".")[0];var n=e?/[^-0-9.]/g:/[^-0-9]/g;return(t=i?Tt(t,"-",/-/g):t.replace(/-/,"")).replace(n,"")}var It=Object(s.a)("picker-column"),Bt=It[0],Et=It[1];function Dt(t){return Object(p.e)(t)&&t.disabled}var jt=Bt({mixins:[R],props:{valueKey:String,readonly:Boolean,allowHtml:Boolean,className:String,itemHeight:Number,defaultIndex:Number,swipeDuration:[Number,String],visibleItemCount:[Number,String],initialOptions:{type:Array,default:function(){return[]}}},data:function(){return{offset:0,duration:0,options:Ct(this.initialOptions),currentIndex:this.defaultIndex}},created:function(){this.$parent.children&&this.$parent.children.push(this),this.setIndex(this.currentIndex)},mounted:function(){this.bindTouchEvent(this.$el)},destroyed:function(){var t=this.$parent.children;t&&t.splice(t.indexOf(this),1)},watch:{initialOptions:"setOptions",defaultIndex:function(t){this.setIndex(t)}},computed:{count:function(){return this.options.length},baseOffset:function(){return this.itemHeight*(this.visibleItemCount-1)/2}},methods:{setOptions:function(t){JSON.stringify(t)!==JSON.stringify(this.options)&&(this.options=Ct(t),this.setIndex(this.defaultIndex))},onTouchStart:function(t){if(!this.readonly){if(this.touchStart(t),this.moving){var e=function(t){var e=window.getComputedStyle(t),i=e.transform||e.webkitTransform,n=i.slice(7,i.length-1).split(", ")[5];return Number(n)}(this.$refs.wrapper);this.offset=Math.min(0,e-this.baseOffset),this.startOffset=this.offset}else this.startOffset=this.offset;this.duration=0,this.transitionEndTrigger=null,this.touchStartTime=Date.now(),this.momentumOffset=this.startOffset}},onTouchMove:function(t){if(!this.readonly){this.touchMove(t),"vertical"===this.direction&&(this.moving=!0,x(t,!0)),this.offset=Ot(this.startOffset+this.deltaY,-this.count*this.itemHeight,this.itemHeight);var e=Date.now();e-this.touchStartTime>300&&(this.touchStartTime=e,this.momentumOffset=this.offset)}},onTouchEnd:function(){var t=this;if(!this.readonly){var e=this.offset-this.momentumOffset,i=Date.now()-this.touchStartTime;if(i<300&&Math.abs(e)>15)this.momentum(e,i);else{var n=this.getIndexByOffset(this.offset);this.duration=200,this.setIndex(n,!0),setTimeout((function(){t.moving=!1}),0)}}},onTransitionEnd:function(){this.stopMomentum()},onClickItem:function(t){this.moving||this.readonly||(this.transitionEndTrigger=null,this.duration=200,this.setIndex(t,!0))},adjustIndex:function(t){for(var e=t=Ot(t,0,this.count);e<this.count;e++)if(!Dt(this.options[e]))return e;for(var i=t-1;i>=0;i--)if(!Dt(this.options[i]))return i},getOptionText:function(t){return Object(p.e)(t)&&this.valueKey in t?t[this.valueKey]:t},setIndex:function(t,e){var i=this,n=-(t=this.adjustIndex(t)||0)*this.itemHeight,r=function(){t!==i.currentIndex&&(i.currentIndex=t,e&&i.$emit("change",t))};this.moving&&n!==this.offset?this.transitionEndTrigger=r:r(),this.offset=n},setValue:function(t){for(var e=this.options,i=0;i<e.length;i++)if(this.getOptionText(e[i])===t)return this.setIndex(i)},getValue:function(){return this.options[this.currentIndex]},getIndexByOffset:function(t){return Ot(Math.round(-t/this.itemHeight),0,this.count-1)},momentum:function(t,e){var i=Math.abs(t/e);t=this.offset+i/.003*(t<0?-1:1);var n=this.getIndexByOffset(t);this.duration=+this.swipeDuration,this.setIndex(n,!0)},stopMomentum:function(){this.moving=!1,this.duration=0,this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},genOptions:function(){var t=this,e=this.$createElement,i={height:this.itemHeight+"px"};return this.options.map((function(n,r){var s,a=t.getOptionText(n),l=Dt(n),c={style:i,attrs:{role:"button",tabindex:l?-1:0},class:[Et("item",{disabled:l,selected:r===t.currentIndex})],on:{click:function(){t.onClickItem(r)}}},u={class:"van-ellipsis",domProps:(s={},s[t.allowHtml?"innerHTML":"textContent"]=a,s)};return e("li",o()([{},c]),[t.slots("option",n)||e("div",o()([{},u]))])}))}},render:function(){var t=arguments[0],e={transform:"translate3d(0, "+(this.offset+this.baseOffset)+"px, 0)",transitionDuration:this.duration+"ms",transitionProperty:this.duration?"all":"none"};return t("div",{class:[Et(),this.className]},[t("ul",{ref:"wrapper",style:e,class:Et("wrapper"),on:{transitionend:this.onTransitionEnd}},[this.genOptions()])])}}),zt=Object(s.a)("picker"),Pt=zt[0],Lt=zt[1],At=zt[2],Mt=Pt({props:n({},wt,{defaultIndex:{type:[Number,String],default:0},columns:{type:Array,default:function(){return[]}},toolbarPosition:{type:String,default:"top"},valueKey:{type:String,default:"text"}}),data:function(){return{children:[],formattedColumns:[]}},computed:{itemPxHeight:function(){return this.itemHeight?Object(K.b)(this.itemHeight):44},dataType:function(){var t=this.columns[0]||{};return t.children?"cascade":t.values?"object":"text"}},watch:{columns:{handler:"format",immediate:!0}},methods:{format:function(){var t=this.columns,e=this.dataType;"text"===e?this.formattedColumns=[{values:t}]:"cascade"===e?this.formatCascade():this.formattedColumns=t},formatCascade:function(){for(var t=[],e={children:this.columns};e&&e.children;){for(var i,n=e.children,r=null!=(i=e.defaultIndex)?i:+this.defaultIndex;n[r]&&n[r].disabled;){if(!(r<n.length-1)){r=0;break}r++}t.push({values:e.children,className:e.className,defaultIndex:r}),e=n[r]}this.formattedColumns=t},emit:function(t){var e=this;if("text"===this.dataType)this.$emit(t,this.getColumnValue(0),this.getColumnIndex(0));else{var i=this.getValues();"cascade"===this.dataType&&(i=i.map((function(t){return t[e.valueKey]}))),this.$emit(t,i,this.getIndexes())}},onCascadeChange:function(t){for(var e={children:this.columns},i=this.getIndexes(),n=0;n<=t;n++)e=e.children[i[n]];for(;e&&e.children;)t++,this.setColumnValues(t,e.children),e=e.children[e.defaultIndex||0]},onChange:function(t){var e=this;if("cascade"===this.dataType&&this.onCascadeChange(t),"text"===this.dataType)this.$emit("change",this,this.getColumnValue(0),this.getColumnIndex(0));else{var i=this.getValues();"cascade"===this.dataType&&(i=i.map((function(t){return t[e.valueKey]}))),this.$emit("change",this,i,t)}},getColumn:function(t){return this.children[t]},getColumnValue:function(t){var e=this.getColumn(t);return e&&e.getValue()},setColumnValue:function(t,e){var i=this.getColumn(t);i&&(i.setValue(e),"cascade"===this.dataType&&this.onCascadeChange(t))},getColumnIndex:function(t){return(this.getColumn(t)||{}).currentIndex},setColumnIndex:function(t,e){var i=this.getColumn(t);i&&(i.setIndex(e),"cascade"===this.dataType&&this.onCascadeChange(t))},getColumnValues:function(t){return(this.children[t]||{}).options},setColumnValues:function(t,e){var i=this.children[t];i&&i.setOptions(e)},getValues:function(){return this.children.map((function(t){return t.getValue()}))},setValues:function(t){var e=this;t.forEach((function(t,i){e.setColumnValue(i,t)}))},getIndexes:function(){return this.children.map((function(t){return t.currentIndex}))},setIndexes:function(t){var e=this;t.forEach((function(t,i){e.setColumnIndex(i,t)}))},confirm:function(){this.children.forEach((function(t){return t.stopMomentum()})),this.emit("confirm")},cancel:function(){this.emit("cancel")},genTitle:function(){var t=this.$createElement,e=this.slots("title");return e||(this.title?t("div",{class:["van-ellipsis",Lt("title")]},[this.title]):void 0)},genCancel:function(){return(0,this.$createElement)("button",{attrs:{type:"button"},class:Lt("cancel"),on:{click:this.cancel}},[this.slots("cancel")||this.cancelButtonText||At("cancel")])},genConfirm:function(){return(0,this.$createElement)("button",{attrs:{type:"button"},class:Lt("confirm"),on:{click:this.confirm}},[this.slots("confirm")||this.confirmButtonText||At("confirm")])},genToolbar:function(){var t=this.$createElement;if(this.showToolbar)return t("div",{class:Lt("toolbar")},[this.slots()||[this.genCancel(),this.genTitle(),this.genConfirm()]])},genColumns:function(){var t=this.$createElement,e=this.itemPxHeight,i=e*this.visibleItemCount,n={height:e+"px"},r={height:i+"px"},o={backgroundSize:"100% "+(i-e)/2+"px"};return t("div",{class:Lt("columns"),style:r,on:{touchmove:x}},[this.genColumnItems(),t("div",{class:Lt("mask"),style:o}),t("div",{class:["van-hairline-unset--top-bottom",Lt("frame")],style:n})])},genColumnItems:function(){var t=this,e=this.$createElement;return this.formattedColumns.map((function(i,n){var r;return e(jt,{attrs:{readonly:t.readonly,valueKey:t.valueKey,allowHtml:t.allowHtml,className:i.className,itemHeight:t.itemPxHeight,defaultIndex:null!=(r=i.defaultIndex)?r:+t.defaultIndex,swipeDuration:t.swipeDuration,visibleItemCount:t.visibleItemCount,initialOptions:i.values},scopedSlots:{option:t.$scopedSlots.option},on:{change:function(){t.onChange(n)}}})}))}},render:function(t){return t("div",{class:Lt()},["top"===this.toolbarPosition?this.genToolbar():t(),this.loading?t(vt,{class:Lt("loading")}):t(),this.slots("columns-top"),this.genColumns(),this.slots("columns-bottom"),"bottom"===this.toolbarPosition?this.genToolbar():t()])}}),Nt=Object(s.a)("area"),Vt=Nt[0],Rt=Nt[1];function Ft(t,e){var i=t.$slots,n=t.$scopedSlots,r={};return e.forEach((function(t){n[t]?r[t]=n[t]:i[t]&&(r[t]=function(){return i[t]})})),r}var Ht=Vt({props:n({},wt,{value:String,areaList:{type:Object,default:function(){return{}}},columnsNum:{type:[Number,String],default:3},isOverseaCode:{type:Function,default:function(t){return"9"===t[0]}},columnsPlaceholder:{type:Array,default:function(){return[]}}}),data:function(){return{code:this.value,columns:[{values:[]},{values:[]},{values:[]}]}},computed:{province:function(){return this.areaList.province_list||{}},city:function(){return this.areaList.city_list||{}},county:function(){return this.areaList.county_list||{}},displayColumns:function(){return this.columns.slice(0,+this.columnsNum)},placeholderMap:function(){return{province:this.columnsPlaceholder[0]||"",city:this.columnsPlaceholder[1]||"",county:this.columnsPlaceholder[2]||""}}},watch:{value:function(t){this.code=t,this.setValues()},areaList:{deep:!0,handler:"setValues"},columnsNum:function(){var t=this;this.$nextTick((function(){t.setValues()}))}},mounted:function(){this.setValues()},methods:{getList:function(t,e){var i=[];if("province"!==t&&!e)return i;var n=this[t];if(i=Object.keys(n).map((function(t){return{code:t,name:n[t]}})),e&&(this.isOverseaCode(e)&&"city"===t&&(e="9"),i=i.filter((function(t){return 0===t.code.indexOf(e)}))),this.placeholderMap[t]&&i.length){var r="";"city"===t?r="000000".slice(2,4):"county"===t&&(r="000000".slice(4,6)),i.unshift({code:""+e+r,name:this.placeholderMap[t]})}return i},getIndex:function(t,e){var i="province"===t?2:"city"===t?4:6,n=this.getList(t,e.slice(0,i-2));this.isOverseaCode(e)&&"province"===t&&(i=1),e=e.slice(0,i);for(var r=0;r<n.length;r++)if(n[r].code.slice(0,i)===e)return r;return 0},parseOutputValues:function(t){var e=this;return t.map((function(t,i){return t?((t=JSON.parse(JSON.stringify(t))).code&&t.name!==e.columnsPlaceholder[i]||(t.code="",t.name=""),t):t}))},onChange:function(t,e,i){this.code=e[i].code,this.setValues();var n=this.parseOutputValues(t.getValues());this.$emit("change",t,n,i)},onConfirm:function(t,e){t=this.parseOutputValues(t),this.setValues(),this.$emit("confirm",t,e)},getDefaultCode:function(){if(this.columnsPlaceholder.length)return"000000";var t=Object.keys(this.county);if(t[0])return t[0];var e=Object.keys(this.city);return e[0]?e[0]:""},setValues:function(){var t=this.code;t||(t=this.getDefaultCode());var e=this.$refs.picker,i=this.getList("province"),n=this.getList("city",t.slice(0,2));e&&(e.setColumnValues(0,i),e.setColumnValues(1,n),n.length&&"00"===t.slice(2,4)&&!this.isOverseaCode(t)&&(t=n[0].code),e.setColumnValues(2,this.getList("county",t.slice(0,4))),e.setIndexes([this.getIndex("province",t),this.getIndex("city",t),this.getIndex("county",t)]))},getValues:function(){var t=this.$refs.picker,e=t?t.getValues().filter((function(t){return!!t})):[];return e=this.parseOutputValues(e),e},getArea:function(){var t=this.getValues(),e={code:"",country:"",province:"",city:"",county:""};if(!t.length)return e;var i=t.map((function(t){return t.name})),n=t.filter((function(t){return!!t.code}));return e.code=n.length?n[n.length-1].code:"",this.isOverseaCode(e.code)?(e.country=i[1]||"",e.province=i[2]||""):(e.province=i[0]||"",e.city=i[1]||"",e.county=i[2]||""),e},reset:function(t){this.code=t||"",this.setValues()}},render:function(){var t=arguments[0],e=n({},this.$listeners,{change:this.onChange,confirm:this.onConfirm});return t(Mt,{ref:"picker",class:Rt(),attrs:{showToolbar:!0,valueKey:"name",title:this.title,columns:this.displayColumns,loading:this.loading,readonly:this.readonly,itemHeight:this.itemHeight,swipeDuration:this.swipeDuration,visibleItemCount:this.visibleItemCount,cancelButtonText:this.cancelButtonText,confirmButtonText:this.confirmButtonText},scopedSlots:Ft(this,["title","columns-top","columns-bottom"]),on:n({},e)})}});function Wt(t,e){var i=e.to,n=e.url,r=e.replace;if(i&&t){var o=t[r?"replace":"push"](i);o&&o.catch&&o.catch((function(t){if(t&&!function(t){return"NavigationDuplicated"===t.name||t.message&&-1!==t.message.indexOf("redundant navigation")}(t))throw t}))}else n&&(r?location.replace(n):location.href=n)}function _t(t){Wt(t.parent&&t.parent.$router,t.props)}var Yt={url:String,replace:Boolean,to:[String,Object]},Xt=Object(s.a)("button"),Kt=Xt[0],Ut=Xt[1];function qt(t,e,i,n){var r,s=e.tag,a=e.icon,l=e.type,c=e.color,u=e.plain,f=e.disabled,p=e.loading,v=e.hairline,m=e.loadingText,g=e.iconPosition,y={};c&&(y.color=u?c:"white",u||(y.background=c),-1!==c.indexOf("gradient")?y.border=0:y.borderColor=c);var b,x,w=[Ut([l,e.size,{plain:u,loading:p,disabled:f,hairline:v,block:e.block,round:e.round,square:e.square}]),(r={},r["van-hairline--surround"]=v,r)];function S(){return p?i.loading?i.loading():t(vt,{class:Ut("loading"),attrs:{size:e.loadingSize,type:e.loadingType,color:"currentColor"}}):a?t(rt,{attrs:{name:a,classPrefix:e.iconPrefix},class:Ut("icon")}):void 0}return t(s,o()([{style:y,class:w,attrs:{type:e.nativeType,disabled:f},on:{click:function(t){p||f||(d(n,"click",t),_t(n))},touchstart:function(t){d(n,"touchstart",t)}}},h(n)]),[t("div",{class:Ut("content")},[(x=[],"left"===g&&x.push(S()),(b=p?m:i.default?i.default():e.text)&&x.push(t("span",{class:Ut("text")},[b])),"right"===g&&x.push(S()),x)])])}qt.props=n({},Yt,{text:String,icon:String,color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:String,loadingText:String,loadingType:String,tag:{type:String,default:"button"},type:{type:String,default:"default"},size:{type:String,default:"normal"},loadingSize:{type:String,default:"20px"},iconPosition:{type:String,default:"left"}});var Qt=Kt(qt),Zt=i(4),Gt=i(6);function Jt(t){return"[object Date]"===Object.prototype.toString.call(t)&&!Object(Gt.a)(t.getTime())}var te=Object(s.a)("calendar"),ee=te[0],ie=te[1],ne=te[2];function re(t,e){var i=t.getFullYear(),n=e.getFullYear(),r=t.getMonth(),o=e.getMonth();return i===n?r===o?0:r>o?1:-1:i>n?1:-1}function oe(t,e){var i=re(t,e);if(0===i){var n=t.getDate(),r=e.getDate();return n===r?0:n>r?1:-1}return i}function se(t,e){return(t=new Date(t)).setDate(t.getDate()+e),t}function ae(t){return se(t,1)}function le(t){var e=t[0].getTime();return(t[1].getTime()-e)/864e5+1}function ce(t){return new Date(t)}function ue(t){return Array.isArray(t)?t.map((function(t){return null===t?t:ce(t)})):ce(t)}var he=0;var de=Object(s.a)("toast"),fe=de[0],pe=de[1],ve=fe({mixins:[X()],props:{icon:String,className:null,iconPrefix:String,loadingType:String,forbidClick:Boolean,closeOnClick:Boolean,message:[Number,String],type:{type:String,default:"text"},position:{type:String,default:"middle"},transition:{type:String,default:"van-fade"},lockScroll:{type:Boolean,default:!1}},data:function(){return{clickable:!1}},mounted:function(){this.toggleClickable()},destroyed:function(){this.toggleClickable()},watch:{value:"toggleClickable",forbidClick:"toggleClickable"},methods:{onClick:function(){this.closeOnClick&&this.close()},toggleClickable:function(){var t=this.value&&this.forbidClick;this.clickable!==t&&(this.clickable=t,t?(he||document.body.classList.add("van-toast--unclickable"),he++):--he||document.body.classList.remove("van-toast--unclickable"))},onAfterEnter:function(){this.$emit("opened"),this.onOpened&&this.onOpened()},onAfterLeave:function(){this.$emit("closed")},genIcon:function(){var t=this.$createElement,e=this.icon,i=this.type,n=this.iconPrefix,r=this.loadingType;return e||"success"===i||"fail"===i||"tielvgou"===i?t(rt,{class:pe("icon"),attrs:{classPrefix:n,name:e||i}}):"loading"===i?t(vt,{class:pe("loading"),attrs:{type:r}}):void 0},genMessage:function(){var t=this.$createElement,e=this.type,i=this.message;if(Object(p.c)(i)&&""!==i)return"html"===e?t("div",{class:pe("text"),domProps:{innerHTML:i}}):t("div",{class:pe("text")},[i])}},render:function(){var t,e=arguments[0];return e("transition",{attrs:{name:this.transition},on:{afterEnter:this.onAfterEnter,afterLeave:this.onAfterLeave}},[e("div",{directives:[{name:"show",value:this.value}],class:[pe([this.position,(t={},t[this.type]=!this.icon,t)]),this.className],on:{click:this.onClick}},[this.genIcon(),this.genMessage()])])}}),me={icon:"",type:"text",mask:!1,value:!0,message:"",className:"",overlay:!1,onClose:null,onOpened:null,duration:2e3,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,getContainer:"body",overlayStyle:null,closeOnClick:!1,closeOnClickOverlay:!1},ge={},ye=[],be=!1,xe=n({},me);function we(t){return Object(p.e)(t)?t:{message:t}}function Se(){if(p.g)return{};if(!(ye=ye.filter((function(t){return!t.$el.parentNode||(e=t.$el,document.body.contains(e));var e}))).length||be){var t=new(l.a.extend(ve))({el:document.createElement("div")});t.$on("input",(function(e){t.value=e})),ye.push(t)}return ye[ye.length-1]}function ke(t){void 0===t&&(t={});var e=Se();return e.value&&e.updateZIndex(),t=we(t),(t=n({},xe,ge[t.type||xe.type],t)).clear=function(){e.value=!1,t.onClose&&(t.onClose(),t.onClose=null),be&&!p.g&&e.$on("closed",(function(){clearTimeout(e.timer),ye=ye.filter((function(t){return t!==e})),$(e.$el),e.$destroy()}))},n(e,function(t){return n({},t,{overlay:t.mask||t.overlay,mask:void 0,duration:void 0})}(t)),clearTimeout(e.timer),t.duration>0&&(e.timer=setTimeout((function(){e.clear()}),t.duration)),e}["loading","success","fail","tielvgou"].forEach((function(t){var e;ke[t]=(e=t,function(t){return ke(n({type:e},we(t)))})})),ke.clear=function(t){ye.length&&(t?(ye.forEach((function(t){t.clear()})),ye=[]):be?ye.shift().clear():ye[0].clear())},ke.setDefaultOptions=function(t,e){"string"==typeof t?ge[t]=e:n(xe,t)},ke.resetDefaultOptions=function(t){"string"==typeof t?ge[t]=null:(xe=n({},me),ge={})},ke.allowMultiple=function(t){void 0===t&&(t=!0),be=t},ke.install=function(){l.a.use(ve)},l.a.prototype.$toast=ke;var Ce=ke;function Oe(t,e){return 32-new Date(t,e-1,32).getDate()}var Te=(0,Object(s.a)("calendar-month")[0])({props:{date:Date,type:String,color:String,minDate:Date,maxDate:Date,showMark:Boolean,rowHeight:[Number,String],formatter:Function,lazyRender:Boolean,currentDate:[Date,Array],allowSameDay:Boolean,showSubtitle:Boolean,showMonthTitle:Boolean,firstDayOfWeek:Number,commonday:Number},data:function(){return{visible:!1}},computed:{title:function(){return t=this.date,ne("monthTitle",t.getFullYear(),t.getMonth()+1);var t},rowHeightWithUnit:function(){return Object(K.a)(this.rowHeight)},offset:function(){var t=this.firstDayOfWeek,e=this.date.getDay();return t?(e+7-this.firstDayOfWeek)%7:e},totalDay:function(){return Oe(this.date.getFullYear(),this.date.getMonth()+1)},shouldRender:function(){return this.visible||!this.lazyRender},placeholders:function(){for(var t=[],e=Math.ceil((this.totalDay+this.offset)/7),i=1;i<=e;i++)t.push({type:"placeholder"});return t},days:function(){for(var t=[],e=this.date.getFullYear(),i=this.date.getMonth(),n=1;n<=this.totalDay;n++){var r=new Date(e,i,n),o=this.getDayType(r),s={date:r,type:o,text:n,bottomInfo:this.getBottomInfo(o)};this.formatter&&(s=this.formatter(s)),t.push(s)}return t}},methods:{getHeight:function(){return this.height||(this.height=this.$el.getBoundingClientRect().height),this.height},scrollIntoView:function(t){var e=this.$refs,i=e.days,n=e.month,r=(this.showSubtitle?i:n).getBoundingClientRect().top-t.getBoundingClientRect().top+t.scrollTop;A(t,r)},getMultipleDayType:function(t){var e=this,i=function(t){return e.currentDate.some((function(e){return 0===oe(e,t)}))};if(i(t)){var n=se(t,-1),r=ae(t),o=i(n),s=i(r);return o&&s?"multiple-middle":o?"end":s?"start":"multiple-selected"}return""},getRangeDayType:function(t){var e=this.currentDate,i=e[0],n=e[1];if(!i)return"";var r=oe(t,i);if(!n)return 0===r?"start":"";var o=oe(t,n);return 0===r&&0===o&&this.allowSameDay?"start-end":0===r?"start":0===o?"end":r>0&&o<0?"middle":void 0},getDayType:function(t){var e=this.type,i=this.minDate,n=this.maxDate,r=this.currentDate;return oe(t,i)<0||oe(t,n)>0?"disabled":null!==r?"single"===e?0===oe(t,r)?"selected":"":"multiple"===e?this.getMultipleDayType(t):"range"===e?this.getRangeDayType(t):void 0:void 0},getBottomInfo:function(t){if("range"===this.type){if("start"===t||"end"===t)return ne(t);if("start-end"===t)return ne("startEnd")}},getDayStyle:function(t,e){var i={height:this.rowHeightWithUnit};return"placeholder"===t?(i.width="100%",i):(0===e&&(i.marginLeft=100*this.offset/7+"%"),this.color&&("start"===t||"end"===t||"start-end"===t||"multiple-selected"===t||"multiple-middle"===t?i.background=this.color:"middle"===t&&(i.color=this.color)),i)},genTitle:function(){var t=this.$createElement;if(this.showMonthTitle)return t("div",{class:ie("month-title")},[this.title])},genMark:function(){var t=this.$createElement;if(this.showMark&&this.shouldRender)return t("div",{class:ie("month-mark")},[this.date.getMonth()+1])},genDays:function(){var t=this.$createElement,e=this.shouldRender?this.days:this.placeholders;return t("div",{ref:"days",attrs:{role:"grid"},class:ie("days")},[this.genMark(),e.map(this.genDay)])},genDay:function(t,e){var i=this,n=this.$createElement,r=t.type,o=t.topInfo,s=t.bottomInfo,a=t.hotel,l=this.getDayStyle(r,e),c="disabled"===r,u=function(){c||i.$emit("click",t)},h=o&&n("div",{class:ie("top-info")},[o]),d=s&&n("div",{class:ie("bottom-info")},[s]);return"selected"===r?n("div",{attrs:{role:"gridcell",tabindex:-1},style:l,class:[ie("day"),t.className],on:{click:u}},[n("div",{class:ie("selected-day"),style:{width:this.rowHeightWithUnit,height:this.rowHeightWithUnit,background:this.color}},[h,t.text,d])]):n("div",{attrs:{role:"gridcell",tabindex:c?null:-1},style:l,class:[ie("day",r),t.className],on:{click:u}},[n("div",{directives:[{name:"show",value:a}],style:{width:"45px",height:"21px",background:"#999999",borderRadius:"10px",fontSize:"10px",alignItems:"center",justifyContent:"center",display:"flex",color:"#FFF",position:"absolute",marginBottom:"90px"}},["共",this.commonday,"晚"]),h,t.text,d])}},render:function(){var t=arguments[0];return t("div",{class:ie("month"),ref:"month"},[this.genTitle(),this.genDays()])}}),$e=(0,Object(s.a)("calendar-header")[0])({props:{title:String,subtitle:String,showTitle:Boolean,showSubtitle:Boolean,firstDayOfWeek:Number},methods:{genTitle:function(){var t=this.$createElement;if(this.showTitle){var e=this.slots("title")||this.title||ne("title");return t("div",{class:ie("header-title")},[e])}},genSubtitle:function(){var t=this.$createElement;if(this.showSubtitle)return t("div",{class:ie("header-subtitle")},[this.subtitle])},genWeekDays:function(){var t=this.$createElement,e=ne("weekdays"),i=this.firstDayOfWeek,n=[].concat(e.slice(i,7),e.slice(0,i));return t("div",{class:ie("weekdays")},[n.map((function(e){return t("span",{class:ie("weekday")},[e])}))])}},render:function(){var t=arguments[0];return t("div",{class:ie("header")},[this.genTitle(),this.genSubtitle(),this.genWeekDays()])}}),Ie=ee({props:{title:String,color:String,value:Boolean,readonly:Boolean,formatter:Function,rowHeight:[Number,String],confirmText:String,rangePrompt:String,defaultDate:[Date,Array],getContainer:[String,Function],allowSameDay:Boolean,confirmDisabledText:String,type:{type:String,default:"single"},round:{type:Boolean,default:!0},position:{type:String,default:"bottom"},poppable:{type:Boolean,default:!0},maxRange:{type:[Number,String],default:null},lazyRender:{type:Boolean,default:!0},showMark:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showSubtitle:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},minDate:{type:Date,validator:Jt,default:function(){return new Date}},maxDate:{type:Date,validator:Jt,default:function(){var t=new Date;return new Date(t.getFullYear(),t.getMonth()+6,t.getDate())}},firstDayOfWeek:{type:[Number,String],default:0,validator:function(t){return t>=0&&t<=6}}},data:function(){return{subtitle:"",currentDate:this.getInitialDate(),commonday:2}},computed:{months:function(){var t=[],e=new Date(this.minDate);e.setDate(1);do{t.push(new Date(e)),e.setMonth(e.getMonth()+1)}while(1!==re(e,this.maxDate));return t},buttonDisabled:function(){var t=this.type,e=this.currentDate;if(e){if("range"===t)return!e[0]||!e[1];if("multiple"===t)return!e.length}return!e},dayOffset:function(){return this.firstDayOfWeek?this.firstDayOfWeek%7:0}},watch:{value:"init",type:function(){this.reset()},defaultDate:function(t){this.currentDate=t,this.scrollIntoView()}},mounted:function(){this.init()},activated:function(){this.init()},methods:{reset:function(t){void 0===t&&(t=this.getInitialDate()),this.currentDate=t,this.scrollIntoView()},init:function(){var t=this;this.poppable&&!this.value||this.$nextTick((function(){t.bodyHeight=Math.floor(t.$refs.body.getBoundingClientRect().height),t.onScroll(),t.scrollIntoView()}))},scrollToDate:function(t){var e=this;Object(Zt.c)((function(){var i=e.value||!e.poppable;t&&i&&e.months.some((function(i,n){if(0===re(i,t)){var r=e.$refs,o=r.body;return r.months[n].scrollIntoView(o),!0}return!1}))}))},scrollIntoView:function(){var t=this.currentDate;if(t){var e="single"===this.type?t:t[0];this.scrollToDate(e)}},getInitialDate:function(){var t=this.type,e=this.minDate,i=this.maxDate,n=this.defaultDate;if(null===n)return n;var r=new Date;if(-1===oe(r,e)?r=e:1===oe(r,i)&&(r=i),"range"===t){var o=n||[];return[o[0]||r,o[1]||ae(r)]}return"multiple"===t?n||[r]:n||r},onScroll:function(){var t=this.$refs,e=t.body,i=t.months,n=L(e),r=n+this.bodyHeight,o=i.map((function(t){return t.getHeight()}));if(!(r>o.reduce((function(t,e){return t+e}),0)&&n>0)){for(var s,a=0,l=[-1,-1],c=0;c<i.length;c++){a<=r&&a+o[c]>=n&&(l[1]=c,s||(s=i[c],l[0]=c),i[c].showed||(i[c].showed=!0,this.$emit("month-show",{date:i[c].date,title:i[c].title}))),a+=o[c]}i.forEach((function(t,e){t.visible=e>=l[0]-1&&e<=l[1]+1})),s&&(this.subtitle=s.title)}},onClickDay:function(t){if(!this.readonly){var e=t.date,i=this.type,n=this.currentDate;if("range"===i){if(!n)return void this.select([e,null]);var r=n[0],o=n[1];if(r&&!o){var s=oe(e,r);1===s?this.select([r,e],!0):-1===s?this.select([e,null]):this.allowSameDay&&this.select([e,e],!0)}else this.select([e,null])}else if("multiple"===i){if(!n)return void this.select([e]);var a;if(this.currentDate.some((function(t,i){var n=0===oe(t,e);return n&&(a=i),n}))){var l=n.splice(a,1)[0];this.$emit("unselect",ce(l))}else this.maxRange&&n.length>=this.maxRange?Ce(this.rangePrompt||ne("rangePrompt",this.maxRange)):this.select([].concat(n,[e]))}else this.select(e,!0)}},togglePopup:function(t){this.$emit("input",t)},select:function(t,e){var i=this,n=function(t){i.currentDate=t,i.$emit("select",ue(i.currentDate))};if(e&&"range"===this.type&&!this.checkRange(t))return void(this.showConfirm?n([t[0],se(t[0],this.maxRange-1)]):n(t));n(t),e&&!this.showConfirm&&this.onConfirm()},checkRange:function(t){var e=this.maxRange,i=this.rangePrompt;return this.commonday=le(t),!(e&&le(t)>e)||(Ce(i||ne("rangePrompt",e)),!1)},onConfirm:function(){this.$emit("confirm",ue(this.currentDate))},genMonth:function(t,e){var i=this.$createElement,n=0!==e||!this.showSubtitle;return i(Te,{ref:"months",refInFor:!0,attrs:{date:t,type:this.type,color:this.color,minDate:this.minDate,maxDate:this.maxDate,showMark:this.showMark,formatter:this.formatter,rowHeight:this.rowHeight,lazyRender:this.lazyRender,currentDate:this.currentDate,showSubtitle:this.showSubtitle,allowSameDay:this.allowSameDay,showMonthTitle:n,firstDayOfWeek:this.dayOffset,commonday:this.commonday},on:{click:this.onClickDay}})},genFooterContent:function(){var t=this.$createElement,e=this.slots("footer");if(e)return e;if(this.showConfirm){var i=this.buttonDisabled?this.confirmDisabledText:this.confirmText;return t(Qt,{attrs:{round:!0,block:!0,type:"danger",color:this.color,disabled:this.buttonDisabled,nativeType:"button"},class:ie("confirm"),on:{click:this.onConfirm}},[i||ne("confirm")," "])}},genFooter:function(){return(0,this.$createElement)("div",{class:ie("footer",{unfit:!this.safeAreaInsetBottom})},[" ",this.genFooterContent()," "])},genCalendar:function(){var t=this,e=this.$createElement;return e("div",{class:ie()},[e($e,{attrs:{title:this.title,showTitle:this.showTitle,subtitle:this.subtitle,showSubtitle:this.showSubtitle,firstDayOfWeek:this.dayOffset},scopedSlots:{title:function(){return t.slots("title")}}})," ",e("div",{ref:"body",class:ie("body"),on:{scroll:this.onScroll}},[" ",this.months.map(this.genMonth)," "])," ",this.genFooter()," "])}},render:function(){var t=this,e=arguments[0];if(this.poppable){var i,n=function(e){return function(){return t.$emit(e)}};return e(lt,{attrs:(i={round:!0,value:this.value},i.round=this.round,i.position=this.position,i.closeable=this.showTitle||this.showSubtitle,i.getContainer=this.getContainer,i.closeOnPopstate=this.closeOnPopstate,i.closeOnClickOverlay=this.closeOnClickOverlay,i),class:ie("popup"),on:{input:this.togglePopup,open:n("open"),opened:n("opened"),close:n("close"),closed:n("closed")}},[this.genCalendar()," "])}return this.genCalendar()}}),Be={icon:String,size:String,center:Boolean,isLink:Boolean,required:Boolean,iconPrefix:String,titleStyle:null,titleClass:null,valueClass:null,labelClass:null,title:[Number,String],value:[Number,String],label:[Number,String],arrowDirection:String,border:{type:Boolean,default:!0},clickable:{type:Boolean,default:null}},Ee=Object(s.a)("cell"),De=Ee[0],je=Ee[1];function ze(t,e,i,n){var r,s=e.icon,a=e.size,l=e.title,c=e.label,u=e.value,f=e.isLink,v=i.title||Object(p.c)(l);function m(){if(i.label||Object(p.c)(c))return t("div",{class:[je("label"),e.labelClass]},[i.label?i.label():c])}var g=null!=(r=e.clickable)?r:f,y={clickable:g,center:e.center,required:e.required,borderless:!e.border};return a&&(y[a]=a),t("div",o()([{class:je(y),attrs:{role:g?"button":null,tabindex:g?0:null},on:{click:function(t){d(n,"click",t),_t(n)}}},h(n)]),[i.icon?i.icon():s?t(rt,{class:je("left-icon"),attrs:{name:s,classPrefix:e.iconPrefix}}):void 0,function(){if(v)return t("div",{class:[je("title"),e.titleClass],style:e.titleStyle},[i.title?i.title():t("span",[l]),m()])}(),function(){if(i.default||Object(p.c)(u))return t("div",{class:[je("value",{alone:!v}),e.valueClass]},[i.default?i.default():t("span",[u])])}(),function(){var n=i["right-icon"];if(n)return n();if(f){var r=e.arrowDirection;return t(rt,{class:je("right-icon"),attrs:{name:r?"arrow-"+r:"arrow"}})}}(),null==i.extra?void 0:i.extra()])}ze.props=n({},Be,Yt);var Pe=De(ze),Le=Object(s.a)("cell-group"),Ae=Le[0],Me=Le[1];function Ne(t,e,i,n){var r,s=t("div",o()([{class:[Me(),(r={},r["van-hairline--top-bottom"]=e.border,r)]},h(n,!0)]),[null==i.default?void 0:i.default()]);return e.title||i.title?t("div",[t("div",{class:Me("title")},[i.title?i.title():e.title]),s]):s}Ne.props={title:String,border:{type:Boolean,default:!0}};var Ve=Ae(Ne),Re={inject:{vanField:{default:null}},watch:{value:function(){var t=this.vanField;t&&(t.resetValidation(),t.validateWithTrigger("onChange"))}},created:function(){var t=this.vanField;t&&!t.children&&(t.children=this)}};function Fe(t,e){var i=e.$vnode.componentOptions;if(i&&i.children){var n=function(t){var e=[];return function t(i){i.forEach((function(i){e.push(i),i.componentInstance&&t(i.componentInstance.$children.map((function(t){return t.$vnode}))),i.children&&t(i.children)}))}(t),e}(i.children);t.sort((function(t,e){return n.indexOf(t.$vnode)-n.indexOf(e.$vnode)}))}}function He(t,e){var i,n;void 0===e&&(e={});var r=e.indexKey||"index";return{inject:(i={},i[t]={default:null},i),computed:(n={parent:function(){return this.disableBindRelation?null:this[t]}},n[r]=function(){return this.bindRelation(),this.parent?this.parent.children.indexOf(this):null},n),watch:{disableBindRelation:function(t){t||this.bindRelation()}},mounted:function(){this.bindRelation()},beforeDestroy:function(){var t=this;this.parent&&(this.parent.children=this.parent.children.filter((function(e){return e!==t})))},methods:{bindRelation:function(){if(this.parent&&-1===this.parent.children.indexOf(this)){var t=[].concat(this.parent.children,[this]);Fe(t,this.parent),this.parent.children=t}}}}}function We(t){return{provide:function(){var e;return(e={})[t]=this,e},data:function(){return{children:[]}}}}var _e=function(t){var e=t.parent,i=t.bem,n=t.role;return{mixins:[He(e),Re],props:{name:null,value:null,disabled:Boolean,iconSize:[Number,String],checkedColor:String,labelPosition:String,labelDisabled:Boolean,shape:{type:String,default:"round"},bindGroup:{type:Boolean,default:!0}},computed:{disableBindRelation:function(){return!this.bindGroup},isDisabled:function(){return this.parent&&this.parent.disabled||this.disabled},direction:function(){return this.parent&&this.parent.direction||null},iconStyle:function(){var t=this.checkedColor||this.parent&&this.parent.checkedColor;if(t&&this.checked&&!this.isDisabled)return{borderColor:t,backgroundColor:t}},tabindex:function(){return this.isDisabled||"radio"===n&&!this.checked?-1:0}},methods:{onClick:function(t){var e=this,i=t.target,n=this.$refs.icon,r=n===i||n.contains(i);this.isDisabled||!r&&this.labelDisabled?this.$emit("click",t):(this.toggle(),setTimeout((function(){e.$emit("click",t)})))},genIcon:function(){var t=this.$createElement,e=this.checked,n=this.iconSize||this.parent&&this.parent.iconSize;return t("div",{ref:"icon",class:i("icon",[this.shape,{disabled:this.isDisabled,checked:e}]),style:{fontSize:Object(K.a)(n)}},[this.slots("icon",{checked:e})||t(rt,{attrs:{name:"success"},style:this.iconStyle})])},genLabel:function(){var t=this.$createElement,e=this.slots();if(e)return t("span",{class:i("label",[this.labelPosition,{disabled:this.isDisabled}])},[e])}},render:function(){var t=arguments[0],e=[this.genIcon()];return"left"===this.labelPosition?e.unshift(this.genLabel()):e.push(this.genLabel()),t("div",{attrs:{role:n,tabindex:this.tabindex,"aria-checked":String(this.checked)},class:i([{disabled:this.isDisabled,"label-disabled":this.labelDisabled},this.direction]),on:{click:this.onClick}},[e])}}},Ye=Object(s.a)("checkbox"),Xe=(0,Ye[0])({mixins:[_e({bem:Ye[1],role:"checkbox",parent:"vanCheckbox"})],computed:{checked:{get:function(){return this.parent?-1!==this.parent.value.indexOf(this.name):this.value},set:function(t){this.parent?this.setParentValue(t):this.$emit("input",t)}}},watch:{value:function(t){this.$emit("change",t)}},methods:{toggle:function(t){var e=this;void 0===t&&(t=!this.checked),clearTimeout(this.toggleTask),this.toggleTask=setTimeout((function(){e.checked=t}))},setParentValue:function(t){var e=this.parent,i=e.value.slice();if(t){if(e.max&&i.length>=e.max)return;-1===i.indexOf(this.name)&&(i.push(this.name),e.$emit("input",i))}else{var n=i.indexOf(this.name);-1!==n&&(i.splice(n,1),e.$emit("input",i))}}}}),Ke=Object(s.a)("checkbox-group"),Ue=Ke[0],qe=Ke[1],Qe=Ue({mixins:[We("vanCheckbox"),Re],props:{max:[Number,String],disabled:Boolean,direction:String,iconSize:[Number,String],checkedColor:String,value:{type:Array,default:function(){return[]}}},watch:{value:function(t){this.$emit("change",t)}},methods:{toggleAll:function(t){void 0===t&&(t={}),"boolean"==typeof t&&(t={checked:t});var e=t,i=e.checked,n=e.skipDisabled,r=this.children.filter((function(t){return t.disabled&&n?t.checked:null!=i?i:!t.checked})).map((function(t){return t.name}));this.$emit("input",r)}},render:function(){var t=arguments[0];return t("div",{class:qe([this.direction])},[this.slots()])}}),Ze=Object(s.a)("collapse"),Ge=Ze[0],Je=Ze[1],ti=Ge({mixins:[We("vanCollapse")],props:{accordion:Boolean,value:[String,Number,Array],border:{type:Boolean,default:!0}},methods:{switch:function(t,e){this.accordion||(t=e?this.value.concat(t):this.value.filter((function(e){return e!==t}))),this.$emit("change",t),this.$emit("input",t)}},render:function(){var t,e=arguments[0];return e("div",{class:[Je(),(t={},t["van-hairline--top-bottom"]=this.border,t)]},[this.slots()])}}),ei=Object(s.a)("collapse-item"),ii=ei[0],ni=ei[1],ri=["title","icon","right-icon"],oi=ii({mixins:[He("vanCollapse")],props:n({},Be,{name:[Number,String],disabled:Boolean,isLink:{type:Boolean,default:!0}}),data:function(){return{show:null,inited:null}},computed:{currentName:function(){var t;return null!=(t=this.name)?t:this.index},expanded:function(){var t=this;if(!this.parent)return null;var e=this.parent,i=e.value;return e.accordion?i===this.currentName:i.some((function(e){return e===t.currentName}))}},created:function(){this.show=this.expanded,this.inited=this.expanded},watch:{expanded:function(t,e){var i=this;null!==e&&(t&&(this.show=!0,this.inited=!0),(t?this.$nextTick:Zt.c)((function(){var e=i.$refs,n=e.content,r=e.wrapper;if(n&&r){var o=n.offsetHeight;if(o){var s=o+"px";r.style.height=t?0:s,Object(Zt.b)((function(){r.style.height=t?s:0}))}else i.onTransitionEnd()}})))}},methods:{onClick:function(){this.disabled||this.toggle()},toggle:function(t){void 0===t&&(t=!this.expanded);var e=this.parent,i=this.currentName,n=e.accordion&&i===e.value?"":i;this.parent.switch(n,t)},onTransitionEnd:function(){this.expanded?this.$refs.wrapper.style.height="":this.show=!1},genTitle:function(){var t=this,e=this.$createElement,i=this.border,r=this.disabled,o=this.expanded,s=ri.reduce((function(e,i){return t.slots(i)&&(e[i]=function(){return t.slots(i)}),e}),{});return this.slots("value")&&(s.default=function(){return t.slots("value")}),e(Pe,{attrs:{role:"button",tabindex:r?-1:0,"aria-expanded":String(o)},class:ni("title",{disabled:r,expanded:o,borderless:!i}),on:{click:this.onClick},scopedSlots:s,props:n({},this.$props)})},genContent:function(){var t=this.$createElement;if(this.inited)return t("div",{directives:[{name:"show",value:this.show}],ref:"wrapper",class:ni("wrapper"),on:{transitionend:this.onTransitionEnd}},[t("div",{ref:"content",class:ni("content")},[this.slots()])])}},render:function(){var t=arguments[0];return t("div",{class:[ni({border:this.index&&this.border})]},[this.genTitle(),this.genContent()])}}),si=Object(s.a)("contact-card"),ai=si[0],li=si[1],ci=si[2];function ui(t,e,i,n){var r=e.type,s=e.editable;return t(Pe,o()([{attrs:{center:!0,border:!1,isLink:s,valueClass:li("value"),icon:"edit"===r?"contact":"add-square"},class:li([r]),on:{click:function(t){s&&d(n,"click",t)}}},h(n)]),["add"===r?e.addText||ci("addText"):[t("div",[ci("name")+":"+e.name]),t("div",[ci("tel")+":"+e.tel])]])}ui.props={tel:String,name:String,addText:String,editable:{type:Boolean,default:!0},type:{type:String,default:"add"}};var hi=ai(ui);var di=!p.g&&/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase());function fi(){di&&N(M())}var pi,vi=Object(s.a)("field"),mi=vi[0],gi=vi[1],yi=mi({inheritAttrs:!1,provide:function(){return{vanField:this}},inject:{vanForm:{default:null}},props:n({},Be,{name:String,rules:Array,disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},autosize:[Boolean,Object],leftIcon:String,rightIcon:String,clearable:Boolean,formatter:Function,maxlength:[Number,String],labelWidth:[Number,String],labelClass:null,labelAlign:String,inputAlign:String,placeholder:String,errorMessage:String,errorMessageAlign:String,showWordLimit:Boolean,value:{type:[Number,String],default:""},type:{type:String,default:"text"},error:{type:Boolean,default:null},colon:{type:Boolean,default:null},clearTrigger:{type:String,default:"focus"},formatTrigger:{type:String,default:"onChange"}}),data:function(){return{focused:!1,validateFailed:!1,validateMessage:""}},watch:{value:function(){this.updateValue(this.value),this.resetValidation(),this.validateWithTrigger("onChange"),this.$nextTick(this.adjustSize)}},mounted:function(){this.updateValue(this.value,this.formatTrigger),this.$nextTick(this.adjustSize),this.vanForm&&this.vanForm.addField(this)},beforeDestroy:function(){this.vanForm&&this.vanForm.removeField(this)},computed:{showClear:function(){var t=this.getProp("readonly");if(this.clearable&&!t){var e=Object(p.c)(this.value)&&""!==this.value,i="always"===this.clearTrigger||"focus"===this.clearTrigger&&this.focused;return e&&i}},showError:function(){return null!==this.error?this.error:!!(this.vanForm&&this.vanForm.showError&&this.validateFailed)||void 0},listeners:function(){return n({},this.$listeners,{blur:this.onBlur,focus:this.onFocus,input:this.onInput,click:this.onClickInput,keypress:this.onKeypress})},labelStyle:function(){var t=this.getProp("labelWidth");if(t)return{width:Object(K.a)(t)}},formValue:function(){return this.children&&(this.$scopedSlots.input||this.$slots.input)?this.children.value:this.value}},methods:{focus:function(){this.$refs.input&&this.$refs.input.focus()},blur:function(){this.$refs.input&&this.$refs.input.blur()},runValidator:function(t,e){return new Promise((function(i){var n=e.validator(t,e);if(Object(p.f)(n))return n.then(i);i(n)}))},isEmptyValue:function(t){return Array.isArray(t)?!t.length:0!==t&&!t},runSyncRule:function(t,e){return(!e.required||!this.isEmptyValue(t))&&!(e.pattern&&!e.pattern.test(t))},getRuleMessage:function(t,e){var i=e.message;return Object(p.d)(i)?i(t,e):i},runRules:function(t){var e=this;return t.reduce((function(t,i){return t.then((function(){if(!e.validateFailed){var t=e.formValue;return i.formatter&&(t=i.formatter(t,i)),e.runSyncRule(t,i)?i.validator?e.runValidator(t,i).then((function(n){!1===n&&(e.validateFailed=!0,e.validateMessage=e.getRuleMessage(t,i))})):void 0:(e.validateFailed=!0,void(e.validateMessage=e.getRuleMessage(t,i)))}}))}),Promise.resolve())},validate:function(t){var e=this;return void 0===t&&(t=this.rules),new Promise((function(i){t||i(),e.resetValidation(),e.runRules(t).then((function(){e.validateFailed?i({name:e.name,message:e.validateMessage}):i()}))}))},validateWithTrigger:function(t){if(this.vanForm&&this.rules){var e=this.vanForm.validateTrigger===t,i=this.rules.filter((function(i){return i.trigger?i.trigger===t:e}));this.validate(i)}},resetValidation:function(){this.validateFailed&&(this.validateFailed=!1,this.validateMessage="")},updateValue:function(t,e){void 0===e&&(e="onChange"),t=Object(p.c)(t)?String(t):"";var i=this.maxlength;if(Object(p.c)(i)&&t.length>i&&(t=this.value&&this.value.length===+i?this.value:t.slice(0,i)),"number"===this.type||"digit"===this.type){var n="number"===this.type;t=$t(t,n,n)}this.formatter&&e===this.formatTrigger&&(t=this.formatter(t));var r=this.$refs.input;r&&t!==r.value&&(r.value=t),t!==this.value&&this.$emit("input",t)},onInput:function(t){t.target.composing||this.updateValue(t.target.value)},onFocus:function(t){this.focused=!0,this.$emit("focus",t),this.getProp("readonly")&&this.blur()},onBlur:function(t){this.focused=!1,this.updateValue(this.value,"onBlur"),this.$emit("blur",t),this.validateWithTrigger("onBlur"),fi()},onClick:function(t){this.$emit("click",t)},onClickInput:function(t){this.$emit("click-input",t)},onClickLeftIcon:function(t){this.$emit("click-left-icon",t)},onClickRightIcon:function(t){this.$emit("click-right-icon",t)},onClear:function(t){x(t),this.$emit("input",""),this.$emit("clear",t)},onKeypress:function(t){13===t.keyCode&&(this.getProp("submitOnEnter")||"textarea"===this.type||x(t),"search"===this.type&&this.blur());this.$emit("keypress",t)},adjustSize:function(){var t=this.$refs.input;if("textarea"===this.type&&this.autosize&&t){t.style.height="auto";var e=t.scrollHeight;if(Object(p.e)(this.autosize)){var i=this.autosize,n=i.maxHeight,r=i.minHeight;n&&(e=Math.min(e,n)),r&&(e=Math.max(e,r))}e&&(t.style.height=e+"px")}},genInput:function(){var t=this.$createElement,e=this.type,i=this.getProp("disabled"),r=this.getProp("readonly"),s=this.slots("input"),a=this.getProp("inputAlign");if(s)return t("div",{class:gi("control",[a,"custom"]),on:{click:this.onClickInput}},[s]);var l={ref:"input",class:gi("control",a),domProps:{value:this.value},attrs:n({},this.$attrs,{name:this.name,disabled:i,readonly:r,placeholder:this.placeholder}),on:this.listeners,directives:[{name:"model",value:this.value}]};if("textarea"===e)return t("textarea",o()([{},l]));var c,u=e;return"number"===e&&(u="text",c="decimal"),"digit"===e&&(u="tel",c="numeric"),t("input",o()([{attrs:{type:u,inputmode:c}},l]))},genLeftIcon:function(){var t=this.$createElement;if(this.slots("left-icon")||this.leftIcon)return t("div",{class:gi("left-icon"),on:{click:this.onClickLeftIcon}},[this.slots("left-icon")||t(rt,{attrs:{name:this.leftIcon,classPrefix:this.iconPrefix}})])},genRightIcon:function(){var t=this.$createElement,e=this.slots;if(e("right-icon")||this.rightIcon)return t("div",{class:gi("right-icon"),on:{click:this.onClickRightIcon}},[e("right-icon")||t(rt,{attrs:{name:this.rightIcon,classPrefix:this.iconPrefix}})])},genWordLimit:function(){var t=this.$createElement;if(this.showWordLimit&&this.maxlength){var e=(this.value||"").length;return t("div",{class:gi("word-limit")},[t("span",{class:gi("word-num")},[e]),"/",this.maxlength])}},genMessage:function(){var t=this.$createElement;if(!this.vanForm||!1!==this.vanForm.showErrorMessage){var e=this.errorMessage||this.validateMessage;if(e){var i=this.getProp("errorMessageAlign");return t("div",{class:gi("error-message",i)},[e])}}},getProp:function(t){return Object(p.c)(this[t])?this[t]:this.vanForm&&Object(p.c)(this.vanForm[t])?this.vanForm[t]:void 0},genLabel:function(){var t=this.$createElement,e=this.getProp("colon")?":":"";return this.slots("label")?[this.slots("label"),e]:this.label?t("span",[this.label+e]):void 0}},render:function(){var t,e=arguments[0],i=this.slots,n=this.getProp("disabled"),r=this.getProp("labelAlign"),o={icon:this.genLeftIcon},s=this.genLabel();s&&(o.title=function(){return s});var a=this.slots("extra");return a&&(o.extra=function(){return a}),e(Pe,{attrs:{icon:this.leftIcon,size:this.size,center:this.center,border:this.border,isLink:this.isLink,required:this.required,clickable:this.clickable,titleStyle:this.labelStyle,valueClass:gi("value"),titleClass:[gi("label",r),this.labelClass],arrowDirection:this.arrowDirection},scopedSlots:o,class:gi((t={error:this.showError,disabled:n},t["label-"+r]=r,t["min-height"]="textarea"===this.type&&!this.autosize,t)),on:{click:this.onClick}},[e("div",{class:gi("body")},[this.genInput(),this.showClear&&e(rt,{attrs:{name:"clear"},class:gi("clear"),on:{touchstart:this.onClear}}),this.genRightIcon(),i("button")&&e("div",{class:gi("button")},[i("button")])]),this.genWordLimit(),this.genMessage()])}}),bi=Object(s.a)("goods-action"),xi=bi[0],wi=bi[1],Si=xi({mixins:[We("vanGoodsAction")],props:{safeAreaInsetBottom:{type:Boolean,default:!0}},render:function(){var t=arguments[0];return t("div",{class:wi({unfit:!this.safeAreaInsetBottom})},[this.slots()])}}),ki=Object(s.a)("goods-action-button"),Ci=ki[0],Oi=ki[1],Ti=Ci({mixins:[He("vanGoodsAction")],props:n({},Yt,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean}),computed:{isFirst:function(){var t=this.parent&&this.parent.children[this.index-1];return!t||t.$options.name!==this.$options.name},isLast:function(){var t=this.parent&&this.parent.children[this.index+1];return!t||t.$options.name!==this.$options.name}},methods:{onClick:function(t){this.$emit("click",t),Wt(this.$router,this)}},render:function(){var t=arguments[0];return t(Qt,{class:Oi([{first:this.isFirst,last:this.isLast},this.type]),attrs:{size:"large",type:this.type,icon:this.icon,color:this.color,loading:this.loading,disabled:this.disabled},on:{click:this.onClick}},[this.slots()||this.text])}}),$i=Object(s.a)("dialog"),Ii=$i[0],Bi=$i[1],Ei=$i[2],Di=Ii({mixins:[X()],props:{title:String,theme:String,width:[Number,String],message:String,className:null,callback:Function,beforeClose:Function,messageAlign:String,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showCancelButton:Boolean,overlay:{type:Boolean,default:!0},allowHtml:{type:Boolean,default:!0},transition:{type:String,default:"van-dialog-bounce"},showConfirmButton:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!1}},data:function(){return{loading:{confirm:!1,cancel:!1}}},methods:{onClickOverlay:function(){this.handleAction("overlay")},handleAction:function(t){var e=this;this.$emit(t),this.value&&(this.beforeClose?(this.loading[t]=!0,this.beforeClose(t,(function(i){!1!==i&&e.loading[t]&&e.onClose(t),e.loading.confirm=!1,e.loading.cancel=!1}))):this.onClose(t))},onClose:function(t){this.close(),this.callback&&this.callback(t)},onOpened:function(){this.$emit("opened")},onClosed:function(){this.$emit("closed")},genRoundButtons:function(){var t=this,e=this.$createElement;return e(Si,{class:Bi("footer")},[this.showCancelButton&&e(Ti,{attrs:{size:"large",type:"warning",text:this.cancelButtonText||Ei("cancel"),color:this.cancelButtonColor,loading:this.loading.cancel},class:Bi("cancel"),on:{click:function(){t.handleAction("cancel")}}}),this.showConfirmButton&&e(Ti,{attrs:{size:"large",type:"danger",text:this.confirmButtonText||Ei("confirm"),color:this.confirmButtonColor,loading:this.loading.confirm},class:Bi("confirm"),on:{click:function(){t.handleAction("confirm")}}})])},genButtons:function(){var t,e=this,i=this.$createElement,n=this.showCancelButton&&this.showConfirmButton;return i("div",{class:["van-hairline--top",Bi("footer")]},[this.showCancelButton&&i(Qt,{attrs:{size:"large",loading:this.loading.cancel,text:this.cancelButtonText||Ei("cancel")},class:Bi("cancel"),style:{color:this.cancelButtonColor},on:{click:function(){e.handleAction("cancel")}}}),this.showConfirmButton&&i(Qt,{attrs:{size:"large",loading:this.loading.confirm,text:this.confirmButtonText||Ei("confirm")},class:[Bi("confirm"),(t={},t["van-hairline--left"]=n,t)],style:{color:this.confirmButtonColor},on:{click:function(){e.handleAction("confirm")}}})])},genContent:function(t,e){var i=this.$createElement;if(e)return i("div",{class:Bi("content")},[e]);var n=this.message,r=this.messageAlign;if(n){var s,a,l={class:Bi("message",(s={"has-title":t},s[r]=r,s)),domProps:(a={},a[this.allowHtml?"innerHTML":"textContent"]=n,a)};return i("div",{class:Bi("content",{isolated:!t})},[i("div",o()([{},l]))])}}},render:function(){var t=arguments[0];if(this.shouldRender){var e=this.message,i=this.slots(),n=this.slots("title")||this.title,r=n&&t("div",{class:Bi("header",{isolated:!e&&!i})},[n]);return t("transition",{attrs:{name:this.transition},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[t("div",{directives:[{name:"show",value:this.value}],attrs:{role:"dialog","aria-labelledby":this.title||e},class:[Bi([this.theme]),this.className],style:{width:Object(K.a)(this.width)}},[r,this.genContent(n,i),"round-button"===this.theme?this.genRoundButtons():this.genButtons()])])}}});function ji(t){return p.g?Promise.resolve():new Promise((function(e,i){var r;pi&&(r=pi.$el,document.body.contains(r))||(pi&&pi.$destroy(),(pi=new(l.a.extend(Di))({el:document.createElement("div"),propsData:{lazyRender:!1}})).$on("input",(function(t){pi.value=t}))),n(pi,ji.currentOptions,t,{resolve:e,reject:i})}))}ji.defaultOptions={value:!0,title:"",width:"",theme:null,message:"",overlay:!0,className:"",allowHtml:!0,lockScroll:!0,transition:"van-dialog-bounce",beforeClose:null,overlayClass:"",overlayStyle:null,messageAlign:"",getContainer:"body",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1,callback:function(t){pi["confirm"===t?"resolve":"reject"](t)}},ji.alert=ji,ji.confirm=function(t){return ji(n({showCancelButton:!0},t))},ji.close=function(){pi&&(pi.value=!1)},ji.setDefaultOptions=function(t){n(ji.currentOptions,t)},ji.resetDefaultOptions=function(){ji.currentOptions=n({},ji.defaultOptions)},ji.resetDefaultOptions(),ji.install=function(){l.a.use(Di)},ji.Component=Di,l.a.prototype.$dialog=ji;var zi=ji,Pi={size:[Number,String],value:null,loading:Boolean,disabled:Boolean,activeColor:String,inactiveColor:String,activeValue:{type:null,default:!0},inactiveValue:{type:null,default:!1}},Li=Object(s.a)("switch"),Ai=Li[0],Mi=Li[1],Ni=Ai({mixins:[Re],props:Pi,computed:{checked:function(){return this.value===this.activeValue},style:function(){return{fontSize:Object(K.a)(this.size),backgroundColor:this.checked?this.activeColor:this.inactiveColor}}},methods:{onClick:function(t){if(this.$emit("click",t),!this.disabled&&!this.loading){var e=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",e),this.$emit("change",e)}},genLoading:function(){var t=this.$createElement;if(this.loading){var e=this.checked?this.activeColor:this.inactiveColor;return t(vt,{class:Mi("loading"),attrs:{color:e}})}}},render:function(){var t=arguments[0],e=this.checked,i=this.loading,n=this.disabled;return t("div",{class:Mi({on:e,loading:i,disabled:n}),attrs:{role:"switch","aria-checked":String(e)},style:this.style,on:{click:this.onClick}},[t("div",{class:Mi("node")},[this.genLoading()])])}}),Vi=Object(s.a)("contact-edit"),Ri=Vi[0],Fi=Vi[1],Hi=Vi[2],Wi={tel:"",name:""},_i=Ri({props:{isEdit:Boolean,isSaving:Boolean,isDeleting:Boolean,showSetDefault:Boolean,setDefaultLabel:String,contactInfo:{type:Object,default:function(){return n({},Wi)}},telValidator:{type:Function,default:function(t){return t=t.replace(/[^-|\d]/g,""),/^((\+86)|(86))?(1)\d{10}$/.test(t)||/^0[0-9-]{10,13}$/.test(t)}}},data:function(){return{data:n({},Wi,this.contactInfo),errorInfo:{name:"",tel:""}}},watch:{contactInfo:function(t){this.data=n({},Wi,t)}},methods:{onFocus:function(t){this.errorInfo[t]=""},getErrorMessageByKey:function(t){var e=this.data[t].trim();switch(t){case"name":return e?"":Hi("nameInvalid");case"tel":return this.telValidator(e)?"":Hi("telInvalid")}},onSave:function(){var t=this;["name","tel"].every((function(e){var i=t.getErrorMessageByKey(e);return i&&(t.errorInfo[e]=i),!i}))&&!this.isSaving&&this.$emit("save",this.data)},onDelete:function(){var t=this;zi.confirm({title:Hi("confirmDelete")}).then((function(){t.$emit("delete",t.data)}))}},render:function(){var t=this,e=arguments[0],i=this.data,n=this.errorInfo,r=function(e){return function(){return t.onFocus(e)}};return e("div",{class:Fi()},[e("div",{class:Fi("fields")},[e(yi,{attrs:{clearable:!0,maxlength:"30",label:Hi("name"),placeholder:Hi("nameEmpty"),errorMessage:n.name},on:{focus:r("name")},model:{value:i.name,callback:function(e){t.$set(i,"name",e)}}}),e(yi,{attrs:{clearable:!0,type:"tel",label:Hi("tel"),placeholder:Hi("telEmpty"),errorMessage:n.tel},on:{focus:r("tel")},model:{value:i.tel,callback:function(e){t.$set(i,"tel",e)}}})]),this.showSetDefault&&e(Pe,{attrs:{title:this.setDefaultLabel,border:!1},class:Fi("switch-cell")},[e(Ni,{attrs:{size:24},slot:"right-icon",on:{change:function(e){t.$emit("change-default",e)}},model:{value:i.isDefault,callback:function(e){t.$set(i,"isDefault",e)}}})]),e("div",{class:Fi("buttons")},[e(Qt,{attrs:{block:!0,round:!0,type:"danger",text:Hi("save"),loading:this.isSaving},on:{click:this.onSave}}),this.isEdit&&e(Qt,{attrs:{block:!0,round:!0,text:Hi("delete"),loading:this.isDeleting},on:{click:this.onDelete}})])])}}),Yi=Object(s.a)("tag"),Xi=Yi[0],Ki=Yi[1];function Ui(t,e,i,n){var r,s=e.type,a=e.mark,l=e.plain,c=e.color,u=e.round,f=e.size,p=((r={})[l?"color":"backgroundColor"]=c,r);e.textColor&&(p.color=e.textColor);var v={mark:a,plain:l,round:u};f&&(v[f]=f);var m=e.closeable&&t(rt,{attrs:{name:"cross"},class:Ki("close"),on:{click:function(t){t.stopPropagation(),d(n,"close")}}});return t("transition",{attrs:{name:e.closeable?"van-fade":null}},[t("span",o()([{key:"content",style:p,class:Ki([v,s])},h(n,!0)]),[null==i.default?void 0:i.default(),m])])}Ui.props={size:String,mark:Boolean,color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean,type:{type:String,default:"default"}};var qi=Xi(Ui),Qi=Object(s.a)("radio"),Zi=(0,Qi[0])({mixins:[_e({bem:Qi[1],role:"radio",parent:"vanRadio"})],computed:{currentValue:{get:function(){return this.parent?this.parent.value:this.value},set:function(t){(this.parent||this).$emit("input",t)}},checked:function(){return this.currentValue===this.name}},methods:{toggle:function(){this.currentValue=this.name}}}),Gi=Object(s.a)("radio-group"),Ji=Gi[0],tn=Gi[1],en=Ji({mixins:[We("vanRadio"),Re],props:{value:null,disabled:Boolean,direction:String,checkedColor:String,iconSize:[Number,String]},watch:{value:function(t){this.$emit("change",t)}},render:function(){var t=arguments[0];return t("div",{class:tn([this.direction]),attrs:{role:"radiogroup"}},[this.slots()])}}),nn=Object(s.a)("contact-list"),rn=nn[0],on=nn[1],sn=nn[2];function an(t,e,i,n){var r=e.list&&e.list.map((function(i,r){function o(){d(n,"input",i.id),d(n,"select",i,r)}return t(Pe,{key:i.id,attrs:{isLink:!0,center:!0,valueClass:on("item-value")},class:on("item"),scopedSlots:{icon:function(){return t(rt,{attrs:{name:"edit"},class:on("edit"),on:{click:function(t){t.stopPropagation(),d(n,"edit",i,r)}}})},default:function(){var n=[i.name+","+i.tel];return i.isDefault&&e.defaultTagText&&n.push(t(qi,{attrs:{type:"danger",round:!0},class:on("item-tag")},[e.defaultTagText])),n},"right-icon":function(){return t(Zi,{attrs:{name:i.id,iconSize:16,checkedColor:"#ee0a24"},on:{click:o}})}},on:{click:o}})}));return t("div",o()([{class:on()},h(n)]),[t(en,{attrs:{value:e.value},class:on("group")},[r]),t("div",{class:on("bottom")},[t(Qt,{attrs:{round:!0,block:!0,type:"danger",text:e.addText||sn("addText")},class:on("add"),on:{click:function(){d(n,"add")}}})])])}an.props={value:null,list:Array,addText:String,defaultTagText:String};var ln=rn(an),cn=i(3),un=n({},wt,{value:null,filter:Function,columnsOrder:Array,showToolbar:{type:Boolean,default:!0},formatter:{type:Function,default:function(t,e){return e}}}),hn={data:function(){return{innerValue:this.formatValue(this.value)}},computed:{originColumns:function(){var t=this;return this.ranges.map((function(e){var i=e.type,n=e.range,r=function(t,e){for(var i=-1,n=Array(t);++i<t;)n[i]=e(i);return n}(n[1]-n[0]+1,(function(t){return Object(cn.b)(n[0]+t)}));return t.filter&&(r=t.filter(i,r)),{type:i,values:r}}))},columns:function(){var t=this;return this.originColumns.map((function(e){return{values:e.values.map((function(i){return t.formatter(e.type,i)}))}}))}},watch:{columns:"updateColumnValue",innerValue:function(t){this.$emit("input",t)}},mounted:function(){var t=this;this.updateColumnValue(),this.$nextTick((function(){t.updateInnerValue()}))},methods:{getPicker:function(){return this.$refs.picker},onConfirm:function(){this.$emit("confirm",this.innerValue)},onCancel:function(){this.$emit("cancel")}},render:function(){var t=this,e=arguments[0],i={};return Object.keys(wt).forEach((function(e){i[e]=t[e]})),e(Mt,{ref:"picker",attrs:{columns:this.columns,readonly:this.readonly},scopedSlots:this.$scopedSlots,on:{change:this.onChange,confirm:this.onConfirm,cancel:this.onCancel},props:n({},i)})}},dn=(0,Object(s.a)("time-picker")[0])({mixins:[hn],props:n({},un,{minHour:{type:[Number,String],default:0},maxHour:{type:[Number,String],default:23},minMinute:{type:[Number,String],default:0},maxMinute:{type:[Number,String],default:59}}),computed:{ranges:function(){return[{type:"hour",range:[+this.minHour,+this.maxHour]},{type:"minute",range:[+this.minMinute,+this.maxMinute]}]}},watch:{filter:"updateInnerValue",minHour:"updateInnerValue",maxHour:"updateInnerValue",minMinute:"updateInnerValue",maxMinute:"updateInnerValue",value:function(t){(t=this.formatValue(t))!==this.innerValue&&(this.innerValue=t,this.updateColumnValue())}},methods:{formatValue:function(t){t||(t=Object(cn.b)(this.minHour)+":"+Object(cn.b)(this.minMinute));var e=t.split(":"),i=e[0],n=e[1];return(i=Object(cn.b)(Ot(i,this.minHour,this.maxHour)))+":"+(n=Object(cn.b)(Ot(n,this.minMinute,this.maxMinute)))},updateInnerValue:function(){var t=this.getPicker().getIndexes(),e=t[0],i=t[1],n=this.originColumns,r=n[0],o=n[1],s=r.values[e]||r.values[0],a=o.values[i]||o.values[0];this.innerValue=this.formatValue(s+":"+a),this.updateColumnValue()},onChange:function(t){var e=this;this.updateInnerValue(),this.$nextTick((function(){e.$nextTick((function(){e.$emit("change",t)}))}))},updateColumnValue:function(){var t=this,e=this.formatter,i=this.innerValue.split(":"),n=[e("hour",i[0]),e("minute",i[1])];this.$nextTick((function(){t.getPicker().setValues(n)}))}}}),fn=(new Date).getFullYear(),pn=(0,Object(s.a)("date-picker")[0])({mixins:[hn],props:n({},un,{type:{type:String,default:"datetime"},minDate:{type:Date,default:function(){return new Date(fn-10,0,1)},validator:Jt},maxDate:{type:Date,default:function(){return new Date(fn+10,11,31)},validator:Jt}}),watch:{filter:"updateInnerValue",minDate:"updateInnerValue",maxDate:"updateInnerValue",value:function(t){(t=this.formatValue(t)).valueOf()!==this.innerValue.valueOf()&&(this.innerValue=t)}},computed:{ranges:function(){var t=this.getBoundary("max",this.innerValue),e=t.maxYear,i=t.maxDate,n=t.maxMonth,r=t.maxHour,o=t.maxMinute,s=this.getBoundary("min",this.innerValue),a=s.minYear,l=s.minDate,c=[{type:"year",range:[a,e]},{type:"month",range:[s.minMonth,n]},{type:"day",range:[l,i]},{type:"hour",range:[s.minHour,r]},{type:"minute",range:[s.minMinute,o]}];switch(this.type){case"date":c=c.slice(0,3);break;case"year-month":c=c.slice(0,2);break;case"month-day":c=c.slice(1,3);break;case"datehour":c=c.slice(0,4)}if(this.columnsOrder){var u=this.columnsOrder.concat(c.map((function(t){return t.type})));c.sort((function(t,e){return u.indexOf(t.type)-u.indexOf(e.type)}))}return c}},methods:{formatValue:function(t){return Jt(t)||(t=this.minDate),t=Math.max(t,this.minDate.getTime()),t=Math.min(t,this.maxDate.getTime()),new Date(t)},getBoundary:function(t,e){var i,n=this[t+"Date"],r=n.getFullYear(),o=1,s=1,a=0,l=0;return"max"===t&&(o=12,s=Oe(e.getFullYear(),e.getMonth()+1),a=23,l=59),e.getFullYear()===r&&(o=n.getMonth()+1,e.getMonth()+1===o&&(s=n.getDate(),e.getDate()===s&&(a=n.getHours(),e.getHours()===a&&(l=n.getMinutes())))),(i={})[t+"Year"]=r,i[t+"Month"]=o,i[t+"Date"]=s,i[t+"Hour"]=a,i[t+"Minute"]=l,i},updateInnerValue:function(){var t,e,i,n=this,r=this.type,o=this.getPicker().getIndexes(),s=function(t){var e=0;return n.originColumns.forEach((function(i,n){t===i.type&&(e=n)})),function(t){if(!t)return 0;for(;Object(Gt.a)(parseInt(t,10));){if(!(t.length>1))return 0;t=t.slice(1)}return parseInt(t,10)}(n.originColumns[e].values[o[e]])};"month-day"===r?(t=this.innerValue.getFullYear(),e=s("month"),i=s("day")):(t=s("year"),e=s("month"),i="year-month"===r?1:s("day"));var a=Oe(t,e);i=i>a?a:i;var l=0,c=0;"datehour"===r&&(l=s("hour")),"datetime"===r&&(l=s("hour"),c=s("minute"));var u=new Date(t,e-1,i,l,c);this.innerValue=this.formatValue(u)},onChange:function(t){var e=this;this.updateInnerValue(),this.$nextTick((function(){e.$nextTick((function(){e.$emit("change",t)}))}))},updateColumnValue:function(){var t=this,e=this.innerValue,i=this.formatter,n=this.originColumns.map((function(t){switch(t.type){case"year":return i("year",""+e.getFullYear());case"month":return i("month",Object(cn.b)(e.getMonth()+1));case"day":return i("day",Object(cn.b)(e.getDate()));case"hour":return i("hour",Object(cn.b)(e.getHours()));case"minute":return i("minute",Object(cn.b)(e.getMinutes()));default:return null}}));this.$nextTick((function(){t.getPicker().setValues(n)}))}}}),vn=Object(s.a)("datetime-picker"),mn=vn[0],gn=vn[1],yn=mn({props:n({},dn.props,pn.props),methods:{getPicker:function(){return this.$refs.root.getPicker()}},render:function(){var t=arguments[0],e="time"===this.type?dn:pn;return t(e,{ref:"root",class:gn(),scopedSlots:this.$scopedSlots,props:n({},this.$props),on:n({},this.$listeners)})}}),bn=(i(12),{render:function(){var t=this.$createElement;return(this._self._c||t)("button",{staticClass:"demo-button"},[this._t("default")],2)},staticRenderFns:[],name:"demo-button",props:{color:String,type:{type:String,default:"primary"}}}),xn=Object(s.a)("dropdown-item"),wn=xn[0],Sn=xn[1],kn=wn({mixins:[F({ref:"wrapper"}),He("vanDropdownMenu")],props:{value:null,title:String,disabled:Boolean,titleClass:String,options:{type:Array,default:function(){return[]}},lazyRender:{type:Boolean,default:!0}},data:function(){return{transition:!0,showPopup:!1,showWrapper:!1}},computed:{displayTitle:function(){var t=this;if(this.title)return this.title;var e=this.options.filter((function(e){return e.value===t.value}));return e.length?e[0].text:""}},watch:{showPopup:function(t){this.bindScroll(t)}},beforeCreate:function(){var t=this,e=function(e){return function(){return t.$emit(e)}};this.onOpen=e("open"),this.onClose=e("close"),this.onOpened=e("opened")},methods:{toggle:function(t,e){void 0===t&&(t=!this.showPopup),void 0===e&&(e={}),t!==this.showPopup&&(this.transition=!e.immediate,this.showPopup=t,t&&(this.parent.updateOffset(),this.showWrapper=!0))},bindScroll:function(t){(t?g:y)(this.parent.scroller,"scroll",this.onScroll,!0)},onScroll:function(){this.parent.updateOffset()},onClickWrapper:function(t){this.getContainer&&t.stopPropagation()}},render:function(){var t=this,e=arguments[0],i=this.parent,n=i.zIndex,r=i.offset,o=i.overlay,s=i.duration,a=i.direction,l=i.activeColor,c=i.closeOnClickOverlay,u=this.options.map((function(i){var n=i.value===t.value;return e(Pe,{attrs:{clickable:!0,icon:i.icon,title:i.text},key:i.value,class:Sn("option",{active:n}),style:{color:n?l:""},on:{click:function(){t.showPopup=!1,i.value!==t.value&&(t.$emit("input",i.value),t.$emit("change",i.value))}}},[n&&e(rt,{class:Sn("icon"),attrs:{color:l,name:"success"}})])})),h={zIndex:n};return"down"===a?h.top=r+"px":h.bottom=r+"px",e("div",[e("div",{directives:[{name:"show",value:this.showWrapper}],ref:"wrapper",style:h,class:Sn([a]),on:{click:this.onClickWrapper}},[e(lt,{attrs:{overlay:o,position:"down"===a?"top":"bottom",duration:this.transition?s:0,lazyRender:this.lazyRender,overlayStyle:{position:"absolute"},closeOnClickOverlay:c},class:Sn("content"),on:{open:this.onOpen,close:this.onClose,opened:this.onOpened,closed:function(){t.showWrapper=!1,t.$emit("closed")}},model:{value:t.showPopup,callback:function(e){t.showPopup=e}}},[u,this.slots("default")])])])}}),Cn=function(t){return{props:{closeOnClickOutside:{type:Boolean,default:!0}},data:function(){var e=this;return{clickOutsideHandler:function(i){e.closeOnClickOutside&&!e.$el.contains(i.target)&&e[t.method]()}}},mounted:function(){g(document,t.event,this.clickOutsideHandler)},beforeDestroy:function(){y(document,t.event,this.clickOutsideHandler)}}},On=Object(s.a)("dropdown-menu"),Tn=On[0],$n=On[1],In=Tn({mixins:[We("vanDropdownMenu"),Cn({event:"click",method:"onClickOutside"})],props:{zIndex:[Number,String],activeColor:String,overlay:{type:Boolean,default:!0},duration:{type:[Number,String],default:.2},direction:{type:String,default:"down"},closeOnClickOverlay:{type:Boolean,default:!0}},data:function(){return{offset:0}},computed:{scroller:function(){return P(this.$el)},opened:function(){return this.children.some((function(t){return t.showWrapper}))},barStyle:function(){if(this.opened&&Object(p.c)(this.zIndex))return{zIndex:1+this.zIndex}}},methods:{updateOffset:function(){if(this.$refs.bar){var t=this.$refs.bar.getBoundingClientRect();"down"===this.direction?this.offset=t.bottom:this.offset=window.innerHeight-t.top}},toggleItem:function(t){this.children.forEach((function(e,i){i===t?e.toggle():e.showPopup&&e.toggle(!1,{immediate:!0})}))},onClickOutside:function(){this.children.forEach((function(t){t.toggle(!1)}))}},render:function(){var t=this,e=arguments[0],i=this.children.map((function(i,n){return e("div",{attrs:{role:"button",tabindex:i.disabled?-1:0},class:$n("item",{disabled:i.disabled}),on:{click:function(){i.disabled||t.toggleItem(n)}}},[e("span",{class:[$n("title",{active:i.showPopup,down:i.showPopup===("down"===t.direction)}),i.titleClass],style:{color:i.showPopup?t.activeColor:""}},[e("div",{class:"van-ellipsis"},[i.slots("title")||i.displayTitle])])])}));return e("div",{class:$n()},[e("div",{ref:"bar",style:this.barStyle,class:$n("bar",{opened:this.opened})},[i]),this.slots("default")])}}),Bn={render:function(){var t=arguments[0],e=function(e,i,n){return t("stop",{attrs:{"stop-color":e,offset:i+"%","stop-opacity":n}})};return t("svg",{attrs:{viewBox:"0 0 160 160",xmlns:"http://www.w3.org/2000/svg"}},[t("defs",[t("linearGradient",{attrs:{id:"c",x1:"64.022%",y1:"100%",x2:"64.022%",y2:"0%"}},[e("#FFF",0,.5),e("#F2F3F5",100)]),t("linearGradient",{attrs:{id:"d",x1:"64.022%",y1:"96.956%",x2:"64.022%",y2:"0%"}},[e("#F2F3F5",0,.3),e("#F2F3F5",100)]),t("linearGradient",{attrs:{id:"h",x1:"50%",y1:"0%",x2:"50%",y2:"84.459%"}},[e("#EBEDF0",0),e("#DCDEE0",100,0)]),t("linearGradient",{attrs:{id:"i",x1:"100%",y1:"0%",x2:"100%",y2:"100%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("linearGradient",{attrs:{id:"k",x1:"100%",y1:"100%",x2:"100%",y2:"0%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("linearGradient",{attrs:{id:"m",x1:"0%",y1:"43.982%",x2:"100%",y2:"54.703%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("linearGradient",{attrs:{id:"n",x1:"94.535%",y1:"43.837%",x2:"5.465%",y2:"54.948%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("radialGradient",{attrs:{id:"g",cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54835 0 .5 -.5)"}},[e("#EBEDF0",0),e("#FFF",100,0)])]),t("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[t("g",{attrs:{opacity:".8"}},[t("path",{attrs:{d:"M0 124V46h20v20h14v58H0z",fill:"url(#c)",transform:"matrix(-1 0 0 1 36 7)"}}),t("path",{attrs:{d:"M40.5 5a8.504 8.504 0 018.13 6.009l.12-.005L49 11a8 8 0 11-1 15.938V27H34v-.174a6.5 6.5 0 11-1.985-12.808A8.5 8.5 0 0140.5 5z",fill:"url(#d)",transform:"translate(2 7)"}}),t("path",{attrs:{d:"M96.016 0a4.108 4.108 0 013.934 2.868l.179-.004c2.138 0 3.871 1.71 3.871 3.818 0 2.109-1.733 3.818-3.871 3.818-.164 0-.325-.01-.484-.03v.03h-6.774v-.083a3.196 3.196 0 01-.726.083C90.408 10.5 89 9.111 89 7.398c0-1.636 1.284-2.976 2.911-3.094a3.555 3.555 0 01-.008-.247c0-2.24 1.842-4.057 4.113-4.057z",fill:"url(#d)",transform:"translate(2 7)"}}),t("path",{attrs:{d:"M121 8h22.231v14H152v77.37h-31V8z",fill:"url(#c)",transform:"translate(2 7)"}})]),t("path",{attrs:{fill:"url(#g)",d:"M0 139h160v21H0z"}}),t("path",{attrs:{d:"M37 18a7 7 0 013 13.326v26.742c0 1.23-.997 2.227-2.227 2.227h-1.546A2.227 2.227 0 0134 58.068V31.326A7 7 0 0137 18z",fill:"url(#h)","fill-rule":"nonzero",transform:"translate(43 36)"}}),t("g",{attrs:{opacity:".6","stroke-linecap":"round","stroke-width":"7"}},[t("path",{attrs:{d:"M20.875 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",stroke:"url(#i)",transform:"translate(43 36)"}}),t("path",{attrs:{d:"M9.849 0C3.756 6.225 0 14.747 0 24.146c0 9.398 3.756 17.92 9.849 24.145",stroke:"url(#i)",transform:"translate(43 36)"}}),t("path",{attrs:{d:"M57.625 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",stroke:"url(#k)",transform:"rotate(-180 76.483 42.257)"}}),t("path",{attrs:{d:"M73.216 0c-6.093 6.225-9.849 14.747-9.849 24.146 0 9.398 3.756 17.92 9.849 24.145",stroke:"url(#k)",transform:"rotate(-180 89.791 42.146)"}})]),t("g",{attrs:{transform:"translate(31 105)","fill-rule":"nonzero"}},[t("rect",{attrs:{fill:"url(#m)",width:"98",height:"34",rx:"2"}}),t("rect",{attrs:{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.114"}}),t("rect",{attrs:{fill:"url(#n)",x:"15",y:"12",width:"18",height:"6",rx:"1.114"}})])])])}},En=Object(s.a)("empty"),Dn=En[0],jn=En[1],zn=["error","search","default"],Pn=Dn({props:{imageSize:[Number,String],description:String,image:{type:String,default:"default"}},methods:{genImageContent:function(){var t=this.$createElement,e=this.slots("image");if(e)return e;if("network"===this.image)return t(Bn);var i=this.image;return-1!==zn.indexOf(i)&&(i="https://img01.yzcdn.cn/vant/empty-image-"+i+".png"),t("img",{attrs:{src:i}})},genImage:function(){var t=this.$createElement,e={width:Object(K.a)(this.imageSize),height:Object(K.a)(this.imageSize)};return t("div",{class:jn("image"),style:e},[this.genImageContent()])},genDescription:function(){var t=this.$createElement,e=this.slots("description")||this.description;if(e)return t("p",{class:jn("description")},[e])},genBottom:function(){var t=this.$createElement,e=this.slots();if(e)return t("div",{class:jn("bottom")},[e])}},render:function(){var t=arguments[0];return t("div",{class:jn()},[this.genImage(),this.genDescription(),this.genBottom()])}}),Ln=Object(s.a)("form"),An=Ln[0],Mn=Ln[1],Nn=An({props:{colon:Boolean,disabled:Boolean,readonly:Boolean,labelWidth:[Number,String],labelAlign:String,inputAlign:String,scrollToError:Boolean,validateFirst:Boolean,errorMessageAlign:String,submitOnEnter:{type:Boolean,default:!0},validateTrigger:{type:String,default:"onBlur"},showError:{type:Boolean,default:!0},showErrorMessage:{type:Boolean,default:!0}},provide:function(){return{vanForm:this}},data:function(){return{fields:[]}},methods:{getFieldsByNames:function(t){return t?this.fields.filter((function(e){return-1!==t.indexOf(e.name)})):this.fields},validateSeq:function(t){var e=this;return new Promise((function(i,n){var r=[];e.getFieldsByNames(t).reduce((function(t,e){return t.then((function(){if(!r.length)return e.validate().then((function(t){t&&r.push(t)}))}))}),Promise.resolve()).then((function(){r.length?n(r):i()}))}))},validateFields:function(t){var e=this;return new Promise((function(i,n){var r=e.getFieldsByNames(t);Promise.all(r.map((function(t){return t.validate()}))).then((function(t){(t=t.filter((function(t){return t}))).length?n(t):i()}))}))},validate:function(t){return t&&!Array.isArray(t)?this.validateField(t):this.validateFirst?this.validateSeq(t):this.validateFields(t)},validateField:function(t){var e=this.fields.filter((function(e){return e.name===t}));return e.length?new Promise((function(t,i){e[0].validate().then((function(e){e?i(e):t()}))})):Promise.reject()},resetValidation:function(t){t&&!Array.isArray(t)&&(t=[t]),this.getFieldsByNames(t).forEach((function(t){t.resetValidation()}))},scrollToField:function(t,e){this.fields.some((function(i){return i.name===t&&(i.$el.scrollIntoView(e),!0)}))},addField:function(t){this.fields.push(t),Fe(this.fields,this)},removeField:function(t){this.fields=this.fields.filter((function(e){return e!==t}))},getValues:function(){return this.fields.reduce((function(t,e){return t[e.name]=e.formValue,t}),{})},onSubmit:function(t){t.preventDefault(),this.submit()},submit:function(){var t=this,e=this.getValues();this.validate().then((function(){t.$emit("submit",e)})).catch((function(i){t.$emit("failed",{values:e,errors:i}),t.scrollToError&&t.scrollToField(i[0].name)}))}},render:function(){var t=arguments[0];return t("form",{class:Mn(),on:{submit:this.onSubmit}},[this.slots()])}}),Vn=Object(s.a)("image"),Rn=Vn[0],Fn=Vn[1],Hn=Rn({props:{src:String,fit:String,alt:String,round:Boolean,width:[Number,String],height:[Number,String],radius:[Number,String],lazyLoad:Boolean,iconPrefix:String,showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},errorIcon:{type:String,default:"photo-fail"},loadingIcon:{type:String,default:"photo"}},data:function(){return{loading:!0,error:!1}},watch:{src:function(){this.loading=!0,this.error=!1}},computed:{style:function(){var t={};return Object(p.c)(this.width)&&(t.width=Object(K.a)(this.width)),Object(p.c)(this.height)&&(t.height=Object(K.a)(this.height)),Object(p.c)(this.radius)&&(t.overflow="hidden",t.borderRadius=Object(K.a)(this.radius)),t}},created:function(){var t=this.$Lazyload;t&&p.b&&(t.$on("loaded",this.onLazyLoaded),t.$on("error",this.onLazyLoadError))},beforeDestroy:function(){var t=this.$Lazyload;t&&(t.$off("loaded",this.onLazyLoaded),t.$off("error",this.onLazyLoadError))},methods:{onLoad:function(t){this.loading=!1,this.$emit("load",t)},onLazyLoaded:function(t){t.el===this.$refs.image&&this.loading&&this.onLoad()},onLazyLoadError:function(t){t.el!==this.$refs.image||this.error||this.onError()},onError:function(t){this.error=!0,this.loading=!1,this.$emit("error",t)},onClick:function(t){this.$emit("click",t)},genPlaceholder:function(){var t=this.$createElement;return this.loading&&this.showLoading?t("div",{class:Fn("loading")},[this.slots("loading")||t(rt,{attrs:{name:this.loadingIcon,classPrefix:this.iconPrefix},class:Fn("loading-icon")})]):this.error&&this.showError?t("div",{class:Fn("error")},[this.slots("error")||t(rt,{attrs:{name:this.errorIcon,classPrefix:this.iconPrefix},class:Fn("error-icon")})]):void 0},genImage:function(){var t=this.$createElement,e={class:Fn("img"),attrs:{alt:this.alt},style:{objectFit:this.fit}};if(!this.error)return this.lazyLoad?t("img",o()([{ref:"image",directives:[{name:"lazy",value:this.src}]},e])):t("img",o()([{attrs:{src:this.src},on:{load:this.onLoad,error:this.onError}},e]))}},render:function(){var t=arguments[0];return t("div",{class:Fn({round:this.round}),style:this.style,on:{click:this.onClick}},[this.genImage(),this.genPlaceholder(),this.slots()])}}),Wn=Object(s.a)("image-preview"),_n=Wn[0],Yn=Wn[1];function Xn(t){var e=window.getComputedStyle(t),i="none"===e.display,n=null===t.offsetParent&&"fixed"!==e.position;return i||n}var Kn=Object(s.a)("swipe"),Un=Kn[0],qn=Kn[1],Qn=Un({mixins:[R,We("vanSwipe"),W((function(t,e){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0),t(window,"visibilitychange",this.onVisibilityChange),e?this.initialize():this.clear()}))],props:{width:[Number,String],height:[Number,String],autoplay:[Number,String],vertical:Boolean,lazyRender:Boolean,indicatorColor:String,loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},touchable:{type:Boolean,default:!0},initialSwipe:{type:[Number,String],default:0},showIndicators:{type:Boolean,default:!0},stopPropagation:{type:Boolean,default:!0}},data:function(){return{rect:null,offset:0,active:0,deltaX:0,deltaY:0,swiping:!1,computedWidth:0,computedHeight:0}},watch:{children:function(){this.initialize()},initialSwipe:function(){this.initialize()},autoplay:function(t){t>0?this.autoPlay():this.clear()}},computed:{count:function(){return this.children.length},maxCount:function(){return Math.ceil(Math.abs(this.minOffset)/this.size)},delta:function(){return this.vertical?this.deltaY:this.deltaX},size:function(){return this[this.vertical?"computedHeight":"computedWidth"]},trackSize:function(){return this.count*this.size},activeIndicator:function(){return(this.active+this.count)%this.count},isCorrectDirection:function(){var t=this.vertical?"vertical":"horizontal";return this.direction===t},trackStyle:function(){var t={transitionDuration:(this.swiping?0:this.duration)+"ms",transform:"translate"+(this.vertical?"Y":"X")+"("+this.offset+"px)"};if(this.size){var e=this.vertical?"height":"width",i=this.vertical?"width":"height";t[e]=this.trackSize+"px",t[i]=this[i]?this[i]+"px":""}return t},indicatorStyle:function(){return{backgroundColor:this.indicatorColor}},minOffset:function(){return(this.vertical?this.rect.height:this.rect.width)-this.size*this.count}},mounted:function(){this.bindTouchEvent(this.$refs.track)},methods:{initialize:function(t){if(void 0===t&&(t=+this.initialSwipe),this.$el&&!Xn(this.$el)){clearTimeout(this.timer);var e=this.$el.getBoundingClientRect();this.rect=e,this.swiping=!0,this.active=t,this.computedWidth=+this.width||e.width,this.computedHeight=+this.height||e.height,this.offset=this.getTargetOffset(t),this.children.forEach((function(t){t.offset=0})),this.autoPlay()}},resize:function(){this.initialize(this.activeIndicator)},onVisibilityChange:function(){document.hidden?this.clear():this.autoPlay()},onTouchStart:function(t){this.touchable&&(this.clear(),this.touchStartTime=Date.now(),this.touchStart(t),this.correctPosition())},onTouchMove:function(t){this.touchable&&this.swiping&&(this.touchMove(t),this.isCorrectDirection&&(x(t,this.stopPropagation),this.move({offset:this.delta})))},onTouchEnd:function(){if(this.touchable&&this.swiping){var t=this.size,e=this.delta,i=e/(Date.now()-this.touchStartTime);if((Math.abs(i)>.25||Math.abs(e)>t/2)&&this.isCorrectDirection){var n=this.vertical?this.offsetY:this.offsetX,r=0;r=this.loop?n>0?e>0?-1:1:0:-Math[e>0?"ceil":"floor"](e/t),this.move({pace:r,emitChange:!0})}else e&&this.move({pace:0});this.swiping=!1,this.autoPlay()}},getTargetActive:function(t){var e=this.active,i=this.count,n=this.maxCount;return t?this.loop?Ot(e+t,-1,i):Ot(e+t,0,n):e},getTargetOffset:function(t,e){void 0===e&&(e=0);var i=t*this.size;this.loop||(i=Math.min(i,-this.minOffset));var n=e-i;return this.loop||(n=Ot(n,this.minOffset,0)),n},move:function(t){var e=t.pace,i=void 0===e?0:e,n=t.offset,r=void 0===n?0:n,o=t.emitChange,s=this.loop,a=this.count,l=this.active,c=this.children,u=this.trackSize,h=this.minOffset;if(!(a<=1)){var d=this.getTargetActive(i),f=this.getTargetOffset(d,r);if(s){if(c[0]&&f!==h){var p=f<h;c[0].offset=p?u:0}if(c[a-1]&&0!==f){var v=f>0;c[a-1].offset=v?-u:0}}this.active=d,this.offset=f,o&&d!==l&&this.$emit("change",this.activeIndicator)}},prev:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),Object(Zt.b)((function(){t.swiping=!1,t.move({pace:-1,emitChange:!0})}))},next:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),Object(Zt.b)((function(){t.swiping=!1,t.move({pace:1,emitChange:!0})}))},swipeTo:function(t,e){var i=this;void 0===e&&(e={}),this.correctPosition(),this.resetTouchStatus(),Object(Zt.b)((function(){var n;n=i.loop&&t===i.count?0===i.active?0:t:t%i.count,e.immediate?Object(Zt.b)((function(){i.swiping=!1})):i.swiping=!1,i.move({pace:n-i.active,emitChange:!0})}))},correctPosition:function(){this.swiping=!0,this.active<=-1&&this.move({pace:this.count}),this.active>=this.count&&this.move({pace:-this.count})},clear:function(){clearTimeout(this.timer)},autoPlay:function(){var t=this,e=this.autoplay;e>0&&this.count>1&&(this.clear(),this.timer=setTimeout((function(){t.next(),t.autoPlay()}),e))},genIndicator:function(){var t=this,e=this.$createElement,i=this.count,n=this.activeIndicator,r=this.slots("indicator");return r||(this.showIndicators&&i>1?e("div",{class:qn("indicators",{vertical:this.vertical})},[Array.apply(void 0,Array(i)).map((function(i,r){return e("i",{class:qn("indicator",{active:r===n}),style:r===n?t.indicatorStyle:null})}))]):void 0)}},render:function(){var t=arguments[0];return t("div",{class:qn()},[t("div",{ref:"track",style:this.trackStyle,class:qn("track",{vertical:this.vertical})},[this.slots()]),this.genIndicator()])}}),Zn=Object(s.a)("swipe-item"),Gn=Zn[0],Jn=Zn[1],tr=Gn({mixins:[He("vanSwipe")],data:function(){return{offset:0,inited:!1,mounted:!1}},mounted:function(){var t=this;this.$nextTick((function(){t.mounted=!0}))},computed:{style:function(){var t={},e=this.parent,i=e.size,n=e.vertical;return i&&(t[n?"height":"width"]=i+"px"),this.offset&&(t.transform="translate"+(n?"Y":"X")+"("+this.offset+"px)"),t},shouldRender:function(){var t=this.index,e=this.inited,i=this.parent,n=this.mounted;if(!i.lazyRender||e)return!0;if(!n)return!1;var r=i.activeIndicator,o=i.count-1,s=0===r&&i.loop?o:r-1,a=r===o&&i.loop?0:r+1,l=t===r||t===s||t===a;return l&&(this.inited=!0),l}},render:function(){var t=arguments[0];return t("div",{class:Jn(),style:this.style,on:n({},this.$listeners)},[this.shouldRender&&this.slots()])}});function er(t){return Math.sqrt(Math.pow(t[0].clientX-t[1].clientX,2)+Math.pow(t[0].clientY-t[1].clientY,2))}var ir,nr={mixins:[R],props:{src:String,show:Boolean,active:Number,minZoom:[Number,String],maxZoom:[Number,String],rootWidth:Number,rootHeight:Number},data:function(){return{scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}},computed:{vertical:function(){var t=this.rootWidth,e=this.rootHeight/t;return this.imageRatio>e},imageStyle:function(){var t=this.scale,e={transitionDuration:this.zooming||this.moving?"0s":".3s"};if(1!==t){var i=this.moveX/t,n=this.moveY/t;e.transform="scale("+t+", "+t+") translate("+i+"px, "+n+"px)"}return e},maxMoveX:function(){if(this.imageRatio){var t=this.vertical?this.rootHeight/this.imageRatio:this.rootWidth;return Math.max(0,(this.scale*t-this.rootWidth)/2)}return 0},maxMoveY:function(){if(this.imageRatio){var t=this.vertical?this.rootHeight:this.rootWidth*this.imageRatio;return Math.max(0,(this.scale*t-this.rootHeight)/2)}return 0}},watch:{active:"resetScale",show:function(t){t||this.resetScale()}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{resetScale:function(){this.setScale(1),this.moveX=0,this.moveY=0},setScale:function(t){(t=Ot(t,+this.minZoom,+this.maxZoom))!==this.scale&&(this.scale=t,this.$emit("scale",{scale:this.scale,index:this.active}))},toggleScale:function(){var t=this.scale>1?1:2;this.setScale(t),this.moveX=0,this.moveY=0},onTouchStart:function(t){var e=t.touches,i=this.offsetX,n=void 0===i?0:i;this.touchStart(t),this.touchStartTime=new Date,this.startMoveX=this.moveX,this.startMoveY=this.moveY,this.moving=1===e.length&&1!==this.scale,this.zooming=2===e.length&&!n,this.zooming&&(this.startScale=this.scale,this.startDistance=er(t.touches))},onTouchMove:function(t){var e=t.touches;if(this.touchMove(t),(this.moving||this.zooming)&&x(t,!0),this.moving){var i=this.deltaX+this.startMoveX,n=this.deltaY+this.startMoveY;this.moveX=Ot(i,-this.maxMoveX,this.maxMoveX),this.moveY=Ot(n,-this.maxMoveY,this.maxMoveY)}if(this.zooming&&2===e.length){var r=er(e),o=this.startScale*r/this.startDistance;this.setScale(o)}},onTouchEnd:function(t){var e=!1;(this.moving||this.zooming)&&(e=!0,this.moving&&this.startMoveX===this.moveX&&this.startMoveY===this.moveY&&(e=!1),t.touches.length||(this.zooming&&(this.moveX=Ot(this.moveX,-this.maxMoveX,this.maxMoveX),this.moveY=Ot(this.moveY,-this.maxMoveY,this.maxMoveY),this.zooming=!1),this.moving=!1,this.startMoveX=0,this.startMoveY=0,this.startScale=1,this.scale<1&&this.resetScale())),x(t,e),this.checkTap(),this.resetTouchStatus()},checkTap:function(){var t=this,e=this.offsetX,i=void 0===e?0:e,n=this.offsetY,r=void 0===n?0:n,o=new Date-this.touchStartTime;i<10&&r<10&&o<250&&(this.doubleTapTimer?(clearTimeout(this.doubleTapTimer),this.doubleTapTimer=null,this.toggleScale()):this.doubleTapTimer=setTimeout((function(){t.$emit("close"),t.doubleTapTimer=null}),250))},onLoad:function(t){var e=t.target,i=e.naturalWidth,n=e.naturalHeight;this.imageRatio=n/i}},render:function(){var t=arguments[0],e={loading:function(){return t(vt,{attrs:{type:"spinner"}})}};return t(tr,{class:Yn("swipe-item")},[t(Hn,{attrs:{src:this.src,fit:"contain"},class:Yn("image",{vertical:this.vertical}),style:this.imageStyle,scopedSlots:e,on:{load:this.onLoad}})])}},rr=_n({mixins:[R,X({skipToggleEvent:!0}),W((function(t){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0)}))],props:{className:null,closeable:Boolean,asyncClose:Boolean,showIndicators:Boolean,images:{type:Array,default:function(){return[]}},loop:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},minZoom:{type:[Number,String],default:1/3},maxZoom:{type:[Number,String],default:3},showIndex:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:300},startPosition:{type:[Number,String],default:0},overlayClass:{type:String,default:Yn("overlay")},closeIcon:{type:String,default:"clear"},closeOnPopstate:{type:Boolean,default:!0},closeIconPosition:{type:String,default:"top-right"}},data:function(){return{active:0,rootWidth:0,rootHeight:0,doubleClickTimer:null}},mounted:function(){this.resize()},watch:{startPosition:"setActive",value:function(t){var e=this;t?(this.setActive(+this.startPosition),this.$nextTick((function(){e.resize(),e.$refs.swipe.swipeTo(+e.startPosition,{immediate:!0})}))):this.$emit("close",{index:this.active,url:this.images[this.active]})}},methods:{resize:function(){if(this.$el&&this.$el.getBoundingClientRect){var t=this.$el.getBoundingClientRect();this.rootWidth=t.width,this.rootHeight=t.height}},emitClose:function(){this.asyncClose||this.$emit("input",!1)},emitScale:function(t){this.$emit("scale",t)},setActive:function(t){t!==this.active&&(this.active=t,this.$emit("change",t))},genIndex:function(){var t=this.$createElement;if(this.showIndex)return t("div",{class:Yn("index")},[this.slots("index",{index:this.active})||this.active+1+" / "+this.images.length])},genCover:function(){var t=this.$createElement,e=this.slots("cover");if(e)return t("div",{class:Yn("cover")},[e])},genImages:function(){var t=this,e=this.$createElement;return e(Qn,{ref:"swipe",attrs:{lazyRender:!0,loop:this.loop,duration:this.swipeDuration,initialSwipe:this.startPosition,showIndicators:this.showIndicators,indicatorColor:"white"},class:Yn("swipe"),on:{change:this.setActive}},[this.images.map((function(i){return e(nr,{attrs:{src:i,show:t.value,active:t.active,maxZoom:t.maxZoom,minZoom:t.minZoom,rootWidth:t.rootWidth,rootHeight:t.rootHeight},on:{scale:t.emitScale,close:t.emitClose}})}))])},genClose:function(){var t=this.$createElement;if(this.closeable)return t(rt,{attrs:{role:"button",name:this.closeIcon},class:Yn("close-icon",this.closeIconPosition),on:{click:this.emitClose}})},onClosed:function(){this.$emit("closed")},swipeTo:function(t,e){this.$refs.swipe&&this.$refs.swipe.swipeTo(t,e)}},render:function(){var t=arguments[0];if(this.shouldRender)return t("transition",{attrs:{name:"van-fade"},on:{afterLeave:this.onClosed}},[t("div",{directives:[{name:"show",value:this.value}],class:[Yn(),this.className]},[this.genClose(),this.genImages(),this.genIndex(),this.genCover()])])}}),or={loop:!0,value:!0,images:[],maxZoom:3,minZoom:1/3,onClose:null,onChange:null,className:"",showIndex:!0,closeable:!1,closeIcon:"clear",asyncClose:!1,getContainer:"body",startPosition:0,swipeDuration:300,showIndicators:!1,closeOnPopstate:!0,closeIconPosition:"top-right"},sr=function(t,e){if(void 0===e&&(e=0),!p.g){ir||(ir=new(l.a.extend(rr))({el:document.createElement("div")}),document.body.appendChild(ir.$el),ir.$on("change",(function(t){ir.onChange&&ir.onChange(t)})),ir.$on("scale",(function(t){ir.onScale&&ir.onScale(t)})));var i=Array.isArray(t)?{images:t,startPosition:e}:t;return n(ir,or,i),ir.$once("input",(function(t){ir.value=t})),ir.$once("closed",(function(){ir.images=[]})),i.onClose&&(ir.$off("close"),ir.$once("close",i.onClose)),ir}};sr.Component=rr,sr.install=function(){l.a.use(rr)};var ar=sr,lr=Object(s.a)("index-anchor"),cr=lr[0],ur=lr[1],hr=cr({mixins:[He("vanIndexBar",{indexKey:"childrenIndex"})],props:{index:[Number,String]},data:function(){return{top:0,left:null,rect:{top:0,height:0},width:null,active:!1}},computed:{sticky:function(){return this.active&&this.parent.sticky},anchorStyle:function(){if(this.sticky)return{zIndex:""+this.parent.zIndex,left:this.left?this.left+"px":null,width:this.width?this.width+"px":null,transform:"translate3d(0, "+this.top+"px, 0)",color:this.parent.highlightColor}}},mounted:function(){var t=this.$el.getBoundingClientRect();this.rect.height=t.height},methods:{scrollIntoView:function(){this.$el.scrollIntoView()},getRect:function(t,e){var i=this.$el.getBoundingClientRect();return this.rect.height=i.height,t===window||t===document.body?this.rect.top=i.top+M():this.rect.top=i.top+L(t)-e.top,this.rect}},render:function(){var t,e=arguments[0],i=this.sticky;return e("div",{style:{height:i?this.rect.height+"px":null}},[e("div",{style:this.anchorStyle,class:[ur({sticky:i}),(t={},t["van-hairline--bottom"]=i,t)]},[this.slots("default")||this.index])])}});var dr=Object(s.a)("index-bar"),fr=dr[0],pr=dr[1],vr=fr({mixins:[R,We("vanIndexBar"),W((function(t){this.scroller||(this.scroller=P(this.$el)),t(this.scroller,"scroll",this.onScroll)}))],props:{zIndex:[Number,String],highlightColor:String,sticky:{type:Boolean,default:!0},stickyOffsetTop:{type:Number,default:0},indexList:{type:Array,default:function(){for(var t=[],e="A".charCodeAt(0),i=0;i<26;i++)t.push(String.fromCharCode(e+i));return t}}},data:function(){return{activeAnchorIndex:null}},computed:{sidebarStyle:function(){if(Object(p.c)(this.zIndex))return{zIndex:this.zIndex+1}},highlightStyle:function(){var t=this.highlightColor;if(t)return{color:t}}},watch:{indexList:function(){this.$nextTick(this.onScroll)},activeAnchorIndex:function(t){t&&this.$emit("change",t)}},methods:{onScroll:function(){var t=this;if(!Xn(this.$el)){var e=L(this.scroller),i=this.getScrollerRect(),n=this.children.map((function(e){return e.getRect(t.scroller,i)})),r=this.getActiveAnchorIndex(e,n);this.activeAnchorIndex=this.indexList[r],this.sticky&&this.children.forEach((function(o,s){if(s===r||s===r-1){var a=o.$el.getBoundingClientRect();o.left=a.left,o.width=a.width}else o.left=null,o.width=null;if(s===r)o.active=!0,o.top=Math.max(t.stickyOffsetTop,n[s].top-e)+i.top;else if(s===r-1){var l=n[r].top-e;o.active=l>0,o.top=l+i.top-n[s].height}else o.active=!1}))}},getScrollerRect:function(){return this.scroller.getBoundingClientRect?this.scroller.getBoundingClientRect():{top:0,left:0}},getActiveAnchorIndex:function(t,e){for(var i=this.children.length-1;i>=0;i--){var n=i>0?e[i-1].height:0;if(t+(this.sticky?n+this.stickyOffsetTop:0)>=e[i].top)return i}return-1},onClick:function(t){this.scrollToElement(t.target)},onTouchMove:function(t){if(this.touchMove(t),"vertical"===this.direction){x(t);var e=t.touches[0],i=e.clientX,n=e.clientY,r=document.elementFromPoint(i,n);if(r){var o=r.dataset.index;this.touchActiveIndex!==o&&(this.touchActiveIndex=o,this.scrollToElement(r))}}},scrollTo:function(t){var e=this.children.filter((function(e){return String(e.index)===t}));e[0]&&(e[0].scrollIntoView(),this.sticky&&this.stickyOffsetTop&&N(M()-this.stickyOffsetTop),this.$emit("select",e[0].index))},scrollToElement:function(t){var e=t.dataset.index;this.scrollTo(e)},onTouchEnd:function(){this.active=null}},render:function(){var t=this,e=arguments[0],i=this.indexList.map((function(i){var n=i===t.activeAnchorIndex;return e("span",{class:pr("index",{active:n}),style:n?t.highlightStyle:null,attrs:{"data-index":i}},[i])}));return e("div",{class:pr()},[e("div",{class:pr("sidebar"),style:this.sidebarStyle,on:{click:this.onClick,touchstart:this.touchStart,touchmove:this.onTouchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[i]),this.slots("default")])}}),mr=i(10),gr=i.n(mr).a,yr=Object(s.a)("list"),br=yr[0],xr=yr[1],wr=yr[2],Sr=br({mixins:[W((function(t){this.scroller||(this.scroller=P(this.$el)),t(this.scroller,"scroll",this.check)}))],model:{prop:"loading"},props:{error:Boolean,loading:Boolean,finished:Boolean,errorText:String,loadingText:String,finishedText:String,immediateCheck:{type:Boolean,default:!0},offset:{type:[Number,String],default:300},direction:{type:String,default:"down"}},data:function(){return{innerLoading:this.loading}},updated:function(){this.innerLoading=this.loading},mounted:function(){this.immediateCheck&&this.check()},watch:{loading:"check",finished:"check"},methods:{check:function(){var t=this;this.$nextTick((function(){if(!(t.innerLoading||t.finished||t.error)){var e,i=t.$el,n=t.scroller,r=t.offset,o=t.direction;if(!((e=n.getBoundingClientRect?n.getBoundingClientRect():{top:0,bottom:n.innerHeight}).bottom-e.top)||Xn(i))return!1;var s=t.$refs.placeholder.getBoundingClientRect();("up"===o?e.top-s.top<=r:s.bottom-e.bottom<=r)&&(t.innerLoading=!0,t.$emit("input",!0),t.$emit("load"))}}))},clickErrorText:function(){this.$emit("update:error",!1),this.check()},genLoading:function(){var t=this.$createElement;if(this.innerLoading&&!this.finished)return t("div",{key:"loading",class:xr("loading")},[this.slots("loading")||t(vt,{attrs:{size:"16"}},[this.loadingText||wr("loading")])])},genFinishedText:function(){var t=this.$createElement;if(this.finished){var e=this.slots("finished")||this.finishedText;if(e)return t("div",{class:xr("finished-text")},[e])}},genErrorText:function(){var t=this.$createElement;if(this.error){var e=this.slots("error")||this.errorText;if(e)return t("div",{on:{click:this.clickErrorText},class:xr("error-text")},[e])}}},render:function(){var t=arguments[0],e=t("div",{ref:"placeholder",key:"placeholder",class:xr("placeholder")});return t("div",{class:xr(),attrs:{role:"feed","aria-busy":this.innerLoading}},["down"===this.direction?this.slots():e,this.genLoading(),this.genFinishedText(),this.genErrorText(),"up"===this.direction?this.slots():e])}}),kr=i(7),Cr=Object(s.a)("nav-bar"),Or=Cr[0],Tr=Cr[1],$r=Or({props:{title:String,fixed:Boolean,zIndex:[Number,String],leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,border:{type:Boolean,default:!0}},data:function(){return{height:null}},mounted:function(){this.placeholder&&this.fixed&&(this.height=this.$refs.navBar.getBoundingClientRect().height)},methods:{genLeft:function(){var t=this.$createElement,e=this.slots("left");return e||[this.leftArrow&&t(rt,{class:Tr("arrow"),attrs:{name:"arrow-left"}}),this.leftText&&t("span",{class:Tr("text")},[this.leftText])]},genRight:function(){var t=this.$createElement,e=this.slots("right");return e||(this.rightText?t("span",{class:Tr("text")},[this.rightText]):void 0)},genNavBar:function(){var t,e=this.$createElement;return e("div",{ref:"navBar",style:{zIndex:this.zIndex},class:[Tr({fixed:this.fixed,"safe-area-inset-top":this.safeAreaInsetTop}),(t={},t["van-hairline--bottom"]=this.border,t)]},[e("div",{class:Tr("content")},[this.hasLeft()&&e("div",{class:Tr("left"),on:{click:this.onClickLeft}},[this.genLeft()]),e("div",{class:[Tr("title"),"van-ellipsis"]},[this.slots("title")||this.title]),this.hasRight()&&e("div",{class:Tr("right"),on:{click:this.onClickRight}},[this.genRight()])])])},hasLeft:function(){return this.leftArrow||this.leftText||this.slots("left")},hasRight:function(){return this.rightText||this.slots("right")},onClickLeft:function(t){this.$emit("click-left",t)},onClickRight:function(t){this.$emit("click-right",t)}},render:function(){var t=arguments[0];return this.placeholder&&this.fixed?t("div",{class:Tr("placeholder"),style:{height:this.height+"px"}},[this.genNavBar()]):this.genNavBar()}}),Ir={render:function(){var t=arguments[0];return t("svg",{attrs:{viewBox:"0 0 32 22",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M28.016 0A3.991 3.991 0 0132 3.987v14.026c0 2.2-1.787 3.987-3.98 3.987H10.382c-.509 0-.996-.206-1.374-.585L.89 13.09C.33 12.62 0 11.84 0 11.006c0-.86.325-1.62.887-2.08L9.01.585A1.936 1.936 0 0110.383 0zm0 1.947H10.368L2.24 10.28c-.224.226-.312.432-.312.73 0 .287.094.51.312.729l8.128 8.333h17.648a2.041 2.041 0 002.037-2.04V3.987c0-1.127-.915-2.04-2.037-2.04zM23.028 6a.96.96 0 01.678.292.95.95 0 01-.003 1.377l-3.342 3.348 3.326 3.333c.189.188.292.43.292.679 0 .248-.103.49-.292.679a.96.96 0 01-.678.292.959.959 0 01-.677-.292L18.99 12.36l-3.343 3.345a.96.96 0 01-.677.292.96.96 0 01-.678-.292.962.962 0 01-.292-.68c0-.248.104-.49.292-.679l3.342-3.348-3.342-3.348A.963.963 0 0114 6.971c0-.248.104-.49.292-.679A.96.96 0 0114.97 6a.96.96 0 01.677.292l3.358 3.348 3.345-3.348A.96.96 0 0123.028 6z",fill:"currentColor"}})])}},Br={render:function(){var t=arguments[0];return t("svg",{attrs:{viewBox:"0 0 30 24",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M25.877 12.843h-1.502c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.5c.187 0 .187 0 .187-.188v-1.511c0-.19 0-.191-.185-.191zM17.999 10.2c0 .188 0 .188.188.188h1.687c.188 0 .188 0 .188-.188V8.688c0-.187.004-.187-.186-.19h-1.69c-.187 0-.187 0-.187.19V10.2zm2.25-3.967h1.5c.188 0 .188 0 .188-.188v-1.7c0-.19 0-.19-.188-.19h-1.5c-.189 0-.189 0-.189.19v1.7c0 .188 0 .188.19.188zm2.063 4.157h3.563c.187 0 .187 0 .187-.189V4.346c0-.19.004-.19-.185-.19h-1.69c-.187 0-.187 0-.187.188v4.155h-1.688c-.187 0-.187 0-.187.189v1.514c0 .19 0 .19.187.19zM14.812 24l2.812-3.4H12l2.813 3.4zm-9-11.157H4.31c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.502c.187 0 .187 0 .187-.188v-1.511c0-.19.01-.191-.189-.191zm15.937 0H8.25c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h13.5c.188 0 .188 0 .188-.188v-1.511c0-.19 0-.191-.188-.191zm-11.438-2.454h1.5c.188 0 .188 0 .188-.188V8.688c0-.187 0-.187-.188-.189h-1.5c-.187 0-.187 0-.187.189V10.2c0 .188 0 .188.187.188zM27.94 0c.563 0 .917.21 1.313.567.518.466.748.757.748 1.51v14.92c0 .567-.188 1.134-.562 1.512-.376.378-.938.566-1.313.566H2.063c-.563 0-.938-.188-1.313-.566-.562-.378-.75-.945-.75-1.511V2.078C0 1.51.188.944.562.567.938.189 1.5 0 1.875 0zm-.062 2H2v14.92h25.877V2zM5.81 4.157c.19 0 .19 0 .19.189v1.762c-.003.126-.024.126-.188.126H4.249c-.126-.003-.126-.023-.126-.188v-1.7c-.187-.19 0-.19.188-.19zm10.5 2.077h1.503c.187 0 .187 0 .187-.188v-1.7c0-.19 0-.19-.187-.19h-1.502c-.188 0-.188.001-.188.19v1.7c0 .188 0 .188.188.188zM7.875 8.5c.187 0 .187.002.187.189V10.2c0 .188 0 .188-.187.188H4.249c-.126-.002-.126-.023-.126-.188V8.625c.003-.126.024-.126.188-.126zm7.875 0c.19.002.19.002.19.189v1.575c-.003.126-.024.126-.19.126h-1.563c-.126-.002-.126-.023-.126-.188V8.625c.002-.126.023-.126.189-.126zm-6-4.342c.187 0 .187 0 .187.189v1.7c0 .188 0 .188-.187.188H8.187c-.126-.003-.126-.023-.126-.188V4.283c.003-.126.024-.126.188-.126zm3.94 0c.185 0 .372 0 .372.189v1.762c-.002.126-.023.126-.187.126h-1.75C12 6.231 12 6.211 12 6.046v-1.7c0-.19.187-.19.187-.19z",fill:"currentColor"}})])}},Er=Object(s.a)("key"),Dr=Er[0],jr=Er[1],zr=Dr({mixins:[R],props:{type:String,text:[Number,String],color:String,wider:Boolean,large:Boolean,loading:Boolean,isTielv:Boolean},data:function(){return{active:!1}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{onTouchStart:function(t){t.stopPropagation(),this.touchStart(t),this.active=!0},onTouchMove:function(t){this.touchMove(t),this.direction&&(this.active=!1)},onTouchEnd:function(t){this.active&&(this.slots("default")||t.preventDefault(),this.active=!1,this.$emit("press",this.text,this.type))},genContent:function(){var t=this.$createElement,e="extra"===this.type,i="delete"===this.type,n=this.slots("default")||this.text;return this.loading?t(vt,{class:jr("loading-icon")}):i?n||t(Ir,{class:jr("delete-icon")}):e?n||t(Br,{class:jr("collapse-icon")}):n}},render:function(){var t=arguments[0];return this.isTielv?t("div",{class:jr("tielv",{wider:this.wider})},[t("div",{attrs:{role:"button",tabindex:"0"},class:jr([this.color,{large:this.large,active:this.active,delete:"delete"===this.type,tielvcolor:this.isTielv}])},[this.genContent()])]):t("div",{class:jr("wrapper",{wider:this.wider})},[t("div",{attrs:{role:"button",tabindex:"0"},class:jr([this.color,{large:this.large,active:this.active,delete:"delete"===this.type}])},[this.genContent()])])}}),Pr=Object(s.a)("number-keyboard"),Lr=Pr[0],Ar=Pr[1],Mr=Lr({mixins:[F(),W((function(t){this.hideOnClickOutside&&t(document.body,"touchstart",this.onBlur)}))],model:{event:"update:value"},props:{show:Boolean,title:String,zIndex:[Number,String],randomKeyOrder:Boolean,closeButtonText:String,deleteButtonText:String,closeButtonLoading:Boolean,theme:{type:String,default:"default"},value:{type:String,default:""},extraKey:{type:[String,Array],default:""},maxlength:{type:[Number,String],default:Number.MAX_VALUE},transition:{type:Boolean,default:!0},showDeleteKey:{type:Boolean,default:!0},hideOnClickOutside:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},tielv:{type:Boolean,default:!1}},watch:{show:function(t){this.transition||this.$emit(t?"show":"hide")}},computed:{keys:function(){return"custom"===this.theme?this.genCustomKeys():this.genDefaultKeys()},keyZero:function(){return this.genZeroKeys()},tieLvkey:function(){return this.genTielvKeys()}},methods:{genBasicKeys:function(){for(var t=[],e=1;e<=9;e++)t.push({text:e});return this.randomKeyOrder&&t.sort((function(){return Math.random()>.5?1:-1})),t},genZeroKeys:function(){var t=[];return t.push({text:"0"}),this.randomKeyOrder&&t.sort((function(){return Math.random()>.5?1:-1})),t},genTielvKeys:function(){var t=[];return t.push({text:"C"}),t.push({text:"D"}),t.push({text:"G"}),t.push({text:"K"}),t.push({text:"T"}),t.push({text:"Z"}),t.push({text:"Y"}),t.push({text:"L"}),t.push({text:"S"}),this.randomKeyOrder&&t.sort((function(){return Math.random()>.5?1:-1})),t},genDefaultKeys:function(){return[].concat(this.genBasicKeys(),[{text:this.extraKey,type:"extra"},{text:0},{text:this.showDeleteKey?this.deleteButtonText:"",type:this.showDeleteKey?"delete":""}])},genCustomKeys:function(){for(var t=this.genBasicKeys(),e=this.extraKey,i=Array.isArray(e)?e:[e],n=1;n<=i.length;n++)t.push({text:i[n],type:"extra"});return t},onBlur:function(){this.show&&this.$emit("blur")},onClose:function(){this.$emit("close"),this.onBlur()},onAnimationEnd:function(){this.$emit(this.show?"show":"hide")},onPress:function(t,e){if(""!==t){var i=this.value;"delete"===e?(this.$emit("delete"),this.$emit("update:value",i.slice(0,i.length-1))):"close"===e?this.onClose():i.length<this.maxlength&&(this.$emit("input",t),this.$emit("update:value",i+t))}else"extra"===e&&this.onBlur()},genTitle:function(){var t=this.$createElement,e=this.title,i=this.theme,n=this.closeButtonText,r=this.slots("title-left"),o=n&&"default"===i;if(e||o||r)return t("div",{class:Ar("header")},[r&&t("span",{class:Ar("title-left")},[r]),e&&t("h2",{class:Ar("title")},[e]),o&&t("button",{attrs:{type:"button"},class:Ar("close"),on:{click:this.onClose}},[n])])},genKeys:function(){var t=this,e=this.$createElement;return console.log("打印genKeys:",this.keys),this.keys.map((function(i){return e(zr,{key:i.text,attrs:{text:i.text,type:i.type,wider:i.wider,color:i.color},on:{press:t.onPress}},["delete"===i.type&&t.slots("delete"),"extra"===i.type&&t.slots("extra-key")])}))},getKeyZero:function(){var t=this,e=this.$createElement;return console.log("打印:",this.keyZero),this.keyZero.map((function(i){return e(zr,{key:i.text,attrs:{text:i.text,type:i.type,wider:i.wider,color:i.color},on:{press:t.onPress}},["delete"===i.type&&t.slots("delete"),"extra"===i.type&&t.slots("extra-key")])}))},getTielvKey:function(){var t=this,e=this.$createElement;return this.tieLvkey.map((function(i){return e(zr,{key:i.text,attrs:{text:i.text,type:i.type,wider:i.wider,color:i.color,isTielv:!0},on:{press:t.onPress}},["delete"===i.type&&t.slots("delete"),"extra"===i.type&&t.slots("extra-key")])}))},genSidebar:function(){var t=this.$createElement;if("custom"===this.theme)return t("div",{class:Ar("sidebar")},[this.showDeleteKey&&t(zr,{attrs:{large:!0,text:this.deleteButtonText,type:"delete"},on:{press:this.onPress}},[this.slots("delete")]),t("div",{class:Ar("keys")},[this.getKeyZero()]),t(zr,{attrs:{large:!0,type:"close",loading:this.closeButtonLoading},on:{press:this.onPress}},[t(Br,{class:Ar("collapse-icon")})])])}},render:function(){var t=arguments[0],e=this.genTitle();return this.tielv?t("transition",{attrs:{name:this.transition?"van-slide-up":""}},[t("div",{directives:[{name:"show",value:this.show}],style:{zIndex:this.zIndex},class:Ar({unfit:!this.safeAreaInsetBottom,"with-title":e}),on:{touchstart:b,animationend:this.onAnimationEnd,webkitAnimationEnd:this.onAnimationEnd}},[e,t("div",{class:Ar("tielv")},[this.getTielvKey()]),t("div",{class:Ar("body")},[t("div",{class:Ar("keys")},[this.genKeys()]),this.genSidebar()])])]):t("transition",{attrs:{name:this.transition?"van-slide-up":""}},[t("div",{directives:[{name:"show",value:this.show}],style:{zIndex:this.zIndex},class:Ar({unfit:!this.safeAreaInsetBottom,"with-title":e}),on:{touchstart:b,animationend:this.onAnimationEnd,webkitAnimationEnd:this.onAnimationEnd}},[e,t("div",{class:Ar("body")},[t("div",{class:Ar("keys")},[this.genKeys()]),this.genSidebar()])])])}}),Nr=Object(s.a)("password-input"),Vr=Nr[0],Rr=Nr[1];function Fr(t,e,i,n){for(var r,s=e.mask,a=e.value,l=e.length,c=e.gutter,u=e.focused,f=e.errorInfo,p=f||e.info,v=[],m=0;m<l;m++){var g,y=a[m],b=0!==m&&!c,x=u&&m===a.length,w=void 0;0!==m&&c&&(w={marginLeft:Object(K.a)(c)}),v.push(t("li",{class:[(g={},g["van-hairline--left"]=b,g),Rr("item",{focus:x})],style:w},[s?t("i",{style:{visibility:y?"visible":"hidden"}}):y,x&&t("div",{class:Rr("cursor")})]))}return t("div",{class:Rr()},[t("ul",o()([{class:[Rr("security"),(r={},r["van-hairline--surround"]=!c,r)],on:{touchstart:function(t){t.stopPropagation(),d(n,"focus",t)}}},h(n,!0)]),[v]),p&&t("div",{class:Rr(f?"error-info":"info")},[p])])}Fr.props={info:String,gutter:[Number,String],focused:Boolean,errorInfo:String,mask:{type:Boolean,default:!0},value:{type:String,default:""},length:{type:[Number,String],default:6}};var Hr=Vr(Fr);function Wr(){return(Wr=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function _r(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function Yr(t){if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Xr(t){var e=Yr(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Kr(t){return t instanceof Yr(t).Element||t instanceof Element}function Ur(t){return t instanceof Yr(t).HTMLElement||t instanceof HTMLElement}function qr(t){return t?(t.nodeName||"").toLowerCase():null}function Qr(t){return((Kr(t)?t.ownerDocument:t.document)||window.document).documentElement}function Zr(t){return Yr(t).getComputedStyle(t)}function Gr(t){var e=Zr(t),i=e.overflow,n=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function Jr(t,e,i){void 0===i&&(i=!1);var n,r,o=Qr(e),s=_r(t),a=Ur(e),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!i)&&(("body"!==qr(e)||Gr(o))&&(l=(n=e)!==Yr(n)&&Ur(n)?{scrollLeft:(r=n).scrollLeft,scrollTop:r.scrollTop}:Xr(n)),Ur(e)?((c=_r(e)).x+=e.clientLeft,c.y+=e.clientTop):o&&(c.x=function(t){return _r(Qr(t)).left+Xr(t).scrollLeft}(o))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function to(t){return"html"===qr(t)?t:t.assignedSlot||t.parentNode||t.host||Qr(t)}function eo(t,e){void 0===e&&(e=[]);var i=function t(e){return["html","body","#document"].indexOf(qr(e))>=0?e.ownerDocument.body:Ur(e)&&Gr(e)?e:t(to(e))}(t),n="body"===qr(i),r=Yr(i),o=n?[r].concat(r.visualViewport||[],Gr(i)?i:[]):i,s=e.concat(o);return n?s:s.concat(eo(to(o)))}function io(t){return["table","td","th"].indexOf(qr(t))>=0}function no(t){if(!Ur(t)||"fixed"===Zr(t).position)return null;var e=t.offsetParent;if(e){var i=Qr(e);if("body"===qr(e)&&"static"===Zr(e).position&&"static"!==Zr(i).position)return i}return e}function ro(t){for(var e=Yr(t),i=no(t);i&&io(i)&&"static"===Zr(i).position;)i=no(i);return i&&"body"===qr(i)&&"static"===Zr(i).position?e:i||function(t){for(var e=to(t);Ur(e)&&["html","body"].indexOf(qr(e))<0;){var i=Zr(e);if("none"!==i.transform||"none"!==i.perspective||i.willChange&&"auto"!==i.willChange)return e;e=e.parentNode}return null}(t)||e}var oo="top",so="right",ao="left",lo=[].concat([oo,"bottom",so,ao],["auto"]).reduce((function(t,e){return t.concat([e,e+"-start",e+"-end"])}),[]),co=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function uo(t){var e=new Map,i=new Set,n=[];return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||function t(r){i.add(r.name),[].concat(r.requires||[],r.requiresIfExists||[]).forEach((function(n){if(!i.has(n)){var r=e.get(n);r&&t(r)}})),n.push(r)}(t)})),n}function ho(t){return t.split("-")[0]}var fo={placement:"bottom",modifiers:[],strategy:"absolute"};function po(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function vo(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,r=e.defaultOptions,o=void 0===r?fo:r;return function(t,e,i){void 0===i&&(i=o);var r,s,a={placement:"bottom",orderedModifiers:[],options:Wr(Wr({},fo),o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(i){h(),a.options=Wr(Wr(Wr({},o),a.options),i),a.scrollParents={reference:Kr(t)?eo(t):t.contextElement?eo(t.contextElement):[],popper:eo(e)};var r=function(t){var e=uo(t);return co.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}(function(t){var e=t.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Wr(Wr(Wr({},i),e),{},{options:Wr(Wr({},i.options),e.options),data:Wr(Wr({},i.data),e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}([].concat(n,a.options.modifiers)));return a.orderedModifiers=r.filter((function(t){return t.enabled})),a.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,r=t.effect;if("function"==typeof r){var o=r({state:a,name:e,instance:u,options:n});l.push(o||function(){})}})),u.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,i=t.popper;if(po(e,i)){var n;a.rects={reference:Jr(e,ro(i),"fixed"===a.options.strategy),popper:(n=i,{x:n.offsetLeft,y:n.offsetTop,width:n.offsetWidth,height:n.offsetHeight})},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(t){return a.modifiersData[t.name]=Wr({},t.data)}));for(var r=0;r<a.orderedModifiers.length;r++)if(!0!==a.reset){var o=a.orderedModifiers[r],s=o.fn,l=o.options,h=void 0===l?{}:l,d=o.name;"function"==typeof s&&(a=s({state:a,options:h,name:d,instance:u})||a)}else a.reset=!1,r=-1}}},update:(r=function(){return new Promise((function(t){u.forceUpdate(),t(a)}))},function(){return s||(s=new Promise((function(t){Promise.resolve().then((function(){s=void 0,t(r())}))}))),s}),destroy:function(){h(),c=!0}};if(!po(t,e))return u;function h(){l.forEach((function(t){return t()})),l=[]}return u.setOptions(i).then((function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t)})),u}}var mo={passive:!0};var go={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yo(t){var e,i=t.popper,n=t.popperRect,r=t.placement,o=t.offsets,s=t.position,a=t.gpuAcceleration,l=t.adaptive,c=function(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return{x:Math.round(e*n)/n||0,y:Math.round(i*n)/n||0}}(o),u=c.x,h=c.y,d=o.hasOwnProperty("x"),f=o.hasOwnProperty("y"),p=ao,v=oo,m=window;if(l){var g=ro(i);g===Yr(i)&&(g=Qr(i)),r===oo&&(v="bottom",h-=g.clientHeight-n.height,h*=a?1:-1),r===ao&&(p=so,u-=g.clientWidth-n.width,u*=a?1:-1)}var y,b=Wr({position:s},l&&go);return Wr(Wr({},b),{},a?((y={})[v]=f?"0":"",y[p]=d?"0":"",y.transform=(m.devicePixelRatio||1)<2?"translate("+u+"px, "+h+"px)":"translate3d("+u+"px, "+h+"px, 0)",y):((e={})[v]=f?h+"px":"",e[p]=d?u+"px":"",e.transform="",e))}var bo=vo({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,r=n.scroll,o=void 0===r||r,s=n.resize,a=void 0===s||s,l=Yr(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",i.update,mo)})),a&&l.addEventListener("resize",i.update,mo),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",i.update,mo)})),a&&l.removeEventListener("resize",i.update,mo)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=function(t){var e,i=t.reference,n=t.element,r=t.placement,o=r?ho(r):null,s=r?function(t){return t.split("-")[1]}(r):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case oo:e={x:a,y:i.y-n.height};break;case"bottom":e={x:a,y:i.y+i.height};break;case so:e={x:i.x+i.width,y:l};break;case ao:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=o?function(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}(o):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case"start":e[c]=Math.floor(e[c])-Math.floor(i[u]/2-n[u]/2);break;case"end":e[c]=Math.floor(e[c])+Math.ceil(i[u]/2-n[u]/2)}}return e}({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,r=void 0===n||n,o=i.adaptive,s=void 0===o||o,a={placement:ho(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Wr(Wr({},e.styles.popper),yo(Wr(Wr({},a),{},{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Wr(Wr({},e.styles.arrow),yo(Wr(Wr({},a),{},{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Wr(Wr({},e.attributes.popper),{},{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},r=e.elements[t];Ur(r)&&qr(r)&&(Wr(r.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Wr(e.elements.popper.style,i.popper),e.elements.arrow&&Wr(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],r=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});Ur(n)&&qr(n)&&(Wr(n.style,o),Object.keys(r).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]}]});var xo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,r=i.offset,o=void 0===r?[0,0]:r,s=lo.reduce((function(t,i){return t[i]=function(t,e,i){var n=ho(t),r=[ao,oo].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Wr(Wr({},e),{},{placement:t})):i,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[ao,so].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}(i,e.rects,o),t}),{}),a=s[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=s}},wo=Object(s.a)("popover"),So=wo[0],ko=wo[1],Co=So({mixins:[Cn({event:"touchstart",method:"onClickOutside"})],props:{value:Boolean,trigger:String,overlay:Boolean,offset:{type:Array,default:function(){return[0,8]}},theme:{type:String,default:"light"},actions:{type:Array,default:function(){return[]}},placement:{type:String,default:"bottom"},getContainer:{type:[String,Function],default:"body"},closeOnClickAction:{type:Boolean,default:!0}},watch:{value:"updateLocation",placement:"updateLocation"},mounted:function(){this.updateLocation()},beforeDestroy:function(){this.popper&&(this.popper.destroy(),this.popper=null)},methods:{createPopper:function(){return bo(this.$refs.wrapper,this.$refs.popover.$el,{placement:this.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},n({},xo,{options:{offset:this.offset}})]})},updateLocation:function(){var t=this;this.$nextTick((function(){t.value&&(t.popper?t.popper.setOptions({placement:t.placement}):t.popper=t.createPopper())}))},renderAction:function(t,e){var i=this,n=this.$createElement,r=t.icon,o=t.text,s=t.disabled,a=t.className;return n("div",{attrs:{role:"menuitem"},class:[ko("action",{disabled:s,"with-icon":r}),a],on:{click:function(){return i.onClickAction(t,e)}}},[r&&n(rt,{attrs:{name:r},class:ko("action-icon")}),n("div",{class:[ko("action-text"),"van-hairline--bottom"]},[o])])},onToggle:function(t){this.$emit("input",t)},onClickWrapper:function(){"click"===this.trigger&&this.onToggle(!this.value)},onTouchstart:function(t){t.stopPropagation(),this.$emit("touchstart",t)},onClickAction:function(t,e){t.disabled||(this.$emit("select",t,e),this.closeOnClickAction&&this.$emit("input",!1))},onClickOutside:function(){this.$emit("input",!1)},onOpen:function(){this.$emit("open")},onOpened:function(){this.$emit("opened")},onClose:function(){this.$emit("close")},onClosed:function(){this.$emit("closed")}},render:function(){var t=arguments[0];return t("span",{ref:"wrapper",class:ko("wrapper"),on:{click:this.onClickWrapper}},[t(lt,{ref:"popover",attrs:{value:this.value,overlay:this.overlay,position:null,transition:"van-popover-zoom",lockScroll:!1,getContainer:this.getContainer},class:ko([this.theme]),on:{open:this.onOpen,close:this.onClose,input:this.onToggle,opened:this.onOpened,closed:this.onClosed},nativeOn:{touchstart:this.onTouchstart}},[t("div",{class:ko("arrow")}),t("div",{class:ko("content"),attrs:{role:"menu"}},[this.slots("default")||this.actions.map(this.renderAction)])]),this.slots("reference")])}}),Oo=Object(s.a)("pull-refresh"),To=Oo[0],$o=Oo[1],Io=Oo[2],Bo=["pulling","loosing","success"],Eo=To({mixins:[R],props:{disabled:Boolean,successText:String,pullingText:String,loosingText:String,loadingText:String,value:{type:Boolean,required:!0},successDuration:{type:[Number,String],default:500},animationDuration:{type:[Number,String],default:300},headHeight:{type:[Number,String],default:50}},data:function(){return{status:"normal",distance:0,duration:0}},computed:{touchable:function(){return"loading"!==this.status&&"success"!==this.status&&!this.disabled},headStyle:function(){if(50!==this.headHeight)return{height:this.headHeight+"px"}}},watch:{value:function(t){this.duration=this.animationDuration,t?this.setStatus(+this.headHeight,!0):this.slots("success")||this.successText?this.showSuccessTip():this.setStatus(0,!1)}},mounted:function(){this.bindTouchEvent(this.$refs.track),this.scrollEl=P(this.$el)},methods:{checkPullStart:function(t){this.ceiling=0===L(this.scrollEl),this.ceiling&&(this.duration=0,this.touchStart(t))},onTouchStart:function(t){this.touchable&&this.checkPullStart(t)},onTouchMove:function(t){this.touchable&&(this.ceiling||this.checkPullStart(t),this.touchMove(t),this.ceiling&&this.deltaY>=0&&"vertical"===this.direction&&(x(t),this.setStatus(this.ease(this.deltaY))))},onTouchEnd:function(){var t=this;this.touchable&&this.ceiling&&this.deltaY&&(this.duration=this.animationDuration,"loosing"===this.status?(this.setStatus(+this.headHeight,!0),this.$emit("input",!0),this.$nextTick((function(){t.$emit("refresh")}))):this.setStatus(0))},ease:function(t){var e=+this.headHeight;return t>e&&(t=t<2*e?e+(t-e)/2:1.5*e+(t-2*e)/4),Math.round(t)},setStatus:function(t,e){var i;i=e?"loading":0===t?"normal":t<this.headHeight?"pulling":"loosing",this.distance=t,i!==this.status&&(this.status=i)},genStatus:function(){var t=this.$createElement,e=this.status,i=this.distance,n=this.slots(e,{distance:i});if(n)return n;var r=[],o=this[e+"Text"]||Io(e);return-1!==Bo.indexOf(e)&&r.push(t("div",{class:$o("text")},[o])),"loading"===e&&r.push(t(vt,{attrs:{size:"16"}},[o])),r},showSuccessTip:function(){var t=this;this.status="success",setTimeout((function(){t.setStatus(0)}),this.successDuration)}},render:function(){var t=arguments[0],e={transitionDuration:this.duration+"ms",transform:this.distance?"translate3d(0,"+this.distance+"px, 0)":""};return t("div",{class:$o()},[t("div",{ref:"track",class:$o("track"),style:e},[t("div",{class:$o("head"),style:this.headStyle},[this.genStatus()]),this.slots()])])}}),Do=Object(s.a)("rate"),jo=Do[0],zo=Do[1];var Po=jo({mixins:[R,Re],props:{size:[Number,String],color:String,gutter:[Number,String],readonly:Boolean,disabled:Boolean,allowHalf:Boolean,voidColor:String,iconPrefix:String,disabledColor:String,value:{type:Number,default:0},icon:{type:String,default:"star"},voidIcon:{type:String,default:"star-o"},count:{type:[Number,String],default:5},touchable:{type:Boolean,default:!0}},computed:{list:function(){for(var t,e,i,n=[],r=1;r<=this.count;r++)n.push((t=this.value,e=r,i=this.allowHalf,t>=e?"full":t+.5>=e&&i?"half":"void"));return n},sizeWithUnit:function(){return Object(K.a)(this.size)},gutterWithUnit:function(){return Object(K.a)(this.gutter)}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{select:function(t){this.disabled||this.readonly||t===this.value||(this.$emit("input",t),this.$emit("change",t))},onTouchStart:function(t){var e=this;if(!this.readonly&&!this.disabled&&this.touchable){this.touchStart(t);var i=this.$refs.items.map((function(t){return t.getBoundingClientRect()})),n=[];i.forEach((function(t,i){e.allowHalf?n.push({score:i+.5,left:t.left},{score:i+1,left:t.left+t.width/2}):n.push({score:i+1,left:t.left})})),this.ranges=n}},onTouchMove:function(t){if(!this.readonly&&!this.disabled&&this.touchable&&(this.touchMove(t),"horizontal"===this.direction)){x(t);var e=t.touches[0].clientX;this.select(this.getScoreByPosition(e))}},getScoreByPosition:function(t){for(var e=this.ranges.length-1;e>0;e--)if(t>this.ranges[e].left)return this.ranges[e].score;return this.allowHalf?.5:1},genStar:function(t,e){var i,n=this,r=this.$createElement,o=this.icon,s=this.color,a=this.count,l=this.voidIcon,c=this.disabled,u=this.voidColor,h=this.disabledColor,d=e+1,f="full"===t,p="void"===t;return this.gutterWithUnit&&d!==+a&&(i={paddingRight:this.gutterWithUnit}),r("div",{ref:"items",refInFor:!0,key:e,attrs:{role:"radio",tabindex:"0","aria-setsize":a,"aria-posinset":d,"aria-checked":String(!p)},style:i,class:zo("item")},[r(rt,{attrs:{size:this.sizeWithUnit,name:f?o:l,color:c?h:f?s:u,classPrefix:this.iconPrefix,"data-score":d},class:zo("icon",{disabled:c,full:f}),on:{click:function(){n.select(d)}}}),this.allowHalf&&r(rt,{attrs:{size:this.sizeWithUnit,name:p?l:o,color:c?h:p?u:s,classPrefix:this.iconPrefix,"data-score":d-.5},class:zo("icon",["half",{disabled:c,full:!p}]),on:{click:function(){n.select(d-.5)}}})])}},render:function(){var t=this,e=arguments[0];return e("div",{class:zo({readonly:this.readonly,disabled:this.disabled}),attrs:{tabindex:"0",role:"radiogroup"}},[this.list.map((function(e,i){return t.genStar(e,i)}))])}}),Lo=Object(s.a)("search"),Ao=Lo[0],Mo=Lo[1],No=Lo[2];function Vo(t,e,i,r){var s={attrs:r.data.attrs,on:n({},r.listeners,{keypress:function(t){13===t.keyCode&&(x(t),d(r,"search",e.value)),d(r,"keypress",t)}})},a=h(r);return a.attrs=void 0,t("div",o()([{class:Mo({"show-action":e.showAction}),style:{background:e.background}},a]),[null==i.left?void 0:i.left(),t("div",{class:Mo("content",e.shape)},[function(){if(i.label||e.label)return t("div",{class:Mo("label")},[i.label?i.label():e.label])}(),t(yi,o()([{attrs:{type:"search",border:!1,value:e.value,leftIcon:e.leftIcon,rightIcon:e.rightIcon,clearable:e.clearable,clearTrigger:e.clearTrigger},scopedSlots:{"left-icon":i["left-icon"],"right-icon":i["right-icon"]}},s]))]),function(){if(e.showAction)return t("div",{class:Mo("action"),attrs:{role:"button",tabindex:"0"},on:{click:function(){i.action||(d(r,"input",""),d(r,"cancel"))}}},[i.action?i.action():e.actionText||No("cancel")])}()])}Vo.props={value:String,label:String,rightIcon:String,actionText:String,background:String,showAction:Boolean,clearTrigger:String,shape:{type:String,default:"square"},clearable:{type:Boolean,default:!0},leftIcon:{type:String,default:"search"}};var Ro=Ao(Vo),Fo=Object(s.a)("slider"),Ho=Fo[0],Wo=Fo[1],_o=function(t,e){return JSON.stringify(t)===JSON.stringify(e)},Yo=Ho({mixins:[R,Re],props:{disabled:Boolean,vertical:Boolean,range:Boolean,barHeight:[Number,String],buttonSize:[Number,String],activeColor:String,inactiveColor:String,min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},value:{type:[Number,Array],default:0}},data:function(){return{dragStatus:""}},computed:{scope:function(){return this.max-this.min},buttonStyle:function(){if(this.buttonSize){var t=Object(K.a)(this.buttonSize);return{width:t,height:t}}}},created:function(){this.updateValue(this.value)},mounted:function(){this.range?(this.bindTouchEvent(this.$refs.wrapper0),this.bindTouchEvent(this.$refs.wrapper1)):this.bindTouchEvent(this.$refs.wrapper)},methods:{onTouchStart:function(t){this.disabled||(this.touchStart(t),this.currentValue=this.value,this.range?this.startValue=this.value.map(this.format):this.startValue=this.format(this.value),this.dragStatus="start")},onTouchMove:function(t){if(!this.disabled){"start"===this.dragStatus&&this.$emit("drag-start"),x(t,!0),this.touchMove(t),this.dragStatus="draging";var e=this.$el.getBoundingClientRect(),i=(this.vertical?this.deltaY:this.deltaX)/(this.vertical?e.height:e.width)*this.scope;this.range?this.currentValue[this.index]=this.startValue[this.index]+i:this.currentValue=this.startValue+i,this.updateValue(this.currentValue)}},onTouchEnd:function(){this.disabled||("draging"===this.dragStatus&&(this.updateValue(this.currentValue,!0),this.$emit("drag-end")),this.dragStatus="")},onClick:function(t){if(t.stopPropagation(),!this.disabled){var e=this.$el.getBoundingClientRect(),i=this.vertical?t.clientY-e.top:t.clientX-e.left,n=this.vertical?e.height:e.width,r=+this.min+i/n*this.scope;if(this.range){var o=this.value,s=o[0],a=o[1];r<=(s+a)/2?s=r:a=r,r=[s,a]}this.startValue=this.value,this.updateValue(r,!0)}},handleOverlap:function(t){return t[0]>t[1]?(t=Ct(t)).reverse():t},updateValue:function(t,e){t=this.range?this.handleOverlap(t).map(this.format):this.format(t),_o(t,this.value)||this.$emit("input",t),e&&!_o(t,this.startValue)&&this.$emit("change",t)},format:function(t){return Math.round(Math.max(this.min,Math.min(t,this.max))/this.step)*this.step}},render:function(){var t,e,i=this,n=arguments[0],r=this.vertical,o=r?"height":"width",s=r?"width":"height",a=((t={background:this.inactiveColor})[s]=Object(K.a)(this.barHeight),t),l=function(){var t=i.value,e=i.min,n=i.range,r=i.scope;return n?100*(t[1]-t[0])/r+"%":100*(t-e)/r+"%"},c=function(){var t=i.value,e=i.min,n=i.range,r=i.scope;return n?100*(t[0]-e)/r+"%":null},u=((e={})[o]=l(),e.left=this.vertical?null:c(),e.top=this.vertical?c():null,e.background=this.activeColor,e);this.dragStatus&&(u.transition="none");var h=function(t){var e=["left","right"],r="number"==typeof t;return n("div",{ref:r?"wrapper"+t:"wrapper",attrs:{role:"slider",tabindex:i.disabled?-1:0,"aria-valuemin":i.min,"aria-valuenow":i.value,"aria-valuemax":i.max,"aria-orientation":i.vertical?"vertical":"horizontal"},class:Wo(r?"button-wrapper-"+e[t]:"button-wrapper"),on:{touchstart:function(){r&&(i.index=t)},click:function(t){return t.stopPropagation()}}},[i.slots("button")||n("div",{class:Wo("button"),style:i.buttonStyle})])};return n("div",{style:a,class:Wo({disabled:this.disabled,vertical:r}),on:{click:this.onClick}},[n("div",{class:Wo("bar"),style:u},[this.range?[h(0),h(1)]:h()])])}}),Xo=Object(s.a)("step"),Ko=Xo[0],Uo=Xo[1],qo=Ko({mixins:[He("vanSteps")],computed:{status:function(){return this.index<this.parent.active?"finish":this.index===+this.parent.active?"process":void 0},active:function(){return"process"===this.status},lineStyle:function(){return"finish"===this.status?{background:this.parent.activeColor}:{background:this.parent.inactiveColor}},titleStyle:function(){return this.active?{color:this.parent.activeColor}:this.status?void 0:{color:this.parent.inactiveColor}}},methods:{genCircle:function(){var t=this.$createElement,e=this.parent,i=e.activeIcon,n=e.activeColor,r=e.inactiveIcon;if(this.active)return this.slots("active-icon")||t(rt,{class:Uo("icon","active"),attrs:{name:i,color:n}});var o=this.slots("inactive-icon");return r||o?o||t(rt,{class:Uo("icon"),attrs:{name:r}}):t("i",{class:Uo("circle"),style:this.lineStyle})},onClickStep:function(){this.parent.$emit("click-step",this.index)}},render:function(){var t,e=arguments[0],i=this.status,n=this.active,r=this.parent.direction;return e("div",{class:[St,Uo([r,(t={},t[i]=i,t)])]},[e("div",{class:Uo("title",{active:n}),style:this.titleStyle,on:{click:this.onClickStep}},[this.slots()]),e("div",{class:Uo("circle-container"),on:{click:this.onClickStep}},[this.genCircle()]),e("div",{class:Uo("line"),style:this.lineStyle})])}}),Qo=Object(s.a)("stepper"),Zo=Qo[0],Go=Qo[1];function Jo(t,e){return String(t)===String(e)}var ts,es=Zo({mixins:[Re],props:{value:null,theme:String,integer:Boolean,disabled:Boolean,allowEmpty:Boolean,inputWidth:[Number,String],buttonSize:[Number,String],asyncChange:Boolean,placeholder:String,disablePlus:Boolean,disableMinus:Boolean,disableInput:Boolean,decimalLength:[Number,String],name:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:1/0},step:{type:[Number,String],default:1},defaultValue:{type:[Number,String],default:1},showPlus:{type:Boolean,default:!0},showMinus:{type:Boolean,default:!0},showInput:{type:Boolean,default:!0},longPress:{type:Boolean,default:!0}},data:function(){var t,e=null!=(t=this.value)?t:this.defaultValue,i=this.format(e);return Jo(i,this.value)||this.$emit("input",i),{currentValue:i}},computed:{minusDisabled:function(){return this.disabled||this.disableMinus||this.currentValue<=+this.min},plusDisabled:function(){return this.disabled||this.disablePlus||this.currentValue>=+this.max},inputStyle:function(){var t={};return this.inputWidth&&(t.width=Object(K.a)(this.inputWidth)),this.buttonSize&&(t.height=Object(K.a)(this.buttonSize)),t},buttonStyle:function(){if(this.buttonSize){var t=Object(K.a)(this.buttonSize);return{width:t,height:t}}}},watch:{max:"check",min:"check",integer:"check",decimalLength:"check",value:function(t){Jo(t,this.currentValue)||(this.currentValue=this.format(t))},currentValue:function(t){this.$emit("input",t),this.$emit("change",t,{name:this.name})}},methods:{check:function(){var t=this.format(this.currentValue);Jo(t,this.currentValue)||(this.currentValue=t)},formatNumber:function(t){return $t(String(t),!this.integer)},format:function(t){return this.allowEmpty&&""===t||(t=""===(t=this.formatNumber(t))?0:+t,t=Object(Gt.a)(t)?this.min:t,t=Math.max(Math.min(this.max,t),this.min),Object(p.c)(this.decimalLength)&&(t=t.toFixed(this.decimalLength))),t},onInput:function(t){var e=t.target.value,i=this.formatNumber(e);if(Object(p.c)(this.decimalLength)&&-1!==i.indexOf(".")){var n=i.split(".");i=n[0]+"."+n[1].slice(0,this.decimalLength)}Jo(e,i)||(t.target.value=i),i===String(+i)&&(i=+i),this.emitChange(i)},emitChange:function(t){this.asyncChange?(this.$emit("input",t),this.$emit("change",t,{name:this.name})):this.currentValue=t},onChange:function(){var t=this.type;if(this[t+"Disabled"])this.$emit("overlimit",t);else{var e,i,n,r="minus"===t?-this.step:+this.step,o=this.format((e=+this.currentValue,i=r,n=Math.pow(10,10),Math.round((e+i)*n)/n));this.emitChange(o),this.$emit(t)}},onFocus:function(t){this.disableInput&&this.$refs.input?this.$refs.input.blur():this.$emit("focus",t)},onBlur:function(t){var e=this.format(t.target.value);t.target.value=e,this.currentValue=e,this.$emit("blur",t),fi()},longPressStep:function(){var t=this;this.longPressTimer=setTimeout((function(){t.onChange(),t.longPressStep(t.type)}),200)},onTouchStart:function(){var t=this;this.longPress&&(clearTimeout(this.longPressTimer),this.isLongPress=!1,this.longPressTimer=setTimeout((function(){t.isLongPress=!0,t.onChange(),t.longPressStep()}),600))},onTouchEnd:function(t){this.longPress&&(clearTimeout(this.longPressTimer),this.isLongPress&&x(t))},onMousedown:function(t){this.disableInput&&t.preventDefault()}},render:function(){var t=this,e=arguments[0],i=function(e){return{on:{click:function(i){i.preventDefault(),t.type=e,t.onChange()},touchstart:function(){t.type=e,t.onTouchStart()},touchend:t.onTouchEnd,touchcancel:t.onTouchEnd}}};return e("div",{class:Go([this.theme])},[e("button",o()([{directives:[{name:"show",value:this.showMinus}],attrs:{type:"button"},style:this.buttonStyle,class:Go("minus",{disabled:this.minusDisabled})},i("minus")])),e("input",{directives:[{name:"show",value:this.showInput}],ref:"input",attrs:{type:this.integer?"tel":"text",role:"spinbutton",disabled:this.disabled,readonly:this.disableInput,inputmode:this.integer?"numeric":"decimal",placeholder:this.placeholder,"aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.currentValue},class:Go("input"),domProps:{value:this.currentValue},style:this.inputStyle,on:{input:this.onInput,focus:this.onFocus,blur:this.onBlur,mousedown:this.onMousedown}}),e("button",o()([{directives:[{name:"show",value:this.showPlus}],attrs:{type:"button"},style:this.buttonStyle,class:Go("plus",{disabled:this.plusDisabled})},i("plus")]))])}}),is=Object(s.a)("steps"),ns=is[0],rs=is[1],os=ns({mixins:[We("vanSteps")],props:{activeColor:String,inactiveIcon:String,inactiveColor:String,active:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},activeIcon:{type:String,default:"checked"}},render:function(){var t=arguments[0];return t("div",{class:rs([this.direction])},[t("div",{class:rs("items")},[this.slots()])])}}),ss=Object(s.a)("sticky"),as=ss[0],ls=ss[1],cs=as({mixins:[W((function(t,e){if(this.scroller||(this.scroller=P(this.$el)),this.observer){var i=e?"observe":"unobserve";this.observer[i](this.$el)}t(this.scroller,"scroll",this.onScroll,!0),this.onScroll()}))],props:{zIndex:[Number,String],container:null,offsetTop:{type:[Number,String],default:0}},data:function(){return{fixed:!1,height:0,transform:0}},computed:{offsetTopPx:function(){return Object(K.b)(this.offsetTop)},style:function(){if(this.fixed){var t={};return Object(p.c)(this.zIndex)&&(t.zIndex=this.zIndex),this.offsetTopPx&&this.fixed&&(t.top=this.offsetTopPx+"px"),this.transform&&(t.transform="translate3d(0, "+this.transform+"px, 0)"),t}}},created:function(){var t=this;!p.g&&window.IntersectionObserver&&(this.observer=new IntersectionObserver((function(e){e[0].intersectionRatio>0&&t.onScroll()}),{root:document.body}))},methods:{onScroll:function(){var t=this;if(!Xn(this.$el)){this.height=this.$el.offsetHeight;var e=this.container,i=this.offsetTopPx,n=L(window),r=V(this.$el),o=function(){t.$emit("scroll",{scrollTop:n,isFixed:t.fixed})};if(e){var s=r+e.offsetHeight;if(n+i+this.height>s){var a=this.height+n-s;return a<this.height?(this.fixed=!0,this.transform=-(a+i)):this.fixed=!1,void o()}}n+i>r?(this.fixed=!0,this.transform=0):this.fixed=!1,o()}}},render:function(){var t=arguments[0],e=this.fixed,i={height:e?this.height+"px":null};return t("div",{style:i},[t("div",{class:ls({fixed:e}),style:this.style},[this.slots()])])}}),us=Object(s.a)("tab"),hs=us[0],ds=us[1],fs=hs({mixins:[He("vanTabs")],props:n({},Yt,{dot:Boolean,name:[Number,String],info:[Number,String],badge:[Number,String],title:String,titleStyle:null,titleClass:null,disabled:Boolean}),data:function(){return{inited:!1}},computed:{computedName:function(){var t;return null!=(t=this.name)?t:this.index},isActive:function(){var t=this.computedName===this.parent.currentName;return t&&(this.inited=!0),t}},watch:{title:function(){this.parent.setLine(),this.parent.scrollIntoView()},inited:function(t){var e=this;this.parent.lazyRender&&t&&this.$nextTick((function(){e.parent.$emit("rendered",e.computedName,e.title)}))}},render:function(t){var e=this.slots,i=this.parent,n=this.isActive,r=e();if(r||i.animated){var o=i.scrollspy||n,s=this.inited||i.scrollspy||!i.lazyRender?r:t();return i.animated?t("div",{attrs:{role:"tabpanel","aria-hidden":!n},class:ds("pane-wrapper",{inactive:!n})},[t("div",{class:ds("pane")},[s])]):t("div",{directives:[{name:"show",value:o}],attrs:{role:"tabpanel"},class:ds("pane")},[s])}}});var ps=Object(s.a)("tab"),vs=ps[0],ms=ps[1],gs=vs({props:{dot:Boolean,type:String,info:[Number,String],color:String,title:String,isActive:Boolean,disabled:Boolean,scrollable:Boolean,activeColor:String,inactiveColor:String},computed:{style:function(){var t={},e=this.color,i=this.isActive,n="card"===this.type;e&&n&&(t.borderColor=e,this.disabled||(i?t.backgroundColor=e:t.color=e));var r=i?this.activeColor:this.inactiveColor;return r&&(t.color=r),t}},methods:{onClick:function(){this.$emit("click")},genText:function(){var t=this.$createElement,e=t("span",{class:ms("text",{ellipsis:!this.scrollable})},[this.slots()||this.title]);return this.dot||Object(p.c)(this.info)&&""!==this.info?t("span",{class:ms("text-wrapper")},[e,t(G,{attrs:{dot:this.dot,info:this.info}})]):e}},render:function(){var t=arguments[0];return t("div",{attrs:{role:"tab","aria-selected":this.isActive},class:[ms({active:this.isActive,disabled:this.disabled})],style:this.style,on:{click:this.onClick}},[this.genText()])}}),ys=Object(s.a)("tabs"),bs=ys[0],xs=ys[1],ws=bs({mixins:[R],props:{count:Number,duration:[Number,String],animated:Boolean,swipeable:Boolean,currentIndex:Number},computed:{style:function(){if(this.animated)return{transform:"translate3d("+-1*this.currentIndex*100+"%, 0, 0)",transitionDuration:this.duration+"s"}},listeners:function(){if(this.swipeable)return{touchstart:this.touchStart,touchmove:this.touchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}}},methods:{onTouchEnd:function(){var t=this.direction,e=this.deltaX,i=this.currentIndex;"horizontal"===t&&this.offsetX>=50&&(e>0&&0!==i?this.$emit("change",i-1):e<0&&i!==this.count-1&&this.$emit("change",i+1))},genChildren:function(){var t=this.$createElement;return this.animated?t("div",{class:xs("track"),style:this.style},[this.slots()]):this.slots()}},render:function(){var t=arguments[0];return t("div",{class:xs("content",{animated:this.animated}),on:n({},this.listeners)},[this.genChildren()])}}),Ss=Object(s.a)("tabs"),ks=Ss[0],Cs=Ss[1],Os=ks({mixins:[We("vanTabs"),W((function(t){this.scroller||(this.scroller=P(this.$el)),t(window,"resize",this.resize,!0),this.scrollspy&&t(this.scroller,"scroll",this.onScroll,!0)}))],model:{prop:"active"},props:{color:String,border:Boolean,sticky:Boolean,animated:Boolean,swipeable:Boolean,scrollspy:Boolean,background:String,lineWidth:[Number,String],lineHeight:[Number,String],beforeChange:Function,titleActiveColor:String,titleInactiveColor:String,type:{type:String,default:"line"},active:{type:[Number,String],default:0},ellipsis:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},offsetTop:{type:[Number,String],default:0},lazyRender:{type:Boolean,default:!0},swipeThreshold:{type:[Number,String],default:5}},data:function(){return{position:"",currentIndex:null,lineStyle:{backgroundColor:this.color}}},computed:{scrollable:function(){return this.children.length>this.swipeThreshold||!this.ellipsis},navStyle:function(){return{borderColor:this.color,background:this.background}},currentName:function(){var t=this.children[this.currentIndex];if(t)return t.computedName},offsetTopPx:function(){return Object(K.b)(this.offsetTop)},scrollOffset:function(){return this.sticky?this.offsetTopPx+this.tabHeight:0}},watch:{color:"setLine",active:function(t){t!==this.currentName&&this.setCurrentIndexByName(t)},children:function(){var t=this;this.setCurrentIndexByName(this.active||this.currentName),this.setLine(),this.$nextTick((function(){t.scrollIntoView(!0)}))},currentIndex:function(){this.scrollIntoView(),this.setLine(),this.stickyFixed&&!this.scrollspy&&N(Math.ceil(V(this.$el)-this.offsetTopPx))},scrollspy:function(t){t?g(this.scroller,"scroll",this.onScroll,!0):y(this.scroller,"scroll",this.onScroll)}},mounted:function(){this.init()},activated:function(){this.init(),this.setLine()},methods:{resize:function(){this.setLine()},init:function(){var t=this;this.$nextTick((function(){var e;t.inited=!0,t.tabHeight=j(e=t.$refs.wrap)?e.innerHeight:e.getBoundingClientRect().height,t.scrollIntoView(!0)}))},setLine:function(){var t=this,e=this.inited;this.$nextTick((function(){var i=t.$refs.titles;if(i&&i[t.currentIndex]&&"line"===t.type&&!Xn(t.$el)){var n=i[t.currentIndex].$el,r=t.lineWidth,o=t.lineHeight,s=n.offsetLeft+n.offsetWidth/2,a={width:Object(K.a)(r),backgroundColor:t.color,transform:"translateX("+s+"px) translateX(-50%)"};if(e&&(a.transitionDuration=t.duration+"s"),Object(p.c)(o)){var l=Object(K.a)(o);a.height=l,a.borderRadius=l}t.lineStyle=a}}))},setCurrentIndexByName:function(t){var e=this.children.filter((function(e){return e.computedName===t})),i=(this.children[0]||{}).index||0;this.setCurrentIndex(e.length?e[0].index:i)},setCurrentIndex:function(t){var e=this.findAvailableTab(t);if(Object(p.c)(e)){var i=this.children[e],n=i.computedName,r=null!==this.currentIndex;this.currentIndex=e,n!==this.active&&(this.$emit("input",n),r&&this.$emit("change",n,i.title))}},findAvailableTab:function(t){for(var e=t<this.currentIndex?-1:1;t>=0&&t<this.children.length;){if(!this.children[t].disabled)return t;t+=e}},onClick:function(t,e){var i=this,n=this.children[e],r=n.title,o=n.disabled,s=n.computedName;o?this.$emit("disabled",s,r):(!function(t){var e=t.interceptor,i=t.args,n=t.done;if(e){var r=e.apply(void 0,i);Object(p.f)(r)?r.then((function(t){t&&n()})).catch(p.h):r&&n()}else n()}({interceptor:this.beforeChange,args:[s],done:function(){i.setCurrentIndex(e),i.scrollToCurrentContent()}}),this.$emit("click",s,r),Wt(t.$router,t))},scrollIntoView:function(t){var e=this.$refs.titles;if(this.scrollable&&e&&e[this.currentIndex]){var i=this.$refs.nav,n=e[this.currentIndex].$el;!function(t,e,i){Object(Zt.a)(ts);var n=0,r=t.scrollLeft,o=0===i?1:Math.round(1e3*i/16);!function i(){t.scrollLeft+=(e-r)/o,++n<o&&(ts=Object(Zt.c)(i))}()}(i,n.offsetLeft-(i.offsetWidth-n.offsetWidth)/2,t?0:+this.duration)}},onSticktScroll:function(t){this.stickyFixed=t.isFixed,this.$emit("scroll",t)},scrollTo:function(t){var e=this;this.$nextTick((function(){e.setCurrentIndexByName(t),e.scrollToCurrentContent(!0)}))},scrollToCurrentContent:function(t){var e=this;if(void 0===t&&(t=!1),this.scrollspy){var i=this.children[this.currentIndex],n=null==i?void 0:i.$el;if(n){var r=V(n,this.scroller)-this.scrollOffset;this.lockScroll=!0,function(t,e,i,n){var r=L(t),o=r<e,s=0===i?1:Math.round(1e3*i/16),a=(e-r)/s;!function i(){r+=a,(o&&r>e||!o&&r<e)&&(r=e),A(t,r),o&&r<e||!o&&r>e?Object(Zt.c)(i):n&&Object(Zt.c)(n)}()}(this.scroller,r,t?0:+this.duration,(function(){e.lockScroll=!1}))}}},onScroll:function(){if(this.scrollspy&&!this.lockScroll){var t=this.getCurrentIndexOnScroll();this.setCurrentIndex(t)}},getCurrentIndexOnScroll:function(){for(var t,e=this.children,i=0;i<e.length;i++){if((j(t=e[i].$el)?0:t.getBoundingClientRect().top)>this.scrollOffset)return 0===i?0:i-1}return e.length-1}},render:function(){var t,e=this,i=arguments[0],n=this.type,r=this.animated,o=this.scrollable,s=this.children.map((function(t,r){var s;return i(gs,{ref:"titles",refInFor:!0,attrs:{type:n,dot:t.dot,info:null!=(s=t.badge)?s:t.info,title:t.title,color:e.color,isActive:r===e.currentIndex,disabled:t.disabled,scrollable:o,activeColor:e.titleActiveColor,inactiveColor:e.titleInactiveColor},style:t.titleStyle,class:t.titleClass,scopedSlots:{default:function(){return t.slots("title")}},on:{click:function(){e.onClick(t,r)}}})})),a=i("div",{ref:"wrap",class:[Cs("wrap",{scrollable:o}),(t={},t["van-hairline--top-bottom"]="line"===n&&this.border,t)]},[i("div",{ref:"nav",attrs:{role:"tablist"},class:Cs("nav",[n,{complete:this.scrollable}]),style:this.navStyle},[this.slots("nav-left"),s,"line"===n&&i("div",{class:Cs("line"),style:this.lineStyle}),this.slots("nav-right")])]);return i("div",{class:Cs([n])},[this.sticky?i(cs,{attrs:{container:this.$el,offsetTop:this.offsetTop},on:{scroll:this.onSticktScroll}},[a]):a,i(ws,{attrs:{count:this.children.length,animated:r,duration:this.duration,swipeable:this.swipeable,currentIndex:this.currentIndex},on:{change:this.setCurrentIndex}},[this.slots()])])}});function Ts(t){return Array.isArray(t)?t:[t]}function $s(t,e){return new Promise((function(i){if("file"!==e){var n=new FileReader;n.onload=function(t){i(t.target.result)},"dataUrl"===e?n.readAsDataURL(t):"text"===e&&n.readAsText(t)}else i()}))}var Is=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;function Bs(t){return!!t.isImage||(t.file&&t.file.type?0===t.file.type.indexOf("image"):t.url?(e=t.url,Is.test(e)):!!t.content&&0===t.content.indexOf("data:image"));var e}var Es=Object(s.a)("uploader"),Ds=Es[0],js=Es[1],zs=Ds({inheritAttrs:!1,mixins:[Re],model:{prop:"fileList"},props:{disabled:Boolean,lazyLoad:Boolean,uploadText:String,afterRead:Function,beforeRead:Function,beforeDelete:Function,previewSize:[Number,String],previewOptions:Object,name:{type:[Number,String],default:""},accept:{type:String,default:"image/*"},fileList:{type:Array,default:function(){return[]}},maxSize:{type:[Number,String],default:Number.MAX_VALUE},maxCount:{type:[Number,String],default:Number.MAX_VALUE},deletable:{type:Boolean,default:!0},showUpload:{type:Boolean,default:!0},previewImage:{type:Boolean,default:!0},previewFullImage:{type:Boolean,default:!0},imageFit:{type:String,default:"cover"},resultType:{type:String,default:"dataUrl"},uploadIcon:{type:String,default:"photograph"}},computed:{previewSizeWithUnit:function(){return Object(K.a)(this.previewSize)},value:function(){return this.fileList}},methods:{getDetail:function(t){return void 0===t&&(t=this.fileList.length),{name:this.name,index:t}},onChange:function(t){var e=this,i=t.target.files;if(!this.disabled&&i.length){if(i=1===i.length?i[0]:[].slice.call(i),this.beforeRead){var n=this.beforeRead(i,this.getDetail());if(!n)return void this.resetInput();if(Object(p.f)(n))return void n.then((function(t){t?e.readFile(t):e.readFile(i)})).catch(this.resetInput)}this.readFile(i)}},readFile:function(t){var e=this,i=function(t,e){return Ts(t).some((function(t){return t.size>e}))}(t,this.maxSize);if(Array.isArray(t)){var n=this.maxCount-this.fileList.length;t.length>n&&(t=t.slice(0,n)),Promise.all(t.map((function(t){return $s(t,e.resultType)}))).then((function(n){var r=t.map((function(t,e){var i={file:t,status:"",message:""};return n[e]&&(i.content=n[e]),i}));e.onAfterRead(r,i)}))}else $s(t,this.resultType).then((function(n){var r={file:t,status:"",message:""};n&&(r.content=n),e.onAfterRead(r,i)}))},onAfterRead:function(t,e){var i=this;this.resetInput();var n=t;if(e){var r=t;Array.isArray(t)?(r=[],n=[],t.forEach((function(t){t.file&&(t.file.size>i.maxSize?r.push(t):n.push(t))}))):n=null,this.$emit("oversize",r,this.getDetail())}(Array.isArray(n)?Boolean(n.length):Boolean(n))&&(this.$emit("input",[].concat(this.fileList,Ts(n))),this.afterRead&&this.afterRead(n,this.getDetail()))},onDelete:function(t,e){var i,n=this,r=null!=(i=t.beforeDelete)?i:this.beforeDelete;if(r){var o=r(t,this.getDetail(e));if(!o)return;if(Object(p.f)(o))return void o.then((function(){n.deleteFile(t,e)})).catch(p.h)}this.deleteFile(t,e)},deleteFile:function(t,e){var i=this.fileList.slice(0);i.splice(e,1),this.$emit("input",i),this.$emit("delete",t,this.getDetail(e))},resetInput:function(){this.$refs.input&&(this.$refs.input.value="")},onPreviewImage:function(t){var e=this;if(this.previewFullImage){var i=this.fileList.filter((function(t){return Bs(t)})),r=i.map((function(t){return t.content||t.url}));this.imagePreview=ar(n({images:r,startPosition:i.indexOf(t),onClose:function(){e.$emit("close-preview")}},this.previewOptions))}},closeImagePreview:function(){this.imagePreview&&this.imagePreview.close()},chooseFile:function(){this.disabled||this.$refs.input&&this.$refs.input.click()},genPreviewMask:function(t){var e=this.$createElement,i=t.status,n=t.message;if("uploading"===i||"failed"===i){var r="failed"===i?e(rt,{attrs:{name:"close"},class:js("mask-icon")}):e(vt,{class:js("loading")}),o=Object(p.c)(n)&&""!==n;return e("div",{class:js("mask")},[r,o&&e("div",{class:js("mask-message")},[n])])}},genPreviewItem:function(t,e){var i,r,o,s=this,a=this.$createElement,l=null!=(i=t.deletable)?i:this.deletable,c="uploading"!==t.status&&l&&a("div",{class:js("preview-delete"),on:{click:function(i){i.stopPropagation(),s.onDelete(t,e)}}},[a(rt,{attrs:{name:"cross"},class:js("preview-delete-icon")})]),u=this.slots("preview-cover",n({index:e},t)),h=u&&a("div",{class:js("preview-cover")},[u]),d=null!=(r=t.previewSize)?r:this.previewSize,f=null!=(o=t.imageFit)?o:this.imageFit,p=Bs(t)?a(Hn,{attrs:{fit:f,src:t.content||t.url,width:d,height:d,lazyLoad:this.lazyLoad},class:js("preview-image"),on:{click:function(){s.onPreviewImage(t)}}},[h]):a("div",{class:js("file"),style:{width:this.previewSizeWithUnit,height:this.previewSizeWithUnit}},[a(rt,{class:js("file-icon"),attrs:{name:"description"}}),a("div",{class:[js("file-name"),"van-ellipsis"]},[t.file?t.file.name:t.url]),h]);return a("div",{class:js("preview"),on:{click:function(){s.$emit("click-preview",t,s.getDetail(e))}}},[p,this.genPreviewMask(t),c])},genPreviewList:function(){if(this.previewImage)return this.fileList.map(this.genPreviewItem)},genUpload:function(){var t=this.$createElement;if(!(this.fileList.length>=this.maxCount)&&this.showUpload){var e,i=this.slots(),r=t("input",{attrs:n({},this.$attrs,{type:"file",accept:this.accept,disabled:this.disabled}),ref:"input",class:js("input"),on:{change:this.onChange}});if(i)return t("div",{class:js("input-wrapper")},[i,r]);if(this.previewSize){var o=this.previewSizeWithUnit;e={width:o,height:o}}return t("div",{class:js("upload"),style:e},[t(rt,{attrs:{name:this.uploadIcon},class:js("upload-icon")}),this.uploadText&&t("span",{class:js("upload-text")},[this.uploadText]),r])}}},render:function(){var t=arguments[0];return t("div",{class:js()},[t("div",{class:js("wrapper",{disabled:this.disabled})},[this.genPreviewList(),this.genUpload()])])}}),Ps="0.0.20";function Ls(t){[xt,Ht,Qt,Ie,Pe,Ve,Xe,Qe,ti,oi,hi,_i,ln,yn,bn,zi,kn,In,Pn,yi,Nn,Si,Ti,rt,Hn,ar,hr,vr,G,gr,Sr,vt,kr.a,$r,Mr,T,Hr,Mt,Co,lt,Eo,Zi,en,Po,Ro,Yo,qo,es,os,cs,Qn,tr,Ni,fs,Os,qi,Ce,zs].forEach((function(e){e.install?t.use(e):e.name&&t.component(e.name,e)}))}"undefined"!=typeof window&&window.Vue&&Ls(window.Vue);e.default={install:Ls,version:Ps}}])}));