bromcom-ui 2.11.1-rc.3 → 2.11.1-rc.4

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 (275) hide show
  1. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  2. package/dist/bromcom-ui/{p-6c00649d.entry.js → p-01ee1dd7.entry.js} +1 -1
  3. package/dist/bromcom-ui/{p-d8078aad.entry.js → p-0b7da7e9.entry.js} +1 -1
  4. package/dist/bromcom-ui/p-0ec94937.entry.js +5 -0
  5. package/dist/bromcom-ui/{p-22fca42a.entry.js → p-13f17585.entry.js} +1 -1
  6. package/dist/bromcom-ui/{p-8a92f2bf.js → p-1cac8ccc.js} +1 -1
  7. package/dist/bromcom-ui/{p-772e0ac0.entry.js → p-20e3612c.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-3d84b432.js → p-24dbee53.js} +1 -1
  9. package/dist/bromcom-ui/{p-1365fcd1.entry.js → p-2cd5679e.entry.js} +1 -1
  10. package/dist/bromcom-ui/p-3089e9c7.js +1 -1
  11. package/dist/bromcom-ui/{p-ff7a0518.entry.js → p-3b72a082.entry.js} +1 -1
  12. package/dist/bromcom-ui/{p-5d6485b0.entry.js → p-3c54d2cb.entry.js} +1 -1
  13. package/dist/bromcom-ui/{p-27bd3558.entry.js → p-3d54d452.entry.js} +1 -1
  14. package/dist/bromcom-ui/{p-53379ec3.entry.js → p-48300ee3.entry.js} +1 -1
  15. package/dist/bromcom-ui/{p-b3cb130f.entry.js → p-485a89a0.entry.js} +1 -1
  16. package/dist/bromcom-ui/p-48d59736.entry.js +5 -0
  17. package/dist/bromcom-ui/p-4d8067b9.entry.js +5 -0
  18. package/dist/bromcom-ui/{p-dfcea8e4.entry.js → p-4eaebf4c.entry.js} +1 -1
  19. package/dist/bromcom-ui/{p-7682e5f4.entry.js → p-4fa1fbbb.entry.js} +1 -1
  20. package/dist/bromcom-ui/{p-9fe98e8c.entry.js → p-5199f537.entry.js} +1 -1
  21. package/dist/bromcom-ui/{p-e9ab38fd.entry.js → p-55463e1e.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-24a073cd.entry.js → p-56385a5a.entry.js} +1 -1
  23. package/dist/bromcom-ui/{p-e019251c.entry.js → p-588a3308.entry.js} +1 -1
  24. package/dist/bromcom-ui/p-58b266db.entry.js +5 -0
  25. package/dist/bromcom-ui/{p-ddcda6e6.entry.js → p-5fc5d112.entry.js} +1 -1
  26. package/dist/bromcom-ui/p-6acbf272.entry.js +5 -0
  27. package/dist/bromcom-ui/{p-62fbf683.entry.js → p-6b1f78ba.entry.js} +1 -1
  28. package/dist/bromcom-ui/p-6b5ed4d8.js +1 -1
  29. package/dist/bromcom-ui/{p-c99c97c4.entry.js → p-6cab6add.entry.js} +1 -1
  30. package/dist/bromcom-ui/{p-ce3a35d8.entry.js → p-6ce60388.entry.js} +1 -1
  31. package/dist/bromcom-ui/p-6e5f5f36.js +1 -1
  32. package/dist/bromcom-ui/{p-970e32f8.entry.js → p-6f3efe64.entry.js} +1 -1
  33. package/dist/bromcom-ui/{p-ce64aadd.entry.js → p-73ab46f4.entry.js} +1 -1
  34. package/dist/bromcom-ui/{p-bceff6ac.entry.js → p-75e272cd.entry.js} +1 -1
  35. package/dist/bromcom-ui/{p-0d9d2b83.entry.js → p-76644372.entry.js} +1 -1
  36. package/dist/bromcom-ui/p-7a552679.entry.js +5 -0
  37. package/dist/bromcom-ui/{p-1a4d3d4b.entry.js → p-7b2eedee.entry.js} +1 -1
  38. package/dist/bromcom-ui/{p-b64fb627.js → p-82628edc.js} +1 -1
  39. package/dist/bromcom-ui/{p-ab62dbf4.entry.js → p-8f7f2584.entry.js} +1 -1
  40. package/dist/bromcom-ui/p-90afef52.entry.js +5 -0
  41. package/dist/bromcom-ui/{p-0c5a0aa3.entry.js → p-97e20839.entry.js} +1 -1
  42. package/dist/bromcom-ui/{p-b70ce8a8.entry.js → p-981f0059.entry.js} +1 -1
  43. package/dist/bromcom-ui/{p-dd3e80e4.entry.js → p-a2476a2e.entry.js} +1 -1
  44. package/dist/bromcom-ui/{p-7a335951.entry.js → p-a2cf0b20.entry.js} +1 -1
  45. package/dist/bromcom-ui/p-a313fba6.js +1 -1
  46. package/dist/bromcom-ui/p-a91ec696.entry.js +5 -0
  47. package/dist/bromcom-ui/p-ac5fa5d7.entry.js +5 -0
  48. package/dist/bromcom-ui/{p-7c1acd0c.entry.js → p-adacab59.entry.js} +1 -1
  49. package/dist/bromcom-ui/{p-f4363375.js → p-b2b711af.js} +1 -1
  50. package/dist/bromcom-ui/{p-c5dc4334.entry.js → p-b2c37ec3.entry.js} +1 -1
  51. package/dist/bromcom-ui/{p-cdae8b98.entry.js → p-b3d1d0bd.entry.js} +1 -1
  52. package/dist/bromcom-ui/{p-4aac21d5.entry.js → p-b7999ba9.entry.js} +1 -1
  53. package/dist/bromcom-ui/p-b9249ee3.entry.js +5 -0
  54. package/dist/bromcom-ui/p-bcd34205.entry.js +5 -0
  55. package/dist/bromcom-ui/p-bd771c5d.js +5 -0
  56. package/dist/bromcom-ui/{p-a9632cd3.js → p-c5a2a4d3.js} +1 -1
  57. package/dist/bromcom-ui/{p-5e195721.entry.js → p-c5ec482d.entry.js} +1 -1
  58. package/dist/bromcom-ui/{p-1aeb3b84.entry.js → p-cae42fa5.entry.js} +1 -1
  59. package/dist/bromcom-ui/{p-5c79fb9a.entry.js → p-cbd18e81.entry.js} +1 -1
  60. package/dist/bromcom-ui/{p-3c58d022.entry.js → p-cc8316af.entry.js} +1 -1
  61. package/dist/bromcom-ui/{p-979af47a.js → p-cca60157.js} +1 -1
  62. package/dist/bromcom-ui/{p-b51a5ffe.entry.js → p-cf29d3a3.entry.js} +1 -1
  63. package/dist/bromcom-ui/p-cfabc98e.js +5 -0
  64. package/dist/bromcom-ui/{p-7750d6c9.entry.js → p-d3ae97d2.entry.js} +1 -1
  65. package/dist/bromcom-ui/{p-fa937fc9.entry.js → p-d5beae62.entry.js} +1 -1
  66. package/dist/bromcom-ui/{p-6bcd722c.entry.js → p-d7d57996.entry.js} +1 -1
  67. package/dist/bromcom-ui/{p-23697f6e.entry.js → p-d8a6eb19.entry.js} +1 -1
  68. package/dist/bromcom-ui/p-e1b92293.entry.js +5 -0
  69. package/dist/bromcom-ui/{p-ecdd078d.js → p-e1c55578.js} +1 -1
  70. package/dist/bromcom-ui/{p-42385d2c.js → p-e379c615.js} +1 -1
  71. package/dist/bromcom-ui/{p-e707a4cb.entry.js → p-e7dd2f8a.entry.js} +1 -1
  72. package/dist/bromcom-ui/{p-9242e8a4.entry.js → p-eb982b4b.entry.js} +1 -1
  73. package/dist/bromcom-ui/{p-23d97a8f.entry.js → p-ebd6b7af.entry.js} +1 -1
  74. package/dist/bromcom-ui/{p-cddf5e9d.entry.js → p-efa62773.entry.js} +1 -1
  75. package/dist/bromcom-ui/{p-1b977778.entry.js → p-f07dc559.entry.js} +1 -1
  76. package/dist/bromcom-ui/{p-fec2e602.entry.js → p-f0bb5539.entry.js} +1 -1
  77. package/dist/bromcom-ui/{p-f9782984.entry.js → p-f41cdd9b.entry.js} +1 -1
  78. package/dist/bromcom-ui/{p-283d69bd.entry.js → p-f6960d79.entry.js} +1 -1
  79. package/dist/bromcom-ui/{p-dbea0599.entry.js → p-fb529ec0.entry.js} +1 -1
  80. package/dist/cjs/{bcm-1d1fcf21.js → bcm-489c9b1a.js} +4 -4
  81. package/dist/cjs/bcm-accordion.cjs.entry.js +2 -2
  82. package/dist/cjs/bcm-alert.cjs.entry.js +4 -4
  83. package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +8 -8
  84. package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +8 -8
  85. package/dist/cjs/bcm-attendance-actions.cjs.entry.js +330 -0
  86. package/dist/cjs/bcm-attendance.cjs.entry.js +2 -2
  87. package/dist/cjs/bcm-avatar_2.cjs.entry.js +10 -10
  88. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
  89. package/dist/cjs/bcm-button-group.cjs.entry.js +7 -7
  90. package/dist/cjs/{bcm-attendance-actions_2.cjs.entry.js → bcm-button_2.cjs.entry.js} +56 -327
  91. package/dist/cjs/bcm-caption.cjs.entry.js +9 -9
  92. package/dist/cjs/bcm-card.cjs.entry.js +5 -5
  93. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +7 -7
  94. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +6 -6
  95. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +11 -11
  96. package/dist/cjs/bcm-chip-group.cjs.entry.js +9 -9
  97. package/dist/cjs/bcm-chip.cjs.entry.js +2 -2
  98. package/dist/cjs/bcm-color-input.cjs.entry.js +6 -6
  99. package/dist/cjs/bcm-colorful_2.cjs.entry.js +12 -12
  100. package/dist/cjs/bcm-date-picker.cjs.entry.js +4 -4
  101. package/dist/cjs/bcm-date.cjs.entry.js +9 -9
  102. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +9 -9
  103. package/dist/cjs/bcm-default.cjs.entry.js +2 -2
  104. package/dist/cjs/bcm-drawer.cjs.entry.js +8 -8
  105. package/dist/cjs/bcm-dropdown.cjs.entry.js +7 -7
  106. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +4 -4
  107. package/dist/cjs/bcm-form-2.cjs.entry.js +5 -5
  108. package/dist/cjs/bcm-form.cjs.entry.js +2 -2
  109. package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
  110. package/dist/cjs/bcm-input-dropdown.cjs.entry.js +9 -9
  111. package/dist/cjs/bcm-input_2.cjs.entry.js +16 -16
  112. package/dist/cjs/bcm-item.cjs.entry.js +4 -4
  113. package/dist/cjs/bcm-items.cjs.entry.js +4 -4
  114. package/dist/cjs/bcm-label_2.cjs.entry.js +13 -13
  115. package/dist/cjs/bcm-link.cjs.entry.js +3 -3
  116. package/dist/cjs/bcm-list_3.cjs.entry.js +35 -27
  117. package/dist/cjs/bcm-menu.cjs.entry.js +8 -8
  118. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +6 -6
  119. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +6 -6
  120. package/dist/cjs/bcm-modal-2.cjs.entry.js +7 -7
  121. package/dist/cjs/bcm-modal.cjs.entry.js +7 -7
  122. package/dist/cjs/bcm-number-input.cjs.entry.js +9 -9
  123. package/dist/cjs/bcm-old-input.cjs.entry.js +1 -1
  124. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +5 -5
  125. package/dist/cjs/bcm-popconfirm.cjs.entry.js +5 -5
  126. package/dist/cjs/bcm-popover.cjs.entry.js +9 -9
  127. package/dist/cjs/bcm-progress.cjs.entry.js +4 -4
  128. package/dist/cjs/bcm-radio-group.cjs.entry.js +11 -11
  129. package/dist/cjs/bcm-radio.cjs.entry.js +13 -13
  130. package/dist/cjs/bcm-range.cjs.entry.js +6 -6
  131. package/dist/cjs/bcm-rc-picker.cjs.entry.js +2 -2
  132. package/dist/cjs/bcm-select.cjs.entry.js +2 -2
  133. package/dist/cjs/bcm-shortcut.cjs.entry.js +10 -10
  134. package/dist/cjs/bcm-skeleton.cjs.entry.js +6 -6
  135. package/dist/cjs/bcm-step.cjs.entry.js +3 -3
  136. package/dist/cjs/bcm-stepper.cjs.entry.js +9 -9
  137. package/dist/cjs/bcm-switch.cjs.entry.js +10 -10
  138. package/dist/cjs/bcm-tab-group.cjs.entry.js +7 -7
  139. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +10 -10
  140. package/dist/cjs/bcm-tab-item.cjs.entry.js +6 -6
  141. package/dist/cjs/bcm-table.cjs.entry.js +6 -6
  142. package/dist/cjs/bcm-tag.cjs.entry.js +15 -15
  143. package/dist/cjs/bcm-text.cjs.entry.js +3 -3
  144. package/dist/cjs/bcm-time-picker.cjs.entry.js +4 -4
  145. package/dist/cjs/bcm-toast.cjs.entry.js +11 -11
  146. package/dist/cjs/bromcom-ui.cjs.js +3 -3
  147. package/dist/cjs/{caption-template-6f535b93.js → caption-template-086e9cac.js} +1 -1
  148. package/dist/cjs/{floating-ui-5b396838.js → floating-ui-21890d11.js} +2 -2
  149. package/dist/cjs/{generate-794c57b1.js → generate-6049d4ea.js} +1 -1
  150. package/dist/cjs/{global-c8462cce.js → global-3da2bb83.js} +1 -1
  151. package/dist/cjs/{input-template-c6c22a3e.js → input-template-124db066.js} +6 -6
  152. package/dist/cjs/{json-parse-decarator-55cde592.js → json-parse-decarator-81231a37.js} +1 -1
  153. package/dist/cjs/{label-template-3b970f86.js → label-template-94b3d775.js} +2 -2
  154. package/dist/cjs/loader.cjs.js +3 -3
  155. package/dist/cjs/{number-helper-9d81ab60.js → number-helper-6003ce3c.js} +1 -1
  156. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +7 -7
  157. package/dist/cjs/old-bcm-popover.cjs.entry.js +5 -5
  158. package/dist/cjs/{package-38271f86.js → package-dfacf86b.js} +1 -1
  159. package/dist/cjs/{popover-placement-02e6101b.js → popover-placement-e7d6eabd.js} +1 -1
  160. package/dist/cjs/{slot-template-df7b5b59.js → slot-template-c8e2816c.js} +1 -1
  161. package/dist/cjs/{stepper-states-e9eb3b78.js → stepper-states-00da997b.js} +1 -1
  162. package/dist/cjs/{string-helper-9cdfb273.js → string-helper-f9184277.js} +2 -2
  163. package/dist/cjs/{tooltip-helper-e0d71511.js → tooltip-helper-5ab24701.js} +9 -9
  164. package/dist/cjs/{validators-b8329cff.js → validators-e395ef8b.js} +1 -1
  165. package/dist/collection/components/organism/datetime-picker/datetime-picker.js +1 -1
  166. package/dist/collection/components/organism/list/list.css +3 -5
  167. package/dist/collection/components/organism/list/list.js +6 -0
  168. package/dist/collection/components/other_deprecated/collapse/collapse.css +7 -0
  169. package/dist/collection/components/other_deprecated/collapse/collapse.js +16 -8
  170. package/dist/collection/templates/caption-template.js +1 -1
  171. package/dist/collection/templates/list-item-template.js +3 -0
  172. package/dist/components/bcm-collapse.js +14 -6
  173. package/dist/components/caption-template.js +1 -1
  174. package/dist/components/datetime-picker.js +1 -1
  175. package/dist/components/generate.js +1 -1
  176. package/dist/components/list.js +10 -1
  177. package/dist/esm/bcm-a50d55ba.js +1 -1
  178. package/dist/esm/bcm-accordion.entry.js +2 -2
  179. package/dist/esm/bcm-alert.entry.js +2 -2
  180. package/dist/esm/bcm-attendance-actions-comment.entry.js +5 -5
  181. package/dist/esm/bcm-attendance-actions-dropdown.entry.js +5 -5
  182. package/dist/esm/bcm-attendance-actions.entry.js +326 -0
  183. package/dist/esm/bcm-attendance.entry.js +2 -2
  184. package/dist/esm/bcm-avatar_2.entry.js +5 -5
  185. package/dist/esm/bcm-breadcrumb.entry.js +2 -2
  186. package/dist/esm/bcm-button-group.entry.js +3 -3
  187. package/dist/esm/{bcm-attendance-actions_2.entry.js → bcm-button_2.entry.js} +54 -325
  188. package/dist/esm/bcm-caption.entry.js +6 -6
  189. package/dist/esm/bcm-card.entry.js +2 -2
  190. package/dist/esm/bcm-checkbox-group.entry.js +3 -3
  191. package/dist/esm/bcm-checkbox-lite_9.entry.js +3 -3
  192. package/dist/esm/bcm-checkbox_2.entry.js +4 -4
  193. package/dist/esm/bcm-chip-group.entry.js +6 -6
  194. package/dist/esm/bcm-chip.entry.js +2 -2
  195. package/dist/esm/bcm-color-input.entry.js +4 -4
  196. package/dist/esm/bcm-colorful_2.entry.js +5 -5
  197. package/dist/esm/bcm-date-picker.entry.js +3 -3
  198. package/dist/esm/bcm-date.entry.js +6 -6
  199. package/dist/esm/bcm-datetime-picker.entry.js +4 -4
  200. package/dist/esm/bcm-default.entry.js +2 -2
  201. package/dist/esm/bcm-drawer.entry.js +5 -5
  202. package/dist/esm/bcm-dropdown.entry.js +4 -4
  203. package/dist/esm/bcm-expansion-panel.entry.js +2 -2
  204. package/dist/esm/bcm-form-2.entry.js +3 -3
  205. package/dist/esm/bcm-input-custom.entry.js +2 -2
  206. package/dist/esm/bcm-input-dropdown.entry.js +6 -6
  207. package/dist/esm/bcm-input_2.entry.js +7 -7
  208. package/dist/esm/bcm-item.entry.js +3 -3
  209. package/dist/esm/bcm-items.entry.js +2 -2
  210. package/dist/esm/bcm-label_2.entry.js +6 -6
  211. package/dist/esm/bcm-link.entry.js +1 -1
  212. package/dist/esm/bcm-list_3.entry.js +17 -9
  213. package/dist/esm/bcm-menu.entry.js +5 -5
  214. package/dist/esm/bcm-modal-2-footer.entry.js +4 -4
  215. package/dist/esm/bcm-modal-2-header.entry.js +4 -4
  216. package/dist/esm/bcm-modal-2.entry.js +5 -5
  217. package/dist/esm/bcm-modal.entry.js +3 -3
  218. package/dist/esm/bcm-number-input.entry.js +6 -6
  219. package/dist/esm/bcm-old-input.entry.js +1 -1
  220. package/dist/esm/bcm-popconfirm-box.entry.js +2 -2
  221. package/dist/esm/bcm-popconfirm.entry.js +3 -3
  222. package/dist/esm/bcm-popover.entry.js +5 -5
  223. package/dist/esm/bcm-progress.entry.js +3 -3
  224. package/dist/esm/bcm-radio-group.entry.js +6 -6
  225. package/dist/esm/bcm-radio.entry.js +5 -5
  226. package/dist/esm/bcm-range.entry.js +3 -3
  227. package/dist/esm/bcm-rc-picker.entry.js +1 -1
  228. package/dist/esm/bcm-shortcut.entry.js +5 -5
  229. package/dist/esm/bcm-skeleton.entry.js +4 -4
  230. package/dist/esm/bcm-step.entry.js +3 -3
  231. package/dist/esm/bcm-stepper.entry.js +6 -6
  232. package/dist/esm/bcm-switch.entry.js +4 -4
  233. package/dist/esm/bcm-tab-group.entry.js +5 -5
  234. package/dist/esm/bcm-tab-item-header.entry.js +5 -5
  235. package/dist/esm/bcm-tab-item.entry.js +4 -4
  236. package/dist/esm/bcm-table.entry.js +4 -4
  237. package/dist/esm/bcm-tag.entry.js +4 -4
  238. package/dist/esm/bcm-time-picker.entry.js +3 -3
  239. package/dist/esm/bcm-toast.entry.js +3 -3
  240. package/dist/esm/bromcom-ui.js +3 -3
  241. package/dist/esm/{caption-template-b5210fba.js → caption-template-caa3bc94.js} +1 -1
  242. package/dist/esm/floating-ui-3f4394da.js +1 -1
  243. package/dist/esm/{generate-4cecdf46.js → generate-80faf723.js} +1 -1
  244. package/dist/esm/{global-38baa9be.js → global-5b97a4f6.js} +1 -1
  245. package/dist/esm/{input-template-96eea581.js → input-template-645d4d3e.js} +2 -2
  246. package/dist/esm/{json-parse-decarator-7fe3bbec.js → json-parse-decarator-2a9a3d68.js} +1 -1
  247. package/dist/esm/label-template-737576c4.js +1 -1
  248. package/dist/esm/loader.js +3 -3
  249. package/dist/esm/{number-helper-11c1236c.js → number-helper-b1a0b969.js} +1 -1
  250. package/dist/esm/old-bcm-popover-box.entry.js +3 -3
  251. package/dist/esm/old-bcm-popover.entry.js +3 -3
  252. package/dist/esm/{package-324454ca.js → package-20190b9f.js} +1 -1
  253. package/dist/esm/{stepper-states-6887e3b8.js → stepper-states-b4b535fc.js} +1 -1
  254. package/dist/esm/string-helper-85990695.js +1 -1
  255. package/dist/esm/{tooltip-helper-3fcc4880.js → tooltip-helper-088f4c50.js} +4 -4
  256. package/dist/esm/{validators-aadf3740.js → validators-cc82d552.js} +1 -1
  257. package/dist/types/components/organism/list/list.d.ts +1 -0
  258. package/dist/types/components/other_deprecated/collapse/collapse.d.ts +3 -1
  259. package/package.json +1 -1
  260. package/dist/bromcom-ui/p-01bd2fbb.entry.js +0 -5
  261. package/dist/bromcom-ui/p-110fb2e6.entry.js +0 -5
  262. package/dist/bromcom-ui/p-29e07b1c.entry.js +0 -5
  263. package/dist/bromcom-ui/p-3d1debbc.entry.js +0 -5
  264. package/dist/bromcom-ui/p-45854285.entry.js +0 -5
  265. package/dist/bromcom-ui/p-5c59f8e5.js +0 -5
  266. package/dist/bromcom-ui/p-a3b08549.entry.js +0 -5
  267. package/dist/bromcom-ui/p-a7e8b56c.entry.js +0 -5
  268. package/dist/bromcom-ui/p-ab52f0fd.entry.js +0 -5
  269. package/dist/bromcom-ui/p-c360185a.entry.js +0 -5
  270. package/dist/bromcom-ui/p-d9055031.entry.js +0 -5
  271. package/dist/bromcom-ui/p-f320ed14.entry.js +0 -5
  272. package/dist/bromcom-ui/p-fc2bfd97.entry.js +0 -5
  273. package/dist/bromcom-ui/p-fd2abdda.js +0 -5
  274. package/dist/cjs/bcm-collapse.cjs.entry.js +0 -46
  275. package/dist/esm/bcm-collapse.entry.js +0 -42
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as n,c as r,g as t,h as e,H as u}from"./p-e037ee2b.js";import{r as i,a as o}from"./p-3182df7e.js";import{c,a as f}from"./p-e45c1546.js";import"./p-4798d827.js";import"./p-626a65e9.js";import{G as a}from"./p-a9632cd3.js";import"./p-5c59f8e5.js";import"./p-6b5ed4d8.js";import"./p-fd2abdda.js";import"./p-5ae0a59b.js";import{d as s}from"./p-3c7a0345.js";import{F as l}from"./p-6e5f5f36.js";import{B as v}from"./p-a313fba6.js";import"./p-436364c8.js";import"./p-034bbcdd.js";import"./p-979af47a.js";function p(){return(p=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n}).apply(this,arguments)}function h(n,r){if(null==n)return{};var t,e,u={},i=Object.keys(n);for(e=0;e<i.length;e++)r.indexOf(t=i[e])>=0||(u[t]=n[t]);return u}function d(n){var r=i.useRef(n),t=i.useRef((function(n){r.current&&r.current(n)}));return r.current=n,t.current}var b=function(n,r,t){return void 0===r&&(r=0),void 0===t&&(t=1),n>t?t:n<r?r:n},m=function(n){return"touches"in n},g=function(n){return n&&n.ownerDocument.defaultView||self},_=function(n,r,t){var e=n.getBoundingClientRect(),u=m(r)?function(n,r){for(var t=0;t<n.length;t++)if(n[t].identifier===r)return n[t];return n[0]}(r.touches,t):r;return{left:b((u.pageX-(e.left+g(n).pageXOffset))/e.width),top:b((u.pageY-(e.top+g(n).pageYOffset))/e.height)}},w=function(n){!m(n)&&n.preventDefault()},x=i.memo((function(n){var r=n.onMove,t=n.onKey,e=h(n,["onMove","onKey"]),u=i.useRef(null),o=d(r),c=d(t),f=i.useRef(null),a=i.useRef(!1),s=i.useMemo((function(){var n=function(n){w(n),(m(n)?n.touches.length>0:n.buttons>0)&&u.current?o(_(u.current,n,f.current)):t(!1)},r=function(){return t(!1)};function t(t){var e=a.current,i=g(u.current),o=t?i.addEventListener:i.removeEventListener;o(e?"touchmove":"mousemove",n),o(e?"touchend":"mouseup",r)}return[function(n){var r=n.nativeEvent,e=u.current;if(e&&(w(r),!function(n,r){return r&&!m(n)}(r,a.current)&&e)){if(m(r)){a.current=!0;var i=r.changedTouches||[];i.length&&(f.current=i[0].identifier)}e.focus(),o(_(e,r,f.current)),t(!0)}},function(n){var r=n.which||n.keyCode;r<37||r>40||(n.preventDefault(),c({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}))},t]}),[c,o]),l=s[0],v=s[1],b=s[2];return i.useEffect((function(){return b}),[b]),i.createElement("div",p({},e,{onTouchStart:l,onMouseDown:l,className:"react-colorful__interactive",ref:u,onKeyDown:v,tabIndex:0,role:"slider"}))})),y=function(n){return n.filter(Boolean).join(" ")},j=function(n){var r=n.color,t=n.left,e=n.top,u=void 0===e?.5:e,o=y(["react-colorful__pointer",n.className]);return i.createElement("div",{className:o,style:{top:100*u+"%",left:100*t+"%"}},i.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:r}}))},k=function(n,r,t){return void 0===r&&(r=0),void 0===t&&(t=Math.pow(10,r)),Math.round(t*n)/t},z=function(n){return"#"===n[0]&&(n=n.substring(1)),n.length<6?{r:parseInt(n[0]+n[0],16),g:parseInt(n[1]+n[1],16),b:parseInt(n[2]+n[2],16),a:4===n.length?k(parseInt(n[3]+n[3],16)/255,2):1}:{r:parseInt(n.substring(0,2),16),g:parseInt(n.substring(2,4),16),b:parseInt(n.substring(4,6),16),a:8===n.length?k(parseInt(n.substring(6,8),16)/255,2):1}},A=function(n){var r=function(n){var r=n.s,t=n.v,e=n.a,u=(200-r)*t/100;return{h:k(n.h),s:k(u>0&&u<200?r*t/100/(u<=100?u:200-u)*100:0),l:k(u/2),a:k(e,2)}}(n);return"hsl("+r.h+", "+r.s+"%, "+r.l+"%)"},I=function(n){var r=n.toString(16);return r.length<2?"0"+r:r},$=i.memo((function(n){var r=n.hue,t=n.onChange,e=y(["react-colorful__hue",n.className]);return i.createElement("div",{className:e},i.createElement(x,{onMove:function(n){t({h:360*n.left})},onKey:function(n){t({h:b(r+360*n.left,0,360)})},"aria-label":"Hue","aria-valuenow":k(r),"aria-valuemax":"360","aria-valuemin":"0"},i.createElement(j,{className:"react-colorful__hue-pointer",left:r/360,color:A({h:r,s:100,v:100,a:1})})))})),E=i.memo((function(n){var r=n.hsva,t=n.onChange,e={backgroundColor:A({h:r.h,s:100,v:100,a:1})};return i.createElement("div",{className:"react-colorful__saturation",style:e},i.createElement(x,{onMove:function(n){t({s:100*n.left,v:100-100*n.top})},onKey:function(n){t({s:b(r.s+100*n.left,0,100),v:b(r.v-100*n.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+k(r.s)+"%, Brightness "+k(r.v)+"%"},i.createElement(j,{className:"react-colorful__saturation-pointer",top:1-r.v/100,left:r.s/100,color:A(r)})))})),R=function(n,r){if(n===r)return!0;for(var t in n)if(n[t]!==r[t])return!1;return!0};function D(n,r,t){var e=d(t),u=i.useState((function(){return n.toHsva(r)})),o=u[0],c=u[1],f=i.useRef({color:r,hsva:o});i.useEffect((function(){if(!n.equal(r,f.current.color)){var t=n.toHsva(r);f.current={hsva:t,color:r},c(t)}}),[r,n]),i.useEffect((function(){var r;R(o,f.current.hsva)||n.equal(r=n.fromHsva(o),f.current.color)||(f.current={hsva:o,color:r},e(r))}),[o,n,e]);var a=i.useCallback((function(n){c((function(r){return Object.assign({},r,n)}))}),[]);return[o,a]}var M="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,O=new Map,C=function(n){var r,t=n.className,e=n.colorModel,u=n.color,o=void 0===u?e.defaultColor:u,c=n.onChange,f=h(n,["className","colorModel","color","onChange"]),a=i.useRef(null);r=a,M((function(){var n=r.current?r.current.ownerDocument:document;if(void 0!==n&&!O.has(n)){var t=n.createElement("style");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',O.set(n,t);var e="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0;e&&t.setAttribute("nonce",e),n.head.appendChild(t)}}),[]);var s=D(e,o,c),l=s[0],v=s[1],d=y(["react-colorful",t]);return i.createElement("div",p({},f,{ref:a,className:d}),i.createElement(E,{hsva:l,onChange:v}),i.createElement($,{hue:l.h,onChange:v,className:"react-colorful__last-control"}))},S={defaultColor:"000",toHsva:function(n){return function(n){var r=n.r,t=n.g,e=n.b,u=n.a,i=Math.max(r,t,e),o=i-Math.min(r,t,e),c=o?i===r?(t-e)/o:i===t?2+(e-r)/o:4+(r-t)/o:0;return{h:k(60*(c<0?c+6:c)),s:k(i?o/i*100:0),v:k(i/255*100),a:u}}(z(n))},fromHsva:function(n){return function(n){return function(n){var r=n.r,t=n.g,e=n.b,u=n.a,i=u<1?I(k(255*u)):"";return"#"+I(r)+I(t)+I(e)+i}(function(n){var r=n.h,t=n.s,e=n.v,u=n.a;r=r/360*6,t/=100,e/=100;var i=Math.floor(r),o=e*(1-t),c=e*(1-(r-i)*t),f=e*(1-(1-r+i)*t),a=i%6;return{r:k(255*[e,c,o,o,f,e][a]),g:k(255*[f,e,e,c,o,o][a]),b:k(255*[o,o,f,e,e,c][a]),a:k(u,2)}}(n))}({h:n.h,s:n.s,v:n.v,a:1})},equal:function(n,r){return n.toLowerCase()===r.toLowerCase()||R(z(n),z(r))}},U=function(n){return i.createElement(C,p({},n,{colorModel:S}))},N=c((function(n,r){(function(){var t,e="Expected a function",u="__lodash_hash_undefined__",i="__lodash_placeholder__",o=32,c=128,a=1/0,s=9007199254740991,l=NaN,v=4294967295,p=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",o],["partialRight",64],["rearg",256]],h="[object Arguments]",d="[object Array]",b="[object Boolean]",m="[object Date]",g="[object Error]",_="[object Function]",w="[object GeneratorFunction]",x="[object Map]",y="[object Number]",j="[object Object]",k="[object Promise]",z="[object RegExp]",A="[object Set]",I="[object String]",$="[object Symbol]",E="[object WeakMap]",R="[object ArrayBuffer]",D="[object DataView]",M="[object Float32Array]",O="[object Float64Array]",C="[object Int8Array]",S="[object Int16Array]",U="[object Int32Array]",N="[object Uint8Array]",L="[object Uint8ClampedArray]",T="[object Uint16Array]",F="[object Uint32Array]",H=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,Z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,B=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,P=RegExp(B.source),G=RegExp(K.source),q=/<%-([\s\S]+?)%>/g,V=/<%([\s\S]+?)%>/g,Y=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,X=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nn=/[\\^$.*+?()[\]{}|]/g,rn=RegExp(nn.source),tn=/^\s+/,en=/\s/,un=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,on=/\{\n\/\* \[wrapped with (.+)\] \*/,cn=/,? & /,fn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,an=/[()=,{}\[\]\/\s]/,sn=/\\(\\)?/g,ln=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vn=/\w*$/,pn=/^[-+]0x[0-9a-f]+$/i,hn=/^0b[01]+$/i,dn=/^\[object .+?Constructor\]$/,bn=/^0o[0-7]+$/i,mn=/^(?:0|[1-9]\d*)$/,gn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_n=/($^)/,wn=/['\n\r\u2028\u2029\\]/g,xn="\\ud800-\\udfff",yn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",jn="\\u2700-\\u27bf",kn="a-z\\xdf-\\xf6\\xf8-\\xff",zn="A-Z\\xc0-\\xd6\\xd8-\\xde",An="\\ufe0e\\ufe0f",In="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",$n="["+xn+"]",En="["+In+"]",Rn="["+yn+"]",Dn="\\d+",Mn="["+jn+"]",On="["+kn+"]",Cn="[^"+xn+In+Dn+jn+kn+zn+"]",Sn="\\ud83c[\\udffb-\\udfff]",Un="[^"+xn+"]",Nn="(?:\\ud83c[\\udde6-\\uddff]){2}",Ln="[\\ud800-\\udbff][\\udc00-\\udfff]",Tn="["+zn+"]",Fn="\\u200d",Hn="(?:"+On+"|"+Cn+")",Wn="(?:"+Tn+"|"+Cn+")",Zn="(?:['’](?:d|ll|m|re|s|t|ve))?",Bn="(?:['’](?:D|LL|M|RE|S|T|VE))?",Kn="(?:"+Rn+"|"+Sn+")?",Pn="["+An+"]?",Gn=Pn+Kn+"(?:"+Fn+"(?:"+[Un,Nn,Ln].join("|")+")"+Pn+Kn+")*",qn="(?:"+[Mn,Nn,Ln].join("|")+")"+Gn,Vn="(?:"+[Un+Rn+"?",Rn,Nn,Ln,$n].join("|")+")",Yn=RegExp("['’]","g"),Jn=RegExp(Rn,"g"),Qn=RegExp(Sn+"(?="+Sn+")|"+Vn+Gn,"g"),Xn=RegExp([Tn+"?"+On+"+"+Zn+"(?="+[En,Tn,"$"].join("|")+")",Wn+"+"+Bn+"(?="+[En,Tn+Hn,"$"].join("|")+")",Tn+"?"+Hn+"+"+Zn,Tn+"+"+Bn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Dn,qn].join("|"),"g"),nr=RegExp("["+Fn+xn+yn+An+"]"),rr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tr=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],er=-1,ur={};ur[M]=ur[O]=ur[C]=ur[S]=ur[U]=ur[N]=ur[L]=ur[T]=ur[F]=!0,ur[h]=ur[d]=ur[R]=ur[b]=ur[D]=ur[m]=ur[g]=ur[_]=ur[x]=ur[y]=ur[j]=ur[z]=ur[A]=ur[I]=ur[E]=!1;var ir={};ir[h]=ir[d]=ir[R]=ir[D]=ir[b]=ir[m]=ir[M]=ir[O]=ir[C]=ir[S]=ir[U]=ir[x]=ir[y]=ir[j]=ir[z]=ir[A]=ir[I]=ir[$]=ir[N]=ir[L]=ir[T]=ir[F]=!0,ir[g]=ir[_]=ir[E]=!1;var or={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},cr=parseFloat,fr=parseInt,ar="object"==typeof f&&f&&f.Object===Object&&f,sr="object"==typeof self&&self&&self.Object===Object&&self,lr=ar||sr||Function("return this")(),vr=r&&!r.nodeType&&r,pr=vr&&n&&!n.nodeType&&n,hr=pr&&pr.exports===vr,dr=hr&&ar.process,br=function(){try{return pr&&pr.require&&pr.require("util").types||dr&&dr.binding&&dr.binding("util")}catch(n){}}(),mr=br&&br.isArrayBuffer,gr=br&&br.isDate,_r=br&&br.isMap,wr=br&&br.isRegExp,xr=br&&br.isSet,yr=br&&br.isTypedArray;function jr(n,r,t){switch(t.length){case 0:return n.call(r);case 1:return n.call(r,t[0]);case 2:return n.call(r,t[0],t[1]);case 3:return n.call(r,t[0],t[1],t[2])}return n.apply(r,t)}function kr(n,r,t,e){for(var u=-1,i=null==n?0:n.length;++u<i;){var o=n[u];r(e,o,t(o),n)}return e}function zr(n,r){for(var t=-1,e=null==n?0:n.length;++t<e&&!1!==r(n[t],t,n););return n}function Ar(n,r){for(var t=null==n?0:n.length;t--&&!1!==r(n[t],t,n););return n}function Ir(n,r){for(var t=-1,e=null==n?0:n.length;++t<e;)if(!r(n[t],t,n))return!1;return!0}function $r(n,r){for(var t=-1,e=null==n?0:n.length,u=0,i=[];++t<e;){var o=n[t];r(o,t,n)&&(i[u++]=o)}return i}function Er(n,r){return!(null==n||!n.length)&&Tr(n,r,0)>-1}function Rr(n,r,t){for(var e=-1,u=null==n?0:n.length;++e<u;)if(t(r,n[e]))return!0;return!1}function Dr(n,r){for(var t=-1,e=null==n?0:n.length,u=Array(e);++t<e;)u[t]=r(n[t],t,n);return u}function Mr(n,r){for(var t=-1,e=r.length,u=n.length;++t<e;)n[u+t]=r[t];return n}function Or(n,r,t,e){var u=-1,i=null==n?0:n.length;for(e&&i&&(t=n[++u]);++u<i;)t=r(t,n[u],u,n);return t}function Cr(n,r,t,e){var u=null==n?0:n.length;for(e&&u&&(t=n[--u]);u--;)t=r(t,n[u],u,n);return t}function Sr(n,r){for(var t=-1,e=null==n?0:n.length;++t<e;)if(r(n[t],t,n))return!0;return!1}var Ur=Zr("length");function Nr(n,r,t){var e;return t(n,(function(n,t,u){if(r(n,t,u))return e=t,!1})),e}function Lr(n,r,t,e){for(var u=n.length,i=t+(e?1:-1);e?i--:++i<u;)if(r(n[i],i,n))return i;return-1}function Tr(n,r,t){return r==r?function(n,r,t){for(var e=t-1,u=n.length;++e<u;)if(n[e]===r)return e;return-1}(n,r,t):Lr(n,Hr,t)}function Fr(n,r,t,e){for(var u=t-1,i=n.length;++u<i;)if(e(n[u],r))return u;return-1}function Hr(n){return n!=n}function Wr(n,r){var t=null==n?0:n.length;return t?Pr(n,r)/t:l}function Zr(n){return function(r){return null==r?t:r[n]}}function Br(n){return function(r){return null==n?t:n[r]}}function Kr(n,r,t,e,u){return u(n,(function(n,u,i){t=e?(e=!1,n):r(t,n,u,i)})),t}function Pr(n,r){for(var e,u=-1,i=n.length;++u<i;){var o=r(n[u]);o!==t&&(e=e===t?o:e+o)}return e}function Gr(n,r){for(var t=-1,e=Array(n);++t<n;)e[t]=r(t);return e}function qr(n){return n?n.slice(0,vt(n)+1).replace(tn,""):n}function Vr(n){return function(r){return n(r)}}function Yr(n,r){return Dr(r,(function(r){return n[r]}))}function Jr(n,r){return n.has(r)}function Qr(n,r){for(var t=-1,e=n.length;++t<e&&Tr(r,n[t],0)>-1;);return t}function Xr(n,r){for(var t=n.length;t--&&Tr(r,n[t],0)>-1;);return t}function nt(n,r){for(var t=n.length,e=0;t--;)n[t]===r&&++e;return e}var rt=Br({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tt=Br({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function et(n){return"\\"+or[n]}function ut(n){return nr.test(n)}function it(n){var r=-1,t=Array(n.size);return n.forEach((function(n,e){t[++r]=[e,n]})),t}function ot(n,r){return function(t){return n(r(t))}}function ct(n,r){for(var t=-1,e=n.length,u=0,o=[];++t<e;){var c=n[t];c!==r&&c!==i||(n[t]=i,o[u++]=t)}return o}function ft(n){var r=-1,t=Array(n.size);return n.forEach((function(n){t[++r]=n})),t}function at(n){var r=-1,t=Array(n.size);return n.forEach((function(n){t[++r]=[n,n]})),t}function st(n){return ut(n)?function(n){for(var r=Qn.lastIndex=0;Qn.test(n);)++r;return r}(n):Ur(n)}function lt(n){return ut(n)?function(n){return n.match(Qn)||[]}(n):function(n){return n.split("")}(n)}function vt(n){for(var r=n.length;r--&&en.test(n.charAt(r)););return r}var pt=Br({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),ht=function n(r){var f,en=(r=null==r?lr:ht.defaults(lr.Object(),r,ht.pick(lr,tr))).Array,xn=r.Date,yn=r.Error,jn=r.Function,kn=r.Math,zn=r.Object,An=r.RegExp,In=r.String,$n=r.TypeError,En=en.prototype,Rn=zn.prototype,Dn=r["__core-js_shared__"],Mn=jn.prototype.toString,On=Rn.hasOwnProperty,Cn=0,Sn=(f=/[^.]+$/.exec(Dn&&Dn.keys&&Dn.keys.IE_PROTO||""))?"Symbol(src)_1."+f:"",Un=Rn.toString,Nn=Mn.call(zn),Ln=lr._,Tn=An("^"+Mn.call(On).replace(nn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fn=hr?r.Buffer:t,Hn=r.Symbol,Wn=r.Uint8Array,Zn=Fn?Fn.allocUnsafe:t,Bn=ot(zn.getPrototypeOf,zn),Kn=zn.create,Pn=Rn.propertyIsEnumerable,Gn=En.splice,qn=Hn?Hn.isConcatSpreadable:t,Vn=Hn?Hn.iterator:t,Qn=Hn?Hn.toStringTag:t,nr=function(){try{var n=fi(zn,"defineProperty");return n({},"",{}),n}catch(n){}}(),or=r.clearTimeout!==lr.clearTimeout&&r.clearTimeout,ar=xn&&xn.now!==lr.Date.now&&xn.now,sr=r.setTimeout!==lr.setTimeout&&r.setTimeout,vr=kn.ceil,pr=kn.floor,dr=zn.getOwnPropertySymbols,br=Fn?Fn.isBuffer:t,Ur=r.isFinite,Br=En.join,dt=ot(zn.keys,zn),bt=kn.max,mt=kn.min,gt=xn.now,_t=r.parseInt,wt=kn.random,xt=En.reverse,yt=fi(r,"DataView"),jt=fi(r,"Map"),kt=fi(r,"Promise"),zt=fi(r,"Set"),At=fi(r,"WeakMap"),It=fi(zn,"create"),$t=At&&new At,Et={},Rt=Ni(yt),Dt=Ni(jt),Mt=Ni(kt),Ot=Ni(zt),Ct=Ni(At),St=Hn?Hn.prototype:t,Ut=St?St.valueOf:t,Nt=St?St.toString:t;function Lt(n){if(rc(n)&&!Bo(n)&&!(n instanceof Wt)){if(n instanceof Ht)return n;if(On.call(n,"__wrapped__"))return Li(n)}return new Ht(n)}var Tt=function(){function n(){}return function(r){if(!nc(r))return{};if(Kn)return Kn(r);n.prototype=r;var e=new n;return n.prototype=t,e}}();function Ft(){}function Ht(n,r){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=t}function Wt(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function Zt(n){var r=-1,t=null==n?0:n.length;for(this.clear();++r<t;){var e=n[r];this.set(e[0],e[1])}}function Bt(n){var r=-1,t=null==n?0:n.length;for(this.clear();++r<t;){var e=n[r];this.set(e[0],e[1])}}function Kt(n){var r=-1,t=null==n?0:n.length;for(this.clear();++r<t;){var e=n[r];this.set(e[0],e[1])}}function Pt(n){var r=-1,t=null==n?0:n.length;for(this.__data__=new Kt;++r<t;)this.add(n[r])}function Gt(n){var r=this.__data__=new Bt(n);this.size=r.size}function qt(n,r){var t=Bo(n),e=!t&&Zo(n),u=!t&&!e&&qo(n),i=!t&&!e&&!u&&ac(n),o=t||e||u||i,c=o?Gr(n.length,In):[],f=c.length;for(var a in n)!r&&!On.call(n,a)||o&&("length"==a||u&&("offset"==a||"parent"==a)||i&&("buffer"==a||"byteLength"==a||"byteOffset"==a)||di(a,f))||c.push(a);return c}function Vt(n){var r=n.length;return r?n[Ke(0,r-1)]:t}function Yt(n,r){return Mi(Au(n),ie(r,0,n.length))}function Jt(n){return Mi(Au(n))}function Qt(n,r,e){(e!==t&&!Fo(n[r],e)||e===t&&!(r in n))&&ee(n,r,e)}function Xt(n,r,e){var u=n[r];On.call(n,r)&&Fo(u,e)&&(e!==t||r in n)||ee(n,r,e)}function ne(n,r){for(var t=n.length;t--;)if(Fo(n[t][0],r))return t;return-1}function re(n,r,t,e){return se(n,(function(n,u,i){r(e,n,t(n),i)})),e}function te(n,r){return n&&Iu(r,Dc(r),n)}function ee(n,r,t){"__proto__"==r&&nr?nr(n,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[r]=t}function ue(n,r){for(var e=-1,u=r.length,i=en(u),o=null==n;++e<u;)i[e]=o?t:Ac(n,r[e]);return i}function ie(n,r,e){return n==n&&(e!==t&&(n=n<=e?n:e),r!==t&&(n=n>=r?n:r)),n}function oe(n,r,e,u,i,o){var c,f=1&r,a=2&r,s=4&r;if(e&&(c=i?e(n,u,i,o):e(n)),c!==t)return c;if(!nc(n))return n;var l=Bo(n);if(l){if(c=function(n){var r=n.length,t=new n.constructor(r);return r&&"string"==typeof n[0]&&On.call(n,"index")&&(t.index=n.index,t.input=n.input),t}(n),!f)return Au(n,c)}else{var v=li(n),p=v==_||v==w;if(qo(n))return wu(n,f);if(v==j||v==h||p&&!i){if(c=a||p?{}:pi(n),!f)return a?function(n,r){return Iu(n,si(n),r)}(n,function(n,r){return n&&Iu(r,Mc(r),n)}(c,n)):function(n,r){return Iu(n,ai(n),r)}(n,te(c,n))}else{if(!ir[v])return i?n:{};c=function(n,r,t){var e=n.constructor;switch(r){case R:return xu(n);case b:case m:return new e(+n);case D:return function(n,r){var t=r?xu(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}(n,t);case M:case O:case C:case S:case U:case N:case L:case T:case F:return yu(n,t);case x:return new e;case y:case I:return new e(n);case z:return function(n){var r=new n.constructor(n.source,vn.exec(n));return r.lastIndex=n.lastIndex,r}(n);case A:return new e;case $:return Ut?zn(Ut.call(n)):{}}}(n,v,f)}}o||(o=new Gt);var d=o.get(n);if(d)return d;o.set(n,c),oc(n)?n.forEach((function(t){c.add(oe(t,r,e,t,n,o))})):tc(n)&&n.forEach((function(t,u){c.set(u,oe(t,r,e,u,n,o))}));var g=l?t:(s?a?ri:ni:a?Mc:Dc)(n);return zr(g||n,(function(t,u){g&&(t=n[u=t]),Xt(c,u,oe(t,r,e,u,n,o))})),c}function ce(n,r,e){var u=e.length;if(null==n)return!u;for(n=zn(n);u--;){var i=e[u],o=n[i];if(o===t&&!(i in n)||!(0,r[i])(o))return!1}return!0}function fe(n,r,u){if("function"!=typeof n)throw new $n(e);return $i((function(){n.apply(t,u)}),r)}function ae(n,r,t,e){var u=-1,i=Er,o=!0,c=n.length,f=[],a=r.length;if(!c)return f;t&&(r=Dr(r,Vr(t))),e?(i=Rr,o=!1):r.length>=200&&(i=Jr,o=!1,r=new Pt(r));n:for(;++u<c;){var s=n[u],l=null==t?s:t(s);if(s=e||0!==s?s:0,o&&l==l){for(var v=a;v--;)if(r[v]===l)continue n;f.push(s)}else i(r,l,e)||f.push(s)}return f}Lt.templateSettings={escape:q,evaluate:V,interpolate:Y,variable:"",imports:{_:Lt}},(Lt.prototype=Ft.prototype).constructor=Lt,(Ht.prototype=Tt(Ft.prototype)).constructor=Ht,(Wt.prototype=Tt(Ft.prototype)).constructor=Wt,Zt.prototype.clear=function(){this.__data__=It?It(null):{},this.size=0},Zt.prototype.delete=function(n){var r=this.has(n)&&delete this.__data__[n];return this.size-=r?1:0,r},Zt.prototype.get=function(n){var r=this.__data__;if(It){var e=r[n];return e===u?t:e}return On.call(r,n)?r[n]:t},Zt.prototype.has=function(n){var r=this.__data__;return It?r[n]!==t:On.call(r,n)},Zt.prototype.set=function(n,r){var e=this.__data__;return this.size+=this.has(n)?0:1,e[n]=It&&r===t?u:r,this},Bt.prototype.clear=function(){this.__data__=[],this.size=0},Bt.prototype.delete=function(n){var r=this.__data__,t=ne(r,n);return!(t<0||(t==r.length-1?r.pop():Gn.call(r,t,1),--this.size,0))},Bt.prototype.get=function(n){var r=this.__data__,e=ne(r,n);return e<0?t:r[e][1]},Bt.prototype.has=function(n){return ne(this.__data__,n)>-1},Bt.prototype.set=function(n,r){var t=this.__data__,e=ne(t,n);return e<0?(++this.size,t.push([n,r])):t[e][1]=r,this},Kt.prototype.clear=function(){this.size=0,this.__data__={hash:new Zt,map:new(jt||Bt),string:new Zt}},Kt.prototype.delete=function(n){var r=oi(this,n).delete(n);return this.size-=r?1:0,r},Kt.prototype.get=function(n){return oi(this,n).get(n)},Kt.prototype.has=function(n){return oi(this,n).has(n)},Kt.prototype.set=function(n,r){var t=oi(this,n),e=t.size;return t.set(n,r),this.size+=t.size==e?0:1,this},Pt.prototype.add=Pt.prototype.push=function(n){return this.__data__.set(n,u),this},Pt.prototype.has=function(n){return this.__data__.has(n)},Gt.prototype.clear=function(){this.__data__=new Bt,this.size=0},Gt.prototype.delete=function(n){var r=this.__data__,t=r.delete(n);return this.size=r.size,t},Gt.prototype.get=function(n){return this.__data__.get(n)},Gt.prototype.has=function(n){return this.__data__.has(n)},Gt.prototype.set=function(n,r){var t=this.__data__;if(t instanceof Bt){var e=t.__data__;if(!jt||e.length<199)return e.push([n,r]),this.size=++t.size,this;t=this.__data__=new Kt(e)}return t.set(n,r),this.size=t.size,this};var se=Ru(ge),le=Ru(_e,!0);function ve(n,r){var t=!0;return se(n,(function(n,e,u){return t=!!r(n,e,u)})),t}function pe(n,r,e){for(var u=-1,i=n.length;++u<i;){var o=n[u],c=r(o);if(null!=c&&(f===t?c==c&&!fc(c):e(c,f)))var f=c,a=o}return a}function he(n,r){var t=[];return se(n,(function(n,e,u){r(n,e,u)&&t.push(n)})),t}function de(n,r,t,e,u){var i=-1,o=n.length;for(t||(t=hi),u||(u=[]);++i<o;){var c=n[i];r>0&&t(c)?r>1?de(c,r-1,t,e,u):Mr(u,c):e||(u[u.length]=c)}return u}var be=Du(),me=Du(!0);function ge(n,r){return n&&be(n,r,Dc)}function _e(n,r){return n&&me(n,r,Dc)}function we(n,r){return $r(r,(function(r){return Jo(n[r])}))}function xe(n,r){for(var e=0,u=(r=bu(r,n)).length;null!=n&&e<u;)n=n[Ui(r[e++])];return e&&e==u?n:t}function ye(n,r,t){var e=r(n);return Bo(n)?e:Mr(e,t(n))}function je(n){return null==n?n===t?"[object Undefined]":"[object Null]":Qn&&Qn in zn(n)?function(n){var r=On.call(n,Qn),e=n[Qn];try{n[Qn]=t;var u=!0}catch(n){}var i=Un.call(n);return u&&(r?n[Qn]=e:delete n[Qn]),i}(n):function(n){return Un.call(n)}(n)}function ke(n,r){return n>r}function ze(n,r){return null!=n&&On.call(n,r)}function Ae(n,r){return null!=n&&r in zn(n)}function Ie(n,r,e){for(var u=e?Rr:Er,i=n[0].length,o=n.length,c=o,f=en(o),a=1/0,s=[];c--;){var l=n[c];c&&r&&(l=Dr(l,Vr(r))),a=mt(l.length,a),f[c]=!e&&(r||i>=120&&l.length>=120)?new Pt(c&&l):t}l=n[0];var v=-1,p=f[0];n:for(;++v<i&&s.length<a;){var h=l[v],d=r?r(h):h;if(h=e||0!==h?h:0,!(p?Jr(p,d):u(s,d,e))){for(c=o;--c;){var b=f[c];if(!(b?Jr(b,d):u(n[c],d,e)))continue n}p&&p.push(d),s.push(h)}}return s}function $e(n,r,e){var u=null==(n=ki(n,r=bu(r,n)))?n:n[Ui(Vi(r))];return null==u?t:jr(u,n,e)}function Ee(n){return rc(n)&&je(n)==h}function Re(n,r,e,u,i){return n===r||(null==n||null==r||!rc(n)&&!rc(r)?n!=n&&r!=r:function(n,r,e,u,i,o){var c=Bo(n),f=Bo(r),a=c?d:li(n),s=f?d:li(r),l=(a=a==h?j:a)==j,v=(s=s==h?j:s)==j,p=a==s;if(p&&qo(n)){if(!qo(r))return!1;c=!0,l=!1}if(p&&!l)return o||(o=new Gt),c||ac(n)?Qu(n,r,e,u,i,o):function(n,r,t,e,u,i,o){switch(t){case D:if(n.byteLength!=r.byteLength||n.byteOffset!=r.byteOffset)return!1;n=n.buffer,r=r.buffer;case R:return!(n.byteLength!=r.byteLength||!i(new Wn(n),new Wn(r)));case b:case m:case y:return Fo(+n,+r);case g:return n.name==r.name&&n.message==r.message;case z:case I:return n==r+"";case x:var c=it;case A:if(c||(c=ft),n.size!=r.size&&!(1&e))return!1;var f=o.get(n);if(f)return f==r;e|=2,o.set(n,r);var a=Qu(c(n),c(r),e,u,i,o);return o.delete(n),a;case $:if(Ut)return Ut.call(n)==Ut.call(r)}return!1}(n,r,a,e,u,i,o);if(!(1&e)){var _=l&&On.call(n,"__wrapped__"),w=v&&On.call(r,"__wrapped__");if(_||w){var k=_?n.value():n,E=w?r.value():r;return o||(o=new Gt),i(k,E,e,u,o)}}return!!p&&(o||(o=new Gt),function(n,r,e,u,i,o){var c=1&e,f=ni(n),a=f.length;if(a!=ni(r).length&&!c)return!1;for(var s=a;s--;){var l=f[s];if(!(c?l in r:On.call(r,l)))return!1}var v=o.get(n),p=o.get(r);if(v&&p)return v==r&&p==n;var h=!0;o.set(n,r),o.set(r,n);for(var d=c;++s<a;){var b=n[l=f[s]],m=r[l];if(u)var g=c?u(m,b,l,r,n,o):u(b,m,l,n,r,o);if(!(g===t?b===m||i(b,m,e,u,o):g)){h=!1;break}d||(d="constructor"==l)}if(h&&!d){var _=n.constructor,w=r.constructor;_==w||!("constructor"in n)||!("constructor"in r)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(h=!1)}return o.delete(n),o.delete(r),h}(n,r,e,u,i,o))}(n,r,e,u,Re,i))}function De(n,r,e,u){var i=e.length,o=i,c=!u;if(null==n)return!o;for(n=zn(n);i--;){var f=e[i];if(c&&f[2]?f[1]!==n[f[0]]:!(f[0]in n))return!1}for(;++i<o;){var a=(f=e[i])[0],s=n[a],l=f[1];if(c&&f[2]){if(s===t&&!(a in n))return!1}else{var v=new Gt;if(u)var p=u(s,l,a,n,r,v);if(!(p===t?Re(l,s,3,u,v):p))return!1}}return!0}function Me(n){return!(!nc(n)||(r=n,Sn&&Sn in r))&&(Jo(n)?Tn:dn).test(Ni(n));var r}function Oe(n){return"function"==typeof n?n:null==n?ef:"object"==typeof n?Bo(n)?Le(n[0],n[1]):Ne(n):pf(n)}function Ce(n){if(!wi(n))return dt(n);var r=[];for(var t in zn(n))On.call(n,t)&&"constructor"!=t&&r.push(t);return r}function Se(n,r){return n<r}function Ue(n,r){var t=-1,e=Po(n)?en(n.length):[];return se(n,(function(n,u,i){e[++t]=r(n,u,i)})),e}function Ne(n){var r=ci(n);return 1==r.length&&r[0][2]?yi(r[0][0],r[0][1]):function(t){return t===n||De(t,n,r)}}function Le(n,r){return mi(n)&&xi(r)?yi(Ui(n),r):function(e){var u=Ac(e,n);return u===t&&u===r?Ic(e,n):Re(r,u,3)}}function Te(n,r,e,u,i){n!==r&&be(r,(function(o,c){if(i||(i=new Gt),nc(o))!function(n,r,e,u,i,o,c){var f=Ai(n,e),a=Ai(r,e),s=c.get(a);if(s)Qt(n,e,s);else{var l=o?o(f,a,e+"",n,r,c):t,v=l===t;if(v){var p=Bo(a),h=!p&&qo(a),d=!p&&!h&&ac(a);l=a,p||h||d?Bo(f)?l=f:Go(f)?l=Au(f):h?(v=!1,l=wu(a,!0)):d?(v=!1,l=yu(a,!0)):l=[]:uc(a)||Zo(a)?(l=f,Zo(f)?l=mc(f):nc(f)&&!Jo(f)||(l=pi(a))):v=!1}v&&(c.set(a,l),i(l,a,u,o,c),c.delete(a)),Qt(n,e,l)}}(n,r,c,e,Te,u,i);else{var f=u?u(Ai(n,c),o,c+"",n,r,i):t;f===t&&(f=o),Qt(n,c,f)}}),Mc)}function Fe(n,r){var e=n.length;if(e)return di(r+=r<0?e:0,e)?n[r]:t}function He(n,r,t){r=r.length?Dr(r,(function(n){return Bo(n)?function(r){return xe(r,1===n.length?n[0]:n)}:n})):[ef];var e=-1;r=Dr(r,Vr(ii()));var u=Ue(n,(function(n){var t=Dr(r,(function(r){return r(n)}));return{criteria:t,index:++e,value:n}}));return function(n){var r=n.length;for(n.sort((function(n,r){return function(n,r,t){for(var e=-1,u=n.criteria,i=r.criteria,o=u.length,c=t.length;++e<o;){var f=ju(u[e],i[e]);if(f)return e>=c?f:f*("desc"==t[e]?-1:1)}return n.index-r.index}(n,r,t)}));r--;)n[r]=n[r].value;return n}(u)}function We(n,r,t){for(var e=-1,u=r.length,i={};++e<u;){var o=r[e],c=xe(n,o);t(c,o)&&Ye(i,bu(o,n),c)}return i}function Ze(n,r,t,e){var u=e?Fr:Tr,i=-1,o=r.length,c=n;for(n===r&&(r=Au(r)),t&&(c=Dr(n,Vr(t)));++i<o;)for(var f=0,a=r[i],s=t?t(a):a;(f=u(c,s,f,e))>-1;)c!==n&&Gn.call(c,f,1),Gn.call(n,f,1);return n}function Be(n,r){for(var t=n?r.length:0,e=t-1;t--;){var u=r[t];if(t==e||u!==i){var i=u;di(u)?Gn.call(n,u,1):fu(n,u)}}return n}function Ke(n,r){return n+pr(wt()*(r-n+1))}function Pe(n,r){var t="";if(!n||r<1||r>s)return t;do{r%2&&(t+=n),(r=pr(r/2))&&(n+=n)}while(r);return t}function Ge(n,r){return Ei(ji(n,r,ef),n+"")}function qe(n){return Vt(Fc(n))}function Ve(n,r){var t=Fc(n);return Mi(t,ie(r,0,t.length))}function Ye(n,r,e,u){if(!nc(n))return n;for(var i=-1,o=(r=bu(r,n)).length,c=o-1,f=n;null!=f&&++i<o;){var a=Ui(r[i]),s=e;if("__proto__"===a||"constructor"===a||"prototype"===a)return n;if(i!=c){var l=f[a];(s=u?u(l,a,f):t)===t&&(s=nc(l)?l:di(r[i+1])?[]:{})}Xt(f,a,s),f=f[a]}return n}var Je=$t?function(n,r){return $t.set(n,r),n}:ef,Qe=nr?function(n,r){return nr(n,"toString",{configurable:!0,enumerable:!1,value:nf(r),writable:!0})}:ef;function Xe(n){return Mi(Fc(n))}function nu(n,r,t){var e=-1,u=n.length;r<0&&(r=-r>u?0:u+r),(t=t>u?u:t)<0&&(t+=u),u=r>t?0:t-r>>>0,r>>>=0;for(var i=en(u);++e<u;)i[e]=n[e+r];return i}function ru(n,r){var t;return se(n,(function(n,e,u){return!(t=r(n,e,u))})),!!t}function tu(n,r,t){var e=0,u=null==n?e:n.length;if("number"==typeof r&&r==r&&u<=2147483647){for(;e<u;){var i=e+u>>>1,o=n[i];null!==o&&!fc(o)&&(t?o<=r:o<r)?e=i+1:u=i}return u}return eu(n,r,ef,t)}function eu(n,r,e,u){var i=0,o=null==n?0:n.length;if(0===o)return 0;for(var c=(r=e(r))!=r,f=null===r,a=fc(r),s=r===t;i<o;){var l=pr((i+o)/2),v=e(n[l]),p=v!==t,h=null===v,d=v==v,b=fc(v);if(c)var m=u||d;else m=s?d&&(u||p):f?d&&p&&(u||!h):a?d&&p&&!h&&(u||!b):!h&&!b&&(u?v<=r:v<r);m?i=l+1:o=l}return mt(o,4294967294)}function uu(n,r){for(var t=-1,e=n.length,u=0,i=[];++t<e;){var o=n[t],c=r?r(o):o;if(!t||!Fo(c,f)){var f=c;i[u++]=0===o?0:o}}return i}function iu(n){return"number"==typeof n?n:fc(n)?l:+n}function ou(n){if("string"==typeof n)return n;if(Bo(n))return Dr(n,ou)+"";if(fc(n))return Nt?Nt.call(n):"";var r=n+"";return"0"==r&&1/n==-1/0?"-0":r}function cu(n,r,t){var e=-1,u=Er,i=n.length,o=!0,c=[],f=c;if(t)o=!1,u=Rr;else if(i>=200){var a=r?null:Pu(n);if(a)return ft(a);o=!1,u=Jr,f=new Pt}else f=r?[]:c;n:for(;++e<i;){var s=n[e],l=r?r(s):s;if(s=t||0!==s?s:0,o&&l==l){for(var v=f.length;v--;)if(f[v]===l)continue n;r&&f.push(l),c.push(s)}else u(f,l,t)||(f!==c&&f.push(l),c.push(s))}return c}function fu(n,r){return null==(n=ki(n,r=bu(r,n)))||delete n[Ui(Vi(r))]}function au(n,r,t,e){return Ye(n,r,t(xe(n,r)),e)}function su(n,r,t,e){for(var u=n.length,i=e?u:-1;(e?i--:++i<u)&&r(n[i],i,n););return t?nu(n,e?0:i,e?i+1:u):nu(n,e?i+1:0,e?u:i)}function lu(n,r){var t=n;return t instanceof Wt&&(t=t.value()),Or(r,(function(n,r){return r.func.apply(r.thisArg,Mr([n],r.args))}),t)}function vu(n,r,t){var e=n.length;if(e<2)return e?cu(n[0]):[];for(var u=-1,i=en(e);++u<e;)for(var o=n[u],c=-1;++c<e;)c!=u&&(i[u]=ae(i[u]||o,n[c],r,t));return cu(de(i,1),r,t)}function pu(n,r,e){for(var u=-1,i=n.length,o=r.length,c={};++u<i;)e(c,n[u],u<o?r[u]:t);return c}function hu(n){return Go(n)?n:[]}function du(n){return"function"==typeof n?n:ef}function bu(n,r){return Bo(n)?n:mi(n,r)?[n]:Si(gc(n))}var mu=Ge;function gu(n,r,e){var u=n.length;return e=e===t?u:e,!r&&e>=u?n:nu(n,r,e)}var _u=or||function(n){return lr.clearTimeout(n)};function wu(n,r){if(r)return n.slice();var t=n.length,e=Zn?Zn(t):new n.constructor(t);return n.copy(e),e}function xu(n){var r=new n.constructor(n.byteLength);return new Wn(r).set(new Wn(n)),r}function yu(n,r){var t=r?xu(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}function ju(n,r){if(n!==r){var e=n!==t,u=null===n,i=n==n,o=fc(n),c=r!==t,f=null===r,a=r==r,s=fc(r);if(!f&&!s&&!o&&n>r||o&&c&&a&&!f&&!s||u&&c&&a||!e&&a||!i)return 1;if(!u&&!o&&!s&&n<r||s&&e&&i&&!u&&!o||f&&e&&i||!c&&i||!a)return-1}return 0}function ku(n,r,t,e){for(var u=-1,i=n.length,o=t.length,c=-1,f=r.length,a=bt(i-o,0),s=en(f+a),l=!e;++c<f;)s[c]=r[c];for(;++u<o;)(l||u<i)&&(s[t[u]]=n[u]);for(;a--;)s[c++]=n[u++];return s}function zu(n,r,t,e){for(var u=-1,i=n.length,o=-1,c=t.length,f=-1,a=r.length,s=bt(i-c,0),l=en(s+a),v=!e;++u<s;)l[u]=n[u];for(var p=u;++f<a;)l[p+f]=r[f];for(;++o<c;)(v||u<i)&&(l[p+t[o]]=n[u++]);return l}function Au(n,r){var t=-1,e=n.length;for(r||(r=en(e));++t<e;)r[t]=n[t];return r}function Iu(n,r,e,u){var i=!e;e||(e={});for(var o=-1,c=r.length;++o<c;){var f=r[o],a=u?u(e[f],n[f],f,e,n):t;a===t&&(a=n[f]),i?ee(e,f,a):Xt(e,f,a)}return e}function $u(n,r){return function(t,e){var u=Bo(t)?kr:re,i=r?r():{};return u(t,n,ii(e,2),i)}}function Eu(n){return Ge((function(r,e){var u=-1,i=e.length,o=i>1?e[i-1]:t,c=i>2?e[2]:t;for(o=n.length>3&&"function"==typeof o?(i--,o):t,c&&bi(e[0],e[1],c)&&(o=i<3?t:o,i=1),r=zn(r);++u<i;){var f=e[u];f&&n(r,f,u,o)}return r}))}function Ru(n,r){return function(t,e){if(null==t)return t;if(!Po(t))return n(t,e);for(var u=t.length,i=r?u:-1,o=zn(t);(r?i--:++i<u)&&!1!==e(o[i],i,o););return t}}function Du(n){return function(r,t,e){for(var u=-1,i=zn(r),o=e(r),c=o.length;c--;){var f=o[n?c:++u];if(!1===t(i[f],f,i))break}return r}}function Mu(n){return function(r){var e=ut(r=gc(r))?lt(r):t,u=e?e[0]:r.charAt(0),i=e?gu(e,1).join(""):r.slice(1);return u[n]()+i}}function Ou(n){return function(r){return Or(Jc(Zc(r).replace(Yn,"")),n,"")}}function Cu(n){return function(){var r=arguments;switch(r.length){case 0:return new n;case 1:return new n(r[0]);case 2:return new n(r[0],r[1]);case 3:return new n(r[0],r[1],r[2]);case 4:return new n(r[0],r[1],r[2],r[3]);case 5:return new n(r[0],r[1],r[2],r[3],r[4]);case 6:return new n(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new n(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var t=Tt(n.prototype),e=n.apply(t,r);return nc(e)?e:t}}function Su(n){return function(r,e,u){var i=zn(r);if(!Po(r)){var o=ii(e,3);r=Dc(r),e=function(n){return o(i[n],n,i)}}var c=n(r,e,u);return c>-1?i[o?r[c]:c]:t}}function Uu(n){return Xu((function(r){var u=r.length,i=u,o=Ht.prototype.thru;for(n&&r.reverse();i--;){var c=r[i];if("function"!=typeof c)throw new $n(e);if(o&&!f&&"wrapper"==ei(c))var f=new Ht([],!0)}for(i=f?i:u;++i<u;){var a=ei(c=r[i]),s="wrapper"==a?ti(c):t;f=s&&gi(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?f[ei(s[0])].apply(f,s[3]):1==c.length&&gi(c)?f[a]():f.thru(c)}return function(){var n=arguments,t=n[0];if(f&&1==n.length&&Bo(t))return f.plant(t).value();for(var e=0,i=u?r[e].apply(this,n):t;++e<u;)i=r[e].call(this,i);return i}}))}function Nu(n,r,e,u,i,o,f,a,s,l){var v=r&c,p=1&r,h=2&r,d=24&r,b=512&r,m=h?t:Cu(n);return function t(){for(var c=arguments.length,g=en(c),_=c;_--;)g[_]=arguments[_];if(d)var w=ui(t),x=nt(g,w);if(u&&(g=ku(g,u,i,d)),o&&(g=zu(g,o,f,d)),c-=x,d&&c<l){var y=ct(g,w);return Bu(n,r,Nu,t.placeholder,e,g,y,a,s,l-c)}var j=p?e:this,k=h?j[n]:n;return c=g.length,a?g=zi(g,a):b&&c>1&&g.reverse(),v&&s<c&&(g.length=s),this&&this!==lr&&this instanceof t&&(k=m||Cu(k)),k.apply(j,g)}}function Lu(n,r){return function(t,e){return function(n,r,t,e){return ge(n,(function(n,u,i){r(e,t(n),u,i)})),e}(t,n,r(e),{})}}function Tu(n,r){return function(e,u){var i;if(e===t&&u===t)return r;if(e!==t&&(i=e),u!==t){if(i===t)return u;"string"==typeof e||"string"==typeof u?(e=ou(e),u=ou(u)):(e=iu(e),u=iu(u)),i=n(e,u)}return i}}function Fu(n){return Xu((function(r){return r=Dr(r,Vr(ii())),Ge((function(t){var e=this;return n(r,(function(n){return jr(n,e,t)}))}))}))}function Hu(n,r){var e=(r=r===t?" ":ou(r)).length;if(e<2)return e?Pe(r,n):r;var u=Pe(r,vr(n/st(r)));return ut(r)?gu(lt(u),0,n).join(""):u.slice(0,n)}function Wu(n){return function(r,e,u){return u&&"number"!=typeof u&&bi(r,e,u)&&(e=u=t),r=pc(r),e===t?(e=r,r=0):e=pc(e),function(n,r,t,e){for(var u=-1,i=bt(vr((r-n)/(t||1)),0),o=en(i);i--;)o[e?i:++u]=n,n+=t;return o}(r,e,u=u===t?r<e?1:-1:pc(u),n)}}function Zu(n){return function(r,t){return"string"==typeof r&&"string"==typeof t||(r=bc(r),t=bc(t)),n(r,t)}}function Bu(n,r,e,u,i,c,f,a,s,l){var v=8&r;r|=v?o:64,4&(r&=~(v?64:o))||(r&=-4);var p=[n,r,i,v?c:t,v?f:t,v?t:c,v?t:f,a,s,l],h=e.apply(t,p);return gi(n)&&Ii(h,p),h.placeholder=u,Ri(h,n,r)}function Ku(n){var r=kn[n];return function(n,t){if(n=bc(n),(t=null==t?0:mt(hc(t),292))&&Ur(n)){var e=(gc(n)+"e").split("e");return+((e=(gc(r(e[0]+"e"+(+e[1]+t)))+"e").split("e"))[0]+"e"+(+e[1]-t))}return r(n)}}var Pu=zt&&1/ft(new zt([,-0]))[1]==a?function(n){return new zt(n)}:af;function Gu(n){return function(r){var t=li(r);return t==x?it(r):t==A?at(r):function(n,r){return Dr(r,(function(r){return[r,n[r]]}))}(r,n(r))}}function qu(n,r,u,f,a,s,l,v){var p=2&r;if(!p&&"function"!=typeof n)throw new $n(e);var h=f?f.length:0;if(h||(r&=-97,f=a=t),l=l===t?l:bt(hc(l),0),v=v===t?v:hc(v),h-=a?a.length:0,64&r){var d=f,b=a;f=a=t}var m=p?t:ti(n),g=[n,r,u,f,a,d,b,s,l,v];if(m&&function(n,r){var t=n[1],e=r[1],u=t|e;if(!(u<131||(e==c&&8==t||e==c&&256==t&&n[7].length<=r[8]||384==e&&r[7].length<=r[8]&&8==t)))return n;1&e&&(n[2]=r[2],u|=1&t?0:4);var o=r[3];if(o){var f=n[3];n[3]=f?ku(f,o,r[4]):o,n[4]=f?ct(n[3],i):r[4]}(o=r[5])&&(n[5]=(f=n[5])?zu(f,o,r[6]):o,n[6]=f?ct(n[5],i):r[6]),(o=r[7])&&(n[7]=o),e&c&&(n[8]=null==n[8]?r[8]:mt(n[8],r[8])),null==n[9]&&(n[9]=r[9]),n[0]=r[0],n[1]=u}(g,m),n=g[0],r=g[1],u=g[2],f=g[3],a=g[4],!(v=g[9]=g[9]===t?p?0:n.length:bt(g[9]-h,0))&&24&r&&(r&=-25),r&&1!=r)_=8==r||16==r?function(n,r,e){var u=Cu(n);return function i(){for(var o=arguments.length,c=en(o),f=o,a=ui(i);f--;)c[f]=arguments[f];var s=o<3&&c[0]!==a&&c[o-1]!==a?[]:ct(c,a);return(o-=s.length)<e?Bu(n,r,Nu,i.placeholder,t,c,s,t,t,e-o):jr(this&&this!==lr&&this instanceof i?u:n,this,c)}}(n,r,v):r!=o&&33!=r||a.length?Nu.apply(t,g):function(n,r,t,e){var u=1&r,i=Cu(n);return function r(){for(var o=-1,c=arguments.length,f=-1,a=e.length,s=en(a+c),l=this&&this!==lr&&this instanceof r?i:n;++f<a;)s[f]=e[f];for(;c--;)s[f++]=arguments[++o];return jr(l,u?t:this,s)}}(n,r,u,f);else var _=function(n,r,t){var e=1&r,u=Cu(n);return function r(){return(this&&this!==lr&&this instanceof r?u:n).apply(e?t:this,arguments)}}(n,r,u);return Ri((m?Je:Ii)(_,g),n,r)}function Vu(n,r,e,u){return n===t||Fo(n,Rn[e])&&!On.call(u,e)?r:n}function Yu(n,r,e,u,i,o){return nc(n)&&nc(r)&&(o.set(r,n),Te(n,r,t,Yu,o),o.delete(r)),n}function Ju(n){return uc(n)?t:n}function Qu(n,r,e,u,i,o){var c=1&e,f=n.length,a=r.length;if(f!=a&&!(c&&a>f))return!1;var s=o.get(n),l=o.get(r);if(s&&l)return s==r&&l==n;var v=-1,p=!0,h=2&e?new Pt:t;for(o.set(n,r),o.set(r,n);++v<f;){var d=n[v],b=r[v];if(u)var m=c?u(b,d,v,r,n,o):u(d,b,v,n,r,o);if(m!==t){if(m)continue;p=!1;break}if(h){if(!Sr(r,(function(n,r){if(!Jr(h,r)&&(d===n||i(d,n,e,u,o)))return h.push(r)}))){p=!1;break}}else if(d!==b&&!i(d,b,e,u,o)){p=!1;break}}return o.delete(n),o.delete(r),p}function Xu(n){return Ei(ji(n,t,Bi),n+"")}function ni(n){return ye(n,Dc,ai)}function ri(n){return ye(n,Mc,si)}var ti=$t?function(n){return $t.get(n)}:af;function ei(n){for(var r=n.name+"",t=Et[r],e=On.call(Et,r)?t.length:0;e--;){var u=t[e],i=u.func;if(null==i||i==n)return u.name}return r}function ui(n){return(On.call(Lt,"placeholder")?Lt:n).placeholder}function ii(){var n=Lt.iteratee||uf;return n=n===uf?Oe:n,arguments.length?n(arguments[0],arguments[1]):n}function oi(n,r){var t,e,u=n.__data__;return("string"==(e=typeof(t=r))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t)?u["string"==typeof r?"string":"hash"]:u.map}function ci(n){for(var r=Dc(n),t=r.length;t--;){var e=r[t],u=n[e];r[t]=[e,u,xi(u)]}return r}function fi(n,r){var e=function(n,r){return null==n?t:n[r]}(n,r);return Me(e)?e:t}var ai=dr?function(n){return null==n?[]:(n=zn(n),$r(dr(n),(function(r){return Pn.call(n,r)})))}:bf,si=dr?function(n){for(var r=[];n;)Mr(r,ai(n)),n=Bn(n);return r}:bf,li=je;function vi(n,r,t){for(var e=-1,u=(r=bu(r,n)).length,i=!1;++e<u;){var o=Ui(r[e]);if(!(i=null!=n&&t(n,o)))break;n=n[o]}return i||++e!=u?i:!!(u=null==n?0:n.length)&&Xo(u)&&di(o,u)&&(Bo(n)||Zo(n))}function pi(n){return"function"!=typeof n.constructor||wi(n)?{}:Tt(Bn(n))}function hi(n){return Bo(n)||Zo(n)||!!(qn&&n&&n[qn])}function di(n,r){var t=typeof n;return!!(r=null==r?s:r)&&("number"==t||"symbol"!=t&&mn.test(n))&&n>-1&&n%1==0&&n<r}function bi(n,r,t){if(!nc(t))return!1;var e=typeof r;return!!("number"==e?Po(t)&&di(r,t.length):"string"==e&&r in t)&&Fo(t[r],n)}function mi(n,r){if(Bo(n))return!1;var t=typeof n;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=n&&!fc(n))||Q.test(n)||!J.test(n)||null!=r&&n in zn(r)}function gi(n){var r=ei(n),t=Lt[r];if("function"!=typeof t||!(r in Wt.prototype))return!1;if(n===t)return!0;var e=ti(t);return!!e&&n===e[0]}(yt&&li(new yt(new ArrayBuffer(1)))!=D||jt&&li(new jt)!=x||kt&&li(kt.resolve())!=k||zt&&li(new zt)!=A||At&&li(new At)!=E)&&(li=function(n){var r=je(n),e=r==j?n.constructor:t,u=e?Ni(e):"";if(u)switch(u){case Rt:return D;case Dt:return x;case Mt:return k;case Ot:return A;case Ct:return E}return r});var _i=Dn?Jo:mf;function wi(n){var r=n&&n.constructor;return n===("function"==typeof r&&r.prototype||Rn)}function xi(n){return n==n&&!nc(n)}function yi(n,r){return function(e){return null!=e&&e[n]===r&&(r!==t||n in zn(e))}}function ji(n,r,e){return r=bt(r===t?n.length-1:r,0),function(){for(var t=arguments,u=-1,i=bt(t.length-r,0),o=en(i);++u<i;)o[u]=t[r+u];u=-1;for(var c=en(r+1);++u<r;)c[u]=t[u];return c[r]=e(o),jr(n,this,c)}}function ki(n,r){return r.length<2?n:xe(n,nu(r,0,-1))}function zi(n,r){for(var e=n.length,u=mt(r.length,e),i=Au(n);u--;){var o=r[u];n[u]=di(o,e)?i[o]:t}return n}function Ai(n,r){if(("constructor"!==r||"function"!=typeof n[r])&&"__proto__"!=r)return n[r]}var Ii=Di(Je),$i=sr||function(n,r){return lr.setTimeout(n,r)},Ei=Di(Qe);function Ri(n,r,t){var e=r+"";return Ei(n,function(n,r){var t=r.length;if(!t)return n;var e=t-1;return r[e]=(t>1?"& ":"")+r[e],r=r.join(t>2?", ":" "),n.replace(un,"{\n/* [wrapped with "+r+"] */\n")}(e,function(n,r){return zr(p,(function(t){var e="_."+t[0];r&t[1]&&!Er(n,e)&&n.push(e)})),n.sort()}(function(n){var r=n.match(on);return r?r[1].split(cn):[]}(e),t)))}function Di(n){var r=0,e=0;return function(){var u=gt(),i=16-(u-e);if(e=u,i>0){if(++r>=800)return arguments[0]}else r=0;return n.apply(t,arguments)}}function Mi(n,r){var e=-1,u=n.length,i=u-1;for(r=r===t?u:r;++e<r;){var o=Ke(e,i),c=n[o];n[o]=n[e],n[e]=c}return n.length=r,n}var Oi,Ci,Si=(Oi=Co((function(n){var r=[];return 46===n.charCodeAt(0)&&r.push(""),n.replace(X,(function(n,t,e,u){r.push(e?u.replace(sn,"$1"):t||n)})),r}),(function(n){return 500===Ci.size&&Ci.clear(),n})),Ci=Oi.cache,Oi);function Ui(n){if("string"==typeof n||fc(n))return n;var r=n+"";return"0"==r&&1/n==-1/0?"-0":r}function Ni(n){if(null!=n){try{return Mn.call(n)}catch(n){}try{return n+""}catch(n){}}return""}function Li(n){if(n instanceof Wt)return n.clone();var r=new Ht(n.__wrapped__,n.__chain__);return r.__actions__=Au(n.__actions__),r.__index__=n.__index__,r.__values__=n.__values__,r}var Ti=Ge((function(n,r){return Go(n)?ae(n,de(r,1,Go,!0)):[]})),Fi=Ge((function(n,r){var e=Vi(r);return Go(e)&&(e=t),Go(n)?ae(n,de(r,1,Go,!0),ii(e,2)):[]})),Hi=Ge((function(n,r){var e=Vi(r);return Go(e)&&(e=t),Go(n)?ae(n,de(r,1,Go,!0),t,e):[]}));function Wi(n,r,t){var e=null==n?0:n.length;if(!e)return-1;var u=null==t?0:hc(t);return u<0&&(u=bt(e+u,0)),Lr(n,ii(r,3),u)}function Zi(n,r,e){var u=null==n?0:n.length;if(!u)return-1;var i=u-1;return e!==t&&(i=hc(e),i=e<0?bt(u+i,0):mt(i,u-1)),Lr(n,ii(r,3),i,!0)}function Bi(n){return null!=n&&n.length?de(n,1):[]}function Ki(n){return n&&n.length?n[0]:t}var Pi=Ge((function(n){var r=Dr(n,hu);return r.length&&r[0]===n[0]?Ie(r):[]})),Gi=Ge((function(n){var r=Vi(n),e=Dr(n,hu);return r===Vi(e)?r=t:e.pop(),e.length&&e[0]===n[0]?Ie(e,ii(r,2)):[]})),qi=Ge((function(n){var r=Vi(n),e=Dr(n,hu);return(r="function"==typeof r?r:t)&&e.pop(),e.length&&e[0]===n[0]?Ie(e,t,r):[]}));function Vi(n){var r=null==n?0:n.length;return r?n[r-1]:t}var Yi=Ge(Ji);function Ji(n,r){return n&&n.length&&r&&r.length?Ze(n,r):n}var Qi=Xu((function(n,r){var t=null==n?0:n.length,e=ue(n,r);return Be(n,Dr(r,(function(n){return di(n,t)?+n:n})).sort(ju)),e}));function Xi(n){return null==n?n:xt.call(n)}var no=Ge((function(n){return cu(de(n,1,Go,!0))})),ro=Ge((function(n){var r=Vi(n);return Go(r)&&(r=t),cu(de(n,1,Go,!0),ii(r,2))})),to=Ge((function(n){var r=Vi(n);return r="function"==typeof r?r:t,cu(de(n,1,Go,!0),t,r)}));function eo(n){if(!n||!n.length)return[];var r=0;return n=$r(n,(function(n){if(Go(n))return r=bt(n.length,r),!0})),Gr(r,(function(r){return Dr(n,Zr(r))}))}function uo(n,r){if(!n||!n.length)return[];var e=eo(n);return null==r?e:Dr(e,(function(n){return jr(r,t,n)}))}var io=Ge((function(n,r){return Go(n)?ae(n,r):[]})),oo=Ge((function(n){return vu($r(n,Go))})),co=Ge((function(n){var r=Vi(n);return Go(r)&&(r=t),vu($r(n,Go),ii(r,2))})),fo=Ge((function(n){var r=Vi(n);return r="function"==typeof r?r:t,vu($r(n,Go),t,r)})),ao=Ge(eo),so=Ge((function(n){var r=n.length,e=r>1?n[r-1]:t;return e="function"==typeof e?(n.pop(),e):t,uo(n,e)}));function lo(n){var r=Lt(n);return r.__chain__=!0,r}function vo(n,r){return r(n)}var po=Xu((function(n){var r=n.length,e=r?n[0]:0,u=this.__wrapped__,i=function(r){return ue(r,n)};return!(r>1||this.__actions__.length)&&u instanceof Wt&&di(e)?((u=u.slice(e,+e+(r?1:0))).__actions__.push({func:vo,args:[i],thisArg:t}),new Ht(u,this.__chain__).thru((function(n){return r&&!n.length&&n.push(t),n}))):this.thru(i)})),ho=$u((function(n,r,t){On.call(n,t)?++n[t]:ee(n,t,1)})),bo=Su(Wi),mo=Su(Zi);function go(n,r){return(Bo(n)?zr:se)(n,ii(r,3))}function _o(n,r){return(Bo(n)?Ar:le)(n,ii(r,3))}var wo=$u((function(n,r,t){On.call(n,t)?n[t].push(r):ee(n,t,[r])})),xo=Ge((function(n,r,t){var e=-1,u="function"==typeof r,i=Po(n)?en(n.length):[];return se(n,(function(n){i[++e]=u?jr(r,n,t):$e(n,r,t)})),i})),yo=$u((function(n,r,t){ee(n,t,r)}));function jo(n,r){return(Bo(n)?Dr:Ue)(n,ii(r,3))}var ko=$u((function(n,r,t){n[t?0:1].push(r)}),(function(){return[[],[]]})),zo=Ge((function(n,r){if(null==n)return[];var t=r.length;return t>1&&bi(n,r[0],r[1])?r=[]:t>2&&bi(r[0],r[1],r[2])&&(r=[r[0]]),He(n,de(r,1),[])})),Ao=ar||function(){return lr.Date.now()};function Io(n,r,e){return r=e?t:r,qu(n,c,t,t,t,t,r=n&&null==r?n.length:r)}function $o(n,r){var u;if("function"!=typeof r)throw new $n(e);return n=hc(n),function(){return--n>0&&(u=r.apply(this,arguments)),n<=1&&(r=t),u}}var Eo=Ge((function(n,r,t){var e=1;if(t.length){var u=ct(t,ui(Eo));e|=o}return qu(n,e,r,t,u)})),Ro=Ge((function(n,r,t){var e=3;if(t.length){var u=ct(t,ui(Ro));e|=o}return qu(r,e,n,t,u)}));function Do(n,r,u){var i,o,c,f,a,s,l=0,v=!1,p=!1,h=!0;if("function"!=typeof n)throw new $n(e);function d(r){var e=i,u=o;return i=o=t,l=r,f=n.apply(u,e)}function b(n){return l=n,a=$i(g,r),v?d(n):f}function m(n){var e=n-s;return s===t||e>=r||e<0||p&&n-l>=c}function g(){var n=Ao();if(m(n))return _(n);a=$i(g,function(n){var t=r-(n-s);return p?mt(t,c-(n-l)):t}(n))}function _(n){return a=t,h&&i?d(n):(i=o=t,f)}function w(){var n=Ao(),e=m(n);if(i=arguments,o=this,s=n,e){if(a===t)return b(s);if(p)return _u(a),a=$i(g,r),d(s)}return a===t&&(a=$i(g,r)),f}return r=bc(r)||0,nc(u)&&(v=!!u.leading,c=(p="maxWait"in u)?bt(bc(u.maxWait)||0,r):c,h="trailing"in u?!!u.trailing:h),w.cancel=function(){a!==t&&_u(a),l=0,i=s=o=a=t},w.flush=function(){return a===t?f:_(Ao())},w}var Mo=Ge((function(n,r){return fe(n,1,r)})),Oo=Ge((function(n,r,t){return fe(n,bc(r)||0,t)}));function Co(n,r){if("function"!=typeof n||null!=r&&"function"!=typeof r)throw new $n(e);var t=function(){var e=arguments,u=r?r.apply(this,e):e[0],i=t.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return t.cache=i.set(u,o)||i,o};return t.cache=new(Co.Cache||Kt),t}function So(n){if("function"!=typeof n)throw new $n(e);return function(){var r=arguments;switch(r.length){case 0:return!n.call(this);case 1:return!n.call(this,r[0]);case 2:return!n.call(this,r[0],r[1]);case 3:return!n.call(this,r[0],r[1],r[2])}return!n.apply(this,r)}}Co.Cache=Kt;var Uo=mu((function(n,r){var t=(r=1==r.length&&Bo(r[0])?Dr(r[0],Vr(ii())):Dr(de(r,1),Vr(ii()))).length;return Ge((function(e){for(var u=-1,i=mt(e.length,t);++u<i;)e[u]=r[u].call(this,e[u]);return jr(n,this,e)}))})),No=Ge((function(n,r){var e=ct(r,ui(No));return qu(n,o,t,r,e)})),Lo=Ge((function(n,r){var e=ct(r,ui(Lo));return qu(n,64,t,r,e)})),To=Xu((function(n,r){return qu(n,256,t,t,t,r)}));function Fo(n,r){return n===r||n!=n&&r!=r}var Ho=Zu(ke),Wo=Zu((function(n,r){return n>=r})),Zo=Ee(function(){return arguments}())?Ee:function(n){return rc(n)&&On.call(n,"callee")&&!Pn.call(n,"callee")},Bo=en.isArray,Ko=mr?Vr(mr):function(n){return rc(n)&&je(n)==R};function Po(n){return null!=n&&Xo(n.length)&&!Jo(n)}function Go(n){return rc(n)&&Po(n)}var qo=br||mf,Vo=gr?Vr(gr):function(n){return rc(n)&&je(n)==m};function Yo(n){if(!rc(n))return!1;var r=je(n);return r==g||"[object DOMException]"==r||"string"==typeof n.message&&"string"==typeof n.name&&!uc(n)}function Jo(n){if(!nc(n))return!1;var r=je(n);return r==_||r==w||"[object AsyncFunction]"==r||"[object Proxy]"==r}function Qo(n){return"number"==typeof n&&n==hc(n)}function Xo(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=s}function nc(n){var r=typeof n;return null!=n&&("object"==r||"function"==r)}function rc(n){return null!=n&&"object"==typeof n}var tc=_r?Vr(_r):function(n){return rc(n)&&li(n)==x};function ec(n){return"number"==typeof n||rc(n)&&je(n)==y}function uc(n){if(!rc(n)||je(n)!=j)return!1;var r=Bn(n);if(null===r)return!0;var t=On.call(r,"constructor")&&r.constructor;return"function"==typeof t&&t instanceof t&&Mn.call(t)==Nn}var ic=wr?Vr(wr):function(n){return rc(n)&&je(n)==z},oc=xr?Vr(xr):function(n){return rc(n)&&li(n)==A};function cc(n){return"string"==typeof n||!Bo(n)&&rc(n)&&je(n)==I}function fc(n){return"symbol"==typeof n||rc(n)&&je(n)==$}var ac=yr?Vr(yr):function(n){return rc(n)&&Xo(n.length)&&!!ur[je(n)]},sc=Zu(Se),lc=Zu((function(n,r){return n<=r}));function vc(n){if(!n)return[];if(Po(n))return cc(n)?lt(n):Au(n);if(Vn&&n[Vn])return function(n){for(var r,t=[];!(r=n.next()).done;)t.push(r.value);return t}(n[Vn]());var r=li(n);return(r==x?it:r==A?ft:Fc)(n)}function pc(n){return n?(n=bc(n))===a||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}function hc(n){var r=pc(n),t=r%1;return r==r?t?r-t:r:0}function dc(n){return n?ie(hc(n),0,v):0}function bc(n){if("number"==typeof n)return n;if(fc(n))return l;if(nc(n)){var r="function"==typeof n.valueOf?n.valueOf():n;n=nc(r)?r+"":r}if("string"!=typeof n)return 0===n?n:+n;n=qr(n);var t=hn.test(n);return t||bn.test(n)?fr(n.slice(2),t?2:8):pn.test(n)?l:+n}function mc(n){return Iu(n,Mc(n))}function gc(n){return null==n?"":ou(n)}var _c=Eu((function(n,r){if(wi(r)||Po(r))Iu(r,Dc(r),n);else for(var t in r)On.call(r,t)&&Xt(n,t,r[t])})),wc=Eu((function(n,r){Iu(r,Mc(r),n)})),xc=Eu((function(n,r,t,e){Iu(r,Mc(r),n,e)})),yc=Eu((function(n,r,t,e){Iu(r,Dc(r),n,e)})),jc=Xu(ue),kc=Ge((function(n,r){n=zn(n);var e=-1,u=r.length,i=u>2?r[2]:t;for(i&&bi(r[0],r[1],i)&&(u=1);++e<u;)for(var o=r[e],c=Mc(o),f=-1,a=c.length;++f<a;){var s=c[f],l=n[s];(l===t||Fo(l,Rn[s])&&!On.call(n,s))&&(n[s]=o[s])}return n})),zc=Ge((function(n){return n.push(t,Yu),jr(Cc,t,n)}));function Ac(n,r,e){var u=null==n?t:xe(n,r);return u===t?e:u}function Ic(n,r){return null!=n&&vi(n,r,Ae)}var $c=Lu((function(n,r,t){null!=r&&"function"!=typeof r.toString&&(r=Un.call(r)),n[r]=t}),nf(ef)),Ec=Lu((function(n,r,t){null!=r&&"function"!=typeof r.toString&&(r=Un.call(r)),On.call(n,r)?n[r].push(t):n[r]=[t]}),ii),Rc=Ge($e);function Dc(n){return Po(n)?qt(n):Ce(n)}function Mc(n){return Po(n)?qt(n,!0):function(n){if(!nc(n))return function(n){var r=[];if(null!=n)for(var t in zn(n))r.push(t);return r}(n);var r=wi(n),t=[];for(var e in n)("constructor"!=e||!r&&On.call(n,e))&&t.push(e);return t}(n)}var Oc=Eu((function(n,r,t){Te(n,r,t)})),Cc=Eu((function(n,r,t,e){Te(n,r,t,e)})),Sc=Xu((function(n,r){var t={};if(null==n)return t;var e=!1;r=Dr(r,(function(r){return r=bu(r,n),e||(e=r.length>1),r})),Iu(n,ri(n),t),e&&(t=oe(t,7,Ju));for(var u=r.length;u--;)fu(t,r[u]);return t})),Uc=Xu((function(n,r){return null==n?{}:function(n,r){return We(n,r,(function(r,t){return Ic(n,t)}))}(n,r)}));function Nc(n,r){if(null==n)return{};var t=Dr(ri(n),(function(n){return[n]}));return r=ii(r),We(n,t,(function(n,t){return r(n,t[0])}))}var Lc=Gu(Dc),Tc=Gu(Mc);function Fc(n){return null==n?[]:Yr(n,Dc(n))}var Hc=Ou((function(n,r,t){return r=r.toLowerCase(),n+(t?Wc(r):r)}));function Wc(n){return Yc(gc(n).toLowerCase())}function Zc(n){return(n=gc(n))&&n.replace(gn,rt).replace(Jn,"")}var Bc=Ou((function(n,r,t){return n+(t?"-":"")+r.toLowerCase()})),Kc=Ou((function(n,r,t){return n+(t?" ":"")+r.toLowerCase()})),Pc=Mu("toLowerCase"),Gc=Ou((function(n,r,t){return n+(t?"_":"")+r.toLowerCase()})),qc=Ou((function(n,r,t){return n+(t?" ":"")+Yc(r)})),Vc=Ou((function(n,r,t){return n+(t?" ":"")+r.toUpperCase()})),Yc=Mu("toUpperCase");function Jc(n,r,e){return n=gc(n),(r=e?t:r)===t?function(n){return rr.test(n)}(n)?function(n){return n.match(Xn)||[]}(n):function(n){return n.match(fn)||[]}(n):n.match(r)||[]}var Qc=Ge((function(n,r){try{return jr(n,t,r)}catch(n){return Yo(n)?n:new yn(n)}})),Xc=Xu((function(n,r){return zr(r,(function(r){r=Ui(r),ee(n,r,Eo(n[r],n))})),n}));function nf(n){return function(){return n}}var rf=Uu(),tf=Uu(!0);function ef(n){return n}function uf(n){return Oe("function"==typeof n?n:oe(n,1))}var of=Ge((function(n,r){return function(t){return $e(t,n,r)}})),cf=Ge((function(n,r){return function(t){return $e(n,t,r)}}));function ff(n,r,t){var e=Dc(r),u=we(r,e);null!=t||nc(r)&&(u.length||!e.length)||(t=r,r=n,n=this,u=we(r,Dc(r)));var i=!(nc(t)&&"chain"in t&&!t.chain),o=Jo(n);return zr(u,(function(t){var e=r[t];n[t]=e,o&&(n.prototype[t]=function(){var r=this.__chain__;if(i||r){var t=n(this.__wrapped__),u=t.__actions__=Au(this.__actions__);return u.push({func:e,args:arguments,thisArg:n}),t.__chain__=r,t}return e.apply(n,Mr([this.value()],arguments))})})),n}function af(){}var sf=Fu(Dr),lf=Fu(Ir),vf=Fu(Sr);function pf(n){return mi(n)?Zr(Ui(n)):function(n){return function(r){return xe(r,n)}}(n)}var hf=Wu(),df=Wu(!0);function bf(){return[]}function mf(){return!1}var gf,_f=Tu((function(n,r){return n+r}),0),wf=Ku("ceil"),xf=Tu((function(n,r){return n/r}),1),yf=Ku("floor"),jf=Tu((function(n,r){return n*r}),1),kf=Ku("round"),zf=Tu((function(n,r){return n-r}),0);return Lt.after=function(n,r){if("function"!=typeof r)throw new $n(e);return n=hc(n),function(){if(--n<1)return r.apply(this,arguments)}},Lt.ary=Io,Lt.assign=_c,Lt.assignIn=wc,Lt.assignInWith=xc,Lt.assignWith=yc,Lt.at=jc,Lt.before=$o,Lt.bind=Eo,Lt.bindAll=Xc,Lt.bindKey=Ro,Lt.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Bo(n)?n:[n]},Lt.chain=lo,Lt.chunk=function(n,r,e){r=(e?bi(n,r,e):r===t)?1:bt(hc(r),0);var u=null==n?0:n.length;if(!u||r<1)return[];for(var i=0,o=0,c=en(vr(u/r));i<u;)c[o++]=nu(n,i,i+=r);return c},Lt.compact=function(n){for(var r=-1,t=null==n?0:n.length,e=0,u=[];++r<t;){var i=n[r];i&&(u[e++]=i)}return u},Lt.concat=function(){var n=arguments.length;if(!n)return[];for(var r=en(n-1),t=arguments[0],e=n;e--;)r[e-1]=arguments[e];return Mr(Bo(t)?Au(t):[t],de(r,1))},Lt.cond=function(n){var r=null==n?0:n.length,t=ii();return n=r?Dr(n,(function(n){if("function"!=typeof n[1])throw new $n(e);return[t(n[0]),n[1]]})):[],Ge((function(t){for(var e=-1;++e<r;){var u=n[e];if(jr(u[0],this,t))return jr(u[1],this,t)}}))},Lt.conforms=function(n){return function(n){var r=Dc(n);return function(t){return ce(t,n,r)}}(oe(n,1))},Lt.constant=nf,Lt.countBy=ho,Lt.create=function(n,r){var t=Tt(n);return null==r?t:te(t,r)},Lt.curry=function n(r,e,u){var i=qu(r,8,t,t,t,t,t,e=u?t:e);return i.placeholder=n.placeholder,i},Lt.curryRight=function n(r,e,u){var i=qu(r,16,t,t,t,t,t,e=u?t:e);return i.placeholder=n.placeholder,i},Lt.debounce=Do,Lt.defaults=kc,Lt.defaultsDeep=zc,Lt.defer=Mo,Lt.delay=Oo,Lt.difference=Ti,Lt.differenceBy=Fi,Lt.differenceWith=Hi,Lt.drop=function(n,r,e){var u=null==n?0:n.length;return u?nu(n,(r=e||r===t?1:hc(r))<0?0:r,u):[]},Lt.dropRight=function(n,r,e){var u=null==n?0:n.length;return u?nu(n,0,(r=u-(r=e||r===t?1:hc(r)))<0?0:r):[]},Lt.dropRightWhile=function(n,r){return n&&n.length?su(n,ii(r,3),!0,!0):[]},Lt.dropWhile=function(n,r){return n&&n.length?su(n,ii(r,3),!0):[]},Lt.fill=function(n,r,e,u){var i=null==n?0:n.length;return i?(e&&"number"!=typeof e&&bi(n,r,e)&&(e=0,u=i),function(n,r,e,u){var i=n.length;for((e=hc(e))<0&&(e=-e>i?0:i+e),(u=u===t||u>i?i:hc(u))<0&&(u+=i),u=e>u?0:dc(u);e<u;)n[e++]=r;return n}(n,r,e,u)):[]},Lt.filter=function(n,r){return(Bo(n)?$r:he)(n,ii(r,3))},Lt.flatMap=function(n,r){return de(jo(n,r),1)},Lt.flatMapDeep=function(n,r){return de(jo(n,r),a)},Lt.flatMapDepth=function(n,r,e){return e=e===t?1:hc(e),de(jo(n,r),e)},Lt.flatten=Bi,Lt.flattenDeep=function(n){return null!=n&&n.length?de(n,a):[]},Lt.flattenDepth=function(n,r){return null!=n&&n.length?de(n,r=r===t?1:hc(r)):[]},Lt.flip=function(n){return qu(n,512)},Lt.flow=rf,Lt.flowRight=tf,Lt.fromPairs=function(n){for(var r=-1,t=null==n?0:n.length,e={};++r<t;){var u=n[r];e[u[0]]=u[1]}return e},Lt.functions=function(n){return null==n?[]:we(n,Dc(n))},Lt.functionsIn=function(n){return null==n?[]:we(n,Mc(n))},Lt.groupBy=wo,Lt.initial=function(n){return null!=n&&n.length?nu(n,0,-1):[]},Lt.intersection=Pi,Lt.intersectionBy=Gi,Lt.intersectionWith=qi,Lt.invert=$c,Lt.invertBy=Ec,Lt.invokeMap=xo,Lt.iteratee=uf,Lt.keyBy=yo,Lt.keys=Dc,Lt.keysIn=Mc,Lt.map=jo,Lt.mapKeys=function(n,r){var t={};return r=ii(r,3),ge(n,(function(n,e,u){ee(t,r(n,e,u),n)})),t},Lt.mapValues=function(n,r){var t={};return r=ii(r,3),ge(n,(function(n,e,u){ee(t,e,r(n,e,u))})),t},Lt.matches=function(n){return Ne(oe(n,1))},Lt.matchesProperty=function(n,r){return Le(n,oe(r,1))},Lt.memoize=Co,Lt.merge=Oc,Lt.mergeWith=Cc,Lt.method=of,Lt.methodOf=cf,Lt.mixin=ff,Lt.negate=So,Lt.nthArg=function(n){return n=hc(n),Ge((function(r){return Fe(r,n)}))},Lt.omit=Sc,Lt.omitBy=function(n,r){return Nc(n,So(ii(r)))},Lt.once=function(n){return $o(2,n)},Lt.orderBy=function(n,r,e,u){return null==n?[]:(Bo(r)||(r=null==r?[]:[r]),Bo(e=u?t:e)||(e=null==e?[]:[e]),He(n,r,e))},Lt.over=sf,Lt.overArgs=Uo,Lt.overEvery=lf,Lt.overSome=vf,Lt.partial=No,Lt.partialRight=Lo,Lt.partition=ko,Lt.pick=Uc,Lt.pickBy=Nc,Lt.property=pf,Lt.propertyOf=function(n){return function(r){return null==n?t:xe(n,r)}},Lt.pull=Yi,Lt.pullAll=Ji,Lt.pullAllBy=function(n,r,t){return n&&n.length&&r&&r.length?Ze(n,r,ii(t,2)):n},Lt.pullAllWith=function(n,r,e){return n&&n.length&&r&&r.length?Ze(n,r,t,e):n},Lt.pullAt=Qi,Lt.range=hf,Lt.rangeRight=df,Lt.rearg=To,Lt.reject=function(n,r){return(Bo(n)?$r:he)(n,So(ii(r,3)))},Lt.remove=function(n,r){var t=[];if(!n||!n.length)return t;var e=-1,u=[],i=n.length;for(r=ii(r,3);++e<i;){var o=n[e];r(o,e,n)&&(t.push(o),u.push(e))}return Be(n,u),t},Lt.rest=function(n,r){if("function"!=typeof n)throw new $n(e);return Ge(n,r=r===t?r:hc(r))},Lt.reverse=Xi,Lt.sampleSize=function(n,r,e){return r=(e?bi(n,r,e):r===t)?1:hc(r),(Bo(n)?Yt:Ve)(n,r)},Lt.set=function(n,r,t){return null==n?n:Ye(n,r,t)},Lt.setWith=function(n,r,e,u){return u="function"==typeof u?u:t,null==n?n:Ye(n,r,e,u)},Lt.shuffle=function(n){return(Bo(n)?Jt:Xe)(n)},Lt.slice=function(n,r,e){var u=null==n?0:n.length;return u?(e&&"number"!=typeof e&&bi(n,r,e)?(r=0,e=u):(r=null==r?0:hc(r),e=e===t?u:hc(e)),nu(n,r,e)):[]},Lt.sortBy=zo,Lt.sortedUniq=function(n){return n&&n.length?uu(n):[]},Lt.sortedUniqBy=function(n,r){return n&&n.length?uu(n,ii(r,2)):[]},Lt.split=function(n,r,e){return e&&"number"!=typeof e&&bi(n,r,e)&&(r=e=t),(e=e===t?v:e>>>0)?(n=gc(n))&&("string"==typeof r||null!=r&&!ic(r))&&!(r=ou(r))&&ut(n)?gu(lt(n),0,e):n.split(r,e):[]},Lt.spread=function(n,r){if("function"!=typeof n)throw new $n(e);return r=null==r?0:bt(hc(r),0),Ge((function(t){var e=t[r],u=gu(t,0,r);return e&&Mr(u,e),jr(n,this,u)}))},Lt.tail=function(n){var r=null==n?0:n.length;return r?nu(n,1,r):[]},Lt.take=function(n,r,e){return n&&n.length?nu(n,0,(r=e||r===t?1:hc(r))<0?0:r):[]},Lt.takeRight=function(n,r,e){var u=null==n?0:n.length;return u?nu(n,(r=u-(r=e||r===t?1:hc(r)))<0?0:r,u):[]},Lt.takeRightWhile=function(n,r){return n&&n.length?su(n,ii(r,3),!1,!0):[]},Lt.takeWhile=function(n,r){return n&&n.length?su(n,ii(r,3)):[]},Lt.tap=function(n,r){return r(n),n},Lt.throttle=function(n,r,t){var u=!0,i=!0;if("function"!=typeof n)throw new $n(e);return nc(t)&&(u="leading"in t?!!t.leading:u,i="trailing"in t?!!t.trailing:i),Do(n,r,{leading:u,maxWait:r,trailing:i})},Lt.thru=vo,Lt.toArray=vc,Lt.toPairs=Lc,Lt.toPairsIn=Tc,Lt.toPath=function(n){return Bo(n)?Dr(n,Ui):fc(n)?[n]:Au(Si(gc(n)))},Lt.toPlainObject=mc,Lt.transform=function(n,r,t){var e=Bo(n),u=e||qo(n)||ac(n);if(r=ii(r,4),null==t){var i=n&&n.constructor;t=u?e?new i:[]:nc(n)&&Jo(i)?Tt(Bn(n)):{}}return(u?zr:ge)(n,(function(n,e,u){return r(t,n,e,u)})),t},Lt.unary=function(n){return Io(n,1)},Lt.union=no,Lt.unionBy=ro,Lt.unionWith=to,Lt.uniq=function(n){return n&&n.length?cu(n):[]},Lt.uniqBy=function(n,r){return n&&n.length?cu(n,ii(r,2)):[]},Lt.uniqWith=function(n,r){return r="function"==typeof r?r:t,n&&n.length?cu(n,t,r):[]},Lt.unset=function(n,r){return null==n||fu(n,r)},Lt.unzip=eo,Lt.unzipWith=uo,Lt.update=function(n,r,t){return null==n?n:au(n,r,du(t))},Lt.updateWith=function(n,r,e,u){return u="function"==typeof u?u:t,null==n?n:au(n,r,du(e),u)},Lt.values=Fc,Lt.valuesIn=function(n){return null==n?[]:Yr(n,Mc(n))},Lt.without=io,Lt.words=Jc,Lt.wrap=function(n,r){return No(du(r),n)},Lt.xor=oo,Lt.xorBy=co,Lt.xorWith=fo,Lt.zip=ao,Lt.zipObject=function(n,r){return pu(n||[],r||[],Xt)},Lt.zipObjectDeep=function(n,r){return pu(n||[],r||[],Ye)},Lt.zipWith=so,Lt.entries=Lc,Lt.entriesIn=Tc,Lt.extend=wc,Lt.extendWith=xc,ff(Lt,Lt),Lt.add=_f,Lt.attempt=Qc,Lt.camelCase=Hc,Lt.capitalize=Wc,Lt.ceil=wf,Lt.clamp=function(n,r,e){return e===t&&(e=r,r=t),e!==t&&(e=(e=bc(e))==e?e:0),r!==t&&(r=(r=bc(r))==r?r:0),ie(bc(n),r,e)},Lt.clone=function(n){return oe(n,4)},Lt.cloneDeep=function(n){return oe(n,5)},Lt.cloneDeepWith=function(n,r){return oe(n,5,r="function"==typeof r?r:t)},Lt.cloneWith=function(n,r){return oe(n,4,r="function"==typeof r?r:t)},Lt.conformsTo=function(n,r){return null==r||ce(n,r,Dc(r))},Lt.deburr=Zc,Lt.defaultTo=function(n,r){return null==n||n!=n?r:n},Lt.divide=xf,Lt.endsWith=function(n,r,e){n=gc(n),r=ou(r);var u=n.length,i=e=e===t?u:ie(hc(e),0,u);return(e-=r.length)>=0&&n.slice(e,i)==r},Lt.eq=Fo,Lt.escape=function(n){return(n=gc(n))&&G.test(n)?n.replace(K,tt):n},Lt.escapeRegExp=function(n){return(n=gc(n))&&rn.test(n)?n.replace(nn,"\\$&"):n},Lt.every=function(n,r,e){var u=Bo(n)?Ir:ve;return e&&bi(n,r,e)&&(r=t),u(n,ii(r,3))},Lt.find=bo,Lt.findIndex=Wi,Lt.findKey=function(n,r){return Nr(n,ii(r,3),ge)},Lt.findLast=mo,Lt.findLastIndex=Zi,Lt.findLastKey=function(n,r){return Nr(n,ii(r,3),_e)},Lt.floor=yf,Lt.forEach=go,Lt.forEachRight=_o,Lt.forIn=function(n,r){return null==n?n:be(n,ii(r,3),Mc)},Lt.forInRight=function(n,r){return null==n?n:me(n,ii(r,3),Mc)},Lt.forOwn=function(n,r){return n&&ge(n,ii(r,3))},Lt.forOwnRight=function(n,r){return n&&_e(n,ii(r,3))},Lt.get=Ac,Lt.gt=Ho,Lt.gte=Wo,Lt.has=function(n,r){return null!=n&&vi(n,r,ze)},Lt.hasIn=Ic,Lt.head=Ki,Lt.identity=ef,Lt.includes=function(n,r,t,e){n=Po(n)?n:Fc(n),t=t&&!e?hc(t):0;var u=n.length;return t<0&&(t=bt(u+t,0)),cc(n)?t<=u&&n.indexOf(r,t)>-1:!!u&&Tr(n,r,t)>-1},Lt.indexOf=function(n,r,t){var e=null==n?0:n.length;if(!e)return-1;var u=null==t?0:hc(t);return u<0&&(u=bt(e+u,0)),Tr(n,r,u)},Lt.inRange=function(n,r,e){return r=pc(r),e===t?(e=r,r=0):e=pc(e),function(n,r,t){return n>=mt(r,t)&&n<bt(r,t)}(n=bc(n),r,e)},Lt.invoke=Rc,Lt.isArguments=Zo,Lt.isArray=Bo,Lt.isArrayBuffer=Ko,Lt.isArrayLike=Po,Lt.isArrayLikeObject=Go,Lt.isBoolean=function(n){return!0===n||!1===n||rc(n)&&je(n)==b},Lt.isBuffer=qo,Lt.isDate=Vo,Lt.isElement=function(n){return rc(n)&&1===n.nodeType&&!uc(n)},Lt.isEmpty=function(n){if(null==n)return!0;if(Po(n)&&(Bo(n)||"string"==typeof n||"function"==typeof n.splice||qo(n)||ac(n)||Zo(n)))return!n.length;var r=li(n);if(r==x||r==A)return!n.size;if(wi(n))return!Ce(n).length;for(var t in n)if(On.call(n,t))return!1;return!0},Lt.isEqual=function(n,r){return Re(n,r)},Lt.isEqualWith=function(n,r,e){var u=(e="function"==typeof e?e:t)?e(n,r):t;return u===t?Re(n,r,t,e):!!u},Lt.isError=Yo,Lt.isFinite=function(n){return"number"==typeof n&&Ur(n)},Lt.isFunction=Jo,Lt.isInteger=Qo,Lt.isLength=Xo,Lt.isMap=tc,Lt.isMatch=function(n,r){return n===r||De(n,r,ci(r))},Lt.isMatchWith=function(n,r,e){return e="function"==typeof e?e:t,De(n,r,ci(r),e)},Lt.isNaN=function(n){return ec(n)&&n!=+n},Lt.isNative=function(n){if(_i(n))throw new yn("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Me(n)},Lt.isNil=function(n){return null==n},Lt.isNull=function(n){return null===n},Lt.isNumber=ec,Lt.isObject=nc,Lt.isObjectLike=rc,Lt.isPlainObject=uc,Lt.isRegExp=ic,Lt.isSafeInteger=function(n){return Qo(n)&&n>=-9007199254740991&&n<=s},Lt.isSet=oc,Lt.isString=cc,Lt.isSymbol=fc,Lt.isTypedArray=ac,Lt.isUndefined=function(n){return n===t},Lt.isWeakMap=function(n){return rc(n)&&li(n)==E},Lt.isWeakSet=function(n){return rc(n)&&"[object WeakSet]"==je(n)},Lt.join=function(n,r){return null==n?"":Br.call(n,r)},Lt.kebabCase=Bc,Lt.last=Vi,Lt.lastIndexOf=function(n,r,e){var u=null==n?0:n.length;if(!u)return-1;var i=u;return e!==t&&(i=(i=hc(e))<0?bt(u+i,0):mt(i,u-1)),r==r?function(n,r,t){for(var e=t+1;e--;)if(n[e]===r)return e;return e}(n,r,i):Lr(n,Hr,i,!0)},Lt.lowerCase=Kc,Lt.lowerFirst=Pc,Lt.lt=sc,Lt.lte=lc,Lt.max=function(n){return n&&n.length?pe(n,ef,ke):t},Lt.maxBy=function(n,r){return n&&n.length?pe(n,ii(r,2),ke):t},Lt.mean=function(n){return Wr(n,ef)},Lt.meanBy=function(n,r){return Wr(n,ii(r,2))},Lt.min=function(n){return n&&n.length?pe(n,ef,Se):t},Lt.minBy=function(n,r){return n&&n.length?pe(n,ii(r,2),Se):t},Lt.stubArray=bf,Lt.stubFalse=mf,Lt.stubObject=function(){return{}},Lt.stubString=function(){return""},Lt.stubTrue=function(){return!0},Lt.multiply=jf,Lt.nth=function(n,r){return n&&n.length?Fe(n,hc(r)):t},Lt.noConflict=function(){return lr._===this&&(lr._=Ln),this},Lt.noop=af,Lt.now=Ao,Lt.pad=function(n,r,t){n=gc(n);var e=(r=hc(r))?st(n):0;if(!r||e>=r)return n;var u=(r-e)/2;return Hu(pr(u),t)+n+Hu(vr(u),t)},Lt.padEnd=function(n,r,t){n=gc(n);var e=(r=hc(r))?st(n):0;return r&&e<r?n+Hu(r-e,t):n},Lt.padStart=function(n,r,t){n=gc(n);var e=(r=hc(r))?st(n):0;return r&&e<r?Hu(r-e,t)+n:n},Lt.parseInt=function(n,r,t){return t||null==r?r=0:r&&(r=+r),_t(gc(n).replace(tn,""),r||0)},Lt.random=function(n,r,e){if(e&&"boolean"!=typeof e&&bi(n,r,e)&&(r=e=t),e===t&&("boolean"==typeof r?(e=r,r=t):"boolean"==typeof n&&(e=n,n=t)),n===t&&r===t?(n=0,r=1):(n=pc(n),r===t?(r=n,n=0):r=pc(r)),n>r){var u=n;n=r,r=u}if(e||n%1||r%1){var i=wt();return mt(n+i*(r-n+cr("1e-"+((i+"").length-1))),r)}return Ke(n,r)},Lt.reduce=function(n,r,t){var e=Bo(n)?Or:Kr,u=arguments.length<3;return e(n,ii(r,4),t,u,se)},Lt.reduceRight=function(n,r,t){var e=Bo(n)?Cr:Kr,u=arguments.length<3;return e(n,ii(r,4),t,u,le)},Lt.repeat=function(n,r,e){return r=(e?bi(n,r,e):r===t)?1:hc(r),Pe(gc(n),r)},Lt.replace=function(){var n=arguments,r=gc(n[0]);return n.length<3?r:r.replace(n[1],n[2])},Lt.result=function(n,r,e){var u=-1,i=(r=bu(r,n)).length;for(i||(i=1,n=t);++u<i;){var o=null==n?t:n[Ui(r[u])];o===t&&(u=i,o=e),n=Jo(o)?o.call(n):o}return n},Lt.round=kf,Lt.runInContext=n,Lt.sample=function(n){return(Bo(n)?Vt:qe)(n)},Lt.size=function(n){if(null==n)return 0;if(Po(n))return cc(n)?st(n):n.length;var r=li(n);return r==x||r==A?n.size:Ce(n).length},Lt.snakeCase=Gc,Lt.some=function(n,r,e){var u=Bo(n)?Sr:ru;return e&&bi(n,r,e)&&(r=t),u(n,ii(r,3))},Lt.sortedIndex=function(n,r){return tu(n,r)},Lt.sortedIndexBy=function(n,r,t){return eu(n,r,ii(t,2))},Lt.sortedIndexOf=function(n,r){var t=null==n?0:n.length;if(t){var e=tu(n,r);if(e<t&&Fo(n[e],r))return e}return-1},Lt.sortedLastIndex=function(n,r){return tu(n,r,!0)},Lt.sortedLastIndexBy=function(n,r,t){return eu(n,r,ii(t,2),!0)},Lt.sortedLastIndexOf=function(n,r){if(null!=n&&n.length){var t=tu(n,r,!0)-1;if(Fo(n[t],r))return t}return-1},Lt.startCase=qc,Lt.startsWith=function(n,r,t){return n=gc(n),t=null==t?0:ie(hc(t),0,n.length),r=ou(r),n.slice(t,t+r.length)==r},Lt.subtract=zf,Lt.sum=function(n){return n&&n.length?Pr(n,ef):0},Lt.sumBy=function(n,r){return n&&n.length?Pr(n,ii(r,2)):0},Lt.template=function(n,r,e){var u=Lt.templateSettings;e&&bi(n,r,e)&&(r=t),n=gc(n),r=xc({},r,u,Vu);var i,o,c=xc({},r.imports,u.imports,Vu),f=Dc(c),a=Yr(c,f),s=0,l=r.interpolate||_n,v="__p += '",p=An((r.escape||_n).source+"|"+l.source+"|"+(l===Y?ln:_n).source+"|"+(r.evaluate||_n).source+"|$","g"),h="//# sourceURL="+(On.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++er+"]")+"\n";n.replace(p,(function(r,t,e,u,c,f){return e||(e=u),v+=n.slice(s,f).replace(wn,et),t&&(i=!0,v+="' +\n__e("+t+") +\n'"),c&&(o=!0,v+="';\n"+c+";\n__p += '"),e&&(v+="' +\n((__t = ("+e+")) == null ? '' : __t) +\n'"),s=f+r.length,r})),v+="';\n";var d=On.call(r,"variable")&&r.variable;if(d){if(an.test(d))throw new yn("Invalid `variable` option passed into `_.template`")}else v="with (obj) {\n"+v+"\n}\n";v=(o?v.replace(H,""):v).replace(W,"$1").replace(Z,"$1;"),v="function("+(d||"obj")+") {\n"+(d?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+v+"return __p\n}";var b=Qc((function(){return jn(f,h+"return "+v).apply(t,a)}));if(b.source=v,Yo(b))throw b;return b},Lt.times=function(n,r){if((n=hc(n))<1||n>s)return[];var t=v,e=mt(n,v);r=ii(r),n-=v;for(var u=Gr(e,r);++t<n;)r(t);return u},Lt.toFinite=pc,Lt.toInteger=hc,Lt.toLength=dc,Lt.toLower=function(n){return gc(n).toLowerCase()},Lt.toNumber=bc,Lt.toSafeInteger=function(n){return n?ie(hc(n),-9007199254740991,s):0===n?n:0},Lt.toString=gc,Lt.toUpper=function(n){return gc(n).toUpperCase()},Lt.trim=function(n,r,e){if((n=gc(n))&&(e||r===t))return qr(n);if(!n||!(r=ou(r)))return n;var u=lt(n),i=lt(r);return gu(u,Qr(u,i),Xr(u,i)+1).join("")},Lt.trimEnd=function(n,r,e){if((n=gc(n))&&(e||r===t))return n.slice(0,vt(n)+1);if(!n||!(r=ou(r)))return n;var u=lt(n);return gu(u,0,Xr(u,lt(r))+1).join("")},Lt.trimStart=function(n,r,e){if((n=gc(n))&&(e||r===t))return n.replace(tn,"");if(!n||!(r=ou(r)))return n;var u=lt(n);return gu(u,Qr(u,lt(r))).join("")},Lt.truncate=function(n,r){var e=30,u="...";if(nc(r)){var i="separator"in r?r.separator:i;e="length"in r?hc(r.length):e,u="omission"in r?ou(r.omission):u}var o=(n=gc(n)).length;if(ut(n)){var c=lt(n);o=c.length}if(e>=o)return n;var f=e-st(u);if(f<1)return u;var a=c?gu(c,0,f).join(""):n.slice(0,f);if(i===t)return a+u;if(c&&(f+=a.length-f),ic(i)){if(n.slice(f).search(i)){var s,l=a;for(i.global||(i=An(i.source,gc(vn.exec(i))+"g")),i.lastIndex=0;s=i.exec(l);)var v=s.index;a=a.slice(0,v===t?f:v)}}else if(n.indexOf(ou(i),f)!=f){var p=a.lastIndexOf(i);p>-1&&(a=a.slice(0,p))}return a+u},Lt.unescape=function(n){return(n=gc(n))&&P.test(n)?n.replace(B,pt):n},Lt.uniqueId=function(n){var r=++Cn;return gc(n)+r},Lt.upperCase=Vc,Lt.upperFirst=Yc,Lt.each=go,Lt.eachRight=_o,Lt.first=Ki,ff(Lt,(gf={},ge(Lt,(function(n,r){On.call(Lt.prototype,r)||(gf[r]=n)})),gf),{chain:!1}),Lt.VERSION="4.17.21",zr(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){Lt[n].placeholder=Lt})),zr(["drop","take"],(function(n,r){Wt.prototype[n]=function(e){e=e===t?1:bt(hc(e),0);var u=this.__filtered__&&!r?new Wt(this):this.clone();return u.__filtered__?u.__takeCount__=mt(e,u.__takeCount__):u.__views__.push({size:mt(e,v),type:n+(u.__dir__<0?"Right":"")}),u},Wt.prototype[n+"Right"]=function(r){return this.reverse()[n](r).reverse()}})),zr(["filter","map","takeWhile"],(function(n,r){var t=r+1,e=1==t||3==t;Wt.prototype[n]=function(n){var r=this.clone();return r.__iteratees__.push({iteratee:ii(n,3),type:t}),r.__filtered__=r.__filtered__||e,r}})),zr(["head","last"],(function(n,r){var t="take"+(r?"Right":"");Wt.prototype[n]=function(){return this[t](1).value()[0]}})),zr(["initial","tail"],(function(n,r){var t="drop"+(r?"":"Right");Wt.prototype[n]=function(){return this.__filtered__?new Wt(this):this[t](1)}})),Wt.prototype.compact=function(){return this.filter(ef)},Wt.prototype.find=function(n){return this.filter(n).head()},Wt.prototype.findLast=function(n){return this.reverse().find(n)},Wt.prototype.invokeMap=Ge((function(n,r){return"function"==typeof n?new Wt(this):this.map((function(t){return $e(t,n,r)}))})),Wt.prototype.reject=function(n){return this.filter(So(ii(n)))},Wt.prototype.slice=function(n,r){n=hc(n);var e=this;return e.__filtered__&&(n>0||r<0)?new Wt(e):(n<0?e=e.takeRight(-n):n&&(e=e.drop(n)),r!==t&&(e=(r=hc(r))<0?e.dropRight(-r):e.take(r-n)),e)},Wt.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Wt.prototype.toArray=function(){return this.take(v)},ge(Wt.prototype,(function(n,r){var e=/^(?:filter|find|map|reject)|While$/.test(r),u=/^(?:head|last)$/.test(r),i=Lt[u?"take"+("last"==r?"Right":""):r],o=u||/^find/.test(r);i&&(Lt.prototype[r]=function(){var r=this.__wrapped__,c=u?[1]:arguments,f=r instanceof Wt,a=c[0],s=f||Bo(r),l=function(n){var r=i.apply(Lt,Mr([n],c));return u&&v?r[0]:r};s&&e&&"function"==typeof a&&1!=a.length&&(f=s=!1);var v=this.__chain__,p=!!this.__actions__.length,h=o&&!v,d=f&&!p;if(!o&&s){r=d?r:new Wt(this);var b=n.apply(r,c);return b.__actions__.push({func:vo,args:[l],thisArg:t}),new Ht(b,v)}return h&&d?n.apply(this,c):(b=this.thru(l),h?u?b.value()[0]:b.value():b)})})),zr(["pop","push","shift","sort","splice","unshift"],(function(n){var r=En[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);Lt.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return r.apply(Bo(u)?u:[],n)}return this[t]((function(t){return r.apply(Bo(t)?t:[],n)}))}})),ge(Wt.prototype,(function(n,r){var t=Lt[r];if(t){var e=t.name+"";On.call(Et,e)||(Et[e]=[]),Et[e].push({name:r,func:t})}})),Et[Nu(t,2).name]=[{name:"wrapper",func:t}],Wt.prototype.clone=function(){var n=new Wt(this.__wrapped__);return n.__actions__=Au(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Au(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Au(this.__views__),n},Wt.prototype.reverse=function(){if(this.__filtered__){var n=new Wt(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Wt.prototype.value=function(){var n=this.__wrapped__.value(),r=this.__dir__,t=Bo(n),e=r<0,u=t?n.length:0,i=function(n,r,t){for(var e=-1,u=t.length;++e<u;){var i=t[e],o=i.size;switch(i.type){case"drop":n+=o;break;case"dropRight":r-=o;break;case"take":r=mt(r,n+o);break;case"takeRight":n=bt(n,r-o)}}return{start:n,end:r}}(0,u,this.__views__),o=i.start,c=i.end,f=c-o,a=e?c:o-1,s=this.__iteratees__,l=s.length,v=0,p=mt(f,this.__takeCount__);if(!t||!e&&u==f&&p==f)return lu(n,this.__actions__);var h=[];n:for(;f--&&v<p;){for(var d=-1,b=n[a+=r];++d<l;){var m=s[d],g=m.type,_=(0,m.iteratee)(b);if(2==g)b=_;else if(!_){if(1==g)continue n;break n}}h[v++]=b}return h},Lt.prototype.at=po,Lt.prototype.chain=function(){return lo(this)},Lt.prototype.commit=function(){return new Ht(this.value(),this.__chain__)},Lt.prototype.next=function(){this.__values__===t&&(this.__values__=vc(this.value()));var n=this.__index__>=this.__values__.length;return{done:n,value:n?t:this.__values__[this.__index__++]}},Lt.prototype.plant=function(n){for(var r,e=this;e instanceof Ft;){var u=Li(e);u.__index__=0,u.__values__=t,r?i.__wrapped__=u:r=u;var i=u;e=e.__wrapped__}return i.__wrapped__=n,r},Lt.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Wt){var r=n;return this.__actions__.length&&(r=new Wt(this)),(r=r.reverse()).__actions__.push({func:vo,args:[Xi],thisArg:t}),new Ht(r,this.__chain__)}return this.thru(Xi)},Lt.prototype.toJSON=Lt.prototype.valueOf=Lt.prototype.value=function(){return lu(this.__wrapped__,this.__actions__)},Lt.prototype.first=Lt.prototype.head,Vn&&(Lt.prototype[Vn]=function(){return this}),Lt}();pr?((pr.exports=ht)._=ht,vr._=ht):lr._=ht}).call(f)}));const L=class{constructor(t){n(this,t),this.bcmChange=r(this,"bcmChange",7),this.color="#3b82f6"}handleChange(n){this.bcmChange.emit(n)}componentDidRender(){const{color:n}=this;o.render(i.createElement(U,{color:n,onChange:N.debounce(this.handleChange.bind(this),150)}),this.el)}get el(){return t(this)}};L.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}.bcm-input{display:inline-flex;flex-direction:column;width:100%;max-width:256px;margin-bottom:8px}.bcm-input.full-width{max-width:100%}.bcm-input.hidden{display:none}.bcm-input__container{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:flex;align-items:stretch;flex-direction:row;background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;box-sizing:border-box;cursor:text;padding:0 0 0 4px;position:relative;width:100%}.bcm-input__container.disabled{background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.bcm-input__container.disabled .bcm-input-element{color:var(--bcm-new-ds-color-slate-500)}.bcm-input__container.readonly{background-color:var(--bcm-new-ds-color-slate-50);cursor:default}.bcm-input__container.readonly .bcm-input-element{color:var(--bcm-new-ds-color-slate-600)}.bcm-input__container:not(.disabled):hover .caret-container,.bcm-input__container:not(.disabled).focused .caret-container{opacity:1}.bcm-input__container:not(.disabled):hover .input-clear-button,.bcm-input__container:not(.disabled).focused .input-clear-button{opacity:1}.bcm-input__container:not(.disabled).focused{background-color:var(--bcm-new-ds-color-slate-50)}.bcm-input__container:not(.disabled):hover{border-color:var(--bcm-color-prime-blue-6)}.bcm-input__container.empty .input-clear-button{display:none}.bcm-input__container.invalid,.bcm-input__container.error{border-color:var(--bcm-new-ds-color-red-500)}.bcm-input__container .bcm-input-element{width:100%;color:var(--bcm-new-ds-color-slate-600);flex:1;border:none;background:transparent;box-shadow:unset;padding:0 4px;font-family:"Inter", sans-serif;cursor:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;text-overflow:ellipsis}.bcm-input__container .bcm-input-element::placeholder{font-family:"Inter", sans-serif;color:var(--bcm-new-ds-color-slate-300);user-select:none}.bcm-input__container .bcm-input-element::-webkit-search-decoration,.bcm-input__container .bcm-input-element::-webkit-search-cancel-button,.bcm-input__container .bcm-input-element::-webkit-search-results-button,.bcm-input__container .bcm-input-element::-webkit-search-results-decoration,.bcm-input__container .bcm-input-element::-webkit-calendar-picker-indicator,.bcm-input__container .bcm-input-element::-webkit-inner-spin-button,.bcm-input__container .bcm-input-element::-webkit-outer-spin-button{-webkit-appearance:none}.bcm-input__container .caret-container{width:30px;display:flex;flex-direction:column;justify-content:center;align-items:stretch;border-left:1px solid #D9D9D9;transition:0.2s opacity;user-select:none;box-sizing:border-box}.bcm-input__container .caret-container .bcm-input-caret{display:flex;align-items:center;justify-content:center;color:var(--bcm-color-grey-7);cursor:pointer;flex:1}.bcm-input__container .caret-container .bcm-input-caret bcm-icon{line-height:1}.bcm-input__container .caret-container .bcm-input-caret:hover{color:var(--bcm-color-prime-blue-6)}.bcm-input__container .caret-container .bcm-input-caret:active{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container .bcm-input-caret:last-child{border-top:1px solid #D9D9D9}.bcm-input__container .caret-container.disabled{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container.disabled .bcm-input-caret{cursor:not-allowed}.bcm-input__container .input-suffix-content{display:flex;align-items:center;justify-content:center}.bcm-input__container .input-prefix:not(:empty){padding-left:4px}.bcm-input__container .input-suffix:not(:empty){min-width:24px;padding-right:4px}.bcm-input__container .input-prefix:not(:empty),.bcm-input__container .input-suffix:not(:empty){display:flex;align-items:center;justify-content:center;cursor:default;color:#64748a}.bcm-input__container .input-prefix:not(:empty) .unit-prefix,.bcm-input__container .input-suffix:not(:empty) .unit-prefix{color:#64748a}.bcm-input__container .input-prefix-button:not(:empty),.bcm-input__container .input-suffix-button:not(:empty){cursor:pointer}.bcm-input__container .caret-container,.bcm-input__container .input-clear-button{opacity:0}.bcm-input__container--small{font-size:12px}.bcm-input__container--medium{font-size:14px}.bcm-input__container--large{font-size:16px}.bcm-input__textarea.clearable .bcm-input-element{padding-right:24px}.bcm-input__textarea .input-clear-button{position:absolute;top:4px;right:0}bcm-colorful{display:flex;flex-direction:column;width:256px;padding:8px;background-color:#fff;border-radius:4px}bcm-colorful .react-colorful{width:100%;gap:4px}bcm-colorful .react-colorful__saturation{margin:0 0 4px 0;border-radius:2px;border-bottom:none}bcm-colorful .react-colorful__hue,bcm-colorful .react-colorful__alpha{height:20px;border-radius:2px}bcm-colorful .react-colorful__hue-pointer,bcm-colorful .react-colorful__alpha-pointer{width:15px;height:15px}bcm-colorful .react-colorful__saturation-pointer{width:20px;height:20px}';const T=class{constructor(t){n(this,t),this.bcmOpen=r(this,"bcm-open",7),this._id=a.UID(),this.placement=v.Placement["bottom-start"],this.trigger=v.TriggerType.click,this.targetId="",this.height=void 0,this.maxHeight=void 0,this.minHeight="50px",this.isOpen=!1,this.hideDelay=500,this.moveOverLayContainer=!1,this.isMouseOverLink=!1,window.addEventListener("scroll",(()=>this.calculatePosition()),!0),window.addEventListener("wheel",(()=>this.calculatePosition()),!0),window.addEventListener("resize",(()=>this.calculatePosition()),!0)}target(){const n=document.querySelectorAll(`[id="${this.targetId}"]`);return n.length>0?(n.length>1&&console.warn(`[bcm-linked] - Target id "${this.targetId}" is duplicated`),n[0]):(this.el.remove(),null)}detectClone(){const n=document.querySelectorAll(`[target-id="${this.targetId}"]`);n.length>0&&n.forEach((n=>{n.id!==this._id&&(console.warn(`[bcm-linked] - id="${this._id}" was removed from the dom because id="${this.targetId}" is duplicated.`),n.remove())}))}dismissEvent(){document.dispatchEvent(new CustomEvent("linked-data-dismiss",{detail:{id:this._id}}))}checkDataDismiss(n){a.findEventPathHasAttribute(n,"data-dismiss")&&this.dismissEvent()}hideChildLinked(){this.el.querySelectorAll("[is-linked][linked-is-open]").forEach((n=>{var r;null===(r=document.querySelector(`#${n.getAttribute("is-linked")}[is-open]`))||void 0===r||r.hide(!1)}))}calculatePosition(){const n=this.el;n&&this.target()&&(this.isOpen?l({ref:this.target(),floating:n,placement:this.placement,offset:4,autoHidden:"true"!==n.getAttribute("main-linked"),autoSize:!0,style:{height:this.height,maxHeight:this.maxHeight,minHeight:this.minHeight}}):(n.style.visibility="hidden",n.style.opacity="0"))}init(){const n=this.target();this.trigger===v.TriggerType.hover&&this.listenMouseOver(),n&&(n.setAttribute("is-linked",this.el.id),a.getAncestor(n,"bcm-linked")?this.el.removeAttribute("main-linked"):this.el.setAttribute("main-linked","true"),this.moveOverLayContainer)&&document.querySelector("#bcm-overlay-container").appendChild(this.el)}componentDidLoad(){this.init()}triggerWatch(n){n===v.TriggerType.hover&&this.listenMouseOver()}watchIsOpen(){this.bcmOpen.emit(this.isOpen)}onLinkedDataDismis(){this.hide(!1)}onBcmFloatingIsHide(n){n.detail.id===this._id&&this.hide(!1)}async show(n=!0){n&&await s(50),this.detectClone();const r=this.target();return r?(document.querySelector("#bcm-overlay-container").appendChild(this.el),r.setAttribute("linked-is-open","true"),this.isOpen=!0,this.calculatePosition()):this.hide(!1),this.isOpen}async hide(n=!0){n&&await s(50);const r=this.target();return this.isMouseOverLink=!1,r&&(r.removeAttribute("linked-is-open"),this.hideChildLinked(),this.isOpen=!1),this.isOpen}async toggle(n=!0){return this.isOpen?await this.hide(n):await this.show(n)}clickListener(n){if(!this.target())return;if(this.trigger===v.TriggerType.hover||this.trigger===v.TriggerType.custom)return;const r=a.findEventPath(n,this.target()),t=a.findEventPath(n,this.el),e=a.findEventPathWithNodeName(n,"BCM-LINKED");if(!r&&!t&&!e)return this.hide(),void this.bcmOpen.emit(this.isOpen);this.isOpen?(r&&this.hide(!1),t&&this.checkDataDismiss(n),"true"!==this.el.getAttribute("main-linked")||r||t||e||this.dismissEvent()):r&&this.show(!1)}listenMouseOver(){var n,r;this.el.addEventListener("mouseover",(()=>this.isMouseOverLink=!0)),this.el.addEventListener("mouseleave",(()=>{this.isMouseOverLink=!1,this.handleMouseLeave()})),null===(n=this.target())||void 0===n||n.addEventListener("mouseenter",this.handleMouseEnter.bind(this)),null===(r=this.target())||void 0===r||r.addEventListener("mouseleave",this.handleMouseLeave.bind(this))}handleMouseLeave(){setTimeout((()=>{!this.isMouseOverLink&&this.hide()}),this.hideDelay)}handleMouseEnter(){clearTimeout(this.timeoutId),this.isMouseOverLink=!1,this.show()}render(){return e(u,{class:"tw-invisible tw-absolute tw-left-0 tw-top-0 tw-z-tooltip tw-block tw-overscroll-contain tw-scroll-smooth tw-rounded tw-bg-white tw-opacity-0 tw-shadow tw-transition-opacity tw-duration-100",style:Object.assign(Object.assign({},this.isOpen?{visibility:"visible",opacity:"1"}:{visibility:"hidden",opacity:"0"}),{overflow:"auto"})},e("slot",null))}get el(){return t(this)}static get watchers(){return{trigger:["triggerWatch"],isOpen:["watchIsOpen"]}}};export{L as bcm_colorful,T as bcm_linked}
5
+ import{r as n,c as r,g as t,h as e,H as u}from"./p-e037ee2b.js";import{r as i,a as o}from"./p-3182df7e.js";import{c,a as f}from"./p-e45c1546.js";import"./p-4798d827.js";import"./p-626a65e9.js";import{G as a}from"./p-c5a2a4d3.js";import"./p-cfabc98e.js";import"./p-6b5ed4d8.js";import"./p-bd771c5d.js";import"./p-5ae0a59b.js";import{d as s}from"./p-3c7a0345.js";import{F as l}from"./p-6e5f5f36.js";import{a as v}from"./p-a313fba6.js";import"./p-436364c8.js";import"./p-034bbcdd.js";import"./p-cca60157.js";function p(){return(p=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n}).apply(this,arguments)}function h(n,r){if(null==n)return{};var t,e,u={},i=Object.keys(n);for(e=0;e<i.length;e++)r.indexOf(t=i[e])>=0||(u[t]=n[t]);return u}function d(n){var r=i.useRef(n),t=i.useRef((function(n){r.current&&r.current(n)}));return r.current=n,t.current}var b=function(n,r,t){return void 0===r&&(r=0),void 0===t&&(t=1),n>t?t:n<r?r:n},m=function(n){return"touches"in n},g=function(n){return n&&n.ownerDocument.defaultView||self},_=function(n,r,t){var e=n.getBoundingClientRect(),u=m(r)?function(n,r){for(var t=0;t<n.length;t++)if(n[t].identifier===r)return n[t];return n[0]}(r.touches,t):r;return{left:b((u.pageX-(e.left+g(n).pageXOffset))/e.width),top:b((u.pageY-(e.top+g(n).pageYOffset))/e.height)}},w=function(n){!m(n)&&n.preventDefault()},x=i.memo((function(n){var r=n.onMove,t=n.onKey,e=h(n,["onMove","onKey"]),u=i.useRef(null),o=d(r),c=d(t),f=i.useRef(null),a=i.useRef(!1),s=i.useMemo((function(){var n=function(n){w(n),(m(n)?n.touches.length>0:n.buttons>0)&&u.current?o(_(u.current,n,f.current)):t(!1)},r=function(){return t(!1)};function t(t){var e=a.current,i=g(u.current),o=t?i.addEventListener:i.removeEventListener;o(e?"touchmove":"mousemove",n),o(e?"touchend":"mouseup",r)}return[function(n){var r=n.nativeEvent,e=u.current;if(e&&(w(r),!function(n,r){return r&&!m(n)}(r,a.current)&&e)){if(m(r)){a.current=!0;var i=r.changedTouches||[];i.length&&(f.current=i[0].identifier)}e.focus(),o(_(e,r,f.current)),t(!0)}},function(n){var r=n.which||n.keyCode;r<37||r>40||(n.preventDefault(),c({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}))},t]}),[c,o]),l=s[0],v=s[1],b=s[2];return i.useEffect((function(){return b}),[b]),i.createElement("div",p({},e,{onTouchStart:l,onMouseDown:l,className:"react-colorful__interactive",ref:u,onKeyDown:v,tabIndex:0,role:"slider"}))})),y=function(n){return n.filter(Boolean).join(" ")},j=function(n){var r=n.color,t=n.left,e=n.top,u=void 0===e?.5:e,o=y(["react-colorful__pointer",n.className]);return i.createElement("div",{className:o,style:{top:100*u+"%",left:100*t+"%"}},i.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:r}}))},k=function(n,r,t){return void 0===r&&(r=0),void 0===t&&(t=Math.pow(10,r)),Math.round(t*n)/t},z=function(n){return"#"===n[0]&&(n=n.substring(1)),n.length<6?{r:parseInt(n[0]+n[0],16),g:parseInt(n[1]+n[1],16),b:parseInt(n[2]+n[2],16),a:4===n.length?k(parseInt(n[3]+n[3],16)/255,2):1}:{r:parseInt(n.substring(0,2),16),g:parseInt(n.substring(2,4),16),b:parseInt(n.substring(4,6),16),a:8===n.length?k(parseInt(n.substring(6,8),16)/255,2):1}},A=function(n){var r=function(n){var r=n.s,t=n.v,e=n.a,u=(200-r)*t/100;return{h:k(n.h),s:k(u>0&&u<200?r*t/100/(u<=100?u:200-u)*100:0),l:k(u/2),a:k(e,2)}}(n);return"hsl("+r.h+", "+r.s+"%, "+r.l+"%)"},I=function(n){var r=n.toString(16);return r.length<2?"0"+r:r},$=i.memo((function(n){var r=n.hue,t=n.onChange,e=y(["react-colorful__hue",n.className]);return i.createElement("div",{className:e},i.createElement(x,{onMove:function(n){t({h:360*n.left})},onKey:function(n){t({h:b(r+360*n.left,0,360)})},"aria-label":"Hue","aria-valuenow":k(r),"aria-valuemax":"360","aria-valuemin":"0"},i.createElement(j,{className:"react-colorful__hue-pointer",left:r/360,color:A({h:r,s:100,v:100,a:1})})))})),E=i.memo((function(n){var r=n.hsva,t=n.onChange,e={backgroundColor:A({h:r.h,s:100,v:100,a:1})};return i.createElement("div",{className:"react-colorful__saturation",style:e},i.createElement(x,{onMove:function(n){t({s:100*n.left,v:100-100*n.top})},onKey:function(n){t({s:b(r.s+100*n.left,0,100),v:b(r.v-100*n.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+k(r.s)+"%, Brightness "+k(r.v)+"%"},i.createElement(j,{className:"react-colorful__saturation-pointer",top:1-r.v/100,left:r.s/100,color:A(r)})))})),R=function(n,r){if(n===r)return!0;for(var t in n)if(n[t]!==r[t])return!1;return!0};function D(n,r,t){var e=d(t),u=i.useState((function(){return n.toHsva(r)})),o=u[0],c=u[1],f=i.useRef({color:r,hsva:o});i.useEffect((function(){if(!n.equal(r,f.current.color)){var t=n.toHsva(r);f.current={hsva:t,color:r},c(t)}}),[r,n]),i.useEffect((function(){var r;R(o,f.current.hsva)||n.equal(r=n.fromHsva(o),f.current.color)||(f.current={hsva:o,color:r},e(r))}),[o,n,e]);var a=i.useCallback((function(n){c((function(r){return Object.assign({},r,n)}))}),[]);return[o,a]}var M="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,O=new Map,C=function(n){var r,t=n.className,e=n.colorModel,u=n.color,o=void 0===u?e.defaultColor:u,c=n.onChange,f=h(n,["className","colorModel","color","onChange"]),a=i.useRef(null);r=a,M((function(){var n=r.current?r.current.ownerDocument:document;if(void 0!==n&&!O.has(n)){var t=n.createElement("style");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',O.set(n,t);var e="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0;e&&t.setAttribute("nonce",e),n.head.appendChild(t)}}),[]);var s=D(e,o,c),l=s[0],v=s[1],d=y(["react-colorful",t]);return i.createElement("div",p({},f,{ref:a,className:d}),i.createElement(E,{hsva:l,onChange:v}),i.createElement($,{hue:l.h,onChange:v,className:"react-colorful__last-control"}))},S={defaultColor:"000",toHsva:function(n){return function(n){var r=n.r,t=n.g,e=n.b,u=n.a,i=Math.max(r,t,e),o=i-Math.min(r,t,e),c=o?i===r?(t-e)/o:i===t?2+(e-r)/o:4+(r-t)/o:0;return{h:k(60*(c<0?c+6:c)),s:k(i?o/i*100:0),v:k(i/255*100),a:u}}(z(n))},fromHsva:function(n){return function(n){return function(n){var r=n.r,t=n.g,e=n.b,u=n.a,i=u<1?I(k(255*u)):"";return"#"+I(r)+I(t)+I(e)+i}(function(n){var r=n.h,t=n.s,e=n.v,u=n.a;r=r/360*6,t/=100,e/=100;var i=Math.floor(r),o=e*(1-t),c=e*(1-(r-i)*t),f=e*(1-(1-r+i)*t),a=i%6;return{r:k(255*[e,c,o,o,f,e][a]),g:k(255*[f,e,e,c,o,o][a]),b:k(255*[o,o,f,e,e,c][a]),a:k(u,2)}}(n))}({h:n.h,s:n.s,v:n.v,a:1})},equal:function(n,r){return n.toLowerCase()===r.toLowerCase()||R(z(n),z(r))}},U=function(n){return i.createElement(C,p({},n,{colorModel:S}))},N=c((function(n,r){(function(){var t,e="Expected a function",u="__lodash_hash_undefined__",i="__lodash_placeholder__",o=32,c=128,a=1/0,s=9007199254740991,l=NaN,v=4294967295,p=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",o],["partialRight",64],["rearg",256]],h="[object Arguments]",d="[object Array]",b="[object Boolean]",m="[object Date]",g="[object Error]",_="[object Function]",w="[object GeneratorFunction]",x="[object Map]",y="[object Number]",j="[object Object]",k="[object Promise]",z="[object RegExp]",A="[object Set]",I="[object String]",$="[object Symbol]",E="[object WeakMap]",R="[object ArrayBuffer]",D="[object DataView]",M="[object Float32Array]",O="[object Float64Array]",C="[object Int8Array]",S="[object Int16Array]",U="[object Int32Array]",N="[object Uint8Array]",L="[object Uint8ClampedArray]",T="[object Uint16Array]",F="[object Uint32Array]",H=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,Z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,B=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,P=RegExp(B.source),G=RegExp(K.source),q=/<%-([\s\S]+?)%>/g,V=/<%([\s\S]+?)%>/g,Y=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,X=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nn=/[\\^$.*+?()[\]{}|]/g,rn=RegExp(nn.source),tn=/^\s+/,en=/\s/,un=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,on=/\{\n\/\* \[wrapped with (.+)\] \*/,cn=/,? & /,fn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,an=/[()=,{}\[\]\/\s]/,sn=/\\(\\)?/g,ln=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vn=/\w*$/,pn=/^[-+]0x[0-9a-f]+$/i,hn=/^0b[01]+$/i,dn=/^\[object .+?Constructor\]$/,bn=/^0o[0-7]+$/i,mn=/^(?:0|[1-9]\d*)$/,gn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_n=/($^)/,wn=/['\n\r\u2028\u2029\\]/g,xn="\\ud800-\\udfff",yn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",jn="\\u2700-\\u27bf",kn="a-z\\xdf-\\xf6\\xf8-\\xff",zn="A-Z\\xc0-\\xd6\\xd8-\\xde",An="\\ufe0e\\ufe0f",In="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",$n="["+xn+"]",En="["+In+"]",Rn="["+yn+"]",Dn="\\d+",Mn="["+jn+"]",On="["+kn+"]",Cn="[^"+xn+In+Dn+jn+kn+zn+"]",Sn="\\ud83c[\\udffb-\\udfff]",Un="[^"+xn+"]",Nn="(?:\\ud83c[\\udde6-\\uddff]){2}",Ln="[\\ud800-\\udbff][\\udc00-\\udfff]",Tn="["+zn+"]",Fn="\\u200d",Hn="(?:"+On+"|"+Cn+")",Wn="(?:"+Tn+"|"+Cn+")",Zn="(?:['’](?:d|ll|m|re|s|t|ve))?",Bn="(?:['’](?:D|LL|M|RE|S|T|VE))?",Kn="(?:"+Rn+"|"+Sn+")?",Pn="["+An+"]?",Gn=Pn+Kn+"(?:"+Fn+"(?:"+[Un,Nn,Ln].join("|")+")"+Pn+Kn+")*",qn="(?:"+[Mn,Nn,Ln].join("|")+")"+Gn,Vn="(?:"+[Un+Rn+"?",Rn,Nn,Ln,$n].join("|")+")",Yn=RegExp("['’]","g"),Jn=RegExp(Rn,"g"),Qn=RegExp(Sn+"(?="+Sn+")|"+Vn+Gn,"g"),Xn=RegExp([Tn+"?"+On+"+"+Zn+"(?="+[En,Tn,"$"].join("|")+")",Wn+"+"+Bn+"(?="+[En,Tn+Hn,"$"].join("|")+")",Tn+"?"+Hn+"+"+Zn,Tn+"+"+Bn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Dn,qn].join("|"),"g"),nr=RegExp("["+Fn+xn+yn+An+"]"),rr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tr=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],er=-1,ur={};ur[M]=ur[O]=ur[C]=ur[S]=ur[U]=ur[N]=ur[L]=ur[T]=ur[F]=!0,ur[h]=ur[d]=ur[R]=ur[b]=ur[D]=ur[m]=ur[g]=ur[_]=ur[x]=ur[y]=ur[j]=ur[z]=ur[A]=ur[I]=ur[E]=!1;var ir={};ir[h]=ir[d]=ir[R]=ir[D]=ir[b]=ir[m]=ir[M]=ir[O]=ir[C]=ir[S]=ir[U]=ir[x]=ir[y]=ir[j]=ir[z]=ir[A]=ir[I]=ir[$]=ir[N]=ir[L]=ir[T]=ir[F]=!0,ir[g]=ir[_]=ir[E]=!1;var or={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},cr=parseFloat,fr=parseInt,ar="object"==typeof f&&f&&f.Object===Object&&f,sr="object"==typeof self&&self&&self.Object===Object&&self,lr=ar||sr||Function("return this")(),vr=r&&!r.nodeType&&r,pr=vr&&n&&!n.nodeType&&n,hr=pr&&pr.exports===vr,dr=hr&&ar.process,br=function(){try{return pr&&pr.require&&pr.require("util").types||dr&&dr.binding&&dr.binding("util")}catch(n){}}(),mr=br&&br.isArrayBuffer,gr=br&&br.isDate,_r=br&&br.isMap,wr=br&&br.isRegExp,xr=br&&br.isSet,yr=br&&br.isTypedArray;function jr(n,r,t){switch(t.length){case 0:return n.call(r);case 1:return n.call(r,t[0]);case 2:return n.call(r,t[0],t[1]);case 3:return n.call(r,t[0],t[1],t[2])}return n.apply(r,t)}function kr(n,r,t,e){for(var u=-1,i=null==n?0:n.length;++u<i;){var o=n[u];r(e,o,t(o),n)}return e}function zr(n,r){for(var t=-1,e=null==n?0:n.length;++t<e&&!1!==r(n[t],t,n););return n}function Ar(n,r){for(var t=null==n?0:n.length;t--&&!1!==r(n[t],t,n););return n}function Ir(n,r){for(var t=-1,e=null==n?0:n.length;++t<e;)if(!r(n[t],t,n))return!1;return!0}function $r(n,r){for(var t=-1,e=null==n?0:n.length,u=0,i=[];++t<e;){var o=n[t];r(o,t,n)&&(i[u++]=o)}return i}function Er(n,r){return!(null==n||!n.length)&&Tr(n,r,0)>-1}function Rr(n,r,t){for(var e=-1,u=null==n?0:n.length;++e<u;)if(t(r,n[e]))return!0;return!1}function Dr(n,r){for(var t=-1,e=null==n?0:n.length,u=Array(e);++t<e;)u[t]=r(n[t],t,n);return u}function Mr(n,r){for(var t=-1,e=r.length,u=n.length;++t<e;)n[u+t]=r[t];return n}function Or(n,r,t,e){var u=-1,i=null==n?0:n.length;for(e&&i&&(t=n[++u]);++u<i;)t=r(t,n[u],u,n);return t}function Cr(n,r,t,e){var u=null==n?0:n.length;for(e&&u&&(t=n[--u]);u--;)t=r(t,n[u],u,n);return t}function Sr(n,r){for(var t=-1,e=null==n?0:n.length;++t<e;)if(r(n[t],t,n))return!0;return!1}var Ur=Zr("length");function Nr(n,r,t){var e;return t(n,(function(n,t,u){if(r(n,t,u))return e=t,!1})),e}function Lr(n,r,t,e){for(var u=n.length,i=t+(e?1:-1);e?i--:++i<u;)if(r(n[i],i,n))return i;return-1}function Tr(n,r,t){return r==r?function(n,r,t){for(var e=t-1,u=n.length;++e<u;)if(n[e]===r)return e;return-1}(n,r,t):Lr(n,Hr,t)}function Fr(n,r,t,e){for(var u=t-1,i=n.length;++u<i;)if(e(n[u],r))return u;return-1}function Hr(n){return n!=n}function Wr(n,r){var t=null==n?0:n.length;return t?Pr(n,r)/t:l}function Zr(n){return function(r){return null==r?t:r[n]}}function Br(n){return function(r){return null==n?t:n[r]}}function Kr(n,r,t,e,u){return u(n,(function(n,u,i){t=e?(e=!1,n):r(t,n,u,i)})),t}function Pr(n,r){for(var e,u=-1,i=n.length;++u<i;){var o=r(n[u]);o!==t&&(e=e===t?o:e+o)}return e}function Gr(n,r){for(var t=-1,e=Array(n);++t<n;)e[t]=r(t);return e}function qr(n){return n?n.slice(0,vt(n)+1).replace(tn,""):n}function Vr(n){return function(r){return n(r)}}function Yr(n,r){return Dr(r,(function(r){return n[r]}))}function Jr(n,r){return n.has(r)}function Qr(n,r){for(var t=-1,e=n.length;++t<e&&Tr(r,n[t],0)>-1;);return t}function Xr(n,r){for(var t=n.length;t--&&Tr(r,n[t],0)>-1;);return t}function nt(n,r){for(var t=n.length,e=0;t--;)n[t]===r&&++e;return e}var rt=Br({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tt=Br({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function et(n){return"\\"+or[n]}function ut(n){return nr.test(n)}function it(n){var r=-1,t=Array(n.size);return n.forEach((function(n,e){t[++r]=[e,n]})),t}function ot(n,r){return function(t){return n(r(t))}}function ct(n,r){for(var t=-1,e=n.length,u=0,o=[];++t<e;){var c=n[t];c!==r&&c!==i||(n[t]=i,o[u++]=t)}return o}function ft(n){var r=-1,t=Array(n.size);return n.forEach((function(n){t[++r]=n})),t}function at(n){var r=-1,t=Array(n.size);return n.forEach((function(n){t[++r]=[n,n]})),t}function st(n){return ut(n)?function(n){for(var r=Qn.lastIndex=0;Qn.test(n);)++r;return r}(n):Ur(n)}function lt(n){return ut(n)?function(n){return n.match(Qn)||[]}(n):function(n){return n.split("")}(n)}function vt(n){for(var r=n.length;r--&&en.test(n.charAt(r)););return r}var pt=Br({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),ht=function n(r){var f,en=(r=null==r?lr:ht.defaults(lr.Object(),r,ht.pick(lr,tr))).Array,xn=r.Date,yn=r.Error,jn=r.Function,kn=r.Math,zn=r.Object,An=r.RegExp,In=r.String,$n=r.TypeError,En=en.prototype,Rn=zn.prototype,Dn=r["__core-js_shared__"],Mn=jn.prototype.toString,On=Rn.hasOwnProperty,Cn=0,Sn=(f=/[^.]+$/.exec(Dn&&Dn.keys&&Dn.keys.IE_PROTO||""))?"Symbol(src)_1."+f:"",Un=Rn.toString,Nn=Mn.call(zn),Ln=lr._,Tn=An("^"+Mn.call(On).replace(nn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fn=hr?r.Buffer:t,Hn=r.Symbol,Wn=r.Uint8Array,Zn=Fn?Fn.allocUnsafe:t,Bn=ot(zn.getPrototypeOf,zn),Kn=zn.create,Pn=Rn.propertyIsEnumerable,Gn=En.splice,qn=Hn?Hn.isConcatSpreadable:t,Vn=Hn?Hn.iterator:t,Qn=Hn?Hn.toStringTag:t,nr=function(){try{var n=fi(zn,"defineProperty");return n({},"",{}),n}catch(n){}}(),or=r.clearTimeout!==lr.clearTimeout&&r.clearTimeout,ar=xn&&xn.now!==lr.Date.now&&xn.now,sr=r.setTimeout!==lr.setTimeout&&r.setTimeout,vr=kn.ceil,pr=kn.floor,dr=zn.getOwnPropertySymbols,br=Fn?Fn.isBuffer:t,Ur=r.isFinite,Br=En.join,dt=ot(zn.keys,zn),bt=kn.max,mt=kn.min,gt=xn.now,_t=r.parseInt,wt=kn.random,xt=En.reverse,yt=fi(r,"DataView"),jt=fi(r,"Map"),kt=fi(r,"Promise"),zt=fi(r,"Set"),At=fi(r,"WeakMap"),It=fi(zn,"create"),$t=At&&new At,Et={},Rt=Ni(yt),Dt=Ni(jt),Mt=Ni(kt),Ot=Ni(zt),Ct=Ni(At),St=Hn?Hn.prototype:t,Ut=St?St.valueOf:t,Nt=St?St.toString:t;function Lt(n){if(rc(n)&&!Bo(n)&&!(n instanceof Wt)){if(n instanceof Ht)return n;if(On.call(n,"__wrapped__"))return Li(n)}return new Ht(n)}var Tt=function(){function n(){}return function(r){if(!nc(r))return{};if(Kn)return Kn(r);n.prototype=r;var e=new n;return n.prototype=t,e}}();function Ft(){}function Ht(n,r){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=t}function Wt(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function Zt(n){var r=-1,t=null==n?0:n.length;for(this.clear();++r<t;){var e=n[r];this.set(e[0],e[1])}}function Bt(n){var r=-1,t=null==n?0:n.length;for(this.clear();++r<t;){var e=n[r];this.set(e[0],e[1])}}function Kt(n){var r=-1,t=null==n?0:n.length;for(this.clear();++r<t;){var e=n[r];this.set(e[0],e[1])}}function Pt(n){var r=-1,t=null==n?0:n.length;for(this.__data__=new Kt;++r<t;)this.add(n[r])}function Gt(n){var r=this.__data__=new Bt(n);this.size=r.size}function qt(n,r){var t=Bo(n),e=!t&&Zo(n),u=!t&&!e&&qo(n),i=!t&&!e&&!u&&ac(n),o=t||e||u||i,c=o?Gr(n.length,In):[],f=c.length;for(var a in n)!r&&!On.call(n,a)||o&&("length"==a||u&&("offset"==a||"parent"==a)||i&&("buffer"==a||"byteLength"==a||"byteOffset"==a)||di(a,f))||c.push(a);return c}function Vt(n){var r=n.length;return r?n[Ke(0,r-1)]:t}function Yt(n,r){return Mi(Au(n),ie(r,0,n.length))}function Jt(n){return Mi(Au(n))}function Qt(n,r,e){(e!==t&&!Fo(n[r],e)||e===t&&!(r in n))&&ee(n,r,e)}function Xt(n,r,e){var u=n[r];On.call(n,r)&&Fo(u,e)&&(e!==t||r in n)||ee(n,r,e)}function ne(n,r){for(var t=n.length;t--;)if(Fo(n[t][0],r))return t;return-1}function re(n,r,t,e){return se(n,(function(n,u,i){r(e,n,t(n),i)})),e}function te(n,r){return n&&Iu(r,Dc(r),n)}function ee(n,r,t){"__proto__"==r&&nr?nr(n,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[r]=t}function ue(n,r){for(var e=-1,u=r.length,i=en(u),o=null==n;++e<u;)i[e]=o?t:Ac(n,r[e]);return i}function ie(n,r,e){return n==n&&(e!==t&&(n=n<=e?n:e),r!==t&&(n=n>=r?n:r)),n}function oe(n,r,e,u,i,o){var c,f=1&r,a=2&r,s=4&r;if(e&&(c=i?e(n,u,i,o):e(n)),c!==t)return c;if(!nc(n))return n;var l=Bo(n);if(l){if(c=function(n){var r=n.length,t=new n.constructor(r);return r&&"string"==typeof n[0]&&On.call(n,"index")&&(t.index=n.index,t.input=n.input),t}(n),!f)return Au(n,c)}else{var v=li(n),p=v==_||v==w;if(qo(n))return wu(n,f);if(v==j||v==h||p&&!i){if(c=a||p?{}:pi(n),!f)return a?function(n,r){return Iu(n,si(n),r)}(n,function(n,r){return n&&Iu(r,Mc(r),n)}(c,n)):function(n,r){return Iu(n,ai(n),r)}(n,te(c,n))}else{if(!ir[v])return i?n:{};c=function(n,r,t){var e=n.constructor;switch(r){case R:return xu(n);case b:case m:return new e(+n);case D:return function(n,r){var t=r?xu(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}(n,t);case M:case O:case C:case S:case U:case N:case L:case T:case F:return yu(n,t);case x:return new e;case y:case I:return new e(n);case z:return function(n){var r=new n.constructor(n.source,vn.exec(n));return r.lastIndex=n.lastIndex,r}(n);case A:return new e;case $:return Ut?zn(Ut.call(n)):{}}}(n,v,f)}}o||(o=new Gt);var d=o.get(n);if(d)return d;o.set(n,c),oc(n)?n.forEach((function(t){c.add(oe(t,r,e,t,n,o))})):tc(n)&&n.forEach((function(t,u){c.set(u,oe(t,r,e,u,n,o))}));var g=l?t:(s?a?ri:ni:a?Mc:Dc)(n);return zr(g||n,(function(t,u){g&&(t=n[u=t]),Xt(c,u,oe(t,r,e,u,n,o))})),c}function ce(n,r,e){var u=e.length;if(null==n)return!u;for(n=zn(n);u--;){var i=e[u],o=n[i];if(o===t&&!(i in n)||!(0,r[i])(o))return!1}return!0}function fe(n,r,u){if("function"!=typeof n)throw new $n(e);return $i((function(){n.apply(t,u)}),r)}function ae(n,r,t,e){var u=-1,i=Er,o=!0,c=n.length,f=[],a=r.length;if(!c)return f;t&&(r=Dr(r,Vr(t))),e?(i=Rr,o=!1):r.length>=200&&(i=Jr,o=!1,r=new Pt(r));n:for(;++u<c;){var s=n[u],l=null==t?s:t(s);if(s=e||0!==s?s:0,o&&l==l){for(var v=a;v--;)if(r[v]===l)continue n;f.push(s)}else i(r,l,e)||f.push(s)}return f}Lt.templateSettings={escape:q,evaluate:V,interpolate:Y,variable:"",imports:{_:Lt}},(Lt.prototype=Ft.prototype).constructor=Lt,(Ht.prototype=Tt(Ft.prototype)).constructor=Ht,(Wt.prototype=Tt(Ft.prototype)).constructor=Wt,Zt.prototype.clear=function(){this.__data__=It?It(null):{},this.size=0},Zt.prototype.delete=function(n){var r=this.has(n)&&delete this.__data__[n];return this.size-=r?1:0,r},Zt.prototype.get=function(n){var r=this.__data__;if(It){var e=r[n];return e===u?t:e}return On.call(r,n)?r[n]:t},Zt.prototype.has=function(n){var r=this.__data__;return It?r[n]!==t:On.call(r,n)},Zt.prototype.set=function(n,r){var e=this.__data__;return this.size+=this.has(n)?0:1,e[n]=It&&r===t?u:r,this},Bt.prototype.clear=function(){this.__data__=[],this.size=0},Bt.prototype.delete=function(n){var r=this.__data__,t=ne(r,n);return!(t<0||(t==r.length-1?r.pop():Gn.call(r,t,1),--this.size,0))},Bt.prototype.get=function(n){var r=this.__data__,e=ne(r,n);return e<0?t:r[e][1]},Bt.prototype.has=function(n){return ne(this.__data__,n)>-1},Bt.prototype.set=function(n,r){var t=this.__data__,e=ne(t,n);return e<0?(++this.size,t.push([n,r])):t[e][1]=r,this},Kt.prototype.clear=function(){this.size=0,this.__data__={hash:new Zt,map:new(jt||Bt),string:new Zt}},Kt.prototype.delete=function(n){var r=oi(this,n).delete(n);return this.size-=r?1:0,r},Kt.prototype.get=function(n){return oi(this,n).get(n)},Kt.prototype.has=function(n){return oi(this,n).has(n)},Kt.prototype.set=function(n,r){var t=oi(this,n),e=t.size;return t.set(n,r),this.size+=t.size==e?0:1,this},Pt.prototype.add=Pt.prototype.push=function(n){return this.__data__.set(n,u),this},Pt.prototype.has=function(n){return this.__data__.has(n)},Gt.prototype.clear=function(){this.__data__=new Bt,this.size=0},Gt.prototype.delete=function(n){var r=this.__data__,t=r.delete(n);return this.size=r.size,t},Gt.prototype.get=function(n){return this.__data__.get(n)},Gt.prototype.has=function(n){return this.__data__.has(n)},Gt.prototype.set=function(n,r){var t=this.__data__;if(t instanceof Bt){var e=t.__data__;if(!jt||e.length<199)return e.push([n,r]),this.size=++t.size,this;t=this.__data__=new Kt(e)}return t.set(n,r),this.size=t.size,this};var se=Ru(ge),le=Ru(_e,!0);function ve(n,r){var t=!0;return se(n,(function(n,e,u){return t=!!r(n,e,u)})),t}function pe(n,r,e){for(var u=-1,i=n.length;++u<i;){var o=n[u],c=r(o);if(null!=c&&(f===t?c==c&&!fc(c):e(c,f)))var f=c,a=o}return a}function he(n,r){var t=[];return se(n,(function(n,e,u){r(n,e,u)&&t.push(n)})),t}function de(n,r,t,e,u){var i=-1,o=n.length;for(t||(t=hi),u||(u=[]);++i<o;){var c=n[i];r>0&&t(c)?r>1?de(c,r-1,t,e,u):Mr(u,c):e||(u[u.length]=c)}return u}var be=Du(),me=Du(!0);function ge(n,r){return n&&be(n,r,Dc)}function _e(n,r){return n&&me(n,r,Dc)}function we(n,r){return $r(r,(function(r){return Jo(n[r])}))}function xe(n,r){for(var e=0,u=(r=bu(r,n)).length;null!=n&&e<u;)n=n[Ui(r[e++])];return e&&e==u?n:t}function ye(n,r,t){var e=r(n);return Bo(n)?e:Mr(e,t(n))}function je(n){return null==n?n===t?"[object Undefined]":"[object Null]":Qn&&Qn in zn(n)?function(n){var r=On.call(n,Qn),e=n[Qn];try{n[Qn]=t;var u=!0}catch(n){}var i=Un.call(n);return u&&(r?n[Qn]=e:delete n[Qn]),i}(n):function(n){return Un.call(n)}(n)}function ke(n,r){return n>r}function ze(n,r){return null!=n&&On.call(n,r)}function Ae(n,r){return null!=n&&r in zn(n)}function Ie(n,r,e){for(var u=e?Rr:Er,i=n[0].length,o=n.length,c=o,f=en(o),a=1/0,s=[];c--;){var l=n[c];c&&r&&(l=Dr(l,Vr(r))),a=mt(l.length,a),f[c]=!e&&(r||i>=120&&l.length>=120)?new Pt(c&&l):t}l=n[0];var v=-1,p=f[0];n:for(;++v<i&&s.length<a;){var h=l[v],d=r?r(h):h;if(h=e||0!==h?h:0,!(p?Jr(p,d):u(s,d,e))){for(c=o;--c;){var b=f[c];if(!(b?Jr(b,d):u(n[c],d,e)))continue n}p&&p.push(d),s.push(h)}}return s}function $e(n,r,e){var u=null==(n=ki(n,r=bu(r,n)))?n:n[Ui(Vi(r))];return null==u?t:jr(u,n,e)}function Ee(n){return rc(n)&&je(n)==h}function Re(n,r,e,u,i){return n===r||(null==n||null==r||!rc(n)&&!rc(r)?n!=n&&r!=r:function(n,r,e,u,i,o){var c=Bo(n),f=Bo(r),a=c?d:li(n),s=f?d:li(r),l=(a=a==h?j:a)==j,v=(s=s==h?j:s)==j,p=a==s;if(p&&qo(n)){if(!qo(r))return!1;c=!0,l=!1}if(p&&!l)return o||(o=new Gt),c||ac(n)?Qu(n,r,e,u,i,o):function(n,r,t,e,u,i,o){switch(t){case D:if(n.byteLength!=r.byteLength||n.byteOffset!=r.byteOffset)return!1;n=n.buffer,r=r.buffer;case R:return!(n.byteLength!=r.byteLength||!i(new Wn(n),new Wn(r)));case b:case m:case y:return Fo(+n,+r);case g:return n.name==r.name&&n.message==r.message;case z:case I:return n==r+"";case x:var c=it;case A:if(c||(c=ft),n.size!=r.size&&!(1&e))return!1;var f=o.get(n);if(f)return f==r;e|=2,o.set(n,r);var a=Qu(c(n),c(r),e,u,i,o);return o.delete(n),a;case $:if(Ut)return Ut.call(n)==Ut.call(r)}return!1}(n,r,a,e,u,i,o);if(!(1&e)){var _=l&&On.call(n,"__wrapped__"),w=v&&On.call(r,"__wrapped__");if(_||w){var k=_?n.value():n,E=w?r.value():r;return o||(o=new Gt),i(k,E,e,u,o)}}return!!p&&(o||(o=new Gt),function(n,r,e,u,i,o){var c=1&e,f=ni(n),a=f.length;if(a!=ni(r).length&&!c)return!1;for(var s=a;s--;){var l=f[s];if(!(c?l in r:On.call(r,l)))return!1}var v=o.get(n),p=o.get(r);if(v&&p)return v==r&&p==n;var h=!0;o.set(n,r),o.set(r,n);for(var d=c;++s<a;){var b=n[l=f[s]],m=r[l];if(u)var g=c?u(m,b,l,r,n,o):u(b,m,l,n,r,o);if(!(g===t?b===m||i(b,m,e,u,o):g)){h=!1;break}d||(d="constructor"==l)}if(h&&!d){var _=n.constructor,w=r.constructor;_==w||!("constructor"in n)||!("constructor"in r)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(h=!1)}return o.delete(n),o.delete(r),h}(n,r,e,u,i,o))}(n,r,e,u,Re,i))}function De(n,r,e,u){var i=e.length,o=i,c=!u;if(null==n)return!o;for(n=zn(n);i--;){var f=e[i];if(c&&f[2]?f[1]!==n[f[0]]:!(f[0]in n))return!1}for(;++i<o;){var a=(f=e[i])[0],s=n[a],l=f[1];if(c&&f[2]){if(s===t&&!(a in n))return!1}else{var v=new Gt;if(u)var p=u(s,l,a,n,r,v);if(!(p===t?Re(l,s,3,u,v):p))return!1}}return!0}function Me(n){return!(!nc(n)||(r=n,Sn&&Sn in r))&&(Jo(n)?Tn:dn).test(Ni(n));var r}function Oe(n){return"function"==typeof n?n:null==n?ef:"object"==typeof n?Bo(n)?Le(n[0],n[1]):Ne(n):pf(n)}function Ce(n){if(!wi(n))return dt(n);var r=[];for(var t in zn(n))On.call(n,t)&&"constructor"!=t&&r.push(t);return r}function Se(n,r){return n<r}function Ue(n,r){var t=-1,e=Po(n)?en(n.length):[];return se(n,(function(n,u,i){e[++t]=r(n,u,i)})),e}function Ne(n){var r=ci(n);return 1==r.length&&r[0][2]?yi(r[0][0],r[0][1]):function(t){return t===n||De(t,n,r)}}function Le(n,r){return mi(n)&&xi(r)?yi(Ui(n),r):function(e){var u=Ac(e,n);return u===t&&u===r?Ic(e,n):Re(r,u,3)}}function Te(n,r,e,u,i){n!==r&&be(r,(function(o,c){if(i||(i=new Gt),nc(o))!function(n,r,e,u,i,o,c){var f=Ai(n,e),a=Ai(r,e),s=c.get(a);if(s)Qt(n,e,s);else{var l=o?o(f,a,e+"",n,r,c):t,v=l===t;if(v){var p=Bo(a),h=!p&&qo(a),d=!p&&!h&&ac(a);l=a,p||h||d?Bo(f)?l=f:Go(f)?l=Au(f):h?(v=!1,l=wu(a,!0)):d?(v=!1,l=yu(a,!0)):l=[]:uc(a)||Zo(a)?(l=f,Zo(f)?l=mc(f):nc(f)&&!Jo(f)||(l=pi(a))):v=!1}v&&(c.set(a,l),i(l,a,u,o,c),c.delete(a)),Qt(n,e,l)}}(n,r,c,e,Te,u,i);else{var f=u?u(Ai(n,c),o,c+"",n,r,i):t;f===t&&(f=o),Qt(n,c,f)}}),Mc)}function Fe(n,r){var e=n.length;if(e)return di(r+=r<0?e:0,e)?n[r]:t}function He(n,r,t){r=r.length?Dr(r,(function(n){return Bo(n)?function(r){return xe(r,1===n.length?n[0]:n)}:n})):[ef];var e=-1;r=Dr(r,Vr(ii()));var u=Ue(n,(function(n){var t=Dr(r,(function(r){return r(n)}));return{criteria:t,index:++e,value:n}}));return function(n){var r=n.length;for(n.sort((function(n,r){return function(n,r,t){for(var e=-1,u=n.criteria,i=r.criteria,o=u.length,c=t.length;++e<o;){var f=ju(u[e],i[e]);if(f)return e>=c?f:f*("desc"==t[e]?-1:1)}return n.index-r.index}(n,r,t)}));r--;)n[r]=n[r].value;return n}(u)}function We(n,r,t){for(var e=-1,u=r.length,i={};++e<u;){var o=r[e],c=xe(n,o);t(c,o)&&Ye(i,bu(o,n),c)}return i}function Ze(n,r,t,e){var u=e?Fr:Tr,i=-1,o=r.length,c=n;for(n===r&&(r=Au(r)),t&&(c=Dr(n,Vr(t)));++i<o;)for(var f=0,a=r[i],s=t?t(a):a;(f=u(c,s,f,e))>-1;)c!==n&&Gn.call(c,f,1),Gn.call(n,f,1);return n}function Be(n,r){for(var t=n?r.length:0,e=t-1;t--;){var u=r[t];if(t==e||u!==i){var i=u;di(u)?Gn.call(n,u,1):fu(n,u)}}return n}function Ke(n,r){return n+pr(wt()*(r-n+1))}function Pe(n,r){var t="";if(!n||r<1||r>s)return t;do{r%2&&(t+=n),(r=pr(r/2))&&(n+=n)}while(r);return t}function Ge(n,r){return Ei(ji(n,r,ef),n+"")}function qe(n){return Vt(Fc(n))}function Ve(n,r){var t=Fc(n);return Mi(t,ie(r,0,t.length))}function Ye(n,r,e,u){if(!nc(n))return n;for(var i=-1,o=(r=bu(r,n)).length,c=o-1,f=n;null!=f&&++i<o;){var a=Ui(r[i]),s=e;if("__proto__"===a||"constructor"===a||"prototype"===a)return n;if(i!=c){var l=f[a];(s=u?u(l,a,f):t)===t&&(s=nc(l)?l:di(r[i+1])?[]:{})}Xt(f,a,s),f=f[a]}return n}var Je=$t?function(n,r){return $t.set(n,r),n}:ef,Qe=nr?function(n,r){return nr(n,"toString",{configurable:!0,enumerable:!1,value:nf(r),writable:!0})}:ef;function Xe(n){return Mi(Fc(n))}function nu(n,r,t){var e=-1,u=n.length;r<0&&(r=-r>u?0:u+r),(t=t>u?u:t)<0&&(t+=u),u=r>t?0:t-r>>>0,r>>>=0;for(var i=en(u);++e<u;)i[e]=n[e+r];return i}function ru(n,r){var t;return se(n,(function(n,e,u){return!(t=r(n,e,u))})),!!t}function tu(n,r,t){var e=0,u=null==n?e:n.length;if("number"==typeof r&&r==r&&u<=2147483647){for(;e<u;){var i=e+u>>>1,o=n[i];null!==o&&!fc(o)&&(t?o<=r:o<r)?e=i+1:u=i}return u}return eu(n,r,ef,t)}function eu(n,r,e,u){var i=0,o=null==n?0:n.length;if(0===o)return 0;for(var c=(r=e(r))!=r,f=null===r,a=fc(r),s=r===t;i<o;){var l=pr((i+o)/2),v=e(n[l]),p=v!==t,h=null===v,d=v==v,b=fc(v);if(c)var m=u||d;else m=s?d&&(u||p):f?d&&p&&(u||!h):a?d&&p&&!h&&(u||!b):!h&&!b&&(u?v<=r:v<r);m?i=l+1:o=l}return mt(o,4294967294)}function uu(n,r){for(var t=-1,e=n.length,u=0,i=[];++t<e;){var o=n[t],c=r?r(o):o;if(!t||!Fo(c,f)){var f=c;i[u++]=0===o?0:o}}return i}function iu(n){return"number"==typeof n?n:fc(n)?l:+n}function ou(n){if("string"==typeof n)return n;if(Bo(n))return Dr(n,ou)+"";if(fc(n))return Nt?Nt.call(n):"";var r=n+"";return"0"==r&&1/n==-1/0?"-0":r}function cu(n,r,t){var e=-1,u=Er,i=n.length,o=!0,c=[],f=c;if(t)o=!1,u=Rr;else if(i>=200){var a=r?null:Pu(n);if(a)return ft(a);o=!1,u=Jr,f=new Pt}else f=r?[]:c;n:for(;++e<i;){var s=n[e],l=r?r(s):s;if(s=t||0!==s?s:0,o&&l==l){for(var v=f.length;v--;)if(f[v]===l)continue n;r&&f.push(l),c.push(s)}else u(f,l,t)||(f!==c&&f.push(l),c.push(s))}return c}function fu(n,r){return null==(n=ki(n,r=bu(r,n)))||delete n[Ui(Vi(r))]}function au(n,r,t,e){return Ye(n,r,t(xe(n,r)),e)}function su(n,r,t,e){for(var u=n.length,i=e?u:-1;(e?i--:++i<u)&&r(n[i],i,n););return t?nu(n,e?0:i,e?i+1:u):nu(n,e?i+1:0,e?u:i)}function lu(n,r){var t=n;return t instanceof Wt&&(t=t.value()),Or(r,(function(n,r){return r.func.apply(r.thisArg,Mr([n],r.args))}),t)}function vu(n,r,t){var e=n.length;if(e<2)return e?cu(n[0]):[];for(var u=-1,i=en(e);++u<e;)for(var o=n[u],c=-1;++c<e;)c!=u&&(i[u]=ae(i[u]||o,n[c],r,t));return cu(de(i,1),r,t)}function pu(n,r,e){for(var u=-1,i=n.length,o=r.length,c={};++u<i;)e(c,n[u],u<o?r[u]:t);return c}function hu(n){return Go(n)?n:[]}function du(n){return"function"==typeof n?n:ef}function bu(n,r){return Bo(n)?n:mi(n,r)?[n]:Si(gc(n))}var mu=Ge;function gu(n,r,e){var u=n.length;return e=e===t?u:e,!r&&e>=u?n:nu(n,r,e)}var _u=or||function(n){return lr.clearTimeout(n)};function wu(n,r){if(r)return n.slice();var t=n.length,e=Zn?Zn(t):new n.constructor(t);return n.copy(e),e}function xu(n){var r=new n.constructor(n.byteLength);return new Wn(r).set(new Wn(n)),r}function yu(n,r){var t=r?xu(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}function ju(n,r){if(n!==r){var e=n!==t,u=null===n,i=n==n,o=fc(n),c=r!==t,f=null===r,a=r==r,s=fc(r);if(!f&&!s&&!o&&n>r||o&&c&&a&&!f&&!s||u&&c&&a||!e&&a||!i)return 1;if(!u&&!o&&!s&&n<r||s&&e&&i&&!u&&!o||f&&e&&i||!c&&i||!a)return-1}return 0}function ku(n,r,t,e){for(var u=-1,i=n.length,o=t.length,c=-1,f=r.length,a=bt(i-o,0),s=en(f+a),l=!e;++c<f;)s[c]=r[c];for(;++u<o;)(l||u<i)&&(s[t[u]]=n[u]);for(;a--;)s[c++]=n[u++];return s}function zu(n,r,t,e){for(var u=-1,i=n.length,o=-1,c=t.length,f=-1,a=r.length,s=bt(i-c,0),l=en(s+a),v=!e;++u<s;)l[u]=n[u];for(var p=u;++f<a;)l[p+f]=r[f];for(;++o<c;)(v||u<i)&&(l[p+t[o]]=n[u++]);return l}function Au(n,r){var t=-1,e=n.length;for(r||(r=en(e));++t<e;)r[t]=n[t];return r}function Iu(n,r,e,u){var i=!e;e||(e={});for(var o=-1,c=r.length;++o<c;){var f=r[o],a=u?u(e[f],n[f],f,e,n):t;a===t&&(a=n[f]),i?ee(e,f,a):Xt(e,f,a)}return e}function $u(n,r){return function(t,e){var u=Bo(t)?kr:re,i=r?r():{};return u(t,n,ii(e,2),i)}}function Eu(n){return Ge((function(r,e){var u=-1,i=e.length,o=i>1?e[i-1]:t,c=i>2?e[2]:t;for(o=n.length>3&&"function"==typeof o?(i--,o):t,c&&bi(e[0],e[1],c)&&(o=i<3?t:o,i=1),r=zn(r);++u<i;){var f=e[u];f&&n(r,f,u,o)}return r}))}function Ru(n,r){return function(t,e){if(null==t)return t;if(!Po(t))return n(t,e);for(var u=t.length,i=r?u:-1,o=zn(t);(r?i--:++i<u)&&!1!==e(o[i],i,o););return t}}function Du(n){return function(r,t,e){for(var u=-1,i=zn(r),o=e(r),c=o.length;c--;){var f=o[n?c:++u];if(!1===t(i[f],f,i))break}return r}}function Mu(n){return function(r){var e=ut(r=gc(r))?lt(r):t,u=e?e[0]:r.charAt(0),i=e?gu(e,1).join(""):r.slice(1);return u[n]()+i}}function Ou(n){return function(r){return Or(Jc(Zc(r).replace(Yn,"")),n,"")}}function Cu(n){return function(){var r=arguments;switch(r.length){case 0:return new n;case 1:return new n(r[0]);case 2:return new n(r[0],r[1]);case 3:return new n(r[0],r[1],r[2]);case 4:return new n(r[0],r[1],r[2],r[3]);case 5:return new n(r[0],r[1],r[2],r[3],r[4]);case 6:return new n(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new n(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var t=Tt(n.prototype),e=n.apply(t,r);return nc(e)?e:t}}function Su(n){return function(r,e,u){var i=zn(r);if(!Po(r)){var o=ii(e,3);r=Dc(r),e=function(n){return o(i[n],n,i)}}var c=n(r,e,u);return c>-1?i[o?r[c]:c]:t}}function Uu(n){return Xu((function(r){var u=r.length,i=u,o=Ht.prototype.thru;for(n&&r.reverse();i--;){var c=r[i];if("function"!=typeof c)throw new $n(e);if(o&&!f&&"wrapper"==ei(c))var f=new Ht([],!0)}for(i=f?i:u;++i<u;){var a=ei(c=r[i]),s="wrapper"==a?ti(c):t;f=s&&gi(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?f[ei(s[0])].apply(f,s[3]):1==c.length&&gi(c)?f[a]():f.thru(c)}return function(){var n=arguments,t=n[0];if(f&&1==n.length&&Bo(t))return f.plant(t).value();for(var e=0,i=u?r[e].apply(this,n):t;++e<u;)i=r[e].call(this,i);return i}}))}function Nu(n,r,e,u,i,o,f,a,s,l){var v=r&c,p=1&r,h=2&r,d=24&r,b=512&r,m=h?t:Cu(n);return function t(){for(var c=arguments.length,g=en(c),_=c;_--;)g[_]=arguments[_];if(d)var w=ui(t),x=nt(g,w);if(u&&(g=ku(g,u,i,d)),o&&(g=zu(g,o,f,d)),c-=x,d&&c<l){var y=ct(g,w);return Bu(n,r,Nu,t.placeholder,e,g,y,a,s,l-c)}var j=p?e:this,k=h?j[n]:n;return c=g.length,a?g=zi(g,a):b&&c>1&&g.reverse(),v&&s<c&&(g.length=s),this&&this!==lr&&this instanceof t&&(k=m||Cu(k)),k.apply(j,g)}}function Lu(n,r){return function(t,e){return function(n,r,t,e){return ge(n,(function(n,u,i){r(e,t(n),u,i)})),e}(t,n,r(e),{})}}function Tu(n,r){return function(e,u){var i;if(e===t&&u===t)return r;if(e!==t&&(i=e),u!==t){if(i===t)return u;"string"==typeof e||"string"==typeof u?(e=ou(e),u=ou(u)):(e=iu(e),u=iu(u)),i=n(e,u)}return i}}function Fu(n){return Xu((function(r){return r=Dr(r,Vr(ii())),Ge((function(t){var e=this;return n(r,(function(n){return jr(n,e,t)}))}))}))}function Hu(n,r){var e=(r=r===t?" ":ou(r)).length;if(e<2)return e?Pe(r,n):r;var u=Pe(r,vr(n/st(r)));return ut(r)?gu(lt(u),0,n).join(""):u.slice(0,n)}function Wu(n){return function(r,e,u){return u&&"number"!=typeof u&&bi(r,e,u)&&(e=u=t),r=pc(r),e===t?(e=r,r=0):e=pc(e),function(n,r,t,e){for(var u=-1,i=bt(vr((r-n)/(t||1)),0),o=en(i);i--;)o[e?i:++u]=n,n+=t;return o}(r,e,u=u===t?r<e?1:-1:pc(u),n)}}function Zu(n){return function(r,t){return"string"==typeof r&&"string"==typeof t||(r=bc(r),t=bc(t)),n(r,t)}}function Bu(n,r,e,u,i,c,f,a,s,l){var v=8&r;r|=v?o:64,4&(r&=~(v?64:o))||(r&=-4);var p=[n,r,i,v?c:t,v?f:t,v?t:c,v?t:f,a,s,l],h=e.apply(t,p);return gi(n)&&Ii(h,p),h.placeholder=u,Ri(h,n,r)}function Ku(n){var r=kn[n];return function(n,t){if(n=bc(n),(t=null==t?0:mt(hc(t),292))&&Ur(n)){var e=(gc(n)+"e").split("e");return+((e=(gc(r(e[0]+"e"+(+e[1]+t)))+"e").split("e"))[0]+"e"+(+e[1]-t))}return r(n)}}var Pu=zt&&1/ft(new zt([,-0]))[1]==a?function(n){return new zt(n)}:af;function Gu(n){return function(r){var t=li(r);return t==x?it(r):t==A?at(r):function(n,r){return Dr(r,(function(r){return[r,n[r]]}))}(r,n(r))}}function qu(n,r,u,f,a,s,l,v){var p=2&r;if(!p&&"function"!=typeof n)throw new $n(e);var h=f?f.length:0;if(h||(r&=-97,f=a=t),l=l===t?l:bt(hc(l),0),v=v===t?v:hc(v),h-=a?a.length:0,64&r){var d=f,b=a;f=a=t}var m=p?t:ti(n),g=[n,r,u,f,a,d,b,s,l,v];if(m&&function(n,r){var t=n[1],e=r[1],u=t|e;if(!(u<131||(e==c&&8==t||e==c&&256==t&&n[7].length<=r[8]||384==e&&r[7].length<=r[8]&&8==t)))return n;1&e&&(n[2]=r[2],u|=1&t?0:4);var o=r[3];if(o){var f=n[3];n[3]=f?ku(f,o,r[4]):o,n[4]=f?ct(n[3],i):r[4]}(o=r[5])&&(n[5]=(f=n[5])?zu(f,o,r[6]):o,n[6]=f?ct(n[5],i):r[6]),(o=r[7])&&(n[7]=o),e&c&&(n[8]=null==n[8]?r[8]:mt(n[8],r[8])),null==n[9]&&(n[9]=r[9]),n[0]=r[0],n[1]=u}(g,m),n=g[0],r=g[1],u=g[2],f=g[3],a=g[4],!(v=g[9]=g[9]===t?p?0:n.length:bt(g[9]-h,0))&&24&r&&(r&=-25),r&&1!=r)_=8==r||16==r?function(n,r,e){var u=Cu(n);return function i(){for(var o=arguments.length,c=en(o),f=o,a=ui(i);f--;)c[f]=arguments[f];var s=o<3&&c[0]!==a&&c[o-1]!==a?[]:ct(c,a);return(o-=s.length)<e?Bu(n,r,Nu,i.placeholder,t,c,s,t,t,e-o):jr(this&&this!==lr&&this instanceof i?u:n,this,c)}}(n,r,v):r!=o&&33!=r||a.length?Nu.apply(t,g):function(n,r,t,e){var u=1&r,i=Cu(n);return function r(){for(var o=-1,c=arguments.length,f=-1,a=e.length,s=en(a+c),l=this&&this!==lr&&this instanceof r?i:n;++f<a;)s[f]=e[f];for(;c--;)s[f++]=arguments[++o];return jr(l,u?t:this,s)}}(n,r,u,f);else var _=function(n,r,t){var e=1&r,u=Cu(n);return function r(){return(this&&this!==lr&&this instanceof r?u:n).apply(e?t:this,arguments)}}(n,r,u);return Ri((m?Je:Ii)(_,g),n,r)}function Vu(n,r,e,u){return n===t||Fo(n,Rn[e])&&!On.call(u,e)?r:n}function Yu(n,r,e,u,i,o){return nc(n)&&nc(r)&&(o.set(r,n),Te(n,r,t,Yu,o),o.delete(r)),n}function Ju(n){return uc(n)?t:n}function Qu(n,r,e,u,i,o){var c=1&e,f=n.length,a=r.length;if(f!=a&&!(c&&a>f))return!1;var s=o.get(n),l=o.get(r);if(s&&l)return s==r&&l==n;var v=-1,p=!0,h=2&e?new Pt:t;for(o.set(n,r),o.set(r,n);++v<f;){var d=n[v],b=r[v];if(u)var m=c?u(b,d,v,r,n,o):u(d,b,v,n,r,o);if(m!==t){if(m)continue;p=!1;break}if(h){if(!Sr(r,(function(n,r){if(!Jr(h,r)&&(d===n||i(d,n,e,u,o)))return h.push(r)}))){p=!1;break}}else if(d!==b&&!i(d,b,e,u,o)){p=!1;break}}return o.delete(n),o.delete(r),p}function Xu(n){return Ei(ji(n,t,Bi),n+"")}function ni(n){return ye(n,Dc,ai)}function ri(n){return ye(n,Mc,si)}var ti=$t?function(n){return $t.get(n)}:af;function ei(n){for(var r=n.name+"",t=Et[r],e=On.call(Et,r)?t.length:0;e--;){var u=t[e],i=u.func;if(null==i||i==n)return u.name}return r}function ui(n){return(On.call(Lt,"placeholder")?Lt:n).placeholder}function ii(){var n=Lt.iteratee||uf;return n=n===uf?Oe:n,arguments.length?n(arguments[0],arguments[1]):n}function oi(n,r){var t,e,u=n.__data__;return("string"==(e=typeof(t=r))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t)?u["string"==typeof r?"string":"hash"]:u.map}function ci(n){for(var r=Dc(n),t=r.length;t--;){var e=r[t],u=n[e];r[t]=[e,u,xi(u)]}return r}function fi(n,r){var e=function(n,r){return null==n?t:n[r]}(n,r);return Me(e)?e:t}var ai=dr?function(n){return null==n?[]:(n=zn(n),$r(dr(n),(function(r){return Pn.call(n,r)})))}:bf,si=dr?function(n){for(var r=[];n;)Mr(r,ai(n)),n=Bn(n);return r}:bf,li=je;function vi(n,r,t){for(var e=-1,u=(r=bu(r,n)).length,i=!1;++e<u;){var o=Ui(r[e]);if(!(i=null!=n&&t(n,o)))break;n=n[o]}return i||++e!=u?i:!!(u=null==n?0:n.length)&&Xo(u)&&di(o,u)&&(Bo(n)||Zo(n))}function pi(n){return"function"!=typeof n.constructor||wi(n)?{}:Tt(Bn(n))}function hi(n){return Bo(n)||Zo(n)||!!(qn&&n&&n[qn])}function di(n,r){var t=typeof n;return!!(r=null==r?s:r)&&("number"==t||"symbol"!=t&&mn.test(n))&&n>-1&&n%1==0&&n<r}function bi(n,r,t){if(!nc(t))return!1;var e=typeof r;return!!("number"==e?Po(t)&&di(r,t.length):"string"==e&&r in t)&&Fo(t[r],n)}function mi(n,r){if(Bo(n))return!1;var t=typeof n;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=n&&!fc(n))||Q.test(n)||!J.test(n)||null!=r&&n in zn(r)}function gi(n){var r=ei(n),t=Lt[r];if("function"!=typeof t||!(r in Wt.prototype))return!1;if(n===t)return!0;var e=ti(t);return!!e&&n===e[0]}(yt&&li(new yt(new ArrayBuffer(1)))!=D||jt&&li(new jt)!=x||kt&&li(kt.resolve())!=k||zt&&li(new zt)!=A||At&&li(new At)!=E)&&(li=function(n){var r=je(n),e=r==j?n.constructor:t,u=e?Ni(e):"";if(u)switch(u){case Rt:return D;case Dt:return x;case Mt:return k;case Ot:return A;case Ct:return E}return r});var _i=Dn?Jo:mf;function wi(n){var r=n&&n.constructor;return n===("function"==typeof r&&r.prototype||Rn)}function xi(n){return n==n&&!nc(n)}function yi(n,r){return function(e){return null!=e&&e[n]===r&&(r!==t||n in zn(e))}}function ji(n,r,e){return r=bt(r===t?n.length-1:r,0),function(){for(var t=arguments,u=-1,i=bt(t.length-r,0),o=en(i);++u<i;)o[u]=t[r+u];u=-1;for(var c=en(r+1);++u<r;)c[u]=t[u];return c[r]=e(o),jr(n,this,c)}}function ki(n,r){return r.length<2?n:xe(n,nu(r,0,-1))}function zi(n,r){for(var e=n.length,u=mt(r.length,e),i=Au(n);u--;){var o=r[u];n[u]=di(o,e)?i[o]:t}return n}function Ai(n,r){if(("constructor"!==r||"function"!=typeof n[r])&&"__proto__"!=r)return n[r]}var Ii=Di(Je),$i=sr||function(n,r){return lr.setTimeout(n,r)},Ei=Di(Qe);function Ri(n,r,t){var e=r+"";return Ei(n,function(n,r){var t=r.length;if(!t)return n;var e=t-1;return r[e]=(t>1?"& ":"")+r[e],r=r.join(t>2?", ":" "),n.replace(un,"{\n/* [wrapped with "+r+"] */\n")}(e,function(n,r){return zr(p,(function(t){var e="_."+t[0];r&t[1]&&!Er(n,e)&&n.push(e)})),n.sort()}(function(n){var r=n.match(on);return r?r[1].split(cn):[]}(e),t)))}function Di(n){var r=0,e=0;return function(){var u=gt(),i=16-(u-e);if(e=u,i>0){if(++r>=800)return arguments[0]}else r=0;return n.apply(t,arguments)}}function Mi(n,r){var e=-1,u=n.length,i=u-1;for(r=r===t?u:r;++e<r;){var o=Ke(e,i),c=n[o];n[o]=n[e],n[e]=c}return n.length=r,n}var Oi,Ci,Si=(Oi=Co((function(n){var r=[];return 46===n.charCodeAt(0)&&r.push(""),n.replace(X,(function(n,t,e,u){r.push(e?u.replace(sn,"$1"):t||n)})),r}),(function(n){return 500===Ci.size&&Ci.clear(),n})),Ci=Oi.cache,Oi);function Ui(n){if("string"==typeof n||fc(n))return n;var r=n+"";return"0"==r&&1/n==-1/0?"-0":r}function Ni(n){if(null!=n){try{return Mn.call(n)}catch(n){}try{return n+""}catch(n){}}return""}function Li(n){if(n instanceof Wt)return n.clone();var r=new Ht(n.__wrapped__,n.__chain__);return r.__actions__=Au(n.__actions__),r.__index__=n.__index__,r.__values__=n.__values__,r}var Ti=Ge((function(n,r){return Go(n)?ae(n,de(r,1,Go,!0)):[]})),Fi=Ge((function(n,r){var e=Vi(r);return Go(e)&&(e=t),Go(n)?ae(n,de(r,1,Go,!0),ii(e,2)):[]})),Hi=Ge((function(n,r){var e=Vi(r);return Go(e)&&(e=t),Go(n)?ae(n,de(r,1,Go,!0),t,e):[]}));function Wi(n,r,t){var e=null==n?0:n.length;if(!e)return-1;var u=null==t?0:hc(t);return u<0&&(u=bt(e+u,0)),Lr(n,ii(r,3),u)}function Zi(n,r,e){var u=null==n?0:n.length;if(!u)return-1;var i=u-1;return e!==t&&(i=hc(e),i=e<0?bt(u+i,0):mt(i,u-1)),Lr(n,ii(r,3),i,!0)}function Bi(n){return null!=n&&n.length?de(n,1):[]}function Ki(n){return n&&n.length?n[0]:t}var Pi=Ge((function(n){var r=Dr(n,hu);return r.length&&r[0]===n[0]?Ie(r):[]})),Gi=Ge((function(n){var r=Vi(n),e=Dr(n,hu);return r===Vi(e)?r=t:e.pop(),e.length&&e[0]===n[0]?Ie(e,ii(r,2)):[]})),qi=Ge((function(n){var r=Vi(n),e=Dr(n,hu);return(r="function"==typeof r?r:t)&&e.pop(),e.length&&e[0]===n[0]?Ie(e,t,r):[]}));function Vi(n){var r=null==n?0:n.length;return r?n[r-1]:t}var Yi=Ge(Ji);function Ji(n,r){return n&&n.length&&r&&r.length?Ze(n,r):n}var Qi=Xu((function(n,r){var t=null==n?0:n.length,e=ue(n,r);return Be(n,Dr(r,(function(n){return di(n,t)?+n:n})).sort(ju)),e}));function Xi(n){return null==n?n:xt.call(n)}var no=Ge((function(n){return cu(de(n,1,Go,!0))})),ro=Ge((function(n){var r=Vi(n);return Go(r)&&(r=t),cu(de(n,1,Go,!0),ii(r,2))})),to=Ge((function(n){var r=Vi(n);return r="function"==typeof r?r:t,cu(de(n,1,Go,!0),t,r)}));function eo(n){if(!n||!n.length)return[];var r=0;return n=$r(n,(function(n){if(Go(n))return r=bt(n.length,r),!0})),Gr(r,(function(r){return Dr(n,Zr(r))}))}function uo(n,r){if(!n||!n.length)return[];var e=eo(n);return null==r?e:Dr(e,(function(n){return jr(r,t,n)}))}var io=Ge((function(n,r){return Go(n)?ae(n,r):[]})),oo=Ge((function(n){return vu($r(n,Go))})),co=Ge((function(n){var r=Vi(n);return Go(r)&&(r=t),vu($r(n,Go),ii(r,2))})),fo=Ge((function(n){var r=Vi(n);return r="function"==typeof r?r:t,vu($r(n,Go),t,r)})),ao=Ge(eo),so=Ge((function(n){var r=n.length,e=r>1?n[r-1]:t;return e="function"==typeof e?(n.pop(),e):t,uo(n,e)}));function lo(n){var r=Lt(n);return r.__chain__=!0,r}function vo(n,r){return r(n)}var po=Xu((function(n){var r=n.length,e=r?n[0]:0,u=this.__wrapped__,i=function(r){return ue(r,n)};return!(r>1||this.__actions__.length)&&u instanceof Wt&&di(e)?((u=u.slice(e,+e+(r?1:0))).__actions__.push({func:vo,args:[i],thisArg:t}),new Ht(u,this.__chain__).thru((function(n){return r&&!n.length&&n.push(t),n}))):this.thru(i)})),ho=$u((function(n,r,t){On.call(n,t)?++n[t]:ee(n,t,1)})),bo=Su(Wi),mo=Su(Zi);function go(n,r){return(Bo(n)?zr:se)(n,ii(r,3))}function _o(n,r){return(Bo(n)?Ar:le)(n,ii(r,3))}var wo=$u((function(n,r,t){On.call(n,t)?n[t].push(r):ee(n,t,[r])})),xo=Ge((function(n,r,t){var e=-1,u="function"==typeof r,i=Po(n)?en(n.length):[];return se(n,(function(n){i[++e]=u?jr(r,n,t):$e(n,r,t)})),i})),yo=$u((function(n,r,t){ee(n,t,r)}));function jo(n,r){return(Bo(n)?Dr:Ue)(n,ii(r,3))}var ko=$u((function(n,r,t){n[t?0:1].push(r)}),(function(){return[[],[]]})),zo=Ge((function(n,r){if(null==n)return[];var t=r.length;return t>1&&bi(n,r[0],r[1])?r=[]:t>2&&bi(r[0],r[1],r[2])&&(r=[r[0]]),He(n,de(r,1),[])})),Ao=ar||function(){return lr.Date.now()};function Io(n,r,e){return r=e?t:r,qu(n,c,t,t,t,t,r=n&&null==r?n.length:r)}function $o(n,r){var u;if("function"!=typeof r)throw new $n(e);return n=hc(n),function(){return--n>0&&(u=r.apply(this,arguments)),n<=1&&(r=t),u}}var Eo=Ge((function(n,r,t){var e=1;if(t.length){var u=ct(t,ui(Eo));e|=o}return qu(n,e,r,t,u)})),Ro=Ge((function(n,r,t){var e=3;if(t.length){var u=ct(t,ui(Ro));e|=o}return qu(r,e,n,t,u)}));function Do(n,r,u){var i,o,c,f,a,s,l=0,v=!1,p=!1,h=!0;if("function"!=typeof n)throw new $n(e);function d(r){var e=i,u=o;return i=o=t,l=r,f=n.apply(u,e)}function b(n){return l=n,a=$i(g,r),v?d(n):f}function m(n){var e=n-s;return s===t||e>=r||e<0||p&&n-l>=c}function g(){var n=Ao();if(m(n))return _(n);a=$i(g,function(n){var t=r-(n-s);return p?mt(t,c-(n-l)):t}(n))}function _(n){return a=t,h&&i?d(n):(i=o=t,f)}function w(){var n=Ao(),e=m(n);if(i=arguments,o=this,s=n,e){if(a===t)return b(s);if(p)return _u(a),a=$i(g,r),d(s)}return a===t&&(a=$i(g,r)),f}return r=bc(r)||0,nc(u)&&(v=!!u.leading,c=(p="maxWait"in u)?bt(bc(u.maxWait)||0,r):c,h="trailing"in u?!!u.trailing:h),w.cancel=function(){a!==t&&_u(a),l=0,i=s=o=a=t},w.flush=function(){return a===t?f:_(Ao())},w}var Mo=Ge((function(n,r){return fe(n,1,r)})),Oo=Ge((function(n,r,t){return fe(n,bc(r)||0,t)}));function Co(n,r){if("function"!=typeof n||null!=r&&"function"!=typeof r)throw new $n(e);var t=function(){var e=arguments,u=r?r.apply(this,e):e[0],i=t.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return t.cache=i.set(u,o)||i,o};return t.cache=new(Co.Cache||Kt),t}function So(n){if("function"!=typeof n)throw new $n(e);return function(){var r=arguments;switch(r.length){case 0:return!n.call(this);case 1:return!n.call(this,r[0]);case 2:return!n.call(this,r[0],r[1]);case 3:return!n.call(this,r[0],r[1],r[2])}return!n.apply(this,r)}}Co.Cache=Kt;var Uo=mu((function(n,r){var t=(r=1==r.length&&Bo(r[0])?Dr(r[0],Vr(ii())):Dr(de(r,1),Vr(ii()))).length;return Ge((function(e){for(var u=-1,i=mt(e.length,t);++u<i;)e[u]=r[u].call(this,e[u]);return jr(n,this,e)}))})),No=Ge((function(n,r){var e=ct(r,ui(No));return qu(n,o,t,r,e)})),Lo=Ge((function(n,r){var e=ct(r,ui(Lo));return qu(n,64,t,r,e)})),To=Xu((function(n,r){return qu(n,256,t,t,t,r)}));function Fo(n,r){return n===r||n!=n&&r!=r}var Ho=Zu(ke),Wo=Zu((function(n,r){return n>=r})),Zo=Ee(function(){return arguments}())?Ee:function(n){return rc(n)&&On.call(n,"callee")&&!Pn.call(n,"callee")},Bo=en.isArray,Ko=mr?Vr(mr):function(n){return rc(n)&&je(n)==R};function Po(n){return null!=n&&Xo(n.length)&&!Jo(n)}function Go(n){return rc(n)&&Po(n)}var qo=br||mf,Vo=gr?Vr(gr):function(n){return rc(n)&&je(n)==m};function Yo(n){if(!rc(n))return!1;var r=je(n);return r==g||"[object DOMException]"==r||"string"==typeof n.message&&"string"==typeof n.name&&!uc(n)}function Jo(n){if(!nc(n))return!1;var r=je(n);return r==_||r==w||"[object AsyncFunction]"==r||"[object Proxy]"==r}function Qo(n){return"number"==typeof n&&n==hc(n)}function Xo(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=s}function nc(n){var r=typeof n;return null!=n&&("object"==r||"function"==r)}function rc(n){return null!=n&&"object"==typeof n}var tc=_r?Vr(_r):function(n){return rc(n)&&li(n)==x};function ec(n){return"number"==typeof n||rc(n)&&je(n)==y}function uc(n){if(!rc(n)||je(n)!=j)return!1;var r=Bn(n);if(null===r)return!0;var t=On.call(r,"constructor")&&r.constructor;return"function"==typeof t&&t instanceof t&&Mn.call(t)==Nn}var ic=wr?Vr(wr):function(n){return rc(n)&&je(n)==z},oc=xr?Vr(xr):function(n){return rc(n)&&li(n)==A};function cc(n){return"string"==typeof n||!Bo(n)&&rc(n)&&je(n)==I}function fc(n){return"symbol"==typeof n||rc(n)&&je(n)==$}var ac=yr?Vr(yr):function(n){return rc(n)&&Xo(n.length)&&!!ur[je(n)]},sc=Zu(Se),lc=Zu((function(n,r){return n<=r}));function vc(n){if(!n)return[];if(Po(n))return cc(n)?lt(n):Au(n);if(Vn&&n[Vn])return function(n){for(var r,t=[];!(r=n.next()).done;)t.push(r.value);return t}(n[Vn]());var r=li(n);return(r==x?it:r==A?ft:Fc)(n)}function pc(n){return n?(n=bc(n))===a||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}function hc(n){var r=pc(n),t=r%1;return r==r?t?r-t:r:0}function dc(n){return n?ie(hc(n),0,v):0}function bc(n){if("number"==typeof n)return n;if(fc(n))return l;if(nc(n)){var r="function"==typeof n.valueOf?n.valueOf():n;n=nc(r)?r+"":r}if("string"!=typeof n)return 0===n?n:+n;n=qr(n);var t=hn.test(n);return t||bn.test(n)?fr(n.slice(2),t?2:8):pn.test(n)?l:+n}function mc(n){return Iu(n,Mc(n))}function gc(n){return null==n?"":ou(n)}var _c=Eu((function(n,r){if(wi(r)||Po(r))Iu(r,Dc(r),n);else for(var t in r)On.call(r,t)&&Xt(n,t,r[t])})),wc=Eu((function(n,r){Iu(r,Mc(r),n)})),xc=Eu((function(n,r,t,e){Iu(r,Mc(r),n,e)})),yc=Eu((function(n,r,t,e){Iu(r,Dc(r),n,e)})),jc=Xu(ue),kc=Ge((function(n,r){n=zn(n);var e=-1,u=r.length,i=u>2?r[2]:t;for(i&&bi(r[0],r[1],i)&&(u=1);++e<u;)for(var o=r[e],c=Mc(o),f=-1,a=c.length;++f<a;){var s=c[f],l=n[s];(l===t||Fo(l,Rn[s])&&!On.call(n,s))&&(n[s]=o[s])}return n})),zc=Ge((function(n){return n.push(t,Yu),jr(Cc,t,n)}));function Ac(n,r,e){var u=null==n?t:xe(n,r);return u===t?e:u}function Ic(n,r){return null!=n&&vi(n,r,Ae)}var $c=Lu((function(n,r,t){null!=r&&"function"!=typeof r.toString&&(r=Un.call(r)),n[r]=t}),nf(ef)),Ec=Lu((function(n,r,t){null!=r&&"function"!=typeof r.toString&&(r=Un.call(r)),On.call(n,r)?n[r].push(t):n[r]=[t]}),ii),Rc=Ge($e);function Dc(n){return Po(n)?qt(n):Ce(n)}function Mc(n){return Po(n)?qt(n,!0):function(n){if(!nc(n))return function(n){var r=[];if(null!=n)for(var t in zn(n))r.push(t);return r}(n);var r=wi(n),t=[];for(var e in n)("constructor"!=e||!r&&On.call(n,e))&&t.push(e);return t}(n)}var Oc=Eu((function(n,r,t){Te(n,r,t)})),Cc=Eu((function(n,r,t,e){Te(n,r,t,e)})),Sc=Xu((function(n,r){var t={};if(null==n)return t;var e=!1;r=Dr(r,(function(r){return r=bu(r,n),e||(e=r.length>1),r})),Iu(n,ri(n),t),e&&(t=oe(t,7,Ju));for(var u=r.length;u--;)fu(t,r[u]);return t})),Uc=Xu((function(n,r){return null==n?{}:function(n,r){return We(n,r,(function(r,t){return Ic(n,t)}))}(n,r)}));function Nc(n,r){if(null==n)return{};var t=Dr(ri(n),(function(n){return[n]}));return r=ii(r),We(n,t,(function(n,t){return r(n,t[0])}))}var Lc=Gu(Dc),Tc=Gu(Mc);function Fc(n){return null==n?[]:Yr(n,Dc(n))}var Hc=Ou((function(n,r,t){return r=r.toLowerCase(),n+(t?Wc(r):r)}));function Wc(n){return Yc(gc(n).toLowerCase())}function Zc(n){return(n=gc(n))&&n.replace(gn,rt).replace(Jn,"")}var Bc=Ou((function(n,r,t){return n+(t?"-":"")+r.toLowerCase()})),Kc=Ou((function(n,r,t){return n+(t?" ":"")+r.toLowerCase()})),Pc=Mu("toLowerCase"),Gc=Ou((function(n,r,t){return n+(t?"_":"")+r.toLowerCase()})),qc=Ou((function(n,r,t){return n+(t?" ":"")+Yc(r)})),Vc=Ou((function(n,r,t){return n+(t?" ":"")+r.toUpperCase()})),Yc=Mu("toUpperCase");function Jc(n,r,e){return n=gc(n),(r=e?t:r)===t?function(n){return rr.test(n)}(n)?function(n){return n.match(Xn)||[]}(n):function(n){return n.match(fn)||[]}(n):n.match(r)||[]}var Qc=Ge((function(n,r){try{return jr(n,t,r)}catch(n){return Yo(n)?n:new yn(n)}})),Xc=Xu((function(n,r){return zr(r,(function(r){r=Ui(r),ee(n,r,Eo(n[r],n))})),n}));function nf(n){return function(){return n}}var rf=Uu(),tf=Uu(!0);function ef(n){return n}function uf(n){return Oe("function"==typeof n?n:oe(n,1))}var of=Ge((function(n,r){return function(t){return $e(t,n,r)}})),cf=Ge((function(n,r){return function(t){return $e(n,t,r)}}));function ff(n,r,t){var e=Dc(r),u=we(r,e);null!=t||nc(r)&&(u.length||!e.length)||(t=r,r=n,n=this,u=we(r,Dc(r)));var i=!(nc(t)&&"chain"in t&&!t.chain),o=Jo(n);return zr(u,(function(t){var e=r[t];n[t]=e,o&&(n.prototype[t]=function(){var r=this.__chain__;if(i||r){var t=n(this.__wrapped__),u=t.__actions__=Au(this.__actions__);return u.push({func:e,args:arguments,thisArg:n}),t.__chain__=r,t}return e.apply(n,Mr([this.value()],arguments))})})),n}function af(){}var sf=Fu(Dr),lf=Fu(Ir),vf=Fu(Sr);function pf(n){return mi(n)?Zr(Ui(n)):function(n){return function(r){return xe(r,n)}}(n)}var hf=Wu(),df=Wu(!0);function bf(){return[]}function mf(){return!1}var gf,_f=Tu((function(n,r){return n+r}),0),wf=Ku("ceil"),xf=Tu((function(n,r){return n/r}),1),yf=Ku("floor"),jf=Tu((function(n,r){return n*r}),1),kf=Ku("round"),zf=Tu((function(n,r){return n-r}),0);return Lt.after=function(n,r){if("function"!=typeof r)throw new $n(e);return n=hc(n),function(){if(--n<1)return r.apply(this,arguments)}},Lt.ary=Io,Lt.assign=_c,Lt.assignIn=wc,Lt.assignInWith=xc,Lt.assignWith=yc,Lt.at=jc,Lt.before=$o,Lt.bind=Eo,Lt.bindAll=Xc,Lt.bindKey=Ro,Lt.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Bo(n)?n:[n]},Lt.chain=lo,Lt.chunk=function(n,r,e){r=(e?bi(n,r,e):r===t)?1:bt(hc(r),0);var u=null==n?0:n.length;if(!u||r<1)return[];for(var i=0,o=0,c=en(vr(u/r));i<u;)c[o++]=nu(n,i,i+=r);return c},Lt.compact=function(n){for(var r=-1,t=null==n?0:n.length,e=0,u=[];++r<t;){var i=n[r];i&&(u[e++]=i)}return u},Lt.concat=function(){var n=arguments.length;if(!n)return[];for(var r=en(n-1),t=arguments[0],e=n;e--;)r[e-1]=arguments[e];return Mr(Bo(t)?Au(t):[t],de(r,1))},Lt.cond=function(n){var r=null==n?0:n.length,t=ii();return n=r?Dr(n,(function(n){if("function"!=typeof n[1])throw new $n(e);return[t(n[0]),n[1]]})):[],Ge((function(t){for(var e=-1;++e<r;){var u=n[e];if(jr(u[0],this,t))return jr(u[1],this,t)}}))},Lt.conforms=function(n){return function(n){var r=Dc(n);return function(t){return ce(t,n,r)}}(oe(n,1))},Lt.constant=nf,Lt.countBy=ho,Lt.create=function(n,r){var t=Tt(n);return null==r?t:te(t,r)},Lt.curry=function n(r,e,u){var i=qu(r,8,t,t,t,t,t,e=u?t:e);return i.placeholder=n.placeholder,i},Lt.curryRight=function n(r,e,u){var i=qu(r,16,t,t,t,t,t,e=u?t:e);return i.placeholder=n.placeholder,i},Lt.debounce=Do,Lt.defaults=kc,Lt.defaultsDeep=zc,Lt.defer=Mo,Lt.delay=Oo,Lt.difference=Ti,Lt.differenceBy=Fi,Lt.differenceWith=Hi,Lt.drop=function(n,r,e){var u=null==n?0:n.length;return u?nu(n,(r=e||r===t?1:hc(r))<0?0:r,u):[]},Lt.dropRight=function(n,r,e){var u=null==n?0:n.length;return u?nu(n,0,(r=u-(r=e||r===t?1:hc(r)))<0?0:r):[]},Lt.dropRightWhile=function(n,r){return n&&n.length?su(n,ii(r,3),!0,!0):[]},Lt.dropWhile=function(n,r){return n&&n.length?su(n,ii(r,3),!0):[]},Lt.fill=function(n,r,e,u){var i=null==n?0:n.length;return i?(e&&"number"!=typeof e&&bi(n,r,e)&&(e=0,u=i),function(n,r,e,u){var i=n.length;for((e=hc(e))<0&&(e=-e>i?0:i+e),(u=u===t||u>i?i:hc(u))<0&&(u+=i),u=e>u?0:dc(u);e<u;)n[e++]=r;return n}(n,r,e,u)):[]},Lt.filter=function(n,r){return(Bo(n)?$r:he)(n,ii(r,3))},Lt.flatMap=function(n,r){return de(jo(n,r),1)},Lt.flatMapDeep=function(n,r){return de(jo(n,r),a)},Lt.flatMapDepth=function(n,r,e){return e=e===t?1:hc(e),de(jo(n,r),e)},Lt.flatten=Bi,Lt.flattenDeep=function(n){return null!=n&&n.length?de(n,a):[]},Lt.flattenDepth=function(n,r){return null!=n&&n.length?de(n,r=r===t?1:hc(r)):[]},Lt.flip=function(n){return qu(n,512)},Lt.flow=rf,Lt.flowRight=tf,Lt.fromPairs=function(n){for(var r=-1,t=null==n?0:n.length,e={};++r<t;){var u=n[r];e[u[0]]=u[1]}return e},Lt.functions=function(n){return null==n?[]:we(n,Dc(n))},Lt.functionsIn=function(n){return null==n?[]:we(n,Mc(n))},Lt.groupBy=wo,Lt.initial=function(n){return null!=n&&n.length?nu(n,0,-1):[]},Lt.intersection=Pi,Lt.intersectionBy=Gi,Lt.intersectionWith=qi,Lt.invert=$c,Lt.invertBy=Ec,Lt.invokeMap=xo,Lt.iteratee=uf,Lt.keyBy=yo,Lt.keys=Dc,Lt.keysIn=Mc,Lt.map=jo,Lt.mapKeys=function(n,r){var t={};return r=ii(r,3),ge(n,(function(n,e,u){ee(t,r(n,e,u),n)})),t},Lt.mapValues=function(n,r){var t={};return r=ii(r,3),ge(n,(function(n,e,u){ee(t,e,r(n,e,u))})),t},Lt.matches=function(n){return Ne(oe(n,1))},Lt.matchesProperty=function(n,r){return Le(n,oe(r,1))},Lt.memoize=Co,Lt.merge=Oc,Lt.mergeWith=Cc,Lt.method=of,Lt.methodOf=cf,Lt.mixin=ff,Lt.negate=So,Lt.nthArg=function(n){return n=hc(n),Ge((function(r){return Fe(r,n)}))},Lt.omit=Sc,Lt.omitBy=function(n,r){return Nc(n,So(ii(r)))},Lt.once=function(n){return $o(2,n)},Lt.orderBy=function(n,r,e,u){return null==n?[]:(Bo(r)||(r=null==r?[]:[r]),Bo(e=u?t:e)||(e=null==e?[]:[e]),He(n,r,e))},Lt.over=sf,Lt.overArgs=Uo,Lt.overEvery=lf,Lt.overSome=vf,Lt.partial=No,Lt.partialRight=Lo,Lt.partition=ko,Lt.pick=Uc,Lt.pickBy=Nc,Lt.property=pf,Lt.propertyOf=function(n){return function(r){return null==n?t:xe(n,r)}},Lt.pull=Yi,Lt.pullAll=Ji,Lt.pullAllBy=function(n,r,t){return n&&n.length&&r&&r.length?Ze(n,r,ii(t,2)):n},Lt.pullAllWith=function(n,r,e){return n&&n.length&&r&&r.length?Ze(n,r,t,e):n},Lt.pullAt=Qi,Lt.range=hf,Lt.rangeRight=df,Lt.rearg=To,Lt.reject=function(n,r){return(Bo(n)?$r:he)(n,So(ii(r,3)))},Lt.remove=function(n,r){var t=[];if(!n||!n.length)return t;var e=-1,u=[],i=n.length;for(r=ii(r,3);++e<i;){var o=n[e];r(o,e,n)&&(t.push(o),u.push(e))}return Be(n,u),t},Lt.rest=function(n,r){if("function"!=typeof n)throw new $n(e);return Ge(n,r=r===t?r:hc(r))},Lt.reverse=Xi,Lt.sampleSize=function(n,r,e){return r=(e?bi(n,r,e):r===t)?1:hc(r),(Bo(n)?Yt:Ve)(n,r)},Lt.set=function(n,r,t){return null==n?n:Ye(n,r,t)},Lt.setWith=function(n,r,e,u){return u="function"==typeof u?u:t,null==n?n:Ye(n,r,e,u)},Lt.shuffle=function(n){return(Bo(n)?Jt:Xe)(n)},Lt.slice=function(n,r,e){var u=null==n?0:n.length;return u?(e&&"number"!=typeof e&&bi(n,r,e)?(r=0,e=u):(r=null==r?0:hc(r),e=e===t?u:hc(e)),nu(n,r,e)):[]},Lt.sortBy=zo,Lt.sortedUniq=function(n){return n&&n.length?uu(n):[]},Lt.sortedUniqBy=function(n,r){return n&&n.length?uu(n,ii(r,2)):[]},Lt.split=function(n,r,e){return e&&"number"!=typeof e&&bi(n,r,e)&&(r=e=t),(e=e===t?v:e>>>0)?(n=gc(n))&&("string"==typeof r||null!=r&&!ic(r))&&!(r=ou(r))&&ut(n)?gu(lt(n),0,e):n.split(r,e):[]},Lt.spread=function(n,r){if("function"!=typeof n)throw new $n(e);return r=null==r?0:bt(hc(r),0),Ge((function(t){var e=t[r],u=gu(t,0,r);return e&&Mr(u,e),jr(n,this,u)}))},Lt.tail=function(n){var r=null==n?0:n.length;return r?nu(n,1,r):[]},Lt.take=function(n,r,e){return n&&n.length?nu(n,0,(r=e||r===t?1:hc(r))<0?0:r):[]},Lt.takeRight=function(n,r,e){var u=null==n?0:n.length;return u?nu(n,(r=u-(r=e||r===t?1:hc(r)))<0?0:r,u):[]},Lt.takeRightWhile=function(n,r){return n&&n.length?su(n,ii(r,3),!1,!0):[]},Lt.takeWhile=function(n,r){return n&&n.length?su(n,ii(r,3)):[]},Lt.tap=function(n,r){return r(n),n},Lt.throttle=function(n,r,t){var u=!0,i=!0;if("function"!=typeof n)throw new $n(e);return nc(t)&&(u="leading"in t?!!t.leading:u,i="trailing"in t?!!t.trailing:i),Do(n,r,{leading:u,maxWait:r,trailing:i})},Lt.thru=vo,Lt.toArray=vc,Lt.toPairs=Lc,Lt.toPairsIn=Tc,Lt.toPath=function(n){return Bo(n)?Dr(n,Ui):fc(n)?[n]:Au(Si(gc(n)))},Lt.toPlainObject=mc,Lt.transform=function(n,r,t){var e=Bo(n),u=e||qo(n)||ac(n);if(r=ii(r,4),null==t){var i=n&&n.constructor;t=u?e?new i:[]:nc(n)&&Jo(i)?Tt(Bn(n)):{}}return(u?zr:ge)(n,(function(n,e,u){return r(t,n,e,u)})),t},Lt.unary=function(n){return Io(n,1)},Lt.union=no,Lt.unionBy=ro,Lt.unionWith=to,Lt.uniq=function(n){return n&&n.length?cu(n):[]},Lt.uniqBy=function(n,r){return n&&n.length?cu(n,ii(r,2)):[]},Lt.uniqWith=function(n,r){return r="function"==typeof r?r:t,n&&n.length?cu(n,t,r):[]},Lt.unset=function(n,r){return null==n||fu(n,r)},Lt.unzip=eo,Lt.unzipWith=uo,Lt.update=function(n,r,t){return null==n?n:au(n,r,du(t))},Lt.updateWith=function(n,r,e,u){return u="function"==typeof u?u:t,null==n?n:au(n,r,du(e),u)},Lt.values=Fc,Lt.valuesIn=function(n){return null==n?[]:Yr(n,Mc(n))},Lt.without=io,Lt.words=Jc,Lt.wrap=function(n,r){return No(du(r),n)},Lt.xor=oo,Lt.xorBy=co,Lt.xorWith=fo,Lt.zip=ao,Lt.zipObject=function(n,r){return pu(n||[],r||[],Xt)},Lt.zipObjectDeep=function(n,r){return pu(n||[],r||[],Ye)},Lt.zipWith=so,Lt.entries=Lc,Lt.entriesIn=Tc,Lt.extend=wc,Lt.extendWith=xc,ff(Lt,Lt),Lt.add=_f,Lt.attempt=Qc,Lt.camelCase=Hc,Lt.capitalize=Wc,Lt.ceil=wf,Lt.clamp=function(n,r,e){return e===t&&(e=r,r=t),e!==t&&(e=(e=bc(e))==e?e:0),r!==t&&(r=(r=bc(r))==r?r:0),ie(bc(n),r,e)},Lt.clone=function(n){return oe(n,4)},Lt.cloneDeep=function(n){return oe(n,5)},Lt.cloneDeepWith=function(n,r){return oe(n,5,r="function"==typeof r?r:t)},Lt.cloneWith=function(n,r){return oe(n,4,r="function"==typeof r?r:t)},Lt.conformsTo=function(n,r){return null==r||ce(n,r,Dc(r))},Lt.deburr=Zc,Lt.defaultTo=function(n,r){return null==n||n!=n?r:n},Lt.divide=xf,Lt.endsWith=function(n,r,e){n=gc(n),r=ou(r);var u=n.length,i=e=e===t?u:ie(hc(e),0,u);return(e-=r.length)>=0&&n.slice(e,i)==r},Lt.eq=Fo,Lt.escape=function(n){return(n=gc(n))&&G.test(n)?n.replace(K,tt):n},Lt.escapeRegExp=function(n){return(n=gc(n))&&rn.test(n)?n.replace(nn,"\\$&"):n},Lt.every=function(n,r,e){var u=Bo(n)?Ir:ve;return e&&bi(n,r,e)&&(r=t),u(n,ii(r,3))},Lt.find=bo,Lt.findIndex=Wi,Lt.findKey=function(n,r){return Nr(n,ii(r,3),ge)},Lt.findLast=mo,Lt.findLastIndex=Zi,Lt.findLastKey=function(n,r){return Nr(n,ii(r,3),_e)},Lt.floor=yf,Lt.forEach=go,Lt.forEachRight=_o,Lt.forIn=function(n,r){return null==n?n:be(n,ii(r,3),Mc)},Lt.forInRight=function(n,r){return null==n?n:me(n,ii(r,3),Mc)},Lt.forOwn=function(n,r){return n&&ge(n,ii(r,3))},Lt.forOwnRight=function(n,r){return n&&_e(n,ii(r,3))},Lt.get=Ac,Lt.gt=Ho,Lt.gte=Wo,Lt.has=function(n,r){return null!=n&&vi(n,r,ze)},Lt.hasIn=Ic,Lt.head=Ki,Lt.identity=ef,Lt.includes=function(n,r,t,e){n=Po(n)?n:Fc(n),t=t&&!e?hc(t):0;var u=n.length;return t<0&&(t=bt(u+t,0)),cc(n)?t<=u&&n.indexOf(r,t)>-1:!!u&&Tr(n,r,t)>-1},Lt.indexOf=function(n,r,t){var e=null==n?0:n.length;if(!e)return-1;var u=null==t?0:hc(t);return u<0&&(u=bt(e+u,0)),Tr(n,r,u)},Lt.inRange=function(n,r,e){return r=pc(r),e===t?(e=r,r=0):e=pc(e),function(n,r,t){return n>=mt(r,t)&&n<bt(r,t)}(n=bc(n),r,e)},Lt.invoke=Rc,Lt.isArguments=Zo,Lt.isArray=Bo,Lt.isArrayBuffer=Ko,Lt.isArrayLike=Po,Lt.isArrayLikeObject=Go,Lt.isBoolean=function(n){return!0===n||!1===n||rc(n)&&je(n)==b},Lt.isBuffer=qo,Lt.isDate=Vo,Lt.isElement=function(n){return rc(n)&&1===n.nodeType&&!uc(n)},Lt.isEmpty=function(n){if(null==n)return!0;if(Po(n)&&(Bo(n)||"string"==typeof n||"function"==typeof n.splice||qo(n)||ac(n)||Zo(n)))return!n.length;var r=li(n);if(r==x||r==A)return!n.size;if(wi(n))return!Ce(n).length;for(var t in n)if(On.call(n,t))return!1;return!0},Lt.isEqual=function(n,r){return Re(n,r)},Lt.isEqualWith=function(n,r,e){var u=(e="function"==typeof e?e:t)?e(n,r):t;return u===t?Re(n,r,t,e):!!u},Lt.isError=Yo,Lt.isFinite=function(n){return"number"==typeof n&&Ur(n)},Lt.isFunction=Jo,Lt.isInteger=Qo,Lt.isLength=Xo,Lt.isMap=tc,Lt.isMatch=function(n,r){return n===r||De(n,r,ci(r))},Lt.isMatchWith=function(n,r,e){return e="function"==typeof e?e:t,De(n,r,ci(r),e)},Lt.isNaN=function(n){return ec(n)&&n!=+n},Lt.isNative=function(n){if(_i(n))throw new yn("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Me(n)},Lt.isNil=function(n){return null==n},Lt.isNull=function(n){return null===n},Lt.isNumber=ec,Lt.isObject=nc,Lt.isObjectLike=rc,Lt.isPlainObject=uc,Lt.isRegExp=ic,Lt.isSafeInteger=function(n){return Qo(n)&&n>=-9007199254740991&&n<=s},Lt.isSet=oc,Lt.isString=cc,Lt.isSymbol=fc,Lt.isTypedArray=ac,Lt.isUndefined=function(n){return n===t},Lt.isWeakMap=function(n){return rc(n)&&li(n)==E},Lt.isWeakSet=function(n){return rc(n)&&"[object WeakSet]"==je(n)},Lt.join=function(n,r){return null==n?"":Br.call(n,r)},Lt.kebabCase=Bc,Lt.last=Vi,Lt.lastIndexOf=function(n,r,e){var u=null==n?0:n.length;if(!u)return-1;var i=u;return e!==t&&(i=(i=hc(e))<0?bt(u+i,0):mt(i,u-1)),r==r?function(n,r,t){for(var e=t+1;e--;)if(n[e]===r)return e;return e}(n,r,i):Lr(n,Hr,i,!0)},Lt.lowerCase=Kc,Lt.lowerFirst=Pc,Lt.lt=sc,Lt.lte=lc,Lt.max=function(n){return n&&n.length?pe(n,ef,ke):t},Lt.maxBy=function(n,r){return n&&n.length?pe(n,ii(r,2),ke):t},Lt.mean=function(n){return Wr(n,ef)},Lt.meanBy=function(n,r){return Wr(n,ii(r,2))},Lt.min=function(n){return n&&n.length?pe(n,ef,Se):t},Lt.minBy=function(n,r){return n&&n.length?pe(n,ii(r,2),Se):t},Lt.stubArray=bf,Lt.stubFalse=mf,Lt.stubObject=function(){return{}},Lt.stubString=function(){return""},Lt.stubTrue=function(){return!0},Lt.multiply=jf,Lt.nth=function(n,r){return n&&n.length?Fe(n,hc(r)):t},Lt.noConflict=function(){return lr._===this&&(lr._=Ln),this},Lt.noop=af,Lt.now=Ao,Lt.pad=function(n,r,t){n=gc(n);var e=(r=hc(r))?st(n):0;if(!r||e>=r)return n;var u=(r-e)/2;return Hu(pr(u),t)+n+Hu(vr(u),t)},Lt.padEnd=function(n,r,t){n=gc(n);var e=(r=hc(r))?st(n):0;return r&&e<r?n+Hu(r-e,t):n},Lt.padStart=function(n,r,t){n=gc(n);var e=(r=hc(r))?st(n):0;return r&&e<r?Hu(r-e,t)+n:n},Lt.parseInt=function(n,r,t){return t||null==r?r=0:r&&(r=+r),_t(gc(n).replace(tn,""),r||0)},Lt.random=function(n,r,e){if(e&&"boolean"!=typeof e&&bi(n,r,e)&&(r=e=t),e===t&&("boolean"==typeof r?(e=r,r=t):"boolean"==typeof n&&(e=n,n=t)),n===t&&r===t?(n=0,r=1):(n=pc(n),r===t?(r=n,n=0):r=pc(r)),n>r){var u=n;n=r,r=u}if(e||n%1||r%1){var i=wt();return mt(n+i*(r-n+cr("1e-"+((i+"").length-1))),r)}return Ke(n,r)},Lt.reduce=function(n,r,t){var e=Bo(n)?Or:Kr,u=arguments.length<3;return e(n,ii(r,4),t,u,se)},Lt.reduceRight=function(n,r,t){var e=Bo(n)?Cr:Kr,u=arguments.length<3;return e(n,ii(r,4),t,u,le)},Lt.repeat=function(n,r,e){return r=(e?bi(n,r,e):r===t)?1:hc(r),Pe(gc(n),r)},Lt.replace=function(){var n=arguments,r=gc(n[0]);return n.length<3?r:r.replace(n[1],n[2])},Lt.result=function(n,r,e){var u=-1,i=(r=bu(r,n)).length;for(i||(i=1,n=t);++u<i;){var o=null==n?t:n[Ui(r[u])];o===t&&(u=i,o=e),n=Jo(o)?o.call(n):o}return n},Lt.round=kf,Lt.runInContext=n,Lt.sample=function(n){return(Bo(n)?Vt:qe)(n)},Lt.size=function(n){if(null==n)return 0;if(Po(n))return cc(n)?st(n):n.length;var r=li(n);return r==x||r==A?n.size:Ce(n).length},Lt.snakeCase=Gc,Lt.some=function(n,r,e){var u=Bo(n)?Sr:ru;return e&&bi(n,r,e)&&(r=t),u(n,ii(r,3))},Lt.sortedIndex=function(n,r){return tu(n,r)},Lt.sortedIndexBy=function(n,r,t){return eu(n,r,ii(t,2))},Lt.sortedIndexOf=function(n,r){var t=null==n?0:n.length;if(t){var e=tu(n,r);if(e<t&&Fo(n[e],r))return e}return-1},Lt.sortedLastIndex=function(n,r){return tu(n,r,!0)},Lt.sortedLastIndexBy=function(n,r,t){return eu(n,r,ii(t,2),!0)},Lt.sortedLastIndexOf=function(n,r){if(null!=n&&n.length){var t=tu(n,r,!0)-1;if(Fo(n[t],r))return t}return-1},Lt.startCase=qc,Lt.startsWith=function(n,r,t){return n=gc(n),t=null==t?0:ie(hc(t),0,n.length),r=ou(r),n.slice(t,t+r.length)==r},Lt.subtract=zf,Lt.sum=function(n){return n&&n.length?Pr(n,ef):0},Lt.sumBy=function(n,r){return n&&n.length?Pr(n,ii(r,2)):0},Lt.template=function(n,r,e){var u=Lt.templateSettings;e&&bi(n,r,e)&&(r=t),n=gc(n),r=xc({},r,u,Vu);var i,o,c=xc({},r.imports,u.imports,Vu),f=Dc(c),a=Yr(c,f),s=0,l=r.interpolate||_n,v="__p += '",p=An((r.escape||_n).source+"|"+l.source+"|"+(l===Y?ln:_n).source+"|"+(r.evaluate||_n).source+"|$","g"),h="//# sourceURL="+(On.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++er+"]")+"\n";n.replace(p,(function(r,t,e,u,c,f){return e||(e=u),v+=n.slice(s,f).replace(wn,et),t&&(i=!0,v+="' +\n__e("+t+") +\n'"),c&&(o=!0,v+="';\n"+c+";\n__p += '"),e&&(v+="' +\n((__t = ("+e+")) == null ? '' : __t) +\n'"),s=f+r.length,r})),v+="';\n";var d=On.call(r,"variable")&&r.variable;if(d){if(an.test(d))throw new yn("Invalid `variable` option passed into `_.template`")}else v="with (obj) {\n"+v+"\n}\n";v=(o?v.replace(H,""):v).replace(W,"$1").replace(Z,"$1;"),v="function("+(d||"obj")+") {\n"+(d?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+v+"return __p\n}";var b=Qc((function(){return jn(f,h+"return "+v).apply(t,a)}));if(b.source=v,Yo(b))throw b;return b},Lt.times=function(n,r){if((n=hc(n))<1||n>s)return[];var t=v,e=mt(n,v);r=ii(r),n-=v;for(var u=Gr(e,r);++t<n;)r(t);return u},Lt.toFinite=pc,Lt.toInteger=hc,Lt.toLength=dc,Lt.toLower=function(n){return gc(n).toLowerCase()},Lt.toNumber=bc,Lt.toSafeInteger=function(n){return n?ie(hc(n),-9007199254740991,s):0===n?n:0},Lt.toString=gc,Lt.toUpper=function(n){return gc(n).toUpperCase()},Lt.trim=function(n,r,e){if((n=gc(n))&&(e||r===t))return qr(n);if(!n||!(r=ou(r)))return n;var u=lt(n),i=lt(r);return gu(u,Qr(u,i),Xr(u,i)+1).join("")},Lt.trimEnd=function(n,r,e){if((n=gc(n))&&(e||r===t))return n.slice(0,vt(n)+1);if(!n||!(r=ou(r)))return n;var u=lt(n);return gu(u,0,Xr(u,lt(r))+1).join("")},Lt.trimStart=function(n,r,e){if((n=gc(n))&&(e||r===t))return n.replace(tn,"");if(!n||!(r=ou(r)))return n;var u=lt(n);return gu(u,Qr(u,lt(r))).join("")},Lt.truncate=function(n,r){var e=30,u="...";if(nc(r)){var i="separator"in r?r.separator:i;e="length"in r?hc(r.length):e,u="omission"in r?ou(r.omission):u}var o=(n=gc(n)).length;if(ut(n)){var c=lt(n);o=c.length}if(e>=o)return n;var f=e-st(u);if(f<1)return u;var a=c?gu(c,0,f).join(""):n.slice(0,f);if(i===t)return a+u;if(c&&(f+=a.length-f),ic(i)){if(n.slice(f).search(i)){var s,l=a;for(i.global||(i=An(i.source,gc(vn.exec(i))+"g")),i.lastIndex=0;s=i.exec(l);)var v=s.index;a=a.slice(0,v===t?f:v)}}else if(n.indexOf(ou(i),f)!=f){var p=a.lastIndexOf(i);p>-1&&(a=a.slice(0,p))}return a+u},Lt.unescape=function(n){return(n=gc(n))&&P.test(n)?n.replace(B,pt):n},Lt.uniqueId=function(n){var r=++Cn;return gc(n)+r},Lt.upperCase=Vc,Lt.upperFirst=Yc,Lt.each=go,Lt.eachRight=_o,Lt.first=Ki,ff(Lt,(gf={},ge(Lt,(function(n,r){On.call(Lt.prototype,r)||(gf[r]=n)})),gf),{chain:!1}),Lt.VERSION="4.17.21",zr(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){Lt[n].placeholder=Lt})),zr(["drop","take"],(function(n,r){Wt.prototype[n]=function(e){e=e===t?1:bt(hc(e),0);var u=this.__filtered__&&!r?new Wt(this):this.clone();return u.__filtered__?u.__takeCount__=mt(e,u.__takeCount__):u.__views__.push({size:mt(e,v),type:n+(u.__dir__<0?"Right":"")}),u},Wt.prototype[n+"Right"]=function(r){return this.reverse()[n](r).reverse()}})),zr(["filter","map","takeWhile"],(function(n,r){var t=r+1,e=1==t||3==t;Wt.prototype[n]=function(n){var r=this.clone();return r.__iteratees__.push({iteratee:ii(n,3),type:t}),r.__filtered__=r.__filtered__||e,r}})),zr(["head","last"],(function(n,r){var t="take"+(r?"Right":"");Wt.prototype[n]=function(){return this[t](1).value()[0]}})),zr(["initial","tail"],(function(n,r){var t="drop"+(r?"":"Right");Wt.prototype[n]=function(){return this.__filtered__?new Wt(this):this[t](1)}})),Wt.prototype.compact=function(){return this.filter(ef)},Wt.prototype.find=function(n){return this.filter(n).head()},Wt.prototype.findLast=function(n){return this.reverse().find(n)},Wt.prototype.invokeMap=Ge((function(n,r){return"function"==typeof n?new Wt(this):this.map((function(t){return $e(t,n,r)}))})),Wt.prototype.reject=function(n){return this.filter(So(ii(n)))},Wt.prototype.slice=function(n,r){n=hc(n);var e=this;return e.__filtered__&&(n>0||r<0)?new Wt(e):(n<0?e=e.takeRight(-n):n&&(e=e.drop(n)),r!==t&&(e=(r=hc(r))<0?e.dropRight(-r):e.take(r-n)),e)},Wt.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Wt.prototype.toArray=function(){return this.take(v)},ge(Wt.prototype,(function(n,r){var e=/^(?:filter|find|map|reject)|While$/.test(r),u=/^(?:head|last)$/.test(r),i=Lt[u?"take"+("last"==r?"Right":""):r],o=u||/^find/.test(r);i&&(Lt.prototype[r]=function(){var r=this.__wrapped__,c=u?[1]:arguments,f=r instanceof Wt,a=c[0],s=f||Bo(r),l=function(n){var r=i.apply(Lt,Mr([n],c));return u&&v?r[0]:r};s&&e&&"function"==typeof a&&1!=a.length&&(f=s=!1);var v=this.__chain__,p=!!this.__actions__.length,h=o&&!v,d=f&&!p;if(!o&&s){r=d?r:new Wt(this);var b=n.apply(r,c);return b.__actions__.push({func:vo,args:[l],thisArg:t}),new Ht(b,v)}return h&&d?n.apply(this,c):(b=this.thru(l),h?u?b.value()[0]:b.value():b)})})),zr(["pop","push","shift","sort","splice","unshift"],(function(n){var r=En[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);Lt.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return r.apply(Bo(u)?u:[],n)}return this[t]((function(t){return r.apply(Bo(t)?t:[],n)}))}})),ge(Wt.prototype,(function(n,r){var t=Lt[r];if(t){var e=t.name+"";On.call(Et,e)||(Et[e]=[]),Et[e].push({name:r,func:t})}})),Et[Nu(t,2).name]=[{name:"wrapper",func:t}],Wt.prototype.clone=function(){var n=new Wt(this.__wrapped__);return n.__actions__=Au(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Au(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Au(this.__views__),n},Wt.prototype.reverse=function(){if(this.__filtered__){var n=new Wt(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Wt.prototype.value=function(){var n=this.__wrapped__.value(),r=this.__dir__,t=Bo(n),e=r<0,u=t?n.length:0,i=function(n,r,t){for(var e=-1,u=t.length;++e<u;){var i=t[e],o=i.size;switch(i.type){case"drop":n+=o;break;case"dropRight":r-=o;break;case"take":r=mt(r,n+o);break;case"takeRight":n=bt(n,r-o)}}return{start:n,end:r}}(0,u,this.__views__),o=i.start,c=i.end,f=c-o,a=e?c:o-1,s=this.__iteratees__,l=s.length,v=0,p=mt(f,this.__takeCount__);if(!t||!e&&u==f&&p==f)return lu(n,this.__actions__);var h=[];n:for(;f--&&v<p;){for(var d=-1,b=n[a+=r];++d<l;){var m=s[d],g=m.type,_=(0,m.iteratee)(b);if(2==g)b=_;else if(!_){if(1==g)continue n;break n}}h[v++]=b}return h},Lt.prototype.at=po,Lt.prototype.chain=function(){return lo(this)},Lt.prototype.commit=function(){return new Ht(this.value(),this.__chain__)},Lt.prototype.next=function(){this.__values__===t&&(this.__values__=vc(this.value()));var n=this.__index__>=this.__values__.length;return{done:n,value:n?t:this.__values__[this.__index__++]}},Lt.prototype.plant=function(n){for(var r,e=this;e instanceof Ft;){var u=Li(e);u.__index__=0,u.__values__=t,r?i.__wrapped__=u:r=u;var i=u;e=e.__wrapped__}return i.__wrapped__=n,r},Lt.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Wt){var r=n;return this.__actions__.length&&(r=new Wt(this)),(r=r.reverse()).__actions__.push({func:vo,args:[Xi],thisArg:t}),new Ht(r,this.__chain__)}return this.thru(Xi)},Lt.prototype.toJSON=Lt.prototype.valueOf=Lt.prototype.value=function(){return lu(this.__wrapped__,this.__actions__)},Lt.prototype.first=Lt.prototype.head,Vn&&(Lt.prototype[Vn]=function(){return this}),Lt}();pr?((pr.exports=ht)._=ht,vr._=ht):lr._=ht}).call(f)}));const L=class{constructor(t){n(this,t),this.bcmChange=r(this,"bcmChange",7),this.color="#3b82f6"}handleChange(n){this.bcmChange.emit(n)}componentDidRender(){const{color:n}=this;o.render(i.createElement(U,{color:n,onChange:N.debounce(this.handleChange.bind(this),150)}),this.el)}get el(){return t(this)}};L.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}.bcm-input{display:inline-flex;flex-direction:column;width:100%;max-width:256px;margin-bottom:8px}.bcm-input.full-width{max-width:100%}.bcm-input.hidden{display:none}.bcm-input__container{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:flex;align-items:stretch;flex-direction:row;background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;box-sizing:border-box;cursor:text;padding:0 0 0 4px;position:relative;width:100%}.bcm-input__container.disabled{background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.bcm-input__container.disabled .bcm-input-element{color:var(--bcm-new-ds-color-slate-500)}.bcm-input__container.readonly{background-color:var(--bcm-new-ds-color-slate-50);cursor:default}.bcm-input__container.readonly .bcm-input-element{color:var(--bcm-new-ds-color-slate-600)}.bcm-input__container:not(.disabled):hover .caret-container,.bcm-input__container:not(.disabled).focused .caret-container{opacity:1}.bcm-input__container:not(.disabled):hover .input-clear-button,.bcm-input__container:not(.disabled).focused .input-clear-button{opacity:1}.bcm-input__container:not(.disabled).focused{background-color:var(--bcm-new-ds-color-slate-50)}.bcm-input__container:not(.disabled):hover{border-color:var(--bcm-color-prime-blue-6)}.bcm-input__container.empty .input-clear-button{display:none}.bcm-input__container.invalid,.bcm-input__container.error{border-color:var(--bcm-new-ds-color-red-500)}.bcm-input__container .bcm-input-element{width:100%;color:var(--bcm-new-ds-color-slate-600);flex:1;border:none;background:transparent;box-shadow:unset;padding:0 4px;font-family:"Inter", sans-serif;cursor:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;text-overflow:ellipsis}.bcm-input__container .bcm-input-element::placeholder{font-family:"Inter", sans-serif;color:var(--bcm-new-ds-color-slate-300);user-select:none}.bcm-input__container .bcm-input-element::-webkit-search-decoration,.bcm-input__container .bcm-input-element::-webkit-search-cancel-button,.bcm-input__container .bcm-input-element::-webkit-search-results-button,.bcm-input__container .bcm-input-element::-webkit-search-results-decoration,.bcm-input__container .bcm-input-element::-webkit-calendar-picker-indicator,.bcm-input__container .bcm-input-element::-webkit-inner-spin-button,.bcm-input__container .bcm-input-element::-webkit-outer-spin-button{-webkit-appearance:none}.bcm-input__container .caret-container{width:30px;display:flex;flex-direction:column;justify-content:center;align-items:stretch;border-left:1px solid #D9D9D9;transition:0.2s opacity;user-select:none;box-sizing:border-box}.bcm-input__container .caret-container .bcm-input-caret{display:flex;align-items:center;justify-content:center;color:var(--bcm-color-grey-7);cursor:pointer;flex:1}.bcm-input__container .caret-container .bcm-input-caret bcm-icon{line-height:1}.bcm-input__container .caret-container .bcm-input-caret:hover{color:var(--bcm-color-prime-blue-6)}.bcm-input__container .caret-container .bcm-input-caret:active{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container .bcm-input-caret:last-child{border-top:1px solid #D9D9D9}.bcm-input__container .caret-container.disabled{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container.disabled .bcm-input-caret{cursor:not-allowed}.bcm-input__container .input-suffix-content{display:flex;align-items:center;justify-content:center}.bcm-input__container .input-prefix:not(:empty){padding-left:4px}.bcm-input__container .input-suffix:not(:empty){min-width:24px;padding-right:4px}.bcm-input__container .input-prefix:not(:empty),.bcm-input__container .input-suffix:not(:empty){display:flex;align-items:center;justify-content:center;cursor:default;color:#64748a}.bcm-input__container .input-prefix:not(:empty) .unit-prefix,.bcm-input__container .input-suffix:not(:empty) .unit-prefix{color:#64748a}.bcm-input__container .input-prefix-button:not(:empty),.bcm-input__container .input-suffix-button:not(:empty){cursor:pointer}.bcm-input__container .caret-container,.bcm-input__container .input-clear-button{opacity:0}.bcm-input__container--small{font-size:12px}.bcm-input__container--medium{font-size:14px}.bcm-input__container--large{font-size:16px}.bcm-input__textarea.clearable .bcm-input-element{padding-right:24px}.bcm-input__textarea .input-clear-button{position:absolute;top:4px;right:0}bcm-colorful{display:flex;flex-direction:column;width:256px;padding:8px;background-color:#fff;border-radius:4px}bcm-colorful .react-colorful{width:100%;gap:4px}bcm-colorful .react-colorful__saturation{margin:0 0 4px 0;border-radius:2px;border-bottom:none}bcm-colorful .react-colorful__hue,bcm-colorful .react-colorful__alpha{height:20px;border-radius:2px}bcm-colorful .react-colorful__hue-pointer,bcm-colorful .react-colorful__alpha-pointer{width:15px;height:15px}bcm-colorful .react-colorful__saturation-pointer{width:20px;height:20px}';const T=class{constructor(t){n(this,t),this.bcmOpen=r(this,"bcm-open",7),this._id=a.UID(),this.placement=v.Placement["bottom-start"],this.trigger=v.TriggerType.click,this.targetId="",this.height=void 0,this.maxHeight=void 0,this.minHeight="50px",this.isOpen=!1,this.hideDelay=500,this.moveOverLayContainer=!1,this.isMouseOverLink=!1,window.addEventListener("scroll",(()=>this.calculatePosition()),!0),window.addEventListener("wheel",(()=>this.calculatePosition()),!0),window.addEventListener("resize",(()=>this.calculatePosition()),!0)}target(){const n=document.querySelectorAll(`[id="${this.targetId}"]`);return n.length>0?(n.length>1&&console.warn(`[bcm-linked] - Target id "${this.targetId}" is duplicated`),n[0]):(this.el.remove(),null)}detectClone(){const n=document.querySelectorAll(`[target-id="${this.targetId}"]`);n.length>0&&n.forEach((n=>{n.id!==this._id&&(console.warn(`[bcm-linked] - id="${this._id}" was removed from the dom because id="${this.targetId}" is duplicated.`),n.remove())}))}dismissEvent(){document.dispatchEvent(new CustomEvent("linked-data-dismiss",{detail:{id:this._id}}))}checkDataDismiss(n){a.findEventPathHasAttribute(n,"data-dismiss")&&this.dismissEvent()}hideChildLinked(){this.el.querySelectorAll("[is-linked][linked-is-open]").forEach((n=>{var r;null===(r=document.querySelector(`#${n.getAttribute("is-linked")}[is-open]`))||void 0===r||r.hide(!1)}))}calculatePosition(){const n=this.el;n&&this.target()&&(this.isOpen?l({ref:this.target(),floating:n,placement:this.placement,offset:4,autoHidden:"true"!==n.getAttribute("main-linked"),autoSize:!0,style:{height:this.height,maxHeight:this.maxHeight,minHeight:this.minHeight}}):(n.style.visibility="hidden",n.style.opacity="0"))}init(){const n=this.target();this.trigger===v.TriggerType.hover&&this.listenMouseOver(),n&&(n.setAttribute("is-linked",this.el.id),a.getAncestor(n,"bcm-linked")?this.el.removeAttribute("main-linked"):this.el.setAttribute("main-linked","true"),this.moveOverLayContainer)&&document.querySelector("#bcm-overlay-container").appendChild(this.el)}componentDidLoad(){this.init()}triggerWatch(n){n===v.TriggerType.hover&&this.listenMouseOver()}watchIsOpen(){this.bcmOpen.emit(this.isOpen)}onLinkedDataDismis(){this.hide(!1)}onBcmFloatingIsHide(n){n.detail.id===this._id&&this.hide(!1)}async show(n=!0){n&&await s(50),this.detectClone();const r=this.target();return r?(document.querySelector("#bcm-overlay-container").appendChild(this.el),r.setAttribute("linked-is-open","true"),this.isOpen=!0,this.calculatePosition()):this.hide(!1),this.isOpen}async hide(n=!0){n&&await s(50);const r=this.target();return this.isMouseOverLink=!1,r&&(r.removeAttribute("linked-is-open"),this.hideChildLinked(),this.isOpen=!1),this.isOpen}async toggle(n=!0){return this.isOpen?await this.hide(n):await this.show(n)}clickListener(n){if(!this.target())return;if(this.trigger===v.TriggerType.hover||this.trigger===v.TriggerType.custom)return;const r=a.findEventPath(n,this.target()),t=a.findEventPath(n,this.el),e=a.findEventPathWithNodeName(n,"BCM-LINKED");if(!r&&!t&&!e)return this.hide(),void this.bcmOpen.emit(this.isOpen);this.isOpen?(r&&this.hide(!1),t&&this.checkDataDismiss(n),"true"!==this.el.getAttribute("main-linked")||r||t||e||this.dismissEvent()):r&&this.show(!1)}listenMouseOver(){var n,r;this.el.addEventListener("mouseover",(()=>this.isMouseOverLink=!0)),this.el.addEventListener("mouseleave",(()=>{this.isMouseOverLink=!1,this.handleMouseLeave()})),null===(n=this.target())||void 0===n||n.addEventListener("mouseenter",this.handleMouseEnter.bind(this)),null===(r=this.target())||void 0===r||r.addEventListener("mouseleave",this.handleMouseLeave.bind(this))}handleMouseLeave(){setTimeout((()=>{!this.isMouseOverLink&&this.hide()}),this.hideDelay)}handleMouseEnter(){clearTimeout(this.timeoutId),this.isMouseOverLink=!1,this.show()}render(){return e(u,{class:"tw-invisible tw-absolute tw-left-0 tw-top-0 tw-z-tooltip tw-block tw-overscroll-contain tw-scroll-smooth tw-rounded tw-bg-white tw-opacity-0 tw-shadow tw-transition-opacity tw-duration-100",style:Object.assign(Object.assign({},this.isOpen?{visibility:"visible",opacity:"1"}:{visibility:"hidden",opacity:"0"}),{overflow:"auto"})},e("slot",null))}get el(){return t(this)}static get watchers(){return{trigger:["triggerWatch"],isOpen:["watchIsOpen"]}}};export{L as bcm_colorful,T as bcm_linked}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{r as t,c as e,f as i,h as s,H as a,g as o}from"./p-e037ee2b.js";import{I as n}from"./p-8e5e362a.js";import{G as r,s as h}from"./p-a9632cd3.js";import{S as p}from"./p-6b5ed4d8.js";import{a as l}from"./p-a313fba6.js";import"./p-979af47a.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";const c=["BCM-INPUT","BCM-TEXTAREA","BCM-SWITCH","BCM-CHECKBOX","BCM-RADIO-GROUP","BCM-CHECKBOX-GROUP","BCM-RANGE","BCM-FORM","BCM-FORM-GROUP","BCM-LIST","BCM-COLORPICKER","BCM-DATE","BCM-DATE-PICKER","BCM-TIME-PICKER","BCM-DATETIME-PICKER","BCM-SELECT","BCM-LISTBOX","BCM-CHIP-GROUP","BCM-INPUT-DROPDOWN"];const m=class{constructor(i){t(this,i),this.bcmForm=e(this,"bcm-form",7),this.isLoad=!1,this.formData={},this.formObj=new Map,this._id=r.UID(),this.validation=!1}componentDidLoad(){this.isLoad=!0,i(this)}componentIsValid(t){if(!t.hidden){this.checkIsGroup(t);const e=["bcm-checkbox","bcm-switch"].includes(p.lowercase(t.tagName))?0==t.value:p.isNullOrEmpty(t.value);t.required&&(e?(t.captionError=l.FormErrorMessages.required,t.captionType="error",this.formObj.set(t.id,{name:t.name,valid:!1,errorDetails:t.captionError})):(t.captionError=null,t.captionType="default",this.formObj.delete(t.id)))}}isGroup(t){return["bcm-checkbox-group"].includes(p.lowercase(t.tagName))}checkIsGroup(t){if(this.isGroup(t))for(let e of Array.from(t.querySelectorAll("bcm-checkbox")))e&&this.componentIsValid(e)}changeCheckboxGroup(t){const e=t.target,{changed:i}=t.detail,s=Array.from(e.querySelectorAll("bcm-checkbox"));for(let t of s)t.id==i.element.id&&(t.value=i.event.value,this.componentIsValid(t))}bcmComponentList(){return h((()=>Array.from(this.el.querySelectorAll("*")).filter((t=>c.includes(t.tagName)&&(!t["s-hn"]||"BCM-FORM-2"==t["s-hn"]))).filter(Boolean)),[])}formResponse(){const t={formData:this.formData,isValid:0==this.formObj.size,errorDetails:Object.assign({},this.formObj.size>0&&Array.from(this.formObj).map((([t,e])=>({[e.name]:e.errorDetails})))),message:0==this.formObj.size?"":"Please fill in all inputs"};return this.bcmForm.emit(t),t}async setMethodType(t){const{isLoad:e,validation:i}=this;if(e)for(const e of this.bcmComponentList())try{await e[t](),"setClear"==t&&i&&this.componentIsValid(e)}catch(i){console.error(e.nodeName,t,i)}return Promise.resolve()}async submit(){const{isLoad:t,validation:e}=this;if(t)for(const t of this.bcmComponentList()){const{name:i,value:s}=t;this.formData[i]=p.isNullOrEmpty(s)?null:s,e&&this.componentIsValid(t)}return Promise.resolve(this.formResponse())}async set(t){var e,i,s;if(this.isLoad&&t&&(null===(e=this.bcmComponentList())||void 0===e?void 0:e.length)>0)for(let e of Object.keys(t)){const a=null!==(s=null===(i=this.bcmComponentList())||void 0===i?void 0:i.find((t=>t.name==e)))&&void 0!==s?s:{};if(a)try{await a.set(t[e]),this.componentIsValid(a)}catch(t){console.warn("set: ",e,a.nodeName)}}}async get(){var t;let e={};if((null===(t=this.bcmComponentList())||void 0===t?void 0:t.length)>0)for(let t of this.bcmComponentList()){const i=await t.get();e=Object.assign(Object.assign({},e),{[t.name]:p.isNullOrEmpty(i)?null:i})}return Promise.resolve(e)}async resetCaption(){return Promise.resolve(await this.setMethodType("resetCaption"))}async setClear(){return this.formData={},this.formObj=new Map,Promise.resolve(await this.setMethodType("setClear"))}onChange(t){const{isLoad:e,validation:i}=this;if(e){const e=t.target,s=e&&e.tagName.toLowerCase().startsWith("bcm-");if(i&&s){if(this.isGroup(e))return this.changeCheckboxGroup(t);this.componentIsValid(e)}}}render(){return s(a,null,s("slot",null))}get el(){return o(this)}};(function(t,e,i,s){var a,o=arguments.length,n=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(n=(o<3?a(n):o>3?a(e,i,n):a(e,i))||n);o>3&&n&&Object.defineProperty(e,i,n)})([n()],m.prototype,"el",void 0),m.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:block}';export{m as bcm_form_2}
5
+ import{r as t,c as e,f as i,h as s,H as a,g as o}from"./p-e037ee2b.js";import{I as n}from"./p-8e5e362a.js";import{G as r,s as h}from"./p-c5a2a4d3.js";import{S as p}from"./p-6b5ed4d8.js";import{B as l}from"./p-a313fba6.js";import"./p-cca60157.js";import"./p-034bbcdd.js";import"./p-e45c1546.js";const c=["BCM-INPUT","BCM-TEXTAREA","BCM-SWITCH","BCM-CHECKBOX","BCM-RADIO-GROUP","BCM-CHECKBOX-GROUP","BCM-RANGE","BCM-FORM","BCM-FORM-GROUP","BCM-LIST","BCM-COLORPICKER","BCM-DATE","BCM-DATE-PICKER","BCM-TIME-PICKER","BCM-DATETIME-PICKER","BCM-SELECT","BCM-LISTBOX","BCM-CHIP-GROUP","BCM-INPUT-DROPDOWN"];const m=class{constructor(i){t(this,i),this.bcmForm=e(this,"bcm-form",7),this.isLoad=!1,this.formData={},this.formObj=new Map,this._id=r.UID(),this.validation=!1}componentDidLoad(){this.isLoad=!0,i(this)}componentIsValid(t){if(!t.hidden){this.checkIsGroup(t);const e=["bcm-checkbox","bcm-switch"].includes(p.lowercase(t.tagName))?0==t.value:p.isNullOrEmpty(t.value);t.required&&(e?(t.captionError=l.FormErrorMessages.required,t.captionType="error",this.formObj.set(t.id,{name:t.name,valid:!1,errorDetails:t.captionError})):(t.captionError=null,t.captionType="default",this.formObj.delete(t.id)))}}isGroup(t){return["bcm-checkbox-group"].includes(p.lowercase(t.tagName))}checkIsGroup(t){if(this.isGroup(t))for(let e of Array.from(t.querySelectorAll("bcm-checkbox")))e&&this.componentIsValid(e)}changeCheckboxGroup(t){const e=t.target,{changed:i}=t.detail,s=Array.from(e.querySelectorAll("bcm-checkbox"));for(let t of s)t.id==i.element.id&&(t.value=i.event.value,this.componentIsValid(t))}bcmComponentList(){return h((()=>Array.from(this.el.querySelectorAll("*")).filter((t=>c.includes(t.tagName)&&(!t["s-hn"]||"BCM-FORM-2"==t["s-hn"]))).filter(Boolean)),[])}formResponse(){const t={formData:this.formData,isValid:0==this.formObj.size,errorDetails:Object.assign({},this.formObj.size>0&&Array.from(this.formObj).map((([t,e])=>({[e.name]:e.errorDetails})))),message:0==this.formObj.size?"":"Please fill in all inputs"};return this.bcmForm.emit(t),t}async setMethodType(t){const{isLoad:e,validation:i}=this;if(e)for(const e of this.bcmComponentList())try{await e[t](),"setClear"==t&&i&&this.componentIsValid(e)}catch(i){console.error(e.nodeName,t,i)}return Promise.resolve()}async submit(){const{isLoad:t,validation:e}=this;if(t)for(const t of this.bcmComponentList()){const{name:i,value:s}=t;this.formData[i]=p.isNullOrEmpty(s)?null:s,e&&this.componentIsValid(t)}return Promise.resolve(this.formResponse())}async set(t){var e,i,s;if(this.isLoad&&t&&(null===(e=this.bcmComponentList())||void 0===e?void 0:e.length)>0)for(let e of Object.keys(t)){const a=null!==(s=null===(i=this.bcmComponentList())||void 0===i?void 0:i.find((t=>t.name==e)))&&void 0!==s?s:{};if(a)try{await a.set(t[e]),this.componentIsValid(a)}catch(t){console.warn("set: ",e,a.nodeName)}}}async get(){var t;let e={};if((null===(t=this.bcmComponentList())||void 0===t?void 0:t.length)>0)for(let t of this.bcmComponentList()){const i=await t.get();e=Object.assign(Object.assign({},e),{[t.name]:p.isNullOrEmpty(i)?null:i})}return Promise.resolve(e)}async resetCaption(){return Promise.resolve(await this.setMethodType("resetCaption"))}async setClear(){return this.formData={},this.formObj=new Map,Promise.resolve(await this.setMethodType("setClear"))}onChange(t){const{isLoad:e,validation:i}=this;if(e){const e=t.target,s=e&&e.tagName.toLowerCase().startsWith("bcm-");if(i&&s){if(this.isGroup(e))return this.changeCheckboxGroup(t);this.componentIsValid(e)}}}render(){return s(a,null,s("slot",null))}get el(){return o(this)}};(function(t,e,i,s){var a,o=arguments.length,n=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(n=(o<3?a(n):o>3?a(e,i,n):a(e,i))||n);o>3&&n&&Object.defineProperty(e,i,n)})([n()],m.prototype,"el",void 0),m.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:block}';export{m as bcm_form_2}
@@ -2,4 +2,4 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import{h as e,r as t,c as i,H as n,g as a}from"./p-e037ee2b.js";import{c as s}from"./p-bed627ab.js";import{G as o,s as c}from"./p-a9632cd3.js";import{a as h}from"./p-a313fba6.js";import{d as r,a as l}from"./p-3c7a0345.js";import{c as p}from"./p-197aba37.js";import{L as d}from"./p-3089e9c7.js";import{I as m}from"./p-8e5e362a.js";import"./p-e45c1546.js";import"./p-979af47a.js";import"./p-034bbcdd.js";const u=({customStyle:t,groupContainerClasses:i,onBcmSelect:n,items:a})=>e("div",{class:i,style:t},a.childs&&a.childs.map((t=>e("bcm-checkbox",{id:t.id,name:t.name,color:t.color,checked:t.checked,disabled:t.disabled,readonly:t.readonly,required:t.required,noCaption:t.noCaption,"no-margin":!0,size:t.size,"full-width":t.fullWidth,onClick:e=>{!t.disabled&&!t.readonly&&(n(t.id),e.preventDefault())}},t.slot||t.label)))),{state:x}=p({group:new Map,allChecked:!0,allUnchecked:!0,changeInderminate:{}}),g=e=>c((()=>x.group.get(e)),{}),b=e=>{var t;const i=g(e);let n=!0,a=!0;null===(t=i.childs)||void 0===t||t.map((e=>{e.checked&&(a=!1),!e.checked&&(n=!1)})),i.indeterminateState=n||a?n?"determinate":"uncheck":"indeterminate"},f=g;const y=class{constructor(e){t(this,e),this.change=i(this,"bcm-change",7),this.groupCheckedList=i(this,"bcm-group-checked-list",7),this._id=o.UID(),this.direction=h.Direction.horizontal,this.items=[],this.indeterminate=!1,this.name=void 0,this.value=void 0,this.disabled=!1,this.readonly=!1,this.hidden=!1,this.required=!1,this.label=void 0,this.gap=void 0,this.defaultValue=void 0,this.fullWidth=!1,this.optionType="default",this.buttonStyle="solid",this.size=h.Size.medium,this.caption=void 0,this.noCaption=!1,this.captionType=h.Status.default,this.tick={}}componentDidLoad(){this.initState()}disconnectedCallback(){Promise.resolve(x.group.delete(this._id))}componentShouldUpdate(e,t,i){"tick"==i&&e!==t&&c((()=>f(this._id).childs.length>0),!1)&&this.getValue().then((e=>this.value=e)),this.getOptions().indexOf(i)>-1&&e!==t&&this.initState()}getOptions(){return c((()=>Object.keys(x.group.get(this._id))),[])}async initState(){const{fullWidth:e,optionType:t,buttonStyle:i,size:n,noCaption:a,defaultValue:s,label:h,required:r,captionType:l,hidden:p,direction:d,indeterminate:m,gap:u,items:g}=this,b=s&&("string"==typeof s?JSON.parse(s):s),f=g.length>0?g:await this.getCheckboxes();await(async({fullWidth:e,optionType:t,buttonStyle:i,size:n,defaultCheckedItems:a,el:s,id:h,label:r,required:l,captionType:p,hidden:d,direction:m,childs:u,indeterminate:g,gap:b,noCaption:f})=>{s&&x.group.set(h,{fullWidth:e,optionType:t,buttonStyle:i,size:n,defaultCheckedItems:a,label:r,required:l,captionType:p,hidden:d,direction:m,indeterminate:g,gap:b,noCaption:f,childs:null==u?void 0:u.map((e=>(e.checked&&(x.allUnchecked=!1),!e.checked&&(x.allChecked=!1),t&&(e.optionType=t),i&&(e.buttonStyle=i),n&&(e.size=n),a&&a.find((t=>t===e.name))&&(e.checked=!0),e.noCaption=f,{id:e.id||o.UID(),checked:e.checked||!1,name:e.name,size:e.size,buttonStyle:e.buttonStyle,optionType:e.optionType,style:e.style,noCaption:e.noCaption,color:e.color,disabled:e.disabled,readonly:e.readonly,label:e.label||e.name,slot:e.slot||c((()=>e.querySelector(".slot").textContent),e.textContent),required:e.required||l,el:e,captionType:p,hidden:d}))),indeterminateState:x.allChecked||x.allUnchecked?x.allChecked?"determinate":"uncheck":"indeterminate"})})({id:this._id,el:this.el,indeterminate:m,fullWidth:e,optionType:t,buttonStyle:i,size:n,defaultCheckedItems:b,label:h,noCaption:a,required:r,captionType:l,hidden:p,gap:u,direction:d,childs:f});const y=this.el.querySelector(`#bcm-checkbox-group__items-${this._id}`);y&&y.innerHTML&&(y.innerHTML=""),this.value=await this.getValue()}async markForCheck(){await r(10),this.tick=o.UID()}async onBcmFocus(){const e=this.getCheckboxes();e.length>0&&e[0].onBcmFocus()}async onBcmBlur(){this.el.blur()}async setClear(){return null===(t=g(e=this._id).childs)||void 0===t||t.forEach((e=>{e.checked=!1})),b(e),await r(10),this.getCheckboxes().forEach((e=>{e.setClear()})),this.markForCheck(),await r(10),Promise.resolve();var e,t}async resetCaption(){return await r(10),this.getCheckboxes().forEach((e=>{e.resetCaption()})),await r(10),Promise.resolve()}async set(e){Array.isArray(e)&&await this.check(e,!0,!0)}async get(){const e=await this.getCheckedList()&&Object.keys(await this.getCheckedList());return e.length>0?e:[]}async check(e,t=!0,i=!1){((e,t,i,n)=>{var a;const s=t&&("string"==typeof t?JSON.parse(t):t);null===(a=g(e).childs)||void 0===a||a.forEach((e=>{if(s){const t=s.find((t=>t===e.name||t.name===e.name));t?"object"==typeof t?Object.keys(t).map((n=>{e.checked="checked"===n?t[n]:i})):e.checked=i:n&&(e.checked=!1)}else e.checked=!1})),b(e)})(this._id,e,t,i),this.markForCheck()}async getValue(e){return Promise.resolve(((e,t)=>{var i;const n=g(e);let a={};return null===(i=n.childs)||void 0===i||i.map((e=>{t?e.name===t&&(a[e.name]={value:!!e.checked,name:e.name}):a[e.name]={value:!!e.checked,name:e.name}})),a})(this._id,e))}async getCheckedList(){return(e=>{var t;const i=g(e);let n={};return null===(t=i.childs)||void 0===t||t.map((e=>{!0===e.checked&&(n[e.name]={value:!!e.checked,name:e.name})})),n})(this._id)}handleItemsChange(){this.initState()}getCheckboxes(){return l(this.el,"bcm-checkbox:not(#bcm-indeterminate-element)")}async getCheckbox(e){const t=this.el.querySelector(`bcm-checkbox[id="${e}"]`);if(t){const e=t.name,i=await this.getValue(e);return{element:t,event:c((()=>i[e]),null)}}return{}}async indeterminateClick(){(e=>{var t;const i=g(e);if(!i.disabled){let n=!0;"determinate"===i.indeterminateState&&(n=!1),null===(t=g(e).childs)||void 0===t||t.map((e=>{e.checked=n})),b(e)}})(this._id),this.markForCheck()}async changeCheckBox(e){var t,i;null===(i=g((t={id:this._id,childId:e}).id).childs)||void 0===i||i.map((e=>{e.checked=e.id===t.childId?!e.checked:e.checked})),b(t.id),this.markForCheck(),await r(10),this.value=await this.getValue(),this.change.emit({value:this.value,changed:Object.assign({},await this.getCheckbox(e))}),this.groupCheckedList.emit(await this.getCheckedList())}getItems(){return f(this._id)}render(){const t=this.getItems(),{disabled:i,captionType:a,label:o,indeterminate:c,indeterminateState:h,required:r,direction:l,optionType:p,hidden:m,fullWidth:x,gap:g}=t,b=s("bcm-checkbox-group",l,p,{hidden:m,"full-width":x}),f=s("bcm-checkbox-group__container",p,{[l]:"default"===p,indeterminate:c,hidden:m,"full-width":x});return e(n,{class:b},e("span",{hidden:!0,id:`bcm-checkbox-group__items-${this._id}`},e("slot",null)),e("div",{class:"bcm-checkbox-group__label"},o&&e("div",null,e(d,{size:this.size,type:a,value:o,required:r}))),c&&e("bcm-checkbox",{onClick:e=>{this.indeterminateClick(),e.preventDefault()},"no-caption":!0,id:"bcm-indeterminate-element",indeterminate:h,disabled:i},"Check All"),e(u,{items:t,groupContainerClasses:f,customStyle:g&&{gap:g},onBcmSelect:e=>this.changeCheckBox(e)}))}get el(){return a(this)}static get watchers(){return{items:["handleItemsChange"]}}};(function(e,t,i,n){var a,s=arguments.length,o=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(o=(s<3?a(o):s>3?a(t,i,o):a(t,i))||o);s>3&&o&&Object.defineProperty(t,i,o)})([m()],y.prototype,"el",void 0),y.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-checkbox-group{display:flex;flex-direction:column;align-items:flex-start;width:100%;margin-bottom:8px}.bcm-checkbox-group.hidden{display:none}.bcm-checkbox-group__container{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;width:100%}.bcm-checkbox-group__container.full-width{max-width:100%}.bcm-checkbox-group__container.vertical{gap:8px;flex-direction:column}.bcm-checkbox-group__container.button{gap:unset}.bcm-checkbox-group__container.indeterminate{padding-top:16px;margin-top:16px;border-top:1px solid #efefef}';export{y as bcm_checkbox_group}
5
+ import{h as e,r as t,c as i,H as n,g as a}from"./p-e037ee2b.js";import{c as s}from"./p-bed627ab.js";import{G as o,s as c}from"./p-c5a2a4d3.js";import{B as h}from"./p-a313fba6.js";import{d as r,a as l}from"./p-3c7a0345.js";import{c as p}from"./p-197aba37.js";import{L as d}from"./p-3089e9c7.js";import{I as m}from"./p-8e5e362a.js";import"./p-e45c1546.js";import"./p-cca60157.js";import"./p-034bbcdd.js";const u=({customStyle:t,groupContainerClasses:i,onBcmSelect:n,items:a})=>e("div",{class:i,style:t},a.childs&&a.childs.map((t=>e("bcm-checkbox",{id:t.id,name:t.name,color:t.color,checked:t.checked,disabled:t.disabled,readonly:t.readonly,required:t.required,noCaption:t.noCaption,"no-margin":!0,size:t.size,"full-width":t.fullWidth,onClick:e=>{!t.disabled&&!t.readonly&&(n(t.id),e.preventDefault())}},t.slot||t.label)))),{state:x}=p({group:new Map,allChecked:!0,allUnchecked:!0,changeInderminate:{}}),g=e=>c((()=>x.group.get(e)),{}),b=e=>{var t;const i=g(e);let n=!0,a=!0;null===(t=i.childs)||void 0===t||t.map((e=>{e.checked&&(a=!1),!e.checked&&(n=!1)})),i.indeterminateState=n||a?n?"determinate":"uncheck":"indeterminate"},f=g;const y=class{constructor(e){t(this,e),this.change=i(this,"bcm-change",7),this.groupCheckedList=i(this,"bcm-group-checked-list",7),this._id=o.UID(),this.direction=h.Direction.horizontal,this.items=[],this.indeterminate=!1,this.name=void 0,this.value=void 0,this.disabled=!1,this.readonly=!1,this.hidden=!1,this.required=!1,this.label=void 0,this.gap=void 0,this.defaultValue=void 0,this.fullWidth=!1,this.optionType="default",this.buttonStyle="solid",this.size=h.Size.medium,this.caption=void 0,this.noCaption=!1,this.captionType=h.Status.default,this.tick={}}componentDidLoad(){this.initState()}disconnectedCallback(){Promise.resolve(x.group.delete(this._id))}componentShouldUpdate(e,t,i){"tick"==i&&e!==t&&c((()=>f(this._id).childs.length>0),!1)&&this.getValue().then((e=>this.value=e)),this.getOptions().indexOf(i)>-1&&e!==t&&this.initState()}getOptions(){return c((()=>Object.keys(x.group.get(this._id))),[])}async initState(){const{fullWidth:e,optionType:t,buttonStyle:i,size:n,noCaption:a,defaultValue:s,label:h,required:r,captionType:l,hidden:p,direction:d,indeterminate:m,gap:u,items:g}=this,b=s&&("string"==typeof s?JSON.parse(s):s),f=g.length>0?g:await this.getCheckboxes();await(async({fullWidth:e,optionType:t,buttonStyle:i,size:n,defaultCheckedItems:a,el:s,id:h,label:r,required:l,captionType:p,hidden:d,direction:m,childs:u,indeterminate:g,gap:b,noCaption:f})=>{s&&x.group.set(h,{fullWidth:e,optionType:t,buttonStyle:i,size:n,defaultCheckedItems:a,label:r,required:l,captionType:p,hidden:d,direction:m,indeterminate:g,gap:b,noCaption:f,childs:null==u?void 0:u.map((e=>(e.checked&&(x.allUnchecked=!1),!e.checked&&(x.allChecked=!1),t&&(e.optionType=t),i&&(e.buttonStyle=i),n&&(e.size=n),a&&a.find((t=>t===e.name))&&(e.checked=!0),e.noCaption=f,{id:e.id||o.UID(),checked:e.checked||!1,name:e.name,size:e.size,buttonStyle:e.buttonStyle,optionType:e.optionType,style:e.style,noCaption:e.noCaption,color:e.color,disabled:e.disabled,readonly:e.readonly,label:e.label||e.name,slot:e.slot||c((()=>e.querySelector(".slot").textContent),e.textContent),required:e.required||l,el:e,captionType:p,hidden:d}))),indeterminateState:x.allChecked||x.allUnchecked?x.allChecked?"determinate":"uncheck":"indeterminate"})})({id:this._id,el:this.el,indeterminate:m,fullWidth:e,optionType:t,buttonStyle:i,size:n,defaultCheckedItems:b,label:h,noCaption:a,required:r,captionType:l,hidden:p,gap:u,direction:d,childs:f});const y=this.el.querySelector(`#bcm-checkbox-group__items-${this._id}`);y&&y.innerHTML&&(y.innerHTML=""),this.value=await this.getValue()}async markForCheck(){await r(10),this.tick=o.UID()}async onBcmFocus(){const e=this.getCheckboxes();e.length>0&&e[0].onBcmFocus()}async onBcmBlur(){this.el.blur()}async setClear(){return null===(t=g(e=this._id).childs)||void 0===t||t.forEach((e=>{e.checked=!1})),b(e),await r(10),this.getCheckboxes().forEach((e=>{e.setClear()})),this.markForCheck(),await r(10),Promise.resolve();var e,t}async resetCaption(){return await r(10),this.getCheckboxes().forEach((e=>{e.resetCaption()})),await r(10),Promise.resolve()}async set(e){Array.isArray(e)&&await this.check(e,!0,!0)}async get(){const e=await this.getCheckedList()&&Object.keys(await this.getCheckedList());return e.length>0?e:[]}async check(e,t=!0,i=!1){((e,t,i,n)=>{var a;const s=t&&("string"==typeof t?JSON.parse(t):t);null===(a=g(e).childs)||void 0===a||a.forEach((e=>{if(s){const t=s.find((t=>t===e.name||t.name===e.name));t?"object"==typeof t?Object.keys(t).map((n=>{e.checked="checked"===n?t[n]:i})):e.checked=i:n&&(e.checked=!1)}else e.checked=!1})),b(e)})(this._id,e,t,i),this.markForCheck()}async getValue(e){return Promise.resolve(((e,t)=>{var i;const n=g(e);let a={};return null===(i=n.childs)||void 0===i||i.map((e=>{t?e.name===t&&(a[e.name]={value:!!e.checked,name:e.name}):a[e.name]={value:!!e.checked,name:e.name}})),a})(this._id,e))}async getCheckedList(){return(e=>{var t;const i=g(e);let n={};return null===(t=i.childs)||void 0===t||t.map((e=>{!0===e.checked&&(n[e.name]={value:!!e.checked,name:e.name})})),n})(this._id)}handleItemsChange(){this.initState()}getCheckboxes(){return l(this.el,"bcm-checkbox:not(#bcm-indeterminate-element)")}async getCheckbox(e){const t=this.el.querySelector(`bcm-checkbox[id="${e}"]`);if(t){const e=t.name,i=await this.getValue(e);return{element:t,event:c((()=>i[e]),null)}}return{}}async indeterminateClick(){(e=>{var t;const i=g(e);if(!i.disabled){let n=!0;"determinate"===i.indeterminateState&&(n=!1),null===(t=g(e).childs)||void 0===t||t.map((e=>{e.checked=n})),b(e)}})(this._id),this.markForCheck()}async changeCheckBox(e){var t,i;null===(i=g((t={id:this._id,childId:e}).id).childs)||void 0===i||i.map((e=>{e.checked=e.id===t.childId?!e.checked:e.checked})),b(t.id),this.markForCheck(),await r(10),this.value=await this.getValue(),this.change.emit({value:this.value,changed:Object.assign({},await this.getCheckbox(e))}),this.groupCheckedList.emit(await this.getCheckedList())}getItems(){return f(this._id)}render(){const t=this.getItems(),{disabled:i,captionType:a,label:o,indeterminate:c,indeterminateState:h,required:r,direction:l,optionType:p,hidden:m,fullWidth:x,gap:g}=t,b=s("bcm-checkbox-group",l,p,{hidden:m,"full-width":x}),f=s("bcm-checkbox-group__container",p,{[l]:"default"===p,indeterminate:c,hidden:m,"full-width":x});return e(n,{class:b},e("span",{hidden:!0,id:`bcm-checkbox-group__items-${this._id}`},e("slot",null)),e("div",{class:"bcm-checkbox-group__label"},o&&e("div",null,e(d,{size:this.size,type:a,value:o,required:r}))),c&&e("bcm-checkbox",{onClick:e=>{this.indeterminateClick(),e.preventDefault()},"no-caption":!0,id:"bcm-indeterminate-element",indeterminate:h,disabled:i},"Check All"),e(u,{items:t,groupContainerClasses:f,customStyle:g&&{gap:g},onBcmSelect:e=>this.changeCheckBox(e)}))}get el(){return a(this)}static get watchers(){return{items:["handleItemsChange"]}}};(function(e,t,i,n){var a,s=arguments.length,o=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(o=(s<3?a(o):s>3?a(t,i,o):a(t,i))||o);s>3&&o&&Object.defineProperty(t,i,o)})([m()],y.prototype,"el",void 0),y.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-checkbox-group{display:flex;flex-direction:column;align-items:flex-start;width:100%;margin-bottom:8px}.bcm-checkbox-group.hidden{display:none}.bcm-checkbox-group__container{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;width:100%}.bcm-checkbox-group__container.full-width{max-width:100%}.bcm-checkbox-group__container.vertical{gap:8px;flex-direction:column}.bcm-checkbox-group__container.button{gap:unset}.bcm-checkbox-group__container.indeterminate{padding-top:16px;margin-top:16px;border-top:1px solid #efefef}';export{y as bcm_checkbox_group}