filecat 7.7.4 → 7.8.0

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 (205) hide show
  1. package/build/dist/1045.0e4bdc838c37771a7f50.js +1 -0
  2. package/build/dist/1075.493acb74297c1e753de2.js +1 -0
  3. package/build/dist/1128.b80776fbdbdda36034c3.js +1 -0
  4. package/build/dist/1388.1dcf844b452e3aae3dc0.js +1 -0
  5. package/build/dist/1671.fb137d27b5763953487e.js +1 -0
  6. package/build/dist/{6887.93191dae462af3692775.js → 1738.b8ab2bd79df131e60051.js} +1 -1
  7. package/build/dist/1802.e43e833638f6ba8e22d7.js +1 -0
  8. package/build/dist/1964.bd3d684b50aa5191b413.js +1 -0
  9. package/build/dist/200.bb7f6ce5543bd7ff6d97.js +1 -0
  10. package/build/dist/2105.e4ba1c1d506b3fe14e8e.js +1 -0
  11. package/build/dist/2122.bc10dcdbbfc38e0ef883.js +1 -0
  12. package/build/dist/{3457.18b45379d8bcf7f5f3b5.js → 2180.df641ebaead77c4ada71.js} +1 -1
  13. package/build/dist/2300.9e1baa1c0368abe53d96.js +2 -0
  14. package/build/dist/2479.15722ac55b05c521f4f7.js +1 -0
  15. package/build/dist/2572.8fdddfebb4da2f29dbd8.js +1 -0
  16. package/build/dist/2674.0c822a9c458f923a4eff.js +1 -0
  17. package/build/dist/{1001.44a1a25c7d6d3f294bf3.js → 2822.9417e764a14f8f5f57dc.js} +1 -1
  18. package/build/dist/2994.c492be0d907fa468a9be.js +1 -0
  19. package/build/dist/{3140.b078ec311f99170b7f4c.js → 3140.794a212da633caf38b3a.js} +2 -2
  20. package/build/dist/3230.7798ab546facfa058b34.js +1 -0
  21. package/build/dist/3283.9386fc7f67aef46604fb.js +1 -0
  22. package/build/dist/{3299.9bd4cf5d1679479639a8.js → 3299.d01f5a742d80f4e6e25b.js} +1 -1
  23. package/build/dist/3300.b8a3bc571293a6280ed8.js +1 -0
  24. package/build/dist/{3402.d412940350051a52d7ac.js → 3402.b6dc28d2f9bace7cde85.js} +1 -1
  25. package/build/dist/3509.cbcb309fbf49db53229f.js +1 -0
  26. package/build/dist/{3727.b8d9cbae9de47bf8d49b.js → 3510.b975b8bfdee5e8518215.js} +1 -1
  27. package/build/dist/{587.c75ed69a8373139346f9.js → 3566.ba323afadcf41fad2fa7.js} +1 -1
  28. package/build/dist/3608.aff9429024b740ac5cd0.js +1 -0
  29. package/build/dist/3990.5e16453f57b90b01d539.js +1 -0
  30. package/build/dist/4004.de90f1192487a24a0a9a.js +1 -0
  31. package/build/dist/4061.c0eb5824eeb6a59fa827.js +1 -0
  32. package/build/dist/4220.b65b40382726a69ba0bc.js +1 -0
  33. package/build/dist/{3883.70d42c3a335d6833f07e.js → 4376.b022a792fb34fbe50398.js} +1 -1
  34. package/build/dist/4437.4d5a0965043471411a00.js +1 -0
  35. package/build/dist/4469.536491f90535e831ce3e.js +1 -0
  36. package/build/dist/453.8877eb10f13258c290bc.js +1 -0
  37. package/build/dist/4560.8ef2e4b60cc86d019dd6.js +1 -0
  38. package/build/dist/4735.838cd0f656bbf7d99ff6.js +1 -0
  39. package/build/dist/4772.9b95c402a4def0f576e3.js +1 -0
  40. package/build/dist/4985.44cb7d829ca477e368b8.js +1 -0
  41. package/build/dist/5516.645e4a900df9bdc1806c.js +1 -0
  42. package/build/dist/5526.6b4867751becda056ed8.js +1 -0
  43. package/build/dist/5617.8efc3b1d218f80df9b39.js +1 -0
  44. package/build/dist/5744.e9f1efb88a617b05b709.js +1 -0
  45. package/build/dist/583.cef46d6b21c6fa6454cf.js +1 -0
  46. package/build/dist/6089.6d5d19a327284ff3b11c.js +1 -0
  47. package/build/dist/6164.7dae9989dd129479f952.js +1 -0
  48. package/build/dist/6284.10deb80685728f50aa45.js +1 -0
  49. package/build/dist/629.b75b024aacc43e0d69cf.js +1 -0
  50. package/build/dist/6344.291e5dadc74e62739774.js +1 -0
  51. package/build/dist/6492.3ee4060598de873d8e8f.js +1 -0
  52. package/build/dist/6571.b381c44055704e3ba649.js +1 -0
  53. package/build/dist/6731.6763296ce5ae210bc0fe.js +1 -0
  54. package/build/dist/6759.f88b50c41207cb8345d1.js +1 -0
  55. package/build/dist/{4951.88718d978aea2dd40006.js → 6789.34921a30c8a81f0a6407.js} +1 -1
  56. package/build/dist/6800.ee99fd0a88b6acbaaf2c.js +1 -0
  57. package/build/dist/6803.fe4297b1e51c3bfc7f50.js +1 -0
  58. package/build/dist/{313.d51fc773856f078487ad.js → 6806.9ebf089eba60f3b8e946.js} +1 -1
  59. package/build/dist/7038.4e4fc8e405c56d3080e2.js +1 -0
  60. package/build/dist/7310.bf944d03f24fcf109680.js +1 -0
  61. package/build/dist/{359.1b95bd6368196ccaa731.js → 7430.25bf8437ad8f7c1fd36f.js} +1 -1
  62. package/build/dist/7483.5e26ada69b33418c31a8.js +1 -0
  63. package/build/dist/{4087.4796ff56340985c35542.js → 7486.fe0b5f867c08b40a3360.js} +1 -1
  64. package/build/dist/7567.09e1b34ad9bd3e463eb4.js +1 -0
  65. package/build/dist/7834.7a593dcb80ca09f58586.js +1 -0
  66. package/build/dist/784.48a3b71205680f427109.js +1 -0
  67. package/build/dist/7943.54c702542d55f576a576.js +1 -0
  68. package/build/dist/7954.6ce241a8ed27cb26efc6.js +1 -0
  69. package/build/dist/8079.f6f2be43e5d933ae1f6f.js +1 -0
  70. package/build/dist/8677.860320b7f36947e57d11.js +1 -0
  71. package/build/dist/8727.3628c746061aed7a4077.js +1 -0
  72. package/build/dist/9299.ed4de6cd4f4bfa0a966a.js +1 -0
  73. package/build/dist/9324.ef229da9b943484298ba.js +1 -0
  74. package/build/dist/9364.d2570d78afc50fe1b23e.js +1 -0
  75. package/build/dist/9463.2629a7daf4c2865b9b96.js +1 -0
  76. package/build/dist/index.html +1 -1
  77. package/build/dist/main.98bb29605335d9b2219f.js +2 -0
  78. package/build/main.js +1 -1
  79. package/package.json +4 -5
  80. package/build/dist/1075.3ef2e1902e9f7e9e37b1.js +0 -1
  81. package/build/dist/1312.199a506fb836a2412255.js +0 -1
  82. package/build/dist/136.e3bb3c50051edb17454d.js +0 -1
  83. package/build/dist/1478.c58a43bb24820a13eaed.js +0 -1
  84. package/build/dist/1491.901cce0168c42ad319fa.js +0 -1
  85. package/build/dist/1566.4f405afd26063b55129c.js +0 -1
  86. package/build/dist/161.98f6c2a50bf3824a6efb.js +0 -1
  87. package/build/dist/1654.a21a099e2749ef167ea9.js +0 -1
  88. package/build/dist/1875.46dd3a6cc071d45a32f1.js +0 -1
  89. package/build/dist/1883.14c90bbe93fe206906f0.js +0 -1
  90. package/build/dist/1924.c7bd2a2aa0e9bc78c9ba.js +0 -1
  91. package/build/dist/2000.f55ddba9e6313243f028.js +0 -1
  92. package/build/dist/2101.d4efa6a2c1e9169d9225.js +0 -1
  93. package/build/dist/2180.60fe32ab12c2fa1570a4.js +0 -1
  94. package/build/dist/2191.4c4f2fd5127168a81877.js +0 -1
  95. package/build/dist/2213.ceffb8fd7be66b35d079.js +0 -1
  96. package/build/dist/2463.6e530d1e9b5c58dba166.js +0 -1
  97. package/build/dist/2623.8b1e5e391dd4e05fc119.js +0 -1
  98. package/build/dist/2674.3713c09449bdd57b1066.js +0 -1
  99. package/build/dist/2894.8395ec5e280cc6b6c4dc.js +0 -1
  100. package/build/dist/3042.f490cfa4208208262398.js +0 -1
  101. package/build/dist/3096.d0b2c77a23418c545c01.js +0 -1
  102. package/build/dist/311.da79ace98b69a635c41c.js +0 -1
  103. package/build/dist/3166.088cf4a0356c3a6e30a0.js +0 -1
  104. package/build/dist/3357.4f1bf81ecc3c11a3f813.js +0 -1
  105. package/build/dist/3475.d10d21b637761d7d886d.js +0 -1
  106. package/build/dist/3708.04401b24d95214d641e5.js +0 -1
  107. package/build/dist/3752.01fc1f14b29f340e41fd.js +0 -1
  108. package/build/dist/3871.7a387a9dc21883d08423.js +0 -1
  109. package/build/dist/3994.19fb81947d65fc81b0a2.js +0 -1
  110. package/build/dist/4012.b516fdc981e55be2ebb2.js +0 -1
  111. package/build/dist/4122.9ea6b5dd8dc9d2265825.js +0 -1
  112. package/build/dist/4141.06960673a6a484e7b88d.js +0 -1
  113. package/build/dist/4190.ff72264b4f07f6542d33.js +0 -1
  114. package/build/dist/4239.1b49d7c26192fb637d57.js +0 -1
  115. package/build/dist/4288.8dc8f5d962720e084952.js +0 -1
  116. package/build/dist/434.04cdc2a05316f92d1d38.js +0 -1
  117. package/build/dist/4376.f3c60897f70dd4e33d2f.js +0 -1
  118. package/build/dist/4472.9e708dd3e1c9db7d7396.js +0 -1
  119. package/build/dist/4473.b42b37616f13be64199b.js +0 -1
  120. package/build/dist/449.3fd75e05da22fe1c5ecc.js +0 -1
  121. package/build/dist/452.4974390f4f4d991216e5.js +0 -1
  122. package/build/dist/4547.36b5848220c04c47bc80.js +0 -1
  123. package/build/dist/4605.ef0f4204b3bf3a18efa6.js +0 -1
  124. package/build/dist/4804.fbd0ffcf57d9dffc15b7.js +0 -1
  125. package/build/dist/482.0c7512372a1fbf61d704.js +0 -1
  126. package/build/dist/4963.22d7db9b376a42d3f00b.js +0 -1
  127. package/build/dist/5097.a0de16bf7b90a8b1157d.js +0 -1
  128. package/build/dist/5123.d9ed79af478b5cc4f1b2.js +0 -1
  129. package/build/dist/5332.8b6e85d8764e907a01d5.js +0 -1
  130. package/build/dist/536.660d866952b46ba53180.js +0 -1
  131. package/build/dist/548.d3d912d0c0c7e835e1dc.js +0 -1
  132. package/build/dist/5516.cc92dfbf06ddcd133dbc.js +0 -1
  133. package/build/dist/5590.585778da623ec71f7722.js +0 -1
  134. package/build/dist/5616.14df0fe505c4dadf4042.js +0 -1
  135. package/build/dist/5695.95dc69f3b02812eb9e93.js +0 -1
  136. package/build/dist/5697.6ac62f99ca19a979f1eb.js +0 -1
  137. package/build/dist/5741.237d817efc942de875e5.js +0 -1
  138. package/build/dist/5849.d26365d4b19533db6fd6.js +0 -1
  139. package/build/dist/5902.3969a79465383ff4bbb4.js +0 -1
  140. package/build/dist/5942.981e03467a3b2c653ab8.js +0 -1
  141. package/build/dist/6029.63e4beb66df7afc65a90.js +0 -1
  142. package/build/dist/6054.f91307b52046172fc5f8.js +0 -1
  143. package/build/dist/6089.0863a6a09be2b97e84e1.js +0 -1
  144. package/build/dist/6095.d845e356a4db8a241cdb.js +0 -1
  145. package/build/dist/6114.ca67e88c701691b3bb1e.js +0 -1
  146. package/build/dist/612.74d77e32957a5c6eb197.js +0 -1
  147. package/build/dist/625.d9e531476b3306e0b837.js +0 -1
  148. package/build/dist/6318.66541f9cef18d14ea3ea.js +0 -1
  149. package/build/dist/6455.5c950f6eb61015409eb6.js +0 -1
  150. package/build/dist/6527.436d2d5d81376e6a54ae.js +0 -1
  151. package/build/dist/6530.2f1b283a902603262048.js +0 -1
  152. package/build/dist/6610.b92f337fcc1b347350fb.js +0 -1
  153. package/build/dist/6926.2786af754adcdabfbede.js +0 -1
  154. package/build/dist/697.62f8b1ec6d2cd40ed316.js +0 -1
  155. package/build/dist/70.be2f9130c93c4175d12f.js +0 -1
  156. package/build/dist/7081.9e1e196fecfcccb4bfb9.js +0 -1
  157. package/build/dist/7128.3573ab2a5f28b79ba89e.js +0 -1
  158. package/build/dist/7163.ad09accaa87e565b8dc0.js +0 -1
  159. package/build/dist/72.a1d87dabb7f0615b3a21.js +0 -1
  160. package/build/dist/7229.50a1700104d1e4732735.js +0 -1
  161. package/build/dist/7332.d024ae75a3da2f7674a1.js +0 -1
  162. package/build/dist/7509.370c49d7ff43e289190c.js +0 -1
  163. package/build/dist/7514.dbf525bade6ffbd70af6.js +0 -2
  164. package/build/dist/7557.7d62939c56391a647067.js +0 -1
  165. package/build/dist/7588.2d840229f62de92b22e5.js +0 -1
  166. package/build/dist/7632.5660653552f755580adc.js +0 -1
  167. package/build/dist/7639.b3c6382de2fde652a40b.js +0 -1
  168. package/build/dist/779.91614fabf5c9eb3aafa0.js +0 -1
  169. package/build/dist/7810.979796e8a3aad6d4d72f.js +0 -1
  170. package/build/dist/7897.8b8070d6abe5c2327168.js +0 -1
  171. package/build/dist/7941.dbef0b0f412899800b13.js +0 -1
  172. package/build/dist/7953.5cd280effe2e967ea490.js +0 -1
  173. package/build/dist/7954.efecc100b407af204add.js +0 -1
  174. package/build/dist/7959.e31a21f28ff463d9d5e9.js +0 -1
  175. package/build/dist/8034.301f1099c4a7ce6c2829.js +0 -1
  176. package/build/dist/8080.e1c9af30bdd818b08c6e.js +0 -1
  177. package/build/dist/8087.6452b67614a0855535a4.js +0 -1
  178. package/build/dist/8140.bbccc589b007f9d410d1.js +0 -1
  179. package/build/dist/8162.e47cccbe327b26a2ea6f.js +0 -1
  180. package/build/dist/8322.56c8f4b4ad93b1a866c8.js +0 -1
  181. package/build/dist/8376.01a9f23ba06a78922364.js +0 -1
  182. package/build/dist/8433.e54d57e2cc9408e5e411.js +0 -1
  183. package/build/dist/8460.25f0859cb2266f764113.js +0 -1
  184. package/build/dist/8524.7945bff0063dc5c5903d.js +0 -1
  185. package/build/dist/8782.a5498372f1eb6bab41b7.js +0 -1
  186. package/build/dist/8953.23fe6fe13b28168428d3.js +0 -1
  187. package/build/dist/8964.bdf168262ab40956654a.js +0 -1
  188. package/build/dist/9003.69a0d15e722e1ed455b0.js +0 -1
  189. package/build/dist/9299.c2699815e5339e4045f8.js +0 -1
  190. package/build/dist/9385.2b1afe7b55d4c16f97ad.js +0 -1
  191. package/build/dist/9428.3176bab8f5780f060d51.js +0 -1
  192. package/build/dist/9456.506d55e351dec4f45566.js +0 -1
  193. package/build/dist/9465.8ff5871fb708cf7c1021.js +0 -1
  194. package/build/dist/9500.95d19d78b580734ec35e.js +0 -1
  195. package/build/dist/9512.03215278f26dc63c056d.js +0 -1
  196. package/build/dist/9614.cfdbe03d8e2960b0a53a.js +0 -1
  197. package/build/dist/9651.6bf3e34362f10c1aa35d.js +0 -1
  198. package/build/dist/9788.4a1c2f3626e532d3b44c.js +0 -1
  199. package/build/dist/9943.b62436bd9d0730c715a9.js +0 -1
  200. package/build/dist/9967.216bc8d26440bcbaf785.js +0 -1
  201. package/build/dist/9970.aa60aa700a790ba226f0.js +0 -1
  202. package/build/dist/main.7a6fed9f5f814a194409.js +0 -2
  203. /package/build/dist/{7514.dbf525bade6ffbd70af6.js.LICENSE.txt → 2300.9e1baa1c0368abe53d96.js.LICENSE.txt} +0 -0
  204. /package/build/dist/{3140.b078ec311f99170b7f4c.js.LICENSE.txt → 3140.794a212da633caf38b3a.js.LICENSE.txt} +0 -0
  205. /package/build/dist/{main.7a6fed9f5f814a194409.js.LICENSE.txt → main.98bb29605335d9b2219f.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
1
- /*! For license information please see 7514.dbf525bade6ffbd70af6.js.LICENSE.txt */
2
- (self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[7514],{74353(t){t.exports=function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",o="minute",s="hour",a="day",l="week",u="month",c="quarter",h="year",f="date",p="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},_={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,u),o=n-i<0,s=e.clone().add(r+(o?-1:1),u);return+(-(r+(n-i)/(o?i-s:s-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:u,y:h,w:l,d:a,D:f,h:s,m:o,s:i,ms:r,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},b="en",x={};x[b]=y;var v="$isDayjsObject",w=function(t){return t instanceof S||!(!t||!t[v])},k=function t(e,n,r){var i;if(!e)return b;if("string"==typeof e){var o=e.toLowerCase();x[o]&&(i=o),n&&(x[o]=n,i=o);var s=e.split("-");if(!i&&s.length>1)return t(s[0])}else{var a=e.name;x[a]=e,i=a}return!r&&i&&(b=i),i||!r&&b},A=function(t,e){if(w(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new S(n)},T=_;T.l=k,T.i=w,T.w=function(t,e){return A(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function y(t){this.$L=k(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[v]=!0}var m=y.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(T.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(d);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return T},m.isValid=function(){return!(this.$d.toString()===p)},m.isSame=function(t,e){var n=A(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return A(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<A(t)},m.$g=function(t,e,n){return T.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!T.u(e)||e,c=T.p(t),p=function(t,e){var i=T.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},d=function(t,e){return T.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},g=this.$W,y=this.$M,m=this.$D,_="set"+(this.$u?"UTC":"");switch(c){case h:return r?p(1,0):p(31,11);case u:return r?p(1,y):p(0,y+1);case l:var b=this.$locale().weekStart||0,x=(g<b?g+7:g)-b;return p(r?m-x:m+(6-x),y);case a:case f:return d(_+"Hours",0);case s:return d(_+"Minutes",1);case o:return d(_+"Seconds",2);case i:return d(_+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,l=T.p(t),c="set"+(this.$u?"UTC":""),p=(n={},n[a]=c+"Date",n[f]=c+"Date",n[u]=c+"Month",n[h]=c+"FullYear",n[s]=c+"Hours",n[o]=c+"Minutes",n[i]=c+"Seconds",n[r]=c+"Milliseconds",n)[l],d=l===a?this.$D+(e-this.$W):e;if(l===u||l===h){var g=this.clone().set(f,1);g.$d[p](d),g.init(),this.$d=g.set(f,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](d);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[T.p(t)]()},m.add=function(r,c){var f,p=this;r=Number(r);var d=T.p(c),g=function(t){var e=A(p);return T.w(e.date(e.date()+Math.round(t*r)),p)};if(d===u)return this.set(u,this.$M+r);if(d===h)return this.set(h,this.$y+r);if(d===a)return g(1);if(d===l)return g(7);var y=(f={},f[o]=e,f[s]=n,f[i]=t,f)[d]||1,m=this.$d.getTime()+r*y;return T.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=T.z(this),o=this.$H,s=this.$m,a=this.$M,l=n.weekdays,u=n.months,c=n.meridiem,h=function(t,n,i,o){return t&&(t[n]||t(e,r))||i[n].slice(0,o)},f=function(t){return T.s(o%12||12,t,"0")},d=c||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(g,function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return T.s(e.$y,4,"0");case"M":return a+1;case"MM":return T.s(a+1,2,"0");case"MMM":return h(n.monthsShort,a,u,3);case"MMMM":return h(u,a);case"D":return e.$D;case"DD":return T.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,l,2);case"ddd":return h(n.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(o);case"HH":return T.s(o,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return d(o,s,!0);case"A":return d(o,s,!1);case"m":return String(s);case"mm":return T.s(s,2,"0");case"s":return String(e.$s);case"ss":return T.s(e.$s,2,"0");case"SSS":return T.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")})},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,f,p){var d,g=this,y=T.p(f),m=A(r),_=(m.utcOffset()-this.utcOffset())*e,b=this-m,x=function(){return T.m(g,m)};switch(y){case h:d=x()/12;break;case u:d=x();break;case c:d=x()/3;break;case l:d=(b-_)/6048e5;break;case a:d=(b-_)/864e5;break;case s:d=b/n;break;case o:d=b/e;break;case i:d=b/t;break;default:d=b}return p?d:T.a(d)},m.daysInMonth=function(){return this.endOf(u).$D},m.$locale=function(){return x[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=k(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return T.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},y}(),M=S.prototype;return A.prototype=M,[["$ms",r],["$s",i],["$m",o],["$H",s],["$W",a],["$M",u],["$y",h],["$D",f]].forEach(function(t){M[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),A.extend=function(t,e){return t.$i||(t(e,S,A),t.$i=!0),A},A.locale=k,A.isDayjs=w,A.unix=function(t){return A(1e3*t)},A.en=x[b],A.Ls=x,A.p={},A}()},99249(t,e,n){"use strict";n.d(e,{y:()=>s});var r=n(13315);function i(t,e){const n=function(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const r=((t.rotate||0)+(e.rotate||0))%4;return r&&(n.rotate=r),n}(t,e);for(const i in r.wd)i in r.xj?i in t&&!(i in n)&&(n[i]=r.xj[i]):i in e?n[i]=e[i]:i in t&&(n[i]=t[i]);return n}function o(t,e,n){const r=t.icons,o=t.aliases||Object.create(null);let s={};function a(t){s=i(r[t]||o[t],s)}return a(e),n.forEach(a),i(t,s)}function s(t,e){if(t.icons[e])return o(t,e,[]);const n=function(t,e){const n=t.icons,r=t.aliases||Object.create(null),i=Object.create(null);return(e||Object.keys(n).concat(Object.keys(r))).forEach(function t(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;const n=r[e]&&r[e].parent,o=n&&t(n);o&&(i[e]=[n].concat(o))}return i[e]}),i}(t,[e])[e];return n?o(t,e,n):null}},13315(t,e,n){"use strict";n.d(e,{Xs:()=>o,wd:()=>s,xj:()=>i});const r=Object.freeze({left:0,top:0,width:16,height:16}),i=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),o=Object.freeze({...r,...i}),s=Object.freeze({...o,body:"",hidden:!1})},73810(t,e,n){"use strict";n.d(e,{ct:()=>r});const r=(t,e,n,r="")=>{const o=t.split(":");if("@"===t.slice(0,1)){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const t=o.pop(),n=o.pop(),s={provider:o.length>0?o[0]:r,prefix:n,name:t};return e&&!i(s)?null:s}const s=o[0],a=s.split("-");if(a.length>1){const t={provider:r,prefix:a.shift(),name:a.join("-")};return e&&!i(t)?null:t}if(n&&""===r){const t={provider:r,prefix:"",name:s};return e&&!i(t,n)?null:t}return null},i=(t,e)=>!!t&&!(!(e&&""===t.prefix||t.prefix)||!t.name)},1452(t,e,n){"use strict";n.d(e,{p:()=>u});var r=n(13315);const i=Object.freeze({width:null,height:null}),o=Object.freeze({...i,...r.xj}),s=/(-?[0-9.]*[0-9]+[0-9.]*)/g,a=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function l(t,e,n){if(1===e)return t;if(n=n||100,"number"==typeof t)return Math.ceil(t*e*n)/n;if("string"!=typeof t)return t;const r=t.split(s);if(null===r||!r.length)return t;const i=[];let o=r.shift(),l=a.test(o);for(;;){if(l){const t=parseFloat(o);isNaN(t)?i.push(o):i.push(Math.ceil(t*e*n)/n)}else i.push(o);if(o=r.shift(),void 0===o)return i.join("");l=!l}}function u(t,e){const n={...r.Xs,...t},i={...o,...e},s={left:n.left,top:n.top,width:n.width,height:n.height};let a=n.body;[n,i].forEach(t=>{const e=[],n=t.hFlip,r=t.vFlip;let i,o=t.rotate;switch(n?r?o+=2:(e.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),e.push("scale(-1 1)"),s.top=s.left=0):r&&(e.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),e.push("scale(1 -1)"),s.top=s.left=0),o<0&&(o-=4*Math.floor(o/4)),o%=4,o){case 1:i=s.height/2+s.top,e.unshift("rotate(90 "+i.toString()+" "+i.toString()+")");break;case 2:e.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:i=s.width/2+s.left,e.unshift("rotate(-90 "+i.toString()+" "+i.toString()+")")}o%2==1&&(s.left!==s.top&&(i=s.left,s.left=s.top,s.top=i),s.width!==s.height&&(i=s.width,s.width=s.height,s.height=i)),e.length&&(a=function(t,e,n){const r=function(t,e="defs"){let n="";const r=t.indexOf("<"+e);for(;r>=0;){const i=t.indexOf(">",r),o=t.indexOf("</"+e);if(-1===i||-1===o)break;const s=t.indexOf(">",o);if(-1===s)break;n+=t.slice(i+1,o).trim(),t=t.slice(0,r).trim()+t.slice(s+1)}return{defs:n,content:t}}(t);return i=r.defs,o=e+r.content+n,i?"<defs>"+i+"</defs>"+o:o;var i,o}(a,'<g transform="'+e.join(" ")+'">',"</g>"))});const u=i.width,c=i.height,h=s.width,f=s.height;let p,d;null===u?(d=null===c?"1em":"auto"===c?f:c,p=l(d,h/f)):(p="auto"===u?h:u,d=null===c?l(p,f/h):"auto"===c?f:c);const g={},y=(t,e)=>{(t=>"unset"===t||"undefined"===t||"none"===t)(e)||(g[t]=e.toString())};y("width",p),y("height",d);const m=[s.left,s.top,h,f];return g.viewBox=m.join(" "),{attributes:g,viewBox:m,body:a}}},86649(t,e,n){"use strict";function r(t,e){let n=-1===t.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const t in e)n+=" "+t+'="'+e[t]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+t+"</svg>"}n.d(e,{U:()=>r})},40361(t,e,n){"use strict";n.d(e,{$:()=>o});const r=/\sid="(\S+)"/g,i=new Map;function o(t){const e=[];let n;for(;n=r.exec(t);)e.push(n[1]);if(!e.length)return t;const o="suffix"+(16777216*Math.random()|Date.now()).toString(16);return e.forEach(e=>{const n=function(t){t=t.replace(/[0-9]+$/,"")||"a";const e=i.get(t)||0;return i.set(t,e+1),e?`${t}${e}`:t}(e),r=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+r+')([")]|\\.[a-z])',"g"),"$1"+n+o+"$3")}),t=t.replace(new RegExp(o,"g"),"")}},51444(t,e,n){"use strict";function r(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function i(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function o(t){return t}n.d(e,{JLW:()=>Ql,l78:()=>d,tlR:()=>p,qrM:()=>cu,Yu4:()=>fu,IA3:()=>du,Wi0:()=>yu,PGM:()=>mu,OEq:()=>bu,y8u:()=>wu,olC:()=>Au,IrU:()=>Su,oDi:()=>Nu,Q7f:()=>Cu,cVp:()=>Ru,lUB:()=>tu,Lx9:()=>zu,nVG:()=>Hu,uxU:()=>Yu,Xf2:()=>Gu,GZz:()=>Wu,UPb:()=>Qu,dyv:()=>Vu,GPZ:()=>_i,Sk5:()=>Pi,bEH:()=>mo,n8j:()=>ru,T9B:()=>r,jkA:()=>i,rLf:()=>su,WH:()=>So,m4Y:()=>os,UMr:()=>To,w7C:()=>vl,zt:()=>kl,Ltv:()=>Al,UAC:()=>ws,DCK:()=>ta,TUC:()=>Cs,Agd:()=>xs,t6C:()=>ys,wXd:()=>_s,ABi:()=>Ms,Ui6:()=>Fs,rGn:()=>Ds,ucG:()=>ms,YPH:()=>Ss,Mol:()=>Es,PGu:()=>$s,GuW:()=>Ns,hkb:()=>Vi}),n.dn(o);var s=1e-6;function a(t){return"translate("+t+",0)"}function l(t){return"translate(0,"+t+")"}function u(t){return e=>+t(e)}function c(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function h(){return!this.__axis}function f(t,e){var n=[],r=null,i=null,f=6,p=6,d=3,g="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,y=1===t||4===t?-1:1,m=4===t||2===t?"x":"y",_=1===t||3===t?a:l;function b(a){var l=r??(e.ticks?e.ticks.apply(e,n):e.domain()),b=i??(e.tickFormat?e.tickFormat.apply(e,n):o),x=Math.max(f,0)+d,v=e.range(),w=+v[0]+g,k=+v[v.length-1]+g,A=(e.bandwidth?c:u)(e.copy(),g),T=a.selection?a.selection():a,S=T.selectAll(".domain").data([null]),M=T.selectAll(".tick").data(l,e).order(),$=M.exit(),N=M.enter().append("g").attr("class","tick"),E=M.select("line"),C=M.select("text");S=S.merge(S.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),M=M.merge(N),E=E.merge(N.append("line").attr("stroke","currentColor").attr(m+"2",y*f)),C=C.merge(N.append("text").attr("fill","currentColor").attr(m,y*x).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),a!==T&&(S=S.transition(a),M=M.transition(a),E=E.transition(a),C=C.transition(a),$=$.transition(a).attr("opacity",s).attr("transform",function(t){return isFinite(t=A(t))?_(t+g):this.getAttribute("transform")}),N.attr("opacity",s).attr("transform",function(t){var e=this.parentNode.__axis;return _((e&&isFinite(e=e(t))?e:A(t))+g)})),$.remove(),S.attr("d",4===t||2===t?p?"M"+y*p+","+w+"H"+g+"V"+k+"H"+y*p:"M"+g+","+w+"V"+k:p?"M"+w+","+y*p+"V"+g+"H"+k+"V"+y*p:"M"+w+","+g+"H"+k),M.attr("opacity",1).attr("transform",function(t){return _(A(t)+g)}),E.attr(m+"2",y*f),C.attr(m,y*x).text(b),T.filter(h).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),T.each(function(){this.__axis=A})}return b.scale=function(t){return arguments.length?(e=t,b):e},b.ticks=function(){return n=Array.from(arguments),b},b.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),b):n.slice()},b.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),b):r&&r.slice()},b.tickFormat=function(t){return arguments.length?(i=t,b):i},b.tickSize=function(t){return arguments.length?(f=p=+t,b):f},b.tickSizeInner=function(t){return arguments.length?(f=+t,b):f},b.tickSizeOuter=function(t){return arguments.length?(p=+t,b):p},b.tickPadding=function(t){return arguments.length?(d=+t,b):d},b.offset=function(t){return arguments.length?(g=+t,b):g},b}function p(t){return f(1,t)}function d(t){return f(3,t)}function g(){}function y(t){return null==t?g:function(){return this.querySelector(t)}}function m(t){"function"!=typeof t&&(t=y(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,s,a=e[i],l=a.length,u=r[i]=new Array(l),c=0;c<l;++c)(o=a[c])&&(s=t.call(o,o.__data__,c,a))&&("__data__"in o&&(s.__data__=o.__data__),u[c]=s);return new se(r,this._parents)}function _(){return[]}function b(t){return null==t?_:function(){return this.querySelectorAll(t)}}function x(t){return function(){return null==(e=t.apply(this,arguments))?[]:Array.isArray(e)?e:Array.from(e);var e}}function v(t){t="function"==typeof t?x(t):b(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var s,a=e[o],l=a.length,u=0;u<l;++u)(s=a[u])&&(r.push(t.call(s,s.__data__,u,a)),i.push(s));return new se(r,i)}function w(t){return function(){return this.matches(t)}}function k(t){return function(e){return e.matches(t)}}n.dn(y),n.dn(m),n.dn(b),n.dn(v),n.dn(w),n.dn(S);var A=Array.prototype.find;function T(){return this.firstElementChild}function S(t){return this.select(null==t?T:function(t){return function(){return A.call(this.children,t)}}("function"==typeof t?t:k(t)))}n.dn(N);var M=Array.prototype.filter;function $(){return Array.from(this.children)}function N(t){return this.selectAll(null==t?$:function(t){return function(){return M.call(this.children,t)}}("function"==typeof t?t:k(t)))}function E(t){"function"!=typeof t&&(t=w(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,s=e[i],a=s.length,l=r[i]=[],u=0;u<a;++u)(o=s[u])&&t.call(o,o.__data__,u,s)&&l.push(o);return new se(r,this._parents)}function C(t){return new Array(t.length)}function D(){return new se(this._enter||this._groups.map(C),this._parents)}function R(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function O(t){return function(){return t}}function z(t,e,n,r,i,o){for(var s,a=0,l=e.length,u=o.length;a<u;++a)(s=e[a])?(s.__data__=o[a],r[a]=s):n[a]=new R(t,o[a]);for(;a<l;++a)(s=e[a])&&(i[a]=s)}function L(t,e,n,r,i,o,s){var a,l,u,c=new Map,h=e.length,f=o.length,p=new Array(h);for(a=0;a<h;++a)(l=e[a])&&(p[a]=u=s.call(l,l.__data__,a,e)+"",c.has(u)?i[a]=l:c.set(u,l));for(a=0;a<f;++a)u=s.call(t,o[a],a,o)+"",(l=c.get(u))?(r[a]=l,l.__data__=o[a],c.delete(u)):n[a]=new R(t,o[a]);for(a=0;a<h;++a)(l=e[a])&&c.get(p[a])===l&&(i[a]=l)}function P(t){return t.__data__}function j(t,e){if(!arguments.length)return Array.from(this,P);var n=e?L:z,r=this._parents,i=this._groups;"function"!=typeof t&&(t=O(t));for(var o=i.length,s=new Array(o),a=new Array(o),l=new Array(o),u=0;u<o;++u){var c=r[u],h=i[u],f=h.length,p=I(t.call(c,c&&c.__data__,u,r)),d=p.length,g=a[u]=new Array(d),y=s[u]=new Array(d);n(c,h,g,y,l[u]=new Array(f),p,e);for(var m,_,b=0,x=0;b<d;++b)if(m=g[b]){for(b>=x&&(x=b+1);!(_=y[x])&&++x<d;);m._next=_||null}}return(s=new se(s,r))._enter=a,s._exit=l,s}function I(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function U(){return new se(this._exit||this._groups.map(C),this._parents)}function F(t,e,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i}function B(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,s=Math.min(i,o),a=new Array(i),l=0;l<s;++l)for(var u,c=n[l],h=r[l],f=c.length,p=a[l]=new Array(f),d=0;d<f;++d)(u=c[d]||h[d])&&(p[d]=u);for(;l<i;++l)a[l]=n[l];return new se(a,this._parents)}function H(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,s=i[o];--o>=0;)(r=i[o])&&(s&&4^r.compareDocumentPosition(s)&&s.parentNode.insertBefore(r,s),s=r);return this}function Y(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=q);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var s,a=n[o],l=a.length,u=i[o]=new Array(l),c=0;c<l;++c)(s=a[c])&&(u[c]=s);u.sort(e)}return new se(i,this._parents).order()}function q(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Z(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function G(){return Array.from(this)}function X(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null}function W(){let t=0;for(const e of this)++t;return t}function V(){return!this.node()}function Q(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],s=0,a=o.length;s<a;++s)(i=o[s])&&t.call(i,i.__data__,s,o);return this}n.dn(E),n.dn(C),n.dn(D),R.prototype={constructor:R,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},n.dn(O),n.dn(j),n.dn(U),n.dn(F),n.dn(B),n.dn(H),n.dn(Y),n.dn(Z),n.dn(G),n.dn(X),n.dn(W),n.dn(V),n.dn(Q);var K="http://www.w3.org/1999/xhtml";const J={svg:"http://www.w3.org/2000/svg",xhtml:K,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function tt(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),J.hasOwnProperty(e)?{space:J[e],local:t}:t}function et(t){return function(){this.removeAttribute(t)}}function nt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function rt(t,e){return function(){this.setAttribute(t,e)}}function it(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function ot(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function st(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function at(t,e){var n=tt(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?nt:et:"function"==typeof e?n.local?st:ot:n.local?it:rt)(n,e))}function lt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function ut(t){return function(){this.style.removeProperty(t)}}function ct(t,e,n){return function(){this.style.setProperty(t,e,n)}}function ht(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function ft(t,e,n){return arguments.length>1?this.each((null==e?ut:"function"==typeof e?ht:ct)(t,e,n??"")):pt(this.node(),t)}function pt(t,e){return t.style.getPropertyValue(e)||lt(t).getComputedStyle(t,null).getPropertyValue(e)}function dt(t){return function(){delete this[t]}}function gt(t,e){return function(){this[t]=e}}function yt(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function mt(t,e){return arguments.length>1?this.each((null==e?dt:"function"==typeof e?yt:gt)(t,e)):this.node()[t]}function _t(t){return t.trim().split(/^|\s+/)}function bt(t){return t.classList||new xt(t)}function xt(t){this._node=t,this._names=_t(t.getAttribute("class")||"")}function vt(t,e){for(var n=bt(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function wt(t,e){for(var n=bt(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function kt(t){return function(){vt(this,t)}}function At(t){return function(){wt(this,t)}}function Tt(t,e){return function(){(e.apply(this,arguments)?vt:wt)(this,t)}}function St(t,e){var n=_t(t+"");if(arguments.length<2){for(var r=bt(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?Tt:e?kt:At)(n,e))}function Mt(){this.textContent=""}function $t(t){return function(){this.textContent=t}}function Nt(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Et(t){return arguments.length?this.each(null==t?Mt:("function"==typeof t?Nt:$t)(t)):this.node().textContent}function Ct(){this.innerHTML=""}function Dt(t){return function(){this.innerHTML=t}}function Rt(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Ot(t){return arguments.length?this.each(null==t?Ct:("function"==typeof t?Rt:Dt)(t)):this.node().innerHTML}function zt(){this.nextSibling&&this.parentNode.appendChild(this)}function Lt(){return this.each(zt)}function Pt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function jt(){return this.each(Pt)}function It(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===K&&e.documentElement.namespaceURI===K?e.createElement(t):e.createElementNS(n,t)}}function Ut(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ft(t){var e=tt(t);return(e.local?Ut:It)(e)}function Bt(t){var e="function"==typeof t?t:Ft(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Ht(){return null}function Yt(t,e){var n="function"==typeof t?t:Ft(t),r=null==e?Ht:"function"==typeof e?e:y(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function qt(){var t=this.parentNode;t&&t.removeChild(this)}function Zt(){return this.each(qt)}function Gt(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Xt(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Wt(t){return this.select(t?Xt:Gt)}function Vt(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Qt(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function Kt(t,e,n){return function(){var r,i=this.__on,o=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var s=0,a=i.length;s<a;++s)if((r=i[s]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=e);this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}function Jt(t,e,n){var r,i,o=function(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}(t+""),s=o.length;if(!(arguments.length<2)){for(a=e?Kt:Qt,r=0;r<s;++r)this.each(a(o[r],e,n));return this}var a=this.node().__on;if(a)for(var l,u=0,c=a.length;u<c;++u)for(r=0,l=a[u];r<s;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value}function te(t,e,n){var r=lt(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function ee(t,e){return function(){return te(this,t,e)}}function ne(t,e){return function(){return te(this,t,e.apply(this,arguments))}}function re(t,e){return this.each(("function"==typeof e?ne:ee)(t,e))}function*ie(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],o=0,s=i.length;o<s;++o)(r=i[o])&&(yield r)}n.dn(tt),n.dn(at),n.dn(lt),n.dn(ft),n.dn(mt),n.dn(St),xt.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}},n.dn(Et),n.dn(Ot),n.dn(Lt),n.dn(jt),n.dn(Ft),n.dn(Bt),n.dn(Yt),n.dn(Zt),n.dn(Wt),n.dn(Vt),n.dn(Jt),n.dn(re),n.dn(ie);var oe=[null];function se(t,e){this._groups=t,this._parents=e}function ae(){return new se([[document.documentElement]],oe)}se.prototype=ae.prototype={constructor:se,select:m,selectAll:v,selectChild:S,selectChildren:N,filter:E,data:j,enter:D,exit:U,join:F,merge:B,selection:function(){return this},order:H,sort:Y,call:Z,nodes:G,node:X,size:W,empty:V,each:Q,attr:at,style:ft,property:mt,classed:St,text:Et,html:Ot,raise:Lt,lower:jt,append:Bt,insert:Yt,remove:Zt,clone:Wt,datum:Vt,on:Jt,dispatch:re,[Symbol.iterator]:ie};const le=ae;var ue={value:()=>{}};function ce(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new he(r)}function he(t){this._=t}function fe(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function pe(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=ue,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}he.prototype=ce.prototype={constructor:he,on:function(t,e){var n,r,i=this._,o=(r=i,(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})),s=-1,a=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++s<a;)if(n=(t=o[s]).type)i[n]=pe(i[n],t.name,e);else if(null==e)for(n in i)i[n]=pe(i[n],t.name,null);return this}for(;++s<a;)if((n=(t=o[s]).type)&&(n=fe(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new he(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(r=this._[t]).length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};const de=ce;var ge,ye,me=0,_e=0,be=0,xe=0,ve=0,we=0,ke="object"==typeof performance&&performance.now?performance:Date,Ae="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Te(){return ve||(Ae(Se),ve=ke.now()+we)}function Se(){ve=0}function Me(){this._call=this._time=this._next=null}function $e(t,e,n){var r=new Me;return r.restart(t,e,n),r}function Ne(){ve=(xe=ke.now())+we,me=_e=0;try{!function(){Te(),++me;for(var t,e=ge;e;)(t=ve-e._time)>=0&&e._call.call(void 0,t),e=e._next;--me}()}finally{me=0,function(){var t,e,n=ge,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:ge=e);ye=t,Ce(r)}(),ve=0}}function Ee(){var t=ke.now(),e=t-xe;e>1e3&&(we-=e,xe=t)}function Ce(t){me||(_e&&(_e=clearTimeout(_e)),t-ve>24?(t<1/0&&(_e=setTimeout(Ne,t-ke.now()-we)),be&&(be=clearInterval(be))):(be||(xe=ke.now(),be=setInterval(Ee,1e3)),me=1,Ae(Ne)))}function De(t,e,n){var r=new Me;return e=null==e?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,n),r}Me.prototype=$e.prototype={constructor:Me,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Te():+n)+(null==e?0:+e),this._next||ye===this||(ye?ye._next=this:ge=this,ye=this),this._call=t,this._time=n,Ce()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ce())}},n.dn(De),n.dn(ze);var Re=de("start","end","cancel","interrupt"),Oe=[];function ze(t,e,n,r,i,o){var s=t.__transition;if(s){if(n in s)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(t){n.state=1,n.timer.restart(s,n.delay,n.time),n.delay<=t&&s(t-n.delay)}function s(o){var u,c,h,f;if(1!==n.state)return l();for(u in i)if((f=i[u]).name===n.name){if(3===f.state)return De(s);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[u]):+u<e&&(f.state=6,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[u])}if(De(function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(o))}),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(h=n.tween.length),u=0,c=-1;u<h;++u)(f=n.tween[u].value.call(t,t.__data__,n.index,n.group))&&(r[++c]=f);r.length=c+1}}function a(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(l),n.state=5,1),o=-1,s=r.length;++o<s;)r[o].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=$e(o,0,n.time)}(t,n,{name:e,index:r,group:i,on:Re,tween:Oe,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function Le(t,e){var n=je(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function Pe(t,e){var n=je(t,e);if(n.state>3)throw new Error("too late; already running");return n}function je(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Ie(t,e){var n,r,i,o=t.__transition,s=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):s=!1;s&&delete t.__transition}}function Ue(t){return this.each(function(){Ie(this,t)})}function Fe(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}n.dn(Ie),n.dn(Ue),n.dn(Fe),n.dn(qe);var Be,He=180/Math.PI,Ye={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function qe(t,e,n,r,i,o){var s,a,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,l/=a),t*r<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*He,skewX:Math.atan(l)*He,scaleX:s,scaleY:a}}function Ze(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(o,s){var a=[],l=[];return o=t(o),s=t(s),function(t,r,i,o,s,a){if(t!==i||r!==o){var l=s.push("translate(",null,e,null,n);a.push({i:l-4,x:Fe(t,i)},{i:l-2,x:Fe(r,o)})}else(i||o)&&s.push("translate("+i+e+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,a,l),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Fe(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,s.rotate,a,l),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Fe(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,s.skewX,a,l),function(t,e,n,r,o,s){if(t!==n||e!==r){var a=o.push(i(o)+"scale(",null,",",null,")");s.push({i:a-4,x:Fe(t,n)},{i:a-2,x:Fe(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,a,l),o=s=null,function(t){for(var e,n=-1,r=l.length;++n<r;)a[(e=l[n]).i]=e.x(t);return a.join("")}}}var Ge=Ze(function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Ye:qe(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),Xe=Ze(function(t){return null==t?Ye:(Be||(Be=document.createElementNS("http://www.w3.org/2000/svg","g")),Be.setAttribute("transform",t),(t=Be.transform.baseVal.consolidate())?qe((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Ye)},", ",")",")");function We(t,e){var n,r;return function(){var i=Pe(this,t),o=i.tween;if(o!==n)for(var s=0,a=(r=n=o).length;s<a;++s)if(r[s].name===e){(r=r.slice()).splice(s,1);break}i.tween=r}}function Ve(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=Pe(this,t),s=o.tween;if(s!==r){i=(r=s).slice();for(var a={name:e,value:n},l=0,u=i.length;l<u;++l)if(i[l].name===e){i[l]=a;break}l===u&&i.push(a)}o.tween=i}}function Qe(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=je(this.node(),n).tween,o=0,s=i.length;o<s;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?We:Ve)(n,t,e))}function Ke(t,e,n){var r=t._id;return t.each(function(){var t=Pe(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return je(t,r).value[e]}}function Je(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function tn(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function en(){}n.dn(Qe),n.dn(Je);var nn=.7,rn=1/nn,on="\\s*([+-]?\\d+)\\s*",sn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",an="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ln=/^#([0-9a-f]{3,8})$/,un=new RegExp(`^rgb\\(${on},${on},${on}\\)$`),cn=new RegExp(`^rgb\\(${an},${an},${an}\\)$`),hn=new RegExp(`^rgba\\(${on},${on},${on},${sn}\\)$`),fn=new RegExp(`^rgba\\(${an},${an},${an},${sn}\\)$`),pn=new RegExp(`^hsl\\(${sn},${an},${an}\\)$`),dn=new RegExp(`^hsla\\(${sn},${an},${an},${sn}\\)$`),gn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function yn(){return this.rgb().formatHex()}function mn(){return this.rgb().formatRgb()}function _n(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=ln.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?bn(e):3===n?new kn(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?xn(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?xn(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=un.exec(t))?new kn(e[1],e[2],e[3],1):(e=cn.exec(t))?new kn(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=hn.exec(t))?xn(e[1],e[2],e[3],e[4]):(e=fn.exec(t))?xn(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=pn.exec(t))?Nn(e[1],e[2]/100,e[3]/100,1):(e=dn.exec(t))?Nn(e[1],e[2]/100,e[3]/100,e[4]):gn.hasOwnProperty(t)?bn(gn[t]):"transparent"===t?new kn(NaN,NaN,NaN,0):null}function bn(t){return new kn(t>>16&255,t>>8&255,255&t,1)}function xn(t,e,n,r){return r<=0&&(t=e=n=NaN),new kn(t,e,n,r)}function vn(t){return t instanceof en||(t=_n(t)),t?new kn((t=t.rgb()).r,t.g,t.b,t.opacity):new kn}function wn(t,e,n,r){return 1===arguments.length?vn(t):new kn(t,e,n,r??1)}function kn(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function An(){return`#${$n(this.r)}${$n(this.g)}${$n(this.b)}`}function Tn(){const t=Sn(this.opacity);return`${1===t?"rgb(":"rgba("}${Mn(this.r)}, ${Mn(this.g)}, ${Mn(this.b)}${1===t?")":`, ${t})`}`}function Sn(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Mn(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function $n(t){return((t=Mn(t))<16?"0":"")+t.toString(16)}function Nn(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Cn(t,e,n,r)}function En(t){if(t instanceof Cn)return new Cn(t.h,t.s,t.l,t.opacity);if(t instanceof en||(t=_n(t)),!t)return new Cn;if(t instanceof Cn)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,a=o-i,l=(o+i)/2;return a?(s=e===o?(n-r)/a+6*(n<r):n===o?(r-e)/a+2:(e-n)/a+4,a/=l<.5?o+i:2-o-i,s*=60):a=l>0&&l<1?0:s,new Cn(s,a,l,t.opacity)}function Cn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Dn(t){return(t=(t||0)%360)<0?t+360:t}function Rn(t){return Math.max(0,Math.min(1,t||0))}function On(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function zn(t,e,n,r,i){var o=t*t,s=o*t;return((1-3*t+3*o-s)*e+(4-6*o+3*s)*n+(1+3*t+3*o-3*s)*r+s*i)/6}function Ln(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],s=r>0?t[r-1]:2*i-o,a=r<e-1?t[r+2]:2*o-i;return zn((n-r/e)*e,s,i,o,a)}}function Pn(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],s=t[(r+1)%e],a=t[(r+2)%e];return zn((n-r/e)*e,i,o,s,a)}}Je(en,_n,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:yn,formatHex:yn,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return En(this).formatHsl()},formatRgb:mn,toString:mn}),Je(kn,wn,tn(en,{brighter(t){return t=null==t?rn:Math.pow(rn,t),new kn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?nn:Math.pow(nn,t),new kn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new kn(Mn(this.r),Mn(this.g),Mn(this.b),Sn(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:An,formatHex:An,formatHex8:function(){return`#${$n(this.r)}${$n(this.g)}${$n(this.b)}${$n(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Tn,toString:Tn})),Je(Cn,function(t,e,n,r){return 1===arguments.length?En(t):new Cn(t,e,n,r??1)},tn(en,{brighter(t){return t=null==t?rn:Math.pow(rn,t),new Cn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?nn:Math.pow(nn,t),new Cn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new kn(On(t>=240?t-240:t+120,i,r),On(t,i,r),On(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Cn(Dn(this.h),Rn(this.s),Rn(this.l),Sn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Sn(this.opacity);return`${1===t?"hsl(":"hsla("}${Dn(this.h)}, ${100*Rn(this.s)}%, ${100*Rn(this.l)}%${1===t?")":`, ${t})`}`}})),n.dn(Ln),n.dn(Pn);const jn=t=>()=>t;function In(t,e){return function(n){return t+n*e}}function Un(t){return 1===(t=+t)?Fn:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):jn(isNaN(e)?n:e)}}function Fn(t,e){var n=e-t;return n?In(t,n):jn(isNaN(t)?e:t)}n.dn(jn);const Bn=function t(e){var n=Un(e);function r(t,e){var r=n((t=wn(t)).r,(e=wn(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),s=Fn(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=s(e),t+""}}return r.gamma=t,r}(1);function Hn(t){return function(e){var n,r,i=e.length,o=new Array(i),s=new Array(i),a=new Array(i);for(n=0;n<i;++n)r=wn(e[n]),o[n]=r.r||0,s[n]=r.g||0,a[n]=r.b||0;return o=t(o),s=t(s),a=t(a),r.opacity=1,function(t){return r.r=o(t),r.g=s(t),r.b=a(t),r+""}}}Hn(Ln),Hn(Pn);n.dn(Zn);var Yn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,qn=new RegExp(Yn.source,"g");function Zn(t,e){var n,r,i,o=Yn.lastIndex=qn.lastIndex=0,s=-1,a=[],l=[];for(t+="",e+="";(n=Yn.exec(t))&&(r=qn.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),a[s]?a[s]+=i:a[++s]=i),(n=n[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,l.push({i:s,x:Fe(n,r)})),o=qn.lastIndex;return o<e.length&&(i=e.slice(o),a[s]?a[s]+=i:a[++s]=i),a.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,r=0;r<e;++r)a[(n=l[r]).i]=n.x(t);return a.join("")})}function Gn(t,e){var n;return("number"==typeof e?Fe:e instanceof _n?Bn:(n=_n(e))?(e=n,Bn):Zn)(t,e)}function Xn(t){return function(){this.removeAttribute(t)}}function Wn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Vn(t,e,n){var r,i,o=n+"";return function(){var s=this.getAttribute(t);return s===o?null:s===r?i:i=e(r=s,n)}}function Qn(t,e,n){var r,i,o=n+"";return function(){var s=this.getAttributeNS(t.space,t.local);return s===o?null:s===r?i:i=e(r=s,n)}}function Kn(t,e,n){var r,i,o;return function(){var s,a,l=n(this);if(null!=l)return(s=this.getAttribute(t))===(a=l+"")?null:s===r&&a===i?o:(i=a,o=e(r=s,l));this.removeAttribute(t)}}function Jn(t,e,n){var r,i,o;return function(){var s,a,l=n(this);if(null!=l)return(s=this.getAttributeNS(t.space,t.local))===(a=l+"")?null:s===r&&a===i?o:(i=a,o=e(r=s,l));this.removeAttributeNS(t.space,t.local)}}function tr(t,e){var n=tt(t),r="transform"===n?Xe:Gn;return this.attrTween(t,"function"==typeof e?(n.local?Jn:Kn)(n,r,Ke(this,"attr."+t,e)):null==e?(n.local?Wn:Xn)(n):(n.local?Qn:Vn)(n,r,e))}function er(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,i)),n}return i._value=e,i}function nr(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,i)),n}return i._value=e,i}function rr(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=tt(t);return this.tween(n,(r.local?er:nr)(r,e))}function ir(t,e){return function(){Le(this,t).delay=+e.apply(this,arguments)}}function or(t,e){return e=+e,function(){Le(this,t).delay=e}}function sr(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?ir:or)(e,t)):je(this.node(),e).delay}function ar(t,e){return function(){Pe(this,t).duration=+e.apply(this,arguments)}}function lr(t,e){return e=+e,function(){Pe(this,t).duration=e}}function ur(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?ar:lr)(e,t)):je(this.node(),e).duration}function cr(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){Pe(this,t).ease=e}}(e,t)):je(this.node(),e).ease}function hr(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;Pe(this,t).ease=n}}(this._id,t))}function fr(t){"function"!=typeof t&&(t=w(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,s=e[i],a=s.length,l=r[i]=[],u=0;u<a;++u)(o=s[u])&&t.call(o,o.__data__,u,s)&&l.push(o);return new $r(r,this._parents,this._name,this._id)}function pr(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),s=new Array(r),a=0;a<o;++a)for(var l,u=e[a],c=n[a],h=u.length,f=s[a]=new Array(h),p=0;p<h;++p)(l=u[p]||c[p])&&(f[p]=l);for(;a<r;++a)s[a]=e[a];return new $r(s,this._parents,this._name,this._id)}function dr(t,e){var n=this._id;return arguments.length<2?je(this.node(),n).on.on(t):this.each(function(t,e,n){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?Le:Pe;return function(){var s=o(this,t),a=s.on;a!==r&&(i=(r=a).copy()).on(e,n),s.on=i}}(n,t,e))}function gr(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))}function yr(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=y(t));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s)for(var a,l,u=r[s],c=u.length,h=o[s]=new Array(c),f=0;f<c;++f)(a=u[f])&&(l=t.call(a,a.__data__,f,u))&&("__data__"in a&&(l.__data__=a.__data__),h[f]=l,ze(h[f],e,n,f,h,je(a,n)));return new $r(o,this._parents,e,n)}function mr(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=b(t));for(var r=this._groups,i=r.length,o=[],s=[],a=0;a<i;++a)for(var l,u=r[a],c=u.length,h=0;h<c;++h)if(l=u[h]){for(var f,p=t.call(l,l.__data__,h,u),d=je(l,n),g=0,y=p.length;g<y;++g)(f=p[g])&&ze(f,e,n,g,p,d);o.push(p),s.push(l)}return new $r(o,s,e,n)}n.dn(Gn),n.dn(tr),n.dn(rr),n.dn(sr),n.dn(ur),n.dn(cr),n.dn(hr),n.dn(fr),n.dn(pr),n.dn(dr),n.dn(gr),n.dn(yr),n.dn(mr),n.dn(br);var _r=le.prototype.constructor;function br(){return new _r(this._groups,this._parents)}function xr(t){return function(){this.style.removeProperty(t)}}function vr(t,e,n){var r="transform"==(t+="")?Ge:Gn;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var o=pt(this,t),s=(this.style.removeProperty(t),pt(this,t));return o===s?null:o===n&&s===r?i:i=e(n=o,r=s)}}(t,r)).on("end.style."+t,xr(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,o;return function(){var s=pt(this,t),a=n(this),l=a+"";return null==a&&(this.style.removeProperty(t),l=a=pt(this,t)),s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a))}}(t,r,Ke(this,"style."+t,e))).each(function(t,e){var n,r,i,o,s="style."+e,a="end."+s;return function(){var l=Pe(this,t),u=l.on,c=null==l.value[s]?o||(o=xr(e)):void 0;u===n&&i===c||(r=(n=u).copy()).on(a,i=c),l.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,o=n+"";return function(){var s=pt(this,t);return s===o?null:s===r?i:i=e(r=s,n)}}(t,r,e),n).on("end.style."+t,null)}function wr(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}(t,o,n)),r}return o._value=e,o}(t,e,n??""))}function kr(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=e??""}}(Ke(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))}function Ar(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&function(t){return function(e){this.textContent=t.call(this,e)}}(r)),e}return r._value=t,r}(t))}function Tr(){for(var t=this._name,e=this._id,n=Nr(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s,a=r[o],l=a.length,u=0;u<l;++u)if(s=a[u]){var c=je(s,e);ze(s,t,n,u,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new $r(r,this._parents,t,n)}function Sr(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(o,s){var a={value:s},l={value:function(){0===--i&&o()}};n.each(function(){var n=Pe(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),n.on=e}),0===i&&o()})}n.dn(vr),n.dn(wr),n.dn(kr),n.dn(Ar),n.dn(Tr),n.dn(Sr);var Mr=0;function $r(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Nr(){return++Mr}var Er=le.prototype;$r.prototype=function(t){return le().transition(t)}.prototype={constructor:$r,select:yr,selectAll:mr,selectChild:Er.selectChild,selectChildren:Er.selectChildren,filter:fr,merge:pr,selection:br,transition:Tr,call:Er.call,nodes:Er.nodes,node:Er.node,size:Er.size,empty:Er.empty,each:Er.each,on:dr,attr:tr,attrTween:rr,style:vr,styleTween:wr,text:kr,textTween:Ar,remove:gr,tween:Qe,delay:sr,duration:ur,ease:cr,easeVarying:hr,end:Sr,[Symbol.iterator]:Er[Symbol.iterator]},n.dn(jr);var Cr,Dr,Rr,Or,zr,Lr={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Pr(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function jr(t){var e,n;t instanceof $r?(e=t._id,t=t._name):(e=Nr(),(n=Lr).time=Te(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s,a=r[o],l=a.length,u=0;u<l;++u)(s=a[u])&&ze(s,t,e,u,a,n||Pr(s,e));return new $r(r,this._parents,t,e)}le.prototype.interrupt=Ue,le.prototype.transition=jr,n.dn(function(){return ni(Wr)});var Ir=null,Ur=null,Fr=null;const{abs:Br,max:Hr,min:Yr}=Math;function qr(t){return[+t[0],+t[1]]}function Zr(t){return[qr(t[0]),qr(t[1])]}var Gr={name:"x",handles:["w","e"].map(Qr),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},Xr={name:"y",handles:["n","s"].map(Qr),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},Wr={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Qr),input:function(t){return null==t?null:Zr(t)},output:function(t){return t}},Vr=null;function Qr(t){return{type:t}}function Kr(t){return!t.ctrlKey&&!t.button}function Jr(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function ti(){return navigator.maxTouchPoints||"ontouchstart"in this}function ei(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function ni(t){var e,n=Jr,r=Kr,i=ti,o=!0,s=(void 0)("start","brush","end"),a=6;function l(e){var n=e.property("__brush",g).selectAll(".overlay").data([Qr("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Vr.overlay).merge(n).each(function(){var t=ei(this).extent;Dr(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])}),e.selectAll(".selection").data([Qr("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Vr.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,function(t){return t.type});r.exit().remove(),r.enter().append("rect").attr("class",function(t){return"handle handle--"+t.type}).attr("cursor",function(t){return Vr[t.type]}),e.each(u).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",f).filter(i).on("touchstart.brush",f).on("touchmove.brush",p).on("touchend.brush touchcancel.brush",d).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function u(){var t=Dr(this),e=ei(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",function(t){return"e"===t.type[t.type.length-1]?e[1][0]-a/2:e[0][0]-a/2}).attr("y",function(t){return"s"===t.type[0]?e[1][1]-a/2:e[0][1]-a/2}).attr("width",function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+a:a}).attr("height",function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+a:a})):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(t,e,n){var r=t.__brush.emitter;return!r||n&&r.clean?new h(t,e,n):r}function h(t,e,n){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=n}function f(n){if((!e||n.touches)&&r.apply(this,arguments)){var i,s,a,l,h,f,p,d,g,y,m,_=this,b=n.target.__data__.type,x="selection"===(o&&n.metaKey?b="overlay":b)?null:o&&n.altKey?Fr:Ur,v=t===Xr?null:null[b],w=t===Gr?null:null[b],k=ei(_),A=k.extent,T=k.selection,S=A[0][0],M=A[0][1],$=A[1][0],N=A[1][1],E=0,C=0,D=v&&w&&o&&n.shiftKey,R=Array.from(n.touches||[n],t=>{const e=t.identifier;return(t=Cr(t,_)).point0=t.slice(),t.identifier=e,t});Rr(_);var O=c(_,arguments,!0).beforestart();if("overlay"===b){T&&(g=!0);const e=[R[0],R[1]||R[0]];k.selection=T=[[i=t===Xr?S:Yr(e[0][0],e[1][0]),a=t===Gr?M:Yr(e[0][1],e[1][1])],[h=t===Xr?$:Hr(e[0][0],e[1][0]),p=t===Gr?N:Hr(e[0][1],e[1][1])]],R.length>1&&I(n)}else i=T[0][0],a=T[0][1],h=T[1][0],p=T[1][1];s=i,l=a,f=h,d=p;var z=Dr(_).attr("pointer-events","none"),L=z.selectAll(".overlay").attr("cursor",Vr[b]);if(n.touches)O.moved=j,O.ended=U;else{var P=Dr(n.view).on("mousemove.brush",j,!0).on("mouseup.brush",U,!0);o&&P.on("keydown.brush",function(t){switch(t.keyCode){case 16:D=v&&w;break;case 18:x===Ur&&(v&&(h=f-E*v,i=s+E*v),w&&(p=d-C*w,a=l+C*w),x=Fr,I(t));break;case 32:x!==Ur&&x!==Fr||(v<0?h=f-E:v>0&&(i=s-E),w<0?p=d-C:w>0&&(a=l-C),x=Ir,L.attr("cursor",Vr.selection),I(t));break;default:return}zr(t)},!0).on("keyup.brush",function(t){switch(t.keyCode){case 16:D&&(y=m=D=!1,I(t));break;case 18:x===Fr&&(v<0?h=f:v>0&&(i=s),w<0?p=d:w>0&&(a=l),x=Ur,I(t));break;case 32:x===Ir&&(t.altKey?(v&&(h=f-E*v,i=s+E*v),w&&(p=d-C*w,a=l+C*w),x=Fr):(v<0?h=f:v>0&&(i=s),w<0?p=d:w>0&&(a=l),x=Ur),L.attr("cursor",Vr[b]),I(t));break;default:return}zr(t)},!0),(void 0)(n.view)}u.call(_),O.start(n,x.name)}function j(t){for(const e of t.changedTouches||[t])for(const t of R)t.identifier===e.identifier&&(t.cur=Cr(e,_));if(D&&!y&&!m&&1===R.length){const t=R[0];Br(t.cur[0]-t[0])>Br(t.cur[1]-t[1])?m=!0:y=!0}for(const t of R)t.cur&&(t[0]=t.cur[0],t[1]=t.cur[1]);g=!0,zr(t),I(t)}function I(t){const e=R[0],n=e.point0;var r;switch(E=e[0]-n[0],C=e[1]-n[1],x){case Ir:case null:v&&(E=Hr(S-i,Yr($-h,E)),s=i+E,f=h+E),w&&(C=Hr(M-a,Yr(N-p,C)),l=a+C,d=p+C);break;case Ur:R[1]?(v&&(s=Hr(S,Yr($,R[0][0])),f=Hr(S,Yr($,R[1][0])),v=1),w&&(l=Hr(M,Yr(N,R[0][1])),d=Hr(M,Yr(N,R[1][1])),w=1)):(v<0?(E=Hr(S-i,Yr($-i,E)),s=i+E,f=h):v>0&&(E=Hr(S-h,Yr($-h,E)),s=i,f=h+E),w<0?(C=Hr(M-a,Yr(N-a,C)),l=a+C,d=p):w>0&&(C=Hr(M-p,Yr(N-p,C)),l=a,d=p+C));break;case Fr:v&&(s=Hr(S,Yr($,i-E*v)),f=Hr(S,Yr($,h+E*v))),w&&(l=Hr(M,Yr(N,a-C*w)),d=Hr(M,Yr(N,p+C*w)))}f<s&&(v*=-1,r=i,i=h,h=r,r=s,s=f,f=r,b in null&&L.attr("cursor",Vr[b=null[b]])),d<l&&(w*=-1,r=a,a=p,p=r,r=l,l=d,d=r,b in null&&L.attr("cursor",Vr[b=null[b]])),k.selection&&(T=k.selection),y&&(s=T[0][0],f=T[1][0]),m&&(l=T[0][1],d=T[1][1]),T[0][0]===s&&T[0][1]===l&&T[1][0]===f&&T[1][1]===d||(k.selection=[[s,l],[f,d]],u.call(_),O.brush(t,x.name))}function U(t){if((void 0)(t),t.touches){if(t.touches.length)return;e&&clearTimeout(e),e=setTimeout(function(){e=null},500)}else(void 0)(t.view,g),P.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);z.attr("pointer-events","all"),L.attr("cursor",Vr.overlay),k.selection&&(T=k.selection),function(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}(T)&&(k.selection=null,u.call(_)),O.end(t,x.name)}}function p(t){c(this,arguments).moved(t)}function d(t){c(this,arguments).ended(t)}function g(){var e=this.__brush||{selection:null};return e.extent=Zr(n.apply(this,arguments)),e.dim=t,e}return l.move=function(e,n,r){e.tween?e.on("start.brush",function(t){c(this,arguments).beforestart().start(t)}).on("interrupt.brush end.brush",function(t){c(this,arguments).end(t)}).tween("brush",function(){var e=this,r=e.__brush,i=c(e,arguments),o=r.selection,s=t.input("function"==typeof n?n.apply(this,arguments):n,r.extent),a=(void 0)(o,s);function l(t){r.selection=1===t&&null===s?null:a(t),u.call(e),i.brush()}return null!==o&&null!==s?l:l(1)}):e.each(function(){var e=this,i=arguments,o=e.__brush,s=t.input("function"==typeof n?n.apply(e,i):n,o.extent),a=c(e,i).beforestart();Rr(e),o.selection=null===s?null:s,u.call(e),a.start(r).brush(r).end(r)})},l.clear=function(t,e){l.move(t,null,e)},h.prototype={beforestart:function(){return 1===++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(t,e){return this.starting?(this.starting=!1,this.emit("start",t,e)):this.emit("brush",t),this},brush:function(t,e){return this.emit("brush",t,e),this},end:function(t,e){return 0===--this.active&&(delete this.state.emitter,this.emit("end",t,e)),this},emit:function(e,n,r){var i=Dr(this.that).datum();s.call(e,this.that,new(void 0)(e,{sourceEvent:n,target:l,selection:t.output(this.state.selection),mode:r,dispatch:s}),i)}},l.extent=function(t){return arguments.length?(n="function"==typeof t?t:Or(Zr(t)),l):n},l.filter=function(t){return arguments.length?(r="function"==typeof t?t:Or(!!t),l):r},l.touchable=function(t){return arguments.length?(i="function"==typeof t?t:Or(!!t),l):i},l.handleSize=function(t){return arguments.length?(a=+t,l):a},l.keyModifiers=function(t){return arguments.length?(o=!!t,l):o},l.on=function(){var t=s.on.apply(s,arguments);return t===s?l:t},l}function ri(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function ii(t,e){if(!isFinite(t)||0===t)return null;var n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function oi(t){return(t=ii(Math.abs(t)))?t[1]:NaN}function si(t,e){return function(n,r){for(var i=n.length,o=[],s=0,a=t[0],l=0;i>0&&a>0&&(l+a+1>r&&(a=Math.max(1,r-l)),o.push(n.substring(i-=a,i+a)),!((l+=a+1)>r));)a=t[s=(s+1)%t.length];return o.reverse().join(e)}}function ai(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}n.dn(ri),n.dn(oi),n.dn(si),n.dn(ai);var li,ui=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ci(t){if(!(e=ui.exec(t)))throw new Error("invalid format: "+t);var e;return new hi({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function hi(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function fi(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}function pi(t,e){var n=ii(t,e);if(!n)return li=void 0,t.toPrecision(e);var r=n[0],i=n[1],o=i-(li=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+ii(t,Math.max(0,e+o-1))[0]}function di(t,e){var n=ii(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}ci.prototype=hi.prototype,hi.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type},n.dn(fi),n.dn(pi),n.dn(di);const gi={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:ri,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>di(100*t,e),r:di,s:pi,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function yi(t){return t}n.dn(yi),n.dn(wi);var mi,_i,bi,xi=Array.prototype.map,vi=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function wi(t){var e=void 0===t.grouping||void 0===t.thousands?yi:si(xi.call(t.grouping,Number),t.thousands+""),n=void 0===t.currency?"":t.currency[0]+"",r=void 0===t.currency?"":t.currency[1]+"",i=void 0===t.decimal?".":t.decimal+"",o=void 0===t.numerals?yi:ai(xi.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",a=void 0===t.minus?"−":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function u(t,u){var c=(t=ci(t)).fill,h=t.align,f=t.sign,p=t.symbol,d=t.zero,g=t.width,y=t.comma,m=t.precision,_=t.trim,b=t.type;"n"===b?(y=!0,b="g"):gi[b]||(void 0===m&&(m=12),_=!0,b="g"),(d||"0"===c&&"="===h)&&(d=!0,c="0",h="=");var x=(u&&void 0!==u.prefix?u.prefix:"")+("$"===p?n:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():""),v=("$"===p?r:/[%p]/.test(b)?s:"")+(u&&void 0!==u.suffix?u.suffix:""),w=gi[b],k=/[defgprs%]/.test(b);function A(t){var n,r,s,u=x,p=v;if("c"===b)p=w(t)+p,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:w(Math.abs(t),m),_&&(t=fi(t)),A&&0===+t&&"+"!==f&&(A=!1),u=(A?"("===f?f:a:"-"===f||"("===f?"":f)+u,p=("s"!==b||isNaN(t)||void 0===li?"":vi[8+li/3])+p+(A&&"("===f?")":""),k)for(n=-1,r=t.length;++n<r;)if(48>(s=t.charCodeAt(n))||s>57){p=(46===s?i+t.slice(n+1):t.slice(n))+p,t=t.slice(0,n);break}}y&&!d&&(t=e(t,1/0));var T=u.length+t.length+p.length,S=T<g?new Array(g-T+1).join(c):"";switch(y&&d&&(t=e(S+t,S.length?g-p.length:1/0),S=""),h){case"<":t=u+t+p+S;break;case"=":t=u+S+t+p;break;case"^":t=S.slice(0,T=S.length>>1)+u+t+p+S.slice(T);break;default:t=S+u+t+p}return o(t)}return m=void 0===m?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),A.toString=function(){return t+""},A}return{format:u,formatPrefix:function(t,e){var n=3*Math.max(-8,Math.min(8,Math.floor(oi(e)/3))),r=Math.pow(10,-n),i=u(((t=ci(t)).type="f",t),{suffix:vi[8+n/3]});return function(t){return i(r*t)}}}}function ki(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function Ai(){return this.eachAfter(ki)}function Ti(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this}function Si(t,e){for(var n,r,i=this,o=[i],s=-1;i=o.pop();)if(t.call(e,i,++s,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this}function Mi(t,e){for(var n,r,i,o=this,s=[o],a=[],l=-1;o=s.pop();)if(a.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)s.push(n[r]);for(;o=a.pop();)t.call(e,o,++l,this);return this}function $i(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r}function Ni(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})}function Ei(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function Ci(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();for(;t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r}function Di(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function Ri(){return Array.from(this)}function Oi(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function zi(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}function*Li(){var t,e,n,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,e=i.children)for(n=0,r=e.length;n<r;++n)o.push(e[n])}while(o.length)}function Pi(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=Ii)):void 0===e&&(e=ji);for(var n,r,i,o,s,a=new Bi(t),l=[a];n=l.pop();)if((i=e(n.data))&&(s=(i=Array.from(i)).length))for(n.children=i,o=s-1;o>=0;--o)l.push(r=i[o]=new Bi(i[o])),r.parent=n,r.depth=n.depth+1;return a.eachBefore(Fi)}function ji(t){return t.children}function Ii(t){return Array.isArray(t)?t[1]:null}function Ui(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Fi(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Bi(t){this.data=t,this.depth=this.height=0,this.parent=null}function Hi(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Yi(t,e,n,r,i){for(var o,s=t.children,a=-1,l=s.length,u=t.value&&(r-e)/t.value;++a<l;)(o=s[a]).y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*u}function qi(t,e,n,r,i){for(var o,s=t.children,a=-1,l=s.length,u=t.value&&(i-n)/t.value;++a<l;)(o=s[a]).x0=e,o.x1=r,o.y0=n,o.y1=n+=o.value*u}mi=wi({thousands:",",grouping:[3],currency:["$",""]}),_i=mi.format,bi=mi.formatPrefix,n.dn(Ai),n.dn(Ti),n.dn(Si),n.dn(Mi),n.dn($i),n.dn(Ni),n.dn(Ei),n.dn(Ci),n.dn(Di),n.dn(Ri),n.dn(Oi),n.dn(zi),n.dn(Li),Bi.prototype=Pi.prototype={constructor:Bi,count:Ai,each:Ti,eachAfter:Mi,eachBefore:Si,find:$i,sum:Ni,sort:Ei,path:Ci,ancestors:Di,descendants:Ri,leaves:Oi,links:zi,copy:function(){return Pi(this).eachBefore(Ui)},[Symbol.iterator]:Li},n.dn(Hi),n.dn(Yi),n.dn(qi);const Zi=function t(e){function n(t,n,r,i,o){!function(t,e,n,r,i,o){for(var s,a,l,u,c,h,f,p,d,g,y,m=[],_=e.children,b=0,x=0,v=_.length,w=e.value;b<v;){l=i-n,u=o-r;do{c=_[x++].value}while(!c&&x<v);for(h=f=c,y=c*c*(g=Math.max(u/l,l/u)/(w*t)),d=Math.max(f/y,y/h);x<v;++x){if(c+=a=_[x].value,a<h&&(h=a),a>f&&(f=a),y=c*c*g,(p=Math.max(f/y,y/h))>d){c-=a;break}d=p}m.push(s={value:c,dice:l<u,children:_.slice(b,x)}),s.dice?Yi(s,n,r,i,w?r+=u*c/w:o):qi(s,n,r,w?n+=l*c/w:i,o),w-=c,b=x}}(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}((1+Math.sqrt(5))/2);function Gi(t){if("function"!=typeof t)throw new Error;return t}function Xi(){return 0}function Wi(t){return function(){return t}}function Vi(){var t=Zi,e=!1,n=1,r=1,i=[0],o=Xi,s=Xi,a=Xi,l=Xi,u=Xi;function c(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(Hi),t}function h(e){var n=i[e.depth],r=e.x0+n,c=e.y0+n,h=e.x1-n,f=e.y1-n;h<r&&(r=h=(r+h)/2),f<c&&(c=f=(c+f)/2),e.x0=r,e.y0=c,e.x1=h,e.y1=f,e.children&&(n=i[e.depth+1]=o(e)/2,r+=u(e)-n,c+=s(e)-n,(h-=a(e)-n)<r&&(r=h=(r+h)/2),(f-=l(e)-n)<c&&(c=f=(c+f)/2),t(e,r,c,h,f))}return c.round=function(t){return arguments.length?(e=!!t,c):e},c.size=function(t){return arguments.length?(n=+t[0],r=+t[1],c):[n,r]},c.tile=function(e){return arguments.length?(t=Gi(e),c):t},c.padding=function(t){return arguments.length?c.paddingInner(t).paddingOuter(t):c.paddingInner()},c.paddingInner=function(t){return arguments.length?(o="function"==typeof t?t:Wi(+t),c):o},c.paddingOuter=function(t){return arguments.length?c.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):c.paddingTop()},c.paddingTop=function(t){return arguments.length?(s="function"==typeof t?t:Wi(+t),c):s},c.paddingRight=function(t){return arguments.length?(a="function"==typeof t?t:Wi(+t),c):a},c.paddingBottom=function(t){return arguments.length?(l="function"==typeof t?t:Wi(+t),c):l},c.paddingLeft=function(t){return arguments.length?(u="function"==typeof t?t:Wi(+t),c):u},c}n.dn(Wi),n.dn(Vi);const Qi=Math.PI/180,Ki=180/Math.PI,Ji=.96422,to=.82521,eo=4/29,no=6/29,ro=3*no*no,io=no*no*no;function oo(t){if(t instanceof so)return new so(t.l,t.a,t.b,t.opacity);if(t instanceof po)return go(t);t instanceof kn||(t=vn(t));var e,n,r=co(t.r),i=co(t.g),o=co(t.b),s=ao((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?e=n=s:(e=ao((.4360747*r+.3850649*i+.1430804*o)/Ji),n=ao((.0139322*r+.0971045*i+.7141733*o)/to)),new so(116*s-16,500*(e-s),200*(s-n),t.opacity)}function so(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function ao(t){return t>io?Math.pow(t,1/3):t/ro+eo}function lo(t){return t>no?t*t*t:ro*(t-eo)}function uo(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function co(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function ho(t){if(t instanceof po)return new po(t.h,t.c,t.l,t.opacity);if(t instanceof so||(t=oo(t)),0===t.a&&0===t.b)return new po(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Ki;return new po(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function fo(t,e,n,r){return 1===arguments.length?ho(t):new po(t,e,n,r??1)}function po(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function go(t){if(isNaN(t.h))return new so(t.l,0,0,t.opacity);var e=t.h*Qi;return new so(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}function yo(t){return function(e,n){var r=t((e=fo(e)).h,(n=fo(n)).h),i=Fn(e.c,n.c),o=Fn(e.l,n.l),s=Fn(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=o(t),e.opacity=s(t),e+""}}}Je(so,function(t,e,n,r){return 1===arguments.length?oo(t):new so(t,e,n,r??1)},tn(en,{brighter(t){return new so(this.l+18*(t??1),this.a,this.b,this.opacity)},darker(t){return new so(this.l-18*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new kn(uo(3.1338561*(e=Ji*lo(e))-1.6168667*(t=1*lo(t))-.4906146*(n=to*lo(n))),uo(-.9787684*e+1.9161415*t+.033454*n),uo(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),Je(po,fo,tn(en,{brighter(t){return new po(this.h,this.c,this.l+18*(t??1),this.opacity)},darker(t){return new po(this.h,this.c,this.l-18*(t??1),this.opacity)},rgb(){return go(this).rgb()}}));const mo=yo(function(t,e){var n=e-t;return n?In(t,n>180||n<-180?n-360*Math.round(n/360):n):jn(isNaN(t)?e:t)});yo(Fn);function _o(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}class bo extends Map{constructor(t,e=ko){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(xo(this,t))}has(t){return super.has(xo(this,t))}set(t,e){return super.set(vo(this,t),e)}delete(t){return super.delete(wo(this,t))}}Set;function xo({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function vo({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function wo({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function ko(t){return null!==t&&"object"==typeof t?t.valueOf():t}const Ao=Symbol("implicit");function To(){var t=new bo,e=[],n=[],r=Ao;function i(i){let o=t.get(i);if(void 0===o){if(r!==Ao)return r;t.set(i,o=e.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new bo;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return To(e,n).unknown(r)},_o.apply(i,arguments),i}function So(){var t,e,n=To().unknown(void 0),r=n.domain,i=n.range,o=0,s=1,a=!1,l=0,u=0,c=.5;function h(){var n=r().length,h=s<o,f=h?s:o,p=h?o:s;t=(p-f)/Math.max(1,n-l+2*u),a&&(t=Math.floor(t)),f+=(p-f-t*(n-l))*c,e=t*(1-l),a&&(f=Math.round(f),e=Math.round(e));var d=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o}(n).map(function(e){return f+t*e});return i(h?d.reverse():d)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),h()):r()},n.range=function(t){return arguments.length?([o,s]=t,o=+o,s=+s,h()):[o,s]},n.rangeRound=function(t){return[o,s]=t,o=+o,s=+s,a=!0,h()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(a=!!t,h()):a},n.padding=function(t){return arguments.length?(l=Math.min(1,u=+t),h()):l},n.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),h()):l},n.paddingOuter=function(t){return arguments.length?(u=+t,h()):u},n.align=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),h()):c},n.copy=function(){return So(r(),[o,s]).round(a).paddingInner(l).paddingOuter(u).align(c)},_o.apply(h(),arguments)}const Mo=Math.sqrt(50),$o=Math.sqrt(10),No=Math.sqrt(2);function Eo(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),s=o>=Mo?10:o>=$o?5:o>=No?2:1;let a,l,u;return i<0?(u=Math.pow(10,-i)/s,a=Math.round(t*u),l=Math.round(e*u),a/u<t&&++a,l/u>e&&--l,u=-u):(u=Math.pow(10,i)*s,a=Math.round(t/u),l=Math.round(e/u),a*u<t&&++a,l*u>e&&--l),l<a&&.5<=n&&n<2?Eo(t,e,2*n):[a,l,u]}function Co(t,e,n){return Eo(t=+t,e=+e,n=+n)[2]}function Do(t,e,n){n=+n;const r=(e=+e)<(t=+t),i=r?Co(e,t,n):Co(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}function Ro(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Oo(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function zo(t){let e,n,r;function i(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{const e=i+o>>>1;n(t[e],r)<0?i=e+1:o=e}while(i<o)}return i}return 2!==t.length?(e=Ro,n=(e,n)=>Ro(t(e),n),r=(e,n)=>t(e)-n):(e=t===Ro||t===Oo?t:Lo,n=t,r=t),{left:i,center:function(t,e,n=0,o=t.length){const s=i(t,e,n,o-1);return s>n&&r(t[s-1],e)>-r(t[s],e)?s-1:s},right:function(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{const e=i+o>>>1;n(t[e],r)<=0?i=e+1:o=e}while(i<o)}return i}}}function Lo(){return 0}const Po=zo(Ro),jo=Po.right,Io=(Po.left,zo(function(t){return null===t?NaN:+t}).center,jo);function Uo(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),s=new Array(r);for(n=0;n<i;++n)o[n]=Yo(t[n],e[n]);for(;n<r;++n)s[n]=e[n];return function(t){for(n=0;n<i;++n)s[n]=o[n](t);return s}}function Fo(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Bo(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=Yo(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}function Ho(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function Yo(t,e){var n,r,i=typeof e;return null==e||"boolean"===i?jn(e):("number"===i?Fe:"string"===i?(n=_n(e))?(e=n,Bn):Zn:e instanceof _n?Bn:e instanceof Date?Fo:(r=e,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(e)?Uo:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Bo:Fe:Ho))(t,e)}function qo(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Zo(t){return+t}n.dn(function(t,e){return((void 0)(e)?void 0:Uo)(t,e)}),n.dn(Fo),n.dn(Bo),n.dn(Ho),n.dn(Yo),n.dn(qo);var Go=[0,1];function Xo(t){return t}function Wo(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function Vo(t,e,n){var r=t[0],i=t[1],o=e[0],s=e[1];return i<r?(r=Wo(i,r),o=n(s,o)):(r=Wo(r,i),o=n(o,s)),function(t){return o(r(t))}}function Qo(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),s=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<r;)i[s]=Wo(t[s],t[s+1]),o[s]=n(e[s],e[s+1]);return function(e){var n=Io(t,e,1,r)-1;return o[n](i[n](e))}}function Ko(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Jo(){var t,e,n,r,i,o,s=Go,a=Go,l=Yo,u=Xo;function c(){var t,e,n,l=Math.min(s.length,a.length);return u!==Xo&&(t=s[0],e=s[l-1],t>e&&(n=t,t=e,e=n),u=function(n){return Math.max(t,Math.min(e,n))}),r=l>2?Qo:Vo,i=o=null,h}function h(e){return null==e||isNaN(e=+e)?n:(i||(i=r(s.map(t),a,l)))(t(u(e)))}return h.invert=function(n){return u(e((o||(o=r(a,s.map(t),Fe)))(n)))},h.domain=function(t){return arguments.length?(s=Array.from(t,Zo),c()):s.slice()},h.range=function(t){return arguments.length?(a=Array.from(t),c()):a.slice()},h.rangeRound=function(t){return a=Array.from(t),l=qo,c()},h.clamp=function(t){return arguments.length?(u=!!t||Xo,c()):u!==Xo},h.interpolate=function(t){return arguments.length?(l=t,c()):l},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,c()}}function ts(){return Jo()(Xo,Xo)}function es(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(oi(e)/3)))-oi(Math.abs(t)))}function ns(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,oi(e)-oi(t))+1}function rs(t){return Math.max(0,-oi(Math.abs(t)))}function is(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){if(!((n=+n)>0))return[];if((t=+t)===(e=+e))return[t];const r=e<t,[i,o,s]=r?Eo(e,t,n):Eo(t,e,n);if(!(o>=i))return[];const a=o-i+1,l=new Array(a);if(r)if(s<0)for(let t=0;t<a;++t)l[t]=(o-t)/-s;else for(let t=0;t<a;++t)l[t]=(o-t)*s;else if(s<0)for(let t=0;t<a;++t)l[t]=(i+t)/-s;else for(let t=0;t<a;++t)l[t]=(i+t)*s;return l}(n[0],n[n.length-1],t??10)},t.tickFormat=function(t,n){var r=e();return function(t,e,n,r){var i,o=Do(t,e,n);switch((r=ci(r??",f")).type){case"s":var s=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=es(o,s))||(r.precision=i),bi(r,s);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=ns(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=rs(o))||(r.precision=i-2*("%"===r.type))}return _i(r)}(r[0],r[r.length-1],t??10,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),s=0,a=o.length-1,l=o[s],u=o[a],c=10;for(u<l&&(i=l,l=u,u=i,i=s,s=a,a=i);c-- >0;){if((i=Co(l,u,n))===r)return o[s]=l,o[a]=u,e(o);if(i>0)l=Math.floor(l/i)*i,u=Math.ceil(u/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,u=Math.floor(u*i)/i}r=i}return t},t}function os(){var t=ts();return t.copy=function(){return Ko(t,os())},_o.apply(t,arguments),is(t)}n.dn(es),n.dn(ns),n.dn(rs);const ss=1e3,as=6e4,ls=36e5,us=864e5,cs=6048e5,hs=2592e6,fs=31536e6,ps=new Date,ds=new Date;function gs(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),i.round=t=>{const e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=(t,n)=>(e(t=new Date(+t),null==n?1:Math.floor(n)),t),i.range=(n,r,o)=>{const s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;let a;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a<n&&n<r);return s},i.filter=n=>gs(e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},(t,r)=>{if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}),n&&(i.count=(e,r)=>(ps.setTime(+e),ds.setTime(+r),t(ps),t(ds),Math.floor(n(ps,ds))),i.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?e=>r(e)%t===0:e=>i.count(0,e)%t===0):i:null)),i}const ys=gs(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);ys.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?gs(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):ys:null);ys.range;const ms=gs(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*ss)},(t,e)=>(e-t)/ss,t=>t.getUTCSeconds()),_s=(ms.range,gs(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ss)},(t,e)=>{t.setTime(+t+e*as)},(t,e)=>(e-t)/as,t=>t.getMinutes())),bs=(_s.range,gs(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*as)},(t,e)=>(e-t)/as,t=>t.getUTCMinutes())),xs=(bs.range,gs(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ss-t.getMinutes()*as)},(t,e)=>{t.setTime(+t+e*ls)},(t,e)=>(e-t)/ls,t=>t.getHours())),vs=(xs.range,gs(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*ls)},(t,e)=>(e-t)/ls,t=>t.getUTCHours())),ws=(vs.range,gs(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*as)/us,t=>t.getDate()-1)),ks=(ws.range,gs(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/us,t=>t.getUTCDate()-1)),As=(ks.range,gs(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/us,t=>Math.floor(t/us)));As.range;function Ts(t){return gs(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*as)/cs)}const Ss=Ts(0),Ms=Ts(1),$s=Ts(2),Ns=Ts(3),Es=Ts(4),Cs=Ts(5),Ds=Ts(6);Ss.range,Ms.range,$s.range,Ns.range,Es.range,Cs.range,Ds.range;function Rs(t){return gs(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/cs)}const Os=Rs(0),zs=Rs(1),Ls=Rs(2),Ps=Rs(3),js=Rs(4),Is=Rs(5),Us=Rs(6),Fs=(Os.range,zs.range,Ls.range,Ps.range,js.range,Is.range,Us.range,gs(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear()),t=>t.getMonth())),Bs=(Fs.range,gs(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear()),t=>t.getUTCMonth())),Hs=(Bs.range,gs(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear()));Hs.every=t=>isFinite(t=Math.floor(t))&&t>0?gs(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)}):null;Hs.range;const Ys=gs(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Ys.every=t=>isFinite(t=Math.floor(t))&&t>0?gs(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null;Ys.range;function qs(t,e,n,r,i,o){const s=[[ms,1,ss],[ms,5,5e3],[ms,15,15e3],[ms,30,3e4],[o,1,as],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,ls],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,us],[r,2,1728e5],[n,1,cs],[e,1,hs],[e,3,7776e6],[t,1,fs]];function a(e,n,r){const i=Math.abs(n-e)/r,o=zo(([,,t])=>t).right(s,i);if(o===s.length)return t.every(Do(e/fs,n/fs,r));if(0===o)return ys.every(Math.max(Do(e,n,r),1));const[a,l]=s[i/s[o-1][2]<s[o][2]/i?o-1:o];return a.every(l)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const i=n&&"function"==typeof n.range?n:a(t,e,n),o=i?i.range(t,+e+1):[];return r?o.reverse():o},a]}const[Zs,Gs]=qs(Ys,Bs,Os,As,vs,bs),[Xs,Ws]=qs(Hs,Fs,Ss,ws,xs,_s);function Vs(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Qs(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Ks(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var Js,ta,ea={"-":"",_:" ",0:"0"},na=/^\s*\d+/,ra=/^%/,ia=/[\\^$*+?|[\]().{}]/g;function oa(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function sa(t){return t.replace(ia,"\\$&")}function aa(t){return new RegExp("^(?:"+t.map(sa).join("|")+")","i")}function la(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function ua(t,e,n){var r=na.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function ca(t,e,n){var r=na.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function ha(t,e,n){var r=na.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function fa(t,e,n){var r=na.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function pa(t,e,n){var r=na.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function da(t,e,n){var r=na.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function ga(t,e,n){var r=na.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ya(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function ma(t,e,n){var r=na.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function _a(t,e,n){var r=na.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ba(t,e,n){var r=na.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function xa(t,e,n){var r=na.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function va(t,e,n){var r=na.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function wa(t,e,n){var r=na.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function ka(t,e,n){var r=na.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Aa(t,e,n){var r=na.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Ta(t,e,n){var r=na.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Sa(t,e,n){var r=ra.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Ma(t,e,n){var r=na.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function $a(t,e,n){var r=na.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Na(t,e){return oa(t.getDate(),e,2)}function Ea(t,e){return oa(t.getHours(),e,2)}function Ca(t,e){return oa(t.getHours()%12||12,e,2)}function Da(t,e){return oa(1+ws.count(Hs(t),t),e,3)}function Ra(t,e){return oa(t.getMilliseconds(),e,3)}function Oa(t,e){return Ra(t,e)+"000"}function za(t,e){return oa(t.getMonth()+1,e,2)}function La(t,e){return oa(t.getMinutes(),e,2)}function Pa(t,e){return oa(t.getSeconds(),e,2)}function ja(t){var e=t.getDay();return 0===e?7:e}function Ia(t,e){return oa(Ss.count(Hs(t)-1,t),e,2)}function Ua(t){var e=t.getDay();return e>=4||0===e?Es(t):Es.ceil(t)}function Fa(t,e){return t=Ua(t),oa(Es.count(Hs(t),t)+(4===Hs(t).getDay()),e,2)}function Ba(t){return t.getDay()}function Ha(t,e){return oa(Ms.count(Hs(t)-1,t),e,2)}function Ya(t,e){return oa(t.getFullYear()%100,e,2)}function qa(t,e){return oa((t=Ua(t)).getFullYear()%100,e,2)}function Za(t,e){return oa(t.getFullYear()%1e4,e,4)}function Ga(t,e){var n=t.getDay();return oa((t=n>=4||0===n?Es(t):Es.ceil(t)).getFullYear()%1e4,e,4)}function Xa(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+oa(e/60|0,"0",2)+oa(e%60,"0",2)}function Wa(t,e){return oa(t.getUTCDate(),e,2)}function Va(t,e){return oa(t.getUTCHours(),e,2)}function Qa(t,e){return oa(t.getUTCHours()%12||12,e,2)}function Ka(t,e){return oa(1+ks.count(Ys(t),t),e,3)}function Ja(t,e){return oa(t.getUTCMilliseconds(),e,3)}function tl(t,e){return Ja(t,e)+"000"}function el(t,e){return oa(t.getUTCMonth()+1,e,2)}function nl(t,e){return oa(t.getUTCMinutes(),e,2)}function rl(t,e){return oa(t.getUTCSeconds(),e,2)}function il(t){var e=t.getUTCDay();return 0===e?7:e}function ol(t,e){return oa(Os.count(Ys(t)-1,t),e,2)}function sl(t){var e=t.getUTCDay();return e>=4||0===e?js(t):js.ceil(t)}function al(t,e){return t=sl(t),oa(js.count(Ys(t),t)+(4===Ys(t).getUTCDay()),e,2)}function ll(t){return t.getUTCDay()}function ul(t,e){return oa(zs.count(Ys(t)-1,t),e,2)}function cl(t,e){return oa(t.getUTCFullYear()%100,e,2)}function hl(t,e){return oa((t=sl(t)).getUTCFullYear()%100,e,2)}function fl(t,e){return oa(t.getUTCFullYear()%1e4,e,4)}function pl(t,e){var n=t.getUTCDay();return oa((t=n>=4||0===n?js(t):js.ceil(t)).getUTCFullYear()%1e4,e,4)}function dl(){return"+0000"}function gl(){return"%"}function yl(t){return+t}function ml(t){return Math.floor(+t/1e3)}function _l(t){return new Date(t)}function bl(t){return t instanceof Date?+t:+new Date(+t)}function xl(t,e,n,r,i,o,s,a,l,u){var c=ts(),h=c.invert,f=c.domain,p=u(".%L"),d=u(":%S"),g=u("%I:%M"),y=u("%I %p"),m=u("%a %d"),_=u("%b %d"),b=u("%B"),x=u("%Y");function v(t){return(l(t)<t?p:a(t)<t?d:s(t)<t?g:o(t)<t?y:r(t)<t?i(t)<t?m:_:n(t)<t?b:x)(t)}return c.invert=function(t){return new Date(h(t))},c.domain=function(t){return arguments.length?f(Array.from(t,bl)):f().map(_l)},c.ticks=function(e){var n=f();return t(n[0],n[n.length-1],e??10)},c.tickFormat=function(t,e){return null==e?v:u(e)},c.nice=function(t){var n=f();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],t??10)),t?f(function(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],s=t[i];return s<o&&(n=r,r=i,i=n,n=o,o=s,s=n),t[r]=e.floor(o),t[i]=e.ceil(s),t}(n,t)):c},c.copy=function(){return Ko(c,xl(t,e,n,r,i,o,s,a,l,u))},c}function vl(){return _o.apply(xl(Xs,Ws,Hs,Fs,Ss,ws,xs,_s,ms,ta).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function wl(t){for(var e=t.length/6|0,n=new Array(e),r=0;r<e;)n[r]="#"+t.slice(6*r,6*++r);return n}!function(t){Js=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,s=t.shortDays,a=t.months,l=t.shortMonths,u=aa(i),c=la(i),h=aa(o),f=la(o),p=aa(s),d=la(s),g=aa(a),y=la(a),m=aa(l),_=la(l),b={a:function(t){return s[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:Na,e:Na,f:Oa,g:qa,G:Ga,H:Ea,I:Ca,j:Da,L:Ra,m:za,M:La,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:yl,s:ml,S:Pa,u:ja,U:Ia,V:Fa,w:Ba,W:Ha,x:null,X:null,y:Ya,Y:Za,Z:Xa,"%":gl},x={a:function(t){return s[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:Wa,e:Wa,f:tl,g:hl,G:pl,H:Va,I:Qa,j:Ka,L:Ja,m:el,M:nl,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:yl,s:ml,S:rl,u:il,U:ol,V:al,w:ll,W:ul,x:null,X:null,y:cl,Y:fl,Z:dl,"%":gl},v={a:function(t,e,n){var r=p.exec(e.slice(n));return r?(t.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=_.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return A(t,e,n,r)},d:ba,e:ba,f:Ta,g:ga,G:da,H:va,I:va,j:xa,L:Aa,m:_a,M:wa,p:function(t,e,n){var r=u.exec(e.slice(n));return r?(t.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:ma,Q:Ma,s:$a,S:ka,u:ca,U:ha,V:fa,w:ua,W:pa,x:function(t,e,r){return A(t,n,e,r)},X:function(t,e,n){return A(t,r,e,n)},y:ga,Y:da,Z:ya,"%":Sa};function w(t,e){return function(n){var r,i,o,s=[],a=-1,l=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++a<u;)37===t.charCodeAt(a)&&(s.push(t.slice(l,a)),null!=(i=ea[r=t.charAt(++a)])?r=t.charAt(++a):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),s.push(r),l=a+1);return s.push(t.slice(l,a)),s.join("")}}function k(t,e){return function(n){var r,i,o=Ks(1900,void 0,1);if(A(o,t,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(e&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Qs(Ks(o.y,0,1))).getUTCDay(),r=i>4||0===i?zs.ceil(r):zs(r),r=ks.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=Vs(Ks(o.y,0,1))).getDay(),r=i>4||0===i?Ms.ceil(r):Ms(r),r=ws.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Qs(Ks(o.y,0,1)).getUTCDay():Vs(Ks(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Qs(o)):Vs(o)}}function A(t,e,n,r){for(var i,o,s=0,a=e.length,l=n.length;s<a;){if(r>=l)return-1;if(37===(i=e.charCodeAt(s++))){if(i=e.charAt(s++),!(o=v[i in ea?e.charAt(s++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=w(n,b),b.X=w(r,b),b.c=w(e,b),x.x=w(n,x),x.X=w(r,x),x.c=w(e,x),{format:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=k(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t+="",!0);return e.toString=function(){return t},e}}}(t),ta=Js.format,Js.parse,Js.utcFormat,Js.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),n.dn(wl);const kl=wl("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function Al(t){return"string"==typeof t?new se([[document.querySelector(t)]],[document.documentElement]):new se([[t]],oe)}function Tl(t){return function(){return t}}n.dn(Al),n.dn(Tl);const Sl=Math.abs,Ml=Math.atan2,$l=Math.cos,Nl=Math.max,El=Math.min,Cl=Math.sin,Dl=Math.sqrt,Rl=1e-12,Ol=Math.PI,zl=Ol/2,Ll=2*Ol;function Pl(t){return t>=1?zl:t<=-1?-zl:Math.asin(t)}const jl=Math.PI,Il=2*jl,Ul=1e-6,Fl=Il-Ul;function Bl(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}class Hl{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Bl:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Bl;const n=10**e;return function(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,n,r){this._append`Q${+t},${+e},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(t,e,n,r,i,o){this._append`C${+t},${+e},${+n},${+r},${this._x1=+i},${this._y1=+o}`}arcTo(t,e,n,r,i){if(t=+t,e=+e,n=+n,r=+r,(i=+i)<0)throw new Error(`negative radius: ${i}`);let o=this._x1,s=this._y1,a=n-t,l=r-e,u=o-t,c=s-e,h=u*u+c*c;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(h>Ul)if(Math.abs(c*a-l*u)>Ul&&i){let f=n-o,p=r-s,d=a*a+l*l,g=f*f+p*p,y=Math.sqrt(d),m=Math.sqrt(h),_=i*Math.tan((jl-Math.acos((d+h-g)/(2*y*m)))/2),b=_/m,x=_/y;Math.abs(b-1)>Ul&&this._append`L${t+b*u},${e+b*c}`,this._append`A${i},${i},0,0,${+(c*f>u*p)},${this._x1=t+x*a},${this._y1=e+x*l}`}else this._append`L${this._x1=t},${this._y1=e}`;else;}arc(t,e,n,r,i,o){if(t=+t,e=+e,o=!!o,(n=+n)<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(r),a=n*Math.sin(r),l=t+s,u=e+a,c=1^o,h=o?r-i:i-r;null===this._x1?this._append`M${l},${u}`:(Math.abs(this._x1-l)>Ul||Math.abs(this._y1-u)>Ul)&&this._append`L${l},${u}`,n&&(h<0&&(h=h%Il+Il),h>Fl?this._append`A${n},${n},0,1,${c},${t-s},${e-a}A${n},${n},0,1,${c},${this._x1=l},${this._y1=u}`:h>Ul&&this._append`A${n},${n},0,${+(h>=jl)},${c},${this._x1=t+n*Math.cos(i)},${this._y1=e+n*Math.sin(i)}`)}rect(t,e,n,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function Yl(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);e=t}return t},()=>new Hl(e)}function ql(t){return t.innerRadius}function Zl(t){return t.outerRadius}function Gl(t){return t.startAngle}function Xl(t){return t.endAngle}function Wl(t){return t&&t.padAngle}function Vl(t,e,n,r,i,o,s){var a=t-n,l=e-r,u=(s?o:-o)/Dl(a*a+l*l),c=u*l,h=-u*a,f=t+c,p=e+h,d=n+c,g=r+h,y=(f+d)/2,m=(p+g)/2,_=d-f,b=g-p,x=_*_+b*b,v=i-o,w=f*g-d*p,k=(b<0?-1:1)*Dl(Nl(0,v*v*x-w*w)),A=(w*b-_*k)/x,T=(-w*_-b*k)/x,S=(w*b+_*k)/x,M=(-w*_+b*k)/x,$=A-y,N=T-m,E=S-y,C=M-m;return $*$+N*N>E*E+C*C&&(A=S,T=M),{cx:A,cy:T,x01:-c,y01:-h,x11:A*(i/v-1),y11:T*(i/v-1)}}function Ql(){var t=ql,e=Zl,n=Tl(0),r=null,i=Gl,o=Xl,s=Wl,a=null,l=Yl(u);function u(){var u,c,h,f=+t.apply(this,arguments),p=+e.apply(this,arguments),d=i.apply(this,arguments)-zl,g=o.apply(this,arguments)-zl,y=Sl(g-d),m=g>d;if(a||(a=u=l()),p<f&&(c=p,p=f,f=c),p>Rl)if(y>Ll-Rl)a.moveTo(p*$l(d),p*Cl(d)),a.arc(0,0,p,d,g,!m),f>Rl&&(a.moveTo(f*$l(g),f*Cl(g)),a.arc(0,0,f,g,d,m));else{var _,b,x=d,v=g,w=d,k=g,A=y,T=y,S=s.apply(this,arguments)/2,M=S>Rl&&(r?+r.apply(this,arguments):Dl(f*f+p*p)),$=El(Sl(p-f)/2,+n.apply(this,arguments)),N=$,E=$;if(M>Rl){var C=Pl(M/f*Cl(S)),D=Pl(M/p*Cl(S));(A-=2*C)>Rl?(w+=C*=m?1:-1,k-=C):(A=0,w=k=(d+g)/2),(T-=2*D)>Rl?(x+=D*=m?1:-1,v-=D):(T=0,x=v=(d+g)/2)}var R=p*$l(x),O=p*Cl(x),z=f*$l(k),L=f*Cl(k);if($>Rl){var P,j=p*$l(v),I=p*Cl(v),U=f*$l(w),F=f*Cl(w);if(y<Ol)if(P=function(t,e,n,r,i,o,s,a){var l=n-t,u=r-e,c=s-i,h=a-o,f=h*l-c*u;if(!(f*f<Rl))return[t+(f=(c*(e-o)-h*(t-i))/f)*l,e+f*u]}(R,O,U,F,j,I,z,L)){var B=R-P[0],H=O-P[1],Y=j-P[0],q=I-P[1],Z=1/Cl(((h=(B*Y+H*q)/(Dl(B*B+H*H)*Dl(Y*Y+q*q)))>1?0:h<-1?Ol:Math.acos(h))/2),G=Dl(P[0]*P[0]+P[1]*P[1]);N=El($,(f-G)/(Z-1)),E=El($,(p-G)/(Z+1))}else N=E=0}T>Rl?E>Rl?(_=Vl(U,F,R,O,p,E,m),b=Vl(j,I,z,L,p,E,m),a.moveTo(_.cx+_.x01,_.cy+_.y01),E<$?a.arc(_.cx,_.cy,E,Ml(_.y01,_.x01),Ml(b.y01,b.x01),!m):(a.arc(_.cx,_.cy,E,Ml(_.y01,_.x01),Ml(_.y11,_.x11),!m),a.arc(0,0,p,Ml(_.cy+_.y11,_.cx+_.x11),Ml(b.cy+b.y11,b.cx+b.x11),!m),a.arc(b.cx,b.cy,E,Ml(b.y11,b.x11),Ml(b.y01,b.x01),!m))):(a.moveTo(R,O),a.arc(0,0,p,x,v,!m)):a.moveTo(R,O),f>Rl&&A>Rl?N>Rl?(_=Vl(z,L,j,I,f,-N,m),b=Vl(R,O,U,F,f,-N,m),a.lineTo(_.cx+_.x01,_.cy+_.y01),N<$?a.arc(_.cx,_.cy,N,Ml(_.y01,_.x01),Ml(b.y01,b.x01),!m):(a.arc(_.cx,_.cy,N,Ml(_.y01,_.x01),Ml(_.y11,_.x11),!m),a.arc(0,0,f,Ml(_.cy+_.y11,_.cx+_.x11),Ml(b.cy+b.y11,b.cx+b.x11),m),a.arc(b.cx,b.cy,N,Ml(b.y11,b.x11),Ml(b.y01,b.x01),!m))):a.arc(0,0,f,k,w,m):a.lineTo(z,L)}else a.moveTo(0,0);if(a.closePath(),u)return a=null,u+""||null}return u.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Ol/2;return[$l(r)*n,Cl(r)*n]},u.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Tl(+e),u):t},u.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Tl(+t),u):e},u.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:Tl(+t),u):n},u.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Tl(+t),u):r},u.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:Tl(+t),u):i},u.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:Tl(+t),u):o},u.padAngle=function(t){return arguments.length?(s="function"==typeof t?t:Tl(+t),u):s},u.context=function(t){return arguments.length?(a=t??null,u):a},u}n.dn(Ql),n.dn(Kl);Array.prototype.slice;function Kl(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Jl(t){this._context=t}function tu(t){return new Jl(t)}function eu(t){return t[0]}function nu(t){return t[1]}function ru(t,e){var n=Tl(!0),r=null,i=tu,o=null,s=Yl(a);function a(a){var l,u,c,h=(a=Kl(a)).length,f=!1;for(null==r&&(o=i(c=s())),l=0;l<=h;++l)!(l<h&&n(u=a[l],l,a))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+t(u,l,a),+e(u,l,a));if(c)return o=null,c+""||null}return t="function"==typeof t?t:void 0===t?eu:Tl(t),e="function"==typeof e?e:void 0===e?nu:Tl(e),a.x=function(e){return arguments.length?(t="function"==typeof e?e:Tl(+e),a):t},a.y=function(t){return arguments.length?(e="function"==typeof t?t:Tl(+t),a):e},a.defined=function(t){return arguments.length?(n="function"==typeof t?t:Tl(!!t),a):n},a.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),a):i},a.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),a):r},a}function iu(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function ou(t){return t}function su(){var t=ou,e=iu,n=null,r=Tl(0),i=Tl(Ll),o=Tl(0);function s(s){var a,l,u,c,h,f=(s=Kl(s)).length,p=0,d=new Array(f),g=new Array(f),y=+r.apply(this,arguments),m=Math.min(Ll,Math.max(-Ll,i.apply(this,arguments)-y)),_=Math.min(Math.abs(m)/f,o.apply(this,arguments)),b=_*(m<0?-1:1);for(a=0;a<f;++a)(h=g[d[a]=a]=+t(s[a],a,s))>0&&(p+=h);for(null!=e?d.sort(function(t,n){return e(g[t],g[n])}):null!=n&&d.sort(function(t,e){return n(s[t],s[e])}),a=0,u=p?(m-f*b)/p:0;a<f;++a,y=c)l=d[a],c=y+((h=g[l])>0?h*u:0)+b,g[l]={data:s[l],index:a,value:h,startAngle:y,endAngle:c,padAngle:_};return g}return s.value=function(e){return arguments.length?(t="function"==typeof e?e:Tl(+e),s):t},s.sortValues=function(t){return arguments.length?(e=t,n=null,s):e},s.sort=function(t){return arguments.length?(n=t,e=null,s):n},s.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Tl(+t),s):r},s.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Tl(+t),s):i},s.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:Tl(+t),s):o},s}function au(){}function lu(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function uu(t){this._context=t}function cu(t){return new uu(t)}function hu(t){this._context=t}function fu(t){return new hu(t)}function pu(t){this._context=t}function du(t){return new pu(t)}n.dn(tu),Jl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},n.dn(ru),n.dn(iu),n.dn(ou),n.dn(su),n.dn(au),n.dn(cu),uu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:lu(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:lu(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},n.dn(fu),hu.prototype={areaStart:au,areaEnd:au,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:lu(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},n.dn(du),pu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:lu(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class gu{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function yu(t){return new gu(t,!0)}function mu(t){return new gu(t,!1)}function _u(t,e){this._basis=new uu(t),this._beta=e}_u.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],o=e[0],s=t[n]-i,a=e[n]-o,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+r*s),this._beta*e[l]+(1-this._beta)*(o+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const bu=function t(e){function n(t){return 1===e?new uu(t):new _u(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function xu(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function vu(t,e){this._context=t,this._k=(1-e)/6}vu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:xu(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:xu(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const wu=function t(e){function n(t){return new vu(t,e)}return n.tension=function(e){return t(+e)},n}(0);function ku(t,e){this._context=t,this._k=(1-e)/6}ku.prototype={areaStart:au,areaEnd:au,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:xu(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Au=function t(e){function n(t){return new ku(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Tu(t,e){this._context=t,this._k=(1-e)/6}Tu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:xu(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Su=function t(e){function n(t){return new Tu(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Mu(t,e,n){var r=t._x1,i=t._y1,o=t._x2,s=t._y2;if(t._l01_a>Rl){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>Rl){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*u+t._x1*t._l23_2a-e*t._l12_2a)/c,s=(s*u+t._y1*t._l23_2a-n*t._l12_2a)/c}t._context.bezierCurveTo(r,i,o,s,t._x2,t._y2)}function $u(t,e){this._context=t,this._alpha=e}$u.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Mu(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Nu=function t(e){function n(t){return e?new $u(t,e):new vu(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Eu(t,e){this._context=t,this._alpha=e}Eu.prototype={areaStart:au,areaEnd:au,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Mu(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Cu=function t(e){function n(t){return e?new Eu(t,e):new ku(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Du(t,e){this._context=t,this._alpha=e}Du.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Mu(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ru=function t(e){function n(t){return e?new Du(t,e):new Tu(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Ou(t){this._context=t}function zu(t){return new Ou(t)}function Lu(t){return t<0?-1:1}function Pu(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),s=(n-t._y1)/(i||r<0&&-0),a=(o*i+s*r)/(r+i);return(Lu(o)+Lu(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function ju(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Iu(t,e,n){var r=t._x0,i=t._y0,o=t._x1,s=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,i+a*e,o-a,s-a*n,o,s)}function Uu(t){this._context=t}function Fu(t){this._context=new Bu(t)}function Bu(t){this._context=t}function Hu(t){return new Uu(t)}function Yu(t){return new Fu(t)}function qu(t){this._context=t}function Zu(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),s=new Array(r);for(i[0]=0,o[0]=2,s[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,o[e]=4,s[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,s[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/o[e-1],o[e]-=n,s[e]-=n*s[e-1];for(i[r-1]=s[r-1]/o[r-1],e=r-2;e>=0;--e)i[e]=(s[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function Gu(t){return new qu(t)}function Xu(t,e){this._context=t,this._t=e}function Wu(t){return new Xu(t,.5)}function Vu(t){return new Xu(t,0)}function Qu(t){return new Xu(t,1)}function Ku(t,e,n){this.k=t,this.x=e,this.y=n}n.dn(zu),Ou.prototype={areaStart:au,areaEnd:au,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Uu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Iu(this,this._t0,ju(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Iu(this,ju(this,n=Pu(this,t,e)),n);break;default:Iu(this,this._t0,n=Pu(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(Fu.prototype=Object.create(Uu.prototype)).point=function(t,e){Uu.prototype.point.call(this,e,t)},Bu.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}},n.dn(Gu),qu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=Zu(t),i=Zu(e),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[s],e[s]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},n.dn(Wu),Xu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}},Ku.prototype={constructor:Ku,scale:function(t){return 1===t?this:new Ku(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new Ku(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Ju,tc,ec,nc,rc,ic,oc,sc;new Ku(1,0,0);function ac(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function lc(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function uc(){return this.__zoom||rc}function cc(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function hc(){return navigator.maxTouchPoints||"ontouchstart"in this}function fc(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],s=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}Ku.prototype,n.dn(function(){var t,e,n,r=ac,i=lc,o=fc,s=cc,a=hc,l=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],c=250,h=void 0,f=(void 0)("start","zoom","end"),p=0,d=10;function g(t){t.property("__zoom",uc).on("wheel.zoom",w,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",A).filter(a).on("touchstart.zoom",T).on("touchmove.zoom",S).on("touchend.zoom touchcancel.zoom",M).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(t,e){return(e=Math.max(l[0],Math.min(l[1],e)))===t.k?t:new ic(e,t.x,t.y)}function m(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new ic(t.k,r,i)}function _(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function b(t,e,n,r){t.on("start.zoom",function(){x(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){x(this,arguments).event(r).end()}).tween("zoom",function(){var t=this,o=arguments,s=x(t,o).event(r),a=i.apply(t,o),l=null==n?_(a):"function"==typeof n?n.apply(t,o):n,u=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),c=t.__zoom,f="function"==typeof e?e.apply(t,o):e,p=h(c.invert(l).concat(u/c.k),f.invert(l).concat(u/f.k));return function(t){if(1===t)t=f;else{var e=p(t),n=u/e[2];t=new ic(n,l[0]-e[0]*n,l[1]-e[1]*n)}s.zoom(null,t)}})}function x(t,e,n){return!n&&t.__zooming||new v(t,e)}function v(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,e),this.taps=0}function w(t,...e){if(r.apply(this,arguments)){var n=x(this,e).event(t),i=this.__zoom,a=Math.max(l[0],Math.min(l[1],i.k*Math.pow(2,s.apply(this,arguments)))),c=Ju(t);if(n.wheel)n.mouse[0][0]===c[0]&&n.mouse[0][1]===c[1]||(n.mouse[1]=i.invert(n.mouse[0]=c)),clearTimeout(n.wheel);else{if(i.k===a)return;n.mouse=[c,i.invert(c)],ec(this),n.start()}oc(t),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",o(m(y(i,a),n.mouse[0],n.mouse[1]),n.extent,u))}}function k(t,...e){if(!n&&r.apply(this,arguments)){var i=t.currentTarget,s=x(this,e,!0).event(t),a=tc(t.view).on("mousemove.zoom",function(t){if(oc(t),!s.moved){var e=t.clientX-c,n=t.clientY-h;s.moved=e*e+n*n>p}s.event(t).zoom("mouse",o(m(s.that.__zoom,s.mouse[0]=Ju(t,i),s.mouse[1]),s.extent,u))},!0).on("mouseup.zoom",function(t){a.on("mousemove.zoom mouseup.zoom",null),(void 0)(t.view,s.moved),oc(t),s.event(t).end()},!0),l=Ju(t,i),c=t.clientX,h=t.clientY;(void 0)(t.view),sc(t),s.mouse=[l,this.__zoom.invert(l)],ec(this),s.start()}}function A(t,...e){if(r.apply(this,arguments)){var n=this.__zoom,s=Ju(t.changedTouches?t.changedTouches[0]:t,this),a=n.invert(s),l=n.k*(t.shiftKey?.5:2),h=o(m(y(n,l),s,a),i.apply(this,e),u);oc(t),c>0?tc(this).transition().duration(c).call(b,h,s,t):tc(this).call(g.transform,h,s,t)}}function T(n,...i){if(r.apply(this,arguments)){var o,s,a,l,u=n.touches,c=u.length,h=x(this,i,n.changedTouches.length===c).event(n);for(sc(n),s=0;s<c;++s)a=u[s],l=[l=Ju(a,this),this.__zoom.invert(l),a.identifier],h.touch0?h.touch1||h.touch0[2]===l[2]||(h.touch1=l,h.taps=0):(h.touch0=l,o=!0,h.taps=1+!!t);t&&(t=clearTimeout(t)),o&&(h.taps<2&&(e=l[0],t=setTimeout(function(){t=null},500)),ec(this),h.start())}}function S(t,...e){if(this.__zooming){var n,r,i,s,a=x(this,e).event(t),l=t.changedTouches,c=l.length;for(oc(t),n=0;n<c;++n)r=l[n],i=Ju(r,this),a.touch0&&a.touch0[2]===r.identifier?a.touch0[0]=i:a.touch1&&a.touch1[2]===r.identifier&&(a.touch1[0]=i);if(r=a.that.__zoom,a.touch1){var h=a.touch0[0],f=a.touch0[1],p=a.touch1[0],d=a.touch1[1],g=(g=p[0]-h[0])*g+(g=p[1]-h[1])*g,_=(_=d[0]-f[0])*_+(_=d[1]-f[1])*_;r=y(r,Math.sqrt(g/_)),i=[(h[0]+p[0])/2,(h[1]+p[1])/2],s=[(f[0]+d[0])/2,(f[1]+d[1])/2]}else{if(!a.touch0)return;i=a.touch0[0],s=a.touch0[1]}a.zoom("touch",o(m(r,i,s),a.extent,u))}}function M(t,...r){if(this.__zooming){var i,o,s=x(this,r).event(t),a=t.changedTouches,l=a.length;for(sc(t),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),i=0;i<l;++i)o=a[i],s.touch0&&s.touch0[2]===o.identifier?delete s.touch0:s.touch1&&s.touch1[2]===o.identifier&&delete s.touch1;if(s.touch1&&!s.touch0&&(s.touch0=s.touch1,delete s.touch1),s.touch0)s.touch0[1]=this.__zoom.invert(s.touch0[0]);else if(s.end(),2===s.taps&&(o=Ju(o,this),Math.hypot(e[0]-o[0],e[1]-o[1])<d)){var u=tc(this).on("dblclick.zoom");u&&u.apply(this,arguments)}}}return g.transform=function(t,e,n,r){var i=t.selection?t.selection():t;i.property("__zoom",uc),t!==i?b(t,e,n,r):i.interrupt().each(function(){x(this,arguments).event(r).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()})},g.scaleBy=function(t,e,n,r){g.scaleTo(t,function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)},n,r)},g.scaleTo=function(t,e,n,r){g.transform(t,function(){var t=i.apply(this,arguments),r=this.__zoom,s=null==n?_(t):"function"==typeof n?n.apply(this,arguments):n,a=r.invert(s),l="function"==typeof e?e.apply(this,arguments):e;return o(m(y(r,l),s,a),t,u)},n,r)},g.translateBy=function(t,e,n,r){g.transform(t,function(){return o(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),i.apply(this,arguments),u)},null,r)},g.translateTo=function(t,e,n,r,s){g.transform(t,function(){var t=i.apply(this,arguments),s=this.__zoom,a=null==r?_(t):"function"==typeof r?r.apply(this,arguments):r;return o(rc.translate(a[0],a[1]).scale(s.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,u)},r,s)},v.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1===++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0===--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=tc(this.that).datum();f.call(t,this.that,new(void 0)(t,{sourceEvent:this.sourceEvent,target:g,type:t,transform:this.that.__zoom,dispatch:f}),e)}},g.wheelDelta=function(t){return arguments.length?(s="function"==typeof t?t:nc(+t),g):s},g.filter=function(t){return arguments.length?(r="function"==typeof t?t:nc(!!t),g):r},g.touchable=function(t){return arguments.length?(a="function"==typeof t?t:nc(!!t),g):a},g.extent=function(t){return arguments.length?(i="function"==typeof t?t:nc([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),g):i},g.scaleExtent=function(t){return arguments.length?(l[0]=+t[0],l[1]=+t[1],g):[l[0],l[1]]},g.translateExtent=function(t){return arguments.length?(u[0][0]=+t[0][0],u[1][0]=+t[1][0],u[0][1]=+t[0][1],u[1][1]=+t[1][1],g):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},g.constrain=function(t){return arguments.length?(o=t,g):o},g.duration=function(t){return arguments.length?(c=+t,g):c},g.interpolate=function(t){return arguments.length?(h=t,g):h},g.on=function(){var t=f.on.apply(f,arguments);return t===f?g:t},g.clickDistance=function(t){return arguments.length?(p=(t=+t)*t,g):Math.sqrt(p)},g.tapDistance=function(t){return arguments.length?(d=+t,g):d},g})},99418(t,e,n){"use strict";function r(t,e){this.v=t,this.k=e}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t){var e,n;function i(e,n){try{var s=t[e](n),a=s.value,l=a instanceof r;Promise.resolve(l?a.v:a).then(function(n){if(l){var r="return"===e&&a.k?e:"next";if(!a.k||n.done)return i(r,n);n=t[r](n).value}o(!!s.done,n)},function(t){i("throw",t)})}catch(t){o(2,t)}}function o(t,r){2===t?e.reject(r):e.resolve({value:r,done:t}),(e=e.next)?i(e.key,e.arg):n=null}this._invoke=function(t,r){return new Promise(function(o,s){var a={key:t,arg:r,resolve:o,reject:s,next:null};n?n=n.next=a:(e=n=a,i(t,r))})},"function"!=typeof t.return&&(this.return=void 0)}n.d(e,{A:()=>Mt}),s.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},s.prototype.next=function(t){return this._invoke("next",t)},s.prototype.throw=function(t){return this._invoke("throw",t)},s.prototype.return=function(t){return this._invoke("return",t)};const a=Object.entries,l=Object.setPrototypeOf,u=Object.isFrozen,c=Object.getPrototypeOf,h=Object.getOwnPropertyDescriptor;let f=Object.freeze,p=Object.seal,d=Object.create,g="undefined"!=typeof Reflect&&Reflect,y=g.apply,m=g.construct;f||(f=function(t){return t}),p||(p=function(t){return t}),y||(y=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return t.apply(e,r)}),m||(m=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return new t(...n)});const _=I(Array.prototype.forEach);Array.prototype.indexOf;const b=I(Array.prototype.lastIndexOf),x=I(Array.prototype.pop),v=I(Array.prototype.push);Array.prototype.slice;const w=I(Array.prototype.splice),k=Array.isArray,A=I(String.prototype.toLowerCase),T=I(String.prototype.toString),S=I(String.prototype.match),M=I(String.prototype.replace),$=I(String.prototype.indexOf),N=I(String.prototype.trim),E=I(Number.prototype.toString),C=I(Boolean.prototype.toString),D="undefined"==typeof BigInt?null:I(BigInt.prototype.toString),R="undefined"==typeof Symbol?null:I(Symbol.prototype.toString),O=I(Object.prototype.hasOwnProperty),z=I(Object.prototype.toString),L=I(RegExp.prototype.test),P=(j=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return m(j,e)});var j;function I(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return y(t,e,r)}}function U(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A;if(l&&l(t,null),!k(e))return t;let r=e.length;for(;r--;){let i=e[r];if("string"==typeof i){const t=n(i);t!==i&&(u(e)||(e[r]=t),i=t)}t[i]=!0}return t}function F(t){for(let e=0;e<t.length;e++)O(t,e)||(t[e]=null);return t}function B(t){const e=d(null);for(const r of a(t)){var n=o(r,2);const i=n[0],s=n[1];O(t,i)&&(k(s)?e[i]=F(s):s&&"object"==typeof s&&s.constructor===Object?e[i]=B(s):e[i]=s)}return e}function H(t,e){for(;null!==t;){const n=h(t,e);if(n){if(n.get)return I(n.get);if("function"==typeof n.value)return I(n.value)}t=c(t)}return function(){return null}}const Y=f(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),q=f(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Z=f(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),G=f(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),X=f(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),W=f(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),V=f(["#text"]),Q=f(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),K=f(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),J=f(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),tt=f(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),et=p(/{{[\w\W]*|^[\w\W]*}}/g),nt=p(/<%[\w\W]*|^[\w\W]*%>/g),rt=p(/\${[\w\W]*/g),it=p(/^data-[\-\w.\u00B7-\uFFFF]+$/),ot=p(/^aria-[\-\w]+$/),st=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),at=p(/^(?:\w+script|data):/i),lt=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ut=p(/^html$/i),ct=p(/^[a-z][.\w]*(-[.\w]+)+$/i),ht=p(/<[/\w!]/g),ft=p(/<[/\w]/g),pt=p(/<\/no(script|embed|frames)/i),dt=p(/\/>/i),gt=1,yt=3,mt=7,_t=8,bt=9,xt=11,vt=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],wt=f(U({},vt)),kt=function(){const t={};return _(vt,e=>{t[e]=p(new RegExp("</"+e+"(?=[\\t\\n\\f\\r />])","i"))}),f(t)}(),At=function(){return"undefined"==typeof window?null:window},Tt=function(t,e,n,r){return O(t,e)&&k(t[e])?U(r.base?B(r.base):{},t[e],r.transform):n},St=function(t,e,n){const r=O(t,e)?t[e]:void 0;return r&&"object"==typeof r?B(r):n()};var Mt=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:At();const n=e=>t(e);if(n.version="3.4.16",n.removed=[],!e||!e.document||e.document.nodeType!==bt||!e.Element)return n.isSupported=!1,n;let r=e.document;const i=r,o=i.currentScript;e.DocumentFragment;const s=e.HTMLTemplateElement,l=e.Node,u=e.Element,c=e.NodeFilter;void 0===e.NamedNodeMap&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const h=e.DOMParser,g=e.trustedTypes,y=u.prototype,m=H(y,"cloneNode"),j=H(y,"remove"),I=H(y,"removeAttributeNode"),F=H(y,"nextSibling"),vt=H(y,"childNodes"),Mt=H(y,"parentNode"),$t=H(y,"shadowRoot"),Nt=H(y,"attributes"),Et=l&&l.prototype?H(l.prototype,"nodeType"):null,Ct=l&&l.prototype?H(l.prototype,"nodeName"):null,Dt=l&&l.prototype?H(l.prototype,"ownerDocument"):null,Rt=function(t){return Et?Et(t):t.nodeType},Ot=function(t){return Ct?Ct(t):t.nodeName};if("function"==typeof s){const t=r.createElement("template");t.content&&t.content.ownerDocument&&(r=t.content.ownerDocument)}let zt,Lt,Pt="",jt=!1,It=0;const Ut=function(){if(It>0)throw P('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Ft=function(t){Ut(),It++;try{return zt.createHTML(t)}finally{It--}},Bt=function(){return jt||(Lt=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(g,o),jt=!0),Lt},Ht=r,Yt=Ht.implementation,qt=Ht.createNodeIterator,Zt=Ht.createDocumentFragment,Gt=Ht.getElementsByTagName,Xt=i.importNode;let Wt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof a&&"function"==typeof Mt&&Yt&&void 0!==Yt.createHTMLDocument;const Vt=et,Qt=nt,Kt=rt,Jt=it,te=ot,ee=at,ne=lt,re=ct;let ie=st,oe=null;const se=U({},[...Y,...q,...Z,...X,...V]);let ae=null;const le=U({},[...Q,...K,...J,...tt]);let ue=Object.seal(d(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ce=null,he=null;const fe=Object.seal(d(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let pe=!0,de=!0,ge=!1,ye=!0,me=!1,_e=!0,be=!1,xe=!1,ve=null,we=null,ke=!1,Ae=!1,Te=!1,Se=!1,Me=!0,$e=!1;const Ne="user-content-";let Ee=!0,Ce=!1,De={},Re=null;const Oe=U({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let ze=null;const Le=U({},["audio","video","img","source","image","track"]);let Pe=null;const je=U({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ie="http://www.w3.org/1998/Math/MathML",Ue="http://www.w3.org/2000/svg",Fe="http://www.w3.org/1999/xhtml";let Be=Fe,He=!1,Ye=null;const qe=U({},[Ie,Ue,Fe],T),Ze=f(["mi","mo","mn","ms","mtext"]);let Ge=U({},Ze);const Xe=f(["annotation-xml"]);let We=U({},Xe);const Ve=U({},["title","style","font","a","script"]);let Qe=null;const Ke=["application/xhtml+xml","text/html"];let Je=null,tn=null;const en=r.createElement("form"),nn=function(t){return t instanceof RegExp||t instanceof Function},rn=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(tn&&tn===t)return;t&&"object"==typeof t||(t={}),t=B(t),Qe=-1===Ke.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,Je="application/xhtml+xml"===Qe?T:A,oe=Tt(t,"ALLOWED_TAGS",se,{transform:Je}),ae=Tt(t,"ALLOWED_ATTR",le,{transform:Je}),Ye=Tt(t,"ALLOWED_NAMESPACES",qe,{transform:T}),Pe=Tt(t,"ADD_URI_SAFE_ATTR",je,{transform:Je,base:je}),ze=Tt(t,"ADD_DATA_URI_TAGS",Le,{transform:Je,base:Le}),Re=Tt(t,"FORBID_CONTENTS",Oe,{transform:Je}),ce=Tt(t,"FORBID_TAGS",B({}),{transform:Je}),he=Tt(t,"FORBID_ATTR",B({}),{transform:Je}),De=!!O(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?B(t.USE_PROFILES):t.USE_PROFILES),pe=!1!==t.ALLOW_ARIA_ATTR,de=!1!==t.ALLOW_DATA_ATTR,ge=t.ALLOW_UNKNOWN_PROTOCOLS||!1,ye=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,me=t.SAFE_FOR_TEMPLATES||!1,_e=!1!==t.SAFE_FOR_XML,be=t.WHOLE_DOCUMENT||!1,Ae=t.RETURN_DOM||!1,Te=t.RETURN_DOM_FRAGMENT||!1,Se=t.RETURN_TRUSTED_TYPE||!1,ke=t.FORCE_BODY||!1,Me=!1!==t.SANITIZE_DOM,$e=t.SANITIZE_NAMED_PROPS||!1,Ee=!1!==t.KEEP_CONTENT,Ce=t.IN_PLACE||!1,ie=function(t){try{return L(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:st,Be="string"==typeof t.NAMESPACE?t.NAMESPACE:Fe,Ge=St(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>U({},Ze)),We=St(t,"HTML_INTEGRATION_POINTS",()=>U({},Xe));const e=St(t,"CUSTOM_ELEMENT_HANDLING",()=>d(null));if(ue=d(null),O(e,"tagNameCheck")&&nn(e.tagNameCheck)&&(ue.tagNameCheck=e.tagNameCheck),O(e,"attributeNameCheck")&&nn(e.attributeNameCheck)&&(ue.attributeNameCheck=e.attributeNameCheck),O(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(ue.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),p(ue),me&&(de=!1),Te&&(Ae=!0),De&&(oe=U({},V),ae=d(null),!0===De.html&&(U(oe,Y),U(ae,Q)),!0===De.svg&&(U(oe,q),U(ae,K),U(ae,tt)),!0===De.svgFilters&&(U(oe,Z),U(ae,K),U(ae,tt)),!0===De.mathMl&&(U(oe,X),U(ae,J),U(ae,tt))),fe.tagCheck=null,fe.attributeCheck=null,O(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?fe.tagCheck=t.ADD_TAGS:k(t.ADD_TAGS)&&(oe===se&&(oe=B(oe)),U(oe,t.ADD_TAGS,Je))),O(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?fe.attributeCheck=t.ADD_ATTR:k(t.ADD_ATTR)&&(ae===le&&(ae=B(ae)),U(ae,t.ADD_ATTR,Je))),O(t,"ADD_FORBID_CONTENTS")&&k(t.ADD_FORBID_CONTENTS)&&(Re===Oe&&(Re=B(Re)),U(Re,t.ADD_FORBID_CONTENTS,Je)),Ee&&(oe["#text"]=!0),be&&U(oe,["html","head","body"]),oe.table&&(U(oe,["tbody"]),delete ce.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw P('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw P('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const e=zt;zt=t.TRUSTED_TYPES_POLICY;try{Pt=Ft("")}catch(t){throw zt=e,t}}else null===t.TRUSTED_TYPES_POLICY?(zt=void 0,Pt=""):(void 0===zt&&(zt=Bt()),zt&&"string"==typeof Pt&&(Pt=Ft("")));f&&f(t),tn=t},on=U({},[...q,...Z,...G]),sn=U({},[...X,...W]),an=function(t){let e=Mt(t);e&&e.tagName||(e={namespaceURI:Be,tagName:"template"});const n=A(t.tagName),r=A(e.tagName);return!!Ye[t.namespaceURI]&&(t.namespaceURI===Ue?function(t,e,n){return e.namespaceURI===Fe?"svg"===t:e.namespaceURI===Ie?"svg"===t&&("annotation-xml"===n||Ge[n]):Boolean(on[t])}(n,e,r):t.namespaceURI===Ie?function(t,e,n){return e.namespaceURI===Fe?"math"===t:e.namespaceURI===Ue?"math"===t&&We[n]:Boolean(sn[t])}(n,e,r):t.namespaceURI===Fe?function(t,e,n){return!(e.namespaceURI===Ue&&!We[n])&&!(e.namespaceURI===Ie&&!Ge[n])&&!sn[t]&&(Ve[t]||!on[t])}(n,e,r):!("application/xhtml+xml"!==Qe||!Ye[t.namespaceURI]))},ln=function(t){v(n.removed,{element:t});try{Mt(t).removeChild(t)}catch(e){if(j(t),!Mt(t))throw P("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},un=function(t,e,n){try{I(t,e)}catch(e){try{t.removeAttribute(n)}catch(t){}}},cn=function(t){pn(t);const e=vt(t);if(e){const t=[];_(e,e=>{v(t,e)}),_(t,t=>{try{j(t)}catch(t){}})}const n=Nt(t);if(n)for(let e=n.length-1;e>=0;--e){const r=n[e],i=r&&r.name;"string"==typeof i&&un(t,r,i)}},hn=function(t,e,r){if(!r)try{r=e.getAttributeNode(t)}catch(t){r=null}v(n.removed,{attribute:r||null,from:e});try{r?I(e,r):e.removeAttribute(t)}catch(n){try{e.removeAttribute(t)}catch(t){}}if("is"===t)if(Ae||Te)try{ln(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},fn=function(t){const e=Nt(t);if(e)for(let n=e.length-1;n>=0;--n){const r=e[n],i=r&&r.name;"string"!=typeof i||ae[Je(i)]||un(t,r,i)}},pn=function(t){const e=[t];for(;e.length>0;){const t=e.pop();Rt(t)===gt&&fn(t);const n=vt(t);if(n)for(let t=n.length-1;t>=0;--t)e.push(n[t])}},dn=function(t,e){return!!_e&&("patchsrc"===t||"for"===t&&"label"!==e&&"output"!==e)},gn=function(t){let e=null,n=null;if(ke)t="<remove></remove>"+t;else{const e=S(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===Qe&&Be===Fe&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const i=zt?Ft(t):t;if(Be===Fe)try{e=(new h).parseFromString(i,Qe)}catch(t){}if(!e||!e.documentElement){e=Yt.createDocument(Be,"template",null);try{e.documentElement.innerHTML=He?Pt:i}catch(t){}}const o=e.body||e.documentElement;return t&&n&&o.insertBefore(r.createTextNode(n),o.childNodes[0]||null),Be===Fe?Gt.call(e,be?"html":"body")[0]:be?e.documentElement:o},yn=function(t){const e=Dt?Dt(t):t.ownerDocument;return qt.call(e||t,t,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},mn=function(t){return t=M(t,Vt," "),t=M(t,Qt," "),t=M(t,Kt," ")},_n=function(t){var e;t.normalize();const n=Dt?Dt(t):t.ownerDocument,r=qt.call(n||t,t,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let i=r.nextNode();for(;i;)i.data=mn(i.data),i=r.nextNode();const o=null===(e=t.querySelectorAll)||void 0===e?void 0:e.call(t,"template");o&&_(o,t=>{xn(t.content)&&_n(t.content)})},bn=function(t){const e=Ct?Ct(t):null;return"string"==typeof e&&("form"===Je(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==Nt(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.removeAttributeNode||"function"!=typeof t.getAttributeNode||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==Et(t)||t.childNodes!==vt(t)))},xn=function(t){if(!Et||"object"!=typeof t||null===t)return!1;try{return Et(t)===xt}catch(t){return!1}},vn=function(t){if(!Et||"object"!=typeof t||null===t)return!1;try{return"number"==typeof Et(t)}catch(t){return!1}};function wn(t,e,r){0!==t.length&&_(t,t=>{t.call(n,e,r,tn)})}const kn=function(t,e){if(t instanceof RegExp)return L(t,e);if(t instanceof Function){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return Boolean(t(e,...r))}return!1},An=function(t,e,n,r){return 0===t.length?e:e===n||e===r?B(e):e},Tn=function(t,e){return t!==e&&null===Mt(t)&&(Ce&&pn(t),!0)},Sn=function(t,e){if(wn(Wt.beforeSanitizeElements,t,null),Tn(t,e))return!0;if(bn(t))return ln(t),!0;const r=Je(Ot(t));if(oe=An(Wt.uponSanitizeElement,oe,se,ve),wn(Wt.uponSanitizeElement,t,{tagName:r,allowedTags:oe}),Tn(t,e))return!0;if(function(t,e){return!!(_e&&t.hasChildNodes()&&!vn(t.firstElementChild)&&L(ht,t.textContent)&&L(ht,t.innerHTML))||!!(_e&&t.namespaceURI===Fe&&wt[e]&&(vn(t.firstElementChild)||"string"==typeof t.textContent&&L(kt[e],t.textContent)))||t.nodeType===mt||!(!_e||t.nodeType!==_t||!L(ft,t.data))}(t,r))return ln(t),!0;if(ce[r]||!(fe.tagCheck instanceof Function&&fe.tagCheck(r))&&!oe[r]){const n=function(t,e,n){if(!ce[e]&&Nn(e)&&kn(ue.tagNameCheck,e))return!1;if(Ee&&!Re[e]){const e=Mt(t),r=vt(t);if(r&&e)for(let i=r.length-1;i>=0;--i){const o=t===n?m(r[i],!0):r[i];e.insertBefore(o,F(t))}}return ln(t),!0}(t,r,e);return!(!1!==n||(wn(Wt.afterSanitizeElements,t,null),!Tn(t,e)))||n}if(Rt(t)===gt&&!an(t))return ln(t),!0;if(("noscript"===r||"noembed"===r||"noframes"===r)&&L(pt,t.innerHTML))return ln(t),!0;if(me&&t.nodeType===yt){const e=mn(t.textContent);t.textContent!==e&&(v(n.removed,{element:t.cloneNode()}),t.textContent=e)}return wn(Wt.afterSanitizeElements,t,null),Tn(t,e)},Mn=function(t,e,n){if(he[e])return!1;if(dn(e,t))return!1;if(Me&&("id"===e||"name"===e)&&(n in r||n in en))return!1;const i=ae[e]||fe.attributeCheck instanceof Function&&fe.attributeCheck(e,t);return!(!de||!L(Jt,e))||(!(!pe||!L(te,e))||(i?!!Pe[e]||(!!L(ie,M(n,ne,""))||(!("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==$(n,"data:")||!ze[t])||(!(!ge||L(ee,M(n,ne,"")))||!n))):Nn(t)&&kn(ue.tagNameCheck,t)&&kn(ue.attributeNameCheck,e,t)||"is"===e&&ue.allowCustomizedBuiltInElements&&kn(ue.tagNameCheck,n)))},$n=U({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Nn=function(t){return!$n[A(t)]&&L(re,t)},En=function(t,e,n,r){if(zt&&"object"==typeof g&&"function"==typeof g.getAttributeType&&!n)switch(g.getAttributeType(t,e)){case"TrustedHTML":return Ft(r);case"TrustedScriptURL":return function(t){Ut(),It++;try{return zt.createScriptURL(t)}finally{It--}}(r)}return r},Cn=function(t,e,n,r){try{return n?t.setAttributeNS(n,e,r):t.setAttribute(e,r),!bn(t)||(ln(t),!1)}catch(n){return hn(e,t),!1}},Dn=function(t,e){if(wn(Wt.beforeSanitizeAttributes,t,null),Tn(t,e))return;const r=t.attributes;if(!r||bn(t))return;ae=An(Wt.uponSanitizeAttribute,ae,le,we);const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ae,forceKeepAttr:void 0};let o=r.length;const s=Je(t.nodeName);for(;o--;){const e=r[o],a=e.name,l=e.namespaceURI,u=e.value,c=Je(a),h=u;let f="value"===a?h:N(h),p=!1;i.attrName=c,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,wn(Wt.uponSanitizeAttribute,t,i),f=i.attrValue,!$e||"id"!==c&&"name"!==c||0===$(f,Ne)||(hn(a,t,e),f=Ne+f,p=!0),_e&&L(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)?hn(a,t,e):"attributename"===c&&S(f,"href")?hn(a,t,e):i.forceKeepAttr||(i.keepAttr&&(ye||!L(dt,f))?(me&&(f=mn(f)),Mn(s,c,f)?(f=En(s,c,l,f),f!==h&&Cn(t,a,l,f)&&p&&x(n.removed)):hn(a,t,e)):hn(a,t,e))}wn(Wt.afterSanitizeAttributes,t,null),Tn(t,e)},Rn=function(t){let e=null;const n=yn(t);for(wn(Wt.beforeSanitizeShadowDOM,t,null);e=n.nextNode();)if(wn(Wt.uponSanitizeShadowNode,e,null),Sn(e,t),Dn(e,t),xn(e.content)&&Rn(e.content),Rt(e)===gt){const t=$t(e);xn(t)&&(On(t),Rn(t))}wn(Wt.afterSanitizeShadowDOM,t,null)},On=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const t=e.pop();if(t.shadow){Rn(t.shadow);continue}const n=t.node,r=Rt(n)===gt,i=vt(n);if(i)for(let t=i.length-1;t>=0;--t)e.push({node:i[t],shadow:null});if(r){const t=Ct?Ct(n):null;if("string"==typeof t&&"template"===Je(t)){const t=n.content;xn(t)&&e.push({node:t,shadow:null})}}if(r){const t=$t(n);xn(t)&&e.push({node:null,shadow:t},{node:t,shadow:null})}}};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,s=null,a=null;if(He=!t,He&&(t="\x3c!--\x3e"),"string"!=typeof t&&!vn(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return E(t);case"boolean":return C(t);case"bigint":return D?D(t):"0";case"symbol":return R?R(t):"Symbol()";case"undefined":default:return z(t);case"function":case"object":{if(null===t)return z(t);const e=t,n=H(e,"toString");if("function"==typeof n){const t=n(e);return"string"==typeof t?t:z(t)}return z(t)}}}(t)))throw P("dirty is not a string, aborting");if(!n.isSupported)return t;xe?(oe=ve,ae=we):rn(e),(Wt.uponSanitizeElement.length>0||Wt.uponSanitizeAttribute.length>0)&&(oe=B(oe)),Wt.uponSanitizeAttribute.length>0&&(ae=B(ae)),n.removed=[];const l=Ce&&"string"!=typeof t&&vn(t);if(l){!function(t){if(!_e)return;const e=[t];for(;e.length>0;){const t=e.pop(),n=Rt(t);if(n===mt||n===_t&&L(ft,t.data)){try{j(t)}catch(t){}continue}if(n===gt){const e=t,n=Je(Ot(t));try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&dn("for",n)&&e.removeAttribute("for")}catch(t){}}const r=vt(t);if(r)for(let t=r.length-1;t>=0;--t)e.push(r[t])}}(t);const e=Ot(t);if("string"==typeof e){const n=Je(e);if(!oe[n]||ce[n])throw cn(t),P("root node is forbidden and cannot be sanitized in-place")}if(bn(t))throw cn(t),P("root node is clobbered and cannot be sanitized in-place");try{On(t)}catch(e){throw cn(t),e}}else if(vn(t))r=gn("\x3c!----\x3e"),o=r.ownerDocument.importNode(t,!0),o.nodeType===gt&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o),On(r);else{if(!Ae&&!me&&!be&&-1===t.indexOf("<"))return zt&&Se?Ft(t):t;if(r=gn(t),!r)return Ae?null:Se?Pt:""}r&&ke&&ln(r.firstChild);const u=l?t:r;try{const t=yn(u);for(;s=t.nextNode();)Sn(s,u),Dn(s,u),xn(s.content)&&Rn(s.content)}catch(e){throw l&&(cn(t),_(n.removed,t=>{t.element&&pn(t.element)})),e}if(l){let e=!1;if(_(n.removed,n=>{n.element&&(n.element===t&&(e=!0),pn(n.element))}),e)throw P("a node selected for removal could not be safely returned; refusing to sanitize in place");return me&&_n(t),t}if(Ae){if(me&&_n(r),Te)for(a=Zt.call(r.ownerDocument);r.firstChild;)a.appendChild(r.firstChild);else a=r;return(ae.shadowroot||ae.shadowrootmode)&&(a=Xt.call(i,a,!0)),a}let c=be?r.outerHTML:r.innerHTML;return be&&oe["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&L(ut,r.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+c),me&&(c=mn(c)),zt&&Se?Ft(c):c},n.setConfig=function(){rn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),xe=!0,ve=oe,we=ae},n.clearConfig=function(){tn=null,xe=!1,ve=null,we=null,zt=Lt,Pt=""},n.isValidAttribute=function(t,e,n){tn||rn({});const r=Je(t),i=Je(e);return Mn(r,i,n)},n.addHook=function(t,e){"function"==typeof e&&O(Wt,t)&&v(Wt[t],e)},n.removeHook=function(t,e){if(O(Wt,t)){if(void 0!==e){const n=b(Wt[t],e);return-1===n?void 0:w(Wt[t],n,1)[0]}return x(Wt[t])}},n.removeHooks=function(t){O(Wt,t)&&(Wt[t]=[])},n.removeAllHooks=function(){Wt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}()},99125(t,e,n){"use strict";function r(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}n.d(e,{b:()=>r})},89826(t,e,n){"use strict";n.d(e,{$V:()=>s,Av:()=>r,GX:()=>d,ML:()=>A,NA:()=>h,OG:()=>i,Qb:()=>y,R_:()=>a,Uw:()=>f,VP:()=>l,XZ:()=>x,ZR:()=>b,_u:()=>w,cT:()=>p,i1:()=>v,iq:()=>g,kj:()=>o,pj:()=>c,q:()=>m,ri:()=>k,vC:()=>u,x6:()=>_});const r="[object RegExp]",i="[object String]",o="[object Number]",s="[object Boolean]",a="[object Arguments]",l="[object Symbol]",u="[object Date]",c="[object Map]",h="[object Set]",f="[object Array]",p="[object ArrayBuffer]",d="[object Object]",g="[object DataView]",y="[object Uint8Array]",m="[object Uint8ClampedArray]",_="[object Uint16Array]",b="[object Uint32Array]",x="[object Int8Array]",v="[object Int16Array]",w="[object Int32Array]",k="[object Float32Array]",A="[object Float64Array]"},20539(t,e,n){"use strict";function r(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");const n=function(...r){const i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);const s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(r.Cache||Map),n}n.d(e,{B:()=>r}),r.Cache=Map},25268(t,e,n){"use strict";function r(){}n.d(e,{h:()=>w});var i=n(37110),o=n(42796);function s(t){return Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e))}var a=n(32178);function l(t){return"__proto__"===t}function u(t){if("object"!=typeof t)return!1;if(null==t)return!1;if(null===Object.getPrototypeOf(t))return!0;if("[object Object]"!==Object.prototype.toString.call(t)){const e=t[Symbol.toStringTag];return null!=e&&(!!Object.getOwnPropertyDescriptor(t,Symbol.toStringTag)?.writable&&t.toString()===`[object ${e}]`)}let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}var c=n(99125),h=n(89826);function f(t,e,n,r=new Map,s=void 0){const l=s?.(t,e,n,r);if(void 0!==l)return l;if((0,i.s)(t))return t;if(r.has(t))return r.get(t);if(Array.isArray(t)){const e=new Array(t.length);r.set(t,e);for(let i=0;i<t.length;i++)e[i]=f(t[i],i,n,r,s);return Object.hasOwn(t,"index")&&(e.index=t.index),Object.hasOwn(t,"input")&&(e.input=t.input),e}if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){const e=new RegExp(t.source,t.flags);return e.lastIndex=t.lastIndex,e}if(t instanceof Map){const e=new Map;r.set(t,e);for(const[i,o]of t)e.set(i,f(o,i,n,r,s));return e}if(t instanceof Set){const e=new Set;r.set(t,e);for(const i of t)e.add(f(i,void 0,n,r,s));return e}if((0,a.P)(t))return t.subarray();if((0,o.i)(t)){const e=new(Object.getPrototypeOf(t).constructor)(t.length);r.set(t,e);for(let i=0;i<t.length;i++)e[i]=f(t[i],i,n,r,s);return e}if(t instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer)return t.slice(0);if(t instanceof DataView){const e=new DataView(t.buffer.slice(0),t.byteOffset,t.byteLength);return r.set(t,e),p(e,t,n,r,s),e}if("undefined"!=typeof File&&t instanceof File){const e=new File([t],t.name,{type:t.type});return r.set(t,e),p(e,t,n,r,s),e}if("undefined"!=typeof Blob&&t instanceof Blob){const e=new Blob([t],{type:t.type});return r.set(t,e),p(e,t,n,r,s),e}if(t instanceof Error){const e=structuredClone(t);return r.set(t,e),e.message=t.message,e.name=t.name,e.stack=t.stack,e.cause=t.cause,e.constructor=t.constructor,p(e,t,n,r,s),e}if(t instanceof Boolean){const e=new Boolean(t.valueOf());return r.set(t,e),p(e,t,n,r,s),e}if(t instanceof Number){const e=new Number(t.valueOf());return r.set(t,e),p(e,t,n,r,s),e}if(t instanceof String){const e=new String(t.valueOf());return r.set(t,e),p(e,t,n,r,s),e}if("object"==typeof t&&function(t){switch((0,c.b)(t)){case h.R_:case h.Uw:case h.cT:case h.iq:case h.$V:case h.vC:case h.ri:case h.ML:case h.XZ:case h.i1:case h._u:case h.pj:case h.kj:case h.GX:case h.Av:case h.NA:case h.OG:case h.VP:case h.Qb:case h.q:case h.x6:case h.ZR:return!0;default:return!1}}(t)){const e=Object.create(Object.getPrototypeOf(t));return r.set(t,e),p(e,t,n,r,s),e}return t}function p(t,e,n=t,r,i){const o=[...Object.keys(e),...s(e)];for(let s=0;s<o.length;s++){const a=o[s],l=Object.getOwnPropertyDescriptor(t,a);(null==l||l.writable)&&(t[a]=f(e[a],a,n,r,i))}}function d(t,e){return function(t,e){return f(t,void 0,t,new Map,e)}(t,(n,r,i,o)=>{const s=e?.(n,r,i,o);if(void 0!==s)return s;if("object"==typeof t){if("[object Object]"===(0,c.b)(t)&&"function"!=typeof t.constructor){const e={};return o.set(t,e),p(e,t,i,o),e}switch(Object.prototype.toString.call(t)){case h.kj:case h.OG:case h.$V:{const e=new t.constructor(t?.valueOf());return p(e,t),e}case h.R_:{const e={};return p(e,t),e.length=t.length,e[Symbol.iterator]=t[Symbol.iterator],e}default:return}}})}function g(t){return d(t)}var y=n(14608);function m(t){return"object"==typeof t&&null!==t}var _=n(30622);function b(t){return m(t)&&(0,_.X)(t)}var x=n(19663);function v(t,e,n,r){if((0,i.s)(t)&&(t=Object(t)),null==e||"object"!=typeof e)return t;if(r.has(e))return function(t){if((0,i.s)(t))return t;if(Array.isArray(t)||(0,o.i)(t)||t instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer)return t.slice(0);const e=Object.getPrototypeOf(t);if(null==e)return Object.assign(Object.create(e),t);const n=e.constructor;if(t instanceof Date||t instanceof Map||t instanceof Set)return new n(t);if(t instanceof RegExp){const e=new n(t);return e.lastIndex=t.lastIndex,e}if(t instanceof DataView)return new n(t.buffer.slice(0));if(t instanceof Error){let e;return e=t instanceof AggregateError?new n(t.errors,t.message,{cause:t.cause}):new n(t.message,{cause:t.cause}),e.stack=t.stack,Object.assign(e,t),e}return"undefined"!=typeof File&&t instanceof File?new n([t],t.name,{type:t.type,lastModified:t.lastModified}):"object"==typeof t?Object.assign(Object.create(e),t):t}(r.get(e));if(r.set(e,t),Array.isArray(e)){e=e.slice();for(let t=0;t<e.length;t++)e[t]=e[t]??void 0}const c=[...Object.keys(e),...s(e)];for(let i=0;i<c.length;i++){const o=c[i];if(l(o))continue;let s=e[o],h=t[o];if((0,y.N)(s)&&(s={...s}),(0,y.N)(h)&&(h={...h}),(0,a.P)(s)&&(s=g(s)),Array.isArray(s))if(Array.isArray(h)){const t=[],e=Reflect.ownKeys(h);for(let n=0;n<e.length;n++){const r=e[n];t[r]=h[r]}h=t}else if(b(h)){const t=[];for(let e=0;e<h.length;e++)t[e]=h[e];h=t}else h=[];const f=n(h,s,o,t,e,r);void 0!==f?t[o]=f:Array.isArray(s)||m(h)&&m(s)&&(u(h)||u(s)||(0,x.i)(h)||(0,x.i)(s))?t[o]=v(h,s,n,r):null==h&&u(s)?t[o]=v({},s,n,r):null==h&&(0,x.i)(s)?t[o]=g(s):void 0!==h&&void 0===s||(t[o]=s)}return t}function w(t,...e){return function(t,...e){const n=e.slice(0,-1),r=e[e.length-1];let i=t;for(let t=0;t<n.length;t++)i=v(i,n[t],r,new Map);return i}(t,...e,r)}},14608(t,e,n){"use strict";n.d(e,{N:()=>i});var r=n(99125);function i(t){return null!==t&&"object"==typeof t&&"[object Arguments]"===(0,r.b)(t)}},30622(t,e,n){"use strict";function r(t){return null!=t&&"function"!=typeof t&&function(t){return Number.isSafeInteger(t)&&t>=0}(t.length)}n.d(e,{X:()=>r})},75663(t,e,n){"use strict";n.d(e,{I:()=>a});var r=n(32178),i=n(30622),o=n(14608);var s=n(19663);function a(t){if(null==t)return!0;if((0,i.X)(t))return!!("function"==typeof t.splice||"string"==typeof t||(0,r.P)(t)||(0,s.i)(t)||(0,o.N)(t))&&0===t.length;if("object"==typeof t||"function"==typeof t){if(t instanceof Map||t instanceof Set)return 0===t.size;const e=Object.keys(t);return function(t){const e=t?.constructor;return t===("function"==typeof e?e.prototype:Object.prototype)}(t)?0===e.filter(t=>"constructor"!==t).length:0===e.length}return!0}},19663(t,e,n){"use strict";n.d(e,{i:()=>i});var r=n(42796);function i(t){return(0,r.i)(t)}},32178(t,e,n){"use strict";n.d(e,{P:()=>i});const r="object"==typeof globalThis&&globalThis||"object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof n.g&&n.g||function(){return this}();function i(t){return void 0!==r.Buffer&&r.Buffer.isBuffer(t)}},37110(t,e,n){"use strict";function r(t){return null==t||"object"!=typeof t&&"function"!=typeof t}n.d(e,{s:()=>r})},42796(t,e,n){"use strict";function r(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}n.d(e,{i:()=>r})},67266(t,e,n){"use strict";n.d(e,{A:()=>s});var r=n(86309),i=n(63122);const o=class{constructor(){this.type=i.Z.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=i.Z.ALL}is(t){return this.type===t}};const s=new class{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new o}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=i.Z.ALL,this}_ensureHSL(){const t=this.data,{h:e,s:n,l:i}=t;void 0===e&&(t.h=r.A.channel.rgb2hsl(t,"h")),void 0===n&&(t.s=r.A.channel.rgb2hsl(t,"s")),void 0===i&&(t.l=r.A.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r:e,g:n,b:i}=t;void 0===e&&(t.r=r.A.channel.hsl2rgb(t,"r")),void 0===n&&(t.g=r.A.channel.hsl2rgb(t,"g")),void 0===i&&(t.b=r.A.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,e=t.r;return this.type.is(i.Z.HSL)||void 0===e?(this._ensureHSL(),r.A.channel.hsl2rgb(t,"r")):e}get g(){const t=this.data,e=t.g;return this.type.is(i.Z.HSL)||void 0===e?(this._ensureHSL(),r.A.channel.hsl2rgb(t,"g")):e}get b(){const t=this.data,e=t.b;return this.type.is(i.Z.HSL)||void 0===e?(this._ensureHSL(),r.A.channel.hsl2rgb(t,"b")):e}get h(){const t=this.data,e=t.h;return this.type.is(i.Z.RGB)||void 0===e?(this._ensureRGB(),r.A.channel.rgb2hsl(t,"h")):e}get s(){const t=this.data,e=t.s;return this.type.is(i.Z.RGB)||void 0===e?(this._ensureRGB(),r.A.channel.rgb2hsl(t,"s")):e}get l(){const t=this.data,e=t.l;return this.type.is(i.Z.RGB)||void 0===e?(this._ensureRGB(),r.A.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(i.Z.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(i.Z.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(i.Z.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(i.Z.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(i.Z.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(i.Z.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}({r:0,g:0,b:0,a:0},"transparent")},51931(t,e,n){"use strict";n.d(e,{A:()=>g});var r=n(67266),i=n(63122);const o={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;const e=t.match(o.re);if(!e)return;const n=e[1],i=parseInt(n,16),s=n.length,a=s%4==0,l=s>4,u=l?1:17,c=l?8:4,h=a?0:-1,f=l?255:15;return r.A.set({r:(i>>c*(h+3)&f)*u,g:(i>>c*(h+2)&f)*u,b:(i>>c*(h+1)&f)*u,a:a?(i&f)*u/255:1},t)},stringify:t=>{const{r:e,g:n,b:r,a:o}=t;return o<1?`#${i.Y[Math.round(e)]}${i.Y[Math.round(n)]}${i.Y[Math.round(r)]}${i.Y[Math.round(255*o)]}`:`#${i.Y[Math.round(e)]}${i.Y[Math.round(n)]}${i.Y[Math.round(r)]}`}},s=o;var a=n(86309);const l={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(l.hueRe);if(e){const[,t,n]=e;switch(n){case"grad":return a.A.channel.clamp.h(.9*parseFloat(t));case"rad":return a.A.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return a.A.channel.clamp.h(360*parseFloat(t))}}return a.A.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(104!==e&&72!==e)return;const n=t.match(l.re);if(!n)return;const[,i,o,s,u,c]=n;return r.A.set({h:l._hue2deg(i),s:a.A.channel.clamp.s(parseFloat(o)),l:a.A.channel.clamp.l(parseFloat(s)),a:u?a.A.channel.clamp.a(c?parseFloat(u)/100:parseFloat(u)):1},t)},stringify:t=>{const{h:e,s:n,l:r,a:i}=t;return i<1?`hsla(${a.A.lang.round(e)}, ${a.A.lang.round(n)}%, ${a.A.lang.round(r)}%, ${i})`:`hsl(${a.A.lang.round(e)}, ${a.A.lang.round(n)}%, ${a.A.lang.round(r)}%)`}},u=l,c={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=c.colors[t];if(e)return s.parse(e)},stringify:t=>{const e=s.stringify(t);for(const t in c.colors)if(c.colors[t]===e)return t}},h=c,f={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(114!==e&&82!==e)return;const n=t.match(f.re);if(!n)return;const[,i,o,s,l,u,c,h,p]=n;return r.A.set({r:a.A.channel.clamp.r(o?2.55*parseFloat(i):parseFloat(i)),g:a.A.channel.clamp.g(l?2.55*parseFloat(s):parseFloat(s)),b:a.A.channel.clamp.b(c?2.55*parseFloat(u):parseFloat(u)),a:h?a.A.channel.clamp.a(p?parseFloat(h)/100:parseFloat(h)):1},t)},stringify:t=>{const{r:e,g:n,b:r,a:i}=t;return i<1?`rgba(${a.A.lang.round(e)}, ${a.A.lang.round(n)}, ${a.A.lang.round(r)}, ${a.A.lang.round(i)})`:`rgb(${a.A.lang.round(e)}, ${a.A.lang.round(n)}, ${a.A.lang.round(r)})`}},p=f,d={format:{keyword:c,hex:s,rgb:f,rgba:f,hsl:l,hsla:l},parse:t=>{if("string"!=typeof t)return t;const e=s.parse(t)||p.parse(t)||u.parse(t)||h.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(i.Z.HSL)||void 0===t.data.r?u.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?p.stringify(t):s.stringify(t)},g=d},63122(t,e,n){"use strict";n.d(e,{Y:()=>i,Z:()=>o});var r=n(86309);const i={};for(let t=0;t<=255;t++)i[t]=r.A.unit.dec2hex(t);const o={ALL:0,RGB:1,HSL:2}},58695(t,e,n){"use strict";n.d(e,{A:()=>o});var r=n(51931),i=n(8232);const o=(t,e)=>{const n=r.A.parse(t),o={};for(const t in e)e[t]&&(o[t]=n[t]+e[t]);return(0,i.A)(t,o)}},95635(t,e,n){"use strict";n.d(e,{A:()=>o});var r=n(86309),i=n(51931);const o=(t,e,n)=>{const o=i.A.parse(t),s=o[e],a=r.A.channel.clamp[e](s+n);return s!==a&&(o[e]=a),i.A.stringify(o)}},8232(t,e,n){"use strict";n.d(e,{A:()=>o});var r=n(86309),i=n(51931);const o=(t,e)=>{const n=i.A.parse(t);for(const t in e)n[t]=r.A.channel.clamp[t](e[t]);return i.A.stringify(n)}},75263(t,e,n){"use strict";n.d(e,{A:()=>i});var r=n(95635);const i=(t,e)=>(0,r.A)(t,"l",-e)},3948(t,e,n){"use strict";n.d(e,{A:()=>s});var r=n(51931),i=n(25582);const o=(t,e,n=50)=>{const{r:o,g:s,b:a,a:l}=r.A.parse(t),{r:u,g:c,b:h,a:f}=r.A.parse(e),p=n/100,d=2*p-1,g=l-f,y=((d*g===-1?d:(d+g)/(1+d*g))+1)/2,m=1-y,_=o*y+u*m,b=s*y+c*m,x=a*y+h*m,v=l*p+f*(1-p);return(0,i.A)(_,b,x,v)},s=(t,e=100)=>{const n=r.A.parse(t);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,o(n,t,e)}},5097(t,e,n){"use strict";n.d(e,{A:()=>a});var r=n(86309),i=n(51931);const o=t=>{const{r:e,g:n,b:o}=i.A.parse(t),s=.2126*r.A.channel.toLinear(e)+.7152*r.A.channel.toLinear(n)+.0722*r.A.channel.toLinear(o);return r.A.lang.round(s)},s=t=>o(t)>=.5,a=t=>!s(t)},78041(t,e,n){"use strict";n.d(e,{A:()=>i});var r=n(95635);const i=(t,e)=>(0,r.A)(t,"l",e)},25582(t,e,n){"use strict";n.d(e,{A:()=>a});var r=n(86309),i=n(67266),o=n(51931),s=n(8232);const a=(t,e,n=0,a=1)=>{if("number"!=typeof t)return(0,s.A)(t,{a:e});const l=i.A.set({r:r.A.channel.clamp.r(t),g:r.A.channel.clamp.g(e),b:r.A.channel.clamp.b(n),a:r.A.channel.clamp.a(a)});return o.A.stringify(l)}},86309(t,e,n){"use strict";n.d(e,{A:()=>i});const r={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t),hsl2rgb:({h:t,s:e,l:n},i)=>{if(!e)return 2.55*n;t/=360,e/=100;const o=(n/=100)<.5?n*(1+e):n+e-n*e,s=2*n-o;switch(i){case"r":return 255*r.hue2rgb(s,o,t+1/3);case"g":return 255*r.hue2rgb(s,o,t);case"b":return 255*r.hue2rgb(s,o,t-1/3)}},rgb2hsl:({r:t,g:e,b:n},r)=>{t/=255,e/=255,n/=255;const i=Math.max(t,e,n),o=Math.min(t,e,n),s=(i+o)/2;if("l"===r)return 100*s;if(i===o)return 0;const a=i-o;if("s"===r)return 100*(s>.5?a/(2-i-o):a/(i+o));switch(i){case t:return 60*((e-n)/a+(e<n?6:0));case e:return 60*((n-t)/a+2);case n:return 60*((t-e)/a+4);default:return-1}}},i={channel:r,lang:{clamp:(t,e,n)=>e>n?Math.min(e,Math.max(n,t)):Math.min(n,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},unit:{dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}}},60023(t,e,n){"use strict";function r(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}n.d(e,{xI:()=>yt});var i={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function o(t){i=t}var s={exec:()=>null};function a(t,e=""){let n="string"==typeof t?t:t.source,r={replace:(t,e)=>{let i="string"==typeof e?e:e.source;return i=i.replace(u.caret,"$1"),n=n.replace(t,i),r},getRegex:()=>new RegExp(n,e)};return r}var l=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),u={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},c=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,h=/(?:[*+-]|\d{1,9}[.)])/,f=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,p=a(f).replace(/bull/g,h).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),d=a(f).replace(/bull/g,h).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),g=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,y=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,m=a(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",y).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),_=a(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,h).getRegex(),b="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",x=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,v=a("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",x).replace("tag",b).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),w=a(g).replace("hr",c).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",b).getRegex(),k={blockquote:a(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",w).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:m,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:c,html:v,lheading:p,list:_,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:w,table:s,text:/^[^\n]+/},A=a("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",c).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",b).getRegex(),T={...k,lheading:d,table:A,paragraph:a(g).replace("hr",c).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",A).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",b).getRegex()},S={...k,html:a("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",x).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:s,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:a(g).replace("hr",c).replace("heading"," *#{1,6} *[^\n]").replace("lheading",p).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},M=/^( {2,}|\\)\n(?!\s*$)/,$=/[\p{P}\p{S}]/u,N=/[\s\p{P}\p{S}]/u,E=/[^\s\p{P}\p{S}]/u,C=a(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,N).getRegex(),D=/(?!~)[\p{P}\p{S}]/u,R=a(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",l?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),O=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,z=a(O,"u").replace(/punct/g,$).getRegex(),L=a(O,"u").replace(/punct/g,D).getRegex(),P="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",j=a(P,"gu").replace(/notPunctSpace/g,E).replace(/punctSpace/g,N).replace(/punct/g,$).getRegex(),I=a(P,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,D).getRegex(),U=a("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,E).replace(/punctSpace/g,N).replace(/punct/g,$).getRegex(),F=a(/\\(punct)/,"gu").replace(/punct/g,$).getRegex(),B=a(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),H=a(x).replace("(?:--\x3e|$)","--\x3e").getRegex(),Y=a("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",H).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),q=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Z=a(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",q).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),G=a(/^!?\[(label)\]\[(ref)\]/).replace("label",q).replace("ref",y).getRegex(),X=a(/^!?\[(ref)\](?:\[\])?/).replace("ref",y).getRegex(),W=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,V={_backpedal:s,anyPunctuation:F,autolink:B,blockSkip:R,br:M,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:s,emStrongLDelim:z,emStrongRDelimAst:j,emStrongRDelimUnd:U,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:Z,nolink:X,punctuation:C,reflink:G,reflinkSearch:a("reflink|nolink(?!\\()","g").replace("reflink",G).replace("nolink",X).getRegex(),tag:Y,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:s},Q={...V,link:a(/^!?\[(label)\]\((.*?)\)/).replace("label",q).getRegex(),reflink:a(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",q).getRegex()},K={...V,emStrongRDelimAst:I,emStrongLDelim:L,url:a(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",W).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:a(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",W).getRegex()},J={...K,br:a(M).replace("{2,}","*").getRegex(),text:a(K.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},tt={normal:k,gfm:T,pedantic:S},et={normal:V,gfm:K,breaks:J,pedantic:Q},nt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},rt=t=>nt[t];function it(t,e){if(e){if(u.escapeTest.test(t))return t.replace(u.escapeReplace,rt)}else if(u.escapeTestNoEncode.test(t))return t.replace(u.escapeReplaceNoEncode,rt);return t}function ot(t){try{t=encodeURI(t).replace(u.percentDecode,"%")}catch{return null}return t}function st(t,e){let n=t.replace(u.findPipe,(t,e,n)=>{let r=!1,i=e;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(u.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(u.slashPipe,"|");return n}function at(t,e,n){let r=t.length;if(0===r)return"";let i=0;for(;i<r;){let o=t.charAt(r-i-1);if(o!==e||n){if(o===e||!n)break;i++}else i++}return t.slice(0,r-i)}function lt(t,e,n,r,i){let o=e.href,s=e.title||null,a=t[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:"!"===t[0].charAt(0)?"image":"link",raw:n,href:o,title:s,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,l}var ut=class{options;rules;lexer;constructor(t){this.options=t||i}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:at(t,"\n")}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let t=e[0],n=function(t,e,n){let r=t.match(n.other.indentCodeCompensation);if(null===r)return e;let i=r[1];return e.split("\n").map(t=>{let e=t.match(n.other.beginningSpace);if(null===e)return t;let[r]=e;return r.length>=i.length?t.slice(i.length):t}).join("\n")}(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:n}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){let e=at(t,"#");(this.options.pedantic||!e||this.rules.other.endingSpaceChar.test(e))&&(t=e.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:at(e[0],"\n")}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let t=at(e[0],"\n").split("\n"),n="",r="",i=[];for(;t.length>0;){let e,o=!1,s=[];for(e=0;e<t.length;e++)if(this.rules.other.blockquoteStart.test(t[e]))s.push(t[e]),o=!0;else{if(o)break;s.push(t[e])}t=t.slice(e);let a=s.join("\n"),l=a.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${a}`:a,r=r?`${r}\n${l}`:l;let u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=u,0===t.length)break;let c=i.at(-1);if("code"===c?.type)break;if("blockquote"===c?.type){let e=c,o=e.raw+"\n"+t.join("\n"),s=this.blockquote(o);i[i.length-1]=s,n=n.substring(0,n.length-e.raw.length)+s.raw,r=r.substring(0,r.length-e.text.length)+s.text;break}if("list"===c?.type){let e=c,o=e.raw+"\n"+t.join("\n"),s=this.list(o);i[i.length-1]=s,n=n.substring(0,n.length-c.raw.length)+s.raw,r=r.substring(0,r.length-e.raw.length)+s.raw,t=o.substring(i.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:i,text:r}}}list(t){let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim(),r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let o=this.rules.other.listItemRegex(n),s=!1;for(;t;){let n=!1,r="",a="";if(!(e=o.exec(t))||this.rules.block.hr.test(t))break;r=e[0],t=t.substring(r.length);let l=e[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,t=>" ".repeat(3*t.length)),u=t.split("\n",1)[0],c=!l.trim(),h=0;if(this.options.pedantic?(h=2,a=l.trimStart()):c?h=e[1].length+1:(h=e[2].search(this.rules.other.nonSpaceChar),h=h>4?1:h,a=l.slice(h),h+=e[1].length),c&&this.rules.other.blankLine.test(u)&&(r+=u+"\n",t=t.substring(u.length+1),n=!0),!n){let e=this.rules.other.nextBulletRegex(h),n=this.rules.other.hrRegex(h),i=this.rules.other.fencesBeginRegex(h),o=this.rules.other.headingBeginRegex(h),s=this.rules.other.htmlBeginRegex(h);for(;t;){let f,p=t.split("\n",1)[0];if(u=p,this.options.pedantic?(u=u.replace(this.rules.other.listReplaceNesting," "),f=u):f=u.replace(this.rules.other.tabCharGlobal," "),i.test(u)||o.test(u)||s.test(u)||e.test(u)||n.test(u))break;if(f.search(this.rules.other.nonSpaceChar)>=h||!u.trim())a+="\n"+f.slice(h);else{if(c||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(l)||o.test(l)||n.test(l))break;a+="\n"+u}!c&&!u.trim()&&(c=!0),r+=p+"\n",t=t.substring(p.length+1),l=f.slice(h)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(s=!0));let f,p=null;this.options.gfm&&(p=this.rules.other.listIsTask.exec(a),p&&(f="[ ] "!==p[0],a=a.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:r,task:!!p,checked:f,loose:!1,text:a,tokens:[]}),i.raw+=r}let a=i.items.at(-1);if(!a)return;a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd(),i.raw=i.raw.trimEnd();for(let t=0;t<i.items.length;t++)if(this.lexer.state.top=!1,i.items[t].tokens=this.lexer.blockTokens(i.items[t].text,[]),!i.loose){let e=i.items[t].tokens.filter(t=>"space"===t.type),n=e.length>0&&e.some(t=>this.rules.other.anyLine.test(t.raw));i.loose=n}if(i.loose)for(let t=0;t<i.items.length;t++)i.items[t].loose=!0;return i}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:"pre"===e[1]||"script"===e[1]||"style"===e[1],text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let t=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:e[0],href:n,title:r}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let n=st(e[1]),r=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],o={type:"table",raw:e[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let t of r)this.rules.other.tableAlignRight.test(t)?o.align.push("right"):this.rules.other.tableAlignCenter.test(t)?o.align.push("center"):this.rules.other.tableAlignLeft.test(t)?o.align.push("left"):o.align.push(null);for(let t=0;t<n.length;t++)o.header.push({text:n[t],tokens:this.lexer.inline(n[t]),header:!0,align:o.align[t]});for(let t of i)o.rows.push(st(t,o.header.length).map((t,e)=>({text:t,tokens:this.lexer.inline(t),header:!1,align:o.align[e]})));return o}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let t="\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let e=at(t.slice(0,-1),"\\");if((t.length-e.length)%2==0)return}else{let t=function(t,e){if(-1===t.indexOf(e[1]))return-1;let n=0;for(let r=0;r<t.length;r++)if("\\"===t[r])r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return n>0?-2:-1}(e[2],"()");if(-2===t)return;if(t>-1){let n=(0===e[0].indexOf("!")?5:4)+e[1].length+t;e[2]=e[2].substring(0,t),e[0]=e[0].substring(0,n).trim(),e[3]=""}}let n=e[2],r="";if(this.options.pedantic){let t=this.rules.other.pedanticHrefTitle.exec(n);t&&(n=t[1],r=t[3])}else r=e[3]?e[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?n.slice(1):n.slice(1,-1)),lt(e,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let t=e[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!t){let t=n[0].charAt(0);return{type:"text",raw:t,text:t}}return lt(n,t,n[0],this.lexer,this.rules)}}emStrong(t,e,n=""){let r=this.rules.inline.emStrongLDelim.exec(t);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!r[1]&&!r[2]||!n||this.rules.inline.punctuation.exec(n))){let n,i,o=[...r[0]].length-1,s=o,a=0,l="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,e=e.slice(-1*t.length+o);null!=(r=l.exec(e));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n)continue;if(i=[...n].length,r[3]||r[4]){s+=i;continue}if((r[5]||r[6])&&o%3&&!((o+i)%3)){a+=i;continue}if(s-=i,s>0)continue;i=Math.min(i,i+s+a);let e=[...r[0]][0].length,l=t.slice(0,o+r.index+e+i);if(Math.min(o,i)%2){let t=l.slice(1,-1);return{type:"em",raw:l,text:t,tokens:this.lexer.inlineTokens(t)}}let u=l.slice(2,-2);return{type:"strong",raw:l,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(t),r=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return n&&r&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){let e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let t,n;return"@"===e[2]?(t=e[1],n="mailto:"+t):(t=e[1],n=t),{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let t,n;if("@"===e[2])t=e[0],n="mailto:"+t;else{let r;do{r=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??""}while(r!==e[0]);t=e[0],n="www."===e[1]?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:t}}}},ct=class t{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||i,this.options.tokenizer=this.options.tokenizer||new ut,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let e={other:u,block:tt.normal,inline:et.normal};this.options.pedantic?(e.block=tt.pedantic,e.inline=et.pedantic):this.options.gfm&&(e.block=tt.gfm,this.options.breaks?e.inline=et.breaks:e.inline=et.gfm),this.tokenizer.rules=e}static get rules(){return{block:tt,inline:et}}static lex(e,n){return new t(n).lex(e)}static lexInline(e,n){return new t(n).inlineTokens(e)}lex(t){t=t.replace(u.carriageReturn,"\n"),this.blockTokens(t,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,e=[],n=!1){for(this.options.pedantic&&(t=t.replace(u.tabCharGlobal," ").replace(u.spaceLine,""));t;){let r;if(this.options.extensions?.block?.some(n=>!!(r=n.call({lexer:this},t,e))&&(t=t.substring(r.raw.length),e.push(r),!0)))continue;if(r=this.tokenizer.space(t)){t=t.substring(r.raw.length);let n=e.at(-1);1===r.raw.length&&void 0!==n?n.raw+="\n":e.push(r);continue}if(r=this.tokenizer.code(t)){t=t.substring(r.raw.length);let n=e.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.text,this.inlineQueue.at(-1).src=n.text):e.push(r);continue}if(r=this.tokenizer.fences(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.heading(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.hr(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.blockquote(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.list(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.html(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.def(t)){t=t.substring(r.raw.length);let n=e.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},e.push(r));continue}if(r=this.tokenizer.table(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.lheading(t)){t=t.substring(r.raw.length),e.push(r);continue}let i=t;if(this.options.extensions?.startBlock){let e,n=1/0,r=t.slice(1);this.options.extensions.startBlock.forEach(t=>{e=t.call({lexer:this},r),"number"==typeof e&&e>=0&&(n=Math.min(n,e))}),n<1/0&&n>=0&&(i=t.substring(0,n+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let o=e.at(-1);n&&"paragraph"===o?.type?(o.raw+=(o.raw.endsWith("\n")?"":"\n")+r.raw,o.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):e.push(r),n=i.length!==t.length,t=t.substring(r.raw.length);continue}if(r=this.tokenizer.text(t)){t=t.substring(r.raw.length);let n=e.at(-1);"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):e.push(r);continue}if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw new Error(e)}}return this.state.top=!0,e}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(t,e=[]){let n,r=t,i=null;if(this.tokens.links){let t=Object.keys(this.tokens.links);if(t.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(r));)t.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.anyPunctuation.exec(r));)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(r));)n=i[2]?i[2].length:0,r=r.slice(0,i.index+n)+"["+"a".repeat(i[0].length-n-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let o=!1,s="";for(;t;){let n;if(o||(s=""),o=!1,this.options.extensions?.inline?.some(r=>!!(n=r.call({lexer:this},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)))continue;if(n=this.tokenizer.escape(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.tag(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.link(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(n.raw.length);let r=e.at(-1);"text"===n.type&&"text"===r?.type?(r.raw+=n.raw,r.text+=n.text):e.push(n);continue}if(n=this.tokenizer.emStrong(t,r,s)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.codespan(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.br(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.del(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.autolink(t)){t=t.substring(n.raw.length),e.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(t))){t=t.substring(n.raw.length),e.push(n);continue}let i=t;if(this.options.extensions?.startInline){let e,n=1/0,r=t.slice(1);this.options.extensions.startInline.forEach(t=>{e=t.call({lexer:this},r),"number"==typeof e&&e>=0&&(n=Math.min(n,e))}),n<1/0&&n>=0&&(i=t.substring(0,n+1))}if(n=this.tokenizer.inlineText(i)){t=t.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),o=!0;let r=e.at(-1);"text"===r?.type?(r.raw+=n.raw,r.text+=n.text):e.push(n);continue}if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw new Error(e)}}return e}},ht=class{options;parser;constructor(t){this.options=t||i}space(t){return""}code({text:t,lang:e,escaped:n}){let r=(e||"").match(u.notSpaceStart)?.[0],i=t.replace(u.endingNewline,"")+"\n";return r?'<pre><code class="language-'+it(r)+'">'+(n?i:it(i,!0))+"</code></pre>\n":"<pre><code>"+(n?i:it(i,!0))+"</code></pre>\n"}blockquote({tokens:t}){return`<blockquote>\n${this.parser.parse(t)}</blockquote>\n`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>\n`}hr(t){return"<hr>\n"}list(t){let e=t.ordered,n=t.start,r="";for(let e=0;e<t.items.length;e++){let n=t.items[e];r+=this.listitem(n)}let i=e?"ol":"ul";return"<"+i+(e&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+i+">\n"}listitem(t){let e="";if(t.task){let n=this.checkbox({checked:!!t.checked});t.loose?"paragraph"===t.tokens[0]?.type?(t.tokens[0].text=n+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&"text"===t.tokens[0].tokens[0].type&&(t.tokens[0].tokens[0].text=n+" "+it(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):e+=n+" "}return e+=this.parser.parse(t.tokens,!!t.loose),`<li>${e}</li>\n`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>\n`}table(t){let e="",n="";for(let e=0;e<t.header.length;e++)n+=this.tablecell(t.header[e]);e+=this.tablerow({text:n});let r="";for(let e=0;e<t.rows.length;e++){let i=t.rows[e];n="";for(let t=0;t<i.length;t++)n+=this.tablecell(i[t]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+r+"</table>\n"}tablerow({text:t}){return`<tr>\n${t}</tr>\n`}tablecell(t){let e=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>\n`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${it(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:n}){let r=this.parser.parseInline(n),i=ot(t);if(null===i)return r;let o='<a href="'+(t=i)+'"';return e&&(o+=' title="'+it(e)+'"'),o+=">"+r+"</a>",o}image({href:t,title:e,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=ot(t);if(null===i)return it(n);let o=`<img src="${t=i}" alt="${n}"`;return e&&(o+=` title="${it(e)}"`),o+=">",o}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:it(t.text)}},ft=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},pt=class t{options;renderer;textRenderer;constructor(t){this.options=t||i,this.options.renderer=this.options.renderer||new ht,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ft}static parse(e,n){return new t(n).parse(e)}static parseInline(e,n){return new t(n).parseInline(e)}parse(t,e=!0){let n="";for(let r=0;r<t.length;r++){let i=t[r];if(this.options.extensions?.renderers?.[i.type]){let t=i,e=this.options.extensions.renderers[t.type].call({parser:this},t);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(t.type)){n+=e||"";continue}}let o=i;switch(o.type){case"space":n+=this.renderer.space(o);continue;case"hr":n+=this.renderer.hr(o);continue;case"heading":n+=this.renderer.heading(o);continue;case"code":n+=this.renderer.code(o);continue;case"table":n+=this.renderer.table(o);continue;case"blockquote":n+=this.renderer.blockquote(o);continue;case"list":n+=this.renderer.list(o);continue;case"html":n+=this.renderer.html(o);continue;case"def":n+=this.renderer.def(o);continue;case"paragraph":n+=this.renderer.paragraph(o);continue;case"text":{let i=o,s=this.renderer.text(i);for(;r+1<t.length&&"text"===t[r+1].type;)i=t[++r],s+="\n"+this.renderer.text(i);n+=e?this.renderer.paragraph({type:"paragraph",raw:s,text:s,tokens:[{type:"text",raw:s,text:s,escaped:!0}]}):s;continue}default:{let t='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw new Error(t)}}}return n}parseInline(t,e=this.renderer){let n="";for(let r=0;r<t.length;r++){let i=t[r];if(this.options.extensions?.renderers?.[i.type]){let t=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==t||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=t||"";continue}}let o=i;switch(o.type){case"escape":case"text":n+=e.text(o);break;case"html":n+=e.html(o);break;case"link":n+=e.link(o);break;case"image":n+=e.image(o);break;case"strong":n+=e.strong(o);break;case"em":n+=e.em(o);break;case"codespan":n+=e.codespan(o);break;case"br":n+=e.br(o);break;case"del":n+=e.del(o);break;default:{let t='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw new Error(t)}}}return n}},dt=class{options;block;constructor(t){this.options=t||i}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?ct.lex:ct.lexInline}provideParser(){return this.block?pt.parse:pt.parseInline}},gt=new class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=pt;Renderer=ht;TextRenderer=ft;Lexer=ct;Tokenizer=ut;Hooks=dt;constructor(...t){this.use(...t)}walkTokens(t,e){let n=[];for(let r of t)switch(n=n.concat(e.call(this,r)),r.type){case"table":{let t=r;for(let r of t.header)n=n.concat(this.walkTokens(r.tokens,e));for(let r of t.rows)for(let t of r)n=n.concat(this.walkTokens(t.tokens,e));break}case"list":{let t=r;n=n.concat(this.walkTokens(t.items,e));break}default:{let t=r;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(r=>{let i=t[r].flat(1/0);n=n.concat(this.walkTokens(i,e))}):t.tokens&&(n=n.concat(this.walkTokens(t.tokens,e)))}}return n}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(t=>{let n={...t};if(n.async=this.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach(t=>{if(!t.name)throw new Error("extension name required");if("renderer"in t){let n=e.renderers[t.name];e.renderers[t.name]=n?function(...e){let r=t.renderer.apply(this,e);return!1===r&&(r=n.apply(this,e)),r}:t.renderer}if("tokenizer"in t){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw new Error("extension level must be 'block' or 'inline'");let n=e[t.level];n?n.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),n.extensions=e),t.renderer){let e=this.defaults.renderer||new ht(this.defaults);for(let n in t.renderer){if(!(n in e))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=n,i=t.renderer[r],o=e[r];e[r]=(...t)=>{let n=i.apply(e,t);return!1===n&&(n=o.apply(e,t)),n||""}}n.renderer=e}if(t.tokenizer){let e=this.defaults.tokenizer||new ut(this.defaults);for(let n in t.tokenizer){if(!(n in e))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=n,i=t.tokenizer[r],o=e[r];e[r]=(...t)=>{let n=i.apply(e,t);return!1===n&&(n=o.apply(e,t)),n}}n.tokenizer=e}if(t.hooks){let e=this.defaults.hooks||new dt;for(let n in t.hooks){if(!(n in e))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=n,i=t.hooks[r],o=e[r];dt.passThroughHooks.has(n)?e[r]=t=>{if(this.defaults.async&&dt.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(e,t);return o.call(e,n)})();let r=i.call(e,t);return o.call(e,r)}:e[r]=(...t)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(e,t);return!1===n&&(n=await o.apply(e,t)),n})();let n=i.apply(e,t);return!1===n&&(n=o.apply(e,t)),n}}n.hooks=e}if(t.walkTokens){let e=this.defaults.walkTokens,r=t.walkTokens;n.walkTokens=function(t){let n=[];return n.push(r.call(this,t)),e&&(n=n.concat(e.call(this,t))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return ct.lex(t,e??this.defaults)}parser(t,e){return pt.parse(t,e??this.defaults)}parseMarkdown(t){return(e,n)=>{let r={...n},i={...this.defaults,...r},o=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||null===e)return o(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=t),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(e):e,r=await(i.hooks?await i.hooks.provideLexer():t?ct.lex:ct.lexInline)(n,i),o=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(o,i.walkTokens));let s=await(i.hooks?await i.hooks.provideParser():t?pt.parse:pt.parseInline)(o,i);return i.hooks?await i.hooks.postprocess(s):s})().catch(o);try{i.hooks&&(e=i.hooks.preprocess(e));let n=(i.hooks?i.hooks.provideLexer():t?ct.lex:ct.lexInline)(e,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser():t?pt.parse:pt.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(t){return o(t)}}}onError(t,e){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",t){let t="<p>An error occurred:</p><pre>"+it(n.message+"",!0)+"</pre>";return e?Promise.resolve(t):t}if(e)return Promise.reject(n);throw n}}};function yt(t,e){return gt.parse(t,e)}yt.options=yt.setOptions=function(t){return gt.setOptions(t),yt.defaults=gt.defaults,o(yt.defaults),yt},yt.getDefaults=r,yt.defaults=i,yt.use=function(...t){return gt.use(...t),yt.defaults=gt.defaults,o(yt.defaults),yt},yt.walkTokens=function(t,e){return gt.walkTokens(t,e)},yt.parseInline=gt.parseInline,yt.Parser=pt,yt.parser=pt.parse,yt.Renderer=ht,yt.TextRenderer=ft,yt.Lexer=ct,yt.lexer=ct.lex,yt.Tokenizer=ut,yt.Hooks=dt,yt.parse=yt;yt.options,yt.setOptions,yt.use,yt.walkTokens,yt.parseInline,pt.parse,ct.lex},24534(t,e,n){"use strict";n.d(e,{$1:()=>l,CU:()=>u,IO:()=>h,LU:()=>o,Rn:()=>s,Sv:()=>c,XZ:()=>i,YK:()=>r,hx:()=>f,yE:()=>a});var r="comm",i="rule",o="decl",s="@media",a="@import",l="@supports",u="@namespace",c="@keyframes",h="@layer",f="@scope"},49503(t,e,n){"use strict";n.d(e,{r1:()=>i});var r=n(19735);function i(t){var e=(0,r.FK)(t);return function(n,r,i,o){for(var s="",a=0;a<e;a++)s+=t[a](n,r,i,o)||"";return s}}},6057(t,e,n){"use strict";n.d(e,{wE:()=>S});var r=n(24534),i=n(19735),o=1,s=1,a=0,l=0,u=0,c="";function h(t,e,n,r,i,a,l,u){return{value:t,root:e,parent:n,type:r,props:i,children:a,line:o,column:s,length:l,return:"",siblings:u}}function f(){return u=l>0?(0,i.wN)(c,--l):0,s--,10===u&&(s=1,o--),u}function p(){return u=l<a?(0,i.wN)(c,l++):0,s++,10===u&&(s=1,o++),u}function d(){return(0,i.wN)(c,l)}function g(){return l}function y(t,e){return(0,i.c1)(c,t,e)}function m(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function _(t){return o=s=1,a=(0,i.b2)(c=t),l=0,[]}function b(t){return c="",t}function x(t){return(0,i.Bq)(y(l-1,k(91===t?t+2:40===t?t+1:t)))}function v(t){for(;(u=d())&&u<33;)p();return m(t)>2||m(u)>3?"":" "}function w(t,e){for(;--e&&p()&&!(u<48||u>102||u>57&&u<65||u>70&&u<97););return y(t,g()+(e<6&&32==d()&&32==p()))}function k(t){for(;p();)switch(u){case t:return l;case 34:case 39:34!==t&&39!==t&&k(u);break;case 40:41===t&&k(t);break;case 92:p()}return l}function A(t,e){for(;p()&&t+u!==57&&(t+u!==84||47!==d()););return"/*"+y(e,l-1)+"*"+(0,i.HT)(47===t?t:p())}function T(t){for(;!m(d());)p();return y(t,l)}function S(t){return b(M("",null,null,null,[""],t=_(t),0,[0],t))}function M(t,e,n,r,o,s,a,l,u){for(var c=0,h=0,y=a,_=0,b=0,k=0,S=1,C=1,D=1,R=0,O=0,z="",L=o,P=s,j=r,I=z;C;)switch(k=O,O=p()){case 40:108!=k&&58==(0,i.wN)(I,y-1)?(R++,I+="("):I+=x(O);break;case 41:R--,I+=")";break;case 34:case 39:case 91:I+=x(O);break;case 9:case 10:case 13:case 32:if(R>0){I+=(0,i.HT)(O);break}I+=v(k);break;case 92:I+=w(g()-1,7);continue;case 47:switch(d()){case 42:case 47:(0,i.BC)(N(A(p(),g()),e,n,u),u),5!=m(k||1)&&5!=m(d()||1)||!(0,i.b2)(I)||" "===(0,i.c1)(I,-1,void 0)||(I+=" ");break;default:I+="/"}break;case 123*S:l[c++]=(0,i.b2)(I)*D;case 125*S:case 59:case 0:if(R>0&&O){I+=(0,i.HT)(O);break}switch(O){case 0:case 125:C=0;case 59+h:-1==D&&(I=(0,i.HC)(I,/\f/g,"")),b>0&&((0,i.b2)(I)-y||0===S)&&(0,i.BC)(b>32?E(I+";",r,n,y-1,u):E((0,i.HC)(I," ","")+";",r,n,y-2,u),u);break;case 59:I+=";";default:if((0,i.BC)(j=$(I,e,n,c,h,o,l,z,L=[],P=[],y,s),s),123===O)if(0===h)M(I,e,j,j,L,s,y,l,P);else{switch(_){case 99:if(110===(0,i.wN)(I,3))break;case 108:if(97===(0,i.wN)(I,2))break;default:h=0;case 100:case 109:case 115:}h?M(t,j,j,r&&(0,i.BC)($(t,j,j,0,0,o,l,z,o,L=[],y,P),P),o,P,y,l,r?L:P):M(I,j,j,j,[""],P,0,l,P)}}c=h=b=0,S=D=1,z=I="",y=a;break;case 58:y=1+(0,i.b2)(I),b=k;default:if(S<1)if(123==O)--S;else if(125==O&&0==S++&&125==f())continue;switch(I+=(0,i.HT)(O),O*S){case 38:D=h>0?1:(I+="\f",-1);break;case 44:if(R>0)break;l[c++]=((0,i.b2)(I)-1)*D,D=1;break;case 64:45===d()&&(I+=x(p())),_=d(),h=y=(0,i.b2)(z=I+=T(g())),O++;break;case 45:45===k&&2==(0,i.b2)(I)&&(S=0)}}return s}function $(t,e,n,o,s,a,l,u,c,f,p,d){for(var g=s-1,y=0===s?a:[""],m=(0,i.FK)(y),_=0,b=0,x=0;_<o;++_)for(var v=0,w=(0,i.c1)(t,g+1,g=(0,i.tn)(b=l[_])),k=t;v<m;++v)(k=(0,i.Bq)(b>0?y[v]+" "+w:(0,i.HC)(w,/&\f/g,y[v])))&&(c[x++]=k);return h(t,e,n,0===s?r.XZ:u,c,f,p,d)}function N(t,e,n,o){return h(t,e,n,r.YK,(0,i.HT)(u),(0,i.c1)(t,2,-2),0,o)}function E(t,e,n,o,s){return h(t,e,n,r.LU,(0,i.c1)(t,0,o),(0,i.c1)(t,o+1,-1),o,s)}},50483(t,e,n){"use strict";n.d(e,{A:()=>s,l:()=>o});var r=n(24534),i=n(19735);function o(t,e){for(var n="",r=0;r<t.length;r++)n+=e(t[r],r,t,e)||"";return n}function s(t,e,n,s){switch(t.type){case r.IO:if(t.children.length)break;case r.yE:case r.CU:case r.LU:return t.return=t.return||t.value;case r.YK:return"";case r.Sv:return t.return=t.value+"{"+o(t.children,s)+"}";case r.XZ:if(!(0,i.b2)(t.value=t.props.join(",")))return""}return(0,i.b2)(n=o(t.children,s))?t.return=t.value+"{"+n+"}":""}},19735(t,e,n){"use strict";n.d(e,{BC:()=>h,Bq:()=>o,FK:()=>c,HC:()=>s,HT:()=>i,b2:()=>u,c1:()=>l,tn:()=>r,wN:()=>a});var r=Math.abs,i=String.fromCharCode;Object.assign;function o(t){return t.trim()}function s(t,e,n){return t.replace(e,n)}function a(t,e){return 0|t.charCodeAt(e)}function l(t,e,n){return t.slice(e,n)}function u(t){return t.length}function c(t){return t.length}function h(t,e){return e.push(t),t}},84146(t,e,n){"use strict";function r(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=Array.from("string"==typeof t?[t]:t);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var i=r.reduce(function(t,e){var n=e.match(/\n([\t ]+|(?!\s).)/g);return n?t.concat(n.map(function(t){var e,n;return null!==(n=null===(e=t.match(/[\t ]/g))||void 0===e?void 0:e.length)&&void 0!==n?n:0})):t},[]);if(i.length){var o=new RegExp("\n[\t ]{".concat(Math.min.apply(Math,i),"}"),"g");r=r.map(function(t){return t.replace(o,"\n")})}r[0]=r[0].replace(/^\r?\n/,"");var s=r[0];return e.forEach(function(t,e){var n=s.match(/(?:^|\n)( *)$/),i=n?n[1]:"",o=t;"string"==typeof t&&t.includes("\n")&&(o=String(t).split("\n").map(function(t,e){return 0===e?t:"".concat(i).concat(t)}).join("\n")),s+=o+r[e+1]}),s}n.d(e,{T:()=>r})}}]);