@visitscotland/component-library 1.2.4 → 1.2.6

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 (635) hide show
  1. package/CHANGELOG.md +76 -42
  2. package/dist/client/manifest.json +2846 -2846
  3. package/dist/client/scripts/0058e51cf9beca82215e.js +1 -0
  4. package/dist/client/scripts/0070f6e4328b7b7bbb13.js +1 -0
  5. package/dist/client/scripts/01ae5aa4d688435b39e5.js +1 -0
  6. package/dist/client/scripts/{5762f7a4940b20aefaea.js → 02c68127f98c24471258.js} +1 -1
  7. package/dist/client/scripts/{a98d6b0d97382c33e536.js → 035d30b10746add36daa.js} +1 -1
  8. package/dist/client/scripts/0417fc052020a33950ae.js +1 -0
  9. package/dist/client/scripts/0487b1e2574f364f6310.js +1 -0
  10. package/dist/client/scripts/0683cefcc4072855c56c.js +1 -0
  11. package/dist/client/scripts/0734e59410f0b459524b.js +1 -0
  12. package/dist/client/scripts/{7b838e8e228f30ec854d.js → 083c827dcc0f2d9e5780.js} +1 -1
  13. package/dist/client/scripts/{7f83d401a3c3d51c0872.js → 08e6965a315fceda5e4d.js} +1 -1
  14. package/dist/client/scripts/{d478f617c2041966295f.js → 093803a300edf6633d81.js} +1 -1
  15. package/dist/client/scripts/{151bb774fb3607f12939.js → 0a9c326ae00d36e1d574.js} +1 -1
  16. package/dist/client/scripts/0b5e416f8a90205a331a.js +1 -0
  17. package/dist/client/scripts/0cc32e9289583f3f1bb9.js +1 -0
  18. package/dist/client/scripts/0ce0abe48503fea909ad.js +1 -0
  19. package/dist/client/scripts/{0e71a3754ab3b51d740c.js → 0ce70121592336a3add1.js} +1 -1
  20. package/dist/client/scripts/0ceb37334ea02e6f1c0d.js +1 -0
  21. package/dist/client/scripts/0d88557af09716e38af0.js +1 -0
  22. package/dist/client/scripts/0f7f3d35b2d343efc11b.js +1 -0
  23. package/dist/client/scripts/{1317a198aa31b1ae3e9a.js → 0fff4d561dd349fe66ad.js} +1 -1
  24. package/dist/client/scripts/11d9b206e769992515bb.js +1 -0
  25. package/dist/client/scripts/123698ad14fec3e5129e.js +1 -0
  26. package/dist/client/scripts/137e2b2cb7b2293d2441.js +1 -0
  27. package/dist/client/scripts/1643a145a5c10e5c5e68.js +1 -0
  28. package/dist/client/scripts/{632172856569cdcf2708.js → 164b776196f535a0e429.js} +1 -1
  29. package/dist/client/scripts/{7c8b7d76d07691a1669c.js → 170ec1b6c062ec29fae2.js} +1 -1
  30. package/dist/client/scripts/{b3dbfa5eaf60d65f6246.js → 18b549b85fb0e466f740.js} +1 -1
  31. package/dist/client/scripts/{0048758394b6e8d482bc.js → 18bbe27a259e8ac57b43.js} +1 -1
  32. package/dist/client/scripts/19e43fc6ce229e1c3cd4.js +1 -0
  33. package/dist/client/scripts/{b060a8639e7da57840a8.js → 1a8ef0813075039f54ce.js} +1 -1
  34. package/dist/client/scripts/1ac5395f2296660591d2.js +1 -0
  35. package/dist/client/scripts/1adc3be846e698b5ec32.js +1 -0
  36. package/dist/client/scripts/{6d5dc06ce4890a06de70.js → 1cfd005a8f874781b95d.js} +1 -1
  37. package/dist/client/scripts/1d770081f27661096d96.js +1 -0
  38. package/dist/client/scripts/{5592613632aeb94cce53.js → 1d9f36fa7efeb3b89c8d.js} +1 -1
  39. package/dist/client/scripts/{81aa2e01a378c15eded2.js → 1e8655ed53c2a2a44bf9.js} +1 -1
  40. package/dist/client/scripts/1ed0820f6a45748fc81d.js +1 -0
  41. package/dist/client/scripts/{7aa2c6511679558bfc66.js → 1f5c9978ab28bbf2af69.js} +1 -1
  42. package/dist/client/scripts/1fd0a705d4d869e69eb2.js +1 -0
  43. package/dist/client/scripts/{5327392b5c18e07ef06e.js → 204db2f88d59e38d7650.js} +1 -1
  44. package/dist/client/scripts/{e8fb90a700304d842788.js → 20c080d0b43ad3eb1d8a.js} +1 -1
  45. package/dist/client/scripts/2248bca396951747d66e.js +1 -0
  46. package/dist/client/scripts/235a18d6038ff05d033c.js +1 -0
  47. package/dist/client/scripts/24c4082fc485d84b67c8.js +1 -0
  48. package/dist/client/scripts/263010f0e62d73e284cb.js +1 -0
  49. package/dist/client/scripts/26cb76af128e1b24a45d.js +1 -0
  50. package/dist/client/scripts/{8c9524300cf7fd22ed26.js → 271f7682547499dcf898.js} +2 -2
  51. package/dist/client/scripts/{b4e80cc01e9eecda9299.js → 2884cf99dd6dcb5c1abb.js} +1 -1
  52. package/dist/client/scripts/2901ecfedc6f54daf93c.js +1 -0
  53. package/dist/client/scripts/{63f5e4eb49ec038b3d1c.js → 295ef5761396d069c2ff.js} +1 -1
  54. package/dist/client/scripts/{71d840709f7d3816e49a.js → 29cc28fa47fded127724.js} +1 -1
  55. package/dist/client/scripts/2b78b6912d24e7edfab5.js +1 -0
  56. package/dist/client/scripts/2c898ebdfe4fcbd2e3fb.js +1 -0
  57. package/dist/client/scripts/2cb03f94f6a4d03e1a37.js +1 -0
  58. package/dist/client/scripts/{e56895b9367259d8b25f.js → 2e3bdc52a087dbedd7e3.js} +1 -1
  59. package/dist/client/scripts/2e823faa96028d47c4b8.js +1 -0
  60. package/dist/client/scripts/{41bafdb9176c11d914bd.js → 2fafb1ddb2ba71166a94.js} +1 -1
  61. package/dist/client/scripts/309adeacbd2087e2b2cc.js +1 -0
  62. package/dist/client/scripts/{d9592bf81bd4a2be325c.js → 3123c23c6e68c28214ca.js} +1 -1
  63. package/dist/client/scripts/31c0fdda27e0415c26bb.js +2 -0
  64. package/dist/client/scripts/32e3e6c9c91fd60d92d6.js +1 -0
  65. package/dist/client/scripts/331c3ac331aad2080cce.js +1 -0
  66. package/dist/client/scripts/3347507d7052bf1bad3e.js +1 -0
  67. package/dist/client/scripts/354851aad807fe0edea9.js +2 -0
  68. package/dist/client/scripts/35d62fab93bbdf0a0bb7.js +1 -0
  69. package/dist/client/scripts/{25866d369c14e0facdf7.js → 37423815e0fade194a9e.js} +1 -1
  70. package/dist/client/scripts/379ee863a468158f6751.js +1 -0
  71. package/dist/client/scripts/3802313ba336b681066d.js +1 -0
  72. package/dist/client/scripts/{7a27cc4d7ffcc1aaf238.js → 388db680223dd6545365.js} +1 -1
  73. package/dist/client/scripts/3aa7f3f14c7b9722cd87.js +1 -0
  74. package/dist/client/scripts/3b1eb1e8daddf46c1131.js +1 -0
  75. package/dist/client/scripts/3c50aacd63b122739fd9.js +1 -0
  76. package/dist/client/scripts/{11f13af42063220590bf.js → 3cb454a800fd594334fa.js} +1 -1
  77. package/dist/client/scripts/3e94b15ce58bd8e3e854.js +2 -0
  78. package/dist/client/scripts/3e94b15ce58bd8e3e854.js.LICENSE.txt +17 -0
  79. package/dist/client/scripts/40164161239257b83871.js +1 -0
  80. package/dist/client/scripts/{8b255a79b13637dd0978.js → 4022847033b38b4d10fb.js} +1 -1
  81. package/dist/client/scripts/4138f7b87b046e2c68c2.js +1 -0
  82. package/dist/client/scripts/425ad171bb504d2217bf.js +1 -0
  83. package/dist/client/scripts/42bcfd6efa05d78377f1.js +1 -0
  84. package/dist/client/scripts/47afbbef12c7fa223deb.js +2 -0
  85. package/dist/client/scripts/{2712b20168c9c13c6e50.js → 4852c5b1f37b7b46af28.js} +1 -1
  86. package/dist/client/scripts/4879ba407fdba8a7a2a1.js +1 -0
  87. package/dist/client/scripts/48b0882064749c171466.js +1 -0
  88. package/dist/client/scripts/49146a9ee6f81450161a.js +1 -0
  89. package/dist/client/scripts/49900d50fd3a91e8b6d2.js +1 -0
  90. package/dist/client/scripts/4b293e40b273df7d858e.js +1 -0
  91. package/dist/client/scripts/{eaa0dddb081e6e4b7f20.js → 4b3a348a78fa73ced04e.js} +1 -1
  92. package/dist/client/scripts/{8c3c0ac5037420046717.js → 4c47cd2fcc76474d5bdc.js} +1 -1
  93. package/dist/client/scripts/503598fe9dfa48851346.js +1 -0
  94. package/dist/client/scripts/5075b71a043e489eef48.js +1 -0
  95. package/dist/client/scripts/{563d757412adb6b9e59e.js → 509eb5f90ead5e619c64.js} +1 -1
  96. package/dist/client/scripts/{12922f023af100641452.js → 526140ab12015d94ad99.js} +1 -1
  97. package/dist/client/scripts/52a723d2dac6bf68c1cb.js +1 -0
  98. package/dist/client/scripts/{c5d3264f5cf56a461a54.js → 53742b41965e214b886d.js} +1 -1
  99. package/dist/client/scripts/53d7dd495d17b303e701.js +1 -0
  100. package/dist/client/scripts/5470e4ec7e8eb125d371.js +1 -0
  101. package/dist/client/scripts/55ca3b43293bb9670605.js +1 -0
  102. package/dist/client/scripts/58870f77951fa5344427.js +1 -0
  103. package/dist/client/scripts/58c7c38cc123323b7490.js +1 -0
  104. package/dist/client/scripts/5b40f454bccd7d56dec6.js +1 -0
  105. package/dist/client/scripts/5bcd979b997184f21773.js +1 -0
  106. package/dist/client/scripts/{11f436f0f37dadd845a2.js → 5d326f184ed0e55d85fb.js} +1 -1
  107. package/dist/client/scripts/5df10e6f27ff9e4e0da5.js +1 -0
  108. package/dist/client/scripts/{fafea857d4fa8b72df2f.js → 5eb25dee7ad50f2f23b9.js} +1 -1
  109. package/dist/client/scripts/{bf3e6b1ae9119dc7badc.js → 60a7732cf64949c00d14.js} +1 -1
  110. package/dist/client/scripts/60a9fb3fc751f543bbb0.js +1 -0
  111. package/dist/client/scripts/{ded6121ff7ca9a4cc8c1.js → 60c46bfb70eafedac218.js} +1 -1
  112. package/dist/client/scripts/60e0a3bec400f8a7f509.js +1 -0
  113. package/dist/client/scripts/6165a721b13838adaf59.js +1 -0
  114. package/dist/client/scripts/{6c427ceca8de23d4150e.js → 6167fa40783b53690cb6.js} +1 -1
  115. package/dist/client/scripts/6168b0e9a1a887ba968d.js +1 -0
  116. package/dist/client/scripts/{63e51118c4a439ece45d.js → 63c04419ffe133a4b25e.js} +1 -1
  117. package/dist/client/scripts/647d66d47c100dfe0392.js +1 -0
  118. package/dist/client/scripts/65e49c11683dca5f15ad.js +1 -0
  119. package/dist/client/scripts/{f7fb2a6f2ce96ed16344.js → 6674395f0dc4f8ee6fa3.js} +1 -1
  120. package/dist/client/scripts/671adc68de28b79a97ce.js +1 -0
  121. package/dist/client/scripts/68ed4462b6dca7a72ca9.js +1 -0
  122. package/dist/client/scripts/{b6f9c4f35a412d491df2.js → 6969571e821a6dbb75a5.js} +1 -1
  123. package/dist/client/scripts/6cb962c5ee441596a578.js +1 -0
  124. package/dist/client/scripts/6cc280ef5ade0034cc0e.js +1 -0
  125. package/dist/client/scripts/6da0ee2496a4fa0afc40.js +1 -0
  126. package/dist/client/scripts/6dfa01efae3651f3de5d.js +1 -0
  127. package/dist/client/scripts/6f33e69d900a2ca30c43.js +1 -0
  128. package/dist/client/scripts/724349f2c98582069348.js +1 -0
  129. package/dist/client/scripts/7357b873c606e1dec70e.js +1 -0
  130. package/dist/client/scripts/{20eb4007538e7633fe8a.js → 73b0a89cadc1a2cd1c0a.js} +1 -1
  131. package/dist/client/scripts/74c463e40351199b7bbd.js +1 -0
  132. package/dist/client/scripts/{cf0414a0f6087ba3e545.js → 75e0a902418739aa9e08.js} +1 -1
  133. package/dist/client/scripts/75ff5665bd6a1709bbb6.js +1 -0
  134. package/dist/client/scripts/{cdb89f2eac824cad3db5.js → 763535223159d3d20348.js} +1 -1
  135. package/dist/client/scripts/{03eaf217f05715069aa6.js → 771546d3750b92d1ad9b.js} +1 -1
  136. package/dist/client/scripts/77b4dbf5c30f2cae62b0.js +1 -0
  137. package/dist/client/scripts/77fb1b8b237c6899f8cd.js +1 -0
  138. package/dist/client/scripts/78470963ca61ec58ea27.js +1 -0
  139. package/dist/client/scripts/79319017f0dd4eeb450e.js +1 -0
  140. package/dist/client/scripts/79bae102acd8c4ff24f7.js +1 -0
  141. package/dist/client/scripts/{c7bd89e23039f7989eff.js → 7a7473fbb507c584285f.js} +1 -1
  142. package/dist/client/scripts/{c1169fba243be6a6364c.js → 7b8401010388a5e70a19.js} +1 -1
  143. package/dist/client/scripts/{c4bfe81e8f548b30f022.js → 7d10e91a3d044f90e9be.js} +1 -1
  144. package/dist/client/scripts/7d84b2c20b88515f67e0.js +1 -0
  145. package/dist/client/scripts/7da678b31b7a7e076bcb.js +1 -0
  146. package/dist/client/scripts/{a9a666a47ed3ec85c93a.js → 7e3c5896cd2189ff2d56.js} +1 -1
  147. package/dist/client/scripts/{cc25fd273d2ddcc1aac5.js → 7f5be8e33fcdef97fdd2.js} +1 -1
  148. package/dist/client/scripts/7fe1a5fd9a2cb5f1b8e5.js +1 -0
  149. package/dist/client/scripts/80a9b09ae2a9a9931672.js +1 -0
  150. package/dist/client/scripts/{f6e52a8833767158048e.js → 815fdf1b0d37d01fe128.js} +1 -1
  151. package/dist/client/scripts/8164557835298966710b.js +1 -0
  152. package/dist/client/scripts/817ca4e58389415c5cd8.js +1 -0
  153. package/dist/client/scripts/817cd8428463843b630d.js +1 -0
  154. package/dist/client/scripts/84da107d5b9b8894130b.js +1 -0
  155. package/dist/client/scripts/854c817bf32899ca1220.js +1 -0
  156. package/dist/client/scripts/85b1a65daed48c5d3954.js +1 -0
  157. package/dist/client/scripts/85b9b130a2c910917734.js +1 -0
  158. package/dist/client/scripts/85e219aef05a07f5b9c4.js +1 -0
  159. package/dist/client/scripts/864e471ccca20b13cd0a.js +1 -0
  160. package/dist/client/scripts/{74eb7bedf8d47aa2d3cd.js → 877cfdab278e32f30ded.js} +1 -1
  161. package/dist/client/scripts/{02fc922908e81c0ee3eb.js → 89fcac5c41811e5e91d6.js} +1 -1
  162. package/dist/client/scripts/8a5903f24e3f558eee43.js +1 -0
  163. package/dist/client/scripts/8a6ce17f500b3b374e29.js +1 -0
  164. package/dist/client/scripts/8b3da1795614c504bbd8.js +1 -0
  165. package/dist/client/scripts/8b6c4f5635a9695a4421.js +1 -0
  166. package/dist/client/scripts/{ebc0b816e3569f39d745.js → 8baaa827d4ab75787c01.js} +1 -1
  167. package/dist/client/scripts/{dbf579f89e18f7e2f19d.js → 8c3bcd0b3dc089c930cb.js} +1 -1
  168. package/dist/client/scripts/8c5f18e5b1accb442575.js +1 -0
  169. package/dist/client/scripts/8e93e4524ce7862f7537.js +1 -0
  170. package/dist/client/scripts/909c66539672f861d077.js +1 -0
  171. package/dist/client/scripts/90d257a3fd7dd28325e8.js +1 -0
  172. package/dist/client/scripts/92f5e285f040fd027365.js +1 -0
  173. package/dist/client/scripts/93d7a69b2ec3fe80062c.js +2 -0
  174. package/dist/client/scripts/93d7a69b2ec3fe80062c.js.LICENSE.txt +7 -0
  175. package/dist/client/scripts/94010f67bda9db84b427.js +1 -0
  176. package/dist/client/scripts/957e73b6cdd9a5174ea0.js +1 -0
  177. package/dist/client/scripts/95d9a7d92f14ab401af6.js +1 -0
  178. package/dist/client/scripts/{b195a291a3b5b95d6bcc.js → 977a2ffb97381f23a9aa.js} +1 -1
  179. package/dist/client/scripts/982435253f485eb98085.js +1 -0
  180. package/dist/client/scripts/986dbf3e9f8e131da133.js +1 -0
  181. package/dist/client/scripts/{cde0cae654f0a158876f.js → 9880fa8cd225ef3104b2.js} +1 -1
  182. package/dist/client/scripts/99459701bd0fb669bdd2.js +1 -0
  183. package/dist/client/scripts/9a2fb2076e94995f7597.js +1 -0
  184. package/dist/client/scripts/9a7d39253564fd2e1cae.js +1 -0
  185. package/dist/client/scripts/9c874437553da6dc78ff.js +1 -0
  186. package/dist/client/scripts/9cbc07f4d481aab1b2bd.js +1 -0
  187. package/dist/client/scripts/{13ebee04e3f0e1376c94.js → 9cd099128f912b84ac14.js} +1 -1
  188. package/dist/client/scripts/{c9b6588e4f41770e8f4f.js → 9e810d4201940d9db834.js} +1 -1
  189. package/dist/client/scripts/{46de223a099a438f26ca.js → 9e8c2c02ac1b93811be6.js} +1 -1
  190. package/dist/client/scripts/9ff0516b7bfdea8308bf.js +1 -0
  191. package/dist/client/scripts/{72b9a67368684303997b.js → a0df22f031ab4933969e.js} +1 -1
  192. package/dist/client/scripts/a388d0eb0a3d70494547.js +1 -0
  193. package/dist/client/scripts/{b98cc4d8c07f45d33f53.js → a5511f34db6dc5143295.js} +1 -1
  194. package/dist/client/scripts/{f0ace57b15d221a4b1dd.js → a578b97ac844f4d3c293.js} +1 -1
  195. package/dist/client/scripts/{cba7391cbb3beaa85c88.js → a5d58b6b2f4ea3358800.js} +1 -1
  196. package/dist/client/scripts/a7a954f3dcda462c4c75.js +1 -0
  197. package/dist/client/scripts/{8454885ba8fab29b5d0d.js → a8800d494611cc569e21.js} +1 -1
  198. package/dist/client/scripts/a914f0c5b718f4fd0ff7.js +1 -0
  199. package/dist/client/scripts/a97aa57a8af5dc60247c.js +1 -0
  200. package/dist/client/scripts/ab1418f56f7c58983654.js +1 -0
  201. package/dist/client/scripts/ac39dfbd71fe34888d28.js +1 -0
  202. package/dist/client/scripts/{ea2835f3910aea156e35.js → acd4fc4c156dd96c9e81.js} +1 -1
  203. package/dist/client/scripts/ae78317c6fd807aa1812.js +1 -0
  204. package/dist/client/scripts/{75fc4fd94246e2be9377.js → ae80f8dbe4440ac19971.js} +1 -1
  205. package/dist/client/scripts/b0c3fabcdbff6eeee0d6.js +1 -0
  206. package/dist/client/scripts/b0ddc3f182a3bd4fa223.js +1 -0
  207. package/dist/client/scripts/b25a7a7c645b442f2cb1.js +1 -0
  208. package/dist/client/scripts/b4ac4b0a256c4a71cf94.js +1 -0
  209. package/dist/client/scripts/b53b31fd024575592a43.js +1 -0
  210. package/dist/client/scripts/{3e435b50bc63e29266b9.js → b6d9fff1e7a140d575ef.js} +1 -1
  211. package/dist/client/scripts/{2de135194d1e45985ba4.js → b713e256f3299f6d121e.js} +1 -1
  212. package/dist/client/scripts/b75591e132f60edaf09c.js +1 -0
  213. package/dist/client/scripts/{46d5ba41850075f7cc73.js → b7d04f8e8ffda7f799eb.js} +1 -1
  214. package/dist/client/scripts/b7d1f3e1a52aa8f94d6b.js +1 -0
  215. package/dist/client/scripts/b9f4b63d7ae1f3121d43.js +1 -0
  216. package/dist/client/scripts/{f3bc19131428610ea753.js → be074aea1a1c894813c3.js} +1 -1
  217. package/dist/client/scripts/bed08d5306b416896ab5.js +1 -0
  218. package/dist/client/scripts/c06185e3c65c83e8f07f.js +1 -0
  219. package/dist/client/scripts/c096a33e3f98d7189e7c.js +1 -0
  220. package/dist/client/scripts/{e0da30104153dbb54c67.js → c15047a96e386d1f8d1b.js} +1 -1
  221. package/dist/client/scripts/{bef068e7cf1131aec4fc.js → c1589526b8d02cacaabc.js} +1 -1
  222. package/dist/client/scripts/c1ff8ce623f96a6a8586.js +1 -0
  223. package/dist/client/scripts/c327a6bf88a0ee85ad86.js +1 -0
  224. package/dist/client/scripts/{034b8df71be04c340505.js → c4e94776369adcb2aa15.js} +1 -1
  225. package/dist/client/scripts/{12e795abdc56f59ca901.js → c54145b7f93bd480c515.js} +1 -1
  226. package/dist/client/scripts/{bff9daa98878422cbc2b.js → c5709cc9e4b27710449e.js} +1 -1
  227. package/dist/client/scripts/{2bb287946080ff73bedc.js → c5a5461097d83b37a923.js} +1 -1
  228. package/dist/client/scripts/{cea2da948222f02d34f5.js → c677d5cc5c5da1b46258.js} +1 -1
  229. package/dist/client/scripts/c6a23518b935a5dc0c1c.js +1 -0
  230. package/dist/client/scripts/{07ad23790991e475bc52.js → c6c9de733e49ca47091d.js} +1 -1
  231. package/dist/client/scripts/{601f8151c56a0550f872.js → c97dc6520fa09a548af2.js} +1 -1
  232. package/dist/client/scripts/ca762d60f1565150f48d.js +1 -0
  233. package/dist/client/scripts/{a8d64c5280bb2ac5ed9a.js → ca8e22199e63eb46cd24.js} +1 -1
  234. package/dist/client/scripts/{18c54b35f04903c78c46.js → cd77783841267fce2a6a.js} +1 -1
  235. package/dist/client/scripts/{9a7e515b4274dd498bfb.js → cfc87b9e1e242763f903.js} +1 -1
  236. package/dist/client/scripts/d2cf2fbd6c291d16a040.js +1 -0
  237. package/dist/client/scripts/d4704f635190659dc1b3.js +1 -0
  238. package/dist/client/scripts/d4c8f55c8d3059d63f4e.js +1 -0
  239. package/dist/client/scripts/d4e6b6c03c9289444afc.js +2 -0
  240. package/dist/client/scripts/d84a7a5c8b89a3d3bc26.js +1 -0
  241. package/dist/client/scripts/d985a7849d3e085d1db4.js +1 -0
  242. package/dist/client/scripts/db0898092a177d20e122.js +1 -0
  243. package/dist/client/scripts/{a91b5c882877f8a81104.js → dbbf8e88dd40062b4369.js} +1 -1
  244. package/dist/client/scripts/dbd95f76ea3e06c9d200.js +1 -0
  245. package/dist/client/scripts/dbf333b5272a6eb35964.js +1 -0
  246. package/dist/client/scripts/dca41fd0f3e6cf221423.js +1 -0
  247. package/dist/client/scripts/{85a038181804cb5be829.js → dcb7a72d87b8e9a6e3f4.js} +1 -1
  248. package/dist/client/scripts/{452feb9e34b28d78672b.js → ddecb3bc31ae056cb36b.js} +1 -1
  249. package/dist/client/scripts/debbe807dcfd753396f4.js +1 -0
  250. package/dist/client/scripts/dffa104cd68682cd0b92.js +1 -0
  251. package/dist/client/scripts/e01caa277215b87f0eb9.js +1 -0
  252. package/dist/client/scripts/e158889fbe12f1bbf47e.js +1 -0
  253. package/dist/client/scripts/e1c87b6dce10d6faae8d.js +1 -0
  254. package/dist/client/scripts/e1f4422124e85fdd4e97.js +1 -0
  255. package/dist/client/scripts/e270c5c557ad5d9848f1.js +1 -0
  256. package/dist/client/scripts/{99da900dc35ff7e420a3.js → e28403327eb53d8fdc91.js} +1 -1
  257. package/dist/client/scripts/e2aadef1c555d5b318d2.js +1 -0
  258. package/dist/client/scripts/e3671506dec1029df0d5.js +1 -0
  259. package/dist/client/scripts/e38c91bb0a24a048a265.js +1 -0
  260. package/dist/client/scripts/e61eff0a2bed0b318dcc.js +1 -0
  261. package/dist/client/scripts/{3f4ab779ae5777947c00.js → e71b8d3eced7b663cf50.js} +1 -1
  262. package/dist/client/scripts/e74ea8fc175ef60d4401.js +1 -0
  263. package/dist/client/scripts/{60ffe92d20203f5bd486.js → e7edc83e351becbe4120.js} +1 -1
  264. package/dist/client/scripts/e9b8f37128fa40865c66.js +1 -0
  265. package/dist/client/scripts/e9e7369e9cce050cb012.js +1 -0
  266. package/dist/client/scripts/ec2b2291d32c814ba275.js +1 -0
  267. package/dist/client/scripts/ec8c9e0abb3ab3b191d8.js +1 -0
  268. package/dist/client/scripts/ede3585d1b41cb9aac53.js +1 -0
  269. package/dist/client/scripts/ee3ce31a7f8de4511ca6.js +1 -0
  270. package/dist/client/scripts/{edb8f7c96c9ba0f1d32c.js → efa2d4d5a6bb40d489d3.js} +1 -1
  271. package/dist/client/scripts/efc6bd6b83a8e8c0365f.js +1 -0
  272. package/dist/client/scripts/f0ffe574786626140dc0.js +1 -0
  273. package/dist/client/scripts/f1978a0a0ddf375fd209.js +1 -0
  274. package/dist/client/scripts/{1f96056b6cd82afbba07.js → f1be7869f611184dcff5.js} +1 -1
  275. package/dist/client/scripts/f20807de093e9420d970.js +1 -0
  276. package/dist/client/scripts/{a98c88e1fcad8dc6ea97.js → f2bb0ebed48f16fd3fdf.js} +1 -1
  277. package/dist/client/scripts/f39cf94c60bb74a2233f.js +1 -0
  278. package/dist/client/scripts/f40638c93fb24945e131.js +1 -0
  279. package/dist/client/scripts/f41595c1dd6098b4ad81.js +2 -0
  280. package/dist/client/scripts/f41595c1dd6098b4ad81.js.LICENSE.txt +20 -0
  281. package/dist/client/scripts/{c0bf82d305c619d1cdd5.js → f6fe7dcddc12f0517954.js} +1 -1
  282. package/dist/client/scripts/f8999c3eaf59505e8d0b.js +1 -0
  283. package/dist/client/scripts/f939dfb1a1049d34c303.js +1 -0
  284. package/dist/client/scripts/faa1e9c9dadd2517314e.js +1 -0
  285. package/dist/client/scripts/fb0a1e90c69a665a09f6.js +1 -0
  286. package/dist/client/scripts/fc6ec4e10fe8af845e23.js +1 -0
  287. package/dist/client/scripts/{d871947b008f92ea7a01.js → fdfec98f7982269f1b48.js} +1 -1
  288. package/dist/client/scripts/fe7912b41f9ee16f6340.js +1 -0
  289. package/dist/client/scripts/fec34f92c7bec94f2b5b.js +1 -0
  290. package/dist/client/scripts/{a117ed954221bc8d8c73.js → ff67f120db80ec17ff8d.js} +1 -1
  291. package/dist/client/styles/{aa65e566cb2aef28cbb1.css → 263010f0e62d73e284cb.css} +1 -1
  292. package/dist/client/styles/2901ecfedc6f54daf93c.css +1 -0
  293. package/dist/client/styles/{58d2233b5046715e2f5a.css → 2e823faa96028d47c4b8.css} +1 -1
  294. package/dist/client/styles/{521b59d3a8bddec8bea7.css → 65e49c11683dca5f15ad.css} +1 -1
  295. package/dist/client/styles/{a3954715d0d20dc1a4a7.css → 6da0ee2496a4fa0afc40.css} +1 -1
  296. package/dist/client/styles/{d2e981d125aa8ae0d301.css → 6f33e69d900a2ca30c43.css} +1 -1
  297. package/dist/client/styles/94010f67bda9db84b427.css +1 -0
  298. package/dist/client/styles/{c0b846c700ebc9a492f8.css → e01caa277215b87f0eb9.css} +1 -1
  299. package/dist/client/styles/{4b437ed16c72072f2a17.css → e158889fbe12f1bbf47e.css} +1 -1
  300. package/dist/ssr/index.js +1 -1
  301. package/dist/ssr/manifest.json +1 -1
  302. package/dist/ssr/styles/{f3fcb1b678835b80a402.css → eee9825cdecd325af9f2.css} +9 -9
  303. package/package.json +2 -1
  304. package/dist/client/scripts/00f15476517af0b5a1f2.js +0 -1
  305. package/dist/client/scripts/0198433ee96176d3f54a.js +0 -1
  306. package/dist/client/scripts/03281720f9c418da95a6.js +0 -1
  307. package/dist/client/scripts/03ec6e964a0ff5862e08.js +0 -1
  308. package/dist/client/scripts/041c8878e2a07d21b091.js +0 -1
  309. package/dist/client/scripts/0430ff9a8c4c096072a7.js +0 -1
  310. package/dist/client/scripts/05086bfb77b6e912cf8c.js +0 -1
  311. package/dist/client/scripts/05fe2296fd499a47eb99.js +0 -1
  312. package/dist/client/scripts/06ecbee150c75e16be7f.js +0 -1
  313. package/dist/client/scripts/082b491b3eb3b717cf15.js +0 -1
  314. package/dist/client/scripts/0ad805848777b94079c5.js +0 -1
  315. package/dist/client/scripts/0c9fb82fe75630787981.js +0 -1
  316. package/dist/client/scripts/0f1e3a4a6b8c83378d39.js +0 -1
  317. package/dist/client/scripts/12de266b35aa8e65e1c1.js +0 -1
  318. package/dist/client/scripts/167d6e6a141cb1710886.js +0 -1
  319. package/dist/client/scripts/16d0e96bbae2014368b2.js +0 -1
  320. package/dist/client/scripts/17927e88d9a2b1b05c2e.js +0 -1
  321. package/dist/client/scripts/17dfeb8e26b8e1ad6ea5.js +0 -1
  322. package/dist/client/scripts/189658afa5a36b580824.js +0 -1
  323. package/dist/client/scripts/197a7df82e6776743f87.js +0 -1
  324. package/dist/client/scripts/1a3ce17c60acb8d687bc.js +0 -1
  325. package/dist/client/scripts/1af1ae7f6657ae5d6fe8.js +0 -1
  326. package/dist/client/scripts/1deeab9613bcb36c9e6b.js +0 -1
  327. package/dist/client/scripts/1f78df6704ddbbe46ffe.js +0 -1
  328. package/dist/client/scripts/1fdf95529d6f883d20b0.js +0 -1
  329. package/dist/client/scripts/211741c631c3926778f8.js +0 -1
  330. package/dist/client/scripts/214bbfa3c282cca8c2da.js +0 -1
  331. package/dist/client/scripts/21dddd8af051d96180fc.js +0 -1
  332. package/dist/client/scripts/22f01a2f87cbefad1903.js +0 -1
  333. package/dist/client/scripts/23e1e23d4c7a09572a01.js +0 -1
  334. package/dist/client/scripts/25082174877cf8d8a89f.js +0 -1
  335. package/dist/client/scripts/2677dc59a2ade4b5c54d.js +0 -1
  336. package/dist/client/scripts/271c06f7f13f59c99611.js +0 -1
  337. package/dist/client/scripts/2c0f7eb6c28d72147f56.js +0 -1
  338. package/dist/client/scripts/2dda780861da53692712.js +0 -1
  339. package/dist/client/scripts/2e4a93ab6f69afaa5859.js +0 -1
  340. package/dist/client/scripts/2e6bbc7af3d8d79f9d0f.js +0 -1
  341. package/dist/client/scripts/2edf5eac683dd24e7638.js +0 -1
  342. package/dist/client/scripts/2f754dc4d336264fd2f9.js +0 -1
  343. package/dist/client/scripts/2f7afccf97ac350d177a.js +0 -1
  344. package/dist/client/scripts/302ea6eacdd107615b51.js +0 -1
  345. package/dist/client/scripts/32f42eafc6c71ff8103a.js +0 -1
  346. package/dist/client/scripts/33d631a4b8c9c9ce132a.js +0 -1
  347. package/dist/client/scripts/33dc8747100e87e855bd.js +0 -1
  348. package/dist/client/scripts/3426c1b1b43fe0147f56.js +0 -1
  349. package/dist/client/scripts/34aec8924a83fd5f6f22.js +0 -1
  350. package/dist/client/scripts/3533956d8af4ae967e7b.js +0 -1
  351. package/dist/client/scripts/35bba8ee403d657ceb4c.js +0 -1
  352. package/dist/client/scripts/366e315810e7bed6a183.js +0 -1
  353. package/dist/client/scripts/384caa043e109a8669bc.js +0 -1
  354. package/dist/client/scripts/387e08d2f2ebfacfe4a4.js +0 -1
  355. package/dist/client/scripts/3a2f61b64dcbdf73305a.js +0 -1
  356. package/dist/client/scripts/3b755853bfeb24d964da.js +0 -1
  357. package/dist/client/scripts/3c71d5bc38475cf988e5.js +0 -1
  358. package/dist/client/scripts/3ca9d97f581313d27bb1.js +0 -1
  359. package/dist/client/scripts/3d9476f5998307541a6c.js +0 -1
  360. package/dist/client/scripts/3f32ccdef94994226dc3.js +0 -1
  361. package/dist/client/scripts/3f7ac6ae45f4f9c4e23a.js +0 -1
  362. package/dist/client/scripts/4055c89cfcc61f835ca3.js +0 -1
  363. package/dist/client/scripts/4370bd8a4ed847ed5b89.js +0 -1
  364. package/dist/client/scripts/43714ea837692aa97133.js +0 -1
  365. package/dist/client/scripts/45156bfddf09aeaac220.js +0 -1
  366. package/dist/client/scripts/459ee91db3eff506960f.js +0 -1
  367. package/dist/client/scripts/479daf25bf6ad2ec1ad6.js +0 -1
  368. package/dist/client/scripts/4904b1a2bb9ea6089723.js +0 -1
  369. package/dist/client/scripts/4b136e83719c06759eac.js +0 -1
  370. package/dist/client/scripts/4b437ed16c72072f2a17.js +0 -1
  371. package/dist/client/scripts/4cf18cf9660f33e86609.js +0 -1
  372. package/dist/client/scripts/4dc8a7ac50cf28f0472b.js +0 -1
  373. package/dist/client/scripts/4f84d4b0f921eaecb224.js +0 -1
  374. package/dist/client/scripts/4fb8c86a3fcc6a2a378e.js +0 -1
  375. package/dist/client/scripts/4fbfd4b13c54920b632d.js +0 -2
  376. package/dist/client/scripts/4fbfd4b13c54920b632d.js.LICENSE.txt +0 -1
  377. package/dist/client/scripts/51aa2bbb84e4715a8287.js +0 -1
  378. package/dist/client/scripts/521b59d3a8bddec8bea7.js +0 -1
  379. package/dist/client/scripts/529b8f3b966ee3957ea9.js +0 -1
  380. package/dist/client/scripts/534d53dc0e9726294d26.js +0 -1
  381. package/dist/client/scripts/53bcac93a85c2c831c63.js +0 -1
  382. package/dist/client/scripts/56b0b209ee78c5af5ef8.js +0 -2
  383. package/dist/client/scripts/56f3d40bc0c39a9c2209.js +0 -2
  384. package/dist/client/scripts/58d2233b5046715e2f5a.js +0 -1
  385. package/dist/client/scripts/59d195d7e11b28254338.js +0 -1
  386. package/dist/client/scripts/618036026306f6c4cf4d.js +0 -1
  387. package/dist/client/scripts/61ea66d82e9f6152139e.js +0 -1
  388. package/dist/client/scripts/622bb7cd438cb8c05377.js +0 -1
  389. package/dist/client/scripts/62c5b38e78cc8e7b0cc4.js +0 -1
  390. package/dist/client/scripts/659ff694fa382f3303dd.js +0 -1
  391. package/dist/client/scripts/65e47b5700c036d86835.js +0 -1
  392. package/dist/client/scripts/6784449df0cd8fff66cd.js +0 -1
  393. package/dist/client/scripts/679ce5f978a53de9a618.js +0 -1
  394. package/dist/client/scripts/6ed31b8ab635fc2ffb1a.js +0 -1
  395. package/dist/client/scripts/6edd0297c7133355d67d.js +0 -1
  396. package/dist/client/scripts/6f3c3b4678e48dfe9c5c.js +0 -1
  397. package/dist/client/scripts/70cf4de79348ec18da67.js +0 -1
  398. package/dist/client/scripts/7162b5bbe006ba7d7ae6.js +0 -1
  399. package/dist/client/scripts/74aa04b96a7912a29491.js +0 -1
  400. package/dist/client/scripts/74f673d35fe245e21342.js +0 -1
  401. package/dist/client/scripts/755d35cfc0dfadeba6bf.js +0 -1
  402. package/dist/client/scripts/75b757dd165cec57bd52.js +0 -1
  403. package/dist/client/scripts/7a4eca24686d4a08ed0f.js +0 -1
  404. package/dist/client/scripts/7bc7ace5b0273d768f35.js +0 -1
  405. package/dist/client/scripts/7c50a1fdbedc398aafc8.js +0 -1
  406. package/dist/client/scripts/7c594a7a8c9008b450b2.js +0 -1
  407. package/dist/client/scripts/81229e731f1fd7ba3366.js +0 -1
  408. package/dist/client/scripts/819a86ccc1840740fdc0.js +0 -1
  409. package/dist/client/scripts/81bb5217f1e82d19f09a.js +0 -1
  410. package/dist/client/scripts/83245ba0929fd225236c.js +0 -1
  411. package/dist/client/scripts/84bde8f2f0118ee3bb98.js +0 -1
  412. package/dist/client/scripts/84fc75f52625fc27ba01.js +0 -1
  413. package/dist/client/scripts/8a7c713db5856acd74a6.js +0 -1
  414. package/dist/client/scripts/8e4a9983f0a101968515.js +0 -1
  415. package/dist/client/scripts/903a3bbe747df4b0cb2f.js +0 -1
  416. package/dist/client/scripts/92c8537772c7af363038.js +0 -1
  417. package/dist/client/scripts/930cef4685279f0fd5f3.js +0 -1
  418. package/dist/client/scripts/9581d4de83d07b764e72.js +0 -1
  419. package/dist/client/scripts/968c1fc4e7180be347d7.js +0 -2
  420. package/dist/client/scripts/976e280dc3be1f86bd89.js +0 -1
  421. package/dist/client/scripts/97e51f4a4e7dbe359a7a.js +0 -1
  422. package/dist/client/scripts/9ac5cf96e6f3fa1c8565.js +0 -1
  423. package/dist/client/scripts/9bbdbcb3fcac0ddcd085.js +0 -1
  424. package/dist/client/scripts/9cd4cc94299fececb9d7.js +0 -1
  425. package/dist/client/scripts/9d33d0a7052ee6c4ac0b.js +0 -1
  426. package/dist/client/scripts/9dedcc96c766f13f1b2d.js +0 -1
  427. package/dist/client/scripts/9f2404dd83705d5dab20.js +0 -1
  428. package/dist/client/scripts/a10a68d1a2909bcbde6c.js +0 -1
  429. package/dist/client/scripts/a24aee9932e4ee65e77f.js +0 -1
  430. package/dist/client/scripts/a34a7bac46c5061aaf18.js +0 -1
  431. package/dist/client/scripts/a3954715d0d20dc1a4a7.js +0 -1
  432. package/dist/client/scripts/a844743f6febcdce1a4d.js +0 -1
  433. package/dist/client/scripts/aa65e566cb2aef28cbb1.js +0 -1
  434. package/dist/client/scripts/aac50eba699d0dcd1dac.js +0 -1
  435. package/dist/client/scripts/ab530d0fbde5cf0c3d28.js +0 -1
  436. package/dist/client/scripts/ab9f543d1defa96f6b5f.js +0 -1
  437. package/dist/client/scripts/ad28dc96c50b61be3831.js +0 -1
  438. package/dist/client/scripts/aea26db4068864630654.js +0 -1
  439. package/dist/client/scripts/afd2785e4a2cae13cd24.js +0 -1
  440. package/dist/client/scripts/b009f0e03b062b15256f.js +0 -1
  441. package/dist/client/scripts/b45af4a89e0ce4566da6.js +0 -1
  442. package/dist/client/scripts/b50ba0725245c182b5bf.js +0 -1
  443. package/dist/client/scripts/b8a63ffb6b4cf1e004b1.js +0 -1
  444. package/dist/client/scripts/b8c746fea56f5ea7813b.js +0 -1
  445. package/dist/client/scripts/bb35202e4ab4eedaf954.js +0 -1
  446. package/dist/client/scripts/bd01353eade48c8ad362.js +0 -1
  447. package/dist/client/scripts/c0b846c700ebc9a492f8.js +0 -1
  448. package/dist/client/scripts/c2679d2ec049943f2604.js +0 -1
  449. package/dist/client/scripts/c2c8f51d3e5d7b7cc62d.js +0 -1
  450. package/dist/client/scripts/c30c1811f3b4936c9175.js +0 -1
  451. package/dist/client/scripts/c3a5553da59b6b611e38.js +0 -1
  452. package/dist/client/scripts/c4f9657310ca97440de9.js +0 -1
  453. package/dist/client/scripts/c858b3118529f1a566eb.js +0 -1
  454. package/dist/client/scripts/caceb888b637043ddb3d.js +0 -1
  455. package/dist/client/scripts/cd92bbb2562d30e04708.js +0 -1
  456. package/dist/client/scripts/cf3a7be8932aeed0e668.js +0 -1
  457. package/dist/client/scripts/cfb44e58f799d680b68c.js +0 -1
  458. package/dist/client/scripts/d2e981d125aa8ae0d301.js +0 -1
  459. package/dist/client/scripts/d435e87a505f8bfdb084.js +0 -2
  460. package/dist/client/scripts/d5df6cbaf20803e64c4c.js +0 -1
  461. package/dist/client/scripts/d771d9c9de03520db0ae.js +0 -1
  462. package/dist/client/scripts/d8b725a529a755f51c52.js +0 -1
  463. package/dist/client/scripts/db407e4d944b8c00de39.js +0 -1
  464. package/dist/client/scripts/dd63afa1669c2cb81616.js +0 -1
  465. package/dist/client/scripts/deeb6d58657fdf2af4df.js +0 -1
  466. package/dist/client/scripts/df107e5c8c14d20cd946.js +0 -1
  467. package/dist/client/scripts/e23fbb9abb335fe768c3.js +0 -1
  468. package/dist/client/scripts/e31d0d42ab5e82918e9e.js +0 -1
  469. package/dist/client/scripts/e57c8cab34fdf2aa22e1.js +0 -1
  470. package/dist/client/scripts/e59d3927d7f7217e1eca.js +0 -1
  471. package/dist/client/scripts/eade43d810f97dcfa016.js +0 -1
  472. package/dist/client/scripts/edd98a796ecce69650dc.js +0 -1
  473. package/dist/client/scripts/f01dcaa0c91eb43325d5.js +0 -1
  474. package/dist/client/scripts/f12cafea9c86ed14f3ed.js +0 -1
  475. package/dist/client/scripts/f17256f2730bc7a5d193.js +0 -1
  476. package/dist/client/scripts/f1f9dceb456cec3c9a04.js +0 -1
  477. package/dist/client/scripts/f236f02190dbcd759cfe.js +0 -1
  478. package/dist/client/scripts/f26f9f0b393f19f8b4a7.js +0 -1
  479. package/dist/client/scripts/f2d3941270158b233601.js +0 -1
  480. package/dist/client/scripts/f41127d50e1003f30fcb.js +0 -1
  481. package/dist/client/scripts/f4becf635b59a9d80c47.js +0 -1
  482. package/dist/client/scripts/f4c4dd915f99020791fa.js +0 -1
  483. package/dist/client/scripts/f4fba8936eb681775386.js +0 -1
  484. package/dist/client/scripts/f55f4ad0549a2dfbc1bb.js +0 -1
  485. package/dist/client/scripts/f5937fe24d74e57d6993.js +0 -1
  486. package/dist/client/scripts/f683475ac78f63cb281d.js +0 -1
  487. package/dist/client/scripts/f7621c6a2511e6b49376.js +0 -1
  488. package/dist/client/scripts/f9ef9380bc579b07cd33.js +0 -1
  489. package/dist/client/scripts/faa8010ab9b05889ba67.js +0 -1
  490. package/dist/client/scripts/feda8644476660d0e13c.js +0 -1
  491. package/dist/client/scripts/ffa5b60732ad98294925.js +0 -2
  492. package/dist/client/scripts/ffa5b60732ad98294925.js.LICENSE.txt +0 -8
  493. package/dist/client/styles/00f15476517af0b5a1f2.css +0 -1
  494. package/dist/client/styles/7a4eca24686d4a08ed0f.css +0 -1
  495. /package/dist/client/scripts/{56f3d40bc0c39a9c2209.js.LICENSE.txt → 271f7682547499dcf898.js.LICENSE.txt} +0 -0
  496. /package/dist/client/scripts/{d435e87a505f8bfdb084.js.LICENSE.txt → 31c0fdda27e0415c26bb.js.LICENSE.txt} +0 -0
  497. /package/dist/client/scripts/{968c1fc4e7180be347d7.js.LICENSE.txt → 354851aad807fe0edea9.js.LICENSE.txt} +0 -0
  498. /package/dist/client/scripts/{8c9524300cf7fd22ed26.js.LICENSE.txt → 47afbbef12c7fa223deb.js.LICENSE.txt} +0 -0
  499. /package/dist/client/scripts/{56b0b209ee78c5af5ef8.js.LICENSE.txt → d4e6b6c03c9289444afc.js.LICENSE.txt} +0 -0
  500. /package/dist/client/styles/{4b136e83719c06759eac.css → 0058e51cf9beca82215e.css} +0 -0
  501. /package/dist/client/styles/{d5df6cbaf20803e64c4c.css → 0417fc052020a33950ae.css} +0 -0
  502. /package/dist/client/styles/{f7621c6a2511e6b49376.css → 0487b1e2574f364f6310.css} +0 -0
  503. /package/dist/client/styles/{df107e5c8c14d20cd946.css → 0683cefcc4072855c56c.css} +0 -0
  504. /package/dist/client/styles/{3533956d8af4ae967e7b.css → 0734e59410f0b459524b.css} +0 -0
  505. /package/dist/client/styles/{459ee91db3eff506960f.css → 0b5e416f8a90205a331a.css} +0 -0
  506. /package/dist/client/styles/{faa8010ab9b05889ba67.css → 0cc32e9289583f3f1bb9.css} +0 -0
  507. /package/dist/client/styles/{65e47b5700c036d86835.css → 0ce0abe48503fea909ad.css} +0 -0
  508. /package/dist/client/styles/{05086bfb77b6e912cf8c.css → 0ceb37334ea02e6f1c0d.css} +0 -0
  509. /package/dist/client/styles/{b45af4a89e0ce4566da6.css → 0d88557af09716e38af0.css} +0 -0
  510. /package/dist/client/styles/{2c0f7eb6c28d72147f56.css → 0f7f3d35b2d343efc11b.css} +0 -0
  511. /package/dist/client/styles/{53bcac93a85c2c831c63.css → 137e2b2cb7b2293d2441.css} +0 -0
  512. /package/dist/client/styles/{aac50eba699d0dcd1dac.css → 1643a145a5c10e5c5e68.css} +0 -0
  513. /package/dist/client/styles/{7c8b7d76d07691a1669c.css → 170ec1b6c062ec29fae2.css} +0 -0
  514. /package/dist/client/styles/{32f42eafc6c71ff8103a.css → 1ac5395f2296660591d2.css} +0 -0
  515. /package/dist/client/styles/{3f7ac6ae45f4f9c4e23a.css → 1ed0820f6a45748fc81d.css} +0 -0
  516. /package/dist/client/styles/{c2c8f51d3e5d7b7cc62d.css → 1fd0a705d4d869e69eb2.css} +0 -0
  517. /package/dist/client/styles/{62c5b38e78cc8e7b0cc4.css → 235a18d6038ff05d033c.css} +0 -0
  518. /package/dist/client/styles/{4cf18cf9660f33e86609.css → 24c4082fc485d84b67c8.css} +0 -0
  519. /package/dist/client/styles/{81bb5217f1e82d19f09a.css → 26cb76af128e1b24a45d.css} +0 -0
  520. /package/dist/client/styles/{167d6e6a141cb1710886.css → 2b78b6912d24e7edfab5.css} +0 -0
  521. /package/dist/client/styles/{4fb8c86a3fcc6a2a378e.css → 2c898ebdfe4fcbd2e3fb.css} +0 -0
  522. /package/dist/client/styles/{9581d4de83d07b764e72.css → 2cb03f94f6a4d03e1a37.css} +0 -0
  523. /package/dist/client/styles/{b50ba0725245c182b5bf.css → 32e3e6c9c91fd60d92d6.css} +0 -0
  524. /package/dist/client/styles/{3a2f61b64dcbdf73305a.css → 331c3ac331aad2080cce.css} +0 -0
  525. /package/dist/client/styles/{33dc8747100e87e855bd.css → 3347507d7052bf1bad3e.css} +0 -0
  526. /package/dist/client/styles/{903a3bbe747df4b0cb2f.css → 35d62fab93bbdf0a0bb7.css} +0 -0
  527. /package/dist/client/styles/{17dfeb8e26b8e1ad6ea5.css → 3802313ba336b681066d.css} +0 -0
  528. /package/dist/client/styles/{4904b1a2bb9ea6089723.css → 3aa7f3f14c7b9722cd87.css} +0 -0
  529. /package/dist/client/styles/{2677dc59a2ade4b5c54d.css → 3b1eb1e8daddf46c1131.css} +0 -0
  530. /package/dist/client/styles/{7bc7ace5b0273d768f35.css → 40164161239257b83871.css} +0 -0
  531. /package/dist/client/styles/{17927e88d9a2b1b05c2e.css → 4138f7b87b046e2c68c2.css} +0 -0
  532. /package/dist/client/styles/{041c8878e2a07d21b091.css → 425ad171bb504d2217bf.css} +0 -0
  533. /package/dist/client/styles/{2f7afccf97ac350d177a.css → 42bcfd6efa05d78377f1.css} +0 -0
  534. /package/dist/client/styles/{8e4a9983f0a101968515.css → 4879ba407fdba8a7a2a1.css} +0 -0
  535. /package/dist/client/styles/{4f84d4b0f921eaecb224.css → 48b0882064749c171466.css} +0 -0
  536. /package/dist/client/styles/{f41127d50e1003f30fcb.css → 49146a9ee6f81450161a.css} +0 -0
  537. /package/dist/client/styles/{3f32ccdef94994226dc3.css → 503598fe9dfa48851346.css} +0 -0
  538. /package/dist/client/styles/{9dedcc96c766f13f1b2d.css → 5075b71a043e489eef48.css} +0 -0
  539. /package/dist/client/styles/{9bbdbcb3fcac0ddcd085.css → 52a723d2dac6bf68c1cb.css} +0 -0
  540. /package/dist/client/styles/{84fc75f52625fc27ba01.css → 53d7dd495d17b303e701.css} +0 -0
  541. /package/dist/client/styles/{819a86ccc1840740fdc0.css → 5470e4ec7e8eb125d371.css} +0 -0
  542. /package/dist/client/styles/{f5937fe24d74e57d6993.css → 55ca3b43293bb9670605.css} +0 -0
  543. /package/dist/client/styles/{34aec8924a83fd5f6f22.css → 58870f77951fa5344427.css} +0 -0
  544. /package/dist/client/styles/{c3a5553da59b6b611e38.css → 58c7c38cc123323b7490.css} +0 -0
  545. /package/dist/client/styles/{ab530d0fbde5cf0c3d28.css → 5bcd979b997184f21773.css} +0 -0
  546. /package/dist/client/styles/{ad28dc96c50b61be3831.css → 60a9fb3fc751f543bbb0.css} +0 -0
  547. /package/dist/client/styles/{755d35cfc0dfadeba6bf.css → 60e0a3bec400f8a7f509.css} +0 -0
  548. /package/dist/client/styles/{618036026306f6c4cf4d.css → 6168b0e9a1a887ba968d.css} +0 -0
  549. /package/dist/client/styles/{9d33d0a7052ee6c4ac0b.css → 647d66d47c100dfe0392.css} +0 -0
  550. /package/dist/client/styles/{f7fb2a6f2ce96ed16344.css → 6674395f0dc4f8ee6fa3.css} +0 -0
  551. /package/dist/client/styles/{659ff694fa382f3303dd.css → 68ed4462b6dca7a72ca9.css} +0 -0
  552. /package/dist/client/styles/{197a7df82e6776743f87.css → 6cb962c5ee441596a578.css} +0 -0
  553. /package/dist/client/styles/{61ea66d82e9f6152139e.css → 6dfa01efae3651f3de5d.css} +0 -0
  554. /package/dist/client/styles/{f26f9f0b393f19f8b4a7.css → 724349f2c98582069348.css} +0 -0
  555. /package/dist/client/styles/{f9ef9380bc579b07cd33.css → 7357b873c606e1dec70e.css} +0 -0
  556. /package/dist/client/styles/{1a3ce17c60acb8d687bc.css → 74c463e40351199b7bbd.css} +0 -0
  557. /package/dist/client/styles/{84bde8f2f0118ee3bb98.css → 75ff5665bd6a1709bbb6.css} +0 -0
  558. /package/dist/client/styles/{cdb89f2eac824cad3db5.css → 763535223159d3d20348.css} +0 -0
  559. /package/dist/client/styles/{384caa043e109a8669bc.css → 77b4dbf5c30f2cae62b0.css} +0 -0
  560. /package/dist/client/styles/{ab9f543d1defa96f6b5f.css → 77fb1b8b237c6899f8cd.css} +0 -0
  561. /package/dist/client/styles/{0f1e3a4a6b8c83378d39.css → 78470963ca61ec58ea27.css} +0 -0
  562. /package/dist/client/styles/{deeb6d58657fdf2af4df.css → 79319017f0dd4eeb450e.css} +0 -0
  563. /package/dist/client/styles/{92c8537772c7af363038.css → 79bae102acd8c4ff24f7.css} +0 -0
  564. /package/dist/client/styles/{06ecbee150c75e16be7f.css → 7d84b2c20b88515f67e0.css} +0 -0
  565. /package/dist/client/styles/{e31d0d42ab5e82918e9e.css → 7da678b31b7a7e076bcb.css} +0 -0
  566. /package/dist/client/styles/{c858b3118529f1a566eb.css → 80a9b09ae2a9a9931672.css} +0 -0
  567. /package/dist/client/styles/{2e4a93ab6f69afaa5859.css → 8164557835298966710b.css} +0 -0
  568. /package/dist/client/styles/{189658afa5a36b580824.css → 817cd8428463843b630d.css} +0 -0
  569. /package/dist/client/styles/{f12cafea9c86ed14f3ed.css → 854c817bf32899ca1220.css} +0 -0
  570. /package/dist/client/styles/{4dc8a7ac50cf28f0472b.css → 85b1a65daed48c5d3954.css} +0 -0
  571. /package/dist/client/styles/{cf3a7be8932aeed0e668.css → 864e471ccca20b13cd0a.css} +0 -0
  572. /package/dist/client/styles/{afd2785e4a2cae13cd24.css → 8a5903f24e3f558eee43.css} +0 -0
  573. /package/dist/client/styles/{97e51f4a4e7dbe359a7a.css → 8b3da1795614c504bbd8.css} +0 -0
  574. /package/dist/client/styles/{f01dcaa0c91eb43325d5.css → 8c5f18e5b1accb442575.css} +0 -0
  575. /package/dist/client/styles/{16d0e96bbae2014368b2.css → 909c66539672f861d077.css} +0 -0
  576. /package/dist/client/styles/{6784449df0cd8fff66cd.css → 957e73b6cdd9a5174ea0.css} +0 -0
  577. /package/dist/client/styles/{03ec6e964a0ff5862e08.css → 95d9a7d92f14ab401af6.css} +0 -0
  578. /package/dist/client/styles/{edd98a796ecce69650dc.css → 982435253f485eb98085.css} +0 -0
  579. /package/dist/client/styles/{f2d3941270158b233601.css → 986dbf3e9f8e131da133.css} +0 -0
  580. /package/dist/client/styles/{c4f9657310ca97440de9.css → 9a2fb2076e94995f7597.css} +0 -0
  581. /package/dist/client/styles/{0430ff9a8c4c096072a7.css → 9cbc07f4d481aab1b2bd.css} +0 -0
  582. /package/dist/client/styles/{082b491b3eb3b717cf15.css → 9ff0516b7bfdea8308bf.css} +0 -0
  583. /package/dist/client/styles/{622bb7cd438cb8c05377.css → a388d0eb0a3d70494547.css} +0 -0
  584. /package/dist/client/styles/{a844743f6febcdce1a4d.css → a7a954f3dcda462c4c75.css} +0 -0
  585. /package/dist/client/styles/{f683475ac78f63cb281d.css → a914f0c5b718f4fd0ff7.css} +0 -0
  586. /package/dist/client/styles/{930cef4685279f0fd5f3.css → a97aa57a8af5dc60247c.css} +0 -0
  587. /package/dist/client/styles/{59d195d7e11b28254338.css → ab1418f56f7c58983654.css} +0 -0
  588. /package/dist/client/styles/{f1f9dceb456cec3c9a04.css → ac39dfbd71fe34888d28.css} +0 -0
  589. /package/dist/client/styles/{529b8f3b966ee3957ea9.css → ae78317c6fd807aa1812.css} +0 -0
  590. /package/dist/client/styles/{a10a68d1a2909bcbde6c.css → b0c3fabcdbff6eeee0d6.css} +0 -0
  591. /package/dist/client/styles/{3b755853bfeb24d964da.css → b25a7a7c645b442f2cb1.css} +0 -0
  592. /package/dist/client/styles/{83245ba0929fd225236c.css → b4ac4b0a256c4a71cf94.css} +0 -0
  593. /package/dist/client/styles/{74aa04b96a7912a29491.css → b53b31fd024575592a43.css} +0 -0
  594. /package/dist/client/styles/{534d53dc0e9726294d26.css → b75591e132f60edaf09c.css} +0 -0
  595. /package/dist/client/styles/{70cf4de79348ec18da67.css → b7d1f3e1a52aa8f94d6b.css} +0 -0
  596. /package/dist/client/styles/{eade43d810f97dcfa016.css → b9f4b63d7ae1f3121d43.css} +0 -0
  597. /package/dist/client/styles/{cd92bbb2562d30e04708.css → c06185e3c65c83e8f07f.css} +0 -0
  598. /package/dist/client/styles/{f236f02190dbcd759cfe.css → c1ff8ce623f96a6a8586.css} +0 -0
  599. /package/dist/client/styles/{2e6bbc7af3d8d79f9d0f.css → c327a6bf88a0ee85ad86.css} +0 -0
  600. /package/dist/client/styles/{22f01a2f87cbefad1903.css → c6a23518b935a5dc0c1c.css} +0 -0
  601. /package/dist/client/styles/{07ad23790991e475bc52.css → c6c9de733e49ca47091d.css} +0 -0
  602. /package/dist/client/styles/{e59d3927d7f7217e1eca.css → ca762d60f1565150f48d.css} +0 -0
  603. /package/dist/client/styles/{a34a7bac46c5061aaf18.css → d2cf2fbd6c291d16a040.css} +0 -0
  604. /package/dist/client/styles/{2dda780861da53692712.css → d4704f635190659dc1b3.css} +0 -0
  605. /package/dist/client/styles/{f4fba8936eb681775386.css → d4c8f55c8d3059d63f4e.css} +0 -0
  606. /package/dist/client/styles/{23e1e23d4c7a09572a01.css → d985a7849d3e085d1db4.css} +0 -0
  607. /package/dist/client/styles/{f17256f2730bc7a5d193.css → db0898092a177d20e122.css} +0 -0
  608. /package/dist/client/styles/{21dddd8af051d96180fc.css → dbd95f76ea3e06c9d200.css} +0 -0
  609. /package/dist/client/styles/{f4c4dd915f99020791fa.css → dbf333b5272a6eb35964.css} +0 -0
  610. /package/dist/client/styles/{8a7c713db5856acd74a6.css → dca41fd0f3e6cf221423.css} +0 -0
  611. /package/dist/client/styles/{12de266b35aa8e65e1c1.css → debbe807dcfd753396f4.css} +0 -0
  612. /package/dist/client/styles/{d771d9c9de03520db0ae.css → e1c87b6dce10d6faae8d.css} +0 -0
  613. /package/dist/client/styles/{679ce5f978a53de9a618.css → e1f4422124e85fdd4e97.css} +0 -0
  614. /package/dist/client/styles/{dd63afa1669c2cb81616.css → e270c5c557ad5d9848f1.css} +0 -0
  615. /package/dist/client/styles/{c2679d2ec049943f2604.css → e2aadef1c555d5b318d2.css} +0 -0
  616. /package/dist/client/styles/{c30c1811f3b4936c9175.css → e3671506dec1029df0d5.css} +0 -0
  617. /package/dist/client/styles/{1af1ae7f6657ae5d6fe8.css → e38c91bb0a24a048a265.css} +0 -0
  618. /package/dist/client/styles/{caceb888b637043ddb3d.css → e74ea8fc175ef60d4401.css} +0 -0
  619. /package/dist/client/styles/{6ed31b8ab635fc2ffb1a.css → e9b8f37128fa40865c66.css} +0 -0
  620. /package/dist/client/styles/{6edd0297c7133355d67d.css → e9e7369e9cce050cb012.css} +0 -0
  621. /package/dist/client/styles/{302ea6eacdd107615b51.css → ec2b2291d32c814ba275.css} +0 -0
  622. /package/dist/client/styles/{bb35202e4ab4eedaf954.css → ec8c9e0abb3ab3b191d8.css} +0 -0
  623. /package/dist/client/styles/{cfb44e58f799d680b68c.css → ede3585d1b41cb9aac53.css} +0 -0
  624. /package/dist/client/styles/{0198433ee96176d3f54a.css → ee3ce31a7f8de4511ca6.css} +0 -0
  625. /package/dist/client/styles/{3ca9d97f581313d27bb1.css → f0ffe574786626140dc0.css} +0 -0
  626. /package/dist/client/styles/{b009f0e03b062b15256f.css → f1978a0a0ddf375fd209.css} +0 -0
  627. /package/dist/client/styles/{b8c746fea56f5ea7813b.css → f20807de093e9420d970.css} +0 -0
  628. /package/dist/client/styles/{0ad805848777b94079c5.css → f39cf94c60bb74a2233f.css} +0 -0
  629. /package/dist/client/styles/{0c9fb82fe75630787981.css → f40638c93fb24945e131.css} +0 -0
  630. /package/dist/client/styles/{f4becf635b59a9d80c47.css → f8999c3eaf59505e8d0b.css} +0 -0
  631. /package/dist/client/styles/{7c594a7a8c9008b450b2.css → f939dfb1a1049d34c303.css} +0 -0
  632. /package/dist/client/styles/{03281720f9c418da95a6.css → fb0a1e90c69a665a09f6.css} +0 -0
  633. /package/dist/client/styles/{d8b725a529a755f51c52.css → fc6ec4e10fe8af845e23.css} +0 -0
  634. /package/dist/client/styles/{4370bd8a4ed847ed5b89.css → fe7912b41f9ee16f6340.css} +0 -0
  635. /package/dist/client/styles/{4055c89cfcc61f835ca3.css → fec34f92c7bec94f2b5b.css} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[3324],{30907:function(n,t,r){function e(n,t){(null==t||t>n.length)&&(t=n.length);for(var r=0,e=new Array(t);r<t;r++)e[r]=n[r];return e}r.d(t,{Z:function(){return e}})},83878:function(n,t,r){function e(n){if(Array.isArray(n))return n}r.d(t,{Z:function(){return e}})},31902:function(n,t,r){function e(n,t){var r=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=r){var e,o,u,i,c=[],a=!0,l=!1;try{if(u=(r=r.call(n)).next,0===t){if(Object(r)!==r)return;a=!1}else for(;!(a=(e=u.call(r)).done)&&(c.push(e.value),c.length!==t);a=!0);}catch(n){l=!0,o=n}finally{try{if(!a&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}r.d(t,{Z:function(){return e}})},25267:function(n,t,r){function e(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,{Z:function(){return e}})},93324:function(n,t,r){r.d(t,{Z:function(){return c}});var e=r(83878),o=r(31902),u=r(40181),i=r(25267);function c(n,t){return(0,e.Z)(n)||(0,o.Z)(n,t)||(0,u.Z)(n,t)||(0,i.Z)()}},40181:function(n,t,r){r.d(t,{Z:function(){return o}});var e=r(30907);function o(n,t){if(n){if("string"==typeof n)return(0,e.Z)(n,t);var r=Object.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,e.Z)(n,t):void 0}}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1377],{75478:function(){},31024:function(t,a,n){"use strict";var s=n(51843),e=n(55252),r=n(46157),o=n(2262),i=n(62093),l=n(60976);a.Z={name:"VsCarbonCalculatorResults",status:"prototype",release:"0.0.1",components:{VsCol:s.hY,VsRow:s.ou,VsHeading:r.default,VsIcon:e.default,Chart:i.kL,Grid:i.rj,Bar:i.$Q,Responsive:i.Et},mixins:[l.default],inject:["labelsMap"],props:{totalKilos:{type:Number,default:0},foodKilos:{type:Number,default:0},transportKilos:{type:Number,default:0},accommodationKilos:{type:Number,default:0},stayDuration:{type:Number,default:1},comparisonReplacements:{type:Array,default:function(){return[]}},language:{type:String,default:"en-gb"}},data:function(){return{chartDirection:(0,o.iH)("horizontal"),chartAxis:(0,o.iH)({primary:{type:"band"}}),cssProps:"--chart-label: '".concat(this.labelsMap.kgsOf,"'")}},computed:{chartData:function(){return[{name:this.labelsMap.transport,emissions:this.transportKilos},{name:this.labelsMap.accommodation,emissions:this.accommodationKilos},{name:this.labelsMap.food,emissions:this.foodKilos}]},interpolComparison:function(){for(var t=this.labelsMap.comparison,a=0;a<this.comparisonReplacements.length;a++)t=t.replace(this.comparisonReplacements[a].repl,(this.totalKilos/this.comparisonReplacements[a].divisor).toLocaleString(this.language,{minimumFractionDigits:3}));return t},interpolKGsPerDay:function(){return this.labelsMap.kgsPerDay.replace("xxx",this.totalPerDay)},interpolPerDaySuccess:function(){return this.labelsMap.perDaySuccess.replace("xxx",this.labelsMap.perDayTarget)},transportPercent:function(){return this.transportKilos/this.totalKilos*100},accommodationPercent:function(){return this.accommodationKilos/this.totalKilos*100},foodPercent:function(){return this.foodKilos/this.totalKilos*100},totalPerDay:function(){return this.totalKilos/Math.max(this.stayDuration,1)}},mounted:function(){this.createDataLayerObject("carbonCompleteEvent",{totalEmissions:this.totalKilos,totalPerDay:this.totalPerDay,travelPercent:this.transportPercent.toFixed(3)||0,accommodationPercent:this.accommodationPercent.toFixed(3)||0,foodPercent:this.foodPercent.toFixed(3)||0})},methods:{responsiveMargin:function(t){return t>300?{left:20,top:20,right:20,bottom:20}:{left:5,top:5,right:5,bottom:5}}}}},53872:function(t,a,n){"use strict";n.d(a,{s:function(){return p}});var s=n(66252),e=n(3577),r={class:"vs-carbon-calculator-results__headline"},o={class:"mb-2"},i={class:"vs-carbon-calculator-results__total"},l=["innerHTML"],c={class:"vs-carbon-calculator-results__unicorn-icon-container"},u={class:"vs-carbon-calculator-results__unicorn-content"};function p(t,a,n,p,m,f){var d=(0,s.up)("VsHeading"),h=(0,s.up)("VsCol"),y=(0,s.up)("VsRow"),_=(0,s.up)("VsIcon"),b=(0,s.up)("Grid"),g=(0,s.up)("Bar"),v=(0,s.up)("Chart"),D=(0,s.up)("Responsive");return(0,s.wg)(),(0,s.j4)(y,{"data-test":"vs-carbon-calculator-results",style:(0,e.normalizeStyle)(m.cssProps)},{default:(0,s.w5)((function(){return[(0,s.Wm)(h,{cols:"12"},{default:(0,s.w5)((function(){return[(0,s.Wm)(d,{level:"2"},{default:(0,s.w5)((function(){return[(0,s.Uk)((0,e.toDisplayString)(f.labelsMap.results),1)]})),_:1})]})),_:1}),(0,s.Wm)(h,{cols:"12"},{default:(0,s.w5)((function(){return[(0,s.Wm)(y,{class:"vs-carbon-calculator-results__summary"},{default:(0,s.w5)((function(){return[(0,s.Wm)(h,{cols:"12",md:"6"},{default:(0,s.w5)((function(){return[(0,s._)("div",r,[(0,s._)("p",o,(0,e.toDisplayString)(f.labelsMap.resultsIntro),1),(0,s._)("p",null,[(0,s._)("span",i,(0,e.toDisplayString)(n.totalKilos.toLocaleString(n.language,{minimumFractionDigits:3})),1),(0,s.Uk)(" "+(0,e.toDisplayString)(f.labelsMap.kgsOf),1)])])]})),_:1}),(0,s.Wm)(h,{cols:"12",md:"6",class:"vs-carbon-calculator-results__comparison"},{default:(0,s.w5)((function(){return[(0,s._)("p",{innerHTML:f.interpolComparison},null,8,l)]})),_:1})]})),_:1})]})),_:1}),f.totalPerDay<=f.labelsMap.perDayTarget?((0,s.wg)(),(0,s.j4)(h,{key:0,cols:"12",class:"vs-carbon-calculator-results__unicorn"},{default:(0,s.w5)((function(){return[(0,s._)("div",c,[(0,s.Wm)(_,{name:"unicorn",size:"lg",class:"vs-carbon-calculator-results__unicorn-icon"})]),(0,s._)("div",u,[(0,s.Wm)(d,{level:"3",overrideStyleLevel:"6"},{default:(0,s.w5)((function(){return[(0,s.Uk)((0,e.toDisplayString)(f.labelsMap.perDayCongratulations),1)]})),_:1}),(0,s._)("p",null,(0,e.toDisplayString)(f.interpolPerDaySuccess),1)])]})),_:1})):(0,s.kq)("",!0),(0,s.Wm)(h,null,{default:(0,s.w5)((function(){return[(0,s.Wm)(d,{level:"3",class:"mt-0"},{default:(0,s.w5)((function(){return[(0,s.Uk)((0,e.toDisplayString)(f.labelsMap.chartTitle),1)]})),_:1})]})),_:1}),(0,s.Wm)(h,{class:"vs-carbon-calculator-results__chart-wrapper",cols:"12"},{default:(0,s.w5)((function(){return[(0,s.Wm)(D,null,{main:(0,s.w5)((function(t){var a=t.width;return[(0,s.Wm)(v,{class:"vs-carbon-calculator-results__chart",size:{width:a,height:420},data:f.chartData,margin:f.responsiveMargin(a),direction:m.chartDirection,axis:m.chartAxis},{layers:(0,s.w5)((function(){return[(0,s.Wm)(b,{strokeDasharray:"2,2"}),(0,s.Wm)(g,{dataKeys:["name","emissions"],barStyle:{fill:"#AF006E"},gap:20})]})),_:2},1032,["size","data","margin","direction","axis"])]})),_:1})]})),_:1})]})),_:1},8,["style"])}},86038:function(t,a,n){"use strict";var s=n(93379),e=n.n(s),r=n(7795),o=n.n(r),i=n(90569),l=n.n(i),c=n(3565),u=n.n(c),p=n(19216),m=n.n(p),f=n(44589),d=n.n(f),h=n(75478),y=n.n(h),_={};_.styleTagTransform=d(),_.setAttributes=u(),_.insert=l().bind(null,"head"),_.domAPI=o(),_.insertStyleElement=m(),e()(y(),_),y()&&y().locals&&y().locals},21377:function(t,a,n){"use strict";n.r(a);var s=n(555),e=n(49608);n(49204);const r=(0,n(83744).Z)(e.Z,[["render",s.s]]);a.default=r},49608:function(t,a,n){"use strict";n.d(a,{Z:function(){return s.Z}});var s=n(31024)},555:function(t,a,n){"use strict";n.d(a,{s:function(){return s.s}});var s=n(53872)},49204:function(t,a,n){"use strict";n(86038)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[2093],{62093:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{$Q:function(){return script$8},Et:function(){return script$6},kL:function(){return script$c},rj:function(){return script$5}});var vue__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2262),vue__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(66252),vue__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3577),console=__webpack_require__(25108);function _isPlaceholder(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}function _curry1(t){return function e(n){return 0===arguments.length||_isPlaceholder(n)?e:t.apply(this,arguments)}}function _curry2(t){return function e(n,r){switch(arguments.length){case 0:return e;case 1:return _isPlaceholder(n)?e:_curry1((function(e){return t(n,e)}));default:return _isPlaceholder(n)&&_isPlaceholder(r)?e:_isPlaceholder(n)?_curry1((function(e){return t(e,r)})):_isPlaceholder(r)?_curry1((function(e){return t(n,e)})):t(n,r)}}}function _arity(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,n){return e.apply(this,arguments)};case 3:return function(t,n,r){return e.apply(this,arguments)};case 4:return function(t,n,r,i){return e.apply(this,arguments)};case 5:return function(t,n,r,i,a){return e.apply(this,arguments)};case 6:return function(t,n,r,i,a,o){return e.apply(this,arguments)};case 7:return function(t,n,r,i,a,o,s){return e.apply(this,arguments)};case 8:return function(t,n,r,i,a,o,s,u){return e.apply(this,arguments)};case 9:return function(t,n,r,i,a,o,s,u,c){return e.apply(this,arguments)};case 10:return function(t,n,r,i,a,o,s,u,c,_){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function _curryN(t,e,n){return function(){for(var r=[],i=0,a=t,o=0;o<e.length||i<arguments.length;){var s;o<e.length&&(!_isPlaceholder(e[o])||i>=arguments.length)?s=e[o]:(s=arguments[i],i+=1),r[o]=s,_isPlaceholder(s)||(a-=1),o+=1}return a<=0?n.apply(this,r):_arity(a,_curryN(t,r,n))}}var curryN=_curry2((function(t,e){return 1===t?_curry1(e):_arity(t,_curryN(t,[],e))}));function _curry3(t){return function e(n,r,i){switch(arguments.length){case 0:return e;case 1:return _isPlaceholder(n)?e:_curry2((function(e,r){return t(n,e,r)}));case 2:return _isPlaceholder(n)&&_isPlaceholder(r)?e:_isPlaceholder(n)?_curry2((function(e,n){return t(e,r,n)})):_isPlaceholder(r)?_curry2((function(e,r){return t(n,e,r)})):_curry1((function(e){return t(n,r,e)}));default:return _isPlaceholder(n)&&_isPlaceholder(r)&&_isPlaceholder(i)?e:_isPlaceholder(n)&&_isPlaceholder(r)?_curry2((function(e,n){return t(e,n,i)})):_isPlaceholder(n)&&_isPlaceholder(i)?_curry2((function(e,n){return t(e,r,n)})):_isPlaceholder(r)&&_isPlaceholder(i)?_curry2((function(e,r){return t(n,e,r)})):_isPlaceholder(n)?_curry1((function(e){return t(e,r,i)})):_isPlaceholder(r)?_curry1((function(e){return t(n,e,i)})):_isPlaceholder(i)?_curry1((function(e){return t(n,r,e)})):t(n,r,i)}}}var _isArray=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};function _isTransformer(t){return null!=t&&"function"==typeof t["@@transducer/step"]}function _dispatchable(t,e,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!_isArray(r)){for(var i=0;i<t.length;){if("function"==typeof r[t[i]])return r[t[i]].apply(r,Array.prototype.slice.call(arguments,0,-1));i+=1}if(_isTransformer(r))return e.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return n.apply(this,arguments)}}var _xfBase={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};function _map(t,e){for(var n=0,r=e.length,i=Array(r);n<r;)i[n]=t(e[n]),n+=1;return i}function _isString(t){return"[object String]"===Object.prototype.toString.call(t)}var _isArrayLike=_curry1((function(t){return!!_isArray(t)||!!t&&"object"==typeof t&&!_isString(t)&&(0===t.length||t.length>0&&t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1))})),XWrap=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}();function _xwrap(t){return new XWrap(t)}var bind=_curry2((function(t,e){return _arity(t.length,(function(){return t.apply(e,arguments)}))}));function _arrayReduce(t,e,n){for(var r=0,i=n.length;r<i;){if((e=t["@@transducer/step"](e,n[r]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r+=1}return t["@@transducer/result"](e)}function _iterableReduce(t,e,n){for(var r=n.next();!r.done;){if((e=t["@@transducer/step"](e,r.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r=n.next()}return t["@@transducer/result"](e)}function _methodReduce(t,e,n,r){return t["@@transducer/result"](n[r](bind(t["@@transducer/step"],t),e))}var symIterator="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function _reduce(t,e,n){if("function"==typeof t&&(t=_xwrap(t)),_isArrayLike(n))return _arrayReduce(t,e,n);if("function"==typeof n["fantasy-land/reduce"])return _methodReduce(t,e,n,"fantasy-land/reduce");if(null!=n[symIterator])return _iterableReduce(t,e,n[symIterator]());if("function"==typeof n.next)return _iterableReduce(t,e,n);if("function"==typeof n.reduce)return _methodReduce(t,e,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}var XMap=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=_xfBase.init,t.prototype["@@transducer/result"]=_xfBase.result,t.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},t}(),_xmap=_curry2((function(t,e){return new XMap(t,e)}));function _has(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var toString$1=Object.prototype.toString,_isArguments=function(){return"[object Arguments]"===toString$1.call(arguments)?function(t){return"[object Arguments]"===toString$1.call(t)}:function(t){return _has("callee",t)}}(),hasEnumBug=!{toString:null}.propertyIsEnumerable("toString"),nonEnumerableProps=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],hasArgsEnumBug=function(){return arguments.propertyIsEnumerable("length")}(),contains=function(t,e){for(var n=0;n<t.length;){if(t[n]===e)return!0;n+=1}return!1},keys="function"!=typeof Object.keys||hasArgsEnumBug?_curry1((function(t){if(Object(t)!==t)return[];var e,n,r=[],i=hasArgsEnumBug&&_isArguments(t);for(e in t)!_has(e,t)||i&&"length"===e||(r[r.length]=e);if(hasEnumBug)for(n=nonEnumerableProps.length-1;n>=0;)_has(e=nonEnumerableProps[n],t)&&!contains(r,e)&&(r[r.length]=e),n-=1;return r})):_curry1((function(t){return Object(t)!==t?[]:Object.keys(t)})),map$1=_curry2(_dispatchable(["fantasy-land/map","map"],_xmap,(function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return curryN(e.length,(function(){return t.call(this,e.apply(this,arguments))}));case"[object Object]":return _reduce((function(n,r){return n[r]=t(e[r]),n}),{},keys(e));default:return _map(t,e)}}))),map$2=map$1,_isInteger=Number.isInteger||function(t){return t<<0===t},nth=_curry2((function(t,e){var n=t<0?e.length+t:t;return _isString(e)?e.charAt(n):e[n]})),nth$1=nth,prop=_curry2((function(t,e){if(null!=e)return _isInteger(t)?nth$1(t,e):e[t]})),prop$1=prop,reduce=_curry3(_reduce),reduce$1=reduce,values=_curry1((function(t){for(var e=keys(t),n=e.length,r=[],i=0;i<n;)r[i]=t[e[i]],i+=1;return r})),values$1=values;function _isFunction(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e||"[object GeneratorFunction]"===e||"[object AsyncGeneratorFunction]"===e}var type=_curry1((function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}));function _pipe(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function _checkForMethod(t,e){return function(){var n=arguments.length;if(0===n)return e();var r=arguments[n-1];return _isArray(r)||"function"!=typeof r[t]?e.apply(this,arguments):r[t].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var slice=_curry3(_checkForMethod("slice",(function(t,e,n){return Array.prototype.slice.call(n,t,e)}))),tail=_curry1(_checkForMethod("tail",slice(1,1/0))),tail$1=tail;function pipe(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return _arity(arguments[0].length,reduce$1(_pipe,arguments[0],tail$1(arguments)))}function _arrayFromIterator(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function _includesWith(t,e,n){for(var r=0,i=n.length;r<i;){if(t(e,n[r]))return!0;r+=1}return!1}function _functionName(t){var e=String(t).match(/^function (\w*)/);return null==e?"":e[1]}function _objectIs(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}var _objectIs$1="function"==typeof Object.is?Object.is:_objectIs;function _uniqContentEquals(t,e,n,r){var i=_arrayFromIterator(t);function a(t,e){return _equals(t,e,n.slice(),r.slice())}return!_includesWith((function(t,e){return!_includesWith(a,e,t)}),_arrayFromIterator(e),i)}function _equals(t,e,n,r){if(_objectIs$1(t,e))return!0;var i=type(t);if(i!==type(e))return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof e["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e)&&"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof e.equals)return"function"==typeof t.equals&&t.equals(e)&&"function"==typeof e.equals&&e.equals(t);switch(i){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===_functionName(t.constructor))return t===e;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof e||!_objectIs$1(t.valueOf(),e.valueOf()))return!1;break;case"Date":if(!_objectIs$1(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(t.source!==e.source||t.global!==e.global||t.ignoreCase!==e.ignoreCase||t.multiline!==e.multiline||t.sticky!==e.sticky||t.unicode!==e.unicode)return!1}for(var a=n.length-1;a>=0;){if(n[a]===t)return r[a]===e;a-=1}switch(i){case"Map":return t.size===e.size&&_uniqContentEquals(t.entries(),e.entries(),n.concat([t]),r.concat([e]));case"Set":return t.size===e.size&&_uniqContentEquals(t.values(),e.values(),n.concat([t]),r.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var o=keys(t);if(o.length!==keys(e).length)return!1;var s=n.concat([t]),u=r.concat([e]);for(a=o.length-1;a>=0;){var c=o[a];if(!_has(c,e)||!_equals(e[c],t[c],s,u))return!1;a-=1}return!0}var equals=_curry2((function(t,e){return _equals(t,e,[],[])}));function _indexOf(t,e,n){var r,i;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(r=1/e;n<t.length;){if(0===(i=t[n])&&1/i===r)return n;n+=1}return-1}if(e!=e){for(;n<t.length;){if("number"==typeof(i=t[n])&&i!=i)return n;n+=1}return-1}return t.indexOf(e,n);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,n);case"object":if(null===e)return t.indexOf(e,n)}for(;n<t.length;){if(equals(t[n],e))return n;n+=1}return-1}function _includes(t,e){return _indexOf(e,t,0)>=0}function _quote(t){return'"'+t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var pad=function(t){return(t<10?"0":"")+t},_toISOString="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+pad(t.getUTCMonth()+1)+"-"+pad(t.getUTCDate())+"T"+pad(t.getUTCHours())+":"+pad(t.getUTCMinutes())+":"+pad(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function _complement(t){return function(){return!t.apply(this,arguments)}}function _filter(t,e){for(var n=0,r=e.length,i=[];n<r;)t(e[n])&&(i[i.length]=e[n]),n+=1;return i}function _isObject(t){return"[object Object]"===Object.prototype.toString.call(t)}var XFilter=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=_xfBase.init,t.prototype["@@transducer/result"]=_xfBase.result,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):t},t}(),_xfilter=_curry2((function(t,e){return new XFilter(t,e)})),filter$1=_curry2(_dispatchable(["fantasy-land/filter","filter"],_xfilter,(function(t,e){return _isObject(e)?_reduce((function(n,r){return t(e[r])&&(n[r]=e[r]),n}),{},keys(e)):_filter(t,e)}))),reject=_curry2((function(t,e){return filter$1(_complement(t),e)}));function _toString(t,e){var n=function(n){var r=e.concat([t]);return _includes(n,r)?"<Circular>":_toString(n,r)},r=function(t,e){return _map((function(e){return _quote(e)+": "+n(t[e])}),e.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+_map(n,t).join(", ")+"))";case"[object Array]":return"["+_map(n,t).concat(r(t,reject((function(t){return/^\d+$/.test(t)}),keys(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+n(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?n(NaN):_quote(_toISOString(t)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+n(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object String]":return"object"==typeof t?"new String("+n(t.valueOf())+")":_quote(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var i=t.toString();if("[object Object]"!==i)return i}return"{"+r(t,keys(t)).join(", ")+"}"}}var toString=_curry1((function(t){return _toString(t,[])})),curry=_curry1((function(t){return curryN(t.length,t)})),curry$1=curry,invoker=_curry2((function(t,e){return curryN(t+1,(function(){var n=arguments[t];if(null!=n&&_isFunction(n[e]))return n[e].apply(n,Array.prototype.slice.call(arguments,0,t));throw new TypeError(toString(n)+' does not have a method named "'+e+'"')}))})),invoker$1=invoker,is=_curry2((function(t,e){return e instanceof t||null!=e&&(e.constructor===t||"Object"===t.name&&"object"==typeof e)})),is$1=is,join=invoker$1(1,"join"),join$1=join,mergeWithKey=_curry3((function(t,e,n){var r,i={};for(r in e)_has(r,e)&&(i[r]=_has(r,n)?t(r,e[r],n[r]):e[r]);for(r in n)_has(r,n)&&!_has(r,i)&&(i[r]=n[r]);return i})),mergeDeepWithKey=_curry3((function t(e,n,r){return mergeWithKey((function(n,r,i){return _isObject(r)&&_isObject(i)?t(e,r,i):e(n,r,i)}),n,r)})),mergeDeepLeft=_curry2((function(t,e){return mergeDeepWithKey((function(t,e,n){return e}),t,e)})),mergeDeepLeft$1=mergeDeepLeft,omit=_curry2((function(t,e){for(var n={},r={},i=0,a=t.length;i<a;)r[t[i]]=1,i+=1;for(var o in e)r.hasOwnProperty(o)||(n[o]=e[o]);return n})),omit$1=omit,pickBy=_curry2((function(t,e){var n={};for(var r in e)t(e[r],r,e)&&(n[r]=e[r]);return n})),pickBy$1=pickBy,split=invoker$1(1,"split"),split$1=split,toLower=invoker$1(0,"toLowerCase"),toLower$1=toLower,zipObj=_curry2((function(t,e){for(var n=0,r=Math.min(t.length,e.length),i={};n<r;)i[t[n]]=e[n],n+=1;return i})),zipObj$1=zipObj;pipe(toLower$1,split$1(" "),join$1("-"));const getCol=curry$1(((t,e)=>is$1(Number)?map$2((e=>nth$1(t,e)||""),e).filter((t=>""!==t)):map$2(prop$1(t),e))),mapKeys=(t,e)=>zipObj$1(map$2(t,keys(e)),values$1(e)),kebabize=t=>t.split("").map(((t,e)=>t.toUpperCase()===t?`${0!==e?"-":""}${t.toLowerCase()}`:t)).join("");function ascending$1(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function descending$1(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function bisector(t){let e,n,r;function i(t,r,i=0,a=t.length){if(i<a){if(0!==e(r,r))return a;do{const e=i+a>>>1;n(t[e],r)<0?i=e+1:a=e}while(i<a)}return i}return 2!==t.length?(e=ascending$1,n=(e,n)=>ascending$1(t(e),n),r=(e,n)=>t(e)-n):(e=t===ascending$1||t===descending$1?t:zero$1,n=t,r=t),{left:i,center:function(t,e,n=0,a=t.length){const o=i(t,e,n,a-1);return o>n&&r(t[o-1],e)>-r(t[o],e)?o-1:o},right:function(t,r,i=0,a=t.length){if(i<a){if(0!==e(r,r))return a;do{const e=i+a>>>1;n(t[e],r)<=0?i=e+1:a=e}while(i<a)}return i}}}function zero$1(){return 0}function number$2(t){return null===t?NaN:+t}const ascendingBisect=bisector(ascending$1),bisectRight=ascendingBisect.right,bisectCenter=bisector(number$2).center;function extent(t,e){let n,r;if(void 0===e)for(const e of t)null!=e&&(void 0===n?e>=e&&(n=r=e):(n>e&&(n=e),r<e&&(r=e)));else{let i=-1;for(let a of t)null!=(a=e(a,++i,t))&&(void 0===n?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}class InternMap extends Map{constructor(t,e=keyof){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(intern_get(this,t))}has(t){return super.has(intern_get(this,t))}set(t,e){return super.set(intern_set(this,t),e)}delete(t){return super.delete(intern_delete(this,t))}}function intern_get({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function intern_set({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function intern_delete({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function keyof(t){return null!==t&&"object"==typeof t?t.valueOf():t}const e10=Math.sqrt(50),e5=Math.sqrt(10),e2=Math.sqrt(2);function tickSpec(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=e10?10:a>=e5?5:a>=e2?2:1;let s,u,c;return i<0?(c=Math.pow(10,-i)/o,s=Math.round(t*c),u=Math.round(e*c),s/c<t&&++s,u/c>e&&--u,c=-c):(c=Math.pow(10,i)*o,s=Math.round(t/c),u=Math.round(e/c),s*c<t&&++s,u*c>e&&--u),u<s&&.5<=n&&n<2?tickSpec(t,e,2*n):[s,u,c]}function ticks(t,e,n){if(!((n=+n)>0))return[];if((t=+t)==(e=+e))return[t];const r=e<t,[i,a,o]=r?tickSpec(e,t,n):tickSpec(t,e,n);if(!(a>=i))return[];const s=a-i+1,u=new Array(s);if(r)if(o<0)for(let t=0;t<s;++t)u[t]=(a-t)/-o;else for(let t=0;t<s;++t)u[t]=(a-t)*o;else if(o<0)for(let t=0;t<s;++t)u[t]=(i+t)/-o;else for(let t=0;t<s;++t)u[t]=(i+t)*o;return u}function tickIncrement(t,e,n){return tickSpec(t=+t,e=+e,n=+n)[2]}function tickStep(t,e,n){n=+n;const r=(e=+e)<(t=+t),i=r?tickIncrement(e,t,n):tickIncrement(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}function max$1(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function min$1(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function range(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),a=new Array(i);++r<i;)a[r]=t+r*n;return a}function initRange(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function initInterpolator(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}const implicit=Symbol("implicit");function ordinal(){var t=new InternMap,e=[],n=[],r=implicit;function i(i){let a=t.get(i);if(void 0===a){if(r!==implicit)return r;t.set(i,a=e.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new InternMap;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return ordinal(e,n).unknown(r)},initRange.apply(i,arguments),i}function band(){var t,e,n=ordinal().unknown(void 0),r=n.domain,i=n.range,a=0,o=1,s=!1,u=0,c=0,_=.5;function l(){var n=r().length,l=o<a,h=l?o:a,f=l?a:o;t=(f-h)/Math.max(1,n-u+2*c),s&&(t=Math.floor(t)),h+=(f-h-t*(n-u))*_,e=t*(1-u),s&&(h=Math.round(h),e=Math.round(e));var p=range(n).map((function(e){return h+t*e}));return i(l?p.reverse():p)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),l()):r()},n.range=function(t){return arguments.length?([a,o]=t,a=+a,o=+o,l()):[a,o]},n.rangeRound=function(t){return[a,o]=t,a=+a,o=+o,s=!0,l()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(s=!!t,l()):s},n.padding=function(t){return arguments.length?(u=Math.min(1,c=+t),l()):u},n.paddingInner=function(t){return arguments.length?(u=Math.min(1,t),l()):u},n.paddingOuter=function(t){return arguments.length?(c=+t,l()):c},n.align=function(t){return arguments.length?(_=Math.max(0,Math.min(1,t)),l()):_},n.copy=function(){return band(r(),[a,o]).round(s).paddingInner(u).paddingOuter(c).align(_)},initRange.apply(l(),arguments)}function define(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function extend(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Color(){}var darker=.7,brighter=1/darker,reI="\\s*([+-]?\\d+)\\s*",reN="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",reP="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",reHex=/^#([0-9a-f]{3,8})$/,reRgbInteger=new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`),reRgbPercent=new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`),reRgbaInteger=new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`),reRgbaPercent=new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`),reHslPercent=new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`),reHslaPercent=new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`),named={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function color_formatHex(){return this.rgb().formatHex()}function color_formatHex8(){return this.rgb().formatHex8()}function color_formatHsl(){return hslConvert(this).formatHsl()}function color_formatRgb(){return this.rgb().formatRgb()}function color(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=reHex.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?rgbn(e):3===n?new Rgb(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?rgba(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?rgba(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=reRgbInteger.exec(t))?new Rgb(e[1],e[2],e[3],1):(e=reRgbPercent.exec(t))?new Rgb(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=reRgbaInteger.exec(t))?rgba(e[1],e[2],e[3],e[4]):(e=reRgbaPercent.exec(t))?rgba(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=reHslPercent.exec(t))?hsla(e[1],e[2]/100,e[3]/100,1):(e=reHslaPercent.exec(t))?hsla(e[1],e[2]/100,e[3]/100,e[4]):named.hasOwnProperty(t)?rgbn(named[t]):"transparent"===t?new Rgb(NaN,NaN,NaN,0):null}function rgbn(t){return new Rgb(t>>16&255,t>>8&255,255&t,1)}function rgba(t,e,n,r){return r<=0&&(t=e=n=NaN),new Rgb(t,e,n,r)}function rgbConvert(t){return t instanceof Color||(t=color(t)),t?new Rgb((t=t.rgb()).r,t.g,t.b,t.opacity):new Rgb}function rgb$1(t,e,n,r){return 1===arguments.length?rgbConvert(t):new Rgb(t,e,n,null==r?1:r)}function Rgb(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function rgb_formatHex(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}`}function rgb_formatHex8(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex(255*(isNaN(this.opacity)?1:this.opacity))}`}function rgb_formatRgb(){const t=clampa(this.opacity);return`${1===t?"rgb(":"rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${1===t?")":`, ${t})`}`}function clampa(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function clampi(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function hex(t){return((t=clampi(t))<16?"0":"")+t.toString(16)}function hsla(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Hsl(t,e,n,r)}function hslConvert(t){if(t instanceof Hsl)return new Hsl(t.h,t.s,t.l,t.opacity);if(t instanceof Color||(t=color(t)),!t)return new Hsl;if(t instanceof Hsl)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,u=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n<r):n===a?(r-e)/s+2:(e-n)/s+4,s/=u<.5?a+i:2-a-i,o*=60):s=u>0&&u<1?0:o,new Hsl(o,s,u,t.opacity)}function hsl(t,e,n,r){return 1===arguments.length?hslConvert(t):new Hsl(t,e,n,null==r?1:r)}function Hsl(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function clamph(t){return(t=(t||0)%360)<0?t+360:t}function clampt(t){return Math.max(0,Math.min(1,t||0))}function hsl2rgb(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}define(Color,color,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:color_formatHex,formatHex:color_formatHex,formatHex8:color_formatHex8,formatHsl:color_formatHsl,formatRgb:color_formatRgb,toString:color_formatRgb}),define(Rgb,rgb$1,extend(Color,{brighter(t){return t=null==t?brighter:Math.pow(brighter,t),new Rgb(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?darker:Math.pow(darker,t),new Rgb(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Rgb(clampi(this.r),clampi(this.g),clampi(this.b),clampa(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rgb_formatHex,formatHex:rgb_formatHex,formatHex8:rgb_formatHex8,formatRgb:rgb_formatRgb,toString:rgb_formatRgb})),define(Hsl,hsl,extend(Color,{brighter(t){return t=null==t?brighter:Math.pow(brighter,t),new Hsl(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?darker:Math.pow(darker,t),new Hsl(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Rgb(hsl2rgb(t>=240?t-240:t+120,i,r),hsl2rgb(t,i,r),hsl2rgb(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Hsl(clamph(this.h),clampt(this.s),clampt(this.l),clampa(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=clampa(this.opacity);return`${1===t?"hsl(":"hsla("}${clamph(this.h)}, ${100*clampt(this.s)}%, ${100*clampt(this.l)}%${1===t?")":`, ${t})`}`}}));const radians=Math.PI/180,degrees=180/Math.PI,K=18,Xn=.96422,Yn=1,Zn=.82521,t0=4/29,t1=6/29,t2=3*t1*t1,t3=t1*t1*t1;function labConvert(t){if(t instanceof Lab)return new Lab(t.l,t.a,t.b,t.opacity);if(t instanceof Hcl)return hcl2lab(t);t instanceof Rgb||(t=rgbConvert(t));var e,n,r=rgb2lrgb(t.r),i=rgb2lrgb(t.g),a=rgb2lrgb(t.b),o=xyz2lab((.2225045*r+.7168786*i+.0606169*a)/Yn);return r===i&&i===a?e=n=o:(e=xyz2lab((.4360747*r+.3850649*i+.1430804*a)/Xn),n=xyz2lab((.0139322*r+.0971045*i+.7141733*a)/Zn)),new Lab(116*o-16,500*(e-o),200*(o-n),t.opacity)}function lab(t,e,n,r){return 1===arguments.length?labConvert(t):new Lab(t,e,n,null==r?1:r)}function Lab(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function xyz2lab(t){return t>t3?Math.pow(t,1/3):t/t2+t0}function lab2xyz(t){return t>t1?t*t*t:t2*(t-t0)}function lrgb2rgb(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function rgb2lrgb(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function hclConvert(t){if(t instanceof Hcl)return new Hcl(t.h,t.c,t.l,t.opacity);if(t instanceof Lab||(t=labConvert(t)),0===t.a&&0===t.b)return new Hcl(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*degrees;return new Hcl(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function hcl$1(t,e,n,r){return 1===arguments.length?hclConvert(t):new Hcl(t,e,n,null==r?1:r)}function Hcl(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function hcl2lab(t){if(isNaN(t.h))return new Lab(t.l,0,0,t.opacity);var e=t.h*radians;return new Lab(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}define(Lab,lab,extend(Color,{brighter(t){return new Lab(this.l+K*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new Lab(this.l-K*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new Rgb(lrgb2rgb(3.1338561*(e=Xn*lab2xyz(e))-1.6168667*(t=Yn*lab2xyz(t))-.4906146*(n=Zn*lab2xyz(n))),lrgb2rgb(-.9787684*e+1.9161415*t+.033454*n),lrgb2rgb(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),define(Hcl,hcl$1,extend(Color,{brighter(t){return new Hcl(this.h,this.c,this.l+K*(null==t?1:t),this.opacity)},darker(t){return new Hcl(this.h,this.c,this.l-K*(null==t?1:t),this.opacity)},rgb(){return hcl2lab(this).rgb()}}));var constant$3=t=>()=>t;function linear$1(t,e){return function(n){return t+n*e}}function exponential(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function hue(t,e){var n=e-t;return n?linear$1(t,n>180||n<-180?n-360*Math.round(n/360):n):constant$3(isNaN(t)?e:t)}function gamma(t){return 1==(t=+t)?nogamma:function(e,n){return n-e?exponential(e,n,t):constant$3(isNaN(e)?n:e)}}function nogamma(t,e){var n=e-t;return n?linear$1(t,n):constant$3(isNaN(t)?e:t)}var rgb=function t(e){var n=gamma(e);function r(t,e){var r=n((t=rgb$1(t)).r,(e=rgb$1(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=nogamma(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function numberArray(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(n=0;n<r;++n)i[n]=t[n]*(1-a)+e[n]*a;return i}}function isNumberArray(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function genericArray(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,a=new Array(i),o=new Array(r);for(n=0;n<i;++n)a[n]=interpolate(t[n],e[n]);for(;n<r;++n)o[n]=e[n];return function(t){for(n=0;n<i;++n)o[n]=a[n](t);return o}}function date(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function interpolateNumber(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function object(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=interpolate(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var reA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,reB=new RegExp(reA.source,"g");function zero(t){return function(){return t}}function one(t){return function(e){return t(e)+""}}function string(t,e){var n,r,i,a=reA.lastIndex=reB.lastIndex=0,o=-1,s=[],u=[];for(t+="",e+="";(n=reA.exec(t))&&(r=reB.exec(e));)(i=r.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,u.push({i:o,x:interpolateNumber(n,r)})),a=reB.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?u[0]?one(u[0].x):zero(e):(e=u.length,function(t){for(var n,r=0;r<e;++r)s[(n=u[r]).i]=n.x(t);return s.join("")})}function interpolate(t,e){var n,r=typeof e;return null==e||"boolean"===r?constant$3(e):("number"===r?interpolateNumber:"string"===r?(n=color(e))?(e=n,rgb):string:e instanceof color?rgb:e instanceof Date?date:isNumberArray(e)?numberArray:Array.isArray(e)?genericArray:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?object:interpolateNumber)(t,e)}function interpolateRound(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function hcl(t){return function(e,n){var r=t((e=hcl$1(e)).h,(n=hcl$1(n)).h),i=nogamma(e.c,n.c),a=nogamma(e.l,n.l),o=nogamma(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=a(t),e.opacity=o(t),e+""}}}var interpolateHcl=hcl(hue);function constants(t){return function(){return t}}function number$1(t){return+t}var unit=[0,1];function identity$3(t){return t}function normalize$1(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:constants(isNaN(e)?NaN:.5)}function clamper(t,e){var n;return t>e&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}function bimap(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];return i<r?(r=normalize$1(i,r),a=n(o,a)):(r=normalize$1(r,i),a=n(a,o)),function(t){return a(r(t))}}function polymap(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),a=new Array(r),o=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<r;)i[o]=normalize$1(t[o],t[o+1]),a[o]=n(e[o],e[o+1]);return function(e){var n=bisectRight(t,e,1,r)-1;return a[n](i[n](e))}}function copy$1(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function transformer$1(){var t,e,n,r,i,a,o=unit,s=unit,u=interpolate,c=identity$3;function _(){var t=Math.min(o.length,s.length);return c!==identity$3&&(c=clamper(o[0],o[t-1])),r=t>2?polymap:bimap,i=a=null,l}function l(e){return null==e||isNaN(e=+e)?n:(i||(i=r(o.map(t),s,u)))(t(c(e)))}return l.invert=function(n){return c(e((a||(a=r(s,o.map(t),interpolateNumber)))(n)))},l.domain=function(t){return arguments.length?(o=Array.from(t,number$1),_()):o.slice()},l.range=function(t){return arguments.length?(s=Array.from(t),_()):s.slice()},l.rangeRound=function(t){return s=Array.from(t),u=interpolateRound,_()},l.clamp=function(t){return arguments.length?(c=!!t||identity$3,_()):c!==identity$3},l.interpolate=function(t){return arguments.length?(u=t,_()):u},l.unknown=function(t){return arguments.length?(n=t,l):n},function(n,r){return t=n,e=r,_()}}function continuous(){return transformer$1()(identity$3,identity$3)}function formatDecimal(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function formatDecimalParts(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function exponent(t){return(t=formatDecimalParts(Math.abs(t)))?t[1]:NaN}function formatGroup(t,e){return function(n,r){for(var i=n.length,a=[],o=0,s=t[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),a.push(n.substring(i-=s,i+s)),!((u+=s+1)>r));)s=t[o=(o+1)%t.length];return a.reverse().join(e)}}function formatNumerals(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}var re=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i,prefixExponent;function formatSpecifier(t){if(!(e=re.exec(t)))throw new Error("invalid format: "+t);var e;return new FormatSpecifier({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function FormatSpecifier(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function formatTrim(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}function formatPrefixAuto(t,e){var n=formatDecimalParts(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(prefixExponent=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+formatDecimalParts(t,Math.max(0,e+a-1))[0]}function formatRounded(t,e){var n=formatDecimalParts(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}formatSpecifier.prototype=FormatSpecifier.prototype,FormatSpecifier.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var formatTypes={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:formatDecimal,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>formatRounded(100*t,e),r:formatRounded,s:formatPrefixAuto,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function identity$2(t){return t}var map=Array.prototype.map,prefixes=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],locale,format,formatPrefix;function formatLocale(t){var e=void 0===t.grouping||void 0===t.thousands?identity$2:formatGroup(map.call(t.grouping,Number),t.thousands+""),n=void 0===t.currency?"":t.currency[0]+"",r=void 0===t.currency?"":t.currency[1]+"",i=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?identity$2:formatNumerals(map.call(t.numerals,String)),o=void 0===t.percent?"%":t.percent+"",s=void 0===t.minus?"−":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function c(t){var c=(t=formatSpecifier(t)).fill,_=t.align,l=t.sign,h=t.symbol,f=t.zero,p=t.width,d=t.comma,y=t.precision,g=t.trim,v=t.type;"n"===v?(d=!0,v="g"):formatTypes[v]||(void 0===y&&(y=12),g=!0,v="g"),(f||"0"===c&&"="===_)&&(f=!0,c="0",_="=");var E="$"===h?n:"#"===h&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",m="$"===h?r:/[%p]/.test(v)?o:"",M=formatTypes[v],P=/[defgprs%]/.test(v);function O(t){var n,r,o,h=E,O=m;if("c"===v)O=M(t)+O,t="";else{var D=(t=+t)<0||1/t<0;if(t=isNaN(t)?u:M(Math.abs(t),y),g&&(t=formatTrim(t)),D&&0==+t&&"+"!==l&&(D=!1),h=(D?"("===l?l:s:"-"===l||"("===l?"":l)+h,O=("s"===v?prefixes[8+prefixExponent/3]:"")+O+(D&&"("===l?")":""),P)for(n=-1,r=t.length;++n<r;)if(48>(o=t.charCodeAt(n))||o>57){O=(46===o?i+t.slice(n+1):t.slice(n))+O,t=t.slice(0,n);break}}d&&!f&&(t=e(t,1/0));var b=h.length+t.length+O.length,x=b<p?new Array(p-b+1).join(c):"";switch(d&&f&&(t=e(x+t,x.length?p-O.length:1/0),x=""),_){case"<":t=h+t+O+x;break;case"=":t=h+x+t+O;break;case"^":t=x.slice(0,b=x.length>>1)+h+t+O+x.slice(b);break;default:t=x+h+t+O}return a(t)}return y=void 0===y?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),O.toString=function(){return t+""},O}return{format:c,formatPrefix:function(t,e){var n=c(((t=formatSpecifier(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(exponent(e)/3))),i=Math.pow(10,-r),a=prefixes[8+r/3];return function(t){return n(i*t)+a}}}}function defaultLocale(t){return locale=formatLocale(t),format=locale.format,formatPrefix=locale.formatPrefix,locale}function precisionFixed(t){return Math.max(0,-exponent(Math.abs(t)))}function precisionPrefix(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(exponent(e)/3)))-exponent(Math.abs(t)))}function precisionRound(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,exponent(e)-exponent(t))+1}function tickFormat(t,e,n,r){var i,a=tickStep(t,e,n);switch((r=formatSpecifier(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=precisionPrefix(a,o))||(r.precision=i),formatPrefix(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=precisionRound(a,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=precisionFixed(a))||(r.precision=i-2*("%"===r.type))}return format(r)}function linearish(t){var e=t.domain;return t.ticks=function(t){var n=e();return ticks(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return tickFormat(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,a=e(),o=0,s=a.length-1,u=a[o],c=a[s],_=10;for(c<u&&(i=u,u=c,c=i,i=o,o=s,s=i);_-- >0;){if((i=tickIncrement(u,c,n))===r)return a[o]=u,a[s]=c,e(a);if(i>0)u=Math.floor(u/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function linear(){var t=continuous();return t.copy=function(){return copy$1(t,linear())},initRange.apply(t,arguments),linearish(t)}function transformer(){var t,e,n,r,i,a=0,o=1,s=identity$3,u=!1;function c(e){return null==e||isNaN(e=+e)?i:s(0===n?.5:(e=(r(e)-t)*n,u?Math.max(0,Math.min(1,e)):e))}function _(t){return function(e){var n,r;return arguments.length?([n,r]=e,s=t(n,r),c):[s(0),s(1)]}}return c.domain=function(i){return arguments.length?([a,o]=i,t=r(a=+a),e=r(o=+o),n=t===e?0:1/(e-t),c):[a,o]},c.clamp=function(t){return arguments.length?(u=!!t,c):u},c.interpolator=function(t){return arguments.length?(s=t,c):s},c.range=_(interpolate),c.rangeRound=_(interpolateRound),c.unknown=function(t){return arguments.length?(i=t,c):i},function(i){return r=i,t=i(a),e=i(o),n=t===e?0:1/(e-t),c}}function copy(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function sequential(){var t=linearish(transformer()(identity$3));return t.copy=function(){return copy(t,sequential())},initInterpolator.apply(t,arguments)}defaultLocale({thousands:",",grouping:[3],currency:["$",""]});class Scale{constructor(t){this.config=t,this.createScale(t.type)}createScale(t){switch(t){case"band":this.scale=band();break;case"linear":this.scale=linear()}}changeConfig(t){this.createScale(t.type),this.config=t}get type(){return this.config.type}bandwidth(){return"band"===this.type?this.scale.bandwidth():0}updateRange(t){this.scale=this.scale.copy().range(t)}updateDomain(t,e,n){const r="band"===this.config.type?this.categoryDomain(t,n):this.numericDomain(t,e,n);this.scale=this.scale.copy().domain(r)}map(t){return t.map((t=>this.mapOne(t)))}mapOne(t){const{type:e}=this.config;return"band"===e?this.scale(t)+this.scale.bandwidth()/2:this.scale(t)}ticks(){const{type:t}=this.config;return void 0!==this.config.tickValues?this.config.tickValues:"band"===t?this.scale.domain():this.scale.ticks(this.config.ticks||5)}categoryDomain(t,e){const n=e.reduce(((e,n)=>e.concat(getCol(n,t))),[]);return Array.from(new Set(n))}numericDomain(data,stackedData,keys){const{domain:domain}=this.config,values=keys.reduce(((t,e)=>t.concat(getCol(e,data))),[]),valueMax=max$1(stackedData,(t=>max$1(t,(t=>max$1(t)))))||0,valueMin=min$1(stackedData,(t=>min$1(t,(t=>min$1(t)))))||0,[dataMin,dataMax]=extent(Array.from(new Set(values.concat([valueMin,valueMax])))),yMin=eval(`\n let dataMin = ${dataMin||0}\n ${domain[0]}\n `),yMax=eval(`\n let dataMax = ${dataMax||0}\n ${domain[1]}\n `);return[yMin,yMax]}}class Scales{constructor(t){this.config=t,this.primary=new Scale(t.primary),this.secondary=new Scale(t.secondary)}changeConfig(t){this.config=t,this.primary.changeConfig(t.primary),this.secondary.changeConfig(t.secondary)}updateRange(t,e){"horizontal"===e?(this.primary.updateRange([t.x,t.width]),this.secondary.updateRange([t.height,t.y])):"vertical"===e&&(this.primary.updateRange([t.y,t.height]),this.secondary.updateRange([t.x,t.width]))}updateDomain(t,e,n){this.primary.updateDomain(t,e,getCol(0,n)),this.secondary.updateDomain(t,e,getCol(1,n))}}function constant$2(t){return function(){return t}}const abs=Math.abs,atan2=Math.atan2,cos=Math.cos,max=Math.max,min=Math.min,sin=Math.sin,sqrt=Math.sqrt,epsilon$2=1e-12,pi$1=Math.PI,halfPi=pi$1/2,tau$1=2*pi$1;function acos(t){return t>1?0:t<-1?pi$1:Math.acos(t)}function asin(t){return t>=1?halfPi:t<=-1?-halfPi:Math.asin(t)}const pi=Math.PI,tau=2*pi,epsilon$1=1e-6,tauEpsilon=tau-epsilon$1;function append(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function appendRound(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return append;const n=10**e;return function(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}class Path{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?append:appendRound(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,n,r){this._append`Q${+t},${+e},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(t,e,n,r,i,a){this._append`C${+t},${+e},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(t,e,n,r,i){if(t=+t,e=+e,n=+n,r=+r,(i=+i)<0)throw new Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-t,u=r-e,c=a-t,_=o-e,l=c*c+_*_;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(l>epsilon$1)if(Math.abs(_*s-u*c)>epsilon$1&&i){let h=n-a,f=r-o,p=s*s+u*u,d=h*h+f*f,y=Math.sqrt(p),g=Math.sqrt(l),v=i*Math.tan((pi-Math.acos((p+l-d)/(2*y*g)))/2),E=v/g,m=v/y;Math.abs(E-1)>epsilon$1&&this._append`L${t+E*c},${e+E*_}`,this._append`A${i},${i},0,0,${+(_*h>c*f)},${this._x1=t+m*s},${this._y1=e+m*u}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,n,r,i,a){if(t=+t,e=+e,a=!!a,(n=+n)<0)throw new Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),u=t+o,c=e+s,_=1^a,l=a?r-i:i-r;null===this._x1?this._append`M${u},${c}`:(Math.abs(this._x1-u)>epsilon$1||Math.abs(this._y1-c)>epsilon$1)&&this._append`L${u},${c}`,n&&(l<0&&(l=l%tau+tau),l>tauEpsilon?this._append`A${n},${n},0,1,${_},${t-o},${e-s}A${n},${n},0,1,${_},${this._x1=u},${this._y1=c}`:l>epsilon$1&&this._append`A${n},${n},0,${+(l>=pi)},${_},${this._x1=t+n*Math.cos(i)},${this._y1=e+n*Math.sin(i)}`)}rect(t,e,n,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function withPath(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);e=t}return t},()=>new Path(e)}function arcInnerRadius(t){return t.innerRadius}function arcOuterRadius(t){return t.outerRadius}function arcStartAngle(t){return t.startAngle}function arcEndAngle(t){return t.endAngle}function arcPadAngle(t){return t&&t.padAngle}function intersect(t,e,n,r,i,a,o,s){var u=n-t,c=r-e,_=o-i,l=s-a,h=l*u-_*c;if(!(h*h<epsilon$2))return[t+(h=(_*(e-a)-l*(t-i))/h)*u,e+h*c]}function cornerTangents(t,e,n,r,i,a,o){var s=t-n,u=e-r,c=(o?a:-a)/sqrt(s*s+u*u),_=c*u,l=-c*s,h=t+_,f=e+l,p=n+_,d=r+l,y=(h+p)/2,g=(f+d)/2,v=p-h,E=d-f,m=v*v+E*E,M=i-a,P=h*d-p*f,O=(E<0?-1:1)*sqrt(max(0,M*M*m-P*P)),D=(P*E-v*O)/m,b=(-P*v-E*O)/m,x=(P*E+v*O)/m,$=(-P*v+E*O)/m,A=D-y,w=b-g,C=x-y,R=$-g;return A*A+w*w>C*C+R*R&&(D=x,b=$),{cx:D,cy:b,x01:-_,y01:-l,x11:D*(i/M-1),y11:b*(i/M-1)}}function arc(){var t=arcInnerRadius,e=arcOuterRadius,n=constant$2(0),r=null,i=arcStartAngle,a=arcEndAngle,o=arcPadAngle,s=null,u=withPath(c);function c(){var c,_,l=+t.apply(this,arguments),h=+e.apply(this,arguments),f=i.apply(this,arguments)-halfPi,p=a.apply(this,arguments)-halfPi,d=abs(p-f),y=p>f;if(s||(s=c=u()),h<l&&(_=h,h=l,l=_),h>epsilon$2)if(d>tau$1-epsilon$2)s.moveTo(h*cos(f),h*sin(f)),s.arc(0,0,h,f,p,!y),l>epsilon$2&&(s.moveTo(l*cos(p),l*sin(p)),s.arc(0,0,l,p,f,y));else{var g,v,E=f,m=p,M=f,P=p,O=d,D=d,b=o.apply(this,arguments)/2,x=b>epsilon$2&&(r?+r.apply(this,arguments):sqrt(l*l+h*h)),$=min(abs(h-l)/2,+n.apply(this,arguments)),A=$,w=$;if(x>epsilon$2){var C=asin(x/l*sin(b)),R=asin(x/h*sin(b));(O-=2*C)>epsilon$2?(M+=C*=y?1:-1,P-=C):(O=0,M=P=(f+p)/2),(D-=2*R)>epsilon$2?(E+=R*=y?1:-1,m-=R):(D=0,E=m=(f+p)/2)}var L=h*cos(E),T=h*sin(E),I=l*cos(P),B=l*sin(P);if($>epsilon$2){var K,k=h*cos(m),W=h*sin(m),U=l*cos(M),S=l*sin(M);if(d<pi$1)if(K=intersect(L,T,U,S,k,W,I,B)){var N=L-K[0],j=T-K[1],z=k-K[0],H=W-K[1],q=1/sin(acos((N*z+j*H)/(sqrt(N*N+j*j)*sqrt(z*z+H*H)))/2),F=sqrt(K[0]*K[0]+K[1]*K[1]);A=min($,(l-F)/(q-1)),w=min($,(h-F)/(q+1))}else A=w=0}D>epsilon$2?w>epsilon$2?(g=cornerTangents(U,S,L,T,h,w,y),v=cornerTangents(k,W,I,B,h,w,y),s.moveTo(g.cx+g.x01,g.cy+g.y01),w<$?s.arc(g.cx,g.cy,w,atan2(g.y01,g.x01),atan2(v.y01,v.x01),!y):(s.arc(g.cx,g.cy,w,atan2(g.y01,g.x01),atan2(g.y11,g.x11),!y),s.arc(0,0,h,atan2(g.cy+g.y11,g.cx+g.x11),atan2(v.cy+v.y11,v.cx+v.x11),!y),s.arc(v.cx,v.cy,w,atan2(v.y11,v.x11),atan2(v.y01,v.x01),!y))):(s.moveTo(L,T),s.arc(0,0,h,E,m,!y)):s.moveTo(L,T),l>epsilon$2&&O>epsilon$2?A>epsilon$2?(g=cornerTangents(I,B,k,W,l,-A,y),v=cornerTangents(L,T,U,S,l,-A,y),s.lineTo(g.cx+g.x01,g.cy+g.y01),A<$?s.arc(g.cx,g.cy,A,atan2(g.y01,g.x01),atan2(v.y01,v.x01),!y):(s.arc(g.cx,g.cy,A,atan2(g.y01,g.x01),atan2(g.y11,g.x11),!y),s.arc(0,0,l,atan2(g.cy+g.y11,g.cx+g.x11),atan2(v.cy+v.y11,v.cx+v.x11),y),s.arc(v.cx,v.cy,A,atan2(v.y11,v.x11),atan2(v.y01,v.x01),!y))):s.arc(0,0,l,P,M,y):s.lineTo(I,B)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-pi$1/2;return[cos(r)*n,sin(r)*n]},c.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:constant$2(+e),c):t},c.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:constant$2(+t),c):e},c.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:constant$2(+t),c):n},c.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:constant$2(+t),c):r},c.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:constant$2(+t),c):i},c.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:constant$2(+t),c):a},c.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:constant$2(+t),c):o},c.context=function(t){return arguments.length?(s=null==t?null:t,c):s},c}function array$1(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Linear(t){this._context=t}function curveLinear(t){return new Linear(t)}function x(t){return t[0]}function y(t){return t[1]}function line(t,e){var n=constant$2(!0),r=null,i=curveLinear,a=null,o=withPath(s);function s(s){var u,c,_,l=(s=array$1(s)).length,h=!1;for(null==r&&(a=i(_=o())),u=0;u<=l;++u)!(u<l&&n(c=s[u],u,s))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+t(c,u,s),+e(c,u,s));if(_)return a=null,_+""||null}return t="function"==typeof t?t:void 0===t?x:constant$2(t),e="function"==typeof e?e:void 0===e?y:constant$2(e),s.x=function(e){return arguments.length?(t="function"==typeof e?e:constant$2(+e),s):t},s.y=function(t){return arguments.length?(e="function"==typeof t?t:constant$2(+t),s):e},s.defined=function(t){return arguments.length?(n="function"==typeof t?t:constant$2(!!t),s):n},s.curve=function(t){return arguments.length?(i=t,null!=r&&(a=i(r)),s):i},s.context=function(t){return arguments.length?(null==t?r=a=null:a=i(r=t),s):r},s}function area(t,e,n){var r=null,i=constant$2(!0),a=null,o=curveLinear,s=null,u=withPath(c);function c(c){var _,l,h,f,p,d=(c=array$1(c)).length,y=!1,g=new Array(d),v=new Array(d);for(null==a&&(s=o(p=u())),_=0;_<=d;++_){if(!(_<d&&i(f=c[_],_,c))===y)if(y=!y)l=_,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),h=_-1;h>=l;--h)s.point(g[h],v[h]);s.lineEnd(),s.areaEnd()}y&&(g[_]=+t(f,_,c),v[_]=+e(f,_,c),s.point(r?+r(f,_,c):g[_],n?+n(f,_,c):v[_]))}if(p)return s=null,p+""||null}function _(){return line().defined(i).curve(o).context(a)}return t="function"==typeof t?t:void 0===t?x:constant$2(+t),e="function"==typeof e?e:constant$2(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?y:constant$2(+n),c.x=function(e){return arguments.length?(t="function"==typeof e?e:constant$2(+e),r=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:constant$2(+e),c):t},c.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:constant$2(+t),c):r},c.y=function(t){return arguments.length?(e="function"==typeof t?t:constant$2(+t),n=null,c):e},c.y0=function(t){return arguments.length?(e="function"==typeof t?t:constant$2(+t),c):e},c.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:constant$2(+t),c):n},c.lineX0=c.lineY0=function(){return _().x(t).y(e)},c.lineY1=function(){return _().x(t).y(n)},c.lineX1=function(){return _().x(r).y(e)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:constant$2(!!t),c):i},c.curve=function(t){return arguments.length?(o=t,null!=a&&(s=o(a)),c):o},c.context=function(t){return arguments.length?(null==t?a=s=null:s=o(a=t),c):a},c}function descending(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function identity$1(t){return t}function pie(){var t=identity$1,e=descending,n=null,r=constant$2(0),i=constant$2(tau$1),a=constant$2(0);function o(o){var s,u,c,_,l,h=(o=array$1(o)).length,f=0,p=new Array(h),d=new Array(h),y=+r.apply(this,arguments),g=Math.min(tau$1,Math.max(-tau$1,i.apply(this,arguments)-y)),v=Math.min(Math.abs(g)/h,a.apply(this,arguments)),E=v*(g<0?-1:1);for(s=0;s<h;++s)(l=d[p[s]=s]=+t(o[s],s,o))>0&&(f+=l);for(null!=e?p.sort((function(t,n){return e(d[t],d[n])})):null!=n&&p.sort((function(t,e){return n(o[t],o[e])})),s=0,c=f?(g-h*E)/f:0;s<h;++s,y=_)u=p[s],_=y+((l=d[u])>0?l*c:0)+E,d[u]={data:o[u],index:s,value:l,startAngle:y,endAngle:_,padAngle:v};return d}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:constant$2(+e),o):t},o.sortValues=function(t){return arguments.length?(e=t,n=null,o):e},o.sort=function(t){return arguments.length?(n=t,e=null,o):n},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:constant$2(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:constant$2(+t),o):i},o.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:constant$2(+t),o):a},o}function sign(t){return t<0?-1:1}function slope3(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(sign(a)+sign(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function slope2(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function point(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function MonotoneX(t){this._context=t}function MonotoneY(t){this._context=new ReflectContext(t)}function ReflectContext(t){this._context=t}function monotoneX(t){return new MonotoneX(t)}function monotoneY(t){return new MonotoneY(t)}function Natural(t){this._context=t}function controlPoints(t){var e,n,r=t.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/a[e-1],a[e]-=n,o[e]-=n*o[e-1];for(i[r-1]=o[r-1]/a[r-1],e=r-2;e>=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function curveNatural(t){return new Natural(t)}function Step(t,e){this._context=t,this._t=e}function curveStep(t){return new Step(t,.5)}function stepAfter(t){return new Step(t,1)}function none$1(t,e){if((i=t.length)>1)for(var n,r,i,a=1,o=t[e[0]],s=o.length;a<i;++a)for(r=o,o=t[e[a]],n=0;n<s;++n)o[n][1]+=o[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function stackOrderNone(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function stackValue(t,e){return t[e]}function stackSeries(t){const e=[];return e.key=t,e}function stack(){var t=constant$2([]),e=stackOrderNone,n=none$1,r=stackValue;function i(i){var a,o,s=Array.from(t.apply(this,arguments),stackSeries),u=s.length,c=-1;for(const t of i)for(a=0,++c;a<u;++a)(s[a][c]=[0,+r(t,s[a].key,c,i)]).data=t;for(a=0,o=array$1(e(s));a<u;++a)s[o[a]].index=a;return n(s,o),s}return i.keys=function(e){return arguments.length?(t="function"==typeof e?e:constant$2(Array.from(e)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:constant$2(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?stackOrderNone:"function"==typeof t?t:constant$2(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?none$1:t,i):n},i}Linear.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},MonotoneX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:point(this,this._t0,slope2(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,point(this,slope2(this,n=slope3(this,t,e)),n);break;default:point(this,this._t0,n=slope3(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(MonotoneY.prototype=Object.create(MonotoneX.prototype)).point=function(t,e){MonotoneX.prototype.point.call(this,e,t)},ReflectContext.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,a){this._context.bezierCurveTo(e,t,r,n,a,i)}},Natural.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=controlPoints(t),i=controlPoints(e),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],t[o],e[o]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Step.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};const defaultConfig={size:{width:500,height:400},margin:{top:0,right:0,bottom:0,left:0},direction:"horizontal",axis:{primary:{domain:["dataMin","dataMax"],type:"band"},secondary:{domain:["dataMin","dataMax"],type:"linear"}},axisSpace:{x:40,y:20}};class Chart{constructor(t,e){this.data=t,this.layers=[],this.config=mergeDeepLeft$1(pickBy$1((t=>void 0!==t),e),defaultConfig),this.scales=new Scales(this.config.axis),this.updates=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)(0)}get bandScale(){return"band"===this.scales.primary.type?this.scales.primary:"band"===this.scales.secondary.type?this.scales.secondary:null}get canvas(){const{margin:t,size:e}=this.config,n=this.config.axisSpace;return this.config.axis.primary.hide&&(n.y=0),this.config.axis.secondary.hide&&(n.x=0),{x:t.left+n.x,y:t.top,width:e.width-t.right,height:e.height-t.bottom-n.y}}getStackedData(t){return stack().keys(t).order(stackOrderNone)(this.data)}changeData(t){this.data=t,this.update("data")}changeConfig(t){this.config=mergeDeepLeft$1(pickBy$1((t=>void 0!==t),t),this.config),this.scales.changeConfig(this.config.axis),this.update("config")}addLayer(t){this.layers.push(t),this.update("layers")}removeLayer(t){this.layers=this.layers.filter((e=>e.id!==t)),this.update("layers")}getLayers(t){return t?this.layers.filter((e=>e.type===t)):this.layers}getData(t){return t.reduce(((t,e)=>t.concat(getCol(e,this.data))),[])}getKeys(t=-1,e=null){const n=this.layers.filter((t=>!e||t.type===e)).map((t=>t.dataKeys));return-1===t?n:getCol(t,n)}getStackedKeys(t=-1,e=null){const n=this.layers.filter((t=>e?t.type===e&&t.props.stacked:t.props.stacked)).map((t=>t.dataKeys));return-1===t?n:getCol(t,n)}update(t){const e=this.getStackedData(this.getStackedKeys(1));this.scales.updateRange(this.canvas,this.config.direction),this.scales.updateDomain(this.data,e,this.getKeys()),this.updates.value+=1}}var xhtml="http://www.w3.org/1999/xhtml",namespaces={svg:"http://www.w3.org/2000/svg",xhtml:xhtml,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function namespace(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),namespaces.hasOwnProperty(e)?{space:namespaces[e],local:t}:t}function creatorInherit(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===xhtml&&e.documentElement.namespaceURI===xhtml?e.createElement(t):e.createElementNS(n,t)}}function creatorFixed(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function creator(t){var e=namespace(t);return(e.local?creatorFixed:creatorInherit)(e)}function none(){}function selector(t){return null==t?none:function(){return this.querySelector(t)}}function selection_select(t){"function"!=typeof t&&(t=selector(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o,s=e[i],u=s.length,c=r[i]=new Array(u),_=0;_<u;++_)(a=s[_])&&(o=t.call(a,a.__data__,_,s))&&("__data__"in a&&(o.__data__=a.__data__),c[_]=o);return new Selection(r,this._parents)}function array(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function empty(){return[]}function selectorAll(t){return null==t?empty:function(){return this.querySelectorAll(t)}}function arrayAll(t){return function(){return array(t.apply(this,arguments))}}function selection_selectAll(t){t="function"==typeof t?arrayAll(t):selectorAll(t);for(var e=this._groups,n=e.length,r=[],i=[],a=0;a<n;++a)for(var o,s=e[a],u=s.length,c=0;c<u;++c)(o=s[c])&&(r.push(t.call(o,o.__data__,c,s)),i.push(o));return new Selection(r,i)}function matcher(t){return function(){return this.matches(t)}}function childMatcher(t){return function(e){return e.matches(t)}}var find=Array.prototype.find;function childFind(t){return function(){return find.call(this.children,t)}}function childFirst(){return this.firstElementChild}function selection_selectChild(t){return this.select(null==t?childFirst:childFind("function"==typeof t?t:childMatcher(t)))}var filter=Array.prototype.filter;function children(){return Array.from(this.children)}function childrenFilter(t){return function(){return filter.call(this.children,t)}}function selection_selectChildren(t){return this.selectAll(null==t?children:childrenFilter("function"==typeof t?t:childMatcher(t)))}function selection_filter(t){"function"!=typeof t&&(t=matcher(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,u=r[i]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&u.push(a);return new Selection(r,this._parents)}function sparse(t){return new Array(t.length)}function selection_enter(){return new Selection(this._enter||this._groups.map(sparse),this._parents)}function EnterNode(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function constant$1(t){return function(){return t}}function bindIndex(t,e,n,r,i,a){for(var o,s=0,u=e.length,c=a.length;s<c;++s)(o=e[s])?(o.__data__=a[s],r[s]=o):n[s]=new EnterNode(t,a[s]);for(;s<u;++s)(o=e[s])&&(i[s]=o)}function bindKey(t,e,n,r,i,a,o){var s,u,c,_=new Map,l=e.length,h=a.length,f=new Array(l);for(s=0;s<l;++s)(u=e[s])&&(f[s]=c=o.call(u,u.__data__,s,e)+"",_.has(c)?i[s]=u:_.set(c,u));for(s=0;s<h;++s)c=o.call(t,a[s],s,a)+"",(u=_.get(c))?(r[s]=u,u.__data__=a[s],_.delete(c)):n[s]=new EnterNode(t,a[s]);for(s=0;s<l;++s)(u=e[s])&&_.get(f[s])===u&&(i[s]=u)}function datum(t){return t.__data__}function selection_data(t,e){if(!arguments.length)return Array.from(this,datum);var n=e?bindKey:bindIndex,r=this._parents,i=this._groups;"function"!=typeof t&&(t=constant$1(t));for(var a=i.length,o=new Array(a),s=new Array(a),u=new Array(a),c=0;c<a;++c){var _=r[c],l=i[c],h=l.length,f=arraylike(t.call(_,_&&_.__data__,c,r)),p=f.length,d=s[c]=new Array(p),y=o[c]=new Array(p);n(_,l,d,y,u[c]=new Array(h),f,e);for(var g,v,E=0,m=0;E<p;++E)if(g=d[E]){for(E>=m&&(m=E+1);!(v=y[m])&&++m<p;);g._next=v||null}}return(o=new Selection(o,r))._enter=s,o._exit=u,o}function arraylike(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function selection_exit(){return new Selection(this._exit||this._groups.map(sparse),this._parents)}function selection_join(t,e,n){var r=this.enter(),i=this,a=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?a.remove():n(a),r&&i?r.merge(i).order():i}function selection_merge(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,a=r.length,o=Math.min(i,a),s=new Array(i),u=0;u<o;++u)for(var c,_=n[u],l=r[u],h=_.length,f=s[u]=new Array(h),p=0;p<h;++p)(c=_[p]||l[p])&&(f[p]=c);for(;u<i;++u)s[u]=n[u];return new Selection(s,this._parents)}function selection_order(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this}function selection_sort(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=ascending);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o,s=n[a],u=s.length,c=i[a]=new Array(u),_=0;_<u;++_)(o=s[_])&&(c[_]=o);c.sort(e)}return new Selection(i,this._parents).order()}function ascending(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function selection_call(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function selection_nodes(){return Array.from(this)}function selection_node(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function selection_size(){let t=0;for(const e of this)++t;return t}function selection_empty(){return!this.node()}function selection_each(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,a=e[n],o=0,s=a.length;o<s;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this}function attrRemove(t){return function(){this.removeAttribute(t)}}function attrRemoveNS(t){return function(){this.removeAttributeNS(t.space,t.local)}}function attrConstant(t,e){return function(){this.setAttribute(t,e)}}function attrConstantNS(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function attrFunction(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function attrFunctionNS(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function selection_attr(t,e){var n=namespace(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?attrRemoveNS:attrRemove:"function"==typeof e?n.local?attrFunctionNS:attrFunction:n.local?attrConstantNS:attrConstant)(n,e))}function defaultView(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function styleRemove(t){return function(){this.style.removeProperty(t)}}function styleConstant(t,e,n){return function(){this.style.setProperty(t,e,n)}}function styleFunction(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function selection_style(t,e,n){return arguments.length>1?this.each((null==e?styleRemove:"function"==typeof e?styleFunction:styleConstant)(t,e,null==n?"":n)):styleValue(this.node(),t)}function styleValue(t,e){return t.style.getPropertyValue(e)||defaultView(t).getComputedStyle(t,null).getPropertyValue(e)}function propertyRemove(t){return function(){delete this[t]}}function propertyConstant(t,e){return function(){this[t]=e}}function propertyFunction(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function selection_property(t,e){return arguments.length>1?this.each((null==e?propertyRemove:"function"==typeof e?propertyFunction:propertyConstant)(t,e)):this.node()[t]}function classArray(t){return t.trim().split(/^|\s+/)}function classList(t){return t.classList||new ClassList(t)}function ClassList(t){this._node=t,this._names=classArray(t.getAttribute("class")||"")}function classedAdd(t,e){for(var n=classList(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function classedRemove(t,e){for(var n=classList(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function classedTrue(t){return function(){classedAdd(this,t)}}function classedFalse(t){return function(){classedRemove(this,t)}}function classedFunction(t,e){return function(){(e.apply(this,arguments)?classedAdd:classedRemove)(this,t)}}function selection_classed(t,e){var n=classArray(t+"");if(arguments.length<2){for(var r=classList(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?classedFunction:e?classedTrue:classedFalse)(n,e))}function textRemove(){this.textContent=""}function textConstant(t){return function(){this.textContent=t}}function textFunction(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function selection_text(t){return arguments.length?this.each(null==t?textRemove:("function"==typeof t?textFunction:textConstant)(t)):this.node().textContent}function htmlRemove(){this.innerHTML=""}function htmlConstant(t){return function(){this.innerHTML=t}}function htmlFunction(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function selection_html(t){return arguments.length?this.each(null==t?htmlRemove:("function"==typeof t?htmlFunction:htmlConstant)(t)):this.node().innerHTML}function raise(){this.nextSibling&&this.parentNode.appendChild(this)}function selection_raise(){return this.each(raise)}function lower(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function selection_lower(){return this.each(lower)}function selection_append(t){var e="function"==typeof t?t:creator(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))}function constantNull(){return null}function selection_insert(t,e){var n="function"==typeof t?t:creator(t),r=null==e?constantNull:"function"==typeof e?e:selector(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))}function remove(){var t=this.parentNode;t&&t.removeChild(this)}function selection_remove(){return this.each(remove)}function selection_cloneShallow(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function selection_cloneDeep(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function selection_clone(t){return this.select(t?selection_cloneDeep:selection_cloneShallow)}function selection_datum(t){return arguments.length?this.property("__data__",t):this.node().__data__}function contextListener(t){return function(e){t.call(this,e,this.__data__)}}function parseTypenames(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function onRemove(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r<a;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function onAdd(t,e,n){return function(){var r,i=this.__on,a=contextListener(e);if(i)for(var o=0,s=i.length;o<s;++o)if((r=i[o]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=n),void(r.value=e);this.addEventListener(t.type,a,n),r={type:t.type,name:t.name,value:e,listener:a,options:n},i?i.push(r):this.__on=[r]}}function selection_on(t,e,n){var r,i,a=parseTypenames(t+""),o=a.length;if(!(arguments.length<2)){for(s=e?onAdd:onRemove,r=0;r<o;++r)this.each(s(a[r],e,n));return this}var s=this.node().__on;if(s)for(var u,c=0,_=s.length;c<_;++c)for(r=0,u=s[c];r<o;++r)if((i=a[r]).type===u.type&&i.name===u.name)return u.value}function dispatchEvent(t,e,n){var r=defaultView(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function dispatchConstant(t,e){return function(){return dispatchEvent(this,t,e)}}function dispatchFunction(t,e){return function(){return dispatchEvent(this,t,e.apply(this,arguments))}}function selection_dispatch(t,e){return this.each(("function"==typeof e?dispatchFunction:dispatchConstant)(t,e))}function*selection_iterator(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],a=0,o=i.length;a<o;++a)(r=i[a])&&(yield r)}EnterNode.prototype={constructor:EnterNode,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},ClassList.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var root=[null];function Selection(t,e){this._groups=t,this._parents=e}function selection_selection(){return this}function select(t){return"string"==typeof t?new Selection([[document.querySelector(t)]],[document.documentElement]):new Selection([[t]],root)}function sourceEvent(t){let e;for(;e=t.sourceEvent;)t=e;return t}function pointer(t,e){if(t=sourceEvent(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}function identity(t){return t}Selection.prototype={constructor:Selection,select:selection_select,selectAll:selection_selectAll,selectChild:selection_selectChild,selectChildren:selection_selectChildren,filter:selection_filter,data:selection_data,enter:selection_enter,exit:selection_exit,join:selection_join,merge:selection_merge,selection:selection_selection,order:selection_order,sort:selection_sort,call:selection_call,nodes:selection_nodes,node:selection_node,size:selection_size,empty:selection_empty,each:selection_each,attr:selection_attr,style:selection_style,property:selection_property,classed:selection_classed,text:selection_text,html:selection_html,raise:selection_raise,lower:selection_lower,append:selection_append,insert:selection_insert,remove:selection_remove,clone:selection_clone,datum:selection_datum,on:selection_on,dispatch:selection_dispatch,[Symbol.iterator]:selection_iterator};var top=1,right=2,bottom=3,left=4,epsilon=1e-6;function translateX(t){return"translate("+t+",0)"}function translateY(t){return"translate(0,"+t+")"}function number(t){return e=>+t(e)}function center(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function entering(){return!this.__axis}function axis(t,e){var n=[],r=null,i=null,a=6,o=6,s=3,u="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,c=t===top||t===left?-1:1,_=t===left||t===right?"x":"y",l=t===top||t===bottom?translateX:translateY;function h(h){var f=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,p=null==i?e.tickFormat?e.tickFormat.apply(e,n):identity:i,d=Math.max(a,0)+s,y=e.range(),g=+y[0]+u,v=+y[y.length-1]+u,E=(e.bandwidth?center:number)(e.copy(),u),m=h.selection?h.selection():h,M=m.selectAll(".domain").data([null]),P=m.selectAll(".tick").data(f,e).order(),O=P.exit(),D=P.enter().append("g").attr("class","tick"),b=P.select("line"),x=P.select("text");M=M.merge(M.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),P=P.merge(D),b=b.merge(D.append("line").attr("stroke","currentColor").attr(_+"2",c*a)),x=x.merge(D.append("text").attr("fill","currentColor").attr(_,c*d).attr("dy",t===top?"0em":t===bottom?"0.71em":"0.32em")),h!==m&&(M=M.transition(h),P=P.transition(h),b=b.transition(h),x=x.transition(h),O=O.transition(h).attr("opacity",epsilon).attr("transform",(function(t){return isFinite(t=E(t))?l(t+u):this.getAttribute("transform")})),D.attr("opacity",epsilon).attr("transform",(function(t){var e=this.parentNode.__axis;return l((e&&isFinite(e=e(t))?e:E(t))+u)}))),O.remove(),M.attr("d",t===left||t===right?o?"M"+c*o+","+g+"H"+u+"V"+v+"H"+c*o:"M"+u+","+g+"V"+v:o?"M"+g+","+c*o+"V"+u+"H"+v+"V"+c*o:"M"+g+","+u+"H"+v),P.attr("opacity",1).attr("transform",(function(t){return l(E(t)+u)})),b.attr(_+"2",c*a),x.attr(_,c*d).text(p),m.filter(entering).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===right?"start":t===left?"end":"middle"),m.each((function(){this.__axis=E}))}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(a=o=+t,h):a},h.tickSizeInner=function(t){return arguments.length?(a=+t,h):a},h.tickSizeOuter=function(t){return arguments.length?(o=+t,h):o},h.tickPadding=function(t){return arguments.length?(s=+t,h):s},h.offset=function(t){return arguments.length?(u=+t,h):u},h}function axisBottom(t){return axis(bottom,t)}function axisLeft(t){return axis(left,t)}var useChart=()=>(0,vue__WEBPACK_IMPORTED_MODULE_1__.f3)("chart"),usePoints=(t,e={stacked:!1,type:"line"})=>{const n=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)([]),r=useChart(),{stacked:i,type:a}=e;return(0,vue__WEBPACK_IMPORTED_MODULE_1__.YP)(r.updates,(()=>{!function(){const e=r.getStackedKeys(1,a),[o,s]=t,u=r.getStackedData(i?e:[t[1]]).find((t=>t.key===s));u&&(n.value=function(t,e){const{primary:n,secondary:i}=r.scales;return"horizontal"===r.config.direction?e.map((e=>({x:n.mapOne(e.data[t]),y:i.mapOne(e[1]),props:{values:[...e],data:e.data}}))).filter((t=>!isNaN(t.x)&&!isNaN(t.y))):"vertical"===r.config.direction?e.map((e=>({x:i.mapOne(e[1]),y:n.mapOne(e.data[t]),props:{values:[...e],data:e.data}}))).filter((t=>!isNaN(t.x)&&!isNaN(t.y))):[]}(o,u))}()}),{immediate:!0}),{points:n}},useMouse=()=>(0,vue__WEBPACK_IMPORTED_MODULE_1__.f3)("chartMouse",{index:-1,position:{x:0,y:0},hover:!1}),useBars=(t,e={maxWidth:-1,gap:5,stacked:!1,type:"bar"})=>{const n=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)([]),r=useChart(),{stacked:i,type:a,gap:o}=e;function s(){const{primary:t,secondary:e}=r.scales;return{bandScale:"band"===t.type?t:e,linearScale:"band"===t.type?e:t}}function u(){const{bandScale:t}=s(),n=e.maxWidth>-1?Math.min(t.bandwidth()-o,e.maxWidth):t.bandwidth()-o,u=r.getLayers(a);return u.length>0&&!i?n/u.length:n}return(0,vue__WEBPACK_IMPORTED_MODULE_1__.YP)(r.updates,(()=>{!function(){const e=i?r.getStackedKeys(1,a):[t[1]],[c,_]=t,l=r.getStackedData(e).find((t=>t.key===_));l&&(n.value=function(e,n){const{bandScale:c,linearScale:_}=s(),l=function(){if(i)return 0;const e=r.getLayers(a).findIndex((e=>e.dataKeys.join(",")===t.join(",")));return e>-1?e:0}(),h=u(),f=function(){if(i)return 0;const{bandScale:t}=s();return(t.bandwidth()-o-r.getLayers(a).length*u())/2}();return n.map((t=>{const n={x:0,y:0,width:0,height:0,props:{values:[...t],data:t.data}},i=c.scale(t.data[e]),[a,s]=_.map(t);return"horizontal"===r.config.direction?(n.y=Math.min(a,s),n.height=Math.abs(a-s),n.x=f+i+l*h+o/2,n.width=h):"vertical"===r.config.direction&&(n.x=Math.min(a,s),n.width=Math.abs(a-s),n.y=f+i+l*h+o/2,n.height=h),n}))}(c,l))}()})),{bars:n}},useTooltip=()=>{const t=useMouse(),e=useChart(),n=(0,vue__WEBPACK_IMPORTED_MODULE_1__.Fl)((()=>t.hover)),r=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)({x:0,y:0}),i=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)({});return(0,vue__WEBPACK_IMPORTED_MODULE_1__.YP)(t,(()=>{const{primary:n}=e.scales,a=e.getKeys(0),o=e.getData(a),[s]=n.map([o[t.index]]);s&&("horizontal"===e.config.direction?r.value={x:s,y:t.position.y}:"vertical"===e.config.direction?r.value={x:t.position.x,y:s}:r.value={x:t.position.x,y:t.position.y});const u=e.data[t.index];u&&(i.value=Object.assign(Object.assign({},u),{idx:t.index}))})),{position:r,payload:i,show:n}},useResize=t=>{const e=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)(0),n=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)(0);let r=null,i=null;return(0,vue__WEBPACK_IMPORTED_MODULE_1__.bv)((()=>{r=new window.ResizeObserver((t=>{var r,a;r=t[0].contentRect.width,a=t[0].contentRect.height,e.value=r,n.value=a,i&&i()})),r.observe(t.value)})),(0,vue__WEBPACK_IMPORTED_MODULE_1__.Ah)((()=>{r.disconnect()})),{width:e,height:n,onResize:function(t){i=t}}},script$d=(0,vue__WEBPACK_IMPORTED_MODULE_1__.aZ)({name:"Axis",props:{position:{type:String,default:"bottom"},rotate:{type:Boolean,default:!1},isPrimary:{type:Boolean,default:!1}},setup(t){const e=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)(),n=useChart(),r=(0,vue__WEBPACK_IMPORTED_MODULE_1__.Fl)((()=>"bottom"===t.position?axisBottom:axisLeft)),i=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)(n.canvas),a={ticks:5};function o(){if(n.data.length>0){const{primary:i,secondary:o}=n.scales,s=t.isPrimary?i:o,u=Object.assign({},t.isPrimary?i.config:o.config,a),c=r.value(s.scale);u.format&&c.tickFormat(u.format),void 0!==u.ticks&&c.ticks(u.ticks),void 0!==u.tickValues&&c.tickValues(u.tickValues),u.useConfig&&u.useConfig(c);const _=select(e.value).call(c);return"bottom"===t.position&&t.rotate&&_.selectAll("text").attr("y",0).attr("x",9).attr("dy",".35em").attr("transform","rotate(90)").style("text-anchor","start"),c}return null}return(0,vue__WEBPACK_IMPORTED_MODULE_1__.YP)((()=>t.isPrimary),(()=>{o()})),(0,vue__WEBPACK_IMPORTED_MODULE_1__.YP)(n.updates,(()=>{i.value=n.canvas,o()})),{el:e,canvas:i}}});const _hoisted_1$b=["transform"],_hoisted_2$8=["transform"];function render$d(t,e,n,r,i,a){return"bottom"===t.position?((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)("g",{key:0,class:(0,vue__WEBPACK_IMPORTED_MODULE_2__.normalizeClass)("layer-axis-x"),ref:"el",transform:`translate(0, ${t.canvas.height})`},null,8,_hoisted_1$b)):((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)("g",{key:1,class:(0,vue__WEBPACK_IMPORTED_MODULE_2__.normalizeClass)("layer-axis-y"),ref:"el",transform:`translate(${t.canvas.x}, 0)`},null,8,_hoisted_2$8))}script$d.render=render$d,script$d.__file="src/components/Axis/index.vue";var script$c=(0,vue__WEBPACK_IMPORTED_MODULE_1__.aZ)({name:"Chart",components:{Axis:script$d},props:{data:{type:Array,default:()=>[]},margin:{type:Object,default:()=>({top:0,right:0,bottom:0,left:0}),required:!1},size:{type:Object,default:()=>({width:500,height:400}),required:!1},direction:{type:String,default:"horizontal",required:!1},axis:{type:Object,required:!1},config:{type:Object,default:()=>({})}},setup(t){const e=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)(null),n=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)(),r=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)(),i=(0,vue__WEBPACK_IMPORTED_MODULE_0__.qj)({x:40,y:20}),a=new Chart(t.data,t.config),o=(0,vue__WEBPACK_IMPORTED_MODULE_1__.Fl)((()=>t.axis&&t.axis.primary&&t.axis.primary.rotate)),s=(0,vue__WEBPACK_IMPORTED_MODULE_1__.Fl)((()=>t.axis&&t.axis.primary&&t.axis.primary.hide)),u=(0,vue__WEBPACK_IMPORTED_MODULE_1__.Fl)((()=>t.axis&&t.axis.secondary&&t.axis.secondary.hide)),c=(0,vue__WEBPACK_IMPORTED_MODULE_0__.qj)({index:-1,position:{x:0,y:0},hover:!1});(0,vue__WEBPACK_IMPORTED_MODULE_1__.JJ)("chart",a),(0,vue__WEBPACK_IMPORTED_MODULE_1__.JJ)("chartMouse",c),(0,vue__WEBPACK_IMPORTED_MODULE_1__.YP)((()=>t.data),(()=>{a&&a.changeData(t.data)}),{immediate:!0}),(0,vue__WEBPACK_IMPORTED_MODULE_1__.YP)((()=>t.config),(()=>{a&&a.changeConfig(t.config)})),(0,vue__WEBPACK_IMPORTED_MODULE_1__.YP)((()=>[Object.assign({},i),t.direction,t.size,t.margin,t.axis]),(()=>{a&&a.changeConfig({axisSpace:Object.assign({},i),direction:t.direction,size:t.size,margin:t.margin,axis:t.axis})}),{immediate:!0});const _=new ResizeObserver((t=>{for(const e of t)r.value&&e.target===r.value.$el?i.y=e.contentRect.height:n.value&&e.target===n.value.$el&&(i.x=e.contentRect.width)}));return(0,vue__WEBPACK_IMPORTED_MODULE_1__.bv)((()=>{r.value&&_.observe(r.value.$el),n.value&&_.observe(n.value.$el)})),(0,vue__WEBPACK_IMPORTED_MODULE_1__.Ah)((()=>{_.disconnect()})),{axBottomEl:r,axLeftEl:n,chartEl:e,hideX:s,hideY:u,rotateX:o,onMouseMove:function(e){if(!1===t.config.controlHover)return;c.hover=!0,c.position={x:pointer(e)[0],y:pointer(e)[1]};const{primary:n}=a.scales,r=a.getKeys(0),i=a.getData(r);if("horizontal"===a.config.direction)if("band"===n.type){const t=n.bandwidth(),e=c.position.x-a.canvas.x;c.index=Math.round((e+t/2)/t)-1}else c.index=bisectCenter(i,n.scale.invert(c.position.x));else if("vertical"===a.config.direction)if("band"===n.type){const t=n.bandwidth(),e=c.position.y-a.canvas.y;c.index=Math.round((e+t/2)/t)-1}else c.index=bisectCenter(i,n.scale.invert(c.position.y))},onMouseOut:function(){!1!==t.config.controlHover&&(c.index=-1,c.hover=!1)}}}});const _hoisted_1$a={class:"chart",ref:"chartEl"},_hoisted_2$7=["width","height","viewBox"],_hoisted_3$6={class:"layers"},_hoisted_4$3={class:"axis"},_hoisted_5$3={class:"widgets"};function render$c(t,e,n,r,i,a){const o=(0,vue__WEBPACK_IMPORTED_MODULE_1__.up)("axis");return(0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)("div",_hoisted_1$a,[((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)("svg",{width:t.size.width,height:t.size.height,viewBox:`0 0 ${t.size.width} ${t.size.height}`,onPointermove:e[0]||(e[0]=(...e)=>t.onMouseMove&&t.onMouseMove(...e)),onPointerleave:e[1]||(e[1]=(...e)=>t.onMouseOut&&t.onMouseOut(...e))},[(0,vue__WEBPACK_IMPORTED_MODULE_1__._)("g",_hoisted_3$6,[(0,vue__WEBPACK_IMPORTED_MODULE_1__.WI)(t.$slots,"layers")]),(0,vue__WEBPACK_IMPORTED_MODULE_1__._)("g",_hoisted_4$3,[t.hideX?(0,vue__WEBPACK_IMPORTED_MODULE_1__.kq)("v-if",!0):((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.j4)(o,{key:0,position:"bottom",ref:"axBottomEl",rotate:t.rotateX,isPrimary:"horizontal"===t.direction},null,8,["rotate","isPrimary"])),t.hideY?(0,vue__WEBPACK_IMPORTED_MODULE_1__.kq)("v-if",!0):((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.j4)(o,{key:1,position:"left",ref:"axLeftEl",isPrimary:"vertical"===t.direction},null,8,["isPrimary"]))])],40,_hoisted_2$7)),(0,vue__WEBPACK_IMPORTED_MODULE_1__._)("div",_hoisted_5$3,[(0,vue__WEBPACK_IMPORTED_MODULE_1__.WI)(t.$slots,"widgets")])],512)}function styleInject(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}var css_248z$1="\n.chart {\n position: relative;\n}\n";styleInject(css_248z$1),script$c.render=render$c,script$c.__file="src/components/Chart/index.vue";var script$b=(0,vue__WEBPACK_IMPORTED_MODULE_1__.aZ)({name:"Layer",props:{type:{type:String,default:"custom"},dataKeys:{type:Object,required:!0}},setup(t){const e=useChart(),n=(new Date).getTime().toString(),r=(0,vue__WEBPACK_IMPORTED_MODULE_1__.f3)("layerProps",{});return(0,vue__WEBPACK_IMPORTED_MODULE_1__.bv)((()=>{e.addLayer({id:n,type:t.type,dataKeys:t.dataKeys,props:r})})),(0,vue__WEBPACK_IMPORTED_MODULE_1__.Ah)((()=>{e.removeLayer(n)})),{}}});function render$b(t,e,n,r,i,a){return(0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)("g",{class:(0,vue__WEBPACK_IMPORTED_MODULE_2__.normalizeClass)(`layer-${t.type}`)},[(0,vue__WEBPACK_IMPORTED_MODULE_1__.WI)(t.$slots,"default")],2)}script$b.render=render$b,script$b.__file="src/components/Layer/index.vue";var script$a=(0,vue__WEBPACK_IMPORTED_MODULE_1__.aZ)({name:"AreaComponent",components:{Layer:script$b},props:{areaStyle:{type:Object,required:!1},dataKeys:{type:Object,required:!0},type:{type:String,default:()=>"normal"},gap:{type:Number,default:0}},setup(t){const e=useChart(),{stacked:n}=(0,vue__WEBPACK_IMPORTED_MODULE_1__.f3)("layerProps",{stacked:!1}),{points:r}=usePoints(t.dataKeys,{stacked:!1,type:"area"}),{bars:i}=useBars(t.dataKeys,{stacked:n,type:"area",gap:t.gap,maxWidth:-1}),a=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)(""),o=t=>({normal:curveLinear,natural:curveNatural,step:curveStep,monotone:"horizontal"===e.config.direction?monotoneX:monotoneY}[t]),s=()=>{console.log(r.value);const{secondary:i}=e.scales;return n?area().curve(o(t.type)).x0((t=>t.x+t.width/2)).y0((t=>t.y)).x1((t=>t.x+t.width/2)).y1((t=>t.y+t.height)):"vertical"===e.config.direction?area().curve(o(t.type)).y0((t=>t.y)).y1((t=>t.y)).x0((t=>t.x)).x1((()=>i.scale(0))):area().curve(o(t.type)).x0((t=>t.x)).x1((t=>t.x)).y0((t=>t.y)).y1((()=>i.scale(0)))},u=(0,vue__WEBPACK_IMPORTED_MODULE_1__.Fl)((()=>()=>Object.assign({fill:"blue",fillOpacity:.25,stroke:"none"},t.areaStyle)));return(0,vue__WEBPACK_IMPORTED_MODULE_1__.YP)(r,(()=>{a.value=n?s()(i.value):s()(r.value)})),{d:a,getStyle:u,toKebabCase:t=>mapKeys(kebabize,t)}}});const _hoisted_1$9=["d"];function render$a(t,e,n,r,i,a){const o=(0,vue__WEBPACK_IMPORTED_MODULE_1__.up)("Layer");return(0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.j4)(o,{type:"area",dataKeys:t.dataKeys},{default:(0,vue__WEBPACK_IMPORTED_MODULE_1__.w5)((()=>[(0,vue__WEBPACK_IMPORTED_MODULE_1__._)("path",(0,vue__WEBPACK_IMPORTED_MODULE_1__.dG)(t.toKebabCase(t.getStyle()),{d:t.d}),null,16,_hoisted_1$9)])),_:1},8,["dataKeys"])}script$a.render=render$a,script$a.__file="src/components/Area/index.vue";var script$9=(0,vue__WEBPACK_IMPORTED_MODULE_1__.aZ)({name:"LineComponent",components:{Layer:script$b},props:{lineStyle:{type:Object,required:!1},dotStyle:{type:Object,required:!1},hideDot:{type:Boolean,default:!1},dataKeys:{type:Object,required:!0},type:{type:String,default:()=>"normal"}},setup(t){const{stacked:e}=(0,vue__WEBPACK_IMPORTED_MODULE_1__.f3)("layerProps",{stacked:!1}),n=useMouse(),r=useChart(),i=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)(""),{points:a}=usePoints(t.dataKeys,{stacked:e,type:"line"}),o={normal:curveLinear,natural:curveNatural,step:stepAfter,monotone:monotoneX};function s(){let e=o[t.type];"monotone"===t.type&&"vertical"===r.config.direction&&(e=monotoneY),i.value=line().x((t=>t.x)).y((t=>t.y)).curve(e)(a.value)}const u=(0,vue__WEBPACK_IMPORTED_MODULE_1__.Fl)((()=>is$1(Function,t.lineStyle)?t.lineStyle:()=>Object.assign({stroke:"#8884d8",strokeWidth:2},t.lineStyle))),c=(0,vue__WEBPACK_IMPORTED_MODULE_1__.Fl)((()=>is$1(Function,t.dotStyle)?t.dotStyle:({active:e})=>function(e){const n=t.dotStyle,r=u.value();return Object.assign({r:e?5:3,stroke:r.stroke,strokeWidth:r.strokeWidth,fill:"white"},n)}(e)));return(0,vue__WEBPACK_IMPORTED_MODULE_1__.YP)(a,(()=>s())),(0,vue__WEBPACK_IMPORTED_MODULE_1__.YP)(r.updates,(()=>s())),{d:i,mouse:n,points:a,toKebabCase:t=>mapKeys(kebabize,t),getStyle:u,getDotStyle:c}}});const _hoisted_1$8=["d"],_hoisted_2$6={key:0},_hoisted_3$5=["cx","cy"];function render$9(t,e,n,r,i,a){const o=(0,vue__WEBPACK_IMPORTED_MODULE_1__.up)("Layer");return(0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.j4)(o,{dataKeys:t.dataKeys,type:"line"},{default:(0,vue__WEBPACK_IMPORTED_MODULE_1__.w5)((()=>[(0,vue__WEBPACK_IMPORTED_MODULE_1__._)("path",(0,vue__WEBPACK_IMPORTED_MODULE_1__.dG)({class:"chart-line"},t.toKebabCase(t.getStyle()),{d:t.d,fill:"none"}),null,16,_hoisted_1$8),(0,vue__WEBPACK_IMPORTED_MODULE_1__.kq)(' :stroke="stroke"\n :stroke-width="strokeWidth"\n stroke-linejoin="round"\n stroke-linecap="round" '),t.hideDot?(0,vue__WEBPACK_IMPORTED_MODULE_1__.kq)("v-if",!0):((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)("g",_hoisted_2$6,[((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(!0),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)(vue__WEBPACK_IMPORTED_MODULE_1__.HY,null,(0,vue__WEBPACK_IMPORTED_MODULE_1__.Ko)(t.points,((e,n)=>((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)("circle",(0,vue__WEBPACK_IMPORTED_MODULE_1__.dG)(t.toKebabCase(t.getDotStyle({active:n===t.mouse.index,index:n})),{key:n,cx:e.x,cy:e.y}),null,16,_hoisted_3$5)))),128))]))])),_:1},8,["dataKeys"])}script$9.render=render$9,script$9.__file="src/components/Line/index.vue";var script$8=(0,vue__WEBPACK_IMPORTED_MODULE_1__.aZ)({name:"Bar",components:{Layer:script$b},props:{selectedBar:{type:Object,default:()=>null},barStyle:{type:[Function,Object],default:()=>({fill:"blue"})},barStyleSelected:{type:[Function,Object],default:()=>({fill:"darkblue"})},maxWidth:{type:Number,default:-1},dataKeys:{type:Object,required:!0},gap:{type:Number,default:5}},setup(t,{emit:e}){const n=useMouse(),{stacked:r,maxWidth:i}=(0,vue__WEBPACK_IMPORTED_MODULE_1__.f3)("layerProps",{stacked:!1,maxWidth:-1}),{bars:a}=useBars(t.dataKeys,{maxWidth:Math.max(t.maxWidth,i),stacked:r,gap:t.gap,type:"bar"});return{getStyle:(0,vue__WEBPACK_IMPORTED_MODULE_1__.Fl)((()=>is$1(Function,t.barStyle)?t.barStyle:()=>t.barStyle)),getStyleSelected:(0,vue__WEBPACK_IMPORTED_MODULE_1__.Fl)((()=>is$1(Function,t.barStyleSelected)?t.barStyleSelected:()=>t.barStyleSelected)),toKebabCase:t=>mapKeys(kebabize,t),bars:a,mouse:n,onBarClick:function(t,n){e("barClick",Object.assign(Object.assign({},t),{idx:n}))}}}});const _hoisted_1$7={key:0},_hoisted_2$5=["x","y","width","height","onClick"],_hoisted_3$4=["x","y","width","height"];function render$8(t,e,n,r,i,a){const o=(0,vue__WEBPACK_IMPORTED_MODULE_1__.up)("Layer");return(0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.j4)(o,{dataKeys:t.dataKeys,type:"bar"},{default:(0,vue__WEBPACK_IMPORTED_MODULE_1__.w5)((()=>[0===t.bars.length?((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)("text",_hoisted_1$7,"No Data")):(0,vue__WEBPACK_IMPORTED_MODULE_1__.kq)("v-if",!0),((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(!0),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)(vue__WEBPACK_IMPORTED_MODULE_1__.HY,null,(0,vue__WEBPACK_IMPORTED_MODULE_1__.Ko)(t.bars,((e,n)=>((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)("rect",(0,vue__WEBPACK_IMPORTED_MODULE_1__.dG)({class:"chart-bar"},t.toKebabCase(t.getStyle({...e.props,active:n===t.mouse.index})),{key:n,x:e.x,y:e.y,width:e.width>0?e.width:0,height:e.height>0?e.height:0,onClick:()=>t.onBarClick(e,n)}),null,16,_hoisted_2$5)))),128)),t.selectedBar?((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)("rect",(0,vue__WEBPACK_IMPORTED_MODULE_1__.dG)({key:1,class:"chart-bar"},t.toKebabCase(t.getStyleSelected({...t.selectedBar.props})),{x:t.selectedBar.x,y:t.selectedBar.y,width:t.selectedBar.width>0?t.selectedBar.width:0,height:t.selectedBar.height>0?t.selectedBar.height:0}),null,16,_hoisted_3$4)):(0,vue__WEBPACK_IMPORTED_MODULE_1__.kq)("v-if",!0)])),_:1},8,["dataKeys"])}script$8.render=render$8,script$8.__file="src/components/Bar/index.vue";const PieSort=String;var script$7=(0,vue__WEBPACK_IMPORTED_MODULE_1__.aZ)({name:"PieLayer",components:{Layer:script$b},props:{pieStyle:{type:Object,required:!1},dataKeys:{type:Object,required:!0},sort:{type:PieSort,default:"desc",required:!1},sortFunc:{type:Function,required:!1}},setup(t){var e;const n=useChart(),r=useMouse(),i=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)(Math.min(n.canvas.width-n.canvas.x,n.canvas.height-n.canvas.y)/2),a=(0,vue__WEBPACK_IMPORTED_MODULE_1__.Fl)((()=>()=>Object.assign({colors:["#4daf4a","#377eb8","#ff7f00","#984ea3","#e41a1c"],innerRadius:2,cornerRadius:0,padAngle:.01},t.pieStyle))),o=a.value(),s=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)([]),u=ordinal(a.value().colors),c=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)(`translate(${i.value+n.canvas.x}, ${i.value+n.canvas.y})`);let _;switch(t.sort){case"desc":_=descending$1;break;case"asc":_=ascending$1;break;case"none":default:_=null;break;case"custom":_=null!==(e=t.sortFunc)&&void 0!==e?e:null}return(0,vue__WEBPACK_IMPORTED_MODULE_1__.YP)(n.updates,(()=>{i.value=Math.min(n.canvas.width-n.canvas.x,(n.canvas.height-n.canvas.y)/2),c.value=`translate(${i.value+n.canvas.x}, ${i.value+n.canvas.y})`,function(){const e=n.getData([t.dataKeys[1]]);s.value=pie().sort(_)(e)}()})),{arcs:s,arcGen:()=>arc().outerRadius(i.value).innerRadius(o.innerRadius).cornerRadius(o.cornerRadius).padAngle(o.padAngle),getStyle:a,transform:c,getColor:function(t){return u(t.toString())},hideTooltip:function(){r.hover=!1,r.index=-1},toKebabCase:function(t){mapKeys(kebabize,t)},showTooltip:function(t,e){r.hover=!0,r.index=e;const[n,a]=pointer(t);r.position={x:n+i.value,y:a+i.value}}}}});const _hoisted_1$6={key:0},_hoisted_2$4=["transform"],_hoisted_3$3=["id","fill","d","onMousemove"];function render$7(t,e,n,r,i,a){const o=(0,vue__WEBPACK_IMPORTED_MODULE_1__.up)("Layer");return(0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.j4)(o,{dataKeys:t.dataKeys,type:"pie"},{default:(0,vue__WEBPACK_IMPORTED_MODULE_1__.w5)((()=>[0===t.arcs.length?((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)("text",_hoisted_1$6,"No Data")):(0,vue__WEBPACK_IMPORTED_MODULE_1__.kq)("v-if",!0),(0,vue__WEBPACK_IMPORTED_MODULE_1__._)("g",{transform:t.transform},[((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(!0),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)(vue__WEBPACK_IMPORTED_MODULE_1__.HY,null,(0,vue__WEBPACK_IMPORTED_MODULE_1__.Ko)(t.arcs,((n,r)=>((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)("path",(0,vue__WEBPACK_IMPORTED_MODULE_1__.dG)({key:r,id:`arc-${r}`,class:"chart-pie"},t.toKebabCase(t.getStyle()),{fill:t.getColor(r),d:t.arcGen()(n),onMousemove:e=>t.showTooltip(e,r),onMouseleave:e[0]||(e[0]=e=>t.hideTooltip())}),null,16,_hoisted_3$3)))),128))],8,_hoisted_2$4)])),_:1},8,["dataKeys"])}script$7.render=render$7,script$7.__file="src/components/Pie/index.vue";var script$6=(0,vue__WEBPACK_IMPORTED_MODULE_1__.aZ)({name:"Responsive",setup(){const t=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)(null),{width:e,height:n}=useResize(t);return{el:t,width:e,height:n}}});const _hoisted_1$5={ref:"el"};function render$6(t,e,n,r,i,a){return(0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)("div",_hoisted_1$5,[(0,vue__WEBPACK_IMPORTED_MODULE_1__.WI)(t.$slots,"main",{width:t.width,height:t.height})],512)}script$6.render=render$6,script$6.__file="src/components/Responsive/index.vue";var script$5=(0,vue__WEBPACK_IMPORTED_MODULE_1__.aZ)({name:"Grid",props:{strokeDasharray:{type:String,default:()=>"3 3"},hideX:{type:Boolean,default:!1},hideY:{type:Boolean,default:!1},center:{type:Boolean,default:!0}},setup(t){const e=useChart(),n=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)([]),r=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)(null),i=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)([]),a=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)([]);return(0,vue__WEBPACK_IMPORTED_MODULE_1__.YP)(e.updates,(()=>{n.value=e.data,r.value=e.canvas,function(){const{primary:n,secondary:r}=e.scales,a="horizontal"===e.config.direction?r:n;if("band"!==a.type||t.center){const t=a.ticks();i.value=a.map(t)}else{const t=a.map(e.getData(e.getKeys(0))).map((t=>t+a.bandwidth()/2));t.pop(),i.value=t}}(),function(){const{primary:n,secondary:r}=e.scales,i="horizontal"===e.config.direction?n:r;if("band"!==i.type||t.center){const t=i.ticks();a.value=i.map(t)}else{const t=i.map(e.getData(e.getKeys(0))).map((t=>t+i.bandwidth()/2));t.pop(),a.value=t}}()})),{data:n,canvas:r,xLines:i,yLines:a}}});const _hoisted_1$4=["stroke-dasharray"],_hoisted_2$3={key:0,class:"grid-x"},_hoisted_3$2=["x1","y1","x2","y2"],_hoisted_4$2={key:1,class:"grid-y"},_hoisted_5$2=["x1","y1","x2","y2"],_hoisted_6$2=["x1","y1","x2","y2"],_hoisted_7=["x1","y1","x2","y2"];function render$5(t,e,n,r,i,a){return t.data.length?((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)("g",{key:0,class:"layer-grid",stroke:"black","stroke-opacity":"0.15","stroke-width":"1","stroke-dasharray":t.strokeDasharray},[t.hideX?(0,vue__WEBPACK_IMPORTED_MODULE_1__.kq)("v-if",!0):((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)("g",_hoisted_2$3,[((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(!0),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)(vue__WEBPACK_IMPORTED_MODULE_1__.HY,null,(0,vue__WEBPACK_IMPORTED_MODULE_1__.Ko)(t.xLines,((e,n)=>((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)("line",{key:n,x1:t.canvas.x,y1:e,x2:t.canvas.width,y2:e},null,8,_hoisted_3$2)))),128))])),t.hideY?(0,vue__WEBPACK_IMPORTED_MODULE_1__.kq)("v-if",!0):((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)("g",_hoisted_4$2,[((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(!0),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)(vue__WEBPACK_IMPORTED_MODULE_1__.HY,null,(0,vue__WEBPACK_IMPORTED_MODULE_1__.Ko)(t.yLines,((e,n)=>((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)("line",{key:n,x1:e,y1:t.canvas.y,x2:e,y2:t.canvas.height},null,8,_hoisted_5$2)))),128))])),(0,vue__WEBPACK_IMPORTED_MODULE_1__._)("g",null,[(0,vue__WEBPACK_IMPORTED_MODULE_1__._)("line",{x1:t.canvas.x,y1:t.canvas.y,x2:t.canvas.width,y2:t.canvas.y},null,8,_hoisted_6$2),(0,vue__WEBPACK_IMPORTED_MODULE_1__._)("line",{x1:t.canvas.width-1,y1:t.canvas.y,x2:t.canvas.width-1,y2:t.canvas.height},null,8,_hoisted_7)])],8,_hoisted_1$4)):(0,vue__WEBPACK_IMPORTED_MODULE_1__.kq)("v-if",!0)}script$5.render=render$5,script$5.__file="src/components/Grid/index.vue";var script$4=(0,vue__WEBPACK_IMPORTED_MODULE_1__.aZ)({name:"Tooltip",components:{},props:{format:{type:String,default:",.0f"},color:{type:String,default:"#7876ec"},hideLine:{type:Boolean,default:!1},config:{type:Object,default:()=>({})}},setup(t){const e=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)(null),n=useChart(),r=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)(n.canvas),i=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)(n.config.direction),{position:a,payload:o,show:s}=useTooltip(),u=(0,vue__WEBPACK_IMPORTED_MODULE_1__.Fl)((()=>a.value.x>=r.value.width/4*3)),c=(0,vue__WEBPACK_IMPORTED_MODULE_1__.Fl)((()=>"vertical"===i.value?{top:a.value.y-.5+"px",left:r.value.x+"px"}:"horizontal"===i.value?{top:r.value.y+"px",left:a.value.x-.5+"px"}:{top:r.value.y+"px",left:r.value.x+"px"})),_=(0,vue__WEBPACK_IMPORTED_MODULE_1__.Fl)((()=>"vertical"===i.value?{top:"5px",left:a.value.x-30+"px"}:"horizontal"===i.value?{top:a.value.y+"px",transform:`translateX(${u.value?"-100%":0})`}:{top:a.value.y+"px",left:a.value.x+"px"})),l=(0,vue__WEBPACK_IMPORTED_MODULE_1__.Fl)((()=>Object.keys(omit$1(["idx"],o.value)).map((e=>{const n=Object.assign({label:e,format:t.format,color:t.color,hide:!1},t.config[e]);return{key:e,label:n.label,value:o.value[e],valueFormatted:(r=o.value[e],i=n.format,is$1(Function,i)?i(r):is$1(Number,r)?format(i)(r):r),color:is$1(Function,n.color)?n.color(o.value):n.color,hide:n.hide};var r,i})).filter((t=>!t.hide))));return(0,vue__WEBPACK_IMPORTED_MODULE_1__.YP)(n.updates,(()=>{i.value=n.config.direction,r.value=n.canvas})),{el:e,show:s,canvas:r,direction:i,style:c,styleContent:_,position:a,items:l,isRight:u}}});const _hoisted_1$3={key:0};function render$4(t,e,n,r,i,a){return t.show?((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)("div",{key:0,class:"v-tooltip",style:(0,vue__WEBPACK_IMPORTED_MODULE_2__.normalizeStyle)(t.style)},[(0,vue__WEBPACK_IMPORTED_MODULE_1__._)("div",{class:"v-tooltip-content",style:(0,vue__WEBPACK_IMPORTED_MODULE_2__.normalizeStyle)(t.styleContent),ref:"el"},[(0,vue__WEBPACK_IMPORTED_MODULE_1__.WI)(t.$slots,"default",{payload:t.items},(()=>[(0,vue__WEBPACK_IMPORTED_MODULE_1__._)("div",{style:(0,vue__WEBPACK_IMPORTED_MODULE_2__.normalizeStyle)({borderColor:t.color})},[((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(!0),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)(vue__WEBPACK_IMPORTED_MODULE_1__.HY,null,(0,vue__WEBPACK_IMPORTED_MODULE_1__.Ko)(t.items,((t,e)=>((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)("div",{key:e,style:(0,vue__WEBPACK_IMPORTED_MODULE_2__.normalizeStyle)({color:t.color})},[(0,vue__WEBPACK_IMPORTED_MODULE_1__._)("b",null,(0,vue__WEBPACK_IMPORTED_MODULE_2__.toDisplayString)(t.label),1),(0,vue__WEBPACK_IMPORTED_MODULE_1__.Uk)(": "+(0,vue__WEBPACK_IMPORTED_MODULE_2__.toDisplayString)(t.valueFormatted),1)],4)))),128))],4)]))],4),t.hideLine?(0,vue__WEBPACK_IMPORTED_MODULE_1__.kq)("v-if",!0):((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)("div",_hoisted_1$3,["horizontal"===t.direction?((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)("div",{key:0,class:"v-tooltip-line-vertical",style:(0,vue__WEBPACK_IMPORTED_MODULE_2__.normalizeStyle)({height:t.canvas.height+"px"})},null,4)):((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)("div",{key:1,class:"v-tooltip-line-horizontal",style:(0,vue__WEBPACK_IMPORTED_MODULE_2__.normalizeStyle)({width:t.canvas.width-40+"px"})},null,4))]))],4)):(0,vue__WEBPACK_IMPORTED_MODULE_1__.kq)("v-if",!0)}var css_248z="\n.v-tooltip[data-v-43da20c6] {\n position: absolute;\n pointer-events: none;\n}\n.v-tooltip-content[data-v-43da20c6] {\n position: absolute;\n white-space: nowrap;\n pointer-events: none;\n}\n.v-tooltip-content > div[data-v-43da20c6] {\n margin-left: 5px;\n margin-right: 5px;\n border: 2px solid;\n background-color: white;\n padding: 8px;\n text-align: left;\n border-radius: 4px;\n box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);\n}\n.v-tooltip-right[data-v-43da20c6] {\n transform: translateX(-100%);\n margin-left: 0;\n}\n.v-tooltip-line-vertical[data-v-43da20c6] {\n top: 0px;\n position: absolute;\n width: 1px;\n background-color: black;\n pointer-events: none;\n opacity: 0.3;\n}\n.v-tooltip-line-horizontal[data-v-43da20c6] {\n left: 0px;\n position: absolute;\n height: 1px;\n background-color: black;\n pointer-events: none;\n opacity: 0.3;\n}\n";styleInject(css_248z),script$4.render=render$4,script$4.__scopeId="data-v-43da20c6",script$4.__file="src/components/Tooltip/index.vue";var script$3=(0,vue__WEBPACK_IMPORTED_MODULE_1__.aZ)({props:{stacked:{type:Boolean,default:!1},maxWidth:{type:Number,default:-1}},setup(t){(0,vue__WEBPACK_IMPORTED_MODULE_1__.JJ)("layerProps",t)}});function render$3(t,e,n,r,i,a){return(0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)("div",null,[(0,vue__WEBPACK_IMPORTED_MODULE_1__.WI)(t.$slots,"default")])}script$3.render=render$3,script$3.__file="src/components/Group/index.vue";var script$2=(0,vue__WEBPACK_IMPORTED_MODULE_1__.aZ)({name:"Grid",props:{value:{type:Number},label:{type:String,default:""},color:{type:String,default:"red"},strokeDasharray:{type:String,default:()=>"3"},strokeWidth:{type:Number,default:1},strokeOpacity:{type:Number,default:.5}},setup(t){const e=useChart(),n=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)(0),r=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)("horizontal"),i=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)({});return(0,vue__WEBPACK_IMPORTED_MODULE_1__.YP)(e.updates,(()=>{void 0!==t.value&&(n.value=e.scales.secondary.scale(t.value)),i.value=e.canvas,r.value=e.config.direction}),{immediate:!0}),(0,vue__WEBPACK_IMPORTED_MODULE_1__.YP)((()=>t.value),(()=>{n.value=e.scales.secondary.scale(t.value)}),{immediate:!0}),{y:n,canvas:i,direction:r}}});const _hoisted_1$2={key:0,class:"layer-marker"},_hoisted_2$2=["x","y","fill"],_hoisted_3$1=["x1","y1","x2","y2","stroke","stroke-opacity","stroke-width","stroke-dasharray"],_hoisted_4$1={key:1,class:"layer-marker"},_hoisted_5$1=["x","y","fill"],_hoisted_6$1=["x1","y1","x2","y2","stroke","stroke-opacity","stroke-width","stroke-dasharray"];function render$2(t,e,n,r,i,a){return"horizontal"===t.direction?((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)("g",_hoisted_1$2,[(0,vue__WEBPACK_IMPORTED_MODULE_1__._)("text",{x:t.canvas.x+5,y:t.y-5,"text-anchor":"start",fill:t.color},(0,vue__WEBPACK_IMPORTED_MODULE_2__.toDisplayString)(t.label),9,_hoisted_2$2),(0,vue__WEBPACK_IMPORTED_MODULE_1__._)("line",{x1:t.canvas.x,y1:t.y,x2:t.canvas.width,y2:t.y,stroke:t.color,"stroke-opacity":t.strokeOpacity,"stroke-width":t.strokeWidth,"stroke-dasharray":t.strokeDasharray},null,8,_hoisted_3$1)])):((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)("g",_hoisted_4$1,[(0,vue__WEBPACK_IMPORTED_MODULE_1__._)("text",{x:t.y+10,y:t.canvas.y+5,"text-anchor":"start",fill:t.color,style:{"writing-mode":"tb"}},(0,vue__WEBPACK_IMPORTED_MODULE_2__.toDisplayString)(t.label),9,_hoisted_5$1),(0,vue__WEBPACK_IMPORTED_MODULE_1__._)("line",{x1:t.y,y1:t.canvas.y,x2:t.y,y2:t.canvas.height,stroke:t.color,"stroke-opacity":t.strokeOpacity,"stroke-width":t.strokeWidth,"stroke-dasharray":t.strokeDasharray},null,8,_hoisted_6$1)]))}function count(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function node_count(){return this.eachAfter(count)}function node_each(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this}function node_eachBefore(t,e){for(var n,r,i=this,a=[i],o=-1;i=a.pop();)if(t.call(e,i,++o,this),n=i.children)for(r=n.length-1;r>=0;--r)a.push(n[r]);return this}function node_eachAfter(t,e){for(var n,r,i,a=this,o=[a],s=[],u=-1;a=o.pop();)if(s.push(a),n=a.children)for(r=0,i=n.length;r<i;++r)o.push(n[r]);for(;a=s.pop();)t.call(e,a,++u,this);return this}function node_find(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r}function node_sum(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))}function node_sort(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))}function node_path(t){for(var e=this,n=leastCommonAncestor(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r}function leastCommonAncestor(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}function node_ancestors(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function node_descendants(){return Array.from(this)}function node_leaves(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t}function node_links(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e}function*node_iterator(){var t,e,n,r,i=this,a=[i];do{for(t=a.reverse(),a=[];i=t.pop();)if(yield i,e=i.children)for(n=0,r=e.length;n<r;++n)a.push(e[n])}while(a.length)}function hierarchy(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=mapChildren)):void 0===e&&(e=objectChildren);for(var n,r,i,a,o,s=new Node(t),u=[s];n=u.pop();)if((i=e(n.data))&&(o=(i=Array.from(i)).length))for(n.children=i,a=o-1;a>=0;--a)u.push(r=i[a]=new Node(i[a])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(computeHeight)}function node_copy(){return hierarchy(this).eachBefore(copyData)}function objectChildren(t){return t.children}function mapChildren(t){return Array.isArray(t)?t[1]:null}function copyData(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function computeHeight(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Node(t){this.data=t,this.depth=this.height=0,this.parent=null}function optional(t){return null==t?null:required(t)}function required(t){if("function"!=typeof t)throw new Error;return t}function constantZero(){return 0}function constant(t){return function(){return t}}function roundNode(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function treemapDice(t,e,n,r,i){for(var a,o=t.children,s=-1,u=o.length,c=t.value&&(r-e)/t.value;++s<u;)(a=o[s]).y0=n,a.y1=i,a.x0=e,a.x1=e+=a.value*c}script$2.render=render$2,script$2.__file="src/components/Marker/index.vue",Node.prototype=hierarchy.prototype={constructor:Node,count:node_count,each:node_each,eachAfter:node_eachAfter,eachBefore:node_eachBefore,find:node_find,sum:node_sum,sort:node_sort,path:node_path,ancestors:node_ancestors,descendants:node_descendants,leaves:node_leaves,links:node_links,copy:node_copy,[Symbol.iterator]:node_iterator};var preroot={depth:-1},ambiguous={},imputed={};function defaultId(t){return t.id}function defaultParentId(t){return t.parentId}function stratify(){var t,e=defaultId,n=defaultParentId;function r(r){var i,a,o,s,u,c,_,l,h=Array.from(r),f=e,p=n,d=new Map;if(null!=t){const e=h.map(((e,n)=>normalize(t(e,n,r)))),n=e.map(parentof),i=new Set(e).add("");for(const t of n)i.has(t)||(i.add(t),e.push(t),n.push(parentof(t)),h.push(imputed));f=(t,n)=>e[n],p=(t,e)=>n[e]}for(o=0,i=h.length;o<i;++o)a=h[o],c=h[o]=new Node(a),null!=(_=f(a,o,r))&&(_+="")&&(l=c.id=_,d.set(l,d.has(l)?ambiguous:c)),null!=(_=p(a,o,r))&&(_+="")&&(c.parent=_);for(o=0;o<i;++o)if(_=(c=h[o]).parent){if(!(u=d.get(_)))throw new Error("missing: "+_);if(u===ambiguous)throw new Error("ambiguous: "+_);u.children?u.children.push(c):u.children=[c],c.parent=u}else{if(s)throw new Error("multiple roots");s=c}if(!s)throw new Error("no root");if(null!=t){for(;s.data===imputed&&1===s.children.length;)s=s.children[0],--i;for(let t=h.length-1;t>=0&&(c=h[t]).data===imputed;--t)c.data=null}if(s.parent=preroot,s.eachBefore((function(t){t.depth=t.parent.depth+1,--i})).eachBefore(computeHeight),s.parent=null,i>0)throw new Error("cycle");return s}return r.id=function(t){return arguments.length?(e=optional(t),r):e},r.parentId=function(t){return arguments.length?(n=optional(t),r):n},r.path=function(e){return arguments.length?(t=optional(e),r):t},r}function normalize(t){let e=(t=`${t}`).length;return slash(t,e-1)&&!slash(t,e-2)&&(t=t.slice(0,-1)),"/"===t[0]?t:`/${t}`}function parentof(t){let e=t.length;if(e<2)return"";for(;--e>1&&!slash(t,e););return t.slice(0,e)}function slash(t,e){if("/"===t[e]){let n=0;for(;e>0&&"\\"===t[--e];)++n;if(0==(1&n))return!0}return!1}function treemapSlice(t,e,n,r,i){for(var a,o=t.children,s=-1,u=o.length,c=t.value&&(i-n)/t.value;++s<u;)(a=o[s]).x0=e,a.x1=r,a.y0=n,a.y1=n+=a.value*c}var phi=(1+Math.sqrt(5))/2;function squarifyRatio(t,e,n,r,i,a){for(var o,s,u,c,_,l,h,f,p,d,y,g=[],v=e.children,E=0,m=0,M=v.length,P=e.value;E<M;){u=i-n,c=a-r;do{_=v[m++].value}while(!_&&m<M);for(l=h=_,y=_*_*(d=Math.max(c/u,u/c)/(P*t)),p=Math.max(h/y,y/l);m<M;++m){if(_+=s=v[m].value,s<l&&(l=s),s>h&&(h=s),y=_*_*d,(f=Math.max(h/y,y/l))>p){_-=s;break}p=f}g.push(o={value:_,dice:u<c,children:v.slice(E,m)}),o.dice?treemapDice(o,n,r,i,P?r+=c*_/P:a):treemapSlice(o,n,r,P?n+=u*_/P:i,a),P-=_,E=m}return g}var squarify=function t(e){function n(t,n,r,i,a){squarifyRatio(e,t,n,r,i,a)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(phi);function treemap(){var t=squarify,e=!1,n=1,r=1,i=[0],a=constantZero,o=constantZero,s=constantZero,u=constantZero,c=constantZero;function _(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(l),i=[0],e&&t.eachBefore(roundNode),t}function l(e){var n=i[e.depth],r=e.x0+n,_=e.y0+n,l=e.x1-n,h=e.y1-n;l<r&&(r=l=(r+l)/2),h<_&&(_=h=(_+h)/2),e.x0=r,e.y0=_,e.x1=l,e.y1=h,e.children&&(n=i[e.depth+1]=a(e)/2,r+=c(e)-n,_+=o(e)-n,(l-=s(e)-n)<r&&(r=l=(r+l)/2),(h-=u(e)-n)<_&&(_=h=(_+h)/2),t(e,r,_,l,h))}return _.round=function(t){return arguments.length?(e=!!t,_):e},_.size=function(t){return arguments.length?(n=+t[0],r=+t[1],_):[n,r]},_.tile=function(e){return arguments.length?(t=required(e),_):t},_.padding=function(t){return arguments.length?_.paddingInner(t).paddingOuter(t):_.paddingInner()},_.paddingInner=function(t){return arguments.length?(a="function"==typeof t?t:constant(+t),_):a},_.paddingOuter=function(t){return arguments.length?_.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):_.paddingTop()},_.paddingTop=function(t){return arguments.length?(o="function"==typeof t?t:constant(+t),_):o},_.paddingRight=function(t){return arguments.length?(s="function"==typeof t?t:constant(+t),_):s},_.paddingBottom=function(t){return arguments.length?(u="function"==typeof t?t:constant(+t),_):u},_.paddingLeft=function(t){return arguments.length?(c="function"==typeof t?t:constant(+t),_):c},_}var script$1=(0,vue__WEBPACK_IMPORTED_MODULE_1__.aZ)({name:"Treemap",props:{size:{type:Object,default:()=>({width:500,height:400}),required:!1},margin:{type:Object,default:()=>({top:0,right:0,bottom:0,left:0})},padding:{type:Number,default:8},data:{type:Array,default:()=>[]},dataKeys:{type:Object,required:!0},colorFn:{type:Function,default:()=>interpolateHcl("#60c96e","#6b46c1")},rcStyle:{type:Function,required:!1}},setup(t){const e=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)(null),n=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)(t.data),r=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)(null),i=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)({x:t.margin.left,y:t.margin.top,width:t.size.width-t.margin.right,height:t.size.height-t.margin.bottom}),a=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)([]);function o(){const e=extent(n.value.map((e=>e[t.dataKeys[1]])));return{x:linear().domain(e).range([0,100]).nice(),y:sequential().domain(e).interpolator(t.colorFn())}}return(0,vue__WEBPACK_IMPORTED_MODULE_1__.YP)(t,(()=>{n.value=t.data,i.value={x:t.margin.left,y:t.margin.top,width:t.size.width-t.margin.right,height:t.size.height-t.margin.bottom},a.value=function(){const{y:e}=o(),r=function(e){const{x:n}=o(),r=treemap().size([i.value.width-i.value.x,i.value.height-i.value.y]).padding(t.padding),a=stratify().id((t=>t.name)).parentId((t=>t.parent))([{name:"root"}].concat(e.map((e=>({name:e[t.dataKeys[0]],value:e[t.dataKeys[1]],parent:"root"})))));return a.sum((t=>n(t.value))),r(a),a}(n.value).leaves().map(((t,n)=>({idx:n,x0:i.value.x+t.x0,x1:i.value.x+t.x1,y0:i.value.y+t.y0,y1:i.value.y+t.y1,width:t.x1-t.x0,height:t.y1-t.y0,data:t.data,color:e(t.value)})));return r}()}),{immediate:!0}),{el:e,rectangles:a,selected:r,getStyle:e=>{const n={stroke:e.color,strokeWidth:5,fill:e.color,fillOpacity:.9};return t.rcStyle&&"function"==typeof t.rcStyle?Object.assign(Object.assign({},n),t.rcStyle(e)):n},toKebabCase:t=>mapKeys(kebabize,t),onMouseOver:function(t){r.value=t},onMouseOut:function(){r.value=null}}}});const _hoisted_1$1={class:"treemap",style:{display:"flex",position:"relative"}},_hoisted_2$1=["width","height","viewBox"],_hoisted_3={class:"layer-rectangles"},_hoisted_4=["transform","onMouseover"],_hoisted_5=["width","height"],_hoisted_6={x:10,y:20,"font-size":"15px",fill:"white","font-weight":"bold"};function render$1(t,e,n,r,i,a){return(0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)("div",_hoisted_1$1,[((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)("svg",{width:t.size.width,height:t.size.height,viewBox:`0 0 ${t.size.width} ${t.size.height}`,ref:"el"},[(0,vue__WEBPACK_IMPORTED_MODULE_1__._)("g",_hoisted_3,[((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(!0),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)(vue__WEBPACK_IMPORTED_MODULE_1__.HY,null,(0,vue__WEBPACK_IMPORTED_MODULE_1__.Ko)(t.rectangles,((n,r)=>((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)("g",{class:(0,vue__WEBPACK_IMPORTED_MODULE_2__.normalizeClass)(["rectangle",{selected:t.selected===r}]),key:r,transform:`translate(${n.x0}, ${n.y0})`,onMouseover:()=>t.onMouseOver(r),onMouseleave:e[0]||(e[0]=(...e)=>t.onMouseOut&&t.onMouseOut(...e))},[(0,vue__WEBPACK_IMPORTED_MODULE_1__.WI)(t.$slots,"default",{r:n,selected:t.selected===r},(()=>[(0,vue__WEBPACK_IMPORTED_MODULE_1__._)("rect",(0,vue__WEBPACK_IMPORTED_MODULE_1__.dG)(t.toKebabCase(t.getStyle(n)),{x:0,y:0,width:n.width,height:n.height}),null,16,_hoisted_5),(0,vue__WEBPACK_IMPORTED_MODULE_1__.WI)(t.$slots,"text",{r:n,selected:t.selected===r},(()=>[(0,vue__WEBPACK_IMPORTED_MODULE_1__._)("text",_hoisted_6,(0,vue__WEBPACK_IMPORTED_MODULE_2__.toDisplayString)(n.data.name),1)]))]))],42,_hoisted_4)))),128))])],8,_hoisted_2$1)),(0,vue__WEBPACK_IMPORTED_MODULE_1__.WI)(t.$slots,"widgets")])}script$1.render=render$1,script$1.__file="src/components/Treemap/index.vue";var script=(0,vue__WEBPACK_IMPORTED_MODULE_1__.aZ)({name:"HoverBar",props:{barStyle:{type:Object,default:()=>({"fill-opacity":.05})}},setup(){const t=useChart(),e=useMouse(),n=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)({x:0,y:0,width:0,height:0}),r=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)("horizontal"),i=(0,vue__WEBPACK_IMPORTED_MODULE_0__.iH)({x:0,y:0,width:0,height:0});return(0,vue__WEBPACK_IMPORTED_MODULE_1__.YP)(t.updates,(()=>{i.value=t.canvas,r.value=t.config.direction}),{immediate:!0}),(0,vue__WEBPACK_IMPORTED_MODULE_1__.YP)(e,(()=>{if(t.bandScale){const r=t.getData(t.getKeys(0)),[a]=t.bandScale.map([r[e.index]]),o=t.bandScale.bandwidth();a&&("horizontal"===t.config.direction?n.value={x:a-o/2,y:0,width:o,height:i.value.height}:n.value={x:40,y:a-o/2,width:i.value.width-40,height:o})}})),{bar:n,canvas:i,direction:r,mouse:e}}});const _hoisted_1={key:0,class:"layer-hover-bar"},_hoisted_2=["x","y","width","height"];function render(t,e,n,r,i,a){return t.mouse.hover?((0,vue__WEBPACK_IMPORTED_MODULE_1__.wg)(),(0,vue__WEBPACK_IMPORTED_MODULE_1__.iD)("g",_hoisted_1,[(0,vue__WEBPACK_IMPORTED_MODULE_1__._)("rect",(0,vue__WEBPACK_IMPORTED_MODULE_1__.dG)({class:"hover-bar"},t.barStyle,{x:t.bar.x,y:t.bar.y,width:t.bar.width>0?t.bar.width:0,height:t.bar.height>0?t.bar.height:0}),null,16,_hoisted_2)])):(0,vue__WEBPACK_IMPORTED_MODULE_1__.kq)("v-if",!0)}script.render=render,script.__file="src/components/HoverBar/index.vue";var components=Object.freeze({__proto__:null,Chart:script$c,Layer:script$b,Area:script$a,Line:script$9,Bar:script$8,Pie:script$7,Responsive:script$6,Grid:script$5,Tooltip:script$4,Group:script$3,Marker:script$2,Treemap:script$1,HoverBar:script});const install=function(t){Object.entries(components).forEach((([e,n])=>{t.component(e,n)}))};var index={install:install}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[653],{56621:function(){},21506:function(t,e,i){"use strict";var o=i(4942),n=i(70419),s=i(75242),r=i(26036),a=i(67476),c=i(72956),d=i.n(c),u=i(67106);function l(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function v(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?l(Object(i),!0).forEach((function(e){(0,o.Z)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var p=i(16033).Z.youtube;e.Z={name:"VsVideoCaption",status:"prototype",release:"0.0.1",components:{VsButton:n.default,VsToggleButton:s.default,VsWarning:r.default},mixins:[u.Z],inject:{noJsMessage:{default:""},noCookiesMessage:{default:""},cookieLinkText:{default:""},errorMessage:{default:""}},props:{videoBtnText:{type:String,default:""},withToggleBtn:{type:Boolean,default:!1},videoId:{type:String,required:!0},variant:{type:String,default:"wide",validator:function(t){return t.match(/(wide|narrow)/)}}},data:function(){return{requiredCookies:p,showErrorMessage:!1}},computed:v(v({},(0,a.rn)(d(),{videoDetails:function(t){return t.getVideo(this.videoId)}})),{},{videoLoaded:function(){return void 0!==this.videoDetails&&this.videoDetails.videoDuration>0},showCookieMessage:function(){return!!(!this.requiredCookiesExist&&this.cookiesSet.length>0&&this.noCookiesMessage)}}),methods:{emitToggle:function(){this.$emit("toggleAction")},emitShowModal:function(){this.emitter&&this.emitter.emit("showModal",this.videoId,"#videoShow")}}}},71982:function(t,e,i){"use strict";i.d(e,{s:function(){return g}});var o=i(66252),n=i(3577),s=i(49963),r={key:0,class:"vs-video-caption__buttons-container"},a={class:"container"},c={key:1,class:"vs-video-caption__details container"},d={class:"vs-video-caption__title"},u={class:"vs-video-caption__duration"},l={class:"vs-video-caption vs-video-caption--warning"},v={class:"vs-video-caption vs-video-caption--warning"},p={class:"vs-video-caption vs-video-caption--no-js vs-video-caption--warning","data-test":"video-caption-nojs"};function g(t,e,i,g,f,w){var k=(0,o.up)("VsButton"),y=(0,o.up)("VsToggleButton"),h=(0,o.up)("VsWarning");return(0,o.wg)(),(0,o.iD)("div",{"data-test":"video-caption",class:(0,n.normalizeClass)(["vs-video-caption__wrapper","vs-video-caption__wrapper--".concat(i.variant)])},[w.videoLoaded&&t.requiredCookiesExist?((0,o.wg)(),(0,o.iD)("div",{"data-test":"video-caption-variants",class:(0,n.normalizeClass)(["vs-video-caption","vs-video-caption--".concat(i.variant)]),key:"video-caption"},[i.videoBtnText?((0,o.wg)(),(0,o.iD)("div",r,[(0,o._)("div",a,[(0,o.Wm)(k,{class:"vs-video-caption__button",icon:"play","icon-position":"left",size:"md",ref:"videoShow",onClick:w.emitShowModal},{default:(0,o.w5)((function(){return[(0,o.Uk)((0,n.toDisplayString)(i.videoBtnText),1)]})),_:1},8,["onClick"])]),i.withToggleBtn?((0,o.wg)(),(0,o.j4)(y,{key:0,onToggleAction:w.emitToggle},{default:(0,o.w5)((function(){return[(0,o.Uk)(" Toggle caption ")]})),_:1},8,["onToggleAction"])):(0,o.kq)("",!0)])):(0,o.kq)("",!0),t.requiredCookiesExist?((0,o.wg)(),(0,o.iD)("div",c,[(0,o._)("p",d,[(0,o.WI)(t.$slots,"video-title")]),(0,o._)("p",u,(0,n.toDisplayString)(t.videoDetails.videoDurationMsg),1)])):(0,o.kq)("",!0)],2)):(0,o.kq)("",!0),(0,o.wy)((0,o._)("div",l,[(0,o.Wm)(h,{size:"small",type:"cookie",transparent:!1},{"button-text":(0,o.w5)((function(){return[(0,o.Uk)((0,n.toDisplayString)(w.cookieLinkText),1)]})),default:(0,o.w5)((function(){return[(0,o.Uk)((0,n.toDisplayString)(w.noCookiesMessage)+" ",1)]})),_:1})],512),[[s.vShow,!(w.videoLoaded&&t.requiredCookiesExist)&&w.showCookieMessage]]),(0,o.wy)((0,o._)("div",v,[(0,o.Wm)(h,{size:"small",transparent:!1},{default:(0,o.w5)((function(){return[(0,o.Uk)((0,n.toDisplayString)(w.errorMessage),1)]})),_:1})],512),[[s.vShow,!(w.videoLoaded&&t.requiredCookiesExist)&&"error"===t.cookiesInitStatus]]),(0,o._)("div",p,[(0,o.Wm)(h,{size:"small",transparent:!1},{default:(0,o.w5)((function(){return[(0,o.Uk)((0,n.toDisplayString)(w.noJsMessage),1)]})),_:1})])],2)}},46173:function(t,e,i){"use strict";var o=i(93379),n=i.n(o),s=i(7795),r=i.n(s),a=i(90569),c=i.n(a),d=i(3565),u=i.n(d),l=i(19216),v=i.n(l),p=i(44589),g=i.n(p),f=i(56621),w=i.n(f),k={};k.styleTagTransform=g(),k.setAttributes=u(),k.insert=c().bind(null,"head"),k.domAPI=r(),k.insertStyleElement=v(),n()(w(),k),w()&&w().locals&&w().locals},10653:function(t,e,i){"use strict";i.r(e);var o=i(2029),n=i(99466);i(33778);const s=(0,i(83744).Z)(n.Z,[["render",o.s]]);e.default=s},99466:function(t,e,i){"use strict";i.d(e,{Z:function(){return o.Z}});var o=i(21506)},2029:function(t,e,i){"use strict";i.d(e,{s:function(){return o.s}});var o=i(71982)},33778:function(t,e,i){"use strict";i(46173)}}]);
@@ -1 +0,0 @@
1
- !function(s,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsAddress=t():s.VsAddress=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[992],{25455:function(){},2992:function(s,t,e){"use strict";var n=e(55252);t.Z={name:"VsAddress",status:"prototype",release:"0.1.0",components:{VsIcon:n.default}}},79185:function(s,t,e){"use strict";e.d(t,{s:function(){return u}});var n=e(66252),r={class:"vs-address","data-test":"vs-address"},o={class:"vs-address__address-box"};function u(s,t,e,u,c,a){var i=(0,n.up)("VsIcon");return(0,n.wg)(),(0,n.iD)("div",r,[(0,n.Wm)(i,{name:"map-marker",class:"vs-address__map-marker me-2"}),(0,n._)("address",o,[(0,n.WI)(s.$slots,"default")])])}},77795:function(s,t,e){"use strict";var n=e(93379),r=e.n(n),o=e(7795),u=e.n(o),c=e(90569),a=e.n(c),i=e(3565),d=e.n(i),f=e(19216),l=e.n(f),p=e(44589),m=e.n(p),v=e(25455),_=e.n(v),b={};b.styleTagTransform=m(),b.setAttributes=d(),b.insert=a().bind(null,"head"),b.domAPI=u(),b.insertStyleElement=l(),r()(_(),b),_()&&_().locals&&_().locals},27581:function(s,t,e){"use strict";e.r(t);var n=e(86715),r=e(6657);e(73265);const o=(0,e(83744).Z)(r.Z,[["render",n.s]]);t.default=o},6657:function(s,t,e){"use strict";e.d(t,{Z:function(){return n.Z}});var n=e(2992)},86715:function(s,t,e){"use strict";e.d(t,{s:function(){return n.s}});var n=e(79185)},73265:function(s,t,e){"use strict";e(77795)}},function(s){return s.O(0,[6252,3744,7991,6486,4942,5252],(function(){return 27581,s(s.s=27581)})),s.O()}])}));
@@ -1 +0,0 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsArticle=e():t.VsArticle=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[2709],{91449:function(){},96617:function(t,e,n){"use strict";var r=n(51843),s=n(7133),i=n(46157);e.Z={name:"VsArticle",status:"prototype",release:"0.0.1",components:{VsCol:r.hY,VsRow:r.ou,VsContainer:r.xB,VsRichTextWrapper:s.default,VsHeading:i.default},props:{title:{type:String,required:!0},anchorLink:{type:String,default:""}}}},21487:function(t,e,n){"use strict";n.d(e,{s:function(){return c}});var r=n(66252),s=n(3577),i={class:"vs-article__wrapper mb-9 mb-md-11"},u={class:"vs-article__header mx-6 mx-md-0 mt-9 mt-lg-11"},l=["id"],o={class:"vs-article__content"};function c(t,e,n,c,a,f){var d=(0,r.up)("VsHeading"),p=(0,r.up)("VsRichTextWrapper"),m=(0,r.up)("VsCol"),_=(0,r.up)("VsRow"),v=(0,r.up)("VsContainer");return(0,r.wg)(),(0,r.iD)("article",(0,r.dG)({class:"vs-article","data-test":"vs-article"},t.$attrs),[(0,r.Wm)(v,null,{default:(0,r.w5)((function(){return[(0,r.Wm)(_,null,{default:(0,r.w5)((function(){return[(0,r.Wm)(m,{cols:"12",class:"col-xxl-10 offset-xxl-1"},{default:(0,r.w5)((function(){return[(0,r._)("div",i,[(0,r.WI)(t.$slots,"vs-article-img"),(0,r.Wm)(_,null,{default:(0,r.w5)((function(){return[(0,r.Wm)(m,{cols:"12",md:"10","offset-md":"1"},{default:(0,r.w5)((function(){return[(0,r._)("div",u,[(0,r.Wm)(d,{level:"2",class:"text-center mb-8 mb-lg-9"},{default:(0,r.w5)((function(){return[(0,r._)("span",{id:n.anchorLink?n.anchorLink:""},(0,s.toDisplayString)(n.title),9,l)]})),_:1}),(0,r.Wm)(p,{variant:"lead",class:"text-center mb-9 mb-lg-10"},{default:(0,r.w5)((function(){return[(0,r.WI)(t.$slots,"vs-article-intro")]})),_:3})]),(0,r._)("div",o,[(0,r.WI)(t.$slots,"default")])]})),_:3})]})),_:3})])]})),_:3})]})),_:3})]})),_:3})],16)}},95227:function(t,e,n){"use strict";var r=n(93379),s=n.n(r),i=n(7795),u=n.n(i),l=n(90569),o=n.n(l),c=n(3565),a=n.n(c),f=n(19216),d=n.n(f),p=n(44589),m=n.n(p),_=n(91449),v=n.n(_),b={};b.styleTagTransform=m(),b.setAttributes=a(),b.insert=o().bind(null,"head"),b.domAPI=u(),b.insertStyleElement=d(),s()(v(),b),v()&&v().locals&&v().locals},38207:function(t,e,n){"use strict";n.r(e);var r=n(55440),s=n(93263);n(61242);const i=(0,n(83744).Z)(s.Z,[["render",r.s]]);e.default=i},93263:function(t,e,n){"use strict";n.d(e,{Z:function(){return r.Z}});var r=n(96617)},55440:function(t,e,n){"use strict";n.d(e,{s:function(){return r.s}});var r=n(21487)},61242:function(t,e,n){"use strict";n(95227)}},function(t){return t.O(0,[6252,3744,7991,9963,6486,2854,1436,6157,4159,9187,1843,7133],(function(){return 38207,t(t.s=38207)})),t.O()}])}));
@@ -1 +0,0 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4979],{65806:function(){},59191:function(t,n,s){"use strict";var e=s(55252);n.Z={name:"VsStretchedLinkPanels",status:"prototype",release:"0.0.1",components:{VsIcon:e.default},props:{days:{type:String,default:""},transport:{type:String,default:""},daysLabel:{type:String,default:"days"},transportName:{type:String,default:""}}}},33486:function(t,n,s){"use strict";s.d(n,{s:function(){return p}});var e=s(66252),a=s(3577),r={class:"vs-stretched-link-panels"},i={class:"vs-stretched-link-panels__panel vs-stretched-link-panels__panel--days","data-test":"vs-stretched-link-panel--days"},l={"data-test":""},c={class:"vs-stretched-link-panels__days"},o={class:"vs-stretched-link-panels__panel","data-test":"vs-stretched-link-panel"},d={"data-test":"vs-stretched-link-panel__icon"};function p(t,n,s,p,u,_){var v=(0,e.up)("VsIcon");return(0,e.wg)(),(0,e.iD)("div",r,[(0,e._)("div",i,[(0,e._)("p",l,[(0,e._)("span",c,(0,a.toDisplayString)(s.days),1),(0,e.Uk)((0,a.toDisplayString)(s.daysLabel),1)])]),(0,e._)("div",o,[(0,e.Wm)(v,{name:s.transport,variant:"color-white",class:"vs-stretched-link-panels__icon"},null,8,["name"]),(0,e._)("p",d,(0,a.toDisplayString)(s.transportName),1)])])}},99510:function(t,n,s){"use strict";var e=s(93379),a=s.n(e),r=s(7795),i=s.n(r),l=s(90569),c=s.n(l),o=s(3565),d=s.n(o),p=s(19216),u=s.n(p),_=s(44589),v=s.n(_),f=s(65806),y=s.n(f),h={};h.styleTagTransform=v(),h.setAttributes=d(),h.insert=c().bind(null,"head"),h.domAPI=i(),h.insertStyleElement=u(),a()(y(),h),y()&&y().locals&&y().locals},24979:function(t,n,s){"use strict";s.r(n);var e=s(92748),a=s(5335);s(44178);const r=(0,s(83744).Z)(a.Z,[["render",e.s]]);n.default=r},5335:function(t,n,s){"use strict";s.d(n,{Z:function(){return e.Z}});var e=s(59191)},92748:function(t,n,s){"use strict";s.d(n,{s:function(){return e.s}});var e=s(33486)},44178:function(t,n,s){"use strict";s(99510)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[2945],{35875:function(n,t,r){var e=r(92854);t.Z={name:"VsTableRow",status:"prototype",release:"0.0.1",components:{BTr:e.GA}}},28463:function(n,t,r){r.d(t,{s:function(){return s}});var e=r(66252),o=r(3577);function s(n,t,r,s,u,a){var c=(0,e.up)("BTr");return(0,e.wg)(),(0,e.j4)(c,(0,o.normalizeProps)((0,e.F4)(n.$attrs)),{default:(0,e.w5)((function(){return[(0,e.WI)(n.$slots,"default")]})),_:3},16)}},22945:function(n,t,r){r.r(t);var e=r(28463),o=r(59731);const s=(0,r(83744).Z)(o.Z,[["render",e.s]]);t.default=s},59731:function(n,t,r){r.d(t,{Z:function(){return e.Z}});var e=r(35875)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8518],{48518:function(e,t,i){i.r(t),i.d(t,{default:function(){return f}});var s=i(66252),n=i(49963),o=i(3577),r=(0,s.aZ)({name:"Vue3SimpleTypeahead",emits:["onInput","onFocus","onBlur","selectItem"],inheritAttrs:!1,props:{id:{type:String},placeholder:{type:String,default:""},items:{type:Array,required:!0},defaultItem:{default:null},itemProjection:{type:Function,default(e){return e}},minInputLength:{type:Number,default:2,validator:e=>e>=0},minItemLength:{type:Number,default:0,validator:e=>e>=0},selectOnTab:{type:Boolean,default:!0}},mounted(){void 0!==this.defaultItem&&null!==this.defaultItem&&this.selectItem(this.defaultItem)},data(){return{inputId:this.id||`simple_typeahead_${(1e3*Math.random()).toFixed()}`,input:"",isInputFocused:!1,currentSelectionIndex:0}},methods:{onInput(){this.isListVisible&&this.currentSelectionIndex>=this.filteredItems.length&&(this.currentSelectionIndex=(this.filteredItems.length||1)-1),this.$emit("onInput",{input:this.input,items:this.filteredItems})},onFocus(){this.isInputFocused=!0,this.$emit("onFocus",{input:this.input,items:this.filteredItems})},onBlur(){this.isInputFocused=!1,this.$emit("onBlur",{input:this.input,items:this.filteredItems})},onArrowDown(e){this.isListVisible&&this.currentSelectionIndex<this.filteredItems.length-1&&this.currentSelectionIndex++,this.scrollSelectionIntoView()},onArrowUp(e){this.isListVisible&&this.currentSelectionIndex>0&&this.currentSelectionIndex--,this.scrollSelectionIntoView()},scrollSelectionIntoView(){setTimeout((()=>{const e=document.querySelector(`#${this.wrapperId} .simple-typeahead-list`),t=document.querySelector(`#${this.wrapperId} .simple-typeahead-list-item.simple-typeahead-list-item-active`);if(!(t.offsetTop>=e.scrollTop&&t.offsetTop+t.offsetHeight<e.scrollTop+e.offsetHeight)){let i=0;t.offsetTop>e.scrollTop?i=t.offsetTop+t.offsetHeight-e.offsetHeight:t.offsetTop<e.scrollTop&&(i=t.offsetTop),e.scrollTo(0,i)}}))},selectCurrentSelection(){this.currentSelection&&this.selectItem(this.currentSelection)},selectCurrentSelectionTab(){this.selectOnTab?this.selectCurrentSelection():this.$refs.inputRef.blur()},selectItem(e){this.input=this.itemProjection(e),this.currentSelectionIndex=0,this.$refs.inputRef.blur(),this.$emit("selectItem",e)},escapeRegExp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},boldMatchText(e){const t=new RegExp(`(${this.escapeRegExp(this.input)})`,"ig");return e.replace(t,"<strong>$1</strong>")},clearInput(){this.input=""},getInput(){return this.$refs.inputRef},focusInput(){this.$refs.inputRef.focus(),this.onFocus()},blurInput(){this.$refs.inputRef.blur(),this.onBlur()}},computed:{wrapperId(){return`${this.inputId}_wrapper`},filteredItems(){const e=new RegExp(this.escapeRegExp(this.input),"i");return this.items.filter((t=>this.itemProjection(t).match(e)))},isListVisible(){return this.isInputFocused&&this.input.length>=this.minInputLength&&this.filteredItems.length>this.minItemLength},currentSelection(){return this.isListVisible&&this.currentSelectionIndex<this.filteredItems.length?this.filteredItems[this.currentSelectionIndex]:void 0}}});(0,s.dD)("data-v-f81ca714");const l=["id"],u=["id","placeholder"],c={key:0,class:"simple-typeahead-list"},p={key:0,class:"simple-typeahead-list-header"},a=["onClick","onMouseenter"],h=["data-text"],d=["data-text","innerHTML"],m={key:1,class:"simple-typeahead-list-footer"};(0,s.Cn)(),r.render=function(e,t,i,r,f,I){return(0,s.wg)(),(0,s.iD)("div",{id:e.wrapperId,class:"simple-typeahead"},[(0,s.wy)((0,s._)("input",(0,s.dG)({ref:"inputRef",id:e.inputId,class:"simple-typeahead-input",type:"text",placeholder:e.placeholder,"onUpdate:modelValue":t[0]||(t[0]=t=>e.input=t),onInput:t[1]||(t[1]=(...t)=>e.onInput&&e.onInput(...t)),onFocus:t[2]||(t[2]=(...t)=>e.onFocus&&e.onFocus(...t)),onBlur:t[3]||(t[3]=(...t)=>e.onBlur&&e.onBlur(...t)),onKeydown:[t[4]||(t[4]=(0,n.withKeys)((0,n.withModifiers)(((...t)=>e.onArrowDown&&e.onArrowDown(...t)),["prevent"]),["down"])),t[5]||(t[5]=(0,n.withKeys)((0,n.withModifiers)(((...t)=>e.onArrowUp&&e.onArrowUp(...t)),["prevent"]),["up"])),t[6]||(t[6]=(0,n.withKeys)((0,n.withModifiers)(((...t)=>e.selectCurrentSelection&&e.selectCurrentSelection(...t)),["prevent"]),["enter"])),t[7]||(t[7]=(0,n.withKeys)((0,n.withModifiers)(((...t)=>e.selectCurrentSelectionTab&&e.selectCurrentSelectionTab(...t)),["prevent"]),["tab"]))],autocomplete:"off"},e.$attrs),null,16,u),[[n.vModelText,e.input]]),e.isListVisible?((0,s.wg)(),(0,s.iD)("div",c,[e.$slots["list-header"]?((0,s.wg)(),(0,s.iD)("div",p,[(0,s.WI)(e.$slots,"list-header")])):(0,s.kq)("",!0),((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.filteredItems,((i,r)=>((0,s.wg)(),(0,s.iD)("div",{class:(0,o.normalizeClass)(["simple-typeahead-list-item",{"simple-typeahead-list-item-active":e.currentSelectionIndex==r}]),key:r,onMousedown:t[8]||(t[8]=(0,n.withModifiers)((()=>{}),["prevent"])),onClick:t=>e.selectItem(i),onMouseenter:t=>e.currentSelectionIndex=r},[e.$slots["list-item-text"]?((0,s.wg)(),(0,s.iD)("span",{key:0,class:"simple-typeahead-list-item-text","data-text":e.itemProjection(i)},[(0,s.WI)(e.$slots,"list-item-text",{item:i,itemProjection:e.itemProjection,boldMatchText:e.boldMatchText})],8,h)):((0,s.wg)(),(0,s.iD)("span",{key:1,class:"simple-typeahead-list-item-text","data-text":e.itemProjection(i),innerHTML:e.boldMatchText(e.itemProjection(i))},null,8,d))],42,a)))),128)),e.$slots["list-footer"]?((0,s.wg)(),(0,s.iD)("div",m,[(0,s.WI)(e.$slots,"list-footer")])):(0,s.kq)("",!0)])):(0,s.kq)("",!0)],8,l)},r.__scopeId="data-v-f81ca714";var f=(()=>{const e=r;return e.install=t=>{t.component("Vue3SimpleTypeahead",e)},e})()}}]);
@@ -1 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsMegalinkSingleImage=t():e.VsMegalinkSingleImage=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8960],{77560:function(){},60083:function(e,t,n){"use strict";var i=n(46157),s=n(7133),a=n(70419),l=n(84375),r=n(51843);t.Z={name:"VsMegalinkSingleImage",status:"prototype",release:"0.0.1",components:{VsHeading:i.default,VsRichTextWrapper:s.default,VsButton:a.default,VsRow:r.ou,VsCol:r.hY,VsLinkList:l.default},props:{alternate:{type:Boolean,default:!1},title:{type:String,default:null},buttonLink:{type:String,default:""},theme:{type:String,default:"light",validator:function(e){return e.match(/(light|dark)/)}}},data:function(){return{negativeMargin:"200px",imageHeight:"400px"}},computed:{singleImageClasses:function(){return["vs-megalink-single-image--".concat(this.theme),this.alternate?"vs-megalink-single-image--alternate":""]},cssVars:function(){return{"--negative-margin":"-".concat(this.negativeMargin),"--image-height":"".concat(this.imageHeight)}}},mounted:function(){var e=this,t=this.$el.querySelector(".vs-image-with-caption");if(t){var n=t.querySelector("img");n.addEventListener("load",(function(){var t=n.clientHeight/2/n.clientWidth;e.negativeMargin="".concat(100*t,"%"),e.imageHeight="".concat(n.clientHeight,"px")}))}}}},31832:function(e,t,n){"use strict";n.d(t,{s:function(){return o}});var i=n(66252),s=n(3577),a={class:"vs-megalink-single-image__image-container"},l={class:"vs-megalink-single-image__content","data-test":"megalink-single-image__content"},r={class:"vs-megalink-single-image__button"};function o(e,t,n,o,u,g){var c=(0,i.up)("VsHeading"),f=(0,i.up)("VsRichTextWrapper"),m=(0,i.up)("VsLinkList"),d=(0,i.up)("VsButton"),p=(0,i.up)("VsCol"),v=(0,i.up)("VsRow");return(0,i.wg)(),(0,i.iD)("div",{class:(0,s.normalizeClass)(["vs-megalink-single-image",g.singleImageClasses]),"data-test":"megalink-single-image",style:(0,s.normalizeStyle)(g.cssVars)},[(0,i._)("div",a,[(0,i.WI)(e.$slots,"vs-single-image")]),(0,i.Wm)(v,{class:"vs-megalink-single-image__text-container"},{default:(0,i.w5)((function(){return[(0,i.Wm)(p,{cols:"12",sm:"10",lg:"6",class:(0,s.normalizeClass)(["offset-sm-1",n.alternate?"offset-lg-6":"offset-lg-0"])},{default:(0,i.w5)((function(){return[(0,i._)("div",l,[n.title?((0,i.wg)(),(0,i.j4)(c,{key:0,level:"3",class:"vs-megalink-single-image__title","data-test":"megalink-single-image__title"},{default:(0,i.w5)((function(){return[(0,i.Uk)((0,s.toDisplayString)(n.title),1)]})),_:1})):(0,i.kq)("",!0),(0,i.Wm)(f,{variant:"lead"},{default:(0,i.w5)((function(){return[(0,i.WI)(e.$slots,"vs-single-image-content")]})),_:3}),(0,i.Wm)(m,null,{default:(0,i.w5)((function(){return[(0,i.WI)(e.$slots,"vs-single-image-links")]})),_:3}),(0,i._)("div",r,[n.buttonLink?((0,i.wg)(),(0,i.j4)(d,{key:0,href:n.buttonLink,variant:"secondary","on-dark":"dark"===n.theme},{default:(0,i.w5)((function(){return[(0,i.WI)(e.$slots,"vs-single-image-button-text")]})),_:3},8,["href","on-dark"])):(0,i.kq)("",!0)])])]})),_:3},8,["class"])]})),_:3})],6)}},72973:function(e,t,n){"use strict";var i=n(93379),s=n.n(i),a=n(7795),l=n.n(a),r=n(90569),o=n.n(r),u=n(3565),g=n.n(u),c=n(19216),f=n.n(c),m=n(44589),d=n.n(m),p=n(77560),v=n.n(p),k={};k.styleTagTransform=d(),k.setAttributes=g(),k.insert=o().bind(null,"head"),k.domAPI=l(),k.insertStyleElement=f(),s()(v(),k),v()&&v().locals&&v().locals},18307:function(e,t,n){"use strict";n.r(t);var i=n(30364),s=n(1920);n(82893);const a=(0,n(83744).Z)(s.Z,[["render",i.s]]);t.default=a},1920:function(e,t,n){"use strict";n.d(t,{Z:function(){return i.Z}});var i=n(60083)},30364:function(e,t,n){"use strict";n.d(t,{s:function(){return i.s}});var i=n(31832)},82893:function(e,t,n){"use strict";n(72973)}},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7476,5252,5730,976,419,1436,6157,4159,9187,1843,7133,4375],(function(){return 18307,e(e.s=18307)})),e.O()}])}));
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[43],{59162:function(n,t,r){var o=r(92854);t.Z={name:"VsTableBody",status:"prototype",release:"0.0.1",components:{BTbody:o.p_}}},58191:function(n,t,r){r.d(t,{s:function(){return s}});var o=r(66252),e=r(3577);function s(n,t,r,s,u,a){var c=(0,o.up)("BTbody");return(0,o.wg)(),(0,o.j4)(c,(0,e.normalizeProps)((0,o.F4)(n.$attrs)),{default:(0,o.w5)((function(){return[(0,o.WI)(n.$slots,"default")]})),_:3},16)}},60043:function(n,t,r){r.r(t);var o=r(58191),e=r(81653);const s=(0,r(83744).Z)(e.Z,[["render",o.s]]);t.default=s},81653:function(n,t,r){r.d(t,{Z:function(){return o.Z}});var o=r(59162)}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7215],{83295:function(){},29315:function(t,e,n){"use strict";var i=n(4942),s=n(70419),r=n(67476),a=n(66072);function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}e.Z={name:"VsMapWithSidebarControls",status:"prototype",release:"0.0.1",components:{VsButton:s.default},inject:["clearSelectionText","applyFiltersText"],data:function(){return{isDisabled:!0}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,r.rn)(a.Z,{getSubcatFilters:function(t){return t.activeSubcatFilters}})),mounted:function(){this.disableSubmitButton()},methods:{clearSelection:function(){this.emitter&&this.emitter.emit("clearSelectedSubcats"),this.isDisabled=!0},submitCheckboxes:function(){this.emitter&&this.emitter.emit("submitCheckboxData")},disableSubmitButton:function(){var t=this;this.emitter&&this.emitter.on("checkboxes-selected",(function(e){e.length>0?t.isDisabled=!1:t.isDisabled=!0})),this.getSubcatFilters.length>0&&(this.isDisabled=!1)}}}},90338:function(t,e,n){"use strict";n.d(e,{s:function(){return c}});var i=n(66252),s=n(49963),r=n(3577),a={class:"vs-main-map-controls","data-test":"vs-main-map-controls"};function c(t,e,n,c,o,l){var u=(0,i.up)("VsButton");return(0,i.wg)(),(0,i.iD)("div",a,[(0,i.Wm)(u,{class:"vs-main-map-controls__clear-selection","data-test":"vs-main-map-subcategory__clear-selection",size:"sm",variant:"transparent",onClick:l.clearSelection,onKeyup:(0,s.withKeys)(l.clearSelection,["enter"])},{default:(0,i.w5)((function(){return[(0,i.Uk)((0,r.toDisplayString)(l.clearSelectionText),1)]})),_:1},8,["onClick","onKeyup"]),(0,i.Wm)(u,{class:"vs-main-map-controls__apply-filters","data-test":"vs-main-map-subcategory__apply-filters",size:"sm",onKeypress:(0,s.withKeys)(l.submitCheckboxes,["enter"]),onClick:l.submitCheckboxes,"aria-disabled":o.isDisabled,disabled:o.isDisabled},{default:(0,i.w5)((function(){return[(0,i.Uk)((0,r.toDisplayString)(l.applyFiltersText),1)]})),_:1},8,["onKeypress","onClick","aria-disabled","disabled"])])}},25312:function(t,e,n){"use strict";var i=n(93379),s=n.n(i),r=n(7795),a=n.n(r),c=n(90569),o=n.n(c),l=n(3565),u=n.n(l),b=n(19216),p=n.n(b),d=n(44589),m=n.n(d),f=n(83295),h=n.n(f),y={};y.styleTagTransform=m(),y.setAttributes=u(),y.insert=o().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=p(),s()(h(),y),h()&&h().locals&&h().locals},37215:function(t,e,n){"use strict";n.r(e);var i=n(17776),s=n(3681);n(45963);const r=(0,n(83744).Z)(s.Z,[["render",i.s]]);e.default=r},3681:function(t,e,n){"use strict";n.d(e,{Z:function(){return i.Z}});var i=n(29315)},17776:function(t,e,n){"use strict";n.d(e,{s:function(){return i.s}});var i=n(90338)},45963:function(t,e,n){"use strict";n(25312)}}]);
@@ -1 +0,0 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsFooterSocialItem=e():t.VsFooterSocialItem=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9495],{3815:function(){},41540:function(t,e,n){"use strict";var o=n(59118),r=n(55252),i=n(60976);e.Z={name:"VsFooterSocialItem",status:"prototype",release:"0.0.1",components:{VsLink:o.default,VsIcon:r.default},mixins:[i.default],props:{href:{type:String,required:!0},icon:{type:String,required:!0,validator:function(t){return t.match(/(facebook|instagram|x-twitter|youtube)/)}}}}},10627:function(t,e,n){"use strict";n.d(e,{s:function(){return s}});var o=n(66252),r=n(3577),i={class:"vs-footer-social-item","data-test":"vs-footer-social-item"};function s(t,e,n,s,a,c){var u=(0,o.up)("VsIcon"),l=(0,o.up)("VsLink");return(0,o.wg)(),(0,o.iD)("li",i,[(0,o.Wm)(l,{"data-test":"vs-footer-social-item__link",href:n.href,type:"external",class:(0,r.normalizeClass)(n.icon),"aria-label":n.icon,"data-layer-value":"socialMediaExternalLinkDataEvent"},{default:(0,o.w5)((function(){return[(0,o.Wm)(u,{name:n.icon,variant:"light",size:"md"},null,8,["name"])]})),_:1},8,["href","class","aria-label"])])}},93601:function(t,e,n){"use strict";var o=n(93379),r=n.n(o),i=n(7795),s=n.n(i),a=n(90569),c=n.n(a),u=n(3565),l=n.n(u),f=n(19216),d=n.n(f),m=n(44589),p=n.n(m),v=n(3815),y=n.n(v),b={};b.styleTagTransform=p(),b.setAttributes=l(),b.insert=c().bind(null,"head"),b.domAPI=s(),b.insertStyleElement=d(),r()(y(),b),y()&&y().locals&&y().locals},61917:function(t,e,n){"use strict";n.r(e);var o=n(35332),r=n(71839);n(52424);const i=(0,n(83744).Z)(r.Z,[["render",o.s]]);e.default=i},71839:function(t,e,n){"use strict";n.d(e,{Z:function(){return o.Z}});var o=n(41540)},35332:function(t,e,n){"use strict";n.d(e,{s:function(){return o.s}});var o=n(10627)},52424:function(t,e,n){"use strict";n(93601)}},function(t){return t.O(0,[6252,3744,7991,9963,6486,4942,6765,7169,7476,5252,5730,976,9118],(function(){return 61917,t(t.s=61917)})),t.O()}])}));
@@ -1 +0,0 @@
1
- !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.VsItineraryDay=n():t.VsItineraryDay=n()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1350],{42157:function(){},2508:function(t,n,e){"use strict";var r=e(51843),i=e(55252),s=e(48139);n.Z={name:"VsItineraryDay",status:"prototype",release:"0.0.1",components:{VsContainer:r.xB,VsRow:r.ou,VsCol:r.hY,VsIcon:i.default,VsAccordionItem:s.default},props:{defaultShow:{type:Boolean,default:!0},dayLabel:{type:String,required:!0},dayNumber:{type:String,required:!0},dayTitle:{type:String,required:!0}},data:function(){return{show:this.defaultShow}}}},91374:function(t,n,e){"use strict";e.d(n,{s:function(){return y}});var r=e(66252),i=e(3577),s={class:"vs-itinerary-day"},a={class:"vs-itinerary-day__header"},o={class:"vs-itinerary-day__title vs-heading vs-heading--style-level-2 d-inline-block"},u={class:"vs-itinerary-day__sub-heading"},l=["id"],d={class:"vs-itinerary-day__intro-content"},c={class:"list-unstyled"};function y(t,n,e,y,f,p){var _=(0,r.up)("VsIcon"),v=(0,r.up)("VsAccordionItem"),m=(0,r.up)("VsCol"),b=(0,r.up)("VsRow"),g=(0,r.up)("VsContainer");return(0,r.wg)(),(0,r.iD)("div",s,[(0,r.Wm)(g,null,{default:(0,r.w5)((function(){return[(0,r.Wm)(b,null,{default:(0,r.w5)((function(){return[(0,r.Wm)(m,null,{default:(0,r.w5)((function(){return[(0,r.Wm)(v,{"open-by-default":f.show,"control-id":"itinerary-day-"+e.dayNumber,variant:"transparent","item-break-point":"lg",class:"vs-itinerary-day__list-item"},{title:(0,r.w5)((function(){return[(0,r._)("span",a,[(0,r._)("span",o,(0,i.toDisplayString)(e.dayLabel)+" "+(0,i.toDisplayString)(e.dayNumber),1),(0,r._)("span",u,(0,i.toDisplayString)(e.dayTitle),1)])]})),"icon-open":(0,r.w5)((function(){return[(0,r.Wm)(_,{name:"chevron",orientation:"down",variant:"dark",size:"xs",padding:3,class:"vs-itinerary-day__toggle-button"})]})),"icon-closed":(0,r.w5)((function(){return[(0,r.Wm)(_,{name:"chevron",variant:"dark",size:"xs",padding:3,class:"vs-itinerary-day__toggle-button"})]})),default:(0,r.w5)((function(){return[(0,r._)("div",{id:"dayPanel_"+e.dayNumber,class:"vs-itinerary-day__panel"},[(0,r._)("div",d,[(0,r.WI)(t.$slots,"day-transport"),(0,r.WI)(t.$slots,"day-introduction")]),(0,r._)("ul",c,[(0,r.WI)(t.$slots,"stops")])],8,l)]})),_:3},8,["open-by-default","control-id"])]})),_:3})]})),_:3})]})),_:3})])}},30021:function(t,n,e){"use strict";var r=e(93379),i=e.n(r),s=e(7795),a=e.n(s),o=e(90569),u=e.n(o),l=e(3565),d=e.n(l),c=e(19216),y=e.n(c),f=e(44589),p=e.n(f),_=e(42157),v=e.n(_),m={};m.styleTagTransform=p(),m.setAttributes=d(),m.insert=u().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=y(),i()(v(),m),v()&&v().locals&&v().locals},25497:function(t,n,e){"use strict";e.r(n);var r=e(35724),i=e(57383);e(65496);const s=(0,e(83744).Z)(i.Z,[["render",r.s]]);n.default=s},57383:function(t,n,e){"use strict";e.d(n,{Z:function(){return r.Z}});var r=e(2508)},35724:function(t,n,e){"use strict";e.d(n,{s:function(){return r.s}});var r=e(91374)},65496:function(t,n,e){"use strict";e(30021)}},function(t){return t.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7476,5252,5730,976,419,1436,6157,4159,9187,1843,282,8139],(function(){return 25497,t(t.s=25497)})),t.O()}])}));
@@ -1 +0,0 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsItineraryBorderOverlapWrapper=e():t.VsItineraryBorderOverlapWrapper=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[6714],{40454:function(){},87190:function(t,e){"use strict";e.Z={name:"VsItineraryBorderOverlapWrapper",status:"prototype",release:"0.0.1",components:{},props:{}}},44231:function(t,e,n){"use strict";n.d(e,{s:function(){return o}});var r=n(66252),s={class:"vs-itinerary-border-overlap__wrapper d-flex d-sm-inline-flex flex-column justify-content-start border-left"};function o(t,e,n,o,i,u){return(0,r.wg)(),(0,r.iD)("div",s,[(0,r.WI)(t.$slots,"default")])}},28432:function(t,e,n){"use strict";var r=n(93379),s=n.n(r),o=n(7795),i=n.n(o),u=n(90569),c=n.n(u),a=n(3565),f=n.n(a),l=n(19216),p=n.n(l),d=n(44589),y=n.n(d),v=n(40454),m=n.n(v),b={};b.styleTagTransform=y(),b.setAttributes=f(),b.insert=c().bind(null,"head"),b.domAPI=i(),b.insertStyleElement=p(),s()(m(),b),m()&&m().locals&&m().locals},16656:function(t,e,n){"use strict";n.r(e);var r=n(65259),s=n(66258);n(80372);const o=(0,n(83744).Z)(s.Z,[["render",r.s]]);e.default=o},66258:function(t,e,n){"use strict";n.d(e,{Z:function(){return r.Z}});var r=n(87190)},65259:function(t,e,n){"use strict";n.d(e,{s:function(){return r.s}});var r=n(44231)},80372:function(t,e,n){"use strict";n(28432)}},function(t){return t.O(0,[6252,3744,7991],(function(){return 16656,t(t.s=16656)})),t.O()}])}));
@@ -1 +0,0 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[3363],{12251:function(){},63482:function(n,t){"use strict";t.Z={name:"VsCannedSearchTourDeparts",status:"prototype",release:"0.0.1",props:{label:{type:String,default:null},origins:{type:Array,default:null}},computed:{transformedOrigins:function(){return this.origins?this.origins.map((function(n){return n.name})).join(", "):""}}}},39205:function(n,t,r){"use strict";r.d(t,{s:function(){return u}});var s=r(66252),e=r(3577),i={class:"vs-canned-search-tour-departs"},a={class:"vs-canned-search-tour-departs__label"};function u(n,t,r,u,o,c){return(0,s.wg)(),(0,s.iD)("p",i,[(0,s._)("span",a,(0,e.toDisplayString)(r.label)+":",1),(0,s.Uk)(" "+(0,e.toDisplayString)(c.transformedOrigins),1)])}},15655:function(n,t,r){"use strict";var s=r(93379),e=r.n(s),i=r(7795),a=r.n(i),u=r(90569),o=r.n(u),c=r(3565),l=r.n(c),f=r(19216),d=r.n(f),p=r(44589),m=r.n(p),g=r(12251),y=r.n(g),b={};b.styleTagTransform=m(),b.setAttributes=l(),b.insert=o().bind(null,"head"),b.domAPI=a(),b.insertStyleElement=d(),e()(y(),b),y()&&y().locals&&y().locals},53363:function(n,t,r){"use strict";r.r(t);var s=r(83007),e=r(75067);r(67409);const i=(0,r(83744).Z)(e.Z,[["render",s.s]]);t.default=i},75067:function(n,t,r){"use strict";r.d(t,{Z:function(){return s.Z}});var s=r(63482)},83007:function(n,t,r){"use strict";r.d(t,{s:function(){return s.s}});var s=r(39205)},67409:function(n,t,r){"use strict";r(15655)}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8127],{19807:function(){},65506:function(e,t,a){"use strict";var n=a(4942),s=a(70419),i=a(46157),r=a(15730),l=a(67476),o=a(66072),c=a(42038),u=a(85086),d=a(40185),p=a(52378),g=a(66014),b=a(37215);function h(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function y(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?h(Object(a),!0).forEach((function(t){(0,n.Z)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):h(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var f=null;t.Z={name:"VsMapWithSidebarPanel",status:"prototype",release:"0.0.1",components:{VsButton:s.default,VsMapWithSidebarCategory:c.default,VsMapWithSidebarSubcategory:u.default,VsHeading:i.default,VsMapWithSidebarListItem:d.default,VsMapWithSidebarDetail:p.default,VsMapWithSidebarButtons:g.default,VsMapWithSidebarControls:b.default},inject:["filters","placesData","regions","mapId","focussedListItem"],props:{categoryHeading:{type:String,default:""},headingLevel:{type:String,default:"2"},selectedCategory:{type:String,default:""},selectedSubcategory:{type:String,default:null},currentStage:{type:Number,required:!0},selectedItem:{type:Object,default:null},hovered:{type:String,default:""},subcategoryLocations:{type:Array,default:null},currentEndpointData:{type:Array,default:function(){return[]}},panelStatus:{type:String,default:null},panelMessage:{type:String,default:null},totalPins:{type:Number,default:0},currentListItemFocus:{type:Number,default:0}},data:function(){return{placesLoaded:1}},computed:y(y({currentHeading:function(){var e="";if(null!==this.selectedSubcategory)e=this.selectedSubcategoryData[0].label;else switch(this.currentStage){case 0:e=this.categoryHeading;break;case 1:case 2:e=this.currentFilter.label}return e},currentData:function(){return"regions"===this.selectedCategory?this.regions:this.placesData},panelClasses:function(){var e="";return 2===this.currentStage&&(e+=" vs-map-with-sidebar-panel--small-padding"),e},headerClasses:function(){return 1===this.currentStage?"vs-map-with-sidebar-panel__header-section--with-spacer":2===this.currentStage?"vs-map-with-sidebar-panel__header-section--overlapped":""},currentFilter:function(){var e=this,t="";return this.filters.forEach((function(a){a.id===e.selectedCategory&&(t=a)})),t},currentPlaceData:function(){var e=this,t=this.placesData;return"regions"===this.selectedCategory&&(t=this.regions),this.currentEndpointData.length>0?this.refineEndpointData(this.currentEndpointData):t.filter((function(t){return!(void 0===t.properties||!e.selectedItem)&&t.properties.id===e.selectedItem.properties.id}))},selectedSubcategoryData:function(){var e=this;return this.selectedSubcategory?this.filters.filter((function(t){return t.id===e.selectedSubcategory})):[]}},(0,l.rn)(o.Z,{subCatFilterCount:function(e){return e.activeSubcatFilters.length}})),{},{detailHeadingLevel:function(){return(parseInt(this.headingLevel,10)+1).toString()},showLoadMore:function(){return!(this.subcategoryLocations.length>=this.totalPins||0===this.subcategoryLocations.length)}}),watch:{currentFilter:function(){this.placesLoaded=1}},mounted:function(){f=(0,o.Z)((0,r.Z)())},methods:{closePanel:function(){this.$emit("close-panel"),2===this.currentStage&&this.$emit("set-subcategory",null)},stageBack:function(){if(this.selectedSubcategory&&0===this.currentStage)this.$emit("set-subcategory",null);else if(null!==this.selectedSubcategory&&null===this.subcategoryLocations)this.setStage(0);else{var e=this.currentStage-1;this.setStage(e)}},resetPanel:function(){f.setSelectedSubcat(null),this.setStage(0)},setStage:function(e){0===e&&(this.placesLoaded=1),this.$emit("set-stage",e)},subCatExists:function(e){return void 0!==e.subCategory&&e.subCategory.length>0},refineEndpointData:function(e){var t=[{isEndpoint:!0,properties:{category:e[0].category[0].id,id:e[0].id,image:e[0].images[0].mediaUrl,placeTitle:e[0].name,description:e[0].description,link:{label:e[0].productLink.label,link:e[0].productLink.link,type:e[0].productLink.type},website:{label:e[0].website.label,link:e[0].website.link,type:e[0].website.type},address:{shortAddress:""}}}];return void 0!==e[0].address&&(t[0].properties.address.shortAddress=e[0].address.shortAddress),t},clearSubCatFilters:function(){f.setActiveSubcatFilters([]),this.setStage(0)},loadMorePlaces:function(){this.placesLoaded+=1,this.$emit("load-more-places",this.placesLoaded)}}}},666:function(e,t,a){"use strict";a.d(t,{s:function(){return w}});var n=a(66252),s=a(3577),i=a(49963),r={class:"vs-map-with-sidebar-panel__buttons d-lg-none"},l={key:0,class:"vs-map-with-sidebar-panel__back"},o={key:1,class:"vs-map-with-sidebar-panel__back"},c={class:"visually-hidden"},u={class:"vs-map-with-sidebar-panel__close"},d={class:"visually-hidden"},p={key:0,class:"vs-map-with-sidebar-panel__back d-none d-lg-block"},g={class:"visually-hidden"},b={class:"visually-hidden"},h={key:2,class:"vs-map-with-sidebar-panel__bottom-message"},y={class:"vs-map-with-sidebar-panel__list-container"},f={key:3,class:"vs-map-with-sidebar-panel__overlay"},m={key:0,class:"vs-map-with-sidebar-panel__overlay-box"},v={class:"vs-map-with-sidebar-panel__overlay-text"};function w(e,t,a,w,S,k){var _=(0,n.up)("VsButton"),D=(0,n.up)("VsHeading"),C=(0,n.up)("VsMapWithSidebarSubcategory"),W=(0,n.up)("VsMapWithSidebarControls"),L=(0,n.up)("VsMapWithSidebarCategory"),I=(0,n.up)("VsMapWithSidebarListItem"),P=(0,n.up)("VsMapWithSidebarButtons"),M=(0,n.up)("VsMapWithSidebarDetail");return(0,n.wg)(),(0,n.iD)("section",{"data-test":"vs-map-with-sidebar-panel",class:(0,s.normalizeClass)(["vs-map-with-sidebar-panel",k.panelClasses])},[(0,n._)("div",{class:(0,s.normalizeClass)(["vs-map-with-sidebar-panel__header-section",k.headerClasses])},[(0,n._)("div",r,[a.currentStage>1||a.selectedSubcategory?((0,n.wg)(),(0,n.iD)("div",l,[(0,n.Wm)(_,{class:"vs-map-with-sidebar-panel_menu",icon:"bars-mobile-menu",size:"sm",onClick:k.stageBack,"data-test":"vs-map-with-sidebar__menu-toggle",variant:"secondary"},{default:(0,n.w5)((function(){return[(0,n.WI)(e.$slots,"menu-btn-text")]})),_:3},8,["onClick"])])):(0,n.kq)("",!0),1===a.currentStage||a.selectedSubcategory?((0,n.wg)(),(0,n.iD)("div",o,[(0,n.Wm)(_,{"icon-only":"",icon:"internal-link","icon-orientation":"down",size:"md",variant:"secondary",onClick:k.stageBack,"data-test":"vs-map-with-sidebar-panel--btn-back"},{default:(0,n.w5)((function(){return[(0,n._)("span",c,[(0,n.WI)(e.$slots,"back-btn-text")])]})),_:3},8,["onClick"])])):(0,n.kq)("",!0),(0,n._)("div",u,[(0,n.Wm)(_,{"icon-only":"",icon:"close",size:"md",variant:"secondary",onClick:k.closePanel,"data-test":"vs-map-with-sidebar-panel--btn-close"},{default:(0,n.w5)((function(){return[(0,n._)("span",d,[(0,n.WI)(e.$slots,"close-side-panel-text")])]})),_:3},8,["onClick"])])]),a.currentStage>0||a.selectedSubcategory?((0,n.wg)(),(0,n.iD)("div",p,[(0,n.Wm)(_,{"icon-only":"",icon:"internal-link","icon-orientation":"down",size:"md",variant:"secondary",onClick:k.stageBack,"data-test":"vs-map-with-sidebar-panel--btn-back"},{default:(0,n.w5)((function(){return[(0,n._)("span",g,[(0,n.WI)(e.$slots,"back-btn-text")])]})),_:3},8,["onClick"])])):(0,n.kq)("",!0),""!==k.currentHeading?((0,n.wg)(),(0,n.j4)(D,{key:1,level:a.headingLevel,"override-style-level":"4",class:(0,s.normalizeClass)(["vs-map-with-sidebar-panel__heading text-center mt-8 mt-lg-0",2===a.currentStage?"d-none d-lg-block":""]),"data-test":"vs-map-with-sidebar-panel__heading"},{default:(0,n.w5)((function(){return[(0,n.Uk)((0,s.toDisplayString)(k.currentHeading),1)]})),_:1},8,["level","class"])):(0,n.kq)("",!0),(0,n._)("div",{class:(0,s.normalizeClass)(["vs-map-with-sidebar-panel__reset",a.currentStage<2?"d-lg-none":""])},[(0,n.Wm)(_,{"icon-only":"",icon:"close",size:"md",variant:"secondary",onClick:k.resetPanel,"data-test":"vs-map-with-sidebar-panel--btn-reset"},{default:(0,n.w5)((function(){return[(0,n._)("span",b,[(0,n.WI)(e.$slots,"reset-side-panel-text")])]})),_:3},8,["onClick"])],2)],2),0===a.currentStage?((0,n.wg)(),(0,n.iD)(n.HY,{key:0},[null!==a.selectedSubcategory?((0,n.wg)(),(0,n.iD)(n.HY,{key:0},[(0,n.Wm)(C,{data:k.selectedSubcategoryData[0].subCategory,selectedSubCategory:a.selectedSubcategory},null,8,["data","selectedSubCategory"]),(0,n.Wm)(W)],64)):((0,n.wg)(!0),(0,n.iD)(n.HY,{key:1},(0,n.Ko)(k.filters,(function(e){return(0,n.wg)(),(0,n.j4)(L,{key:e.id,"category-name":e.label,type:e.id,"has-sub-cat":k.subCatExists(e)},null,8,["category-name","type","has-sub-cat"])})),128)),null!==a.panelMessage?((0,n.wg)(),(0,n.iD)("div",h,[(0,n._)("p",null,(0,s.toDisplayString)(a.panelMessage),1)])):(0,n.kq)("",!0)],64)):(0,n.kq)("",!0),1===a.currentStage?((0,n.wg)(),(0,n.iD)(n.HY,{key:1},[null!==a.selectedSubcategory?((0,n.wg)(),(0,n.iD)(n.HY,{key:0},[(0,n._)("div",y,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(a.subcategoryLocations,(function(t,s){return(0,n.wg)(),(0,n.j4)(I,{key:t.id,"item-data":t,"from-endpoint":!0,focussed:s===a.currentListItemFocus,onShowItemDetail:function(a){return e.showDetail(t)}},null,8,["item-data","focussed","onShowItemDetail"])})),128)),k.showLoadMore?((0,n.wg)(),(0,n.j4)(_,{key:0,class:"vs-map-with-sidebar-panel__load-more","data-test":"vs-map-with-sidebar-panel__load-more",onClick:t[0]||(t[0]=function(e){return k.loadMorePlaces()}),onKeyup:t[1]||(t[1]=(0,i.withKeys)((function(e){return k.loadMorePlaces()}),["enter"]))},{default:(0,n.w5)((function(){return[(0,n.WI)(e.$slots,"load-more-text")]})),_:3})):(0,n.kq)("",!0)]),(0,n.Wm)(P,{"content-data":{},"filter-count":e.subCatFilterCount,onClearFilters:k.clearSubCatFilters},null,8,["filter-count","onClearFilters"])],64)):((0,n.wg)(!0),(0,n.iD)(n.HY,{key:1},(0,n.Ko)(k.currentData,(function(t){return(0,n.wg)(),(0,n.iD)("div",{key:t.id},[void 0!==t.properties&&t.properties.category.id===a.selectedCategory?((0,n.wg)(),(0,n.j4)(I,{key:0,"item-data":t,onShowItemDetail:function(a){return e.showDetail(t)}},null,8,["item-data","onShowItemDetail"])):(0,n.kq)("",!0)])})),128))],64)):(0,n.kq)("",!0),2===a.currentStage?((0,n.wg)(),(0,n.iD)(n.HY,{key:2},[(0,n.Wm)(M,{"heading-level":k.detailHeadingLevel,"content-data":k.currentPlaceData[0]},null,8,["heading-level","content-data"]),(0,n.Wm)(P,{"content-data":k.currentPlaceData[0]},null,8,["content-data"])],64)):(0,n.kq)("",!0),null!==a.panelStatus?((0,n.wg)(),(0,n.iD)("div",f,[e.$slots["panel-loading-message"]&&"map-loading"!==a.panelStatus?((0,n.wg)(),(0,n.iD)("div",m,[(0,n._)("p",v,[(0,n.WI)(e.$slots,"panel-loading-message")])])):(0,n.kq)("",!0)])):(0,n.kq)("",!0)],2)}},66783:function(e,t,a){"use strict";var n=a(93379),s=a.n(n),i=a(7795),r=a.n(i),l=a(90569),o=a.n(l),c=a(3565),u=a.n(c),d=a(19216),p=a.n(d),g=a(44589),b=a.n(g),h=a(19807),y=a.n(h),f={};f.styleTagTransform=b(),f.setAttributes=u(),f.insert=o().bind(null,"head"),f.domAPI=r(),f.insertStyleElement=p(),s()(y(),f),y()&&y().locals&&y().locals},98127:function(e,t,a){"use strict";a.r(t);var n=a(54972),s=a(72776);a(66264);const i=(0,a(83744).Z)(s.Z,[["render",n.s]]);t.default=i},72776:function(e,t,a){"use strict";a.d(t,{Z:function(){return n.Z}});var n=a(65506)},54972:function(e,t,a){"use strict";a.d(t,{s:function(){return n.s}});var n=a(666)},66264:function(e,t,a){"use strict";a(66783)}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[6815],{72960:function(){},61290:function(t,e,i){"use strict";var n=i(5705),r=i(92854),a=i(5274),s=i(40479),l=i(924);e.Z={name:"VsSelect",status:"prototype",release:"0.0.1",components:{BFormSelect:r.KB},mixins:[s.Z,l.Z],props:{options:{type:Array,required:!0},fieldName:{type:String,required:!0},value:{type:String,default:""},validationRules:{type:Object,default:function(){return{}}},triggerValidate:{type:Boolean,default:!1},invalid:{type:Boolean,default:!1},validationMessages:{type:Object,default:function(){return{}}},countryListUrl:{type:String,default:""},hintText:{type:String,default:""},countries:{type:Boolean,default:!1},genericValidation:{type:Object,default:function(){return{}}},reAlertErrors:{type:Boolean,default:!1}},setup:function(){return{v$:(0,n.ZP)()}},data:function(){return{inputVal:this.value,touched:!1,countryList:[]}},computed:{errorClass:function(){return this.errorsList.length>0&&this.v$.inputVal&&this.v$.inputVal.$anyDirty||this.invalid?"vs-select__element--error":""},fieldOptions:function(){return this.countries?this.countryList:this.options}},watch:{inputVal:function(t){this.emitStatus(),this.$emit("updated",{field:this.fieldName,value:t})},value:function(t){this.inputVal=t},triggerValidate:function(){this.manualValidate()}},beforeMount:function(){var t=this;this.countries&&a.Z.get(this.countryListUrl).then((function(e){t.countryList=e.data.countries}))},methods:{autocompleteValue:function(t){return"Country"===t?"country-name":"on"}},validations:function(){return this.rules}}},1365:function(t,e,i){"use strict";i.d(e,{s:function(){return f}});var n=i(66252),r=i(3577),a=i(49963),s={class:"vs-select"},l=["id"],o=["id"],u={class:"visually-hidden"},c={class:"vs-select__container mt-2"},d=(0,n._)("span",{class:"vs-select__focus"},null,-1);function f(t,e,i,f,p,v){var m=(0,n.up)("BFormSelect");return(0,n.wg)(),(0,n.iD)("div",s,[(0,n._)("p",{class:"hint-text",id:"hint-".concat(i.fieldName)},(0,r.toDisplayString)(i.hintText),9,l),t.errorsList.length||i.invalid?((0,n.wg)(),(0,n.iD)("div",{key:0,role:"alert","aria-live":"assertive",id:"error-".concat(i.fieldName)},[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(t.errorsList,(function(t){return(0,n.wy)(((0,n.wg)(),(0,n.iD)("p",{key:t,class:"error mb-0"},[(0,n._)("span",u,(0,r.toDisplayString)(i.fieldName),1),(0,n.Uk)(" "+(0,r.toDisplayString)(i.validationMessages[t]||i.genericValidation[t]),1)])),[[a.vShow,!i.reAlertErrors]])})),128))],8,o)):(0,n.kq)("",!0),(0,n._)("div",c,[(0,n.Wm)(m,(0,n.dG)({modelValue:p.inputVal,"onUpdate:modelValue":e[0]||(e[0]=function(t){return p.inputVal=t})},t.$attrs,{options:v.fieldOptions,name:i.fieldName,id:i.fieldName,onChange:t.emitStatus,onBlur:t.emitStatus,"data-test":"vs-select","data-testid":"vs-select",class:["vs-select__element",v.errorClass],required:t.isRequired,"aria-invalid":t.v$.inputVal&&t.v$.inputVal.$anyError||i.invalid,"aria-describedby":t.ariaDescription,autocomplete:v.autocompleteValue(i.fieldName)}),null,16,["modelValue","options","name","id","onChange","onBlur","required","aria-invalid","aria-describedby","class","autocomplete"]),d])])}},80897:function(t,e,i){"use strict";var n=i(93379),r=i.n(n),a=i(7795),s=i.n(a),l=i(90569),o=i.n(l),u=i(3565),c=i.n(u),d=i(19216),f=i.n(d),p=i(44589),v=i.n(p),m=i(72960),y=i.n(m),h={};h.styleTagTransform=v(),h.setAttributes=c(),h.insert=o().bind(null,"head"),h.domAPI=s(),h.insertStyleElement=f(),r()(y(),h),y()&&y().locals&&y().locals},36815:function(t,e,i){"use strict";i.r(e);var n=i(7044),r=i(92036);i(21343);const a=(0,i(83744).Z)(r.Z,[["render",n.s]]);e.default=a},92036:function(t,e,i){"use strict";i.d(e,{Z:function(){return n.Z}});var n=i(61290)},7044:function(t,e,i){"use strict";i.d(e,{s:function(){return n.s}});var n=i(1365)},21343:function(t,e,i){"use strict";i(80897)}}]);