vant 3.4.7 → 3.4.8

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 (351) hide show
  1. package/README.md +141 -0
  2. package/changelog.generated.md +41 -43
  3. package/es/calendar/CalendarDay.js +4 -0
  4. package/es/calendar/index.css +1 -1
  5. package/es/calendar/index.less +2 -0
  6. package/es/calendar/var.less +1 -0
  7. package/es/datetime-picker/DatePicker.js +1 -0
  8. package/es/dialog/index.css +1 -1
  9. package/es/empty/Empty.d.ts +8 -7
  10. package/es/empty/Empty.js +2 -2
  11. package/es/empty/index.d.ts +2 -2
  12. package/es/field/Field.d.ts +4 -0
  13. package/es/field/Field.js +2 -0
  14. package/es/field/index.d.ts +2 -0
  15. package/es/form/Form.js +1 -0
  16. package/es/form/types.d.ts +1 -0
  17. package/es/icon/index.css +1 -1
  18. package/es/index.d.ts +1 -1
  19. package/es/index.js +1 -1
  20. package/es/locale/lang/da-DK.d.ts +64 -0
  21. package/es/locale/lang/da-DK.js +66 -0
  22. package/es/popup/index.css +1 -1
  23. package/es/rate/Rate.js +32 -10
  24. package/es/search/Search.d.ts +3 -0
  25. package/es/search/index.d.ts +2 -0
  26. package/es/share-sheet/ShareSheet.js +25 -11
  27. package/es/share-sheet/index.css +1 -1
  28. package/es/share-sheet/index.less +45 -1
  29. package/es/slider/index.css +1 -1
  30. package/es/style/animation.css +1 -1
  31. package/es/style/base.css +1 -1
  32. package/es/swipe-cell/index.css +1 -1
  33. package/lib/action-bar/ActionBar.js +8 -13
  34. package/lib/action-bar/index.js +9 -16
  35. package/lib/action-bar-button/ActionBarButton.js +8 -13
  36. package/lib/action-bar-button/index.js +9 -16
  37. package/lib/action-bar-icon/ActionBarIcon.js +8 -13
  38. package/lib/action-bar-icon/index.js +9 -16
  39. package/lib/action-sheet/ActionSheet.js +8 -13
  40. package/lib/action-sheet/index.js +9 -16
  41. package/lib/address-edit/AddressEdit.js +9 -16
  42. package/lib/address-edit/AddressEditDetail.js +8 -13
  43. package/lib/address-edit/index.js +9 -16
  44. package/lib/address-edit/types.js +7 -12
  45. package/lib/address-list/AddressList.js +9 -16
  46. package/lib/address-list/AddressListItem.js +8 -13
  47. package/lib/address-list/index.js +9 -16
  48. package/lib/area/Area.js +8 -13
  49. package/lib/area/index.js +9 -16
  50. package/lib/area/types.js +7 -12
  51. package/lib/badge/Badge.js +8 -13
  52. package/lib/badge/index.js +9 -16
  53. package/lib/button/Button.js +8 -13
  54. package/lib/button/index.js +9 -16
  55. package/lib/button/types.js +7 -12
  56. package/lib/calendar/Calendar.js +9 -16
  57. package/lib/calendar/CalendarDay.js +12 -13
  58. package/lib/calendar/CalendarHeader.js +8 -13
  59. package/lib/calendar/CalendarMonth.js +9 -16
  60. package/lib/calendar/index.css +1 -1
  61. package/lib/calendar/index.js +9 -16
  62. package/lib/calendar/index.less +2 -0
  63. package/lib/calendar/types.js +7 -12
  64. package/lib/calendar/utils.js +8 -13
  65. package/lib/calendar/var.less +1 -0
  66. package/lib/card/Card.js +8 -13
  67. package/lib/card/index.js +9 -16
  68. package/lib/cascader/Cascader.js +8 -13
  69. package/lib/cascader/index.js +9 -16
  70. package/lib/cascader/types.js +7 -12
  71. package/lib/cell/Cell.js +8 -13
  72. package/lib/cell/index.js +9 -16
  73. package/lib/cell-group/CellGroup.js +8 -13
  74. package/lib/cell-group/index.js +9 -16
  75. package/lib/checkbox/Checkbox.js +9 -16
  76. package/lib/checkbox/Checker.js +8 -13
  77. package/lib/checkbox/index.js +9 -16
  78. package/lib/checkbox/types.js +7 -12
  79. package/lib/checkbox-group/CheckboxGroup.js +8 -13
  80. package/lib/checkbox-group/index.js +9 -16
  81. package/lib/checkbox-group/types.js +7 -12
  82. package/lib/circle/Circle.js +8 -13
  83. package/lib/circle/index.js +9 -16
  84. package/lib/col/Col.js +8 -13
  85. package/lib/col/index.js +9 -16
  86. package/lib/collapse/Collapse.js +8 -13
  87. package/lib/collapse/index.js +9 -16
  88. package/lib/collapse-item/CollapseItem.js +8 -13
  89. package/lib/collapse-item/index.js +9 -16
  90. package/lib/collapse-item/types.js +7 -12
  91. package/lib/composables/on-popup-reopen.js +8 -13
  92. package/lib/composables/use-expose.js +8 -13
  93. package/lib/composables/use-height.js +8 -13
  94. package/lib/composables/use-id.js +8 -13
  95. package/lib/composables/use-lazy-render.js +8 -13
  96. package/lib/composables/use-lock-scroll.js +8 -13
  97. package/lib/composables/use-placeholder.js +8 -13
  98. package/lib/composables/use-refs.js +8 -13
  99. package/lib/composables/use-route.js +8 -13
  100. package/lib/composables/use-tab-status.js +8 -13
  101. package/lib/composables/use-touch.js +8 -13
  102. package/lib/composables/use-visibility-change.js +8 -13
  103. package/lib/config-provider/ConfigProvider.js +8 -13
  104. package/lib/config-provider/index.js +9 -16
  105. package/lib/contact-card/ContactCard.js +8 -13
  106. package/lib/contact-card/index.js +9 -16
  107. package/lib/contact-edit/ContactEdit.js +8 -13
  108. package/lib/contact-edit/index.js +9 -16
  109. package/lib/contact-list/ContactList.js +8 -13
  110. package/lib/contact-list/index.js +9 -16
  111. package/lib/count-down/CountDown.js +8 -13
  112. package/lib/count-down/index.js +9 -16
  113. package/lib/count-down/types.js +7 -12
  114. package/lib/count-down/utils.js +8 -13
  115. package/lib/coupon/Coupon.js +8 -13
  116. package/lib/coupon/index.js +9 -16
  117. package/lib/coupon/utils.js +8 -13
  118. package/lib/coupon-cell/CouponCell.js +8 -13
  119. package/lib/coupon-cell/index.js +9 -16
  120. package/lib/coupon-list/CouponList.js +8 -13
  121. package/lib/coupon-list/index.js +9 -16
  122. package/lib/datetime-picker/DatePicker.js +9 -13
  123. package/lib/datetime-picker/DatetimePicker.js +9 -16
  124. package/lib/datetime-picker/TimePicker.js +8 -13
  125. package/lib/datetime-picker/index.js +9 -16
  126. package/lib/datetime-picker/types.js +7 -12
  127. package/lib/datetime-picker/utils.js +8 -13
  128. package/lib/dialog/Dialog.js +8 -13
  129. package/lib/dialog/function-call.js +9 -16
  130. package/lib/dialog/index.css +1 -1
  131. package/lib/dialog/index.js +8 -13
  132. package/lib/dialog/types.js +7 -12
  133. package/lib/divider/Divider.js +8 -13
  134. package/lib/divider/index.js +9 -16
  135. package/lib/dropdown-item/DropdownItem.js +8 -13
  136. package/lib/dropdown-item/index.js +9 -16
  137. package/lib/dropdown-item/types.js +7 -12
  138. package/lib/dropdown-menu/DropdownMenu.js +8 -13
  139. package/lib/dropdown-menu/index.js +9 -16
  140. package/lib/dropdown-menu/types.js +7 -12
  141. package/lib/empty/Empty.d.ts +8 -7
  142. package/lib/empty/Empty.js +9 -14
  143. package/lib/empty/Network.js +8 -13
  144. package/lib/empty/index.d.ts +2 -2
  145. package/lib/empty/index.js +9 -16
  146. package/lib/field/Field.d.ts +4 -0
  147. package/lib/field/Field.js +10 -13
  148. package/lib/field/index.d.ts +2 -0
  149. package/lib/field/index.js +9 -16
  150. package/lib/field/types.js +7 -12
  151. package/lib/field/utils.js +8 -13
  152. package/lib/form/Form.js +9 -13
  153. package/lib/form/index.js +9 -16
  154. package/lib/form/types.d.ts +1 -0
  155. package/lib/form/types.js +7 -12
  156. package/lib/grid/Grid.js +8 -13
  157. package/lib/grid/index.js +9 -16
  158. package/lib/grid-item/GridItem.js +8 -13
  159. package/lib/grid-item/index.js +9 -16
  160. package/lib/icon/Icon.js +8 -13
  161. package/lib/icon/index.css +1 -1
  162. package/lib/icon/index.js +9 -16
  163. package/lib/image/Image.js +8 -13
  164. package/lib/image/index.js +9 -16
  165. package/lib/image-preview/ImagePreview.js +9 -16
  166. package/lib/image-preview/ImagePreviewItem.js +8 -13
  167. package/lib/image-preview/function-call.js +9 -16
  168. package/lib/image-preview/index.js +8 -13
  169. package/lib/image-preview/types.js +7 -12
  170. package/lib/index-anchor/IndexAnchor.js +8 -13
  171. package/lib/index-anchor/index.js +9 -16
  172. package/lib/index-bar/IndexBar.js +8 -13
  173. package/lib/index-bar/index.js +9 -16
  174. package/lib/index-bar/types.js +7 -12
  175. package/lib/index.css +1 -1
  176. package/lib/index.d.ts +1 -1
  177. package/lib/index.js +96 -100
  178. package/lib/lazyload/index.js +8 -13
  179. package/lib/lazyload/vue-lazyload/index.js +9 -16
  180. package/lib/lazyload/vue-lazyload/lazy-component.js +8 -13
  181. package/lib/lazyload/vue-lazyload/lazy-container.js +8 -13
  182. package/lib/lazyload/vue-lazyload/lazy-image.js +8 -13
  183. package/lib/lazyload/vue-lazyload/lazy.js +9 -16
  184. package/lib/lazyload/vue-lazyload/listener.js +8 -13
  185. package/lib/lazyload/vue-lazyload/util.js +8 -13
  186. package/lib/list/List.js +8 -13
  187. package/lib/list/index.js +9 -16
  188. package/lib/list/types.js +7 -12
  189. package/lib/loading/Loading.js +8 -13
  190. package/lib/loading/index.js +9 -16
  191. package/lib/locale/index.js +9 -16
  192. package/lib/locale/lang/bn-BD.js +8 -13
  193. package/lib/locale/lang/da-DK.d.ts +64 -0
  194. package/lib/locale/lang/da-DK.js +85 -0
  195. package/lib/locale/lang/de-DE-formal.js +8 -13
  196. package/lib/locale/lang/de-DE.js +8 -13
  197. package/lib/locale/lang/en-US.js +8 -13
  198. package/lib/locale/lang/es-ES.js +8 -13
  199. package/lib/locale/lang/fr-FR.js +8 -13
  200. package/lib/locale/lang/hi-IN.js +8 -13
  201. package/lib/locale/lang/id-ID.js +8 -13
  202. package/lib/locale/lang/is-IS.js +8 -13
  203. package/lib/locale/lang/it-IT.js +8 -13
  204. package/lib/locale/lang/ja-JP.js +8 -13
  205. package/lib/locale/lang/ko-KR.js +8 -13
  206. package/lib/locale/lang/la-LA.js +8 -13
  207. package/lib/locale/lang/nb-NO.js +8 -13
  208. package/lib/locale/lang/pt-BR.js +8 -13
  209. package/lib/locale/lang/ro-RO.js +8 -13
  210. package/lib/locale/lang/ru-RU.js +8 -13
  211. package/lib/locale/lang/sv-SE.js +8 -13
  212. package/lib/locale/lang/th-TH.js +8 -13
  213. package/lib/locale/lang/tr-TR.js +8 -13
  214. package/lib/locale/lang/uk-UA.js +8 -13
  215. package/lib/locale/lang/vi-VN.js +8 -13
  216. package/lib/locale/lang/zh-CN.js +8 -13
  217. package/lib/locale/lang/zh-HK.js +8 -13
  218. package/lib/locale/lang/zh-TW.js +8 -13
  219. package/lib/nav-bar/NavBar.js +8 -13
  220. package/lib/nav-bar/index.js +9 -16
  221. package/lib/notice-bar/NoticeBar.js +8 -13
  222. package/lib/notice-bar/index.js +9 -16
  223. package/lib/notice-bar/types.js +7 -12
  224. package/lib/notify/Notify.js +8 -13
  225. package/lib/notify/function-call.js +9 -16
  226. package/lib/notify/index.js +8 -13
  227. package/lib/notify/types.js +7 -12
  228. package/lib/number-keyboard/NumberKeyboard.js +9 -16
  229. package/lib/number-keyboard/NumberKeyboardKey.js +8 -13
  230. package/lib/number-keyboard/index.js +9 -16
  231. package/lib/overlay/Overlay.js +8 -13
  232. package/lib/overlay/index.js +9 -16
  233. package/lib/pagination/Pagination.js +8 -13
  234. package/lib/pagination/index.js +9 -16
  235. package/lib/password-input/PasswordInput.js +8 -13
  236. package/lib/password-input/index.js +9 -16
  237. package/lib/picker/Picker.js +9 -16
  238. package/lib/picker/PickerColumn.js +8 -13
  239. package/lib/picker/index.js +9 -16
  240. package/lib/picker/types.js +7 -12
  241. package/lib/popover/Popover.js +8 -13
  242. package/lib/popover/index.js +9 -16
  243. package/lib/popover/types.js +7 -12
  244. package/lib/popup/Popup.js +8 -13
  245. package/lib/popup/index.css +1 -1
  246. package/lib/popup/index.js +9 -16
  247. package/lib/popup/shared.js +8 -13
  248. package/lib/popup/types.js +7 -12
  249. package/lib/progress/Progress.js +8 -13
  250. package/lib/progress/index.js +9 -16
  251. package/lib/progress/types.js +7 -12
  252. package/lib/pull-refresh/PullRefresh.js +8 -13
  253. package/lib/pull-refresh/index.js +9 -16
  254. package/lib/radio/Radio.js +9 -16
  255. package/lib/radio/index.js +9 -16
  256. package/lib/radio-group/RadioGroup.js +8 -13
  257. package/lib/radio-group/index.js +9 -16
  258. package/lib/rate/Rate.js +39 -22
  259. package/lib/rate/index.js +9 -16
  260. package/lib/row/Row.js +8 -13
  261. package/lib/row/index.js +9 -16
  262. package/lib/search/Search.d.ts +3 -0
  263. package/lib/search/Search.js +8 -13
  264. package/lib/search/index.d.ts +2 -0
  265. package/lib/search/index.js +9 -16
  266. package/lib/search/types.js +7 -12
  267. package/lib/share-sheet/ShareSheet.js +33 -24
  268. package/lib/share-sheet/index.css +1 -1
  269. package/lib/share-sheet/index.js +9 -16
  270. package/lib/share-sheet/index.less +45 -1
  271. package/lib/sidebar/Sidebar.js +8 -13
  272. package/lib/sidebar/index.js +9 -16
  273. package/lib/sidebar-item/SidebarItem.js +8 -13
  274. package/lib/sidebar-item/index.js +9 -16
  275. package/lib/skeleton/Skeleton.js +8 -13
  276. package/lib/skeleton/index.js +9 -16
  277. package/lib/slider/Slider.js +8 -13
  278. package/lib/slider/index.css +1 -1
  279. package/lib/slider/index.js +9 -16
  280. package/lib/step/Step.js +8 -13
  281. package/lib/step/index.js +9 -16
  282. package/lib/stepper/Stepper.js +8 -13
  283. package/lib/stepper/index.js +9 -16
  284. package/lib/steps/Steps.js +8 -13
  285. package/lib/steps/index.js +9 -16
  286. package/lib/sticky/Sticky.js +8 -13
  287. package/lib/sticky/index.js +9 -16
  288. package/lib/style/animation.css +1 -1
  289. package/lib/style/base.css +1 -1
  290. package/lib/submit-bar/SubmitBar.js +8 -13
  291. package/lib/submit-bar/index.js +9 -16
  292. package/lib/swipe/Swipe.js +8 -13
  293. package/lib/swipe/index.js +9 -16
  294. package/lib/swipe/types.js +7 -12
  295. package/lib/swipe-cell/SwipeCell.js +8 -13
  296. package/lib/swipe-cell/index.css +1 -1
  297. package/lib/swipe-cell/index.js +9 -16
  298. package/lib/swipe-cell/types.js +7 -12
  299. package/lib/swipe-item/SwipeItem.js +8 -13
  300. package/lib/swipe-item/index.js +9 -16
  301. package/lib/switch/Switch.js +8 -13
  302. package/lib/switch/index.js +9 -16
  303. package/lib/tab/Tab.js +8 -13
  304. package/lib/tab/index.js +9 -16
  305. package/lib/tabbar/Tabbar.js +8 -13
  306. package/lib/tabbar/index.js +9 -16
  307. package/lib/tabbar-item/TabbarItem.js +8 -13
  308. package/lib/tabbar-item/index.js +9 -16
  309. package/lib/tabs/Tabs.js +9 -16
  310. package/lib/tabs/TabsContent.js +8 -13
  311. package/lib/tabs/TabsTitle.js +8 -13
  312. package/lib/tabs/index.js +9 -16
  313. package/lib/tabs/types.js +7 -12
  314. package/lib/tabs/utils.js +8 -13
  315. package/lib/tag/Tag.js +8 -13
  316. package/lib/tag/index.js +9 -16
  317. package/lib/toast/Toast.js +8 -13
  318. package/lib/toast/function-call.js +9 -16
  319. package/lib/toast/index.js +8 -13
  320. package/lib/toast/lock-click.js +8 -13
  321. package/lib/toast/types.js +7 -12
  322. package/lib/tree-select/TreeSelect.js +8 -13
  323. package/lib/tree-select/index.js +9 -16
  324. package/lib/uploader/Uploader.js +9 -16
  325. package/lib/uploader/UploaderPreviewItem.js +8 -13
  326. package/lib/uploader/index.js +9 -16
  327. package/lib/uploader/types.js +7 -12
  328. package/lib/uploader/utils.js +8 -13
  329. package/lib/utils/basic.js +8 -13
  330. package/lib/utils/constant.js +8 -13
  331. package/lib/utils/create.js +9 -16
  332. package/lib/utils/deep-assign.js +8 -13
  333. package/lib/utils/deep-clone.js +8 -13
  334. package/lib/utils/dom.js +8 -13
  335. package/lib/utils/format.js +8 -13
  336. package/lib/utils/index.js +17 -21
  337. package/lib/utils/interceptor.js +8 -13
  338. package/lib/utils/mount-component.js +8 -13
  339. package/lib/utils/props.js +8 -13
  340. package/lib/utils/validate.js +8 -13
  341. package/lib/utils/with-install.js +8 -13
  342. package/lib/vant.cjs.js +65 -22
  343. package/lib/vant.cjs.min.js +1 -1
  344. package/lib/vant.es.js +65 -22
  345. package/lib/vant.es.min.js +65 -22
  346. package/lib/vant.js +65 -22
  347. package/lib/vant.min.js +1 -1
  348. package/package.json +3 -3
  349. package/vetur/attributes.json +693 -760
  350. package/vetur/tags.json +216 -214
  351. package/vetur/web-types.json +3829 -2976
@@ -2,24 +2,19 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
6
5
  var __export = (target, all) => {
7
6
  for (var name in all)
8
7
  __defProp(target, name, { get: all[name], enumerable: true });
9
8
  };
10
- var __reExport = (target, module2, copyDefault, desc) => {
11
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
12
- for (let key of __getOwnPropNames(module2))
13
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
14
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
14
  }
16
- return target;
15
+ return to;
17
16
  };
18
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
19
- return (module2, temp) => {
20
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
21
- };
22
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
18
  var stdin_exports = {};
24
19
  __export(stdin_exports, {
25
20
  BORDER: () => BORDER,
@@ -32,6 +27,7 @@ __export(stdin_exports, {
32
27
  FORM_KEY: () => FORM_KEY,
33
28
  HAPTICS_FEEDBACK: () => HAPTICS_FEEDBACK
34
29
  });
30
+ module.exports = __toCommonJS(stdin_exports);
35
31
  const BORDER = "van-hairline";
36
32
  const BORDER_TOP = `${BORDER}--top`;
37
33
  const BORDER_LEFT = `${BORDER}--left`;
@@ -41,4 +37,3 @@ const BORDER_TOP_BOTTOM = `${BORDER}--top-bottom`;
41
37
  const BORDER_UNSET_TOP_BOTTOM = `${BORDER}-unset--top-bottom`;
42
38
  const HAPTICS_FEEDBACK = "van-haptics-feedback";
43
39
  const FORM_KEY = Symbol("van-form");
44
- module.exports = __toCommonJS(stdin_exports);
@@ -4,33 +4,27 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
7
  var __export = (target, all) => {
9
8
  for (var name in all)
10
9
  __defProp(target, name, { get: all[name], enumerable: true });
11
10
  };
12
- var __reExport = (target, module2, copyDefault, desc) => {
13
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
- for (let key of __getOwnPropNames(module2))
15
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
16
  }
18
- return target;
17
+ return to;
19
18
  };
20
- var __toESM = (module2, isNodeMode) => {
21
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
- };
23
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
- return (module2, temp) => {
25
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
- };
27
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
21
  var stdin_exports = {};
29
22
  __export(stdin_exports, {
30
23
  createBEM: () => createBEM,
31
24
  createNamespace: () => createNamespace,
32
25
  createTranslate: () => createTranslate
33
26
  });
27
+ module.exports = __toCommonJS(stdin_exports);
34
28
  var import_basic = require("./basic");
35
29
  var import_format = require("./format");
36
30
  var import_validate = require("./validate");
@@ -73,4 +67,3 @@ function createNamespace(name) {
73
67
  createTranslate(prefixedName)
74
68
  ];
75
69
  }
76
- module.exports = __toCommonJS(stdin_exports);
@@ -2,28 +2,24 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
6
5
  var __export = (target, all) => {
7
6
  for (var name in all)
8
7
  __defProp(target, name, { get: all[name], enumerable: true });
9
8
  };
10
- var __reExport = (target, module2, copyDefault, desc) => {
11
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
12
- for (let key of __getOwnPropNames(module2))
13
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
14
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
14
  }
16
- return target;
15
+ return to;
17
16
  };
18
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
19
- return (module2, temp) => {
20
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
21
- };
22
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
18
  var stdin_exports = {};
24
19
  __export(stdin_exports, {
25
20
  deepAssign: () => deepAssign
26
21
  });
22
+ module.exports = __toCommonJS(stdin_exports);
27
23
  var import_validate = require("./validate");
28
24
  const { hasOwnProperty } = Object.prototype;
29
25
  function assignKey(to, from, key) {
@@ -43,4 +39,3 @@ function deepAssign(to, from) {
43
39
  });
44
40
  return to;
45
41
  }
46
- module.exports = __toCommonJS(stdin_exports);
@@ -2,28 +2,24 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
6
5
  var __export = (target, all) => {
7
6
  for (var name in all)
8
7
  __defProp(target, name, { get: all[name], enumerable: true });
9
8
  };
10
- var __reExport = (target, module2, copyDefault, desc) => {
11
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
12
- for (let key of __getOwnPropNames(module2))
13
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
14
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
14
  }
16
- return target;
15
+ return to;
17
16
  };
18
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
19
- return (module2, temp) => {
20
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
21
- };
22
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
18
  var stdin_exports = {};
24
19
  __export(stdin_exports, {
25
20
  deepClone: () => deepClone
26
21
  });
22
+ module.exports = __toCommonJS(stdin_exports);
27
23
  var import_validate = require("./validate");
28
24
  function deepClone(obj) {
29
25
  if (!(0, import_validate.isDef)(obj)) {
@@ -41,4 +37,3 @@ function deepClone(obj) {
41
37
  }
42
38
  return obj;
43
39
  }
44
- module.exports = __toCommonJS(stdin_exports);
package/lib/utils/dom.js CHANGED
@@ -2,24 +2,19 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
6
5
  var __export = (target, all) => {
7
6
  for (var name in all)
8
7
  __defProp(target, name, { get: all[name], enumerable: true });
9
8
  };
10
- var __reExport = (target, module2, copyDefault, desc) => {
11
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
12
- for (let key of __getOwnPropNames(module2))
13
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
14
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
14
  }
16
- return target;
15
+ return to;
17
16
  };
18
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
19
- return (module2, temp) => {
20
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
21
- };
22
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
18
  var stdin_exports = {};
24
19
  __export(stdin_exports, {
25
20
  getElementTop: () => getElementTop,
@@ -34,6 +29,7 @@ __export(stdin_exports, {
34
29
  windowHeight: () => windowHeight,
35
30
  windowWidth: () => windowWidth
36
31
  });
32
+ module.exports = __toCommonJS(stdin_exports);
37
33
  var import_use = require("@vant/use");
38
34
  var import_vue = require("vue");
39
35
  var import_validate = require("./validate");
@@ -88,4 +84,3 @@ function isHidden(elementRef) {
88
84
  return hidden || parentHidden;
89
85
  }
90
86
  const { width: windowWidth, height: windowHeight } = (0, import_use.useWindowSize)();
91
- module.exports = __toCommonJS(stdin_exports);
@@ -2,24 +2,19 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
6
5
  var __export = (target, all) => {
7
6
  for (var name in all)
8
7
  __defProp(target, name, { get: all[name], enumerable: true });
9
8
  };
10
- var __reExport = (target, module2, copyDefault, desc) => {
11
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
12
- for (let key of __getOwnPropNames(module2))
13
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
14
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
14
  }
16
- return target;
15
+ return to;
17
16
  };
18
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
19
- return (module2, temp) => {
20
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
21
- };
22
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
18
  var stdin_exports = {};
24
19
  __export(stdin_exports, {
25
20
  addNumber: () => addNumber,
@@ -33,6 +28,7 @@ __export(stdin_exports, {
33
28
  padZero: () => padZero,
34
29
  unitToPx: () => unitToPx
35
30
  });
31
+ module.exports = __toCommonJS(stdin_exports);
36
32
  var import_basic = require("./basic");
37
33
  var import_dom = require("./dom");
38
34
  var import_validate = require("./validate");
@@ -141,4 +137,3 @@ function addNumber(num1, num2) {
141
137
  const cardinal = 10 ** 10;
142
138
  return Math.round((num1 + num2) * cardinal) / cardinal;
143
139
  }
144
- module.exports = __toCommonJS(stdin_exports);
@@ -2,28 +2,24 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
6
- var __reExport = (target, module2, copyDefault, desc) => {
7
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
8
- for (let key of __getOwnPropNames(module2))
9
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
10
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
10
  }
12
- return target;
11
+ return to;
13
12
  };
14
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
15
- return (module2, temp) => {
16
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
17
- };
18
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
13
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
15
  var stdin_exports = {};
20
- __reExport(stdin_exports, require("./basic"));
21
- __reExport(stdin_exports, require("./props"));
22
- __reExport(stdin_exports, require("./dom"));
23
- __reExport(stdin_exports, require("./create"));
24
- __reExport(stdin_exports, require("./format"));
25
- __reExport(stdin_exports, require("./constant"));
26
- __reExport(stdin_exports, require("./validate"));
27
- __reExport(stdin_exports, require("./interceptor"));
28
- __reExport(stdin_exports, require("./with-install"));
29
16
  module.exports = __toCommonJS(stdin_exports);
17
+ __reExport(stdin_exports, require("./basic"), module.exports);
18
+ __reExport(stdin_exports, require("./props"), module.exports);
19
+ __reExport(stdin_exports, require("./dom"), module.exports);
20
+ __reExport(stdin_exports, require("./create"), module.exports);
21
+ __reExport(stdin_exports, require("./format"), module.exports);
22
+ __reExport(stdin_exports, require("./constant"), module.exports);
23
+ __reExport(stdin_exports, require("./validate"), module.exports);
24
+ __reExport(stdin_exports, require("./interceptor"), module.exports);
25
+ __reExport(stdin_exports, require("./with-install"), module.exports);
@@ -2,28 +2,24 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
6
5
  var __export = (target, all) => {
7
6
  for (var name in all)
8
7
  __defProp(target, name, { get: all[name], enumerable: true });
9
8
  };
10
- var __reExport = (target, module2, copyDefault, desc) => {
11
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
12
- for (let key of __getOwnPropNames(module2))
13
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
14
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
14
  }
16
- return target;
15
+ return to;
17
16
  };
18
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
19
- return (module2, temp) => {
20
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
21
- };
22
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
18
  var stdin_exports = {};
24
19
  __export(stdin_exports, {
25
20
  callInterceptor: () => callInterceptor
26
21
  });
22
+ module.exports = __toCommonJS(stdin_exports);
27
23
  var import_basic = require("./basic");
28
24
  var import_validate = require("./validate");
29
25
  function callInterceptor(interceptor, {
@@ -50,4 +46,3 @@ function callInterceptor(interceptor, {
50
46
  done();
51
47
  }
52
48
  }
53
- module.exports = __toCommonJS(stdin_exports);
@@ -2,29 +2,25 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
6
5
  var __export = (target, all) => {
7
6
  for (var name in all)
8
7
  __defProp(target, name, { get: all[name], enumerable: true });
9
8
  };
10
- var __reExport = (target, module2, copyDefault, desc) => {
11
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
12
- for (let key of __getOwnPropNames(module2))
13
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
14
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
14
  }
16
- return target;
15
+ return to;
17
16
  };
18
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
19
- return (module2, temp) => {
20
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
21
- };
22
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
18
  var stdin_exports = {};
24
19
  __export(stdin_exports, {
25
20
  mountComponent: () => mountComponent,
26
21
  usePopupState: () => usePopupState
27
22
  });
23
+ module.exports = __toCommonJS(stdin_exports);
28
24
  var import_vue = require("vue");
29
25
  var import_utils = require("../utils");
30
26
  var import_use_expose = require("../composables/use-expose");
@@ -60,4 +56,3 @@ function mountComponent(RootComponent) {
60
56
  }
61
57
  };
62
58
  }
63
- module.exports = __toCommonJS(stdin_exports);
@@ -2,24 +2,19 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
6
5
  var __export = (target, all) => {
7
6
  for (var name in all)
8
7
  __defProp(target, name, { get: all[name], enumerable: true });
9
8
  };
10
- var __reExport = (target, module2, copyDefault, desc) => {
11
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
12
- for (let key of __getOwnPropNames(module2))
13
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
14
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
14
  }
16
- return target;
15
+ return to;
17
16
  };
18
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
19
- return (module2, temp) => {
20
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
21
- };
22
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
18
  var stdin_exports = {};
24
19
  __export(stdin_exports, {
25
20
  makeArrayProp: () => makeArrayProp,
@@ -31,6 +26,7 @@ __export(stdin_exports, {
31
26
  truthProp: () => truthProp,
32
27
  unknownProp: () => unknownProp
33
28
  });
29
+ module.exports = __toCommonJS(stdin_exports);
34
30
  const unknownProp = null;
35
31
  const numericProp = [Number, String];
36
32
  const truthProp = {
@@ -57,4 +53,3 @@ const makeStringProp = (defaultVal) => ({
57
53
  type: String,
58
54
  default: defaultVal
59
55
  });
60
- module.exports = __toCommonJS(stdin_exports);
@@ -2,24 +2,19 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
6
5
  var __export = (target, all) => {
7
6
  for (var name in all)
8
7
  __defProp(target, name, { get: all[name], enumerable: true });
9
8
  };
10
- var __reExport = (target, module2, copyDefault, desc) => {
11
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
12
- for (let key of __getOwnPropNames(module2))
13
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
14
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
14
  }
16
- return target;
15
+ return to;
17
16
  };
18
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
19
- return (module2, temp) => {
20
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
21
- };
22
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
18
  var stdin_exports = {};
24
19
  __export(stdin_exports, {
25
20
  isDate: () => isDate,
@@ -31,6 +26,7 @@ __export(stdin_exports, {
31
26
  isObject: () => isObject,
32
27
  isPromise: () => isPromise
33
28
  });
29
+ module.exports = __toCommonJS(stdin_exports);
34
30
  var import_basic = require("./basic");
35
31
  const isDef = (val) => val !== void 0 && val !== null;
36
32
  const isFunction = (val) => typeof val === "function";
@@ -43,4 +39,3 @@ function isMobile(value) {
43
39
  }
44
40
  const isNumeric = (val) => typeof val === "number" || /^\d+(\.\d+)?$/.test(val);
45
41
  const isIOS = () => import_basic.inBrowser ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : false;
46
- module.exports = __toCommonJS(stdin_exports);
@@ -2,28 +2,24 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
6
5
  var __export = (target, all) => {
7
6
  for (var name in all)
8
7
  __defProp(target, name, { get: all[name], enumerable: true });
9
8
  };
10
- var __reExport = (target, module2, copyDefault, desc) => {
11
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
12
- for (let key of __getOwnPropNames(module2))
13
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
14
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
14
  }
16
- return target;
15
+ return to;
17
16
  };
18
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
19
- return (module2, temp) => {
20
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
21
- };
22
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
18
  var stdin_exports = {};
24
19
  __export(stdin_exports, {
25
20
  withInstall: () => withInstall
26
21
  });
22
+ module.exports = __toCommonJS(stdin_exports);
27
23
  var import_format = require("./format");
28
24
  function withInstall(options) {
29
25
  options.install = (app) => {
@@ -33,4 +29,3 @@ function withInstall(options) {
33
29
  };
34
30
  return options;
35
31
  }
36
- module.exports = __toCommonJS(stdin_exports);