@zwbigi/ink-xy 0.1.1

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 (266) hide show
  1. package/.next/BUILD_ID +1 -0
  2. package/.next/app-path-routes-manifest.json +33 -0
  3. package/.next/build-manifest.json +20 -0
  4. package/.next/diagnostics/build-diagnostics.json +6 -0
  5. package/.next/diagnostics/framework.json +1 -0
  6. package/.next/export-marker.json +6 -0
  7. package/.next/images-manifest.json +68 -0
  8. package/.next/next-minimal-server.js.nft.json +1 -0
  9. package/.next/next-server.js.nft.json +1 -0
  10. package/.next/package.json +1 -0
  11. package/.next/prerender-manifest.json +114 -0
  12. package/.next/react-loadable-manifest.json +1993 -0
  13. package/.next/required-server-files.js +341 -0
  14. package/.next/required-server-files.json +341 -0
  15. package/.next/routes-manifest.json +252 -0
  16. package/.next/server/app/_global-error/page.js +32 -0
  17. package/.next/server/app/_global-error/page.js.nft.json +1 -0
  18. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -0
  19. package/.next/server/app/_global-error.html +1 -0
  20. package/.next/server/app/_global-error.meta +16 -0
  21. package/.next/server/app/_global-error.rsc +14 -0
  22. package/.next/server/app/_global-error.segments/_full.segment.rsc +14 -0
  23. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +5 -0
  24. package/.next/server/app/_global-error.segments/_global-error.segment.rsc +5 -0
  25. package/.next/server/app/_global-error.segments/_head.segment.rsc +5 -0
  26. package/.next/server/app/_global-error.segments/_index.segment.rsc +5 -0
  27. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -0
  28. package/.next/server/app/_not-found/page.js +2 -0
  29. package/.next/server/app/_not-found/page.js.nft.json +1 -0
  30. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -0
  31. package/.next/server/app/_not-found.html +1 -0
  32. package/.next/server/app/_not-found.meta +16 -0
  33. package/.next/server/app/_not-found.rsc +16 -0
  34. package/.next/server/app/_not-found.segments/_full.segment.rsc +16 -0
  35. package/.next/server/app/_not-found.segments/_head.segment.rsc +6 -0
  36. package/.next/server/app/_not-found.segments/_index.segment.rsc +5 -0
  37. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -0
  38. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +5 -0
  39. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -0
  40. package/.next/server/app/api/agent/[id]/events/route.js +3 -0
  41. package/.next/server/app/api/agent/[id]/events/route.js.nft.json +1 -0
  42. package/.next/server/app/api/agent/[id]/events/route_client-reference-manifest.js +1 -0
  43. package/.next/server/app/api/agent/[id]/route.js +1 -0
  44. package/.next/server/app/api/agent/[id]/route.js.nft.json +1 -0
  45. package/.next/server/app/api/agent/[id]/route_client-reference-manifest.js +1 -0
  46. package/.next/server/app/api/agent/describe-image/route.js +15 -0
  47. package/.next/server/app/api/agent/describe-image/route.js.nft.json +1 -0
  48. package/.next/server/app/api/agent/describe-image/route_client-reference-manifest.js +1 -0
  49. package/.next/server/app/api/agent/new/route.js +8 -0
  50. package/.next/server/app/api/agent/new/route.js.nft.json +1 -0
  51. package/.next/server/app/api/agent/new/route_client-reference-manifest.js +1 -0
  52. package/.next/server/app/api/auth/all-providers/route.js +1 -0
  53. package/.next/server/app/api/auth/all-providers/route.js.nft.json +1 -0
  54. package/.next/server/app/api/auth/all-providers/route_client-reference-manifest.js +1 -0
  55. package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -0
  56. package/.next/server/app/api/auth/api-key/[provider]/route.js.nft.json +1 -0
  57. package/.next/server/app/api/auth/api-key/[provider]/route_client-reference-manifest.js +1 -0
  58. package/.next/server/app/api/auth/login/[provider]/route.js +3 -0
  59. package/.next/server/app/api/auth/login/[provider]/route.js.nft.json +1 -0
  60. package/.next/server/app/api/auth/login/[provider]/route_client-reference-manifest.js +1 -0
  61. package/.next/server/app/api/auth/logout/[provider]/route.js +1 -0
  62. package/.next/server/app/api/auth/logout/[provider]/route.js.nft.json +1 -0
  63. package/.next/server/app/api/auth/logout/[provider]/route_client-reference-manifest.js +1 -0
  64. package/.next/server/app/api/auth/providers/route.js +1 -0
  65. package/.next/server/app/api/auth/providers/route.js.nft.json +1 -0
  66. package/.next/server/app/api/auth/providers/route_client-reference-manifest.js +1 -0
  67. package/.next/server/app/api/default-cwd/route.js +1 -0
  68. package/.next/server/app/api/default-cwd/route.js.nft.json +1 -0
  69. package/.next/server/app/api/default-cwd/route_client-reference-manifest.js +1 -0
  70. package/.next/server/app/api/files/[...path]/route.js +6 -0
  71. package/.next/server/app/api/files/[...path]/route.js.nft.json +1 -0
  72. package/.next/server/app/api/files/[...path]/route_client-reference-manifest.js +1 -0
  73. package/.next/server/app/api/gem-xy/[id]/route.js +1 -0
  74. package/.next/server/app/api/gem-xy/[id]/route.js.nft.json +1 -0
  75. package/.next/server/app/api/gem-xy/[id]/route_client-reference-manifest.js +1 -0
  76. package/.next/server/app/api/gem-xy/route.js +1 -0
  77. package/.next/server/app/api/gem-xy/route.js.nft.json +1 -0
  78. package/.next/server/app/api/gem-xy/route_client-reference-manifest.js +1 -0
  79. package/.next/server/app/api/home/route.js +1 -0
  80. package/.next/server/app/api/home/route.js.nft.json +1 -0
  81. package/.next/server/app/api/home/route_client-reference-manifest.js +1 -0
  82. package/.next/server/app/api/inkos/route.js +13 -0
  83. package/.next/server/app/api/inkos/route.js.nft.json +1 -0
  84. package/.next/server/app/api/inkos/route_client-reference-manifest.js +1 -0
  85. package/.next/server/app/api/models/route.js +1 -0
  86. package/.next/server/app/api/models/route.js.nft.json +1 -0
  87. package/.next/server/app/api/models/route_client-reference-manifest.js +1 -0
  88. package/.next/server/app/api/models-config/route.js +1 -0
  89. package/.next/server/app/api/models-config/route.js.nft.json +1 -0
  90. package/.next/server/app/api/models-config/route_client-reference-manifest.js +1 -0
  91. package/.next/server/app/api/register-cwd/route.js +1 -0
  92. package/.next/server/app/api/register-cwd/route.js.nft.json +1 -0
  93. package/.next/server/app/api/register-cwd/route_client-reference-manifest.js +1 -0
  94. package/.next/server/app/api/sessions/[id]/context/route.js +3 -0
  95. package/.next/server/app/api/sessions/[id]/context/route.js.nft.json +1 -0
  96. package/.next/server/app/api/sessions/[id]/context/route_client-reference-manifest.js +1 -0
  97. package/.next/server/app/api/sessions/[id]/lock/route.js +1 -0
  98. package/.next/server/app/api/sessions/[id]/lock/route.js.nft.json +1 -0
  99. package/.next/server/app/api/sessions/[id]/lock/route_client-reference-manifest.js +1 -0
  100. package/.next/server/app/api/sessions/[id]/route.js +1 -0
  101. package/.next/server/app/api/sessions/[id]/route.js.nft.json +1 -0
  102. package/.next/server/app/api/sessions/[id]/route_client-reference-manifest.js +1 -0
  103. package/.next/server/app/api/sessions/new/route.js +1 -0
  104. package/.next/server/app/api/sessions/new/route.js.nft.json +1 -0
  105. package/.next/server/app/api/sessions/new/route_client-reference-manifest.js +1 -0
  106. package/.next/server/app/api/sessions/route.js +3 -0
  107. package/.next/server/app/api/sessions/route.js.nft.json +1 -0
  108. package/.next/server/app/api/sessions/route_client-reference-manifest.js +1 -0
  109. package/.next/server/app/api/skills/install/route.js +1 -0
  110. package/.next/server/app/api/skills/install/route.js.nft.json +1 -0
  111. package/.next/server/app/api/skills/install/route_client-reference-manifest.js +1 -0
  112. package/.next/server/app/api/skills/route.js +6 -0
  113. package/.next/server/app/api/skills/route.js.nft.json +1 -0
  114. package/.next/server/app/api/skills/route_client-reference-manifest.js +1 -0
  115. package/.next/server/app/api/skills/search/route.js +1 -0
  116. package/.next/server/app/api/skills/search/route.js.nft.json +1 -0
  117. package/.next/server/app/api/skills/search/route_client-reference-manifest.js +1 -0
  118. package/.next/server/app/api/tts/synthesize/route.js +1 -0
  119. package/.next/server/app/api/tts/synthesize/route.js.nft.json +1 -0
  120. package/.next/server/app/api/tts/synthesize/route_client-reference-manifest.js +1 -0
  121. package/.next/server/app/favicon.ico/route.js +1 -0
  122. package/.next/server/app/favicon.ico/route.js.nft.json +1 -0
  123. package/.next/server/app/favicon.ico.body +0 -0
  124. package/.next/server/app/favicon.ico.meta +1 -0
  125. package/.next/server/app/index.html +1 -0
  126. package/.next/server/app/index.meta +14 -0
  127. package/.next/server/app/index.rsc +15 -0
  128. package/.next/server/app/index.segments/__PAGE__.segment.rsc +6 -0
  129. package/.next/server/app/index.segments/_full.segment.rsc +15 -0
  130. package/.next/server/app/index.segments/_head.segment.rsc +6 -0
  131. package/.next/server/app/index.segments/_index.segment.rsc +5 -0
  132. package/.next/server/app/index.segments/_tree.segment.rsc +2 -0
  133. package/.next/server/app/page.js +162 -0
  134. package/.next/server/app/page.js.nft.json +1 -0
  135. package/.next/server/app/page_client-reference-manifest.js +1 -0
  136. package/.next/server/app-paths-manifest.json +33 -0
  137. package/.next/server/chunks/162.js +1 -0
  138. package/.next/server/chunks/433.js +6 -0
  139. package/.next/server/chunks/601.js +27 -0
  140. package/.next/server/chunks/63.js +45 -0
  141. package/.next/server/chunks/632.js +1 -0
  142. package/.next/server/chunks/65.js +1 -0
  143. package/.next/server/chunks/741.js +18 -0
  144. package/.next/server/chunks/813.js +1 -0
  145. package/.next/server/functions-config-manifest.json +4 -0
  146. package/.next/server/interception-route-rewrite-manifest.js +1 -0
  147. package/.next/server/middleware-build-manifest.js +1 -0
  148. package/.next/server/middleware-manifest.json +6 -0
  149. package/.next/server/middleware-react-loadable-manifest.js +1 -0
  150. package/.next/server/next-font-manifest.js +1 -0
  151. package/.next/server/next-font-manifest.json +1 -0
  152. package/.next/server/pages/404.html +1 -0
  153. package/.next/server/pages/500.html +1 -0
  154. package/.next/server/pages-manifest.json +4 -0
  155. package/.next/server/prefetch-hints.json +1 -0
  156. package/.next/server/server-reference-manifest.js +1 -0
  157. package/.next/server/server-reference-manifest.json +1 -0
  158. package/.next/server/webpack-runtime.js +1 -0
  159. package/.next/static/BvG0z8aA5rKvDREWCzBf_/_buildManifest.js +1 -0
  160. package/.next/static/BvG0z8aA5rKvDREWCzBf_/_ssgManifest.js +1 -0
  161. package/.next/static/chunks/1966.1560d0f43ac9a41a.js +1 -0
  162. package/.next/static/chunks/2479.43f5228b4208e28b.js +1 -0
  163. package/.next/static/chunks/3794-fa2c7d47374be211.js +32 -0
  164. package/.next/static/chunks/3899.cf10152d8085e352.js +1 -0
  165. package/.next/static/chunks/4bd1b696-c2f6e0877b6c10aa.js +1 -0
  166. package/.next/static/chunks/5f4842b5.50bf54b97ff395f3.js +1 -0
  167. package/.next/static/chunks/7547-9d656d23f0b75f2a.js +1 -0
  168. package/.next/static/chunks/7918f2c1.3a26cf7b64cb2eff.js +6 -0
  169. package/.next/static/chunks/8451.cfb7d6db11fbfb19.js +1 -0
  170. package/.next/static/chunks/app/_global-error/page-7f5e7bebe7a745ed.js +1 -0
  171. package/.next/static/chunks/app/_not-found/page-cba500a03cba1d1e.js +1 -0
  172. package/.next/static/chunks/app/api/agent/[id]/events/route-7f5e7bebe7a745ed.js +1 -0
  173. package/.next/static/chunks/app/api/agent/[id]/route-7f5e7bebe7a745ed.js +1 -0
  174. package/.next/static/chunks/app/api/agent/describe-image/route-7f5e7bebe7a745ed.js +1 -0
  175. package/.next/static/chunks/app/api/agent/new/route-7f5e7bebe7a745ed.js +1 -0
  176. package/.next/static/chunks/app/api/auth/all-providers/route-7f5e7bebe7a745ed.js +1 -0
  177. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-7f5e7bebe7a745ed.js +1 -0
  178. package/.next/static/chunks/app/api/auth/login/[provider]/route-7f5e7bebe7a745ed.js +1 -0
  179. package/.next/static/chunks/app/api/auth/logout/[provider]/route-7f5e7bebe7a745ed.js +1 -0
  180. package/.next/static/chunks/app/api/auth/providers/route-7f5e7bebe7a745ed.js +1 -0
  181. package/.next/static/chunks/app/api/default-cwd/route-7f5e7bebe7a745ed.js +1 -0
  182. package/.next/static/chunks/app/api/files/[...path]/route-7f5e7bebe7a745ed.js +1 -0
  183. package/.next/static/chunks/app/api/gem-xy/[id]/route-7f5e7bebe7a745ed.js +1 -0
  184. package/.next/static/chunks/app/api/gem-xy/route-7f5e7bebe7a745ed.js +1 -0
  185. package/.next/static/chunks/app/api/home/route-7f5e7bebe7a745ed.js +1 -0
  186. package/.next/static/chunks/app/api/inkos/route-7f5e7bebe7a745ed.js +1 -0
  187. package/.next/static/chunks/app/api/models/route-7f5e7bebe7a745ed.js +1 -0
  188. package/.next/static/chunks/app/api/models-config/route-7f5e7bebe7a745ed.js +1 -0
  189. package/.next/static/chunks/app/api/register-cwd/route-7f5e7bebe7a745ed.js +1 -0
  190. package/.next/static/chunks/app/api/sessions/[id]/context/route-7f5e7bebe7a745ed.js +1 -0
  191. package/.next/static/chunks/app/api/sessions/[id]/lock/route-7f5e7bebe7a745ed.js +1 -0
  192. package/.next/static/chunks/app/api/sessions/[id]/route-7f5e7bebe7a745ed.js +1 -0
  193. package/.next/static/chunks/app/api/sessions/new/route-7f5e7bebe7a745ed.js +1 -0
  194. package/.next/static/chunks/app/api/sessions/route-7f5e7bebe7a745ed.js +1 -0
  195. package/.next/static/chunks/app/api/skills/install/route-7f5e7bebe7a745ed.js +1 -0
  196. package/.next/static/chunks/app/api/skills/route-7f5e7bebe7a745ed.js +1 -0
  197. package/.next/static/chunks/app/api/skills/search/route-7f5e7bebe7a745ed.js +1 -0
  198. package/.next/static/chunks/app/api/tts/synthesize/route-7f5e7bebe7a745ed.js +1 -0
  199. package/.next/static/chunks/app/layout-6c9568b1e18484e3.js +1 -0
  200. package/.next/static/chunks/app/page-0e8b420d9a738e0f.js +161 -0
  201. package/.next/static/chunks/ca377847.a378e365b1b60c48.js +1 -0
  202. package/.next/static/chunks/framework-3052651e402fc2ca.js +1 -0
  203. package/.next/static/chunks/main-268a9d5ff935d846.js +5 -0
  204. package/.next/static/chunks/main-app-a115908f58a6cf38.js +1 -0
  205. package/.next/static/chunks/next/dist/client/components/builtin/app-error-7f5e7bebe7a745ed.js +1 -0
  206. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-7f5e7bebe7a745ed.js +1 -0
  207. package/.next/static/chunks/next/dist/client/components/builtin/global-error-2c0ae34a7b36f2f6.js +1 -0
  208. package/.next/static/chunks/next/dist/client/components/builtin/not-found-7f5e7bebe7a745ed.js +1 -0
  209. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-7f5e7bebe7a745ed.js +1 -0
  210. package/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  211. package/.next/static/chunks/webpack-a98a562c28a00d6f.js +1 -0
  212. package/.next/static/css/cb335cfd27b5f824.css +3 -0
  213. package/.next/static/media/15605e25b523335c-s.woff2 +0 -0
  214. package/.next/static/media/1a3dce5cfb5f7760-s.woff2 +0 -0
  215. package/.next/static/media/1cdd02902f937a18-s.woff2 +0 -0
  216. package/.next/static/media/4c4b3b30b6bcb2be-s.woff2 +0 -0
  217. package/.next/static/media/641a7b8a5800ee0e-s.woff2 +0 -0
  218. package/.next/static/media/7deddc85b7ffd1dc-s.p.woff2 +0 -0
  219. package/.next/static/media/ec14413c594b3356-s.p.woff2 +0 -0
  220. package/.next/trace +4 -0
  221. package/.next/trace-build +1 -0
  222. package/.next/types/app/api/agent/[id]/events/route.ts +351 -0
  223. package/.next/types/app/api/agent/[id]/route.ts +351 -0
  224. package/.next/types/app/api/agent/describe-image/route.ts +351 -0
  225. package/.next/types/app/api/agent/new/route.ts +351 -0
  226. package/.next/types/app/api/auth/all-providers/route.ts +351 -0
  227. package/.next/types/app/api/auth/api-key/[provider]/route.ts +351 -0
  228. package/.next/types/app/api/auth/login/[provider]/route.ts +351 -0
  229. package/.next/types/app/api/auth/logout/[provider]/route.ts +351 -0
  230. package/.next/types/app/api/auth/providers/route.ts +351 -0
  231. package/.next/types/app/api/default-cwd/route.ts +351 -0
  232. package/.next/types/app/api/files/[...path]/route.ts +351 -0
  233. package/.next/types/app/api/gem-xy/[id]/route.ts +351 -0
  234. package/.next/types/app/api/gem-xy/route.ts +351 -0
  235. package/.next/types/app/api/home/route.ts +351 -0
  236. package/.next/types/app/api/inkos/route.ts +351 -0
  237. package/.next/types/app/api/models/route.ts +351 -0
  238. package/.next/types/app/api/models-config/route.ts +351 -0
  239. package/.next/types/app/api/register-cwd/route.ts +351 -0
  240. package/.next/types/app/api/sessions/[id]/context/route.ts +351 -0
  241. package/.next/types/app/api/sessions/[id]/lock/route.ts +351 -0
  242. package/.next/types/app/api/sessions/[id]/route.ts +351 -0
  243. package/.next/types/app/api/sessions/new/route.ts +351 -0
  244. package/.next/types/app/api/sessions/route.ts +351 -0
  245. package/.next/types/app/api/skills/install/route.ts +351 -0
  246. package/.next/types/app/api/skills/route.ts +351 -0
  247. package/.next/types/app/api/skills/search/route.ts +351 -0
  248. package/.next/types/app/api/tts/synthesize/route.ts +351 -0
  249. package/.next/types/app/layout.ts +87 -0
  250. package/.next/types/app/page.ts +87 -0
  251. package/.next/types/package.json +1 -0
  252. package/.next/types/routes.d.ts +99 -0
  253. package/.next/types/validator.ts +313 -0
  254. package/README.md +183 -0
  255. package/bin/pi-web.js +78 -0
  256. package/electron/main.js +127 -0
  257. package/next.config.ts +13 -0
  258. package/package.json +116 -0
  259. package/public/favicon.ico +0 -0
  260. package/public/file.svg +1 -0
  261. package/public/generate_favicon.py +38 -0
  262. package/public/globe.svg +1 -0
  263. package/public/icon.png +0 -0
  264. package/public/next.svg +1 -0
  265. package/public/vercel.svg +1 -0
  266. package/public/window.svg +1 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2479],{2119:function(t){t.exports=function(){"use strict";let t;function e(t){return t+.5|0}let r=(t,e,r)=>Math.max(Math.min(t,r),e);function n(t){return r(e(2.55*t),0,255)}function i(t){return r(e(255*t),0,255)}function o(t){return r(e(t/2.55)/100,0,1)}function a(t){return r(e(100*t),0,100)}let s={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},l=[..."0123456789ABCDEF"],f=t=>l[15&t],u=t=>l[(240&t)>>4]+l[15&t],h=t=>(240&t)>>4==(15&t);function c(t){var e,r=t.length;return"#"===t[0]&&(4===r||5===r?e={r:255&17*s[t[1]],g:255&17*s[t[2]],b:255&17*s[t[3]],a:5===r?17*s[t[4]]:255}:(7===r||9===r)&&(e={r:s[t[1]]<<4|s[t[2]],g:s[t[3]]<<4|s[t[4]],b:s[t[5]]<<4|s[t[6]],a:9===r?s[t[7]]<<4|s[t[8]]:255})),e}function d(t){let e;var r=h(t.r)&&h(t.g)&&h(t.b)&&h(t.a)?f:u;return t?"#"+r(t.r)+r(t.g)+r(t.b)+(e=t.a,e<255?r(e):""):void 0}let p=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function g(t,e,r){let n=e*Math.min(r,1-r),i=(e,i=(e+t/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function m(t,e,r){let n=(n,i=(n+t/60)%6)=>r-r*e*Math.max(Math.min(i,4-i,1),0);return[n(5),n(3),n(1)]}function b(t,e,r){let n,i=g(t,1,.5);for(e+r>1&&(n=1/(e+r),e*=n,r*=n),n=0;n<3;n++)i[n]*=1-e-r,i[n]+=e;return i}function y(t){let e,r,n,i=t.r/255,o=t.g/255,a=t.b/255,s=Math.max(i,o,a),l=Math.min(i,o,a),f=(s+l)/2;s!==l&&(n=s-l,r=f>.5?n/(2-s-l):n/(s+l),e=60*(e=i===s?(o-a)/n+6*(o<a):o===s?(a-i)/n+2:(i-o)/n+4)+.5);return[0|e,r||0,f]}function _(t,e,r,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,r,n)).map(i)}function v(t,e,r){return _(g,t,e,r)}function w(t,e,r){return _(b,t,e,r)}function x(t,e,r){return _(m,t,e,r)}function k(t){return(t%360+360)%360}function S(t){let e,r=p.exec(t),o=255;if(!r)return;r[5]!==e&&(o=r[6]?n(+r[5]):i(+r[5]));let a=k(+r[2]),s=r[3]/100,l=r[4]/100;return{r:(e="hwb"===r[1]?w(a,s,l):"hsv"===r[1]?x(a,s,l):v(a,s,l))[0],g:e[1],b:e[2],a:o}}function O(t,e){var r=y(t);r[0]=k(r[0]+e),t.r=(r=v(r))[0],t.g=r[1],t.b=r[2]}function A(t){if(!t)return;let e=y(t),r=e[0],n=a(e[1]),i=a(e[2]);return t.a<255?`hsla(${r}, ${n}%, ${i}%, ${o(t.a)})`:`hsl(${r}, ${n}%, ${i}%)`}let E={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},C={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function T(e){t||((t=function(){let t,e,r,n,i,o={},a=Object.keys(C),s=Object.keys(E);for(t=0;t<a.length;t++){for(e=0,n=i=a[t];e<s.length;e++)r=s[e],i=i.replace(r,E[r]);r=parseInt(C[n],16),o[i]=[r>>16&255,r>>8&255,255&r]}return o}()).transparent=[0,0,0,0]);let r=t[e.toLowerCase()];return r&&{r:r[0],g:r[1],b:r[2],a:4===r.length?r[3]:255}}let M=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function I(t){let e,i,o,a=M.exec(t),s=255;if(a){if(a[7]!==e){let t=+a[7];s=a[8]?n(t):r(255*t,0,255)}return e=+a[1],i=+a[3],o=+a[5],e=255&(a[2]?n(e):r(e,0,255)),{r:e,g:i=255&(a[4]?n(i):r(i,0,255)),b:o=255&(a[6]?n(o):r(o,0,255)),a:s}}}function B(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${o(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}let z=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,R=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function P(t,e,r){if(t){let n=y(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*r,0===e?360:1)),t.r=(n=v(n))[0],t.g=n[1],t.b=n[2]}}function F(t,e){return t?Object.assign(e||{},t):t}function D(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=i(t[3]))):(e=F(t,{r:0,g:0,b:0,a:1})).a=i(e.a),e}class j{constructor(t){let e;if(t instanceof j)return t;const r=typeof t;"object"===r?e=D(t):"string"===r&&(e=c(t)||T(t)||function(t){return"r"===t.charAt(0)?I(t):S(t)}(t)),this._rgb=e,this._valid=!!e}get valid(){return this._valid}get rgb(){var t=F(this._rgb);return t&&(t.a=o(t.a)),t}set rgb(t){this._rgb=D(t)}rgbString(){return this._valid?B(this._rgb):void 0}hexString(){return this._valid?d(this._rgb):void 0}hslString(){return this._valid?A(this._rgb):void 0}mix(t,e){if(t){let r,n=this.rgb,i=t.rgb,o=e===r?.5:e,a=2*o-1,s=n.a-i.a,l=((a*s==-1?a:(a+s)/(1+a*s))+1)/2;r=1-l,n.r=255&l*n.r+r*i.r+.5,n.g=255&l*n.g+r*i.g+.5,n.b=255&l*n.b+r*i.b+.5,n.a=o*n.a+(1-o)*i.a,this.rgb=n}return this}interpolate(t,e){var r,n;let a,s,l;return t&&(this._rgb=(r=this._rgb,n=t._rgb,a=R(o(r.r)),s=R(o(r.g)),l=R(o(r.b)),{r:i(z(a+e*(R(o(n.r))-a))),g:i(z(s+e*(R(o(n.g))-s))),b:i(z(l+e*(R(o(n.b))-l))),a:r.a+e*(n.a-r.a)})),this}clone(){return new j(this.rgb)}alpha(t){return this._rgb.a=i(t),this}clearer(t){let e=this._rgb;return e.a*=1-t,this}greyscale(){let t=this._rgb,r=e(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=r,this}opaquer(t){let e=this._rgb;return e.a*=1+t,this}negate(){let t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return P(this._rgb,2,t),this}darken(t){return P(this._rgb,2,-t),this}saturate(t){return P(this._rgb,1,t),this}desaturate(t){return P(this._rgb,1,-t),this}rotate(t){return O(this._rgb,t),this}}function L(t){return new j(t)}var N=Object.freeze({__proto__:null,Color:j,b2n:o,b2p:function(t){return r(e(t/2.55),0,100)},default:L,hexParse:c,hexString:d,hsl2rgb:v,hslString:A,hsv2rgb:x,hueParse:S,hwb2rgb:w,lim:r,n2b:i,n2p:a,nameParse:T,p2b:n,rgb2hsl:y,rgbParse:I,rgbString:B,rotate:O,round:e});return Object.assign(L,N)}()},2619:t=>{var e={675:function(t,e){"use strict";e.byteLength=function(t){var e=l(t),r=e[0],n=e[1];return(r+n)*3/4-n},e.toByteArray=function(t){var e,r,o=l(t),a=o[0],s=o[1],f=new i((a+s)*3/4-s),u=0,h=s>0?a-4:a;for(r=0;r<h;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],f[u++]=e>>16&255,f[u++]=e>>8&255,f[u++]=255&e;return 2===s&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,f[u++]=255&e),1===s&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,f[u++]=e>>8&255,f[u++]=255&e),f},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(function(t,e,n){for(var i,o=[],a=e;a<n;a+=3)i=(t[a]<<16&0xff0000)+(t[a+1]<<8&65280)+(255&t[a+2]),o.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(t,a,a+16383>s?s:a+16383));return 1===i?o.push(r[(e=t[n-1])>>2]+r[e<<4&63]+"=="):2===i&&o.push(r[(e=(t[n-2]<<8)+t[n-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),o.join("")};for(var r=[],n=[],i="u">typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function l(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},72:function(t,e,r){"use strict";var n=r(675),i=r(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return u(t)}return l(t,e,r)}function l(t,e,r){if("string"==typeof t){var n=t,i=e;if(("string"!=typeof i||""===i)&&(i="utf8"),!s.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|d(n,i),l=a(o),f=l.write(n,i);return f!==o&&(l=l.slice(0,f)),l}if(ArrayBuffer.isView(t))return h(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(T(t,ArrayBuffer)||t&&T(t.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(T(t,SharedArrayBuffer)||t&&T(t.buffer,SharedArrayBuffer)))return function(t,e,r){var n;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),s.prototype),n}(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var u=t.valueOf&&t.valueOf();if(null!=u&&u!==t)return s.from(u,e,r);var p=function(t){if(s.isBuffer(t)){var e=0|c(t.length),r=a(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||function(t){return t!=t}(t.length)?a(0):h(t):"Buffer"===t.type&&Array.isArray(t.data)?h(t.data):void 0}(t);if(p)return p;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return s.from(t[Symbol.toPrimitive]("string"),e,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function f(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function u(t){return f(t),a(t<0?0:0|c(t))}function h(t){for(var e=t.length<0?0:0|c(t.length),r=a(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}e.Buffer=s,e.SlowBuffer=function(t){return+t!=t&&(t=0),s.alloc(+t)},e.INSPECT_MAX_BYTES=50,e.kMaxLength=0x7fffffff,s.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),!s.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(t,e,r){return l(t,e,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(t,e,r){return(f(t),t<=0)?a(t):void 0!==e?"string"==typeof r?a(t).fill(e,r):a(t).fill(e):a(t)},s.allocUnsafe=function(t){return u(t)},s.allocUnsafeSlow=function(t){return u(t)};function c(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function d(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||T(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return O(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return E(t).length;default:if(i)return n?-1:O(t).length;e=(""+e).toLowerCase(),i=!0}}function p(t,e,r){var i,o,a,s=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=M[t[o]];return i}(this,e,r);case"utf8":case"utf-8":return y(this,e,r);case"ascii":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}(this,e,r);case"latin1":case"binary":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}(this,e,r);case"base64":return i=this,o=e,a=r,0===o&&a===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(o,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,e,r);default:if(s)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),s=!0}}function g(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function m(t,e,r,n,i){var o;if(0===t.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length)if(i)return -1;else r=t.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof e&&(e=s.from(e,n)),s.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,i);if("number"==typeof e){if(e&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(t,e,r);else return Uint8Array.prototype.lastIndexOf.call(t,e,r);return b(t,[e],r,n,i)}throw TypeError("val must be string, number or Buffer")}function b(t,e,r,n,i){var o,a=1,s=t.length,l=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;a=2,s/=2,l/=2,r/=2}function f(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var u=-1;for(o=r;o<s;o++)if(f(t,o)===f(e,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*a}else -1!==u&&(o-=o-u),u=-1}else for(r+l>s&&(r=s-l),o=r;o>=0;o--){for(var h=!0,c=0;c<l;c++)if(f(t,o+c)!==f(e,c)){h=!1;break}if(h)return o}return -1}s.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==s.prototype},s.compare=function(t,e){if(T(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),T(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:+(n<r)},s.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(t,e){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return s.alloc(0);if(void 0===e)for(r=0,e=0;r<t.length;++r)e+=t[r].length;var r,n=s.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(T(o,Uint8Array)&&(o=s.from(o)),!s.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},s.byteLength=d,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},s.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},s.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},s.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?y(this,0,t):p.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(t){if(!s.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===s.compare(this,t)},s.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(t,e,r,n,i){if(T(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var o=i-n,a=r-e,l=Math.min(o,a),f=this.slice(n,i),u=t.slice(e,r),h=0;h<l;++h)if(f[h]!==u[h]){o=f[h],a=u[h];break}return o<a?-1:+(a<o)},s.prototype.includes=function(t,e,r){return -1!==this.indexOf(t,e,r)},s.prototype.indexOf=function(t,e,r){return m(this,t,e,r,!0)},s.prototype.lastIndexOf=function(t,e,r){return m(this,t,e,r,!1)};function y(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,a,s,l,f=t[i],u=null,h=f>239?4:f>223?3:f>191?2:1;if(i+h<=r)switch(h){case 1:f<128&&(u=f);break;case 2:(192&(o=t[i+1]))==128&&(l=(31&f)<<6|63&o)>127&&(u=l);break;case 3:o=t[i+1],a=t[i+2],(192&o)==128&&(192&a)==128&&(l=(15&f)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&f)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,h=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),i+=h}var c=n,d=c.length;if(d<=4096)return String.fromCharCode.apply(String,c);for(var p="",g=0;g<d;)p+=String.fromCharCode.apply(String,c.slice(g,g+=4096));return p}function _(t,e,r){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>r)throw RangeError("Trying to access beyond buffer length")}function v(t,e,r,n,i,o){if(!s.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw RangeError('"value" argument is out of bounds');if(r+n>t.length)throw RangeError("Index out of range")}function w(t,e,r,n,i,o){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function x(t,e,r,n,o){return e*=1,r>>>=0,o||w(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function k(t,e,r,n,o){return e*=1,r>>>=0,o||w(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}s.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,l,f,u,h,c=this.length-e;if((void 0===r||r>c)&&(r=c),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var d=!1;;)switch(n){case"hex":return function(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s,l=parseInt(e.substr(2*a,2),16);if((s=l)!=s)break;t[r+a]=l}return a}(this,t,e,r);case"utf8":case"utf-8":return i=e,o=r,C(O(t,this.length-i),this,i,o);case"ascii":return a=e,s=r,C(A(t),this,a,s);case"latin1":case"binary":return function(t,e,r,n){return C(A(e),t,r,n)}(this,t,e,r);case"base64":return l=e,f=r,C(E(t),this,l,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u=e,h=r,C(function(t,e){for(var r,n,i=[],o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(t,this.length-u),this,u,h);default:if(d)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),d=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||_(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},s.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||_(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},s.prototype.readUInt8=function(t,e){return t>>>=0,e||_(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||_(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||_(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||_(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||_(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||_(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},s.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||_(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},s.prototype.readInt8=function(t,e){return(t>>>=0,e||_(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||_(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt16BE=function(t,e){t>>>=0,e||_(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||_(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||_(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return t>>>=0,e||_(t,4,this.length),i.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||_(t,4,this.length),i.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||_(t,8,this.length),i.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||_(t,8,this.length),i.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;v(this,t,e,r,i,0)}var o=1,a=0;for(this[e]=255&t;++a<r&&(o*=256);)this[e+a]=t/o&255;return e+r},s.prototype.writeUIntBE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;v(this,t,e,r,i,0)}var o=r-1,a=1;for(this[e+o]=255&t;--o>=0&&(a*=256);)this[e+o]=t/a&255;return e+r},s.prototype.writeUInt8=function(t,e,r){return t*=1,e>>>=0,r||v(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUInt16LE=function(t,e,r){return t*=1,e>>>=0,r||v(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUInt16BE=function(t,e,r){return t*=1,e>>>=0,r||v(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUInt32LE=function(t,e,r){return t*=1,e>>>=0,r||v(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},s.prototype.writeUInt32BE=function(t,e,r){return t*=1,e>>>=0,r||v(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeIntLE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var i=Math.pow(2,8*r-1);v(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<r&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a|0)-s&255;return e+r},s.prototype.writeIntBE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var i=Math.pow(2,8*r-1);v(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a|0)-s&255;return e+r},s.prototype.writeInt8=function(t,e,r){return t*=1,e>>>=0,r||v(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,r){return t*=1,e>>>=0,r||v(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,r){return t*=1,e>>>=0,r||v(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,r){return t*=1,e>>>=0,r||v(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},s.prototype.writeInt32BE=function(t,e,r){return t*=1,e>>>=0,r||v(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeFloatLE=function(t,e,r){return x(this,t,e,!0,r)},s.prototype.writeFloatBE=function(t,e,r){return x(this,t,e,!1,r)},s.prototype.writeDoubleLE=function(t,e,r){return k(this,t,e,!0,r)},s.prototype.writeDoubleBE=function(t,e,r){return k(this,t,e,!1,r)},s.prototype.copy=function(t,e,r,n){if(!s.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i=n-r;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&&r<e&&e<n)for(var o=i-1;o>=0;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},s.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var i,o=t.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(t=o)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw RangeError("Out of range index");if(r<=e)return this;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var a=s.isBuffer(t)?t:s.from(t,n),l=a.length;if(0===l)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=a[i%l]}return this};var S=/[^+/0-9A-Za-z-_]/g;function O(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319||a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function A(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function E(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function C(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length)&&!(i>=t.length);++i)e[i+r]=t[i];return i}function T(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var M=function(){for(var t="0123456789abcdef",e=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},783:function(t,e){e.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,l=(1<<s)-1,f=l>>1,u=-7,h=r?i-1:0,c=r?-1:1,d=t[e+h];for(h+=c,o=d&(1<<-u)-1,d>>=-u,u+=s;u>0;o=256*o+t[e+h],h+=c,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=n;u>0;a=256*a+t[e+h],h+=c,u-=8);if(0===o)o=1-f;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=f}return(d?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,l,f=8*o-i-1,u=(1<<f)-1,h=u>>1,c=5960464477539062e-23*(23===i),d=n?0:o-1,p=n?1:-1,g=+(e<0||0===e&&1/e<0);for(isNaN(e=Math.abs(e))||e===1/0?(s=+!!isNaN(e),a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+h>=1?e+=c/l:e+=c*Math.pow(2,1-h),e*l>=2&&(a++,l/=2),a+h>=u?(s=0,a=u):a+h>=1?(s=(e*l-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,f+=i;f>0;t[r+d]=255&a,d+=p,a/=256,f-=8);t[r+d-p]|=128*g}}},r={};function n(t){var i=r[t];if(void 0!==i)return i.exports;var o=r[t]={exports:{}},a=!0;try{e[t](o,o.exports,n),a=!1}finally{a&&delete r[t]}return o.exports}n.ab="//",t.exports=n(72)},2716:(t,e,r)=>{"use strict";let n,i;function o(t){return t+.5|0}r.d(e,{$:()=>eu,A:()=>tz,B:()=>tB,C:()=>el,D:()=>tk,E:()=>ew,F:()=>Z,G:()=>eV,H:()=>tf,I:()=>eZ,J:()=>eJ,K:()=>eQ,L:()=>tN,M:()=>eW,N:()=>tm,O:()=>j,P:()=>ti,Q:()=>W,R:()=>eS,S:()=>tC,T:()=>to,U:()=>tw,V:()=>er,W:()=>tT,X:()=>ei,Y:()=>ef,Z:()=>ed,_:()=>tj,a:()=>ek,a0:()=>ex,a1:()=>tW,a2:()=>tZ,a3:()=>t6,a4:()=>K,a5:()=>J,a6:()=>t4,a7:()=>te,a8:()=>function t(e,r,n,i){return new Proxy({_cacheable:!1,_proxy:e,_context:r,_subProxy:n,_stack:new Set,_descriptors:eE(e,i),setContext:r=>t(e,r,n,i),override:o=>t(e.override(o),r,n,i)},{deleteProperty:(t,r)=>(delete t[r],delete e[r],!0),get:(e,r,n)=>eM(e,r,()=>(function(e,r,n){let{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=e,l=i[r];return te(l)&&s.isScriptable(r)&&(l=function(t,e,r,n){let{_proxy:i,_context:o,_subProxy:a,_stack:s}=r;if(s.has(t))throw Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t);let l=e(o,a||n);return s.delete(t),eT(t,l)&&(l=eB(i._scopes,i,t,l)),l}(r,l,e,n)),P(l)&&l.length&&(l=function(e,r,n,i){let{_proxy:o,_context:a,_subProxy:s,_descriptors:l}=n;if(void 0!==a.index&&i(e))return r[a.index%r.length];if(F(r[0])){let n=r,i=o._scopes.filter(t=>t!==n);for(let f of(r=[],n)){let n=eB(i,o,e,f);r.push(t(n,a,s&&s[e],l))}}return r}(r,l,e,s.isIndexable)),eT(r,l)&&(l=t(l,o,a&&a[r],s)),l})(e,r,n)),getOwnPropertyDescriptor:(t,r)=>t._descriptors.allKeys?Reflect.has(e,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,r),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,r)=>Reflect.has(e,r),ownKeys:()=>Reflect.ownKeys(e),set:(t,r,n)=>(e[r]=n,delete t[r],!0)})},a9:()=>eA,aA:()=>e5,aB:()=>e3,aC:()=>tY,aD:()=>e8,aE:()=>es,aF:()=>tS,aG:()=>B,aH:()=>t_,aI:()=>tg,aJ:()=>ty,aK:()=>tp,aL:()=>tx,aM:()=>t8,aN:()=>tc,aO:()=>en,aP:()=>tR,aQ:()=>tI,aa:()=>eE,ab:()=>q,ac:()=>z,ad:()=>tU,ae:()=>eG,af:()=>eo,ag:()=>tr,ah:()=>ri,ai:()=>Y,aj:()=>tn,ak:()=>tM,al:()=>tA,am:()=>ey,an:()=>eU,ao:()=>rt,ap:()=>e9,aq:()=>e1,ar:()=>e2,as:()=>e0,at:()=>eh,au:()=>ec,av:()=>ea,aw:()=>ep,ax:()=>e_,ay:()=>ev,az:()=>e7,b:()=>P,c:()=>tQ,d:()=>ee,e:()=>tV,f:()=>Q,g:()=>D,h:()=>tt,i:()=>F,j:()=>eO,k:()=>R,l:()=>tF,m:()=>N,n:()=>U,o:()=>t5,p:()=>tE,q:()=>tH,r:()=>tL,s:()=>td,t:()=>tv,u:()=>tD,v:()=>L,w:()=>tX,x:()=>tb,y:()=>eF,z:()=>eK});let a=(t,e,r)=>Math.max(Math.min(t,r),e);function s(t){return a(o(2.55*t),0,255)}function l(t){return a(o(255*t),0,255)}function f(t){return a(o(t/2.55)/100,0,1)}function u(t){return a(o(100*t),0,100)}let h={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},c=[..."0123456789ABCDEF"],d=t=>c[15&t],p=t=>c[(240&t)>>4]+c[15&t],g=t=>(240&t)>>4==(15&t),m=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function b(t,e,r){let n=e*Math.min(r,1-r),i=(e,i=(e+t/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function y(t,e,r){let n=(n,i=(n+t/60)%6)=>r-r*e*Math.max(Math.min(i,4-i,1),0);return[n(5),n(3),n(1)]}function _(t,e,r){let n,i=b(t,1,.5);for(e+r>1&&(n=1/(e+r),e*=n,r*=n),n=0;n<3;n++)i[n]*=1-e-r,i[n]+=e;return i}function v(t){let e,r,n,i=t.r/255,o=t.g/255,a=t.b/255,s=Math.max(i,o,a),l=Math.min(i,o,a),f=(s+l)/2;s!==l&&(n=s-l,r=f>.5?n/(2-s-l):n/(s+l),e=60*(e=i===s?(o-a)/n+6*(o<a):o===s?(a-i)/n+2:(i-o)/n+4)+.5);return[0|e,r||0,f]}function w(t,e,r,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,r,n)).map(l)}function x(t){return(t%360+360)%360}let k={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},S={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"},O=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,A=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,E=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function C(t,e,r){if(t){let n=v(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*r,0===e?360:1)),t.r=(n=w(b,n,void 0,void 0))[0],t.g=n[1],t.b=n[2]}}function T(t,e){return t?Object.assign(e||{},t):t}function M(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=l(t[3]))):(e=T(t,{r:0,g:0,b:0,a:1})).a=l(e.a),e}class I{constructor(t){let e;if(t instanceof I)return t;const r=typeof t;"object"===r?e=M(t):"string"===r&&(e=function(t){var e,r=t.length;return"#"===t[0]&&(4===r||5===r?e={r:255&17*h[t[1]],g:255&17*h[t[2]],b:255&17*h[t[3]],a:5===r?17*h[t[4]]:255}:(7===r||9===r)&&(e={r:h[t[1]]<<4|h[t[2]],g:h[t[3]]<<4|h[t[4]],b:h[t[5]]<<4|h[t[6]],a:9===r?h[t[7]]<<4|h[t[8]]:255})),e}(t)||function(t){n||((n=function(){let t,e,r,n,i,o={},a=Object.keys(S),s=Object.keys(k);for(t=0;t<a.length;t++){for(e=0,n=i=a[t];e<s.length;e++)r=s[e],i=i.replace(r,k[r]);r=parseInt(S[n],16),o[i]=[r>>16&255,r>>8&255,255&r]}return o}()).transparent=[0,0,0,0]);let e=n[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||function(t){return"r"===t.charAt(0)?function(t){let e,r,n,i=O.exec(t),o=255;if(i){if(i[7]!==e){let t=+i[7];o=i[8]?s(t):a(255*t,0,255)}return e=+i[1],r=+i[3],n=+i[5],e=255&(i[2]?s(e):a(e,0,255)),{r:e,g:r=255&(i[4]?s(r):a(r,0,255)),b:n=255&(i[6]?s(n):a(n,0,255)),a:o}}}(t):function(t){let e,r=m.exec(t),n=255;if(!r)return;r[5]!==e&&(n=r[6]?s(+r[5]):l(+r[5]));let i=x(+r[2]),o=r[3]/100,a=r[4]/100;return{r:(e="hwb"===r[1]?w(_,i,o,a):"hsv"===r[1]?w(y,i,o,a):w(b,i,o,a))[0],g:e[1],b:e[2],a:n}}(t)}(t)),this._rgb=e,this._valid=!!e}get valid(){return this._valid}get rgb(){var t=T(this._rgb);return t&&(t.a=f(t.a)),t}set rgb(t){this._rgb=M(t)}rgbString(){var t;return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${f(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0}hexString(){var t,e;let r,n;return this._valid?(e=g((r=t=this._rgb).r)&&g(r.g)&&g(r.b)&&g(r.a)?d:p,t?"#"+e(t.r)+e(t.g)+e(t.b)+(n=t.a,n<255?e(n):""):void 0):void 0}hslString(){return this._valid?function(t){if(!t)return;let e=v(t),r=e[0],n=u(e[1]),i=u(e[2]);return t.a<255?`hsla(${r}, ${n}%, ${i}%, ${f(t.a)})`:`hsl(${r}, ${n}%, ${i}%)`}(this._rgb):void 0}mix(t,e){if(t){let r,n=this.rgb,i=t.rgb,o=e===r?.5:e,a=2*o-1,s=n.a-i.a,l=((a*s==-1?a:(a+s)/(1+a*s))+1)/2;r=1-l,n.r=255&l*n.r+r*i.r+.5,n.g=255&l*n.g+r*i.g+.5,n.b=255&l*n.b+r*i.b+.5,n.a=o*n.a+(1-o)*i.a,this.rgb=n}return this}interpolate(t,e){var r,n;let i,o,a;return t&&(this._rgb=(r=this._rgb,n=t._rgb,i=E(f(r.r)),o=E(f(r.g)),a=E(f(r.b)),{r:l(A(i+e*(E(f(n.r))-i))),g:l(A(o+e*(E(f(n.g))-o))),b:l(A(a+e*(E(f(n.b))-a))),a:r.a+e*(n.a-r.a)})),this}clone(){return new I(this.rgb)}alpha(t){return this._rgb.a=l(t),this}clearer(t){let e=this._rgb;return e.a*=1-t,this}greyscale(){let t=this._rgb,e=o(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){let e=this._rgb;return e.a*=1+t,this}negate(){let t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return C(this._rgb,2,t),this}darken(t){return C(this._rgb,2,-t),this}saturate(t){return C(this._rgb,1,t),this}desaturate(t){return C(this._rgb,1,-t),this}rotate(t){var e=this._rgb,r=v(e);return r[0]=x(r[0]+t),e.r=(r=w(b,r,void 0,void 0))[0],e.g=r[1],e.b=r[2],this}}function B(){}let z=(i=0,()=>i++);function R(t){return null==t}function P(t){if(Array.isArray&&Array.isArray(t))return!0;let e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function F(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function D(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function j(t,e){return D(t)?t:e}function L(t,e){return void 0===t?e:t}let N=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:t/e,U=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function W(t,e,r){if(t&&"function"==typeof t.call)return t.apply(r,e)}function Z(t,e,r,n){let i,o,a;if(P(t))if(o=t.length,n)for(i=o-1;i>=0;i--)e.call(r,t[i],i);else for(i=0;i<o;i++)e.call(r,t[i],i);else if(F(t))for(i=0,o=(a=Object.keys(t)).length;i<o;i++)e.call(r,t[a[i]],a[i])}function Y(t,e){let r,n,i,o;if(!t||!e||t.length!==e.length)return!1;for(r=0,n=t.length;r<n;++r)if(i=t[r],o=e[r],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function H(t){if(P(t))return t.map(H);if(F(t)){let e=Object.create(null),r=Object.keys(t),n=r.length,i=0;for(;i<n;++i)e[r[i]]=H(t[r[i]]);return e}return t}function X(t){return -1===["__proto__","prototype","constructor"].indexOf(t)}function $(t,e,r,n){if(!X(t))return;let i=e[t],o=r[t];F(i)&&F(o)?K(i,o,n):e[t]=H(o)}function K(t,e,r){let n,i=P(e)?e:[e],o=i.length;if(!F(t))return t;let a=(r=r||{}).merger||$;for(let e=0;e<o;++e){if(!F(n=i[e]))continue;let o=Object.keys(n);for(let e=0,i=o.length;e<i;++e)a(o[e],t,n,r)}return t}function q(t,e){return K(t,e,{merger:V})}function V(t,e,r){if(!X(t))return;let n=e[t],i=r[t];F(n)&&F(i)?q(n,i):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=H(i))}let G={"":t=>t,x:t=>t.x,y:t=>t.y};function Q(t,e){let r;return(G[e]||(G[e]=(r=function(t){let e=t.split("."),r=[],n="";for(let t of e)(n+=t).endsWith("\\")?n=n.slice(0,-1)+".":(r.push(n),n="");return r}(e),t=>{for(let e of r){if(""===e)break;t=t&&t[e]}return t})))(t)}function J(t){return t.charAt(0).toUpperCase()+t.slice(1)}let tt=t=>void 0!==t,te=t=>"function"==typeof t,tr=(t,e)=>{if(t.size!==e.size)return!1;for(let r of t)if(!e.has(r))return!1;return!0};function tn(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}let ti=Math.PI,to=2*ti,ta=to+ti,ts=1/0,tl=ti/180,tf=ti/2,tu=ti/4,th=2*ti/3,tc=Math.log10,td=Math.sign;function tp(t,e,r){return Math.abs(t-e)<r}function tg(t){let e=Math.round(t),r=Math.pow(10,Math.floor(tc(t=tp(t,e,t/1e3)?e:t))),n=t/r;return(n<=1?1:n<=2?2:n<=5?5:10)*r}function tm(t){let e,r=[],n=Math.sqrt(t);for(e=1;e<n;e++)t%e==0&&(r.push(e),r.push(t/e));return n===(0|n)&&r.push(n),r.sort((t,e)=>t-e).pop(),r}function tb(t){return"symbol"!=typeof t&&("object"!=typeof t||null===t||!!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t))&&!isNaN(parseFloat(t))&&isFinite(t)}function ty(t,e){let r=Math.round(t);return r-e<=t&&r+e>=t}function t_(t,e,r){let n,i,o;for(n=0,i=t.length;n<i;n++)isNaN(o=t[n][r])||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function tv(t){return ti/180*t}function tw(t){return 180/ti*t}function tx(t){if(!D(t))return;let e=1,r=0;for(;Math.round(t*e)/e!==t;)e*=10,r++;return r}function tk(t,e){let r=e.x-t.x,n=e.y-t.y,i=Math.sqrt(r*r+n*n),o=Math.atan2(n,r);return o<-.5*ti&&(o+=to),{angle:o,distance:i}}function tS(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function tO(t,e){return(t-e+ta)%to-ti}function tA(t){return(t%to+to)%to}function tE(t,e,r,n){let i=tA(t),o=tA(e),a=tA(r),s=tA(o-i),l=tA(a-i),f=tA(i-o),u=tA(i-a);return i===o||i===a||n&&o===a||s>l&&f<u}function tC(t,e,r){return Math.max(e,Math.min(r,t))}function tT(t){return tC(t,-32768,32767)}function tM(t,e,r,n=1e-6){return t>=Math.min(e,r)-n&&t<=Math.max(e,r)+n}function tI(t,e,r){let n;r=r||(r=>t[r]<e);let i=t.length-1,o=0;for(;i-o>1;)r(n=o+i>>1)?o=n:i=n;return{lo:o,hi:i}}let tB=(t,e,r,n)=>tI(t,r,n?n=>{let i=t[n][e];return i<r||i===r&&t[n+1][e]===r}:n=>t[n][e]<r),tz=(t,e,r)=>tI(t,r,n=>t[n][e]>=r);function tR(t,e,r){let n=0,i=t.length;for(;n<i&&t[n]<e;)n++;for(;i>n&&t[i-1]>r;)i--;return n>0||i<t.length?t.slice(n,i):t}let tP=["push","pop","shift","splice","unshift"];function tF(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),tP.forEach(e=>{let r="_onData"+J(e),n=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){let i=n.apply(this,e);return t._chartjs.listeners.forEach(t=>{"function"==typeof t[r]&&t[r](...e)}),i}})}))}function tD(t,e){let r=t._chartjs;if(!r)return;let n=r.listeners,i=n.indexOf(e);-1!==i&&n.splice(i,1),n.length>0||(tP.forEach(e=>{delete t[e]}),delete t._chartjs)}function tj(t){let e=new Set(t);return e.size===t.length?t:Array.from(e)}let tL="u"<typeof window?function(t){return t()}:window.requestAnimationFrame;function tN(t,e){let r=[],n=!1;return function(...i){r=i,n||(n=!0,tL.call(window,()=>{n=!1,t.apply(e,r)}))}}function tU(t,e){let r;return function(...n){return e?(clearTimeout(r),r=setTimeout(t,e,n)):t.apply(this,n),e}}let tW=t=>"start"===t?"left":"end"===t?"right":"center",tZ=(t,e,r)=>"start"===t?e:"end"===t?r:(e+r)/2,tY=(t,e,r,n)=>t===(n?"left":"right")?r:"center"===t?(e+r)/2:e;function tH(t,e,r){let n=e.length,i=0,o=n;if(t._sorted){let{iScale:a,vScale:s,_parsed:l}=t,f=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,u=a.axis,{min:h,max:c,minDefined:d,maxDefined:p}=a.getUserBounds();if(d){if(i=Math.min(tB(l,u,h).lo,r?n:tB(e,u,a.getPixelForValue(h)).lo),f){let t=l.slice(0,i+1).reverse().findIndex(t=>!R(t[s.axis]));i-=Math.max(0,t)}i=tC(i,0,n-1)}if(p){let t=Math.max(tB(l,a.axis,c,!0).hi+1,r?0:tB(e,u,a.getPixelForValue(c),!0).hi+1);if(f){let e=l.slice(t-1).findIndex(t=>!R(t[s.axis]));t+=Math.max(0,e)}o=tC(t,i,n)-i}else o=n-i}return{start:i,count:o}}function tX(t){let{xScale:e,yScale:r,_scaleRanges:n}=t,i={xmin:e.min,xmax:e.max,ymin:r.min,ymax:r.max};if(!n)return t._scaleRanges=i,!0;let o=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==r.min||n.ymax!==r.max;return Object.assign(n,i),o}let t$=t=>0===t||1===t,tK=(t,e,r)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*to/r)),tq=(t,e,r)=>Math.pow(2,-10*t)*Math.sin((t-e)*to/r)+1,tV={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*tf)+1,easeOutSine:t=>Math.sin(t*tf),easeInOutSine:t=>-.5*(Math.cos(ti*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>t$(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(-Math.pow(2,-10*(2*t-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>t$(t)?t:tK(t,.075,.3),easeOutElastic:t=>t$(t)?t:tq(t,.075,.3),easeInOutElastic:t=>t$(t)?t:t<.5?.5*tK(2*t,.1125,.45):.5+.5*tq(2*t-1,.1125,.45),easeInBack:t=>t*t*(2.70158*t-1.70158),easeOutBack:t=>(t-=1)*t*(2.70158*t+1.70158)+1,easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-tV.easeOutBounce(1-t),easeOutBounce:t=>t<.36363636363636365?7.5625*t*t:t<.7272727272727273?7.5625*(t-=.5454545454545454)*t+.75:t<.9090909090909091?7.5625*(t-=.8181818181818182)*t+.9375:7.5625*(t-=.9545454545454546)*t+.984375,easeInOutBounce:t=>t<.5?.5*tV.easeInBounce(2*t):.5*tV.easeOutBounce(2*t-1)+.5};function tG(t){if(t&&"object"==typeof t){let e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function tQ(t){return tG(t)?t:new I(t)}function tJ(t){return tG(t)?t:new I(t).saturate(.5).darken(.1).hexString()}let t0=["x","y","borderWidth","radius","tension"],t1=["color","borderColor","backgroundColor"],t2=new Map;function t5(t,e,r){var n;let i,o;return(i=e+JSON.stringify(n=(n=r)||{}),!(o=t2.get(i))&&(o=new Intl.NumberFormat(e,n),t2.set(i,o)),o).format(t)}let t3={values:t=>P(t)?t:""+t,numeric(t,e,r){let n;if(0===t)return"0";let i=this.chart.options.locale,o=t;if(r.length>1){var a,s;let e,i=Math.max(Math.abs(r[0].value),Math.abs(r[r.length-1].value));(i<1e-4||i>1e15)&&(n="scientific"),a=t,Math.abs(e=(s=r).length>3?s[2].value-s[1].value:s[1].value-s[0].value)>=1&&a!==Math.floor(a)&&(e=a-Math.floor(a)),o=e}let l=tc(Math.abs(o)),f=isNaN(l)?1:Math.max(Math.min(-1*Math.floor(l),20),0),u={notation:n,minimumFractionDigits:f,maximumFractionDigits:f};return Object.assign(u,this.options.ticks.format),t5(t,i,u)},logarithmic(t,e,r){return 0===t?"0":[1,2,3,5,10,15].includes(r[e].significand||t/Math.pow(10,Math.floor(tc(t))))||e>.8*r.length?t3.numeric.call(this,t,e,r):""}};var t8={formatters:t3};let t6=Object.create(null),t4=Object.create(null);function t7(t,e){if(!e)return t;let r=e.split(".");for(let e=0,n=r.length;e<n;++e){let n=r[e];t=t[n]||(t[n]=Object.create(null))}return t}function t9(t,e,r){return"string"==typeof e?K(t7(t,e),r):K(t7(t,""),e)}class et{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>tJ(e.backgroundColor),this.hoverBorderColor=(t,e)=>tJ(e.borderColor),this.hoverColor=(t,e)=>tJ(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return t9(this,t,e)}get(t){return t7(this,t)}describe(t,e){return t9(t4,t,e)}override(t,e){return t9(t6,t,e)}route(t,e,r,n){let i=t7(this,t),o=t7(this,r),a="_"+e;Object.defineProperties(i,{[a]:{value:i[e],writable:!0},[e]:{enumerable:!0,get(){let t=this[a],e=o[n];return F(t)?Object.assign({},e,t):L(t,e)},set(t){this[a]=t}}})}apply(t){t.forEach(t=>t(this))}}var ee=new et({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:t1},numbers:{type:"number",properties:t0}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:t8.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function er(t,e,r,n,i){let o=e[i];return o||(o=e[i]=t.measureText(i).width,r.push(i)),o>n&&(n=o),n}function en(t,e,r,n){let i,o,a,s,l,f=(n=n||{}).data=n.data||{},u=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(f=n.data={},u=n.garbageCollect=[],n.font=e),t.save(),t.font=e;let h=0,c=r.length;for(i=0;i<c;i++)if(null==(s=r[i])||P(s)){if(P(s))for(o=0,a=s.length;o<a;o++)null==(l=s[o])||P(l)||(h=er(t,f,u,h,l))}else h=er(t,f,u,h,s);t.restore();let d=u.length/2;if(d>r.length){for(i=0;i<d;i++)delete f[u[i]];u.splice(0,d)}return h}function ei(t,e,r){let n=t.currentDevicePixelRatio,i=0!==r?Math.max(r/2,.5):0;return Math.round((e-i)*n)/n+i}function eo(t,e){(e||t)&&((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function ea(t,e,r,n){es(t,e,r,n,null)}function es(t,e,r,n,i){let o,a,s,l,f,u,h,c,d=e.pointStyle,p=e.rotation,g=e.radius,m=(p||0)*tl;if(d&&"object"==typeof d&&("[object HTMLImageElement]"===(o=d.toString())||"[object HTMLCanvasElement]"===o)){t.save(),t.translate(r,n),t.rotate(m),t.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),t.restore();return}if(!isNaN(g)&&!(g<=0)){switch(t.beginPath(),d){default:i?t.ellipse(r,n,i/2,g,0,0,to):t.arc(r,n,g,0,to),t.closePath();break;case"triangle":u=i?i/2:g,t.moveTo(r+Math.sin(m)*u,n-Math.cos(m)*g),m+=th,t.lineTo(r+Math.sin(m)*u,n-Math.cos(m)*g),m+=th,t.lineTo(r+Math.sin(m)*u,n-Math.cos(m)*g),t.closePath();break;case"rectRounded":f=.516*g,a=Math.cos(m+tu)*(l=g-f),h=Math.cos(m+tu)*(i?i/2-f:l),s=Math.sin(m+tu)*l,c=Math.sin(m+tu)*(i?i/2-f:l),t.arc(r-h,n-s,f,m-ti,m-tf),t.arc(r+c,n-a,f,m-tf,m),t.arc(r+h,n+s,f,m,m+tf),t.arc(r-c,n+a,f,m+tf,m+ti),t.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*g,u=i?i/2:l,t.rect(r-u,n-l,2*u,2*l);break}m+=tu;case"rectRot":h=Math.cos(m)*(i?i/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,c=Math.sin(m)*(i?i/2:g),t.moveTo(r-h,n-s),t.lineTo(r+c,n-a),t.lineTo(r+h,n+s),t.lineTo(r-c,n+a),t.closePath();break;case"crossRot":m+=tu;case"cross":h=Math.cos(m)*(i?i/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,c=Math.sin(m)*(i?i/2:g),t.moveTo(r-h,n-s),t.lineTo(r+h,n+s),t.moveTo(r+c,n-a),t.lineTo(r-c,n+a);break;case"star":h=Math.cos(m)*(i?i/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,c=Math.sin(m)*(i?i/2:g),t.moveTo(r-h,n-s),t.lineTo(r+h,n+s),t.moveTo(r+c,n-a),t.lineTo(r-c,n+a),m+=tu,h=Math.cos(m)*(i?i/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,c=Math.sin(m)*(i?i/2:g),t.moveTo(r-h,n-s),t.lineTo(r+h,n+s),t.moveTo(r+c,n-a),t.lineTo(r-c,n+a);break;case"line":a=i?i/2:Math.cos(m)*g,s=Math.sin(m)*g,t.moveTo(r-a,n-s),t.lineTo(r+a,n+s);break;case"dash":t.moveTo(r,n),t.lineTo(r+Math.cos(m)*(i?i/2:g),n+Math.sin(m)*g);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function el(t,e,r){return r=r||.5,!e||t&&t.x>e.left-r&&t.x<e.right+r&&t.y>e.top-r&&t.y<e.bottom+r}function ef(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function eu(t){t.restore()}function eh(t,e,r,n,i){if(!e)return t.lineTo(r.x,r.y);if("middle"===i){let n=(e.x+r.x)/2;t.lineTo(n,e.y),t.lineTo(n,r.y)}else"after"===i!=!!n?t.lineTo(e.x,r.y):t.lineTo(r.x,e.y);t.lineTo(r.x,r.y)}function ec(t,e,r,n){if(!e)return t.lineTo(r.x,r.y);t.bezierCurveTo(n?e.cp1x:e.cp2x,n?e.cp1y:e.cp2y,n?r.cp2x:r.cp1x,n?r.cp2y:r.cp1y,r.x,r.y)}function ed(t,e,r,n,i,o={}){let a,s,l=P(e)?e:[e],f=o.strokeWidth>0&&""!==o.strokeColor;for(t.save(),t.font=i.string,o.translation&&t.translate(o.translation[0],o.translation[1]),R(o.rotation)||t.rotate(o.rotation),o.color&&(t.fillStyle=o.color),o.textAlign&&(t.textAlign=o.textAlign),o.textBaseline&&(t.textBaseline=o.textBaseline),a=0;a<l.length;++a)s=l[a],o.backdrop&&function(t,e){let r=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=r}(t,o.backdrop),f&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),R(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(s,r,n,o.maxWidth)),t.fillText(s,r,n,o.maxWidth),function(t,e,r,n,i){if(i.strikethrough||i.underline){let o=t.measureText(n),a=e-o.actualBoundingBoxLeft,s=e+o.actualBoundingBoxRight,l=r-o.actualBoundingBoxAscent,f=r+o.actualBoundingBoxDescent,u=i.strikethrough?(l+f)/2:f;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=i.decorationWidth||2,t.moveTo(a,u),t.lineTo(s,u),t.stroke()}}(t,r,n,s,o),n+=Number(i.lineHeight);t.restore()}function ep(t,e){let{x:r,y:n,w:i,h:o,radius:a}=e;t.arc(r+a.topLeft,n+a.topLeft,a.topLeft,1.5*ti,ti,!0),t.lineTo(r,n+o-a.bottomLeft),t.arc(r+a.bottomLeft,n+o-a.bottomLeft,a.bottomLeft,ti,tf,!0),t.lineTo(r+i-a.bottomRight,n+o),t.arc(r+i-a.bottomRight,n+o-a.bottomRight,a.bottomRight,tf,0,!0),t.lineTo(r+i,n+a.topRight),t.arc(r+i-a.topRight,n+a.topRight,a.topRight,0,-tf,!0),t.lineTo(r+a.topLeft,n)}let eg=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,em=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/,eb=t=>+t||0;function ey(t,e){let r={},n=F(e),i=n?Object.keys(e):e,o=F(t)?n?r=>L(t[r],t[e[r]]):e=>t[e]:()=>t;for(let t of i)r[t]=eb(o(t));return r}function e_(t){return ey(t,{top:"y",right:"x",bottom:"y",left:"x"})}function ev(t){return ey(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ew(t){let e=e_(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function ex(t,e){t=t||{},e=e||ee.font;let r=L(t.size,e.size);"string"==typeof r&&(r=parseInt(r,10));let n=L(t.style,e.style);n&&!(""+n).match(em)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);let i={family:L(t.family,e.family),lineHeight:function(t,e){let r=(""+t).match(eg);if(!r||"normal"===r[1])return 1.2*e;switch(t=+r[2],r[3]){case"px":return t;case"%":t/=100}return e*t}(L(t.lineHeight,e.lineHeight),r),size:r,style:n,weight:L(t.weight,e.weight),string:""};return i.string=!i||R(i.size)||R(i.family)?null:(i.style?i.style+" ":"")+(i.weight?i.weight+" ":"")+i.size+"px "+i.family,i}function ek(t,e,r,n){let i,o,a,s=!0;for(i=0,o=t.length;i<o;++i)if(void 0!==(a=t[i])&&(void 0!==e&&"function"==typeof a&&(a=a(e),s=!1),void 0!==r&&P(a)&&(a=a[r%a.length],s=!1),void 0!==a))return n&&!s&&(n.cacheable=!1),a}function eS(t,e,r){let{min:n,max:i}=t,o=U(e,(i-n)/2),a=(t,e)=>r&&0===t?0:t+e;return{min:a(n,-Math.abs(o)),max:a(i,o)}}function eO(t,e){return Object.assign(Object.create(t),e)}function eA(t,e=[""],r,n,i=()=>t[0]){let o=r||t;return void 0===n&&(n=eR("_fallback",t)),new Proxy({[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:n,_getTarget:i,override:r=>eA([r,...t],e,o,n)},{deleteProperty:(e,r)=>(delete e[r],delete e._keys,delete t[0][r],!0),get:(r,n)=>eM(r,n,()=>(function(t,e,r,n){let i;for(let o of e)if(void 0!==(i=eR(eC(o,t),r)))return eT(t,i)?eB(r,n,t,i):i})(n,e,t,r)),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>eP(t).includes(e),ownKeys:t=>eP(t),set(t,e,r){let n=t._storage||(t._storage=i());return t[e]=n[e]=r,delete t._keys,!0}})}function eE(t,e={scriptable:!0,indexable:!0}){let{_scriptable:r=e.scriptable,_indexable:n=e.indexable,_allKeys:i=e.allKeys}=t;return{allKeys:i,scriptable:r,indexable:n,isScriptable:te(r)?r:()=>r,isIndexable:te(n)?n:()=>n}}let eC=(t,e)=>t?t+J(e):e,eT=(t,e)=>F(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function eM(t,e,r){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];let n=r();return t[e]=n,n}let eI=(t,e)=>!0===t?e:"string"==typeof t?Q(e,t):void 0;function eB(t,e,r,n){var i;let o=e._rootScopes,a=(i=e._fallback,te(i)?i(r,n):i),s=[...t,...o],l=new Set;l.add(n);let f=ez(l,s,r,a||r,n);return null!==f&&(void 0===a||a===r||null!==(f=ez(l,s,a,f,n)))&&eA(Array.from(l),[""],o,a,()=>{var t,i,o;let a,s;return t=e,i=r,o=n,i in(a=t._getTarget())||(a[i]={}),P(s=a[i])&&F(o)?o:s||{}})}function ez(t,e,r,n,i){for(;r;)r=function(t,e,r,n,i){for(let a of e){let e=eI(r,a);if(e){var o;t.add(e);let a=(o=e._fallback,te(o)?o(r,i):o);if(void 0!==a&&a!==r&&a!==n)return a}else if(!1===e&&void 0!==n&&r!==n)return null}return!1}(t,e,r,n,i);return r}function eR(t,e){for(let r of e){if(!r)continue;let e=r[t];if(void 0!==e)return e}}function eP(t){let e=t._keys;return e||(e=t._keys=function(t){let e=new Set;for(let r of t)for(let t of Object.keys(r).filter(t=>!t.startsWith("_")))e.add(t);return Array.from(e)}(t._scopes)),e}function eF(t,e,r,n){let i,o,a,{iScale:s}=t,{key:l="r"}=this._parsing,f=Array(n);for(i=0;i<n;++i)a=e[o=i+r],f[i]={r:s.parse(Q(a,l),o)};return f}let eD=Number.EPSILON||1e-14,ej=(t,e)=>e<t.length&&!t[e].skip&&t[e],eL=t=>"x"===t?"y":"x";function eN(t,e,r){return Math.max(Math.min(t,r),e)}function eU(t,e,r,n,i){let o,a,s,l;if(e.spanGaps&&(t=t.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)!function(t,e="x"){let r,n,i,o=eL(e),a=t.length,s=Array(a).fill(0),l=Array(a),f=ej(t,0);for(r=0;r<a;++r)if(n=i,i=f,f=ej(t,r+1),i){if(f){let t=f[e]-i[e];s[r]=0!==t?(f[o]-i[o])/t:0}l[r]=n?f?td(s[r-1])!==td(s[r])?0:(s[r-1]+s[r])/2:s[r-1]:s[r]}!function(t,e,r){let n,i,o,a,s,l=t.length,f=ej(t,0);for(let u=0;u<l-1;++u)if(s=f,f=ej(t,u+1),s&&f){if(tp(e[u],0,eD)){r[u]=r[u+1]=0;continue}(a=Math.pow(n=r[u]/e[u],2)+Math.pow(i=r[u+1]/e[u],2))<=9||(o=3/Math.sqrt(a),r[u]=n*o*e[u],r[u+1]=i*o*e[u])}}(t,s,l),function(t,e,r="x"){let n,i,o,a=eL(r),s=t.length,l=ej(t,0);for(let f=0;f<s;++f){if(i=o,o=l,l=ej(t,f+1),!o)continue;let s=o[r],u=o[a];i&&(n=(s-i[r])/3,o[`cp1${r}`]=s-n,o[`cp1${a}`]=u-n*e[f]),l&&(n=(l[r]-s)/3,o[`cp2${r}`]=s+n,o[`cp2${a}`]=u+n*e[f])}}(t,l,e)}(t,i);else{let r=n?t[t.length-1]:t[0];for(o=0,a=t.length;o<a;++o)l=function(t,e,r,n){let i=t.skip?e:t,o=r.skip?e:r,a=tS(e,i),s=tS(o,e),l=a/(a+s),f=s/(a+s);l=isNaN(l)?0:l,f=isNaN(f)?0:f;let u=n*l,h=n*f;return{previous:{x:e.x-u*(o.x-i.x),y:e.y-u*(o.y-i.y)},next:{x:e.x+h*(o.x-i.x),y:e.y+h*(o.y-i.y)}}}(r,s=t[o],t[Math.min(o+1,a-!n)%a],e.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,r=s}e.capBezierPoints&&function(t,e){let r,n,i,o,a,s=el(t[0],e);for(r=0,n=t.length;r<n;++r)a=o,o=s,s=r<n-1&&el(t[r+1],e),o&&(i=t[r],a&&(i.cp1x=eN(i.cp1x,e.left,e.right),i.cp1y=eN(i.cp1y,e.top,e.bottom)),s&&(i.cp2x=eN(i.cp2x,e.left,e.right),i.cp2y=eN(i.cp2y,e.top,e.bottom)))}(t,r)}function eW(){return"u">typeof window&&"u">typeof document}function eZ(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function eY(t,e,r){let n;return"string"==typeof t?(n=parseInt(t,10),-1!==t.indexOf("%")&&(n=n/100*e.parentNode[r])):n=t,n}let eH=t=>t.ownerDocument.defaultView.getComputedStyle(t,null),eX=["top","right","bottom","left"];function e$(t,e,r){let n={};r=r?"-"+r:"";for(let i=0;i<4;i++){let o=eX[i];n[o]=parseFloat(t[e+"-"+o+r])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function eK(t,e){if("native"in t)return t;let{canvas:r,currentDevicePixelRatio:n}=e,i=eH(r),o="border-box"===i.boxSizing,a=e$(i,"padding"),s=e$(i,"border","width"),{x:l,y:f,box:u}=function(t,e){let r,n,i,o=t.touches,a=o&&o.length?o[0]:t,{offsetX:s,offsetY:l}=a,f=!1;if(i=t.target,(s>0||l>0)&&(!i||!i.shadowRoot))r=s,n=l;else{let t=e.getBoundingClientRect();r=a.clientX-t.left,n=a.clientY-t.top,f=!0}return{x:r,y:n,box:f}}(t,r),h=a.left+(u&&s.left),c=a.top+(u&&s.top),{width:d,height:p}=e;return o&&(d-=a.width+s.width,p-=a.height+s.height),{x:Math.round((l-h)/d*r.width/n),y:Math.round((f-c)/p*r.height/n)}}let eq=t=>Math.round(10*t)/10;function eV(t,e,r,n){let i=eH(t),o=e$(i,"margin"),a=eY(i.maxWidth,t,"clientWidth")||ts,s=eY(i.maxHeight,t,"clientHeight")||ts,l=function(t,e,r){let n,i;if(void 0===e||void 0===r){let o=t&&eZ(t);if(o){let t=o.getBoundingClientRect(),a=eH(o),s=e$(a,"border","width"),l=e$(a,"padding");e=t.width-l.width-s.width,r=t.height-l.height-s.height,n=eY(a.maxWidth,o,"clientWidth"),i=eY(a.maxHeight,o,"clientHeight")}else e=t.clientWidth,r=t.clientHeight}return{width:e,height:r,maxWidth:n||ts,maxHeight:i||ts}}(t,e,r),{width:f,height:u}=l;if("content-box"===i.boxSizing){let t=e$(i,"border","width"),e=e$(i,"padding");f-=e.width+t.width,u-=e.height+t.height}return f=Math.max(0,f-o.width),u=Math.max(0,n?f/n:u-o.height),f=eq(Math.min(f,a,l.maxWidth)),u=eq(Math.min(u,s,l.maxHeight)),f&&!u&&(u=eq(f/2)),(void 0!==e||void 0!==r)&&n&&l.height&&u>l.height&&(f=eq(Math.floor((u=l.height)*n))),{width:f,height:u}}function eG(t,e,r){let n=e||1,i=eq(t.height*n),o=eq(t.width*n);t.height=eq(t.height),t.width=eq(t.width);let a=t.canvas;return a.style&&(r||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==n||a.height!==i||a.width!==o)&&(t.currentDevicePixelRatio=n,a.height=i,a.width=o,t.ctx.setTransform(n,0,0,n,0,0),!0)}let eQ=function(){let t=!1;try{let e={get passive(){return t=!0,!1}};eW()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function eJ(t,e){let r=eH(t).getPropertyValue(e),n=r&&r.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function e0(t,e,r,n){return{x:t.x+r*(e.x-t.x),y:t.y+r*(e.y-t.y)}}function e1(t,e,r,n){return{x:t.x+r*(e.x-t.x),y:"middle"===n?r<.5?t.y:e.y:"after"===n?r<1?t.y:e.y:r>0?e.y:t.y}}function e2(t,e,r,n){let i={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},a=e0(t,i,r),s=e0(i,o,r),l=e0(o,e,r),f=e0(a,s,r),u=e0(s,l,r);return e0(f,u,r)}function e5(t,e,r){var n;return t?(n=r,{x:t=>e+e+n-t,setWidth(t){n=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function e3(t,e){let r,n;("ltr"===e||"rtl"===e)&&(n=[(r=t.canvas.style).getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",e,"important"),t.prevTextDirection=n)}function e8(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function e6(t){return"angle"===t?{between:tE,compare:tO,normalize:tA}:{between:tM,compare:(t,e)=>t-e,normalize:t=>t}}function e4({start:t,end:e,count:r,loop:n,style:i}){return{start:t%r,end:e%r,loop:n&&(e-t+1)%r==0,style:i}}function e7(t,e,r){let n,i,o;if(!r)return[t];let{property:a,start:s,end:l}=r,f=e.length,{compare:u,between:h,normalize:c}=e6(a),{start:d,end:p,loop:g,style:m}=function(t,e,r){let n,{property:i,start:o,end:a}=r,{between:s,normalize:l}=e6(i),f=e.length,{start:u,end:h,loop:c}=t;if(c){for(u+=f,h+=f,n=0;n<f&&s(l(e[u%f][i]),o,a);++n)u--,h--;u%=f,h%=f}return h<u&&(h+=f),{start:u,end:h,loop:c,style:t.style}}(t,e,r),b=[],y=!1,_=null,v=()=>y||h(s,o,n)&&0!==u(s,o),w=()=>!y||0===u(l,n)||h(l,o,n);for(let t=d,r=d;t<=p;++t)(i=e[t%f]).skip||(n=c(i[a]))!==o&&(y=h(n,s,l),null===_&&v()&&(_=0===u(n,s)?t:r),null!==_&&w()&&(b.push(e4({start:_,end:t,loop:g,count:f,style:m})),_=null),r=t,o=n);return null!==_&&b.push(e4({start:_,end:p,loop:g,count:f,style:m})),b}function e9(t,e){let r=[],n=t.segments;for(let i=0;i<n.length;i++){let o=e7(n[i],t.points,e);o.length&&r.push(...o)}return r}function rt(t,e){let r=t.points,n=t.options.spanGaps,i=r.length;if(!i)return[];let o=!!t._loop,{start:a,end:s}=function(t,e,r,n){let i=0,o=e-1;if(r&&!n)for(;i<e&&!t[i].skip;)i++;for(;i<e&&t[i].skip;)i++;for(i%=e,r&&(o+=i);o>i&&t[o%e].skip;)o--;return{start:i,end:o%=e}}(r,i,o,n);if(!0===n)return re(t,[{start:a,end:s,loop:o}],r,e);let l=s<a?s+i:s,f=!!t._fullLoop&&0===a&&s===i-1;return re(t,function(t,e,r,n){let i,o=t.length,a=[],s=e,l=t[e];for(i=e+1;i<=r;++i){let r=t[i%o];r.skip||r.stop?l.skip||(n=!1,a.push({start:e%o,end:(i-1)%o,loop:n}),e=s=r.stop?i:null):(s=i,l.skip&&(e=i)),l=r}return null!==s&&a.push({start:e%o,end:s%o,loop:n}),a}(r,a,l,f),r,e)}function re(t,e,r,n){return n&&n.setContext&&r?function(t,e,r,n){let i=t._chart.getContext(),o=rr(t.options),{_datasetIndex:a,options:{spanGaps:s}}=t,l=r.length,f=[],u=o,h=e[0].start,c=h;function d(t,e,n,i){let o=s?-1:1;if(t!==e){for(t+=l;r[t%l].skip;)t-=o;for(;r[e%l].skip;)e+=o;t%l!=e%l&&(f.push({start:t%l,end:e%l,loop:n,style:i}),u=i,h=e%l)}}for(let t of e){let e,o=r[(h=s?h:t.start)%l];for(c=h+1;c<=t.end;c++){let s=r[c%l];(function(t,e){if(!e)return!1;let r=[],n=function(t,e){return tG(e)?(r.includes(e)||r.push(e),r.indexOf(e)):e};return JSON.stringify(t,n)!==JSON.stringify(e,n)})(e=rr(n.setContext(eO(i,{type:"segment",p0:o,p1:s,p0DataIndex:(c-1)%l,p1DataIndex:c%l,datasetIndex:a}))),u)&&d(h,c-1,t.loop,u),o=s,u=e}h<c-1&&d(h,c-1,t.loop,u)}return f}(t,e,r,n):e}function rr(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function rn(t,e,r){return t.options.clip?t[r]:e[r]}function ri(t,e){let r=e._clip;if(r.disabled)return!1;let n=function(t,e){let{xScale:r,yScale:n}=t;return r&&n?{left:rn(r,e,"left"),right:rn(r,e,"right"),top:rn(n,e,"top"),bottom:rn(n,e,"bottom")}:e}(e,t.chartArea);return{left:!1===r.left?0:n.left-(!0===r.left?0:r.left),right:!1===r.right?t.width:n.right+(!0===r.right?0:r.right),top:!1===r.top?0:n.top-(!0===r.top?0:r.top),bottom:!1===r.bottom?t.height:n.bottom+(!0===r.bottom?0:r.bottom)}}},2983:(t,e,r)=>{let n=r(2049),{Chart:i,registerables:o}=n;i.register(...o),t.exports=Object.assign(i,n)},4453:(t,e,r)=>{var n=r(2619).Buffer,i=r(1463);t.exports=(function t(e,r,n){function i(a,s){if(!r[a]){if(!e[a]){if(o)return o(a,!0);var l=Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var f=r[a]={exports:{}};e[a][0].call(f.exports,function(t){return i(e[a][1][t]||t)},f,f.exports,t,e,r,n)}return r[a].exports}for(var o=void 0,a=0;a<n.length;a++)i(n[a]);return i})({1:[function(t,e,r){"use strict";var n=t("./utils"),i=t("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(t){for(var e,r,i,a,s,l,f,u=[],h=0,c=t.length,d=c,p="string"!==n.getTypeOf(t);h<t.length;)d=c-h,i=p?(e=t[h++],r=h<c?t[h++]:0,h<c?t[h++]:0):(e=t.charCodeAt(h++),r=h<c?t.charCodeAt(h++):0,h<c?t.charCodeAt(h++):0),a=e>>2,s=(3&e)<<4|r>>4,l=1<d?(15&r)<<2|i>>6:64,f=2<d?63&i:64,u.push(o.charAt(a)+o.charAt(s)+o.charAt(l)+o.charAt(f));return u.join("")},r.decode=function(t){var e,r,n,a,s,l,f=0,u=0,h="data:";if(t.substr(0,h.length)===h)throw Error("Invalid base64 input, it looks like a data url.");var c,d=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===o.charAt(64)&&d--,t.charAt(t.length-2)===o.charAt(64)&&d--,d%1!=0)throw Error("Invalid base64 input, bad content length.");for(c=i.uint8array?new Uint8Array(0|d):Array(0|d);f<t.length;)e=o.indexOf(t.charAt(f++))<<2|(a=o.indexOf(t.charAt(f++)))>>4,r=(15&a)<<4|(s=o.indexOf(t.charAt(f++)))>>2,n=(3&s)<<6|(l=o.indexOf(t.charAt(f++))),c[u++]=e,64!==s&&(c[u++]=r),64!==l&&(c[u++]=n);return c}},{"./support":30,"./utils":32}],2:[function(t,e,r){"use strict";var n=t("./external"),i=t("./stream/DataWorker"),o=t("./stream/Crc32Probe"),a=t("./stream/DataLengthProbe");function s(t,e,r,n,i){this.compressedSize=t,this.uncompressedSize=e,this.crc32=r,this.compression=n,this.compressedContent=i}s.prototype={getContentWorker:function(){var t=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),e=this;return t.on("end",function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),t},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(t,e,r){return t.pipe(new o).pipe(new a("uncompressedSize")).pipe(e.compressWorker(r)).pipe(new a("compressedSize")).withStreamInfo("compression",e)},e.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,r){"use strict";var n=t("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,r){"use strict";var n=t("./utils"),i=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?0xedb88320^t>>>1:t>>>1;e[r]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==n.getTypeOf(t)?function(t,e,r){var n=0+r;t^=-1;for(var o=0;o<n;o++)t=t>>>8^i[255&(t^e[o])];return -1^t}(0|e,t,t.length):function(t,e,r){var n=0+r;t^=-1;for(var o=0;o<n;o++)t=t>>>8^i[255&(t^e.charCodeAt(o))];return -1^t}(0|e,t,t.length):0}},{"./utils":32}],5:[function(t,e,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(t,e,r){"use strict";e.exports={Promise:"u">typeof Promise?Promise:t("lie")}},{lie:37}],7:[function(t,e,r){"use strict";var n="u">typeof Uint8Array&&"u">typeof Uint16Array&&"u">typeof Uint32Array,i=t("pako"),o=t("./utils"),a=t("./stream/GenericWorker"),s=n?"uint8array":"array";function l(t,e){a.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}r.magic="\b\0",o.inherits(l,a),l.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,t.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},r.compressWorker=function(t){return new l("Deflate",t)},r.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,r){"use strict";function n(t,e){var r,n="";for(r=0;r<e;r++)n+=String.fromCharCode(255&t),t>>>=8;return n}function i(t,e,r,i,a,u){var h,c,d,p,g=t.file,m=t.compression,b=u!==s.utf8encode,y=o.transformTo("string",u(g.name)),_=o.transformTo("string",s.utf8encode(g.name)),v=g.comment,w=o.transformTo("string",u(v)),x=o.transformTo("string",s.utf8encode(v)),k=_.length!==g.name.length,S=x.length!==v.length,O="",A="",E="",C=g.dir,T=g.date,M={crc32:0,compressedSize:0,uncompressedSize:0};e&&!r||(M.crc32=t.crc32,M.compressedSize=t.compressedSize,M.uncompressedSize=t.uncompressedSize);var I=0;e&&(I|=8),!b&&(k||S)&&(I|=2048);var B=0,z=0;C&&(B|=16),"UNIX"===a?(z=798,B|=(h=g.unixPermissions,c=h,h||(c=C?16893:33204),(65535&c)<<16)):(z=20,B|=63&(g.dosPermissions||0)),d=(T.getUTCHours()<<6|T.getUTCMinutes())<<5|T.getUTCSeconds()/2,p=(T.getUTCFullYear()-1980<<4|T.getUTCMonth()+1)<<5|T.getUTCDate(),k&&(A=n(1,1)+n(l(y),4)+_,O+="up"+n(A.length,2)+A),S&&(E=n(1,1)+n(l(w),4)+x,O+="uc"+n(E.length,2)+E);var R="";return R+="\n\0",R+=n(I,2),R+=m.magic,R+=n(d,2),R+=n(p,2),R+=n(M.crc32,4),R+=n(M.compressedSize,4),R+=n(M.uncompressedSize,4),R+=n(y.length,2),R+=n(O.length,2),{fileRecord:f.LOCAL_FILE_HEADER+R+y+O,dirRecord:f.CENTRAL_FILE_HEADER+n(z,2)+R+n(w.length,2)+"\0\0\0\0"+n(B,4)+n(i,4)+y+O+w}}var o=t("../utils"),a=t("../stream/GenericWorker"),s=t("../utf8"),l=t("../crc32"),f=t("../signature");function u(t,e,r,n){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(u,a),u.prototype.push=function(t){var e=t.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,a.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:r?(e+100*(r-n-1))/r:100}}))},u.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var r=i(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,r=i(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),e)this.push({data:f.DATA_DESCRIPTOR+n(t.crc32,4)+n(t.compressedSize,4)+n(t.uncompressedSize,4),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var t,e,r,i,a=this.bytesWritten,s=0;s<this.dirRecords.length;s++)this.push({data:this.dirRecords[s],meta:{percent:100}});var l=this.bytesWritten-a,u=(t=this.dirRecords.length,e=this.zipComment,r=this.encodeFileName,i=o.transformTo("string",r(e)),f.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(t,2)+n(t,2)+n(l,4)+n(a,4)+n(i.length,2)+i);this.push({data:u,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",function(t){e.processChunk(t)}),t.on("end",function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()}),t.on("error",function(t){e.error(t)}),this},u.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(t){var e=this._sources;if(!a.prototype.error.call(this,t))return!1;for(var r=0;r<e.length;r++)try{e[r].error(t)}catch(t){}return!0},u.prototype.lock=function(){a.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()},e.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,e,r){"use strict";var n=t("../compressions"),i=t("./ZipFileWorker");r.generateWorker=function(t,e,r){var o=new i(e.streamFiles,r,e.platform,e.encodeFileName),a=0;try{t.forEach(function(t,r){a++;var i=function(t,e){var r=t||e,i=n[r];if(!i)throw Error(r+" is not a valid compression method !");return i}(r.options.compression,e.compression),s=r.options.compressionOptions||e.compressionOptions||{},l=r.dir,f=r.date;r._compressWorker(i,s).withStreamInfo("file",{name:t,dir:l,date:f,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(o)}),o.entriesCount=a}catch(t){o.error(t)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,e,r){"use strict";function n(){if(!(this instanceof n))return new n;if(arguments.length)throw Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new n;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(n.prototype=t("./object")).loadAsync=t("./load"),n.support=t("./support"),n.defaults=t("./defaults"),n.version="3.10.1",n.loadAsync=function(t,e){return(new n).loadAsync(t,e)},n.external=t("./external"),e.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,e,r){"use strict";var n=t("./utils"),i=t("./external"),o=t("./utf8"),a=t("./zipEntries"),s=t("./stream/Crc32Probe"),l=t("./nodejsUtils");e.exports=function(t,e){var r=this;return e=n.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),l.isNode&&l.isStream(t)?i.Promise.reject(Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then(function(t){var r=new a(e);return r.load(t),r}).then(function(t){var r=[i.Promise.resolve(t)],n=t.files;if(e.checkCRC32)for(var o=0;o<n.length;o++)r.push(function(t){return new i.Promise(function(e,r){var n=t.decompressed.getContentWorker().pipe(new s);n.on("error",function(t){r(t)}).on("end",function(){n.streamInfo.crc32!==t.decompressed.crc32?r(Error("Corrupted zip : CRC32 mismatch")):e()}).resume()})}(n[o]));return i.Promise.all(r)}).then(function(t){for(var i=t.shift(),o=i.files,a=0;a<o.length;a++){var s=o[a],l=s.fileNameStr,f=n.resolve(s.fileNameStr);r.file(f,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:e.createFolders}),s.dir||(r.file(f).unsafeOriginalName=l)}return i.zipComment.length&&(r.comment=i.zipComment),r})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,e,r){"use strict";var n=t("../utils"),i=t("../stream/GenericWorker");function o(t,e){i.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}n.inherits(o,i),o.prototype._bindStream=function(t){var e=this;(this._stream=t).pause(),t.on("data",function(t){e.push({data:t,meta:{percent:0}})}).on("error",function(t){e.isPaused?this.generatedError=t:e.error(t)}).on("end",function(){e.isPaused?e._upstreamEnded=!0:e.end()})},o.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,e,r){"use strict";var n=t("readable-stream").Readable;function i(t,e,r){n.call(this,e),this._helper=t;var i=this;t.on("data",function(t,e){i.push(t)||i._helper.pause(),r&&r(e)}).on("error",function(t){i.emit("error",t)}).on("end",function(){i.push(null)})}t("../utils").inherits(i,n),i.prototype._read=function(){this._helper.resume()},e.exports=i},{"../utils":32,"readable-stream":16}],14:[function(t,e,r){"use strict";e.exports={isNode:void 0!==n,newBufferFrom:function(t,e){if(n.from&&n.from!==Uint8Array.from)return n.from(t,e);if("number"==typeof t)throw Error('The "data" argument must not be a number');return new n(t,e)},allocBuffer:function(t){if(n.alloc)return n.alloc(t);var e=new n(t);return e.fill(0),e},isBuffer:function(t){return n.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,e,r){"use strict";function n(t,e,r){var n,i=o.getTypeOf(e),s=o.extend(r||{},l);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(t=g(t)),s.createFolders&&(n=p(t))&&m.call(this,n,!0);var h="string"===i&&!1===s.binary&&!1===s.base64;r&&void 0!==r.binary||(s.binary=!h),(e instanceof f&&0===e.uncompressedSize||s.dir||!e||0===e.length)&&(s.base64=!1,s.binary=!0,e="",s.compression="STORE",i="string");var b=null;b=e instanceof f||e instanceof a?e:c.isNode&&c.isStream(e)?new d(t,e):o.prepareContent(t,e,s.binary,s.optimizedBinaryString,s.base64);var y=new u(t,b,s);this.files[t]=y}var i=t("./utf8"),o=t("./utils"),a=t("./stream/GenericWorker"),s=t("./stream/StreamHelper"),l=t("./defaults"),f=t("./compressedObject"),u=t("./zipObject"),h=t("./generate"),c=t("./nodejsUtils"),d=t("./nodejs/NodejsStreamInputAdapter"),p=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return 0<e?t.substring(0,e):""},g=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},m=function(t,e){return e=void 0!==e?e:l.createFolders,t=g(t),this.files[t]||n.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function b(t){return"[object RegExp]"===Object.prototype.toString.call(t)}e.exports={load:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,r,n;for(e in this.files)n=this.files[e],(r=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(r,n)},filter:function(t){var e=[];return this.forEach(function(r,n){t(r,n)&&e.push(n)}),e},file:function(t,e,r){if(1!=arguments.length)return t=this.root+t,n.call(this,t,e,r),this;if(b(t)){var i=t;return this.filter(function(t,e){return!e.dir&&i.test(t)})}var o=this.files[this.root+t];return o&&!o.dir?o:null},folder:function(t){if(!t)return this;if(b(t))return this.filter(function(e,r){return r.dir&&t.test(e)});var e=this.root+t,r=m.call(this,e),n=this.clone();return n.root=r.name,n},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var r=this.filter(function(e,r){return r.name.slice(0,t.length)===t}),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,r={};try{if((r=o.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw Error("No output type specified.");o.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");var n=r.comment||this.comment||"";e=h.generateWorker(this,r,n)}catch(t){(e=new a("error")).error(t)}return new s(e,r.type||"string",r.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}}},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,e,r){"use strict";e.exports=t("stream")},{stream:void 0}],17:[function(t,e,r){"use strict";var n=t("./DataReader");function i(t){n.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}t("../utils").inherits(i,n),i.prototype.byteAt=function(t){return this.data[this.zero+t]},i.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),r=t.charCodeAt(1),n=t.charCodeAt(2),i=t.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===e&&this.data[o+1]===r&&this.data[o+2]===n&&this.data[o+3]===i)return o-this.zero;return -1},i.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),r=t.charCodeAt(1),n=t.charCodeAt(2),i=t.charCodeAt(3),o=this.readData(4);return e===o[0]&&r===o[1]&&n===o[2]&&i===o[3]},i.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./DataReader":18}],18:[function(t,e,r){"use strict";var n=t("../utils");function i(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var e,r=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)r=(r<<8)+this.byteAt(e);return this.index+=t,r},readString:function(t){return n.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=i},{"../utils":32}],19:[function(t,e,r){"use strict";var n=t("./Uint8ArrayReader");function i(t){n.call(this,t)}t("../utils").inherits(i,n),i.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,r){"use strict";var n=t("./DataReader");function i(t){n.call(this,t)}t("../utils").inherits(i,n),i.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},i.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},i.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},i.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./DataReader":18}],21:[function(t,e,r){"use strict";var n=t("./ArrayReader");function i(t){n.call(this,t)}t("../utils").inherits(i,n),i.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,r){"use strict";var n=t("../utils"),i=t("../support"),o=t("./ArrayReader"),a=t("./StringReader"),s=t("./NodeBufferReader"),l=t("./Uint8ArrayReader");e.exports=function(t){var e=n.getTypeOf(t);return n.checkSupport(e),"string"!==e||i.uint8array?"nodebuffer"===e?new s(t):i.uint8array?new l(n.transformTo("uint8array",t)):new o(n.transformTo("array",t)):new a(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,r){"use strict";r.LOCAL_FILE_HEADER="PK\x03\x04",r.CENTRAL_FILE_HEADER="PK\x01\x02",r.CENTRAL_DIRECTORY_END="PK\x05\x06",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",r.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",r.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(t,e,r){"use strict";var n=t("./GenericWorker"),i=t("../utils");function o(t){n.call(this,"ConvertWorker to "+t),this.destType=t}i.inherits(o,n),o.prototype.processChunk=function(t){this.push({data:i.transformTo(this.destType,t.data),meta:t.meta})},e.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,r){"use strict";var n=t("./GenericWorker"),i=t("../crc32");function o(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(o,n),o.prototype.processChunk=function(t){this.streamInfo.crc32=i(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,r){"use strict";var n=t("../utils"),i=t("./GenericWorker");function o(t){i.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}n.inherits(o,i),o.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}i.prototype.processChunk.call(this,t)},e.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,r){"use strict";var n=t("../utils"),i=t("./GenericWorker");function o(t){i.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then(function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=n.getTypeOf(t),e.isPaused||e._tickAndRepeat()},function(t){e.error(t)})}n.inherits(o,i),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,r){"use strict";function n(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var r=0;r<this._listeners[t].length;r++)this._listeners[t][r].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",function(t){e.processChunk(t)}),t.on("end",function(){e.end()}),t.on("error",function(t){e.error(t)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},e.exports=n},{}],29:[function(t,e,r){"use strict";var i=t("../utils"),o=t("./ConvertWorker"),a=t("./GenericWorker"),s=t("../base64"),l=t("../support"),f=t("../external"),u=null;if(l.nodestream)try{u=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function h(t,e,r){var n=e;switch(e){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string"}try{this._internalType=n,this._outputType=e,this._mimeType=r,i.checkSupport(n),this._worker=t.pipe(new o(n)),t.lock()}catch(t){this._worker=new a("error"),this._worker.error(t)}}h.prototype={accumulate:function(t){var e;return e=this,new f.Promise(function(r,o){var a=[],l=e._internalType,f=e._outputType,u=e._mimeType;e.on("data",function(e,r){a.push(e),t&&t(r)}).on("error",function(t){a=[],o(t)}).on("end",function(){try{var t=function(t,e,r){switch(t){case"blob":return i.newBlob(i.transformTo("arraybuffer",e),r);case"base64":return s.encode(e);default:return i.transformTo(t,e)}}(f,function(t,e){var r,i=0,o=null,a=0;for(r=0;r<e.length;r++)a+=e[r].length;switch(t){case"string":return e.join("");case"array":return Array.prototype.concat.apply([],e);case"uint8array":for(o=new Uint8Array(a),r=0;r<e.length;r++)o.set(e[r],i),i+=e[r].length;return o;case"nodebuffer":return n.concat(e);default:throw Error("concat : unsupported type '"+t+"'")}}(l,a),u);r(t)}catch(t){o(t)}a=[]}).resume()})},on:function(t,e){var r=this;return"data"===t?this._worker.on(t,function(t){e.call(r,t.data,t.meta)}):this._worker.on(t,function(){i.delay(e,arguments,r)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},t)}},e.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,e,r){"use strict";if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="u">typeof ArrayBuffer&&"u">typeof Uint8Array,r.nodebuffer=void 0!==n,r.uint8array="u">typeof Uint8Array,"u"<typeof ArrayBuffer)r.blob=!1;else{var i=new ArrayBuffer(0);try{r.blob=0===new Blob([i],{type:"application/zip"}).size}catch(t){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(i),r.blob=0===o.getBlob("application/zip").size}catch(t){r.blob=!1}}}try{r.nodestream=!!t("readable-stream").Readable}catch(t){r.nodestream=!1}},{"readable-stream":16}],31:[function(t,e,r){"use strict";for(var n=t("./utils"),i=t("./support"),o=t("./nodejsUtils"),a=t("./stream/GenericWorker"),s=Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function f(){a.call(this,"utf-8 decode"),this.leftOver=null}function u(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,r.utf8encode=function(t){return i.nodebuffer?o.newBufferFrom(t,"utf-8"):function(t){var e,r,n,o,a,s=t.length,l=0;for(o=0;o<s;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(n=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),l+=r<128?1:r<2048?2:r<65536?3:4;for(e=i.uint8array?new Uint8Array(l):Array(l),o=a=0;a<l;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(n=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),r<128?e[a++]=r:(r<2048?e[a++]=192|r>>>6:(r<65536?e[a++]=224|r>>>12:(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63),e[a++]=128|r>>>6&63),e[a++]=128|63&r);return e}(t)},r.utf8decode=function(t){return i.nodebuffer?n.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,r,i,o,a=t.length,l=Array(2*a);for(e=r=0;e<a;)if((i=t[e++])<128)l[r++]=i;else if(4<(o=s[i]))l[r++]=65533,e+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&e<a;)i=i<<6|63&t[e++],o--;1<o?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return l.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),n.applyFromCharCode(l)}(t=n.transformTo(i.uint8array?"uint8array":"array",t))},n.inherits(f,a),f.prototype.processChunk=function(t){var e=n.transformTo(i.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=e;(e=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),e.set(o,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var a=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;0<=r&&128==(192&t[r]);)r--;return r<0||0===r?e:r+s[t[r]]>e?r:e}(e),l=e;a!==e.length&&(i.uint8array?(l=e.subarray(0,a),this.leftOver=e.subarray(a,e.length)):(l=e.slice(0,a),this.leftOver=e.slice(a,e.length))),this.push({data:r.utf8decode(l),meta:t.meta})},f.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=f,n.inherits(u,a),u.prototype.processChunk=function(t){this.push({data:r.utf8encode(t.data),meta:t.meta})},r.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,r){"use strict";var n=t("./support"),i=t("./base64"),o=t("./nodejsUtils"),a=t("./external");function s(t){return t}function l(t,e){for(var r=0;r<t.length;++r)e[r]=255&t.charCodeAt(r);return e}t("setimmediate"),r.newBlob=function(t,e){r.checkSupport("blob");try{return new Blob([t],{type:e})}catch(r){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(t),n.getBlob(e)}catch(t){throw Error("Bug : can't construct the Blob.")}}};var f={stringifyByChunk:function(t,e,r){var n=[],i=0,o=t.length;if(o<=r)return String.fromCharCode.apply(null,t);for(;i<o;)"array"===e||"nodebuffer"===e?n.push(String.fromCharCode.apply(null,t.slice(i,Math.min(i+r,o)))):n.push(String.fromCharCode.apply(null,t.subarray(i,Math.min(i+r,o)))),i+=r;return n.join("")},stringifyByChar:function(t){for(var e="",r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(t){return!1}}()}};function u(t){var e=65536,n=r.getTypeOf(t),i=!0;if("uint8array"===n?i=f.applyCanBeUsed.uint8array:"nodebuffer"===n&&(i=f.applyCanBeUsed.nodebuffer),i)for(;1<e;)try{return f.stringifyByChunk(t,n,e)}catch(t){e=Math.floor(e/2)}return f.stringifyByChar(t)}function h(t,e){for(var r=0;r<t.length;r++)e[r]=t[r];return e}r.applyFromCharCode=u;var c={};c.string={string:s,array:function(t){return l(t,Array(t.length))},arraybuffer:function(t){return c.string.uint8array(t).buffer},uint8array:function(t){return l(t,new Uint8Array(t.length))},nodebuffer:function(t){return l(t,o.allocBuffer(t.length))}},c.array={string:u,array:s,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(t)}},c.arraybuffer={string:function(t){return u(new Uint8Array(t))},array:function(t){return h(new Uint8Array(t),Array(t.byteLength))},arraybuffer:s,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(new Uint8Array(t))}},c.uint8array={string:u,array:function(t){return h(t,Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:s,nodebuffer:function(t){return o.newBufferFrom(t)}},c.nodebuffer={string:u,array:function(t){return h(t,Array(t.length))},arraybuffer:function(t){return c.nodebuffer.uint8array(t).buffer},uint8array:function(t){return h(t,new Uint8Array(t.length))},nodebuffer:s},r.transformTo=function(t,e){return(e=e||"",t)?(r.checkSupport(t),c[r.getTypeOf(e)][t](e)):e},r.resolve=function(t){for(var e=t.split("/"),r=[],n=0;n<e.length;n++){var i=e[n];"."===i||""===i&&0!==n&&n!==e.length-1||(".."===i?r.pop():r.push(i))}return r.join("/")},r.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":n.nodebuffer&&o.isBuffer(t)?"nodebuffer":n.uint8array&&t instanceof Uint8Array?"uint8array":n.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},r.checkSupport=function(t){if(!n[t.toLowerCase()])throw Error(t+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(t){var e,r,n="";for(r=0;r<(t||"").length;r++)n+="\\x"+((e=t.charCodeAt(r))<16?"0":"")+e.toString(16).toUpperCase();return n},r.delay=function(t,e,r){setImmediate(function(){t.apply(r||null,e||[])})},r.inherits=function(t,e){function r(){}r.prototype=e.prototype,t.prototype=new r},r.extend=function(){var t,e,r={};for(t=0;t<arguments.length;t++)for(e in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],e)&&void 0===r[e]&&(r[e]=arguments[t][e]);return r},r.prepareContent=function(t,e,o,s,f){return a.Promise.resolve(e).then(function(t){return n.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"u">typeof FileReader?new a.Promise(function(e,r){var n=new FileReader;n.onload=function(t){e(t.target.result)},n.onerror=function(t){r(t.target.error)},n.readAsArrayBuffer(t)}):t}).then(function(e){var u,h=r.getTypeOf(e);return h?("arraybuffer"===h?e=r.transformTo("uint8array",e):"string"===h&&(f?e=i.decode(e):o&&!0!==s&&(e=l(u=e,n.uint8array?new Uint8Array(u.length):Array(u.length)))),e):a.Promise.reject(Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,e,r){"use strict";var n=t("./reader/readerFor"),i=t("./utils"),o=t("./signature"),a=t("./zipEntry"),s=t("./support");function l(t){this.files=[],this.loadOptions=t}l.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw Error("Corrupted zip or bug: unexpected signature ("+i.pretty(e)+", expected "+i.pretty(t)+")")}},isSignature:function(t,e){var r=this.reader.index;this.reader.setIndex(t);var n=this.reader.readString(4)===e;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=s.uint8array?"uint8array":"array",r=i.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,r,n=this.zip64EndOfCentralSize-44;0<n;)t=this.reader.readInt(2),e=this.reader.readInt(4),r=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(t=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?Error("Corrupted zip: can't find end of central directory"):Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var e=t;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var n=e-r;if(0<n)this.isSignature(e,o.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(t){this.reader=n(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,e,r){"use strict";var n=t("./reader/readerFor"),i=t("./utils"),o=t("./compressedObject"),a=t("./crc32"),s=t("./utf8"),l=t("./compressions"),f=t("./support");function u(t,e){this.options=t,this.loadOptions=e}u.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(t){var e,r;if(t.skip(22),this.fileNameLength=t.readInt(2),r=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(e=function(t){for(var e in l)if(Object.prototype.hasOwnProperty.call(l,e)&&l[e].magic===t)return l[e];return null}(this.compressionMethod)))throw Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var e,r,n,i=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<i;)e=t.readInt(2),r=t.readInt(2),n=t.readData(r),this.extraFields[e]={id:e,length:r,value:n};t.setIndex(i)},handleUTF8:function(){var t=f.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var r=i.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var o=i.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=n(t.value);return 1!==e.readInt(1)||a(this.fileName)!==e.readInt(4)?null:s.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=n(t.value);return 1!==e.readInt(1)||a(this.fileComment)!==e.readInt(4)?null:s.utf8decode(e.readData(t.length-5))}return null}},e.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,e,r){"use strict";function n(t,e,r){this.name=t,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=e,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var i=t("./stream/StreamHelper"),o=t("./stream/DataWorker"),a=t("./utf8"),s=t("./compressedObject"),l=t("./stream/GenericWorker");n.prototype={internalStream:function(t){var e=null,r="string";try{if(!t)throw Error("No output type specified.");var n="string"===(r=t.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),e=this._decompressWorker();var o=!this._dataBinary;o&&!n&&(e=e.pipe(new a.Utf8EncodeWorker)),!o&&n&&(e=e.pipe(new a.Utf8DecodeWorker))}catch(t){(e=new l("error")).error(t)}return new i(e,r,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof s&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(r,t,e)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new o(this._data)}};for(var f=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<f.length;h++)n.prototype[f[h]]=u;e.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,e,n){(function(t){"use strict";var r,n,i=t.MutationObserver||t.WebKitMutationObserver;if(i){var o=0,a=new i(u),s=t.document.createTextNode("");a.observe(s,{characterData:!0}),r=function(){s.data=o=++o%2}}else if(t.setImmediate||void 0===t.MessageChannel)r="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){u(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(u,0)};else{var l=new t.MessageChannel;l.port1.onmessage=u,r=function(){l.port2.postMessage(0)}}var f=[];function u(){var t,e;n=!0;for(var r=f.length;r;){for(e=f,f=[],t=-1;++t<r;)e[t]();r=f.length}n=!1}e.exports=function(t){1!==f.push(t)||n||r()}}).call(this,void 0!==r.g?r.g:"u">typeof self?self:"u">typeof window?window:{})},{}],37:[function(t,e,r){"use strict";var n=t("immediate");function i(){}var o={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function f(t){if("function"!=typeof t)throw TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,t!==i&&d(this,t)}function u(t,e,r){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function h(t,e,r){n(function(){var n;try{n=e(r)}catch(e){return o.reject(t,e)}n===t?o.reject(t,TypeError("Cannot resolve promise with itself")):o.resolve(t,n)})}function c(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function d(t,e){var r=!1;function n(e){r||(r=!0,o.reject(t,e))}function i(e){r||(r=!0,o.resolve(t,e))}var a=p(function(){e(i,n)});"error"===a.status&&n(a.value)}function p(t,e){var r={};try{r.value=t(e),r.status="success"}catch(t){r.status="error",r.value=t}return r}(e.exports=f).prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then(function(r){return e.resolve(t()).then(function(){return r})},function(r){return e.resolve(t()).then(function(){throw r})})},f.prototype.catch=function(t){return this.then(null,t)},f.prototype.then=function(t,e){if("function"!=typeof t&&this.state===s||"function"!=typeof e&&this.state===a)return this;var r=new this.constructor(i);return this.state!==l?h(r,this.state===s?t:e,this.outcome):this.queue.push(new u(r,t,e)),r},u.prototype.callFulfilled=function(t){o.resolve(this.promise,t)},u.prototype.otherCallFulfilled=function(t){h(this.promise,this.onFulfilled,t)},u.prototype.callRejected=function(t){o.reject(this.promise,t)},u.prototype.otherCallRejected=function(t){h(this.promise,this.onRejected,t)},o.resolve=function(t,e){var r=p(c,e);if("error"===r.status)return o.reject(t,r.value);var n=r.value;if(n)d(t,n);else{t.state=s,t.outcome=e;for(var i=-1,a=t.queue.length;++i<a;)t.queue[i].callFulfilled(e)}return t},o.reject=function(t,e){t.state=a,t.outcome=e;for(var r=-1,n=t.queue.length;++r<n;)t.queue[r].callRejected(e);return t},f.resolve=function(t){return t instanceof this?t:o.resolve(new this(i),t)},f.reject=function(t){var e=new this(i);return o.reject(e,t)},f.all=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(TypeError("must be an array"));var r=t.length,n=!1;if(!r)return this.resolve([]);for(var a=Array(r),s=0,l=-1,f=new this(i);++l<r;)!function(t,i){e.resolve(t).then(function(t){a[i]=t,++s!==r||n||(n=!0,o.resolve(f,a))},function(t){n||(n=!0,o.reject(f,t))})}(t[l],l);return f},f.race=function(t){if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(TypeError("must be an array"));var e,r=t.length,n=!1;if(!r)return this.resolve([]);for(var a=-1,s=new this(i);++a<r;)e=t[a],this.resolve(e).then(function(t){n||(n=!0,o.resolve(s,t))},function(t){n||(n=!0,o.reject(s,t))});return s}},{immediate:36}],38:[function(t,e,r){"use strict";var n={};(0,t("./lib/utils/common").assign)(n,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,e,r){"use strict";var n=t("./zlib/deflate"),i=t("./utils/common"),o=t("./utils/strings"),a=t("./zlib/messages"),s=t("./zlib/zstream"),l=Object.prototype.toString;function f(t){if(!(this instanceof f))return new f(t);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e,r=this.options;r.raw&&0<r.windowBits?r.windowBits=-r.windowBits:r.gzip&&0<r.windowBits&&r.windowBits<16&&(r.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var u=n.deflateInit2(this.strm,r.level,r.method,r.windowBits,r.memLevel,r.strategy);if(0!==u)throw Error(a[u]);if(r.header&&n.deflateSetHeader(this.strm,r.header),r.dictionary){if(e="string"==typeof r.dictionary?o.string2buf(r.dictionary):"[object ArrayBuffer]"===l.call(r.dictionary)?new Uint8Array(r.dictionary):r.dictionary,0!==(u=n.deflateSetDictionary(this.strm,e)))throw Error(a[u]);this._dict_set=!0}}function u(t,e){var r=new f(e);if(r.push(t,!0),r.err)throw r.msg||a[r.err];return r.result}f.prototype.push=function(t,e){var r,a,s=this.strm,f=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:4*(!0===e),"string"==typeof t?s.input=o.string2buf(t):"[object ArrayBuffer]"===l.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(f),s.next_out=0,s.avail_out=f),1!==(r=n.deflate(s,a))&&0!==r)return this.onEnd(r),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==r);return 4===a?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==a||(this.onEnd(0),s.avail_out=0,!0)},f.prototype.onData=function(t){this.chunks.push(t)},f.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},r.Deflate=f,r.deflate=u,r.deflateRaw=function(t,e){return(e=e||{}).raw=!0,u(t,e)},r.gzip=function(t,e){return(e=e||{}).gzip=!0,u(t,e)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,e,r){"use strict";var n=t("./zlib/inflate"),i=t("./utils/common"),o=t("./utils/strings"),a=t("./zlib/constants"),s=t("./zlib/messages"),l=t("./zlib/zstream"),f=t("./zlib/gzheader"),u=Object.prototype.toString;function h(t){if(!(this instanceof h))return new h(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(0<=e.windowBits&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,e.windowBits);if(r!==a.Z_OK)throw Error(s[r]);this.header=new f,n.inflateGetHeader(this.strm,this.header)}function c(t,e){var r=new h(e);if(r.push(t,!0),r.err)throw r.msg||s[r.err];return r.result}h.prototype.push=function(t,e){var r,s,l,f,h,c,d=this.strm,p=this.options.chunkSize,g=this.options.dictionary,m=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?d.input=o.binstring2buf(t):"[object ArrayBuffer]"===u.call(t)?d.input=new Uint8Array(t):d.input=t,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new i.Buf8(p),d.next_out=0,d.avail_out=p),(r=n.inflate(d,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&g&&(c="string"==typeof g?o.string2buf(g):"[object ArrayBuffer]"===u.call(g)?new Uint8Array(g):g,r=n.inflateSetDictionary(this.strm,c)),r===a.Z_BUF_ERROR&&!0===m&&(r=a.Z_OK,m=!1),r!==a.Z_STREAM_END&&r!==a.Z_OK)return this.onEnd(r),this.ended=!0,!1;d.next_out&&(0!==d.avail_out&&r!==a.Z_STREAM_END&&(0!==d.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(d.output,d.next_out),f=d.next_out-l,h=o.buf2string(d.output,l),d.next_out=f,d.avail_out=p-f,f&&i.arraySet(d.output,d.output,l,f,0),this.onData(h)):this.onData(i.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(m=!0)}while((0<d.avail_in||0===d.avail_out)&&r!==a.Z_STREAM_END);return r===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),d.avail_out=0,!0)},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},r.Inflate=h,r.inflate=c,r.inflateRaw=function(t,e){return(e=e||{}).raw=!0,c(t,e)},r.ungzip=c},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,e,r){"use strict";var n="u">typeof Uint8Array&&"u">typeof Uint16Array&&"u">typeof Int32Array;r.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if("object"!=typeof r)throw TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n])}}return t},r.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){var e,r,n,i,o,a;for(e=n=0,r=t.length;e<r;e++)n+=t[e].length;for(a=new Uint8Array(n),e=i=0,r=t.length;e<r;e++)o=t[e],a.set(o,i),i+=o.length;return a}},o={arraySet:function(t,e,r,n,i){for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){return[].concat.apply([],t)}};r.setTyped=function(t){t?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,i)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,o))},r.setTyped(n)},{}],42:[function(t,e,r){"use strict";var n=t("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var a=new n.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(t,e){if(e<65537&&(t.subarray&&o||!t.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var r="",a=0;a<e;a++)r+=String.fromCharCode(t[a]);return r}a[254]=a[254]=1,r.string2buf=function(t){var e,r,i,o,a,s=t.length,l=0;for(o=0;o<s;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),l+=r<128?1:r<2048?2:r<65536?3:4;for(e=new n.Buf8(l),o=a=0;a<l;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),r<128?e[a++]=r:(r<2048?e[a++]=192|r>>>6:(r<65536?e[a++]=224|r>>>12:(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63),e[a++]=128|r>>>6&63),e[a++]=128|63&r);return e},r.buf2binstring=function(t){return l(t,t.length)},r.binstring2buf=function(t){for(var e=new n.Buf8(t.length),r=0,i=e.length;r<i;r++)e[r]=t.charCodeAt(r);return e},r.buf2string=function(t,e){var r,n,i,o,s=e||t.length,f=Array(2*s);for(r=n=0;r<s;)if((i=t[r++])<128)f[n++]=i;else if(4<(o=a[i]))f[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&r<s;)i=i<<6|63&t[r++],o--;1<o?f[n++]=65533:i<65536?f[n++]=i:(i-=65536,f[n++]=55296|i>>10&1023,f[n++]=56320|1023&i)}return l(f,n)},r.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;0<=r&&128==(192&t[r]);)r--;return r<0||0===r?e:r+a[t[r]]>e?r:e}},{"./common":41}],43:[function(t,e,r){"use strict";e.exports=function(t,e,r,n){for(var i=65535&t,o=t>>>16&65535,a=0;0!==r;){for(r-=a=2e3<r?2e3:r;o=o+(i=i+e[n++]|0)|0,--a;);i%=65521,o%=65521}return i|o<<16}},{}],44:[function(t,e,r){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,e,r){"use strict";var n=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?0xedb88320^t>>>1:t>>>1;e[r]=t}return e}();e.exports=function(t,e,r,i){var o=i+r;t^=-1;for(var a=i;a<o;a++)t=t>>>8^n[255&(t^e[a])];return -1^t}},{}],46:[function(t,e,r){"use strict";var n,i=t("../utils/common"),o=t("./trees"),a=t("./adler32"),s=t("./crc32"),l=t("./messages");function f(t,e){return t.msg=l[e],e}function u(t){return(t<<1)-9*(4<t)}function h(t){for(var e=t.length;0<=--e;)t[e]=0}function c(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(i.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function d(t,e){o._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,c(t.strm)}function p(t,e){t.pending_buf[t.pending++]=e}function g(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function m(t,e){var r,n,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,f=t.window,u=t.w_mask,h=t.prev,c=t.strstart+258,d=f[o+a-1],p=f[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do if(f[(r=e)+a]===p&&f[r+a-1]===d&&f[r]===f[o]&&f[++r]===f[o+1]){o+=2,r++;do;while(f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&o<c);if(n=258-(c-o),o=c-258,a<n){if(t.match_start=e,s<=(a=n))break;d=f[o+a-1],p=f[o+a]}}while((e=h[e&u])>l&&0!=--i);return a<=t.lookahead?a:t.lookahead}function b(t){var e,r,n,o,l,f,u,h,c,d,p=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-262)){for(i.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=r=t.hash_size;n=t.head[--e],t.head[e]=p<=n?n-p:0,--r;);for(e=r=p;n=t.prev[--e],t.prev[e]=p<=n?n-p:0,--r;);o+=p}if(0===t.strm.avail_in)break;if(f=t.strm,u=t.window,h=t.strstart+t.lookahead,d=void 0,(c=o)<(d=f.avail_in)&&(d=c),r=0===d?0:(f.avail_in-=d,i.arraySet(u,f.input,f.next_in,d,h),1===f.state.wrap?f.adler=a(f.adler,u,d,h):2===f.state.wrap&&(f.adler=s(f.adler,u,d,h)),f.next_in+=d,f.total_in+=d,d),t.lookahead+=r,t.lookahead+t.insert>=3)for(l=t.strstart-t.insert,t.ins_h=t.window[l],t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+3-1])&t.hash_mask,t.prev[l&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=l,l++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)}function y(t,e){for(var r,n;;){if(t.lookahead<262){if(b(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-262&&(t.match_length=m(t,r)),t.match_length>=3)if(n=o._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(d(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(d(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(d(t,!1),0===t.strm.avail_out)?1:2}function _(t,e){for(var r,n,i;;){if(t.lookahead<262){if(b(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-262&&(t.match_length=m(t,r),t.match_length<=5&&(1===t.strategy||3===t.match_length&&4096<t.strstart-t.match_start)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){for(i=t.strstart+t.lookahead-3,n=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(d(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=o._tr_tally(t,0,t.window[t.strstart-1]))&&d(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(d(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(d(t,!1),0===t.strm.avail_out)?1:2}function v(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}function w(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),h(this.dyn_ltree),h(this.dyn_dtree),h(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),h(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),h(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function x(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:113,t.adler=+(2!==e.wrap),e.last_flush=0,o._tr_init(e),0):f(t,-2)}function k(t){var e,r=x(t);return 0===r&&((e=t.state).window_size=2*e.w_size,h(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),r}function S(t,e,r,n,o,a){if(!t)return -2;var s=1;if(-1===e&&(e=6),n<0?(s=0,n=-n):15<n&&(s=2,n-=16),o<1||9<o||8!==r||n<8||15<n||e<0||9<e||a<0||4<a)return f(t,-2);8===n&&(n=9);var l=new w;return(t.state=l).strm=t,l.wrap=s,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=+l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=a,l.method=r,k(t)}n=[new v(0,0,0,0,function(t,e){var r=65535;for(65535>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(b(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,d(t,!1),0===t.strm.avail_out)||t.strstart-t.block_start>=t.w_size-262&&(d(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(d(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(d(t,!1),t.strm.avail_out),1)}),new v(4,4,8,4,y),new v(4,5,16,8,y),new v(4,6,32,32,y),new v(4,4,16,16,_),new v(8,16,32,32,_),new v(8,16,128,128,_),new v(8,32,128,256,_),new v(32,128,258,1024,_),new v(32,258,258,4096,_)],r.deflateInit=function(t,e){return S(t,e,8,15,8,0)},r.deflateInit2=S,r.deflateReset=k,r.deflateResetKeep=x,r.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?-2:(t.state.gzhead=e,0):-2},r.deflate=function(t,e){var r,i,a,l;if(!t||!t.state||5<e||e<0)return t?f(t,-2):-2;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||666===i.status&&4!==e)return f(t,0===t.avail_out?-5:-2);if(i.strm=t,r=i.last_flush,i.last_flush=e,42===i.status)if(2===i.wrap)t.adler=0,p(i,31),p(i,139),p(i,8),i.gzhead?(p(i,+!!i.gzhead.text+2*!!i.gzhead.hcrc+4*!!i.gzhead.extra+8*!!i.gzhead.name+16*!!i.gzhead.comment),p(i,255&i.gzhead.time),p(i,i.gzhead.time>>8&255),p(i,i.gzhead.time>>16&255),p(i,i.gzhead.time>>24&255),p(i,9===i.level?2:4*(2<=i.strategy||i.level<2)),p(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(p(i,255&i.gzhead.extra.length),p(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(p(i,0),p(i,0),p(i,0),p(i,0),p(i,0),p(i,9===i.level?2:4*(2<=i.strategy||i.level<2)),p(i,3),i.status=113);else{var m=8+(i.w_bits-8<<4)<<8;m|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(m|=32),m+=31-m%31,i.status=113,g(i,m),0!==i.strstart&&(g(i,t.adler>>>16),g(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),c(t),a=i.pending,i.pending!==i.pending_buf_size));)p(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),c(t),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,p(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),c(t),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,p(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&c(t),i.pending+2<=i.pending_buf_size&&(p(i,255&t.adler),p(i,t.adler>>8&255),t.adler=0,i.status=113)):i.status=113),0!==i.pending){if(c(t),0===t.avail_out)return i.last_flush=-1,0}else if(0===t.avail_in&&u(e)<=u(r)&&4!==e)return f(t,-5);if(666===i.status&&0!==t.avail_in)return f(t,-5);if(0!==t.avail_in||0!==i.lookahead||0!==e&&666!==i.status){var y=2===i.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(b(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(d(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(d(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(d(t,!1),0===t.strm.avail_out)?1:2}(i,e):3===i.strategy?function(t,e){for(var r,n,i,a,s=t.window;;){if(t.lookahead<=258){if(b(t),t.lookahead<=258&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&0<t.strstart&&(n=s[i=t.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){a=t.strstart+258;do;while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<a);t.match_length=258-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=o._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(d(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(d(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(d(t,!1),0===t.strm.avail_out)?1:2}(i,e):n[i.level].func(i,e);if(3!==y&&4!==y||(i.status=666),1===y||3===y)return 0===t.avail_out&&(i.last_flush=-1),0;if(2===y&&(1===e?o._tr_align(i):5!==e&&(o._tr_stored_block(i,0,0,!1),3===e&&(h(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),c(t),0===t.avail_out))return i.last_flush=-1,0}return 4!==e?0:i.wrap<=0?1:(2===i.wrap?(p(i,255&t.adler),p(i,t.adler>>8&255),p(i,t.adler>>16&255),p(i,t.adler>>24&255),p(i,255&t.total_in),p(i,t.total_in>>8&255),p(i,t.total_in>>16&255),p(i,t.total_in>>24&255)):(g(i,t.adler>>>16),g(i,65535&t.adler)),c(t),0<i.wrap&&(i.wrap=-i.wrap),+(0===i.pending))},r.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&113!==e&&666!==e?f(t,-2):(t.state=null,113===e?f(t,-3):0):-2},r.deflateSetDictionary=function(t,e){var r,n,o,s,l,f,u,c,d=e.length;if(!t||!t.state||2===(s=(r=t.state).wrap)||1===s&&42!==r.status||r.lookahead)return -2;for(1===s&&(t.adler=a(t.adler,e,d,0)),r.wrap=0,d>=r.w_size&&(0===s&&(h(r.head),r.strstart=0,r.block_start=0,r.insert=0),c=new i.Buf8(r.w_size),i.arraySet(c,e,d-r.w_size,r.w_size,0),e=c,d=r.w_size),l=t.avail_in,f=t.next_in,u=t.input,t.avail_in=d,t.next_in=0,t.input=e,b(r);r.lookahead>=3;){for(n=r.strstart,o=r.lookahead-2;r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--o;);r.strstart=n,r.lookahead=2,b(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,t.next_in=f,t.input=u,t.avail_in=l,r.wrap=s,0},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,e,r){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,e,r){"use strict";e.exports=function(t,e){var r,n,i,o,a,s,l,f,u,h,c,d,p,g,m,b,y,_,v,w,x,k,S,O,A;r=t.state,n=t.next_in,O=t.input,i=n+(t.avail_in-5),o=t.next_out,A=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),l=r.dmax,f=r.wsize,u=r.whave,h=r.wnext,c=r.window,d=r.hold,p=r.bits,g=r.lencode,m=r.distcode,b=(1<<r.lenbits)-1,y=(1<<r.distbits)-1;t:do for(p<15&&(d+=O[n++]<<p,p+=8,d+=O[n++]<<p,p+=8),_=g[d&b];;){if(d>>>=v=_>>>24,p-=v,0==(v=_>>>16&255))A[o++]=65535&_;else{if(!(16&v)){if(0==(64&v)){_=g[(65535&_)+(d&(1<<v)-1)];continue}if(32&v){r.mode=12;break t}t.msg="invalid literal/length code",r.mode=30;break t}for(w=65535&_,(v&=15)&&(p<v&&(d+=O[n++]<<p,p+=8),w+=d&(1<<v)-1,d>>>=v,p-=v),p<15&&(d+=O[n++]<<p,p+=8,d+=O[n++]<<p,p+=8),_=m[d&y];;){if(d>>>=v=_>>>24,p-=v,!(16&(v=_>>>16&255))){if(0==(64&v)){_=m[(65535&_)+(d&(1<<v)-1)];continue}t.msg="invalid distance code",r.mode=30;break t}if(x=65535&_,p<(v&=15)&&(d+=O[n++]<<p,(p+=8)<v&&(d+=O[n++]<<p,p+=8)),l<(x+=d&(1<<v)-1)){t.msg="invalid distance too far back",r.mode=30;break t}if(d>>>=v,p-=v,(v=o-a)<x){if(u<(v=x-v)&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(S=c,(k=0)===h){if(k+=f-v,v<w){for(w-=v;A[o++]=c[k++],--v;);k=o-x,S=A}}else if(h<v){if(k+=f+h-v,(v-=h)<w){for(w-=v;A[o++]=c[k++],--v;);if(k=0,h<w){for(w-=v=h;A[o++]=c[k++],--v;);k=o-x,S=A}}}else if(k+=h-v,v<w){for(w-=v;A[o++]=c[k++],--v;);k=o-x,S=A}for(;2<w;)A[o++]=S[k++],A[o++]=S[k++],A[o++]=S[k++],w-=3;w&&(A[o++]=S[k++],1<w&&(A[o++]=S[k++]))}else{for(k=o-x;A[o++]=A[k++],A[o++]=A[k++],A[o++]=A[k++],2<(w-=3););w&&(A[o++]=A[k++],1<w&&(A[o++]=A[k++]))}break}}break}while(n<i&&o<s);n-=w=p>>3,d&=(1<<(p-=w<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=o<s?s-o+257:257-(o-s),r.hold=d,r.bits=p}},{}],49:[function(t,e,r){"use strict";var n=t("../utils/common"),i=t("./adler32"),o=t("./crc32"),a=t("./inffast"),s=t("./inftrees");function l(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function f(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function u(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(852),e.distcode=e.distdyn=new n.Buf32(592),e.sane=1,e.back=-1,0):-2}function h(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,u(t)):-2}function c(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15<e)?-2:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,h(t))):-2}function d(t,e){var r;return t?((t.state=new f).window=null,0!==(r=c(t,e))&&(t.state=null),r):-2}var p,g,m=!0;function b(t,e,r,i){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new n.Buf8(a.wsize)),i>=a.wsize?(n.arraySet(a.window,e,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(i<(o=a.wsize-a.wnext)&&(o=i),n.arraySet(a.window,e,r-i,o,a.wnext),(i-=o)?(n.arraySet(a.window,e,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}r.inflateReset=h,r.inflateReset2=c,r.inflateResetKeep=u,r.inflateInit=function(t){return d(t,15)},r.inflateInit2=d,r.inflate=function(t,e){var r,f,u,h,c,d,y,_,v,w,x,k,S,O,A,E,C,T,M,I,B,z,R,P,F=0,D=new n.Buf8(4),j=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return -2;12===(r=t.state).mode&&(r.mode=13),c=t.next_out,u=t.output,y=t.avail_out,h=t.next_in,f=t.input,d=t.avail_in,_=r.hold,v=r.bits,w=d,x=y,z=0;t:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;v<16;){if(0===d)break t;d--,_+=f[h++]<<v,v+=8}if(2&r.wrap&&35615===_){D[r.check=0]=255&_,D[1]=_>>>8&255,r.check=o(r.check,D,2,0),v=_=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&_)<<8)+(_>>8))%31){t.msg="incorrect header check",r.mode=30;break}if(8!=(15&_)){t.msg="unknown compression method",r.mode=30;break}if(v-=4,B=8+(15&(_>>>=4)),0===r.wbits)r.wbits=B;else if(B>r.wbits){t.msg="invalid window size",r.mode=30;break}r.dmax=1<<B,t.adler=r.check=1,r.mode=512&_?10:12,v=_=0;break;case 2:for(;v<16;){if(0===d)break t;d--,_+=f[h++]<<v,v+=8}if(r.flags=_,8!=(255&r.flags)){t.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=_>>8&1),512&r.flags&&(D[0]=255&_,D[1]=_>>>8&255,r.check=o(r.check,D,2,0)),v=_=0,r.mode=3;case 3:for(;v<32;){if(0===d)break t;d--,_+=f[h++]<<v,v+=8}r.head&&(r.head.time=_),512&r.flags&&(D[0]=255&_,D[1]=_>>>8&255,D[2]=_>>>16&255,D[3]=_>>>24&255,r.check=o(r.check,D,4,0)),v=_=0,r.mode=4;case 4:for(;v<16;){if(0===d)break t;d--,_+=f[h++]<<v,v+=8}r.head&&(r.head.xflags=255&_,r.head.os=_>>8),512&r.flags&&(D[0]=255&_,D[1]=_>>>8&255,r.check=o(r.check,D,2,0)),v=_=0,r.mode=5;case 5:if(1024&r.flags){for(;v<16;){if(0===d)break t;d--,_+=f[h++]<<v,v+=8}r.length=_,r.head&&(r.head.extra_len=_),512&r.flags&&(D[0]=255&_,D[1]=_>>>8&255,r.check=o(r.check,D,2,0)),v=_=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(d<(k=r.length)&&(k=d),k&&(r.head&&(B=r.head.extra_len-r.length,r.head.extra||(r.head.extra=Array(r.head.extra_len)),n.arraySet(r.head.extra,f,h,k,B)),512&r.flags&&(r.check=o(r.check,f,k,h)),d-=k,h+=k,r.length-=k),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===d)break t;for(k=0;B=f[h+k++],r.head&&B&&r.length<65536&&(r.head.name+=String.fromCharCode(B)),B&&k<d;);if(512&r.flags&&(r.check=o(r.check,f,k,h)),d-=k,h+=k,B)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===d)break t;for(k=0;B=f[h+k++],r.head&&B&&r.length<65536&&(r.head.comment+=String.fromCharCode(B)),B&&k<d;);if(512&r.flags&&(r.check=o(r.check,f,k,h)),d-=k,h+=k,B)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;v<16;){if(0===d)break t;d--,_+=f[h++]<<v,v+=8}if(_!==(65535&r.check)){t.msg="header crc mismatch",r.mode=30;break}v=_=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;v<32;){if(0===d)break t;d--,_+=f[h++]<<v,v+=8}t.adler=r.check=l(_),v=_=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=c,t.avail_out=y,t.next_in=h,t.avail_in=d,r.hold=_,r.bits=v,2;t.adler=r.check=1,r.mode=12;case 12:if(5===e||6===e)break t;case 13:if(r.last){_>>>=7&v,v-=7&v,r.mode=27;break}for(;v<3;){if(0===d)break t;d--,_+=f[h++]<<v,v+=8}switch(r.last=1&_,v-=1,3&(_>>>=1)){case 0:r.mode=14;break;case 1:if(function(t){if(m){var e;for(p=new n.Buf32(512),g=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(1,t.lens,0,288,p,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(2,t.lens,0,32,g,0,t.work,{bits:5}),m=!1}t.lencode=p,t.lenbits=9,t.distcode=g,t.distbits=5}(r),r.mode=20,6!==e)break;_>>>=2,v-=2;break t;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=30}_>>>=2,v-=2;break;case 14:for(_>>>=7&v,v-=7&v;v<32;){if(0===d)break t;d--,_+=f[h++]<<v,v+=8}if((65535&_)!=(_>>>16^65535)){t.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&_,v=_=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(k=r.length){if(d<k&&(k=d),y<k&&(k=y),0===k)break t;n.arraySet(u,f,h,k,c),d-=k,h+=k,y-=k,c+=k,r.length-=k;break}r.mode=12;break;case 17:for(;v<14;){if(0===d)break t;d--,_+=f[h++]<<v,v+=8}if(r.nlen=257+(31&_),v-=5,r.ndist=1+(31&(_>>>=5)),v-=5,r.ncode=4+(15&(_>>>=5)),_>>>=4,v-=4,286<r.nlen||30<r.ndist){t.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;v<3;){if(0===d)break t;d--,_+=f[h++]<<v,v+=8}r.lens[j[r.have++]]=7&_,_>>>=3,v-=3}for(;r.have<19;)r.lens[j[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,R={bits:r.lenbits},z=s(0,r.lens,0,19,r.lencode,0,r.work,R),r.lenbits=R.bits,z){t.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;E=(F=r.lencode[_&(1<<r.lenbits)-1])>>>16&255,C=65535&F,!((A=F>>>24)<=v);){if(0===d)break t;d--,_+=f[h++]<<v,v+=8}if(C<16)_>>>=A,v-=A,r.lens[r.have++]=C;else{if(16===C){for(P=A+2;v<P;){if(0===d)break t;d--,_+=f[h++]<<v,v+=8}if(_>>>=A,v-=A,0===r.have){t.msg="invalid bit length repeat",r.mode=30;break}B=r.lens[r.have-1],k=3+(3&_),_>>>=2,v-=2}else if(17===C){for(P=A+3;v<P;){if(0===d)break t;d--,_+=f[h++]<<v,v+=8}v-=A,B=0,k=3+(7&(_>>>=A)),_>>>=3,v-=3}else{for(P=A+7;v<P;){if(0===d)break t;d--,_+=f[h++]<<v,v+=8}v-=A,B=0,k=11+(127&(_>>>=A)),_>>>=7,v-=7}if(r.have+k>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=30;break}for(;k--;)r.lens[r.have++]=B}}if(30===r.mode)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,R={bits:r.lenbits},z=s(1,r.lens,0,r.nlen,r.lencode,0,r.work,R),r.lenbits=R.bits,z){t.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,R={bits:r.distbits},z=s(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,R),r.distbits=R.bits,z){t.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(6<=d&&258<=y){t.next_out=c,t.avail_out=y,t.next_in=h,t.avail_in=d,r.hold=_,r.bits=v,a(t,x),c=t.next_out,u=t.output,y=t.avail_out,h=t.next_in,f=t.input,d=t.avail_in,_=r.hold,v=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;E=(F=r.lencode[_&(1<<r.lenbits)-1])>>>16&255,C=65535&F,!((A=F>>>24)<=v);){if(0===d)break t;d--,_+=f[h++]<<v,v+=8}if(E&&0==(240&E)){for(T=A,M=E,I=C;E=(F=r.lencode[I+((_&(1<<T+M)-1)>>T)])>>>16&255,C=65535&F,!(T+(A=F>>>24)<=v);){if(0===d)break t;d--,_+=f[h++]<<v,v+=8}_>>>=T,v-=T,r.back+=T}if(_>>>=A,v-=A,r.back+=A,r.length=C,0===E){r.mode=26;break}if(32&E){r.back=-1,r.mode=12;break}if(64&E){t.msg="invalid literal/length code",r.mode=30;break}r.extra=15&E,r.mode=22;case 22:if(r.extra){for(P=r.extra;v<P;){if(0===d)break t;d--,_+=f[h++]<<v,v+=8}r.length+=_&(1<<r.extra)-1,_>>>=r.extra,v-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;E=(F=r.distcode[_&(1<<r.distbits)-1])>>>16&255,C=65535&F,!((A=F>>>24)<=v);){if(0===d)break t;d--,_+=f[h++]<<v,v+=8}if(0==(240&E)){for(T=A,M=E,I=C;E=(F=r.distcode[I+((_&(1<<T+M)-1)>>T)])>>>16&255,C=65535&F,!(T+(A=F>>>24)<=v);){if(0===d)break t;d--,_+=f[h++]<<v,v+=8}_>>>=T,v-=T,r.back+=T}if(_>>>=A,v-=A,r.back+=A,64&E){t.msg="invalid distance code",r.mode=30;break}r.offset=C,r.extra=15&E,r.mode=24;case 24:if(r.extra){for(P=r.extra;v<P;){if(0===d)break t;d--,_+=f[h++]<<v,v+=8}r.offset+=_&(1<<r.extra)-1,_>>>=r.extra,v-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===y)break t;if(k=x-y,r.offset>k){if((k=r.offset-k)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=30;break}S=k>r.wnext?(k-=r.wnext,r.wsize-k):r.wnext-k,k>r.length&&(k=r.length),O=r.window}else O=u,S=c-r.offset,k=r.length;for(y<k&&(k=y),y-=k,r.length-=k;u[c++]=O[S++],--k;);0===r.length&&(r.mode=21);break;case 26:if(0===y)break t;u[c++]=r.length,y--,r.mode=21;break;case 27:if(r.wrap){for(;v<32;){if(0===d)break t;d--,_|=f[h++]<<v,v+=8}if(x-=y,t.total_out+=x,r.total+=x,x&&(t.adler=r.check=r.flags?o(r.check,u,x,c-x):i(r.check,u,x,c-x)),x=y,(r.flags?_:l(_))!==r.check){t.msg="incorrect data check",r.mode=30;break}v=_=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;v<32;){if(0===d)break t;d--,_+=f[h++]<<v,v+=8}if(_!==(0|r.total)){t.msg="incorrect length check",r.mode=30;break}v=_=0}r.mode=29;case 29:z=1;break t;case 30:z=-3;break t;case 31:return -4;default:return -2}return t.next_out=c,t.avail_out=y,t.next_in=h,t.avail_in=d,r.hold=_,r.bits=v,(r.wsize||x!==t.avail_out&&r.mode<30&&(r.mode<27||4!==e))&&b(t,t.output,t.next_out,x-t.avail_out)?(r.mode=31,-4):(w-=t.avail_in,x-=t.avail_out,t.total_in+=w,t.total_out+=x,r.total+=x,r.wrap&&x&&(t.adler=r.check=r.flags?o(r.check,u,x,t.next_out-x):i(r.check,u,x,t.next_out-x)),t.data_type=r.bits+64*!!r.last+128*(12===r.mode)+256*(20===r.mode||15===r.mode),(0==w&&0===x||4===e)&&0===z&&(z=-5),z)},r.inflateEnd=function(t){if(!t||!t.state)return -2;var e=t.state;return e.window&&(e.window=null),t.state=null,0},r.inflateGetHeader=function(t,e){var r;return t&&t.state?0==(2&(r=t.state).wrap)?-2:((r.head=e).done=!1,0):-2},r.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?-2:11===r.mode&&i(1,e,n,0)!==r.check?-3:b(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,0):-2},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,e,r){"use strict";var n=t("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(t,e,r,l,f,u,h,c){var d,p,g,m,b,y,_,v,w,x=c.bits,k=0,S=0,O=0,A=0,E=0,C=0,T=0,M=0,I=0,B=0,z=null,R=0,P=new n.Buf16(16),F=new n.Buf16(16),D=null,j=0;for(k=0;k<=15;k++)P[k]=0;for(S=0;S<l;S++)P[e[r+S]]++;for(E=x,A=15;1<=A&&0===P[A];A--);if(A<E&&(E=A),0===A)return f[u++]=0x1400000,f[u++]=0x1400000,c.bits=1,0;for(O=1;O<A&&0===P[O];O++);for(E<O&&(E=O),k=M=1;k<=15;k++)if(M<<=1,(M-=P[k])<0)return -1;if(0<M&&(0===t||1!==A))return -1;for(F[1]=0,k=1;k<15;k++)F[k+1]=F[k]+P[k];for(S=0;S<l;S++)0!==e[r+S]&&(h[F[e[r+S]]++]=S);if(y=0===t?(z=D=h,19):1===t?(z=i,R-=257,D=o,j-=257,256):(z=a,D=s,-1),k=O,b=u,T=S=B=0,g=-1,m=(I=1<<(C=E))-1,1===t&&852<I||2===t&&592<I)return 1;for(;;){for(_=k-T,w=h[S]<y?(v=0,h[S]):h[S]>y?(v=D[j+h[S]],z[R+h[S]]):(v=96,0),d=1<<k-T,O=p=1<<C;f[b+(B>>T)+(p-=d)]=_<<24|v<<16|w,0!==p;);for(d=1<<k-1;B&d;)d>>=1;if(0!==d?(B&=d-1,B+=d):B=0,S++,0==--P[k]){if(k===A)break;k=e[r+h[S]]}if(E<k&&(B&m)!==g){for(0===T&&(T=E),b+=O,M=1<<(C=k-T);C+T<A&&!((M-=P[C+T])<=0);)C++,M<<=1;if(I+=1<<C,1===t&&852<I||2===t&&592<I)return 1;f[g=B&m]=E<<24|C<<16|b-u}}return 0!==B&&(f[b+B]=k-T<<24|4194304),c.bits=E,0}},{"../utils/common":41}],51:[function(t,e,r){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,e,r){"use strict";var n=t("../utils/common");function i(t){for(var e=t.length;0<=--e;)t[e]=0}var o=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],l=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],f=Array(576);i(f);var u=Array(60);i(u);var h=Array(512);i(h);var c=Array(256);i(c);var d=Array(29);i(d);var p,g,m,b=Array(30);function y(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function _(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function v(t){return t<256?h[t]:h[256+(t>>>7)]}function w(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function x(t,e,r){t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,w(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function k(t,e,r){x(t,r[2*e],r[2*e+1])}function S(t,e){for(var r=0;r|=1&t,t>>>=1,r<<=1,0<--e;);return r>>>1}function O(t,e,r){var n,i,o=Array(16),a=0;for(n=1;n<=15;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=S(o[s]++,s))}}function A(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function E(t){8<t.bi_valid?w(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function C(t,e,r,n){var i=2*e,o=2*r;return t[i]<t[o]||t[i]===t[o]&&n[e]<=n[r]}function T(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&C(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!C(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function M(t,e,r){var n,i,s,l,f=0;if(0!==t.last_lit)for(;n=t.pending_buf[t.d_buf+2*f]<<8|t.pending_buf[t.d_buf+2*f+1],i=t.pending_buf[t.l_buf+f],f++,0===n?k(t,i,e):(k(t,(s=c[i])+256+1,e),0!==(l=o[s])&&x(t,i-=d[s],l),k(t,s=v(--n),r),0!==(l=a[s])&&x(t,n-=b[s],l)),f<t.last_lit;);k(t,256,e)}function I(t,e){var r,n,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,l=e.stat_desc.elems,f=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<l;r++)0!==o[2*r]?(t.heap[++t.heap_len]=f=r,t.depth[r]=0):o[2*r+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=f<2?++f:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=f,r=t.heap_len>>1;1<=r;r--)T(t,o,r);for(i=l;r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],T(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*i]=o[2*r]+o[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=i,t.heap[1]=i++,T(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,o,a,s,l=e.dyn_tree,f=e.max_code,u=e.stat_desc.static_tree,h=e.stat_desc.has_stree,c=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(o=0;o<=15;o++)t.bl_count[o]=0;for(l[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)p<(o=l[2*l[2*(n=t.heap[r])+1]+1]+1)&&(o=p,g++),l[2*n+1]=o,f<n||(t.bl_count[o]++,a=0,d<=n&&(a=c[n-d]),s=l[2*n],t.opt_len+=s*(o+a),h&&(t.static_len+=s*(u[2*n+1]+a)));if(0!==g){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,g-=2}while(0<g);for(o=p;0!==o;o--)for(n=t.bl_count[o];0!==n;)f<(i=t.heap[--r])||(l[2*i+1]!==o&&(t.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),n--)}}(t,e),O(o,f,t.bl_count)}function B(t,e,r){var n,i,o=-1,a=e[1],s=0,l=7,f=4;for(0===a&&(l=138,f=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=e[2*(n+1)+1],++s<l&&i===a||(s<f?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=i,f=(s=0)===a?(l=138,3):i===a?(l=6,3):(l=7,4))}function z(t,e,r){var n,i,o=-1,a=e[1],s=0,l=7,f=4;for(0===a&&(l=138,f=3),n=0;n<=r;n++)if(i=a,a=e[2*(n+1)+1],!(++s<l&&i===a)){if(s<f)for(;k(t,i,t.bl_tree),0!=--s;);else 0!==i?(i!==o&&(k(t,i,t.bl_tree),s--),k(t,16,t.bl_tree),x(t,s-3,2)):s<=10?(k(t,17,t.bl_tree),x(t,s-3,3)):(k(t,18,t.bl_tree),x(t,s-11,7));o=i,f=(s=0)===a?(l=138,3):i===a?(l=6,3):(l=7,4)}}i(b);var R=!1;function P(t,e,r,i){x(t,0+ +!!i,3),E(t),w(t,r),w(t,~r),n.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}r._tr_init=function(t){R||(function(){var t,e,r,n,i,l=Array(16);for(n=r=0;n<28;n++)for(d[n]=r,t=0;t<1<<o[n];t++)c[r++]=n;for(c[r-1]=n,n=i=0;n<16;n++)for(b[n]=i,t=0;t<1<<a[n];t++)h[i++]=n;for(i>>=7;n<30;n++)for(b[n]=i<<7,t=0;t<1<<a[n]-7;t++)h[256+i++]=n;for(e=0;e<=15;e++)l[e]=0;for(t=0;t<=143;)f[2*t+1]=8,t++,l[8]++;for(;t<=255;)f[2*t+1]=9,t++,l[9]++;for(;t<=279;)f[2*t+1]=7,t++,l[7]++;for(;t<=287;)f[2*t+1]=8,t++,l[8]++;for(O(f,287,l),t=0;t<30;t++)u[2*t+1]=5,u[2*t]=S(t,5);p=new y(f,o,257,286,15),g=new y(u,a,0,30,15),m=new y([],s,0,19,7)}(),R=!0),t.l_desc=new _(t.dyn_ltree,p),t.d_desc=new _(t.dyn_dtree,g),t.bl_desc=new _(t.bl_tree,m),t.bi_buf=0,t.bi_valid=0,A(t)},r._tr_stored_block=P,r._tr_flush_block=function(t,e,r,n){var i,o,a=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=0xf3ffc07f;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),I(t,t.l_desc),I(t,t.d_desc),a=function(t){var e;for(B(t,t.dyn_ltree,t.l_desc.max_code),B(t,t.dyn_dtree,t.d_desc.max_code),I(t,t.bl_desc),e=18;3<=e&&0===t.bl_tree[2*l[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==e?P(t,e,r,n):4===t.strategy||o===i?(x(t,2+ +!!n,3),M(t,f,u)):(x(t,4+ +!!n,3),function(t,e,r,n){var i;for(x(t,e-257,5),x(t,r-1,5),x(t,n-4,4),i=0;i<n;i++)x(t,t.bl_tree[2*l[i]+1],3);z(t,t.dyn_ltree,e-1),z(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),M(t,t.dyn_ltree,t.dyn_dtree)),A(t),n&&E(t)},r._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(c[r]+256+1)]++,t.dyn_dtree[2*v(e)]++),t.last_lit===t.lit_bufsize-1},r._tr_align=function(t){x(t,2,3),k(t,256,f),16===t.bi_valid?(w(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{"../utils/common":41}],53:[function(t,e,r){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,n){(function(t){!function(t,e){"use strict";if(!t.setImmediate){var r,n,o,a,s=1,l={},f=!1,u=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,r="[object process]"===({}).toString.call(t.process)?function(t){i.nextTick(function(){d(t)})}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){d(t.data)},function(t){o.port2.postMessage(t)}):u&&"onreadystatechange"in u.createElement("script")?(n=u.documentElement,function(t){var e=u.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,n.removeChild(e),e=null},n.appendChild(e)}):function(t){setTimeout(d,0,t)}:(a="setImmediate$"+Math.random()+"$",t.addEventListener?t.addEventListener("message",p,!1):t.attachEvent("onmessage",p),function(e){t.postMessage(a+e,"*")}),h.setImmediate=function(t){"function"!=typeof t&&(t=Function(""+t));for(var e=Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var i={callback:t,args:e};return l[s]=i,r(s),s++},h.clearImmediate=c}function c(t){delete l[t]}function d(t){if(f)setTimeout(d,0,t);else{var r=l[t];if(r){f=!0;try{var n=r.callback,i=r.args;switch(i.length){case 0:n();break;case 1:n(i[0]);break;case 2:n(i[0],i[1]);break;case 3:n(i[0],i[1],i[2]);break;default:n.apply(e,i)}}finally{c(t),f=!1}}}}function p(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&d(+e.data.slice(a.length))}}("u"<typeof self?void 0===t?this:t:self)}).call(this,void 0!==r.g?r.g:"u">typeof self?self:"u">typeof window?window:{})},{}]},{},[10])(10)},5199:(t,e,r)=>{"use strict";let n;var i=r(2119);let o=(n=0,()=>n++);function a(t){return null==t}function s(t){if(Array.isArray&&Array.isArray(t))return!0;let e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function l(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function f(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function u(t,e){return void 0===t?e:t}let h=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function c(t){if(s(t))return t.map(c);if(l(t)){let e=Object.create(null),r=Object.keys(t),n=r.length,i=0;for(;i<n;++i)e[r[i]]=c(t[r[i]]);return e}return t}function d(t){return -1===["__proto__","prototype","constructor"].indexOf(t)}function p(t,e,r,n){if(!d(t))return;let i=e[t],o=r[t];l(i)&&l(o)?g(i,o,n):e[t]=c(o)}function g(t,e,r){let n,i=s(e)?e:[e],o=i.length;if(!l(t))return t;let a=(r=r||{}).merger||p;for(let e=0;e<o;++e){if(!l(n=i[e]))continue;let o=Object.keys(n);for(let e=0,i=o.length;e<i;++e)a(o[e],t,n,r)}return t}function m(t,e){return g(t,e,{merger:b})}function b(t,e,r){if(!d(t))return;let n=e[t],i=r[t];l(n)&&l(i)?m(n,i):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=c(i))}let y={"":t=>t,x:t=>t.x,y:t=>t.y};function _(t){let e=t.split("."),r=[],n="";for(let t of e)(n+=t).endsWith("\\")?n=n.slice(0,-1)+".":(r.push(n),n="");return r}function v(t,e){let r;return(y[e]||(y[e]=(r=_(e),t=>{for(let e of r){if(""===e)break;t=t&&t[e]}return t})))(t)}function w(t){return t.charAt(0).toUpperCase()+t.slice(1)}let x=t=>"function"==typeof t,k=Math.PI,S=2*k,O=S+k,A=1/0,E=k/180,C=k/2,T=k/4,M=2*k/3,I=Math.log10,B=Math.sign;function z(t,e,r){return Math.abs(t-e)<r}function R(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function P(t,e){return(t-e+O)%S-k}function F(t){return(t%S+S)%S}function D(t,e,r,n){let i=F(t),o=F(e),a=F(r),s=F(o-i),l=F(a-i),f=F(i-o),u=F(i-a);return i===o||i===a||n&&o===a||s>l&&f<u}function j(t,e,r){return Math.max(e,Math.min(r,t))}function L(t,e,r,n=1e-6){return t>=Math.min(e,r)-n&&t<=Math.max(e,r)+n}function N(t,e,r){let n;r=r||(r=>t[r]<e);let i=t.length-1,o=0;for(;i-o>1;)r(n=o+i>>1)?o=n:i=n;return{lo:o,hi:i}}let U=(t,e,r,n)=>N(t,r,n?n=>{let i=t[n][e];return i<r||i===r&&t[n+1][e]===r}:n=>t[n][e]<r),W=["push","pop","shift","splice","unshift"],Z="u"<typeof window?function(t){return t()}:window.requestAnimationFrame,Y=t=>0===t||1===t,H=(t,e,r)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*S/r)),X=(t,e,r)=>Math.pow(2,-10*t)*Math.sin((t-e)*S/r)+1,$={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*C)+1,easeOutSine:t=>Math.sin(t*C),easeInOutSine:t=>-.5*(Math.cos(k*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>Y(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(-Math.pow(2,-10*(2*t-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Y(t)?t:H(t,.075,.3),easeOutElastic:t=>Y(t)?t:X(t,.075,.3),easeInOutElastic:t=>Y(t)?t:t<.5?.5*H(2*t,.1125,.45):.5+.5*X(2*t-1,.1125,.45),easeInBack:t=>t*t*(2.70158*t-1.70158),easeOutBack:t=>(t-=1)*t*(2.70158*t+1.70158)+1,easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-$.easeOutBounce(1-t),easeOutBounce:t=>t<.36363636363636365?7.5625*t*t:t<.7272727272727273?7.5625*(t-=.5454545454545454)*t+.75:t<.9090909090909091?7.5625*(t-=.8181818181818182)*t+.9375:7.5625*(t-=.9545454545454546)*t+.984375,easeInOutBounce:t=>t<.5?.5*$.easeInBounce(2*t):.5*$.easeOutBounce(2*t-1)+.5};function K(t){if(t&&"object"==typeof t){let e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function q(t){return K(t)?t:new i.Color(t).saturate(.5).darken(.1).hexString()}let V=["x","y","borderWidth","radius","tension"],G=["color","borderColor","backgroundColor"],Q=new Map;function J(t,e,r){var n;let i,o;return(i=e+JSON.stringify(n=(n=r)||{}),!(o=Q.get(i))&&(o=new Intl.NumberFormat(e,n),Q.set(i,o)),o).format(t)}let tt={values:t=>s(t)?t:""+t,numeric(t,e,r){let n;if(0===t)return"0";let i=this.chart.options.locale,o=t;if(r.length>1){var a,s;let e,i=Math.max(Math.abs(r[0].value),Math.abs(r[r.length-1].value));(i<1e-4||i>1e15)&&(n="scientific"),a=t,Math.abs(e=(s=r).length>3?s[2].value-s[1].value:s[1].value-s[0].value)>=1&&a!==Math.floor(a)&&(e=a-Math.floor(a)),o=e}let l=I(Math.abs(o)),f=isNaN(l)?1:Math.max(Math.min(-1*Math.floor(l),20),0),u={notation:n,minimumFractionDigits:f,maximumFractionDigits:f};return Object.assign(u,this.options.ticks.format),J(t,i,u)},logarithmic(t,e,r){return 0===t?"0":[1,2,3,5,10,15].includes(r[e].significand||t/Math.pow(10,Math.floor(I(t))))||e>.8*r.length?tt.numeric.call(this,t,e,r):""}};var te={formatters:tt};let tr=Object.create(null),tn=Object.create(null);function ti(t,e){if(!e)return t;let r=e.split(".");for(let e=0,n=r.length;e<n;++e){let n=r[e];t=t[n]||(t[n]=Object.create(null))}return t}function to(t,e,r){return"string"==typeof e?g(ti(t,e),r):g(ti(t,""),e)}class ta{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>q(e.backgroundColor),this.hoverBorderColor=(t,e)=>q(e.borderColor),this.hoverColor=(t,e)=>q(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return to(this,t,e)}get(t){return ti(this,t)}describe(t,e){return to(tn,t,e)}override(t,e){return to(tr,t,e)}route(t,e,r,n){let i=ti(this,t),o=ti(this,r),a="_"+e;Object.defineProperties(i,{[a]:{value:i[e],writable:!0},[e]:{enumerable:!0,get(){let t=this[a],e=o[n];return l(t)?Object.assign({},e,t):u(t,e)},set(t){this[a]=t}}})}apply(t){t.forEach(t=>t(this))}}var ts=new ta({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:G},numbers:{type:"number",properties:V}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:te.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function tl(t){return!t||a(t.size)||a(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function tf(t,e,r,n,i){let o=e[i];return o||(o=e[i]=t.measureText(i).width,r.push(i)),o>n&&(n=o),n}function tu(t,e,r,n,i){let o,a,s,l,f,u,h,c,d=e.pointStyle,p=e.rotation,g=e.radius,m=(p||0)*E;if(d&&"object"==typeof d&&("[object HTMLImageElement]"===(o=d.toString())||"[object HTMLCanvasElement]"===o)){t.save(),t.translate(r,n),t.rotate(m),t.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),t.restore();return}if(!isNaN(g)&&!(g<=0)){switch(t.beginPath(),d){default:i?t.ellipse(r,n,i/2,g,0,0,S):t.arc(r,n,g,0,S),t.closePath();break;case"triangle":u=i?i/2:g,t.moveTo(r+Math.sin(m)*u,n-Math.cos(m)*g),m+=M,t.lineTo(r+Math.sin(m)*u,n-Math.cos(m)*g),m+=M,t.lineTo(r+Math.sin(m)*u,n-Math.cos(m)*g),t.closePath();break;case"rectRounded":f=.516*g,a=Math.cos(m+T)*(l=g-f),h=Math.cos(m+T)*(i?i/2-f:l),s=Math.sin(m+T)*l,c=Math.sin(m+T)*(i?i/2-f:l),t.arc(r-h,n-s,f,m-k,m-C),t.arc(r+c,n-a,f,m-C,m),t.arc(r+h,n+s,f,m,m+C),t.arc(r-c,n+a,f,m+C,m+k),t.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*g,u=i?i/2:l,t.rect(r-u,n-l,2*u,2*l);break}m+=T;case"rectRot":h=Math.cos(m)*(i?i/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,c=Math.sin(m)*(i?i/2:g),t.moveTo(r-h,n-s),t.lineTo(r+c,n-a),t.lineTo(r+h,n+s),t.lineTo(r-c,n+a),t.closePath();break;case"crossRot":m+=T;case"cross":h=Math.cos(m)*(i?i/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,c=Math.sin(m)*(i?i/2:g),t.moveTo(r-h,n-s),t.lineTo(r+h,n+s),t.moveTo(r+c,n-a),t.lineTo(r-c,n+a);break;case"star":h=Math.cos(m)*(i?i/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,c=Math.sin(m)*(i?i/2:g),t.moveTo(r-h,n-s),t.lineTo(r+h,n+s),t.moveTo(r+c,n-a),t.lineTo(r-c,n+a),m+=T,h=Math.cos(m)*(i?i/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,c=Math.sin(m)*(i?i/2:g),t.moveTo(r-h,n-s),t.lineTo(r+h,n+s),t.moveTo(r+c,n-a),t.lineTo(r-c,n+a);break;case"line":a=i?i/2:Math.cos(m)*g,s=Math.sin(m)*g,t.moveTo(r-a,n-s),t.lineTo(r+a,n+s);break;case"dash":t.moveTo(r,n),t.lineTo(r+Math.cos(m)*(i?i/2:g),n+Math.sin(m)*g);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function th(t,e,r){return r=r||.5,!e||t&&t.x>e.left-r&&t.x<e.right+r&&t.y>e.top-r&&t.y<e.bottom+r}let tc=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,td=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function tp(t,e){let r=(""+t).match(tc);if(!r||"normal"===r[1])return 1.2*e;switch(t=+r[2],r[3]){case"px":return t;case"%":t/=100}return e*t}let tg=t=>+t||0;function tm(t,e){let r={},n=l(e),i=n?Object.keys(e):e,o=l(t)?n?r=>u(t[r],t[e[r]]):e=>t[e]:()=>t;for(let t of i)r[t]=tg(o(t));return r}function tb(t){return tm(t,{top:"y",right:"x",bottom:"y",left:"x"})}function ty(t,e){return Object.assign(Object.create(t),e)}function t_(t,e=[""],r,n,i=()=>t[0]){let o=r||t;return void 0===n&&(n=tE("_fallback",t)),new Proxy({[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:n,_getTarget:i,override:r=>t_([r,...t],e,o,n)},{deleteProperty:(e,r)=>(delete e[r],delete e._keys,delete t[0][r],!0),get:(r,n)=>tk(r,n,()=>(function(t,e,r,n){let i;for(let o of e)if(void 0!==(i=tE(tw(o,t),r)))return tx(t,i)?tO(r,n,t,i):i})(n,e,t,r)),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>tC(t).includes(e),ownKeys:t=>tC(t),set(t,e,r){let n=t._storage||(t._storage=i());return t[e]=n[e]=r,delete t._keys,!0}})}function tv(t,e={scriptable:!0,indexable:!0}){let{_scriptable:r=e.scriptable,_indexable:n=e.indexable,_allKeys:i=e.allKeys}=t;return{allKeys:i,scriptable:r,indexable:n,isScriptable:x(r)?r:()=>r,isIndexable:x(n)?n:()=>n}}let tw=(t,e)=>t?t+w(e):e,tx=(t,e)=>l(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function tk(t,e,r){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];let n=r();return t[e]=n,n}let tS=(t,e)=>!0===t?e:"string"==typeof t?v(e,t):void 0;function tO(t,e,r,n){var i;let o=e._rootScopes,a=(i=e._fallback,x(i)?i(r,n):i),f=[...t,...o],u=new Set;u.add(n);let h=tA(u,f,r,a||r,n);return null!==h&&(void 0===a||a===r||null!==(h=tA(u,f,a,h,n)))&&t_(Array.from(u),[""],o,a,()=>{var t,i,o;let a,f;return t=e,i=r,o=n,i in(a=t._getTarget())||(a[i]={}),s(f=a[i])&&l(o)?o:f||{}})}function tA(t,e,r,n,i){for(;r;)r=function(t,e,r,n,i){for(let a of e){let e=tS(r,a);if(e){var o;t.add(e);let a=(o=e._fallback,x(o)?o(r,i):o);if(void 0!==a&&a!==r&&a!==n)return a}else if(!1===e&&void 0!==n&&r!==n)return null}return!1}(t,e,r,n,i);return r}function tE(t,e){for(let r of e){if(!r)continue;let e=r[t];if(void 0!==e)return e}}function tC(t){let e=t._keys;return e||(e=t._keys=function(t){let e=new Set;for(let r of t)for(let t of Object.keys(r).filter(t=>!t.startsWith("_")))e.add(t);return Array.from(e)}(t._scopes)),e}let tT=Number.EPSILON||1e-14,tM=(t,e)=>e<t.length&&!t[e].skip&&t[e],tI=t=>"x"===t?"y":"x";function tB(t,e,r,n){let i=t.skip?e:t,o=r.skip?e:r,a=R(e,i),s=R(o,e),l=a/(a+s),f=s/(a+s);l=isNaN(l)?0:l,f=isNaN(f)?0:f;let u=n*l,h=n*f;return{previous:{x:e.x-u*(o.x-i.x),y:e.y-u*(o.y-i.y)},next:{x:e.x+h*(o.x-i.x),y:e.y+h*(o.y-i.y)}}}function tz(t,e="x"){let r,n,i,o=tI(e),a=t.length,s=Array(a).fill(0),l=Array(a),f=tM(t,0);for(r=0;r<a;++r)if(n=i,i=f,f=tM(t,r+1),i){if(f){let t=f[e]-i[e];s[r]=0!==t?(f[o]-i[o])/t:0}l[r]=n?f?B(s[r-1])!==B(s[r])?0:(s[r-1]+s[r])/2:s[r-1]:s[r]}!function(t,e,r){let n,i,o,a,s,l=t.length,f=tM(t,0);for(let u=0;u<l-1;++u)if(s=f,f=tM(t,u+1),s&&f){if(z(e[u],0,tT)){r[u]=r[u+1]=0;continue}(a=Math.pow(n=r[u]/e[u],2)+Math.pow(i=r[u+1]/e[u],2))<=9||(o=3/Math.sqrt(a),r[u]=n*o*e[u],r[u+1]=i*o*e[u])}}(t,s,l),function(t,e,r="x"){let n,i,o,a=tI(r),s=t.length,l=tM(t,0);for(let f=0;f<s;++f){if(i=o,o=l,l=tM(t,f+1),!o)continue;let s=o[r],u=o[a];i&&(n=(s-i[r])/3,o[`cp1${r}`]=s-n,o[`cp1${a}`]=u-n*e[f]),l&&(n=(l[r]-s)/3,o[`cp2${r}`]=s+n,o[`cp2${a}`]=u+n*e[f])}}(t,l,e)}function tR(t,e,r){return Math.max(Math.min(t,r),e)}function tP(){return"u">typeof window&&"u">typeof document}function tF(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function tD(t,e,r){let n;return"string"==typeof t?(n=parseInt(t,10),-1!==t.indexOf("%")&&(n=n/100*e.parentNode[r])):n=t,n}let tj=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function tL(t,e){return tj(t).getPropertyValue(e)}let tN=["top","right","bottom","left"];function tU(t,e,r){let n={};r=r?"-"+r:"";for(let i=0;i<4;i++){let o=tN[i];n[o]=parseFloat(t[e+"-"+o+r])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}let tW=t=>Math.round(10*t)/10,tZ=function(){let t=!1;try{let e={get passive(){return t=!0,!1}};tP()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function tY(t,e,r,n){return{x:t.x+r*(e.x-t.x),y:t.y+r*(e.y-t.y)}}function tH(t){return"angle"===t?{between:D,compare:P,normalize:F}:{between:L,compare:(t,e)=>t-e,normalize:t=>t}}function tX({start:t,end:e,count:r,loop:n,style:i}){return{start:t%r,end:e%r,loop:n&&(e-t+1)%r==0,style:i}}function t$(t,e,r){let n,i,o;if(!r)return[t];let{property:a,start:s,end:l}=r,f=e.length,{compare:u,between:h,normalize:c}=tH(a),{start:d,end:p,loop:g,style:m}=function(t,e,r){let n,{property:i,start:o,end:a}=r,{between:s,normalize:l}=tH(i),f=e.length,{start:u,end:h,loop:c}=t;if(c){for(u+=f,h+=f,n=0;n<f&&s(l(e[u%f][i]),o,a);++n)u--,h--;u%=f,h%=f}return h<u&&(h+=f),{start:u,end:h,loop:c,style:t.style}}(t,e,r),b=[],y=!1,_=null,v=()=>y||h(s,o,n)&&0!==u(s,o),w=()=>!y||0===u(l,n)||h(l,o,n);for(let t=d,r=d;t<=p;++t)(i=e[t%f]).skip||(n=c(i[a]))!==o&&(y=h(n,s,l),null===_&&v()&&(_=0===u(n,s)?t:r),null!==_&&w()&&(b.push(tX({start:_,end:t,loop:g,count:f,style:m})),_=null),r=t,o=n);return null!==_&&b.push(tX({start:_,end:p,loop:g,count:f,style:m})),b}function tK(t,e,r,n){return n&&n.setContext&&r?function(t,e,r,n){let i=t._chart.getContext(),o=tq(t.options),{_datasetIndex:a,options:{spanGaps:s}}=t,l=r.length,f=[],u=o,h=e[0].start,c=h;function d(t,e,n,i){let o=s?-1:1;if(t!==e){for(t+=l;r[t%l].skip;)t-=o;for(;r[e%l].skip;)e+=o;t%l!=e%l&&(f.push({start:t%l,end:e%l,loop:n,style:i}),u=i,h=e%l)}}for(let t of e){let e,o=r[(h=s?h:t.start)%l];for(c=h+1;c<=t.end;c++){let s=r[c%l];(function(t,e){if(!e)return!1;let r=[],n=function(t,e){return K(e)?(r.includes(e)||r.push(e),r.indexOf(e)):e};return JSON.stringify(t,n)!==JSON.stringify(e,n)})(e=tq(n.setContext(ty(i,{type:"segment",p0:o,p1:s,p0DataIndex:(c-1)%l,p1DataIndex:c%l,datasetIndex:a}))),u)&&d(h,c-1,t.loop,u),o=s,u=e}h<c-1&&d(h,c-1,t.loop,u)}return f}(t,e,r,n):e}function tq(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function tV(t,e,r){return t.options.clip?t[r]:e[r]}e.HALF_PI=C,e.INFINITY=A,e.PI=k,e.PITAU=O,e.QUARTER_PI=T,e.RAD_PER_DEG=E,e.TAU=S,e.TWO_THIRDS_PI=M,e.Ticks=te,e._addGrace=function(t,e,r){let{min:n,max:i}=t,o=h(e,(i-n)/2),a=(t,e)=>r&&0===t?0:t+e;return{min:a(n,-Math.abs(o)),max:a(i,o)}},e._alignPixel=function(t,e,r){let n=t.currentDevicePixelRatio,i=0!==r?Math.max(r/2,.5):0;return Math.round((e-i)*n)/n+i},e._alignStartEnd=(t,e,r)=>"start"===t?e:"end"===t?r:(e+r)/2,e._angleBetween=D,e._angleDiff=P,e._arrayUnique=function(t){let e=new Set(t);return e.size===t.length?t:Array.from(e)},e._attachContext=function t(e,r,n,i){return new Proxy({_cacheable:!1,_proxy:e,_context:r,_subProxy:n,_stack:new Set,_descriptors:tv(e,i),setContext:r=>t(e,r,n,i),override:o=>t(e.override(o),r,n,i)},{deleteProperty:(t,r)=>(delete t[r],delete e[r],!0),get:(e,r,n)=>tk(e,r,()=>(function(e,r,n){let{_proxy:i,_context:o,_subProxy:a,_descriptors:f}=e,u=i[r];return x(u)&&f.isScriptable(r)&&(u=function(t,e,r,n){let{_proxy:i,_context:o,_subProxy:a,_stack:s}=r;if(s.has(t))throw Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t);let l=e(o,a||n);return s.delete(t),tx(t,l)&&(l=tO(i._scopes,i,t,l)),l}(r,u,e,n)),s(u)&&u.length&&(u=function(e,r,n,i){let{_proxy:o,_context:a,_subProxy:s,_descriptors:f}=n;if(void 0!==a.index&&i(e))return r[a.index%r.length];if(l(r[0])){let n=r,i=o._scopes.filter(t=>t!==n);for(let l of(r=[],n)){let n=tO(i,o,e,l);r.push(t(n,a,s&&s[e],f))}}return r}(r,u,e,f.isIndexable)),tx(r,u)&&(u=t(u,o,a&&a[r],f)),u})(e,r,n)),getOwnPropertyDescriptor:(t,r)=>t._descriptors.allKeys?Reflect.has(e,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,r),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,r)=>Reflect.has(e,r),ownKeys:()=>Reflect.ownKeys(e),set:(t,r,n)=>(e[r]=n,delete t[r],!0)})},e._bezierCurveTo=function(t,e,r,n){if(!e)return t.lineTo(r.x,r.y);t.bezierCurveTo(n?e.cp1x:e.cp2x,n?e.cp1y:e.cp2y,n?r.cp2x:r.cp1x,n?r.cp2y:r.cp1y,r.x,r.y)},e._bezierInterpolation=function(t,e,r,n){let i={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},a=tY(t,i,r),s=tY(i,o,r),l=tY(o,e,r),f=tY(a,s,r),u=tY(s,l,r);return tY(f,u,r)},e._boundSegment=t$,e._boundSegments=function(t,e){let r=[],n=t.segments;for(let i=0;i<n.length;i++){let o=t$(n[i],t.points,e);o.length&&r.push(...o)}return r},e._capitalize=w,e._computeSegments=function(t,e){let r=t.points,n=t.options.spanGaps,i=r.length;if(!i)return[];let o=!!t._loop,{start:a,end:s}=function(t,e,r,n){let i=0,o=e-1;if(r&&!n)for(;i<e&&!t[i].skip;)i++;for(;i<e&&t[i].skip;)i++;for(i%=e,r&&(o+=i);o>i&&t[o%e].skip;)o--;return{start:i,end:o%=e}}(r,i,o,n);if(!0===n)return tK(t,[{start:a,end:s,loop:o}],r,e);let l=s<a?s+i:s,f=!!t._fullLoop&&0===a&&s===i-1;return tK(t,function(t,e,r,n){let i,o=t.length,a=[],s=e,l=t[e];for(i=e+1;i<=r;++i){let r=t[i%o];r.skip||r.stop?l.skip||(n=!1,a.push({start:e%o,end:(i-1)%o,loop:n}),e=s=r.stop?i:null):(s=i,l.skip&&(e=i)),l=r}return null!==s&&a.push({start:e%o,end:s%o,loop:n}),a}(r,a,l,f),r,e)},e._createResolver=t_,e._decimalPlaces=function(t){if(!f(t))return;let e=1,r=0;for(;Math.round(t*e)/e!==t;)e*=10,r++;return r},e._deprecated=function(t,e,r,n){void 0!==e&&console.warn(t+': "'+r+'" is deprecated. Please use "'+n+'" instead')},e._descriptors=tv,e._elementsEqual=function(t,e){let r,n,i,o;if(!t||!e||t.length!==e.length)return!1;for(r=0,n=t.length;r<n;++r)if(i=t[r],o=e[r],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0},e._factorize=function(t){let e,r=[],n=Math.sqrt(t);for(e=1;e<n;e++)t%e==0&&(r.push(e),r.push(t/e));return n===(0|n)&&r.push(n),r.sort((t,e)=>t-e).pop(),r},e._filterBetween=function(t,e,r){let n=0,i=t.length;for(;n<i&&t[n]<e;)n++;for(;i>n&&t[i-1]>r;)i--;return n>0||i<t.length?t.slice(n,i):t},e._getParentNode=tF,e._getStartAndCountOfVisiblePoints=function(t,e,r){let n=e.length,i=0,o=n;if(t._sorted){let{iScale:s,vScale:l,_parsed:f}=t,u=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,h=s.axis,{min:c,max:d,minDefined:p,maxDefined:g}=s.getUserBounds();if(p){if(i=Math.min(U(f,h,c).lo,r?n:U(e,h,s.getPixelForValue(c)).lo),u){let t=f.slice(0,i+1).reverse().findIndex(t=>!a(t[l.axis]));i-=Math.max(0,t)}i=j(i,0,n-1)}if(g){let t=Math.max(U(f,s.axis,d,!0).hi+1,r?0:U(e,h,s.getPixelForValue(d),!0).hi+1);if(u){let e=f.slice(t-1).findIndex(t=>!a(t[l.axis]));t+=Math.max(0,e)}o=j(t,i,n)-i}else o=n-i}return{start:i,count:o}},e._int16Range=function(t){return j(t,-32768,32767)},e._isBetween=L,e._isClickEvent=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type},e._isDomSupported=tP,e._isPointInArea=th,e._limitValue=j,e._longestText=function(t,e,r,n){let i,o,a,l,f,u=(n=n||{}).data=n.data||{},h=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(u=n.data={},h=n.garbageCollect=[],n.font=e),t.save(),t.font=e;let c=0,d=r.length;for(i=0;i<d;i++)if(null==(l=r[i])||s(l)){if(s(l))for(o=0,a=l.length;o<a;o++)null==(f=l[o])||s(f)||(c=tf(t,u,h,c,f))}else c=tf(t,u,h,c,l);t.restore();let p=h.length/2;if(p>r.length){for(i=0;i<p;i++)delete u[h[i]];h.splice(0,p)}return c},e._lookup=N,e._lookupByKey=U,e._measureText=tf,e._merger=p,e._mergerIf=b,e._normalizeAngle=F,e._parseObjectDataRadialScale=function(t,e,r,n){let i,o,a,{iScale:s}=t,{key:l="r"}=this._parsing,f=Array(n);for(i=0;i<n;++i)a=e[o=i+r],f[i]={r:s.parse(v(a,l),o)};return f},e._pointInLine=tY,e._readValueToProps=tm,e._rlookupByKey=(t,e,r)=>N(t,r,n=>t[n][e]>=r),e._scaleRangesChanged=function(t){let{xScale:e,yScale:r,_scaleRanges:n}=t,i={xmin:e.min,xmax:e.max,ymin:r.min,ymax:r.max};if(!n)return t._scaleRanges=i,!0;let o=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==r.min||n.ymax!==r.max;return Object.assign(n,i),o},e._setMinAndMaxByKey=function(t,e,r){let n,i,o;for(n=0,i=t.length;n<i;n++)isNaN(o=t[n][r])||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))},e._splitKey=_,e._steppedInterpolation=function(t,e,r,n){return{x:t.x+r*(e.x-t.x),y:"middle"===n?r<.5?t.y:e.y:"after"===n?r<1?t.y:e.y:r>0?e.y:t.y}},e._steppedLineTo=function(t,e,r,n,i){if(!e)return t.lineTo(r.x,r.y);if("middle"===i){let n=(e.x+r.x)/2;t.lineTo(n,e.y),t.lineTo(n,r.y)}else"after"===i!=!!n?t.lineTo(e.x,r.y):t.lineTo(r.x,e.y);t.lineTo(r.x,r.y)},e._textX=(t,e,r,n)=>t===(n?"left":"right")?r:"center"===t?(e+r)/2:e,e._toLeftRightCenter=t=>"start"===t?"left":"end"===t?"right":"center",e._updateBezierControlPoints=function(t,e,r,n,i){let o,a,s,l;if(e.spanGaps&&(t=t.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)tz(t,i);else{let r=n?t[t.length-1]:t[0];for(o=0,a=t.length;o<a;++o)l=tB(r,s=t[o],t[Math.min(o+1,a-!n)%a],e.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,r=s}e.capBezierPoints&&function(t,e){let r,n,i,o,a,s=th(t[0],e);for(r=0,n=t.length;r<n;++r)a=o,o=s,s=r<n-1&&th(t[r+1],e),o&&(i=t[r],a&&(i.cp1x=tR(i.cp1x,e.left,e.right),i.cp1y=tR(i.cp1y,e.top,e.bottom)),s&&(i.cp2x=tR(i.cp2x,e.left,e.right),i.cp2y=tR(i.cp2y,e.top,e.bottom)))}(t,r)},e.addRoundedRectPath=function(t,e){let{x:r,y:n,w:i,h:o,radius:a}=e;t.arc(r+a.topLeft,n+a.topLeft,a.topLeft,1.5*k,k,!0),t.lineTo(r,n+o-a.bottomLeft),t.arc(r+a.bottomLeft,n+o-a.bottomLeft,a.bottomLeft,k,C,!0),t.lineTo(r+i-a.bottomRight,n+o),t.arc(r+i-a.bottomRight,n+o-a.bottomRight,a.bottomRight,C,0,!0),t.lineTo(r+i,n+a.topRight),t.arc(r+i-a.topRight,n+a.topRight,a.topRight,0,-C,!0),t.lineTo(r+a.topLeft,n)},e.almostEquals=z,e.almostWhole=function(t,e){let r=Math.round(t);return r-e<=t&&r+e>=t},e.callback=function(t,e,r){if(t&&"function"==typeof t.call)return t.apply(r,e)},e.clearCanvas=function(t,e){(e||t)&&((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())},e.clipArea=function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},e.clone=c,e.color=function(t){return K(t)?t:new i.Color(t)},e.createContext=ty,e.debounce=function(t,e){let r;return function(...n){return e?(clearTimeout(r),r=setTimeout(t,e,n)):t.apply(this,n),e}},e.defaults=ts,e.defined=t=>void 0!==t,e.descriptors=tn,e.distanceBetweenPoints=R,e.drawPoint=function(t,e,r,n){tu(t,e,r,n,null)},e.drawPointLegend=tu,e.each=function(t,e,r,n){let i,o,a;if(s(t))if(o=t.length,n)for(i=o-1;i>=0;i--)e.call(r,t[i],i);else for(i=0;i<o;i++)e.call(r,t[i],i);else if(l(t))for(i=0,o=(a=Object.keys(t)).length;i<o;i++)e.call(r,t[a[i]],a[i])},e.effects=$,e.finiteOrDefault=function(t,e){return f(t)?t:e},e.fontString=function(t,e,r){return e+" "+t+"px "+r},e.formatNumber=J,e.getAngleFromPoint=function(t,e){let r=e.x-t.x,n=e.y-t.y,i=Math.sqrt(r*r+n*n),o=Math.atan2(n,r);return o<-.5*k&&(o+=S),{angle:o,distance:i}},e.getDatasetClipArea=function(t,e){let r=e._clip;if(r.disabled)return!1;let n=function(t,e){let{xScale:r,yScale:n}=t;return r&&n?{left:tV(r,e,"left"),right:tV(r,e,"right"),top:tV(n,e,"top"),bottom:tV(n,e,"bottom")}:e}(e,t.chartArea);return{left:!1===r.left?0:n.left-(!0===r.left?0:r.left),right:!1===r.right?t.width:n.right+(!0===r.right?0:r.right),top:!1===r.top?0:n.top-(!0===r.top?0:r.top),bottom:!1===r.bottom?t.height:n.bottom+(!0===r.bottom?0:r.bottom)}},e.getHoverColor=q,e.getMaximumSize=function(t,e,r,n){let i=tj(t),o=tU(i,"margin"),a=tD(i.maxWidth,t,"clientWidth")||A,s=tD(i.maxHeight,t,"clientHeight")||A,l=function(t,e,r){let n,i;if(void 0===e||void 0===r){let o=t&&tF(t);if(o){let t=o.getBoundingClientRect(),a=tj(o),s=tU(a,"border","width"),l=tU(a,"padding");e=t.width-l.width-s.width,r=t.height-l.height-s.height,n=tD(a.maxWidth,o,"clientWidth"),i=tD(a.maxHeight,o,"clientHeight")}else e=t.clientWidth,r=t.clientHeight}return{width:e,height:r,maxWidth:n||A,maxHeight:i||A}}(t,e,r),{width:f,height:u}=l;if("content-box"===i.boxSizing){let t=tU(i,"border","width"),e=tU(i,"padding");f-=e.width+t.width,u-=e.height+t.height}return f=Math.max(0,f-o.width),u=Math.max(0,n?f/n:u-o.height),f=tW(Math.min(f,a,l.maxWidth)),u=tW(Math.min(u,s,l.maxHeight)),f&&!u&&(u=tW(f/2)),(void 0!==e||void 0!==r)&&n&&l.height&&u>l.height&&(f=tW(Math.floor((u=l.height)*n))),{width:f,height:u}},e.getRelativePosition=function(t,e){if("native"in t)return t;let{canvas:r,currentDevicePixelRatio:n}=e,i=tj(r),o="border-box"===i.boxSizing,a=tU(i,"padding"),s=tU(i,"border","width"),{x:l,y:f,box:u}=function(t,e){let r,n,i,o=t.touches,a=o&&o.length?o[0]:t,{offsetX:s,offsetY:l}=a,f=!1;if(i=t.target,(s>0||l>0)&&(!i||!i.shadowRoot))r=s,n=l;else{let t=e.getBoundingClientRect();r=a.clientX-t.left,n=a.clientY-t.top,f=!0}return{x:r,y:n,box:f}}(t,r),h=a.left+(u&&s.left),c=a.top+(u&&s.top),{width:d,height:p}=e;return o&&(d-=a.width+s.width,p-=a.height+s.height),{x:Math.round((l-h)/d*r.width/n),y:Math.round((f-c)/p*r.height/n)}},e.getRtlAdapter=function(t,e,r){var n;return t?(n=r,{x:t=>e+e+n-t,setWidth(t){n=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}},e.getStyle=tL,e.isArray=s,e.isFunction=x,e.isNullOrUndef=a,e.isNumber=function(t){return"symbol"!=typeof t&&("object"!=typeof t||null===t||!!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t))&&!isNaN(parseFloat(t))&&isFinite(t)},e.isNumberFinite=f,e.isObject=l,e.isPatternOrGradient=K,e.listenArrayEvents=function(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),W.forEach(e=>{let r="_onData"+w(e),n=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){let i=n.apply(this,e);return t._chartjs.listeners.forEach(t=>{"function"==typeof t[r]&&t[r](...e)}),i}})}))},e.log10=I,e.merge=g,e.mergeIf=m,e.niceNum=function(t){let e=Math.round(t),r=Math.pow(10,Math.floor(I(t=z(t,e,t/1e3)?e:t))),n=t/r;return(n<=1?1:n<=2?2:n<=5?5:10)*r},e.noop=function(){},e.overrideTextDirection=function(t,e){let r,n;("ltr"===e||"rtl"===e)&&(n=[(r=t.canvas.style).getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",e,"important"),t.prevTextDirection=n)},e.overrides=tr,e.readUsedSize=function(t,e){let r=tL(t,e),n=r&&r.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0},e.renderText=function(t,e,r,n,i,o={}){let l,f,u=s(e)?e:[e],h=o.strokeWidth>0&&""!==o.strokeColor;for(t.save(),t.font=i.string,o.translation&&t.translate(o.translation[0],o.translation[1]),a(o.rotation)||t.rotate(o.rotation),o.color&&(t.fillStyle=o.color),o.textAlign&&(t.textAlign=o.textAlign),o.textBaseline&&(t.textBaseline=o.textBaseline),l=0;l<u.length;++l)f=u[l],o.backdrop&&function(t,e){let r=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=r}(t,o.backdrop),h&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),a(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(f,r,n,o.maxWidth)),t.fillText(f,r,n,o.maxWidth),function(t,e,r,n,i){if(i.strikethrough||i.underline){let o=t.measureText(n),a=e-o.actualBoundingBoxLeft,s=e+o.actualBoundingBoxRight,l=r-o.actualBoundingBoxAscent,f=r+o.actualBoundingBoxDescent,u=i.strikethrough?(l+f)/2:f;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=i.decorationWidth||2,t.moveTo(a,u),t.lineTo(s,u),t.stroke()}}(t,r,n,f,o),n+=Number(i.lineHeight);t.restore()},e.requestAnimFrame=Z,e.resolve=function(t,e,r,n){let i,o,a,l=!0;for(i=0,o=t.length;i<o;++i)if(void 0!==(a=t[i])&&(void 0!==e&&"function"==typeof a&&(a=a(e),l=!1),void 0!==r&&s(a)&&(a=a[r%a.length],l=!1),void 0!==a))return n&&!l&&(n.cacheable=!1),a},e.resolveObjectKey=v,e.restoreTextDirection=function(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))},e.retinaScale=function(t,e,r){let n=e||1,i=tW(t.height*n),o=tW(t.width*n);t.height=tW(t.height),t.width=tW(t.width);let a=t.canvas;return a.style&&(r||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==n||a.height!==i||a.width!==o)&&(t.currentDevicePixelRatio=n,a.height=i,a.width=o,t.ctx.setTransform(n,0,0,n,0,0),!0)},e.setsEqual=(t,e)=>{if(t.size!==e.size)return!1;for(let r of t)if(!e.has(r))return!1;return!0},e.sign=B,e.splineCurve=tB,e.splineCurveMonotone=tz,e.supportsEventListenerOptions=tZ,e.throttled=function(t,e){let r=[],n=!1;return function(...i){r=i,n||(n=!0,Z.call(window,()=>{n=!1,t.apply(e,r)}))}},e.toDegrees=function(t){return 180/k*t},e.toDimension=h,e.toFont=function(t,e){t=t||{},e=e||ts.font;let r=u(t.size,e.size);"string"==typeof r&&(r=parseInt(r,10));let n=u(t.style,e.style);n&&!(""+n).match(td)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);let i={family:u(t.family,e.family),lineHeight:tp(u(t.lineHeight,e.lineHeight),r),size:r,style:n,weight:u(t.weight,e.weight),string:""};return i.string=tl(i),i},e.toFontString=tl,e.toLineHeight=tp,e.toPadding=function(t){let e=tb(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e},e.toPercentage=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:t/e,e.toRadians=function(t){return k/180*t},e.toTRBL=tb,e.toTRBLCorners=function(t){return tm(t,["topLeft","topRight","bottomLeft","bottomRight"])},e.uid=o,e.unclipArea=function(t){t.restore()},e.unlistenArrayEvents=function(t,e){let r=t._chartjs;if(!r)return;let n=r.listeners,i=n.indexOf(e);-1!==i&&n.splice(i,1),n.length>0||(W.forEach(e=>{delete t[e]}),delete t._chartjs)},e.valueOrDefault=u},6062:(t,e,r)=>{"use strict";r.d(e,{Ay:()=>i});var n=r(3888);n.t1.register(...n.$L);let i=n.t1}}]);