bkui-vue 2.0.1-beta.107 → 2.0.1-beta.108

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 (392) hide show
  1. package/dist/index.cjs.js +71 -71
  2. package/dist/index.esm.js +18590 -18752
  3. package/dist/index.umd.js +70 -70
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/affix.css +130 -0
  7. package/lib/affix/affix.variable.css +261 -1
  8. package/lib/affix/index.d.ts +111 -57
  9. package/lib/affix/index.js +17 -17
  10. package/lib/alert/alert.css +133 -3
  11. package/lib/alert/alert.variable.css +261 -1
  12. package/lib/alert/index.d.ts +126 -73
  13. package/lib/alert/index.js +20 -20
  14. package/lib/animate-number/index.d.ts +96 -33
  15. package/lib/animate-number/index.js +7 -8
  16. package/lib/backtop/backtop.css +133 -3
  17. package/lib/backtop/backtop.variable.css +394 -4
  18. package/lib/backtop/index.d.ts +117 -69
  19. package/lib/backtop/index.js +10 -11
  20. package/lib/badge/badge.css +156 -26
  21. package/lib/badge/badge.variable.css +261 -1
  22. package/lib/badge/index.d.ts +152 -119
  23. package/lib/badge/index.js +19 -19
  24. package/lib/breadcrumb/breadcrumb.css +135 -5
  25. package/lib/breadcrumb/breadcrumb.variable.css +396 -6
  26. package/lib/breadcrumb/index.d.ts +119 -67
  27. package/lib/breadcrumb/index.js +17 -17
  28. package/lib/button/button.css +273 -143
  29. package/lib/button/button.d.ts +2 -2
  30. package/lib/button/button.variable.css +261 -1
  31. package/lib/button/index.d.ts +155 -119
  32. package/lib/button/index.js +20 -19
  33. package/lib/card/card.css +134 -4
  34. package/lib/card/card.variable.css +395 -5
  35. package/lib/card/index.d.ts +157 -128
  36. package/lib/card/index.js +22 -20
  37. package/lib/cascader/cascader.css +153 -23
  38. package/lib/cascader/cascader.d.ts +3 -3
  39. package/lib/cascader/cascader.variable.css +414 -24
  40. package/lib/cascader/index.d.ts +354 -393
  41. package/lib/cascader/index.js +268 -270
  42. package/lib/checkbox/checkbox.css +140 -10
  43. package/lib/checkbox/checkbox.d.ts +1 -1
  44. package/lib/checkbox/checkbox.variable.css +261 -1
  45. package/lib/checkbox/index.d.ts +175 -143
  46. package/lib/checkbox/index.js +45 -45
  47. package/lib/code-diff/code-diff.css +130 -0
  48. package/lib/code-diff/code-diff.variable.css +261 -1
  49. package/lib/code-diff/index.d.ts +82 -65
  50. package/lib/code-diff/index.js +438 -381
  51. package/lib/collapse/collapse.css +131 -1
  52. package/lib/collapse/collapse.variable.css +261 -1
  53. package/lib/collapse/index.d.ts +175 -156
  54. package/lib/collapse/index.js +27 -28
  55. package/lib/collapse-transition/collapse-transition.css +130 -0
  56. package/lib/collapse-transition/collapse-transition.variable.css +261 -1
  57. package/lib/collapse-transition/index.d.ts +94 -19
  58. package/lib/collapse-transition/index.js +3 -4
  59. package/lib/color-picker/color-picker.css +130 -0
  60. package/lib/color-picker/color-picker.d.ts +1 -1
  61. package/lib/color-picker/color-picker.variable.css +261 -1
  62. package/lib/color-picker/index.d.ts +165 -144
  63. package/lib/color-picker/index.js +41 -43
  64. package/lib/config-provider/config-provider.css +130 -0
  65. package/lib/config-provider/config-provider.variable.css +261 -1
  66. package/lib/config-provider/index.d.ts +227 -160
  67. package/lib/config-provider/index.js +17 -17
  68. package/lib/container/container.css +130 -0
  69. package/lib/container/container.d.ts +1 -1
  70. package/lib/container/container.variable.css +391 -1
  71. package/lib/container/index.d.ts +85 -74
  72. package/lib/container/index.js +26 -28
  73. package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
  74. package/lib/date-picker/base/time-spinner.d.ts +3 -3
  75. package/lib/date-picker/date-picker.css +147 -17
  76. package/lib/date-picker/date-picker.d.ts +4 -4
  77. package/lib/date-picker/date-picker.variable.css +261 -1
  78. package/lib/date-picker/index.d.ts +351 -380
  79. package/lib/date-picker/index.js +79 -80
  80. package/lib/date-picker/panel/date-range.d.ts +1 -1
  81. package/lib/date-picker/panel/date.d.ts +1 -1
  82. package/lib/date-picker/panel/time-range.d.ts +2 -2
  83. package/lib/date-picker/panel/time.d.ts +2 -2
  84. package/lib/date-picker/time-picker.d.ts +4 -4
  85. package/lib/dialog/dialog.css +138 -8
  86. package/lib/dialog/dialog.variable.css +399 -9
  87. package/lib/dialog/index.d.ts +269 -299
  88. package/lib/dialog/index.js +228 -227
  89. package/lib/directives/index.js +29 -29
  90. package/lib/divider/divider.css +133 -3
  91. package/lib/divider/divider.variable.css +261 -1
  92. package/lib/divider/index.d.ts +111 -57
  93. package/lib/divider/index.js +2 -3
  94. package/lib/dropdown/dropdown.css +130 -0
  95. package/lib/dropdown/dropdown.d.ts +1 -1
  96. package/lib/dropdown/dropdown.variable.css +391 -1
  97. package/lib/dropdown/index.d.ts +136 -94
  98. package/lib/dropdown/index.js +22 -24
  99. package/lib/exception/exception.css +130 -0
  100. package/lib/exception/exception.variable.css +261 -1
  101. package/lib/exception/index.d.ts +102 -41
  102. package/lib/exception/index.js +21 -21
  103. package/lib/fixed-navbar/fixed-navbar.css +134 -4
  104. package/lib/fixed-navbar/fixed-navbar.variable.css +261 -1
  105. package/lib/fixed-navbar/index.d.ts +113 -59
  106. package/lib/fixed-navbar/index.js +2 -3
  107. package/lib/form/form.css +130 -0
  108. package/lib/form/form.d.ts +1 -1
  109. package/lib/form/form.variable.css +261 -1
  110. package/lib/form/index.d.ts +132 -80
  111. package/lib/form/index.js +22 -21
  112. package/lib/icon/angle-double-down-line.js +17 -17
  113. package/lib/icon/angle-double-left-line.js +17 -17
  114. package/lib/icon/angle-double-left.js +17 -17
  115. package/lib/icon/angle-double-right-line.js +17 -17
  116. package/lib/icon/angle-double-right.js +17 -17
  117. package/lib/icon/angle-double-up-line.js +17 -17
  118. package/lib/icon/angle-down-fill.js +17 -17
  119. package/lib/icon/angle-down-line.js +17 -17
  120. package/lib/icon/angle-down.js +17 -17
  121. package/lib/icon/angle-left.js +17 -17
  122. package/lib/icon/angle-right.js +17 -17
  123. package/lib/icon/angle-up-fill.js +17 -17
  124. package/lib/icon/angle-up.js +17 -17
  125. package/lib/icon/archive-fill.js +17 -17
  126. package/lib/icon/arrows-left.js +17 -17
  127. package/lib/icon/arrows-right.js +17 -17
  128. package/lib/icon/assistant.js +17 -17
  129. package/lib/icon/audio-fill.js +17 -17
  130. package/lib/icon/bk.js +17 -17
  131. package/lib/icon/circle.js +17 -17
  132. package/lib/icon/close-line.js +17 -17
  133. package/lib/icon/close.js +17 -17
  134. package/lib/icon/code.js +17 -17
  135. package/lib/icon/cog-shape.js +17 -17
  136. package/lib/icon/collapse-left.js +17 -17
  137. package/lib/icon/copy-shape.js +17 -17
  138. package/lib/icon/copy.js +17 -17
  139. package/lib/icon/data-shape.js +17 -17
  140. package/lib/icon/del.js +17 -17
  141. package/lib/icon/doc-fill.js +17 -17
  142. package/lib/icon/done.js +17 -17
  143. package/lib/icon/down-shape.js +17 -17
  144. package/lib/icon/down-small.js +17 -17
  145. package/lib/icon/edit-line.js +17 -17
  146. package/lib/icon/ellipsis.js +17 -17
  147. package/lib/icon/enlarge-line.js +17 -17
  148. package/lib/icon/error.js +17 -17
  149. package/lib/icon/excel-fill.js +17 -17
  150. package/lib/icon/exclamation-circle-shape.js +17 -17
  151. package/lib/icon/eye.js +17 -17
  152. package/lib/icon/filliscreen-line.js +17 -17
  153. package/lib/icon/fix-line.js +17 -17
  154. package/lib/icon/fix-shape.js +17 -17
  155. package/lib/icon/folder-open.js +17 -17
  156. package/lib/icon/folder-shape-open.js +17 -17
  157. package/lib/icon/folder-shape.js +17 -17
  158. package/lib/icon/folder.js +17 -17
  159. package/lib/icon/funnel.js +17 -17
  160. package/lib/icon/grag-fill.js +17 -17
  161. package/lib/icon/help-document-fill.js +17 -17
  162. package/lib/icon/help-fill.js +17 -17
  163. package/lib/icon/help.js +17 -17
  164. package/lib/icon/image-fill.js +17 -17
  165. package/lib/icon/img-error.js +17 -17
  166. package/lib/icon/img-placehoulder.js +17 -17
  167. package/lib/icon/info-line.js +17 -17
  168. package/lib/icon/info.js +17 -17
  169. package/lib/icon/left-shape.js +17 -17
  170. package/lib/icon/left-turn-line.js +17 -17
  171. package/lib/icon/loading.js +17 -17
  172. package/lib/icon/narrow-line.js +17 -17
  173. package/lib/icon/original.js +17 -17
  174. package/lib/icon/pdf-fill.js +17 -17
  175. package/lib/icon/play-shape.js +17 -17
  176. package/lib/icon/plus.js +17 -17
  177. package/lib/icon/ppt-fill.js +17 -17
  178. package/lib/icon/qq.js +17 -17
  179. package/lib/icon/right-shape.js +17 -17
  180. package/lib/icon/right-turn-line.js +17 -17
  181. package/lib/icon/search.js +17 -17
  182. package/lib/icon/share.js +17 -17
  183. package/lib/icon/spinner.js +17 -17
  184. package/lib/icon/success.js +17 -17
  185. package/lib/icon/switcher-loading.js +17 -17
  186. package/lib/icon/text-all.js +17 -17
  187. package/lib/icon/text-file.js +17 -17
  188. package/lib/icon/text-fill.js +17 -17
  189. package/lib/icon/transfer.js +17 -17
  190. package/lib/icon/tree-application-shape.js +17 -17
  191. package/lib/icon/unfull-screen.js +17 -17
  192. package/lib/icon/unvisible.js +17 -17
  193. package/lib/icon/up-shape.js +17 -17
  194. package/lib/icon/upload.js +17 -17
  195. package/lib/icon/video-fill.js +17 -17
  196. package/lib/icon/warn.js +17 -17
  197. package/lib/icon/weixin-pro.js +17 -17
  198. package/lib/icon/weixin.js +17 -17
  199. package/lib/image/image-viewer.css +130 -0
  200. package/lib/image/image-viewer.variable.css +261 -1
  201. package/lib/image/image.css +130 -0
  202. package/lib/image/image.variable.css +391 -1
  203. package/lib/image/index.d.ts +149 -113
  204. package/lib/image/index.js +26 -27
  205. package/lib/index.js +1 -1
  206. package/lib/info-box/index.js +233 -232
  207. package/lib/info-box/info-box.css +134 -4
  208. package/lib/info-box/info-box.variable.css +261 -1
  209. package/lib/input/index.d.ts +293 -326
  210. package/lib/input/index.js +48 -46
  211. package/lib/input/input.css +205 -75
  212. package/lib/input/input.variable.css +466 -76
  213. package/lib/link/index.d.ts +122 -73
  214. package/lib/link/index.js +2 -2
  215. package/lib/link/link.css +146 -16
  216. package/lib/link/link.variable.css +261 -1
  217. package/lib/loading/index.d.ts +156 -130
  218. package/lib/loading/index.js +33 -32
  219. package/lib/loading/loading.css +146 -16
  220. package/lib/loading/loading.d.ts +1 -1
  221. package/lib/loading/loading.variable.css +407 -17
  222. package/lib/menu/index.d.ts +116 -55
  223. package/lib/menu/index.js +25 -26
  224. package/lib/menu/menu.css +150 -20
  225. package/lib/menu/menu.variable.css +411 -21
  226. package/lib/menu/submenu.css +130 -0
  227. package/lib/menu/submenu.variable.css +261 -1
  228. package/lib/message/index.js +25 -24
  229. package/lib/message/message.css +151 -21
  230. package/lib/message/message.variable.css +261 -1
  231. package/lib/message/messageConstructor.d.ts +5 -5
  232. package/lib/modal/index.d.ts +185 -171
  233. package/lib/modal/index.js +19 -19
  234. package/lib/modal/modal.css +134 -4
  235. package/lib/modal/modal.variable.css +395 -5
  236. package/lib/navigation/index.d.ts +188 -152
  237. package/lib/navigation/index.js +7 -9
  238. package/lib/navigation/navigation.css +132 -2
  239. package/lib/navigation/navigation.variable.css +261 -1
  240. package/lib/notify/index.js +21 -20
  241. package/lib/notify/notify.css +137 -7
  242. package/lib/notify/notify.variable.css +261 -1
  243. package/lib/overflow-title/index.d.ts +256 -343
  244. package/lib/overflow-title/index.js +10 -11
  245. package/lib/pagination/index.d.ts +198 -184
  246. package/lib/pagination/index.js +56 -49
  247. package/lib/pagination/pagination.css +131 -1
  248. package/lib/pagination/pagination.variable.css +261 -1
  249. package/lib/plugin-popover/index.js +135 -233
  250. package/lib/pop-confirm/index.d.ts +153 -115
  251. package/lib/pop-confirm/index.js +4 -5
  252. package/lib/pop-confirm/pop-confirm.css +130 -0
  253. package/lib/pop-confirm/pop-confirm.d.ts +1 -1
  254. package/lib/pop-confirm/pop-confirm.variable.css +261 -1
  255. package/lib/popover/content.d.ts +1 -1
  256. package/lib/popover/index.d.ts +361 -423
  257. package/lib/popover/index.js +135 -233
  258. package/lib/popover/popover.css +130 -0
  259. package/lib/popover/popover.d.ts +1 -1
  260. package/lib/popover/popover.variable.css +261 -1
  261. package/lib/popover/use-popover-init.d.ts +1 -2
  262. package/lib/popover2/index.d.ts +83 -8
  263. package/lib/popover2/index.js +2 -2
  264. package/lib/process/index.d.ts +137 -93
  265. package/lib/process/index.js +226 -226
  266. package/lib/process/process.css +143 -13
  267. package/lib/process/process.variable.css +261 -1
  268. package/lib/progress/index.d.ts +187 -178
  269. package/lib/progress/index.js +21 -22
  270. package/lib/progress/progress.css +134 -4
  271. package/lib/progress/progress.d.ts +2 -2
  272. package/lib/progress/progress.variable.css +395 -5
  273. package/lib/radio/index.d.ts +140 -91
  274. package/lib/radio/index.js +48 -46
  275. package/lib/radio/radio.css +172 -42
  276. package/lib/radio/radio.variable.css +261 -1
  277. package/lib/rate/index.d.ts +112 -55
  278. package/lib/rate/index.js +20 -19
  279. package/lib/rate/rate.css +130 -0
  280. package/lib/rate/rate.variable.css +261 -1
  281. package/lib/resize-layout/index.d.ts +192 -168
  282. package/lib/resize-layout/index.js +21 -20
  283. package/lib/resize-layout/resize-layout.css +130 -0
  284. package/lib/resize-layout/resize-layout.d.ts +2 -2
  285. package/lib/resize-layout/resize-layout.variable.css +261 -1
  286. package/lib/scrollbar/css/scrollbar.css +130 -0
  287. package/lib/scrollbar/css/scrollbar.variable.css +261 -1
  288. package/lib/scrollbar/index.js +38 -38
  289. package/lib/search-select/index.d.ts +901 -684
  290. package/lib/search-select/index.js +274 -274
  291. package/lib/search-select/input.d.ts +2 -2
  292. package/lib/search-select/search-select.css +163 -33
  293. package/lib/search-select/search-select.d.ts +188 -133
  294. package/lib/search-select/search-select.variable.css +424 -34
  295. package/lib/search-select/selected.d.ts +188 -133
  296. package/lib/select/index.d.ts +1333 -1491
  297. package/lib/select/index.js +280 -279
  298. package/lib/select/select.css +169 -39
  299. package/lib/select/select.d.ts +169 -132
  300. package/lib/select/select.variable.css +430 -40
  301. package/lib/select/selectTagInput.d.ts +2 -2
  302. package/lib/shared/index.js +56 -54
  303. package/lib/sideslider/index.d.ts +201 -197
  304. package/lib/sideslider/index.js +228 -227
  305. package/lib/sideslider/sideslider.css +131 -1
  306. package/lib/sideslider/sideslider.variable.css +261 -1
  307. package/lib/slider/index.d.ts +210 -214
  308. package/lib/slider/index.js +225 -226
  309. package/lib/slider/slider.css +135 -5
  310. package/lib/slider/slider.variable.css +261 -1
  311. package/lib/steps/index.d.ts +149 -110
  312. package/lib/steps/index.js +231 -230
  313. package/lib/steps/steps.css +168 -38
  314. package/lib/steps/steps.variable.css +261 -1
  315. package/lib/styles/mixins/animate.css +130 -0
  316. package/lib/styles/mixins/animate.variable.css +261 -1
  317. package/lib/styles/mixins/mixins.css +130 -0
  318. package/lib/styles/mixins/mixins.variable.css +130 -0
  319. package/lib/styles/mixins/popper.css +130 -0
  320. package/lib/styles/mixins/popper.variable.css +261 -1
  321. package/lib/styles/mixins/scroll.css +130 -0
  322. package/lib/styles/mixins/scroll.variable.css +261 -1
  323. package/lib/styles/reset.css +130 -0
  324. package/lib/styles/reset.variable.css +261 -1
  325. package/lib/styles/themes/themes.css +130 -0
  326. package/lib/styles/themes/themes.less +299 -130
  327. package/lib/styles/themes/themes.variable.css +130 -0
  328. package/lib/swiper/index.d.ts +127 -81
  329. package/lib/swiper/index.js +18 -18
  330. package/lib/swiper/swiper.css +130 -0
  331. package/lib/swiper/swiper.variable.css +261 -1
  332. package/lib/switcher/index.d.ts +174 -152
  333. package/lib/switcher/index.js +22 -20
  334. package/lib/switcher/switcher.css +147 -17
  335. package/lib/switcher/switcher.variable.css +408 -18
  336. package/lib/tab/index.d.ts +183 -151
  337. package/lib/tab/index.js +19 -20
  338. package/lib/tab/tab.css +156 -26
  339. package/lib/tab/tab.variable.css +261 -1
  340. package/lib/table/components/table-column.d.ts +1 -1
  341. package/lib/table/hooks/use-columns.d.ts +1 -1
  342. package/lib/table/hooks/use-layout.d.ts +2 -2
  343. package/lib/table/hooks/use-rows.d.ts +1 -1
  344. package/lib/table/index.d.ts +362 -457
  345. package/lib/table/index.js +350 -338
  346. package/lib/table/plugins/head-filter.css +130 -0
  347. package/lib/table/plugins/head-filter.variable.css +261 -1
  348. package/lib/table/plugins/head-sort.css +130 -0
  349. package/lib/table/plugins/head-sort.variable.css +261 -1
  350. package/lib/table/plugins/settings.css +130 -0
  351. package/lib/table/plugins/settings.variable.css +261 -1
  352. package/lib/table/table.css +319 -189
  353. package/lib/table/table.d.ts +1 -1
  354. package/lib/table/table.variable.css +580 -190
  355. package/lib/table-column/index.d.ts +150 -104
  356. package/lib/table-column/index.js +19 -18
  357. package/lib/tag/index.d.ts +142 -95
  358. package/lib/tag/index.js +19 -19
  359. package/lib/tag/tag.css +135 -5
  360. package/lib/tag/tag.variable.css +261 -1
  361. package/lib/tag-input/index.d.ts +540 -755
  362. package/lib/tag-input/index.js +58 -52
  363. package/lib/tag-input/tag-input.css +148 -18
  364. package/lib/tag-input/tag-input.d.ts +5 -5
  365. package/lib/tag-input/tag-input.variable.css +261 -1
  366. package/lib/time-picker/index.d.ts +386 -439
  367. package/lib/time-picker/time-picker.css +130 -0
  368. package/lib/time-picker/time-picker.variable.css +261 -1
  369. package/lib/timeline/index.d.ts +131 -64
  370. package/lib/timeline/index.js +6 -6
  371. package/lib/timeline/timeline.css +149 -19
  372. package/lib/timeline/timeline.variable.css +261 -1
  373. package/lib/transfer/index.d.ts +206 -191
  374. package/lib/transfer/transfer.css +149 -19
  375. package/lib/transfer/transfer.variable.css +261 -1
  376. package/lib/tree/index.d.ts +308 -350
  377. package/lib/tree/index.js +74 -71
  378. package/lib/tree/tree.css +140 -10
  379. package/lib/tree/tree.d.ts +1 -1
  380. package/lib/tree/tree.variable.css +401 -11
  381. package/lib/tree/use-tree-init.d.ts +1 -1
  382. package/lib/upload/index.d.ts +273 -311
  383. package/lib/upload/index.js +264 -261
  384. package/lib/upload/upload.css +157 -27
  385. package/lib/upload/upload.d.ts +2 -2
  386. package/lib/upload/upload.variable.css +418 -28
  387. package/lib/virtual-render/index.d.ts +241 -333
  388. package/lib/virtual-render/index.js +29 -29
  389. package/lib/virtual-render/virtual-render.css +130 -0
  390. package/lib/virtual-render/virtual-render.d.ts +1 -1
  391. package/lib/virtual-render/virtual-render.variable.css +391 -1
  392. package/package.json +1 -1
@@ -761,304 +761,304 @@ var _typeof = (__webpack_require__(7425)["default"]);
761
761
  function _regeneratorRuntime() {
762
762
  "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
763
763
  module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
764
- return e;
764
+ return exports;
765
765
  }, module.exports.__esModule = true, module.exports["default"] = module.exports;
766
- var t,
767
- e = {},
768
- r = Object.prototype,
769
- n = r.hasOwnProperty,
770
- o = Object.defineProperty || function (t, e, r) {
771
- t[e] = r.value;
766
+ var exports = {},
767
+ Op = Object.prototype,
768
+ hasOwn = Op.hasOwnProperty,
769
+ defineProperty = Object.defineProperty || function (obj, key, desc) {
770
+ obj[key] = desc.value;
772
771
  },
773
- i = "function" == typeof Symbol ? Symbol : {},
774
- a = i.iterator || "@@iterator",
775
- c = i.asyncIterator || "@@asyncIterator",
776
- u = i.toStringTag || "@@toStringTag";
777
- function define(t, e, r) {
778
- return Object.defineProperty(t, e, {
779
- value: r,
772
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
773
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
774
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
775
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
776
+ function define(obj, key, value) {
777
+ return Object.defineProperty(obj, key, {
778
+ value: value,
780
779
  enumerable: !0,
781
780
  configurable: !0,
782
781
  writable: !0
783
- }), t[e];
782
+ }), obj[key];
784
783
  }
785
784
  try {
786
785
  define({}, "");
787
- } catch (t) {
788
- define = function define(t, e, r) {
789
- return t[e] = r;
786
+ } catch (err) {
787
+ define = function define(obj, key, value) {
788
+ return obj[key] = value;
790
789
  };
791
790
  }
792
- function wrap(t, e, r, n) {
793
- var i = e && e.prototype instanceof Generator ? e : Generator,
794
- a = Object.create(i.prototype),
795
- c = new Context(n || []);
796
- return o(a, "_invoke", {
797
- value: makeInvokeMethod(t, r, c)
798
- }), a;
791
+ function wrap(innerFn, outerFn, self, tryLocsList) {
792
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
793
+ generator = Object.create(protoGenerator.prototype),
794
+ context = new Context(tryLocsList || []);
795
+ return defineProperty(generator, "_invoke", {
796
+ value: makeInvokeMethod(innerFn, self, context)
797
+ }), generator;
799
798
  }
800
- function tryCatch(t, e, r) {
799
+ function tryCatch(fn, obj, arg) {
801
800
  try {
802
801
  return {
803
802
  type: "normal",
804
- arg: t.call(e, r)
803
+ arg: fn.call(obj, arg)
805
804
  };
806
- } catch (t) {
805
+ } catch (err) {
807
806
  return {
808
807
  type: "throw",
809
- arg: t
808
+ arg: err
810
809
  };
811
810
  }
812
811
  }
813
- e.wrap = wrap;
814
- var h = "suspendedStart",
815
- l = "suspendedYield",
816
- f = "executing",
817
- s = "completed",
818
- y = {};
812
+ exports.wrap = wrap;
813
+ var ContinueSentinel = {};
819
814
  function Generator() {}
820
815
  function GeneratorFunction() {}
821
816
  function GeneratorFunctionPrototype() {}
822
- var p = {};
823
- define(p, a, function () {
817
+ var IteratorPrototype = {};
818
+ define(IteratorPrototype, iteratorSymbol, function () {
824
819
  return this;
825
820
  });
826
- var d = Object.getPrototypeOf,
827
- v = d && d(d(values([])));
828
- v && v !== r && n.call(v, a) && (p = v);
829
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
830
- function defineIteratorMethods(t) {
831
- ["next", "throw", "return"].forEach(function (e) {
832
- define(t, e, function (t) {
833
- return this._invoke(e, t);
821
+ var getProto = Object.getPrototypeOf,
822
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
823
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
824
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
825
+ function defineIteratorMethods(prototype) {
826
+ ["next", "throw", "return"].forEach(function (method) {
827
+ define(prototype, method, function (arg) {
828
+ return this._invoke(method, arg);
834
829
  });
835
830
  });
836
831
  }
837
- function AsyncIterator(t, e) {
838
- function invoke(r, o, i, a) {
839
- var c = tryCatch(t[r], t, o);
840
- if ("throw" !== c.type) {
841
- var u = c.arg,
842
- h = u.value;
843
- return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
844
- invoke("next", t, i, a);
845
- }, function (t) {
846
- invoke("throw", t, i, a);
847
- }) : e.resolve(h).then(function (t) {
848
- u.value = t, i(u);
849
- }, function (t) {
850
- return invoke("throw", t, i, a);
832
+ function AsyncIterator(generator, PromiseImpl) {
833
+ function invoke(method, arg, resolve, reject) {
834
+ var record = tryCatch(generator[method], generator, arg);
835
+ if ("throw" !== record.type) {
836
+ var result = record.arg,
837
+ value = result.value;
838
+ return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
839
+ invoke("next", value, resolve, reject);
840
+ }, function (err) {
841
+ invoke("throw", err, resolve, reject);
842
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
843
+ result.value = unwrapped, resolve(result);
844
+ }, function (error) {
845
+ return invoke("throw", error, resolve, reject);
851
846
  });
852
847
  }
853
- a(c.arg);
848
+ reject(record.arg);
854
849
  }
855
- var r;
856
- o(this, "_invoke", {
857
- value: function value(t, n) {
850
+ var previousPromise;
851
+ defineProperty(this, "_invoke", {
852
+ value: function value(method, arg) {
858
853
  function callInvokeWithMethodAndArg() {
859
- return new e(function (e, r) {
860
- invoke(t, n, e, r);
854
+ return new PromiseImpl(function (resolve, reject) {
855
+ invoke(method, arg, resolve, reject);
861
856
  });
862
857
  }
863
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
858
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
864
859
  }
865
860
  });
866
861
  }
867
- function makeInvokeMethod(e, r, n) {
868
- var o = h;
869
- return function (i, a) {
870
- if (o === f) throw new Error("Generator is already running");
871
- if (o === s) {
872
- if ("throw" === i) throw a;
873
- return {
874
- value: t,
875
- done: !0
876
- };
862
+ function makeInvokeMethod(innerFn, self, context) {
863
+ var state = "suspendedStart";
864
+ return function (method, arg) {
865
+ if ("executing" === state) throw new Error("Generator is already running");
866
+ if ("completed" === state) {
867
+ if ("throw" === method) throw arg;
868
+ return doneResult();
877
869
  }
878
- for (n.method = i, n.arg = a;;) {
879
- var c = n.delegate;
880
- if (c) {
881
- var u = maybeInvokeDelegate(c, n);
882
- if (u) {
883
- if (u === y) continue;
884
- return u;
870
+ for (context.method = method, context.arg = arg;;) {
871
+ var delegate = context.delegate;
872
+ if (delegate) {
873
+ var delegateResult = maybeInvokeDelegate(delegate, context);
874
+ if (delegateResult) {
875
+ if (delegateResult === ContinueSentinel) continue;
876
+ return delegateResult;
885
877
  }
886
878
  }
887
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
888
- if (o === h) throw o = s, n.arg;
889
- n.dispatchException(n.arg);
890
- } else "return" === n.method && n.abrupt("return", n.arg);
891
- o = f;
892
- var p = tryCatch(e, r, n);
893
- if ("normal" === p.type) {
894
- if (o = n.done ? s : l, p.arg === y) continue;
879
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
880
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
881
+ context.dispatchException(context.arg);
882
+ } else "return" === context.method && context.abrupt("return", context.arg);
883
+ state = "executing";
884
+ var record = tryCatch(innerFn, self, context);
885
+ if ("normal" === record.type) {
886
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
895
887
  return {
896
- value: p.arg,
897
- done: n.done
888
+ value: record.arg,
889
+ done: context.done
898
890
  };
899
891
  }
900
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
892
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
901
893
  }
902
894
  };
903
895
  }
904
- function maybeInvokeDelegate(e, r) {
905
- var n = r.method,
906
- o = e.iterator[n];
907
- if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
908
- var i = tryCatch(o, e.iterator, r.arg);
909
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
910
- var a = i.arg;
911
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
896
+ function maybeInvokeDelegate(delegate, context) {
897
+ var methodName = context.method,
898
+ method = delegate.iterator[methodName];
899
+ if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
900
+ var record = tryCatch(method, delegate.iterator, context.arg);
901
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
902
+ var info = record.arg;
903
+ return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
912
904
  }
913
- function pushTryEntry(t) {
914
- var e = {
915
- tryLoc: t[0]
905
+ function pushTryEntry(locs) {
906
+ var entry = {
907
+ tryLoc: locs[0]
916
908
  };
917
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
909
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
918
910
  }
919
- function resetTryEntry(t) {
920
- var e = t.completion || {};
921
- e.type = "normal", delete e.arg, t.completion = e;
911
+ function resetTryEntry(entry) {
912
+ var record = entry.completion || {};
913
+ record.type = "normal", delete record.arg, entry.completion = record;
922
914
  }
923
- function Context(t) {
915
+ function Context(tryLocsList) {
924
916
  this.tryEntries = [{
925
917
  tryLoc: "root"
926
- }], t.forEach(pushTryEntry, this), this.reset(!0);
918
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
927
919
  }
928
- function values(e) {
929
- if (e || "" === e) {
930
- var r = e[a];
931
- if (r) return r.call(e);
932
- if ("function" == typeof e.next) return e;
933
- if (!isNaN(e.length)) {
934
- var o = -1,
935
- i = function next() {
936
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
937
- return next.value = t, next.done = !0, next;
920
+ function values(iterable) {
921
+ if (iterable) {
922
+ var iteratorMethod = iterable[iteratorSymbol];
923
+ if (iteratorMethod) return iteratorMethod.call(iterable);
924
+ if ("function" == typeof iterable.next) return iterable;
925
+ if (!isNaN(iterable.length)) {
926
+ var i = -1,
927
+ next = function next() {
928
+ for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
929
+ return next.value = undefined, next.done = !0, next;
938
930
  };
939
- return i.next = i;
931
+ return next.next = next;
940
932
  }
941
933
  }
942
- throw new TypeError(_typeof(e) + " is not iterable");
934
+ return {
935
+ next: doneResult
936
+ };
937
+ }
938
+ function doneResult() {
939
+ return {
940
+ value: undefined,
941
+ done: !0
942
+ };
943
943
  }
944
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
944
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
945
945
  value: GeneratorFunctionPrototype,
946
946
  configurable: !0
947
- }), o(GeneratorFunctionPrototype, "constructor", {
947
+ }), defineProperty(GeneratorFunctionPrototype, "constructor", {
948
948
  value: GeneratorFunction,
949
949
  configurable: !0
950
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
951
- var e = "function" == typeof t && t.constructor;
952
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
953
- }, e.mark = function (t) {
954
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
955
- }, e.awrap = function (t) {
950
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
951
+ var ctor = "function" == typeof genFun && genFun.constructor;
952
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
953
+ }, exports.mark = function (genFun) {
954
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
955
+ }, exports.awrap = function (arg) {
956
956
  return {
957
- __await: t
957
+ __await: arg
958
958
  };
959
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
959
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
960
960
  return this;
961
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
962
- void 0 === i && (i = Promise);
963
- var a = new AsyncIterator(wrap(t, r, n, o), i);
964
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
965
- return t.done ? t.value : a.next();
961
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
962
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
963
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
964
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
965
+ return result.done ? result.value : iter.next();
966
966
  });
967
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
967
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
968
968
  return this;
969
- }), define(g, "toString", function () {
969
+ }), define(Gp, "toString", function () {
970
970
  return "[object Generator]";
971
- }), e.keys = function (t) {
972
- var e = Object(t),
973
- r = [];
974
- for (var n in e) r.push(n);
975
- return r.reverse(), function next() {
976
- for (; r.length;) {
977
- var t = r.pop();
978
- if (t in e) return next.value = t, next.done = !1, next;
971
+ }), exports.keys = function (val) {
972
+ var object = Object(val),
973
+ keys = [];
974
+ for (var key in object) keys.push(key);
975
+ return keys.reverse(), function next() {
976
+ for (; keys.length;) {
977
+ var key = keys.pop();
978
+ if (key in object) return next.value = key, next.done = !1, next;
979
979
  }
980
980
  return next.done = !0, next;
981
981
  };
982
- }, e.values = values, Context.prototype = {
982
+ }, exports.values = values, Context.prototype = {
983
983
  constructor: Context,
984
- reset: function reset(e) {
985
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
984
+ reset: function reset(skipTempReset) {
985
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
986
986
  },
987
987
  stop: function stop() {
988
988
  this.done = !0;
989
- var t = this.tryEntries[0].completion;
990
- if ("throw" === t.type) throw t.arg;
989
+ var rootRecord = this.tryEntries[0].completion;
990
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
991
991
  return this.rval;
992
992
  },
993
- dispatchException: function dispatchException(e) {
994
- if (this.done) throw e;
995
- var r = this;
996
- function handle(n, o) {
997
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
993
+ dispatchException: function dispatchException(exception) {
994
+ if (this.done) throw exception;
995
+ var context = this;
996
+ function handle(loc, caught) {
997
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
998
998
  }
999
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
1000
- var i = this.tryEntries[o],
1001
- a = i.completion;
1002
- if ("root" === i.tryLoc) return handle("end");
1003
- if (i.tryLoc <= this.prev) {
1004
- var c = n.call(i, "catchLoc"),
1005
- u = n.call(i, "finallyLoc");
1006
- if (c && u) {
1007
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
1008
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
1009
- } else if (c) {
1010
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
999
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1000
+ var entry = this.tryEntries[i],
1001
+ record = entry.completion;
1002
+ if ("root" === entry.tryLoc) return handle("end");
1003
+ if (entry.tryLoc <= this.prev) {
1004
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
1005
+ hasFinally = hasOwn.call(entry, "finallyLoc");
1006
+ if (hasCatch && hasFinally) {
1007
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
1008
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
1009
+ } else if (hasCatch) {
1010
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
1011
1011
  } else {
1012
- if (!u) throw new Error("try statement without catch or finally");
1013
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
1012
+ if (!hasFinally) throw new Error("try statement without catch or finally");
1013
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
1014
1014
  }
1015
1015
  }
1016
1016
  }
1017
1017
  },
1018
- abrupt: function abrupt(t, e) {
1019
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
1020
- var o = this.tryEntries[r];
1021
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
1022
- var i = o;
1018
+ abrupt: function abrupt(type, arg) {
1019
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1020
+ var entry = this.tryEntries[i];
1021
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
1022
+ var finallyEntry = entry;
1023
1023
  break;
1024
1024
  }
1025
1025
  }
1026
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
1027
- var a = i ? i.completion : {};
1028
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
1026
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
1027
+ var record = finallyEntry ? finallyEntry.completion : {};
1028
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
1029
1029
  },
1030
- complete: function complete(t, e) {
1031
- if ("throw" === t.type) throw t.arg;
1032
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
1030
+ complete: function complete(record, afterLoc) {
1031
+ if ("throw" === record.type) throw record.arg;
1032
+ return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
1033
1033
  },
1034
- finish: function finish(t) {
1035
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
1036
- var r = this.tryEntries[e];
1037
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
1034
+ finish: function finish(finallyLoc) {
1035
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1036
+ var entry = this.tryEntries[i];
1037
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
1038
1038
  }
1039
1039
  },
1040
- "catch": function _catch(t) {
1041
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
1042
- var r = this.tryEntries[e];
1043
- if (r.tryLoc === t) {
1044
- var n = r.completion;
1045
- if ("throw" === n.type) {
1046
- var o = n.arg;
1047
- resetTryEntry(r);
1040
+ "catch": function _catch(tryLoc) {
1041
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1042
+ var entry = this.tryEntries[i];
1043
+ if (entry.tryLoc === tryLoc) {
1044
+ var record = entry.completion;
1045
+ if ("throw" === record.type) {
1046
+ var thrown = record.arg;
1047
+ resetTryEntry(entry);
1048
1048
  }
1049
- return o;
1049
+ return thrown;
1050
1050
  }
1051
1051
  }
1052
1052
  throw new Error("illegal catch attempt");
1053
1053
  },
1054
- delegateYield: function delegateYield(e, r, n) {
1054
+ delegateYield: function delegateYield(iterable, resultName, nextLoc) {
1055
1055
  return this.delegate = {
1056
- iterator: values(e),
1057
- resultName: r,
1058
- nextLoc: n
1059
- }, "next" === this.method && (this.arg = t), y;
1056
+ iterator: values(iterable),
1057
+ resultName: resultName,
1058
+ nextLoc: nextLoc
1059
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
1060
1060
  }
1061
- }, e;
1061
+ }, exports;
1062
1062
  }
1063
1063
  module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
1064
1064
 
@@ -1067,14 +1067,14 @@ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.e
1067
1067
  /***/ 7425:
1068
1068
  /***/ ((module) => {
1069
1069
 
1070
- function _typeof(o) {
1070
+ function _typeof(obj) {
1071
1071
  "@babel/helpers - typeof";
1072
1072
 
1073
- return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
1074
- return typeof o;
1075
- } : function (o) {
1076
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
1077
- }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
1073
+ return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1074
+ return typeof obj;
1075
+ } : function (obj) {
1076
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1077
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
1078
1078
  }
1079
1079
  module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
1080
1080
 
@@ -1204,38 +1204,38 @@ function _asyncToGenerator(fn) {
1204
1204
  };
1205
1205
  }
1206
1206
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
1207
- function _typeof(o) {
1207
+ function _typeof(obj) {
1208
1208
  "@babel/helpers - typeof";
1209
1209
 
1210
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
1211
- return typeof o;
1212
- } : function (o) {
1213
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
1214
- }, _typeof(o);
1210
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1211
+ return typeof obj;
1212
+ } : function (obj) {
1213
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1214
+ }, _typeof(obj);
1215
1215
  }
1216
1216
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
1217
1217
 
1218
- function toPrimitive(t, r) {
1219
- if ("object" != _typeof(t) || !t) return t;
1220
- var e = t[Symbol.toPrimitive];
1221
- if (void 0 !== e) {
1222
- var i = e.call(t, r || "default");
1223
- if ("object" != _typeof(i)) return i;
1218
+ function _toPrimitive(input, hint) {
1219
+ if (_typeof(input) !== "object" || input === null) return input;
1220
+ var prim = input[Symbol.toPrimitive];
1221
+ if (prim !== undefined) {
1222
+ var res = prim.call(input, hint || "default");
1223
+ if (_typeof(res) !== "object") return res;
1224
1224
  throw new TypeError("@@toPrimitive must return a primitive value.");
1225
1225
  }
1226
- return ("string" === r ? String : Number)(t);
1226
+ return (hint === "string" ? String : Number)(input);
1227
1227
  }
1228
1228
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
1229
1229
 
1230
1230
 
1231
- function toPropertyKey(t) {
1232
- var i = toPrimitive(t, "string");
1233
- return "symbol" == _typeof(i) ? i : String(i);
1231
+ function _toPropertyKey(arg) {
1232
+ var key = _toPrimitive(arg, "string");
1233
+ return _typeof(key) === "symbol" ? key : String(key);
1234
1234
  }
1235
1235
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
1236
1236
 
1237
1237
  function _defineProperty(obj, key, value) {
1238
- key = toPropertyKey(key);
1238
+ key = _toPropertyKey(key);
1239
1239
  if (key in obj) {
1240
1240
  Object.defineProperty(obj, key, {
1241
1241
  value: value,
@@ -1488,31 +1488,31 @@ function _arrayWithHoles(arr) {
1488
1488
  if (Array.isArray(arr)) return arr;
1489
1489
  }
1490
1490
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
1491
- function _iterableToArrayLimit(r, l) {
1492
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
1493
- if (null != t) {
1494
- var e,
1495
- n,
1496
- i,
1497
- u,
1498
- a = [],
1499
- f = !0,
1500
- o = !1;
1491
+ function _iterableToArrayLimit(arr, i) {
1492
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
1493
+ if (null != _i) {
1494
+ var _s,
1495
+ _e,
1496
+ _x,
1497
+ _r,
1498
+ _arr = [],
1499
+ _n = !0,
1500
+ _d = !1;
1501
1501
  try {
1502
- if (i = (t = t.call(r)).next, 0 === l) {
1503
- if (Object(t) !== t) return;
1504
- f = !1;
1505
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
1506
- } catch (r) {
1507
- o = !0, n = r;
1502
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
1503
+ if (Object(_i) !== _i) return;
1504
+ _n = !1;
1505
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
1506
+ } catch (err) {
1507
+ _d = !0, _e = err;
1508
1508
  } finally {
1509
1509
  try {
1510
- if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
1510
+ if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
1511
1511
  } finally {
1512
- if (o) throw n;
1512
+ if (_d) throw _e;
1513
1513
  }
1514
1514
  }
1515
- return a;
1515
+ return _arr;
1516
1516
  }
1517
1517
  }
1518
1518
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
@@ -1624,7 +1624,8 @@ function _isSlot(s) {
1624
1624
  return isPhotowall.value && !multiple.value;
1625
1625
  });
1626
1626
  var classNames = (0,external_vue_namespaceObject.computed)(function () {
1627
- return (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty({}, classBlock, true), "".concat(classBlock, "--").concat(theme.value), true), "".concat(classBlock, "--disabled"), disabled.value));
1627
+ var _classes;
1628
+ return (0,shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, classBlock, true), _defineProperty(_classes, "".concat(classBlock, "--").concat(theme.value), true), _defineProperty(_classes, "".concat(classBlock, "--disabled"), disabled.value), _classes));
1628
1629
  });
1629
1630
  function formatSize(value) {
1630
1631
  var uints = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
@@ -1646,7 +1647,8 @@ function _isSlot(s) {
1646
1647
  return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.TransitionGroup, {
1647
1648
  "name": "".concat(classBlock, "__item")
1648
1649
  }, _isSlot(_slot = props.files.map(function (file) {
1649
- var classNames = (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty({}, "".concat(classBlock, "__item"), true), "".concat(classBlock, "__item-picture"), true), "".concat(classBlock, "__item--").concat(file.status), true));
1650
+ var _classes2;
1651
+ var classNames = (0,shared_namespaceObject.classes)((_classes2 = {}, _defineProperty(_classes2, "".concat(classBlock, "__item"), true), _defineProperty(_classes2, "".concat(classBlock, "__item-picture"), true), _defineProperty(_classes2, "".concat(classBlock, "__item--").concat(file.status), true), _classes2));
1650
1652
  return (0,external_vue_namespaceObject.createVNode)("li", {
1651
1653
  "key": file.uid,
1652
1654
  "class": classNames
@@ -1693,7 +1695,8 @@ function _isSlot(s) {
1693
1695
  return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.TransitionGroup, {
1694
1696
  "name": "".concat(classBlock, "__item")
1695
1697
  }, _isSlot(_slot2 = props.files.map(function (file) {
1696
- var classNames = (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty({}, "".concat(classBlock, "__item"), true), "".concat(classBlock, "__item--").concat(file.status), true));
1698
+ var _classes3;
1699
+ var classNames = (0,shared_namespaceObject.classes)((_classes3 = {}, _defineProperty(_classes3, "".concat(classBlock, "__item"), true), _defineProperty(_classes3, "".concat(classBlock, "__item--").concat(file.status), true), _classes3));
1697
1700
  return (0,external_vue_namespaceObject.createVNode)("li", {
1698
1701
  "key": file.uid,
1699
1702
  "class": classNames
@@ -1869,8 +1872,8 @@ const button_less_namespaceObject = button_less_x({ });
1869
1872
  });
1870
1873
  var inputEl = (0,external_vue_namespaceObject.ref)(null);
1871
1874
  var classNames = (0,external_vue_namespaceObject.computed)(function () {
1872
- var _file$value, _file$value2, _file$value3;
1873
- return (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, classBlock, true), "".concat(classBlock, "--").concat(theme.value), true), "".concat(classBlock, "--single-picture"), isSinglePicture.value), "".concat(classBlock, "--has-file"), (_file$value = file.value) !== null && _file$value !== void 0 ? _file$value : false), "".concat(classBlock, "--").concat((_file$value2 = file.value) === null || _file$value2 === void 0 ? void 0 : _file$value2.status), (_file$value3 = file.value) !== null && _file$value3 !== void 0 ? _file$value3 : false), "".concat(classBlock, "--dragover"), dragover.value), "".concat(classBlock, "--disabled"), disabled.value));
1875
+ var _file$value, _file$value2, _file$value3, _classes;
1876
+ return (0,shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, classBlock, true), _defineProperty(_classes, "".concat(classBlock, "--").concat(theme.value), true), _defineProperty(_classes, "".concat(classBlock, "--single-picture"), isSinglePicture.value), _defineProperty(_classes, "".concat(classBlock, "--has-file"), (_file$value = file.value) !== null && _file$value !== void 0 ? _file$value : false), _defineProperty(_classes, "".concat(classBlock, "--").concat((_file$value2 = file.value) === null || _file$value2 === void 0 ? void 0 : _file$value2.status), (_file$value3 = file.value) !== null && _file$value3 !== void 0 ? _file$value3 : false), _defineProperty(_classes, "".concat(classBlock, "--dragover"), dragover.value), _defineProperty(_classes, "".concat(classBlock, "--disabled"), disabled.value), _classes));
1874
1877
  });
1875
1878
  var invoke = function invoke() {
1876
1879
  inputEl.value.value = null;
@@ -2195,7 +2198,7 @@ var ajaxUpload = function ajaxUpload(option) {
2195
2198
  // 该方法用于在不同的浏览器使用不同的方式
2196
2199
  var blobSlice = File.prototype.slice || File.prototype.mozSlice || File.prototype.webkitSlice;
2197
2200
  var ajaxSliceUpload = /*#__PURE__*/function () {
2198
- var _ref = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(option) {
2201
+ var _ref = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee(option) {
2199
2202
  var chunkSize, file, blockCount, hash, progressList;
2200
2203
  return regenerator_default().wrap(function _callee$(_context) {
2201
2204
  while (1) switch (_context.prev = _context.next) {
@@ -2492,7 +2495,7 @@ function buildFileId(index) {
2492
2495
  return _handleRemove.apply(this, arguments);
2493
2496
  }
2494
2497
  function _handleRemove() {
2495
- _handleRemove = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(file) {
2498
+ _handleRemove = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee(file) {
2496
2499
  var uploadFile, remove, _props$beforeRemove, before;
2497
2500
  return regenerator_default().wrap(function _callee$(_context) {
2498
2501
  while (1) switch (_context.prev = _context.next) {
@@ -2533,7 +2536,7 @@ function buildFileId(index) {
2533
2536
  return _handleError.apply(this, arguments);
2534
2537
  }
2535
2538
  function _handleError() {
2536
- _handleError = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(err, rawFile, res) {
2539
+ _handleError = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2(err, rawFile, res) {
2537
2540
  var file;
2538
2541
  return regenerator_default().wrap(function _callee2$(_context2) {
2539
2542
  while (1) switch (_context2.prev = _context2.next) {
@@ -2560,7 +2563,7 @@ function buildFileId(index) {
2560
2563
  return _handleSuccess.apply(this, arguments);
2561
2564
  }
2562
2565
  function _handleSuccess() {
2563
- _handleSuccess = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(res, rawFile) {
2566
+ _handleSuccess = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee3(res, rawFile) {
2564
2567
  var file;
2565
2568
  return regenerator_default().wrap(function _callee3$(_context3) {
2566
2569
  while (1) switch (_context3.prev = _context3.next) {
@@ -2586,7 +2589,7 @@ function buildFileId(index) {
2586
2589
  return _handleProgress.apply(this, arguments);
2587
2590
  }
2588
2591
  function _handleProgress() {
2589
- _handleProgress = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee4(event, rawFile) {
2592
+ _handleProgress = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee4(event, rawFile) {
2590
2593
  var file;
2591
2594
  return regenerator_default().wrap(function _callee4$(_context4) {
2592
2595
  while (1) switch (_context4.prev = _context4.next) {
@@ -2638,9 +2641,9 @@ function buildFileId(index) {
2638
2641
 
2639
2642
 
2640
2643
 
2641
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = upload_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
2642
- function upload_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return upload_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return upload_arrayLikeToArray(o, minLen); }
2643
- function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
2644
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = upload_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
2645
+ function upload_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return upload_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? upload_arrayLikeToArray(r, a) : void 0; } }
2646
+ function upload_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
2644
2647
  /*
2645
2648
  * Tencent is pleased to support the open source community by making
2646
2649
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -2693,8 +2696,8 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
2693
2696
  return isPhotowall.value && !props.multiple;
2694
2697
  });
2695
2698
  var classNames = (0,external_vue_namespaceObject.computed)(function () {
2696
- var _props$extCls;
2697
- return (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(resolveClassName(CLASS_PREFIX)), true), "".concat(resolveClassName(CLASS_PREFIX), "--").concat(props.theme), true), "".concat(resolveClassName(CLASS_PREFIX), "--disabled"), props.disabled), "".concat(resolveClassName(CLASS_PREFIX), "--single-picture"), isSinglePhoto.value), props.extCls, (_props$extCls = props.extCls) !== null && _props$extCls !== void 0 ? _props$extCls : false));
2699
+ var _props$extCls, _classes;
2700
+ return (0,shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "".concat(resolveClassName(CLASS_PREFIX)), true), _defineProperty(_classes, "".concat(resolveClassName(CLASS_PREFIX), "--").concat(props.theme), true), _defineProperty(_classes, "".concat(resolveClassName(CLASS_PREFIX), "--disabled"), props.disabled), _defineProperty(_classes, "".concat(resolveClassName(CLASS_PREFIX), "--single-picture"), isSinglePhoto.value), _defineProperty(_classes, props.extCls, (_props$extCls = props.extCls) !== null && _props$extCls !== void 0 ? _props$extCls : false), _classes));
2698
2701
  });
2699
2702
  var triggerProps = (0,external_vue_namespaceObject.computed)(function () {
2700
2703
  return {
@@ -2767,7 +2770,7 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
2767
2770
  return _upload.apply(this, arguments);
2768
2771
  }
2769
2772
  function _upload() {
2770
- _upload = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(file, sendFiles) {
2773
+ _upload = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee(file, sendFiles) {
2771
2774
  var beforeResult, _props$beforeUpload;
2772
2775
  return regenerator_default().wrap(function _callee$(_context) {
2773
2776
  while (1) switch (_context.prev = _context.next) {
@@ -2881,7 +2884,7 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
2881
2884
  Object.keys(reqs).forEach(function (uid) {
2882
2885
  if (reqs[uid] instanceof XMLHttpRequest) {
2883
2886
  var xhr = reqs[uid];
2884
- xhr === null || xhr === void 0 || xhr.abort();
2887
+ xhr === null || xhr === void 0 ? void 0 : xhr.abort();
2885
2888
  }
2886
2889
  delete requests.value[uid];
2887
2890
  });