@tarojs/components 4.0.4 → 4.0.5-alpha.10

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 (510) hide show
  1. package/dist/cjs/{index-09efe07d.js → index-a7069008.js} +0 -5
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/taro-ad-core.cjs.entry.js +1 -1
  4. package/dist/cjs/taro-ad-custom-core.cjs.entry.js +1 -1
  5. package/dist/cjs/taro-animation-video-core.cjs.entry.js +1 -1
  6. package/dist/cjs/taro-animation-view-core.cjs.entry.js +1 -1
  7. package/dist/cjs/taro-ar-camera-core.cjs.entry.js +1 -1
  8. package/dist/cjs/taro-audio-core.cjs.entry.js +1 -1
  9. package/dist/cjs/taro-aweme-data-core.cjs.entry.js +1 -1
  10. package/dist/cjs/taro-block-core.cjs.entry.js +1 -1
  11. package/dist/cjs/taro-button-core.cjs.entry.js +1 -1
  12. package/dist/cjs/taro-camera-core.cjs.entry.js +1 -1
  13. package/dist/cjs/taro-canvas-core.cjs.entry.js +1 -1
  14. package/dist/cjs/taro-channel-live-core.cjs.entry.js +1 -1
  15. package/dist/cjs/taro-channel-video-core.cjs.entry.js +1 -1
  16. package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +1 -1
  17. package/dist/cjs/taro-comment-detail-core.cjs.entry.js +1 -1
  18. package/dist/cjs/taro-comment-list-core.cjs.entry.js +1 -1
  19. package/dist/cjs/taro-components.cjs.js +2 -2
  20. package/dist/cjs/taro-contact-button-core.cjs.entry.js +1 -1
  21. package/dist/cjs/taro-cover-image-core.cjs.entry.js +1 -1
  22. package/dist/cjs/taro-cover-view-core.cjs.entry.js +1 -1
  23. package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +1 -1
  24. package/dist/cjs/taro-draggable-sheet-core.cjs.entry.js +1 -1
  25. package/dist/cjs/taro-editor-core.cjs.entry.js +1 -1
  26. package/dist/cjs/taro-follow-swan-core.cjs.entry.js +1 -1
  27. package/dist/cjs/taro-form-core.cjs.entry.js +1 -1
  28. package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +1 -1
  29. package/dist/cjs/taro-grid-builder-core.cjs.entry.js +1 -1
  30. package/dist/cjs/taro-grid-view-core.cjs.entry.js +1 -1
  31. package/dist/cjs/taro-icon-core.cjs.entry.js +1 -1
  32. package/dist/cjs/taro-image-core.cjs.entry.js +1 -1
  33. package/dist/cjs/taro-inline-payment-panel-core.cjs.entry.js +1 -1
  34. package/dist/cjs/taro-input-core.cjs.entry.js +1 -1
  35. package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +1 -1
  36. package/dist/cjs/taro-label-core.cjs.entry.js +1 -1
  37. package/dist/cjs/taro-lifestyle-core.cjs.entry.js +1 -1
  38. package/dist/cjs/taro-like-core.cjs.entry.js +1 -1
  39. package/dist/cjs/taro-list-builder-core.cjs.entry.js +1 -1
  40. package/dist/cjs/taro-list-view-core.cjs.entry.js +1 -1
  41. package/dist/cjs/taro-live-player-core.cjs.entry.js +1 -1
  42. package/dist/cjs/taro-live-pusher-core.cjs.entry.js +1 -1
  43. package/dist/cjs/taro-login-core.cjs.entry.js +1 -1
  44. package/dist/cjs/taro-lottie-core.cjs.entry.js +1 -1
  45. package/dist/cjs/taro-map-core.cjs.entry.js +1 -1
  46. package/dist/cjs/taro-match-media-core.cjs.entry.js +1 -1
  47. package/dist/cjs/taro-movable-area-core_2.cjs.entry.js +1 -1
  48. package/dist/cjs/taro-native-slot-core.cjs.entry.js +1 -1
  49. package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +1 -1
  50. package/dist/cjs/taro-navigator-core.cjs.entry.js +1 -1
  51. package/dist/cjs/taro-nested-scroll-body-core.cjs.entry.js +1 -1
  52. package/dist/cjs/taro-nested-scroll-header-core.cjs.entry.js +1 -1
  53. package/dist/cjs/taro-official-account-core.cjs.entry.js +1 -1
  54. package/dist/cjs/taro-open-container-core.cjs.entry.js +1 -1
  55. package/dist/cjs/taro-open-data-core.cjs.entry.js +1 -1
  56. package/dist/cjs/taro-page-container-core.cjs.entry.js +1 -1
  57. package/dist/cjs/taro-page-meta-core.cjs.entry.js +1 -1
  58. package/dist/cjs/taro-picker-core_2.cjs.entry.js +1 -1
  59. package/dist/cjs/taro-picker-view-column-core_2.cjs.entry.js +1 -1
  60. package/dist/cjs/taro-progress-core.cjs.entry.js +1 -1
  61. package/dist/cjs/taro-pull-to-refresh-core.cjs.entry.js +1 -1
  62. package/dist/cjs/taro-radio-core_2.cjs.entry.js +1 -1
  63. package/dist/cjs/taro-rich-text-core.cjs.entry.js +1 -1
  64. package/dist/cjs/taro-root-portal-core.cjs.entry.js +1 -1
  65. package/dist/cjs/taro-rtc-room-core.cjs.entry.js +1 -1
  66. package/dist/cjs/taro-rtc-room-item-core.cjs.entry.js +1 -1
  67. package/dist/cjs/taro-scroll-view-core.cjs.entry.js +1 -1
  68. package/dist/cjs/taro-share-element-core.cjs.entry.js +1 -1
  69. package/dist/cjs/taro-slider-core.cjs.entry.js +1 -1
  70. package/dist/cjs/taro-slot-core.cjs.entry.js +1 -1
  71. package/dist/cjs/taro-snapshot-core.cjs.entry.js +1 -1
  72. package/dist/cjs/taro-span-core.cjs.entry.js +1 -1
  73. package/dist/cjs/taro-sticky-header-core.cjs.entry.js +1 -1
  74. package/dist/cjs/taro-sticky-section-core.cjs.entry.js +1 -1
  75. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +231 -224
  76. package/dist/cjs/taro-switch-core.cjs.entry.js +1 -1
  77. package/dist/cjs/taro-tab-item-core.cjs.entry.js +1 -1
  78. package/dist/cjs/taro-tabbar.cjs.entry.js +1 -1
  79. package/dist/cjs/taro-tabs-core.cjs.entry.js +1 -1
  80. package/dist/cjs/taro-text-core.cjs.entry.js +1 -1
  81. package/dist/cjs/taro-textarea-core.cjs.entry.js +1 -1
  82. package/dist/cjs/taro-video-control_3.cjs.entry.js +1 -1
  83. package/dist/cjs/taro-view-core.cjs.entry.js +1 -1
  84. package/dist/cjs/taro-voip-room-core.cjs.entry.js +1 -1
  85. package/dist/cjs/taro-web-view-core.cjs.entry.js +1 -1
  86. package/dist/collection/components/swiper/style/index.css +4 -16
  87. package/dist/collection/components/swiper/swiper-item.js +7 -60
  88. package/dist/collection/components/swiper/swiper.js +242 -183
  89. package/dist/components/taro-swiper-core.js +224 -184
  90. package/dist/components/taro-swiper-item-core.js +9 -45
  91. package/dist/esm/{index-9924aee9.js → index-5e431bb8.js} +0 -5
  92. package/dist/esm/loader.js +3 -3
  93. package/dist/esm/taro-ad-core.entry.js +1 -1
  94. package/dist/esm/taro-ad-custom-core.entry.js +1 -1
  95. package/dist/esm/taro-animation-video-core.entry.js +1 -1
  96. package/dist/esm/taro-animation-view-core.entry.js +1 -1
  97. package/dist/esm/taro-ar-camera-core.entry.js +1 -1
  98. package/dist/esm/taro-audio-core.entry.js +1 -1
  99. package/dist/esm/taro-aweme-data-core.entry.js +1 -1
  100. package/dist/esm/taro-block-core.entry.js +1 -1
  101. package/dist/esm/taro-button-core.entry.js +1 -1
  102. package/dist/esm/taro-camera-core.entry.js +1 -1
  103. package/dist/esm/taro-canvas-core.entry.js +1 -1
  104. package/dist/esm/taro-channel-live-core.entry.js +1 -1
  105. package/dist/esm/taro-channel-video-core.entry.js +1 -1
  106. package/dist/esm/taro-checkbox-core_2.entry.js +1 -1
  107. package/dist/esm/taro-comment-detail-core.entry.js +1 -1
  108. package/dist/esm/taro-comment-list-core.entry.js +1 -1
  109. package/dist/esm/taro-components.js +3 -3
  110. package/dist/esm/taro-contact-button-core.entry.js +1 -1
  111. package/dist/esm/taro-cover-image-core.entry.js +1 -1
  112. package/dist/esm/taro-cover-view-core.entry.js +1 -1
  113. package/dist/esm/taro-custom-wrapper-core.entry.js +1 -1
  114. package/dist/esm/taro-draggable-sheet-core.entry.js +1 -1
  115. package/dist/esm/taro-editor-core.entry.js +1 -1
  116. package/dist/esm/taro-follow-swan-core.entry.js +1 -1
  117. package/dist/esm/taro-form-core.entry.js +1 -1
  118. package/dist/esm/taro-functional-page-navigator-core.entry.js +1 -1
  119. package/dist/esm/taro-grid-builder-core.entry.js +1 -1
  120. package/dist/esm/taro-grid-view-core.entry.js +1 -1
  121. package/dist/esm/taro-icon-core.entry.js +1 -1
  122. package/dist/esm/taro-image-core.entry.js +1 -1
  123. package/dist/esm/taro-inline-payment-panel-core.entry.js +1 -1
  124. package/dist/esm/taro-input-core.entry.js +1 -1
  125. package/dist/esm/taro-keyboard-accessory-core.entry.js +1 -1
  126. package/dist/esm/taro-label-core.entry.js +1 -1
  127. package/dist/esm/taro-lifestyle-core.entry.js +1 -1
  128. package/dist/esm/taro-like-core.entry.js +1 -1
  129. package/dist/esm/taro-list-builder-core.entry.js +1 -1
  130. package/dist/esm/taro-list-view-core.entry.js +1 -1
  131. package/dist/esm/taro-live-player-core.entry.js +1 -1
  132. package/dist/esm/taro-live-pusher-core.entry.js +1 -1
  133. package/dist/esm/taro-login-core.entry.js +1 -1
  134. package/dist/esm/taro-lottie-core.entry.js +1 -1
  135. package/dist/esm/taro-map-core.entry.js +1 -1
  136. package/dist/esm/taro-match-media-core.entry.js +1 -1
  137. package/dist/esm/taro-movable-area-core_2.entry.js +1 -1
  138. package/dist/esm/taro-native-slot-core.entry.js +1 -1
  139. package/dist/esm/taro-navigation-bar-core.entry.js +1 -1
  140. package/dist/esm/taro-navigator-core.entry.js +1 -1
  141. package/dist/esm/taro-nested-scroll-body-core.entry.js +1 -1
  142. package/dist/esm/taro-nested-scroll-header-core.entry.js +1 -1
  143. package/dist/esm/taro-official-account-core.entry.js +1 -1
  144. package/dist/esm/taro-open-container-core.entry.js +1 -1
  145. package/dist/esm/taro-open-data-core.entry.js +1 -1
  146. package/dist/esm/taro-page-container-core.entry.js +1 -1
  147. package/dist/esm/taro-page-meta-core.entry.js +1 -1
  148. package/dist/esm/taro-picker-core_2.entry.js +1 -1
  149. package/dist/esm/taro-picker-view-column-core_2.entry.js +1 -1
  150. package/dist/esm/taro-progress-core.entry.js +1 -1
  151. package/dist/esm/taro-pull-to-refresh-core.entry.js +1 -1
  152. package/dist/esm/taro-radio-core_2.entry.js +1 -1
  153. package/dist/esm/taro-rich-text-core.entry.js +1 -1
  154. package/dist/esm/taro-root-portal-core.entry.js +1 -1
  155. package/dist/esm/taro-rtc-room-core.entry.js +1 -1
  156. package/dist/esm/taro-rtc-room-item-core.entry.js +1 -1
  157. package/dist/esm/taro-scroll-view-core.entry.js +1 -1
  158. package/dist/esm/taro-share-element-core.entry.js +1 -1
  159. package/dist/esm/taro-slider-core.entry.js +1 -1
  160. package/dist/esm/taro-slot-core.entry.js +1 -1
  161. package/dist/esm/taro-snapshot-core.entry.js +1 -1
  162. package/dist/esm/taro-span-core.entry.js +1 -1
  163. package/dist/esm/taro-sticky-header-core.entry.js +1 -1
  164. package/dist/esm/taro-sticky-section-core.entry.js +1 -1
  165. package/dist/esm/taro-swiper-core_2.entry.js +231 -224
  166. package/dist/esm/taro-switch-core.entry.js +1 -1
  167. package/dist/esm/taro-tab-item-core.entry.js +1 -1
  168. package/dist/esm/taro-tabbar.entry.js +1 -1
  169. package/dist/esm/taro-tabs-core.entry.js +1 -1
  170. package/dist/esm/taro-text-core.entry.js +1 -1
  171. package/dist/esm/taro-textarea-core.entry.js +1 -1
  172. package/dist/esm/taro-video-control_3.entry.js +1 -1
  173. package/dist/esm/taro-view-core.entry.js +1 -1
  174. package/dist/esm/taro-voip-room-core.entry.js +1 -1
  175. package/dist/esm/taro-web-view-core.entry.js +1 -1
  176. package/dist/esm-es5/{index-9924aee9.js → index-5e431bb8.js} +1 -1
  177. package/dist/esm-es5/loader.js +1 -1
  178. package/dist/esm-es5/taro-ad-core.entry.js +1 -1
  179. package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -1
  180. package/dist/esm-es5/taro-animation-video-core.entry.js +1 -1
  181. package/dist/esm-es5/taro-animation-view-core.entry.js +1 -1
  182. package/dist/esm-es5/taro-ar-camera-core.entry.js +1 -1
  183. package/dist/esm-es5/taro-audio-core.entry.js +1 -1
  184. package/dist/esm-es5/taro-aweme-data-core.entry.js +1 -1
  185. package/dist/esm-es5/taro-block-core.entry.js +1 -1
  186. package/dist/esm-es5/taro-button-core.entry.js +1 -1
  187. package/dist/esm-es5/taro-camera-core.entry.js +1 -1
  188. package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
  189. package/dist/esm-es5/taro-channel-live-core.entry.js +1 -1
  190. package/dist/esm-es5/taro-channel-video-core.entry.js +1 -1
  191. package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
  192. package/dist/esm-es5/taro-comment-detail-core.entry.js +1 -1
  193. package/dist/esm-es5/taro-comment-list-core.entry.js +1 -1
  194. package/dist/esm-es5/taro-components.js +1 -1
  195. package/dist/esm-es5/taro-contact-button-core.entry.js +1 -1
  196. package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
  197. package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
  198. package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
  199. package/dist/esm-es5/taro-draggable-sheet-core.entry.js +1 -1
  200. package/dist/esm-es5/taro-editor-core.entry.js +1 -1
  201. package/dist/esm-es5/taro-follow-swan-core.entry.js +1 -1
  202. package/dist/esm-es5/taro-form-core.entry.js +1 -1
  203. package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -1
  204. package/dist/esm-es5/taro-grid-builder-core.entry.js +1 -1
  205. package/dist/esm-es5/taro-grid-view-core.entry.js +1 -1
  206. package/dist/esm-es5/taro-icon-core.entry.js +1 -1
  207. package/dist/esm-es5/taro-image-core.entry.js +1 -1
  208. package/dist/esm-es5/taro-inline-payment-panel-core.entry.js +1 -1
  209. package/dist/esm-es5/taro-input-core.entry.js +1 -1
  210. package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -1
  211. package/dist/esm-es5/taro-label-core.entry.js +1 -1
  212. package/dist/esm-es5/taro-lifestyle-core.entry.js +1 -1
  213. package/dist/esm-es5/taro-like-core.entry.js +1 -1
  214. package/dist/esm-es5/taro-list-builder-core.entry.js +1 -1
  215. package/dist/esm-es5/taro-list-view-core.entry.js +1 -1
  216. package/dist/esm-es5/taro-live-player-core.entry.js +1 -1
  217. package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -1
  218. package/dist/esm-es5/taro-login-core.entry.js +1 -1
  219. package/dist/esm-es5/taro-lottie-core.entry.js +1 -1
  220. package/dist/esm-es5/taro-map-core.entry.js +1 -1
  221. package/dist/esm-es5/taro-match-media-core.entry.js +1 -1
  222. package/dist/esm-es5/taro-movable-area-core_2.entry.js +1 -1
  223. package/dist/esm-es5/taro-native-slot-core.entry.js +1 -1
  224. package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -1
  225. package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
  226. package/dist/esm-es5/taro-nested-scroll-body-core.entry.js +1 -1
  227. package/dist/esm-es5/taro-nested-scroll-header-core.entry.js +1 -1
  228. package/dist/esm-es5/taro-official-account-core.entry.js +1 -1
  229. package/dist/esm-es5/taro-open-container-core.entry.js +1 -1
  230. package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
  231. package/dist/esm-es5/taro-page-container-core.entry.js +1 -1
  232. package/dist/esm-es5/taro-page-meta-core.entry.js +1 -1
  233. package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
  234. package/dist/esm-es5/taro-picker-view-column-core_2.entry.js +1 -1
  235. package/dist/esm-es5/taro-progress-core.entry.js +1 -1
  236. package/dist/esm-es5/taro-pull-to-refresh-core.entry.js +1 -1
  237. package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
  238. package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
  239. package/dist/esm-es5/taro-root-portal-core.entry.js +1 -1
  240. package/dist/esm-es5/taro-rtc-room-core.entry.js +1 -1
  241. package/dist/esm-es5/taro-rtc-room-item-core.entry.js +1 -1
  242. package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
  243. package/dist/esm-es5/taro-share-element-core.entry.js +1 -1
  244. package/dist/esm-es5/taro-slider-core.entry.js +1 -1
  245. package/dist/esm-es5/taro-slot-core.entry.js +1 -1
  246. package/dist/esm-es5/taro-snapshot-core.entry.js +1 -1
  247. package/dist/esm-es5/taro-span-core.entry.js +1 -1
  248. package/dist/esm-es5/taro-sticky-header-core.entry.js +1 -1
  249. package/dist/esm-es5/taro-sticky-section-core.entry.js +1 -1
  250. package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
  251. package/dist/esm-es5/taro-switch-core.entry.js +1 -1
  252. package/dist/esm-es5/taro-tab-item-core.entry.js +1 -1
  253. package/dist/esm-es5/taro-tabbar.entry.js +1 -1
  254. package/dist/esm-es5/taro-tabs-core.entry.js +1 -1
  255. package/dist/esm-es5/taro-text-core.entry.js +1 -1
  256. package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
  257. package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
  258. package/dist/esm-es5/taro-view-core.entry.js +1 -1
  259. package/dist/esm-es5/taro-voip-room-core.entry.js +1 -1
  260. package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
  261. package/dist/hydrate/index.js +234 -231
  262. package/dist/taro-components/{p-ac2be5f3.entry.js → p-010113d5.entry.js} +1 -1
  263. package/dist/taro-components/p-0711615a.entry.js +1 -0
  264. package/dist/taro-components/{p-65d11e99.system.entry.js → p-08f31efb.system.entry.js} +1 -1
  265. package/dist/taro-components/{p-17b9f865.system.entry.js → p-0b9fa602.system.entry.js} +1 -1
  266. package/dist/taro-components/{p-71c89856.system.entry.js → p-0c3bf536.system.entry.js} +1 -1
  267. package/dist/taro-components/{p-6664a2ca.system.entry.js → p-0cbc06a0.system.entry.js} +1 -1
  268. package/dist/taro-components/p-0d965cb0.entry.js +1 -0
  269. package/dist/taro-components/{p-0fc790c0.system.entry.js → p-0e77f1af.system.entry.js} +1 -1
  270. package/dist/taro-components/{p-b4577a12.system.entry.js → p-0e8c1988.system.entry.js} +1 -1
  271. package/dist/taro-components/p-101c15ac.entry.js +1 -0
  272. package/dist/taro-components/{p-d5603857.entry.js → p-1331d6e6.entry.js} +1 -1
  273. package/dist/taro-components/{p-e1cce2f1.entry.js → p-13773464.entry.js} +1 -1
  274. package/dist/taro-components/{p-79cad66b.entry.js → p-13f9d171.entry.js} +1 -1
  275. package/dist/taro-components/{p-91ee1f8a.system.entry.js → p-14e9f2fd.system.entry.js} +1 -1
  276. package/dist/taro-components/p-1565cc2e.system.entry.js +1 -0
  277. package/dist/taro-components/{p-18c039ef.entry.js → p-177ab579.entry.js} +1 -1
  278. package/dist/taro-components/p-1bb89572.entry.js +1 -0
  279. package/dist/taro-components/{p-c7d8c076.system.entry.js → p-200ba6f2.system.entry.js} +1 -1
  280. package/dist/taro-components/p-2053531e.system.entry.js +1 -0
  281. package/dist/taro-components/{p-75ded8a0.system.entry.js → p-2210c50a.system.entry.js} +1 -1
  282. package/dist/taro-components/p-22140f38.entry.js +1 -0
  283. package/dist/taro-components/{p-dedf50a9.entry.js → p-2338fbc5.entry.js} +1 -1
  284. package/dist/taro-components/p-24a12aac.system.entry.js +1 -0
  285. package/dist/taro-components/p-26792379.entry.js +1 -0
  286. package/dist/taro-components/{p-5f23dc41.system.entry.js → p-274753ad.system.entry.js} +1 -1
  287. package/dist/taro-components/{p-3cf08137.entry.js → p-2ad41ae2.entry.js} +1 -1
  288. package/dist/taro-components/{p-dc25fa81.entry.js → p-2b0158fc.entry.js} +1 -1
  289. package/dist/taro-components/{p-9e359fff.system.entry.js → p-2d2c8354.system.entry.js} +1 -1
  290. package/dist/taro-components/{p-12582166.entry.js → p-310f27ae.entry.js} +1 -1
  291. package/dist/taro-components/p-31f20299.entry.js +1 -0
  292. package/dist/taro-components/{p-7ca2d075.system.entry.js → p-336b5b6c.system.entry.js} +1 -1
  293. package/dist/taro-components/{p-02465454.system.entry.js → p-34aee4d3.system.entry.js} +1 -1
  294. package/dist/taro-components/{p-ac9fb309.system.entry.js → p-34b51434.system.entry.js} +1 -1
  295. package/dist/taro-components/p-3779a716.entry.js +1 -0
  296. package/dist/taro-components/{p-02d4d104.entry.js → p-39dd80dd.entry.js} +1 -1
  297. package/dist/taro-components/p-3d163624.entry.js +1 -0
  298. package/dist/taro-components/{p-1eea2828.entry.js → p-3dc40ce0.entry.js} +1 -1
  299. package/dist/taro-components/{p-e3d825d1.system.entry.js → p-3ee0dda1.system.entry.js} +1 -1
  300. package/dist/taro-components/{p-d73b3a94.system.entry.js → p-4446fe5f.system.entry.js} +1 -1
  301. package/dist/taro-components/p-45ce1c8b.system.entry.js +1 -0
  302. package/dist/taro-components/{p-c677414d.system.entry.js → p-48395cab.system.entry.js} +1 -1
  303. package/dist/taro-components/{p-03dc0283.entry.js → p-48887552.entry.js} +1 -1
  304. package/dist/taro-components/p-493e2c9a.entry.js +1 -0
  305. package/dist/taro-components/{p-57911e2c.system.entry.js → p-498d940e.system.entry.js} +1 -1
  306. package/dist/taro-components/{p-7e054ae7.system.entry.js → p-49bd1791.system.entry.js} +1 -1
  307. package/dist/taro-components/{p-53e62840.system.entry.js → p-4dddb4a4.system.entry.js} +1 -1
  308. package/dist/taro-components/{p-07ae6678.system.entry.js → p-4f62b74a.system.entry.js} +1 -1
  309. package/dist/taro-components/p-5584c307.entry.js +1 -0
  310. package/dist/taro-components/p-578c9258.entry.js +1 -0
  311. package/dist/taro-components/{p-ba5e7ec4.system.entry.js → p-58a44067.system.entry.js} +1 -1
  312. package/dist/taro-components/{p-9f53e26c.system.entry.js → p-5c3d432f.system.entry.js} +1 -1
  313. package/dist/taro-components/{p-ebad862a.system.entry.js → p-60869da5.system.entry.js} +1 -1
  314. package/dist/taro-components/p-60c76b97.entry.js +1 -0
  315. package/dist/taro-components/p-62fcda43.entry.js +1 -0
  316. package/dist/taro-components/{p-9b6b17c4.system.entry.js → p-636c9e22.system.entry.js} +1 -1
  317. package/dist/taro-components/p-646b6bb1.entry.js +1 -0
  318. package/dist/taro-components/{p-f5f3a111.entry.js → p-6a54dc69.entry.js} +1 -1
  319. package/dist/taro-components/p-6c314305.entry.js +1 -0
  320. package/dist/taro-components/{p-d05eb105.system.entry.js → p-6ef0579d.system.entry.js} +1 -1
  321. package/dist/taro-components/{p-4ac48df1.system.entry.js → p-6f25b319.system.entry.js} +1 -1
  322. package/dist/taro-components/{p-55e12654.entry.js → p-6f43d1a1.entry.js} +1 -1
  323. package/dist/taro-components/{p-f168fffc.entry.js → p-70283efb.entry.js} +1 -1
  324. package/dist/taro-components/{p-f43f26cf.entry.js → p-71167112.entry.js} +1 -1
  325. package/dist/taro-components/{p-938f9036.system.entry.js → p-720c96ae.system.entry.js} +1 -1
  326. package/dist/taro-components/p-725381f1.entry.js +1 -0
  327. package/dist/taro-components/{p-dcf5747c.system.entry.js → p-731de0f1.system.entry.js} +1 -1
  328. package/dist/taro-components/{p-3bfe9260.entry.js → p-757c9533.entry.js} +1 -1
  329. package/dist/taro-components/p-7625b781.system.entry.js +1 -0
  330. package/dist/taro-components/{p-4a8b4d58.system.entry.js → p-7677dcb3.system.entry.js} +1 -1
  331. package/dist/taro-components/p-76eedcd8.system.entry.js +1 -0
  332. package/dist/taro-components/{p-204996e7.entry.js → p-77dee229.entry.js} +1 -1
  333. package/dist/taro-components/p-7a860d44.system.entry.js +1 -0
  334. package/dist/taro-components/p-7ba8fbd4.entry.js +1 -0
  335. package/dist/taro-components/{p-b1f80b6b.entry.js → p-7c78d193.entry.js} +1 -1
  336. package/dist/taro-components/p-7d115ac1.entry.js +1 -0
  337. package/dist/taro-components/p-7d469e2e.entry.js +1 -0
  338. package/dist/taro-components/{p-f9935901.system.entry.js → p-7e486065.system.entry.js} +1 -1
  339. package/dist/taro-components/{p-6654374e.system.entry.js → p-7f067654.system.entry.js} +1 -1
  340. package/dist/taro-components/{p-5c98f478.entry.js → p-81f8a153.entry.js} +1 -1
  341. package/dist/taro-components/p-86b09ede.system.entry.js +1 -0
  342. package/dist/taro-components/p-88bcad64.entry.js +1 -0
  343. package/dist/taro-components/{p-75d01c60.system.js → p-88de70df.system.js} +2 -2
  344. package/dist/taro-components/p-88ded2fb.entry.js +1 -0
  345. package/dist/taro-components/p-8f7c9757.system.entry.js +1 -0
  346. package/dist/taro-components/{p-1bd4da3b.system.entry.js → p-920663c3.system.entry.js} +1 -1
  347. package/dist/taro-components/p-920e9e08.system.entry.js +1 -0
  348. package/dist/taro-components/p-92d5f74a.entry.js +1 -0
  349. package/dist/taro-components/p-932b1e72.entry.js +1 -0
  350. package/dist/taro-components/p-93329865.system.entry.js +1 -0
  351. package/dist/taro-components/p-96d58e6b.entry.js +1 -0
  352. package/dist/taro-components/{p-bd57edcd.entry.js → p-9b1be768.entry.js} +1 -1
  353. package/dist/taro-components/{p-6cc0bcb9.entry.js → p-9cf98daf.entry.js} +1 -1
  354. package/dist/taro-components/p-9d2e99b5.entry.js +1 -0
  355. package/dist/taro-components/{p-6b83388c.system.entry.js → p-9d815ff0.system.entry.js} +1 -1
  356. package/dist/taro-components/p-a1368421.entry.js +1 -0
  357. package/dist/taro-components/p-a1e9e6e9.entry.js +1 -0
  358. package/dist/taro-components/{p-d2203687.system.entry.js → p-a263b21b.system.entry.js} +1 -1
  359. package/dist/taro-components/{p-d9884371.entry.js → p-a33c6ab4.entry.js} +1 -1
  360. package/dist/taro-components/{p-2649c7ae.entry.js → p-a34fb684.entry.js} +1 -1
  361. package/dist/taro-components/{p-27041d86.system.entry.js → p-a3948a42.system.entry.js} +1 -1
  362. package/dist/taro-components/p-a39bfe0d.system.entry.js +1 -0
  363. package/dist/taro-components/p-a51c3fc6.entry.js +1 -0
  364. package/dist/taro-components/{p-ab0e0366.system.entry.js → p-a57123fa.system.entry.js} +1 -1
  365. package/dist/taro-components/{p-97b09fb4.system.entry.js → p-a6258172.system.entry.js} +1 -1
  366. package/dist/taro-components/p-a89cb7e0.entry.js +1 -0
  367. package/dist/taro-components/{p-ba11ef7d.entry.js → p-a8a443a5.entry.js} +1 -1
  368. package/dist/taro-components/{p-ded98693.system.entry.js → p-ac808059.system.entry.js} +1 -1
  369. package/dist/taro-components/{p-d87a68f6.entry.js → p-b03b164f.entry.js} +1 -1
  370. package/dist/taro-components/p-b139e0bb.entry.js +1 -0
  371. package/dist/taro-components/{p-56a82bf3.entry.js → p-b197f269.entry.js} +1 -1
  372. package/dist/taro-components/p-b1e74461.entry.js +1 -0
  373. package/dist/taro-components/{p-a9ca8247.system.entry.js → p-b4d3d0bf.system.entry.js} +1 -1
  374. package/dist/taro-components/p-b4e5684a.entry.js +1 -0
  375. package/dist/taro-components/{p-e681d764.entry.js → p-b8916511.entry.js} +1 -1
  376. package/dist/taro-components/p-b8b1e967.entry.js +1 -0
  377. package/dist/taro-components/p-b923d242.entry.js +1 -0
  378. package/dist/taro-components/p-b9e52b27.system.entry.js +1 -0
  379. package/dist/taro-components/{p-df7c6216.system.entry.js → p-baba6d35.system.entry.js} +1 -1
  380. package/dist/taro-components/{p-46a66c43.entry.js → p-bc4dbbfb.entry.js} +1 -1
  381. package/dist/taro-components/{p-8836f70b.entry.js → p-bd7d7771.entry.js} +1 -1
  382. package/dist/taro-components/{p-3b36196b.system.entry.js → p-c089b757.system.entry.js} +1 -1
  383. package/dist/taro-components/{p-078cb65e.entry.js → p-c0c4d551.entry.js} +1 -1
  384. package/dist/taro-components/p-c2df3326.system.entry.js +1 -0
  385. package/dist/taro-components/p-c575464d.entry.js +1 -0
  386. package/dist/taro-components/p-c6258ca4.system.entry.js +1 -0
  387. package/dist/taro-components/{p-ca6a5916.system.entry.js → p-c6bf856c.system.entry.js} +1 -1
  388. package/dist/taro-components/{p-1c37143a.system.entry.js → p-c7d84f5f.system.entry.js} +1 -1
  389. package/dist/taro-components/{p-443e31ab.system.entry.js → p-c984e3bd.system.entry.js} +1 -1
  390. package/dist/taro-components/{p-fa31b2de.system.entry.js → p-cb55d5a3.system.entry.js} +1 -1
  391. package/dist/taro-components/p-cc02c5b6.system.entry.js +1 -0
  392. package/dist/taro-components/p-ce63e336.system.entry.js +1 -0
  393. package/dist/taro-components/p-d04b19f1.system.entry.js +1 -0
  394. package/dist/taro-components/p-d0cabaaa.js +2 -0
  395. package/dist/taro-components/p-d2023e97.entry.js +1 -0
  396. package/dist/taro-components/{p-fbf13159.system.entry.js → p-d2b08d6c.system.entry.js} +1 -1
  397. package/dist/taro-components/p-d3573732.system.entry.js +1 -0
  398. package/dist/taro-components/{p-e853a2c8.system.entry.js → p-d482a085.system.entry.js} +1 -1
  399. package/dist/taro-components/{p-ddf75d6a.system.entry.js → p-d6bd3fa0.system.entry.js} +1 -1
  400. package/dist/taro-components/{p-4979e93c.system.entry.js → p-d952367b.system.entry.js} +1 -1
  401. package/dist/taro-components/p-d9b9319b.system.js +1 -0
  402. package/dist/taro-components/p-da00c309.entry.js +1 -0
  403. package/dist/taro-components/p-da3ae8b9.entry.js +1 -0
  404. package/dist/taro-components/p-da5ac143.system.entry.js +1 -0
  405. package/dist/taro-components/p-db885f6a.entry.js +1 -0
  406. package/dist/taro-components/{p-b087ad2a.system.entry.js → p-deaafb30.system.entry.js} +1 -1
  407. package/dist/taro-components/{p-5b9aa4b0.system.entry.js → p-df082aca.system.entry.js} +1 -1
  408. package/dist/taro-components/p-e30dbf52.entry.js +1 -0
  409. package/dist/taro-components/p-e4b971a9.entry.js +1 -0
  410. package/dist/taro-components/{p-cae6c5d0.system.entry.js → p-e5f31143.system.entry.js} +1 -1
  411. package/dist/taro-components/p-e6a85481.entry.js +1 -0
  412. package/dist/taro-components/p-ea2ea074.entry.js +1 -0
  413. package/dist/taro-components/p-ea867ded.entry.js +1 -0
  414. package/dist/taro-components/{p-fe5eefdc.system.entry.js → p-eb385fbc.system.entry.js} +1 -1
  415. package/dist/taro-components/{p-43367dd1.entry.js → p-eb7aa8ad.entry.js} +1 -1
  416. package/dist/taro-components/{p-3293c5d9.system.entry.js → p-ede005c7.system.entry.js} +1 -1
  417. package/dist/taro-components/{p-61a325d2.system.entry.js → p-ee2e9a0f.system.entry.js} +1 -1
  418. package/dist/taro-components/{p-cafbb3d9.system.entry.js → p-f0694b9f.system.entry.js} +1 -1
  419. package/dist/taro-components/{p-a96f8f60.system.entry.js → p-f1597269.system.entry.js} +1 -1
  420. package/dist/taro-components/{p-d973d536.entry.js → p-f26ddbc9.entry.js} +1 -1
  421. package/dist/taro-components/{p-0a64f78c.system.entry.js → p-f490ca1e.system.entry.js} +1 -1
  422. package/dist/taro-components/{p-7fdbcf4d.entry.js → p-f5cd77f9.entry.js} +1 -1
  423. package/dist/taro-components/{p-dc08715a.entry.js → p-f6d29525.entry.js} +1 -1
  424. package/dist/taro-components/p-f922c742.entry.js +1 -0
  425. package/dist/taro-components/p-fa01bbca.entry.js +1 -0
  426. package/dist/taro-components/{p-17938fa0.system.entry.js → p-fb23fdb8.system.entry.js} +1 -1
  427. package/dist/taro-components/{p-4fad4beb.system.entry.js → p-fc124d0d.system.entry.js} +1 -1
  428. package/dist/taro-components/{p-6ba08ce0.system.entry.js → p-fe3e2fdb.system.entry.js} +1 -1
  429. package/dist/taro-components/taro-components.esm.js +1 -1
  430. package/dist/taro-components/taro-components.js +1 -1
  431. package/dist/types/components/swiper/swiper-item.d.ts +1 -3
  432. package/dist/types/components/swiper/swiper.d.ts +13 -9
  433. package/dist/types/components.d.ts +8 -2
  434. package/lib/vue3/components.js +2 -2
  435. package/lib/vue3/components.js.map +1 -1
  436. package/package.json +6 -6
  437. package/types/Picker.d.ts +1 -0
  438. package/types/Swiper.d.ts +4 -0
  439. package/types/global.d.ts +4 -0
  440. package/types/index.d.ts +20 -0
  441. package/types/index.solid.d.ts +297 -0
  442. package/dist/taro-components/p-047e4bfe.entry.js +0 -1
  443. package/dist/taro-components/p-06adeb65.system.entry.js +0 -1
  444. package/dist/taro-components/p-07f27474.entry.js +0 -1
  445. package/dist/taro-components/p-083c3147.system.entry.js +0 -1
  446. package/dist/taro-components/p-0f2c1ecc.entry.js +0 -1
  447. package/dist/taro-components/p-0f480c38.system.entry.js +0 -1
  448. package/dist/taro-components/p-0ff5a55b.entry.js +0 -1
  449. package/dist/taro-components/p-156e9634.system.entry.js +0 -1
  450. package/dist/taro-components/p-17e72555.entry.js +0 -1
  451. package/dist/taro-components/p-26eb2f3f.entry.js +0 -1
  452. package/dist/taro-components/p-27d372b4.system.entry.js +0 -1
  453. package/dist/taro-components/p-280795f2.entry.js +0 -1
  454. package/dist/taro-components/p-292470e5.entry.js +0 -1
  455. package/dist/taro-components/p-2d537212.entry.js +0 -1
  456. package/dist/taro-components/p-2f177716.entry.js +0 -1
  457. package/dist/taro-components/p-32c0f326.entry.js +0 -1
  458. package/dist/taro-components/p-35dec732.entry.js +0 -1
  459. package/dist/taro-components/p-38b29261.entry.js +0 -1
  460. package/dist/taro-components/p-3a180dc7.entry.js +0 -1
  461. package/dist/taro-components/p-402c7f93.entry.js +0 -1
  462. package/dist/taro-components/p-425d1d69.entry.js +0 -1
  463. package/dist/taro-components/p-4523b1c7.entry.js +0 -1
  464. package/dist/taro-components/p-47790dc0.system.entry.js +0 -1
  465. package/dist/taro-components/p-50849470.system.entry.js +0 -1
  466. package/dist/taro-components/p-56552c9e.entry.js +0 -1
  467. package/dist/taro-components/p-57b77f17.system.entry.js +0 -1
  468. package/dist/taro-components/p-5884c108.system.entry.js +0 -1
  469. package/dist/taro-components/p-5c156db3.system.entry.js +0 -1
  470. package/dist/taro-components/p-6282bdee.system.entry.js +0 -1
  471. package/dist/taro-components/p-68197378.entry.js +0 -1
  472. package/dist/taro-components/p-6989c232.entry.js +0 -1
  473. package/dist/taro-components/p-7163d09e.system.js +0 -1
  474. package/dist/taro-components/p-75b4c1fc.system.entry.js +0 -1
  475. package/dist/taro-components/p-77e82dfa.entry.js +0 -1
  476. package/dist/taro-components/p-7e692c70.entry.js +0 -1
  477. package/dist/taro-components/p-7ebd4310.entry.js +0 -1
  478. package/dist/taro-components/p-8179438b.system.entry.js +0 -1
  479. package/dist/taro-components/p-84998109.entry.js +0 -1
  480. package/dist/taro-components/p-855619b6.system.entry.js +0 -1
  481. package/dist/taro-components/p-8b0c9d3f.entry.js +0 -1
  482. package/dist/taro-components/p-937a6c36.entry.js +0 -1
  483. package/dist/taro-components/p-93a2b2e9.entry.js +0 -1
  484. package/dist/taro-components/p-93b02321.entry.js +0 -1
  485. package/dist/taro-components/p-9571836f.entry.js +0 -1
  486. package/dist/taro-components/p-a25aca16.system.entry.js +0 -1
  487. package/dist/taro-components/p-a50c6736.entry.js +0 -1
  488. package/dist/taro-components/p-aabac550.entry.js +0 -1
  489. package/dist/taro-components/p-ac714300.system.entry.js +0 -1
  490. package/dist/taro-components/p-acb113bd.entry.js +0 -1
  491. package/dist/taro-components/p-b4c7bb48.entry.js +0 -1
  492. package/dist/taro-components/p-bb67318d.entry.js +0 -1
  493. package/dist/taro-components/p-be055537.entry.js +0 -1
  494. package/dist/taro-components/p-be1701b2.entry.js +0 -1
  495. package/dist/taro-components/p-c056d527.system.entry.js +0 -1
  496. package/dist/taro-components/p-c0c567e5.system.entry.js +0 -1
  497. package/dist/taro-components/p-c3dc7072.entry.js +0 -1
  498. package/dist/taro-components/p-c71d5745.system.entry.js +0 -1
  499. package/dist/taro-components/p-c7836e2b.entry.js +0 -1
  500. package/dist/taro-components/p-c8cd6e16.entry.js +0 -1
  501. package/dist/taro-components/p-c95d2b90.entry.js +0 -1
  502. package/dist/taro-components/p-ccbaba23.entry.js +0 -1
  503. package/dist/taro-components/p-e62a1287.js +0 -2
  504. package/dist/taro-components/p-ebb1ae64.entry.js +0 -1
  505. package/dist/taro-components/p-f034a433.entry.js +0 -1
  506. package/dist/taro-components/p-f367a754.entry.js +0 -1
  507. package/dist/taro-components/p-f8f2461f.entry.js +0 -1
  508. package/dist/taro-components/p-fab63183.entry.js +0 -1
  509. package/dist/taro-components/p-feb89474.system.entry.js +0 -1
  510. package/dist/taro-components/p-ff772345.entry.js +0 -1
@@ -1 +1 @@
1
- System.register(["./p-75d01c60.system.js","@tarojs/taro","./p-443b9a72.system.js"],(function(e){"use strict";var t,r,n,i,o,a,s;return{setters:[function(e){t=e.r;r=e.c;n=e.h;i=e.H;o=e.g},function(e){a=e.default},function(e){s=e.c}],execute:function(){var c=".rmc-pull-to-refresh-content{-webkit-transform-origin:0 0;transform-origin:0 0}.rmc-pull-to-refresh-content-wrapper{min-height:100%}.rmc-pull-to-refresh-transition{-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s, -webkit-transform .3s}@-webkit-keyframes rmc-pull-to-refresh-indicator{50%{opacity:.2}to{opacity:1}}@keyframes rmc-pull-to-refresh-indicator{50%{opacity:.2}to{opacity:1}}.rmc-pull-to-refresh-indicator{text-align:center;height:30px;line-height:10px}.rmc-pull-to-refresh-indicator>div{background-color:gray;border-radius:100%;width:6px;height:6px;margin:3px;-webkit-animation:.5s linear infinite both rmc-pull-to-refresh-indicator;animation:.5s linear infinite both rmc-pull-to-refresh-indicator;display:inline-block}.rmc-pull-to-refresh-indicator>div:nth-child(0){-webkit-animation-delay:-.1s!important;animation-delay:-.1s!important}.rmc-pull-to-refresh-indicator>div:first-child{-webkit-animation-delay:-.2s!important;animation-delay:-.2s!important}.rmc-pull-to-refresh-indicator>div:nth-child(2){-webkit-animation-delay:-.3s!important;animation-delay:-.3s!important}.rmc-pull-to-refresh-down .rmc-pull-to-refresh-indicator{margin-top:-25px}";function l(e,t){e.transform=t;e.webkitTransform=t;e.MozTransform=t}var u=typeof navigator!=="undefined"&&/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent);var d={activate:"release",deactivate:"pull",release:"loading",finish:"finish"};var f=false;try{var h=Object.defineProperty({},"passive",{get:function(){f=true}});window.addEventListener("cancel",(function(){return{}}),h)}catch(e){}var p=f?{passive:false}:false;var v=e("taro_pull_to_refresh_core",function(){function e(e){var n=this;t(this,e);this.onRefresh=r(this,"refresh",7);this._ScreenY=0;this._startScreenY=0;this._lastScreenY=0;this._isMounted=false;this.triggerPullDownRefresh=function(e){if(!n.dragOnEdge&&n._isMounted){if(e){n._lastScreenY=n.distanceToRefresh+1;n.currSt="release";n.setContentStyle(n._lastScreenY)}else{n.currSt="finish";n.reset()}}};this.init=function(){var e=n.scrollContainer;var t=n.el.querySelector(".rmc-pull-to-refresh-content");n.el.appendChild=t===null||t===void 0?void 0:t.appendChild.bind(t);n.el.insertBefore=t===null||t===void 0?void 0:t.insertBefore.bind(t);n.el.replaceChild=t===null||t===void 0?void 0:t.replaceChild.bind(t);n.el.removeChild=t===null||t===void 0?void 0:t.removeChild.bind(t);n._to={touchstart:n.onTouchStart.bind(n,e),touchmove:n.onTouchMove.bind(n,e),touchend:n.onTouchEnd.bind(n,e),touchcancel:n.onTouchEnd.bind(n,e)};Object.keys(n._to).forEach((function(t){e.addEventListener(t,n._to[t],p)}))};this.destroy=function(){if(!n._to)return;var e=n.scrollContainer;Object.keys(n._to).forEach((function(t){e.removeEventListener(t,n._to[t])}))};this.onTouchStart=function(e,t){n._ScreenY=n._startScreenY=t.touches[0].screenY;n._lastScreenY=n._lastScreenY||0};this.isEdge=function(e){var t=n.scrollContainer;if(t&&t===document.body){var r=document.scrollingElement?document.scrollingElement:document.body;return r.scrollTop<=0}return e.scrollTop<=0};this.damp=function(e){if(Math.abs(n._lastScreenY)>n.damping){return 0}var t=Math.abs(n._ScreenY-n._startScreenY)/window.screen.height;e*=(1-t)*.6;return e};this.onTouchMove=function(e,t){var r=t.touches[0].screenY;if(n._startScreenY>r){return}if(n.isEdge(e)){if(!n.dragOnEdge){n._ScreenY=n._startScreenY=t.touches[0].screenY;n.dragOnEdge=true}if(t.cancelable){t.preventDefault()}var i=Math.round(r-n._ScreenY);n._ScreenY=r;n._lastScreenY+=n.damp(i);n.setContentStyle(n._lastScreenY);if(Math.abs(n._lastScreenY)<n.distanceToRefresh){if(n.currSt!=="deactivate"){n.currSt="deactivate"}}else{if(n.currSt==="deactivate"){n.currSt="activate"}}if(u&&t.changedTouches[0].clientY<0){n.onTouchEnd()}}};this.onTouchEnd=function(){if(n.dragOnEdge){n.dragOnEdge=false}if(n.currSt==="activate"){n.currSt="release";n.onRefresh.emit(n);n._lastScreenY=n.distanceToRefresh+1;n.setContentStyle(n._lastScreenY)}else if(n.currSt==="release"){n._lastScreenY=n.distanceToRefresh+1;n.setContentStyle(n._lastScreenY)}else{n.reset()}};this.reset=function(){n._lastScreenY=0;n.setContentStyle(0)};this.setContentStyle=function(e){if(n.contentRef){if(e){l(n.contentRef.style,"translate3d(0px,".concat(e,"px,0)"))}else{l(n.contentRef.style,"")}}};this.prefixCls="rmc-pull-to-refresh";this.distanceToRefresh=50;this.damping=100;this.indicator=d;this.currSt="deactivate";this.dragOnEdge=false}Object.defineProperty(e.prototype,"scrollContainer",{get:function(){return this.el.parentElement||this.el.closest(".taro_page_stationed")||document.querySelector(".taro_page_stationed")||document.querySelector(".taro_page")||document.querySelector(".taro_router")||document.querySelector(".taro-tabbar__panel")||document.body},enumerable:false,configurable:true});e.prototype.statusChange=function(){var e,t,r,n;var i=this.scrollContainer;switch(this.currSt){case"release":(t=(e=i===null||i===void 0?void 0:i.__page)===null||e===void 0?void 0:e.onPullDownRefresh)===null||t===void 0?void 0:t.call(e);break;case"deactivate":(n=(r=i===null||i===void 0?void 0:i.__page)===null||r===void 0?void 0:r.onPullIntercept)===null||n===void 0?void 0:n.call(r)}};e.prototype.disconnectedCallback=function(){this.destroy()};e.prototype.componentDidLoad=function(){var e=this;this.init();this._isMounted=true;a.eventCenter.on("__taroStartPullDownRefresh",(function(t){var r=t.successHandler,n=t.errorHandler;try{e.triggerPullDownRefresh(true);r({errMsg:"startPullDownRefresh: ok"})}catch(e){n({errMsg:"startPullDownRefresh: fail"})}}));a.eventCenter.on("__taroStopPullDownRefresh",(function(t){var r=t.successHandler,n=t.errorHandler;setTimeout((function(){try{e.triggerPullDownRefresh(false);r({errMsg:"stopPullDownRefresh: ok"})}catch(e){n({errMsg:"stopPullDownRefresh: fail"})}}),0)}))};e.prototype.render=function(){var e=this;var t=function(t){var r=e,i=r.currSt,o=r.dragOnEdge,a=r.prefixCls;var c=s(t,!o&&"".concat(a,"-transition"));var l=i==="activate"||i==="release";return n("div",{class:"".concat(a,"-content-wrapper")},n("div",{class:c,ref:function(t){e.contentRef=t}},l&&n("div",{class:"".concat(a,"-indicator")},n("div",null),n("div",null),n("div",null)),n("slot",null)))};if(this.scrollContainer){return t("".concat(this.prefixCls,"-content ").concat(this.prefixCls,"-down"))}return n(i,{class:s(this.prefixCls,"".concat(this.prefixCls,"-down"))},t("".concat(this.prefixCls,"-content")))};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{currSt:["statusChange"]}},enumerable:false,configurable:true});return e}());v.style=c}}}));
1
+ System.register(["./p-88de70df.system.js","@tarojs/taro","./p-443b9a72.system.js"],(function(e){"use strict";var t,r,n,i,o,a,s;return{setters:[function(e){t=e.r;r=e.c;n=e.h;i=e.H;o=e.g},function(e){a=e.default},function(e){s=e.c}],execute:function(){var c=".rmc-pull-to-refresh-content{-webkit-transform-origin:0 0;transform-origin:0 0}.rmc-pull-to-refresh-content-wrapper{min-height:100%}.rmc-pull-to-refresh-transition{-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s, -webkit-transform .3s}@-webkit-keyframes rmc-pull-to-refresh-indicator{50%{opacity:.2}to{opacity:1}}@keyframes rmc-pull-to-refresh-indicator{50%{opacity:.2}to{opacity:1}}.rmc-pull-to-refresh-indicator{text-align:center;height:30px;line-height:10px}.rmc-pull-to-refresh-indicator>div{background-color:gray;border-radius:100%;width:6px;height:6px;margin:3px;-webkit-animation:.5s linear infinite both rmc-pull-to-refresh-indicator;animation:.5s linear infinite both rmc-pull-to-refresh-indicator;display:inline-block}.rmc-pull-to-refresh-indicator>div:nth-child(0){-webkit-animation-delay:-.1s!important;animation-delay:-.1s!important}.rmc-pull-to-refresh-indicator>div:first-child{-webkit-animation-delay:-.2s!important;animation-delay:-.2s!important}.rmc-pull-to-refresh-indicator>div:nth-child(2){-webkit-animation-delay:-.3s!important;animation-delay:-.3s!important}.rmc-pull-to-refresh-down .rmc-pull-to-refresh-indicator{margin-top:-25px}";function l(e,t){e.transform=t;e.webkitTransform=t;e.MozTransform=t}var u=typeof navigator!=="undefined"&&/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent);var d={activate:"release",deactivate:"pull",release:"loading",finish:"finish"};var f=false;try{var h=Object.defineProperty({},"passive",{get:function(){f=true}});window.addEventListener("cancel",(function(){return{}}),h)}catch(e){}var p=f?{passive:false}:false;var v=e("taro_pull_to_refresh_core",function(){function e(e){var n=this;t(this,e);this.onRefresh=r(this,"refresh",7);this._ScreenY=0;this._startScreenY=0;this._lastScreenY=0;this._isMounted=false;this.triggerPullDownRefresh=function(e){if(!n.dragOnEdge&&n._isMounted){if(e){n._lastScreenY=n.distanceToRefresh+1;n.currSt="release";n.setContentStyle(n._lastScreenY)}else{n.currSt="finish";n.reset()}}};this.init=function(){var e=n.scrollContainer;var t=n.el.querySelector(".rmc-pull-to-refresh-content");n.el.appendChild=t===null||t===void 0?void 0:t.appendChild.bind(t);n.el.insertBefore=t===null||t===void 0?void 0:t.insertBefore.bind(t);n.el.replaceChild=t===null||t===void 0?void 0:t.replaceChild.bind(t);n.el.removeChild=t===null||t===void 0?void 0:t.removeChild.bind(t);n._to={touchstart:n.onTouchStart.bind(n,e),touchmove:n.onTouchMove.bind(n,e),touchend:n.onTouchEnd.bind(n,e),touchcancel:n.onTouchEnd.bind(n,e)};Object.keys(n._to).forEach((function(t){e.addEventListener(t,n._to[t],p)}))};this.destroy=function(){if(!n._to)return;var e=n.scrollContainer;Object.keys(n._to).forEach((function(t){e.removeEventListener(t,n._to[t])}))};this.onTouchStart=function(e,t){n._ScreenY=n._startScreenY=t.touches[0].screenY;n._lastScreenY=n._lastScreenY||0};this.isEdge=function(e){var t=n.scrollContainer;if(t&&t===document.body){var r=document.scrollingElement?document.scrollingElement:document.body;return r.scrollTop<=0}return e.scrollTop<=0};this.damp=function(e){if(Math.abs(n._lastScreenY)>n.damping){return 0}var t=Math.abs(n._ScreenY-n._startScreenY)/window.screen.height;e*=(1-t)*.6;return e};this.onTouchMove=function(e,t){var r=t.touches[0].screenY;if(n._startScreenY>r){return}if(n.isEdge(e)){if(!n.dragOnEdge){n._ScreenY=n._startScreenY=t.touches[0].screenY;n.dragOnEdge=true}if(t.cancelable){t.preventDefault()}var i=Math.round(r-n._ScreenY);n._ScreenY=r;n._lastScreenY+=n.damp(i);n.setContentStyle(n._lastScreenY);if(Math.abs(n._lastScreenY)<n.distanceToRefresh){if(n.currSt!=="deactivate"){n.currSt="deactivate"}}else{if(n.currSt==="deactivate"){n.currSt="activate"}}if(u&&t.changedTouches[0].clientY<0){n.onTouchEnd()}}};this.onTouchEnd=function(){if(n.dragOnEdge){n.dragOnEdge=false}if(n.currSt==="activate"){n.currSt="release";n.onRefresh.emit(n);n._lastScreenY=n.distanceToRefresh+1;n.setContentStyle(n._lastScreenY)}else if(n.currSt==="release"){n._lastScreenY=n.distanceToRefresh+1;n.setContentStyle(n._lastScreenY)}else{n.reset()}};this.reset=function(){n._lastScreenY=0;n.setContentStyle(0)};this.setContentStyle=function(e){if(n.contentRef){if(e){l(n.contentRef.style,"translate3d(0px,".concat(e,"px,0)"))}else{l(n.contentRef.style,"")}}};this.prefixCls="rmc-pull-to-refresh";this.distanceToRefresh=50;this.damping=100;this.indicator=d;this.currSt="deactivate";this.dragOnEdge=false}Object.defineProperty(e.prototype,"scrollContainer",{get:function(){return this.el.parentElement||this.el.closest(".taro_page_stationed")||document.querySelector(".taro_page_stationed")||document.querySelector(".taro_page")||document.querySelector(".taro_router")||document.querySelector(".taro-tabbar__panel")||document.body},enumerable:false,configurable:true});e.prototype.statusChange=function(){var e,t,r,n;var i=this.scrollContainer;switch(this.currSt){case"release":(t=(e=i===null||i===void 0?void 0:i.__page)===null||e===void 0?void 0:e.onPullDownRefresh)===null||t===void 0?void 0:t.call(e);break;case"deactivate":(n=(r=i===null||i===void 0?void 0:i.__page)===null||r===void 0?void 0:r.onPullIntercept)===null||n===void 0?void 0:n.call(r)}};e.prototype.disconnectedCallback=function(){this.destroy()};e.prototype.componentDidLoad=function(){var e=this;this.init();this._isMounted=true;a.eventCenter.on("__taroStartPullDownRefresh",(function(t){var r=t.successHandler,n=t.errorHandler;try{e.triggerPullDownRefresh(true);r({errMsg:"startPullDownRefresh: ok"})}catch(e){n({errMsg:"startPullDownRefresh: fail"})}}));a.eventCenter.on("__taroStopPullDownRefresh",(function(t){var r=t.successHandler,n=t.errorHandler;setTimeout((function(){try{e.triggerPullDownRefresh(false);r({errMsg:"stopPullDownRefresh: ok"})}catch(e){n({errMsg:"stopPullDownRefresh: fail"})}}),0)}))};e.prototype.render=function(){var e=this;var t=function(t){var r=e,i=r.currSt,o=r.dragOnEdge,a=r.prefixCls;var c=s(t,!o&&"".concat(a,"-transition"));var l=i==="activate"||i==="release";return n("div",{class:"".concat(a,"-content-wrapper")},n("div",{class:c,ref:function(t){e.contentRef=t}},l&&n("div",{class:"".concat(a,"-indicator")},n("div",null),n("div",null),n("div",null)),n("slot",null)))};if(this.scrollContainer){return t("".concat(this.prefixCls,"-content ").concat(this.prefixCls,"-down"))}return n(i,{class:s(this.prefixCls,"".concat(this.prefixCls,"-down"))},t("".concat(this.prefixCls,"-content")))};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{currSt:["statusChange"]}},enumerable:false,configurable:true});return e}());v.style=c}}}));
@@ -1 +1 @@
1
- System.register(["./p-75d01c60.system.js","./p-8c3b906c.system.js","@tarojs/taro"],(function(t){"use strict";var n,e,r,o;return{setters:[function(t){n=t.r;e=t.h;r=t.H},function(t){o=t.n},function(){}],execute:function(){var c=t("taro_channel_live_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){o("ChannelLive",this)};t.prototype.render=function(){return e(r,null)};return t}())}}}));
1
+ System.register(["./p-88de70df.system.js","./p-8c3b906c.system.js","@tarojs/taro"],(function(t){"use strict";var n,e,r,o;return{setters:[function(t){n=t.r;e=t.h;r=t.H},function(t){o=t.n},function(){}],execute:function(){var c=t("taro_channel_live_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){o("ChannelLive",this)};t.prototype.render=function(){return e(r,null)};return t}())}}}));
@@ -0,0 +1 @@
1
+ import{r as o,h as r,H as a}from"./p-d0cabaaa.js";import{n as t}from"./p-dbdb9de9.js";import"@tarojs/taro";const s=class{constructor(r){o(this,r)}componentDidLoad(){t("AnimationVideo",this)}render(){return r(a,null)}};export{s as taro_animation_video_core}
@@ -1 +1 @@
1
- import{r as t,c as i,h as e,H as s,g as o}from"./p-e62a1287.js";import{c as n}from"./p-160d710a.js";function a(t,i){const e=[];for(let s=t;s<=i;s++)e.push(`${s<10?"0":""}${s}`);return e}const r=["20","21","22","23",...a(0,23),"00","01","02","03"],h=["56","57","58","59",...a(0,59),"00","01","02","03"];function d(t,i){return!isNaN(+t)&&t>=0&&t<i.length}function c(t){if(!/^\d{1,2}:\d{1,2}$/.test(t))return!1;const i=t.split(":").map((t=>+t));return!(i[0]<0||i[0]>23||i[1]<0||i[1]>59)}function l(t,i){const e=t.split(":").map((t=>+t)),s=i.split(":").map((t=>+t));return e[0]<s[0]||e[0]===s[0]&&e[1]<=s[1]}function u(t){if(!t)return!1;const i=new Date(t.replace(/-/g,"/"));return!isNaN(i.getMonth())&&i}function p(t){let i;return i=Array.isArray(t)?t.map((t=>String(t))):t,i}function f(t,i){const e=[];for(let s=t;s<=i;s++)e.push(s);return e}function m(t,i){return f(t,i)}function g(t,i,e){let s=1,o=12;return t.getFullYear()===e&&(s=t.getMonth()+1),i.getFullYear()===e&&(o=i.getMonth()+1),f(s,o)}function w(t,i,e,s){let o=1,n=function(t,i){return 4===i||6===i||9===i||11===i?30:2===i?t%4==0&&t%100!=0||t%400==0?29:28:31}(e,s);return t.getFullYear()===e&&t.getMonth()+1===s&&(o=t.getDate()),i.getFullYear()===e&&i.getMonth()+1===s&&(n=i.getDate()),f(o,n)}const k=102,b=34,_=class{constructor(s){t(this,s),this.onChange=i(this,"change",7),this.onColumnChange=i(this,"columnchange",7),this.onCancel=i(this,"cancel",7),this.index=[],this.showPicker=()=>{this.disabled||(this.height=this.getHeightByIndex(),this.hidden=!1)},this.getHeightByIndex=()=>this.index.map((t=>{let i=0;return"time"===this.mode&&(i=136),k-b*t-i})),this.hidePicker=()=>{this.fadeOut=!0,setTimeout((()=>{this.hidden=!0,this.fadeOut=!1}),350)},this.handleChange=()=>{this.hidePicker(),this.index=this.height.map((t=>(k-t)/b));let t=this.index.length&&"selector"!==this.mode?this.index:this.index[0];if("time"===this.mode){const i=[r.slice(),h.slice()],e=this.index.map(((t,e)=>i[e][t]));this.index=e.map((t=>parseInt(t))),t=e.join(":")}if("date"===this.mode){const{_start:i,_end:e,_updateValue:s}=this.pickerDate,o=s[0],n=s[1],a=m(i.getFullYear(),e.getFullYear()),r=g(i,e,o),h=w(i,e,o,n),d=a[this.index[0]],c=r[this.index[1]];t="year"===this.fields?[d]:"month"===this.fields?[d,c]:[d,c,h[this.index[2]]],t=t.map((t=>t<10?`0${t}`:t)).join("-")}this.value=t,this.pickerValue=this.value,this.onChange.emit({value:t})},this.handleColumnChange=t=>{const{columnId:i,height:e}=t.detail;this.onColumnChange.emit({column:Number(i),value:(k-e)/b})},this.handleCancel=()=>{this.hidePicker(),this.onCancel.emit()},this.updateHeight=(t,i,e=!1)=>{const s=[...this.height];if(s[i]=t,this.height=s,e){let{start:t,end:i}=this;if(c(t)||(t="00:00"),c(i)||(i="23:59"),!l(t,i))return;const e=[r.slice(),h.slice()],s=this.height.map((t=>(k-t)/b)),o=s.map(((t,i)=>e[i][t])).join(":");if(l(t,o)){if(!l(o,i)){const t=i.split(":").map((t=>k-b*(+t+4)));requestAnimationFrame((()=>this.height=t))}}else{const i=t.split(":").map((t=>k-b*(+t+4)));requestAnimationFrame((()=>this.height=i))}}},this.updateDay=(t,i)=>{const{_start:e,_end:s,_updateValue:o}=this.pickerDate;o[i]=t;const n=o[0],a=o[1],r=o[2];if(0===i){const t=g(e,s,n),i=t[t.length-1],r=t[0];a>i&&(o[1]=i),a<r&&(o[1]=r);const h=t.indexOf(o[1]),d=k-b*h;this.updateDay(o[1],1),this.updateHeight(d,"1")}else if(1===i){const t=w(e,s,n,a),i=t[t.length-1],h=t[0];r>i&&(o[2]=i),r<h&&(o[2]=h);const d=t.indexOf(o[2]),c=k-b*d;this.updateDay(o[2],2),this.updateHeight(c,"2")}},this.getSelector=()=>e("taro-picker-group",{range:this.range,rangeKey:this.rangeKey,height:this.height[0],updateHeight:this.updateHeight,columnId:"0"}),this.getMultiSelector=()=>this.range.map(((t,i)=>e("taro-picker-group",{range:t,rangeKey:this.rangeKey,height:this.height[i],updateHeight:this.updateHeight,onColumnChange:this.handleColumnChange,columnId:String(i)}))),this.getTimeSelector=()=>{const t=r.slice(),i=h.slice();return[e("taro-picker-group",{mode:"time",range:t,height:this.height[0],updateHeight:this.updateHeight,columnId:"0"}),e("taro-picker-group",{mode:"time",range:i,height:this.height[1],updateHeight:this.updateHeight,columnId:"1"})]},this.getDateSelector=()=>{const{fields:t,height:i}=this,{_start:s,_end:o,_updateValue:n}=this.pickerDate,a=n[0],r=n[1],h=m(s.getFullYear(),o.getFullYear()).map((t=>`${t}年`)),d=g(s,o,a).map((t=>`${t<10?`0${t}`:t}月`)),c=w(s,o,a,r).map((t=>`${t<10?`0${t}`:t}日`)),l=[e("taro-picker-group",{mode:"date",range:h,height:i[0],updateDay:this.updateDay,updateHeight:this.updateHeight,columnId:"0"})];return"month"!==t&&"day"!==t||l.push(e("taro-picker-group",{mode:"date",range:d,height:i[1],updateDay:this.updateDay,updateHeight:this.updateHeight,columnId:"1"})),"day"===t&&l.push(e("taro-picker-group",{mode:"date",range:c,height:i[2],updateDay:this.updateDay,updateHeight:this.updateHeight,columnId:"2"})),l},this.mode="selector",this.disabled=!1,this.range=[],this.rangeKey=void 0,this.value=void 0,this.start="",this.end="",this.fields="day",this.name="",this.textProps={},this.pickerValue=[],this.height=[],this.hidden=!0,this.fadeOut=!1,this.isWillLoadCalled=!1}componentWillLoad(){this.isWillLoadCalled=!0,this.handleProps()}componentDidLoad(){this.overlay&&document.body.appendChild(this.overlay)}disconnectedCallback(){var t;this.overlay&&(null===(t=this.overlay.parentNode)||void 0===t||t.removeChild(this.overlay))}onPropsChange(){this.isWillLoadCalled&&this.handleProps()}handleProps(){const{mode:t,start:i,end:e}=this;if("selector"===t){const t=this.value;this.index=[d(t,this.range)?Math.floor(t):0]}else if("multiSelector"===t){const t=this.value;this.index=[],this.range.forEach(((i,e)=>{const s=null==t?void 0:t[e],o=d(s,i)?Math.floor(s):0;this.index.push(o)}))}else if("time"===t){let t=this.value;c(t)||(console.warn("time picker value illegal"),t="0:0");const i=t.split(":").map((t=>+t));this.index=i}else{if("date"!==t)throw new Error(`Picker not support "${t}" mode.`);{let t=u(this.value)||new Date((new Date).setHours(0,0,0,0));const s=u(i)||new Date("1970/01/01"),o=u(e)||new Date("2999/01/01");if(!(s<=o))throw new Error("Picker start time must be less than end time.");t>=s&&t<=o||(t=s);const n=t.getFullYear(),a=t.getMonth()+1,r=t.getDate(),h=m(s.getFullYear(),o.getFullYear()),d=g(s,o,n),c=w(s,o,n,a);this.index=[h.indexOf(n),d.indexOf(a),c.indexOf(r)],this.pickerDate&&this.pickerDate._value.getTime()===t.getTime()&&this.pickerDate._start.getTime()===s.getTime()&&this.pickerDate._end.getTime()===o.getTime()||(this.pickerDate={_value:t,_start:s,_end:o,_updateValue:[n,a,r]})}}if(this.height=this.getHeightByIndex(),this.pickerValue=this.value,"date"===t){const t=this.pickerValue;"month"===this.fields?this.pickerValue=t.split("-").slice(0,2).join("-"):"year"===this.fields&&(this.pickerValue=t.split("-")[0])}}render(){var t,i;const{name:o,mode:a,fadeOut:r,hidden:h}=this;let d;switch(a){case"multiSelector":d=this.getMultiSelector();break;case"time":d=this.getTimeSelector();break;case"date":d=this.getDateSelector();break;default:d=this.getSelector()}const c=n("weui-mask","weui-animate-fade-in",{"weui-animate-fade-out":r}),l=n("weui-picker","weui-animate-slide-up",{"weui-animate-slide-down":r}),u=h?{display:"none"}:{};return e(s,null,e("div",{onClick:this.showPicker},e("slot",null),e("input",{type:"hidden",name:o,value:p(this.pickerValue)})),e("div",{class:"weui-picker__overlay",style:u,ref:t=>{this.overlay=t}},e("div",{class:c,onClick:this.handleCancel}),e("div",{class:l},e("div",{class:"weui-picker__hd"},e("div",{class:"weui-picker__action",onClick:this.handleCancel},null!==(t=this.textProps.cancelText)&&void 0!==t?t:"取消"),e("div",{class:"weui-picker__action",onClick:this.handleChange},null!==(i=this.textProps.okText)&&void 0!==i?i:"确定")),e("div",{class:"weui-picker__bd"},d),e("input",{type:"hidden",name:o,value:p(this.pickerValue)}))))}get el(){return o(this)}static get watchers(){return{mode:["onPropsChange"],value:["onPropsChange"],range:["onPropsChange"],start:["onPropsChange"],end:["onPropsChange"]}}};_.style='.weui-mask{z-index:1000;background:rgba(0,0,0,.6);position:fixed;inset:0}.weui-mask_transparent{z-index:1000;position:fixed;inset:0}@-webkit-keyframes weuiSlideUp{0%{-webkit-transform:translateY(100%);transform:translateY(100%)}to{-webkit-transform:translate(0,0);transform:translate(0,0)}}@keyframes weuiSlideUp{0%{-webkit-transform:translateY(100%);transform:translateY(100%)}to{-webkit-transform:translate(0,0);transform:translate(0,0)}}.weui-animate-slide-up{-webkit-animation:.3s forwards weuiSlideUp;animation:.3s forwards weuiSlideUp}@-webkit-keyframes weuiSlideDown{0%{-webkit-transform:translate(0,0);transform:translate(0,0)}to{-webkit-transform:translateY(100%);transform:translateY(100%)}}@keyframes weuiSlideDown{0%{-webkit-transform:translate(0,0);transform:translate(0,0)}to{-webkit-transform:translateY(100%);transform:translateY(100%)}}.weui-animate-slide-down{-webkit-animation:.3s forwards weuiSlideDown;animation:.3s forwards weuiSlideDown}@-webkit-keyframes weuiFadeIn{0%{opacity:0}to{opacity:1}}@keyframes weuiFadeIn{0%{opacity:0}to{opacity:1}}.weui-animate-fade-in{-webkit-animation:.3s forwards weuiFadeIn;animation:.3s forwards weuiFadeIn}@-webkit-keyframes weuiFadeOut{0%{opacity:1}to{opacity:0}}@keyframes weuiFadeOut{0%{opacity:1}to{opacity:0}}.weui-animate-fade-out{-webkit-animation:.3s forwards weuiFadeOut;animation:.3s forwards weuiFadeOut}.weui-picker{-webkit-box-sizing:border-box;box-sizing:border-box;z-index:5000;background-color:var(--weui-BG-2);padding-left:0;padding-left:constant(safe-area-inset-left);padding-left:env(safe-area-inset-left);padding-right:0;padding-right:constant(safe-area-inset-right);padding-right:env(safe-area-inset-right);-webkit-backface-visibility:hidden;backface-visibility:hidden;width:100%;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s, -webkit-transform .3s;position:fixed;bottom:0;left:0;-webkit-transform:translateY(100%);transform:translateY(100%)}.weui-picker__hd{text-align:center;background-color:#fff;padding:9px 15px;font-size:17px;display:-ms-flexbox;display:flex;position:relative}.weui-picker__hd:after{content:" ";color:#e5e5e5;-webkit-transform-origin:0 100%;transform-origin:0 100%;border-bottom:1px solid #e5e5e5;height:1px;position:absolute;bottom:0;left:0;right:0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.weui-picker__action{color:#1aad19;-ms-flex:1;flex:1;display:block}.weui-picker__action:first-child{text-align:left;color:#888}.weui-picker__action:last-child{text-align:right}.weui-picker__bd{background-color:#fff;height:238px;display:-ms-flexbox;display:flex;position:relative;overflow:hidden}.weui-picker__group{-ms-flex:1;flex:1;height:100%;position:relative}.weui-picker__mask{z-index:3;background-color:transparent;background-image:-webkit-gradient(linear,left top, left bottom,from(rgba(255,255,255,.95)),to(rgba(255,255,255,.6))),-webkit-gradient(linear,left top, left bottom,from(rgba(255,255,255,.6)),to(rgba(255,255,255,.95)));background-image:linear-gradient(rgba(255,255,255,.95),rgba(255,255,255,.6)),linear-gradient(rgba(255,255,255,.6),rgba(255,255,255,.95));background-position:top,bottom;background-repeat:no-repeat;background-size:100% 102px;background-attachment:scroll,scroll;background-origin:padding-box,padding-box;background-clip:border-box,border-box;width:100%;height:100%;margin:0 auto;position:absolute;top:0;left:0;-webkit-transform:translateZ(0);transform:translateZ(0)}.weui-picker__indicator{z-index:3;width:100%;height:34px;position:absolute;top:102px;left:0}.weui-picker__indicator:before{content:" ";color:#e5e5e5;-webkit-transform-origin:0 0;transform-origin:0 0;border-top:1px solid #e5e5e5;height:1px;position:absolute;top:0;left:0;right:0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.weui-picker__indicator:after{content:" ";color:#e5e5e5;-webkit-transform-origin:0 100%;transform-origin:0 100%;border-bottom:1px solid #e5e5e5;height:1px;position:absolute;bottom:0;left:0;right:0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.weui-picker__content{width:100%;position:absolute;top:0;left:0}.weui-picker__item{text-align:center;color:#000;text-overflow:ellipsis;white-space:nowrap;height:34px;padding:0;line-height:34px;overflow:hidden}.weui-picker__item_disabled{color:#999}.weui-picker,.weui-picker__hd{font-size:12px}';const v=class{constructor(e){t(this,e),this.onColumnChange=i(this,"columnChange",7),this.mode=void 0,this.range=[],this.rangeKey=void 0,this.height=void 0,this.columnId=void 0,this.updateHeight=void 0,this.updateDay=void 0,this.startY=void 0,this.preY=void 0,this.hadMove=void 0,this.touchEnd=void 0,this.isMove=void 0}getPosition(){const t=`translate3d(0, ${this.height}px, 0)`,i=`transform ${this.touchEnd?.3:0}s`;return{transform:t,"-webkit-transform":t,transition:i,"-webkit-transition":i}}formulaUnlimitedScroll(t,i,e){const{height:s,updateHeight:o,columnId:n}=this,a="up"===e?1:-1;this.touchEnd=!1,o(-t*a*b+s,n),requestAnimationFrame((()=>{this.touchEnd=!0;const e=Math.round(i/-34)+t*a;o(k-b*e,n,!0)}))}async handleMoveStart(t){this.startY=t,this.preY=t,this.hadMove=!1}async handleMoving(t){const i=t,e=i-this.preY;this.preY=i,this.touchEnd=!1,Math.abs(i-this.startY)>10&&(this.hadMove=!0);let s=this.height+e;"time"===this.mode&&("0"===this.columnId?(s>0&&(s=-816+e),s<-850&&(s=-34+e)):"1"===this.columnId&&(s>0&&(s=-2040+e),s<-2074&&(s=-34+e))),this.updateHeight(s,this.columnId)}async handleMoveEnd(t){const{mode:i,range:e,height:s,updateHeight:o,columnId:n}=this,a=-34*(e.length-1),r=t;let h;if(this.touchEnd=!0,this.hadMove)h=s-k;else{const t=window.innerHeight;if(h=s-k-(r-(t-119)),"time"===i)if("0"===n){if(h>-85)return this.formulaUnlimitedScroll(24,h,"up");if(h<-969)return this.formulaUnlimitedScroll(24,h,"down")}else if("1"===n){if(h>-85)return this.formulaUnlimitedScroll(60,h,"up");if(h<-2193)return this.formulaUnlimitedScroll(60,h,"down")}}h>0&&(h=0),h<a&&(h=a);const d=Math.round(h/-34),c=k-b*d;"date"===this.mode&&"function"==typeof this.updateDay&&("0"===this.columnId&&this.updateDay(+this.range[d].replace(/[^0-9]/gi,""),0),"1"===this.columnId&&this.updateDay(+this.range[d].replace(/[^0-9]/gi,""),1),"2"===this.columnId&&this.updateDay(+this.range[d].replace(/[^0-9]/gi,""),2)),o(c,n,"time"===i),this.onColumnChange.emit({columnId:n,height:c})}onMouseDown(t){this.isMove=!0,this.handleMoveStart(t.clientY)}onMouseMove(t){this.isMove&&this.handleMoving(t.clientY)}onMouseMoveEnd(t){this.isMove&&(this.isMove=!1,this.handleMoveEnd(t.clientY))}onTouchStart(t){this.handleMoveStart(t.changedTouches[0].clientY)}onTouchMove(t){this.handleMoving(t.changedTouches[0].clientY)}onTouchEnd(t){this.handleMoveEnd(t.changedTouches[0].clientY)}render(){const{range:t,rangeKey:i}=this,o=t.map((t=>e("div",{class:"weui-picker__item"},i?t[i]:t)));return e(s,{class:"weui-picker__group"},e("div",{class:"weui-picker__mask"}),e("div",{class:"weui-picker__indicator"}),e("div",{class:"weui-picker__content",style:this.getPosition()},o))}};export{_ as taro_picker_core,v as taro_picker_group}
1
+ import{r as t,c as i,h as e,H as s,g as o}from"./p-d0cabaaa.js";import{c as n}from"./p-160d710a.js";function a(t,i){const e=[];for(let s=t;s<=i;s++)e.push(`${s<10?"0":""}${s}`);return e}const r=["20","21","22","23",...a(0,23),"00","01","02","03"],h=["56","57","58","59",...a(0,59),"00","01","02","03"];function d(t,i){return!isNaN(+t)&&t>=0&&t<i.length}function c(t){if(!/^\d{1,2}:\d{1,2}$/.test(t))return!1;const i=t.split(":").map((t=>+t));return!(i[0]<0||i[0]>23||i[1]<0||i[1]>59)}function l(t,i){const e=t.split(":").map((t=>+t)),s=i.split(":").map((t=>+t));return e[0]<s[0]||e[0]===s[0]&&e[1]<=s[1]}function u(t){if(!t)return!1;const i=new Date(t.replace(/-/g,"/"));return!isNaN(i.getMonth())&&i}function p(t){let i;return i=Array.isArray(t)?t.map((t=>String(t))):t,i}function f(t,i){const e=[];for(let s=t;s<=i;s++)e.push(s);return e}function m(t,i){return f(t,i)}function g(t,i,e){let s=1,o=12;return t.getFullYear()===e&&(s=t.getMonth()+1),i.getFullYear()===e&&(o=i.getMonth()+1),f(s,o)}function w(t,i,e,s){let o=1,n=function(t,i){return 4===i||6===i||9===i||11===i?30:2===i?t%4==0&&t%100!=0||t%400==0?29:28:31}(e,s);return t.getFullYear()===e&&t.getMonth()+1===s&&(o=t.getDate()),i.getFullYear()===e&&i.getMonth()+1===s&&(n=i.getDate()),f(o,n)}const k=102,b=34,_=class{constructor(s){t(this,s),this.onChange=i(this,"change",7),this.onColumnChange=i(this,"columnchange",7),this.onCancel=i(this,"cancel",7),this.index=[],this.showPicker=()=>{this.disabled||(this.height=this.getHeightByIndex(),this.hidden=!1)},this.getHeightByIndex=()=>this.index.map((t=>{let i=0;return"time"===this.mode&&(i=136),k-b*t-i})),this.hidePicker=()=>{this.fadeOut=!0,setTimeout((()=>{this.hidden=!0,this.fadeOut=!1}),350)},this.handleChange=()=>{this.hidePicker(),this.index=this.height.map((t=>(k-t)/b));let t=this.index.length&&"selector"!==this.mode?this.index:this.index[0];if("time"===this.mode){const i=[r.slice(),h.slice()],e=this.index.map(((t,e)=>i[e][t]));this.index=e.map((t=>parseInt(t))),t=e.join(":")}if("date"===this.mode){const{_start:i,_end:e,_updateValue:s}=this.pickerDate,o=s[0],n=s[1],a=m(i.getFullYear(),e.getFullYear()),r=g(i,e,o),h=w(i,e,o,n),d=a[this.index[0]],c=r[this.index[1]];t="year"===this.fields?[d]:"month"===this.fields?[d,c]:[d,c,h[this.index[2]]],t=t.map((t=>t<10?`0${t}`:t)).join("-")}this.value=t,this.pickerValue=this.value,this.onChange.emit({value:t})},this.handleColumnChange=t=>{const{columnId:i,height:e}=t.detail;this.onColumnChange.emit({column:Number(i),value:(k-e)/b})},this.handleCancel=()=>{this.hidePicker(),this.onCancel.emit()},this.updateHeight=(t,i,e=!1)=>{const s=[...this.height];if(s[i]=t,this.height=s,e){let{start:t,end:i}=this;if(c(t)||(t="00:00"),c(i)||(i="23:59"),!l(t,i))return;const e=[r.slice(),h.slice()],s=this.height.map((t=>(k-t)/b)),o=s.map(((t,i)=>e[i][t])).join(":");if(l(t,o)){if(!l(o,i)){const t=i.split(":").map((t=>k-b*(+t+4)));requestAnimationFrame((()=>this.height=t))}}else{const i=t.split(":").map((t=>k-b*(+t+4)));requestAnimationFrame((()=>this.height=i))}}},this.updateDay=(t,i)=>{const{_start:e,_end:s,_updateValue:o}=this.pickerDate;o[i]=t;const n=o[0],a=o[1],r=o[2];if(0===i){const t=g(e,s,n),i=t[t.length-1],r=t[0];a>i&&(o[1]=i),a<r&&(o[1]=r);const h=t.indexOf(o[1]),d=k-b*h;this.updateDay(o[1],1),this.updateHeight(d,"1")}else if(1===i){const t=w(e,s,n,a),i=t[t.length-1],h=t[0];r>i&&(o[2]=i),r<h&&(o[2]=h);const d=t.indexOf(o[2]),c=k-b*d;this.updateDay(o[2],2),this.updateHeight(c,"2")}},this.getSelector=()=>e("taro-picker-group",{range:this.range,rangeKey:this.rangeKey,height:this.height[0],updateHeight:this.updateHeight,columnId:"0"}),this.getMultiSelector=()=>this.range.map(((t,i)=>e("taro-picker-group",{range:t,rangeKey:this.rangeKey,height:this.height[i],updateHeight:this.updateHeight,onColumnChange:this.handleColumnChange,columnId:String(i)}))),this.getTimeSelector=()=>{const t=r.slice(),i=h.slice();return[e("taro-picker-group",{mode:"time",range:t,height:this.height[0],updateHeight:this.updateHeight,columnId:"0"}),e("taro-picker-group",{mode:"time",range:i,height:this.height[1],updateHeight:this.updateHeight,columnId:"1"})]},this.getDateSelector=()=>{const{fields:t,height:i}=this,{_start:s,_end:o,_updateValue:n}=this.pickerDate,a=n[0],r=n[1],h=m(s.getFullYear(),o.getFullYear()).map((t=>`${t}年`)),d=g(s,o,a).map((t=>`${t<10?`0${t}`:t}月`)),c=w(s,o,a,r).map((t=>`${t<10?`0${t}`:t}日`)),l=[e("taro-picker-group",{mode:"date",range:h,height:i[0],updateDay:this.updateDay,updateHeight:this.updateHeight,columnId:"0"})];return"month"!==t&&"day"!==t||l.push(e("taro-picker-group",{mode:"date",range:d,height:i[1],updateDay:this.updateDay,updateHeight:this.updateHeight,columnId:"1"})),"day"===t&&l.push(e("taro-picker-group",{mode:"date",range:c,height:i[2],updateDay:this.updateDay,updateHeight:this.updateHeight,columnId:"2"})),l},this.mode="selector",this.disabled=!1,this.range=[],this.rangeKey=void 0,this.value=void 0,this.start="",this.end="",this.fields="day",this.name="",this.textProps={},this.pickerValue=[],this.height=[],this.hidden=!0,this.fadeOut=!1,this.isWillLoadCalled=!1}componentWillLoad(){this.isWillLoadCalled=!0,this.handleProps()}componentDidLoad(){this.overlay&&document.body.appendChild(this.overlay)}disconnectedCallback(){var t;this.overlay&&(null===(t=this.overlay.parentNode)||void 0===t||t.removeChild(this.overlay))}onPropsChange(){this.isWillLoadCalled&&this.handleProps()}handleProps(){const{mode:t,start:i,end:e}=this;if("selector"===t){const t=this.value;this.index=[d(t,this.range)?Math.floor(t):0]}else if("multiSelector"===t){const t=this.value;this.index=[],this.range.forEach(((i,e)=>{const s=null==t?void 0:t[e],o=d(s,i)?Math.floor(s):0;this.index.push(o)}))}else if("time"===t){let t=this.value;c(t)||(console.warn("time picker value illegal"),t="0:0");const i=t.split(":").map((t=>+t));this.index=i}else{if("date"!==t)throw new Error(`Picker not support "${t}" mode.`);{let t=u(this.value)||new Date((new Date).setHours(0,0,0,0));const s=u(i)||new Date("1970/01/01"),o=u(e)||new Date("2999/01/01");if(!(s<=o))throw new Error("Picker start time must be less than end time.");t>=s&&t<=o||(t=s);const n=t.getFullYear(),a=t.getMonth()+1,r=t.getDate(),h=m(s.getFullYear(),o.getFullYear()),d=g(s,o,n),c=w(s,o,n,a);this.index=[h.indexOf(n),d.indexOf(a),c.indexOf(r)],this.pickerDate&&this.pickerDate._value.getTime()===t.getTime()&&this.pickerDate._start.getTime()===s.getTime()&&this.pickerDate._end.getTime()===o.getTime()||(this.pickerDate={_value:t,_start:s,_end:o,_updateValue:[n,a,r]})}}if(this.height=this.getHeightByIndex(),this.pickerValue=this.value,"date"===t){const t=this.pickerValue;"month"===this.fields?this.pickerValue=t.split("-").slice(0,2).join("-"):"year"===this.fields&&(this.pickerValue=t.split("-")[0])}}render(){var t,i;const{name:o,mode:a,fadeOut:r,hidden:h}=this;let d;switch(a){case"multiSelector":d=this.getMultiSelector();break;case"time":d=this.getTimeSelector();break;case"date":d=this.getDateSelector();break;default:d=this.getSelector()}const c=n("weui-mask","weui-animate-fade-in",{"weui-animate-fade-out":r}),l=n("weui-picker","weui-animate-slide-up",{"weui-animate-slide-down":r}),u=h?{display:"none"}:{};return e(s,null,e("div",{onClick:this.showPicker},e("slot",null),e("input",{type:"hidden",name:o,value:p(this.pickerValue)})),e("div",{class:"weui-picker__overlay",style:u,ref:t=>{this.overlay=t}},e("div",{class:c,onClick:this.handleCancel}),e("div",{class:l},e("div",{class:"weui-picker__hd"},e("div",{class:"weui-picker__action",onClick:this.handleCancel},null!==(t=this.textProps.cancelText)&&void 0!==t?t:"取消"),e("div",{class:"weui-picker__action",onClick:this.handleChange},null!==(i=this.textProps.okText)&&void 0!==i?i:"确定")),e("div",{class:"weui-picker__bd"},d),e("input",{type:"hidden",name:o,value:p(this.pickerValue)}))))}get el(){return o(this)}static get watchers(){return{mode:["onPropsChange"],value:["onPropsChange"],range:["onPropsChange"],start:["onPropsChange"],end:["onPropsChange"]}}};_.style='.weui-mask{z-index:1000;background:rgba(0,0,0,.6);position:fixed;inset:0}.weui-mask_transparent{z-index:1000;position:fixed;inset:0}@-webkit-keyframes weuiSlideUp{0%{-webkit-transform:translateY(100%);transform:translateY(100%)}to{-webkit-transform:translate(0,0);transform:translate(0,0)}}@keyframes weuiSlideUp{0%{-webkit-transform:translateY(100%);transform:translateY(100%)}to{-webkit-transform:translate(0,0);transform:translate(0,0)}}.weui-animate-slide-up{-webkit-animation:.3s forwards weuiSlideUp;animation:.3s forwards weuiSlideUp}@-webkit-keyframes weuiSlideDown{0%{-webkit-transform:translate(0,0);transform:translate(0,0)}to{-webkit-transform:translateY(100%);transform:translateY(100%)}}@keyframes weuiSlideDown{0%{-webkit-transform:translate(0,0);transform:translate(0,0)}to{-webkit-transform:translateY(100%);transform:translateY(100%)}}.weui-animate-slide-down{-webkit-animation:.3s forwards weuiSlideDown;animation:.3s forwards weuiSlideDown}@-webkit-keyframes weuiFadeIn{0%{opacity:0}to{opacity:1}}@keyframes weuiFadeIn{0%{opacity:0}to{opacity:1}}.weui-animate-fade-in{-webkit-animation:.3s forwards weuiFadeIn;animation:.3s forwards weuiFadeIn}@-webkit-keyframes weuiFadeOut{0%{opacity:1}to{opacity:0}}@keyframes weuiFadeOut{0%{opacity:1}to{opacity:0}}.weui-animate-fade-out{-webkit-animation:.3s forwards weuiFadeOut;animation:.3s forwards weuiFadeOut}.weui-picker{-webkit-box-sizing:border-box;box-sizing:border-box;z-index:5000;background-color:var(--weui-BG-2);padding-left:0;padding-left:constant(safe-area-inset-left);padding-left:env(safe-area-inset-left);padding-right:0;padding-right:constant(safe-area-inset-right);padding-right:env(safe-area-inset-right);-webkit-backface-visibility:hidden;backface-visibility:hidden;width:100%;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s, -webkit-transform .3s;position:fixed;bottom:0;left:0;-webkit-transform:translateY(100%);transform:translateY(100%)}.weui-picker__hd{text-align:center;background-color:#fff;padding:9px 15px;font-size:17px;display:-ms-flexbox;display:flex;position:relative}.weui-picker__hd:after{content:" ";color:#e5e5e5;-webkit-transform-origin:0 100%;transform-origin:0 100%;border-bottom:1px solid #e5e5e5;height:1px;position:absolute;bottom:0;left:0;right:0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.weui-picker__action{color:#1aad19;-ms-flex:1;flex:1;display:block}.weui-picker__action:first-child{text-align:left;color:#888}.weui-picker__action:last-child{text-align:right}.weui-picker__bd{background-color:#fff;height:238px;display:-ms-flexbox;display:flex;position:relative;overflow:hidden}.weui-picker__group{-ms-flex:1;flex:1;height:100%;position:relative}.weui-picker__mask{z-index:3;background-color:transparent;background-image:-webkit-gradient(linear,left top, left bottom,from(rgba(255,255,255,.95)),to(rgba(255,255,255,.6))),-webkit-gradient(linear,left top, left bottom,from(rgba(255,255,255,.6)),to(rgba(255,255,255,.95)));background-image:linear-gradient(rgba(255,255,255,.95),rgba(255,255,255,.6)),linear-gradient(rgba(255,255,255,.6),rgba(255,255,255,.95));background-position:top,bottom;background-repeat:no-repeat;background-size:100% 102px;background-attachment:scroll,scroll;background-origin:padding-box,padding-box;background-clip:border-box,border-box;width:100%;height:100%;margin:0 auto;position:absolute;top:0;left:0;-webkit-transform:translateZ(0);transform:translateZ(0)}.weui-picker__indicator{z-index:3;width:100%;height:34px;position:absolute;top:102px;left:0}.weui-picker__indicator:before{content:" ";color:#e5e5e5;-webkit-transform-origin:0 0;transform-origin:0 0;border-top:1px solid #e5e5e5;height:1px;position:absolute;top:0;left:0;right:0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.weui-picker__indicator:after{content:" ";color:#e5e5e5;-webkit-transform-origin:0 100%;transform-origin:0 100%;border-bottom:1px solid #e5e5e5;height:1px;position:absolute;bottom:0;left:0;right:0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.weui-picker__content{width:100%;position:absolute;top:0;left:0}.weui-picker__item{text-align:center;color:#000;text-overflow:ellipsis;white-space:nowrap;height:34px;padding:0;line-height:34px;overflow:hidden}.weui-picker__item_disabled{color:#999}.weui-picker,.weui-picker__hd{font-size:12px}';const v=class{constructor(e){t(this,e),this.onColumnChange=i(this,"columnChange",7),this.mode=void 0,this.range=[],this.rangeKey=void 0,this.height=void 0,this.columnId=void 0,this.updateHeight=void 0,this.updateDay=void 0,this.startY=void 0,this.preY=void 0,this.hadMove=void 0,this.touchEnd=void 0,this.isMove=void 0}getPosition(){const t=`translate3d(0, ${this.height}px, 0)`,i=`transform ${this.touchEnd?.3:0}s`;return{transform:t,"-webkit-transform":t,transition:i,"-webkit-transition":i}}formulaUnlimitedScroll(t,i,e){const{height:s,updateHeight:o,columnId:n}=this,a="up"===e?1:-1;this.touchEnd=!1,o(-t*a*b+s,n),requestAnimationFrame((()=>{this.touchEnd=!0;const e=Math.round(i/-34)+t*a;o(k-b*e,n,!0)}))}async handleMoveStart(t){this.startY=t,this.preY=t,this.hadMove=!1}async handleMoving(t){const i=t,e=i-this.preY;this.preY=i,this.touchEnd=!1,Math.abs(i-this.startY)>10&&(this.hadMove=!0);let s=this.height+e;"time"===this.mode&&("0"===this.columnId?(s>0&&(s=-816+e),s<-850&&(s=-34+e)):"1"===this.columnId&&(s>0&&(s=-2040+e),s<-2074&&(s=-34+e))),this.updateHeight(s,this.columnId)}async handleMoveEnd(t){const{mode:i,range:e,height:s,updateHeight:o,columnId:n}=this,a=-34*(e.length-1),r=t;let h;if(this.touchEnd=!0,this.hadMove)h=s-k;else{const t=window.innerHeight;if(h=s-k-(r-(t-119)),"time"===i)if("0"===n){if(h>-85)return this.formulaUnlimitedScroll(24,h,"up");if(h<-969)return this.formulaUnlimitedScroll(24,h,"down")}else if("1"===n){if(h>-85)return this.formulaUnlimitedScroll(60,h,"up");if(h<-2193)return this.formulaUnlimitedScroll(60,h,"down")}}h>0&&(h=0),h<a&&(h=a);const d=Math.round(h/-34),c=k-b*d;"date"===this.mode&&"function"==typeof this.updateDay&&("0"===this.columnId&&this.updateDay(+this.range[d].replace(/[^0-9]/gi,""),0),"1"===this.columnId&&this.updateDay(+this.range[d].replace(/[^0-9]/gi,""),1),"2"===this.columnId&&this.updateDay(+this.range[d].replace(/[^0-9]/gi,""),2)),o(c,n,"time"===i),this.onColumnChange.emit({columnId:n,height:c})}onMouseDown(t){this.isMove=!0,this.handleMoveStart(t.clientY)}onMouseMove(t){this.isMove&&this.handleMoving(t.clientY)}onMouseMoveEnd(t){this.isMove&&(this.isMove=!1,this.handleMoveEnd(t.clientY))}onTouchStart(t){this.handleMoveStart(t.changedTouches[0].clientY)}onTouchMove(t){this.handleMoving(t.changedTouches[0].clientY)}onTouchEnd(t){this.handleMoveEnd(t.changedTouches[0].clientY)}render(){const{range:t,rangeKey:i}=this,o=t.map((t=>e("div",{class:"weui-picker__item"},i?t[i]:t)));return e(s,{class:"weui-picker__group"},e("div",{class:"weui-picker__mask"}),e("div",{class:"weui-picker__indicator"}),e("div",{class:"weui-picker__content",style:this.getPosition()},o))}};export{_ as taro_picker_core,v as taro_picker_group}
@@ -0,0 +1 @@
1
+ import{r as o,h as r,H as s}from"./p-d0cabaaa.js";import{n as t}from"./p-dbdb9de9.js";import"@tarojs/taro";const a=class{constructor(r){o(this,r)}componentDidLoad(){t("NestedScrollBody",this)}render(){return r(s,null)}};export{a as taro_nested_scroll_body_core}
@@ -1 +1 @@
1
- import{r as t,c as o,h as r,H as e,g as a}from"./p-e62a1287.js";import{c as i}from"./p-160d710a.js";const n=class{constructor(r){t(this,r),this.onSubmit=o(this,"tarobuttonsubmit",7),this.onReset=o(this,"tarobuttonreset",7),this.disabled=void 0,this.hoverClass="button-hover",this.type="",this.hoverStartTime=20,this.hoverStayTime=70,this.size=void 0,this.plain=void 0,this.loading=!1,this.formType=null,this.hover=!1,this.touch=!1}onClick(t){this.disabled&&t.stopPropagation()}onTouchStart(){this.disabled||(this.touch=!0,this.hoverClass&&!this.disabled&&setTimeout((()=>{this.touch&&(this.hover=!0)}),this.hoverStartTime))}onTouchEnd(){this.disabled||(this.touch=!1,this.hoverClass&&!this.disabled&&setTimeout((()=>{this.touch||(this.hover=!1)}),this.hoverStayTime),"submit"===this.formType?this.onSubmit.emit():"reset"===this.formType&&this.onReset.emit())}render(){const{disabled:t,hoverClass:o,type:a,size:n,plain:l,loading:d,hover:c}=this,b=i({[`${o}`]:c&&!t});return r(e,{class:b,type:a,plain:l,loading:d,size:n,disabled:t},d&&r("i",{class:"weui-loading"}),r("slot",null))}get el(){return a(this)}};n.style=".weui-loading{vertical-align:middle;background:url(\"data:image/svg+xml;charset=utf8, %3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cpath fill='none' d='M0 0h100v100H0z'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E9E9E9' rx='5' ry='5' transform='translate(0 -30)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23989697' rx='5' ry='5' transform='rotate(30 105.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%239B999A' rx='5' ry='5' transform='rotate(60 75.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23A3A1A2' rx='5' ry='5' transform='rotate(90 65 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23ABA9AA' rx='5' ry='5' transform='rotate(120 58.66 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23B2B2B2' rx='5' ry='5' transform='rotate(150 54.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23BAB8B9' rx='5' ry='5' transform='rotate(180 50 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23C2C0C1' rx='5' ry='5' transform='rotate(-150 45.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23CBCBCB' rx='5' ry='5' transform='rotate(-120 41.34 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23D2D2D2' rx='5' ry='5' transform='rotate(-90 35 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23DADADA' rx='5' ry='5' transform='rotate(-60 24.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E2E2E2' rx='5' ry='5' transform='rotate(-30 -5.98 65)'/%3E%3C/svg%3E\") 0 0/100% no-repeat;width:20px;height:20px;-webkit-animation:1s steps(12,end) infinite weuiLoading;animation:1s steps(12,end) infinite weuiLoading;display:inline-block}@-webkit-keyframes weuiLoading{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes weuiLoading{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.weui-btn_loading .weui-loading{margin:-.2em .34em 0 0}.weui-btn_loading.weui-btn_primary,.weui-btn_loading.weui-btn_warn{color:rgba(255,255,255,.6)}.weui-btn_loading.weui-btn_primary{background-color:#179b16}.weui-btn_loading.weui-btn_warn{background-color:#ce3c39}taro-button-core{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-align:center;color:#000;-webkit-tap-highlight-color:transparent;background-color:#f8f8f8;border-width:0;border-radius:5px;outline:0;width:100%;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px;font-size:18px;line-height:2.55556;text-decoration:none;display:block;position:relative;overflow:hidden}taro-button-core:focus{outline:0}taro-button-core:not([disabled]):active{color:rgba(0,0,0,.6);background-color:#dedede}taro-button-core:after{-webkit-box-sizing:border-box;box-sizing:border-box;content:\" \";-webkit-transform-origin:0 0;transform-origin:0 0;border:1px solid rgba(0,0,0,.2);border-radius:10px;width:200%;height:200%;position:absolute;top:0;left:0;-webkit-transform:scale(.5);transform:scale(.5)}taro-button-core+taro-button-core{margin-top:15px}taro-button-core[type=default]{color:#000;background-color:#f8f8f8}taro-button-core[type=default]:not([disabled]):visited{color:#000}taro-button-core[type=default]:not([disabled]):active{color:rgba(0,0,0,.6);background-color:#dedede}taro-button-core[size=mini]{width:auto;padding:0 1.32em;font-size:13px;line-height:2.3;display:inline-block}taro-button-core[plain],taro-button-core[plain][type=default],taro-button-core[plain][type=primary]{background-color:transparent;border-width:1px}taro-button-core[disabled]{color:rgba(255,255,255,.6)}taro-button-core[disabled][type=default]{color:rgba(0,0,0,.3);background-color:#f7f7f7}taro-button-core[disabled][type=primary]{background-color:#9ed99d}taro-button-core[disabled][type=warn]{background-color:#ec8b89}taro-button-core[loading] .weui-loading{margin:-.2em .34em 0 0}taro-button-core[loading][type=primary],taro-button-core[loading][type=warn]{color:rgba(255,255,255,.6)}taro-button-core[loading][type=primary]{background-color:#179b16}taro-button-core[loading][type=warn]{background-color:#ce3c39}taro-button-core[plain][type=primary]{color:#1aad19;border:1px solid #1aad19}taro-button-core[plain][type=primary]:not([disabled]):active{color:rgba(26,173,25,.6);background-color:transparent;border-color:rgba(26,173,25,.6)}taro-button-core[plain][type=primary]:after{border-width:0}taro-button-core[plain][type=warn]{color:#e64340;border:1px solid #e64340}taro-button-core[plain][type=warn]:not([disabled]):active{color:rgba(230,67,64,.6);background-color:transparent;border-color:rgba(230,67,64,.6)}taro-button-core[plain][type=warn]:after{border-width:0}taro-button-core[plain],taro-button-core[plain][type=default]{color:#353535;border:1px solid #353535}taro-button-core[plain]:not([disabled]):active,taro-button-core[plain][type=default]:not([disabled]):active{color:rgba(53,53,53,.6);background-color:transparent;border-color:rgba(53,53,53,.6)}taro-button-core[plain]:after,taro-button-core[plain][type=default]:after{border-width:0}taro-button-core[type=primary]{color:#fff;background-color:#1aad19}taro-button-core[type=primary]:not([disabled]):visited{color:#fff}taro-button-core[type=primary]:not([disabled]):active{color:rgba(255,255,255,.6);background-color:#179b16}taro-button-core[type=warn]{color:#fff;background-color:#e64340}taro-button-core[type=warn]:not([disabled]):visited{color:#fff}taro-button-core[type=warn]:not([disabled]):active{color:rgba(255,255,255,.6);background-color:#ce3c39}taro-button-core[plain][disabled],taro-button-core[plain][disabled][type=primary]{color:rgba(0,0,0,.3);background-color:#f7f7f7;border:1px solid rgba(0,0,0,.2)}";export{n as taro_button_core}
1
+ import{r as t,c as o,h as r,H as e,g as a}from"./p-d0cabaaa.js";import{c as i}from"./p-160d710a.js";const n=class{constructor(r){t(this,r),this.onSubmit=o(this,"tarobuttonsubmit",7),this.onReset=o(this,"tarobuttonreset",7),this.disabled=void 0,this.hoverClass="button-hover",this.type="",this.hoverStartTime=20,this.hoverStayTime=70,this.size=void 0,this.plain=void 0,this.loading=!1,this.formType=null,this.hover=!1,this.touch=!1}onClick(t){this.disabled&&t.stopPropagation()}onTouchStart(){this.disabled||(this.touch=!0,this.hoverClass&&!this.disabled&&setTimeout((()=>{this.touch&&(this.hover=!0)}),this.hoverStartTime))}onTouchEnd(){this.disabled||(this.touch=!1,this.hoverClass&&!this.disabled&&setTimeout((()=>{this.touch||(this.hover=!1)}),this.hoverStayTime),"submit"===this.formType?this.onSubmit.emit():"reset"===this.formType&&this.onReset.emit())}render(){const{disabled:t,hoverClass:o,type:a,size:n,plain:l,loading:d,hover:c}=this,b=i({[`${o}`]:c&&!t});return r(e,{class:b,type:a,plain:l,loading:d,size:n,disabled:t},d&&r("i",{class:"weui-loading"}),r("slot",null))}get el(){return a(this)}};n.style=".weui-loading{vertical-align:middle;background:url(\"data:image/svg+xml;charset=utf8, %3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cpath fill='none' d='M0 0h100v100H0z'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E9E9E9' rx='5' ry='5' transform='translate(0 -30)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23989697' rx='5' ry='5' transform='rotate(30 105.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%239B999A' rx='5' ry='5' transform='rotate(60 75.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23A3A1A2' rx='5' ry='5' transform='rotate(90 65 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23ABA9AA' rx='5' ry='5' transform='rotate(120 58.66 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23B2B2B2' rx='5' ry='5' transform='rotate(150 54.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23BAB8B9' rx='5' ry='5' transform='rotate(180 50 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23C2C0C1' rx='5' ry='5' transform='rotate(-150 45.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23CBCBCB' rx='5' ry='5' transform='rotate(-120 41.34 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23D2D2D2' rx='5' ry='5' transform='rotate(-90 35 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23DADADA' rx='5' ry='5' transform='rotate(-60 24.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E2E2E2' rx='5' ry='5' transform='rotate(-30 -5.98 65)'/%3E%3C/svg%3E\") 0 0/100% no-repeat;width:20px;height:20px;-webkit-animation:1s steps(12,end) infinite weuiLoading;animation:1s steps(12,end) infinite weuiLoading;display:inline-block}@-webkit-keyframes weuiLoading{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes weuiLoading{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.weui-btn_loading .weui-loading{margin:-.2em .34em 0 0}.weui-btn_loading.weui-btn_primary,.weui-btn_loading.weui-btn_warn{color:rgba(255,255,255,.6)}.weui-btn_loading.weui-btn_primary{background-color:#179b16}.weui-btn_loading.weui-btn_warn{background-color:#ce3c39}taro-button-core{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-align:center;color:#000;-webkit-tap-highlight-color:transparent;background-color:#f8f8f8;border-width:0;border-radius:5px;outline:0;width:100%;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px;font-size:18px;line-height:2.55556;text-decoration:none;display:block;position:relative;overflow:hidden}taro-button-core:focus{outline:0}taro-button-core:not([disabled]):active{color:rgba(0,0,0,.6);background-color:#dedede}taro-button-core:after{-webkit-box-sizing:border-box;box-sizing:border-box;content:\" \";-webkit-transform-origin:0 0;transform-origin:0 0;border:1px solid rgba(0,0,0,.2);border-radius:10px;width:200%;height:200%;position:absolute;top:0;left:0;-webkit-transform:scale(.5);transform:scale(.5)}taro-button-core+taro-button-core{margin-top:15px}taro-button-core[type=default]{color:#000;background-color:#f8f8f8}taro-button-core[type=default]:not([disabled]):visited{color:#000}taro-button-core[type=default]:not([disabled]):active{color:rgba(0,0,0,.6);background-color:#dedede}taro-button-core[size=mini]{width:auto;padding:0 1.32em;font-size:13px;line-height:2.3;display:inline-block}taro-button-core[plain],taro-button-core[plain][type=default],taro-button-core[plain][type=primary]{background-color:transparent;border-width:1px}taro-button-core[disabled]{color:rgba(255,255,255,.6)}taro-button-core[disabled][type=default]{color:rgba(0,0,0,.3);background-color:#f7f7f7}taro-button-core[disabled][type=primary]{background-color:#9ed99d}taro-button-core[disabled][type=warn]{background-color:#ec8b89}taro-button-core[loading] .weui-loading{margin:-.2em .34em 0 0}taro-button-core[loading][type=primary],taro-button-core[loading][type=warn]{color:rgba(255,255,255,.6)}taro-button-core[loading][type=primary]{background-color:#179b16}taro-button-core[loading][type=warn]{background-color:#ce3c39}taro-button-core[plain][type=primary]{color:#1aad19;border:1px solid #1aad19}taro-button-core[plain][type=primary]:not([disabled]):active{color:rgba(26,173,25,.6);background-color:transparent;border-color:rgba(26,173,25,.6)}taro-button-core[plain][type=primary]:after{border-width:0}taro-button-core[plain][type=warn]{color:#e64340;border:1px solid #e64340}taro-button-core[plain][type=warn]:not([disabled]):active{color:rgba(230,67,64,.6);background-color:transparent;border-color:rgba(230,67,64,.6)}taro-button-core[plain][type=warn]:after{border-width:0}taro-button-core[plain],taro-button-core[plain][type=default]{color:#353535;border:1px solid #353535}taro-button-core[plain]:not([disabled]):active,taro-button-core[plain][type=default]:not([disabled]):active{color:rgba(53,53,53,.6);background-color:transparent;border-color:rgba(53,53,53,.6)}taro-button-core[plain]:after,taro-button-core[plain][type=default]:after{border-width:0}taro-button-core[type=primary]{color:#fff;background-color:#1aad19}taro-button-core[type=primary]:not([disabled]):visited{color:#fff}taro-button-core[type=primary]:not([disabled]):active{color:rgba(255,255,255,.6);background-color:#179b16}taro-button-core[type=warn]{color:#fff;background-color:#e64340}taro-button-core[type=warn]:not([disabled]):visited{color:#fff}taro-button-core[type=warn]:not([disabled]):active{color:rgba(255,255,255,.6);background-color:#ce3c39}taro-button-core[plain][disabled],taro-button-core[plain][disabled][type=primary]{color:rgba(0,0,0,.3);background-color:#f7f7f7;border:1px solid rgba(0,0,0,.2)}";export{n as taro_button_core}
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,a,o){function n(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,i){function r(t){try{s(o.next(t))}catch(t){i(t)}}function l(t){try{s(o["throw"](t))}catch(t){i(t)}}function s(t){t.done?a(t.value):n(t.value).then(r,l)}s((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,n,i,r;return r={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function l(t){return function(e){return s([t,e])}}function s(l){if(o)throw new TypeError("Generator is already executing.");while(r&&(r=0,l[0]&&(a=0)),a)try{if(o=1,n&&(i=l[0]&2?n["return"]:l[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;if(n=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:a.label++;return{value:l[1],done:false};case 5:a.label++;n=l[1];l=[0];continue;case 7:l=a.ops.pop();a.trys.pop();continue;default:if(!(i=a.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){a=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){a.label=l[1];break}if(l[0]===6&&a.label<i[1]){a.label=i[1];i=l;break}if(i&&a.label<i[2]){a.label=i[2];a.ops.push(l);break}if(i[2])a.ops.pop();a.trys.pop();continue}l=e.call(t,a)}catch(t){l=[6,t];n=0}finally{o=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};System.register(["./p-75d01c60.system.js","hammerjs"],(function(t){"use strict";var e,a,o,n,i,r;return{setters:[function(t){e=t.r;a=t.c;o=t.h;n=t.H;i=t.g},function(t){r=t.default}],execute:function(){var l=".BMap_cpyCtrl,.anchorBL img,.BMap_bubble_buttons{display:none}";var s=t("taro_map_core",function(){function t(t){var o=this;e(this,t);this.onTap=a(this,"tap",7);this.currentRotation=0;this._getCenterLocation=function(t){o.map.getOverlays().forEach((function(t){if(t instanceof BMapGL.Marker&&t.isCenterMarker){o.map.removeOverlay(t)}}));t.iconPath="https://img0.baidu.com/it/u=2604176863,3349829508&fm=253&fmt=auto&app=138&f=PNG?w=243&h=243";var e=new BMapGL.Icon(t.iconPath,new BMapGL.Size(20,30));var a=[o.longitude,o.latitude];var n=new BMapGL.Marker(new BMapGL.Point(o.longitude,o.latitude),{icon:e});n.isCenterMarker=true;o.map.addOverlay(n);return a};this._setLocMarkerIcon=function(t){var e=new BMapGL.Icon(t.iconPath,new BMapGL.Size(20,30));var a=new BMapGL.Point(116.404,39.915);var n=new BMapGL.Marker(a,{icon:e});o.map.addOverlay(n)};this._translateMarker=function(t){var e=t.destination.latitude;var a=t.destination.longitude;if(e<-80&&e>=-90){e=t.destination.latitude+10}var n=new BMapGL.Point(a,e);var i={flagId:true,flagCoordinate:true};var r={errMsg:"animationEnd:ok"};var l=o.map.getOverlays();var s=l.find((function(e){return e instanceof BMapGL.Marker&&e.id===t.markerId}));if(!s){console.error('Marker "'.concat(t.markerId,'" not found.'));i.flagId=false;return i}if(e>90||e<-90||a>180||a<-180||isNaN(e)||isNaN(a)){i.flagCoordinate=false;return i}var d=s.getPosition();var u={lng:(n.lng-d.lng)/(t.duration/16),lat:(n.lat-d.lat)/(t.duration/16)};var c=s.getRotation();var p=t.rotate;if(!o.currentRotation){o.currentRotation=p}else{o.currentRotation+=p}var h=(o.currentRotation-c)/(t.duration/16);var v=d;var f=c;if(!t.moveWithRotate&&t.autoRotate){var g=0;var m=setInterval((function(){v=new BMapGL.Point(v.lng+u.lng,v.lat+u.lat);s.setPosition(v);g++;if(g>=t.duration/16){clearInterval(m);var e=0;var a=setInterval((function(){f+=h;s.setRotation(f);e++;if(e>=t.duration/16){clearInterval(a);t===null||t===void 0?void 0:t.animationEnd(r)}}),16)}}),16)}else if(t.moveWithRotate&&t.autoRotate){var b=0;var w=setInterval((function(){v=new BMapGL.Point(v.lng+u.lng,v.lat+u.lat);s.setPosition(v);f+=h;s.setRotation(f);b++;if(b>=t.duration/16){clearInterval(w);t===null||t===void 0?void 0:t.animationEnd(r)}}),16)}else if(t.moveWithRotate&&!t.autoRotate){var y=0;var M=setInterval((function(){v=new BMapGL.Point(v.lng+u.lng,v.lat+u.lat);s.setPosition(v);y++;if(y>=t.duration/16){clearInterval(M);t===null||t===void 0?void 0:t.animationEnd(r)}}),16)}return i};this._includePoints=function(t){var e=t.points.map((function(t){return new BMapGL.Point(t.longitude,t.latitude)}));var a=o.map.getZoom();var n=o.map.getCenter();var i=o.map.getViewport(e);o.map.centerAndZoom(i.center,i.zoom);var r=o.map.getBounds();var l=true;for(var s=0;s<e.length;s++){if(!r.containsPoint(e[s])){o.map.centerAndZoom(n,a);l=false;break}}return l};this._getRegion=function(){var t=o.map.getBounds();var e=t.getSouthWest();var a=t.getNorthEast();return{southwest:{lat:e.lat,lng:e.lng},northeast:{lat:a.lat,lng:a.lng}}};this._getRotate=function(){var t=o.rotate;if(t<0||t>360){t=0}return t};this._getSkew=function(){var t=o.skew;if(t<0||t>40){t=0}return t};this._getScale=function(){var t=o.scale;return t};this._setCenterOffset=function(t){var e=t.offset,a=e[0],n=e[1];var i=o.map.getSize();var r=Math.max(.25*i.width,Math.min(.75*i.width,a*i.width));var l=Math.max(.25*i.height,Math.min(.75*i.height,n*i.height));var s=new BMapGL.Pixel(r,l);var d=o.map.pixelToPoint(s);o.map.panTo(d)};this._addMarkers=function(t){if(t.clear){o.map.clearOverlays(o.markers)}t.markers.forEach((function(e){var a,n,i,l,s,d,u,c,p,h,v,f,g,m;if(e.latitude&&e.longitude&&e.iconPath){var b=new BMapGL.Point(e.longitude,e.latitude);var w=new BMapGL.Marker(b,{enableClicking:true});o.map.addOverlay(w);w.id=e.id;w.alpha=e.alpha;if(e.zIndex){w.setZIndex(e.zIndex)}if(e.width&&e.height&&e.iconPath){var y=new BMapGL.Icon(e.iconPath,new BMapGL.Size(e.width,e.height));w.setIcon(y)}else if(e.iconPath){var M=new Image;M.src=e.iconPath;M.style.opacity=String(e.alpha);M.onload=function(){var t=new BMapGL.Size(M.width,M.height);var a=new BMapGL.Icon(M.src,t);a.imageOffset=new BMapGL.Size(0,0,e.alpha||1);w.setIcon(a)}}else{console.error("没有找到iconPath图片路径");return}var x=e.rotate?e.rotate:0;if(x){w.setRotation(x)}if(e.anchor){var B=((n=(a=e.anchor)===null||a===void 0?void 0:a.x)!==null&&n!==void 0?n:0)*(e.width||0);var L=((l=(i=e.anchor)===null||i===void 0?void 0:i.y)!==null&&l!==void 0?l:0)*(e.height||0);w.setOffset(new BMapGL.Size(B,L))}if(!e.callout&&e.title){var _=new r(o.mapRef);_.on("tap",(function(e){var a=e.center;var n=a.x;var i=a.y;var r=15;t.markers.forEach((function(t){var e=document.getElementsByClassName("bmap-container")[0];var a=e.getBoundingClientRect();var l=a.left;var s=a.top;var d=new BMapGL.Point(t.longitude,t.latitude);var u=o.map.pointToPixel(d);var c=u.x+l;var p=u.y+s;var h=Math.sqrt(Math.pow(n-c,2)+Math.pow(i-p,2));if(h<r&&t.id===w.id){var v='<div style="text-align:center">'.concat(t.title,"</div>");var f=new BMapGL.InfoWindow(v);o.map.openInfoWindow(f,b)}}))}))}if(e.callout){var B=((s=e.callout)===null||s===void 0?void 0:s.anchorX)?(d=e.callout)===null||d===void 0?void 0:d.anchorX:0;var L=((u=e.callout)===null||u===void 0?void 0:u.anchorY)?(c=e.callout)===null||c===void 0?void 0:c.anchorY:0;var P=new BMapGL.InfoWindow('<div style="\n padding: '.concat((p=e.callout)===null||p===void 0?void 0:p.padding,"px;\n color:").concat((h=e.callout)===null||h===void 0?void 0:h.color,";\n text-align:").concat((v=e.callout)===null||v===void 0?void 0:v.textAlign,';"\n >\n <p style="font-size:').concat((f=e.callout)===null||f===void 0?void 0:f.fontSize,'px">').concat(((g=e.callout)===null||g===void 0?void 0:g.content)||"","</p>\n </div>"),{width:200,height:100,offset:new BMapGL.Size(B-24,L-20)});w.callout=P;o.map.addOverlay(w);if(((m=e.callout)===null||m===void 0?void 0:m.display)==="ALWAYS"){w.callout.disableCloseOnClick();var G=w.getPosition();w.callout.addEventListener("open",(function(){var t,a,o,n;console.log(w.callout);var i=document.querySelector(".BMap_bubble_pop");if(i){var r=i.querySelector(".triangle");if(!r){r=document.createElement("div");r.className="triangle";i.appendChild(r)}var l=document.querySelector(".BMap_bubble_pop>img");if(l){l.setAttribute("style","position: absolute;transform: translate(-50%, 0); top: ".concat(G.lat-100,"px; left: ").concat(G.lng-20,"px;display:none"))}var s=(t=e.callout)===null||t===void 0?void 0:t.bgColor;var d=((a=e.callout)===null||a===void 0?void 0:a.borderWidth)||5;var u=(o=e.callout)===null||o===void 0?void 0:o.borderColor;var c=(n=e.callout)===null||n===void 0?void 0:n.borderRadius;d=Math.min(d,15);r.setAttribute("style","width:0;height:0;border-left:".concat(d,"px solid transparent;border-right:").concat(d,"px solid transparent;border-top:").concat(d,"px solid ").concat(u,";position:absolute;left:83px;bottom:-").concat(2*d,"px"));i.setAttribute("style","background-color:".concat(s,";top:").concat(G.lat-120,"px; left:").concat(G.lng-100,"px;position: absolute;border: ").concat(d,"px solid ").concat(u,";border-radius:").concat(c,"px; "))}}));o.map.openInfoWindow(w.callout,b)}else{var _=new r(o.mapRef);_.on("tap",(function(e){var a=e.center;var n=a.x;var i=a.y;var r=15;t.markers.forEach((function(t){var e=document.getElementsByClassName("bmap-container")[0];var a=e.getBoundingClientRect();var l=a.left;var s=a.top;var d=new BMapGL.Point(t.longitude,t.latitude);var u=o.map.pointToPixel(d);var c=u.x+l;var p=u.y+s;var h=Math.sqrt(Math.pow(n-c,2)+Math.pow(i-p,2));if(h<r&&t.id===w.id){var v=w.getPosition();w.callout.addEventListener("open",(function(){var e,a,o,n;console.log(w.callout);var i=document.querySelector(".BMap_bubble_pop");if(i){var r=i.querySelector(".triangle");if(!r){r=document.createElement("div");r.className="triangle";i.appendChild(r)}var l=document.querySelector(".BMap_bubble_pop>img");if(l){l.setAttribute("style","position: absolute;transform: translate(-50%, 0); top: ".concat(v.lat-100,"px; left: ").concat(v.lng-20,"px;display:none"))}var s=(e=t.callout)===null||e===void 0?void 0:e.bgColor;var d=((a=t.callout)===null||a===void 0?void 0:a.borderWidth)||5;var u=(o=t.callout)===null||o===void 0?void 0:o.borderColor;var c=(n=t.callout)===null||n===void 0?void 0:n.borderRadius;d=Math.min(d,15);r.setAttribute("style","width:0;height:0;border-left:".concat(d,"px solid transparent;border-right:").concat(d,"px solid transparent;border-top:").concat(d,"px solid ").concat(u,";position:absolute;left:83px;bottom:-").concat(2*d,"px"));i.setAttribute("style","background-color:".concat(s,";top:").concat(v.lat-120,"px; left:").concat(v.lng-100,"px;position: absolute;border: ").concat(d,"px solid ").concat(u,";border-radius:").concat(c,"px; "))}}));o.map.openInfoWindow(w.callout,b)}else{w.callout.enableCloseOnClick()}}))}))}}if(e.label){var S=e.label.content||"";var k={position:b,offset:new BMapGL.Size(e.label.anchorX||0,e.label.anchorY||0)};var C=new BMapGL.Label(S,k);C.setStyle({color:e.label.color,fontSize:e.label.fontSize+"px",borderWidth:e.label.borderWidth+"px",borderColor:e.label.borderColor,borderRadius:e.label.borderRadius+"px",background:e.label.bgColor,padding:e.label.padding+"px"});w.setLabel(C)}}}))};this._removeMarkers=function(t){var e=o.map.getOverlays();var a={};t.markerIds.forEach((function(t){var n=e.find((function(e){return e instanceof BMapGL.Marker&&String(e.id)===t}));a=n;o.map.removeOverlay(n)}));return a};this._moveAlong=function(t){var e=t.path;var a=t.markerId;var n=t.duration;var i=t.autoRotate;var r=o.map.getOverlays().find((function(t){return t instanceof BMapGL.Marker&&t.id===a}));var l=e.map((function(t){return new BMapGL.Point(t.longitude,t.latitude)}));var s={flagId:true,flagCoordinate:true};if(!r){console.error('Marker "'.concat(a,'" not found.'));s.flagId=false;return s}for(var d=0;d<l.length;d++){var u=l[d];if(u.lat<-80&&u.lat>=-90){u.lat+=10}if(u.lng<-180||u.lng>180||u.lat<-90||u.lat>90||isNaN(u.lng)||isNaN(u.lat)){s.flagCoordinate=false;return s}}if(s.flagId&&s.flagCoordinate){var c=performance.now();var p=function(t){var e=t-c;var a=Math.min(e/n,1);var s=o.getPointOnPath(l,a);r.setPosition(s);if(i&&a<1){var d=o.getPointOnPath(l,Math.min(a+.01,1));var u=o.calculateRotation(s,d);r.setRotation(u)}if(a<1){requestAnimationFrame(p)}else{r.setPosition(l[l.length-1]);r.setRotation(0)}};requestAnimationFrame(p)}return s};this.getPointOnPath=function(t,e){var a=o.calculateTotalLength(t);var n=a*e;var i=0;for(var r=0;r<t.length-1;r++){var l=o.map.getDistance(t[r],t[r+1]);if(i+l>=n){var s=(n-i)/l;var d=t[r+1].lng-t[r].lng;var u=t[r+1].lat-t[r].lat;var c=t[r].lng+d*s;var p=t[r].lat+u*s;return new BMapGL.Point(c,p)}i+=l}return t[t.length-1]};this.calculateTotalLength=function(t){var e=0;for(var a=0;a<t.length-1;a++){e+=o.map.getDistance(t[a],t[a+1])}return e};this.calculateRotation=function(t,e){var a=e.lng-t.lng;var o=e.lat-t.lat;var n=Math.atan2(o,a)*(180/Math.PI);n=90-n;return n};this._addGroundOverlay=function(t){var e=t.src,a=t.opacity,n=t.bounds,i=t.visible,r=t.id,l=t.zIndex;var s=true;if(n.southwest.longitude>=n.northeast.longitude||n.southwest.latitude>=n.northeast.latitude){s=false;return}if(n.southwest.latitude>90||n.southwest.latitude<-90||n.southwest.longitude>180||n.southwest.longitude<-180||isNaN(n.southwest.latitude)||isNaN(n.southwest.longitude)){s=false;return}if(n.northeast.latitude>90||n.northeast.latitude<-90||n.northeast.longitude>180||n.northeast.longitude<-180||isNaN(n.northeast.latitude)||isNaN(n.northeast.longitude)){s=false;return}var d=new BMapGL.Bounds(new BMapGL.Point(n.southwest.longitude,n.southwest.latitude),new BMapGL.Point(n.northeast.longitude,n.northeast.latitude));function u(t,e,a,o,n,i,r){this._bounds=t;this._imageUrl=e;this._map=a;this._visible=o;this._opacity=n;this._zIndex=i;this._id=r}u.prototype=new BMapGL.Overlay;u.prototype.initialize=function(t){var e=this;if(document.getElementById(this._id)){var a=document.getElementById(this._id);a===null||a===void 0?void 0:a.remove()}this._map=t;if(!this._div){var o=document.createElement("div");o.id=this._id;o.style.position="absolute";o.style.border="none";o.style.zIndex=this._zIndex;var n=document.createElement("img");n.src=this._imageUrl;var i=this._opacity<0?"1":this._opacity;n.style.opacity=i;o.appendChild(n);this._div=o}t.addEventListener("zoomend",(function(){var a=t.pointToOverlayPixel(e._bounds.getSouthWest());var o=t.pointToOverlayPixel(e._bounds.getNorthEast());var n=o.x-a.x;var i=a.y-o.y;e._div.style.width=n+"px";e._div.style.height=i+"px";var r=e._div.querySelector("img");r.style.width=n+"px";r.style.height=i+"px"}));t.getPanes().labelPane.appendChild(this._div);return this._div};u.prototype.draw=function(){var e={lat:t.bounds.northeast.latitude,lng:t.bounds.southwest.longitude};var a=this._map.pointToOverlayPixel(e);this._div.style.left=a.x+"px";this._div.style.top=a.y+"px";var o=this._map.getBounds();var n=this._map.pointToPixel(o.getSouthWest());var i=this._map.pointToPixel(o.getNorthEast());var r=i.x-n.x;var l=i.y-n.y;var s=this._map.getZoom();var d=r*Math.pow(2,18-s);var u=l*Math.pow(2,18-s);this._div.style.width=d+"px";this._div.style.height=u+"px";this._div.style.display=this._visible?"block":"none";var c=this._opacity<0?"1":this._opacity;this._div.getElementsByTagName("img")[0].style.opacity=c};var c=new u(d,e,o.map,i,a,l,r);o.map.addOverlay(c);var p=o.map.getOverlays().sort((function(t,e){return t._zIndex-e._zIndex}));o.groundOverlay=c;p.forEach((function(t){return t.draw()}));var h=o.map.getZoom();if(h<20){o.map.setZoom(h+1);o.map.setZoom(h)}else{o.map.setZoom(h-1);o.map.setZoom(h)}return s};this._updateGroundOverlay=function(t){var e=t.src,a=t.opacity,n=t.bounds,i=t.visible,r=t.id,l=t.zIndex;var s;var d=true;var u=true;var c={};var p=o.map.getOverlays();var h=p.find((function(t){return t._id===r}));if(!h){d=false;c={flagId:d,flagCoordinate:u};s=Object.assign({},c);return s}if(n.southwest.longitude>=n.northeast.longitude||n.southwest.latitude>=n.northeast.latitude){u=false;c={flagId:d,flagCoordinate:u};s=Object.assign({},c)}if(n.southwest.latitude>90||n.southwest.latitude<-90||n.southwest.longitude>180||n.southwest.longitude<-180||isNaN(n.southwest.latitude)||isNaN(n.southwest.longitude)){u=false;c={flagId:d,flagCoordinate:u};s=Object.assign({},c)}if(n.northeast.latitude>90||n.northeast.latitude<-90||n.northeast.longitude>180||n.northeast.longitude<-180||isNaN(n.northeast.latitude)||isNaN(n.northeast.longitude)){u=false;c={flagId:d,flagCoordinate:u};s=Object.assign({},c)}if(d&&u){var v=new BMapGL.Bounds(new BMapGL.Point(n.southwest.longitude,n.southwest.latitude),new BMapGL.Point(n.northeast.longitude,n.northeast.latitude));var f=o.map.getZoom();if(h){var g=document.getElementById(r);if(g){var m=g.querySelector("img");if(m){var b=a<0?"1":a;g.style.opacity=b;m.style.display=i?"block":"none";g.style.zIndex=l;var w=new Image;w.onload=function(){m.src=e;var t=v.getNorthEast().lng-v.getSouthWest().lng;var a=o.map.getSize().width;var n=a/Math.pow(2,18-f)*t;var i=w.naturalHeight/w.naturalWidth;var r=n*i;m.style.width="".concat(n,"px");m.style.height="".concat(r,"px");h._bounds=v;h.draw();o.map.panTo(o.map.getCenter());h.draw()};w.src=e}}}else{console.error("未找到id为".concat(r,"的元素"))}c={flagId:d,flagCoordinate:u};s=Object.assign({},c);return s}else{return s}};this._removeGroundOverlay=function(t){var e=o.map.getOverlays();var a="";var n=e.find((function(e){return e._id===t.id}));a=n;if(n){o.map.removeOverlay(n)}return a};this._setBoundary=function(t){var e=t.northeast.latitude;var a=t.southwest.latitude;var n=true;if(t.northeast.latitude<=-80&&t.northeast.latitude>=-90){e=t.northeast.latitude+10}if(t.southwest.latitude<=-80&&t.southwest.latitude>=-90){a=t.southwest.latitude+10}if(t.northeast.latitude<-90||t.northeast.latitude>90||t.northeast.longitude<-180||t.northeast.longitude>180||isNaN(t.northeast.latitude)||isNaN(t.northeast.longitude)||t.northeast.longitude<t.southwest.longitude||t.northeast.latitude<t.southwest.latitude){n=false;return}if(t.southwest.latitude<-90||t.southwest.latitude>90||t.southwest.longitude<-180||t.southwest.longitude>180||isNaN(t.southwest.latitude)||isNaN(t.southwest.longitude)){n=false;return}var i=new BMapGL.Point(t.northeast.longitude,e);var r=new BMapGL.Point(t.southwest.longitude,a);var l=new BMapGL.Bounds(r,i);var s=o.map.getViewport([i,r]);o.map.centerAndZoom(new BMapGL.Point(s.center.lng,s.center.lat),s.zoom+2);o.map.addOverlay(new BMapGL.Polygon([new BMapGL.Point(l.sw.lng,l.sw.lat),new BMapGL.Point(l.sw.lng,l.ne.lat),new BMapGL.Point(l.ne.lng,l.ne.lat),new BMapGL.Point(l.ne.lng,l.sw.lat)],{fillOpacity:0}));BMapGLLib.AreaRestriction.setBounds(o.map,l);return n};this.latitude=undefined;this.longitude=undefined;this.scale=undefined;this.minScale=undefined;this.maxScale=undefined;this.markers=undefined;this.polyline=undefined;this.circles=undefined;this.polygons=undefined;this.subkey=undefined;this.layerStyle=undefined;this.rotate=undefined;this.skew=undefined;this.showCompass=undefined;this.showScale=undefined;this.enableOverlooking=undefined;this.enableZoom=undefined;this.enableScroll=undefined;this.enableRotate=undefined;this.enableSatellite=undefined;this.enableTraffic=undefined;this.enableBuilding=undefined;this.enableAutoMaxOverlooking=undefined;this.enable3D=undefined;this.width="100%";this.height="100%"}t.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,a,o,n,n,i,l,s,d,u,c,p,h,v,f,g,m,b,w,y,M;var x=this;return __generator(this,(function(B){switch(B.label){case 0:return[4,this.loadMapScript()];case 1:B.sent();return[4,this.LoadBmapLibScript()];case 2:B.sent();if(this.mapRef){this.mapRef.addEventListener("touchmove",(function(t){if(t.cancelable){t.preventDefault()}}));this.map=new BMapGL.Map(this.mapRef);this.map.removeControl(this.map.getMapType());if(this.latitude<-90||this.latitude>90||this.longitude<-180||this.longitude>180||isNaN(this.latitude)||isNaN(this.longitude)){console.error("请正确设置中心经纬度");return[2]}t=isNaN(this.scale)?16:this.scale;e=isNaN(this.minScale)?3:this.minScale;a=isNaN(this.maxScale)?16:this.maxScale;o=new BMapGL.Point(this.longitude,this.latitude);if(e<3||e>20){e=3;this.map.setMinZoom(3)}else{this.map.setMinZoom(e)}if(a>20||a<3){a=20;this.map.setMaxZoom(20)}else{this.map.setMaxZoom(a)}if(e>a){e=3;this.map.setMinZoom(3);a=20;this.map.setMaxZoom(20)}if(e<=16&&a>=16){if(t>=e&&t<=a){this.map.centerAndZoom(o,t)}else{t=16;this.map.centerAndZoom(o,t)}}else{if(t>=e&&t<=a){this.map.centerAndZoom(o,t)}else if(t<e){t=e;this.map.centerAndZoom(o,e)}else{t=a;this.map.centerAndZoom(o,a)}}if(Array.isArray(this.markers)){this.addMarkers(this.markers)}if(Array.isArray(this.polyline)){this.polyline.forEach((function(t){if(t.points){var e=t.points.map((function(t){return new BMapGL.Point(t.longitude,t.latitude)}));var a=new BMapGL.Polyline(e,{strokeColor:t.color,strokeWeight:t.width,strokeStyle:t.dottedLine?"dashed":"solid",strokeOpacity:1});x.map.addOverlay(a)}}))}if(Array.isArray(this.circles)){this.circles.forEach((function(t){if(t.latitude&&t.longitude&&t.radius){var e=new BMapGL.Point(t.longitude,t.latitude);var a=new BMapGL.Circle(e,t.radius,{strokeColor:t.color,fillColor:t.fillColor,strokeWeight:t.strokeWidth});x.map.addOverlay(a)}}))}if(Array.isArray(this.polygons)){this.polygons.forEach((function(t){var e=t.points.map((function(t){return new BMapGL.Point(t.longitude,t.latitude)}));var a=new BMapGL.Polygon(e,{strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWidth});x.map.addOverlay(a)}))}if(this.layerStyle===0){n=this.layerStyle;if(n){this.map.setMapStyleV2({styleId:this.subkey})}}else{n=this.layerStyle?this.layerStyle:1;if(n===1){this.map.setMapStyleV2({styleId:this.subkey})}}i=this.enable3D===true?this.enable3D:false;l=this.enableOverlooking===true?this.enableOverlooking:false;s=this.enableAutoMaxOverlooking===true?this.enableAutoMaxOverlooking:false;d=this.skew?this.skew:0;if(i===true){if(l===true){if(s===true){this.map.setTilt(75)}else{this.map.setTilt(45)}}else if(d>=0&&d<=40){this.map.setTilt(d)}else{this.map.setTilt(0)}}else{this.map.setTilt(0)}u=this.showCompass===true?this.showCompass:false;if(u===true){c=new BMapGL.NavigationControl3D({anchor:BMAP_ANCHOR_TOP_RIGHT,type:3});this.map.addControl(c)}p=this.showScale===true?this.showScale:false;if(p===true){h=new BMapGL.ScaleControl({anchor:BMAP_ANCHOR_BOTTOM_RIGHT});this.map.addControl(h)}v=this.enableZoom===false?this.enableZoom:true;if(v===true){this.map.enableScrollWheelZoom(this.enableZoom)}if(this.enableZoom===true&&this.mapRef){this.map.enablePinchToZoom()}else{this.map.disablePinchToZoom()}f=this.enableScroll===false?this.enableScroll:true;if(f===true){this.map.enableDragging()}else{this.map.disableDragging()}g=this.rotate?this.rotate:0;if(g>=0&&this.rotate<=360){this.map.setHeading(this.rotate)}else{this.map.setHeading(0)}if(this.enableRotate===true){this.map.enableRotateGestures()}m=this.enableSatellite===true?this.enableSatellite:false;if(m===true&&this.mapRef){b=new BMapGL.MapTypeControl({mapTypes:[BMAP_NORMAL_MAP,BMAP_SATELLITE_MAP]});this.map.addControl(b)}w=this.enableTraffic===true?this.enableTraffic:false;if(w===true&&this.mapRef){this.map.setTrafficOn()}y=this.enableBuilding===false?this.enableBuilding:true;if(y===false){this.map.setDisplayOptions({building:false})}}if(this.map){M=new r(this.mapRef);M.on("tap",(function(t){var e=x.map.pixelToPoint({x:t.center.x,y:t.center.y});x.onTap.emit({longitude:e.lng,latitude:e.lat})}))}return[2]}}))}))};t.prototype.disconnectedCallback=function(){if(this.map){this.map.destroy()}};t.prototype.addMarkers=function(t){var e=this;var a=[];t.forEach((function(t){var o,n,i,l,s,d,u,c,p,h,v,f,g,m;if(a.includes(t.id)){console.error("请输入不同的marker的id");return}a.push(t.id);if(t.latitude&&t.longitude&&t.iconPath&&t.id){if(t.latitude<-90||t.latitude>90||t.longitude<-180||t.longitude>180){console.error("请正确设置marker的经纬度");return}var b=new BMapGL.Point(t.longitude,t.latitude);var w=new BMapGL.Marker(b,{enableClicking:true});w.id=t.id;w.alpha=t.alpha;if(t.zIndex){w.setZIndex(t.zIndex)}if(t.width&&t.height){var y=document.createElement("canvas");y.width=t.width*2;y.height=t.height*2;var M=y.getContext("2d");var x=new Image;x.crossOrigin="Anonymous";x.src=t.iconPath;x.onload=function(){M.drawImage(x,0,0,t.width*2,t.height*2);var e=new BMapGL.Icon(y.toDataURL(),new BMapGL.Size(t.width,t.height),{anchor:new BMapGL.Size(0,0)});w.setIcon(e)}}else{var B=new Image;B.src=t.iconPath;B.style.opacity=String(t.alpha);B.onload=function(){var e=new BMapGL.Size(B.width,B.height);var a=new BMapGL.Icon(B.src,e);a.imageOffset=new BMapGL.Size(0,0,t.alpha||1);w.setIcon(a)}}var L=t.rotate?t.rotate:0;if(L>=0&&L<=360){w.setRotation(L)}var _=(n=(o=t.anchor)===null||o===void 0?void 0:o.x)!==null&&n!==void 0?n:.5;var P=(l=(i=t.anchor)===null||i===void 0?void 0:i.y)!==null&&l!==void 0?l:1;if(_>=0&&_<=1&&P>=0&&P<=1){var G=-_*(t.width||0);var S=-P*(t.height||0);w.setOffset(new BMapGL.Size(G,S))}else{var G=-.5*(t.width||0);var S=-1*(t.height||0);w.setOffset(new BMapGL.Size(G,S))}if(!t.callout&&t.title){var k=new r(e.mapRef);k.on("tap",(function(t){var a=t.center;var o=a.x;var n=a.y;var i=15;e.markers.forEach((function(t){var a=document.getElementsByClassName("bmap-container")[0];var r=a.getBoundingClientRect();var l=r.left;var s=r.top;var d=new BMapGL.Point(t.longitude,t.latitude);var u=e.map.pointToPixel(d);var c=u.x+l;var p=u.y+s;var h=Math.sqrt(Math.pow(o-c,2)+Math.pow(n-p,2));if(h<i&&t.id===w.id){var v='<div style="text-align:center">'.concat(t.title,"</div>");var f=new BMapGL.InfoWindow(v);e.map.openInfoWindow(f,b)}}))}))}if(t.callout){var G=((s=t.callout)===null||s===void 0?void 0:s.anchorX)?(d=t.callout)===null||d===void 0?void 0:d.anchorX:0;var S=((u=t.callout)===null||u===void 0?void 0:u.anchorY)?(c=t.callout)===null||c===void 0?void 0:c.anchorY:0;var C=new BMapGL.InfoWindow('<div style="\n padding: '.concat((p=t.callout)===null||p===void 0?void 0:p.padding,"px;\n color:").concat((h=t.callout)===null||h===void 0?void 0:h.color,";\n text-align:").concat((v=t.callout)===null||v===void 0?void 0:v.textAlign,';"\n >\n <p style="font-size:').concat((f=t.callout)===null||f===void 0?void 0:f.fontSize,'px">').concat(((g=t.callout)===null||g===void 0?void 0:g.content)||"","</p>\n </div>"),{width:200,height:100,offset:new BMapGL.Size(G-24,S-20)});w.callout=C;e.map.addOverlay(w);if(((m=t.callout)===null||m===void 0?void 0:m.display)==="ALWAYS"){w.callout.disableCloseOnClick();var I=w.getPosition();w.callout.addEventListener("open",(function(){var e,a,o,n;var i=document.querySelector(".BMap_bubble_pop");if(i){var r=i.querySelector(".triangle");if(!r){r=document.createElement("div");r.className="triangle";i.appendChild(r)}var l=document.querySelector(".BMap_bubble_pop>img");if(l){l.setAttribute("style","position: absolute;transform: translate(-50%, 0); top: ".concat(I.lat-100,"px; left: ").concat(I.lng-20,"px;display:none"))}var s=(e=t.callout)===null||e===void 0?void 0:e.bgColor;var d=((a=t.callout)===null||a===void 0?void 0:a.borderWidth)||5;var u=(o=t.callout)===null||o===void 0?void 0:o.borderColor;var c=(n=t.callout)===null||n===void 0?void 0:n.borderRadius;d=Math.min(d,15);r.setAttribute("style","width:0;height:0;borderLeft:".concat(d,"px solid transparent;borderRight:").concat(d,"px solid transparent;borderTop:").concat(d,"px solid ").concat(u,";position:absolute;left:83px;bottom:-").concat(2*d,"px"));i.setAttribute("style","background-color:".concat(s,";top:").concat(I.lat-120,"px; left:").concat(I.lng-100,"px;position: absolute;border: ").concat(d,"px solid ").concat(u,";border-radius:").concat(c,"px; "))}}));e.map.openInfoWindow(w.callout,b)}else{var k=new r(e.mapRef);k.on("tap",(function(t){var a=t.center;var o=a.x;var n=a.y;var i=15;e.markers.forEach((function(t){var a=document.getElementsByClassName("bmap-container")[0];var r=a.getBoundingClientRect();var l=r.left;var s=r.top;var d=new BMapGL.Point(t.longitude,t.latitude);var u=e.map.pointToPixel(d);var c=u.x+l;var p=u.y+s;var h=Math.sqrt(Math.pow(o-c,2)+Math.pow(n-p,2));if(h<i&&t.id===w.id){var v=w.getPosition();w.callout.addEventListener("open",(function(){var e,a,o,n;var i=document.querySelector(".BMap_bubble_pop");if(i){var r=i.querySelector(".triangle");if(!r){r=document.createElement("div");r.className="triangle";i.appendChild(r)}var l=document.querySelector(".BMap_bubble_pop>img");if(l){l.setAttribute("style","position: absolute;transform: translate(-50%, 0); top: ".concat(v.lat-100,"px; left: ").concat(v.lng-20,"px;display:none"))}var s=(e=t.callout)===null||e===void 0?void 0:e.bgColor;var d=((a=t.callout)===null||a===void 0?void 0:a.borderWidth)||5;var u=(o=t.callout)===null||o===void 0?void 0:o.borderColor;var c=(n=t.callout)===null||n===void 0?void 0:n.borderRadius;d=Math.min(d,15);r.setAttribute("style","width:0;height:0;border-left:".concat(d,"px solid transparent;border-right:").concat(d,"px solid transparent;border-top:").concat(d,"px solid ").concat(u,";position:absolute;left:83px;bottom:-").concat(2*d,"px"));i.setAttribute("style","background-color:".concat(s,";top:").concat(v.lat-120,"px; left:").concat(v.lng-100,"px;position: absolute;border: ").concat(d,"px solid ").concat(u,";border-radius:").concat(c,"px; "))}}));e.map.openInfoWindow(w.callout,b)}else{w.callout.enableCloseOnClick()}}))}))}}if(t.label){var O=t.label.content||"";var N={position:b,offset:new BMapGL.Size(t.label.anchorX||0,t.label.anchorY||0)};var R=new BMapGL.Label(O,N);var A=t.label.borderColor?t.label.borderColor:"white";R.setStyle({color:t.label.color,fontSize:t.label.fontSize+"px",borderWidth:t.label.borderWidth+"px",borderColor:A,borderRadius:t.label.borderRadius+"px",background:t.label.bgColor,padding:t.label.padding+"px"});w.setLabel(R)}e.map.addOverlay(w)}else{console.error("请检查marker经纬度和marker自定义图标路径和id值")}}))};t.prototype.loadMapScript=function(){return new Promise((function(t,e){var a=document.createElement("script");a.src="https://api.map.baidu.com/getscript?v=3.0&type=webgl&ak=Mb1FLBD3gfnY6bup4v6zEWh6MXwsZ9eo";a.defer=true;a.onload=function(){return t()};a.onerror=e;a.type="text/javascript";document.head.appendChild(a)}))};t.prototype.LoadBmapLibScript=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,new Promise((function(t,e){var a=document.createElement("script");a.src="//mapopen.bj.bcebos.com/github/BMapGLLib/AreaRestriction/src/AreaRestriction.min.js";a.defer=true;a.type="text/javascript";a.onload=function(){t()};a.onerror=e;document.head.appendChild(a)}))]}))}))};t.prototype.render=function(){var t=this;return o(n,null,o("div",{id:"mapContainer",ref:function(e){if(e){t.mapRef=e}},style:{width:this.width,height:this.height}}))};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());s.style=l}}}));
1
+ var __awaiter=this&&this.__awaiter||function(t,e,a,o){function n(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,i){function r(t){try{s(o.next(t))}catch(t){i(t)}}function l(t){try{s(o["throw"](t))}catch(t){i(t)}}function s(t){t.done?a(t.value):n(t.value).then(r,l)}s((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,n,i,r;return r={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function l(t){return function(e){return s([t,e])}}function s(l){if(o)throw new TypeError("Generator is already executing.");while(r&&(r=0,l[0]&&(a=0)),a)try{if(o=1,n&&(i=l[0]&2?n["return"]:l[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;if(n=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:a.label++;return{value:l[1],done:false};case 5:a.label++;n=l[1];l=[0];continue;case 7:l=a.ops.pop();a.trys.pop();continue;default:if(!(i=a.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){a=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){a.label=l[1];break}if(l[0]===6&&a.label<i[1]){a.label=i[1];i=l;break}if(i&&a.label<i[2]){a.label=i[2];a.ops.push(l);break}if(i[2])a.ops.pop();a.trys.pop();continue}l=e.call(t,a)}catch(t){l=[6,t];n=0}finally{o=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};System.register(["./p-88de70df.system.js","hammerjs"],(function(t){"use strict";var e,a,o,n,i,r;return{setters:[function(t){e=t.r;a=t.c;o=t.h;n=t.H;i=t.g},function(t){r=t.default}],execute:function(){var l=".BMap_cpyCtrl,.anchorBL img,.BMap_bubble_buttons{display:none}";var s=t("taro_map_core",function(){function t(t){var o=this;e(this,t);this.onTap=a(this,"tap",7);this.currentRotation=0;this._getCenterLocation=function(t){o.map.getOverlays().forEach((function(t){if(t instanceof BMapGL.Marker&&t.isCenterMarker){o.map.removeOverlay(t)}}));t.iconPath="https://img0.baidu.com/it/u=2604176863,3349829508&fm=253&fmt=auto&app=138&f=PNG?w=243&h=243";var e=new BMapGL.Icon(t.iconPath,new BMapGL.Size(20,30));var a=[o.longitude,o.latitude];var n=new BMapGL.Marker(new BMapGL.Point(o.longitude,o.latitude),{icon:e});n.isCenterMarker=true;o.map.addOverlay(n);return a};this._setLocMarkerIcon=function(t){var e=new BMapGL.Icon(t.iconPath,new BMapGL.Size(20,30));var a=new BMapGL.Point(116.404,39.915);var n=new BMapGL.Marker(a,{icon:e});o.map.addOverlay(n)};this._translateMarker=function(t){var e=t.destination.latitude;var a=t.destination.longitude;if(e<-80&&e>=-90){e=t.destination.latitude+10}var n=new BMapGL.Point(a,e);var i={flagId:true,flagCoordinate:true};var r={errMsg:"animationEnd:ok"};var l=o.map.getOverlays();var s=l.find((function(e){return e instanceof BMapGL.Marker&&e.id===t.markerId}));if(!s){console.error('Marker "'.concat(t.markerId,'" not found.'));i.flagId=false;return i}if(e>90||e<-90||a>180||a<-180||isNaN(e)||isNaN(a)){i.flagCoordinate=false;return i}var d=s.getPosition();var u={lng:(n.lng-d.lng)/(t.duration/16),lat:(n.lat-d.lat)/(t.duration/16)};var c=s.getRotation();var p=t.rotate;if(!o.currentRotation){o.currentRotation=p}else{o.currentRotation+=p}var h=(o.currentRotation-c)/(t.duration/16);var v=d;var f=c;if(!t.moveWithRotate&&t.autoRotate){var g=0;var m=setInterval((function(){v=new BMapGL.Point(v.lng+u.lng,v.lat+u.lat);s.setPosition(v);g++;if(g>=t.duration/16){clearInterval(m);var e=0;var a=setInterval((function(){f+=h;s.setRotation(f);e++;if(e>=t.duration/16){clearInterval(a);t===null||t===void 0?void 0:t.animationEnd(r)}}),16)}}),16)}else if(t.moveWithRotate&&t.autoRotate){var b=0;var w=setInterval((function(){v=new BMapGL.Point(v.lng+u.lng,v.lat+u.lat);s.setPosition(v);f+=h;s.setRotation(f);b++;if(b>=t.duration/16){clearInterval(w);t===null||t===void 0?void 0:t.animationEnd(r)}}),16)}else if(t.moveWithRotate&&!t.autoRotate){var y=0;var M=setInterval((function(){v=new BMapGL.Point(v.lng+u.lng,v.lat+u.lat);s.setPosition(v);y++;if(y>=t.duration/16){clearInterval(M);t===null||t===void 0?void 0:t.animationEnd(r)}}),16)}return i};this._includePoints=function(t){var e=t.points.map((function(t){return new BMapGL.Point(t.longitude,t.latitude)}));var a=o.map.getZoom();var n=o.map.getCenter();var i=o.map.getViewport(e);o.map.centerAndZoom(i.center,i.zoom);var r=o.map.getBounds();var l=true;for(var s=0;s<e.length;s++){if(!r.containsPoint(e[s])){o.map.centerAndZoom(n,a);l=false;break}}return l};this._getRegion=function(){var t=o.map.getBounds();var e=t.getSouthWest();var a=t.getNorthEast();return{southwest:{lat:e.lat,lng:e.lng},northeast:{lat:a.lat,lng:a.lng}}};this._getRotate=function(){var t=o.rotate;if(t<0||t>360){t=0}return t};this._getSkew=function(){var t=o.skew;if(t<0||t>40){t=0}return t};this._getScale=function(){var t=o.scale;return t};this._setCenterOffset=function(t){var e=t.offset,a=e[0],n=e[1];var i=o.map.getSize();var r=Math.max(.25*i.width,Math.min(.75*i.width,a*i.width));var l=Math.max(.25*i.height,Math.min(.75*i.height,n*i.height));var s=new BMapGL.Pixel(r,l);var d=o.map.pixelToPoint(s);o.map.panTo(d)};this._addMarkers=function(t){if(t.clear){o.map.clearOverlays(o.markers)}t.markers.forEach((function(e){var a,n,i,l,s,d,u,c,p,h,v,f,g,m;if(e.latitude&&e.longitude&&e.iconPath){var b=new BMapGL.Point(e.longitude,e.latitude);var w=new BMapGL.Marker(b,{enableClicking:true});o.map.addOverlay(w);w.id=e.id;w.alpha=e.alpha;if(e.zIndex){w.setZIndex(e.zIndex)}if(e.width&&e.height&&e.iconPath){var y=new BMapGL.Icon(e.iconPath,new BMapGL.Size(e.width,e.height));w.setIcon(y)}else if(e.iconPath){var M=new Image;M.src=e.iconPath;M.style.opacity=String(e.alpha);M.onload=function(){var t=new BMapGL.Size(M.width,M.height);var a=new BMapGL.Icon(M.src,t);a.imageOffset=new BMapGL.Size(0,0,e.alpha||1);w.setIcon(a)}}else{console.error("没有找到iconPath图片路径");return}var x=e.rotate?e.rotate:0;if(x){w.setRotation(x)}if(e.anchor){var B=((n=(a=e.anchor)===null||a===void 0?void 0:a.x)!==null&&n!==void 0?n:0)*(e.width||0);var L=((l=(i=e.anchor)===null||i===void 0?void 0:i.y)!==null&&l!==void 0?l:0)*(e.height||0);w.setOffset(new BMapGL.Size(B,L))}if(!e.callout&&e.title){var _=new r(o.mapRef);_.on("tap",(function(e){var a=e.center;var n=a.x;var i=a.y;var r=15;t.markers.forEach((function(t){var e=document.getElementsByClassName("bmap-container")[0];var a=e.getBoundingClientRect();var l=a.left;var s=a.top;var d=new BMapGL.Point(t.longitude,t.latitude);var u=o.map.pointToPixel(d);var c=u.x+l;var p=u.y+s;var h=Math.sqrt(Math.pow(n-c,2)+Math.pow(i-p,2));if(h<r&&t.id===w.id){var v='<div style="text-align:center">'.concat(t.title,"</div>");var f=new BMapGL.InfoWindow(v);o.map.openInfoWindow(f,b)}}))}))}if(e.callout){var B=((s=e.callout)===null||s===void 0?void 0:s.anchorX)?(d=e.callout)===null||d===void 0?void 0:d.anchorX:0;var L=((u=e.callout)===null||u===void 0?void 0:u.anchorY)?(c=e.callout)===null||c===void 0?void 0:c.anchorY:0;var P=new BMapGL.InfoWindow('<div style="\n padding: '.concat((p=e.callout)===null||p===void 0?void 0:p.padding,"px;\n color:").concat((h=e.callout)===null||h===void 0?void 0:h.color,";\n text-align:").concat((v=e.callout)===null||v===void 0?void 0:v.textAlign,';"\n >\n <p style="font-size:').concat((f=e.callout)===null||f===void 0?void 0:f.fontSize,'px">').concat(((g=e.callout)===null||g===void 0?void 0:g.content)||"","</p>\n </div>"),{width:200,height:100,offset:new BMapGL.Size(B-24,L-20)});w.callout=P;o.map.addOverlay(w);if(((m=e.callout)===null||m===void 0?void 0:m.display)==="ALWAYS"){w.callout.disableCloseOnClick();var G=w.getPosition();w.callout.addEventListener("open",(function(){var t,a,o,n;console.log(w.callout);var i=document.querySelector(".BMap_bubble_pop");if(i){var r=i.querySelector(".triangle");if(!r){r=document.createElement("div");r.className="triangle";i.appendChild(r)}var l=document.querySelector(".BMap_bubble_pop>img");if(l){l.setAttribute("style","position: absolute;transform: translate(-50%, 0); top: ".concat(G.lat-100,"px; left: ").concat(G.lng-20,"px;display:none"))}var s=(t=e.callout)===null||t===void 0?void 0:t.bgColor;var d=((a=e.callout)===null||a===void 0?void 0:a.borderWidth)||5;var u=(o=e.callout)===null||o===void 0?void 0:o.borderColor;var c=(n=e.callout)===null||n===void 0?void 0:n.borderRadius;d=Math.min(d,15);r.setAttribute("style","width:0;height:0;border-left:".concat(d,"px solid transparent;border-right:").concat(d,"px solid transparent;border-top:").concat(d,"px solid ").concat(u,";position:absolute;left:83px;bottom:-").concat(2*d,"px"));i.setAttribute("style","background-color:".concat(s,";top:").concat(G.lat-120,"px; left:").concat(G.lng-100,"px;position: absolute;border: ").concat(d,"px solid ").concat(u,";border-radius:").concat(c,"px; "))}}));o.map.openInfoWindow(w.callout,b)}else{var _=new r(o.mapRef);_.on("tap",(function(e){var a=e.center;var n=a.x;var i=a.y;var r=15;t.markers.forEach((function(t){var e=document.getElementsByClassName("bmap-container")[0];var a=e.getBoundingClientRect();var l=a.left;var s=a.top;var d=new BMapGL.Point(t.longitude,t.latitude);var u=o.map.pointToPixel(d);var c=u.x+l;var p=u.y+s;var h=Math.sqrt(Math.pow(n-c,2)+Math.pow(i-p,2));if(h<r&&t.id===w.id){var v=w.getPosition();w.callout.addEventListener("open",(function(){var e,a,o,n;console.log(w.callout);var i=document.querySelector(".BMap_bubble_pop");if(i){var r=i.querySelector(".triangle");if(!r){r=document.createElement("div");r.className="triangle";i.appendChild(r)}var l=document.querySelector(".BMap_bubble_pop>img");if(l){l.setAttribute("style","position: absolute;transform: translate(-50%, 0); top: ".concat(v.lat-100,"px; left: ").concat(v.lng-20,"px;display:none"))}var s=(e=t.callout)===null||e===void 0?void 0:e.bgColor;var d=((a=t.callout)===null||a===void 0?void 0:a.borderWidth)||5;var u=(o=t.callout)===null||o===void 0?void 0:o.borderColor;var c=(n=t.callout)===null||n===void 0?void 0:n.borderRadius;d=Math.min(d,15);r.setAttribute("style","width:0;height:0;border-left:".concat(d,"px solid transparent;border-right:").concat(d,"px solid transparent;border-top:").concat(d,"px solid ").concat(u,";position:absolute;left:83px;bottom:-").concat(2*d,"px"));i.setAttribute("style","background-color:".concat(s,";top:").concat(v.lat-120,"px; left:").concat(v.lng-100,"px;position: absolute;border: ").concat(d,"px solid ").concat(u,";border-radius:").concat(c,"px; "))}}));o.map.openInfoWindow(w.callout,b)}else{w.callout.enableCloseOnClick()}}))}))}}if(e.label){var S=e.label.content||"";var k={position:b,offset:new BMapGL.Size(e.label.anchorX||0,e.label.anchorY||0)};var C=new BMapGL.Label(S,k);C.setStyle({color:e.label.color,fontSize:e.label.fontSize+"px",borderWidth:e.label.borderWidth+"px",borderColor:e.label.borderColor,borderRadius:e.label.borderRadius+"px",background:e.label.bgColor,padding:e.label.padding+"px"});w.setLabel(C)}}}))};this._removeMarkers=function(t){var e=o.map.getOverlays();var a={};t.markerIds.forEach((function(t){var n=e.find((function(e){return e instanceof BMapGL.Marker&&String(e.id)===t}));a=n;o.map.removeOverlay(n)}));return a};this._moveAlong=function(t){var e=t.path;var a=t.markerId;var n=t.duration;var i=t.autoRotate;var r=o.map.getOverlays().find((function(t){return t instanceof BMapGL.Marker&&t.id===a}));var l=e.map((function(t){return new BMapGL.Point(t.longitude,t.latitude)}));var s={flagId:true,flagCoordinate:true};if(!r){console.error('Marker "'.concat(a,'" not found.'));s.flagId=false;return s}for(var d=0;d<l.length;d++){var u=l[d];if(u.lat<-80&&u.lat>=-90){u.lat+=10}if(u.lng<-180||u.lng>180||u.lat<-90||u.lat>90||isNaN(u.lng)||isNaN(u.lat)){s.flagCoordinate=false;return s}}if(s.flagId&&s.flagCoordinate){var c=performance.now();var p=function(t){var e=t-c;var a=Math.min(e/n,1);var s=o.getPointOnPath(l,a);r.setPosition(s);if(i&&a<1){var d=o.getPointOnPath(l,Math.min(a+.01,1));var u=o.calculateRotation(s,d);r.setRotation(u)}if(a<1){requestAnimationFrame(p)}else{r.setPosition(l[l.length-1]);r.setRotation(0)}};requestAnimationFrame(p)}return s};this.getPointOnPath=function(t,e){var a=o.calculateTotalLength(t);var n=a*e;var i=0;for(var r=0;r<t.length-1;r++){var l=o.map.getDistance(t[r],t[r+1]);if(i+l>=n){var s=(n-i)/l;var d=t[r+1].lng-t[r].lng;var u=t[r+1].lat-t[r].lat;var c=t[r].lng+d*s;var p=t[r].lat+u*s;return new BMapGL.Point(c,p)}i+=l}return t[t.length-1]};this.calculateTotalLength=function(t){var e=0;for(var a=0;a<t.length-1;a++){e+=o.map.getDistance(t[a],t[a+1])}return e};this.calculateRotation=function(t,e){var a=e.lng-t.lng;var o=e.lat-t.lat;var n=Math.atan2(o,a)*(180/Math.PI);n=90-n;return n};this._addGroundOverlay=function(t){var e=t.src,a=t.opacity,n=t.bounds,i=t.visible,r=t.id,l=t.zIndex;var s=true;if(n.southwest.longitude>=n.northeast.longitude||n.southwest.latitude>=n.northeast.latitude){s=false;return}if(n.southwest.latitude>90||n.southwest.latitude<-90||n.southwest.longitude>180||n.southwest.longitude<-180||isNaN(n.southwest.latitude)||isNaN(n.southwest.longitude)){s=false;return}if(n.northeast.latitude>90||n.northeast.latitude<-90||n.northeast.longitude>180||n.northeast.longitude<-180||isNaN(n.northeast.latitude)||isNaN(n.northeast.longitude)){s=false;return}var d=new BMapGL.Bounds(new BMapGL.Point(n.southwest.longitude,n.southwest.latitude),new BMapGL.Point(n.northeast.longitude,n.northeast.latitude));function u(t,e,a,o,n,i,r){this._bounds=t;this._imageUrl=e;this._map=a;this._visible=o;this._opacity=n;this._zIndex=i;this._id=r}u.prototype=new BMapGL.Overlay;u.prototype.initialize=function(t){var e=this;if(document.getElementById(this._id)){var a=document.getElementById(this._id);a===null||a===void 0?void 0:a.remove()}this._map=t;if(!this._div){var o=document.createElement("div");o.id=this._id;o.style.position="absolute";o.style.border="none";o.style.zIndex=this._zIndex;var n=document.createElement("img");n.src=this._imageUrl;var i=this._opacity<0?"1":this._opacity;n.style.opacity=i;o.appendChild(n);this._div=o}t.addEventListener("zoomend",(function(){var a=t.pointToOverlayPixel(e._bounds.getSouthWest());var o=t.pointToOverlayPixel(e._bounds.getNorthEast());var n=o.x-a.x;var i=a.y-o.y;e._div.style.width=n+"px";e._div.style.height=i+"px";var r=e._div.querySelector("img");r.style.width=n+"px";r.style.height=i+"px"}));t.getPanes().labelPane.appendChild(this._div);return this._div};u.prototype.draw=function(){var e={lat:t.bounds.northeast.latitude,lng:t.bounds.southwest.longitude};var a=this._map.pointToOverlayPixel(e);this._div.style.left=a.x+"px";this._div.style.top=a.y+"px";var o=this._map.getBounds();var n=this._map.pointToPixel(o.getSouthWest());var i=this._map.pointToPixel(o.getNorthEast());var r=i.x-n.x;var l=i.y-n.y;var s=this._map.getZoom();var d=r*Math.pow(2,18-s);var u=l*Math.pow(2,18-s);this._div.style.width=d+"px";this._div.style.height=u+"px";this._div.style.display=this._visible?"block":"none";var c=this._opacity<0?"1":this._opacity;this._div.getElementsByTagName("img")[0].style.opacity=c};var c=new u(d,e,o.map,i,a,l,r);o.map.addOverlay(c);var p=o.map.getOverlays().sort((function(t,e){return t._zIndex-e._zIndex}));o.groundOverlay=c;p.forEach((function(t){return t.draw()}));var h=o.map.getZoom();if(h<20){o.map.setZoom(h+1);o.map.setZoom(h)}else{o.map.setZoom(h-1);o.map.setZoom(h)}return s};this._updateGroundOverlay=function(t){var e=t.src,a=t.opacity,n=t.bounds,i=t.visible,r=t.id,l=t.zIndex;var s;var d=true;var u=true;var c={};var p=o.map.getOverlays();var h=p.find((function(t){return t._id===r}));if(!h){d=false;c={flagId:d,flagCoordinate:u};s=Object.assign({},c);return s}if(n.southwest.longitude>=n.northeast.longitude||n.southwest.latitude>=n.northeast.latitude){u=false;c={flagId:d,flagCoordinate:u};s=Object.assign({},c)}if(n.southwest.latitude>90||n.southwest.latitude<-90||n.southwest.longitude>180||n.southwest.longitude<-180||isNaN(n.southwest.latitude)||isNaN(n.southwest.longitude)){u=false;c={flagId:d,flagCoordinate:u};s=Object.assign({},c)}if(n.northeast.latitude>90||n.northeast.latitude<-90||n.northeast.longitude>180||n.northeast.longitude<-180||isNaN(n.northeast.latitude)||isNaN(n.northeast.longitude)){u=false;c={flagId:d,flagCoordinate:u};s=Object.assign({},c)}if(d&&u){var v=new BMapGL.Bounds(new BMapGL.Point(n.southwest.longitude,n.southwest.latitude),new BMapGL.Point(n.northeast.longitude,n.northeast.latitude));var f=o.map.getZoom();if(h){var g=document.getElementById(r);if(g){var m=g.querySelector("img");if(m){var b=a<0?"1":a;g.style.opacity=b;m.style.display=i?"block":"none";g.style.zIndex=l;var w=new Image;w.onload=function(){m.src=e;var t=v.getNorthEast().lng-v.getSouthWest().lng;var a=o.map.getSize().width;var n=a/Math.pow(2,18-f)*t;var i=w.naturalHeight/w.naturalWidth;var r=n*i;m.style.width="".concat(n,"px");m.style.height="".concat(r,"px");h._bounds=v;h.draw();o.map.panTo(o.map.getCenter());h.draw()};w.src=e}}}else{console.error("未找到id为".concat(r,"的元素"))}c={flagId:d,flagCoordinate:u};s=Object.assign({},c);return s}else{return s}};this._removeGroundOverlay=function(t){var e=o.map.getOverlays();var a="";var n=e.find((function(e){return e._id===t.id}));a=n;if(n){o.map.removeOverlay(n)}return a};this._setBoundary=function(t){var e=t.northeast.latitude;var a=t.southwest.latitude;var n=true;if(t.northeast.latitude<=-80&&t.northeast.latitude>=-90){e=t.northeast.latitude+10}if(t.southwest.latitude<=-80&&t.southwest.latitude>=-90){a=t.southwest.latitude+10}if(t.northeast.latitude<-90||t.northeast.latitude>90||t.northeast.longitude<-180||t.northeast.longitude>180||isNaN(t.northeast.latitude)||isNaN(t.northeast.longitude)||t.northeast.longitude<t.southwest.longitude||t.northeast.latitude<t.southwest.latitude){n=false;return}if(t.southwest.latitude<-90||t.southwest.latitude>90||t.southwest.longitude<-180||t.southwest.longitude>180||isNaN(t.southwest.latitude)||isNaN(t.southwest.longitude)){n=false;return}var i=new BMapGL.Point(t.northeast.longitude,e);var r=new BMapGL.Point(t.southwest.longitude,a);var l=new BMapGL.Bounds(r,i);var s=o.map.getViewport([i,r]);o.map.centerAndZoom(new BMapGL.Point(s.center.lng,s.center.lat),s.zoom+2);o.map.addOverlay(new BMapGL.Polygon([new BMapGL.Point(l.sw.lng,l.sw.lat),new BMapGL.Point(l.sw.lng,l.ne.lat),new BMapGL.Point(l.ne.lng,l.ne.lat),new BMapGL.Point(l.ne.lng,l.sw.lat)],{fillOpacity:0}));BMapGLLib.AreaRestriction.setBounds(o.map,l);return n};this.latitude=undefined;this.longitude=undefined;this.scale=undefined;this.minScale=undefined;this.maxScale=undefined;this.markers=undefined;this.polyline=undefined;this.circles=undefined;this.polygons=undefined;this.subkey=undefined;this.layerStyle=undefined;this.rotate=undefined;this.skew=undefined;this.showCompass=undefined;this.showScale=undefined;this.enableOverlooking=undefined;this.enableZoom=undefined;this.enableScroll=undefined;this.enableRotate=undefined;this.enableSatellite=undefined;this.enableTraffic=undefined;this.enableBuilding=undefined;this.enableAutoMaxOverlooking=undefined;this.enable3D=undefined;this.width="100%";this.height="100%"}t.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,a,o,n,n,i,l,s,d,u,c,p,h,v,f,g,m,b,w,y,M;var x=this;return __generator(this,(function(B){switch(B.label){case 0:return[4,this.loadMapScript()];case 1:B.sent();return[4,this.LoadBmapLibScript()];case 2:B.sent();if(this.mapRef){this.mapRef.addEventListener("touchmove",(function(t){if(t.cancelable){t.preventDefault()}}));this.map=new BMapGL.Map(this.mapRef);this.map.removeControl(this.map.getMapType());if(this.latitude<-90||this.latitude>90||this.longitude<-180||this.longitude>180||isNaN(this.latitude)||isNaN(this.longitude)){console.error("请正确设置中心经纬度");return[2]}t=isNaN(this.scale)?16:this.scale;e=isNaN(this.minScale)?3:this.minScale;a=isNaN(this.maxScale)?16:this.maxScale;o=new BMapGL.Point(this.longitude,this.latitude);if(e<3||e>20){e=3;this.map.setMinZoom(3)}else{this.map.setMinZoom(e)}if(a>20||a<3){a=20;this.map.setMaxZoom(20)}else{this.map.setMaxZoom(a)}if(e>a){e=3;this.map.setMinZoom(3);a=20;this.map.setMaxZoom(20)}if(e<=16&&a>=16){if(t>=e&&t<=a){this.map.centerAndZoom(o,t)}else{t=16;this.map.centerAndZoom(o,t)}}else{if(t>=e&&t<=a){this.map.centerAndZoom(o,t)}else if(t<e){t=e;this.map.centerAndZoom(o,e)}else{t=a;this.map.centerAndZoom(o,a)}}if(Array.isArray(this.markers)){this.addMarkers(this.markers)}if(Array.isArray(this.polyline)){this.polyline.forEach((function(t){if(t.points){var e=t.points.map((function(t){return new BMapGL.Point(t.longitude,t.latitude)}));var a=new BMapGL.Polyline(e,{strokeColor:t.color,strokeWeight:t.width,strokeStyle:t.dottedLine?"dashed":"solid",strokeOpacity:1});x.map.addOverlay(a)}}))}if(Array.isArray(this.circles)){this.circles.forEach((function(t){if(t.latitude&&t.longitude&&t.radius){var e=new BMapGL.Point(t.longitude,t.latitude);var a=new BMapGL.Circle(e,t.radius,{strokeColor:t.color,fillColor:t.fillColor,strokeWeight:t.strokeWidth});x.map.addOverlay(a)}}))}if(Array.isArray(this.polygons)){this.polygons.forEach((function(t){var e=t.points.map((function(t){return new BMapGL.Point(t.longitude,t.latitude)}));var a=new BMapGL.Polygon(e,{strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWidth});x.map.addOverlay(a)}))}if(this.layerStyle===0){n=this.layerStyle;if(n){this.map.setMapStyleV2({styleId:this.subkey})}}else{n=this.layerStyle?this.layerStyle:1;if(n===1){this.map.setMapStyleV2({styleId:this.subkey})}}i=this.enable3D===true?this.enable3D:false;l=this.enableOverlooking===true?this.enableOverlooking:false;s=this.enableAutoMaxOverlooking===true?this.enableAutoMaxOverlooking:false;d=this.skew?this.skew:0;if(i===true){if(l===true){if(s===true){this.map.setTilt(75)}else{this.map.setTilt(45)}}else if(d>=0&&d<=40){this.map.setTilt(d)}else{this.map.setTilt(0)}}else{this.map.setTilt(0)}u=this.showCompass===true?this.showCompass:false;if(u===true){c=new BMapGL.NavigationControl3D({anchor:BMAP_ANCHOR_TOP_RIGHT,type:3});this.map.addControl(c)}p=this.showScale===true?this.showScale:false;if(p===true){h=new BMapGL.ScaleControl({anchor:BMAP_ANCHOR_BOTTOM_RIGHT});this.map.addControl(h)}v=this.enableZoom===false?this.enableZoom:true;if(v===true){this.map.enableScrollWheelZoom(this.enableZoom)}if(this.enableZoom===true&&this.mapRef){this.map.enablePinchToZoom()}else{this.map.disablePinchToZoom()}f=this.enableScroll===false?this.enableScroll:true;if(f===true){this.map.enableDragging()}else{this.map.disableDragging()}g=this.rotate?this.rotate:0;if(g>=0&&this.rotate<=360){this.map.setHeading(this.rotate)}else{this.map.setHeading(0)}if(this.enableRotate===true){this.map.enableRotateGestures()}m=this.enableSatellite===true?this.enableSatellite:false;if(m===true&&this.mapRef){b=new BMapGL.MapTypeControl({mapTypes:[BMAP_NORMAL_MAP,BMAP_SATELLITE_MAP]});this.map.addControl(b)}w=this.enableTraffic===true?this.enableTraffic:false;if(w===true&&this.mapRef){this.map.setTrafficOn()}y=this.enableBuilding===false?this.enableBuilding:true;if(y===false){this.map.setDisplayOptions({building:false})}}if(this.map){M=new r(this.mapRef);M.on("tap",(function(t){var e=x.map.pixelToPoint({x:t.center.x,y:t.center.y});x.onTap.emit({longitude:e.lng,latitude:e.lat})}))}return[2]}}))}))};t.prototype.disconnectedCallback=function(){if(this.map){this.map.destroy()}};t.prototype.addMarkers=function(t){var e=this;var a=[];t.forEach((function(t){var o,n,i,l,s,d,u,c,p,h,v,f,g,m;if(a.includes(t.id)){console.error("请输入不同的marker的id");return}a.push(t.id);if(t.latitude&&t.longitude&&t.iconPath&&t.id){if(t.latitude<-90||t.latitude>90||t.longitude<-180||t.longitude>180){console.error("请正确设置marker的经纬度");return}var b=new BMapGL.Point(t.longitude,t.latitude);var w=new BMapGL.Marker(b,{enableClicking:true});w.id=t.id;w.alpha=t.alpha;if(t.zIndex){w.setZIndex(t.zIndex)}if(t.width&&t.height){var y=document.createElement("canvas");y.width=t.width*2;y.height=t.height*2;var M=y.getContext("2d");var x=new Image;x.crossOrigin="Anonymous";x.src=t.iconPath;x.onload=function(){M.drawImage(x,0,0,t.width*2,t.height*2);var e=new BMapGL.Icon(y.toDataURL(),new BMapGL.Size(t.width,t.height),{anchor:new BMapGL.Size(0,0)});w.setIcon(e)}}else{var B=new Image;B.src=t.iconPath;B.style.opacity=String(t.alpha);B.onload=function(){var e=new BMapGL.Size(B.width,B.height);var a=new BMapGL.Icon(B.src,e);a.imageOffset=new BMapGL.Size(0,0,t.alpha||1);w.setIcon(a)}}var L=t.rotate?t.rotate:0;if(L>=0&&L<=360){w.setRotation(L)}var _=(n=(o=t.anchor)===null||o===void 0?void 0:o.x)!==null&&n!==void 0?n:.5;var P=(l=(i=t.anchor)===null||i===void 0?void 0:i.y)!==null&&l!==void 0?l:1;if(_>=0&&_<=1&&P>=0&&P<=1){var G=-_*(t.width||0);var S=-P*(t.height||0);w.setOffset(new BMapGL.Size(G,S))}else{var G=-.5*(t.width||0);var S=-1*(t.height||0);w.setOffset(new BMapGL.Size(G,S))}if(!t.callout&&t.title){var k=new r(e.mapRef);k.on("tap",(function(t){var a=t.center;var o=a.x;var n=a.y;var i=15;e.markers.forEach((function(t){var a=document.getElementsByClassName("bmap-container")[0];var r=a.getBoundingClientRect();var l=r.left;var s=r.top;var d=new BMapGL.Point(t.longitude,t.latitude);var u=e.map.pointToPixel(d);var c=u.x+l;var p=u.y+s;var h=Math.sqrt(Math.pow(o-c,2)+Math.pow(n-p,2));if(h<i&&t.id===w.id){var v='<div style="text-align:center">'.concat(t.title,"</div>");var f=new BMapGL.InfoWindow(v);e.map.openInfoWindow(f,b)}}))}))}if(t.callout){var G=((s=t.callout)===null||s===void 0?void 0:s.anchorX)?(d=t.callout)===null||d===void 0?void 0:d.anchorX:0;var S=((u=t.callout)===null||u===void 0?void 0:u.anchorY)?(c=t.callout)===null||c===void 0?void 0:c.anchorY:0;var C=new BMapGL.InfoWindow('<div style="\n padding: '.concat((p=t.callout)===null||p===void 0?void 0:p.padding,"px;\n color:").concat((h=t.callout)===null||h===void 0?void 0:h.color,";\n text-align:").concat((v=t.callout)===null||v===void 0?void 0:v.textAlign,';"\n >\n <p style="font-size:').concat((f=t.callout)===null||f===void 0?void 0:f.fontSize,'px">').concat(((g=t.callout)===null||g===void 0?void 0:g.content)||"","</p>\n </div>"),{width:200,height:100,offset:new BMapGL.Size(G-24,S-20)});w.callout=C;e.map.addOverlay(w);if(((m=t.callout)===null||m===void 0?void 0:m.display)==="ALWAYS"){w.callout.disableCloseOnClick();var I=w.getPosition();w.callout.addEventListener("open",(function(){var e,a,o,n;var i=document.querySelector(".BMap_bubble_pop");if(i){var r=i.querySelector(".triangle");if(!r){r=document.createElement("div");r.className="triangle";i.appendChild(r)}var l=document.querySelector(".BMap_bubble_pop>img");if(l){l.setAttribute("style","position: absolute;transform: translate(-50%, 0); top: ".concat(I.lat-100,"px; left: ").concat(I.lng-20,"px;display:none"))}var s=(e=t.callout)===null||e===void 0?void 0:e.bgColor;var d=((a=t.callout)===null||a===void 0?void 0:a.borderWidth)||5;var u=(o=t.callout)===null||o===void 0?void 0:o.borderColor;var c=(n=t.callout)===null||n===void 0?void 0:n.borderRadius;d=Math.min(d,15);r.setAttribute("style","width:0;height:0;borderLeft:".concat(d,"px solid transparent;borderRight:").concat(d,"px solid transparent;borderTop:").concat(d,"px solid ").concat(u,";position:absolute;left:83px;bottom:-").concat(2*d,"px"));i.setAttribute("style","background-color:".concat(s,";top:").concat(I.lat-120,"px; left:").concat(I.lng-100,"px;position: absolute;border: ").concat(d,"px solid ").concat(u,";border-radius:").concat(c,"px; "))}}));e.map.openInfoWindow(w.callout,b)}else{var k=new r(e.mapRef);k.on("tap",(function(t){var a=t.center;var o=a.x;var n=a.y;var i=15;e.markers.forEach((function(t){var a=document.getElementsByClassName("bmap-container")[0];var r=a.getBoundingClientRect();var l=r.left;var s=r.top;var d=new BMapGL.Point(t.longitude,t.latitude);var u=e.map.pointToPixel(d);var c=u.x+l;var p=u.y+s;var h=Math.sqrt(Math.pow(o-c,2)+Math.pow(n-p,2));if(h<i&&t.id===w.id){var v=w.getPosition();w.callout.addEventListener("open",(function(){var e,a,o,n;var i=document.querySelector(".BMap_bubble_pop");if(i){var r=i.querySelector(".triangle");if(!r){r=document.createElement("div");r.className="triangle";i.appendChild(r)}var l=document.querySelector(".BMap_bubble_pop>img");if(l){l.setAttribute("style","position: absolute;transform: translate(-50%, 0); top: ".concat(v.lat-100,"px; left: ").concat(v.lng-20,"px;display:none"))}var s=(e=t.callout)===null||e===void 0?void 0:e.bgColor;var d=((a=t.callout)===null||a===void 0?void 0:a.borderWidth)||5;var u=(o=t.callout)===null||o===void 0?void 0:o.borderColor;var c=(n=t.callout)===null||n===void 0?void 0:n.borderRadius;d=Math.min(d,15);r.setAttribute("style","width:0;height:0;border-left:".concat(d,"px solid transparent;border-right:").concat(d,"px solid transparent;border-top:").concat(d,"px solid ").concat(u,";position:absolute;left:83px;bottom:-").concat(2*d,"px"));i.setAttribute("style","background-color:".concat(s,";top:").concat(v.lat-120,"px; left:").concat(v.lng-100,"px;position: absolute;border: ").concat(d,"px solid ").concat(u,";border-radius:").concat(c,"px; "))}}));e.map.openInfoWindow(w.callout,b)}else{w.callout.enableCloseOnClick()}}))}))}}if(t.label){var O=t.label.content||"";var N={position:b,offset:new BMapGL.Size(t.label.anchorX||0,t.label.anchorY||0)};var R=new BMapGL.Label(O,N);var A=t.label.borderColor?t.label.borderColor:"white";R.setStyle({color:t.label.color,fontSize:t.label.fontSize+"px",borderWidth:t.label.borderWidth+"px",borderColor:A,borderRadius:t.label.borderRadius+"px",background:t.label.bgColor,padding:t.label.padding+"px"});w.setLabel(R)}e.map.addOverlay(w)}else{console.error("请检查marker经纬度和marker自定义图标路径和id值")}}))};t.prototype.loadMapScript=function(){return new Promise((function(t,e){var a=document.createElement("script");a.src="https://api.map.baidu.com/getscript?v=3.0&type=webgl&ak=Mb1FLBD3gfnY6bup4v6zEWh6MXwsZ9eo";a.defer=true;a.onload=function(){return t()};a.onerror=e;a.type="text/javascript";document.head.appendChild(a)}))};t.prototype.LoadBmapLibScript=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,new Promise((function(t,e){var a=document.createElement("script");a.src="//mapopen.bj.bcebos.com/github/BMapGLLib/AreaRestriction/src/AreaRestriction.min.js";a.defer=true;a.type="text/javascript";a.onload=function(){t()};a.onerror=e;document.head.appendChild(a)}))]}))}))};t.prototype.render=function(){var t=this;return o(n,null,o("div",{id:"mapContainer",ref:function(e){if(e){t.mapRef=e}},style:{width:this.width,height:this.height}}))};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());s.style=l}}}));
@@ -1 +1 @@
1
- System.register(["./p-75d01c60.system.js","./p-8c3b906c.system.js","@tarojs/taro"],(function(t){"use strict";var n,e,o,r;return{setters:[function(t){n=t.r;e=t.h;o=t.H},function(t){r=t.n},function(){}],execute:function(){var i=t("taro_animation_view_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){r("AnimationView",this)};t.prototype.render=function(){return e(o,null)};return t}())}}}));
1
+ System.register(["./p-88de70df.system.js","./p-8c3b906c.system.js","@tarojs/taro"],(function(t){"use strict";var n,e,o,r;return{setters:[function(t){n=t.r;e=t.h;o=t.H},function(t){r=t.n},function(){}],execute:function(){var i=t("taro_animation_view_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){r("AnimationView",this)};t.prototype.render=function(){return e(o,null)};return t}())}}}));
@@ -0,0 +1 @@
1
+ System.register(["./p-88de70df.system.js","./p-8c3b906c.system.js","@tarojs/taro"],(function(t){"use strict";var n,r,e,o;return{setters:[function(t){n=t.r;r=t.h;e=t.H},function(t){o=t.n},function(){}],execute:function(){var i=t("taro_editor_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){o("Editor",this)};t.prototype.render=function(){return r(e,null)};return t}())}}}));
@@ -1 +1 @@
1
- System.register(["./p-75d01c60.system.js"],(function(t){"use strict";var i,e,n,h;return{setters:[function(t){i=t.r;e=t.c;n=t.h;h=t.g}],execute:function(){var o="taro-canvas-core{width:300px;height:150px;display:block;position:relative}";var s=500;var r=t("taro_canvas_core",function(){function t(t){var n=this;i(this,t);this.onLongTap=e(this,"longtap",7);this.onTouchStart=function(){n.timer=setTimeout((function(){n.onLongTap.emit()}),s)};this.onTouchMove=function(){clearTimeout(n.timer)};this.onTouchEnd=function(){clearTimeout(n.timer)};this.canvasId=undefined;this.height=undefined;this.width=undefined;this.nativeProps={}}t.prototype.componentDidRender=function(){var t=this.el.children[0];if(!this.height||!this.width){var i=window.getComputedStyle(t);this.height||(this.height=i.height);this.width||(this.width=i.width)}t.height=parseInt(this.height);t.width=parseInt(this.width)};t.prototype.render=function(){var t=this,i=t.canvasId,e=t.nativeProps;return n("canvas",Object.assign({"canvas-id":i,style:{width:"100%",height:"100%"},onTouchStart:this.onTouchStart,onTouchMove:this.onTouchMove,onTouchCancel:this.onTouchEnd,onTouchEnd:this.onTouchEnd},e))};Object.defineProperty(t.prototype,"el",{get:function(){return h(this)},enumerable:false,configurable:true});return t}());r.style=o}}}));
1
+ System.register(["./p-88de70df.system.js"],(function(t){"use strict";var i,e,n,h;return{setters:[function(t){i=t.r;e=t.c;n=t.h;h=t.g}],execute:function(){var o="taro-canvas-core{width:300px;height:150px;display:block;position:relative}";var s=500;var r=t("taro_canvas_core",function(){function t(t){var n=this;i(this,t);this.onLongTap=e(this,"longtap",7);this.onTouchStart=function(){n.timer=setTimeout((function(){n.onLongTap.emit()}),s)};this.onTouchMove=function(){clearTimeout(n.timer)};this.onTouchEnd=function(){clearTimeout(n.timer)};this.canvasId=undefined;this.height=undefined;this.width=undefined;this.nativeProps={}}t.prototype.componentDidRender=function(){var t=this.el.children[0];if(!this.height||!this.width){var i=window.getComputedStyle(t);this.height||(this.height=i.height);this.width||(this.width=i.width)}t.height=parseInt(this.height);t.width=parseInt(this.width)};t.prototype.render=function(){var t=this,i=t.canvasId,e=t.nativeProps;return n("canvas",Object.assign({"canvas-id":i,style:{width:"100%",height:"100%"},onTouchStart:this.onTouchStart,onTouchMove:this.onTouchMove,onTouchCancel:this.onTouchEnd,onTouchEnd:this.onTouchEnd},e))};Object.defineProperty(t.prototype,"el",{get:function(){return h(this)},enumerable:false,configurable:true});return t}());r.style=o}}}));
@@ -1 +1 @@
1
- import{r as i,c as t,h as e,g as o}from"./p-e62a1287.js";const r=class{constructor(e){i(this,e),this.onChange=t(this,"change",7),this.switchChange=i=>{i.stopPropagation();const t=i.target.checked;this.checked=t,this.onChange.emit({value:t})},this.type="switch",this.checked=!1,this.color="#04BE02",this.name=void 0,this.disabled=!1,this.nativeProps={},this.isWillLoadCalled=!1}function(i){this.isWillLoadCalled&&this.inputRef.checked!==i&&(this.inputRef.checked=i)}componentWillLoad(){this.isWillLoadCalled=!0}componentDidLoad(){Object.defineProperty(this.el,"value",{get:()=>this.checked,configurable:!0})}render(){const{type:i,color:t,checked:o,name:r,disabled:s,nativeProps:c}=this;return e("input",Object.assign({ref:i=>{this.inputRef=i},type:"checkbox",class:`weui-${i}`,style:o?{borderColor:t||"04BE02",backgroundColor:t||"04BE02"}:{},checked:o,name:r,disabled:s,onChange:this.switchChange},c))}get el(){return o(this)}static get watchers(){return{checked:["function"]}}};r.style='.weui-cell_switch{padding-top:6.5px;padding-bottom:6.5px}.weui-switch{-webkit-appearance:none;-moz-appearance:none;appearance:none}.weui-switch,.weui-switch-cp__box{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#dfdfdf;border:1px solid #dfdfdf;border-radius:16px;outline:0;width:52px;height:32px;-webkit-transition:background-color .1s,border .1s;transition:background-color .1s,border .1s;position:relative}.weui-switch:before,.weui-switch-cp__box:before{content:" ";background-color:#fdfdfd;border-radius:15px;width:50px;height:30px;-webkit-transition:-webkit-transform .35s cubic-bezier(.45,1,.4,1);transition:-webkit-transform .35s cubic-bezier(.45,1,.4,1);transition:transform .35s cubic-bezier(.45,1,.4,1);transition:transform .35s cubic-bezier(.45,1,.4,1), -webkit-transform .35s cubic-bezier(.45,1,.4,1);position:absolute;top:0;left:0}.weui-switch:after,.weui-switch-cp__box:after{content:" ";background-color:#fff;border-radius:15px;width:30px;height:30px;-webkit-transition:-webkit-transform .35s cubic-bezier(.4,.4,.25,1.35);transition:-webkit-transform .35s cubic-bezier(.4,.4,.25,1.35);transition:transform .35s cubic-bezier(.4,.4,.25,1.35);transition:transform .35s cubic-bezier(.4,.4,.25,1.35), -webkit-transform .35s cubic-bezier(.4,.4,.25,1.35);position:absolute;top:0;left:0;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.4);box-shadow:0 1px 3px rgba(0,0,0,.4)}.weui-switch:checked,.weui-switch-cp__input:checked~.weui-switch-cp__box{background-color:#04be02;border-color:#04be02}.weui-switch:checked:before,.weui-switch-cp__input:checked~.weui-switch-cp__box:before{-webkit-transform:scale(0);transform:scale(0)}.weui-switch:checked:after,.weui-switch-cp__input:checked~.weui-switch-cp__box:after{-webkit-transform:translate(20px);transform:translate(20px)}.weui-switch-cp__input{position:absolute;left:-9999px}.weui-switch-cp__box{display:block}taro-switch-core{width:52px;height:32px;display:inline-block}taro-switch-core .weui-switch{width:100%;height:100%;display:block}';export{r as taro_switch_core}
1
+ import{r as i,c as t,h as e,g as o}from"./p-d0cabaaa.js";const r=class{constructor(e){i(this,e),this.onChange=t(this,"change",7),this.switchChange=i=>{i.stopPropagation();const t=i.target.checked;this.checked=t,this.onChange.emit({value:t})},this.type="switch",this.checked=!1,this.color="#04BE02",this.name=void 0,this.disabled=!1,this.nativeProps={},this.isWillLoadCalled=!1}function(i){this.isWillLoadCalled&&this.inputRef.checked!==i&&(this.inputRef.checked=i)}componentWillLoad(){this.isWillLoadCalled=!0}componentDidLoad(){Object.defineProperty(this.el,"value",{get:()=>this.checked,configurable:!0})}render(){const{type:i,color:t,checked:o,name:r,disabled:s,nativeProps:c}=this;return e("input",Object.assign({ref:i=>{this.inputRef=i},type:"checkbox",class:`weui-${i}`,style:o?{borderColor:t||"04BE02",backgroundColor:t||"04BE02"}:{},checked:o,name:r,disabled:s,onChange:this.switchChange},c))}get el(){return o(this)}static get watchers(){return{checked:["function"]}}};r.style='.weui-cell_switch{padding-top:6.5px;padding-bottom:6.5px}.weui-switch{-webkit-appearance:none;-moz-appearance:none;appearance:none}.weui-switch,.weui-switch-cp__box{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#dfdfdf;border:1px solid #dfdfdf;border-radius:16px;outline:0;width:52px;height:32px;-webkit-transition:background-color .1s,border .1s;transition:background-color .1s,border .1s;position:relative}.weui-switch:before,.weui-switch-cp__box:before{content:" ";background-color:#fdfdfd;border-radius:15px;width:50px;height:30px;-webkit-transition:-webkit-transform .35s cubic-bezier(.45,1,.4,1);transition:-webkit-transform .35s cubic-bezier(.45,1,.4,1);transition:transform .35s cubic-bezier(.45,1,.4,1);transition:transform .35s cubic-bezier(.45,1,.4,1), -webkit-transform .35s cubic-bezier(.45,1,.4,1);position:absolute;top:0;left:0}.weui-switch:after,.weui-switch-cp__box:after{content:" ";background-color:#fff;border-radius:15px;width:30px;height:30px;-webkit-transition:-webkit-transform .35s cubic-bezier(.4,.4,.25,1.35);transition:-webkit-transform .35s cubic-bezier(.4,.4,.25,1.35);transition:transform .35s cubic-bezier(.4,.4,.25,1.35);transition:transform .35s cubic-bezier(.4,.4,.25,1.35), -webkit-transform .35s cubic-bezier(.4,.4,.25,1.35);position:absolute;top:0;left:0;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.4);box-shadow:0 1px 3px rgba(0,0,0,.4)}.weui-switch:checked,.weui-switch-cp__input:checked~.weui-switch-cp__box{background-color:#04be02;border-color:#04be02}.weui-switch:checked:before,.weui-switch-cp__input:checked~.weui-switch-cp__box:before{-webkit-transform:scale(0);transform:scale(0)}.weui-switch:checked:after,.weui-switch-cp__input:checked~.weui-switch-cp__box:after{-webkit-transform:translate(20px);transform:translate(20px)}.weui-switch-cp__input{position:absolute;left:-9999px}.weui-switch-cp__box{display:block}taro-switch-core{width:52px;height:32px;display:inline-block}taro-switch-core .weui-switch{width:100%;height:100%;display:block}';export{r as taro_switch_core}
@@ -0,0 +1 @@
1
+ import{r as a,h as r,H as o}from"./p-d0cabaaa.js";import{n as t}from"./p-dbdb9de9.js";import"@tarojs/taro";const s=class{constructor(r){a(this,r)}componentDidLoad(){t("AwemeData",this)}render(){return r(o,null)}};export{s as taro_aweme_data_core}
@@ -1 +1 @@
1
- System.register(["./p-75d01c60.system.js"],(function(e){"use strict";var t,r,s;return{setters:[function(e){t=e.r;r=e.h;s=e.H}],execute:function(){var n="taro-text-core{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline}taro-text-core[selectable=true],taro-text-core[user-select=true]{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;display:inline-block}taro-text-core[space]{white-space:pre-wrap}taro-text-core[space=ensp]{word-spacing:.5em}taro-text-core[space=nbsp]{word-spacing:1em}taro-text-core[number-of-lines]{--line-clamp:2;word-wrap:break-word;text-overflow:ellipsis;-webkit-line-clamp:var(--line-clamp);-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}";var i=e("taro_text_core",function(){function e(e){t(this,e);this.selectable=false;this.userSelect=false;this.space=undefined;this.numberOfLines=undefined}e.prototype.render=function(){var e={};if(typeof this.numberOfLines==="number"){e["--line-clamp"]=this.numberOfLines}return r(s,{style:e},r("slot",null))};return e}());i.style=n}}}));
1
+ System.register(["./p-88de70df.system.js"],(function(e){"use strict";var t,r,s;return{setters:[function(e){t=e.r;r=e.h;s=e.H}],execute:function(){var n="taro-text-core{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline}taro-text-core[selectable=true],taro-text-core[user-select=true]{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;display:inline-block}taro-text-core[space]{white-space:pre-wrap}taro-text-core[space=ensp]{word-spacing:.5em}taro-text-core[space=nbsp]{word-spacing:1em}taro-text-core[number-of-lines]{--line-clamp:2;word-wrap:break-word;text-overflow:ellipsis;-webkit-line-clamp:var(--line-clamp);-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}";var i=e("taro_text_core",function(){function e(e){t(this,e);this.selectable=false;this.userSelect=false;this.space=undefined;this.numberOfLines=undefined}e.prototype.render=function(){var e={};if(typeof this.numberOfLines==="number"){e["--line-clamp"]=this.numberOfLines}return r(s,{style:e},r("slot",null))};return e}());i.style=n}}}));
@@ -1 +1 @@
1
- System.register(["./p-75d01c60.system.js","./p-8c3b906c.system.js","@tarojs/taro"],(function(t){"use strict";var n,e,r,o;return{setters:[function(t){n=t.r;e=t.h;r=t.H},function(t){o=t.n},function(){}],execute:function(){var s=t("taro_live_pusher_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){o("LivePusher",this)};t.prototype.render=function(){return e(r,null)};return t}())}}}));
1
+ System.register(["./p-88de70df.system.js","./p-8c3b906c.system.js","@tarojs/taro"],(function(t){"use strict";var n,e,r,o;return{setters:[function(t){n=t.r;e=t.h;r=t.H},function(t){o=t.n},function(){}],execute:function(){var s=t("taro_live_pusher_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){o("LivePusher",this)};t.prototype.render=function(){return e(r,null)};return t}())}}}));
@@ -1 +1 @@
1
- System.register(["./p-75d01c60.system.js","./p-443b9a72.system.js","./p-8c3b906c.system.js","@tarojs/taro"],(function(t){"use strict";var e,i,o,n,s,r,a;return{setters:[function(t){e=t.r;i=t.c;o=t.h;n=t.H;s=t.g},function(t){r=t.c},function(t){a=t.h},function(){}],execute:function(){var h="taro-view-core{display:block}";var u=t("taro_view_core",function(){function t(t){e(this,t);this.onLongPress=i(this,"longpress",7);this.startTime=0;this.animation=undefined;this.hoverClass=undefined;this.hoverStartTime=50;this.hoverStayTime=400;this.hover=false;this.touch=false}t.prototype.onTouchStart=function(){var t=this;if(this.hoverClass){this.touch=true;setTimeout((function(){if(t.touch){t.hover=true}}),this.hoverStartTime)}this.timeoutEvent=setTimeout((function(){t.onLongPress.emit()}),350);this.startTime=Date.now()};t.prototype.onTouchMove=function(){clearTimeout(this.timeoutEvent)};t.prototype.onTouchEnd=function(){var t=this;var e=Date.now()-this.startTime;if(e<350){clearTimeout(this.timeoutEvent)}if(this.hoverClass){this.touch=false;setTimeout((function(){if(!t.touch){t.hover=false}}),this.hoverStayTime)}};t.prototype.componentDidRender=function(){a(this.el)};t.prototype.render=function(){var t;var e=r((t={},t["".concat(this.hoverClass)]=this.hover,t));var i={};if(!!this.animation){i["animation"]=this.animation;i["data-animation"]=this.animation}return o(n,Object.assign({class:e},i),o("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});return t}());u.style=h}}}));
1
+ System.register(["./p-88de70df.system.js","./p-443b9a72.system.js","./p-8c3b906c.system.js","@tarojs/taro"],(function(t){"use strict";var e,i,o,n,s,r,a;return{setters:[function(t){e=t.r;i=t.c;o=t.h;n=t.H;s=t.g},function(t){r=t.c},function(t){a=t.h},function(){}],execute:function(){var h="taro-view-core{display:block}";var u=t("taro_view_core",function(){function t(t){e(this,t);this.onLongPress=i(this,"longpress",7);this.startTime=0;this.animation=undefined;this.hoverClass=undefined;this.hoverStartTime=50;this.hoverStayTime=400;this.hover=false;this.touch=false}t.prototype.onTouchStart=function(){var t=this;if(this.hoverClass){this.touch=true;setTimeout((function(){if(t.touch){t.hover=true}}),this.hoverStartTime)}this.timeoutEvent=setTimeout((function(){t.onLongPress.emit()}),350);this.startTime=Date.now()};t.prototype.onTouchMove=function(){clearTimeout(this.timeoutEvent)};t.prototype.onTouchEnd=function(){var t=this;var e=Date.now()-this.startTime;if(e<350){clearTimeout(this.timeoutEvent)}if(this.hoverClass){this.touch=false;setTimeout((function(){if(!t.touch){t.hover=false}}),this.hoverStayTime)}};t.prototype.componentDidRender=function(){a(this.el)};t.prototype.render=function(){var t;var e=r((t={},t["".concat(this.hoverClass)]=this.hover,t));var i={};if(!!this.animation){i["animation"]=this.animation;i["data-animation"]=this.animation}return o(n,Object.assign({class:e},i),o("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});return t}());u.style=h}}}));
@@ -1 +1 @@
1
- System.register(["./p-75d01c60.system.js"],(function(t){"use strict";var r,e,n;return{setters:[function(t){r=t.r;e=t.h;n=t.H}],execute:function(){var u=t("taro_custom_wrapper_core",function(){function t(t){r(this,t)}t.prototype.render=function(){return e(n,null)};return t}())}}}));
1
+ System.register(["./p-88de70df.system.js"],(function(t){"use strict";var r,e,n;return{setters:[function(t){r=t.r;e=t.h;n=t.H}],execute:function(){var u=t("taro_custom_wrapper_core",function(){function t(t){r(this,t)}t.prototype.render=function(){return e(n,null)};return t}())}}}));
@@ -0,0 +1 @@
1
+ import{r as o,h as t,H as r}from"./p-d0cabaaa.js";import{n as a}from"./p-dbdb9de9.js";import"@tarojs/taro";const s=class{constructor(t){o(this,t)}componentDidLoad(){a("CommentDetail",this)}render(){return t(r,null)}};export{s as taro_comment_detail_core}
@@ -0,0 +1 @@
1
+ import{r as i,c as e,h as t,H as r,g as s}from"./p-d0cabaaa.js";import a from"swiper/bundle";import{d as o}from"./p-5893c3ed.js";import{c as n}from"./p-160d710a.js";import{h as p}from"./p-dbdb9de9.js";import"@tarojs/taro";var l,w,c,d,h,b=function(i,e,t,r){if("a"===t&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?i!==e||!r:!e.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===t?r:"a"===t?r.call(i):r?r.value:e.get(i)},g=function(i,e,t,r,s){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?i!==e||!s:!e.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?s.call(i,t):s?s.value=t:e.set(i,t),t};let f=0;const A=class{constructor(t){i(this,t),this.onChange=e(this,"change",7),this.onAnimationFinish=e(this,"animationfinish",7),l.set(this,f++),w.set(this,""),c.set(this,!1),d.set(this,!1),h.set(this,0),this.handleSwiperSizeDebounce=o((()=>{this.swiper&&this.isWillLoadCalled&&(this.circular?b(this,d,"f")&&(this.reset(),g(this,d,!1,"f"),g(this,c,!1,"f")):(this.swiper.update(),g(this,c,!1,"f")))}),50),this.reset=()=>{g(this,c,!0,"f"),g(this,h,this.swiper.realIndex,"f"),this.swiper.destroy(),this.handleInit(!0),g(this,c,!1,"f")},this.getSlidersList=()=>this.el.querySelectorAll("taro-swiper-item-core:not(.swiper-slide-duplicate)")||[],this.getNeedFixLoop=()=>{const i=this.parseMargin().filter(Boolean).length>0;return this.circular&&i},this.parseMargin=()=>{const[,i]=/^(\d+)px/.exec(this.previousMargin)||[],[,e]=/^(\d+)px/.exec(this.nextMargin)||[];return[parseInt(i)||0,parseInt(e)||0]},this.swiperWrapper=void 0,this.swiper=void 0,this.isWillLoadCalled=!1,this.indicatorDots=!1,this.indicatorColor="rgba(0, 0, 0, .3)",this.indicatorActiveColor="#000000",this.autoplay=!1,this.current=0,this.currentItemId="",this.interval=5e3,this.duration=500,this.circular=!1,this.vertical=!1,this.previousMargin="0px",this.nextMargin="0px",this.displayMultipleItems=1,this.full=!1,this.zoom=!1,this.effectsProps={},this.observer=void 0}watchCurrent(i){if(this.currentItemId||!this.isWillLoadCalled||!this.swiper)return;const e=parseInt(i,10);isNaN(e)||e===this.swiper.realIndex||(g(this,w,"","f"),this.circular?(this.swiper.slideToLoop(e),this.autoplay&&this.swiper.autoplay.pause(),this.swiper.loopFix(),this.autoplay&&this.swiper.autoplay.start()):this.swiper.slideTo(e))}watchCurrentItemId(i){if(!this.swiperWrapper||!this.isWillLoadCalled)return;let e=0;this.getSlidersList().forEach(((t,r)=>{t.getAttribute("item-id")===i&&(e=this.circular?Number(t.getAttribute("data-swiper-slide-index")):r)})),e!==this.swiper.realIndex&&(g(this,w,"","f"),this.circular?(this.swiper.slideToLoop(e),this.swiper.loopFix(),this.autoplay&&this.swiper.autoplay.start()):this.swiper.slideTo(e))}watchAutoplay(i){if(!this.isWillLoadCalled||!this.swiper)return;const e=this.swiper.autoplay;if(e){if(e.running===i)return;i?(this.swiper.params&&"object"==typeof this.swiper.params.autoplay&&(!0===this.swiper.params.autoplay.disableOnInteraction&&(this.swiper.params.autoplay.disableOnInteraction=!1),this.swiper.params.autoplay.delay=this.interval),e.start()):e.stop()}}watchDuration(i){this.swiper&&this.isWillLoadCalled&&(this.swiper.params.speed=i)}watchInterval(i){this.swiper&&this.isWillLoadCalled&&"object"==typeof this.swiper.params.autoplay&&(this.swiper.params.autoplay.delay=i)}watchSwiperWrapper(i){if(!this.isWillLoadCalled||!this.swiper)return;if(!i)return;const e=()=>{g(this,d,!0,"f"),this.swiper.loopDestroy(),this.swiper.params.loop=!1};this.el.appendChild=t=>(g(this,c,!0,"f"),!b(this,d,"f")&&this.circular&&e(),i.appendChild(t)),this.el.insertBefore=(t,r)=>(g(this,c,!0,"f"),!b(this,d,"f")&&this.circular&&e(),i.insertBefore(t,r)),this.el.replaceChild=(t,r)=>(g(this,c,!0,"f"),!b(this,d,"f")&&this.circular&&e(),i.replaceChild(t,r)),this.el.removeChild=t=>(g(this,c,!0,"f"),!b(this,d,"f")&&this.circular&&e(),i.removeChild(t))}watchCircular(){this.swiper&&this.isWillLoadCalled&&this.reset()}watchDisplayMultipleItems(){this.swiper&&this.isWillLoadCalled&&this.reset()}componentWillLoad(){this.isWillLoadCalled=!0}componentDidLoad(){this.handleInit(),this.swiper&&this.swiperWrapper&&(this.observer=new MutationObserver(this.handleSwiperSizeDebounce),this.observer.observe(this.swiperWrapper,{childList:!0}))}disconnectedCallback(){var i;null===(i=this.observer)||void 0===i||i.disconnect()}handleInit(i=!1){const{autoplay:e,circular:t,current:r,currentItemId:s,displayMultipleItems:o,duration:n,interval:p,effectsProps:d,vertical:f}=this;let A=r;if(i)A=b(this,h,"f");else if(s){let i=0;this.getSlidersList().forEach(((e,t)=>{e.itemId&&e.itemId===s&&(i=t)})),A=i}const u=this.getLoopAdditionalSlides(),m=1===o,v=1===o?"auto":o,y=this,k=Object.assign(Object.assign({pagination:{el:`.taro-swiper-${b(this,l,"f")} > .swiper-container > .swiper-pagination`},direction:f?"vertical":"horizontal",loop:t,slidesPerView:v,initialSlide:A,loopAdditionalSlides:u,speed:n,observeParents:!0,observer:!0,centeredSlides:m,zoom:this.zoom},d),{on:{changeTransitionEnd(i){if(b(y,c,"f")||b(y,h,"f")===this.realIndex)return;g(y,h,this.realIndex,"f"),y.getNeedFixLoop()&&i.loopFix(),y.autoplay&&i.autoplay.start();const e=y.getCurrentItemId(i);y.onAnimationFinish.emit({current:this.realIndex,source:b(y,w,"f"),currentItemId:e}),g(y,w,"autoplay","f")},touchMove(){g(y,w,"touch","f")},slideChange(i){if(b(y,c,"f")||b(y,h,"f")===this.realIndex)return;const e=y.getCurrentItemId(i);y.onChange.emit({current:this.realIndex,source:b(y,w,"f"),currentItemId:e})},init:i=>{y.getNeedFixLoop()&&i.loopFix(),y.autoplay&&i.autoplay.start()},touchEnd:i=>{g(y,w,"touch","f"),y.autoplay&&i.autoplay.start()},touchStart:i=>{g(y,w,"touch","f"),y.autoplay&&i.autoplay.pause()},autoplay(i){i.animating=!1,g(y,w,"autoplay","f")}}});if(e&&(k.autoplay={delay:p,disableOnInteraction:!1}),this.swiper=new a(`.taro-swiper-${b(this,l,"f")} > .swiper-container`,k),this.getNeedFixLoop()){const i=this.swiper.minTranslate.bind(this.swiper),e=this.swiper.maxTranslate.bind(this.swiper);m&&this.getSlidersList().length<4?(this.swiper.minTranslate=()=>i()+this.parseMargin()[1],this.swiper.maxTranslate=()=>e()-this.parseMargin()[0]):(this.swiper.minTranslate=()=>i()-this.parseMargin()[0],this.swiper.maxTranslate=()=>e()+this.parseMargin()[1])}this.swiperWrapper=this.swiper.wrapperEl}getLoopAdditionalSlides(){const i=this.getSlidersList().length;return!this.el||!this.getNeedFixLoop()||i<5?0:i<=7?1:2}getCurrentItemId(i){return i.slides[i.activeIndex].getAttribute("item-id")}render(){const{vertical:i,indicatorDots:e,indicatorColor:s,indicatorActiveColor:a}=this,[o,n]=this.parseMargin(),p={};(o||n)&&(p.overflow="hidden"),this.full&&(p.height="100%");const w=["overflow: visible;",i?`margin-top: ${o}px; margin-bottom: ${n}px;`:`margin-right: ${n}px; margin-left: ${o}px;`,this.full?"height: 100%;":""],c=[e?"opacity: 1;":"display: none;","font-size: 0;"];return t(r,{class:`taro-swiper-${b(this,l,"f")}`,style:p},t("div",{class:"swiper-container"},t("style",{type:"text/css"},`\n .taro-swiper-${b(this,l,"f")} > .swiper-container > .swiper-pagination > .swiper-pagination-bullet { background: ${s} }\n .taro-swiper-${b(this,l,"f")} > .swiper-container > .swiper-pagination > .swiper-pagination-bullet-active { background: ${a} }\n .taro-swiper-${b(this,l,"f")} > .swiper-container { ${w.join("")} }\n .taro-swiper-${b(this,l,"f")} > .swiper-container > .swiper-pagination { ${c.join("")} }\n `),t("div",{class:"swiper-wrapper"},t("slot",null)),t("div",{class:"swiper-pagination"})))}get el(){return s(this)}static get watchers(){return{current:["watchCurrent"],currentItemId:["watchCurrentItemId"],autoplay:["watchAutoplay"],duration:["watchDuration"],interval:["watchInterval"],swiperWrapper:["watchSwiperWrapper"],circular:["watchCircular"],displayMultipleItems:["watchDisplayMultipleItems"]}}};l=new WeakMap,w=new WeakMap,c=new WeakMap,d=new WeakMap,h=new WeakMap,A.style="@font-face{font-family:swiper-icons;src:url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px,0,0);transform:translate3d(0px,0,0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height,-webkit-transform;transition-property:height,-webkit-transform;transition-property:transform,height;transition-property:transform,height,-webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper::before{content:'';-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear,right top, left top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear,left top, right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear,left bottom, left top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear,left top, left bottom,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader,.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;-webkit-transform:translateZ(0);transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:var(--swiper-navigation-top-offset,50%);width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next svg,.swiper-button-prev svg{width:100%;height:100%;-o-object-fit:contain;object-fit:contain;-webkit-transform-origin:center;transform-origin:center}.swiper-rtl .swiper-button-next svg,.swiper-rtl .swiper-button-prev svg{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset,10px);right:auto}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-lock{display:none}.swiper-button-next:after,.swiper-button-prev:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none!important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:'prev'}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:'next'}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:.3s opacity;transition:.3s opacity;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(.33);transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(.66);transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(.33);transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(.66);transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(.33);transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;-webkit-transform:translate3d(0px,-50%,0);transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:.2s transform,.2s top;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:.2s transform,.2s left;transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:.2s transform,.2s right;transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,rgba(0,0,0,.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:var(--swiper-pagination-progressbar-size,4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius,10px);position:relative;-ms-touch-action:none;touch-action:none;background:var(--swiper-scrollbar-bg-color,rgba(0,0,0,.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset,1%);bottom:var(--swiper-scrollbar-bottom,4px);top:var(--swiper-scrollbar-top,auto);z-index:50;height:var(--swiper-scrollbar-size,4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);z-index:50;width:var(--swiper-scrollbar-size,4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color,rgba(0,0,0,.5));border-radius:var(--swiper-scrollbar-border-radius,10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-width:100%;max-height:100%;-o-object-fit:contain;object-fit:contain}.swiper-slide-zoomed{cursor:move;-ms-touch-action:none;touch-action:none}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{-ms-flex-wrap:wrap;flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-direction:column;flex-direction:column}.swiper-fade.swiper-free-mode .swiper-slide{-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.swiper-fade .swiper-slide{pointer-events:none;-webkit-transition-property:opacity;transition-property:opacity}.swiper-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-fade .swiper-slide-active{pointer-events:auto}.swiper-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;-webkit-transform-origin:0 0;transform-origin:0 0;width:100%;height:100%}.swiper-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-cube.swiper-rtl .swiper-slide{-webkit-transform-origin:100% 0;transform-origin:100% 0}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-next,.swiper-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;-webkit-filter:blur(50px);filter:blur(50px)}.swiper-cube .swiper-slide-next+.swiper-slide{pointer-events:auto;visibility:visible}.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-bottom,.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-left,.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-right,.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-flip{overflow:visible}.swiper-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-flip .swiper-slide-active,.swiper-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-bottom,.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-left,.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-right,.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-creative .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;-webkit-transition-property:opacity,height,-webkit-transform;transition-property:opacity,height,-webkit-transform;transition-property:transform,opacity,height;transition-property:transform,opacity,height,-webkit-transform}.swiper-cards{overflow:visible}.swiper-cards .swiper-slide{-webkit-transform-origin:center bottom;transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}taro-swiper-core{height:150px;display:block}taro-swiper-core .swiper-container{height:100%;position:relative;overflow:visible}";const u=class{constructor(e){i(this,e),this.itemId=void 0}connectedCallback(){this.el.className=n(this.el.className,"swiper-slide")}componentDidRender(){p(this.el)}render(){return t(r,{"item-id":this.itemId},t("slot",null))}get el(){return s(this)}};export{A as taro_swiper_core,u as taro_swiper_item_core}
@@ -1 +1 @@
1
- System.register(["./p-75d01c60.system.js","./p-8c3b906c.system.js","@tarojs/taro"],(function(t){"use strict";var n,r,o,e;return{setters:[function(t){n=t.r;r=t.h;o=t.H},function(t){e=t.n},function(){}],execute:function(){var i=t("taro_navigation_bar_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){e("NavigationBar",this)};t.prototype.render=function(){return r(o,null)};return t}())}}}));
1
+ System.register(["./p-88de70df.system.js","./p-8c3b906c.system.js","@tarojs/taro"],(function(t){"use strict";var n,r,o,e;return{setters:[function(t){n=t.r;r=t.h;o=t.H},function(t){e=t.n},function(){}],execute:function(){var i=t("taro_navigation_bar_core",function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){e("NavigationBar",this)};t.prototype.render=function(){return r(o,null)};return t}())}}}));
@@ -1 +1 @@
1
- System.register(["./p-75d01c60.system.js"],(function(e){"use strict";var i,r,l,t,o;return{setters:[function(e){i=e.r;r=e.c;l=e.h;t=e.H;o=e.g}],execute:function(){var a='page,body{--weui-cellMarginLR:16px;--weui-cellPaddingLR:16px}.weui-cells__group{border:0}.weui-cells__group:first-child{margin-top:0}.weui-cells__group_form{margin-top:24px}.weui-cells__group_form .weui-cells{margin-left:var(--weui-cellMarginLR);margin-right:var(--weui-cellMarginLR)}.weui-cells__group_form .weui-cells:before,.weui-cells__group_form .weui-cells:after{left:var(--weui-cellPaddingLR);right:var(--weui-cellPaddingLR)}.weui-cells__group_form .weui-cell{padding:16px var(--weui-cellPaddingLR)}.weui-cells__group_form .weui-cell:before{left:var(--weui-cellPaddingLR);right:var(--weui-cellPaddingLR)}.weui-cells__group_form .weui-cell:not(.weui-cell_vertical) .weui-cell__hd{padding-right:16px}.weui-cells__group_form .weui-cell:not(.weui-cell_vertical) .weui-cell__ft{padding-left:16px}.weui-cells__group_form .weui-cells__title{margin-top:24px;margin-bottom:8px;padding:0 32px}.weui-cells__group_form:first-child .weui-cells__title{margin-top:0}.weui-cells__group_form .weui-cells__tips{padding:0 calc(var(--weui-cellMarginLR) + var(--weui-cellPaddingLR));color:var(--weui-FG-2);margin-top:8px}.weui-cells__group_form .weui-cells__tips a{font-weight:700}.weui-cells__group_form .weui-cells__tips_warn{color:var(--weui-RED)}.weui-cells__group_form .weui-label{max-width:5em;margin-right:8px}.weui-cells__group_form .weui-cell_access:active:after,.weui-cells__group_form .weui-cell_active:active:after{border-radius:8px}.weui-cells__group_form .weui-cell_warn input{color:#e64340}.weui-cells__group_form .weui-icon-warn,.weui-cells__group_form .weui-cell_switch:active:after,.weui-cells__group_form .weui-cell_vcode:active:after,.weui-cells__group_form .weui-cell_readonly:active:after,.weui-cells__group_form .weui-cell_disabled:active:after{display:none}.weui-cells__group_form input,.weui-cells__group_form textarea,.weui-cells__group_form label[for]{-webkit-tap-highlight-color:transparent}.weui-cells__group_form .weui-cell_wrap{-ms-flex-align:initial;align-items:initial;padding-top:8px;padding-bottom:8px}.weui-cells__group_form .weui-cell_wrap .weui-cell__hd{padding-right:0}.weui-cells__group_form .weui-cell_wrap .weui-label{margin-top:8px}.weui-cells__group_form .weui-cell_wrap .weui-cell__bd{-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}.weui-cells__group_form .weui-cell__control{margin:8px 0 8px 16px}.weui-cells__group_form .weui-cell__control_flex{-ms-flex:1;flex:1;min-width:30vw}.weui-cells__group_form .weui-vcode-btn{color:#000;background-color:#f8f8f8;border-radius:6px;width:auto;height:auto;padding:0 12px;font-size:16px;line-height:2}.weui-cells__group_form .weui-vcode-btn:before{display:none}.weui-cells__group_form .weui-cell_vcode.weui-cell_wrap{padding-top:4px;padding-bottom:4px}.weui-cells__group_form .weui-cell_vcode.weui-cell_wrap .weui-label{margin-top:12px}.weui-cells__group_form .weui-cell_vcode.weui-cell_wrap .weui-input{min-height:1.88235em;font-size:17px}.weui-cells__group_form .weui-cells_checkbox .weui-check__label:before{left:calc(40px + var(--weui-cellPaddingLR))}.weui-cells__group_form .weui-cell_select{padding:0}.weui-cells__group_form .weui-cell_select-before .weui-cell__hd{padding-right:0}.weui-cells__group_form .weui-cell_switch{padding:12px 16px}.weui-cells__group_form-primary{margin-top:32px}.weui-cells__group_form-primary .weui-cells{background:var(--weui-BG-1);border-radius:8px;overflow:hidden}.weui-cells__group_form-primary .weui-cells:before,.weui-cells__group_form-primary .weui-cells:after{display:none}.weui-cells__group_form-primary .weui-cell_access:active:after,.weui-cells__group_form-primary .weui-cell_active:active:after{border-radius:0}.taro-checkbox{display:inline-block;position:relative}.taro-checkbox_checked{-webkit-appearance:none;-moz-appearance:none;appearance:none;vertical-align:0;color:#1aad19;background-color:#fff;border:1px solid #d1d1d1;border-radius:3px;outline:0;width:23px;height:23px;min-height:0;font-size:23px;display:inline-block;position:relative;top:5px}.taro-checkbox_checked:checked:before{vertical-align:middle;text-decoration:inherit;text-align:center;text-transform:none;font-variant:normal;font-family:weui;font-style:normal;font-weight:400;font-size:inherit;color:inherit;content:"";speak:none;display:inline-block;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-48%)scale(.73);transform:translate(-50%,-48%)scale(.73)}';var c=e("taro_checkbox_core",function(){function e(e){var l=this;i(this,e);this.onChange=r(this,"checkboxchange",7);this.handleChange=function(e){e.stopPropagation();l.onChange.emit({value:l.value})};this.name=undefined;this.value="";this.color=undefined;this.id=undefined;this.checked=false;this.disabled=false;this.nativeProps={};this.isWillLoadCalled=false}e.prototype.watchId=function(e){if(!this.isWillLoadCalled)return;if(e)this.inputEl.setAttribute("id",e)};e.prototype.componentWillLoad=function(){this.isWillLoadCalled=true};e.prototype.componentDidRender=function(){this.id&&this.el.removeAttribute("id")};e.prototype.render=function(){var e=this;var i=this,r=i.checked,o=i.name,a=i.color,c=i.value,n=i.disabled,u=i.nativeProps;return l(t,{className:"weui-cells_checkbox"},l("input",Object.assign({ref:function(i){if(!i)return;e.inputEl=i;if(e.id)i.setAttribute("id",e.id)},type:"checkbox",value:c,name:o,class:"taro-checkbox_checked",style:{color:a},checked:r,disabled:n,onChange:this.handleChange},u)),l("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{id:["watchId"]}},enumerable:false,configurable:true});return e}());c.style=a;var n=undefined&&undefined.__classPrivateFieldSet||function(e,i,r,l,t){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!t)throw new TypeError("Private accessor was defined without a setter");if(typeof i==="function"?e!==i||!t:!i.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?t.call(e,r):t?t.value=r:i.set(e,r),r};var u=undefined&&undefined.__classPrivateFieldGet||function(e,i,r,l){if(r==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof i==="function"?e!==i||!l:!i.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?l:r==="a"?l.call(e):l?l.value:i.get(e)};var s;var _=e("taro_checkbox_group_core",function(){function e(e){i(this,e);this.onChange=r(this,"change",7);this.uniqueName=Date.now().toString(36);s.set(this,void 0);this.name=undefined}e.prototype.function=function(e){e.stopPropagation();if(e.target.tagName!=="TARO-CHECKBOX-CORE")return;var i=this.el.querySelectorAll("taro-checkbox-core");n(this,s,this.getValues(i),"f");this.onChange.emit({value:u(this,s,"f")})};e.prototype.componentDidLoad=function(){var e=this;var i=this.el.querySelectorAll("taro-checkbox-core");i.forEach((function(i){i.setAttribute("name",e.name||e.uniqueName)}));Object.defineProperty(this.el,"value",{get:function(){if(!u(e,s,"f")){var i=e.el.querySelectorAll("taro-checkbox-core");n(e,s,e.getValues(i),"f")}return u(e,s,"f")},configurable:true})};e.prototype.getValues=function(e){return Array.from(e).filter((function(e){var i=e.querySelector("input");return i===null||i===void 0?void 0:i.checked})).map((function(e){return e.value}))};e.prototype.render=function(){return l(t,null)};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());s=new WeakMap}}}));
1
+ System.register(["./p-88de70df.system.js"],(function(e){"use strict";var i,r,l,t,o;return{setters:[function(e){i=e.r;r=e.c;l=e.h;t=e.H;o=e.g}],execute:function(){var a='page,body{--weui-cellMarginLR:16px;--weui-cellPaddingLR:16px}.weui-cells__group{border:0}.weui-cells__group:first-child{margin-top:0}.weui-cells__group_form{margin-top:24px}.weui-cells__group_form .weui-cells{margin-left:var(--weui-cellMarginLR);margin-right:var(--weui-cellMarginLR)}.weui-cells__group_form .weui-cells:before,.weui-cells__group_form .weui-cells:after{left:var(--weui-cellPaddingLR);right:var(--weui-cellPaddingLR)}.weui-cells__group_form .weui-cell{padding:16px var(--weui-cellPaddingLR)}.weui-cells__group_form .weui-cell:before{left:var(--weui-cellPaddingLR);right:var(--weui-cellPaddingLR)}.weui-cells__group_form .weui-cell:not(.weui-cell_vertical) .weui-cell__hd{padding-right:16px}.weui-cells__group_form .weui-cell:not(.weui-cell_vertical) .weui-cell__ft{padding-left:16px}.weui-cells__group_form .weui-cells__title{margin-top:24px;margin-bottom:8px;padding:0 32px}.weui-cells__group_form:first-child .weui-cells__title{margin-top:0}.weui-cells__group_form .weui-cells__tips{padding:0 calc(var(--weui-cellMarginLR) + var(--weui-cellPaddingLR));color:var(--weui-FG-2);margin-top:8px}.weui-cells__group_form .weui-cells__tips a{font-weight:700}.weui-cells__group_form .weui-cells__tips_warn{color:var(--weui-RED)}.weui-cells__group_form .weui-label{max-width:5em;margin-right:8px}.weui-cells__group_form .weui-cell_access:active:after,.weui-cells__group_form .weui-cell_active:active:after{border-radius:8px}.weui-cells__group_form .weui-cell_warn input{color:#e64340}.weui-cells__group_form .weui-icon-warn,.weui-cells__group_form .weui-cell_switch:active:after,.weui-cells__group_form .weui-cell_vcode:active:after,.weui-cells__group_form .weui-cell_readonly:active:after,.weui-cells__group_form .weui-cell_disabled:active:after{display:none}.weui-cells__group_form input,.weui-cells__group_form textarea,.weui-cells__group_form label[for]{-webkit-tap-highlight-color:transparent}.weui-cells__group_form .weui-cell_wrap{-ms-flex-align:initial;align-items:initial;padding-top:8px;padding-bottom:8px}.weui-cells__group_form .weui-cell_wrap .weui-cell__hd{padding-right:0}.weui-cells__group_form .weui-cell_wrap .weui-label{margin-top:8px}.weui-cells__group_form .weui-cell_wrap .weui-cell__bd{-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}.weui-cells__group_form .weui-cell__control{margin:8px 0 8px 16px}.weui-cells__group_form .weui-cell__control_flex{-ms-flex:1;flex:1;min-width:30vw}.weui-cells__group_form .weui-vcode-btn{color:#000;background-color:#f8f8f8;border-radius:6px;width:auto;height:auto;padding:0 12px;font-size:16px;line-height:2}.weui-cells__group_form .weui-vcode-btn:before{display:none}.weui-cells__group_form .weui-cell_vcode.weui-cell_wrap{padding-top:4px;padding-bottom:4px}.weui-cells__group_form .weui-cell_vcode.weui-cell_wrap .weui-label{margin-top:12px}.weui-cells__group_form .weui-cell_vcode.weui-cell_wrap .weui-input{min-height:1.88235em;font-size:17px}.weui-cells__group_form .weui-cells_checkbox .weui-check__label:before{left:calc(40px + var(--weui-cellPaddingLR))}.weui-cells__group_form .weui-cell_select{padding:0}.weui-cells__group_form .weui-cell_select-before .weui-cell__hd{padding-right:0}.weui-cells__group_form .weui-cell_switch{padding:12px 16px}.weui-cells__group_form-primary{margin-top:32px}.weui-cells__group_form-primary .weui-cells{background:var(--weui-BG-1);border-radius:8px;overflow:hidden}.weui-cells__group_form-primary .weui-cells:before,.weui-cells__group_form-primary .weui-cells:after{display:none}.weui-cells__group_form-primary .weui-cell_access:active:after,.weui-cells__group_form-primary .weui-cell_active:active:after{border-radius:0}.taro-checkbox{display:inline-block;position:relative}.taro-checkbox_checked{-webkit-appearance:none;-moz-appearance:none;appearance:none;vertical-align:0;color:#1aad19;background-color:#fff;border:1px solid #d1d1d1;border-radius:3px;outline:0;width:23px;height:23px;min-height:0;font-size:23px;display:inline-block;position:relative;top:5px}.taro-checkbox_checked:checked:before{vertical-align:middle;text-decoration:inherit;text-align:center;text-transform:none;font-variant:normal;font-family:weui;font-style:normal;font-weight:400;font-size:inherit;color:inherit;content:"";speak:none;display:inline-block;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-48%)scale(.73);transform:translate(-50%,-48%)scale(.73)}';var n=e("taro_checkbox_core",function(){function e(e){var l=this;i(this,e);this.onChange=r(this,"checkboxchange",7);this.handleChange=function(e){e.stopPropagation();l.onChange.emit({value:l.value})};this.name=undefined;this.value="";this.color=undefined;this.id=undefined;this.checked=false;this.disabled=false;this.nativeProps={};this.isWillLoadCalled=false}e.prototype.watchId=function(e){if(!this.isWillLoadCalled)return;if(e)this.inputEl.setAttribute("id",e)};e.prototype.componentWillLoad=function(){this.isWillLoadCalled=true};e.prototype.componentDidRender=function(){this.id&&this.el.removeAttribute("id")};e.prototype.render=function(){var e=this;var i=this,r=i.checked,o=i.name,a=i.color,n=i.value,c=i.disabled,u=i.nativeProps;return l(t,{className:"weui-cells_checkbox"},l("input",Object.assign({ref:function(i){if(!i)return;e.inputEl=i;if(e.id)i.setAttribute("id",e.id)},type:"checkbox",value:n,name:o,class:"taro-checkbox_checked",style:{color:a},checked:r,disabled:c,onChange:this.handleChange},u)),l("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{id:["watchId"]}},enumerable:false,configurable:true});return e}());n.style=a;var c=undefined&&undefined.__classPrivateFieldSet||function(e,i,r,l,t){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!t)throw new TypeError("Private accessor was defined without a setter");if(typeof i==="function"?e!==i||!t:!i.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?t.call(e,r):t?t.value=r:i.set(e,r),r};var u=undefined&&undefined.__classPrivateFieldGet||function(e,i,r,l){if(r==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof i==="function"?e!==i||!l:!i.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?l:r==="a"?l.call(e):l?l.value:i.get(e)};var s;var _=e("taro_checkbox_group_core",function(){function e(e){i(this,e);this.onChange=r(this,"change",7);this.uniqueName=Date.now().toString(36);s.set(this,void 0);this.name=undefined}e.prototype.function=function(e){e.stopPropagation();if(e.target.tagName!=="TARO-CHECKBOX-CORE")return;var i=this.el.querySelectorAll("taro-checkbox-core");c(this,s,this.getValues(i),"f");this.onChange.emit({value:u(this,s,"f")})};e.prototype.componentDidLoad=function(){var e=this;var i=this.el.querySelectorAll("taro-checkbox-core");i.forEach((function(i){i.setAttribute("name",e.name||e.uniqueName)}));Object.defineProperty(this.el,"value",{get:function(){if(!u(e,s,"f")){var i=e.el.querySelectorAll("taro-checkbox-core");c(e,s,e.getValues(i),"f")}return u(e,s,"f")},configurable:true})};e.prototype.getValues=function(e){return Array.from(e).filter((function(e){var i=e.querySelector("input");return i===null||i===void 0?void 0:i.checked})).map((function(e){return e.value}))};e.prototype.render=function(){return l(t,null)};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());s=new WeakMap}}}));
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,o,r,e){function l(t){return t instanceof r?t:new r((function(o){o(t)}))}return new(r||(r=Promise))((function(r,n){function i(t){try{c(e.next(t))}catch(t){n(t)}}function s(t){try{c(e["throw"](t))}catch(t){n(t)}}function c(t){t.done?r(t.value):l(t.value).then(i,s)}c((e=e.apply(t,o||[])).next())}))};var __generator=this&&this.__generator||function(t,o){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},e,l,n,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(t){return function(o){return c([t,o])}}function c(s){if(e)throw new TypeError("Generator is already executing.");while(i&&(i=0,s[0]&&(r=0)),r)try{if(e=1,l&&(n=s[0]&2?l["return"]:s[0]?l["throw"]||((n=l["return"])&&n.call(l),0):l.next)&&!(n=n.call(l,s[1])).done)return n;if(l=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;l=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(n=r.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){r.label=s[1];break}if(s[0]===6&&r.label<n[1]){r.label=n[1];n=s;break}if(n&&r.label<n[2]){r.label=n[2];r.ops.push(s);break}if(n[2])r.ops.pop();r.trys.pop();continue}s=o.call(t,r)}catch(t){s=[6,t];l=0}finally{e=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-75d01c60.system.js","./p-443b9a72.system.js","./p-010faa87.system.js","./p-8c3b906c.system.js","@tarojs/taro"],(function(t){"use strict";var o,r,e,l,n,i,s,c;return{setters:[function(t){o=t.r;r=t.c;e=t.h;l=t.H;n=t.g},function(t){i=t.c},function(t){s=t.d},function(t){c=t.h},function(){}],execute:function(){var a="taro-scroll-view-core{-webkit-overflow-scrolling:auto;width:100%;display:block}taro-scroll-view-core::-webkit-scrollbar{display:none}.taro-scroll-view__scroll-x{overflow:scroll hidden}.taro-scroll-view__scroll-y{overflow:hidden scroll}";function u(t,o,r,e){if(r===void 0){r=500}if(t===o||typeof t!=="number"){return}var l=o-t;var n=Date.now();var i=o>=t;function s(t,o,r,e){return r*t/e+o}function c(){t=s(Date.now()-n,t,l,r);if(i&&t>=o||!i&&o>=t){e(o);return}e(t);requestAnimationFrame(c)}c()}var f=t("taro_scroll_view_core",function(){function t(t){var e=this;o(this,t);this.onScroll=r(this,"scroll",3);this.onScrollToUpper=r(this,"scrolltoupper",3);this.onScrollToLower=r(this,"scrolltolower",3);this._scrollLeft=0;this._scrollTop=0;this.upperAndLower=s((function(){var t=e.el,o=t.offsetWidth,r=t.offsetHeight,l=t.scrollLeft,n=t.scrollTop,i=t.scrollHeight,s=t.scrollWidth;var c=Number(e.lowerThreshold);var a=Number(e.upperThreshold);if(!isNaN(c)&&(e.scrollY&&r+n+c>=i||e.scrollX&&o+l+c>=s)){e.onScrollToLower.emit({direction:e.scrollX?"right":e.scrollY?"bottom":""})}if(!isNaN(a)&&(e.scrollY&&n<=a||e.scrollX&&l<=a)){e.onScrollToUpper.emit({direction:e.scrollX?"left":e.scrollY?"top":""})}}),200);this.scrollX=false;this.scrollY=false;this.upperThreshold=50;this.lowerThreshold=50;this.mpScrollTop=undefined;this.mpScrollLeft=undefined;this.mpScrollIntoView=undefined;this.mpScrollIntoViewAlignment=undefined;this.animated=false}t.prototype.watchScrollLeft=function(t){var o=Number(t);var r=this.animated;this.mpScrollToMethod({left:o,animated:r})};t.prototype.watchScrollTop=function(t){var o=Number(t);var r=this.animated;this.mpScrollToMethod({top:o,animated:r})};t.prototype.watchScrollIntoView=function(t){this.mpScrollIntoViewMethod(t)};t.prototype.handleScroll=function(t){var o;if(t instanceof CustomEvent)return;t.stopPropagation();(o=t.stopImmediatePropagation)===null||o===void 0?void 0:o.call(t);var r=this.el,e=r.scrollLeft,l=r.scrollTop,n=r.scrollHeight,i=r.scrollWidth;this._scrollLeft=e;this._scrollTop=l;this.upperAndLower();this.onScroll.emit({scrollLeft:e,scrollTop:l,scrollHeight:n,scrollWidth:i})};t.prototype.handleTouchMove=function(t){if(t instanceof CustomEvent)return;t.stopPropagation()};t.prototype.mpScrollToMethod=function(t){return __awaiter(this,void 0,void 0,(function(){var o,r,e,l,n;var i=this;return __generator(this,(function(s){o=t.top,r=t.left,e=t.duration,l=t.animated,n=l===void 0?false:l;if(this.scrollY&&typeof o==="number"&&!isNaN(o)&&o!==this._scrollTop){if(n){u(this._scrollTop,o,e,(function(t){return i.el.scrollTop=t}))}else{this.el.scrollTop=o}this._scrollTop=o}if(this.scrollX&&typeof r==="number"&&!isNaN(r)&&r!==this._scrollLeft){if(n){u(this._scrollLeft,r,e,(function(t){return i.el.scrollLeft=t}))}else{this.el.scrollLeft=r}this._scrollLeft=r}return[2]}))}))};t.prototype.mpScrollIntoViewMethod=function(t){return __awaiter(this,void 0,void 0,(function(){var o;return __generator(this,(function(r){if(typeof t==="string"&&t){(o=document.querySelector("#".concat(t)))===null||o===void 0?void 0:o.scrollIntoView({behavior:this.animated?"smooth":"auto",block:this.scrollY?this.mpScrollIntoViewAlignment||"center":"center",inline:this.scrollX?this.mpScrollIntoViewAlignment||"start":"start"})}return[2]}))}))};t.prototype.componentDidLoad=function(){var t=Number(this.mpScrollTop);var o=Number(this.mpScrollLeft);var r=this.animated;this.mpScrollToMethod({top:t,left:o,animated:r})};t.prototype.componentDidRender=function(){c(this.el)};t.prototype.render=function(){var t=this,o=t.scrollX,r=t.scrollY;var n=i({"taro-scroll-view__scroll-x":o,"taro-scroll-view__scroll-y":r});return e(l,{class:n},e("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{mpScrollLeft:["watchScrollLeft"],mpScrollTop:["watchScrollTop"],mpScrollIntoView:["watchScrollIntoView"]}},enumerable:false,configurable:true});return t}());f.style=a}}}));
1
+ var __awaiter=this&&this.__awaiter||function(t,o,r,e){function l(t){return t instanceof r?t:new r((function(o){o(t)}))}return new(r||(r=Promise))((function(r,n){function i(t){try{c(e.next(t))}catch(t){n(t)}}function s(t){try{c(e["throw"](t))}catch(t){n(t)}}function c(t){t.done?r(t.value):l(t.value).then(i,s)}c((e=e.apply(t,o||[])).next())}))};var __generator=this&&this.__generator||function(t,o){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},e,l,n,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(t){return function(o){return c([t,o])}}function c(s){if(e)throw new TypeError("Generator is already executing.");while(i&&(i=0,s[0]&&(r=0)),r)try{if(e=1,l&&(n=s[0]&2?l["return"]:s[0]?l["throw"]||((n=l["return"])&&n.call(l),0):l.next)&&!(n=n.call(l,s[1])).done)return n;if(l=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;l=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(n=r.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){r.label=s[1];break}if(s[0]===6&&r.label<n[1]){r.label=n[1];n=s;break}if(n&&r.label<n[2]){r.label=n[2];r.ops.push(s);break}if(n[2])r.ops.pop();r.trys.pop();continue}s=o.call(t,r)}catch(t){s=[6,t];l=0}finally{e=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-88de70df.system.js","./p-443b9a72.system.js","./p-010faa87.system.js","./p-8c3b906c.system.js","@tarojs/taro"],(function(t){"use strict";var o,r,e,l,n,i,s,c;return{setters:[function(t){o=t.r;r=t.c;e=t.h;l=t.H;n=t.g},function(t){i=t.c},function(t){s=t.d},function(t){c=t.h},function(){}],execute:function(){var a="taro-scroll-view-core{-webkit-overflow-scrolling:auto;width:100%;display:block}taro-scroll-view-core::-webkit-scrollbar{display:none}.taro-scroll-view__scroll-x{overflow:scroll hidden}.taro-scroll-view__scroll-y{overflow:hidden scroll}";function u(t,o,r,e){if(r===void 0){r=500}if(t===o||typeof t!=="number"){return}var l=o-t;var n=Date.now();var i=o>=t;function s(t,o,r,e){return r*t/e+o}function c(){t=s(Date.now()-n,t,l,r);if(i&&t>=o||!i&&o>=t){e(o);return}e(t);requestAnimationFrame(c)}c()}var f=t("taro_scroll_view_core",function(){function t(t){var e=this;o(this,t);this.onScroll=r(this,"scroll",3);this.onScrollToUpper=r(this,"scrolltoupper",3);this.onScrollToLower=r(this,"scrolltolower",3);this._scrollLeft=0;this._scrollTop=0;this.upperAndLower=s((function(){var t=e.el,o=t.offsetWidth,r=t.offsetHeight,l=t.scrollLeft,n=t.scrollTop,i=t.scrollHeight,s=t.scrollWidth;var c=Number(e.lowerThreshold);var a=Number(e.upperThreshold);if(!isNaN(c)&&(e.scrollY&&r+n+c>=i||e.scrollX&&o+l+c>=s)){e.onScrollToLower.emit({direction:e.scrollX?"right":e.scrollY?"bottom":""})}if(!isNaN(a)&&(e.scrollY&&n<=a||e.scrollX&&l<=a)){e.onScrollToUpper.emit({direction:e.scrollX?"left":e.scrollY?"top":""})}}),200);this.scrollX=false;this.scrollY=false;this.upperThreshold=50;this.lowerThreshold=50;this.mpScrollTop=undefined;this.mpScrollLeft=undefined;this.mpScrollIntoView=undefined;this.mpScrollIntoViewAlignment=undefined;this.animated=false}t.prototype.watchScrollLeft=function(t){var o=Number(t);var r=this.animated;this.mpScrollToMethod({left:o,animated:r})};t.prototype.watchScrollTop=function(t){var o=Number(t);var r=this.animated;this.mpScrollToMethod({top:o,animated:r})};t.prototype.watchScrollIntoView=function(t){this.mpScrollIntoViewMethod(t)};t.prototype.handleScroll=function(t){var o;if(t instanceof CustomEvent)return;t.stopPropagation();(o=t.stopImmediatePropagation)===null||o===void 0?void 0:o.call(t);var r=this.el,e=r.scrollLeft,l=r.scrollTop,n=r.scrollHeight,i=r.scrollWidth;this._scrollLeft=e;this._scrollTop=l;this.upperAndLower();this.onScroll.emit({scrollLeft:e,scrollTop:l,scrollHeight:n,scrollWidth:i})};t.prototype.handleTouchMove=function(t){if(t instanceof CustomEvent)return;t.stopPropagation()};t.prototype.mpScrollToMethod=function(t){return __awaiter(this,void 0,void 0,(function(){var o,r,e,l,n;var i=this;return __generator(this,(function(s){o=t.top,r=t.left,e=t.duration,l=t.animated,n=l===void 0?false:l;if(this.scrollY&&typeof o==="number"&&!isNaN(o)&&o!==this._scrollTop){if(n){u(this._scrollTop,o,e,(function(t){return i.el.scrollTop=t}))}else{this.el.scrollTop=o}this._scrollTop=o}if(this.scrollX&&typeof r==="number"&&!isNaN(r)&&r!==this._scrollLeft){if(n){u(this._scrollLeft,r,e,(function(t){return i.el.scrollLeft=t}))}else{this.el.scrollLeft=r}this._scrollLeft=r}return[2]}))}))};t.prototype.mpScrollIntoViewMethod=function(t){return __awaiter(this,void 0,void 0,(function(){var o;return __generator(this,(function(r){if(typeof t==="string"&&t){(o=document.querySelector("#".concat(t)))===null||o===void 0?void 0:o.scrollIntoView({behavior:this.animated?"smooth":"auto",block:this.scrollY?this.mpScrollIntoViewAlignment||"center":"center",inline:this.scrollX?this.mpScrollIntoViewAlignment||"start":"start"})}return[2]}))}))};t.prototype.componentDidLoad=function(){var t=Number(this.mpScrollTop);var o=Number(this.mpScrollLeft);var r=this.animated;this.mpScrollToMethod({top:t,left:o,animated:r})};t.prototype.componentDidRender=function(){c(this.el)};t.prototype.render=function(){var t=this,o=t.scrollX,r=t.scrollY;var n=i({"taro-scroll-view__scroll-x":o,"taro-scroll-view__scroll-y":r});return e(l,{class:n},e("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{mpScrollLeft:["watchScrollLeft"],mpScrollTop:["watchScrollTop"],mpScrollIntoView:["watchScrollIntoView"]}},enumerable:false,configurable:true});return t}());f.style=a}}}));
@@ -0,0 +1 @@
1
+ import{r as o,h as r,H as t}from"./p-d0cabaaa.js";import{n as a}from"./p-dbdb9de9.js";import"@tarojs/taro";const s=class{constructor(r){o(this,r)}componentDidLoad(){a("VoipRoom",this)}render(){return r(t,null)}};export{s as taro_voip_room_core}
@@ -0,0 +1 @@
1
+ import{r as o,h as r,H as a}from"./p-d0cabaaa.js";import{n as t}from"./p-dbdb9de9.js";import"@tarojs/taro";const c=class{constructor(r){o(this,r)}componentDidLoad(){t("OfficialAccount",this)}render(){return r(a,null)}};export{c as taro_official_account_core}