Jetpack by WordPress.com - Version 10.8-a.9.2

Version Description

Download this release

Release Info

Developer samiff
Plugin Icon 128x128 Jetpack by WordPress.com
Version 10.8-a.9.2
Comparing to
See all releases

Code changes from version 10.8-a.9 to 10.8-a.9.2

CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
 
3
  ### This is a list detailing changes for all Jetpack releases.
4
 
 
 
 
 
5
  ## 10.8-a.9 - 2022-03-23
6
  ### Major Enhancements
7
  - QR Post: add new feature which automatically generates QR codes for published posts. When scanned, the QR code will link visitors to the post. If a site has a custom logo set, it will be shown in the generated QR code image.
2
 
3
  ### This is a list detailing changes for all Jetpack releases.
4
 
5
+ ## 10.8-a.10 - unreleased
6
+
7
+ This is an alpha version! The changes listed here are not final.
8
+
9
  ## 10.8-a.9 - 2022-03-23
10
  ### Major Enhancements
11
  - QR Post: add new feature which automatically generates QR codes for published posts. When scanned, the QR code will link visitors to the post. If a site has a custom logo set, it will be shown in the generated QR code image.
class.jetpack-admin.php CHANGED
@@ -70,7 +70,7 @@ class Jetpack_Admin {
70
 
71
  // Add redirect to current page for activation/deactivation of modules.
72
  add_action( 'jetpack_pre_activate_module', array( $this, 'fix_redirect' ), 10, 2 );
73
- add_action( 'jetpack_pre_deactivate_module', array( $this, 'fix_redirect' ) );
74
 
75
  // Add module bulk actions handler.
76
  add_action( 'jetpack_unrecognized_action', array( $this, 'handle_unrecognized_action' ) );
70
 
71
  // Add redirect to current page for activation/deactivation of modules.
72
  add_action( 'jetpack_pre_activate_module', array( $this, 'fix_redirect' ), 10, 2 );
73
+ add_action( 'jetpack_pre_deactivate_module', array( $this, 'fix_redirect' ), 10, 2 );
74
 
75
  // Add module bulk actions handler.
76
  add_action( 'jetpack_unrecognized_action', array( $this, 'handle_unrecognized_action' ) );
class.jetpack.php CHANGED
@@ -3067,8 +3067,9 @@ class Jetpack {
3067
  * @since 1.9.0
3068
  *
3069
  * @param string $module Module slug.
 
3070
  */
3071
- do_action( 'jetpack_pre_deactivate_module', $module );
3072
 
3073
  $jetpack = self::init();
3074
 
3067
  * @since 1.9.0
3068
  *
3069
  * @param string $module Module slug.
3070
+ * @param bool $redirect Should there be a redirection after deactivation.
3071
  */
3072
+ do_action( 'jetpack_pre_deactivate_module', $module, true );
3073
 
3074
  $jetpack = self::init();
3075
 
composer.json CHANGED
@@ -25,24 +25,24 @@
25
  "automattic/jetpack-constants": "^1.6",
26
  "automattic/jetpack-device-detection": "^1.4",
27
  "automattic/jetpack-error": "^1.3",
28
- "automattic/jetpack-google-fonts-provider": "^0.2.0",
29
  "automattic/jetpack-heartbeat": "^1.4",
30
- "automattic/jetpack-identity-crisis": "^0.8.3",
31
  "automattic/jetpack-jitm": "^2.2",
32
  "automattic/jetpack-lazy-images": "^2.1",
33
  "automattic/jetpack-licensing": "^1.6",
34
  "automattic/jetpack-logo": "^1.5",
35
- "automattic/jetpack-my-jetpack": "^0.6.11",
36
  "automattic/jetpack-options": "^1.14",
37
  "automattic/jetpack-partner": "^1.7",
38
- "automattic/jetpack-plugins-installer": "^0.1.0",
39
  "automattic/jetpack-redirect": "^1.7",
40
  "automattic/jetpack-roles": "^1.4",
41
- "automattic/jetpack-search": "^0.11.2",
42
  "automattic/jetpack-status": "^1.12",
43
  "automattic/jetpack-sync": "^1.30",
44
  "automattic/jetpack-tracking": "^1.14",
45
- "automattic/jetpack-waf": "^0.1.0",
46
  "nojimage/twitter-text-php": "3.1.2"
47
  },
48
  "require-dev": {
25
  "automattic/jetpack-constants": "^1.6",
26
  "automattic/jetpack-device-detection": "^1.4",
27
  "automattic/jetpack-error": "^1.3",
28
+ "automattic/jetpack-google-fonts-provider": "^0.2",
29
  "automattic/jetpack-heartbeat": "^1.4",
30
+ "automattic/jetpack-identity-crisis": "^0.8",
31
  "automattic/jetpack-jitm": "^2.2",
32
  "automattic/jetpack-lazy-images": "^2.1",
33
  "automattic/jetpack-licensing": "^1.6",
34
  "automattic/jetpack-logo": "^1.5",
35
+ "automattic/jetpack-my-jetpack": "^0.6",
36
  "automattic/jetpack-options": "^1.14",
37
  "automattic/jetpack-partner": "^1.7",
38
+ "automattic/jetpack-plugins-installer": "^0.1",
39
  "automattic/jetpack-redirect": "^1.7",
40
  "automattic/jetpack-roles": "^1.4",
41
+ "automattic/jetpack-search": "^0.11",
42
  "automattic/jetpack-status": "^1.12",
43
  "automattic/jetpack-sync": "^1.30",
44
  "automattic/jetpack-tracking": "^1.14",
45
+ "automattic/jetpack-waf": "^0.1",
46
  "nojimage/twitter-text-php": "3.1.2"
47
  },
48
  "require-dev": {
jetpack.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: https://jetpack.com
5
  * Description: Security, performance, and marketing tools made by WordPress experts. Jetpack keeps your site protected so you can focus on more important things.
6
  * Author: Automattic
7
- * Version: 10.8-a.9
8
  * Author URI: https://jetpack.com
9
  * License: GPL2+
10
  * Text Domain: jetpack
@@ -32,7 +32,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32
 
33
  define( 'JETPACK__MINIMUM_WP_VERSION', '5.8' );
34
  define( 'JETPACK__MINIMUM_PHP_VERSION', '5.6' );
35
- define( 'JETPACK__VERSION', '10.8-a.9' );
36
 
37
  /**
38
  * Constant used to fetch the connection owner token
4
  * Plugin URI: https://jetpack.com
5
  * Description: Security, performance, and marketing tools made by WordPress experts. Jetpack keeps your site protected so you can focus on more important things.
6
  * Author: Automattic
7
+ * Version: 10.8-a.9.2
8
  * Author URI: https://jetpack.com
9
  * License: GPL2+
10
  * Text Domain: jetpack
32
 
33
  define( 'JETPACK__MINIMUM_WP_VERSION', '5.8' );
34
  define( 'JETPACK__MINIMUM_PHP_VERSION', '5.6' );
35
+ define( 'JETPACK__VERSION', '10.8-a.9.2' );
36
 
37
  /**
38
  * Constant used to fetch the connection owner token
jetpack_vendor/automattic/jetpack-search/CHANGELOG.md CHANGED
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
 
 
 
 
 
 
 
 
8
  ## [0.11.2] - 2022-03-23
9
  ### Added
10
  - adds basic structure for record meter with dummy data
@@ -171,6 +178,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
171
  - Updated package dependencies.
172
  - Update PHPUnit configs to include just what needs coverage rather than include everything then try to exclude stuff that doesn't.
173
 
 
174
  [0.11.2]: https://github.com/Automattic/jetpack-search/compare/v0.11.1...v0.11.2
175
  [0.11.1]: https://github.com/Automattic/jetpack-search/compare/v0.11.0...v0.11.1
176
  [0.11.0]: https://github.com/Automattic/jetpack-search/compare/v0.10.0...v0.11.0
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
 
8
+ ## [0.11.3] - 2022-03-24
9
+ ### Added
10
+ - Search: adds a record count above the record meter chart.
11
+
12
+ ### Fixed
13
+ - Deactivation: Do not attempt to redirect on a behind-the-scene deactivation.
14
+
15
  ## [0.11.2] - 2022-03-23
16
  ### Added
17
  - adds basic structure for record meter with dummy data
178
  - Updated package dependencies.
179
  - Update PHPUnit configs to include just what needs coverage rather than include everything then try to exclude stuff that doesn't.
180
 
181
+ [0.11.3]: https://github.com/Automattic/jetpack-search/compare/v0.11.2...v0.11.3
182
  [0.11.2]: https://github.com/Automattic/jetpack-search/compare/v0.11.1...v0.11.2
183
  [0.11.1]: https://github.com/Automattic/jetpack-search/compare/v0.11.0...v0.11.1
184
  [0.11.0]: https://github.com/Automattic/jetpack-search/compare/v0.10.0...v0.11.0
jetpack_vendor/automattic/jetpack-search/build/customberg/jp-search-configure.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-block-editor', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport'), 'version' => '52e205082587ff65e2d08a67399837e9');
1
+ <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-block-editor', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport'), 'version' => '42151c9aea481ee570f701f2e99cf47f');
jetpack_vendor/automattic/jetpack-search/build/dashboard/jp-search-dashboard.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '49f4b6865dd603e7715f2a909ea552b6');
1
+ <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '97eb7f2a07a61e958fa9b23a497be90b');
jetpack_vendor/automattic/jetpack-search/build/dashboard/jp-search-dashboard.js CHANGED
@@ -1,4 +1,5 @@
1
  /*! For license information please see jp-search-dashboard.js.LICENSE.txt */
2
  !function(){var t={4502:function(t){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},236:function(t){function e(){return t.exports=e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},t.exports.__esModule=!0,t.exports.default=t.exports,e.apply(this,arguments)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},9506:function(t,e,n){"use strict";var i=n(9057);i.kL.register(...i.zX),e.Z=i.kL},9057:function(t,e,n){"use strict";n.d(e,{kL:function(){return ce},zX:function(){return qn}});var i=n(7202);var s=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,i){const s=e.listeners[i],o=e.duration;s.forEach((i=>i({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(n-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=i.r.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((n,i)=>{if(!n.running||!n.items.length)return;const s=n.items;let o,r=s.length-1,a=!1;for(;r>=0;--r)o=s[r],o._active?(o._total>n.duration&&(n.duration=o._total),o.tick(t),a=!0):(s[r]=s[s.length-1],s.pop());a&&(i.draw(),this._notify(i,n,t,"progress")),s.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),e+=s.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const o="transparent",r={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const s=(0,i.c)(t||o),r=s.valid&&(0,i.c)(e||o);return r&&r.valid?r.mix(s,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class a{constructor(t,e,n,s){const o=e[n];s=(0,i.a)([t.to,s,o,t.from]);const a=(0,i.a)([t.from,o,s]);this._active=!0,this._fn=t.fn||r[t.type||typeof a],this._easing=i.e[t.easing]||i.e.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=a,this._to=s,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const s=this._target[this._prop],o=n-this._start,r=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=(0,i.a)([t.to,e,s,t.from]),this._from=(0,i.a)([t.from,s,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,i=this._prop,s=this._from,o=this._loop,r=this._to;let a;if(this._active=s!==r&&(o||e<n),!this._active)return this._target[i]=r,void this._notify(!0);e<0?this._target[i]=s:(a=e/n%2,a=o&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[i]=this._fn(s,r,a))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,n)=>{t.push({res:e,rej:n})}))}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}i.d.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const c=Object.keys(i.d.animation);i.d.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),i.d.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),i.d.describe("animations",{_fallback:"animation"}),i.d.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class l{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!(0,i.i)(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach((n=>{const s=t[n];if(!(0,i.i)(s))return;const o={};for(const t of c)o[t]=s[t];((0,i.b)(s.properties)&&s.properties||[n]).forEach((t=>{t!==n&&e.has(t)||e.set(t,o)}))}))}_animateOptions(t,e){const n=e.options,i=function(t,e){if(!e)return;let n=t.options;if(!n)return void(t.options=e);n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(t,n);if(!i)return[];const s=this._createAnimations(i,n);return n.$shared&&function(t,e){const n=[],i=Object.keys(e);for(let e=0;e<i.length;e++){const s=t[i[e]];s&&s.active()&&n.push(s.wait())}return Promise.all(n)}(t.options.$animations,n).then((()=>{t.options=n}),(()=>{})),s}_createAnimations(t,e){const n=this._properties,i=[],s=t.$animations||(t.$animations={}),o=Object.keys(e),r=Date.now();let c;for(c=o.length-1;c>=0;--c){const l=o[c];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(t,e));continue}const h=e[l];let u=s[l];const d=n.get(l);if(u){if(d&&u.active()){u.update(d,h,r);continue}u.cancel()}d&&d.duration?(s[l]=u=new a(d,t,l,h),i.push(u)):t[l]=h}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(s.add(this._chart,n),!0):void 0}}function h(t,e){const n=t&&t.options||{},i=n.reverse,s=void 0===n.min?e:0,o=void 0===n.max?e:0;return{start:i?o:s,end:i?s:o}}function u(t,e){const n=[],i=t._getSortedDatasetMetas(e);let s,o;for(s=0,o=i.length;s<o;++s)n.push(i[s].index);return n}function d(t,e,n,s={}){const o=t.keys,r="single"===s.mode;let a,c,l,h;if(null!==e){for(a=0,c=o.length;a<c;++a){if(l=+o[a],l===n){if(s.all)continue;break}h=t.values[l],(0,i.g)(h)&&(r||0===e||(0,i.s)(e)===(0,i.s)(h))&&(e+=h)}return e}}function p(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function f(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function g(t,e,n,i){for(const s of e.getMatchingVisibleMetas(i).reverse()){const e=t[s.index];if(n&&e>0||!n&&e<0)return s.index}return null}function m(t,e){const{chart:n,_cachedMeta:i}=t,s=n._stacks||(n._stacks={}),{iScale:o,vScale:r,index:a}=i,c=o.axis,l=r.axis,h=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(o,r,i),u=e.length;let d;for(let t=0;t<u;++t){const n=e[t],{[c]:o,[l]:u}=n;d=(n._stacks||(n._stacks={}))[l]=f(s,h,o),d[a]=u,d._top=g(d,r,!0,i.type),d._bottom=g(d,r,!1,i.type)}}function b(t,e){const n=t.scales;return Object.keys(n).filter((t=>n[t].axis===e)).shift()}function x(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[i]||void 0===e[i][n])return;delete e[i][n]}}}const v=t=>"reset"===t||"none"===t,y=(t,e)=>e?t:Object.assign({},t);class _{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=p(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&x(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),s=(t,e,n,i)=>"x"===t?e:"r"===t?i:n,o=e.xAxisID=(0,i.v)(n.xAxisID,b(t,"x")),r=e.yAxisID=(0,i.v)(n.yAxisID,b(t,"y")),a=e.rAxisID=(0,i.v)(n.rAxisID,b(t,"r")),c=e.indexAxis,l=e.iAxisID=s(c,o,r,a),h=e.vAxisID=s(c,r,o,a);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(r),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(h)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&(0,i.u)(this._data,this),t._stacked&&x(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if((0,i.i)(e))this._data=function(t){const e=Object.keys(t),n=new Array(e.length);let i,s,o;for(i=0,s=e.length;i<s;++i)o=e[i],n[i]={x:o,y:t[o]};return n}(e);else if(n!==e){if(n){(0,i.u)(n,this);const t=this._cachedMeta;x(t),t._parsed=[]}e&&Object.isExtensible(e)&&(0,i.l)(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const s=e._stacked;e._stacked=p(e.vScale,e),e.stack!==n.stack&&(i=!0,x(e),e.stack=n.stack),this._resyncElements(t),(i||s!==e._stacked)&&m(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:s}=this,{iScale:o,_stacked:r}=n,a=o.axis;let c,l,h,u=0===t&&e===s.length||n._sorted,d=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=s,n._sorted=!0,h=s;else{h=(0,i.b)(s[t])?this.parseArrayData(n,s,t,e):(0,i.i)(s[t])?this.parseObjectData(n,s,t,e):this.parsePrimitiveData(n,s,t,e);const o=()=>null===l[a]||d&&l[a]<d[a];for(c=0;c<e;++c)n._parsed[c+t]=l=h[c],u&&(o()&&(u=!1),d=l);n._sorted=u}r&&m(this,h)}parsePrimitiveData(t,e,n,i){const{iScale:s,vScale:o}=t,r=s.axis,a=o.axis,c=s.getLabels(),l=s===o,h=new Array(i);let u,d,p;for(u=0,d=i;u<d;++u)p=u+n,h[u]={[r]:l||s.parse(c[p],p),[a]:o.parse(e[p],p)};return h}parseArrayData(t,e,n,i){const{xScale:s,yScale:o}=t,r=new Array(i);let a,c,l,h;for(a=0,c=i;a<c;++a)l=a+n,h=e[l],r[a]={x:s.parse(h[0],l),y:o.parse(h[1],l)};return r}parseObjectData(t,e,n,s){const{xScale:o,yScale:r}=t,{xAxisKey:a="x",yAxisKey:c="y"}=this._parsing,l=new Array(s);let h,u,d,p;for(h=0,u=s;h<u;++h)d=h+n,p=e[d],l[h]={x:o.parse((0,i.f)(p,a),d),y:r.parse((0,i.f)(p,c),d)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const i=this.chart,s=this._cachedMeta,o=e[t.axis];return d({keys:u(i,!0),values:e._stacks[t.axis]},o,s.index,{mode:n})}updateRangeFromParsed(t,e,n,i){const s=n[e.axis];let o=null===s?NaN:s;const r=i&&n._stacks[e.axis];i&&r&&(i.values=r,o=d(i,s,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const n=this._cachedMeta,s=n._parsed,o=n._sorted&&t===n.iScale,r=s.length,a=this._getOtherScale(t),c=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:u(n,!0),values:null})(e,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:d}=function(t){const{min:e,max:n,minDefined:i,maxDefined:s}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:s?n:Number.POSITIVE_INFINITY}}(a);let p,f;function g(){f=s[p];const e=f[a.axis];return!(0,i.g)(f[t.axis])||h>e||d<e}for(p=0;p<r&&(g()||(this.updateRangeFromParsed(l,t,f,c),!o));++p);if(o)for(p=r-1;p>=0;--p)if(!g()){this.updateRangeFromParsed(l,t,f,c);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let s,o,r;for(s=0,o=e.length;s<o;++s)r=e[s][t.axis],(0,i.g)(r)&&n.push(r);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,i=e.vScale,s=this.getParsed(t);return{label:n?""+n.getLabelForValue(s[n.axis]):"",value:i?""+i.getLabelForValue(s[i.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,s,o;return(0,i.i)(t)?(e=t.top,n=t.right,s=t.bottom,o=t.left):e=n=s=o=t,{top:e,right:n,bottom:s,left:o,disabled:!1===t}}((0,i.v)(this.options.clip,function(t,e,n){if(!1===n)return!1;const i=h(t,n),s=h(e,n);return{top:s.end,right:i.end,bottom:s.start,left:i.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,i=n.data||[],s=e.chartArea,o=[],r=this._drawStart||0,a=this._drawCount||i.length-r,c=this.options.drawActiveElementsOnTop;let l;for(n.dataset&&n.dataset.draw(t,s,r,a),l=r;l<r+a;++l){const e=i[l];e.hidden||(e.active&&c?o.push(e):e.draw(t,s))}for(l=0;l<o.length;++l)o[l].draw(t,s)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const s=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];o=e.$context||(e.$context=function(t,e,n){return(0,i.h)(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),o.parsed=this.getParsed(t),o.raw=s.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=function(t,e){return(0,i.h)(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),o.dataset=s,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=n,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const s="active"===e,o=this._cachedDataOpts,r=t+"-"+e,a=o[r],c=this.enableOptionSharing&&(0,i.j)(n);if(a)return y(a,c);const l=this.chart.config,h=l.datasetElementScopeKeys(this._type,t),u=s?[`${t}Hover`,"hover",t,""]:[t,""],d=l.getOptionScopes(this.getDataset(),h),p=Object.keys(i.d.elements[t]),f=l.resolveNamedOptions(d,p,(()=>this.getContext(n,s)),u);return f.$shared&&(f.$shared=c,o[r]=Object.freeze(y(f,c))),f}_resolveAnimations(t,e,n){const i=this.chart,s=this._cachedDataOpts,o=`animation-${e}`,r=s[o];if(r)return r;let a;if(!1!==i.options.animation){const i=this.chart.config,s=i.datasetAnimationScopeKeys(this._type,e),o=i.getOptionScopes(this.getDataset(),s);a=i.createResolver(o,this.getContext(t,n,e))}const c=new l(i,a&&a.animations);return a&&a._cacheable&&(s[o]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||v(t)||this.chart._animationsDisabled}updateElement(t,e,n,i){v(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!v(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,i){t.active=i;const s=this.getStyle(e,i);this._resolveAnimations(e,n,i).update(t,{options:!i&&this.getSharedOptions(s)||s})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const i=n.length,s=e.length,o=Math.min(s,i);o&&this.parse(0,o),s>i?this._insertElements(i,s-i,t):s<i&&this._removeElements(s,i-s)}_insertElements(t,e,n=!0){const i=this._cachedMeta,s=i.data,o=t+e;let r;const a=t=>{for(t.length+=e,r=t.length-1;r>=o;r--)t[r]=t[r-e]};for(a(s),r=t;r<o;++r)s[r]=new this.dataElementType;this._parsing&&a(i._parsed),this.parse(t,e),n&&this.updateElements(s,t,e,"reset")}updateElements(t,e,n,i){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,e);n._stacked&&x(n,i)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,i]=t;this[e](n,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function k(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let s=[];for(let e=0,i=n.length;e<i;e++)s=s.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=(0,i._)(s.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let s,o,r,a,c=e._length;const l=()=>{32767!==r&&-32768!==r&&((0,i.j)(a)&&(c=Math.min(c,Math.abs(r-a)||c)),a=r)};for(s=0,o=n.length;s<o;++s)r=e.getPixelForValue(n[s]),l();for(a=void 0,s=0,o=e.ticks.length;s<o;++s)r=e.getPixelForTick(s),l();return c}function w(t,e,n,s){return(0,i.b)(t)?function(t,e,n,i){const s=n.parse(t[0],i),o=n.parse(t[1],i),r=Math.min(s,o),a=Math.max(s,o);let c=r,l=a;Math.abs(r)>Math.abs(a)&&(c=a,l=r),e[n.axis]=l,e._custom={barStart:c,barEnd:l,start:s,end:o,min:r,max:a}}(t,e,n,s):e[n.axis]=n.parse(t,s),e}function S(t,e,n,i){const s=t.iScale,o=t.vScale,r=s.getLabels(),a=s===o,c=[];let l,h,u,d;for(l=n,h=n+i;l<h;++l)d=e[l],u={},u[s.axis]=a||s.parse(r[l],l),c.push(w(d,u,o,l));return c}function M(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function C(t,e,n,i){let s=e.borderSkipped;const o={};if(!s)return void(t.borderSkipped=o);const{start:r,end:a,reverse:c,top:l,bottom:h}=function(t){let e,n,i,s,o;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(s="end",o="start"):(s="start",o="end"),{start:n,end:i,reverse:e,top:s,bottom:o}}(t);"middle"===s&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?s=l:(n._bottom||0)===i?s=h:(o[E(h,r,a,c)]=!0,s=l)),o[E(s,r,a,c)]=!0,t.borderSkipped=o}function E(t,e,n,i){var s,o,r;return i?(r=n,t=P(t=(s=t)===(o=e)?r:s===r?o:s,n,e)):t=P(t,e,n),t}function P(t,e,n){return"start"===t?e:"end"===t?n:t}function O(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}_.defaults={},_.prototype.datasetElementType=null,_.prototype.dataElementType=null;class j extends _{parsePrimitiveData(t,e,n,i){return S(t,e,n,i)}parseArrayData(t,e,n,i){return S(t,e,n,i)}parseObjectData(t,e,n,s){const{iScale:o,vScale:r}=t,{xAxisKey:a="x",yAxisKey:c="y"}=this._parsing,l="x"===o.axis?a:c,h="x"===r.axis?a:c,u=[];let d,p,f,g;for(d=n,p=n+s;d<p;++d)g=e[d],f={},f[o.axis]=o.parse((0,i.f)(g,l),d),u.push(w((0,i.f)(g,h),f,r,d));return u}updateRangeFromParsed(t,e,n,i){super.updateRangeFromParsed(t,e,n,i);const s=n._custom;s&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,s.min),t.max=Math.max(t.max,s.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:i}=e,s=this.getParsed(t),o=s._custom,r=M(o)?"["+o.start+", "+o.end+"]":""+i.getLabelForValue(s[i.axis]);return{label:""+n.getLabelForValue(s[n.axis]),value:r}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,n,s){const o="reset"===s,{index:r,_cachedMeta:{vScale:a}}=this,c=a.getBasePixel(),l=a.isHorizontal(),h=this._getRuler(),u=this.resolveDataElementOptions(e,s),d=this.getSharedOptions(u),p=this.includeOptions(s,d);this.updateSharedOptions(d,s,u);for(let u=e;u<e+n;u++){const e=this.getParsed(u),n=o||(0,i.k)(e[a.axis])?{base:c,head:c}:this._calculateBarValuePixels(u),f=this._calculateBarIndexPixels(u,h),g=(e._stacks||{})[a.axis],m={horizontal:l,base:n.base,enableBorderRadius:!g||M(e._custom)||r===g._top||r===g._bottom,x:l?n.head:f.center,y:l?f.center:n.head,height:l?f.size:Math.abs(n.size),width:l?Math.abs(n.size):f.size};p&&(m.options=d||this.resolveDataElementOptions(u,t[u].active?"active":s));const b=m.options||t[u].options;C(m,b,g,r),O(m,b,h.ratio),this.updateElement(t[u],u,m,s)}}_getStacks(t,e){const n=this._cachedMeta.iScale,s=n.getMatchingVisibleMetas(this._type),o=n.options.stacked,r=s.length,a=[];let c,l;for(c=0;c<r;++c)if(l=s[c],l.controller.options.grouped){if(void 0!==e){const t=l.controller.getParsed(e)[l.controller._cachedMeta.vScale.axis];if((0,i.k)(t)||isNaN(t))continue}if((!1===o||-1===a.indexOf(l.stack)||void 0===o&&void 0===l.stack)&&a.push(l.stack),l.index===t)break}return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const i=this._getStacks(t,n),s=void 0!==e?i.indexOf(e):-1;return-1===s?i.length-1:s}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,i=[];let s,o;for(s=0,o=e.data.length;s<o;++s)i.push(n.getPixelForValue(this.getParsed(s)[n.axis],s));const r=t.barThickness;return{min:r||k(e),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:r?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n},options:{base:s,minBarLength:o}}=this,r=s||0,a=this.getParsed(t),c=a._custom,l=M(c);let h,u,d=a[e.axis],p=0,f=n?this.applyStack(e,a,n):d;f!==d&&(p=f-d,f=d),l&&(d=c.barStart,f=c.barEnd-c.barStart,0!==d&&(0,i.s)(d)!==(0,i.s)(c.barEnd)&&(p=0),p+=d);const g=(0,i.k)(s)||l?p:s;let m=e.getPixelForValue(g);if(h=this.chart.getDataVisibility(t)?e.getPixelForValue(p+f):m,u=h-m,Math.abs(u)<o&&(u=function(t,e,n){return 0!==t?(0,i.s)(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(u,e,r)*o,d===r&&(m-=u/2),h=m+u),m===e.getPixelForValue(r)){const t=(0,i.s)(u)*e.getLineWidthForValue(r)/2;m+=t,u-=t}return{size:u,base:m,head:h,center:h+u/2}}_calculateBarIndexPixels(t,e){const n=e.scale,s=this.options,o=s.skipNull,r=(0,i.v)(s.maxBarThickness,1/0);let a,c;if(e.grouped){const n=o?this._getStackCount(t):e.stackCount,l="flex"===s.barThickness?function(t,e,n,i){const s=e.pixels,o=s[t];let r=t>0?s[t-1]:null,a=t<s.length-1?s[t+1]:null;const c=n.categoryPercentage;null===r&&(r=o-(null===a?e.end-e.start:a-o)),null===a&&(a=o+o-r);const l=o-(o-Math.min(r,a))/2*c;return{chunk:Math.abs(a-r)/2*c/i,ratio:n.barPercentage,start:l}}(t,e,s,n):function(t,e,n,s){const o=n.barThickness;let r,a;return(0,i.k)(o)?(r=e.min*n.categoryPercentage,a=n.barPercentage):(r=o*s,a=1),{chunk:r/s,ratio:a,start:e.pixels[t]-r/2}}(t,e,s,n),h=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);a=l.start+l.chunk*h+l.chunk/2,c=Math.min(r,l.chunk*l.ratio)}else a=n.getPixelForValue(this.getParsed(t)[n.axis],t),c=Math.min(r,e.min*e.ratio);return{base:a-c/2,head:a+c/2,center:a,size:c}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,i=n.length;let s=0;for(;s<i;++s)null!==this.getParsed(s)[e.axis]&&n[s].draw(this._ctx)}}j.id="bar",j.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},j.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class D extends _{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,n,i){const s=super.parsePrimitiveData(t,e,n,i);for(let t=0;t<s.length;t++)s[t]._custom=this.resolveDataElementOptions(t+n).radius;return s}parseArrayData(t,e,n,s){const o=super.parseArrayData(t,e,n,s);for(let t=0;t<o.length;t++){const s=e[n+t];o[t]._custom=(0,i.v)(s[2],this.resolveDataElementOptions(t+n).radius)}return o}parseObjectData(t,e,n,s){const o=super.parseObjectData(t,e,n,s);for(let t=0;t<o.length;t++){const s=e[n+t];o[t]._custom=(0,i.v)(s&&s.r&&+s.r,this.resolveDataElementOptions(t+n).radius)}return o}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:n,yScale:i}=e,s=this.getParsed(t),o=n.getLabelForValue(s.x),r=i.getLabelForValue(s.y),a=s._custom;return{label:e.label,value:"("+o+", "+r+(a?", "+a:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,n,i){const s="reset"===i,{iScale:o,vScale:r}=this._cachedMeta,a=this.resolveDataElementOptions(e,i),c=this.getSharedOptions(a),l=this.includeOptions(i,c),h=o.axis,u=r.axis;for(let a=e;a<e+n;a++){const e=t[a],n=!s&&this.getParsed(a),c={},d=c[h]=s?o.getPixelForDecimal(.5):o.getPixelForValue(n[h]),p=c[u]=s?r.getBasePixel():r.getPixelForValue(n[u]);c.skip=isNaN(d)||isNaN(p),l&&(c.options=this.resolveDataElementOptions(a,e.active?"active":i),s&&(c.options.radius=0)),this.updateElement(e,a,c,i)}this.updateSharedOptions(c,i,a)}resolveDataElementOptions(t,e){const n=this.getParsed(t);let s=super.resolveDataElementOptions(t,e);s.$shared&&(s=Object.assign({},s,{$shared:!1}));const o=s.radius;return"active"!==e&&(s.radius=0),s.radius+=(0,i.v)(n&&n._custom,o),s}}D.id="bubble",D.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},D.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class A extends _{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const n=this.getDataset().data,s=this._cachedMeta;if(!1===this._parsing)s._parsed=n;else{let o,r,a=t=>+n[t];if((0,i.i)(n[t])){const{key:t="value"}=this._parsing;a=e=>+(0,i.f)(n[e],t)}for(o=t,r=t+e;o<r;++o)s._parsed[o]=a(o)}}_getRotation(){return(0,i.t)(this.options.rotation-90)}_getCircumference(){return(0,i.t)(this.options.circumference)}_getRotationExtents(){let t=i.T,e=-i.T;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)){const i=this.chart.getDatasetMeta(n).controller,s=i._getRotation(),o=i._getCircumference();t=Math.min(t,s),e=Math.max(e,s+o)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,s=this._cachedMeta,o=s.data,r=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-r)/2,0),c=Math.min((0,i.m)(this.options.cutout,a),1),l=this._getRingWeight(this.index),{circumference:h,rotation:u}=this._getRotationExtents(),{ratioX:d,ratioY:p,offsetX:f,offsetY:g}=function(t,e,n){let s=1,o=1,r=0,a=0;if(e<i.T){const c=t,l=c+e,h=Math.cos(c),u=Math.sin(c),d=Math.cos(l),p=Math.sin(l),f=(t,e,s)=>(0,i.p)(t,c,l,!0)?1:Math.max(e,e*n,s,s*n),g=(t,e,s)=>(0,i.p)(t,c,l,!0)?-1:Math.min(e,e*n,s,s*n),m=f(0,h,d),b=f(i.H,u,p),x=g(i.P,h,d),v=g(i.P+i.H,u,p);s=(m-x)/2,o=(b-v)/2,r=-(m+x)/2,a=-(b+v)/2}return{ratioX:s,ratioY:o,offsetX:r,offsetY:a}}(u,h,c),m=(n.width-r)/d,b=(n.height-r)/p,x=Math.max(Math.min(m,b)/2,0),v=(0,i.n)(this.options.radius,x),y=(v-Math.max(v*c,0))/this._getVisibleDatasetWeightTotal();this.offsetX=f*v,this.offsetY=g*v,s.total=this.calculateTotal(),this.outerRadius=v-y*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-y*l,0),this.updateElements(o,0,o.length,t)}_circumference(t,e){const n=this.options,s=this._cachedMeta,o=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===s._parsed[t]||s.data[t].hidden?0:this.calculateCircumference(s._parsed[t]*o/i.T)}updateElements(t,e,n,i){const s="reset"===i,o=this.chart,r=o.chartArea,a=o.options.animation,c=(r.left+r.right)/2,l=(r.top+r.bottom)/2,h=s&&a.animateScale,u=h?0:this.innerRadius,d=h?0:this.outerRadius,p=this.resolveDataElementOptions(e,i),f=this.getSharedOptions(p),g=this.includeOptions(i,f);let m,b=this._getRotation();for(m=0;m<e;++m)b+=this._circumference(m,s);for(m=e;m<e+n;++m){const e=this._circumference(m,s),n=t[m],o={x:c+this.offsetX,y:l+this.offsetY,startAngle:b,endAngle:b+e,circumference:e,outerRadius:d,innerRadius:u};g&&(o.options=f||this.resolveDataElementOptions(m,n.active?"active":i)),b+=e,this.updateElement(n,m,o,i)}this.updateSharedOptions(f,i,p)}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,i=0;for(n=0;n<e.length;n++){const s=t._parsed[n];null===s||isNaN(s)||!this.chart.getDataVisibility(n)||e[n].hidden||(i+=Math.abs(s))}return i}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?i.T*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,s=n.data.labels||[],o=(0,i.o)(e._parsed[t],n.options.locale);return{label:s[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const n=this.chart;let i,s,o,r,a;if(!t)for(i=0,s=n.data.datasets.length;i<s;++i)if(n.isDatasetVisible(i)){o=n.getDatasetMeta(i),t=o.data,r=o.controller;break}if(!t)return 0;for(i=0,s=t.length;i<s;++i)a=r.resolveDataElementOptions(i),"inner"!==a.borderAlign&&(e=Math.max(e,a.borderWidth||0,a.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,i=t.length;n<i;++n){const t=this.resolveDataElementOptions(n);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}_getRingWeight(t){return Math.max((0,i.v)(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}A.id="doughnut",A.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},A.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},A.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map(((e,i)=>{const s=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,lineWidth:s.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const n=": "+t.formattedValue;return(0,i.b)(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}};class T extends _{initialize(){this.enableOptionSharing=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:s=[],_dataset:o}=e,r=this.chart._animationsDisabled;let{start:a,count:c}=function(t,e,n){const s=e.length;let o=0,r=s;if(t._sorted){const{iScale:a,_parsed:c}=t,l=a.axis,{min:h,max:u,minDefined:d,maxDefined:p}=a.getUserBounds();d&&(o=(0,i.w)(Math.min((0,i.x)(c,a.axis,h).lo,n?s:(0,i.x)(e,l,a.getPixelForValue(h)).lo),0,s-1)),r=p?(0,i.w)(Math.max((0,i.x)(c,a.axis,u).hi+1,n?0:(0,i.x)(e,l,a.getPixelForValue(u)).hi+1),o,s)-o:s-o}return{start:o,count:r}}(e,s,r);this._drawStart=a,this._drawCount=c,function(t){const{xScale:e,yScale:n,_scaleRanges:i}=t,s={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!i)return t._scaleRanges=s,!0;const o=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,s),o}(e)&&(a=0,c=s.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=s;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!r,options:l},t),this.updateElements(s,a,c,t)}updateElements(t,e,n,s){const o="reset"===s,{iScale:r,vScale:a,_stacked:c,_dataset:l}=this._cachedMeta,h=this.resolveDataElementOptions(e,s),u=this.getSharedOptions(h),d=this.includeOptions(s,u),p=r.axis,f=a.axis,{spanGaps:g,segment:m}=this.options,b=(0,i.q)(g)?g:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||o||"none"===s;let v=e>0&&this.getParsed(e-1);for(let h=e;h<e+n;++h){const e=t[h],n=this.getParsed(h),g=x?e:{},y=(0,i.k)(n[f]),_=g[p]=r.getPixelForValue(n[p],h),k=g[f]=o||y?a.getBasePixel():a.getPixelForValue(c?this.applyStack(a,n,c):n[f],h);g.skip=isNaN(_)||isNaN(k)||y,g.stop=h>0&&n[p]-v[p]>b,m&&(g.parsed=n,g.raw=l.data[h]),d&&(g.options=u||this.resolveDataElementOptions(h,e.active?"active":s)),x||this.updateElement(e,h,g,s),v=n}this.updateSharedOptions(u,s,h)}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,i=t.data||[];if(!i.length)return n;const s=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,s,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}T.id="line",T.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},T.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class N extends _{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,s=n.data.labels||[],o=(0,i.o)(e._parsed[t].r,n.options.locale);return{label:s[t]||"",value:o}}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}_updateRadius(){const t=this.chart,e=t.chartArea,n=t.options,i=Math.min(e.right-e.left,e.bottom-e.top),s=Math.max(i/2,0),o=(s-Math.max(n.cutoutPercentage?s/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=s-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,n,s){const o="reset"===s,r=this.chart,a=this.getDataset(),c=r.options.animation,l=this._cachedMeta.rScale,h=l.xCenter,u=l.yCenter,d=l.getIndexAngle(0)-.5*i.P;let p,f=d;const g=360/this.countVisibleElements();for(p=0;p<e;++p)f+=this._computeAngle(p,s,g);for(p=e;p<e+n;p++){const e=t[p];let n=f,i=f+this._computeAngle(p,s,g),m=r.getDataVisibility(p)?l.getDistanceFromCenterForValue(a.data[p]):0;f=i,o&&(c.animateScale&&(m=0),c.animateRotate&&(n=i=d));const b={x:h,y:u,innerRadius:0,outerRadius:m,startAngle:n,endAngle:i,options:this.resolveDataElementOptions(p,e.active?"active":s)};this.updateElement(e,p,b,s)}}countVisibleElements(){const t=this.getDataset(),e=this._cachedMeta;let n=0;return e.data.forEach(((e,i)=>{!isNaN(t.data[i])&&this.chart.getDataVisibility(i)&&n++})),n}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?(0,i.t)(this.resolveDataElementOptions(t,e).angle||n):0}}N.id="polarArea",N.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},N.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map(((e,i)=>{const s=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,lineWidth:s.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class L extends A{}L.id="pie",L.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class R extends _{getLabelAndValue(t){const e=this._cachedMeta.vScale,n=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(n[e.axis])}}update(t){const e=this._cachedMeta,n=e.dataset,i=e.data||[],s=e.iScale.getLabels();if(n.points=i,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:s.length===i.length,options:e};this.updateElement(n,void 0,o,t)}this.updateElements(i,0,i.length,t)}updateElements(t,e,n,i){const s=this.getDataset(),o=this._cachedMeta.rScale,r="reset"===i;for(let a=e;a<e+n;a++){const e=t[a],n=this.resolveDataElementOptions(a,e.active?"active":i),c=o.getPointPositionForValue(a,s.data[a]),l=r?o.xCenter:c.x,h=r?o.yCenter:c.y,u={x:l,y:h,angle:c.angle,skip:isNaN(l)||isNaN(h),options:n};this.updateElement(e,a,u,i)}}}R.id="radar",R.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},R.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class z extends T{}z.id="scatter",z.defaults={showLine:!1,fill:!1},z.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var I=Object.freeze({__proto__:null,BarController:j,BubbleController:D,DoughnutController:A,LineController:T,PolarAreaController:N,PieController:L,RadarController:R,ScatterController:z});function F(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class V{constructor(t){this.options=t||{}}formats(){return F()}parse(t,e){return F()}format(t,e){return F()}add(t,e,n){return F()}diff(t,e,n){return F()}startOf(t,e,n){return F()}endOf(t,e){return F()}}V.override=function(t){Object.assign(V.prototype,t)};var B={_date:V};function H(t,e){return"native"in t?{x:t.x,y:t.y}:(0,i.y)(t,e)}function W(t,e,n,s){const{controller:o,data:r,_sorted:a}=t,c=o._cachedMeta.iScale;if(c&&e===c.axis&&"r"!==e&&a&&r.length){const t=c._reversePixels?i.A:i.x;if(!s)return t(r,e,n);if(o._sharedOptions){const i=r[0],s="function"==typeof i.getRange&&i.getRange(e);if(s){const i=t(r,e,n-s),o=t(r,e,n+s);return{lo:i.lo,hi:o.hi}}}}return{lo:0,hi:r.length-1}}function $(t,e,n,i,s){const o=t.getSortedVisibleDatasetMetas(),r=n[e];for(let t=0,n=o.length;t<n;++t){const{index:n,data:a}=o[t],{lo:c,hi:l}=W(o[t],e,r,s);for(let t=c;t<=l;++t){const e=a[t];e.skip||i(e,n,t)}}}function Z(t,e,n,s){const o=[];if(!(0,i.z)(e,t.chartArea,t._minPadding))return o;return $(t,n,e,(function(t,n,i){t.inRange(e.x,e.y,s)&&o.push({element:t,datasetIndex:n,index:i})}),!0),o}function U(t,e,n,s,o){let r=[];const a=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){const s=e?Math.abs(t.x-i.x):0,o=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(o,2))}}(n);let c=Number.POSITIVE_INFINITY;return $(t,n,e,(function(n,l,h){const u=n.inRange(e.x,e.y,o);if(s&&!u)return;const d=n.getCenterPoint(o);if(!(0,i.z)(d,t.chartArea,t._minPadding)&&!u)return;const p=a(e,d);p<c?(r=[{element:n,datasetIndex:l,index:h}],c=p):p===c&&r.push({element:n,datasetIndex:l,index:h})})),r}function Y(t,e,n,s,o){return(0,i.z)(e,t.chartArea,t._minPadding)?"r"!==n||s?U(t,e,n,s,o):function(t,e,n,s){let o=[];return $(t,n,e,(function(t,n,r){const{startAngle:a,endAngle:c}=t.getProps(["startAngle","endAngle"],s),{angle:l}=(0,i.B)(t,{x:e.x,y:e.y});(0,i.p)(l,a,c)&&o.push({element:t,datasetIndex:n,index:r})})),o}(t,e,n,o):[]}function J(t,e,n,i){const s=H(e,t),o=[],r=n.axis,a="x"===r?"inXRange":"inYRange";let c=!1;return function(t,e){const n=t.getSortedVisibleDatasetMetas();let i,s,o;for(let t=0,r=n.length;t<r;++t){({index:i,data:s}=n[t]);for(let t=0,n=s.length;t<n;++t)o=s[t],o.skip||e(o,i,t)}}(t,((t,e,n)=>{t[a](s[r],i)&&o.push({element:t,datasetIndex:e,index:n}),t.inRange(s.x,s.y,i)&&(c=!0)})),n.intersect&&!c?[]:o}var G={modes:{index(t,e,n,i){const s=H(e,t),o=n.axis||"x",r=n.intersect?Z(t,s,o,i):Y(t,s,o,!1,i),a=[];return r.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=r[0].index,n=t.data[e];n&&!n.skip&&a.push({element:n,datasetIndex:t.index,index:e})})),a):[]},dataset(t,e,n,i){const s=H(e,t),o=n.axis||"xy";let r=n.intersect?Z(t,s,o,i):Y(t,s,o,!1,i);if(r.length>0){const e=r[0].datasetIndex,n=t.getDatasetMeta(e).data;r=[];for(let t=0;t<n.length;++t)r.push({element:n[t],datasetIndex:e,index:t})}return r},point:(t,e,n,i)=>Z(t,H(e,t),n.axis||"xy",i),nearest:(t,e,n,i)=>Y(t,H(e,t),n.axis||"xy",n.intersect,i),x:(t,e,n,i)=>J(t,e,{axis:"x",intersect:n.intersect},i),y:(t,e,n,i)=>J(t,e,{axis:"y",intersect:n.intersect},i)}};const X=["left","top","right","bottom"];function q(t,e){return t.filter((t=>t.pos===e))}function K(t,e){return t.filter((t=>-1===X.indexOf(t.pos)&&t.box.axis===e))}function Q(t,e){return t.sort(((t,n)=>{const i=e?n:t,s=e?t:n;return i.weight===s.weight?i.index-s.index:i.weight-s.weight}))}function tt(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:s}=n;if(!t||!X.includes(i))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=s}return e}(t),{vBoxMaxWidth:i,hBoxMaxHeight:s}=e;let o,r,a;for(o=0,r=t.length;o<r;++o){a=t[o];const{fullSize:r}=a.box,c=n[a.stack],l=c&&a.stackWeight/c.weight;a.horizontal?(a.width=l?l*i:r&&e.availableWidth,a.height=s):(a.width=i,a.height=l?l*s:r&&e.availableHeight)}return n}function et(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function nt(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function it(t,e,n,s){const{pos:o,box:r}=n,a=t.maxPadding;if(!(0,i.i)(o)){n.size&&(t[o]-=n.size);const e=s[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?r.height:r.width),n.size=e.size/e.count,t[o]+=n.size}r.getPadding&&nt(a,r.getPadding());const c=Math.max(0,e.outerWidth-et(a,t,"left","right")),l=Math.max(0,e.outerHeight-et(a,t,"top","bottom")),h=c!==t.w,u=l!==t.h;return t.w=c,t.h=l,n.horizontal?{same:h,other:u}:{same:u,other:h}}function st(t,e){const n=e.maxPadding;function i(t){const i={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{i[t]=Math.max(e[t],n[t])})),i}return i(t?["left","right"]:["top","bottom"])}function ot(t,e,n,i){const s=[];let o,r,a,c,l,h;for(o=0,r=t.length,l=0;o<r;++o){a=t[o],c=a.box,c.update(a.width||e.w,a.height||e.h,st(a.horizontal,e));const{same:r,other:u}=it(e,n,a,i);l|=r&&s.length,h=h||u,c.fullSize||s.push(a)}return l&&ot(s,e,n,i)||h}function rt(t,e,n,i,s){t.top=n,t.left=e,t.right=e+i,t.bottom=n+s,t.width=i,t.height=s}function at(t,e,n,s){const o=n.padding;let{x:r,y:a}=e;for(const c of t){const t=c.box,l=s[c.stack]||{count:1,placed:0,weight:1},h=c.stackWeight/l.weight||1;if(c.horizontal){const s=e.w*h,r=l.size||t.height;(0,i.j)(l.start)&&(a=l.start),t.fullSize?rt(t,o.left,a,n.outerWidth-o.right-o.left,r):rt(t,e.left+l.placed,a,s,r),l.start=a,l.placed+=s,a=t.bottom}else{const s=e.h*h,a=l.size||t.width;(0,i.j)(l.start)&&(r=l.start),t.fullSize?rt(t,r,o.top,a,n.outerHeight-o.bottom-o.top):rt(t,r,e.top+l.placed,a,s),l.start=r,l.placed+=s,r=t.right}}e.x=r,e.y=a}i.d.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var ct={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,s){if(!t)return;const o=(0,i.C)(t.options.layout.padding),r=Math.max(e-o.width,0),a=Math.max(n-o.height,0),c=function(t){const e=function(t){const e=[];let n,i,s,o,r,a;for(n=0,i=(t||[]).length;n<i;++n)s=t[n],({position:o,options:{stack:r,stackWeight:a=1}}=s),e.push({index:n,box:s,pos:o,horizontal:s.isHorizontal(),weight:s.weight,stack:r&&o+r,stackWeight:a});return e}(t),n=Q(e.filter((t=>t.box.fullSize)),!0),i=Q(q(e,"left"),!0),s=Q(q(e,"right")),o=Q(q(e,"top"),!0),r=Q(q(e,"bottom")),a=K(e,"x"),c=K(e,"y");return{fullSize:n,leftAndTop:i.concat(o),rightAndBottom:s.concat(c).concat(r).concat(a),chartArea:q(e,"chartArea"),vertical:i.concat(s).concat(c),horizontal:o.concat(r).concat(a)}}(t.boxes),l=c.vertical,h=c.horizontal;(0,i.D)(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const u=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:o,availableWidth:r,availableHeight:a,vBoxMaxWidth:r/2/u,hBoxMaxHeight:a/2}),p=Object.assign({},o);nt(p,(0,i.C)(s));const f=Object.assign({maxPadding:p,w:r,h:a,x:o.left,y:o.top},o),g=tt(l.concat(h),d);ot(c.fullSize,f,d,g),ot(l,f,d,g),ot(h,f,d,g)&&ot(l,f,d,g),function(t){const e=t.maxPadding;function n(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(f),at(c.leftAndTop,f,d,g),f.x+=f.w,f.y+=f.h,at(c.rightAndBottom,f,d,g),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},(0,i.D)(c.chartArea,(e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})}))}};class lt{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,i){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):n)}}isAttached(t){return!0}updateConfig(t){}}class ht extends lt{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const ut={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},dt=t=>null===t||""===t;const pt=!!i.J&&{passive:!0};function ft(t,e,n){t.canvas.removeEventListener(e,n,pt)}function gt(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function mt(t,e,n){const i=t.canvas,s=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||gt(n.addedNodes,i),e=e&&!gt(n.removedNodes,i);e&&n()}));return s.observe(document,{childList:!0,subtree:!0}),s}function bt(t,e,n){const i=t.canvas,s=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||gt(n.removedNodes,i),e=e&&!gt(n.addedNodes,i);e&&n()}));return s.observe(document,{childList:!0,subtree:!0}),s}const xt=new Map;let vt=0;function yt(){const t=window.devicePixelRatio;t!==vt&&(vt=t,xt.forEach(((e,n)=>{n.currentDevicePixelRatio!==t&&e()})))}function _t(t,e,n){const s=t.canvas,o=s&&(0,i.F)(s);if(!o)return;const r=(0,i.I)(((t,e)=>{const i=o.clientWidth;n(t,e),i<o.clientWidth&&n()}),window),a=new ResizeObserver((t=>{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||r(n,i)}));return a.observe(o),function(t,e){xt.size||window.addEventListener("resize",yt),xt.set(t,e)}(t,r),a}function kt(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){xt.delete(t),xt.size||window.removeEventListener("resize",yt)}(t)}function wt(t,e,n){const s=t.canvas,o=(0,i.I)((e=>{null!==t.ctx&&n(function(t,e){const n=ut[t.type]||t.type,{x:s,y:o}=(0,i.y)(t,e);return{type:n,chart:e,native:t,x:void 0!==s?s:null,y:void 0!==o?o:null}}(e,t))}),t,(t=>{const e=t[0];return[e,e.offsetX,e.offsetY]}));return function(t,e,n){t.addEventListener(e,n,pt)}(s,e,o),o}class St extends lt{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,s=t.getAttribute("height"),o=t.getAttribute("width");if(t.$chartjs={initial:{height:s,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",dt(o)){const e=(0,i.G)(t,"width");void 0!==e&&(t.width=e)}if(dt(s))if(""===t.style.height)t.height=t.width/(e||2);else{const e=(0,i.G)(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e.$chartjs)return!1;const n=e.$chartjs.initial;["height","width"].forEach((t=>{const s=n[t];(0,i.k)(s)?e.removeAttribute(t):e.setAttribute(t,s)}));const s=n.style||{};return Object.keys(s).forEach((t=>{e.style[t]=s[t]})),e.width=e.width,delete e.$chartjs,!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),s={attach:mt,detach:bt,resize:_t}[e]||wt;i[e]=s(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];if(!i)return;({attach:kt,detach:kt,resize:kt}[e]||ft)(t,e,i),n[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,s){return(0,i.E)(t,e,n,s)}isAttached(t){const e=(0,i.F)(t);return!(!e||!e.isConnected)}}class Mt{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return(0,i.q)(this.x)&&(0,i.q)(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const i={};return t.forEach((t=>{i[t]=n[t]&&n[t].active()?n[t]._to:this[t]})),i}}Mt.defaults={},Mt.defaultRoutes=void 0;const Ct={values:t=>(0,i.b)(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const s=this.chart.options.locale;let o,r=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(o="scientific"),r=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t));return n}(t,n)}const a=(0,i.L)(Math.abs(r)),c=Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:o,minimumFractionDigits:c,maximumFractionDigits:c};return Object.assign(l,this.options.ticks.format),(0,i.o)(t,s,l)},logarithmic(t,e,n){if(0===t)return"0";const s=t/Math.pow(10,Math.floor((0,i.L)(t)));return 1===s||2===s||5===s?Ct.numeric.call(this,t,e,n):""}};var Et={formatters:Ct};function Pt(t,e){const n=t.options.ticks,s=n.maxTicksLimit||function(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),s=t._maxLength/n;return Math.floor(Math.min(i,s))}(t),o=n.major.enabled?function(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}(e):[],r=o.length,a=o[0],c=o[r-1],l=[];if(r>s)return function(t,e,n,i){let s,o=0,r=n[0];for(i=Math.ceil(i),s=0;s<t.length;s++)s===r&&(e.push(t[s]),o++,r=n[o*i])}(e,l,o,r/s),l;const h=function(t,e,n){const s=function(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}(t),o=e.length/n;if(!s)return Math.max(o,1);const r=(0,i.M)(s);for(let t=0,e=r.length-1;t<e;t++){const e=r[t];if(e>o)return e}return Math.max(o,1)}(o,e,s);if(r>0){let t,n;const s=r>1?Math.round((c-a)/(r-1)):null;for(Ot(e,l,h,(0,i.k)(s)?0:a-s,a),t=0,n=r-1;t<n;t++)Ot(e,l,h,o[t],o[t+1]);return Ot(e,l,h,c,(0,i.k)(s)?e.length:c+s),l}return Ot(e,l,h),l}function Ot(t,e,n,s,o){const r=(0,i.v)(s,0),a=Math.min((0,i.v)(o,t.length),t.length);let c,l,h,u=0;for(n=Math.ceil(n),o&&(c=o-s,n=c/Math.floor(c/n)),h=r;h<0;)u++,h=Math.round(r+u*n);for(l=Math.max(r,0);l<a;l++)l===h&&(e.push(t[l]),u++,h=Math.round(r+u*n))}i.d.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Et.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),i.d.route("scale.ticks","color","","color"),i.d.route("scale.grid","color","","borderColor"),i.d.route("scale.grid","borderColor","","borderColor"),i.d.route("scale.title","color","","color"),i.d.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),i.d.describe("scales",{_fallback:"scale"}),i.d.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const jt=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n;function Dt(t,e){const n=[],i=t.length/e,s=t.length;let o=0;for(;o<s;o+=i)n.push(t[Math.floor(o)]);return n}function At(t,e,n){const i=t.ticks.length,s=Math.min(e,i-1),o=t._startPixel,r=t._endPixel,a=1e-6;let c,l=t.getPixelForTick(s);if(!(n&&(c=1===i?Math.max(l-o,r-l):0===e?(t.getPixelForTick(1)-l)/2:(l-t.getPixelForTick(s-1))/2,l+=s<e?c:-c,l<o-a||l>r+a)))return l}function Tt(t){return t.drawTicks?t.tickLength:0}function Nt(t,e){if(!t.display)return 0;const n=(0,i.Z)(t.font,e),s=(0,i.C)(t.padding);return((0,i.b)(t.text)?t.text.length:1)*n.lineHeight+s.height}function Lt(t,e,n){let s=(0,i.$)(t);return(n&&"right"!==e||!n&&"right"===e)&&(s=(t=>"left"===t?"right":"right"===t?"left":t)(s)),s}class Rt extends Mt{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:s}=this;return t=(0,i.N)(t,Number.POSITIVE_INFINITY),e=(0,i.N)(e,Number.NEGATIVE_INFINITY),n=(0,i.N)(n,Number.POSITIVE_INFINITY),s=(0,i.N)(s,Number.NEGATIVE_INFINITY),{min:(0,i.N)(t,n),max:(0,i.N)(e,s),minDefined:(0,i.g)(t),maxDefined:(0,i.g)(e)}}getMinMax(t){let e,{min:n,max:s,minDefined:o,maxDefined:r}=this.getUserBounds();if(o&&r)return{min:n,max:s};const a=this.getMatchingVisibleMetas();for(let i=0,c=a.length;i<c;++i)e=a[i].controller.getMinMax(this,t),o||(n=Math.min(n,e.min)),r||(s=Math.max(s,e.max));return n=r&&n>s?s:n,s=o&&n>s?n:s,{min:(0,i.N)(n,(0,i.N)(s,n)),max:(0,i.N)(s,(0,i.N)(n,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){(0,i.O)(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:s,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=(0,i.Q)(this,o,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const c=a<this.ticks.length;this._convertTicksToLabels(c?Dt(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||"auto"===r.source)&&(this.ticks=Pt(this,this.ticks),this._labelSizes=null),c&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){(0,i.O)(this.options.afterUpdate,[this])}beforeSetDimensions(){(0,i.O)(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){(0,i.O)(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),(0,i.O)(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){(0,i.O)(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,s,o;for(n=0,s=t.length;n<s;n++)o=t[n],o.label=(0,i.O)(e.callback,[o.value,n,t],this)}afterTickToLabelConversion(){(0,i.O)(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){(0,i.O)(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=this.ticks.length,s=e.minRotation||0,o=e.maxRotation;let r,a,c,l=s;if(!this._isVisible()||!e.display||s>=o||n<=1||!this.isHorizontal())return void(this.labelRotation=s);const h=this._getLabelSizes(),u=h.widest.width,d=h.highest.height,p=(0,i.w)(this.chart.width-u,0,this.maxWidth);r=t.offset?this.maxWidth/n:p/(n-1),u+6>r&&(r=p/(n-(t.offset?.5:1)),a=this.maxHeight-Tt(t.grid)-e.padding-Nt(t.title,this.chart.options.font),c=Math.sqrt(u*u+d*d),l=(0,i.R)(Math.min(Math.asin((0,i.w)((h.highest.height+6)/r,-1,1)),Math.asin((0,i.w)(a/c,-1,1))-Math.asin((0,i.w)(d/c,-1,1)))),l=Math.max(s,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){(0,i.O)(this.options.afterCalculateLabelRotation,[this])}beforeFit(){(0,i.O)(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:s,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const r=Nt(s,e.options.font);if(a?(t.width=this.maxWidth,t.height=Tt(o)+r):(t.height=this.maxHeight,t.width=Tt(o)+r),n.display&&this.ticks.length){const{first:e,last:s,widest:o,highest:r}=this._getLabelSizes(),c=2*n.padding,l=(0,i.t)(this.labelRotation),h=Math.cos(l),u=Math.sin(l);if(a){const e=n.mirror?0:u*o.width+h*r.height;t.height=Math.min(this.maxHeight,t.height+e+c)}else{const e=n.mirror?0:h*o.width+u*r.height;t.width=Math.min(this.maxWidth,t.width+e+c)}this._calculatePadding(e,s,u,h)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,n,i){const{ticks:{align:s,padding:o},position:r}=this.options,a=0!==this.labelRotation,c="top"!==r&&"x"===this.axis;if(this.isHorizontal()){const r=this.getPixelForTick(0)-this.left,l=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,u=0;a?c?(h=i*t.width,u=n*e.height):(h=n*t.height,u=i*e.width):"start"===s?u=e.width:"end"===s?h=t.width:(h=t.width/2,u=e.width/2),this.paddingLeft=Math.max((h-r+o)*this.width/(this.width-r),0),this.paddingRight=Math.max((u-l+o)*this.width/(this.width-l),0)}else{let n=e.height/2,i=t.height/2;"start"===s?(n=0,i=t.height):"end"===s&&(n=e.height,i=0),this.paddingTop=n+o,this.paddingBottom=i+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){(0,i.O)(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)(0,i.k)(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=Dt(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length)}return t}_computeLabelSizes(t,e){const{ctx:n,_longestTextCache:s}=this,o=[],r=[];let a,c,l,h,u,d,p,f,g,m,b,x=0,v=0;for(a=0;a<e;++a){if(h=t[a].label,u=this._resolveTickFontOptions(a),n.font=d=u.string,p=s[d]=s[d]||{data:{},gc:[]},f=u.lineHeight,g=m=0,(0,i.k)(h)||(0,i.b)(h)){if((0,i.b)(h))for(c=0,l=h.length;c<l;++c)b=h[c],(0,i.k)(b)||(0,i.b)(b)||(g=(0,i.S)(n,p.data,p.gc,g,b),m+=f)}else g=(0,i.S)(n,p.data,p.gc,g,h),m=f;o.push(g),r.push(m),x=Math.max(g,x),v=Math.max(m,v)}!function(t,e){(0,i.D)(t,(t=>{const n=t.gc,i=n.length/2;let s;if(i>e){for(s=0;s<i;++s)delete t.data[n[s]];n.splice(0,i)}}))}(s,e);const y=o.indexOf(x),_=r.indexOf(v),k=t=>({width:o[t]||0,height:r[t]||0});return{first:k(0),last:k(e-1),widest:k(y),highest:k(_),widths:o,heights:r}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return(0,i.U)(this._alignToPixels?(0,i.V)(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=function(t,e,n){return(0,i.h)(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=(n=this.chart.getContext(),s=this,(0,i.h)(n,{scale:s,type:"scale"})));var n,s}_tickSize(){const t=this.options.ticks,e=(0,i.t)(this.labelRotation),n=Math.abs(Math.cos(e)),s=Math.abs(Math.sin(e)),o=this._getLabelSizes(),r=t.autoSkipPadding||0,a=o?o.widest.width+r:0,c=o?o.highest.height+r:0;return this.isHorizontal()?c*n>a*s?a/n:c/s:c*s<a*n?c/n:a/s}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,s=this.options,{grid:o,position:r}=s,a=o.offset,c=this.isHorizontal(),l=this.ticks.length+(a?1:0),h=Tt(o),u=[],d=o.setContext(this.getContext()),p=d.drawBorder?d.borderWidth:0,f=p/2,g=function(t){return(0,i.V)(n,t,p)};let m,b,x,v,y,_,k,w,S,M,C,E;if("top"===r)m=g(this.bottom),_=this.bottom-h,w=m-f,M=g(t.top)+f,E=t.bottom;else if("bottom"===r)m=g(this.top),M=t.top,E=g(t.bottom)-f,_=m+f,w=this.top+h;else if("left"===r)m=g(this.right),y=this.right-h,k=m-f,S=g(t.left)+f,C=t.right;else if("right"===r)m=g(this.left),S=t.left,C=g(t.right)-f,y=m+f,k=this.left+h;else if("x"===e){if("center"===r)m=g((t.top+t.bottom)/2+.5);else if((0,i.i)(r)){const t=Object.keys(r)[0],e=r[t];m=g(this.chart.scales[t].getPixelForValue(e))}M=t.top,E=t.bottom,_=m+f,w=_+h}else if("y"===e){if("center"===r)m=g((t.left+t.right)/2);else if((0,i.i)(r)){const t=Object.keys(r)[0],e=r[t];m=g(this.chart.scales[t].getPixelForValue(e))}y=m-f,k=y-h,S=t.left,C=t.right}const P=(0,i.v)(s.ticks.maxTicksLimit,l),O=Math.max(1,Math.ceil(l/P));for(b=0;b<l;b+=O){const t=o.setContext(this.getContext(b)),e=t.lineWidth,s=t.color,r=o.borderDash||[],l=t.borderDashOffset,h=t.tickWidth,d=t.tickColor,p=t.tickBorderDash||[],f=t.tickBorderDashOffset;x=At(this,b,a),void 0!==x&&(v=(0,i.V)(n,x,e),c?y=k=S=C=v:_=w=M=E=v,u.push({tx1:y,ty1:_,tx2:k,ty2:w,x1:S,y1:M,x2:C,y2:E,width:e,color:s,borderDash:r,borderDashOffset:l,tickWidth:h,tickColor:d,tickBorderDash:p,tickBorderDashOffset:f}))}return this._ticksLength=l,this._borderValue=m,u}_computeLabelItems(t){const e=this.axis,n=this.options,{position:s,ticks:o}=n,r=this.isHorizontal(),a=this.ticks,{align:c,crossAlign:l,padding:h,mirror:u}=o,d=Tt(n.grid),p=d+h,f=u?-h:p,g=-(0,i.t)(this.labelRotation),m=[];let b,x,v,y,_,k,w,S,M,C,E,P,O="middle";if("top"===s)k=this.bottom-f,w=this._getXAxisLabelAlignment();else if("bottom"===s)k=this.top+f,w=this._getXAxisLabelAlignment();else if("left"===s){const t=this._getYAxisLabelAlignment(d);w=t.textAlign,_=t.x}else if("right"===s){const t=this._getYAxisLabelAlignment(d);w=t.textAlign,_=t.x}else if("x"===e){if("center"===s)k=(t.top+t.bottom)/2+p;else if((0,i.i)(s)){const t=Object.keys(s)[0],e=s[t];k=this.chart.scales[t].getPixelForValue(e)+p}w=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===s)_=(t.left+t.right)/2-p;else if((0,i.i)(s)){const t=Object.keys(s)[0],e=s[t];_=this.chart.scales[t].getPixelForValue(e)}w=this._getYAxisLabelAlignment(d).textAlign}"y"===e&&("start"===c?O="top":"end"===c&&(O="bottom"));const j=this._getLabelSizes();for(b=0,x=a.length;b<x;++b){v=a[b],y=v.label;const t=o.setContext(this.getContext(b));S=this.getPixelForTick(b)+o.labelOffset,M=this._resolveTickFontOptions(b),C=M.lineHeight,E=(0,i.b)(y)?y.length:1;const e=E/2,n=t.color,c=t.textStrokeColor,h=t.textStrokeWidth;let d;if(r?(_=S,P="top"===s?"near"===l||0!==g?-E*C+C/2:"center"===l?-j.highest.height/2-e*C+C:-j.highest.height+C/2:"near"===l||0!==g?C/2:"center"===l?j.highest.height/2-e*C:j.highest.height-E*C,u&&(P*=-1)):(k=S,P=(1-E)*C/2),t.showLabelBackdrop){const e=(0,i.C)(t.backdropPadding),n=j.heights[b],s=j.widths[b];let o=k+P-e.top,r=_-e.left;switch(O){case"middle":o-=n/2;break;case"bottom":o-=n}switch(w){case"center":r-=s/2;break;case"right":r-=s}d={left:r,top:o,width:s+e.width,height:n+e.height,color:t.backdropColor}}m.push({rotation:g,label:y,font:M,color:n,strokeColor:c,strokeWidth:h,textOffset:P,textAlign:w,textBaseline:O,translation:[_,k],backdrop:d})}return m}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-(0,i.t)(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align&&(n="right"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:i,padding:s}}=this.options,o=t+s,r=this._getLabelSizes().widest.width;let a,c;return"left"===e?i?(c=this.right+s,"near"===n?a="left":"center"===n?(a="center",c+=r/2):(a="right",c+=r)):(c=this.right-o,"near"===n?a="right":"center"===n?(a="center",c-=r/2):(a="left",c=this.left)):"right"===e?i?(c=this.left+s,"near"===n?a="right":"center"===n?(a="center",c-=r/2):(a="left",c-=r)):(c=this.left+o,"near"===n?a="left":"center"===n?(a="center",c+=r/2):(a="right",c=this.right)):a="right",{textAlign:a,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:n,top:i,width:s,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,i,s,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex((e=>e.value===t));if(n>=0){return e.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let s,o;const r=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(s=0,o=i.length;s<o;++s){const t=i[s];e.drawOnChartArea&&r({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&r({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{grid:n}}=this,s=n.setContext(this.getContext()),o=n.drawBorder?s.borderWidth:0;if(!o)return;const r=n.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let c,l,h,u;this.isHorizontal()?(c=(0,i.V)(t,this.left,o)-o/2,l=(0,i.V)(t,this.right,r)+r/2,h=u=a):(h=(0,i.V)(t,this.top,o)-o/2,u=(0,i.V)(t,this.bottom,r)+r/2,c=l=a),e.save(),e.lineWidth=s.borderWidth,e.strokeStyle=s.borderColor,e.beginPath(),e.moveTo(c,h),e.lineTo(l,u),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&(0,i.W)(e,n);const s=this._labelItems||(this._labelItems=this._computeLabelItems(t));let o,r;for(o=0,r=s.length;o<r;++o){const t=s[o],n=t.font,r=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height));let a=t.textOffset;(0,i.X)(e,r,0,a,n,t)}n&&(0,i.Y)(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:s}}=this;if(!n.display)return;const o=(0,i.Z)(n.font),r=(0,i.C)(n.padding),a=n.align;let c=o.lineHeight/2;"bottom"===e||"center"===e||(0,i.i)(e)?(c+=r.bottom,(0,i.b)(n.text)&&(c+=o.lineHeight*(n.text.length-1))):c+=r.top;const{titleX:l,titleY:h,maxWidth:u,rotation:d}=function(t,e,n,s){const{top:o,left:r,bottom:a,right:c,chart:l}=t,{chartArea:h,scales:u}=l;let d,p,f,g=0;const m=a-o,b=c-r;if(t.isHorizontal()){if(p=(0,i.a0)(s,r,c),(0,i.i)(n)){const t=Object.keys(n)[0],i=n[t];f=u[t].getPixelForValue(i)+m-e}else f="center"===n?(h.bottom+h.top)/2+m-e:jt(t,n,e);d=c-r}else{if((0,i.i)(n)){const t=Object.keys(n)[0],i=n[t];p=u[t].getPixelForValue(i)-b+e}else p="center"===n?(h.left+h.right)/2-b+e:jt(t,n,e);f=(0,i.a0)(s,a,o),g="left"===n?-i.H:i.H}return{titleX:p,titleY:f,maxWidth:d,rotation:g}}(this,c,e,a);(0,i.X)(t,n.text,0,0,o,{color:n.color,maxWidth:u,rotation:d,textAlign:Lt(a,e,s),textBaseline:"middle",translation:[l,h]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,n=(0,i.v)(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===Rt.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:n+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let s,o;for(s=0,o=e.length;s<o;++s){const o=e[s];o[n]!==this.id||t&&o.type!==t||i.push(o)}return i}_resolveTickFontOptions(t){const e=this.options.ticks.setContext(this.getContext(t));return(0,i.Z)(e.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class zt{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const s=this.items,o=t.id,r=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in s||(s[o]=t,function(t,e,n){const s=(0,i.a2)(Object.create(null),[n?i.d.get(n):{},i.d.get(e),t.defaults]);i.d.set(e,s),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((n=>{const s=n.split("."),o=s.pop(),r=[t].concat(s).join("."),a=e[n].split("."),c=a.pop(),l=a.join(".");i.d.route(r,o,l,c)}))}(e,t.defaultRoutes);t.descriptors&&i.d.describe(e,t.descriptors)}(t,r,n),this.override&&i.d.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,s=this.scope;n in e&&delete e[n],s&&n in i.d[s]&&(delete i.d[s][n],this.override&&delete i.a1[n])}}var It=new class{constructor(){this.controllers=new zt(_,"datasets",!0),this.elements=new zt(Mt,"elements"),this.plugins=new zt(Object,"plugins"),this.scales=new zt(Rt,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,n){[...e].forEach((e=>{const s=n||this._getRegistryForType(e);n||s.isForType(e)||s===this.plugins&&e.id?this._exec(t,s,e):(0,i.D)(e,(e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)}))}))}_exec(t,e,n){const s=(0,i.a3)(t);(0,i.O)(n["before"+s],[],n),e[t](n),(0,i.O)(n["after"+s],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const i=e.get(t);if(void 0===i)throw new Error('"'+t+'" is not a registered '+n+".");return i}};class Ft{constructor(){this._init=[]}notify(t,e,n,i){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const s=i?this._descriptors(t).filter(i):this._descriptors(t),o=this._notify(s,t,e,n);return"afterDestroy"===e&&(this._notify(s,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,n,s){s=s||{};for(const o of t){const t=o.plugin,r=t[n],a=[e,s,o.options];if(!1===(0,i.O)(r,a,t)&&s.cancelable)return!1}return!0}invalidate(){(0,i.k)(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,s=(0,i.v)(n.options&&n.options.plugins,{}),o=function(t){const e=[],n=Object.keys(It.plugins.items);for(let t=0;t<n.length;t++)e.push(It.getPlugin(n[t]));const i=t.plugins||[];for(let t=0;t<i.length;t++){const n=i[t];-1===e.indexOf(n)&&e.push(n)}return e}(n);return!1!==s||e?function(t,e,n,i){const s=[],o=t.getContext();for(let r=0;r<e.length;r++){const a=e[r],c=Vt(n[a.id],i);null!==c&&s.push({plugin:a,options:Bt(t.config,a,c,o)})}return s}(t,o,s,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,i=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(i(e,n),t,"stop"),this._notify(i(n,e),t,"start")}}function Vt(t,e){return e||!1!==t?!0===t?{}:t:null}function Bt(t,e,n,i){const s=t.pluginScopeKeys(e),o=t.getOptionScopes(n,s);return t.createResolver(o,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Ht(t,e){const n=i.d.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function Wt(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(n=e.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.charAt(0).toLowerCase();var n}function $t(t){const e=t.options||(t.options={});e.plugins=(0,i.v)(e.plugins,{}),e.scales=function(t,e){const n=i.a1[t.type]||{scales:{}},s=e.scales||{},o=Ht(t.type,e),r=Object.create(null),a=Object.create(null);return Object.keys(s).forEach((t=>{const e=s[t];if(!(0,i.i)(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const c=Wt(t,e),l=function(t,e){return t===e?"_index_":"_value_"}(c,o),h=n.scales||{};r[c]=r[c]||t,a[t]=(0,i.a9)(Object.create(null),[{axis:c},e,h[c],h[l]])})),t.data.datasets.forEach((n=>{const o=n.type||t.type,c=n.indexAxis||Ht(o,e),l=(i.a1[o]||{}).scales||{};Object.keys(l).forEach((t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,c),o=n[e+"AxisID"]||r[e]||e;a[o]=a[o]||Object.create(null),(0,i.a9)(a[o],[{axis:e},s[o],l[t]])}))})),Object.keys(a).forEach((t=>{const e=a[t];(0,i.a9)(e,[i.d.scales[e.type],i.d.scale])})),a}(t,e)}function Zt(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Ut=new Map,Yt=new Set;function Jt(t,e){let n=Ut.get(t);return n||(n=e(),Ut.set(t,n),Yt.add(n)),n}const Gt=(t,e,n)=>{const s=(0,i.f)(e,n);void 0!==s&&t.add(s)};class Xt{constructor(t){this._config=function(t){return(t=t||{}).data=Zt(t.data),$t(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Zt(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),$t(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Jt(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Jt(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Jt(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Jt(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const n=this._scopeCache;let i=n.get(t);return i&&!e||(i=new Map,n.set(t,i)),i}getOptionScopes(t,e,n){const{options:s,type:o}=this,r=this._cachedScopes(t,n),a=r.get(e);if(a)return a;const c=new Set;e.forEach((e=>{t&&(c.add(t),e.forEach((e=>Gt(c,t,e)))),e.forEach((t=>Gt(c,s,t))),e.forEach((t=>Gt(c,i.a1[o]||{},t))),e.forEach((t=>Gt(c,i.d,t))),e.forEach((t=>Gt(c,i.a4,t)))}));const l=Array.from(c);return 0===l.length&&l.push(Object.create(null)),Yt.has(e)&&r.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,i.a1[e]||{},i.d.datasets[e]||{},{type:e},i.d,i.a4]}resolveNamedOptions(t,e,n,s=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=qt(this._resolverCache,t,s);let c=r;if(function(t,e){const{isScriptable:n,isIndexable:s}=(0,i.a8)(t);for(const o of e){const e=n(o),r=s(o),a=(r||e)&&t[o];if(e&&((0,i.a5)(a)||Kt(a))||r&&(0,i.b)(a))return!0}return!1}(r,e)){o.$shared=!1,n=(0,i.a5)(n)?n():n;const e=this.createResolver(t,n,a);c=(0,i.a6)(r,n,e)}for(const t of e)o[t]=c[t];return o}createResolver(t,e,n=[""],s){const{resolver:o}=qt(this._resolverCache,t,n);return(0,i.i)(e)?(0,i.a6)(o,e,void 0,s):o}}function qt(t,e,n){let s=t.get(e);s||(s=new Map,t.set(e,s));const o=n.join();let r=s.get(o);if(!r){r={resolver:(0,i.a7)(e,n),subPrefixes:n.filter((t=>!t.toLowerCase().includes("hover")))},s.set(o,r)}return r}const Kt=t=>(0,i.i)(t)&&Object.getOwnPropertyNames(t).reduce(((e,n)=>e||(0,i.a5)(t[n])),!1);const Qt=["top","bottom","left","right","chartArea"];function te(t,e){return"top"===t||"bottom"===t||-1===Qt.indexOf(t)&&"x"===e}function ee(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function ne(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),(0,i.O)(n&&n.onComplete,[t],e)}function ie(t){const e=t.chart,n=e.options.animation;(0,i.O)(n&&n.onProgress,[t],e)}function se(t){return(0,i.K)()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const oe={},re=t=>{const e=se(t);return Object.values(oe).filter((t=>t.canvas===e)).pop()};function ae(t,e,n){const i=Object.keys(t);for(const s of i){const i=+s;if(i>=e){const o=t[s];delete t[s],(n>0||i>e)&&(t[i+n]=o)}}}class ce{constructor(t,e){const n=this.config=new Xt(e),o=se(t),r=re(o);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas can be reused.");const a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!(0,i.K)()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?ht:St}(o)),this.platform.updateConfig(n);const c=this.platform.acquireContext(o,a.aspectRatio),l=c&&c.canvas,h=l&&l.height,u=l&&l.width;this.id=(0,i.aa)(),this.ctx=c,this.canvas=l,this.width=u,this.height=h,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Ft,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=(0,i.ab)((t=>this.update(t)),a.resizeDelay||0),this._dataChanges=[],oe[this.id]=this,c&&l?(s.listen(this,"complete",ne),s.listen(this,"progress",ie),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:s,_aspectRatio:o}=this;return(0,i.k)(t)?e&&o?o:s?n/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():(0,i.ac)(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return(0,i.ad)(this.canvas,this.ctx),this}stop(){return s.stop(this),this}resize(t,e){s.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,s=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(s,t,e,o),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,(0,i.ac)(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),(0,i.O)(n.onResize,[this,r],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){const t=this.options.scales||{};(0,i.D)(t,((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,s=Object.keys(n).reduce(((t,e)=>(t[e]=!1,t)),{});let o=[];e&&(o=o.concat(Object.keys(e).map((t=>{const n=e[t],i=Wt(t,n),s="r"===i,o="x"===i;return{options:n,dposition:s?"chartArea":o?"bottom":"left",dtype:s?"radialLinear":o?"category":"linear"}})))),(0,i.D)(o,(e=>{const o=e.options,r=o.id,a=Wt(r,o),c=(0,i.v)(o.type,e.dtype);void 0!==o.position&&te(o.position,a)===te(e.dposition)||(o.position=e.dposition),s[r]=!0;let l=null;if(r in n&&n[r].type===c)l=n[r];else{l=new(It.getScale(c))({id:r,type:c,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(o,t)})),(0,i.D)(s,((t,e)=>{t||delete n[e]})),(0,i.D)(n,(t=>{ct.configure(this,t,t.options),ct.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort(((t,e)=>t.index-e.index)),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(ee("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,n)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,s;for(this._removeUnreferencedMetasets(),n=0,s=e.length;n<s;n++){const s=e[n];let o=this.getDatasetMeta(n);const r=s.type||this.config.type;if(o.type&&o.type!==r&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=r,o.indexAxis=s.indexAxis||Ht(r,this.options),o.order=s.order||0,o.index=n,o.label=""+s.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const e=It.getController(r),{datasetElementType:s,dataElementType:a}=i.d.datasets[r];Object.assign(e.prototype,{dataElementType:It.getElement(a),datasetElementType:s&&It.getElement(s)}),o.controller=new e(this,n),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){(0,i.D)(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!s&&-1===o.indexOf(e);e.buildOrUpdateElements(n),r=Math.max(+e.getMaxOverflow(),r)}r=this._minPadding=n.layout.autoPadding?r:0,this._updateLayout(r),s||(0,i.D)(o,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(ee("z","_idx"));const{_active:a,_lastEvent:c}=this;c?this._eventHandler(c,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){(0,i.D)(this.scales,(t=>{ct.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);(0,i.ae)(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:s}of e){ae(t,i,"_removeElements"===n?-s:s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),s=n(0);for(let t=1;t<e;t++)if(!(0,i.ae)(s,n(t)))return;return Array.from(s).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;ct.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],(0,i.D)(this.boxes,(t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,(0,i.a5)(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(s.has(this)?this.attached&&!s.running(this)&&s.start(this):(this.draw(),ne({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let i,s;for(i=0,s=e.length;i<s;++i){const s=e[i];t&&!s.visible||n.push(s)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n=t._clip,s=!n.disabled,o=this.chartArea,r={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",r)&&(s&&(0,i.W)(e,{left:!1===n.left?0:o.left-n.left,right:!1===n.right?this.width:o.right+n.right,top:!1===n.top?0:o.top-n.top,bottom:!1===n.bottom?this.height:o.bottom+n.bottom}),t.controller.draw(),s&&(0,i.Y)(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}getElementsAtEventForMode(t,e,n,i){const s=G.modes[e];return"function"==typeof s?s(this,t,n,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let i=n.filter((t=>t&&t._dataset===e)).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=(0,i.h)(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const s=n?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,s);(0,i.j)(e)?(o.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),r.update(o,{visible:n}),this.update((e=>e.datasetIndex===t?s:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),s.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),(0,i.ad)(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete oe[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},s=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};(0,i.D)(this.options.events,(t=>n(t,s)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(n,i)=>{t[n]&&(e.removeEventListener(this,n,i),delete t[n])},s=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const r=()=>{i("attach",r),this.attached=!0,this.resize(),n("resize",s),n("detach",o)};o=()=>{this.attached=!1,i("resize",s),this._stop(),this._resize(0,0),n("attach",r)},e.isAttached(this.canvas)?r():o()}unbindEvents(){(0,i.D)(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},(0,i.D)(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const i=n?"set":"remove";let s,o,r,a;for("dataset"===e&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+i+"DatasetHoverStyle"]()),r=0,a=t.length;r<a;++r){o=t[r];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[i+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map((({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}));!(0,i.af)(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}_updateHoverStyles(t,e,n){const i=this.options.hover,s=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=s(e,t),r=n?t:s(t,e);o.length&&this.updateHoverStyle(o,i.mode,!1),r.length&&i.mode&&this.updateHoverStyle(r,i.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:(0,i.z)(t,this.chartArea,this._minPadding)},s=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,s))return;const o=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,s),(o||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:s=[],options:o}=this,r=e,a=this._getActiveElements(t,s,n,r),c=(0,i.ag)(t),l=function(t,e,n,i){return n&&"mouseout"!==t.type?i?e:t:null}(t,this._lastEvent,n,c);n&&(this._lastEvent=null,(0,i.O)(o.onHover,[t,a,this],this),c&&(0,i.O)(o.onClick,[t,a,this],this));const h=!(0,i.af)(a,s);return(h||e)&&(this._active=a,this._updateHoverStyles(a,s,e)),this._lastEvent=l,h}_getActiveElements(t,e,n,i){if("mouseout"===t.type)return[];if(!n)return e;const s=this.options.hover;return this.getElementsAtEventForMode(t,s.mode,s,i)}}const le=()=>(0,i.D)(ce.instances,(t=>t._plugins.invalidate())),he=!0;function ue(t,e,n){const{startAngle:s,pixelMargin:o,x:r,y:a,outerRadius:c,innerRadius:l}=e;let h=o/c;t.beginPath(),t.arc(r,a,c,s-h,n+h),l>o?(h=o/l,t.arc(r,a,l,n+h,s-h,!0)):t.arc(r,a,o,n+i.H,s-i.H),t.closePath(),t.clip()}function de(t,e,n,s){const o=(r=t.options.borderRadius,(0,i.ai)(r,["outerStart","outerEnd","innerStart","innerEnd"]));var r;const a=(n-e)/2,c=Math.min(a,s*e/2),l=t=>{const e=(n-Math.min(a,t))*s/2;return(0,i.w)(t,0,Math.min(a,e))};return{outerStart:l(o.outerStart),outerEnd:l(o.outerEnd),innerStart:(0,i.w)(o.innerStart,0,c),innerEnd:(0,i.w)(o.innerEnd,0,c)}}function pe(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function fe(t,e,n,s,o){const{x:r,y:a,startAngle:c,pixelMargin:l,innerRadius:h}=e,u=Math.max(e.outerRadius+s+n-l,0),d=h>0?h+s+n+l:0;let p=0;const f=o-c;if(s){const t=((h>0?h-s:0)+(u>0?u-s:0))/2;p=(f-(0!==t?f*t/(t+s):f))/2}const g=(f-Math.max(.001,f*u-n/i.P)/u)/2,m=c+g+p,b=o-g-p,{outerStart:x,outerEnd:v,innerStart:y,innerEnd:_}=de(e,d,u,b-m),k=u-x,w=u-v,S=m+x/k,M=b-v/w,C=d+y,E=d+_,P=m+y/C,O=b-_/E;if(t.beginPath(),t.arc(r,a,u,S,M),v>0){const e=pe(w,M,r,a);t.arc(e.x,e.y,v,M,b+i.H)}const j=pe(E,b,r,a);if(t.lineTo(j.x,j.y),_>0){const e=pe(E,O,r,a);t.arc(e.x,e.y,_,b+i.H,O+Math.PI)}if(t.arc(r,a,d,b-_/d,m+y/d,!0),y>0){const e=pe(C,P,r,a);t.arc(e.x,e.y,y,P+Math.PI,m-i.H)}const D=pe(k,m,r,a);if(t.lineTo(D.x,D.y),x>0){const e=pe(k,S,r,a);t.arc(e.x,e.y,x,m-i.H,S)}t.closePath()}function ge(t,e,n,s,o){const{options:r}=e,{borderWidth:a,borderJoinStyle:c}=r,l="inner"===r.borderAlign;a&&(l?(t.lineWidth=2*a,t.lineJoin=c||"round"):(t.lineWidth=a,t.lineJoin=c||"bevel"),e.fullCircles&&function(t,e,n){const{x:s,y:o,startAngle:r,pixelMargin:a,fullCircles:c}=e,l=Math.max(e.outerRadius-a,0),h=e.innerRadius+a;let u;for(n&&ue(t,e,r+i.T),t.beginPath(),t.arc(s,o,h,r+i.T,r,!0),u=0;u<c;++u)t.stroke();for(t.beginPath(),t.arc(s,o,l,r,r+i.T),u=0;u<c;++u)t.stroke()}(t,e,l),l&&ue(t,e,o),fe(t,e,n,s,o),t.stroke())}Object.defineProperties(ce,{defaults:{enumerable:he,value:i.d},instances:{enumerable:he,value:oe},overrides:{enumerable:he,value:i.a1},registry:{enumerable:he,value:It},version:{enumerable:he,value:"3.7.1"},getChart:{enumerable:he,value:re},register:{enumerable:he,value:(...t)=>{It.add(...t),le()}},unregister:{enumerable:he,value:(...t)=>{It.remove(...t),le()}}});class me extends Mt{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,n){const s=this.getProps(["x","y"],n),{angle:o,distance:r}=(0,i.B)(s,{x:t,y:e}),{startAngle:a,endAngle:c,innerRadius:l,outerRadius:h,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),d=this.options.spacing/2,p=(0,i.v)(u,c-a)>=i.T||(0,i.p)(o,a,c),f=(0,i.ah)(r,l+d,h+d);return p&&f}getCenterPoint(t){const{x:e,y:n,startAngle:i,endAngle:s,innerRadius:o,outerRadius:r}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:a,spacing:c}=this.options,l=(i+s)/2,h=(o+r+c+a)/2;return{x:e+Math.cos(l)*h,y:n+Math.sin(l)*h}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,s=(e.offset||0)/2,o=(e.spacing||0)/2;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>i.T?Math.floor(n/i.T):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();let r=0;if(s){r=s/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*r,Math.sin(e)*r),this.circumference>=i.P&&(r=s)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const a=function(t,e,n,s){const{fullCircles:o,startAngle:r,circumference:a}=e;let c=e.endAngle;if(o){fe(t,e,n,s,r+i.T);for(let e=0;e<o;++e)t.fill();isNaN(a)||(c=r+a%i.T,a%i.T==0&&(c+=i.T))}return fe(t,e,n,s,c),t.fill(),c}(t,this,r,o);ge(t,this,r,o,a),t.restore()}}function be(t,e,n=e){t.lineCap=(0,i.v)(n.borderCapStyle,e.borderCapStyle),t.setLineDash((0,i.v)(n.borderDash,e.borderDash)),t.lineDashOffset=(0,i.v)(n.borderDashOffset,e.borderDashOffset),t.lineJoin=(0,i.v)(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=(0,i.v)(n.borderWidth,e.borderWidth),t.strokeStyle=(0,i.v)(n.borderColor,e.borderColor)}function xe(t,e,n){t.lineTo(n.x,n.y)}function ve(t,e,n={}){const i=t.length,{start:s=0,end:o=i-1}=n,{start:r,end:a}=e,c=Math.max(s,r),l=Math.min(o,a),h=s<r&&o<r||s>a&&o>a;return{count:i,start:c,loop:e.loop,ilen:l<c&&!h?i+l-c:l-c}}function ye(t,e,n,s){const{points:o,options:r}=e,{count:a,start:c,loop:l,ilen:h}=ve(o,n,s),u=function(t){return t.stepped?i.ap:t.tension||"monotone"===t.cubicInterpolationMode?i.aq:xe}(r);let d,p,f,{move:g=!0,reverse:m}=s||{};for(d=0;d<=h;++d)p=o[(c+(m?h-d:d))%a],p.skip||(g?(t.moveTo(p.x,p.y),g=!1):u(t,f,p,m,r.stepped),f=p);return l&&(p=o[(c+(m?h:0))%a],u(t,f,p,m,r.stepped)),!!l}function _e(t,e,n,i){const s=e.points,{count:o,start:r,ilen:a}=ve(s,n,i),{move:c=!0,reverse:l}=i||{};let h,u,d,p,f,g,m=0,b=0;const x=t=>(r+(l?a-t:t))%o,v=()=>{p!==f&&(t.lineTo(m,f),t.lineTo(m,p),t.lineTo(m,g))};for(c&&(u=s[x(0)],t.moveTo(u.x,u.y)),h=0;h<=a;++h){if(u=s[x(h)],u.skip)continue;const e=u.x,n=u.y,i=0|e;i===d?(n<p?p=n:n>f&&(f=n),m=(b*m+e)/++b):(v(),t.lineTo(e,n),d=i,b=0,p=f=n),g=n}v()}function ke(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n)?_e:ye}me.id="arc",me.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0},me.defaultRoutes={backgroundColor:"backgroundColor"};const we="function"==typeof Path2D;function Se(t,e,n,i){we&&!e.options.segment?function(t,e,n,i){let s=e._path;s||(s=e._path=new Path2D,e.path(s,n,i)&&s.closePath()),be(t,e.options),t.stroke(s)}(t,e,n,i):function(t,e,n,i){const{segments:s,options:o}=e,r=ke(e);for(const a of s)be(t,o,a.style),t.beginPath(),r(t,e,a,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}(t,e,n,i)}class Me extends Mt{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const s=n.spanGaps?this._loop:this._fullLoop;(0,i.aj)(this._points,n,t,s,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=(0,i.ak)(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,n=t.length;return n&&e[t[n-1].end]}interpolate(t,e){const n=this.options,s=t[e],o=this.points,r=(0,i.al)(this,{property:e,start:s,end:s});if(!r.length)return;const a=[],c=function(t){return t.stepped?i.am:t.tension||"monotone"===t.cubicInterpolationMode?i.an:i.ao}(n);let l,h;for(l=0,h=r.length;l<h;++l){const{start:i,end:h}=r[l],u=o[i],d=o[h];if(u===d){a.push(u);continue}const p=c(u,d,Math.abs((s-u[e])/(d[e]-u[e])),n.stepped);p[e]=t[e],a.push(p)}return 1===a.length?a[0]:a}pathSegment(t,e,n){return ke(this)(t,this,e,n)}path(t,e,n){const i=this.segments,s=ke(this);let o=this._loop;e=e||0,n=n||this.points.length-e;for(const r of i)o&=s(t,this,r,{start:e,end:e+n-1});return!!o}draw(t,e,n,i){const s=this.options||{};(this.points||[]).length&&s.borderWidth&&(t.save(),Se(t,this,n,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Ce(t,e,n,i){const s=t.options,{[n]:o}=t.getProps([n],i);return Math.abs(e-o)<s.radius+s.hitRadius}Me.id="line",Me.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Me.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Me.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class Ee extends Mt{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,n){const i=this.options,{x:s,y:o}=this.getProps(["x","y"],n);return Math.pow(t-s,2)+Math.pow(e-o,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,e){return Ce(this,t,"x",e)}inYRange(t,e){return Ce(this,t,"y",e)}getCenterPoint(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}size(t){let e=(t=t||this.options||{}).radius||0;e=Math.max(e,e&&t.hoverRadius||0);return 2*(e+(e&&t.borderWidth||0))}draw(t,e){const n=this.options;this.skip||n.radius<.1||!(0,i.z)(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,(0,i.ar)(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function Pe(t,e){const{x:n,y:i,base:s,width:o,height:r}=t.getProps(["x","y","base","width","height"],e);let a,c,l,h,u;return t.horizontal?(u=r/2,a=Math.min(n,s),c=Math.max(n,s),l=i-u,h=i+u):(u=o/2,a=n-u,c=n+u,l=Math.min(i,s),h=Math.max(i,s)),{left:a,top:l,right:c,bottom:h}}function Oe(t,e,n,s){return t?0:(0,i.w)(e,n,s)}function je(t){const e=Pe(t),n=e.right-e.left,s=e.bottom-e.top,o=function(t,e,n){const s=t.options.borderWidth,o=t.borderSkipped,r=(0,i.at)(s);return{t:Oe(o.top,r.top,0,n),r:Oe(o.right,r.right,0,e),b:Oe(o.bottom,r.bottom,0,n),l:Oe(o.left,r.left,0,e)}}(t,n/2,s/2),r=function(t,e,n){const{enableBorderRadius:s}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,r=(0,i.au)(o),a=Math.min(e,n),c=t.borderSkipped,l=s||(0,i.i)(o);return{topLeft:Oe(!l||c.top||c.left,r.topLeft,0,a),topRight:Oe(!l||c.top||c.right,r.topRight,0,a),bottomLeft:Oe(!l||c.bottom||c.left,r.bottomLeft,0,a),bottomRight:Oe(!l||c.bottom||c.right,r.bottomRight,0,a)}}(t,n/2,s/2);return{outer:{x:e.left,y:e.top,w:n,h:s,radius:r},inner:{x:e.left+o.l,y:e.top+o.t,w:n-o.l-o.r,h:s-o.t-o.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,r.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(o.b,o.r))}}}}function De(t,e,n,s){const o=null===e,r=null===n,a=t&&!(o&&r)&&Pe(t,s);return a&&(o||(0,i.ah)(e,a.left,a.right))&&(r||(0,i.ah)(n,a.top,a.bottom))}function Ae(t,e){t.rect(e.x,e.y,e.w,e.h)}function Te(t,e,n={}){const i=t.x!==n.x?-e:0,s=t.y!==n.y?-e:0,o=(t.x+t.w!==n.x+n.w?e:0)-i,r=(t.y+t.h!==n.y+n.h?e:0)-s;return{x:t.x+i,y:t.y+s,w:t.w+o,h:t.h+r,radius:t.radius}}Ee.id="point",Ee.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Ee.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Ne extends Mt{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:n,backgroundColor:s}}=this,{inner:o,outer:r}=je(this),a=(c=r.radius).topLeft||c.topRight||c.bottomLeft||c.bottomRight?i.as:Ae;var c;t.save(),r.w===o.w&&r.h===o.h||(t.beginPath(),a(t,Te(r,e,o)),t.clip(),a(t,Te(o,-e,r)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),a(t,Te(o,e)),t.fillStyle=s,t.fill(),t.restore()}inRange(t,e,n){return De(this,t,e,n)}inXRange(t,e){return De(this,t,null,e)}inYRange(t,e){return De(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:i,horizontal:s}=this.getProps(["x","y","base","horizontal"],t);return{x:s?(e+i)/2:e,y:s?n:(n+i)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}Ne.id="bar",Ne.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},Ne.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Le=Object.freeze({__proto__:null,ArcElement:me,LineElement:Me,PointElement:Ee,BarElement:Ne});function Re(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{value:e})}}function ze(t){t.data.datasets.forEach((t=>{Re(t)}))}var Ie={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,n)=>{if(!n.enabled)return void ze(t);const s=t.width;t.data.datasets.forEach(((e,o)=>{const{_data:r,indexAxis:a}=e,c=t.getDatasetMeta(o),l=r||e.data;if("y"===(0,i.a)([a,t.options.indexAxis]))return;if("line"!==c.type)return;const h=t.scales[c.xAxisID];if("linear"!==h.type&&"time"!==h.type)return;if(t.options.parsing)return;let{start:u,count:d}=function(t,e){const n=e.length;let s,o=0;const{iScale:r}=t,{min:a,max:c,minDefined:l,maxDefined:h}=r.getUserBounds();return l&&(o=(0,i.w)((0,i.x)(e,r.axis,a).lo,0,n-1)),s=h?(0,i.w)((0,i.x)(e,r.axis,c).hi+1,o,n)-o:n-o,{start:o,count:s}}(c,l);if(d<=(n.threshold||4*s))return void Re(e);let p;switch((0,i.k)(r)&&(e._data=l,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),n.algorithm){case"lttb":p=function(t,e,n,i,s){const o=s.samples||i;if(o>=n)return t.slice(e,e+n);const r=[],a=(n-2)/(o-2);let c=0;const l=e+n-1;let h,u,d,p,f,g=e;for(r[c++]=t[g],h=0;h<o-2;h++){let i,s=0,o=0;const l=Math.floor((h+1)*a)+1+e,m=Math.min(Math.floor((h+2)*a)+1,n)+e,b=m-l;for(i=l;i<m;i++)s+=t[i].x,o+=t[i].y;s/=b,o/=b;const x=Math.floor(h*a)+1+e,v=Math.min(Math.floor((h+1)*a)+1,n)+e,{x:y,y:_}=t[g];for(d=p=-1,i=x;i<v;i++)p=.5*Math.abs((y-s)*(t[i].y-_)-(y-t[i].x)*(o-_)),p>d&&(d=p,u=t[i],f=i);r[c++]=u,g=f}return r[c++]=t[l],r}(l,u,d,s,n);break;case"min-max":p=function(t,e,n,s){let o,r,a,c,l,h,u,d,p,f,g=0,m=0;const b=[],x=e+n-1,v=t[e].x,y=t[x].x-v;for(o=e;o<e+n;++o){r=t[o],a=(r.x-v)/y*s,c=r.y;const e=0|a;if(e===l)c<p?(p=c,h=o):c>f&&(f=c,u=o),g=(m*g+r.x)/++m;else{const n=o-1;if(!(0,i.k)(h)&&!(0,i.k)(u)){const e=Math.min(h,u),i=Math.max(h,u);e!==d&&e!==n&&b.push({...t[e],x:g}),i!==d&&i!==n&&b.push({...t[i],x:g})}o>0&&n!==d&&b.push(t[n]),b.push(r),l=e,m=0,p=f=c,h=u=d=o}}return b}(l,u,d,s);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}e._decimated=p}))},destroy(t){ze(t)}};function Fe(t,e,n){const s=function(t){const e=t.options,n=e.fill;let s=(0,i.v)(n&&n.target,n);return void 0===s&&(s=!!e.backgroundColor),!1!==s&&null!==s&&(!0===s?"origin":s)}(t);if((0,i.i)(s))return!isNaN(s.value)&&s;let o=parseFloat(s);return(0,i.g)(o)&&Math.floor(o)===o?("-"!==s[0]&&"+"!==s[0]||(o=e+o),!(o===e||o<0||o>=n)&&o):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}class Ve{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,n){const{x:s,y:o,radius:r}=this;return e=e||{start:0,end:i.T},t.arc(s,o,r,e.end,e.start,!0),!n.bounds}interpolate(t){const{x:e,y:n,radius:i}=this,s=t.angle;return{x:e+Math.cos(s)*i,y:n+Math.sin(s)*i,angle:s}}}function Be(t){return(t.scale||{}).getPointPositionForValue?function(t){const{scale:e,fill:n}=t,s=e.options,o=e.getLabels().length,r=[],a=s.reverse?e.max:e.min,c=s.reverse?e.min:e.max;let l,h,u;if(u="start"===n?a:"end"===n?c:(0,i.i)(n)?n.value:e.getBaseValue(),s.grid.circular)return h=e.getPointPositionForValue(0,a),new Ve({x:h.x,y:h.y,radius:e.getDistanceFromCenterForValue(u)});for(l=0;l<o;++l)r.push(e.getPointPositionForValue(l,u));return r}(t):function(t){const{scale:e={},fill:n}=t;let s,o=null;return"start"===n?o=e.bottom:"end"===n?o=e.top:(0,i.i)(n)?o=e.getPixelForValue(n.value):e.getBasePixel&&(o=e.getBasePixel()),(0,i.g)(o)?(s=e.isHorizontal(),{x:s?o:null,y:s?null:o}):null}(t)}function He(t,e,n){for(;e>t;e--){const t=n[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function We(t,e,n){const i=[];for(let s=0;s<n.length;s++){const o=n[s],{first:r,last:a,point:c}=$e(o,e,"x");if(!(!c||r&&a))if(r)i.unshift(c);else if(t.push(c),!a)break}t.push(...i)}function $e(t,e,n){const s=t.interpolate(e,n);if(!s)return{};const o=s[n],r=t.segments,a=t.points;let c=!1,l=!1;for(let t=0;t<r.length;t++){const e=r[t],s=a[e.start][n],h=a[e.end][n];if((0,i.ah)(o,s,h)){c=o===s,l=o===h;break}}return{first:c,last:l,point:s}}function Ze(t){const{chart:e,fill:n,line:s}=t;if((0,i.g)(n))return function(t,e){const n=t.getDatasetMeta(e);return n&&t.isDatasetVisible(e)?n.dataset:null}(e,n);if("stack"===n)return function(t){const{scale:e,index:n,line:i}=t,s=[],o=i.segments,r=i.points,a=function(t,e){const n=[],i=t.getMatchingVisibleMetas("line");for(let t=0;t<i.length;t++){const s=i[t];if(s.index===e)break;s.hidden||n.unshift(s.dataset)}return n}(e,n);a.push(Ue({x:null,y:e.bottom},i));for(let t=0;t<o.length;t++){const e=o[t];for(let t=e.start;t<=e.end;t++)We(s,r[t],a)}return new Me({points:s,options:{}})}(t);if("shape"===n)return!0;const o=Be(t);return o instanceof Ve?o:Ue(o,s)}function Ue(t,e){let n=[],s=!1;return(0,i.b)(t)?(s=!0,n=t):n=function(t,e){const{x:n=null,y:i=null}=t||{},s=e.points,o=[];return e.segments.forEach((({start:t,end:e})=>{e=He(t,e,s);const r=s[t],a=s[e];null!==i?(o.push({x:r.x,y:i}),o.push({x:a.x,y:i})):null!==n&&(o.push({x:n,y:r.y}),o.push({x:n,y:a.y}))})),o}(t,e),n.length?new Me({points:n,options:{tension:0},_loop:s,_fullLoop:s}):null}function Ye(t,e,n){let s=t[e].fill;const o=[e];let r;if(!n)return s;for(;!1!==s&&-1===o.indexOf(s);){if(!(0,i.g)(s))return s;if(r=t[s],!r)return!1;if(r.visible)return s;o.push(s),s=r.fill}return!1}function Je(t,e,n){const{segments:i,points:s}=e;let o=!0,r=!1;t.beginPath();for(const a of i){const{start:i,end:c}=a,l=s[i],h=s[He(i,c,s)];o?(t.moveTo(l.x,l.y),o=!1):(t.lineTo(l.x,n),t.lineTo(l.x,l.y)),r=!!e.pathSegment(t,a,{move:r}),r?t.closePath():t.lineTo(h.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function Ge(t,e,n,s){if(s)return;let o=e[t],r=n[t];return"angle"===t&&(o=(0,i.aw)(o),r=(0,i.aw)(r)),{property:t,start:o,end:r}}function Xe(t,e,n,i){return t&&e?i(t[n],e[n]):t?t[n]:e?e[n]:0}function qe(t,e,n){const{top:i,bottom:s}=e.chart.chartArea,{property:o,start:r,end:a}=n||{};"x"===o&&(t.beginPath(),t.rect(r,i,a-r,s-i),t.clip())}function Ke(t,e,n,i){const s=e.interpolate(n,i);s&&t.lineTo(s.x,s.y)}function Qe(t,e){const{line:n,target:s,property:o,color:r,scale:a}=e,c=function(t,e,n){const s=t.segments,o=t.points,r=e.points,a=[];for(const t of s){let{start:s,end:c}=t;c=He(s,c,o);const l=Ge(n,o[s],o[c],t.loop);if(!e.segments){a.push({source:t,target:l,start:o[s],end:o[c]});continue}const h=(0,i.al)(e,l);for(const e of h){const s=Ge(n,r[e.start],r[e.end],e.loop),c=(0,i.av)(t,o,s);for(const t of c)a.push({source:t,target:e,start:{[n]:Xe(l,s,"start",Math.max)},end:{[n]:Xe(l,s,"end",Math.min)}})}}return a}(n,s,o);for(const{source:e,target:i,start:l,end:h}of c){const{style:{backgroundColor:c=r}={}}=e,u=!0!==s;t.save(),t.fillStyle=c,qe(t,a,u&&Ge(o,l,h)),t.beginPath();const d=!!n.pathSegment(t,e);let p;if(u){d?t.closePath():Ke(t,s,h,o);const e=!!s.pathSegment(t,i,{move:d,reverse:!0});p=d&&e,p||Ke(t,s,l,o)}t.closePath(),t.fill(p?"evenodd":"nonzero"),t.restore()}}function tn(t,e,n){const s=Ze(e),{line:o,scale:r,axis:a}=e,c=o.options,l=c.fill,h=c.backgroundColor,{above:u=h,below:d=h}=l||{};s&&o.points.length&&((0,i.W)(t,n),function(t,e){const{line:n,target:i,above:s,below:o,area:r,scale:a}=e,c=n._loop?"angle":e.axis;t.save(),"x"===c&&o!==s&&(Je(t,i,r.top),Qe(t,{line:n,target:i,color:s,scale:a,property:c}),t.restore(),t.save(),Je(t,i,r.bottom)),Qe(t,{line:n,target:i,color:o,scale:a,property:c}),t.restore()}(t,{line:o,target:s,above:u,below:d,area:n,scale:r,axis:a}),(0,i.Y)(t))}var en={id:"filler",afterDatasetsUpdate(t,e,n){const i=(t.data.datasets||[]).length,s=[];let o,r,a,c;for(r=0;r<i;++r)o=t.getDatasetMeta(r),a=o.dataset,c=null,a&&a.options&&a instanceof Me&&(c={visible:t.isDatasetVisible(r),index:r,fill:Fe(a,r,i),chart:t,axis:o.controller.options.indexAxis,scale:o.vScale,line:a}),o.$filler=c,s.push(c);for(r=0;r<i;++r)c=s[r],c&&!1!==c.fill&&(c.fill=Ye(s,r,n.propagate))},beforeDraw(t,e,n){const i="beforeDraw"===n.drawTime,s=t.getSortedVisibleDatasetMetas(),o=t.chartArea;for(let e=s.length-1;e>=0;--e){const n=s[e].$filler;n&&(n.line.updateControlPoints(o,n.axis),i&&tn(t.ctx,n,o))}},beforeDatasetsDraw(t,e,n){if("beforeDatasetsDraw"!==n.drawTime)return;const i=t.getSortedVisibleDatasetMetas();for(let e=i.length-1;e>=0;--e){const n=i[e].$filler;n&&tn(t.ctx,n,t.chartArea)}},beforeDatasetDraw(t,e,n){const i=e.meta.$filler;i&&!1!==i.fill&&"beforeDatasetDraw"===n.drawTime&&tn(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const nn=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}};class sn extends Mt{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=(0,i.O)(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,n)=>t.sort(e,n,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const n=t.labels,s=(0,i.Z)(n.font),o=s.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:c}=nn(n,o);let l,h;e.font=s.string,this.isHorizontal()?(l=this.maxWidth,h=this._fitRows(r,o,a,c)+10):(h=this.maxHeight,l=this._fitCols(r,o,a,c)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(h,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,i){const{ctx:s,maxWidth:o,options:{labels:{padding:r}}}=this,a=this.legendHitBoxes=[],c=this.lineWidths=[0],l=i+r;let h=t;s.textAlign="left",s.textBaseline="middle";let u=-1,d=-l;return this.legendItems.forEach(((t,p)=>{const f=n+e/2+s.measureText(t.text).width;(0===p||c[c.length-1]+f+2*r>o)&&(h+=l,c[c.length-(p>0?0:1)]=0,d+=l,u++),a[p]={left:0,top:d,row:u,width:f,height:i},c[c.length-1]+=f+r})),h}_fitCols(t,e,n,i){const{ctx:s,maxHeight:o,options:{labels:{padding:r}}}=this,a=this.legendHitBoxes=[],c=this.columnSizes=[],l=o-t;let h=r,u=0,d=0,p=0,f=0;return this.legendItems.forEach(((t,o)=>{const g=n+e/2+s.measureText(t.text).width;o>0&&d+i+2*r>l&&(h+=u+r,c.push({width:u,height:d}),p+=u+r,f++,u=d=0),a[o]={left:p,top:d,col:f,width:g,height:i},u=Math.max(u,g),d+=i+r})),h+=u,c.push({width:u,height:d}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:s},rtl:o}}=this,r=(0,i.ax)(o,this.left,this.width);if(this.isHorizontal()){let o=0,a=(0,i.a0)(n,this.left+s,this.right-this.lineWidths[o]);for(const c of e)o!==c.row&&(o=c.row,a=(0,i.a0)(n,this.left+s,this.right-this.lineWidths[o])),c.top+=this.top+t+s,c.left=r.leftForLtr(r.x(a),c.width),a+=c.width+s}else{let o=0,a=(0,i.a0)(n,this.top+t+s,this.bottom-this.columnSizes[o].height);for(const c of e)c.col!==o&&(o=c.col,a=(0,i.a0)(n,this.top+t+s,this.bottom-this.columnSizes[o].height)),c.top=a,c.left+=this.left+s,c.left=r.leftForLtr(r.x(c.left),c.width),a+=c.height+s}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;(0,i.W)(t,this),this._draw(),(0,i.Y)(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:s}=this,{align:o,labels:r}=t,a=i.d.color,c=(0,i.ax)(t.rtl,this.left,this.width),l=(0,i.Z)(r.font),{color:h,padding:u}=r,d=l.size,p=d/2;let f;this.drawTitle(),s.textAlign=c.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=l.string;const{boxWidth:g,boxHeight:m,itemHeight:b}=nn(r,d),x=this.isHorizontal(),v=this._computeTitleHeight();f=x?{x:(0,i.a0)(o,this.left+u,this.right-n[0]),y:this.top+u+v,line:0}:{x:this.left+u,y:(0,i.a0)(o,this.top+v+u,this.bottom-e[0].height),line:0},(0,i.ay)(this.ctx,t.textDirection);const y=b+u;this.legendItems.forEach(((_,k)=>{s.strokeStyle=_.fontColor||h,s.fillStyle=_.fontColor||h;const w=s.measureText(_.text).width,S=c.textAlign(_.textAlign||(_.textAlign=r.textAlign)),M=g+p+w;let C=f.x,E=f.y;c.setWidth(this.width),x?k>0&&C+M+u>this.right&&(E=f.y+=y,f.line++,C=f.x=(0,i.a0)(o,this.left+u,this.right-n[f.line])):k>0&&E+y>this.bottom&&(C=f.x=C+e[f.line].width+u,f.line++,E=f.y=(0,i.a0)(o,this.top+v+u,this.bottom-e[f.line].height));!function(t,e,n){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;s.save();const o=(0,i.v)(n.lineWidth,1);if(s.fillStyle=(0,i.v)(n.fillStyle,a),s.lineCap=(0,i.v)(n.lineCap,"butt"),s.lineDashOffset=(0,i.v)(n.lineDashOffset,0),s.lineJoin=(0,i.v)(n.lineJoin,"miter"),s.lineWidth=o,s.strokeStyle=(0,i.v)(n.strokeStyle,a),s.setLineDash((0,i.v)(n.lineDash,[])),r.usePointStyle){const r={radius:g*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},a=c.xPlus(t,g/2),l=e+p;(0,i.ar)(s,r,a,l)}else{const r=e+Math.max((d-m)/2,0),a=c.leftForLtr(t,g),l=(0,i.au)(n.borderRadius);s.beginPath(),Object.values(l).some((t=>0!==t))?(0,i.as)(s,{x:a,y:r,w:g,h:m,radius:l}):s.rect(a,r,g,m),s.fill(),0!==o&&s.stroke()}s.restore()}(c.x(C),E,_),C=(0,i.az)(S,C+g+p,x?C+M:this.right,t.rtl),function(t,e,n){(0,i.X)(s,n.text,t,e+b/2,l,{strikethrough:n.hidden,textAlign:c.textAlign(n.textAlign)})}(c.x(C),E,_),x?f.x+=M+u:f.y+=y})),(0,i.aA)(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=(0,i.Z)(e.font),s=(0,i.C)(e.padding);if(!e.display)return;const o=(0,i.ax)(t.rtl,this.left,this.width),r=this.ctx,a=e.position,c=n.size/2,l=s.top+c;let h,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),h=this.top+l,u=(0,i.a0)(t.align,u,this.right-d);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);h=l+(0,i.a0)(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const p=(0,i.a0)(a,u,u+d);r.textAlign=o.textAlign((0,i.$)(a)),r.textBaseline="middle",r.strokeStyle=e.color,r.fillStyle=e.color,r.font=n.string,(0,i.X)(r,e.text,p,h,n)}_computeTitleHeight(){const t=this.options.title,e=(0,i.Z)(t.font),n=(0,i.C)(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,s,o;if((0,i.ah)(t,this.left,this.right)&&(0,i.ah)(e,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(s=o[n],(0,i.ah)(t,s.left,s.left+s.width)&&(0,i.ah)(e,s.top,s.top+s.height))return this.legendItems[n];return null}handleEvent(t){const e=this.options;if(!function(t,e){if("mousemove"===t&&(e.onHover||e.onLeave))return!0;if(e.onClick&&("click"===t||"mouseup"===t))return!0;return!1}(t.type,e))return;const n=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type){const r=this._hoveredItem,a=(o=n,null!==(s=r)&&null!==o&&s.datasetIndex===o.datasetIndex&&s.index===o.index);r&&!a&&(0,i.O)(e.onLeave,[t,r,this],this),this._hoveredItem=n,n&&!a&&(0,i.O)(e.onHover,[t,n,this],this)}else n&&(0,i.O)(e.onClick,[t,n,this],this);var s,o}}var on={id:"legend",_element:sn,start(t,e,n){const i=t.legend=new sn({ctx:t.ctx,options:n,chart:t});ct.configure(t,i,n),ct.addBox(t,i)},stop(t){ct.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;ct.configure(t,i,n),i.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const i=e.datasetIndex,s=n.chart;s.isDatasetVisible(i)?(s.hide(i),e.hidden=!0):(s.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:s,textAlign:o,color:r}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const a=t.controller.getStyle(n?0:void 0),c=(0,i.C)(a.borderWidth);return{text:e[t.index].label,fillStyle:a.backgroundColor,fontColor:r,hidden:!t.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:a.borderColor,pointStyle:s||a.pointStyle,rotation:a.rotation,textAlign:o||a.textAlign,borderRadius:0,datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class rn extends Mt{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const s=(0,i.b)(n.text)?n.text.length:1;this._padding=(0,i.C)(n.padding);const o=s*(0,i.Z)(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:n,bottom:s,right:o,options:r}=this,a=r.align;let c,l,h,u=0;return this.isHorizontal()?(l=(0,i.a0)(a,n,o),h=e+t,c=o-n):("left"===r.position?(l=n+t,h=(0,i.a0)(a,s,e),u=-.5*i.P):(l=o-t,h=(0,i.a0)(a,e,s),u=.5*i.P),c=s-e),{titleX:l,titleY:h,maxWidth:c,rotation:u}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const n=(0,i.Z)(e.font),s=n.lineHeight/2+this._padding.top,{titleX:o,titleY:r,maxWidth:a,rotation:c}=this._drawArgs(s);(0,i.X)(t,e.text,0,0,n,{color:e.color,maxWidth:a,rotation:c,textAlign:(0,i.$)(e.align),textBaseline:"middle",translation:[o,r]})}}var an={id:"title",_element:rn,start(t,e,n){!function(t,e){const n=new rn({ctx:t.ctx,options:e,chart:t});ct.configure(t,n,e),ct.addBox(t,n),t.titleBlock=n}(t,n)},stop(t){const e=t.titleBlock;ct.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const i=t.titleBlock;ct.configure(t,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const cn=new WeakMap;var ln={id:"subtitle",start(t,e,n){const i=new rn({ctx:t.ctx,options:n,chart:t});ct.configure(t,i,n),ct.addBox(t,i),cn.set(t,i)},stop(t){ct.removeBox(t,cn.get(t)),cn.delete(t)},beforeUpdate(t,e,n){const i=cn.get(t);ct.configure(t,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const hn={average(t){if(!t.length)return!1;let e,n,i=0,s=0,o=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();i+=t.x,s+=t.y,++o}}return{x:i/o,y:s/o}},nearest(t,e){if(!t.length)return!1;let n,s,o,r=e.x,a=e.y,c=Number.POSITIVE_INFINITY;for(n=0,s=t.length;n<s;++n){const s=t[n].element;if(s&&s.hasValue()){const t=s.getCenterPoint(),n=(0,i.aC)(e,t);n<c&&(c=n,o=s)}}if(o){const t=o.tooltipPosition();r=t.x,a=t.y}return{x:r,y:a}}};function un(t,e){return e&&((0,i.b)(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function dn(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function pn(t,e){const{element:n,datasetIndex:i,index:s}=e,o=t.getDatasetMeta(i).controller,{label:r,value:a}=o.getLabelAndValue(s);return{chart:t,label:r,parsed:o.getParsed(s),raw:t.data.datasets[i].data[s],formattedValue:a,dataset:o.getDataset(),dataIndex:s,datasetIndex:i,element:n}}function fn(t,e){const n=t.chart.ctx,{body:s,footer:o,title:r}=t,{boxWidth:a,boxHeight:c}=e,l=(0,i.Z)(e.bodyFont),h=(0,i.Z)(e.titleFont),u=(0,i.Z)(e.footerFont),d=r.length,p=o.length,f=s.length,g=(0,i.C)(e.padding);let m=g.height,b=0,x=s.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(x+=t.beforeBody.length+t.afterBody.length,d&&(m+=d*h.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),x){m+=f*(e.displayColors?Math.max(c,l.lineHeight):l.lineHeight)+(x-f)*l.lineHeight+(x-1)*e.bodySpacing}p&&(m+=e.footerMarginTop+p*u.lineHeight+(p-1)*e.footerSpacing);let v=0;const y=function(t){b=Math.max(b,n.measureText(t).width+v)};return n.save(),n.font=h.string,(0,i.D)(t.title,y),n.font=l.string,(0,i.D)(t.beforeBody.concat(t.afterBody),y),v=e.displayColors?a+2+e.boxPadding:0,(0,i.D)(s,(t=>{(0,i.D)(t.before,y),(0,i.D)(t.lines,y),(0,i.D)(t.after,y)})),v=0,n.font=u.string,(0,i.D)(t.footer,y),n.restore(),b+=g.width,{width:b,height:m}}function gn(t,e,n,i){const{x:s,width:o}=n,{width:r,chartArea:{left:a,right:c}}=t;let l="center";return"center"===i?l=s<=(a+c)/2?"left":"right":s<=o/2?l="left":s>=r-o/2&&(l="right"),function(t,e,n,i){const{x:s,width:o}=i,r=n.caretSize+n.caretPadding;return"left"===t&&s+o+r>e.width||"right"===t&&s-o-r<0||void 0}(l,t,e,n)&&(l="center"),l}function mn(t,e,n){const i=n.yAlign||e.yAlign||function(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||gn(t,e,n,i),yAlign:i}}function bn(t,e,n,s){const{caretSize:o,caretPadding:r,cornerRadius:a}=t,{xAlign:c,yAlign:l}=n,h=o+r,{topLeft:u,topRight:d,bottomLeft:p,bottomRight:f}=(0,i.au)(a);let g=function(t,e){let{x:n,width:i}=t;return"right"===e?n-=i:"center"===e&&(n-=i/2),n}(e,c);const m=function(t,e,n){let{y:i,height:s}=t;return"top"===e?i+=n:i-="bottom"===e?s+n:s/2,i}(e,l,h);return"center"===l?"left"===c?g+=h:"right"===c&&(g-=h):"left"===c?g-=Math.max(u,p)+o:"right"===c&&(g+=Math.max(d,f)+o),{x:(0,i.w)(g,0,s.width-e.width),y:(0,i.w)(m,0,s.height-e.height)}}function xn(t,e,n){const s=(0,i.C)(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-s.right:t.x+s.left}function vn(t){return un([],dn(t))}function yn(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}class kn extends Mt{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&e.options.animation&&n.animations,s=new l(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,n=this._tooltipItems,(0,i.h)(t,{tooltip:e,tooltipItems:n,type:"tooltip"})));var t,e,n}getTitle(t,e){const{callbacks:n}=e,i=n.beforeTitle.apply(this,[t]),s=n.title.apply(this,[t]),o=n.afterTitle.apply(this,[t]);let r=[];return r=un(r,dn(i)),r=un(r,dn(s)),r=un(r,dn(o)),r}getBeforeBody(t,e){return vn(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:n}=e,s=[];return(0,i.D)(t,(t=>{const e={before:[],lines:[],after:[]},i=yn(n,t);un(e.before,dn(i.beforeLabel.call(this,t))),un(e.lines,i.label.call(this,t)),un(e.after,dn(i.afterLabel.call(this,t))),s.push(e)})),s}getAfterBody(t,e){return vn(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:n}=e,i=n.beforeFooter.apply(this,[t]),s=n.footer.apply(this,[t]),o=n.afterFooter.apply(this,[t]);let r=[];return r=un(r,dn(i)),r=un(r,dn(s)),r=un(r,dn(o)),r}_createItems(t){const e=this._active,n=this.chart.data,s=[],o=[],r=[];let a,c,l=[];for(a=0,c=e.length;a<c;++a)l.push(pn(this.chart,e[a]));return t.filter&&(l=l.filter(((e,i,s)=>t.filter(e,i,s,n)))),t.itemSort&&(l=l.sort(((e,i)=>t.itemSort(e,i,n)))),(0,i.D)(l,(e=>{const n=yn(t.callbacks,e);s.push(n.labelColor.call(this,e)),o.push(n.labelPointStyle.call(this,e)),r.push(n.labelTextColor.call(this,e))})),this.labelColors=s,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=l,l}update(t,e){const n=this.options.setContext(this.getContext()),i=this._active;let s,o=[];if(i.length){const t=hn[n.position].call(this,i,this._eventPosition);o=this._createItems(n),this.title=this.getTitle(o,n),this.beforeBody=this.getBeforeBody(o,n),this.body=this.getBody(o,n),this.afterBody=this.getAfterBody(o,n),this.footer=this.getFooter(o,n);const e=this._size=fn(this,n),r=Object.assign({},t,e),a=mn(this.chart,n,r),c=bn(n,r,a,this.chart);this.xAlign=a.xAlign,this.yAlign=a.yAlign,s={opacity:1,x:c.x,y:c.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(s={opacity:0});this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,i){const s=this.getCaretPosition(t,n,i);e.lineTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.lineTo(s.x3,s.y3)}getCaretPosition(t,e,n){const{xAlign:s,yAlign:o}=this,{caretSize:r,cornerRadius:a}=n,{topLeft:c,topRight:l,bottomLeft:h,bottomRight:u}=(0,i.au)(a),{x:d,y:p}=t,{width:f,height:g}=e;let m,b,x,v,y,_;return"center"===o?(y=p+g/2,"left"===s?(m=d,b=m-r,v=y+r,_=y-r):(m=d+f,b=m+r,v=y-r,_=y+r),x=m):(b="left"===s?d+Math.max(c,h)+r:"right"===s?d+f-Math.max(l,u)-r:this.caretX,"top"===o?(v=p,y=v-r,m=b-r,x=b+r):(v=p+g,y=v+r,m=b+r,x=b-r),_=v),{x1:m,x2:b,x3:x,y1:v,y2:y,y3:_}}drawTitle(t,e,n){const s=this.title,o=s.length;let r,a,c;if(o){const l=(0,i.ax)(n.rtl,this.x,this.width);for(t.x=xn(this,n.titleAlign,n),e.textAlign=l.textAlign(n.titleAlign),e.textBaseline="middle",r=(0,i.Z)(n.titleFont),a=n.titleSpacing,e.fillStyle=n.titleColor,e.font=r.string,c=0;c<o;++c)e.fillText(s[c],l.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+a,c+1===o&&(t.y+=n.titleMarginBottom-a)}}_drawColorBox(t,e,n,s,o){const r=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:c,boxWidth:l,boxPadding:h}=o,u=(0,i.Z)(o.bodyFont),d=xn(this,"left",o),p=s.x(d),f=c<u.lineHeight?(u.lineHeight-c)/2:0,g=e.y+f;if(o.usePointStyle){const e={radius:Math.min(l,c)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},n=s.leftForLtr(p,l)+l/2,h=g+c/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,(0,i.ar)(t,e,n,h),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,(0,i.ar)(t,e,n,h)}else{t.lineWidth=r.borderWidth||1,t.strokeStyle=r.borderColor,t.setLineDash(r.borderDash||[]),t.lineDashOffset=r.borderDashOffset||0;const e=s.leftForLtr(p,l-h),n=s.leftForLtr(s.xPlus(p,1),l-h-2),a=(0,i.au)(r.borderRadius);Object.values(a).some((t=>0!==t))?(t.beginPath(),t.fillStyle=o.multiKeyBackground,(0,i.as)(t,{x:e,y:g,w:l,h:c,radius:a}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),(0,i.as)(t,{x:n,y:g+1,w:l-2,h:c-2,radius:a}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,g,l,c),t.strokeRect(e,g,l,c),t.fillStyle=r.backgroundColor,t.fillRect(n,g+1,l-2,c-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:s}=this,{bodySpacing:o,bodyAlign:r,displayColors:a,boxHeight:c,boxWidth:l,boxPadding:h}=n,u=(0,i.Z)(n.bodyFont);let d=u.lineHeight,p=0;const f=(0,i.ax)(n.rtl,this.x,this.width),g=function(n){e.fillText(n,f.x(t.x+p),t.y+d/2),t.y+=d+o},m=f.textAlign(r);let b,x,v,y,_,k,w;for(e.textAlign=r,e.textBaseline="middle",e.font=u.string,t.x=xn(this,m,n),e.fillStyle=n.bodyColor,(0,i.D)(this.beforeBody,g),p=a&&"right"!==m?"center"===r?l/2+h:l+2+h:0,y=0,k=s.length;y<k;++y){for(b=s[y],x=this.labelTextColors[y],e.fillStyle=x,(0,i.D)(b.before,g),v=b.lines,a&&v.length&&(this._drawColorBox(e,t,y,f,n),d=Math.max(u.lineHeight,c)),_=0,w=v.length;_<w;++_)g(v[_]),d=u.lineHeight;(0,i.D)(b.after,g)}p=0,d=u.lineHeight,(0,i.D)(this.afterBody,g),t.y-=o}drawFooter(t,e,n){const s=this.footer,o=s.length;let r,a;if(o){const c=(0,i.ax)(n.rtl,this.x,this.width);for(t.x=xn(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=c.textAlign(n.footerAlign),e.textBaseline="middle",r=(0,i.Z)(n.footerFont),e.fillStyle=n.footerColor,e.font=r.string,a=0;a<o;++a)e.fillText(s[a],c.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+n.footerSpacing}}drawBackground(t,e,n,s){const{xAlign:o,yAlign:r}=this,{x:a,y:c}=t,{width:l,height:h}=n,{topLeft:u,topRight:d,bottomLeft:p,bottomRight:f}=(0,i.au)(s.cornerRadius);e.fillStyle=s.backgroundColor,e.strokeStyle=s.borderColor,e.lineWidth=s.borderWidth,e.beginPath(),e.moveTo(a+u,c),"top"===r&&this.drawCaret(t,e,n,s),e.lineTo(a+l-d,c),e.quadraticCurveTo(a+l,c,a+l,c+d),"center"===r&&"right"===o&&this.drawCaret(t,e,n,s),e.lineTo(a+l,c+h-f),e.quadraticCurveTo(a+l,c+h,a+l-f,c+h),"bottom"===r&&this.drawCaret(t,e,n,s),e.lineTo(a+p,c+h),e.quadraticCurveTo(a,c+h,a,c+h-p),"center"===r&&"left"===o&&this.drawCaret(t,e,n,s),e.lineTo(a,c+u),e.quadraticCurveTo(a,c,a+u,c),e.closePath(),e.fill(),s.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,i=n&&n.x,s=n&&n.y;if(i||s){const n=hn[t.position].call(this,this._active,this._eventPosition);if(!n)return;const o=this._size=fn(this,t),r=Object.assign({},n,this._size),a=mn(e,t,r),c=bn(t,r,a,e);i._to===c.x&&s._to===c.y||(this.xAlign=a.xAlign,this.yAlign=a.yAlign,this.width=o.width,this.height=o.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,c))}}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const s={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const r=(0,i.C)(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=n,this.drawBackground(o,t,s,e),(0,i.ay)(t,e.textDirection),o.y+=r.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),(0,i.aA)(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,s=t.map((({datasetIndex:t,index:e})=>{const n=this.chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}})),o=!(0,i.af)(n,s),r=this._positionChanged(s,e);(o||r)&&(this._active=s,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,o=this._active||[],r=this._getActiveElements(t,o,e,n),a=this._positionChanged(r,t),c=e||!(0,i.af)(r,o)||a;return c&&(this._active=r,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),c}_getActiveElements(t,e,n,i){const s=this.options;if("mouseout"===t.type)return[];if(!i)return e;const o=this.chart.getElementsAtEventForMode(t,s.mode,s,n);return s.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:n,caretY:i,options:s}=this,o=hn[s.position].call(this,t,e);return!1!==o&&(n!==o.x||i!==o.y)}}kn.positioners=hn;var wn={id:"tooltip",_element:kn,positioners:hn,afterInit(t,e,n){n&&(t.tooltip=new kn({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip,n={tooltip:e};!1!==t.notifyPlugins("beforeTooltipDraw",n)&&(e&&e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n))},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:i.aB,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex<i)return n[e.dataIndex]}return""},afterTitle:i.aB,beforeBody:i.aB,beforeLabel:i.aB,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return(0,i.k)(n)||(e+=n),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:i.aB,afterBody:i.aB,beforeFooter:i.aB,footer:i.aB,afterFooter:i.aB}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Sn=Object.freeze({__proto__:null,Decimation:Ie,Filler:en,Legend:on,SubTitle:ln,Title:an,Tooltip:wn});function Mn(t,e,n,i){const s=t.indexOf(e);if(-1===s)return((t,e,n,i)=>("string"==typeof e?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,i);return s!==t.lastIndexOf(e)?n:s}class Cn extends Rt{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:i}of e)t[n]===i&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if((0,i.k)(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:(0,i.w)(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:Mn(n,t,(0,i.v)(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,i=[];let s=this.getLabels();s=0===t&&e===s.length-1?s:s.slice(t,e+1),this._valueRange=Math.max(s.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)i.push({value:n});return i}getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function En(t,e,{horizontal:n,minRotation:s}){const o=(0,i.t)(s),r=(n?Math.sin(o):Math.cos(o))||.001,a=.75*e*(""+t).length;return Math.min(e/r,a)}Cn.id="category",Cn.defaults={ticks:{callback:Cn.prototype.getLabelForValue}};class Pn extends Rt{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return(0,i.k)(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:s,max:o}=this;const r=t=>s=e?s:t,a=t=>o=n?o:t;if(t){const t=(0,i.s)(s),e=(0,i.s)(o);t<0&&e<0?a(0):t>0&&e>0&&r(0)}if(s===o){let e=1;(o>=Number.MAX_SAFE_INTEGER||s<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*o)),a(o+e),t||r(s-e)}this.min=s,this.max=o}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:i}=t;return i?(e=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const s=function(t,e){const n=[],{bounds:s,step:o,min:r,max:a,precision:c,count:l,maxTicks:h,maxDigits:u,includeBounds:d}=t,p=o||1,f=h-1,{min:g,max:m}=e,b=!(0,i.k)(r),x=!(0,i.k)(a),v=!(0,i.k)(l),y=(m-g)/(u+1);let _,k,w,S,M=(0,i.aE)((m-g)/f/p)*p;if(M<1e-14&&!b&&!x)return[{value:g},{value:m}];S=Math.ceil(m/M)-Math.floor(g/M),S>f&&(M=(0,i.aE)(S*M/f/p)*p),(0,i.k)(c)||(_=Math.pow(10,c),M=Math.ceil(M*_)/_),"ticks"===s?(k=Math.floor(g/M)*M,w=Math.ceil(m/M)*M):(k=g,w=m),b&&x&&o&&(0,i.aF)((a-r)/o,M/1e3)?(S=Math.round(Math.min((a-r)/M,h)),M=(a-r)/S,k=r,w=a):v?(k=b?r:k,w=x?a:w,S=l-1,M=(w-k)/S):(S=(w-k)/M,S=(0,i.aG)(S,Math.round(S),M/1e3)?Math.round(S):Math.ceil(S));const C=Math.max((0,i.aH)(M),(0,i.aH)(k));_=Math.pow(10,(0,i.k)(c)?C:c),k=Math.round(k*_)/_,w=Math.round(w*_)/_;let E=0;for(b&&(d&&k!==r?(n.push({value:r}),k<r&&E++,(0,i.aG)(Math.round((k+E*M)*_)/_,r,En(r,y,t))&&E++):k<r&&E++);E<S;++E)n.push({value:Math.round((k+E*M)*_)/_});return x&&d&&w!==a?n.length&&(0,i.aG)(n[n.length-1].value,a,En(a,y,t))?n[n.length-1].value=a:n.push({value:a}):x&&w!==a||n.push({value:w}),n}({maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&(0,i.aD)(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-e)/Math.max(t.length-1,1)/2;e-=i,n+=i}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return(0,i.o)(t,this.chart.options.locale,this.options.ticks.format)}}class On extends Pn{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=(0,i.g)(t)?t:0,this.max=(0,i.g)(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=(0,i.t)(this.options.ticks.minRotation),s=(t?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/s))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function jn(t){return 1===t/Math.pow(10,Math.floor((0,i.L)(t)))}On.id="linear",On.defaults={ticks:{callback:Et.formatters.numeric}};class Dn extends Rt{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const n=Pn.prototype.parse.apply(this,[t,e]);if(0!==n)return(0,i.g)(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=(0,i.g)(t)?Math.max(0,t):null,this.max=(0,i.g)(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let n=this.min,s=this.max;const o=e=>n=t?n:e,r=t=>s=e?s:t,a=(t,e)=>Math.pow(10,Math.floor((0,i.L)(t))+e);n===s&&(n<=0?(o(1),r(10)):(o(a(n,-1)),r(a(s,1)))),n<=0&&o(a(s,-1)),s<=0&&r(a(n,1)),this._zero&&this.min!==this._suggestedMin&&n===a(this.min,0)&&o(a(n,-1)),this.min=n,this.max=s}buildTicks(){const t=this.options,e=function(t,e){const n=Math.floor((0,i.L)(e.max)),s=Math.ceil(e.max/Math.pow(10,n)),o=[];let r=(0,i.N)(t.min,Math.pow(10,Math.floor((0,i.L)(e.min)))),a=Math.floor((0,i.L)(r)),c=Math.floor(r/Math.pow(10,a)),l=a<0?Math.pow(10,Math.abs(a)):1;do{o.push({value:r,major:jn(r)}),++c,10===c&&(c=1,++a,l=a>=0?1:l),r=Math.round(c*Math.pow(10,a)*l)/l}while(a<n||a===n&&c<s);const h=(0,i.N)(t.max,r);return o.push({value:h,major:jn(r)}),o}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&(0,i.aD)(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":(0,i.o)(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=(0,i.L)(t),this._valueRange=(0,i.L)(this.max)-(0,i.L)(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:((0,i.L)(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function An(t){const e=t.ticks;if(e.display&&t.display){const t=(0,i.C)(e.backdropPadding);return(0,i.v)(e.font&&e.font.size,i.d.font.size)+t.height}return 0}function Tn(t,e,n,i,s){return t===i||t===s?{start:e-n/2,end:e+n/2}:t<i||t>s?{start:e-n,end:e}:{start:e,end:e+n}}function Nn(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),s=[],o=[],r=t._pointLabels.length,a=t.options.pointLabels,c=a.centerPointLabels?i.P/r:0;for(let d=0;d<r;d++){const r=a.setContext(t.getPointLabelContext(d));o[d]=r.padding;const p=t.getPointPosition(d,t.drawingArea+o[d],c),f=(0,i.Z)(r.font),g=(l=t.ctx,h=f,u=t._pointLabels[d],u=(0,i.b)(u)?u:[u],{w:(0,i.aI)(l,h.string,u),h:u.length*h.lineHeight});s[d]=g;const m=(0,i.aw)(t.getIndexAngle(d)+c),b=Math.round((0,i.R)(m));Ln(n,e,m,Tn(b,p.x,g.w,0,180),Tn(b,p.y,g.h,90,270))}var l,h,u;t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=function(t,e,n){const s=[],o=t._pointLabels.length,r=t.options,a=An(r)/2,c=t.drawingArea,l=r.pointLabels.centerPointLabels?i.P/o:0;for(let r=0;r<o;r++){const o=t.getPointPosition(r,c+a+n[r],l),h=Math.round((0,i.R)((0,i.aw)(o.angle+i.H))),u=e[r],d=In(o.y,u.h,h),p=Rn(h),f=zn(o.x,u.w,p);s.push({x:o.x,y:d,textAlign:p,left:f,top:d,right:f+u.w,bottom:d+u.h})}return s}(t,s,o)}function Ln(t,e,n,i,s){const o=Math.abs(Math.sin(n)),r=Math.abs(Math.cos(n));let a=0,c=0;i.start<e.l?(a=(e.l-i.start)/o,t.l=Math.min(t.l,e.l-a)):i.end>e.r&&(a=(i.end-e.r)/o,t.r=Math.max(t.r,e.r+a)),s.start<e.t?(c=(e.t-s.start)/r,t.t=Math.min(t.t,e.t-c)):s.end>e.b&&(c=(s.end-e.b)/r,t.b=Math.max(t.b,e.b+c))}function Rn(t){return 0===t||180===t?"center":t<180?"left":"right"}function zn(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function In(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}function Fn(t,e,n,s){const{ctx:o}=t;if(n)o.arc(t.xCenter,t.yCenter,e,0,i.T);else{let n=t.getPointPosition(0,e);o.moveTo(n.x,n.y);for(let i=1;i<s;i++)n=t.getPointPosition(i,e),o.lineTo(n.x,n.y)}}Dn.id="logarithmic",Dn.defaults={ticks:{callback:Et.formatters.logarithmic,major:{enabled:!0}}};class Vn extends Pn{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=(0,i.C)(An(this.options)/2),e=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(e,n)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=(0,i.g)(t)&&!isNaN(t)?t:0,this.max=(0,i.g)(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/An(this.options))}generateTickLabels(t){Pn.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const n=(0,i.O)(this.options.pointLabels.callback,[t,e],this);return n||0===n?n:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?Nn(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,n,i){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,i))}getIndexAngle(t){const e=i.T/(this._pointLabels.length||1),n=this.options.startAngle||0;return(0,i.aw)(t*e+(0,i.t)(n))}getDistanceFromCenterForValue(t){if((0,i.k)(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if((0,i.k)(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const n=e[t];return function(t,e,n){return(0,i.h)(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}getPointPosition(t,e,n=0){const s=this.getIndexAngle(t)-i.H+n;return{x:Math.cos(s)*e+this.xCenter,y:Math.sin(s)*e+this.yCenter,angle:s}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:n,right:i,bottom:s}=this._pointLabelItems[t];return{left:e,top:n,right:i,bottom:s}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const n=this.ctx;n.save(),n.beginPath(),Fn(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),n.closePath(),n.fillStyle=t,n.fill(),n.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:n,grid:s}=e,o=this._pointLabels.length;let r,a,c;if(e.pointLabels.display&&function(t,e){const{ctx:n,options:{pointLabels:s}}=t;for(let o=e-1;o>=0;o--){const e=s.setContext(t.getPointLabelContext(o)),r=(0,i.Z)(e.font),{x:a,y:c,textAlign:l,left:h,top:u,right:d,bottom:p}=t._pointLabelItems[o],{backdropColor:f}=e;if(!(0,i.k)(f)){const t=(0,i.C)(e.backdropPadding);n.fillStyle=f,n.fillRect(h-t.left,u-t.top,d-h+t.width,p-u+t.height)}(0,i.X)(n,t._pointLabels[o],a,c+r.lineHeight/2,r,{color:e.color,textAlign:l,textBaseline:"middle"})}}(this,o),s.display&&this.ticks.forEach(((t,e)=>{if(0!==e){a=this.getDistanceFromCenterForValue(t.value);!function(t,e,n,i){const s=t.ctx,o=e.circular,{color:r,lineWidth:a}=e;!o&&!i||!r||!a||n<0||(s.save(),s.strokeStyle=r,s.lineWidth=a,s.setLineDash(e.borderDash),s.lineDashOffset=e.borderDashOffset,s.beginPath(),Fn(t,n,o,i),s.closePath(),s.stroke(),s.restore())}(this,s.setContext(this.getContext(e-1)),a,o)}})),n.display){for(t.save(),r=o-1;r>=0;r--){const i=n.setContext(this.getPointLabelContext(r)),{color:s,lineWidth:o}=i;o&&s&&(t.lineWidth=o,t.strokeStyle=s,t.setLineDash(i.borderDash),t.lineDashOffset=i.borderDashOffset,a=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),c=this.getPointPosition(r,a),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const s=this.getIndexAngle(0);let o,r;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(s),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((s,a)=>{if(0===a&&!e.reverse)return;const c=n.setContext(this.getContext(a)),l=(0,i.Z)(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[a].value),c.showLabelBackdrop){t.font=l.string,r=t.measureText(s.label).width,t.fillStyle=c.backdropColor;const e=(0,i.C)(c.backdropPadding);t.fillRect(-r/2-e.left,-o-l.size/2-e.top,r+e.width,l.size+e.height)}(0,i.X)(t,s.label,0,-o,l,{color:c.color})})),t.restore()}drawTitle(){}}Vn.id="radialLinear",Vn.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Et.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},Vn.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Vn.descriptors={angleLines:{_fallback:"grid"}};const Bn={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Hn=Object.keys(Bn);function Wn(t,e){return t-e}function $n(t,e){if((0,i.k)(e))return null;const n=t._adapter,{parser:s,round:o,isoWeekday:r}=t._parseOpts;let a=e;return"function"==typeof s&&(a=s(a)),(0,i.g)(a)||(a="string"==typeof s?n.parse(a,s):n.parse(a)),null===a?null:(o&&(a="week"!==o||!(0,i.q)(r)&&!0!==r?n.startOf(a,o):n.startOf(a,"isoWeek",r)),+a)}function Zn(t,e,n,i){const s=Hn.length;for(let o=Hn.indexOf(t);o<s-1;++o){const t=Bn[Hn[o]],s=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(s*t.size))<=i)return Hn[o]}return Hn[s-1]}function Un(t,e,n){if(n){if(n.length){const{lo:s,hi:o}=(0,i.aK)(n,e);t[n[s]>=e?n[s]:n[o]]=!0}}else t[e]=!0}function Yn(t,e,n){const i=[],s={},o=e.length;let r,a;for(r=0;r<o;++r)a=e[r],s[a]=r,i.push({value:a,major:!1});return 0!==o&&n?function(t,e,n,i){const s=t._adapter,o=+s.startOf(e[0].value,i),r=e[e.length-1].value;let a,c;for(a=o;a<=r;a=+s.add(a,1,i))c=n[a],c>=0&&(e[c].major=!0);return e}(t,i,s,n):i}class Jn extends Rt{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){const n=t.time||(t.time={}),s=this._adapter=new B._date(t.adapters.date);(0,i.a9)(n.displayFormats,s.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:$n(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:s,max:o,minDefined:r,maxDefined:a}=this.getUserBounds();function c(t){r||isNaN(t.min)||(s=Math.min(s,t.min)),a||isNaN(t.max)||(o=Math.max(o,t.max))}r&&a||(c(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||c(this.getMinMax(!1))),s=(0,i.g)(s)&&!isNaN(s)?s:+e.startOf(Date.now(),n),o=(0,i.g)(o)&&!isNaN(o)?o:+e.endOf(Date.now(),n)+1,this.min=Math.min(s,o-1),this.max=Math.max(s+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,s="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const o=this.min,r=this.max,a=(0,i.aJ)(s,o,r);return this._unit=e.unit||(n.autoSkip?Zn(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(t,e,n,i,s){for(let o=Hn.length-1;o>=Hn.indexOf(n);o--){const n=Hn[o];if(Bn[n].common&&t._adapter.diff(s,i,n)>=e-1)return n}return Hn[n?Hn.indexOf(n):0]}(this,a.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(let e=Hn.indexOf(t)+1,n=Hn.length;e<n;++e)if(Bn[Hn[e]].common)return Hn[e]}(this._unit):void 0,this.initOffsets(s),t.reverse&&a.reverse(),Yn(this,a,this._majorUnit)}initOffsets(t){let e,n,s=0,o=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),s=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,n=this.getDecimalForValue(t[t.length-1]),o=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;s=(0,i.w)(s,0,r),o=(0,i.w)(o,0,r),this._offsets={start:s,end:o,factor:1/(s+1+o)}}_generate(){const t=this._adapter,e=this.min,n=this.max,s=this.options,o=s.time,r=o.unit||Zn(o.minUnit,e,n,this._getLabelCapacity(e)),a=(0,i.v)(o.stepSize,1),c="week"===r&&o.isoWeekday,l=(0,i.q)(c)||!0===c,h={};let u,d,p=e;if(l&&(p=+t.startOf(p,"isoWeek",c)),p=+t.startOf(p,l?"day":r),t.diff(n,e,r)>1e5*a)throw new Error(e+" and "+n+" are too far apart with stepSize of "+a+" "+r);const f="data"===s.ticks.source&&this.getDataTimestamps();for(u=p,d=0;u<n;u=+t.add(u,a,r),d++)Un(h,u,f);return u!==n&&"ticks"!==s.bounds&&1!==d||Un(h,u,f),Object.keys(h).sort(((t,e)=>t-e)).map((t=>+t))}getLabelForValue(t){const e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}_tickFormatFunction(t,e,n,s){const o=this.options,r=o.time.displayFormats,a=this._unit,c=this._majorUnit,l=a&&r[a],h=c&&r[c],u=n[e],d=c&&h&&u&&u.major,p=this._adapter.format(t,s||(d?h:l)),f=o.ticks.callback;return f?(0,i.O)(f,[p,e,n],this):p}generateTickLabels(t){let e,n,i;for(e=0,n=t.length;e<n;++e)i=t[e],i.label=this._tickFormatFunction(i.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,n=this.ctx.measureText(t).width,s=(0,i.t)(this.isHorizontal()?e.maxRotation:e.minRotation),o=Math.cos(s),r=Math.sin(s),a=this._resolveTickFontOptions(0).size;return{w:n*o+a*r,h:n*r+a*o}}_getLabelCapacity(t){const e=this.options.time,n=e.displayFormats,i=n[e.unit]||n.millisecond,s=this._tickFormatFunction(t,0,Yn(this,[t],this._majorUnit),i),o=this._getLabelSize(s),r=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return r>0?r:1}getDataTimestamps(){let t,e,n=this._cache.data||[];if(n.length)return n;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(t=0,e=i.length;t<e;++t)n=n.concat(i[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const t=this._cache.labels||[];let e,n;if(t.length)return t;const i=this.getLabels();for(e=0,n=i.length;e<n;++e)t.push($n(this,i[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return(0,i._)(t.sort(Wn))}}function Gn(t,e,n){let s,o,r,a,c=0,l=t.length-1;n?(e>=t[c].pos&&e<=t[l].pos&&({lo:c,hi:l}=(0,i.x)(t,"pos",e)),({pos:s,time:r}=t[c]),({pos:o,time:a}=t[l])):(e>=t[c].time&&e<=t[l].time&&({lo:c,hi:l}=(0,i.x)(t,"time",e)),({time:s,pos:r}=t[c]),({time:o,pos:a}=t[l]));const h=o-s;return h?r+(a-r)*(e-s)/h:r}Jn.id="time",Jn.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class Xn extends Jn{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Gn(e,this.min),this._tableRange=Gn(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,i=[],s=[];let o,r,a,c,l;for(o=0,r=t.length;o<r;++o)c=t[o],c>=e&&c<=n&&i.push(c);if(i.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(o=0,r=i.length;o<r;++o)l=i[o+1],a=i[o-1],c=i[o],Math.round((l+a)/2)!==c&&s.push({time:c,pos:o/(r-1)});return s}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t,t}getDecimalForValue(t){return(Gn(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return Gn(this._table,n*this._tableRange+this._minPos,!0)}}Xn.id="timeseries",Xn.defaults=Jn.defaults;const qn=[I,Le,Sn,Object.freeze({__proto__:null,CategoryScale:Cn,LinearScale:On,LogarithmicScale:Dn,RadialLinearScale:Vn,TimeScale:Jn,TimeSeriesScale:Xn})]},7202:function(t,e,n){"use strict";n.d(e,{$:function(){return r},A:function(){return Se},B:function(){return tt},C:function(){return be},D:function(){return y},E:function(){return on},F:function(){return qe},G:function(){return cn},H:function(){return V},I:function(){return s},J:function(){return an},K:function(){return Xe},L:function(){return W},M:function(){return U},N:function(){return g},O:function(){return v},P:function(){return L},Q:function(){return ye},R:function(){return K},S:function(){return Kt},T:function(){return R},U:function(){return rt},V:function(){return te},W:function(){return se},X:function(){return ce},Y:function(){return oe},Z:function(){return xe},_:function(){return Oe},a:function(){return ve},a0:function(){return a},a1:function(){return Yt},a2:function(){return M},a3:function(){return j},a4:function(){return Jt},a5:function(){return A},a6:function(){return De},a7:function(){return je},a8:function(){return Ae},a9:function(){return C},aA:function(){return mn},aB:function(){return l},aC:function(){return et},aD:function(){return X},aE:function(){return Z},aF:function(){return G},aG:function(){return J},aH:function(){return Q},aI:function(){return Qt},aJ:function(){return Me},aK:function(){return ke},aa:function(){return h},ab:function(){return o},ac:function(){return rn},ad:function(){return ee},ae:function(){return T},af:function(){return _},ag:function(){return N},ah:function(){return at},ai:function(){return fe},aj:function(){return Ge},ak:function(){return kn},al:function(){return yn},am:function(){return hn},an:function(){return un},ao:function(){return ln},ap:function(){return re},aq:function(){return ae},ar:function(){return ne},as:function(){return he},at:function(){return ge},au:function(){return me},av:function(){return vn},aw:function(){return it},ax:function(){return fn},ay:function(){return gn},az:function(){return c},b:function(){return d},c:function(){return Zt},d:function(){return qt},e:function(){return ut},f:function(){return O},g:function(){return f},h:function(){return _e},i:function(){return p},j:function(){return D},k:function(){return u},l:function(){return Ee},m:function(){return b},n:function(){return x},o:function(){return pn},p:function(){return st},q:function(){return Y},r:function(){return i},s:function(){return $},t:function(){return q},u:function(){return Pe},v:function(){return m},w:function(){return ot},x:function(){return we},y:function(){return nn},z:function(){return ie}});const i="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function s(t,e,n){const s=n||(t=>Array.prototype.slice.call(t));let o=!1,r=[];return function(...n){r=s(n),o||(o=!0,i.call(window,(()=>{o=!1,t.apply(e,r)})))}}function o(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}const r=t=>"start"===t?"left":"end"===t?"right":"center",a=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2,c=(t,e,n,i)=>t===(i?"left":"right")?n:"center"===t?(e+n)/2:e;function l(){}const h=function(){let t=0;return function(){return t++}}();function u(t){return null==t}function d(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.substr(0,7)&&"Array]"===e.substr(-6)}function p(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const f=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function g(t,e){return f(t)?t:e}function m(t,e){return void 0===t?e:t}const b=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:t/e,x=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function v(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function y(t,e,n,i){let s,o,r;if(d(t))if(o=t.length,i)for(s=o-1;s>=0;s--)e.call(n,t[s],s);else for(s=0;s<o;s++)e.call(n,t[s],s);else if(p(t))for(r=Object.keys(t),o=r.length,s=0;s<o;s++)e.call(n,t[r[s]],r[s])}function _(t,e){let n,i,s,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(s=t[n],o=e[n],s.datasetIndex!==o.datasetIndex||s.index!==o.index)return!1;return!0}function k(t){if(d(t))return t.map(k);if(p(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let s=0;for(;s<i;++s)e[n[s]]=k(t[n[s]]);return e}return t}function w(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function S(t,e,n,i){if(!w(t))return;const s=e[t],o=n[t];p(s)&&p(o)?M(s,o,i):e[t]=k(o)}function M(t,e,n){const i=d(e)?e:[e],s=i.length;if(!p(t))return t;const o=(n=n||{}).merger||S;for(let r=0;r<s;++r){if(!p(e=i[r]))continue;const s=Object.keys(e);for(let i=0,r=s.length;i<r;++i)o(s[i],t,e,n)}return t}function C(t,e){return M(t,e,{merger:E})}function E(t,e,n){if(!w(t))return;const i=e[t],s=n[t];p(i)&&p(s)?C(i,s):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=k(s))}function P(t,e){const n=t.indexOf(".",e);return-1===n?t.length:n}function O(t,e){if(""===e)return t;let n=0,i=P(e,n);for(;t&&i>n;)t=t[e.substr(n,i-n)],n=i+1,i=P(e,n);return t}function j(t){return t.charAt(0).toUpperCase()+t.slice(1)}const D=t=>void 0!==t,A=t=>"function"==typeof t,T=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function N(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}const L=Math.PI,R=2*L,z=R+L,I=Number.POSITIVE_INFINITY,F=L/180,V=L/2,B=L/4,H=2*L/3,W=Math.log10,$=Math.sign;function Z(t){const e=Math.round(t);t=J(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(W(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function U(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i==0&&(e.push(i),e.push(t/i));return n===(0|n)&&e.push(n),e.sort(((t,e)=>t-e)).pop(),e}function Y(t){return!isNaN(parseFloat(t))&&isFinite(t)}function J(t,e,n){return Math.abs(t-e)<n}function G(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function X(t,e,n){let i,s,o;for(i=0,s=t.length;i<s;i++)o=t[i][n],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function q(t){return t*(L/180)}function K(t){return t*(180/L)}function Q(t){if(!f(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function tt(t,e){const n=e.x-t.x,i=e.y-t.y,s=Math.sqrt(n*n+i*i);let o=Math.atan2(i,n);return o<-.5*L&&(o+=R),{angle:o,distance:s}}function et(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function nt(t,e){return(t-e+z)%R-L}function it(t){return(t%R+R)%R}function st(t,e,n,i){const s=it(t),o=it(e),r=it(n),a=it(o-s),c=it(r-s),l=it(s-o),h=it(s-r);return s===o||s===r||i&&o===r||a>c&&l<h}function ot(t,e,n){return Math.max(e,Math.min(n,t))}function rt(t){return ot(t,-32768,32767)}function at(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}const ct=t=>0===t||1===t,lt=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*R/n),ht=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*R/n)+1,ut={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*V),easeOutSine:t=>Math.sin(t*V),easeInOutSine:t=>-.5*(Math.cos(L*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>ct(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>ct(t)?t:lt(t,.075,.3),easeOutElastic:t=>ct(t)?t:ht(t,.075,.3),easeInOutElastic(t){const e=.1125;return ct(t)?t:t<.5?.5*lt(2*t,e,.45):.5+.5*ht(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-ut.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*ut.easeInBounce(2*t):.5*ut.easeOutBounce(2*t-1)+.5},dt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},pt="0123456789ABCDEF",ft=t=>pt[15&t],gt=t=>pt[(240&t)>>4]+pt[15&t],mt=t=>(240&t)>>4==(15&t);function bt(t){var e=function(t){return mt(t.r)&&mt(t.g)&&mt(t.b)&&mt(t.a)}(t)?ft:gt;return t?"#"+e(t.r)+e(t.g)+e(t.b)+(t.a<255?e(t.a):""):t}function xt(t){return t+.5|0}const vt=(t,e,n)=>Math.max(Math.min(t,n),e);function yt(t){return vt(xt(2.55*t),0,255)}function _t(t){return vt(xt(255*t),0,255)}function kt(t){return vt(xt(t/2.55)/100,0,1)}function wt(t){return vt(xt(100*t),0,100)}const St=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Mt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Ct(t,e,n){const i=e*Math.min(n,1-n),s=(e,s=(e+t/30)%12)=>n-i*Math.max(Math.min(s-3,9-s,1),-1);return[s(0),s(8),s(4)]}function Et(t,e,n){const i=(i,s=(i+t/60)%6)=>n-n*e*Math.max(Math.min(s,4-s,1),0);return[i(5),i(3),i(1)]}function Pt(t,e,n){const i=Ct(t,1,.5);let s;for(e+n>1&&(s=1/(e+n),e*=s,n*=s),s=0;s<3;s++)i[s]*=1-e-n,i[s]+=e;return i}function Ot(t){const e=t.r/255,n=t.g/255,i=t.b/255,s=Math.max(e,n,i),o=Math.min(e,n,i),r=(s+o)/2;let a,c,l;return s!==o&&(l=s-o,c=r>.5?l/(2-s-o):l/(s+o),a=s===e?(n-i)/l+(n<i?6:0):s===n?(i-e)/l+2:(e-n)/l+4,a=60*a+.5),[0|a,c||0,r]}function jt(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(_t)}function Dt(t,e,n){return jt(Ct,t,e,n)}function At(t){return(t%360+360)%360}function Tt(t){const e=Mt.exec(t);let n,i=255;if(!e)return;e[5]!==n&&(i=e[6]?yt(+e[5]):_t(+e[5]));const s=At(+e[2]),o=+e[3]/100,r=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return jt(Pt,t,e,n)}(s,o,r):"hsv"===e[1]?function(t,e,n){return jt(Et,t,e,n)}(s,o,r):Dt(s,o,r),{r:n[0],g:n[1],b:n[2],a:i}}const Nt={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Lt={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let Rt;function zt(t){Rt||(Rt=function(){const t={},e=Object.keys(Lt),n=Object.keys(Nt);let i,s,o,r,a;for(i=0;i<e.length;i++){for(r=a=e[i],s=0;s<n.length;s++)o=n[s],a=a.replace(o,Nt[o]);o=parseInt(Lt[r],16),t[a]=[o>>16&255,o>>8&255,255&o]}return t}(),Rt.transparent=[0,0,0,0]);const e=Rt[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}function It(t,e,n){if(t){let i=Ot(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,0===e?360:1)),i=Dt(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function Ft(t,e){return t?Object.assign(e||{},t):t}function Vt(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=_t(t[3]))):(e=Ft(t,{r:0,g:0,b:0,a:1})).a=_t(e.a),e}function Bt(t){return"r"===t.charAt(0)?function(t){const e=St.exec(t);let n,i,s,o=255;if(e){if(e[7]!==n){const t=+e[7];o=255&(e[8]?yt(t):255*t)}return n=+e[1],i=+e[3],s=+e[5],n=255&(e[2]?yt(n):n),i=255&(e[4]?yt(i):i),s=255&(e[6]?yt(s):s),{r:n,g:i,b:s,a:o}}}(t):Tt(t)}class Ht{constructor(t){if(t instanceof Ht)return t;const e=typeof t;let n;var i,s,o;"object"===e?n=Vt(t):"string"===e&&(o=(i=t).length,"#"===i[0]&&(4===o||5===o?s={r:255&17*dt[i[1]],g:255&17*dt[i[2]],b:255&17*dt[i[3]],a:5===o?17*dt[i[4]]:255}:7!==o&&9!==o||(s={r:dt[i[1]]<<4|dt[i[2]],g:dt[i[3]]<<4|dt[i[4]],b:dt[i[5]]<<4|dt[i[6]],a:9===o?dt[i[7]]<<4|dt[i[8]]:255})),n=s||zt(t)||Bt(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=Ft(this._rgb);return t&&(t.a=kt(t.a)),t}set rgb(t){this._rgb=Vt(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${kt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):this._rgb;var t}hexString(){return this._valid?bt(this._rgb):this._rgb}hslString(){return this._valid?function(t){if(!t)return;const e=Ot(t),n=e[0],i=wt(e[1]),s=wt(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${s}%, ${kt(t.a)})`:`hsl(${n}, ${i}%, ${s}%)`}(this._rgb):this._rgb}mix(t,e){const n=this;if(t){const i=n.rgb,s=t.rgb;let o;const r=e===o?.5:e,a=2*r-1,c=i.a-s.a,l=((a*c==-1?a:(a+c)/(1+a*c))+1)/2;o=1-l,i.r=255&l*i.r+o*s.r+.5,i.g=255&l*i.g+o*s.g+.5,i.b=255&l*i.b+o*s.b+.5,i.a=r*i.a+(1-r)*s.a,n.rgb=i}return n}clone(){return new Ht(this.rgb)}alpha(t){return this._rgb.a=_t(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=xt(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return It(this._rgb,2,t),this}darken(t){return It(this._rgb,2,-t),this}saturate(t){return It(this._rgb,1,t),this}desaturate(t){return It(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=Ot(t);n[0]=At(n[0]+e),n=Dt(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function Wt(t){return new Ht(t)}const $t=t=>t instanceof CanvasGradient||t instanceof CanvasPattern;function Zt(t){return $t(t)?t:Wt(t)}function Ut(t){return $t(t)?t:Wt(t).saturate(.5).darken(.1).hexString()}const Yt=Object.create(null),Jt=Object.create(null);function Gt(t,e){if(!e)return t;const n=e.split(".");for(let e=0,i=n.length;e<i;++e){const i=n[e];t=t[i]||(t[i]=Object.create(null))}return t}function Xt(t,e,n){return"string"==typeof e?M(Gt(t,e),n):M(Gt(t,""),e)}var qt=new class{constructor(t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>Ut(e.backgroundColor),this.hoverBorderColor=(t,e)=>Ut(e.borderColor),this.hoverColor=(t,e)=>Ut(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return Xt(this,t,e)}get(t){return Gt(this,t)}describe(t,e){return Xt(Jt,t,e)}override(t,e){return Xt(Yt,t,e)}route(t,e,n,i){const s=Gt(this,t),o=Gt(this,n),r="_"+e;Object.defineProperties(s,{[r]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[r],e=o[i];return p(t)?Object.assign({},e,t):m(t,e)},set(t){this[r]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Kt(t,e,n,i,s){let o=e[s];return o||(o=e[s]=t.measureText(s).width,n.push(s)),o>i&&(i=o),i}function Qt(t,e,n,i){let s=(i=i||{}).data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(s=i.data={},o=i.garbageCollect=[],i.font=e),t.save(),t.font=e;let r=0;const a=n.length;let c,l,h,u,p;for(c=0;c<a;c++)if(u=n[c],null!=u&&!0!==d(u))r=Kt(t,s,o,r,u);else if(d(u))for(l=0,h=u.length;l<h;l++)p=u[l],null==p||d(p)||(r=Kt(t,s,o,r,p));t.restore();const f=o.length/2;if(f>n.length){for(c=0;c<f;c++)delete s[o[c]];o.splice(0,f)}return r}function te(t,e,n){const i=t.currentDevicePixelRatio,s=0!==n?Math.max(n/2,.5):0;return Math.round((e-s)*i)/i+s}function ee(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function ne(t,e,n,i){let s,o,r,a,c;const l=e.pointStyle,h=e.rotation,u=e.radius;let d=(h||0)*F;if(l&&"object"==typeof l&&(s=l.toString(),"[object HTMLImageElement]"===s||"[object HTMLCanvasElement]"===s))return t.save(),t.translate(n,i),t.rotate(d),t.drawImage(l,-l.width/2,-l.height/2,l.width,l.height),void t.restore();if(!(isNaN(u)||u<=0)){switch(t.beginPath(),l){default:t.arc(n,i,u,0,R),t.closePath();break;case"triangle":t.moveTo(n+Math.sin(d)*u,i-Math.cos(d)*u),d+=H,t.lineTo(n+Math.sin(d)*u,i-Math.cos(d)*u),d+=H,t.lineTo(n+Math.sin(d)*u,i-Math.cos(d)*u),t.closePath();break;case"rectRounded":c=.516*u,a=u-c,o=Math.cos(d+B)*a,r=Math.sin(d+B)*a,t.arc(n-o,i-r,c,d-L,d-V),t.arc(n+r,i-o,c,d-V,d),t.arc(n+o,i+r,c,d,d+V),t.arc(n-r,i+o,c,d+V,d+L),t.closePath();break;case"rect":if(!h){a=Math.SQRT1_2*u,t.rect(n-a,i-a,2*a,2*a);break}d+=B;case"rectRot":o=Math.cos(d)*u,r=Math.sin(d)*u,t.moveTo(n-o,i-r),t.lineTo(n+r,i-o),t.lineTo(n+o,i+r),t.lineTo(n-r,i+o),t.closePath();break;case"crossRot":d+=B;case"cross":o=Math.cos(d)*u,r=Math.sin(d)*u,t.moveTo(n-o,i-r),t.lineTo(n+o,i+r),t.moveTo(n+r,i-o),t.lineTo(n-r,i+o);break;case"star":o=Math.cos(d)*u,r=Math.sin(d)*u,t.moveTo(n-o,i-r),t.lineTo(n+o,i+r),t.moveTo(n+r,i-o),t.lineTo(n-r,i+o),d+=B,o=Math.cos(d)*u,r=Math.sin(d)*u,t.moveTo(n-o,i-r),t.lineTo(n+o,i+r),t.moveTo(n+r,i-o),t.lineTo(n-r,i+o);break;case"line":o=Math.cos(d)*u,r=Math.sin(d)*u,t.moveTo(n-o,i-r),t.lineTo(n+o,i+r);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(d)*u,i+Math.sin(d)*u)}t.fill(),e.borderWidth>0&&t.stroke()}}function ie(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function se(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function oe(t){t.restore()}function re(t,e,n,i,s){if(!e)return t.lineTo(n.x,n.y);if("middle"===s){const i=(e.x+n.x)/2;t.lineTo(i,e.y),t.lineTo(i,n.y)}else"after"===s!=!!i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function ae(t,e,n,i){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(i?e.cp1x:e.cp2x,i?e.cp1y:e.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function ce(t,e,n,i,s,o={}){const r=d(e)?e:[e],a=o.strokeWidth>0&&""!==o.strokeColor;let c,l;for(t.save(),t.font=s.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);u(e.rotation)||t.rotate(e.rotation);e.color&&(t.fillStyle=e.color);e.textAlign&&(t.textAlign=e.textAlign);e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,o),c=0;c<r.length;++c)l=r[c],a&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),u(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(l,n,i,o.maxWidth)),t.fillText(l,n,i,o.maxWidth),le(t,n,i,l,o),i+=s.lineHeight;t.restore()}function le(t,e,n,i,s){if(s.strikethrough||s.underline){const o=t.measureText(i),r=e-o.actualBoundingBoxLeft,a=e+o.actualBoundingBoxRight,c=n-o.actualBoundingBoxAscent,l=n+o.actualBoundingBoxDescent,h=s.strikethrough?(c+l)/2:l;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=s.decorationWidth||2,t.moveTo(r,h),t.lineTo(a,h),t.stroke()}}function he(t,e){const{x:n,y:i,w:s,h:o,radius:r}=e;t.arc(n+r.topLeft,i+r.topLeft,r.topLeft,-V,L,!0),t.lineTo(n,i+o-r.bottomLeft),t.arc(n+r.bottomLeft,i+o-r.bottomLeft,r.bottomLeft,L,V,!0),t.lineTo(n+s-r.bottomRight,i+o),t.arc(n+s-r.bottomRight,i+o-r.bottomRight,r.bottomRight,V,0,!0),t.lineTo(n+s,i+r.topRight),t.arc(n+s-r.topRight,i+r.topRight,r.topRight,0,-V,!0),t.lineTo(n+r.topLeft,i)}const ue=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),de=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function pe(t,e){const n=(""+t).match(ue);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}function fe(t,e){const n={},i=p(e),s=i?Object.keys(e):e,o=p(t)?i?n=>m(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of s)n[t]=+o(t)||0;return n}function ge(t){return fe(t,{top:"y",right:"x",bottom:"y",left:"x"})}function me(t){return fe(t,["topLeft","topRight","bottomLeft","bottomRight"])}function be(t){const e=ge(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function xe(t,e){t=t||{},e=e||qt.font;let n=m(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let i=m(t.style,e.style);i&&!(""+i).match(de)&&(console.warn('Invalid font style specified: "'+i+'"'),i="");const s={family:m(t.family,e.family),lineHeight:pe(m(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:m(t.weight,e.weight),string:""};return s.string=function(t){return!t||u(t.size)||u(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(s),s}function ve(t,e,n,i){let s,o,r,a=!0;for(s=0,o=t.length;s<o;++s)if(r=t[s],void 0!==r&&(void 0!==e&&"function"==typeof r&&(r=r(e),a=!1),void 0!==n&&d(r)&&(r=r[n%r.length],a=!1),void 0!==r))return i&&!a&&(i.cacheable=!1),r}function ye(t,e,n){const{min:i,max:s}=t,o=x(e,(s-i)/2),r=(t,e)=>n&&0===t?0:t+e;return{min:r(i,-Math.abs(o)),max:r(s,o)}}function _e(t,e){return Object.assign(Object.create(t),e)}function ke(t,e,n){n=n||(n=>t[n]<e);let i,s=t.length-1,o=0;for(;s-o>1;)i=o+s>>1,n(i)?o=i:s=i;return{lo:o,hi:s}}const we=(t,e,n)=>ke(t,n,(i=>t[i][e]<n)),Se=(t,e,n)=>ke(t,n,(i=>t[i][e]>=n));function Me(t,e,n){let i=0,s=t.length;for(;i<s&&t[i]<e;)i++;for(;s>i&&t[s-1]>n;)s--;return i>0||s<t.length?t.slice(i,s):t}const Ce=["push","pop","shift","splice","unshift"];function Ee(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),Ce.forEach((e=>{const n="_onData"+j(e),i=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const s=i.apply(this,e);return t._chartjs.listeners.forEach((t=>{"function"==typeof t[n]&&t[n](...e)})),s}})})))}function Pe(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,s=i.indexOf(e);-1!==s&&i.splice(s,1),i.length>0||(Ce.forEach((e=>{delete t[e]})),delete t._chartjs)}function Oe(t){const e=new Set;let n,i;for(n=0,i=t.length;n<i;++n)e.add(t[n]);return e.size===i?t:Array.from(e)}function je(t,e=[""],n=t,i,s=(()=>t[0])){D(i)||(i=Be("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:i,_getTarget:s,override:s=>je([s,...t],e,n,i)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,i)=>Le(n,i,(()=>function(t,e,n,i){let s;for(const o of e)if(s=Be(Te(o,t),n),D(s))return Ne(t,s)?Fe(n,i,t,s):s}(i,e,t,n))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>He(t).includes(e),ownKeys:t=>He(t),set(t,e,n){const i=t._storage||(t._storage=s());return t[e]=i[e]=n,delete t._keys,!0}})}function De(t,e,n,i){const s={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Ae(t,i),setContext:e=>De(t,e,n,i),override:s=>De(t.override(s),e,n,i)};return new Proxy(s,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>Le(t,e,(()=>function(t,e,n){const{_proxy:i,_context:s,_subProxy:o,_descriptors:r}=t;let a=i[e];A(a)&&r.isScriptable(e)&&(a=function(t,e,n,i){const{_proxy:s,_context:o,_subProxy:r,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t),e=e(o,r||i),a.delete(t),Ne(t,e)&&(e=Fe(s._scopes,s,t,e));return e}(e,a,t,n));d(a)&&a.length&&(a=function(t,e,n,i){const{_proxy:s,_context:o,_subProxy:r,_descriptors:a}=n;if(D(o.index)&&i(t))e=e[o.index%e.length];else if(p(e[0])){const n=e,i=s._scopes.filter((t=>t!==n));e=[];for(const c of n){const n=Fe(i,s,t,c);e.push(De(n,o,r&&r[t],a))}}return e}(e,a,t,r.isIndexable));Ne(e,a)&&(a=De(a,s,o&&o[e],r));return a}(t,e,n))),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,i)=>(t[n]=i,delete e[n],!0)})}function Ae(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:s=e.allKeys}=t;return{allKeys:s,scriptable:n,indexable:i,isScriptable:A(n)?n:()=>n,isIndexable:A(i)?i:()=>i}}const Te=(t,e)=>t?t+j(e):e,Ne=(t,e)=>p(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Le(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const i=n();return t[e]=i,i}function Re(t,e,n){return A(t)?t(e,n):t}const ze=(t,e)=>!0===t?e:"string"==typeof t?O(e,t):void 0;function Ie(t,e,n,i,s){for(const o of e){const e=ze(n,o);if(e){t.add(e);const o=Re(e._fallback,n,s);if(D(o)&&o!==n&&o!==i)return o}else if(!1===e&&D(i)&&n!==i)return null}return!1}function Fe(t,e,n,i){const s=e._rootScopes,o=Re(e._fallback,n,i),r=[...t,...s],a=new Set;a.add(i);let c=Ve(a,r,n,o||n,i);return null!==c&&((!D(o)||o===n||(c=Ve(a,r,o,c,i),null!==c))&&je(Array.from(a),[""],s,o,(()=>function(t,e,n){const i=t._getTarget();e in i||(i[e]={});const s=i[e];if(d(s)&&p(n))return n;return s}(e,n,i))))}function Ve(t,e,n,i,s){for(;n;)n=Ie(t,e,n,i,s);return n}function Be(t,e){for(const n of e){if(!n)continue;const e=n[t];if(D(e))return e}}function He(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}const We=Number.EPSILON||1e-14,$e=(t,e)=>e<t.length&&!t[e].skip&&t[e],Ze=t=>"x"===t?"y":"x";function Ue(t,e,n,i){const s=t.skip?e:t,o=e,r=n.skip?e:n,a=et(o,s),c=et(r,o);let l=a/(a+c),h=c/(a+c);l=isNaN(l)?0:l,h=isNaN(h)?0:h;const u=i*l,d=i*h;return{previous:{x:o.x-u*(r.x-s.x),y:o.y-u*(r.y-s.y)},next:{x:o.x+d*(r.x-s.x),y:o.y+d*(r.y-s.y)}}}function Ye(t,e="x"){const n=Ze(e),i=t.length,s=Array(i).fill(0),o=Array(i);let r,a,c,l=$e(t,0);for(r=0;r<i;++r)if(a=c,c=l,l=$e(t,r+1),c){if(l){const t=l[e]-c[e];s[r]=0!==t?(l[n]-c[n])/t:0}o[r]=a?l?$(s[r-1])!==$(s[r])?0:(s[r-1]+s[r])/2:s[r-1]:s[r]}!function(t,e,n){const i=t.length;let s,o,r,a,c,l=$e(t,0);for(let h=0;h<i-1;++h)c=l,l=$e(t,h+1),c&&l&&(J(e[h],0,We)?n[h]=n[h+1]=0:(s=n[h]/e[h],o=n[h+1]/e[h],a=Math.pow(s,2)+Math.pow(o,2),a<=9||(r=3/Math.sqrt(a),n[h]=s*r*e[h],n[h+1]=o*r*e[h])))}(t,s,o),function(t,e,n="x"){const i=Ze(n),s=t.length;let o,r,a,c=$e(t,0);for(let l=0;l<s;++l){if(r=a,a=c,c=$e(t,l+1),!a)continue;const s=a[n],h=a[i];r&&(o=(s-r[n])/3,a[`cp1${n}`]=s-o,a[`cp1${i}`]=h-o*e[l]),c&&(o=(c[n]-s)/3,a[`cp2${n}`]=s+o,a[`cp2${i}`]=h+o*e[l])}}(t,o,e)}function Je(t,e,n){return Math.max(Math.min(t,n),e)}function Ge(t,e,n,i,s){let o,r,a,c;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)Ye(t,s);else{let n=i?t[t.length-1]:t[0];for(o=0,r=t.length;o<r;++o)a=t[o],c=Ue(n,a,t[Math.min(o+1,r-(i?0:1))%r],e.tension),a.cp1x=c.previous.x,a.cp1y=c.previous.y,a.cp2x=c.next.x,a.cp2y=c.next.y,n=a}e.capBezierPoints&&function(t,e){let n,i,s,o,r,a=ie(t[0],e);for(n=0,i=t.length;n<i;++n)r=o,o=a,a=n<i-1&&ie(t[n+1],e),o&&(s=t[n],r&&(s.cp1x=Je(s.cp1x,e.left,e.right),s.cp1y=Je(s.cp1y,e.top,e.bottom)),a&&(s.cp2x=Je(s.cp2x,e.left,e.right),s.cp2y=Je(s.cp2y,e.top,e.bottom)))}(t,n)}function Xe(){return"undefined"!=typeof window&&"undefined"!=typeof document}function qe(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function Ke(t,e,n){let i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}const Qe=t=>window.getComputedStyle(t,null);const tn=["top","right","bottom","left"];function en(t,e,n){const i={};n=n?"-"+n:"";for(let s=0;s<4;s++){const o=tn[s];i[o]=parseFloat(t[e+"-"+o+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function nn(t,e){const{canvas:n,currentDevicePixelRatio:i}=e,s=Qe(n),o="border-box"===s.boxSizing,r=en(s,"padding"),a=en(s,"border","width"),{x:c,y:l,box:h}=function(t,e){const n=t.native||t,i=n.touches,s=i&&i.length?i[0]:n,{offsetX:o,offsetY:r}=s;let a,c,l=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(o,r,n.target))a=o,c=r;else{const t=e.getBoundingClientRect();a=s.clientX-t.left,c=s.clientY-t.top,l=!0}return{x:a,y:c,box:l}}(t,n),u=r.left+(h&&a.left),d=r.top+(h&&a.top);let{width:p,height:f}=e;return o&&(p-=r.width+a.width,f-=r.height+a.height),{x:Math.round((c-u)/p*n.width/i),y:Math.round((l-d)/f*n.height/i)}}const sn=t=>Math.round(10*t)/10;function on(t,e,n,i){const s=Qe(t),o=en(s,"margin"),r=Ke(s.maxWidth,t,"clientWidth")||I,a=Ke(s.maxHeight,t,"clientHeight")||I,c=function(t,e,n){let i,s;if(void 0===e||void 0===n){const o=qe(t);if(o){const t=o.getBoundingClientRect(),r=Qe(o),a=en(r,"border","width"),c=en(r,"padding");e=t.width-c.width-a.width,n=t.height-c.height-a.height,i=Ke(r.maxWidth,o,"clientWidth"),s=Ke(r.maxHeight,o,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:i||I,maxHeight:s||I}}(t,e,n);let{width:l,height:h}=c;if("content-box"===s.boxSizing){const t=en(s,"border","width"),e=en(s,"padding");l-=e.width+t.width,h-=e.height+t.height}return l=Math.max(0,l-o.width),h=Math.max(0,i?Math.floor(l/i):h-o.height),l=sn(Math.min(l,r,c.maxWidth)),h=sn(Math.min(h,a,c.maxHeight)),l&&!h&&(h=sn(l/2)),{width:l,height:h}}function rn(t,e,n){const i=e||1,s=Math.floor(t.height*i),o=Math.floor(t.width*i);t.height=s/i,t.width=o/i;const r=t.canvas;return r.style&&(n||!r.style.height&&!r.style.width)&&(r.style.height=`${t.height}px`,r.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||r.height!==s||r.width!==o)&&(t.currentDevicePixelRatio=i,r.height=s,r.width=o,t.ctx.setTransform(i,0,0,i,0,0),!0)}const an=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function cn(t,e){const n=function(t,e){return Qe(t).getPropertyValue(e)}(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function ln(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function hn(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:"middle"===i?n<.5?t.y:e.y:"after"===i?n<1?t.y:e.y:n>0?e.y:t.y}}function un(t,e,n,i){const s={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},r=ln(t,s,n),a=ln(s,o,n),c=ln(o,e,n),l=ln(r,a,n),h=ln(a,c,n);return ln(l,h,n)}const dn=new Map;function pn(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let i=dn.get(n);return i||(i=new Intl.NumberFormat(t,e),dn.set(n,i)),i}(e,n).format(t)}function fn(t,e,n){return t?function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,n):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function gn(t,e){let n,i;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function mn(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function bn(t){return"angle"===t?{between:st,compare:nt,normalize:it}:{between:at,compare:(t,e)=>t-e,normalize:t=>t}}function xn({start:t,end:e,count:n,loop:i,style:s}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n==0,style:s}}function vn(t,e,n){if(!n)return[t];const{property:i,start:s,end:o}=n,r=e.length,{compare:a,between:c,normalize:l}=bn(i),{start:h,end:u,loop:d,style:p}=function(t,e,n){const{property:i,start:s,end:o}=n,{between:r,normalize:a}=bn(i),c=e.length;let l,h,{start:u,end:d,loop:p}=t;if(p){for(u+=c,d+=c,l=0,h=c;l<h&&r(a(e[u%c][i]),s,o);++l)u--,d--;u%=c,d%=c}return d<u&&(d+=c),{start:u,end:d,loop:p,style:t.style}}(t,e,n),f=[];let g,m,b,x=!1,v=null;const y=()=>x||c(s,b,g)&&0!==a(s,b),_=()=>!x||0===a(o,g)||c(o,b,g);for(let t=h,n=h;t<=u;++t)m=e[t%r],m.skip||(g=l(m[i]),g!==b&&(x=c(g,s,o),null===v&&y()&&(v=0===a(g,s)?t:n),null!==v&&_()&&(f.push(xn({start:v,end:t,loop:d,count:r,style:p})),v=null),n=t,b=g));return null!==v&&f.push(xn({start:v,end:u,loop:d,count:r,style:p})),f}function yn(t,e){const n=[],i=t.segments;for(let s=0;s<i.length;s++){const o=vn(i[s],t.points,e);o.length&&n.push(...o)}return n}function kn(t,e){const n=t.points,i=t.options.spanGaps,s=n.length;if(!s)return[];const o=!!t._loop,{start:r,end:a}=function(t,e,n,i){let s=0,o=e-1;if(n&&!i)for(;s<e&&!t[s].skip;)s++;for(;s<e&&t[s].skip;)s++;for(s%=e,n&&(o+=s);o>s&&t[o%e].skip;)o--;return o%=e,{start:s,end:o}}(n,s,o,i);if(!0===i)return wn(t,[{start:r,end:a,loop:o}],n,e);return wn(t,function(t,e,n,i){const s=t.length,o=[];let r,a=e,c=t[e];for(r=e+1;r<=n;++r){const n=t[r%s];n.skip||n.stop?c.skip||(i=!1,o.push({start:e%s,end:(r-1)%s,loop:i}),e=a=n.stop?r:null):(a=r,c.skip&&(e=r)),c=n}return null!==a&&o.push({start:e%s,end:a%s,loop:i}),o}(n,r,a<r?a+s:a,!!t._fullLoop&&0===r&&a===s-1),n,e)}function wn(t,e,n,i){return i&&i.setContext&&n?function(t,e,n,i){const s=t._chart.getContext(),o=Sn(t.options),{_datasetIndex:r,options:{spanGaps:a}}=t,c=n.length,l=[];let h=o,u=e[0].start,d=u;function p(t,e,i,s){const o=a?-1:1;if(t!==e){for(t+=c;n[t%c].skip;)t-=o;for(;n[e%c].skip;)e+=o;t%c!=e%c&&(l.push({start:t%c,end:e%c,loop:i,style:s}),h=s,u=e%c)}}for(const t of e){u=a?u:t.start;let e,o=n[u%c];for(d=u+1;d<=t.end;d++){const a=n[d%c];e=Sn(i.setContext(_e(s,{type:"segment",p0:o,p1:a,p0DataIndex:(d-1)%c,p1DataIndex:d%c,datasetIndex:r}))),Mn(e,h)&&p(u,d-1,t.loop,h),o=a,h=e}u<d-1&&p(u,d-1,t.loop,h)}return l}(t,e,n,i):e}function Sn(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function Mn(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}},9105:function(t,e){var n;!function(){"use strict";var i={}.hasOwnProperty;function s(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var o=typeof n;if("string"===o||"number"===o)t.push(n);else if(Array.isArray(n)){if(n.length){var r=s.apply(null,n);r&&t.push(r)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var a in n)i.call(n,a)&&n[a]&&t.push(a);else t.push(n.toString())}}return t.join(" ")}t.exports?(s.default=s,t.exports=s):void 0===(n=function(){return s}.apply(e,[]))||(t.exports=n)}()},9667:function(t,e,n){e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let i=0,s=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(i++,"%c"===t&&(s=i))})),e.splice(s,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(t){}!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG);return t},e.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||(()=>{}),t.exports=n(342)(e);const{formatters:i}=t.exports;i.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},342:function(t,e,n){t.exports=function(t){function e(t){let n,s,o,r=null;function a(...t){if(!a.enabled)return;const i=a,s=Number(new Date),o=s-(n||s);i.diff=o,i.prev=n,i.curr=s,n=s,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let r=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((n,s)=>{if("%%"===n)return"%";r++;const o=e.formatters[s];if("function"==typeof o){const e=t[r];n=o.call(i,e),t.splice(r,1),r--}return n})),e.formatArgs.call(i,t);(i.log||e.log).apply(i,t)}return a.namespace=t,a.useColors=e.useColors(),a.color=e.selectColor(t),a.extend=i,a.destroy=e.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==r?r:(s!==e.namespaces&&(s=e.namespaces,o=e.enabled(t)),o),set:t=>{r=t}}),"function"==typeof e.init&&e.init(a),a}function i(t,n){const i=e(this.namespace+(void 0===n?":":n)+t);return i.log=this.log,i}function s(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){if(t instanceof Error)return t.stack||t.message;return t},e.disable=function(){const t=[...e.names.map(s),...e.skips.map(s).map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){let n;e.save(t),e.namespaces=t,e.names=[],e.skips=[];const i=("string"==typeof t?t:"").split(/[\s,]+/),s=i.length;for(n=0;n<s;n++)i[n]&&("-"===(t=i[n].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;let n,i;for(n=0,i=e.skips.length;n<i;n++)if(e.skips[n].test(t))return!1;for(n=0,i=e.names.length;n<i;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=n(2002),e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((n=>{e[n]=t[n]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let n=0;for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return e.colors[Math.abs(n)%e.colors.length]},e.enable(e.load()),e}},2312:function(t,e,n){var i=n(3743)(n(2373),"DataView");t.exports=i},3715:function(t,e,n){var i=n(6037),s=n(7609),o=n(9391),r=n(4191),a=n(2721);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}c.prototype.clear=i,c.prototype.delete=s,c.prototype.get=o,c.prototype.has=r,c.prototype.set=a,t.exports=c},6629:function(t,e,n){var i=n(1171),s=n(7838),o=n(4859),r=n(4073),a=n(8541);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}c.prototype.clear=i,c.prototype.delete=s,c.prototype.get=o,c.prototype.has=r,c.prototype.set=a,t.exports=c},1739:function(t,e,n){var i=n(3743)(n(2373),"Map");t.exports=i},503:function(t,e,n){var i=n(3649),s=n(1186),o=n(9713),r=n(1431),a=n(6801);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}c.prototype.clear=i,c.prototype.delete=s,c.prototype.get=o,c.prototype.has=r,c.prototype.set=a,t.exports=c},5305:function(t,e,n){var i=n(3743)(n(2373),"Promise");t.exports=i},7961:function(t,e,n){var i=n(3743)(n(2373),"Set");t.exports=i},8708:function(t,e,n){var i=n(6629),s=n(9453),o=n(5477),r=n(9989),a=n(5450),c=n(1954);function l(t){var e=this.__data__=new i(t);this.size=e.size}l.prototype.clear=s,l.prototype.delete=o,l.prototype.get=r,l.prototype.has=a,l.prototype.set=c,t.exports=l},2596:function(t,e,n){var i=n(2373).Symbol;t.exports=i},9864:function(t,e,n){var i=n(2373).Uint8Array;t.exports=i},1305:function(t,e,n){var i=n(3743)(n(2373),"WeakMap");t.exports=i},6082:function(t){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},6041:function(t){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t}},1970:function(t){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length,s=0,o=[];++n<i;){var r=t[n];e(r,n,t)&&(o[s++]=r)}return o}},9537:function(t,e,n){var i=n(9694),s=n(5075),o=n(163),r=n(4801),a=n(9099),c=n(4289),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),h=!n&&s(t),u=!n&&!h&&r(t),d=!n&&!h&&!u&&c(t),p=n||h||u||d,f=p?i(t.length,String):[],g=f.length;for(var m in t)!e&&!l.call(t,m)||p&&("length"==m||u&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,g))||f.push(m);return f}},8644:function(t){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length,s=Array(i);++n<i;)s[n]=e(t[n],n,t);return s}},9559:function(t){t.exports=function(t,e){for(var n=-1,i=e.length,s=t.length;++n<i;)t[s+n]=e[n];return t}},4132:function(t,e,n){var i=n(8347),s=n(788),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var r=t[e];o.call(t,e)&&s(r,n)&&(void 0!==n||e in t)||i(t,e,n)}},3162:function(t,e,n){var i=n(788);t.exports=function(t,e){for(var n=t.length;n--;)if(i(t[n][0],e))return n;return-1}},7796:function(t,e,n){var i=n(9021),s=n(7747);t.exports=function(t,e){return t&&i(e,s(e),t)}},9214:function(t,e,n){var i=n(9021),s=n(8855);t.exports=function(t,e){return t&&i(e,s(e),t)}},8347:function(t,e,n){var i=n(5525);t.exports=function(t,e,n){"__proto__"==e&&i?i(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},3435:function(t,e,n){var i=n(8708),s=n(6041),o=n(4132),r=n(7796),a=n(9214),c=n(5497),l=n(8181),h=n(6336),u=n(9033),d=n(8143),p=n(7271),f=n(3434),g=n(4530),m=n(8278),b=n(242),x=n(163),v=n(4801),y=n(9440),_=n(7709),k=n(3188),w=n(7747),S=n(8855),M="[object Arguments]",C="[object Function]",E="[object Object]",P={};P[M]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P[E]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P[C]=P["[object WeakMap]"]=!1,t.exports=function t(e,n,O,j,D,A){var T,N=1&n,L=2&n,R=4&n;if(O&&(T=D?O(e,j,D,A):O(e)),void 0!==T)return T;if(!_(e))return e;var z=x(e);if(z){if(T=g(e),!N)return l(e,T)}else{var I=f(e),F=I==C||"[object GeneratorFunction]"==I;if(v(e))return c(e,N);if(I==E||I==M||F&&!D){if(T=L||F?{}:b(e),!N)return L?u(e,a(T,e)):h(e,r(T,e))}else{if(!P[I])return D?e:{};T=m(e,I,N)}}A||(A=new i);var V=A.get(e);if(V)return V;A.set(e,T),k(e)?e.forEach((function(i){T.add(t(i,n,O,i,e,A))})):y(e)&&e.forEach((function(i,s){T.set(s,t(i,n,O,s,e,A))}));var B=z?void 0:(R?L?p:d:L?S:w)(e);return s(B||e,(function(i,s){B&&(i=e[s=i]),o(T,s,t(i,n,O,s,e,A))})),T}},7047:function(t,e,n){var i=n(7709),s=Object.create,o=function(){function t(){}return function(e){if(!i(e))return{};if(s)return s(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},6457:function(t,e,n){var i=n(9559),s=n(3608);t.exports=function t(e,n,o,r,a){var c=-1,l=e.length;for(o||(o=s),a||(a=[]);++c<l;){var h=e[c];n>0&&o(h)?n>1?t(h,n-1,o,r,a):i(a,h):r||(a[a.length]=h)}return a}},4432:function(t,e,n){var i=n(9026),s=n(3110);t.exports=function(t,e){for(var n=0,o=(e=i(e,t)).length;null!=t&&n<o;)t=t[s(e[n++])];return n&&n==o?t:void 0}},2148:function(t,e,n){var i=n(9559),s=n(163);t.exports=function(t,e,n){var o=e(t);return s(t)?o:i(o,n(t))}},563:function(t,e,n){var i=n(2596),s=n(8703),o=n(888),r=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":r&&r in Object(t)?s(t):o(t)}},6776:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},364:function(t,e,n){var i=n(563),s=n(3474);t.exports=function(t){return s(t)&&"[object Arguments]"==i(t)}},3822:function(t,e,n){var i=n(3434),s=n(3474);t.exports=function(t){return s(t)&&"[object Map]"==i(t)}},9729:function(t,e,n){var i=n(9642),s=n(3389),o=n(7709),r=n(3570),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,h=c.toString,u=l.hasOwnProperty,d=RegExp("^"+h.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||s(t))&&(i(t)?d:a).test(r(t))}},817:function(t,e,n){var i=n(3434),s=n(3474);t.exports=function(t){return s(t)&&"[object Set]"==i(t)}},4461:function(t,e,n){var i=n(563),s=n(8454),o=n(3474),r={};r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&s(t.length)&&!!r[i(t)]}},7190:function(t,e,n){var i=n(5782),s=n(6488),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!i(t))return s(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},9685:function(t,e,n){var i=n(7709),s=n(5782),o=n(3462),r=Object.prototype.hasOwnProperty;t.exports=function(t){if(!i(t))return o(t);var e=s(t),n=[];for(var a in t)("constructor"!=a||!e&&r.call(t,a))&&n.push(a);return n}},5436:function(t,e,n){var i=n(6371),s=n(5066);t.exports=function(t,e){return i(t,e,(function(e,n){return s(t,n)}))}},6371:function(t,e,n){var i=n(4432),s=n(6539),o=n(9026);t.exports=function(t,e,n){for(var r=-1,a=e.length,c={};++r<a;){var l=e[r],h=i(t,l);n(h,l)&&s(c,o(l,t),h)}return c}},6818:function(t,e,n){var i=n(5346),s=n(4280),o=n(201);t.exports=function(t,e){return o(s(t,e,i),t+"")}},6539:function(t,e,n){var i=n(4132),s=n(9026),o=n(9099),r=n(7709),a=n(3110);t.exports=function(t,e,n,c){if(!r(t))return t;for(var l=-1,h=(e=s(e,t)).length,u=h-1,d=t;null!=d&&++l<h;){var p=a(e[l]),f=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return t;if(l!=u){var g=d[p];void 0===(f=c?c(g,p,d):void 0)&&(f=r(g)?g:o(e[l+1])?[]:{})}i(d,p,f),d=d[p]}return t}},2929:function(t,e,n){var i=n(1937),s=n(5525),o=n(5346),r=s?function(t,e){return s(t,"toString",{configurable:!0,enumerable:!1,value:i(e),writable:!0})}:o;t.exports=r},2238:function(t){t.exports=function(t,e,n){var i=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(s);++i<s;)o[i]=t[i+e];return o}},9694:function(t){t.exports=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}},6316:function(t,e,n){var i=n(2596),s=n(8644),o=n(163),r=n(1995),a=i?i.prototype:void 0,c=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return s(e,t)+"";if(r(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n}},9110:function(t){t.exports=function(t){return function(e){return t(e)}}},8296:function(t,e,n){var i=n(9026),s=n(1950),o=n(2940),r=n(3110);t.exports=function(t,e){return e=i(e,t),null==(t=o(t,e))||delete t[r(s(e))]}},9026:function(t,e,n){var i=n(163),s=n(726),o=n(7801),r=n(7010);t.exports=function(t,e){return i(t)?t:s(t,e)?[t]:o(r(t))}},1882:function(t,e,n){var i=n(9864);t.exports=function(t){var e=new t.constructor(t.byteLength);return new i(e).set(new i(t)),e}},5497:function(t,e,n){t=n.nmd(t);var i=n(2373),s=e&&!e.nodeType&&e,o=s&&t&&!t.nodeType&&t,r=o&&o.exports===s?i.Buffer:void 0,a=r?r.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,i=a?a(n):new t.constructor(n);return t.copy(i),i}},3536:function(t,e,n){var i=n(1882);t.exports=function(t,e){var n=e?i(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},2193:function(t){var e=/\w*$/;t.exports=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}},3338:function(t,e,n){var i=n(2596),s=i?i.prototype:void 0,o=s?s.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},3355:function(t,e,n){var i=n(1882);t.exports=function(t,e){var n=e?i(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},8181:function(t){t.exports=function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}},9021:function(t,e,n){var i=n(4132),s=n(8347);t.exports=function(t,e,n,o){var r=!n;n||(n={});for(var a=-1,c=e.length;++a<c;){var l=e[a],h=o?o(n[l],t[l],l,n,t):void 0;void 0===h&&(h=t[l]),r?s(n,l,h):i(n,l,h)}return n}},6336:function(t,e,n){var i=n(9021),s=n(6353);t.exports=function(t,e){return i(t,s(t),e)}},9033:function(t,e,n){var i=n(9021),s=n(2678);t.exports=function(t,e){return i(t,s(t),e)}},6659:function(t,e,n){var i=n(2373)["__core-js_shared__"];t.exports=i},6092:function(t,e,n){var i=n(6818),s=n(8286);t.exports=function(t){return i((function(e,n){var i=-1,o=n.length,r=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(r=t.length>3&&"function"==typeof r?(o--,r):void 0,a&&s(n[0],n[1],a)&&(r=o<3?void 0:r,o=1),e=Object(e);++i<o;){var c=n[i];c&&t(e,c,i,r)}return e}))}},9465:function(t,e,n){var i=n(3849);t.exports=function(t){return i(t)?void 0:t}},5525:function(t,e,n){var i=n(3743),s=function(){try{var t=i(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=s},5557:function(t,e,n){var i=n(2645),s=n(4280),o=n(201);t.exports=function(t){return o(s(t,void 0,i),t+"")}},2117:function(t){var e="object"==typeof window&&window&&window.Object===Object&&window;t.exports=e},8143:function(t,e,n){var i=n(2148),s=n(6353),o=n(7747);t.exports=function(t){return i(t,o,s)}},7271:function(t,e,n){var i=n(2148),s=n(2678),o=n(8855);t.exports=function(t){return i(t,o,s)}},6733:function(t,e,n){var i=n(5469);t.exports=function(t,e){var n=t.__data__;return i(e)?n["string"==typeof e?"string":"hash"]:n.map}},3743:function(t,e,n){var i=n(9729),s=n(8316);t.exports=function(t,e){var n=s(t,e);return i(n)?n:void 0}},9817:function(t,e,n){var i=n(5125)(Object.getPrototypeOf,Object);t.exports=i},8703:function(t,e,n){var i=n(2596),s=Object.prototype,o=s.hasOwnProperty,r=s.toString,a=i?i.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var i=!0}catch(t){}var s=r.call(t);return i&&(e?t[a]=n:delete t[a]),s}},6353:function(t,e,n){var i=n(1970),s=n(6827),o=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols,a=r?function(t){return null==t?[]:(t=Object(t),i(r(t),(function(e){return o.call(t,e)})))}:s;t.exports=a},2678:function(t,e,n){var i=n(9559),s=n(9817),o=n(6353),r=n(6827),a=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)i(e,o(t)),t=s(t);return e}:r;t.exports=a},3434:function(t,e,n){var i=n(2312),s=n(1739),o=n(5305),r=n(7961),a=n(1305),c=n(563),l=n(3570),h="[object Map]",u="[object Promise]",d="[object Set]",p="[object WeakMap]",f="[object DataView]",g=l(i),m=l(s),b=l(o),x=l(r),v=l(a),y=c;(i&&y(new i(new ArrayBuffer(1)))!=f||s&&y(new s)!=h||o&&y(o.resolve())!=u||r&&y(new r)!=d||a&&y(new a)!=p)&&(y=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,i=n?l(n):"";if(i)switch(i){case g:return f;case m:return h;case b:return u;case x:return d;case v:return p}return e}),t.exports=y},8316:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},3096:function(t,e,n){var i=n(9026),s=n(5075),o=n(163),r=n(9099),a=n(8454),c=n(3110);t.exports=function(t,e,n){for(var l=-1,h=(e=i(e,t)).length,u=!1;++l<h;){var d=c(e[l]);if(!(u=null!=t&&n(t,d)))break;t=t[d]}return u||++l!=h?u:!!(h=null==t?0:t.length)&&a(h)&&r(d,h)&&(o(t)||s(t))}},6037:function(t,e,n){var i=n(9337);t.exports=function(){this.__data__=i?i(null):{},this.size=0}},7609:function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},9391:function(t,e,n){var i=n(9337),s=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(i){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return s.call(e,t)?e[t]:void 0}},4191:function(t,e,n){var i=n(9337),s=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return i?void 0!==e[t]:s.call(e,t)}},2721:function(t,e,n){var i=n(9337);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=i&&void 0===e?"__lodash_hash_undefined__":e,this}},4530:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t){var n=t.length,i=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(i.index=t.index,i.input=t.input),i}},8278:function(t,e,n){var i=n(1882),s=n(3536),o=n(2193),r=n(3338),a=n(3355);t.exports=function(t,e,n){var c=t.constructor;switch(e){case"[object ArrayBuffer]":return i(t);case"[object Boolean]":case"[object Date]":return new c(+t);case"[object DataView]":return s(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(t,n);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(t);case"[object RegExp]":return o(t);case"[object Symbol]":return r(t)}}},242:function(t,e,n){var i=n(7047),s=n(9817),o=n(5782);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:i(s(t))}},3608:function(t,e,n){var i=n(2596),s=n(5075),o=n(163),r=i?i.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||s(t)||!!(r&&t&&t[r])}},9099:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var i=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==i||"symbol"!=i&&e.test(t))&&t>-1&&t%1==0&&t<n}},8286:function(t,e,n){var i=n(788),s=n(981),o=n(9099),r=n(7709);t.exports=function(t,e,n){if(!r(n))return!1;var a=typeof e;return!!("number"==a?s(n)&&o(e,n.length):"string"==a&&e in n)&&i(n[e],t)}},726:function(t,e,n){var i=n(163),s=n(1995),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;t.exports=function(t,e){if(i(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!s(t))||(r.test(t)||!o.test(t)||null!=e&&t in Object(e))}},5469:function(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},3389:function(t,e,n){var i,s=n(6659),o=(i=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";t.exports=function(t){return!!o&&o in t}},5782:function(t){var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},1171:function(t){t.exports=function(){this.__data__=[],this.size=0}},7838:function(t,e,n){var i=n(3162),s=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=i(e,t);return!(n<0)&&(n==e.length-1?e.pop():s.call(e,n,1),--this.size,!0)}},4859:function(t,e,n){var i=n(3162);t.exports=function(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]}},4073:function(t,e,n){var i=n(3162);t.exports=function(t){return i(this.__data__,t)>-1}},8541:function(t,e,n){var i=n(3162);t.exports=function(t,e){var n=this.__data__,s=i(n,t);return s<0?(++this.size,n.push([t,e])):n[s][1]=e,this}},3649:function(t,e,n){var i=n(3715),s=n(6629),o=n(1739);t.exports=function(){this.size=0,this.__data__={hash:new i,map:new(o||s),string:new i}}},1186:function(t,e,n){var i=n(6733);t.exports=function(t){var e=i(this,t).delete(t);return this.size-=e?1:0,e}},9713:function(t,e,n){var i=n(6733);t.exports=function(t){return i(this,t).get(t)}},1431:function(t,e,n){var i=n(6733);t.exports=function(t){return i(this,t).has(t)}},6801:function(t,e,n){var i=n(6733);t.exports=function(t,e){var n=i(this,t),s=n.size;return n.set(t,e),this.size+=n.size==s?0:1,this}},2453:function(t,e,n){var i=n(1594);t.exports=function(t){var e=i(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},9337:function(t,e,n){var i=n(3743)(Object,"create");t.exports=i},6488:function(t,e,n){var i=n(5125)(Object.keys,Object);t.exports=i},3462:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},2348:function(t,e,n){t=n.nmd(t);var i=n(2117),s=e&&!e.nodeType&&e,o=s&&t&&!t.nodeType&&t,r=o&&o.exports===s&&i.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||r&&r.binding&&r.binding("util")}catch(t){}}();t.exports=a},888:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5125:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},4280:function(t,e,n){var i=n(6082),s=Math.max;t.exports=function(t,e,n){return e=s(void 0===e?t.length-1:e,0),function(){for(var o=arguments,r=-1,a=s(o.length-e,0),c=Array(a);++r<a;)c[r]=o[e+r];r=-1;for(var l=Array(e+1);++r<e;)l[r]=o[r];return l[e]=n(c),i(t,this,l)}}},2940:function(t,e,n){var i=n(4432),s=n(2238);t.exports=function(t,e){return e.length<2?t:i(t,s(e,0,-1))}},2373:function(t,e,n){var i=n(2117),s="object"==typeof self&&self&&self.Object===Object&&self,o=i||s||Function("return this")();t.exports=o},201:function(t,e,n){var i=n(2929),s=n(2626)(i);t.exports=s},2626:function(t){var e=Date.now;t.exports=function(t){var n=0,i=0;return function(){var s=e(),o=16-(s-i);if(i=s,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},9453:function(t,e,n){var i=n(6629);t.exports=function(){this.__data__=new i,this.size=0}},5477:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},9989:function(t){t.exports=function(t){return this.__data__.get(t)}},5450:function(t){t.exports=function(t){return this.__data__.has(t)}},1954:function(t,e,n){var i=n(6629),s=n(1739),o=n(503);t.exports=function(t,e){var n=this.__data__;if(n instanceof i){var r=n.__data__;if(!s||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(r)}return n.set(t,e),this.size=n.size,this}},7801:function(t,e,n){var i=n(2453),s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,r=i((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(s,(function(t,n,i,s){e.push(i?s.replace(o,"$1"):n||t)})),e}));t.exports=r},3110:function(t,e,n){var i=n(1995);t.exports=function(t){if("string"==typeof t||i(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}},3570:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},156:function(t,e,n){var i=n(4132),s=n(9021),o=n(6092),r=n(981),a=n(5782),c=n(7747),l=Object.prototype.hasOwnProperty,h=o((function(t,e){if(a(e)||r(e))s(e,c(e),t);else for(var n in e)l.call(e,n)&&i(t,n,e[n])}));t.exports=h},1937:function(t){t.exports=function(t){return function(){return t}}},788:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},2645:function(t,e,n){var i=n(6457);t.exports=function(t){return(null==t?0:t.length)?i(t,1):[]}},5066:function(t,e,n){var i=n(6776),s=n(3096);t.exports=function(t,e){return null!=t&&s(t,e,i)}},5346:function(t){t.exports=function(t){return t}},5075:function(t,e,n){var i=n(364),s=n(3474),o=Object.prototype,r=o.hasOwnProperty,a=o.propertyIsEnumerable,c=i(function(){return arguments}())?i:function(t){return s(t)&&r.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},163:function(t){var e=Array.isArray;t.exports=e},981:function(t,e,n){var i=n(9642),s=n(8454);t.exports=function(t){return null!=t&&s(t.length)&&!i(t)}},4801:function(t,e,n){t=n.nmd(t);var i=n(2373),s=n(7689),o=e&&!e.nodeType&&e,r=o&&t&&!t.nodeType&&t,a=r&&r.exports===o?i.Buffer:void 0,c=(a?a.isBuffer:void 0)||s;t.exports=c},9642:function(t,e,n){var i=n(563),s=n(7709);t.exports=function(t){if(!s(t))return!1;var e=i(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},8454:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},9440:function(t,e,n){var i=n(3822),s=n(9110),o=n(2348),r=o&&o.isMap,a=r?s(r):i;t.exports=a},7709:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3474:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},3849:function(t,e,n){var i=n(563),s=n(9817),o=n(3474),r=Function.prototype,a=Object.prototype,c=r.toString,l=a.hasOwnProperty,h=c.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=i(t))return!1;var e=s(t);if(null===e)return!0;var n=l.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==h}},3188:function(t,e,n){var i=n(817),s=n(9110),o=n(2348),r=o&&o.isSet,a=r?s(r):i;t.exports=a},1995:function(t,e,n){var i=n(563),s=n(3474);t.exports=function(t){return"symbol"==typeof t||s(t)&&"[object Symbol]"==i(t)}},4289:function(t,e,n){var i=n(4461),s=n(9110),o=n(2348),r=o&&o.isTypedArray,a=r?s(r):i;t.exports=a},7747:function(t,e,n){var i=n(9537),s=n(7190),o=n(981);t.exports=function(t){return o(t)?i(t):s(t)}},8855:function(t,e,n){var i=n(9537),s=n(9685),o=n(981);t.exports=function(t){return o(t)?i(t,!0):s(t)}},1950:function(t){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},1594:function(t,e,n){var i=n(503);function s(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var i=arguments,s=e?e.apply(this,i):i[0],o=n.cache;if(o.has(s))return o.get(s);var r=t.apply(this,i);return n.cache=o.set(s,r)||o,r};return n.cache=new(s.Cache||i),n}s.Cache=i,t.exports=s},515:function(t){t.exports=function(){}},2703:function(t,e,n){var i=n(8644),s=n(3435),o=n(8296),r=n(9026),a=n(9021),c=n(9465),l=n(5557),h=n(7271),u=l((function(t,e){var n={};if(null==t)return n;var l=!1;e=i(e,(function(e){return e=r(e,t),l||(l=e.length>1),e})),a(t,h(t),n),l&&(n=s(n,7,c));for(var u=e.length;u--;)o(n,e[u]);return n}));t.exports=u},9082:function(t,e,n){var i=n(5436),s=n(5557)((function(t,e){return null==t?{}:i(t,e)}));t.exports=s},6827:function(t){t.exports=function(){return[]}},7689:function(t){t.exports=function(){return!1}},7010:function(t,e,n){var i=n(6316);t.exports=function(t){return null==t?"":i(t)}},660:function(t,e,n){var i=n(7010),s=0;t.exports=function(t){var e=++s;return i(t)+e}},1802:function(){},873:function(){},2002:function(t){var e=1e3,n=60*e,i=60*n,s=24*i,o=7*s,r=365.25*s;function a(t,e,n,i){var s=e>=1.5*n;return Math.round(t/n)+" "+i+(s?"s":"")}t.exports=function(t,c){c=c||{};var l=typeof t;if("string"===l&&t.length>0)return function(t){if((t=String(t)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*r;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*s;case"hours":case"hour":case"hrs":case"hr":case"h":return c*i;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(t);if("number"===l&&isFinite(t))return c.long?function(t){var o=Math.abs(t);if(o>=s)return a(t,o,s,"day");if(o>=i)return a(t,o,i,"hour");if(o>=n)return a(t,o,n,"minute");if(o>=e)return a(t,o,e,"second");return t+" ms"}(t):function(t){var o=Math.abs(t);if(o>=s)return Math.round(t/s)+"d";if(o>=i)return Math.round(t/i)+"h";if(o>=n)return Math.round(t/n)+"m";if(o>=e)return Math.round(t/e)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},9587:function(t,e,n){"use strict";var i=n(5843);function s(){}function o(){}o.resetWarningCache=s,t.exports=function(){function t(t,e,n,s,o,r){if(r!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:s};return n.PropTypes=n,n}},1268:function(t,e,n){t.exports=n(9587)()},5843:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2504:function(t,e,n){"use strict";var i=n(2265);function s(){}function o(){}o.resetWarningCache=s,t.exports=function(){function t(t,e,n,s,o,r){if(r!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:s};return n.PropTypes=n,n}},3698:function(t,e,n){t.exports=n(2504)()},2265:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5325:function(t,e,n){"use strict";var i=n(9667),s=n.n(i),o=n(2819);const r=s()("dops:analytics");let a,c;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const l={initialize:function(t,e,n){l.setUser(t,e),l.setSuperProps(n),l.identifyUser()},setGoogleAnalyticsEnabled:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.googleAnalyticsEnabled=t,this.googleAnalyticsKey=e},setMcAnalyticsEnabled:function(t){this.mcAnalyticsEnabled=t},setUser:function(t,e){c={ID:t,username:e}},setSuperProps:function(t){a=t},assignSuperProps:function(t){a=(0,o.assign)(a,t)},mc:{bumpStat:function(t,e){const n=function(t,e){let n="";if("object"==typeof t){for(const e in t)n+="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]);r("Bumping stats %o",t)}else n="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e),r('Bumping stat "%s" in group "%s"',e,t);return n}(t,e);l.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(t,e){const n=function(t,e){let n="";if("object"==typeof t){for(const e in t)n+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]);r("Built stats %o",t)}else n="&"+encodeURIComponent(t)+"="+encodeURIComponent(e),r('Built stat "%s" in group "%s"',e,t);return n}(t,e);l.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(t,e){l.tracks.recordPageView(t),l.ga.recordPageView(t,e)}},purchase:{record:function(t,e,n,i,s,o,r){l.ga.recordPurchase(t,e,n,i,s,o,r)}},tracks:{recordEvent:function(t,e){e=e||{},0===t.indexOf("akismet_")||0===t.indexOf("jetpack_")?(a&&(r("- Super Props: %o",a),e=(0,o.assign)(e,a)),r('Record event "%s" called with props %s',t,JSON.stringify(e)),window._tkq.push(["recordEvent",t,e])):r('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(t){const e="object"==typeof t?t:{target:t};l.tracks.recordEvent("jetpack_wpa_click",e)},recordPageView:function(t){l.tracks.recordEvent("akismet_page_view",{path:t})},setOptOut:function(t){r("Pushing setOptOut: %o",t),window._tkq.push(["setOptOut",t])}},ga:{initialized:!1,initialize:function(){let t={};l.ga.initialized||(c&&(t={userId:"u-"+c.ID}),window.ga("create",this.googleAnalyticsKey,"auto",t),l.ga.initialized=!0)},recordPageView:function(t,e){l.ga.initialize(),r("Recording Page View ~ [URL: "+t+"] [Title: "+e+"]"),this.googleAnalyticsEnabled&&(window.ga("set","page",t),window.ga("send",{hitType:"pageview",page:t,title:e}))},recordEvent:function(t,e,n,i){l.ga.initialize();let s="Recording Event ~ [Category: "+t+"] [Action: "+e+"]";void 0!==n&&(s+=" [Option Label: "+n+"]"),void 0!==i&&(s+=" [Option Value: "+i+"]"),r(s),this.googleAnalyticsEnabled&&window.ga("send","event",t,e,n,i)},recordPurchase:function(t,e,n,i,s,o,r){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:t,revenue:i,currency:r}),window.ga("ecommerce:addItem",{id:t,name:e,sku:n,price:s,quantity:o}),window.ga("ecommerce:send")}},identifyUser:function(){c&&window._tkq.push(["identifyUser",c.ID,c.username])},setProperties:function(t){window._tkq.push(["setProperties",t])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}};e.Z=l},488:function(t,e,n){"use strict";var i=n(2819),s=n(6483),o=n(4680);function r(t){class e extends Error{constructor(){super(...arguments),this.name=t}}return e}const a=r("JsonParseError"),c=r("JsonParseAfterRedirectError"),l=r("Api404Error"),h=r("Api404AfterRedirectError"),u=r("FetchNetworkError");const d=new function(t,e){let n=t,r={"X-WP-Nonce":e},a={credentials:"same-origin",headers:r},c={method:"post",credentials:"same-origin",headers:(0,i.assign)({},r,{"Content-type":"application/json"})},l=function(t){const e=t.split("?"),n=e.length>1?e[1]:"",i=n.length?n.split("&"):[];return i.push("_cacheBuster="+(new Date).getTime()),e[0]+"?"+i.join("&")};const h={setApiRoot(t){n=t},setApiNonce(t){r={"X-WP-Nonce":t},a={credentials:"same-origin",headers:r},c={method:"post",credentials:"same-origin",headers:(0,i.assign)({},r,{"Content-type":"application/json"})}},setCacheBusterCallback:t=>{l=t},registerSite:(t,e)=>{const i={registration_nonce:t,no_iframe:!0};return(0,o.jetpackConfigHas)("consumer_slug")&&(i.plugin_slug=(0,o.jetpackConfigGet)("consumer_slug")),null!==e&&(i.redirect_uri=e),d(`${n}jetpack/v4/connection/register`,c,{body:JSON.stringify(i)}).then(p).then(f)},fetchAuthorizationUrl:t=>u((0,s.addQueryArgs)(`${n}jetpack/v4/connection/authorize_url`,{no_iframe:"1",redirect_uri:t}),a).then(p).then(f),fetchSiteConnectionData:()=>u(`${n}jetpack/v4/connection/data`,a).then(f),fetchSiteConnectionStatus:()=>u(`${n}jetpack/v4/connection`,a).then(f),fetchSiteConnectionTest:()=>u(`${n}jetpack/v4/connection/test`,a).then(p).then(f),fetchUserConnectionData:()=>u(`${n}jetpack/v4/connection/data`,a).then(f),fetchUserTrackingSettings:()=>u(`${n}jetpack/v4/tracking/settings`,a).then(p).then(f),updateUserTrackingSettings:t=>d(`${n}jetpack/v4/tracking/settings`,c,{body:JSON.stringify(t)}).then(p).then(f),disconnectSite:()=>d(`${n}jetpack/v4/connection`,c,{body:JSON.stringify({isActive:!1})}).then(p).then(f),fetchConnectUrl:()=>u(`${n}jetpack/v4/connection/url`,a).then(p).then(f),unlinkUser:()=>d(`${n}jetpack/v4/connection/user`,c,{body:JSON.stringify({linked:!1})}).then(p).then(f),reconnect:()=>d(`${n}jetpack/v4/connection/reconnect`,c).then(p).then(f),fetchConnectedPlugins:()=>u(`${n}jetpack/v4/connection/plugins`,a).then(p).then(f),setHasSeenWCConnectionModal:()=>d(`${n}jetpack/v4/seen-wc-connection-modal`,c).then(p).then(f),fetchModules:()=>u(`${n}jetpack/v4/module/all`,a).then(p).then(f),fetchModule:t=>u(`${n}jetpack/v4/module/${t}`,a).then(p).then(f),activateModule:t=>d(`${n}jetpack/v4/module/${t}/active`,c,{body:JSON.stringify({active:!0})}).then(p).then(f),deactivateModule:t=>d(`${n}jetpack/v4/module/${t}/active`,c,{body:JSON.stringify({active:!1})}),updateModuleOptions:(t,e)=>d(`${n}jetpack/v4/module/${t}`,c,{body:JSON.stringify(e)}).then(p).then(f),updateSettings:t=>d(`${n}jetpack/v4/settings`,c,{body:JSON.stringify(t)}).then(p).then(f),getProtectCount:()=>u(`${n}jetpack/v4/module/protect/data`,a).then(p).then(f),resetOptions:t=>d(`${n}jetpack/v4/options/${t}`,c,{body:JSON.stringify({reset:!0})}).then(p).then(f),activateVaultPress:()=>d(`${n}jetpack/v4/plugins`,c,{body:JSON.stringify({slug:"vaultpress",status:"active"})}).then(p).then(f),getVaultPressData:()=>u(`${n}jetpack/v4/module/vaultpress/data`,a).then(p).then(f),installPlugin:(t,e)=>{const i={slug:t,status:"active"};return e&&(i.source=e),d(`${n}jetpack/v4/plugins`,c,{body:JSON.stringify(i)}).then(p).then(f)},activateAkismet:()=>d(`${n}jetpack/v4/plugins`,c,{body:JSON.stringify({slug:"akismet",status:"active"})}).then(p).then(f),getAkismetData:()=>u(`${n}jetpack/v4/module/akismet/data`,a).then(p).then(f),checkAkismetKey:()=>u(`${n}jetpack/v4/module/akismet/key/check`,a).then(p).then(f),checkAkismetKeyTyped:t=>d(`${n}jetpack/v4/module/akismet/key/check`,c,{body:JSON.stringify({api_key:t})}).then(p).then(f),fetchStatsData:t=>u(function(t){let e=`${n}jetpack/v4/module/stats/data`;-1!==e.indexOf("?")?e+=`&range=${encodeURIComponent(t)}`:e+=`?range=${encodeURIComponent(t)}`;return e}(t),a).then(p).then(f).then(g),getPluginUpdates:()=>u(`${n}jetpack/v4/updates/plugins`,a).then(p).then(f),getPlans:()=>u(`${n}jetpack/v4/plans`,a).then(p).then(f),fetchSettings:()=>u(`${n}jetpack/v4/settings`,a).then(p).then(f),updateSetting:t=>d(`${n}jetpack/v4/settings`,c,{body:JSON.stringify(t)}).then(p).then(f),fetchSiteData:()=>u(`${n}jetpack/v4/site`,a).then(p).then(f).then((t=>JSON.parse(t.data))),fetchSiteFeatures:()=>u(`${n}jetpack/v4/site/features`,a).then(p).then(f).then((t=>JSON.parse(t.data))),fetchSiteProducts:()=>u(`${n}jetpack/v4/site/products`,a).then(p).then(f),fetchSitePurchases:()=>u(`${n}jetpack/v4/site/purchases`,a).then(p).then(f).then((t=>JSON.parse(t.data))),fetchSiteBenefits:()=>u(`${n}jetpack/v4/site/benefits`,a).then(p).then(f).then((t=>JSON.parse(t.data))),fetchSetupQuestionnaire:()=>u(`${n}jetpack/v4/setup/questionnaire`,a).then(p).then(f),fetchRecommendationsData:()=>u(`${n}jetpack/v4/recommendations/data`,a).then(p).then(f),fetchRecommendationsProductSuggestions:()=>u(`${n}jetpack/v4/recommendations/product-suggestions`,a).then(p).then(f),fetchRecommendationsUpsell:()=>u(`${n}jetpack/v4/recommendations/upsell`,a).then(p).then(f),saveRecommendationsData:t=>d(`${n}jetpack/v4/recommendations/data`,c,{body:JSON.stringify({data:t})}).then(p),fetchProducts:()=>u(`${n}jetpack/v4/products`,a).then(p).then(f),fetchRewindStatus:()=>u(`${n}jetpack/v4/rewind`,a).then(p).then(f).then((t=>JSON.parse(t.data))),fetchScanStatus:()=>u(`${n}jetpack/v4/scan`,a).then(p).then(f).then((t=>JSON.parse(t.data))),dismissJetpackNotice:t=>d(`${n}jetpack/v4/notice/${t}`,c,{body:JSON.stringify({dismissed:!0})}).then(p).then(f),fetchPluginsData:()=>u(`${n}jetpack/v4/plugins`,a).then(p).then(f),fetchVerifySiteGoogleStatus:t=>u(null!==t?`${n}jetpack/v4/verify-site/google/${t}`:`${n}jetpack/v4/verify-site/google`,a).then(p).then(f),verifySiteGoogle:t=>d(`${n}jetpack/v4/verify-site/google`,c,{body:JSON.stringify({keyring_id:t})}).then(p).then(f),sendMobileLoginEmail:()=>d(`${n}jetpack/v4/mobile/send-login-email`,c).then(p).then(f),submitSurvey:t=>d(`${n}jetpack/v4/marketing/survey`,c,{body:JSON.stringify(t)}).then(p).then(f),saveSetupQuestionnaire:t=>d(`${n}jetpack/v4/setup/questionnaire`,c,{body:JSON.stringify(t)}).then(p).then(f),updateLicensingError:t=>d(`${n}jetpack/v4/licensing/error`,c,{body:JSON.stringify(t)}).then(p).then(f),updateLicenseKey:t=>d(`${n}jetpack/v4/licensing/set-license`,c,{body:JSON.stringify({license:t})}).then(p).then(f),getUserLicensesCounts:()=>u(`${n}jetpack/v4/licensing/user/counts`,a).then(p).then(f),getUserLicenses:()=>u(`${n}jetpack/v4/licensing/user/licenses`,a).then(p).then(f),updateLicensingActivationNoticeDismiss:t=>d(`${n}jetpack/v4/licensing/user/activation-notice-dismiss`,c,{body:JSON.stringify({last_detached_count:t})}).then(p).then(f),updateRecommendationsStep:t=>d(`${n}jetpack/v4/recommendations/step`,c,{body:JSON.stringify({step:t})}).then(p),confirmIDCSafeMode:()=>d(`${n}jetpack/v4/identity-crisis/confirm-safe-mode`,c).then(p),startIDCFresh:t=>d(`${n}jetpack/v4/identity-crisis/start-fresh`,c,{body:JSON.stringify({redirect_uri:t})}).then(p).then(f),migrateIDC:()=>d(`${n}jetpack/v4/identity-crisis/migrate`,c).then(p),attachLicenses:t=>d(`${n}jetpack/v4/licensing/attach-licenses`,c,{body:JSON.stringify({licenses:t})}).then(p).then(f),fetchSearchPlanInfo:()=>u(`${n}jetpack/v4/search/plan`,a).then(p).then(f),fetchSearchSettings:()=>u(`${n}jetpack/v4/search/settings`,a).then(p).then(f),updateSearchSettings:t=>d(`${n}jetpack/v4/search/settings`,c,{body:JSON.stringify(t)}).then(p).then(f),fetchSearchStats:()=>u(`${n}jetpack/v4/search/stats`,a).then(p).then(f)};function u(t,e){return fetch(l(t),e)}function d(t,e,n){return fetch(t,(0,i.assign)({},e,n)).catch(m)}function g(t){return t.general&&void 0===t.general.response||t.week&&void 0===t.week.response||t.month&&void 0===t.month.response?t:{}}(0,i.assign)(this,h)};function p(t){return t.status>=200&&t.status<300?t:404===t.status?new Promise((()=>{throw t.redirected?new h(t.redirected):new l})):t.json().catch((t=>g(t))).then((e=>{const n=new Error(`${e.message} (Status ${t.status})`);throw n.response=e,n.name="ApiError",n}))}function f(t){return t.json().catch((e=>g(e,t.redirected,t.url)))}function g(t,e,n){throw e?new c(n):new a}function m(){throw new u}e.ZP=d},8968:function(t,e,n){"use strict";var i=n(236),s=n.n(i),o=n(9196),r=n.n(o),a=n(9105),c=n.n(a),l=n(5736),h=n(3698),u=n.n(h);const __=l.__,d=t=>{const{title:e,height:n,className:i,...o}=t;return r().createElement("svg",s()({role:"img",x:"0",y:"0",viewBox:"0 0 935 38.2",enableBackground:"new 0 0 935 38.2","aria-labelledby":"jp-automattic-byline-logo-title",height:n,className:c()("jp-automattic-byline-logo",i)},o),r().createElement("title",{id:"jp-automattic-byline-logo-title"},e),r().createElement("path",{d:"M317.1 38.2c-12.6 0-20.7-9.1-20.7-18.5v-1.2c0-9.6 8.2-18.5 20.7-18.5 12.6 0 20.8 8.9 20.8 18.5v1.2C337.9 29.1 329.7 38.2 317.1 38.2zM331.2 18.6c0-6.9-5-13-14.1-13s-14 6.1-14 13v0.9c0 6.9 5 13.1 14 13.1s14.1-6.2 14.1-13.1V18.6zM175 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7L157 1.3h5.5L182 36.8H175zM159.7 8.2L152 23.1h15.7L159.7 8.2zM212.4 38.2c-12.7 0-18.7-6.9-18.7-16.2V1.3h6.6v20.9c0 6.6 4.3 10.5 12.5 10.5 8.4 0 11.9-3.9 11.9-10.5V1.3h6.7V22C231.4 30.8 225.8 38.2 212.4 38.2zM268.6 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H268.6zM397.3 36.8V8.7l-1.8 3.1 -14.9 25h-3.3l-14.7-25 -1.8-3.1v28.1h-6.5V1.3h9.2l14 24.4 1.7 3 1.7-3 13.9-24.4h9.1v35.5H397.3zM454.4 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7l19.2-35.5h5.5l19.5 35.5H454.4zM439.1 8.2l-7.7 14.9h15.7L439.1 8.2zM488.4 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H488.4zM537.3 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H537.3zM569.3 36.8V4.6c2.7 0 3.7-1.4 3.7-3.4h2.8v35.5L569.3 36.8 569.3 36.8zM628 11.3c-3.2-2.9-7.9-5.7-14.2-5.7 -9.5 0-14.8 6.5-14.8 13.3v0.7c0 6.7 5.4 13 15.3 13 5.9 0 10.8-2.8 13.9-5.7l4 4.2c-3.9 3.8-10.5 7.1-18.3 7.1 -13.4 0-21.6-8.7-21.6-18.3v-1.2c0-9.6 8.9-18.7 21.9-18.7 7.5 0 14.3 3.1 18 7.1L628 11.3zM321.5 12.4c1.2 0.8 1.5 2.4 0.8 3.6l-6.1 9.4c-0.8 1.2-2.4 1.6-3.6 0.8l0 0c-1.2-0.8-1.5-2.4-0.8-3.6l6.1-9.4C318.7 11.9 320.3 11.6 321.5 12.4L321.5 12.4z"}),r().createElement("path",{d:"M37.5 36.7l-4.7-8.9H11.7l-4.6 8.9H0L19.4 0.8H25l19.7 35.9H37.5zM22 7.8l-7.8 15.1h15.9L22 7.8zM82.8 36.7l-23.3-24 -2.3-2.5v26.6h-6.7v-36H57l22.6 24 2.3 2.6V0.8h6.7v35.9H82.8z"}),r().createElement("path",{d:"M719.9 37l-4.8-8.9H694l-4.6 8.9h-7.1l19.5-36h5.6l19.8 36H719.9zM704.4 8l-7.8 15.1h15.9L704.4 8zM733 37V1h6.8v36H733zM781 37c-1.8 0-2.6-2.5-2.9-5.8l-0.2-3.7c-0.2-3.6-1.7-5.1-8.4-5.1h-12.8V37H750V1h19.6c10.8 0 15.7 4.3 15.7 9.9 0 3.9-2 7.7-9 9 7 0.5 8.5 3.7 8.6 7.9l0.1 3c0.1 2.5 0.5 4.3 2.2 6.1V37H781zM778.5 11.8c0-2.6-2.1-5.1-7.9-5.1h-13.8v10.8h14.4c5 0 7.3-2.4 7.3-5.2V11.8zM794.8 37V1h6.8v30.4h28.2V37H794.8zM836.7 37V1h6.8v36H836.7zM886.2 37l-23.4-24.1 -2.3-2.5V37h-6.8V1h6.5l22.7 24.1 2.3 2.6V1h6.8v36H886.2zM902.3 37V1H935v5.6h-26v9.2h20v5.5h-20v10.1h26V37H902.3z"}))};d.defaultProps={title:__("An Automattic Airline","jetpack-search-pkg"),height:7,className:""},d.propTypes={title:u().string,height:u().number,className:u().string},e.Z=d},4328:function(t,e,n){"use strict";var i=n(236),s=n.n(i),o=n(9196),r=n.n(o),a=n(5736),c=n(9105),l=n.n(c),h=n(3698),u=n.n(h),d=n(8968),p=(n(1802),n(5482));const __=a.__,f=t=>{const{a8cLogoHref:e,moduleName:n,className:i,moduleNameHref:o,...a}=t;return r().createElement("div",s()({className:l()("jp-dashboard-footer",i)},a),r().createElement("div",{className:"jp-dashboard-footer__footer-left"},r().createElement(p.Z,{logoColor:"#000",showText:!1,height:16,className:"jp-dashboard-footer__jetpack-symbol","aria-label":__("Jetpack logo","jetpack-search-pkg")}),r().createElement("span",{className:"jp-dashboard-footer__module-name"},o?r().createElement("a",{href:o,"aria-label":n},n):n)),r().createElement("div",{className:"jp-dashboard-footer__footer-right"},r().createElement("a",{href:e,"aria-label":__("An Automattic Airline","jetpack-search-pkg")},r().createElement(d.Z,null))))};f.defaultProps={a8cLogoHref:"https://automattic.com",moduleName:__("Jetpack","jetpack-search-pkg"),className:"",moduleNameHref:"https://jetpack.com"},f.propTypes={a8cLogoHref:u().string,moduleName:u().string,className:u().string,moduleNameHref:u().string},e.Z=f},5482:function(t,e,n){"use strict";var i=n(236),s=n.n(i),o=n(4502),r=n.n(o),a=n(3698),c=n.n(a),l=n(9196),h=n.n(l),u=n(9105),d=n.n(u),p=n(5736);const __=p.__;class f extends h().Component{render(){const{logoColor:t,showText:e,className:n,...i}=this.props,o=e?"0 0 118 32":"0 0 32 32";return h().createElement("svg",s()({xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:o,className:d()("jetpack-logo",n),"aria-labelledby":"jetpack-logo-title"},i),h().createElement("title",{id:"jetpack-logo-title"},__("Jetpack Logo","jetpack-search-pkg")),h().createElement("path",{fill:t,d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z M15,19H7l8-16V19z M17,29V13h8L17,29z"}),e&&h().createElement(l.Fragment,null,h().createElement("path",{d:"M41.3,26.6c-0.5-0.7-0.9-1.4-1.3-2.1c2.3-1.4,3-2.5,3-4.6V8h-3V6h6v13.4C46,22.8,45,24.8,41.3,26.6z"}),h().createElement("path",{d:"M65,18.4c0,1.1,0.8,1.3,1.4,1.3c0.5,0,2-0.2,2.6-0.4v2.1c-0.9,0.3-2.5,0.5-3.7,0.5c-1.5,0-3.2-0.5-3.2-3.1V12H60v-2h2.1V7.1 H65V10h4v2h-4V18.4z"}),h().createElement("path",{d:"M71,10h3v1.3c1.1-0.8,1.9-1.3,3.3-1.3c2.5,0,4.5,1.8,4.5,5.6s-2.2,6.3-5.8,6.3c-0.9,0-1.3-0.1-2-0.3V28h-3V10z M76.5,12.3 c-0.8,0-1.6,0.4-2.5,1.2v5.9c0.6,0.1,0.9,0.2,1.8,0.2c2,0,3.2-1.3,3.2-3.9C79,13.4,78.1,12.3,76.5,12.3z"}),h().createElement("path",{d:"M93,22h-3v-1.5c-0.9,0.7-1.9,1.5-3.5,1.5c-1.5,0-3.1-1.1-3.1-3.2c0-2.9,2.5-3.4,4.2-3.7l2.4-0.3v-0.3c0-1.5-0.5-2.3-2-2.3 c-0.7,0-2.3,0.5-3.7,1.1L84,11c1.2-0.4,3-1,4.4-1c2.7,0,4.6,1.4,4.6,4.7L93,22z M90,16.4l-2.2,0.4c-0.7,0.1-1.4,0.5-1.4,1.6 c0,0.9,0.5,1.4,1.3,1.4s1.5-0.5,2.3-1V16.4z"}),h().createElement("path",{d:"M104.5,21.3c-1.1,0.4-2.2,0.6-3.5,0.6c-4.2,0-5.9-2.4-5.9-5.9c0-3.7,2.3-6,6.1-6c1.4,0,2.3,0.2,3.2,0.5V13 c-0.8-0.3-2-0.6-3.2-0.6c-1.7,0-3.2,0.9-3.2,3.6c0,2.9,1.5,3.8,3.3,3.8c0.9,0,1.9-0.2,3.2-0.7V21.3z"}),h().createElement("path",{d:"M110,15.2c0.2-0.3,0.2-0.8,3.8-5.2h3.7l-4.6,5.7l5,6.3h-3.7l-4.2-5.8V22h-3V6h3V15.2z"}),h().createElement("path",{d:"M58.5,21.3c-1.5,0.5-2.7,0.6-4.2,0.6c-3.6,0-5.8-1.8-5.8-6c0-3.1,1.9-5.9,5.5-5.9s4.9,2.5,4.9,4.9c0,0.8,0,1.5-0.1,2h-7.3 c0.1,2.5,1.5,2.8,3.6,2.8c1.1,0,2.2-0.3,3.4-0.7C58.5,19,58.5,21.3,58.5,21.3z M56,15c0-1.4-0.5-2.9-2-2.9c-1.4,0-2.3,1.3-2.4,2.9 C51.6,15,56,15,56,15z"})))}}r()(f,"propTypes",{className:c().string,width:c().number,height:c().number,showText:c().bool,logoColor:c().string}),r()(f,"defaultProps",{className:"",height:32,showText:!0,logoColor:"#069e08"}),e.Z=f},7786:function(t,e,n){"use strict";var i=n(9196),s=n.n(i),o=n(3698),r=n.n(o);n(873);const a=t=>{const e=t.className+" jp-components-spinner",n={width:t.size,height:t.size,fontSize:t.size,borderTopColor:t.color},i={borderTopColor:t.color,borderRightColor:t.color};return s().createElement("div",{className:e},s().createElement("div",{className:"jp-components-spinner__outer",style:n},s().createElement("div",{className:"jp-components-spinner__inner",style:i})))};a.propTypes={color:r().string,className:r().string,size:r().number},a.defaultProps={color:"#FFFFFF",className:"",size:20},e.Z=a},4481:function(t,e,n){"use strict";function i(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={};let i;var s;"undefined"!=typeof window&&(i=null===(s=window.Initial_State)||void 0===s?void 0:s.calypsoEnv);if(0===t.search("https://")){const e=new URL(t);t=`https://${e.host}${e.pathname}`,n.url=encodeURIComponent(t)}else n.source=encodeURIComponent(t);Object.keys(e).map((t=>{n[t]=encodeURIComponent(e[t])})),!Object.keys(n).includes("site")&&"undefined"!=typeof jetpack_redirects&&jetpack_redirects.hasOwnProperty("currentSiteRawUrl")&&(n.site=jetpack_redirects.currentSiteRawUrl),i&&(n.calypso_env=i);const o=Object.keys(n).map((t=>t+"="+n[t])).join("&");return"https://jetpack.com/redirect/?"+o}n.d(e,{Z:function(){return i}})},4680:function(t,e,n){let i={};try{i=n(6317)}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),i={missingConfig:!0}}const s=t=>i.hasOwnProperty(t);t.exports={jetpackConfigHas:s,jetpackConfigGet:t=>{if(!s(t))throw'This app requires the "'+t+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';return i[t]}}},1354:function(t,e,n){"use strict";n.d(e,{Z:function(){return p}});var i=n(4502),s=n.n(i),o=n(1268),r=n.n(o),a=n(9196),c=n.n(a),l=n(9105),h=n.n(l),u=n(515),d=n.n(u);class p extends c().Component{render(){const t=this.props.href?"a":"button",{primary:e,compact:n,scary:i,borderless:s,className:o,...r}=this.props,a=h()({"dops-button":!0,"is-compact":n,"is-primary":e,"is-scary":i,"is-borderless":s});return r.className=h()(o,a),c().createElement(t,r,this.props.children)}}s()(p,"displayName","Button"),s()(p,"propTypes",{disabled:r().bool,compact:r().bool,primary:r().bool,scary:r().bool,type:r().string,href:r().string,onClick:r().func,borderless:r().bool,className:r().string}),s()(p,"defaultProps",{disabled:!1,type:"button",onClick:d(),borderless:!1})},7214:function(t,e,n){"use strict";var i=n(4502),s=n.n(i),o=n(1268),r=n.n(o),a=n(9196),c=n.n(a),l=n(9105),h=n.n(l),u=n(156),d=n.n(u),p=n(2703),f=n.n(p),g=n(9712);class m extends c().Component{constructor(){super(...arguments),s()(this,"_renderWithTitle",(()=>{const t="dops-card-section-orient-"+(this.props.vertical?"vertical":"horizontal");return c().createElement("div",{className:t},c().createElement("h4",{ref:"label",className:"dops-card-section-label"},this.props.title),c().createElement("div",{ref:"content",className:"dops-card-section-content"},this.props.children))}))}render(){return c().createElement("div",{className:h()("dops-card-section",this.props.className),style:this.props.style},this.props.title?this._renderWithTitle():this.props.children)}}s()(m,"propTypes",{title:r().any,vertical:r().any,style:r().object,className:r().string,device:r().oneOf(["desktop","tablet","phone"])}),s()(m,"defaultProps",{vertical:null});class b extends c().Component{render(){return c().createElement("div",{className:"dops-card-footer"},this.props.children)}}class x extends c().Component{constructor(){super(...arguments),s()(this,"_renderIcon",(()=>c().createElement("span",{className:"dops-card-icon",style:{color:this.props.iconColor}},this.props.icon&&c().createElement(g.Z,{icon:this.props.icon,style:{backgroundColor:this.props.iconColor}}),this.props.iconLabel)))}render(){const t=h()("dops-card",this.props.className,{"is-card-link":!!this.props.href,"is-compact":this.props.compact}),e=["compact","tagName","meta","iconColor"];let n,i;return this.props.href?n=c().createElement(g.Z,{className:"dops-card__link-indicator",icon:this.props.target?"external":"chevron-right"}):e.push("href","target"),this.props.title&&(i=c().createElement("h2",{className:"dops-card-title"},this.props.title,this.props.meta&&c().createElement("span",{className:"dops-card-meta"},this.props.meta),(this.props.icon||this.props.iconLabel)&&this._renderIcon())),c().createElement(this.props.href?"a":this.props.tagName,d()(f()(this.props,e),{className:t}),n,i,this.props.children)}}s()(x,"propTypes",{meta:r().any,icon:r().string,iconLabel:r().any,iconColor:r().string,style:r().object,className:r().string,href:r().string,onClick:r().func,title:r().string,tagName:r().string,target:r().string,compact:r().bool,children:r().node}),s()(x,"defaultProps",{iconColor:"#787878",className:"",tagName:"div",onClick:()=>{}}),x.Section=m,x.Footer=b,e.Z=x},6025:function(t,e,n){"use strict";n.d(e,{Z:function(){return b}});var i=n(9196),s=n.n(i),o=n(9818),r=n(5736),a=n(5325),c=n(488),l=n(5482),h=n(4328),u=n(7786),d=n(2055),p=n(4839),f=n(9359),g=n(7018),m=n(9010);const __=r.__;function b(){(0,o.useSelect)((t=>t(f.t).getSearchPlanInfo()),[]),(0,o.useSelect)((t=>t(f.t).getSearchModuleStatus()),[]),(0,o.useSelect)((t=>t(f.t).getSearchStats()),[]);const t=(0,o.useSelect)((t=>t(f.t).getSiteAdminUrl())),e=t+"admin.php?page=jetpack_about",n=(0,o.useDispatch)(f.t).updateJetpackSettings,r=(0,o.useSelect)((t=>t(f.t).isInstantSearchPromotionActive())),b=(0,o.useSelect)((t=>t(f.t).getCalypsoSlug())),x=(0,o.useSelect)((t=>t(f.t).getUpgradeBillPeriod())),v=(0,o.useSelect)((t=>t(f.t).supportsOnlyClassicSearch)),y=(0,o.useSelect)((t=>t(f.t).supportsSearch())),_=(0,o.useSelect)((t=>t(f.t).supportsInstantSearch())),k=(0,o.useSelect)((t=>t(f.t).isModuleEnabled())),w=(0,o.useSelect)((t=>t(f.t).isInstantSearchEnabled())),S=(0,o.useSelect)((t=>t(f.t).isUpdatingJetpackSettings())),M=(0,o.useSelect)((t=>t(f.t).isTogglingModule())),C=(0,o.useSelect)((t=>t(f.t).isTogglingInstantSearch())),E=(0,o.useSelect)((t=>t(f.t).getTierMaximumRecords())),P=(0,o.useSelect)((t=>t(f.t).getPostCount())),O=(0,o.useSelect)((t=>t(f.t).getPostTypeBreakdown())),j=(0,o.useSelect)((t=>t(f.t).isResolving("getSearchPlanInfo")||!t(f.t).hasStartedResolution("getSearchPlanInfo")||t(f.t).isResolving("getSearchModuleStatus")||!t(f.t).hasStartedResolution("getSearchModuleStatus")||t(f.t).isResolving("getSearchStats")||!t(f.t).hasStartedResolution("getSearchStats"))),D=(0,o.useDispatch)(f.t).removeNotice,A=(0,o.useSelect)((t=>t(f.t).getNotices()),[]);(0,i.useMemo)((()=>{const t=(0,o.select)(f.t).getAPIRootUrl(),e=(0,o.select)(f.t).getAPINonce();t&&c.ZP.setApiRoot(t),e&&c.ZP.setApiNonce(e),(()=>{const t=(0,o.select)(f.t).getWpcomUser(),e=(0,o.select)(f.t).getBlogId();t&&a.Z.initialize(t.ID,t.login,{blog_id:e})})(),a.Z.tracks.recordEvent("jetpack_search_admin_page_view",{current_version:(0,o.select)(f.t).getVersion()})}),[]);const T=(0,o.useSelect)((t=>t(f.t).isFeatureEnabled("record-meter")));return s().createElement("div",{className:"jp-search-dashboard-page"},j&&s().createElement(u.Z,{className:"jp-search-dashboard-page-loading-spinner",color:"#000",size:32}),!j&&s().createElement(i.Fragment,null,s().createElement("div",{className:"jp-search-dashboard-header jp-search-dashboard-wrap"},s().createElement("div",{className:"jp-search-dashboard-row"},s().createElement("div",{className:"lg-col-span-12 md-col-span-8 sm-col-span-4"},s().createElement("div",{className:"jp-search-dashboard-header__logo-container"},s().createElement(l.Z,{className:"jp-search-dashboard-header__masthead"}))))),s().createElement("div",{className:"jp-search-dashboard-top jp-search-dashboard-wrap"},s().createElement("div",{className:"jp-search-dashboard-row"},s().createElement("div",{className:"jp-search-dashboard-top__title lg-col-span-6 md-col-span-7 sm-col-span-4"},s().createElement("h1",null,__("Help your visitors find exactly what they're looking for, fast","jetpack-search-pkg"))),s().createElement("div",{className:" lg-col-span-6 md-col-span-1 sm-col-span-0"})),s().createElement("div",{className:"jp-search-dashboard-row","aria-hidden":"true"},s().createElement("div",{className:"lg-col-span-1 md-col-span-1 sm-col-span-0"}),s().createElement("div",{className:"jp-search-dashboard-top__mocked-search-interface lg-col-span-10 md-col-span-6 sm-col-span-4"},s().createElement(p.Z,{supportsInstantSearch:_,supportsOnlyClassicSearch:v})),s().createElement("div",{className:"lg-col-span-1 md-col-span-1 sm-col-span-0"}))),T&&s().createElement(m.Z,{postCount:P,postTypeBreakdown:O,tierMaximumRecords:E}),s().createElement("div",{className:"jp-search-dashboard-bottom"},s().createElement(d.Z,{siteAdminUrl:t,updateOptions:n,domain:b,isInstantSearchPromotionActive:r,upgradeBillPeriod:x,supportsOnlyClassicSearch:v,supportsSearch:y,supportsInstantSearch:_,isModuleEnabled:k,isInstantSearchEnabled:w,isSavingEitherOption:S,isTogglingModule:M,isTogglingInstantSearch:C})),s().createElement("div",{className:"jp-search-dashboard-footer jp-search-dashboard-wrap"},s().createElement("div",{className:"jp-search-dashboard-row"},s().createElement(h.Z,{a8cLogoHref:e,moduleName:__("Jetpack Search","jetpack-search-pkg"),className:"lg-col-span-12 md-col-span-8 sm-col-span-4"})))),s().createElement(g.Z,{notices:A,handleLocalNoticeDismissClick:D}))}},1943:function(t,e,n){"use strict";n.d(e,{Z:function(){return f}});var i=n(236),s=n.n(i),o=n(4502),r=n.n(o),a=n(9196),c=n.n(a),l=n(9105),h=n.n(l),u=n(2703),d=n.n(u),p=n(8616);class f extends c().Component{render(){return c().createElement(p.Z,s()({},d()(this.props,"className"),{className:h()(this.props.className,"is-compact")}),this.props.children)}}r()(f,"displayName","CompactFormToggle")},8616:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var i=n(4502),s=n.n(i),o=n(1268),r=n.n(o),a=n(9196),c=n.n(a),l=n(9105),h=n.n(l);class u extends a.Component{constructor(){super(...arguments),s()(this,"state",{}),this.onKeyDown=this.onKeyDown.bind(this),this.onClick=this.onClick.bind(this),this.onLabelClick=this.onLabelClick.bind(this)}UNSAFE_componentWillMount(){this.id=this.constructor.idNum++}onKeyDown(t){this.props.disabled||("Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.props.onChange()),this.props.onKeyDown(t))}onClick(){this.props.disabled||this.props.onChange()}onLabelClick(t){if(this.props.disabled)return;const e=t.target.nodeName.toLowerCase();"a"!==e&&"input"!==e&&"select"!==e&&(t.preventDefault(),this.props.onChange())}render(){const t=this.props.id||"toggle-"+this.id,e=h()("form-toggle",this.props.className,{"is-toggling":this.props.toggling});return c().createElement(a.Fragment,null,c().createElement("div",{className:h()("form-toggle__switch-container",this.props.switchClassNames)},c().createElement("input",{className:e,type:"checkbox",checked:this.props.checked,readOnly:!0,disabled:this.props.disabled}),c().createElement("span",{className:h()("form-toggle__switch",this.props.switchClassNames),disabled:this.props.disabled,id:t,onClick:this.onClick,onKeyDown:this.onKeyDown,role:"checkbox","aria-checked":this.props.checked,"aria-label":this.props["aria-label"],tabIndex:this.props.disabled?-1:0,ref:"toggleSwitch"})),c().createElement("label",{className:h()("form-toggle__label",this.props.labelClassNames),htmlFor:t},c().createElement("span",{className:h()("form-toggle__label-content",this.props.labelClassNames),onClick:this.onLabelClick},this.props.children)))}}s()(u,"propTypes",{onChange:r().func,onKeyDown:r().func,checked:r().bool,disabled:r().bool,id:r().string,className:r().string,toggling:r().bool,"aria-label":r().string,children:r().node,disabledReason:r().node,switchClassNames:r().string,labelClassNames:r().string}),s()(u,"defaultProps",{checked:!1,disabled:!1,onKeyDown:()=>{},onChange:()=>{},disabledReason:""}),s()(u,"idNum",0)},7018:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var i=n(9196),s=n.n(i),o=n(5561),r=n(2332);function a(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{handleLocalNoticeDismissClick:null,notices:Object.freeze([])};const e=t.notices.map((function(e){const n=e=>()=>{e&&t.handleLocalNoticeDismissClick(e.id)};return s().createElement(o.Z,{key:"notice-"+e.id,status:e.status,duration:e.duration||null,text:e.text,isCompact:e.isCompact,onDismissClick:n(e),showDismiss:e.showDismiss},e.button&&s().createElement(r.Z,{href:e.href,onClick:n(e)},e.button))}));return e.length?s().createElement("div",{id:t.id,className:"global-notices"},e):null}},8163:function(t,e,n){"use strict";n.d(e,{b3:function(){return r},mF:function(){return a},RT:function(){return h},tF:function(){return u},Iz:function(){return p},MQ:function(){return f}});var i=n(660),s=n.n(i),o=n(5736);const __=o.__,r="CREATE_NOTICE",a="REMOVE_NOTICE";function c(t,e){var n;let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o={id:i.id||s()(),duration:null!==(n=i.duration)&&void 0!==n?n:2e3,showDismiss:"boolean"!=typeof i.showDismiss||i.showDismiss,isPersistent:i.isPersistent||!1,displayOnNextPage:i.displayOnNextPage||!1,status:t,text:e};return{type:r,notice:o}}function l(t){return{type:a,notice:{id:t}}}const h=c.bind(null,"is-success"),u=c.bind(null,"is-error"),d=(c.bind(null,"is-info"),c.bind(null,"is-warning")),p=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:__("Updating settings…","jetpack-search-pkg");return c("is-info",t,{duration:3e4,id:"search-updating-settings"})},f=()=>l("search-updating-settings");e.ZP={createNotice:c,removeNotice:l,successNotice:h,errorNotice:u,warningNotice:d,updatingNotice:p,removeUpdatingNotice:f}},9689:function(t,e,n){"use strict";var i=n(8163);e.Z=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{notices:[]},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case i.b3:return{...t,notices:[...t.notices,e.notice]};case i.mF:return{...t,notices:t.notices.filter((t=>t.id!==e.notice.id))}}return t}},3584:function(t,e){"use strict";e.Z={getNotices:t=>{var e;return null!==(e=t.notices.notices)&&void 0!==e?e:[]}}},4839:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var i=n(9196),s=n.n(i),o=n(4627),r=n(625);function a(t){let{supportsInstantSearch:e=!0,supportsOnlyClassicSearch:n=!1}=t;const a=n&&!e;return s().createElement(i.Fragment,null,a&&s().createElement(r.Z,null),!a&&s().createElement(o.Z,null))}},4627:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var i=n(9196),s=n.n(i),o=n(5736),r=n(9712),a=n(6435);const __=o.__;function c(){return s().createElement("div",{className:"jp-mocked-instant-search","aria-hidden":"true"},s().createElement("div",{className:"jp-mocked-instant-search__search-controls"},s().createElement("div",{className:"jp-mocked-instant-search__search-icon"},s().createElement(r.Z,{icon:"search",size:24})),s().createElement("div",{className:"jp-mocked-instant-search__search-mock-input"},s().createElement(a.Z,{style:{height:"50px",width:"80%",maxWidth:"212px"}})),s().createElement("div",{className:"jp-mocked-instant-search__close-button"},s().createElement(r.Z,{icon:"cross",size:24}))),s().createElement("div",{className:"jp-mocked-instant-search__search-results"},s().createElement("div",{className:"jp-mocked-instant-search__search-results-primary"},s().createElement("div",{className:"jp-mocked-instant-search__search-results-header"},s().createElement("div",{className:"jp-mocked-instant-search__result-statistics"},
3
  /* translators: %s is replaced with the number of search results */
4
- (0,o.sprintf)(__("Found %s results","jetpack-search-pkg"),"27")),s().createElement("div",{className:"jp-mocked-instant-search__result-sort-list"},s().createElement("span",{className:"jp-mocked-instant-search__result-sort-selected"},__("Relevance","jetpack-search-pkg")),s().createElement("span",null,"·"),s().createElement("span",null,__("Newest","jetpack-search-pkg")),s().createElement("span",null,"·"),s().createElement("span",null,__("Oldest","jetpack-search-pkg")))),s().createElement("div",{className:"jp-mocked-instant-search__search-results-content"},Array.apply(null,Array(3)).map(((t,e)=>s().createElement("div",{className:"jp-mocked-instant-search__search-result",key:e},s().createElement(a.Z,{style:{height:"2.5em",width:"50%",maxWidth:"200px",margin:"0.1em 0.1em 1em 0.1em"}}),s().createElement(a.Z,{style:{height:"1em",width:"90%",margin:"0.1em"}}),s().createElement(a.Z,{style:{height:"1em",width:"70%",margin:"0.1em"}})))))),s().createElement("div",{className:"jp-mocked-instant-search__search-results-secondary"},s().createElement("div",{className:"jp-mocked-instant-search__search-filter-header"},__("Filter options","jetpack-search-pkg")),s().createElement("div",{className:"jp-mocked-instant-search__search-filter-list"},Array.apply(null,Array(2)).map(((t,e)=>s().createElement("div",{className:"jp-mocked-instant-search__search-filter",key:e},s().createElement("label",null,s().createElement("input",{type:"checkbox",disabled:"disabled"})," ",s().createElement(a.Z,{style:{width:"30%"}})))))))))}},625:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var i=n(9196),s=n.n(i),o=n(9712),r=n(6435);function a(){return s().createElement("div",{className:"jp-mocked-legacy-search","aria-hidden":"true"},s().createElement("div",{className:"jp-mocked-legacy-search__search-controls"},s().createElement("div",{className:"jp-mocked-legacy-search__search-icon"},s().createElement(o.Z,{icon:"search",size:24})),s().createElement("div",{className:"jp-mocked-legacy-search__search-input"},s().createElement(r.Z,{style:{height:"50px",width:"80%",maxWidth:"212px"}}))))}},6435:function(t,e,n){"use strict";var i=n(9196),s=n.n(i);e.Z=t=>s().createElement("div",{className:"jp-search-dashboard__text-row-placeholder",style:{display:"inline-block",borderRadius:"10px",maxHeight:"1.5em",width:"100%",height:"1em",backgroundColor:"#E9EFF3",...t.style}})},2055:function(t,e,n){"use strict";n.d(e,{Z:function(){return b}});var i=n(9196),s=n.n(i),o=n(9105),r=n.n(o),a=n(5736),c=n(9307),l=n(5325),h=n(4481),u=n(1354),d=n(7214),p=n(1943),f=n(7819);const __=a.__,g=__("Jetpack Search is an incredibly powerful and customizable replacement for the search capability built into WordPress that helps your visitors find the right content.","jetpack-search-pkg"),m=__("Instant search will allow your visitors to get search results as soon as they start typing. If deactivated, Jetpack Search will still optimize your search results but visitors will have to submit a search query before seeing any results.","jetpack-search-pkg");function b(t){let{siteAdminUrl:e,updateOptions:n,domain:o,isSavingEitherOption:b,isModuleEnabled:x,isInstantSearchEnabled:v,isInstantSearchPromotionActive:y,upgradeBillPeriod:_,supportsOnlyClassicSearch:k,supportsSearch:w,supportsInstantSearch:S,isTogglingModule:M,isTogglingInstantSearch:C}=t;const E=b||!x||!v||!S,P=b||!x,O=encodeURIComponent(e+"admin.php?page=jetpack-search"),j=(0,h.Z)("monthly"===_?"jetpack-search-monthly":"jetpack-search",{site:o}),D=(0,i.useCallback)((()=>{const t={module_active:!x};v!==!x&&(t.instant_search_enabled=!x&&S),n(t),l.Z.tracks.recordEvent("jetpack_search_module_toggle",t)}),[S,x,n,v]),A=(0,i.useCallback)((()=>{const t={instant_search_enabled:S&&!v};t.instant_search_enabled&&(t.module_active=!0),n(t),l.Z.tracks.recordEvent("jetpack_search_instant_toggle",t)}),[S,v,n]);return s().createElement("div",{className:"jp-form-settings-group jp-form-search-settings-group"},s().createElement(d.Z,{className:r()({"jp-form-has-child":!0,"jp-form-settings-disable":!1})},s().createElement("div",{className:"jp-form-search-settings-group-inside"},s().createElement("div",{className:"jp-form-search-settings-group__toggle is-search jp-search-dashboard-wrap"},s().createElement("div",{className:"jp-search-dashboard-row"},s().createElement("div",{className:"lg-col-span-2 md-col-span-1 sm-col-span-0"}),s().createElement(p.Z,{checked:x&&w,disabled:b||!w,onChange:D,toggling:M,className:"is-search-admin",switchClassNames:"lg-col-span-1 md-col-span-1 sm-col-span-1",labelClassNames:" lg-col-span-7 md-col-span-5 sm-col-span-3","aria-label":__("Enable Jetpack Search","jetpack-search-pkg")},__("Enable Jetpack Search","jetpack-search-pkg")),s().createElement("div",{className:"lg-col-span-2 md-col-span-1 sm-col-span-0"})),s().createElement("div",{className:"jp-search-dashboard-row"},s().createElement("div",{className:"lg-col-span-3 md-col-span-2 sm-col-span-1"}),s().createElement("div",{className:"jp-form-search-settings-group__toggle-description lg-col-span-7 md-col-span-5 sm-col-span-3"},s().createElement("p",{className:"jp-form-search-settings-group__toggle-explanation"},g)),s().createElement("div",{className:"lg-col-span-2 md-col-span-1 sm-col-span-0"}))),s().createElement("div",{className:"jp-form-search-settings-group__toggle is-instant-search jp-search-dashboard-wrap"},s().createElement("div",{className:"jp-search-dashboard-row"},s().createElement("div",{className:"lg-col-span-2 md-col-span-1 sm-col-span-0"}),s().createElement(p.Z,{checked:x&&v&&S,disabled:b||!S,onChange:A,toggling:C,className:"is-search-admin",switchClassNames:"lg-col-span-1 md-col-span-1 sm-col-span-1",labelClassNames:" lg-col-span-7 md-col-span-5 sm-col-span-3","aria-label":__("Enable instant search experience (recommended)","jetpack-search-pkg")},(0,c.createInterpolateElement)(__("Enable instant search experience <span>(recommended)</span>","jetpack-search-pkg"),{span:s().createElement("span",null)}))),s().createElement("div",{className:"jp-search-dashboard-row"},s().createElement("div",{className:"lg-col-span-3 md-col-span-2 sm-col-span-1"}),s().createElement("div",{className:"jp-form-search-settings-group__toggle-description lg-col-span-7 md-col-span-5 sm-col-span-3"},S&&s().createElement(i.Fragment,null,s().createElement("p",{className:"jp-form-search-settings-group__toggle-explanation"},m)),!S&&y&&s().createElement(f.Z,{href:j,upgrade:k})),s().createElement("div",{className:"lg-col-span-2 md-col-span-1 sm-col-span-0"})),S&&s().createElement("div",{className:"jp-form-search-settings-group-buttons jp-search-dashboard-row"},s().createElement("div",{className:"lg-col-span-3 md-col-span-2 sm-col-span-1"}),s().createElement(u.Z,{className:"jp-form-search-settings-group-buttons__button is-customize-search lg-col-span-4 md-col-span-5 sm-col-span-3",href:E?void 0:(0,a.sprintf)("admin.php?page=jetpack-search-configure",O),disabled:E},s().createElement("span",null,__("Customize search results","jetpack-search-pkg"))),s().createElement("div",{className:"lg-col-span-0 md-col-span-1 sm-col-span-0"}),s().createElement("div",{className:"lg-col-span-0 md-col-span-2 sm-col-span-1"}),s().createElement(u.Z,{className:"jp-form-search-settings-group-buttons__button is-widgets-editor lg-col-span-3 md-col-span-5 sm-col-span-3",href:P?void 0:(0,a.sprintf)("widgets.php",O),disabled:P},s().createElement("span",null,__("Edit sidebar widgets","jetpack-search-pkg"))),s().createElement("div",{className:"lg-col-span-2 md-col-span-1 sm-col-span-0"}))))))}},5561:function(t,e,n){"use strict";n.d(e,{Z:function(){return f}});var i=n(4502),s=n.n(i),o=n(1268),r=n.n(o),a=n(9196),c=n.n(a),l=n(9105),h=n.n(l),u=n(515),d=n.n(u),p=n(9712);class f extends c().Component{constructor(){super(...arguments),s()(this,"dismissTimeout",null),s()(this,"getIcon",(()=>{let t;switch(this.props.status){case"is-info":default:t="info";break;case"is-success":t="checkmark";break;case"is-error":case"is-warning":t="notice"}return t})),s()(this,"clearText",(t=>"string"==typeof t?t.replace(/(<([^>]+)>)/gi,""):t)),s()(this,"onKeyDownCallback",(t=>e=>{13!==e.which&&32!==e.which||t&&t(e)}))}componentDidMount(){this.props.duration>0&&(this.dismissTimeout=setTimeout(this.props.onDismissClick,this.props.duration))}componentWillUnmount(){this.dismissTimeout&&clearTimeout(this.dismissTimeout)}render(){const{children:t,className:e,icon:n,isCompact:i,onDismissClick:s,showDismiss:o=!i,status:r,text:a,dismissText:l}=this.props,u=h()("dops-notice",r,e,{"is-compact":i,"is-dismissable":o});return c().createElement("div",{className:u},c().createElement("span",{className:"dops-notice__icon-wrapper"},c().createElement(p.Z,{className:"dops-notice__icon",icon:n||this.getIcon(),size:24})),c().createElement("span",{className:"dops-notice__content"},c().createElement("span",{className:"dops-notice__text"},a?this.clearText(a):t)),a?t:null,o&&c().createElement("span",{role:"button",onKeyDown:this.onKeyDownCallback(s),tabIndex:"0",className:"dops-notice__dismiss",onClick:s},c().createElement(p.Z,{icon:"cross",size:24}),c().createElement("span",{className:"dops-notice__screen-reader-text screen-reader-text"},l)))}}s()(f,"displayName","SimpleNotice"),s()(f,"defaultProps",{duration:0,status:null,showDismiss:!0,className:"",onDismissClick:d()}),s()(f,"propTypes",{status:r().string,showDismiss:r().bool,isCompact:r().bool,duration:r().number,text:r().oneOfType([r().oneOfType([r().string,r().node]),r().arrayOf(r().oneOfType([r().string,r().node]))]),icon:r().string,onDismissClick:r().func,className:r().string})},2332:function(t,e,n){"use strict";n.d(e,{Z:function(){return h}});var i=n(4502),s=n.n(i),o=n(1268),r=n.n(o),a=n(9196),c=n.n(a),l=n(9712);class h extends c().Component{render(){const t={className:"dops-notice__action",href:this.props.href,onClick:this.props.onClick};return this.props.external&&(t.target="_blank"),c().createElement("a",t,c().createElement("span",null,this.props.children),this.props.icon&&c().createElement(l.Z,{icon:this.props.icon,size:24}),this.props.external&&c().createElement(l.Z,{icon:"external",size:24}))}}s()(h,"displayName","NoticeAction"),s()(h,"propTypes",{href:r().string,onClick:r().func,external:r().bool,icon:r().string}),s()(h,"defaultProps",{external:!1})},7724:function(t,e,n){"use strict";n.d(e,{v:function(){return c}});var i=n(9196),s=n.n(i),o=n(9506),r=n(5736);const __=r.__,a={type:"bar",options:{borderRadius:100,borderSkipped:"middle",indexAxis:"y",maintainAspectRatio:!1,aspectRatio:1.3,scales:{x:{stacked:!0,grid:{display:!1,drawBorder:!1},ticks:{display:!1}},y:{stacked:!0,grid:{display:!1,drawBorder:!1},ticks:{display:!1}}},plugins:{title:{display:!1},subtitle:{display:!1},legend:{display:!1,labels:{filter:function(t){return!t.text.includes(__("Remaining","jetpack-search-pkg"))}}}}}};class c extends s().Component{constructor(t){super(t),this.canvasRef=s().createRef()}componentDidMount(){this.myChart=new o.Z(this.canvasRef.current,{...a,data:{labels:[""],datasets:this.props.data.map((t=>t.data))}}),this.forceUpdate()}getLegendItems(){var t,e;return null!==(t=null===(e=this.myChart)||void 0===e?void 0:e.legend.legendItems)&&void 0!==t?t:[]}render(){var t,e;return!1===this.props.isValid?null:s().createElement("div",{className:"jp-search-bar-chart"},s().createElement("div",{className:"jp-search-bar-chart__container"},s().createElement("canvas",{ref:this.canvasRef},s().createElement("p",null,__("Text alternative for this chart is in the data table below","jetpack-search-pkg")),s().createElement("table",{border:"0",cellPadding:"5",summary:"This is the text alternative for the canvas graphic."},s().createElement("caption",null,__("Records Indexed for Jetpack Search","jetpack-search-pkg")),s().createElement("tbody",null,s().createElement("tr",null,s().createElement("th",{scope:"col"},__("Post type","jetpack-search-pkg")),(null===(t=this.state)||void 0===t?void 0:t.legendItems.length)&&this.state.legendItems.map((t=>s().createElement("th",{key:t.text,scope:"col"},t.text)))),s().createElement("tr",null,s().createElement("th",{scope:"row"},__("Record count","jetpack-search-pkg")),(null===(e=this.state)||void 0===e?void 0:e.legendItems.length)&&this.state.legendItems.map((t=>s().createElement("td",{key:t.text},this.props.data[t.datasetIndex].data.data)))))))),s().createElement("div",{className:"jp-search-chart-legend__container"},s().createElement("ul",{className:"jp-search-chart-legend"},this.getLegendItems().map((t=>s().createElement("li",{key:t.text},s().createElement("div",{className:"jp-search-chart-legend__box",style:{backgroundColor:t.fillStyle}}),s().createElement("span",{className:"jp-search-chart-legend__label",children:t.text}),s().createElement("span",{className:"jp-search-chart-legend__count"},"(",this.props.data[t.datasetIndex].data.data,")")))))))}}},9010:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var i=n(9196),s=n.n(i),o=n(5736),r=n(7724),a=n(5935),c=n(5324);const __=o.__;function l(t){let{postCount:e,postTypeBreakdown:n,tierMaximumRecords:o}=t;const[l,h]=(0,i.useState)((0,a.ZP)((0,c.Z)().data,(0,c.Z)().planInfo));return s().createElement("div",{className:"jp-search-record-meter jp-search-dashboard-wrap","data-testid":"record-meter"},s().createElement("div",{className:"jp-search-dashboard-row"},s().createElement("div",{className:"lg-col-span-2 md-col-span-1 sm-col-span-0"}),s().createElement("div",{className:"jp-search-record-meter__title lg-col-span-8 md-col-span-6 sm-col-span-4"},s().createElement("h2",null,__("Your search records","jetpack-search-pkg")),o&&s().createElement("div",null,s().createElement(r.v,{data:l.data,isValid:l.isValid,postTypeBreakdown:n}),"Tier maximum records: ",s().createElement("strong",null,o)),e&&s().createElement("p",null,"Post count: ",s().createElement("strong",null,e))),s().createElement("div",{className:"lg-col-span-2 md-col-span-1 sm-col-span-0"})))}},5324:function(t,e,n){"use strict";function i(){return{data:{last_indexed_date:"2021-07-06T19:35:18+00:00",post_count:249,post_type_breakdown:{post:104,page:17,attachment:15,anotherone:21,averyveryextrasuperlongernamesposttypethatgoesonandonandone:38,more:22,andmore:4,moremoremore:2,andthenmore:6,somany:20}},planInfo:{search_subscriptions:[{ID:"17189738",user_id:"6487293",blog_id:"186671816",product_id:"2105",expiry:"2022-07-09",subscribed_date:"2021-06-09 07:33:14",renew:!0,auto_renew:!0,ownership_id:"27808225",most_recent_renew_date:"",subscription_status:"active",product_name:"Jetpack Search",product_name_en:"Jetpack Search",product_slug:"jetpack_search_monthly",product_type:"search",cost:19,currency:"NZD",bill_period:"31",available:"yes",multi:!0,support_document:null,is_instant_search:!0,tier:2e3}],supports_instant_search:!0,supports_only_classic_search:!1,supports_search:!0,default_upgrade_bill_period:"monthly"}}}n.d(e,{Z:function(){return i}})},5935:function(t,e,n){"use strict";n.d(e,{ZP:function(){return s}});const i=n(7655);function s(t,e){const n=[],s=[];let a=0,c=!0,l=!0,h=!0;"object"==typeof t&&"object"==typeof t.post_type_breakdown&&"object"==typeof e||(c=!1),void 0!==t.last_indexed_date&&void 0!==t.post_count||(l=!1);const u=c&&l?Object.keys(t.post_type_breakdown).length:0;0===u&&(h=!1);const d=Object.values(e.search_subscriptions[0])[22],p=[i.colors["Blue 30"],i.colors["Orange 30"],i.colors["WooCommerce Purple 30"],i.colors["Green 30"],i.colors["Yellow 30"]];if(u>0&&c&&l){for(let e=0;e<u;e++){const n=Object.values(t.post_type_breakdown)[e],i=(f=Object.keys(t.post_type_breakdown)[e]).charAt(0).toUpperCase()+f.slice(1);s.push({data:r(n,p[e],i)}),a+=n}const e=function(t,e,n){t.sort(((t,e)=>t.data.data[0]<e.data.data[0]?1:-1));const i=n<=e?n:e;return{includedItems:t.slice(0,i),otherItems:t.slice(i,e)}}(s,u,5);for(const t in e.includedItems)n.push({data:r(e.includedItems[t].data.data[0],p[t],e.includedItems[t].data.label)});e.otherItems.length>0&&n.push({data:r(o(e.otherItems),i.colors["Gray 30"],"Other")}),d-a>0&&n.push({data:r(d-a,i.colors["Gray 0"],"Remaining")})}var f;return{data:n,tier:d,recordCount:a,hasBeenIndexed:l,hasValidData:c,hasItems:h,isValid:l&&c&&h}}function o(t){let e=0;for(const n in t)e=t[n].data.data[0]+e;return e}function r(t,e,n){return{data:[t],label:n,backgroundColor:e}}},7819:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var i=n(9196),s=n.n(i),o=n(5736);const __=o.__;function r(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{upgrade:!0};return s().createElement("a",{className:"jp-instant-search-upsell-nudge jp-search-dashboard-cut",href:t.href},s().createElement("span",null,__("Offer instant search results to your visitors as soon as they start typing. ","jetpack-search-pkg")),s().createElement("span",null,t.upgrade&&s().createElement("b",null,__("Upgrade to Jetpack Instant Search now","jetpack-search-pkg")),!t.upgrade&&s().createElement("b",null,__("Purchase Jetpack Instant Search now","jetpack-search-pkg"))))}},3801:function(t,e,n){"use strict";var i=n(5503),s=n(367),o=n(7430),r=n(8163);const a={...i.ZP,...s.ZP,...o.ZP,...r.ZP};e.Z=a},5503:function(t,e,n){"use strict";n.d(e,{dz:function(){return h},ff:function(){return u}});var i=n(9082),s=n.n(i),o=n(9818),r=n(5736),a=n(4455),c=n(8163),l=n(9359);const __=r.__,h="SET_JETPACK_SETTINGS";function u(t){return{type:h,options:t}}e.ZP={updateJetpackSettings:function*(t){try{yield(0,c.Iz)(),yield u({is_updating:!0}),yield u(t),yield(0,a.RF)(t);const e=yield(0,a.es)();return yield u(e),(0,c.RT)(__("Updated settings.","jetpack-search-pkg"))}catch(t){const e=s()((0,o.select)(l.t).getSearchModuleStatus(),["module_active","instant_search_enabled"]);return yield u(e),(0,c.tF)(__("Error Update settings…","jetpack-search-pkg"))}finally{yield(0,c.MQ)(),yield u({is_updating:!1})}},setJetpackSettings:u}},367:function(t,e,n){"use strict";n.d(e,{$w:function(){return i},og:function(){return s}});const i="SET_SEARCH_PLAN_INFO";function s(t){return{type:"SET_SEARCH_PLAN_INFO",options:t}}e.ZP={setSearchPlanInfo:s}},7430:function(t,e,n){"use strict";n.d(e,{Em:function(){return i},XV:function(){return s}});const i="SET_SEARCH_STATS";function s(t){return{type:"SET_SEARCH_STATS",options:t}}e.ZP={setSearchStats:s}},4455:function(t,e,n){"use strict";n.d(e,{es:function(){return c},RF:function(){return l},FZ:function(){return h},Yt:function(){return u}});var i=n(488);const s="FETCH_JETPACK_SETTINGS",o="UPDATE_JETPACK_SETTINGS",r="FETCH_SEARCH_PLAN_INFO",a="FETCH_SEARCH_STATS",c=()=>({type:s}),l=t=>({type:o,settings:t}),h=()=>({type:r}),u=()=>({type:a});e.ZP={[s]:function(){return i.ZP.fetchSearchSettings()},[o]:function(t){return i.ZP.updateSearchSettings(t.settings)},[r]:function(){return i.ZP.fetchSearchPlanInfo()},[a]:function(){return i.ZP.fetchSearchStats()}}},9359:function(t,e,n){"use strict";n.d(e,{t:function(){return c},i:function(){return l}});var i=n(8743),s=n(3801),o=n(1343),r=n(4914),a=n(4455);const c="jetpack-search-plugin",l={reducer:i.Z,actions:s.Z,selectors:o.Z,resolvers:r.ZP,controls:a.ZP,initialState:window.JETPACK_SEARCH_DASHBOARD_INITIAL_STATE||{}}},541:function(t,e){"use strict";e.Z=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t}},8743:function(t,e,n){"use strict";var i=n(9818),s=n(2233),o=n(9745),r=n(2416),a=n(2134),c=n(4863),l=n(541),h=n(9689);const u=(0,i.combineReducers)({siteData:s.Z,jetpackSettings:r.Z,sitePlan:a.Z,siteStats:c.Z,userData:o.Z,features:l.Z,notices:h.Z});e.Z=u},2416:function(t,e,n){"use strict";var i=n(5503);e.Z=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return e.type===i.dz?{...t,...e.options,is_toggling_module:t.module_active!==e.options.module_active&&!!e.options.is_updating,is_toggling_instant_search:t.instant_search_enabled!==e.options.instant_search_enabled&&!!e.options.is_updating}:t}},2233:function(t,e){"use strict";e.Z=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t}},2134:function(t,e,n){"use strict";var i=n(367);e.Z=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return e.type===i.$w?{...t,...e.options}:t}},4863:function(t,e,n){"use strict";var i=n(7430);e.Z=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return e.type===i.Em?{...t,...e.options}:t}},9745:function(t,e){"use strict";e.Z=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t}},4914:function(t,e,n){"use strict";var i=n(5736),s=n(4455),o=n(5503),r=n(367),a=n(7430),c=n(8163);const __=i.__;e.ZP={getSearchModuleStatus:function*(){try{const t=yield(0,s.es)();if(t)return(0,o.ff)(t)}catch(t){return(0,c.tF)(__("Error fetching settings…","jetpack-search-pkg"))}},getSearchPlanInfo:function*(){try{const t=yield(0,s.FZ)();if(t)return(0,r.og)(t)}catch(t){return(0,c.tF)(__("Error fetching search plan…","jetpack-search-pkg"))}},getSearchStats:function*(){try{const t=yield(0,s.Yt)();if(t)return(0,a.XV)(t)}catch(t){return(0,c.tF)(__("Error fetching search stats","jetpack-search-pkg"))}}}},5808:function(t,e){"use strict";const n={isFeatureEnabled:(t,e)=>Array.isArray(t.features)&&t.features.includes(e)};e.Z=n},1343:function(t,e,n){"use strict";var i=n(3851),s=n(1759),o=n(8125),r=n(397),a=n(3584),c=n(5808),l=n(1766);const h={...i.Z,...s.Z,...o.Z,...r.Z,...a.Z,...c.Z,...l.Z};e.Z=h},1759:function(t,e){"use strict";e.Z={getSearchModuleStatus:t=>t.jetpackSettings,isModuleEnabled:t=>t.jetpackSettings.module_active,isInstantSearchEnabled:t=>t.jetpackSettings.instant_search_enabled,isUpdatingJetpackSettings:t=>t.jetpackSettings.is_updating,isTogglingModule:t=>t.jetpackSettings.is_toggling_module,isTogglingInstantSearch:t=>t.jetpackSettings.is_toggling_instant_search}},3851:function(t,e){"use strict";e.Z={getAPIRootUrl:t=>{var e,n;return null!==(e=null===(n=t.siteData)||void 0===n?void 0:n.WP_API_root)&&void 0!==e?e:null},getAPINonce:t=>{var e,n;return null!==(e=null===(n=t.siteData)||void 0===n?void 0:n.WP_API_nonce)&&void 0!==e?e:null},getRegistrationNonce:t=>{var e,n;return null!==(e=null===(n=t.siteData)||void 0===n?void 0:n.registrationNonce)&&void 0!==e?e:null},getSiteAdminUrl:t=>{var e,n;return null!==(e=null===(n=t.siteData)||void 0===n?void 0:n.adminUrl)&&void 0!==e?e:null},isInstantSearchPromotionActive:t=>{var e,n;return null===(e=null===(n=t.siteData)||void 0===n?void 0:n.showPromotions)||void 0===e||e},getBlogId:t=>{var e,n;return null!==(e=null===(n=t.siteData)||void 0===n?void 0:n.blogId)&&void 0!==e?e:0},getVersion:t=>{var e,n;return null!==(e=null===(n=t.siteData)||void 0===n?void 0:n.version)&&void 0!==e?e:"development"},getCalypsoSlug:t=>{var e;return null===(e=t.siteData)||void 0===e?void 0:e.calypsoSlug}}},8125:function(t,e){"use strict";e.Z={getSearchPlanInfo:t=>t.sitePlan,hasBusinessPlan:t=>t.sitePlan.supports_only_classic_search,hasActiveSearchPurchase:t=>t.sitePlan.supports_instant_search,supportsInstantSearch:t=>t.sitePlan.supports_instant_search,supportsOnlyClassicSearch:t=>t.sitePlan.supports_only_classic_search,getUpgradeBillPeriod:t=>{var e;return null===(e=t.sitePlan)||void 0===e?void 0:e.default_upgrade_bill_period},supportsSearch:t=>t.sitePlan.supports_instant_search||t.sitePlan.supports_only_classic_search,getTierMaximumRecords:t=>t.sitePlan.tier_maximum_records}},1766:function(t,e){"use strict";e.Z={getSearchStats:t=>t.siteStats,getPostCount:t=>{var e;return null===(e=t.siteStats)||void 0===e?void 0:e.post_count},getPostTypeBreakdown:t=>{var e;return null===(e=t.siteStats)||void 0===e?void 0:e.post_type_breakdown}}},397:function(t,e){"use strict";e.Z={getWpcomUser:t=>{var e,n;return null===(e=t.userData)||void 0===e||null===(n=e.currentUser)||void 0===n?void 0:n.wpcomUser}}},9712:function(t,e,n){"use strict";var i=n(4502),s=n.n(i),o=n(9196),r=n.n(o),a=n(5736);const __=a.__;class c extends o.Component{needsOffset(t,e){return["gridicons-calendar","gridicons-cart","gridicons-folder","gridicons-info","gridicons-posts","gridicons-star-outline","gridicons-star"].indexOf(t)>=0&&e%18==0}getSVGTitle(t){if("title"in this.props)return this.props.title?r().createElement("title",null,this.props.title):null;switch(t){default:return null;case"gridicons-audio":return r().createElement("title",null,__("Has audio.","jetpack-search-pkg"));case"gridicons-calendar":return r().createElement("title",null,__("Is an event.","jetpack-search-pkg"));case"gridicons-cart":return r().createElement("title",null,__("Is a product.","jetpack-search-pkg"));case"chevron-down":return r().createElement("title",null,__("Show filters","jetpack-search-pkg"));case"gridicons-comment":return r().createElement("title",null,__("Matching comment.","jetpack-search-pkg"));case"gridicons-cross":return r().createElement("title",null,__("Close search results","jetpack-search-pkg"));case"gridicons-filter":return r().createElement("title",null,__("Toggle search filters.","jetpack-search-pkg"));case"gridicons-folder":return r().createElement("title",null,__("Category","jetpack-search-pkg"));case"gridicons-image-multiple":return r().createElement("title",null,__("Has multiple images.","jetpack-search-pkg"));case"gridicons-image":return r().createElement("title",null,__("Has an image.","jetpack-search-pkg"));case"gridicons-page":return r().createElement("title",null,__("Page","jetpack-search-pkg"));case"gridicons-post":return r().createElement("title",null,__("Post","jetpack-search-pkg"));case"gridicons-jetpack-search":case"gridicons-search":return r().createElement("title",null,__("Magnifying Glass","jetpack-search-pkg"));case"gridicons-tag":return r().createElement("title",null,__("Tag","jetpack-search-pkg"));case"gridicons-video":return r().createElement("title",null,__("Has a video.","jetpack-search-pkg"))}}renderIcon(t){switch(t){default:return null;case"gridicons-audio":return r().createElement("g",null,r().createElement("path",{d:"M8 4v10.184C7.686 14.072 7.353 14 7 14c-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V7h7v4.184c-.314-.112-.647-.184-1-.184-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V4H8z"}));case"gridicons-block":return r().createElement("g",null,r().createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM4 12c0-4.418 3.582-8 8-8 1.848 0 3.545.633 4.9 1.686L5.686 16.9C4.633 15.545 4 13.848 4 12zm8 8c-1.848 0-3.546-.633-4.9-1.686L18.314 7.1C19.367 8.455 20 10.152 20 12c0 4.418-3.582 8-8 8z"}));case"gridicons-calendar":return r().createElement("g",null,r().createElement("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.105 0-2 .896-2 2v13c0 1.104.895 2 2 2h14c1.104 0 2-.896 2-2V6c0-1.104-.896-2-2-2zm0 15H5V8h14v11z"}));case"gridicons-cart":return r().createElement("g",null,r().createElement("path",{d:"M9 20c0 1.1-.9 2-2 2s-1.99-.9-1.99-2S5.9 18 7 18s2 .9 2 2zm8-2c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm.396-5c.937 0 1.75-.65 1.952-1.566L21 5H7V4c0-1.105-.895-2-2-2H3v2h2v11c0 1.105.895 2 2 2h12c0-1.105-.895-2-2-2H7v-2h10.396z"}));case"gridicons-checkmark":return r().createElement("g",null,r().createElement("path",{d:"M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658C17.823 3.39 15.075 2 12 2 6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10c0-1.528-.353-2.97-.966-4.266L11 17.768z"}));case"gridicons-chevron-down":return r().createElement("g",null,r().createElement("path",{d:"M20 9l-8 8-8-8 1.414-1.414L12 14.172l6.586-6.586"}));case"gridicons-comment":return r().createElement("g",null,r().createElement("path",{d:"M3 6v9c0 1.105.895 2 2 2h9v5l5.325-3.804c1.05-.75 1.675-1.963 1.675-3.254V6c0-1.105-.895-2-2-2H5c-1.105 0-2 .895-2 2z"}));case"gridicons-cross":return r().createElement("g",null,r().createElement("path",{d:"M18.36 19.78L12 13.41l-6.36 6.37-1.42-1.42L10.59 12 4.22 5.64l1.42-1.42L12 10.59l6.36-6.36 1.41 1.41L13.41 12l6.36 6.36z"}));case"gridicons-filter":return r().createElement("g",null,r().createElement("path",{d:"M10 19h4v-2h-4v2zm-4-6h12v-2H6v2zM3 5v2h18V5H3z"}));case"gridicons-folder":return r().createElement("g",null,r().createElement("path",{d:"M18 19H6c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2h7c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2z"}));case"gridicons-image":return r().createElement("g",null,r().createElement("path",{d:"M13 9.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5-.672 1.5-1.5 1.5-1.5-.672-1.5-1.5zM22 6v12c0 1.105-.895 2-2 2H4c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h16c1.105 0 2 .895 2 2zm-2 0H4v7.444L8 9l5.895 6.55 1.587-1.85c.798-.932 2.24-.932 3.037 0L20 15.426V6z"}));case"gridicons-image-multiple":return r().createElement("g",null,r().createElement("path",{d:"M15 7.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5S17.328 9 16.5 9 15 8.328 15 7.5zM4 20h14c0 1.105-.895 2-2 2H4c-1.1 0-2-.9-2-2V8c0-1.105.895-2 2-2v14zM22 4v12c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zM8 4v6.333L11 7l4.855 5.395.656-.73c.796-.886 2.183-.886 2.977 0l.513.57V4H8z"}));case"gridicons-info":return r().createElement("g",null,r().createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}));case"gridicons-jetpack-search":return r().createElement("g",null,r().createElement("path",{d:"M0 9.257C0 4.15 4.151 0 9.257 0c5.105 0 9.256 4.151 9.256 9.257a9.218 9.218 0 01-2.251 6.045l.034.033h1.053L24 22.01l-1.986 1.989-6.664-6.662v-1.055l-.033-.033a9.218 9.218 0 01-6.06 2.264C4.15 18.513 0 14.362 0 9.257zm4.169 1.537h4.61V1.82l-4.61 8.973zm5.547-3.092v8.974l4.61-8.974h-4.61z"}));case"gridicons-pages":return r().createElement("g",null,r().createElement("path",{d:"M16 8H8V6h8v2zm0 2H8v2h8v-2zm4-6v12l-6 6H6c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zm-2 10V4H6v16h6v-4c0-1.105.895-2 2-2h4z"}));case"gridicons-posts":return r().createElement("g",null,r().createElement("path",{d:"M16 19H3v-2h13v2zm5-10H3v2h18V9zM3 5v2h11V5H3zm14 0v2h4V5h-4zm-6 8v2h10v-2H11zm-8 0v2h5v-2H3z"}));case"gridicons-search":return r().createElement("g",null,r().createElement("path",{d:"M21 19l-5.154-5.154C16.574 12.742 17 11.42 17 10c0-3.866-3.134-7-7-7s-7 3.134-7 7 3.134 7 7 7c1.42 0 2.742-.426 3.846-1.154L19 21l2-2zM5 10c0-2.757 2.243-5 5-5s5 2.243 5 5-2.243 5-5 5-5-2.243-5-5z"}));case"gridicons-star-outline":return r().createElement("g",null,r().createElement("path",{d:"M12 6.308l1.176 3.167.347.936.997.042 3.374.14-2.647 2.09-.784.62.27.963.91 3.25-2.813-1.872-.83-.553-.83.552-2.814 1.87.91-3.248.27-.962-.783-.62-2.648-2.092 3.374-.14.996-.04.347-.936L12 6.308M12 2L9.418 8.953 2 9.257l5.822 4.602L5.82 21 12 16.89 18.18 21l-2.002-7.14L22 9.256l-7.418-.305L12 2z"}));case"gridicons-star":return r().createElement("g",null,r().createElement("path",{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304"}));case"gridicons-tag":return r().createElement("g",null,r().createElement("path",{d:"M20 2.007h-7.087c-.53 0-1.04.21-1.414.586L2.592 11.5c-.78.78-.78 2.046 0 2.827l7.086 7.086c.78.78 2.046.78 2.827 0l8.906-8.906c.376-.374.587-.883.587-1.413V4.007c0-1.105-.895-2-2-2zM17.007 9c-1.105 0-2-.895-2-2s.895-2 2-2 2 .895 2 2-.895 2-2 2z"}));case"gridicons-video":return r().createElement("g",null,r().createElement("path",{d:"M20 4v2h-2V4H6v2H4V4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2v-2h2v2h12v-2h2v2c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zM6 16H4v-3h2v3zm0-5H4V8h2v3zm4 4V9l4.5 3-4.5 3zm10 1h-2v-3h2v3zm0-5h-2V8h2v3z"}))}}render(){const{size:t=24,className:e=""}=this.props,n=this.props.height||t,i=this.props.width||t,s=this.props.style||{height:n,width:i},o="gridicons-"+this.props.icon;let a=["gridicon",o,e];return this.needsOffset(o,t)&&a.push("needs-offset"),a=a.join(" "),r().createElement("svg",{className:a,focusable:this.props.focusable,height:n,onClick:this.props.onClick,style:s,viewBox:"0 0 24 24",width:i,xmlns:"http://www.w3.org/2000/svg","aria-hidden":this.props["aria-hidden"]},this.getSVGTitle(o),this.renderIcon(o))}}s()(c,"defaultProps",{"aria-hidden":"false",focusable:"true"}),e.Z=c},6317:function(t){"use strict";if(void 0==={consumer_slug:"jetpack-search-package"}){var e=new Error('Cannot find module \'{"consumer_slug":"jetpack-search-package"}\'');throw e.code="MODULE_NOT_FOUND",e}t.exports={consumer_slug:"jetpack-search-package"}},9196:function(t){"use strict";t.exports=window.React},1850:function(t){"use strict";t.exports=window.ReactDOM},2819:function(t){"use strict";t.exports=window.lodash},9818:function(t){"use strict";t.exports=window.wp.data},9307:function(t){"use strict";t.exports=window.wp.element},5736:function(t){"use strict";t.exports=window.wp.i18n},6483:function(t){"use strict";t.exports=window.wp.url},7655:function(t){"use strict";t.exports=JSON.parse('{"version":"2.5.0","colors":{"White":"#fff","Black":"#000","Gray":"#646970","Gray 0":"#f6f7f7","Gray 5":"#dcdcde","Gray 10":"#c3c4c7","Gray 20":"#a7aaad","Gray 30":"#8c8f94","Gray 40":"#787c82","Gray 50":"#646970","Gray 60":"#50575e","Gray 70":"#3c434a","Gray 80":"#2c3338","Gray 90":"#1d2327","Gray 100":"#101517","Blue":"#0675c4","Blue 0":"#e9f0f5","Blue 5":"#bbe0fa","Blue 10":"#91caf2","Blue 20":"#68b3e8","Blue 30":"#399ce3","Blue 40":"#1689db","Blue 50":"#0675c4","Blue 60":"#055d9c","Blue 70":"#044b7a","Blue 80":"#02395c","Blue 90":"#01283d","Blue 100":"#001621","Purple":"#984a9c","Purple 0":"#f2e9ed","Purple 5":"#ebcee0","Purple 10":"#e3afd5","Purple 20":"#d48fc8","Purple 30":"#c475bd","Purple 40":"#b35eb1","Purple 50":"#984a9c","Purple 60":"#7c3982","Purple 70":"#662c6e","Purple 80":"#4d2054","Purple 90":"#35163b","Purple 100":"#1e0c21","Pink":"#c9356e","Pink 0":"#f5e9ed","Pink 5":"#f2ceda","Pink 10":"#f7a8c3","Pink 20":"#f283aa","Pink 30":"#eb6594","Pink 40":"#e34c84","Pink 50":"#c9356e","Pink 60":"#ab235a","Pink 70":"#8c1749","Pink 80":"#700f3b","Pink 90":"#4f092a","Pink 100":"#260415","Red":"#d63638","Red 0":"#f7ebec","Red 5":"#facfd2","Red 10":"#ffabaf","Red 20":"#ff8085","Red 30":"#f86368","Red 40":"#e65054","Red 50":"#d63638","Red 60":"#b32d2e","Red 70":"#8a2424","Red 80":"#691c1c","Red 90":"#451313","Red 100":"#240a0a","Orange":"#b26200","Orange 0":"#f5ece6","Orange 5":"#f7dcc6","Orange 10":"#ffbf86","Orange 20":"#faa754","Orange 30":"#e68b28","Orange 40":"#d67709","Orange 50":"#b26200","Orange 60":"#8a4d00","Orange 70":"#704000","Orange 80":"#543100","Orange 90":"#361f00","Orange 100":"#1f1200","Yellow":"#9d6e00","Yellow 0":"#f5f1e1","Yellow 5":"#f5e6b3","Yellow 10":"#f2d76b","Yellow 20":"#f0c930","Yellow 30":"#deb100","Yellow 40":"#c08c00","Yellow 50":"#9d6e00","Yellow 60":"#7d5600","Yellow 70":"#674600","Yellow 80":"#4f3500","Yellow 90":"#320","Yellow 100":"#1c1300","Green":"#008a20","Green 0":"#e6f2e8","Green 5":"#b8e6bf","Green 10":"#68de86","Green 20":"#1ed15a","Green 30":"#00ba37","Green 40":"#00a32a","Green 50":"#008a20","Green 60":"#007017","Green 70":"#005c12","Green 80":"#00450c","Green 90":"#003008","Green 100":"#001c05","Celadon":"#008763","Celadon 0":"#e4f2ed","Celadon 5":"#a7e8d3","Celadon 10":"#66deb9","Celadon 20":"#31cc9f","Celadon 30":"#09b585","Celadon 40":"#009e73","Celadon 50":"#008763","Celadon 60":"#007053","Celadon 70":"#005c44","Celadon 80":"#004533","Celadon 90":"#003024","Celadon 100":"#001c15","WordPress Blue":"#006088","WordPress Blue 0":"#e6f1f5","WordPress Blue 5":"#bedae6","WordPress Blue 10":"#98c6d9","WordPress Blue 20":"#6ab3d0","WordPress Blue 30":"#3895ba","WordPress Blue 40":"#187aa2","WordPress Blue 50":"#006088","WordPress Blue 60":"#004e6e","WordPress Blue 70":"#003c56","WordPress Blue 80":"#002c40","WordPress Blue 90":"#001d2d","WordPress Blue 100":"#00101c","Simplenote Blue":"#3361cc","Simplenote Blue 0":"#e9ecf5","Simplenote Blue 5":"#ced9f2","Simplenote Blue 10":"#abc1f5","Simplenote Blue 20":"#84a4f0","Simplenote Blue 30":"#618df2","Simplenote Blue 40":"#4678eb","Simplenote Blue 50":"#3361cc","Simplenote Blue 60":"#1d4fc4","Simplenote Blue 70":"#113ead","Simplenote Blue 80":"#0d2f85","Simplenote Blue 90":"#09205c","Simplenote Blue 100":"#05102e","WooCommerce Purple":"#7f54b3","WooCommerce Purple 0":"#f7edf7","WooCommerce Purple 5":"#e5cfe8","WooCommerce Purple 10":"#d6b4e0","WooCommerce Purple 20":"#c792e0","WooCommerce Purple 30":"#af7dd1","WooCommerce Purple 40":"#9a69c7","WooCommerce Purple 50":"#7f54b3","WooCommerce Purple 60":"#674399","WooCommerce Purple 70":"#533582","WooCommerce Purple 80":"#3c2861","WooCommerce Purple 90":"#271b3d","WooCommerce Purple 100":"#140e1f","Jetpack Green":"#069e08","Jetpack Green 0":"#f0f2eb","Jetpack Green 5":"#d0e6b8","Jetpack Green 10":"#9dd977","Jetpack Green 20":"#64ca43","Jetpack Green 30":"#2fb41f","Jetpack Green 40":"#069e08","Jetpack Green 50":"#008710","Jetpack Green 60":"#007117","Jetpack Green 70":"#005b18","Jetpack Green 80":"#004515","Jetpack Green 90":"#003010","Jetpack Green 100":"#001c09"}}')}},e={};function n(i){var s=e[i];if(void 0!==s)return s.exports;var o=e[i]={id:i,loaded:!1,exports:{}};return t[i](o,o.exports,n),o.loaded=!0,o.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},function(){"use strict";var t=n(1850),e=n.n(t),i=n(9196),s=n.n(i),o=n(9818),r=n(9359),a=n(6025);const c=(0,o.createReduxStore)(r.t,r.i);function l(){const t=document.getElementById("jp-search-dashboard");null!==t&&e().render(s().createElement(a.Z,null),t)}(0,o.register)(c),"loading"!==document.readyState?l():document.addEventListener("DOMContentLoaded",l)}()}();
 
1
  /*! For license information please see jp-search-dashboard.js.LICENSE.txt */
2
  !function(){var t={4502:function(t){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},236:function(t){function e(){return t.exports=e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},t.exports.__esModule=!0,t.exports.default=t.exports,e.apply(this,arguments)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},9506:function(t,e,n){"use strict";var i=n(9057);i.kL.register(...i.zX),e.Z=i.kL},9057:function(t,e,n){"use strict";n.d(e,{kL:function(){return ce},zX:function(){return qn}});var i=n(7202);var s=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,i){const s=e.listeners[i],o=e.duration;s.forEach((i=>i({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(n-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=i.r.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((n,i)=>{if(!n.running||!n.items.length)return;const s=n.items;let o,r=s.length-1,a=!1;for(;r>=0;--r)o=s[r],o._active?(o._total>n.duration&&(n.duration=o._total),o.tick(t),a=!0):(s[r]=s[s.length-1],s.pop());a&&(i.draw(),this._notify(i,n,t,"progress")),s.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),e+=s.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const o="transparent",r={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const s=(0,i.c)(t||o),r=s.valid&&(0,i.c)(e||o);return r&&r.valid?r.mix(s,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class a{constructor(t,e,n,s){const o=e[n];s=(0,i.a)([t.to,s,o,t.from]);const a=(0,i.a)([t.from,o,s]);this._active=!0,this._fn=t.fn||r[t.type||typeof a],this._easing=i.e[t.easing]||i.e.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=a,this._to=s,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const s=this._target[this._prop],o=n-this._start,r=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=(0,i.a)([t.to,e,s,t.from]),this._from=(0,i.a)([t.from,s,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,i=this._prop,s=this._from,o=this._loop,r=this._to;let a;if(this._active=s!==r&&(o||e<n),!this._active)return this._target[i]=r,void this._notify(!0);e<0?this._target[i]=s:(a=e/n%2,a=o&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[i]=this._fn(s,r,a))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,n)=>{t.push({res:e,rej:n})}))}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}i.d.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const c=Object.keys(i.d.animation);i.d.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),i.d.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),i.d.describe("animations",{_fallback:"animation"}),i.d.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class l{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!(0,i.i)(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach((n=>{const s=t[n];if(!(0,i.i)(s))return;const o={};for(const t of c)o[t]=s[t];((0,i.b)(s.properties)&&s.properties||[n]).forEach((t=>{t!==n&&e.has(t)||e.set(t,o)}))}))}_animateOptions(t,e){const n=e.options,i=function(t,e){if(!e)return;let n=t.options;if(!n)return void(t.options=e);n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(t,n);if(!i)return[];const s=this._createAnimations(i,n);return n.$shared&&function(t,e){const n=[],i=Object.keys(e);for(let e=0;e<i.length;e++){const s=t[i[e]];s&&s.active()&&n.push(s.wait())}return Promise.all(n)}(t.options.$animations,n).then((()=>{t.options=n}),(()=>{})),s}_createAnimations(t,e){const n=this._properties,i=[],s=t.$animations||(t.$animations={}),o=Object.keys(e),r=Date.now();let c;for(c=o.length-1;c>=0;--c){const l=o[c];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(t,e));continue}const h=e[l];let u=s[l];const d=n.get(l);if(u){if(d&&u.active()){u.update(d,h,r);continue}u.cancel()}d&&d.duration?(s[l]=u=new a(d,t,l,h),i.push(u)):t[l]=h}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(s.add(this._chart,n),!0):void 0}}function h(t,e){const n=t&&t.options||{},i=n.reverse,s=void 0===n.min?e:0,o=void 0===n.max?e:0;return{start:i?o:s,end:i?s:o}}function u(t,e){const n=[],i=t._getSortedDatasetMetas(e);let s,o;for(s=0,o=i.length;s<o;++s)n.push(i[s].index);return n}function d(t,e,n,s={}){const o=t.keys,r="single"===s.mode;let a,c,l,h;if(null!==e){for(a=0,c=o.length;a<c;++a){if(l=+o[a],l===n){if(s.all)continue;break}h=t.values[l],(0,i.g)(h)&&(r||0===e||(0,i.s)(e)===(0,i.s)(h))&&(e+=h)}return e}}function p(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function f(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function g(t,e,n,i){for(const s of e.getMatchingVisibleMetas(i).reverse()){const e=t[s.index];if(n&&e>0||!n&&e<0)return s.index}return null}function m(t,e){const{chart:n,_cachedMeta:i}=t,s=n._stacks||(n._stacks={}),{iScale:o,vScale:r,index:a}=i,c=o.axis,l=r.axis,h=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(o,r,i),u=e.length;let d;for(let t=0;t<u;++t){const n=e[t],{[c]:o,[l]:u}=n;d=(n._stacks||(n._stacks={}))[l]=f(s,h,o),d[a]=u,d._top=g(d,r,!0,i.type),d._bottom=g(d,r,!1,i.type)}}function b(t,e){const n=t.scales;return Object.keys(n).filter((t=>n[t].axis===e)).shift()}function x(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[i]||void 0===e[i][n])return;delete e[i][n]}}}const v=t=>"reset"===t||"none"===t,y=(t,e)=>e?t:Object.assign({},t);class _{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=p(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&x(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),s=(t,e,n,i)=>"x"===t?e:"r"===t?i:n,o=e.xAxisID=(0,i.v)(n.xAxisID,b(t,"x")),r=e.yAxisID=(0,i.v)(n.yAxisID,b(t,"y")),a=e.rAxisID=(0,i.v)(n.rAxisID,b(t,"r")),c=e.indexAxis,l=e.iAxisID=s(c,o,r,a),h=e.vAxisID=s(c,r,o,a);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(r),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(h)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&(0,i.u)(this._data,this),t._stacked&&x(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if((0,i.i)(e))this._data=function(t){const e=Object.keys(t),n=new Array(e.length);let i,s,o;for(i=0,s=e.length;i<s;++i)o=e[i],n[i]={x:o,y:t[o]};return n}(e);else if(n!==e){if(n){(0,i.u)(n,this);const t=this._cachedMeta;x(t),t._parsed=[]}e&&Object.isExtensible(e)&&(0,i.l)(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const s=e._stacked;e._stacked=p(e.vScale,e),e.stack!==n.stack&&(i=!0,x(e),e.stack=n.stack),this._resyncElements(t),(i||s!==e._stacked)&&m(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:s}=this,{iScale:o,_stacked:r}=n,a=o.axis;let c,l,h,u=0===t&&e===s.length||n._sorted,d=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=s,n._sorted=!0,h=s;else{h=(0,i.b)(s[t])?this.parseArrayData(n,s,t,e):(0,i.i)(s[t])?this.parseObjectData(n,s,t,e):this.parsePrimitiveData(n,s,t,e);const o=()=>null===l[a]||d&&l[a]<d[a];for(c=0;c<e;++c)n._parsed[c+t]=l=h[c],u&&(o()&&(u=!1),d=l);n._sorted=u}r&&m(this,h)}parsePrimitiveData(t,e,n,i){const{iScale:s,vScale:o}=t,r=s.axis,a=o.axis,c=s.getLabels(),l=s===o,h=new Array(i);let u,d,p;for(u=0,d=i;u<d;++u)p=u+n,h[u]={[r]:l||s.parse(c[p],p),[a]:o.parse(e[p],p)};return h}parseArrayData(t,e,n,i){const{xScale:s,yScale:o}=t,r=new Array(i);let a,c,l,h;for(a=0,c=i;a<c;++a)l=a+n,h=e[l],r[a]={x:s.parse(h[0],l),y:o.parse(h[1],l)};return r}parseObjectData(t,e,n,s){const{xScale:o,yScale:r}=t,{xAxisKey:a="x",yAxisKey:c="y"}=this._parsing,l=new Array(s);let h,u,d,p;for(h=0,u=s;h<u;++h)d=h+n,p=e[d],l[h]={x:o.parse((0,i.f)(p,a),d),y:r.parse((0,i.f)(p,c),d)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const i=this.chart,s=this._cachedMeta,o=e[t.axis];return d({keys:u(i,!0),values:e._stacks[t.axis]},o,s.index,{mode:n})}updateRangeFromParsed(t,e,n,i){const s=n[e.axis];let o=null===s?NaN:s;const r=i&&n._stacks[e.axis];i&&r&&(i.values=r,o=d(i,s,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const n=this._cachedMeta,s=n._parsed,o=n._sorted&&t===n.iScale,r=s.length,a=this._getOtherScale(t),c=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:u(n,!0),values:null})(e,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:d}=function(t){const{min:e,max:n,minDefined:i,maxDefined:s}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:s?n:Number.POSITIVE_INFINITY}}(a);let p,f;function g(){f=s[p];const e=f[a.axis];return!(0,i.g)(f[t.axis])||h>e||d<e}for(p=0;p<r&&(g()||(this.updateRangeFromParsed(l,t,f,c),!o));++p);if(o)for(p=r-1;p>=0;--p)if(!g()){this.updateRangeFromParsed(l,t,f,c);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let s,o,r;for(s=0,o=e.length;s<o;++s)r=e[s][t.axis],(0,i.g)(r)&&n.push(r);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,i=e.vScale,s=this.getParsed(t);return{label:n?""+n.getLabelForValue(s[n.axis]):"",value:i?""+i.getLabelForValue(s[i.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,s,o;return(0,i.i)(t)?(e=t.top,n=t.right,s=t.bottom,o=t.left):e=n=s=o=t,{top:e,right:n,bottom:s,left:o,disabled:!1===t}}((0,i.v)(this.options.clip,function(t,e,n){if(!1===n)return!1;const i=h(t,n),s=h(e,n);return{top:s.end,right:i.end,bottom:s.start,left:i.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,i=n.data||[],s=e.chartArea,o=[],r=this._drawStart||0,a=this._drawCount||i.length-r,c=this.options.drawActiveElementsOnTop;let l;for(n.dataset&&n.dataset.draw(t,s,r,a),l=r;l<r+a;++l){const e=i[l];e.hidden||(e.active&&c?o.push(e):e.draw(t,s))}for(l=0;l<o.length;++l)o[l].draw(t,s)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const s=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];o=e.$context||(e.$context=function(t,e,n){return(0,i.h)(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),o.parsed=this.getParsed(t),o.raw=s.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=function(t,e){return(0,i.h)(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),o.dataset=s,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=n,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const s="active"===e,o=this._cachedDataOpts,r=t+"-"+e,a=o[r],c=this.enableOptionSharing&&(0,i.j)(n);if(a)return y(a,c);const l=this.chart.config,h=l.datasetElementScopeKeys(this._type,t),u=s?[`${t}Hover`,"hover",t,""]:[t,""],d=l.getOptionScopes(this.getDataset(),h),p=Object.keys(i.d.elements[t]),f=l.resolveNamedOptions(d,p,(()=>this.getContext(n,s)),u);return f.$shared&&(f.$shared=c,o[r]=Object.freeze(y(f,c))),f}_resolveAnimations(t,e,n){const i=this.chart,s=this._cachedDataOpts,o=`animation-${e}`,r=s[o];if(r)return r;let a;if(!1!==i.options.animation){const i=this.chart.config,s=i.datasetAnimationScopeKeys(this._type,e),o=i.getOptionScopes(this.getDataset(),s);a=i.createResolver(o,this.getContext(t,n,e))}const c=new l(i,a&&a.animations);return a&&a._cacheable&&(s[o]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||v(t)||this.chart._animationsDisabled}updateElement(t,e,n,i){v(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!v(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,i){t.active=i;const s=this.getStyle(e,i);this._resolveAnimations(e,n,i).update(t,{options:!i&&this.getSharedOptions(s)||s})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const i=n.length,s=e.length,o=Math.min(s,i);o&&this.parse(0,o),s>i?this._insertElements(i,s-i,t):s<i&&this._removeElements(s,i-s)}_insertElements(t,e,n=!0){const i=this._cachedMeta,s=i.data,o=t+e;let r;const a=t=>{for(t.length+=e,r=t.length-1;r>=o;r--)t[r]=t[r-e]};for(a(s),r=t;r<o;++r)s[r]=new this.dataElementType;this._parsing&&a(i._parsed),this.parse(t,e),n&&this.updateElements(s,t,e,"reset")}updateElements(t,e,n,i){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,e);n._stacked&&x(n,i)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,i]=t;this[e](n,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function k(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let s=[];for(let e=0,i=n.length;e<i;e++)s=s.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=(0,i._)(s.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let s,o,r,a,c=e._length;const l=()=>{32767!==r&&-32768!==r&&((0,i.j)(a)&&(c=Math.min(c,Math.abs(r-a)||c)),a=r)};for(s=0,o=n.length;s<o;++s)r=e.getPixelForValue(n[s]),l();for(a=void 0,s=0,o=e.ticks.length;s<o;++s)r=e.getPixelForTick(s),l();return c}function w(t,e,n,s){return(0,i.b)(t)?function(t,e,n,i){const s=n.parse(t[0],i),o=n.parse(t[1],i),r=Math.min(s,o),a=Math.max(s,o);let c=r,l=a;Math.abs(r)>Math.abs(a)&&(c=a,l=r),e[n.axis]=l,e._custom={barStart:c,barEnd:l,start:s,end:o,min:r,max:a}}(t,e,n,s):e[n.axis]=n.parse(t,s),e}function S(t,e,n,i){const s=t.iScale,o=t.vScale,r=s.getLabels(),a=s===o,c=[];let l,h,u,d;for(l=n,h=n+i;l<h;++l)d=e[l],u={},u[s.axis]=a||s.parse(r[l],l),c.push(w(d,u,o,l));return c}function M(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function C(t,e,n,i){let s=e.borderSkipped;const o={};if(!s)return void(t.borderSkipped=o);const{start:r,end:a,reverse:c,top:l,bottom:h}=function(t){let e,n,i,s,o;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(s="end",o="start"):(s="start",o="end"),{start:n,end:i,reverse:e,top:s,bottom:o}}(t);"middle"===s&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?s=l:(n._bottom||0)===i?s=h:(o[E(h,r,a,c)]=!0,s=l)),o[E(s,r,a,c)]=!0,t.borderSkipped=o}function E(t,e,n,i){var s,o,r;return i?(r=n,t=P(t=(s=t)===(o=e)?r:s===r?o:s,n,e)):t=P(t,e,n),t}function P(t,e,n){return"start"===t?e:"end"===t?n:t}function O(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}_.defaults={},_.prototype.datasetElementType=null,_.prototype.dataElementType=null;class j extends _{parsePrimitiveData(t,e,n,i){return S(t,e,n,i)}parseArrayData(t,e,n,i){return S(t,e,n,i)}parseObjectData(t,e,n,s){const{iScale:o,vScale:r}=t,{xAxisKey:a="x",yAxisKey:c="y"}=this._parsing,l="x"===o.axis?a:c,h="x"===r.axis?a:c,u=[];let d,p,f,g;for(d=n,p=n+s;d<p;++d)g=e[d],f={},f[o.axis]=o.parse((0,i.f)(g,l),d),u.push(w((0,i.f)(g,h),f,r,d));return u}updateRangeFromParsed(t,e,n,i){super.updateRangeFromParsed(t,e,n,i);const s=n._custom;s&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,s.min),t.max=Math.max(t.max,s.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:i}=e,s=this.getParsed(t),o=s._custom,r=M(o)?"["+o.start+", "+o.end+"]":""+i.getLabelForValue(s[i.axis]);return{label:""+n.getLabelForValue(s[n.axis]),value:r}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,n,s){const o="reset"===s,{index:r,_cachedMeta:{vScale:a}}=this,c=a.getBasePixel(),l=a.isHorizontal(),h=this._getRuler(),u=this.resolveDataElementOptions(e,s),d=this.getSharedOptions(u),p=this.includeOptions(s,d);this.updateSharedOptions(d,s,u);for(let u=e;u<e+n;u++){const e=this.getParsed(u),n=o||(0,i.k)(e[a.axis])?{base:c,head:c}:this._calculateBarValuePixels(u),f=this._calculateBarIndexPixels(u,h),g=(e._stacks||{})[a.axis],m={horizontal:l,base:n.base,enableBorderRadius:!g||M(e._custom)||r===g._top||r===g._bottom,x:l?n.head:f.center,y:l?f.center:n.head,height:l?f.size:Math.abs(n.size),width:l?Math.abs(n.size):f.size};p&&(m.options=d||this.resolveDataElementOptions(u,t[u].active?"active":s));const b=m.options||t[u].options;C(m,b,g,r),O(m,b,h.ratio),this.updateElement(t[u],u,m,s)}}_getStacks(t,e){const n=this._cachedMeta.iScale,s=n.getMatchingVisibleMetas(this._type),o=n.options.stacked,r=s.length,a=[];let c,l;for(c=0;c<r;++c)if(l=s[c],l.controller.options.grouped){if(void 0!==e){const t=l.controller.getParsed(e)[l.controller._cachedMeta.vScale.axis];if((0,i.k)(t)||isNaN(t))continue}if((!1===o||-1===a.indexOf(l.stack)||void 0===o&&void 0===l.stack)&&a.push(l.stack),l.index===t)break}return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const i=this._getStacks(t,n),s=void 0!==e?i.indexOf(e):-1;return-1===s?i.length-1:s}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,i=[];let s,o;for(s=0,o=e.data.length;s<o;++s)i.push(n.getPixelForValue(this.getParsed(s)[n.axis],s));const r=t.barThickness;return{min:r||k(e),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:r?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n},options:{base:s,minBarLength:o}}=this,r=s||0,a=this.getParsed(t),c=a._custom,l=M(c);let h,u,d=a[e.axis],p=0,f=n?this.applyStack(e,a,n):d;f!==d&&(p=f-d,f=d),l&&(d=c.barStart,f=c.barEnd-c.barStart,0!==d&&(0,i.s)(d)!==(0,i.s)(c.barEnd)&&(p=0),p+=d);const g=(0,i.k)(s)||l?p:s;let m=e.getPixelForValue(g);if(h=this.chart.getDataVisibility(t)?e.getPixelForValue(p+f):m,u=h-m,Math.abs(u)<o&&(u=function(t,e,n){return 0!==t?(0,i.s)(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(u,e,r)*o,d===r&&(m-=u/2),h=m+u),m===e.getPixelForValue(r)){const t=(0,i.s)(u)*e.getLineWidthForValue(r)/2;m+=t,u-=t}return{size:u,base:m,head:h,center:h+u/2}}_calculateBarIndexPixels(t,e){const n=e.scale,s=this.options,o=s.skipNull,r=(0,i.v)(s.maxBarThickness,1/0);let a,c;if(e.grouped){const n=o?this._getStackCount(t):e.stackCount,l="flex"===s.barThickness?function(t,e,n,i){const s=e.pixels,o=s[t];let r=t>0?s[t-1]:null,a=t<s.length-1?s[t+1]:null;const c=n.categoryPercentage;null===r&&(r=o-(null===a?e.end-e.start:a-o)),null===a&&(a=o+o-r);const l=o-(o-Math.min(r,a))/2*c;return{chunk:Math.abs(a-r)/2*c/i,ratio:n.barPercentage,start:l}}(t,e,s,n):function(t,e,n,s){const o=n.barThickness;let r,a;return(0,i.k)(o)?(r=e.min*n.categoryPercentage,a=n.barPercentage):(r=o*s,a=1),{chunk:r/s,ratio:a,start:e.pixels[t]-r/2}}(t,e,s,n),h=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);a=l.start+l.chunk*h+l.chunk/2,c=Math.min(r,l.chunk*l.ratio)}else a=n.getPixelForValue(this.getParsed(t)[n.axis],t),c=Math.min(r,e.min*e.ratio);return{base:a-c/2,head:a+c/2,center:a,size:c}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,i=n.length;let s=0;for(;s<i;++s)null!==this.getParsed(s)[e.axis]&&n[s].draw(this._ctx)}}j.id="bar",j.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},j.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class D extends _{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,n,i){const s=super.parsePrimitiveData(t,e,n,i);for(let t=0;t<s.length;t++)s[t]._custom=this.resolveDataElementOptions(t+n).radius;return s}parseArrayData(t,e,n,s){const o=super.parseArrayData(t,e,n,s);for(let t=0;t<o.length;t++){const s=e[n+t];o[t]._custom=(0,i.v)(s[2],this.resolveDataElementOptions(t+n).radius)}return o}parseObjectData(t,e,n,s){const o=super.parseObjectData(t,e,n,s);for(let t=0;t<o.length;t++){const s=e[n+t];o[t]._custom=(0,i.v)(s&&s.r&&+s.r,this.resolveDataElementOptions(t+n).radius)}return o}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:n,yScale:i}=e,s=this.getParsed(t),o=n.getLabelForValue(s.x),r=i.getLabelForValue(s.y),a=s._custom;return{label:e.label,value:"("+o+", "+r+(a?", "+a:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,n,i){const s="reset"===i,{iScale:o,vScale:r}=this._cachedMeta,a=this.resolveDataElementOptions(e,i),c=this.getSharedOptions(a),l=this.includeOptions(i,c),h=o.axis,u=r.axis;for(let a=e;a<e+n;a++){const e=t[a],n=!s&&this.getParsed(a),c={},d=c[h]=s?o.getPixelForDecimal(.5):o.getPixelForValue(n[h]),p=c[u]=s?r.getBasePixel():r.getPixelForValue(n[u]);c.skip=isNaN(d)||isNaN(p),l&&(c.options=this.resolveDataElementOptions(a,e.active?"active":i),s&&(c.options.radius=0)),this.updateElement(e,a,c,i)}this.updateSharedOptions(c,i,a)}resolveDataElementOptions(t,e){const n=this.getParsed(t);let s=super.resolveDataElementOptions(t,e);s.$shared&&(s=Object.assign({},s,{$shared:!1}));const o=s.radius;return"active"!==e&&(s.radius=0),s.radius+=(0,i.v)(n&&n._custom,o),s}}D.id="bubble",D.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},D.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class A extends _{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const n=this.getDataset().data,s=this._cachedMeta;if(!1===this._parsing)s._parsed=n;else{let o,r,a=t=>+n[t];if((0,i.i)(n[t])){const{key:t="value"}=this._parsing;a=e=>+(0,i.f)(n[e],t)}for(o=t,r=t+e;o<r;++o)s._parsed[o]=a(o)}}_getRotation(){return(0,i.t)(this.options.rotation-90)}_getCircumference(){return(0,i.t)(this.options.circumference)}_getRotationExtents(){let t=i.T,e=-i.T;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)){const i=this.chart.getDatasetMeta(n).controller,s=i._getRotation(),o=i._getCircumference();t=Math.min(t,s),e=Math.max(e,s+o)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,s=this._cachedMeta,o=s.data,r=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-r)/2,0),c=Math.min((0,i.m)(this.options.cutout,a),1),l=this._getRingWeight(this.index),{circumference:h,rotation:u}=this._getRotationExtents(),{ratioX:d,ratioY:p,offsetX:f,offsetY:g}=function(t,e,n){let s=1,o=1,r=0,a=0;if(e<i.T){const c=t,l=c+e,h=Math.cos(c),u=Math.sin(c),d=Math.cos(l),p=Math.sin(l),f=(t,e,s)=>(0,i.p)(t,c,l,!0)?1:Math.max(e,e*n,s,s*n),g=(t,e,s)=>(0,i.p)(t,c,l,!0)?-1:Math.min(e,e*n,s,s*n),m=f(0,h,d),b=f(i.H,u,p),x=g(i.P,h,d),v=g(i.P+i.H,u,p);s=(m-x)/2,o=(b-v)/2,r=-(m+x)/2,a=-(b+v)/2}return{ratioX:s,ratioY:o,offsetX:r,offsetY:a}}(u,h,c),m=(n.width-r)/d,b=(n.height-r)/p,x=Math.max(Math.min(m,b)/2,0),v=(0,i.n)(this.options.radius,x),y=(v-Math.max(v*c,0))/this._getVisibleDatasetWeightTotal();this.offsetX=f*v,this.offsetY=g*v,s.total=this.calculateTotal(),this.outerRadius=v-y*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-y*l,0),this.updateElements(o,0,o.length,t)}_circumference(t,e){const n=this.options,s=this._cachedMeta,o=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===s._parsed[t]||s.data[t].hidden?0:this.calculateCircumference(s._parsed[t]*o/i.T)}updateElements(t,e,n,i){const s="reset"===i,o=this.chart,r=o.chartArea,a=o.options.animation,c=(r.left+r.right)/2,l=(r.top+r.bottom)/2,h=s&&a.animateScale,u=h?0:this.innerRadius,d=h?0:this.outerRadius,p=this.resolveDataElementOptions(e,i),f=this.getSharedOptions(p),g=this.includeOptions(i,f);let m,b=this._getRotation();for(m=0;m<e;++m)b+=this._circumference(m,s);for(m=e;m<e+n;++m){const e=this._circumference(m,s),n=t[m],o={x:c+this.offsetX,y:l+this.offsetY,startAngle:b,endAngle:b+e,circumference:e,outerRadius:d,innerRadius:u};g&&(o.options=f||this.resolveDataElementOptions(m,n.active?"active":i)),b+=e,this.updateElement(n,m,o,i)}this.updateSharedOptions(f,i,p)}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,i=0;for(n=0;n<e.length;n++){const s=t._parsed[n];null===s||isNaN(s)||!this.chart.getDataVisibility(n)||e[n].hidden||(i+=Math.abs(s))}return i}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?i.T*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,s=n.data.labels||[],o=(0,i.o)(e._parsed[t],n.options.locale);return{label:s[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const n=this.chart;let i,s,o,r,a;if(!t)for(i=0,s=n.data.datasets.length;i<s;++i)if(n.isDatasetVisible(i)){o=n.getDatasetMeta(i),t=o.data,r=o.controller;break}if(!t)return 0;for(i=0,s=t.length;i<s;++i)a=r.resolveDataElementOptions(i),"inner"!==a.borderAlign&&(e=Math.max(e,a.borderWidth||0,a.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,i=t.length;n<i;++n){const t=this.resolveDataElementOptions(n);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}_getRingWeight(t){return Math.max((0,i.v)(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}A.id="doughnut",A.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},A.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},A.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map(((e,i)=>{const s=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,lineWidth:s.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const n=": "+t.formattedValue;return(0,i.b)(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}};class T extends _{initialize(){this.enableOptionSharing=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:s=[],_dataset:o}=e,r=this.chart._animationsDisabled;let{start:a,count:c}=function(t,e,n){const s=e.length;let o=0,r=s;if(t._sorted){const{iScale:a,_parsed:c}=t,l=a.axis,{min:h,max:u,minDefined:d,maxDefined:p}=a.getUserBounds();d&&(o=(0,i.w)(Math.min((0,i.x)(c,a.axis,h).lo,n?s:(0,i.x)(e,l,a.getPixelForValue(h)).lo),0,s-1)),r=p?(0,i.w)(Math.max((0,i.x)(c,a.axis,u).hi+1,n?0:(0,i.x)(e,l,a.getPixelForValue(u)).hi+1),o,s)-o:s-o}return{start:o,count:r}}(e,s,r);this._drawStart=a,this._drawCount=c,function(t){const{xScale:e,yScale:n,_scaleRanges:i}=t,s={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!i)return t._scaleRanges=s,!0;const o=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,s),o}(e)&&(a=0,c=s.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=s;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!r,options:l},t),this.updateElements(s,a,c,t)}updateElements(t,e,n,s){const o="reset"===s,{iScale:r,vScale:a,_stacked:c,_dataset:l}=this._cachedMeta,h=this.resolveDataElementOptions(e,s),u=this.getSharedOptions(h),d=this.includeOptions(s,u),p=r.axis,f=a.axis,{spanGaps:g,segment:m}=this.options,b=(0,i.q)(g)?g:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||o||"none"===s;let v=e>0&&this.getParsed(e-1);for(let h=e;h<e+n;++h){const e=t[h],n=this.getParsed(h),g=x?e:{},y=(0,i.k)(n[f]),_=g[p]=r.getPixelForValue(n[p],h),k=g[f]=o||y?a.getBasePixel():a.getPixelForValue(c?this.applyStack(a,n,c):n[f],h);g.skip=isNaN(_)||isNaN(k)||y,g.stop=h>0&&n[p]-v[p]>b,m&&(g.parsed=n,g.raw=l.data[h]),d&&(g.options=u||this.resolveDataElementOptions(h,e.active?"active":s)),x||this.updateElement(e,h,g,s),v=n}this.updateSharedOptions(u,s,h)}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,i=t.data||[];if(!i.length)return n;const s=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,s,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}T.id="line",T.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},T.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class N extends _{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,s=n.data.labels||[],o=(0,i.o)(e._parsed[t].r,n.options.locale);return{label:s[t]||"",value:o}}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}_updateRadius(){const t=this.chart,e=t.chartArea,n=t.options,i=Math.min(e.right-e.left,e.bottom-e.top),s=Math.max(i/2,0),o=(s-Math.max(n.cutoutPercentage?s/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=s-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,n,s){const o="reset"===s,r=this.chart,a=this.getDataset(),c=r.options.animation,l=this._cachedMeta.rScale,h=l.xCenter,u=l.yCenter,d=l.getIndexAngle(0)-.5*i.P;let p,f=d;const g=360/this.countVisibleElements();for(p=0;p<e;++p)f+=this._computeAngle(p,s,g);for(p=e;p<e+n;p++){const e=t[p];let n=f,i=f+this._computeAngle(p,s,g),m=r.getDataVisibility(p)?l.getDistanceFromCenterForValue(a.data[p]):0;f=i,o&&(c.animateScale&&(m=0),c.animateRotate&&(n=i=d));const b={x:h,y:u,innerRadius:0,outerRadius:m,startAngle:n,endAngle:i,options:this.resolveDataElementOptions(p,e.active?"active":s)};this.updateElement(e,p,b,s)}}countVisibleElements(){const t=this.getDataset(),e=this._cachedMeta;let n=0;return e.data.forEach(((e,i)=>{!isNaN(t.data[i])&&this.chart.getDataVisibility(i)&&n++})),n}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?(0,i.t)(this.resolveDataElementOptions(t,e).angle||n):0}}N.id="polarArea",N.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},N.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map(((e,i)=>{const s=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,lineWidth:s.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class L extends A{}L.id="pie",L.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class R extends _{getLabelAndValue(t){const e=this._cachedMeta.vScale,n=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(n[e.axis])}}update(t){const e=this._cachedMeta,n=e.dataset,i=e.data||[],s=e.iScale.getLabels();if(n.points=i,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:s.length===i.length,options:e};this.updateElement(n,void 0,o,t)}this.updateElements(i,0,i.length,t)}updateElements(t,e,n,i){const s=this.getDataset(),o=this._cachedMeta.rScale,r="reset"===i;for(let a=e;a<e+n;a++){const e=t[a],n=this.resolveDataElementOptions(a,e.active?"active":i),c=o.getPointPositionForValue(a,s.data[a]),l=r?o.xCenter:c.x,h=r?o.yCenter:c.y,u={x:l,y:h,angle:c.angle,skip:isNaN(l)||isNaN(h),options:n};this.updateElement(e,a,u,i)}}}R.id="radar",R.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},R.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class z extends T{}z.id="scatter",z.defaults={showLine:!1,fill:!1},z.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var I=Object.freeze({__proto__:null,BarController:j,BubbleController:D,DoughnutController:A,LineController:T,PolarAreaController:N,PieController:L,RadarController:R,ScatterController:z});function F(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class V{constructor(t){this.options=t||{}}formats(){return F()}parse(t,e){return F()}format(t,e){return F()}add(t,e,n){return F()}diff(t,e,n){return F()}startOf(t,e,n){return F()}endOf(t,e){return F()}}V.override=function(t){Object.assign(V.prototype,t)};var B={_date:V};function H(t,e){return"native"in t?{x:t.x,y:t.y}:(0,i.y)(t,e)}function W(t,e,n,s){const{controller:o,data:r,_sorted:a}=t,c=o._cachedMeta.iScale;if(c&&e===c.axis&&"r"!==e&&a&&r.length){const t=c._reversePixels?i.A:i.x;if(!s)return t(r,e,n);if(o._sharedOptions){const i=r[0],s="function"==typeof i.getRange&&i.getRange(e);if(s){const i=t(r,e,n-s),o=t(r,e,n+s);return{lo:i.lo,hi:o.hi}}}}return{lo:0,hi:r.length-1}}function $(t,e,n,i,s){const o=t.getSortedVisibleDatasetMetas(),r=n[e];for(let t=0,n=o.length;t<n;++t){const{index:n,data:a}=o[t],{lo:c,hi:l}=W(o[t],e,r,s);for(let t=c;t<=l;++t){const e=a[t];e.skip||i(e,n,t)}}}function Z(t,e,n,s){const o=[];if(!(0,i.z)(e,t.chartArea,t._minPadding))return o;return $(t,n,e,(function(t,n,i){t.inRange(e.x,e.y,s)&&o.push({element:t,datasetIndex:n,index:i})}),!0),o}function U(t,e,n,s,o){let r=[];const a=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){const s=e?Math.abs(t.x-i.x):0,o=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(o,2))}}(n);let c=Number.POSITIVE_INFINITY;return $(t,n,e,(function(n,l,h){const u=n.inRange(e.x,e.y,o);if(s&&!u)return;const d=n.getCenterPoint(o);if(!(0,i.z)(d,t.chartArea,t._minPadding)&&!u)return;const p=a(e,d);p<c?(r=[{element:n,datasetIndex:l,index:h}],c=p):p===c&&r.push({element:n,datasetIndex:l,index:h})})),r}function Y(t,e,n,s,o){return(0,i.z)(e,t.chartArea,t._minPadding)?"r"!==n||s?U(t,e,n,s,o):function(t,e,n,s){let o=[];return $(t,n,e,(function(t,n,r){const{startAngle:a,endAngle:c}=t.getProps(["startAngle","endAngle"],s),{angle:l}=(0,i.B)(t,{x:e.x,y:e.y});(0,i.p)(l,a,c)&&o.push({element:t,datasetIndex:n,index:r})})),o}(t,e,n,o):[]}function J(t,e,n,i){const s=H(e,t),o=[],r=n.axis,a="x"===r?"inXRange":"inYRange";let c=!1;return function(t,e){const n=t.getSortedVisibleDatasetMetas();let i,s,o;for(let t=0,r=n.length;t<r;++t){({index:i,data:s}=n[t]);for(let t=0,n=s.length;t<n;++t)o=s[t],o.skip||e(o,i,t)}}(t,((t,e,n)=>{t[a](s[r],i)&&o.push({element:t,datasetIndex:e,index:n}),t.inRange(s.x,s.y,i)&&(c=!0)})),n.intersect&&!c?[]:o}var G={modes:{index(t,e,n,i){const s=H(e,t),o=n.axis||"x",r=n.intersect?Z(t,s,o,i):Y(t,s,o,!1,i),a=[];return r.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=r[0].index,n=t.data[e];n&&!n.skip&&a.push({element:n,datasetIndex:t.index,index:e})})),a):[]},dataset(t,e,n,i){const s=H(e,t),o=n.axis||"xy";let r=n.intersect?Z(t,s,o,i):Y(t,s,o,!1,i);if(r.length>0){const e=r[0].datasetIndex,n=t.getDatasetMeta(e).data;r=[];for(let t=0;t<n.length;++t)r.push({element:n[t],datasetIndex:e,index:t})}return r},point:(t,e,n,i)=>Z(t,H(e,t),n.axis||"xy",i),nearest:(t,e,n,i)=>Y(t,H(e,t),n.axis||"xy",n.intersect,i),x:(t,e,n,i)=>J(t,e,{axis:"x",intersect:n.intersect},i),y:(t,e,n,i)=>J(t,e,{axis:"y",intersect:n.intersect},i)}};const X=["left","top","right","bottom"];function q(t,e){return t.filter((t=>t.pos===e))}function K(t,e){return t.filter((t=>-1===X.indexOf(t.pos)&&t.box.axis===e))}function Q(t,e){return t.sort(((t,n)=>{const i=e?n:t,s=e?t:n;return i.weight===s.weight?i.index-s.index:i.weight-s.weight}))}function tt(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:s}=n;if(!t||!X.includes(i))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=s}return e}(t),{vBoxMaxWidth:i,hBoxMaxHeight:s}=e;let o,r,a;for(o=0,r=t.length;o<r;++o){a=t[o];const{fullSize:r}=a.box,c=n[a.stack],l=c&&a.stackWeight/c.weight;a.horizontal?(a.width=l?l*i:r&&e.availableWidth,a.height=s):(a.width=i,a.height=l?l*s:r&&e.availableHeight)}return n}function et(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function nt(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function it(t,e,n,s){const{pos:o,box:r}=n,a=t.maxPadding;if(!(0,i.i)(o)){n.size&&(t[o]-=n.size);const e=s[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?r.height:r.width),n.size=e.size/e.count,t[o]+=n.size}r.getPadding&&nt(a,r.getPadding());const c=Math.max(0,e.outerWidth-et(a,t,"left","right")),l=Math.max(0,e.outerHeight-et(a,t,"top","bottom")),h=c!==t.w,u=l!==t.h;return t.w=c,t.h=l,n.horizontal?{same:h,other:u}:{same:u,other:h}}function st(t,e){const n=e.maxPadding;function i(t){const i={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{i[t]=Math.max(e[t],n[t])})),i}return i(t?["left","right"]:["top","bottom"])}function ot(t,e,n,i){const s=[];let o,r,a,c,l,h;for(o=0,r=t.length,l=0;o<r;++o){a=t[o],c=a.box,c.update(a.width||e.w,a.height||e.h,st(a.horizontal,e));const{same:r,other:u}=it(e,n,a,i);l|=r&&s.length,h=h||u,c.fullSize||s.push(a)}return l&&ot(s,e,n,i)||h}function rt(t,e,n,i,s){t.top=n,t.left=e,t.right=e+i,t.bottom=n+s,t.width=i,t.height=s}function at(t,e,n,s){const o=n.padding;let{x:r,y:a}=e;for(const c of t){const t=c.box,l=s[c.stack]||{count:1,placed:0,weight:1},h=c.stackWeight/l.weight||1;if(c.horizontal){const s=e.w*h,r=l.size||t.height;(0,i.j)(l.start)&&(a=l.start),t.fullSize?rt(t,o.left,a,n.outerWidth-o.right-o.left,r):rt(t,e.left+l.placed,a,s,r),l.start=a,l.placed+=s,a=t.bottom}else{const s=e.h*h,a=l.size||t.width;(0,i.j)(l.start)&&(r=l.start),t.fullSize?rt(t,r,o.top,a,n.outerHeight-o.bottom-o.top):rt(t,r,e.top+l.placed,a,s),l.start=r,l.placed+=s,r=t.right}}e.x=r,e.y=a}i.d.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var ct={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,s){if(!t)return;const o=(0,i.C)(t.options.layout.padding),r=Math.max(e-o.width,0),a=Math.max(n-o.height,0),c=function(t){const e=function(t){const e=[];let n,i,s,o,r,a;for(n=0,i=(t||[]).length;n<i;++n)s=t[n],({position:o,options:{stack:r,stackWeight:a=1}}=s),e.push({index:n,box:s,pos:o,horizontal:s.isHorizontal(),weight:s.weight,stack:r&&o+r,stackWeight:a});return e}(t),n=Q(e.filter((t=>t.box.fullSize)),!0),i=Q(q(e,"left"),!0),s=Q(q(e,"right")),o=Q(q(e,"top"),!0),r=Q(q(e,"bottom")),a=K(e,"x"),c=K(e,"y");return{fullSize:n,leftAndTop:i.concat(o),rightAndBottom:s.concat(c).concat(r).concat(a),chartArea:q(e,"chartArea"),vertical:i.concat(s).concat(c),horizontal:o.concat(r).concat(a)}}(t.boxes),l=c.vertical,h=c.horizontal;(0,i.D)(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const u=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:o,availableWidth:r,availableHeight:a,vBoxMaxWidth:r/2/u,hBoxMaxHeight:a/2}),p=Object.assign({},o);nt(p,(0,i.C)(s));const f=Object.assign({maxPadding:p,w:r,h:a,x:o.left,y:o.top},o),g=tt(l.concat(h),d);ot(c.fullSize,f,d,g),ot(l,f,d,g),ot(h,f,d,g)&&ot(l,f,d,g),function(t){const e=t.maxPadding;function n(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(f),at(c.leftAndTop,f,d,g),f.x+=f.w,f.y+=f.h,at(c.rightAndBottom,f,d,g),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},(0,i.D)(c.chartArea,(e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})}))}};class lt{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,i){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):n)}}isAttached(t){return!0}updateConfig(t){}}class ht extends lt{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const ut={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},dt=t=>null===t||""===t;const pt=!!i.J&&{passive:!0};function ft(t,e,n){t.canvas.removeEventListener(e,n,pt)}function gt(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function mt(t,e,n){const i=t.canvas,s=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||gt(n.addedNodes,i),e=e&&!gt(n.removedNodes,i);e&&n()}));return s.observe(document,{childList:!0,subtree:!0}),s}function bt(t,e,n){const i=t.canvas,s=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||gt(n.removedNodes,i),e=e&&!gt(n.addedNodes,i);e&&n()}));return s.observe(document,{childList:!0,subtree:!0}),s}const xt=new Map;let vt=0;function yt(){const t=window.devicePixelRatio;t!==vt&&(vt=t,xt.forEach(((e,n)=>{n.currentDevicePixelRatio!==t&&e()})))}function _t(t,e,n){const s=t.canvas,o=s&&(0,i.F)(s);if(!o)return;const r=(0,i.I)(((t,e)=>{const i=o.clientWidth;n(t,e),i<o.clientWidth&&n()}),window),a=new ResizeObserver((t=>{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||r(n,i)}));return a.observe(o),function(t,e){xt.size||window.addEventListener("resize",yt),xt.set(t,e)}(t,r),a}function kt(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){xt.delete(t),xt.size||window.removeEventListener("resize",yt)}(t)}function wt(t,e,n){const s=t.canvas,o=(0,i.I)((e=>{null!==t.ctx&&n(function(t,e){const n=ut[t.type]||t.type,{x:s,y:o}=(0,i.y)(t,e);return{type:n,chart:e,native:t,x:void 0!==s?s:null,y:void 0!==o?o:null}}(e,t))}),t,(t=>{const e=t[0];return[e,e.offsetX,e.offsetY]}));return function(t,e,n){t.addEventListener(e,n,pt)}(s,e,o),o}class St extends lt{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,s=t.getAttribute("height"),o=t.getAttribute("width");if(t.$chartjs={initial:{height:s,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",dt(o)){const e=(0,i.G)(t,"width");void 0!==e&&(t.width=e)}if(dt(s))if(""===t.style.height)t.height=t.width/(e||2);else{const e=(0,i.G)(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e.$chartjs)return!1;const n=e.$chartjs.initial;["height","width"].forEach((t=>{const s=n[t];(0,i.k)(s)?e.removeAttribute(t):e.setAttribute(t,s)}));const s=n.style||{};return Object.keys(s).forEach((t=>{e.style[t]=s[t]})),e.width=e.width,delete e.$chartjs,!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),s={attach:mt,detach:bt,resize:_t}[e]||wt;i[e]=s(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];if(!i)return;({attach:kt,detach:kt,resize:kt}[e]||ft)(t,e,i),n[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,s){return(0,i.E)(t,e,n,s)}isAttached(t){const e=(0,i.F)(t);return!(!e||!e.isConnected)}}class Mt{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return(0,i.q)(this.x)&&(0,i.q)(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const i={};return t.forEach((t=>{i[t]=n[t]&&n[t].active()?n[t]._to:this[t]})),i}}Mt.defaults={},Mt.defaultRoutes=void 0;const Ct={values:t=>(0,i.b)(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const s=this.chart.options.locale;let o,r=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(o="scientific"),r=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t));return n}(t,n)}const a=(0,i.L)(Math.abs(r)),c=Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:o,minimumFractionDigits:c,maximumFractionDigits:c};return Object.assign(l,this.options.ticks.format),(0,i.o)(t,s,l)},logarithmic(t,e,n){if(0===t)return"0";const s=t/Math.pow(10,Math.floor((0,i.L)(t)));return 1===s||2===s||5===s?Ct.numeric.call(this,t,e,n):""}};var Et={formatters:Ct};function Pt(t,e){const n=t.options.ticks,s=n.maxTicksLimit||function(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),s=t._maxLength/n;return Math.floor(Math.min(i,s))}(t),o=n.major.enabled?function(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}(e):[],r=o.length,a=o[0],c=o[r-1],l=[];if(r>s)return function(t,e,n,i){let s,o=0,r=n[0];for(i=Math.ceil(i),s=0;s<t.length;s++)s===r&&(e.push(t[s]),o++,r=n[o*i])}(e,l,o,r/s),l;const h=function(t,e,n){const s=function(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}(t),o=e.length/n;if(!s)return Math.max(o,1);const r=(0,i.M)(s);for(let t=0,e=r.length-1;t<e;t++){const e=r[t];if(e>o)return e}return Math.max(o,1)}(o,e,s);if(r>0){let t,n;const s=r>1?Math.round((c-a)/(r-1)):null;for(Ot(e,l,h,(0,i.k)(s)?0:a-s,a),t=0,n=r-1;t<n;t++)Ot(e,l,h,o[t],o[t+1]);return Ot(e,l,h,c,(0,i.k)(s)?e.length:c+s),l}return Ot(e,l,h),l}function Ot(t,e,n,s,o){const r=(0,i.v)(s,0),a=Math.min((0,i.v)(o,t.length),t.length);let c,l,h,u=0;for(n=Math.ceil(n),o&&(c=o-s,n=c/Math.floor(c/n)),h=r;h<0;)u++,h=Math.round(r+u*n);for(l=Math.max(r,0);l<a;l++)l===h&&(e.push(t[l]),u++,h=Math.round(r+u*n))}i.d.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Et.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),i.d.route("scale.ticks","color","","color"),i.d.route("scale.grid","color","","borderColor"),i.d.route("scale.grid","borderColor","","borderColor"),i.d.route("scale.title","color","","color"),i.d.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),i.d.describe("scales",{_fallback:"scale"}),i.d.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const jt=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n;function Dt(t,e){const n=[],i=t.length/e,s=t.length;let o=0;for(;o<s;o+=i)n.push(t[Math.floor(o)]);return n}function At(t,e,n){const i=t.ticks.length,s=Math.min(e,i-1),o=t._startPixel,r=t._endPixel,a=1e-6;let c,l=t.getPixelForTick(s);if(!(n&&(c=1===i?Math.max(l-o,r-l):0===e?(t.getPixelForTick(1)-l)/2:(l-t.getPixelForTick(s-1))/2,l+=s<e?c:-c,l<o-a||l>r+a)))return l}function Tt(t){return t.drawTicks?t.tickLength:0}function Nt(t,e){if(!t.display)return 0;const n=(0,i.Z)(t.font,e),s=(0,i.C)(t.padding);return((0,i.b)(t.text)?t.text.length:1)*n.lineHeight+s.height}function Lt(t,e,n){let s=(0,i.$)(t);return(n&&"right"!==e||!n&&"right"===e)&&(s=(t=>"left"===t?"right":"right"===t?"left":t)(s)),s}class Rt extends Mt{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:s}=this;return t=(0,i.N)(t,Number.POSITIVE_INFINITY),e=(0,i.N)(e,Number.NEGATIVE_INFINITY),n=(0,i.N)(n,Number.POSITIVE_INFINITY),s=(0,i.N)(s,Number.NEGATIVE_INFINITY),{min:(0,i.N)(t,n),max:(0,i.N)(e,s),minDefined:(0,i.g)(t),maxDefined:(0,i.g)(e)}}getMinMax(t){let e,{min:n,max:s,minDefined:o,maxDefined:r}=this.getUserBounds();if(o&&r)return{min:n,max:s};const a=this.getMatchingVisibleMetas();for(let i=0,c=a.length;i<c;++i)e=a[i].controller.getMinMax(this,t),o||(n=Math.min(n,e.min)),r||(s=Math.max(s,e.max));return n=r&&n>s?s:n,s=o&&n>s?n:s,{min:(0,i.N)(n,(0,i.N)(s,n)),max:(0,i.N)(s,(0,i.N)(n,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){(0,i.O)(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:s,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=(0,i.Q)(this,o,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const c=a<this.ticks.length;this._convertTicksToLabels(c?Dt(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||"auto"===r.source)&&(this.ticks=Pt(this,this.ticks),this._labelSizes=null),c&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){(0,i.O)(this.options.afterUpdate,[this])}beforeSetDimensions(){(0,i.O)(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){(0,i.O)(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),(0,i.O)(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){(0,i.O)(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,s,o;for(n=0,s=t.length;n<s;n++)o=t[n],o.label=(0,i.O)(e.callback,[o.value,n,t],this)}afterTickToLabelConversion(){(0,i.O)(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){(0,i.O)(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=this.ticks.length,s=e.minRotation||0,o=e.maxRotation;let r,a,c,l=s;if(!this._isVisible()||!e.display||s>=o||n<=1||!this.isHorizontal())return void(this.labelRotation=s);const h=this._getLabelSizes(),u=h.widest.width,d=h.highest.height,p=(0,i.w)(this.chart.width-u,0,this.maxWidth);r=t.offset?this.maxWidth/n:p/(n-1),u+6>r&&(r=p/(n-(t.offset?.5:1)),a=this.maxHeight-Tt(t.grid)-e.padding-Nt(t.title,this.chart.options.font),c=Math.sqrt(u*u+d*d),l=(0,i.R)(Math.min(Math.asin((0,i.w)((h.highest.height+6)/r,-1,1)),Math.asin((0,i.w)(a/c,-1,1))-Math.asin((0,i.w)(d/c,-1,1)))),l=Math.max(s,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){(0,i.O)(this.options.afterCalculateLabelRotation,[this])}beforeFit(){(0,i.O)(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:s,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const r=Nt(s,e.options.font);if(a?(t.width=this.maxWidth,t.height=Tt(o)+r):(t.height=this.maxHeight,t.width=Tt(o)+r),n.display&&this.ticks.length){const{first:e,last:s,widest:o,highest:r}=this._getLabelSizes(),c=2*n.padding,l=(0,i.t)(this.labelRotation),h=Math.cos(l),u=Math.sin(l);if(a){const e=n.mirror?0:u*o.width+h*r.height;t.height=Math.min(this.maxHeight,t.height+e+c)}else{const e=n.mirror?0:h*o.width+u*r.height;t.width=Math.min(this.maxWidth,t.width+e+c)}this._calculatePadding(e,s,u,h)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,n,i){const{ticks:{align:s,padding:o},position:r}=this.options,a=0!==this.labelRotation,c="top"!==r&&"x"===this.axis;if(this.isHorizontal()){const r=this.getPixelForTick(0)-this.left,l=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,u=0;a?c?(h=i*t.width,u=n*e.height):(h=n*t.height,u=i*e.width):"start"===s?u=e.width:"end"===s?h=t.width:(h=t.width/2,u=e.width/2),this.paddingLeft=Math.max((h-r+o)*this.width/(this.width-r),0),this.paddingRight=Math.max((u-l+o)*this.width/(this.width-l),0)}else{let n=e.height/2,i=t.height/2;"start"===s?(n=0,i=t.height):"end"===s&&(n=e.height,i=0),this.paddingTop=n+o,this.paddingBottom=i+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){(0,i.O)(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)(0,i.k)(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=Dt(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length)}return t}_computeLabelSizes(t,e){const{ctx:n,_longestTextCache:s}=this,o=[],r=[];let a,c,l,h,u,d,p,f,g,m,b,x=0,v=0;for(a=0;a<e;++a){if(h=t[a].label,u=this._resolveTickFontOptions(a),n.font=d=u.string,p=s[d]=s[d]||{data:{},gc:[]},f=u.lineHeight,g=m=0,(0,i.k)(h)||(0,i.b)(h)){if((0,i.b)(h))for(c=0,l=h.length;c<l;++c)b=h[c],(0,i.k)(b)||(0,i.b)(b)||(g=(0,i.S)(n,p.data,p.gc,g,b),m+=f)}else g=(0,i.S)(n,p.data,p.gc,g,h),m=f;o.push(g),r.push(m),x=Math.max(g,x),v=Math.max(m,v)}!function(t,e){(0,i.D)(t,(t=>{const n=t.gc,i=n.length/2;let s;if(i>e){for(s=0;s<i;++s)delete t.data[n[s]];n.splice(0,i)}}))}(s,e);const y=o.indexOf(x),_=r.indexOf(v),k=t=>({width:o[t]||0,height:r[t]||0});return{first:k(0),last:k(e-1),widest:k(y),highest:k(_),widths:o,heights:r}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return(0,i.U)(this._alignToPixels?(0,i.V)(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=function(t,e,n){return(0,i.h)(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=(n=this.chart.getContext(),s=this,(0,i.h)(n,{scale:s,type:"scale"})));var n,s}_tickSize(){const t=this.options.ticks,e=(0,i.t)(this.labelRotation),n=Math.abs(Math.cos(e)),s=Math.abs(Math.sin(e)),o=this._getLabelSizes(),r=t.autoSkipPadding||0,a=o?o.widest.width+r:0,c=o?o.highest.height+r:0;return this.isHorizontal()?c*n>a*s?a/n:c/s:c*s<a*n?c/n:a/s}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,s=this.options,{grid:o,position:r}=s,a=o.offset,c=this.isHorizontal(),l=this.ticks.length+(a?1:0),h=Tt(o),u=[],d=o.setContext(this.getContext()),p=d.drawBorder?d.borderWidth:0,f=p/2,g=function(t){return(0,i.V)(n,t,p)};let m,b,x,v,y,_,k,w,S,M,C,E;if("top"===r)m=g(this.bottom),_=this.bottom-h,w=m-f,M=g(t.top)+f,E=t.bottom;else if("bottom"===r)m=g(this.top),M=t.top,E=g(t.bottom)-f,_=m+f,w=this.top+h;else if("left"===r)m=g(this.right),y=this.right-h,k=m-f,S=g(t.left)+f,C=t.right;else if("right"===r)m=g(this.left),S=t.left,C=g(t.right)-f,y=m+f,k=this.left+h;else if("x"===e){if("center"===r)m=g((t.top+t.bottom)/2+.5);else if((0,i.i)(r)){const t=Object.keys(r)[0],e=r[t];m=g(this.chart.scales[t].getPixelForValue(e))}M=t.top,E=t.bottom,_=m+f,w=_+h}else if("y"===e){if("center"===r)m=g((t.left+t.right)/2);else if((0,i.i)(r)){const t=Object.keys(r)[0],e=r[t];m=g(this.chart.scales[t].getPixelForValue(e))}y=m-f,k=y-h,S=t.left,C=t.right}const P=(0,i.v)(s.ticks.maxTicksLimit,l),O=Math.max(1,Math.ceil(l/P));for(b=0;b<l;b+=O){const t=o.setContext(this.getContext(b)),e=t.lineWidth,s=t.color,r=o.borderDash||[],l=t.borderDashOffset,h=t.tickWidth,d=t.tickColor,p=t.tickBorderDash||[],f=t.tickBorderDashOffset;x=At(this,b,a),void 0!==x&&(v=(0,i.V)(n,x,e),c?y=k=S=C=v:_=w=M=E=v,u.push({tx1:y,ty1:_,tx2:k,ty2:w,x1:S,y1:M,x2:C,y2:E,width:e,color:s,borderDash:r,borderDashOffset:l,tickWidth:h,tickColor:d,tickBorderDash:p,tickBorderDashOffset:f}))}return this._ticksLength=l,this._borderValue=m,u}_computeLabelItems(t){const e=this.axis,n=this.options,{position:s,ticks:o}=n,r=this.isHorizontal(),a=this.ticks,{align:c,crossAlign:l,padding:h,mirror:u}=o,d=Tt(n.grid),p=d+h,f=u?-h:p,g=-(0,i.t)(this.labelRotation),m=[];let b,x,v,y,_,k,w,S,M,C,E,P,O="middle";if("top"===s)k=this.bottom-f,w=this._getXAxisLabelAlignment();else if("bottom"===s)k=this.top+f,w=this._getXAxisLabelAlignment();else if("left"===s){const t=this._getYAxisLabelAlignment(d);w=t.textAlign,_=t.x}else if("right"===s){const t=this._getYAxisLabelAlignment(d);w=t.textAlign,_=t.x}else if("x"===e){if("center"===s)k=(t.top+t.bottom)/2+p;else if((0,i.i)(s)){const t=Object.keys(s)[0],e=s[t];k=this.chart.scales[t].getPixelForValue(e)+p}w=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===s)_=(t.left+t.right)/2-p;else if((0,i.i)(s)){const t=Object.keys(s)[0],e=s[t];_=this.chart.scales[t].getPixelForValue(e)}w=this._getYAxisLabelAlignment(d).textAlign}"y"===e&&("start"===c?O="top":"end"===c&&(O="bottom"));const j=this._getLabelSizes();for(b=0,x=a.length;b<x;++b){v=a[b],y=v.label;const t=o.setContext(this.getContext(b));S=this.getPixelForTick(b)+o.labelOffset,M=this._resolveTickFontOptions(b),C=M.lineHeight,E=(0,i.b)(y)?y.length:1;const e=E/2,n=t.color,c=t.textStrokeColor,h=t.textStrokeWidth;let d;if(r?(_=S,P="top"===s?"near"===l||0!==g?-E*C+C/2:"center"===l?-j.highest.height/2-e*C+C:-j.highest.height+C/2:"near"===l||0!==g?C/2:"center"===l?j.highest.height/2-e*C:j.highest.height-E*C,u&&(P*=-1)):(k=S,P=(1-E)*C/2),t.showLabelBackdrop){const e=(0,i.C)(t.backdropPadding),n=j.heights[b],s=j.widths[b];let o=k+P-e.top,r=_-e.left;switch(O){case"middle":o-=n/2;break;case"bottom":o-=n}switch(w){case"center":r-=s/2;break;case"right":r-=s}d={left:r,top:o,width:s+e.width,height:n+e.height,color:t.backdropColor}}m.push({rotation:g,label:y,font:M,color:n,strokeColor:c,strokeWidth:h,textOffset:P,textAlign:w,textBaseline:O,translation:[_,k],backdrop:d})}return m}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-(0,i.t)(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align&&(n="right"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:i,padding:s}}=this.options,o=t+s,r=this._getLabelSizes().widest.width;let a,c;return"left"===e?i?(c=this.right+s,"near"===n?a="left":"center"===n?(a="center",c+=r/2):(a="right",c+=r)):(c=this.right-o,"near"===n?a="right":"center"===n?(a="center",c-=r/2):(a="left",c=this.left)):"right"===e?i?(c=this.left+s,"near"===n?a="right":"center"===n?(a="center",c-=r/2):(a="left",c-=r)):(c=this.left+o,"near"===n?a="left":"center"===n?(a="center",c+=r/2):(a="right",c=this.right)):a="right",{textAlign:a,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:n,top:i,width:s,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,i,s,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex((e=>e.value===t));if(n>=0){return e.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let s,o;const r=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(s=0,o=i.length;s<o;++s){const t=i[s];e.drawOnChartArea&&r({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&r({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{grid:n}}=this,s=n.setContext(this.getContext()),o=n.drawBorder?s.borderWidth:0;if(!o)return;const r=n.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let c,l,h,u;this.isHorizontal()?(c=(0,i.V)(t,this.left,o)-o/2,l=(0,i.V)(t,this.right,r)+r/2,h=u=a):(h=(0,i.V)(t,this.top,o)-o/2,u=(0,i.V)(t,this.bottom,r)+r/2,c=l=a),e.save(),e.lineWidth=s.borderWidth,e.strokeStyle=s.borderColor,e.beginPath(),e.moveTo(c,h),e.lineTo(l,u),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&(0,i.W)(e,n);const s=this._labelItems||(this._labelItems=this._computeLabelItems(t));let o,r;for(o=0,r=s.length;o<r;++o){const t=s[o],n=t.font,r=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height));let a=t.textOffset;(0,i.X)(e,r,0,a,n,t)}n&&(0,i.Y)(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:s}}=this;if(!n.display)return;const o=(0,i.Z)(n.font),r=(0,i.C)(n.padding),a=n.align;let c=o.lineHeight/2;"bottom"===e||"center"===e||(0,i.i)(e)?(c+=r.bottom,(0,i.b)(n.text)&&(c+=o.lineHeight*(n.text.length-1))):c+=r.top;const{titleX:l,titleY:h,maxWidth:u,rotation:d}=function(t,e,n,s){const{top:o,left:r,bottom:a,right:c,chart:l}=t,{chartArea:h,scales:u}=l;let d,p,f,g=0;const m=a-o,b=c-r;if(t.isHorizontal()){if(p=(0,i.a0)(s,r,c),(0,i.i)(n)){const t=Object.keys(n)[0],i=n[t];f=u[t].getPixelForValue(i)+m-e}else f="center"===n?(h.bottom+h.top)/2+m-e:jt(t,n,e);d=c-r}else{if((0,i.i)(n)){const t=Object.keys(n)[0],i=n[t];p=u[t].getPixelForValue(i)-b+e}else p="center"===n?(h.left+h.right)/2-b+e:jt(t,n,e);f=(0,i.a0)(s,a,o),g="left"===n?-i.H:i.H}return{titleX:p,titleY:f,maxWidth:d,rotation:g}}(this,c,e,a);(0,i.X)(t,n.text,0,0,o,{color:n.color,maxWidth:u,rotation:d,textAlign:Lt(a,e,s),textBaseline:"middle",translation:[l,h]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,n=(0,i.v)(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===Rt.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:n+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let s,o;for(s=0,o=e.length;s<o;++s){const o=e[s];o[n]!==this.id||t&&o.type!==t||i.push(o)}return i}_resolveTickFontOptions(t){const e=this.options.ticks.setContext(this.getContext(t));return(0,i.Z)(e.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class zt{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const s=this.items,o=t.id,r=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in s||(s[o]=t,function(t,e,n){const s=(0,i.a2)(Object.create(null),[n?i.d.get(n):{},i.d.get(e),t.defaults]);i.d.set(e,s),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((n=>{const s=n.split("."),o=s.pop(),r=[t].concat(s).join("."),a=e[n].split("."),c=a.pop(),l=a.join(".");i.d.route(r,o,l,c)}))}(e,t.defaultRoutes);t.descriptors&&i.d.describe(e,t.descriptors)}(t,r,n),this.override&&i.d.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,s=this.scope;n in e&&delete e[n],s&&n in i.d[s]&&(delete i.d[s][n],this.override&&delete i.a1[n])}}var It=new class{constructor(){this.controllers=new zt(_,"datasets",!0),this.elements=new zt(Mt,"elements"),this.plugins=new zt(Object,"plugins"),this.scales=new zt(Rt,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,n){[...e].forEach((e=>{const s=n||this._getRegistryForType(e);n||s.isForType(e)||s===this.plugins&&e.id?this._exec(t,s,e):(0,i.D)(e,(e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)}))}))}_exec(t,e,n){const s=(0,i.a3)(t);(0,i.O)(n["before"+s],[],n),e[t](n),(0,i.O)(n["after"+s],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const i=e.get(t);if(void 0===i)throw new Error('"'+t+'" is not a registered '+n+".");return i}};class Ft{constructor(){this._init=[]}notify(t,e,n,i){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const s=i?this._descriptors(t).filter(i):this._descriptors(t),o=this._notify(s,t,e,n);return"afterDestroy"===e&&(this._notify(s,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,n,s){s=s||{};for(const o of t){const t=o.plugin,r=t[n],a=[e,s,o.options];if(!1===(0,i.O)(r,a,t)&&s.cancelable)return!1}return!0}invalidate(){(0,i.k)(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,s=(0,i.v)(n.options&&n.options.plugins,{}),o=function(t){const e=[],n=Object.keys(It.plugins.items);for(let t=0;t<n.length;t++)e.push(It.getPlugin(n[t]));const i=t.plugins||[];for(let t=0;t<i.length;t++){const n=i[t];-1===e.indexOf(n)&&e.push(n)}return e}(n);return!1!==s||e?function(t,e,n,i){const s=[],o=t.getContext();for(let r=0;r<e.length;r++){const a=e[r],c=Vt(n[a.id],i);null!==c&&s.push({plugin:a,options:Bt(t.config,a,c,o)})}return s}(t,o,s,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,i=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(i(e,n),t,"stop"),this._notify(i(n,e),t,"start")}}function Vt(t,e){return e||!1!==t?!0===t?{}:t:null}function Bt(t,e,n,i){const s=t.pluginScopeKeys(e),o=t.getOptionScopes(n,s);return t.createResolver(o,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Ht(t,e){const n=i.d.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function Wt(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(n=e.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.charAt(0).toLowerCase();var n}function $t(t){const e=t.options||(t.options={});e.plugins=(0,i.v)(e.plugins,{}),e.scales=function(t,e){const n=i.a1[t.type]||{scales:{}},s=e.scales||{},o=Ht(t.type,e),r=Object.create(null),a=Object.create(null);return Object.keys(s).forEach((t=>{const e=s[t];if(!(0,i.i)(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const c=Wt(t,e),l=function(t,e){return t===e?"_index_":"_value_"}(c,o),h=n.scales||{};r[c]=r[c]||t,a[t]=(0,i.a9)(Object.create(null),[{axis:c},e,h[c],h[l]])})),t.data.datasets.forEach((n=>{const o=n.type||t.type,c=n.indexAxis||Ht(o,e),l=(i.a1[o]||{}).scales||{};Object.keys(l).forEach((t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,c),o=n[e+"AxisID"]||r[e]||e;a[o]=a[o]||Object.create(null),(0,i.a9)(a[o],[{axis:e},s[o],l[t]])}))})),Object.keys(a).forEach((t=>{const e=a[t];(0,i.a9)(e,[i.d.scales[e.type],i.d.scale])})),a}(t,e)}function Zt(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Ut=new Map,Yt=new Set;function Jt(t,e){let n=Ut.get(t);return n||(n=e(),Ut.set(t,n),Yt.add(n)),n}const Gt=(t,e,n)=>{const s=(0,i.f)(e,n);void 0!==s&&t.add(s)};class Xt{constructor(t){this._config=function(t){return(t=t||{}).data=Zt(t.data),$t(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Zt(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),$t(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Jt(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Jt(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Jt(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Jt(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const n=this._scopeCache;let i=n.get(t);return i&&!e||(i=new Map,n.set(t,i)),i}getOptionScopes(t,e,n){const{options:s,type:o}=this,r=this._cachedScopes(t,n),a=r.get(e);if(a)return a;const c=new Set;e.forEach((e=>{t&&(c.add(t),e.forEach((e=>Gt(c,t,e)))),e.forEach((t=>Gt(c,s,t))),e.forEach((t=>Gt(c,i.a1[o]||{},t))),e.forEach((t=>Gt(c,i.d,t))),e.forEach((t=>Gt(c,i.a4,t)))}));const l=Array.from(c);return 0===l.length&&l.push(Object.create(null)),Yt.has(e)&&r.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,i.a1[e]||{},i.d.datasets[e]||{},{type:e},i.d,i.a4]}resolveNamedOptions(t,e,n,s=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=qt(this._resolverCache,t,s);let c=r;if(function(t,e){const{isScriptable:n,isIndexable:s}=(0,i.a8)(t);for(const o of e){const e=n(o),r=s(o),a=(r||e)&&t[o];if(e&&((0,i.a5)(a)||Kt(a))||r&&(0,i.b)(a))return!0}return!1}(r,e)){o.$shared=!1,n=(0,i.a5)(n)?n():n;const e=this.createResolver(t,n,a);c=(0,i.a6)(r,n,e)}for(const t of e)o[t]=c[t];return o}createResolver(t,e,n=[""],s){const{resolver:o}=qt(this._resolverCache,t,n);return(0,i.i)(e)?(0,i.a6)(o,e,void 0,s):o}}function qt(t,e,n){let s=t.get(e);s||(s=new Map,t.set(e,s));const o=n.join();let r=s.get(o);if(!r){r={resolver:(0,i.a7)(e,n),subPrefixes:n.filter((t=>!t.toLowerCase().includes("hover")))},s.set(o,r)}return r}const Kt=t=>(0,i.i)(t)&&Object.getOwnPropertyNames(t).reduce(((e,n)=>e||(0,i.a5)(t[n])),!1);const Qt=["top","bottom","left","right","chartArea"];function te(t,e){return"top"===t||"bottom"===t||-1===Qt.indexOf(t)&&"x"===e}function ee(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function ne(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),(0,i.O)(n&&n.onComplete,[t],e)}function ie(t){const e=t.chart,n=e.options.animation;(0,i.O)(n&&n.onProgress,[t],e)}function se(t){return(0,i.K)()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const oe={},re=t=>{const e=se(t);return Object.values(oe).filter((t=>t.canvas===e)).pop()};function ae(t,e,n){const i=Object.keys(t);for(const s of i){const i=+s;if(i>=e){const o=t[s];delete t[s],(n>0||i>e)&&(t[i+n]=o)}}}class ce{constructor(t,e){const n=this.config=new Xt(e),o=se(t),r=re(o);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas can be reused.");const a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!(0,i.K)()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?ht:St}(o)),this.platform.updateConfig(n);const c=this.platform.acquireContext(o,a.aspectRatio),l=c&&c.canvas,h=l&&l.height,u=l&&l.width;this.id=(0,i.aa)(),this.ctx=c,this.canvas=l,this.width=u,this.height=h,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Ft,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=(0,i.ab)((t=>this.update(t)),a.resizeDelay||0),this._dataChanges=[],oe[this.id]=this,c&&l?(s.listen(this,"complete",ne),s.listen(this,"progress",ie),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:s,_aspectRatio:o}=this;return(0,i.k)(t)?e&&o?o:s?n/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():(0,i.ac)(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return(0,i.ad)(this.canvas,this.ctx),this}stop(){return s.stop(this),this}resize(t,e){s.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,s=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(s,t,e,o),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,(0,i.ac)(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),(0,i.O)(n.onResize,[this,r],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){const t=this.options.scales||{};(0,i.D)(t,((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,s=Object.keys(n).reduce(((t,e)=>(t[e]=!1,t)),{});let o=[];e&&(o=o.concat(Object.keys(e).map((t=>{const n=e[t],i=Wt(t,n),s="r"===i,o="x"===i;return{options:n,dposition:s?"chartArea":o?"bottom":"left",dtype:s?"radialLinear":o?"category":"linear"}})))),(0,i.D)(o,(e=>{const o=e.options,r=o.id,a=Wt(r,o),c=(0,i.v)(o.type,e.dtype);void 0!==o.position&&te(o.position,a)===te(e.dposition)||(o.position=e.dposition),s[r]=!0;let l=null;if(r in n&&n[r].type===c)l=n[r];else{l=new(It.getScale(c))({id:r,type:c,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(o,t)})),(0,i.D)(s,((t,e)=>{t||delete n[e]})),(0,i.D)(n,(t=>{ct.configure(this,t,t.options),ct.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort(((t,e)=>t.index-e.index)),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(ee("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,n)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,s;for(this._removeUnreferencedMetasets(),n=0,s=e.length;n<s;n++){const s=e[n];let o=this.getDatasetMeta(n);const r=s.type||this.config.type;if(o.type&&o.type!==r&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=r,o.indexAxis=s.indexAxis||Ht(r,this.options),o.order=s.order||0,o.index=n,o.label=""+s.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const e=It.getController(r),{datasetElementType:s,dataElementType:a}=i.d.datasets[r];Object.assign(e.prototype,{dataElementType:It.getElement(a),datasetElementType:s&&It.getElement(s)}),o.controller=new e(this,n),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){(0,i.D)(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!s&&-1===o.indexOf(e);e.buildOrUpdateElements(n),r=Math.max(+e.getMaxOverflow(),r)}r=this._minPadding=n.layout.autoPadding?r:0,this._updateLayout(r),s||(0,i.D)(o,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(ee("z","_idx"));const{_active:a,_lastEvent:c}=this;c?this._eventHandler(c,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){(0,i.D)(this.scales,(t=>{ct.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);(0,i.ae)(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:s}of e){ae(t,i,"_removeElements"===n?-s:s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),s=n(0);for(let t=1;t<e;t++)if(!(0,i.ae)(s,n(t)))return;return Array.from(s).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;ct.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],(0,i.D)(this.boxes,(t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,(0,i.a5)(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(s.has(this)?this.attached&&!s.running(this)&&s.start(this):(this.draw(),ne({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let i,s;for(i=0,s=e.length;i<s;++i){const s=e[i];t&&!s.visible||n.push(s)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n=t._clip,s=!n.disabled,o=this.chartArea,r={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",r)&&(s&&(0,i.W)(e,{left:!1===n.left?0:o.left-n.left,right:!1===n.right?this.width:o.right+n.right,top:!1===n.top?0:o.top-n.top,bottom:!1===n.bottom?this.height:o.bottom+n.bottom}),t.controller.draw(),s&&(0,i.Y)(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}getElementsAtEventForMode(t,e,n,i){const s=G.modes[e];return"function"==typeof s?s(this,t,n,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let i=n.filter((t=>t&&t._dataset===e)).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=(0,i.h)(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const s=n?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,s);(0,i.j)(e)?(o.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),r.update(o,{visible:n}),this.update((e=>e.datasetIndex===t?s:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),s.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),(0,i.ad)(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete oe[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},s=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};(0,i.D)(this.options.events,(t=>n(t,s)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(n,i)=>{t[n]&&(e.removeEventListener(this,n,i),delete t[n])},s=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const r=()=>{i("attach",r),this.attached=!0,this.resize(),n("resize",s),n("detach",o)};o=()=>{this.attached=!1,i("resize",s),this._stop(),this._resize(0,0),n("attach",r)},e.isAttached(this.canvas)?r():o()}unbindEvents(){(0,i.D)(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},(0,i.D)(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const i=n?"set":"remove";let s,o,r,a;for("dataset"===e&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+i+"DatasetHoverStyle"]()),r=0,a=t.length;r<a;++r){o=t[r];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[i+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map((({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}));!(0,i.af)(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}_updateHoverStyles(t,e,n){const i=this.options.hover,s=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=s(e,t),r=n?t:s(t,e);o.length&&this.updateHoverStyle(o,i.mode,!1),r.length&&i.mode&&this.updateHoverStyle(r,i.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:(0,i.z)(t,this.chartArea,this._minPadding)},s=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,s))return;const o=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,s),(o||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:s=[],options:o}=this,r=e,a=this._getActiveElements(t,s,n,r),c=(0,i.ag)(t),l=function(t,e,n,i){return n&&"mouseout"!==t.type?i?e:t:null}(t,this._lastEvent,n,c);n&&(this._lastEvent=null,(0,i.O)(o.onHover,[t,a,this],this),c&&(0,i.O)(o.onClick,[t,a,this],this));const h=!(0,i.af)(a,s);return(h||e)&&(this._active=a,this._updateHoverStyles(a,s,e)),this._lastEvent=l,h}_getActiveElements(t,e,n,i){if("mouseout"===t.type)return[];if(!n)return e;const s=this.options.hover;return this.getElementsAtEventForMode(t,s.mode,s,i)}}const le=()=>(0,i.D)(ce.instances,(t=>t._plugins.invalidate())),he=!0;function ue(t,e,n){const{startAngle:s,pixelMargin:o,x:r,y:a,outerRadius:c,innerRadius:l}=e;let h=o/c;t.beginPath(),t.arc(r,a,c,s-h,n+h),l>o?(h=o/l,t.arc(r,a,l,n+h,s-h,!0)):t.arc(r,a,o,n+i.H,s-i.H),t.closePath(),t.clip()}function de(t,e,n,s){const o=(r=t.options.borderRadius,(0,i.ai)(r,["outerStart","outerEnd","innerStart","innerEnd"]));var r;const a=(n-e)/2,c=Math.min(a,s*e/2),l=t=>{const e=(n-Math.min(a,t))*s/2;return(0,i.w)(t,0,Math.min(a,e))};return{outerStart:l(o.outerStart),outerEnd:l(o.outerEnd),innerStart:(0,i.w)(o.innerStart,0,c),innerEnd:(0,i.w)(o.innerEnd,0,c)}}function pe(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function fe(t,e,n,s,o){const{x:r,y:a,startAngle:c,pixelMargin:l,innerRadius:h}=e,u=Math.max(e.outerRadius+s+n-l,0),d=h>0?h+s+n+l:0;let p=0;const f=o-c;if(s){const t=((h>0?h-s:0)+(u>0?u-s:0))/2;p=(f-(0!==t?f*t/(t+s):f))/2}const g=(f-Math.max(.001,f*u-n/i.P)/u)/2,m=c+g+p,b=o-g-p,{outerStart:x,outerEnd:v,innerStart:y,innerEnd:_}=de(e,d,u,b-m),k=u-x,w=u-v,S=m+x/k,M=b-v/w,C=d+y,E=d+_,P=m+y/C,O=b-_/E;if(t.beginPath(),t.arc(r,a,u,S,M),v>0){const e=pe(w,M,r,a);t.arc(e.x,e.y,v,M,b+i.H)}const j=pe(E,b,r,a);if(t.lineTo(j.x,j.y),_>0){const e=pe(E,O,r,a);t.arc(e.x,e.y,_,b+i.H,O+Math.PI)}if(t.arc(r,a,d,b-_/d,m+y/d,!0),y>0){const e=pe(C,P,r,a);t.arc(e.x,e.y,y,P+Math.PI,m-i.H)}const D=pe(k,m,r,a);if(t.lineTo(D.x,D.y),x>0){const e=pe(k,S,r,a);t.arc(e.x,e.y,x,m-i.H,S)}t.closePath()}function ge(t,e,n,s,o){const{options:r}=e,{borderWidth:a,borderJoinStyle:c}=r,l="inner"===r.borderAlign;a&&(l?(t.lineWidth=2*a,t.lineJoin=c||"round"):(t.lineWidth=a,t.lineJoin=c||"bevel"),e.fullCircles&&function(t,e,n){const{x:s,y:o,startAngle:r,pixelMargin:a,fullCircles:c}=e,l=Math.max(e.outerRadius-a,0),h=e.innerRadius+a;let u;for(n&&ue(t,e,r+i.T),t.beginPath(),t.arc(s,o,h,r+i.T,r,!0),u=0;u<c;++u)t.stroke();for(t.beginPath(),t.arc(s,o,l,r,r+i.T),u=0;u<c;++u)t.stroke()}(t,e,l),l&&ue(t,e,o),fe(t,e,n,s,o),t.stroke())}Object.defineProperties(ce,{defaults:{enumerable:he,value:i.d},instances:{enumerable:he,value:oe},overrides:{enumerable:he,value:i.a1},registry:{enumerable:he,value:It},version:{enumerable:he,value:"3.7.1"},getChart:{enumerable:he,value:re},register:{enumerable:he,value:(...t)=>{It.add(...t),le()}},unregister:{enumerable:he,value:(...t)=>{It.remove(...t),le()}}});class me extends Mt{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,n){const s=this.getProps(["x","y"],n),{angle:o,distance:r}=(0,i.B)(s,{x:t,y:e}),{startAngle:a,endAngle:c,innerRadius:l,outerRadius:h,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),d=this.options.spacing/2,p=(0,i.v)(u,c-a)>=i.T||(0,i.p)(o,a,c),f=(0,i.ah)(r,l+d,h+d);return p&&f}getCenterPoint(t){const{x:e,y:n,startAngle:i,endAngle:s,innerRadius:o,outerRadius:r}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:a,spacing:c}=this.options,l=(i+s)/2,h=(o+r+c+a)/2;return{x:e+Math.cos(l)*h,y:n+Math.sin(l)*h}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,s=(e.offset||0)/2,o=(e.spacing||0)/2;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>i.T?Math.floor(n/i.T):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();let r=0;if(s){r=s/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*r,Math.sin(e)*r),this.circumference>=i.P&&(r=s)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const a=function(t,e,n,s){const{fullCircles:o,startAngle:r,circumference:a}=e;let c=e.endAngle;if(o){fe(t,e,n,s,r+i.T);for(let e=0;e<o;++e)t.fill();isNaN(a)||(c=r+a%i.T,a%i.T==0&&(c+=i.T))}return fe(t,e,n,s,c),t.fill(),c}(t,this,r,o);ge(t,this,r,o,a),t.restore()}}function be(t,e,n=e){t.lineCap=(0,i.v)(n.borderCapStyle,e.borderCapStyle),t.setLineDash((0,i.v)(n.borderDash,e.borderDash)),t.lineDashOffset=(0,i.v)(n.borderDashOffset,e.borderDashOffset),t.lineJoin=(0,i.v)(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=(0,i.v)(n.borderWidth,e.borderWidth),t.strokeStyle=(0,i.v)(n.borderColor,e.borderColor)}function xe(t,e,n){t.lineTo(n.x,n.y)}function ve(t,e,n={}){const i=t.length,{start:s=0,end:o=i-1}=n,{start:r,end:a}=e,c=Math.max(s,r),l=Math.min(o,a),h=s<r&&o<r||s>a&&o>a;return{count:i,start:c,loop:e.loop,ilen:l<c&&!h?i+l-c:l-c}}function ye(t,e,n,s){const{points:o,options:r}=e,{count:a,start:c,loop:l,ilen:h}=ve(o,n,s),u=function(t){return t.stepped?i.ap:t.tension||"monotone"===t.cubicInterpolationMode?i.aq:xe}(r);let d,p,f,{move:g=!0,reverse:m}=s||{};for(d=0;d<=h;++d)p=o[(c+(m?h-d:d))%a],p.skip||(g?(t.moveTo(p.x,p.y),g=!1):u(t,f,p,m,r.stepped),f=p);return l&&(p=o[(c+(m?h:0))%a],u(t,f,p,m,r.stepped)),!!l}function _e(t,e,n,i){const s=e.points,{count:o,start:r,ilen:a}=ve(s,n,i),{move:c=!0,reverse:l}=i||{};let h,u,d,p,f,g,m=0,b=0;const x=t=>(r+(l?a-t:t))%o,v=()=>{p!==f&&(t.lineTo(m,f),t.lineTo(m,p),t.lineTo(m,g))};for(c&&(u=s[x(0)],t.moveTo(u.x,u.y)),h=0;h<=a;++h){if(u=s[x(h)],u.skip)continue;const e=u.x,n=u.y,i=0|e;i===d?(n<p?p=n:n>f&&(f=n),m=(b*m+e)/++b):(v(),t.lineTo(e,n),d=i,b=0,p=f=n),g=n}v()}function ke(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n)?_e:ye}me.id="arc",me.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0},me.defaultRoutes={backgroundColor:"backgroundColor"};const we="function"==typeof Path2D;function Se(t,e,n,i){we&&!e.options.segment?function(t,e,n,i){let s=e._path;s||(s=e._path=new Path2D,e.path(s,n,i)&&s.closePath()),be(t,e.options),t.stroke(s)}(t,e,n,i):function(t,e,n,i){const{segments:s,options:o}=e,r=ke(e);for(const a of s)be(t,o,a.style),t.beginPath(),r(t,e,a,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}(t,e,n,i)}class Me extends Mt{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const s=n.spanGaps?this._loop:this._fullLoop;(0,i.aj)(this._points,n,t,s,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=(0,i.ak)(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,n=t.length;return n&&e[t[n-1].end]}interpolate(t,e){const n=this.options,s=t[e],o=this.points,r=(0,i.al)(this,{property:e,start:s,end:s});if(!r.length)return;const a=[],c=function(t){return t.stepped?i.am:t.tension||"monotone"===t.cubicInterpolationMode?i.an:i.ao}(n);let l,h;for(l=0,h=r.length;l<h;++l){const{start:i,end:h}=r[l],u=o[i],d=o[h];if(u===d){a.push(u);continue}const p=c(u,d,Math.abs((s-u[e])/(d[e]-u[e])),n.stepped);p[e]=t[e],a.push(p)}return 1===a.length?a[0]:a}pathSegment(t,e,n){return ke(this)(t,this,e,n)}path(t,e,n){const i=this.segments,s=ke(this);let o=this._loop;e=e||0,n=n||this.points.length-e;for(const r of i)o&=s(t,this,r,{start:e,end:e+n-1});return!!o}draw(t,e,n,i){const s=this.options||{};(this.points||[]).length&&s.borderWidth&&(t.save(),Se(t,this,n,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Ce(t,e,n,i){const s=t.options,{[n]:o}=t.getProps([n],i);return Math.abs(e-o)<s.radius+s.hitRadius}Me.id="line",Me.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Me.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Me.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class Ee extends Mt{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,n){const i=this.options,{x:s,y:o}=this.getProps(["x","y"],n);return Math.pow(t-s,2)+Math.pow(e-o,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,e){return Ce(this,t,"x",e)}inYRange(t,e){return Ce(this,t,"y",e)}getCenterPoint(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}size(t){let e=(t=t||this.options||{}).radius||0;e=Math.max(e,e&&t.hoverRadius||0);return 2*(e+(e&&t.borderWidth||0))}draw(t,e){const n=this.options;this.skip||n.radius<.1||!(0,i.z)(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,(0,i.ar)(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function Pe(t,e){const{x:n,y:i,base:s,width:o,height:r}=t.getProps(["x","y","base","width","height"],e);let a,c,l,h,u;return t.horizontal?(u=r/2,a=Math.min(n,s),c=Math.max(n,s),l=i-u,h=i+u):(u=o/2,a=n-u,c=n+u,l=Math.min(i,s),h=Math.max(i,s)),{left:a,top:l,right:c,bottom:h}}function Oe(t,e,n,s){return t?0:(0,i.w)(e,n,s)}function je(t){const e=Pe(t),n=e.right-e.left,s=e.bottom-e.top,o=function(t,e,n){const s=t.options.borderWidth,o=t.borderSkipped,r=(0,i.at)(s);return{t:Oe(o.top,r.top,0,n),r:Oe(o.right,r.right,0,e),b:Oe(o.bottom,r.bottom,0,n),l:Oe(o.left,r.left,0,e)}}(t,n/2,s/2),r=function(t,e,n){const{enableBorderRadius:s}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,r=(0,i.au)(o),a=Math.min(e,n),c=t.borderSkipped,l=s||(0,i.i)(o);return{topLeft:Oe(!l||c.top||c.left,r.topLeft,0,a),topRight:Oe(!l||c.top||c.right,r.topRight,0,a),bottomLeft:Oe(!l||c.bottom||c.left,r.bottomLeft,0,a),bottomRight:Oe(!l||c.bottom||c.right,r.bottomRight,0,a)}}(t,n/2,s/2);return{outer:{x:e.left,y:e.top,w:n,h:s,radius:r},inner:{x:e.left+o.l,y:e.top+o.t,w:n-o.l-o.r,h:s-o.t-o.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,r.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(o.b,o.r))}}}}function De(t,e,n,s){const o=null===e,r=null===n,a=t&&!(o&&r)&&Pe(t,s);return a&&(o||(0,i.ah)(e,a.left,a.right))&&(r||(0,i.ah)(n,a.top,a.bottom))}function Ae(t,e){t.rect(e.x,e.y,e.w,e.h)}function Te(t,e,n={}){const i=t.x!==n.x?-e:0,s=t.y!==n.y?-e:0,o=(t.x+t.w!==n.x+n.w?e:0)-i,r=(t.y+t.h!==n.y+n.h?e:0)-s;return{x:t.x+i,y:t.y+s,w:t.w+o,h:t.h+r,radius:t.radius}}Ee.id="point",Ee.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Ee.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Ne extends Mt{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:n,backgroundColor:s}}=this,{inner:o,outer:r}=je(this),a=(c=r.radius).topLeft||c.topRight||c.bottomLeft||c.bottomRight?i.as:Ae;var c;t.save(),r.w===o.w&&r.h===o.h||(t.beginPath(),a(t,Te(r,e,o)),t.clip(),a(t,Te(o,-e,r)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),a(t,Te(o,e)),t.fillStyle=s,t.fill(),t.restore()}inRange(t,e,n){return De(this,t,e,n)}inXRange(t,e){return De(this,t,null,e)}inYRange(t,e){return De(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:i,horizontal:s}=this.getProps(["x","y","base","horizontal"],t);return{x:s?(e+i)/2:e,y:s?n:(n+i)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}Ne.id="bar",Ne.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},Ne.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Le=Object.freeze({__proto__:null,ArcElement:me,LineElement:Me,PointElement:Ee,BarElement:Ne});function Re(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{value:e})}}function ze(t){t.data.datasets.forEach((t=>{Re(t)}))}var Ie={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,n)=>{if(!n.enabled)return void ze(t);const s=t.width;t.data.datasets.forEach(((e,o)=>{const{_data:r,indexAxis:a}=e,c=t.getDatasetMeta(o),l=r||e.data;if("y"===(0,i.a)([a,t.options.indexAxis]))return;if("line"!==c.type)return;const h=t.scales[c.xAxisID];if("linear"!==h.type&&"time"!==h.type)return;if(t.options.parsing)return;let{start:u,count:d}=function(t,e){const n=e.length;let s,o=0;const{iScale:r}=t,{min:a,max:c,minDefined:l,maxDefined:h}=r.getUserBounds();return l&&(o=(0,i.w)((0,i.x)(e,r.axis,a).lo,0,n-1)),s=h?(0,i.w)((0,i.x)(e,r.axis,c).hi+1,o,n)-o:n-o,{start:o,count:s}}(c,l);if(d<=(n.threshold||4*s))return void Re(e);let p;switch((0,i.k)(r)&&(e._data=l,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),n.algorithm){case"lttb":p=function(t,e,n,i,s){const o=s.samples||i;if(o>=n)return t.slice(e,e+n);const r=[],a=(n-2)/(o-2);let c=0;const l=e+n-1;let h,u,d,p,f,g=e;for(r[c++]=t[g],h=0;h<o-2;h++){let i,s=0,o=0;const l=Math.floor((h+1)*a)+1+e,m=Math.min(Math.floor((h+2)*a)+1,n)+e,b=m-l;for(i=l;i<m;i++)s+=t[i].x,o+=t[i].y;s/=b,o/=b;const x=Math.floor(h*a)+1+e,v=Math.min(Math.floor((h+1)*a)+1,n)+e,{x:y,y:_}=t[g];for(d=p=-1,i=x;i<v;i++)p=.5*Math.abs((y-s)*(t[i].y-_)-(y-t[i].x)*(o-_)),p>d&&(d=p,u=t[i],f=i);r[c++]=u,g=f}return r[c++]=t[l],r}(l,u,d,s,n);break;case"min-max":p=function(t,e,n,s){let o,r,a,c,l,h,u,d,p,f,g=0,m=0;const b=[],x=e+n-1,v=t[e].x,y=t[x].x-v;for(o=e;o<e+n;++o){r=t[o],a=(r.x-v)/y*s,c=r.y;const e=0|a;if(e===l)c<p?(p=c,h=o):c>f&&(f=c,u=o),g=(m*g+r.x)/++m;else{const n=o-1;if(!(0,i.k)(h)&&!(0,i.k)(u)){const e=Math.min(h,u),i=Math.max(h,u);e!==d&&e!==n&&b.push({...t[e],x:g}),i!==d&&i!==n&&b.push({...t[i],x:g})}o>0&&n!==d&&b.push(t[n]),b.push(r),l=e,m=0,p=f=c,h=u=d=o}}return b}(l,u,d,s);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}e._decimated=p}))},destroy(t){ze(t)}};function Fe(t,e,n){const s=function(t){const e=t.options,n=e.fill;let s=(0,i.v)(n&&n.target,n);return void 0===s&&(s=!!e.backgroundColor),!1!==s&&null!==s&&(!0===s?"origin":s)}(t);if((0,i.i)(s))return!isNaN(s.value)&&s;let o=parseFloat(s);return(0,i.g)(o)&&Math.floor(o)===o?("-"!==s[0]&&"+"!==s[0]||(o=e+o),!(o===e||o<0||o>=n)&&o):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}class Ve{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,n){const{x:s,y:o,radius:r}=this;return e=e||{start:0,end:i.T},t.arc(s,o,r,e.end,e.start,!0),!n.bounds}interpolate(t){const{x:e,y:n,radius:i}=this,s=t.angle;return{x:e+Math.cos(s)*i,y:n+Math.sin(s)*i,angle:s}}}function Be(t){return(t.scale||{}).getPointPositionForValue?function(t){const{scale:e,fill:n}=t,s=e.options,o=e.getLabels().length,r=[],a=s.reverse?e.max:e.min,c=s.reverse?e.min:e.max;let l,h,u;if(u="start"===n?a:"end"===n?c:(0,i.i)(n)?n.value:e.getBaseValue(),s.grid.circular)return h=e.getPointPositionForValue(0,a),new Ve({x:h.x,y:h.y,radius:e.getDistanceFromCenterForValue(u)});for(l=0;l<o;++l)r.push(e.getPointPositionForValue(l,u));return r}(t):function(t){const{scale:e={},fill:n}=t;let s,o=null;return"start"===n?o=e.bottom:"end"===n?o=e.top:(0,i.i)(n)?o=e.getPixelForValue(n.value):e.getBasePixel&&(o=e.getBasePixel()),(0,i.g)(o)?(s=e.isHorizontal(),{x:s?o:null,y:s?null:o}):null}(t)}function He(t,e,n){for(;e>t;e--){const t=n[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function We(t,e,n){const i=[];for(let s=0;s<n.length;s++){const o=n[s],{first:r,last:a,point:c}=$e(o,e,"x");if(!(!c||r&&a))if(r)i.unshift(c);else if(t.push(c),!a)break}t.push(...i)}function $e(t,e,n){const s=t.interpolate(e,n);if(!s)return{};const o=s[n],r=t.segments,a=t.points;let c=!1,l=!1;for(let t=0;t<r.length;t++){const e=r[t],s=a[e.start][n],h=a[e.end][n];if((0,i.ah)(o,s,h)){c=o===s,l=o===h;break}}return{first:c,last:l,point:s}}function Ze(t){const{chart:e,fill:n,line:s}=t;if((0,i.g)(n))return function(t,e){const n=t.getDatasetMeta(e);return n&&t.isDatasetVisible(e)?n.dataset:null}(e,n);if("stack"===n)return function(t){const{scale:e,index:n,line:i}=t,s=[],o=i.segments,r=i.points,a=function(t,e){const n=[],i=t.getMatchingVisibleMetas("line");for(let t=0;t<i.length;t++){const s=i[t];if(s.index===e)break;s.hidden||n.unshift(s.dataset)}return n}(e,n);a.push(Ue({x:null,y:e.bottom},i));for(let t=0;t<o.length;t++){const e=o[t];for(let t=e.start;t<=e.end;t++)We(s,r[t],a)}return new Me({points:s,options:{}})}(t);if("shape"===n)return!0;const o=Be(t);return o instanceof Ve?o:Ue(o,s)}function Ue(t,e){let n=[],s=!1;return(0,i.b)(t)?(s=!0,n=t):n=function(t,e){const{x:n=null,y:i=null}=t||{},s=e.points,o=[];return e.segments.forEach((({start:t,end:e})=>{e=He(t,e,s);const r=s[t],a=s[e];null!==i?(o.push({x:r.x,y:i}),o.push({x:a.x,y:i})):null!==n&&(o.push({x:n,y:r.y}),o.push({x:n,y:a.y}))})),o}(t,e),n.length?new Me({points:n,options:{tension:0},_loop:s,_fullLoop:s}):null}function Ye(t,e,n){let s=t[e].fill;const o=[e];let r;if(!n)return s;for(;!1!==s&&-1===o.indexOf(s);){if(!(0,i.g)(s))return s;if(r=t[s],!r)return!1;if(r.visible)return s;o.push(s),s=r.fill}return!1}function Je(t,e,n){const{segments:i,points:s}=e;let o=!0,r=!1;t.beginPath();for(const a of i){const{start:i,end:c}=a,l=s[i],h=s[He(i,c,s)];o?(t.moveTo(l.x,l.y),o=!1):(t.lineTo(l.x,n),t.lineTo(l.x,l.y)),r=!!e.pathSegment(t,a,{move:r}),r?t.closePath():t.lineTo(h.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function Ge(t,e,n,s){if(s)return;let o=e[t],r=n[t];return"angle"===t&&(o=(0,i.aw)(o),r=(0,i.aw)(r)),{property:t,start:o,end:r}}function Xe(t,e,n,i){return t&&e?i(t[n],e[n]):t?t[n]:e?e[n]:0}function qe(t,e,n){const{top:i,bottom:s}=e.chart.chartArea,{property:o,start:r,end:a}=n||{};"x"===o&&(t.beginPath(),t.rect(r,i,a-r,s-i),t.clip())}function Ke(t,e,n,i){const s=e.interpolate(n,i);s&&t.lineTo(s.x,s.y)}function Qe(t,e){const{line:n,target:s,property:o,color:r,scale:a}=e,c=function(t,e,n){const s=t.segments,o=t.points,r=e.points,a=[];for(const t of s){let{start:s,end:c}=t;c=He(s,c,o);const l=Ge(n,o[s],o[c],t.loop);if(!e.segments){a.push({source:t,target:l,start:o[s],end:o[c]});continue}const h=(0,i.al)(e,l);for(const e of h){const s=Ge(n,r[e.start],r[e.end],e.loop),c=(0,i.av)(t,o,s);for(const t of c)a.push({source:t,target:e,start:{[n]:Xe(l,s,"start",Math.max)},end:{[n]:Xe(l,s,"end",Math.min)}})}}return a}(n,s,o);for(const{source:e,target:i,start:l,end:h}of c){const{style:{backgroundColor:c=r}={}}=e,u=!0!==s;t.save(),t.fillStyle=c,qe(t,a,u&&Ge(o,l,h)),t.beginPath();const d=!!n.pathSegment(t,e);let p;if(u){d?t.closePath():Ke(t,s,h,o);const e=!!s.pathSegment(t,i,{move:d,reverse:!0});p=d&&e,p||Ke(t,s,l,o)}t.closePath(),t.fill(p?"evenodd":"nonzero"),t.restore()}}function tn(t,e,n){const s=Ze(e),{line:o,scale:r,axis:a}=e,c=o.options,l=c.fill,h=c.backgroundColor,{above:u=h,below:d=h}=l||{};s&&o.points.length&&((0,i.W)(t,n),function(t,e){const{line:n,target:i,above:s,below:o,area:r,scale:a}=e,c=n._loop?"angle":e.axis;t.save(),"x"===c&&o!==s&&(Je(t,i,r.top),Qe(t,{line:n,target:i,color:s,scale:a,property:c}),t.restore(),t.save(),Je(t,i,r.bottom)),Qe(t,{line:n,target:i,color:o,scale:a,property:c}),t.restore()}(t,{line:o,target:s,above:u,below:d,area:n,scale:r,axis:a}),(0,i.Y)(t))}var en={id:"filler",afterDatasetsUpdate(t,e,n){const i=(t.data.datasets||[]).length,s=[];let o,r,a,c;for(r=0;r<i;++r)o=t.getDatasetMeta(r),a=o.dataset,c=null,a&&a.options&&a instanceof Me&&(c={visible:t.isDatasetVisible(r),index:r,fill:Fe(a,r,i),chart:t,axis:o.controller.options.indexAxis,scale:o.vScale,line:a}),o.$filler=c,s.push(c);for(r=0;r<i;++r)c=s[r],c&&!1!==c.fill&&(c.fill=Ye(s,r,n.propagate))},beforeDraw(t,e,n){const i="beforeDraw"===n.drawTime,s=t.getSortedVisibleDatasetMetas(),o=t.chartArea;for(let e=s.length-1;e>=0;--e){const n=s[e].$filler;n&&(n.line.updateControlPoints(o,n.axis),i&&tn(t.ctx,n,o))}},beforeDatasetsDraw(t,e,n){if("beforeDatasetsDraw"!==n.drawTime)return;const i=t.getSortedVisibleDatasetMetas();for(let e=i.length-1;e>=0;--e){const n=i[e].$filler;n&&tn(t.ctx,n,t.chartArea)}},beforeDatasetDraw(t,e,n){const i=e.meta.$filler;i&&!1!==i.fill&&"beforeDatasetDraw"===n.drawTime&&tn(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const nn=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}};class sn extends Mt{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=(0,i.O)(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,n)=>t.sort(e,n,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const n=t.labels,s=(0,i.Z)(n.font),o=s.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:c}=nn(n,o);let l,h;e.font=s.string,this.isHorizontal()?(l=this.maxWidth,h=this._fitRows(r,o,a,c)+10):(h=this.maxHeight,l=this._fitCols(r,o,a,c)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(h,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,i){const{ctx:s,maxWidth:o,options:{labels:{padding:r}}}=this,a=this.legendHitBoxes=[],c=this.lineWidths=[0],l=i+r;let h=t;s.textAlign="left",s.textBaseline="middle";let u=-1,d=-l;return this.legendItems.forEach(((t,p)=>{const f=n+e/2+s.measureText(t.text).width;(0===p||c[c.length-1]+f+2*r>o)&&(h+=l,c[c.length-(p>0?0:1)]=0,d+=l,u++),a[p]={left:0,top:d,row:u,width:f,height:i},c[c.length-1]+=f+r})),h}_fitCols(t,e,n,i){const{ctx:s,maxHeight:o,options:{labels:{padding:r}}}=this,a=this.legendHitBoxes=[],c=this.columnSizes=[],l=o-t;let h=r,u=0,d=0,p=0,f=0;return this.legendItems.forEach(((t,o)=>{const g=n+e/2+s.measureText(t.text).width;o>0&&d+i+2*r>l&&(h+=u+r,c.push({width:u,height:d}),p+=u+r,f++,u=d=0),a[o]={left:p,top:d,col:f,width:g,height:i},u=Math.max(u,g),d+=i+r})),h+=u,c.push({width:u,height:d}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:s},rtl:o}}=this,r=(0,i.ax)(o,this.left,this.width);if(this.isHorizontal()){let o=0,a=(0,i.a0)(n,this.left+s,this.right-this.lineWidths[o]);for(const c of e)o!==c.row&&(o=c.row,a=(0,i.a0)(n,this.left+s,this.right-this.lineWidths[o])),c.top+=this.top+t+s,c.left=r.leftForLtr(r.x(a),c.width),a+=c.width+s}else{let o=0,a=(0,i.a0)(n,this.top+t+s,this.bottom-this.columnSizes[o].height);for(const c of e)c.col!==o&&(o=c.col,a=(0,i.a0)(n,this.top+t+s,this.bottom-this.columnSizes[o].height)),c.top=a,c.left+=this.left+s,c.left=r.leftForLtr(r.x(c.left),c.width),a+=c.height+s}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;(0,i.W)(t,this),this._draw(),(0,i.Y)(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:s}=this,{align:o,labels:r}=t,a=i.d.color,c=(0,i.ax)(t.rtl,this.left,this.width),l=(0,i.Z)(r.font),{color:h,padding:u}=r,d=l.size,p=d/2;let f;this.drawTitle(),s.textAlign=c.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=l.string;const{boxWidth:g,boxHeight:m,itemHeight:b}=nn(r,d),x=this.isHorizontal(),v=this._computeTitleHeight();f=x?{x:(0,i.a0)(o,this.left+u,this.right-n[0]),y:this.top+u+v,line:0}:{x:this.left+u,y:(0,i.a0)(o,this.top+v+u,this.bottom-e[0].height),line:0},(0,i.ay)(this.ctx,t.textDirection);const y=b+u;this.legendItems.forEach(((_,k)=>{s.strokeStyle=_.fontColor||h,s.fillStyle=_.fontColor||h;const w=s.measureText(_.text).width,S=c.textAlign(_.textAlign||(_.textAlign=r.textAlign)),M=g+p+w;let C=f.x,E=f.y;c.setWidth(this.width),x?k>0&&C+M+u>this.right&&(E=f.y+=y,f.line++,C=f.x=(0,i.a0)(o,this.left+u,this.right-n[f.line])):k>0&&E+y>this.bottom&&(C=f.x=C+e[f.line].width+u,f.line++,E=f.y=(0,i.a0)(o,this.top+v+u,this.bottom-e[f.line].height));!function(t,e,n){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;s.save();const o=(0,i.v)(n.lineWidth,1);if(s.fillStyle=(0,i.v)(n.fillStyle,a),s.lineCap=(0,i.v)(n.lineCap,"butt"),s.lineDashOffset=(0,i.v)(n.lineDashOffset,0),s.lineJoin=(0,i.v)(n.lineJoin,"miter"),s.lineWidth=o,s.strokeStyle=(0,i.v)(n.strokeStyle,a),s.setLineDash((0,i.v)(n.lineDash,[])),r.usePointStyle){const r={radius:g*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},a=c.xPlus(t,g/2),l=e+p;(0,i.ar)(s,r,a,l)}else{const r=e+Math.max((d-m)/2,0),a=c.leftForLtr(t,g),l=(0,i.au)(n.borderRadius);s.beginPath(),Object.values(l).some((t=>0!==t))?(0,i.as)(s,{x:a,y:r,w:g,h:m,radius:l}):s.rect(a,r,g,m),s.fill(),0!==o&&s.stroke()}s.restore()}(c.x(C),E,_),C=(0,i.az)(S,C+g+p,x?C+M:this.right,t.rtl),function(t,e,n){(0,i.X)(s,n.text,t,e+b/2,l,{strikethrough:n.hidden,textAlign:c.textAlign(n.textAlign)})}(c.x(C),E,_),x?f.x+=M+u:f.y+=y})),(0,i.aA)(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=(0,i.Z)(e.font),s=(0,i.C)(e.padding);if(!e.display)return;const o=(0,i.ax)(t.rtl,this.left,this.width),r=this.ctx,a=e.position,c=n.size/2,l=s.top+c;let h,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),h=this.top+l,u=(0,i.a0)(t.align,u,this.right-d);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);h=l+(0,i.a0)(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const p=(0,i.a0)(a,u,u+d);r.textAlign=o.textAlign((0,i.$)(a)),r.textBaseline="middle",r.strokeStyle=e.color,r.fillStyle=e.color,r.font=n.string,(0,i.X)(r,e.text,p,h,n)}_computeTitleHeight(){const t=this.options.title,e=(0,i.Z)(t.font),n=(0,i.C)(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,s,o;if((0,i.ah)(t,this.left,this.right)&&(0,i.ah)(e,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(s=o[n],(0,i.ah)(t,s.left,s.left+s.width)&&(0,i.ah)(e,s.top,s.top+s.height))return this.legendItems[n];return null}handleEvent(t){const e=this.options;if(!function(t,e){if("mousemove"===t&&(e.onHover||e.onLeave))return!0;if(e.onClick&&("click"===t||"mouseup"===t))return!0;return!1}(t.type,e))return;const n=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type){const r=this._hoveredItem,a=(o=n,null!==(s=r)&&null!==o&&s.datasetIndex===o.datasetIndex&&s.index===o.index);r&&!a&&(0,i.O)(e.onLeave,[t,r,this],this),this._hoveredItem=n,n&&!a&&(0,i.O)(e.onHover,[t,n,this],this)}else n&&(0,i.O)(e.onClick,[t,n,this],this);var s,o}}var on={id:"legend",_element:sn,start(t,e,n){const i=t.legend=new sn({ctx:t.ctx,options:n,chart:t});ct.configure(t,i,n),ct.addBox(t,i)},stop(t){ct.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;ct.configure(t,i,n),i.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const i=e.datasetIndex,s=n.chart;s.isDatasetVisible(i)?(s.hide(i),e.hidden=!0):(s.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:s,textAlign:o,color:r}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const a=t.controller.getStyle(n?0:void 0),c=(0,i.C)(a.borderWidth);return{text:e[t.index].label,fillStyle:a.backgroundColor,fontColor:r,hidden:!t.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:a.borderColor,pointStyle:s||a.pointStyle,rotation:a.rotation,textAlign:o||a.textAlign,borderRadius:0,datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class rn extends Mt{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const s=(0,i.b)(n.text)?n.text.length:1;this._padding=(0,i.C)(n.padding);const o=s*(0,i.Z)(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:n,bottom:s,right:o,options:r}=this,a=r.align;let c,l,h,u=0;return this.isHorizontal()?(l=(0,i.a0)(a,n,o),h=e+t,c=o-n):("left"===r.position?(l=n+t,h=(0,i.a0)(a,s,e),u=-.5*i.P):(l=o-t,h=(0,i.a0)(a,e,s),u=.5*i.P),c=s-e),{titleX:l,titleY:h,maxWidth:c,rotation:u}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const n=(0,i.Z)(e.font),s=n.lineHeight/2+this._padding.top,{titleX:o,titleY:r,maxWidth:a,rotation:c}=this._drawArgs(s);(0,i.X)(t,e.text,0,0,n,{color:e.color,maxWidth:a,rotation:c,textAlign:(0,i.$)(e.align),textBaseline:"middle",translation:[o,r]})}}var an={id:"title",_element:rn,start(t,e,n){!function(t,e){const n=new rn({ctx:t.ctx,options:e,chart:t});ct.configure(t,n,e),ct.addBox(t,n),t.titleBlock=n}(t,n)},stop(t){const e=t.titleBlock;ct.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const i=t.titleBlock;ct.configure(t,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const cn=new WeakMap;var ln={id:"subtitle",start(t,e,n){const i=new rn({ctx:t.ctx,options:n,chart:t});ct.configure(t,i,n),ct.addBox(t,i),cn.set(t,i)},stop(t){ct.removeBox(t,cn.get(t)),cn.delete(t)},beforeUpdate(t,e,n){const i=cn.get(t);ct.configure(t,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const hn={average(t){if(!t.length)return!1;let e,n,i=0,s=0,o=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();i+=t.x,s+=t.y,++o}}return{x:i/o,y:s/o}},nearest(t,e){if(!t.length)return!1;let n,s,o,r=e.x,a=e.y,c=Number.POSITIVE_INFINITY;for(n=0,s=t.length;n<s;++n){const s=t[n].element;if(s&&s.hasValue()){const t=s.getCenterPoint(),n=(0,i.aC)(e,t);n<c&&(c=n,o=s)}}if(o){const t=o.tooltipPosition();r=t.x,a=t.y}return{x:r,y:a}}};function un(t,e){return e&&((0,i.b)(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function dn(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function pn(t,e){const{element:n,datasetIndex:i,index:s}=e,o=t.getDatasetMeta(i).controller,{label:r,value:a}=o.getLabelAndValue(s);return{chart:t,label:r,parsed:o.getParsed(s),raw:t.data.datasets[i].data[s],formattedValue:a,dataset:o.getDataset(),dataIndex:s,datasetIndex:i,element:n}}function fn(t,e){const n=t.chart.ctx,{body:s,footer:o,title:r}=t,{boxWidth:a,boxHeight:c}=e,l=(0,i.Z)(e.bodyFont),h=(0,i.Z)(e.titleFont),u=(0,i.Z)(e.footerFont),d=r.length,p=o.length,f=s.length,g=(0,i.C)(e.padding);let m=g.height,b=0,x=s.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(x+=t.beforeBody.length+t.afterBody.length,d&&(m+=d*h.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),x){m+=f*(e.displayColors?Math.max(c,l.lineHeight):l.lineHeight)+(x-f)*l.lineHeight+(x-1)*e.bodySpacing}p&&(m+=e.footerMarginTop+p*u.lineHeight+(p-1)*e.footerSpacing);let v=0;const y=function(t){b=Math.max(b,n.measureText(t).width+v)};return n.save(),n.font=h.string,(0,i.D)(t.title,y),n.font=l.string,(0,i.D)(t.beforeBody.concat(t.afterBody),y),v=e.displayColors?a+2+e.boxPadding:0,(0,i.D)(s,(t=>{(0,i.D)(t.before,y),(0,i.D)(t.lines,y),(0,i.D)(t.after,y)})),v=0,n.font=u.string,(0,i.D)(t.footer,y),n.restore(),b+=g.width,{width:b,height:m}}function gn(t,e,n,i){const{x:s,width:o}=n,{width:r,chartArea:{left:a,right:c}}=t;let l="center";return"center"===i?l=s<=(a+c)/2?"left":"right":s<=o/2?l="left":s>=r-o/2&&(l="right"),function(t,e,n,i){const{x:s,width:o}=i,r=n.caretSize+n.caretPadding;return"left"===t&&s+o+r>e.width||"right"===t&&s-o-r<0||void 0}(l,t,e,n)&&(l="center"),l}function mn(t,e,n){const i=n.yAlign||e.yAlign||function(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||gn(t,e,n,i),yAlign:i}}function bn(t,e,n,s){const{caretSize:o,caretPadding:r,cornerRadius:a}=t,{xAlign:c,yAlign:l}=n,h=o+r,{topLeft:u,topRight:d,bottomLeft:p,bottomRight:f}=(0,i.au)(a);let g=function(t,e){let{x:n,width:i}=t;return"right"===e?n-=i:"center"===e&&(n-=i/2),n}(e,c);const m=function(t,e,n){let{y:i,height:s}=t;return"top"===e?i+=n:i-="bottom"===e?s+n:s/2,i}(e,l,h);return"center"===l?"left"===c?g+=h:"right"===c&&(g-=h):"left"===c?g-=Math.max(u,p)+o:"right"===c&&(g+=Math.max(d,f)+o),{x:(0,i.w)(g,0,s.width-e.width),y:(0,i.w)(m,0,s.height-e.height)}}function xn(t,e,n){const s=(0,i.C)(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-s.right:t.x+s.left}function vn(t){return un([],dn(t))}function yn(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}class kn extends Mt{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&e.options.animation&&n.animations,s=new l(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,n=this._tooltipItems,(0,i.h)(t,{tooltip:e,tooltipItems:n,type:"tooltip"})));var t,e,n}getTitle(t,e){const{callbacks:n}=e,i=n.beforeTitle.apply(this,[t]),s=n.title.apply(this,[t]),o=n.afterTitle.apply(this,[t]);let r=[];return r=un(r,dn(i)),r=un(r,dn(s)),r=un(r,dn(o)),r}getBeforeBody(t,e){return vn(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:n}=e,s=[];return(0,i.D)(t,(t=>{const e={before:[],lines:[],after:[]},i=yn(n,t);un(e.before,dn(i.beforeLabel.call(this,t))),un(e.lines,i.label.call(this,t)),un(e.after,dn(i.afterLabel.call(this,t))),s.push(e)})),s}getAfterBody(t,e){return vn(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:n}=e,i=n.beforeFooter.apply(this,[t]),s=n.footer.apply(this,[t]),o=n.afterFooter.apply(this,[t]);let r=[];return r=un(r,dn(i)),r=un(r,dn(s)),r=un(r,dn(o)),r}_createItems(t){const e=this._active,n=this.chart.data,s=[],o=[],r=[];let a,c,l=[];for(a=0,c=e.length;a<c;++a)l.push(pn(this.chart,e[a]));return t.filter&&(l=l.filter(((e,i,s)=>t.filter(e,i,s,n)))),t.itemSort&&(l=l.sort(((e,i)=>t.itemSort(e,i,n)))),(0,i.D)(l,(e=>{const n=yn(t.callbacks,e);s.push(n.labelColor.call(this,e)),o.push(n.labelPointStyle.call(this,e)),r.push(n.labelTextColor.call(this,e))})),this.labelColors=s,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=l,l}update(t,e){const n=this.options.setContext(this.getContext()),i=this._active;let s,o=[];if(i.length){const t=hn[n.position].call(this,i,this._eventPosition);o=this._createItems(n),this.title=this.getTitle(o,n),this.beforeBody=this.getBeforeBody(o,n),this.body=this.getBody(o,n),this.afterBody=this.getAfterBody(o,n),this.footer=this.getFooter(o,n);const e=this._size=fn(this,n),r=Object.assign({},t,e),a=mn(this.chart,n,r),c=bn(n,r,a,this.chart);this.xAlign=a.xAlign,this.yAlign=a.yAlign,s={opacity:1,x:c.x,y:c.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(s={opacity:0});this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,i){const s=this.getCaretPosition(t,n,i);e.lineTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.lineTo(s.x3,s.y3)}getCaretPosition(t,e,n){const{xAlign:s,yAlign:o}=this,{caretSize:r,cornerRadius:a}=n,{topLeft:c,topRight:l,bottomLeft:h,bottomRight:u}=(0,i.au)(a),{x:d,y:p}=t,{width:f,height:g}=e;let m,b,x,v,y,_;return"center"===o?(y=p+g/2,"left"===s?(m=d,b=m-r,v=y+r,_=y-r):(m=d+f,b=m+r,v=y-r,_=y+r),x=m):(b="left"===s?d+Math.max(c,h)+r:"right"===s?d+f-Math.max(l,u)-r:this.caretX,"top"===o?(v=p,y=v-r,m=b-r,x=b+r):(v=p+g,y=v+r,m=b+r,x=b-r),_=v),{x1:m,x2:b,x3:x,y1:v,y2:y,y3:_}}drawTitle(t,e,n){const s=this.title,o=s.length;let r,a,c;if(o){const l=(0,i.ax)(n.rtl,this.x,this.width);for(t.x=xn(this,n.titleAlign,n),e.textAlign=l.textAlign(n.titleAlign),e.textBaseline="middle",r=(0,i.Z)(n.titleFont),a=n.titleSpacing,e.fillStyle=n.titleColor,e.font=r.string,c=0;c<o;++c)e.fillText(s[c],l.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+a,c+1===o&&(t.y+=n.titleMarginBottom-a)}}_drawColorBox(t,e,n,s,o){const r=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:c,boxWidth:l,boxPadding:h}=o,u=(0,i.Z)(o.bodyFont),d=xn(this,"left",o),p=s.x(d),f=c<u.lineHeight?(u.lineHeight-c)/2:0,g=e.y+f;if(o.usePointStyle){const e={radius:Math.min(l,c)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},n=s.leftForLtr(p,l)+l/2,h=g+c/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,(0,i.ar)(t,e,n,h),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,(0,i.ar)(t,e,n,h)}else{t.lineWidth=r.borderWidth||1,t.strokeStyle=r.borderColor,t.setLineDash(r.borderDash||[]),t.lineDashOffset=r.borderDashOffset||0;const e=s.leftForLtr(p,l-h),n=s.leftForLtr(s.xPlus(p,1),l-h-2),a=(0,i.au)(r.borderRadius);Object.values(a).some((t=>0!==t))?(t.beginPath(),t.fillStyle=o.multiKeyBackground,(0,i.as)(t,{x:e,y:g,w:l,h:c,radius:a}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),(0,i.as)(t,{x:n,y:g+1,w:l-2,h:c-2,radius:a}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,g,l,c),t.strokeRect(e,g,l,c),t.fillStyle=r.backgroundColor,t.fillRect(n,g+1,l-2,c-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:s}=this,{bodySpacing:o,bodyAlign:r,displayColors:a,boxHeight:c,boxWidth:l,boxPadding:h}=n,u=(0,i.Z)(n.bodyFont);let d=u.lineHeight,p=0;const f=(0,i.ax)(n.rtl,this.x,this.width),g=function(n){e.fillText(n,f.x(t.x+p),t.y+d/2),t.y+=d+o},m=f.textAlign(r);let b,x,v,y,_,k,w;for(e.textAlign=r,e.textBaseline="middle",e.font=u.string,t.x=xn(this,m,n),e.fillStyle=n.bodyColor,(0,i.D)(this.beforeBody,g),p=a&&"right"!==m?"center"===r?l/2+h:l+2+h:0,y=0,k=s.length;y<k;++y){for(b=s[y],x=this.labelTextColors[y],e.fillStyle=x,(0,i.D)(b.before,g),v=b.lines,a&&v.length&&(this._drawColorBox(e,t,y,f,n),d=Math.max(u.lineHeight,c)),_=0,w=v.length;_<w;++_)g(v[_]),d=u.lineHeight;(0,i.D)(b.after,g)}p=0,d=u.lineHeight,(0,i.D)(this.afterBody,g),t.y-=o}drawFooter(t,e,n){const s=this.footer,o=s.length;let r,a;if(o){const c=(0,i.ax)(n.rtl,this.x,this.width);for(t.x=xn(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=c.textAlign(n.footerAlign),e.textBaseline="middle",r=(0,i.Z)(n.footerFont),e.fillStyle=n.footerColor,e.font=r.string,a=0;a<o;++a)e.fillText(s[a],c.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+n.footerSpacing}}drawBackground(t,e,n,s){const{xAlign:o,yAlign:r}=this,{x:a,y:c}=t,{width:l,height:h}=n,{topLeft:u,topRight:d,bottomLeft:p,bottomRight:f}=(0,i.au)(s.cornerRadius);e.fillStyle=s.backgroundColor,e.strokeStyle=s.borderColor,e.lineWidth=s.borderWidth,e.beginPath(),e.moveTo(a+u,c),"top"===r&&this.drawCaret(t,e,n,s),e.lineTo(a+l-d,c),e.quadraticCurveTo(a+l,c,a+l,c+d),"center"===r&&"right"===o&&this.drawCaret(t,e,n,s),e.lineTo(a+l,c+h-f),e.quadraticCurveTo(a+l,c+h,a+l-f,c+h),"bottom"===r&&this.drawCaret(t,e,n,s),e.lineTo(a+p,c+h),e.quadraticCurveTo(a,c+h,a,c+h-p),"center"===r&&"left"===o&&this.drawCaret(t,e,n,s),e.lineTo(a,c+u),e.quadraticCurveTo(a,c,a+u,c),e.closePath(),e.fill(),s.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,i=n&&n.x,s=n&&n.y;if(i||s){const n=hn[t.position].call(this,this._active,this._eventPosition);if(!n)return;const o=this._size=fn(this,t),r=Object.assign({},n,this._size),a=mn(e,t,r),c=bn(t,r,a,e);i._to===c.x&&s._to===c.y||(this.xAlign=a.xAlign,this.yAlign=a.yAlign,this.width=o.width,this.height=o.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,c))}}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const s={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const r=(0,i.C)(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=n,this.drawBackground(o,t,s,e),(0,i.ay)(t,e.textDirection),o.y+=r.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),(0,i.aA)(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,s=t.map((({datasetIndex:t,index:e})=>{const n=this.chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}})),o=!(0,i.af)(n,s),r=this._positionChanged(s,e);(o||r)&&(this._active=s,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,o=this._active||[],r=this._getActiveElements(t,o,e,n),a=this._positionChanged(r,t),c=e||!(0,i.af)(r,o)||a;return c&&(this._active=r,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),c}_getActiveElements(t,e,n,i){const s=this.options;if("mouseout"===t.type)return[];if(!i)return e;const o=this.chart.getElementsAtEventForMode(t,s.mode,s,n);return s.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:n,caretY:i,options:s}=this,o=hn[s.position].call(this,t,e);return!1!==o&&(n!==o.x||i!==o.y)}}kn.positioners=hn;var wn={id:"tooltip",_element:kn,positioners:hn,afterInit(t,e,n){n&&(t.tooltip=new kn({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip,n={tooltip:e};!1!==t.notifyPlugins("beforeTooltipDraw",n)&&(e&&e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n))},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:i.aB,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex<i)return n[e.dataIndex]}return""},afterTitle:i.aB,beforeBody:i.aB,beforeLabel:i.aB,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return(0,i.k)(n)||(e+=n),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:i.aB,afterBody:i.aB,beforeFooter:i.aB,footer:i.aB,afterFooter:i.aB}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Sn=Object.freeze({__proto__:null,Decimation:Ie,Filler:en,Legend:on,SubTitle:ln,Title:an,Tooltip:wn});function Mn(t,e,n,i){const s=t.indexOf(e);if(-1===s)return((t,e,n,i)=>("string"==typeof e?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,i);return s!==t.lastIndexOf(e)?n:s}class Cn extends Rt{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:i}of e)t[n]===i&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if((0,i.k)(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:(0,i.w)(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:Mn(n,t,(0,i.v)(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,i=[];let s=this.getLabels();s=0===t&&e===s.length-1?s:s.slice(t,e+1),this._valueRange=Math.max(s.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)i.push({value:n});return i}getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function En(t,e,{horizontal:n,minRotation:s}){const o=(0,i.t)(s),r=(n?Math.sin(o):Math.cos(o))||.001,a=.75*e*(""+t).length;return Math.min(e/r,a)}Cn.id="category",Cn.defaults={ticks:{callback:Cn.prototype.getLabelForValue}};class Pn extends Rt{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return(0,i.k)(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:s,max:o}=this;const r=t=>s=e?s:t,a=t=>o=n?o:t;if(t){const t=(0,i.s)(s),e=(0,i.s)(o);t<0&&e<0?a(0):t>0&&e>0&&r(0)}if(s===o){let e=1;(o>=Number.MAX_SAFE_INTEGER||s<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*o)),a(o+e),t||r(s-e)}this.min=s,this.max=o}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:i}=t;return i?(e=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const s=function(t,e){const n=[],{bounds:s,step:o,min:r,max:a,precision:c,count:l,maxTicks:h,maxDigits:u,includeBounds:d}=t,p=o||1,f=h-1,{min:g,max:m}=e,b=!(0,i.k)(r),x=!(0,i.k)(a),v=!(0,i.k)(l),y=(m-g)/(u+1);let _,k,w,S,M=(0,i.aE)((m-g)/f/p)*p;if(M<1e-14&&!b&&!x)return[{value:g},{value:m}];S=Math.ceil(m/M)-Math.floor(g/M),S>f&&(M=(0,i.aE)(S*M/f/p)*p),(0,i.k)(c)||(_=Math.pow(10,c),M=Math.ceil(M*_)/_),"ticks"===s?(k=Math.floor(g/M)*M,w=Math.ceil(m/M)*M):(k=g,w=m),b&&x&&o&&(0,i.aF)((a-r)/o,M/1e3)?(S=Math.round(Math.min((a-r)/M,h)),M=(a-r)/S,k=r,w=a):v?(k=b?r:k,w=x?a:w,S=l-1,M=(w-k)/S):(S=(w-k)/M,S=(0,i.aG)(S,Math.round(S),M/1e3)?Math.round(S):Math.ceil(S));const C=Math.max((0,i.aH)(M),(0,i.aH)(k));_=Math.pow(10,(0,i.k)(c)?C:c),k=Math.round(k*_)/_,w=Math.round(w*_)/_;let E=0;for(b&&(d&&k!==r?(n.push({value:r}),k<r&&E++,(0,i.aG)(Math.round((k+E*M)*_)/_,r,En(r,y,t))&&E++):k<r&&E++);E<S;++E)n.push({value:Math.round((k+E*M)*_)/_});return x&&d&&w!==a?n.length&&(0,i.aG)(n[n.length-1].value,a,En(a,y,t))?n[n.length-1].value=a:n.push({value:a}):x&&w!==a||n.push({value:w}),n}({maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&(0,i.aD)(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-e)/Math.max(t.length-1,1)/2;e-=i,n+=i}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return(0,i.o)(t,this.chart.options.locale,this.options.ticks.format)}}class On extends Pn{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=(0,i.g)(t)?t:0,this.max=(0,i.g)(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=(0,i.t)(this.options.ticks.minRotation),s=(t?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/s))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function jn(t){return 1===t/Math.pow(10,Math.floor((0,i.L)(t)))}On.id="linear",On.defaults={ticks:{callback:Et.formatters.numeric}};class Dn extends Rt{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const n=Pn.prototype.parse.apply(this,[t,e]);if(0!==n)return(0,i.g)(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=(0,i.g)(t)?Math.max(0,t):null,this.max=(0,i.g)(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let n=this.min,s=this.max;const o=e=>n=t?n:e,r=t=>s=e?s:t,a=(t,e)=>Math.pow(10,Math.floor((0,i.L)(t))+e);n===s&&(n<=0?(o(1),r(10)):(o(a(n,-1)),r(a(s,1)))),n<=0&&o(a(s,-1)),s<=0&&r(a(n,1)),this._zero&&this.min!==this._suggestedMin&&n===a(this.min,0)&&o(a(n,-1)),this.min=n,this.max=s}buildTicks(){const t=this.options,e=function(t,e){const n=Math.floor((0,i.L)(e.max)),s=Math.ceil(e.max/Math.pow(10,n)),o=[];let r=(0,i.N)(t.min,Math.pow(10,Math.floor((0,i.L)(e.min)))),a=Math.floor((0,i.L)(r)),c=Math.floor(r/Math.pow(10,a)),l=a<0?Math.pow(10,Math.abs(a)):1;do{o.push({value:r,major:jn(r)}),++c,10===c&&(c=1,++a,l=a>=0?1:l),r=Math.round(c*Math.pow(10,a)*l)/l}while(a<n||a===n&&c<s);const h=(0,i.N)(t.max,r);return o.push({value:h,major:jn(r)}),o}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&(0,i.aD)(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":(0,i.o)(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=(0,i.L)(t),this._valueRange=(0,i.L)(this.max)-(0,i.L)(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:((0,i.L)(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function An(t){const e=t.ticks;if(e.display&&t.display){const t=(0,i.C)(e.backdropPadding);return(0,i.v)(e.font&&e.font.size,i.d.font.size)+t.height}return 0}function Tn(t,e,n,i,s){return t===i||t===s?{start:e-n/2,end:e+n/2}:t<i||t>s?{start:e-n,end:e}:{start:e,end:e+n}}function Nn(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),s=[],o=[],r=t._pointLabels.length,a=t.options.pointLabels,c=a.centerPointLabels?i.P/r:0;for(let d=0;d<r;d++){const r=a.setContext(t.getPointLabelContext(d));o[d]=r.padding;const p=t.getPointPosition(d,t.drawingArea+o[d],c),f=(0,i.Z)(r.font),g=(l=t.ctx,h=f,u=t._pointLabels[d],u=(0,i.b)(u)?u:[u],{w:(0,i.aI)(l,h.string,u),h:u.length*h.lineHeight});s[d]=g;const m=(0,i.aw)(t.getIndexAngle(d)+c),b=Math.round((0,i.R)(m));Ln(n,e,m,Tn(b,p.x,g.w,0,180),Tn(b,p.y,g.h,90,270))}var l,h,u;t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=function(t,e,n){const s=[],o=t._pointLabels.length,r=t.options,a=An(r)/2,c=t.drawingArea,l=r.pointLabels.centerPointLabels?i.P/o:0;for(let r=0;r<o;r++){const o=t.getPointPosition(r,c+a+n[r],l),h=Math.round((0,i.R)((0,i.aw)(o.angle+i.H))),u=e[r],d=In(o.y,u.h,h),p=Rn(h),f=zn(o.x,u.w,p);s.push({x:o.x,y:d,textAlign:p,left:f,top:d,right:f+u.w,bottom:d+u.h})}return s}(t,s,o)}function Ln(t,e,n,i,s){const o=Math.abs(Math.sin(n)),r=Math.abs(Math.cos(n));let a=0,c=0;i.start<e.l?(a=(e.l-i.start)/o,t.l=Math.min(t.l,e.l-a)):i.end>e.r&&(a=(i.end-e.r)/o,t.r=Math.max(t.r,e.r+a)),s.start<e.t?(c=(e.t-s.start)/r,t.t=Math.min(t.t,e.t-c)):s.end>e.b&&(c=(s.end-e.b)/r,t.b=Math.max(t.b,e.b+c))}function Rn(t){return 0===t||180===t?"center":t<180?"left":"right"}function zn(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function In(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}function Fn(t,e,n,s){const{ctx:o}=t;if(n)o.arc(t.xCenter,t.yCenter,e,0,i.T);else{let n=t.getPointPosition(0,e);o.moveTo(n.x,n.y);for(let i=1;i<s;i++)n=t.getPointPosition(i,e),o.lineTo(n.x,n.y)}}Dn.id="logarithmic",Dn.defaults={ticks:{callback:Et.formatters.logarithmic,major:{enabled:!0}}};class Vn extends Pn{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=(0,i.C)(An(this.options)/2),e=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(e,n)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=(0,i.g)(t)&&!isNaN(t)?t:0,this.max=(0,i.g)(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/An(this.options))}generateTickLabels(t){Pn.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const n=(0,i.O)(this.options.pointLabels.callback,[t,e],this);return n||0===n?n:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?Nn(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,n,i){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,i))}getIndexAngle(t){const e=i.T/(this._pointLabels.length||1),n=this.options.startAngle||0;return(0,i.aw)(t*e+(0,i.t)(n))}getDistanceFromCenterForValue(t){if((0,i.k)(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if((0,i.k)(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const n=e[t];return function(t,e,n){return(0,i.h)(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}getPointPosition(t,e,n=0){const s=this.getIndexAngle(t)-i.H+n;return{x:Math.cos(s)*e+this.xCenter,y:Math.sin(s)*e+this.yCenter,angle:s}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:n,right:i,bottom:s}=this._pointLabelItems[t];return{left:e,top:n,right:i,bottom:s}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const n=this.ctx;n.save(),n.beginPath(),Fn(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),n.closePath(),n.fillStyle=t,n.fill(),n.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:n,grid:s}=e,o=this._pointLabels.length;let r,a,c;if(e.pointLabels.display&&function(t,e){const{ctx:n,options:{pointLabels:s}}=t;for(let o=e-1;o>=0;o--){const e=s.setContext(t.getPointLabelContext(o)),r=(0,i.Z)(e.font),{x:a,y:c,textAlign:l,left:h,top:u,right:d,bottom:p}=t._pointLabelItems[o],{backdropColor:f}=e;if(!(0,i.k)(f)){const t=(0,i.C)(e.backdropPadding);n.fillStyle=f,n.fillRect(h-t.left,u-t.top,d-h+t.width,p-u+t.height)}(0,i.X)(n,t._pointLabels[o],a,c+r.lineHeight/2,r,{color:e.color,textAlign:l,textBaseline:"middle"})}}(this,o),s.display&&this.ticks.forEach(((t,e)=>{if(0!==e){a=this.getDistanceFromCenterForValue(t.value);!function(t,e,n,i){const s=t.ctx,o=e.circular,{color:r,lineWidth:a}=e;!o&&!i||!r||!a||n<0||(s.save(),s.strokeStyle=r,s.lineWidth=a,s.setLineDash(e.borderDash),s.lineDashOffset=e.borderDashOffset,s.beginPath(),Fn(t,n,o,i),s.closePath(),s.stroke(),s.restore())}(this,s.setContext(this.getContext(e-1)),a,o)}})),n.display){for(t.save(),r=o-1;r>=0;r--){const i=n.setContext(this.getPointLabelContext(r)),{color:s,lineWidth:o}=i;o&&s&&(t.lineWidth=o,t.strokeStyle=s,t.setLineDash(i.borderDash),t.lineDashOffset=i.borderDashOffset,a=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),c=this.getPointPosition(r,a),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const s=this.getIndexAngle(0);let o,r;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(s),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((s,a)=>{if(0===a&&!e.reverse)return;const c=n.setContext(this.getContext(a)),l=(0,i.Z)(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[a].value),c.showLabelBackdrop){t.font=l.string,r=t.measureText(s.label).width,t.fillStyle=c.backdropColor;const e=(0,i.C)(c.backdropPadding);t.fillRect(-r/2-e.left,-o-l.size/2-e.top,r+e.width,l.size+e.height)}(0,i.X)(t,s.label,0,-o,l,{color:c.color})})),t.restore()}drawTitle(){}}Vn.id="radialLinear",Vn.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Et.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},Vn.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Vn.descriptors={angleLines:{_fallback:"grid"}};const Bn={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Hn=Object.keys(Bn);function Wn(t,e){return t-e}function $n(t,e){if((0,i.k)(e))return null;const n=t._adapter,{parser:s,round:o,isoWeekday:r}=t._parseOpts;let a=e;return"function"==typeof s&&(a=s(a)),(0,i.g)(a)||(a="string"==typeof s?n.parse(a,s):n.parse(a)),null===a?null:(o&&(a="week"!==o||!(0,i.q)(r)&&!0!==r?n.startOf(a,o):n.startOf(a,"isoWeek",r)),+a)}function Zn(t,e,n,i){const s=Hn.length;for(let o=Hn.indexOf(t);o<s-1;++o){const t=Bn[Hn[o]],s=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(s*t.size))<=i)return Hn[o]}return Hn[s-1]}function Un(t,e,n){if(n){if(n.length){const{lo:s,hi:o}=(0,i.aK)(n,e);t[n[s]>=e?n[s]:n[o]]=!0}}else t[e]=!0}function Yn(t,e,n){const i=[],s={},o=e.length;let r,a;for(r=0;r<o;++r)a=e[r],s[a]=r,i.push({value:a,major:!1});return 0!==o&&n?function(t,e,n,i){const s=t._adapter,o=+s.startOf(e[0].value,i),r=e[e.length-1].value;let a,c;for(a=o;a<=r;a=+s.add(a,1,i))c=n[a],c>=0&&(e[c].major=!0);return e}(t,i,s,n):i}class Jn extends Rt{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){const n=t.time||(t.time={}),s=this._adapter=new B._date(t.adapters.date);(0,i.a9)(n.displayFormats,s.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:$n(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:s,max:o,minDefined:r,maxDefined:a}=this.getUserBounds();function c(t){r||isNaN(t.min)||(s=Math.min(s,t.min)),a||isNaN(t.max)||(o=Math.max(o,t.max))}r&&a||(c(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||c(this.getMinMax(!1))),s=(0,i.g)(s)&&!isNaN(s)?s:+e.startOf(Date.now(),n),o=(0,i.g)(o)&&!isNaN(o)?o:+e.endOf(Date.now(),n)+1,this.min=Math.min(s,o-1),this.max=Math.max(s+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,s="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const o=this.min,r=this.max,a=(0,i.aJ)(s,o,r);return this._unit=e.unit||(n.autoSkip?Zn(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(t,e,n,i,s){for(let o=Hn.length-1;o>=Hn.indexOf(n);o--){const n=Hn[o];if(Bn[n].common&&t._adapter.diff(s,i,n)>=e-1)return n}return Hn[n?Hn.indexOf(n):0]}(this,a.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(let e=Hn.indexOf(t)+1,n=Hn.length;e<n;++e)if(Bn[Hn[e]].common)return Hn[e]}(this._unit):void 0,this.initOffsets(s),t.reverse&&a.reverse(),Yn(this,a,this._majorUnit)}initOffsets(t){let e,n,s=0,o=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),s=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,n=this.getDecimalForValue(t[t.length-1]),o=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;s=(0,i.w)(s,0,r),o=(0,i.w)(o,0,r),this._offsets={start:s,end:o,factor:1/(s+1+o)}}_generate(){const t=this._adapter,e=this.min,n=this.max,s=this.options,o=s.time,r=o.unit||Zn(o.minUnit,e,n,this._getLabelCapacity(e)),a=(0,i.v)(o.stepSize,1),c="week"===r&&o.isoWeekday,l=(0,i.q)(c)||!0===c,h={};let u,d,p=e;if(l&&(p=+t.startOf(p,"isoWeek",c)),p=+t.startOf(p,l?"day":r),t.diff(n,e,r)>1e5*a)throw new Error(e+" and "+n+" are too far apart with stepSize of "+a+" "+r);const f="data"===s.ticks.source&&this.getDataTimestamps();for(u=p,d=0;u<n;u=+t.add(u,a,r),d++)Un(h,u,f);return u!==n&&"ticks"!==s.bounds&&1!==d||Un(h,u,f),Object.keys(h).sort(((t,e)=>t-e)).map((t=>+t))}getLabelForValue(t){const e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}_tickFormatFunction(t,e,n,s){const o=this.options,r=o.time.displayFormats,a=this._unit,c=this._majorUnit,l=a&&r[a],h=c&&r[c],u=n[e],d=c&&h&&u&&u.major,p=this._adapter.format(t,s||(d?h:l)),f=o.ticks.callback;return f?(0,i.O)(f,[p,e,n],this):p}generateTickLabels(t){let e,n,i;for(e=0,n=t.length;e<n;++e)i=t[e],i.label=this._tickFormatFunction(i.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,n=this.ctx.measureText(t).width,s=(0,i.t)(this.isHorizontal()?e.maxRotation:e.minRotation),o=Math.cos(s),r=Math.sin(s),a=this._resolveTickFontOptions(0).size;return{w:n*o+a*r,h:n*r+a*o}}_getLabelCapacity(t){const e=this.options.time,n=e.displayFormats,i=n[e.unit]||n.millisecond,s=this._tickFormatFunction(t,0,Yn(this,[t],this._majorUnit),i),o=this._getLabelSize(s),r=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return r>0?r:1}getDataTimestamps(){let t,e,n=this._cache.data||[];if(n.length)return n;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(t=0,e=i.length;t<e;++t)n=n.concat(i[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const t=this._cache.labels||[];let e,n;if(t.length)return t;const i=this.getLabels();for(e=0,n=i.length;e<n;++e)t.push($n(this,i[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return(0,i._)(t.sort(Wn))}}function Gn(t,e,n){let s,o,r,a,c=0,l=t.length-1;n?(e>=t[c].pos&&e<=t[l].pos&&({lo:c,hi:l}=(0,i.x)(t,"pos",e)),({pos:s,time:r}=t[c]),({pos:o,time:a}=t[l])):(e>=t[c].time&&e<=t[l].time&&({lo:c,hi:l}=(0,i.x)(t,"time",e)),({time:s,pos:r}=t[c]),({time:o,pos:a}=t[l]));const h=o-s;return h?r+(a-r)*(e-s)/h:r}Jn.id="time",Jn.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class Xn extends Jn{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Gn(e,this.min),this._tableRange=Gn(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,i=[],s=[];let o,r,a,c,l;for(o=0,r=t.length;o<r;++o)c=t[o],c>=e&&c<=n&&i.push(c);if(i.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(o=0,r=i.length;o<r;++o)l=i[o+1],a=i[o-1],c=i[o],Math.round((l+a)/2)!==c&&s.push({time:c,pos:o/(r-1)});return s}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t,t}getDecimalForValue(t){return(Gn(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return Gn(this._table,n*this._tableRange+this._minPos,!0)}}Xn.id="timeseries",Xn.defaults=Jn.defaults;const qn=[I,Le,Sn,Object.freeze({__proto__:null,CategoryScale:Cn,LinearScale:On,LogarithmicScale:Dn,RadialLinearScale:Vn,TimeScale:Jn,TimeSeriesScale:Xn})]},7202:function(t,e,n){"use strict";n.d(e,{$:function(){return r},A:function(){return Se},B:function(){return tt},C:function(){return be},D:function(){return y},E:function(){return on},F:function(){return qe},G:function(){return cn},H:function(){return V},I:function(){return s},J:function(){return an},K:function(){return Xe},L:function(){return W},M:function(){return U},N:function(){return g},O:function(){return v},P:function(){return L},Q:function(){return ye},R:function(){return K},S:function(){return Kt},T:function(){return R},U:function(){return rt},V:function(){return te},W:function(){return se},X:function(){return ce},Y:function(){return oe},Z:function(){return xe},_:function(){return Oe},a:function(){return ve},a0:function(){return a},a1:function(){return Yt},a2:function(){return M},a3:function(){return j},a4:function(){return Jt},a5:function(){return A},a6:function(){return De},a7:function(){return je},a8:function(){return Ae},a9:function(){return C},aA:function(){return mn},aB:function(){return l},aC:function(){return et},aD:function(){return X},aE:function(){return Z},aF:function(){return G},aG:function(){return J},aH:function(){return Q},aI:function(){return Qt},aJ:function(){return Me},aK:function(){return ke},aa:function(){return h},ab:function(){return o},ac:function(){return rn},ad:function(){return ee},ae:function(){return T},af:function(){return _},ag:function(){return N},ah:function(){return at},ai:function(){return fe},aj:function(){return Ge},ak:function(){return kn},al:function(){return yn},am:function(){return hn},an:function(){return un},ao:function(){return ln},ap:function(){return re},aq:function(){return ae},ar:function(){return ne},as:function(){return he},at:function(){return ge},au:function(){return me},av:function(){return vn},aw:function(){return it},ax:function(){return fn},ay:function(){return gn},az:function(){return c},b:function(){return d},c:function(){return Zt},d:function(){return qt},e:function(){return ut},f:function(){return O},g:function(){return f},h:function(){return _e},i:function(){return p},j:function(){return D},k:function(){return u},l:function(){return Ee},m:function(){return b},n:function(){return x},o:function(){return pn},p:function(){return st},q:function(){return Y},r:function(){return i},s:function(){return $},t:function(){return q},u:function(){return Pe},v:function(){return m},w:function(){return ot},x:function(){return we},y:function(){return nn},z:function(){return ie}});const i="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function s(t,e,n){const s=n||(t=>Array.prototype.slice.call(t));let o=!1,r=[];return function(...n){r=s(n),o||(o=!0,i.call(window,(()=>{o=!1,t.apply(e,r)})))}}function o(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}const r=t=>"start"===t?"left":"end"===t?"right":"center",a=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2,c=(t,e,n,i)=>t===(i?"left":"right")?n:"center"===t?(e+n)/2:e;function l(){}const h=function(){let t=0;return function(){return t++}}();function u(t){return null==t}function d(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.substr(0,7)&&"Array]"===e.substr(-6)}function p(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const f=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function g(t,e){return f(t)?t:e}function m(t,e){return void 0===t?e:t}const b=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:t/e,x=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function v(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function y(t,e,n,i){let s,o,r;if(d(t))if(o=t.length,i)for(s=o-1;s>=0;s--)e.call(n,t[s],s);else for(s=0;s<o;s++)e.call(n,t[s],s);else if(p(t))for(r=Object.keys(t),o=r.length,s=0;s<o;s++)e.call(n,t[r[s]],r[s])}function _(t,e){let n,i,s,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(s=t[n],o=e[n],s.datasetIndex!==o.datasetIndex||s.index!==o.index)return!1;return!0}function k(t){if(d(t))return t.map(k);if(p(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let s=0;for(;s<i;++s)e[n[s]]=k(t[n[s]]);return e}return t}function w(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function S(t,e,n,i){if(!w(t))return;const s=e[t],o=n[t];p(s)&&p(o)?M(s,o,i):e[t]=k(o)}function M(t,e,n){const i=d(e)?e:[e],s=i.length;if(!p(t))return t;const o=(n=n||{}).merger||S;for(let r=0;r<s;++r){if(!p(e=i[r]))continue;const s=Object.keys(e);for(let i=0,r=s.length;i<r;++i)o(s[i],t,e,n)}return t}function C(t,e){return M(t,e,{merger:E})}function E(t,e,n){if(!w(t))return;const i=e[t],s=n[t];p(i)&&p(s)?C(i,s):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=k(s))}function P(t,e){const n=t.indexOf(".",e);return-1===n?t.length:n}function O(t,e){if(""===e)return t;let n=0,i=P(e,n);for(;t&&i>n;)t=t[e.substr(n,i-n)],n=i+1,i=P(e,n);return t}function j(t){return t.charAt(0).toUpperCase()+t.slice(1)}const D=t=>void 0!==t,A=t=>"function"==typeof t,T=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function N(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}const L=Math.PI,R=2*L,z=R+L,I=Number.POSITIVE_INFINITY,F=L/180,V=L/2,B=L/4,H=2*L/3,W=Math.log10,$=Math.sign;function Z(t){const e=Math.round(t);t=J(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(W(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function U(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i==0&&(e.push(i),e.push(t/i));return n===(0|n)&&e.push(n),e.sort(((t,e)=>t-e)).pop(),e}function Y(t){return!isNaN(parseFloat(t))&&isFinite(t)}function J(t,e,n){return Math.abs(t-e)<n}function G(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function X(t,e,n){let i,s,o;for(i=0,s=t.length;i<s;i++)o=t[i][n],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function q(t){return t*(L/180)}function K(t){return t*(180/L)}function Q(t){if(!f(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function tt(t,e){const n=e.x-t.x,i=e.y-t.y,s=Math.sqrt(n*n+i*i);let o=Math.atan2(i,n);return o<-.5*L&&(o+=R),{angle:o,distance:s}}function et(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function nt(t,e){return(t-e+z)%R-L}function it(t){return(t%R+R)%R}function st(t,e,n,i){const s=it(t),o=it(e),r=it(n),a=it(o-s),c=it(r-s),l=it(s-o),h=it(s-r);return s===o||s===r||i&&o===r||a>c&&l<h}function ot(t,e,n){return Math.max(e,Math.min(n,t))}function rt(t){return ot(t,-32768,32767)}function at(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}const ct=t=>0===t||1===t,lt=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*R/n),ht=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*R/n)+1,ut={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*V),easeOutSine:t=>Math.sin(t*V),easeInOutSine:t=>-.5*(Math.cos(L*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>ct(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>ct(t)?t:lt(t,.075,.3),easeOutElastic:t=>ct(t)?t:ht(t,.075,.3),easeInOutElastic(t){const e=.1125;return ct(t)?t:t<.5?.5*lt(2*t,e,.45):.5+.5*ht(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-ut.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*ut.easeInBounce(2*t):.5*ut.easeOutBounce(2*t-1)+.5},dt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},pt="0123456789ABCDEF",ft=t=>pt[15&t],gt=t=>pt[(240&t)>>4]+pt[15&t],mt=t=>(240&t)>>4==(15&t);function bt(t){var e=function(t){return mt(t.r)&&mt(t.g)&&mt(t.b)&&mt(t.a)}(t)?ft:gt;return t?"#"+e(t.r)+e(t.g)+e(t.b)+(t.a<255?e(t.a):""):t}function xt(t){return t+.5|0}const vt=(t,e,n)=>Math.max(Math.min(t,n),e);function yt(t){return vt(xt(2.55*t),0,255)}function _t(t){return vt(xt(255*t),0,255)}function kt(t){return vt(xt(t/2.55)/100,0,1)}function wt(t){return vt(xt(100*t),0,100)}const St=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Mt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Ct(t,e,n){const i=e*Math.min(n,1-n),s=(e,s=(e+t/30)%12)=>n-i*Math.max(Math.min(s-3,9-s,1),-1);return[s(0),s(8),s(4)]}function Et(t,e,n){const i=(i,s=(i+t/60)%6)=>n-n*e*Math.max(Math.min(s,4-s,1),0);return[i(5),i(3),i(1)]}function Pt(t,e,n){const i=Ct(t,1,.5);let s;for(e+n>1&&(s=1/(e+n),e*=s,n*=s),s=0;s<3;s++)i[s]*=1-e-n,i[s]+=e;return i}function Ot(t){const e=t.r/255,n=t.g/255,i=t.b/255,s=Math.max(e,n,i),o=Math.min(e,n,i),r=(s+o)/2;let a,c,l;return s!==o&&(l=s-o,c=r>.5?l/(2-s-o):l/(s+o),a=s===e?(n-i)/l+(n<i?6:0):s===n?(i-e)/l+2:(e-n)/l+4,a=60*a+.5),[0|a,c||0,r]}function jt(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(_t)}function Dt(t,e,n){return jt(Ct,t,e,n)}function At(t){return(t%360+360)%360}function Tt(t){const e=Mt.exec(t);let n,i=255;if(!e)return;e[5]!==n&&(i=e[6]?yt(+e[5]):_t(+e[5]));const s=At(+e[2]),o=+e[3]/100,r=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return jt(Pt,t,e,n)}(s,o,r):"hsv"===e[1]?function(t,e,n){return jt(Et,t,e,n)}(s,o,r):Dt(s,o,r),{r:n[0],g:n[1],b:n[2],a:i}}const Nt={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Lt={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let Rt;function zt(t){Rt||(Rt=function(){const t={},e=Object.keys(Lt),n=Object.keys(Nt);let i,s,o,r,a;for(i=0;i<e.length;i++){for(r=a=e[i],s=0;s<n.length;s++)o=n[s],a=a.replace(o,Nt[o]);o=parseInt(Lt[r],16),t[a]=[o>>16&255,o>>8&255,255&o]}return t}(),Rt.transparent=[0,0,0,0]);const e=Rt[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}function It(t,e,n){if(t){let i=Ot(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,0===e?360:1)),i=Dt(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function Ft(t,e){return t?Object.assign(e||{},t):t}function Vt(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=_t(t[3]))):(e=Ft(t,{r:0,g:0,b:0,a:1})).a=_t(e.a),e}function Bt(t){return"r"===t.charAt(0)?function(t){const e=St.exec(t);let n,i,s,o=255;if(e){if(e[7]!==n){const t=+e[7];o=255&(e[8]?yt(t):255*t)}return n=+e[1],i=+e[3],s=+e[5],n=255&(e[2]?yt(n):n),i=255&(e[4]?yt(i):i),s=255&(e[6]?yt(s):s),{r:n,g:i,b:s,a:o}}}(t):Tt(t)}class Ht{constructor(t){if(t instanceof Ht)return t;const e=typeof t;let n;var i,s,o;"object"===e?n=Vt(t):"string"===e&&(o=(i=t).length,"#"===i[0]&&(4===o||5===o?s={r:255&17*dt[i[1]],g:255&17*dt[i[2]],b:255&17*dt[i[3]],a:5===o?17*dt[i[4]]:255}:7!==o&&9!==o||(s={r:dt[i[1]]<<4|dt[i[2]],g:dt[i[3]]<<4|dt[i[4]],b:dt[i[5]]<<4|dt[i[6]],a:9===o?dt[i[7]]<<4|dt[i[8]]:255})),n=s||zt(t)||Bt(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=Ft(this._rgb);return t&&(t.a=kt(t.a)),t}set rgb(t){this._rgb=Vt(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${kt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):this._rgb;var t}hexString(){return this._valid?bt(this._rgb):this._rgb}hslString(){return this._valid?function(t){if(!t)return;const e=Ot(t),n=e[0],i=wt(e[1]),s=wt(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${s}%, ${kt(t.a)})`:`hsl(${n}, ${i}%, ${s}%)`}(this._rgb):this._rgb}mix(t,e){const n=this;if(t){const i=n.rgb,s=t.rgb;let o;const r=e===o?.5:e,a=2*r-1,c=i.a-s.a,l=((a*c==-1?a:(a+c)/(1+a*c))+1)/2;o=1-l,i.r=255&l*i.r+o*s.r+.5,i.g=255&l*i.g+o*s.g+.5,i.b=255&l*i.b+o*s.b+.5,i.a=r*i.a+(1-r)*s.a,n.rgb=i}return n}clone(){return new Ht(this.rgb)}alpha(t){return this._rgb.a=_t(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=xt(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return It(this._rgb,2,t),this}darken(t){return It(this._rgb,2,-t),this}saturate(t){return It(this._rgb,1,t),this}desaturate(t){return It(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=Ot(t);n[0]=At(n[0]+e),n=Dt(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function Wt(t){return new Ht(t)}const $t=t=>t instanceof CanvasGradient||t instanceof CanvasPattern;function Zt(t){return $t(t)?t:Wt(t)}function Ut(t){return $t(t)?t:Wt(t).saturate(.5).darken(.1).hexString()}const Yt=Object.create(null),Jt=Object.create(null);function Gt(t,e){if(!e)return t;const n=e.split(".");for(let e=0,i=n.length;e<i;++e){const i=n[e];t=t[i]||(t[i]=Object.create(null))}return t}function Xt(t,e,n){return"string"==typeof e?M(Gt(t,e),n):M(Gt(t,""),e)}var qt=new class{constructor(t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>Ut(e.backgroundColor),this.hoverBorderColor=(t,e)=>Ut(e.borderColor),this.hoverColor=(t,e)=>Ut(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return Xt(this,t,e)}get(t){return Gt(this,t)}describe(t,e){return Xt(Jt,t,e)}override(t,e){return Xt(Yt,t,e)}route(t,e,n,i){const s=Gt(this,t),o=Gt(this,n),r="_"+e;Object.defineProperties(s,{[r]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[r],e=o[i];return p(t)?Object.assign({},e,t):m(t,e)},set(t){this[r]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Kt(t,e,n,i,s){let o=e[s];return o||(o=e[s]=t.measureText(s).width,n.push(s)),o>i&&(i=o),i}function Qt(t,e,n,i){let s=(i=i||{}).data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(s=i.data={},o=i.garbageCollect=[],i.font=e),t.save(),t.font=e;let r=0;const a=n.length;let c,l,h,u,p;for(c=0;c<a;c++)if(u=n[c],null!=u&&!0!==d(u))r=Kt(t,s,o,r,u);else if(d(u))for(l=0,h=u.length;l<h;l++)p=u[l],null==p||d(p)||(r=Kt(t,s,o,r,p));t.restore();const f=o.length/2;if(f>n.length){for(c=0;c<f;c++)delete s[o[c]];o.splice(0,f)}return r}function te(t,e,n){const i=t.currentDevicePixelRatio,s=0!==n?Math.max(n/2,.5):0;return Math.round((e-s)*i)/i+s}function ee(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function ne(t,e,n,i){let s,o,r,a,c;const l=e.pointStyle,h=e.rotation,u=e.radius;let d=(h||0)*F;if(l&&"object"==typeof l&&(s=l.toString(),"[object HTMLImageElement]"===s||"[object HTMLCanvasElement]"===s))return t.save(),t.translate(n,i),t.rotate(d),t.drawImage(l,-l.width/2,-l.height/2,l.width,l.height),void t.restore();if(!(isNaN(u)||u<=0)){switch(t.beginPath(),l){default:t.arc(n,i,u,0,R),t.closePath();break;case"triangle":t.moveTo(n+Math.sin(d)*u,i-Math.cos(d)*u),d+=H,t.lineTo(n+Math.sin(d)*u,i-Math.cos(d)*u),d+=H,t.lineTo(n+Math.sin(d)*u,i-Math.cos(d)*u),t.closePath();break;case"rectRounded":c=.516*u,a=u-c,o=Math.cos(d+B)*a,r=Math.sin(d+B)*a,t.arc(n-o,i-r,c,d-L,d-V),t.arc(n+r,i-o,c,d-V,d),t.arc(n+o,i+r,c,d,d+V),t.arc(n-r,i+o,c,d+V,d+L),t.closePath();break;case"rect":if(!h){a=Math.SQRT1_2*u,t.rect(n-a,i-a,2*a,2*a);break}d+=B;case"rectRot":o=Math.cos(d)*u,r=Math.sin(d)*u,t.moveTo(n-o,i-r),t.lineTo(n+r,i-o),t.lineTo(n+o,i+r),t.lineTo(n-r,i+o),t.closePath();break;case"crossRot":d+=B;case"cross":o=Math.cos(d)*u,r=Math.sin(d)*u,t.moveTo(n-o,i-r),t.lineTo(n+o,i+r),t.moveTo(n+r,i-o),t.lineTo(n-r,i+o);break;case"star":o=Math.cos(d)*u,r=Math.sin(d)*u,t.moveTo(n-o,i-r),t.lineTo(n+o,i+r),t.moveTo(n+r,i-o),t.lineTo(n-r,i+o),d+=B,o=Math.cos(d)*u,r=Math.sin(d)*u,t.moveTo(n-o,i-r),t.lineTo(n+o,i+r),t.moveTo(n+r,i-o),t.lineTo(n-r,i+o);break;case"line":o=Math.cos(d)*u,r=Math.sin(d)*u,t.moveTo(n-o,i-r),t.lineTo(n+o,i+r);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(d)*u,i+Math.sin(d)*u)}t.fill(),e.borderWidth>0&&t.stroke()}}function ie(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function se(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function oe(t){t.restore()}function re(t,e,n,i,s){if(!e)return t.lineTo(n.x,n.y);if("middle"===s){const i=(e.x+n.x)/2;t.lineTo(i,e.y),t.lineTo(i,n.y)}else"after"===s!=!!i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function ae(t,e,n,i){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(i?e.cp1x:e.cp2x,i?e.cp1y:e.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function ce(t,e,n,i,s,o={}){const r=d(e)?e:[e],a=o.strokeWidth>0&&""!==o.strokeColor;let c,l;for(t.save(),t.font=s.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);u(e.rotation)||t.rotate(e.rotation);e.color&&(t.fillStyle=e.color);e.textAlign&&(t.textAlign=e.textAlign);e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,o),c=0;c<r.length;++c)l=r[c],a&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),u(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(l,n,i,o.maxWidth)),t.fillText(l,n,i,o.maxWidth),le(t,n,i,l,o),i+=s.lineHeight;t.restore()}function le(t,e,n,i,s){if(s.strikethrough||s.underline){const o=t.measureText(i),r=e-o.actualBoundingBoxLeft,a=e+o.actualBoundingBoxRight,c=n-o.actualBoundingBoxAscent,l=n+o.actualBoundingBoxDescent,h=s.strikethrough?(c+l)/2:l;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=s.decorationWidth||2,t.moveTo(r,h),t.lineTo(a,h),t.stroke()}}function he(t,e){const{x:n,y:i,w:s,h:o,radius:r}=e;t.arc(n+r.topLeft,i+r.topLeft,r.topLeft,-V,L,!0),t.lineTo(n,i+o-r.bottomLeft),t.arc(n+r.bottomLeft,i+o-r.bottomLeft,r.bottomLeft,L,V,!0),t.lineTo(n+s-r.bottomRight,i+o),t.arc(n+s-r.bottomRight,i+o-r.bottomRight,r.bottomRight,V,0,!0),t.lineTo(n+s,i+r.topRight),t.arc(n+s-r.topRight,i+r.topRight,r.topRight,0,-V,!0),t.lineTo(n+r.topLeft,i)}const ue=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),de=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function pe(t,e){const n=(""+t).match(ue);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}function fe(t,e){const n={},i=p(e),s=i?Object.keys(e):e,o=p(t)?i?n=>m(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of s)n[t]=+o(t)||0;return n}function ge(t){return fe(t,{top:"y",right:"x",bottom:"y",left:"x"})}function me(t){return fe(t,["topLeft","topRight","bottomLeft","bottomRight"])}function be(t){const e=ge(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function xe(t,e){t=t||{},e=e||qt.font;let n=m(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let i=m(t.style,e.style);i&&!(""+i).match(de)&&(console.warn('Invalid font style specified: "'+i+'"'),i="");const s={family:m(t.family,e.family),lineHeight:pe(m(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:m(t.weight,e.weight),string:""};return s.string=function(t){return!t||u(t.size)||u(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(s),s}function ve(t,e,n,i){let s,o,r,a=!0;for(s=0,o=t.length;s<o;++s)if(r=t[s],void 0!==r&&(void 0!==e&&"function"==typeof r&&(r=r(e),a=!1),void 0!==n&&d(r)&&(r=r[n%r.length],a=!1),void 0!==r))return i&&!a&&(i.cacheable=!1),r}function ye(t,e,n){const{min:i,max:s}=t,o=x(e,(s-i)/2),r=(t,e)=>n&&0===t?0:t+e;return{min:r(i,-Math.abs(o)),max:r(s,o)}}function _e(t,e){return Object.assign(Object.create(t),e)}function ke(t,e,n){n=n||(n=>t[n]<e);let i,s=t.length-1,o=0;for(;s-o>1;)i=o+s>>1,n(i)?o=i:s=i;return{lo:o,hi:s}}const we=(t,e,n)=>ke(t,n,(i=>t[i][e]<n)),Se=(t,e,n)=>ke(t,n,(i=>t[i][e]>=n));function Me(t,e,n){let i=0,s=t.length;for(;i<s&&t[i]<e;)i++;for(;s>i&&t[s-1]>n;)s--;return i>0||s<t.length?t.slice(i,s):t}const Ce=["push","pop","shift","splice","unshift"];function Ee(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),Ce.forEach((e=>{const n="_onData"+j(e),i=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const s=i.apply(this,e);return t._chartjs.listeners.forEach((t=>{"function"==typeof t[n]&&t[n](...e)})),s}})})))}function Pe(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,s=i.indexOf(e);-1!==s&&i.splice(s,1),i.length>0||(Ce.forEach((e=>{delete t[e]})),delete t._chartjs)}function Oe(t){const e=new Set;let n,i;for(n=0,i=t.length;n<i;++n)e.add(t[n]);return e.size===i?t:Array.from(e)}function je(t,e=[""],n=t,i,s=(()=>t[0])){D(i)||(i=Be("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:i,_getTarget:s,override:s=>je([s,...t],e,n,i)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,i)=>Le(n,i,(()=>function(t,e,n,i){let s;for(const o of e)if(s=Be(Te(o,t),n),D(s))return Ne(t,s)?Fe(n,i,t,s):s}(i,e,t,n))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>He(t).includes(e),ownKeys:t=>He(t),set(t,e,n){const i=t._storage||(t._storage=s());return t[e]=i[e]=n,delete t._keys,!0}})}function De(t,e,n,i){const s={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Ae(t,i),setContext:e=>De(t,e,n,i),override:s=>De(t.override(s),e,n,i)};return new Proxy(s,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>Le(t,e,(()=>function(t,e,n){const{_proxy:i,_context:s,_subProxy:o,_descriptors:r}=t;let a=i[e];A(a)&&r.isScriptable(e)&&(a=function(t,e,n,i){const{_proxy:s,_context:o,_subProxy:r,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t),e=e(o,r||i),a.delete(t),Ne(t,e)&&(e=Fe(s._scopes,s,t,e));return e}(e,a,t,n));d(a)&&a.length&&(a=function(t,e,n,i){const{_proxy:s,_context:o,_subProxy:r,_descriptors:a}=n;if(D(o.index)&&i(t))e=e[o.index%e.length];else if(p(e[0])){const n=e,i=s._scopes.filter((t=>t!==n));e=[];for(const c of n){const n=Fe(i,s,t,c);e.push(De(n,o,r&&r[t],a))}}return e}(e,a,t,r.isIndexable));Ne(e,a)&&(a=De(a,s,o&&o[e],r));return a}(t,e,n))),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,i)=>(t[n]=i,delete e[n],!0)})}function Ae(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:s=e.allKeys}=t;return{allKeys:s,scriptable:n,indexable:i,isScriptable:A(n)?n:()=>n,isIndexable:A(i)?i:()=>i}}const Te=(t,e)=>t?t+j(e):e,Ne=(t,e)=>p(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Le(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const i=n();return t[e]=i,i}function Re(t,e,n){return A(t)?t(e,n):t}const ze=(t,e)=>!0===t?e:"string"==typeof t?O(e,t):void 0;function Ie(t,e,n,i,s){for(const o of e){const e=ze(n,o);if(e){t.add(e);const o=Re(e._fallback,n,s);if(D(o)&&o!==n&&o!==i)return o}else if(!1===e&&D(i)&&n!==i)return null}return!1}function Fe(t,e,n,i){const s=e._rootScopes,o=Re(e._fallback,n,i),r=[...t,...s],a=new Set;a.add(i);let c=Ve(a,r,n,o||n,i);return null!==c&&((!D(o)||o===n||(c=Ve(a,r,o,c,i),null!==c))&&je(Array.from(a),[""],s,o,(()=>function(t,e,n){const i=t._getTarget();e in i||(i[e]={});const s=i[e];if(d(s)&&p(n))return n;return s}(e,n,i))))}function Ve(t,e,n,i,s){for(;n;)n=Ie(t,e,n,i,s);return n}function Be(t,e){for(const n of e){if(!n)continue;const e=n[t];if(D(e))return e}}function He(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}const We=Number.EPSILON||1e-14,$e=(t,e)=>e<t.length&&!t[e].skip&&t[e],Ze=t=>"x"===t?"y":"x";function Ue(t,e,n,i){const s=t.skip?e:t,o=e,r=n.skip?e:n,a=et(o,s),c=et(r,o);let l=a/(a+c),h=c/(a+c);l=isNaN(l)?0:l,h=isNaN(h)?0:h;const u=i*l,d=i*h;return{previous:{x:o.x-u*(r.x-s.x),y:o.y-u*(r.y-s.y)},next:{x:o.x+d*(r.x-s.x),y:o.y+d*(r.y-s.y)}}}function Ye(t,e="x"){const n=Ze(e),i=t.length,s=Array(i).fill(0),o=Array(i);let r,a,c,l=$e(t,0);for(r=0;r<i;++r)if(a=c,c=l,l=$e(t,r+1),c){if(l){const t=l[e]-c[e];s[r]=0!==t?(l[n]-c[n])/t:0}o[r]=a?l?$(s[r-1])!==$(s[r])?0:(s[r-1]+s[r])/2:s[r-1]:s[r]}!function(t,e,n){const i=t.length;let s,o,r,a,c,l=$e(t,0);for(let h=0;h<i-1;++h)c=l,l=$e(t,h+1),c&&l&&(J(e[h],0,We)?n[h]=n[h+1]=0:(s=n[h]/e[h],o=n[h+1]/e[h],a=Math.pow(s,2)+Math.pow(o,2),a<=9||(r=3/Math.sqrt(a),n[h]=s*r*e[h],n[h+1]=o*r*e[h])))}(t,s,o),function(t,e,n="x"){const i=Ze(n),s=t.length;let o,r,a,c=$e(t,0);for(let l=0;l<s;++l){if(r=a,a=c,c=$e(t,l+1),!a)continue;const s=a[n],h=a[i];r&&(o=(s-r[n])/3,a[`cp1${n}`]=s-o,a[`cp1${i}`]=h-o*e[l]),c&&(o=(c[n]-s)/3,a[`cp2${n}`]=s+o,a[`cp2${i}`]=h+o*e[l])}}(t,o,e)}function Je(t,e,n){return Math.max(Math.min(t,n),e)}function Ge(t,e,n,i,s){let o,r,a,c;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)Ye(t,s);else{let n=i?t[t.length-1]:t[0];for(o=0,r=t.length;o<r;++o)a=t[o],c=Ue(n,a,t[Math.min(o+1,r-(i?0:1))%r],e.tension),a.cp1x=c.previous.x,a.cp1y=c.previous.y,a.cp2x=c.next.x,a.cp2y=c.next.y,n=a}e.capBezierPoints&&function(t,e){let n,i,s,o,r,a=ie(t[0],e);for(n=0,i=t.length;n<i;++n)r=o,o=a,a=n<i-1&&ie(t[n+1],e),o&&(s=t[n],r&&(s.cp1x=Je(s.cp1x,e.left,e.right),s.cp1y=Je(s.cp1y,e.top,e.bottom)),a&&(s.cp2x=Je(s.cp2x,e.left,e.right),s.cp2y=Je(s.cp2y,e.top,e.bottom)))}(t,n)}function Xe(){return"undefined"!=typeof window&&"undefined"!=typeof document}function qe(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function Ke(t,e,n){let i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}const Qe=t=>window.getComputedStyle(t,null);const tn=["top","right","bottom","left"];function en(t,e,n){const i={};n=n?"-"+n:"";for(let s=0;s<4;s++){const o=tn[s];i[o]=parseFloat(t[e+"-"+o+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function nn(t,e){const{canvas:n,currentDevicePixelRatio:i}=e,s=Qe(n),o="border-box"===s.boxSizing,r=en(s,"padding"),a=en(s,"border","width"),{x:c,y:l,box:h}=function(t,e){const n=t.native||t,i=n.touches,s=i&&i.length?i[0]:n,{offsetX:o,offsetY:r}=s;let a,c,l=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(o,r,n.target))a=o,c=r;else{const t=e.getBoundingClientRect();a=s.clientX-t.left,c=s.clientY-t.top,l=!0}return{x:a,y:c,box:l}}(t,n),u=r.left+(h&&a.left),d=r.top+(h&&a.top);let{width:p,height:f}=e;return o&&(p-=r.width+a.width,f-=r.height+a.height),{x:Math.round((c-u)/p*n.width/i),y:Math.round((l-d)/f*n.height/i)}}const sn=t=>Math.round(10*t)/10;function on(t,e,n,i){const s=Qe(t),o=en(s,"margin"),r=Ke(s.maxWidth,t,"clientWidth")||I,a=Ke(s.maxHeight,t,"clientHeight")||I,c=function(t,e,n){let i,s;if(void 0===e||void 0===n){const o=qe(t);if(o){const t=o.getBoundingClientRect(),r=Qe(o),a=en(r,"border","width"),c=en(r,"padding");e=t.width-c.width-a.width,n=t.height-c.height-a.height,i=Ke(r.maxWidth,o,"clientWidth"),s=Ke(r.maxHeight,o,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:i||I,maxHeight:s||I}}(t,e,n);let{width:l,height:h}=c;if("content-box"===s.boxSizing){const t=en(s,"border","width"),e=en(s,"padding");l-=e.width+t.width,h-=e.height+t.height}return l=Math.max(0,l-o.width),h=Math.max(0,i?Math.floor(l/i):h-o.height),l=sn(Math.min(l,r,c.maxWidth)),h=sn(Math.min(h,a,c.maxHeight)),l&&!h&&(h=sn(l/2)),{width:l,height:h}}function rn(t,e,n){const i=e||1,s=Math.floor(t.height*i),o=Math.floor(t.width*i);t.height=s/i,t.width=o/i;const r=t.canvas;return r.style&&(n||!r.style.height&&!r.style.width)&&(r.style.height=`${t.height}px`,r.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||r.height!==s||r.width!==o)&&(t.currentDevicePixelRatio=i,r.height=s,r.width=o,t.ctx.setTransform(i,0,0,i,0,0),!0)}const an=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function cn(t,e){const n=function(t,e){return Qe(t).getPropertyValue(e)}(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function ln(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function hn(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:"middle"===i?n<.5?t.y:e.y:"after"===i?n<1?t.y:e.y:n>0?e.y:t.y}}function un(t,e,n,i){const s={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},r=ln(t,s,n),a=ln(s,o,n),c=ln(o,e,n),l=ln(r,a,n),h=ln(a,c,n);return ln(l,h,n)}const dn=new Map;function pn(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let i=dn.get(n);return i||(i=new Intl.NumberFormat(t,e),dn.set(n,i)),i}(e,n).format(t)}function fn(t,e,n){return t?function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,n):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function gn(t,e){let n,i;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function mn(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function bn(t){return"angle"===t?{between:st,compare:nt,normalize:it}:{between:at,compare:(t,e)=>t-e,normalize:t=>t}}function xn({start:t,end:e,count:n,loop:i,style:s}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n==0,style:s}}function vn(t,e,n){if(!n)return[t];const{property:i,start:s,end:o}=n,r=e.length,{compare:a,between:c,normalize:l}=bn(i),{start:h,end:u,loop:d,style:p}=function(t,e,n){const{property:i,start:s,end:o}=n,{between:r,normalize:a}=bn(i),c=e.length;let l,h,{start:u,end:d,loop:p}=t;if(p){for(u+=c,d+=c,l=0,h=c;l<h&&r(a(e[u%c][i]),s,o);++l)u--,d--;u%=c,d%=c}return d<u&&(d+=c),{start:u,end:d,loop:p,style:t.style}}(t,e,n),f=[];let g,m,b,x=!1,v=null;const y=()=>x||c(s,b,g)&&0!==a(s,b),_=()=>!x||0===a(o,g)||c(o,b,g);for(let t=h,n=h;t<=u;++t)m=e[t%r],m.skip||(g=l(m[i]),g!==b&&(x=c(g,s,o),null===v&&y()&&(v=0===a(g,s)?t:n),null!==v&&_()&&(f.push(xn({start:v,end:t,loop:d,count:r,style:p})),v=null),n=t,b=g));return null!==v&&f.push(xn({start:v,end:u,loop:d,count:r,style:p})),f}function yn(t,e){const n=[],i=t.segments;for(let s=0;s<i.length;s++){const o=vn(i[s],t.points,e);o.length&&n.push(...o)}return n}function kn(t,e){const n=t.points,i=t.options.spanGaps,s=n.length;if(!s)return[];const o=!!t._loop,{start:r,end:a}=function(t,e,n,i){let s=0,o=e-1;if(n&&!i)for(;s<e&&!t[s].skip;)s++;for(;s<e&&t[s].skip;)s++;for(s%=e,n&&(o+=s);o>s&&t[o%e].skip;)o--;return o%=e,{start:s,end:o}}(n,s,o,i);if(!0===i)return wn(t,[{start:r,end:a,loop:o}],n,e);return wn(t,function(t,e,n,i){const s=t.length,o=[];let r,a=e,c=t[e];for(r=e+1;r<=n;++r){const n=t[r%s];n.skip||n.stop?c.skip||(i=!1,o.push({start:e%s,end:(r-1)%s,loop:i}),e=a=n.stop?r:null):(a=r,c.skip&&(e=r)),c=n}return null!==a&&o.push({start:e%s,end:a%s,loop:i}),o}(n,r,a<r?a+s:a,!!t._fullLoop&&0===r&&a===s-1),n,e)}function wn(t,e,n,i){return i&&i.setContext&&n?function(t,e,n,i){const s=t._chart.getContext(),o=Sn(t.options),{_datasetIndex:r,options:{spanGaps:a}}=t,c=n.length,l=[];let h=o,u=e[0].start,d=u;function p(t,e,i,s){const o=a?-1:1;if(t!==e){for(t+=c;n[t%c].skip;)t-=o;for(;n[e%c].skip;)e+=o;t%c!=e%c&&(l.push({start:t%c,end:e%c,loop:i,style:s}),h=s,u=e%c)}}for(const t of e){u=a?u:t.start;let e,o=n[u%c];for(d=u+1;d<=t.end;d++){const a=n[d%c];e=Sn(i.setContext(_e(s,{type:"segment",p0:o,p1:a,p0DataIndex:(d-1)%c,p1DataIndex:d%c,datasetIndex:r}))),Mn(e,h)&&p(u,d-1,t.loop,h),o=a,h=e}u<d-1&&p(u,d-1,t.loop,h)}return l}(t,e,n,i):e}function Sn(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function Mn(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}},9105:function(t,e){var n;!function(){"use strict";var i={}.hasOwnProperty;function s(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var o=typeof n;if("string"===o||"number"===o)t.push(n);else if(Array.isArray(n)){if(n.length){var r=s.apply(null,n);r&&t.push(r)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var a in n)i.call(n,a)&&n[a]&&t.push(a);else t.push(n.toString())}}return t.join(" ")}t.exports?(s.default=s,t.exports=s):void 0===(n=function(){return s}.apply(e,[]))||(t.exports=n)}()},9667:function(t,e,n){e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let i=0,s=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(i++,"%c"===t&&(s=i))})),e.splice(s,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(t){}!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG);return t},e.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||(()=>{}),t.exports=n(342)(e);const{formatters:i}=t.exports;i.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},342:function(t,e,n){t.exports=function(t){function e(t){let n,s,o,r=null;function a(...t){if(!a.enabled)return;const i=a,s=Number(new Date),o=s-(n||s);i.diff=o,i.prev=n,i.curr=s,n=s,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let r=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((n,s)=>{if("%%"===n)return"%";r++;const o=e.formatters[s];if("function"==typeof o){const e=t[r];n=o.call(i,e),t.splice(r,1),r--}return n})),e.formatArgs.call(i,t);(i.log||e.log).apply(i,t)}return a.namespace=t,a.useColors=e.useColors(),a.color=e.selectColor(t),a.extend=i,a.destroy=e.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==r?r:(s!==e.namespaces&&(s=e.namespaces,o=e.enabled(t)),o),set:t=>{r=t}}),"function"==typeof e.init&&e.init(a),a}function i(t,n){const i=e(this.namespace+(void 0===n?":":n)+t);return i.log=this.log,i}function s(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){if(t instanceof Error)return t.stack||t.message;return t},e.disable=function(){const t=[...e.names.map(s),...e.skips.map(s).map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){let n;e.save(t),e.namespaces=t,e.names=[],e.skips=[];const i=("string"==typeof t?t:"").split(/[\s,]+/),s=i.length;for(n=0;n<s;n++)i[n]&&("-"===(t=i[n].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;let n,i;for(n=0,i=e.skips.length;n<i;n++)if(e.skips[n].test(t))return!1;for(n=0,i=e.names.length;n<i;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=n(2002),e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((n=>{e[n]=t[n]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let n=0;for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return e.colors[Math.abs(n)%e.colors.length]},e.enable(e.load()),e}},2312:function(t,e,n){var i=n(3743)(n(2373),"DataView");t.exports=i},3715:function(t,e,n){var i=n(6037),s=n(7609),o=n(9391),r=n(4191),a=n(2721);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}c.prototype.clear=i,c.prototype.delete=s,c.prototype.get=o,c.prototype.has=r,c.prototype.set=a,t.exports=c},6629:function(t,e,n){var i=n(1171),s=n(7838),o=n(4859),r=n(4073),a=n(8541);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}c.prototype.clear=i,c.prototype.delete=s,c.prototype.get=o,c.prototype.has=r,c.prototype.set=a,t.exports=c},1739:function(t,e,n){var i=n(3743)(n(2373),"Map");t.exports=i},503:function(t,e,n){var i=n(3649),s=n(1186),o=n(9713),r=n(1431),a=n(6801);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}c.prototype.clear=i,c.prototype.delete=s,c.prototype.get=o,c.prototype.has=r,c.prototype.set=a,t.exports=c},5305:function(t,e,n){var i=n(3743)(n(2373),"Promise");t.exports=i},7961:function(t,e,n){var i=n(3743)(n(2373),"Set");t.exports=i},8708:function(t,e,n){var i=n(6629),s=n(9453),o=n(5477),r=n(9989),a=n(5450),c=n(1954);function l(t){var e=this.__data__=new i(t);this.size=e.size}l.prototype.clear=s,l.prototype.delete=o,l.prototype.get=r,l.prototype.has=a,l.prototype.set=c,t.exports=l},2596:function(t,e,n){var i=n(2373).Symbol;t.exports=i},9864:function(t,e,n){var i=n(2373).Uint8Array;t.exports=i},1305:function(t,e,n){var i=n(3743)(n(2373),"WeakMap");t.exports=i},6082:function(t){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},6041:function(t){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t}},1970:function(t){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length,s=0,o=[];++n<i;){var r=t[n];e(r,n,t)&&(o[s++]=r)}return o}},9537:function(t,e,n){var i=n(9694),s=n(5075),o=n(163),r=n(4801),a=n(9099),c=n(4289),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),h=!n&&s(t),u=!n&&!h&&r(t),d=!n&&!h&&!u&&c(t),p=n||h||u||d,f=p?i(t.length,String):[],g=f.length;for(var m in t)!e&&!l.call(t,m)||p&&("length"==m||u&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,g))||f.push(m);return f}},8644:function(t){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length,s=Array(i);++n<i;)s[n]=e(t[n],n,t);return s}},9559:function(t){t.exports=function(t,e){for(var n=-1,i=e.length,s=t.length;++n<i;)t[s+n]=e[n];return t}},4132:function(t,e,n){var i=n(8347),s=n(788),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var r=t[e];o.call(t,e)&&s(r,n)&&(void 0!==n||e in t)||i(t,e,n)}},3162:function(t,e,n){var i=n(788);t.exports=function(t,e){for(var n=t.length;n--;)if(i(t[n][0],e))return n;return-1}},7796:function(t,e,n){var i=n(9021),s=n(7747);t.exports=function(t,e){return t&&i(e,s(e),t)}},9214:function(t,e,n){var i=n(9021),s=n(8855);t.exports=function(t,e){return t&&i(e,s(e),t)}},8347:function(t,e,n){var i=n(5525);t.exports=function(t,e,n){"__proto__"==e&&i?i(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},3435:function(t,e,n){var i=n(8708),s=n(6041),o=n(4132),r=n(7796),a=n(9214),c=n(5497),l=n(8181),h=n(6336),u=n(9033),d=n(8143),p=n(7271),f=n(3434),g=n(4530),m=n(8278),b=n(242),x=n(163),v=n(4801),y=n(9440),_=n(7709),k=n(3188),w=n(7747),S=n(8855),M="[object Arguments]",C="[object Function]",E="[object Object]",P={};P[M]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P[E]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P[C]=P["[object WeakMap]"]=!1,t.exports=function t(e,n,O,j,D,A){var T,N=1&n,L=2&n,R=4&n;if(O&&(T=D?O(e,j,D,A):O(e)),void 0!==T)return T;if(!_(e))return e;var z=x(e);if(z){if(T=g(e),!N)return l(e,T)}else{var I=f(e),F=I==C||"[object GeneratorFunction]"==I;if(v(e))return c(e,N);if(I==E||I==M||F&&!D){if(T=L||F?{}:b(e),!N)return L?u(e,a(T,e)):h(e,r(T,e))}else{if(!P[I])return D?e:{};T=m(e,I,N)}}A||(A=new i);var V=A.get(e);if(V)return V;A.set(e,T),k(e)?e.forEach((function(i){T.add(t(i,n,O,i,e,A))})):y(e)&&e.forEach((function(i,s){T.set(s,t(i,n,O,s,e,A))}));var B=z?void 0:(R?L?p:d:L?S:w)(e);return s(B||e,(function(i,s){B&&(i=e[s=i]),o(T,s,t(i,n,O,s,e,A))})),T}},7047:function(t,e,n){var i=n(7709),s=Object.create,o=function(){function t(){}return function(e){if(!i(e))return{};if(s)return s(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},6457:function(t,e,n){var i=n(9559),s=n(3608);t.exports=function t(e,n,o,r,a){var c=-1,l=e.length;for(o||(o=s),a||(a=[]);++c<l;){var h=e[c];n>0&&o(h)?n>1?t(h,n-1,o,r,a):i(a,h):r||(a[a.length]=h)}return a}},4432:function(t,e,n){var i=n(9026),s=n(3110);t.exports=function(t,e){for(var n=0,o=(e=i(e,t)).length;null!=t&&n<o;)t=t[s(e[n++])];return n&&n==o?t:void 0}},2148:function(t,e,n){var i=n(9559),s=n(163);t.exports=function(t,e,n){var o=e(t);return s(t)?o:i(o,n(t))}},563:function(t,e,n){var i=n(2596),s=n(8703),o=n(888),r=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":r&&r in Object(t)?s(t):o(t)}},6776:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},364:function(t,e,n){var i=n(563),s=n(3474);t.exports=function(t){return s(t)&&"[object Arguments]"==i(t)}},3822:function(t,e,n){var i=n(3434),s=n(3474);t.exports=function(t){return s(t)&&"[object Map]"==i(t)}},9729:function(t,e,n){var i=n(9642),s=n(3389),o=n(7709),r=n(3570),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,h=c.toString,u=l.hasOwnProperty,d=RegExp("^"+h.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||s(t))&&(i(t)?d:a).test(r(t))}},817:function(t,e,n){var i=n(3434),s=n(3474);t.exports=function(t){return s(t)&&"[object Set]"==i(t)}},4461:function(t,e,n){var i=n(563),s=n(8454),o=n(3474),r={};r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&s(t.length)&&!!r[i(t)]}},7190:function(t,e,n){var i=n(5782),s=n(6488),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!i(t))return s(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},9685:function(t,e,n){var i=n(7709),s=n(5782),o=n(3462),r=Object.prototype.hasOwnProperty;t.exports=function(t){if(!i(t))return o(t);var e=s(t),n=[];for(var a in t)("constructor"!=a||!e&&r.call(t,a))&&n.push(a);return n}},5436:function(t,e,n){var i=n(6371),s=n(5066);t.exports=function(t,e){return i(t,e,(function(e,n){return s(t,n)}))}},6371:function(t,e,n){var i=n(4432),s=n(6539),o=n(9026);t.exports=function(t,e,n){for(var r=-1,a=e.length,c={};++r<a;){var l=e[r],h=i(t,l);n(h,l)&&s(c,o(l,t),h)}return c}},6818:function(t,e,n){var i=n(5346),s=n(4280),o=n(201);t.exports=function(t,e){return o(s(t,e,i),t+"")}},6539:function(t,e,n){var i=n(4132),s=n(9026),o=n(9099),r=n(7709),a=n(3110);t.exports=function(t,e,n,c){if(!r(t))return t;for(var l=-1,h=(e=s(e,t)).length,u=h-1,d=t;null!=d&&++l<h;){var p=a(e[l]),f=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return t;if(l!=u){var g=d[p];void 0===(f=c?c(g,p,d):void 0)&&(f=r(g)?g:o(e[l+1])?[]:{})}i(d,p,f),d=d[p]}return t}},2929:function(t,e,n){var i=n(1937),s=n(5525),o=n(5346),r=s?function(t,e){return s(t,"toString",{configurable:!0,enumerable:!1,value:i(e),writable:!0})}:o;t.exports=r},2238:function(t){t.exports=function(t,e,n){var i=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(s);++i<s;)o[i]=t[i+e];return o}},9694:function(t){t.exports=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}},6316:function(t,e,n){var i=n(2596),s=n(8644),o=n(163),r=n(1995),a=i?i.prototype:void 0,c=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return s(e,t)+"";if(r(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n}},9110:function(t){t.exports=function(t){return function(e){return t(e)}}},8296:function(t,e,n){var i=n(9026),s=n(1950),o=n(2940),r=n(3110);t.exports=function(t,e){return e=i(e,t),null==(t=o(t,e))||delete t[r(s(e))]}},9026:function(t,e,n){var i=n(163),s=n(726),o=n(7801),r=n(7010);t.exports=function(t,e){return i(t)?t:s(t,e)?[t]:o(r(t))}},1882:function(t,e,n){var i=n(9864);t.exports=function(t){var e=new t.constructor(t.byteLength);return new i(e).set(new i(t)),e}},5497:function(t,e,n){t=n.nmd(t);var i=n(2373),s=e&&!e.nodeType&&e,o=s&&t&&!t.nodeType&&t,r=o&&o.exports===s?i.Buffer:void 0,a=r?r.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,i=a?a(n):new t.constructor(n);return t.copy(i),i}},3536:function(t,e,n){var i=n(1882);t.exports=function(t,e){var n=e?i(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},2193:function(t){var e=/\w*$/;t.exports=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}},3338:function(t,e,n){var i=n(2596),s=i?i.prototype:void 0,o=s?s.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},3355:function(t,e,n){var i=n(1882);t.exports=function(t,e){var n=e?i(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},8181:function(t){t.exports=function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}},9021:function(t,e,n){var i=n(4132),s=n(8347);t.exports=function(t,e,n,o){var r=!n;n||(n={});for(var a=-1,c=e.length;++a<c;){var l=e[a],h=o?o(n[l],t[l],l,n,t):void 0;void 0===h&&(h=t[l]),r?s(n,l,h):i(n,l,h)}return n}},6336:function(t,e,n){var i=n(9021),s=n(6353);t.exports=function(t,e){return i(t,s(t),e)}},9033:function(t,e,n){var i=n(9021),s=n(2678);t.exports=function(t,e){return i(t,s(t),e)}},6659:function(t,e,n){var i=n(2373)["__core-js_shared__"];t.exports=i},6092:function(t,e,n){var i=n(6818),s=n(8286);t.exports=function(t){return i((function(e,n){var i=-1,o=n.length,r=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(r=t.length>3&&"function"==typeof r?(o--,r):void 0,a&&s(n[0],n[1],a)&&(r=o<3?void 0:r,o=1),e=Object(e);++i<o;){var c=n[i];c&&t(e,c,i,r)}return e}))}},9465:function(t,e,n){var i=n(3849);t.exports=function(t){return i(t)?void 0:t}},5525:function(t,e,n){var i=n(3743),s=function(){try{var t=i(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=s},5557:function(t,e,n){var i=n(2645),s=n(4280),o=n(201);t.exports=function(t){return o(s(t,void 0,i),t+"")}},2117:function(t){var e="object"==typeof window&&window&&window.Object===Object&&window;t.exports=e},8143:function(t,e,n){var i=n(2148),s=n(6353),o=n(7747);t.exports=function(t){return i(t,o,s)}},7271:function(t,e,n){var i=n(2148),s=n(2678),o=n(8855);t.exports=function(t){return i(t,o,s)}},6733:function(t,e,n){var i=n(5469);t.exports=function(t,e){var n=t.__data__;return i(e)?n["string"==typeof e?"string":"hash"]:n.map}},3743:function(t,e,n){var i=n(9729),s=n(8316);t.exports=function(t,e){var n=s(t,e);return i(n)?n:void 0}},9817:function(t,e,n){var i=n(5125)(Object.getPrototypeOf,Object);t.exports=i},8703:function(t,e,n){var i=n(2596),s=Object.prototype,o=s.hasOwnProperty,r=s.toString,a=i?i.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var i=!0}catch(t){}var s=r.call(t);return i&&(e?t[a]=n:delete t[a]),s}},6353:function(t,e,n){var i=n(1970),s=n(6827),o=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols,a=r?function(t){return null==t?[]:(t=Object(t),i(r(t),(function(e){return o.call(t,e)})))}:s;t.exports=a},2678:function(t,e,n){var i=n(9559),s=n(9817),o=n(6353),r=n(6827),a=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)i(e,o(t)),t=s(t);return e}:r;t.exports=a},3434:function(t,e,n){var i=n(2312),s=n(1739),o=n(5305),r=n(7961),a=n(1305),c=n(563),l=n(3570),h="[object Map]",u="[object Promise]",d="[object Set]",p="[object WeakMap]",f="[object DataView]",g=l(i),m=l(s),b=l(o),x=l(r),v=l(a),y=c;(i&&y(new i(new ArrayBuffer(1)))!=f||s&&y(new s)!=h||o&&y(o.resolve())!=u||r&&y(new r)!=d||a&&y(new a)!=p)&&(y=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,i=n?l(n):"";if(i)switch(i){case g:return f;case m:return h;case b:return u;case x:return d;case v:return p}return e}),t.exports=y},8316:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},3096:function(t,e,n){var i=n(9026),s=n(5075),o=n(163),r=n(9099),a=n(8454),c=n(3110);t.exports=function(t,e,n){for(var l=-1,h=(e=i(e,t)).length,u=!1;++l<h;){var d=c(e[l]);if(!(u=null!=t&&n(t,d)))break;t=t[d]}return u||++l!=h?u:!!(h=null==t?0:t.length)&&a(h)&&r(d,h)&&(o(t)||s(t))}},6037:function(t,e,n){var i=n(9337);t.exports=function(){this.__data__=i?i(null):{},this.size=0}},7609:function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},9391:function(t,e,n){var i=n(9337),s=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(i){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return s.call(e,t)?e[t]:void 0}},4191:function(t,e,n){var i=n(9337),s=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return i?void 0!==e[t]:s.call(e,t)}},2721:function(t,e,n){var i=n(9337);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=i&&void 0===e?"__lodash_hash_undefined__":e,this}},4530:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t){var n=t.length,i=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(i.index=t.index,i.input=t.input),i}},8278:function(t,e,n){var i=n(1882),s=n(3536),o=n(2193),r=n(3338),a=n(3355);t.exports=function(t,e,n){var c=t.constructor;switch(e){case"[object ArrayBuffer]":return i(t);case"[object Boolean]":case"[object Date]":return new c(+t);case"[object DataView]":return s(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(t,n);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(t);case"[object RegExp]":return o(t);case"[object Symbol]":return r(t)}}},242:function(t,e,n){var i=n(7047),s=n(9817),o=n(5782);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:i(s(t))}},3608:function(t,e,n){var i=n(2596),s=n(5075),o=n(163),r=i?i.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||s(t)||!!(r&&t&&t[r])}},9099:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var i=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==i||"symbol"!=i&&e.test(t))&&t>-1&&t%1==0&&t<n}},8286:function(t,e,n){var i=n(788),s=n(981),o=n(9099),r=n(7709);t.exports=function(t,e,n){if(!r(n))return!1;var a=typeof e;return!!("number"==a?s(n)&&o(e,n.length):"string"==a&&e in n)&&i(n[e],t)}},726:function(t,e,n){var i=n(163),s=n(1995),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;t.exports=function(t,e){if(i(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!s(t))||(r.test(t)||!o.test(t)||null!=e&&t in Object(e))}},5469:function(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},3389:function(t,e,n){var i,s=n(6659),o=(i=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";t.exports=function(t){return!!o&&o in t}},5782:function(t){var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},1171:function(t){t.exports=function(){this.__data__=[],this.size=0}},7838:function(t,e,n){var i=n(3162),s=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=i(e,t);return!(n<0)&&(n==e.length-1?e.pop():s.call(e,n,1),--this.size,!0)}},4859:function(t,e,n){var i=n(3162);t.exports=function(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]}},4073:function(t,e,n){var i=n(3162);t.exports=function(t){return i(this.__data__,t)>-1}},8541:function(t,e,n){var i=n(3162);t.exports=function(t,e){var n=this.__data__,s=i(n,t);return s<0?(++this.size,n.push([t,e])):n[s][1]=e,this}},3649:function(t,e,n){var i=n(3715),s=n(6629),o=n(1739);t.exports=function(){this.size=0,this.__data__={hash:new i,map:new(o||s),string:new i}}},1186:function(t,e,n){var i=n(6733);t.exports=function(t){var e=i(this,t).delete(t);return this.size-=e?1:0,e}},9713:function(t,e,n){var i=n(6733);t.exports=function(t){return i(this,t).get(t)}},1431:function(t,e,n){var i=n(6733);t.exports=function(t){return i(this,t).has(t)}},6801:function(t,e,n){var i=n(6733);t.exports=function(t,e){var n=i(this,t),s=n.size;return n.set(t,e),this.size+=n.size==s?0:1,this}},2453:function(t,e,n){var i=n(1594);t.exports=function(t){var e=i(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},9337:function(t,e,n){var i=n(3743)(Object,"create");t.exports=i},6488:function(t,e,n){var i=n(5125)(Object.keys,Object);t.exports=i},3462:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},2348:function(t,e,n){t=n.nmd(t);var i=n(2117),s=e&&!e.nodeType&&e,o=s&&t&&!t.nodeType&&t,r=o&&o.exports===s&&i.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||r&&r.binding&&r.binding("util")}catch(t){}}();t.exports=a},888:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5125:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},4280:function(t,e,n){var i=n(6082),s=Math.max;t.exports=function(t,e,n){return e=s(void 0===e?t.length-1:e,0),function(){for(var o=arguments,r=-1,a=s(o.length-e,0),c=Array(a);++r<a;)c[r]=o[e+r];r=-1;for(var l=Array(e+1);++r<e;)l[r]=o[r];return l[e]=n(c),i(t,this,l)}}},2940:function(t,e,n){var i=n(4432),s=n(2238);t.exports=function(t,e){return e.length<2?t:i(t,s(e,0,-1))}},2373:function(t,e,n){var i=n(2117),s="object"==typeof self&&self&&self.Object===Object&&self,o=i||s||Function("return this")();t.exports=o},201:function(t,e,n){var i=n(2929),s=n(2626)(i);t.exports=s},2626:function(t){var e=Date.now;t.exports=function(t){var n=0,i=0;return function(){var s=e(),o=16-(s-i);if(i=s,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},9453:function(t,e,n){var i=n(6629);t.exports=function(){this.__data__=new i,this.size=0}},5477:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},9989:function(t){t.exports=function(t){return this.__data__.get(t)}},5450:function(t){t.exports=function(t){return this.__data__.has(t)}},1954:function(t,e,n){var i=n(6629),s=n(1739),o=n(503);t.exports=function(t,e){var n=this.__data__;if(n instanceof i){var r=n.__data__;if(!s||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(r)}return n.set(t,e),this.size=n.size,this}},7801:function(t,e,n){var i=n(2453),s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,r=i((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(s,(function(t,n,i,s){e.push(i?s.replace(o,"$1"):n||t)})),e}));t.exports=r},3110:function(t,e,n){var i=n(1995);t.exports=function(t){if("string"==typeof t||i(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}},3570:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},156:function(t,e,n){var i=n(4132),s=n(9021),o=n(6092),r=n(981),a=n(5782),c=n(7747),l=Object.prototype.hasOwnProperty,h=o((function(t,e){if(a(e)||r(e))s(e,c(e),t);else for(var n in e)l.call(e,n)&&i(t,n,e[n])}));t.exports=h},1937:function(t){t.exports=function(t){return function(){return t}}},788:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},2645:function(t,e,n){var i=n(6457);t.exports=function(t){return(null==t?0:t.length)?i(t,1):[]}},5066:function(t,e,n){var i=n(6776),s=n(3096);t.exports=function(t,e){return null!=t&&s(t,e,i)}},5346:function(t){t.exports=function(t){return t}},5075:function(t,e,n){var i=n(364),s=n(3474),o=Object.prototype,r=o.hasOwnProperty,a=o.propertyIsEnumerable,c=i(function(){return arguments}())?i:function(t){return s(t)&&r.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},163:function(t){var e=Array.isArray;t.exports=e},981:function(t,e,n){var i=n(9642),s=n(8454);t.exports=function(t){return null!=t&&s(t.length)&&!i(t)}},4801:function(t,e,n){t=n.nmd(t);var i=n(2373),s=n(7689),o=e&&!e.nodeType&&e,r=o&&t&&!t.nodeType&&t,a=r&&r.exports===o?i.Buffer:void 0,c=(a?a.isBuffer:void 0)||s;t.exports=c},9642:function(t,e,n){var i=n(563),s=n(7709);t.exports=function(t){if(!s(t))return!1;var e=i(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},8454:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},9440:function(t,e,n){var i=n(3822),s=n(9110),o=n(2348),r=o&&o.isMap,a=r?s(r):i;t.exports=a},7709:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3474:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},3849:function(t,e,n){var i=n(563),s=n(9817),o=n(3474),r=Function.prototype,a=Object.prototype,c=r.toString,l=a.hasOwnProperty,h=c.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=i(t))return!1;var e=s(t);if(null===e)return!0;var n=l.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==h}},3188:function(t,e,n){var i=n(817),s=n(9110),o=n(2348),r=o&&o.isSet,a=r?s(r):i;t.exports=a},1995:function(t,e,n){var i=n(563),s=n(3474);t.exports=function(t){return"symbol"==typeof t||s(t)&&"[object Symbol]"==i(t)}},4289:function(t,e,n){var i=n(4461),s=n(9110),o=n(2348),r=o&&o.isTypedArray,a=r?s(r):i;t.exports=a},7747:function(t,e,n){var i=n(9537),s=n(7190),o=n(981);t.exports=function(t){return o(t)?i(t):s(t)}},8855:function(t,e,n){var i=n(9537),s=n(9685),o=n(981);t.exports=function(t){return o(t)?i(t,!0):s(t)}},1950:function(t){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},1594:function(t,e,n){var i=n(503);function s(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var i=arguments,s=e?e.apply(this,i):i[0],o=n.cache;if(o.has(s))return o.get(s);var r=t.apply(this,i);return n.cache=o.set(s,r)||o,r};return n.cache=new(s.Cache||i),n}s.Cache=i,t.exports=s},515:function(t){t.exports=function(){}},2703:function(t,e,n){var i=n(8644),s=n(3435),o=n(8296),r=n(9026),a=n(9021),c=n(9465),l=n(5557),h=n(7271),u=l((function(t,e){var n={};if(null==t)return n;var l=!1;e=i(e,(function(e){return e=r(e,t),l||(l=e.length>1),e})),a(t,h(t),n),l&&(n=s(n,7,c));for(var u=e.length;u--;)o(n,e[u]);return n}));t.exports=u},9082:function(t,e,n){var i=n(5436),s=n(5557)((function(t,e){return null==t?{}:i(t,e)}));t.exports=s},6827:function(t){t.exports=function(){return[]}},7689:function(t){t.exports=function(){return!1}},7010:function(t,e,n){var i=n(6316);t.exports=function(t){return null==t?"":i(t)}},660:function(t,e,n){var i=n(7010),s=0;t.exports=function(t){var e=++s;return i(t)+e}},1802:function(){},873:function(){},2002:function(t){var e=1e3,n=60*e,i=60*n,s=24*i,o=7*s,r=365.25*s;function a(t,e,n,i){var s=e>=1.5*n;return Math.round(t/n)+" "+i+(s?"s":"")}t.exports=function(t,c){c=c||{};var l=typeof t;if("string"===l&&t.length>0)return function(t){if((t=String(t)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*r;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*s;case"hours":case"hour":case"hrs":case"hr":case"h":return c*i;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(t);if("number"===l&&isFinite(t))return c.long?function(t){var o=Math.abs(t);if(o>=s)return a(t,o,s,"day");if(o>=i)return a(t,o,i,"hour");if(o>=n)return a(t,o,n,"minute");if(o>=e)return a(t,o,e,"second");return t+" ms"}(t):function(t){var o=Math.abs(t);if(o>=s)return Math.round(t/s)+"d";if(o>=i)return Math.round(t/i)+"h";if(o>=n)return Math.round(t/n)+"m";if(o>=e)return Math.round(t/e)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},9587:function(t,e,n){"use strict";var i=n(5843);function s(){}function o(){}o.resetWarningCache=s,t.exports=function(){function t(t,e,n,s,o,r){if(r!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:s};return n.PropTypes=n,n}},1268:function(t,e,n){t.exports=n(9587)()},5843:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2504:function(t,e,n){"use strict";var i=n(2265);function s(){}function o(){}o.resetWarningCache=s,t.exports=function(){function t(t,e,n,s,o,r){if(r!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:s};return n.PropTypes=n,n}},3698:function(t,e,n){t.exports=n(2504)()},2265:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5325:function(t,e,n){"use strict";var i=n(9667),s=n.n(i),o=n(2819);const r=s()("dops:analytics");let a,c;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const l={initialize:function(t,e,n){l.setUser(t,e),l.setSuperProps(n),l.identifyUser()},setGoogleAnalyticsEnabled:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.googleAnalyticsEnabled=t,this.googleAnalyticsKey=e},setMcAnalyticsEnabled:function(t){this.mcAnalyticsEnabled=t},setUser:function(t,e){c={ID:t,username:e}},setSuperProps:function(t){a=t},assignSuperProps:function(t){a=(0,o.assign)(a,t)},mc:{bumpStat:function(t,e){const n=function(t,e){let n="";if("object"==typeof t){for(const e in t)n+="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]);r("Bumping stats %o",t)}else n="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e),r('Bumping stat "%s" in group "%s"',e,t);return n}(t,e);l.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(t,e){const n=function(t,e){let n="";if("object"==typeof t){for(const e in t)n+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]);r("Built stats %o",t)}else n="&"+encodeURIComponent(t)+"="+encodeURIComponent(e),r('Built stat "%s" in group "%s"',e,t);return n}(t,e);l.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(t,e){l.tracks.recordPageView(t),l.ga.recordPageView(t,e)}},purchase:{record:function(t,e,n,i,s,o,r){l.ga.recordPurchase(t,e,n,i,s,o,r)}},tracks:{recordEvent:function(t,e){e=e||{},0===t.indexOf("akismet_")||0===t.indexOf("jetpack_")?(a&&(r("- Super Props: %o",a),e=(0,o.assign)(e,a)),r('Record event "%s" called with props %s',t,JSON.stringify(e)),window._tkq.push(["recordEvent",t,e])):r('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(t){const e="object"==typeof t?t:{target:t};l.tracks.recordEvent("jetpack_wpa_click",e)},recordPageView:function(t){l.tracks.recordEvent("akismet_page_view",{path:t})},setOptOut:function(t){r("Pushing setOptOut: %o",t),window._tkq.push(["setOptOut",t])}},ga:{initialized:!1,initialize:function(){let t={};l.ga.initialized||(c&&(t={userId:"u-"+c.ID}),window.ga("create",this.googleAnalyticsKey,"auto",t),l.ga.initialized=!0)},recordPageView:function(t,e){l.ga.initialize(),r("Recording Page View ~ [URL: "+t+"] [Title: "+e+"]"),this.googleAnalyticsEnabled&&(window.ga("set","page",t),window.ga("send",{hitType:"pageview",page:t,title:e}))},recordEvent:function(t,e,n,i){l.ga.initialize();let s="Recording Event ~ [Category: "+t+"] [Action: "+e+"]";void 0!==n&&(s+=" [Option Label: "+n+"]"),void 0!==i&&(s+=" [Option Value: "+i+"]"),r(s),this.googleAnalyticsEnabled&&window.ga("send","event",t,e,n,i)},recordPurchase:function(t,e,n,i,s,o,r){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:t,revenue:i,currency:r}),window.ga("ecommerce:addItem",{id:t,name:e,sku:n,price:s,quantity:o}),window.ga("ecommerce:send")}},identifyUser:function(){c&&window._tkq.push(["identifyUser",c.ID,c.username])},setProperties:function(t){window._tkq.push(["setProperties",t])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}};e.Z=l},488:function(t,e,n){"use strict";var i=n(2819),s=n(6483),o=n(4680);function r(t){class e extends Error{constructor(){super(...arguments),this.name=t}}return e}const a=r("JsonParseError"),c=r("JsonParseAfterRedirectError"),l=r("Api404Error"),h=r("Api404AfterRedirectError"),u=r("FetchNetworkError");const d=new function(t,e){let n=t,r={"X-WP-Nonce":e},a={credentials:"same-origin",headers:r},c={method:"post",credentials:"same-origin",headers:(0,i.assign)({},r,{"Content-type":"application/json"})},l=function(t){const e=t.split("?"),n=e.length>1?e[1]:"",i=n.length?n.split("&"):[];return i.push("_cacheBuster="+(new Date).getTime()),e[0]+"?"+i.join("&")};const h={setApiRoot(t){n=t},setApiNonce(t){r={"X-WP-Nonce":t},a={credentials:"same-origin",headers:r},c={method:"post",credentials:"same-origin",headers:(0,i.assign)({},r,{"Content-type":"application/json"})}},setCacheBusterCallback:t=>{l=t},registerSite:(t,e)=>{const i={registration_nonce:t,no_iframe:!0};return(0,o.jetpackConfigHas)("consumer_slug")&&(i.plugin_slug=(0,o.jetpackConfigGet)("consumer_slug")),null!==e&&(i.redirect_uri=e),d(`${n}jetpack/v4/connection/register`,c,{body:JSON.stringify(i)}).then(p).then(f)},fetchAuthorizationUrl:t=>u((0,s.addQueryArgs)(`${n}jetpack/v4/connection/authorize_url`,{no_iframe:"1",redirect_uri:t}),a).then(p).then(f),fetchSiteConnectionData:()=>u(`${n}jetpack/v4/connection/data`,a).then(f),fetchSiteConnectionStatus:()=>u(`${n}jetpack/v4/connection`,a).then(f),fetchSiteConnectionTest:()=>u(`${n}jetpack/v4/connection/test`,a).then(p).then(f),fetchUserConnectionData:()=>u(`${n}jetpack/v4/connection/data`,a).then(f),fetchUserTrackingSettings:()=>u(`${n}jetpack/v4/tracking/settings`,a).then(p).then(f),updateUserTrackingSettings:t=>d(`${n}jetpack/v4/tracking/settings`,c,{body:JSON.stringify(t)}).then(p).then(f),disconnectSite:()=>d(`${n}jetpack/v4/connection`,c,{body:JSON.stringify({isActive:!1})}).then(p).then(f),fetchConnectUrl:()=>u(`${n}jetpack/v4/connection/url`,a).then(p).then(f),unlinkUser:()=>d(`${n}jetpack/v4/connection/user`,c,{body:JSON.stringify({linked:!1})}).then(p).then(f),reconnect:()=>d(`${n}jetpack/v4/connection/reconnect`,c).then(p).then(f),fetchConnectedPlugins:()=>u(`${n}jetpack/v4/connection/plugins`,a).then(p).then(f),setHasSeenWCConnectionModal:()=>d(`${n}jetpack/v4/seen-wc-connection-modal`,c).then(p).then(f),fetchModules:()=>u(`${n}jetpack/v4/module/all`,a).then(p).then(f),fetchModule:t=>u(`${n}jetpack/v4/module/${t}`,a).then(p).then(f),activateModule:t=>d(`${n}jetpack/v4/module/${t}/active`,c,{body:JSON.stringify({active:!0})}).then(p).then(f),deactivateModule:t=>d(`${n}jetpack/v4/module/${t}/active`,c,{body:JSON.stringify({active:!1})}),updateModuleOptions:(t,e)=>d(`${n}jetpack/v4/module/${t}`,c,{body:JSON.stringify(e)}).then(p).then(f),updateSettings:t=>d(`${n}jetpack/v4/settings`,c,{body:JSON.stringify(t)}).then(p).then(f),getProtectCount:()=>u(`${n}jetpack/v4/module/protect/data`,a).then(p).then(f),resetOptions:t=>d(`${n}jetpack/v4/options/${t}`,c,{body:JSON.stringify({reset:!0})}).then(p).then(f),activateVaultPress:()=>d(`${n}jetpack/v4/plugins`,c,{body:JSON.stringify({slug:"vaultpress",status:"active"})}).then(p).then(f),getVaultPressData:()=>u(`${n}jetpack/v4/module/vaultpress/data`,a).then(p).then(f),installPlugin:(t,e)=>{const i={slug:t,status:"active"};return e&&(i.source=e),d(`${n}jetpack/v4/plugins`,c,{body:JSON.stringify(i)}).then(p).then(f)},activateAkismet:()=>d(`${n}jetpack/v4/plugins`,c,{body:JSON.stringify({slug:"akismet",status:"active"})}).then(p).then(f),getAkismetData:()=>u(`${n}jetpack/v4/module/akismet/data`,a).then(p).then(f),checkAkismetKey:()=>u(`${n}jetpack/v4/module/akismet/key/check`,a).then(p).then(f),checkAkismetKeyTyped:t=>d(`${n}jetpack/v4/module/akismet/key/check`,c,{body:JSON.stringify({api_key:t})}).then(p).then(f),fetchStatsData:t=>u(function(t){let e=`${n}jetpack/v4/module/stats/data`;-1!==e.indexOf("?")?e+=`&range=${encodeURIComponent(t)}`:e+=`?range=${encodeURIComponent(t)}`;return e}(t),a).then(p).then(f).then(g),getPluginUpdates:()=>u(`${n}jetpack/v4/updates/plugins`,a).then(p).then(f),getPlans:()=>u(`${n}jetpack/v4/plans`,a).then(p).then(f),fetchSettings:()=>u(`${n}jetpack/v4/settings`,a).then(p).then(f),updateSetting:t=>d(`${n}jetpack/v4/settings`,c,{body:JSON.stringify(t)}).then(p).then(f),fetchSiteData:()=>u(`${n}jetpack/v4/site`,a).then(p).then(f).then((t=>JSON.parse(t.data))),fetchSiteFeatures:()=>u(`${n}jetpack/v4/site/features`,a).then(p).then(f).then((t=>JSON.parse(t.data))),fetchSiteProducts:()=>u(`${n}jetpack/v4/site/products`,a).then(p).then(f),fetchSitePurchases:()=>u(`${n}jetpack/v4/site/purchases`,a).then(p).then(f).then((t=>JSON.parse(t.data))),fetchSiteBenefits:()=>u(`${n}jetpack/v4/site/benefits`,a).then(p).then(f).then((t=>JSON.parse(t.data))),fetchSetupQuestionnaire:()=>u(`${n}jetpack/v4/setup/questionnaire`,a).then(p).then(f),fetchRecommendationsData:()=>u(`${n}jetpack/v4/recommendations/data`,a).then(p).then(f),fetchRecommendationsProductSuggestions:()=>u(`${n}jetpack/v4/recommendations/product-suggestions`,a).then(p).then(f),fetchRecommendationsUpsell:()=>u(`${n}jetpack/v4/recommendations/upsell`,a).then(p).then(f),saveRecommendationsData:t=>d(`${n}jetpack/v4/recommendations/data`,c,{body:JSON.stringify({data:t})}).then(p),fetchProducts:()=>u(`${n}jetpack/v4/products`,a).then(p).then(f),fetchRewindStatus:()=>u(`${n}jetpack/v4/rewind`,a).then(p).then(f).then((t=>JSON.parse(t.data))),fetchScanStatus:()=>u(`${n}jetpack/v4/scan`,a).then(p).then(f).then((t=>JSON.parse(t.data))),dismissJetpackNotice:t=>d(`${n}jetpack/v4/notice/${t}`,c,{body:JSON.stringify({dismissed:!0})}).then(p).then(f),fetchPluginsData:()=>u(`${n}jetpack/v4/plugins`,a).then(p).then(f),fetchVerifySiteGoogleStatus:t=>u(null!==t?`${n}jetpack/v4/verify-site/google/${t}`:`${n}jetpack/v4/verify-site/google`,a).then(p).then(f),verifySiteGoogle:t=>d(`${n}jetpack/v4/verify-site/google`,c,{body:JSON.stringify({keyring_id:t})}).then(p).then(f),sendMobileLoginEmail:()=>d(`${n}jetpack/v4/mobile/send-login-email`,c).then(p).then(f),submitSurvey:t=>d(`${n}jetpack/v4/marketing/survey`,c,{body:JSON.stringify(t)}).then(p).then(f),saveSetupQuestionnaire:t=>d(`${n}jetpack/v4/setup/questionnaire`,c,{body:JSON.stringify(t)}).then(p).then(f),updateLicensingError:t=>d(`${n}jetpack/v4/licensing/error`,c,{body:JSON.stringify(t)}).then(p).then(f),updateLicenseKey:t=>d(`${n}jetpack/v4/licensing/set-license`,c,{body:JSON.stringify({license:t})}).then(p).then(f),getUserLicensesCounts:()=>u(`${n}jetpack/v4/licensing/user/counts`,a).then(p).then(f),getUserLicenses:()=>u(`${n}jetpack/v4/licensing/user/licenses`,a).then(p).then(f),updateLicensingActivationNoticeDismiss:t=>d(`${n}jetpack/v4/licensing/user/activation-notice-dismiss`,c,{body:JSON.stringify({last_detached_count:t})}).then(p).then(f),updateRecommendationsStep:t=>d(`${n}jetpack/v4/recommendations/step`,c,{body:JSON.stringify({step:t})}).then(p),confirmIDCSafeMode:()=>d(`${n}jetpack/v4/identity-crisis/confirm-safe-mode`,c).then(p),startIDCFresh:t=>d(`${n}jetpack/v4/identity-crisis/start-fresh`,c,{body:JSON.stringify({redirect_uri:t})}).then(p).then(f),migrateIDC:()=>d(`${n}jetpack/v4/identity-crisis/migrate`,c).then(p),attachLicenses:t=>d(`${n}jetpack/v4/licensing/attach-licenses`,c,{body:JSON.stringify({licenses:t})}).then(p).then(f),fetchSearchPlanInfo:()=>u(`${n}jetpack/v4/search/plan`,a).then(p).then(f),fetchSearchSettings:()=>u(`${n}jetpack/v4/search/settings`,a).then(p).then(f),updateSearchSettings:t=>d(`${n}jetpack/v4/search/settings`,c,{body:JSON.stringify(t)}).then(p).then(f),fetchSearchStats:()=>u(`${n}jetpack/v4/search/stats`,a).then(p).then(f)};function u(t,e){return fetch(l(t),e)}function d(t,e,n){return fetch(t,(0,i.assign)({},e,n)).catch(m)}function g(t){return t.general&&void 0===t.general.response||t.week&&void 0===t.week.response||t.month&&void 0===t.month.response?t:{}}(0,i.assign)(this,h)};function p(t){return t.status>=200&&t.status<300?t:404===t.status?new Promise((()=>{throw t.redirected?new h(t.redirected):new l})):t.json().catch((t=>g(t))).then((e=>{const n=new Error(`${e.message} (Status ${t.status})`);throw n.response=e,n.name="ApiError",n}))}function f(t){return t.json().catch((e=>g(e,t.redirected,t.url)))}function g(t,e,n){throw e?new c(n):new a}function m(){throw new u}e.ZP=d},8968:function(t,e,n){"use strict";var i=n(236),s=n.n(i),o=n(9196),r=n.n(o),a=n(9105),c=n.n(a),l=n(5736),h=n(3698),u=n.n(h);const __=l.__,d=t=>{const{title:e,height:n,className:i,...o}=t;return r().createElement("svg",s()({role:"img",x:"0",y:"0",viewBox:"0 0 935 38.2",enableBackground:"new 0 0 935 38.2","aria-labelledby":"jp-automattic-byline-logo-title",height:n,className:c()("jp-automattic-byline-logo",i)},o),r().createElement("title",{id:"jp-automattic-byline-logo-title"},e),r().createElement("path",{d:"M317.1 38.2c-12.6 0-20.7-9.1-20.7-18.5v-1.2c0-9.6 8.2-18.5 20.7-18.5 12.6 0 20.8 8.9 20.8 18.5v1.2C337.9 29.1 329.7 38.2 317.1 38.2zM331.2 18.6c0-6.9-5-13-14.1-13s-14 6.1-14 13v0.9c0 6.9 5 13.1 14 13.1s14.1-6.2 14.1-13.1V18.6zM175 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7L157 1.3h5.5L182 36.8H175zM159.7 8.2L152 23.1h15.7L159.7 8.2zM212.4 38.2c-12.7 0-18.7-6.9-18.7-16.2V1.3h6.6v20.9c0 6.6 4.3 10.5 12.5 10.5 8.4 0 11.9-3.9 11.9-10.5V1.3h6.7V22C231.4 30.8 225.8 38.2 212.4 38.2zM268.6 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H268.6zM397.3 36.8V8.7l-1.8 3.1 -14.9 25h-3.3l-14.7-25 -1.8-3.1v28.1h-6.5V1.3h9.2l14 24.4 1.7 3 1.7-3 13.9-24.4h9.1v35.5H397.3zM454.4 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7l19.2-35.5h5.5l19.5 35.5H454.4zM439.1 8.2l-7.7 14.9h15.7L439.1 8.2zM488.4 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H488.4zM537.3 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H537.3zM569.3 36.8V4.6c2.7 0 3.7-1.4 3.7-3.4h2.8v35.5L569.3 36.8 569.3 36.8zM628 11.3c-3.2-2.9-7.9-5.7-14.2-5.7 -9.5 0-14.8 6.5-14.8 13.3v0.7c0 6.7 5.4 13 15.3 13 5.9 0 10.8-2.8 13.9-5.7l4 4.2c-3.9 3.8-10.5 7.1-18.3 7.1 -13.4 0-21.6-8.7-21.6-18.3v-1.2c0-9.6 8.9-18.7 21.9-18.7 7.5 0 14.3 3.1 18 7.1L628 11.3zM321.5 12.4c1.2 0.8 1.5 2.4 0.8 3.6l-6.1 9.4c-0.8 1.2-2.4 1.6-3.6 0.8l0 0c-1.2-0.8-1.5-2.4-0.8-3.6l6.1-9.4C318.7 11.9 320.3 11.6 321.5 12.4L321.5 12.4z"}),r().createElement("path",{d:"M37.5 36.7l-4.7-8.9H11.7l-4.6 8.9H0L19.4 0.8H25l19.7 35.9H37.5zM22 7.8l-7.8 15.1h15.9L22 7.8zM82.8 36.7l-23.3-24 -2.3-2.5v26.6h-6.7v-36H57l22.6 24 2.3 2.6V0.8h6.7v35.9H82.8z"}),r().createElement("path",{d:"M719.9 37l-4.8-8.9H694l-4.6 8.9h-7.1l19.5-36h5.6l19.8 36H719.9zM704.4 8l-7.8 15.1h15.9L704.4 8zM733 37V1h6.8v36H733zM781 37c-1.8 0-2.6-2.5-2.9-5.8l-0.2-3.7c-0.2-3.6-1.7-5.1-8.4-5.1h-12.8V37H750V1h19.6c10.8 0 15.7 4.3 15.7 9.9 0 3.9-2 7.7-9 9 7 0.5 8.5 3.7 8.6 7.9l0.1 3c0.1 2.5 0.5 4.3 2.2 6.1V37H781zM778.5 11.8c0-2.6-2.1-5.1-7.9-5.1h-13.8v10.8h14.4c5 0 7.3-2.4 7.3-5.2V11.8zM794.8 37V1h6.8v30.4h28.2V37H794.8zM836.7 37V1h6.8v36H836.7zM886.2 37l-23.4-24.1 -2.3-2.5V37h-6.8V1h6.5l22.7 24.1 2.3 2.6V1h6.8v36H886.2zM902.3 37V1H935v5.6h-26v9.2h20v5.5h-20v10.1h26V37H902.3z"}))};d.defaultProps={title:__("An Automattic Airline","jetpack-search-pkg"),height:7,className:""},d.propTypes={title:u().string,height:u().number,className:u().string},e.Z=d},4328:function(t,e,n){"use strict";var i=n(236),s=n.n(i),o=n(9196),r=n.n(o),a=n(5736),c=n(9105),l=n.n(c),h=n(3698),u=n.n(h),d=n(8968),p=(n(1802),n(5482));const __=a.__,f=t=>{const{a8cLogoHref:e,moduleName:n,className:i,moduleNameHref:o,...a}=t;return r().createElement("div",s()({className:l()("jp-dashboard-footer",i)},a),r().createElement("div",{className:"jp-dashboard-footer__footer-left"},r().createElement(p.Z,{logoColor:"#000",showText:!1,height:16,className:"jp-dashboard-footer__jetpack-symbol","aria-label":__("Jetpack logo","jetpack-search-pkg")}),r().createElement("span",{className:"jp-dashboard-footer__module-name"},o?r().createElement("a",{href:o,"aria-label":n},n):n)),r().createElement("div",{className:"jp-dashboard-footer__footer-right"},r().createElement("a",{href:e,"aria-label":__("An Automattic Airline","jetpack-search-pkg")},r().createElement(d.Z,null))))};f.defaultProps={a8cLogoHref:"https://automattic.com",moduleName:__("Jetpack","jetpack-search-pkg"),className:"",moduleNameHref:"https://jetpack.com"},f.propTypes={a8cLogoHref:u().string,moduleName:u().string,className:u().string,moduleNameHref:u().string},e.Z=f},5482:function(t,e,n){"use strict";var i=n(236),s=n.n(i),o=n(4502),r=n.n(o),a=n(3698),c=n.n(a),l=n(9196),h=n.n(l),u=n(9105),d=n.n(u),p=n(5736);const __=p.__;class f extends h().Component{render(){const{logoColor:t,showText:e,className:n,...i}=this.props,o=e?"0 0 118 32":"0 0 32 32";return h().createElement("svg",s()({xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:o,className:d()("jetpack-logo",n),"aria-labelledby":"jetpack-logo-title"},i),h().createElement("title",{id:"jetpack-logo-title"},__("Jetpack Logo","jetpack-search-pkg")),h().createElement("path",{fill:t,d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z M15,19H7l8-16V19z M17,29V13h8L17,29z"}),e&&h().createElement(l.Fragment,null,h().createElement("path",{d:"M41.3,26.6c-0.5-0.7-0.9-1.4-1.3-2.1c2.3-1.4,3-2.5,3-4.6V8h-3V6h6v13.4C46,22.8,45,24.8,41.3,26.6z"}),h().createElement("path",{d:"M65,18.4c0,1.1,0.8,1.3,1.4,1.3c0.5,0,2-0.2,2.6-0.4v2.1c-0.9,0.3-2.5,0.5-3.7,0.5c-1.5,0-3.2-0.5-3.2-3.1V12H60v-2h2.1V7.1 H65V10h4v2h-4V18.4z"}),h().createElement("path",{d:"M71,10h3v1.3c1.1-0.8,1.9-1.3,3.3-1.3c2.5,0,4.5,1.8,4.5,5.6s-2.2,6.3-5.8,6.3c-0.9,0-1.3-0.1-2-0.3V28h-3V10z M76.5,12.3 c-0.8,0-1.6,0.4-2.5,1.2v5.9c0.6,0.1,0.9,0.2,1.8,0.2c2,0,3.2-1.3,3.2-3.9C79,13.4,78.1,12.3,76.5,12.3z"}),h().createElement("path",{d:"M93,22h-3v-1.5c-0.9,0.7-1.9,1.5-3.5,1.5c-1.5,0-3.1-1.1-3.1-3.2c0-2.9,2.5-3.4,4.2-3.7l2.4-0.3v-0.3c0-1.5-0.5-2.3-2-2.3 c-0.7,0-2.3,0.5-3.7,1.1L84,11c1.2-0.4,3-1,4.4-1c2.7,0,4.6,1.4,4.6,4.7L93,22z M90,16.4l-2.2,0.4c-0.7,0.1-1.4,0.5-1.4,1.6 c0,0.9,0.5,1.4,1.3,1.4s1.5-0.5,2.3-1V16.4z"}),h().createElement("path",{d:"M104.5,21.3c-1.1,0.4-2.2,0.6-3.5,0.6c-4.2,0-5.9-2.4-5.9-5.9c0-3.7,2.3-6,6.1-6c1.4,0,2.3,0.2,3.2,0.5V13 c-0.8-0.3-2-0.6-3.2-0.6c-1.7,0-3.2,0.9-3.2,3.6c0,2.9,1.5,3.8,3.3,3.8c0.9,0,1.9-0.2,3.2-0.7V21.3z"}),h().createElement("path",{d:"M110,15.2c0.2-0.3,0.2-0.8,3.8-5.2h3.7l-4.6,5.7l5,6.3h-3.7l-4.2-5.8V22h-3V6h3V15.2z"}),h().createElement("path",{d:"M58.5,21.3c-1.5,0.5-2.7,0.6-4.2,0.6c-3.6,0-5.8-1.8-5.8-6c0-3.1,1.9-5.9,5.5-5.9s4.9,2.5,4.9,4.9c0,0.8,0,1.5-0.1,2h-7.3 c0.1,2.5,1.5,2.8,3.6,2.8c1.1,0,2.2-0.3,3.4-0.7C58.5,19,58.5,21.3,58.5,21.3z M56,15c0-1.4-0.5-2.9-2-2.9c-1.4,0-2.3,1.3-2.4,2.9 C51.6,15,56,15,56,15z"})))}}r()(f,"propTypes",{className:c().string,width:c().number,height:c().number,showText:c().bool,logoColor:c().string}),r()(f,"defaultProps",{className:"",height:32,showText:!0,logoColor:"#069e08"}),e.Z=f},7786:function(t,e,n){"use strict";var i=n(9196),s=n.n(i),o=n(3698),r=n.n(o);n(873);const a=t=>{const e=t.className+" jp-components-spinner",n={width:t.size,height:t.size,fontSize:t.size,borderTopColor:t.color},i={borderTopColor:t.color,borderRightColor:t.color};return s().createElement("div",{className:e},s().createElement("div",{className:"jp-components-spinner__outer",style:n},s().createElement("div",{className:"jp-components-spinner__inner",style:i})))};a.propTypes={color:r().string,className:r().string,size:r().number},a.defaultProps={color:"#FFFFFF",className:"",size:20},e.Z=a},4481:function(t,e,n){"use strict";function i(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={};let i;var s;"undefined"!=typeof window&&(i=null===(s=window.Initial_State)||void 0===s?void 0:s.calypsoEnv);if(0===t.search("https://")){const e=new URL(t);t=`https://${e.host}${e.pathname}`,n.url=encodeURIComponent(t)}else n.source=encodeURIComponent(t);Object.keys(e).map((t=>{n[t]=encodeURIComponent(e[t])})),!Object.keys(n).includes("site")&&"undefined"!=typeof jetpack_redirects&&jetpack_redirects.hasOwnProperty("currentSiteRawUrl")&&(n.site=jetpack_redirects.currentSiteRawUrl),i&&(n.calypso_env=i);const o=Object.keys(n).map((t=>t+"="+n[t])).join("&");return"https://jetpack.com/redirect/?"+o}n.d(e,{Z:function(){return i}})},4680:function(t,e,n){let i={};try{i=n(6317)}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),i={missingConfig:!0}}const s=t=>i.hasOwnProperty(t);t.exports={jetpackConfigHas:s,jetpackConfigGet:t=>{if(!s(t))throw'This app requires the "'+t+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';return i[t]}}},1354:function(t,e,n){"use strict";n.d(e,{Z:function(){return p}});var i=n(4502),s=n.n(i),o=n(1268),r=n.n(o),a=n(9196),c=n.n(a),l=n(9105),h=n.n(l),u=n(515),d=n.n(u);class p extends c().Component{render(){const t=this.props.href?"a":"button",{primary:e,compact:n,scary:i,borderless:s,className:o,...r}=this.props,a=h()({"dops-button":!0,"is-compact":n,"is-primary":e,"is-scary":i,"is-borderless":s});return r.className=h()(o,a),c().createElement(t,r,this.props.children)}}s()(p,"displayName","Button"),s()(p,"propTypes",{disabled:r().bool,compact:r().bool,primary:r().bool,scary:r().bool,type:r().string,href:r().string,onClick:r().func,borderless:r().bool,className:r().string}),s()(p,"defaultProps",{disabled:!1,type:"button",onClick:d(),borderless:!1})},7214:function(t,e,n){"use strict";var i=n(4502),s=n.n(i),o=n(1268),r=n.n(o),a=n(9196),c=n.n(a),l=n(9105),h=n.n(l),u=n(156),d=n.n(u),p=n(2703),f=n.n(p),g=n(9712);class m extends c().Component{constructor(){super(...arguments),s()(this,"_renderWithTitle",(()=>{const t="dops-card-section-orient-"+(this.props.vertical?"vertical":"horizontal");return c().createElement("div",{className:t},c().createElement("h4",{ref:"label",className:"dops-card-section-label"},this.props.title),c().createElement("div",{ref:"content",className:"dops-card-section-content"},this.props.children))}))}render(){return c().createElement("div",{className:h()("dops-card-section",this.props.className),style:this.props.style},this.props.title?this._renderWithTitle():this.props.children)}}s()(m,"propTypes",{title:r().any,vertical:r().any,style:r().object,className:r().string,device:r().oneOf(["desktop","tablet","phone"])}),s()(m,"defaultProps",{vertical:null});class b extends c().Component{render(){return c().createElement("div",{className:"dops-card-footer"},this.props.children)}}class x extends c().Component{constructor(){super(...arguments),s()(this,"_renderIcon",(()=>c().createElement("span",{className:"dops-card-icon",style:{color:this.props.iconColor}},this.props.icon&&c().createElement(g.Z,{icon:this.props.icon,style:{backgroundColor:this.props.iconColor}}),this.props.iconLabel)))}render(){const t=h()("dops-card",this.props.className,{"is-card-link":!!this.props.href,"is-compact":this.props.compact}),e=["compact","tagName","meta","iconColor"];let n,i;return this.props.href?n=c().createElement(g.Z,{className:"dops-card__link-indicator",icon:this.props.target?"external":"chevron-right"}):e.push("href","target"),this.props.title&&(i=c().createElement("h2",{className:"dops-card-title"},this.props.title,this.props.meta&&c().createElement("span",{className:"dops-card-meta"},this.props.meta),(this.props.icon||this.props.iconLabel)&&this._renderIcon())),c().createElement(this.props.href?"a":this.props.tagName,d()(f()(this.props,e),{className:t}),n,i,this.props.children)}}s()(x,"propTypes",{meta:r().any,icon:r().string,iconLabel:r().any,iconColor:r().string,style:r().object,className:r().string,href:r().string,onClick:r().func,title:r().string,tagName:r().string,target:r().string,compact:r().bool,children:r().node}),s()(x,"defaultProps",{iconColor:"#787878",className:"",tagName:"div",onClick:()=>{}}),x.Section=m,x.Footer=b,e.Z=x},6025:function(t,e,n){"use strict";n.d(e,{Z:function(){return b}});var i=n(9196),s=n.n(i),o=n(9818),r=n(5736),a=n(5325),c=n(488),l=n(5482),h=n(4328),u=n(7786),d=n(2055),p=n(4839),f=n(9359),g=n(7018),m=n(9010);const __=r.__;function b(){(0,o.useSelect)((t=>t(f.t).getSearchPlanInfo()),[]),(0,o.useSelect)((t=>t(f.t).getSearchModuleStatus()),[]),(0,o.useSelect)((t=>t(f.t).getSearchStats()),[]);const t=(0,o.useSelect)((t=>t(f.t).getSiteAdminUrl())),e=t+"admin.php?page=jetpack_about",n=(0,o.useDispatch)(f.t).updateJetpackSettings,r=(0,o.useSelect)((t=>t(f.t).isInstantSearchPromotionActive())),b=(0,o.useSelect)((t=>t(f.t).getCalypsoSlug())),x=(0,o.useSelect)((t=>t(f.t).getUpgradeBillPeriod())),v=(0,o.useSelect)((t=>t(f.t).supportsOnlyClassicSearch)),y=(0,o.useSelect)((t=>t(f.t).supportsSearch())),_=(0,o.useSelect)((t=>t(f.t).supportsInstantSearch())),k=(0,o.useSelect)((t=>t(f.t).isModuleEnabled())),w=(0,o.useSelect)((t=>t(f.t).isInstantSearchEnabled())),S=(0,o.useSelect)((t=>t(f.t).isUpdatingJetpackSettings())),M=(0,o.useSelect)((t=>t(f.t).isTogglingModule())),C=(0,o.useSelect)((t=>t(f.t).isTogglingInstantSearch())),E=(0,o.useSelect)((t=>t(f.t).getTierMaximumRecords())),P=(0,o.useSelect)((t=>t(f.t).getPostCount())),O=(0,o.useSelect)((t=>t(f.t).getPostTypeBreakdown())),j=(0,o.useSelect)((t=>t(f.t).isResolving("getSearchPlanInfo")||!t(f.t).hasStartedResolution("getSearchPlanInfo")||t(f.t).isResolving("getSearchModuleStatus")||!t(f.t).hasStartedResolution("getSearchModuleStatus")||t(f.t).isResolving("getSearchStats")||!t(f.t).hasStartedResolution("getSearchStats"))),D=(0,o.useDispatch)(f.t).removeNotice,A=(0,o.useSelect)((t=>t(f.t).getNotices()),[]);(0,i.useMemo)((()=>{const t=(0,o.select)(f.t).getAPIRootUrl(),e=(0,o.select)(f.t).getAPINonce();t&&c.ZP.setApiRoot(t),e&&c.ZP.setApiNonce(e),(()=>{const t=(0,o.select)(f.t).getWpcomUser(),e=(0,o.select)(f.t).getBlogId();t&&a.Z.initialize(t.ID,t.login,{blog_id:e})})(),a.Z.tracks.recordEvent("jetpack_search_admin_page_view",{current_version:(0,o.select)(f.t).getVersion()})}),[]);const T=(0,o.useSelect)((t=>t(f.t).isFeatureEnabled("record-meter")));return s().createElement("div",{className:"jp-search-dashboard-page"},j&&s().createElement(u.Z,{className:"jp-search-dashboard-page-loading-spinner",color:"#000",size:32}),!j&&s().createElement(i.Fragment,null,s().createElement("div",{className:"jp-search-dashboard-header jp-search-dashboard-wrap"},s().createElement("div",{className:"jp-search-dashboard-row"},s().createElement("div",{className:"lg-col-span-12 md-col-span-8 sm-col-span-4"},s().createElement("div",{className:"jp-search-dashboard-header__logo-container"},s().createElement(l.Z,{className:"jp-search-dashboard-header__masthead"}))))),s().createElement("div",{className:"jp-search-dashboard-top jp-search-dashboard-wrap"},s().createElement("div",{className:"jp-search-dashboard-row"},s().createElement("div",{className:"jp-search-dashboard-top__title lg-col-span-6 md-col-span-7 sm-col-span-4"},s().createElement("h1",null,__("Help your visitors find exactly what they're looking for, fast","jetpack-search-pkg"))),s().createElement("div",{className:" lg-col-span-6 md-col-span-1 sm-col-span-0"})),s().createElement("div",{className:"jp-search-dashboard-row","aria-hidden":"true"},s().createElement("div",{className:"lg-col-span-1 md-col-span-1 sm-col-span-0"}),s().createElement("div",{className:"jp-search-dashboard-top__mocked-search-interface lg-col-span-10 md-col-span-6 sm-col-span-4"},s().createElement(p.Z,{supportsInstantSearch:_,supportsOnlyClassicSearch:v})),s().createElement("div",{className:"lg-col-span-1 md-col-span-1 sm-col-span-0"}))),T&&s().createElement(m.Z,{postCount:P,postTypeBreakdown:O,tierMaximumRecords:E}),s().createElement("div",{className:"jp-search-dashboard-bottom"},s().createElement(d.Z,{siteAdminUrl:t,updateOptions:n,domain:b,isInstantSearchPromotionActive:r,upgradeBillPeriod:x,supportsOnlyClassicSearch:v,supportsSearch:y,supportsInstantSearch:_,isModuleEnabled:k,isInstantSearchEnabled:w,isSavingEitherOption:S,isTogglingModule:M,isTogglingInstantSearch:C})),s().createElement("div",{className:"jp-search-dashboard-footer jp-search-dashboard-wrap"},s().createElement("div",{className:"jp-search-dashboard-row"},s().createElement(h.Z,{a8cLogoHref:e,moduleName:__("Jetpack Search","jetpack-search-pkg"),className:"lg-col-span-12 md-col-span-8 sm-col-span-4"})))),s().createElement(g.Z,{notices:A,handleLocalNoticeDismissClick:D}))}},1943:function(t,e,n){"use strict";n.d(e,{Z:function(){return f}});var i=n(236),s=n.n(i),o=n(4502),r=n.n(o),a=n(9196),c=n.n(a),l=n(9105),h=n.n(l),u=n(2703),d=n.n(u),p=n(8616);class f extends c().Component{render(){return c().createElement(p.Z,s()({},d()(this.props,"className"),{className:h()(this.props.className,"is-compact")}),this.props.children)}}r()(f,"displayName","CompactFormToggle")},8616:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var i=n(4502),s=n.n(i),o=n(1268),r=n.n(o),a=n(9196),c=n.n(a),l=n(9105),h=n.n(l);class u extends a.Component{constructor(){super(...arguments),s()(this,"state",{}),this.onKeyDown=this.onKeyDown.bind(this),this.onClick=this.onClick.bind(this),this.onLabelClick=this.onLabelClick.bind(this)}UNSAFE_componentWillMount(){this.id=this.constructor.idNum++}onKeyDown(t){this.props.disabled||("Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.props.onChange()),this.props.onKeyDown(t))}onClick(){this.props.disabled||this.props.onChange()}onLabelClick(t){if(this.props.disabled)return;const e=t.target.nodeName.toLowerCase();"a"!==e&&"input"!==e&&"select"!==e&&(t.preventDefault(),this.props.onChange())}render(){const t=this.props.id||"toggle-"+this.id,e=h()("form-toggle",this.props.className,{"is-toggling":this.props.toggling});return c().createElement(a.Fragment,null,c().createElement("div",{className:h()("form-toggle__switch-container",this.props.switchClassNames)},c().createElement("input",{className:e,type:"checkbox",checked:this.props.checked,readOnly:!0,disabled:this.props.disabled}),c().createElement("span",{className:h()("form-toggle__switch",this.props.switchClassNames),disabled:this.props.disabled,id:t,onClick:this.onClick,onKeyDown:this.onKeyDown,role:"checkbox","aria-checked":this.props.checked,"aria-label":this.props["aria-label"],tabIndex:this.props.disabled?-1:0,ref:"toggleSwitch"})),c().createElement("label",{className:h()("form-toggle__label",this.props.labelClassNames),htmlFor:t},c().createElement("span",{className:h()("form-toggle__label-content",this.props.labelClassNames),onClick:this.onLabelClick},this.props.children)))}}s()(u,"propTypes",{onChange:r().func,onKeyDown:r().func,checked:r().bool,disabled:r().bool,id:r().string,className:r().string,toggling:r().bool,"aria-label":r().string,children:r().node,disabledReason:r().node,switchClassNames:r().string,labelClassNames:r().string}),s()(u,"defaultProps",{checked:!1,disabled:!1,onKeyDown:()=>{},onChange:()=>{},disabledReason:""}),s()(u,"idNum",0)},7018:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var i=n(9196),s=n.n(i),o=n(5561),r=n(2332);function a(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{handleLocalNoticeDismissClick:null,notices:Object.freeze([])};const e=t.notices.map((function(e){const n=e=>()=>{e&&t.handleLocalNoticeDismissClick(e.id)};return s().createElement(o.Z,{key:"notice-"+e.id,status:e.status,duration:e.duration||null,text:e.text,isCompact:e.isCompact,onDismissClick:n(e),showDismiss:e.showDismiss},e.button&&s().createElement(r.Z,{href:e.href,onClick:n(e)},e.button))}));return e.length?s().createElement("div",{id:t.id,className:"global-notices"},e):null}},8163:function(t,e,n){"use strict";n.d(e,{b3:function(){return r},mF:function(){return a},RT:function(){return h},tF:function(){return u},Iz:function(){return p},MQ:function(){return f}});var i=n(660),s=n.n(i),o=n(5736);const __=o.__,r="CREATE_NOTICE",a="REMOVE_NOTICE";function c(t,e){var n;let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o={id:i.id||s()(),duration:null!==(n=i.duration)&&void 0!==n?n:2e3,showDismiss:"boolean"!=typeof i.showDismiss||i.showDismiss,isPersistent:i.isPersistent||!1,displayOnNextPage:i.displayOnNextPage||!1,status:t,text:e};return{type:r,notice:o}}function l(t){return{type:a,notice:{id:t}}}const h=c.bind(null,"is-success"),u=c.bind(null,"is-error"),d=(c.bind(null,"is-info"),c.bind(null,"is-warning")),p=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:__("Updating settings…","jetpack-search-pkg");return c("is-info",t,{duration:3e4,id:"search-updating-settings"})},f=()=>l("search-updating-settings");e.ZP={createNotice:c,removeNotice:l,successNotice:h,errorNotice:u,warningNotice:d,updatingNotice:p,removeUpdatingNotice:f}},9689:function(t,e,n){"use strict";var i=n(8163);e.Z=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{notices:[]},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case i.b3:return{...t,notices:[...t.notices,e.notice]};case i.mF:return{...t,notices:t.notices.filter((t=>t.id!==e.notice.id))}}return t}},3584:function(t,e){"use strict";e.Z={getNotices:t=>{var e;return null!==(e=t.notices.notices)&&void 0!==e?e:[]}}},4839:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var i=n(9196),s=n.n(i),o=n(4627),r=n(625);function a(t){let{supportsInstantSearch:e=!0,supportsOnlyClassicSearch:n=!1}=t;const a=n&&!e;return s().createElement(i.Fragment,null,a&&s().createElement(r.Z,null),!a&&s().createElement(o.Z,null))}},4627:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var i=n(9196),s=n.n(i),o=n(5736),r=n(9712),a=n(6435);const __=o.__;function c(){return s().createElement("div",{className:"jp-mocked-instant-search","aria-hidden":"true"},s().createElement("div",{className:"jp-mocked-instant-search__search-controls"},s().createElement("div",{className:"jp-mocked-instant-search__search-icon"},s().createElement(r.Z,{icon:"search",size:24})),s().createElement("div",{className:"jp-mocked-instant-search__search-mock-input"},s().createElement(a.Z,{style:{height:"50px",width:"80%",maxWidth:"212px"}})),s().createElement("div",{className:"jp-mocked-instant-search__close-button"},s().createElement(r.Z,{icon:"cross",size:24}))),s().createElement("div",{className:"jp-mocked-instant-search__search-results"},s().createElement("div",{className:"jp-mocked-instant-search__search-results-primary"},s().createElement("div",{className:"jp-mocked-instant-search__search-results-header"},s().createElement("div",{className:"jp-mocked-instant-search__result-statistics"},
3
  /* translators: %s is replaced with the number of search results */
4
+ (0,o.sprintf)(__("Found %s results","jetpack-search-pkg"),"27")),s().createElement("div",{className:"jp-mocked-instant-search__result-sort-list"},s().createElement("span",{className:"jp-mocked-instant-search__result-sort-selected"},__("Relevance","jetpack-search-pkg")),s().createElement("span",null,"·"),s().createElement("span",null,__("Newest","jetpack-search-pkg")),s().createElement("span",null,"·"),s().createElement("span",null,__("Oldest","jetpack-search-pkg")))),s().createElement("div",{className:"jp-mocked-instant-search__search-results-content"},Array.apply(null,Array(3)).map(((t,e)=>s().createElement("div",{className:"jp-mocked-instant-search__search-result",key:e},s().createElement(a.Z,{style:{height:"2.5em",width:"50%",maxWidth:"200px",margin:"0.1em 0.1em 1em 0.1em"}}),s().createElement(a.Z,{style:{height:"1em",width:"90%",margin:"0.1em"}}),s().createElement(a.Z,{style:{height:"1em",width:"70%",margin:"0.1em"}})))))),s().createElement("div",{className:"jp-mocked-instant-search__search-results-secondary"},s().createElement("div",{className:"jp-mocked-instant-search__search-filter-header"},__("Filter options","jetpack-search-pkg")),s().createElement("div",{className:"jp-mocked-instant-search__search-filter-list"},Array.apply(null,Array(2)).map(((t,e)=>s().createElement("div",{className:"jp-mocked-instant-search__search-filter",key:e},s().createElement("label",null,s().createElement("input",{type:"checkbox",disabled:"disabled"})," ",s().createElement(a.Z,{style:{width:"30%"}})))))))))}},625:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var i=n(9196),s=n.n(i),o=n(9712),r=n(6435);function a(){return s().createElement("div",{className:"jp-mocked-legacy-search","aria-hidden":"true"},s().createElement("div",{className:"jp-mocked-legacy-search__search-controls"},s().createElement("div",{className:"jp-mocked-legacy-search__search-icon"},s().createElement(o.Z,{icon:"search",size:24})),s().createElement("div",{className:"jp-mocked-legacy-search__search-input"},s().createElement(r.Z,{style:{height:"50px",width:"80%",maxWidth:"212px"}}))))}},6435:function(t,e,n){"use strict";var i=n(9196),s=n.n(i);e.Z=t=>s().createElement("div",{className:"jp-search-dashboard__text-row-placeholder",style:{display:"inline-block",borderRadius:"10px",maxHeight:"1.5em",width:"100%",height:"1em",backgroundColor:"#E9EFF3",...t.style}})},2055:function(t,e,n){"use strict";n.d(e,{Z:function(){return b}});var i=n(9196),s=n.n(i),o=n(9105),r=n.n(o),a=n(5736),c=n(9307),l=n(5325),h=n(4481),u=n(1354),d=n(7214),p=n(1943),f=n(7819);const __=a.__,g=__("Jetpack Search is an incredibly powerful and customizable replacement for the search capability built into WordPress that helps your visitors find the right content.","jetpack-search-pkg"),m=__("Instant search will allow your visitors to get search results as soon as they start typing. If deactivated, Jetpack Search will still optimize your search results but visitors will have to submit a search query before seeing any results.","jetpack-search-pkg");function b(t){let{siteAdminUrl:e,updateOptions:n,domain:o,isSavingEitherOption:b,isModuleEnabled:x,isInstantSearchEnabled:v,isInstantSearchPromotionActive:y,upgradeBillPeriod:_,supportsOnlyClassicSearch:k,supportsSearch:w,supportsInstantSearch:S,isTogglingModule:M,isTogglingInstantSearch:C}=t;const E=b||!x||!v||!S,P=b||!x,O=encodeURIComponent(e+"admin.php?page=jetpack-search"),j=(0,h.Z)("monthly"===_?"jetpack-search-monthly":"jetpack-search",{site:o}),D=(0,i.useCallback)((()=>{const t={module_active:!x};v!==!x&&(t.instant_search_enabled=!x&&S),n(t),l.Z.tracks.recordEvent("jetpack_search_module_toggle",t)}),[S,x,n,v]),A=(0,i.useCallback)((()=>{const t={instant_search_enabled:S&&!v};t.instant_search_enabled&&(t.module_active=!0),n(t),l.Z.tracks.recordEvent("jetpack_search_instant_toggle",t)}),[S,v,n]);return s().createElement("div",{className:"jp-form-settings-group jp-form-search-settings-group"},s().createElement(d.Z,{className:r()({"jp-form-has-child":!0,"jp-form-settings-disable":!1})},s().createElement("div",{className:"jp-form-search-settings-group-inside"},s().createElement("div",{className:"jp-form-search-settings-group__toggle is-search jp-search-dashboard-wrap"},s().createElement("div",{className:"jp-search-dashboard-row"},s().createElement("div",{className:"lg-col-span-2 md-col-span-1 sm-col-span-0"}),s().createElement(p.Z,{checked:x&&w,disabled:b||!w,onChange:D,toggling:M,className:"is-search-admin",switchClassNames:"lg-col-span-1 md-col-span-1 sm-col-span-1",labelClassNames:" lg-col-span-7 md-col-span-5 sm-col-span-3","aria-label":__("Enable Jetpack Search","jetpack-search-pkg")},__("Enable Jetpack Search","jetpack-search-pkg")),s().createElement("div",{className:"lg-col-span-2 md-col-span-1 sm-col-span-0"})),s().createElement("div",{className:"jp-search-dashboard-row"},s().createElement("div",{className:"lg-col-span-3 md-col-span-2 sm-col-span-1"}),s().createElement("div",{className:"jp-form-search-settings-group__toggle-description lg-col-span-7 md-col-span-5 sm-col-span-3"},s().createElement("p",{className:"jp-form-search-settings-group__toggle-explanation"},g)),s().createElement("div",{className:"lg-col-span-2 md-col-span-1 sm-col-span-0"}))),s().createElement("div",{className:"jp-form-search-settings-group__toggle is-instant-search jp-search-dashboard-wrap"},s().createElement("div",{className:"jp-search-dashboard-row"},s().createElement("div",{className:"lg-col-span-2 md-col-span-1 sm-col-span-0"}),s().createElement(p.Z,{checked:x&&v&&S,disabled:b||!S,onChange:A,toggling:C,className:"is-search-admin",switchClassNames:"lg-col-span-1 md-col-span-1 sm-col-span-1",labelClassNames:" lg-col-span-7 md-col-span-5 sm-col-span-3","aria-label":__("Enable instant search experience (recommended)","jetpack-search-pkg")},(0,c.createInterpolateElement)(__("Enable instant search experience <span>(recommended)</span>","jetpack-search-pkg"),{span:s().createElement("span",null)}))),s().createElement("div",{className:"jp-search-dashboard-row"},s().createElement("div",{className:"lg-col-span-3 md-col-span-2 sm-col-span-1"}),s().createElement("div",{className:"jp-form-search-settings-group__toggle-description lg-col-span-7 md-col-span-5 sm-col-span-3"},S&&s().createElement(i.Fragment,null,s().createElement("p",{className:"jp-form-search-settings-group__toggle-explanation"},m)),!S&&y&&s().createElement(f.Z,{href:j,upgrade:k})),s().createElement("div",{className:"lg-col-span-2 md-col-span-1 sm-col-span-0"})),S&&s().createElement("div",{className:"jp-form-search-settings-group-buttons jp-search-dashboard-row"},s().createElement("div",{className:"lg-col-span-3 md-col-span-2 sm-col-span-1"}),s().createElement(u.Z,{className:"jp-form-search-settings-group-buttons__button is-customize-search lg-col-span-4 md-col-span-5 sm-col-span-3",href:E?void 0:(0,a.sprintf)("admin.php?page=jetpack-search-configure",O),disabled:E},s().createElement("span",null,__("Customize search results","jetpack-search-pkg"))),s().createElement("div",{className:"lg-col-span-0 md-col-span-1 sm-col-span-0"}),s().createElement("div",{className:"lg-col-span-0 md-col-span-2 sm-col-span-1"}),s().createElement(u.Z,{className:"jp-form-search-settings-group-buttons__button is-widgets-editor lg-col-span-3 md-col-span-5 sm-col-span-3",href:P?void 0:(0,a.sprintf)("widgets.php",O),disabled:P},s().createElement("span",null,__("Edit sidebar widgets","jetpack-search-pkg"))),s().createElement("div",{className:"lg-col-span-2 md-col-span-1 sm-col-span-0"}))))))}},5561:function(t,e,n){"use strict";n.d(e,{Z:function(){return f}});var i=n(4502),s=n.n(i),o=n(1268),r=n.n(o),a=n(9196),c=n.n(a),l=n(9105),h=n.n(l),u=n(515),d=n.n(u),p=n(9712);class f extends c().Component{constructor(){super(...arguments),s()(this,"dismissTimeout",null),s()(this,"getIcon",(()=>{let t;switch(this.props.status){case"is-info":default:t="info";break;case"is-success":t="checkmark";break;case"is-error":case"is-warning":t="notice"}return t})),s()(this,"clearText",(t=>"string"==typeof t?t.replace(/(<([^>]+)>)/gi,""):t)),s()(this,"onKeyDownCallback",(t=>e=>{13!==e.which&&32!==e.which||t&&t(e)}))}componentDidMount(){this.props.duration>0&&(this.dismissTimeout=setTimeout(this.props.onDismissClick,this.props.duration))}componentWillUnmount(){this.dismissTimeout&&clearTimeout(this.dismissTimeout)}render(){const{children:t,className:e,icon:n,isCompact:i,onDismissClick:s,showDismiss:o=!i,status:r,text:a,dismissText:l}=this.props,u=h()("dops-notice",r,e,{"is-compact":i,"is-dismissable":o});return c().createElement("div",{className:u},c().createElement("span",{className:"dops-notice__icon-wrapper"},c().createElement(p.Z,{className:"dops-notice__icon",icon:n||this.getIcon(),size:24})),c().createElement("span",{className:"dops-notice__content"},c().createElement("span",{className:"dops-notice__text"},a?this.clearText(a):t)),a?t:null,o&&c().createElement("span",{role:"button",onKeyDown:this.onKeyDownCallback(s),tabIndex:"0",className:"dops-notice__dismiss",onClick:s},c().createElement(p.Z,{icon:"cross",size:24}),c().createElement("span",{className:"dops-notice__screen-reader-text screen-reader-text"},l)))}}s()(f,"displayName","SimpleNotice"),s()(f,"defaultProps",{duration:0,status:null,showDismiss:!0,className:"",onDismissClick:d()}),s()(f,"propTypes",{status:r().string,showDismiss:r().bool,isCompact:r().bool,duration:r().number,text:r().oneOfType([r().oneOfType([r().string,r().node]),r().arrayOf(r().oneOfType([r().string,r().node]))]),icon:r().string,onDismissClick:r().func,className:r().string})},2332:function(t,e,n){"use strict";n.d(e,{Z:function(){return h}});var i=n(4502),s=n.n(i),o=n(1268),r=n.n(o),a=n(9196),c=n.n(a),l=n(9712);class h extends c().Component{render(){const t={className:"dops-notice__action",href:this.props.href,onClick:this.props.onClick};return this.props.external&&(t.target="_blank"),c().createElement("a",t,c().createElement("span",null,this.props.children),this.props.icon&&c().createElement(l.Z,{icon:this.props.icon,size:24}),this.props.external&&c().createElement(l.Z,{icon:"external",size:24}))}}s()(h,"displayName","NoticeAction"),s()(h,"propTypes",{href:r().string,onClick:r().func,external:r().bool,icon:r().string}),s()(h,"defaultProps",{external:!1})},7724:function(t,e,n){"use strict";n.d(e,{v:function(){return c}});var i=n(9196),s=n.n(i),o=n(9506),r=n(5736);const __=r.__,a={type:"bar",options:{borderRadius:100,borderSkipped:"middle",indexAxis:"y",maintainAspectRatio:!1,aspectRatio:1.3,scales:{x:{stacked:!0,grid:{display:!1,drawBorder:!1},ticks:{display:!1}},y:{stacked:!0,grid:{display:!1,drawBorder:!1},ticks:{display:!1}}},plugins:{title:{display:!1},subtitle:{display:!1},legend:{display:!1,labels:{filter:function(t){return!t.text.includes(__("Remaining","jetpack-search-pkg"))}}}}}};class c extends s().Component{constructor(t){super(t),this.canvasRef=s().createRef()}componentDidMount(){this.myChart=new o.Z(this.canvasRef.current,{...a,data:{labels:[""],datasets:this.props.data.map((t=>t.data))}}),this.forceUpdate()}getLegendItems(){var t,e;return null!==(t=null===(e=this.myChart)||void 0===e?void 0:e.legend.legendItems)&&void 0!==t?t:[]}render(){var t,e;return!1===this.props.isValid?null:s().createElement("div",{className:"jp-search-bar-chart"},s().createElement("div",{className:"jp-search-bar-chart__container"},s().createElement("canvas",{ref:this.canvasRef},s().createElement("p",null,__("Text alternative for this chart is in the data table below","jetpack-search-pkg")),s().createElement("table",{border:"0",cellPadding:"5",summary:"This is the text alternative for the canvas graphic."},s().createElement("caption",null,__("Records Indexed for Jetpack Search","jetpack-search-pkg")),s().createElement("tbody",null,s().createElement("tr",null,s().createElement("th",{scope:"col"},__("Post type","jetpack-search-pkg")),(null===(t=this.state)||void 0===t?void 0:t.legendItems.length)&&this.state.legendItems.map((t=>s().createElement("th",{key:t.text,scope:"col"},t.text)))),s().createElement("tr",null,s().createElement("th",{scope:"row"},__("Record count","jetpack-search-pkg")),(null===(e=this.state)||void 0===e?void 0:e.legendItems.length)&&this.state.legendItems.map((t=>s().createElement("td",{key:t.text},this.props.data[t.datasetIndex].data.data)))))))),s().createElement("div",{className:"jp-search-chart-legend__container"},s().createElement("ul",{className:"jp-search-chart-legend"},this.getLegendItems().map((t=>s().createElement("li",{key:t.text},s().createElement("div",{className:"jp-search-chart-legend__box",style:{backgroundColor:t.fillStyle}}),s().createElement("span",{className:"jp-search-chart-legend__label",children:t.text}),s().createElement("span",{className:"jp-search-chart-legend__count"},"(",this.props.data[t.datasetIndex].data.data,")")))))))}}},9010:function(t,e,n){"use strict";n.d(e,{Z:function(){return h}});var i=n(9196),s=n.n(i),o=n(5736),r=n(7724),a=n(7020),c=n(5935),l=n(5324);const __=o.__;function h(t){let{postCount:e,postTypeBreakdown:n,tierMaximumRecords:o}=t;const[h,u]=(0,i.useState)((0,c.ZP)((0,l.Z)().data,(0,l.Z)().planInfo));return s().createElement("div",{className:"jp-search-record-meter jp-search-dashboard-wrap","data-testid":"record-meter"},s().createElement("div",{className:"jp-search-dashboard-row"},s().createElement("div",{className:"lg-col-span-2 md-col-span-1 sm-col-span-0"}),s().createElement("div",{className:"jp-search-record-meter__title lg-col-span-8 md-col-span-6 sm-col-span-4"},s().createElement("h2",null,__("Your search records","jetpack-search-pkg")),o&&s().createElement("div",null,s().createElement(a.D,{recordCount:h.recordCount,planRecordLimit:o}),s().createElement(r.v,{data:h.data,isValid:h.isValid,postTypeBreakdown:n})),e&&s().createElement("p",null,"Post count: ",s().createElement("strong",null,e))),s().createElement("div",{className:"lg-col-span-2 md-col-span-1 sm-col-span-0"})))}},5324:function(t,e,n){"use strict";function i(){return{data:{last_indexed_date:"2021-07-06T19:35:18+00:00",post_count:249,post_type_breakdown:{post:104,page:17,attachment:15,anotherone:21,averyveryextrasuperlongernamesposttypethatgoesonandonandone:38,more:22,andmore:4,moremoremore:2,andthenmore:6,somany:20}},planInfo:{search_subscriptions:[{ID:"17189738",user_id:"6487293",blog_id:"186671816",product_id:"2105",expiry:"2022-07-09",subscribed_date:"2021-06-09 07:33:14",renew:!0,auto_renew:!0,ownership_id:"27808225",most_recent_renew_date:"",subscription_status:"active",product_name:"Jetpack Search",product_name_en:"Jetpack Search",product_slug:"jetpack_search_monthly",product_type:"search",cost:19,currency:"NZD",bill_period:"31",available:"yes",multi:!0,support_document:null,is_instant_search:!0,tier:2e3}],supports_instant_search:!0,supports_only_classic_search:!1,supports_search:!0,default_upgrade_bill_period:"monthly"}}}n.d(e,{Z:function(){return i}})},5935:function(t,e,n){"use strict";n.d(e,{ZP:function(){return s}});const i=n(7655);function s(t,e){const n=[],s=[];let a=0,c=!0,l=!0,h=!0;"object"==typeof t&&"object"==typeof t.post_type_breakdown&&"object"==typeof e||(c=!1),void 0!==t.last_indexed_date&&void 0!==t.post_count||(l=!1);const u=c&&l?Object.keys(t.post_type_breakdown).length:0;0===u&&(h=!1);const d=Object.values(e.search_subscriptions[0])[22],p=[i.colors["Blue 30"],i.colors["Orange 30"],i.colors["WooCommerce Purple 30"],i.colors["Green 30"],i.colors["Yellow 30"]];if(u>0&&c&&l){for(let e=0;e<u;e++){const n=Object.values(t.post_type_breakdown)[e],i=(f=Object.keys(t.post_type_breakdown)[e]).charAt(0).toUpperCase()+f.slice(1);s.push({data:r(n,p[e],i)}),a+=n}const e=function(t,e,n){t.sort(((t,e)=>t.data.data[0]<e.data.data[0]?1:-1));const i=n<=e?n:e;return{includedItems:t.slice(0,i),otherItems:t.slice(i,e)}}(s,u,5);for(const t in e.includedItems)n.push({data:r(e.includedItems[t].data.data[0],p[t],e.includedItems[t].data.label)});e.otherItems.length>0&&n.push({data:r(o(e.otherItems),i.colors["Gray 30"],"Other")}),d-a>0&&n.push({data:r(d-a,i.colors["Gray 0"],"Remaining")})}var f;return{data:n,tier:d,recordCount:a,hasBeenIndexed:l,hasValidData:c,hasItems:h,isValid:l&&c&&h}}function o(t){let e=0;for(const n in t)e=t[n].data.data[0]+e;return e}function r(t,e,n){return{data:[t],label:n,backgroundColor:e}}},7020:function(t,e,n){"use strict";n.d(e,{D:function(){return r}});var i=n(9196),s=n.n(i),o=n(5736);const __=o.__;function r(t){return t.recordCount&&t.planRecordLimit?s().createElement("div",{"data-testid":"record-count",className:"jp-search-record-count"},s().createElement("p",null,(0,o.sprintf)(// translators: %1$d: site's current record count, %2$d: record limit of the current plan
5
+ __("%1$d records indexed out of the %2$d allotted for your current plan","jetpack-search-pkg"),t.recordCount,t.planRecordLimit))):null}},7819:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var i=n(9196),s=n.n(i),o=n(5736);const __=o.__;function r(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{upgrade:!0};return s().createElement("a",{className:"jp-instant-search-upsell-nudge jp-search-dashboard-cut",href:t.href},s().createElement("span",null,__("Offer instant search results to your visitors as soon as they start typing. ","jetpack-search-pkg")),s().createElement("span",null,t.upgrade&&s().createElement("b",null,__("Upgrade to Jetpack Instant Search now","jetpack-search-pkg")),!t.upgrade&&s().createElement("b",null,__("Purchase Jetpack Instant Search now","jetpack-search-pkg"))))}},3801:function(t,e,n){"use strict";var i=n(5503),s=n(367),o=n(7430),r=n(8163);const a={...i.ZP,...s.ZP,...o.ZP,...r.ZP};e.Z=a},5503:function(t,e,n){"use strict";n.d(e,{dz:function(){return h},ff:function(){return u}});var i=n(9082),s=n.n(i),o=n(9818),r=n(5736),a=n(4455),c=n(8163),l=n(9359);const __=r.__,h="SET_JETPACK_SETTINGS";function u(t){return{type:h,options:t}}e.ZP={updateJetpackSettings:function*(t){try{yield(0,c.Iz)(),yield u({is_updating:!0}),yield u(t),yield(0,a.RF)(t);const e=yield(0,a.es)();return yield u(e),(0,c.RT)(__("Updated settings.","jetpack-search-pkg"))}catch(t){const e=s()((0,o.select)(l.t).getSearchModuleStatus(),["module_active","instant_search_enabled"]);return yield u(e),(0,c.tF)(__("Error Update settings…","jetpack-search-pkg"))}finally{yield(0,c.MQ)(),yield u({is_updating:!1})}},setJetpackSettings:u}},367:function(t,e,n){"use strict";n.d(e,{$w:function(){return i},og:function(){return s}});const i="SET_SEARCH_PLAN_INFO";function s(t){return{type:"SET_SEARCH_PLAN_INFO",options:t}}e.ZP={setSearchPlanInfo:s}},7430:function(t,e,n){"use strict";n.d(e,{Em:function(){return i},XV:function(){return s}});const i="SET_SEARCH_STATS";function s(t){return{type:"SET_SEARCH_STATS",options:t}}e.ZP={setSearchStats:s}},4455:function(t,e,n){"use strict";n.d(e,{es:function(){return c},RF:function(){return l},FZ:function(){return h},Yt:function(){return u}});var i=n(488);const s="FETCH_JETPACK_SETTINGS",o="UPDATE_JETPACK_SETTINGS",r="FETCH_SEARCH_PLAN_INFO",a="FETCH_SEARCH_STATS",c=()=>({type:s}),l=t=>({type:o,settings:t}),h=()=>({type:r}),u=()=>({type:a});e.ZP={[s]:function(){return i.ZP.fetchSearchSettings()},[o]:function(t){return i.ZP.updateSearchSettings(t.settings)},[r]:function(){return i.ZP.fetchSearchPlanInfo()},[a]:function(){return i.ZP.fetchSearchStats()}}},9359:function(t,e,n){"use strict";n.d(e,{t:function(){return c},i:function(){return l}});var i=n(8743),s=n(3801),o=n(1343),r=n(4914),a=n(4455);const c="jetpack-search-plugin",l={reducer:i.Z,actions:s.Z,selectors:o.Z,resolvers:r.ZP,controls:a.ZP,initialState:window.JETPACK_SEARCH_DASHBOARD_INITIAL_STATE||{}}},541:function(t,e){"use strict";e.Z=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t}},8743:function(t,e,n){"use strict";var i=n(9818),s=n(2233),o=n(9745),r=n(2416),a=n(2134),c=n(4863),l=n(541),h=n(9689);const u=(0,i.combineReducers)({siteData:s.Z,jetpackSettings:r.Z,sitePlan:a.Z,siteStats:c.Z,userData:o.Z,features:l.Z,notices:h.Z});e.Z=u},2416:function(t,e,n){"use strict";var i=n(5503);e.Z=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return e.type===i.dz?{...t,...e.options,is_toggling_module:t.module_active!==e.options.module_active&&!!e.options.is_updating,is_toggling_instant_search:t.instant_search_enabled!==e.options.instant_search_enabled&&!!e.options.is_updating}:t}},2233:function(t,e){"use strict";e.Z=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t}},2134:function(t,e,n){"use strict";var i=n(367);e.Z=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return e.type===i.$w?{...t,...e.options}:t}},4863:function(t,e,n){"use strict";var i=n(7430);e.Z=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return e.type===i.Em?{...t,...e.options}:t}},9745:function(t,e){"use strict";e.Z=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t}},4914:function(t,e,n){"use strict";var i=n(5736),s=n(4455),o=n(5503),r=n(367),a=n(7430),c=n(8163);const __=i.__;e.ZP={getSearchModuleStatus:function*(){try{const t=yield(0,s.es)();if(t)return(0,o.ff)(t)}catch(t){return(0,c.tF)(__("Error fetching settings…","jetpack-search-pkg"))}},getSearchPlanInfo:function*(){try{const t=yield(0,s.FZ)();if(t)return(0,r.og)(t)}catch(t){return(0,c.tF)(__("Error fetching search plan…","jetpack-search-pkg"))}},getSearchStats:function*(){try{const t=yield(0,s.Yt)();if(t)return(0,a.XV)(t)}catch(t){return(0,c.tF)(__("Error fetching search stats","jetpack-search-pkg"))}}}},5808:function(t,e){"use strict";const n={isFeatureEnabled:(t,e)=>Array.isArray(t.features)&&t.features.includes(e)};e.Z=n},1343:function(t,e,n){"use strict";var i=n(3851),s=n(1759),o=n(8125),r=n(397),a=n(3584),c=n(5808),l=n(1766);const h={...i.Z,...s.Z,...o.Z,...r.Z,...a.Z,...c.Z,...l.Z};e.Z=h},1759:function(t,e){"use strict";e.Z={getSearchModuleStatus:t=>t.jetpackSettings,isModuleEnabled:t=>t.jetpackSettings.module_active,isInstantSearchEnabled:t=>t.jetpackSettings.instant_search_enabled,isUpdatingJetpackSettings:t=>t.jetpackSettings.is_updating,isTogglingModule:t=>t.jetpackSettings.is_toggling_module,isTogglingInstantSearch:t=>t.jetpackSettings.is_toggling_instant_search}},3851:function(t,e){"use strict";e.Z={getAPIRootUrl:t=>{var e,n;return null!==(e=null===(n=t.siteData)||void 0===n?void 0:n.WP_API_root)&&void 0!==e?e:null},getAPINonce:t=>{var e,n;return null!==(e=null===(n=t.siteData)||void 0===n?void 0:n.WP_API_nonce)&&void 0!==e?e:null},getRegistrationNonce:t=>{var e,n;return null!==(e=null===(n=t.siteData)||void 0===n?void 0:n.registrationNonce)&&void 0!==e?e:null},getSiteAdminUrl:t=>{var e,n;return null!==(e=null===(n=t.siteData)||void 0===n?void 0:n.adminUrl)&&void 0!==e?e:null},isInstantSearchPromotionActive:t=>{var e,n;return null===(e=null===(n=t.siteData)||void 0===n?void 0:n.showPromotions)||void 0===e||e},getBlogId:t=>{var e,n;return null!==(e=null===(n=t.siteData)||void 0===n?void 0:n.blogId)&&void 0!==e?e:0},getVersion:t=>{var e,n;return null!==(e=null===(n=t.siteData)||void 0===n?void 0:n.version)&&void 0!==e?e:"development"},getCalypsoSlug:t=>{var e;return null===(e=t.siteData)||void 0===e?void 0:e.calypsoSlug}}},8125:function(t,e){"use strict";e.Z={getSearchPlanInfo:t=>t.sitePlan,hasBusinessPlan:t=>t.sitePlan.supports_only_classic_search,hasActiveSearchPurchase:t=>t.sitePlan.supports_instant_search,supportsInstantSearch:t=>t.sitePlan.supports_instant_search,supportsOnlyClassicSearch:t=>t.sitePlan.supports_only_classic_search,getUpgradeBillPeriod:t=>{var e;return null===(e=t.sitePlan)||void 0===e?void 0:e.default_upgrade_bill_period},supportsSearch:t=>t.sitePlan.supports_instant_search||t.sitePlan.supports_only_classic_search,getTierMaximumRecords:t=>t.sitePlan.tier_maximum_records}},1766:function(t,e){"use strict";e.Z={getSearchStats:t=>t.siteStats,getPostCount:t=>{var e;return null===(e=t.siteStats)||void 0===e?void 0:e.post_count},getPostTypeBreakdown:t=>{var e;return null===(e=t.siteStats)||void 0===e?void 0:e.post_type_breakdown}}},397:function(t,e){"use strict";e.Z={getWpcomUser:t=>{var e,n;return null===(e=t.userData)||void 0===e||null===(n=e.currentUser)||void 0===n?void 0:n.wpcomUser}}},9712:function(t,e,n){"use strict";var i=n(4502),s=n.n(i),o=n(9196),r=n.n(o),a=n(5736);const __=a.__;class c extends o.Component{needsOffset(t,e){return["gridicons-calendar","gridicons-cart","gridicons-folder","gridicons-info","gridicons-posts","gridicons-star-outline","gridicons-star"].indexOf(t)>=0&&e%18==0}getSVGTitle(t){if("title"in this.props)return this.props.title?r().createElement("title",null,this.props.title):null;switch(t){default:return null;case"gridicons-audio":return r().createElement("title",null,__("Has audio.","jetpack-search-pkg"));case"gridicons-calendar":return r().createElement("title",null,__("Is an event.","jetpack-search-pkg"));case"gridicons-cart":return r().createElement("title",null,__("Is a product.","jetpack-search-pkg"));case"chevron-down":return r().createElement("title",null,__("Show filters","jetpack-search-pkg"));case"gridicons-comment":return r().createElement("title",null,__("Matching comment.","jetpack-search-pkg"));case"gridicons-cross":return r().createElement("title",null,__("Close search results","jetpack-search-pkg"));case"gridicons-filter":return r().createElement("title",null,__("Toggle search filters.","jetpack-search-pkg"));case"gridicons-folder":return r().createElement("title",null,__("Category","jetpack-search-pkg"));case"gridicons-image-multiple":return r().createElement("title",null,__("Has multiple images.","jetpack-search-pkg"));case"gridicons-image":return r().createElement("title",null,__("Has an image.","jetpack-search-pkg"));case"gridicons-page":return r().createElement("title",null,__("Page","jetpack-search-pkg"));case"gridicons-post":return r().createElement("title",null,__("Post","jetpack-search-pkg"));case"gridicons-jetpack-search":case"gridicons-search":return r().createElement("title",null,__("Magnifying Glass","jetpack-search-pkg"));case"gridicons-tag":return r().createElement("title",null,__("Tag","jetpack-search-pkg"));case"gridicons-video":return r().createElement("title",null,__("Has a video.","jetpack-search-pkg"))}}renderIcon(t){switch(t){default:return null;case"gridicons-audio":return r().createElement("g",null,r().createElement("path",{d:"M8 4v10.184C7.686 14.072 7.353 14 7 14c-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V7h7v4.184c-.314-.112-.647-.184-1-.184-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V4H8z"}));case"gridicons-block":return r().createElement("g",null,r().createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM4 12c0-4.418 3.582-8 8-8 1.848 0 3.545.633 4.9 1.686L5.686 16.9C4.633 15.545 4 13.848 4 12zm8 8c-1.848 0-3.546-.633-4.9-1.686L18.314 7.1C19.367 8.455 20 10.152 20 12c0 4.418-3.582 8-8 8z"}));case"gridicons-calendar":return r().createElement("g",null,r().createElement("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.105 0-2 .896-2 2v13c0 1.104.895 2 2 2h14c1.104 0 2-.896 2-2V6c0-1.104-.896-2-2-2zm0 15H5V8h14v11z"}));case"gridicons-cart":return r().createElement("g",null,r().createElement("path",{d:"M9 20c0 1.1-.9 2-2 2s-1.99-.9-1.99-2S5.9 18 7 18s2 .9 2 2zm8-2c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm.396-5c.937 0 1.75-.65 1.952-1.566L21 5H7V4c0-1.105-.895-2-2-2H3v2h2v11c0 1.105.895 2 2 2h12c0-1.105-.895-2-2-2H7v-2h10.396z"}));case"gridicons-checkmark":return r().createElement("g",null,r().createElement("path",{d:"M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658C17.823 3.39 15.075 2 12 2 6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10c0-1.528-.353-2.97-.966-4.266L11 17.768z"}));case"gridicons-chevron-down":return r().createElement("g",null,r().createElement("path",{d:"M20 9l-8 8-8-8 1.414-1.414L12 14.172l6.586-6.586"}));case"gridicons-comment":return r().createElement("g",null,r().createElement("path",{d:"M3 6v9c0 1.105.895 2 2 2h9v5l5.325-3.804c1.05-.75 1.675-1.963 1.675-3.254V6c0-1.105-.895-2-2-2H5c-1.105 0-2 .895-2 2z"}));case"gridicons-cross":return r().createElement("g",null,r().createElement("path",{d:"M18.36 19.78L12 13.41l-6.36 6.37-1.42-1.42L10.59 12 4.22 5.64l1.42-1.42L12 10.59l6.36-6.36 1.41 1.41L13.41 12l6.36 6.36z"}));case"gridicons-filter":return r().createElement("g",null,r().createElement("path",{d:"M10 19h4v-2h-4v2zm-4-6h12v-2H6v2zM3 5v2h18V5H3z"}));case"gridicons-folder":return r().createElement("g",null,r().createElement("path",{d:"M18 19H6c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2h7c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2z"}));case"gridicons-image":return r().createElement("g",null,r().createElement("path",{d:"M13 9.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5-.672 1.5-1.5 1.5-1.5-.672-1.5-1.5zM22 6v12c0 1.105-.895 2-2 2H4c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h16c1.105 0 2 .895 2 2zm-2 0H4v7.444L8 9l5.895 6.55 1.587-1.85c.798-.932 2.24-.932 3.037 0L20 15.426V6z"}));case"gridicons-image-multiple":return r().createElement("g",null,r().createElement("path",{d:"M15 7.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5S17.328 9 16.5 9 15 8.328 15 7.5zM4 20h14c0 1.105-.895 2-2 2H4c-1.1 0-2-.9-2-2V8c0-1.105.895-2 2-2v14zM22 4v12c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zM8 4v6.333L11 7l4.855 5.395.656-.73c.796-.886 2.183-.886 2.977 0l.513.57V4H8z"}));case"gridicons-info":return r().createElement("g",null,r().createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}));case"gridicons-jetpack-search":return r().createElement("g",null,r().createElement("path",{d:"M0 9.257C0 4.15 4.151 0 9.257 0c5.105 0 9.256 4.151 9.256 9.257a9.218 9.218 0 01-2.251 6.045l.034.033h1.053L24 22.01l-1.986 1.989-6.664-6.662v-1.055l-.033-.033a9.218 9.218 0 01-6.06 2.264C4.15 18.513 0 14.362 0 9.257zm4.169 1.537h4.61V1.82l-4.61 8.973zm5.547-3.092v8.974l4.61-8.974h-4.61z"}));case"gridicons-pages":return r().createElement("g",null,r().createElement("path",{d:"M16 8H8V6h8v2zm0 2H8v2h8v-2zm4-6v12l-6 6H6c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zm-2 10V4H6v16h6v-4c0-1.105.895-2 2-2h4z"}));case"gridicons-posts":return r().createElement("g",null,r().createElement("path",{d:"M16 19H3v-2h13v2zm5-10H3v2h18V9zM3 5v2h11V5H3zm14 0v2h4V5h-4zm-6 8v2h10v-2H11zm-8 0v2h5v-2H3z"}));case"gridicons-search":return r().createElement("g",null,r().createElement("path",{d:"M21 19l-5.154-5.154C16.574 12.742 17 11.42 17 10c0-3.866-3.134-7-7-7s-7 3.134-7 7 3.134 7 7 7c1.42 0 2.742-.426 3.846-1.154L19 21l2-2zM5 10c0-2.757 2.243-5 5-5s5 2.243 5 5-2.243 5-5 5-5-2.243-5-5z"}));case"gridicons-star-outline":return r().createElement("g",null,r().createElement("path",{d:"M12 6.308l1.176 3.167.347.936.997.042 3.374.14-2.647 2.09-.784.62.27.963.91 3.25-2.813-1.872-.83-.553-.83.552-2.814 1.87.91-3.248.27-.962-.783-.62-2.648-2.092 3.374-.14.996-.04.347-.936L12 6.308M12 2L9.418 8.953 2 9.257l5.822 4.602L5.82 21 12 16.89 18.18 21l-2.002-7.14L22 9.256l-7.418-.305L12 2z"}));case"gridicons-star":return r().createElement("g",null,r().createElement("path",{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304"}));case"gridicons-tag":return r().createElement("g",null,r().createElement("path",{d:"M20 2.007h-7.087c-.53 0-1.04.21-1.414.586L2.592 11.5c-.78.78-.78 2.046 0 2.827l7.086 7.086c.78.78 2.046.78 2.827 0l8.906-8.906c.376-.374.587-.883.587-1.413V4.007c0-1.105-.895-2-2-2zM17.007 9c-1.105 0-2-.895-2-2s.895-2 2-2 2 .895 2 2-.895 2-2 2z"}));case"gridicons-video":return r().createElement("g",null,r().createElement("path",{d:"M20 4v2h-2V4H6v2H4V4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2v-2h2v2h12v-2h2v2c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zM6 16H4v-3h2v3zm0-5H4V8h2v3zm4 4V9l4.5 3-4.5 3zm10 1h-2v-3h2v3zm0-5h-2V8h2v3z"}))}}render(){const{size:t=24,className:e=""}=this.props,n=this.props.height||t,i=this.props.width||t,s=this.props.style||{height:n,width:i},o="gridicons-"+this.props.icon;let a=["gridicon",o,e];return this.needsOffset(o,t)&&a.push("needs-offset"),a=a.join(" "),r().createElement("svg",{className:a,focusable:this.props.focusable,height:n,onClick:this.props.onClick,style:s,viewBox:"0 0 24 24",width:i,xmlns:"http://www.w3.org/2000/svg","aria-hidden":this.props["aria-hidden"]},this.getSVGTitle(o),this.renderIcon(o))}}s()(c,"defaultProps",{"aria-hidden":"false",focusable:"true"}),e.Z=c},6317:function(t){"use strict";if(void 0==={consumer_slug:"jetpack-search-package"}){var e=new Error('Cannot find module \'{"consumer_slug":"jetpack-search-package"}\'');throw e.code="MODULE_NOT_FOUND",e}t.exports={consumer_slug:"jetpack-search-package"}},9196:function(t){"use strict";t.exports=window.React},1850:function(t){"use strict";t.exports=window.ReactDOM},2819:function(t){"use strict";t.exports=window.lodash},9818:function(t){"use strict";t.exports=window.wp.data},9307:function(t){"use strict";t.exports=window.wp.element},5736:function(t){"use strict";t.exports=window.wp.i18n},6483:function(t){"use strict";t.exports=window.wp.url},7655:function(t){"use strict";t.exports=JSON.parse('{"version":"2.5.0","colors":{"White":"#fff","Black":"#000","Gray":"#646970","Gray 0":"#f6f7f7","Gray 5":"#dcdcde","Gray 10":"#c3c4c7","Gray 20":"#a7aaad","Gray 30":"#8c8f94","Gray 40":"#787c82","Gray 50":"#646970","Gray 60":"#50575e","Gray 70":"#3c434a","Gray 80":"#2c3338","Gray 90":"#1d2327","Gray 100":"#101517","Blue":"#0675c4","Blue 0":"#e9f0f5","Blue 5":"#bbe0fa","Blue 10":"#91caf2","Blue 20":"#68b3e8","Blue 30":"#399ce3","Blue 40":"#1689db","Blue 50":"#0675c4","Blue 60":"#055d9c","Blue 70":"#044b7a","Blue 80":"#02395c","Blue 90":"#01283d","Blue 100":"#001621","Purple":"#984a9c","Purple 0":"#f2e9ed","Purple 5":"#ebcee0","Purple 10":"#e3afd5","Purple 20":"#d48fc8","Purple 30":"#c475bd","Purple 40":"#b35eb1","Purple 50":"#984a9c","Purple 60":"#7c3982","Purple 70":"#662c6e","Purple 80":"#4d2054","Purple 90":"#35163b","Purple 100":"#1e0c21","Pink":"#c9356e","Pink 0":"#f5e9ed","Pink 5":"#f2ceda","Pink 10":"#f7a8c3","Pink 20":"#f283aa","Pink 30":"#eb6594","Pink 40":"#e34c84","Pink 50":"#c9356e","Pink 60":"#ab235a","Pink 70":"#8c1749","Pink 80":"#700f3b","Pink 90":"#4f092a","Pink 100":"#260415","Red":"#d63638","Red 0":"#f7ebec","Red 5":"#facfd2","Red 10":"#ffabaf","Red 20":"#ff8085","Red 30":"#f86368","Red 40":"#e65054","Red 50":"#d63638","Red 60":"#b32d2e","Red 70":"#8a2424","Red 80":"#691c1c","Red 90":"#451313","Red 100":"#240a0a","Orange":"#b26200","Orange 0":"#f5ece6","Orange 5":"#f7dcc6","Orange 10":"#ffbf86","Orange 20":"#faa754","Orange 30":"#e68b28","Orange 40":"#d67709","Orange 50":"#b26200","Orange 60":"#8a4d00","Orange 70":"#704000","Orange 80":"#543100","Orange 90":"#361f00","Orange 100":"#1f1200","Yellow":"#9d6e00","Yellow 0":"#f5f1e1","Yellow 5":"#f5e6b3","Yellow 10":"#f2d76b","Yellow 20":"#f0c930","Yellow 30":"#deb100","Yellow 40":"#c08c00","Yellow 50":"#9d6e00","Yellow 60":"#7d5600","Yellow 70":"#674600","Yellow 80":"#4f3500","Yellow 90":"#320","Yellow 100":"#1c1300","Green":"#008a20","Green 0":"#e6f2e8","Green 5":"#b8e6bf","Green 10":"#68de86","Green 20":"#1ed15a","Green 30":"#00ba37","Green 40":"#00a32a","Green 50":"#008a20","Green 60":"#007017","Green 70":"#005c12","Green 80":"#00450c","Green 90":"#003008","Green 100":"#001c05","Celadon":"#008763","Celadon 0":"#e4f2ed","Celadon 5":"#a7e8d3","Celadon 10":"#66deb9","Celadon 20":"#31cc9f","Celadon 30":"#09b585","Celadon 40":"#009e73","Celadon 50":"#008763","Celadon 60":"#007053","Celadon 70":"#005c44","Celadon 80":"#004533","Celadon 90":"#003024","Celadon 100":"#001c15","WordPress Blue":"#006088","WordPress Blue 0":"#e6f1f5","WordPress Blue 5":"#bedae6","WordPress Blue 10":"#98c6d9","WordPress Blue 20":"#6ab3d0","WordPress Blue 30":"#3895ba","WordPress Blue 40":"#187aa2","WordPress Blue 50":"#006088","WordPress Blue 60":"#004e6e","WordPress Blue 70":"#003c56","WordPress Blue 80":"#002c40","WordPress Blue 90":"#001d2d","WordPress Blue 100":"#00101c","Simplenote Blue":"#3361cc","Simplenote Blue 0":"#e9ecf5","Simplenote Blue 5":"#ced9f2","Simplenote Blue 10":"#abc1f5","Simplenote Blue 20":"#84a4f0","Simplenote Blue 30":"#618df2","Simplenote Blue 40":"#4678eb","Simplenote Blue 50":"#3361cc","Simplenote Blue 60":"#1d4fc4","Simplenote Blue 70":"#113ead","Simplenote Blue 80":"#0d2f85","Simplenote Blue 90":"#09205c","Simplenote Blue 100":"#05102e","WooCommerce Purple":"#7f54b3","WooCommerce Purple 0":"#f7edf7","WooCommerce Purple 5":"#e5cfe8","WooCommerce Purple 10":"#d6b4e0","WooCommerce Purple 20":"#c792e0","WooCommerce Purple 30":"#af7dd1","WooCommerce Purple 40":"#9a69c7","WooCommerce Purple 50":"#7f54b3","WooCommerce Purple 60":"#674399","WooCommerce Purple 70":"#533582","WooCommerce Purple 80":"#3c2861","WooCommerce Purple 90":"#271b3d","WooCommerce Purple 100":"#140e1f","Jetpack Green":"#069e08","Jetpack Green 0":"#f0f2eb","Jetpack Green 5":"#d0e6b8","Jetpack Green 10":"#9dd977","Jetpack Green 20":"#64ca43","Jetpack Green 30":"#2fb41f","Jetpack Green 40":"#069e08","Jetpack Green 50":"#008710","Jetpack Green 60":"#007117","Jetpack Green 70":"#005b18","Jetpack Green 80":"#004515","Jetpack Green 90":"#003010","Jetpack Green 100":"#001c09"}}')}},e={};function n(i){var s=e[i];if(void 0!==s)return s.exports;var o=e[i]={id:i,loaded:!1,exports:{}};return t[i](o,o.exports,n),o.loaded=!0,o.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},function(){"use strict";var t=n(1850),e=n.n(t),i=n(9196),s=n.n(i),o=n(9818),r=n(9359),a=n(6025);const c=(0,o.createReduxStore)(r.t,r.i);function l(){const t=document.getElementById("jp-search-dashboard");null!==t&&e().render(s().createElement(a.Z,null),t)}(0,o.register)(c),"loading"!==document.readyState?l():document.addEventListener("DOMContentLoaded",l)}()}();
jetpack_vendor/automattic/jetpack-search/build/instant-search/jp-search.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-i18n', 'wp-jp-i18n-loader', 'wp-polyfill'), 'version' => '7f2b72e0f37d668e255b7a25c28bae1c');
1
+ <?php return array('dependencies' => array('wp-i18n', 'wp-jp-i18n-loader', 'wp-polyfill'), 'version' => '8654f1efea7bf1b79584c07f1d458382');
jetpack_vendor/automattic/jetpack-search/src/class-module-control.php CHANGED
@@ -117,13 +117,9 @@ class Module_Control {
117
  */
118
  public function deactivate() {
119
  /**
120
- * Fires when a module is deactivated.
121
- *
122
- * @since 1.9.0
123
- *
124
- * @param string $module Module slug.
125
  */
126
- do_action( 'jetpack_pre_deactivate_module', self::JETPACK_SEARCH_MODULE_SLUG );
127
 
128
  $active_modules = $this->get_active_modules();
129
  $active_modules = array_values( array_diff( $active_modules, array( self::JETPACK_SEARCH_MODULE_SLUG ) ) );
@@ -131,21 +127,11 @@ class Module_Control {
131
  $success = Jetpack_Options::update_option( self::JETPACK_ACTIVE_MODULES_OPTION_KEY, $active_modules );
132
 
133
  /**
134
- * Fired after a module has been deactivated.
135
- *
136
- * @since 4.2.0
137
- *
138
- * @param string $module Module slug.
139
- * @param boolean $success whether the module was deactivated.
140
  */
141
  do_action( 'jetpack_deactivate_module', self::JETPACK_SEARCH_MODULE_SLUG, $success );
142
  /**
143
- * Fires when a module is deactivated.
144
- * The dynamic part of the filter, $module, is the module slug.
145
- *
146
- * @since 1.9.0
147
- *
148
- * @param string $module Module slug.
149
  */
150
  do_action( 'jetpack_deactivate_module_' . self::JETPACK_SEARCH_MODULE_SLUG );
151
 
117
  */
118
  public function deactivate() {
119
  /**
120
+ * This action is already documented in class.jetpack-admin.php
 
 
 
 
121
  */
122
+ do_action( 'jetpack_pre_deactivate_module', self::JETPACK_SEARCH_MODULE_SLUG, false );
123
 
124
  $active_modules = $this->get_active_modules();
125
  $active_modules = array_values( array_diff( $active_modules, array( self::JETPACK_SEARCH_MODULE_SLUG ) ) );
127
  $success = Jetpack_Options::update_option( self::JETPACK_ACTIVE_MODULES_OPTION_KEY, $active_modules );
128
 
129
  /**
130
+ * This action is already documented in class.jetpack-admin.php
 
 
 
 
 
131
  */
132
  do_action( 'jetpack_deactivate_module', self::JETPACK_SEARCH_MODULE_SLUG, $success );
133
  /**
134
+ * This action is already documented in class.jetpack-admin.php
 
 
 
 
 
135
  */
136
  do_action( 'jetpack_deactivate_module_' . self::JETPACK_SEARCH_MODULE_SLUG );
137
 
jetpack_vendor/automattic/jetpack-search/src/class-package.php CHANGED
@@ -11,7 +11,7 @@ namespace Automattic\Jetpack\Search;
11
  * Search package general information
12
  */
13
  class Package {
14
- const VERSION = '0.11.2';
15
  const SLUG = 'search';
16
 
17
  /**
11
  * Search package general information
12
  */
13
  class Package {
14
+ const VERSION = '0.11.3';
15
  const SLUG = 'search';
16
 
17
  /**
jetpack_vendor/automattic/jetpack-search/src/dashboard/class-dashboard.php CHANGED
@@ -100,6 +100,17 @@ class Dashboard {
100
  * @return {boolean} Show search sub menu or not.
101
  */
102
  protected function should_add_search_submenu() {
 
 
 
 
 
 
 
 
 
 
 
103
  /**
104
  * The filter allows to ommit adding a submenu item for Jetpack Search.
105
  *
100
  * @return {boolean} Show search sub menu or not.
101
  */
102
  protected function should_add_search_submenu() {
103
+ /**
104
+ * Todo: temporary fix for Jetpack 10.8-a.9 release to prevent Search submenu item from showing on
105
+ * sites without eligible Search plans.
106
+ *
107
+ * Currently sites without a Search plan will not be able to interact with the Search page toggles,
108
+ * so that could lead to user confusion/frustration.
109
+ */
110
+ if ( ! $this->plan->supports_search() ) {
111
+ return false;
112
+ }
113
+
114
  /**
115
  * The filter allows to ommit adding a submenu item for Jetpack Search.
116
  *
jetpack_vendor/i18n-map.php CHANGED
@@ -16,9 +16,9 @@ return array(
16
  'path' => 'jetpack_vendor/automattic/jetpack-heartbeat',
17
  'ver' => '1.4.0',
18
  ),
19
- 'jetpack-admin-ui' => array(
20
- 'path' => 'jetpack_vendor/automattic/jetpack-admin-ui',
21
- 'ver' => '0.2.5',
22
  ),
23
  'jetpack-password-checker' => array(
24
  'path' => 'jetpack_vendor/automattic/jetpack-password-checker',
@@ -32,17 +32,21 @@ return array(
32
  'path' => 'jetpack_vendor/automattic/jetpack-backup',
33
  'ver' => '1.2.5',
34
  ),
35
- 'jetpack-connection' => array(
36
- 'path' => 'jetpack_vendor/automattic/jetpack-connection',
37
- 'ver' => '1.37.2',
 
 
 
 
38
  ),
39
  'jetpack-sync' => array(
40
  'path' => 'jetpack_vendor/automattic/jetpack-sync',
41
  'ver' => '1.30.4',
42
  ),
43
- 'jetpack-compat' => array(
44
- 'path' => 'jetpack_vendor/automattic/jetpack-compat',
45
- 'ver' => '1.7.0',
46
  ),
47
  'jetpack-connection-ui' => array(
48
  'path' => 'jetpack_vendor/automattic/jetpack-connection-ui',
@@ -56,21 +60,17 @@ return array(
56
  'path' => 'jetpack_vendor/automattic/jetpack-lazy-images',
57
  'ver' => '2.1.8',
58
  ),
59
- 'jetpack-licensing' => array(
60
- 'path' => 'jetpack_vendor/automattic/jetpack-licensing',
61
- 'ver' => '1.6.3',
62
  ),
63
  'jetpack-my-jetpack' => array(
64
  'path' => 'jetpack_vendor/automattic/jetpack-my-jetpack',
65
  'ver' => '0.6.11',
66
  ),
67
- 'jetpack-config' => array(
68
- 'path' => 'jetpack_vendor/automattic/jetpack-config',
69
- 'ver' => '1.7.0',
70
- ),
71
  'jetpack-search-pkg' => array(
72
  'path' => 'jetpack_vendor/automattic/jetpack-search',
73
- 'ver' => '0.11.2',
74
  ),
75
  ),
76
  );
16
  'path' => 'jetpack_vendor/automattic/jetpack-heartbeat',
17
  'ver' => '1.4.0',
18
  ),
19
+ 'jetpack-connection' => array(
20
+ 'path' => 'jetpack_vendor/automattic/jetpack-connection',
21
+ 'ver' => '1.37.2',
22
  ),
23
  'jetpack-password-checker' => array(
24
  'path' => 'jetpack_vendor/automattic/jetpack-password-checker',
32
  'path' => 'jetpack_vendor/automattic/jetpack-backup',
33
  'ver' => '1.2.5',
34
  ),
35
+ 'jetpack-compat' => array(
36
+ 'path' => 'jetpack_vendor/automattic/jetpack-compat',
37
+ 'ver' => '1.7.0',
38
+ ),
39
+ 'jetpack-admin-ui' => array(
40
+ 'path' => 'jetpack_vendor/automattic/jetpack-admin-ui',
41
+ 'ver' => '0.2.5',
42
  ),
43
  'jetpack-sync' => array(
44
  'path' => 'jetpack_vendor/automattic/jetpack-sync',
45
  'ver' => '1.30.4',
46
  ),
47
+ 'jetpack-licensing' => array(
48
+ 'path' => 'jetpack_vendor/automattic/jetpack-licensing',
49
+ 'ver' => '1.6.3',
50
  ),
51
  'jetpack-connection-ui' => array(
52
  'path' => 'jetpack_vendor/automattic/jetpack-connection-ui',
60
  'path' => 'jetpack_vendor/automattic/jetpack-lazy-images',
61
  'ver' => '2.1.8',
62
  ),
63
+ 'jetpack-config' => array(
64
+ 'path' => 'jetpack_vendor/automattic/jetpack-config',
65
+ 'ver' => '1.7.0',
66
  ),
67
  'jetpack-my-jetpack' => array(
68
  'path' => 'jetpack_vendor/automattic/jetpack-my-jetpack',
69
  'ver' => '0.6.11',
70
  ),
 
 
 
 
71
  'jetpack-search-pkg' => array(
72
  'path' => 'jetpack_vendor/automattic/jetpack-search',
73
+ 'ver' => '0.11.3',
74
  ),
75
  ),
76
  );
vendor/composer/installed.json CHANGED
@@ -1526,17 +1526,17 @@
1526
  },
1527
  {
1528
  "name": "automattic/jetpack-search",
1529
- "version": "v0.11.2",
1530
- "version_normalized": "0.11.2.0",
1531
  "source": {
1532
  "type": "git",
1533
  "url": "https://github.com/Automattic/jetpack-search.git",
1534
- "reference": "836a914698f1fbf414a9d32b8216855b97b4974e"
1535
  },
1536
  "dist": {
1537
  "type": "zip",
1538
- "url": "https://api.github.com/repos/Automattic/jetpack-search/zipball/836a914698f1fbf414a9d32b8216855b97b4974e",
1539
- "reference": "836a914698f1fbf414a9d32b8216855b97b4974e",
1540
  "shasum": ""
1541
  },
1542
  "require": {
@@ -1553,7 +1553,7 @@
1553
  "automattic/wordbless": "0.3.1",
1554
  "yoast/phpunit-polyfills": "1.0.3"
1555
  },
1556
- "time": "2022-03-23T19:10:36+00:00",
1557
  "type": "jetpack-library",
1558
  "extra": {
1559
  "autotagger": true,
@@ -1581,7 +1581,7 @@
1581
  ],
1582
  "description": "Tools to assist with enabling cloud search for Jetpack sites.",
1583
  "support": {
1584
- "source": "https://github.com/Automattic/jetpack-search/tree/v0.11.2"
1585
  },
1586
  "install-path": "../../jetpack_vendor/automattic/jetpack-search"
1587
  },
1526
  },
1527
  {
1528
  "name": "automattic/jetpack-search",
1529
+ "version": "v0.11.3",
1530
+ "version_normalized": "0.11.3.0",
1531
  "source": {
1532
  "type": "git",
1533
  "url": "https://github.com/Automattic/jetpack-search.git",
1534
+ "reference": "ac91f3886bf926b11ec848444c1721307145dc11"
1535
  },
1536
  "dist": {
1537
  "type": "zip",
1538
+ "url": "https://api.github.com/repos/Automattic/jetpack-search/zipball/ac91f3886bf926b11ec848444c1721307145dc11",
1539
+ "reference": "ac91f3886bf926b11ec848444c1721307145dc11",
1540
  "shasum": ""
1541
  },
1542
  "require": {
1553
  "automattic/wordbless": "0.3.1",
1554
  "yoast/phpunit-polyfills": "1.0.3"
1555
  },
1556
+ "time": "2022-03-24T22:14:15+00:00",
1557
  "type": "jetpack-library",
1558
  "extra": {
1559
  "autotagger": true,
1581
  ],
1582
  "description": "Tools to assist with enabling cloud search for Jetpack sites.",
1583
  "support": {
1584
+ "source": "https://github.com/Automattic/jetpack-search/tree/v0.11.3"
1585
  },
1586
  "install-path": "../../jetpack_vendor/automattic/jetpack-search"
1587
  },
vendor/composer/installed.php CHANGED
@@ -281,12 +281,12 @@
281
  'dev_requirement' => false,
282
  ),
283
  'automattic/jetpack-search' => array(
284
- 'pretty_version' => 'v0.11.2',
285
- 'version' => '0.11.2.0',
286
  'type' => 'jetpack-library',
287
  'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-search',
288
  'aliases' => array(),
289
- 'reference' => '836a914698f1fbf414a9d32b8216855b97b4974e',
290
  'dev_requirement' => false,
291
  ),
292
  'automattic/jetpack-status' => array(
281
  'dev_requirement' => false,
282
  ),
283
  'automattic/jetpack-search' => array(
284
+ 'pretty_version' => 'v0.11.3',
285
+ 'version' => '0.11.3.0',
286
  'type' => 'jetpack-library',
287
  'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-search',
288
  'aliases' => array(),
289
+ 'reference' => 'ac91f3886bf926b11ec848444c1721307145dc11',
290
  'dev_requirement' => false,
291
  ),
292
  'automattic/jetpack-status' => array(
vendor/composer/jetpack_autoload_classmap.php CHANGED
@@ -75,113 +75,93 @@ return array(
75
  'path' => $baseDir . '/src/class-tracking.php'
76
  ),
77
  'Automattic\\Jetpack\\Search\\Customberg' => array(
78
- 'version' => '0.11.2.0',
79
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/customberg/class-customberg.php'
80
  ),
81
  'Automattic\\Jetpack\\Search\\Settings' => array(
82
- 'version' => '0.11.2.0',
83
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-settings.php'
84
  ),
85
  'Automattic\\Jetpack\\Search\\Options' => array(
86
- 'version' => '0.11.2.0',
87
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-options.php'
88
  ),
89
  'Automattic\\Jetpack\\Search\\Instant_Search' => array(
90
- 'version' => '0.11.2.0',
91
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/instant-search/class-instant-search.php'
92
  ),
93
  'Automattic\\Jetpack\\Search\\Plan' => array(
94
- 'version' => '0.11.2.0',
95
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-plan.php'
96
  ),
97
  'Automattic\\Jetpack\\Search\\Classic_Search' => array(
98
- 'version' => '0.11.2.0',
99
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/classic-search/class-classic-search.php'
100
  ),
101
  'Automattic\\Jetpack\\Search\\Search_Widget' => array(
102
- 'version' => '0.11.2.0',
103
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/widgets/class-search-widget.php'
104
  ),
105
  'Automattic\\Jetpack\\Search\\Customizer' => array(
106
- 'version' => '0.11.2.0',
107
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/customizer/class-customizer.php'
108
  ),
109
  'Automattic\\Jetpack\\Search\\Excluded_Post_Types_Control' => array(
110
- 'version' => '0.11.2.0',
111
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/customizer/customize-controls/class-excluded-post-types-control.php'
112
  ),
113
  'Automattic\\Jetpack\\Search\\Label_Control' => array(
114
- 'version' => '0.11.2.0',
115
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/customizer/customize-controls/class-label-control.php'
116
  ),
117
  'Automattic\\Jetpack\\Search\\REST_Controller' => array(
118
- 'version' => '0.11.2.0',
119
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-rest-controller.php'
120
  ),
121
  'Automattic\\Jetpack\\Search\\Template_Tags' => array(
122
- 'version' => '0.11.2.0',
123
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-template-tags.php'
124
  ),
125
  'Automattic\\Jetpack\\Search\\Module_Control' => array(
126
- 'version' => '0.11.2.0',
127
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-module-control.php'
128
  ),
129
  'Automattic\\Jetpack\\Search\\WPES\\Query_Parser' => array(
130
- 'version' => '0.11.2.0',
131
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/wpes/class-query-parser.php'
132
  ),
133
  'Automattic\\Jetpack\\Search\\WPES\\Query_Builder' => array(
134
- 'version' => '0.11.2.0',
135
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/wpes/class-query-builder.php'
136
  ),
137
  'Automattic\\Jetpack\\Search\\Stats' => array(
138
- 'version' => '0.11.2.0',
139
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-stats.php'
140
  ),
141
  'Automattic\\Jetpack\\Search\\Helper' => array(
142
- 'version' => '0.11.2.0',
143
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-helper.php'
144
  ),
145
  'Automattic\\Jetpack\\Search\\Initializer' => array(
146
- 'version' => '0.11.2.0',
147
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/initializers/class-initializer.php'
148
  ),
149
  'Automattic\\Jetpack\\Search\\Dashboard' => array(
150
- 'version' => '0.11.2.0',
151
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/dashboard/class-dashboard.php'
152
  ),
153
  'Automattic\\Jetpack\\Search\\Initial_State' => array(
154
- 'version' => '0.11.2.0',
155
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/dashboard/class-initial-state.php'
156
  ),
157
  'Automattic\\Jetpack\\Search\\Package' => array(
158
- 'version' => '0.11.2.0',
159
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-package.php'
160
  ),
161
  'Automattic\\Jetpack\\Search\\CLI' => array(
162
- 'version' => '0.11.2.0',
163
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-cli.php'
164
  ),
165
- 'Automattic\\Jetpack\\Waf\\WafOperators' => array(
166
- 'version' => '0.1.0.0',
167
- 'path' => $vendorDir . '/automattic/jetpack-waf/src/class-waf-operators.php'
168
- ),
169
- 'Automattic\\Jetpack\\Waf\\WafTransforms' => array(
170
- 'version' => '0.1.0.0',
171
- 'path' => $vendorDir . '/automattic/jetpack-waf/src/class-waf-transforms.php'
172
- ),
173
- 'Automattic\\Jetpack\\Waf\\WafRunner' => array(
174
- 'version' => '0.1.0.0',
175
- 'path' => $vendorDir . '/automattic/jetpack-waf/src/class-waf-runner.php'
176
- ),
177
- 'Automattic\\Jetpack\\Waf\\WafRuleCompiler' => array(
178
- 'version' => '0.1.0.0',
179
- 'path' => $vendorDir . '/automattic/jetpack-waf/src/class-waf-rule-compiler.php'
180
- ),
181
- 'Automattic\\Jetpack\\Waf\\WafRuntime' => array(
182
- 'version' => '0.1.0.0',
183
- 'path' => $vendorDir . '/automattic/jetpack-waf/src/class-waf-runtime.php'
184
- ),
185
  'Automattic\\Jetpack\\My_Jetpack\\REST_Products' => array(
186
  'version' => '0.6.11.0',
187
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-products.php'
@@ -250,9 +230,25 @@ return array(
250
  'version' => '0.6.11.0',
251
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-products.php'
252
  ),
253
- 'Automattic\\Jetpack\\Licensing' => array(
254
- 'version' => '1.6.3.0',
255
- 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-licensing/src/class-licensing.php'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
256
  ),
257
  'Automattic\\Jetpack\\Jetpack_Lazy_Images' => array(
258
  'version' => '2.1.8.0',
@@ -274,14 +270,6 @@ return array(
274
  'version' => '2.2.9.0',
275
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-jitm/src/class-post-connection-jitm.php'
276
  ),
277
- 'Automattic\\Jetpack\\Fonts\\Utils' => array(
278
- 'version' => '0.2.0.0',
279
- 'path' => $vendorDir . '/automattic/jetpack-google-fonts-provider/src/class-utils.php'
280
- ),
281
- 'Automattic\\Jetpack\\Fonts\\Google_Fonts_Provider' => array(
282
- 'version' => '0.2.0.0',
283
- 'path' => $vendorDir . '/automattic/jetpack-google-fonts-provider/src/class-google-fonts-provider.php'
284
- ),
285
  'Automattic\\Jetpack\\ConnectionUI\\Admin' => array(
286
  'version' => '2.3.11.0',
287
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-connection-ui/src/class-admin.php'
@@ -290,6 +278,18 @@ return array(
290
  'version' => '2.3.11.0',
291
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-connection-ui/src/class-initial-state.php'
292
  ),
 
 
 
 
 
 
 
 
 
 
 
 
293
  'JetpackTracking' => array(
294
  'version' => '1.7.0.0',
295
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-compat/legacy/class-jetpacktracking.php'
75
  'path' => $baseDir . '/src/class-tracking.php'
76
  ),
77
  'Automattic\\Jetpack\\Search\\Customberg' => array(
78
+ 'version' => '0.11.3.0',
79
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/customberg/class-customberg.php'
80
  ),
81
  'Automattic\\Jetpack\\Search\\Settings' => array(
82
+ 'version' => '0.11.3.0',
83
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-settings.php'
84
  ),
85
  'Automattic\\Jetpack\\Search\\Options' => array(
86
+ 'version' => '0.11.3.0',
87
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-options.php'
88
  ),
89
  'Automattic\\Jetpack\\Search\\Instant_Search' => array(
90
+ 'version' => '0.11.3.0',
91
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/instant-search/class-instant-search.php'
92
  ),
93
  'Automattic\\Jetpack\\Search\\Plan' => array(
94
+ 'version' => '0.11.3.0',
95
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-plan.php'
96
  ),
97
  'Automattic\\Jetpack\\Search\\Classic_Search' => array(
98
+ 'version' => '0.11.3.0',
99
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/classic-search/class-classic-search.php'
100
  ),
101
  'Automattic\\Jetpack\\Search\\Search_Widget' => array(
102
+ 'version' => '0.11.3.0',
103
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/widgets/class-search-widget.php'
104
  ),
105
  'Automattic\\Jetpack\\Search\\Customizer' => array(
106
+ 'version' => '0.11.3.0',
107
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/customizer/class-customizer.php'
108
  ),
109
  'Automattic\\Jetpack\\Search\\Excluded_Post_Types_Control' => array(
110
+ 'version' => '0.11.3.0',
111
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/customizer/customize-controls/class-excluded-post-types-control.php'
112
  ),
113
  'Automattic\\Jetpack\\Search\\Label_Control' => array(
114
+ 'version' => '0.11.3.0',
115
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/customizer/customize-controls/class-label-control.php'
116
  ),
117
  'Automattic\\Jetpack\\Search\\REST_Controller' => array(
118
+ 'version' => '0.11.3.0',
119
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-rest-controller.php'
120
  ),
121
  'Automattic\\Jetpack\\Search\\Template_Tags' => array(
122
+ 'version' => '0.11.3.0',
123
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-template-tags.php'
124
  ),
125
  'Automattic\\Jetpack\\Search\\Module_Control' => array(
126
+ 'version' => '0.11.3.0',
127
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-module-control.php'
128
  ),
129
  'Automattic\\Jetpack\\Search\\WPES\\Query_Parser' => array(
130
+ 'version' => '0.11.3.0',
131
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/wpes/class-query-parser.php'
132
  ),
133
  'Automattic\\Jetpack\\Search\\WPES\\Query_Builder' => array(
134
+ 'version' => '0.11.3.0',
135
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/wpes/class-query-builder.php'
136
  ),
137
  'Automattic\\Jetpack\\Search\\Stats' => array(
138
+ 'version' => '0.11.3.0',
139
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-stats.php'
140
  ),
141
  'Automattic\\Jetpack\\Search\\Helper' => array(
142
+ 'version' => '0.11.3.0',
143
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-helper.php'
144
  ),
145
  'Automattic\\Jetpack\\Search\\Initializer' => array(
146
+ 'version' => '0.11.3.0',
147
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/initializers/class-initializer.php'
148
  ),
149
  'Automattic\\Jetpack\\Search\\Dashboard' => array(
150
+ 'version' => '0.11.3.0',
151
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/dashboard/class-dashboard.php'
152
  ),
153
  'Automattic\\Jetpack\\Search\\Initial_State' => array(
154
+ 'version' => '0.11.3.0',
155
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/dashboard/class-initial-state.php'
156
  ),
157
  'Automattic\\Jetpack\\Search\\Package' => array(
158
+ 'version' => '0.11.3.0',
159
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-package.php'
160
  ),
161
  'Automattic\\Jetpack\\Search\\CLI' => array(
162
+ 'version' => '0.11.3.0',
163
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-cli.php'
164
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
165
  'Automattic\\Jetpack\\My_Jetpack\\REST_Products' => array(
166
  'version' => '0.6.11.0',
167
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-products.php'
230
  'version' => '0.6.11.0',
231
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-products.php'
232
  ),
233
+ 'Automattic\\Jetpack\\Waf\\WafOperators' => array(
234
+ 'version' => '0.1.0.0',
235
+ 'path' => $vendorDir . '/automattic/jetpack-waf/src/class-waf-operators.php'
236
+ ),
237
+ 'Automattic\\Jetpack\\Waf\\WafTransforms' => array(
238
+ 'version' => '0.1.0.0',
239
+ 'path' => $vendorDir . '/automattic/jetpack-waf/src/class-waf-transforms.php'
240
+ ),
241
+ 'Automattic\\Jetpack\\Waf\\WafRunner' => array(
242
+ 'version' => '0.1.0.0',
243
+ 'path' => $vendorDir . '/automattic/jetpack-waf/src/class-waf-runner.php'
244
+ ),
245
+ 'Automattic\\Jetpack\\Waf\\WafRuleCompiler' => array(
246
+ 'version' => '0.1.0.0',
247
+ 'path' => $vendorDir . '/automattic/jetpack-waf/src/class-waf-rule-compiler.php'
248
+ ),
249
+ 'Automattic\\Jetpack\\Waf\\WafRuntime' => array(
250
+ 'version' => '0.1.0.0',
251
+ 'path' => $vendorDir . '/automattic/jetpack-waf/src/class-waf-runtime.php'
252
  ),
253
  'Automattic\\Jetpack\\Jetpack_Lazy_Images' => array(
254
  'version' => '2.1.8.0',
270
  'version' => '2.2.9.0',
271
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-jitm/src/class-post-connection-jitm.php'
272
  ),
 
 
 
 
 
 
 
 
273
  'Automattic\\Jetpack\\ConnectionUI\\Admin' => array(
274
  'version' => '2.3.11.0',
275
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-connection-ui/src/class-admin.php'
278
  'version' => '2.3.11.0',
279
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-connection-ui/src/class-initial-state.php'
280
  ),
281
+ 'Automattic\\Jetpack\\Licensing' => array(
282
+ 'version' => '1.6.3.0',
283
+ 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-licensing/src/class-licensing.php'
284
+ ),
285
+ 'Automattic\\Jetpack\\Fonts\\Utils' => array(
286
+ 'version' => '0.2.0.0',
287
+ 'path' => $vendorDir . '/automattic/jetpack-google-fonts-provider/src/class-utils.php'
288
+ ),
289
+ 'Automattic\\Jetpack\\Fonts\\Google_Fonts_Provider' => array(
290
+ 'version' => '0.2.0.0',
291
+ 'path' => $vendorDir . '/automattic/jetpack-google-fonts-provider/src/class-google-fonts-provider.php'
292
+ ),
293
  'JetpackTracking' => array(
294
  'version' => '1.7.0.0',
295
  'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-compat/legacy/class-jetpacktracking.php'