Changeset 2919602
- Timestamp:
- 05/31/2023 11:20:41 AM (3 years ago)
- Location:
- wheel-of-life
- Files:
-
- 99 added
- 24 edited
-
tags/1.1.6 (added)
-
tags/1.1.6/app (added)
-
tags/1.1.6/app/build (added)
-
tags/1.1.6/app/build/admin.asset.php (added)
-
tags/1.1.6/app/build/admin.css (added)
-
tags/1.1.6/app/build/admin.js (added)
-
tags/1.1.6/app/build/blocks.asset.php (added)
-
tags/1.1.6/app/build/blocks.css (added)
-
tags/1.1.6/app/build/blocks.js (added)
-
tags/1.1.6/app/build/blocksCSS.asset.php (added)
-
tags/1.1.6/app/build/blocksCSS.css (added)
-
tags/1.1.6/app/build/blocksCSS.js (added)
-
tags/1.1.6/app/build/blocksFilter.asset.php (added)
-
tags/1.1.6/app/build/blocksFilter.js (added)
-
tags/1.1.6/app/build/editor.asset.php (added)
-
tags/1.1.6/app/build/editor.js (added)
-
tags/1.1.6/app/build/fonts (added)
-
tags/1.1.6/app/build/fonts/Rubik-Black.314a52e5.woff2 (added)
-
tags/1.1.6/app/build/fonts/Rubik-Black.d9706d41.woff (added)
-
tags/1.1.6/app/build/fonts/Rubik-BlackItalic.9d114b0a.woff (added)
-
tags/1.1.6/app/build/fonts/Rubik-BlackItalic.c07f9d98.woff2 (added)
-
tags/1.1.6/app/build/fonts/Rubik-Bold.704be18a.woff (added)
-
tags/1.1.6/app/build/fonts/Rubik-Bold.79cd5ccd.woff2 (added)
-
tags/1.1.6/app/build/fonts/Rubik-BoldItalic.5c692368.woff2 (added)
-
tags/1.1.6/app/build/fonts/Rubik-BoldItalic.9363153c.woff (added)
-
tags/1.1.6/app/build/fonts/Rubik-ExtraBold.c5c6e5da.woff2 (added)
-
tags/1.1.6/app/build/fonts/Rubik-ExtraBold.ff3d317c.woff (added)
-
tags/1.1.6/app/build/fonts/Rubik-ExtraBoldItalic.1676686e.woff2 (added)
-
tags/1.1.6/app/build/fonts/Rubik-ExtraBoldItalic.58854e63.woff (added)
-
tags/1.1.6/app/build/fonts/Rubik-Italic.414cdc14.woff2 (added)
-
tags/1.1.6/app/build/fonts/Rubik-Italic.42f993ca.woff (added)
-
tags/1.1.6/app/build/fonts/Rubik-Light.19357e65.woff2 (added)
-
tags/1.1.6/app/build/fonts/Rubik-Light.dd918667.woff (added)
-
tags/1.1.6/app/build/fonts/Rubik-LightItalic.3feb3e89.woff (added)
-
tags/1.1.6/app/build/fonts/Rubik-LightItalic.da03b1c7.woff2 (added)
-
tags/1.1.6/app/build/fonts/Rubik-Medium.5f4249fe.woff2 (added)
-
tags/1.1.6/app/build/fonts/Rubik-Medium.74fded82.woff (added)
-
tags/1.1.6/app/build/fonts/Rubik-MediumItalic.0fcdfe1c.woff (added)
-
tags/1.1.6/app/build/fonts/Rubik-MediumItalic.166f5a8d.woff2 (added)
-
tags/1.1.6/app/build/fonts/Rubik-Regular.855df8a4.woff2 (added)
-
tags/1.1.6/app/build/fonts/Rubik-Regular.882e9e0e.woff (added)
-
tags/1.1.6/app/build/fonts/Rubik-SemiBold.9c329416.woff2 (added)
-
tags/1.1.6/app/build/fonts/Rubik-SemiBold.e9c53c58.woff (added)
-
tags/1.1.6/app/build/fonts/Rubik-SemiBoldItalic.5aaeaf84.woff (added)
-
tags/1.1.6/app/build/fonts/Rubik-SemiBoldItalic.ec685a6f.woff2 (added)
-
tags/1.1.6/app/build/frontendComponents.asset.php (added)
-
tags/1.1.6/app/build/frontendComponents.css (added)
-
tags/1.1.6/app/build/frontendComponents.js (added)
-
tags/1.1.6/app/build/globalApp.asset.php (added)
-
tags/1.1.6/app/build/globalApp.css (added)
-
tags/1.1.6/app/build/globalApp.js (added)
-
tags/1.1.6/app/build/globalCSS.asset.php (added)
-
tags/1.1.6/app/build/globalCSS.css (added)
-
tags/1.1.6/app/build/globalCSS.js (added)
-
tags/1.1.6/app/build/uiComponents.asset.php (added)
-
tags/1.1.6/app/build/uiComponents.css (added)
-
tags/1.1.6/app/build/uiComponents.js (added)
-
tags/1.1.6/app/build/wheelsEditCSS.asset.php (added)
-
tags/1.1.6/app/build/wheelsEditCSS.css (added)
-
tags/1.1.6/app/build/wheelsEditCSS.js (added)
-
tags/1.1.6/app/build/wheelsFrontend.asset.php (added)
-
tags/1.1.6/app/build/wheelsFrontend.css (added)
-
tags/1.1.6/app/build/wheelsFrontend.js (added)
-
tags/1.1.6/app/build/wheelsFrontendCSS.asset.php (added)
-
tags/1.1.6/app/build/wheelsFrontendCSS.css (added)
-
tags/1.1.6/app/build/wheelsFrontendCSS.js (added)
-
tags/1.1.6/assets (added)
-
tags/1.1.6/assets/admin (added)
-
tags/1.1.6/assets/admin/css (added)
-
tags/1.1.6/assets/admin/css/toastr.min.css (added)
-
tags/1.1.6/includes (added)
-
tags/1.1.6/includes/Wheel_Of_Life.php (added)
-
tags/1.1.6/includes/Wheel_Of_Life_Admin.php (added)
-
tags/1.1.6/includes/Wheel_Of_Life_PostTypes.php (added)
-
tags/1.1.6/includes/Wheel_Of_Life_Public.php (added)
-
tags/1.1.6/includes/functions (added)
-
tags/1.1.6/includes/functions/AjaxFunctions.php (added)
-
tags/1.1.6/includes/functions/HelperFunctions.php (added)
-
tags/1.1.6/languages (added)
-
tags/1.1.6/languages/wheel-of-life.pot (added)
-
tags/1.1.6/readme.txt (added)
-
tags/1.1.6/templates (added)
-
tags/1.1.6/templates/single-wheel-submissions.php (added)
-
tags/1.1.6/vendor (added)
-
tags/1.1.6/vendor/autoload.php (added)
-
tags/1.1.6/vendor/composer (added)
-
tags/1.1.6/vendor/composer/ClassLoader.php (added)
-
tags/1.1.6/vendor/composer/InstalledVersions.php (added)
-
tags/1.1.6/vendor/composer/LICENSE (added)
-
tags/1.1.6/vendor/composer/autoload_classmap.php (added)
-
tags/1.1.6/vendor/composer/autoload_files.php (added)
-
tags/1.1.6/vendor/composer/autoload_namespaces.php (added)
-
tags/1.1.6/vendor/composer/autoload_psr4.php (added)
-
tags/1.1.6/vendor/composer/autoload_real.php (added)
-
tags/1.1.6/vendor/composer/autoload_static.php (added)
-
tags/1.1.6/vendor/composer/installed.json (added)
-
tags/1.1.6/vendor/composer/installed.php (added)
-
tags/1.1.6/wheel-of-life.php (added)
-
tags/1.1.6/wpml-config.xml (added)
-
trunk/app/build/admin.asset.php (modified) (1 diff)
-
trunk/app/build/admin.css (modified) (1 diff)
-
trunk/app/build/frontendComponents.asset.php (modified) (1 diff)
-
trunk/app/build/frontendComponents.js (modified) (1 diff)
-
trunk/app/build/globalApp.asset.php (modified) (1 diff)
-
trunk/app/build/globalApp.js (modified) (1 diff)
-
trunk/app/build/globalCSS.asset.php (modified) (1 diff)
-
trunk/app/build/globalCSS.css (modified) (1 diff)
-
trunk/app/build/wheelsFrontend.asset.php (modified) (1 diff)
-
trunk/app/build/wheelsFrontend.js (modified) (1 diff)
-
trunk/includes/Wheel_Of_Life.php (modified) (1 diff)
-
trunk/languages/wheel-of-life.pot (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/ClassLoader.php (modified) (18 diffs)
-
trunk/vendor/composer/InstalledVersions.php (modified) (6 diffs)
-
trunk/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_files.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_namespaces.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_psr4.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (3 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/wheel-of-life.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wheel-of-life/trunk/app/build/admin.asset.php
r2887037 r2919602 1 <?php return array('dependencies' => array(), 'version' => ' fc937b4cb1e522e7da45');1 <?php return array('dependencies' => array(), 'version' => '6c4786ec4b35a41fc943'); -
wheel-of-life/trunk/app/build/admin.css
r2887037 r2919602 1 @font-face{font-display:swap;font-family:Rubik;font-style:normal;font-weight:700;src:url(fonts/Rubik-ExtraBold.c5c6e5da.woff2) format("woff2"),url(fonts/Rubik-ExtraBold.ff3d317c.woff) format("woff")}@font-face{font-display:swap;font-family:Rubik;font-style:italic;font-weight:400;src:url(fonts/Rubik-Italic.414cdc14.woff2) format("woff2"),url(fonts/Rubik-Italic.42f993ca.woff) format("woff")}@font-face{font-display:swap;font-family:Rubik;font-style:italic;font-weight:700;src:url(fonts/Rubik-BoldItalic.5c692368.woff2) format("woff2"),url(fonts/Rubik-BoldItalic.9363153c.woff) format("woff")}@font-face{font-display:swap;font-family:Rubik;font-style:italic;font-weight:700;src:url(fonts/Rubik-ExtraBoldItalic.1676686e.woff2) format("woff2"),url(fonts/Rubik-ExtraBoldItalic.58854e63.woff) format("woff")}@font-face{font-display:swap;font-family:Rubik;font-style:italic;font-weight:900;src:url(fonts/Rubik-BlackItalic.c07f9d98.woff2) format("woff2"),url(fonts/Rubik-BlackItalic.9d114b0a.woff) format("woff")}@font-face{font-display:swap;font-family:Rubik;font-style:normal;font-weight:900;src:url(fonts/Rubik-Black.314a52e5.woff2) format("woff2"),url(fonts/Rubik-Black.d9706d41.woff) format("woff")}@font-face{font-display:swap;font-family:Rubik;font-style:normal;font-weight:700;src:url(fonts/Rubik-Bold.79cd5ccd.woff2) format("woff2"),url(fonts/Rubik-Bold.704be18a.woff) format("woff")}@font-face{font-display:swap;font-family:Rubik;font-style:normal;font-weight:300;src:url(fonts/Rubik-Light.19357e65.woff2) format("woff2"),url(fonts/Rubik-Light.dd918667.woff) format("woff")}@font-face{font-display:swap;font-family:Rubik;font-style:normal;font-weight:600;src:url(fonts/Rubik-SemiBold.9c329416.woff2) format("woff2"),url(fonts/Rubik-SemiBold.e9c53c58.woff) format("woff")}@font-face{font-display:swap;font-family:Rubik;font-style:italic;font-weight:500;src:url(fonts/Rubik-MediumItalic.166f5a8d.woff2) format("woff2"),url(fonts/Rubik-MediumItalic.0fcdfe1c.woff) format("woff")}@font-face{font-display:swap;font-family:Rubik;font-style:normal;font-weight:500;src:url(fonts/Rubik-Medium.5f4249fe.woff2) format("woff2"),url(fonts/Rubik-Medium.74fded82.woff) format("woff")}@font-face{font-display:swap;font-family:Rubik;font-style:italic;font-weight:300;src:url(fonts/Rubik-LightItalic.da03b1c7.woff2) format("woff2"),url(fonts/Rubik-LightItalic.3feb3e89.woff) format("woff")}@font-face{font-display:swap;font-family:Rubik;font-style:normal;font-weight:400;src:url(fonts/Rubik-Regular.855df8a4.woff2) format("woff2"),url(fonts/Rubik-Regular.882e9e0e.woff) format("woff")}@font-face{font-display:swap;font-family:Rubik;font-style:italic;font-weight:600;src:url(fonts/Rubik-SemiBoldItalic.ec685a6f.woff2) format("woff2"),url(fonts/Rubik-SemiBoldItalic.5aaeaf84.woff) format("woff")}@keyframes fadeInDown{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInRight{0%{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}@keyframes popup{0%{transform:scale(0)}80%{transform:scale(1.2)}to{transform:scale(1)}}@keyframes cw-loader-spinner{0%{transform:rotate(0turn)}to{transform:rotate(1turn)}}.fadeInUp{animation:fadeInUp .5s cubic-bezier(.23,1,.32,1)}.fadeIn{animation:fadeIn .5s cubic-bezier(.23,1,.32,1)}.fadeInRight{animation:fadeInRight .5s cubic-bezier(.23,1,.32,1)}.cw-loader{display:flex}.cw-loader:after{animation:cw-loader-spinner .9s ease infinite;border:2px solid rgba(0,0,0,.2);border-radius:50%;border-top-color:#000;content:"";display:block;height:16px;margin:auto auto auto .5rem;width:16px}:root,:root .post-type-wheel{--bg-color:var(--gray-100);--primary-color:#038181;--primary- light-color:#ecf7f7;--gray-600:#262933;--gray-500:#7c8294;--gray-400:#a3aabf;--gray-300:#dcdfea;--gray-200:#eceff8;--gray-100:#fafbff;--green:#1db53f;--green-light:#d9ffe1;--font-color:var(--gray-500);--white-color:#fff;--primary-font:"Rubik",sans-serif;--box-shadow:0 8px 20px rgba(38,41,51,.05);--wol-sidebar-width:320px}*{box-sizing:border-box}iframe,img,svg{vertical-align:top}.wheeloflife-error-msg{color:red}.wheeloflife-success-msg{color:green}.wheeloflife-info-msg{color:#306eff}td .wheeloflife-error-msg{display:block;text-align:center}canvas.polarArea{margin:0 auto;max-height:450px;max-width:450px;width:100%!important}canvas.line{max-height:320px}.wheeloflife-btn,button{background:none;border:1px solid var(--gray-300);border-radius:.25rem;color:var(--gray-400);cursor:pointer;font-size:1rem;line-height:1.4;padding:.5rem 1rem;position:relative;text-align:center;transition:all .3s ease;z-index:1}.wheeloflife-btn path,.wheeloflife-btn svg,button path,button svg{transition:all .3s ease}.wheeloflife-btn svg,button svg{max-height:20px;vertical-align:middle}.wheeloflife-btn:hover,button:hover{border-color:var(--primary-color);color:var(--primary-color);text-decoration:none}.wheeloflife-btn:hover svg path,button:hover svg path{stroke:var(--primary-color)}.wheeloflife-btn:active,button:active{background-color:var(--primary-light-color)}.wheeloflife-btn.primary,button.primary{background-color:var(--primary-color);border-color:var(--primary-color);color:#fff}.wheeloflife-btn.primary:hover,button.primary:hover{background-color:var(--gray-600);border-color:var(--gray-600)}.wheeloflife-btn.primary.cw-loader:after,button.primary.cw-loader:after{border:2px solid hsla(0,0%,100%,.2);border-top-color:#fff}.wheeloflife-btn.borderd-primary,button.borderd-primary{border-color:var(--primary-color);color:var(--primary-color)}.wheeloflife-btn.borderd-primary.cw-loader:after,button.borderd-primary.cw-loader:after{border:2px solid rgba(3,129,129,.2);border-top:2px solid var(--primary-color)}.wheeloflife-btn.borderd-primary:hover,button.borderd-primary:hover{background:var(--primary-color);color:#fff}.wheeloflife-btn.borderd-primary:hover.cw-loader:after,button.borderd-primary:hover.cw-loader:after{border:2px solid hsla(0,0%,100%,.2);border-top-color:#fff}.wheeloflife-button-group{display:inline-flex;flex-wrap:wrap}.wheeloflife-button-group .wheeloflife-btn+.wheeloflife-btn,.wheeloflife-button-group button+button{margin-left:1rem}.wheeloflife-filter-buttons{border:1px solid var(--gray-300);border-radius:.25rem;display:flex}.wheeloflife-filter-buttons button{border:none;border-radius:0;color:var(--gray-600);font-size:1rem;line-height:1.5;padding:.5rem 1rem}.wheeloflife-filter-buttons button:first-child{border-radius:.25rem 0 0 .25rem}.wheeloflife-filter-buttons button:last-child{border-radius:0 .25rem .25rem 0}.wheeloflife-filter-buttons button:not(:last-child){border-right:1px solid var(--gray-300)}.wheeloflife-filter-buttons button.active{background:var(--primary-light-color);box-shadow:0 0 0 1px var(--primary-color);color:var(--primary-color)}button.wheeloflife-copy-btn{padding:.5rem;position:relative}button.wheeloflife-copy-btn:before{bottom:100%;content:"";left:50%;margin-bottom:-5px;position:absolute;transform:translateX(-50%);transition:all .3s ease}button.wheeloflife-copy-btn.copied:before{background-color:rgba(38,41,51,.8);border-radius:.25rem;color:#fff;content:"Copied";font-size:12px;line-height:1.7;margin-bottom:10px;padding:.25rem .5rem;z-index:11}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.wheeloflife-field-info{color:var(--gray-400);display:inline-block;font-size:1rem;line-height:1.5rem;margin-top:.5rem}.wheeloflife-field-info a{color:var(--primary-color);text-decoration:none}.wheeloflife-field-info a:hover{text-decoration:underline}.wheeloflife-dropdown-wrap{display:inline-block;position:relative}.wheeloflife-dropdown-wrap .wheeloflife-dropdown-btn{border:none;padding:.5rem}.wheeloflife-dropdown-wrap .wheeloflife-dropdown-btn.active{background-color:var(--primary-light-color);color:var(--primary-color)}.wheeloflife-dropdown-wrap .wheeloflife-dropdown-btn.active svg path{stroke:var(--primary-color)}.wheeloflife-dropdown-wrap .dropdown-options{animation:fadeInUp .2s ease;background-color:#fff;border:1px solid var(--gray-200);border-radius:.5rem;box-shadow:var(--box-shadow);left:0;margin-top:10px;min-width:160px;position:absolute;top:100%;z-index:11}.wheeloflife-dropdown-wrap .dropdown-options:after,.wheeloflife-dropdown-wrap .dropdown-options:before{border:5px solid transparent;bottom:100%;content:"";left:17px;position:absolute;transform:translateX(50%)}.wheeloflife-dropdown-wrap .dropdown-options:before{border-bottom-color:var(--gray-200);margin-bottom:1px;transform:translateX(50%) scale(1.1)}.wheeloflife-dropdown-wrap .dropdown-options:after{border-bottom-color:#fff}.wheeloflife-dropdown-wrap .dropdown-options a,.wheeloflife-dropdown-wrap .dropdown-options button{border:none;border-radius:0;color:var(--font-color);display:block;font-size:1rem;line-height:1.4;padding:.5rem 1rem;text-align:left;text-decoration:none;width:100%}.wheeloflife-dropdown-wrap .dropdown-options a:hover,.wheeloflife-dropdown-wrap .dropdown-options button:hover{background-color:var(--gray-100);color:var(--gray-600)}.wheeloflife-dropdown-wrap .dropdown-options a:first-child,.wheeloflife-dropdown-wrap .dropdown-options button:first-child{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.wheeloflife-dropdown-wrap .dropdown-options a:last-child,.wheeloflife-dropdown-wrap .dropdown-options button:last-child{border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem}.wheeloflife-dropdown-wrap .dropdown-options a.footer-btn,.wheeloflife-dropdown-wrap .dropdown-options button.footer-btn{border-top:1px solid var(--gray-200)}.wheeloflife-dropdown-wrap .dropdown-options a.delete-btn,.wheeloflife-dropdown-wrap .dropdown-options button.delete-btn{color:var(--primary-color)}.wheeloflife-dropdown-wrap.right .dropdown-options{left:auto;right:0}.wheeloflife-dropdown-wrap.right .dropdown-options:after,.wheeloflife-dropdown-wrap.right .dropdown-options:before{left:auto;right:17px}.custom-scrollbar{margin-right:-10px;max-height:100%;overflow:auto;padding-right:4px}.custom-scrollbar::-webkit-scrollbar{height:.375rem;width:.375rem}.custom-scrollbar::-webkit-scrollbar-track{background-color:var(--gray-200)}.custom-scrollbar::-webkit-scrollbar-thumb,.custom-scrollbar::-webkit-scrollbar-track{border-radius:.375rem;opacity:0;-webkit-transition:all .3s ease;transition:all .3s ease;visibility:hidden}.custom-scrollbar::-webkit-scrollbar-thumb{background-color:var(--gray-400)}.custom-scrollbar:hover::-webkit-scrollbar-thumb,.custom-scrollbar:hover::-webkit-scrollbar-track{opacity:1;visibility:visible}.wheeloflife-card{background-color:#fff;border:1px solid var(--gray-200);border-radius:.5rem;box-shadow:var(--box-shadow);margin-bottom:1.5rem;position:relative;z-index:1}.wheeloflife-card .wheeloflife-tabnav{background:none;padding-bottom:0}.wheeloflife-card .wheeloflife-card-close-btn{border:none;line-height:1;padding:.25rem}.wheeloflife-card .wheeloflife-card-header{border-bottom:1px solid var(--gray-200);padding:1rem 1.5rem}.wheeloflife-card .wheeloflife-card-header .wheeloflife-title{font-size:1.25rem;font-weight:400;line-height:1.6}.wheeloflife-card .wheeloflife-card-header p{margin-bottom:0;margin-top:.5rem}.wheeloflife-card .wheeloflife-card-header.has-btn{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between}.wheeloflife-card .wheeloflife-card-body{padding:1.5rem}.wheeloflife-card .wheeloflife-card-footer{border-top:1px solid var(--gray-200);padding:1.5rem}.wheeloflife-card .has-nav-tab{padding-bottom:0;padding-top:1.375rem}.wheeloflife-card .wheeloflife-table,.wheeloflife-card table{border-top:1px solid var(--gray-200)}.wheeloflife-card .wheeloflife-table td,.wheeloflife-card .wheeloflife-table th,.wheeloflife-card table td,.wheeloflife-card table th{padding-left:1.5rem;padding-right:1.5rem}.wheeloflife-card-header-actions{display:flex}.wheeloflife-card-header-actions>*+*{margin-left:1rem}.wheeloflife-field .wheeloflife-shortcode-wrap,.wheeloflife-shortcode-wrap{display:inline-block;position:relative}.wheeloflife-field .wheeloflife-shortcode-wrap input[type=text],.wheeloflife-shortcode-wrap input[type=text]{line-height:1.4;min-height:40px;padding:.5rem 3.5rem .5rem 1rem}.wheeloflife-field .wheeloflife-shortcode-wrap button,.wheeloflife-shortcode-wrap button{border-bottom-left-radius:0;border-color:transparent;border-left:1px solid var(--gray-300);border-top-left-radius:0;padding:.5rem .625rem;position:absolute;right:0;top:0}.wheeloflife-field .wheeloflife-shortcode-wrap .copy-info,.wheeloflife-shortcode-wrap .copy-info{animation:fadeInUpInfo .1s ease-in;background-color:rgba(38,41,51,.8);border-radius:.25rem;bottom:100%;color:#fff;font-size:.875rem;line-height:1.7;margin-bottom:1.188rem;padding:.5rem 1rem;position:absolute;right:46px;transform:translateX(50%);z-index:11}@keyframes fadeInUpInfo{0%{opacity:0;transform:translate(50%,15px)}to{opacity:1;transform:translate(50%)}}.wheeloflife-field .wheeloflife-shortcode-wrap .copy-info:before,.wheeloflife-shortcode-wrap .copy-info:before{border:6px solid transparent;border-top-color:rgba(38,41,51,.8);content:"";left:50%;position:absolute;top:100%;transform:translateX(-50%)}.wof-options-container{padding:1rem}.wof-options-container .components-base-control{margin-bottom:1.5rem}.wof-options-container .components-base-control .components-base-control__field label.components-base-control__label,.wof-options-container .components-base-control .components-base-control__field label.components-input-control__label{margin-bottom:8px;padding-bottom:0}.wheeloflife-icon-widget{align-items:center;color:var(--font-color);display:flex;font-size:1rem;line-height:1.5}.wheeloflife-icon-widget .wheeloflife-icon-icon{align-items:center;background:var(--primary-light-color);border-radius:.25rem;color:var(--primary-color);display:flex;font-size:20px;height:40px;justify-content:center;margin-right:1rem;overflow:hidden;width:40px}.wheeloflife-icon-widget .wheeloflife-icon-icon img,.wheeloflife-icon-widget .wheeloflife-icon-icon svg{height:1em;-o-object-fit:cover;object-fit:cover;width:1em}.wheeloflife-icon-widget .wheeloflife-icon-icon.radius-50{border-radius:50%}.wheeloflife-icon-widget .wheeloflife-icon-icon>div{display:inherit}.wheeloflife-icon-widget a{color:inherit;text-decoration:none}.wheeloflife-icon-widget a:hover{color:var(--primary-color)}.wheeloflife-cta-preview{border-radius:.5rem;overflow:hidden;position:relative;z-index:1}.wheeloflife-cta-preview.has-overlay:before{background:var(--cta-overlay-color);content:"";height:100%;left:0;position:absolute;right:0;top:0;width:100%;z-index:-1}.wheeloflife-cta-preview .wheeloflife-cta-title{line-height:normal;margin-bottom:1rem;margin-top:0}.wheeloflife-cta-preview .wheeloflife-cta-description{line-height:1.5;margin-bottom:1rem;text-align:left}.wheeloflife-cta-preview .wheeloflife-cta-btns{display:flex;flex-wrap:wrap;justify-content:center}.wheeloflife-cta-preview .wheeloflife-cta-btns .wheeloflife-cta-btn+.wheeloflife-cta-btn{margin-left:1rem}.wheeloflife-cta-preview .wheeloflife-cta-btns .wheeloflife-cta-btn{border:none}.wheeloflife-field{display:flex;flex-direction:column;margin-bottom:1rem}.wheeloflife-field:last-child{margin-bottom:0}.wheeloflife-field label{font-size:1rem}.wheeloflife-field label.user-details-label{color:var(--gray-500)}.wheeloflife-field .value{color:var(--gray-600);display:block;font-size:1rem;padding:.5rem 0}.wheeloflife-field.flex-row{flex-direction:row}.wheeloflife-field.flex-row label{margin:0 1.5rem 0 0;padding:.5rem 0}.wheeloflife-field.flex-row .wheeloflife-input-wrap{flex:1}.wheeloflife-field label{color:var(--gray-600);display:block;margin-bottom:.5rem}.wheeloflife-field #wheelOfLifeAdminRoot select,.wheeloflife-field input[type=date],.wheeloflife-field input[type=email],.wheeloflife-field input[type=number],.wheeloflife-field input[type=search],.wheeloflife-field input[type=text],.wheeloflife-field input[type=url],.wheeloflife-field select.wheeloflife-select,.wheeloflife-field textarea{border:1px solid var(--gray-300);border-radius:.25rem;font-size:1rem;font-weight:400;line-height:1.4;max-width:100%;padding:.5rem 1rem;width:100%}.wheeloflife-field #wheelOfLifeAdminRoot select:focus,.wheeloflife-field input[type=date]:focus,.wheeloflife-field input[type=email]:focus,.wheeloflife-field input[type=number]:focus,.wheeloflife-field input[type=search]:focus,.wheeloflife-field input[type=text]:focus,.wheeloflife-field input[type=url]:focus,.wheeloflife-field select.wheeloflife-select:focus,.wheeloflife-field textarea:focus{border-color:var(--primary-color);box-shadow:0 0 5px var(--primary-light-color)}.wheeloflife-field #wheelOfLifeAdminRoot select::-webkit-placeholder,.wheeloflife-field input[type=date]::-webkit-placeholder,.wheeloflife-field input[type=email]::-webkit-placeholder,.wheeloflife-field input[type=number]::-webkit-placeholder,.wheeloflife-field input[type=search]::-webkit-placeholder,.wheeloflife-field input[type=text]::-webkit-placeholder,.wheeloflife-field input[type=url]::-webkit-placeholder,.wheeloflife-field select.wheeloflife-select::-webkit-placeholder,.wheeloflife-field textarea::-webkit-placeholder{color:var(--gray-400);font-weight:400}.wheeloflife-field #wheelOfLifeAdminRoot select::-moz-placeholder,.wheeloflife-field input[type=date]::-moz-placeholder,.wheeloflife-field input[type=email]::-moz-placeholder,.wheeloflife-field input[type=number]::-moz-placeholder,.wheeloflife-field input[type=search]::-moz-placeholder,.wheeloflife-field input[type=text]::-moz-placeholder,.wheeloflife-field input[type=url]::-moz-placeholder,.wheeloflife-field select.wheeloflife-select::-moz-placeholder,.wheeloflife-field textarea::-moz-placeholder{color:var(--gray-400);font-weight:400}.wheeloflife-field #wheelOfLifeAdminRoot select::placeholder,.wheeloflife-field input[type=date]::placeholder,.wheeloflife-field input[type=email]::placeholder,.wheeloflife-field input[type=number]::placeholder,.wheeloflife-field input[type=search]::placeholder,.wheeloflife-field input[type=text]::placeholder,.wheeloflife-field input[type=url]::placeholder,.wheeloflife-field select.wheeloflife-select::placeholder,.wheeloflife-field textarea::placeholder{color:var(--gray-400);font-weight:400}.wheeloflife-field #wheelOfLifeAdminRoot select:-moz-read-only,.wheeloflife-field input[type=date]:-moz-read-only,.wheeloflife-field input[type=email]:-moz-read-only,.wheeloflife-field input[type=number]:-moz-read-only,.wheeloflife-field input[type=search]:-moz-read-only,.wheeloflife-field input[type=text]:-moz-read-only,.wheeloflife-field input[type=url]:-moz-read-only,.wheeloflife-field select.wheeloflife-select:-moz-read-only,.wheeloflife-field textarea:-moz-read-only{background-color:var(--bg-color);color:var(--font-color)}.wheeloflife-field #wheelOfLifeAdminRoot select:read-only,.wheeloflife-field input[type=date]:read-only,.wheeloflife-field input[type=email]:read-only,.wheeloflife-field input[type=number]:read-only,.wheeloflife-field input[type=search]:read-only,.wheeloflife-field input[type=text]:read-only,.wheeloflife-field input[type=url]:read-only,.wheeloflife-field select.wheeloflife-select:read-only,.wheeloflife-field textarea:read-only{background-color:var(--bg-color);color:var(--font-color)}.wheeloflife-fields-with-devider .wheeloflife-field:not(:first-child){border-top:1px solid var(--gray-200);padding-top:1rem}.wheelolife-radio-group{align-items:center;display:flex;flex-wrap:wrap}.wheelolife-radio-group>label{margin-right:1.5rem}.wheelolife-radio-group>label:hover input[type=radio]{border-color:var(--primary-color)}.wheelolife-radio-group input[type=radio]{background:none;border:1px solid var(--gray-300);height:20px;margin-top:-2px;transition:all .3s ease;width:20px}.wheelolife-radio-group input[type=radio]:before{content:none}.wheelolife-radio-group input[type=radio]:checked{border-color:var(--primary-color);border-width:5px}.wheelolife-radio-group input[type=radio]:focus,.wheelolife-radio-group input[type=radio]:hover{box-shadow:0 0 1px var(--primary-color)}.wheeloflife-switch-wrap input[type=checkbox]{all:unset;height:0;opacity:0;width:0}.wheeloflife-switch-wrap input[type=checkbox]:before{content:none}.wheeloflife-switch-wrap .switch{background-color:var(--gray-300);border-radius:.625rem;display:inline-block;height:1.25rem;margin-right:.5rem;position:relative;transition:all .3s ease;width:2.25rem}.wheeloflife-switch-wrap .switch:before{background-color:#fff;border-radius:50%;content:"";height:1rem;left:0;margin:.125rem;position:absolute;top:0;transition:all .3s ease;width:1rem}.wheeloflife-switch-wrap .label{margin-right:1.5rem}.wheeloflife-switch-wrap label{align-items:center;display:flex;margin-bottom:0!important}.wheeloflife-switch-wrap label span{align-items:center;display:inline-flex;vertical-align:middle}.wheeloflife-switch-wrap label input[type=checkbox]:checked+span{color:var(--primary-color)}.wheeloflife-switch-wrap label input[type=checkbox]:checked+span .switch{background-color:var(--primary-color)}.wheeloflife-switch-wrap label input[type=checkbox]:checked+span .switch:before{margin-left:1.125rem}.wheeloflife-switch-wrap.labelAlign-left label span .switch{order:2}.wheeloflife-switch-wrap.labelAlign-left label span .label{order:1}.ct-image-tab .remove-button:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%27260%27 height=%27260%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M0 130.004C0 58.2 58.203.002 129.998.002 201.796.002 260 58.201 260 130.004c0 71.792-58.204 129.995-130.002 129.995C58.203 259.999 0 201.796 0 130.004Z%27 fill=%27%23E04F5F%27/%3E%3Cpath d=%27M200.988 108.099H59.012a3.773 3.773 0 0 0-3.773 3.773v36.256a3.773 3.773 0 0 0 3.773 3.773h141.976a3.773 3.773 0 0 0 3.773-3.773v-36.256a3.774 3.774 0 0 0-3.773-3.773Z%27 fill=%27%23fff%27/%3E%3C/svg%3E")}.ct-image-tab .edit-button:before,.ct-image-tab .remove-button:before{background-position:50%;background-repeat:no-repeat;background-size:100%;content:"";display:inline-block;height:1em;width:1em}.ct-image-tab .edit-button:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%27340%27 height=%27340%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cg clip-path=%27url%28%23a%29%27 fill=%27%23000%27%3E%3Cpath d=%27M177.707 135.15v17.094c0 5.429 1.084 9.984 3.224 13.533 2.952 4.897 7.798 7.704 13.299 7.704 5.391 0 10.747-2.625 15.92-7.797l56.461-56.461c12.396-12.397 12.396-32.568 0-44.965L210.15 7.798C204.977 2.623 199.621 0 194.23 0c-8.225 0-16.523 6.568-16.523 21.237v15.525c-80.16 4.734-146.52 66.251-156.382 146.792a9.959 9.959 0 0 0 9.883 11.172 9.958 9.958 0 0 0 8.042-4.078c26.453-36.145 68.927-57.724 113.617-57.724 8.28 0 16.606.747 24.84 2.226Z%27/%3E%3Cpath d=%27M312.278 145.974a9.958 9.958 0 0 0-11.704 3.38c-26.451 36.143-68.925 57.722-113.615 57.722-8.28 0-16.606-.747-24.84-2.226v-17.094c0-14.669-8.3-21.237-16.523-21.237-5.391 0-10.747 2.625-15.922 7.8l-56.461 56.458c-12.394 12.397-12.394 32.568.002 44.967l56.459 56.458c5.175 5.175 10.531 7.798 15.922 7.798 8.223 0 16.523-6.568 16.523-21.237v-15.525c80.162-4.734 146.519-66.251 156.382-146.789a9.96 9.96 0 0 0-6.223-10.475Z%27/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id=%27a%27%3E%3Cpath fill=%27%23fff%27 d=%27M0 0h340v340H0z%27/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E")}.ct-image-tab .actions{display:flex}.ct-image-tab .actions .edit-button{flex:1;margin-right:.5rem}1 @font-face{font-display:swap;font-family:Rubik;font-style:normal;font-weight:700;src:url(fonts/Rubik-ExtraBold.c5c6e5da.woff2) format("woff2"),url(fonts/Rubik-ExtraBold.ff3d317c.woff) format("woff")}@font-face{font-display:swap;font-family:Rubik;font-style:italic;font-weight:400;src:url(fonts/Rubik-Italic.414cdc14.woff2) format("woff2"),url(fonts/Rubik-Italic.42f993ca.woff) format("woff")}@font-face{font-display:swap;font-family:Rubik;font-style:italic;font-weight:700;src:url(fonts/Rubik-BoldItalic.5c692368.woff2) format("woff2"),url(fonts/Rubik-BoldItalic.9363153c.woff) format("woff")}@font-face{font-display:swap;font-family:Rubik;font-style:italic;font-weight:700;src:url(fonts/Rubik-ExtraBoldItalic.1676686e.woff2) format("woff2"),url(fonts/Rubik-ExtraBoldItalic.58854e63.woff) format("woff")}@font-face{font-display:swap;font-family:Rubik;font-style:italic;font-weight:900;src:url(fonts/Rubik-BlackItalic.c07f9d98.woff2) format("woff2"),url(fonts/Rubik-BlackItalic.9d114b0a.woff) format("woff")}@font-face{font-display:swap;font-family:Rubik;font-style:normal;font-weight:900;src:url(fonts/Rubik-Black.314a52e5.woff2) format("woff2"),url(fonts/Rubik-Black.d9706d41.woff) format("woff")}@font-face{font-display:swap;font-family:Rubik;font-style:normal;font-weight:700;src:url(fonts/Rubik-Bold.79cd5ccd.woff2) format("woff2"),url(fonts/Rubik-Bold.704be18a.woff) format("woff")}@font-face{font-display:swap;font-family:Rubik;font-style:normal;font-weight:300;src:url(fonts/Rubik-Light.19357e65.woff2) format("woff2"),url(fonts/Rubik-Light.dd918667.woff) format("woff")}@font-face{font-display:swap;font-family:Rubik;font-style:normal;font-weight:600;src:url(fonts/Rubik-SemiBold.9c329416.woff2) format("woff2"),url(fonts/Rubik-SemiBold.e9c53c58.woff) format("woff")}@font-face{font-display:swap;font-family:Rubik;font-style:italic;font-weight:500;src:url(fonts/Rubik-MediumItalic.166f5a8d.woff2) format("woff2"),url(fonts/Rubik-MediumItalic.0fcdfe1c.woff) format("woff")}@font-face{font-display:swap;font-family:Rubik;font-style:normal;font-weight:500;src:url(fonts/Rubik-Medium.5f4249fe.woff2) format("woff2"),url(fonts/Rubik-Medium.74fded82.woff) format("woff")}@font-face{font-display:swap;font-family:Rubik;font-style:italic;font-weight:300;src:url(fonts/Rubik-LightItalic.da03b1c7.woff2) format("woff2"),url(fonts/Rubik-LightItalic.3feb3e89.woff) format("woff")}@font-face{font-display:swap;font-family:Rubik;font-style:normal;font-weight:400;src:url(fonts/Rubik-Regular.855df8a4.woff2) format("woff2"),url(fonts/Rubik-Regular.882e9e0e.woff) format("woff")}@font-face{font-display:swap;font-family:Rubik;font-style:italic;font-weight:600;src:url(fonts/Rubik-SemiBoldItalic.ec685a6f.woff2) format("woff2"),url(fonts/Rubik-SemiBoldItalic.5aaeaf84.woff) format("woff")}@keyframes fadeInDown{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInRight{0%{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}@keyframes popup{0%{transform:scale(0)}80%{transform:scale(1.2)}to{transform:scale(1)}}@keyframes cw-loader-spinner{0%{transform:rotate(0turn)}to{transform:rotate(1turn)}}.fadeInUp{animation:fadeInUp .5s cubic-bezier(.23,1,.32,1)}.fadeIn{animation:fadeIn .5s cubic-bezier(.23,1,.32,1)}.fadeInRight{animation:fadeInRight .5s cubic-bezier(.23,1,.32,1)}.cw-loader{display:flex}.cw-loader:after{animation:cw-loader-spinner .9s ease infinite;border:2px solid rgba(0,0,0,.2);border-radius:50%;border-top-color:#000;content:"";display:block;height:16px;margin:auto auto auto .5rem;width:16px}:root,:root .post-type-wheel{--bg-color:var(--gray-100);--primary-color:#038181;--primary-color-rgb:3,129,129;--primary-light-color:#ecf7f7;--gray-600:#262933;--gray-500:#7c8294;--gray-400:#a3aabf;--gray-300:#dcdfea;--gray-200:#eceff8;--gray-100:#fafbff;--green:#1db53f;--green-light:#d9ffe1;--font-color:var(--gray-500);--white-color:#fff;--primary-font:"Rubik",sans-serif;--box-shadow:0 8px 20px rgba(38,41,51,.05);--wol-sidebar-width:320px}*{box-sizing:border-box}iframe,img,svg{vertical-align:top}.wheeloflife-error-msg{color:red}.wheeloflife-success-msg{color:green}.wheeloflife-info-msg{color:#306eff}td .wheeloflife-error-msg{display:block;text-align:center}canvas.polarArea{margin:0 auto;max-height:450px;max-width:450px;width:100%!important}canvas.line{max-height:320px}.wheeloflife-btn,button{background:none;border:1px solid var(--gray-300);border-radius:.25rem;color:var(--gray-400);cursor:pointer;font-size:1rem;line-height:1.4;padding:.5rem 1rem;position:relative;text-align:center;transition:all .3s ease;z-index:1}.wheeloflife-btn svg,button svg{max-height:20px;vertical-align:middle}.wheeloflife-btn:hover,button:hover{border-color:var(--primary-color);color:var(--primary-color);text-decoration:none}.wheeloflife-btn:active,button:active{background-color:var(--primary-light-color)}.wheeloflife-btn:not(.primary,.secondary,.borderd-primary):hover svg path,button:not(.primary,.secondary,.borderd-primary):hover svg path{stroke:var(--primary-color)}.wheeloflife-btn>.icon:first-child,.wheeloflife-btn>i:first-child,button>.icon:first-child,button>i:first-child{margin-right:10px}.wheeloflife-btn>.icon:last-child,.wheeloflife-btn>i:last-child,button>.icon:last-child,button>i:last-child{margin-left:10px}.wheeloflife-btn.primary,button.primary{background-color:var(--primary-color);border-color:var(--primary-color);color:#fff}.wheeloflife-btn.primary:hover,button.primary:hover{background-color:var(--gray-600);border-color:var(--gray-600)}.wheeloflife-btn.primary.cw-loader:after,button.primary.cw-loader:after{border:2px solid hsla(0,0%,100%,.2);border-top-color:#fff}.wheeloflife-btn.secondary,button.secondary{background-color:rgba(var(--primary-color-rgb),.1);border-color:rgba(var(--primary-color-rgb),.1);color:var(--primary-color)}.wheeloflife-btn.secondary:hover,button.secondary:hover{background:var(--primary-color);color:#fff}.wheeloflife-btn.secondary:hover.cw-loader:after,button.secondary:hover.cw-loader:after{border:2px solid hsla(0,0%,100%,.2);border-top-color:#fff}.wheeloflife-btn.borderd-primary,button.borderd-primary{border-color:var(--primary-color);color:var(--primary-color)}.wheeloflife-btn.borderd-primary.cw-loader:after,button.borderd-primary.cw-loader:after{border:2px solid rgba(3,129,129,.2);border-top:2px solid var(--primary-color)}.wheeloflife-btn.borderd-primary:hover,button.borderd-primary:hover{background:var(--primary-color);color:#fff}.wheeloflife-btn.borderd-primary:hover.cw-loader:after,button.borderd-primary:hover.cw-loader:after{border:2px solid hsla(0,0%,100%,.2);border-top-color:#fff}.wheeloflife-button-group{display:inline-flex;flex-wrap:wrap}.wheeloflife-button-group .wheeloflife-btn+.wheeloflife-btn,.wheeloflife-button-group button+button{margin-left:1rem}.wheeloflife-filter-buttons{border:1px solid var(--gray-300);border-radius:.25rem;display:flex}.wheeloflife-filter-buttons button{border:none;border-radius:0;color:var(--gray-600);font-size:1rem;line-height:1.5;padding:.5rem 1rem}.wheeloflife-filter-buttons button:first-child{border-radius:.25rem 0 0 .25rem}.wheeloflife-filter-buttons button:last-child{border-radius:0 .25rem .25rem 0}.wheeloflife-filter-buttons button:not(:last-child){border-right:1px solid var(--gray-300)}.wheeloflife-filter-buttons button.active{background:var(--primary-light-color);box-shadow:0 0 0 1px var(--primary-color);color:var(--primary-color)}button.wheeloflife-copy-btn{padding:.5rem;position:relative}button.wheeloflife-copy-btn:before{bottom:100%;content:"";left:50%;margin-bottom:-5px;position:absolute;transform:translateX(-50%);transition:all .3s ease}button.wheeloflife-copy-btn.copied:before{background-color:rgba(38,41,51,.8);border-radius:.25rem;color:#fff;content:"Copied";font-size:12px;line-height:1.7;margin-bottom:10px;padding:.25rem .5rem;z-index:11}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.wheeloflife-field-info{color:var(--gray-400);display:inline-block;font-size:1rem;line-height:1.5rem;margin-top:.5rem}.wheeloflife-field-info a{color:var(--primary-color);text-decoration:none}.wheeloflife-field-info a:hover{text-decoration:underline}.wheeloflife-dropdown-wrap{display:inline-block;position:relative}.wheeloflife-dropdown-wrap .wheeloflife-dropdown-btn{border:none;padding:.5rem}.wheeloflife-dropdown-wrap .wheeloflife-dropdown-btn.active{background-color:var(--primary-light-color);color:var(--primary-color)}.wheeloflife-dropdown-wrap .wheeloflife-dropdown-btn.active svg path{stroke:var(--primary-color)}.wheeloflife-dropdown-wrap .dropdown-options{animation:fadeInUp .2s ease;background-color:#fff;border:1px solid var(--gray-200);border-radius:.5rem;box-shadow:var(--box-shadow);left:0;margin-top:10px;min-width:160px;position:absolute;top:100%;z-index:11}.wheeloflife-dropdown-wrap .dropdown-options:after,.wheeloflife-dropdown-wrap .dropdown-options:before{border:5px solid transparent;bottom:100%;content:"";left:17px;position:absolute;transform:translateX(50%)}.wheeloflife-dropdown-wrap .dropdown-options:before{border-bottom-color:var(--gray-200);margin-bottom:1px;transform:translateX(50%) scale(1.1)}.wheeloflife-dropdown-wrap .dropdown-options:after{border-bottom-color:#fff}.wheeloflife-dropdown-wrap .dropdown-options a,.wheeloflife-dropdown-wrap .dropdown-options button{border:none;border-radius:0;color:var(--font-color);display:block;font-size:1rem;line-height:1.4;padding:.5rem 1rem;text-align:left;text-decoration:none;width:100%}.wheeloflife-dropdown-wrap .dropdown-options a:hover,.wheeloflife-dropdown-wrap .dropdown-options button:hover{background-color:var(--gray-100);color:var(--gray-600)}.wheeloflife-dropdown-wrap .dropdown-options a:first-child,.wheeloflife-dropdown-wrap .dropdown-options button:first-child{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.wheeloflife-dropdown-wrap .dropdown-options a:last-child,.wheeloflife-dropdown-wrap .dropdown-options button:last-child{border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem}.wheeloflife-dropdown-wrap .dropdown-options a.footer-btn,.wheeloflife-dropdown-wrap .dropdown-options button.footer-btn{border-top:1px solid var(--gray-200)}.wheeloflife-dropdown-wrap .dropdown-options a.delete-btn,.wheeloflife-dropdown-wrap .dropdown-options button.delete-btn{color:var(--primary-color)}.wheeloflife-dropdown-wrap.right .dropdown-options{left:auto;right:0}.wheeloflife-dropdown-wrap.right .dropdown-options:after,.wheeloflife-dropdown-wrap.right .dropdown-options:before{left:auto;right:17px}.custom-scrollbar{margin-right:-10px;max-height:100%;overflow:auto;padding-right:4px}.custom-scrollbar::-webkit-scrollbar{height:.375rem;width:.375rem}.custom-scrollbar::-webkit-scrollbar-track{background-color:var(--gray-200)}.custom-scrollbar::-webkit-scrollbar-thumb,.custom-scrollbar::-webkit-scrollbar-track{border-radius:.375rem;opacity:0;-webkit-transition:all .3s ease;transition:all .3s ease;visibility:hidden}.custom-scrollbar::-webkit-scrollbar-thumb{background-color:var(--gray-400)}.custom-scrollbar:hover::-webkit-scrollbar-thumb,.custom-scrollbar:hover::-webkit-scrollbar-track{opacity:1;visibility:visible}.wheeloflife-card{background-color:#fff;border:1px solid var(--gray-200);border-radius:.5rem;box-shadow:var(--box-shadow);margin-bottom:1.5rem;position:relative;z-index:1}.wheeloflife-card .wheeloflife-tabnav{background:none;padding-bottom:0}.wheeloflife-card .wheeloflife-card-close-btn{border:none;line-height:1;padding:.25rem}.wheeloflife-card .wheeloflife-card-header{border-bottom:1px solid var(--gray-200);padding:1rem 1.5rem}.wheeloflife-card .wheeloflife-card-header .wheeloflife-title{font-size:1.25rem;font-weight:400;line-height:1.6}.wheeloflife-card .wheeloflife-card-header p{margin-bottom:0;margin-top:.5rem}.wheeloflife-card .wheeloflife-card-header.has-btn{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between}.wheeloflife-card .wheeloflife-card-body{padding:1.5rem}.wheeloflife-card .wheeloflife-card-footer{border-top:1px solid var(--gray-200);padding:1.5rem}.wheeloflife-card .has-nav-tab{padding-bottom:0;padding-top:1.375rem}.wheeloflife-card .wheeloflife-table,.wheeloflife-card table{border-top:1px solid var(--gray-200)}.wheeloflife-card .wheeloflife-table td,.wheeloflife-card .wheeloflife-table th,.wheeloflife-card table td,.wheeloflife-card table th{padding-left:1.5rem;padding-right:1.5rem}.wheeloflife-card-header-actions{display:flex}.wheeloflife-card-header-actions>*+*{margin-left:1rem}.wheeloflife-field .wheeloflife-shortcode-wrap,.wheeloflife-shortcode-wrap{display:inline-block;position:relative}.wheeloflife-field .wheeloflife-shortcode-wrap input[type=text],.wheeloflife-shortcode-wrap input[type=text]{line-height:1.4;min-height:40px;padding:.5rem 3.5rem .5rem 1rem}.wheeloflife-field .wheeloflife-shortcode-wrap button,.wheeloflife-shortcode-wrap button{border-bottom-left-radius:0;border-color:transparent;border-left:1px solid var(--gray-300);border-top-left-radius:0;padding:.5rem .625rem;position:absolute;right:0;top:0}.wheeloflife-field .wheeloflife-shortcode-wrap .copy-info,.wheeloflife-shortcode-wrap .copy-info{animation:fadeInUpInfo .1s ease-in;background-color:rgba(38,41,51,.8);border-radius:.25rem;bottom:100%;color:#fff;font-size:.875rem;line-height:1.7;margin-bottom:1.188rem;padding:.5rem 1rem;position:absolute;right:46px;transform:translateX(50%);z-index:11}@keyframes fadeInUpInfo{0%{opacity:0;transform:translate(50%,15px)}to{opacity:1;transform:translate(50%)}}.wheeloflife-field .wheeloflife-shortcode-wrap .copy-info:before,.wheeloflife-shortcode-wrap .copy-info:before{border:6px solid transparent;border-top-color:rgba(38,41,51,.8);content:"";left:50%;position:absolute;top:100%;transform:translateX(-50%)}.wof-options-container{padding:1rem}.wof-options-container .components-base-control{margin-bottom:1.5rem}.wof-options-container .components-base-control .components-base-control__field label.components-base-control__label,.wof-options-container .components-base-control .components-base-control__field label.components-input-control__label{margin-bottom:8px;padding-bottom:0}.wheeloflife-icon-widget{align-items:center;color:var(--font-color);display:flex;font-size:1rem;line-height:1.5}.wheeloflife-icon-widget .wheeloflife-icon-icon{align-items:center;background:var(--primary-light-color);border-radius:.25rem;color:var(--primary-color);display:flex;font-size:20px;height:40px;justify-content:center;margin-right:1rem;overflow:hidden;width:40px}.wheeloflife-icon-widget .wheeloflife-icon-icon img,.wheeloflife-icon-widget .wheeloflife-icon-icon svg{height:1em;-o-object-fit:cover;object-fit:cover;width:1em}.wheeloflife-icon-widget .wheeloflife-icon-icon.radius-50{border-radius:50%}.wheeloflife-icon-widget .wheeloflife-icon-icon>div{display:inherit}.wheeloflife-icon-widget a{color:inherit;text-decoration:none}.wheeloflife-icon-widget a:hover{color:var(--primary-color)}.wheeloflife-cta-preview{border-radius:.5rem;overflow:hidden;position:relative;z-index:1}.wheeloflife-cta-preview.has-overlay:before{background:var(--cta-overlay-color);content:"";height:100%;left:0;position:absolute;right:0;top:0;width:100%;z-index:-1}.wheeloflife-cta-preview .wheeloflife-cta-title{line-height:normal;margin-bottom:1rem;margin-top:0}.wheeloflife-cta-preview .wheeloflife-cta-description{line-height:1.5;margin-bottom:1rem;text-align:left}.wheeloflife-cta-preview .wheeloflife-cta-btns{display:flex;flex-wrap:wrap;justify-content:center}.wheeloflife-cta-preview .wheeloflife-cta-btns .wheeloflife-cta-btn+.wheeloflife-cta-btn{margin-left:1rem}.wheeloflife-cta-preview .wheeloflife-cta-btns .wheeloflife-cta-btn{border:none}.wheeloflife-field{display:flex;flex-direction:column;margin-bottom:1rem}.wheeloflife-field:last-child{margin-bottom:0}.wheeloflife-field label{font-size:1rem}.wheeloflife-field label.user-details-label{color:var(--gray-500)}.wheeloflife-field .value{color:var(--gray-600);display:block;font-size:1rem;padding:.5rem 0}.wheeloflife-field.flex-row{flex-direction:row}.wheeloflife-field.flex-row label{margin:0 1.5rem 0 0;padding:.5rem 0}.wheeloflife-field.flex-row .wheeloflife-input-wrap{flex:1}.wheeloflife-field label{color:var(--gray-600);display:block;margin-bottom:.5rem}.wheeloflife-field #wheelOfLifeAdminRoot select,.wheeloflife-field input[type=date],.wheeloflife-field input[type=email],.wheeloflife-field input[type=number],.wheeloflife-field input[type=search],.wheeloflife-field input[type=text],.wheeloflife-field input[type=url],.wheeloflife-field select.wheeloflife-select,.wheeloflife-field textarea{border:1px solid var(--gray-300);border-radius:.25rem;font-size:1rem;font-weight:400;line-height:1.4;max-width:100%;padding:.5rem 1rem;width:100%}.wheeloflife-field #wheelOfLifeAdminRoot select:focus,.wheeloflife-field input[type=date]:focus,.wheeloflife-field input[type=email]:focus,.wheeloflife-field input[type=number]:focus,.wheeloflife-field input[type=search]:focus,.wheeloflife-field input[type=text]:focus,.wheeloflife-field input[type=url]:focus,.wheeloflife-field select.wheeloflife-select:focus,.wheeloflife-field textarea:focus{border-color:var(--primary-color);box-shadow:0 0 5px var(--primary-light-color)}.wheeloflife-field #wheelOfLifeAdminRoot select::-webkit-placeholder,.wheeloflife-field input[type=date]::-webkit-placeholder,.wheeloflife-field input[type=email]::-webkit-placeholder,.wheeloflife-field input[type=number]::-webkit-placeholder,.wheeloflife-field input[type=search]::-webkit-placeholder,.wheeloflife-field input[type=text]::-webkit-placeholder,.wheeloflife-field input[type=url]::-webkit-placeholder,.wheeloflife-field select.wheeloflife-select::-webkit-placeholder,.wheeloflife-field textarea::-webkit-placeholder{color:var(--gray-400);font-weight:400}.wheeloflife-field #wheelOfLifeAdminRoot select::-moz-placeholder,.wheeloflife-field input[type=date]::-moz-placeholder,.wheeloflife-field input[type=email]::-moz-placeholder,.wheeloflife-field input[type=number]::-moz-placeholder,.wheeloflife-field input[type=search]::-moz-placeholder,.wheeloflife-field input[type=text]::-moz-placeholder,.wheeloflife-field input[type=url]::-moz-placeholder,.wheeloflife-field select.wheeloflife-select::-moz-placeholder,.wheeloflife-field textarea::-moz-placeholder{color:var(--gray-400);font-weight:400}.wheeloflife-field #wheelOfLifeAdminRoot select::placeholder,.wheeloflife-field input[type=date]::placeholder,.wheeloflife-field input[type=email]::placeholder,.wheeloflife-field input[type=number]::placeholder,.wheeloflife-field input[type=search]::placeholder,.wheeloflife-field input[type=text]::placeholder,.wheeloflife-field input[type=url]::placeholder,.wheeloflife-field select.wheeloflife-select::placeholder,.wheeloflife-field textarea::placeholder{color:var(--gray-400);font-weight:400}.wheeloflife-field #wheelOfLifeAdminRoot select:-moz-read-only,.wheeloflife-field input[type=date]:-moz-read-only,.wheeloflife-field input[type=email]:-moz-read-only,.wheeloflife-field input[type=number]:-moz-read-only,.wheeloflife-field input[type=search]:-moz-read-only,.wheeloflife-field input[type=text]:-moz-read-only,.wheeloflife-field input[type=url]:-moz-read-only,.wheeloflife-field select.wheeloflife-select:-moz-read-only,.wheeloflife-field textarea:-moz-read-only{background-color:var(--bg-color);color:var(--font-color)}.wheeloflife-field #wheelOfLifeAdminRoot select:read-only,.wheeloflife-field input[type=date]:read-only,.wheeloflife-field input[type=email]:read-only,.wheeloflife-field input[type=number]:read-only,.wheeloflife-field input[type=search]:read-only,.wheeloflife-field input[type=text]:read-only,.wheeloflife-field input[type=url]:read-only,.wheeloflife-field select.wheeloflife-select:read-only,.wheeloflife-field textarea:read-only{background-color:var(--bg-color);color:var(--font-color)}.wheeloflife-fields-with-devider .wheeloflife-field:not(:first-child){border-top:1px solid var(--gray-200);padding-top:1rem}.wheeloflife-fields-with-devider.equal-label-width .wheeloflife-label-wrap{min-width:260px}.wheelolife-radio-group{align-items:center;display:flex;flex-wrap:wrap}.wheelolife-radio-group>label{margin-right:1.5rem}.wheelolife-radio-group>label:hover input[type=radio]{border-color:var(--primary-color)}.wheelolife-radio-group input[type=radio]{background:none;border:1px solid var(--gray-300);height:20px;margin-top:-2px;transition:all .3s ease;width:20px}.wheelolife-radio-group input[type=radio]:before{content:none}.wheelolife-radio-group input[type=radio]:checked{border-color:var(--primary-color);border-width:5px}.wheelolife-radio-group input[type=radio]:focus,.wheelolife-radio-group input[type=radio]:hover{box-shadow:0 0 1px var(--primary-color)}.wheeloflife-switch-wrap input[type=checkbox]{all:unset;height:0;opacity:0;width:0}.wheeloflife-switch-wrap input[type=checkbox]:before{content:none}.wheeloflife-switch-wrap .switch{background-color:var(--gray-300);border-radius:.625rem;display:inline-block;height:1.25rem;margin-right:.5rem;position:relative;transition:all .3s ease;width:2.25rem}.wheeloflife-switch-wrap .switch:before{background-color:#fff;border-radius:50%;content:"";height:1rem;left:0;margin:.125rem;position:absolute;top:0;transition:all .3s ease;width:1rem}.wheeloflife-switch-wrap .label{margin-right:1.5rem}.wheeloflife-switch-wrap label{align-items:center;display:flex;margin-bottom:0!important}.wheeloflife-switch-wrap label span{align-items:center;display:inline-flex;vertical-align:middle}.wheeloflife-switch-wrap label input[type=checkbox]:checked+span{color:var(--primary-color)}.wheeloflife-switch-wrap label input[type=checkbox]:checked+span .switch{background-color:var(--primary-color)}.wheeloflife-switch-wrap label input[type=checkbox]:checked+span .switch:before{margin-left:1.125rem}.wheeloflife-switch-wrap.labelAlign-left label span .switch{order:2}.wheeloflife-switch-wrap.labelAlign-left label span .label{order:1}.ct-image-tab .remove-button:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%27260%27 height=%27260%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M0 130.004C0 58.2 58.203.002 129.998.002 201.796.002 260 58.201 260 130.004c0 71.792-58.204 129.995-130.002 129.995C58.203 259.999 0 201.796 0 130.004Z%27 fill=%27%23E04F5F%27/%3E%3Cpath d=%27M200.988 108.099H59.012a3.773 3.773 0 0 0-3.773 3.773v36.256a3.773 3.773 0 0 0 3.773 3.773h141.976a3.773 3.773 0 0 0 3.773-3.773v-36.256a3.774 3.774 0 0 0-3.773-3.773Z%27 fill=%27%23fff%27/%3E%3C/svg%3E")}.ct-image-tab .edit-button:before,.ct-image-tab .remove-button:before{background-position:50%;background-repeat:no-repeat;background-size:100%;content:"";display:inline-block;height:1em;width:1em}.ct-image-tab .edit-button:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%27340%27 height=%27340%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cg clip-path=%27url%28%23a%29%27 fill=%27%23000%27%3E%3Cpath d=%27M177.707 135.15v17.094c0 5.429 1.084 9.984 3.224 13.533 2.952 4.897 7.798 7.704 13.299 7.704 5.391 0 10.747-2.625 15.92-7.797l56.461-56.461c12.396-12.397 12.396-32.568 0-44.965L210.15 7.798C204.977 2.623 199.621 0 194.23 0c-8.225 0-16.523 6.568-16.523 21.237v15.525c-80.16 4.734-146.52 66.251-156.382 146.792a9.959 9.959 0 0 0 9.883 11.172 9.958 9.958 0 0 0 8.042-4.078c26.453-36.145 68.927-57.724 113.617-57.724 8.28 0 16.606.747 24.84 2.226Z%27/%3E%3Cpath d=%27M312.278 145.974a9.958 9.958 0 0 0-11.704 3.38c-26.451 36.143-68.925 57.722-113.615 57.722-8.28 0-16.606-.747-24.84-2.226v-17.094c0-14.669-8.3-21.237-16.523-21.237-5.391 0-10.747 2.625-15.922 7.8l-56.461 56.458c-12.394 12.397-12.394 32.568.002 44.967l56.459 56.458c5.175 5.175 10.531 7.798 15.922 7.798 8.223 0 16.523-6.568 16.523-21.237v-15.525c80.162-4.734 146.519-66.251 156.382-146.789a9.96 9.96 0 0 0-6.223-10.475Z%27/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id=%27a%27%3E%3Cpath fill=%27%23fff%27 d=%27M0 0h340v340H0z%27/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E")}.ct-image-tab .actions{display:flex}.ct-image-tab .actions .edit-button{flex:1;margin-right:.5rem} -
wheel-of-life/trunk/app/build/frontendComponents.asset.php
r2887037 r2919602 1 <?php return array('dependencies' => array('jquery', 'react', 'wp-api-fetch', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-url'), 'version' => ' 876aa2cebe59d0e8cafc');1 <?php return array('dependencies' => array('jquery', 'react', 'wp-api-fetch', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-url'), 'version' => '6b90cf726ac2bb935396'); -
wheel-of-life/trunk/app/build/frontendComponents.js
r2887037 r2919602 1 var wheeloflifeExports;(()=>{var t={8901:(t,e,i)=>{var s,n;i.amdD,s=[i(9567)],void 0===(n=function(t){return function(){var e,i,s,n=0,o="error",a="info",r="success",l="warning",h={clear:function(i,s){var n=g();e||c(n),d(i,n,s)||function(i){for(var s=e.children(),n=s.length-1;n>=0;n--)d(t(s[n]),i)}(n)},remove:function(i){var s=g();e||c(s),i&&0===t(":focus",i).length?p(i):e.children().length&&e.remove()},error:function(t,e,i){return f({type:o,iconClass:g().iconClasses.error,message:t,optionsOverride:i,title:e})},getContainer:c,info:function(t,e,i){return f({type:a,iconClass:g().iconClasses.info,message:t,optionsOverride:i,title:e})},options:{},subscribe:function(t){i=t},success:function(t,e,i){return f({type:r,iconClass:g().iconClasses.success,message:t,optionsOverride:i,title:e})},version:"2.1.4",warning:function(t,e,i){return f({type:l,iconClass:g().iconClasses.warning,message:t,optionsOverride:i,title:e})}};return h;function c(i,s){return i||(i=g()),(e=t("#"+i.containerId)).length||s&&(e=function(i){return(e=t("<div/>").attr("id",i.containerId).addClass(i.positionClass)).appendTo(t(i.target)),e}(i)),e}function d(e,i,s){var n=!(!s||!s.force)&&s.force;return!(!e||!n&&0!==t(":focus",e).length||(e[i.hideMethod]({duration:i.hideDuration,easing:i.hideEasing,complete:function(){p(e)}}),0))}function u(t){i&&i(t)}function f(i){var o=g(),a=i.iconClass||o.iconClass;if(void 0!==i.optionsOverride&&(o=t.extend(o,i.optionsOverride),a=i.optionsOverride.iconClass||a),!function(t,e){if(t.preventDuplicates){if(e.message===s)return!0;s=e.message}return!1}(o,i)){n++,e=c(o,!0);var r=null,l=t("<div/>"),h=t("<div/>"),d=t("<div/>"),f=t("<div/>"),m=t(o.closeHtml),b={intervalId:null,hideEta:null,maxHideTime:null},x={toastId:n,state:"visible",startTime:new Date,options:o,map:i};return i.iconClass&&l.addClass(o.toastClass).addClass(a),function(){if(i.title){var t=i.title;o.escapeHtml&&(t=_(i.title)),h.append(t).addClass(o.titleClass),l.append(h)}}(),function(){if(i.message){var t=i.message;o.escapeHtml&&(t=_(i.message)),d.append(t).addClass(o.messageClass),l.append(d)}}(),o.closeButton&&(m.addClass(o.closeClass).attr("role","button"),l.prepend(m)),o.progressBar&&(f.addClass(o.progressClass),l.prepend(f)),o.rtl&&l.addClass("rtl"),o.newestOnTop?e.prepend(l):e.append(l),function(){var t="";switch(i.iconClass){case"toast-success":case"toast-info":t="polite";break;default:t="assertive"}l.attr("aria-live",t)}(),l.hide(),l[o.showMethod]({duration:o.showDuration,easing:o.showEasing,complete:o.onShown}),o.timeOut>0&&(r=setTimeout(y,o.timeOut),b.maxHideTime=parseFloat(o.timeOut),b.hideEta=(new Date).getTime()+b.maxHideTime,o.progressBar&&(b.intervalId=setInterval((function(){var t=(b.hideEta-(new Date).getTime())/b.maxHideTime*100;f.width(t+"%")}),10))),o.closeOnHover&&l.hover((function(){clearTimeout(r),b.hideEta=0,l.stop(!0,!0)[o.showMethod]({duration:o.showDuration,easing:o.showEasing})}),(function(){(o.timeOut>0||o.extendedTimeOut>0)&&(r=setTimeout(y,o.extendedTimeOut),b.maxHideTime=parseFloat(o.extendedTimeOut),b.hideEta=(new Date).getTime()+b.maxHideTime)})),!o.onclick&&o.tapToDismiss&&l.click(y),o.closeButton&&m&&m.click((function(t){t.stopPropagation?t.stopPropagation():void 0!==t.cancelBubble&&!0!==t.cancelBubble&&(t.cancelBubble=!0),o.onCloseClick&&o.onCloseClick(t),y(!0)})),o.onclick&&l.click((function(t){o.onclick(t),y()})),u(x),o.debug&&console&&console.log(x),l}function _(t){return null==t&&(t=""),t.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function y(e){var i=e&&!1!==o.closeMethod?o.closeMethod:o.hideMethod,s=e&&!1!==o.closeDuration?o.closeDuration:o.hideDuration,n=e&&!1!==o.closeEasing?o.closeEasing:o.hideEasing;if(!t(":focus",l).length||e)return clearTimeout(b.intervalId),l[i]({duration:s,easing:n,complete:function(){p(l),clearTimeout(r),o.onHidden&&"hidden"!==x.state&&o.onHidden(),x.state="hidden",x.endTime=new Date,u(x)}})}}function g(){return t.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">×</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},h.options)}function p(t){e||(e=c()),t.is(":visible")||(t.remove(),t=null,0===e.children().length&&(e.remove(),s=void 0))}}()}.apply(e,s))||(t.exports=n)},9567:t=>{"use strict";t.exports=window.jQuery}},e={};function i(s){var n=e[s];if(void 0!==n)return n.exports;var o=e[s]={exports:{}};return t[s](o,o.exports,i),o.exports}i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var s in e)i.o(e,s)&&!i.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var s={};(()=>{"use strict";i.r(s),i.d(s,{WheelForm:()=>Ta,WheelModal:()=>va});const t=window.wp.element,e=e=>{let{setValue:i,label:s,handleFormValue:n,setRangeValue:o,rangeValue:a,options:r}=e,l=r.maxValue,h=r.minValue,c=r.name,d=r.bgColor;const u=r.type;if((0,t.useEffect)((()=>{o(h)}),[]),"likert"===u)for(var f=[],g=h;g<=l;g++)f.push((0,t.createElement)("li",null,(0,t.createElement)("input",{id:`${c}-rate-${g}`,type:"radio",name:c,checked:!1,onChange:n(g,s,d)}),(0,t.createElement)("label",{htmlFor:`${c}-rate-${g}`},g)));let p=l/2>=a,m=l/4*3>=a;return(0,t.createElement)(t.Fragment,null,"likert"===u&&(0,t.createElement)("div",{className:"wheeloflife-meter-likert-container"},(0,t.createElement)("div",{className:"meter-likert-wrapper"},(0,t.createElement)("ul",{className:"meter-likert-rating"},f))),"slider"===u&&(0,t.createElement)("div",{className:"wheeloflife-meter-slider-container"},(0,t.createElement)("div",{className:"meter-slider-wrapper"},(0,t.createElement)("input",{type:"range",min:h,max:l,defaultValue:h,name:c,onChange:t=>{o(t.target.value)},id:c}),(0,t.createElement)("div",{className:"meter-slider-track",style:p?{"--green":"red"}:m?{"--green":"#F9A94D"}:{"--green":"#1db53f"}},(0,t.createElement)("span",{className:"meter-slider-progress",style:{width:"calc("+a/l*100+"% + 5px)"}}),(0,t.createElement)("label",{htmlFor:c,className:"meter-slider-thumb",style:{left:a/l*100+"%"}}),(0,t.createElement)("span",{className:"range-number",style:{left:a/l*100+"%"}},a)))))};function n(){}const o=function(){let t=0;return function(){return t++}}();function a(t){return null==t}function r(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function l(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const h=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function c(t,e){return h(t)?t:e}function d(t,e){return void 0===t?e:t}const u=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function f(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function g(t,e,i,s){let n,o,a;if(r(t))if(o=t.length,s)for(n=o-1;n>=0;n--)e.call(i,t[n],n);else for(n=0;n<o;n++)e.call(i,t[n],n);else if(l(t))for(a=Object.keys(t),o=a.length,n=0;n<o;n++)e.call(i,t[a[n]],a[n])}function p(t,e){let i,s,n,o;if(!t||!e||t.length!==e.length)return!1;for(i=0,s=t.length;i<s;++i)if(n=t[i],o=e[i],n.datasetIndex!==o.datasetIndex||n.index!==o.index)return!1;return!0}function m(t){if(r(t))return t.map(m);if(l(t)){const e=Object.create(null),i=Object.keys(t),s=i.length;let n=0;for(;n<s;++n)e[i[n]]=m(t[i[n]]);return e}return t}function b(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function x(t,e,i,s){if(!b(t))return;const n=e[t],o=i[t];l(n)&&l(o)?_(n,o,s):e[t]=m(o)}function _(t,e,i){const s=r(e)?e:[e],n=s.length;if(!l(t))return t;const o=(i=i||{}).merger||x;for(let a=0;a<n;++a){if(!l(e=s[a]))continue;const n=Object.keys(e);for(let s=0,a=n.length;s<a;++s)o(n[s],t,e,i)}return t}function y(t,e){return _(t,e,{merger:v})}function v(t,e,i){if(!b(t))return;const s=e[t],n=i[t];l(s)&&l(n)?y(s,n):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=m(n))}const w={"":t=>t,x:t=>t.x,y:t=>t.y};function k(t,e){const i=w[e]||(w[e]=function(t){const e=function(t){const e=t.split("."),i=[];let s="";for(const t of e)s+=t,s.endsWith("\\")?s=s.slice(0,-1)+".":(i.push(s),s="");return i}(t);return t=>{for(const i of e){if(""===i)break;t=t&&t[i]}return t}}(e));return i(t)}function C(t){return t.charAt(0).toUpperCase()+t.slice(1)}const M=t=>void 0!==t,S=t=>"function"==typeof t,L=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0},E=Math.PI,P=2*E,D=P+E,O=Number.POSITIVE_INFINITY,A=E/180,T=E/2,z=E/4,R=2*E/3,I=Math.log10,F=Math.sign;function V(t){const e=Math.round(t);t=H(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(I(t))),s=t/i;return(s<=1?1:s<=2?2:s<=5?5:10)*i}function N(t){return!isNaN(parseFloat(t))&&isFinite(t)}function H(t,e,i){return Math.abs(t-e)<i}function B(t,e,i){let s,n,o;for(s=0,n=t.length;s<n;s++)o=t[s][i],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function W(t){return t*(E/180)}function j(t){return t*(180/E)}function $(t){if(!h(t))return;let e=1,i=0;for(;Math.round(t*e)/e!==t;)e*=10,i++;return i}function Z(t,e){const i=e.x-t.x,s=e.y-t.y,n=Math.sqrt(i*i+s*s);let o=Math.atan2(s,i);return o<-.5*E&&(o+=P),{angle:o,distance:n}}function Y(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function U(t,e){return(t-e+D)%P-E}function X(t){return(t%P+P)%P}function q(t,e,i,s){const n=X(t),o=X(e),a=X(i),r=X(o-n),l=X(a-n),h=X(n-o),c=X(n-a);return n===o||n===a||s&&o===a||r>l&&h<c}function K(t,e,i){return Math.max(e,Math.min(i,t))}function G(t,e,i,s=1e-6){return t>=Math.min(e,i)-s&&t<=Math.max(e,i)+s}function J(t,e,i){i=i||(i=>t[i]<e);let s,n=t.length-1,o=0;for(;n-o>1;)s=o+n>>1,i(s)?o=s:n=s;return{lo:o,hi:n}}const Q=(t,e,i,s)=>J(t,i,s?s=>t[s][e]<=i:s=>t[s][e]<i),tt=(t,e,i)=>J(t,i,(s=>t[s][e]>=i)),et=["push","pop","shift","splice","unshift"];function it(t,e){const i=t._chartjs;if(!i)return;const s=i.listeners,n=s.indexOf(e);-1!==n&&s.splice(n,1),s.length>0||(et.forEach((e=>{delete t[e]})),delete t._chartjs)}function st(t){const e=new Set;let i,s;for(i=0,s=t.length;i<s;++i)e.add(t[i]);return e.size===s?t:Array.from(e)}const nt="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function ot(t,e,i){const s=i||(t=>Array.prototype.slice.call(t));let n=!1,o=[];return function(...i){o=s(i),n||(n=!0,nt.call(window,(()=>{n=!1,t.apply(e,o)})))}}const at=t=>"start"===t?"left":"end"===t?"right":"center",rt=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2;function lt(t,e,i){const s=e.length;let n=0,o=s;if(t._sorted){const{iScale:a,_parsed:r}=t,l=a.axis,{min:h,max:c,minDefined:d,maxDefined:u}=a.getUserBounds();d&&(n=K(Math.min(Q(r,a.axis,h).lo,i?s:Q(e,l,a.getPixelForValue(h)).lo),0,s-1)),o=u?K(Math.max(Q(r,a.axis,c,!0).hi+1,i?0:Q(e,l,a.getPixelForValue(c),!0).hi+1),n,s)-n:s-n}return{start:n,count:o}}function ht(t){const{xScale:e,yScale:i,_scaleRanges:s}=t,n={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!s)return t._scaleRanges=n,!0;const o=s.xmin!==e.min||s.xmax!==e.max||s.ymin!==i.min||s.ymax!==i.max;return Object.assign(s,n),o}const ct=t=>0===t||1===t,dt=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*P/i),ut=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*P/i)+1,ft={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*T),easeOutSine:t=>Math.sin(t*T),easeInOutSine:t=>-.5*(Math.cos(E*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:dt(t,.075,.3),easeOutElastic:t=>ct(t)?t:ut(t,.075,.3),easeInOutElastic(t){const e=.1125;return ct(t)?t:t<.5?.5*dt(2*t,e,.45):.5+.5*ut(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-ft.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375},easeInOutBounce:t=>t<.5?.5*ft.easeInBounce(2*t):.5*ft.easeOutBounce(2*t-1)+.5};function gt(t){return t+.5|0}const pt=(t,e,i)=>Math.max(Math.min(t,i),e);function mt(t){return pt(gt(2.55*t),0,255)}function bt(t){return pt(gt(255*t),0,255)}function xt(t){return pt(gt(t/2.55)/100,0,1)}function _t(t){return pt(gt(100*t),0,100)}const yt={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},vt=[..."0123456789ABCDEF"],wt=t=>vt[15&t],kt=t=>vt[(240&t)>>4]+vt[15&t],Ct=t=>(240&t)>>4==(15&t),Mt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function St(t,e,i){const s=e*Math.min(i,1-i),n=(e,n=(e+t/30)%12)=>i-s*Math.max(Math.min(n-3,9-n,1),-1);return[n(0),n(8),n(4)]}function Lt(t,e,i){const s=(s,n=(s+t/60)%6)=>i-i*e*Math.max(Math.min(n,4-n,1),0);return[s(5),s(3),s(1)]}function Et(t,e,i){const s=St(t,1,.5);let n;for(e+i>1&&(n=1/(e+i),e*=n,i*=n),n=0;n<3;n++)s[n]*=1-e-i,s[n]+=e;return s}function Pt(t){const e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),o=Math.min(e,i,s),a=(n+o)/2;let r,l,h;return n!==o&&(h=n-o,l=a>.5?h/(2-n-o):h/(n+o),r=function(t,e,i,s,n){return t===n?(e-i)/s+(e<i?6:0):e===n?(i-t)/s+2:(t-e)/s+4}(e,i,s,h,n),r=60*r+.5),[0|r,l||0,a]}function Dt(t,e,i,s){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,s)).map(bt)}function Ot(t,e,i){return Dt(St,t,e,i)}function At(t){return(t%360+360)%360}const Tt={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"},zt={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;const It=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,Ft=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Vt=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Nt(t,e,i){if(t){let s=Pt(t);s[e]=Math.max(0,Math.min(s[e]+s[e]*i,0===e?360:1)),s=Ot(s),t.r=s[0],t.g=s[1],t.b=s[2]}}function Ht(t,e){return t?Object.assign(e||{},t):t}function Bt(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=bt(t[3]))):(e=Ht(t,{r:0,g:0,b:0,a:1})).a=bt(e.a),e}function Wt(t){return"r"===t.charAt(0)?function(t){const e=It.exec(t);let i,s,n,o=255;if(e){if(e[7]!==i){const t=+e[7];o=e[8]?mt(t):pt(255*t,0,255)}return i=+e[1],s=+e[3],n=+e[5],i=255&(e[2]?mt(i):pt(i,0,255)),s=255&(e[4]?mt(s):pt(s,0,255)),n=255&(e[6]?mt(n):pt(n,0,255)),{r:i,g:s,b:n,a:o}}}(t):function(t){const e=Mt.exec(t);let i,s=255;if(!e)return;e[5]!==i&&(s=e[6]?mt(+e[5]):bt(+e[5]));const n=At(+e[2]),o=+e[3]/100,a=+e[4]/100;return i="hwb"===e[1]?function(t,e,i){return Dt(Et,t,e,i)}(n,o,a):"hsv"===e[1]?function(t,e,i){return Dt(Lt,t,e,i)}(n,o,a):Ot(n,o,a),{r:i[0],g:i[1],b:i[2],a:s}}(t)}class jt{constructor(t){if(t instanceof jt)return t;const e=typeof t;let i;var s,n,o;"object"===e?i=Bt(t):"string"===e&&(o=(s=t).length,"#"===s[0]&&(4===o||5===o?n={r:255&17*yt[s[1]],g:255&17*yt[s[2]],b:255&17*yt[s[3]],a:5===o?17*yt[s[4]]:255}:7!==o&&9!==o||(n={r:yt[s[1]]<<4|yt[s[2]],g:yt[s[3]]<<4|yt[s[4]],b:yt[s[5]]<<4|yt[s[6]],a:9===o?yt[s[7]]<<4|yt[s[8]]:255})),i=n||function(t){Rt||(Rt=function(){const t={},e=Object.keys(zt),i=Object.keys(Tt);let s,n,o,a,r;for(s=0;s<e.length;s++){for(a=r=e[s],n=0;n<i.length;n++)o=i[n],r=r.replace(o,Tt[o]);o=parseInt(zt[a],16),t[r]=[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}}(t)||Wt(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=Ht(this._rgb);return t&&(t.a=xt(t.a)),t}set rgb(t){this._rgb=Bt(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${xt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?(e=(t=>Ct(t.r)&&Ct(t.g)&&Ct(t.b)&&Ct(t.a))(t=this._rgb)?wt:kt,t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0):void 0;var t,e}hslString(){return this._valid?function(t){if(!t)return;const e=Pt(t),i=e[0],s=_t(e[1]),n=_t(e[2]);return t.a<255?`hsla(${i}, ${s}%, ${n}%, ${xt(t.a)})`:`hsl(${i}, ${s}%, ${n}%)`}(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,s=t.rgb;let n;const o=e===n?.5:e,a=2*o-1,r=i.a-s.a,l=((a*r==-1?a:(a+r)/(1+a*r))+1)/2;n=1-l,i.r=255&l*i.r+n*s.r+.5,i.g=255&l*i.g+n*s.g+.5,i.b=255&l*i.b+n*s.b+.5,i.a=o*i.a+(1-o)*s.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,i){const s=Vt(xt(t.r)),n=Vt(xt(t.g)),o=Vt(xt(t.b));return{r:bt(Ft(s+i*(Vt(xt(e.r))-s))),g:bt(Ft(n+i*(Vt(xt(e.g))-n))),b:bt(Ft(o+i*(Vt(xt(e.b))-o))),a:t.a+i*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new jt(this.rgb)}alpha(t){return this._rgb.a=bt(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=gt(.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 Nt(this._rgb,2,t),this}darken(t){return Nt(this._rgb,2,-t),this}saturate(t){return Nt(this._rgb,1,t),this}desaturate(t){return Nt(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=Pt(t);i[0]=At(i[0]+e),i=Ot(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}function $t(t){return new jt(t)}function Zt(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Yt(t){return Zt(t)?t:$t(t)}function Ut(t){return Zt(t)?t:$t(t).saturate(.5).darken(.1).hexString()}const Xt=Object.create(null),qt=Object.create(null);function Kt(t,e){if(!e)return t;const i=e.split(".");for(let e=0,s=i.length;e<s;++e){const s=i[e];t=t[s]||(t[s]=Object.create(null))}return t}function Gt(t,e,i){return"string"==typeof e?_(Kt(t,e),i):_(Kt(t,""),e)}var Jt=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,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return Gt(this,t,e)}get(t){return Kt(this,t)}describe(t,e){return Gt(qt,t,e)}override(t,e){return Gt(Xt,t,e)}route(t,e,i,s){const n=Kt(this,t),o=Kt(this,i),a="_"+e;Object.defineProperties(n,{[a]:{value:n[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=o[s];return l(t)?Object.assign({},e,t):d(t,e)},set(t){this[a]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Qt(t,e,i,s,n){let o=e[n];return o||(o=e[n]=t.measureText(n).width,i.push(n)),o>s&&(s=o),s}function te(t,e,i,s){let n=(s=s||{}).data=s.data||{},o=s.garbageCollect=s.garbageCollect||[];s.font!==e&&(n=s.data={},o=s.garbageCollect=[],s.font=e),t.save(),t.font=e;let a=0;const l=i.length;let h,c,d,u,f;for(h=0;h<l;h++)if(u=i[h],null!=u&&!0!==r(u))a=Qt(t,n,o,a,u);else if(r(u))for(c=0,d=u.length;c<d;c++)f=u[c],null==f||r(f)||(a=Qt(t,n,o,a,f));t.restore();const g=o.length/2;if(g>i.length){for(h=0;h<g;h++)delete n[o[h]];o.splice(0,g)}return a}function ee(t,e,i){const s=t.currentDevicePixelRatio,n=0!==i?Math.max(i/2,.5):0;return Math.round((e-n)*s)/s+n}function ie(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function se(t,e,i,s){ne(t,e,i,s,null)}function ne(t,e,i,s,n){let o,a,r,l,h,c;const d=e.pointStyle,u=e.rotation,f=e.radius;let g=(u||0)*A;if(d&&"object"==typeof d&&(o=d.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return t.save(),t.translate(i,s),t.rotate(g),t.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),void t.restore();if(!(isNaN(f)||f<=0)){switch(t.beginPath(),d){default:n?t.ellipse(i,s,n/2,f,0,0,P):t.arc(i,s,f,0,P),t.closePath();break;case"triangle":t.moveTo(i+Math.sin(g)*f,s-Math.cos(g)*f),g+=R,t.lineTo(i+Math.sin(g)*f,s-Math.cos(g)*f),g+=R,t.lineTo(i+Math.sin(g)*f,s-Math.cos(g)*f),t.closePath();break;case"rectRounded":h=.516*f,l=f-h,a=Math.cos(g+z)*l,r=Math.sin(g+z)*l,t.arc(i-a,s-r,h,g-E,g-T),t.arc(i+r,s-a,h,g-T,g),t.arc(i+a,s+r,h,g,g+T),t.arc(i-r,s+a,h,g+T,g+E),t.closePath();break;case"rect":if(!u){l=Math.SQRT1_2*f,c=n?n/2:l,t.rect(i-c,s-l,2*c,2*l);break}g+=z;case"rectRot":a=Math.cos(g)*f,r=Math.sin(g)*f,t.moveTo(i-a,s-r),t.lineTo(i+r,s-a),t.lineTo(i+a,s+r),t.lineTo(i-r,s+a),t.closePath();break;case"crossRot":g+=z;case"cross":a=Math.cos(g)*f,r=Math.sin(g)*f,t.moveTo(i-a,s-r),t.lineTo(i+a,s+r),t.moveTo(i+r,s-a),t.lineTo(i-r,s+a);break;case"star":a=Math.cos(g)*f,r=Math.sin(g)*f,t.moveTo(i-a,s-r),t.lineTo(i+a,s+r),t.moveTo(i+r,s-a),t.lineTo(i-r,s+a),g+=z,a=Math.cos(g)*f,r=Math.sin(g)*f,t.moveTo(i-a,s-r),t.lineTo(i+a,s+r),t.moveTo(i+r,s-a),t.lineTo(i-r,s+a);break;case"line":a=n?n/2:Math.cos(g)*f,r=Math.sin(g)*f,t.moveTo(i-a,s-r),t.lineTo(i+a,s+r);break;case"dash":t.moveTo(i,s),t.lineTo(i+Math.cos(g)*f,s+Math.sin(g)*f)}t.fill(),e.borderWidth>0&&t.stroke()}}function oe(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.x<e.right+i&&t.y>e.top-i&&t.y<e.bottom+i}function ae(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function re(t){t.restore()}function le(t,e,i,s,n){if(!e)return t.lineTo(i.x,i.y);if("middle"===n){const s=(e.x+i.x)/2;t.lineTo(s,e.y),t.lineTo(s,i.y)}else"after"===n!=!!s?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y);t.lineTo(i.x,i.y)}function he(t,e,i,s){if(!e)return t.lineTo(i.x,i.y);t.bezierCurveTo(s?e.cp1x:e.cp2x,s?e.cp1y:e.cp2y,s?i.cp2x:i.cp1x,s?i.cp2y:i.cp1y,i.x,i.y)}function ce(t,e,i,s,n,o={}){const l=r(e)?e:[e],h=o.strokeWidth>0&&""!==o.strokeColor;let c,d;for(t.save(),t.font=n.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),a(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<l.length;++c)d=l[c],h&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),a(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(d,i,s,o.maxWidth)),t.fillText(d,i,s,o.maxWidth),de(t,i,s,d,o),s+=n.lineHeight;t.restore()}function de(t,e,i,s,n){if(n.strikethrough||n.underline){const o=t.measureText(s),a=e-o.actualBoundingBoxLeft,r=e+o.actualBoundingBoxRight,l=i-o.actualBoundingBoxAscent,h=i+o.actualBoundingBoxDescent,c=n.strikethrough?(l+h)/2:h;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=n.decorationWidth||2,t.moveTo(a,c),t.lineTo(r,c),t.stroke()}}function ue(t,e){const{x:i,y:s,w:n,h:o,radius:a}=e;t.arc(i+a.topLeft,s+a.topLeft,a.topLeft,-T,E,!0),t.lineTo(i,s+o-a.bottomLeft),t.arc(i+a.bottomLeft,s+o-a.bottomLeft,a.bottomLeft,E,T,!0),t.lineTo(i+n-a.bottomRight,s+o),t.arc(i+n-a.bottomRight,s+o-a.bottomRight,a.bottomRight,T,0,!0),t.lineTo(i+n,s+a.topRight),t.arc(i+n-a.topRight,s+a.topRight,a.topRight,0,-T,!0),t.lineTo(i+a.topLeft,s)}const fe=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),ge=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function pe(t,e){const i=(""+t).match(fe);if(!i||"normal"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case"px":return t;case"%":t/=100}return e*t}const me=t=>+t||0;function be(t,e){const i={},s=l(e),n=s?Object.keys(e):e,o=l(t)?s?i=>d(t[i],t[e[i]]):e=>t[e]:()=>t;for(const t of n)i[t]=me(o(t));return i}function xe(t){return be(t,{top:"y",right:"x",bottom:"y",left:"x"})}function _e(t){return be(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ye(t){const e=xe(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function ve(t,e){t=t||{},e=e||Jt.font;let i=d(t.size,e.size);"string"==typeof i&&(i=parseInt(i,10));let s=d(t.style,e.style);s&&!(""+s).match(ge)&&(console.warn('Invalid font style specified: "'+s+'"'),s="");const n={family:d(t.family,e.family),lineHeight:pe(d(t.lineHeight,e.lineHeight),i),size:i,style:s,weight:d(t.weight,e.weight),string:""};return n.string=function(t){return!t||a(t.size)||a(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(n),n}function we(t,e,i,s){let n,o,a,l=!0;for(n=0,o=t.length;n<o;++n)if(a=t[n],void 0!==a&&(void 0!==e&&"function"==typeof a&&(a=a(e),l=!1),void 0!==i&&r(a)&&(a=a[i%a.length],l=!1),void 0!==a))return s&&!l&&(s.cacheable=!1),a}function ke(t,e){return Object.assign(Object.create(t),e)}function Ce(t,e=[""],i=t,s,n=(()=>t[0])){M(s)||(s=Re("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:s,_getTarget:n,override:n=>Ce([n,...t],e,i,s)};return new Proxy(o,{deleteProperty:(e,i)=>(delete e[i],delete e._keys,delete t[0][i],!0),get:(i,s)=>Pe(i,s,(()=>function(t,e,i,s){let n;for(const o of e)if(n=Re(Le(o,t),i),M(n))return Ee(t,n)?Te(i,s,t,n):n}(s,e,t,i))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Ie(t).includes(e),ownKeys:t=>Ie(t),set(t,e,i){const s=t._storage||(t._storage=n());return t[e]=s[e]=i,delete t._keys,!0}})}function Me(t,e,i,s){const n={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:Se(t,s),setContext:e=>Me(t,e,i,s),override:n=>Me(t.override(n),e,i,s)};return new Proxy(n,{deleteProperty:(e,i)=>(delete e[i],delete t[i],!0),get:(t,e,i)=>Pe(t,e,(()=>function(t,e,i){const{_proxy:s,_context:n,_subProxy:o,_descriptors:a}=t;let h=s[e];return S(h)&&a.isScriptable(e)&&(h=function(t,e,i,s){const{_proxy:n,_context:o,_subProxy:a,_stack:r}=i;if(r.has(t))throw new Error("Recursion detected: "+Array.from(r).join("->")+"->"+t);return r.add(t),e=e(o,a||s),r.delete(t),Ee(t,e)&&(e=Te(n._scopes,n,t,e)),e}(e,h,t,i)),r(h)&&h.length&&(h=function(t,e,i,s){const{_proxy:n,_context:o,_subProxy:a,_descriptors:r}=i;if(M(o.index)&&s(t))e=e[o.index%e.length];else if(l(e[0])){const i=e,s=n._scopes.filter((t=>t!==i));e=[];for(const l of i){const i=Te(s,n,t,l);e.push(Me(i,o,a&&a[t],r))}}return e}(e,h,t,a.isIndexable)),Ee(e,h)&&(h=Me(h,n,o&&o[e],a)),h}(t,e,i))),getOwnPropertyDescriptor:(e,i)=>e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,i)=>Reflect.has(t,i),ownKeys:()=>Reflect.ownKeys(t),set:(e,i,s)=>(t[i]=s,delete e[i],!0)})}function Se(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:s=e.indexable,_allKeys:n=e.allKeys}=t;return{allKeys:n,scriptable:i,indexable:s,isScriptable:S(i)?i:()=>i,isIndexable:S(s)?s:()=>s}}const Le=(t,e)=>t?t+C(e):e,Ee=(t,e)=>l(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Pe(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const s=i();return t[e]=s,s}function De(t,e,i){return S(t)?t(e,i):t}const Oe=(t,e)=>!0===t?e:"string"==typeof t?k(e,t):void 0;function Ae(t,e,i,s,n){for(const o of e){const e=Oe(i,o);if(e){t.add(e);const o=De(e._fallback,i,n);if(M(o)&&o!==i&&o!==s)return o}else if(!1===e&&M(s)&&i!==s)return null}return!1}function Te(t,e,i,s){const n=e._rootScopes,o=De(e._fallback,i,s),a=[...t,...n],h=new Set;h.add(s);let c=ze(h,a,i,o||i,s);return null!==c&&(!M(o)||o===i||(c=ze(h,a,o,c,s),null!==c))&&Ce(Array.from(h),[""],n,o,(()=>function(t,e,i){const s=t._getTarget();e in s||(s[e]={});const n=s[e];return r(n)&&l(i)?i:n}(e,i,s)))}function ze(t,e,i,s,n){for(;i;)i=Ae(t,e,i,s,n);return i}function Re(t,e){for(const i of e){if(!i)continue;const e=i[t];if(M(e))return e}}function Ie(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const i of t)for(const t of Object.keys(i).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function Fe(t,e,i,s){const{iScale:n}=t,{key:o="r"}=this._parsing,a=new Array(s);let r,l,h,c;for(r=0,l=s;r<l;++r)h=r+i,c=e[h],a[r]={r:n.parse(k(c,o),h)};return a}const Ve=Number.EPSILON||1e-14,Ne=(t,e)=>e<t.length&&!t[e].skip&&t[e],He=t=>"x"===t?"y":"x";function Be(t,e,i,s){const n=t.skip?e:t,o=e,a=i.skip?e:i,r=Y(o,n),l=Y(a,o);let h=r/(r+l),c=l/(r+l);h=isNaN(h)?0:h,c=isNaN(c)?0:c;const d=s*h,u=s*c;return{previous:{x:o.x-d*(a.x-n.x),y:o.y-d*(a.y-n.y)},next:{x:o.x+u*(a.x-n.x),y:o.y+u*(a.y-n.y)}}}function We(t,e,i){return Math.max(Math.min(t,i),e)}function je(t,e,i,s,n){let o,a,r,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)!function(t,e="x"){const i=He(e),s=t.length,n=Array(s).fill(0),o=Array(s);let a,r,l,h=Ne(t,0);for(a=0;a<s;++a)if(r=l,l=h,h=Ne(t,a+1),l){if(h){const t=h[e]-l[e];n[a]=0!==t?(h[i]-l[i])/t:0}o[a]=r?h?F(n[a-1])!==F(n[a])?0:(n[a-1]+n[a])/2:n[a-1]:n[a]}!function(t,e,i){const s=t.length;let n,o,a,r,l,h=Ne(t,0);for(let c=0;c<s-1;++c)l=h,h=Ne(t,c+1),l&&h&&(H(e[c],0,Ve)?i[c]=i[c+1]=0:(n=i[c]/e[c],o=i[c+1]/e[c],r=Math.pow(n,2)+Math.pow(o,2),r<=9||(a=3/Math.sqrt(r),i[c]=n*a*e[c],i[c+1]=o*a*e[c])))}(t,n,o),function(t,e,i="x"){const s=He(i),n=t.length;let o,a,r,l=Ne(t,0);for(let h=0;h<n;++h){if(a=r,r=l,l=Ne(t,h+1),!r)continue;const n=r[i],c=r[s];a&&(o=(n-a[i])/3,r[`cp1${i}`]=n-o,r[`cp1${s}`]=c-o*e[h]),l&&(o=(l[i]-n)/3,r[`cp2${i}`]=n+o,r[`cp2${s}`]=c+o*e[h])}}(t,o,e)}(t,n);else{let i=s?t[t.length-1]:t[0];for(o=0,a=t.length;o<a;++o)r=t[o],l=Be(i,r,t[Math.min(o+1,a-(s?0:1))%a],e.tension),r.cp1x=l.previous.x,r.cp1y=l.previous.y,r.cp2x=l.next.x,r.cp2y=l.next.y,i=r}e.capBezierPoints&&function(t,e){let i,s,n,o,a,r=oe(t[0],e);for(i=0,s=t.length;i<s;++i)a=o,o=r,r=i<s-1&&oe(t[i+1],e),o&&(n=t[i],a&&(n.cp1x=We(n.cp1x,e.left,e.right),n.cp1y=We(n.cp1y,e.top,e.bottom)),r&&(n.cp2x=We(n.cp2x,e.left,e.right),n.cp2y=We(n.cp2y,e.top,e.bottom)))}(t,i)}function $e(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Ze(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function Ye(t,e,i){let s;return"string"==typeof t?(s=parseInt(t,10),-1!==t.indexOf("%")&&(s=s/100*e.parentNode[i])):s=t,s}const Ue=t=>window.getComputedStyle(t,null),Xe=["top","right","bottom","left"];function qe(t,e,i){const s={};i=i?"-"+i:"";for(let n=0;n<4;n++){const o=Xe[n];s[o]=parseFloat(t[e+"-"+o+i])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}const Ke=(t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot);function Ge(t,e){if("native"in t)return t;const{canvas:i,currentDevicePixelRatio:s}=e,n=Ue(i),o="border-box"===n.boxSizing,a=qe(n,"padding"),r=qe(n,"border","width"),{x:l,y:h,box:c}=function(t,e){const i=t.touches,s=i&&i.length?i[0]:t,{offsetX:n,offsetY:o}=s;let a,r,l=!1;if(Ke(n,o,t.target))a=n,r=o;else{const t=e.getBoundingClientRect();a=s.clientX-t.left,r=s.clientY-t.top,l=!0}return{x:a,y:r,box:l}}(t,i),d=a.left+(c&&r.left),u=a.top+(c&&r.top);let{width:f,height:g}=e;return o&&(f-=a.width+r.width,g-=a.height+r.height),{x:Math.round((l-d)/f*i.width/s),y:Math.round((h-u)/g*i.height/s)}}const Je=t=>Math.round(10*t)/10;function Qe(t,e,i){const s=e||1,n=Math.floor(t.height*s),o=Math.floor(t.width*s);t.height=n/s,t.width=o/s;const a=t.canvas;return a.style&&(i||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==s||a.height!==n||a.width!==o)&&(t.currentDevicePixelRatio=s,a.height=n,a.width=o,t.ctx.setTransform(s,0,0,s,0,0),!0)}const ti=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 ei(t,e){const i=function(t,e){return Ue(t).getPropertyValue(e)}(t,e),s=i&&i.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function ii(t,e,i,s){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function si(t,e,i,s){return{x:t.x+i*(e.x-t.x),y:"middle"===s?i<.5?t.y:e.y:"after"===s?i<1?t.y:e.y:i>0?e.y:t.y}}function ni(t,e,i,s){const n={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},a=ii(t,n,i),r=ii(n,o,i),l=ii(o,e,i),h=ii(a,r,i),c=ii(r,l,i);return ii(h,c,i)}const oi=new Map;function ai(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let s=oi.get(i);return s||(s=new Intl.NumberFormat(t,e),oi.set(i,s)),s}(e,i).format(t)}const ri=function(t,e){return{x:i=>t+t+e-i,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}},li=function(){return{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}};function hi(t,e,i){return t?ri(e,i):li()}function ci(t,e){let i,s;"ltr"!==e&&"rtl"!==e||(i=t.canvas.style,s=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=s)}function di(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function ui(t){return"angle"===t?{between:q,compare:U,normalize:X}:{between:G,compare:(t,e)=>t-e,normalize:t=>t}}function fi({start:t,end:e,count:i,loop:s,style:n}){return{start:t%i,end:e%i,loop:s&&(e-t+1)%i==0,style:n}}function gi(t,e,i){if(!i)return[t];const{property:s,start:n,end:o}=i,a=e.length,{compare:r,between:l,normalize:h}=ui(s),{start:c,end:d,loop:u,style:f}=function(t,e,i){const{property:s,start:n,end:o}=i,{between:a,normalize:r}=ui(s),l=e.length;let h,c,{start:d,end:u,loop:f}=t;if(f){for(d+=l,u+=l,h=0,c=l;h<c&&a(r(e[d%l][s]),n,o);++h)d--,u--;d%=l,u%=l}return u<d&&(u+=l),{start:d,end:u,loop:f,style:t.style}}(t,e,i),g=[];let p,m,b,x=!1,_=null;for(let t=c,i=c;t<=d;++t)m=e[t%a],m.skip||(p=h(m[s]),p!==b&&(x=l(p,n,o),null===_&&(x||l(n,b,p)&&0!==r(n,b))&&(_=0===r(p,n)?t:i),null!==_&&(!x||0===r(o,p)||l(o,b,p))&&(g.push(fi({start:_,end:t,loop:u,count:a,style:f})),_=null),i=t,b=p));return null!==_&&g.push(fi({start:_,end:d,loop:u,count:a,style:f})),g}function pi(t,e){const i=[],s=t.segments;for(let n=0;n<s.length;n++){const o=gi(s[n],t.points,e);o.length&&i.push(...o)}return i}function mi(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function bi(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}var xi=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,s){const n=e.listeners[s],o=e.duration;n.forEach((s=>s({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=nt.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((i,s)=>{if(!i.running||!i.items.length)return;const n=i.items;let o,a=n.length-1,r=!1;for(;a>=0;--a)o=n[a],o._active?(o._total>i.duration&&(i.duration=o._total),o.tick(t),r=!0):(n[a]=n[n.length-1],n.pop());r&&(s.draw(),this._notify(s,i,t,"progress")),n.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),e+=n.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}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 i=e.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const _i="transparent",yi={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const s=Yt(t||_i),n=s.valid&&Yt(e||_i);return n&&n.valid?n.mix(s,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class vi{constructor(t,e,i,s){const n=e[i];s=we([t.to,s,n,t.from]);const o=we([t.from,n,s]);this._active=!0,this._fn=t.fn||yi[t.type||typeof o],this._easing=ft[t.easing]||ft.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=i,this._from=o,this._to=s,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const s=this._target[this._prop],n=i-this._start,o=this._duration-n;this._start=i,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=n,this._loop=!!t.loop,this._to=we([t.to,e,s,t.from]),this._from=we([t.from,s,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,s=this._prop,n=this._from,o=this._loop,a=this._to;let r;if(this._active=n!==a&&(o||e<i),!this._active)return this._target[s]=a,void this._notify(!0);e<0?this._target[s]=n:(r=e/i%2,r=o&&r>1?2-r:r,r=this._easing(Math.min(1,Math.max(0,r))),this._target[s]=this._fn(n,a,r))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,i)=>{t.push({res:e,rej:i})}))}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let t=0;t<i.length;t++)i[t][e]()}}Jt.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 wi=Object.keys(Jt.animation);Jt.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),Jt.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),Jt.describe("animations",{_fallback:"animation"}),Jt.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 ki{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!l(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach((i=>{const s=t[i];if(!l(s))return;const n={};for(const t of wi)n[t]=s[t];(r(s.properties)&&s.properties||[i]).forEach((t=>{t!==i&&e.has(t)||e.set(t,n)}))}))}_animateOptions(t,e){const i=e.options,s=function(t,e){if(!e)return;let i=t.options;if(i)return i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}})),i;t.options=e}(t,i);if(!s)return[];const n=this._createAnimations(s,i);return i.$shared&&function(t,e){const i=[],s=Object.keys(e);for(let e=0;e<s.length;e++){const n=t[s[e]];n&&n.active()&&i.push(n.wait())}return Promise.all(i)}(t.options.$animations,i).then((()=>{t.options=i}),(()=>{})),n}_createAnimations(t,e){const i=this._properties,s=[],n=t.$animations||(t.$animations={}),o=Object.keys(e),a=Date.now();let r;for(r=o.length-1;r>=0;--r){const l=o[r];if("$"===l.charAt(0))continue;if("options"===l){s.push(...this._animateOptions(t,e));continue}const h=e[l];let c=n[l];const d=i.get(l);if(c){if(d&&c.active()){c.update(d,h,a);continue}c.cancel()}d&&d.duration?(n[l]=c=new vi(d,t,l,h),s.push(c)):t[l]=h}return s}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(xi.add(this._chart,i),!0):void 0}}function Ci(t,e){const i=t&&t.options||{},s=i.reverse,n=void 0===i.min?e:0,o=void 0===i.max?e:0;return{start:s?o:n,end:s?n:o}}function Mi(t,e){const i=[],s=t._getSortedDatasetMetas(e);let n,o;for(n=0,o=s.length;n<o;++n)i.push(s[n].index);return i}function Si(t,e,i,s={}){const n=t.keys,o="single"===s.mode;let a,r,l,c;if(null!==e){for(a=0,r=n.length;a<r;++a){if(l=+n[a],l===i){if(s.all)continue;break}c=t.values[l],h(c)&&(o||0===e||F(e)===F(c))&&(e+=c)}return e}}function Li(t,e){const i=t&&t.options.stacked;return i||void 0===i&&void 0!==e.stack}function Ei(t,e,i){const s=t[e]||(t[e]={});return s[i]||(s[i]={})}function Pi(t,e,i,s){for(const n of e.getMatchingVisibleMetas(s).reverse()){const e=t[n.index];if(i&&e>0||!i&&e<0)return n.index}return null}function Di(t,e){const{chart:i,_cachedMeta:s}=t,n=i._stacks||(i._stacks={}),{iScale:o,vScale:a,index:r}=s,l=o.axis,h=a.axis,c=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(o,a,s),d=e.length;let u;for(let t=0;t<d;++t){const i=e[t],{[l]:o,[h]:d}=i;u=(i._stacks||(i._stacks={}))[h]=Ei(n,c,o),u[r]=d,u._top=Pi(u,a,!0,s.type),u._bottom=Pi(u,a,!1,s.type)}}function Oi(t,e){const i=t.scales;return Object.keys(i).filter((t=>i[t].axis===e)).shift()}function Ai(t,e){const i=t.controller.index,s=t.vScale&&t.vScale.axis;if(s){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[s]||void 0===e[s][i])return;delete e[s][i]}}}const Ti=t=>"reset"===t||"none"===t,zi=(t,e)=>e?t:Object.assign({},t);class Ri{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.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Li(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&Ai(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),s=(t,e,i,s)=>"x"===t?e:"r"===t?s:i,n=e.xAxisID=d(i.xAxisID,Oi(t,"x")),o=e.yAxisID=d(i.yAxisID,Oi(t,"y")),a=e.rAxisID=d(i.rAxisID,Oi(t,"r")),r=e.indexAxis,l=e.iAxisID=s(r,n,o,a),h=e.vAxisID=s(r,o,n,a);e.xScale=this.getScaleForId(n),e.yScale=this.getScaleForId(o),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&&it(this._data,this),t._stacked&&Ai(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(l(e))this._data=function(t){const e=Object.keys(t),i=new Array(e.length);let s,n,o;for(s=0,n=e.length;s<n;++s)o=e[s],i[s]={x:o,y:t[o]};return i}(e);else if(i!==e){if(i){it(i,this);const t=this._cachedMeta;Ai(t),t._parsed=[]}e&&Object.isExtensible(e)&&(this,(s=e)._chartjs?s._chartjs.listeners.push(this):(Object.defineProperty(s,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[this]}}),et.forEach((t=>{const e="_onData"+C(t),i=s[t];Object.defineProperty(s,t,{configurable:!0,enumerable:!1,value(...t){const n=i.apply(this,t);return s._chartjs.listeners.forEach((i=>{"function"==typeof i[e]&&i[e](...t)})),n}})})))),this._syncList=[],this._data=e}var s}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let s=!1;this._dataCheck();const n=e._stacked;e._stacked=Li(e.vScale,e),e.stack!==i.stack&&(s=!0,Ai(e),e.stack=i.stack),this._resyncElements(t),(s||n!==e._stacked)&&Di(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:s}=this,{iScale:n,_stacked:o}=i,a=n.axis;let h,c,d,u=0===t&&e===s.length||i._sorted,f=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=s,i._sorted=!0,d=s;else{d=r(s[t])?this.parseArrayData(i,s,t,e):l(s[t])?this.parseObjectData(i,s,t,e):this.parsePrimitiveData(i,s,t,e);const n=()=>null===c[a]||f&&c[a]<f[a];for(h=0;h<e;++h)i._parsed[h+t]=c=d[h],u&&(n()&&(u=!1),f=c);i._sorted=u}o&&Di(this,d)}parsePrimitiveData(t,e,i,s){const{iScale:n,vScale:o}=t,a=n.axis,r=o.axis,l=n.getLabels(),h=n===o,c=new Array(s);let d,u,f;for(d=0,u=s;d<u;++d)f=d+i,c[d]={[a]:h||n.parse(l[f],f),[r]:o.parse(e[f],f)};return c}parseArrayData(t,e,i,s){const{xScale:n,yScale:o}=t,a=new Array(s);let r,l,h,c;for(r=0,l=s;r<l;++r)h=r+i,c=e[h],a[r]={x:n.parse(c[0],h),y:o.parse(c[1],h)};return a}parseObjectData(t,e,i,s){const{xScale:n,yScale:o}=t,{xAxisKey:a="x",yAxisKey:r="y"}=this._parsing,l=new Array(s);let h,c,d,u;for(h=0,c=s;h<c;++h)d=h+i,u=e[d],l[h]={x:n.parse(k(u,a),d),y:o.parse(k(u,r),d)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){const s=this.chart,n=this._cachedMeta,o=e[t.axis];return Si({keys:Mi(s,!0),values:e._stacks[t.axis]},o,n.index,{mode:i})}updateRangeFromParsed(t,e,i,s){const n=i[e.axis];let o=null===n?NaN:n;const a=s&&i._stacks[e.axis];s&&a&&(s.values=a,o=Si(s,n,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const i=this._cachedMeta,s=i._parsed,n=i._sorted&&t===i.iScale,o=s.length,a=this._getOtherScale(t),r=((t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:Mi(i,!0),values:null})(e,i,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=function(t){const{min:e,max:i,minDefined:s,maxDefined:n}=t.getUserBounds();return{min:s?e:Number.NEGATIVE_INFINITY,max:n?i:Number.POSITIVE_INFINITY}}(a);let u,f;function g(){f=s[u];const e=f[a.axis];return!h(f[t.axis])||c>e||d<e}for(u=0;u<o&&(g()||(this.updateRangeFromParsed(l,t,f,r),!n));++u);if(n)for(u=o-1;u>=0;--u)if(!g()){this.updateRangeFromParsed(l,t,f,r);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let s,n,o;for(s=0,n=e.length;s<n;++s)o=e[s][t.axis],h(o)&&i.push(o);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,i=e.iScale,s=e.vScale,n=this.getParsed(t);return{label:i?""+i.getLabelForValue(n[i.axis]):"",value:s?""+s.getLabelForValue(n[s.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,i,s,n;return l(t)?(e=t.top,i=t.right,s=t.bottom,n=t.left):e=i=s=n=t,{top:e,right:i,bottom:s,left:n,disabled:!1===t}}(d(this.options.clip,function(t,e,i){if(!1===i)return!1;const s=Ci(t,i),n=Ci(e,i);return{top:n.end,right:s.end,bottom:n.start,left:s.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,i=this._cachedMeta,s=i.data||[],n=e.chartArea,o=[],a=this._drawStart||0,r=this._drawCount||s.length-a,l=this.options.drawActiveElementsOnTop;let h;for(i.dataset&&i.dataset.draw(t,n,a,r),h=a;h<a+r;++h){const e=s[h];e.hidden||(e.active&&l?o.push(e):e.draw(t,n))}for(h=0;h<o.length;++h)o[h].draw(t,n)}getStyle(t,e){const i=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,e,i){const s=this.getDataset();let n;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];n=e.$context||(e.$context=function(t,e,i){return ke(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:i,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),n.parsed=this.getParsed(t),n.raw=s.data[t],n.index=n.dataIndex=t}else n=this.$context||(this.$context=function(t,e){return ke(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),n.dataset=s,n.index=n.datasetIndex=this.index;return n.active=!!e,n.mode=i,n}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",i){const s="active"===e,n=this._cachedDataOpts,o=t+"-"+e,a=n[o],r=this.enableOptionSharing&&M(i);if(a)return zi(a,r);const l=this.chart.config,h=l.datasetElementScopeKeys(this._type,t),c=s?[`${t}Hover`,"hover",t,""]:[t,""],d=l.getOptionScopes(this.getDataset(),h),u=Object.keys(Jt.elements[t]),f=l.resolveNamedOptions(d,u,(()=>this.getContext(i,s)),c);return f.$shared&&(f.$shared=r,n[o]=Object.freeze(zi(f,r))),f}_resolveAnimations(t,e,i){const s=this.chart,n=this._cachedDataOpts,o=`animation-${e}`,a=n[o];if(a)return a;let r;if(!1!==s.options.animation){const s=this.chart.config,n=s.datasetAnimationScopeKeys(this._type,e),o=s.getOptionScopes(this.getDataset(),n);r=s.createResolver(o,this.getContext(t,i,e))}const l=new ki(s,r&&r.animations);return r&&r._cacheable&&(n[o]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Ti(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),s=this._sharedOptions,n=this.getSharedOptions(i),o=this.includeOptions(e,n)||n!==s;return this.updateSharedOptions(n,e,i),{sharedOptions:n,includeOptions:o}}updateElement(t,e,i,s){Ti(s)?Object.assign(t,i):this._resolveAnimations(e,s).update(t,i)}updateSharedOptions(t,e,i){t&&!Ti(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,s){t.active=s;const n=this.getStyle(e,s);this._resolveAnimations(e,i,s).update(t,{options:!s&&this.getSharedOptions(n)||n})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"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,i=this._cachedMeta.data;for(const[t,e,i]of this._syncList)this[t](e,i);this._syncList=[];const s=i.length,n=e.length,o=Math.min(n,s);o&&this.parse(0,o),n>s?this._insertElements(s,n-s,t):n<s&&this._removeElements(n,s-n)}_insertElements(t,e,i=!0){const s=this._cachedMeta,n=s.data,o=t+e;let a;const r=t=>{for(t.length+=e,a=t.length-1;a>=o;a--)t[a]=t[a-e]};for(r(n),a=t;a<o;++a)n[a]=new this.dataElementType;this._parsing&&r(s._parsed),this.parse(t,e),i&&this.updateElements(n,t,e,"reset")}updateElements(t,e,i,s){}_removeElements(t,e){const i=this._cachedMeta;if(this._parsing){const s=i._parsed.splice(t,e);i._stacked&&Ai(i,s)}i.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,i,s]=t;this[e](i,s)}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 i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Ii(t){const e=t.iScale,i=function(t,e){if(!t._cache.$bar){const i=t.getMatchingVisibleMetas(e);let s=[];for(let e=0,n=i.length;e<n;e++)s=s.concat(i[e].controller.getAllParsedValues(t));t._cache.$bar=st(s.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let s,n,o,a,r=e._length;const l=()=>{32767!==o&&-32768!==o&&(M(a)&&(r=Math.min(r,Math.abs(o-a)||r)),a=o)};for(s=0,n=i.length;s<n;++s)o=e.getPixelForValue(i[s]),l();for(a=void 0,s=0,n=e.ticks.length;s<n;++s)o=e.getPixelForTick(s),l();return r}function Fi(t,e,i,s){return r(t)?function(t,e,i,s){const n=i.parse(t[0],s),o=i.parse(t[1],s),a=Math.min(n,o),r=Math.max(n,o);let l=a,h=r;Math.abs(a)>Math.abs(r)&&(l=r,h=a),e[i.axis]=h,e._custom={barStart:l,barEnd:h,start:n,end:o,min:a,max:r}}(t,e,i,s):e[i.axis]=i.parse(t,s),e}function Vi(t,e,i,s){const n=t.iScale,o=t.vScale,a=n.getLabels(),r=n===o,l=[];let h,c,d,u;for(h=i,c=i+s;h<c;++h)u=e[h],d={},d[n.axis]=r||n.parse(a[h],h),l.push(Fi(u,d,o,h));return l}function Ni(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Hi(t,e,i,s){let n=e.borderSkipped;const o={};if(!n)return void(t.borderSkipped=o);if(!0===n)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:r,reverse:l,top:h,bottom:c}=function(t){let e,i,s,n,o;return t.horizontal?(e=t.base>t.x,i="left",s="right"):(e=t.base<t.y,i="bottom",s="top"),e?(n="end",o="start"):(n="start",o="end"),{start:i,end:s,reverse:e,top:n,bottom:o}}(t);"middle"===n&&i&&(t.enableBorderRadius=!0,(i._top||0)===s?n=h:(i._bottom||0)===s?n=c:(o[Bi(c,a,r,l)]=!0,n=h)),o[Bi(n,a,r,l)]=!0,t.borderSkipped=o}function Bi(t,e,i,s){var n,o,a;return s?(a=i,t=Wi(t=(n=t)===(o=e)?a:n===a?o:n,i,e)):t=Wi(t,e,i),t}function Wi(t,e,i){return"start"===t?e:"end"===t?i:t}function ji(t,{inflateAmount:e},i){t.inflateAmount="auto"===e?1===i?.33:0:e}Ri.defaults={},Ri.prototype.datasetElementType=null,Ri.prototype.dataElementType=null;class $i extends Ri{parsePrimitiveData(t,e,i,s){return Vi(t,e,i,s)}parseArrayData(t,e,i,s){return Vi(t,e,i,s)}parseObjectData(t,e,i,s){const{iScale:n,vScale:o}=t,{xAxisKey:a="x",yAxisKey:r="y"}=this._parsing,l="x"===n.axis?a:r,h="x"===o.axis?a:r,c=[];let d,u,f,g;for(d=i,u=i+s;d<u;++d)g=e[d],f={},f[n.axis]=n.parse(k(g,l),d),c.push(Fi(k(g,h),f,o,d));return c}updateRangeFromParsed(t,e,i,s){super.updateRangeFromParsed(t,e,i,s);const n=i._custom;n&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,n.min),t.max=Math.max(t.max,n.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:i,vScale:s}=e,n=this.getParsed(t),o=n._custom,a=Ni(o)?"["+o.start+", "+o.end+"]":""+s.getLabelForValue(n[s.axis]);return{label:""+i.getLabelForValue(n[i.axis]),value:a}}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,i,s){const n="reset"===s,{index:o,_cachedMeta:{vScale:r}}=this,l=r.getBasePixel(),h=r.isHorizontal(),c=this._getRuler(),{sharedOptions:d,includeOptions:u}=this._getSharedOptions(e,s);for(let f=e;f<e+i;f++){const e=this.getParsed(f),i=n||a(e[r.axis])?{base:l,head:l}:this._calculateBarValuePixels(f),g=this._calculateBarIndexPixels(f,c),p=(e._stacks||{})[r.axis],m={horizontal:h,base:i.base,enableBorderRadius:!p||Ni(e._custom)||o===p._top||o===p._bottom,x:h?i.head:g.center,y:h?g.center:i.head,height:h?g.size:Math.abs(i.size),width:h?Math.abs(i.size):g.size};u&&(m.options=d||this.resolveDataElementOptions(f,t[f].active?"active":s));const b=m.options||t[f].options;Hi(m,b,p,o),ji(m,b,c.ratio),this.updateElement(t[f],f,m,s)}}_getStacks(t,e){const{iScale:i}=this._cachedMeta,s=i.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),n=i.options.stacked,o=[],r=t=>{const i=t.controller.getParsed(e),s=i&&i[t.vScale.axis];if(a(s)||isNaN(s))return!0};for(const i of s)if((void 0===e||!r(i))&&((!1===n||-1===o.indexOf(i.stack)||void 0===n&&void 0===i.stack)&&o.push(i.stack),i.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const s=this._getStacks(t,i),n=void 0!==e?s.indexOf(e):-1;return-1===n?s.length-1:n}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,s=[];let n,o;for(n=0,o=e.data.length;n<o;++n)s.push(i.getPixelForValue(this.getParsed(n)[i.axis],n));const a=t.barThickness;return{min:a||Ii(e),pixels:s,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:i},options:{base:s,minBarLength:n}}=this,o=s||0,r=this.getParsed(t),l=r._custom,h=Ni(l);let c,d,u=r[e.axis],f=0,g=i?this.applyStack(e,r,i):u;g!==u&&(f=g-u,g=u),h&&(u=l.barStart,g=l.barEnd-l.barStart,0!==u&&F(u)!==F(l.barEnd)&&(f=0),f+=u);const p=a(s)||h?f:s;let m=e.getPixelForValue(p);if(c=this.chart.getDataVisibility(t)?e.getPixelForValue(f+g):m,d=c-m,Math.abs(d)<n){d=function(t,e,i){return 0!==t?F(t):(e.isHorizontal()?1:-1)*(e.min>=i?1:-1)}(d,e,o)*n,u===o&&(m-=d/2);const t=e.getPixelForDecimal(0),i=e.getPixelForDecimal(1),s=Math.min(t,i),a=Math.max(t,i);m=Math.max(Math.min(m,a),s),c=m+d}if(m===e.getPixelForValue(o)){const t=F(d)*e.getLineWidthForValue(o)/2;m+=t,d-=t}return{size:d,base:m,head:c,center:c+d/2}}_calculateBarIndexPixels(t,e){const i=e.scale,s=this.options,n=s.skipNull,o=d(s.maxBarThickness,1/0);let r,l;if(e.grouped){const i=n?this._getStackCount(t):e.stackCount,h="flex"===s.barThickness?function(t,e,i,s){const n=e.pixels,o=n[t];let a=t>0?n[t-1]:null,r=t<n.length-1?n[t+1]:null;const l=i.categoryPercentage;null===a&&(a=o-(null===r?e.end-e.start:r-o)),null===r&&(r=o+o-a);const h=o-(o-Math.min(a,r))/2*l;return{chunk:Math.abs(r-a)/2*l/s,ratio:i.barPercentage,start:h}}(t,e,s,i):function(t,e,i,s){const n=i.barThickness;let o,r;return a(n)?(o=e.min*i.categoryPercentage,r=i.barPercentage):(o=n*s,r=1),{chunk:o/s,ratio:r,start:e.pixels[t]-o/2}}(t,e,s,i),c=this._getStackIndex(this.index,this._cachedMeta.stack,n?t:void 0);r=h.start+h.chunk*c+h.chunk/2,l=Math.min(o,h.chunk*h.ratio)}else r=i.getPixelForValue(this.getParsed(t)[i.axis],t),l=Math.min(o,e.min*e.ratio);return{base:r-l/2,head:r+l/2,center:r,size:l}}draw(){const t=this._cachedMeta,e=t.vScale,i=t.data,s=i.length;let n=0;for(;n<s;++n)null!==this.getParsed(n)[e.axis]&&i[n].draw(this._ctx)}}$i.id="bar",$i.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},$i.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class Zi extends Ri{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,i,s){const n=super.parsePrimitiveData(t,e,i,s);for(let t=0;t<n.length;t++)n[t]._custom=this.resolveDataElementOptions(t+i).radius;return n}parseArrayData(t,e,i,s){const n=super.parseArrayData(t,e,i,s);for(let t=0;t<n.length;t++){const s=e[i+t];n[t]._custom=d(s[2],this.resolveDataElementOptions(t+i).radius)}return n}parseObjectData(t,e,i,s){const n=super.parseObjectData(t,e,i,s);for(let t=0;t<n.length;t++){const s=e[i+t];n[t]._custom=d(s&&s.r&&+s.r,this.resolveDataElementOptions(t+i).radius)}return n}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let i=t.length-1;i>=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:i,yScale:s}=e,n=this.getParsed(t),o=i.getLabelForValue(n.x),a=s.getLabelForValue(n.y),r=n._custom;return{label:e.label,value:"("+o+", "+a+(r?", "+r:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,s){const n="reset"===s,{iScale:o,vScale:a}=this._cachedMeta,{sharedOptions:r,includeOptions:l}=this._getSharedOptions(e,s),h=o.axis,c=a.axis;for(let d=e;d<e+i;d++){const e=t[d],i=!n&&this.getParsed(d),u={},f=u[h]=n?o.getPixelForDecimal(.5):o.getPixelForValue(i[h]),g=u[c]=n?a.getBasePixel():a.getPixelForValue(i[c]);u.skip=isNaN(f)||isNaN(g),l&&(u.options=r||this.resolveDataElementOptions(d,e.active?"active":s),n&&(u.options.radius=0)),this.updateElement(e,d,u,s)}}resolveDataElementOptions(t,e){const i=this.getParsed(t);let s=super.resolveDataElementOptions(t,e);s.$shared&&(s=Object.assign({},s,{$shared:!1}));const n=s.radius;return"active"!==e&&(s.radius=0),s.radius+=d(i&&i._custom,n),s}}Zi.id="bubble",Zi.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},Zi.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class Yi extends Ri{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 i=this.getDataset().data,s=this._cachedMeta;if(!1===this._parsing)s._parsed=i;else{let n,o,a=t=>+i[t];if(l(i[t])){const{key:t="value"}=this._parsing;a=e=>+k(i[e],t)}for(n=t,o=t+e;n<o;++n)s._parsed[n]=a(n)}}_getRotation(){return W(this.options.rotation-90)}_getCircumference(){return W(this.options.circumference)}_getRotationExtents(){let t=P,e=-P;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)){const s=this.chart.getDatasetMeta(i).controller,n=s._getRotation(),o=s._getCircumference();t=Math.min(t,n),e=Math.max(e,n+o)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:i}=e,s=this._cachedMeta,n=s.data,o=this.getMaxBorderWidth()+this.getMaxOffset(n)+this.options.spacing,a=Math.max((Math.min(i.width,i.height)-o)/2,0),r=Math.min((h=a,"string"==typeof(l=this.options.cutout)&&l.endsWith("%")?parseFloat(l)/100:l/h),1);var l,h;const c=this._getRingWeight(this.index),{circumference:d,rotation:f}=this._getRotationExtents(),{ratioX:g,ratioY:p,offsetX:m,offsetY:b}=function(t,e,i){let s=1,n=1,o=0,a=0;if(e<P){const r=t,l=r+e,h=Math.cos(r),c=Math.sin(r),d=Math.cos(l),u=Math.sin(l),f=(t,e,s)=>q(t,r,l,!0)?1:Math.max(e,e*i,s,s*i),g=(t,e,s)=>q(t,r,l,!0)?-1:Math.min(e,e*i,s,s*i),p=f(0,h,d),m=f(T,c,u),b=g(E,h,d),x=g(E+T,c,u);s=(p-b)/2,n=(m-x)/2,o=-(p+b)/2,a=-(m+x)/2}return{ratioX:s,ratioY:n,offsetX:o,offsetY:a}}(f,d,r),x=(i.width-o)/g,_=(i.height-o)/p,y=Math.max(Math.min(x,_)/2,0),v=u(this.options.radius,y),w=(v-Math.max(v*r,0))/this._getVisibleDatasetWeightTotal();this.offsetX=m*v,this.offsetY=b*v,s.total=this.calculateTotal(),this.outerRadius=v-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*c,0),this.updateElements(n,0,n.length,t)}_circumference(t,e){const i=this.options,s=this._cachedMeta,n=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===s._parsed[t]||s.data[t].hidden?0:this.calculateCircumference(s._parsed[t]*n/P)}updateElements(t,e,i,s){const n="reset"===s,o=this.chart,a=o.chartArea,r=o.options.animation,l=(a.left+a.right)/2,h=(a.top+a.bottom)/2,c=n&&r.animateScale,d=c?0:this.innerRadius,u=c?0:this.outerRadius,{sharedOptions:f,includeOptions:g}=this._getSharedOptions(e,s);let p,m=this._getRotation();for(p=0;p<e;++p)m+=this._circumference(p,n);for(p=e;p<e+i;++p){const e=this._circumference(p,n),i=t[p],o={x:l+this.offsetX,y:h+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:u,innerRadius:d};g&&(o.options=f||this.resolveDataElementOptions(p,i.active?"active":s)),m+=e,this.updateElement(i,p,o,s)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let i,s=0;for(i=0;i<e.length;i++){const n=t._parsed[i];null===n||isNaN(n)||!this.chart.getDataVisibility(i)||e[i].hidden||(s+=Math.abs(n))}return s}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?P*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,s=i.data.labels||[],n=ai(e._parsed[t],i.options.locale);return{label:s[t]||"",value:n}}getMaxBorderWidth(t){let e=0;const i=this.chart;let s,n,o,a,r;if(!t)for(s=0,n=i.data.datasets.length;s<n;++s)if(i.isDatasetVisible(s)){o=i.getDatasetMeta(s),t=o.data,a=o.controller;break}if(!t)return 0;for(s=0,n=t.length;s<n;++s)r=a.resolveDataElementOptions(s),"inner"!==r.borderAlign&&(e=Math.max(e,r.borderWidth||0,r.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let i=0,s=t.length;i<s;++i){const t=this.resolveDataElementOptions(i);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e}_getRingWeight(t){return Math.max(d(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Yi.id="doughnut",Yi.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"},Yi.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},Yi.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map(((e,s)=>{const n=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const i=": "+t.formattedValue;return r(e)?(e=e.slice(),e[0]+=i):e+=i,e}}}}};class Ui extends Ri{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:s=[],_dataset:n}=e,o=this.chart._animationsDisabled;let{start:a,count:r}=lt(e,s,o);this._drawStart=a,this._drawCount=r,ht(e)&&(a=0,r=s.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!n._decimated,i.points=s;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(i,void 0,{animated:!o,options:l},t),this.updateElements(s,a,r,t)}updateElements(t,e,i,s){const n="reset"===s,{iScale:o,vScale:r,_stacked:l,_dataset:h}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(e,s),u=o.axis,f=r.axis,{spanGaps:g,segment:p}=this.options,m=N(g)?g:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||n||"none"===s;let x=e>0&&this.getParsed(e-1);for(let g=e;g<e+i;++g){const e=t[g],i=this.getParsed(g),_=b?e:{},y=a(i[f]),v=_[u]=o.getPixelForValue(i[u],g),w=_[f]=n||y?r.getBasePixel():r.getPixelForValue(l?this.applyStack(r,i,l):i[f],g);_.skip=isNaN(v)||isNaN(w)||y,_.stop=g>0&&Math.abs(i[u]-x[u])>m,p&&(_.parsed=i,_.raw=h.data[g]),d&&(_.options=c||this.resolveDataElementOptions(g,e.active?"active":s)),b||this.updateElement(e,g,_,s),x=i}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,s=t.data||[];if(!s.length)return i;const n=s[0].size(this.resolveDataElementOptions(0)),o=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,n,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Ui.id="line",Ui.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},Ui.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Xi extends Ri{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,s=i.data.labels||[],n=ai(e._parsed[t].r,i.options.locale);return{label:s[t]||"",value:n}}parseObjectData(t,e,i,s){return Fe.bind(this)(t,e,i,s)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach(((t,i)=>{const s=this.getParsed(i).r;!isNaN(s)&&this.chart.getDataVisibility(i)&&(s<e.min&&(e.min=s),s>e.max&&(e.max=s))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,s=Math.min(e.right-e.left,e.bottom-e.top),n=Math.max(s/2,0),o=(n-Math.max(i.cutoutPercentage?n/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=n-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,i,s){const n="reset"===s,o=this.chart,a=o.options.animation,r=this._cachedMeta.rScale,l=r.xCenter,h=r.yCenter,c=r.getIndexAngle(0)-.5*E;let d,u=c;const f=360/this.countVisibleElements();for(d=0;d<e;++d)u+=this._computeAngle(d,s,f);for(d=e;d<e+i;d++){const e=t[d];let i=u,g=u+this._computeAngle(d,s,f),p=o.getDataVisibility(d)?r.getDistanceFromCenterForValue(this.getParsed(d).r):0;u=g,n&&(a.animateScale&&(p=0),a.animateRotate&&(i=g=c));const m={x:l,y:h,innerRadius:0,outerRadius:p,startAngle:i,endAngle:g,options:this.resolveDataElementOptions(d,e.active?"active":s)};this.updateElement(e,d,m,s)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach(((t,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++})),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?W(this.resolveDataElementOptions(t,e).angle||i):0}}Xi.id="polarArea",Xi.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},Xi.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map(((e,s)=>{const n=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.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 qi extends Yi{}qi.id="pie",qi.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class Ki extends Ri{getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,s){return Fe.bind(this)(t,e,i,s)}update(t){const e=this._cachedMeta,i=e.dataset,s=e.data||[],n=e.iScale.getLabels();if(i.points=s,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:n.length===s.length,options:e};this.updateElement(i,void 0,o,t)}this.updateElements(s,0,s.length,t)}updateElements(t,e,i,s){const n=this._cachedMeta.rScale,o="reset"===s;for(let a=e;a<e+i;a++){const e=t[a],i=this.resolveDataElementOptions(a,e.active?"active":s),r=n.getPointPositionForValue(a,this.getParsed(a).r),l=o?n.xCenter:r.x,h=o?n.yCenter:r.y,c={x:l,y:h,angle:r.angle,skip:isNaN(l)||isNaN(h),options:i};this.updateElement(e,a,c,s)}}}Ki.id="radar",Ki.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},Ki.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class Gi{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:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return N(this.x)&&N(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const s={};return t.forEach((t=>{s[t]=i[t]&&i[t].active()?i[t]._to:this[t]})),s}}Gi.defaults={},Gi.defaultRoutes=void 0;const Ji={values:t=>r(t)?t:""+t,numeric(t,e,i){if(0===t)return"0";const s=this.chart.options.locale;let n,o=t;if(i.length>1){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(n="scientific"),o=function(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t)),i}(t,i)}const a=I(Math.abs(o)),r=Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:n,minimumFractionDigits:r,maximumFractionDigits:r};return Object.assign(l,this.options.ticks.format),ai(t,s,l)},logarithmic(t,e,i){if(0===t)return"0";const s=t/Math.pow(10,Math.floor(I(t)));return 1===s||2===s||5===s?Ji.numeric.call(this,t,e,i):""}};var Qi={formatters:Ji};function ts(t,e,i,s,n){const o=d(s,0),a=Math.min(d(n,t.length),t.length);let r,l,h,c=0;for(i=Math.ceil(i),n&&(r=n-s,i=r/Math.floor(r/i)),h=o;h<0;)c++,h=Math.round(o+c*i);for(l=Math.max(o,0);l<a;l++)l===h&&(e.push(t[l]),c++,h=Math.round(o+c*i))}Jt.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:Qi.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Jt.route("scale.ticks","color","","color"),Jt.route("scale.grid","color","","borderColor"),Jt.route("scale.grid","borderColor","","borderColor"),Jt.route("scale.title","color","","color"),Jt.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),Jt.describe("scales",{_fallback:"scale"}),Jt.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const es=t=>"left"===t?"right":"right"===t?"left":t,is=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i;function ss(t,e){const i=[],s=t.length/e,n=t.length;let o=0;for(;o<n;o+=s)i.push(t[Math.floor(o)]);return i}function ns(t,e,i){const s=t.ticks.length,n=Math.min(e,s-1),o=t._startPixel,a=t._endPixel,r=1e-6;let l,h=t.getPixelForTick(n);if(!(i&&(l=1===s?Math.max(h-o,a-h):0===e?(t.getPixelForTick(1)-h)/2:(h-t.getPixelForTick(n-1))/2,h+=n<e?l:-l,h<o-r||h>a+r)))return h}function os(t){return t.drawTicks?t.tickLength:0}function as(t,e){if(!t.display)return 0;const i=ve(t.font,e),s=ye(t.padding);return(r(t.text)?t.text.length:1)*i.lineHeight+s.height}function rs(t,e,i){let s=at(t);return(i&&"right"!==e||!i&&"right"===e)&&(s=es(s)),s}class ls extends Gi{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:i,_suggestedMax:s}=this;return t=c(t,Number.POSITIVE_INFINITY),e=c(e,Number.NEGATIVE_INFINITY),i=c(i,Number.POSITIVE_INFINITY),s=c(s,Number.NEGATIVE_INFINITY),{min:c(t,i),max:c(e,s),minDefined:h(t),maxDefined:h(e)}}getMinMax(t){let e,{min:i,max:s,minDefined:n,maxDefined:o}=this.getUserBounds();if(n&&o)return{min:i,max:s};const a=this.getMatchingVisibleMetas();for(let r=0,l=a.length;r<l;++r)e=a[r].controller.getMinMax(this,t),n||(i=Math.min(i,e.min)),o||(s=Math.max(s,e.max));return i=o&&i>s?s:i,s=n&&i>s?i:s,{min:c(i,c(s,i)),max:c(s,c(i,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(){f(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:s,grace:n,ticks:o}=this.options,r=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,i){const{min:s,max:n}=t,o=u(e,(n-s)/2),a=(t,e)=>i&&0===t?0:t+e;return{min:a(s,-Math.abs(o)),max:a(n,o)}}(this,n,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=r<this.ticks.length;this._convertTicksToLabels(l?ss(this.ticks,r):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=function(t,e){const i=t.options.ticks,s=i.maxTicksLimit||function(t){const e=t.options.offset,i=t._tickSize(),s=t._length/i+(e?0:1),n=t._maxLength/i;return Math.floor(Math.min(s,n))}(t),n=i.major.enabled?function(t){const e=[];let i,s;for(i=0,s=t.length;i<s;i++)t[i].major&&e.push(i);return e}(e):[],o=n.length,r=n[0],l=n[o-1],h=[];if(o>s)return function(t,e,i,s){let n,o=0,a=i[0];for(s=Math.ceil(s),n=0;n<t.length;n++)n===a&&(e.push(t[n]),o++,a=i[o*s])}(e,h,n,o/s),h;const c=function(t,e,i){const s=function(t){const e=t.length;let i,s;if(e<2)return!1;for(s=t[0],i=1;i<e;++i)if(t[i]-t[i-1]!==s)return!1;return s}(t),n=e.length/i;if(!s)return Math.max(n,1);const o=function(t){const e=[],i=Math.sqrt(t);let s;for(s=1;s<i;s++)t%s==0&&(e.push(s),e.push(t/s));return i===(0|i)&&e.push(i),e.sort(((t,e)=>t-e)).pop(),e}(s);for(let t=0,e=o.length-1;t<e;t++){const e=o[t];if(e>n)return e}return Math.max(n,1)}(n,e,s);if(o>0){let t,i;const s=o>1?Math.round((l-r)/(o-1)):null;for(ts(e,h,c,a(s)?0:r-s,r),t=0,i=o-1;t<i;t++)ts(e,h,c,n[t],n[t+1]);return ts(e,h,c,l,a(s)?e.length:l+s),h}return ts(e,h,c),h}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,i=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,i=!i),this._startPixel=t,this._endPixel=e,this._reversePixels=i,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){f(this.options.afterUpdate,[this])}beforeSetDimensions(){f(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(){f(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),f(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){f(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let i,s,n;for(i=0,s=t.length;i<s;i++)n=t[i],n.label=f(e.callback,[n.value,i,t],this)}afterTickToLabelConversion(){f(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){f(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,i=this.ticks.length,s=e.minRotation||0,n=e.maxRotation;let o,a,r,l=s;if(!this._isVisible()||!e.display||s>=n||i<=1||!this.isHorizontal())return void(this.labelRotation=s);const h=this._getLabelSizes(),c=h.widest.width,d=h.highest.height,u=K(this.chart.width-c,0,this.maxWidth);o=t.offset?this.maxWidth/i:u/(i-1),c+6>o&&(o=u/(i-(t.offset?.5:1)),a=this.maxHeight-os(t.grid)-e.padding-as(t.title,this.chart.options.font),r=Math.sqrt(c*c+d*d),l=j(Math.min(Math.asin(K((h.highest.height+6)/o,-1,1)),Math.asin(K(a/r,-1,1))-Math.asin(K(d/r,-1,1)))),l=Math.max(s,Math.min(n,l))),this.labelRotation=l}afterCalculateLabelRotation(){f(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){f(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:s,grid:n}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const o=as(s,e.options.font);if(a?(t.width=this.maxWidth,t.height=os(n)+o):(t.height=this.maxHeight,t.width=os(n)+o),i.display&&this.ticks.length){const{first:e,last:s,widest:n,highest:o}=this._getLabelSizes(),r=2*i.padding,l=W(this.labelRotation),h=Math.cos(l),c=Math.sin(l);if(a){const e=i.mirror?0:c*n.width+h*o.height;t.height=Math.min(this.maxHeight,t.height+e+r)}else{const e=i.mirror?0:h*n.width+c*o.height;t.width=Math.min(this.maxWidth,t.width+e+r)}this._calculatePadding(e,s,c,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,i,s){const{ticks:{align:n,padding:o},position:a}=this.options,r=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let c=0,d=0;r?l?(c=s*t.width,d=i*e.height):(c=i*t.height,d=s*e.width):"start"===n?d=e.width:"end"===n?c=t.width:"inner"!==n&&(c=t.width/2,d=e.width/2),this.paddingLeft=Math.max((c-a+o)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-h+o)*this.width/(this.width-h),0)}else{let i=e.height/2,s=t.height/2;"start"===n?(i=0,s=t.height):"end"===n&&(i=e.height,s=0),this.paddingTop=i+o,this.paddingBottom=s+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(){f(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,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e<i;e++)a(t[e].label)&&(t.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let i=this.ticks;e<i.length&&(i=ss(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length)}return t}_computeLabelSizes(t,e){const{ctx:i,_longestTextCache:s}=this,n=[],o=[];let l,h,c,d,u,f,p,m,b,x,_,y=0,v=0;for(l=0;l<e;++l){if(d=t[l].label,u=this._resolveTickFontOptions(l),i.font=f=u.string,p=s[f]=s[f]||{data:{},gc:[]},m=u.lineHeight,b=x=0,a(d)||r(d)){if(r(d))for(h=0,c=d.length;h<c;++h)_=d[h],a(_)||r(_)||(b=Qt(i,p.data,p.gc,b,_),x+=m)}else b=Qt(i,p.data,p.gc,b,d),x=m;n.push(b),o.push(x),y=Math.max(b,y),v=Math.max(x,v)}!function(t,e){g(t,(t=>{const i=t.gc,s=i.length/2;let n;if(s>e){for(n=0;n<s;++n)delete t.data[i[n]];i.splice(0,s)}}))}(s,e);const w=n.indexOf(y),k=o.indexOf(v),C=t=>({width:n[t]||0,height:o[t]||0});return{first:C(0),last:C(e-1),widest:C(w),highest:C(k),widths:n,heights:o}}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 K(this._alignToPixels?ee(this.chart,e,0):e,-32768,32767)}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 i=e[t];return i.$context||(i.$context=function(t,e,i){return ke(t,{tick:i,index:e,type:"tick"})}(this.getContext(),t,i))}return this.$context||(this.$context=ke(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=W(this.labelRotation),i=Math.abs(Math.cos(e)),s=Math.abs(Math.sin(e)),n=this._getLabelSizes(),o=t.autoSkipPadding||0,a=n?n.widest.width+o:0,r=n?n.highest.height+o:0;return this.isHorizontal()?r*i>a*s?a/i:r/s:r*s<a*i?r/i:a/s}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,i=this.chart,s=this.options,{grid:n,position:o}=s,a=n.offset,r=this.isHorizontal(),h=this.ticks.length+(a?1:0),c=os(n),u=[],f=n.setContext(this.getContext()),g=f.drawBorder?f.borderWidth:0,p=g/2,m=function(t){return ee(i,t,g)};let b,x,_,y,v,w,k,C,M,S,L,E;if("top"===o)b=m(this.bottom),w=this.bottom-c,C=b-p,S=m(t.top)+p,E=t.bottom;else if("bottom"===o)b=m(this.top),S=t.top,E=m(t.bottom)-p,w=b+p,C=this.top+c;else if("left"===o)b=m(this.right),v=this.right-c,k=b-p,M=m(t.left)+p,L=t.right;else if("right"===o)b=m(this.left),M=t.left,L=m(t.right)-p,v=b+p,k=this.left+c;else if("x"===e){if("center"===o)b=m((t.top+t.bottom)/2+.5);else if(l(o)){const t=Object.keys(o)[0],e=o[t];b=m(this.chart.scales[t].getPixelForValue(e))}S=t.top,E=t.bottom,w=b+p,C=w+c}else if("y"===e){if("center"===o)b=m((t.left+t.right)/2);else if(l(o)){const t=Object.keys(o)[0],e=o[t];b=m(this.chart.scales[t].getPixelForValue(e))}v=b-p,k=v-c,M=t.left,L=t.right}const P=d(s.ticks.maxTicksLimit,h),D=Math.max(1,Math.ceil(h/P));for(x=0;x<h;x+=D){const t=n.setContext(this.getContext(x)),e=t.lineWidth,s=t.color,o=t.borderDash||[],l=t.borderDashOffset,h=t.tickWidth,c=t.tickColor,d=t.tickBorderDash||[],f=t.tickBorderDashOffset;_=ns(this,x,a),void 0!==_&&(y=ee(i,_,e),r?v=k=M=L=y:w=C=S=E=y,u.push({tx1:v,ty1:w,tx2:k,ty2:C,x1:M,y1:S,x2:L,y2:E,width:e,color:s,borderDash:o,borderDashOffset:l,tickWidth:h,tickColor:c,tickBorderDash:d,tickBorderDashOffset:f}))}return this._ticksLength=h,this._borderValue=b,u}_computeLabelItems(t){const e=this.axis,i=this.options,{position:s,ticks:n}=i,o=this.isHorizontal(),a=this.ticks,{align:h,crossAlign:c,padding:d,mirror:u}=n,f=os(i.grid),g=f+d,p=u?-d:g,m=-W(this.labelRotation),b=[];let x,_,y,v,w,k,C,M,S,L,E,P,D="middle";if("top"===s)k=this.bottom-p,C=this._getXAxisLabelAlignment();else if("bottom"===s)k=this.top+p,C=this._getXAxisLabelAlignment();else if("left"===s){const t=this._getYAxisLabelAlignment(f);C=t.textAlign,w=t.x}else if("right"===s){const t=this._getYAxisLabelAlignment(f);C=t.textAlign,w=t.x}else if("x"===e){if("center"===s)k=(t.top+t.bottom)/2+g;else if(l(s)){const t=Object.keys(s)[0],e=s[t];k=this.chart.scales[t].getPixelForValue(e)+g}C=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===s)w=(t.left+t.right)/2-g;else if(l(s)){const t=Object.keys(s)[0],e=s[t];w=this.chart.scales[t].getPixelForValue(e)}C=this._getYAxisLabelAlignment(f).textAlign}"y"===e&&("start"===h?D="top":"end"===h&&(D="bottom"));const O=this._getLabelSizes();for(x=0,_=a.length;x<_;++x){y=a[x],v=y.label;const t=n.setContext(this.getContext(x));M=this.getPixelForTick(x)+n.labelOffset,S=this._resolveTickFontOptions(x),L=S.lineHeight,E=r(v)?v.length:1;const e=E/2,i=t.color,l=t.textStrokeColor,h=t.textStrokeWidth;let d,f=C;if(o?(w=M,"inner"===C&&(f=x===_-1?this.options.reverse?"left":"right":0===x?this.options.reverse?"right":"left":"center"),P="top"===s?"near"===c||0!==m?-E*L+L/2:"center"===c?-O.highest.height/2-e*L+L:-O.highest.height+L/2:"near"===c||0!==m?L/2:"center"===c?O.highest.height/2-e*L:O.highest.height-E*L,u&&(P*=-1)):(k=M,P=(1-E)*L/2),t.showLabelBackdrop){const e=ye(t.backdropPadding),i=O.heights[x],s=O.widths[x];let n=k+P-e.top,o=w-e.left;switch(D){case"middle":n-=i/2;break;case"bottom":n-=i}switch(C){case"center":o-=s/2;break;case"right":o-=s}d={left:o,top:n,width:s+e.width,height:i+e.height,color:t.backdropColor}}b.push({rotation:m,label:v,font:S,color:i,strokeColor:l,strokeWidth:h,textOffset:P,textAlign:f,textBaseline:D,translation:[w,k],backdrop:d})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-W(this.labelRotation))return"top"===t?"left":"right";let i="center";return"start"===e.align?i="left":"end"===e.align?i="right":"inner"===e.align&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:i,mirror:s,padding:n}}=this.options,o=t+n,a=this._getLabelSizes().widest.width;let r,l;return"left"===e?s?(l=this.right+n,"near"===i?r="left":"center"===i?(r="center",l+=a/2):(r="right",l+=a)):(l=this.right-o,"near"===i?r="right":"center"===i?(r="center",l-=a/2):(r="left",l=this.left)):"right"===e?s?(l=this.left+n,"near"===i?r="right":"center"===i?(r="center",l-=a/2):(r="left",l-=a)):(l=this.left+o,"near"===i?r="left":"center"===i?(r="center",l+=a/2):(r="right",l=this.right)):r="right",{textAlign:r,x:l}}_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:i,top:s,width:n,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,s,n,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const i=this.ticks.findIndex((e=>e.value===t));return i>=0?e.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const e=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let n,o;const a=(t,e,s)=>{s.width&&s.color&&(i.save(),i.lineWidth=s.width,i.strokeStyle=s.color,i.setLineDash(s.borderDash||[]),i.lineDashOffset=s.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(n=0,o=s.length;n<o;++n){const t=s[n];e.drawOnChartArea&&a({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&a({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:i}}=this,s=i.setContext(this.getContext()),n=i.drawBorder?s.borderWidth:0;if(!n)return;const o=i.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let r,l,h,c;this.isHorizontal()?(r=ee(t,this.left,n)-n/2,l=ee(t,this.right,o)+o/2,h=c=a):(h=ee(t,this.top,n)-n/2,c=ee(t,this.bottom,o)+o/2,r=l=a),e.save(),e.lineWidth=s.borderWidth,e.strokeStyle=s.borderColor,e.beginPath(),e.moveTo(r,h),e.lineTo(l,c),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,i=this._computeLabelArea();i&&ae(e,i);const s=this._labelItems||(this._labelItems=this._computeLabelItems(t));let n,o;for(n=0,o=s.length;n<o;++n){const t=s[n],i=t.font,o=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height)),ce(e,o,0,t.textOffset,i,t)}i&&re(e)}drawTitle(){const{ctx:t,options:{position:e,title:i,reverse:s}}=this;if(!i.display)return;const n=ve(i.font),o=ye(i.padding),a=i.align;let h=n.lineHeight/2;"bottom"===e||"center"===e||l(e)?(h+=o.bottom,r(i.text)&&(h+=n.lineHeight*(i.text.length-1))):h+=o.top;const{titleX:c,titleY:d,maxWidth:u,rotation:f}=function(t,e,i,s){const{top:n,left:o,bottom:a,right:r,chart:h}=t,{chartArea:c,scales:d}=h;let u,f,g,p=0;const m=a-n,b=r-o;if(t.isHorizontal()){if(f=rt(s,o,r),l(i)){const t=Object.keys(i)[0],s=i[t];g=d[t].getPixelForValue(s)+m-e}else g="center"===i?(c.bottom+c.top)/2+m-e:is(t,i,e);u=r-o}else{if(l(i)){const t=Object.keys(i)[0],s=i[t];f=d[t].getPixelForValue(s)-b+e}else f="center"===i?(c.left+c.right)/2-b+e:is(t,i,e);g=rt(s,a,n),p="left"===i?-T:T}return{titleX:f,titleY:g,maxWidth:u,rotation:p}}(this,h,e,a);ce(t,i.text,0,0,n,{color:i.color,maxWidth:u,rotation:f,textAlign:rs(a,e,s),textBaseline:"middle",translation:[c,d]})}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,i=d(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===ls.prototype.draw?[{z:i,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i+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(),i=this.axis+"AxisID",s=[];let n,o;for(n=0,o=e.length;n<o;++n){const o=e[n];o[i]!==this.id||t&&o.type!==t||s.push(o)}return s}_resolveTickFontOptions(t){return ve(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class hs{constructor(t,e,i){this.type=t,this.scope=e,this.override=i,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 i;(function(t){return"id"in t&&"defaults"in t})(e)&&(i=this.register(e));const s=this.items,n=t.id,o=this.scope+"."+n;if(!n)throw new Error("class does not have id: "+t);return n in s||(s[n]=t,function(t,e,i){const s=_(Object.create(null),[i?Jt.get(i):{},Jt.get(e),t.defaults]);Jt.set(e,s),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((i=>{const s=i.split("."),n=s.pop(),o=[t].concat(s).join("."),a=e[i].split("."),r=a.pop(),l=a.join(".");Jt.route(o,n,l,r)}))}(e,t.defaultRoutes),t.descriptors&&Jt.describe(e,t.descriptors)}(t,o,i),this.override&&Jt.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,s=this.scope;i in e&&delete e[i],s&&i in Jt[s]&&(delete Jt[s][i],this.override&&delete Xt[i])}}var cs=new class{constructor(){this.controllers=new hs(Ri,"datasets",!0),this.elements=new hs(Gi,"elements"),this.plugins=new hs(Object,"plugins"),this.scales=new hs(ls,"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,i){[...e].forEach((e=>{const s=i||this._getRegistryForType(e);i||s.isForType(e)||s===this.plugins&&e.id?this._exec(t,s,e):g(e,(e=>{const s=i||this._getRegistryForType(e);this._exec(t,s,e)}))}))}_exec(t,e,i){const s=C(t);f(i["before"+s],[],i),e[t](i),f(i["after"+s],[],i)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const i=this._typedRegistries[e];if(i.isForType(t))return i}return this.plugins}_get(t,e,i){const s=e.get(t);if(void 0===s)throw new Error('"'+t+'" is not a registered '+i+".");return s}};class ds extends Ri{update(t){const e=this._cachedMeta,{data:i=[]}=e,s=this.chart._animationsDisabled;let{start:n,count:o}=lt(e,i,s);if(this._drawStart=n,this._drawCount=o,ht(e)&&(n=0,o=i.length),this.options.showLine){const{dataset:n,_dataset:o}=e;n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=i;const a=this.resolveDatasetElementOptions(t);a.segment=this.options.segment,this.updateElement(n,void 0,{animated:!s,options:a},t)}this.updateElements(i,n,o,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=cs.getElement("line")),super.addElements()}updateElements(t,e,i,s){const n="reset"===s,{iScale:o,vScale:r,_stacked:l,_dataset:h}=this._cachedMeta,c=this.resolveDataElementOptions(e,s),d=this.getSharedOptions(c),u=this.includeOptions(s,d),f=o.axis,g=r.axis,{spanGaps:p,segment:m}=this.options,b=N(p)?p:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||n||"none"===s;let _=e>0&&this.getParsed(e-1);for(let c=e;c<e+i;++c){const e=t[c],i=this.getParsed(c),p=x?e:{},y=a(i[g]),v=p[f]=o.getPixelForValue(i[f],c),w=p[g]=n||y?r.getBasePixel():r.getPixelForValue(l?this.applyStack(r,i,l):i[g],c);p.skip=isNaN(v)||isNaN(w)||y,p.stop=c>0&&Math.abs(i[f]-_[f])>b,m&&(p.parsed=i,p.raw=h.data[c]),u&&(p.options=d||this.resolveDataElementOptions(c,e.active?"active":s)),x||this.updateElement(e,c,p,s),_=i}this.updateSharedOptions(d,s,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let i=e.length-1;i>=0;--i)t=Math.max(t,e[i].size(this.resolveDataElementOptions(i))/2);return t>0&&t}const i=t.dataset,s=i.options&&i.options.borderWidth||0;if(!e.length)return s;const n=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(s,n,o)/2}}ds.id="scatter",ds.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},ds.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var us=Object.freeze({__proto__:null,BarController:$i,BubbleController:Zi,DoughnutController:Yi,LineController:Ui,PolarAreaController:Xi,PieController:qi,RadarController:Ki,ScatterController:ds});function fs(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class gs{constructor(t){this.options=t||{}}init(t){}formats(){return fs()}parse(t,e){return fs()}format(t,e){return fs()}add(t,e,i){return fs()}diff(t,e,i){return fs()}startOf(t,e,i){return fs()}endOf(t,e){return fs()}}gs.override=function(t){Object.assign(gs.prototype,t)};var ps={_date:gs};function ms(t,e,i,s){const{controller:n,data:o,_sorted:a}=t,r=n._cachedMeta.iScale;if(r&&e===r.axis&&"r"!==e&&a&&o.length){const t=r._reversePixels?tt:Q;if(!s)return t(o,e,i);if(n._sharedOptions){const s=o[0],n="function"==typeof s.getRange&&s.getRange(e);if(n){const s=t(o,e,i-n),a=t(o,e,i+n);return{lo:s.lo,hi:a.hi}}}}return{lo:0,hi:o.length-1}}function bs(t,e,i,s,n){const o=t.getSortedVisibleDatasetMetas(),a=i[e];for(let t=0,i=o.length;t<i;++t){const{index:i,data:r}=o[t],{lo:l,hi:h}=ms(o[t],e,a,n);for(let t=l;t<=h;++t){const e=r[t];e.skip||s(e,i,t)}}}function xs(t,e,i,s,n){const o=[];return n||t.isPointInArea(e)?(bs(t,i,e,(function(i,a,r){(n||oe(i,t.chartArea,0))&&i.inRange(e.x,e.y,s)&&o.push({element:i,datasetIndex:a,index:r})}),!0),o):o}function _s(t,e,i,s,n,o){return o||t.isPointInArea(e)?"r"!==i||s?function(t,e,i,s,n,o){let a=[];const r=function(t){const e=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,s){const n=e?Math.abs(t.x-s.x):0,o=i?Math.abs(t.y-s.y):0;return Math.sqrt(Math.pow(n,2)+Math.pow(o,2))}}(i);let l=Number.POSITIVE_INFINITY;return bs(t,i,e,(function(i,h,c){const d=i.inRange(e.x,e.y,n);if(s&&!d)return;const u=i.getCenterPoint(n);if(!o&&!t.isPointInArea(u)&&!d)return;const f=r(e,u);f<l?(a=[{element:i,datasetIndex:h,index:c}],l=f):f===l&&a.push({element:i,datasetIndex:h,index:c})})),a}(t,e,i,s,n,o):function(t,e,i,s){let n=[];return bs(t,i,e,(function(t,i,o){const{startAngle:a,endAngle:r}=t.getProps(["startAngle","endAngle"],s),{angle:l}=Z(t,{x:e.x,y:e.y});q(l,a,r)&&n.push({element:t,datasetIndex:i,index:o})})),n}(t,e,i,n):[]}function ys(t,e,i,s,n){const o=[],a="x"===i?"inXRange":"inYRange";let r=!1;return bs(t,i,e,((t,s,l)=>{t[a](e[i],n)&&(o.push({element:t,datasetIndex:s,index:l}),r=r||t.inRange(e.x,e.y,n))})),s&&!r?[]:o}var vs={evaluateInteractionItems:bs,modes:{index(t,e,i,s){const n=Ge(e,t),o=i.axis||"x",a=i.includeInvisible||!1,r=i.intersect?xs(t,n,o,s,a):_s(t,n,o,!1,s,a),l=[];return r.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=r[0].index,i=t.data[e];i&&!i.skip&&l.push({element:i,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,i,s){const n=Ge(e,t),o=i.axis||"xy",a=i.includeInvisible||!1;let r=i.intersect?xs(t,n,o,s,a):_s(t,n,o,!1,s,a);if(r.length>0){const e=r[0].datasetIndex,i=t.getDatasetMeta(e).data;r=[];for(let t=0;t<i.length;++t)r.push({element:i[t],datasetIndex:e,index:t})}return r},point:(t,e,i,s)=>xs(t,Ge(e,t),i.axis||"xy",s,i.includeInvisible||!1),nearest(t,e,i,s){const n=Ge(e,t),o=i.axis||"xy",a=i.includeInvisible||!1;return _s(t,n,o,i.intersect,s,a)},x:(t,e,i,s)=>ys(t,Ge(e,t),"x",i.intersect,s),y:(t,e,i,s)=>ys(t,Ge(e,t),"y",i.intersect,s)}};const ws=["left","top","right","bottom"];function ks(t,e){return t.filter((t=>t.pos===e))}function Cs(t,e){return t.filter((t=>-1===ws.indexOf(t.pos)&&t.box.axis===e))}function Ms(t,e){return t.sort(((t,i)=>{const s=e?i:t,n=e?t:i;return s.weight===n.weight?s.index-n.index:s.weight-n.weight}))}function Ss(t,e,i,s){return Math.max(t[i],e[i])+Math.max(t[s],e[s])}function Ls(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 Es(t,e,i,s){const{pos:n,box:o}=i,a=t.maxPadding;if(!l(n)){i.size&&(t[n]-=i.size);const e=s[i.stack]||{size:0,count:1};e.size=Math.max(e.size,i.horizontal?o.height:o.width),i.size=e.size/e.count,t[n]+=i.size}o.getPadding&&Ls(a,o.getPadding());const r=Math.max(0,e.outerWidth-Ss(a,t,"left","right")),h=Math.max(0,e.outerHeight-Ss(a,t,"top","bottom")),c=r!==t.w,d=h!==t.h;return t.w=r,t.h=h,i.horizontal?{same:c,other:d}:{same:d,other:c}}function Ps(t,e){const i=e.maxPadding;return function(t){const s={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{s[t]=Math.max(e[t],i[t])})),s}(t?["left","right"]:["top","bottom"])}function Ds(t,e,i,s){const n=[];let o,a,r,l,h,c;for(o=0,a=t.length,h=0;o<a;++o){r=t[o],l=r.box,l.update(r.width||e.w,r.height||e.h,Ps(r.horizontal,e));const{same:a,other:d}=Es(e,i,r,s);h|=a&&n.length,c=c||d,l.fullSize||n.push(r)}return h&&Ds(n,e,i,s)||c}function Os(t,e,i,s,n){t.top=i,t.left=e,t.right=e+s,t.bottom=i+n,t.width=s,t.height=n}function As(t,e,i,s){const n=i.padding;let{x:o,y:a}=e;for(const r of t){const t=r.box,l=s[r.stack]||{count:1,placed:0,weight:1},h=r.stackWeight/l.weight||1;if(r.horizontal){const s=e.w*h,o=l.size||t.height;M(l.start)&&(a=l.start),t.fullSize?Os(t,n.left,a,i.outerWidth-n.right-n.left,o):Os(t,e.left+l.placed,a,s,o),l.start=a,l.placed+=s,a=t.bottom}else{const s=e.h*h,a=l.size||t.width;M(l.start)&&(o=l.start),t.fullSize?Os(t,o,n.top,a,i.outerHeight-n.bottom-n.top):Os(t,o,e.top+l.placed,a,s),l.start=o,l.placed+=s,o=t.right}}e.x=o,e.y=a}Jt.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Ts={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 i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure(t,e,i){e.fullSize=i.fullSize,e.position=i.position,e.weight=i.weight},update(t,e,i,s){if(!t)return;const n=ye(t.options.layout.padding),o=Math.max(e-n.width,0),a=Math.max(i-n.height,0),r=function(t){const e=function(t){const e=[];let i,s,n,o,a,r;for(i=0,s=(t||[]).length;i<s;++i)n=t[i],({position:o,options:{stack:a,stackWeight:r=1}}=n),e.push({index:i,box:n,pos:o,horizontal:n.isHorizontal(),weight:n.weight,stack:a&&o+a,stackWeight:r});return e}(t),i=Ms(e.filter((t=>t.box.fullSize)),!0),s=Ms(ks(e,"left"),!0),n=Ms(ks(e,"right")),o=Ms(ks(e,"top"),!0),a=Ms(ks(e,"bottom")),r=Cs(e,"x"),l=Cs(e,"y");return{fullSize:i,leftAndTop:s.concat(o),rightAndBottom:n.concat(l).concat(a).concat(r),chartArea:ks(e,"chartArea"),vertical:s.concat(n).concat(l),horizontal:o.concat(a).concat(r)}}(t.boxes),l=r.vertical,h=r.horizontal;g(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const c=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,d=Object.freeze({outerWidth:e,outerHeight:i,padding:n,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/c,hBoxMaxHeight:a/2}),u=Object.assign({},n);Ls(u,ye(s));const f=Object.assign({maxPadding:u,w:o,h:a,x:n.left,y:n.top},n),p=function(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:s,stackWeight:n}=i;if(!t||!ws.includes(s))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=n}return e}(t),{vBoxMaxWidth:s,hBoxMaxHeight:n}=e;let o,a,r;for(o=0,a=t.length;o<a;++o){r=t[o];const{fullSize:a}=r.box,l=i[r.stack],h=l&&r.stackWeight/l.weight;r.horizontal?(r.width=h?h*s:a&&e.availableWidth,r.height=n):(r.width=s,r.height=h?h*n:a&&e.availableHeight)}return i}(l.concat(h),d);Ds(r.fullSize,f,d,p),Ds(l,f,d,p),Ds(h,f,d,p)&&Ds(l,f,d,p),function(t){const e=t.maxPadding;function i(i){const s=Math.max(e[i]-t[i],0);return t[i]+=s,s}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(f),As(r.leftAndTop,f,d,p),f.x+=f.w,f.y+=f.h,As(r.rightAndBottom,f,d,p),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},g(r.chartArea,(e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})}))}};class zs{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,s){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,s?Math.floor(e/s):i)}}isAttached(t){return!0}updateConfig(t){}}class Rs extends zs{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Is="$chartjs",Fs={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Vs=t=>null===t||""===t,Ns=!!ti&&{passive:!0};function Hs(t,e,i){t.canvas.removeEventListener(e,i,Ns)}function Bs(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function Ws(t,e,i){const s=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||Bs(i.addedNodes,s),e=e&&!Bs(i.removedNodes,s);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}function js(t,e,i){const s=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||Bs(i.removedNodes,s),e=e&&!Bs(i.addedNodes,s);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}const $s=new Map;let Zs=0;function Ys(){const t=window.devicePixelRatio;t!==Zs&&(Zs=t,$s.forEach(((e,i)=>{i.currentDevicePixelRatio!==t&&e()})))}function Us(t,e,i){const s=t.canvas,n=s&&Ze(s);if(!n)return;const o=ot(((t,e)=>{const s=n.clientWidth;i(t,e),s<n.clientWidth&&i()}),window),a=new ResizeObserver((t=>{const e=t[0],i=e.contentRect.width,s=e.contentRect.height;0===i&&0===s||o(i,s)}));return a.observe(n),function(t,e){$s.size||window.addEventListener("resize",Ys),$s.set(t,e)}(t,o),a}function Xs(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){$s.delete(t),$s.size||window.removeEventListener("resize",Ys)}(t)}function qs(t,e,i){const s=t.canvas,n=ot((e=>{null!==t.ctx&&i(function(t,e){const i=Fs[t.type]||t.type,{x:s,y:n}=Ge(t,e);return{type:i,chart:e,native:t,x:void 0!==s?s:null,y:void 0!==n?n:null}}(e,t))}),t,(t=>{const e=t[0];return[e,e.offsetX,e.offsetY]}));return function(t,e,i){t.addEventListener(e,i,Ns)}(s,e,n),n}class Ks extends zs{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,s=t.getAttribute("height"),n=t.getAttribute("width");if(t[Is]={initial:{height:s,width:n,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",Vs(n)){const e=ei(t,"width");void 0!==e&&(t.width=e)}if(Vs(s))if(""===t.style.height)t.height=t.width/(e||2);else{const e=ei(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[Is])return!1;const i=e[Is].initial;["height","width"].forEach((t=>{const s=i[t];a(s)?e.removeAttribute(t):e.setAttribute(t,s)}));const s=i.style||{};return Object.keys(s).forEach((t=>{e.style[t]=s[t]})),e.width=e.width,delete e[Is],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const s=t.$proxies||(t.$proxies={}),n={attach:Ws,detach:js,resize:Us}[e]||qs;s[e]=n(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),s=i[e];s&&(({attach:Xs,detach:Xs,resize:Xs}[e]||Hs)(t,e,s),i[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,s){return function(t,e,i,s){const n=Ue(t),o=qe(n,"margin"),a=Ye(n.maxWidth,t,"clientWidth")||O,r=Ye(n.maxHeight,t,"clientHeight")||O,l=function(t,e,i){let s,n;if(void 0===e||void 0===i){const o=Ze(t);if(o){const t=o.getBoundingClientRect(),a=Ue(o),r=qe(a,"border","width"),l=qe(a,"padding");e=t.width-l.width-r.width,i=t.height-l.height-r.height,s=Ye(a.maxWidth,o,"clientWidth"),n=Ye(a.maxHeight,o,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:s||O,maxHeight:n||O}}(t,e,i);let{width:h,height:c}=l;if("content-box"===n.boxSizing){const t=qe(n,"border","width"),e=qe(n,"padding");h-=e.width+t.width,c-=e.height+t.height}return h=Math.max(0,h-o.width),c=Math.max(0,s?Math.floor(h/s):c-o.height),h=Je(Math.min(h,a,l.maxWidth)),c=Je(Math.min(c,r,l.maxHeight)),h&&!c&&(c=Je(h/2)),{width:h,height:c}}(t,e,i,s)}isAttached(t){const e=Ze(t);return!(!e||!e.isConnected)}}class Gs{constructor(){this._init=[]}notify(t,e,i,s){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const n=s?this._descriptors(t).filter(s):this._descriptors(t),o=this._notify(n,t,e,i);return"afterDestroy"===e&&(this._notify(n,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,i,s){s=s||{};for(const n of t){const t=n.plugin;if(!1===f(t[i],[e,s,n.options],t)&&s.cancelable)return!1}return!0}invalidate(){a(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 i=t&&t.config,s=d(i.options&&i.options.plugins,{}),n=function(t){const e={},i=[],s=Object.keys(cs.plugins.items);for(let t=0;t<s.length;t++)i.push(cs.getPlugin(s[t]));const n=t.plugins||[];for(let t=0;t<n.length;t++){const s=n[t];-1===i.indexOf(s)&&(i.push(s),e[s.id]=!0)}return{plugins:i,localIds:e}}(i);return!1!==s||e?function(t,{plugins:e,localIds:i},s,n){const o=[],a=t.getContext();for(const r of e){const e=r.id,l=Js(s[e],n);null!==l&&o.push({plugin:r,options:Qs(t.config,{plugin:r,local:i[e]},l,a)})}return o}(t,n,s,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],i=this._cache,s=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(s(e,i),t,"stop"),this._notify(s(i,e),t,"start")}}function Js(t,e){return e||!1!==t?!0===t?{}:t:null}function Qs(t,{plugin:e,local:i},s,n){const o=t.pluginScopeKeys(e),a=t.getOptionScopes(s,o);return i&&e.defaults&&a.push(e.defaults),t.createResolver(a,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function tn(t,e){const i=Jt.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function en(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(i=e.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||t.charAt(0).toLowerCase();var i}function sn(t){const e=t.options||(t.options={});e.plugins=d(e.plugins,{}),e.scales=function(t,e){const i=Xt[t.type]||{scales:{}},s=e.scales||{},n=tn(t.type,e),o=Object.create(null),a=Object.create(null);return Object.keys(s).forEach((t=>{const e=s[t];if(!l(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 r=en(t,e),h=function(t,e){return t===e?"_index_":"_value_"}(r,n),c=i.scales||{};o[r]=o[r]||t,a[t]=y(Object.create(null),[{axis:r},e,c[r],c[h]])})),t.data.datasets.forEach((i=>{const n=i.type||t.type,r=i.indexAxis||tn(n,e),l=(Xt[n]||{}).scales||{};Object.keys(l).forEach((t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,r),n=i[e+"AxisID"]||o[e]||e;a[n]=a[n]||Object.create(null),y(a[n],[{axis:e},s[n],l[t]])}))})),Object.keys(a).forEach((t=>{const e=a[t];y(e,[Jt.scales[e.type],Jt.scale])})),a}(t,e)}function nn(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const on=new Map,an=new Set;function rn(t,e){let i=on.get(t);return i||(i=e(),on.set(t,i),an.add(i)),i}const ln=(t,e,i)=>{const s=k(e,i);void 0!==s&&t.add(s)};class hn{constructor(t){this._config=function(t){return(t=t||{}).data=nn(t.data),sn(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=nn(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(),sn(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return rn(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return rn(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return rn(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return rn(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const i=this._scopeCache;let s=i.get(t);return s&&!e||(s=new Map,i.set(t,s)),s}getOptionScopes(t,e,i){const{options:s,type:n}=this,o=this._cachedScopes(t,i),a=o.get(e);if(a)return a;const r=new Set;e.forEach((e=>{t&&(r.add(t),e.forEach((e=>ln(r,t,e)))),e.forEach((t=>ln(r,s,t))),e.forEach((t=>ln(r,Xt[n]||{},t))),e.forEach((t=>ln(r,Jt,t))),e.forEach((t=>ln(r,qt,t)))}));const l=Array.from(r);return 0===l.length&&l.push(Object.create(null)),an.has(e)&&o.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,Xt[e]||{},Jt.datasets[e]||{},{type:e},Jt,qt]}resolveNamedOptions(t,e,i,s=[""]){const n={$shared:!0},{resolver:o,subPrefixes:a}=cn(this._resolverCache,t,s);let l=o;(function(t,e){const{isScriptable:i,isIndexable:s}=Se(t);for(const n of e){const e=i(n),o=s(n),a=(o||e)&&t[n];if(e&&(S(a)||dn(a))||o&&r(a))return!0}return!1})(o,e)&&(n.$shared=!1,l=Me(o,i=S(i)?i():i,this.createResolver(t,i,a)));for(const t of e)n[t]=l[t];return n}createResolver(t,e,i=[""],s){const{resolver:n}=cn(this._resolverCache,t,i);return l(e)?Me(n,e,void 0,s):n}}function cn(t,e,i){let s=t.get(e);s||(s=new Map,t.set(e,s));const n=i.join();let o=s.get(n);return o||(o={resolver:Ce(e,i),subPrefixes:i.filter((t=>!t.toLowerCase().includes("hover")))},s.set(n,o)),o}const dn=t=>l(t)&&Object.getOwnPropertyNames(t).reduce(((e,i)=>e||S(t[i])),!1),un=["top","bottom","left","right","chartArea"];function fn(t,e){return"top"===t||"bottom"===t||-1===un.indexOf(t)&&"x"===e}function gn(t,e){return function(i,s){return i[t]===s[t]?i[e]-s[e]:i[t]-s[t]}}function pn(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),f(i&&i.onComplete,[t],e)}function mn(t){const e=t.chart,i=e.options.animation;f(i&&i.onProgress,[t],e)}function bn(t){return $e()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const xn={},yn=t=>{const e=bn(t);return Object.values(xn).filter((t=>t.canvas===e)).pop()};function vn(t,e,i){const s=Object.keys(t);for(const n of s){const s=+n;if(s>=e){const o=t[n];delete t[n],(i>0||s>e)&&(t[s+i]=o)}}}class wn{constructor(t,e){const i=this.config=new hn(e),s=bn(t),n=yn(s);if(n)throw new Error("Canvas is already in use. Chart with ID '"+n.id+"' must be destroyed before the canvas with ID '"+n.canvas.id+"' can be reused.");const a=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(t){return!$e()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Rs:Ks}(s)),this.platform.updateConfig(i);const r=this.platform.acquireContext(s,a.aspectRatio),l=r&&r.canvas,h=l&&l.height,c=l&&l.width;this.id=o(),this.ctx=r,this.canvas=l,this.width=c,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 Gs,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let i;return function(...s){return e?(clearTimeout(i),i=setTimeout(t,e,s)):t.apply(this,s),e}}((t=>this.update(t)),a.resizeDelay||0),this._dataChanges=[],xn[this.id]=this,r&&l?(xi.listen(this,"complete",pn),xi.listen(this,"progress",mn),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:i,height:s,_aspectRatio:n}=this;return a(t)?e&&n?n:s?i/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():Qe(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ie(this.canvas,this.ctx),this}stop(){return xi.stop(this),this}resize(t,e){xi.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,s=this.canvas,n=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(s,t,e,n),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),r=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,Qe(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),f(i.onResize,[this,o],this),this.attached&&this._doResize(r)&&this.render())}ensureScalesHaveIDs(){g(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,s=Object.keys(i).reduce(((t,e)=>(t[e]=!1,t)),{});let n=[];e&&(n=n.concat(Object.keys(e).map((t=>{const i=e[t],s=en(t,i),n="r"===s,o="x"===s;return{options:i,dposition:n?"chartArea":o?"bottom":"left",dtype:n?"radialLinear":o?"category":"linear"}})))),g(n,(e=>{const n=e.options,o=n.id,a=en(o,n),r=d(n.type,e.dtype);void 0!==n.position&&fn(n.position,a)===fn(e.dposition)||(n.position=e.dposition),s[o]=!0;let l=null;o in i&&i[o].type===r?l=i[o]:(l=new(cs.getScale(r))({id:o,type:r,ctx:this.ctx,chart:this}),i[l.id]=l),l.init(n,t)})),g(s,((t,e)=>{t||delete i[e]})),g(i,(t=>{Ts.configure(this,t,t.options),Ts.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort(((t,e)=>t.index-e.index)),i>e){for(let t=e;t<i;++t)this._destroyDatasetMeta(t);t.splice(e,i-e)}this._sortedMetasets=t.slice(0).sort(gn("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,i)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(i)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,s;for(this._removeUnreferencedMetasets(),i=0,s=e.length;i<s;i++){const s=e[i];let n=this.getDatasetMeta(i);const o=s.type||this.config.type;if(n.type&&n.type!==o&&(this._destroyDatasetMeta(i),n=this.getDatasetMeta(i)),n.type=o,n.indexAxis=s.indexAxis||tn(o,this.options),n.order=s.order||0,n.index=i,n.label=""+s.label,n.visible=this.isDatasetVisible(i),n.controller)n.controller.updateIndex(i),n.controller.linkScales();else{const e=cs.getController(o),{datasetElementType:s,dataElementType:a}=Jt.datasets[o];Object.assign(e.prototype,{dataElementType:cs.getElement(a),datasetElementType:s&&cs.getElement(s)}),n.controller=new e(this,i),t.push(n.controller)}}return this._updateMetasets(),t}_resetElements(){g(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 i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const n=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),i=!s&&-1===n.indexOf(e);e.buildOrUpdateElements(i),o=Math.max(+e.getMaxOverflow(),o)}o=this._minPadding=i.layout.autoPadding?o:0,this._updateLayout(o),s||g(n,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(gn("z","_idx"));const{_active:a,_lastEvent:r}=this;r?this._eventHandler(r,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){g(this.scales,(t=>{Ts.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);L(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:n}of e)vn(t,s,"_removeElements"===i?-n:n)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),s=i(0);for(let t=1;t<e;t++)if(!L(s,i(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;Ts.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],g(this.boxes,(t=>{i&&"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,i=this.data.datasets.length;e<i;++e)this._updateDataset(e,S(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const i=this.getDatasetMeta(t),s={meta:i,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",s)&&(i.controller._update(e),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(xi.has(this)?this.attached&&!xi.running(this)&&xi.start(this):(this.draw(),pn({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,i=[];let s,n;for(s=0,n=e.length;s<n;++s){const n=e[s];t&&!n.visible||i.push(n)}return i}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,i=t._clip,s=!i.disabled,n=this.chartArea,o={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(s&&ae(e,{left:!1===i.left?0:n.left-i.left,right:!1===i.right?this.width:n.right+i.right,top:!1===i.top?0:n.top-i.top,bottom:!1===i.bottom?this.height:n.bottom+i.bottom}),t.controller.draw(),s&&re(e),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return oe(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,s){const n=vs.modes[e];return"function"==typeof n?n(this,t,i,s):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let s=i.filter((t=>t&&t._dataset===e)).pop();return s||(s={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},i.push(s)),s}getContext(){return this.$context||(this.$context=ke(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.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,i){const s=i?"show":"hide",n=this.getDatasetMeta(t),o=n.controller._resolveAnimations(void 0,s);M(e)?(n.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),o.update(n,{visible:i}),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(),xi.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(),ie(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete xn[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,i=(i,s)=>{e.addEventListener(this,i,s),t[i]=s},s=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};g(this.options.events,(t=>i(t,s)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,s)=>{e.addEventListener(this,i,s),t[i]=s},s=(i,s)=>{t[i]&&(e.removeEventListener(this,i,s),delete t[i])},n=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const a=()=>{s("attach",a),this.attached=!0,this.resize(),i("resize",n),i("detach",o)};o=()=>{this.attached=!1,s("resize",n),this._stop(),this._resize(0,0),i("attach",a)},e.isAttached(this.canvas)?a():o()}unbindEvents(){g(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},g(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const s=i?"set":"remove";let n,o,a,r;for("dataset"===e&&(n=this.getDatasetMeta(t[0].datasetIndex),n.controller["_"+s+"DatasetHoverStyle"]()),a=0,r=t.length;a<r;++a){o=t[a];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[s+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],i=t.map((({datasetIndex:t,index:e})=>{const i=this.getDatasetMeta(t);if(!i)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}));!p(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}_updateHoverStyles(t,e,i){const s=this.options.hover,n=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=n(e,t),a=i?t:n(t,e);o.length&&this.updateHoverStyle(o,s.mode,!1),a.length&&s.mode&&this.updateHoverStyle(a,s.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},s=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,s))return;const n=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(n||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:s=[],options:n}=this,o=e,a=this._getActiveElements(t,s,i,o),r=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,i,s){return i&&"mouseout"!==t.type?s?e:t:null}(t,this._lastEvent,i,r);i&&(this._lastEvent=null,f(n.onHover,[t,a,this],this),r&&f(n.onClick,[t,a,this],this));const h=!p(a,s);return(h||e)&&(this._active=a,this._updateHoverStyles(a,s,e)),this._lastEvent=l,h}_getActiveElements(t,e,i,s){if("mouseout"===t.type)return[];if(!i)return e;const n=this.options.hover;return this.getElementsAtEventForMode(t,n.mode,n,s)}}const kn=()=>g(wn.instances,(t=>t._plugins.invalidate())),Cn=!0;function Mn(t,e,i){const{startAngle:s,pixelMargin:n,x:o,y:a,outerRadius:r,innerRadius:l}=e;let h=n/r;t.beginPath(),t.arc(o,a,r,s-h,i+h),l>n?(h=n/l,t.arc(o,a,l,i+h,s-h,!0)):t.arc(o,a,n,i+T,s-T),t.closePath(),t.clip()}function Sn(t,e,i,s){return{x:i+t*Math.cos(e),y:s+t*Math.sin(e)}}function Ln(t,e,i,s,n,o){const{x:a,y:r,startAngle:l,pixelMargin:h,innerRadius:c}=e,d=Math.max(e.outerRadius+s+i-h,0),u=c>0?c+s+i+h:0;let f=0;const g=n-l;if(s){const t=((c>0?c-s:0)+(d>0?d-s:0))/2;f=(g-(0!==t?g*t/(t+s):g))/2}const p=(g-Math.max(.001,g*d-i/E)/d)/2,m=l+p+f,b=n-p-f,{outerStart:x,outerEnd:_,innerStart:y,innerEnd:v}=function(t,e,i,s){const n=be(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),o=(i-e)/2,a=Math.min(o,s*e/2),r=t=>{const e=(i-Math.min(o,t))*s/2;return K(t,0,Math.min(o,e))};return{outerStart:r(n.outerStart),outerEnd:r(n.outerEnd),innerStart:K(n.innerStart,0,a),innerEnd:K(n.innerEnd,0,a)}}(e,u,d,b-m),w=d-x,k=d-_,C=m+x/w,M=b-_/k,S=u+y,L=u+v,P=m+y/S,D=b-v/L;if(t.beginPath(),o){if(t.arc(a,r,d,C,M),_>0){const e=Sn(k,M,a,r);t.arc(e.x,e.y,_,M,b+T)}const e=Sn(L,b,a,r);if(t.lineTo(e.x,e.y),v>0){const e=Sn(L,D,a,r);t.arc(e.x,e.y,v,b+T,D+Math.PI)}if(t.arc(a,r,u,b-v/u,m+y/u,!0),y>0){const e=Sn(S,P,a,r);t.arc(e.x,e.y,y,P+Math.PI,m-T)}const i=Sn(w,m,a,r);if(t.lineTo(i.x,i.y),x>0){const e=Sn(w,C,a,r);t.arc(e.x,e.y,x,m-T,C)}}else{t.moveTo(a,r);const e=Math.cos(C)*d+a,i=Math.sin(C)*d+r;t.lineTo(e,i);const s=Math.cos(M)*d+a,n=Math.sin(M)*d+r;t.lineTo(s,n)}t.closePath()}Object.defineProperties(wn,{defaults:{enumerable:Cn,value:Jt},instances:{enumerable:Cn,value:xn},overrides:{enumerable:Cn,value:Xt},registry:{enumerable:Cn,value:cs},version:{enumerable:Cn,value:"3.9.1"},getChart:{enumerable:Cn,value:yn},register:{enumerable:Cn,value:(...t)=>{cs.add(...t),kn()}},unregister:{enumerable:Cn,value:(...t)=>{cs.remove(...t),kn()}}});class En extends Gi{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,i){const s=this.getProps(["x","y"],i),{angle:n,distance:o}=Z(s,{x:t,y:e}),{startAngle:a,endAngle:r,innerRadius:l,outerRadius:h,circumference:c}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),u=this.options.spacing/2,f=d(c,r-a)>=P||q(n,a,r),g=G(o,l+u,h+u);return f&&g}getCenterPoint(t){const{x:e,y:i,startAngle:s,endAngle:n,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:r,spacing:l}=this.options,h=(s+n)/2,c=(o+a+l+r)/2;return{x:e+Math.cos(h)*c,y:i+Math.sin(h)*c}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,s=(e.offset||0)/2,n=(e.spacing||0)/2,o=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>P?Math.floor(i/P):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();let a=0;if(s){a=s/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*a,Math.sin(e)*a),this.circumference>=E&&(a=s)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const r=function(t,e,i,s,n){const{fullCircles:o,startAngle:a,circumference:r}=e;let l=e.endAngle;if(o){Ln(t,e,i,s,a+P,n);for(let e=0;e<o;++e)t.fill();isNaN(r)||(l=a+r%P,r%P==0&&(l+=P))}return Ln(t,e,i,s,l,n),t.fill(),l}(t,this,a,n,o);(function(t,e,i,s,n,o){const{options:a}=e,{borderWidth:r,borderJoinStyle:l}=a,h="inner"===a.borderAlign;r&&(h?(t.lineWidth=2*r,t.lineJoin=l||"round"):(t.lineWidth=r,t.lineJoin=l||"bevel"),e.fullCircles&&function(t,e,i){const{x:s,y:n,startAngle:o,pixelMargin:a,fullCircles:r}=e,l=Math.max(e.outerRadius-a,0),h=e.innerRadius+a;let c;for(i&&Mn(t,e,o+P),t.beginPath(),t.arc(s,n,h,o+P,o,!0),c=0;c<r;++c)t.stroke();for(t.beginPath(),t.arc(s,n,l,o,o+P),c=0;c<r;++c)t.stroke()}(t,e,h),h&&Mn(t,e,n),Ln(t,e,i,s,n,o),t.stroke())})(t,this,a,n,r,o),t.restore()}}function Pn(t,e,i=e){t.lineCap=d(i.borderCapStyle,e.borderCapStyle),t.setLineDash(d(i.borderDash,e.borderDash)),t.lineDashOffset=d(i.borderDashOffset,e.borderDashOffset),t.lineJoin=d(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=d(i.borderWidth,e.borderWidth),t.strokeStyle=d(i.borderColor,e.borderColor)}function Dn(t,e,i){t.lineTo(i.x,i.y)}function On(t,e,i={}){const s=t.length,{start:n=0,end:o=s-1}=i,{start:a,end:r}=e,l=Math.max(n,a),h=Math.min(o,r),c=n<a&&o<a||n>r&&o>r;return{count:s,start:l,loop:e.loop,ilen:h<l&&!c?s+h-l:h-l}}function An(t,e,i,s){const{points:n,options:o}=e,{count:a,start:r,loop:l,ilen:h}=On(n,i,s),c=function(t){return t.stepped?le:t.tension||"monotone"===t.cubicInterpolationMode?he:Dn}(o);let d,u,f,{move:g=!0,reverse:p}=s||{};for(d=0;d<=h;++d)u=n[(r+(p?h-d:d))%a],u.skip||(g?(t.moveTo(u.x,u.y),g=!1):c(t,f,u,p,o.stepped),f=u);return l&&(u=n[(r+(p?h:0))%a],c(t,f,u,p,o.stepped)),!!l}function Tn(t,e,i,s){const n=e.points,{count:o,start:a,ilen:r}=On(n,i,s),{move:l=!0,reverse:h}=s||{};let c,d,u,f,g,p,m=0,b=0;const x=t=>(a+(h?r-t:t))%o,_=()=>{f!==g&&(t.lineTo(m,g),t.lineTo(m,f),t.lineTo(m,p))};for(l&&(d=n[x(0)],t.moveTo(d.x,d.y)),c=0;c<=r;++c){if(d=n[x(c)],d.skip)continue;const e=d.x,i=d.y,s=0|e;s===u?(i<f?f=i:i>g&&(g=i),m=(b*m+e)/++b):(_(),t.lineTo(e,i),u=s,b=0,f=g=i),p=i}_()}function zn(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||i?An:Tn}En.id="arc",En.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},En.defaultRoutes={backgroundColor:"backgroundColor"};const Rn="function"==typeof Path2D;class In extends Gi{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 i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const s=i.spanGaps?this._loop:this._fullLoop;je(this._points,i,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=function(t,e){const i=t.points,s=t.options.spanGaps,n=i.length;if(!n)return[];const o=!!t._loop,{start:a,end:r}=function(t,e,i,s){let n=0,o=e-1;if(i&&!s)for(;n<e&&!t[n].skip;)n++;for(;n<e&&t[n].skip;)n++;for(n%=e,i&&(o+=n);o>n&&t[o%e].skip;)o--;return o%=e,{start:n,end:o}}(i,n,o,s);return function(t,e,i,s){return s&&s.setContext&&i?function(t,e,i,s){const n=t._chart.getContext(),o=mi(t.options),{_datasetIndex:a,options:{spanGaps:r}}=t,l=i.length,h=[];let c=o,d=e[0].start,u=d;function f(t,e,s,n){const o=r?-1:1;if(t!==e){for(t+=l;i[t%l].skip;)t-=o;for(;i[e%l].skip;)e+=o;t%l!=e%l&&(h.push({start:t%l,end:e%l,loop:s,style:n}),c=n,d=e%l)}}for(const t of e){d=r?d:t.start;let e,o=i[d%l];for(u=d+1;u<=t.end;u++){const r=i[u%l];e=mi(s.setContext(ke(n,{type:"segment",p0:o,p1:r,p0DataIndex:(u-1)%l,p1DataIndex:u%l,datasetIndex:a}))),bi(e,c)&&f(d,u-1,t.loop,c),o=r,c=e}d<u-1&&f(d,u-1,t.loop,c)}return h}(t,e,i,s):e}(t,!0===s?[{start:a,end:r,loop:o}]:function(t,e,i,s){const n=t.length,o=[];let a,r=e,l=t[e];for(a=e+1;a<=i;++a){const i=t[a%n];i.skip||i.stop?l.skip||(s=!1,o.push({start:e%n,end:(a-1)%n,loop:s}),e=r=i.stop?a:null):(r=a,l.skip&&(e=a)),l=i}return null!==r&&o.push({start:e%n,end:r%n,loop:s}),o}(i,a,r<a?r+n:r,!!t._fullLoop&&0===a&&r===n-1),i,e)}(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,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this.options,s=t[e],n=this.points,o=pi(this,{property:e,start:s,end:s});if(!o.length)return;const a=[],r=function(t){return t.stepped?si:t.tension||"monotone"===t.cubicInterpolationMode?ni:ii}(i);let l,h;for(l=0,h=o.length;l<h;++l){const{start:h,end:c}=o[l],d=n[h],u=n[c];if(d===u){a.push(d);continue}const f=r(d,u,Math.abs((s-d[e])/(u[e]-d[e])),i.stepped);f[e]=t[e],a.push(f)}return 1===a.length?a[0]:a}pathSegment(t,e,i){return zn(this)(t,this,e,i)}path(t,e,i){const s=this.segments,n=zn(this);let o=this._loop;e=e||0,i=i||this.points.length-e;for(const a of s)o&=n(t,this,a,{start:e,end:e+i-1});return!!o}draw(t,e,i,s){const n=this.options||{};(this.points||[]).length&&n.borderWidth&&(t.save(),function(t,e,i,s){Rn&&!e.options.segment?function(t,e,i,s){let n=e._path;n||(n=e._path=new Path2D,e.path(n,i,s)&&n.closePath()),Pn(t,e.options),t.stroke(n)}(t,e,i,s):function(t,e,i,s){const{segments:n,options:o}=e,a=zn(e);for(const r of n)Pn(t,o,r.style),t.beginPath(),a(t,e,r,{start:i,end:i+s-1})&&t.closePath(),t.stroke()}(t,e,i,s)}(t,this,i,s),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Fn(t,e,i,s){const n=t.options,{[i]:o}=t.getProps([i],s);return Math.abs(e-o)<n.radius+n.hitRadius}In.id="line",In.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},In.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},In.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class Vn extends Gi{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,i){const s=this.options,{x:n,y:o}=this.getProps(["x","y"],i);return Math.pow(t-n,2)+Math.pow(e-o,2)<Math.pow(s.hitRadius+s.radius,2)}inXRange(t,e){return Fn(this,t,"x",e)}inYRange(t,e){return Fn(this,t,"y",e)}getCenterPoint(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}size(t){let e=(t=t||this.options||{}).radius||0;return e=Math.max(e,e&&t.hoverRadius||0),2*(e+(e&&t.borderWidth||0))}draw(t,e){const i=this.options;this.skip||i.radius<.1||!oe(this,e,this.size(i)/2)||(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,se(t,i,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function Nn(t,e){const{x:i,y:s,base:n,width:o,height:a}=t.getProps(["x","y","base","width","height"],e);let r,l,h,c,d;return t.horizontal?(d=a/2,r=Math.min(i,n),l=Math.max(i,n),h=s-d,c=s+d):(d=o/2,r=i-d,l=i+d,h=Math.min(s,n),c=Math.max(s,n)),{left:r,top:h,right:l,bottom:c}}function Hn(t,e,i,s){return t?0:K(e,i,s)}function Bn(t,e,i,s){const n=null===e,o=null===i,a=t&&!(n&&o)&&Nn(t,s);return a&&(n||G(e,a.left,a.right))&&(o||G(i,a.top,a.bottom))}function Wn(t,e){t.rect(e.x,e.y,e.w,e.h)}function jn(t,e,i={}){const s=t.x!==i.x?-e:0,n=t.y!==i.y?-e:0,o=(t.x+t.w!==i.x+i.w?e:0)-s,a=(t.y+t.h!==i.y+i.h?e:0)-n;return{x:t.x+s,y:t.y+n,w:t.w+o,h:t.h+a,radius:t.radius}}Vn.id="point",Vn.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Vn.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class $n extends Gi{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:i,backgroundColor:s}}=this,{inner:n,outer:o}=function(t){const e=Nn(t),i=e.right-e.left,s=e.bottom-e.top,n=function(t,e,i){const s=t.options.borderWidth,n=t.borderSkipped,o=xe(s);return{t:Hn(n.top,o.top,0,i),r:Hn(n.right,o.right,0,e),b:Hn(n.bottom,o.bottom,0,i),l:Hn(n.left,o.left,0,e)}}(t,i/2,s/2),o=function(t,e,i){const{enableBorderRadius:s}=t.getProps(["enableBorderRadius"]),n=t.options.borderRadius,o=_e(n),a=Math.min(e,i),r=t.borderSkipped,h=s||l(n);return{topLeft:Hn(!h||r.top||r.left,o.topLeft,0,a),topRight:Hn(!h||r.top||r.right,o.topRight,0,a),bottomLeft:Hn(!h||r.bottom||r.left,o.bottomLeft,0,a),bottomRight:Hn(!h||r.bottom||r.right,o.bottomRight,0,a)}}(t,i/2,s/2);return{outer:{x:e.left,y:e.top,w:i,h:s,radius:o},inner:{x:e.left+n.l,y:e.top+n.t,w:i-n.l-n.r,h:s-n.t-n.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(n.t,n.l)),topRight:Math.max(0,o.topRight-Math.max(n.t,n.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(n.b,n.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(n.b,n.r))}}}}(this),a=(r=o.radius).topLeft||r.topRight||r.bottomLeft||r.bottomRight?ue:Wn;var r;t.save(),o.w===n.w&&o.h===n.h||(t.beginPath(),a(t,jn(o,e,n)),t.clip(),a(t,jn(n,-e,o)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),a(t,jn(n,e)),t.fillStyle=s,t.fill(),t.restore()}inRange(t,e,i){return Bn(this,t,e,i)}inXRange(t,e){return Bn(this,t,null,e)}inYRange(t,e){return Bn(this,null,t,e)}getCenterPoint(t){const{x:e,y:i,base:s,horizontal:n}=this.getProps(["x","y","base","horizontal"],t);return{x:n?(e+s)/2:e,y:n?i:(i+s)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}$n.id="bar",$n.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},$n.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Zn=Object.freeze({__proto__:null,ArcElement:En,LineElement:In,PointElement:Vn,BarElement:$n});function Yn(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{value:e})}}function Un(t){t.data.datasets.forEach((t=>{Yn(t)}))}var Xn={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,i)=>{if(!i.enabled)return void Un(t);const s=t.width;t.data.datasets.forEach(((e,n)=>{const{_data:o,indexAxis:r}=e,l=t.getDatasetMeta(n),h=o||e.data;if("y"===we([r,t.options.indexAxis]))return;if(!l.controller.supportsDecimation)return;const c=t.scales[l.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(t.options.parsing)return;let d,{start:u,count:f}=function(t,e){const i=e.length;let s,n=0;const{iScale:o}=t,{min:a,max:r,minDefined:l,maxDefined:h}=o.getUserBounds();return l&&(n=K(Q(e,o.axis,a).lo,0,i-1)),s=h?K(Q(e,o.axis,r).hi+1,n,i)-n:i-n,{start:n,count:s}}(l,h);if(f<=(i.threshold||4*s))Yn(e);else{switch(a(o)&&(e._data=h,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),i.algorithm){case"lttb":d=function(t,e,i,s,n){const o=n.samples||s;if(o>=i)return t.slice(e,e+i);const a=[],r=(i-2)/(o-2);let l=0;const h=e+i-1;let c,d,u,f,g,p=e;for(a[l++]=t[p],c=0;c<o-2;c++){let s,n=0,o=0;const h=Math.floor((c+1)*r)+1+e,m=Math.min(Math.floor((c+2)*r)+1,i)+e,b=m-h;for(s=h;s<m;s++)n+=t[s].x,o+=t[s].y;n/=b,o/=b;const x=Math.floor(c*r)+1+e,_=Math.min(Math.floor((c+1)*r)+1,i)+e,{x:y,y:v}=t[p];for(u=f=-1,s=x;s<_;s++)f=.5*Math.abs((y-n)*(t[s].y-v)-(y-t[s].x)*(o-v)),f>u&&(u=f,d=t[s],g=s);a[l++]=d,p=g}return a[l++]=t[h],a}(h,u,f,s,i);break;case"min-max":d=function(t,e,i,s){let n,o,r,l,h,c,d,u,f,g,p=0,m=0;const b=[],x=e+i-1,_=t[e].x,y=t[x].x-_;for(n=e;n<e+i;++n){o=t[n],r=(o.x-_)/y*s,l=o.y;const e=0|r;if(e===h)l<f?(f=l,c=n):l>g&&(g=l,d=n),p=(m*p+o.x)/++m;else{const i=n-1;if(!a(c)&&!a(d)){const e=Math.min(c,d),s=Math.max(c,d);e!==u&&e!==i&&b.push({...t[e],x:p}),s!==u&&s!==i&&b.push({...t[s],x:p})}n>0&&i!==u&&b.push(t[i]),b.push(o),h=e,m=0,f=g=l,c=d=u=n}}return b}(h,u,f,s);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}e._decimated=d}}))},destroy(t){Un(t)}};function qn(t,e,i,s){if(s)return;let n=e[t],o=i[t];return"angle"===t&&(n=X(n),o=X(o)),{property:t,start:n,end:o}}function Kn(t,e,i){for(;e>t;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function Gn(t,e,i,s){return t&&e?s(t[i],e[i]):t?t[i]:e?e[i]:0}function Jn(t,e){let i=[],s=!1;return r(t)?(s=!0,i=t):i=function(t,e){const{x:i=null,y:s=null}=t||{},n=e.points,o=[];return e.segments.forEach((({start:t,end:e})=>{e=Kn(t,e,n);const a=n[t],r=n[e];null!==s?(o.push({x:a.x,y:s}),o.push({x:r.x,y:s})):null!==i&&(o.push({x:i,y:a.y}),o.push({x:i,y:r.y}))})),o}(t,e),i.length?new In({points:i,options:{tension:0},_loop:s,_fullLoop:s}):null}function Qn(t){return t&&!1!==t.fill}function to(t,e,i){let s=t[e].fill;const n=[e];let o;if(!i)return s;for(;!1!==s&&-1===n.indexOf(s);){if(!h(s))return s;if(o=t[s],!o)return!1;if(o.visible)return s;n.push(s),s=o.fill}return!1}function eo(t,e,i){const s=function(t){const e=t.options,i=e.fill;let s=d(i&&i.target,i);return void 0===s&&(s=!!e.backgroundColor),!1!==s&&null!==s&&(!0===s?"origin":s)}(t);if(l(s))return!isNaN(s.value)&&s;let n=parseFloat(s);return h(n)&&Math.floor(n)===n?function(t,e,i,s){return"-"!==t&&"+"!==t||(i=e+i),!(i===e||i<0||i>=s)&&i}(s[0],e,n,i):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}function io(t,e,i){const s=[];for(let n=0;n<i.length;n++){const o=i[n],{first:a,last:r,point:l}=so(o,e,"x");if(!(!l||a&&r))if(a)s.unshift(l);else if(t.push(l),!r)break}t.push(...s)}function so(t,e,i){const s=t.interpolate(e,i);if(!s)return{};const n=s[i],o=t.segments,a=t.points;let r=!1,l=!1;for(let t=0;t<o.length;t++){const e=o[t],s=a[e.start][i],h=a[e.end][i];if(G(n,s,h)){r=n===s,l=n===h;break}}return{first:r,last:l,point:s}}class no{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){const{x:s,y:n,radius:o}=this;return e=e||{start:0,end:P},t.arc(s,n,o,e.end,e.start,!0),!i.bounds}interpolate(t){const{x:e,y:i,radius:s}=this,n=t.angle;return{x:e+Math.cos(n)*s,y:i+Math.sin(n)*s,angle:n}}}function oo(t,e,i){const s=function(t){const{chart:e,fill:i,line:s}=t;if(h(i))return function(t,e){const i=t.getDatasetMeta(e);return i&&t.isDatasetVisible(e)?i.dataset:null}(e,i);if("stack"===i)return function(t){const{scale:e,index:i,line:s}=t,n=[],o=s.segments,a=s.points,r=function(t,e){const i=[],s=t.getMatchingVisibleMetas("line");for(let t=0;t<s.length;t++){const n=s[t];if(n.index===e)break;n.hidden||i.unshift(n.dataset)}return i}(e,i);r.push(Jn({x:null,y:e.bottom},s));for(let t=0;t<o.length;t++){const e=o[t];for(let t=e.start;t<=e.end;t++)io(n,a[t],r)}return new In({points:n,options:{}})}(t);if("shape"===i)return!0;const n=function(t){return(t.scale||{}).getPointPositionForValue?function(t){const{scale:e,fill:i}=t,s=e.options,n=e.getLabels().length,o=s.reverse?e.max:e.min,a=function(t,e,i){let s;return s="start"===t?i:"end"===t?e.options.reverse?e.min:e.max:l(t)?t.value:e.getBaseValue(),s}(i,e,o),r=[];if(s.grid.circular){const t=e.getPointPositionForValue(0,o);return new no({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(a)})}for(let t=0;t<n;++t)r.push(e.getPointPositionForValue(t,a));return r}(t):function(t){const{scale:e={},fill:i}=t,s=function(t,e){let i=null;return"start"===t?i=e.bottom:"end"===t?i=e.top:l(t)?i=e.getPixelForValue(t.value):e.getBasePixel&&(i=e.getBasePixel()),i}(i,e);if(h(s)){const t=e.isHorizontal();return{x:t?s:null,y:t?null:s}}return null}(t)}(t);return n instanceof no?n:Jn(n,s)}(e),{line:n,scale:o,axis:a}=e,r=n.options,c=r.fill,d=r.backgroundColor,{above:u=d,below:f=d}=c||{};s&&n.points.length&&(ae(t,i),function(t,e){const{line:i,target:s,above:n,below:o,area:a,scale:r}=e,l=i._loop?"angle":e.axis;t.save(),"x"===l&&o!==n&&(ao(t,s,a.top),ro(t,{line:i,target:s,color:n,scale:r,property:l}),t.restore(),t.save(),ao(t,s,a.bottom)),ro(t,{line:i,target:s,color:o,scale:r,property:l}),t.restore()}(t,{line:n,target:s,above:u,below:f,area:i,scale:o,axis:a}),re(t))}function ao(t,e,i){const{segments:s,points:n}=e;let o=!0,a=!1;t.beginPath();for(const r of s){const{start:s,end:l}=r,h=n[s],c=n[Kn(s,l,n)];o?(t.moveTo(h.x,h.y),o=!1):(t.lineTo(h.x,i),t.lineTo(h.x,h.y)),a=!!e.pathSegment(t,r,{move:a}),a?t.closePath():t.lineTo(c.x,i)}t.lineTo(e.first().x,i),t.closePath(),t.clip()}function ro(t,e){const{line:i,target:s,property:n,color:o,scale:a}=e,r=function(t,e,i){const s=t.segments,n=t.points,o=e.points,a=[];for(const t of s){let{start:s,end:r}=t;r=Kn(s,r,n);const l=qn(i,n[s],n[r],t.loop);if(!e.segments){a.push({source:t,target:l,start:n[s],end:n[r]});continue}const h=pi(e,l);for(const e of h){const s=qn(i,o[e.start],o[e.end],e.loop),r=gi(t,n,s);for(const t of r)a.push({source:t,target:e,start:{[i]:Gn(l,s,"start",Math.max)},end:{[i]:Gn(l,s,"end",Math.min)}})}}return a}(i,s,n);for(const{source:e,target:l,start:h,end:c}of r){const{style:{backgroundColor:r=o}={}}=e,d=!0!==s;t.save(),t.fillStyle=r,lo(t,a,d&&qn(n,h,c)),t.beginPath();const u=!!i.pathSegment(t,e);let f;if(d){u?t.closePath():ho(t,s,c,n);const e=!!s.pathSegment(t,l,{move:u,reverse:!0});f=u&&e,f||ho(t,s,h,n)}t.closePath(),t.fill(f?"evenodd":"nonzero"),t.restore()}}function lo(t,e,i){const{top:s,bottom:n}=e.chart.chartArea,{property:o,start:a,end:r}=i||{};"x"===o&&(t.beginPath(),t.rect(a,s,r-a,n-s),t.clip())}function ho(t,e,i,s){const n=e.interpolate(i,s);n&&t.lineTo(n.x,n.y)}var co={id:"filler",afterDatasetsUpdate(t,e,i){const s=(t.data.datasets||[]).length,n=[];let o,a,r,l;for(a=0;a<s;++a)o=t.getDatasetMeta(a),r=o.dataset,l=null,r&&r.options&&r instanceof In&&(l={visible:t.isDatasetVisible(a),index:a,fill:eo(r,a,s),chart:t,axis:o.controller.options.indexAxis,scale:o.vScale,line:r}),o.$filler=l,n.push(l);for(a=0;a<s;++a)l=n[a],l&&!1!==l.fill&&(l.fill=to(n,a,i.propagate))},beforeDraw(t,e,i){const s="beforeDraw"===i.drawTime,n=t.getSortedVisibleDatasetMetas(),o=t.chartArea;for(let e=n.length-1;e>=0;--e){const i=n[e].$filler;i&&(i.line.updateControlPoints(o,i.axis),s&&i.fill&&oo(t.ctx,i,o))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const s=t.getSortedVisibleDatasetMetas();for(let e=s.length-1;e>=0;--e){const i=s[e].$filler;Qn(i)&&oo(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,i){const s=e.meta.$filler;Qn(s)&&"beforeDatasetDraw"===i.drawTime&&oo(t.ctx,s,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const uo=(t,e)=>{let{boxHeight:i=e,boxWidth:s=e}=t;return t.usePointStyle&&(i=Math.min(i,e),s=t.pointStyleWidth||Math.min(s,e)),{boxWidth:s,boxHeight:i,itemHeight:Math.max(e,i)}};class fo extends Gi{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,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,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=f(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,i)=>t.sort(e,i,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 i=t.labels,s=ve(i.font),n=s.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:r}=uo(i,n);let l,h;e.font=s.string,this.isHorizontal()?(l=this.maxWidth,h=this._fitRows(o,n,a,r)+10):(h=this.maxHeight,l=this._fitCols(o,n,a,r)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(h,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,s){const{ctx:n,maxWidth:o,options:{labels:{padding:a}}}=this,r=this.legendHitBoxes=[],l=this.lineWidths=[0],h=s+a;let c=t;n.textAlign="left",n.textBaseline="middle";let d=-1,u=-h;return this.legendItems.forEach(((t,f)=>{const g=i+e/2+n.measureText(t.text).width;(0===f||l[l.length-1]+g+2*a>o)&&(c+=h,l[l.length-(f>0?0:1)]=0,u+=h,d++),r[f]={left:0,top:u,row:d,width:g,height:s},l[l.length-1]+=g+a})),c}_fitCols(t,e,i,s){const{ctx:n,maxHeight:o,options:{labels:{padding:a}}}=this,r=this.legendHitBoxes=[],l=this.columnSizes=[],h=o-t;let c=a,d=0,u=0,f=0,g=0;return this.legendItems.forEach(((t,o)=>{const p=i+e/2+n.measureText(t.text).width;o>0&&u+s+2*a>h&&(c+=d+a,l.push({width:d,height:u}),f+=d+a,g++,d=u=0),r[o]={left:f,top:u,col:g,width:p,height:s},d=Math.max(d,p),u+=s+a})),c+=d,l.push({width:d,height:u}),c}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:s},rtl:n}}=this,o=hi(n,this.left,this.width);if(this.isHorizontal()){let n=0,a=rt(i,this.left+s,this.right-this.lineWidths[n]);for(const r of e)n!==r.row&&(n=r.row,a=rt(i,this.left+s,this.right-this.lineWidths[n])),r.top+=this.top+t+s,r.left=o.leftForLtr(o.x(a),r.width),a+=r.width+s}else{let n=0,a=rt(i,this.top+t+s,this.bottom-this.columnSizes[n].height);for(const r of e)r.col!==n&&(n=r.col,a=rt(i,this.top+t+s,this.bottom-this.columnSizes[n].height)),r.top=a,r.left+=this.left+s,r.left=o.leftForLtr(o.x(r.left),r.width),a+=r.height+s}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;ae(t,this),this._draw(),re(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:s}=this,{align:n,labels:o}=t,a=Jt.color,r=hi(t.rtl,this.left,this.width),l=ve(o.font),{color:h,padding:c}=o,u=l.size,f=u/2;let g;this.drawTitle(),s.textAlign=r.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=l.string;const{boxWidth:p,boxHeight:m,itemHeight:b}=uo(o,u),x=this.isHorizontal(),_=this._computeTitleHeight();g=x?{x:rt(n,this.left+c,this.right-i[0]),y:this.top+c+_,line:0}:{x:this.left+c,y:rt(n,this.top+_+c,this.bottom-e[0].height),line:0},ci(this.ctx,t.textDirection);const y=b+c;this.legendItems.forEach(((v,w)=>{s.strokeStyle=v.fontColor||h,s.fillStyle=v.fontColor||h;const k=s.measureText(v.text).width,C=r.textAlign(v.textAlign||(v.textAlign=o.textAlign)),M=p+f+k;let S=g.x,L=g.y;r.setWidth(this.width),x?w>0&&S+M+c>this.right&&(L=g.y+=y,g.line++,S=g.x=rt(n,this.left+c,this.right-i[g.line])):w>0&&L+y>this.bottom&&(S=g.x=S+e[g.line].width+c,g.line++,L=g.y=rt(n,this.top+_+c,this.bottom-e[g.line].height)),function(t,e,i){if(isNaN(p)||p<=0||isNaN(m)||m<0)return;s.save();const n=d(i.lineWidth,1);if(s.fillStyle=d(i.fillStyle,a),s.lineCap=d(i.lineCap,"butt"),s.lineDashOffset=d(i.lineDashOffset,0),s.lineJoin=d(i.lineJoin,"miter"),s.lineWidth=n,s.strokeStyle=d(i.strokeStyle,a),s.setLineDash(d(i.lineDash,[])),o.usePointStyle){const a={radius:m*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:n},l=r.xPlus(t,p/2);ne(s,a,l,e+f,o.pointStyleWidth&&p)}else{const o=e+Math.max((u-m)/2,0),a=r.leftForLtr(t,p),l=_e(i.borderRadius);s.beginPath(),Object.values(l).some((t=>0!==t))?ue(s,{x:a,y:o,w:p,h:m,radius:l}):s.rect(a,o,p,m),s.fill(),0!==n&&s.stroke()}s.restore()}(r.x(S),L,v),S=((t,e,i,s)=>t===(s?"left":"right")?i:"center"===t?(e+i)/2:e)(C,S+p+f,x?S+M:this.right,t.rtl),function(t,e,i){ce(s,i.text,t,e+b/2,l,{strikethrough:i.hidden,textAlign:r.textAlign(i.textAlign)})}(r.x(S),L,v),x?g.x+=M+c:g.y+=y})),di(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=ve(e.font),s=ye(e.padding);if(!e.display)return;const n=hi(t.rtl,this.left,this.width),o=this.ctx,a=e.position,r=i.size/2,l=s.top+r;let h,c=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),h=this.top+l,c=rt(t.align,c,this.right-d);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);h=l+rt(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const u=rt(a,c,c+d);o.textAlign=n.textAlign(at(a)),o.textBaseline="middle",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=i.string,ce(o,e.text,u,h,i)}_computeTitleHeight(){const t=this.options.title,e=ve(t.font),i=ye(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,s,n;if(G(t,this.left,this.right)&&G(e,this.top,this.bottom))for(n=this.legendHitBoxes,i=0;i<n.length;++i)if(s=n[i],G(t,s.left,s.left+s.width)&&G(e,s.top,s.top+s.height))return this.legendItems[i];return null}handleEvent(t){const e=this.options;if(!function(t,e){return!("mousemove"!==t&&"mouseout"!==t||!e.onHover&&!e.onLeave)||!(!e.onClick||"click"!==t&&"mouseup"!==t)}(t.type,e))return;const i=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const o=this._hoveredItem,a=(n=i,null!==(s=o)&&null!==n&&s.datasetIndex===n.datasetIndex&&s.index===n.index);o&&!a&&f(e.onLeave,[t,o,this],this),this._hoveredItem=i,i&&!a&&f(e.onHover,[t,i,this],this)}else i&&f(e.onClick,[t,i,this],this);var s,n}}var go={id:"legend",_element:fo,start(t,e,i){const s=t.legend=new fo({ctx:t.ctx,options:i,chart:t});Ts.configure(t,s,i),Ts.addBox(t,s)},stop(t){Ts.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){const s=t.legend;Ts.configure(t,s,i),s.options=i},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,i){const s=e.datasetIndex,n=i.chart;n.isDatasetVisible(s)?(n.hide(s),e.hidden=!0):(n.show(s),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:i,pointStyle:s,textAlign:n,color:o}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const a=t.controller.getStyle(i?0:void 0),r=ye(a.borderWidth);return{text:e[t.index].label,fillStyle:a.backgroundColor,fontColor:o,hidden:!t.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(r.width+r.height)/4,strokeStyle:a.borderColor,pointStyle:s||a.pointStyle,rotation:a.rotation,textAlign:n||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 po extends Gi{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 i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const s=r(i.text)?i.text.length:1;this._padding=ye(i.padding);const n=s*ve(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=n:this.width=n}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:s,right:n,options:o}=this,a=o.align;let r,l,h,c=0;return this.isHorizontal()?(l=rt(a,i,n),h=e+t,r=n-i):("left"===o.position?(l=i+t,h=rt(a,s,e),c=-.5*E):(l=n-t,h=rt(a,e,s),c=.5*E),r=s-e),{titleX:l,titleY:h,maxWidth:r,rotation:c}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=ve(e.font),s=i.lineHeight/2+this._padding.top,{titleX:n,titleY:o,maxWidth:a,rotation:r}=this._drawArgs(s);ce(t,e.text,0,0,i,{color:e.color,maxWidth:a,rotation:r,textAlign:at(e.align),textBaseline:"middle",translation:[n,o]})}}var mo={id:"title",_element:po,start(t,e,i){!function(t,e){const i=new po({ctx:t.ctx,options:e,chart:t});Ts.configure(t,i,e),Ts.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){const e=t.titleBlock;Ts.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const s=t.titleBlock;Ts.configure(t,s,i),s.options=i},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 bo=new WeakMap;var xo={id:"subtitle",start(t,e,i){const s=new po({ctx:t.ctx,options:i,chart:t});Ts.configure(t,s,i),Ts.addBox(t,s),bo.set(t,s)},stop(t){Ts.removeBox(t,bo.get(t)),bo.delete(t)},beforeUpdate(t,e,i){const s=bo.get(t);Ts.configure(t,s,i),s.options=i},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 _o={average(t){if(!t.length)return!1;let e,i,s=0,n=0,o=0;for(e=0,i=t.length;e<i;++e){const i=t[e].element;if(i&&i.hasValue()){const t=i.tooltipPosition();s+=t.x,n+=t.y,++o}}return{x:s/o,y:n/o}},nearest(t,e){if(!t.length)return!1;let i,s,n,o=e.x,a=e.y,r=Number.POSITIVE_INFINITY;for(i=0,s=t.length;i<s;++i){const s=t[i].element;if(s&&s.hasValue()){const t=Y(e,s.getCenterPoint());t<r&&(r=t,n=s)}}if(n){const t=n.tooltipPosition();o=t.x,a=t.y}return{x:o,y:a}}};function yo(t,e){return e&&(r(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function vo(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function wo(t,e){const{element:i,datasetIndex:s,index:n}=e,o=t.getDatasetMeta(s).controller,{label:a,value:r}=o.getLabelAndValue(n);return{chart:t,label:a,parsed:o.getParsed(n),raw:t.data.datasets[s].data[n],formattedValue:r,dataset:o.getDataset(),dataIndex:n,datasetIndex:s,element:i}}function ko(t,e){const i=t.chart.ctx,{body:s,footer:n,title:o}=t,{boxWidth:a,boxHeight:r}=e,l=ve(e.bodyFont),h=ve(e.titleFont),c=ve(e.footerFont),d=o.length,u=n.length,f=s.length,p=ye(e.padding);let m=p.height,b=0,x=s.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);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(r,l.lineHeight):l.lineHeight)+(x-f)*l.lineHeight+(x-1)*e.bodySpacing),u&&(m+=e.footerMarginTop+u*c.lineHeight+(u-1)*e.footerSpacing);let _=0;const y=function(t){b=Math.max(b,i.measureText(t).width+_)};return i.save(),i.font=h.string,g(t.title,y),i.font=l.string,g(t.beforeBody.concat(t.afterBody),y),_=e.displayColors?a+2+e.boxPadding:0,g(s,(t=>{g(t.before,y),g(t.lines,y),g(t.after,y)})),_=0,i.font=c.string,g(t.footer,y),i.restore(),b+=p.width,{width:b,height:m}}function Co(t,e,i,s){const{x:n,width:o}=i,{width:a,chartArea:{left:r,right:l}}=t;let h="center";return"center"===s?h=n<=(r+l)/2?"left":"right":n<=o/2?h="left":n>=a-o/2&&(h="right"),function(t,e,i,s){const{x:n,width:o}=s,a=i.caretSize+i.caretPadding;return"left"===t&&n+o+a>e.width||"right"===t&&n-o-a<0||void 0}(h,t,e,i)&&(h="center"),h}function Mo(t,e,i){const s=i.yAlign||e.yAlign||function(t,e){const{y:i,height:s}=e;return i<s/2?"top":i>t.height-s/2?"bottom":"center"}(t,i);return{xAlign:i.xAlign||e.xAlign||Co(t,e,i,s),yAlign:s}}function So(t,e,i,s){const{caretSize:n,caretPadding:o,cornerRadius:a}=t,{xAlign:r,yAlign:l}=i,h=n+o,{topLeft:c,topRight:d,bottomLeft:u,bottomRight:f}=_e(a);let g=function(t,e){let{x:i,width:s}=t;return"right"===e?i-=s:"center"===e&&(i-=s/2),i}(e,r);const p=function(t,e,i){let{y:s,height:n}=t;return"top"===e?s+=i:s-="bottom"===e?n+i:n/2,s}(e,l,h);return"center"===l?"left"===r?g+=h:"right"===r&&(g-=h):"left"===r?g-=Math.max(c,u)+n:"right"===r&&(g+=Math.max(d,f)+n),{x:K(g,0,s.width-e.width),y:K(p,0,s.height-e.height)}}function Lo(t,e,i){const s=ye(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-s.right:t.x+s.left}function Eo(t){return yo([],vo(t))}function Po(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}class Do extends Gi{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,i=this.options.setContext(this.getContext()),s=i.enabled&&e.options.animation&&i.animations,n=new ki(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(n)),n}getContext(){return this.$context||(this.$context=(this,ke(this.chart.getContext(),{tooltip:this,tooltipItems:this._tooltipItems,type:"tooltip"})))}getTitle(t,e){const{callbacks:i}=e,s=i.beforeTitle.apply(this,[t]),n=i.title.apply(this,[t]),o=i.afterTitle.apply(this,[t]);let a=[];return a=yo(a,vo(s)),a=yo(a,vo(n)),a=yo(a,vo(o)),a}getBeforeBody(t,e){return Eo(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:i}=e,s=[];return g(t,(t=>{const e={before:[],lines:[],after:[]},n=Po(i,t);yo(e.before,vo(n.beforeLabel.call(this,t))),yo(e.lines,n.label.call(this,t)),yo(e.after,vo(n.afterLabel.call(this,t))),s.push(e)})),s}getAfterBody(t,e){return Eo(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:i}=e,s=i.beforeFooter.apply(this,[t]),n=i.footer.apply(this,[t]),o=i.afterFooter.apply(this,[t]);let a=[];return a=yo(a,vo(s)),a=yo(a,vo(n)),a=yo(a,vo(o)),a}_createItems(t){const e=this._active,i=this.chart.data,s=[],n=[],o=[];let a,r,l=[];for(a=0,r=e.length;a<r;++a)l.push(wo(this.chart,e[a]));return t.filter&&(l=l.filter(((e,s,n)=>t.filter(e,s,n,i)))),t.itemSort&&(l=l.sort(((e,s)=>t.itemSort(e,s,i)))),g(l,(e=>{const i=Po(t.callbacks,e);s.push(i.labelColor.call(this,e)),n.push(i.labelPointStyle.call(this,e)),o.push(i.labelTextColor.call(this,e))})),this.labelColors=s,this.labelPointStyles=n,this.labelTextColors=o,this.dataPoints=l,l}update(t,e){const i=this.options.setContext(this.getContext()),s=this._active;let n,o=[];if(s.length){const t=_o[i.position].call(this,s,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const e=this._size=ko(this,i),a=Object.assign({},t,e),r=Mo(this.chart,i,a),l=So(i,a,r,this.chart);this.xAlign=r.xAlign,this.yAlign=r.yAlign,n={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(n={opacity:0});this._tooltipItems=o,this.$context=void 0,n&&this._resolveAnimations().update(this,n),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,s){const n=this.getCaretPosition(t,i,s);e.lineTo(n.x1,n.y1),e.lineTo(n.x2,n.y2),e.lineTo(n.x3,n.y3)}getCaretPosition(t,e,i){const{xAlign:s,yAlign:n}=this,{caretSize:o,cornerRadius:a}=i,{topLeft:r,topRight:l,bottomLeft:h,bottomRight:c}=_e(a),{x:d,y:u}=t,{width:f,height:g}=e;let p,m,b,x,_,y;return"center"===n?(_=u+g/2,"left"===s?(p=d,m=p-o,x=_+o,y=_-o):(p=d+f,m=p+o,x=_-o,y=_+o),b=p):(m="left"===s?d+Math.max(r,h)+o:"right"===s?d+f-Math.max(l,c)-o:this.caretX,"top"===n?(x=u,_=x-o,p=m-o,b=m+o):(x=u+g,_=x+o,p=m+o,b=m-o),y=x),{x1:p,x2:m,x3:b,y1:x,y2:_,y3:y}}drawTitle(t,e,i){const s=this.title,n=s.length;let o,a,r;if(n){const l=hi(i.rtl,this.x,this.width);for(t.x=Lo(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline="middle",o=ve(i.titleFont),a=i.titleSpacing,e.fillStyle=i.titleColor,e.font=o.string,r=0;r<n;++r)e.fillText(s[r],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+a,r+1===n&&(t.y+=i.titleMarginBottom-a)}}_drawColorBox(t,e,i,s,n){const o=this.labelColors[i],a=this.labelPointStyles[i],{boxHeight:r,boxWidth:h,boxPadding:c}=n,d=ve(n.bodyFont),u=Lo(this,"left",n),f=s.x(u),g=r<d.lineHeight?(d.lineHeight-r)/2:0,p=e.y+g;if(n.usePointStyle){const e={radius:Math.min(h,r)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},i=s.leftForLtr(f,h)+h/2,l=p+r/2;t.strokeStyle=n.multiKeyBackground,t.fillStyle=n.multiKeyBackground,se(t,e,i,l),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,se(t,e,i,l)}else{t.lineWidth=l(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const e=s.leftForLtr(f,h-c),i=s.leftForLtr(s.xPlus(f,1),h-c-2),a=_e(o.borderRadius);Object.values(a).some((t=>0!==t))?(t.beginPath(),t.fillStyle=n.multiKeyBackground,ue(t,{x:e,y:p,w:h,h:r,radius:a}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),ue(t,{x:i,y:p+1,w:h-2,h:r-2,radius:a}),t.fill()):(t.fillStyle=n.multiKeyBackground,t.fillRect(e,p,h,r),t.strokeRect(e,p,h,r),t.fillStyle=o.backgroundColor,t.fillRect(i,p+1,h-2,r-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:s}=this,{bodySpacing:n,bodyAlign:o,displayColors:a,boxHeight:r,boxWidth:l,boxPadding:h}=i,c=ve(i.bodyFont);let d=c.lineHeight,u=0;const f=hi(i.rtl,this.x,this.width),p=function(i){e.fillText(i,f.x(t.x+u),t.y+d/2),t.y+=d+n},m=f.textAlign(o);let b,x,_,y,v,w,k;for(e.textAlign=o,e.textBaseline="middle",e.font=c.string,t.x=Lo(this,m,i),e.fillStyle=i.bodyColor,g(this.beforeBody,p),u=a&&"right"!==m?"center"===o?l/2+h:l+2+h:0,y=0,w=s.length;y<w;++y){for(b=s[y],x=this.labelTextColors[y],e.fillStyle=x,g(b.before,p),_=b.lines,a&&_.length&&(this._drawColorBox(e,t,y,f,i),d=Math.max(c.lineHeight,r)),v=0,k=_.length;v<k;++v)p(_[v]),d=c.lineHeight;g(b.after,p)}u=0,d=c.lineHeight,g(this.afterBody,p),t.y-=n}drawFooter(t,e,i){const s=this.footer,n=s.length;let o,a;if(n){const r=hi(i.rtl,this.x,this.width);for(t.x=Lo(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=r.textAlign(i.footerAlign),e.textBaseline="middle",o=ve(i.footerFont),e.fillStyle=i.footerColor,e.font=o.string,a=0;a<n;++a)e.fillText(s[a],r.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+i.footerSpacing}}drawBackground(t,e,i,s){const{xAlign:n,yAlign:o}=this,{x:a,y:r}=t,{width:l,height:h}=i,{topLeft:c,topRight:d,bottomLeft:u,bottomRight:f}=_e(s.cornerRadius);e.fillStyle=s.backgroundColor,e.strokeStyle=s.borderColor,e.lineWidth=s.borderWidth,e.beginPath(),e.moveTo(a+c,r),"top"===o&&this.drawCaret(t,e,i,s),e.lineTo(a+l-d,r),e.quadraticCurveTo(a+l,r,a+l,r+d),"center"===o&&"right"===n&&this.drawCaret(t,e,i,s),e.lineTo(a+l,r+h-f),e.quadraticCurveTo(a+l,r+h,a+l-f,r+h),"bottom"===o&&this.drawCaret(t,e,i,s),e.lineTo(a+u,r+h),e.quadraticCurveTo(a,r+h,a,r+h-u),"center"===o&&"left"===n&&this.drawCaret(t,e,i,s),e.lineTo(a,r+c),e.quadraticCurveTo(a,r,a+c,r),e.closePath(),e.fill(),s.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,s=i&&i.x,n=i&&i.y;if(s||n){const i=_o[t.position].call(this,this._active,this._eventPosition);if(!i)return;const o=this._size=ko(this,t),a=Object.assign({},i,this._size),r=Mo(e,t,a),l=So(t,a,r,e);s._to===l.x&&n._to===l.y||(this.xAlign=r.xAlign,this.yAlign=r.yAlign,this.width=o.width,this.height=o.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const s={width:this.width,height:this.height},n={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=ye(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=i,this.drawBackground(n,t,s,e),ci(t,e.textDirection),n.y+=o.top,this.drawTitle(n,t,e),this.drawBody(n,t,e),this.drawFooter(n,t,e),di(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,s=t.map((({datasetIndex:t,index:e})=>{const i=this.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}})),n=!p(i,s),o=this._positionChanged(s,e);(n||o)&&(this._active=s,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,n=this._active||[],o=this._getActiveElements(t,n,e,i),a=this._positionChanged(o,t),r=e||!p(o,n)||a;return r&&(this._active=o,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),r}_getActiveElements(t,e,i,s){const n=this.options;if("mouseout"===t.type)return[];if(!s)return e;const o=this.chart.getElementsAtEventForMode(t,n.mode,n,i);return n.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:i,caretY:s,options:n}=this,o=_o[n.position].call(this,t,e);return!1!==o&&(i!==o.x||s!==o.y)}}Do.positioners=_o;var Oo={id:"tooltip",_element:Do,positioners:_o,afterInit(t,e,i){i&&(t.tooltip=new Do({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",i))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i,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:n,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,s=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(s>0&&e.dataIndex<s)return i[e.dataIndex]}return""},afterTitle:n,beforeBody:n,beforeLabel:n,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 i=t.formattedValue;return a(i)||(e+=i),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:n,afterBody:n,beforeFooter:n,footer:n,afterFooter:n}},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"]},Ao=Object.freeze({__proto__:null,Decimation:Xn,Filler:co,Legend:go,SubTitle:xo,Title:mo,Tooltip:Oo});class To extends ls{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:i,label:s}of e)t[i]===s&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(a(t))return null;const i=this.getLabels();return e=isFinite(e)&&i[e]===t?e:function(t,e,i,s){const n=t.indexOf(e);return-1===n?((t,e,i,s)=>("string"==typeof e?(i=t.push(e)-1,s.unshift({index:i,label:e})):isNaN(e)&&(i=null),i))(t,e,i,s):n!==t.lastIndexOf(e)?i:n}(i,t,d(e,t),this._addedLabels),((t,e)=>null===t?null:K(Math.round(t),0,e))(e,i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:s}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),e||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,s=[];let n=this.getLabels();n=0===t&&e===n.length-1?n:n.slice(t,e+1),this._valueRange=Math.max(n.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let i=t;i<=e;i++)s.push({value:i});return s}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 zo(t,e,{horizontal:i,minRotation:s}){const n=W(s),o=(i?Math.sin(n):Math.cos(n))||.001,a=.75*e*(""+t).length;return Math.min(e/o,a)}To.id="category",To.defaults={ticks:{callback:To.prototype.getLabelForValue}};class Ro extends ls{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 a(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:s,max:n}=this;const o=t=>s=e?s:t,a=t=>n=i?n:t;if(t){const t=F(s),e=F(n);t<0&&e<0?a(0):t>0&&e>0&&o(0)}if(s===n){let e=1;(n>=Number.MAX_SAFE_INTEGER||s<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*n)),a(n+e),t||o(s-e)}this.min=s,this.max=n}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:s}=t;return s?(e=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const s=function(t,e){const i=[],{bounds:s,step:n,min:o,max:r,precision:l,count:h,maxTicks:c,maxDigits:d,includeBounds:u}=t,f=n||1,g=c-1,{min:p,max:m}=e,b=!a(o),x=!a(r),_=!a(h),y=(m-p)/(d+1);let v,w,k,C,M=V((m-p)/g/f)*f;if(M<1e-14&&!b&&!x)return[{value:p},{value:m}];C=Math.ceil(m/M)-Math.floor(p/M),C>g&&(M=V(C*M/g/f)*f),a(l)||(v=Math.pow(10,l),M=Math.ceil(M*v)/v),"ticks"===s?(w=Math.floor(p/M)*M,k=Math.ceil(m/M)*M):(w=p,k=m),b&&x&&n&&function(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}((r-o)/n,M/1e3)?(C=Math.round(Math.min((r-o)/M,c)),M=(r-o)/C,w=o,k=r):_?(w=b?o:w,k=x?r:k,C=h-1,M=(k-w)/C):(C=(k-w)/M,C=H(C,Math.round(C),M/1e3)?Math.round(C):Math.ceil(C));const S=Math.max($(M),$(w));v=Math.pow(10,a(l)?S:l),w=Math.round(w*v)/v,k=Math.round(k*v)/v;let L=0;for(b&&(u&&w!==o?(i.push({value:o}),w<o&&L++,H(Math.round((w+L*M)*v)/v,o,zo(o,y,t))&&L++):w<o&&L++);L<C;++L)i.push({value:Math.round((w+L*M)*v)/v});return x&&u&&k!==r?i.length&&H(i[i.length-1].value,r,zo(r,y,t))?i[i.length-1].value=r:i.push({value:r}):x&&k!==r||i.push({value:k}),i}({maxTicks:i,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&&B(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,i=this.max;if(super.configure(),this.options.offset&&t.length){const s=(i-e)/Math.max(t.length-1,1)/2;e-=s,i+=s}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return ai(t,this.chart.options.locale,this.options.ticks.format)}}class Io extends Ro{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=h(t)?t:0,this.max=h(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=W(this.options.ticks.minRotation),s=(t?Math.sin(i):Math.cos(i))||.001,n=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,n.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 Fo(t){return 1==t/Math.pow(10,Math.floor(I(t)))}Io.id="linear",Io.defaults={ticks:{callback:Qi.formatters.numeric}};class Vo extends ls{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=Ro.prototype.parse.apply(this,[t,e]);if(0!==i)return h(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=h(t)?Math.max(0,t):null,this.max=h(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,s=this.max;const n=e=>i=t?i:e,o=t=>s=e?s:t,a=(t,e)=>Math.pow(10,Math.floor(I(t))+e);i===s&&(i<=0?(n(1),o(10)):(n(a(i,-1)),o(a(s,1)))),i<=0&&n(a(s,-1)),s<=0&&o(a(i,1)),this._zero&&this.min!==this._suggestedMin&&i===a(this.min,0)&&n(a(i,-1)),this.min=i,this.max=s}buildTicks(){const t=this.options,e=function(t,e){const i=Math.floor(I(e.max)),s=Math.ceil(e.max/Math.pow(10,i)),n=[];let o=c(t.min,Math.pow(10,Math.floor(I(e.min)))),a=Math.floor(I(o)),r=Math.floor(o/Math.pow(10,a)),l=a<0?Math.pow(10,Math.abs(a)):1;do{n.push({value:o,major:Fo(o)}),++r,10===r&&(r=1,++a,l=a>=0?1:l),o=Math.round(r*Math.pow(10,a)*l)/l}while(a<i||a===i&&r<s);const h=c(t.max,o);return n.push({value:h,major:Fo(o)}),n}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&B(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":ai(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=I(t),this._valueRange=I(this.max)-I(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(I(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function No(t){const e=t.ticks;if(e.display&&t.display){const t=ye(e.backdropPadding);return d(e.font&&e.font.size,Jt.font.size)+t.height}return 0}function Ho(t,e,i,s,n){return t===s||t===n?{start:e-i/2,end:e+i/2}:t<s||t>n?{start:e-i,end:e}:{start:e,end:e+i}}function Bo(t,e,i,s,n){const o=Math.abs(Math.sin(i)),a=Math.abs(Math.cos(i));let r=0,l=0;s.start<e.l?(r=(e.l-s.start)/o,t.l=Math.min(t.l,e.l-r)):s.end>e.r&&(r=(s.end-e.r)/o,t.r=Math.max(t.r,e.r+r)),n.start<e.t?(l=(e.t-n.start)/a,t.t=Math.min(t.t,e.t-l)):n.end>e.b&&(l=(n.end-e.b)/a,t.b=Math.max(t.b,e.b+l))}function Wo(t){return 0===t||180===t?"center":t<180?"left":"right"}function jo(t,e,i){return 90===i||270===i?t-=e/2:(i>270||i<90)&&(t-=e),t}function $o(t,e,i,s){const{ctx:n}=t;if(i)n.arc(t.xCenter,t.yCenter,e,0,P);else{let i=t.getPointPosition(0,e);n.moveTo(i.x,i.y);for(let o=1;o<s;o++)i=t.getPointPosition(o,e),n.lineTo(i.x,i.y)}}Vo.id="logarithmic",Vo.defaults={ticks:{callback:Qi.formatters.logarithmic,major:{enabled:!0}}};class Zo extends Ro{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=ye(No(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=h(t)&&!isNaN(t)?t:0,this.max=h(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/No(this.options))}generateTickLabels(t){Ro.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const i=f(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?function(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},i=Object.assign({},e),s=[],n=[],o=t._pointLabels.length,a=t.options.pointLabels,l=a.centerPointLabels?E/o:0;for(let u=0;u<o;u++){const o=a.setContext(t.getPointLabelContext(u));n[u]=o.padding;const f=t.getPointPosition(u,t.drawingArea+n[u],l),g=ve(o.font),p=(h=t.ctx,c=g,d=r(d=t._pointLabels[u])?d:[d],{w:te(h,c.string,d),h:d.length*c.lineHeight});s[u]=p;const m=X(t.getIndexAngle(u)+l),b=Math.round(j(m));Bo(i,e,m,Ho(b,f.x,p.w,0,180),Ho(b,f.y,p.h,90,270))}var h,c,d;t.setCenterPoint(e.l-i.l,i.r-e.r,e.t-i.t,i.b-e.b),t._pointLabelItems=function(t,e,i){const s=[],n=t._pointLabels.length,o=t.options,a=No(o)/2,r=t.drawingArea,l=o.pointLabels.centerPointLabels?E/n:0;for(let o=0;o<n;o++){const n=t.getPointPosition(o,r+a+i[o],l),u=Math.round(j(X(n.angle+T))),f=e[o],g=jo(n.y,f.h,u),p=Wo(u),m=(h=n.x,c=f.w,"right"===(d=p)?h-=c:"center"===d&&(h-=c/2),h);s.push({x:n.x,y:g,textAlign:p,left:m,top:g,right:m+f.w,bottom:g+f.h})}var h,c,d;return s}(t,s,n)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,s){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,s))}getIndexAngle(t){return X(t*(P/(this._pointLabels.length||1))+W(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(a(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(a(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 i=e[t];return function(t,e,i){return ke(t,{label:i,index:e,type:"pointLabel"})}(this.getContext(),t,i)}}getPointPosition(t,e,i=0){const s=this.getIndexAngle(t)-T+i;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:i,right:s,bottom:n}=this._pointLabelItems[t];return{left:e,top:i,right:s,bottom:n}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),$o(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:i,grid:s}=e,n=this._pointLabels.length;let o,r,l;if(e.pointLabels.display&&function(t,e){const{ctx:i,options:{pointLabels:s}}=t;for(let n=e-1;n>=0;n--){const e=s.setContext(t.getPointLabelContext(n)),o=ve(e.font),{x:r,y:l,textAlign:h,left:c,top:d,right:u,bottom:f}=t._pointLabelItems[n],{backdropColor:g}=e;if(!a(g)){const t=_e(e.borderRadius),s=ye(e.backdropPadding);i.fillStyle=g;const n=c-s.left,o=d-s.top,a=u-c+s.width,r=f-d+s.height;Object.values(t).some((t=>0!==t))?(i.beginPath(),ue(i,{x:n,y:o,w:a,h:r,radius:t}),i.fill()):i.fillRect(n,o,a,r)}ce(i,t._pointLabels[n],r,l+o.lineHeight/2,o,{color:e.color,textAlign:h,textBaseline:"middle"})}}(this,n),s.display&&this.ticks.forEach(((t,e)=>{0!==e&&(r=this.getDistanceFromCenterForValue(t.value),function(t,e,i,s){const n=t.ctx,o=e.circular,{color:a,lineWidth:r}=e;!o&&!s||!a||!r||i<0||(n.save(),n.strokeStyle=a,n.lineWidth=r,n.setLineDash(e.borderDash),n.lineDashOffset=e.borderDashOffset,n.beginPath(),$o(t,i,o,s),n.closePath(),n.stroke(),n.restore())}(this,s.setContext(this.getContext(e-1)),r,n))})),i.display){for(t.save(),o=n-1;o>=0;o--){const s=i.setContext(this.getPointLabelContext(o)),{color:n,lineWidth:a}=s;a&&n&&(t.lineWidth=a,t.strokeStyle=n,t.setLineDash(s.borderDash),t.lineDashOffset=s.borderDashOffset,r=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(o,r),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const s=this.getIndexAngle(0);let n,o;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 r=i.setContext(this.getContext(a)),l=ve(r.font);if(n=this.getDistanceFromCenterForValue(this.ticks[a].value),r.showLabelBackdrop){t.font=l.string,o=t.measureText(s.label).width,t.fillStyle=r.backdropColor;const e=ye(r.backdropPadding);t.fillRect(-o/2-e.left,-n-l.size/2-e.top,o+e.width,l.size+e.height)}ce(t,s.label,0,-n,l,{color:r.color})})),t.restore()}drawTitle(){}}Zo.id="radialLinear",Zo.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Qi.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},Zo.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Zo.descriptors={angleLines:{_fallback:"grid"}};const Yo={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}},Uo=Object.keys(Yo);function Xo(t,e){return t-e}function qo(t,e){if(a(e))return null;const i=t._adapter,{parser:s,round:n,isoWeekday:o}=t._parseOpts;let r=e;return"function"==typeof s&&(r=s(r)),h(r)||(r="string"==typeof s?i.parse(r,s):i.parse(r)),null===r?null:(n&&(r="week"!==n||!N(o)&&!0!==o?i.startOf(r,n):i.startOf(r,"isoWeek",o)),+r)}function Ko(t,e,i,s){const n=Uo.length;for(let o=Uo.indexOf(t);o<n-1;++o){const t=Yo[Uo[o]],n=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((i-e)/(n*t.size))<=s)return Uo[o]}return Uo[n-1]}function Go(t,e,i){if(i){if(i.length){const{lo:s,hi:n}=J(i,e);t[i[s]>=e?i[s]:i[n]]=!0}}else t[e]=!0}function Jo(t,e,i){const s=[],n={},o=e.length;let a,r;for(a=0;a<o;++a)r=e[a],n[r]=a,s.push({value:r,major:!1});return 0!==o&&i?function(t,e,i,s){const n=t._adapter,o=+n.startOf(e[0].value,s),a=e[e.length-1].value;let r,l;for(r=o;r<=a;r=+n.add(r,1,s))l=i[r],l>=0&&(e[l].major=!0);return e}(t,s,n,i):s}class Qo extends ls{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 i=t.time||(t.time={}),s=this._adapter=new ps._date(t.adapters.date);s.init(e),y(i.displayFormats,s.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:qo(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:s,max:n,minDefined:o,maxDefined:a}=this.getUserBounds();function r(t){o||isNaN(t.min)||(s=Math.min(s,t.min)),a||isNaN(t.max)||(n=Math.max(n,t.max))}o&&a||(r(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||r(this.getMinMax(!1))),s=h(s)&&!isNaN(s)?s:+e.startOf(Date.now(),i),n=h(n)&&!isNaN(n)?n:+e.endOf(Date.now(),i)+1,this.min=Math.min(s,n-1),this.max=Math.max(s+1,n)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,s="labels"===i.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 n=this.min,o=function(t,e,i){let s=0,n=t.length;for(;s<n&&t[s]<e;)s++;for(;n>s&&t[n-1]>i;)n--;return s>0||n<t.length?t.slice(s,n):t}(s,n,this.max);return this._unit=e.unit||(i.autoSkip?Ko(e.minUnit,this.min,this.max,this._getLabelCapacity(n)):function(t,e,i,s,n){for(let o=Uo.length-1;o>=Uo.indexOf(i);o--){const i=Uo[o];if(Yo[i].common&&t._adapter.diff(n,s,i)>=e-1)return i}return Uo[i?Uo.indexOf(i):0]}(this,o.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=Uo.indexOf(t)+1,i=Uo.length;e<i;++e)if(Yo[Uo[e]].common)return Uo[e]}(this._unit):void 0,this.initOffsets(s),t.reverse&&o.reverse(),Jo(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((t=>+t.value)))}initOffsets(t){let e,i,s=0,n=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),s=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),n=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;s=K(s,0,o),n=K(n,0,o),this._offsets={start:s,end:n,factor:1/(s+1+n)}}_generate(){const t=this._adapter,e=this.min,i=this.max,s=this.options,n=s.time,o=n.unit||Ko(n.minUnit,e,i,this._getLabelCapacity(e)),a=d(n.stepSize,1),r="week"===o&&n.isoWeekday,l=N(r)||!0===r,h={};let c,u,f=e;if(l&&(f=+t.startOf(f,"isoWeek",r)),f=+t.startOf(f,l?"day":o),t.diff(i,e,o)>1e5*a)throw new Error(e+" and "+i+" are too far apart with stepSize of "+a+" "+o);const g="data"===s.ticks.source&&this.getDataTimestamps();for(c=f,u=0;c<i;c=+t.add(c,a,o),u++)Go(h,c,g);return c!==i&&"ticks"!==s.bounds&&1!==u||Go(h,c,g),Object.keys(h).sort(((t,e)=>t-e)).map((t=>+t))}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}_tickFormatFunction(t,e,i,s){const n=this.options,o=n.time.displayFormats,a=this._unit,r=this._majorUnit,l=a&&o[a],h=r&&o[r],c=i[e],d=r&&h&&c&&c.major,u=this._adapter.format(t,s||(d?h:l)),g=n.ticks.callback;return g?f(g,[u,e,i],this):u}generateTickLabels(t){let e,i,s;for(e=0,i=t.length;e<i;++e)s=t[e],s.label=this._tickFormatFunction(s.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+i)*e.factor)}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,i=this.ctx.measureText(t).width,s=W(this.isHorizontal()?e.maxRotation:e.minRotation),n=Math.cos(s),o=Math.sin(s),a=this._resolveTickFontOptions(0).size;return{w:i*n+a*o,h:i*o+a*n}}_getLabelCapacity(t){const e=this.options.time,i=e.displayFormats,s=i[e.unit]||i.millisecond,n=this._tickFormatFunction(t,0,Jo(this,[t],this._majorUnit),s),o=this._getLabelSize(n),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(t=0,e=s.length;t<e;++t)i=i.concat(s[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(i)}getLabelTimestamps(){const t=this._cache.labels||[];let e,i;if(t.length)return t;const s=this.getLabels();for(e=0,i=s.length;e<i;++e)t.push(qo(this,s[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return st(t.sort(Xo))}}function ta(t,e,i){let s,n,o,a,r=0,l=t.length-1;i?(e>=t[r].pos&&e<=t[l].pos&&({lo:r,hi:l}=Q(t,"pos",e)),({pos:s,time:o}=t[r]),({pos:n,time:a}=t[l])):(e>=t[r].time&&e<=t[l].time&&({lo:r,hi:l}=Q(t,"time",e)),({time:s,pos:o}=t[r]),({time:n,pos:a}=t[l]));const h=n-s;return h?o+(a-o)*(e-s)/h:o}Qo.id="time",Qo.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class ea extends Qo{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=ta(e,this.min),this._tableRange=ta(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,s=[],n=[];let o,a,r,l,h;for(o=0,a=t.length;o<a;++o)l=t[o],l>=e&&l<=i&&s.push(l);if(s.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(o=0,a=s.length;o<a;++o)h=s[o+1],r=s[o-1],l=s[o],Math.round((h+r)/2)!==l&&n.push({time:l,pos:o/(a-1)});return n}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),i=this.getLabelTimestamps();return t=e.length&&i.length?this.normalize(e.concat(i)):e.length?e:i,t=this._cache.all=t,t}getDecimalForValue(t){return(ta(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return ta(this._table,i*this._tableRange+this._minPos,!0)}}ea.id="timeseries",ea.defaults=Qo.defaults;const ia=[us,Zn,Ao,Object.freeze({__proto__:null,CategoryScale:To,LinearScale:Io,LogarithmicScale:Vo,RadialLinearScale:Zo,TimeScale:Qo,TimeSeriesScale:ea})];wn.register(...ia);const sa=wn,na=window.React;var oa=i.n(na);function aa(t){for(var e=arguments,i=function(i){var s=null!=e[i]?e[i]:{},n=Object.keys(s);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(s).filter((function(t){return Object.getOwnPropertyDescriptor(s,t).enumerable})))),n.forEach((function(e){!function(t,e,i){e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i}(t,e,s[e])}))},s=1;s<arguments.length;s++)i(s);return t}function ra(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function la(t,e){t.labels=e}function ha(t,e){t.datasets=e.map((function(e){var i=t.datasets.find((function(t){return t.label===e.label&&t.type===e.type}));return i&&e.data?(Object.assign(i,e),i):aa({},e)}))}function ca(t){var e={labels:[],datasets:[]};return la(e,t.labels),ha(e,t.datasets),e}var da={datasets:[]};function ua(t,e){var i,s=t.height,n=void 0===s?150:s,o=t.width,a=void 0===o?300:o,r=t.redraw,l=void 0!==r&&r,h=t.type,c=t.data,d=t.options,u=t.plugins,f=void 0===u?[]:u,g=t.getDatasetAtEvent,p=t.getElementAtEvent,m=t.getElementsAtEvent,b=t.fallbackContent,x=t.onClick,_=function(t,e){if(null==t)return{};var i,s,n=function(t,e){if(null==t)return{};var i,s,n={},o=Object.keys(t);for(s=0;s<o.length;s++)i=o[s],e.indexOf(i)>=0||(n[i]=t[i]);return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(s=0;s<o.length;s++)i=o[s],e.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(n[i]=t[i])}return n}(t,["height","width","redraw","type","data","options","plugins","getDatasetAtEvent","getElementAtEvent","getElementsAtEvent","fallbackContent","onClick"]),y=(0,na.useRef)(null),v=(0,na.useRef)(),w=function(t){if(Array.isArray(t))return t}(i=(0,na.useState)())||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}(),k=w[0],C=w[1],M=k||("function"==typeof c?da:c),S=function(){y.current&&(v.current=new sa(y.current,{type:h,data:ca(M),options:d,plugins:f}),ra(e,v.current))},L=function(){ra(e,null),v.current&&(v.current.destroy(),v.current=null)};return(0,na.useEffect)((function(){"function"==typeof c&&y.current&&C(c(y.current))}),[c]),(0,na.useEffect)((function(){var t,e;!l&&v.current&&d&&(t=v.current,e=d,t.options=aa({},e))}),[l,d]),(0,na.useEffect)((function(){!l&&v.current&&la(v.current.config.data,M.labels)}),[l,M.labels]),(0,na.useEffect)((function(){!l&&v.current&&M.datasets&&ha(v.current.config.data,M.datasets)}),[l,M.datasets]),(0,na.useEffect)((function(){v.current&&(l?(L(),setTimeout(S)):v.current.update())}),[l,d,M.labels,M.datasets]),(0,na.useEffect)((function(){return S(),function(){return L()}}),[]),oa().createElement("canvas",Object.assign({ref:y,role:"img",height:n,width:a,onClick:function(t){x&&x(t);var e=v.current;e&&(g&&g(e.getElementsAtEventForMode(t.nativeEvent,"dataset",{intersect:!0},!1),t),p&&p(e.getElementsAtEventForMode(t.nativeEvent,"nearest",{intersect:!0},!1),t),m&&m(e.getElementsAtEventForMode(t.nativeEvent,"index",{intersect:!0},!1),t))}},_),b)}var fa=(0,na.forwardRef)(ua);function ga(t){return(0,na.forwardRef)((function(e,i){return oa().createElement(fa,Object.assign({},e,{ref:i,type:t}))}))}ga("line"),ga("bar"),ga("radar"),ga("doughnut");var pa=ga("polarArea");ga("bubble"),ga("pie"),ga("scatter");const ma=()=>(0,t.createElement)("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M3.83366 3.3335H17.167C18.0837 3.3335 18.8337 4.0835 18.8337 5.00016V15.0002C18.8337 15.9168 18.0837 16.6668 17.167 16.6668H3.83366C2.91699 16.6668 2.16699 15.9168 2.16699 15.0002V5.00016C2.16699 4.0835 2.91699 3.3335 3.83366 3.3335Z",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.createElement)("path",{d:"M18.8337 5L10.5003 10.8333L2.16699 5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),ba=()=>(0,t.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M11.9346 9.5563H13.9757H14.5576L14.47 10.1315L14.0644 12.7964L13.9998 13.2212H13.5701H11.9334V18.5601C15.7868 17.6766 18.6668 14.2059 18.6668 10.0563C18.6668 5.23582 14.784 1.33356 10.0014 1.3335L11.9346 9.5563ZM11.9346 9.5563V8.32631C11.9346 8.03337 12.0068 7.8056 12.1337 7.65767C12.2486 7.52389 12.4684 7.38503 12.9274 7.38503H14.0834H14.5834V6.88503V4.61657V4.19505L14.168 4.12377L14.0834 4.61657L14.1679 4.12375L14.1678 4.12373L14.1675 4.12368L14.1666 4.12353L14.1637 4.12304L14.1534 4.12132L14.1157 4.11516C14.0832 4.10994 14.0363 4.1026 13.9771 4.09385C13.8589 4.07635 13.6912 4.05314 13.4914 4.02996C13.094 3.98384 12.56 3.93669 12.0315 3.93669C10.883 3.93669 9.87843 4.28879 9.16067 5.01132C8.44276 5.734 8.06919 6.7694 8.06919 8.02385V9.55745H6.24115H5.74115V10.0574V12.7223V13.2223H6.24115H8.0669V18.5612C4.21356 17.6778 1.3335 14.207 1.3335 10.0574C1.3335 5.23596 5.21624 1.33464 10.0013 1.3335L11.9346 9.5563Z",fill:"white",stroke:"white"})),xa=()=>(0,t.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},(0,t.createElement)("path",{d:"M3.5901 11.9296L3.58928 12.1136C3.58991 12.1136 3.59053 12.1136 3.59116 12.1136L3.59303 12.1136L3.59249 11.934C3.59169 11.9325 3.5909 11.9311 3.5901 11.9296ZM3.5901 11.9296C3.53598 11.828 3.48715 11.7233 3.44389 11.616L3.5912 11.6853L3.5901 11.9296ZM6.59245 16.8966H6.5923C5.30933 16.897 4.0439 16.6556 2.86038 16.1911C4.25955 15.9944 5.58943 15.4315 6.71109 14.5506L7.81648 13.6824L6.41112 13.6574C5.73068 13.6454 5.07106 13.4208 4.52464 13.0151C4.19179 12.768 3.9111 12.4612 3.69542 12.1127C4.04014 12.1055 4.38278 12.0555 4.71546 11.9639L4.68242 10.9919C3.94479 10.8417 3.28165 10.4414 2.80507 9.85876C2.48597 9.46861 2.26362 9.01271 2.15125 8.52806C2.5077 8.63592 2.87784 8.69746 3.25256 8.71019L5.00528 8.76974L3.54748 7.79486C2.85724 7.33326 2.36854 6.62626 2.18064 5.81743C2.04836 5.24805 2.07213 4.65824 2.24295 4.10824C3.13053 5.05234 4.17689 5.83656 5.3364 6.42411C6.73469 7.13266 8.2663 7.53937 9.83189 7.61788L10.4942 7.65109L10.3439 7.00519C10.1811 6.30558 10.2536 5.57181 10.5501 4.91754C10.8465 4.26328 11.3505 3.72503 11.9838 3.38617C12.6172 3.04731 13.3446 2.92676 14.0534 3.04318C14.7622 3.1596 15.4128 3.50649 15.9045 4.03013L16.0933 4.23122L16.3641 4.17875C16.7226 4.10929 17.0752 4.01545 17.4196 3.89815C17.2209 4.10336 16.9947 4.28325 16.7458 4.43204L17.0622 5.35761C17.2653 5.33312 17.4672 5.301 17.6675 5.26135C17.4553 5.45828 17.231 5.6425 16.9956 5.81286L16.7777 5.97058L16.7893 6.23929C16.7956 6.3872 16.7957 6.53915 16.7957 6.70142C16.7957 11.4488 13.1777 16.8966 6.59245 16.8966Z",fill:"white",stroke:"white"})),_a=()=>(0,t.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},(0,t.createElement)("path",{d:"M6.49735 16.6808H6.99735V16.1808V7.90214V7.40214H6.49735H3.7462H3.2462V7.90214V16.1808V16.6808H3.7462H6.49735ZM7.17839 5.3412H7.1785L7.17828 5.33063C7.16719 4.80625 6.97258 4.31885 6.60396 3.96221C6.23442 3.60467 5.72404 3.4112 5.14068 3.4112C4.55852 3.4112 4.04142 3.60404 3.66585 3.95822C3.28935 4.31328 3.0835 4.80457 3.0835 5.3412C3.0835 6.42436 3.91629 7.2712 5.10402 7.2712H5.12235C5.71482 7.2712 6.2329 7.07318 6.6061 6.71528C6.97901 6.35765 7.17839 5.8673 7.17839 5.3412ZM10.7461 16.6808H11.2461V16.1808V11.5574C11.2461 11.3126 11.2677 11.1541 11.2995 11.0778L11.2995 11.0778L11.3018 11.0721C11.4523 10.6972 11.7596 10.3798 12.2494 10.3798C12.6 10.3798 12.7852 10.502 12.9062 10.6797C13.049 10.8895 13.1428 11.2405 13.1428 11.7521V16.1808V16.6808H13.6428H16.3939H16.8939V16.1808V11.4325C16.8939 10.0746 16.531 9.008 15.857 8.27658C15.1792 7.54113 14.2434 7.2062 13.2268 7.2062C12.3977 7.2062 11.7695 7.43637 11.2921 7.76668C11.2765 7.77741 11.2612 7.78822 11.2461 7.79912V7.40214H10.7461H7.9961H7.47349L7.49659 7.92424C7.5131 8.29748 7.51331 10.349 7.50899 12.3317C7.50684 13.3176 7.50362 14.2793 7.50094 14.9946L7.49751 15.8548L7.49648 16.0941L7.4962 16.157L7.49613 16.1731L7.49611 16.1771L7.49611 16.1782L7.49611 16.1784L7.9961 16.1808L7.4961 16.1785L7.4938 16.6808H7.9961H10.7461ZM1.3335 2.14662C1.3335 1.70916 1.70049 1.3335 2.17985 1.3335H17.8205C18.2998 1.3335 18.6668 1.70916 18.6668 2.14662V17.8537C18.6668 18.2912 18.2998 18.6668 17.8205 18.6668H2.17985C1.70049 18.6668 1.3335 18.2912 1.3335 17.8537V2.14662Z",fill:"white",stroke:"white"})),ya=()=>(0,t.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},(0,t.createElement)("mask",{id:"path-1-inside-1",fill:"white"},(0,t.createElement)("path",{d:"M7.89977 10C7.64763 10.0003 7.40591 10.1006 7.22762 10.2789C7.04933 10.4572 6.94903 10.6989 6.94873 10.951C6.94873 11.477 7.37498 11.9135 7.89977 11.9032C8.14644 11.8947 8.38015 11.7907 8.55162 11.6131C8.72309 11.4356 8.81893 11.1984 8.81893 10.9516C8.81893 10.7048 8.72309 10.4676 8.55162 10.2901C8.38015 10.1126 8.14644 10.0086 7.89977 10ZM10.0115 14.1789C10.3725 14.1789 11.6191 14.1353 12.2757 13.4787C12.3183 13.4303 12.3417 13.3679 12.3417 13.3034C12.3417 13.2389 12.3183 13.1766 12.2757 13.1281C12.253 13.1046 12.2257 13.086 12.1956 13.0732C12.1655 13.0604 12.1331 13.0539 12.1004 13.0539C12.0677 13.0539 12.0353 13.0604 12.0052 13.0732C11.9751 13.086 11.9478 13.1046 11.9251 13.1281C11.5206 13.5441 10.6349 13.6861 10.0115 13.6861C9.38706 13.6861 8.51279 13.5441 8.09686 13.1281C8.0741 13.1046 8.04686 13.086 8.01674 13.0732C7.98662 13.0604 7.95425 13.0539 7.92154 13.0539C7.88884 13.0539 7.85646 13.0604 7.82635 13.0732C7.79623 13.086 7.76899 13.1046 7.74623 13.1281C7.72274 13.1509 7.70406 13.1781 7.6913 13.2082C7.67854 13.2384 7.67197 13.2707 7.67197 13.3034C7.67197 13.3361 7.67854 13.3685 7.6913 13.3986C7.70406 13.4287 7.72274 13.456 7.74623 13.4787C8.39248 14.1239 9.63915 14.1777 10.0115 14.1777V14.1789ZM11.1482 10.9625C11.1482 11.4873 11.5756 11.9135 12.1004 11.9135C12.6252 11.9135 13.0514 11.477 13.0514 10.9625C13.0394 10.7183 12.934 10.4881 12.757 10.3196C12.5799 10.151 12.3448 10.057 12.1004 10.057C11.8559 10.057 11.6209 10.151 11.4438 10.3196C11.2668 10.4881 11.1613 10.7183 11.1494 10.9625H11.1482Z"})),(0,t.createElement)("path",{d:"M7.89977 10C7.64763 10.0003 7.40591 10.1006 7.22762 10.2789C7.04933 10.4572 6.94903 10.6989 6.94873 10.951C6.94873 11.477 7.37498 11.9135 7.89977 11.9032C8.14644 11.8947 8.38015 11.7907 8.55162 11.6131C8.72309 11.4356 8.81893 11.1984 8.81893 10.9516C8.81893 10.7048 8.72309 10.4676 8.55162 10.2901C8.38015 10.1126 8.14644 10.0086 7.89977 10ZM10.0115 14.1789C10.3725 14.1789 11.6191 14.1353 12.2757 13.4787C12.3183 13.4303 12.3417 13.3679 12.3417 13.3034C12.3417 13.2389 12.3183 13.1766 12.2757 13.1281C12.253 13.1046 12.2257 13.086 12.1956 13.0732C12.1655 13.0604 12.1331 13.0539 12.1004 13.0539C12.0677 13.0539 12.0353 13.0604 12.0052 13.0732C11.9751 13.086 11.9478 13.1046 11.9251 13.1281C11.5206 13.5441 10.6349 13.6861 10.0115 13.6861C9.38706 13.6861 8.51279 13.5441 8.09686 13.1281C8.0741 13.1046 8.04686 13.086 8.01674 13.0732C7.98662 13.0604 7.95425 13.0539 7.92154 13.0539C7.88884 13.0539 7.85646 13.0604 7.82635 13.0732C7.79623 13.086 7.76899 13.1046 7.74623 13.1281C7.72274 13.1509 7.70406 13.1781 7.6913 13.2082C7.67854 13.2384 7.67197 13.2707 7.67197 13.3034C7.67197 13.3361 7.67854 13.3685 7.6913 13.3986C7.70406 13.4287 7.72274 13.456 7.74623 13.4787C8.39248 14.1239 9.63915 14.1777 10.0115 14.1777V14.1789ZM11.1482 10.9625C11.1482 11.4873 11.5756 11.9135 12.1004 11.9135C12.6252 11.9135 13.0514 11.477 13.0514 10.9625C13.0394 10.7183 12.934 10.4881 12.757 10.3196C12.5799 10.151 12.3448 10.057 12.1004 10.057C11.8559 10.057 11.6209 10.151 11.4438 10.3196C11.2668 10.4881 11.1613 10.7183 11.1494 10.9625H11.1482Z",fill:"white"}),(0,t.createElement)("path",{d:"M7.89977 10L7.93446 9.0006L7.91652 8.99998L7.89857 9L7.89977 10ZM6.94873 10.951L5.94873 10.9498V10.951H6.94873ZM7.89977 11.9032L7.91942 12.903L7.92694 12.9029L7.93446 12.9026L7.89977 11.9032ZM10.0115 14.1789H9.01154V15.1789H10.0115V14.1789ZM12.2757 13.4787L12.9828 14.1859L13.0059 14.1628L13.0274 14.1382L12.2757 13.4787ZM12.3417 13.3034H11.3417H12.3417ZM12.2757 13.1281L13.0274 12.4686L13.0112 12.4501L12.994 12.4324L12.2757 13.1281ZM12.1004 13.0539V14.0539V13.0539ZM11.9251 13.1281L12.642 13.8253L12.6434 13.8238L11.9251 13.1281ZM8.09686 13.1281L7.37855 13.8238L7.3841 13.8296L7.38975 13.8352L8.09686 13.1281ZM7.92154 13.0539V14.0539V13.0539ZM7.74623 13.1281L8.44195 13.8464L8.45343 13.8353L8.46454 13.8238L7.74623 13.1281ZM7.74623 13.4787L8.45271 12.771L8.44737 12.7657L8.44195 12.7604L7.74623 13.4787ZM10.0115 14.1777H11.0115V13.1777H10.0115V14.1777ZM11.1482 10.9625V9.9625H10.1482V10.9625H11.1482ZM13.0514 10.9625H14.0514V10.938L14.0502 10.9135L13.0514 10.9625ZM11.1494 10.9625V11.9625H12.1015L12.1482 11.0115L11.1494 10.9625ZM7.89857 9C7.38163 9.00062 6.88604 9.20625 6.52051 9.57178L7.93473 10.986C7.92577 10.9949 7.91364 11 7.90097 11L7.89857 9ZM6.52051 9.57178C6.15498 9.93731 5.94935 10.4329 5.94873 10.9498L7.94873 10.9522C7.94871 10.9649 7.94368 10.977 7.93473 10.986L6.52051 9.57178ZM5.94873 10.951C5.94873 12.0102 6.80835 12.9249 7.91942 12.903L7.88013 10.9034C7.8917 10.9032 7.90483 10.9057 7.91643 10.9105C7.92713 10.915 7.93376 10.9203 7.93748 10.9241C7.94409 10.9307 7.94873 10.9405 7.94873 10.951H5.94873ZM7.93446 12.9026C8.44018 12.8851 8.91933 12.6718 9.27089 12.3079L7.83236 10.9184C7.84097 10.9095 7.8527 10.9043 7.86509 10.9038L7.93446 12.9026ZM9.27089 12.3079C9.62244 11.9439 9.81893 11.4576 9.81893 10.9516H7.81893C7.81893 10.9392 7.82375 10.9273 7.83236 10.9184L9.27089 12.3079ZM9.81893 10.9516C9.81893 10.4456 9.62244 9.95933 9.27089 9.59536L7.83236 10.9848C7.82375 10.9759 7.81893 10.964 7.81893 10.9516H9.81893ZM9.27089 9.59536C8.91933 9.23139 8.44018 9.01815 7.93446 9.0006L7.86509 10.9994C7.8527 10.999 7.84097 10.9937 7.83236 10.9848L9.27089 9.59536ZM10.0115 15.1789C10.2259 15.1789 10.7052 15.1666 11.24 15.0533C11.7529 14.9447 12.4531 14.7156 12.9828 14.1859L11.5686 12.7716C11.4417 12.8985 11.1903 13.0195 10.8255 13.0967C10.4826 13.1694 10.1581 13.1789 10.0115 13.1789V15.1789ZM13.0274 14.1382C13.23 13.9073 13.3417 13.6106 13.3417 13.3034H11.3417C11.3417 13.1253 11.4065 12.9532 11.524 12.8193L13.0274 14.1382ZM13.3417 13.3034C13.3417 12.9963 13.23 12.6996 13.0274 12.4686L11.524 13.7876C11.4065 13.6537 11.3417 13.4816 11.3417 13.3034H13.3417ZM12.994 12.4324C12.878 12.3126 12.7391 12.2174 12.5856 12.1524L11.8055 13.994C11.7123 13.9545 11.6279 13.8966 11.5574 13.8238L12.994 12.4324ZM12.5856 12.1524C12.4321 12.0874 12.2671 12.0539 12.1004 12.0539V14.0539C11.9991 14.0539 11.8988 14.0335 11.8055 13.994L12.5856 12.1524ZM12.1004 12.0539C11.9337 12.0539 11.7687 12.0874 11.6152 12.1524L12.3952 13.994C12.302 14.0335 12.2017 14.0539 12.1004 14.0539V12.0539ZM11.6152 12.1524C11.4617 12.2174 11.3228 12.3126 11.2068 12.4324L12.6434 13.8238C12.5729 13.8966 12.4885 13.9545 12.3952 13.994L11.6152 12.1524ZM11.2082 12.431C11.2114 12.4277 11.1874 12.4523 11.1105 12.4892C11.0359 12.525 10.9346 12.5613 10.8078 12.593C10.5509 12.6572 10.2569 12.6861 10.0115 12.6861V14.6861C10.3895 14.6861 10.85 14.644 11.293 14.5332C11.7096 14.4291 12.2474 14.2311 12.642 13.8253L11.2082 12.431ZM10.0115 12.6861C9.76594 12.6861 9.47477 12.6573 9.21947 12.5932C8.94106 12.5233 8.82446 12.4415 8.80396 12.421L7.38975 13.8352C7.78519 14.2307 8.31369 14.4279 8.73252 14.533C9.17447 14.644 9.63267 14.6861 10.0115 14.6861V12.6861ZM8.81517 12.4324C8.69917 12.3126 8.56029 12.2174 8.40679 12.1524L7.62669 13.994C7.53343 13.9545 7.44904 13.8966 7.37855 13.8238L8.81517 12.4324ZM8.40679 12.1524C8.25329 12.0874 8.08827 12.0539 7.92154 12.0539V14.0539C7.82023 14.0539 7.71996 14.0335 7.62669 13.994L8.40679 12.1524ZM7.92154 12.0539C7.75481 12.0539 7.5898 12.0874 7.4363 12.1524L8.2164 13.994C8.12313 14.0335 8.02286 14.0539 7.92154 14.0539V12.0539ZM7.4363 12.1524C7.2828 12.2174 7.14392 12.3126 7.02792 12.4324L8.46454 13.8238C8.39405 13.8966 8.30966 13.9545 8.2164 13.994L7.4363 12.1524ZM7.05051 12.4098C6.93075 12.5258 6.83553 12.6647 6.7705 12.8182L8.61209 13.5983C8.57258 13.6916 8.51472 13.776 8.44195 13.8464L7.05051 12.4098ZM6.7705 12.8182C6.70547 12.9717 6.67197 13.1367 6.67197 13.3034H8.67197C8.67197 13.4047 8.65161 13.505 8.61209 13.5983L6.7705 12.8182ZM6.67197 13.3034C6.67197 13.4701 6.70547 13.6352 6.7705 13.7887L8.61209 13.0086C8.65161 13.1019 8.67197 13.2021 8.67197 13.3034H6.67197ZM6.7705 13.7887C6.83553 13.9422 6.93075 14.0811 7.05051 14.1971L8.44195 12.7604C8.51472 12.8309 8.57258 12.9153 8.61209 13.0086L6.7705 13.7887ZM7.03975 14.1865C7.56436 14.7102 8.26187 14.9386 8.77199 15.0479C9.30512 15.1622 9.78652 15.1777 10.0115 15.1777V13.1777C9.86417 13.1777 9.53604 13.1663 9.19118 13.0924C8.8233 13.0135 8.57435 12.8924 8.45271 12.771L7.03975 14.1865ZM9.01154 14.1777V14.1789H11.0115V14.1777H9.01154ZM10.1482 10.9625C10.1482 12.0411 11.0249 12.9135 12.1004 12.9135V10.9135C12.1142 10.9135 12.1271 10.9202 12.134 10.9271C12.1374 10.9305 12.1409 10.9353 12.1438 10.9419C12.1469 10.9492 12.1482 10.9568 12.1482 10.9625H10.1482ZM12.1004 12.9135C13.1845 12.9135 14.0514 12.0222 14.0514 10.9625H12.0514C12.0514 10.9399 12.0607 10.9288 12.063 10.9265C12.0648 10.9246 12.0684 10.9216 12.075 10.9188C12.0824 10.9156 12.0917 10.9135 12.1004 10.9135V12.9135ZM14.0502 10.9135C14.0257 10.4129 13.8095 9.94093 13.4465 9.59535L12.0674 11.0438C12.0585 11.0354 12.0532 11.0238 12.0526 11.0115L14.0502 10.9135ZM13.4465 9.59535C13.0836 9.24976 12.6016 9.05701 12.1004 9.05701V11.057C12.0881 11.057 12.0763 11.0523 12.0674 11.0438L13.4465 9.59535ZM12.1004 9.05701C11.5992 9.05701 11.1172 9.24976 10.7543 9.59535L12.1334 11.0438C12.1245 11.0523 12.1127 11.057 12.1004 11.057V9.05701ZM10.7543 9.59535C10.3913 9.94093 10.1751 10.4129 10.1506 10.9135L12.1482 11.0115C12.1476 11.0238 12.1423 11.0354 12.1334 11.0438L10.7543 9.59535ZM11.1494 9.9625H11.1482V11.9625H11.1494V9.9625Z",fill:"white",mask:"url(#path-1-inside-1)"}),(0,t.createElement)("path",{d:"M19.1668 10.0002C19.1668 12.4313 18.2011 14.7629 16.482 16.482C14.7629 18.2011 12.4313 19.1668 10.0002 19.1668C7.56901 19.1668 5.23743 18.2011 3.51835 16.482C1.79927 14.7629 0.833496 12.4313 0.833496 10.0002C0.833496 7.56901 1.79927 5.23743 3.51835 3.51835C5.23743 1.79927 7.56901 0.833496 10.0002 0.833496C12.4313 0.833496 14.7629 1.79927 16.482 3.51835C18.2011 5.23743 19.1668 7.56901 19.1668 10.0002ZM14.7806 8.66527C14.4196 8.66527 14.0908 8.80735 13.8502 9.03766C12.9323 8.3811 11.6731 7.95485 10.274 7.89985L10.8859 5.03412L12.8773 5.46037C12.8861 5.64632 12.9492 5.82561 13.0589 5.97602C13.1686 6.12643 13.32 6.24134 13.4943 6.30652C13.6687 6.3717 13.8584 6.38427 14.0398 6.34269C14.2213 6.3011 14.3865 6.20718 14.5151 6.07256C14.6437 5.93795 14.7299 5.76856 14.7631 5.5854C14.7963 5.40224 14.7751 5.21335 14.702 5.04216C14.6288 4.87097 14.5071 4.72499 14.3518 4.62234C14.1965 4.51968 14.0145 4.46485 13.8284 4.46464C13.6503 4.46526 13.476 4.51586 13.3253 4.61066C13.1746 4.70546 13.0535 4.84067 12.9759 5.00089L10.7553 4.5311C10.7254 4.52466 10.6945 4.52418 10.6644 4.52968C10.6343 4.53519 10.6056 4.54657 10.58 4.56318C10.5532 4.57989 10.5305 4.60232 10.5134 4.62888C10.4964 4.65543 10.4854 4.68543 10.4814 4.71672L9.80308 7.91131C8.38225 7.95485 7.1012 8.3811 6.17079 9.04797C5.93016 8.81881 5.60245 8.67672 5.24266 8.67672C4.93753 8.67627 4.64149 8.78055 4.404 8.97213C4.16651 9.16371 4.00196 9.43099 3.93784 9.72931C3.87373 10.0276 3.91393 10.3389 4.05173 10.6112C4.18953 10.8834 4.41658 11.1001 4.69495 11.2251C4.67204 11.3568 4.66173 11.4886 4.66173 11.6295C4.66173 13.6863 7.05766 15.3604 10.0116 15.3604C12.9644 15.3604 15.3604 13.6978 15.3604 11.6295C15.3604 11.4989 15.3489 11.3568 15.3271 11.2251C15.7866 11.0177 16.1155 10.5467 16.1155 10.0002C16.1155 9.25537 15.5139 8.66527 14.7806 8.66527Z",fill:"white"})),va=function(e){let{children:i,setModalStatus:s,className:n}=e;return(0,t.createElement)("div",{className:`wheeloflife-modal ${n}`},(0,t.createElement)("div",{className:"wheeloflife-modal-container"},(0,t.createElement)("button",{type:"button",className:"modal-close-btn",onClick:()=>s(!1)},(0,t.createElement)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M13 1L1 13",stroke:"#A3AABF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.createElement)("path",{d:"M1 1L13 13",stroke:"#A3AABF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),i))},wa=window.wp.i18n,ka=window.wp.apiFetch;var Ca=i.n(ka),Ma=i(8901),Sa=i.n(Ma);const La=function(e){var i,s,n,o;let{setModalStatus:a,getWheelReport:r,reportLink:l,reportTitle:h}=e;const[c,d]=(0,t.useState)(!1),[u,f]=(0,t.useState)({}),[g,p]=(0,t.useState)(null),[m,b]=(0,t.useState)(""),[x,_]=(0,t.useState)("");return(0,t.useEffect)((()=>{let t=new FormData;t.append("action","getSocialShare"),t.append("security",wolVariablesFrontend.ajax_nonce),Ca()({url:wolVariablesFrontend.ajax_url,method:"POST",body:t}).then((t=>{!0===t.success&&""!=t.data&&f(JSON.parse(t.data))})),r(),Sa().options.positionClass="toast-bottom-full-width",Sa().options.timeOut="5000"}),[]),(0,t.useEffect)((()=>{p({facebookShare:`https://www.facebook.com/sharer.php?u=${l}`,twitterShare:`https://twitter.com/intent/tweet?text=${h} ${l}`,linkedInShare:`https://www.linkedin.com/shareArticle?mini=true&url=${l}&title=${h}`,redditShare:`http://www.reddit.com/submit?url=${l}&title=${h}`})}),[l,h]),(0,t.createElement)(t.Fragment,null,l&&g&&u&&Object.keys(u)?.length>0&&(u.email||u.facebook||u.twitter||u.linkedIn||u.reddit)&&(0,t.createElement)("div",{className:"wheel-widget-inner"},u.email&&(0,t.createElement)("div",{className:"wheel-widget"},(0,t.createElement)("h2",{className:"widget-title"},(0,wa.__)("Get the report","wheel-of-life")),(0,t.createElement)("div",{className:"widget-content"},(0,t.createElement)("a",{type:"button",className:"wheeloflife-share-btn",onClick:()=>{d(!0), a(!0),!l&&r()}},(0,t.createElement)("i",null,(0,t.createElement)(ma,null)),(0,wa.__)("Email My Wheel","wheel-of-life")))),(u.facebook||u.twitter||u.linkedIn||u.reddit)&&(0,t.createElement)("div",{className:"wheel-widget"},(0,t.createElement)("h2",{className:"widget-title"},(0,wa.__)("Share the report","wheel-of-life")),(0,t.createElement)("div",{className:"widget-content"},u.facebook&&(0,t.createElement)("a",{type:"button",className:"wheeloflife-share-btn is-facebook",href:null!==(i=g.facebookShare)&&void 0!==i?i:"#",rel:"nofollow noopener",target:"_blank"},(0,t.createElement)("i",null,(0,t.createElement)(ba,null))),u.twitter&&(0,t.createElement)("a",{type:"button",className:"wheeloflife-share-btn is-twitter",href:null!==(s=g.twitterShare)&&void 0!==s?s:"#",rel:"nofollow noopener",target:"_blank"},(0,t.createElement)("i",null,(0,t.createElement)(xa,null))),u.linkedIn&&(0,t.createElement)("a",{type:"button",className:"wheeloflife-share-btn is-linkedin",href:null!==(n=g.linkedInShare)&&void 0!==n?n:"#",rel:"nofollow noopener",target:"_blank"},(0,t.createElement)("i",null,(0,t.createElement)(_a,null))),u.reddit&&(0,t.createElement)("a",{type:"button",className:"wheeloflife-share-btn is-reddit",href:null!==(o=g.redditShare)&&void 0!==o?o:"#",rel:"nofollow noopener",target:"_blank"},(0,t.createElement)("i",null,(0,t.createElement)(ya,null)))))),c&&(0,t.createElement)(va,{setModalStatus:d,className:"wheeloflife-share-modal"},(0,t.createElement)("div",{className:"wheeloflife-modal-header"},(0,t.createElement)("h2",{className:"wheeloflife-modal-title"},(0,wa.__)("Email my Wheel","wheel-of-life"))),(0,t.createElement)("div",{className:"wheeloflife-modal-body"},(0,t.createElement)("p",null,(0,wa.__)("Please enter the email address where you would like to send your assessment result:","wheel-of-life")),(0,t.createElement)("p",null,(0,t.createElement)("input",{value:x,type:"text",placeholder:(0,wa.__)("Enter your full name","wheel-of-life"),onChange:t=>{_(t.target.value)}})),(0,t.createElement)("p",null,(0,t.createElement)("input",{id:"wheeloflife-send-to-email",type:"email",placeholder:(0,wa.__)("Enter your email","wheel-of-life"),onChange:t=>b(t.target.value)}))),(0,t.createElement)("div",{className:"wheeloflife-modal-footer"},(0,t.createElement)("button",{type:"button",className:"wheeloflife-btn is-tertiary is-small",onClick:()=>d(!1)},(0,wa.__)("Cancel","wheel-of-life")),(0,t.createElement)("button",{type:"button",className:"wheeloflife-btn is-primary is-small",onClick:()=>(()=>{let t=null!=m?m:jQuery("input#wheeloflife-send-to-email").val();if(""==t)return void alert((0,wa.__)("No email supplied. Please enter valid email.","wheel-of-life"));let e=null!=l?l:"",i=new FormData;i.append("action","sendMyWheelEmail"),i.append("security",wolVariablesFrontend.ajax_nonce),i.append("reportLink",e),i.append("toEmail",t),i.append("fullName",x),Ca()({url:wolVariablesFrontend.ajax_url,method:"POST",body:i}).then((t=>{!0===t.success?Sa().success(t.data):Sa().error(t.data)}))})(),disabled:x.length<=0||!m.match(/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/g)},(0,wa.__)("Send","wheel-of-life")))))},Ea=()=>(0,t.createElement)("svg",{width:"182",height:"316",viewBox:"0 0 182 316",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M174.585 173.644L38.71 309.514C30.0667 318.162 16.0531 318.162 7.41394 309.514C-1.22587 300.875 -1.22587 286.862 7.41394 278.223L127.643 157.998L7.41743 37.7771C-1.22238 29.1338 -1.22238 15.1223 7.41743 6.48247C16.0572 -2.16082 30.0702 -2.16082 38.7135 6.48247L174.589 142.355C178.909 146.677 181.066 152.336 181.066 157.997C181.066 163.661 178.904 169.324 174.585 173.644Z",fill:"black"})),Pa=window.wp.hooks,Da=window.wp.url,Oa={id:"htmlLegend",afterUpdate(t,e,i){const s=((t,e)=>{const i=document.getElementById(e);let s=i.querySelector("ul");return s||(s=document.createElement("ul"),s.style.display="flex",s.style.flexWrap="wrap",s.style.margin=0,s.style.padding=0,i.appendChild(s)),s})(0,i.containerID);for(;s.firstChild;)s.firstChild.remove();t.options.plugins.legend.labels.generateLabels(t).forEach((e=>{const i=document.createElement("li");i.style.alignItems="flex-start",i.style.cursor="pointer",i.style.display="flex",i.style.flexDirection="row",i.style.marginLeft="10px",i.style.paddingLeft="30px",i.style.position="relative",i.onclick=()=>{const{type:i}=t.config;"pie"===i||"doughnut"===i?t.toggleDataVisibility(e.index):t.setDatasetVisibility(e.datasetIndex,!t.isDatasetVisible(e.datasetIndex)),t.update()};const n=document.createElement("span");n.style.background=e.fillStyle,n.style.borderColor=e.strokeStyle,n.style.borderWidth=e.lineWidth+"px",n.style.display="inline-block",n.style.height="20px",n.style.marginRight="10px",n.style.width="20px",n.style.position="absolute",n.style.inset="5px 0 0",n.style.borderRadius="50%";const o=document.createElement("p");o.style.color=e.fontColor,o.style.margin=0,o.style.padding=0,o.style.textAlign="left",o.style.textDecoration=e.hidden?"line-through":"";const a=document.createTextNode(e.text);o.appendChild(a),i.appendChild(n),i.appendChild(o),s.appendChild(i)}))}},Aa=e=>{let{data:i,options:s}=e;const n={...s};return s.plugins.htmlLegend={containerID:"wheeloflife-legend-container"},s.plugins.legend={display:!1},(0,t.createElement)("div",{className:"wheeloflife_polar_chart_wrapper"},(0,t.createElement)("div",{id:"wheeloflife-legend-container"}),(0,t.createElement)(pa,{data:i,options:n,plugins:[Oa]}))},Ta=function(i){let{postMeta:s,wheelCTA:n,postBlocks:o,setModalStatus:a,wheelId:r}=i;const[l,h]=(0,t.useState)(1),[c,d]=(0,t.useState)(0),[u,f]=(0,t.useState)({}),[g,p]=(0,t.useState)([]),[m,b]=(0,t.useState)([]),[x,_]=(0,t.useState)(1),[y,v]=(0,t.useState)([]),[w,k]=(0,t.useState)([]),[C,M]=(0,t.useState)(null),[S,L]=(0,t.useState)(null),[E,P]=(0,t.useState)(null),[D,O]=(0,t.useState)(!1);(0,t.useEffect)((()=>{n?.page?.value&&Ca()({path:(0,Da.addQueryArgs)(`wp/v2/pages/${n.page.value}`),method:"GET"}).then((t=>{O(t.link)}))}),[]);var A=s.wheel_meta_range_max,T=s.wheel_meta_range_min,z=s.wheel_meta_input_type,R=s.wheel_chart_type?s.wheel_chart_type:"polar-chart";(0,t.useEffect)((()=>{let t=new FormData;t.append("action","getCTA"),t.append("mode","front"),Ca()({url:wolVariablesFrontend.ajax_url,method:"POST",body:t}).then((t=>{!0===t.success&&""!=t.data&&k(JSON.parse(t.data))}))}),[]);var I={responsive:!0,scales:{r:{ticks:{display:!1}}},borderWidth:"transparent",plugins:{legend:{position:"top",labels:{usePointStyle:!0,pointStyle:"circle",boxWidth:12,color:"#262933",font:{size:16,family:"Rubik"}},onClick:function(t,e,i){let s=o.find((t=>"wheeloflife/add-wheels"===t.blockName)).innerBlocks.map((t=>({label:t.attrs.label?.replace("&","&")?.replace("&","&"),link:t.attrs.link}))).find((t=>t.label===e.text)).link;s&&window.open(s,"_blank")},onHover:function(t){t.native.target.style.cursor="pointer"}}}};const F=(t,e,i)=>()=>{u[e]=t,f(u),d(c+1),h(l+1),g.push(e),m.push(t),y.push(i),p(g),b(m),v(y)};var V={labels:g,datasets:[{data:m,backgroundColor:y}]};const N=()=>{!function(t,e){let i=new FormData;i.append("chartData",JSON.stringify(t)),i.append("chartOptions",JSON.stringify(e)),i.append("wheelId",r),i.append("chartType",R),i.append("action","saveWheelReport"),i.append("security",wolVariablesFrontend.ajax_nonce),Ca()({url:wolVariablesFrontend.ajax_url,method:"POST",body:i}).then((t=>{!0===t.success&&(M(t.data.link),L(t.data.title),P(t.data.id))}))}((0,Pa.applyFilters)("wheeloflife_chart_data",{labels:g,datasets:[{data:m,backgroundColor:y}]}),(0,Pa.applyFilters)("wheeloflife_chart_options",I))};return(0,t.createElement)("form",{className:"wheeloflife-wheel-form"},""!=o&&null!=typeof o&&o.map((function(i,o){if("wheeloflife/add-wheels"===i.blockName){var r,f="",p="",b="#1DB53F",v=(0,wa.__)("Skip this area - it's not important to me","wheel-of-life"),k="";if(null!=i.innerBlocks[c]){let t=i.innerBlocks[c].attrs;f=t.label?.replace("&","&")?.replace("&","&"),p=t.desc,b=t?.lengendColor?t?.lengendColor:b,r=t.isRequired,v=t?.skipText?t?.skipText:v,k=t?.link?t?.link:k}var M=i.innerBlocks.length;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"wheeloflife-title-wrap"},(0,t.createElement)("h2",{className:"wheeloflife-title"},k?(0,t.createElement)("a",{href:k,target:"_blank"},f):f),(0,t.createElement)("p",{dangerouslySetInnerHTML:{__html:p}})),(0,t.createElement)("div",{className:"wheeloflife-rating"},l==c+1&&l<=M&&(0,t.createElement)(e,{setValue:u.label,label:f,handleFormValue:F,setRangeValue:_,rangeValue:x,options:{maxValue:A,minValue:T,name:f,type:z,bgColor:b}})),l<=M&&v&&!r&&(0,t.createElement)("button",{type:"button",className:"wheeloflife-btn is-tertiary is-skip-btn p-0",onClick:()=>{h(l+1),d(c+1)}},v),(0,t.createElement)("div",{className:"wheeloflife-life-wheel"},(0,t.createElement)("div",{className:"wheeloflife-life-wheel-wrapper"},(0,t.createElement)("div",{className:"life-wheel"},(0,t.createElement)(t.Fragment,null,R&&"polar-chart"===R&&(0,t.createElement)(Aa,{data:V,options:I}),(0,Pa.applyFilters)("wheeloflife_chart_types",null,s,g,m,y),l>M&&E&&(0,t.createElement)("div",{className:"submission-title",style:{marginTop:"16px"}},(0,wa.sprintf)((0,wa.__)("Wheel Submission No: #%d","wheel-of-life"),E)))),l>M&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"wheel-widget-area"},(0,t.createElement)(La,{setModalStatus:a,reportLink:C,reportTitle:S,getWheelReport:N}),(0,t.createElement)("div",{className:"wheeloflife-btn-wrap"},(0,t.createElement)("a",{type:"button",className:"wheeloflife-btn is-tertiary view-wheel-btn",href:null!=C?C:"#",target:"_blank"},(0,wa.__)("View My Wheel","wheel-of-life"),(0,t.createElement)(Ea,null)))))),l>M&&(0,t.createElement)(t.Fragment,null,"page-cta"===n?.ctaType&&(0,t.createElement)("div",{className:"wheeloflife-cta-container"},(0,t.createElement)("div",{className:`wheeloflife-cta-wrapper ${"image"===n.customizer.background.background_type&&"has-overlay"}`,style:{background:"image"===n.customizer.background.background_type?"url("+n.customizer.background.background_image.url+") "+100*n.customizer.background.background_image.x+"% "+100*n.customizer.background.background_image.y+"%":"color"===n.customizer.background.background_type?n.customizer.background.backgroundColor.default.color:n.customizer.background.gradient,backgroundSize:"image"===n.customizer.background.background_type&&n.customizer.background.background_size,backgroundAttachment:"image"===n.customizer.background.background_type&&n.customizer.background.background_attachment,padding:n.customizer.padding.top+" "+n.customizer.padding.right+" "+n.customizer.padding.bottom+" "+n.customizer.padding.left,margin:n.customizer.margin.top+" "+n.customizer.margin.right+" "+n.customizer.margin.bottom+" "+n.customizer.margin.left,"--cta-overlay-color":n.customizer.background.overlayColor.default.color},align:"flex-start"===n.customizer.alignment?"left":"flex-end"===n.customizer.alignment?"right":"center"},(0,t.createElement)("h2",{className:"wheeloflife-cta-title",style:{fontSize:n.customizer.fontSize,color:n.customizer.fontColor}},n.title),(0,t.createElement)("div",{className:"wheeloflife-cta-description",style:{fontSize:n.customizer.descFontSize,color:n.customizer.descFontColor},dangerouslySetInnerHTML:{__html:n.description}}),(0,t.createElement)("div",{className:"wheeloflife-cta-btns"},""!==n.btn_label&&""!==D&&(0,t.createElement)("a",{href:D,target:!0===n.openInTab?"_blank":"",rel:"noexternal noopener",className:"wheeloflife-btn primary",style:{fontSize:n.customizer.pbFontSize,color:n.customizer.pbfontColors.pbfontColor,background:n.customizer.pbBgColors.pbBgColor,borderRadius:n.customizer.pbBorderRadius},onMouseOver:t=>{t.target.style.color=n.customizer.pbfontColors.pbfontHoverColor,t.target.style.background=n.customizer.pbBgColors.pbBgHoverColor},onMouseOut:t=>{t.target.style.color=n.customizer.pbfontColors.pbfontColor,t.target.style.background=n.customizer.pbBgColors.pbBgColor}},n.btn_label)))),(!n||"global-cta"===n?.ctaType)&&""!=w.title&&(0,t.createElement)("div",{className:"wheeloflife-cta-container"},(0,t.createElement)("div",{className:`wheeloflife-cta-wrapper ${"image"===w.customizer.background.background_type&&"has-overlay"}`,style:{background:"image"===w.customizer.background.background_type?"url("+w.customizer.background.background_image.url+") "+100*w.customizer.background.background_image.x+"% "+100*w.customizer.background.background_image.y+"%":"color"===w.customizer.background.background_type?w.customizer.background.backgroundColor.default.color:w.customizer.background.gradient,backgroundSize:"image"===w.customizer.background.background_type&&w.customizer.background.background_size,backgroundAttachment:"image"===w.customizer.background.background_type&&w.customizer.background.background_attachment,padding:w.customizer.padding.top+" "+w.customizer.padding.right+" "+w.customizer.padding.bottom+" "+w.customizer.padding.left,margin:w.customizer.margin.top+" "+w.customizer.margin.right+" "+w.customizer.margin.bottom+" "+w.customizer.margin.left,"--cta-overlay-color":w.customizer.background.overlayColor.default.color},align:"flex-start"===w.customizer.alignment?"left":"flex-end"===w.customizer.alignment?"right":"center"},(0,t.createElement)("h2",{className:"wheeloflife-cta-title",style:{fontSize:w.customizer.fontSize,color:w.customizer.fontColor}},w.title),(0,t.createElement)("div",{className:"wheeloflife-cta-description",style:{fontSize:w.customizer.descFontSize,color:w.customizer.descFontColor},dangerouslySetInnerHTML:{__html:w.description}}),(0,t.createElement)("div",{className:"wheeloflife-cta-btns"},""!==w.buttonLabel&&""!==w.buttonLink&&(0,t.createElement)("a",{href:w.buttonLink,target:!0===w.openInTab?"_blank":"",rel:`noexternal noopener ${1==w.setLinkAttrNoFollow&&"nofollow"} ${1==w.setLinkAttrSponser&&"sponsored"}`,className:"wheeloflife-btn primary",style:{fontSize:w.customizer.pbFontSize,color:w.customizer.pbfontColors.pbfontColor,background:w.customizer.pbBgColors.pbBgColor,borderRadius:w.customizer.pbBorderRadius},onMouseOver:t=>{t.target.style.color=w.customizer.pbfontColors.pbfontHoverColor,t.target.style.background=w.customizer.pbBgColors.pbBgHoverColor},onMouseOut:t=>{t.target.style.color=w.customizer.pbfontColors.pbfontColor,t.target.style.background=w.customizer.pbBgColors.pbBgColor},download:1==w.setLinkAttrDownload},w.buttonLabel),""!==w.sbuttonLabel&&""!==w.sbuttonLink&&(0,t.createElement)("a",{href:w.sbuttonLink,target:!0===w.sbopenInTab?"_blank":"",rel:`noexternal noopener ${1==w.sbsetLinkAttrNoFollow&&"nofollow"} ${1==w.sbsetLinkAttrSponser&&"sponsored"}`,className:"wheeloflife-btn secondary",style:{fontSize:w.customizer.sbFontSize,color:w.customizer.sbfontColors.sbfontColor,background:w.customizer.sbBgColors.sbBgColor,borderRadius:w.customizer.sbBorderRadius},onMouseOver:t=>{t.target.style.color=w.customizer.sbfontColors.sbfontHoverColor,t.target.style.background=w.customizer.sbBgColors.sbBgHoverColor},onMouseOut:t=>{t.target.style.color=w.customizer.sbfontColors.sbfontColor,t.target.style.background=w.customizer.sbBgColors.sbBgColor},download:1==w.sbsetLinkAttrDownload},w.sbuttonLabel)))))),"slider"===z&&l<=M&&(0,t.createElement)("div",{className:"wheeloflife-btn-wrap"},(0,t.createElement)("button",{type:"button",className:"wheeloflife-btn is-primary is-small",onClick:()=>{F(x,f,b)(),_(T)}},(0,wa.__)("Next","wheel-of-life"))))}})))}})(),(wheeloflifeExports=void 0===wheeloflifeExports?{}:wheeloflifeExports).frontendComponents=s})();1 var wheeloflifeExports;(()=>{var t={8901:(t,e,i)=>{var s,n;i.amdD,s=[i(9567)],void 0===(n=function(t){return function(){var e,i,s,n=0,o="error",a="info",r="success",l="warning",h={clear:function(i,s){var n=g();e||c(n),d(i,n,s)||function(i){for(var s=e.children(),n=s.length-1;n>=0;n--)d(t(s[n]),i)}(n)},remove:function(i){var s=g();e||c(s),i&&0===t(":focus",i).length?p(i):e.children().length&&e.remove()},error:function(t,e,i){return f({type:o,iconClass:g().iconClasses.error,message:t,optionsOverride:i,title:e})},getContainer:c,info:function(t,e,i){return f({type:a,iconClass:g().iconClasses.info,message:t,optionsOverride:i,title:e})},options:{},subscribe:function(t){i=t},success:function(t,e,i){return f({type:r,iconClass:g().iconClasses.success,message:t,optionsOverride:i,title:e})},version:"2.1.4",warning:function(t,e,i){return f({type:l,iconClass:g().iconClasses.warning,message:t,optionsOverride:i,title:e})}};return h;function c(i,s){return i||(i=g()),(e=t("#"+i.containerId)).length||s&&(e=function(i){return(e=t("<div/>").attr("id",i.containerId).addClass(i.positionClass)).appendTo(t(i.target)),e}(i)),e}function d(e,i,s){var n=!(!s||!s.force)&&s.force;return!(!e||!n&&0!==t(":focus",e).length||(e[i.hideMethod]({duration:i.hideDuration,easing:i.hideEasing,complete:function(){p(e)}}),0))}function u(t){i&&i(t)}function f(i){var o=g(),a=i.iconClass||o.iconClass;if(void 0!==i.optionsOverride&&(o=t.extend(o,i.optionsOverride),a=i.optionsOverride.iconClass||a),!function(t,e){if(t.preventDuplicates){if(e.message===s)return!0;s=e.message}return!1}(o,i)){n++,e=c(o,!0);var r=null,l=t("<div/>"),h=t("<div/>"),d=t("<div/>"),f=t("<div/>"),m=t(o.closeHtml),b={intervalId:null,hideEta:null,maxHideTime:null},x={toastId:n,state:"visible",startTime:new Date,options:o,map:i};return i.iconClass&&l.addClass(o.toastClass).addClass(a),function(){if(i.title){var t=i.title;o.escapeHtml&&(t=_(i.title)),h.append(t).addClass(o.titleClass),l.append(h)}}(),function(){if(i.message){var t=i.message;o.escapeHtml&&(t=_(i.message)),d.append(t).addClass(o.messageClass),l.append(d)}}(),o.closeButton&&(m.addClass(o.closeClass).attr("role","button"),l.prepend(m)),o.progressBar&&(f.addClass(o.progressClass),l.prepend(f)),o.rtl&&l.addClass("rtl"),o.newestOnTop?e.prepend(l):e.append(l),function(){var t="";switch(i.iconClass){case"toast-success":case"toast-info":t="polite";break;default:t="assertive"}l.attr("aria-live",t)}(),l.hide(),l[o.showMethod]({duration:o.showDuration,easing:o.showEasing,complete:o.onShown}),o.timeOut>0&&(r=setTimeout(y,o.timeOut),b.maxHideTime=parseFloat(o.timeOut),b.hideEta=(new Date).getTime()+b.maxHideTime,o.progressBar&&(b.intervalId=setInterval((function(){var t=(b.hideEta-(new Date).getTime())/b.maxHideTime*100;f.width(t+"%")}),10))),o.closeOnHover&&l.hover((function(){clearTimeout(r),b.hideEta=0,l.stop(!0,!0)[o.showMethod]({duration:o.showDuration,easing:o.showEasing})}),(function(){(o.timeOut>0||o.extendedTimeOut>0)&&(r=setTimeout(y,o.extendedTimeOut),b.maxHideTime=parseFloat(o.extendedTimeOut),b.hideEta=(new Date).getTime()+b.maxHideTime)})),!o.onclick&&o.tapToDismiss&&l.click(y),o.closeButton&&m&&m.click((function(t){t.stopPropagation?t.stopPropagation():void 0!==t.cancelBubble&&!0!==t.cancelBubble&&(t.cancelBubble=!0),o.onCloseClick&&o.onCloseClick(t),y(!0)})),o.onclick&&l.click((function(t){o.onclick(t),y()})),u(x),o.debug&&console&&console.log(x),l}function _(t){return null==t&&(t=""),t.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function y(e){var i=e&&!1!==o.closeMethod?o.closeMethod:o.hideMethod,s=e&&!1!==o.closeDuration?o.closeDuration:o.hideDuration,n=e&&!1!==o.closeEasing?o.closeEasing:o.hideEasing;if(!t(":focus",l).length||e)return clearTimeout(b.intervalId),l[i]({duration:s,easing:n,complete:function(){p(l),clearTimeout(r),o.onHidden&&"hidden"!==x.state&&o.onHidden(),x.state="hidden",x.endTime=new Date,u(x)}})}}function g(){return t.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">×</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},h.options)}function p(t){e||(e=c()),t.is(":visible")||(t.remove(),t=null,0===e.children().length&&(e.remove(),s=void 0))}}()}.apply(e,s))||(t.exports=n)},9567:t=>{"use strict";t.exports=window.jQuery}},e={};function i(s){var n=e[s];if(void 0!==n)return n.exports;var o=e[s]={exports:{}};return t[s](o,o.exports,i),o.exports}i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var s in e)i.o(e,s)&&!i.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var s={};(()=>{"use strict";i.r(s),i.d(s,{WheelForm:()=>Ta,WheelModal:()=>va});const t=window.wp.element,e=e=>{let{setValue:i,label:s,handleFormValue:n,setRangeValue:o,rangeValue:a,options:r}=e,l=r.maxValue,h=r.minValue,c=r.name,d=r.bgColor;const u=r.type;if((0,t.useEffect)((()=>{o(h)}),[]),"likert"===u)for(var f=[],g=h;g<=l;g++)f.push((0,t.createElement)("li",null,(0,t.createElement)("input",{id:`${c}-rate-${g}`,type:"radio",name:c,checked:!1,onChange:n(g,s,d)}),(0,t.createElement)("label",{htmlFor:`${c}-rate-${g}`},g)));let p=l/2>=a,m=l/4*3>=a;return(0,t.createElement)(t.Fragment,null,"likert"===u&&(0,t.createElement)("div",{className:"wheeloflife-meter-likert-container"},(0,t.createElement)("div",{className:"meter-likert-wrapper"},(0,t.createElement)("ul",{className:"meter-likert-rating"},f))),"slider"===u&&(0,t.createElement)("div",{className:"wheeloflife-meter-slider-container"},(0,t.createElement)("div",{className:"meter-slider-wrapper"},(0,t.createElement)("input",{type:"range",min:h,max:l,defaultValue:h,name:c,onChange:t=>{o(t.target.value)},id:c}),(0,t.createElement)("div",{className:"meter-slider-track",style:p?{"--green":"red"}:m?{"--green":"#F9A94D"}:{"--green":"#1db53f"}},(0,t.createElement)("span",{className:"meter-slider-progress",style:{width:"calc("+a/l*100+"% + 5px)"}}),(0,t.createElement)("label",{htmlFor:c,className:"meter-slider-thumb",style:{left:a/l*100+"%"}}),(0,t.createElement)("span",{className:"range-number",style:{left:a/l*100+"%"}},a)))))};function n(){}const o=function(){let t=0;return function(){return t++}}();function a(t){return null==t}function r(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function l(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const h=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function c(t,e){return h(t)?t:e}function d(t,e){return void 0===t?e:t}const u=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function f(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function g(t,e,i,s){let n,o,a;if(r(t))if(o=t.length,s)for(n=o-1;n>=0;n--)e.call(i,t[n],n);else for(n=0;n<o;n++)e.call(i,t[n],n);else if(l(t))for(a=Object.keys(t),o=a.length,n=0;n<o;n++)e.call(i,t[a[n]],a[n])}function p(t,e){let i,s,n,o;if(!t||!e||t.length!==e.length)return!1;for(i=0,s=t.length;i<s;++i)if(n=t[i],o=e[i],n.datasetIndex!==o.datasetIndex||n.index!==o.index)return!1;return!0}function m(t){if(r(t))return t.map(m);if(l(t)){const e=Object.create(null),i=Object.keys(t),s=i.length;let n=0;for(;n<s;++n)e[i[n]]=m(t[i[n]]);return e}return t}function b(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function x(t,e,i,s){if(!b(t))return;const n=e[t],o=i[t];l(n)&&l(o)?_(n,o,s):e[t]=m(o)}function _(t,e,i){const s=r(e)?e:[e],n=s.length;if(!l(t))return t;const o=(i=i||{}).merger||x;for(let a=0;a<n;++a){if(!l(e=s[a]))continue;const n=Object.keys(e);for(let s=0,a=n.length;s<a;++s)o(n[s],t,e,i)}return t}function y(t,e){return _(t,e,{merger:v})}function v(t,e,i){if(!b(t))return;const s=e[t],n=i[t];l(s)&&l(n)?y(s,n):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=m(n))}const w={"":t=>t,x:t=>t.x,y:t=>t.y};function k(t,e){const i=w[e]||(w[e]=function(t){const e=function(t){const e=t.split("."),i=[];let s="";for(const t of e)s+=t,s.endsWith("\\")?s=s.slice(0,-1)+".":(i.push(s),s="");return i}(t);return t=>{for(const i of e){if(""===i)break;t=t&&t[i]}return t}}(e));return i(t)}function C(t){return t.charAt(0).toUpperCase()+t.slice(1)}const M=t=>void 0!==t,S=t=>"function"==typeof t,L=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0},E=Math.PI,P=2*E,D=P+E,O=Number.POSITIVE_INFINITY,A=E/180,T=E/2,z=E/4,R=2*E/3,I=Math.log10,F=Math.sign;function V(t){const e=Math.round(t);t=H(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(I(t))),s=t/i;return(s<=1?1:s<=2?2:s<=5?5:10)*i}function N(t){return!isNaN(parseFloat(t))&&isFinite(t)}function H(t,e,i){return Math.abs(t-e)<i}function B(t,e,i){let s,n,o;for(s=0,n=t.length;s<n;s++)o=t[s][i],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function W(t){return t*(E/180)}function j(t){return t*(180/E)}function $(t){if(!h(t))return;let e=1,i=0;for(;Math.round(t*e)/e!==t;)e*=10,i++;return i}function Z(t,e){const i=e.x-t.x,s=e.y-t.y,n=Math.sqrt(i*i+s*s);let o=Math.atan2(s,i);return o<-.5*E&&(o+=P),{angle:o,distance:n}}function Y(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function U(t,e){return(t-e+D)%P-E}function X(t){return(t%P+P)%P}function q(t,e,i,s){const n=X(t),o=X(e),a=X(i),r=X(o-n),l=X(a-n),h=X(n-o),c=X(n-a);return n===o||n===a||s&&o===a||r>l&&h<c}function K(t,e,i){return Math.max(e,Math.min(i,t))}function G(t,e,i,s=1e-6){return t>=Math.min(e,i)-s&&t<=Math.max(e,i)+s}function J(t,e,i){i=i||(i=>t[i]<e);let s,n=t.length-1,o=0;for(;n-o>1;)s=o+n>>1,i(s)?o=s:n=s;return{lo:o,hi:n}}const Q=(t,e,i,s)=>J(t,i,s?s=>t[s][e]<=i:s=>t[s][e]<i),tt=(t,e,i)=>J(t,i,(s=>t[s][e]>=i)),et=["push","pop","shift","splice","unshift"];function it(t,e){const i=t._chartjs;if(!i)return;const s=i.listeners,n=s.indexOf(e);-1!==n&&s.splice(n,1),s.length>0||(et.forEach((e=>{delete t[e]})),delete t._chartjs)}function st(t){const e=new Set;let i,s;for(i=0,s=t.length;i<s;++i)e.add(t[i]);return e.size===s?t:Array.from(e)}const nt="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function ot(t,e,i){const s=i||(t=>Array.prototype.slice.call(t));let n=!1,o=[];return function(...i){o=s(i),n||(n=!0,nt.call(window,(()=>{n=!1,t.apply(e,o)})))}}const at=t=>"start"===t?"left":"end"===t?"right":"center",rt=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2;function lt(t,e,i){const s=e.length;let n=0,o=s;if(t._sorted){const{iScale:a,_parsed:r}=t,l=a.axis,{min:h,max:c,minDefined:d,maxDefined:u}=a.getUserBounds();d&&(n=K(Math.min(Q(r,a.axis,h).lo,i?s:Q(e,l,a.getPixelForValue(h)).lo),0,s-1)),o=u?K(Math.max(Q(r,a.axis,c,!0).hi+1,i?0:Q(e,l,a.getPixelForValue(c),!0).hi+1),n,s)-n:s-n}return{start:n,count:o}}function ht(t){const{xScale:e,yScale:i,_scaleRanges:s}=t,n={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!s)return t._scaleRanges=n,!0;const o=s.xmin!==e.min||s.xmax!==e.max||s.ymin!==i.min||s.ymax!==i.max;return Object.assign(s,n),o}const ct=t=>0===t||1===t,dt=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*P/i),ut=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*P/i)+1,ft={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*T),easeOutSine:t=>Math.sin(t*T),easeInOutSine:t=>-.5*(Math.cos(E*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:dt(t,.075,.3),easeOutElastic:t=>ct(t)?t:ut(t,.075,.3),easeInOutElastic(t){const e=.1125;return ct(t)?t:t<.5?.5*dt(2*t,e,.45):.5+.5*ut(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-ft.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375},easeInOutBounce:t=>t<.5?.5*ft.easeInBounce(2*t):.5*ft.easeOutBounce(2*t-1)+.5};function gt(t){return t+.5|0}const pt=(t,e,i)=>Math.max(Math.min(t,i),e);function mt(t){return pt(gt(2.55*t),0,255)}function bt(t){return pt(gt(255*t),0,255)}function xt(t){return pt(gt(t/2.55)/100,0,1)}function _t(t){return pt(gt(100*t),0,100)}const yt={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},vt=[..."0123456789ABCDEF"],wt=t=>vt[15&t],kt=t=>vt[(240&t)>>4]+vt[15&t],Ct=t=>(240&t)>>4==(15&t),Mt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function St(t,e,i){const s=e*Math.min(i,1-i),n=(e,n=(e+t/30)%12)=>i-s*Math.max(Math.min(n-3,9-n,1),-1);return[n(0),n(8),n(4)]}function Lt(t,e,i){const s=(s,n=(s+t/60)%6)=>i-i*e*Math.max(Math.min(n,4-n,1),0);return[s(5),s(3),s(1)]}function Et(t,e,i){const s=St(t,1,.5);let n;for(e+i>1&&(n=1/(e+i),e*=n,i*=n),n=0;n<3;n++)s[n]*=1-e-i,s[n]+=e;return s}function Pt(t){const e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),o=Math.min(e,i,s),a=(n+o)/2;let r,l,h;return n!==o&&(h=n-o,l=a>.5?h/(2-n-o):h/(n+o),r=function(t,e,i,s,n){return t===n?(e-i)/s+(e<i?6:0):e===n?(i-t)/s+2:(t-e)/s+4}(e,i,s,h,n),r=60*r+.5),[0|r,l||0,a]}function Dt(t,e,i,s){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,s)).map(bt)}function Ot(t,e,i){return Dt(St,t,e,i)}function At(t){return(t%360+360)%360}const Tt={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"},zt={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;const It=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,Ft=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Vt=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Nt(t,e,i){if(t){let s=Pt(t);s[e]=Math.max(0,Math.min(s[e]+s[e]*i,0===e?360:1)),s=Ot(s),t.r=s[0],t.g=s[1],t.b=s[2]}}function Ht(t,e){return t?Object.assign(e||{},t):t}function Bt(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=bt(t[3]))):(e=Ht(t,{r:0,g:0,b:0,a:1})).a=bt(e.a),e}function Wt(t){return"r"===t.charAt(0)?function(t){const e=It.exec(t);let i,s,n,o=255;if(e){if(e[7]!==i){const t=+e[7];o=e[8]?mt(t):pt(255*t,0,255)}return i=+e[1],s=+e[3],n=+e[5],i=255&(e[2]?mt(i):pt(i,0,255)),s=255&(e[4]?mt(s):pt(s,0,255)),n=255&(e[6]?mt(n):pt(n,0,255)),{r:i,g:s,b:n,a:o}}}(t):function(t){const e=Mt.exec(t);let i,s=255;if(!e)return;e[5]!==i&&(s=e[6]?mt(+e[5]):bt(+e[5]));const n=At(+e[2]),o=+e[3]/100,a=+e[4]/100;return i="hwb"===e[1]?function(t,e,i){return Dt(Et,t,e,i)}(n,o,a):"hsv"===e[1]?function(t,e,i){return Dt(Lt,t,e,i)}(n,o,a):Ot(n,o,a),{r:i[0],g:i[1],b:i[2],a:s}}(t)}class jt{constructor(t){if(t instanceof jt)return t;const e=typeof t;let i;var s,n,o;"object"===e?i=Bt(t):"string"===e&&(o=(s=t).length,"#"===s[0]&&(4===o||5===o?n={r:255&17*yt[s[1]],g:255&17*yt[s[2]],b:255&17*yt[s[3]],a:5===o?17*yt[s[4]]:255}:7!==o&&9!==o||(n={r:yt[s[1]]<<4|yt[s[2]],g:yt[s[3]]<<4|yt[s[4]],b:yt[s[5]]<<4|yt[s[6]],a:9===o?yt[s[7]]<<4|yt[s[8]]:255})),i=n||function(t){Rt||(Rt=function(){const t={},e=Object.keys(zt),i=Object.keys(Tt);let s,n,o,a,r;for(s=0;s<e.length;s++){for(a=r=e[s],n=0;n<i.length;n++)o=i[n],r=r.replace(o,Tt[o]);o=parseInt(zt[a],16),t[r]=[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}}(t)||Wt(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=Ht(this._rgb);return t&&(t.a=xt(t.a)),t}set rgb(t){this._rgb=Bt(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${xt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?(e=(t=>Ct(t.r)&&Ct(t.g)&&Ct(t.b)&&Ct(t.a))(t=this._rgb)?wt:kt,t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0):void 0;var t,e}hslString(){return this._valid?function(t){if(!t)return;const e=Pt(t),i=e[0],s=_t(e[1]),n=_t(e[2]);return t.a<255?`hsla(${i}, ${s}%, ${n}%, ${xt(t.a)})`:`hsl(${i}, ${s}%, ${n}%)`}(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,s=t.rgb;let n;const o=e===n?.5:e,a=2*o-1,r=i.a-s.a,l=((a*r==-1?a:(a+r)/(1+a*r))+1)/2;n=1-l,i.r=255&l*i.r+n*s.r+.5,i.g=255&l*i.g+n*s.g+.5,i.b=255&l*i.b+n*s.b+.5,i.a=o*i.a+(1-o)*s.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,i){const s=Vt(xt(t.r)),n=Vt(xt(t.g)),o=Vt(xt(t.b));return{r:bt(Ft(s+i*(Vt(xt(e.r))-s))),g:bt(Ft(n+i*(Vt(xt(e.g))-n))),b:bt(Ft(o+i*(Vt(xt(e.b))-o))),a:t.a+i*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new jt(this.rgb)}alpha(t){return this._rgb.a=bt(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=gt(.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 Nt(this._rgb,2,t),this}darken(t){return Nt(this._rgb,2,-t),this}saturate(t){return Nt(this._rgb,1,t),this}desaturate(t){return Nt(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=Pt(t);i[0]=At(i[0]+e),i=Ot(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}function $t(t){return new jt(t)}function Zt(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Yt(t){return Zt(t)?t:$t(t)}function Ut(t){return Zt(t)?t:$t(t).saturate(.5).darken(.1).hexString()}const Xt=Object.create(null),qt=Object.create(null);function Kt(t,e){if(!e)return t;const i=e.split(".");for(let e=0,s=i.length;e<s;++e){const s=i[e];t=t[s]||(t[s]=Object.create(null))}return t}function Gt(t,e,i){return"string"==typeof e?_(Kt(t,e),i):_(Kt(t,""),e)}var Jt=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,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return Gt(this,t,e)}get(t){return Kt(this,t)}describe(t,e){return Gt(qt,t,e)}override(t,e){return Gt(Xt,t,e)}route(t,e,i,s){const n=Kt(this,t),o=Kt(this,i),a="_"+e;Object.defineProperties(n,{[a]:{value:n[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=o[s];return l(t)?Object.assign({},e,t):d(t,e)},set(t){this[a]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Qt(t,e,i,s,n){let o=e[n];return o||(o=e[n]=t.measureText(n).width,i.push(n)),o>s&&(s=o),s}function te(t,e,i,s){let n=(s=s||{}).data=s.data||{},o=s.garbageCollect=s.garbageCollect||[];s.font!==e&&(n=s.data={},o=s.garbageCollect=[],s.font=e),t.save(),t.font=e;let a=0;const l=i.length;let h,c,d,u,f;for(h=0;h<l;h++)if(u=i[h],null!=u&&!0!==r(u))a=Qt(t,n,o,a,u);else if(r(u))for(c=0,d=u.length;c<d;c++)f=u[c],null==f||r(f)||(a=Qt(t,n,o,a,f));t.restore();const g=o.length/2;if(g>i.length){for(h=0;h<g;h++)delete n[o[h]];o.splice(0,g)}return a}function ee(t,e,i){const s=t.currentDevicePixelRatio,n=0!==i?Math.max(i/2,.5):0;return Math.round((e-n)*s)/s+n}function ie(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function se(t,e,i,s){ne(t,e,i,s,null)}function ne(t,e,i,s,n){let o,a,r,l,h,c;const d=e.pointStyle,u=e.rotation,f=e.radius;let g=(u||0)*A;if(d&&"object"==typeof d&&(o=d.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return t.save(),t.translate(i,s),t.rotate(g),t.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),void t.restore();if(!(isNaN(f)||f<=0)){switch(t.beginPath(),d){default:n?t.ellipse(i,s,n/2,f,0,0,P):t.arc(i,s,f,0,P),t.closePath();break;case"triangle":t.moveTo(i+Math.sin(g)*f,s-Math.cos(g)*f),g+=R,t.lineTo(i+Math.sin(g)*f,s-Math.cos(g)*f),g+=R,t.lineTo(i+Math.sin(g)*f,s-Math.cos(g)*f),t.closePath();break;case"rectRounded":h=.516*f,l=f-h,a=Math.cos(g+z)*l,r=Math.sin(g+z)*l,t.arc(i-a,s-r,h,g-E,g-T),t.arc(i+r,s-a,h,g-T,g),t.arc(i+a,s+r,h,g,g+T),t.arc(i-r,s+a,h,g+T,g+E),t.closePath();break;case"rect":if(!u){l=Math.SQRT1_2*f,c=n?n/2:l,t.rect(i-c,s-l,2*c,2*l);break}g+=z;case"rectRot":a=Math.cos(g)*f,r=Math.sin(g)*f,t.moveTo(i-a,s-r),t.lineTo(i+r,s-a),t.lineTo(i+a,s+r),t.lineTo(i-r,s+a),t.closePath();break;case"crossRot":g+=z;case"cross":a=Math.cos(g)*f,r=Math.sin(g)*f,t.moveTo(i-a,s-r),t.lineTo(i+a,s+r),t.moveTo(i+r,s-a),t.lineTo(i-r,s+a);break;case"star":a=Math.cos(g)*f,r=Math.sin(g)*f,t.moveTo(i-a,s-r),t.lineTo(i+a,s+r),t.moveTo(i+r,s-a),t.lineTo(i-r,s+a),g+=z,a=Math.cos(g)*f,r=Math.sin(g)*f,t.moveTo(i-a,s-r),t.lineTo(i+a,s+r),t.moveTo(i+r,s-a),t.lineTo(i-r,s+a);break;case"line":a=n?n/2:Math.cos(g)*f,r=Math.sin(g)*f,t.moveTo(i-a,s-r),t.lineTo(i+a,s+r);break;case"dash":t.moveTo(i,s),t.lineTo(i+Math.cos(g)*f,s+Math.sin(g)*f)}t.fill(),e.borderWidth>0&&t.stroke()}}function oe(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.x<e.right+i&&t.y>e.top-i&&t.y<e.bottom+i}function ae(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function re(t){t.restore()}function le(t,e,i,s,n){if(!e)return t.lineTo(i.x,i.y);if("middle"===n){const s=(e.x+i.x)/2;t.lineTo(s,e.y),t.lineTo(s,i.y)}else"after"===n!=!!s?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y);t.lineTo(i.x,i.y)}function he(t,e,i,s){if(!e)return t.lineTo(i.x,i.y);t.bezierCurveTo(s?e.cp1x:e.cp2x,s?e.cp1y:e.cp2y,s?i.cp2x:i.cp1x,s?i.cp2y:i.cp1y,i.x,i.y)}function ce(t,e,i,s,n,o={}){const l=r(e)?e:[e],h=o.strokeWidth>0&&""!==o.strokeColor;let c,d;for(t.save(),t.font=n.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),a(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<l.length;++c)d=l[c],h&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),a(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(d,i,s,o.maxWidth)),t.fillText(d,i,s,o.maxWidth),de(t,i,s,d,o),s+=n.lineHeight;t.restore()}function de(t,e,i,s,n){if(n.strikethrough||n.underline){const o=t.measureText(s),a=e-o.actualBoundingBoxLeft,r=e+o.actualBoundingBoxRight,l=i-o.actualBoundingBoxAscent,h=i+o.actualBoundingBoxDescent,c=n.strikethrough?(l+h)/2:h;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=n.decorationWidth||2,t.moveTo(a,c),t.lineTo(r,c),t.stroke()}}function ue(t,e){const{x:i,y:s,w:n,h:o,radius:a}=e;t.arc(i+a.topLeft,s+a.topLeft,a.topLeft,-T,E,!0),t.lineTo(i,s+o-a.bottomLeft),t.arc(i+a.bottomLeft,s+o-a.bottomLeft,a.bottomLeft,E,T,!0),t.lineTo(i+n-a.bottomRight,s+o),t.arc(i+n-a.bottomRight,s+o-a.bottomRight,a.bottomRight,T,0,!0),t.lineTo(i+n,s+a.topRight),t.arc(i+n-a.topRight,s+a.topRight,a.topRight,0,-T,!0),t.lineTo(i+a.topLeft,s)}const fe=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),ge=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function pe(t,e){const i=(""+t).match(fe);if(!i||"normal"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case"px":return t;case"%":t/=100}return e*t}const me=t=>+t||0;function be(t,e){const i={},s=l(e),n=s?Object.keys(e):e,o=l(t)?s?i=>d(t[i],t[e[i]]):e=>t[e]:()=>t;for(const t of n)i[t]=me(o(t));return i}function xe(t){return be(t,{top:"y",right:"x",bottom:"y",left:"x"})}function _e(t){return be(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ye(t){const e=xe(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function ve(t,e){t=t||{},e=e||Jt.font;let i=d(t.size,e.size);"string"==typeof i&&(i=parseInt(i,10));let s=d(t.style,e.style);s&&!(""+s).match(ge)&&(console.warn('Invalid font style specified: "'+s+'"'),s="");const n={family:d(t.family,e.family),lineHeight:pe(d(t.lineHeight,e.lineHeight),i),size:i,style:s,weight:d(t.weight,e.weight),string:""};return n.string=function(t){return!t||a(t.size)||a(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(n),n}function we(t,e,i,s){let n,o,a,l=!0;for(n=0,o=t.length;n<o;++n)if(a=t[n],void 0!==a&&(void 0!==e&&"function"==typeof a&&(a=a(e),l=!1),void 0!==i&&r(a)&&(a=a[i%a.length],l=!1),void 0!==a))return s&&!l&&(s.cacheable=!1),a}function ke(t,e){return Object.assign(Object.create(t),e)}function Ce(t,e=[""],i=t,s,n=(()=>t[0])){M(s)||(s=Re("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:s,_getTarget:n,override:n=>Ce([n,...t],e,i,s)};return new Proxy(o,{deleteProperty:(e,i)=>(delete e[i],delete e._keys,delete t[0][i],!0),get:(i,s)=>Pe(i,s,(()=>function(t,e,i,s){let n;for(const o of e)if(n=Re(Le(o,t),i),M(n))return Ee(t,n)?Te(i,s,t,n):n}(s,e,t,i))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Ie(t).includes(e),ownKeys:t=>Ie(t),set(t,e,i){const s=t._storage||(t._storage=n());return t[e]=s[e]=i,delete t._keys,!0}})}function Me(t,e,i,s){const n={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:Se(t,s),setContext:e=>Me(t,e,i,s),override:n=>Me(t.override(n),e,i,s)};return new Proxy(n,{deleteProperty:(e,i)=>(delete e[i],delete t[i],!0),get:(t,e,i)=>Pe(t,e,(()=>function(t,e,i){const{_proxy:s,_context:n,_subProxy:o,_descriptors:a}=t;let h=s[e];return S(h)&&a.isScriptable(e)&&(h=function(t,e,i,s){const{_proxy:n,_context:o,_subProxy:a,_stack:r}=i;if(r.has(t))throw new Error("Recursion detected: "+Array.from(r).join("->")+"->"+t);return r.add(t),e=e(o,a||s),r.delete(t),Ee(t,e)&&(e=Te(n._scopes,n,t,e)),e}(e,h,t,i)),r(h)&&h.length&&(h=function(t,e,i,s){const{_proxy:n,_context:o,_subProxy:a,_descriptors:r}=i;if(M(o.index)&&s(t))e=e[o.index%e.length];else if(l(e[0])){const i=e,s=n._scopes.filter((t=>t!==i));e=[];for(const l of i){const i=Te(s,n,t,l);e.push(Me(i,o,a&&a[t],r))}}return e}(e,h,t,a.isIndexable)),Ee(e,h)&&(h=Me(h,n,o&&o[e],a)),h}(t,e,i))),getOwnPropertyDescriptor:(e,i)=>e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,i)=>Reflect.has(t,i),ownKeys:()=>Reflect.ownKeys(t),set:(e,i,s)=>(t[i]=s,delete e[i],!0)})}function Se(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:s=e.indexable,_allKeys:n=e.allKeys}=t;return{allKeys:n,scriptable:i,indexable:s,isScriptable:S(i)?i:()=>i,isIndexable:S(s)?s:()=>s}}const Le=(t,e)=>t?t+C(e):e,Ee=(t,e)=>l(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Pe(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const s=i();return t[e]=s,s}function De(t,e,i){return S(t)?t(e,i):t}const Oe=(t,e)=>!0===t?e:"string"==typeof t?k(e,t):void 0;function Ae(t,e,i,s,n){for(const o of e){const e=Oe(i,o);if(e){t.add(e);const o=De(e._fallback,i,n);if(M(o)&&o!==i&&o!==s)return o}else if(!1===e&&M(s)&&i!==s)return null}return!1}function Te(t,e,i,s){const n=e._rootScopes,o=De(e._fallback,i,s),a=[...t,...n],h=new Set;h.add(s);let c=ze(h,a,i,o||i,s);return null!==c&&(!M(o)||o===i||(c=ze(h,a,o,c,s),null!==c))&&Ce(Array.from(h),[""],n,o,(()=>function(t,e,i){const s=t._getTarget();e in s||(s[e]={});const n=s[e];return r(n)&&l(i)?i:n}(e,i,s)))}function ze(t,e,i,s,n){for(;i;)i=Ae(t,e,i,s,n);return i}function Re(t,e){for(const i of e){if(!i)continue;const e=i[t];if(M(e))return e}}function Ie(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const i of t)for(const t of Object.keys(i).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function Fe(t,e,i,s){const{iScale:n}=t,{key:o="r"}=this._parsing,a=new Array(s);let r,l,h,c;for(r=0,l=s;r<l;++r)h=r+i,c=e[h],a[r]={r:n.parse(k(c,o),h)};return a}const Ve=Number.EPSILON||1e-14,Ne=(t,e)=>e<t.length&&!t[e].skip&&t[e],He=t=>"x"===t?"y":"x";function Be(t,e,i,s){const n=t.skip?e:t,o=e,a=i.skip?e:i,r=Y(o,n),l=Y(a,o);let h=r/(r+l),c=l/(r+l);h=isNaN(h)?0:h,c=isNaN(c)?0:c;const d=s*h,u=s*c;return{previous:{x:o.x-d*(a.x-n.x),y:o.y-d*(a.y-n.y)},next:{x:o.x+u*(a.x-n.x),y:o.y+u*(a.y-n.y)}}}function We(t,e,i){return Math.max(Math.min(t,i),e)}function je(t,e,i,s,n){let o,a,r,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)!function(t,e="x"){const i=He(e),s=t.length,n=Array(s).fill(0),o=Array(s);let a,r,l,h=Ne(t,0);for(a=0;a<s;++a)if(r=l,l=h,h=Ne(t,a+1),l){if(h){const t=h[e]-l[e];n[a]=0!==t?(h[i]-l[i])/t:0}o[a]=r?h?F(n[a-1])!==F(n[a])?0:(n[a-1]+n[a])/2:n[a-1]:n[a]}!function(t,e,i){const s=t.length;let n,o,a,r,l,h=Ne(t,0);for(let c=0;c<s-1;++c)l=h,h=Ne(t,c+1),l&&h&&(H(e[c],0,Ve)?i[c]=i[c+1]=0:(n=i[c]/e[c],o=i[c+1]/e[c],r=Math.pow(n,2)+Math.pow(o,2),r<=9||(a=3/Math.sqrt(r),i[c]=n*a*e[c],i[c+1]=o*a*e[c])))}(t,n,o),function(t,e,i="x"){const s=He(i),n=t.length;let o,a,r,l=Ne(t,0);for(let h=0;h<n;++h){if(a=r,r=l,l=Ne(t,h+1),!r)continue;const n=r[i],c=r[s];a&&(o=(n-a[i])/3,r[`cp1${i}`]=n-o,r[`cp1${s}`]=c-o*e[h]),l&&(o=(l[i]-n)/3,r[`cp2${i}`]=n+o,r[`cp2${s}`]=c+o*e[h])}}(t,o,e)}(t,n);else{let i=s?t[t.length-1]:t[0];for(o=0,a=t.length;o<a;++o)r=t[o],l=Be(i,r,t[Math.min(o+1,a-(s?0:1))%a],e.tension),r.cp1x=l.previous.x,r.cp1y=l.previous.y,r.cp2x=l.next.x,r.cp2y=l.next.y,i=r}e.capBezierPoints&&function(t,e){let i,s,n,o,a,r=oe(t[0],e);for(i=0,s=t.length;i<s;++i)a=o,o=r,r=i<s-1&&oe(t[i+1],e),o&&(n=t[i],a&&(n.cp1x=We(n.cp1x,e.left,e.right),n.cp1y=We(n.cp1y,e.top,e.bottom)),r&&(n.cp2x=We(n.cp2x,e.left,e.right),n.cp2y=We(n.cp2y,e.top,e.bottom)))}(t,i)}function $e(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Ze(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function Ye(t,e,i){let s;return"string"==typeof t?(s=parseInt(t,10),-1!==t.indexOf("%")&&(s=s/100*e.parentNode[i])):s=t,s}const Ue=t=>window.getComputedStyle(t,null),Xe=["top","right","bottom","left"];function qe(t,e,i){const s={};i=i?"-"+i:"";for(let n=0;n<4;n++){const o=Xe[n];s[o]=parseFloat(t[e+"-"+o+i])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}const Ke=(t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot);function Ge(t,e){if("native"in t)return t;const{canvas:i,currentDevicePixelRatio:s}=e,n=Ue(i),o="border-box"===n.boxSizing,a=qe(n,"padding"),r=qe(n,"border","width"),{x:l,y:h,box:c}=function(t,e){const i=t.touches,s=i&&i.length?i[0]:t,{offsetX:n,offsetY:o}=s;let a,r,l=!1;if(Ke(n,o,t.target))a=n,r=o;else{const t=e.getBoundingClientRect();a=s.clientX-t.left,r=s.clientY-t.top,l=!0}return{x:a,y:r,box:l}}(t,i),d=a.left+(c&&r.left),u=a.top+(c&&r.top);let{width:f,height:g}=e;return o&&(f-=a.width+r.width,g-=a.height+r.height),{x:Math.round((l-d)/f*i.width/s),y:Math.round((h-u)/g*i.height/s)}}const Je=t=>Math.round(10*t)/10;function Qe(t,e,i){const s=e||1,n=Math.floor(t.height*s),o=Math.floor(t.width*s);t.height=n/s,t.width=o/s;const a=t.canvas;return a.style&&(i||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==s||a.height!==n||a.width!==o)&&(t.currentDevicePixelRatio=s,a.height=n,a.width=o,t.ctx.setTransform(s,0,0,s,0,0),!0)}const ti=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 ei(t,e){const i=function(t,e){return Ue(t).getPropertyValue(e)}(t,e),s=i&&i.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function ii(t,e,i,s){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function si(t,e,i,s){return{x:t.x+i*(e.x-t.x),y:"middle"===s?i<.5?t.y:e.y:"after"===s?i<1?t.y:e.y:i>0?e.y:t.y}}function ni(t,e,i,s){const n={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},a=ii(t,n,i),r=ii(n,o,i),l=ii(o,e,i),h=ii(a,r,i),c=ii(r,l,i);return ii(h,c,i)}const oi=new Map;function ai(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let s=oi.get(i);return s||(s=new Intl.NumberFormat(t,e),oi.set(i,s)),s}(e,i).format(t)}const ri=function(t,e){return{x:i=>t+t+e-i,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}},li=function(){return{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}};function hi(t,e,i){return t?ri(e,i):li()}function ci(t,e){let i,s;"ltr"!==e&&"rtl"!==e||(i=t.canvas.style,s=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=s)}function di(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function ui(t){return"angle"===t?{between:q,compare:U,normalize:X}:{between:G,compare:(t,e)=>t-e,normalize:t=>t}}function fi({start:t,end:e,count:i,loop:s,style:n}){return{start:t%i,end:e%i,loop:s&&(e-t+1)%i==0,style:n}}function gi(t,e,i){if(!i)return[t];const{property:s,start:n,end:o}=i,a=e.length,{compare:r,between:l,normalize:h}=ui(s),{start:c,end:d,loop:u,style:f}=function(t,e,i){const{property:s,start:n,end:o}=i,{between:a,normalize:r}=ui(s),l=e.length;let h,c,{start:d,end:u,loop:f}=t;if(f){for(d+=l,u+=l,h=0,c=l;h<c&&a(r(e[d%l][s]),n,o);++h)d--,u--;d%=l,u%=l}return u<d&&(u+=l),{start:d,end:u,loop:f,style:t.style}}(t,e,i),g=[];let p,m,b,x=!1,_=null;for(let t=c,i=c;t<=d;++t)m=e[t%a],m.skip||(p=h(m[s]),p!==b&&(x=l(p,n,o),null===_&&(x||l(n,b,p)&&0!==r(n,b))&&(_=0===r(p,n)?t:i),null!==_&&(!x||0===r(o,p)||l(o,b,p))&&(g.push(fi({start:_,end:t,loop:u,count:a,style:f})),_=null),i=t,b=p));return null!==_&&g.push(fi({start:_,end:d,loop:u,count:a,style:f})),g}function pi(t,e){const i=[],s=t.segments;for(let n=0;n<s.length;n++){const o=gi(s[n],t.points,e);o.length&&i.push(...o)}return i}function mi(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function bi(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}var xi=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,s){const n=e.listeners[s],o=e.duration;n.forEach((s=>s({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=nt.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((i,s)=>{if(!i.running||!i.items.length)return;const n=i.items;let o,a=n.length-1,r=!1;for(;a>=0;--a)o=n[a],o._active?(o._total>i.duration&&(i.duration=o._total),o.tick(t),r=!0):(n[a]=n[n.length-1],n.pop());r&&(s.draw(),this._notify(s,i,t,"progress")),n.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),e+=n.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}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 i=e.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const _i="transparent",yi={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const s=Yt(t||_i),n=s.valid&&Yt(e||_i);return n&&n.valid?n.mix(s,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class vi{constructor(t,e,i,s){const n=e[i];s=we([t.to,s,n,t.from]);const o=we([t.from,n,s]);this._active=!0,this._fn=t.fn||yi[t.type||typeof o],this._easing=ft[t.easing]||ft.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=i,this._from=o,this._to=s,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const s=this._target[this._prop],n=i-this._start,o=this._duration-n;this._start=i,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=n,this._loop=!!t.loop,this._to=we([t.to,e,s,t.from]),this._from=we([t.from,s,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,s=this._prop,n=this._from,o=this._loop,a=this._to;let r;if(this._active=n!==a&&(o||e<i),!this._active)return this._target[s]=a,void this._notify(!0);e<0?this._target[s]=n:(r=e/i%2,r=o&&r>1?2-r:r,r=this._easing(Math.min(1,Math.max(0,r))),this._target[s]=this._fn(n,a,r))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,i)=>{t.push({res:e,rej:i})}))}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let t=0;t<i.length;t++)i[t][e]()}}Jt.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 wi=Object.keys(Jt.animation);Jt.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),Jt.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),Jt.describe("animations",{_fallback:"animation"}),Jt.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 ki{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!l(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach((i=>{const s=t[i];if(!l(s))return;const n={};for(const t of wi)n[t]=s[t];(r(s.properties)&&s.properties||[i]).forEach((t=>{t!==i&&e.has(t)||e.set(t,n)}))}))}_animateOptions(t,e){const i=e.options,s=function(t,e){if(!e)return;let i=t.options;if(i)return i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}})),i;t.options=e}(t,i);if(!s)return[];const n=this._createAnimations(s,i);return i.$shared&&function(t,e){const i=[],s=Object.keys(e);for(let e=0;e<s.length;e++){const n=t[s[e]];n&&n.active()&&i.push(n.wait())}return Promise.all(i)}(t.options.$animations,i).then((()=>{t.options=i}),(()=>{})),n}_createAnimations(t,e){const i=this._properties,s=[],n=t.$animations||(t.$animations={}),o=Object.keys(e),a=Date.now();let r;for(r=o.length-1;r>=0;--r){const l=o[r];if("$"===l.charAt(0))continue;if("options"===l){s.push(...this._animateOptions(t,e));continue}const h=e[l];let c=n[l];const d=i.get(l);if(c){if(d&&c.active()){c.update(d,h,a);continue}c.cancel()}d&&d.duration?(n[l]=c=new vi(d,t,l,h),s.push(c)):t[l]=h}return s}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(xi.add(this._chart,i),!0):void 0}}function Ci(t,e){const i=t&&t.options||{},s=i.reverse,n=void 0===i.min?e:0,o=void 0===i.max?e:0;return{start:s?o:n,end:s?n:o}}function Mi(t,e){const i=[],s=t._getSortedDatasetMetas(e);let n,o;for(n=0,o=s.length;n<o;++n)i.push(s[n].index);return i}function Si(t,e,i,s={}){const n=t.keys,o="single"===s.mode;let a,r,l,c;if(null!==e){for(a=0,r=n.length;a<r;++a){if(l=+n[a],l===i){if(s.all)continue;break}c=t.values[l],h(c)&&(o||0===e||F(e)===F(c))&&(e+=c)}return e}}function Li(t,e){const i=t&&t.options.stacked;return i||void 0===i&&void 0!==e.stack}function Ei(t,e,i){const s=t[e]||(t[e]={});return s[i]||(s[i]={})}function Pi(t,e,i,s){for(const n of e.getMatchingVisibleMetas(s).reverse()){const e=t[n.index];if(i&&e>0||!i&&e<0)return n.index}return null}function Di(t,e){const{chart:i,_cachedMeta:s}=t,n=i._stacks||(i._stacks={}),{iScale:o,vScale:a,index:r}=s,l=o.axis,h=a.axis,c=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(o,a,s),d=e.length;let u;for(let t=0;t<d;++t){const i=e[t],{[l]:o,[h]:d}=i;u=(i._stacks||(i._stacks={}))[h]=Ei(n,c,o),u[r]=d,u._top=Pi(u,a,!0,s.type),u._bottom=Pi(u,a,!1,s.type)}}function Oi(t,e){const i=t.scales;return Object.keys(i).filter((t=>i[t].axis===e)).shift()}function Ai(t,e){const i=t.controller.index,s=t.vScale&&t.vScale.axis;if(s){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[s]||void 0===e[s][i])return;delete e[s][i]}}}const Ti=t=>"reset"===t||"none"===t,zi=(t,e)=>e?t:Object.assign({},t);class Ri{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.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Li(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&Ai(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),s=(t,e,i,s)=>"x"===t?e:"r"===t?s:i,n=e.xAxisID=d(i.xAxisID,Oi(t,"x")),o=e.yAxisID=d(i.yAxisID,Oi(t,"y")),a=e.rAxisID=d(i.rAxisID,Oi(t,"r")),r=e.indexAxis,l=e.iAxisID=s(r,n,o,a),h=e.vAxisID=s(r,o,n,a);e.xScale=this.getScaleForId(n),e.yScale=this.getScaleForId(o),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&&it(this._data,this),t._stacked&&Ai(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(l(e))this._data=function(t){const e=Object.keys(t),i=new Array(e.length);let s,n,o;for(s=0,n=e.length;s<n;++s)o=e[s],i[s]={x:o,y:t[o]};return i}(e);else if(i!==e){if(i){it(i,this);const t=this._cachedMeta;Ai(t),t._parsed=[]}e&&Object.isExtensible(e)&&(this,(s=e)._chartjs?s._chartjs.listeners.push(this):(Object.defineProperty(s,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[this]}}),et.forEach((t=>{const e="_onData"+C(t),i=s[t];Object.defineProperty(s,t,{configurable:!0,enumerable:!1,value(...t){const n=i.apply(this,t);return s._chartjs.listeners.forEach((i=>{"function"==typeof i[e]&&i[e](...t)})),n}})})))),this._syncList=[],this._data=e}var s}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let s=!1;this._dataCheck();const n=e._stacked;e._stacked=Li(e.vScale,e),e.stack!==i.stack&&(s=!0,Ai(e),e.stack=i.stack),this._resyncElements(t),(s||n!==e._stacked)&&Di(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:s}=this,{iScale:n,_stacked:o}=i,a=n.axis;let h,c,d,u=0===t&&e===s.length||i._sorted,f=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=s,i._sorted=!0,d=s;else{d=r(s[t])?this.parseArrayData(i,s,t,e):l(s[t])?this.parseObjectData(i,s,t,e):this.parsePrimitiveData(i,s,t,e);const n=()=>null===c[a]||f&&c[a]<f[a];for(h=0;h<e;++h)i._parsed[h+t]=c=d[h],u&&(n()&&(u=!1),f=c);i._sorted=u}o&&Di(this,d)}parsePrimitiveData(t,e,i,s){const{iScale:n,vScale:o}=t,a=n.axis,r=o.axis,l=n.getLabels(),h=n===o,c=new Array(s);let d,u,f;for(d=0,u=s;d<u;++d)f=d+i,c[d]={[a]:h||n.parse(l[f],f),[r]:o.parse(e[f],f)};return c}parseArrayData(t,e,i,s){const{xScale:n,yScale:o}=t,a=new Array(s);let r,l,h,c;for(r=0,l=s;r<l;++r)h=r+i,c=e[h],a[r]={x:n.parse(c[0],h),y:o.parse(c[1],h)};return a}parseObjectData(t,e,i,s){const{xScale:n,yScale:o}=t,{xAxisKey:a="x",yAxisKey:r="y"}=this._parsing,l=new Array(s);let h,c,d,u;for(h=0,c=s;h<c;++h)d=h+i,u=e[d],l[h]={x:n.parse(k(u,a),d),y:o.parse(k(u,r),d)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){const s=this.chart,n=this._cachedMeta,o=e[t.axis];return Si({keys:Mi(s,!0),values:e._stacks[t.axis]},o,n.index,{mode:i})}updateRangeFromParsed(t,e,i,s){const n=i[e.axis];let o=null===n?NaN:n;const a=s&&i._stacks[e.axis];s&&a&&(s.values=a,o=Si(s,n,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const i=this._cachedMeta,s=i._parsed,n=i._sorted&&t===i.iScale,o=s.length,a=this._getOtherScale(t),r=((t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:Mi(i,!0),values:null})(e,i,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=function(t){const{min:e,max:i,minDefined:s,maxDefined:n}=t.getUserBounds();return{min:s?e:Number.NEGATIVE_INFINITY,max:n?i:Number.POSITIVE_INFINITY}}(a);let u,f;function g(){f=s[u];const e=f[a.axis];return!h(f[t.axis])||c>e||d<e}for(u=0;u<o&&(g()||(this.updateRangeFromParsed(l,t,f,r),!n));++u);if(n)for(u=o-1;u>=0;--u)if(!g()){this.updateRangeFromParsed(l,t,f,r);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let s,n,o;for(s=0,n=e.length;s<n;++s)o=e[s][t.axis],h(o)&&i.push(o);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,i=e.iScale,s=e.vScale,n=this.getParsed(t);return{label:i?""+i.getLabelForValue(n[i.axis]):"",value:s?""+s.getLabelForValue(n[s.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,i,s,n;return l(t)?(e=t.top,i=t.right,s=t.bottom,n=t.left):e=i=s=n=t,{top:e,right:i,bottom:s,left:n,disabled:!1===t}}(d(this.options.clip,function(t,e,i){if(!1===i)return!1;const s=Ci(t,i),n=Ci(e,i);return{top:n.end,right:s.end,bottom:n.start,left:s.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,i=this._cachedMeta,s=i.data||[],n=e.chartArea,o=[],a=this._drawStart||0,r=this._drawCount||s.length-a,l=this.options.drawActiveElementsOnTop;let h;for(i.dataset&&i.dataset.draw(t,n,a,r),h=a;h<a+r;++h){const e=s[h];e.hidden||(e.active&&l?o.push(e):e.draw(t,n))}for(h=0;h<o.length;++h)o[h].draw(t,n)}getStyle(t,e){const i=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,e,i){const s=this.getDataset();let n;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];n=e.$context||(e.$context=function(t,e,i){return ke(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:i,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),n.parsed=this.getParsed(t),n.raw=s.data[t],n.index=n.dataIndex=t}else n=this.$context||(this.$context=function(t,e){return ke(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),n.dataset=s,n.index=n.datasetIndex=this.index;return n.active=!!e,n.mode=i,n}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",i){const s="active"===e,n=this._cachedDataOpts,o=t+"-"+e,a=n[o],r=this.enableOptionSharing&&M(i);if(a)return zi(a,r);const l=this.chart.config,h=l.datasetElementScopeKeys(this._type,t),c=s?[`${t}Hover`,"hover",t,""]:[t,""],d=l.getOptionScopes(this.getDataset(),h),u=Object.keys(Jt.elements[t]),f=l.resolveNamedOptions(d,u,(()=>this.getContext(i,s)),c);return f.$shared&&(f.$shared=r,n[o]=Object.freeze(zi(f,r))),f}_resolveAnimations(t,e,i){const s=this.chart,n=this._cachedDataOpts,o=`animation-${e}`,a=n[o];if(a)return a;let r;if(!1!==s.options.animation){const s=this.chart.config,n=s.datasetAnimationScopeKeys(this._type,e),o=s.getOptionScopes(this.getDataset(),n);r=s.createResolver(o,this.getContext(t,i,e))}const l=new ki(s,r&&r.animations);return r&&r._cacheable&&(n[o]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Ti(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),s=this._sharedOptions,n=this.getSharedOptions(i),o=this.includeOptions(e,n)||n!==s;return this.updateSharedOptions(n,e,i),{sharedOptions:n,includeOptions:o}}updateElement(t,e,i,s){Ti(s)?Object.assign(t,i):this._resolveAnimations(e,s).update(t,i)}updateSharedOptions(t,e,i){t&&!Ti(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,s){t.active=s;const n=this.getStyle(e,s);this._resolveAnimations(e,i,s).update(t,{options:!s&&this.getSharedOptions(n)||n})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"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,i=this._cachedMeta.data;for(const[t,e,i]of this._syncList)this[t](e,i);this._syncList=[];const s=i.length,n=e.length,o=Math.min(n,s);o&&this.parse(0,o),n>s?this._insertElements(s,n-s,t):n<s&&this._removeElements(n,s-n)}_insertElements(t,e,i=!0){const s=this._cachedMeta,n=s.data,o=t+e;let a;const r=t=>{for(t.length+=e,a=t.length-1;a>=o;a--)t[a]=t[a-e]};for(r(n),a=t;a<o;++a)n[a]=new this.dataElementType;this._parsing&&r(s._parsed),this.parse(t,e),i&&this.updateElements(n,t,e,"reset")}updateElements(t,e,i,s){}_removeElements(t,e){const i=this._cachedMeta;if(this._parsing){const s=i._parsed.splice(t,e);i._stacked&&Ai(i,s)}i.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,i,s]=t;this[e](i,s)}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 i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Ii(t){const e=t.iScale,i=function(t,e){if(!t._cache.$bar){const i=t.getMatchingVisibleMetas(e);let s=[];for(let e=0,n=i.length;e<n;e++)s=s.concat(i[e].controller.getAllParsedValues(t));t._cache.$bar=st(s.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let s,n,o,a,r=e._length;const l=()=>{32767!==o&&-32768!==o&&(M(a)&&(r=Math.min(r,Math.abs(o-a)||r)),a=o)};for(s=0,n=i.length;s<n;++s)o=e.getPixelForValue(i[s]),l();for(a=void 0,s=0,n=e.ticks.length;s<n;++s)o=e.getPixelForTick(s),l();return r}function Fi(t,e,i,s){return r(t)?function(t,e,i,s){const n=i.parse(t[0],s),o=i.parse(t[1],s),a=Math.min(n,o),r=Math.max(n,o);let l=a,h=r;Math.abs(a)>Math.abs(r)&&(l=r,h=a),e[i.axis]=h,e._custom={barStart:l,barEnd:h,start:n,end:o,min:a,max:r}}(t,e,i,s):e[i.axis]=i.parse(t,s),e}function Vi(t,e,i,s){const n=t.iScale,o=t.vScale,a=n.getLabels(),r=n===o,l=[];let h,c,d,u;for(h=i,c=i+s;h<c;++h)u=e[h],d={},d[n.axis]=r||n.parse(a[h],h),l.push(Fi(u,d,o,h));return l}function Ni(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Hi(t,e,i,s){let n=e.borderSkipped;const o={};if(!n)return void(t.borderSkipped=o);if(!0===n)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:r,reverse:l,top:h,bottom:c}=function(t){let e,i,s,n,o;return t.horizontal?(e=t.base>t.x,i="left",s="right"):(e=t.base<t.y,i="bottom",s="top"),e?(n="end",o="start"):(n="start",o="end"),{start:i,end:s,reverse:e,top:n,bottom:o}}(t);"middle"===n&&i&&(t.enableBorderRadius=!0,(i._top||0)===s?n=h:(i._bottom||0)===s?n=c:(o[Bi(c,a,r,l)]=!0,n=h)),o[Bi(n,a,r,l)]=!0,t.borderSkipped=o}function Bi(t,e,i,s){var n,o,a;return s?(a=i,t=Wi(t=(n=t)===(o=e)?a:n===a?o:n,i,e)):t=Wi(t,e,i),t}function Wi(t,e,i){return"start"===t?e:"end"===t?i:t}function ji(t,{inflateAmount:e},i){t.inflateAmount="auto"===e?1===i?.33:0:e}Ri.defaults={},Ri.prototype.datasetElementType=null,Ri.prototype.dataElementType=null;class $i extends Ri{parsePrimitiveData(t,e,i,s){return Vi(t,e,i,s)}parseArrayData(t,e,i,s){return Vi(t,e,i,s)}parseObjectData(t,e,i,s){const{iScale:n,vScale:o}=t,{xAxisKey:a="x",yAxisKey:r="y"}=this._parsing,l="x"===n.axis?a:r,h="x"===o.axis?a:r,c=[];let d,u,f,g;for(d=i,u=i+s;d<u;++d)g=e[d],f={},f[n.axis]=n.parse(k(g,l),d),c.push(Fi(k(g,h),f,o,d));return c}updateRangeFromParsed(t,e,i,s){super.updateRangeFromParsed(t,e,i,s);const n=i._custom;n&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,n.min),t.max=Math.max(t.max,n.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:i,vScale:s}=e,n=this.getParsed(t),o=n._custom,a=Ni(o)?"["+o.start+", "+o.end+"]":""+s.getLabelForValue(n[s.axis]);return{label:""+i.getLabelForValue(n[i.axis]),value:a}}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,i,s){const n="reset"===s,{index:o,_cachedMeta:{vScale:r}}=this,l=r.getBasePixel(),h=r.isHorizontal(),c=this._getRuler(),{sharedOptions:d,includeOptions:u}=this._getSharedOptions(e,s);for(let f=e;f<e+i;f++){const e=this.getParsed(f),i=n||a(e[r.axis])?{base:l,head:l}:this._calculateBarValuePixels(f),g=this._calculateBarIndexPixels(f,c),p=(e._stacks||{})[r.axis],m={horizontal:h,base:i.base,enableBorderRadius:!p||Ni(e._custom)||o===p._top||o===p._bottom,x:h?i.head:g.center,y:h?g.center:i.head,height:h?g.size:Math.abs(i.size),width:h?Math.abs(i.size):g.size};u&&(m.options=d||this.resolveDataElementOptions(f,t[f].active?"active":s));const b=m.options||t[f].options;Hi(m,b,p,o),ji(m,b,c.ratio),this.updateElement(t[f],f,m,s)}}_getStacks(t,e){const{iScale:i}=this._cachedMeta,s=i.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),n=i.options.stacked,o=[],r=t=>{const i=t.controller.getParsed(e),s=i&&i[t.vScale.axis];if(a(s)||isNaN(s))return!0};for(const i of s)if((void 0===e||!r(i))&&((!1===n||-1===o.indexOf(i.stack)||void 0===n&&void 0===i.stack)&&o.push(i.stack),i.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const s=this._getStacks(t,i),n=void 0!==e?s.indexOf(e):-1;return-1===n?s.length-1:n}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,s=[];let n,o;for(n=0,o=e.data.length;n<o;++n)s.push(i.getPixelForValue(this.getParsed(n)[i.axis],n));const a=t.barThickness;return{min:a||Ii(e),pixels:s,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:i},options:{base:s,minBarLength:n}}=this,o=s||0,r=this.getParsed(t),l=r._custom,h=Ni(l);let c,d,u=r[e.axis],f=0,g=i?this.applyStack(e,r,i):u;g!==u&&(f=g-u,g=u),h&&(u=l.barStart,g=l.barEnd-l.barStart,0!==u&&F(u)!==F(l.barEnd)&&(f=0),f+=u);const p=a(s)||h?f:s;let m=e.getPixelForValue(p);if(c=this.chart.getDataVisibility(t)?e.getPixelForValue(f+g):m,d=c-m,Math.abs(d)<n){d=function(t,e,i){return 0!==t?F(t):(e.isHorizontal()?1:-1)*(e.min>=i?1:-1)}(d,e,o)*n,u===o&&(m-=d/2);const t=e.getPixelForDecimal(0),i=e.getPixelForDecimal(1),s=Math.min(t,i),a=Math.max(t,i);m=Math.max(Math.min(m,a),s),c=m+d}if(m===e.getPixelForValue(o)){const t=F(d)*e.getLineWidthForValue(o)/2;m+=t,d-=t}return{size:d,base:m,head:c,center:c+d/2}}_calculateBarIndexPixels(t,e){const i=e.scale,s=this.options,n=s.skipNull,o=d(s.maxBarThickness,1/0);let r,l;if(e.grouped){const i=n?this._getStackCount(t):e.stackCount,h="flex"===s.barThickness?function(t,e,i,s){const n=e.pixels,o=n[t];let a=t>0?n[t-1]:null,r=t<n.length-1?n[t+1]:null;const l=i.categoryPercentage;null===a&&(a=o-(null===r?e.end-e.start:r-o)),null===r&&(r=o+o-a);const h=o-(o-Math.min(a,r))/2*l;return{chunk:Math.abs(r-a)/2*l/s,ratio:i.barPercentage,start:h}}(t,e,s,i):function(t,e,i,s){const n=i.barThickness;let o,r;return a(n)?(o=e.min*i.categoryPercentage,r=i.barPercentage):(o=n*s,r=1),{chunk:o/s,ratio:r,start:e.pixels[t]-o/2}}(t,e,s,i),c=this._getStackIndex(this.index,this._cachedMeta.stack,n?t:void 0);r=h.start+h.chunk*c+h.chunk/2,l=Math.min(o,h.chunk*h.ratio)}else r=i.getPixelForValue(this.getParsed(t)[i.axis],t),l=Math.min(o,e.min*e.ratio);return{base:r-l/2,head:r+l/2,center:r,size:l}}draw(){const t=this._cachedMeta,e=t.vScale,i=t.data,s=i.length;let n=0;for(;n<s;++n)null!==this.getParsed(n)[e.axis]&&i[n].draw(this._ctx)}}$i.id="bar",$i.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},$i.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class Zi extends Ri{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,i,s){const n=super.parsePrimitiveData(t,e,i,s);for(let t=0;t<n.length;t++)n[t]._custom=this.resolveDataElementOptions(t+i).radius;return n}parseArrayData(t,e,i,s){const n=super.parseArrayData(t,e,i,s);for(let t=0;t<n.length;t++){const s=e[i+t];n[t]._custom=d(s[2],this.resolveDataElementOptions(t+i).radius)}return n}parseObjectData(t,e,i,s){const n=super.parseObjectData(t,e,i,s);for(let t=0;t<n.length;t++){const s=e[i+t];n[t]._custom=d(s&&s.r&&+s.r,this.resolveDataElementOptions(t+i).radius)}return n}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let i=t.length-1;i>=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:i,yScale:s}=e,n=this.getParsed(t),o=i.getLabelForValue(n.x),a=s.getLabelForValue(n.y),r=n._custom;return{label:e.label,value:"("+o+", "+a+(r?", "+r:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,s){const n="reset"===s,{iScale:o,vScale:a}=this._cachedMeta,{sharedOptions:r,includeOptions:l}=this._getSharedOptions(e,s),h=o.axis,c=a.axis;for(let d=e;d<e+i;d++){const e=t[d],i=!n&&this.getParsed(d),u={},f=u[h]=n?o.getPixelForDecimal(.5):o.getPixelForValue(i[h]),g=u[c]=n?a.getBasePixel():a.getPixelForValue(i[c]);u.skip=isNaN(f)||isNaN(g),l&&(u.options=r||this.resolveDataElementOptions(d,e.active?"active":s),n&&(u.options.radius=0)),this.updateElement(e,d,u,s)}}resolveDataElementOptions(t,e){const i=this.getParsed(t);let s=super.resolveDataElementOptions(t,e);s.$shared&&(s=Object.assign({},s,{$shared:!1}));const n=s.radius;return"active"!==e&&(s.radius=0),s.radius+=d(i&&i._custom,n),s}}Zi.id="bubble",Zi.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},Zi.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class Yi extends Ri{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 i=this.getDataset().data,s=this._cachedMeta;if(!1===this._parsing)s._parsed=i;else{let n,o,a=t=>+i[t];if(l(i[t])){const{key:t="value"}=this._parsing;a=e=>+k(i[e],t)}for(n=t,o=t+e;n<o;++n)s._parsed[n]=a(n)}}_getRotation(){return W(this.options.rotation-90)}_getCircumference(){return W(this.options.circumference)}_getRotationExtents(){let t=P,e=-P;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)){const s=this.chart.getDatasetMeta(i).controller,n=s._getRotation(),o=s._getCircumference();t=Math.min(t,n),e=Math.max(e,n+o)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:i}=e,s=this._cachedMeta,n=s.data,o=this.getMaxBorderWidth()+this.getMaxOffset(n)+this.options.spacing,a=Math.max((Math.min(i.width,i.height)-o)/2,0),r=Math.min((h=a,"string"==typeof(l=this.options.cutout)&&l.endsWith("%")?parseFloat(l)/100:l/h),1);var l,h;const c=this._getRingWeight(this.index),{circumference:d,rotation:f}=this._getRotationExtents(),{ratioX:g,ratioY:p,offsetX:m,offsetY:b}=function(t,e,i){let s=1,n=1,o=0,a=0;if(e<P){const r=t,l=r+e,h=Math.cos(r),c=Math.sin(r),d=Math.cos(l),u=Math.sin(l),f=(t,e,s)=>q(t,r,l,!0)?1:Math.max(e,e*i,s,s*i),g=(t,e,s)=>q(t,r,l,!0)?-1:Math.min(e,e*i,s,s*i),p=f(0,h,d),m=f(T,c,u),b=g(E,h,d),x=g(E+T,c,u);s=(p-b)/2,n=(m-x)/2,o=-(p+b)/2,a=-(m+x)/2}return{ratioX:s,ratioY:n,offsetX:o,offsetY:a}}(f,d,r),x=(i.width-o)/g,_=(i.height-o)/p,y=Math.max(Math.min(x,_)/2,0),v=u(this.options.radius,y),w=(v-Math.max(v*r,0))/this._getVisibleDatasetWeightTotal();this.offsetX=m*v,this.offsetY=b*v,s.total=this.calculateTotal(),this.outerRadius=v-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*c,0),this.updateElements(n,0,n.length,t)}_circumference(t,e){const i=this.options,s=this._cachedMeta,n=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===s._parsed[t]||s.data[t].hidden?0:this.calculateCircumference(s._parsed[t]*n/P)}updateElements(t,e,i,s){const n="reset"===s,o=this.chart,a=o.chartArea,r=o.options.animation,l=(a.left+a.right)/2,h=(a.top+a.bottom)/2,c=n&&r.animateScale,d=c?0:this.innerRadius,u=c?0:this.outerRadius,{sharedOptions:f,includeOptions:g}=this._getSharedOptions(e,s);let p,m=this._getRotation();for(p=0;p<e;++p)m+=this._circumference(p,n);for(p=e;p<e+i;++p){const e=this._circumference(p,n),i=t[p],o={x:l+this.offsetX,y:h+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:u,innerRadius:d};g&&(o.options=f||this.resolveDataElementOptions(p,i.active?"active":s)),m+=e,this.updateElement(i,p,o,s)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let i,s=0;for(i=0;i<e.length;i++){const n=t._parsed[i];null===n||isNaN(n)||!this.chart.getDataVisibility(i)||e[i].hidden||(s+=Math.abs(n))}return s}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?P*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,s=i.data.labels||[],n=ai(e._parsed[t],i.options.locale);return{label:s[t]||"",value:n}}getMaxBorderWidth(t){let e=0;const i=this.chart;let s,n,o,a,r;if(!t)for(s=0,n=i.data.datasets.length;s<n;++s)if(i.isDatasetVisible(s)){o=i.getDatasetMeta(s),t=o.data,a=o.controller;break}if(!t)return 0;for(s=0,n=t.length;s<n;++s)r=a.resolveDataElementOptions(s),"inner"!==r.borderAlign&&(e=Math.max(e,r.borderWidth||0,r.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let i=0,s=t.length;i<s;++i){const t=this.resolveDataElementOptions(i);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e}_getRingWeight(t){return Math.max(d(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Yi.id="doughnut",Yi.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"},Yi.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},Yi.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map(((e,s)=>{const n=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const i=": "+t.formattedValue;return r(e)?(e=e.slice(),e[0]+=i):e+=i,e}}}}};class Ui extends Ri{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:s=[],_dataset:n}=e,o=this.chart._animationsDisabled;let{start:a,count:r}=lt(e,s,o);this._drawStart=a,this._drawCount=r,ht(e)&&(a=0,r=s.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!n._decimated,i.points=s;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(i,void 0,{animated:!o,options:l},t),this.updateElements(s,a,r,t)}updateElements(t,e,i,s){const n="reset"===s,{iScale:o,vScale:r,_stacked:l,_dataset:h}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(e,s),u=o.axis,f=r.axis,{spanGaps:g,segment:p}=this.options,m=N(g)?g:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||n||"none"===s;let x=e>0&&this.getParsed(e-1);for(let g=e;g<e+i;++g){const e=t[g],i=this.getParsed(g),_=b?e:{},y=a(i[f]),v=_[u]=o.getPixelForValue(i[u],g),w=_[f]=n||y?r.getBasePixel():r.getPixelForValue(l?this.applyStack(r,i,l):i[f],g);_.skip=isNaN(v)||isNaN(w)||y,_.stop=g>0&&Math.abs(i[u]-x[u])>m,p&&(_.parsed=i,_.raw=h.data[g]),d&&(_.options=c||this.resolveDataElementOptions(g,e.active?"active":s)),b||this.updateElement(e,g,_,s),x=i}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,s=t.data||[];if(!s.length)return i;const n=s[0].size(this.resolveDataElementOptions(0)),o=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,n,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Ui.id="line",Ui.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},Ui.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Xi extends Ri{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,s=i.data.labels||[],n=ai(e._parsed[t].r,i.options.locale);return{label:s[t]||"",value:n}}parseObjectData(t,e,i,s){return Fe.bind(this)(t,e,i,s)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach(((t,i)=>{const s=this.getParsed(i).r;!isNaN(s)&&this.chart.getDataVisibility(i)&&(s<e.min&&(e.min=s),s>e.max&&(e.max=s))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,s=Math.min(e.right-e.left,e.bottom-e.top),n=Math.max(s/2,0),o=(n-Math.max(i.cutoutPercentage?n/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=n-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,i,s){const n="reset"===s,o=this.chart,a=o.options.animation,r=this._cachedMeta.rScale,l=r.xCenter,h=r.yCenter,c=r.getIndexAngle(0)-.5*E;let d,u=c;const f=360/this.countVisibleElements();for(d=0;d<e;++d)u+=this._computeAngle(d,s,f);for(d=e;d<e+i;d++){const e=t[d];let i=u,g=u+this._computeAngle(d,s,f),p=o.getDataVisibility(d)?r.getDistanceFromCenterForValue(this.getParsed(d).r):0;u=g,n&&(a.animateScale&&(p=0),a.animateRotate&&(i=g=c));const m={x:l,y:h,innerRadius:0,outerRadius:p,startAngle:i,endAngle:g,options:this.resolveDataElementOptions(d,e.active?"active":s)};this.updateElement(e,d,m,s)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach(((t,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++})),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?W(this.resolveDataElementOptions(t,e).angle||i):0}}Xi.id="polarArea",Xi.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},Xi.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map(((e,s)=>{const n=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.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 qi extends Yi{}qi.id="pie",qi.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class Ki extends Ri{getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,s){return Fe.bind(this)(t,e,i,s)}update(t){const e=this._cachedMeta,i=e.dataset,s=e.data||[],n=e.iScale.getLabels();if(i.points=s,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:n.length===s.length,options:e};this.updateElement(i,void 0,o,t)}this.updateElements(s,0,s.length,t)}updateElements(t,e,i,s){const n=this._cachedMeta.rScale,o="reset"===s;for(let a=e;a<e+i;a++){const e=t[a],i=this.resolveDataElementOptions(a,e.active?"active":s),r=n.getPointPositionForValue(a,this.getParsed(a).r),l=o?n.xCenter:r.x,h=o?n.yCenter:r.y,c={x:l,y:h,angle:r.angle,skip:isNaN(l)||isNaN(h),options:i};this.updateElement(e,a,c,s)}}}Ki.id="radar",Ki.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},Ki.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class Gi{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:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return N(this.x)&&N(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const s={};return t.forEach((t=>{s[t]=i[t]&&i[t].active()?i[t]._to:this[t]})),s}}Gi.defaults={},Gi.defaultRoutes=void 0;const Ji={values:t=>r(t)?t:""+t,numeric(t,e,i){if(0===t)return"0";const s=this.chart.options.locale;let n,o=t;if(i.length>1){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(n="scientific"),o=function(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t)),i}(t,i)}const a=I(Math.abs(o)),r=Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:n,minimumFractionDigits:r,maximumFractionDigits:r};return Object.assign(l,this.options.ticks.format),ai(t,s,l)},logarithmic(t,e,i){if(0===t)return"0";const s=t/Math.pow(10,Math.floor(I(t)));return 1===s||2===s||5===s?Ji.numeric.call(this,t,e,i):""}};var Qi={formatters:Ji};function ts(t,e,i,s,n){const o=d(s,0),a=Math.min(d(n,t.length),t.length);let r,l,h,c=0;for(i=Math.ceil(i),n&&(r=n-s,i=r/Math.floor(r/i)),h=o;h<0;)c++,h=Math.round(o+c*i);for(l=Math.max(o,0);l<a;l++)l===h&&(e.push(t[l]),c++,h=Math.round(o+c*i))}Jt.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:Qi.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Jt.route("scale.ticks","color","","color"),Jt.route("scale.grid","color","","borderColor"),Jt.route("scale.grid","borderColor","","borderColor"),Jt.route("scale.title","color","","color"),Jt.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),Jt.describe("scales",{_fallback:"scale"}),Jt.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const es=t=>"left"===t?"right":"right"===t?"left":t,is=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i;function ss(t,e){const i=[],s=t.length/e,n=t.length;let o=0;for(;o<n;o+=s)i.push(t[Math.floor(o)]);return i}function ns(t,e,i){const s=t.ticks.length,n=Math.min(e,s-1),o=t._startPixel,a=t._endPixel,r=1e-6;let l,h=t.getPixelForTick(n);if(!(i&&(l=1===s?Math.max(h-o,a-h):0===e?(t.getPixelForTick(1)-h)/2:(h-t.getPixelForTick(n-1))/2,h+=n<e?l:-l,h<o-r||h>a+r)))return h}function os(t){return t.drawTicks?t.tickLength:0}function as(t,e){if(!t.display)return 0;const i=ve(t.font,e),s=ye(t.padding);return(r(t.text)?t.text.length:1)*i.lineHeight+s.height}function rs(t,e,i){let s=at(t);return(i&&"right"!==e||!i&&"right"===e)&&(s=es(s)),s}class ls extends Gi{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:i,_suggestedMax:s}=this;return t=c(t,Number.POSITIVE_INFINITY),e=c(e,Number.NEGATIVE_INFINITY),i=c(i,Number.POSITIVE_INFINITY),s=c(s,Number.NEGATIVE_INFINITY),{min:c(t,i),max:c(e,s),minDefined:h(t),maxDefined:h(e)}}getMinMax(t){let e,{min:i,max:s,minDefined:n,maxDefined:o}=this.getUserBounds();if(n&&o)return{min:i,max:s};const a=this.getMatchingVisibleMetas();for(let r=0,l=a.length;r<l;++r)e=a[r].controller.getMinMax(this,t),n||(i=Math.min(i,e.min)),o||(s=Math.max(s,e.max));return i=o&&i>s?s:i,s=n&&i>s?i:s,{min:c(i,c(s,i)),max:c(s,c(i,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(){f(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:s,grace:n,ticks:o}=this.options,r=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,i){const{min:s,max:n}=t,o=u(e,(n-s)/2),a=(t,e)=>i&&0===t?0:t+e;return{min:a(s,-Math.abs(o)),max:a(n,o)}}(this,n,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=r<this.ticks.length;this._convertTicksToLabels(l?ss(this.ticks,r):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=function(t,e){const i=t.options.ticks,s=i.maxTicksLimit||function(t){const e=t.options.offset,i=t._tickSize(),s=t._length/i+(e?0:1),n=t._maxLength/i;return Math.floor(Math.min(s,n))}(t),n=i.major.enabled?function(t){const e=[];let i,s;for(i=0,s=t.length;i<s;i++)t[i].major&&e.push(i);return e}(e):[],o=n.length,r=n[0],l=n[o-1],h=[];if(o>s)return function(t,e,i,s){let n,o=0,a=i[0];for(s=Math.ceil(s),n=0;n<t.length;n++)n===a&&(e.push(t[n]),o++,a=i[o*s])}(e,h,n,o/s),h;const c=function(t,e,i){const s=function(t){const e=t.length;let i,s;if(e<2)return!1;for(s=t[0],i=1;i<e;++i)if(t[i]-t[i-1]!==s)return!1;return s}(t),n=e.length/i;if(!s)return Math.max(n,1);const o=function(t){const e=[],i=Math.sqrt(t);let s;for(s=1;s<i;s++)t%s==0&&(e.push(s),e.push(t/s));return i===(0|i)&&e.push(i),e.sort(((t,e)=>t-e)).pop(),e}(s);for(let t=0,e=o.length-1;t<e;t++){const e=o[t];if(e>n)return e}return Math.max(n,1)}(n,e,s);if(o>0){let t,i;const s=o>1?Math.round((l-r)/(o-1)):null;for(ts(e,h,c,a(s)?0:r-s,r),t=0,i=o-1;t<i;t++)ts(e,h,c,n[t],n[t+1]);return ts(e,h,c,l,a(s)?e.length:l+s),h}return ts(e,h,c),h}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,i=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,i=!i),this._startPixel=t,this._endPixel=e,this._reversePixels=i,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){f(this.options.afterUpdate,[this])}beforeSetDimensions(){f(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(){f(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),f(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){f(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let i,s,n;for(i=0,s=t.length;i<s;i++)n=t[i],n.label=f(e.callback,[n.value,i,t],this)}afterTickToLabelConversion(){f(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){f(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,i=this.ticks.length,s=e.minRotation||0,n=e.maxRotation;let o,a,r,l=s;if(!this._isVisible()||!e.display||s>=n||i<=1||!this.isHorizontal())return void(this.labelRotation=s);const h=this._getLabelSizes(),c=h.widest.width,d=h.highest.height,u=K(this.chart.width-c,0,this.maxWidth);o=t.offset?this.maxWidth/i:u/(i-1),c+6>o&&(o=u/(i-(t.offset?.5:1)),a=this.maxHeight-os(t.grid)-e.padding-as(t.title,this.chart.options.font),r=Math.sqrt(c*c+d*d),l=j(Math.min(Math.asin(K((h.highest.height+6)/o,-1,1)),Math.asin(K(a/r,-1,1))-Math.asin(K(d/r,-1,1)))),l=Math.max(s,Math.min(n,l))),this.labelRotation=l}afterCalculateLabelRotation(){f(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){f(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:s,grid:n}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const o=as(s,e.options.font);if(a?(t.width=this.maxWidth,t.height=os(n)+o):(t.height=this.maxHeight,t.width=os(n)+o),i.display&&this.ticks.length){const{first:e,last:s,widest:n,highest:o}=this._getLabelSizes(),r=2*i.padding,l=W(this.labelRotation),h=Math.cos(l),c=Math.sin(l);if(a){const e=i.mirror?0:c*n.width+h*o.height;t.height=Math.min(this.maxHeight,t.height+e+r)}else{const e=i.mirror?0:h*n.width+c*o.height;t.width=Math.min(this.maxWidth,t.width+e+r)}this._calculatePadding(e,s,c,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,i,s){const{ticks:{align:n,padding:o},position:a}=this.options,r=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let c=0,d=0;r?l?(c=s*t.width,d=i*e.height):(c=i*t.height,d=s*e.width):"start"===n?d=e.width:"end"===n?c=t.width:"inner"!==n&&(c=t.width/2,d=e.width/2),this.paddingLeft=Math.max((c-a+o)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-h+o)*this.width/(this.width-h),0)}else{let i=e.height/2,s=t.height/2;"start"===n?(i=0,s=t.height):"end"===n&&(i=e.height,s=0),this.paddingTop=i+o,this.paddingBottom=s+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(){f(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,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e<i;e++)a(t[e].label)&&(t.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let i=this.ticks;e<i.length&&(i=ss(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length)}return t}_computeLabelSizes(t,e){const{ctx:i,_longestTextCache:s}=this,n=[],o=[];let l,h,c,d,u,f,p,m,b,x,_,y=0,v=0;for(l=0;l<e;++l){if(d=t[l].label,u=this._resolveTickFontOptions(l),i.font=f=u.string,p=s[f]=s[f]||{data:{},gc:[]},m=u.lineHeight,b=x=0,a(d)||r(d)){if(r(d))for(h=0,c=d.length;h<c;++h)_=d[h],a(_)||r(_)||(b=Qt(i,p.data,p.gc,b,_),x+=m)}else b=Qt(i,p.data,p.gc,b,d),x=m;n.push(b),o.push(x),y=Math.max(b,y),v=Math.max(x,v)}!function(t,e){g(t,(t=>{const i=t.gc,s=i.length/2;let n;if(s>e){for(n=0;n<s;++n)delete t.data[i[n]];i.splice(0,s)}}))}(s,e);const w=n.indexOf(y),k=o.indexOf(v),C=t=>({width:n[t]||0,height:o[t]||0});return{first:C(0),last:C(e-1),widest:C(w),highest:C(k),widths:n,heights:o}}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 K(this._alignToPixels?ee(this.chart,e,0):e,-32768,32767)}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 i=e[t];return i.$context||(i.$context=function(t,e,i){return ke(t,{tick:i,index:e,type:"tick"})}(this.getContext(),t,i))}return this.$context||(this.$context=ke(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=W(this.labelRotation),i=Math.abs(Math.cos(e)),s=Math.abs(Math.sin(e)),n=this._getLabelSizes(),o=t.autoSkipPadding||0,a=n?n.widest.width+o:0,r=n?n.highest.height+o:0;return this.isHorizontal()?r*i>a*s?a/i:r/s:r*s<a*i?r/i:a/s}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,i=this.chart,s=this.options,{grid:n,position:o}=s,a=n.offset,r=this.isHorizontal(),h=this.ticks.length+(a?1:0),c=os(n),u=[],f=n.setContext(this.getContext()),g=f.drawBorder?f.borderWidth:0,p=g/2,m=function(t){return ee(i,t,g)};let b,x,_,y,v,w,k,C,M,S,L,E;if("top"===o)b=m(this.bottom),w=this.bottom-c,C=b-p,S=m(t.top)+p,E=t.bottom;else if("bottom"===o)b=m(this.top),S=t.top,E=m(t.bottom)-p,w=b+p,C=this.top+c;else if("left"===o)b=m(this.right),v=this.right-c,k=b-p,M=m(t.left)+p,L=t.right;else if("right"===o)b=m(this.left),M=t.left,L=m(t.right)-p,v=b+p,k=this.left+c;else if("x"===e){if("center"===o)b=m((t.top+t.bottom)/2+.5);else if(l(o)){const t=Object.keys(o)[0],e=o[t];b=m(this.chart.scales[t].getPixelForValue(e))}S=t.top,E=t.bottom,w=b+p,C=w+c}else if("y"===e){if("center"===o)b=m((t.left+t.right)/2);else if(l(o)){const t=Object.keys(o)[0],e=o[t];b=m(this.chart.scales[t].getPixelForValue(e))}v=b-p,k=v-c,M=t.left,L=t.right}const P=d(s.ticks.maxTicksLimit,h),D=Math.max(1,Math.ceil(h/P));for(x=0;x<h;x+=D){const t=n.setContext(this.getContext(x)),e=t.lineWidth,s=t.color,o=t.borderDash||[],l=t.borderDashOffset,h=t.tickWidth,c=t.tickColor,d=t.tickBorderDash||[],f=t.tickBorderDashOffset;_=ns(this,x,a),void 0!==_&&(y=ee(i,_,e),r?v=k=M=L=y:w=C=S=E=y,u.push({tx1:v,ty1:w,tx2:k,ty2:C,x1:M,y1:S,x2:L,y2:E,width:e,color:s,borderDash:o,borderDashOffset:l,tickWidth:h,tickColor:c,tickBorderDash:d,tickBorderDashOffset:f}))}return this._ticksLength=h,this._borderValue=b,u}_computeLabelItems(t){const e=this.axis,i=this.options,{position:s,ticks:n}=i,o=this.isHorizontal(),a=this.ticks,{align:h,crossAlign:c,padding:d,mirror:u}=n,f=os(i.grid),g=f+d,p=u?-d:g,m=-W(this.labelRotation),b=[];let x,_,y,v,w,k,C,M,S,L,E,P,D="middle";if("top"===s)k=this.bottom-p,C=this._getXAxisLabelAlignment();else if("bottom"===s)k=this.top+p,C=this._getXAxisLabelAlignment();else if("left"===s){const t=this._getYAxisLabelAlignment(f);C=t.textAlign,w=t.x}else if("right"===s){const t=this._getYAxisLabelAlignment(f);C=t.textAlign,w=t.x}else if("x"===e){if("center"===s)k=(t.top+t.bottom)/2+g;else if(l(s)){const t=Object.keys(s)[0],e=s[t];k=this.chart.scales[t].getPixelForValue(e)+g}C=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===s)w=(t.left+t.right)/2-g;else if(l(s)){const t=Object.keys(s)[0],e=s[t];w=this.chart.scales[t].getPixelForValue(e)}C=this._getYAxisLabelAlignment(f).textAlign}"y"===e&&("start"===h?D="top":"end"===h&&(D="bottom"));const O=this._getLabelSizes();for(x=0,_=a.length;x<_;++x){y=a[x],v=y.label;const t=n.setContext(this.getContext(x));M=this.getPixelForTick(x)+n.labelOffset,S=this._resolveTickFontOptions(x),L=S.lineHeight,E=r(v)?v.length:1;const e=E/2,i=t.color,l=t.textStrokeColor,h=t.textStrokeWidth;let d,f=C;if(o?(w=M,"inner"===C&&(f=x===_-1?this.options.reverse?"left":"right":0===x?this.options.reverse?"right":"left":"center"),P="top"===s?"near"===c||0!==m?-E*L+L/2:"center"===c?-O.highest.height/2-e*L+L:-O.highest.height+L/2:"near"===c||0!==m?L/2:"center"===c?O.highest.height/2-e*L:O.highest.height-E*L,u&&(P*=-1)):(k=M,P=(1-E)*L/2),t.showLabelBackdrop){const e=ye(t.backdropPadding),i=O.heights[x],s=O.widths[x];let n=k+P-e.top,o=w-e.left;switch(D){case"middle":n-=i/2;break;case"bottom":n-=i}switch(C){case"center":o-=s/2;break;case"right":o-=s}d={left:o,top:n,width:s+e.width,height:i+e.height,color:t.backdropColor}}b.push({rotation:m,label:v,font:S,color:i,strokeColor:l,strokeWidth:h,textOffset:P,textAlign:f,textBaseline:D,translation:[w,k],backdrop:d})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-W(this.labelRotation))return"top"===t?"left":"right";let i="center";return"start"===e.align?i="left":"end"===e.align?i="right":"inner"===e.align&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:i,mirror:s,padding:n}}=this.options,o=t+n,a=this._getLabelSizes().widest.width;let r,l;return"left"===e?s?(l=this.right+n,"near"===i?r="left":"center"===i?(r="center",l+=a/2):(r="right",l+=a)):(l=this.right-o,"near"===i?r="right":"center"===i?(r="center",l-=a/2):(r="left",l=this.left)):"right"===e?s?(l=this.left+n,"near"===i?r="right":"center"===i?(r="center",l-=a/2):(r="left",l-=a)):(l=this.left+o,"near"===i?r="left":"center"===i?(r="center",l+=a/2):(r="right",l=this.right)):r="right",{textAlign:r,x:l}}_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:i,top:s,width:n,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,s,n,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const i=this.ticks.findIndex((e=>e.value===t));return i>=0?e.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const e=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let n,o;const a=(t,e,s)=>{s.width&&s.color&&(i.save(),i.lineWidth=s.width,i.strokeStyle=s.color,i.setLineDash(s.borderDash||[]),i.lineDashOffset=s.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(n=0,o=s.length;n<o;++n){const t=s[n];e.drawOnChartArea&&a({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&a({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:i}}=this,s=i.setContext(this.getContext()),n=i.drawBorder?s.borderWidth:0;if(!n)return;const o=i.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let r,l,h,c;this.isHorizontal()?(r=ee(t,this.left,n)-n/2,l=ee(t,this.right,o)+o/2,h=c=a):(h=ee(t,this.top,n)-n/2,c=ee(t,this.bottom,o)+o/2,r=l=a),e.save(),e.lineWidth=s.borderWidth,e.strokeStyle=s.borderColor,e.beginPath(),e.moveTo(r,h),e.lineTo(l,c),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,i=this._computeLabelArea();i&&ae(e,i);const s=this._labelItems||(this._labelItems=this._computeLabelItems(t));let n,o;for(n=0,o=s.length;n<o;++n){const t=s[n],i=t.font,o=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height)),ce(e,o,0,t.textOffset,i,t)}i&&re(e)}drawTitle(){const{ctx:t,options:{position:e,title:i,reverse:s}}=this;if(!i.display)return;const n=ve(i.font),o=ye(i.padding),a=i.align;let h=n.lineHeight/2;"bottom"===e||"center"===e||l(e)?(h+=o.bottom,r(i.text)&&(h+=n.lineHeight*(i.text.length-1))):h+=o.top;const{titleX:c,titleY:d,maxWidth:u,rotation:f}=function(t,e,i,s){const{top:n,left:o,bottom:a,right:r,chart:h}=t,{chartArea:c,scales:d}=h;let u,f,g,p=0;const m=a-n,b=r-o;if(t.isHorizontal()){if(f=rt(s,o,r),l(i)){const t=Object.keys(i)[0],s=i[t];g=d[t].getPixelForValue(s)+m-e}else g="center"===i?(c.bottom+c.top)/2+m-e:is(t,i,e);u=r-o}else{if(l(i)){const t=Object.keys(i)[0],s=i[t];f=d[t].getPixelForValue(s)-b+e}else f="center"===i?(c.left+c.right)/2-b+e:is(t,i,e);g=rt(s,a,n),p="left"===i?-T:T}return{titleX:f,titleY:g,maxWidth:u,rotation:p}}(this,h,e,a);ce(t,i.text,0,0,n,{color:i.color,maxWidth:u,rotation:f,textAlign:rs(a,e,s),textBaseline:"middle",translation:[c,d]})}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,i=d(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===ls.prototype.draw?[{z:i,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i+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(),i=this.axis+"AxisID",s=[];let n,o;for(n=0,o=e.length;n<o;++n){const o=e[n];o[i]!==this.id||t&&o.type!==t||s.push(o)}return s}_resolveTickFontOptions(t){return ve(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class hs{constructor(t,e,i){this.type=t,this.scope=e,this.override=i,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 i;(function(t){return"id"in t&&"defaults"in t})(e)&&(i=this.register(e));const s=this.items,n=t.id,o=this.scope+"."+n;if(!n)throw new Error("class does not have id: "+t);return n in s||(s[n]=t,function(t,e,i){const s=_(Object.create(null),[i?Jt.get(i):{},Jt.get(e),t.defaults]);Jt.set(e,s),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((i=>{const s=i.split("."),n=s.pop(),o=[t].concat(s).join("."),a=e[i].split("."),r=a.pop(),l=a.join(".");Jt.route(o,n,l,r)}))}(e,t.defaultRoutes),t.descriptors&&Jt.describe(e,t.descriptors)}(t,o,i),this.override&&Jt.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,s=this.scope;i in e&&delete e[i],s&&i in Jt[s]&&(delete Jt[s][i],this.override&&delete Xt[i])}}var cs=new class{constructor(){this.controllers=new hs(Ri,"datasets",!0),this.elements=new hs(Gi,"elements"),this.plugins=new hs(Object,"plugins"),this.scales=new hs(ls,"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,i){[...e].forEach((e=>{const s=i||this._getRegistryForType(e);i||s.isForType(e)||s===this.plugins&&e.id?this._exec(t,s,e):g(e,(e=>{const s=i||this._getRegistryForType(e);this._exec(t,s,e)}))}))}_exec(t,e,i){const s=C(t);f(i["before"+s],[],i),e[t](i),f(i["after"+s],[],i)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const i=this._typedRegistries[e];if(i.isForType(t))return i}return this.plugins}_get(t,e,i){const s=e.get(t);if(void 0===s)throw new Error('"'+t+'" is not a registered '+i+".");return s}};class ds extends Ri{update(t){const e=this._cachedMeta,{data:i=[]}=e,s=this.chart._animationsDisabled;let{start:n,count:o}=lt(e,i,s);if(this._drawStart=n,this._drawCount=o,ht(e)&&(n=0,o=i.length),this.options.showLine){const{dataset:n,_dataset:o}=e;n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=i;const a=this.resolveDatasetElementOptions(t);a.segment=this.options.segment,this.updateElement(n,void 0,{animated:!s,options:a},t)}this.updateElements(i,n,o,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=cs.getElement("line")),super.addElements()}updateElements(t,e,i,s){const n="reset"===s,{iScale:o,vScale:r,_stacked:l,_dataset:h}=this._cachedMeta,c=this.resolveDataElementOptions(e,s),d=this.getSharedOptions(c),u=this.includeOptions(s,d),f=o.axis,g=r.axis,{spanGaps:p,segment:m}=this.options,b=N(p)?p:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||n||"none"===s;let _=e>0&&this.getParsed(e-1);for(let c=e;c<e+i;++c){const e=t[c],i=this.getParsed(c),p=x?e:{},y=a(i[g]),v=p[f]=o.getPixelForValue(i[f],c),w=p[g]=n||y?r.getBasePixel():r.getPixelForValue(l?this.applyStack(r,i,l):i[g],c);p.skip=isNaN(v)||isNaN(w)||y,p.stop=c>0&&Math.abs(i[f]-_[f])>b,m&&(p.parsed=i,p.raw=h.data[c]),u&&(p.options=d||this.resolveDataElementOptions(c,e.active?"active":s)),x||this.updateElement(e,c,p,s),_=i}this.updateSharedOptions(d,s,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let i=e.length-1;i>=0;--i)t=Math.max(t,e[i].size(this.resolveDataElementOptions(i))/2);return t>0&&t}const i=t.dataset,s=i.options&&i.options.borderWidth||0;if(!e.length)return s;const n=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(s,n,o)/2}}ds.id="scatter",ds.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},ds.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var us=Object.freeze({__proto__:null,BarController:$i,BubbleController:Zi,DoughnutController:Yi,LineController:Ui,PolarAreaController:Xi,PieController:qi,RadarController:Ki,ScatterController:ds});function fs(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class gs{constructor(t){this.options=t||{}}init(t){}formats(){return fs()}parse(t,e){return fs()}format(t,e){return fs()}add(t,e,i){return fs()}diff(t,e,i){return fs()}startOf(t,e,i){return fs()}endOf(t,e){return fs()}}gs.override=function(t){Object.assign(gs.prototype,t)};var ps={_date:gs};function ms(t,e,i,s){const{controller:n,data:o,_sorted:a}=t,r=n._cachedMeta.iScale;if(r&&e===r.axis&&"r"!==e&&a&&o.length){const t=r._reversePixels?tt:Q;if(!s)return t(o,e,i);if(n._sharedOptions){const s=o[0],n="function"==typeof s.getRange&&s.getRange(e);if(n){const s=t(o,e,i-n),a=t(o,e,i+n);return{lo:s.lo,hi:a.hi}}}}return{lo:0,hi:o.length-1}}function bs(t,e,i,s,n){const o=t.getSortedVisibleDatasetMetas(),a=i[e];for(let t=0,i=o.length;t<i;++t){const{index:i,data:r}=o[t],{lo:l,hi:h}=ms(o[t],e,a,n);for(let t=l;t<=h;++t){const e=r[t];e.skip||s(e,i,t)}}}function xs(t,e,i,s,n){const o=[];return n||t.isPointInArea(e)?(bs(t,i,e,(function(i,a,r){(n||oe(i,t.chartArea,0))&&i.inRange(e.x,e.y,s)&&o.push({element:i,datasetIndex:a,index:r})}),!0),o):o}function _s(t,e,i,s,n,o){return o||t.isPointInArea(e)?"r"!==i||s?function(t,e,i,s,n,o){let a=[];const r=function(t){const e=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,s){const n=e?Math.abs(t.x-s.x):0,o=i?Math.abs(t.y-s.y):0;return Math.sqrt(Math.pow(n,2)+Math.pow(o,2))}}(i);let l=Number.POSITIVE_INFINITY;return bs(t,i,e,(function(i,h,c){const d=i.inRange(e.x,e.y,n);if(s&&!d)return;const u=i.getCenterPoint(n);if(!o&&!t.isPointInArea(u)&&!d)return;const f=r(e,u);f<l?(a=[{element:i,datasetIndex:h,index:c}],l=f):f===l&&a.push({element:i,datasetIndex:h,index:c})})),a}(t,e,i,s,n,o):function(t,e,i,s){let n=[];return bs(t,i,e,(function(t,i,o){const{startAngle:a,endAngle:r}=t.getProps(["startAngle","endAngle"],s),{angle:l}=Z(t,{x:e.x,y:e.y});q(l,a,r)&&n.push({element:t,datasetIndex:i,index:o})})),n}(t,e,i,n):[]}function ys(t,e,i,s,n){const o=[],a="x"===i?"inXRange":"inYRange";let r=!1;return bs(t,i,e,((t,s,l)=>{t[a](e[i],n)&&(o.push({element:t,datasetIndex:s,index:l}),r=r||t.inRange(e.x,e.y,n))})),s&&!r?[]:o}var vs={evaluateInteractionItems:bs,modes:{index(t,e,i,s){const n=Ge(e,t),o=i.axis||"x",a=i.includeInvisible||!1,r=i.intersect?xs(t,n,o,s,a):_s(t,n,o,!1,s,a),l=[];return r.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=r[0].index,i=t.data[e];i&&!i.skip&&l.push({element:i,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,i,s){const n=Ge(e,t),o=i.axis||"xy",a=i.includeInvisible||!1;let r=i.intersect?xs(t,n,o,s,a):_s(t,n,o,!1,s,a);if(r.length>0){const e=r[0].datasetIndex,i=t.getDatasetMeta(e).data;r=[];for(let t=0;t<i.length;++t)r.push({element:i[t],datasetIndex:e,index:t})}return r},point:(t,e,i,s)=>xs(t,Ge(e,t),i.axis||"xy",s,i.includeInvisible||!1),nearest(t,e,i,s){const n=Ge(e,t),o=i.axis||"xy",a=i.includeInvisible||!1;return _s(t,n,o,i.intersect,s,a)},x:(t,e,i,s)=>ys(t,Ge(e,t),"x",i.intersect,s),y:(t,e,i,s)=>ys(t,Ge(e,t),"y",i.intersect,s)}};const ws=["left","top","right","bottom"];function ks(t,e){return t.filter((t=>t.pos===e))}function Cs(t,e){return t.filter((t=>-1===ws.indexOf(t.pos)&&t.box.axis===e))}function Ms(t,e){return t.sort(((t,i)=>{const s=e?i:t,n=e?t:i;return s.weight===n.weight?s.index-n.index:s.weight-n.weight}))}function Ss(t,e,i,s){return Math.max(t[i],e[i])+Math.max(t[s],e[s])}function Ls(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 Es(t,e,i,s){const{pos:n,box:o}=i,a=t.maxPadding;if(!l(n)){i.size&&(t[n]-=i.size);const e=s[i.stack]||{size:0,count:1};e.size=Math.max(e.size,i.horizontal?o.height:o.width),i.size=e.size/e.count,t[n]+=i.size}o.getPadding&&Ls(a,o.getPadding());const r=Math.max(0,e.outerWidth-Ss(a,t,"left","right")),h=Math.max(0,e.outerHeight-Ss(a,t,"top","bottom")),c=r!==t.w,d=h!==t.h;return t.w=r,t.h=h,i.horizontal?{same:c,other:d}:{same:d,other:c}}function Ps(t,e){const i=e.maxPadding;return function(t){const s={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{s[t]=Math.max(e[t],i[t])})),s}(t?["left","right"]:["top","bottom"])}function Ds(t,e,i,s){const n=[];let o,a,r,l,h,c;for(o=0,a=t.length,h=0;o<a;++o){r=t[o],l=r.box,l.update(r.width||e.w,r.height||e.h,Ps(r.horizontal,e));const{same:a,other:d}=Es(e,i,r,s);h|=a&&n.length,c=c||d,l.fullSize||n.push(r)}return h&&Ds(n,e,i,s)||c}function Os(t,e,i,s,n){t.top=i,t.left=e,t.right=e+s,t.bottom=i+n,t.width=s,t.height=n}function As(t,e,i,s){const n=i.padding;let{x:o,y:a}=e;for(const r of t){const t=r.box,l=s[r.stack]||{count:1,placed:0,weight:1},h=r.stackWeight/l.weight||1;if(r.horizontal){const s=e.w*h,o=l.size||t.height;M(l.start)&&(a=l.start),t.fullSize?Os(t,n.left,a,i.outerWidth-n.right-n.left,o):Os(t,e.left+l.placed,a,s,o),l.start=a,l.placed+=s,a=t.bottom}else{const s=e.h*h,a=l.size||t.width;M(l.start)&&(o=l.start),t.fullSize?Os(t,o,n.top,a,i.outerHeight-n.bottom-n.top):Os(t,o,e.top+l.placed,a,s),l.start=o,l.placed+=s,o=t.right}}e.x=o,e.y=a}Jt.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Ts={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 i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure(t,e,i){e.fullSize=i.fullSize,e.position=i.position,e.weight=i.weight},update(t,e,i,s){if(!t)return;const n=ye(t.options.layout.padding),o=Math.max(e-n.width,0),a=Math.max(i-n.height,0),r=function(t){const e=function(t){const e=[];let i,s,n,o,a,r;for(i=0,s=(t||[]).length;i<s;++i)n=t[i],({position:o,options:{stack:a,stackWeight:r=1}}=n),e.push({index:i,box:n,pos:o,horizontal:n.isHorizontal(),weight:n.weight,stack:a&&o+a,stackWeight:r});return e}(t),i=Ms(e.filter((t=>t.box.fullSize)),!0),s=Ms(ks(e,"left"),!0),n=Ms(ks(e,"right")),o=Ms(ks(e,"top"),!0),a=Ms(ks(e,"bottom")),r=Cs(e,"x"),l=Cs(e,"y");return{fullSize:i,leftAndTop:s.concat(o),rightAndBottom:n.concat(l).concat(a).concat(r),chartArea:ks(e,"chartArea"),vertical:s.concat(n).concat(l),horizontal:o.concat(a).concat(r)}}(t.boxes),l=r.vertical,h=r.horizontal;g(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const c=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,d=Object.freeze({outerWidth:e,outerHeight:i,padding:n,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/c,hBoxMaxHeight:a/2}),u=Object.assign({},n);Ls(u,ye(s));const f=Object.assign({maxPadding:u,w:o,h:a,x:n.left,y:n.top},n),p=function(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:s,stackWeight:n}=i;if(!t||!ws.includes(s))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=n}return e}(t),{vBoxMaxWidth:s,hBoxMaxHeight:n}=e;let o,a,r;for(o=0,a=t.length;o<a;++o){r=t[o];const{fullSize:a}=r.box,l=i[r.stack],h=l&&r.stackWeight/l.weight;r.horizontal?(r.width=h?h*s:a&&e.availableWidth,r.height=n):(r.width=s,r.height=h?h*n:a&&e.availableHeight)}return i}(l.concat(h),d);Ds(r.fullSize,f,d,p),Ds(l,f,d,p),Ds(h,f,d,p)&&Ds(l,f,d,p),function(t){const e=t.maxPadding;function i(i){const s=Math.max(e[i]-t[i],0);return t[i]+=s,s}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(f),As(r.leftAndTop,f,d,p),f.x+=f.w,f.y+=f.h,As(r.rightAndBottom,f,d,p),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},g(r.chartArea,(e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})}))}};class zs{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,s){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,s?Math.floor(e/s):i)}}isAttached(t){return!0}updateConfig(t){}}class Rs extends zs{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Is="$chartjs",Fs={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Vs=t=>null===t||""===t,Ns=!!ti&&{passive:!0};function Hs(t,e,i){t.canvas.removeEventListener(e,i,Ns)}function Bs(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function Ws(t,e,i){const s=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||Bs(i.addedNodes,s),e=e&&!Bs(i.removedNodes,s);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}function js(t,e,i){const s=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||Bs(i.removedNodes,s),e=e&&!Bs(i.addedNodes,s);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}const $s=new Map;let Zs=0;function Ys(){const t=window.devicePixelRatio;t!==Zs&&(Zs=t,$s.forEach(((e,i)=>{i.currentDevicePixelRatio!==t&&e()})))}function Us(t,e,i){const s=t.canvas,n=s&&Ze(s);if(!n)return;const o=ot(((t,e)=>{const s=n.clientWidth;i(t,e),s<n.clientWidth&&i()}),window),a=new ResizeObserver((t=>{const e=t[0],i=e.contentRect.width,s=e.contentRect.height;0===i&&0===s||o(i,s)}));return a.observe(n),function(t,e){$s.size||window.addEventListener("resize",Ys),$s.set(t,e)}(t,o),a}function Xs(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){$s.delete(t),$s.size||window.removeEventListener("resize",Ys)}(t)}function qs(t,e,i){const s=t.canvas,n=ot((e=>{null!==t.ctx&&i(function(t,e){const i=Fs[t.type]||t.type,{x:s,y:n}=Ge(t,e);return{type:i,chart:e,native:t,x:void 0!==s?s:null,y:void 0!==n?n:null}}(e,t))}),t,(t=>{const e=t[0];return[e,e.offsetX,e.offsetY]}));return function(t,e,i){t.addEventListener(e,i,Ns)}(s,e,n),n}class Ks extends zs{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,s=t.getAttribute("height"),n=t.getAttribute("width");if(t[Is]={initial:{height:s,width:n,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",Vs(n)){const e=ei(t,"width");void 0!==e&&(t.width=e)}if(Vs(s))if(""===t.style.height)t.height=t.width/(e||2);else{const e=ei(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[Is])return!1;const i=e[Is].initial;["height","width"].forEach((t=>{const s=i[t];a(s)?e.removeAttribute(t):e.setAttribute(t,s)}));const s=i.style||{};return Object.keys(s).forEach((t=>{e.style[t]=s[t]})),e.width=e.width,delete e[Is],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const s=t.$proxies||(t.$proxies={}),n={attach:Ws,detach:js,resize:Us}[e]||qs;s[e]=n(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),s=i[e];s&&(({attach:Xs,detach:Xs,resize:Xs}[e]||Hs)(t,e,s),i[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,s){return function(t,e,i,s){const n=Ue(t),o=qe(n,"margin"),a=Ye(n.maxWidth,t,"clientWidth")||O,r=Ye(n.maxHeight,t,"clientHeight")||O,l=function(t,e,i){let s,n;if(void 0===e||void 0===i){const o=Ze(t);if(o){const t=o.getBoundingClientRect(),a=Ue(o),r=qe(a,"border","width"),l=qe(a,"padding");e=t.width-l.width-r.width,i=t.height-l.height-r.height,s=Ye(a.maxWidth,o,"clientWidth"),n=Ye(a.maxHeight,o,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:s||O,maxHeight:n||O}}(t,e,i);let{width:h,height:c}=l;if("content-box"===n.boxSizing){const t=qe(n,"border","width"),e=qe(n,"padding");h-=e.width+t.width,c-=e.height+t.height}return h=Math.max(0,h-o.width),c=Math.max(0,s?Math.floor(h/s):c-o.height),h=Je(Math.min(h,a,l.maxWidth)),c=Je(Math.min(c,r,l.maxHeight)),h&&!c&&(c=Je(h/2)),{width:h,height:c}}(t,e,i,s)}isAttached(t){const e=Ze(t);return!(!e||!e.isConnected)}}class Gs{constructor(){this._init=[]}notify(t,e,i,s){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const n=s?this._descriptors(t).filter(s):this._descriptors(t),o=this._notify(n,t,e,i);return"afterDestroy"===e&&(this._notify(n,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,i,s){s=s||{};for(const n of t){const t=n.plugin;if(!1===f(t[i],[e,s,n.options],t)&&s.cancelable)return!1}return!0}invalidate(){a(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 i=t&&t.config,s=d(i.options&&i.options.plugins,{}),n=function(t){const e={},i=[],s=Object.keys(cs.plugins.items);for(let t=0;t<s.length;t++)i.push(cs.getPlugin(s[t]));const n=t.plugins||[];for(let t=0;t<n.length;t++){const s=n[t];-1===i.indexOf(s)&&(i.push(s),e[s.id]=!0)}return{plugins:i,localIds:e}}(i);return!1!==s||e?function(t,{plugins:e,localIds:i},s,n){const o=[],a=t.getContext();for(const r of e){const e=r.id,l=Js(s[e],n);null!==l&&o.push({plugin:r,options:Qs(t.config,{plugin:r,local:i[e]},l,a)})}return o}(t,n,s,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],i=this._cache,s=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(s(e,i),t,"stop"),this._notify(s(i,e),t,"start")}}function Js(t,e){return e||!1!==t?!0===t?{}:t:null}function Qs(t,{plugin:e,local:i},s,n){const o=t.pluginScopeKeys(e),a=t.getOptionScopes(s,o);return i&&e.defaults&&a.push(e.defaults),t.createResolver(a,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function tn(t,e){const i=Jt.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function en(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(i=e.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||t.charAt(0).toLowerCase();var i}function sn(t){const e=t.options||(t.options={});e.plugins=d(e.plugins,{}),e.scales=function(t,e){const i=Xt[t.type]||{scales:{}},s=e.scales||{},n=tn(t.type,e),o=Object.create(null),a=Object.create(null);return Object.keys(s).forEach((t=>{const e=s[t];if(!l(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 r=en(t,e),h=function(t,e){return t===e?"_index_":"_value_"}(r,n),c=i.scales||{};o[r]=o[r]||t,a[t]=y(Object.create(null),[{axis:r},e,c[r],c[h]])})),t.data.datasets.forEach((i=>{const n=i.type||t.type,r=i.indexAxis||tn(n,e),l=(Xt[n]||{}).scales||{};Object.keys(l).forEach((t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,r),n=i[e+"AxisID"]||o[e]||e;a[n]=a[n]||Object.create(null),y(a[n],[{axis:e},s[n],l[t]])}))})),Object.keys(a).forEach((t=>{const e=a[t];y(e,[Jt.scales[e.type],Jt.scale])})),a}(t,e)}function nn(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const on=new Map,an=new Set;function rn(t,e){let i=on.get(t);return i||(i=e(),on.set(t,i),an.add(i)),i}const ln=(t,e,i)=>{const s=k(e,i);void 0!==s&&t.add(s)};class hn{constructor(t){this._config=function(t){return(t=t||{}).data=nn(t.data),sn(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=nn(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(),sn(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return rn(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return rn(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return rn(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return rn(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const i=this._scopeCache;let s=i.get(t);return s&&!e||(s=new Map,i.set(t,s)),s}getOptionScopes(t,e,i){const{options:s,type:n}=this,o=this._cachedScopes(t,i),a=o.get(e);if(a)return a;const r=new Set;e.forEach((e=>{t&&(r.add(t),e.forEach((e=>ln(r,t,e)))),e.forEach((t=>ln(r,s,t))),e.forEach((t=>ln(r,Xt[n]||{},t))),e.forEach((t=>ln(r,Jt,t))),e.forEach((t=>ln(r,qt,t)))}));const l=Array.from(r);return 0===l.length&&l.push(Object.create(null)),an.has(e)&&o.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,Xt[e]||{},Jt.datasets[e]||{},{type:e},Jt,qt]}resolveNamedOptions(t,e,i,s=[""]){const n={$shared:!0},{resolver:o,subPrefixes:a}=cn(this._resolverCache,t,s);let l=o;(function(t,e){const{isScriptable:i,isIndexable:s}=Se(t);for(const n of e){const e=i(n),o=s(n),a=(o||e)&&t[n];if(e&&(S(a)||dn(a))||o&&r(a))return!0}return!1})(o,e)&&(n.$shared=!1,l=Me(o,i=S(i)?i():i,this.createResolver(t,i,a)));for(const t of e)n[t]=l[t];return n}createResolver(t,e,i=[""],s){const{resolver:n}=cn(this._resolverCache,t,i);return l(e)?Me(n,e,void 0,s):n}}function cn(t,e,i){let s=t.get(e);s||(s=new Map,t.set(e,s));const n=i.join();let o=s.get(n);return o||(o={resolver:Ce(e,i),subPrefixes:i.filter((t=>!t.toLowerCase().includes("hover")))},s.set(n,o)),o}const dn=t=>l(t)&&Object.getOwnPropertyNames(t).reduce(((e,i)=>e||S(t[i])),!1),un=["top","bottom","left","right","chartArea"];function fn(t,e){return"top"===t||"bottom"===t||-1===un.indexOf(t)&&"x"===e}function gn(t,e){return function(i,s){return i[t]===s[t]?i[e]-s[e]:i[t]-s[t]}}function pn(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),f(i&&i.onComplete,[t],e)}function mn(t){const e=t.chart,i=e.options.animation;f(i&&i.onProgress,[t],e)}function bn(t){return $e()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const xn={},yn=t=>{const e=bn(t);return Object.values(xn).filter((t=>t.canvas===e)).pop()};function vn(t,e,i){const s=Object.keys(t);for(const n of s){const s=+n;if(s>=e){const o=t[n];delete t[n],(i>0||s>e)&&(t[s+i]=o)}}}class wn{constructor(t,e){const i=this.config=new hn(e),s=bn(t),n=yn(s);if(n)throw new Error("Canvas is already in use. Chart with ID '"+n.id+"' must be destroyed before the canvas with ID '"+n.canvas.id+"' can be reused.");const a=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(t){return!$e()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Rs:Ks}(s)),this.platform.updateConfig(i);const r=this.platform.acquireContext(s,a.aspectRatio),l=r&&r.canvas,h=l&&l.height,c=l&&l.width;this.id=o(),this.ctx=r,this.canvas=l,this.width=c,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 Gs,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let i;return function(...s){return e?(clearTimeout(i),i=setTimeout(t,e,s)):t.apply(this,s),e}}((t=>this.update(t)),a.resizeDelay||0),this._dataChanges=[],xn[this.id]=this,r&&l?(xi.listen(this,"complete",pn),xi.listen(this,"progress",mn),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:i,height:s,_aspectRatio:n}=this;return a(t)?e&&n?n:s?i/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():Qe(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ie(this.canvas,this.ctx),this}stop(){return xi.stop(this),this}resize(t,e){xi.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,s=this.canvas,n=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(s,t,e,n),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),r=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,Qe(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),f(i.onResize,[this,o],this),this.attached&&this._doResize(r)&&this.render())}ensureScalesHaveIDs(){g(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,s=Object.keys(i).reduce(((t,e)=>(t[e]=!1,t)),{});let n=[];e&&(n=n.concat(Object.keys(e).map((t=>{const i=e[t],s=en(t,i),n="r"===s,o="x"===s;return{options:i,dposition:n?"chartArea":o?"bottom":"left",dtype:n?"radialLinear":o?"category":"linear"}})))),g(n,(e=>{const n=e.options,o=n.id,a=en(o,n),r=d(n.type,e.dtype);void 0!==n.position&&fn(n.position,a)===fn(e.dposition)||(n.position=e.dposition),s[o]=!0;let l=null;o in i&&i[o].type===r?l=i[o]:(l=new(cs.getScale(r))({id:o,type:r,ctx:this.ctx,chart:this}),i[l.id]=l),l.init(n,t)})),g(s,((t,e)=>{t||delete i[e]})),g(i,(t=>{Ts.configure(this,t,t.options),Ts.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort(((t,e)=>t.index-e.index)),i>e){for(let t=e;t<i;++t)this._destroyDatasetMeta(t);t.splice(e,i-e)}this._sortedMetasets=t.slice(0).sort(gn("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,i)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(i)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,s;for(this._removeUnreferencedMetasets(),i=0,s=e.length;i<s;i++){const s=e[i];let n=this.getDatasetMeta(i);const o=s.type||this.config.type;if(n.type&&n.type!==o&&(this._destroyDatasetMeta(i),n=this.getDatasetMeta(i)),n.type=o,n.indexAxis=s.indexAxis||tn(o,this.options),n.order=s.order||0,n.index=i,n.label=""+s.label,n.visible=this.isDatasetVisible(i),n.controller)n.controller.updateIndex(i),n.controller.linkScales();else{const e=cs.getController(o),{datasetElementType:s,dataElementType:a}=Jt.datasets[o];Object.assign(e.prototype,{dataElementType:cs.getElement(a),datasetElementType:s&&cs.getElement(s)}),n.controller=new e(this,i),t.push(n.controller)}}return this._updateMetasets(),t}_resetElements(){g(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 i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const n=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),i=!s&&-1===n.indexOf(e);e.buildOrUpdateElements(i),o=Math.max(+e.getMaxOverflow(),o)}o=this._minPadding=i.layout.autoPadding?o:0,this._updateLayout(o),s||g(n,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(gn("z","_idx"));const{_active:a,_lastEvent:r}=this;r?this._eventHandler(r,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){g(this.scales,(t=>{Ts.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);L(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:n}of e)vn(t,s,"_removeElements"===i?-n:n)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),s=i(0);for(let t=1;t<e;t++)if(!L(s,i(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;Ts.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],g(this.boxes,(t=>{i&&"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,i=this.data.datasets.length;e<i;++e)this._updateDataset(e,S(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const i=this.getDatasetMeta(t),s={meta:i,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",s)&&(i.controller._update(e),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(xi.has(this)?this.attached&&!xi.running(this)&&xi.start(this):(this.draw(),pn({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,i=[];let s,n;for(s=0,n=e.length;s<n;++s){const n=e[s];t&&!n.visible||i.push(n)}return i}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,i=t._clip,s=!i.disabled,n=this.chartArea,o={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(s&&ae(e,{left:!1===i.left?0:n.left-i.left,right:!1===i.right?this.width:n.right+i.right,top:!1===i.top?0:n.top-i.top,bottom:!1===i.bottom?this.height:n.bottom+i.bottom}),t.controller.draw(),s&&re(e),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return oe(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,s){const n=vs.modes[e];return"function"==typeof n?n(this,t,i,s):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let s=i.filter((t=>t&&t._dataset===e)).pop();return s||(s={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},i.push(s)),s}getContext(){return this.$context||(this.$context=ke(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.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,i){const s=i?"show":"hide",n=this.getDatasetMeta(t),o=n.controller._resolveAnimations(void 0,s);M(e)?(n.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),o.update(n,{visible:i}),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(),xi.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(),ie(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete xn[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,i=(i,s)=>{e.addEventListener(this,i,s),t[i]=s},s=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};g(this.options.events,(t=>i(t,s)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,s)=>{e.addEventListener(this,i,s),t[i]=s},s=(i,s)=>{t[i]&&(e.removeEventListener(this,i,s),delete t[i])},n=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const a=()=>{s("attach",a),this.attached=!0,this.resize(),i("resize",n),i("detach",o)};o=()=>{this.attached=!1,s("resize",n),this._stop(),this._resize(0,0),i("attach",a)},e.isAttached(this.canvas)?a():o()}unbindEvents(){g(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},g(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const s=i?"set":"remove";let n,o,a,r;for("dataset"===e&&(n=this.getDatasetMeta(t[0].datasetIndex),n.controller["_"+s+"DatasetHoverStyle"]()),a=0,r=t.length;a<r;++a){o=t[a];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[s+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],i=t.map((({datasetIndex:t,index:e})=>{const i=this.getDatasetMeta(t);if(!i)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}));!p(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}_updateHoverStyles(t,e,i){const s=this.options.hover,n=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=n(e,t),a=i?t:n(t,e);o.length&&this.updateHoverStyle(o,s.mode,!1),a.length&&s.mode&&this.updateHoverStyle(a,s.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},s=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,s))return;const n=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(n||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:s=[],options:n}=this,o=e,a=this._getActiveElements(t,s,i,o),r=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,i,s){return i&&"mouseout"!==t.type?s?e:t:null}(t,this._lastEvent,i,r);i&&(this._lastEvent=null,f(n.onHover,[t,a,this],this),r&&f(n.onClick,[t,a,this],this));const h=!p(a,s);return(h||e)&&(this._active=a,this._updateHoverStyles(a,s,e)),this._lastEvent=l,h}_getActiveElements(t,e,i,s){if("mouseout"===t.type)return[];if(!i)return e;const n=this.options.hover;return this.getElementsAtEventForMode(t,n.mode,n,s)}}const kn=()=>g(wn.instances,(t=>t._plugins.invalidate())),Cn=!0;function Mn(t,e,i){const{startAngle:s,pixelMargin:n,x:o,y:a,outerRadius:r,innerRadius:l}=e;let h=n/r;t.beginPath(),t.arc(o,a,r,s-h,i+h),l>n?(h=n/l,t.arc(o,a,l,i+h,s-h,!0)):t.arc(o,a,n,i+T,s-T),t.closePath(),t.clip()}function Sn(t,e,i,s){return{x:i+t*Math.cos(e),y:s+t*Math.sin(e)}}function Ln(t,e,i,s,n,o){const{x:a,y:r,startAngle:l,pixelMargin:h,innerRadius:c}=e,d=Math.max(e.outerRadius+s+i-h,0),u=c>0?c+s+i+h:0;let f=0;const g=n-l;if(s){const t=((c>0?c-s:0)+(d>0?d-s:0))/2;f=(g-(0!==t?g*t/(t+s):g))/2}const p=(g-Math.max(.001,g*d-i/E)/d)/2,m=l+p+f,b=n-p-f,{outerStart:x,outerEnd:_,innerStart:y,innerEnd:v}=function(t,e,i,s){const n=be(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),o=(i-e)/2,a=Math.min(o,s*e/2),r=t=>{const e=(i-Math.min(o,t))*s/2;return K(t,0,Math.min(o,e))};return{outerStart:r(n.outerStart),outerEnd:r(n.outerEnd),innerStart:K(n.innerStart,0,a),innerEnd:K(n.innerEnd,0,a)}}(e,u,d,b-m),w=d-x,k=d-_,C=m+x/w,M=b-_/k,S=u+y,L=u+v,P=m+y/S,D=b-v/L;if(t.beginPath(),o){if(t.arc(a,r,d,C,M),_>0){const e=Sn(k,M,a,r);t.arc(e.x,e.y,_,M,b+T)}const e=Sn(L,b,a,r);if(t.lineTo(e.x,e.y),v>0){const e=Sn(L,D,a,r);t.arc(e.x,e.y,v,b+T,D+Math.PI)}if(t.arc(a,r,u,b-v/u,m+y/u,!0),y>0){const e=Sn(S,P,a,r);t.arc(e.x,e.y,y,P+Math.PI,m-T)}const i=Sn(w,m,a,r);if(t.lineTo(i.x,i.y),x>0){const e=Sn(w,C,a,r);t.arc(e.x,e.y,x,m-T,C)}}else{t.moveTo(a,r);const e=Math.cos(C)*d+a,i=Math.sin(C)*d+r;t.lineTo(e,i);const s=Math.cos(M)*d+a,n=Math.sin(M)*d+r;t.lineTo(s,n)}t.closePath()}Object.defineProperties(wn,{defaults:{enumerable:Cn,value:Jt},instances:{enumerable:Cn,value:xn},overrides:{enumerable:Cn,value:Xt},registry:{enumerable:Cn,value:cs},version:{enumerable:Cn,value:"3.9.1"},getChart:{enumerable:Cn,value:yn},register:{enumerable:Cn,value:(...t)=>{cs.add(...t),kn()}},unregister:{enumerable:Cn,value:(...t)=>{cs.remove(...t),kn()}}});class En extends Gi{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,i){const s=this.getProps(["x","y"],i),{angle:n,distance:o}=Z(s,{x:t,y:e}),{startAngle:a,endAngle:r,innerRadius:l,outerRadius:h,circumference:c}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),u=this.options.spacing/2,f=d(c,r-a)>=P||q(n,a,r),g=G(o,l+u,h+u);return f&&g}getCenterPoint(t){const{x:e,y:i,startAngle:s,endAngle:n,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:r,spacing:l}=this.options,h=(s+n)/2,c=(o+a+l+r)/2;return{x:e+Math.cos(h)*c,y:i+Math.sin(h)*c}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,s=(e.offset||0)/2,n=(e.spacing||0)/2,o=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>P?Math.floor(i/P):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();let a=0;if(s){a=s/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*a,Math.sin(e)*a),this.circumference>=E&&(a=s)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const r=function(t,e,i,s,n){const{fullCircles:o,startAngle:a,circumference:r}=e;let l=e.endAngle;if(o){Ln(t,e,i,s,a+P,n);for(let e=0;e<o;++e)t.fill();isNaN(r)||(l=a+r%P,r%P==0&&(l+=P))}return Ln(t,e,i,s,l,n),t.fill(),l}(t,this,a,n,o);(function(t,e,i,s,n,o){const{options:a}=e,{borderWidth:r,borderJoinStyle:l}=a,h="inner"===a.borderAlign;r&&(h?(t.lineWidth=2*r,t.lineJoin=l||"round"):(t.lineWidth=r,t.lineJoin=l||"bevel"),e.fullCircles&&function(t,e,i){const{x:s,y:n,startAngle:o,pixelMargin:a,fullCircles:r}=e,l=Math.max(e.outerRadius-a,0),h=e.innerRadius+a;let c;for(i&&Mn(t,e,o+P),t.beginPath(),t.arc(s,n,h,o+P,o,!0),c=0;c<r;++c)t.stroke();for(t.beginPath(),t.arc(s,n,l,o,o+P),c=0;c<r;++c)t.stroke()}(t,e,h),h&&Mn(t,e,n),Ln(t,e,i,s,n,o),t.stroke())})(t,this,a,n,r,o),t.restore()}}function Pn(t,e,i=e){t.lineCap=d(i.borderCapStyle,e.borderCapStyle),t.setLineDash(d(i.borderDash,e.borderDash)),t.lineDashOffset=d(i.borderDashOffset,e.borderDashOffset),t.lineJoin=d(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=d(i.borderWidth,e.borderWidth),t.strokeStyle=d(i.borderColor,e.borderColor)}function Dn(t,e,i){t.lineTo(i.x,i.y)}function On(t,e,i={}){const s=t.length,{start:n=0,end:o=s-1}=i,{start:a,end:r}=e,l=Math.max(n,a),h=Math.min(o,r),c=n<a&&o<a||n>r&&o>r;return{count:s,start:l,loop:e.loop,ilen:h<l&&!c?s+h-l:h-l}}function An(t,e,i,s){const{points:n,options:o}=e,{count:a,start:r,loop:l,ilen:h}=On(n,i,s),c=function(t){return t.stepped?le:t.tension||"monotone"===t.cubicInterpolationMode?he:Dn}(o);let d,u,f,{move:g=!0,reverse:p}=s||{};for(d=0;d<=h;++d)u=n[(r+(p?h-d:d))%a],u.skip||(g?(t.moveTo(u.x,u.y),g=!1):c(t,f,u,p,o.stepped),f=u);return l&&(u=n[(r+(p?h:0))%a],c(t,f,u,p,o.stepped)),!!l}function Tn(t,e,i,s){const n=e.points,{count:o,start:a,ilen:r}=On(n,i,s),{move:l=!0,reverse:h}=s||{};let c,d,u,f,g,p,m=0,b=0;const x=t=>(a+(h?r-t:t))%o,_=()=>{f!==g&&(t.lineTo(m,g),t.lineTo(m,f),t.lineTo(m,p))};for(l&&(d=n[x(0)],t.moveTo(d.x,d.y)),c=0;c<=r;++c){if(d=n[x(c)],d.skip)continue;const e=d.x,i=d.y,s=0|e;s===u?(i<f?f=i:i>g&&(g=i),m=(b*m+e)/++b):(_(),t.lineTo(e,i),u=s,b=0,f=g=i),p=i}_()}function zn(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||i?An:Tn}En.id="arc",En.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},En.defaultRoutes={backgroundColor:"backgroundColor"};const Rn="function"==typeof Path2D;class In extends Gi{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 i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const s=i.spanGaps?this._loop:this._fullLoop;je(this._points,i,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=function(t,e){const i=t.points,s=t.options.spanGaps,n=i.length;if(!n)return[];const o=!!t._loop,{start:a,end:r}=function(t,e,i,s){let n=0,o=e-1;if(i&&!s)for(;n<e&&!t[n].skip;)n++;for(;n<e&&t[n].skip;)n++;for(n%=e,i&&(o+=n);o>n&&t[o%e].skip;)o--;return o%=e,{start:n,end:o}}(i,n,o,s);return function(t,e,i,s){return s&&s.setContext&&i?function(t,e,i,s){const n=t._chart.getContext(),o=mi(t.options),{_datasetIndex:a,options:{spanGaps:r}}=t,l=i.length,h=[];let c=o,d=e[0].start,u=d;function f(t,e,s,n){const o=r?-1:1;if(t!==e){for(t+=l;i[t%l].skip;)t-=o;for(;i[e%l].skip;)e+=o;t%l!=e%l&&(h.push({start:t%l,end:e%l,loop:s,style:n}),c=n,d=e%l)}}for(const t of e){d=r?d:t.start;let e,o=i[d%l];for(u=d+1;u<=t.end;u++){const r=i[u%l];e=mi(s.setContext(ke(n,{type:"segment",p0:o,p1:r,p0DataIndex:(u-1)%l,p1DataIndex:u%l,datasetIndex:a}))),bi(e,c)&&f(d,u-1,t.loop,c),o=r,c=e}d<u-1&&f(d,u-1,t.loop,c)}return h}(t,e,i,s):e}(t,!0===s?[{start:a,end:r,loop:o}]:function(t,e,i,s){const n=t.length,o=[];let a,r=e,l=t[e];for(a=e+1;a<=i;++a){const i=t[a%n];i.skip||i.stop?l.skip||(s=!1,o.push({start:e%n,end:(a-1)%n,loop:s}),e=r=i.stop?a:null):(r=a,l.skip&&(e=a)),l=i}return null!==r&&o.push({start:e%n,end:r%n,loop:s}),o}(i,a,r<a?r+n:r,!!t._fullLoop&&0===a&&r===n-1),i,e)}(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,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this.options,s=t[e],n=this.points,o=pi(this,{property:e,start:s,end:s});if(!o.length)return;const a=[],r=function(t){return t.stepped?si:t.tension||"monotone"===t.cubicInterpolationMode?ni:ii}(i);let l,h;for(l=0,h=o.length;l<h;++l){const{start:h,end:c}=o[l],d=n[h],u=n[c];if(d===u){a.push(d);continue}const f=r(d,u,Math.abs((s-d[e])/(u[e]-d[e])),i.stepped);f[e]=t[e],a.push(f)}return 1===a.length?a[0]:a}pathSegment(t,e,i){return zn(this)(t,this,e,i)}path(t,e,i){const s=this.segments,n=zn(this);let o=this._loop;e=e||0,i=i||this.points.length-e;for(const a of s)o&=n(t,this,a,{start:e,end:e+i-1});return!!o}draw(t,e,i,s){const n=this.options||{};(this.points||[]).length&&n.borderWidth&&(t.save(),function(t,e,i,s){Rn&&!e.options.segment?function(t,e,i,s){let n=e._path;n||(n=e._path=new Path2D,e.path(n,i,s)&&n.closePath()),Pn(t,e.options),t.stroke(n)}(t,e,i,s):function(t,e,i,s){const{segments:n,options:o}=e,a=zn(e);for(const r of n)Pn(t,o,r.style),t.beginPath(),a(t,e,r,{start:i,end:i+s-1})&&t.closePath(),t.stroke()}(t,e,i,s)}(t,this,i,s),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Fn(t,e,i,s){const n=t.options,{[i]:o}=t.getProps([i],s);return Math.abs(e-o)<n.radius+n.hitRadius}In.id="line",In.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},In.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},In.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class Vn extends Gi{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,i){const s=this.options,{x:n,y:o}=this.getProps(["x","y"],i);return Math.pow(t-n,2)+Math.pow(e-o,2)<Math.pow(s.hitRadius+s.radius,2)}inXRange(t,e){return Fn(this,t,"x",e)}inYRange(t,e){return Fn(this,t,"y",e)}getCenterPoint(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}size(t){let e=(t=t||this.options||{}).radius||0;return e=Math.max(e,e&&t.hoverRadius||0),2*(e+(e&&t.borderWidth||0))}draw(t,e){const i=this.options;this.skip||i.radius<.1||!oe(this,e,this.size(i)/2)||(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,se(t,i,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function Nn(t,e){const{x:i,y:s,base:n,width:o,height:a}=t.getProps(["x","y","base","width","height"],e);let r,l,h,c,d;return t.horizontal?(d=a/2,r=Math.min(i,n),l=Math.max(i,n),h=s-d,c=s+d):(d=o/2,r=i-d,l=i+d,h=Math.min(s,n),c=Math.max(s,n)),{left:r,top:h,right:l,bottom:c}}function Hn(t,e,i,s){return t?0:K(e,i,s)}function Bn(t,e,i,s){const n=null===e,o=null===i,a=t&&!(n&&o)&&Nn(t,s);return a&&(n||G(e,a.left,a.right))&&(o||G(i,a.top,a.bottom))}function Wn(t,e){t.rect(e.x,e.y,e.w,e.h)}function jn(t,e,i={}){const s=t.x!==i.x?-e:0,n=t.y!==i.y?-e:0,o=(t.x+t.w!==i.x+i.w?e:0)-s,a=(t.y+t.h!==i.y+i.h?e:0)-n;return{x:t.x+s,y:t.y+n,w:t.w+o,h:t.h+a,radius:t.radius}}Vn.id="point",Vn.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Vn.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class $n extends Gi{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:i,backgroundColor:s}}=this,{inner:n,outer:o}=function(t){const e=Nn(t),i=e.right-e.left,s=e.bottom-e.top,n=function(t,e,i){const s=t.options.borderWidth,n=t.borderSkipped,o=xe(s);return{t:Hn(n.top,o.top,0,i),r:Hn(n.right,o.right,0,e),b:Hn(n.bottom,o.bottom,0,i),l:Hn(n.left,o.left,0,e)}}(t,i/2,s/2),o=function(t,e,i){const{enableBorderRadius:s}=t.getProps(["enableBorderRadius"]),n=t.options.borderRadius,o=_e(n),a=Math.min(e,i),r=t.borderSkipped,h=s||l(n);return{topLeft:Hn(!h||r.top||r.left,o.topLeft,0,a),topRight:Hn(!h||r.top||r.right,o.topRight,0,a),bottomLeft:Hn(!h||r.bottom||r.left,o.bottomLeft,0,a),bottomRight:Hn(!h||r.bottom||r.right,o.bottomRight,0,a)}}(t,i/2,s/2);return{outer:{x:e.left,y:e.top,w:i,h:s,radius:o},inner:{x:e.left+n.l,y:e.top+n.t,w:i-n.l-n.r,h:s-n.t-n.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(n.t,n.l)),topRight:Math.max(0,o.topRight-Math.max(n.t,n.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(n.b,n.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(n.b,n.r))}}}}(this),a=(r=o.radius).topLeft||r.topRight||r.bottomLeft||r.bottomRight?ue:Wn;var r;t.save(),o.w===n.w&&o.h===n.h||(t.beginPath(),a(t,jn(o,e,n)),t.clip(),a(t,jn(n,-e,o)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),a(t,jn(n,e)),t.fillStyle=s,t.fill(),t.restore()}inRange(t,e,i){return Bn(this,t,e,i)}inXRange(t,e){return Bn(this,t,null,e)}inYRange(t,e){return Bn(this,null,t,e)}getCenterPoint(t){const{x:e,y:i,base:s,horizontal:n}=this.getProps(["x","y","base","horizontal"],t);return{x:n?(e+s)/2:e,y:n?i:(i+s)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}$n.id="bar",$n.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},$n.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Zn=Object.freeze({__proto__:null,ArcElement:En,LineElement:In,PointElement:Vn,BarElement:$n});function Yn(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{value:e})}}function Un(t){t.data.datasets.forEach((t=>{Yn(t)}))}var Xn={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,i)=>{if(!i.enabled)return void Un(t);const s=t.width;t.data.datasets.forEach(((e,n)=>{const{_data:o,indexAxis:r}=e,l=t.getDatasetMeta(n),h=o||e.data;if("y"===we([r,t.options.indexAxis]))return;if(!l.controller.supportsDecimation)return;const c=t.scales[l.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(t.options.parsing)return;let d,{start:u,count:f}=function(t,e){const i=e.length;let s,n=0;const{iScale:o}=t,{min:a,max:r,minDefined:l,maxDefined:h}=o.getUserBounds();return l&&(n=K(Q(e,o.axis,a).lo,0,i-1)),s=h?K(Q(e,o.axis,r).hi+1,n,i)-n:i-n,{start:n,count:s}}(l,h);if(f<=(i.threshold||4*s))Yn(e);else{switch(a(o)&&(e._data=h,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),i.algorithm){case"lttb":d=function(t,e,i,s,n){const o=n.samples||s;if(o>=i)return t.slice(e,e+i);const a=[],r=(i-2)/(o-2);let l=0;const h=e+i-1;let c,d,u,f,g,p=e;for(a[l++]=t[p],c=0;c<o-2;c++){let s,n=0,o=0;const h=Math.floor((c+1)*r)+1+e,m=Math.min(Math.floor((c+2)*r)+1,i)+e,b=m-h;for(s=h;s<m;s++)n+=t[s].x,o+=t[s].y;n/=b,o/=b;const x=Math.floor(c*r)+1+e,_=Math.min(Math.floor((c+1)*r)+1,i)+e,{x:y,y:v}=t[p];for(u=f=-1,s=x;s<_;s++)f=.5*Math.abs((y-n)*(t[s].y-v)-(y-t[s].x)*(o-v)),f>u&&(u=f,d=t[s],g=s);a[l++]=d,p=g}return a[l++]=t[h],a}(h,u,f,s,i);break;case"min-max":d=function(t,e,i,s){let n,o,r,l,h,c,d,u,f,g,p=0,m=0;const b=[],x=e+i-1,_=t[e].x,y=t[x].x-_;for(n=e;n<e+i;++n){o=t[n],r=(o.x-_)/y*s,l=o.y;const e=0|r;if(e===h)l<f?(f=l,c=n):l>g&&(g=l,d=n),p=(m*p+o.x)/++m;else{const i=n-1;if(!a(c)&&!a(d)){const e=Math.min(c,d),s=Math.max(c,d);e!==u&&e!==i&&b.push({...t[e],x:p}),s!==u&&s!==i&&b.push({...t[s],x:p})}n>0&&i!==u&&b.push(t[i]),b.push(o),h=e,m=0,f=g=l,c=d=u=n}}return b}(h,u,f,s);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}e._decimated=d}}))},destroy(t){Un(t)}};function qn(t,e,i,s){if(s)return;let n=e[t],o=i[t];return"angle"===t&&(n=X(n),o=X(o)),{property:t,start:n,end:o}}function Kn(t,e,i){for(;e>t;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function Gn(t,e,i,s){return t&&e?s(t[i],e[i]):t?t[i]:e?e[i]:0}function Jn(t,e){let i=[],s=!1;return r(t)?(s=!0,i=t):i=function(t,e){const{x:i=null,y:s=null}=t||{},n=e.points,o=[];return e.segments.forEach((({start:t,end:e})=>{e=Kn(t,e,n);const a=n[t],r=n[e];null!==s?(o.push({x:a.x,y:s}),o.push({x:r.x,y:s})):null!==i&&(o.push({x:i,y:a.y}),o.push({x:i,y:r.y}))})),o}(t,e),i.length?new In({points:i,options:{tension:0},_loop:s,_fullLoop:s}):null}function Qn(t){return t&&!1!==t.fill}function to(t,e,i){let s=t[e].fill;const n=[e];let o;if(!i)return s;for(;!1!==s&&-1===n.indexOf(s);){if(!h(s))return s;if(o=t[s],!o)return!1;if(o.visible)return s;n.push(s),s=o.fill}return!1}function eo(t,e,i){const s=function(t){const e=t.options,i=e.fill;let s=d(i&&i.target,i);return void 0===s&&(s=!!e.backgroundColor),!1!==s&&null!==s&&(!0===s?"origin":s)}(t);if(l(s))return!isNaN(s.value)&&s;let n=parseFloat(s);return h(n)&&Math.floor(n)===n?function(t,e,i,s){return"-"!==t&&"+"!==t||(i=e+i),!(i===e||i<0||i>=s)&&i}(s[0],e,n,i):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}function io(t,e,i){const s=[];for(let n=0;n<i.length;n++){const o=i[n],{first:a,last:r,point:l}=so(o,e,"x");if(!(!l||a&&r))if(a)s.unshift(l);else if(t.push(l),!r)break}t.push(...s)}function so(t,e,i){const s=t.interpolate(e,i);if(!s)return{};const n=s[i],o=t.segments,a=t.points;let r=!1,l=!1;for(let t=0;t<o.length;t++){const e=o[t],s=a[e.start][i],h=a[e.end][i];if(G(n,s,h)){r=n===s,l=n===h;break}}return{first:r,last:l,point:s}}class no{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){const{x:s,y:n,radius:o}=this;return e=e||{start:0,end:P},t.arc(s,n,o,e.end,e.start,!0),!i.bounds}interpolate(t){const{x:e,y:i,radius:s}=this,n=t.angle;return{x:e+Math.cos(n)*s,y:i+Math.sin(n)*s,angle:n}}}function oo(t,e,i){const s=function(t){const{chart:e,fill:i,line:s}=t;if(h(i))return function(t,e){const i=t.getDatasetMeta(e);return i&&t.isDatasetVisible(e)?i.dataset:null}(e,i);if("stack"===i)return function(t){const{scale:e,index:i,line:s}=t,n=[],o=s.segments,a=s.points,r=function(t,e){const i=[],s=t.getMatchingVisibleMetas("line");for(let t=0;t<s.length;t++){const n=s[t];if(n.index===e)break;n.hidden||i.unshift(n.dataset)}return i}(e,i);r.push(Jn({x:null,y:e.bottom},s));for(let t=0;t<o.length;t++){const e=o[t];for(let t=e.start;t<=e.end;t++)io(n,a[t],r)}return new In({points:n,options:{}})}(t);if("shape"===i)return!0;const n=function(t){return(t.scale||{}).getPointPositionForValue?function(t){const{scale:e,fill:i}=t,s=e.options,n=e.getLabels().length,o=s.reverse?e.max:e.min,a=function(t,e,i){let s;return s="start"===t?i:"end"===t?e.options.reverse?e.min:e.max:l(t)?t.value:e.getBaseValue(),s}(i,e,o),r=[];if(s.grid.circular){const t=e.getPointPositionForValue(0,o);return new no({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(a)})}for(let t=0;t<n;++t)r.push(e.getPointPositionForValue(t,a));return r}(t):function(t){const{scale:e={},fill:i}=t,s=function(t,e){let i=null;return"start"===t?i=e.bottom:"end"===t?i=e.top:l(t)?i=e.getPixelForValue(t.value):e.getBasePixel&&(i=e.getBasePixel()),i}(i,e);if(h(s)){const t=e.isHorizontal();return{x:t?s:null,y:t?null:s}}return null}(t)}(t);return n instanceof no?n:Jn(n,s)}(e),{line:n,scale:o,axis:a}=e,r=n.options,c=r.fill,d=r.backgroundColor,{above:u=d,below:f=d}=c||{};s&&n.points.length&&(ae(t,i),function(t,e){const{line:i,target:s,above:n,below:o,area:a,scale:r}=e,l=i._loop?"angle":e.axis;t.save(),"x"===l&&o!==n&&(ao(t,s,a.top),ro(t,{line:i,target:s,color:n,scale:r,property:l}),t.restore(),t.save(),ao(t,s,a.bottom)),ro(t,{line:i,target:s,color:o,scale:r,property:l}),t.restore()}(t,{line:n,target:s,above:u,below:f,area:i,scale:o,axis:a}),re(t))}function ao(t,e,i){const{segments:s,points:n}=e;let o=!0,a=!1;t.beginPath();for(const r of s){const{start:s,end:l}=r,h=n[s],c=n[Kn(s,l,n)];o?(t.moveTo(h.x,h.y),o=!1):(t.lineTo(h.x,i),t.lineTo(h.x,h.y)),a=!!e.pathSegment(t,r,{move:a}),a?t.closePath():t.lineTo(c.x,i)}t.lineTo(e.first().x,i),t.closePath(),t.clip()}function ro(t,e){const{line:i,target:s,property:n,color:o,scale:a}=e,r=function(t,e,i){const s=t.segments,n=t.points,o=e.points,a=[];for(const t of s){let{start:s,end:r}=t;r=Kn(s,r,n);const l=qn(i,n[s],n[r],t.loop);if(!e.segments){a.push({source:t,target:l,start:n[s],end:n[r]});continue}const h=pi(e,l);for(const e of h){const s=qn(i,o[e.start],o[e.end],e.loop),r=gi(t,n,s);for(const t of r)a.push({source:t,target:e,start:{[i]:Gn(l,s,"start",Math.max)},end:{[i]:Gn(l,s,"end",Math.min)}})}}return a}(i,s,n);for(const{source:e,target:l,start:h,end:c}of r){const{style:{backgroundColor:r=o}={}}=e,d=!0!==s;t.save(),t.fillStyle=r,lo(t,a,d&&qn(n,h,c)),t.beginPath();const u=!!i.pathSegment(t,e);let f;if(d){u?t.closePath():ho(t,s,c,n);const e=!!s.pathSegment(t,l,{move:u,reverse:!0});f=u&&e,f||ho(t,s,h,n)}t.closePath(),t.fill(f?"evenodd":"nonzero"),t.restore()}}function lo(t,e,i){const{top:s,bottom:n}=e.chart.chartArea,{property:o,start:a,end:r}=i||{};"x"===o&&(t.beginPath(),t.rect(a,s,r-a,n-s),t.clip())}function ho(t,e,i,s){const n=e.interpolate(i,s);n&&t.lineTo(n.x,n.y)}var co={id:"filler",afterDatasetsUpdate(t,e,i){const s=(t.data.datasets||[]).length,n=[];let o,a,r,l;for(a=0;a<s;++a)o=t.getDatasetMeta(a),r=o.dataset,l=null,r&&r.options&&r instanceof In&&(l={visible:t.isDatasetVisible(a),index:a,fill:eo(r,a,s),chart:t,axis:o.controller.options.indexAxis,scale:o.vScale,line:r}),o.$filler=l,n.push(l);for(a=0;a<s;++a)l=n[a],l&&!1!==l.fill&&(l.fill=to(n,a,i.propagate))},beforeDraw(t,e,i){const s="beforeDraw"===i.drawTime,n=t.getSortedVisibleDatasetMetas(),o=t.chartArea;for(let e=n.length-1;e>=0;--e){const i=n[e].$filler;i&&(i.line.updateControlPoints(o,i.axis),s&&i.fill&&oo(t.ctx,i,o))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const s=t.getSortedVisibleDatasetMetas();for(let e=s.length-1;e>=0;--e){const i=s[e].$filler;Qn(i)&&oo(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,i){const s=e.meta.$filler;Qn(s)&&"beforeDatasetDraw"===i.drawTime&&oo(t.ctx,s,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const uo=(t,e)=>{let{boxHeight:i=e,boxWidth:s=e}=t;return t.usePointStyle&&(i=Math.min(i,e),s=t.pointStyleWidth||Math.min(s,e)),{boxWidth:s,boxHeight:i,itemHeight:Math.max(e,i)}};class fo extends Gi{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,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,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=f(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,i)=>t.sort(e,i,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 i=t.labels,s=ve(i.font),n=s.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:r}=uo(i,n);let l,h;e.font=s.string,this.isHorizontal()?(l=this.maxWidth,h=this._fitRows(o,n,a,r)+10):(h=this.maxHeight,l=this._fitCols(o,n,a,r)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(h,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,s){const{ctx:n,maxWidth:o,options:{labels:{padding:a}}}=this,r=this.legendHitBoxes=[],l=this.lineWidths=[0],h=s+a;let c=t;n.textAlign="left",n.textBaseline="middle";let d=-1,u=-h;return this.legendItems.forEach(((t,f)=>{const g=i+e/2+n.measureText(t.text).width;(0===f||l[l.length-1]+g+2*a>o)&&(c+=h,l[l.length-(f>0?0:1)]=0,u+=h,d++),r[f]={left:0,top:u,row:d,width:g,height:s},l[l.length-1]+=g+a})),c}_fitCols(t,e,i,s){const{ctx:n,maxHeight:o,options:{labels:{padding:a}}}=this,r=this.legendHitBoxes=[],l=this.columnSizes=[],h=o-t;let c=a,d=0,u=0,f=0,g=0;return this.legendItems.forEach(((t,o)=>{const p=i+e/2+n.measureText(t.text).width;o>0&&u+s+2*a>h&&(c+=d+a,l.push({width:d,height:u}),f+=d+a,g++,d=u=0),r[o]={left:f,top:u,col:g,width:p,height:s},d=Math.max(d,p),u+=s+a})),c+=d,l.push({width:d,height:u}),c}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:s},rtl:n}}=this,o=hi(n,this.left,this.width);if(this.isHorizontal()){let n=0,a=rt(i,this.left+s,this.right-this.lineWidths[n]);for(const r of e)n!==r.row&&(n=r.row,a=rt(i,this.left+s,this.right-this.lineWidths[n])),r.top+=this.top+t+s,r.left=o.leftForLtr(o.x(a),r.width),a+=r.width+s}else{let n=0,a=rt(i,this.top+t+s,this.bottom-this.columnSizes[n].height);for(const r of e)r.col!==n&&(n=r.col,a=rt(i,this.top+t+s,this.bottom-this.columnSizes[n].height)),r.top=a,r.left+=this.left+s,r.left=o.leftForLtr(o.x(r.left),r.width),a+=r.height+s}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;ae(t,this),this._draw(),re(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:s}=this,{align:n,labels:o}=t,a=Jt.color,r=hi(t.rtl,this.left,this.width),l=ve(o.font),{color:h,padding:c}=o,u=l.size,f=u/2;let g;this.drawTitle(),s.textAlign=r.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=l.string;const{boxWidth:p,boxHeight:m,itemHeight:b}=uo(o,u),x=this.isHorizontal(),_=this._computeTitleHeight();g=x?{x:rt(n,this.left+c,this.right-i[0]),y:this.top+c+_,line:0}:{x:this.left+c,y:rt(n,this.top+_+c,this.bottom-e[0].height),line:0},ci(this.ctx,t.textDirection);const y=b+c;this.legendItems.forEach(((v,w)=>{s.strokeStyle=v.fontColor||h,s.fillStyle=v.fontColor||h;const k=s.measureText(v.text).width,C=r.textAlign(v.textAlign||(v.textAlign=o.textAlign)),M=p+f+k;let S=g.x,L=g.y;r.setWidth(this.width),x?w>0&&S+M+c>this.right&&(L=g.y+=y,g.line++,S=g.x=rt(n,this.left+c,this.right-i[g.line])):w>0&&L+y>this.bottom&&(S=g.x=S+e[g.line].width+c,g.line++,L=g.y=rt(n,this.top+_+c,this.bottom-e[g.line].height)),function(t,e,i){if(isNaN(p)||p<=0||isNaN(m)||m<0)return;s.save();const n=d(i.lineWidth,1);if(s.fillStyle=d(i.fillStyle,a),s.lineCap=d(i.lineCap,"butt"),s.lineDashOffset=d(i.lineDashOffset,0),s.lineJoin=d(i.lineJoin,"miter"),s.lineWidth=n,s.strokeStyle=d(i.strokeStyle,a),s.setLineDash(d(i.lineDash,[])),o.usePointStyle){const a={radius:m*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:n},l=r.xPlus(t,p/2);ne(s,a,l,e+f,o.pointStyleWidth&&p)}else{const o=e+Math.max((u-m)/2,0),a=r.leftForLtr(t,p),l=_e(i.borderRadius);s.beginPath(),Object.values(l).some((t=>0!==t))?ue(s,{x:a,y:o,w:p,h:m,radius:l}):s.rect(a,o,p,m),s.fill(),0!==n&&s.stroke()}s.restore()}(r.x(S),L,v),S=((t,e,i,s)=>t===(s?"left":"right")?i:"center"===t?(e+i)/2:e)(C,S+p+f,x?S+M:this.right,t.rtl),function(t,e,i){ce(s,i.text,t,e+b/2,l,{strikethrough:i.hidden,textAlign:r.textAlign(i.textAlign)})}(r.x(S),L,v),x?g.x+=M+c:g.y+=y})),di(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=ve(e.font),s=ye(e.padding);if(!e.display)return;const n=hi(t.rtl,this.left,this.width),o=this.ctx,a=e.position,r=i.size/2,l=s.top+r;let h,c=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),h=this.top+l,c=rt(t.align,c,this.right-d);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);h=l+rt(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const u=rt(a,c,c+d);o.textAlign=n.textAlign(at(a)),o.textBaseline="middle",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=i.string,ce(o,e.text,u,h,i)}_computeTitleHeight(){const t=this.options.title,e=ve(t.font),i=ye(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,s,n;if(G(t,this.left,this.right)&&G(e,this.top,this.bottom))for(n=this.legendHitBoxes,i=0;i<n.length;++i)if(s=n[i],G(t,s.left,s.left+s.width)&&G(e,s.top,s.top+s.height))return this.legendItems[i];return null}handleEvent(t){const e=this.options;if(!function(t,e){return!("mousemove"!==t&&"mouseout"!==t||!e.onHover&&!e.onLeave)||!(!e.onClick||"click"!==t&&"mouseup"!==t)}(t.type,e))return;const i=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const o=this._hoveredItem,a=(n=i,null!==(s=o)&&null!==n&&s.datasetIndex===n.datasetIndex&&s.index===n.index);o&&!a&&f(e.onLeave,[t,o,this],this),this._hoveredItem=i,i&&!a&&f(e.onHover,[t,i,this],this)}else i&&f(e.onClick,[t,i,this],this);var s,n}}var go={id:"legend",_element:fo,start(t,e,i){const s=t.legend=new fo({ctx:t.ctx,options:i,chart:t});Ts.configure(t,s,i),Ts.addBox(t,s)},stop(t){Ts.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){const s=t.legend;Ts.configure(t,s,i),s.options=i},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,i){const s=e.datasetIndex,n=i.chart;n.isDatasetVisible(s)?(n.hide(s),e.hidden=!0):(n.show(s),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:i,pointStyle:s,textAlign:n,color:o}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const a=t.controller.getStyle(i?0:void 0),r=ye(a.borderWidth);return{text:e[t.index].label,fillStyle:a.backgroundColor,fontColor:o,hidden:!t.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(r.width+r.height)/4,strokeStyle:a.borderColor,pointStyle:s||a.pointStyle,rotation:a.rotation,textAlign:n||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 po extends Gi{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 i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const s=r(i.text)?i.text.length:1;this._padding=ye(i.padding);const n=s*ve(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=n:this.width=n}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:s,right:n,options:o}=this,a=o.align;let r,l,h,c=0;return this.isHorizontal()?(l=rt(a,i,n),h=e+t,r=n-i):("left"===o.position?(l=i+t,h=rt(a,s,e),c=-.5*E):(l=n-t,h=rt(a,e,s),c=.5*E),r=s-e),{titleX:l,titleY:h,maxWidth:r,rotation:c}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=ve(e.font),s=i.lineHeight/2+this._padding.top,{titleX:n,titleY:o,maxWidth:a,rotation:r}=this._drawArgs(s);ce(t,e.text,0,0,i,{color:e.color,maxWidth:a,rotation:r,textAlign:at(e.align),textBaseline:"middle",translation:[n,o]})}}var mo={id:"title",_element:po,start(t,e,i){!function(t,e){const i=new po({ctx:t.ctx,options:e,chart:t});Ts.configure(t,i,e),Ts.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){const e=t.titleBlock;Ts.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const s=t.titleBlock;Ts.configure(t,s,i),s.options=i},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 bo=new WeakMap;var xo={id:"subtitle",start(t,e,i){const s=new po({ctx:t.ctx,options:i,chart:t});Ts.configure(t,s,i),Ts.addBox(t,s),bo.set(t,s)},stop(t){Ts.removeBox(t,bo.get(t)),bo.delete(t)},beforeUpdate(t,e,i){const s=bo.get(t);Ts.configure(t,s,i),s.options=i},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 _o={average(t){if(!t.length)return!1;let e,i,s=0,n=0,o=0;for(e=0,i=t.length;e<i;++e){const i=t[e].element;if(i&&i.hasValue()){const t=i.tooltipPosition();s+=t.x,n+=t.y,++o}}return{x:s/o,y:n/o}},nearest(t,e){if(!t.length)return!1;let i,s,n,o=e.x,a=e.y,r=Number.POSITIVE_INFINITY;for(i=0,s=t.length;i<s;++i){const s=t[i].element;if(s&&s.hasValue()){const t=Y(e,s.getCenterPoint());t<r&&(r=t,n=s)}}if(n){const t=n.tooltipPosition();o=t.x,a=t.y}return{x:o,y:a}}};function yo(t,e){return e&&(r(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function vo(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function wo(t,e){const{element:i,datasetIndex:s,index:n}=e,o=t.getDatasetMeta(s).controller,{label:a,value:r}=o.getLabelAndValue(n);return{chart:t,label:a,parsed:o.getParsed(n),raw:t.data.datasets[s].data[n],formattedValue:r,dataset:o.getDataset(),dataIndex:n,datasetIndex:s,element:i}}function ko(t,e){const i=t.chart.ctx,{body:s,footer:n,title:o}=t,{boxWidth:a,boxHeight:r}=e,l=ve(e.bodyFont),h=ve(e.titleFont),c=ve(e.footerFont),d=o.length,u=n.length,f=s.length,p=ye(e.padding);let m=p.height,b=0,x=s.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);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(r,l.lineHeight):l.lineHeight)+(x-f)*l.lineHeight+(x-1)*e.bodySpacing),u&&(m+=e.footerMarginTop+u*c.lineHeight+(u-1)*e.footerSpacing);let _=0;const y=function(t){b=Math.max(b,i.measureText(t).width+_)};return i.save(),i.font=h.string,g(t.title,y),i.font=l.string,g(t.beforeBody.concat(t.afterBody),y),_=e.displayColors?a+2+e.boxPadding:0,g(s,(t=>{g(t.before,y),g(t.lines,y),g(t.after,y)})),_=0,i.font=c.string,g(t.footer,y),i.restore(),b+=p.width,{width:b,height:m}}function Co(t,e,i,s){const{x:n,width:o}=i,{width:a,chartArea:{left:r,right:l}}=t;let h="center";return"center"===s?h=n<=(r+l)/2?"left":"right":n<=o/2?h="left":n>=a-o/2&&(h="right"),function(t,e,i,s){const{x:n,width:o}=s,a=i.caretSize+i.caretPadding;return"left"===t&&n+o+a>e.width||"right"===t&&n-o-a<0||void 0}(h,t,e,i)&&(h="center"),h}function Mo(t,e,i){const s=i.yAlign||e.yAlign||function(t,e){const{y:i,height:s}=e;return i<s/2?"top":i>t.height-s/2?"bottom":"center"}(t,i);return{xAlign:i.xAlign||e.xAlign||Co(t,e,i,s),yAlign:s}}function So(t,e,i,s){const{caretSize:n,caretPadding:o,cornerRadius:a}=t,{xAlign:r,yAlign:l}=i,h=n+o,{topLeft:c,topRight:d,bottomLeft:u,bottomRight:f}=_e(a);let g=function(t,e){let{x:i,width:s}=t;return"right"===e?i-=s:"center"===e&&(i-=s/2),i}(e,r);const p=function(t,e,i){let{y:s,height:n}=t;return"top"===e?s+=i:s-="bottom"===e?n+i:n/2,s}(e,l,h);return"center"===l?"left"===r?g+=h:"right"===r&&(g-=h):"left"===r?g-=Math.max(c,u)+n:"right"===r&&(g+=Math.max(d,f)+n),{x:K(g,0,s.width-e.width),y:K(p,0,s.height-e.height)}}function Lo(t,e,i){const s=ye(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-s.right:t.x+s.left}function Eo(t){return yo([],vo(t))}function Po(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}class Do extends Gi{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,i=this.options.setContext(this.getContext()),s=i.enabled&&e.options.animation&&i.animations,n=new ki(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(n)),n}getContext(){return this.$context||(this.$context=(this,ke(this.chart.getContext(),{tooltip:this,tooltipItems:this._tooltipItems,type:"tooltip"})))}getTitle(t,e){const{callbacks:i}=e,s=i.beforeTitle.apply(this,[t]),n=i.title.apply(this,[t]),o=i.afterTitle.apply(this,[t]);let a=[];return a=yo(a,vo(s)),a=yo(a,vo(n)),a=yo(a,vo(o)),a}getBeforeBody(t,e){return Eo(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:i}=e,s=[];return g(t,(t=>{const e={before:[],lines:[],after:[]},n=Po(i,t);yo(e.before,vo(n.beforeLabel.call(this,t))),yo(e.lines,n.label.call(this,t)),yo(e.after,vo(n.afterLabel.call(this,t))),s.push(e)})),s}getAfterBody(t,e){return Eo(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:i}=e,s=i.beforeFooter.apply(this,[t]),n=i.footer.apply(this,[t]),o=i.afterFooter.apply(this,[t]);let a=[];return a=yo(a,vo(s)),a=yo(a,vo(n)),a=yo(a,vo(o)),a}_createItems(t){const e=this._active,i=this.chart.data,s=[],n=[],o=[];let a,r,l=[];for(a=0,r=e.length;a<r;++a)l.push(wo(this.chart,e[a]));return t.filter&&(l=l.filter(((e,s,n)=>t.filter(e,s,n,i)))),t.itemSort&&(l=l.sort(((e,s)=>t.itemSort(e,s,i)))),g(l,(e=>{const i=Po(t.callbacks,e);s.push(i.labelColor.call(this,e)),n.push(i.labelPointStyle.call(this,e)),o.push(i.labelTextColor.call(this,e))})),this.labelColors=s,this.labelPointStyles=n,this.labelTextColors=o,this.dataPoints=l,l}update(t,e){const i=this.options.setContext(this.getContext()),s=this._active;let n,o=[];if(s.length){const t=_o[i.position].call(this,s,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const e=this._size=ko(this,i),a=Object.assign({},t,e),r=Mo(this.chart,i,a),l=So(i,a,r,this.chart);this.xAlign=r.xAlign,this.yAlign=r.yAlign,n={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(n={opacity:0});this._tooltipItems=o,this.$context=void 0,n&&this._resolveAnimations().update(this,n),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,s){const n=this.getCaretPosition(t,i,s);e.lineTo(n.x1,n.y1),e.lineTo(n.x2,n.y2),e.lineTo(n.x3,n.y3)}getCaretPosition(t,e,i){const{xAlign:s,yAlign:n}=this,{caretSize:o,cornerRadius:a}=i,{topLeft:r,topRight:l,bottomLeft:h,bottomRight:c}=_e(a),{x:d,y:u}=t,{width:f,height:g}=e;let p,m,b,x,_,y;return"center"===n?(_=u+g/2,"left"===s?(p=d,m=p-o,x=_+o,y=_-o):(p=d+f,m=p+o,x=_-o,y=_+o),b=p):(m="left"===s?d+Math.max(r,h)+o:"right"===s?d+f-Math.max(l,c)-o:this.caretX,"top"===n?(x=u,_=x-o,p=m-o,b=m+o):(x=u+g,_=x+o,p=m+o,b=m-o),y=x),{x1:p,x2:m,x3:b,y1:x,y2:_,y3:y}}drawTitle(t,e,i){const s=this.title,n=s.length;let o,a,r;if(n){const l=hi(i.rtl,this.x,this.width);for(t.x=Lo(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline="middle",o=ve(i.titleFont),a=i.titleSpacing,e.fillStyle=i.titleColor,e.font=o.string,r=0;r<n;++r)e.fillText(s[r],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+a,r+1===n&&(t.y+=i.titleMarginBottom-a)}}_drawColorBox(t,e,i,s,n){const o=this.labelColors[i],a=this.labelPointStyles[i],{boxHeight:r,boxWidth:h,boxPadding:c}=n,d=ve(n.bodyFont),u=Lo(this,"left",n),f=s.x(u),g=r<d.lineHeight?(d.lineHeight-r)/2:0,p=e.y+g;if(n.usePointStyle){const e={radius:Math.min(h,r)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},i=s.leftForLtr(f,h)+h/2,l=p+r/2;t.strokeStyle=n.multiKeyBackground,t.fillStyle=n.multiKeyBackground,se(t,e,i,l),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,se(t,e,i,l)}else{t.lineWidth=l(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const e=s.leftForLtr(f,h-c),i=s.leftForLtr(s.xPlus(f,1),h-c-2),a=_e(o.borderRadius);Object.values(a).some((t=>0!==t))?(t.beginPath(),t.fillStyle=n.multiKeyBackground,ue(t,{x:e,y:p,w:h,h:r,radius:a}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),ue(t,{x:i,y:p+1,w:h-2,h:r-2,radius:a}),t.fill()):(t.fillStyle=n.multiKeyBackground,t.fillRect(e,p,h,r),t.strokeRect(e,p,h,r),t.fillStyle=o.backgroundColor,t.fillRect(i,p+1,h-2,r-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:s}=this,{bodySpacing:n,bodyAlign:o,displayColors:a,boxHeight:r,boxWidth:l,boxPadding:h}=i,c=ve(i.bodyFont);let d=c.lineHeight,u=0;const f=hi(i.rtl,this.x,this.width),p=function(i){e.fillText(i,f.x(t.x+u),t.y+d/2),t.y+=d+n},m=f.textAlign(o);let b,x,_,y,v,w,k;for(e.textAlign=o,e.textBaseline="middle",e.font=c.string,t.x=Lo(this,m,i),e.fillStyle=i.bodyColor,g(this.beforeBody,p),u=a&&"right"!==m?"center"===o?l/2+h:l+2+h:0,y=0,w=s.length;y<w;++y){for(b=s[y],x=this.labelTextColors[y],e.fillStyle=x,g(b.before,p),_=b.lines,a&&_.length&&(this._drawColorBox(e,t,y,f,i),d=Math.max(c.lineHeight,r)),v=0,k=_.length;v<k;++v)p(_[v]),d=c.lineHeight;g(b.after,p)}u=0,d=c.lineHeight,g(this.afterBody,p),t.y-=n}drawFooter(t,e,i){const s=this.footer,n=s.length;let o,a;if(n){const r=hi(i.rtl,this.x,this.width);for(t.x=Lo(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=r.textAlign(i.footerAlign),e.textBaseline="middle",o=ve(i.footerFont),e.fillStyle=i.footerColor,e.font=o.string,a=0;a<n;++a)e.fillText(s[a],r.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+i.footerSpacing}}drawBackground(t,e,i,s){const{xAlign:n,yAlign:o}=this,{x:a,y:r}=t,{width:l,height:h}=i,{topLeft:c,topRight:d,bottomLeft:u,bottomRight:f}=_e(s.cornerRadius);e.fillStyle=s.backgroundColor,e.strokeStyle=s.borderColor,e.lineWidth=s.borderWidth,e.beginPath(),e.moveTo(a+c,r),"top"===o&&this.drawCaret(t,e,i,s),e.lineTo(a+l-d,r),e.quadraticCurveTo(a+l,r,a+l,r+d),"center"===o&&"right"===n&&this.drawCaret(t,e,i,s),e.lineTo(a+l,r+h-f),e.quadraticCurveTo(a+l,r+h,a+l-f,r+h),"bottom"===o&&this.drawCaret(t,e,i,s),e.lineTo(a+u,r+h),e.quadraticCurveTo(a,r+h,a,r+h-u),"center"===o&&"left"===n&&this.drawCaret(t,e,i,s),e.lineTo(a,r+c),e.quadraticCurveTo(a,r,a+c,r),e.closePath(),e.fill(),s.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,s=i&&i.x,n=i&&i.y;if(s||n){const i=_o[t.position].call(this,this._active,this._eventPosition);if(!i)return;const o=this._size=ko(this,t),a=Object.assign({},i,this._size),r=Mo(e,t,a),l=So(t,a,r,e);s._to===l.x&&n._to===l.y||(this.xAlign=r.xAlign,this.yAlign=r.yAlign,this.width=o.width,this.height=o.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const s={width:this.width,height:this.height},n={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=ye(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=i,this.drawBackground(n,t,s,e),ci(t,e.textDirection),n.y+=o.top,this.drawTitle(n,t,e),this.drawBody(n,t,e),this.drawFooter(n,t,e),di(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,s=t.map((({datasetIndex:t,index:e})=>{const i=this.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}})),n=!p(i,s),o=this._positionChanged(s,e);(n||o)&&(this._active=s,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,n=this._active||[],o=this._getActiveElements(t,n,e,i),a=this._positionChanged(o,t),r=e||!p(o,n)||a;return r&&(this._active=o,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),r}_getActiveElements(t,e,i,s){const n=this.options;if("mouseout"===t.type)return[];if(!s)return e;const o=this.chart.getElementsAtEventForMode(t,n.mode,n,i);return n.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:i,caretY:s,options:n}=this,o=_o[n.position].call(this,t,e);return!1!==o&&(i!==o.x||s!==o.y)}}Do.positioners=_o;var Oo={id:"tooltip",_element:Do,positioners:_o,afterInit(t,e,i){i&&(t.tooltip=new Do({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",i))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i,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:n,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,s=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(s>0&&e.dataIndex<s)return i[e.dataIndex]}return""},afterTitle:n,beforeBody:n,beforeLabel:n,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 i=t.formattedValue;return a(i)||(e+=i),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:n,afterBody:n,beforeFooter:n,footer:n,afterFooter:n}},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"]},Ao=Object.freeze({__proto__:null,Decimation:Xn,Filler:co,Legend:go,SubTitle:xo,Title:mo,Tooltip:Oo});class To extends ls{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:i,label:s}of e)t[i]===s&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(a(t))return null;const i=this.getLabels();return e=isFinite(e)&&i[e]===t?e:function(t,e,i,s){const n=t.indexOf(e);return-1===n?((t,e,i,s)=>("string"==typeof e?(i=t.push(e)-1,s.unshift({index:i,label:e})):isNaN(e)&&(i=null),i))(t,e,i,s):n!==t.lastIndexOf(e)?i:n}(i,t,d(e,t),this._addedLabels),((t,e)=>null===t?null:K(Math.round(t),0,e))(e,i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:s}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),e||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,s=[];let n=this.getLabels();n=0===t&&e===n.length-1?n:n.slice(t,e+1),this._valueRange=Math.max(n.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let i=t;i<=e;i++)s.push({value:i});return s}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 zo(t,e,{horizontal:i,minRotation:s}){const n=W(s),o=(i?Math.sin(n):Math.cos(n))||.001,a=.75*e*(""+t).length;return Math.min(e/o,a)}To.id="category",To.defaults={ticks:{callback:To.prototype.getLabelForValue}};class Ro extends ls{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 a(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:s,max:n}=this;const o=t=>s=e?s:t,a=t=>n=i?n:t;if(t){const t=F(s),e=F(n);t<0&&e<0?a(0):t>0&&e>0&&o(0)}if(s===n){let e=1;(n>=Number.MAX_SAFE_INTEGER||s<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*n)),a(n+e),t||o(s-e)}this.min=s,this.max=n}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:s}=t;return s?(e=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const s=function(t,e){const i=[],{bounds:s,step:n,min:o,max:r,precision:l,count:h,maxTicks:c,maxDigits:d,includeBounds:u}=t,f=n||1,g=c-1,{min:p,max:m}=e,b=!a(o),x=!a(r),_=!a(h),y=(m-p)/(d+1);let v,w,k,C,M=V((m-p)/g/f)*f;if(M<1e-14&&!b&&!x)return[{value:p},{value:m}];C=Math.ceil(m/M)-Math.floor(p/M),C>g&&(M=V(C*M/g/f)*f),a(l)||(v=Math.pow(10,l),M=Math.ceil(M*v)/v),"ticks"===s?(w=Math.floor(p/M)*M,k=Math.ceil(m/M)*M):(w=p,k=m),b&&x&&n&&function(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}((r-o)/n,M/1e3)?(C=Math.round(Math.min((r-o)/M,c)),M=(r-o)/C,w=o,k=r):_?(w=b?o:w,k=x?r:k,C=h-1,M=(k-w)/C):(C=(k-w)/M,C=H(C,Math.round(C),M/1e3)?Math.round(C):Math.ceil(C));const S=Math.max($(M),$(w));v=Math.pow(10,a(l)?S:l),w=Math.round(w*v)/v,k=Math.round(k*v)/v;let L=0;for(b&&(u&&w!==o?(i.push({value:o}),w<o&&L++,H(Math.round((w+L*M)*v)/v,o,zo(o,y,t))&&L++):w<o&&L++);L<C;++L)i.push({value:Math.round((w+L*M)*v)/v});return x&&u&&k!==r?i.length&&H(i[i.length-1].value,r,zo(r,y,t))?i[i.length-1].value=r:i.push({value:r}):x&&k!==r||i.push({value:k}),i}({maxTicks:i,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&&B(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,i=this.max;if(super.configure(),this.options.offset&&t.length){const s=(i-e)/Math.max(t.length-1,1)/2;e-=s,i+=s}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return ai(t,this.chart.options.locale,this.options.ticks.format)}}class Io extends Ro{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=h(t)?t:0,this.max=h(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=W(this.options.ticks.minRotation),s=(t?Math.sin(i):Math.cos(i))||.001,n=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,n.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 Fo(t){return 1==t/Math.pow(10,Math.floor(I(t)))}Io.id="linear",Io.defaults={ticks:{callback:Qi.formatters.numeric}};class Vo extends ls{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=Ro.prototype.parse.apply(this,[t,e]);if(0!==i)return h(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=h(t)?Math.max(0,t):null,this.max=h(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,s=this.max;const n=e=>i=t?i:e,o=t=>s=e?s:t,a=(t,e)=>Math.pow(10,Math.floor(I(t))+e);i===s&&(i<=0?(n(1),o(10)):(n(a(i,-1)),o(a(s,1)))),i<=0&&n(a(s,-1)),s<=0&&o(a(i,1)),this._zero&&this.min!==this._suggestedMin&&i===a(this.min,0)&&n(a(i,-1)),this.min=i,this.max=s}buildTicks(){const t=this.options,e=function(t,e){const i=Math.floor(I(e.max)),s=Math.ceil(e.max/Math.pow(10,i)),n=[];let o=c(t.min,Math.pow(10,Math.floor(I(e.min)))),a=Math.floor(I(o)),r=Math.floor(o/Math.pow(10,a)),l=a<0?Math.pow(10,Math.abs(a)):1;do{n.push({value:o,major:Fo(o)}),++r,10===r&&(r=1,++a,l=a>=0?1:l),o=Math.round(r*Math.pow(10,a)*l)/l}while(a<i||a===i&&r<s);const h=c(t.max,o);return n.push({value:h,major:Fo(o)}),n}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&B(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":ai(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=I(t),this._valueRange=I(this.max)-I(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(I(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function No(t){const e=t.ticks;if(e.display&&t.display){const t=ye(e.backdropPadding);return d(e.font&&e.font.size,Jt.font.size)+t.height}return 0}function Ho(t,e,i,s,n){return t===s||t===n?{start:e-i/2,end:e+i/2}:t<s||t>n?{start:e-i,end:e}:{start:e,end:e+i}}function Bo(t,e,i,s,n){const o=Math.abs(Math.sin(i)),a=Math.abs(Math.cos(i));let r=0,l=0;s.start<e.l?(r=(e.l-s.start)/o,t.l=Math.min(t.l,e.l-r)):s.end>e.r&&(r=(s.end-e.r)/o,t.r=Math.max(t.r,e.r+r)),n.start<e.t?(l=(e.t-n.start)/a,t.t=Math.min(t.t,e.t-l)):n.end>e.b&&(l=(n.end-e.b)/a,t.b=Math.max(t.b,e.b+l))}function Wo(t){return 0===t||180===t?"center":t<180?"left":"right"}function jo(t,e,i){return 90===i||270===i?t-=e/2:(i>270||i<90)&&(t-=e),t}function $o(t,e,i,s){const{ctx:n}=t;if(i)n.arc(t.xCenter,t.yCenter,e,0,P);else{let i=t.getPointPosition(0,e);n.moveTo(i.x,i.y);for(let o=1;o<s;o++)i=t.getPointPosition(o,e),n.lineTo(i.x,i.y)}}Vo.id="logarithmic",Vo.defaults={ticks:{callback:Qi.formatters.logarithmic,major:{enabled:!0}}};class Zo extends Ro{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=ye(No(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=h(t)&&!isNaN(t)?t:0,this.max=h(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/No(this.options))}generateTickLabels(t){Ro.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const i=f(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?function(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},i=Object.assign({},e),s=[],n=[],o=t._pointLabels.length,a=t.options.pointLabels,l=a.centerPointLabels?E/o:0;for(let u=0;u<o;u++){const o=a.setContext(t.getPointLabelContext(u));n[u]=o.padding;const f=t.getPointPosition(u,t.drawingArea+n[u],l),g=ve(o.font),p=(h=t.ctx,c=g,d=r(d=t._pointLabels[u])?d:[d],{w:te(h,c.string,d),h:d.length*c.lineHeight});s[u]=p;const m=X(t.getIndexAngle(u)+l),b=Math.round(j(m));Bo(i,e,m,Ho(b,f.x,p.w,0,180),Ho(b,f.y,p.h,90,270))}var h,c,d;t.setCenterPoint(e.l-i.l,i.r-e.r,e.t-i.t,i.b-e.b),t._pointLabelItems=function(t,e,i){const s=[],n=t._pointLabels.length,o=t.options,a=No(o)/2,r=t.drawingArea,l=o.pointLabels.centerPointLabels?E/n:0;for(let o=0;o<n;o++){const n=t.getPointPosition(o,r+a+i[o],l),u=Math.round(j(X(n.angle+T))),f=e[o],g=jo(n.y,f.h,u),p=Wo(u),m=(h=n.x,c=f.w,"right"===(d=p)?h-=c:"center"===d&&(h-=c/2),h);s.push({x:n.x,y:g,textAlign:p,left:m,top:g,right:m+f.w,bottom:g+f.h})}var h,c,d;return s}(t,s,n)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,s){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,s))}getIndexAngle(t){return X(t*(P/(this._pointLabels.length||1))+W(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(a(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(a(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 i=e[t];return function(t,e,i){return ke(t,{label:i,index:e,type:"pointLabel"})}(this.getContext(),t,i)}}getPointPosition(t,e,i=0){const s=this.getIndexAngle(t)-T+i;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:i,right:s,bottom:n}=this._pointLabelItems[t];return{left:e,top:i,right:s,bottom:n}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),$o(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:i,grid:s}=e,n=this._pointLabels.length;let o,r,l;if(e.pointLabels.display&&function(t,e){const{ctx:i,options:{pointLabels:s}}=t;for(let n=e-1;n>=0;n--){const e=s.setContext(t.getPointLabelContext(n)),o=ve(e.font),{x:r,y:l,textAlign:h,left:c,top:d,right:u,bottom:f}=t._pointLabelItems[n],{backdropColor:g}=e;if(!a(g)){const t=_e(e.borderRadius),s=ye(e.backdropPadding);i.fillStyle=g;const n=c-s.left,o=d-s.top,a=u-c+s.width,r=f-d+s.height;Object.values(t).some((t=>0!==t))?(i.beginPath(),ue(i,{x:n,y:o,w:a,h:r,radius:t}),i.fill()):i.fillRect(n,o,a,r)}ce(i,t._pointLabels[n],r,l+o.lineHeight/2,o,{color:e.color,textAlign:h,textBaseline:"middle"})}}(this,n),s.display&&this.ticks.forEach(((t,e)=>{0!==e&&(r=this.getDistanceFromCenterForValue(t.value),function(t,e,i,s){const n=t.ctx,o=e.circular,{color:a,lineWidth:r}=e;!o&&!s||!a||!r||i<0||(n.save(),n.strokeStyle=a,n.lineWidth=r,n.setLineDash(e.borderDash),n.lineDashOffset=e.borderDashOffset,n.beginPath(),$o(t,i,o,s),n.closePath(),n.stroke(),n.restore())}(this,s.setContext(this.getContext(e-1)),r,n))})),i.display){for(t.save(),o=n-1;o>=0;o--){const s=i.setContext(this.getPointLabelContext(o)),{color:n,lineWidth:a}=s;a&&n&&(t.lineWidth=a,t.strokeStyle=n,t.setLineDash(s.borderDash),t.lineDashOffset=s.borderDashOffset,r=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(o,r),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const s=this.getIndexAngle(0);let n,o;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 r=i.setContext(this.getContext(a)),l=ve(r.font);if(n=this.getDistanceFromCenterForValue(this.ticks[a].value),r.showLabelBackdrop){t.font=l.string,o=t.measureText(s.label).width,t.fillStyle=r.backdropColor;const e=ye(r.backdropPadding);t.fillRect(-o/2-e.left,-n-l.size/2-e.top,o+e.width,l.size+e.height)}ce(t,s.label,0,-n,l,{color:r.color})})),t.restore()}drawTitle(){}}Zo.id="radialLinear",Zo.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Qi.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},Zo.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Zo.descriptors={angleLines:{_fallback:"grid"}};const Yo={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}},Uo=Object.keys(Yo);function Xo(t,e){return t-e}function qo(t,e){if(a(e))return null;const i=t._adapter,{parser:s,round:n,isoWeekday:o}=t._parseOpts;let r=e;return"function"==typeof s&&(r=s(r)),h(r)||(r="string"==typeof s?i.parse(r,s):i.parse(r)),null===r?null:(n&&(r="week"!==n||!N(o)&&!0!==o?i.startOf(r,n):i.startOf(r,"isoWeek",o)),+r)}function Ko(t,e,i,s){const n=Uo.length;for(let o=Uo.indexOf(t);o<n-1;++o){const t=Yo[Uo[o]],n=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((i-e)/(n*t.size))<=s)return Uo[o]}return Uo[n-1]}function Go(t,e,i){if(i){if(i.length){const{lo:s,hi:n}=J(i,e);t[i[s]>=e?i[s]:i[n]]=!0}}else t[e]=!0}function Jo(t,e,i){const s=[],n={},o=e.length;let a,r;for(a=0;a<o;++a)r=e[a],n[r]=a,s.push({value:r,major:!1});return 0!==o&&i?function(t,e,i,s){const n=t._adapter,o=+n.startOf(e[0].value,s),a=e[e.length-1].value;let r,l;for(r=o;r<=a;r=+n.add(r,1,s))l=i[r],l>=0&&(e[l].major=!0);return e}(t,s,n,i):s}class Qo extends ls{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 i=t.time||(t.time={}),s=this._adapter=new ps._date(t.adapters.date);s.init(e),y(i.displayFormats,s.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:qo(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:s,max:n,minDefined:o,maxDefined:a}=this.getUserBounds();function r(t){o||isNaN(t.min)||(s=Math.min(s,t.min)),a||isNaN(t.max)||(n=Math.max(n,t.max))}o&&a||(r(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||r(this.getMinMax(!1))),s=h(s)&&!isNaN(s)?s:+e.startOf(Date.now(),i),n=h(n)&&!isNaN(n)?n:+e.endOf(Date.now(),i)+1,this.min=Math.min(s,n-1),this.max=Math.max(s+1,n)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,s="labels"===i.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 n=this.min,o=function(t,e,i){let s=0,n=t.length;for(;s<n&&t[s]<e;)s++;for(;n>s&&t[n-1]>i;)n--;return s>0||n<t.length?t.slice(s,n):t}(s,n,this.max);return this._unit=e.unit||(i.autoSkip?Ko(e.minUnit,this.min,this.max,this._getLabelCapacity(n)):function(t,e,i,s,n){for(let o=Uo.length-1;o>=Uo.indexOf(i);o--){const i=Uo[o];if(Yo[i].common&&t._adapter.diff(n,s,i)>=e-1)return i}return Uo[i?Uo.indexOf(i):0]}(this,o.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=Uo.indexOf(t)+1,i=Uo.length;e<i;++e)if(Yo[Uo[e]].common)return Uo[e]}(this._unit):void 0,this.initOffsets(s),t.reverse&&o.reverse(),Jo(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((t=>+t.value)))}initOffsets(t){let e,i,s=0,n=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),s=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),n=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;s=K(s,0,o),n=K(n,0,o),this._offsets={start:s,end:n,factor:1/(s+1+n)}}_generate(){const t=this._adapter,e=this.min,i=this.max,s=this.options,n=s.time,o=n.unit||Ko(n.minUnit,e,i,this._getLabelCapacity(e)),a=d(n.stepSize,1),r="week"===o&&n.isoWeekday,l=N(r)||!0===r,h={};let c,u,f=e;if(l&&(f=+t.startOf(f,"isoWeek",r)),f=+t.startOf(f,l?"day":o),t.diff(i,e,o)>1e5*a)throw new Error(e+" and "+i+" are too far apart with stepSize of "+a+" "+o);const g="data"===s.ticks.source&&this.getDataTimestamps();for(c=f,u=0;c<i;c=+t.add(c,a,o),u++)Go(h,c,g);return c!==i&&"ticks"!==s.bounds&&1!==u||Go(h,c,g),Object.keys(h).sort(((t,e)=>t-e)).map((t=>+t))}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}_tickFormatFunction(t,e,i,s){const n=this.options,o=n.time.displayFormats,a=this._unit,r=this._majorUnit,l=a&&o[a],h=r&&o[r],c=i[e],d=r&&h&&c&&c.major,u=this._adapter.format(t,s||(d?h:l)),g=n.ticks.callback;return g?f(g,[u,e,i],this):u}generateTickLabels(t){let e,i,s;for(e=0,i=t.length;e<i;++e)s=t[e],s.label=this._tickFormatFunction(s.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+i)*e.factor)}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,i=this.ctx.measureText(t).width,s=W(this.isHorizontal()?e.maxRotation:e.minRotation),n=Math.cos(s),o=Math.sin(s),a=this._resolveTickFontOptions(0).size;return{w:i*n+a*o,h:i*o+a*n}}_getLabelCapacity(t){const e=this.options.time,i=e.displayFormats,s=i[e.unit]||i.millisecond,n=this._tickFormatFunction(t,0,Jo(this,[t],this._majorUnit),s),o=this._getLabelSize(n),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(t=0,e=s.length;t<e;++t)i=i.concat(s[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(i)}getLabelTimestamps(){const t=this._cache.labels||[];let e,i;if(t.length)return t;const s=this.getLabels();for(e=0,i=s.length;e<i;++e)t.push(qo(this,s[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return st(t.sort(Xo))}}function ta(t,e,i){let s,n,o,a,r=0,l=t.length-1;i?(e>=t[r].pos&&e<=t[l].pos&&({lo:r,hi:l}=Q(t,"pos",e)),({pos:s,time:o}=t[r]),({pos:n,time:a}=t[l])):(e>=t[r].time&&e<=t[l].time&&({lo:r,hi:l}=Q(t,"time",e)),({time:s,pos:o}=t[r]),({time:n,pos:a}=t[l]));const h=n-s;return h?o+(a-o)*(e-s)/h:o}Qo.id="time",Qo.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class ea extends Qo{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=ta(e,this.min),this._tableRange=ta(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,s=[],n=[];let o,a,r,l,h;for(o=0,a=t.length;o<a;++o)l=t[o],l>=e&&l<=i&&s.push(l);if(s.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(o=0,a=s.length;o<a;++o)h=s[o+1],r=s[o-1],l=s[o],Math.round((h+r)/2)!==l&&n.push({time:l,pos:o/(a-1)});return n}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),i=this.getLabelTimestamps();return t=e.length&&i.length?this.normalize(e.concat(i)):e.length?e:i,t=this._cache.all=t,t}getDecimalForValue(t){return(ta(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return ta(this._table,i*this._tableRange+this._minPos,!0)}}ea.id="timeseries",ea.defaults=Qo.defaults;const ia=[us,Zn,Ao,Object.freeze({__proto__:null,CategoryScale:To,LinearScale:Io,LogarithmicScale:Vo,RadialLinearScale:Zo,TimeScale:Qo,TimeSeriesScale:ea})];wn.register(...ia);const sa=wn,na=window.React;var oa=i.n(na);function aa(t){for(var e=arguments,i=function(i){var s=null!=e[i]?e[i]:{},n=Object.keys(s);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(s).filter((function(t){return Object.getOwnPropertyDescriptor(s,t).enumerable})))),n.forEach((function(e){!function(t,e,i){e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i}(t,e,s[e])}))},s=1;s<arguments.length;s++)i(s);return t}function ra(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function la(t,e){t.labels=e}function ha(t,e){t.datasets=e.map((function(e){var i=t.datasets.find((function(t){return t.label===e.label&&t.type===e.type}));return i&&e.data?(Object.assign(i,e),i):aa({},e)}))}function ca(t){var e={labels:[],datasets:[]};return la(e,t.labels),ha(e,t.datasets),e}var da={datasets:[]};function ua(t,e){var i,s=t.height,n=void 0===s?150:s,o=t.width,a=void 0===o?300:o,r=t.redraw,l=void 0!==r&&r,h=t.type,c=t.data,d=t.options,u=t.plugins,f=void 0===u?[]:u,g=t.getDatasetAtEvent,p=t.getElementAtEvent,m=t.getElementsAtEvent,b=t.fallbackContent,x=t.onClick,_=function(t,e){if(null==t)return{};var i,s,n=function(t,e){if(null==t)return{};var i,s,n={},o=Object.keys(t);for(s=0;s<o.length;s++)i=o[s],e.indexOf(i)>=0||(n[i]=t[i]);return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(s=0;s<o.length;s++)i=o[s],e.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(n[i]=t[i])}return n}(t,["height","width","redraw","type","data","options","plugins","getDatasetAtEvent","getElementAtEvent","getElementsAtEvent","fallbackContent","onClick"]),y=(0,na.useRef)(null),v=(0,na.useRef)(),w=function(t){if(Array.isArray(t))return t}(i=(0,na.useState)())||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}(),k=w[0],C=w[1],M=k||("function"==typeof c?da:c),S=function(){y.current&&(v.current=new sa(y.current,{type:h,data:ca(M),options:d,plugins:f}),ra(e,v.current))},L=function(){ra(e,null),v.current&&(v.current.destroy(),v.current=null)};return(0,na.useEffect)((function(){"function"==typeof c&&y.current&&C(c(y.current))}),[c]),(0,na.useEffect)((function(){var t,e;!l&&v.current&&d&&(t=v.current,e=d,t.options=aa({},e))}),[l,d]),(0,na.useEffect)((function(){!l&&v.current&&la(v.current.config.data,M.labels)}),[l,M.labels]),(0,na.useEffect)((function(){!l&&v.current&&M.datasets&&ha(v.current.config.data,M.datasets)}),[l,M.datasets]),(0,na.useEffect)((function(){v.current&&(l?(L(),setTimeout(S)):v.current.update())}),[l,d,M.labels,M.datasets]),(0,na.useEffect)((function(){return S(),function(){return L()}}),[]),oa().createElement("canvas",Object.assign({ref:y,role:"img",height:n,width:a,onClick:function(t){x&&x(t);var e=v.current;e&&(g&&g(e.getElementsAtEventForMode(t.nativeEvent,"dataset",{intersect:!0},!1),t),p&&p(e.getElementsAtEventForMode(t.nativeEvent,"nearest",{intersect:!0},!1),t),m&&m(e.getElementsAtEventForMode(t.nativeEvent,"index",{intersect:!0},!1),t))}},_),b)}var fa=(0,na.forwardRef)(ua);function ga(t){return(0,na.forwardRef)((function(e,i){return oa().createElement(fa,Object.assign({},e,{ref:i,type:t}))}))}ga("line"),ga("bar"),ga("radar"),ga("doughnut");var pa=ga("polarArea");ga("bubble"),ga("pie"),ga("scatter");const ma=()=>(0,t.createElement)("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M3.83366 3.3335H17.167C18.0837 3.3335 18.8337 4.0835 18.8337 5.00016V15.0002C18.8337 15.9168 18.0837 16.6668 17.167 16.6668H3.83366C2.91699 16.6668 2.16699 15.9168 2.16699 15.0002V5.00016C2.16699 4.0835 2.91699 3.3335 3.83366 3.3335Z",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.createElement)("path",{d:"M18.8337 5L10.5003 10.8333L2.16699 5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),ba=()=>(0,t.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M11.9346 9.5563H13.9757H14.5576L14.47 10.1315L14.0644 12.7964L13.9998 13.2212H13.5701H11.9334V18.5601C15.7868 17.6766 18.6668 14.2059 18.6668 10.0563C18.6668 5.23582 14.784 1.33356 10.0014 1.3335L11.9346 9.5563ZM11.9346 9.5563V8.32631C11.9346 8.03337 12.0068 7.8056 12.1337 7.65767C12.2486 7.52389 12.4684 7.38503 12.9274 7.38503H14.0834H14.5834V6.88503V4.61657V4.19505L14.168 4.12377L14.0834 4.61657L14.1679 4.12375L14.1678 4.12373L14.1675 4.12368L14.1666 4.12353L14.1637 4.12304L14.1534 4.12132L14.1157 4.11516C14.0832 4.10994 14.0363 4.1026 13.9771 4.09385C13.8589 4.07635 13.6912 4.05314 13.4914 4.02996C13.094 3.98384 12.56 3.93669 12.0315 3.93669C10.883 3.93669 9.87843 4.28879 9.16067 5.01132C8.44276 5.734 8.06919 6.7694 8.06919 8.02385V9.55745H6.24115H5.74115V10.0574V12.7223V13.2223H6.24115H8.0669V18.5612C4.21356 17.6778 1.3335 14.207 1.3335 10.0574C1.3335 5.23596 5.21624 1.33464 10.0013 1.3335L11.9346 9.5563Z",fill:"white",stroke:"white"})),xa=()=>(0,t.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},(0,t.createElement)("path",{d:"M3.5901 11.9296L3.58928 12.1136C3.58991 12.1136 3.59053 12.1136 3.59116 12.1136L3.59303 12.1136L3.59249 11.934C3.59169 11.9325 3.5909 11.9311 3.5901 11.9296ZM3.5901 11.9296C3.53598 11.828 3.48715 11.7233 3.44389 11.616L3.5912 11.6853L3.5901 11.9296ZM6.59245 16.8966H6.5923C5.30933 16.897 4.0439 16.6556 2.86038 16.1911C4.25955 15.9944 5.58943 15.4315 6.71109 14.5506L7.81648 13.6824L6.41112 13.6574C5.73068 13.6454 5.07106 13.4208 4.52464 13.0151C4.19179 12.768 3.9111 12.4612 3.69542 12.1127C4.04014 12.1055 4.38278 12.0555 4.71546 11.9639L4.68242 10.9919C3.94479 10.8417 3.28165 10.4414 2.80507 9.85876C2.48597 9.46861 2.26362 9.01271 2.15125 8.52806C2.5077 8.63592 2.87784 8.69746 3.25256 8.71019L5.00528 8.76974L3.54748 7.79486C2.85724 7.33326 2.36854 6.62626 2.18064 5.81743C2.04836 5.24805 2.07213 4.65824 2.24295 4.10824C3.13053 5.05234 4.17689 5.83656 5.3364 6.42411C6.73469 7.13266 8.2663 7.53937 9.83189 7.61788L10.4942 7.65109L10.3439 7.00519C10.1811 6.30558 10.2536 5.57181 10.5501 4.91754C10.8465 4.26328 11.3505 3.72503 11.9838 3.38617C12.6172 3.04731 13.3446 2.92676 14.0534 3.04318C14.7622 3.1596 15.4128 3.50649 15.9045 4.03013L16.0933 4.23122L16.3641 4.17875C16.7226 4.10929 17.0752 4.01545 17.4196 3.89815C17.2209 4.10336 16.9947 4.28325 16.7458 4.43204L17.0622 5.35761C17.2653 5.33312 17.4672 5.301 17.6675 5.26135C17.4553 5.45828 17.231 5.6425 16.9956 5.81286L16.7777 5.97058L16.7893 6.23929C16.7956 6.3872 16.7957 6.53915 16.7957 6.70142C16.7957 11.4488 13.1777 16.8966 6.59245 16.8966Z",fill:"white",stroke:"white"})),_a=()=>(0,t.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},(0,t.createElement)("path",{d:"M6.49735 16.6808H6.99735V16.1808V7.90214V7.40214H6.49735H3.7462H3.2462V7.90214V16.1808V16.6808H3.7462H6.49735ZM7.17839 5.3412H7.1785L7.17828 5.33063C7.16719 4.80625 6.97258 4.31885 6.60396 3.96221C6.23442 3.60467 5.72404 3.4112 5.14068 3.4112C4.55852 3.4112 4.04142 3.60404 3.66585 3.95822C3.28935 4.31328 3.0835 4.80457 3.0835 5.3412C3.0835 6.42436 3.91629 7.2712 5.10402 7.2712H5.12235C5.71482 7.2712 6.2329 7.07318 6.6061 6.71528C6.97901 6.35765 7.17839 5.8673 7.17839 5.3412ZM10.7461 16.6808H11.2461V16.1808V11.5574C11.2461 11.3126 11.2677 11.1541 11.2995 11.0778L11.2995 11.0778L11.3018 11.0721C11.4523 10.6972 11.7596 10.3798 12.2494 10.3798C12.6 10.3798 12.7852 10.502 12.9062 10.6797C13.049 10.8895 13.1428 11.2405 13.1428 11.7521V16.1808V16.6808H13.6428H16.3939H16.8939V16.1808V11.4325C16.8939 10.0746 16.531 9.008 15.857 8.27658C15.1792 7.54113 14.2434 7.2062 13.2268 7.2062C12.3977 7.2062 11.7695 7.43637 11.2921 7.76668C11.2765 7.77741 11.2612 7.78822 11.2461 7.79912V7.40214H10.7461H7.9961H7.47349L7.49659 7.92424C7.5131 8.29748 7.51331 10.349 7.50899 12.3317C7.50684 13.3176 7.50362 14.2793 7.50094 14.9946L7.49751 15.8548L7.49648 16.0941L7.4962 16.157L7.49613 16.1731L7.49611 16.1771L7.49611 16.1782L7.49611 16.1784L7.9961 16.1808L7.4961 16.1785L7.4938 16.6808H7.9961H10.7461ZM1.3335 2.14662C1.3335 1.70916 1.70049 1.3335 2.17985 1.3335H17.8205C18.2998 1.3335 18.6668 1.70916 18.6668 2.14662V17.8537C18.6668 18.2912 18.2998 18.6668 17.8205 18.6668H2.17985C1.70049 18.6668 1.3335 18.2912 1.3335 17.8537V2.14662Z",fill:"white",stroke:"white"})),ya=()=>(0,t.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},(0,t.createElement)("mask",{id:"path-1-inside-1",fill:"white"},(0,t.createElement)("path",{d:"M7.89977 10C7.64763 10.0003 7.40591 10.1006 7.22762 10.2789C7.04933 10.4572 6.94903 10.6989 6.94873 10.951C6.94873 11.477 7.37498 11.9135 7.89977 11.9032C8.14644 11.8947 8.38015 11.7907 8.55162 11.6131C8.72309 11.4356 8.81893 11.1984 8.81893 10.9516C8.81893 10.7048 8.72309 10.4676 8.55162 10.2901C8.38015 10.1126 8.14644 10.0086 7.89977 10ZM10.0115 14.1789C10.3725 14.1789 11.6191 14.1353 12.2757 13.4787C12.3183 13.4303 12.3417 13.3679 12.3417 13.3034C12.3417 13.2389 12.3183 13.1766 12.2757 13.1281C12.253 13.1046 12.2257 13.086 12.1956 13.0732C12.1655 13.0604 12.1331 13.0539 12.1004 13.0539C12.0677 13.0539 12.0353 13.0604 12.0052 13.0732C11.9751 13.086 11.9478 13.1046 11.9251 13.1281C11.5206 13.5441 10.6349 13.6861 10.0115 13.6861C9.38706 13.6861 8.51279 13.5441 8.09686 13.1281C8.0741 13.1046 8.04686 13.086 8.01674 13.0732C7.98662 13.0604 7.95425 13.0539 7.92154 13.0539C7.88884 13.0539 7.85646 13.0604 7.82635 13.0732C7.79623 13.086 7.76899 13.1046 7.74623 13.1281C7.72274 13.1509 7.70406 13.1781 7.6913 13.2082C7.67854 13.2384 7.67197 13.2707 7.67197 13.3034C7.67197 13.3361 7.67854 13.3685 7.6913 13.3986C7.70406 13.4287 7.72274 13.456 7.74623 13.4787C8.39248 14.1239 9.63915 14.1777 10.0115 14.1777V14.1789ZM11.1482 10.9625C11.1482 11.4873 11.5756 11.9135 12.1004 11.9135C12.6252 11.9135 13.0514 11.477 13.0514 10.9625C13.0394 10.7183 12.934 10.4881 12.757 10.3196C12.5799 10.151 12.3448 10.057 12.1004 10.057C11.8559 10.057 11.6209 10.151 11.4438 10.3196C11.2668 10.4881 11.1613 10.7183 11.1494 10.9625H11.1482Z"})),(0,t.createElement)("path",{d:"M7.89977 10C7.64763 10.0003 7.40591 10.1006 7.22762 10.2789C7.04933 10.4572 6.94903 10.6989 6.94873 10.951C6.94873 11.477 7.37498 11.9135 7.89977 11.9032C8.14644 11.8947 8.38015 11.7907 8.55162 11.6131C8.72309 11.4356 8.81893 11.1984 8.81893 10.9516C8.81893 10.7048 8.72309 10.4676 8.55162 10.2901C8.38015 10.1126 8.14644 10.0086 7.89977 10ZM10.0115 14.1789C10.3725 14.1789 11.6191 14.1353 12.2757 13.4787C12.3183 13.4303 12.3417 13.3679 12.3417 13.3034C12.3417 13.2389 12.3183 13.1766 12.2757 13.1281C12.253 13.1046 12.2257 13.086 12.1956 13.0732C12.1655 13.0604 12.1331 13.0539 12.1004 13.0539C12.0677 13.0539 12.0353 13.0604 12.0052 13.0732C11.9751 13.086 11.9478 13.1046 11.9251 13.1281C11.5206 13.5441 10.6349 13.6861 10.0115 13.6861C9.38706 13.6861 8.51279 13.5441 8.09686 13.1281C8.0741 13.1046 8.04686 13.086 8.01674 13.0732C7.98662 13.0604 7.95425 13.0539 7.92154 13.0539C7.88884 13.0539 7.85646 13.0604 7.82635 13.0732C7.79623 13.086 7.76899 13.1046 7.74623 13.1281C7.72274 13.1509 7.70406 13.1781 7.6913 13.2082C7.67854 13.2384 7.67197 13.2707 7.67197 13.3034C7.67197 13.3361 7.67854 13.3685 7.6913 13.3986C7.70406 13.4287 7.72274 13.456 7.74623 13.4787C8.39248 14.1239 9.63915 14.1777 10.0115 14.1777V14.1789ZM11.1482 10.9625C11.1482 11.4873 11.5756 11.9135 12.1004 11.9135C12.6252 11.9135 13.0514 11.477 13.0514 10.9625C13.0394 10.7183 12.934 10.4881 12.757 10.3196C12.5799 10.151 12.3448 10.057 12.1004 10.057C11.8559 10.057 11.6209 10.151 11.4438 10.3196C11.2668 10.4881 11.1613 10.7183 11.1494 10.9625H11.1482Z",fill:"white"}),(0,t.createElement)("path",{d:"M7.89977 10L7.93446 9.0006L7.91652 8.99998L7.89857 9L7.89977 10ZM6.94873 10.951L5.94873 10.9498V10.951H6.94873ZM7.89977 11.9032L7.91942 12.903L7.92694 12.9029L7.93446 12.9026L7.89977 11.9032ZM10.0115 14.1789H9.01154V15.1789H10.0115V14.1789ZM12.2757 13.4787L12.9828 14.1859L13.0059 14.1628L13.0274 14.1382L12.2757 13.4787ZM12.3417 13.3034H11.3417H12.3417ZM12.2757 13.1281L13.0274 12.4686L13.0112 12.4501L12.994 12.4324L12.2757 13.1281ZM12.1004 13.0539V14.0539V13.0539ZM11.9251 13.1281L12.642 13.8253L12.6434 13.8238L11.9251 13.1281ZM8.09686 13.1281L7.37855 13.8238L7.3841 13.8296L7.38975 13.8352L8.09686 13.1281ZM7.92154 13.0539V14.0539V13.0539ZM7.74623 13.1281L8.44195 13.8464L8.45343 13.8353L8.46454 13.8238L7.74623 13.1281ZM7.74623 13.4787L8.45271 12.771L8.44737 12.7657L8.44195 12.7604L7.74623 13.4787ZM10.0115 14.1777H11.0115V13.1777H10.0115V14.1777ZM11.1482 10.9625V9.9625H10.1482V10.9625H11.1482ZM13.0514 10.9625H14.0514V10.938L14.0502 10.9135L13.0514 10.9625ZM11.1494 10.9625V11.9625H12.1015L12.1482 11.0115L11.1494 10.9625ZM7.89857 9C7.38163 9.00062 6.88604 9.20625 6.52051 9.57178L7.93473 10.986C7.92577 10.9949 7.91364 11 7.90097 11L7.89857 9ZM6.52051 9.57178C6.15498 9.93731 5.94935 10.4329 5.94873 10.9498L7.94873 10.9522C7.94871 10.9649 7.94368 10.977 7.93473 10.986L6.52051 9.57178ZM5.94873 10.951C5.94873 12.0102 6.80835 12.9249 7.91942 12.903L7.88013 10.9034C7.8917 10.9032 7.90483 10.9057 7.91643 10.9105C7.92713 10.915 7.93376 10.9203 7.93748 10.9241C7.94409 10.9307 7.94873 10.9405 7.94873 10.951H5.94873ZM7.93446 12.9026C8.44018 12.8851 8.91933 12.6718 9.27089 12.3079L7.83236 10.9184C7.84097 10.9095 7.8527 10.9043 7.86509 10.9038L7.93446 12.9026ZM9.27089 12.3079C9.62244 11.9439 9.81893 11.4576 9.81893 10.9516H7.81893C7.81893 10.9392 7.82375 10.9273 7.83236 10.9184L9.27089 12.3079ZM9.81893 10.9516C9.81893 10.4456 9.62244 9.95933 9.27089 9.59536L7.83236 10.9848C7.82375 10.9759 7.81893 10.964 7.81893 10.9516H9.81893ZM9.27089 9.59536C8.91933 9.23139 8.44018 9.01815 7.93446 9.0006L7.86509 10.9994C7.8527 10.999 7.84097 10.9937 7.83236 10.9848L9.27089 9.59536ZM10.0115 15.1789C10.2259 15.1789 10.7052 15.1666 11.24 15.0533C11.7529 14.9447 12.4531 14.7156 12.9828 14.1859L11.5686 12.7716C11.4417 12.8985 11.1903 13.0195 10.8255 13.0967C10.4826 13.1694 10.1581 13.1789 10.0115 13.1789V15.1789ZM13.0274 14.1382C13.23 13.9073 13.3417 13.6106 13.3417 13.3034H11.3417C11.3417 13.1253 11.4065 12.9532 11.524 12.8193L13.0274 14.1382ZM13.3417 13.3034C13.3417 12.9963 13.23 12.6996 13.0274 12.4686L11.524 13.7876C11.4065 13.6537 11.3417 13.4816 11.3417 13.3034H13.3417ZM12.994 12.4324C12.878 12.3126 12.7391 12.2174 12.5856 12.1524L11.8055 13.994C11.7123 13.9545 11.6279 13.8966 11.5574 13.8238L12.994 12.4324ZM12.5856 12.1524C12.4321 12.0874 12.2671 12.0539 12.1004 12.0539V14.0539C11.9991 14.0539 11.8988 14.0335 11.8055 13.994L12.5856 12.1524ZM12.1004 12.0539C11.9337 12.0539 11.7687 12.0874 11.6152 12.1524L12.3952 13.994C12.302 14.0335 12.2017 14.0539 12.1004 14.0539V12.0539ZM11.6152 12.1524C11.4617 12.2174 11.3228 12.3126 11.2068 12.4324L12.6434 13.8238C12.5729 13.8966 12.4885 13.9545 12.3952 13.994L11.6152 12.1524ZM11.2082 12.431C11.2114 12.4277 11.1874 12.4523 11.1105 12.4892C11.0359 12.525 10.9346 12.5613 10.8078 12.593C10.5509 12.6572 10.2569 12.6861 10.0115 12.6861V14.6861C10.3895 14.6861 10.85 14.644 11.293 14.5332C11.7096 14.4291 12.2474 14.2311 12.642 13.8253L11.2082 12.431ZM10.0115 12.6861C9.76594 12.6861 9.47477 12.6573 9.21947 12.5932C8.94106 12.5233 8.82446 12.4415 8.80396 12.421L7.38975 13.8352C7.78519 14.2307 8.31369 14.4279 8.73252 14.533C9.17447 14.644 9.63267 14.6861 10.0115 14.6861V12.6861ZM8.81517 12.4324C8.69917 12.3126 8.56029 12.2174 8.40679 12.1524L7.62669 13.994C7.53343 13.9545 7.44904 13.8966 7.37855 13.8238L8.81517 12.4324ZM8.40679 12.1524C8.25329 12.0874 8.08827 12.0539 7.92154 12.0539V14.0539C7.82023 14.0539 7.71996 14.0335 7.62669 13.994L8.40679 12.1524ZM7.92154 12.0539C7.75481 12.0539 7.5898 12.0874 7.4363 12.1524L8.2164 13.994C8.12313 14.0335 8.02286 14.0539 7.92154 14.0539V12.0539ZM7.4363 12.1524C7.2828 12.2174 7.14392 12.3126 7.02792 12.4324L8.46454 13.8238C8.39405 13.8966 8.30966 13.9545 8.2164 13.994L7.4363 12.1524ZM7.05051 12.4098C6.93075 12.5258 6.83553 12.6647 6.7705 12.8182L8.61209 13.5983C8.57258 13.6916 8.51472 13.776 8.44195 13.8464L7.05051 12.4098ZM6.7705 12.8182C6.70547 12.9717 6.67197 13.1367 6.67197 13.3034H8.67197C8.67197 13.4047 8.65161 13.505 8.61209 13.5983L6.7705 12.8182ZM6.67197 13.3034C6.67197 13.4701 6.70547 13.6352 6.7705 13.7887L8.61209 13.0086C8.65161 13.1019 8.67197 13.2021 8.67197 13.3034H6.67197ZM6.7705 13.7887C6.83553 13.9422 6.93075 14.0811 7.05051 14.1971L8.44195 12.7604C8.51472 12.8309 8.57258 12.9153 8.61209 13.0086L6.7705 13.7887ZM7.03975 14.1865C7.56436 14.7102 8.26187 14.9386 8.77199 15.0479C9.30512 15.1622 9.78652 15.1777 10.0115 15.1777V13.1777C9.86417 13.1777 9.53604 13.1663 9.19118 13.0924C8.8233 13.0135 8.57435 12.8924 8.45271 12.771L7.03975 14.1865ZM9.01154 14.1777V14.1789H11.0115V14.1777H9.01154ZM10.1482 10.9625C10.1482 12.0411 11.0249 12.9135 12.1004 12.9135V10.9135C12.1142 10.9135 12.1271 10.9202 12.134 10.9271C12.1374 10.9305 12.1409 10.9353 12.1438 10.9419C12.1469 10.9492 12.1482 10.9568 12.1482 10.9625H10.1482ZM12.1004 12.9135C13.1845 12.9135 14.0514 12.0222 14.0514 10.9625H12.0514C12.0514 10.9399 12.0607 10.9288 12.063 10.9265C12.0648 10.9246 12.0684 10.9216 12.075 10.9188C12.0824 10.9156 12.0917 10.9135 12.1004 10.9135V12.9135ZM14.0502 10.9135C14.0257 10.4129 13.8095 9.94093 13.4465 9.59535L12.0674 11.0438C12.0585 11.0354 12.0532 11.0238 12.0526 11.0115L14.0502 10.9135ZM13.4465 9.59535C13.0836 9.24976 12.6016 9.05701 12.1004 9.05701V11.057C12.0881 11.057 12.0763 11.0523 12.0674 11.0438L13.4465 9.59535ZM12.1004 9.05701C11.5992 9.05701 11.1172 9.24976 10.7543 9.59535L12.1334 11.0438C12.1245 11.0523 12.1127 11.057 12.1004 11.057V9.05701ZM10.7543 9.59535C10.3913 9.94093 10.1751 10.4129 10.1506 10.9135L12.1482 11.0115C12.1476 11.0238 12.1423 11.0354 12.1334 11.0438L10.7543 9.59535ZM11.1494 9.9625H11.1482V11.9625H11.1494V9.9625Z",fill:"white",mask:"url(#path-1-inside-1)"}),(0,t.createElement)("path",{d:"M19.1668 10.0002C19.1668 12.4313 18.2011 14.7629 16.482 16.482C14.7629 18.2011 12.4313 19.1668 10.0002 19.1668C7.56901 19.1668 5.23743 18.2011 3.51835 16.482C1.79927 14.7629 0.833496 12.4313 0.833496 10.0002C0.833496 7.56901 1.79927 5.23743 3.51835 3.51835C5.23743 1.79927 7.56901 0.833496 10.0002 0.833496C12.4313 0.833496 14.7629 1.79927 16.482 3.51835C18.2011 5.23743 19.1668 7.56901 19.1668 10.0002ZM14.7806 8.66527C14.4196 8.66527 14.0908 8.80735 13.8502 9.03766C12.9323 8.3811 11.6731 7.95485 10.274 7.89985L10.8859 5.03412L12.8773 5.46037C12.8861 5.64632 12.9492 5.82561 13.0589 5.97602C13.1686 6.12643 13.32 6.24134 13.4943 6.30652C13.6687 6.3717 13.8584 6.38427 14.0398 6.34269C14.2213 6.3011 14.3865 6.20718 14.5151 6.07256C14.6437 5.93795 14.7299 5.76856 14.7631 5.5854C14.7963 5.40224 14.7751 5.21335 14.702 5.04216C14.6288 4.87097 14.5071 4.72499 14.3518 4.62234C14.1965 4.51968 14.0145 4.46485 13.8284 4.46464C13.6503 4.46526 13.476 4.51586 13.3253 4.61066C13.1746 4.70546 13.0535 4.84067 12.9759 5.00089L10.7553 4.5311C10.7254 4.52466 10.6945 4.52418 10.6644 4.52968C10.6343 4.53519 10.6056 4.54657 10.58 4.56318C10.5532 4.57989 10.5305 4.60232 10.5134 4.62888C10.4964 4.65543 10.4854 4.68543 10.4814 4.71672L9.80308 7.91131C8.38225 7.95485 7.1012 8.3811 6.17079 9.04797C5.93016 8.81881 5.60245 8.67672 5.24266 8.67672C4.93753 8.67627 4.64149 8.78055 4.404 8.97213C4.16651 9.16371 4.00196 9.43099 3.93784 9.72931C3.87373 10.0276 3.91393 10.3389 4.05173 10.6112C4.18953 10.8834 4.41658 11.1001 4.69495 11.2251C4.67204 11.3568 4.66173 11.4886 4.66173 11.6295C4.66173 13.6863 7.05766 15.3604 10.0116 15.3604C12.9644 15.3604 15.3604 13.6978 15.3604 11.6295C15.3604 11.4989 15.3489 11.3568 15.3271 11.2251C15.7866 11.0177 16.1155 10.5467 16.1155 10.0002C16.1155 9.25537 15.5139 8.66527 14.7806 8.66527Z",fill:"white"})),va=function(e){let{children:i,setModalStatus:s,className:n}=e;return(0,t.createElement)("div",{className:`wheeloflife-modal ${n}`},(0,t.createElement)("div",{className:"wheeloflife-modal-container"},(0,t.createElement)("button",{type:"button",className:"modal-close-btn",onClick:()=>s(!1)},(0,t.createElement)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M13 1L1 13",stroke:"#A3AABF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.createElement)("path",{d:"M1 1L13 13",stroke:"#A3AABF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),i))},wa=window.wp.i18n,ka=window.wp.apiFetch;var Ca=i.n(ka),Ma=i(8901),Sa=i.n(Ma);const La=function(e){var i,s,n,o;let{setModalStatus:a,getWheelReport:r,reportLink:l,reportTitle:h}=e;const[c,d]=(0,t.useState)(!1),[u,f]=(0,t.useState)({}),[g,p]=(0,t.useState)(null),[m,b]=(0,t.useState)(""),[x,_]=(0,t.useState)("");return(0,t.useEffect)((()=>{let t=new FormData;t.append("action","getSocialShare"),t.append("security",wolVariablesFrontend.ajax_nonce),Ca()({url:wolVariablesFrontend.ajax_url,method:"POST",body:t}).then((t=>{!0===t.success&&""!=t.data&&f(JSON.parse(t.data))})),r(),Sa().options.positionClass="toast-bottom-full-width",Sa().options.timeOut="5000"}),[]),(0,t.useEffect)((()=>{p({facebookShare:`https://www.facebook.com/sharer.php?u=${l}`,twitterShare:`https://twitter.com/intent/tweet?text=${h} ${l}`,linkedInShare:`https://www.linkedin.com/shareArticle?mini=true&url=${l}&title=${h}`,redditShare:`http://www.reddit.com/submit?url=${l}&title=${h}`})}),[l,h]),(0,t.createElement)(t.Fragment,null,l&&g&&u&&Object.keys(u)?.length>0&&(u.email||u.facebook||u.twitter||u.linkedIn||u.reddit)&&(0,t.createElement)("div",{className:"wheel-widget-inner"},u.email&&(0,t.createElement)("div",{className:"wheel-widget"},(0,t.createElement)("h2",{className:"widget-title"},(0,wa.__)("Get the report","wheel-of-life")),(0,t.createElement)("div",{className:"widget-content"},(0,t.createElement)("a",{type:"button",className:"wheeloflife-share-btn",onClick:()=>{d(!0),"function"==typeof a&&a(!0),!l&&r()}},(0,t.createElement)("i",null,(0,t.createElement)(ma,null)),(0,wa.__)("Email My Wheel","wheel-of-life")))),(u.facebook||u.twitter||u.linkedIn||u.reddit)&&(0,t.createElement)("div",{className:"wheel-widget"},(0,t.createElement)("h2",{className:"widget-title"},(0,wa.__)("Share the report","wheel-of-life")),(0,t.createElement)("div",{className:"widget-content"},u.facebook&&(0,t.createElement)("a",{type:"button",className:"wheeloflife-share-btn is-facebook",href:null!==(i=g.facebookShare)&&void 0!==i?i:"#",rel:"nofollow noopener",target:"_blank"},(0,t.createElement)("i",null,(0,t.createElement)(ba,null))),u.twitter&&(0,t.createElement)("a",{type:"button",className:"wheeloflife-share-btn is-twitter",href:null!==(s=g.twitterShare)&&void 0!==s?s:"#",rel:"nofollow noopener",target:"_blank"},(0,t.createElement)("i",null,(0,t.createElement)(xa,null))),u.linkedIn&&(0,t.createElement)("a",{type:"button",className:"wheeloflife-share-btn is-linkedin",href:null!==(n=g.linkedInShare)&&void 0!==n?n:"#",rel:"nofollow noopener",target:"_blank"},(0,t.createElement)("i",null,(0,t.createElement)(_a,null))),u.reddit&&(0,t.createElement)("a",{type:"button",className:"wheeloflife-share-btn is-reddit",href:null!==(o=g.redditShare)&&void 0!==o?o:"#",rel:"nofollow noopener",target:"_blank"},(0,t.createElement)("i",null,(0,t.createElement)(ya,null)))))),c&&(0,t.createElement)(va,{setModalStatus:d,className:"wheeloflife-share-modal"},(0,t.createElement)("div",{className:"wheeloflife-modal-header"},(0,t.createElement)("h2",{className:"wheeloflife-modal-title"},(0,wa.__)("Email my Wheel","wheel-of-life"))),(0,t.createElement)("div",{className:"wheeloflife-modal-body"},(0,t.createElement)("p",null,(0,wa.__)("Please enter the email address where you would like to send your assessment result:","wheel-of-life")),(0,t.createElement)("p",null,(0,t.createElement)("input",{value:x,type:"text",placeholder:(0,wa.__)("Enter your full name","wheel-of-life"),onChange:t=>{_(t.target.value)}})),(0,t.createElement)("p",null,(0,t.createElement)("input",{id:"wheeloflife-send-to-email",type:"email",placeholder:(0,wa.__)("Enter your email","wheel-of-life"),onChange:t=>b(t.target.value)}))),(0,t.createElement)("div",{className:"wheeloflife-modal-footer"},(0,t.createElement)("button",{type:"button",className:"wheeloflife-btn is-tertiary is-small",onClick:()=>d(!1)},(0,wa.__)("Cancel","wheel-of-life")),(0,t.createElement)("button",{type:"button",className:"wheeloflife-btn is-primary is-small",onClick:()=>(()=>{let t=null!=m?m:jQuery("input#wheeloflife-send-to-email").val();if(""==t)return void alert((0,wa.__)("No email supplied. Please enter valid email.","wheel-of-life"));let e=null!=l?l:"",i=new FormData;i.append("action","sendMyWheelEmail"),i.append("security",wolVariablesFrontend.ajax_nonce),i.append("reportLink",e),i.append("toEmail",t),i.append("fullName",x),Ca()({url:wolVariablesFrontend.ajax_url,method:"POST",body:i}).then((t=>{!0===t.success?Sa().success(t.data):Sa().error(t.data)}))})(),disabled:x.length<=0||!m.match(/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/g)},(0,wa.__)("Send","wheel-of-life")))))},Ea=()=>(0,t.createElement)("svg",{width:"182",height:"316",viewBox:"0 0 182 316",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M174.585 173.644L38.71 309.514C30.0667 318.162 16.0531 318.162 7.41394 309.514C-1.22587 300.875 -1.22587 286.862 7.41394 278.223L127.643 157.998L7.41743 37.7771C-1.22238 29.1338 -1.22238 15.1223 7.41743 6.48247C16.0572 -2.16082 30.0702 -2.16082 38.7135 6.48247L174.589 142.355C178.909 146.677 181.066 152.336 181.066 157.997C181.066 163.661 178.904 169.324 174.585 173.644Z",fill:"black"})),Pa=window.wp.hooks,Da=window.wp.url,Oa={id:"htmlLegend",afterUpdate(t,e,i){const s=((t,e)=>{const i=document.getElementById(e);let s=i.querySelector("ul");return s||(s=document.createElement("ul"),s.style.display="flex",s.style.flexWrap="wrap",s.style.margin=0,s.style.padding=0,i.appendChild(s)),s})(0,i.containerID);for(;s.firstChild;)s.firstChild.remove();t.options.plugins.legend.labels.generateLabels(t).forEach((e=>{const i=document.createElement("li");i.style.alignItems="flex-start",i.style.cursor="pointer",i.style.display="flex",i.style.flexDirection="row",i.style.marginLeft="10px",i.style.paddingLeft="30px",i.style.position="relative",i.onclick=()=>{const{type:i}=t.config;"pie"===i||"doughnut"===i?t.toggleDataVisibility(e.index):t.setDatasetVisibility(e.datasetIndex,!t.isDatasetVisible(e.datasetIndex)),t.update()};const n=document.createElement("span");n.style.background=e.fillStyle,n.style.borderColor=e.strokeStyle,n.style.borderWidth=e.lineWidth+"px",n.style.display="inline-block",n.style.height="20px",n.style.marginRight="10px",n.style.width="20px",n.style.position="absolute",n.style.inset="5px 0 0",n.style.borderRadius="50%";const o=document.createElement("p");o.style.color=e.fontColor,o.style.margin=0,o.style.padding=0,o.style.textAlign="left",o.style.textDecoration=e.hidden?"line-through":"";const a=document.createTextNode(e.text);o.appendChild(a),i.appendChild(n),i.appendChild(o),s.appendChild(i)}))}},Aa=e=>{let{data:i,options:s}=e;const n={...s};return s.plugins.htmlLegend={containerID:"wheeloflife-legend-container"},s.plugins.legend={display:!1},(0,t.createElement)("div",{className:"wheeloflife_polar_chart_wrapper"},(0,t.createElement)("div",{id:"wheeloflife-legend-container"}),(0,t.createElement)(pa,{data:i,options:n,plugins:[Oa]}))},Ta=function(i){let{postMeta:s,wheelCTA:n,postBlocks:o,setModalStatus:a,wheelId:r}=i;const[l,h]=(0,t.useState)(1),[c,d]=(0,t.useState)(0),[u,f]=(0,t.useState)({}),[g,p]=(0,t.useState)([]),[m,b]=(0,t.useState)([]),[x,_]=(0,t.useState)(1),[y,v]=(0,t.useState)([]),[w,k]=(0,t.useState)([]),[C,M]=(0,t.useState)(null),[S,L]=(0,t.useState)(null),[E,P]=(0,t.useState)(null),[D,O]=(0,t.useState)(!1);(0,t.useEffect)((()=>{n?.page?.value&&Ca()({path:(0,Da.addQueryArgs)(`wp/v2/pages/${n.page.value}`),method:"GET"}).then((t=>{O(t.link)}))}),[]);var A=s.wheel_meta_range_max,T=s.wheel_meta_range_min,z=s.wheel_meta_input_type,R=s.wheel_chart_type?s.wheel_chart_type:"polar-chart";(0,t.useEffect)((()=>{let t=new FormData;t.append("action","getCTA"),t.append("mode","front"),Ca()({url:wolVariablesFrontend.ajax_url,method:"POST",body:t}).then((t=>{!0===t.success&&""!=t.data&&k(JSON.parse(t.data))}))}),[]);var I={responsive:!0,scales:{r:{ticks:{display:!1}}},borderWidth:"transparent",plugins:{legend:{position:"top",labels:{usePointStyle:!0,pointStyle:"circle",boxWidth:12,color:"#262933",font:{size:16,family:"Rubik"}},onClick:function(t,e,i){let s=o.find((t=>"wheeloflife/add-wheels"===t.blockName)).innerBlocks.map((t=>({label:t.attrs.label?.replace("&","&")?.replace("&","&"),link:t.attrs.link}))).find((t=>t.label===e.text)).link;s&&window.open(s,"_blank")},onHover:function(t){t.native.target.style.cursor="pointer"}}}};const F=(t,e,i)=>()=>{u[e]=t,f(u),d(c+1),h(l+1),g.push(e),m.push(t),y.push(i),p(g),b(m),v(y)};var V={labels:g,datasets:[{data:m,backgroundColor:y}]};const N=()=>{!function(t,e){let i=new FormData;i.append("chartData",JSON.stringify(t)),i.append("chartOptions",JSON.stringify(e)),i.append("wheelId",r),i.append("chartType",R),i.append("action","saveWheelReport"),i.append("security",wolVariablesFrontend.ajax_nonce),Ca()({url:wolVariablesFrontend.ajax_url,method:"POST",body:i}).then((t=>{!0===t.success&&(M(t.data.link),L(t.data.title),P(t.data.id))}))}((0,Pa.applyFilters)("wheeloflife_chart_data",{labels:g,datasets:[{data:m,backgroundColor:y}]}),(0,Pa.applyFilters)("wheeloflife_chart_options",I))};return(0,t.createElement)("form",{className:"wheeloflife-wheel-form"},""!=o&&null!=typeof o&&o.map((function(i,o){if("wheeloflife/add-wheels"===i.blockName){var r,f="",p="",b="#1DB53F",v=(0,wa.__)("Skip this area - it's not important to me","wheel-of-life"),k="";if(null!=i.innerBlocks[c]){let t=i.innerBlocks[c].attrs;f=t.label?.replace("&","&")?.replace("&","&"),p=t.desc,b=t?.lengendColor?t?.lengendColor:b,r=t.isRequired,v=t?.skipText?t?.skipText:v,k=t?.link?t?.link:k}var M=i.innerBlocks.length;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"wheeloflife-title-wrap"},(0,t.createElement)("h2",{className:"wheeloflife-title"},k?(0,t.createElement)("a",{href:k,target:"_blank"},f):f),(0,t.createElement)("p",{dangerouslySetInnerHTML:{__html:p}})),(0,t.createElement)("div",{className:"wheeloflife-rating"},l==c+1&&l<=M&&(0,t.createElement)(e,{setValue:u.label,label:f,handleFormValue:F,setRangeValue:_,rangeValue:x,options:{maxValue:A,minValue:T,name:f,type:z,bgColor:b}})),l<=M&&v&&!r&&(0,t.createElement)("button",{type:"button",className:"wheeloflife-btn is-tertiary is-skip-btn p-0",onClick:()=>{h(l+1),d(c+1)}},v),(0,t.createElement)("div",{className:"wheeloflife-life-wheel"},(0,t.createElement)("div",{className:"wheeloflife-life-wheel-wrapper"},(0,t.createElement)("div",{className:"life-wheel"},(0,t.createElement)(t.Fragment,null,R&&"polar-chart"===R&&(0,t.createElement)(Aa,{data:V,options:I}),(0,Pa.applyFilters)("wheeloflife_chart_types",null,s,g,m,y),l>M&&E&&(0,t.createElement)("div",{className:"submission-title",style:{marginTop:"16px"}},(0,wa.sprintf)((0,wa.__)("Wheel Submission No: #%d","wheel-of-life"),E)))),l>M&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"wheel-widget-area"},(0,t.createElement)(La,{setModalStatus:a,reportLink:C,reportTitle:S,getWheelReport:N}),(0,t.createElement)("div",{className:"wheeloflife-btn-wrap"},(0,t.createElement)("a",{type:"button",className:"wheeloflife-btn is-tertiary view-wheel-btn",href:null!=C?C:"#",target:"_blank"},(0,wa.__)("View My Wheel","wheel-of-life"),(0,t.createElement)(Ea,null)))))),l>M&&(0,t.createElement)(t.Fragment,null,"page-cta"===n?.ctaType&&(0,t.createElement)("div",{className:"wheeloflife-cta-container"},(0,t.createElement)("div",{className:`wheeloflife-cta-wrapper ${"image"===n.customizer.background.background_type&&"has-overlay"}`,style:{background:"image"===n.customizer.background.background_type?"url("+n.customizer.background.background_image.url+") "+100*n.customizer.background.background_image.x+"% "+100*n.customizer.background.background_image.y+"%":"color"===n.customizer.background.background_type?n.customizer.background.backgroundColor.default.color:n.customizer.background.gradient,backgroundSize:"image"===n.customizer.background.background_type&&n.customizer.background.background_size,backgroundAttachment:"image"===n.customizer.background.background_type&&n.customizer.background.background_attachment,padding:n.customizer.padding.top+" "+n.customizer.padding.right+" "+n.customizer.padding.bottom+" "+n.customizer.padding.left,margin:n.customizer.margin.top+" "+n.customizer.margin.right+" "+n.customizer.margin.bottom+" "+n.customizer.margin.left,"--cta-overlay-color":n.customizer.background.overlayColor.default.color},align:"flex-start"===n.customizer.alignment?"left":"flex-end"===n.customizer.alignment?"right":"center"},(0,t.createElement)("h2",{className:"wheeloflife-cta-title",style:{fontSize:n.customizer.fontSize,color:n.customizer.fontColor}},n.title),(0,t.createElement)("div",{className:"wheeloflife-cta-description",style:{fontSize:n.customizer.descFontSize,color:n.customizer.descFontColor},dangerouslySetInnerHTML:{__html:n.description}}),(0,t.createElement)("div",{className:"wheeloflife-cta-btns"},""!==n.btn_label&&""!==D&&(0,t.createElement)("a",{href:D,target:!0===n.openInTab?"_blank":"",rel:"noexternal noopener",className:"wheeloflife-btn primary",style:{fontSize:n.customizer.pbFontSize,color:n.customizer.pbfontColors.pbfontColor,background:n.customizer.pbBgColors.pbBgColor,borderRadius:n.customizer.pbBorderRadius},onMouseOver:t=>{t.target.style.color=n.customizer.pbfontColors.pbfontHoverColor,t.target.style.background=n.customizer.pbBgColors.pbBgHoverColor},onMouseOut:t=>{t.target.style.color=n.customizer.pbfontColors.pbfontColor,t.target.style.background=n.customizer.pbBgColors.pbBgColor}},n.btn_label)))),(!n||"global-cta"===n?.ctaType)&&""!=w.title&&(0,t.createElement)("div",{className:"wheeloflife-cta-container"},(0,t.createElement)("div",{className:`wheeloflife-cta-wrapper ${"image"===w.customizer.background.background_type&&"has-overlay"}`,style:{background:"image"===w.customizer.background.background_type?"url("+w.customizer.background.background_image.url+") "+100*w.customizer.background.background_image.x+"% "+100*w.customizer.background.background_image.y+"%":"color"===w.customizer.background.background_type?w.customizer.background.backgroundColor.default.color:w.customizer.background.gradient,backgroundSize:"image"===w.customizer.background.background_type&&w.customizer.background.background_size,backgroundAttachment:"image"===w.customizer.background.background_type&&w.customizer.background.background_attachment,padding:w.customizer.padding.top+" "+w.customizer.padding.right+" "+w.customizer.padding.bottom+" "+w.customizer.padding.left,margin:w.customizer.margin.top+" "+w.customizer.margin.right+" "+w.customizer.margin.bottom+" "+w.customizer.margin.left,"--cta-overlay-color":w.customizer.background.overlayColor.default.color},align:"flex-start"===w.customizer.alignment?"left":"flex-end"===w.customizer.alignment?"right":"center"},(0,t.createElement)("h2",{className:"wheeloflife-cta-title",style:{fontSize:w.customizer.fontSize,color:w.customizer.fontColor}},w.title),(0,t.createElement)("div",{className:"wheeloflife-cta-description",style:{fontSize:w.customizer.descFontSize,color:w.customizer.descFontColor},dangerouslySetInnerHTML:{__html:w.description}}),(0,t.createElement)("div",{className:"wheeloflife-cta-btns"},""!==w.buttonLabel&&""!==w.buttonLink&&(0,t.createElement)("a",{href:w.buttonLink,target:!0===w.openInTab?"_blank":"",rel:`noexternal noopener ${1==w.setLinkAttrNoFollow&&"nofollow"} ${1==w.setLinkAttrSponser&&"sponsored"}`,className:"wheeloflife-btn primary",style:{fontSize:w.customizer.pbFontSize,color:w.customizer.pbfontColors.pbfontColor,background:w.customizer.pbBgColors.pbBgColor,borderRadius:w.customizer.pbBorderRadius},onMouseOver:t=>{t.target.style.color=w.customizer.pbfontColors.pbfontHoverColor,t.target.style.background=w.customizer.pbBgColors.pbBgHoverColor},onMouseOut:t=>{t.target.style.color=w.customizer.pbfontColors.pbfontColor,t.target.style.background=w.customizer.pbBgColors.pbBgColor},download:1==w.setLinkAttrDownload},w.buttonLabel),""!==w.sbuttonLabel&&""!==w.sbuttonLink&&(0,t.createElement)("a",{href:w.sbuttonLink,target:!0===w.sbopenInTab?"_blank":"",rel:`noexternal noopener ${1==w.sbsetLinkAttrNoFollow&&"nofollow"} ${1==w.sbsetLinkAttrSponser&&"sponsored"}`,className:"wheeloflife-btn secondary",style:{fontSize:w.customizer.sbFontSize,color:w.customizer.sbfontColors.sbfontColor,background:w.customizer.sbBgColors.sbBgColor,borderRadius:w.customizer.sbBorderRadius},onMouseOver:t=>{t.target.style.color=w.customizer.sbfontColors.sbfontHoverColor,t.target.style.background=w.customizer.sbBgColors.sbBgHoverColor},onMouseOut:t=>{t.target.style.color=w.customizer.sbfontColors.sbfontColor,t.target.style.background=w.customizer.sbBgColors.sbBgColor},download:1==w.sbsetLinkAttrDownload},w.sbuttonLabel)))))),"slider"===z&&l<=M&&(0,t.createElement)("div",{className:"wheeloflife-btn-wrap"},(0,t.createElement)("button",{type:"button",className:"wheeloflife-btn is-primary is-small",onClick:()=>{F(x,f,b)(),_(T)}},(0,wa.__)("Next","wheel-of-life"))))}})))}})(),(wheeloflifeExports=void 0===wheeloflifeExports?{}:wheeloflifeExports).frontendComponents=s})(); -
wheel-of-life/trunk/app/build/globalApp.asset.php
r2887037 r2919602 1 <?php return array('dependencies' => array('jquery', 'moment', 'react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-url'), 'version' => ' cfbcea6927d1cb17db29');1 <?php return array('dependencies' => array('jquery', 'moment', 'react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-url'), 'version' => 'd6a5e9d1a0936c734a86'); -
wheel-of-life/trunk/app/build/globalApp.js
r2887037 r2919602 1 var wheeloflifeExports;(()=>{var e={1316:(e,t,n)=>{var r={"./ab-background.js":5241,"./ab-border.js":9889,"./ab-box-shadow.js":568,"./ab-radio.js":4724,"./ab-slider.js":8554,"./ab-spacing.js":5043,"./ab-switch.js":9391};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=1316},268:(e,t,n)=>{var r={"./ab-background.js":5671,"./ab-border.js":3003,"./ab-box-shadow.js":1881,"./ab-color-picker.js":3479,"./ab-image-uploader.js":1950,"./ab-radio.js":9788,"./ab-slider.js":6238,"./ab-spacing.js":453,"./ab-switch.js":7652};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=268},9733:e=>{"use strict";function t(){return null}function n(){return t}t.isRequired=t,e.exports={and:n,between:n,booleanSome:n,childrenHavePropXorChildren:n,childrenOf:n,childrenOfType:n,childrenSequenceOf:n,componentWithName:n,disallowedIf:n,elementType:n,empty:n,explicitNull:n,forbidExtraProps:Object,integer:n,keysOf:n,mutuallyExclusiveProps:n,mutuallyExclusiveTrueProps:n,nChildren:n,nonNegativeInteger:t,nonNegativeNumber:n,numericString:n,object:n,or:n,predicate:n,range:n,ref:n,requiredBy:n,restrictedProp:n,sequenceOf:n,shape:n,stringEndsWith:n,stringStartsWith:n,uniqueArray:n,uniqueArrayOf:n,valuesOf:n,withShape:n}},8341:(e,t,n)=>{e.exports=n(9733)},6584:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>g,fg:()=>h});var r=n(7462),o=n(9307),i=n(5736),a=n(4184),l=n.n(a),s=n(251),c=n.n(s),u=n(5068),p=n(2843);const f=n(1316);f.keys().forEach(f);const d=e=>{let t=f.keys().map((e=>e.replace(/^\.\//,"").replace(/\.js$/,""))).indexOf(e);return t>-1&&f.keys()[t]},h=e=>{const t={};return d(e.type)?f(d(e.type)).default:t[e.type]?t[e.type]:null},m=e=>{let{option:t,value:n}=e;return void 0===n?t.value:n},g=e=>{let{option:t,value:n,values:a,onChange:s,onChangeFor:f,hasRevertButton:d,id:g,purpose:v}=e;const[y,b]=(0,o.useState)(wp.customize&&wp.customize.previewedDevice?wp.customize.previewedDevice():"desktop"),w=()=>{b(wp.customize&&wp.customize.previewedDevice?wp.customize.previewedDevice():"desktop")},E=e=>{b(e),wp.customize&&wp.customize.previewedDevice.set(e)};(0,o.useEffect)((()=>{if(("ct-typography"===t.type||(0,p.W)(t))&&wp.customize)return setTimeout((()=>wp.customize.previewedDevice.bind(w)),1e3),()=>{("ct-typography"===t.type||(0,p.W)(t))&&wp.customize&&wp.customize.previewedDevice.unbind(w)}}),[]);let C=h(t),k={content:null,option:t};const _=(0,p.T)(m({value:n,option:t}),(0,p.W)(t)),S=(0,p.W)(t,{ignoreHidden:!0})?(0,p.Oi)({option:t,value:_,device:y}):_,x=e=>{t.triggerRefreshOnChange&&wp.customize&&wp.customize.previewer&&wp.customize.previewer.refresh(),t.switchDeviceOnChange&&wp.customize&&wp.customize.previewedDevice()!==t.switchDeviceOnChange&&wp.customize.previewedDevice.set(t.switchDeviceOnChange),t.sync&&(Object.keys(t.sync).length>0||Array.isArray(t.sync))&&wp.customize&&wp.customize.previewer&&wp.customize.previewer.send("ct:sync:refresh_partial",{id:t.sync.id||t.id,option:t}),s(e)},O=e=>{const r=(0,p.T)(m({value:n,option:t}),(0,p.W)(t));x((0,p.W)(t,{ignoreHidden:!0})?{...r,["tablet"===y&&"skip"===(0,p.S0)("tablet",t.responsive)?"mobile":y]:e,..."desktop"===y?Object.keys(r).reduce(((n,o)=>({...n,..."desktop"!==o&&"__changed"!==o&&Object.keys((0,p.T)(t.value)).reduce(((e,n)=>!!e&&(0,p.T)(t.value)[n]===(0,p.T)(t.value).desktop),!0)&&-1===(r.__changed||[]).indexOf("tablet")?{[o]:e}:{}})),{}):{},..."tablet"===y&&"skip"!==(0,p.S0)("tablet",t.responsive)?Object.keys(r).reduce(((n,o)=>({...n,..."desktop"!==o&&"tablet"!==o&&"__changed"!==o&&Object.keys((0,p.T)(t.value)).reduce(((e,n)=>!!e&&(0,p.T)(t.value)[n]===(0,p.T)(t.value).desktop),!0)&&-1===(r.__changed||[]).indexOf(o)?{[o]:e}:{}})),{}):{},__changed:[...r.__changed||[],..."desktop"!==y?[y]:[]].filter(((e,t,n)=>n.indexOf(e)===t))}:e)};if(!C)return(0,o.createElement)("div",null,"Unimplemented option: ",t.type);let N={design:!0,label:!0,wrapperAttr:{}},A=()=>null,P=null,j=()=>null, T=()=>({});N={...N,...C.renderingConfig||{}},t.design&&(N.design=t.design),C.LabelToolbar&&(A=C.LabelToolbar),C.ControlEnd&&(j=C.ControlEnd),C.MetaWrapper&&(P=C.MetaWrapper),C.sectionClassName&&(T=C.sectionClassName);let M=(0,o.createElement)(o.Fragment,null,k&&k.content,(0,o.createElement)(C,{key:g,option:{...t,value:(0,p.W)(t,{ignoreHidden:!0})?(0,p.Oi)({device:y,option:t,value:(0,p.T)(t.value||"")}):(0,p.T)(t.value||"",(0,p.W)(t))},value:S,id:g,values:a,onChangeFor:f,device:y,onChange:O}));if(!N.design||"none"===N.design)return M;let L=(0,u.m)({id:g,option:t,values:a,renderingConfig:N}),R=-1!==Object.keys(t).indexOf("desc")&&t.desc,D=-1!==Object.keys(t).indexOf("link")&&(t.link||" ");const B="boolean"==typeof N.design?"block":N.design;if("compact"===N.design)return(0,o.createElement)("section",t.sectionAttr||{},L&&(0,o.createElement)("label",null,L),((0,p.W)(t)&&(0,p.S0)(y,t.responsive)||!(0,p.W)(t))&&M,D&&(0,o.createElement)("a",(0,r.Z)({dangerouslySetInnerHTML:{__html:D}},t.linkAttr||{})));const F=function(){let{wrapperAttr:{className:e,...a}={},...s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",(0,r.Z)({className:l()("ct-control",e,{}),"data-design":B},t.divider?{"data-divider":t.divider}:{},(0,p.W)(t)&&!(0,p.S0)(y,t.responsive)||"disabled"===t.state?{"data-state":"disabled"}:{},t.wrapperAttr||{},a),(0,o.createElement)("div",{className:"components-base-control__label"},L&&(0,o.createElement)("label",null,L),"ct-image-picker"!==t.type&&"ct-layers"!==t.type&&"ab-image-uploader"!==t.type&&"ct-panel"!==t.type&&d&&!t.disableRevertButton&&(0,o.createElement)("button",{type:"button",disabled:c()(t.value,m({value:n,option:t})),className:"rara-revert",onClick:()=>x(t.value)}),(0,o.createElement)(A,{option:t,value:S,id:g,onChange:O}),(0,p.W)(t,{ignoreHidden:!0})&&B.indexOf("block")>-1&&(0,o.createElement)(p.ZP,{device:y,responsiveDescriptor:t.responsive,setDevice:E})),(0,p.W)(t)&&!(0,p.S0)(y,t.responsive)&&(0,o.createElement)("div",{className:"ct-disabled-notification"},t.disabledDeviceMessage||(0,i.__)("Option can't be edited for current device","wheel-of-life")),((0,p.W)(t)&&(0,p.S0)(y,t.responsive)||!(0,p.W)(t))&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("section",(0,r.Z)({},t.sectionAttr||{},{className:l()({"ct-responsive-container":(0,p.W)(t,{ignoreHidden:!0})&&"inline"===B},T({design:B,option:t}),(t.sectionAttr||{}).class||"")}),(0,p.W)(t,{ignoreHidden:!0})&&"inline"===B&&(0,o.createElement)(p.ZP,{device:y,responsiveDescriptor:t.responsive,setDevice:E}),M,D&&(0,o.createElement)("a",(0,r.Z)({dangerouslySetInnerHTML:{__html:D}},t.linkAttr||{}))),(0,o.createElement)(j,null),R&&(0,o.createElement)("div",{dangerouslySetInnerHTML:{__html:R},className:"ct-option-description"}))))};return P?(0,o.createElement)(P,{id:g,option:t,value:S,onChangeFor:f,values:a,getActualOption:F}):F()}},2085:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(9307),o=n(7462),i=n(5609);const a=e=>{let{onChange:t,value:n,value:{color:o}}=e;return(0,r.createElement)("div",null,(0,r.createElement)(i.ColorPicker,{color:o,enableAlpha:!0,onChangeComplete:e=>{e.rgb?t({...n,color:1===e.rgb.a?e.hex:`rgba(${e.rgb.r}, ${e.rgb.g}, ${e.rgb.b}, ${e.rgb.a})`}):t({...n,color:1===o.getAlpha()?hex:o.toRgbString()})}}))};var l=n(4184),s=n.n(l),c=(n(5736),n(9368));const u=e=>e.noColorTransparent?"transparent":"CT_CSS_SKIP_RULE",p=e=>{let{containerRef:t,el:n,value:i,picker:l,onChange:c,option:p,style:f,wrapperProps:d={},inline_modal:h,appendToBody:m}=e;const g=(0,r.useMemo)((()=>i.color===u(p)?{color:"",key:"empty"}:{key:"color",color:i.color}),[i,p,l]),v=(0,r.useMemo)((()=>d.ref&&d.ref.current&&n&&((e,t)=>{if(!e)return;if(!t)return;let n=getComputedStyle(e),r=parseFloat(n.left);return{"--option-modal-arrow-position":(t=t.firstElementChild.getBoundingClientRect()).left+t.width/2-r-6+"px"}})(d.ref.current,n.current)),[d.ref&&d.ref.current,n&&n.current]);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",(0,o.Z)({tabIndex:"0",className:s()("wheeloflife-color-picker-modal",{"wheeloflife-option-modal":!h&&m},p.modalClassName),style:{...v,...f||{}}},d),(0,r.createElement)(a,{key:g.key,onChange:e=>c(e),value:{...i,color:g.color}})))};var f=n(7522),d=n(3431),h=n.n(d);const m=e=>{let{option:t,value:n,onChange:o,picker:i,onPickingChange:a,stopTransitioning:l,innerRef:d,containerRef:m,modalRef:g,isTransitioning:v,isPicking:y}=e;const b=(0,r.useRef)(),{appendToBody:w=!0}=t,{refreshPopover:E,styles:C,popoverProps:k}=(0,c.Z)({contentRef:g,ref:m||{},defaultHeight:379,shouldCalculate:!t.inline_modal||w});if(t.inline_modal)return(0,r.createElement)(p,{containerRef:m,option:t,onChange:o,picker:i,value:n,inline_modal:!!t.inline_modal});let _=null;return v!==i.id&&(y||"").split(":")[0]!==i.id||(_=(0,r.createPortal)((0,r.createElement)(f.uT,{items:y,onRest:()=>l(),config:{duration:100,easing:h()(.25,.1,.25,1)},from:-1===(y||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1},enter:-1===(y||"").indexOf(":")?{transform:"scale3d(1, 1, 1)",opacity:1}:{opacity:1},leave:-1===(y||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1}},(e=>(e||"").split(":")[0]===i.id&&(e=>(0,r.createElement)(p,{style:{...e,...w?C:{}},option:t,onChange:o,picker:i,value:n,el:b,wrapperProps:w?k:{ref:g},appendToBody:w})))),w?document.body:b.current.closest("section").parentNode)),(0,r.createElement)("div",{ref:e=>{b.current=e,d&&(d.current=e)},className:s()("wheeloflife-color-picker-single",{"ct-no-color":(n||{}).color===u(t)})},(0,r.createElement)("span",{tabIndex:"0"},(0,r.createElement)("span",{tabIndex:"0",onClick:e=>{e.stopPropagation(),E();let t=y?y.split(":")[0]===i.id?null:`${i.id}:${y.split(":")[0]}`:i.id;a(t)},style:{background:(n||{}).color}},(0,r.createElement)("i",{className:"wheeloflife-tooltip-top"},i.title))),_)}},1784:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9307),o=n(2085),i=n(2275),a=n(7465);const l=e=>{let{option:t,values:n,value:l,onChange:s}=e;const[{isPicking:c,isTransitioning:u},p]=(0,r.useState)({isPicking:null,isTransitioning:null}),f=(0,r.useRef)(),d=(0,r.useRef)();return(0,r.createElement)(i.Z,{useCapture:!1,display:"inline-block",disabled:!c,wrapperProps:{ref:f},className:"wheeloflife-color-picker-container",additionalRefs:[d],onOutsideClick:()=>{p((e=>{let{isPicking:t}=e;return{isPicking:null,isTransitioning:t}}))}},t.pickers.filter((e=>!e.condition||(0,a.Nj)((0,a.KY)(e.condition),n))).map((e=>(0,r.createElement)(o.Z,{containerRef:f,picker:e,key:e.id,option:t,isPicking:c,modalRef:d,isTransitioning:u,onPickingChange:t=>p({isTransitioning:e.id,isPicking:t}),stopTransitioning:()=>p((e=>({...e,isTransitioning:!1}))),onChange:t=>s({...l,[e.id]:t}),value:l[e.id]||t.value[e.id]}))))}},5068:(e,t,n)=>{"use strict";n.d(t,{m:()=>o});var r=n(7465);const o=e=>{let{id:t,option:n,values:o,renderingConfig:i}=e,a=-1===Object.keys(n).indexOf("label")?(l=t,(l=null==l?"":String(l)).charAt(0).toUpperCase()+l.slice(1)).replace(/\_|\-/g," "):n.label;var l;return a!==a.toString()&&(a=Object.keys(a).reduce(((e,t)=>e||((0,r.Nj)((0,r.KY)(a[t]),o)?t:e)),null)||Object.keys(a)[0]),""===a&&(a=!0),i&&!i.label&&(a=!1),a}},5241:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(9307),o=n(5736),i=n(4184),a=n.n(i),l=n(2275),s=n(9368),c=n(6584);(0,o.__)("Hideout","wheel-of-life"),(0,o.__)("Triangles","wheel-of-life"),(0,o.__)("Bubbles","wheel-of-life"),(0,o.__)("Wiggle","wheel-of-life"),(0,o.__)("Polka Dots","wheel-of-life"),(0,o.__)("Overlaping Circles","wheel-of-life"),(0,o.__)("Texture","wheel-of-life"),(0,o.__)("Diagonal Lines","wheel-of-life"),(0,o.__)("Rain","wheel-of-life"),(0,o.__)("Stripes","wheel-of-life"),(0,o.__)("Diagonal Stripes","wheel-of-life"),(0,o.__)("Intersecting Circles","wheel-of-life"),(0,o.__)("Bank Note","wheel-of-life"),(0,o.__)("Zig Zag","wheel-of-life"),(0,o.__)("Endless Clouds","wheel-of-life"),(0,o.__)("Honey Comb","wheel-of-life"),(0,o.__)("Cross Stripes","wheel-of-life"),(0,o.__)("Autumn","wheel-of-life");const u=e=>{let{option:t,value:n,onChange:i,setOutsideClickFreezed:a}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(c.ZP,{value:n.background_image,values:n,option:{id:"background_image",label:!1,type:"ab-image-uploader",value:t.value.background_image,has_position_picker:!0,emptyLabel:(0,o.__)("Select Image","wheel-of-life"),filledLabel:(0,o.__)("Change Image","wheel-of-life"),onFrameOpen:()=>{a(!0)},onFrameClose:()=>{a(!1)}},hasRevertButton:!1,onChange:e=>i({...n,background_image:e})}),(0,r.createElement)(c.ZP,{value:n.background_repeat,values:n,option:{id:"background_repeat",label:(0,o.__)("Background Repeat","wheel-of-life"),attr:{"data-type":"repeat"},type:"ab-radio",view:"text",design:"block",value:t.value.background_repeat,choices:{"no-repeat":'<svg viewBox="0 0 16 16"><rect x="6" y="6" width="4" height="4"/></svg>',"repeat-x":'<svg viewBox="0 0 16 16"><rect y="6" width="4" height="4"/><rect x="6" y="6" width="4" height="4"/><rect x="12" y="6" width="4" height="4"/></svg>',"repeat-y":'<svg viewBox="0 0 16 16"><rect x="6" width="4" height="4"/><rect x="6" y="6" width="4" height="4"/><rect x="6" y="12" width="4" height="4"/></svg>',repeat:'<svg viewBox="0 0 16 16"><path d="M0,0h4v4H0V0z M6,0h4v4H6V0z M12,0h4v4h-4V0z M0,6h4v4H0V6z M6,6h4v4H6V6z M12,6h4v4h-4V6z M0,12h4v4H0V12z M6,12h4v4H6V12zM12,12h4v4h-4V12z"/></svg>'}},hasRevertButton:!1,onChange:e=>i({...n,background_repeat:e})}),(0,r.createElement)(c.ZP,{value:n.background_size,values:n,option:{id:"background_size",label:(0,o.__)("Background Size","wheel-of-life"),type:"ab-radio",view:"text",design:"block",value:t.value.background_size,choices:{auto:(0,o.__)("Auto","wheel-of-life"),cover:(0,o.__)("Cover","wheel-of-life"),contain:(0,o.__)("Contain","wheel-of-life")}},hasRevertButton:!1,onChange:e=>i({...n,background_size:e})}),(0,r.createElement)(c.ZP,{value:n.background_attachment,values:n,option:{id:"background_size",label:(0,o.__)("Background Attachment","wheel-of-life"),type:"ab-radio",view:"text",design:"block",value:t.value.background_attachment,choices:{scroll:(0,o.__)("Scroll","wheel-of-life"),fixed:(0,o.__)("Fixed","wheel-of-life"),inherit:(0,o.__)("Inherit","wheel-of-life")}},hasRevertButton:!1,onChange:e=>i({...n,background_attachment:e})}),n.background_image.url&&(0,r.createElement)(c.ZP,{value:n.overlayColor,values:n,option:{id:"overlayColor",label:(0,o.__)("Image Overlay Color","wheel-of-life"),type:"ab-color-picker",design:"inline",value:t.value.overlayColor,pickers:[{title:(0,o.__)("Initial","wheel-of-life"),id:"default"}],skipArrow:!0,appendToBody:!1},hasRevertButton:!1,onChange:e=>i({...n,overlayColor:e})}))};var p=n(9715);const f=e=>{let{option:t,value:n,isOpen:i,onChange:l,setOutsideClickFreezed:s}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("ul",{className:"ct-modal-tabs",onMouseUp:e=>{e.preventDefault()}},["color","gradient","image"].map((e=>(0,r.createElement)("li",{"data-type":e,key:e,className:a()({active:e===n.background_type||"image"===e&&("pattern"===n.background_type||"image"===n.background_type)}),onClick:()=>l({...n,background_type:e,..."gradient"===e?{gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)"}:{}})},{color:(0,o.__)("Color","wheel-of-life"),gradient:(0,o.__)("Gradient","wheel-of-life"),image:(0,o.__)("Image","wheel-of-life")}[e])))),(0,r.createElement)("div",{className:a()({"ct-image-tab ct-options-container":"image"===n.background_type||"pattern"===n.background_type,"ct-gradient-tab wheeloflife-color-picker-modal":"gradient"===n.background_type,"ct-color-tab":"color"===n.background_type})},("image"===n.background_type||"pattern"===n.background_type)&&(0,r.createElement)("ul",{className:"ct-radio-option ct-buttons-group",onMouseUp:e=>{e.preventDefault()}},["image","pattern"].map((e=>(0,r.createElement)("li",{"data-type":e,key:e,className:a()({active:e===n.background_type}),onClick:()=>l({...n,background_type:e})},{pattern:(0,o.__)("Pattern","wheel-of-life"),image:(0,o.__)("Image","wheel-of-life")}[e])))),"image"===n.background_type&&(0,r.createElement)(u,{setOutsideClickFreezed:s,option:t,onChange:l,value:n}),"gradient"===n.background_type&&(0,r.createElement)(p.Z,{value:n,onChange:l}),"gradient"!==n.background_type&&(0,r.createElement)(c.ZP,{value:n.backgroundColor,values:n,option:{id:"backgroundColor",label:"color"!==n.background_type&&(0,o.__)("Background Color","wheel-of-life"),type:"ab-color-picker",skipNoColorPill:!0,design:"color"===n.background_type?"none":"inline",value:t.value.backgroundColor,pickers:[{title:(0,o.__)("Initial","wheel-of-life"),id:"default"}],inline_modal:"color"===n.background_type,skipArrow:!0,appendToBody:!1},hasRevertButton:!1,onChange:e=>l({...n,backgroundColor:e})})))},d=e=>{let{option:t,value:n,onChange:i}=e;const[c,u]=(0,r.useState)(!1),[p,d]=(0,r.useState)(!1),h=(0,r.useRef)();n=(e=>!e.background_type&&e[Object.keys(e)[0]].color?{background_type:"color",background_pattern:"type-1",background_image:{attachment_id:null,x:0,y:0},background_repeat:"no-repeat",background_size:"auto",background_attachment:"scroll",patternColor:{default:{color:"#e5e7ea"}},backgroundColor:{default:e[Object.keys(e)[0]]}}:e)(n);const m="color"===n.background_type&&("CT_CSS_SKIP_RULE"===n.backgroundColor.default.color||"transparent"===n.backgroundColor.default.color),{styles:g,popoverProps:v}=(0,s.Z)({ref:h,defaultHeight:434,shouldCalculate:h&&h.current});return(0,r.createElement)("div",{ref:h,className:a()("ct-background",{active:c})},(0,r.createElement)("div",{className:a()("ct-background-preview",{"no-color":m}),onClick:e=>{e.preventDefault(),u(!c),"color"===n.background_type&&("CT_CSS_SKIP_RULE"!==n.backgroundColor.default.color&&"transparent"!==n.backgroundColor.default.color||i({...n,backgroundColor:{default:{color:"#ffffff"}}}))},"data-background-type":n.background_type,style:{...n.backgroundColor.default.color.indexOf("CT_CSS_SKIP_RULE")>-1?{}:{backgroundColor:n.backgroundColor.default.color},"--background-position":`${Math.round(100*parseFloat(n.background_image.x))}% ${Math.round(100*parseFloat(n.background_image.y))}%`,"--background-image":"gradient"===n.background_type?n.gradient:n.background_image.url?`url(${n.background_image.url})`:"none"}},(0,r.createElement)("i",{className:"wheeloflife-tooltip-top"},{inherit:(0,o.__)("Inherited","wheel-of-life"),pattern:(0,o.__)("Pattern","wheel-of-life"),gradient:(0,o.__)("Gradient","wheel-of-life"),color:(0,o.__)("Color","wheel-of-life"),image:(0,o.__)("Image","wheel-of-life")}[m?"inherit":n.background_type]),m&&(0,r.createElement)("svg",{width:"25",height:"25",viewBox:"0 0 30 30"},(0,r.createElement)("path",{d:"M15 3c-3 0-5.7 1.1-7.8 2.9-.4.3-.5.9-.2 1.4.3.4 1 .5 1.4.2h.1C10.3 5.9 12.5 5 15 5c5.2 0 9.5 3.9 10 9h-3l4 6 4-6h-3.1C26.4 7.9 21.3 3 15 3zM4 10l-4 6h3.1c.5 6.1 5.6 11 11.9 11 3 0 5.7-1.1 7.8-2.9.4-.3.5-1 .2-1.4-.3-.4-1-.5-1.4-.2h-.1c-1.7 1.5-4 2.4-6.5 2.4-5.2 0-9.5-3.9-10-9h3L4 10z"}))),h&&h.current&&(0,r.createPortal)((0,r.createElement)(l.Z,{useCapture:!1,display:"block",disabled:!c||p,onOutsideClick:()=>{setTimeout((()=>u(!1)))},wrapperProps:{style:g,...v,className:a()("ct-option-modal wheeloflife-background-modal",{active:c})}},(0,r.createElement)(f,{onChange:i,value:n,option:t,isOpen:c,setOutsideClickFreezed:d})),document.body))}},9889:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(9307),o=n(5736),i=n(4184),a=n.n(i),l=n(1784),s=n(2275);const c=(e,t,n)=>Math.max(e,Math.min(t,n)),u=e=>{let{value:t,option:n,onChange:i}=e;const[u,p]=(0,r.useState)(!1);return(0,r.createElement)("div",{className:a()("ct-option-border")},(0,r.createElement)("div",{className:a()("ct-value-changer",{active:u,"ct-disabled":"none"===t.style||t.inherit})},(0,r.createElement)("input",{type:"number",value:t.width,onChange:e=>{let{target:{value:n}}=e;return i({...t,width:c(1,5,parseInt(n,10)||1)})}}),(0,r.createElement)("span",{className:"ct-value-divider"}),(0,r.createElement)("span",{className:"ct-current-value","data-style":t.inherit?"none":t.style,onClick:()=>p(!u)},t.inherit?(0,o.__)("Inherit","wheel-of-life"):"none"===t.style?t.style:null),(0,r.createElement)(s.Z,{disabled:!u,onOutsideClick:()=>{u&&p(!1)}},(0,r.createElement)("ul",{className:"ct-styles-list"},["solid","dashed","dotted","none"].reduce(((e,t,n)=>[...e.slice(0,n%2==0?void 0:-1),...n%2==0?[[t]]:[[e[e.length-1][0],t]]]),[]).map((e=>(0,r.createElement)("li",{key:e[0]},e.map((e=>(0,r.createElement)("span",{className:a()({active:e===t.style}),"data-style":e,key:e,onClick:()=>{i({...t,style:e,...Object.keys(n.value).indexOf("inherit")>-1?{inherit:!1}:{}}),p(!1)},"data-style":e},"none"===e?e:null))))))))),(0,r.createElement)(l.Z,{onChange:e=>i({...t,color:e.default}),option:{pickers:[{id:"default",title:"Initial"}]},value:{default:t.color}}))}},568:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r=n(9307),o=n(5736),i=n(4184),a=n.n(i),l=n(2085),s=n(2275),c=n(7462),u=n(3431),p=n.n(u),f=n(7522),d=n(6584),h=n(9368),m=n(9391);const g=e=>{let{option:t,value:n,onChange:i,picker:l,onPickingChange:s,stopTransitioning:u,el:g,hOffsetRef:v,vOffsetRef:y,blurRef:b,spreadRef:w,isTransitioning:E,isPicking:C}=e;const{styles:k,popoverProps:_}=(0,h.Z)({ref:g,defaultHeight:t.hide_shadow_placement?437:507,shouldCalculate:E===l.id||(C||"").split(":")[0]===l.id});return(E===l.id||(C||"").split(":")[0]===l.id)&&(0,r.createPortal)((0,r.createElement)(f.uT,{items:C,onRest:e=>{u()},config:{duration:100,easing:p()(.25,.1,.25,1)},from:-1===(C||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1},enter:-1===(C||"").indexOf(":")?{transform:"scale3d(1, 1, 1)",opacity:1}:{opacity:1},leave:-1===(C||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1}},(e=>(e||"").split(":")[0]===l.id&&(e=>(0,r.createElement)("div",(0,c.Z)({style:{...e,...k}},_,{className:"ct-option-modal ct-box-shadow-modal",onClick:e=>{e.preventDefault(),e.stopPropagation()},onMouseDownCapture:e=>{e.nativeEvent.stopImmediatePropagation(),e.nativeEvent.stopPropagation()},onMouseUpCapture:e=>{e.nativeEvent.stopImmediatePropagation(),e.nativeEvent.stopPropagation()}}),(0,r.createElement)("div",{className:"ct-shadow-trigger"},(0,r.createElement)("label",null,(0,o.__)("Enable/Disable","wheel-of-life")),(0,r.createElement)(m.default,{value:n.enable?"yes":"no",onChange:()=>{i({...n,enable:!n.enable})}})),(0,r.createElement)("div",{className:"shadow-sliders"},(0,r.createElement)(d.ZP,{value:n.h_offset,values:n,id:"h_offset",option:{id:"h_offset",label:(0,o.__)("Horizontal Offset","wheel-of-life"),type:"ab-slider",steps:"half",value:t.value.h_offset,min:-100,max:100,design:"compact",ref:v},hasRevertButton:!1,onChange:e=>i({...n,h_offset:e})}),(0,r.createElement)(d.ZP,{value:n.v_offset,values:n,id:"v_offset",option:{steps:"half",id:"v_offset",label:(0,o.__)("Vertical Offset","wheel-of-life"),type:"ab-slider",value:t.value.v_offset,min:-100,max:100,design:"compact",ref:y},hasRevertButton:!1,onChange:e=>i({...n,v_offset:e})}),(0,r.createElement)(d.ZP,{value:n.blur,values:n,id:"blur",option:{steps:"positive",id:"blur",label:(0,o.__)("Blur","wheel-of-life"),type:"ab-slider",value:t.value.blur,min:0,max:100,design:"compact",ref:b},hasRevertButton:!1,onChange:e=>{i({...n,blur:e})}}),(0,r.createElement)(d.ZP,{value:n.spread,values:n,id:"spread",option:{steps:"half",id:"spread",label:(0,o.__)("Spread","wheel-of-life"),type:"ab-slider",value:t.value.spread,min:-100,max:100,design:"compact",ref:w},hasRevertButton:!1,onChange:e=>i({...n,spread:e})})),!t.hide_shadow_placement&&(0,r.createElement)("ul",{className:"ct-shadow-style"},(0,r.createElement)("li",{onClick:()=>i({...n,inset:!1}),className:a()({active:!n.inset})},"Outline"),(0,r.createElement)("li",{onClick:()=>i({...n,inset:!0}),className:a()({active:n.inset})},"Inset")))))),document.body)},v=e=>{let{value:t,option:n,onChange:i}=e;const[{isPicking:c,isTransitioning:u},p]=(0,r.useState)({isPicking:null,isTransitioning:null}),[f,d]=(0,r.useState)(null),h=(0,r.useRef)(),m=(0,r.useRef)(),v=(0,r.useRef)(),y=(0,r.useRef)(),b=(0,r.useRef)(),w=(0,r.useRef)(),E=(0,r.useRef)(),C=(0,r.useRef)();return(0,r.createElement)("div",{ref:h,className:a()("ct-box-shadow",{"ct-disabled":!t.enable||t.inherit})},(0,r.createElement)(l.Z,{innerRef:m,picker:{id:"default",title:"Initial"},option:{pickers:[{id:"default",title:"Initial"}]},isPicking:c,isTransitioning:u,modalRef:C,containerRef:E,onPickingChange:e=>{t.enable&&p({isTransitioning:"default",isPicking:e})},stopTransitioning:()=>p({isPicking:c,isTransitioning:!1}),onChange:e=>i({...t,color:e}),value:t.color}),(0,r.createElement)(s.Z,{useCapture:!1,disabled:!c,className:"ct-box-shadow-values",additionalRefs:[m,C],onOutsideClick:()=>{c&&p({isTransitioning:c.split(":")[0],isPicking:null})},wrapperProps:{ref:E,onClick:e=>{e.preventDefault();let t=c?"opts"===c.split(":")[0]?null:`opts:${c.split(":")[0]}`:"opts";p({isTransitioning:"opts",isPicking:t})}}},(0,r.createElement)("span",null,t.inherit?(0,o.__)("Inherit","wheel-of-life"):t.enable?(0,o.__)("Adjust","wheel-of-life"):(0,o.__)("None","wheel-of-life"))),(0,r.createElement)(g,{el:h,value:t,onChange:e=>i({...e,inherit:!1}),option:n,isPicking:c,isTransitioning:u,hOffsetRef:v,vOffsetRef:y,blurRef:b,spreadRef:w,picker:{id:"opts"},onPickingChange:e=>{t.enable&&p({isTransitioning:"opts",isPicking:e})},stopTransitioning:()=>p({isPicking:c,isTransitioning:!1})}))}},4724:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(7462),o=n(9307),i=n(4184),a=n.n(i),l=n(7465);class s extends o.Component{renderAsText(){}renderAsRadio(){const{inline:e=!1}=this.props.option;return(0,o.createElement)("div",(0,r.Z)({className:"ct-radio-option"},e?{"data-inline":""}:{},this.props.option.attr||{}),Object.keys(this.props.option.choices).map((e=>(0,o.createElement)("label",{key:e},(0,o.createElement)("input",{type:"radio",checked:e===this.props.value,onChange:()=>this.props.onChange(e)}),this.props.option.choices[e]))))}render(){if("radio"===this.props.option.view)return this.renderAsRadio();const{inline:e=!1}=this.props.option;return(0,o.createElement)("ul",(0,r.Z)({className:"ct-radio-option ct-buttons-group"},e?{"data-inline":""}:{},this.props.option.attr||{}),Object.keys(this.props.option.choices).filter((e=>!this.props.option.conditions||!this.props.option.conditions[e]||(0,l.Nj)((0,l.KY)(this.props.option.conditions[e]),this.props.values))).map((e=>(0,o.createElement)("li",(0,r.Z)({className:a()({active:e===this.props.value}),onClick:()=>this.props.onChange(e),key:e,dangerouslySetInnerHTML:{__html:this.props.option.choices[e]}},this.props.singleChoiceProps?this.props.singleChoiceProps(e):{})))))}}},8554:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(7462),o=n(9307),i=n(4184),a=n.n(i),l=n(6399),s=n.n(l),c=n(2275);const u=(e,t,n)=>Math.max(e,Math.min(t,n)),p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=Math.pow(10,t);return Math.round(e*n+Number.EPSILON)/n},f=e=>{let{option:t,onChange:n,is_open:r,toggleOpen:i,currentUnit:a,getNumericValue:l,getAllowedDecimalPlaces:s}=e;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("span",{onClick:()=>i(),className:"ct-current-value"},a||"―"),(0,o.createElement)(c.Z,{onOutsideClick:()=>{r&&i()}},(0,o.createElement)("ul",{className:"ct-units-list"},t.units.filter((e=>{let{unit:t}=e;return t!==a})).reduce(((e,t,n)=>[...e.slice(0,n%2==0?void 0:-1),...n%2==0?[[t]]:[[e[e.length-1][0],t]]]),[]).map((e=>(0,o.createElement)("li",{key:e[0].unit},e.map((e=>{let{unit:r}=e;return(0,o.createElement)("span",{key:r,onClick:()=>{(e=>{const r=l();n(`${p(u(t.units.find((t=>{let{unit:n}=t;return n===e})).min,t.units.find((t=>{let{unit:n}=t;return n===e})).max,""===r?-1/0:r),s(e))}${e}`)})(r),i()}},r||"―")}))))))))};class d extends o.Component{state={is_dragging:!1,is_open:!1};el=(0,o.createRef)();hasUnitsList=()=>this.props.option.units&&this.props.option.units.length>1;getAllowedDecimalPlaces=(()=>{var e=this;return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const n=e.props.option.units?e.props.option.units.find((n=>{let{unit:r}=n;return r===(t||e.getCurrentUnit())})).decimals:e.props.option.decimals;return 0===n||n?n:0}})();withDefault=(e,t)=>this.props.option.units&&this.props.option.units.find((t=>{let{unit:n}=t;return n===e}))?e:e||t;getCurrentUnit=()=>this.props.option.units?this.withDefault(this.props.value.toString().replace(/[0-9]/g,"").replace(/\-/g,"").replace(/\./g,"").replace("CT_CSS_SKIP_RULE",""),this.props.option.units[0].unit):"";getMax=()=>this.props.option.units?this.props.option.units.find((e=>{let{unit:t}=e;return t===this.getCurrentUnit()})).max:this.props.option.max;getMin=()=>this.props.option.units?this.props.option.units.find((e=>{let{unit:t}=e;return t===this.getCurrentUnit()})).min:this.props.option.min;getNumericValue=(()=>{var e=this;return function(){let{forPosition:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=parseFloat(e.props.value,10);if(0===n)return n;if(!n){if(e.props.option.defaultPosition&&"center"===e.props.option.defaultPosition&&t){let t=parseFloat(e.getMin(),10);return(parseFloat(e.getMax(),10)-t)/2+t}return""}return n}})();computeAndSendNewValue(e){let{pageX:t}=e,{top:n,left:r,right:o,width:i}=this.el.current.getBoundingClientRect(),a=t-r-pageXOffset;this.props.onChange(`${p(s()([0,i],[parseFloat(this.getMin(),10),parseFloat(this.getMax(),10)],!0)(document.body.classList.contains("rtl")?i-a:a),this.getAllowedDecimalPlaces())}${this.getCurrentUnit()}`)}handleMove=e=>{this.state.is_dragging&&this.computeAndSendNewValue(e)};handleUp=()=>{this.setState({is_dragging:!1}),this.detachEvents()};handleBlur=()=>{if("CT_CSS_SKIP_RULE"===this.props.option.value){if("CT_CSS_SKIP_RULE"===this.props.value)return;if(""===this.getNumericValue())return void this.props.onChange("CT_CSS_SKIP_RULE")}this.props.onChange(`${u(parseFloat(this.getMin(),10),parseFloat(this.getMax(),10),parseFloat(this.getNumericValue(),10))}${this.getCurrentUnit()}`)};handleChange=e=>{"CT_CSS_SKIP_RULE"!==this.props.option.value||""!==e.toString().trim()?this.props.onChange(`${((e,t)=>Math.min(e,t))(parseFloat(this.getMax(),10),parseFloat(e||this.getMin()))}${this.getCurrentUnit()}`):this.props.onChange("CT_CSS_SKIP_RULE")};attachEvents(){document.documentElement.addEventListener("mousemove",this.handleMove,!0),document.documentElement.addEventListener("mouseup",this.handleUp,!0)}detachEvents(){document.documentElement.removeEventListener("mousemove",this.handleMove,!0),document.documentElement.removeEventListener("mouseup",this.handleUp,!0)}render(){const e=`${s()([parseFloat(this.getMin(),10),parseFloat(this.getMax(),10)],[0,100])(u(parseFloat(this.getMin(),10),parseFloat(this.getMax(),10),0===parseFloat(this.getNumericValue({forPosition:!0}),10)?0:parseFloat(this.getNumericValue({forPosition:!0}),10)?parseFloat(this.getNumericValue({forPosition:!0}),10):parseFloat(this.getMin(),10)))}`;return(0,o.createElement)("div",{className:"ct-option-slider"},this.props.beforeOption&&this.props.beforeOption(),(0,o.createElement)("div",(0,r.Z)({onMouseDown:e=>{let{pageX:t,pageY:n}=e;this.attachEvents(),this.setState({is_dragging:!0})},onClick:e=>this.computeAndSendNewValue(e),ref:this.el,className:"ab-slider"},this.props.option.steps?{"data-steps":""}:{}),(0,o.createElement)("div",{style:{width:`${e}%`}}),(0,o.createElement)("span",{style:{"--position":`${e}%`}}),this.props.option.steps&&(0,o.createElement)("section",{className:this.props.option.steps},(0,o.createElement)("i",{className:"minus"}),(0,o.createElement)("i",{className:"zero"}),(0,o.createElement)("i",{className:"plus"}))),!this.props.option.skipInput&&(0,o.createElement)("div",{className:a()("ab-slider-input",{"ct-value-changer":!0,"no-unit-list":!this.hasUnitsList(),active:this.state.is_open})},(0,o.createElement)("input",(0,r.Z)({type:"number"},this.props.option.ref?{ref:this.props.option.ref}:{},{step:1/Math.pow(10,this.getAllowedDecimalPlaces()),value:this.getNumericValue(),onBlur:()=>this.handleBlur(),onChange:e=>{let{target:{value:t}}=e;return this.handleChange(t)}})),(0,o.createElement)("span",{className:"ct-value-divider"}),!this.hasUnitsList()&&(0,o.createElement)("span",{className:"ct-current-value"},this.withDefault(this.getCurrentUnit(),this.props.option.defaultUnit||"px")),this.hasUnitsList()&&(0,o.createElement)(f,{option:this.props.option,onChange:this.props.onChange,is_open:this.state.is_open,toggleOpen:()=>this.setState({is_open:!this.state.is_open}),currentUnit:this.getCurrentUnit(),getNumericValue:this.getNumericValue,getAllowedDecimalPlaces:this.getAllowedDecimalPlaces})))}}},5043:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(7462),o=n(9307),i=n(5736),a=n(4184),l=n.n(a),s=n(9050);const c=e=>{let{disabled:t,className:n="",value:r,onBlur:a,onChange:c,placeholder:u=(0,i.__)("Default","wheel-of-life")}=e;return(0,o.createElement)("input",{type:"text",value:r,onKeyDown:e=>{s.ZP.contains([46,8,9,27,13,110,190,27],e.keyCode)||65==e.keyCode&&!0===e.ctrlKey||109==e.keyCode||189==e.keyCode||173==e.keyCode||67==e.keyCode&&!0===e.ctrlKey||88==e.keyCode&&!0===e.ctrlKey||e.keyCode>=35&&e.keyCode<=39&&38!==e.keyCode&&40!==e.keyCode||(38===e.keyCode&&s.ZP.isNumber(parseInt(r,10))&&c(parseInt(r,10)+(e.shiftKey?10:1),!0),40===e.keyCode&&s.ZP.isNumber(parseInt(r,10))&&c(parseInt(r,10)-(e.shiftKey?10:1),!0),(e.shiftKey||e.keyCode<48||e.keyCode>57)&&(e.keyCode<96||e.keyCode>105)&&e.preventDefault())},onChange:e=>{let{target:{value:t}}=e;return c(t)},placeholder:u,onBlur:()=>a&&a,className:l()({inactive:"auto"===r})})};var u=n(2275);const p=e=>{let{value:t,option:n,onChange:a}=e;const[s,p]=(0,o.useState)(!1),f=[{unit:"px"},{unit:"%"},{unit:"em"},{unit:"rem"},{unit:"pt"}],d=()=>["top","right","bottom","left"].find((e=>"auto"!==t[e])),h=()=>{return e=t[d()].toString().replace(/[0-9]/g,"").replace(/\./g,""),f.find((t=>{let{unit:n}=t;return n===e}))?e:e||f[0].unit;var e},m=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"auto"===e?e:`${0===parseFloat(e)?0:parseFloat(e)||""}${t}`};return(0,o.createElement)("div",{className:l()("ct-option-spacing",{linked:t.linked})},["top","right","bottom","left"].map((e=>(0,o.createElement)("span",{key:e},(0,o.createElement)(c,(0,r.Z)({placeholder:"",value:m(t[e]),onChange:n=>{return r=n,o=e,void(t.linked?a({...t,top:"auto"===t.top?t.top:m(r,h()),left:"auto"===t.left?t.left:m(r,h()),right:"auto"===t.right?t.right:m(r,h()),bottom:"auto"===t.bottom?t.bottom:m(r,h())}):a({...t,[o]:m(r,h())}));var r,o},placeholder:""},n.inputAttr)),(0,o.createElement)("small",null,{top:(0,i.__)("Top","wheel-of-life"),bottom:(0,i.__)("Bottom","wheel-of-life"),left:(0,i.__)("Left","wheel-of-life"),right:(0,i.__)("Right","wheel-of-life")}[e])))),(0,o.createElement)("div",{className:l()("ct-spacing-controls ct-value-changer",{active:s})},(0,o.createElement)("a",{onClick:e=>{if(e.preventDefault(),t.linked)return void a({...t,linked:!1});const n=t[d()];a({...t,top:"auto"!==t.top?n:t.top,left:"auto"!==t.left?n:t.left,bottom:"auto"!==t.bottom?n:t.bottom,right:"auto"!==t.right?n:t.right,linked:!0})}},(0,o.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 15 15"},t.linked?(0,o.createElement)("path",{d:"M12.2,5.5V4.7c0-2.6-2.1-4.7-4.7-4.7S2.8,2.1,2.8,4.7v0.8c-0.9,0-1.6,0.7-1.6,1.6v6.3c0,0.9,0.7,1.6,1.6,1.6h9.5c0.9,0,1.6-0.7,1.6-1.6V7.1C13.8,6.2,13.1,5.5,12.2,5.5z M10.7,5.5H4.3V4.7c0-1.8,1.4-3.2,3.2-3.2s3.2,1.4,3.2,3.2V5.5z"}):(0,o.createElement)("path",{d:"M12.2,5.5h-1.6H9.9h-5H4.7l0-0.2C4.4,3.5,5.5,1.9,7.3,1.5c1.1-0.2,2.2,0.1,2.8,0.9l1.3-0.9c-1-1.1-2.6-1.8-4.3-1.5C4.5,0.5,2.8,2.9,3.2,5.5H2.8c-0.9,0-1.6,0.7-1.6,1.6v6.3c0,0.9,0.7,1.6,1.6,1.6h9.5c0.9,0,1.6-0.7,1.6-1.6V7.1C13.8,6.2,13.1,5.5,12.2,5.5z"}))),(0,o.createElement)("span",{className:"ct-value-divider"}),(0,o.createElement)("div",{onClick:()=>p(!s),className:"ct-current-value"},h()||"―"),(0,o.createElement)(u.Z,{onOutsideClick:()=>{s&&p(!1)}},(0,o.createElement)("ul",{className:"ct-units-list"},f.filter((e=>{let{unit:t}=e;return t!==h()})).reduce(((e,t,n)=>[...e.slice(0,n%2==0?void 0:-1),...n%2==0?[[t]]:[[e[e.length-1][0],t]]]),[]).map((e=>(0,o.createElement)("li",{key:e[0].unit},e.map((e=>{let{unit:n}=e;return(0,o.createElement)("span",{key:n,onClick:()=>{a({...t,top:m(t.top,n),left:m(t.left,n),right:m(t.right,n),bottom:m(t.bottom,n)}),p(!1)}},n||"―")})))))))))}},9391:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(9307),o=n(4184),i=n.n(o);const a=e=>{let{option:{behavior:t="words"},value:n}=e;return"words"===t?"yes"===n:!!n},l=e=>{let{value:t,option:n={},onChange:o,onClick:l}=e;return(0,r.createElement)("div",{className:i()({"ct-option-switch":!0,"ct-active":a({option:n,value:t})}),onClick:e=>{l&&l(e),o((e=>{let{option:t={},option:{behavior:n="words"},value:r}=e;return a({option:t,value:r})?"words"===n&&"no":"words"!==n||"yes"})({option:n,value:t}))}},(0,r.createElement)("span",null))};l.renderingConfig={design:"inline"};const s=l},9715:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9307),o=n(5609),i=n(4184),a=n.n(i);const l=e=>{let{value:t,onChange:n}=e,i=o.GradientPicker||o.__experimentalGradientPicker;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(i,{value:t.gradient||"",onChange:e=>{n({...t,gradient:e})}}),(0,r.createElement)("ul",{className:"ct-gradient-swatches"},[{name:"Vivid cyan blue to vivid purple",gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:"Light green cyan to vivid green cyan",gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:"Luminous vivid amber to luminous vivid orange",gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:"Luminous vivid orange to vivid red",gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:"Very light gray to cyan bluish gray",gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"}].map((e=>{let{gradient:o,slug:i}=e;return(0,r.createElement)("li",{onClick:()=>{n({...t,gradient:t.gradient===o?"":o})},className:a()({active:o===t.gradient}),style:{"--background-image":o},key:i})}))))}},2275:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(7462),o=n(9307),i=n(4184),a=n.n(i);const l=(e,t)=>{"function"==typeof e?e(t):e.current=t};class s extends o.Component{componentDidMount(){const{disabled:e,useCapture:t}=this.props;e||this.addMouseDownEventListener(t)}childNode=(0,o.createRef)();checkIsInside=e=>[this.childNode,...this.props.additionalRefs||[]].reduce(((t,n)=>t||(n&&n.current?n.current.contains(e.target):t)),!1);UNSAFE_componentWillReceiveProps(e){let{disabled:t,useCapture:n}=e;const{disabled:r}=this.props;r!==t&&(t?this.removeEventListeners():this.addMouseDownEventListener(n))}componentWillUnmount(){this.removeEventListeners()}onMouseDown=e=>{const{useCapture:t}=this.props;this.checkIsInside(e)||(this.removeMouseUp&&(this.removeMouseUp(),this.removeMouseUp=null),document.addEventListener("mouseup",this.onMouseUp,t),this.removeMouseUp=()=>{document.removeEventListener("mouseup",this.onMouseUp,t)})};onMouseUp=e=>{const{onOutsideClick:t}=this.props;this.removeMouseUp&&(this.removeMouseUp(),this.removeMouseUp=null),this.checkIsInside(e)||t(e)};setChildNodeRef=e=>{this.props.wrapperProps&&this.props.wrapperProps.ref&&l(this.props.wrapperProps.ref,e),l(this.childNode,e)};addMouseDownEventListener(e){document.addEventListener("mousedown",this.onMouseDown,e),this.removeMouseDown=()=>{document.removeEventListener("mousedown",this.onMouseDown,e)}}removeEventListeners(){this.removeMouseDown&&this.removeMouseDown(),this.removeMouseUp&&this.removeMouseUp()}render(){const{children:e,display:t,className:n,wrapperProps:i}=this.props;return(0,o.createElement)("div",(0,r.Z)({className:a()(n)},i||{},{ref:this.setChildNodeRef}),e)}}s.defaultProps={disabled:!1,useCapture:!0,display:"block"}},2843:(e,t,n)=>{"use strict";n.d(t,{Oi:()=>u,S0:()=>s,T:()=>l.T,W:()=>c,ZP:()=>p});var r=n(9307),o=n(4184),i=n.n(o),a=n(6584),l=n(600);const s=(e,t)=>({desktop:!0,tablet:!0,mobile:!0,..."boolean"==typeof t?{}:t||{}}[e]),c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{ignoreHidden:n=!1}=t,r=(0,a.fg)(e);return!(!r?.hiddenResponsive||n)||!!e.responsive},u=e=>{let{value:t,option:n,device:r}=e;return"tablet"===r&&"skip"===s(r,n.responsive)?t.mobile:t[r]},p=e=>{let{device:t,setDevice:n,responsiveDescriptor:o}=e;return(0,r.createElement)("div",{className:"ct-control-options"},(0,r.createElement)("ul",{className:"ct-responsive-controls ct-devices"},["desktop","tablet","mobile"].filter((e=>"skip"!==s(e,o))).map((e=>(0,r.createElement)("li",{onClick:()=>n(e),className:i()({active:e===t,"ct-disabled":!s(e,o)},`ct-${e}`),key:e})))))}},9368:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307);const o=function(){let{contentRef:e,shouldCalculate:t=!0,ref:n,defaultHeight:o=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const i=(0,r.useRef)(),[a,l]=(0,r.useState)(null),s=()=>{t&&l(Math.random())},c=t=>{let n=e||i;n&&n.current&&!n.current.contains(t.target)&&s()};(0,r.useEffect)((()=>{let t;return setTimeout((()=>{s()}),500),window.addEventListener("resize",s),window.addEventListener("scroll",c,!0),n.current&&(t=new window.ResizeObserver(s),t.observe(n.current,{attributes:!0}),n.current.closest(".ct-tabs-scroll")&&t.observe(n.current.closest(".ct-tabs-scroll"),{attributes:!0}),n.current.closest(".customize-pane-child")&&t.observe(n.current.closest(".customize-pane-child"),{attributes:!0})),(e?e.current:i.current)&&(t||(t=new window.ResizeObserver(s)),t.observe(e?e.current:i.current,{attributes:!0})),()=>{window.removeEventListener("resize",s),window.removeEventListener("scroll",c,!0),t&&t.disconnect()}}),[t,i.current,e,n.current]);let{right:u,yOffset:p,position:f,otherStyles:d}=(0,r.useMemo)((()=>{let r=0,a=0,l="bottom",s={};if(!t)return{yOffset:a,right:r,position:l};if(n.current){let t=n.current.getBoundingClientRect(),c=n.current.closest(".ct-select-input")?n.current.closest(".ct-select-input"):n.current,u=getComputedStyle(c,":before").content;if(a=t.top+t.height,r=window.innerWidth-t.right,document.body.classList.contains("rtl")&&(r=t.left),u.indexOf("ref-width")>-1){let e=t.width;if(u.indexOf("left")>-1&&c.previousElementSibling&&(e=document.body.classList.contains("rtl")?c.previousElementSibling.getBoundingClientRect().right-t.left:t.right-c.previousElementSibling.getBoundingClientRect().left),u.indexOf("right")>-1){let n=c.parentNode.getBoundingClientRect();document.body.classList.contains("rtl")?(r=n.left,e=t.right-n.left):(r=window.innerWidth-n.right,e=n.right-t.left)}s["--x-select-dropdown-width"]=`${e}px`}let p=e&&e.current||i.current?function(e){let{top:t,left:n,width:r,height:o}=e.getBoundingClientRect(),i=(e=>window.getComputedStyle(e).transform.split(/\(|,|\)/).slice(1,-1).map((e=>parseFloat(e))))(e);if(6==i.length){const e=i;let a=e[0]*e[3]-e[1]*e[2];return{width:r/e[0],height:o/e[3],left:(n*e[3]-t*e[2]+e[2]*e[5]-e[4]*e[3])/a,top:(-n*e[1]+t*e[0]+e[4]*e[1]-e[0]*e[5])/a}}return{top:t,left:n,width:r,height:o}}(e?e.current:i.current):{height:o};a+p.height>window.innerHeight&&t.top-15>p.height&&(l="top",a=window.innerHeight-t.bottom+t.height)}return{yOffset:a,right:r,position:l,otherStyles:s}}),[a,t,n,n.current,e,i.current,o]);return{refreshPopover:s,styles:{"--modal-y-offset":`${p}px`,"--modal-x-offset":`${u}px`,...d},position:f,popoverProps:{ref:e||i,...f?{"data-position":f}:{}}}}},6967:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9307),o=n(9196),i=n.n(o),a=n(5736);class l extends i().Component{constructor(e){super(e),this.element=document.createElement("div"),this.element.classList.add("wheeloflife-bulk-container"),this.element.classList.add("fadeInUp")}componentDidMount(){this.props.root.appendChild(this.element)}componentWillUnmount(){this.props.root.removeChild(this.element)}bulkCancelAllHandle(e){var t=document.querySelectorAll(".list-checkboxes");e.bulkStatus(!1),t.forEach((function(e){e.checked=!1})),document.querySelector(".wheeloflife-bulk-checkbox").checked=!1,e.selectedIds([])}render(){return(0,r.createPortal)((0,r.createElement)("div",{className:"wheeloflife-bulk-wrapper"},(0,r.createElement)("div",{className:"wheeloflife-bulk-content"},this.props.children),(0,r.createElement)("button",{className:"wheeloflife-btn bulk-cancel-btn",onClick:()=>this.bulkCancelAllHandle(this.props)},(0,a.__)("Cancel","wheel-of-life"))),this.element)}}const s=l},5749:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9307),o=n(184),i=n(8707),a=n(7465);const l=e=>{let{option:t,values:n,value:l,onChange:s}=e;const[{isPicking:c,isTransitioning:u},p]=(0,r.useState)({isPicking:null,isTransitioning:null}),f=(0,r.useRef)(),d=(0,r.useRef)();return(0,r.createElement)(i.Z,{useCapture:!1,display:"inline-block",disabled:!c,wrapperProps:{ref:f},className:"wheeloflife-color-picker-container",additionalRefs:[d],onOutsideClick:()=>{p((e=>{let{isPicking:t}=e;return{isPicking:null,isTransitioning:t}}))}},t.pickers.filter((e=>!e.condition||(0,a.Nj)((0,a.KY)(e.condition),n))).map((e=>(0,r.createElement)(o.Z,{containerRef:f,picker:e,key:e.id,option:t,isPicking:c,modalRef:d,isTransitioning:u,onPickingChange:t=>p({isTransitioning:e.id,isPicking:t}),stopTransitioning:()=>p((e=>({...e,isTransitioning:!1}))),onChange:t=>s({...l,[e.id]:t}),value:l[e.id]||t.value[e.id]}))))}},2095:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>m});var r=n(7462),o=n(9307),i=n(5736),a=n(4184),l=n.n(a),s=n(251),c=n.n(s),u=n(5068),p=n(2843);const f=n(268);f.keys().forEach(f);const d=e=>{let t=f.keys().map((e=>e.replace(/^\.\//,"").replace(/\.js$/,""))).indexOf(e);return t>-1&&f.keys()[t]},h=e=>{let{option:t,value:n}=e;return void 0===n?t.value:n},m=e=>{let{option:t,value:n,values:a,onChange:s,onChangeFor:m,hasRevertButton:g,id:v,purpose:y}=e;const[b,w]=(0,o.useState)(wp.customize&&wp.customize.previewedDevice?wp.customize.previewedDevice():"desktop"),E=()=>{w(wp.customize&&wp.customize.previewedDevice?wp.customize.previewedDevice():"desktop")},C=e=>{w(e),wp.customize&&wp.customize.previewedDevice.set(e)};(0,o.useEffect)((()=>{if(("ct-typography"===t.type||(0,p.W)(t))&&wp.customize)return setTimeout((()=>wp.customize.previewedDevice.bind(E)),1e3),()=>{("ct-typography"===t.type||(0,p.W)(t))&&wp.customize&&wp.customize.previewedDevice.unbind(E)}}),[]);let k=(e=>{const t={};return d(e.type)?f(d(e.type)).default:t[e.type]?t[e.type]:null})(t),_={content:null,option:t};const S=(0,p.T)(h({value:n,option:t}),(0,p.W)(t)),x=(0,p.W)(t,{ignoreHidden:!0})?(0,p.Oi)({option:t,value:S,device:b}):S,O=e=>{t.triggerRefreshOnChange&&wp.customize&&wp.customize.previewer&&wp.customize.previewer.refresh(),t.switchDeviceOnChange&&wp.customize&&wp.customize.previewedDevice()!==t.switchDeviceOnChange&&wp.customize.previewedDevice.set(t.switchDeviceOnChange),t.sync&&(Object.keys(t.sync).length>0||Array.isArray(t.sync))&&wp.customize&&wp.customize.previewer&&wp.customize.previewer.send("ct:sync:refresh_partial",{id:t.sync.id||t.id,option:t}),s(e)},N=e=>{const r=(0,p.T)(h({value:n,option:t}),(0,p.W)(t));O((0,p.W)(t,{ignoreHidden:!0})?{...r,["tablet"===b&&"skip"===(0,p.S0)("tablet",t.responsive)?"mobile":b]:e,..."desktop"===b?Object.keys(r).reduce(((n,o)=>({...n,..."desktop"!==o&&"__changed"!==o&&Object.keys((0,p.T)(t.value)).reduce(((e,n)=>!!e&&(0,p.T)(t.value)[n]===(0,p.T)(t.value).desktop),!0)&&-1===(r.__changed||[]).indexOf("tablet")?{[o]:e}:{}})),{}):{},..."tablet"===b&&"skip"!==(0,p.S0)("tablet",t.responsive)?Object.keys(r).reduce(((n,o)=>({...n,..."desktop"!==o&&"tablet"!==o&&"__changed"!==o&&Object.keys((0,p.T)(t.value)).reduce(((e,n)=>!!e&&(0,p.T)(t.value)[n]===(0,p.T)(t.value).desktop),!0)&&-1===(r.__changed||[]).indexOf(o)?{[o]:e}:{}})),{}):{},__changed:[...r.__changed||[],..."desktop"!==b?[b]:[]].filter(((e,t,n)=>n.indexOf(e)===t))}:e)};if(!k)return(0,o.createElement)("div",null,"Unimplemented option: ",t.type);let A={design:!0,label:!0,wrapperAttr:{}},P=()=>null,j=null,T=()=>null,M=()=>({});A={...A,...k.renderingConfig||{}},t.design&&(A.design=t.design),k.LabelToolbar&&(P=k.LabelToolbar),k.ControlEnd&&(T=k.ControlEnd),k.MetaWrapper&&(j=k.MetaWrapper),k.sectionClassName&&(M=k.sectionClassName);let L=(0,o.createElement)(o.Fragment,null,_&&_.content,(0,o.createElement)(k,{key:v,option:{...t,value:(0,p.W)(t,{ignoreHidden:!0})?(0,p.Oi)({device:b,option:t,value:(0,p.T)(t.value||"")}):(0,p.T)(t.value||"",(0,p.W)(t))},value:x,id:v,values:a,onChangeFor:m,device:b,onChange:N}));if(!A.design||"none"===A.design)return L;let R=(0,u.m)({id:v,option:t,values:a,renderingConfig:A}),D=-1!==Object.keys(t).indexOf("desc")&&t.desc,B=-1!==Object.keys(t).indexOf("link")&&(t.link||" ");const F="boolean"==typeof A.design?"block":A.design;if("compact"===A.design)return(0,o.createElement)("section",t.sectionAttr||{},R&&(0,o.createElement)("label",null,R),((0,p.W)(t)&&(0,p.S0)(b,t.responsive)||!(0,p.W)(t))&&L,B&&(0,o.createElement)("a",(0,r.Z)({dangerouslySetInnerHTML:{__html:B}},t.linkAttr||{})));const I=function(){let{wrapperAttr:{className:e,...a}={},...s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",(0,r.Z)({className:l()("ct-control",e,{}),"data-design":F},t.divider?{"data-divider":t.divider}:{},(0,p.W)(t)&&!(0,p.S0)(b,t.responsive)||"disabled"===t.state?{"data-state":"disabled"}:{},t.wrapperAttr||{},a),(0,o.createElement)("div",{className:"components-base-control__label"},R&&(0,o.createElement)("label",null,R),"ct-image-picker"!==t.type&&"ct-layers"!==t.type&&"ab-image-uploader"!==t.type&&"ct-panel"!==t.type&&g&&!t.disableRevertButton&&(0,o.createElement)("button",{type:"button",disabled:c()(t.value,h({value:n,option:t})),className:"rara-revert",onClick:()=>O(t.value)}),(0,o.createElement)(P,{option:t,value:x,id:v,onChange:N}),(0,p.W)(t,{ignoreHidden:!0})&&F.indexOf("block")>-1&&(0,o.createElement)(p.ZP,{device:b,responsiveDescriptor:t.responsive,setDevice:C})),(0,p.W)(t)&&!(0,p.S0)(b,t.responsive)&&(0,o.createElement)("div",{className:"ct-disabled-notification"},t.disabledDeviceMessage||(0,i.__)("Option can't be edited for current device","wheel-of-life")),((0,p.W)(t)&&(0,p.S0)(b,t.responsive)||!(0,p.W)(t))&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("section",(0,r.Z)({},t.sectionAttr||{},{className:l()({"ct-responsive-container":(0,p.W)(t,{ignoreHidden:!0})&&"inline"===F},M({design:F,option:t}),(t.sectionAttr||{}).class||"")}),(0,p.W)(t,{ignoreHidden:!0})&&"inline"===F&&(0,o.createElement)(p.ZP,{device:b,responsiveDescriptor:t.responsive,setDevice:C}),L,B&&(0,o.createElement)("a",(0,r.Z)({dangerouslySetInnerHTML:{__html:B}},t.linkAttr||{}))),(0,o.createElement)(T,null),D&&(0,o.createElement)("div",{dangerouslySetInnerHTML:{__html:D},className:"ct-option-description"}))))};return j?(0,o.createElement)(j,{id:v,option:t,value:x,onChangeFor:m,values:a,getActualOption:I}):I()}},7045:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9307),o=n(6053),i=n(640),a=n.n(i),l=n(5736);const s=function(e){let{shortcode:t}=e;const[n,i]=(0,r.useState)(!1);return(0,r.createElement)("div",{className:"wheeloflife-shortcode-wrap",onMouseEnter:(s=(0,l.__)("Copy Shortcode","wheel-of-life"),()=>{i(s)}),onMouseLeave:()=>{i(!1)}},(0,r.createElement)("input",{type:"text",readOnly:!0,defaultValue:t}),(0,r.createElement)("button",{type:"button",onClick:()=>{a()(t),i((0,l.__)("Copied","wheel-of-life")),setTimeout((function(){i(!1)}),2e3)}},(0,r.createElement)(o.CK,null)),n&&(0,r.createElement)("span",{className:"copy-info"},n));var s}},509:(e,t,n)=>{"use strict";n.d(t,{Button:()=>g,DropdownButton:()=>v,NavTab:()=>d,SearchForm:()=>h,SocialIcon:()=>y,SwitchBox:()=>m});var r=n(9307),o=n(9834),i=n(6989),a=n.n(i),l=n(8901),s=n.n(l),c=n(5736),u=n(6053),p=n(6483);n(5903),n(7045),n(5749),n(2095),n(6967);const f={per_page:-1,orderby:"date",order:"desc"};function d(e){let{navs:t,children:n,activeTab:o,setActiveTab:i,tabId:a,className:l}=e;const[c,u]=(0,r.useState)({awidth:"",left:""});(0,r.useEffect)((()=>{var e=document.getElementById(a).querySelector(".wheeloflife-actions button.active");u({awidth:e.clientWidth,left:e.offsetLeft}),s().options.positionClass="toast-bottom-full-width",s().options.timeOut="5000"}),[]);const p=e=>t=>{i(e),u({awidth:t.target.clientWidth,left:t.target.offsetLeft})};let f=Object.entries(t).map((e=>(0,r.createElement)("button",{type:"button",className:o===e[0]&&"active",onClick:p(e[0])},e[1].label,e[1].count>=0&&(0,r.createElement)("span",{className:"wheeloflife-list-items"},e[1].count))));return(0,r.createElement)("div",{id:a,className:`wheeloflife-tabnav ${l}`},(0,r.createElement)("div",{className:"wheeloflife-actions"},f,(0,r.createElement)("span",{className:"action-active-line",style:{width:c.awidth+"px",left:c.left+"px"}})),n)}function h(e){let{onClick:t,onKeyUp:n,options:o}=e;return(0,r.createElement)("form",{className:"wheeloflife-search-form"},(0,r.createElement)("input",{type:"search",placeholder:o.placeholder,onKeyUp:n,onClick:t}),(0,r.createElement)("button",{type:"button"},(0,r.createElement)(u.ol,null)))}function m(e){let{id:t,optionType:n="",checked:o,type:i,Values:a,setValues:l,className:s,label:u}=e;const[p,f]=(0,r.useState)(o);return(0,r.useEffect)((()=>{f(o)}),[o]),(0,r.createElement)("div",{className:`wheeloflife-switch-wrap ${s}`},(0,r.createElement)("label",{htmlFor:t},(0,r.createElement)("input",{id:t,type:"checkbox",name:i,checked:o,onClick:e=>{if("userDashboard"===n)if(!0===e.target.checked){let t={...a};t[n][e.target.name]=!0,l(t),f(!0)}else{let t={...a};t[n][e.target.name]=!1,l(t),f(!1)}else if(!0===e.target.checked){let t={...a};t[e.target.name]=!0,l(t),f(!0)}else{let t={...a};t[e.target.name]=!1,l(t),f(!1)}},className:"switch"}),(0,r.createElement)("span",null,(0,r.createElement)("span",{className:"switch"}),u&&(0,r.createElement)("span",{className:"label"},u),!u&&(0,r.createElement)("span",{className:"label"},1==p?(0,c.__)("Enabled","wheel-of-life"):(0,c.__)("Disabled","wheel-of-life")))))}function g(e){let{options:t,onClick:n}=e,o=t.type,i=t.btnStyle,a=t.value;return(0,r.createElement)("button",{type:o&&o,className:`wheeloflife-btn ${i&&i}`,onClick:n},a)}const v=e=>{let{value:t,align:n,id:i,tab:l="",wheelData:u,setAllData:d,trashData:h,setTrashData:m,setWheelTab:g,type:v}=e;const y="wheel"==v,[b,w]=(0,r.useState)(!1);return(0,r.createElement)("div",{className:`wheeloflife-dropdown-wrap ${n}`},(0,r.createElement)(o.default,{onOutsideClick:()=>{setTimeout((()=>w(!1)))}},(0,r.createElement)("button",{className:`wheeloflife-dropdown-btn ${b&&"active"}`,type:"button",onClick:()=>w(!b)},t)),b&&(0,r.createElement)("div",{className:"dropdown-options"},""===l&&(0,r.createElement)(r.Fragment,null,v&&"wheel-submissions"==v&&(0,r.createElement)("button",{type:"button",onClick:function(){let e=new FormData;e.append("id",i),e.append("action","viewPost"),e.append("security",wolVariables.ajax_nonce),a()({url:wolVariables.ajax_url,method:"POST",body:e}).then((e=>{!0===e.success&&window.open(e.data)}))}},(0,c.__)("View","wheel-of-life")),(0,r.createElement)("button",{type:"button",onClick:function(){let e=new FormData;e.append("id",i),e.append("action","editPost"),e.append("security",wolVariables.ajax_nonce),a()({url:wolVariables.ajax_url,method:"POST",body:e}).then((e=>{!0===e.success&&(location.href=e.data)}))}},(0,c.__)("Edit","wheel-of-life")),y&&(0,r.createElement)("button",{type:"button",onClick:function(){let e=new FormData;e.append("id",i),e.append("action","duplicatePost"),e.append("security",wolVariables.ajax_nonce),a()({url:wolVariables.ajax_url,method:"POST",body:e}).then((e=>{!0===e.success?(a()({path:(0,p.addQueryArgs)("wp/v2/wheel?status=any",f),method:"GET"}).then((e=>{d([]),d(e)})),s().success(e.data)):s().error(e.data)}))}},(0,c.__)("Duplicate","wheel-of-life")),(0,r.createElement)("button",{type:"button",className:"delete-btn footer-btn",onClick:function(){let e=new FormData;e.append("id",i),e.append("action","trashPost"),e.append("security",wolVariables.ajax_nonce),a()({url:wolVariables.ajax_url,method:"POST",body:e}).then((e=>{!0===e.success?(a()({path:(0,p.addQueryArgs)(`wp/v2/${v}?status=any`,f),method:"GET"}).then((e=>{d([]),d(e)})),a()({path:(0,p.addQueryArgs)(`wp/v2/${v}?status=trash`,f),method:"GET"}).then((e=>{m([]),m(e)})),s().success(e.data)):s().error(e.data)}))}},(0,c.__)("Trash","wheel-of-life"))),l&&"trash"===l&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("button",{type:"button",onClick:function(){let e=new FormData;e.append("id",i),e.append("action","restorePost"),e.append("security",wolVariables.ajax_nonce),a()({url:wolVariables.ajax_url,method:"POST",body:e}).then((e=>{!0===e.success?(a()({path:(0,p.addQueryArgs)(`wp/v2/${v}?status=any`,f),method:"GET"}).then((e=>{d([]),d(e)})),a()({path:(0,p.addQueryArgs)(`wp/v2/${v}?status=trash`,f),method:"GET"}).then((e=>{""==e&&g("all_wheels"),m([]),m(e)})),s().success(e.data)):s().error(e.data)}))}},(0,c.__)("Restore","wheel-of-life")),(0,r.createElement)("button",{type:"button",className:"delete-btn footer-btn",onClick:function(){let e=new FormData;e.append("id",i),e.append("action","deletePost"),e.append("security",wolVariables.ajax_nonce),a()({url:wolVariables.ajax_url,method:"POST",body:e}).then((e=>{!0===e.success?(a()({path:(0,p.addQueryArgs)(`wp/v2/${v}?status=any`,f),method:"GET"}).then((e=>{d([]),d(e)})),a()({path:(0,p.addQueryArgs)(`wp/v2/${v}?status=trash`,f),method:"GET"}).then((e=>{""==e&&g("all_wheels"),m([]),m(e)})),s().success(e.data)):s().error(e.data)}))}},(0,c.__)("Delete","wheel-of-life")))))},y=e=>{let{icon:t,label:n}=e;return(0,r.createElement)("div",{className:"wheeloflife-shocial-icon"},(0,r.createElement)("span",{className:"icon"},t),n&&(0,r.createElement)("span",{className:"social-icon-name"},n))}},5903:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(9307),o=n(9196),i=n.n(o),a=n(6053);const l=document.querySelector("body");class s extends i().Component{constructor(e){super(e),this.element=document.createElement("div")}componentDidMount(){l.appendChild(this.element)}componentWillUnmount(){l.removeChild(this.element)}render(){return document.addEventListener("click",(e=>{"wheeloflife__modal"==e.target.id&&this.props.modalStatus(!1)})),(0,r.createPortal)((0,r.createElement)("div",{id:"wheeloflife__modal",className:`fadeIn ${this.props.className}`},(0,r.createElement)("div",{className:`wheeloflife-modal-container ${"right"===this.props.modalAlign&&"fadeInRight modal-container-right"} ${"left"===this.props.modalAlign&&"fadeInLeft modal-container-left"}`},"form"===this.props.type?(0,r.createElement)("form",{className:"wheeloflife-modal-wrapper"},this.props.modalTitle&&(0,r.createElement)("div",{className:"wheeloflife-modal-header"},(0,r.createElement)("h2",{className:"wheeloflife-title"},this.props.modalTitle)),this.props.children):(0,r.createElement)("div",{className:"wheeloflife-modal-wrapper"},this.props.modalTitle&&(0,r.createElement)("div",{className:"wheeloflife-modal-header"},(0,r.createElement)("h2",{className:"wheeloflife-title"},this.props.modalTitle)),this.props.children),(0,r.createElement)("button",{className:"wheeloflife-modal-cancel",onClick:()=>{this.props.modalStatus(!1)}},(0,r.createElement)(a.um,null)))),this.element)}}const c=s},184:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(9307),o=n(7462),i=n(5609);const a=e=>{let{onChange:t,value:n,value:{color:o}}=e;return(0,r.createElement)("div",null,(0,r.createElement)(i.ColorPicker,{color:o,enableAlpha:!0,onChangeComplete:e=>{e.rgb?t({...n,color:1===e.rgb.a?e.hex:`rgba(${e.rgb.r}, ${e.rgb.g}, ${e.rgb.b}, ${e.rgb.a})`}):t({...n,color:1===o.getAlpha()?hex:o.toRgbString()})}}))};var l=n(4184),s=n.n(l),c=(n(5736),n(1368));const u=e=>e.noColorTransparent?"transparent":"CT_CSS_SKIP_RULE",p=e=>{let{containerRef:t,el:n,value:i,picker:l,onChange:c,option:p,style:f,wrapperProps:d={},inline_modal:h,appendToBody:m}=e;const g=(0,r.useMemo)((()=>i.color===u(p)?{color:"",key:"empty"}:{key:"color",color:i.color}),[i,p,l]),v=(0,r.useMemo)((()=>d.ref&&d.ref.current&&n&&((e,t)=>{if(!e)return;if(!t)return;let n=getComputedStyle(e),r=parseFloat(n.left);return{"--option-modal-arrow-position":(t=t.firstElementChild.getBoundingClientRect()).left+t.width/2-r-6+"px"}})(d.ref.current,n.current)),[d.ref&&d.ref.current,n&&n.current]);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",(0,o.Z)({tabIndex:"0",className:s()("wheeloflife-color-picker-modal",{"wheeloflife-option-modal":!h&&m},p.modalClassName),style:{...v,...f||{}}},d),(0,r.createElement)(a,{key:g.key,onChange:e=>c(e),value:{...i,color:g.color}})))};var f=n(7522),d=n(3431),h=n.n(d);const m=e=>{let{option:t,value:n,onChange:o,picker:i,onPickingChange:a,stopTransitioning:l,innerRef:d,containerRef:m,modalRef:g,isTransitioning:v,isPicking:y}=e;const b=(0,r.useRef)(),{appendToBody:w=!0}=t,{refreshPopover:E,styles:C,popoverProps:k}=(0,c.Z)({contentRef:g,ref:m||{},defaultHeight:379,shouldCalculate:!t.inline_modal||w});if(t.inline_modal)return(0,r.createElement)(p,{containerRef:m,option:t,onChange:o,picker:i,value:n,inline_modal:!!t.inline_modal});let _=null;return v!==i.id&&(y||"").split(":")[0]!==i.id||(_=(0,r.createPortal)((0,r.createElement)(f.uT,{items:y,onRest:()=>l(),config:{duration:100,easing:h()(.25,.1,.25,1)},from:-1===(y||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1},enter:-1===(y||"").indexOf(":")?{transform:"scale3d(1, 1, 1)",opacity:1}:{opacity:1},leave:-1===(y||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1}},(e=>(e||"").split(":")[0]===i.id&&(e=>(0,r.createElement)(p,{style:{...e,...w?C:{}},option:t,onChange:o,picker:i,value:n,el:b,wrapperProps:w?k:{ref:g},appendToBody:w})))),w?document.body:b.current.closest("section").parentNode)),(0,r.createElement)("div",{ref:e=>{b.current=e,d&&(d.current=e)},className:s()("wheeloflife-color-picker-single",{"wheeloflife-no-color":(n||{}).color===u(t)})},(0,r.createElement)("span",{tabIndex:"0"},(0,r.createElement)("span",{tabIndex:"0",onClick:e=>{e.stopPropagation(),E();let t=y?y.split(":")[0]===i.id?null:`${i.id}:${y.split(":")[0]}`:i.id;a(t)},style:{background:(n||{}).color}},(0,r.createElement)("i",{className:"wheeloflife-tooltip-top"},i.title))),_)}},5671:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(9307),o=n(5736),i=n(4184),a=n.n(i),l=n(8707),s=n(1368),c=n(2095);const u=e=>{let{option:t,value:n,onChange:i,setOutsideClickFreezed:a}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(c.ZP,{value:n.background_image,values:n,option:{id:"background_image",label:!1,type:"ab-image-uploader",value:t.value.background_image,has_position_picker:!0,emptyLabel:(0,o.__)("Select Image","wheel-of-life"),filledLabel:(0,o.__)("Change Image","wheel-of-life"),onFrameOpen:()=>{a(!0)},onFrameClose:()=>{a(!1)}},hasRevertButton:!1,onChange:e=>i({...n,background_image:e})}),(0,r.createElement)(c.ZP,{value:n.background_repeat,values:n,option:{id:"background_repeat",label:(0,o.__)("Background Repeat","wheel-of-life"),attr:{"data-type":"repeat"},type:"ab-radio",view:"text",design:"block",value:t.value.background_repeat,choices:{"no-repeat":'<svg viewBox="0 0 16 16"><rect x="6" y="6" width="4" height="4"/></svg>',"repeat-x":'<svg viewBox="0 0 16 16"><rect y="6" width="4" height="4"/><rect x="6" y="6" width="4" height="4"/><rect x="12" y="6" width="4" height="4"/></svg>',"repeat-y":'<svg viewBox="0 0 16 16"><rect x="6" width="4" height="4"/><rect x="6" y="6" width="4" height="4"/><rect x="6" y="12" width="4" height="4"/></svg>',repeat:'<svg viewBox="0 0 16 16"><path d="M0,0h4v4H0V0z M6,0h4v4H6V0z M12,0h4v4h-4V0z M0,6h4v4H0V6z M6,6h4v4H6V6z M12,6h4v4h-4V6z M0,12h4v4H0V12z M6,12h4v4H6V12zM12,12h4v4h-4V12z"/></svg>'}},hasRevertButton:!1,onChange:e=>i({...n,background_repeat:e})}),(0,r.createElement)(c.ZP,{value:n.background_size,values:n,option:{id:"background_size",label:(0,o.__)("Background Size","wheel-of-life"),type:"ab-radio",view:"text",design:"block",value:t.value.background_size,choices:{auto:(0,o.__)("Auto","wheel-of-life"),cover:(0,o.__)("Cover","wheel-of-life"),contain:(0,o.__)("Contain","wheel-of-life")}},hasRevertButton:!1,onChange:e=>i({...n,background_size:e})}),(0,r.createElement)(c.ZP,{value:n.background_attachment,values:n,option:{id:"background_size",label:(0,o.__)("Background Attachment","wheel-of-life"),type:"ab-radio",view:"text",design:"block",value:t.value.background_attachment,choices:{scroll:(0,o.__)("Scroll","wheel-of-life"),fixed:(0,o.__)("Fixed","wheel-of-life"),inherit:(0,o.__)("Inherit","wheel-of-life")}},hasRevertButton:!1,onChange:e=>i({...n,background_attachment:e})}),n.background_image.url&&(0,r.createElement)(c.ZP,{value:n.overlayColor,values:n,option:{id:"overlayColor",label:(0,o.__)("Image Overlay Color","wheel-of-life"),type:"ab-color-picker",design:"inline",value:t.value.overlayColor,pickers:[{title:(0,o.__)("Initial","wheel-of-life"),id:"default"}],skipArrow:!0,appendToBody:!1},hasRevertButton:!1,onChange:e=>i({...n,overlayColor:e})}))};var p=n(5609);const f=e=>{let{value:t,onChange:n}=e,o=p.GradientPicker||p.__experimentalGradientPicker;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o,{value:t.gradient||"",onChange:e=>{n({...t,gradient:e})}}),(0,r.createElement)("ul",{className:"ct-gradient-swatches"},[{name:"Vivid cyan blue to vivid purple",gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:"Light green cyan to vivid green cyan",gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:"Luminous vivid amber to luminous vivid orange",gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:"Luminous vivid orange to vivid red",gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:"Very light gray to cyan bluish gray",gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"}].map((e=>{let{gradient:o,slug:i}=e;return(0,r.createElement)("li",{onClick:()=>{n({...t,gradient:t.gradient===o?"":o})},className:a()({active:o===t.gradient}),style:{"--background-image":o},key:i})}))))},d=e=>{let{option:t,value:n,isOpen:i,onChange:l,setOutsideClickFreezed:s}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("ul",{className:"ct-modal-tabs",onMouseUp:e=>{e.preventDefault()}},["color","gradient","image"].map((e=>(0,r.createElement)("li",{"data-type":e,key:e,className:a()({active:e===n.background_type||"image"===e&&("pattern"===n.background_type||"image"===n.background_type)}),onClick:()=>l({...n,background_type:e,..."gradient"===e?{gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)"}:{}})},{color:(0,o.__)("Color","wheel-of-life"),gradient:(0,o.__)("Gradient","wheel-of-life"),image:(0,o.__)("Image","wheel-of-life")}[e])))),(0,r.createElement)("div",{className:a()({"ct-image-tab ct-options-container":"image"===n.background_type||"pattern"===n.background_type,"ct-gradient-tab wheeloflife-color-picker-modal":"gradient"===n.background_type,"ct-color-tab":"color"===n.background_type})},("image"===n.background_type||"pattern"===n.background_type)&&(0,r.createElement)("ul",{className:"ct-radio-option ct-buttons-group",onMouseUp:e=>{e.preventDefault()}},["image"].map((e=>(0,r.createElement)("li",{"data-type":e,key:e,className:a()({active:e===n.background_type}),onClick:()=>l({...n,background_type:e})},{image:(0,o.__)("Image","wheel-of-life")}[e])))),"image"===n.background_type&&(0,r.createElement)(u,{setOutsideClickFreezed:s,option:t,onChange:l,value:n}),"gradient"===n.background_type&&(0,r.createElement)(f,{value:n,onChange:l}),"gradient"!==n.background_type&&(0,r.createElement)(c.ZP,{value:n.backgroundColor,values:n,option:{id:"backgroundColor",label:"color"!==n.background_type&&(0,o.__)("Background Color","wheel-of-life"),type:"ab-color-picker",skipNoColorPill:!0,design:"color"===n.background_type?"none":"inline",value:t.value.backgroundColor,pickers:[{title:(0,o.__)("Initial","wheel-of-life"),id:"default"}],inline_modal:"color"===n.background_type,skipArrow:!0,appendToBody:!1},hasRevertButton:!1,onChange:e=>l({...n,backgroundColor:e})})))},h=e=>{let{option:t,value:n,onChange:i}=e;const[c,u]=(0,r.useState)(!1),[p,f]=(0,r.useState)(!1),h=(0,r.useRef)();n=(e=>!e.background_type&&e[Object.keys(e)[0]].color?{background_type:"color",background_pattern:"type-1",background_image:{attachment_id:null,x:0,y:0},background_repeat:"no-repeat",background_size:"auto",background_attachment:"scroll",patternColor:{default:{color:"#e5e7ea"}},imageOveralayColor:{default:{color:"#000000"}},backgroundColor:{default:e[Object.keys(e)[0]]}}:e)(n);const m="color"===n.background_type&&("CT_CSS_SKIP_RULE"===n.backgroundColor.default.color||"transparent"===n.backgroundColor.default.color),{styles:g,popoverProps:v}=(0,s.Z)({ref:h,defaultHeight:434,shouldCalculate:h&&h.current});return(0,r.createElement)("div",{ref:h,className:a()("ct-background",{active:c})},(0,r.createElement)("div",{className:a()("ct-background-preview",{"no-color":m}),onClick:e=>{e.preventDefault(),u(!c),"color"===n.background_type&&("CT_CSS_SKIP_RULE"!==n.backgroundColor.default.color&&"transparent"!==n.backgroundColor.default.color||i({...n,backgroundColor:{default:{color:"#ffffff"}}}))},"data-background-type":n.background_type,style:{...n.backgroundColor.default.color.indexOf("CT_CSS_SKIP_RULE")>-1?{}:{backgroundColor:n.backgroundColor.default.color},"--background-position":`${Math.round(100*parseFloat(n.background_image.x))}% ${Math.round(100*parseFloat(n.background_image.y))}%`,"--background-image":"gradient"===n.background_type?n.gradient:n.background_image.url?`url(${n.background_image.url})`:"none"}},(0,r.createElement)("i",{className:"wheeloflife-tooltip-top"},{inherit:(0,o.__)("Inherited","wheel-of-life"),pattern:(0,o.__)("Pattern","wheel-of-life"),gradient:(0,o.__)("Gradient","wheel-of-life"),color:(0,o.__)("Color","wheel-of-life"),image:(0,o.__)("Image","wheel-of-life")}[m?"inherit":n.background_type]),m&&(0,r.createElement)("svg",{width:"25",height:"25",viewBox:"0 0 30 30"},(0,r.createElement)("path",{d:"M15 3c-3 0-5.7 1.1-7.8 2.9-.4.3-.5.9-.2 1.4.3.4 1 .5 1.4.2h.1C10.3 5.9 12.5 5 15 5c5.2 0 9.5 3.9 10 9h-3l4 6 4-6h-3.1C26.4 7.9 21.3 3 15 3zM4 10l-4 6h3.1c.5 6.1 5.6 11 11.9 11 3 0 5.7-1.1 7.8-2.9.4-.3.5-1 .2-1.4-.3-.4-1-.5-1.4-.2h-.1c-1.7 1.5-4 2.4-6.5 2.4-5.2 0-9.5-3.9-10-9h3L4 10z"}))),h&&h.current&&(0,r.createPortal)((0,r.createElement)(l.Z,{useCapture:!1,display:"block",disabled:!c||p,onOutsideClick:()=>{setTimeout((()=>u(!1)))},wrapperProps:{style:g,...v,className:a()("ct-option-modal wheeloflife-background-modal",{active:c})}},(0,r.createElement)(d,{onChange:i,value:n,option:t,isOpen:c,setOutsideClickFreezed:f})),document.body))}},3003:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(9307),o=n(5736),i=n(4184),a=n.n(i),l=n(5749),s=n(8707);const c=(e,t,n)=>Math.max(e,Math.min(t,n)),u=e=>{let{value:t,option:n,onChange:i}=e;const[u,p]=(0,r.useState)(!1);return(0,r.createElement)("div",{className:a()("ct-option-border")},(0,r.createElement)("div",{className:a()("ct-value-changer",{active:u,"ct-disabled":"none"===t.style||t.inherit})},(0,r.createElement)("input",{type:"number",value:t.width,onChange:e=>{let{target:{value:n}}=e;return i({...t,width:c(1,5,parseInt(n,10)||1)})}}),(0,r.createElement)("span",{className:"ct-value-divider"}),(0,r.createElement)("span",{className:"ct-current-value","data-style":t.inherit?"none":t.style,onClick:()=>p(!u)},t.inherit?(0,o.__)("Inherit","wheel-of-life"):"none"===t.style?t.style:null),(0,r.createElement)(s.Z,{disabled:!u,onOutsideClick:()=>{u&&p(!1)}},(0,r.createElement)("ul",{className:"ct-styles-list"},["solid","dashed","dotted","none"].reduce(((e,t,n)=>[...e.slice(0,n%2==0?void 0:-1),...n%2==0?[[t]]:[[e[e.length-1][0],t]]]),[]).map((e=>(0,r.createElement)("li",{key:e[0]},e.map((e=>(0,r.createElement)("span",{className:a()({active:e===t.style}),"data-style":e,key:e,onClick:()=>{i({...t,style:e,...Object.keys(n.value).indexOf("inherit")>-1?{inherit:!1}:{}}),p(!1)},"data-style":e},"none"===e?e:null))))))))),(0,r.createElement)(l.Z,{onChange:e=>i({...t,color:e.default}),option:{pickers:[{id:"default",title:"Initial"}]},value:{default:t.color}}))}},1881:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r=n(9307),o=n(5736),i=n(4184),a=n.n(i),l=n(184),s=n(8707),c=n(7462),u=n(3431),p=n.n(u),f=n(7522),d=n(2095),h=n(1368),m=n(7652);const g=e=>{let{option:t,value:n,onChange:i,picker:l,onPickingChange:s,stopTransitioning:u,el:g,hOffsetRef:v,vOffsetRef:y,blurRef:b,spreadRef:w,isTransitioning:E,isPicking:C}=e;const{styles:k,popoverProps:_}=(0,h.Z)({ref:g,defaultHeight:t.hide_shadow_placement?437:507,shouldCalculate:E===l.id||(C||"").split(":")[0]===l.id});return(E===l.id||(C||"").split(":")[0]===l.id)&&(0,r.createPortal)((0,r.createElement)(f.uT,{items:C,onRest:e=>{u()},config:{duration:100,easing:p()(.25,.1,.25,1)},from:-1===(C||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1},enter:-1===(C||"").indexOf(":")?{transform:"scale3d(1, 1, 1)",opacity:1}:{opacity:1},leave:-1===(C||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1}},(e=>(e||"").split(":")[0]===l.id&&(e=>(0,r.createElement)("div",(0,c.Z)({style:{...e,...k}},_,{className:"ct-option-modal ct-box-shadow-modal",onClick:e=>{e.preventDefault(),e.stopPropagation()},onMouseDownCapture:e=>{e.nativeEvent.stopImmediatePropagation(),e.nativeEvent.stopPropagation()},onMouseUpCapture:e=>{e.nativeEvent.stopImmediatePropagation(),e.nativeEvent.stopPropagation()}}),(0,r.createElement)("div",{className:"ct-shadow-trigger"},(0,r.createElement)("label",null,(0,o.__)("Enable/Disable","wheel-of-life")),(0,r.createElement)(m.default,{value:n.enable?"yes":"no",onChange:()=>{i({...n,enable:!n.enable})}})),(0,r.createElement)("div",{className:"shadow-sliders"},(0,r.createElement)(d.ZP,{value:n.h_offset,values:n,id:"h_offset",option:{id:"h_offset",label:(0,o.__)("Horizontal Offset","wheel-of-life"),type:"ab-slider",steps:"half",value:t.value.h_offset,min:-100,max:100,design:"compact",ref:v},hasRevertButton:!1,onChange:e=>i({...n,h_offset:e})}),(0,r.createElement)(d.ZP,{value:n.v_offset,values:n,id:"v_offset",option:{steps:"half",id:"v_offset",label:(0,o.__)("Vertical Offset","wheel-of-life"),type:"ab-slider",value:t.value.v_offset,min:-100,max:100,design:"compact",ref:y},hasRevertButton:!1,onChange:e=>i({...n,v_offset:e})}),(0,r.createElement)(d.ZP,{value:n.blur,values:n,id:"blur",option:{steps:"positive",id:"blur",label:(0,o.__)("Blur","wheel-of-life"),type:"ab-slider",value:t.value.blur,min:0,max:100,design:"compact",ref:b},hasRevertButton:!1,onChange:e=>{i({...n,blur:e})}}),(0,r.createElement)(d.ZP,{value:n.spread,values:n,id:"spread",option:{steps:"half",id:"spread",label:(0,o.__)("Spread","wheel-of-life"),type:"ab-slider",value:t.value.spread,min:-100,max:100,design:"compact",ref:w},hasRevertButton:!1,onChange:e=>i({...n,spread:e})})),!t.hide_shadow_placement&&(0,r.createElement)("ul",{className:"ct-shadow-style"},(0,r.createElement)("li",{onClick:()=>i({...n,inset:!1}),className:a()({active:!n.inset})},"Outline"),(0,r.createElement)("li",{onClick:()=>i({...n,inset:!0}),className:a()({active:n.inset})},"Inset")))))),document.body)},v=e=>{let{value:t,option:n,onChange:i}=e;const[{isPicking:c,isTransitioning:u},p]=(0,r.useState)({isPicking:null,isTransitioning:null}),[f,d]=(0,r.useState)(null),h=(0,r.useRef)(),m=(0,r.useRef)(),v=(0,r.useRef)(),y=(0,r.useRef)(),b=(0,r.useRef)(),w=(0,r.useRef)(),E=(0,r.useRef)(),C=(0,r.useRef)();return(0,r.createElement)("div",{ref:h,className:a()("ct-box-shadow",{"ct-disabled":!t.enable||t.inherit})},(0,r.createElement)(l.Z,{innerRef:m,picker:{id:"default",title:"Initial"},option:{pickers:[{id:"default",title:"Initial"}]},isPicking:c,isTransitioning:u,modalRef:C,containerRef:E,onPickingChange:e=>{t.enable&&p({isTransitioning:"default",isPicking:e})},stopTransitioning:()=>p({isPicking:c,isTransitioning:!1}),onChange:e=>i({...t,color:e}),value:t.color}),(0,r.createElement)(s.Z,{useCapture:!1,disabled:!c,className:"ct-box-shadow-values",additionalRefs:[m,C],onOutsideClick:()=>{c&&p({isTransitioning:c.split(":")[0],isPicking:null})},wrapperProps:{ref:E,onClick:e=>{e.preventDefault();let t=c?"opts"===c.split(":")[0]?null:`opts:${c.split(":")[0]}`:"opts";p({isTransitioning:"opts",isPicking:t})}}},(0,r.createElement)("span",null,t.inherit?(0,o.__)("Inherit","wheel-of-life"):t.enable?(0,o.__)("Adjust","wheel-of-life"):(0,o.__)("None","wheel-of-life"))),(0,r.createElement)(g,{el:h,value:t,onChange:e=>i({...e,inherit:!1}),option:n,isPicking:c,isTransitioning:u,hOffsetRef:v,vOffsetRef:y,blurRef:b,spreadRef:w,picker:{id:"opts"},onPickingChange:e=>{t.enable&&p({isTransitioning:"opts",isPicking:e})},stopTransitioning:()=>p({isPicking:c,isTransitioning:!1})}))}},3479:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(9307),o=n(184),i=n(8707),a=n(7465);const l=e=>{let{option:t,values:n,value:l,onChange:s}=e;const[{isPicking:c,isTransitioning:u},p]=(0,r.useState)({isPicking:null,isTransitioning:null}),f=(0,r.useRef)(),d=(0,r.useRef)();return(0,r.createElement)(i.Z,{useCapture:!1,display:"inline-block",disabled:!c,wrapperProps:{ref:f},className:"wheeloflife-color-picker-container",additionalRefs:[d],onOutsideClick:()=>{p((e=>{let{isPicking:t}=e;return{isPicking:null,isTransitioning:t}}))}},t.pickers.filter((e=>!e.condition||(0,a.Nj)((0,a.KY)(e.condition),n))).map((e=>(0,r.createElement)(o.Z,{containerRef:f,picker:e,key:e.id,option:t,isPicking:c,modalRef:d,isTransitioning:u,onPickingChange:t=>p({isTransitioning:e.id,isPicking:t}),stopTransitioning:()=>p((e=>({...e,isTransitioning:!1}))),onChange:t=>s({...l,[e.id]:t}),value:void 0!==l&&l[e.id]||t.value[e.id]}))))}},1950:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(7462),o=n(9307),i=n(5609),a=n(4184),l=n.n(a),s=n(9050);class c extends o.Component{params={height:250,width:250,flex_width:!0,flex_height:!0};state={attachment_info:null};getUrlFor=e=>e?(e.width<700?e.sizes.full:s.ZP.max(s.ZP.values(1===s.ZP.keys(e.sizes).length?e.sizes:s.ZP.omit(e.sizes,"full")),(e=>{let{width:t}=e;return t}))).url||e.url:null;onChange=(()=>{var e=this;return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.props.onChange(e.props.option.inline_value?t||"":{...e.props.value,url:e.getUrlFor(n),attachment_id:t})}})();getAttachmentId=(()=>{var e=this;return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.props;return t.option.inline_value?t.value:t.value.attachment_id}})();initFrame(){this.frame=wp.media({button:{text:"Select",close:!1},states:[new wp.media.controller.Library({title:"Select Image",library:wp.media.query({type:"image"}),multiple:!1,date:!1,priority:20,suggestedWidth:(this.props.option.logo||{}).width,suggestedHeight:(this.props.option.logo||{}).height}),...(this.props.option.skipCrop,[])]}),this.frame.on("select",this.onSelect,this),this.frame.on("close",(()=>{this.props.option.onFrameClose&&this.props.option.onFrameClose()})),this.frame.on("cropped",this.onCropped,this),this.frame.on("skippedcrop",this.onSkippedCrop,this)}openFrame(){this.initFrame(),this.frame.setState("library").open(),this.props.option.onFrameOpen&&this.props.option.onFrameOpen()}onSelect=()=>{var e=this.frame.state().get("selection").first().toJSON();(this.props.option.logo||{}).width===e.width&&(this.props.option.logo||{}).height===e.height&&!(this.props.option.logo||{}).flex_width&&!(this.props.option.logo||{}).flex_height||this.props.option.skipCrop,this.setImageFromAttachment(e),this.frame.close()};onCropped=e=>{this.setImageFromAttachment(e)};calculateImageSelectOptions(e,t){var n,r,o,i=t.get("control"),a=!!parseInt((i.props.option.logo||{}).flex_width,10),l=!!parseInt((i.props.option.logo||{}).flex_height,10),s=e.get("width"),c=e.get("height"),u=parseInt((i.props.option.logo||{}).width,10),p=parseInt((i.props.option.logo||{}).height,10),f=u/p,d=u,h=p;return t.set("canSkipCrop",!i.mustBeCropped(a,l,u,p,s,c)),s/c>f?u=(p=c)*f:p=(u=s)/f,o={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:s,imageHeight:c,minWidth:d>u?u:d,minHeight:h>p?p:h,x1:n=(s-u)/2,y1:r=(c-p)/2,x2:u+n,y2:p+r},!1===l&&!1===a&&(o.aspectRatio=u+":"+p),!0===l&&(delete o.minHeight,o.maxWidth=s),!0===a&&(delete o.minWidth,o.maxHeight=c),o}mustBeCropped(e,t,n,r,o,i){return!(!0===e&&!0===t||!0===e&&r===i||!0===t&&n===o||n===o&&r===i||o<=n)}onSkippedCrop=()=>{var e=this.frame.state().get("selection").first().toJSON();this.setImageFromAttachment(e)};setImageFromAttachment(e){this.onChange(e.id,JSON.parse(JSON.stringify(wp.media.attachment(e.id).toJSON()))),this.updateAttachmentInfo()}updateAttachmentInfo=(()=>{var e=this;return function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=e.getAttachmentId();n&&(!wp.media.attachment(n).get("url")||t?wp.media.attachment(n).fetch().then((()=>e.setState({attachment_info:JSON.parse(JSON.stringify(wp.media.attachment(n).toJSON()))}))):e.setState({attachment_info:JSON.parse(JSON.stringify(wp.media.attachment(n).toJSON()))}),e.detachListener(),wp.media.attachment(n).on("change",e.updateAttachmentInfo))}})();detachListener(){this.getAttachmentId()&&wp.media.attachment(this.getAttachmentId()).off("change",this.updateAttachmentInfo)}componentDidUpdate(e){this.getAttachmentId()!==this.getAttachmentId(e)&&(wp.media.attachment(this.getAttachmentId(e)).off("change",this.updateAttachmentInfo),this.updateAttachmentInfo())}componentDidMount(){this.updateAttachmentInfo()}componentWillUnmount(){this.detachListener()}render(){return(0,o.createElement)("div",(0,r.Z)({className:l()("attachment-media-view rt-attachment",{landscape:this.getAttachmentId()&&this.state.attachment_info,"attachment-media-view-image":this.getAttachmentId()&&this.state.attachment_info})},this.props.option.attr||{}),this.getAttachmentId()&&this.state.attachment_info?(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:"thumbnail thumbnail-image",onClick:()=>!this.props.option.has_position_picker&&this.openFrame()},!this.props.option.has_position_picker&&(0,o.createElement)("img",{className:"attachment-thumb",src:this.getUrlFor(this.state.attachment_info),draggable:"false",alt:""}),this.props.option.has_position_picker&&(0,o.createElement)(i.FocalPointPicker,{url:this.getUrlFor(this.state.attachment_info),dimensions:{width:400,height:100},value:this.props.value,onChange:e=>{this.props.onChange({...this.props.value,...e})}}),(0,o.createElement)("div",{className:"actions"},(0,o.createElement)("button",{type:"button",className:"button edit-button control-focus",title:"Edit",onClick:()=>this.openFrame(),id:"customize-media-control-button-35"}),(0,o.createElement)("button",{onClick:e=>{e.stopPropagation(),this.setState({attachment_info:null}),this.onChange(null)},title:"Remove",type:"button",className:"button remove-button"})))):(0,o.createElement)(o.Fragment,null,(0,o.createElement)("button",{type:"button",onClick:()=>this.openFrame(),className:"button rt-upload-button",id:"customize-media-control-button-50"},this.props.option.emptyLabel||"Select logo")))}}},9788:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(7462),o=n(9307),i=n(4184),a=n.n(i),l=n(7465);class s extends o.Component{renderAsText(){}renderAsRadio(){const{inline:e=!1}=this.props.option;return(0,o.createElement)("div",(0,r.Z)({className:"ct-radio-option"},e?{"data-inline":""}:{},this.props.option.attr||{}),Object.keys(this.props.option.choices).map((e=>(0,o.createElement)("label",{key:e},(0,o.createElement)("input",{type:"radio",checked:e===this.props.value,onChange:()=>this.props.onChange(e)}),this.props.option.choices[e]))))}render(){if("radio"===this.props.option.view)return this.renderAsRadio();const{inline:e=!1}=this.props.option;return(0,o.createElement)("ul",(0,r.Z)({className:"ct-radio-option ct-buttons-group"},e?{"data-inline":""}:{},this.props.option.attr||{}),Object.keys(this.props.option.choices).filter((e=>!this.props.option.conditions||!this.props.option.conditions[e]||(0,l.Nj)((0,l.KY)(this.props.option.conditions[e]),this.props.values))).map((e=>(0,o.createElement)("li",(0,r.Z)({className:a()({active:e===this.props.value}),onClick:()=>this.props.onChange(e),key:e,dangerouslySetInnerHTML:{__html:this.props.option.choices[e]}},this.props.singleChoiceProps?this.props.singleChoiceProps(e):{})))))}}},6238:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(7462),o=n(9307),i=n(4184),a=n.n(i),l=n(6399),s=n.n(l),c=n(8707);const u=(e,t,n)=>Math.max(e,Math.min(t,n)),p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=Math.pow(10,t);return Math.round(e*n+Number.EPSILON)/n},f=e=>{let{option:t,onChange:n,is_open:r,toggleOpen:i,currentUnit:a,getNumericValue:l,getAllowedDecimalPlaces:s}=e;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("span",{onClick:()=>i(),className:"ct-current-value"},a||"―"),(0,o.createElement)(c.Z,{onOutsideClick:()=>{r&&i()}},(0,o.createElement)("ul",{className:"ct-units-list"},t.units.filter((e=>{let{unit:t}=e;return t!==a})).reduce(((e,t,n)=>[...e.slice(0,n%2==0?void 0:-1),...n%2==0?[[t]]:[[e[e.length-1][0],t]]]),[]).map((e=>(0,o.createElement)("li",{key:e[0].unit},e.map((e=>{let{unit:r}=e;return(0,o.createElement)("span",{key:r,onClick:()=>{(e=>{const r=l();n(`${p(u(t.units.find((t=>{let{unit:n}=t;return n===e})).min,t.units.find((t=>{let{unit:n}=t;return n===e})).max,""===r?-1/0:r),s(e))}${e}`)})(r),i()}},r||"―")}))))))))};class d extends o.Component{state={is_dragging:!1,is_open:!1};el=(0,o.createRef)();hasUnitsList=()=>this.props.option.units&&this.props.option.units.length>1;getAllowedDecimalPlaces=(()=>{var e=this;return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const n=e.props.option.units?e.props.option.units.find((n=>{let{unit:r}=n;return r===(t||e.getCurrentUnit())})).decimals:e.props.option.decimals;return 0===n||n?n:0}})();withDefault=(e,t)=>this.props.option.units&&this.props.option.units.find((t=>{let{unit:n}=t;return n===e}))?e:e||t;getCurrentUnit=()=>this.props.option.units?this.withDefault(this.props.value.toString().replace(/[0-9]/g,"").replace(/\-/g,"").replace(/\./g,"").replace("CT_CSS_SKIP_RULE",""),this.props.option.units[0].unit):"";getMax=()=>this.props.option.units?this.props.option.units.find((e=>{let{unit:t}=e;return t===this.getCurrentUnit()})).max:this.props.option.max;getMin=()=>this.props.option.units?this.props.option.units.find((e=>{let{unit:t}=e;return t===this.getCurrentUnit()})).min:this.props.option.min;getNumericValue=(()=>{var e=this;return function(){let{forPosition:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=parseFloat(e.props.value,10);if(0===n)return n;if(!n){if(e.props.option.defaultPosition&&"center"===e.props.option.defaultPosition&&t){let t=parseFloat(e.getMin(),10);return(parseFloat(e.getMax(),10)-t)/2+t}return""}return n}})();computeAndSendNewValue(e){let{pageX:t}=e,{top:n,left:r,right:o,width:i}=this.el.current.getBoundingClientRect(),a=t-r-pageXOffset;this.props.onChange(`${p(s()([0,i],[parseFloat(this.getMin(),10),parseFloat(this.getMax(),10)],!0)(document.body.classList.contains("rtl")?i-a:a),this.getAllowedDecimalPlaces())}${this.getCurrentUnit()}`)}handleMove=e=>{this.state.is_dragging&&this.computeAndSendNewValue(e)};handleUp=()=>{this.setState({is_dragging:!1}),this.detachEvents()};handleBlur=()=>{if("CT_CSS_SKIP_RULE"===this.props.option.value){if("CT_CSS_SKIP_RULE"===this.props.value)return;if(""===this.getNumericValue())return void this.props.onChange("CT_CSS_SKIP_RULE")}this.props.onChange(`${u(parseFloat(this.getMin(),10),parseFloat(this.getMax(),10),parseFloat(this.getNumericValue(),10))}${this.getCurrentUnit()}`)};handleChange=e=>{"CT_CSS_SKIP_RULE"!==this.props.option.value||""!==e.toString().trim()?this.props.onChange(`${((e,t)=>Math.min(e,t))(parseFloat(this.getMax(),10),parseFloat(e||this.getMin()))}${this.getCurrentUnit()}`):this.props.onChange("CT_CSS_SKIP_RULE")};attachEvents(){document.documentElement.addEventListener("mousemove",this.handleMove,!0),document.documentElement.addEventListener("mouseup",this.handleUp,!0)}detachEvents(){document.documentElement.removeEventListener("mousemove",this.handleMove,!0),document.documentElement.removeEventListener("mouseup",this.handleUp,!0)}render(){const e=`${s()([parseFloat(this.getMin(),10),parseFloat(this.getMax(),10)],[0,100])(u(parseFloat(this.getMin(),10),parseFloat(this.getMax(),10),0===parseFloat(this.getNumericValue({forPosition:!0}),10)?0:parseFloat(this.getNumericValue({forPosition:!0}),10)?parseFloat(this.getNumericValue({forPosition:!0}),10):parseFloat(this.getMin(),10)))}`;return(0,o.createElement)("div",{className:"ct-option-slider"},this.props.beforeOption&&this.props.beforeOption(),(0,o.createElement)("div",(0,r.Z)({onMouseDown:e=>{let{pageX:t,pageY:n}=e;this.attachEvents(),this.setState({is_dragging:!0})},onClick:e=>this.computeAndSendNewValue(e),ref:this.el,className:"ab-slider"},this.props.option.steps?{"data-steps":""}:{}),(0,o.createElement)("div",{style:{width:`${e}%`}}),(0,o.createElement)("span",{style:{"--position":`${e}%`}}),this.props.option.steps&&(0,o.createElement)("section",{className:this.props.option.steps},(0,o.createElement)("i",{className:"minus"}),(0,o.createElement)("i",{className:"zero"}),(0,o.createElement)("i",{className:"plus"}))),!this.props.option.skipInput&&(0,o.createElement)("div",{className:a()("ab-slider-input",{"ct-value-changer":!0,"no-unit-list":!this.hasUnitsList(),active:this.state.is_open})},(0,o.createElement)("input",(0,r.Z)({type:"number"},this.props.option.ref?{ref:this.props.option.ref}:{},{step:1/Math.pow(10,this.getAllowedDecimalPlaces()),value:this.getNumericValue(),onBlur:()=>this.handleBlur(),onChange:e=>{let{target:{value:t}}=e;return this.handleChange(t)}})),(0,o.createElement)("span",{className:"ct-value-divider"}),!this.hasUnitsList()&&(0,o.createElement)("span",{className:"ct-current-value"},this.withDefault(this.getCurrentUnit(),this.props.option.defaultUnit||"px")),this.hasUnitsList()&&(0,o.createElement)(f,{option:this.props.option,onChange:this.props.onChange,is_open:this.state.is_open,toggleOpen:()=>this.setState({is_open:!this.state.is_open}),currentUnit:this.getCurrentUnit(),getNumericValue:this.getNumericValue,getAllowedDecimalPlaces:this.getAllowedDecimalPlaces})))}}},453:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(7462),o=n(9307),i=n(5736),a=n(4184),l=n.n(a),s=n(9050);const c=e=>{let{disabled:t,className:n="",value:r,onBlur:a,onChange:c,placeholder:u=(0,i.__)("Default","wheel-of-life")}=e;return(0,o.createElement)("input",{type:"text",value:r,onKeyDown:e=>{s.ZP.contains([46,8,9,27,13,110,190,27],e.keyCode)||65==e.keyCode&&!0===e.ctrlKey||109==e.keyCode||189==e.keyCode||173==e.keyCode||67==e.keyCode&&!0===e.ctrlKey||88==e.keyCode&&!0===e.ctrlKey||e.keyCode>=35&&e.keyCode<=39&&38!==e.keyCode&&40!==e.keyCode||(38===e.keyCode&&s.ZP.isNumber(parseInt(r,10))&&c(parseInt(r,10)+(e.shiftKey?10:1),!0),40===e.keyCode&&s.ZP.isNumber(parseInt(r,10))&&c(parseInt(r,10)-(e.shiftKey?10:1),!0),(e.shiftKey||e.keyCode<48||e.keyCode>57)&&(e.keyCode<96||e.keyCode>105)&&e.preventDefault())},onChange:e=>{let{target:{value:t}}=e;return c(t)},placeholder:u,onBlur:()=>a&&a,className:l()({inactive:"auto"===r})})};var u=n(8707);const p=e=>{let{value:t,option:n,onChange:a}=e;const[s,p]=(0,o.useState)(!1),f=[{unit:"px"},{unit:"%"},{unit:"em"},{unit:"rem"},{unit:"pt"}],d=()=>["top","right","bottom","left"].find((e=>"auto"!==t[e])),h=()=>{return e=t[d()].toString().replace(/[0-9]/g,"").replace(/\./g,""),f.find((t=>{let{unit:n}=t;return n===e}))?e:e||f[0].unit;var e},m=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"auto"===e?e:`${0===parseFloat(e)?0:parseFloat(e)||""}${t}`};return(0,o.createElement)("div",{className:l()("ct-option-spacing",{linked:t.linked})},["top","right","bottom","left"].map((e=>(0,o.createElement)("span",{key:e},(0,o.createElement)(c,(0,r.Z)({placeholder:"",value:m(t[e]),onChange:n=>{return r=n,o=e,void(t.linked?a({...t,top:"auto"===t.top?t.top:m(r,h()),left:"auto"===t.left?t.left:m(r,h()),right:"auto"===t.right?t.right:m(r,h()),bottom:"auto"===t.bottom?t.bottom:m(r,h())}):a({...t,[o]:m(r,h())}));var r,o},placeholder:""},n.inputAttr)),(0,o.createElement)("small",null,{top:(0,i.__)("Top","wheel-of-life"),bottom:(0,i.__)("Bottom","wheel-of-life"),left:(0,i.__)("Left","wheel-of-life"),right:(0,i.__)("Right","wheel-of-life")}[e])))),(0,o.createElement)("div",{className:l()("ct-spacing-controls ct-value-changer",{active:s})},(0,o.createElement)("a",{onClick:e=>{if(e.preventDefault(),t.linked)return void a({...t,linked:!1});const n=t[d()];a({...t,top:"auto"!==t.top?n:t.top,left:"auto"!==t.left?n:t.left,bottom:"auto"!==t.bottom?n:t.bottom,right:"auto"!==t.right?n:t.right,linked:!0})}},(0,o.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 15 15"},t.linked?(0,o.createElement)("path",{d:"M12.2,5.5V4.7c0-2.6-2.1-4.7-4.7-4.7S2.8,2.1,2.8,4.7v0.8c-0.9,0-1.6,0.7-1.6,1.6v6.3c0,0.9,0.7,1.6,1.6,1.6h9.5c0.9,0,1.6-0.7,1.6-1.6V7.1C13.8,6.2,13.1,5.5,12.2,5.5z M10.7,5.5H4.3V4.7c0-1.8,1.4-3.2,3.2-3.2s3.2,1.4,3.2,3.2V5.5z"}):(0,o.createElement)("path",{d:"M12.2,5.5h-1.6H9.9h-5H4.7l0-0.2C4.4,3.5,5.5,1.9,7.3,1.5c1.1-0.2,2.2,0.1,2.8,0.9l1.3-0.9c-1-1.1-2.6-1.8-4.3-1.5C4.5,0.5,2.8,2.9,3.2,5.5H2.8c-0.9,0-1.6,0.7-1.6,1.6v6.3c0,0.9,0.7,1.6,1.6,1.6h9.5c0.9,0,1.6-0.7,1.6-1.6V7.1C13.8,6.2,13.1,5.5,12.2,5.5z"}))),(0,o.createElement)("span",{className:"ct-value-divider"}),(0,o.createElement)("div",{onClick:()=>p(!s),className:"ct-current-value"},h()||"―"),(0,o.createElement)(u.Z,{onOutsideClick:()=>{s&&p(!1)}},(0,o.createElement)("ul",{className:"ct-units-list"},f.filter((e=>{let{unit:t}=e;return t!==h()})).reduce(((e,t,n)=>[...e.slice(0,n%2==0?void 0:-1),...n%2==0?[[t]]:[[e[e.length-1][0],t]]]),[]).map((e=>(0,o.createElement)("li",{key:e[0].unit},e.map((e=>{let{unit:n}=e;return(0,o.createElement)("span",{key:n,onClick:()=>{a({...t,top:m(t.top,n),left:m(t.left,n),right:m(t.right,n),bottom:m(t.bottom,n)}),p(!1)}},n||"―")})))))))))}},7652:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(9307),o=n(4184),i=n.n(o);const a=e=>{let{option:{behavior:t="words"},value:n}=e;return"words"===t?"yes"===n:!!n},l=e=>{let{value:t,option:n={},onChange:o,onClick:l}=e;return(0,r.createElement)("div",{className:i()({"ct-option-switch":!0,"ct-active":a({option:n,value:t})}),onClick:e=>{l&&l(e),o((e=>{let{option:t={},option:{behavior:n="words"},value:r}=e;return a({option:t,value:r})?"words"===n&&"no":"words"!==n||"yes"})({option:n,value:t}))}},(0,r.createElement)("span",null))};l.renderingConfig={design:"inline"};const s=l},8707:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(7462),o=n(9307),i=n(4184),a=n.n(i);const l=(e,t)=>{"function"==typeof e?e(t):e.current=t};class s extends o.Component{componentDidMount(){const{disabled:e,useCapture:t}=this.props;e||this.addMouseDownEventListener(t)}childNode=(0,o.createRef)();checkIsInside=e=>[this.childNode,...this.props.additionalRefs||[]].reduce(((t,n)=>t||(n&&n.current?n.current.contains(e.target):t)),!1);UNSAFE_componentWillReceiveProps(e){let{disabled:t,useCapture:n}=e;const{disabled:r}=this.props;r!==t&&(t?this.removeEventListeners():this.addMouseDownEventListener(n))}componentWillUnmount(){this.removeEventListeners()}onMouseDown=e=>{const{useCapture:t}=this.props;this.checkIsInside(e)||(this.removeMouseUp&&(this.removeMouseUp(),this.removeMouseUp=null),document.addEventListener("mouseup",this.onMouseUp,t),this.removeMouseUp=()=>{document.removeEventListener("mouseup",this.onMouseUp,t)})};onMouseUp=e=>{const{onOutsideClick:t}=this.props;this.removeMouseUp&&(this.removeMouseUp(),this.removeMouseUp=null),this.checkIsInside(e)||t(e)};setChildNodeRef=e=>{this.props.wrapperProps&&this.props.wrapperProps.ref&&l(this.props.wrapperProps.ref,e),l(this.childNode,e)};addMouseDownEventListener(e){document.addEventListener("mousedown",this.onMouseDown,e),this.removeMouseDown=()=>{document.removeEventListener("mousedown",this.onMouseDown,e)}}removeEventListeners(){this.removeMouseDown&&this.removeMouseDown(),this.removeMouseUp&&this.removeMouseUp()}render(){const{children:e,display:t,className:n,wrapperProps:i}=this.props;return(0,o.createElement)("div",(0,r.Z)({className:a()(n)},i||{},{ref:this.setChildNodeRef}),e)}}s.defaultProps={disabled:!1,useCapture:!0,display:"block"}},1368:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307);const o=function(){let{contentRef:e,shouldCalculate:t=!0,ref:n,defaultHeight:o=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const i=(0,r.useRef)(),[a,l]=(0,r.useState)(null),s=()=>{t&&l(Math.random())},c=t=>{let n=e||i;n&&n.current&&!n.current.contains(t.target)&&s()};(0,r.useEffect)((()=>{let t;return setTimeout((()=>{s()}),500),window.addEventListener("resize",s),window.addEventListener("scroll",c,!0),n.current&&(t=new window.ResizeObserver(s),t.observe(n.current,{attributes:!0}),n.current.closest(".ct-tabs-scroll")&&t.observe(n.current.closest(".ct-tabs-scroll"),{attributes:!0}),n.current.closest(".customize-pane-child")&&t.observe(n.current.closest(".customize-pane-child"),{attributes:!0})),(e?e.current:i.current)&&(t||(t=new window.ResizeObserver(s)),t.observe(e?e.current:i.current,{attributes:!0})),()=>{window.removeEventListener("resize",s),window.removeEventListener("scroll",c,!0),t&&t.disconnect()}}),[t,i.current,e,n.current]);let{right:u,yOffset:p,position:f,otherStyles:d}=(0,r.useMemo)((()=>{let r=0,a=0,l="bottom",s={};if(!t)return{yOffset:a,right:r,position:l};if(n.current){let t=n.current.getBoundingClientRect(),c=n.current.closest(".ct-select-input")?n.current.closest(".ct-select-input"):n.current,u=getComputedStyle(c,":before").content;if(a=t.top+t.height,r=window.innerWidth-t.right,document.body.classList.contains("rtl")&&(r=t.left),u.indexOf("ref-width")>-1){let e=t.width;if(u.indexOf("left")>-1&&c.previousElementSibling&&(e=document.body.classList.contains("rtl")?c.previousElementSibling.getBoundingClientRect().right-t.left:t.right-c.previousElementSibling.getBoundingClientRect().left),u.indexOf("right")>-1){let n=c.parentNode.getBoundingClientRect();document.body.classList.contains("rtl")?(r=n.left,e=t.right-n.left):(r=window.innerWidth-n.right,e=n.right-t.left)}s["--x-select-dropdown-width"]=`${e}px`}let p=e&&e.current||i.current?function(e){let{top:t,left:n,width:r,height:o}=e.getBoundingClientRect(),i=(e=>window.getComputedStyle(e).transform.split(/\(|,|\)/).slice(1,-1).map((e=>parseFloat(e))))(e);if(6==i.length){const e=i;let a=e[0]*e[3]-e[1]*e[2];return{width:r/e[0],height:o/e[3],left:(n*e[3]-t*e[2]+e[2]*e[5]-e[4]*e[3])/a,top:(-n*e[1]+t*e[0]+e[4]*e[1]-e[0]*e[5])/a}}return{top:t,left:n,width:r,height:o}}(e?e.current:i.current):{height:o};a+p.height>window.innerHeight&&t.top-15>p.height&&(l="top",a=window.innerHeight-t.bottom+t.height)}return{yOffset:a,right:r,position:l,otherStyles:s}}),[a,t,n,n.current,e,i.current,o]);return{refreshPopover:s,styles:{"--modal-y-offset":`${p}px`,"--modal-x-offset":`${u}px`,...d},position:f,popoverProps:{ref:e||i,...f?{"data-position":f}:{}}}}},6053:(e,t,n)=>{"use strict";n.d(t,{$B:()=>v,CK:()=>i,GT:()=>p,I8:()=>f,JP:()=>u,Mh:()=>g,Ts:()=>m,V4:()=>a,cD:()=>y,ol:()=>o,s1:()=>l,tL:()=>s,um:()=>d,y2:()=>h,yh:()=>c});var r=n(9307);const o=()=>(0,r.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},(0,r.createElement)("path",{d:"M9.16667 15.8333C12.8486 15.8333 15.8333 12.8486 15.8333 9.16667C15.8333 5.48477 12.8486 2.5 9.16667 2.5C5.48477 2.5 2.5 5.48477 2.5 9.16667C2.5 12.8486 5.48477 15.8333 9.16667 15.8333Z",stroke:"#A3AABF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.createElement)("path",{d:"M17.5 17.5L13.875 13.875",stroke:"#A3AABF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),i=()=>(0,r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},(0,r.createElement)("path",{d:"M20 9H11C9.89543 9 9 9.89543 9 11V20C9 21.1046 9.89543 22 11 22H20C21.1046 22 22 21.1046 22 20V11C22 9.89543 21.1046 9 20 9Z",stroke:"#7C8294",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.createElement)("path",{d:"M5 15H4C3.46957 15 2.96086 14.7893 2.58579 14.4142C2.21071 14.0391 2 13.5304 2 13V4C2 3.46957 2.21071 2.96086 2.58579 2.58579C2.96086 2.21071 3.46957 2 4 2H13C13.5304 2 14.0391 2.21071 14.4142 2.58579C14.7893 2.96086 15 3.46957 15 4V5",stroke:"#7C8294",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),a=()=>(0,r.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},(0,r.createElement)("path",{d:"M9.99996 10.8333C10.4602 10.8333 10.8333 10.4602 10.8333 9.99996C10.8333 9.53972 10.4602 9.16663 9.99996 9.16663C9.53972 9.16663 9.16663 9.53972 9.16663 9.99996C9.16663 10.4602 9.53972 10.8333 9.99996 10.8333Z",stroke:"#7C8294",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.createElement)("path",{d:"M9.99996 5.00004C10.4602 5.00004 10.8333 4.62694 10.8333 4.16671C10.8333 3.70647 10.4602 3.33337 9.99996 3.33337C9.53972 3.33337 9.16663 3.70647 9.16663 4.16671C9.16663 4.62694 9.53972 5.00004 9.99996 5.00004Z",stroke:"#7C8294",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.createElement)("path",{d:"M9.99996 16.6667C10.4602 16.6667 10.8333 16.2936 10.8333 15.8333C10.8333 15.3731 10.4602 15 9.99996 15C9.53972 15 9.16663 15.3731 9.16663 15.8333C9.16663 16.2936 9.53972 16.6667 9.99996 16.6667Z",stroke:"#7C8294",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),l=()=>(0,r.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none"},(0,r.createElement)("rect",{width:"40",height:"40",rx:"4",fill:"#1778F2"}),(0,r.createElement)("path",{d:"M31 20.0674C31 13.9549 26.0754 9 20.0014 9C13.9246 9.00137 9 13.9549 9 20.0687C9 25.5914 13.0227 30.1696 18.2801 31V23.2666H15.4892V20.0687H18.2828V17.6284C18.2828 14.8554 19.9258 13.3238 22.4376 13.3238C23.6419 13.3238 24.8999 13.5397 24.8999 13.5397V16.2618H23.5127C22.1475 16.2618 21.7213 17.1156 21.7213 17.9914V20.0674H24.7707L24.284 23.2652H21.7199V30.9986C26.9773 30.1682 31 25.5901 31 20.0674Z",fill:"white"})),s=()=>(0,r.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none"},(0,r.createElement)("rect",{width:"40",height:"40",rx:"4",fill:"#00ACEE"}),(0,r.createElement)("path",{d:"M15.9107 28.876C24.213 28.876 28.7546 21.9968 28.7546 16.0417C28.7546 15.8492 28.7546 15.654 28.7464 15.4615C29.6306 14.8214 30.3937 14.0289 31 13.1212C30.1741 13.4854 29.2988 13.7254 28.4026 13.8335C29.3466 13.2692 30.0536 12.3814 30.3923 11.3351C29.5054 11.8605 28.5346 12.2293 27.5226 12.4255C26.8423 11.7009 25.9419 11.2208 24.9611 11.0597C23.9803 10.8986 22.9737 11.0655 22.0973 11.5344C21.2209 12.0033 20.5236 12.7481 20.1134 13.6534C19.7031 14.5588 19.6029 15.5741 19.8281 16.5422C18.0334 16.4522 16.2776 15.986 14.6747 15.1737C13.0717 14.3615 11.6574 13.2214 10.5235 11.8273C9.94784 12.8216 9.77216 13.9976 10.0321 15.1167C10.2921 16.2358 10.9683 17.2139 11.9232 17.8526C11.2076 17.8283 10.5077 17.6361 9.88 17.2916V17.3535C9.88123 18.395 10.242 19.4042 10.9015 20.2104C11.5609 21.0166 12.4784 21.5704 13.499 21.7782C13.1116 21.8849 12.7114 21.9381 12.3096 21.9363C12.0264 21.9372 11.7436 21.9109 11.4654 21.858C11.7538 22.7545 12.3155 23.5384 13.0717 24.0999C13.8279 24.6613 14.7408 24.9721 15.6825 24.9888C14.0828 26.2453 12.1067 26.9268 10.0725 26.9235C9.71407 26.925 9.35588 26.9043 9 26.8616C11.0646 28.1778 13.4623 28.8767 15.9107 28.876Z",fill:"white"})),c=()=>(0,r.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none"},(0,r.createElement)("rect",{width:"40",height:"40",rx:"4",fill:"#0A66C2"}),(0,r.createElement)("path",{d:"M9 10.5757C9 9.70538 9.72325 9 10.6156 9H29.3844C30.2768 9 31 9.70538 31 10.5757V29.4242C31 30.2946 30.2768 31 29.3844 31H10.6156C9.72325 31 9 30.2946 9 29.4242V10.5757ZM15.7966 27.4167V17.4824H12.4952V27.4167H15.7966ZM14.1466 16.1253C15.2975 16.1253 16.0139 15.3635 16.0139 14.4093C15.9932 13.4344 15.2989 12.6933 14.1686 12.6933C13.0384 12.6933 12.3 13.4358 12.3 14.4093C12.3 15.3635 13.0164 16.1253 14.1246 16.1253H14.1466ZM20.8951 27.4167V21.8686C20.8951 21.5716 20.9171 21.2746 21.0051 21.0629C21.243 20.4703 21.7861 19.8556 22.6991 19.8556C23.894 19.8556 24.3711 20.7659 24.3711 22.1024V27.4167H27.6725V21.7188C27.6725 18.6663 26.0445 17.2473 23.872 17.2473C22.1202 17.2473 21.3351 18.2098 20.8951 18.8876V18.922H20.8731C20.8804 18.9105 20.8878 18.8991 20.8951 18.8876V17.4824H17.5951C17.6364 18.4146 17.5951 27.4167 17.5951 27.4167H20.8951Z",fill:"white"})),u=()=>(0,r.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none"},(0,r.createElement)("rect",{width:"40",height:"40",rx:"4",fill:"#FF4500"}),(0,r.createElement)("path",{d:"M17.4796 20C17.1771 20.0004 16.887 20.1207 16.673 20.3347C16.4591 20.5486 16.3387 20.8387 16.3384 21.1412C16.3384 21.7724 16.8499 22.2963 17.4796 22.2839C17.7756 22.2736 18.0561 22.1488 18.2618 21.9358C18.4676 21.7227 18.5826 21.4381 18.5826 21.1419C18.5826 20.8458 18.4676 20.5611 18.2618 20.3481C18.0561 20.1351 17.7756 20.0103 17.4796 20ZM20.0138 25.0146C20.4469 25.0146 21.9429 24.9624 22.7308 24.1745C22.7818 24.1163 22.81 24.0415 22.81 23.9641C22.81 23.8867 22.7818 23.8119 22.7308 23.7537C22.7034 23.7256 22.6708 23.7031 22.6346 23.6878C22.5985 23.6725 22.5596 23.6646 22.5204 23.6646C22.4811 23.6646 22.4423 23.6725 22.4061 23.6878C22.37 23.7031 22.3373 23.7256 22.31 23.7537C21.8246 24.2529 20.7618 24.4234 20.0138 24.4234C19.2644 24.4234 18.2153 24.2529 17.7161 23.7537C17.6888 23.7256 17.6561 23.7031 17.62 23.6878C17.5839 23.6725 17.545 23.6646 17.5058 23.6646C17.4665 23.6646 17.4277 23.6725 17.3915 23.6878C17.3554 23.7031 17.3227 23.7256 17.2954 23.7537C17.2672 23.7811 17.2448 23.8137 17.2295 23.8499C17.2142 23.886 17.2063 23.9249 17.2063 23.9641C17.2063 24.0034 17.2142 24.0422 17.2295 24.0784C17.2448 24.1145 17.2672 24.1472 17.2954 24.1745C18.0709 24.9486 19.5669 25.0132 20.0138 25.0132V25.0146ZM21.3778 21.155C21.3778 21.7848 21.8906 22.2963 22.5204 22.2963C23.1501 22.2963 23.6616 21.7724 23.6616 21.155C23.6472 20.862 23.5207 20.5858 23.3083 20.3835C23.0958 20.1812 22.8137 20.0684 22.5204 20.0684C22.227 20.0684 21.9449 20.1812 21.7325 20.3835C21.52 20.5858 21.3935 20.862 21.3791 21.155H21.3778Z",fill:"white"}),(0,r.createElement)("path",{d:"M31 20C31 22.9174 29.8411 25.7153 27.7782 27.7782C25.7153 29.8411 22.9174 31 20 31C17.0826 31 14.2847 29.8411 12.2218 27.7782C10.1589 25.7153 9 22.9174 9 20C9 17.0826 10.1589 14.2847 12.2218 12.2218C14.2847 10.1589 17.0826 9 20 9C22.9174 9 25.7153 10.1589 27.7782 12.2218C29.8411 14.2847 31 17.0826 31 20ZM25.7365 18.3981C25.3034 18.3981 24.9087 18.5686 24.62 18.845C23.5186 18.0571 22.0075 17.5456 20.3286 17.4796L21.0629 14.0408L23.4526 14.5522C23.4631 14.7754 23.5389 14.9905 23.6705 15.171C23.8021 15.3515 23.9838 15.4894 24.193 15.5676C24.4023 15.6458 24.6298 15.6609 24.8476 15.611C25.0653 15.5611 25.2636 15.4484 25.4179 15.2869C25.5722 15.1253 25.6757 14.9221 25.7155 14.7023C25.7554 14.4825 25.7299 14.2558 25.6422 14.0504C25.5544 13.845 25.4083 13.6698 25.222 13.5466C25.0357 13.4234 24.8173 13.3576 24.5939 13.3574C24.3802 13.3581 24.1711 13.4188 23.9902 13.5326C23.8093 13.6464 23.6641 13.8086 23.5709 14.0009L20.9061 13.4371C20.8702 13.4294 20.8332 13.4288 20.7971 13.4354C20.761 13.442 20.7266 13.4557 20.6957 13.4756C20.6636 13.4957 20.6364 13.5226 20.6159 13.5545C20.5955 13.5863 20.5823 13.6223 20.5775 13.6599L19.7635 17.4934C18.0585 17.5456 16.5212 18.0571 15.4047 18.8574C15.116 18.5824 14.7228 18.4119 14.291 18.4119C13.9248 18.4113 13.5696 18.5365 13.2846 18.7664C12.9996 18.9963 12.8022 19.317 12.7252 19.675C12.6483 20.033 12.6965 20.4065 12.8619 20.7332C13.0272 21.0599 13.2997 21.3199 13.6337 21.4699C13.6062 21.628 13.5939 21.7861 13.5939 21.9552C13.5939 24.4234 16.469 26.4323 20.0138 26.4323C23.5571 26.4323 26.4323 24.4371 26.4323 21.9552C26.4323 21.7985 26.4185 21.628 26.3924 21.4699C26.9438 21.221 27.3384 20.6559 27.3384 20C27.3384 19.1062 26.6165 18.3981 25.7365 18.3981Z",fill:"white"})),p=()=>(0,r.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none"},(0,r.createElement)("rect",{width:"40",height:"40",rx:"4",fill:"#1DB53F"}),(0,r.createElement)("path",{d:"M12 12H28C29.1 12 30 12.9 30 14V26C30 27.1 29.1 28 28 28H12C10.9 28 10 27.1 10 26V14C10 12.9 10.9 12 12 12Z",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.createElement)("path",{d:"M30 14L20 21L10 14",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),f=()=>(0,r.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},(0,r.createElement)("path",{d:"M9.1665 3.33325H3.33317C2.89114 3.33325 2.46722 3.50885 2.15466 3.82141C1.8421 4.13397 1.6665 4.55789 1.6665 4.99992V16.6666C1.6665 17.1086 1.8421 17.5325 2.15466 17.8451C2.46722 18.1577 2.89114 18.3333 3.33317 18.3333H14.9998C15.4419 18.3333 15.8658 18.1577 16.1783 17.8451C16.4909 17.5325 16.6665 17.1086 16.6665 16.6666V10.8333",stroke:"#A3AABF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.createElement)("path",{d:"M15.4165 2.0832C15.748 1.75168 16.1977 1.56543 16.6665 1.56543C17.1353 1.56543 17.585 1.75168 17.9165 2.0832C18.248 2.41472 18.4343 2.86436 18.4343 3.3332C18.4343 3.80204 18.248 4.25168 17.9165 4.5832L9.99984 12.4999L6.6665 13.3332L7.49984 9.99986L15.4165 2.0832Z",stroke:"#A3AABF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),d=()=>(0,r.createElement)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M11 1L1 11",stroke:"#A3AABF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.createElement)("path",{d:"M1 1L11 11",stroke:"#A3AABF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),h=()=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"44",viewBox:"0 0 44 44"},(0,r.createElement)("g",{id:"Group_6066","data-name":"Group 6066",transform:"translate(-305 -896)"},(0,r.createElement)("circle",{id:"Ellipse_104","data-name":"Ellipse 104",cx:"22",cy:"22",r:"22",transform:"translate(305 896)",fill:"#fff"}),(0,r.createElement)("g",{id:"Group_5744","data-name":"Group 5744",transform:"translate(316.075 912.102)"},(0,r.createElement)("line",{id:"Line_93","data-name":"Line 93",x2:"16.008",transform:"translate(6.478 0)",fill:"none",stroke:"#374757","stroke-linecap":"round","stroke-width":"2",opacity:"0.3"}),(0,r.createElement)("line",{id:"Line_94","data-name":"Line 94",x2:"20.221",transform:"translate(2.265 5.898)",fill:"none",stroke:"#374757","stroke-linecap":"round","stroke-width":"2",opacity:"0.3"}),(0,r.createElement)("line",{id:"Line_95","data-name":"Line 95",x2:"16.008",transform:"translate(6.478 11.796)",fill:"none",stroke:"#374757","stroke-linecap":"round","stroke-width":"2",opacity:"0.3"}),(0,r.createElement)("path",{id:"Path_30634","data-name":"Path 30634",d:"M0,0,3.685,3.686,7.369,0",transform:"translate(3.686 2.37) rotate(90)",fill:"none",stroke:"#374757","stroke-linecap":"round","stroke-width":"2",opacity:"0.3"})))),m=e=>{let{menuName:t}=e;return(0,r.createElement)(r.Fragment,null,"wheels_of_life_global_settings"==t&&(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"26.207",height:"28",viewBox:"0 0 26.207 28"},(0,r.createElement)("g",{id:"settings",transform:"translate(-2.827 -2)"},(0,r.createElement)("circle",{id:"XMLID_224_",cx:"4",cy:"4",r:"4",transform:"translate(12 12)",fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"2"}),(0,r.createElement)("path",{id:"XMLID_242_",d:"M27.758,10.366l-1-1.732A2,2,0,0,0,24.026,7.9l-.526.3a3,3,0,0,1-4.5-2.6V5a2,2,0,0,0-2-2H15a2,2,0,0,0-2,2v.608a3,3,0,0,1-4.5,2.6l-.526-.3a2,2,0,0,0-2.732.732l-1,1.732A2,2,0,0,0,4.974,13.1l.526.3a3,3,0,0,1,0,5.2l-.526.3a2,2,0,0,0-.732,2.732l1,1.732a2,2,0,0,0,2.732.732l.526-.3a3,3,0,0,1,4.5,2.6V27a2,2,0,0,0,2,2h2a2,2,0,0,0,2-2v-.608a3,3,0,0,1,4.5-2.6l.526.3a2,2,0,0,0,2.732-.732l1-1.732a2,2,0,0,0-.732-2.732l-.526-.3a3,3,0,0,1,0-5.2l.526-.3A2,2,0,0,0,27.758,10.366Z",fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"2"}))),"wheels_of_life_members"==t&&(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},(0,r.createElement)("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),(0,r.createElement)("circle",{cx:"9",cy:"7",r:"4"}),(0,r.createElement)("path",{d:"M23 21v-2a4 4 0 0 0-3-3.87"}),(0,r.createElement)("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})),"wheels_of_life_analytics"==t&&(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},(0,r.createElement)("path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83"}),(0,r.createElement)("path",{d:"M22 12A10 10 0 0 0 12 2v10z"})),"wheels_of_life_submissions"==t&&(0,r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M20 12V9L13 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22C6 22 8.26633 22 11 22",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.createElement)("path",{d:"M22 16L16.5 22L14 19.2727",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.createElement)("path",{d:"M13 2V9H20",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),"wheels_of_life_all_lists"==t&&(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:"feather feather-aperture"},(0,r.createElement)("circle",{cx:"12",cy:"12",r:"10"}),(0,r.createElement)("line",{x1:"14.31",y1:"8",x2:"20.05",y2:"17.94"}),(0,r.createElement)("line",{x1:"9.69",y1:"8",x2:"21.17",y2:"8"}),(0,r.createElement)("line",{x1:"7.38",y1:"12",x2:"13.12",y2:"2.06"}),(0,r.createElement)("line",{x1:"9.69",y1:"16",x2:"3.95",y2:"6.06"}),(0,r.createElement)("line",{x1:"14.31",y1:"16",x2:"2.83",y2:"16"}),(0,r.createElement)("line",{x1:"16.62",y1:"12",x2:"10.88",y2:"21.94"})),"wheels_of_life_license_activation"==t&&(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:"feather feather-key"},(0,r.createElement)("path",{d:"M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"})))},g=()=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:"feather feather-mail"},(0,r.createElement)("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),(0,r.createElement)("polyline",{points:"22,6 12,13 2,6"})),v=()=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:"feather feather-file-text"},(0,r.createElement)("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),(0,r.createElement)("polyline",{points:"14 2 14 8 20 8"}),(0,r.createElement)("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),(0,r.createElement)("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),(0,r.createElement)("polyline",{points:"10 9 9 9 8 9"})),y=()=>(0,r.createElement)("svg",{id:"Layer_1",dataName:"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 114.31 122.88"},(0,r.createElement)("path",{fillRule:"evenodd",class:"cls-1",d:"M69.88,71.65h35.78a8.68,8.68,0,0,1,8.65,8.66v33.92a8.67,8.67,0,0,1-8.65,8.65H69.88a8.67,8.67,0,0,1-8.65-8.65V80.31a8.68,8.68,0,0,1,8.65-8.66ZM26.26,78.12a3.35,3.35,0,0,1-3.17-3.46,3.29,3.29,0,0,1,3.17-3.45H42.9a3.34,3.34,0,0,1,3.17,3.45,3.29,3.29,0,0,1-3.17,3.46Zm75.19-18.46h-7V8.1a1.17,1.17,0,0,0-.33-.82A1.2,1.2,0,0,0,93.34,7H8.06a1.15,1.15,0,0,0-.82.33,1.13,1.13,0,0,0-.33.82v96.35a1.13,1.13,0,0,0,1.15,1.16H45.17v7H8.1A8.16,8.16,0,0,1,0,104.45V8.1A7.93,7.93,0,0,1,2.39,2.39,8,8,0,0,1,8.1,0H93.39A7.92,7.92,0,0,1,99.1,2.39a8,8,0,0,1,2.39,5.71c0,39.79,0-9.25,0,51.56ZM26.22,33.12a3.36,3.36,0,0,1-3.17-3.46,3.3,3.3,0,0,1,3.17-3.46H75.14a3.35,3.35,0,0,1,3.17,3.46,3.3,3.3,0,0,1-3.17,3.46Zm0,22.5a3.36,3.36,0,0,1-3.17-3.46,3.29,3.29,0,0,1,3.17-3.45H75.14a3.34,3.34,0,0,1,3.17,3.45,3.29,3.29,0,0,1-3.17,3.46ZM75.65,99.16a2.41,2.41,0,0,1-2.08-1c-1.1-1.64.4-3.26,1.43-4.41,3-3.23,9.61-9.08,11.07-10.79a2.4,2.4,0,0,1,3.76,0c1.51,1.76,8.53,8,11.33,11.1,1,1.1,2.18,2.59,1.16,4.1a2.42,2.42,0,0,1-2.08,1H95v9.4a3,3,0,0,1-2.95,3H83.82a3,3,0,0,1-2.95-3v-9.4Z"}))},3431:e=>{var t=.1,n="function"==typeof Float32Array;function r(e,t){return 1-3*t+3*e}function o(e,t){return 3*t-6*e}function i(e){return 3*e}function a(e,t,n){return((r(t,n)*e+o(t,n))*e+i(t))*e}function l(e,t,n){return 3*r(t,n)*e*e+2*o(t,n)*e+i(t)}function s(e){return e}e.exports=function(e,r,o,i){if(!(0<=e&&e<=1&&0<=o&&o<=1))throw new Error("bezier x values must be in [0, 1] range");if(e===r&&o===i)return s;for(var c=n?new Float32Array(11):new Array(11),u=0;u<11;++u)c[u]=a(u*t,e,o);return function(n){return 0===n?0:1===n?1:a(function(n){for(var r=0,i=1;10!==i&&c[i]<=n;++i)r+=t;--i;var s=r+(n-c[i])/(c[i+1]-c[i])*t,u=l(s,e,o);return u>=.001?function(e,t,n,r){for(var o=0;o<4;++o){var i=l(t,n,r);if(0===i)return t;t-=(a(t,n,r)-e)/i}return t}(n,s,e,o):0===u?s:function(e,t,n,r,o){var i,l,s=0;do{(i=a(l=t+(n-t)/2,r,o)-e)>0?n=l:t=l}while(Math.abs(i)>1e-7&&++s<10);return l}(n,r,r+t,e,o)}(n),r,i)}}},1924:(e,t,n)=>{"use strict";var r=n(210),o=n(5559),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},5559:(e,t,n)=>{"use strict";var r=n(8612),o=n(210),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),l=o("%Reflect.apply%",!0)||r.call(a,i),s=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),u=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=l(r,a,arguments);return s&&c&&s(t,"length").configurable&&c(t,"length",{value:1+u(0,e.length-(arguments.length-1))}),t};var p=function(){return l(r,i,arguments)};c?c(e.exports,"apply",{value:p}):e.exports.apply=p},4184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var l in n)r.call(n,l)&&n[l]&&e.push(l)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},7734:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addEventListener:()=>s});var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o=void 0;function i(e){e.handlers===e.nextHandlers&&(e.nextHandlers=e.handlers.slice())}function a(e){this.target=e,this.events={}}a.prototype.getEventHandlers=function(e,t){var n,r=String(e)+" "+String((n=t)?!0===n?100:(n.capture<<0)+(n.passive<<1)+(n.once<<2):0);return this.events[r]||(this.events[r]={handlers:[],handleEvent:void 0},this.events[r].nextHandlers=this.events[r].handlers),this.events[r]},a.prototype.handleEvent=function(e,t,n){var r=this.getEventHandlers(e,t);r.handlers=r.nextHandlers,r.handlers.forEach((function(e){e&&e(n)}))},a.prototype.add=function(e,t,n){var r=this,o=this.getEventHandlers(e,n);i(o),0===o.nextHandlers.length&&(o.handleEvent=this.handleEvent.bind(this,e,n),this.target.addEventListener(e,o.handleEvent,n)),o.nextHandlers.push(t);var a=!0;return function(){if(a){a=!1,i(o);var l=o.nextHandlers.indexOf(t);o.nextHandlers.splice(l,1),0===o.nextHandlers.length&&(r.target&&r.target.removeEventListener(e,o.handleEvent,n),o.handleEvent=void 0)}}};var l="__consolidated_events_handlers__";function s(e,t,n,i){e[l]||(e[l]=new a(e));var s=function(e){if(e)return void 0===o&&(o=function(){if(!r)return!1;if(!window.addEventListener||!window.removeEventListener||!Object.defineProperty)return!1;var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t)}catch(e){}return e}()),o?e:!!e.capture}(i);return e[l].add(t,n,s)}},640:(e,t,n)=>{"use strict";var r=n(1742),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,l,s,c,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),l=document.createRange(),s=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),l.selectNodeContents(c),s.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(l):s.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},600:(e,t)=>{"use strict";t.T=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e&&Object.keys(e).indexOf("desktop")>-1?t?e:e.desktop:t?{desktop:e,tablet:e,mobile:e}:e}},251:(e,t,n)=>{"use strict";var r=n(3533),o=n(1924),i=n(2847),a=n(210),l=n(3216),s=n(7478),c=n(609),u=n(2584),p=n(8326),f=n(635),d=n(8923),h=n(8420),m=n(2579),g=n(2215),v=n(3679),y=n(3483),b=n(6430),w=o("ArrayBuffer.prototype.byteLength",!0)||function(e){return e.byteLength},E=o("SharedArrayBuffer.prototype.byteLength",!0),C=o("Date.prototype.getTime"),k=Object.getPrototypeOf,_=o("Object.prototype.toString"),S=a("%Set%",!0),x=o("Map.prototype.has",!0),O=o("Map.prototype.get",!0),N=o("Map.prototype.size",!0),A=o("Set.prototype.add",!0),P=o("Set.prototype.delete",!0),j=o("Set.prototype.has",!0),T=o("Set.prototype.size",!0);function M(e,t,n,r){for(var o,i=l(e);(o=i.next())&&!o.done;)if(F(t,o.value,n,r))return P(e,o.value),!0;return!1}function L(e){return void 0===e?null:"object"!=typeof e?"symbol"!=typeof e&&("string"!=typeof e&&"number"!=typeof e||+e==+e):void 0}function R(e,t,n,o,i,a){var l=L(n);if(null!=l)return l;var s=O(t,l),c=r({},i,{strict:!1});return!(void 0===s&&!x(t,l)||!F(o,s,c,a))&&!x(e,l)&&F(o,s,c,a)}function D(e,t,n){var r=L(n);return null!=r?r:j(t,r)&&!j(e,r)}function B(e,t,n,r,o,i){for(var a,s,c=l(e);(a=c.next())&&!a.done;)if(F(n,s=a.value,o,i)&&F(r,O(t,s),o,i))return P(e,s),!0;return!1}function F(e,t,n,o){var a=n||{};if(a.strict?c(e,t):e===t)return!0;if(v(e)!==v(t))return!1;if(!e||!t||"object"!=typeof e&&"object"!=typeof t)return a.strict?c(e,t):e==t;var s,P=o.has(e),L=o.has(t);if(P&&L){if(o.get(e)===o.get(t))return!0}else s={};return P||o.set(e,s),L||o.set(t,s),function(e,t,n,o){var a,s;if(typeof e!=typeof t)return!1;if(null==e||null==t)return!1;if(_(e)!==_(t))return!1;if(u(e)!==u(t))return!1;if(p(e)!==p(t))return!1;var c=e instanceof Error,v=t instanceof Error;if(c!==v)return!1;if((c||v)&&(e.name!==t.name||e.message!==t.message))return!1;var P=h(e),L=h(t);if(P!==L)return!1;if((P||L)&&(e.source!==t.source||i(e)!==i(t)))return!1;var z=d(e),U=d(t);if(z!==U)return!1;if((z||U)&&C(e)!==C(t))return!1;if(n.strict&&k&&k(e)!==k(t))return!1;var V=b(e),Z=b(t);if((V||Z)&&V!==Z)return!1;var H=I(e),$=I(t);if(H!==$)return!1;if(H||$){if(e.length!==t.length)return!1;for(a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}var W=f(e),K=f(t);if(W!==K)return!1;if(W||K)return w(e)===w(t)&&"function"==typeof Uint8Array&&F(new Uint8Array(e),new Uint8Array(t),n,o);var q=m(e),G=m(t);if(q!==G)return!1;if(q||G)return E(e)===E(t)&&"function"==typeof Uint8Array&&F(new Uint8Array(e),new Uint8Array(t),n,o);if(typeof e!=typeof t)return!1;var Y=g(e),J=g(t);if(Y.length!==J.length)return!1;for(Y.sort(),J.sort(),a=Y.length-1;a>=0;a--)if(Y[a]!=J[a])return!1;for(a=Y.length-1;a>=0;a--)if(!F(e[s=Y[a]],t[s],n,o))return!1;var Q=y(e),X=y(t);return Q===X&&("Set"===Q||"Set"===X?function(e,t,n,r){if(T(e)!==T(t))return!1;for(var o,i,a,s=l(e),c=l(t);(o=s.next())&&!o.done;)if(o.value&&"object"==typeof o.value)a||(a=new S),A(a,o.value);else if(!j(t,o.value)){if(n.strict)return!1;if(!D(e,t,o.value))return!1;a||(a=new S),A(a,o.value)}if(a){for(;(i=c.next())&&!i.done;)if(i.value&&"object"==typeof i.value){if(!M(a,i.value,n.strict,r))return!1}else if(!n.strict&&!j(e,i.value)&&!M(a,i.value,n.strict,r))return!1;return 0===T(a)}return!0}(e,t,n,o):"Map"!==Q||function(e,t,n,o){if(N(e)!==N(t))return!1;for(var i,a,s,c,u,p,f=l(e),d=l(t);(i=f.next())&&!i.done;)if(c=i.value[0],u=i.value[1],c&&"object"==typeof c)s||(s=new S),A(s,c);else if(void 0===(p=O(t,c))&&!x(t,c)||!F(u,p,n,o)){if(n.strict)return!1;if(!R(e,t,c,u,n,o))return!1;s||(s=new S),A(s,c)}if(s){for(;(a=d.next())&&!a.done;)if(c=a.value[0],p=a.value[1],c&&"object"==typeof c){if(!B(s,e,c,p,n,o))return!1}else if(!(n.strict||e.has(c)&&F(O(e,c),p,n,o)||B(s,e,c,p,r({},n,{strict:!1}),o)))return!1;return 0===T(s)}return!0}(e,t,n,o))}(e,t,a,o)}function I(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0]||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))}e.exports=function(e,t,n){return F(e,t,n,s())}},8326:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},4289:(e,t,n)=>{"use strict";var r=n(2215),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,l=Object.defineProperty,s=n(1044)(),c=l&&s,u=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(o=r)||"[object Function]"!==i.call(o)||!r())return;var o;c?l(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n},p=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var l=0;l<i.length;l+=1)u(e,i[l],t[i[l]],n[i[l]])};p.supportsDescriptors=!!c,e.exports=p},1676:e=>{"use strict";e.exports=function(e){if(arguments.length<1)throw new TypeError("1 argument is required");if("object"!=typeof e)throw new TypeError("Argument 1 (”other“) to Node.contains must be an instance of Node");var t=e;do{if(this===t)return!0;t&&(t=t.parentNode)}while(t);return!1}},2483:(e,t,n)=>{"use strict";var r=n(4289),o=n(1676),i=n(4356),a=i(),l=function(e,t){return a.apply(e,[t])};r(l,{getPolyfill:i,implementation:o,shim:n(1514)}),e.exports=l},4356:(e,t,n)=>{"use strict";var r=n(1676);e.exports=function(){if("undefined"!=typeof document){if(document.contains)return document.contains;if(document.body&&document.body.contains)try{if("boolean"==typeof document.body.contains.call(document,""))return document.body.contains}catch(e){}}return r}},1514:(e,t,n)=>{"use strict";var r=n(4289),o=n(4356);e.exports=function(){var e=o();return"undefined"!=typeof document&&(r(document,{contains:e},{contains:function(){return document.contains!==e}}),"undefined"!=typeof Element&&r(Element.prototype,{contains:e},{contains:function(){return Element.prototype.contains!==e}})),e}},5677:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},4029:(e,t,n)=>{"use strict";var r=n(5320),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=n),"[object Array]"===o.call(e)?function(e,t,n){for(var r=0,o=e.length;r<o;r++)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a):"string"==typeof e?function(e,t,n){for(var r=0,o=e.length;r<o;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(e,t,a):function(e,t,n){for(var r in e)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a)}},7648:e=>{"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==n.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var o,i=t.call(arguments,1),a=Math.max(0,r.length-i.length),l=[],s=0;s<a;s++)l.push("$"+s);if(o=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var n=r.apply(this,i.concat(t.call(arguments)));return Object(n)===n?n:this}return r.apply(e,i.concat(t.call(arguments)))})),r.prototype){var c=function(){};c.prototype=r.prototype,o.prototype=new c,c.prototype=null}return o}},8612:(e,t,n)=>{"use strict";var r=n(7648);e.exports=Function.prototype.bind||r},5972:e=>{"use strict";var t=function(){return"string"==typeof function(){}.name},n=Object.getOwnPropertyDescriptor;if(n)try{n([],"length")}catch(e){n=null}t.functionsHaveConfigurableNames=function(){if(!t()||!n)return!1;var e=n((function(){}),"name");return!!e&&!!e.configurable};var r=Function.prototype.bind;t.boundFunctionsHaveNames=function(){return t()&&"function"==typeof r&&""!==function(){}.bind().name},e.exports=t},210:(e,t,n)=>{"use strict";var r,o=SyntaxError,i=Function,a=TypeError,l=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(e){s=null}var c=function(){throw new a},u=s?function(){try{return c}catch(e){try{return s(arguments,"callee").get}catch(e){return c}}}():c,p=n(1405)(),f=Object.getPrototypeOf||function(e){return e.__proto__},d={},h="undefined"==typeof Uint8Array?r:f(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":p?f([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?f(f([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p?f((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p?f((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?f(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":u,"%TypedArray%":h,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};try{null.error}catch(e){var g=f(f(e));m["%Error.prototype%"]=g}var v=function e(t){var n;if("%AsyncFunction%"===t)n=l("async function () {}");else if("%GeneratorFunction%"===t)n=l("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=l("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(n=f(o.prototype))}return m[t]=n,n},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=n(8612),w=n(7642),E=b.call(Function.call,Array.prototype.concat),C=b.call(Function.apply,Array.prototype.splice),k=b.call(Function.call,String.prototype.replace),_=b.call(Function.call,String.prototype.slice),S=b.call(Function.call,RegExp.prototype.exec),x=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,N=function(e,t){var n,r=e;if(w(y,r)&&(r="%"+(n=y[r])[0]+"%"),w(m,r)){var i=m[r];if(i===d&&(i=v(r)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===S(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=_(e,0,1),n=_(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return k(e,x,(function(e,t,n,o){r[r.length]=n?k(o,O,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=N("%"+r+"%",t),l=i.name,c=i.value,u=!1,p=i.alias;p&&(r=p[0],C(n,E([0,1],p)));for(var f=1,d=!0;f<n.length;f+=1){var h=n[f],g=_(h,0,1),v=_(h,-1);if(('"'===g||"'"===g||"`"===g||'"'===v||"'"===v||"`"===v)&&g!==v)throw new o("property names with quotes must have matching quotes");if("constructor"!==h&&d||(u=!0),w(m,l="%"+(r+="."+h)+"%"))c=m[l];else if(null!=c){if(!(h in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(s&&f+1>=n.length){var y=s(c,h);c=(d=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:c[h]}else d=w(c,h),c=c[h];d&&!u&&(m[l]=c)}}return c}},7296:(e,t,n)=>{"use strict";var r=n(210)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},932:e=>{"use strict";var t="undefined"!=typeof BigInt&&BigInt;e.exports=function(){return"function"==typeof t&&"function"==typeof BigInt&&"bigint"==typeof t(42)&&"bigint"==typeof BigInt(42)}},1044:(e,t,n)=>{"use strict";var r=n(210)("%Object.defineProperty%",!0),o=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},1405:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(5419);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},5419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},6410:(e,t,n)=>{"use strict";var r=n(5419);e.exports=function(){return r()&&!!Symbol.toStringTag}},7642:(e,t,n)=>{"use strict";var r=n(8612);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},8679:(e,t,n)=>{"use strict";var r=n(9864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=d(n);o&&o!==h&&e(t,o,r)}var a=u(n);p&&(a=a.concat(p(n)));for(var l=s(t),m=s(n),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||r&&r[v]||m&&m[v]||l&&l[v])){var y=f(n,v);try{c(t,v,y)}catch(e){}}}}return t}},9496:(e,t,n)=>{"use strict";var r=n(210),o=n(7642),i=n(7478)(),a=r("%TypeError%"),l={assert:function(e,t){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new a("`O` is not an object");if("string"!=typeof t)throw new a("`slot` must be a string");if(i.assert(e),!l.has(e,t))throw new a("`"+t+"` is not present on `O`")},get:function(e,t){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new a("`O` is not an object");if("string"!=typeof t)throw new a("`slot` must be a string");var n=i.get(e);return n&&n["$"+t]},has:function(e,t){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new a("`O` is not an object");if("string"!=typeof t)throw new a("`slot` must be a string");var n=i.get(e);return!!n&&o(n,"$"+t)},set:function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new a("`O` is not an object");if("string"!=typeof t)throw new a("`slot` must be a string");var r=i.get(e);r||(r={},i.set(e,r)),r["$"+t]=n}};Object.freeze&&Object.freeze(l),e.exports=l},2584:(e,t,n)=>{"use strict";var r=n(6410)(),o=n(1924)("Object.prototype.toString"),i=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},a=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},l=function(){return i(arguments)}();i.isLegacyArguments=a,e.exports=l?i:a},635:(e,t,n)=>{"use strict";var r=n(5559),o=n(1924),i=n(210),a=n(5692),l=i("ArrayBuffer",!0),s=i("Float32Array",!0),c=o("ArrayBuffer.prototype.byteLength",!0),u=l&&!c&&(new l).slice,p=u&&r(u);e.exports=c||p?function(e){if(!e||"object"!=typeof e)return!1;try{return c?c(e):p(e,0),!0}catch(e){return!1}}:s?function(e){try{return new s(e).buffer===e&&!a(e)}catch(t){return"object"==typeof e&&"RangeError"===t.name}}:function(e){return!1}},3376:(e,t,n)=>{"use strict";if(n(932)()){var r=BigInt.prototype.valueOf;e.exports=function(e){return null!=e&&"boolean"!=typeof e&&"string"!=typeof e&&"number"!=typeof e&&"symbol"!=typeof e&&"function"!=typeof e&&("bigint"==typeof e||function(e){try{return r.call(e),!0}catch(e){}return!1}(e))}}else e.exports=function(e){return!1}},6814:(e,t,n)=>{"use strict";var r=n(1924),o=r("Boolean.prototype.toString"),i=r("Object.prototype.toString"),a=n(6410)();e.exports=function(e){return"boolean"==typeof e||null!==e&&"object"==typeof e&&(a&&Symbol.toStringTag in e?function(e){try{return o(e),!0}catch(e){return!1}}(e):"[object Boolean]"===i(e))}},5320:e=>{"use strict";var t,n,r=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},o((function(){throw 42}),null,t)}catch(e){e!==n&&(o=null)}else o=null;var i=/^\s*class\b/,a=function(e){try{var t=r.call(e);return i.test(t)}catch(e){return!1}},l=function(e){try{return!a(e)&&(r.call(e),!0)}catch(e){return!1}},s=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,u=!(0 in[,]),p=function(){return!1};if("object"==typeof document){var f=document.all;s.call(f)===s.call(document.all)&&(p=function(e){if((u||!e)&&(void 0===e||"object"==typeof e))try{var t=s.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=o?function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{o(e,null,t)}catch(e){if(e!==n)return!1}return!a(e)&&l(e)}:function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(c)return l(e);if(a(e))return!1;var t=s.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&l(e)}},8923:(e,t,n)=>{"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,i=n(6410)();e.exports=function(e){return"object"==typeof e&&null!==e&&(i?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},8379:e=>{"use strict";var t,n="function"==typeof Map&&Map.prototype?Map:null,r="function"==typeof Set&&Set.prototype?Set:null;n||(t=function(e){return!1});var o=n?Map.prototype.has:null,i=r?Set.prototype.has:null;t||o||(t=function(e){return!1}),e.exports=t||function(e){if(!e||"object"!=typeof e)return!1;try{if(o.call(e),i)try{i.call(e)}catch(e){return!0}return e instanceof n}catch(e){}return!1}},4578:(e,t,n)=>{"use strict";var r=Number.prototype.toString,o=Object.prototype.toString,i=n(6410)();e.exports=function(e){return"number"==typeof e||"object"==typeof e&&(i?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Number]"===o.call(e))}},8420:(e,t,n)=>{"use strict";var r,o,i,a,l=n(1924),s=n(6410)();if(s){r=l("Object.prototype.hasOwnProperty"),o=l("RegExp.prototype.exec"),i={};var c=function(){throw i};a={toString:c,valueOf:c},"symbol"==typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=c)}var u=l("Object.prototype.toString"),p=Object.getOwnPropertyDescriptor;e.exports=s?function(e){if(!e||"object"!=typeof e)return!1;var t=p(e,"lastIndex");if(!t||!r(t,"value"))return!1;try{o(e,a)}catch(e){return e===i}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===u(e)}},9572:e=>{"use strict";var t,n="function"==typeof Map&&Map.prototype?Map:null,r="function"==typeof Set&&Set.prototype?Set:null;r||(t=function(e){return!1});var o=n?Map.prototype.has:null,i=r?Set.prototype.has:null;t||i||(t=function(e){return!1}),e.exports=t||function(e){if(!e||"object"!=typeof e)return!1;try{if(i.call(e),o)try{o.call(e)}catch(e){return!0}return e instanceof r}catch(e){}return!1}},2579:(e,t,n)=>{"use strict";var r=n(1924)("SharedArrayBuffer.prototype.byteLength",!0);e.exports=r?function(e){if(!e||"object"!=typeof e)return!1;try{return r(e),!0}catch(e){return!1}}:function(e){return!1}},9981:(e,t,n)=>{"use strict";var r=String.prototype.valueOf,o=Object.prototype.toString,i=n(6410)();e.exports=function(e){return"string"==typeof e||"object"==typeof e&&(i?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object String]"===o.call(e))}},2636:(e,t,n)=>{"use strict";var r=Object.prototype.toString;if(n(1405)()){var o=Symbol.prototype.toString,i=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==r.call(e))return!1;try{return function(e){return"symbol"==typeof e.valueOf()&&i.test(o.call(e))}(e)}catch(e){return!1}}}else e.exports=function(e){return!1}},5692:(e,t,n)=>{"use strict";var r=n(4029),o=n(3083),i=n(1924),a=i("Object.prototype.toString"),l=n(6410)(),s=n(7296),c="undefined"==typeof globalThis?n.g:globalThis,u=o(),p=i("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},f=i("String.prototype.slice"),d={},h=Object.getPrototypeOf;l&&s&&h&&r(u,(function(e){var t=new c[e];if(Symbol.toStringTag in t){var n=h(t),r=s(n,Symbol.toStringTag);if(!r){var o=h(n);r=s(o,Symbol.toStringTag)}d[e]=r.get}})),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!l||!(Symbol.toStringTag in e)){var t=f(a(e),8,-1);return p(u,t)>-1}return!!s&&function(e){var t=!1;return r(d,(function(n,r){if(!t)try{t=n.call(e)===r}catch(e){}})),t}(e)}},1718:e=>{"use strict";var t,n="function"==typeof WeakMap&&WeakMap.prototype?WeakMap:null,r="function"==typeof WeakSet&&WeakSet.prototype?WeakSet:null;n||(t=function(e){return!1});var o=n?n.prototype.has:null,i=r?r.prototype.has:null;t||o||(t=function(e){return!1}),e.exports=t||function(e){if(!e||"object"!=typeof e)return!1;try{if(o.call(e,o),i)try{i.call(e,i)}catch(e){return!0}return e instanceof n}catch(e){}return!1}},5899:(e,t,n)=>{"use strict";var r=n(210),o=n(1924),i=r("%WeakSet%",!0),a=o("WeakSet.prototype.has",!0);if(a){var l=o("WeakMap.prototype.has",!0);e.exports=function(e){if(!e||"object"!=typeof e)return!1;try{if(a(e,a),l)try{l(e,l)}catch(e){return!0}return e instanceof i}catch(e){}return!1}}else e.exports=function(e){return!1}},7465:(e,t,n)=>{"use strict";n.d(t,{KY:()=>l,Nj:()=>s});var r=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function e(t,n,r){var o=(t="string"==typeof t?t.split("/"):[t]).shift();return n&&void 0!==n[o]?t.length?e(t=t.join("/"),n[o],r):n[o]:r},a=function(e){return"string"==typeof e&&(e=e.split("/")),e.length>1&&e.pop(),e},l=function(e){return e.all||e.any||(e={all:e}),e},s=function e(t,n){var l=Object.values(t)[0],s=function(e){return!(e.length>4)&&(0===e.indexOf("any")?"any":0===e.indexOf("all")&&"all")},c=Object.keys(l).map((function(t,c){var u=Object.values(l)[c];return"all"===s(t)||"any"===s(t)?e(r({},t,u),n):function(e,t,n){var l=function(e,t){var n,l=function(e){return i(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t)};if(e.indexOf(":")>-1){var s=null;if(n=function(e){var n,c=(n=e,Array.isArray(n)?n:Array.from(n)),u=c[0],p=c.slice(1);if("visibility"===(p=p.join(":"))&&(s=l(u,o({},t,r({},a(u),i(a(u),t)[t.wp_customizer_current_view]?"yes":"no")))),"responsive"===p&&(s=l(u,o({},t,r({},a(u),i(a(u),t)[t.wp_customizer_current_view]||i(a(u),t))))),"truthy"===p&&(s=l(u)?"yes":"no"),p.indexOf("array-ids")>-1){var f=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],_n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(_n=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(p.split(":"),3),d=f[0],h=f[1],m=f[2],g=d.indexOf("array-ids-")>-1&&d.split("-")[2],v=l(u).filter((function(e){return e.id===h})).filter((function(e){return!g||g===i(m,e).toString()}));s=0===v.length?"no":i(m,v[0])||"no"}if(p.indexOf("json:")>-1&&(s=l(u+"/"+p.split(":")[1]).toString()),"array_length"===p){var y=l(u);s=(y||[]).length.toString()}if(!s)throw new Error("Unknown matcher received. Please verify for typos. The received matcher: "+p+".")},n(e.split(":")),s)return s;e=e.split(":")[0]}var c=l(e);return!!c&&(c.desktop?c:c.toString())}(t,n);if(e&&e.toString()&&0===e.toString().indexOf("~")){var s=e.replace("~","");return l.desktop?l.desktop===s||l.tablet===s||l.mobile===s:l===s}return l=l.toString(),e=e.toString(),!!l&&(e.indexOf("|")>-1?0===e.indexOf("!")?-1===e.substring(1).split("|").map((function(e){return e.trim()})).includes(l.trim()):e.split("|").map((function(e){return e.trim()})).indexOf(l.trim())>-1:0===e.indexOf("!")?l!==e.substring(1).trim():0===e.indexOf("*")?l.indexOf(e.trim().substring(1).trim())>-1:l===e.trim())}(u,t,n)}));return"all"===s(Object.keys(t)[0])?c.every((function(e){return!!e})):"any"===s(Object.keys(t)[0])?c.some((function(e){return!!e})):void 0}},631:(e,t,n)=>{var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,a=r&&Map.prototype.forEach,l="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=l&&s&&"function"==typeof s.get?s.get:null,u=l&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,v=String.prototype.match,y=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,E=String.prototype.toLowerCase,C=RegExp.prototype.test,k=Array.prototype.concat,_=Array.prototype.join,S=Array.prototype.slice,x=Math.floor,O="function"==typeof BigInt?BigInt.prototype.valueOf:null,N=Object.getOwnPropertySymbols,A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,P="function"==typeof Symbol&&"object"==typeof Symbol.iterator,j="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,T=Object.prototype.propertyIsEnumerable,M=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function L(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||C.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-x(-e):x(e);if(r!==e){var o=String(r),i=y.call(t,o.length+1);return b.call(o,n,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var R=n(4654),D=R.custom,B=V(D)?D:null;function F(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function I(e){return b.call(String(e),/"/g,""")}function z(e){return!("[object Array]"!==$(e)||j&&"object"==typeof e&&j in e)}function U(e){return!("[object RegExp]"!==$(e)||j&&"object"==typeof e&&j in e)}function V(e){if(P)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,r,o){var l=n||{};if(H(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=!H(l,"customInspect")||l.customInspect;if("boolean"!=typeof s&&"symbol"!==s)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var m=l.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return K(t,l);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var w=String(t);return m?L(t,w):w}if("bigint"==typeof t){var C=String(t)+"n";return m?L(t,C):C}var x=void 0===l.depth?5:l.depth;if(void 0===r&&(r=0),r>=x&&x>0&&"object"==typeof t)return z(t)?"[Array]":"[Object]";var N,D=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=_.call(Array(e.indent+1)," ")}return{base:n,prev:_.call(Array(t+1),n)}}(l,r);if(void 0===o)o=[];else if(W(o,t)>=0)return"[Circular]";function Z(t,n,i){if(n&&(o=S.call(o)).push(n),i){var a={depth:l.depth};return H(l,"quoteStyle")&&(a.quoteStyle=l.quoteStyle),e(t,a,r+1,o)}return e(t,l,r+1,o)}if("function"==typeof t&&!U(t)){var q=function(e){if(e.name)return e.name;var t=v.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),ee=X(t,Z);return"[Function"+(q?": "+q:" (anonymous)")+"]"+(ee.length>0?" { "+_.call(ee,", ")+" }":"")}if(V(t)){var te=P?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):A.call(t);return"object"!=typeof t||P?te:G(te)}if((N=t)&&"object"==typeof N&&("undefined"!=typeof HTMLElement&&N instanceof HTMLElement||"string"==typeof N.nodeName&&"function"==typeof N.getAttribute)){for(var ne="<"+E.call(String(t.nodeName)),re=t.attributes||[],oe=0;oe<re.length;oe++)ne+=" "+re[oe].name+"="+F(I(re[oe].value),"double",l);return ne+=">",t.childNodes&&t.childNodes.length&&(ne+="..."),ne+"</"+E.call(String(t.nodeName))+">"}if(z(t)){if(0===t.length)return"[]";var ie=X(t,Z);return D&&!function(e){for(var t=0;t<e.length;t++)if(W(e[t],"\n")>=0)return!1;return!0}(ie)?"["+Q(ie,D)+"]":"[ "+_.call(ie,", ")+" ]"}if(function(e){return!("[object Error]"!==$(e)||j&&"object"==typeof e&&j in e)}(t)){var ae=X(t,Z);return"cause"in Error.prototype||!("cause"in t)||T.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+_.call(ae,", ")+" }":"{ ["+String(t)+"] "+_.call(k.call("[cause]: "+Z(t.cause),ae),", ")+" }"}if("object"==typeof t&&s){if(B&&"function"==typeof t[B]&&R)return R(t,{depth:x-r});if("symbol"!==s&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var le=[];return a&&a.call(t,(function(e,n){le.push(Z(n,t,!0)+" => "+Z(e,t))})),J("Map",i.call(t),le,D)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var se=[];return u&&u.call(t,(function(e){se.push(Z(e,t))})),J("Set",c.call(t),se,D)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Y("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Y("WeakSet");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{return d.call(e),!0}catch(e){}return!1}(t))return Y("WeakRef");if(function(e){return!("[object Number]"!==$(e)||j&&"object"==typeof e&&j in e)}(t))return G(Z(Number(t)));if(function(e){if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}(t))return G(Z(O.call(t)));if(function(e){return!("[object Boolean]"!==$(e)||j&&"object"==typeof e&&j in e)}(t))return G(h.call(t));if(function(e){return!("[object String]"!==$(e)||j&&"object"==typeof e&&j in e)}(t))return G(Z(String(t)));if(!function(e){return!("[object Date]"!==$(e)||j&&"object"==typeof e&&j in e)}(t)&&!U(t)){var ce=X(t,Z),ue=M?M(t)===Object.prototype:t instanceof Object||t.constructor===Object,pe=t instanceof Object?"":"null prototype",fe=!ue&&j&&Object(t)===t&&j in t?y.call($(t),8,-1):pe?"Object":"",de=(ue||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fe||pe?"["+_.call(k.call([],fe||[],pe||[]),": ")+"] ":"");return 0===ce.length?de+"{}":D?de+"{"+Q(ce,D)+"}":de+"{ "+_.call(ce,", ")+" }"}return String(t)};var Z=Object.prototype.hasOwnProperty||function(e){return e in this};function H(e,t){return Z.call(e,t)}function $(e){return m.call(e)}function W(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function K(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return K(y.call(e,0,t.maxStringLength),t)+r}return F(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,q),"single",t)}function q(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function G(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function J(e,t,n,r){return e+" ("+t+") {"+(r?Q(n,r):_.call(n,", "))+"}"}function Q(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+_.call(e,","+n)+"\n"+t.prev}function X(e,t){var n=z(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=H(e,o)?t(e[o],e):""}var i,a="function"==typeof N?N(e):[];if(P){i={};for(var l=0;l<a.length;l++)i["$"+a[l]]=a[l]}for(var s in e)H(e,s)&&(n&&String(Number(s))===s&&s<e.length||P&&i["$"+s]instanceof Symbol||(C.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e))));if("function"==typeof N)for(var c=0;c<a.length;c++)T.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}},4244:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},609:(e,t,n)=>{"use strict";var r=n(4289),o=n(5559),i=n(4244),a=n(5624),l=n(2281),s=o(a(),Object);r(s,{getPolyfill:a,implementation:i,shim:l}),e.exports=s},5624:(e,t,n)=>{"use strict";var r=n(4244);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},2281:(e,t,n)=>{"use strict";var r=n(5624),o=n(4289);e.exports=function(){var e=r();return o(Object,{is:e},{is:function(){return Object.is!==e}}),e}},8987:(e,t,n)=>{"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n(1414),l=Object.prototype.propertyIsEnumerable,s=!l.call({toString:null},"toString"),c=l.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{p(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),r=a(e),l=t&&"[object String]"===i.call(e),f=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=c&&n;if(l&&e.length>0&&!o.call(e,0))for(var m=0;m<e.length;++m)f.push(String(m));if(r&&e.length>0)for(var g=0;g<e.length;++g)f.push(String(g));else for(var v in e)h&&"prototype"===v||!o.call(e,v)||f.push(String(v));if(s)for(var y=function(e){if("undefined"==typeof window||!d)return p(e);try{return p(e)}catch(e){return!1}}(e),b=0;b<u.length;++b)y&&"constructor"===u[b]||!o.call(e,u[b])||f.push(u[b]);return f}}e.exports=r},2215:(e,t,n)=>{"use strict";var r=Array.prototype.slice,o=n(1414),i=Object.keys,a=i?function(e){return i(e)}:n(8987),l=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return o(e)?l(r.call(e)):l(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},1414:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},2837:(e,t,n)=>{"use strict";var r=n(2215),o=n(5419)(),i=n(1924),a=Object,l=i("Array.prototype.push"),s=i("Object.prototype.propertyIsEnumerable"),c=o?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var n=a(e);if(1===arguments.length)return n;for(var i=1;i<arguments.length;++i){var u=a(arguments[i]),p=r(u),f=o&&(Object.getOwnPropertySymbols||c);if(f)for(var d=f(u),h=0;h<d.length;++h){var m=d[h];s(u,m)&&l(p,m)}for(var g=0;g<p.length;++g){var v=p[g];if(s(u,v)){var y=u[v];n[v]=y}}}return n}},3533:(e,t,n)=>{"use strict";var r=n(4289),o=n(5559),i=n(2837),a=n(8162),l=n(4489),s=o.apply(a()),c=function(e,t){return s(Object,arguments)};r(c,{getPolyfill:a,implementation:i,shim:l}),e.exports=c},8162:(e,t,n)=>{"use strict";var r=n(2837);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r<t.length;++r)n[t[r]]=t[r];var o=Object.assign({},n),i="";for(var a in o)i+=a;return e!==i}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?r:Object.assign:r}},4489:(e,t,n)=>{"use strict";var r=n(4289),o=n(8162);e.exports=function(){var e=o();return r(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e}},3513:(e,t,n)=>{"use strict";var r=n(1897),o=n(1924),i=o("Object.prototype.propertyIsEnumerable"),a=o("Array.prototype.push");e.exports=function(e){var t=r(e),n=[];for(var o in t)i(t,o)&&a(n,t[o]);return n}},5869:(e,t,n)=>{"use strict";var r=n(4289),o=n(5559),i=n(3513),a=n(7164),l=n(6970),s=o(a(),Object);r(s,{getPolyfill:a,implementation:i,shim:l}),e.exports=s},7164:(e,t,n)=>{"use strict";var r=n(3513);e.exports=function(){return"function"==typeof Object.values?Object.values:r}},6970:(e,t,n)=>{"use strict";var r=n(7164),o=n(4289);e.exports=function(){var e=r();return o(Object,{values:e},{values:function(){return Object.values!==e}}),e}},4779:(e,t,n)=>{var r=n(6173);e.exports=function e(t,n,o){return r(n)||(o=n||o,n=[]),o=o||{},t instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(t,n):r(t)?function(t,n,r){for(var o=[],i=0;i<t.length;i++)o.push(e(t[i],n,r).source);return u(new RegExp("(?:"+o.join("|")+")",p(r)),n)}(t,n,o):function(e,t,n){return f(i(e,n),t,n)}(t,n,o)},e.exports.parse=i,e.exports.compile=function(e,t){return l(i(e,t),t)},e.exports.tokensToFunction=l,e.exports.tokensToRegExp=f;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,a=0,l="",u=t&&t.delimiter||"/";null!=(n=o.exec(e));){var p=n[0],f=n[1],d=n.index;if(l+=e.slice(a,d),a=d+p.length,f)l+=f[1];else{var h=e[a],m=n[2],g=n[3],v=n[4],y=n[5],b=n[6],w=n[7];l&&(r.push(l),l="");var E=null!=m&&null!=h&&h!==m,C="+"===b||"*"===b,k="?"===b||"*"===b,_=n[2]||u,S=v||y;r.push({name:g||i++,prefix:m||"",delimiter:_,optional:k,repeat:C,partial:E,asterisk:!!w,pattern:S?c(S):w?".*":"[^"+s(_)+"]+?"})}}return a<e.length&&(l+=e.substr(a)),l&&r.push(l),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function l(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"==typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",p(t)));return function(t,o){for(var i="",l=t||{},s=(o||{}).pretty?a:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!=typeof u){var p,f=l[u.name];if(null==f){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(f)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var d=0;d<f.length;d++){if(p=s(f[d]),!n[c].test(p))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(p)+"`");i+=(0===d?u.prefix:u.delimiter)+p}}else{if(p=u.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):s(f),!n[c].test(p))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+p+'"');i+=u.prefix+p}}else i+=u}return i}}function s(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function p(e){return e&&e.sensitive?"":"i"}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",l=0;l<e.length;l++){var c=e[l];if("string"==typeof c)a+=s(c);else{var f=s(c.prefix),d="(?:"+c.pattern+")";t.push(c),c.repeat&&(d+="(?:"+f+d+")*"),a+=d=c.optional?c.partial?f+"("+d+")?":"(?:"+f+"("+d+"))?":f+"("+d+")"}}var h=s(n.delimiter||"/"),m=a.slice(-h.length)===h;return o||(a=(m?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=i?"$":o&&m?"":"(?="+h+"|$)",u(new RegExp("^"+a,p(n)),t)}},6173:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},2703:(e,t,n)=>{"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5697:(e,t,n)=>{e.exports=n(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9921:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case p:case i:case l:case a:case d:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case s:return e;default:return t}}case o:return t}}}function C(e){return E(e)===p}t.AsyncMode=u,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=s,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=d,t.isAsyncMode=function(e){return C(e)||E(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===i},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===l},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===l||e===a||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=E},9864:(e,t,n)=>{"use strict";e.exports=n(9921)},6428:(e,t,n)=>{"use strict";var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=u(n(9196)),i=u(n(5697)),a=n(8341),l=n(7734),s=u(n(5869)),c=u(n(2483));function u(e){return e&&e.__esModule?e:{default:e}}var p={BLOCK:"block",FLEX:"flex",INLINE:"inline",INLINE_BLOCK:"inline-block",CONTENTS:"contents"},f=(0,a.forbidExtraProps)({children:i.default.node.isRequired,onOutsideClick:i.default.func.isRequired,disabled:i.default.bool,useCapture:i.default.bool,display:i.default.oneOf((0,s.default)(p))}),d={disabled:!1,useCapture:!0,display:p.BLOCK},h=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r)));return i.onMouseDown=i.onMouseDown.bind(i),i.onMouseUp=i.onMouseUp.bind(i),i.setChildNodeRef=i.setChildNodeRef.bind(i),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.disabled,n=e.useCapture;t||this.addMouseDownEventListener(n)}},{key:"componentDidUpdate",value:function(e){var t=e.disabled,n=this.props,r=n.disabled,o=n.useCapture;t!==r&&(r?this.removeEventListeners():this.addMouseDownEventListener(o))}},{key:"componentWillUnmount",value:function(){this.removeEventListeners()}},{key:"onMouseDown",value:function(e){var t=this.props.useCapture;this.childNode&&(0,c.default)(this.childNode,e.target)||(this.removeMouseUp&&(this.removeMouseUp(),this.removeMouseUp=null),this.removeMouseUp=(0,l.addEventListener)(document,"mouseup",this.onMouseUp,{capture:t}))}},{key:"onMouseUp",value:function(e){var t=this.props.onOutsideClick,n=this.childNode&&(0,c.default)(this.childNode,e.target);this.removeMouseUp&&(this.removeMouseUp(),this.removeMouseUp=null),n||t(e)}},{key:"setChildNodeRef",value:function(e){this.childNode=e}},{key:"addMouseDownEventListener",value:function(e){this.removeMouseDown=(0,l.addEventListener)(document,"mousedown",this.onMouseDown,{capture:e})}},{key:"removeEventListeners",value:function(){this.removeMouseDown&&this.removeMouseDown(),this.removeMouseUp&&this.removeMouseUp()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.display;return o.default.createElement("div",{ref:this.setChildNodeRef,style:n!==p.BLOCK&&(0,s.default)(p).includes(n)?{display:n}:void 0},t)}}]),t}(o.default.Component);t.default=h,h.propTypes=f,h.defaultProps=d},9834:(e,t,n)=>{e.exports=n(6428)},7522:(e,t,n)=>{"use strict";n.d(t,{uT:()=>Se});var r=n(3366),o=n(1721);function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var a=n(7462),l=n(9196),s=n.n(l);const c=window.ReactDOM;var u=n.n(c),p=void 0,f=void 0,d=[],h=function(e){return"undefined"!=typeof window&&window.requestAnimationFrame(e)},m=void 0,g=function(){return Date.now()},v=void 0,y=function(){function e(){}var t=e.prototype;return t.attach=function(){},t.detach=function(){},t.getValue=function(){},t.getAnimatedValue=function(){return this.getValue()},t.addChild=function(e){},t.removeChild=function(e){},t.getChildren=function(){return[]},e}(),b=function(e){return Object.keys(e).map((function(t){return e[t]}))},w=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).children=[],t.getChildren=function(){return t.children},t.getPayload=function(e){return void 0===e&&(e=void 0),void 0!==e&&t.payload?t.payload[e]:t.payload||i(i(t))},t}(0,o.Z)(t,e);var n=t.prototype;return n.addChild=function(e){0===this.children.length&&this.attach(),this.children.push(e)},n.removeChild=function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()},t}(y),E=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload=[],t.getAnimatedValue=function(){return t.getValue()},t.attach=function(){return t.payload.forEach((function(e){return e instanceof y&&e.addChild(i(i(t)))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof y&&e.removeChild(i(i(t)))}))},t}return(0,o.Z)(t,e),t}(w),C=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload={},t.getAnimatedValue=function(){return t.getValue(!0)},t.attach=function(){return b(t.payload).forEach((function(e){return e instanceof y&&e.addChild(i(i(t)))}))},t.detach=function(){return b(t.payload).forEach((function(e){return e instanceof y&&e.removeChild(i(i(t)))}))},t}return(0,o.Z)(t,e),t.prototype.getValue=function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof y)&&(t[n]=r instanceof y?r[e?"getAnimatedValue":"getValue"]():r)}return t},t}(w),k=function(e){function t(t){var n;return n=e.call(this)||this,!(t=t||{}).transform||t.transform instanceof y||(t=f.transform(t)),n.payload=t,n}return(0,o.Z)(t,e),t}(C),_={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},S=function(){function e(){}return e.create=function(t,n,r){if("function"==typeof t)return t;if(m&&t.output&&"string"==typeof t.output[0])return m(t);if(Array.isArray(t))return e.create({range:t,output:n,extrapolate:r||"extend"});var o=t.output,i=t.range||[0,1],a=t.easing||function(e){return e},l="extend",s=t.map;void 0!==t.extrapolateLeft?l=t.extrapolateLeft:void 0!==t.extrapolate&&(l=t.extrapolate);var c="extend";return void 0!==t.extrapolateRight?c=t.extrapolateRight:void 0!==t.extrapolate&&(c=t.extrapolate),function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,l,s){var c=s?s(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===l)return c;"clamp"===l&&(c=n)}return r===o?r:t===n?e<=t?r:o:(t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t),c=i(c),r===-1/0?c=-c:o===1/0?c+=r:c=c*(o-r)+r,c)}(e,i[t],i[t+1],o[t],o[t+1],a,l,c,s)}},e}(),x="[-+]?\\d*\\.?\\d+",O=x+"%";function N(){return"\\(\\s*("+Array.prototype.slice.call(arguments).join(")\\s*,\\s*(")+")\\s*\\)"}var A=new RegExp("rgb"+N(x,x,x)),P=new RegExp("rgba"+N(x,x,x,x)),j=new RegExp("hsl"+N(x,O,O)),T=new RegExp("hsla"+N(x,O,O,x)),M=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,L=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,R=/^#([0-9a-fA-F]{6})$/,D=/^#([0-9a-fA-F]{8})$/;function B(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function F(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=B(o,r,e+1/3),a=B(o,r,e),l=B(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function I(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function z(e){return(parseFloat(e)%360+360)%360/360}function U(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function V(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function Z(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=R.exec(t))?parseInt(n[1]+"ff",16)>>>0:_.hasOwnProperty(t)?_[t]:(n=A.exec(t))?(I(n[1])<<24|I(n[2])<<16|I(n[3])<<8|255)>>>0:(n=P.exec(t))?(I(n[1])<<24|I(n[2])<<16|I(n[3])<<8|U(n[4]))>>>0:(n=M.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=D.exec(t))?parseInt(n[1],16)>>>0:(n=L.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=j.exec(t))?(255|F(z(n[1]),V(n[2]),V(n[3])))>>>0:(n=T.exec(t))?(F(z(n[1]),V(n[2]),V(n[3]))|U(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var H=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,$=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,W=new RegExp("("+Object.keys(_).join("|")+")","g"),K=function(e){function t(n,r,o){var a;return(a=e.call(this)||this).getValue=function(){var e;return(e=a).calc.apply(e,a.payload.map((function(e){return e.getValue()})))},a.updateConfig=function(e,t){return a.calc=S.create(e,t)},a.interpolate=function(e,n){return new t(i(i(a)),e,n)},a.payload=n instanceof E&&!n.updateConfig?n.payload:Array.isArray(n)?n:[n],a.calc=S.create(r,o),a}return(0,o.Z)(t,e),t}(E);function q(e,t){"function"==typeof e.update?t.add(e):e.getChildren().forEach((function(e){return q(e,t)}))}var G=function(e){function t(t){var n;return(n=e.call(this)||this).setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.getValue=function(){return n.value},n.updateStyles=function(){return q(i(i(n)),n.animatedStyles)},n.updateValue=function(e){return n.flush(n.value=e)},n.interpolate=function(e,t){return new K(i(i(n)),e,t)},n.value=t,n.animatedStyles=new Set,n.done=!1,n.startPosition=t,n.lastPosition=t,n.lastVelocity=void 0,n.lastTime=void 0,n.controller=void 0,n}(0,o.Z)(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&this.updateStyles(),this.animatedStyles.forEach((function(e){return e.update()}))},n.prepare=function(e){void 0===this.controller&&(this.controller=e),this.controller===e&&(this.startPosition=this.value,this.lastPosition=this.value,this.lastVelocity=e.isActive?this.lastVelocity:void 0,this.lastTime=e.isActive?this.lastTime:void 0,this.done=!1,this.animatedStyles.clear())},t}(w),Y=function(e){function t(t){var n;return(n=e.call(this)||this).setValue=function(e,t){void 0===t&&(t=!0),Array.isArray(e)?e.length===n.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):n.payload.forEach((function(r,o){return n.payload[o].setValue(e,t)}))},n.getValue=function(){return n.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new K(i(i(n)),e,t)},n.payload=t.map((function(e){return new G(e)})),n}return(0,o.Z)(t,e),t}(E);function J(e,t){return null==e?t:e}function Q(e){return void 0!==e?Array.isArray(e)?e:[e]:[]}function X(e,t){if(typeof e!=typeof t)return!1;if("string"==typeof e||"number"==typeof e)return e===t;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return void 0!==n||e===t}function ee(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e}function te(e){return Object.keys(e).map((function(t){return e[t]}))}function ne(e){var t=function(e){return e.to,e.from,e.config,e.native,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.impl,e.inject,e.delay,e.attach,e.destroyed,e.interpolateTo,e.autoStart,e.ref,(0,r.Z)(e,["to","from","config","native","onStart","onRest","onFrame","children","reset","reverse","force","immediate","impl","inject","delay","attach","destroyed","interpolateTo","autoStart","ref"])}(e),n=Object.keys(e).reduce((function(n,r){var o;return void 0!==t[r]?n:(0,a.Z)({},n,((o={})[r]=e[r],o))}),{});return(0,a.Z)({to:t},n)}function re(e,t){var n,r=t[0],o=t[1];return(0,a.Z)({},e,((n={})[r]=new(Array.isArray(o)?Y:G)(o),n))}function oe(e){var t=e.from,n=e.to,r=e.native,o=Object.entries((0,a.Z)({},t,n));return r?o.reduce(re,{}):(0,a.Z)({},t,n)}function ie(e,t){return t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e}var ae=function(e){return"auto"===e},le={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},se=["Webkit","Ms","Moz","O"];function ce(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||le.hasOwnProperty(e)&&le[e]?(""+t).trim():t+"px"}le=Object.keys(le).reduce((function(e,t){return se.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),le);var ue={};v=function(e){return new k(e)},m=function(e){var t=e.output.map((function(e){return e.replace($,Z)})).map((function(e){return e.replace(W,Z)})),n=t[0].match(H).map((function(){return[]}));t.forEach((function(e){e.match(H).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(H).map((function(t,r){return S.create((0,a.Z)({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(H,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}},d=_,p=function(e,t){var n=e.from,r=e.to,o=e.children;if(te(r).some(ae)||te(n).some(ae)){var i=o(oe(e));if(i){Array.isArray(i)&&(i={type:"div",props:{children:i}});var l=i.props.style;return s().createElement(i.type,(0,a.Z)({key:i.key?i.key:void 0},i.props,{style:(0,a.Z)({},l,{position:"absolute",visibility:"hidden"}),ref:function(o){if(o){var i,l,s=u().findDOMNode(o),c=getComputedStyle(s);if("border-box"===c.boxSizing)i=s.offsetWidth,l=s.offsetHeight;else{var p=parseFloat(c.paddingLeft||0)+parseFloat(c.paddingRight||0),f=parseFloat(c.paddingTop||0)+parseFloat(c.paddingBottom||0),d=parseFloat(c.borderLeftWidth||0)+parseFloat(c.borderRightWidth||0),h=parseFloat(c.borderTopWidth||0)+parseFloat(c.borderBottomWidth||0);i=s.offsetWidth-p-d,l=s.offsetHeight-f-h}var m=function(e,t){return function(n,r){var o,i=r[0],l=r[1];return(0,a.Z)({},n,((o={})[i]="auto"===l?~i.indexOf("height")?t:e:l,o))}}(i,l);t((0,a.Z)({},e,{from:Object.entries(n).reduce(m,n),to:Object.entries(r).reduce(m,r)}))}}}))}}},function(e,t){f={fn:e,transform:t}}((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,o=t.children,i=t.scrollTop,a=t.scrollLeft,l=(0,r.Z)(t,["style","children","scrollTop","scrollLeft"]);for(var s in void 0!==i&&(e.scrollTop=i),void 0!==a&&(e.scrollLeft=a),void 0!==o&&(e.textContent=o),n)if(n.hasOwnProperty(s)){var c=0===s.indexOf("--"),u=ce(s,n[s],c);"float"===s&&(s="cssFloat"),c?e.style.setProperty(s,u):e.style[s]=u}for(var p in l){var f=ue[p]||(ue[p]=p.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(f)&&e.setAttribute(f,l[p])}}),(function(e){return e}));var pe=!1,fe=new Set,de=function e(){var t=g(),n=fe,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}for(var a=i,l=!0,s=!0,c=0;c<a.configs.length;c++){for(var u=a.configs[c],p=void 0,f=void 0,d=0;d<u.animatedValues.length;d++){var m=u.animatedValues[d];if(!m.done){var v=u.fromValues[d],b=u.toValues[d],w=m.lastPosition,E=b instanceof y,C=Array.isArray(u.initialVelocity)?u.initialVelocity[d]:u.initialVelocity;if(E&&(b=b.getValue()),u.immediate||!E&&!u.decay&&v===b)m.updateValue(b),m.done=!0;else if(u.delay&&t-a.startTime<u.delay)l=!1;else if(s=!1,"string"!=typeof v&&"string"!=typeof b){if(void 0!==u.duration)w=v+u.easing((t-a.startTime-u.delay)/u.duration)*(b-v),p=t>=a.startTime+u.delay+u.duration;else if(u.decay)w=v+C/(1-.998)*(1-Math.exp(-(1-.998)*(t-a.startTime))),(p=Math.abs(m.lastPosition-w)<.1)&&(b=w);else{f=void 0!==m.lastTime?m.lastTime:t,C=void 0!==m.lastVelocity?m.lastVelocity:u.initialVelocity,t>f+64&&(f=t);for(var k=Math.floor(t-f),_=0;_<k;++_)w+=1*(C+=(-u.tension*(w-b)+-u.friction*C)/u.mass*1/1e3)/1e3;var S=!(!u.clamp||0===u.tension)&&(v<b?w>b:w<b),x=Math.abs(C)<=u.precision,O=0===u.tension||Math.abs(b-w)<=u.precision;p=S||x&&O,m.lastVelocity=C,m.lastTime=t}E&&!u.toValues[d].done&&(p=!1),p?(m.value!==b&&(w=b),m.done=!0):l=!1,m.updateValue(w),m.lastPosition=w}else m.updateValue(b),m.done=!0}}!a.props.onFrame&&a.props.native||(a.animatedProps[u.name]=u.interpolation.getValue())}!a.props.onFrame&&a.props.native||(!a.props.native&&a.onUpdate&&a.onUpdate(),a.props.onFrame&&a.props.onFrame(a.animatedProps)),l&&(fe.delete(a),a.debouncedOnEnd({finished:!0,noChange:s}))}fe.size?h(e):pe=!1},he=function(e){fe.has(e)&&fe.delete(e)},me=function(){function e(e,t){var n=this;void 0===t&&(t={native:!0,interpolateTo:!0,autoStart:!0}),this.getValues=function(){return n.props.native?n.interpolations:n.animatedProps},this.dependents=new Set,this.isActive=!1,this.hasChanged=!1,this.props={},this.merged={},this.animations={},this.interpolations={},this.animatedProps={},this.configs=[],this.frame=void 0,this.startTime=void 0,this.lastTime=void 0,this.update((0,a.Z)({},e,t))}var t=e.prototype;return t.update=function(e){var t=this;this.props=(0,a.Z)({},this.props,e);var n=this.props.interpolateTo?ne(this.props):this.props,r=n.from,o=void 0===r?{}:r,i=n.to,l=void 0===i?{}:i,s=n.config,c=void 0===s?{}:s,u=n.delay,p=void 0===u?0:u,f=n.reverse,h=n.attach,m=n.reset,g=n.immediate,v=n.autoStart,y=n.ref;if(f){var b=[l,o];o=b[0],l=b[1]}this.hasChanged=!1;var w=h&&h(this),E=m?{}:this.merged;if(this.merged=(0,a.Z)({},o,E,l),this.animations=Object.entries(this.merged).reduce((function(e,n,r){var i,l,s,u=n[0],f=n[1],h=!m&&e[u]||{},v="number"==typeof f,y="string"==typeof f&&!f.startsWith("#")&&!/\d/.test(f)&&!d[f],b=!v&&!y&&Array.isArray(f),E=void 0!==o[u]?o[u]:f,C=v||b||y?f:1,k=ee(c,u);if(w&&(C=w.animations[u].parent),void 0===k.decay&&X(h.changes,f))return e;if(t.hasChanged=!0,v||y)l=s=h.parent||new G(E);else if(b)l=s=h.parent||new Y(E);else{var _=h.interpolation&&h.interpolation.calc(h.parent.value);h.parent?(l=h.parent).setValue(0,!1):l=new G(0);var S={output:[void 0!==_?_:E,f]};h.interpolation?(s=h.interpolation,h.interpolation.updateConfig(S)):s=l.interpolate(S)}ee(g,u)&&l.setValue(f,!1);var x=Q(l.getPayload());return x.forEach((function(e){return e.prepare(t)})),(0,a.Z)({},e,((i={})[u]=(0,a.Z)({},h,{name:u,parent:l,interpolation:s,animatedValues:x,changes:f,fromValues:Q(l.getValue()),toValues:Q(w?C.getPayload():C),immediate:ee(g,u),delay:J(k.delay,p||0),initialVelocity:J(k.velocity,0),clamp:J(k.clamp,!1),precision:J(k.precision,.01),tension:J(k.tension,170),friction:J(k.friction,26),mass:J(k.mass,1),duration:k.duration,easing:J(k.easing,(function(e){return e})),decay:k.decay}),i))}),this.animations),this.hasChanged)for(var C in this.configs=te(this.animations),this.animatedProps={},this.interpolations={},this.animations)this.interpolations[C]=this.animations[C].interpolation,this.animatedProps[C]=this.animations[C].interpolation.getValue();for(var k=arguments.length,_=new Array(k>1?k-1:0),S=1;S<k;S++)_[S-1]=arguments[S];y||!v&&!_.length||this.start.apply(this,_);var x=_[0],O=_[1];return this.onEnd="function"==typeof x&&x,this.onUpdate=O,this.getValues()},t.start=function(e,t){var n=this;return this.startTime=g(),this.isActive&&this.stop(),this.isActive=!0,this.onEnd="function"==typeof e&&e,this.onUpdate=t,this.props.onStart&&this.props.onStart(),this,fe.has(this)||(fe.add(this),pe||h(de),pe=!0),new Promise((function(e){return n.resolve=e}))},t.stop=function(e){void 0===e&&(e=!1),e&&te(this.animations).forEach((function(e){return e.changes=void 0})),this.debouncedOnEnd({finished:e})},t.destroy=function(){he(this),this.props={},this.merged={},this.animations={},this.interpolations={},this.animatedProps={},this.configs=[]},t.debouncedOnEnd=function(e){he(this),this.isActive=!1;var t=this.onEnd;this.onEnd=null,t&&t(e),this.resolve&&this.resolve(),this.resolve=null},e}(),ge=function(e){function t(t,n){var r;return r=e.call(this)||this,t.style&&(t=(0,a.Z)({},t,{style:v(t.style)})),r.payload=t,r.update=n,r.attach(),r}return(0,o.Z)(t,e),t}(C);function ve(e){var t=function(t){function n(e){var n;return(n=t.call(this)||this).callback=function(){n.node&&!1===f.fn(n.node,n.propsAnimated.getAnimatedValue(),i(i(n)))&&n.forceUpdate()},n.attachProps(e),n}(0,o.Z)(n,t);var l=n.prototype;return l.componentWillUnmount=function(){this.propsAnimated&&this.propsAnimated.detach()},l.setNativeProps=function(e){!1===f.fn(this.node,e,this)&&this.forceUpdate()},l.attachProps=function(e){e.forwardRef;var t=(0,r.Z)(e,["forwardRef"]),n=this.propsAnimated;this.propsAnimated=new ge(t,this.callback),n&&n.detach()},l.shouldComponentUpdate=function(e){var t=e.style,n=(0,r.Z)(e,["style"]),o=this.props,i=o.style;return!(X((0,r.Z)(o,["style"]),n)&&X(i,t)||(this.attachProps(e),0))},l.render=function(){var t=this,n=this.propsAnimated.getValue(),o=(n.scrollTop,n.scrollLeft,(0,r.Z)(n,["scrollTop","scrollLeft"]));return s().createElement(e,(0,a.Z)({},o,{ref:function(e){return t.node=ie(e,t.props.forwardRef)}}))},n}(s().Component);return s().forwardRef((function(e,n){return s().createElement(t,(0,a.Z)({},e,{forwardRef:n}))}))}var ye=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={lastProps:{from:{},to:{}},propsChanged:!1,internal:!1},t.controller=new me(null,null),t.didUpdate=!1,t.didInject=!1,t.finished=!0,t.start=function(){t.finished=!1;var e=t.mounted;t.controller.start((function(n){return t.finish((0,a.Z)({},n,{wasMounted:e}))}),t.update)},t.stop=function(){return t.controller.stop(!0)},t.update=function(){return t.mounted&&t.setState({internal:!0})},t.finish=function(e){var n=e.finished,r=e.noChange,o=e.wasMounted;t.finished=!0,t.mounted&&n&&(!t.props.onRest||!o&&r||t.props.onRest(t.controller.merged),t.mounted&&t.didInject&&(t.afterInject=oe(t.props),t.setState({internal:!0})),t.mounted&&(t.didInject||t.props.after)&&t.setState({internal:!0}),t.didInject=!1)},t}(0,o.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.componentDidUpdate(),this.mounted=!0},n.componentWillUnmount=function(){this.mounted=!1,this.stop()},t.getDerivedStateFromProps=function(e,t){var n=t.internal,r=t.lastProps,o=e.from,i=e.to,a=e.reset,l=e.force;return{propsChanged:!X(i,r.to)||!X(o,r.from)||a&&!n||l&&!n,lastProps:e,internal:!1}},n.render=function(){var e=this,t=this.props.children,n=this.state.propsChanged;if(this.props.inject&&n&&!this.injectProps){var r=this.props.inject(this.props,(function(t){e.injectProps=t,e.setState({internal:!0})}));if(r)return r}(this.injectProps||n)&&(this.didInject=!1,this.injectProps?(this.controller.update(this.injectProps),this.didInject=!0):n&&this.controller.update(this.props),this.didUpdate=!0,this.afterInject=void 0,this.injectProps=void 0);var o=(0,a.Z)({},this.controller.getValues(),this.afterInject);return this.finished&&(o=(0,a.Z)({},o,this.props.after)),Object.keys(o).length?t(o):null},n.componentDidUpdate=function(){this.didUpdate&&this.start(),this.didUpdate=!1},t}(s().Component);ye.defaultProps={from:{},to:{},config:{tension:170,friction:26},native:!1,immediate:!1,reset:!1,force:!1,inject:p};var be=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).first=!0,t.instances=new Set,t.hook=function(e,n,r,o){return t.instances.add(e),(o?n===r-1:0===n)?void 0:Array.from(t.instances)[o?n+1:n-1]},t}(0,o.Z)(t,e);var n=t.prototype;return n.render=function(){var e=this,t=this.props,n=t.items,o=t.children,i=t.from,l=void 0===i?{}:i,c=t.initial,u=t.reverse,p=t.keys,f=t.delay,d=t.onRest,h=(0,r.Z)(t,["items","children","from","initial","reverse","keys","delay","onRest"]),m=Q(n);return Q(m).map((function(t,n){return s().createElement(ye,(0,a.Z)({onRest:0===n?d:null,key:"function"==typeof p?p(t):Q(p)[n],from:e.first&&void 0!==c?c||{}:l},h,{delay:0===n&&f||void 0,attach:function(t){return e.hook(t,n,m.length,u)},children:function(e){var r=o(t,n);return r?r(e):null}}))}))},n.componentDidUpdate=function(e){this.first=!1,e.items!==this.props.items&&this.instances.clear()},t}(s().PureComponent);be.defaultProps={keys:function(e){return e}};var we="__default",Ee=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).guid=0,t.state={props:{},resolve:function(){return null},last:!0,index:0},t.next=function(e,n,r){return void 0===n&&(n=!0),void 0===r&&(r=0),t.running=!0,new Promise((function(o){t.mounted&&t.setState((function(t){return{props:e,resolve:o,last:n,index:r}}),(function(){return t.running=!1}))}))},t}(0,o.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.componentDidUpdate({})},n.componentWillUnmount=function(){this.mounted=!1},n.componentDidUpdate=function(e){var t=this,n=this.props,r=n.states,o=n.filter,i=n.state;(e.state!==this.props.state||this.props.reset&&!this.running||!X(r[i],e.states[e.state]))&&r&&i&&r[i]&&function(){var e=++t.guid,n=r[i];if(n)if(Array.isArray(n))for(var a=Promise.resolve(),l=function(r){var i=r,l=n[i],s=i===n.length-1;a=a.then((function(){return e===t.guid&&t.next(o(l),s,i)}))},s=0;s<n.length;s++)l(s);else if("function"==typeof n){var c=0;n((function(n,r){return void 0===r&&(r=!1),e===t.guid&&t.next(o(n),r,c++)}),(function(){return h((function(){return t.instance&&t.instance.stop()}))}),t.props)}else t.next(o(r[i]))}()},n.render=function(){var e=this,t=this.state,n=t.props,o=t.resolve,i=t.last,l=t.index;if(!n||0===Object.keys(n).length)return null;var c=this.props,u=(c.state,c.filter,c.states,c.config),p=c.primitive,f=c.onRest,d=c.forwardRef,h=(0,r.Z)(c,["state","filter","states","config","primitive","onRest","forwardRef"]);return Array.isArray(u)&&(u=u[l]),s().createElement(p,(0,a.Z)({ref:function(t){return e.instance=ie(t,d)},config:u},h,n,{onRest:function(e){o(e),f&&i&&f(e)}}))},t}(s().PureComponent);Ee.defaultProps={state:we};var Ce=s().forwardRef((function(e,t){return s().createElement(Ee,(0,a.Z)({},e,{forwardRef:t}))}));Ce.create=function(e){return function(t,n){var r;return void 0===n&&(n=function(e){return e}),("function"==typeof t||Array.isArray(t))&&((r={})[we]=t,t=r),function(r){return s().createElement(Ee,(0,a.Z)({primitive:e,states:t,filter:n},r))}}},Ce.Spring=function(e){return Ce.create(ye)(e,ne)},Ce.Trail=function(e){return Ce.create(be)(e,ne)};var ke=0,_e=function(e){var t=e.items,n=e.keys,o=(0,r.Z)(e,["items","keys"]);return t=Q(void 0!==t?t:null),n="function"==typeof n?t.map(n):Q(n),(0,a.Z)({items:t,keys:n.map((function(e){return String(e)}))},o)},Se=function(e){(0,o.Z)(n,e);var t=n.prototype;function n(t){var n;return(n=e.call(this,t)||this).destroyItem=function(e,t,r){return function(o){var i=n.props,a=i.onRest,l=i.onDestroyed;n.mounted&&(l&&l(e),n.setState((function(e){return{deleted:e.deleted.filter((function(e){return e.key!==t}))}})),a&&a(e,r,o))}},n.state={first:!0,transitions:[],current:{},deleted:[],prevProps:t},n}return t.componentDidMount=function(){this.mounted=!0},t.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(e,t){var n=t.first,o=t.prevProps,i=(0,r.Z)(t,["first","prevProps"]),l=_e(e),s=l.items,c=l.keys,u=l.initial,p=l.from,f=l.enter,d=l.leave,h=l.update,m=l.trail,g=void 0===m?0:m,v=l.unique,y=l.config,b=_e(o),w=b.keys,E=b.items,C=(0,a.Z)({},i.current),k=[].concat(i.deleted),_=Object.keys(C),S=new Set(_),x=new Set(c),O=c.filter((function(e){return!S.has(e)})),N=i.transitions.filter((function(e){return!e.destroyed&&!x.has(e.originalKey)})).map((function(e){return e.originalKey})),A=c.filter((function(e){return S.has(e)})),P=0;O.forEach((function(e){v&&k.find((function(t){return t.originalKey===e}))&&(k=k.filter((function(t){return t.originalKey!==e})));var t=c.indexOf(e),r=s[t],o="enter";C[e]={state:o,originalKey:e,key:v?String(e):ke++,item:r,trail:P+=g,config:ee(y,r,o),from:ee(n&&void 0!==u?u||{}:p,r),to:ee(f,r)}})),N.forEach((function(e){var t=w.indexOf(e),n=E[t],r="leave";k.push((0,a.Z)({},C[e],{state:r,destroyed:!0,left:w[Math.max(0,t-1)],right:w[Math.min(w.length,t+1)],trail:P+=g,config:ee(y,n,r),to:ee(d,n)})),delete C[e]})),A.forEach((function(e){var t=c.indexOf(e),n=s[t],r="update";C[e]=(0,a.Z)({},C[e],{item:n,state:r,trail:P+=g,config:ee(y,n,r),to:ee(h,n)})}));var j=c.map((function(e){return C[e]}));return k.forEach((function(e){var t,n=e.left,o=e.right,i=(0,r.Z)(e,["left","right"]);-1!==(t=j.findIndex((function(e){return e.originalKey===n})))&&(t+=1),-1===t&&(t=j.findIndex((function(e){return e.originalKey===o}))),-1===t&&(t=k.findIndex((function(e){return e.originalKey===n}))),-1===t&&(t=k.findIndex((function(e){return e.originalKey===o}))),t=Math.max(0,t),j=[].concat(j.slice(0,t),[i],j.slice(t))})),{first:n&&0===O.length,transitions:j,current:C,deleted:k,prevProps:e}},t.render=function(){var e=this,t=this.props,n=(t.initial,t.from,t.enter,t.leave,t.update,t.onDestroyed,t.keys,t.items,t.onFrame),o=t.onRest,i=t.onStart,l=(t.trail,t.config,t.children),c=(t.unique,t.reset),u=(0,r.Z)(t,["initial","from","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","trail","config","children","unique","reset"]);return this.state.transitions.map((function(t,r){var p,f=t.state,d=t.key,h=t.item,m=t.from,g=t.to,v=t.trail,y=t.config,b=t.destroyed;return s().createElement(Ce,(0,a.Z)({reset:c&&"enter"===f,primitive:ye,state:f,filter:ne,states:(p={},p[f]=g,p),key:d,onRest:b?e.destroyItem(h,d,f):o&&function(e){return o(h,f,e)},onStart:i&&function(){return i(h,f)},onFrame:n&&function(e){return n(h,f,e)},delay:v,config:y},u,{from:m,children:function(e){var t=l(h,f,r);return t?t(e):null}}))}))},n}(s().PureComponent);Se.defaultProps={keys:function(e){return e},unique:!1,reset:!1},["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].reduce((function(e,t){return e[t]=ve(t),e}),ve)},3697:(e,t,n)=>{"use strict";var r=n(5972).functionsHaveConfigurableNames(),o=Object,i=TypeError;e.exports=function(){if(null!=this&&this!==o(this))throw new i("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.sticky&&(e+="y"),e},r&&Object.defineProperty&&Object.defineProperty(e.exports,"name",{value:"get flags"})},2847:(e,t,n)=>{"use strict";var r=n(4289),o=n(5559),i=n(3697),a=n(8437),l=n(2753),s=o(a());r(s,{getPolyfill:a,implementation:i,shim:l}),e.exports=s},8437:(e,t,n)=>{"use strict";var r=n(3697),o=n(4289).supportsDescriptors,i=Object.getOwnPropertyDescriptor;e.exports=function(){if(o&&"gim"===/a/gim.flags){var e=i(RegExp.prototype,"flags");if(e&&"function"==typeof e.get&&"boolean"==typeof RegExp.prototype.dotAll&&"boolean"==typeof RegExp.prototype.hasIndices){var t="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(n,"sticky",{get:function(){t+="y"}}),"dy"===t)return e.get}}return r}},2753:(e,t,n)=>{"use strict";var r=n(4289).supportsDescriptors,o=n(8437),i=Object.getOwnPropertyDescriptor,a=Object.defineProperty,l=TypeError,s=Object.getPrototypeOf,c=/a/;e.exports=function(){if(!r||!s)throw new l("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=o(),t=s(c),n=i(t,"flags");return n&&n.get===e||a(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},7478:(e,t,n)=>{"use strict";var r=n(210),o=n(1924),i=n(631),a=r("%TypeError%"),l=r("%WeakMap%",!0),s=r("%Map%",!0),c=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),p=o("WeakMap.prototype.has",!0),f=o("Map.prototype.get",!0),d=o("Map.prototype.set",!0),h=o("Map.prototype.has",!0),m=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+i(e))},get:function(r){if(l&&r&&("object"==typeof r||"function"==typeof r)){if(e)return c(e,r)}else if(s){if(t)return f(t,r)}else if(n)return function(e,t){var n=m(e,t);return n&&n.value}(n,r)},has:function(r){if(l&&r&&("object"==typeof r||"function"==typeof r)){if(e)return p(e,r)}else if(s){if(t)return h(t,r)}else if(n)return function(e,t){return!!m(e,t)}(n,r);return!1},set:function(r,o){l&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new l),u(e,r,o)):s?(t||(t=new s),d(t,r,o)):(n||(n={key:{},next:null}),function(e,t,n){var r=m(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,o))}};return r}},6399:e=>{e.exports=function(e,t,n){return function(r){if(e[0]===e[1]||t[0]===t[1])return t[0];var o=(t[1]-t[0])/(e[1]-e[0]),i=t[0]+o*(r-e[0]);return n?Math.min(t[1],Math.max(t[0],i)):i}}},6373:(e,t,n)=>{"use strict";var r=n(9496),o=SyntaxError,i="object"==typeof StopIteration?StopIteration:null;e.exports=function(e){if(!i)throw new o("this environment lacks StopIteration");r.set(e,"[[Done]]",!1);var t={next:function(){var e=r.get(this,"[[Iterator]]"),t=r.get(e,"[[Done]]");try{return{done:t,value:t?void 0:e.next()}}catch(t){if(r.set(e,"[[Done]]",!0),t!==i)throw t;return{done:!0,value:void 0}}}};return r.set(t,"[[Iterator]]",e),t}},8901:(e,t,n)=>{var r,o;n.amdD,r=[n(9567)],void 0===(o=function(e){return function(){var t,n,r,o=0,i="error",a="info",l="success",s="warning",c={clear:function(n,r){var o=h();t||u(o),p(n,o,r)||function(n){for(var r=t.children(),o=r.length-1;o>=0;o--)p(e(r[o]),n)}(o)},remove:function(n){var r=h();t||u(r),n&&0===e(":focus",n).length?m(n):t.children().length&&t.remove()},error:function(e,t,n){return d({type:i,iconClass:h().iconClasses.error,message:e,optionsOverride:n,title:t})},getContainer:u,info:function(e,t,n){return d({type:a,iconClass:h().iconClasses.info,message:e,optionsOverride:n,title:t})},options:{},subscribe:function(e){n=e},success:function(e,t,n){return d({type:l,iconClass:h().iconClasses.success,message:e,optionsOverride:n,title:t})},version:"2.1.4",warning:function(e,t,n){return d({type:s,iconClass:h().iconClasses.warning,message:e,optionsOverride:n,title:t})}};return c;function u(n,r){return n||(n=h()),(t=e("#"+n.containerId)).length||r&&(t=function(n){return(t=e("<div/>").attr("id",n.containerId).addClass(n.positionClass)).appendTo(e(n.target)),t}(n)),t}function p(t,n,r){var o=!(!r||!r.force)&&r.force;return!(!t||!o&&0!==e(":focus",t).length||(t[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){m(t)}}),0))}function f(e){n&&n(e)}function d(n){var i=h(),a=n.iconClass||i.iconClass;if(void 0!==n.optionsOverride&&(i=e.extend(i,n.optionsOverride),a=n.optionsOverride.iconClass||a),!function(e,t){if(e.preventDuplicates){if(t.message===r)return!0;r=t.message}return!1}(i,n)){o++,t=u(i,!0);var l=null,s=e("<div/>"),c=e("<div/>"),p=e("<div/>"),d=e("<div/>"),g=e(i.closeHtml),v={intervalId:null,hideEta:null,maxHideTime:null},y={toastId:o,state:"visible",startTime:new Date,options:i,map:n};return n.iconClass&&s.addClass(i.toastClass).addClass(a),function(){if(n.title){var e=n.title;i.escapeHtml&&(e=b(n.title)),c.append(e).addClass(i.titleClass),s.append(c)}}(),function(){if(n.message){var e=n.message;i.escapeHtml&&(e=b(n.message)),p.append(e).addClass(i.messageClass),s.append(p)}}(),i.closeButton&&(g.addClass(i.closeClass).attr("role","button"),s.prepend(g)),i.progressBar&&(d.addClass(i.progressClass),s.prepend(d)),i.rtl&&s.addClass("rtl"),i.newestOnTop?t.prepend(s):t.append(s),function(){var e="";switch(n.iconClass){case"toast-success":case"toast-info":e="polite";break;default:e="assertive"}s.attr("aria-live",e)}(),s.hide(),s[i.showMethod]({duration:i.showDuration,easing:i.showEasing,complete:i.onShown}),i.timeOut>0&&(l=setTimeout(w,i.timeOut),v.maxHideTime=parseFloat(i.timeOut),v.hideEta=(new Date).getTime()+v.maxHideTime,i.progressBar&&(v.intervalId=setInterval((function(){var e=(v.hideEta-(new Date).getTime())/v.maxHideTime*100;d.width(e+"%")}),10))),i.closeOnHover&&s.hover((function(){clearTimeout(l),v.hideEta=0,s.stop(!0,!0)[i.showMethod]({duration:i.showDuration,easing:i.showEasing})}),(function(){(i.timeOut>0||i.extendedTimeOut>0)&&(l=setTimeout(w,i.extendedTimeOut),v.maxHideTime=parseFloat(i.extendedTimeOut),v.hideEta=(new Date).getTime()+v.maxHideTime)})),!i.onclick&&i.tapToDismiss&&s.click(w),i.closeButton&&g&&g.click((function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),i.onCloseClick&&i.onCloseClick(e),w(!0)})),i.onclick&&s.click((function(e){i.onclick(e),w()})),f(y),i.debug&&console&&console.log(y),s}function b(e){return null==e&&(e=""),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function w(t){var n=t&&!1!==i.closeMethod?i.closeMethod:i.hideMethod,r=t&&!1!==i.closeDuration?i.closeDuration:i.hideDuration,o=t&&!1!==i.closeEasing?i.closeEasing:i.hideEasing;if(!e(":focus",s).length||t)return clearTimeout(v.intervalId),s[n]({duration:r,easing:o,complete:function(){m(s),clearTimeout(l),i.onHidden&&"hidden"!==y.state&&i.onHidden(),y.state="hidden",y.endTime=new Date,f(y)}})}}function h(){return e.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">×</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},c.options)}function m(e){t||(t=u()),e.is(":visible")||(e.remove(),e=null,0===t.children().length&&(t.remove(),r=void 0))}}()}.apply(t,r))||(e.exports=o)},1742:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},3679:(e,t,n)=>{"use strict";var r=n(9981),o=n(4578),i=n(6814),a=n(2636),l=n(3376);e.exports=function(e){return null==e||"object"!=typeof e&&"function"!=typeof e?null:r(e)?"String":o(e)?"Number":i(e)?"Boolean":a(e)?"Symbol":l(e)?"BigInt":void 0}},6430:(e,t,n)=>{"use strict";var r=n(4029),o=n(3083),i=n(1924),a=n(7296),l=i("Object.prototype.toString"),s=n(6410)(),c="undefined"==typeof globalThis?n.g:globalThis,u=o(),p=i("String.prototype.slice"),f={},d=Object.getPrototypeOf;s&&a&&d&&r(u,(function(e){if("function"==typeof c[e]){var t=new c[e];if(Symbol.toStringTag in t){var n=d(t),r=a(n,Symbol.toStringTag);if(!r){var o=d(n);r=a(o,Symbol.toStringTag)}f[e]=r.get}}}));var h=n(5692);e.exports=function(e){return!!h(e)&&(s&&Symbol.toStringTag in e?function(e){var t=!1;return r(f,(function(n,r){if(!t)try{var o=n.call(e);o===r&&(t=o)}catch(e){}})),t}(e):p(l(e),8,-1))}},9196:e=>{"use strict";e.exports=window.React},9567:e=>{"use strict";e.exports=window.jQuery},6989:e=>{"use strict";e.exports=window.wp.apiFetch},5609:e=>{"use strict";e.exports=window.wp.components},9307:e=>{"use strict";e.exports=window.wp.element},5736:e=>{"use strict";e.exports=window.wp.i18n},6483:e=>{"use strict";e.exports=window.wp.url},4654:()=>{},3083:(e,t,n)=>{"use strict";var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof o[r[t]]&&(e[e.length]=r[t]);return e}},1897:(e,t,n)=>{"use strict";e.exports=n(4559)},4559:(e,t,n)=>{"use strict";var r=n(210)("%TypeError%");e.exports=function(e,t){if(null==e)throw new r(t||"Cannot call method on "+e);return e}},3216:(e,t,n)=>{"use strict";var r=n(2584),o=n(6373);if(n(1405)()||n(5419)()){var i=Symbol.iterator;e.exports=function(e){return null!=e&&void 0!==e[i]?e[i]():r(e)?Array.prototype[i].call(e):void 0}}else{var a=n(5677),l=n(9981),s=n(210),c=s("%Map%",!0),u=s("%Set%",!0),p=n(1924),f=p("Array.prototype.push"),d=p("String.prototype.charCodeAt"),h=p("String.prototype.slice"),m=function(e){var t=0;return{next:function(){var n,r=t>=e.length;return r||(n=e[t],t+=1),{done:r,value:n}}}},g=function(e,t){if(a(e)||r(e))return m(e);if(l(e)){var n=0;return{next:function(){var t=function(e,t){if(t+1>=e.length)return t+1;var n=d(e,t);if(n<55296||n>56319)return t+1;var r=d(e,t+1);return r<56320||r>57343?t+1:t+2}(e,n),r=h(e,n,t);return n=t,{done:t>e.length,value:r}}}}return t&&void 0!==e["_es6-shim iterator_"]?e["_es6-shim iterator_"]():void 0};if(c||u){var v=n(8379),y=n(9572),b=p("Map.prototype.forEach",!0),w=p("Set.prototype.forEach",!0);if("undefined"==typeof process||!process.versions||!process.versions.node)var E=p("Map.prototype.iterator",!0),C=p("Set.prototype.iterator",!0);var k=p("Map.prototype.@@iterator",!0)||p("Map.prototype._es6-shim iterator_",!0),_=p("Set.prototype.@@iterator",!0)||p("Set.prototype._es6-shim iterator_",!0);e.exports=function(e){return function(e){if(v(e)){if(E)return o(E(e));if(k)return k(e);if(b){var t=[];return b(e,(function(e,n){f(t,[n,e])})),m(t)}}if(y(e)){if(C)return o(C(e));if(_)return _(e);if(w){var n=[];return w(e,(function(e){f(n,e)})),m(n)}}}(e)||g(e)}}else e.exports=function(e){if(null!=e)return g(e,!0)}}},3483:(e,t,n)=>{"use strict";var r=n(8379),o=n(9572),i=n(1718),a=n(5899);e.exports=function(e){if(e&&"object"==typeof e){if(r(e))return"Map";if(o(e))return"Set";if(i(e))return"WeakMap";if(a(e))return"WeakSet"}return!1}},7462:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},1721:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:()=>o})},3366:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:()=>r})},9050:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>Hn});var r={};n.r(r),n.d(r,{VERSION:()=>o,after:()=>Lt,all:()=>en,allKeys:()=>ge,any:()=>tn,assign:()=>Le,before:()=>Rt,bind:()=>Ct,bindAll:()=>St,chain:()=>yt,chunk:()=>In,clone:()=>Fe,collect:()=>qt,compact:()=>Nn,compose:()=>Mt,constant:()=>Q,contains:()=>nn,countBy:()=>vn,create:()=>Be,debounce:()=>Pt,default:()=>Vn,defaults:()=>Re,defer:()=>Nt,delay:()=>Ot,detect:()=>$t,difference:()=>Pn,drop:()=>xn,each:()=>Kt,escape:()=>at,every:()=>en,extend:()=>Me,extendOwn:()=>Le,filter:()=>Qt,find:()=>$t,findIndex:()=>It,findKey:()=>Bt,findLastIndex:()=>zt,findWhere:()=>Wt,first:()=>Sn,flatten:()=>An,foldl:()=>Yt,foldr:()=>Jt,forEach:()=>Kt,functions:()=>je,get:()=>Ze,groupBy:()=>mn,has:()=>He,head:()=>Sn,identity:()=>$e,include:()=>nn,includes:()=>nn,indexBy:()=>gn,indexOf:()=>Zt,initial:()=>kn,inject:()=>Yt,intersection:()=>Ln,invert:()=>Pe,invoke:()=>rn,isArguments:()=>G,isArray:()=>W,isArrayBuffer:()=>B,isBoolean:()=>N,isDataView:()=>$,isDate:()=>M,isElement:()=>A,isEmpty:()=>se,isEqual:()=>me,isError:()=>R,isFinite:()=>Y,isFunction:()=>z,isMap:()=>_e,isMatch:()=>ce,isNaN:()=>J,isNull:()=>x,isNumber:()=>T,isObject:()=>S,isRegExp:()=>L,isSet:()=>xe,isString:()=>j,isSymbol:()=>D,isTypedArray:()=>oe,isUndefined:()=>O,isWeakMap:()=>Se,isWeakSet:()=>Oe,iteratee:()=>Ye,keys:()=>le,last:()=>On,lastIndexOf:()=>Ht,map:()=>qt,mapObject:()=>Qe,matcher:()=>We,matches:()=>We,max:()=>ln,memoize:()=>xt,methods:()=>je,min:()=>sn,mixin:()=>Un,negate:()=>Tt,noop:()=>Xe,now:()=>rt,object:()=>Bn,omit:()=>Cn,once:()=>Dt,pairs:()=>Ae,partial:()=>Et,partition:()=>yn,pick:()=>En,pluck:()=>on,property:()=>Ke,propertyOf:()=>et,random:()=>nt,range:()=>Fn,reduce:()=>Yt,reduceRight:()=>Jt,reject:()=>Xt,rest:()=>xn,restArguments:()=>_,result:()=>mt,sample:()=>pn,select:()=>Qt,shuffle:()=>fn,size:()=>bn,some:()=>tn,sortBy:()=>dn,sortedIndex:()=>Ut,tail:()=>xn,take:()=>Sn,tap:()=>Ie,template:()=>ht,templateSettings:()=>st,throttle:()=>At,times:()=>tt,toArray:()=>un,toPath:()=>ze,transpose:()=>Rn,unescape:()=>lt,union:()=>Mn,uniq:()=>Tn,unique:()=>Tn,uniqueId:()=>vt,unzip:()=>Rn,values:()=>Ne,where:()=>an,without:()=>jn,wrap:()=>jt,zip:()=>Dn});var o="1.13.6",i="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},a=Array.prototype,l=Object.prototype,s="undefined"!=typeof Symbol?Symbol.prototype:null,c=a.push,u=a.slice,p=l.toString,f=l.hasOwnProperty,d="undefined"!=typeof ArrayBuffer,h="undefined"!=typeof DataView,m=Array.isArray,g=Object.keys,v=Object.create,y=d&&ArrayBuffer.isView,b=isNaN,w=isFinite,E=!{toString:null}.propertyIsEnumerable("toString"),C=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=Math.pow(2,53)-1;function _(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),o=0;o<n;o++)r[o]=arguments[o+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var i=Array(t+1);for(o=0;o<t;o++)i[o]=arguments[o];return i[t]=r,e.apply(this,i)}}function S(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function x(e){return null===e}function O(e){return void 0===e}function N(e){return!0===e||!1===e||"[object Boolean]"===p.call(e)}function A(e){return!(!e||1!==e.nodeType)}function P(e){var t="[object "+e+"]";return function(e){return p.call(e)===t}}const j=P("String"),T=P("Number"),M=P("Date"),L=P("RegExp"),R=P("Error"),D=P("Symbol"),B=P("ArrayBuffer");var F=P("Function"),I=i.document&&i.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof I&&(F=function(e){return"function"==typeof e||!1});const z=F,U=P("Object");var V=h&&U(new DataView(new ArrayBuffer(8))),Z="undefined"!=typeof Map&&U(new Map),H=P("DataView");const $=V?function(e){return null!=e&&z(e.getInt8)&&B(e.buffer)}:H,W=m||P("Array");function K(e,t){return null!=e&&f.call(e,t)}var q=P("Arguments");!function(){q(arguments)||(q=function(e){return K(e,"callee")})}();const G=q;function Y(e){return!D(e)&&w(e)&&!isNaN(parseFloat(e))}function J(e){return T(e)&&b(e)}function Q(e){return function(){return e}}function X(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=k}}function ee(e){return function(t){return null==t?void 0:t[e]}}const te=ee("byteLength"),ne=X(te);var re=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const oe=d?function(e){return y?y(e)&&!$(e):ne(e)&&re.test(p.call(e))}:Q(!1),ie=ee("length");function ae(e,t){t=function(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return!0===t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=C.length,r=e.constructor,o=z(r)&&r.prototype||l,i="constructor";for(K(e,i)&&!t.contains(i)&&t.push(i);n--;)(i=C[n])in e&&e[i]!==o[i]&&!t.contains(i)&&t.push(i)}function le(e){if(!S(e))return[];if(g)return g(e);var t=[];for(var n in e)K(e,n)&&t.push(n);return E&&ae(e,t),t}function se(e){if(null==e)return!0;var t=ie(e);return"number"==typeof t&&(W(e)||j(e)||G(e))?0===t:0===ie(le(e))}function ce(e,t){var n=le(t),r=n.length;if(null==e)return!r;for(var o=Object(e),i=0;i<r;i++){var a=n[i];if(t[a]!==o[a]||!(a in o))return!1}return!0}function ue(e){return e instanceof ue?e:this instanceof ue?void(this._wrapped=e):new ue(e)}function pe(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,te(e))}ue.VERSION=o,ue.prototype.value=function(){return this._wrapped},ue.prototype.valueOf=ue.prototype.toJSON=ue.prototype.value,ue.prototype.toString=function(){return String(this._wrapped)};var fe="[object DataView]";function de(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var o=typeof e;return("function"===o||"object"===o||"object"==typeof t)&&he(e,t,n,r)}function he(e,t,n,r){e instanceof ue&&(e=e._wrapped),t instanceof ue&&(t=t._wrapped);var o=p.call(e);if(o!==p.call(t))return!1;if(V&&"[object Object]"==o&&$(e)){if(!$(t))return!1;o=fe}switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return s.valueOf.call(e)===s.valueOf.call(t);case"[object ArrayBuffer]":case fe:return he(pe(e),pe(t),n,r)}var i="[object Array]"===o;if(!i&&oe(e)){if(te(e)!==te(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;i=!0}if(!i){if("object"!=typeof e||"object"!=typeof t)return!1;var a=e.constructor,l=t.constructor;if(a!==l&&!(z(a)&&a instanceof a&&z(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var c=(n=n||[]).length;c--;)if(n[c]===e)return r[c]===t;if(n.push(e),r.push(t),i){if((c=e.length)!==t.length)return!1;for(;c--;)if(!de(e[c],t[c],n,r))return!1}else{var u,f=le(e);if(c=f.length,le(t).length!==c)return!1;for(;c--;)if(!K(t,u=f[c])||!de(e[u],t[u],n,r))return!1}return n.pop(),r.pop(),!0}function me(e,t){return de(e,t)}function ge(e){if(!S(e))return[];var t=[];for(var n in e)t.push(n);return E&&ae(e,t),t}function ve(e){var t=ie(e);return function(n){if(null==n)return!1;var r=ge(n);if(ie(r))return!1;for(var o=0;o<t;o++)if(!z(n[e[o]]))return!1;return e!==Ce||!z(n[ye])}}var ye="forEach",be=["clear","delete"],we=["get","has","set"],Ee=be.concat(ye,we),Ce=be.concat(we),ke=["add"].concat(be,ye,"has");const _e=Z?ve(Ee):P("Map"),Se=Z?ve(Ce):P("WeakMap"),xe=Z?ve(ke):P("Set"),Oe=P("WeakSet");function Ne(e){for(var t=le(e),n=t.length,r=Array(n),o=0;o<n;o++)r[o]=e[t[o]];return r}function Ae(e){for(var t=le(e),n=t.length,r=Array(n),o=0;o<n;o++)r[o]=[t[o],e[t[o]]];return r}function Pe(e){for(var t={},n=le(e),r=0,o=n.length;r<o;r++)t[e[n[r]]]=n[r];return t}function je(e){var t=[];for(var n in e)z(e[n])&&t.push(n);return t.sort()}function Te(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var o=1;o<r;o++)for(var i=arguments[o],a=e(i),l=a.length,s=0;s<l;s++){var c=a[s];t&&void 0!==n[c]||(n[c]=i[c])}return n}}const Me=Te(ge),Le=Te(le),Re=Te(ge,!0);function De(e){if(!S(e))return{};if(v)return v(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function Be(e,t){var n=De(e);return t&&Le(n,t),n}function Fe(e){return S(e)?W(e)?e.slice():Me({},e):e}function Ie(e,t){return t(e),e}function ze(e){return W(e)?e:[e]}function Ue(e){return ue.toPath(e)}function Ve(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0}function Ze(e,t,n){var r=Ve(e,Ue(t));return O(r)?n:r}function He(e,t){for(var n=(t=Ue(t)).length,r=0;r<n;r++){var o=t[r];if(!K(e,o))return!1;e=e[o]}return!!n}function $e(e){return e}function We(e){return e=Le({},e),function(t){return ce(t,e)}}function Ke(e){return e=Ue(e),function(t){return Ve(t,e)}}function qe(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,i){return e.call(t,n,r,o,i)}}return function(){return e.apply(t,arguments)}}function Ge(e,t,n){return null==e?$e:z(e)?qe(e,t,n):S(e)&&!W(e)?We(e):Ke(e)}function Ye(e,t){return Ge(e,t,1/0)}function Je(e,t,n){return ue.iteratee!==Ye?ue.iteratee(e,t):Ge(e,t,n)}function Qe(e,t,n){t=Je(t,n);for(var r=le(e),o=r.length,i={},a=0;a<o;a++){var l=r[a];i[l]=t(e[l],l,e)}return i}function Xe(){}function et(e){return null==e?Xe:function(t){return Ze(e,t)}}function tt(e,t,n){var r=Array(Math.max(0,e));t=qe(t,n,1);for(var o=0;o<e;o++)r[o]=t(o);return r}function nt(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}ue.toPath=ze,ue.iteratee=Ye;const rt=Date.now||function(){return(new Date).getTime()};function ot(e){var t=function(t){return e[t]},n="(?:"+le(e).join("|")+")",r=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(o,t):e}}const it={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},at=ot(it),lt=ot(Pe(it)),st=ue.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var ct=/(.)^/,ut={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},pt=/\\|'|\r|\n|\u2028|\u2029/g;function ft(e){return"\\"+ut[e]}var dt=/^\s*(\w|\$)+\s*$/;function ht(e,t,n){!t&&n&&(t=n),t=Re({},t,ue.templateSettings);var r=RegExp([(t.escape||ct).source,(t.interpolate||ct).source,(t.evaluate||ct).source].join("|")+"|$","g"),o=0,i="__p+='";e.replace(r,(function(t,n,r,a,l){return i+=e.slice(o,l).replace(pt,ft),o=l+t.length,n?i+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(i+="';\n"+a+"\n__p+='"),t})),i+="';\n";var a,l=t.variable;if(l){if(!dt.test(l))throw new Error("variable is not a bare identifier: "+l)}else i="with(obj||{}){\n"+i+"}\n",l="obj";i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{a=new Function(l,"_",i)}catch(e){throw e.source=i,e}var s=function(e){return a.call(this,e,ue)};return s.source="function("+l+"){\n"+i+"}",s}function mt(e,t,n){var r=(t=Ue(t)).length;if(!r)return z(n)?n.call(e):n;for(var o=0;o<r;o++){var i=null==e?void 0:e[t[o]];void 0===i&&(i=n,o=r),e=z(i)?i.call(e):i}return e}var gt=0;function vt(e){var t=++gt+"";return e?e+t:t}function yt(e){var t=ue(e);return t._chain=!0,t}function bt(e,t,n,r,o){if(!(r instanceof t))return e.apply(n,o);var i=De(e.prototype),a=e.apply(i,o);return S(a)?a:i}var wt=_((function(e,t){var n=wt.placeholder,r=function(){for(var o=0,i=t.length,a=Array(i),l=0;l<i;l++)a[l]=t[l]===n?arguments[o++]:t[l];for(;o<arguments.length;)a.push(arguments[o++]);return bt(e,r,this,this,a)};return r}));wt.placeholder=ue;const Et=wt,Ct=_((function(e,t,n){if(!z(e))throw new TypeError("Bind must be called on a function");var r=_((function(o){return bt(e,r,t,this,n.concat(o))}));return r})),kt=X(ie);function _t(e,t,n,r){if(r=r||[],t||0===t){if(t<=0)return r.concat(e)}else t=1/0;for(var o=r.length,i=0,a=ie(e);i<a;i++){var l=e[i];if(kt(l)&&(W(l)||G(l)))if(t>1)_t(l,t-1,n,r),o=r.length;else for(var s=0,c=l.length;s<c;)r[o++]=l[s++];else n||(r[o++]=l)}return r}const St=_((function(e,t){var n=(t=_t(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=Ct(e[r],e)}return e}));function xt(e,t){var n=function(r){var o=n.cache,i=""+(t?t.apply(this,arguments):r);return K(o,i)||(o[i]=e.apply(this,arguments)),o[i]};return n.cache={},n}const Ot=_((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),Nt=Et(Ot,ue,1);function At(e,t,n){var r,o,i,a,l=0;n||(n={});var s=function(){l=!1===n.leading?0:rt(),r=null,a=e.apply(o,i),r||(o=i=null)},c=function(){var c=rt();l||!1!==n.leading||(l=c);var u=t-(c-l);return o=this,i=arguments,u<=0||u>t?(r&&(clearTimeout(r),r=null),l=c,a=e.apply(o,i),r||(o=i=null)):r||!1===n.trailing||(r=setTimeout(s,u)),a};return c.cancel=function(){clearTimeout(r),l=0,r=o=i=null},c}function Pt(e,t,n){var r,o,i,a,l,s=function(){var c=rt()-o;t>c?r=setTimeout(s,t-c):(r=null,n||(a=e.apply(l,i)),r||(i=l=null))},c=_((function(c){return l=this,i=c,o=rt(),r||(r=setTimeout(s,t),n&&(a=e.apply(l,i))),a}));return c.cancel=function(){clearTimeout(r),r=i=l=null},c}function jt(e,t){return Et(t,e)}function Tt(e){return function(){return!e.apply(this,arguments)}}function Mt(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function Lt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function Rt(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}const Dt=Et(Rt,2);function Bt(e,t,n){t=Je(t,n);for(var r,o=le(e),i=0,a=o.length;i<a;i++)if(t(e[r=o[i]],r,e))return r}function Ft(e){return function(t,n,r){n=Je(n,r);for(var o=ie(t),i=e>0?0:o-1;i>=0&&i<o;i+=e)if(n(t[i],i,t))return i;return-1}}const It=Ft(1),zt=Ft(-1);function Ut(e,t,n,r){for(var o=(n=Je(n,r,1))(t),i=0,a=ie(e);i<a;){var l=Math.floor((i+a)/2);n(e[l])<o?i=l+1:a=l}return i}function Vt(e,t,n){return function(r,o,i){var a=0,l=ie(r);if("number"==typeof i)e>0?a=i>=0?i:Math.max(i+l,a):l=i>=0?Math.min(i+1,l):i+l+1;else if(n&&i&&l)return r[i=n(r,o)]===o?i:-1;if(o!=o)return(i=t(u.call(r,a,l),J))>=0?i+a:-1;for(i=e>0?a:l-1;i>=0&&i<l;i+=e)if(r[i]===o)return i;return-1}}const Zt=Vt(1,It,Ut),Ht=Vt(-1,zt);function $t(e,t,n){var r=(kt(e)?It:Bt)(e,t,n);if(void 0!==r&&-1!==r)return e[r]}function Wt(e,t){return $t(e,We(t))}function Kt(e,t,n){var r,o;if(t=qe(t,n),kt(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else{var i=le(e);for(r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e)}return e}function qt(e,t,n){t=Je(t,n);for(var r=!kt(e)&&le(e),o=(r||e).length,i=Array(o),a=0;a<o;a++){var l=r?r[a]:a;i[a]=t(e[l],l,e)}return i}function Gt(e){return function(t,n,r,o){var i=arguments.length>=3;return function(t,n,r,o){var i=!kt(t)&&le(t),a=(i||t).length,l=e>0?0:a-1;for(o||(r=t[i?i[l]:l],l+=e);l>=0&&l<a;l+=e){var s=i?i[l]:l;r=n(r,t[s],s,t)}return r}(t,qe(n,o,4),r,i)}}const Yt=Gt(1),Jt=Gt(-1);function Qt(e,t,n){var r=[];return t=Je(t,n),Kt(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r}function Xt(e,t,n){return Qt(e,Tt(Je(t)),n)}function en(e,t,n){t=Je(t,n);for(var r=!kt(e)&&le(e),o=(r||e).length,i=0;i<o;i++){var a=r?r[i]:i;if(!t(e[a],a,e))return!1}return!0}function tn(e,t,n){t=Je(t,n);for(var r=!kt(e)&&le(e),o=(r||e).length,i=0;i<o;i++){var a=r?r[i]:i;if(t(e[a],a,e))return!0}return!1}function nn(e,t,n,r){return kt(e)||(e=Ne(e)),("number"!=typeof n||r)&&(n=0),Zt(e,t,n)>=0}const rn=_((function(e,t,n){var r,o;return z(t)?o=t:(t=Ue(t),r=t.slice(0,-1),t=t[t.length-1]),qt(e,(function(e){var i=o;if(!i){if(r&&r.length&&(e=Ve(e,r)),null==e)return;i=e[t]}return null==i?i:i.apply(e,n)}))}));function on(e,t){return qt(e,Ke(t))}function an(e,t){return Qt(e,We(t))}function ln(e,t,n){var r,o,i=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var l=0,s=(e=kt(e)?e:Ne(e)).length;l<s;l++)null!=(r=e[l])&&r>i&&(i=r);else t=Je(t,n),Kt(e,(function(e,n,r){((o=t(e,n,r))>a||o===-1/0&&i===-1/0)&&(i=e,a=o)}));return i}function sn(e,t,n){var r,o,i=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var l=0,s=(e=kt(e)?e:Ne(e)).length;l<s;l++)null!=(r=e[l])&&r<i&&(i=r);else t=Je(t,n),Kt(e,(function(e,n,r){((o=t(e,n,r))<a||o===1/0&&i===1/0)&&(i=e,a=o)}));return i}var cn=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function un(e){return e?W(e)?u.call(e):j(e)?e.match(cn):kt(e)?qt(e,$e):Ne(e):[]}function pn(e,t,n){if(null==t||n)return kt(e)||(e=Ne(e)),e[nt(e.length-1)];var r=un(e),o=ie(r);t=Math.max(Math.min(t,o),0);for(var i=o-1,a=0;a<t;a++){var l=nt(a,i),s=r[a];r[a]=r[l],r[l]=s}return r.slice(0,t)}function fn(e){return pn(e,1/0)}function dn(e,t,n){var r=0;return t=Je(t,n),on(qt(e,(function(e,n,o){return{value:e,index:r++,criteria:t(e,n,o)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index})),"value")}function hn(e,t){return function(n,r,o){var i=t?[[],[]]:{};return r=Je(r,o),Kt(n,(function(t,o){var a=r(t,o,n);e(i,t,a)})),i}}const mn=hn((function(e,t,n){K(e,n)?e[n].push(t):e[n]=[t]})),gn=hn((function(e,t,n){e[n]=t})),vn=hn((function(e,t,n){K(e,n)?e[n]++:e[n]=1})),yn=hn((function(e,t,n){e[n?0:1].push(t)}),!0);function bn(e){return null==e?0:kt(e)?e.length:le(e).length}function wn(e,t,n){return t in n}const En=_((function(e,t){var n={},r=t[0];if(null==e)return n;z(r)?(t.length>1&&(r=qe(r,t[1])),t=ge(e)):(r=wn,t=_t(t,!1,!1),e=Object(e));for(var o=0,i=t.length;o<i;o++){var a=t[o],l=e[a];r(l,a,e)&&(n[a]=l)}return n})),Cn=_((function(e,t){var n,r=t[0];return z(r)?(r=Tt(r),t.length>1&&(n=t[1])):(t=qt(_t(t,!1,!1),String),r=function(e,n){return!nn(t,n)}),En(e,r,n)}));function kn(e,t,n){return u.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function Sn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:kn(e,e.length-t)}function xn(e,t,n){return u.call(e,null==t||n?1:t)}function On(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:xn(e,Math.max(0,e.length-t))}function Nn(e){return Qt(e,Boolean)}function An(e,t){return _t(e,t,!1)}const Pn=_((function(e,t){return t=_t(t,!0,!0),Qt(e,(function(e){return!nn(t,e)}))})),jn=_((function(e,t){return Pn(e,t)}));function Tn(e,t,n,r){N(t)||(r=n,n=t,t=!1),null!=n&&(n=Je(n,r));for(var o=[],i=[],a=0,l=ie(e);a<l;a++){var s=e[a],c=n?n(s,a,e):s;t&&!n?(a&&i===c||o.push(s),i=c):n?nn(i,c)||(i.push(c),o.push(s)):nn(o,s)||o.push(s)}return o}const Mn=_((function(e){return Tn(_t(e,!0,!0))}));function Ln(e){for(var t=[],n=arguments.length,r=0,o=ie(e);r<o;r++){var i=e[r];if(!nn(t,i)){var a;for(a=1;a<n&&nn(arguments[a],i);a++);a===n&&t.push(i)}}return t}function Rn(e){for(var t=e&&ln(e,ie).length||0,n=Array(t),r=0;r<t;r++)n[r]=on(e,r);return n}const Dn=_(Rn);function Bn(e,t){for(var n={},r=0,o=ie(e);r<o;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function Fn(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),o=Array(r),i=0;i<r;i++,e+=n)o[i]=e;return o}function In(e,t){if(null==t||t<1)return[];for(var n=[],r=0,o=e.length;r<o;)n.push(u.call(e,r,r+=t));return n}function zn(e,t){return e._chain?ue(t).chain():t}function Un(e){return Kt(je(e),(function(t){var n=ue[t]=e[t];ue.prototype[t]=function(){var e=[this._wrapped];return c.apply(e,arguments),zn(this,n.apply(ue,e))}})),ue}Kt(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=a[e];ue.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),zn(this,n)}})),Kt(["concat","join","slice"],(function(e){var t=a[e];ue.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),zn(this,e)}}));const Vn=ue;var Zn=Un(r);Zn._=Zn;const Hn=Zn}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.amdD=function(){throw new Error("define cannot be used indirect")},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r);var e=n(9307),t=n(7462);function o(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}const a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],l=e&&o(e),s=t&&o(t),c=l||s;if(e&&o(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var u=a[a.length-1];n="."===u||".."===u||""===u}else n=!1;for(var p=0,f=a.length;f>=0;f--){var d=a[f];"."===d?i(a,f):".."===d?(i(a,f),p++):p&&(i(a,f),p--)}if(!c)for(;p--;p)a.unshift("..");!c||""===a[0]||a[0]&&o(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};var l=!0,s="Invariant failed";function c(e,t){if(!e){if(l)throw new Error(s);var n="function"==typeof t?t():t,r=n?"".concat(s,": ").concat(n):s;throw new Error(r)}}function u(e){return"/"===e.charAt(0)?e:"/"+e}function p(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function f(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function d(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function h(e,n,r,o){var i;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),i.state=n):(void 0===(i=(0,t.Z)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==n&&void 0===i.state&&(i.state=n));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return r&&(i.key=r),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function m(){var e=null,t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var g=!("undefined"==typeof window||!window.document||!window.document.createElement);function v(e,t){t(window.confirm(e))}var y="popstate",b="hashchange";function w(){try{return window.history.state||{}}catch(e){return{}}}var E=n(1721),C=n(9196),k=n.n(C),_=n(5697),S=n.n(_),x=n(4779),O=n.n(x),N=(n(9864),n(3366)),A=(n(8679),1073741823),P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{},j=k().createContext||function(e,t){var n,r,o,i="__create-react-context-"+((P[o="__global_unique_id__"]=(P[o]||0)+1)+"__"),a=function(e){function n(){for(var t,n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(t=e.call.apply(e,[this].concat(i))||this).emitter=(n=t.props.value,r=[],{on:function(e){r.push(e)},off:function(e){r=r.filter((function(t){return t!==e}))},get:function(){return n},set:function(e,t){n=e,r.forEach((function(e){return e(n,t)}))}}),t}(0,E.Z)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[i]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((i=r)===(a=o)?0!==i||1/i==1/a:i!=i&&a!=a)?n=0:(n="function"==typeof t?t(r,o):A,0!=(n|=0)&&this.emitter.set(e.value,n))}var i,a},r.render=function(){return this.props.children},n}(k().Component);a.childContextTypes=((n={})[i]=S().object.isRequired,n);var l=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,E.Z)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?A:t},r.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?A:e},r.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},r.getValue=function(){return this.context[i]?this.context[i].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(k().Component);return l.contextTypes=((r={})[i]=S().object,r),{Provider:a,Consumer:l}},T=function(e){var t=j();return t.displayName=e,t},M=T("Router-History"),L=T("Router"),R=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,E.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return k().createElement(L.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},k().createElement(M.Provider,{children:this.props.children||null,value:this.props.history}))},t}(k().Component);k().Component,k().Component;var D={},B=1e4,F=0;k().Component,k().Component,k().Component;var I=k().useContext;function z(){return I(L).location}var U=n(6053);window.wp.data;var V=n(7045),Z=n(509);const H=window.moment;var $=n.n(H),W=n(5736),K=n(6967);const q=window.wp.hooks;var G=n(6989),Y=n.n(G),J=n(8901),Q=n.n(J),X=n(6483);const ee={per_page:-1,orderby:"date",order:"desc"},te=function(n){const{wheelData:r,setAllData:o,trashData:i,setTrashData:a,type:l}=n,s="wheel"==l,[c,u]=(0,e.useState)(!1),p=document.querySelector(".wheeloflife-main-wrapper"),[f,d]=(0,e.useState)([]),h=()=>{let e=document.querySelectorAll(".list-checkboxes"),t=[];e?.forEach((e=>{e.checked&&t.push(e.id)})),d(t),t.length>1?u(!0):u(!1)};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-table-wrapper fadeInUp"},(0,e.createElement)("table",{className:"wheeloflife-table"},(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(0,e.createElement)("input",{type:"checkbox",onClick:e=>{let t=[];var n=document.querySelectorAll(".list-checkboxes");1==e.target.checked?(u(!0),n.forEach((function(e){t.push(e.id),e.checked=!0}))):(u(!1),n.forEach((function(e){e.checked=!1}))),d(t)},className:"wheeloflife-bulk-checkbox"})),(0,e.createElement)("th",{className:"wheeloflife-title-col"},(0,W.__)("Title","wheel-of-life")),s&&(0,e.createElement)("th",{className:"wheeloflife-shortcode-col"},(0,W.__)("Shortcode","wheel-of-life")),(0,e.createElement)("th",{className:"wheeloflife-date-col"},(0,W.__)("Created","wheel-of-life")),(0,e.createElement)("th",{className:"wheeloflife-status-col"},(0,W.__)("Status","wheel-of-life")),(0,e.createElement)("th",{className:"wheeloflife-action-col"}))),(0,e.createElement)("tbody",null,r.length<1&&(0,e.createElement)("tr",null,(0,e.createElement)("td",{colSpan:"6"},(0,e.createElement)("span",{className:"wheeloflife-error-msg"},(0,W.__)("Sorry! No data found.","wheel-of-life")))),null!=r&&""!=r&&r.map((function(r,o){const i="draft"==r.status?"draft":"published";return(0,e.createElement)("tr",{key:o},(0,e.createElement)("td",null,(0,e.createElement)("input",{type:"checkbox",id:r.id,className:"list-checkboxes",onClick:h})),(0,e.createElement)("td",{className:"wheeloflife-title-col"},(0,e.createElement)("a",{dangerouslySetInnerHTML:{__html:r.title.rendered}})),s&&(0,e.createElement)("td",{className:"wheeloflife-shortcode-col"},(0,e.createElement)(V.Z,{shortcode:`[wheeloflife id=${r.id}]`})),(0,e.createElement)("td",{className:"wheeloflife-date-col"},(0,e.createElement)("span",null,$()(r.date).format("MMM Do ,YYYY"))),(0,e.createElement)("td",{className:"wheeloflife-status-col"},(0,e.createElement)("span",{className:`wheeloflife-status ${i}`},r.status&&"publish"==r.status?(0,W.__)("Published","wheel-of-life"):r.status[0].toUpperCase()+r.status.slice(1))),(0,e.createElement)("td",{className:"wheeloflife-action-col"},(0,e.createElement)(Z.DropdownButton,(0,t.Z)({value:(0,e.createElement)(U.V4,null),align:"right",id:r.id},n))))}))))),c&&f&&f.length>1&&(0,e.createElement)(K.Z,{root:p,bulkStatus:u,selectedIds:d},(0,e.createElement)("span",{className:"selected-items"},f.length," ",(0,W.__)("items selected","wheel-of-life")),(0,e.createElement)(Z.Button,{options:{btnStyle:"borderd-primary",type:"button",value:"Delete"},onClick:()=>{f.length>0?(f.forEach((function(e){Y()({path:`wp/v2/${l}/${e}`,method:"DELETE"}).then((e=>{d([]),Y()({path:(0,X.addQueryArgs)(`wp/v2/${l}?status=any`,ee),method:"GET"}).then((e=>{o([]),o(e)})),Y()({path:(0,X.addQueryArgs)(`wp/v2/${l}?status=trash`,ee),method:"GET"}).then((e=>{a([]),a(e)}))}))})),Q().success((0,W.__)("Items deleted successfully.","wheel-of-life"))):Q().error((0,W.__)("No items selected.","wheel-of-life"))}})))},ne={per_page:-1,orderby:"date",order:"desc"},re=function(n){const{wheelData:r,setAllData:o,trashData:i,setTrashData:a,type:l}=n,s="wheel"==l;var c=!1;0==r.filter((e=>"draft"==e.status)).length&&(c=!0);const[u,p]=(0,e.useState)(!1),f=document.querySelector(".wheeloflife-main-wrapper"),[d,h]=(0,e.useState)([]),m=()=>{let e=document.querySelectorAll(".list-checkboxes"),t=[];e?.forEach((e=>{e.checked&&t.push(e.id)})),h(t),t.length>1?p(!0):p(!1)};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-table-wrapper fadeInUp"},(0,e.createElement)("table",{className:"wheeloflife-table"},(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(0,e.createElement)("input",{type:"checkbox",onClick:e=>{let t=[];var n=document.querySelectorAll(".list-checkboxes");1==e.target.checked?(p(!0),n.forEach((function(e){t.push(e.id),e.checked=!0}))):(p(!1),n.forEach((function(e){e.checked=!1}))),h(t)},className:"wheeloflife-bulk-checkbox"})),(0,e.createElement)("th",{className:"wheeloflife-title-col"},(0,W.__)("Title","wheel-of-life")),s&&(0,e.createElement)("th",{className:"wheeloflife-shortcode-col"},(0,W.__)("Shortcode","wheel-of-life")),(0,e.createElement)("th",{className:"wheeloflife-date-col"},(0,W.__)("Created","wheel-of-life")),(0,e.createElement)("th",{className:"wheeloflife-status-col"},(0,W.__)("Status","wheel-of-life")),(0,e.createElement)("th",{className:"wheeloflife-action-col"}))),(0,e.createElement)("tbody",null,!0===c&&(0,e.createElement)("tr",null,(0,e.createElement)("td",{colSpan:"6"},(0,e.createElement)("span",{className:"wheeloflife-error-msg"},(0,W.__)("Sorry! No data found.","wheel-of-life")))),null!=r&&""!=r&&!1===c&&r.map((function(r,o){if("draft"==r.status)return(0,e.createElement)("tr",{key:o},(0,e.createElement)("td",null,(0,e.createElement)("input",{type:"checkbox",id:r.id,className:"list-checkboxes",onClick:m})),(0,e.createElement)("td",{className:"wheeloflife-title-col"},(0,e.createElement)("a",null,r.title.rendered?.replace("&","&")?.replace("&","&"),s&&(0,q.applyFilters)("wol_wheel_title",null,r))),s&&(0,e.createElement)("td",{className:"wheeloflife-shortcode-col"},(0,e.createElement)(V.Z,{shortcode:`[wheeloflife id=${r.id}]`})),(0,e.createElement)("td",{className:"wheeloflife-date-col"},(0,e.createElement)("span",null,moment(r.date).format("MMM Do ,YYYY"))),(0,e.createElement)("td",{className:"wheeloflife-status-col"},(0,e.createElement)("span",{className:"wheeloflife-status draft"},r.status[0].toUpperCase()+r.status.slice(1))),(0,e.createElement)("td",{className:"wheeloflife-action-col"},(0,e.createElement)(Z.DropdownButton,(0,t.Z)({value:(0,e.createElement)(U.V4,null),align:"right",id:r.id},n))))}))))),u&&d&&d.length>1&&(0,e.createElement)(K.Z,{root:f,bulkStatus:p,selectedIds:h},(0,e.createElement)("span",{className:"selected-items"},d.length," ",(0,W.__)("items selected","wheel-of-life")),(0,e.createElement)(Z.Button,{options:{btnStyle:"borderd-primary",type:"button",value:"Delete"},onClick:()=>{d.length>0?(d.forEach((function(e){Y()({path:`wp/v2/${l}/${e}`,method:"DELETE"}).then((e=>{h([]),Y()({path:(0,X.addQueryArgs)(`wp/v2/${l}?status=any`,ne),method:"GET"}).then((e=>{o([]),o(e)})),Y()({path:(0,X.addQueryArgs)(`wp/v2/${l}?status=trash`,ne),method:"GET"}).then((e=>{a([]),a(e)}))}))})),Q().success((0,W.__)("Items deleted successfully.","wheel-of-life"))):Q().error((0,W.__)("No items selected.","wheel-of-life"))}})))},oe={per_page:-1,orderby:"date",order:"desc"},ie=function(n){const{wheelData:r,setAllData:o,trashData:i,setTrashData:a,type:l}=n,s="wheel"==l;var c=!1;0==r.filter((e=>"publish"==e.status)).length&&(c=!0);const[u,p]=(0,e.useState)(!1),f=document.querySelector(".wheeloflife-main-wrapper"),[d,h]=(0,e.useState)([]),m=()=>{let e=document.querySelectorAll(".list-checkboxes"),t=[];e?.forEach((e=>{e.checked&&t.push(e.id)})),h(t),t.length>1?p(!0):p(!1)};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-table-wrapper fadeInUp"},(0,e.createElement)("table",{className:"wheeloflife-table"},(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(0,e.createElement)("input",{type:"checkbox",onClick:e=>{let t=[];var n=document.querySelectorAll(".list-checkboxes");1==e.target.checked?(p(!0),n.forEach((function(e){t.push(e.id),e.checked=!0}))):(p(!1),n.forEach((function(e){e.checked=!1}))),h(t)},className:"wheeloflife-bulk-checkbox"})),(0,e.createElement)("th",{className:"wheeloflife-title-col"},(0,W.__)("Title","wheel-of-life")),s&&(0,e.createElement)("th",{className:"wheeloflife-shortcode-col"},(0,W.__)("Shortcode","wheel-of-life")),(0,e.createElement)("th",{className:"wheeloflife-date-col"},(0,W.__)("Created","wheel-of-life")),(0,e.createElement)("th",{className:"wheeloflife-status-col"},(0,W.__)("Status","wheel-of-life")),(0,e.createElement)("th",{className:"wheeloflife-action-col"}))),(0,e.createElement)("tbody",null,!0===c&&(0,e.createElement)("tr",null,(0,e.createElement)("td",{colSpan:"6"},(0,e.createElement)("span",{className:"wheeloflife-error-msg"},(0,W.__)("Sorry! No data found.","wheel-of-life")))),null!=r&&""!=r&&!1===c&&r.map((function(r,o){if("publish"==r.status)return(0,e.createElement)("tr",{key:o},(0,e.createElement)("td",null,(0,e.createElement)("input",{type:"checkbox",id:r.id,className:"list-checkboxes",onClick:m})),(0,e.createElement)("td",{className:"wheeloflife-title-col"},(0,e.createElement)("a",null,r.title.rendered?.replace("&","&")?.replace("&","&"),s&&(0,q.applyFilters)("wol_wheel_title",null,r))),s&&(0,e.createElement)("td",{className:"wheeloflife-shortcode-col"},(0,e.createElement)(V.Z,{shortcode:`[wheeloflife id=${r.id}]`})),(0,e.createElement)("td",{className:"wheeloflife-date-col"},(0,e.createElement)("span",null,moment(r.date).format("MMM Do ,YYYY"))),(0,e.createElement)("td",{className:"wheeloflife-status-col"},(0,e.createElement)("span",{className:"wheeloflife-status published"},(0,W.__)("Published","wheel-of-life"))),(0,e.createElement)("td",{className:"wheeloflife-action-col"},(0,e.createElement)(Z.DropdownButton,(0,t.Z)({value:(0,e.createElement)(U.V4,null),align:"right",id:r.id},n))))}))))),u&&d&&d.length>1&&(0,e.createElement)(K.Z,{root:f,bulkStatus:p,selectedIds:h},(0,e.createElement)("span",{className:"selected-items"},d.length," ",(0,W.__)("items selected","wheel-of-life")),(0,e.createElement)(Z.Button,{options:{btnStyle:"borderd-primary",type:"button",value:"Delete"},onClick:()=>{d.length>0?(d.forEach((function(e){Y()({path:`wp/v2/${l}/${e}`,method:"DELETE"}).then((e=>{h([]),Y()({path:(0,X.addQueryArgs)(`wp/v2/${l}?status=any`,oe),method:"GET"}).then((e=>{o([]),o(e)})),Y()({path:(0,X.addQueryArgs)(`wp/v2/${l}?status=trash`,oe),method:"GET"}).then((e=>{a([]),a(e)}))}))})),Q().success((0,W.__)("Items deleted successfully.","wheel-of-life"))):Q().error((0,W.__)("No items selected.","wheel-of-life"))}})))},ae={per_page:-1,orderby:"date",order:"desc"},le=function(n){const{wheelData:r,setAllData:o,trashData:i,setTrashData:a,setWheelTab:l,type:s}=n,c="wheel"==s;var u=!1;0==i.filter((e=>"trash"==e.status)).length&&(u=!0);const[p,f]=(0,e.useState)(!1),d=document.querySelector(".wheeloflife-main-wrapper"),[h,m]=(0,e.useState)([]),g=()=>{let e=document.querySelectorAll(".list-checkboxes"),t=[];e?.forEach((e=>{e.checked&&t.push(e.id)})),m(t),t.length>1?f(!0):f(!1)};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-table-wrapper fadeInUp"},(0,e.createElement)("table",{className:"wheeloflife-table"},(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(0,e.createElement)("input",{type:"checkbox",onClick:e=>{let t=[];var n=document.querySelectorAll(".list-checkboxes");1==e.target.checked?(f(!0),n.forEach((function(e){t.push(e.id),e.checked=!0}))):(f(!1),n.forEach((function(e){e.checked=!1}))),m(t)},className:"wheeloflife-bulk-checkbox"})),(0,e.createElement)("th",{className:"wheeloflife-title-col"},(0,W.__)("Title","wheel-of-life")),c&&(0,e.createElement)("th",{className:"wheeloflife-shortcode-col"},(0,W.__)("Shortcode","wheel-of-life")),(0,e.createElement)("th",{className:"wheeloflife-date-col"},(0,W.__)("Created","wheel-of-life")),(0,e.createElement)("th",{className:"wheeloflife-status-col"},(0,W.__)("Status","wheel-of-life")),(0,e.createElement)("th",{className:"wheeloflife-action-col"}))),(0,e.createElement)("tbody",null,!0===u&&(0,e.createElement)("tr",null,(0,e.createElement)("td",{colSpan:"6"},(0,e.createElement)("span",{className:"wheeloflife-error-msg"},(0,W.__)("Sorry! No Trash data found.","wheel-of-life")))),null!=i&&""!=i&&!1===u&&i.map((function(r,o){if("trash"==r.status)return(0,e.createElement)("tr",{key:o},(0,e.createElement)("td",null,(0,e.createElement)("input",{type:"checkbox",id:r.id,className:"list-checkboxes",onClick:g})),(0,e.createElement)("td",{className:"wheeloflife-title-col"},(0,e.createElement)("a",null,r.title.rendered?.replace("&","&")?.replace("&","&"),c&&(0,q.applyFilters)("wol_wheel_title",null,r))),c&&(0,e.createElement)("td",{className:"wheeloflife-shortcode-col"},(0,e.createElement)(V.Z,{shortcode:`[wheeloflife id=${r.id}]`})),(0,e.createElement)("td",{className:"wheeloflife-date-col"},(0,e.createElement)("span",null,moment(r.date).format("MMM Do ,YYYY"))),(0,e.createElement)("td",{className:"wheeloflife-status-col"},(0,e.createElement)("span",{className:"wheeloflife-status draft"},r.status[0].toUpperCase()+r.status.slice(1))),(0,e.createElement)("td",{className:"wheeloflife-action-col"},(0,e.createElement)(Z.DropdownButton,(0,t.Z)({value:(0,e.createElement)(U.V4,null),align:"right",tab:"trash",id:r.id},n))))}))))),p&&h&&h.length>1&&(0,e.createElement)(K.Z,{root:d,bulkStatus:f,selectedIds:m},(0,e.createElement)("span",{className:"selected-items"},h.length," ",(0,W.__)("items selected","wheel-of-life")),(0,e.createElement)(Z.Button,{options:{btnStyle:"borderd-primary",type:"button",value:"Delete"},onClick:()=>{h.length>0?(h.forEach((function(e){Y()({path:`wp/v2/${s}/${e}?force=1`,method:"DELETE"}).then((e=>{m([]),Y()({path:(0,X.addQueryArgs)(`wp/v2/${s}?status=any`,ae),method:"GET"}).then((e=>{o([]),o(e)})),Y()({path:(0,X.addQueryArgs)(`wp/v2/${s}?status=trash`,ae),method:"GET"}).then((e=>{a([]),a(e)}))}))})),Q().success((0,W.__)("Items deleted successfully.","wheel-of-life"))):Q().error((0,W.__)("No items selected.","wheel-of-life"))}})))},se={per_page:-1,orderby:"date",order:"desc"},ce=()=>{const[t,n]=(0,e.useState)("all_wheels"),[r,o]=(0,e.useState)(!1),[i,a]=(0,e.useState)(!1),[l,s]=(0,e.useState)([]),[c,u]=(0,e.useState)(0),[p,f]=(0,e.useState)(0),[d,h]=(0,e.useState)(!1);(0,e.useEffect)((()=>{Y()({path:(0,X.addQueryArgs)("wp/v2/wheel?status=any",se),method:"GET"}).then((e=>{o(e)}))}),[]),(0,e.useEffect)((()=>{s(r)}),[r]),(0,e.useEffect)((()=>{Y()({path:(0,X.addQueryArgs)("wp/v2/wheel?status=trash",se),method:"GET"}).then((e=>{a(e)}))}),[]);const[m,g]=(0,e.useState)("");(0,e.useEffect)((()=>{g(m),function(){if(""!==m){const e=r.filter((e=>e.title.rendered&&e.title.rendered.toLowerCase().includes(m)));s(e)}else s(r)}()}),[m]),(0,e.useEffect)((()=>{if(r){const e=r.filter((e=>e.status&&e.status.toLowerCase().includes("draft"))),t=r.filter((e=>e.status&&e.status.toLowerCase().includes("publish")));u(e.length),f(t.length)}}),[r]);var v={all_wheels:{label:(0,W.__)("All Wheels","wheel-of-life"),count:r.length},draft_wheels:{label:(0,W.__)("Draft","wheel-of-life"),count:c},published_wheels:{label:(0,W.__)("Published","wheel-of-life"),count:p}};return i.length>0&&(v={all_wheels:{label:(0,W.__)("All Wheels","wheel-of-life"),count:r.length},draft_wheels:{label:(0,W.__)("Draft","wheel-of-life"),count:c},published_wheels:{label:(0,W.__)("Published","wheel-of-life"),count:p},trash_wheels:{label:(0,W.__)("Trash","wheel-of-life"),count:i.length}}),(0,e.createElement)("div",{className:"wheeloflife-dashboard-container"},(0,e.createElement)("header",{className:"wheeloflife-header-wrap"},(0,e.createElement)("h1",{className:"wheeloflife-title"},(0,W.__)("Wheel of Life","wheel-of-life")),(0,e.createElement)(Z.SearchForm,{onKeyUp:e=>function(e){g(e.target.value)}(e),onClick:e=>(s(r),void g("")),options:{placeholder:"Search Wheel"}})),(0,e.createElement)("div",{className:"wheeloflife-wheel-list-wrapper"},(0,e.createElement)(Z.NavTab,{navs:v,setActiveTab:n,activeTab:t,tabId:"wheel-lists-tab",className:"tab-sticky tab-bg"}),"all_wheels"===t&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-list-items"},"Showing ",r.length," of ",r.length),(0,e.createElement)(te,{wheelData:l,setAllData:o,trashData:i,setTrashData:a,type:"wheel"})),"draft_wheels"===t&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-list-items"},"Showing ",c," of ",c),(0,e.createElement)(re,{wheelData:l,setAllData:o,trashData:i,setTrashData:a,type:"wheel"})),"published_wheels"===t&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-list-items"},"Showing ",p," of ",p),(0,e.createElement)(ie,{wheelData:l,setAllData:o,trashData:i,setTrashData:a,type:"wheel"})),"trash_wheels"===t&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-list-items"},"Showing ",i.length," of ",i.length),(0,e.createElement)(le,{wheelData:l,setAllData:o,trashData:i,setTrashData:a,setWheelTab:n,type:"wheel"}))))},ue=(0,q.applyFilters)("wheeloflife_global_settings_tabs",{social_share:{label:(0,W.__)("Social Share","wheel-of-life")},cta:{label:(0,W.__)("Call To Action","wheel-of-life")}});var pe=n(5903),fe=n(5749),de=n(5609),he=n(2095);const me=function(t){let{Values:n,setValues:r}=t;const{PanelBody:o}=wp.components,[i,a]=(0,e.useState)(1);function l(e,t){let o={...n};o.customizer[t]=e,r(o)}return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o,{title:(0,W.__)("General","wheel-of-life"),initialOpen:!0},(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field wheeloflife-blocks-gradient-option inline"},(0,e.createElement)(he.ZP,{value:n.customizer.background,values:n.customizer.background,id:"button-border",option:{id:"button-border",label:(0,W.__)("Background","wheel-of-life"),type:"ab-background",value:n.customizer.background},hasRevertButton:!0,onChange:e=>l(e,"background")})),(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field inline"},(0,e.createElement)(he.ZP,{value:n.customizer.alignment,values:n.customizer.alignment,id:"alignment",option:{id:"alignment",label:(0,W.__)("Alignment","wheel-of-life"),attr:{"data-type":"alignment"},type:"ab-radio",choices:{"flex-start":"",center:"","flex-end":""}},hasRevertButton:!0,onChange:e=>l(e,"alignment")}))),(0,e.createElement)(o,{title:(0,W.__)("CTA Title","wheel-of-life"),initialOpen:!1},(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field"},(0,e.createElement)(de.RangeControl,{label:"Font Size",value:n.customizer.fontSize,onChange:e=>l(e,"fontSize"),min:1,max:100})),(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field inline"},(0,e.createElement)("label",null,(0,W.__)("Font Color","wheel-of-life")),(0,e.createElement)(fe.Z,{value:{fontColor:{color:null!=n.customizer&&null!=n.customizer.fontColor?n.customizer.fontColor:"#3DBB55"}},onChange:e=>l(e.fontColor.color,"fontColor"),option:{pickers:[{id:"fontColor",title:(0,W.__)("Font Color")}]}}))),(0,e.createElement)(o,{title:(0,W.__)("CTA Description","wheel-of-life"),initialOpen:!1},(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field"},(0,e.createElement)(de.RangeControl,{label:"Font Size",value:n.customizer.descFontSize,onChange:e=>l(e,"descFontSize"),min:1,max:100})),(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field"},(0,e.createElement)("label",null,(0,W.__)("Font Color","wheel-of-life")),(0,e.createElement)(fe.Z,{value:{descFontColor:{color:null!=n.customizer&&null!=n.customizer.descFontColor?n.customizer.descFontColor:"#3DBB55"}},onChange:e=>l(e.descFontColor.color,"descFontColor"),option:{pickers:[{id:"descFontColor",title:(0,W.__)("Font Color")}]}}))),(0,e.createElement)(o,{title:(0,W.__)("CTA Buttons","wheel-of-life"),initialOpen:!1},(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field"},(0,e.createElement)(he.ZP,{value:n.customizer.buttonType,values:n.customizer.buttonType,id:"button-type",option:{id:"button-type",type:"ab-radio",choices:{primary:(0,W.__)("Primary Button","wheel-of-life"),secondary:(0,W.__)("Secondary Button","wheel-of-life")}},onChange:e=>l(e,"buttonType")})),"primary"===n.customizer.buttonType&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field"},(0,e.createElement)(de.RangeControl,{label:"Font Size",value:n.customizer.pbFontSize,onChange:e=>l(e,"pbFontSize"),min:1,max:100})),(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field"},(0,e.createElement)("label",null,(0,W.__)("Font Color","wheel-of-life")),(0,e.createElement)(fe.Z,{value:{pbfontColor:{color:null!=n.customizer&&null!=n.customizer.pbfontColors.pbfontColor?n.customizer.pbfontColors.pbfontColor:"#3DBB55"},pbfontHoverColor:{color:null!=n.customizer&&null!=n.customizer.pbfontColors.pbfontHoverColor?n.customizer.pbfontColors.pbfontHoverColor:"#3DBB55"}},onChange:e=>{!function(e,t){let o={...n};o.customizer.pbfontColors={pbfontColor:e,pbfontHoverColor:t},r(o)}(e.pbfontColor.color,e.pbfontHoverColor.color)},option:{pickers:[{id:"pbfontColor",title:(0,W.__)("Font Color")},{id:"pbfontHoverColor",title:(0,W.__)("Font Hover Color")}]}})),(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field"},(0,e.createElement)("label",null,(0,W.__)("Background Color","wheel-of-life")),(0,e.createElement)(fe.Z,{value:{pbBgColor:{color:null!=n.customizer&&null!=n.customizer.pbBgColors.pbBgColor?n.customizer.pbBgColors.pbBgColor:"#3DBB55"},pbBgHoverColor:{color:null!=n.customizer&&null!=n.customizer.pbBgColors.pbBgHoverColor?n.customizer.pbBgColors.pbBgHoverColor:"#3DBB55"}},onChange:e=>{!function(e,t){let o={...n};o.customizer.pbBgColors={pbBgColor:e,pbBgHoverColor:t},r(o)}(e.pbBgColor.color,e.pbBgHoverColor.color)},option:{pickers:[{id:"pbBgColor",title:(0,W.__)("Background Color")},{id:"pbBgHoverColor",title:(0,W.__)("Background Hover Color")}]}})),(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field"},(0,e.createElement)(de.RangeControl,{label:"Border Radius",value:n.customizer.pbBorderRadius,onChange:e=>l(e,"pbBorderRadius"),min:1,max:100}))),"secondary"===n.customizer.buttonType&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field"},(0,e.createElement)(de.RangeControl,{label:"Font Size",value:n.customizer.sbFontSize,onChange:e=>l(e,"sbFontSize"),min:1,max:100})),(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field"},(0,e.createElement)("label",null,(0,W.__)("Font Color","wheel-of-life")),(0,e.createElement)(fe.Z,{value:{sbfontColor:{color:null!=n.customizer&&null!=n.customizer.sbfontColors.sbfontColor?n.customizer.sbfontColors.sbfontColor:"#3DBB55"},sbfontHoverColor:{color:null!=n.customizer&&null!=n.customizer.sbfontColors.sbfontHoverColor?n.customizer.sbfontColors.sbfontHoverColor:"#3DBB55"}},onChange:e=>{!function(e,t){let o={...n};o.customizer.sbfontColors={sbfontColor:e,sbfontHoverColor:t},r(o)}(e.sbfontColor.color,e.sbfontHoverColor.color)},option:{pickers:[{id:"sbfontColor",title:(0,W.__)("Font Color")},{id:"sbfontHoverColor",title:(0,W.__)("Font Hover Color")}]}})),(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field"},(0,e.createElement)("label",null,(0,W.__)("Background Color","wheel-of-life")),(0,e.createElement)(fe.Z,{value:{sbBgColor:{color:null!=n.customizer&&null!=n.customizer.sbBgColors.sbBgColor?n.customizer.sbBgColors.sbBgColor:"#3DBB55"},sbBgHoverColor:{color:null!=n.customizer&&null!=n.customizer.sbBgColors.sbBgHoverColor?n.customizer.sbBgColors.sbBgHoverColor:"#3DBB55"}},onChange:e=>{!function(e,t){let o={...n};o.customizer.sbBgColors={sbBgColor:e,sbBgHoverColor:t},r(o)}(e.sbBgColor.color,e.sbBgHoverColor.color)},option:{pickers:[{id:"sbBgColor",title:(0,W.__)("Background Color")},{id:"sbBgHoverColor",title:(0,W.__)("Background Hover Color")}]}})),(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field"},(0,e.createElement)(de.RangeControl,{label:"Border Radius",value:n.customizer.sbBorderRadius,onChange:e=>l(e,"sbBorderRadius"),min:1,max:100})))),(0,e.createElement)(o,{title:(0,W.__)("Others","wheel-of-life"),initialOpen:!1},(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field"},(0,e.createElement)(he.ZP,{value:n.customizer.margin,values:n.customizer.margin,id:"margin",option:{id:"margin",label:(0,W.__)("Margin","wheel-of-life"),type:"ab-spacing",value:n.customizer.margin,responsive:!1,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>l(e,"margin")}),(0,e.createElement)("span",{className:"wheeloflife-field-info"},"Add the margins to give space outside the CTA.")),(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field"},(0,e.createElement)(he.ZP,{value:n.customizer.padding,values:n.customizer.padding,id:"padding",option:{id:"padding",label:(0,W.__)("Padding","wheel-of-life"),type:"ab-spacing",value:n.customizer.padding,responsive:!1,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>l(e,"padding")}),(0,e.createElement)("span",{className:"wheeloflife-field-info"},"Add the paddings to give space inside the CTA."))))},ge=function(){const[t,n]=(0,e.useState)(!1),[r,o]=(0,e.useState)("primary_btn"),[i,a]=(0,e.useState)({title:"",description:"",buttonLabel:"",buttonLink:"",openInTab:!1,setLinkAttrNoFollow:!1,setLinkAttrSponser:!1,setLinkAttrDownload:!1,sbuttonLabel:(0,W.__)("Services","wheel-of-life"),sbuttonLink:"",sbopenInTab:!1,sbsetLinkAttrNoFollow:!1,sbsetLinkAttrSponser:!1,sbsetLinkAttrDownload:!1,customizer:{background:{background_type:"color",background_pattern:"type-1",background_image:{attachment_id:null,x:0,y:0},gradient:"",background_repeat:"no-repeat",background_size:"cover",background_attachment:"scroll",patternColor:{default:{color:"#e5e7ea"}},overlayColor:{default:{color:"#dd1919"}},backgroundColor:{default:{color:"#dd1919"}}},bgtype:"",bgColor:"",bgImage:"",alignment:"center",fontSize:32,fontColor:"#fff",descFontSize:18,descFontColor:"#fff",buttonType:"primary",pbFontSize:16,pbfontColors:{pbfontColor:"#fff",pbfontHoverColor:""},pbBgColors:{pbBgColor:"#038181",pbBgHoverColor:""},pbBorderRadius:4,sbFontSize:16,sbfontColors:{sbfontColor:"#038181",sbfontHoverColor:""},sbBgColors:{sbBgColor:"#fff",sbBgHoverColor:""},sbBorderRadius:4,margin:{top:"10",left:"10",right:"10",bottom:"10"},padding:{top:"50px",left:"38px",right:"38px",bottom:"50px"}}});return(0,e.useEffect)((()=>{let e=new FormData;e.append("action","getCTA"),e.append("security",wolVariables.ajax_nonce),Y()({url:wolVariables.ajax_url,method:"POST",body:e}).then((e=>{!0===e.success&&""!=e.data&&a(JSON.parse(e.data))}))}),[]),(0,e.createElement)("div",{className:"wheelofllifepro-cta-tab fadeInUp"},(0,e.createElement)("div",{className:"wheeloflife-card"},(0,e.createElement)("div",{className:"wheeloflife-card-header"},(0,e.createElement)("h2",{className:"wheeloflife-title"},(0,W.__)("Title and description","wheel-of-life")),(0,e.createElement)("p",null,(0,W.__)("Use call to action at the end of the accessment for the user engagement.","wheel-of-life"))),(0,e.createElement)("div",{className:"wheeloflife-card-body"},(0,e.createElement)("div",{className:"wheeloflife-field"},(0,e.createElement)("label",null,(0,W.__)("Call to Action Title","wheel-of-life")),(0,e.createElement)("input",{type:"text",onKeyUp:function(e){let t={...i};t.title=e.target.value,a(t)},defaultValue:i.title&&i.title})),(0,e.createElement)("div",{className:"wheeloflife-field"},(0,e.createElement)("label",null,(0,W.__)("Call to Action Description","wheel-of-life")),(0,e.createElement)("textarea",{rows:"5",onKeyUp:function(e){let t={...i};t.description=e.target.value,a(t)},defaultValue:i.description&&i.description})))),(0,e.createElement)("div",{className:"wheeloflife-card"},(0,e.createElement)("div",{className:"wheeloflife-card-header"},(0,e.createElement)("h2",{className:"wheeloflife-title"},(0,W.__)("Action Buttons","wheel-of-life")),(0,e.createElement)("p",null,(0,W.__)("Set the action buttons and page redirections.","wheel-of-life"))),(0,e.createElement)("div",{className:"wheeloflife-card-header has-nav-tab"},(0,e.createElement)(Z.NavTab,{navs:{primary_btn:{label:"Primary Button"},secondary_btn:{label:"Secondary Button"}},activeTab:r,setActiveTab:o,tabId:"card_tab"})),(0,e.createElement)("div",{className:"wheeloflife-card-body"},"primary_btn"==r&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-field"},(0,e.createElement)("label",null,(0,W.__)("Button Label","wheel-of-life")),(0,e.createElement)("input",{type:"text",onKeyUp:function(e){let t={...i};t.buttonLabel=e.target.value,a(t)},defaultValue:i.buttonLabel&&i.buttonLabel})),(0,e.createElement)("div",{className:"wheeloflife-field"},(0,e.createElement)("label",null,(0,W.__)("Button Link","wheel-of-life")),(0,e.createElement)("input",{type:"url",placeholder:"https://example.com/",onKeyUp:function(e){let t={...i};t.buttonLink=e.target.value,a(t)},defaultValue:i.buttonLink&&i.buttonLink})),(0,e.createElement)("div",{className:"wheeloflife-field"},(0,e.createElement)(Z.SwitchBox,{id:"switch-1",type:"openInTab",label:"Open in new tab",checked:i.openInTab,Values:i,setValues:a}),(0,e.createElement)("span",{className:"wheeloflife-field-info"},(0,W.__)("Enable the option to open the page in new tab.","wheel-of-life"))),(0,e.createElement)("div",{className:"wheeloflife-field"},(0,e.createElement)(Z.SwitchBox,{id:"switch-2",type:"setLinkAttrNoFollow",label:"Set Link attribute to nofollow",checked:i.setLinkAttrNoFollow,Values:i,setValues:a}),(0,e.createElement)("span",{className:"wheeloflife-field-info"},(0,W.__)("Enable the option to open the page in new tab.","wheel-of-life"))),(0,e.createElement)("div",{className:"wheeloflife-field"},(0,e.createElement)(Z.SwitchBox,{id:"switch-3",type:"setLinkAttrSponser",label:"Set Link attribute to Sponsored",checked:i.setLinkAttrSponser,Values:i,setValues:a}),(0,e.createElement)("span",{className:"wheeloflife-field-info"},(0,W.__)("Enable the option if the link has any sponsorship.","wheel-of-life"))),(0,e.createElement)("div",{className:"wheeloflife-field"},(0,e.createElement)(Z.SwitchBox,{id:"switch-4",type:"setLinkAttrDownload",label:"Set Link attribute to Download",checked:i.setLinkAttrDownload,Values:i,setValues:a}),(0,e.createElement)("span",{className:"wheeloflife-field-info"},(0,W.__)("Enable the option if the link has downloadable files.","wheel-of-life")))),"secondary_btn"==r&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-field"},(0,e.createElement)("label",null,(0,W.__)("Button Label","wheel-of-life")),(0,e.createElement)("input",{type:"text",placeholder:"Schedule an Appointment",onKeyUp:function(e){let t={...i};t.sbuttonLabel=e.target.value,a(t)},defaultValue:i.sbuttonLabel&&i.sbuttonLabel})),(0,e.createElement)("div",{className:"wheeloflife-field"},(0,e.createElement)("label",null,(0,W.__)("Button Link","wheel-of-life")),(0,e.createElement)("input",{type:"url",placeholder:"https://example.com/",onKeyUp:function(e){let t={...i};t.sbuttonLink=e.target.value,a(t)},defaultValue:i.sbuttonLink&&i.sbuttonLink})),(0,e.createElement)("div",{className:"wheeloflife-field"},(0,e.createElement)(Z.SwitchBox,{id:"sbButtonTab-1",type:"sbopenInTab",label:"Open in new tab",checked:i.sbopenInTab,Values:i,setValues:a}),(0,e.createElement)("span",{className:"wheeloflife-field-info"},(0,W.__)("Enable the option to open the page in new tab.","wheel-of-life"))),(0,e.createElement)("div",{className:"wheeloflife-field"},(0,e.createElement)(Z.SwitchBox,{id:"sbButtonTab-2",type:"sbsetLinkAttrNoFollow",label:"Set Link attribute to nofollow",checked:i.sbsetLinkAttrNoFollow,Values:i,setValues:a}),(0,e.createElement)("span",{className:"wheeloflife-field-info"},(0,W.__)("Enable the option to open the page in new tab.","wheel-of-life"))),(0,e.createElement)("div",{className:"wheeloflife-field"},(0,e.createElement)(Z.SwitchBox,{id:"sbButtonTab-3",type:"sbsetLinkAttrSponser",label:"Set Link attribute to Sponsored",checked:i.sbsetLinkAttrSponser,Values:i,setValues:a}),(0,e.createElement)("span",{className:"wheeloflife-field-info"},(0,W.__)("Enable the option if the link has any sponsorship.","wheel-of-life"))),(0,e.createElement)("div",{className:"wheeloflife-field"},(0,e.createElement)(Z.SwitchBox,{id:"sbButtonTab-4",type:"sbsetLinkAttrDownload",label:"Set Link attribute to Download",checked:i.sbsetLinkAttrDownload,Values:i,setValues:a}),(0,e.createElement)("span",{className:"wheeloflife-field-info"},(0,W.__)("Enable the option if the link has downloadable files.","wheel-of-life")))))),(0,e.createElement)("div",{className:"wheeloflife-card"},(0,e.createElement)("div",{className:"wheeloflife-card-header"},(0,e.createElement)("h2",{className:"wheeloflife-title"},(0,W.__)("Style and Customization","wheel-of-life")),(0,e.createElement)("p",null,(0,W.__)("Change colors, font-sizes and more to make your CTA appealing to your site visitors.","wheel-of-life"))),(0,e.createElement)("div",{className:"wheeloflife-card-body"},(0,e.createElement)("div",{className:"wheeloflife-field"},(0,e.createElement)("label",null,(0,W.__)("Call to Action Preview","wheel-of-life")),(0,e.createElement)("div",{className:`wheeloflife-cta-preview ${"image"===i.customizer.background.background_type&&"has-overlay"}`,style:{background:"image"===i.customizer.background.background_type?"url("+i.customizer.background.background_image.url+") "+100*i.customizer.background.background_image.x+"% "+100*i.customizer.background.background_image.y+"% "+i.customizer.background.background_repeat:"color"===i.customizer.background.background_type?i.customizer.background.backgroundColor.default.color:i.customizer.background.gradient,backgroundSize:"image"===i.customizer.background.background_type&&i.customizer.background.background_size,backgroundAttachment:"image"===i.customizer.background.background_type&&i.customizer.background.background_attachment,padding:i.customizer.padding.top+" "+i.customizer.padding.right+" "+i.customizer.padding.bottom+" "+i.customizer.padding.left,margin:i.customizer.margin.top+" "+i.customizer.margin.right+" "+i.customizer.margin.bottom+" "+i.customizer.margin.left,"--cta-overlay-color":i.customizer.background.overlayColor.default.color},align:"flex-start"===i.customizer.alignment?"left":"flex-end"===i.customizer.alignment?"right":"center"},(0,e.createElement)("h2",{className:"wheeloflife-cta-title",style:{fontSize:i.customizer.fontSize,color:i.customizer.fontColor}},i.title),(0,e.createElement)("div",{className:"wheeloflife-cta-description",style:{fontSize:i.customizer.descFontSize,color:i.customizer.descFontColor},dangerouslySetInnerHTML:{__html:i.description.replace(/\n/g,"<br/>")}}),(0,e.createElement)("div",{className:"wheeloflife-cta-btns"},""!==i.buttonLabel&&""!==i.buttonLink&&(0,e.createElement)("button",{className:"wheeloflife-cta-btn primary",style:{fontSize:i.customizer.pbFontSize,color:i.customizer.pbfontColors.pbfontColor,background:i.customizer.pbBgColors.pbBgColor,borderRadius:i.customizer.pbBorderRadius},onMouseOver:e=>{e.target.style.color=i.customizer.pbfontColors.pbfontHoverColor,e.target.style.background=i.customizer.pbBgColors.pbBgHoverColor},onMouseOut:e=>{e.target.style.color=i.customizer.pbfontColors.pbfontColor,e.target.style.background=i.customizer.pbBgColors.pbBgColor}},i.buttonLabel),""!==i.sbuttonLabel&&""!==i.sbuttonLink&&(0,e.createElement)("button",{className:"wheeloflife-cta-btn secondary",style:{fontSize:i.customizer.sbFontSize,color:i.customizer.sbfontColors.sbfontColor,background:i.customizer.sbBgColors.sbBgColor,borderRadius:i.customizer.sbBorderRadius},onMouseOver:e=>{e.target.style.color=i.customizer.sbfontColors.sbfontHoverColor,e.target.style.background=i.customizer.sbBgColors.sbBgHoverColor},onMouseOut:e=>{e.target.style.color=i.customizer.sbfontColors.sbfontColor,e.target.style.background=i.customizer.sbBgColors.sbBgColor}},i.sbuttonLabel))),(0,e.createElement)("span",{className:"wheeloflife-field-info"},(0,W.__)("This is the preview of the CTA in your wheel. Click on the Customize button below to change the design styles.","wheel-of-life"))),(0,e.createElement)("div",{className:"wheeloflife-field-btn"},(0,e.createElement)(Z.Button,{options:{btnStyle:"primary",type:"button",value:(0,W.__)("Customize","wheel-of-life")},onClick:()=>n(!0)})))),(0,e.createElement)("div",{className:"wheeloflife-btn-wrap"},(0,e.createElement)(Z.Button,{options:{btnStyle:"primary",type:"button",value:(0,W.__)("Save Settings","wheel-of-life")},onClick:function(){let e=new FormData;e.append("data",JSON.stringify(i)),e.append("action","saveCTA"),e.append("security",wolVariables.ajax_nonce),Y()({url:wolVariables.ajax_url,method:"POST",body:e}).then((e=>{!0===e.success?Q().success(e.data):Q().error(e.data)}))}})),t&&(0,e.createElement)(pe.Z,{modalTitle:"Customize",modalStatus:n,type:"form",className:"customizeer-modal",modalAlign:"right"},(0,e.createElement)("div",null,(0,e.createElement)(me,{Values:i,setValues:a})),(0,e.createElement)("div",{className:"wheeloflife-modal-footer",align:"right"},(0,e.createElement)(Z.Button,{options:{btnStyle:"primary",type:"button",value:"Done"},onClick:()=>{n(!1)}}))))},ve=function(){const[t,n]=(0,e.useState)("social_share"),[r,o]=(0,e.useState)({facebook:!1,twitter:!1,linkedIn:!1,reddit:!1,email:!1}),[i,a]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{let e=new FormData;e.append("action","getSocialShare"),e.append("security",wolVariables.ajax_nonce),Y()({url:wolVariables.ajax_url,method:"POST",body:e}).then((e=>{!0===e.success&&""!=e.data&&o(JSON.parse(e.data))})),Q().options.positionClass="toast-bottom-full-width",Q().options.timeOut="5000"}),[]),(0,e.useEffect)((()=>{a(!1)}),[r]),(0,e.createElement)("div",{className:"wheeloflife-settings-container"},(0,e.createElement)("header",{className:"wheeloflife-header-wrap"},(0,e.createElement)("h1",{className:"wheeloflife-title"},(0,W.__)("Settings","wheel-of-life"))),(0,e.createElement)(Z.NavTab,{navs:ue,activeTab:t,setActiveTab:n,tabId:"global-settings-tab",className:"tab-sticky tab-bg"}),"social_share"===t&&(0,e.createElement)("div",{className:"wheeloflife-social-tab fadeInUp"},(0,e.createElement)("div",{className:"wheeloflife-card"},(0,e.createElement)("header",{className:"wheeloflife-card-header"},(0,e.createElement)("h2",{className:"wheeloflife-title"},(0,W.__)("Social Share","wheel-of-life")),(0,e.createElement)("p",null,(0,W.__)("Enable the social media platforms to share the results.","wheel-of-life"))),(0,e.createElement)("div",{className:"wheeloflife-card-body"},(0,e.createElement)("div",{className:"wheeloflife-field flex-row"},(0,e.createElement)(Z.SocialIcon,{icon:(0,e.createElement)(U.s1,null),label:(0,W.__)("Facebook","wheel-of-life")}),(0,e.createElement)(Z.SwitchBox,{id:"switch-1",type:"facebook",checked:r.facebook,Values:r,setValues:o})),(0,e.createElement)("div",{className:"wheeloflife-field flex-row"},(0,e.createElement)(Z.SocialIcon,{icon:(0,e.createElement)(U.tL,null),label:(0,W.__)("Twitter","wheel-of-life")}),(0,e.createElement)(Z.SwitchBox,{id:"switch-2",type:"twitter",checked:r.twitter,Values:r,setValues:o})),(0,e.createElement)("div",{className:"wheeloflife-field flex-row"},(0,e.createElement)(Z.SocialIcon,{icon:(0,e.createElement)(U.yh,null),label:(0,W.__)("Linked In","wheel-of-life")}),(0,e.createElement)(Z.SwitchBox,{id:"switch-3",type:"linkedIn",checked:r.linkedIn,Values:r,setValues:o})),(0,e.createElement)("div",{className:"wheeloflife-field flex-row"},(0,e.createElement)(Z.SocialIcon,{icon:(0,e.createElement)(U.JP,null),label:(0,W.__)("Reddit","wheel-of-life")}),(0,e.createElement)(Z.SwitchBox,{id:"switch-4",type:"reddit",checked:r.reddit,Values:r,setValues:o})),(0,e.createElement)("div",{className:"wheeloflife-field flex-row"},(0,e.createElement)(Z.SocialIcon,{icon:(0,e.createElement)(U.GT,null),label:(0,W.__)("Email","wheel-of-life")}),(0,e.createElement)(Z.SwitchBox,{id:"switch-5",type:"email",checked:r.email,Values:r,setValues:o}))),(0,e.createElement)("div",{className:"wheeloflife-card-footer",align:"right"},(0,e.createElement)(Z.Button,{options:{btnStyle:"primary",type:"button",value:(0,W.__)("Save Settings","wheel-of-life")},onClick:function(){let e=new FormData;e.append("data",JSON.stringify(r)),e.append("action","saveSocialShare"),e.append("security",wolVariables.ajax_nonce),Y()({url:wolVariables.ajax_url,method:"POST",body:e}).then((e=>{!0===e.success&&(i||(Q().success(e.data),a(!0)))}))}})))),"cta"===t&&(0,e.createElement)(ge,null),(0,q.applyFilters)("wheeloflife_global_tab_content",null,r,o,t))},ye={per_page:-1,orderby:"date",order:"desc"},be=()=>{const[t,n]=(0,e.useState)("all_wheels"),[r,o]=(0,e.useState)(!1),[i,a]=(0,e.useState)(!1),[l,s]=(0,e.useState)([]),[c,u]=(0,e.useState)(0),[p,f]=(0,e.useState)(0);(0,e.useEffect)((()=>{Y()({path:(0,X.addQueryArgs)("wp/v2/wheel-submissions?status=any",ye),method:"GET"}).then((e=>{o(e)}))}),[]),(0,e.useEffect)((()=>{s(r)}),[r]),(0,e.useEffect)((()=>{Y()({path:(0,X.addQueryArgs)("wp/v2/wheel-submissions?status=trash",ye),method:"GET"}).then((e=>{a(e)}))}),[]);const[d,h]=(0,e.useState)("");(0,e.useEffect)((()=>{h(d),function(){if(""!==d){const e=r.filter((e=>e.title.rendered&&e.title.rendered.toLowerCase().includes(d)));s(e)}else s(r)}()}),[d]),(0,e.useEffect)((()=>{if(r){const e=r.filter((e=>e.status&&e.status.toLowerCase().includes("draft"))),t=r.filter((e=>e.status&&e.status.toLowerCase().includes("publish")));u(e.length),f(t.length)}}),[r]);var m={all_wheels:{label:(0,W.__)("All Submissions","wheel-of-life"),count:r.length},draft_wheels:{label:(0,W.__)("Draft","wheel-of-life"),count:c},published_wheels:{label:(0,W.__)("Published","wheel-of-life"),count:p}};return i.length>0&&(m={all_wheels:{label:(0,W.__)("All Submissions","wheel-of-life"),count:r.length},draft_wheels:{label:(0,W.__)("Draft","wheel-of-life"),count:c},published_wheels:{label:(0,W.__)("Published","wheel-of-life"),count:p},trash_wheels:{label:(0,W.__)("Trash","wheel-of-life"),count:i.length}}),(0,e.createElement)("div",{className:"wheeloflife-dashboard-container"},(0,e.createElement)("header",{className:"wheeloflife-header-wrap"},(0,e.createElement)("h1",{className:"wheeloflife-title"},(0,W.__)("All Submissions","wheel-of-life")),(0,e.createElement)(Z.SearchForm,{onKeyUp:e=>function(e){h(e.target.value)}(e),onClick:e=>(s(r),void h("")),options:{placeholder:"Search submission"}})),(0,e.createElement)("div",{className:"wheeloflife-wheel-list-wrapper"},(0,e.createElement)(Z.NavTab,{navs:m,setActiveTab:n,activeTab:t,tabId:"wheel-submission-tab",className:"tab-sticky tab-bg"}),"all_wheels"===t&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-list-items"},"Showing ",r.length," of ",r.length),(0,e.createElement)(te,{wheelData:l,setAllData:o,trashData:i,setTrashData:a,type:"wheel-submissions"})),"draft_wheels"===t&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-list-items"},"Showing ",c," of ",c),(0,e.createElement)(re,{wheelData:l,setAllData:o,trashData:i,setTrashData:a,type:"wheel-submissions"})),"published_wheels"===t&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-list-items"},"Showing ",p," of ",p),(0,e.createElement)(ie,{wheelData:l,setAllData:o,trashData:i,setTrashData:a,type:"wheel-submissions"})),"trash_wheels"===t&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-list-items"},"Showing ",i.length," of ",i.length),(0,e.createElement)(le,{wheelData:l,setAllData:o,trashData:i,setTrashData:a,setWheelTab:n,type:"wheel-submissions"}))))};k().Component,k().Component;var we=function(e,t){return"function"==typeof e?e(t):e},Ee=function(e,t){return"string"==typeof e?h(e,null,null,t):e},Ce=function(e){return e},ke=k().forwardRef;void 0===ke&&(ke=Ce);var _e=ke((function(e,n){var r=e.innerRef,o=e.navigate,i=e.onClick,a=(0,N.Z)(e,["innerRef","navigate","onClick"]),l=a.target,s=(0,t.Z)({},a,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||l&&"_self"!==l||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),o())}});return s.ref=Ce!==ke&&n||r,k().createElement("a",s)})),Se=ke((function(e,n){var r=e.component,o=void 0===r?_e:r,i=e.replace,a=e.to,l=e.innerRef,s=(0,N.Z)(e,["component","replace","to","innerRef"]);return k().createElement(L.Consumer,null,(function(e){e||c(!1);var r=e.history,u=Ee(we(a,e.location),e.location),p=u?r.createHref(u):"",f=(0,t.Z)({},s,{href:p,navigate:function(){var t=we(a,e.location),n=d(e.location)===d(Ee(t));(i||n?r.replace:r.push)(t)}});return Ce!==ke?f.ref=n||l:f.innerRef=l,k().createElement(o,f)}))})),xe=function(e){return e},Oe=k().forwardRef;void 0===Oe&&(Oe=xe),Oe((function(e,n){var r=e["aria-current"],o=void 0===r?"page":r,i=e.activeClassName,a=void 0===i?"active":i,l=e.activeStyle,s=e.className,u=e.exact,p=e.isActive,f=e.location,d=e.sensitive,h=e.strict,m=e.style,g=e.to,v=e.innerRef,y=(0,N.Z)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return k().createElement(L.Consumer,null,(function(e){e||c(!1);var r=f||e.location,i=Ee(we(g,r),r),b=i.pathname,w=b&&b.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),E=w?function(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,l=void 0!==a&&a,s=n.sensitive,c=void 0!==s&&s;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=D[n]||(D[n]={});if(r[e])return r[e];var o=[],i={regexp:O()(e,o,t),keys:o};return F<B&&(r[e]=i,F++),i}(n,{end:i,strict:l,sensitive:c}),o=r.regexp,a=r.keys,s=o.exec(e);if(!s)return null;var u=s[0],p=s.slice(1),f=e===u;return i&&!f?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:f,params:a.reduce((function(e,t,n){return e[t.name]=p[n],e}),{})}}),null)}(r.pathname,{path:w,exact:u,sensitive:d,strict:h}):null,C=!!(p?p(E,r):E),_="function"==typeof s?s(C):s,S="function"==typeof m?m(C):m;C&&(_=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(_,a),S=(0,t.Z)({},S,l));var x=(0,t.Z)({"aria-current":C&&o||null,className:_,style:S,to:i},y);return xe!==Oe?x.ref=n||v:x.innerRef=v,k().createElement(Se,x)}))}));const Ne=(0,q.applyFilters)("wheeloflife_sidebar",{wheels_of_life_all_lists:{label:(0,W.__)("All Wheel of Life","wheel-of-life"),path:"wheels_of_life_all_lists"},wheels_of_life_global_settings:{label:(0,W.__)("Settings","wheel-of-life"),path:"wheels_of_life_global_settings"},wheels_of_life_submissions:{label:(0,W.__)("Submissions","wheel-of-life"),path:"wheels_of_life_submissions"}});const Ae=function(){let t=sessionStorage.getItem("wol_sidebar_collapsed");return(0,e.useEffect)((()=>{let e=document.querySelector("body"),n=document.getElementById("wol-sidebar-toggle-btn");"collapsed"==t?(e.classList.add("wol-sidebar-collapsed"),e.style.setProperty("--wol-sidebar-width","85px"),n.classList.add("collapsed-in")):(e.classList.remove("wol-sidebar-collapsed"),e.style.setProperty("--wol-sidebar-width","320px"),n.classList.remove("collapsed-in"))})),(0,e.createElement)("div",{className:"wheeloflife-sidebar-main"},(0,e.createElement)("div",{className:"wheeloflife-sidebar-inner-wrapper"},(0,e.createElement)("div",{className:"wheeloflife-sidebar-header"},(0,e.createElement)("div",{className:"wheeloflife-brand-wrap"},(0,e.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M12 2C12.5523 2 13 1.55228 13 1C13 0.447715 12.5523 0 12 0C11.4477 0 11 0.447715 11 1C11 1.55228 11.4477 2 12 2Z",fill:"#038181"}),(0,e.createElement)("path",{d:"M12 24C12.5523 24 13 23.5523 13 23C13 22.4477 12.5523 22 12 22C11.4477 22 11 22.4477 11 23C11 23.5523 11.4477 24 12 24Z",fill:"#038181"}),(0,e.createElement)("path",{d:"M23 13C23.5523 13 24 12.5523 24 12C24 11.4477 23.5523 11 23 11C22.4477 11 22 11.4477 22 12C22 12.5523 22.4477 13 23 13Z",fill:"#038181"}),(0,e.createElement)("path",{d:"M1 13C1.55228 13 2 12.5523 2 12C2 11.4477 1.55228 11 1 11C0.447715 11 0 11.4477 0 12C0 12.5523 0.447715 13 1 13Z",fill:"#038181"}),(0,e.createElement)("path",{d:"M19.78 5.21997C20.3323 5.21997 20.78 4.77226 20.78 4.21997C20.78 3.66769 20.3323 3.21997 19.78 3.21997C19.2277 3.21997 18.78 3.66769 18.78 4.21997C18.78 4.77226 19.2277 5.21997 19.78 5.21997Z",fill:"#038181"}),(0,e.createElement)("path",{d:"M4.21997 20.78C4.77226 20.78 5.21997 20.3323 5.21997 19.78C5.21997 19.2277 4.77226 18.78 4.21997 18.78C3.66769 18.78 3.21997 19.2277 3.21997 19.78C3.21997 20.3323 3.66769 20.78 4.21997 20.78Z",fill:"#038181"}),(0,e.createElement)("path",{d:"M19.78 20.78C20.3323 20.78 20.78 20.3323 20.78 19.78C20.78 19.2277 20.3323 18.78 19.78 18.78C19.2277 18.78 18.78 19.2277 18.78 19.78C18.78 20.3323 19.2277 20.78 19.78 20.78Z",fill:"#038181"}),(0,e.createElement)("path",{d:"M4.21997 5.21997C4.77226 5.21997 5.21997 4.77226 5.21997 4.21997C5.21997 3.66769 4.77226 3.21997 4.21997 3.21997C3.66769 3.21997 3.21997 3.66769 3.21997 4.21997C3.21997 4.77226 3.66769 5.21997 4.21997 5.21997Z",fill:"#038181"}),(0,e.createElement)("path",{d:"M12 2C10.0222 2 8.08879 2.58649 6.4443 3.6853C4.79981 4.78412 3.51809 6.3459 2.76121 8.17316C2.00434 10.0004 1.8063 12.0111 2.19215 13.9509C2.578 15.8907 3.53041 17.6725 4.92894 19.0711C6.32746 20.4696 8.10929 21.422 10.0491 21.8079C11.9889 22.1937 13.9996 21.9957 15.8268 21.2388C17.6541 20.4819 19.2159 19.2002 20.3147 17.5557C21.4135 15.9112 22 13.9778 22 12C22 9.34784 20.9464 6.8043 19.0711 4.92893C17.1957 3.05357 14.6522 2 12 2V2ZM12.5 4.025C14.2737 4.13805 15.9584 4.8422 17.285 6.025L13.735 9.57C13.366 9.31287 12.9439 9.14199 12.5 9.07V4.025ZM11.5 4.025V9.025C11.0561 9.09699 10.634 9.26787 10.265 9.525L6.715 5.98C8.04771 4.81353 9.73177 4.12548 11.5 4.025V4.025ZM6 6.715L9.545 10.265C9.28787 10.634 9.11699 11.0561 9.045 11.5H4.045C4.14548 9.73176 4.83353 8.0477 6 6.715V6.715ZM4 12.5H9C9.07199 12.9439 9.24287 13.366 9.5 13.735L5.95501 17.285C4.79759 15.9489 4.11848 14.2652 4.02501 12.5H4ZM11.5 20C9.72628 19.8869 8.0416 19.1828 6.715 18L10.265 14.455C10.634 14.7121 11.0561 14.883 11.5 14.955V20ZM10 12C10 11.6044 10.1173 11.2178 10.3371 10.8889C10.5568 10.56 10.8692 10.3036 11.2346 10.1522C11.6001 10.0009 12.0022 9.96126 12.3902 10.0384C12.7781 10.1156 13.1345 10.3061 13.4142 10.5858C13.6939 10.8655 13.8844 11.2219 13.9616 11.6098C14.0387 11.9978 13.9991 12.3999 13.8478 12.7654C13.6964 13.1308 13.44 13.4432 13.1111 13.6629C12.7822 13.8827 12.3956 14 12 14C11.4696 14 10.9609 13.7893 10.5858 13.4142C10.2107 13.0391 10 12.5304 10 12ZM12.5 20V15C12.9439 14.928 13.366 14.7571 13.735 14.5L17.285 18.045C15.9523 19.2115 14.2682 19.8995 12.5 20V20ZM18 17.31L14.455 13.76C14.7121 13.391 14.883 12.9689 14.955 12.525H19.955C19.8491 14.2845 19.1614 15.9589 18 17.285V17.31ZM14.955 11.5C14.883 11.0561 14.7121 10.634 14.455 10.265L18 6.715C19.1828 8.04159 19.887 9.72628 20 11.5H14.955Z",fill:"#038181"})),(0,e.createElement)("span",{className:"wheeloflife-brand-name"},(0,W.__)("Wheel of Life","wheel-of-life"))),(0,e.createElement)("div",{className:"wheeloflife-create-wheel-btn-wrap"},(0,e.createElement)("button",{type:"button",className:"wheeloflife-btn primary create-wheel-btn",onClick:function(){let e=new FormData;e.append("action","addNewPost"),e.append("security",wolVariables.ajax_nonce),Y()({url:wolVariables.ajax_url,method:"POST",body:e}).then((e=>{!0===e.success&&(location.href=e.data)}))}},(0,e.createElement)("i",null,(0,e.createElement)(U.I8,null)),(0,e.createElement)("span",{className:"btn-label"},(0,W.__)("Create New Wheel","wheel-of-life"))))),(0,e.createElement)("div",{className:"wheeloflife-menu-wrap"},(0,e.createElement)("ul",{className:"wheeloflife-menu-list"},Object.values(Ne).map((function(t,n){return(0,e.createElement)("li",{className:(r=t.path,new URLSearchParams(z().search).get("page")===r?"active":""),key:n},(0,e.createElement)(Se,{to:`/wp-admin/admin.php?page=${t.path}`},(0,e.createElement)("i",null,(0,e.createElement)(U.Ts,{menuName:t.path})),(0,e.createElement)("span",{className:"wol-page-label"},t.label)));var r}))))),(0,e.createElement)("div",{className:"wheeloflife-sidebar-footer-wrapper"},(0,e.createElement)("div",{className:"wheeloflife-upgrade-container"},(0,e.createElement)("div",{className:"wheeloflife-title-wrap"},(0,e.createElement)("span",{className:"wheeloflife-icon"},(0,e.createElement)(U.Mh,null)),(0,e.createElement)("span",{className:"wheeloflife-title"},(0,e.createElement)("a",{target:"_blank",href:"https://wheeloflife.pro/support/"},(0,W.__)("Support","wheel-of-life")))),(0,e.createElement)("div",{className:"wheeloflife-title-wrap"},(0,e.createElement)("span",{className:"wheeloflife-icon"},(0,e.createElement)(U.$B,null)),(0,e.createElement)("span",{className:"wheeloflife-title"},(0,e.createElement)("a",{target:"_blank",href:"https://wheeloflife.pro/docs/"},(0,W.__)("Documentation","wheel-of-life")))),!wolVariables.proActive&&(0,e.createElement)("div",{className:"wheeloflife-upgrade-area"},(0,e.createElement)("div",{className:"wheeloflife-title-wrap"},(0,e.createElement)("span",{className:"wheeloflife-icon upgrade-icon"},(0,e.createElement)(U.cD,null))),(0,e.createElement)("div",{className:"wheeloflife-upgrade-box"},(0,e.createElement)("p",null,(0,W.__)("Upgrade to Pro version to add user dashboard, manage profiles, configure email templates, analytics dashboard and more exciting features.","wheel-of-life")),(0,e.createElement)("a",{target:"_blank",href:"https://wheeloflife.pro/pricing/",className:"wheeloflife-btn primary"},(0,W.__)("Upgrade Now","wheel-of-life")))))),(0,e.createElement)("button",{type:"button",id:"wol-sidebar-toggle-btn",className:"wol-sidebar-toggle-btn",onClick:e=>{let n=document.querySelector("body");"collapsed"==t?(n.classList.remove("wol-sidebar-collapsed"),n.style.setProperty("--wol-sidebar-width","320px"),e.target.classList.remove("collapsed-in"),sessionStorage.setItem("wol_sidebar_collapsed",""),t=""):(n.classList.add("wol-sidebar-collapsed"),n.style.setProperty("--wol-sidebar-width","85px"),e.target.classList.add("collapsed-in"),sessionStorage.setItem("wol_sidebar_collapsed","collapsed"),t="collapsed")}},(0,e.createElement)(U.y2,null)))},Pe=function(e){void 0===e&&(e={}),g||c(!1);var n,r=window.history,o=(-1===(n=window.navigator.userAgent).indexOf("Android 2.")&&-1===n.indexOf("Android 4.0")||-1===n.indexOf("Mobile Safari")||-1!==n.indexOf("Chrome")||-1!==n.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),a=e,l=a.forceRefresh,s=void 0!==l&&l,E=a.getUserConfirmation,C=void 0===E?v:E,k=a.keyLength,_=void 0===k?6:k,S=e.basename?f(u(e.basename)):"";function x(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return S&&(i=p(i,S)),h(i,r,n)}function O(){return Math.random().toString(36).substr(2,_)}var N=m();function A(e){(0,t.Z)(U,e),U.length=r.length,N.notifyListeners(U.location,U.action)}function P(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||M(x(e.state))}function j(){M(x(w()))}var T=!1;function M(e){T?(T=!1,A()):N.confirmTransitionTo(e,"POP",C,(function(t){t?A({action:"POP",location:e}):function(e){var t=U.location,n=R.indexOf(t.key);-1===n&&(n=0);var r=R.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(T=!0,B(o))}(e)}))}var L=x(w()),R=[L.key];function D(e){return S+d(e)}function B(e){r.go(e)}var F=0;function I(e){1===(F+=e)&&1===e?(window.addEventListener(y,P),i&&window.addEventListener(b,j)):0===F&&(window.removeEventListener(y,P),i&&window.removeEventListener(b,j))}var z=!1,U={length:r.length,action:"POP",location:L,createHref:D,push:function(e,t){var n="PUSH",i=h(e,t,O(),U.location);N.confirmTransitionTo(i,n,C,(function(e){if(e){var t=D(i),a=i.key,l=i.state;if(o)if(r.pushState({key:a,state:l},null,t),s)window.location.href=t;else{var c=R.indexOf(U.location.key),u=R.slice(0,c+1);u.push(i.key),R=u,A({action:n,location:i})}else window.location.href=t}}))},replace:function(e,t){var n="REPLACE",i=h(e,t,O(),U.location);N.confirmTransitionTo(i,n,C,(function(e){if(e){var t=D(i),a=i.key,l=i.state;if(o)if(r.replaceState({key:a,state:l},null,t),s)window.location.replace(t);else{var c=R.indexOf(U.location.key);-1!==c&&(R[c]=i.key),A({action:n,location:i})}else window.location.replace(t)}}))},go:B,goBack:function(){B(-1)},goForward:function(){B(1)},block:function(e){void 0===e&&(e=!1);var t=N.setPrompt(e);return z||(I(1),z=!0),function(){return z&&(z=!1,I(-1)),t()}},listen:function(e){var t=N.appendListener(e);return I(1),function(){I(-1),t()}}};return U}();function je(t){let{path:n}=t;return"wheels_of_life_all_lists"===n?(0,e.createElement)(ce,null):"wheels_of_life_global_settings"===n?(0,e.createElement)(ve,null):"wheels_of_life_submissions"===n?(0,e.createElement)(be,null):(0,q.applyFilters)("wheel_of_life_sub_menu_page_redirect",null,n)}function Te(){let t=new URLSearchParams(z().search);return(0,e.createElement)(je,{path:t.get("page")})}const Me=function(){return(0,e.createElement)(R,{history:Pe},(0,e.createElement)("div",{className:"wheeloflife-main-wrapper has-sidebar"},(0,e.createElement)(Ae,null),(0,e.createElement)("div",{className:"wheeloflife-inner-wrapper"},(0,e.createElement)(Te,null))))};function Le(){return(0,e.createElement)(Me,null)}!function(){let t=document.getElementById("wheelOfLifeAdminRoot");document.addEventListener("DOMContentLoaded",(function(){null!==t&&(0,e.render)((0,e.createElement)(Le,null),t)}))}()})(),(wheeloflifeExports=void 0===wheeloflifeExports?{}:wheeloflifeExports).globalApp=r})();1 var wheeloflifeExports;(()=>{var e={1316:(e,t,n)=>{var r={"./ab-background.js":5241,"./ab-border.js":9889,"./ab-box-shadow.js":568,"./ab-radio.js":4724,"./ab-slider.js":8554,"./ab-spacing.js":5043,"./ab-switch.js":9391};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=1316},268:(e,t,n)=>{var r={"./ab-background.js":5671,"./ab-border.js":3003,"./ab-box-shadow.js":1881,"./ab-color-picker.js":3479,"./ab-image-uploader.js":1950,"./ab-radio.js":9788,"./ab-slider.js":6238,"./ab-spacing.js":453,"./ab-switch.js":7652};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=268},9733:e=>{"use strict";function t(){return null}function n(){return t}t.isRequired=t,e.exports={and:n,between:n,booleanSome:n,childrenHavePropXorChildren:n,childrenOf:n,childrenOfType:n,childrenSequenceOf:n,componentWithName:n,disallowedIf:n,elementType:n,empty:n,explicitNull:n,forbidExtraProps:Object,integer:n,keysOf:n,mutuallyExclusiveProps:n,mutuallyExclusiveTrueProps:n,nChildren:n,nonNegativeInteger:t,nonNegativeNumber:n,numericString:n,object:n,or:n,predicate:n,range:n,ref:n,requiredBy:n,restrictedProp:n,sequenceOf:n,shape:n,stringEndsWith:n,stringStartsWith:n,uniqueArray:n,uniqueArrayOf:n,valuesOf:n,withShape:n}},8341:(e,t,n)=>{e.exports=n(9733)},6584:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>g,fg:()=>h});var r=n(7462),o=n(9307),i=n(5736),a=n(4184),l=n.n(a),s=n(251),c=n.n(s),u=n(5068),p=n(2843);const f=n(1316);f.keys().forEach(f);const d=e=>{let t=f.keys().map((e=>e.replace(/^\.\//,"").replace(/\.js$/,""))).indexOf(e);return t>-1&&f.keys()[t]},h=e=>{const t={};return d(e.type)?f(d(e.type)).default:t[e.type]?t[e.type]:null},m=e=>{let{option:t,value:n}=e;return void 0===n?t.value:n},g=e=>{let{option:t,value:n,values:a,onChange:s,onChangeFor:f,hasRevertButton:d,id:g,purpose:v}=e;const[y,b]=(0,o.useState)(wp.customize&&wp.customize.previewedDevice?wp.customize.previewedDevice():"desktop"),w=()=>{b(wp.customize&&wp.customize.previewedDevice?wp.customize.previewedDevice():"desktop")},E=e=>{b(e),wp.customize&&wp.customize.previewedDevice.set(e)};(0,o.useEffect)((()=>{if(("ct-typography"===t.type||(0,p.W)(t))&&wp.customize)return setTimeout((()=>wp.customize.previewedDevice.bind(w)),1e3),()=>{("ct-typography"===t.type||(0,p.W)(t))&&wp.customize&&wp.customize.previewedDevice.unbind(w)}}),[]);let C=h(t),k={content:null,option:t};const _=(0,p.T)(m({value:n,option:t}),(0,p.W)(t)),S=(0,p.W)(t,{ignoreHidden:!0})?(0,p.Oi)({option:t,value:_,device:y}):_,x=e=>{t.triggerRefreshOnChange&&wp.customize&&wp.customize.previewer&&wp.customize.previewer.refresh(),t.switchDeviceOnChange&&wp.customize&&wp.customize.previewedDevice()!==t.switchDeviceOnChange&&wp.customize.previewedDevice.set(t.switchDeviceOnChange),t.sync&&(Object.keys(t.sync).length>0||Array.isArray(t.sync))&&wp.customize&&wp.customize.previewer&&wp.customize.previewer.send("ct:sync:refresh_partial",{id:t.sync.id||t.id,option:t}),s(e)},O=e=>{const r=(0,p.T)(m({value:n,option:t}),(0,p.W)(t));x((0,p.W)(t,{ignoreHidden:!0})?{...r,["tablet"===y&&"skip"===(0,p.S0)("tablet",t.responsive)?"mobile":y]:e,..."desktop"===y?Object.keys(r).reduce(((n,o)=>({...n,..."desktop"!==o&&"__changed"!==o&&Object.keys((0,p.T)(t.value)).reduce(((e,n)=>!!e&&(0,p.T)(t.value)[n]===(0,p.T)(t.value).desktop),!0)&&-1===(r.__changed||[]).indexOf("tablet")?{[o]:e}:{}})),{}):{},..."tablet"===y&&"skip"!==(0,p.S0)("tablet",t.responsive)?Object.keys(r).reduce(((n,o)=>({...n,..."desktop"!==o&&"tablet"!==o&&"__changed"!==o&&Object.keys((0,p.T)(t.value)).reduce(((e,n)=>!!e&&(0,p.T)(t.value)[n]===(0,p.T)(t.value).desktop),!0)&&-1===(r.__changed||[]).indexOf(o)?{[o]:e}:{}})),{}):{},__changed:[...r.__changed||[],..."desktop"!==y?[y]:[]].filter(((e,t,n)=>n.indexOf(e)===t))}:e)};if(!C)return(0,o.createElement)("div",null,"Unimplemented option: ",t.type);let N={design:!0,label:!0,wrapperAttr:{}},A=()=>null,P=null,j=()=>null,M=()=>({});N={...N,...C.renderingConfig||{}},t.design&&(N.design=t.design),C.LabelToolbar&&(A=C.LabelToolbar),C.ControlEnd&&(j=C.ControlEnd),C.MetaWrapper&&(P=C.MetaWrapper),C.sectionClassName&&(M=C.sectionClassName);let T=(0,o.createElement)(o.Fragment,null,k&&k.content,(0,o.createElement)(C,{key:g,option:{...t,value:(0,p.W)(t,{ignoreHidden:!0})?(0,p.Oi)({device:y,option:t,value:(0,p.T)(t.value||"")}):(0,p.T)(t.value||"",(0,p.W)(t))},value:S,id:g,values:a,onChangeFor:f,device:y,onChange:O}));if(!N.design||"none"===N.design)return T;let L=(0,u.m)({id:g,option:t,values:a,renderingConfig:N}),R=-1!==Object.keys(t).indexOf("desc")&&t.desc,D=-1!==Object.keys(t).indexOf("link")&&(t.link||" ");const B="boolean"==typeof N.design?"block":N.design;if("compact"===N.design)return(0,o.createElement)("section",t.sectionAttr||{},L&&(0,o.createElement)("label",null,L),((0,p.W)(t)&&(0,p.S0)(y,t.responsive)||!(0,p.W)(t))&&T,D&&(0,o.createElement)("a",(0,r.Z)({dangerouslySetInnerHTML:{__html:D}},t.linkAttr||{})));const F=function(){let{wrapperAttr:{className:e,...a}={},...s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",(0,r.Z)({className:l()("ct-control",e,{}),"data-design":B},t.divider?{"data-divider":t.divider}:{},(0,p.W)(t)&&!(0,p.S0)(y,t.responsive)||"disabled"===t.state?{"data-state":"disabled"}:{},t.wrapperAttr||{},a),(0,o.createElement)("div",{className:"components-base-control__label"},L&&(0,o.createElement)("label",null,L),"ct-image-picker"!==t.type&&"ct-layers"!==t.type&&"ab-image-uploader"!==t.type&&"ct-panel"!==t.type&&d&&!t.disableRevertButton&&(0,o.createElement)("button",{type:"button",disabled:c()(t.value,m({value:n,option:t})),className:"rara-revert",onClick:()=>x(t.value)}),(0,o.createElement)(A,{option:t,value:S,id:g,onChange:O}),(0,p.W)(t,{ignoreHidden:!0})&&B.indexOf("block")>-1&&(0,o.createElement)(p.ZP,{device:y,responsiveDescriptor:t.responsive,setDevice:E})),(0,p.W)(t)&&!(0,p.S0)(y,t.responsive)&&(0,o.createElement)("div",{className:"ct-disabled-notification"},t.disabledDeviceMessage||(0,i.__)("Option can't be edited for current device","wheel-of-life")),((0,p.W)(t)&&(0,p.S0)(y,t.responsive)||!(0,p.W)(t))&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("section",(0,r.Z)({},t.sectionAttr||{},{className:l()({"ct-responsive-container":(0,p.W)(t,{ignoreHidden:!0})&&"inline"===B},M({design:B,option:t}),(t.sectionAttr||{}).class||"")}),(0,p.W)(t,{ignoreHidden:!0})&&"inline"===B&&(0,o.createElement)(p.ZP,{device:y,responsiveDescriptor:t.responsive,setDevice:E}),T,D&&(0,o.createElement)("a",(0,r.Z)({dangerouslySetInnerHTML:{__html:D}},t.linkAttr||{}))),(0,o.createElement)(j,null),R&&(0,o.createElement)("div",{dangerouslySetInnerHTML:{__html:R},className:"ct-option-description"}))))};return P?(0,o.createElement)(P,{id:g,option:t,value:S,onChangeFor:f,values:a,getActualOption:F}):F()}},2085:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(9307),o=n(7462),i=n(5609);const a=e=>{let{onChange:t,value:n,value:{color:o}}=e;return(0,r.createElement)("div",null,(0,r.createElement)(i.ColorPicker,{color:o,enableAlpha:!0,onChangeComplete:e=>{e.rgb?t({...n,color:1===e.rgb.a?e.hex:`rgba(${e.rgb.r}, ${e.rgb.g}, ${e.rgb.b}, ${e.rgb.a})`}):t({...n,color:1===o.getAlpha()?hex:o.toRgbString()})}}))};var l=n(4184),s=n.n(l),c=(n(5736),n(9368));const u=e=>e.noColorTransparent?"transparent":"CT_CSS_SKIP_RULE",p=e=>{let{containerRef:t,el:n,value:i,picker:l,onChange:c,option:p,style:f,wrapperProps:d={},inline_modal:h,appendToBody:m}=e;const g=(0,r.useMemo)((()=>i.color===u(p)?{color:"",key:"empty"}:{key:"color",color:i.color}),[i,p,l]),v=(0,r.useMemo)((()=>d.ref&&d.ref.current&&n&&((e,t)=>{if(!e)return;if(!t)return;let n=getComputedStyle(e),r=parseFloat(n.left);return{"--option-modal-arrow-position":(t=t.firstElementChild.getBoundingClientRect()).left+t.width/2-r-6+"px"}})(d.ref.current,n.current)),[d.ref&&d.ref.current,n&&n.current]);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",(0,o.Z)({tabIndex:"0",className:s()("wheeloflife-color-picker-modal",{"wheeloflife-option-modal":!h&&m},p.modalClassName),style:{...v,...f||{}}},d),(0,r.createElement)(a,{key:g.key,onChange:e=>c(e),value:{...i,color:g.color}})))};var f=n(7522),d=n(3431),h=n.n(d);const m=e=>{let{option:t,value:n,onChange:o,picker:i,onPickingChange:a,stopTransitioning:l,innerRef:d,containerRef:m,modalRef:g,isTransitioning:v,isPicking:y}=e;const b=(0,r.useRef)(),{appendToBody:w=!0}=t,{refreshPopover:E,styles:C,popoverProps:k}=(0,c.Z)({contentRef:g,ref:m||{},defaultHeight:379,shouldCalculate:!t.inline_modal||w});if(t.inline_modal)return(0,r.createElement)(p,{containerRef:m,option:t,onChange:o,picker:i,value:n,inline_modal:!!t.inline_modal});let _=null;return v!==i.id&&(y||"").split(":")[0]!==i.id||(_=(0,r.createPortal)((0,r.createElement)(f.uT,{items:y,onRest:()=>l(),config:{duration:100,easing:h()(.25,.1,.25,1)},from:-1===(y||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1},enter:-1===(y||"").indexOf(":")?{transform:"scale3d(1, 1, 1)",opacity:1}:{opacity:1},leave:-1===(y||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1}},(e=>(e||"").split(":")[0]===i.id&&(e=>(0,r.createElement)(p,{style:{...e,...w?C:{}},option:t,onChange:o,picker:i,value:n,el:b,wrapperProps:w?k:{ref:g},appendToBody:w})))),w?document.body:b.current.closest("section").parentNode)),(0,r.createElement)("div",{ref:e=>{b.current=e,d&&(d.current=e)},className:s()("wheeloflife-color-picker-single",{"ct-no-color":(n||{}).color===u(t)})},(0,r.createElement)("span",{tabIndex:"0"},(0,r.createElement)("span",{tabIndex:"0",onClick:e=>{e.stopPropagation(),E();let t=y?y.split(":")[0]===i.id?null:`${i.id}:${y.split(":")[0]}`:i.id;a(t)},style:{background:(n||{}).color}},(0,r.createElement)("i",{className:"wheeloflife-tooltip-top"},i.title))),_)}},1784:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9307),o=n(2085),i=n(2275),a=n(7465);const l=e=>{let{option:t,values:n,value:l,onChange:s}=e;const[{isPicking:c,isTransitioning:u},p]=(0,r.useState)({isPicking:null,isTransitioning:null}),f=(0,r.useRef)(),d=(0,r.useRef)();return(0,r.createElement)(i.Z,{useCapture:!1,display:"inline-block",disabled:!c,wrapperProps:{ref:f},className:"wheeloflife-color-picker-container",additionalRefs:[d],onOutsideClick:()=>{p((e=>{let{isPicking:t}=e;return{isPicking:null,isTransitioning:t}}))}},t.pickers.filter((e=>!e.condition||(0,a.Nj)((0,a.KY)(e.condition),n))).map((e=>(0,r.createElement)(o.Z,{containerRef:f,picker:e,key:e.id,option:t,isPicking:c,modalRef:d,isTransitioning:u,onPickingChange:t=>p({isTransitioning:e.id,isPicking:t}),stopTransitioning:()=>p((e=>({...e,isTransitioning:!1}))),onChange:t=>s({...l,[e.id]:t}),value:l[e.id]||t.value[e.id]}))))}},5068:(e,t,n)=>{"use strict";n.d(t,{m:()=>o});var r=n(7465);const o=e=>{let{id:t,option:n,values:o,renderingConfig:i}=e,a=-1===Object.keys(n).indexOf("label")?(l=t,(l=null==l?"":String(l)).charAt(0).toUpperCase()+l.slice(1)).replace(/\_|\-/g," "):n.label;var l;return a!==a.toString()&&(a=Object.keys(a).reduce(((e,t)=>e||((0,r.Nj)((0,r.KY)(a[t]),o)?t:e)),null)||Object.keys(a)[0]),""===a&&(a=!0),i&&!i.label&&(a=!1),a}},5241:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(9307),o=n(5736),i=n(4184),a=n.n(i),l=n(2275),s=n(9368),c=n(6584);(0,o.__)("Hideout","wheel-of-life"),(0,o.__)("Triangles","wheel-of-life"),(0,o.__)("Bubbles","wheel-of-life"),(0,o.__)("Wiggle","wheel-of-life"),(0,o.__)("Polka Dots","wheel-of-life"),(0,o.__)("Overlaping Circles","wheel-of-life"),(0,o.__)("Texture","wheel-of-life"),(0,o.__)("Diagonal Lines","wheel-of-life"),(0,o.__)("Rain","wheel-of-life"),(0,o.__)("Stripes","wheel-of-life"),(0,o.__)("Diagonal Stripes","wheel-of-life"),(0,o.__)("Intersecting Circles","wheel-of-life"),(0,o.__)("Bank Note","wheel-of-life"),(0,o.__)("Zig Zag","wheel-of-life"),(0,o.__)("Endless Clouds","wheel-of-life"),(0,o.__)("Honey Comb","wheel-of-life"),(0,o.__)("Cross Stripes","wheel-of-life"),(0,o.__)("Autumn","wheel-of-life");const u=e=>{let{option:t,value:n,onChange:i,setOutsideClickFreezed:a}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(c.ZP,{value:n.background_image,values:n,option:{id:"background_image",label:!1,type:"ab-image-uploader",value:t.value.background_image,has_position_picker:!0,emptyLabel:(0,o.__)("Select Image","wheel-of-life"),filledLabel:(0,o.__)("Change Image","wheel-of-life"),onFrameOpen:()=>{a(!0)},onFrameClose:()=>{a(!1)}},hasRevertButton:!1,onChange:e=>i({...n,background_image:e})}),(0,r.createElement)(c.ZP,{value:n.background_repeat,values:n,option:{id:"background_repeat",label:(0,o.__)("Background Repeat","wheel-of-life"),attr:{"data-type":"repeat"},type:"ab-radio",view:"text",design:"block",value:t.value.background_repeat,choices:{"no-repeat":'<svg viewBox="0 0 16 16"><rect x="6" y="6" width="4" height="4"/></svg>',"repeat-x":'<svg viewBox="0 0 16 16"><rect y="6" width="4" height="4"/><rect x="6" y="6" width="4" height="4"/><rect x="12" y="6" width="4" height="4"/></svg>',"repeat-y":'<svg viewBox="0 0 16 16"><rect x="6" width="4" height="4"/><rect x="6" y="6" width="4" height="4"/><rect x="6" y="12" width="4" height="4"/></svg>',repeat:'<svg viewBox="0 0 16 16"><path d="M0,0h4v4H0V0z M6,0h4v4H6V0z M12,0h4v4h-4V0z M0,6h4v4H0V6z M6,6h4v4H6V6z M12,6h4v4h-4V6z M0,12h4v4H0V12z M6,12h4v4H6V12zM12,12h4v4h-4V12z"/></svg>'}},hasRevertButton:!1,onChange:e=>i({...n,background_repeat:e})}),(0,r.createElement)(c.ZP,{value:n.background_size,values:n,option:{id:"background_size",label:(0,o.__)("Background Size","wheel-of-life"),type:"ab-radio",view:"text",design:"block",value:t.value.background_size,choices:{auto:(0,o.__)("Auto","wheel-of-life"),cover:(0,o.__)("Cover","wheel-of-life"),contain:(0,o.__)("Contain","wheel-of-life")}},hasRevertButton:!1,onChange:e=>i({...n,background_size:e})}),(0,r.createElement)(c.ZP,{value:n.background_attachment,values:n,option:{id:"background_size",label:(0,o.__)("Background Attachment","wheel-of-life"),type:"ab-radio",view:"text",design:"block",value:t.value.background_attachment,choices:{scroll:(0,o.__)("Scroll","wheel-of-life"),fixed:(0,o.__)("Fixed","wheel-of-life"),inherit:(0,o.__)("Inherit","wheel-of-life")}},hasRevertButton:!1,onChange:e=>i({...n,background_attachment:e})}),n.background_image.url&&(0,r.createElement)(c.ZP,{value:n.overlayColor,values:n,option:{id:"overlayColor",label:(0,o.__)("Image Overlay Color","wheel-of-life"),type:"ab-color-picker",design:"inline",value:t.value.overlayColor,pickers:[{title:(0,o.__)("Initial","wheel-of-life"),id:"default"}],skipArrow:!0,appendToBody:!1},hasRevertButton:!1,onChange:e=>i({...n,overlayColor:e})}))};var p=n(9715);const f=e=>{let{option:t,value:n,isOpen:i,onChange:l,setOutsideClickFreezed:s}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("ul",{className:"ct-modal-tabs",onMouseUp:e=>{e.preventDefault()}},["color","gradient","image"].map((e=>(0,r.createElement)("li",{"data-type":e,key:e,className:a()({active:e===n.background_type||"image"===e&&("pattern"===n.background_type||"image"===n.background_type)}),onClick:()=>l({...n,background_type:e,..."gradient"===e?{gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)"}:{}})},{color:(0,o.__)("Color","wheel-of-life"),gradient:(0,o.__)("Gradient","wheel-of-life"),image:(0,o.__)("Image","wheel-of-life")}[e])))),(0,r.createElement)("div",{className:a()({"ct-image-tab ct-options-container":"image"===n.background_type||"pattern"===n.background_type,"ct-gradient-tab wheeloflife-color-picker-modal":"gradient"===n.background_type,"ct-color-tab":"color"===n.background_type})},("image"===n.background_type||"pattern"===n.background_type)&&(0,r.createElement)("ul",{className:"ct-radio-option ct-buttons-group",onMouseUp:e=>{e.preventDefault()}},["image","pattern"].map((e=>(0,r.createElement)("li",{"data-type":e,key:e,className:a()({active:e===n.background_type}),onClick:()=>l({...n,background_type:e})},{pattern:(0,o.__)("Pattern","wheel-of-life"),image:(0,o.__)("Image","wheel-of-life")}[e])))),"image"===n.background_type&&(0,r.createElement)(u,{setOutsideClickFreezed:s,option:t,onChange:l,value:n}),"gradient"===n.background_type&&(0,r.createElement)(p.Z,{value:n,onChange:l}),"gradient"!==n.background_type&&(0,r.createElement)(c.ZP,{value:n.backgroundColor,values:n,option:{id:"backgroundColor",label:"color"!==n.background_type&&(0,o.__)("Background Color","wheel-of-life"),type:"ab-color-picker",skipNoColorPill:!0,design:"color"===n.background_type?"none":"inline",value:t.value.backgroundColor,pickers:[{title:(0,o.__)("Initial","wheel-of-life"),id:"default"}],inline_modal:"color"===n.background_type,skipArrow:!0,appendToBody:!1},hasRevertButton:!1,onChange:e=>l({...n,backgroundColor:e})})))},d=e=>{let{option:t,value:n,onChange:i}=e;const[c,u]=(0,r.useState)(!1),[p,d]=(0,r.useState)(!1),h=(0,r.useRef)();n=(e=>!e.background_type&&e[Object.keys(e)[0]].color?{background_type:"color",background_pattern:"type-1",background_image:{attachment_id:null,x:0,y:0},background_repeat:"no-repeat",background_size:"auto",background_attachment:"scroll",patternColor:{default:{color:"#e5e7ea"}},backgroundColor:{default:e[Object.keys(e)[0]]}}:e)(n);const m="color"===n.background_type&&("CT_CSS_SKIP_RULE"===n.backgroundColor.default.color||"transparent"===n.backgroundColor.default.color),{styles:g,popoverProps:v}=(0,s.Z)({ref:h,defaultHeight:434,shouldCalculate:h&&h.current});return(0,r.createElement)("div",{ref:h,className:a()("ct-background",{active:c})},(0,r.createElement)("div",{className:a()("ct-background-preview",{"no-color":m}),onClick:e=>{e.preventDefault(),u(!c),"color"===n.background_type&&("CT_CSS_SKIP_RULE"!==n.backgroundColor.default.color&&"transparent"!==n.backgroundColor.default.color||i({...n,backgroundColor:{default:{color:"#ffffff"}}}))},"data-background-type":n.background_type,style:{...n.backgroundColor.default.color.indexOf("CT_CSS_SKIP_RULE")>-1?{}:{backgroundColor:n.backgroundColor.default.color},"--background-position":`${Math.round(100*parseFloat(n.background_image.x))}% ${Math.round(100*parseFloat(n.background_image.y))}%`,"--background-image":"gradient"===n.background_type?n.gradient:n.background_image.url?`url(${n.background_image.url})`:"none"}},(0,r.createElement)("i",{className:"wheeloflife-tooltip-top"},{inherit:(0,o.__)("Inherited","wheel-of-life"),pattern:(0,o.__)("Pattern","wheel-of-life"),gradient:(0,o.__)("Gradient","wheel-of-life"),color:(0,o.__)("Color","wheel-of-life"),image:(0,o.__)("Image","wheel-of-life")}[m?"inherit":n.background_type]),m&&(0,r.createElement)("svg",{width:"25",height:"25",viewBox:"0 0 30 30"},(0,r.createElement)("path",{d:"M15 3c-3 0-5.7 1.1-7.8 2.9-.4.3-.5.9-.2 1.4.3.4 1 .5 1.4.2h.1C10.3 5.9 12.5 5 15 5c5.2 0 9.5 3.9 10 9h-3l4 6 4-6h-3.1C26.4 7.9 21.3 3 15 3zM4 10l-4 6h3.1c.5 6.1 5.6 11 11.9 11 3 0 5.7-1.1 7.8-2.9.4-.3.5-1 .2-1.4-.3-.4-1-.5-1.4-.2h-.1c-1.7 1.5-4 2.4-6.5 2.4-5.2 0-9.5-3.9-10-9h3L4 10z"}))),h&&h.current&&(0,r.createPortal)((0,r.createElement)(l.Z,{useCapture:!1,display:"block",disabled:!c||p,onOutsideClick:()=>{setTimeout((()=>u(!1)))},wrapperProps:{style:g,...v,className:a()("ct-option-modal wheeloflife-background-modal",{active:c})}},(0,r.createElement)(f,{onChange:i,value:n,option:t,isOpen:c,setOutsideClickFreezed:d})),document.body))}},9889:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(9307),o=n(5736),i=n(4184),a=n.n(i),l=n(1784),s=n(2275);const c=(e,t,n)=>Math.max(e,Math.min(t,n)),u=e=>{let{value:t,option:n,onChange:i}=e;const[u,p]=(0,r.useState)(!1);return(0,r.createElement)("div",{className:a()("ct-option-border")},(0,r.createElement)("div",{className:a()("ct-value-changer",{active:u,"ct-disabled":"none"===t.style||t.inherit})},(0,r.createElement)("input",{type:"number",value:t.width,onChange:e=>{let{target:{value:n}}=e;return i({...t,width:c(1,5,parseInt(n,10)||1)})}}),(0,r.createElement)("span",{className:"ct-value-divider"}),(0,r.createElement)("span",{className:"ct-current-value","data-style":t.inherit?"none":t.style,onClick:()=>p(!u)},t.inherit?(0,o.__)("Inherit","wheel-of-life"):"none"===t.style?t.style:null),(0,r.createElement)(s.Z,{disabled:!u,onOutsideClick:()=>{u&&p(!1)}},(0,r.createElement)("ul",{className:"ct-styles-list"},["solid","dashed","dotted","none"].reduce(((e,t,n)=>[...e.slice(0,n%2==0?void 0:-1),...n%2==0?[[t]]:[[e[e.length-1][0],t]]]),[]).map((e=>(0,r.createElement)("li",{key:e[0]},e.map((e=>(0,r.createElement)("span",{className:a()({active:e===t.style}),"data-style":e,key:e,onClick:()=>{i({...t,style:e,...Object.keys(n.value).indexOf("inherit")>-1?{inherit:!1}:{}}),p(!1)},"data-style":e},"none"===e?e:null))))))))),(0,r.createElement)(l.Z,{onChange:e=>i({...t,color:e.default}),option:{pickers:[{id:"default",title:"Initial"}]},value:{default:t.color}}))}},568:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r=n(9307),o=n(5736),i=n(4184),a=n.n(i),l=n(2085),s=n(2275),c=n(7462),u=n(3431),p=n.n(u),f=n(7522),d=n(6584),h=n(9368),m=n(9391);const g=e=>{let{option:t,value:n,onChange:i,picker:l,onPickingChange:s,stopTransitioning:u,el:g,hOffsetRef:v,vOffsetRef:y,blurRef:b,spreadRef:w,isTransitioning:E,isPicking:C}=e;const{styles:k,popoverProps:_}=(0,h.Z)({ref:g,defaultHeight:t.hide_shadow_placement?437:507,shouldCalculate:E===l.id||(C||"").split(":")[0]===l.id});return(E===l.id||(C||"").split(":")[0]===l.id)&&(0,r.createPortal)((0,r.createElement)(f.uT,{items:C,onRest:e=>{u()},config:{duration:100,easing:p()(.25,.1,.25,1)},from:-1===(C||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1},enter:-1===(C||"").indexOf(":")?{transform:"scale3d(1, 1, 1)",opacity:1}:{opacity:1},leave:-1===(C||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1}},(e=>(e||"").split(":")[0]===l.id&&(e=>(0,r.createElement)("div",(0,c.Z)({style:{...e,...k}},_,{className:"ct-option-modal ct-box-shadow-modal",onClick:e=>{e.preventDefault(),e.stopPropagation()},onMouseDownCapture:e=>{e.nativeEvent.stopImmediatePropagation(),e.nativeEvent.stopPropagation()},onMouseUpCapture:e=>{e.nativeEvent.stopImmediatePropagation(),e.nativeEvent.stopPropagation()}}),(0,r.createElement)("div",{className:"ct-shadow-trigger"},(0,r.createElement)("label",null,(0,o.__)("Enable/Disable","wheel-of-life")),(0,r.createElement)(m.default,{value:n.enable?"yes":"no",onChange:()=>{i({...n,enable:!n.enable})}})),(0,r.createElement)("div",{className:"shadow-sliders"},(0,r.createElement)(d.ZP,{value:n.h_offset,values:n,id:"h_offset",option:{id:"h_offset",label:(0,o.__)("Horizontal Offset","wheel-of-life"),type:"ab-slider",steps:"half",value:t.value.h_offset,min:-100,max:100,design:"compact",ref:v},hasRevertButton:!1,onChange:e=>i({...n,h_offset:e})}),(0,r.createElement)(d.ZP,{value:n.v_offset,values:n,id:"v_offset",option:{steps:"half",id:"v_offset",label:(0,o.__)("Vertical Offset","wheel-of-life"),type:"ab-slider",value:t.value.v_offset,min:-100,max:100,design:"compact",ref:y},hasRevertButton:!1,onChange:e=>i({...n,v_offset:e})}),(0,r.createElement)(d.ZP,{value:n.blur,values:n,id:"blur",option:{steps:"positive",id:"blur",label:(0,o.__)("Blur","wheel-of-life"),type:"ab-slider",value:t.value.blur,min:0,max:100,design:"compact",ref:b},hasRevertButton:!1,onChange:e=>{i({...n,blur:e})}}),(0,r.createElement)(d.ZP,{value:n.spread,values:n,id:"spread",option:{steps:"half",id:"spread",label:(0,o.__)("Spread","wheel-of-life"),type:"ab-slider",value:t.value.spread,min:-100,max:100,design:"compact",ref:w},hasRevertButton:!1,onChange:e=>i({...n,spread:e})})),!t.hide_shadow_placement&&(0,r.createElement)("ul",{className:"ct-shadow-style"},(0,r.createElement)("li",{onClick:()=>i({...n,inset:!1}),className:a()({active:!n.inset})},"Outline"),(0,r.createElement)("li",{onClick:()=>i({...n,inset:!0}),className:a()({active:n.inset})},"Inset")))))),document.body)},v=e=>{let{value:t,option:n,onChange:i}=e;const[{isPicking:c,isTransitioning:u},p]=(0,r.useState)({isPicking:null,isTransitioning:null}),[f,d]=(0,r.useState)(null),h=(0,r.useRef)(),m=(0,r.useRef)(),v=(0,r.useRef)(),y=(0,r.useRef)(),b=(0,r.useRef)(),w=(0,r.useRef)(),E=(0,r.useRef)(),C=(0,r.useRef)();return(0,r.createElement)("div",{ref:h,className:a()("ct-box-shadow",{"ct-disabled":!t.enable||t.inherit})},(0,r.createElement)(l.Z,{innerRef:m,picker:{id:"default",title:"Initial"},option:{pickers:[{id:"default",title:"Initial"}]},isPicking:c,isTransitioning:u,modalRef:C,containerRef:E,onPickingChange:e=>{t.enable&&p({isTransitioning:"default",isPicking:e})},stopTransitioning:()=>p({isPicking:c,isTransitioning:!1}),onChange:e=>i({...t,color:e}),value:t.color}),(0,r.createElement)(s.Z,{useCapture:!1,disabled:!c,className:"ct-box-shadow-values",additionalRefs:[m,C],onOutsideClick:()=>{c&&p({isTransitioning:c.split(":")[0],isPicking:null})},wrapperProps:{ref:E,onClick:e=>{e.preventDefault();let t=c?"opts"===c.split(":")[0]?null:`opts:${c.split(":")[0]}`:"opts";p({isTransitioning:"opts",isPicking:t})}}},(0,r.createElement)("span",null,t.inherit?(0,o.__)("Inherit","wheel-of-life"):t.enable?(0,o.__)("Adjust","wheel-of-life"):(0,o.__)("None","wheel-of-life"))),(0,r.createElement)(g,{el:h,value:t,onChange:e=>i({...e,inherit:!1}),option:n,isPicking:c,isTransitioning:u,hOffsetRef:v,vOffsetRef:y,blurRef:b,spreadRef:w,picker:{id:"opts"},onPickingChange:e=>{t.enable&&p({isTransitioning:"opts",isPicking:e})},stopTransitioning:()=>p({isPicking:c,isTransitioning:!1})}))}},4724:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(7462),o=n(9307),i=n(4184),a=n.n(i),l=n(7465);class s extends o.Component{renderAsText(){}renderAsRadio(){const{inline:e=!1}=this.props.option;return(0,o.createElement)("div",(0,r.Z)({className:"ct-radio-option"},e?{"data-inline":""}:{},this.props.option.attr||{}),Object.keys(this.props.option.choices).map((e=>(0,o.createElement)("label",{key:e},(0,o.createElement)("input",{type:"radio",checked:e===this.props.value,onChange:()=>this.props.onChange(e)}),this.props.option.choices[e]))))}render(){if("radio"===this.props.option.view)return this.renderAsRadio();const{inline:e=!1}=this.props.option;return(0,o.createElement)("ul",(0,r.Z)({className:"ct-radio-option ct-buttons-group"},e?{"data-inline":""}:{},this.props.option.attr||{}),Object.keys(this.props.option.choices).filter((e=>!this.props.option.conditions||!this.props.option.conditions[e]||(0,l.Nj)((0,l.KY)(this.props.option.conditions[e]),this.props.values))).map((e=>(0,o.createElement)("li",(0,r.Z)({className:a()({active:e===this.props.value}),onClick:()=>this.props.onChange(e),key:e,dangerouslySetInnerHTML:{__html:this.props.option.choices[e]}},this.props.singleChoiceProps?this.props.singleChoiceProps(e):{})))))}}},8554:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(7462),o=n(9307),i=n(4184),a=n.n(i),l=n(6399),s=n.n(l),c=n(2275);const u=(e,t,n)=>Math.max(e,Math.min(t,n)),p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=Math.pow(10,t);return Math.round(e*n+Number.EPSILON)/n},f=e=>{let{option:t,onChange:n,is_open:r,toggleOpen:i,currentUnit:a,getNumericValue:l,getAllowedDecimalPlaces:s}=e;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("span",{onClick:()=>i(),className:"ct-current-value"},a||"―"),(0,o.createElement)(c.Z,{onOutsideClick:()=>{r&&i()}},(0,o.createElement)("ul",{className:"ct-units-list"},t.units.filter((e=>{let{unit:t}=e;return t!==a})).reduce(((e,t,n)=>[...e.slice(0,n%2==0?void 0:-1),...n%2==0?[[t]]:[[e[e.length-1][0],t]]]),[]).map((e=>(0,o.createElement)("li",{key:e[0].unit},e.map((e=>{let{unit:r}=e;return(0,o.createElement)("span",{key:r,onClick:()=>{(e=>{const r=l();n(`${p(u(t.units.find((t=>{let{unit:n}=t;return n===e})).min,t.units.find((t=>{let{unit:n}=t;return n===e})).max,""===r?-1/0:r),s(e))}${e}`)})(r),i()}},r||"―")}))))))))};class d extends o.Component{state={is_dragging:!1,is_open:!1};el=(0,o.createRef)();hasUnitsList=()=>this.props.option.units&&this.props.option.units.length>1;getAllowedDecimalPlaces=(()=>{var e=this;return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const n=e.props.option.units?e.props.option.units.find((n=>{let{unit:r}=n;return r===(t||e.getCurrentUnit())})).decimals:e.props.option.decimals;return 0===n||n?n:0}})();withDefault=(e,t)=>this.props.option.units&&this.props.option.units.find((t=>{let{unit:n}=t;return n===e}))?e:e||t;getCurrentUnit=()=>this.props.option.units?this.withDefault(this.props.value.toString().replace(/[0-9]/g,"").replace(/\-/g,"").replace(/\./g,"").replace("CT_CSS_SKIP_RULE",""),this.props.option.units[0].unit):"";getMax=()=>this.props.option.units?this.props.option.units.find((e=>{let{unit:t}=e;return t===this.getCurrentUnit()})).max:this.props.option.max;getMin=()=>this.props.option.units?this.props.option.units.find((e=>{let{unit:t}=e;return t===this.getCurrentUnit()})).min:this.props.option.min;getNumericValue=(()=>{var e=this;return function(){let{forPosition:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=parseFloat(e.props.value,10);if(0===n)return n;if(!n){if(e.props.option.defaultPosition&&"center"===e.props.option.defaultPosition&&t){let t=parseFloat(e.getMin(),10);return(parseFloat(e.getMax(),10)-t)/2+t}return""}return n}})();computeAndSendNewValue(e){let{pageX:t}=e,{top:n,left:r,right:o,width:i}=this.el.current.getBoundingClientRect(),a=t-r-pageXOffset;this.props.onChange(`${p(s()([0,i],[parseFloat(this.getMin(),10),parseFloat(this.getMax(),10)],!0)(document.body.classList.contains("rtl")?i-a:a),this.getAllowedDecimalPlaces())}${this.getCurrentUnit()}`)}handleMove=e=>{this.state.is_dragging&&this.computeAndSendNewValue(e)};handleUp=()=>{this.setState({is_dragging:!1}),this.detachEvents()};handleBlur=()=>{if("CT_CSS_SKIP_RULE"===this.props.option.value){if("CT_CSS_SKIP_RULE"===this.props.value)return;if(""===this.getNumericValue())return void this.props.onChange("CT_CSS_SKIP_RULE")}this.props.onChange(`${u(parseFloat(this.getMin(),10),parseFloat(this.getMax(),10),parseFloat(this.getNumericValue(),10))}${this.getCurrentUnit()}`)};handleChange=e=>{"CT_CSS_SKIP_RULE"!==this.props.option.value||""!==e.toString().trim()?this.props.onChange(`${((e,t)=>Math.min(e,t))(parseFloat(this.getMax(),10),parseFloat(e||this.getMin()))}${this.getCurrentUnit()}`):this.props.onChange("CT_CSS_SKIP_RULE")};attachEvents(){document.documentElement.addEventListener("mousemove",this.handleMove,!0),document.documentElement.addEventListener("mouseup",this.handleUp,!0)}detachEvents(){document.documentElement.removeEventListener("mousemove",this.handleMove,!0),document.documentElement.removeEventListener("mouseup",this.handleUp,!0)}render(){const e=`${s()([parseFloat(this.getMin(),10),parseFloat(this.getMax(),10)],[0,100])(u(parseFloat(this.getMin(),10),parseFloat(this.getMax(),10),0===parseFloat(this.getNumericValue({forPosition:!0}),10)?0:parseFloat(this.getNumericValue({forPosition:!0}),10)?parseFloat(this.getNumericValue({forPosition:!0}),10):parseFloat(this.getMin(),10)))}`;return(0,o.createElement)("div",{className:"ct-option-slider"},this.props.beforeOption&&this.props.beforeOption(),(0,o.createElement)("div",(0,r.Z)({onMouseDown:e=>{let{pageX:t,pageY:n}=e;this.attachEvents(),this.setState({is_dragging:!0})},onClick:e=>this.computeAndSendNewValue(e),ref:this.el,className:"ab-slider"},this.props.option.steps?{"data-steps":""}:{}),(0,o.createElement)("div",{style:{width:`${e}%`}}),(0,o.createElement)("span",{style:{"--position":`${e}%`}}),this.props.option.steps&&(0,o.createElement)("section",{className:this.props.option.steps},(0,o.createElement)("i",{className:"minus"}),(0,o.createElement)("i",{className:"zero"}),(0,o.createElement)("i",{className:"plus"}))),!this.props.option.skipInput&&(0,o.createElement)("div",{className:a()("ab-slider-input",{"ct-value-changer":!0,"no-unit-list":!this.hasUnitsList(),active:this.state.is_open})},(0,o.createElement)("input",(0,r.Z)({type:"number"},this.props.option.ref?{ref:this.props.option.ref}:{},{step:1/Math.pow(10,this.getAllowedDecimalPlaces()),value:this.getNumericValue(),onBlur:()=>this.handleBlur(),onChange:e=>{let{target:{value:t}}=e;return this.handleChange(t)}})),(0,o.createElement)("span",{className:"ct-value-divider"}),!this.hasUnitsList()&&(0,o.createElement)("span",{className:"ct-current-value"},this.withDefault(this.getCurrentUnit(),this.props.option.defaultUnit||"px")),this.hasUnitsList()&&(0,o.createElement)(f,{option:this.props.option,onChange:this.props.onChange,is_open:this.state.is_open,toggleOpen:()=>this.setState({is_open:!this.state.is_open}),currentUnit:this.getCurrentUnit(),getNumericValue:this.getNumericValue,getAllowedDecimalPlaces:this.getAllowedDecimalPlaces})))}}},5043:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(7462),o=n(9307),i=n(5736),a=n(4184),l=n.n(a),s=n(9050);const c=e=>{let{disabled:t,className:n="",value:r,onBlur:a,onChange:c,placeholder:u=(0,i.__)("Default","wheel-of-life")}=e;return(0,o.createElement)("input",{type:"text",value:r,onKeyDown:e=>{s.ZP.contains([46,8,9,27,13,110,190,27],e.keyCode)||65==e.keyCode&&!0===e.ctrlKey||109==e.keyCode||189==e.keyCode||173==e.keyCode||67==e.keyCode&&!0===e.ctrlKey||88==e.keyCode&&!0===e.ctrlKey||e.keyCode>=35&&e.keyCode<=39&&38!==e.keyCode&&40!==e.keyCode||(38===e.keyCode&&s.ZP.isNumber(parseInt(r,10))&&c(parseInt(r,10)+(e.shiftKey?10:1),!0),40===e.keyCode&&s.ZP.isNumber(parseInt(r,10))&&c(parseInt(r,10)-(e.shiftKey?10:1),!0),(e.shiftKey||e.keyCode<48||e.keyCode>57)&&(e.keyCode<96||e.keyCode>105)&&e.preventDefault())},onChange:e=>{let{target:{value:t}}=e;return c(t)},placeholder:u,onBlur:()=>a&&a,className:l()({inactive:"auto"===r})})};var u=n(2275);const p=e=>{let{value:t,option:n,onChange:a}=e;const[s,p]=(0,o.useState)(!1),f=[{unit:"px"},{unit:"%"},{unit:"em"},{unit:"rem"},{unit:"pt"}],d=()=>["top","right","bottom","left"].find((e=>"auto"!==t[e])),h=()=>{return e=t[d()].toString().replace(/[0-9]/g,"").replace(/\./g,""),f.find((t=>{let{unit:n}=t;return n===e}))?e:e||f[0].unit;var e},m=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"auto"===e?e:`${0===parseFloat(e)?0:parseFloat(e)||""}${t}`};return(0,o.createElement)("div",{className:l()("ct-option-spacing",{linked:t.linked})},["top","right","bottom","left"].map((e=>(0,o.createElement)("span",{key:e},(0,o.createElement)(c,(0,r.Z)({placeholder:"",value:m(t[e]),onChange:n=>{return r=n,o=e,void(t.linked?a({...t,top:"auto"===t.top?t.top:m(r,h()),left:"auto"===t.left?t.left:m(r,h()),right:"auto"===t.right?t.right:m(r,h()),bottom:"auto"===t.bottom?t.bottom:m(r,h())}):a({...t,[o]:m(r,h())}));var r,o},placeholder:""},n.inputAttr)),(0,o.createElement)("small",null,{top:(0,i.__)("Top","wheel-of-life"),bottom:(0,i.__)("Bottom","wheel-of-life"),left:(0,i.__)("Left","wheel-of-life"),right:(0,i.__)("Right","wheel-of-life")}[e])))),(0,o.createElement)("div",{className:l()("ct-spacing-controls ct-value-changer",{active:s})},(0,o.createElement)("a",{onClick:e=>{if(e.preventDefault(),t.linked)return void a({...t,linked:!1});const n=t[d()];a({...t,top:"auto"!==t.top?n:t.top,left:"auto"!==t.left?n:t.left,bottom:"auto"!==t.bottom?n:t.bottom,right:"auto"!==t.right?n:t.right,linked:!0})}},(0,o.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 15 15"},t.linked?(0,o.createElement)("path",{d:"M12.2,5.5V4.7c0-2.6-2.1-4.7-4.7-4.7S2.8,2.1,2.8,4.7v0.8c-0.9,0-1.6,0.7-1.6,1.6v6.3c0,0.9,0.7,1.6,1.6,1.6h9.5c0.9,0,1.6-0.7,1.6-1.6V7.1C13.8,6.2,13.1,5.5,12.2,5.5z M10.7,5.5H4.3V4.7c0-1.8,1.4-3.2,3.2-3.2s3.2,1.4,3.2,3.2V5.5z"}):(0,o.createElement)("path",{d:"M12.2,5.5h-1.6H9.9h-5H4.7l0-0.2C4.4,3.5,5.5,1.9,7.3,1.5c1.1-0.2,2.2,0.1,2.8,0.9l1.3-0.9c-1-1.1-2.6-1.8-4.3-1.5C4.5,0.5,2.8,2.9,3.2,5.5H2.8c-0.9,0-1.6,0.7-1.6,1.6v6.3c0,0.9,0.7,1.6,1.6,1.6h9.5c0.9,0,1.6-0.7,1.6-1.6V7.1C13.8,6.2,13.1,5.5,12.2,5.5z"}))),(0,o.createElement)("span",{className:"ct-value-divider"}),(0,o.createElement)("div",{onClick:()=>p(!s),className:"ct-current-value"},h()||"―"),(0,o.createElement)(u.Z,{onOutsideClick:()=>{s&&p(!1)}},(0,o.createElement)("ul",{className:"ct-units-list"},f.filter((e=>{let{unit:t}=e;return t!==h()})).reduce(((e,t,n)=>[...e.slice(0,n%2==0?void 0:-1),...n%2==0?[[t]]:[[e[e.length-1][0],t]]]),[]).map((e=>(0,o.createElement)("li",{key:e[0].unit},e.map((e=>{let{unit:n}=e;return(0,o.createElement)("span",{key:n,onClick:()=>{a({...t,top:m(t.top,n),left:m(t.left,n),right:m(t.right,n),bottom:m(t.bottom,n)}),p(!1)}},n||"―")})))))))))}},9391:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(9307),o=n(4184),i=n.n(o);const a=e=>{let{option:{behavior:t="words"},value:n}=e;return"words"===t?"yes"===n:!!n},l=e=>{let{value:t,option:n={},onChange:o,onClick:l}=e;return(0,r.createElement)("div",{className:i()({"ct-option-switch":!0,"ct-active":a({option:n,value:t})}),onClick:e=>{l&&l(e),o((e=>{let{option:t={},option:{behavior:n="words"},value:r}=e;return a({option:t,value:r})?"words"===n&&"no":"words"!==n||"yes"})({option:n,value:t}))}},(0,r.createElement)("span",null))};l.renderingConfig={design:"inline"};const s=l},9715:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9307),o=n(5609),i=n(4184),a=n.n(i);const l=e=>{let{value:t,onChange:n}=e,i=o.GradientPicker||o.__experimentalGradientPicker;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(i,{value:t.gradient||"",onChange:e=>{n({...t,gradient:e})}}),(0,r.createElement)("ul",{className:"ct-gradient-swatches"},[{name:"Vivid cyan blue to vivid purple",gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:"Light green cyan to vivid green cyan",gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:"Luminous vivid amber to luminous vivid orange",gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:"Luminous vivid orange to vivid red",gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:"Very light gray to cyan bluish gray",gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"}].map((e=>{let{gradient:o,slug:i}=e;return(0,r.createElement)("li",{onClick:()=>{n({...t,gradient:t.gradient===o?"":o})},className:a()({active:o===t.gradient}),style:{"--background-image":o},key:i})}))))}},2275:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(7462),o=n(9307),i=n(4184),a=n.n(i);const l=(e,t)=>{"function"==typeof e?e(t):e.current=t};class s extends o.Component{componentDidMount(){const{disabled:e,useCapture:t}=this.props;e||this.addMouseDownEventListener(t)}childNode=(0,o.createRef)();checkIsInside=e=>[this.childNode,...this.props.additionalRefs||[]].reduce(((t,n)=>t||(n&&n.current?n.current.contains(e.target):t)),!1);UNSAFE_componentWillReceiveProps(e){let{disabled:t,useCapture:n}=e;const{disabled:r}=this.props;r!==t&&(t?this.removeEventListeners():this.addMouseDownEventListener(n))}componentWillUnmount(){this.removeEventListeners()}onMouseDown=e=>{const{useCapture:t}=this.props;this.checkIsInside(e)||(this.removeMouseUp&&(this.removeMouseUp(),this.removeMouseUp=null),document.addEventListener("mouseup",this.onMouseUp,t),this.removeMouseUp=()=>{document.removeEventListener("mouseup",this.onMouseUp,t)})};onMouseUp=e=>{const{onOutsideClick:t}=this.props;this.removeMouseUp&&(this.removeMouseUp(),this.removeMouseUp=null),this.checkIsInside(e)||t(e)};setChildNodeRef=e=>{this.props.wrapperProps&&this.props.wrapperProps.ref&&l(this.props.wrapperProps.ref,e),l(this.childNode,e)};addMouseDownEventListener(e){document.addEventListener("mousedown",this.onMouseDown,e),this.removeMouseDown=()=>{document.removeEventListener("mousedown",this.onMouseDown,e)}}removeEventListeners(){this.removeMouseDown&&this.removeMouseDown(),this.removeMouseUp&&this.removeMouseUp()}render(){const{children:e,display:t,className:n,wrapperProps:i}=this.props;return(0,o.createElement)("div",(0,r.Z)({className:a()(n)},i||{},{ref:this.setChildNodeRef}),e)}}s.defaultProps={disabled:!1,useCapture:!0,display:"block"}},2843:(e,t,n)=>{"use strict";n.d(t,{Oi:()=>u,S0:()=>s,T:()=>l.T,W:()=>c,ZP:()=>p});var r=n(9307),o=n(4184),i=n.n(o),a=n(6584),l=n(600);const s=(e,t)=>({desktop:!0,tablet:!0,mobile:!0,..."boolean"==typeof t?{}:t||{}}[e]),c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{ignoreHidden:n=!1}=t,r=(0,a.fg)(e);return!(!r?.hiddenResponsive||n)||!!e.responsive},u=e=>{let{value:t,option:n,device:r}=e;return"tablet"===r&&"skip"===s(r,n.responsive)?t.mobile:t[r]},p=e=>{let{device:t,setDevice:n,responsiveDescriptor:o}=e;return(0,r.createElement)("div",{className:"ct-control-options"},(0,r.createElement)("ul",{className:"ct-responsive-controls ct-devices"},["desktop","tablet","mobile"].filter((e=>"skip"!==s(e,o))).map((e=>(0,r.createElement)("li",{onClick:()=>n(e),className:i()({active:e===t,"ct-disabled":!s(e,o)},`ct-${e}`),key:e})))))}},9368:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307);const o=function(){let{contentRef:e,shouldCalculate:t=!0,ref:n,defaultHeight:o=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const i=(0,r.useRef)(),[a,l]=(0,r.useState)(null),s=()=>{t&&l(Math.random())},c=t=>{let n=e||i;n&&n.current&&!n.current.contains(t.target)&&s()};(0,r.useEffect)((()=>{let t;return setTimeout((()=>{s()}),500),window.addEventListener("resize",s),window.addEventListener("scroll",c,!0),n.current&&(t=new window.ResizeObserver(s),t.observe(n.current,{attributes:!0}),n.current.closest(".ct-tabs-scroll")&&t.observe(n.current.closest(".ct-tabs-scroll"),{attributes:!0}),n.current.closest(".customize-pane-child")&&t.observe(n.current.closest(".customize-pane-child"),{attributes:!0})),(e?e.current:i.current)&&(t||(t=new window.ResizeObserver(s)),t.observe(e?e.current:i.current,{attributes:!0})),()=>{window.removeEventListener("resize",s),window.removeEventListener("scroll",c,!0),t&&t.disconnect()}}),[t,i.current,e,n.current]);let{right:u,yOffset:p,position:f,otherStyles:d}=(0,r.useMemo)((()=>{let r=0,a=0,l="bottom",s={};if(!t)return{yOffset:a,right:r,position:l};if(n.current){let t=n.current.getBoundingClientRect(),c=n.current.closest(".ct-select-input")?n.current.closest(".ct-select-input"):n.current,u=getComputedStyle(c,":before").content;if(a=t.top+t.height,r=window.innerWidth-t.right,document.body.classList.contains("rtl")&&(r=t.left),u.indexOf("ref-width")>-1){let e=t.width;if(u.indexOf("left")>-1&&c.previousElementSibling&&(e=document.body.classList.contains("rtl")?c.previousElementSibling.getBoundingClientRect().right-t.left:t.right-c.previousElementSibling.getBoundingClientRect().left),u.indexOf("right")>-1){let n=c.parentNode.getBoundingClientRect();document.body.classList.contains("rtl")?(r=n.left,e=t.right-n.left):(r=window.innerWidth-n.right,e=n.right-t.left)}s["--x-select-dropdown-width"]=`${e}px`}let p=e&&e.current||i.current?function(e){let{top:t,left:n,width:r,height:o}=e.getBoundingClientRect(),i=(e=>window.getComputedStyle(e).transform.split(/\(|,|\)/).slice(1,-1).map((e=>parseFloat(e))))(e);if(6==i.length){const e=i;let a=e[0]*e[3]-e[1]*e[2];return{width:r/e[0],height:o/e[3],left:(n*e[3]-t*e[2]+e[2]*e[5]-e[4]*e[3])/a,top:(-n*e[1]+t*e[0]+e[4]*e[1]-e[0]*e[5])/a}}return{top:t,left:n,width:r,height:o}}(e?e.current:i.current):{height:o};a+p.height>window.innerHeight&&t.top-15>p.height&&(l="top",a=window.innerHeight-t.bottom+t.height)}return{yOffset:a,right:r,position:l,otherStyles:s}}),[a,t,n,n.current,e,i.current,o]);return{refreshPopover:s,styles:{"--modal-y-offset":`${p}px`,"--modal-x-offset":`${u}px`,...d},position:f,popoverProps:{ref:e||i,...f?{"data-position":f}:{}}}}},6967:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9307),o=n(9196),i=n.n(o),a=n(5736);class l extends i().Component{constructor(e){super(e),this.element=document.createElement("div"),this.element.classList.add("wheeloflife-bulk-container"),this.element.classList.add("fadeInUp")}componentDidMount(){this.props.root.appendChild(this.element)}componentWillUnmount(){this.props.root.removeChild(this.element)}bulkCancelAllHandle(e){var t=document.querySelectorAll(".list-checkboxes");e.bulkStatus(!1),t.forEach((function(e){e.checked=!1})),document.querySelector(".wheeloflife-bulk-checkbox").checked=!1,e.selectedIds([])}render(){return(0,r.createPortal)((0,r.createElement)("div",{className:"wheeloflife-bulk-wrapper"},(0,r.createElement)("div",{className:"wheeloflife-bulk-content"},this.props.children),(0,r.createElement)("button",{className:"wheeloflife-btn bulk-cancel-btn",onClick:()=>this.bulkCancelAllHandle(this.props)},(0,a.__)("Cancel","wheel-of-life"))),this.element)}}const s=l},5749:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9307),o=n(184),i=n(8707),a=n(7465);const l=e=>{let{option:t,values:n,value:l,onChange:s}=e;const[{isPicking:c,isTransitioning:u},p]=(0,r.useState)({isPicking:null,isTransitioning:null}),f=(0,r.useRef)(),d=(0,r.useRef)();return(0,r.createElement)(i.Z,{useCapture:!1,display:"inline-block",disabled:!c,wrapperProps:{ref:f},className:"wheeloflife-color-picker-container",additionalRefs:[d],onOutsideClick:()=>{p((e=>{let{isPicking:t}=e;return{isPicking:null,isTransitioning:t}}))}},t.pickers.filter((e=>!e.condition||(0,a.Nj)((0,a.KY)(e.condition),n))).map((e=>(0,r.createElement)(o.Z,{containerRef:f,picker:e,key:e.id,option:t,isPicking:c,modalRef:d,isTransitioning:u,onPickingChange:t=>p({isTransitioning:e.id,isPicking:t}),stopTransitioning:()=>p((e=>({...e,isTransitioning:!1}))),onChange:t=>s({...l,[e.id]:t}),value:l[e.id]||t.value[e.id]}))))}},2095:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>m});var r=n(7462),o=n(9307),i=n(5736),a=n(4184),l=n.n(a),s=n(251),c=n.n(s),u=n(5068),p=n(2843);const f=n(268);f.keys().forEach(f);const d=e=>{let t=f.keys().map((e=>e.replace(/^\.\//,"").replace(/\.js$/,""))).indexOf(e);return t>-1&&f.keys()[t]},h=e=>{let{option:t,value:n}=e;return void 0===n?t.value:n},m=e=>{let{option:t,value:n,values:a,onChange:s,onChangeFor:m,hasRevertButton:g,id:v,purpose:y}=e;const[b,w]=(0,o.useState)(wp.customize&&wp.customize.previewedDevice?wp.customize.previewedDevice():"desktop"),E=()=>{w(wp.customize&&wp.customize.previewedDevice?wp.customize.previewedDevice():"desktop")},C=e=>{w(e),wp.customize&&wp.customize.previewedDevice.set(e)};(0,o.useEffect)((()=>{if(("ct-typography"===t.type||(0,p.W)(t))&&wp.customize)return setTimeout((()=>wp.customize.previewedDevice.bind(E)),1e3),()=>{("ct-typography"===t.type||(0,p.W)(t))&&wp.customize&&wp.customize.previewedDevice.unbind(E)}}),[]);let k=(e=>{const t={};return d(e.type)?f(d(e.type)).default:t[e.type]?t[e.type]:null})(t),_={content:null,option:t};const S=(0,p.T)(h({value:n,option:t}),(0,p.W)(t)),x=(0,p.W)(t,{ignoreHidden:!0})?(0,p.Oi)({option:t,value:S,device:b}):S,O=e=>{t.triggerRefreshOnChange&&wp.customize&&wp.customize.previewer&&wp.customize.previewer.refresh(),t.switchDeviceOnChange&&wp.customize&&wp.customize.previewedDevice()!==t.switchDeviceOnChange&&wp.customize.previewedDevice.set(t.switchDeviceOnChange),t.sync&&(Object.keys(t.sync).length>0||Array.isArray(t.sync))&&wp.customize&&wp.customize.previewer&&wp.customize.previewer.send("ct:sync:refresh_partial",{id:t.sync.id||t.id,option:t}),s(e)},N=e=>{const r=(0,p.T)(h({value:n,option:t}),(0,p.W)(t));O((0,p.W)(t,{ignoreHidden:!0})?{...r,["tablet"===b&&"skip"===(0,p.S0)("tablet",t.responsive)?"mobile":b]:e,..."desktop"===b?Object.keys(r).reduce(((n,o)=>({...n,..."desktop"!==o&&"__changed"!==o&&Object.keys((0,p.T)(t.value)).reduce(((e,n)=>!!e&&(0,p.T)(t.value)[n]===(0,p.T)(t.value).desktop),!0)&&-1===(r.__changed||[]).indexOf("tablet")?{[o]:e}:{}})),{}):{},..."tablet"===b&&"skip"!==(0,p.S0)("tablet",t.responsive)?Object.keys(r).reduce(((n,o)=>({...n,..."desktop"!==o&&"tablet"!==o&&"__changed"!==o&&Object.keys((0,p.T)(t.value)).reduce(((e,n)=>!!e&&(0,p.T)(t.value)[n]===(0,p.T)(t.value).desktop),!0)&&-1===(r.__changed||[]).indexOf(o)?{[o]:e}:{}})),{}):{},__changed:[...r.__changed||[],..."desktop"!==b?[b]:[]].filter(((e,t,n)=>n.indexOf(e)===t))}:e)};if(!k)return(0,o.createElement)("div",null,"Unimplemented option: ",t.type);let A={design:!0,label:!0,wrapperAttr:{}},P=()=>null,j=null,M=()=>null,T=()=>({});A={...A,...k.renderingConfig||{}},t.design&&(A.design=t.design),k.LabelToolbar&&(P=k.LabelToolbar),k.ControlEnd&&(M=k.ControlEnd),k.MetaWrapper&&(j=k.MetaWrapper),k.sectionClassName&&(T=k.sectionClassName);let L=(0,o.createElement)(o.Fragment,null,_&&_.content,(0,o.createElement)(k,{key:v,option:{...t,value:(0,p.W)(t,{ignoreHidden:!0})?(0,p.Oi)({device:b,option:t,value:(0,p.T)(t.value||"")}):(0,p.T)(t.value||"",(0,p.W)(t))},value:x,id:v,values:a,onChangeFor:m,device:b,onChange:N}));if(!A.design||"none"===A.design)return L;let R=(0,u.m)({id:v,option:t,values:a,renderingConfig:A}),D=-1!==Object.keys(t).indexOf("desc")&&t.desc,B=-1!==Object.keys(t).indexOf("link")&&(t.link||" ");const F="boolean"==typeof A.design?"block":A.design;if("compact"===A.design)return(0,o.createElement)("section",t.sectionAttr||{},R&&(0,o.createElement)("label",null,R),((0,p.W)(t)&&(0,p.S0)(b,t.responsive)||!(0,p.W)(t))&&L,B&&(0,o.createElement)("a",(0,r.Z)({dangerouslySetInnerHTML:{__html:B}},t.linkAttr||{})));const I=function(){let{wrapperAttr:{className:e,...a}={},...s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",(0,r.Z)({className:l()("ct-control",e,{}),"data-design":F},t.divider?{"data-divider":t.divider}:{},(0,p.W)(t)&&!(0,p.S0)(b,t.responsive)||"disabled"===t.state?{"data-state":"disabled"}:{},t.wrapperAttr||{},a),(0,o.createElement)("div",{className:"components-base-control__label"},R&&(0,o.createElement)("label",null,R),"ct-image-picker"!==t.type&&"ct-layers"!==t.type&&"ab-image-uploader"!==t.type&&"ct-panel"!==t.type&&g&&!t.disableRevertButton&&(0,o.createElement)("button",{type:"button",disabled:c()(t.value,h({value:n,option:t})),className:"rara-revert",onClick:()=>O(t.value)}),(0,o.createElement)(P,{option:t,value:x,id:v,onChange:N}),(0,p.W)(t,{ignoreHidden:!0})&&F.indexOf("block")>-1&&(0,o.createElement)(p.ZP,{device:b,responsiveDescriptor:t.responsive,setDevice:C})),(0,p.W)(t)&&!(0,p.S0)(b,t.responsive)&&(0,o.createElement)("div",{className:"ct-disabled-notification"},t.disabledDeviceMessage||(0,i.__)("Option can't be edited for current device","wheel-of-life")),((0,p.W)(t)&&(0,p.S0)(b,t.responsive)||!(0,p.W)(t))&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("section",(0,r.Z)({},t.sectionAttr||{},{className:l()({"ct-responsive-container":(0,p.W)(t,{ignoreHidden:!0})&&"inline"===F},T({design:F,option:t}),(t.sectionAttr||{}).class||"")}),(0,p.W)(t,{ignoreHidden:!0})&&"inline"===F&&(0,o.createElement)(p.ZP,{device:b,responsiveDescriptor:t.responsive,setDevice:C}),L,B&&(0,o.createElement)("a",(0,r.Z)({dangerouslySetInnerHTML:{__html:B}},t.linkAttr||{}))),(0,o.createElement)(M,null),D&&(0,o.createElement)("div",{dangerouslySetInnerHTML:{__html:D},className:"ct-option-description"}))))};return j?(0,o.createElement)(j,{id:v,option:t,value:x,onChangeFor:m,values:a,getActualOption:I}):I()}},7045:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9307),o=n(6053),i=n(640),a=n.n(i),l=n(5736);const s=function(e){let{shortcode:t}=e;const[n,i]=(0,r.useState)(!1);return(0,r.createElement)("div",{className:"wheeloflife-shortcode-wrap",onMouseEnter:(s=(0,l.__)("Copy Shortcode","wheel-of-life"),()=>{i(s)}),onMouseLeave:()=>{i(!1)}},(0,r.createElement)("input",{type:"text",readOnly:!0,defaultValue:t}),(0,r.createElement)("button",{type:"button",onClick:()=>{a()(t),i((0,l.__)("Copied","wheel-of-life")),setTimeout((function(){i(!1)}),2e3)}},(0,r.createElement)(o.CK,null)),n&&(0,r.createElement)("span",{className:"copy-info"},n));var s}},509:(e,t,n)=>{"use strict";n.d(t,{Button:()=>g,DropdownButton:()=>v,NavTab:()=>d,SearchForm:()=>h,SocialIcon:()=>y,SwitchBox:()=>m});var r=n(9307),o=n(9834),i=n(6989),a=n.n(i),l=n(8901),s=n.n(l),c=n(5736),u=n(6053),p=n(6483);n(5903),n(7045),n(5749),n(2095),n(6967);const f={per_page:-1,orderby:"date",order:"desc"};function d(e){let{navs:t,children:n,activeTab:o,setActiveTab:i,tabId:a,className:l}=e;const[c,u]=(0,r.useState)({awidth:"",left:""});(0,r.useEffect)((()=>{var e=document.getElementById(a).querySelector(".wheeloflife-actions button.active");u({awidth:e.clientWidth,left:e.offsetLeft}),s().options.positionClass="toast-bottom-full-width",s().options.timeOut="5000"}),[]);const p=e=>t=>{i(e),u({awidth:t.target.clientWidth,left:t.target.offsetLeft})};let f=Object.entries(t).map((e=>(0,r.createElement)("button",{type:"button",className:o===e[0]&&"active",onClick:p(e[0])},e[1].label,e[1].count>=0&&(0,r.createElement)("span",{className:"wheeloflife-list-items"},e[1].count))));return(0,r.createElement)("div",{id:a,className:`wheeloflife-tabnav ${l}`},(0,r.createElement)("div",{className:"wheeloflife-actions"},f,(0,r.createElement)("span",{className:"action-active-line",style:{width:c.awidth+"px",left:c.left+"px"}})),n)}function h(e){let{onClick:t,onKeyUp:n,options:o}=e;return(0,r.createElement)("form",{className:"wheeloflife-search-form"},(0,r.createElement)("input",{type:"search",placeholder:o.placeholder,onKeyUp:n,onClick:t}),(0,r.createElement)("button",{type:"button"},(0,r.createElement)(u.ol,null)))}function m(e){let{id:t,optionType:n="",checked:o,type:i,Values:a,setValues:l,className:s,label:u}=e;const[p,f]=(0,r.useState)(o);return(0,r.useEffect)((()=>{f(o)}),[o]),(0,r.createElement)("div",{className:`wheeloflife-switch-wrap ${s}`},(0,r.createElement)("label",{htmlFor:t},(0,r.createElement)("input",{id:t,type:"checkbox",name:i,checked:o,onClick:e=>{if("userDashboard"===n)if(!0===e.target.checked){let t={...a};t[n][e.target.name]=!0,l(t),f(!0)}else{let t={...a};t[n][e.target.name]=!1,l(t),f(!1)}else if(!0===e.target.checked){let t={...a};t[e.target.name]=!0,l(t),f(!0)}else{let t={...a};t[e.target.name]=!1,l(t),f(!1)}},className:"switch"}),(0,r.createElement)("span",null,(0,r.createElement)("span",{className:"switch"}),u&&(0,r.createElement)("span",{className:"label"},u),!u&&(0,r.createElement)("span",{className:"label"},1==p?(0,c.__)("Enabled","wheel-of-life"):(0,c.__)("Disabled","wheel-of-life")))))}function g(e){let{options:t,onClick:n}=e,o=t.type,i=t.btnStyle,a=t.value;return(0,r.createElement)("button",{type:o&&o,className:`wheeloflife-btn ${i&&i}`,onClick:n},a)}const v=e=>{let{value:t,align:n,id:i,tab:l="",wheelData:u,setAllData:d,trashData:h,setTrashData:m,setWheelTab:g,type:v}=e;const y="wheel"==v,[b,w]=(0,r.useState)(!1);return(0,r.createElement)("div",{className:`wheeloflife-dropdown-wrap ${n}`},(0,r.createElement)(o.default,{onOutsideClick:()=>{setTimeout((()=>w(!1)))}},(0,r.createElement)("button",{className:`wheeloflife-dropdown-btn ${b&&"active"}`,type:"button",onClick:()=>w(!b)},t)),b&&(0,r.createElement)("div",{className:"dropdown-options"},""===l&&(0,r.createElement)(r.Fragment,null,v&&"wheel-submissions"==v&&(0,r.createElement)("button",{type:"button",onClick:function(){let e=new FormData;e.append("id",i),e.append("action","viewPost"),e.append("security",wolVariables.ajax_nonce),a()({url:wolVariables.ajax_url,method:"POST",body:e}).then((e=>{!0===e.success&&window.open(e.data)}))}},(0,c.__)("View","wheel-of-life")),(0,r.createElement)("button",{type:"button",onClick:function(){let e=new FormData;e.append("id",i),e.append("action","editPost"),e.append("security",wolVariables.ajax_nonce),a()({url:wolVariables.ajax_url,method:"POST",body:e}).then((e=>{!0===e.success&&(location.href=e.data)}))}},(0,c.__)("Edit","wheel-of-life")),y&&(0,r.createElement)("button",{type:"button",onClick:function(){let e=new FormData;e.append("id",i),e.append("action","duplicatePost"),e.append("security",wolVariables.ajax_nonce),a()({url:wolVariables.ajax_url,method:"POST",body:e}).then((e=>{!0===e.success?(a()({path:(0,p.addQueryArgs)("wp/v2/wheel?status=any",f),method:"GET"}).then((e=>{d([]),d(e)})),s().success(e.data)):s().error(e.data)}))}},(0,c.__)("Duplicate","wheel-of-life")),(0,r.createElement)("button",{type:"button",className:"delete-btn footer-btn",onClick:function(){let e=new FormData;e.append("id",i),e.append("action","trashPost"),e.append("security",wolVariables.ajax_nonce),a()({url:wolVariables.ajax_url,method:"POST",body:e}).then((e=>{!0===e.success?(a()({path:(0,p.addQueryArgs)(`wp/v2/${v}?status=any`,f),method:"GET"}).then((e=>{d([]),d(e)})),a()({path:(0,p.addQueryArgs)(`wp/v2/${v}?status=trash`,f),method:"GET"}).then((e=>{m([]),m(e)})),s().success(e.data)):s().error(e.data)}))}},(0,c.__)("Trash","wheel-of-life"))),l&&"trash"===l&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("button",{type:"button",onClick:function(){let e=new FormData;e.append("id",i),e.append("action","restorePost"),e.append("security",wolVariables.ajax_nonce),a()({url:wolVariables.ajax_url,method:"POST",body:e}).then((e=>{!0===e.success?(a()({path:(0,p.addQueryArgs)(`wp/v2/${v}?status=any`,f),method:"GET"}).then((e=>{d([]),d(e)})),a()({path:(0,p.addQueryArgs)(`wp/v2/${v}?status=trash`,f),method:"GET"}).then((e=>{""==e&&g("all_wheels"),m([]),m(e)})),s().success(e.data)):s().error(e.data)}))}},(0,c.__)("Restore","wheel-of-life")),(0,r.createElement)("button",{type:"button",className:"delete-btn footer-btn",onClick:function(){let e=new FormData;e.append("id",i),e.append("action","deletePost"),e.append("security",wolVariables.ajax_nonce),a()({url:wolVariables.ajax_url,method:"POST",body:e}).then((e=>{!0===e.success?(a()({path:(0,p.addQueryArgs)(`wp/v2/${v}?status=any`,f),method:"GET"}).then((e=>{d([]),d(e)})),a()({path:(0,p.addQueryArgs)(`wp/v2/${v}?status=trash`,f),method:"GET"}).then((e=>{""==e&&g("all_wheels"),m([]),m(e)})),s().success(e.data)):s().error(e.data)}))}},(0,c.__)("Delete","wheel-of-life")))))},y=e=>{let{icon:t,label:n}=e;return(0,r.createElement)("div",{className:"wheeloflife-shocial-icon"},(0,r.createElement)("span",{className:"icon"},t),n&&(0,r.createElement)("span",{className:"social-icon-name"},n))}},5903:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(9307),o=n(9196),i=n.n(o),a=n(6053);const l=document.querySelector("body");class s extends i().Component{constructor(e){super(e),this.element=document.createElement("div")}componentDidMount(){l.appendChild(this.element)}componentWillUnmount(){l.removeChild(this.element)}render(){return document.addEventListener("click",(e=>{"wheeloflife__modal"==e.target.id&&this.props.modalStatus(!1)})),(0,r.createPortal)((0,r.createElement)("div",{id:"wheeloflife__modal",className:`fadeIn ${this.props.className}`},(0,r.createElement)("div",{className:`wheeloflife-modal-container ${"right"===this.props.modalAlign&&"fadeInRight modal-container-right"} ${"left"===this.props.modalAlign&&"fadeInLeft modal-container-left"}`},"form"===this.props.type?(0,r.createElement)("form",{className:"wheeloflife-modal-wrapper"},this.props.modalTitle&&(0,r.createElement)("div",{className:"wheeloflife-modal-header"},(0,r.createElement)("h2",{className:"wheeloflife-title"},this.props.modalTitle)),this.props.children):(0,r.createElement)("div",{className:"wheeloflife-modal-wrapper"},this.props.modalTitle&&(0,r.createElement)("div",{className:"wheeloflife-modal-header"},(0,r.createElement)("h2",{className:"wheeloflife-title"},this.props.modalTitle)),this.props.children),(0,r.createElement)("button",{className:"wheeloflife-modal-cancel",onClick:()=>{this.props.modalStatus(!1)}},(0,r.createElement)(a.um,null)))),this.element)}}const c=s},184:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(9307),o=n(7462),i=n(5609);const a=e=>{let{onChange:t,value:n,value:{color:o}}=e;return(0,r.createElement)("div",null,(0,r.createElement)(i.ColorPicker,{color:o,enableAlpha:!0,onChangeComplete:e=>{e.rgb?t({...n,color:1===e.rgb.a?e.hex:`rgba(${e.rgb.r}, ${e.rgb.g}, ${e.rgb.b}, ${e.rgb.a})`}):t({...n,color:1===o.getAlpha()?hex:o.toRgbString()})}}))};var l=n(4184),s=n.n(l),c=(n(5736),n(1368));const u=e=>e.noColorTransparent?"transparent":"CT_CSS_SKIP_RULE",p=e=>{let{containerRef:t,el:n,value:i,picker:l,onChange:c,option:p,style:f,wrapperProps:d={},inline_modal:h,appendToBody:m}=e;const g=(0,r.useMemo)((()=>i.color===u(p)?{color:"",key:"empty"}:{key:"color",color:i.color}),[i,p,l]),v=(0,r.useMemo)((()=>d.ref&&d.ref.current&&n&&((e,t)=>{if(!e)return;if(!t)return;let n=getComputedStyle(e),r=parseFloat(n.left);return{"--option-modal-arrow-position":(t=t.firstElementChild.getBoundingClientRect()).left+t.width/2-r-6+"px"}})(d.ref.current,n.current)),[d.ref&&d.ref.current,n&&n.current]);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",(0,o.Z)({tabIndex:"0",className:s()("wheeloflife-color-picker-modal",{"wheeloflife-option-modal":!h&&m},p.modalClassName),style:{...v,...f||{}}},d),(0,r.createElement)(a,{key:g.key,onChange:e=>c(e),value:{...i,color:g.color}})))};var f=n(7522),d=n(3431),h=n.n(d);const m=e=>{let{option:t,value:n,onChange:o,picker:i,onPickingChange:a,stopTransitioning:l,innerRef:d,containerRef:m,modalRef:g,isTransitioning:v,isPicking:y}=e;const b=(0,r.useRef)(),{appendToBody:w=!0}=t,{refreshPopover:E,styles:C,popoverProps:k}=(0,c.Z)({contentRef:g,ref:m||{},defaultHeight:379,shouldCalculate:!t.inline_modal||w});if(t.inline_modal)return(0,r.createElement)(p,{containerRef:m,option:t,onChange:o,picker:i,value:n,inline_modal:!!t.inline_modal});let _=null;return v!==i.id&&(y||"").split(":")[0]!==i.id||(_=(0,r.createPortal)((0,r.createElement)(f.uT,{items:y,onRest:()=>l(),config:{duration:100,easing:h()(.25,.1,.25,1)},from:-1===(y||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1},enter:-1===(y||"").indexOf(":")?{transform:"scale3d(1, 1, 1)",opacity:1}:{opacity:1},leave:-1===(y||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1}},(e=>(e||"").split(":")[0]===i.id&&(e=>(0,r.createElement)(p,{style:{...e,...w?C:{}},option:t,onChange:o,picker:i,value:n,el:b,wrapperProps:w?k:{ref:g},appendToBody:w})))),w?document.body:b.current.closest("section").parentNode)),(0,r.createElement)("div",{ref:e=>{b.current=e,d&&(d.current=e)},className:s()("wheeloflife-color-picker-single",{"wheeloflife-no-color":(n||{}).color===u(t)})},(0,r.createElement)("span",{tabIndex:"0"},(0,r.createElement)("span",{tabIndex:"0",onClick:e=>{e.stopPropagation(),E();let t=y?y.split(":")[0]===i.id?null:`${i.id}:${y.split(":")[0]}`:i.id;a(t)},style:{background:(n||{}).color}},(0,r.createElement)("i",{className:"wheeloflife-tooltip-top"},i.title))),_)}},5671:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(9307),o=n(5736),i=n(4184),a=n.n(i),l=n(8707),s=n(1368),c=n(2095);const u=e=>{let{option:t,value:n,onChange:i,setOutsideClickFreezed:a}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(c.ZP,{value:n.background_image,values:n,option:{id:"background_image",label:!1,type:"ab-image-uploader",value:t.value.background_image,has_position_picker:!0,emptyLabel:(0,o.__)("Select Image","wheel-of-life"),filledLabel:(0,o.__)("Change Image","wheel-of-life"),onFrameOpen:()=>{a(!0)},onFrameClose:()=>{a(!1)}},hasRevertButton:!1,onChange:e=>i({...n,background_image:e})}),(0,r.createElement)(c.ZP,{value:n.background_repeat,values:n,option:{id:"background_repeat",label:(0,o.__)("Background Repeat","wheel-of-life"),attr:{"data-type":"repeat"},type:"ab-radio",view:"text",design:"block",value:t.value.background_repeat,choices:{"no-repeat":'<svg viewBox="0 0 16 16"><rect x="6" y="6" width="4" height="4"/></svg>',"repeat-x":'<svg viewBox="0 0 16 16"><rect y="6" width="4" height="4"/><rect x="6" y="6" width="4" height="4"/><rect x="12" y="6" width="4" height="4"/></svg>',"repeat-y":'<svg viewBox="0 0 16 16"><rect x="6" width="4" height="4"/><rect x="6" y="6" width="4" height="4"/><rect x="6" y="12" width="4" height="4"/></svg>',repeat:'<svg viewBox="0 0 16 16"><path d="M0,0h4v4H0V0z M6,0h4v4H6V0z M12,0h4v4h-4V0z M0,6h4v4H0V6z M6,6h4v4H6V6z M12,6h4v4h-4V6z M0,12h4v4H0V12z M6,12h4v4H6V12zM12,12h4v4h-4V12z"/></svg>'}},hasRevertButton:!1,onChange:e=>i({...n,background_repeat:e})}),(0,r.createElement)(c.ZP,{value:n.background_size,values:n,option:{id:"background_size",label:(0,o.__)("Background Size","wheel-of-life"),type:"ab-radio",view:"text",design:"block",value:t.value.background_size,choices:{auto:(0,o.__)("Auto","wheel-of-life"),cover:(0,o.__)("Cover","wheel-of-life"),contain:(0,o.__)("Contain","wheel-of-life")}},hasRevertButton:!1,onChange:e=>i({...n,background_size:e})}),(0,r.createElement)(c.ZP,{value:n.background_attachment,values:n,option:{id:"background_size",label:(0,o.__)("Background Attachment","wheel-of-life"),type:"ab-radio",view:"text",design:"block",value:t.value.background_attachment,choices:{scroll:(0,o.__)("Scroll","wheel-of-life"),fixed:(0,o.__)("Fixed","wheel-of-life"),inherit:(0,o.__)("Inherit","wheel-of-life")}},hasRevertButton:!1,onChange:e=>i({...n,background_attachment:e})}),n.background_image.url&&(0,r.createElement)(c.ZP,{value:n.overlayColor,values:n,option:{id:"overlayColor",label:(0,o.__)("Image Overlay Color","wheel-of-life"),type:"ab-color-picker",design:"inline",value:t.value.overlayColor,pickers:[{title:(0,o.__)("Initial","wheel-of-life"),id:"default"}],skipArrow:!0,appendToBody:!1},hasRevertButton:!1,onChange:e=>i({...n,overlayColor:e})}))};var p=n(5609);const f=e=>{let{value:t,onChange:n}=e,o=p.GradientPicker||p.__experimentalGradientPicker;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o,{value:t.gradient||"",onChange:e=>{n({...t,gradient:e})}}),(0,r.createElement)("ul",{className:"ct-gradient-swatches"},[{name:"Vivid cyan blue to vivid purple",gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:"Light green cyan to vivid green cyan",gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:"Luminous vivid amber to luminous vivid orange",gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:"Luminous vivid orange to vivid red",gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:"Very light gray to cyan bluish gray",gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"}].map((e=>{let{gradient:o,slug:i}=e;return(0,r.createElement)("li",{onClick:()=>{n({...t,gradient:t.gradient===o?"":o})},className:a()({active:o===t.gradient}),style:{"--background-image":o},key:i})}))))},d=e=>{let{option:t,value:n,isOpen:i,onChange:l,setOutsideClickFreezed:s}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("ul",{className:"ct-modal-tabs",onMouseUp:e=>{e.preventDefault()}},["color","gradient","image"].map((e=>(0,r.createElement)("li",{"data-type":e,key:e,className:a()({active:e===n.background_type||"image"===e&&("pattern"===n.background_type||"image"===n.background_type)}),onClick:()=>l({...n,background_type:e,..."gradient"===e?{gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)"}:{}})},{color:(0,o.__)("Color","wheel-of-life"),gradient:(0,o.__)("Gradient","wheel-of-life"),image:(0,o.__)("Image","wheel-of-life")}[e])))),(0,r.createElement)("div",{className:a()({"ct-image-tab ct-options-container":"image"===n.background_type||"pattern"===n.background_type,"ct-gradient-tab wheeloflife-color-picker-modal":"gradient"===n.background_type,"ct-color-tab":"color"===n.background_type})},("image"===n.background_type||"pattern"===n.background_type)&&(0,r.createElement)("ul",{className:"ct-radio-option ct-buttons-group",onMouseUp:e=>{e.preventDefault()}},["image"].map((e=>(0,r.createElement)("li",{"data-type":e,key:e,className:a()({active:e===n.background_type}),onClick:()=>l({...n,background_type:e})},{image:(0,o.__)("Image","wheel-of-life")}[e])))),"image"===n.background_type&&(0,r.createElement)(u,{setOutsideClickFreezed:s,option:t,onChange:l,value:n}),"gradient"===n.background_type&&(0,r.createElement)(f,{value:n,onChange:l}),"gradient"!==n.background_type&&(0,r.createElement)(c.ZP,{value:n.backgroundColor,values:n,option:{id:"backgroundColor",label:"color"!==n.background_type&&(0,o.__)("Background Color","wheel-of-life"),type:"ab-color-picker",skipNoColorPill:!0,design:"color"===n.background_type?"none":"inline",value:t.value.backgroundColor,pickers:[{title:(0,o.__)("Initial","wheel-of-life"),id:"default"}],inline_modal:"color"===n.background_type,skipArrow:!0,appendToBody:!1},hasRevertButton:!1,onChange:e=>l({...n,backgroundColor:e})})))},h=e=>{let{option:t,value:n,onChange:i}=e;const[c,u]=(0,r.useState)(!1),[p,f]=(0,r.useState)(!1),h=(0,r.useRef)();n=(e=>!e.background_type&&e[Object.keys(e)[0]].color?{background_type:"color",background_pattern:"type-1",background_image:{attachment_id:null,x:0,y:0},background_repeat:"no-repeat",background_size:"auto",background_attachment:"scroll",patternColor:{default:{color:"#e5e7ea"}},imageOveralayColor:{default:{color:"#000000"}},backgroundColor:{default:e[Object.keys(e)[0]]}}:e)(n);const m="color"===n.background_type&&("CT_CSS_SKIP_RULE"===n.backgroundColor.default.color||"transparent"===n.backgroundColor.default.color),{styles:g,popoverProps:v}=(0,s.Z)({ref:h,defaultHeight:434,shouldCalculate:h&&h.current});return(0,r.createElement)("div",{ref:h,className:a()("ct-background",{active:c})},(0,r.createElement)("div",{className:a()("ct-background-preview",{"no-color":m}),onClick:e=>{e.preventDefault(),u(!c),"color"===n.background_type&&("CT_CSS_SKIP_RULE"!==n.backgroundColor.default.color&&"transparent"!==n.backgroundColor.default.color||i({...n,backgroundColor:{default:{color:"#ffffff"}}}))},"data-background-type":n.background_type,style:{...n.backgroundColor.default.color.indexOf("CT_CSS_SKIP_RULE")>-1?{}:{backgroundColor:n.backgroundColor.default.color},"--background-position":`${Math.round(100*parseFloat(n.background_image.x))}% ${Math.round(100*parseFloat(n.background_image.y))}%`,"--background-image":"gradient"===n.background_type?n.gradient:n.background_image.url?`url(${n.background_image.url})`:"none"}},(0,r.createElement)("i",{className:"wheeloflife-tooltip-top"},{inherit:(0,o.__)("Inherited","wheel-of-life"),pattern:(0,o.__)("Pattern","wheel-of-life"),gradient:(0,o.__)("Gradient","wheel-of-life"),color:(0,o.__)("Color","wheel-of-life"),image:(0,o.__)("Image","wheel-of-life")}[m?"inherit":n.background_type]),m&&(0,r.createElement)("svg",{width:"25",height:"25",viewBox:"0 0 30 30"},(0,r.createElement)("path",{d:"M15 3c-3 0-5.7 1.1-7.8 2.9-.4.3-.5.9-.2 1.4.3.4 1 .5 1.4.2h.1C10.3 5.9 12.5 5 15 5c5.2 0 9.5 3.9 10 9h-3l4 6 4-6h-3.1C26.4 7.9 21.3 3 15 3zM4 10l-4 6h3.1c.5 6.1 5.6 11 11.9 11 3 0 5.7-1.1 7.8-2.9.4-.3.5-1 .2-1.4-.3-.4-1-.5-1.4-.2h-.1c-1.7 1.5-4 2.4-6.5 2.4-5.2 0-9.5-3.9-10-9h3L4 10z"}))),h&&h.current&&(0,r.createPortal)((0,r.createElement)(l.Z,{useCapture:!1,display:"block",disabled:!c||p,onOutsideClick:()=>{setTimeout((()=>u(!1)))},wrapperProps:{style:g,...v,className:a()("ct-option-modal wheeloflife-background-modal",{active:c})}},(0,r.createElement)(d,{onChange:i,value:n,option:t,isOpen:c,setOutsideClickFreezed:f})),document.body))}},3003:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(9307),o=n(5736),i=n(4184),a=n.n(i),l=n(5749),s=n(8707);const c=(e,t,n)=>Math.max(e,Math.min(t,n)),u=e=>{let{value:t,option:n,onChange:i}=e;const[u,p]=(0,r.useState)(!1);return(0,r.createElement)("div",{className:a()("ct-option-border")},(0,r.createElement)("div",{className:a()("ct-value-changer",{active:u,"ct-disabled":"none"===t.style||t.inherit})},(0,r.createElement)("input",{type:"number",value:t.width,onChange:e=>{let{target:{value:n}}=e;return i({...t,width:c(1,5,parseInt(n,10)||1)})}}),(0,r.createElement)("span",{className:"ct-value-divider"}),(0,r.createElement)("span",{className:"ct-current-value","data-style":t.inherit?"none":t.style,onClick:()=>p(!u)},t.inherit?(0,o.__)("Inherit","wheel-of-life"):"none"===t.style?t.style:null),(0,r.createElement)(s.Z,{disabled:!u,onOutsideClick:()=>{u&&p(!1)}},(0,r.createElement)("ul",{className:"ct-styles-list"},["solid","dashed","dotted","none"].reduce(((e,t,n)=>[...e.slice(0,n%2==0?void 0:-1),...n%2==0?[[t]]:[[e[e.length-1][0],t]]]),[]).map((e=>(0,r.createElement)("li",{key:e[0]},e.map((e=>(0,r.createElement)("span",{className:a()({active:e===t.style}),"data-style":e,key:e,onClick:()=>{i({...t,style:e,...Object.keys(n.value).indexOf("inherit")>-1?{inherit:!1}:{}}),p(!1)},"data-style":e},"none"===e?e:null))))))))),(0,r.createElement)(l.Z,{onChange:e=>i({...t,color:e.default}),option:{pickers:[{id:"default",title:"Initial"}]},value:{default:t.color}}))}},1881:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r=n(9307),o=n(5736),i=n(4184),a=n.n(i),l=n(184),s=n(8707),c=n(7462),u=n(3431),p=n.n(u),f=n(7522),d=n(2095),h=n(1368),m=n(7652);const g=e=>{let{option:t,value:n,onChange:i,picker:l,onPickingChange:s,stopTransitioning:u,el:g,hOffsetRef:v,vOffsetRef:y,blurRef:b,spreadRef:w,isTransitioning:E,isPicking:C}=e;const{styles:k,popoverProps:_}=(0,h.Z)({ref:g,defaultHeight:t.hide_shadow_placement?437:507,shouldCalculate:E===l.id||(C||"").split(":")[0]===l.id});return(E===l.id||(C||"").split(":")[0]===l.id)&&(0,r.createPortal)((0,r.createElement)(f.uT,{items:C,onRest:e=>{u()},config:{duration:100,easing:p()(.25,.1,.25,1)},from:-1===(C||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1},enter:-1===(C||"").indexOf(":")?{transform:"scale3d(1, 1, 1)",opacity:1}:{opacity:1},leave:-1===(C||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1}},(e=>(e||"").split(":")[0]===l.id&&(e=>(0,r.createElement)("div",(0,c.Z)({style:{...e,...k}},_,{className:"ct-option-modal ct-box-shadow-modal",onClick:e=>{e.preventDefault(),e.stopPropagation()},onMouseDownCapture:e=>{e.nativeEvent.stopImmediatePropagation(),e.nativeEvent.stopPropagation()},onMouseUpCapture:e=>{e.nativeEvent.stopImmediatePropagation(),e.nativeEvent.stopPropagation()}}),(0,r.createElement)("div",{className:"ct-shadow-trigger"},(0,r.createElement)("label",null,(0,o.__)("Enable/Disable","wheel-of-life")),(0,r.createElement)(m.default,{value:n.enable?"yes":"no",onChange:()=>{i({...n,enable:!n.enable})}})),(0,r.createElement)("div",{className:"shadow-sliders"},(0,r.createElement)(d.ZP,{value:n.h_offset,values:n,id:"h_offset",option:{id:"h_offset",label:(0,o.__)("Horizontal Offset","wheel-of-life"),type:"ab-slider",steps:"half",value:t.value.h_offset,min:-100,max:100,design:"compact",ref:v},hasRevertButton:!1,onChange:e=>i({...n,h_offset:e})}),(0,r.createElement)(d.ZP,{value:n.v_offset,values:n,id:"v_offset",option:{steps:"half",id:"v_offset",label:(0,o.__)("Vertical Offset","wheel-of-life"),type:"ab-slider",value:t.value.v_offset,min:-100,max:100,design:"compact",ref:y},hasRevertButton:!1,onChange:e=>i({...n,v_offset:e})}),(0,r.createElement)(d.ZP,{value:n.blur,values:n,id:"blur",option:{steps:"positive",id:"blur",label:(0,o.__)("Blur","wheel-of-life"),type:"ab-slider",value:t.value.blur,min:0,max:100,design:"compact",ref:b},hasRevertButton:!1,onChange:e=>{i({...n,blur:e})}}),(0,r.createElement)(d.ZP,{value:n.spread,values:n,id:"spread",option:{steps:"half",id:"spread",label:(0,o.__)("Spread","wheel-of-life"),type:"ab-slider",value:t.value.spread,min:-100,max:100,design:"compact",ref:w},hasRevertButton:!1,onChange:e=>i({...n,spread:e})})),!t.hide_shadow_placement&&(0,r.createElement)("ul",{className:"ct-shadow-style"},(0,r.createElement)("li",{onClick:()=>i({...n,inset:!1}),className:a()({active:!n.inset})},"Outline"),(0,r.createElement)("li",{onClick:()=>i({...n,inset:!0}),className:a()({active:n.inset})},"Inset")))))),document.body)},v=e=>{let{value:t,option:n,onChange:i}=e;const[{isPicking:c,isTransitioning:u},p]=(0,r.useState)({isPicking:null,isTransitioning:null}),[f,d]=(0,r.useState)(null),h=(0,r.useRef)(),m=(0,r.useRef)(),v=(0,r.useRef)(),y=(0,r.useRef)(),b=(0,r.useRef)(),w=(0,r.useRef)(),E=(0,r.useRef)(),C=(0,r.useRef)();return(0,r.createElement)("div",{ref:h,className:a()("ct-box-shadow",{"ct-disabled":!t.enable||t.inherit})},(0,r.createElement)(l.Z,{innerRef:m,picker:{id:"default",title:"Initial"},option:{pickers:[{id:"default",title:"Initial"}]},isPicking:c,isTransitioning:u,modalRef:C,containerRef:E,onPickingChange:e=>{t.enable&&p({isTransitioning:"default",isPicking:e})},stopTransitioning:()=>p({isPicking:c,isTransitioning:!1}),onChange:e=>i({...t,color:e}),value:t.color}),(0,r.createElement)(s.Z,{useCapture:!1,disabled:!c,className:"ct-box-shadow-values",additionalRefs:[m,C],onOutsideClick:()=>{c&&p({isTransitioning:c.split(":")[0],isPicking:null})},wrapperProps:{ref:E,onClick:e=>{e.preventDefault();let t=c?"opts"===c.split(":")[0]?null:`opts:${c.split(":")[0]}`:"opts";p({isTransitioning:"opts",isPicking:t})}}},(0,r.createElement)("span",null,t.inherit?(0,o.__)("Inherit","wheel-of-life"):t.enable?(0,o.__)("Adjust","wheel-of-life"):(0,o.__)("None","wheel-of-life"))),(0,r.createElement)(g,{el:h,value:t,onChange:e=>i({...e,inherit:!1}),option:n,isPicking:c,isTransitioning:u,hOffsetRef:v,vOffsetRef:y,blurRef:b,spreadRef:w,picker:{id:"opts"},onPickingChange:e=>{t.enable&&p({isTransitioning:"opts",isPicking:e})},stopTransitioning:()=>p({isPicking:c,isTransitioning:!1})}))}},3479:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(9307),o=n(184),i=n(8707),a=n(7465);const l=e=>{let{option:t,values:n,value:l,onChange:s}=e;const[{isPicking:c,isTransitioning:u},p]=(0,r.useState)({isPicking:null,isTransitioning:null}),f=(0,r.useRef)(),d=(0,r.useRef)();return(0,r.createElement)(i.Z,{useCapture:!1,display:"inline-block",disabled:!c,wrapperProps:{ref:f},className:"wheeloflife-color-picker-container",additionalRefs:[d],onOutsideClick:()=>{p((e=>{let{isPicking:t}=e;return{isPicking:null,isTransitioning:t}}))}},t.pickers.filter((e=>!e.condition||(0,a.Nj)((0,a.KY)(e.condition),n))).map((e=>(0,r.createElement)(o.Z,{containerRef:f,picker:e,key:e.id,option:t,isPicking:c,modalRef:d,isTransitioning:u,onPickingChange:t=>p({isTransitioning:e.id,isPicking:t}),stopTransitioning:()=>p((e=>({...e,isTransitioning:!1}))),onChange:t=>s({...l,[e.id]:t}),value:void 0!==l&&l[e.id]||t.value[e.id]}))))}},1950:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(7462),o=n(9307),i=n(5609),a=n(4184),l=n.n(a),s=n(9050);class c extends o.Component{params={height:250,width:250,flex_width:!0,flex_height:!0};state={attachment_info:null};getUrlFor=e=>e?(e.width<700?e.sizes.full:s.ZP.max(s.ZP.values(1===s.ZP.keys(e.sizes).length?e.sizes:s.ZP.omit(e.sizes,"full")),(e=>{let{width:t}=e;return t}))).url||e.url:null;onChange=(()=>{var e=this;return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.props.onChange(e.props.option.inline_value?t||"":{...e.props.value,url:e.getUrlFor(n),attachment_id:t})}})();getAttachmentId=(()=>{var e=this;return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.props;return t.option.inline_value?t.value:t.value.attachment_id}})();initFrame(){this.frame=wp.media({button:{text:"Select",close:!1},states:[new wp.media.controller.Library({title:"Select Image",library:wp.media.query({type:"image"}),multiple:!1,date:!1,priority:20,suggestedWidth:(this.props.option.logo||{}).width,suggestedHeight:(this.props.option.logo||{}).height}),...(this.props.option.skipCrop,[])]}),this.frame.on("select",this.onSelect,this),this.frame.on("close",(()=>{this.props.option.onFrameClose&&this.props.option.onFrameClose()})),this.frame.on("cropped",this.onCropped,this),this.frame.on("skippedcrop",this.onSkippedCrop,this)}openFrame(){this.initFrame(),this.frame.setState("library").open(),this.props.option.onFrameOpen&&this.props.option.onFrameOpen()}onSelect=()=>{var e=this.frame.state().get("selection").first().toJSON();(this.props.option.logo||{}).width===e.width&&(this.props.option.logo||{}).height===e.height&&!(this.props.option.logo||{}).flex_width&&!(this.props.option.logo||{}).flex_height||this.props.option.skipCrop,this.setImageFromAttachment(e),this.frame.close()};onCropped=e=>{this.setImageFromAttachment(e)};calculateImageSelectOptions(e,t){var n,r,o,i=t.get("control"),a=!!parseInt((i.props.option.logo||{}).flex_width,10),l=!!parseInt((i.props.option.logo||{}).flex_height,10),s=e.get("width"),c=e.get("height"),u=parseInt((i.props.option.logo||{}).width,10),p=parseInt((i.props.option.logo||{}).height,10),f=u/p,d=u,h=p;return t.set("canSkipCrop",!i.mustBeCropped(a,l,u,p,s,c)),s/c>f?u=(p=c)*f:p=(u=s)/f,o={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:s,imageHeight:c,minWidth:d>u?u:d,minHeight:h>p?p:h,x1:n=(s-u)/2,y1:r=(c-p)/2,x2:u+n,y2:p+r},!1===l&&!1===a&&(o.aspectRatio=u+":"+p),!0===l&&(delete o.minHeight,o.maxWidth=s),!0===a&&(delete o.minWidth,o.maxHeight=c),o}mustBeCropped(e,t,n,r,o,i){return!(!0===e&&!0===t||!0===e&&r===i||!0===t&&n===o||n===o&&r===i||o<=n)}onSkippedCrop=()=>{var e=this.frame.state().get("selection").first().toJSON();this.setImageFromAttachment(e)};setImageFromAttachment(e){this.onChange(e.id,JSON.parse(JSON.stringify(wp.media.attachment(e.id).toJSON()))),this.updateAttachmentInfo()}updateAttachmentInfo=(()=>{var e=this;return function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=e.getAttachmentId();n&&(!wp.media.attachment(n).get("url")||t?wp.media.attachment(n).fetch().then((()=>e.setState({attachment_info:JSON.parse(JSON.stringify(wp.media.attachment(n).toJSON()))}))):e.setState({attachment_info:JSON.parse(JSON.stringify(wp.media.attachment(n).toJSON()))}),e.detachListener(),wp.media.attachment(n).on("change",e.updateAttachmentInfo))}})();detachListener(){this.getAttachmentId()&&wp.media.attachment(this.getAttachmentId()).off("change",this.updateAttachmentInfo)}componentDidUpdate(e){this.getAttachmentId()!==this.getAttachmentId(e)&&(wp.media.attachment(this.getAttachmentId(e)).off("change",this.updateAttachmentInfo),this.updateAttachmentInfo())}componentDidMount(){this.updateAttachmentInfo()}componentWillUnmount(){this.detachListener()}render(){return(0,o.createElement)("div",(0,r.Z)({className:l()("attachment-media-view rt-attachment",{landscape:this.getAttachmentId()&&this.state.attachment_info,"attachment-media-view-image":this.getAttachmentId()&&this.state.attachment_info})},this.props.option.attr||{}),this.getAttachmentId()&&this.state.attachment_info?(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:"thumbnail thumbnail-image",onClick:()=>!this.props.option.has_position_picker&&this.openFrame()},!this.props.option.has_position_picker&&(0,o.createElement)("img",{className:"attachment-thumb",src:this.getUrlFor(this.state.attachment_info),draggable:"false",alt:""}),this.props.option.has_position_picker&&(0,o.createElement)(i.FocalPointPicker,{url:this.getUrlFor(this.state.attachment_info),dimensions:{width:400,height:100},value:this.props.value,onChange:e=>{this.props.onChange({...this.props.value,...e})}}),(0,o.createElement)("div",{className:"actions"},(0,o.createElement)("button",{type:"button",className:"button edit-button control-focus",title:"Edit",onClick:()=>this.openFrame(),id:"customize-media-control-button-35"}),(0,o.createElement)("button",{onClick:e=>{e.stopPropagation(),this.setState({attachment_info:null}),this.onChange(null)},title:"Remove",type:"button",className:"button remove-button"})))):(0,o.createElement)(o.Fragment,null,(0,o.createElement)("button",{type:"button",onClick:()=>this.openFrame(),className:"button rt-upload-button",id:"customize-media-control-button-50"},this.props.option.emptyLabel||"Select logo")))}}},9788:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(7462),o=n(9307),i=n(4184),a=n.n(i),l=n(7465);class s extends o.Component{renderAsText(){}renderAsRadio(){const{inline:e=!1}=this.props.option;return(0,o.createElement)("div",(0,r.Z)({className:"ct-radio-option"},e?{"data-inline":""}:{},this.props.option.attr||{}),Object.keys(this.props.option.choices).map((e=>(0,o.createElement)("label",{key:e},(0,o.createElement)("input",{type:"radio",checked:e===this.props.value,onChange:()=>this.props.onChange(e)}),this.props.option.choices[e]))))}render(){if("radio"===this.props.option.view)return this.renderAsRadio();const{inline:e=!1}=this.props.option;return(0,o.createElement)("ul",(0,r.Z)({className:"ct-radio-option ct-buttons-group"},e?{"data-inline":""}:{},this.props.option.attr||{}),Object.keys(this.props.option.choices).filter((e=>!this.props.option.conditions||!this.props.option.conditions[e]||(0,l.Nj)((0,l.KY)(this.props.option.conditions[e]),this.props.values))).map((e=>(0,o.createElement)("li",(0,r.Z)({className:a()({active:e===this.props.value}),onClick:()=>this.props.onChange(e),key:e,dangerouslySetInnerHTML:{__html:this.props.option.choices[e]}},this.props.singleChoiceProps?this.props.singleChoiceProps(e):{})))))}}},6238:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(7462),o=n(9307),i=n(4184),a=n.n(i),l=n(6399),s=n.n(l),c=n(8707);const u=(e,t,n)=>Math.max(e,Math.min(t,n)),p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=Math.pow(10,t);return Math.round(e*n+Number.EPSILON)/n},f=e=>{let{option:t,onChange:n,is_open:r,toggleOpen:i,currentUnit:a,getNumericValue:l,getAllowedDecimalPlaces:s}=e;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("span",{onClick:()=>i(),className:"ct-current-value"},a||"―"),(0,o.createElement)(c.Z,{onOutsideClick:()=>{r&&i()}},(0,o.createElement)("ul",{className:"ct-units-list"},t.units.filter((e=>{let{unit:t}=e;return t!==a})).reduce(((e,t,n)=>[...e.slice(0,n%2==0?void 0:-1),...n%2==0?[[t]]:[[e[e.length-1][0],t]]]),[]).map((e=>(0,o.createElement)("li",{key:e[0].unit},e.map((e=>{let{unit:r}=e;return(0,o.createElement)("span",{key:r,onClick:()=>{(e=>{const r=l();n(`${p(u(t.units.find((t=>{let{unit:n}=t;return n===e})).min,t.units.find((t=>{let{unit:n}=t;return n===e})).max,""===r?-1/0:r),s(e))}${e}`)})(r),i()}},r||"―")}))))))))};class d extends o.Component{state={is_dragging:!1,is_open:!1};el=(0,o.createRef)();hasUnitsList=()=>this.props.option.units&&this.props.option.units.length>1;getAllowedDecimalPlaces=(()=>{var e=this;return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const n=e.props.option.units?e.props.option.units.find((n=>{let{unit:r}=n;return r===(t||e.getCurrentUnit())})).decimals:e.props.option.decimals;return 0===n||n?n:0}})();withDefault=(e,t)=>this.props.option.units&&this.props.option.units.find((t=>{let{unit:n}=t;return n===e}))?e:e||t;getCurrentUnit=()=>this.props.option.units?this.withDefault(this.props.value.toString().replace(/[0-9]/g,"").replace(/\-/g,"").replace(/\./g,"").replace("CT_CSS_SKIP_RULE",""),this.props.option.units[0].unit):"";getMax=()=>this.props.option.units?this.props.option.units.find((e=>{let{unit:t}=e;return t===this.getCurrentUnit()})).max:this.props.option.max;getMin=()=>this.props.option.units?this.props.option.units.find((e=>{let{unit:t}=e;return t===this.getCurrentUnit()})).min:this.props.option.min;getNumericValue=(()=>{var e=this;return function(){let{forPosition:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=parseFloat(e.props.value,10);if(0===n)return n;if(!n){if(e.props.option.defaultPosition&&"center"===e.props.option.defaultPosition&&t){let t=parseFloat(e.getMin(),10);return(parseFloat(e.getMax(),10)-t)/2+t}return""}return n}})();computeAndSendNewValue(e){let{pageX:t}=e,{top:n,left:r,right:o,width:i}=this.el.current.getBoundingClientRect(),a=t-r-pageXOffset;this.props.onChange(`${p(s()([0,i],[parseFloat(this.getMin(),10),parseFloat(this.getMax(),10)],!0)(document.body.classList.contains("rtl")?i-a:a),this.getAllowedDecimalPlaces())}${this.getCurrentUnit()}`)}handleMove=e=>{this.state.is_dragging&&this.computeAndSendNewValue(e)};handleUp=()=>{this.setState({is_dragging:!1}),this.detachEvents()};handleBlur=()=>{if("CT_CSS_SKIP_RULE"===this.props.option.value){if("CT_CSS_SKIP_RULE"===this.props.value)return;if(""===this.getNumericValue())return void this.props.onChange("CT_CSS_SKIP_RULE")}this.props.onChange(`${u(parseFloat(this.getMin(),10),parseFloat(this.getMax(),10),parseFloat(this.getNumericValue(),10))}${this.getCurrentUnit()}`)};handleChange=e=>{"CT_CSS_SKIP_RULE"!==this.props.option.value||""!==e.toString().trim()?this.props.onChange(`${((e,t)=>Math.min(e,t))(parseFloat(this.getMax(),10),parseFloat(e||this.getMin()))}${this.getCurrentUnit()}`):this.props.onChange("CT_CSS_SKIP_RULE")};attachEvents(){document.documentElement.addEventListener("mousemove",this.handleMove,!0),document.documentElement.addEventListener("mouseup",this.handleUp,!0)}detachEvents(){document.documentElement.removeEventListener("mousemove",this.handleMove,!0),document.documentElement.removeEventListener("mouseup",this.handleUp,!0)}render(){const e=`${s()([parseFloat(this.getMin(),10),parseFloat(this.getMax(),10)],[0,100])(u(parseFloat(this.getMin(),10),parseFloat(this.getMax(),10),0===parseFloat(this.getNumericValue({forPosition:!0}),10)?0:parseFloat(this.getNumericValue({forPosition:!0}),10)?parseFloat(this.getNumericValue({forPosition:!0}),10):parseFloat(this.getMin(),10)))}`;return(0,o.createElement)("div",{className:"ct-option-slider"},this.props.beforeOption&&this.props.beforeOption(),(0,o.createElement)("div",(0,r.Z)({onMouseDown:e=>{let{pageX:t,pageY:n}=e;this.attachEvents(),this.setState({is_dragging:!0})},onClick:e=>this.computeAndSendNewValue(e),ref:this.el,className:"ab-slider"},this.props.option.steps?{"data-steps":""}:{}),(0,o.createElement)("div",{style:{width:`${e}%`}}),(0,o.createElement)("span",{style:{"--position":`${e}%`}}),this.props.option.steps&&(0,o.createElement)("section",{className:this.props.option.steps},(0,o.createElement)("i",{className:"minus"}),(0,o.createElement)("i",{className:"zero"}),(0,o.createElement)("i",{className:"plus"}))),!this.props.option.skipInput&&(0,o.createElement)("div",{className:a()("ab-slider-input",{"ct-value-changer":!0,"no-unit-list":!this.hasUnitsList(),active:this.state.is_open})},(0,o.createElement)("input",(0,r.Z)({type:"number"},this.props.option.ref?{ref:this.props.option.ref}:{},{step:1/Math.pow(10,this.getAllowedDecimalPlaces()),value:this.getNumericValue(),onBlur:()=>this.handleBlur(),onChange:e=>{let{target:{value:t}}=e;return this.handleChange(t)}})),(0,o.createElement)("span",{className:"ct-value-divider"}),!this.hasUnitsList()&&(0,o.createElement)("span",{className:"ct-current-value"},this.withDefault(this.getCurrentUnit(),this.props.option.defaultUnit||"px")),this.hasUnitsList()&&(0,o.createElement)(f,{option:this.props.option,onChange:this.props.onChange,is_open:this.state.is_open,toggleOpen:()=>this.setState({is_open:!this.state.is_open}),currentUnit:this.getCurrentUnit(),getNumericValue:this.getNumericValue,getAllowedDecimalPlaces:this.getAllowedDecimalPlaces})))}}},453:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(7462),o=n(9307),i=n(5736),a=n(4184),l=n.n(a),s=n(9050);const c=e=>{let{disabled:t,className:n="",value:r,onBlur:a,onChange:c,placeholder:u=(0,i.__)("Default","wheel-of-life")}=e;return(0,o.createElement)("input",{type:"text",value:r,onKeyDown:e=>{s.ZP.contains([46,8,9,27,13,110,190,27],e.keyCode)||65==e.keyCode&&!0===e.ctrlKey||109==e.keyCode||189==e.keyCode||173==e.keyCode||67==e.keyCode&&!0===e.ctrlKey||88==e.keyCode&&!0===e.ctrlKey||e.keyCode>=35&&e.keyCode<=39&&38!==e.keyCode&&40!==e.keyCode||(38===e.keyCode&&s.ZP.isNumber(parseInt(r,10))&&c(parseInt(r,10)+(e.shiftKey?10:1),!0),40===e.keyCode&&s.ZP.isNumber(parseInt(r,10))&&c(parseInt(r,10)-(e.shiftKey?10:1),!0),(e.shiftKey||e.keyCode<48||e.keyCode>57)&&(e.keyCode<96||e.keyCode>105)&&e.preventDefault())},onChange:e=>{let{target:{value:t}}=e;return c(t)},placeholder:u,onBlur:()=>a&&a,className:l()({inactive:"auto"===r})})};var u=n(8707);const p=e=>{let{value:t,option:n,onChange:a}=e;const[s,p]=(0,o.useState)(!1),f=[{unit:"px"},{unit:"%"},{unit:"em"},{unit:"rem"},{unit:"pt"}],d=()=>["top","right","bottom","left"].find((e=>"auto"!==t[e])),h=()=>{return e=t[d()].toString().replace(/[0-9]/g,"").replace(/\./g,""),f.find((t=>{let{unit:n}=t;return n===e}))?e:e||f[0].unit;var e},m=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"auto"===e?e:`${0===parseFloat(e)?0:parseFloat(e)||""}${t}`};return(0,o.createElement)("div",{className:l()("ct-option-spacing",{linked:t.linked})},["top","right","bottom","left"].map((e=>(0,o.createElement)("span",{key:e},(0,o.createElement)(c,(0,r.Z)({placeholder:"",value:m(t[e]),onChange:n=>{return r=n,o=e,void(t.linked?a({...t,top:"auto"===t.top?t.top:m(r,h()),left:"auto"===t.left?t.left:m(r,h()),right:"auto"===t.right?t.right:m(r,h()),bottom:"auto"===t.bottom?t.bottom:m(r,h())}):a({...t,[o]:m(r,h())}));var r,o},placeholder:""},n.inputAttr)),(0,o.createElement)("small",null,{top:(0,i.__)("Top","wheel-of-life"),bottom:(0,i.__)("Bottom","wheel-of-life"),left:(0,i.__)("Left","wheel-of-life"),right:(0,i.__)("Right","wheel-of-life")}[e])))),(0,o.createElement)("div",{className:l()("ct-spacing-controls ct-value-changer",{active:s})},(0,o.createElement)("a",{onClick:e=>{if(e.preventDefault(),t.linked)return void a({...t,linked:!1});const n=t[d()];a({...t,top:"auto"!==t.top?n:t.top,left:"auto"!==t.left?n:t.left,bottom:"auto"!==t.bottom?n:t.bottom,right:"auto"!==t.right?n:t.right,linked:!0})}},(0,o.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 15 15"},t.linked?(0,o.createElement)("path",{d:"M12.2,5.5V4.7c0-2.6-2.1-4.7-4.7-4.7S2.8,2.1,2.8,4.7v0.8c-0.9,0-1.6,0.7-1.6,1.6v6.3c0,0.9,0.7,1.6,1.6,1.6h9.5c0.9,0,1.6-0.7,1.6-1.6V7.1C13.8,6.2,13.1,5.5,12.2,5.5z M10.7,5.5H4.3V4.7c0-1.8,1.4-3.2,3.2-3.2s3.2,1.4,3.2,3.2V5.5z"}):(0,o.createElement)("path",{d:"M12.2,5.5h-1.6H9.9h-5H4.7l0-0.2C4.4,3.5,5.5,1.9,7.3,1.5c1.1-0.2,2.2,0.1,2.8,0.9l1.3-0.9c-1-1.1-2.6-1.8-4.3-1.5C4.5,0.5,2.8,2.9,3.2,5.5H2.8c-0.9,0-1.6,0.7-1.6,1.6v6.3c0,0.9,0.7,1.6,1.6,1.6h9.5c0.9,0,1.6-0.7,1.6-1.6V7.1C13.8,6.2,13.1,5.5,12.2,5.5z"}))),(0,o.createElement)("span",{className:"ct-value-divider"}),(0,o.createElement)("div",{onClick:()=>p(!s),className:"ct-current-value"},h()||"―"),(0,o.createElement)(u.Z,{onOutsideClick:()=>{s&&p(!1)}},(0,o.createElement)("ul",{className:"ct-units-list"},f.filter((e=>{let{unit:t}=e;return t!==h()})).reduce(((e,t,n)=>[...e.slice(0,n%2==0?void 0:-1),...n%2==0?[[t]]:[[e[e.length-1][0],t]]]),[]).map((e=>(0,o.createElement)("li",{key:e[0].unit},e.map((e=>{let{unit:n}=e;return(0,o.createElement)("span",{key:n,onClick:()=>{a({...t,top:m(t.top,n),left:m(t.left,n),right:m(t.right,n),bottom:m(t.bottom,n)}),p(!1)}},n||"―")})))))))))}},7652:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(9307),o=n(4184),i=n.n(o);const a=e=>{let{option:{behavior:t="words"},value:n}=e;return"words"===t?"yes"===n:!!n},l=e=>{let{value:t,option:n={},onChange:o,onClick:l}=e;return(0,r.createElement)("div",{className:i()({"ct-option-switch":!0,"ct-active":a({option:n,value:t})}),onClick:e=>{l&&l(e),o((e=>{let{option:t={},option:{behavior:n="words"},value:r}=e;return a({option:t,value:r})?"words"===n&&"no":"words"!==n||"yes"})({option:n,value:t}))}},(0,r.createElement)("span",null))};l.renderingConfig={design:"inline"};const s=l},8707:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(7462),o=n(9307),i=n(4184),a=n.n(i);const l=(e,t)=>{"function"==typeof e?e(t):e.current=t};class s extends o.Component{componentDidMount(){const{disabled:e,useCapture:t}=this.props;e||this.addMouseDownEventListener(t)}childNode=(0,o.createRef)();checkIsInside=e=>[this.childNode,...this.props.additionalRefs||[]].reduce(((t,n)=>t||(n&&n.current?n.current.contains(e.target):t)),!1);UNSAFE_componentWillReceiveProps(e){let{disabled:t,useCapture:n}=e;const{disabled:r}=this.props;r!==t&&(t?this.removeEventListeners():this.addMouseDownEventListener(n))}componentWillUnmount(){this.removeEventListeners()}onMouseDown=e=>{const{useCapture:t}=this.props;this.checkIsInside(e)||(this.removeMouseUp&&(this.removeMouseUp(),this.removeMouseUp=null),document.addEventListener("mouseup",this.onMouseUp,t),this.removeMouseUp=()=>{document.removeEventListener("mouseup",this.onMouseUp,t)})};onMouseUp=e=>{const{onOutsideClick:t}=this.props;this.removeMouseUp&&(this.removeMouseUp(),this.removeMouseUp=null),this.checkIsInside(e)||t(e)};setChildNodeRef=e=>{this.props.wrapperProps&&this.props.wrapperProps.ref&&l(this.props.wrapperProps.ref,e),l(this.childNode,e)};addMouseDownEventListener(e){document.addEventListener("mousedown",this.onMouseDown,e),this.removeMouseDown=()=>{document.removeEventListener("mousedown",this.onMouseDown,e)}}removeEventListeners(){this.removeMouseDown&&this.removeMouseDown(),this.removeMouseUp&&this.removeMouseUp()}render(){const{children:e,display:t,className:n,wrapperProps:i}=this.props;return(0,o.createElement)("div",(0,r.Z)({className:a()(n)},i||{},{ref:this.setChildNodeRef}),e)}}s.defaultProps={disabled:!1,useCapture:!0,display:"block"}},1368:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307);const o=function(){let{contentRef:e,shouldCalculate:t=!0,ref:n,defaultHeight:o=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const i=(0,r.useRef)(),[a,l]=(0,r.useState)(null),s=()=>{t&&l(Math.random())},c=t=>{let n=e||i;n&&n.current&&!n.current.contains(t.target)&&s()};(0,r.useEffect)((()=>{let t;return setTimeout((()=>{s()}),500),window.addEventListener("resize",s),window.addEventListener("scroll",c,!0),n.current&&(t=new window.ResizeObserver(s),t.observe(n.current,{attributes:!0}),n.current.closest(".ct-tabs-scroll")&&t.observe(n.current.closest(".ct-tabs-scroll"),{attributes:!0}),n.current.closest(".customize-pane-child")&&t.observe(n.current.closest(".customize-pane-child"),{attributes:!0})),(e?e.current:i.current)&&(t||(t=new window.ResizeObserver(s)),t.observe(e?e.current:i.current,{attributes:!0})),()=>{window.removeEventListener("resize",s),window.removeEventListener("scroll",c,!0),t&&t.disconnect()}}),[t,i.current,e,n.current]);let{right:u,yOffset:p,position:f,otherStyles:d}=(0,r.useMemo)((()=>{let r=0,a=0,l="bottom",s={};if(!t)return{yOffset:a,right:r,position:l};if(n.current){let t=n.current.getBoundingClientRect(),c=n.current.closest(".ct-select-input")?n.current.closest(".ct-select-input"):n.current,u=getComputedStyle(c,":before").content;if(a=t.top+t.height,r=window.innerWidth-t.right,document.body.classList.contains("rtl")&&(r=t.left),u.indexOf("ref-width")>-1){let e=t.width;if(u.indexOf("left")>-1&&c.previousElementSibling&&(e=document.body.classList.contains("rtl")?c.previousElementSibling.getBoundingClientRect().right-t.left:t.right-c.previousElementSibling.getBoundingClientRect().left),u.indexOf("right")>-1){let n=c.parentNode.getBoundingClientRect();document.body.classList.contains("rtl")?(r=n.left,e=t.right-n.left):(r=window.innerWidth-n.right,e=n.right-t.left)}s["--x-select-dropdown-width"]=`${e}px`}let p=e&&e.current||i.current?function(e){let{top:t,left:n,width:r,height:o}=e.getBoundingClientRect(),i=(e=>window.getComputedStyle(e).transform.split(/\(|,|\)/).slice(1,-1).map((e=>parseFloat(e))))(e);if(6==i.length){const e=i;let a=e[0]*e[3]-e[1]*e[2];return{width:r/e[0],height:o/e[3],left:(n*e[3]-t*e[2]+e[2]*e[5]-e[4]*e[3])/a,top:(-n*e[1]+t*e[0]+e[4]*e[1]-e[0]*e[5])/a}}return{top:t,left:n,width:r,height:o}}(e?e.current:i.current):{height:o};a+p.height>window.innerHeight&&t.top-15>p.height&&(l="top",a=window.innerHeight-t.bottom+t.height)}return{yOffset:a,right:r,position:l,otherStyles:s}}),[a,t,n,n.current,e,i.current,o]);return{refreshPopover:s,styles:{"--modal-y-offset":`${p}px`,"--modal-x-offset":`${u}px`,...d},position:f,popoverProps:{ref:e||i,...f?{"data-position":f}:{}}}}},6053:(e,t,n)=>{"use strict";n.d(t,{$B:()=>v,CK:()=>i,GT:()=>p,I8:()=>f,JP:()=>u,Mh:()=>g,Ts:()=>m,V4:()=>a,cD:()=>y,ol:()=>o,s1:()=>l,tL:()=>s,um:()=>d,y2:()=>h,yh:()=>c});var r=n(9307);const o=()=>(0,r.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},(0,r.createElement)("path",{d:"M9.16667 15.8333C12.8486 15.8333 15.8333 12.8486 15.8333 9.16667C15.8333 5.48477 12.8486 2.5 9.16667 2.5C5.48477 2.5 2.5 5.48477 2.5 9.16667C2.5 12.8486 5.48477 15.8333 9.16667 15.8333Z",stroke:"#A3AABF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.createElement)("path",{d:"M17.5 17.5L13.875 13.875",stroke:"#A3AABF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),i=()=>(0,r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},(0,r.createElement)("path",{d:"M20 9H11C9.89543 9 9 9.89543 9 11V20C9 21.1046 9.89543 22 11 22H20C21.1046 22 22 21.1046 22 20V11C22 9.89543 21.1046 9 20 9Z",stroke:"#7C8294",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.createElement)("path",{d:"M5 15H4C3.46957 15 2.96086 14.7893 2.58579 14.4142C2.21071 14.0391 2 13.5304 2 13V4C2 3.46957 2.21071 2.96086 2.58579 2.58579C2.96086 2.21071 3.46957 2 4 2H13C13.5304 2 14.0391 2.21071 14.4142 2.58579C14.7893 2.96086 15 3.46957 15 4V5",stroke:"#7C8294",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),a=()=>(0,r.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},(0,r.createElement)("path",{d:"M9.99996 10.8333C10.4602 10.8333 10.8333 10.4602 10.8333 9.99996C10.8333 9.53972 10.4602 9.16663 9.99996 9.16663C9.53972 9.16663 9.16663 9.53972 9.16663 9.99996C9.16663 10.4602 9.53972 10.8333 9.99996 10.8333Z",stroke:"#7C8294",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.createElement)("path",{d:"M9.99996 5.00004C10.4602 5.00004 10.8333 4.62694 10.8333 4.16671C10.8333 3.70647 10.4602 3.33337 9.99996 3.33337C9.53972 3.33337 9.16663 3.70647 9.16663 4.16671C9.16663 4.62694 9.53972 5.00004 9.99996 5.00004Z",stroke:"#7C8294",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.createElement)("path",{d:"M9.99996 16.6667C10.4602 16.6667 10.8333 16.2936 10.8333 15.8333C10.8333 15.3731 10.4602 15 9.99996 15C9.53972 15 9.16663 15.3731 9.16663 15.8333C9.16663 16.2936 9.53972 16.6667 9.99996 16.6667Z",stroke:"#7C8294",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),l=()=>(0,r.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none"},(0,r.createElement)("rect",{width:"40",height:"40",rx:"4",fill:"#1778F2"}),(0,r.createElement)("path",{d:"M31 20.0674C31 13.9549 26.0754 9 20.0014 9C13.9246 9.00137 9 13.9549 9 20.0687C9 25.5914 13.0227 30.1696 18.2801 31V23.2666H15.4892V20.0687H18.2828V17.6284C18.2828 14.8554 19.9258 13.3238 22.4376 13.3238C23.6419 13.3238 24.8999 13.5397 24.8999 13.5397V16.2618H23.5127C22.1475 16.2618 21.7213 17.1156 21.7213 17.9914V20.0674H24.7707L24.284 23.2652H21.7199V30.9986C26.9773 30.1682 31 25.5901 31 20.0674Z",fill:"white"})),s=()=>(0,r.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none"},(0,r.createElement)("rect",{width:"40",height:"40",rx:"4",fill:"#00ACEE"}),(0,r.createElement)("path",{d:"M15.9107 28.876C24.213 28.876 28.7546 21.9968 28.7546 16.0417C28.7546 15.8492 28.7546 15.654 28.7464 15.4615C29.6306 14.8214 30.3937 14.0289 31 13.1212C30.1741 13.4854 29.2988 13.7254 28.4026 13.8335C29.3466 13.2692 30.0536 12.3814 30.3923 11.3351C29.5054 11.8605 28.5346 12.2293 27.5226 12.4255C26.8423 11.7009 25.9419 11.2208 24.9611 11.0597C23.9803 10.8986 22.9737 11.0655 22.0973 11.5344C21.2209 12.0033 20.5236 12.7481 20.1134 13.6534C19.7031 14.5588 19.6029 15.5741 19.8281 16.5422C18.0334 16.4522 16.2776 15.986 14.6747 15.1737C13.0717 14.3615 11.6574 13.2214 10.5235 11.8273C9.94784 12.8216 9.77216 13.9976 10.0321 15.1167C10.2921 16.2358 10.9683 17.2139 11.9232 17.8526C11.2076 17.8283 10.5077 17.6361 9.88 17.2916V17.3535C9.88123 18.395 10.242 19.4042 10.9015 20.2104C11.5609 21.0166 12.4784 21.5704 13.499 21.7782C13.1116 21.8849 12.7114 21.9381 12.3096 21.9363C12.0264 21.9372 11.7436 21.9109 11.4654 21.858C11.7538 22.7545 12.3155 23.5384 13.0717 24.0999C13.8279 24.6613 14.7408 24.9721 15.6825 24.9888C14.0828 26.2453 12.1067 26.9268 10.0725 26.9235C9.71407 26.925 9.35588 26.9043 9 26.8616C11.0646 28.1778 13.4623 28.8767 15.9107 28.876Z",fill:"white"})),c=()=>(0,r.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none"},(0,r.createElement)("rect",{width:"40",height:"40",rx:"4",fill:"#0A66C2"}),(0,r.createElement)("path",{d:"M9 10.5757C9 9.70538 9.72325 9 10.6156 9H29.3844C30.2768 9 31 9.70538 31 10.5757V29.4242C31 30.2946 30.2768 31 29.3844 31H10.6156C9.72325 31 9 30.2946 9 29.4242V10.5757ZM15.7966 27.4167V17.4824H12.4952V27.4167H15.7966ZM14.1466 16.1253C15.2975 16.1253 16.0139 15.3635 16.0139 14.4093C15.9932 13.4344 15.2989 12.6933 14.1686 12.6933C13.0384 12.6933 12.3 13.4358 12.3 14.4093C12.3 15.3635 13.0164 16.1253 14.1246 16.1253H14.1466ZM20.8951 27.4167V21.8686C20.8951 21.5716 20.9171 21.2746 21.0051 21.0629C21.243 20.4703 21.7861 19.8556 22.6991 19.8556C23.894 19.8556 24.3711 20.7659 24.3711 22.1024V27.4167H27.6725V21.7188C27.6725 18.6663 26.0445 17.2473 23.872 17.2473C22.1202 17.2473 21.3351 18.2098 20.8951 18.8876V18.922H20.8731C20.8804 18.9105 20.8878 18.8991 20.8951 18.8876V17.4824H17.5951C17.6364 18.4146 17.5951 27.4167 17.5951 27.4167H20.8951Z",fill:"white"})),u=()=>(0,r.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none"},(0,r.createElement)("rect",{width:"40",height:"40",rx:"4",fill:"#FF4500"}),(0,r.createElement)("path",{d:"M17.4796 20C17.1771 20.0004 16.887 20.1207 16.673 20.3347C16.4591 20.5486 16.3387 20.8387 16.3384 21.1412C16.3384 21.7724 16.8499 22.2963 17.4796 22.2839C17.7756 22.2736 18.0561 22.1488 18.2618 21.9358C18.4676 21.7227 18.5826 21.4381 18.5826 21.1419C18.5826 20.8458 18.4676 20.5611 18.2618 20.3481C18.0561 20.1351 17.7756 20.0103 17.4796 20ZM20.0138 25.0146C20.4469 25.0146 21.9429 24.9624 22.7308 24.1745C22.7818 24.1163 22.81 24.0415 22.81 23.9641C22.81 23.8867 22.7818 23.8119 22.7308 23.7537C22.7034 23.7256 22.6708 23.7031 22.6346 23.6878C22.5985 23.6725 22.5596 23.6646 22.5204 23.6646C22.4811 23.6646 22.4423 23.6725 22.4061 23.6878C22.37 23.7031 22.3373 23.7256 22.31 23.7537C21.8246 24.2529 20.7618 24.4234 20.0138 24.4234C19.2644 24.4234 18.2153 24.2529 17.7161 23.7537C17.6888 23.7256 17.6561 23.7031 17.62 23.6878C17.5839 23.6725 17.545 23.6646 17.5058 23.6646C17.4665 23.6646 17.4277 23.6725 17.3915 23.6878C17.3554 23.7031 17.3227 23.7256 17.2954 23.7537C17.2672 23.7811 17.2448 23.8137 17.2295 23.8499C17.2142 23.886 17.2063 23.9249 17.2063 23.9641C17.2063 24.0034 17.2142 24.0422 17.2295 24.0784C17.2448 24.1145 17.2672 24.1472 17.2954 24.1745C18.0709 24.9486 19.5669 25.0132 20.0138 25.0132V25.0146ZM21.3778 21.155C21.3778 21.7848 21.8906 22.2963 22.5204 22.2963C23.1501 22.2963 23.6616 21.7724 23.6616 21.155C23.6472 20.862 23.5207 20.5858 23.3083 20.3835C23.0958 20.1812 22.8137 20.0684 22.5204 20.0684C22.227 20.0684 21.9449 20.1812 21.7325 20.3835C21.52 20.5858 21.3935 20.862 21.3791 21.155H21.3778Z",fill:"white"}),(0,r.createElement)("path",{d:"M31 20C31 22.9174 29.8411 25.7153 27.7782 27.7782C25.7153 29.8411 22.9174 31 20 31C17.0826 31 14.2847 29.8411 12.2218 27.7782C10.1589 25.7153 9 22.9174 9 20C9 17.0826 10.1589 14.2847 12.2218 12.2218C14.2847 10.1589 17.0826 9 20 9C22.9174 9 25.7153 10.1589 27.7782 12.2218C29.8411 14.2847 31 17.0826 31 20ZM25.7365 18.3981C25.3034 18.3981 24.9087 18.5686 24.62 18.845C23.5186 18.0571 22.0075 17.5456 20.3286 17.4796L21.0629 14.0408L23.4526 14.5522C23.4631 14.7754 23.5389 14.9905 23.6705 15.171C23.8021 15.3515 23.9838 15.4894 24.193 15.5676C24.4023 15.6458 24.6298 15.6609 24.8476 15.611C25.0653 15.5611 25.2636 15.4484 25.4179 15.2869C25.5722 15.1253 25.6757 14.9221 25.7155 14.7023C25.7554 14.4825 25.7299 14.2558 25.6422 14.0504C25.5544 13.845 25.4083 13.6698 25.222 13.5466C25.0357 13.4234 24.8173 13.3576 24.5939 13.3574C24.3802 13.3581 24.1711 13.4188 23.9902 13.5326C23.8093 13.6464 23.6641 13.8086 23.5709 14.0009L20.9061 13.4371C20.8702 13.4294 20.8332 13.4288 20.7971 13.4354C20.761 13.442 20.7266 13.4557 20.6957 13.4756C20.6636 13.4957 20.6364 13.5226 20.6159 13.5545C20.5955 13.5863 20.5823 13.6223 20.5775 13.6599L19.7635 17.4934C18.0585 17.5456 16.5212 18.0571 15.4047 18.8574C15.116 18.5824 14.7228 18.4119 14.291 18.4119C13.9248 18.4113 13.5696 18.5365 13.2846 18.7664C12.9996 18.9963 12.8022 19.317 12.7252 19.675C12.6483 20.033 12.6965 20.4065 12.8619 20.7332C13.0272 21.0599 13.2997 21.3199 13.6337 21.4699C13.6062 21.628 13.5939 21.7861 13.5939 21.9552C13.5939 24.4234 16.469 26.4323 20.0138 26.4323C23.5571 26.4323 26.4323 24.4371 26.4323 21.9552C26.4323 21.7985 26.4185 21.628 26.3924 21.4699C26.9438 21.221 27.3384 20.6559 27.3384 20C27.3384 19.1062 26.6165 18.3981 25.7365 18.3981Z",fill:"white"})),p=()=>(0,r.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none"},(0,r.createElement)("rect",{width:"40",height:"40",rx:"4",fill:"#1DB53F"}),(0,r.createElement)("path",{d:"M12 12H28C29.1 12 30 12.9 30 14V26C30 27.1 29.1 28 28 28H12C10.9 28 10 27.1 10 26V14C10 12.9 10.9 12 12 12Z",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.createElement)("path",{d:"M30 14L20 21L10 14",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),f=()=>(0,r.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},(0,r.createElement)("path",{d:"M9.1665 3.33325H3.33317C2.89114 3.33325 2.46722 3.50885 2.15466 3.82141C1.8421 4.13397 1.6665 4.55789 1.6665 4.99992V16.6666C1.6665 17.1086 1.8421 17.5325 2.15466 17.8451C2.46722 18.1577 2.89114 18.3333 3.33317 18.3333H14.9998C15.4419 18.3333 15.8658 18.1577 16.1783 17.8451C16.4909 17.5325 16.6665 17.1086 16.6665 16.6666V10.8333",stroke:"#A3AABF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.createElement)("path",{d:"M15.4165 2.0832C15.748 1.75168 16.1977 1.56543 16.6665 1.56543C17.1353 1.56543 17.585 1.75168 17.9165 2.0832C18.248 2.41472 18.4343 2.86436 18.4343 3.3332C18.4343 3.80204 18.248 4.25168 17.9165 4.5832L9.99984 12.4999L6.6665 13.3332L7.49984 9.99986L15.4165 2.0832Z",stroke:"#A3AABF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),d=()=>(0,r.createElement)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M11 1L1 11",stroke:"#A3AABF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.createElement)("path",{d:"M1 1L11 11",stroke:"#A3AABF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),h=()=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"44",viewBox:"0 0 44 44"},(0,r.createElement)("g",{id:"Group_6066","data-name":"Group 6066",transform:"translate(-305 -896)"},(0,r.createElement)("circle",{id:"Ellipse_104","data-name":"Ellipse 104",cx:"22",cy:"22",r:"22",transform:"translate(305 896)",fill:"#fff"}),(0,r.createElement)("g",{id:"Group_5744","data-name":"Group 5744",transform:"translate(316.075 912.102)"},(0,r.createElement)("line",{id:"Line_93","data-name":"Line 93",x2:"16.008",transform:"translate(6.478 0)",fill:"none",stroke:"#374757","stroke-linecap":"round","stroke-width":"2",opacity:"0.3"}),(0,r.createElement)("line",{id:"Line_94","data-name":"Line 94",x2:"20.221",transform:"translate(2.265 5.898)",fill:"none",stroke:"#374757","stroke-linecap":"round","stroke-width":"2",opacity:"0.3"}),(0,r.createElement)("line",{id:"Line_95","data-name":"Line 95",x2:"16.008",transform:"translate(6.478 11.796)",fill:"none",stroke:"#374757","stroke-linecap":"round","stroke-width":"2",opacity:"0.3"}),(0,r.createElement)("path",{id:"Path_30634","data-name":"Path 30634",d:"M0,0,3.685,3.686,7.369,0",transform:"translate(3.686 2.37) rotate(90)",fill:"none",stroke:"#374757","stroke-linecap":"round","stroke-width":"2",opacity:"0.3"})))),m=e=>{let{menuName:t}=e;return(0,r.createElement)(r.Fragment,null,"wheels_of_life_global_settings"==t&&(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"26.207",height:"28",viewBox:"0 0 26.207 28"},(0,r.createElement)("g",{id:"settings",transform:"translate(-2.827 -2)"},(0,r.createElement)("circle",{id:"XMLID_224_",cx:"4",cy:"4",r:"4",transform:"translate(12 12)",fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"2"}),(0,r.createElement)("path",{id:"XMLID_242_",d:"M27.758,10.366l-1-1.732A2,2,0,0,0,24.026,7.9l-.526.3a3,3,0,0,1-4.5-2.6V5a2,2,0,0,0-2-2H15a2,2,0,0,0-2,2v.608a3,3,0,0,1-4.5,2.6l-.526-.3a2,2,0,0,0-2.732.732l-1,1.732A2,2,0,0,0,4.974,13.1l.526.3a3,3,0,0,1,0,5.2l-.526.3a2,2,0,0,0-.732,2.732l1,1.732a2,2,0,0,0,2.732.732l.526-.3a3,3,0,0,1,4.5,2.6V27a2,2,0,0,0,2,2h2a2,2,0,0,0,2-2v-.608a3,3,0,0,1,4.5-2.6l.526.3a2,2,0,0,0,2.732-.732l1-1.732a2,2,0,0,0-.732-2.732l-.526-.3a3,3,0,0,1,0-5.2l.526-.3A2,2,0,0,0,27.758,10.366Z",fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"2"}))),"wheels_of_life_members"==t&&(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},(0,r.createElement)("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),(0,r.createElement)("circle",{cx:"9",cy:"7",r:"4"}),(0,r.createElement)("path",{d:"M23 21v-2a4 4 0 0 0-3-3.87"}),(0,r.createElement)("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})),"wheels_of_life_analytics"==t&&(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},(0,r.createElement)("path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83"}),(0,r.createElement)("path",{d:"M22 12A10 10 0 0 0 12 2v10z"})),"wheels_of_life_submissions"==t&&(0,r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M20 12V9L13 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22C6 22 8.26633 22 11 22",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.createElement)("path",{d:"M22 16L16.5 22L14 19.2727",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.createElement)("path",{d:"M13 2V9H20",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),"wheels_of_life_all_lists"==t&&(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:"feather feather-aperture"},(0,r.createElement)("circle",{cx:"12",cy:"12",r:"10"}),(0,r.createElement)("line",{x1:"14.31",y1:"8",x2:"20.05",y2:"17.94"}),(0,r.createElement)("line",{x1:"9.69",y1:"8",x2:"21.17",y2:"8"}),(0,r.createElement)("line",{x1:"7.38",y1:"12",x2:"13.12",y2:"2.06"}),(0,r.createElement)("line",{x1:"9.69",y1:"16",x2:"3.95",y2:"6.06"}),(0,r.createElement)("line",{x1:"14.31",y1:"16",x2:"2.83",y2:"16"}),(0,r.createElement)("line",{x1:"16.62",y1:"12",x2:"10.88",y2:"21.94"})),"wheels_of_life_license_activation"==t&&(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:"feather feather-key"},(0,r.createElement)("path",{d:"M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"})),"wheels_of_life_reports"==t&&(0,r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M18 22V4C18 2.89543 17.1046 2 16 2H4C2.89543 2 2 2.89543 2 4V20C2 21.1046 2.89543 22 4 22H18ZM18 22H20C21.1046 22 22 21.1046 22 20V11C22 9.89543 21.1046 9 20 9H18V22ZM6 14L14 14M6 18H10M6 6H14V10H6V6Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})))},g=()=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:"feather feather-mail"},(0,r.createElement)("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),(0,r.createElement)("polyline",{points:"22,6 12,13 2,6"})),v=()=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:"feather feather-file-text"},(0,r.createElement)("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),(0,r.createElement)("polyline",{points:"14 2 14 8 20 8"}),(0,r.createElement)("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),(0,r.createElement)("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),(0,r.createElement)("polyline",{points:"10 9 9 9 8 9"})),y=()=>(0,r.createElement)("svg",{id:"Layer_1",dataName:"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 114.31 122.88"},(0,r.createElement)("path",{fillRule:"evenodd",class:"cls-1",d:"M69.88,71.65h35.78a8.68,8.68,0,0,1,8.65,8.66v33.92a8.67,8.67,0,0,1-8.65,8.65H69.88a8.67,8.67,0,0,1-8.65-8.65V80.31a8.68,8.68,0,0,1,8.65-8.66ZM26.26,78.12a3.35,3.35,0,0,1-3.17-3.46,3.29,3.29,0,0,1,3.17-3.45H42.9a3.34,3.34,0,0,1,3.17,3.45,3.29,3.29,0,0,1-3.17,3.46Zm75.19-18.46h-7V8.1a1.17,1.17,0,0,0-.33-.82A1.2,1.2,0,0,0,93.34,7H8.06a1.15,1.15,0,0,0-.82.33,1.13,1.13,0,0,0-.33.82v96.35a1.13,1.13,0,0,0,1.15,1.16H45.17v7H8.1A8.16,8.16,0,0,1,0,104.45V8.1A7.93,7.93,0,0,1,2.39,2.39,8,8,0,0,1,8.1,0H93.39A7.92,7.92,0,0,1,99.1,2.39a8,8,0,0,1,2.39,5.71c0,39.79,0-9.25,0,51.56ZM26.22,33.12a3.36,3.36,0,0,1-3.17-3.46,3.3,3.3,0,0,1,3.17-3.46H75.14a3.35,3.35,0,0,1,3.17,3.46,3.3,3.3,0,0,1-3.17,3.46Zm0,22.5a3.36,3.36,0,0,1-3.17-3.46,3.29,3.29,0,0,1,3.17-3.45H75.14a3.34,3.34,0,0,1,3.17,3.45,3.29,3.29,0,0,1-3.17,3.46ZM75.65,99.16a2.41,2.41,0,0,1-2.08-1c-1.1-1.64.4-3.26,1.43-4.41,3-3.23,9.61-9.08,11.07-10.79a2.4,2.4,0,0,1,3.76,0c1.51,1.76,8.53,8,11.33,11.1,1,1.1,2.18,2.59,1.16,4.1a2.42,2.42,0,0,1-2.08,1H95v9.4a3,3,0,0,1-2.95,3H83.82a3,3,0,0,1-2.95-3v-9.4Z"}))},3431:e=>{var t=.1,n="function"==typeof Float32Array;function r(e,t){return 1-3*t+3*e}function o(e,t){return 3*t-6*e}function i(e){return 3*e}function a(e,t,n){return((r(t,n)*e+o(t,n))*e+i(t))*e}function l(e,t,n){return 3*r(t,n)*e*e+2*o(t,n)*e+i(t)}function s(e){return e}e.exports=function(e,r,o,i){if(!(0<=e&&e<=1&&0<=o&&o<=1))throw new Error("bezier x values must be in [0, 1] range");if(e===r&&o===i)return s;for(var c=n?new Float32Array(11):new Array(11),u=0;u<11;++u)c[u]=a(u*t,e,o);return function(n){return 0===n?0:1===n?1:a(function(n){for(var r=0,i=1;10!==i&&c[i]<=n;++i)r+=t;--i;var s=r+(n-c[i])/(c[i+1]-c[i])*t,u=l(s,e,o);return u>=.001?function(e,t,n,r){for(var o=0;o<4;++o){var i=l(t,n,r);if(0===i)return t;t-=(a(t,n,r)-e)/i}return t}(n,s,e,o):0===u?s:function(e,t,n,r,o){var i,l,s=0;do{(i=a(l=t+(n-t)/2,r,o)-e)>0?n=l:t=l}while(Math.abs(i)>1e-7&&++s<10);return l}(n,r,r+t,e,o)}(n),r,i)}}},1924:(e,t,n)=>{"use strict";var r=n(210),o=n(5559),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},5559:(e,t,n)=>{"use strict";var r=n(8612),o=n(210),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),l=o("%Reflect.apply%",!0)||r.call(a,i),s=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),u=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=l(r,a,arguments);return s&&c&&s(t,"length").configurable&&c(t,"length",{value:1+u(0,e.length-(arguments.length-1))}),t};var p=function(){return l(r,i,arguments)};c?c(e.exports,"apply",{value:p}):e.exports.apply=p},4184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var l in n)r.call(n,l)&&n[l]&&e.push(l)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},7734:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addEventListener:()=>s});var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o=void 0;function i(e){e.handlers===e.nextHandlers&&(e.nextHandlers=e.handlers.slice())}function a(e){this.target=e,this.events={}}a.prototype.getEventHandlers=function(e,t){var n,r=String(e)+" "+String((n=t)?!0===n?100:(n.capture<<0)+(n.passive<<1)+(n.once<<2):0);return this.events[r]||(this.events[r]={handlers:[],handleEvent:void 0},this.events[r].nextHandlers=this.events[r].handlers),this.events[r]},a.prototype.handleEvent=function(e,t,n){var r=this.getEventHandlers(e,t);r.handlers=r.nextHandlers,r.handlers.forEach((function(e){e&&e(n)}))},a.prototype.add=function(e,t,n){var r=this,o=this.getEventHandlers(e,n);i(o),0===o.nextHandlers.length&&(o.handleEvent=this.handleEvent.bind(this,e,n),this.target.addEventListener(e,o.handleEvent,n)),o.nextHandlers.push(t);var a=!0;return function(){if(a){a=!1,i(o);var l=o.nextHandlers.indexOf(t);o.nextHandlers.splice(l,1),0===o.nextHandlers.length&&(r.target&&r.target.removeEventListener(e,o.handleEvent,n),o.handleEvent=void 0)}}};var l="__consolidated_events_handlers__";function s(e,t,n,i){e[l]||(e[l]=new a(e));var s=function(e){if(e)return void 0===o&&(o=function(){if(!r)return!1;if(!window.addEventListener||!window.removeEventListener||!Object.defineProperty)return!1;var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t)}catch(e){}return e}()),o?e:!!e.capture}(i);return e[l].add(t,n,s)}},640:(e,t,n)=>{"use strict";var r=n(1742),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,l,s,c,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),l=document.createRange(),s=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),l.selectNodeContents(c),s.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(l):s.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},600:(e,t)=>{"use strict";t.T=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e&&Object.keys(e).indexOf("desktop")>-1?t?e:e.desktop:t?{desktop:e,tablet:e,mobile:e}:e}},251:(e,t,n)=>{"use strict";var r=n(3533),o=n(1924),i=n(2847),a=n(210),l=n(3216),s=n(7478),c=n(609),u=n(2584),p=n(8326),f=n(635),d=n(8923),h=n(8420),m=n(2579),g=n(2215),v=n(3679),y=n(3483),b=n(6430),w=o("ArrayBuffer.prototype.byteLength",!0)||function(e){return e.byteLength},E=o("SharedArrayBuffer.prototype.byteLength",!0),C=o("Date.prototype.getTime"),k=Object.getPrototypeOf,_=o("Object.prototype.toString"),S=a("%Set%",!0),x=o("Map.prototype.has",!0),O=o("Map.prototype.get",!0),N=o("Map.prototype.size",!0),A=o("Set.prototype.add",!0),P=o("Set.prototype.delete",!0),j=o("Set.prototype.has",!0),M=o("Set.prototype.size",!0);function T(e,t,n,r){for(var o,i=l(e);(o=i.next())&&!o.done;)if(F(t,o.value,n,r))return P(e,o.value),!0;return!1}function L(e){return void 0===e?null:"object"!=typeof e?"symbol"!=typeof e&&("string"!=typeof e&&"number"!=typeof e||+e==+e):void 0}function R(e,t,n,o,i,a){var l=L(n);if(null!=l)return l;var s=O(t,l),c=r({},i,{strict:!1});return!(void 0===s&&!x(t,l)||!F(o,s,c,a))&&!x(e,l)&&F(o,s,c,a)}function D(e,t,n){var r=L(n);return null!=r?r:j(t,r)&&!j(e,r)}function B(e,t,n,r,o,i){for(var a,s,c=l(e);(a=c.next())&&!a.done;)if(F(n,s=a.value,o,i)&&F(r,O(t,s),o,i))return P(e,s),!0;return!1}function F(e,t,n,o){var a=n||{};if(a.strict?c(e,t):e===t)return!0;if(v(e)!==v(t))return!1;if(!e||!t||"object"!=typeof e&&"object"!=typeof t)return a.strict?c(e,t):e==t;var s,P=o.has(e),L=o.has(t);if(P&&L){if(o.get(e)===o.get(t))return!0}else s={};return P||o.set(e,s),L||o.set(t,s),function(e,t,n,o){var a,s;if(typeof e!=typeof t)return!1;if(null==e||null==t)return!1;if(_(e)!==_(t))return!1;if(u(e)!==u(t))return!1;if(p(e)!==p(t))return!1;var c=e instanceof Error,v=t instanceof Error;if(c!==v)return!1;if((c||v)&&(e.name!==t.name||e.message!==t.message))return!1;var P=h(e),L=h(t);if(P!==L)return!1;if((P||L)&&(e.source!==t.source||i(e)!==i(t)))return!1;var z=d(e),V=d(t);if(z!==V)return!1;if((z||V)&&C(e)!==C(t))return!1;if(n.strict&&k&&k(e)!==k(t))return!1;var Z=b(e),U=b(t);if((Z||U)&&Z!==U)return!1;var H=I(e),$=I(t);if(H!==$)return!1;if(H||$){if(e.length!==t.length)return!1;for(a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}var W=f(e),K=f(t);if(W!==K)return!1;if(W||K)return w(e)===w(t)&&"function"==typeof Uint8Array&&F(new Uint8Array(e),new Uint8Array(t),n,o);var q=m(e),G=m(t);if(q!==G)return!1;if(q||G)return E(e)===E(t)&&"function"==typeof Uint8Array&&F(new Uint8Array(e),new Uint8Array(t),n,o);if(typeof e!=typeof t)return!1;var Y=g(e),J=g(t);if(Y.length!==J.length)return!1;for(Y.sort(),J.sort(),a=Y.length-1;a>=0;a--)if(Y[a]!=J[a])return!1;for(a=Y.length-1;a>=0;a--)if(!F(e[s=Y[a]],t[s],n,o))return!1;var Q=y(e),X=y(t);return Q===X&&("Set"===Q||"Set"===X?function(e,t,n,r){if(M(e)!==M(t))return!1;for(var o,i,a,s=l(e),c=l(t);(o=s.next())&&!o.done;)if(o.value&&"object"==typeof o.value)a||(a=new S),A(a,o.value);else if(!j(t,o.value)){if(n.strict)return!1;if(!D(e,t,o.value))return!1;a||(a=new S),A(a,o.value)}if(a){for(;(i=c.next())&&!i.done;)if(i.value&&"object"==typeof i.value){if(!T(a,i.value,n.strict,r))return!1}else if(!n.strict&&!j(e,i.value)&&!T(a,i.value,n.strict,r))return!1;return 0===M(a)}return!0}(e,t,n,o):"Map"!==Q||function(e,t,n,o){if(N(e)!==N(t))return!1;for(var i,a,s,c,u,p,f=l(e),d=l(t);(i=f.next())&&!i.done;)if(c=i.value[0],u=i.value[1],c&&"object"==typeof c)s||(s=new S),A(s,c);else if(void 0===(p=O(t,c))&&!x(t,c)||!F(u,p,n,o)){if(n.strict)return!1;if(!R(e,t,c,u,n,o))return!1;s||(s=new S),A(s,c)}if(s){for(;(a=d.next())&&!a.done;)if(c=a.value[0],p=a.value[1],c&&"object"==typeof c){if(!B(s,e,c,p,n,o))return!1}else if(!(n.strict||e.has(c)&&F(O(e,c),p,n,o)||B(s,e,c,p,r({},n,{strict:!1}),o)))return!1;return 0===M(s)}return!0}(e,t,n,o))}(e,t,a,o)}function I(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0]||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))}e.exports=function(e,t,n){return F(e,t,n,s())}},8326:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},4289:(e,t,n)=>{"use strict";var r=n(2215),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,l=Object.defineProperty,s=n(1044)(),c=l&&s,u=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(o=r)||"[object Function]"!==i.call(o)||!r())return;var o;c?l(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n},p=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var l=0;l<i.length;l+=1)u(e,i[l],t[i[l]],n[i[l]])};p.supportsDescriptors=!!c,e.exports=p},1676:e=>{"use strict";e.exports=function(e){if(arguments.length<1)throw new TypeError("1 argument is required");if("object"!=typeof e)throw new TypeError("Argument 1 (”other“) to Node.contains must be an instance of Node");var t=e;do{if(this===t)return!0;t&&(t=t.parentNode)}while(t);return!1}},2483:(e,t,n)=>{"use strict";var r=n(4289),o=n(1676),i=n(4356),a=i(),l=function(e,t){return a.apply(e,[t])};r(l,{getPolyfill:i,implementation:o,shim:n(1514)}),e.exports=l},4356:(e,t,n)=>{"use strict";var r=n(1676);e.exports=function(){if("undefined"!=typeof document){if(document.contains)return document.contains;if(document.body&&document.body.contains)try{if("boolean"==typeof document.body.contains.call(document,""))return document.body.contains}catch(e){}}return r}},1514:(e,t,n)=>{"use strict";var r=n(4289),o=n(4356);e.exports=function(){var e=o();return"undefined"!=typeof document&&(r(document,{contains:e},{contains:function(){return document.contains!==e}}),"undefined"!=typeof Element&&r(Element.prototype,{contains:e},{contains:function(){return Element.prototype.contains!==e}})),e}},5677:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},4029:(e,t,n)=>{"use strict";var r=n(5320),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=n),"[object Array]"===o.call(e)?function(e,t,n){for(var r=0,o=e.length;r<o;r++)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a):"string"==typeof e?function(e,t,n){for(var r=0,o=e.length;r<o;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(e,t,a):function(e,t,n){for(var r in e)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a)}},7648:e=>{"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==n.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var o,i=t.call(arguments,1),a=Math.max(0,r.length-i.length),l=[],s=0;s<a;s++)l.push("$"+s);if(o=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var n=r.apply(this,i.concat(t.call(arguments)));return Object(n)===n?n:this}return r.apply(e,i.concat(t.call(arguments)))})),r.prototype){var c=function(){};c.prototype=r.prototype,o.prototype=new c,c.prototype=null}return o}},8612:(e,t,n)=>{"use strict";var r=n(7648);e.exports=Function.prototype.bind||r},5972:e=>{"use strict";var t=function(){return"string"==typeof function(){}.name},n=Object.getOwnPropertyDescriptor;if(n)try{n([],"length")}catch(e){n=null}t.functionsHaveConfigurableNames=function(){if(!t()||!n)return!1;var e=n((function(){}),"name");return!!e&&!!e.configurable};var r=Function.prototype.bind;t.boundFunctionsHaveNames=function(){return t()&&"function"==typeof r&&""!==function(){}.bind().name},e.exports=t},210:(e,t,n)=>{"use strict";var r,o=SyntaxError,i=Function,a=TypeError,l=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(e){s=null}var c=function(){throw new a},u=s?function(){try{return c}catch(e){try{return s(arguments,"callee").get}catch(e){return c}}}():c,p=n(1405)(),f=Object.getPrototypeOf||function(e){return e.__proto__},d={},h="undefined"==typeof Uint8Array?r:f(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":p?f([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?f(f([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p?f((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p?f((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?f(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":u,"%TypedArray%":h,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};try{null.error}catch(e){var g=f(f(e));m["%Error.prototype%"]=g}var v=function e(t){var n;if("%AsyncFunction%"===t)n=l("async function () {}");else if("%GeneratorFunction%"===t)n=l("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=l("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(n=f(o.prototype))}return m[t]=n,n},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=n(8612),w=n(7642),E=b.call(Function.call,Array.prototype.concat),C=b.call(Function.apply,Array.prototype.splice),k=b.call(Function.call,String.prototype.replace),_=b.call(Function.call,String.prototype.slice),S=b.call(Function.call,RegExp.prototype.exec),x=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,N=function(e,t){var n,r=e;if(w(y,r)&&(r="%"+(n=y[r])[0]+"%"),w(m,r)){var i=m[r];if(i===d&&(i=v(r)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===S(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=_(e,0,1),n=_(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return k(e,x,(function(e,t,n,o){r[r.length]=n?k(o,O,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=N("%"+r+"%",t),l=i.name,c=i.value,u=!1,p=i.alias;p&&(r=p[0],C(n,E([0,1],p)));for(var f=1,d=!0;f<n.length;f+=1){var h=n[f],g=_(h,0,1),v=_(h,-1);if(('"'===g||"'"===g||"`"===g||'"'===v||"'"===v||"`"===v)&&g!==v)throw new o("property names with quotes must have matching quotes");if("constructor"!==h&&d||(u=!0),w(m,l="%"+(r+="."+h)+"%"))c=m[l];else if(null!=c){if(!(h in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(s&&f+1>=n.length){var y=s(c,h);c=(d=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:c[h]}else d=w(c,h),c=c[h];d&&!u&&(m[l]=c)}}return c}},7296:(e,t,n)=>{"use strict";var r=n(210)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},932:e=>{"use strict";var t="undefined"!=typeof BigInt&&BigInt;e.exports=function(){return"function"==typeof t&&"function"==typeof BigInt&&"bigint"==typeof t(42)&&"bigint"==typeof BigInt(42)}},1044:(e,t,n)=>{"use strict";var r=n(210)("%Object.defineProperty%",!0),o=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},1405:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(5419);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},5419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},6410:(e,t,n)=>{"use strict";var r=n(5419);e.exports=function(){return r()&&!!Symbol.toStringTag}},7642:(e,t,n)=>{"use strict";var r=n(8612);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},8679:(e,t,n)=>{"use strict";var r=n(9864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=d(n);o&&o!==h&&e(t,o,r)}var a=u(n);p&&(a=a.concat(p(n)));for(var l=s(t),m=s(n),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||r&&r[v]||m&&m[v]||l&&l[v])){var y=f(n,v);try{c(t,v,y)}catch(e){}}}}return t}},9496:(e,t,n)=>{"use strict";var r=n(210),o=n(7642),i=n(7478)(),a=r("%TypeError%"),l={assert:function(e,t){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new a("`O` is not an object");if("string"!=typeof t)throw new a("`slot` must be a string");if(i.assert(e),!l.has(e,t))throw new a("`"+t+"` is not present on `O`")},get:function(e,t){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new a("`O` is not an object");if("string"!=typeof t)throw new a("`slot` must be a string");var n=i.get(e);return n&&n["$"+t]},has:function(e,t){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new a("`O` is not an object");if("string"!=typeof t)throw new a("`slot` must be a string");var n=i.get(e);return!!n&&o(n,"$"+t)},set:function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new a("`O` is not an object");if("string"!=typeof t)throw new a("`slot` must be a string");var r=i.get(e);r||(r={},i.set(e,r)),r["$"+t]=n}};Object.freeze&&Object.freeze(l),e.exports=l},2584:(e,t,n)=>{"use strict";var r=n(6410)(),o=n(1924)("Object.prototype.toString"),i=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},a=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},l=function(){return i(arguments)}();i.isLegacyArguments=a,e.exports=l?i:a},635:(e,t,n)=>{"use strict";var r=n(5559),o=n(1924),i=n(210),a=n(5692),l=i("ArrayBuffer",!0),s=i("Float32Array",!0),c=o("ArrayBuffer.prototype.byteLength",!0),u=l&&!c&&(new l).slice,p=u&&r(u);e.exports=c||p?function(e){if(!e||"object"!=typeof e)return!1;try{return c?c(e):p(e,0),!0}catch(e){return!1}}:s?function(e){try{return new s(e).buffer===e&&!a(e)}catch(t){return"object"==typeof e&&"RangeError"===t.name}}:function(e){return!1}},3376:(e,t,n)=>{"use strict";if(n(932)()){var r=BigInt.prototype.valueOf;e.exports=function(e){return null!=e&&"boolean"!=typeof e&&"string"!=typeof e&&"number"!=typeof e&&"symbol"!=typeof e&&"function"!=typeof e&&("bigint"==typeof e||function(e){try{return r.call(e),!0}catch(e){}return!1}(e))}}else e.exports=function(e){return!1}},6814:(e,t,n)=>{"use strict";var r=n(1924),o=r("Boolean.prototype.toString"),i=r("Object.prototype.toString"),a=n(6410)();e.exports=function(e){return"boolean"==typeof e||null!==e&&"object"==typeof e&&(a&&Symbol.toStringTag in e?function(e){try{return o(e),!0}catch(e){return!1}}(e):"[object Boolean]"===i(e))}},5320:e=>{"use strict";var t,n,r=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},o((function(){throw 42}),null,t)}catch(e){e!==n&&(o=null)}else o=null;var i=/^\s*class\b/,a=function(e){try{var t=r.call(e);return i.test(t)}catch(e){return!1}},l=function(e){try{return!a(e)&&(r.call(e),!0)}catch(e){return!1}},s=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,u=!(0 in[,]),p=function(){return!1};if("object"==typeof document){var f=document.all;s.call(f)===s.call(document.all)&&(p=function(e){if((u||!e)&&(void 0===e||"object"==typeof e))try{var t=s.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=o?function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{o(e,null,t)}catch(e){if(e!==n)return!1}return!a(e)&&l(e)}:function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(c)return l(e);if(a(e))return!1;var t=s.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&l(e)}},8923:(e,t,n)=>{"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,i=n(6410)();e.exports=function(e){return"object"==typeof e&&null!==e&&(i?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},8379:e=>{"use strict";var t,n="function"==typeof Map&&Map.prototype?Map:null,r="function"==typeof Set&&Set.prototype?Set:null;n||(t=function(e){return!1});var o=n?Map.prototype.has:null,i=r?Set.prototype.has:null;t||o||(t=function(e){return!1}),e.exports=t||function(e){if(!e||"object"!=typeof e)return!1;try{if(o.call(e),i)try{i.call(e)}catch(e){return!0}return e instanceof n}catch(e){}return!1}},4578:(e,t,n)=>{"use strict";var r=Number.prototype.toString,o=Object.prototype.toString,i=n(6410)();e.exports=function(e){return"number"==typeof e||"object"==typeof e&&(i?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Number]"===o.call(e))}},8420:(e,t,n)=>{"use strict";var r,o,i,a,l=n(1924),s=n(6410)();if(s){r=l("Object.prototype.hasOwnProperty"),o=l("RegExp.prototype.exec"),i={};var c=function(){throw i};a={toString:c,valueOf:c},"symbol"==typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=c)}var u=l("Object.prototype.toString"),p=Object.getOwnPropertyDescriptor;e.exports=s?function(e){if(!e||"object"!=typeof e)return!1;var t=p(e,"lastIndex");if(!t||!r(t,"value"))return!1;try{o(e,a)}catch(e){return e===i}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===u(e)}},9572:e=>{"use strict";var t,n="function"==typeof Map&&Map.prototype?Map:null,r="function"==typeof Set&&Set.prototype?Set:null;r||(t=function(e){return!1});var o=n?Map.prototype.has:null,i=r?Set.prototype.has:null;t||i||(t=function(e){return!1}),e.exports=t||function(e){if(!e||"object"!=typeof e)return!1;try{if(i.call(e),o)try{o.call(e)}catch(e){return!0}return e instanceof r}catch(e){}return!1}},2579:(e,t,n)=>{"use strict";var r=n(1924)("SharedArrayBuffer.prototype.byteLength",!0);e.exports=r?function(e){if(!e||"object"!=typeof e)return!1;try{return r(e),!0}catch(e){return!1}}:function(e){return!1}},9981:(e,t,n)=>{"use strict";var r=String.prototype.valueOf,o=Object.prototype.toString,i=n(6410)();e.exports=function(e){return"string"==typeof e||"object"==typeof e&&(i?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object String]"===o.call(e))}},2636:(e,t,n)=>{"use strict";var r=Object.prototype.toString;if(n(1405)()){var o=Symbol.prototype.toString,i=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==r.call(e))return!1;try{return function(e){return"symbol"==typeof e.valueOf()&&i.test(o.call(e))}(e)}catch(e){return!1}}}else e.exports=function(e){return!1}},5692:(e,t,n)=>{"use strict";var r=n(4029),o=n(3083),i=n(1924),a=i("Object.prototype.toString"),l=n(6410)(),s=n(7296),c="undefined"==typeof globalThis?n.g:globalThis,u=o(),p=i("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},f=i("String.prototype.slice"),d={},h=Object.getPrototypeOf;l&&s&&h&&r(u,(function(e){var t=new c[e];if(Symbol.toStringTag in t){var n=h(t),r=s(n,Symbol.toStringTag);if(!r){var o=h(n);r=s(o,Symbol.toStringTag)}d[e]=r.get}})),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!l||!(Symbol.toStringTag in e)){var t=f(a(e),8,-1);return p(u,t)>-1}return!!s&&function(e){var t=!1;return r(d,(function(n,r){if(!t)try{t=n.call(e)===r}catch(e){}})),t}(e)}},1718:e=>{"use strict";var t,n="function"==typeof WeakMap&&WeakMap.prototype?WeakMap:null,r="function"==typeof WeakSet&&WeakSet.prototype?WeakSet:null;n||(t=function(e){return!1});var o=n?n.prototype.has:null,i=r?r.prototype.has:null;t||o||(t=function(e){return!1}),e.exports=t||function(e){if(!e||"object"!=typeof e)return!1;try{if(o.call(e,o),i)try{i.call(e,i)}catch(e){return!0}return e instanceof n}catch(e){}return!1}},5899:(e,t,n)=>{"use strict";var r=n(210),o=n(1924),i=r("%WeakSet%",!0),a=o("WeakSet.prototype.has",!0);if(a){var l=o("WeakMap.prototype.has",!0);e.exports=function(e){if(!e||"object"!=typeof e)return!1;try{if(a(e,a),l)try{l(e,l)}catch(e){return!0}return e instanceof i}catch(e){}return!1}}else e.exports=function(e){return!1}},7465:(e,t,n)=>{"use strict";n.d(t,{KY:()=>l,Nj:()=>s});var r=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function e(t,n,r){var o=(t="string"==typeof t?t.split("/"):[t]).shift();return n&&void 0!==n[o]?t.length?e(t=t.join("/"),n[o],r):n[o]:r},a=function(e){return"string"==typeof e&&(e=e.split("/")),e.length>1&&e.pop(),e},l=function(e){return e.all||e.any||(e={all:e}),e},s=function e(t,n){var l=Object.values(t)[0],s=function(e){return!(e.length>4)&&(0===e.indexOf("any")?"any":0===e.indexOf("all")&&"all")},c=Object.keys(l).map((function(t,c){var u=Object.values(l)[c];return"all"===s(t)||"any"===s(t)?e(r({},t,u),n):function(e,t,n){var l=function(e,t){var n,l=function(e){return i(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t)};if(e.indexOf(":")>-1){var s=null;if(n=function(e){var n,c=(n=e,Array.isArray(n)?n:Array.from(n)),u=c[0],p=c.slice(1);if("visibility"===(p=p.join(":"))&&(s=l(u,o({},t,r({},a(u),i(a(u),t)[t.wp_customizer_current_view]?"yes":"no")))),"responsive"===p&&(s=l(u,o({},t,r({},a(u),i(a(u),t)[t.wp_customizer_current_view]||i(a(u),t))))),"truthy"===p&&(s=l(u)?"yes":"no"),p.indexOf("array-ids")>-1){var f=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],_n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(_n=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(p.split(":"),3),d=f[0],h=f[1],m=f[2],g=d.indexOf("array-ids-")>-1&&d.split("-")[2],v=l(u).filter((function(e){return e.id===h})).filter((function(e){return!g||g===i(m,e).toString()}));s=0===v.length?"no":i(m,v[0])||"no"}if(p.indexOf("json:")>-1&&(s=l(u+"/"+p.split(":")[1]).toString()),"array_length"===p){var y=l(u);s=(y||[]).length.toString()}if(!s)throw new Error("Unknown matcher received. Please verify for typos. The received matcher: "+p+".")},n(e.split(":")),s)return s;e=e.split(":")[0]}var c=l(e);return!!c&&(c.desktop?c:c.toString())}(t,n);if(e&&e.toString()&&0===e.toString().indexOf("~")){var s=e.replace("~","");return l.desktop?l.desktop===s||l.tablet===s||l.mobile===s:l===s}return l=l.toString(),e=e.toString(),!!l&&(e.indexOf("|")>-1?0===e.indexOf("!")?-1===e.substring(1).split("|").map((function(e){return e.trim()})).includes(l.trim()):e.split("|").map((function(e){return e.trim()})).indexOf(l.trim())>-1:0===e.indexOf("!")?l!==e.substring(1).trim():0===e.indexOf("*")?l.indexOf(e.trim().substring(1).trim())>-1:l===e.trim())}(u,t,n)}));return"all"===s(Object.keys(t)[0])?c.every((function(e){return!!e})):"any"===s(Object.keys(t)[0])?c.some((function(e){return!!e})):void 0}},631:(e,t,n)=>{var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,a=r&&Map.prototype.forEach,l="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=l&&s&&"function"==typeof s.get?s.get:null,u=l&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,v=String.prototype.match,y=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,E=String.prototype.toLowerCase,C=RegExp.prototype.test,k=Array.prototype.concat,_=Array.prototype.join,S=Array.prototype.slice,x=Math.floor,O="function"==typeof BigInt?BigInt.prototype.valueOf:null,N=Object.getOwnPropertySymbols,A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,P="function"==typeof Symbol&&"object"==typeof Symbol.iterator,j="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,M=Object.prototype.propertyIsEnumerable,T=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function L(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||C.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-x(-e):x(e);if(r!==e){var o=String(r),i=y.call(t,o.length+1);return b.call(o,n,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var R=n(4654),D=R.custom,B=Z(D)?D:null;function F(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function I(e){return b.call(String(e),/"/g,""")}function z(e){return!("[object Array]"!==$(e)||j&&"object"==typeof e&&j in e)}function V(e){return!("[object RegExp]"!==$(e)||j&&"object"==typeof e&&j in e)}function Z(e){if(P)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,r,o){var l=n||{};if(H(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=!H(l,"customInspect")||l.customInspect;if("boolean"!=typeof s&&"symbol"!==s)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var m=l.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return K(t,l);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var w=String(t);return m?L(t,w):w}if("bigint"==typeof t){var C=String(t)+"n";return m?L(t,C):C}var x=void 0===l.depth?5:l.depth;if(void 0===r&&(r=0),r>=x&&x>0&&"object"==typeof t)return z(t)?"[Array]":"[Object]";var N,D=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=_.call(Array(e.indent+1)," ")}return{base:n,prev:_.call(Array(t+1),n)}}(l,r);if(void 0===o)o=[];else if(W(o,t)>=0)return"[Circular]";function U(t,n,i){if(n&&(o=S.call(o)).push(n),i){var a={depth:l.depth};return H(l,"quoteStyle")&&(a.quoteStyle=l.quoteStyle),e(t,a,r+1,o)}return e(t,l,r+1,o)}if("function"==typeof t&&!V(t)){var q=function(e){if(e.name)return e.name;var t=v.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),ee=X(t,U);return"[Function"+(q?": "+q:" (anonymous)")+"]"+(ee.length>0?" { "+_.call(ee,", ")+" }":"")}if(Z(t)){var te=P?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):A.call(t);return"object"!=typeof t||P?te:G(te)}if((N=t)&&"object"==typeof N&&("undefined"!=typeof HTMLElement&&N instanceof HTMLElement||"string"==typeof N.nodeName&&"function"==typeof N.getAttribute)){for(var ne="<"+E.call(String(t.nodeName)),re=t.attributes||[],oe=0;oe<re.length;oe++)ne+=" "+re[oe].name+"="+F(I(re[oe].value),"double",l);return ne+=">",t.childNodes&&t.childNodes.length&&(ne+="..."),ne+"</"+E.call(String(t.nodeName))+">"}if(z(t)){if(0===t.length)return"[]";var ie=X(t,U);return D&&!function(e){for(var t=0;t<e.length;t++)if(W(e[t],"\n")>=0)return!1;return!0}(ie)?"["+Q(ie,D)+"]":"[ "+_.call(ie,", ")+" ]"}if(function(e){return!("[object Error]"!==$(e)||j&&"object"==typeof e&&j in e)}(t)){var ae=X(t,U);return"cause"in Error.prototype||!("cause"in t)||M.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+_.call(ae,", ")+" }":"{ ["+String(t)+"] "+_.call(k.call("[cause]: "+U(t.cause),ae),", ")+" }"}if("object"==typeof t&&s){if(B&&"function"==typeof t[B]&&R)return R(t,{depth:x-r});if("symbol"!==s&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var le=[];return a&&a.call(t,(function(e,n){le.push(U(n,t,!0)+" => "+U(e,t))})),J("Map",i.call(t),le,D)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var se=[];return u&&u.call(t,(function(e){se.push(U(e,t))})),J("Set",c.call(t),se,D)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Y("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Y("WeakSet");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{return d.call(e),!0}catch(e){}return!1}(t))return Y("WeakRef");if(function(e){return!("[object Number]"!==$(e)||j&&"object"==typeof e&&j in e)}(t))return G(U(Number(t)));if(function(e){if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}(t))return G(U(O.call(t)));if(function(e){return!("[object Boolean]"!==$(e)||j&&"object"==typeof e&&j in e)}(t))return G(h.call(t));if(function(e){return!("[object String]"!==$(e)||j&&"object"==typeof e&&j in e)}(t))return G(U(String(t)));if(!function(e){return!("[object Date]"!==$(e)||j&&"object"==typeof e&&j in e)}(t)&&!V(t)){var ce=X(t,U),ue=T?T(t)===Object.prototype:t instanceof Object||t.constructor===Object,pe=t instanceof Object?"":"null prototype",fe=!ue&&j&&Object(t)===t&&j in t?y.call($(t),8,-1):pe?"Object":"",de=(ue||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fe||pe?"["+_.call(k.call([],fe||[],pe||[]),": ")+"] ":"");return 0===ce.length?de+"{}":D?de+"{"+Q(ce,D)+"}":de+"{ "+_.call(ce,", ")+" }"}return String(t)};var U=Object.prototype.hasOwnProperty||function(e){return e in this};function H(e,t){return U.call(e,t)}function $(e){return m.call(e)}function W(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function K(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return K(y.call(e,0,t.maxStringLength),t)+r}return F(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,q),"single",t)}function q(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function G(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function J(e,t,n,r){return e+" ("+t+") {"+(r?Q(n,r):_.call(n,", "))+"}"}function Q(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+_.call(e,","+n)+"\n"+t.prev}function X(e,t){var n=z(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=H(e,o)?t(e[o],e):""}var i,a="function"==typeof N?N(e):[];if(P){i={};for(var l=0;l<a.length;l++)i["$"+a[l]]=a[l]}for(var s in e)H(e,s)&&(n&&String(Number(s))===s&&s<e.length||P&&i["$"+s]instanceof Symbol||(C.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e))));if("function"==typeof N)for(var c=0;c<a.length;c++)M.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}},4244:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},609:(e,t,n)=>{"use strict";var r=n(4289),o=n(5559),i=n(4244),a=n(5624),l=n(2281),s=o(a(),Object);r(s,{getPolyfill:a,implementation:i,shim:l}),e.exports=s},5624:(e,t,n)=>{"use strict";var r=n(4244);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},2281:(e,t,n)=>{"use strict";var r=n(5624),o=n(4289);e.exports=function(){var e=r();return o(Object,{is:e},{is:function(){return Object.is!==e}}),e}},8987:(e,t,n)=>{"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n(1414),l=Object.prototype.propertyIsEnumerable,s=!l.call({toString:null},"toString"),c=l.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{p(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),r=a(e),l=t&&"[object String]"===i.call(e),f=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=c&&n;if(l&&e.length>0&&!o.call(e,0))for(var m=0;m<e.length;++m)f.push(String(m));if(r&&e.length>0)for(var g=0;g<e.length;++g)f.push(String(g));else for(var v in e)h&&"prototype"===v||!o.call(e,v)||f.push(String(v));if(s)for(var y=function(e){if("undefined"==typeof window||!d)return p(e);try{return p(e)}catch(e){return!1}}(e),b=0;b<u.length;++b)y&&"constructor"===u[b]||!o.call(e,u[b])||f.push(u[b]);return f}}e.exports=r},2215:(e,t,n)=>{"use strict";var r=Array.prototype.slice,o=n(1414),i=Object.keys,a=i?function(e){return i(e)}:n(8987),l=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return o(e)?l(r.call(e)):l(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},1414:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},2837:(e,t,n)=>{"use strict";var r=n(2215),o=n(5419)(),i=n(1924),a=Object,l=i("Array.prototype.push"),s=i("Object.prototype.propertyIsEnumerable"),c=o?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var n=a(e);if(1===arguments.length)return n;for(var i=1;i<arguments.length;++i){var u=a(arguments[i]),p=r(u),f=o&&(Object.getOwnPropertySymbols||c);if(f)for(var d=f(u),h=0;h<d.length;++h){var m=d[h];s(u,m)&&l(p,m)}for(var g=0;g<p.length;++g){var v=p[g];if(s(u,v)){var y=u[v];n[v]=y}}}return n}},3533:(e,t,n)=>{"use strict";var r=n(4289),o=n(5559),i=n(2837),a=n(8162),l=n(4489),s=o.apply(a()),c=function(e,t){return s(Object,arguments)};r(c,{getPolyfill:a,implementation:i,shim:l}),e.exports=c},8162:(e,t,n)=>{"use strict";var r=n(2837);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r<t.length;++r)n[t[r]]=t[r];var o=Object.assign({},n),i="";for(var a in o)i+=a;return e!==i}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?r:Object.assign:r}},4489:(e,t,n)=>{"use strict";var r=n(4289),o=n(8162);e.exports=function(){var e=o();return r(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e}},3513:(e,t,n)=>{"use strict";var r=n(1897),o=n(1924),i=o("Object.prototype.propertyIsEnumerable"),a=o("Array.prototype.push");e.exports=function(e){var t=r(e),n=[];for(var o in t)i(t,o)&&a(n,t[o]);return n}},5869:(e,t,n)=>{"use strict";var r=n(4289),o=n(5559),i=n(3513),a=n(7164),l=n(6970),s=o(a(),Object);r(s,{getPolyfill:a,implementation:i,shim:l}),e.exports=s},7164:(e,t,n)=>{"use strict";var r=n(3513);e.exports=function(){return"function"==typeof Object.values?Object.values:r}},6970:(e,t,n)=>{"use strict";var r=n(7164),o=n(4289);e.exports=function(){var e=r();return o(Object,{values:e},{values:function(){return Object.values!==e}}),e}},4779:(e,t,n)=>{var r=n(6173);e.exports=function e(t,n,o){return r(n)||(o=n||o,n=[]),o=o||{},t instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(t,n):r(t)?function(t,n,r){for(var o=[],i=0;i<t.length;i++)o.push(e(t[i],n,r).source);return u(new RegExp("(?:"+o.join("|")+")",p(r)),n)}(t,n,o):function(e,t,n){return f(i(e,n),t,n)}(t,n,o)},e.exports.parse=i,e.exports.compile=function(e,t){return l(i(e,t),t)},e.exports.tokensToFunction=l,e.exports.tokensToRegExp=f;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,a=0,l="",u=t&&t.delimiter||"/";null!=(n=o.exec(e));){var p=n[0],f=n[1],d=n.index;if(l+=e.slice(a,d),a=d+p.length,f)l+=f[1];else{var h=e[a],m=n[2],g=n[3],v=n[4],y=n[5],b=n[6],w=n[7];l&&(r.push(l),l="");var E=null!=m&&null!=h&&h!==m,C="+"===b||"*"===b,k="?"===b||"*"===b,_=n[2]||u,S=v||y;r.push({name:g||i++,prefix:m||"",delimiter:_,optional:k,repeat:C,partial:E,asterisk:!!w,pattern:S?c(S):w?".*":"[^"+s(_)+"]+?"})}}return a<e.length&&(l+=e.substr(a)),l&&r.push(l),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function l(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"==typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",p(t)));return function(t,o){for(var i="",l=t||{},s=(o||{}).pretty?a:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!=typeof u){var p,f=l[u.name];if(null==f){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(f)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var d=0;d<f.length;d++){if(p=s(f[d]),!n[c].test(p))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(p)+"`");i+=(0===d?u.prefix:u.delimiter)+p}}else{if(p=u.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):s(f),!n[c].test(p))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+p+'"');i+=u.prefix+p}}else i+=u}return i}}function s(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function p(e){return e&&e.sensitive?"":"i"}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",l=0;l<e.length;l++){var c=e[l];if("string"==typeof c)a+=s(c);else{var f=s(c.prefix),d="(?:"+c.pattern+")";t.push(c),c.repeat&&(d+="(?:"+f+d+")*"),a+=d=c.optional?c.partial?f+"("+d+")?":"(?:"+f+"("+d+"))?":f+"("+d+")"}}var h=s(n.delimiter||"/"),m=a.slice(-h.length)===h;return o||(a=(m?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=i?"$":o&&m?"":"(?="+h+"|$)",u(new RegExp("^"+a,p(n)),t)}},6173:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},2703:(e,t,n)=>{"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5697:(e,t,n)=>{e.exports=n(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9921:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case p:case i:case l:case a:case d:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case s:return e;default:return t}}case o:return t}}}function C(e){return E(e)===p}t.AsyncMode=u,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=s,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=d,t.isAsyncMode=function(e){return C(e)||E(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===i},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===l},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===l||e===a||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=E},9864:(e,t,n)=>{"use strict";e.exports=n(9921)},6428:(e,t,n)=>{"use strict";var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=u(n(9196)),i=u(n(5697)),a=n(8341),l=n(7734),s=u(n(5869)),c=u(n(2483));function u(e){return e&&e.__esModule?e:{default:e}}var p={BLOCK:"block",FLEX:"flex",INLINE:"inline",INLINE_BLOCK:"inline-block",CONTENTS:"contents"},f=(0,a.forbidExtraProps)({children:i.default.node.isRequired,onOutsideClick:i.default.func.isRequired,disabled:i.default.bool,useCapture:i.default.bool,display:i.default.oneOf((0,s.default)(p))}),d={disabled:!1,useCapture:!0,display:p.BLOCK},h=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r)));return i.onMouseDown=i.onMouseDown.bind(i),i.onMouseUp=i.onMouseUp.bind(i),i.setChildNodeRef=i.setChildNodeRef.bind(i),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.disabled,n=e.useCapture;t||this.addMouseDownEventListener(n)}},{key:"componentDidUpdate",value:function(e){var t=e.disabled,n=this.props,r=n.disabled,o=n.useCapture;t!==r&&(r?this.removeEventListeners():this.addMouseDownEventListener(o))}},{key:"componentWillUnmount",value:function(){this.removeEventListeners()}},{key:"onMouseDown",value:function(e){var t=this.props.useCapture;this.childNode&&(0,c.default)(this.childNode,e.target)||(this.removeMouseUp&&(this.removeMouseUp(),this.removeMouseUp=null),this.removeMouseUp=(0,l.addEventListener)(document,"mouseup",this.onMouseUp,{capture:t}))}},{key:"onMouseUp",value:function(e){var t=this.props.onOutsideClick,n=this.childNode&&(0,c.default)(this.childNode,e.target);this.removeMouseUp&&(this.removeMouseUp(),this.removeMouseUp=null),n||t(e)}},{key:"setChildNodeRef",value:function(e){this.childNode=e}},{key:"addMouseDownEventListener",value:function(e){this.removeMouseDown=(0,l.addEventListener)(document,"mousedown",this.onMouseDown,{capture:e})}},{key:"removeEventListeners",value:function(){this.removeMouseDown&&this.removeMouseDown(),this.removeMouseUp&&this.removeMouseUp()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.display;return o.default.createElement("div",{ref:this.setChildNodeRef,style:n!==p.BLOCK&&(0,s.default)(p).includes(n)?{display:n}:void 0},t)}}]),t}(o.default.Component);t.default=h,h.propTypes=f,h.defaultProps=d},9834:(e,t,n)=>{e.exports=n(6428)},7522:(e,t,n)=>{"use strict";n.d(t,{uT:()=>Se});var r=n(3366),o=n(1721);function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var a=n(7462),l=n(9196),s=n.n(l);const c=window.ReactDOM;var u=n.n(c),p=void 0,f=void 0,d=[],h=function(e){return"undefined"!=typeof window&&window.requestAnimationFrame(e)},m=void 0,g=function(){return Date.now()},v=void 0,y=function(){function e(){}var t=e.prototype;return t.attach=function(){},t.detach=function(){},t.getValue=function(){},t.getAnimatedValue=function(){return this.getValue()},t.addChild=function(e){},t.removeChild=function(e){},t.getChildren=function(){return[]},e}(),b=function(e){return Object.keys(e).map((function(t){return e[t]}))},w=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).children=[],t.getChildren=function(){return t.children},t.getPayload=function(e){return void 0===e&&(e=void 0),void 0!==e&&t.payload?t.payload[e]:t.payload||i(i(t))},t}(0,o.Z)(t,e);var n=t.prototype;return n.addChild=function(e){0===this.children.length&&this.attach(),this.children.push(e)},n.removeChild=function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()},t}(y),E=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload=[],t.getAnimatedValue=function(){return t.getValue()},t.attach=function(){return t.payload.forEach((function(e){return e instanceof y&&e.addChild(i(i(t)))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof y&&e.removeChild(i(i(t)))}))},t}return(0,o.Z)(t,e),t}(w),C=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload={},t.getAnimatedValue=function(){return t.getValue(!0)},t.attach=function(){return b(t.payload).forEach((function(e){return e instanceof y&&e.addChild(i(i(t)))}))},t.detach=function(){return b(t.payload).forEach((function(e){return e instanceof y&&e.removeChild(i(i(t)))}))},t}return(0,o.Z)(t,e),t.prototype.getValue=function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof y)&&(t[n]=r instanceof y?r[e?"getAnimatedValue":"getValue"]():r)}return t},t}(w),k=function(e){function t(t){var n;return n=e.call(this)||this,!(t=t||{}).transform||t.transform instanceof y||(t=f.transform(t)),n.payload=t,n}return(0,o.Z)(t,e),t}(C),_={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},S=function(){function e(){}return e.create=function(t,n,r){if("function"==typeof t)return t;if(m&&t.output&&"string"==typeof t.output[0])return m(t);if(Array.isArray(t))return e.create({range:t,output:n,extrapolate:r||"extend"});var o=t.output,i=t.range||[0,1],a=t.easing||function(e){return e},l="extend",s=t.map;void 0!==t.extrapolateLeft?l=t.extrapolateLeft:void 0!==t.extrapolate&&(l=t.extrapolate);var c="extend";return void 0!==t.extrapolateRight?c=t.extrapolateRight:void 0!==t.extrapolate&&(c=t.extrapolate),function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,l,s){var c=s?s(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===l)return c;"clamp"===l&&(c=n)}return r===o?r:t===n?e<=t?r:o:(t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t),c=i(c),r===-1/0?c=-c:o===1/0?c+=r:c=c*(o-r)+r,c)}(e,i[t],i[t+1],o[t],o[t+1],a,l,c,s)}},e}(),x="[-+]?\\d*\\.?\\d+",O=x+"%";function N(){return"\\(\\s*("+Array.prototype.slice.call(arguments).join(")\\s*,\\s*(")+")\\s*\\)"}var A=new RegExp("rgb"+N(x,x,x)),P=new RegExp("rgba"+N(x,x,x,x)),j=new RegExp("hsl"+N(x,O,O)),M=new RegExp("hsla"+N(x,O,O,x)),T=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,L=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,R=/^#([0-9a-fA-F]{6})$/,D=/^#([0-9a-fA-F]{8})$/;function B(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function F(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=B(o,r,e+1/3),a=B(o,r,e),l=B(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function I(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function z(e){return(parseFloat(e)%360+360)%360/360}function V(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Z(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function U(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=R.exec(t))?parseInt(n[1]+"ff",16)>>>0:_.hasOwnProperty(t)?_[t]:(n=A.exec(t))?(I(n[1])<<24|I(n[2])<<16|I(n[3])<<8|255)>>>0:(n=P.exec(t))?(I(n[1])<<24|I(n[2])<<16|I(n[3])<<8|V(n[4]))>>>0:(n=T.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=D.exec(t))?parseInt(n[1],16)>>>0:(n=L.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=j.exec(t))?(255|F(z(n[1]),Z(n[2]),Z(n[3])))>>>0:(n=M.exec(t))?(F(z(n[1]),Z(n[2]),Z(n[3]))|V(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var H=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,$=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,W=new RegExp("("+Object.keys(_).join("|")+")","g"),K=function(e){function t(n,r,o){var a;return(a=e.call(this)||this).getValue=function(){var e;return(e=a).calc.apply(e,a.payload.map((function(e){return e.getValue()})))},a.updateConfig=function(e,t){return a.calc=S.create(e,t)},a.interpolate=function(e,n){return new t(i(i(a)),e,n)},a.payload=n instanceof E&&!n.updateConfig?n.payload:Array.isArray(n)?n:[n],a.calc=S.create(r,o),a}return(0,o.Z)(t,e),t}(E);function q(e,t){"function"==typeof e.update?t.add(e):e.getChildren().forEach((function(e){return q(e,t)}))}var G=function(e){function t(t){var n;return(n=e.call(this)||this).setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.getValue=function(){return n.value},n.updateStyles=function(){return q(i(i(n)),n.animatedStyles)},n.updateValue=function(e){return n.flush(n.value=e)},n.interpolate=function(e,t){return new K(i(i(n)),e,t)},n.value=t,n.animatedStyles=new Set,n.done=!1,n.startPosition=t,n.lastPosition=t,n.lastVelocity=void 0,n.lastTime=void 0,n.controller=void 0,n}(0,o.Z)(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&this.updateStyles(),this.animatedStyles.forEach((function(e){return e.update()}))},n.prepare=function(e){void 0===this.controller&&(this.controller=e),this.controller===e&&(this.startPosition=this.value,this.lastPosition=this.value,this.lastVelocity=e.isActive?this.lastVelocity:void 0,this.lastTime=e.isActive?this.lastTime:void 0,this.done=!1,this.animatedStyles.clear())},t}(w),Y=function(e){function t(t){var n;return(n=e.call(this)||this).setValue=function(e,t){void 0===t&&(t=!0),Array.isArray(e)?e.length===n.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):n.payload.forEach((function(r,o){return n.payload[o].setValue(e,t)}))},n.getValue=function(){return n.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new K(i(i(n)),e,t)},n.payload=t.map((function(e){return new G(e)})),n}return(0,o.Z)(t,e),t}(E);function J(e,t){return null==e?t:e}function Q(e){return void 0!==e?Array.isArray(e)?e:[e]:[]}function X(e,t){if(typeof e!=typeof t)return!1;if("string"==typeof e||"number"==typeof e)return e===t;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return void 0!==n||e===t}function ee(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e}function te(e){return Object.keys(e).map((function(t){return e[t]}))}function ne(e){var t=function(e){return e.to,e.from,e.config,e.native,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.impl,e.inject,e.delay,e.attach,e.destroyed,e.interpolateTo,e.autoStart,e.ref,(0,r.Z)(e,["to","from","config","native","onStart","onRest","onFrame","children","reset","reverse","force","immediate","impl","inject","delay","attach","destroyed","interpolateTo","autoStart","ref"])}(e),n=Object.keys(e).reduce((function(n,r){var o;return void 0!==t[r]?n:(0,a.Z)({},n,((o={})[r]=e[r],o))}),{});return(0,a.Z)({to:t},n)}function re(e,t){var n,r=t[0],o=t[1];return(0,a.Z)({},e,((n={})[r]=new(Array.isArray(o)?Y:G)(o),n))}function oe(e){var t=e.from,n=e.to,r=e.native,o=Object.entries((0,a.Z)({},t,n));return r?o.reduce(re,{}):(0,a.Z)({},t,n)}function ie(e,t){return t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e}var ae=function(e){return"auto"===e},le={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},se=["Webkit","Ms","Moz","O"];function ce(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||le.hasOwnProperty(e)&&le[e]?(""+t).trim():t+"px"}le=Object.keys(le).reduce((function(e,t){return se.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),le);var ue={};v=function(e){return new k(e)},m=function(e){var t=e.output.map((function(e){return e.replace($,U)})).map((function(e){return e.replace(W,U)})),n=t[0].match(H).map((function(){return[]}));t.forEach((function(e){e.match(H).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(H).map((function(t,r){return S.create((0,a.Z)({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(H,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}},d=_,p=function(e,t){var n=e.from,r=e.to,o=e.children;if(te(r).some(ae)||te(n).some(ae)){var i=o(oe(e));if(i){Array.isArray(i)&&(i={type:"div",props:{children:i}});var l=i.props.style;return s().createElement(i.type,(0,a.Z)({key:i.key?i.key:void 0},i.props,{style:(0,a.Z)({},l,{position:"absolute",visibility:"hidden"}),ref:function(o){if(o){var i,l,s=u().findDOMNode(o),c=getComputedStyle(s);if("border-box"===c.boxSizing)i=s.offsetWidth,l=s.offsetHeight;else{var p=parseFloat(c.paddingLeft||0)+parseFloat(c.paddingRight||0),f=parseFloat(c.paddingTop||0)+parseFloat(c.paddingBottom||0),d=parseFloat(c.borderLeftWidth||0)+parseFloat(c.borderRightWidth||0),h=parseFloat(c.borderTopWidth||0)+parseFloat(c.borderBottomWidth||0);i=s.offsetWidth-p-d,l=s.offsetHeight-f-h}var m=function(e,t){return function(n,r){var o,i=r[0],l=r[1];return(0,a.Z)({},n,((o={})[i]="auto"===l?~i.indexOf("height")?t:e:l,o))}}(i,l);t((0,a.Z)({},e,{from:Object.entries(n).reduce(m,n),to:Object.entries(r).reduce(m,r)}))}}}))}}},function(e,t){f={fn:e,transform:t}}((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,o=t.children,i=t.scrollTop,a=t.scrollLeft,l=(0,r.Z)(t,["style","children","scrollTop","scrollLeft"]);for(var s in void 0!==i&&(e.scrollTop=i),void 0!==a&&(e.scrollLeft=a),void 0!==o&&(e.textContent=o),n)if(n.hasOwnProperty(s)){var c=0===s.indexOf("--"),u=ce(s,n[s],c);"float"===s&&(s="cssFloat"),c?e.style.setProperty(s,u):e.style[s]=u}for(var p in l){var f=ue[p]||(ue[p]=p.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(f)&&e.setAttribute(f,l[p])}}),(function(e){return e}));var pe=!1,fe=new Set,de=function e(){var t=g(),n=fe,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}for(var a=i,l=!0,s=!0,c=0;c<a.configs.length;c++){for(var u=a.configs[c],p=void 0,f=void 0,d=0;d<u.animatedValues.length;d++){var m=u.animatedValues[d];if(!m.done){var v=u.fromValues[d],b=u.toValues[d],w=m.lastPosition,E=b instanceof y,C=Array.isArray(u.initialVelocity)?u.initialVelocity[d]:u.initialVelocity;if(E&&(b=b.getValue()),u.immediate||!E&&!u.decay&&v===b)m.updateValue(b),m.done=!0;else if(u.delay&&t-a.startTime<u.delay)l=!1;else if(s=!1,"string"!=typeof v&&"string"!=typeof b){if(void 0!==u.duration)w=v+u.easing((t-a.startTime-u.delay)/u.duration)*(b-v),p=t>=a.startTime+u.delay+u.duration;else if(u.decay)w=v+C/(1-.998)*(1-Math.exp(-(1-.998)*(t-a.startTime))),(p=Math.abs(m.lastPosition-w)<.1)&&(b=w);else{f=void 0!==m.lastTime?m.lastTime:t,C=void 0!==m.lastVelocity?m.lastVelocity:u.initialVelocity,t>f+64&&(f=t);for(var k=Math.floor(t-f),_=0;_<k;++_)w+=1*(C+=(-u.tension*(w-b)+-u.friction*C)/u.mass*1/1e3)/1e3;var S=!(!u.clamp||0===u.tension)&&(v<b?w>b:w<b),x=Math.abs(C)<=u.precision,O=0===u.tension||Math.abs(b-w)<=u.precision;p=S||x&&O,m.lastVelocity=C,m.lastTime=t}E&&!u.toValues[d].done&&(p=!1),p?(m.value!==b&&(w=b),m.done=!0):l=!1,m.updateValue(w),m.lastPosition=w}else m.updateValue(b),m.done=!0}}!a.props.onFrame&&a.props.native||(a.animatedProps[u.name]=u.interpolation.getValue())}!a.props.onFrame&&a.props.native||(!a.props.native&&a.onUpdate&&a.onUpdate(),a.props.onFrame&&a.props.onFrame(a.animatedProps)),l&&(fe.delete(a),a.debouncedOnEnd({finished:!0,noChange:s}))}fe.size?h(e):pe=!1},he=function(e){fe.has(e)&&fe.delete(e)},me=function(){function e(e,t){var n=this;void 0===t&&(t={native:!0,interpolateTo:!0,autoStart:!0}),this.getValues=function(){return n.props.native?n.interpolations:n.animatedProps},this.dependents=new Set,this.isActive=!1,this.hasChanged=!1,this.props={},this.merged={},this.animations={},this.interpolations={},this.animatedProps={},this.configs=[],this.frame=void 0,this.startTime=void 0,this.lastTime=void 0,this.update((0,a.Z)({},e,t))}var t=e.prototype;return t.update=function(e){var t=this;this.props=(0,a.Z)({},this.props,e);var n=this.props.interpolateTo?ne(this.props):this.props,r=n.from,o=void 0===r?{}:r,i=n.to,l=void 0===i?{}:i,s=n.config,c=void 0===s?{}:s,u=n.delay,p=void 0===u?0:u,f=n.reverse,h=n.attach,m=n.reset,g=n.immediate,v=n.autoStart,y=n.ref;if(f){var b=[l,o];o=b[0],l=b[1]}this.hasChanged=!1;var w=h&&h(this),E=m?{}:this.merged;if(this.merged=(0,a.Z)({},o,E,l),this.animations=Object.entries(this.merged).reduce((function(e,n,r){var i,l,s,u=n[0],f=n[1],h=!m&&e[u]||{},v="number"==typeof f,y="string"==typeof f&&!f.startsWith("#")&&!/\d/.test(f)&&!d[f],b=!v&&!y&&Array.isArray(f),E=void 0!==o[u]?o[u]:f,C=v||b||y?f:1,k=ee(c,u);if(w&&(C=w.animations[u].parent),void 0===k.decay&&X(h.changes,f))return e;if(t.hasChanged=!0,v||y)l=s=h.parent||new G(E);else if(b)l=s=h.parent||new Y(E);else{var _=h.interpolation&&h.interpolation.calc(h.parent.value);h.parent?(l=h.parent).setValue(0,!1):l=new G(0);var S={output:[void 0!==_?_:E,f]};h.interpolation?(s=h.interpolation,h.interpolation.updateConfig(S)):s=l.interpolate(S)}ee(g,u)&&l.setValue(f,!1);var x=Q(l.getPayload());return x.forEach((function(e){return e.prepare(t)})),(0,a.Z)({},e,((i={})[u]=(0,a.Z)({},h,{name:u,parent:l,interpolation:s,animatedValues:x,changes:f,fromValues:Q(l.getValue()),toValues:Q(w?C.getPayload():C),immediate:ee(g,u),delay:J(k.delay,p||0),initialVelocity:J(k.velocity,0),clamp:J(k.clamp,!1),precision:J(k.precision,.01),tension:J(k.tension,170),friction:J(k.friction,26),mass:J(k.mass,1),duration:k.duration,easing:J(k.easing,(function(e){return e})),decay:k.decay}),i))}),this.animations),this.hasChanged)for(var C in this.configs=te(this.animations),this.animatedProps={},this.interpolations={},this.animations)this.interpolations[C]=this.animations[C].interpolation,this.animatedProps[C]=this.animations[C].interpolation.getValue();for(var k=arguments.length,_=new Array(k>1?k-1:0),S=1;S<k;S++)_[S-1]=arguments[S];y||!v&&!_.length||this.start.apply(this,_);var x=_[0],O=_[1];return this.onEnd="function"==typeof x&&x,this.onUpdate=O,this.getValues()},t.start=function(e,t){var n=this;return this.startTime=g(),this.isActive&&this.stop(),this.isActive=!0,this.onEnd="function"==typeof e&&e,this.onUpdate=t,this.props.onStart&&this.props.onStart(),this,fe.has(this)||(fe.add(this),pe||h(de),pe=!0),new Promise((function(e){return n.resolve=e}))},t.stop=function(e){void 0===e&&(e=!1),e&&te(this.animations).forEach((function(e){return e.changes=void 0})),this.debouncedOnEnd({finished:e})},t.destroy=function(){he(this),this.props={},this.merged={},this.animations={},this.interpolations={},this.animatedProps={},this.configs=[]},t.debouncedOnEnd=function(e){he(this),this.isActive=!1;var t=this.onEnd;this.onEnd=null,t&&t(e),this.resolve&&this.resolve(),this.resolve=null},e}(),ge=function(e){function t(t,n){var r;return r=e.call(this)||this,t.style&&(t=(0,a.Z)({},t,{style:v(t.style)})),r.payload=t,r.update=n,r.attach(),r}return(0,o.Z)(t,e),t}(C);function ve(e){var t=function(t){function n(e){var n;return(n=t.call(this)||this).callback=function(){n.node&&!1===f.fn(n.node,n.propsAnimated.getAnimatedValue(),i(i(n)))&&n.forceUpdate()},n.attachProps(e),n}(0,o.Z)(n,t);var l=n.prototype;return l.componentWillUnmount=function(){this.propsAnimated&&this.propsAnimated.detach()},l.setNativeProps=function(e){!1===f.fn(this.node,e,this)&&this.forceUpdate()},l.attachProps=function(e){e.forwardRef;var t=(0,r.Z)(e,["forwardRef"]),n=this.propsAnimated;this.propsAnimated=new ge(t,this.callback),n&&n.detach()},l.shouldComponentUpdate=function(e){var t=e.style,n=(0,r.Z)(e,["style"]),o=this.props,i=o.style;return!(X((0,r.Z)(o,["style"]),n)&&X(i,t)||(this.attachProps(e),0))},l.render=function(){var t=this,n=this.propsAnimated.getValue(),o=(n.scrollTop,n.scrollLeft,(0,r.Z)(n,["scrollTop","scrollLeft"]));return s().createElement(e,(0,a.Z)({},o,{ref:function(e){return t.node=ie(e,t.props.forwardRef)}}))},n}(s().Component);return s().forwardRef((function(e,n){return s().createElement(t,(0,a.Z)({},e,{forwardRef:n}))}))}var ye=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={lastProps:{from:{},to:{}},propsChanged:!1,internal:!1},t.controller=new me(null,null),t.didUpdate=!1,t.didInject=!1,t.finished=!0,t.start=function(){t.finished=!1;var e=t.mounted;t.controller.start((function(n){return t.finish((0,a.Z)({},n,{wasMounted:e}))}),t.update)},t.stop=function(){return t.controller.stop(!0)},t.update=function(){return t.mounted&&t.setState({internal:!0})},t.finish=function(e){var n=e.finished,r=e.noChange,o=e.wasMounted;t.finished=!0,t.mounted&&n&&(!t.props.onRest||!o&&r||t.props.onRest(t.controller.merged),t.mounted&&t.didInject&&(t.afterInject=oe(t.props),t.setState({internal:!0})),t.mounted&&(t.didInject||t.props.after)&&t.setState({internal:!0}),t.didInject=!1)},t}(0,o.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.componentDidUpdate(),this.mounted=!0},n.componentWillUnmount=function(){this.mounted=!1,this.stop()},t.getDerivedStateFromProps=function(e,t){var n=t.internal,r=t.lastProps,o=e.from,i=e.to,a=e.reset,l=e.force;return{propsChanged:!X(i,r.to)||!X(o,r.from)||a&&!n||l&&!n,lastProps:e,internal:!1}},n.render=function(){var e=this,t=this.props.children,n=this.state.propsChanged;if(this.props.inject&&n&&!this.injectProps){var r=this.props.inject(this.props,(function(t){e.injectProps=t,e.setState({internal:!0})}));if(r)return r}(this.injectProps||n)&&(this.didInject=!1,this.injectProps?(this.controller.update(this.injectProps),this.didInject=!0):n&&this.controller.update(this.props),this.didUpdate=!0,this.afterInject=void 0,this.injectProps=void 0);var o=(0,a.Z)({},this.controller.getValues(),this.afterInject);return this.finished&&(o=(0,a.Z)({},o,this.props.after)),Object.keys(o).length?t(o):null},n.componentDidUpdate=function(){this.didUpdate&&this.start(),this.didUpdate=!1},t}(s().Component);ye.defaultProps={from:{},to:{},config:{tension:170,friction:26},native:!1,immediate:!1,reset:!1,force:!1,inject:p};var be=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).first=!0,t.instances=new Set,t.hook=function(e,n,r,o){return t.instances.add(e),(o?n===r-1:0===n)?void 0:Array.from(t.instances)[o?n+1:n-1]},t}(0,o.Z)(t,e);var n=t.prototype;return n.render=function(){var e=this,t=this.props,n=t.items,o=t.children,i=t.from,l=void 0===i?{}:i,c=t.initial,u=t.reverse,p=t.keys,f=t.delay,d=t.onRest,h=(0,r.Z)(t,["items","children","from","initial","reverse","keys","delay","onRest"]),m=Q(n);return Q(m).map((function(t,n){return s().createElement(ye,(0,a.Z)({onRest:0===n?d:null,key:"function"==typeof p?p(t):Q(p)[n],from:e.first&&void 0!==c?c||{}:l},h,{delay:0===n&&f||void 0,attach:function(t){return e.hook(t,n,m.length,u)},children:function(e){var r=o(t,n);return r?r(e):null}}))}))},n.componentDidUpdate=function(e){this.first=!1,e.items!==this.props.items&&this.instances.clear()},t}(s().PureComponent);be.defaultProps={keys:function(e){return e}};var we="__default",Ee=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).guid=0,t.state={props:{},resolve:function(){return null},last:!0,index:0},t.next=function(e,n,r){return void 0===n&&(n=!0),void 0===r&&(r=0),t.running=!0,new Promise((function(o){t.mounted&&t.setState((function(t){return{props:e,resolve:o,last:n,index:r}}),(function(){return t.running=!1}))}))},t}(0,o.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.componentDidUpdate({})},n.componentWillUnmount=function(){this.mounted=!1},n.componentDidUpdate=function(e){var t=this,n=this.props,r=n.states,o=n.filter,i=n.state;(e.state!==this.props.state||this.props.reset&&!this.running||!X(r[i],e.states[e.state]))&&r&&i&&r[i]&&function(){var e=++t.guid,n=r[i];if(n)if(Array.isArray(n))for(var a=Promise.resolve(),l=function(r){var i=r,l=n[i],s=i===n.length-1;a=a.then((function(){return e===t.guid&&t.next(o(l),s,i)}))},s=0;s<n.length;s++)l(s);else if("function"==typeof n){var c=0;n((function(n,r){return void 0===r&&(r=!1),e===t.guid&&t.next(o(n),r,c++)}),(function(){return h((function(){return t.instance&&t.instance.stop()}))}),t.props)}else t.next(o(r[i]))}()},n.render=function(){var e=this,t=this.state,n=t.props,o=t.resolve,i=t.last,l=t.index;if(!n||0===Object.keys(n).length)return null;var c=this.props,u=(c.state,c.filter,c.states,c.config),p=c.primitive,f=c.onRest,d=c.forwardRef,h=(0,r.Z)(c,["state","filter","states","config","primitive","onRest","forwardRef"]);return Array.isArray(u)&&(u=u[l]),s().createElement(p,(0,a.Z)({ref:function(t){return e.instance=ie(t,d)},config:u},h,n,{onRest:function(e){o(e),f&&i&&f(e)}}))},t}(s().PureComponent);Ee.defaultProps={state:we};var Ce=s().forwardRef((function(e,t){return s().createElement(Ee,(0,a.Z)({},e,{forwardRef:t}))}));Ce.create=function(e){return function(t,n){var r;return void 0===n&&(n=function(e){return e}),("function"==typeof t||Array.isArray(t))&&((r={})[we]=t,t=r),function(r){return s().createElement(Ee,(0,a.Z)({primitive:e,states:t,filter:n},r))}}},Ce.Spring=function(e){return Ce.create(ye)(e,ne)},Ce.Trail=function(e){return Ce.create(be)(e,ne)};var ke=0,_e=function(e){var t=e.items,n=e.keys,o=(0,r.Z)(e,["items","keys"]);return t=Q(void 0!==t?t:null),n="function"==typeof n?t.map(n):Q(n),(0,a.Z)({items:t,keys:n.map((function(e){return String(e)}))},o)},Se=function(e){(0,o.Z)(n,e);var t=n.prototype;function n(t){var n;return(n=e.call(this,t)||this).destroyItem=function(e,t,r){return function(o){var i=n.props,a=i.onRest,l=i.onDestroyed;n.mounted&&(l&&l(e),n.setState((function(e){return{deleted:e.deleted.filter((function(e){return e.key!==t}))}})),a&&a(e,r,o))}},n.state={first:!0,transitions:[],current:{},deleted:[],prevProps:t},n}return t.componentDidMount=function(){this.mounted=!0},t.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(e,t){var n=t.first,o=t.prevProps,i=(0,r.Z)(t,["first","prevProps"]),l=_e(e),s=l.items,c=l.keys,u=l.initial,p=l.from,f=l.enter,d=l.leave,h=l.update,m=l.trail,g=void 0===m?0:m,v=l.unique,y=l.config,b=_e(o),w=b.keys,E=b.items,C=(0,a.Z)({},i.current),k=[].concat(i.deleted),_=Object.keys(C),S=new Set(_),x=new Set(c),O=c.filter((function(e){return!S.has(e)})),N=i.transitions.filter((function(e){return!e.destroyed&&!x.has(e.originalKey)})).map((function(e){return e.originalKey})),A=c.filter((function(e){return S.has(e)})),P=0;O.forEach((function(e){v&&k.find((function(t){return t.originalKey===e}))&&(k=k.filter((function(t){return t.originalKey!==e})));var t=c.indexOf(e),r=s[t],o="enter";C[e]={state:o,originalKey:e,key:v?String(e):ke++,item:r,trail:P+=g,config:ee(y,r,o),from:ee(n&&void 0!==u?u||{}:p,r),to:ee(f,r)}})),N.forEach((function(e){var t=w.indexOf(e),n=E[t],r="leave";k.push((0,a.Z)({},C[e],{state:r,destroyed:!0,left:w[Math.max(0,t-1)],right:w[Math.min(w.length,t+1)],trail:P+=g,config:ee(y,n,r),to:ee(d,n)})),delete C[e]})),A.forEach((function(e){var t=c.indexOf(e),n=s[t],r="update";C[e]=(0,a.Z)({},C[e],{item:n,state:r,trail:P+=g,config:ee(y,n,r),to:ee(h,n)})}));var j=c.map((function(e){return C[e]}));return k.forEach((function(e){var t,n=e.left,o=e.right,i=(0,r.Z)(e,["left","right"]);-1!==(t=j.findIndex((function(e){return e.originalKey===n})))&&(t+=1),-1===t&&(t=j.findIndex((function(e){return e.originalKey===o}))),-1===t&&(t=k.findIndex((function(e){return e.originalKey===n}))),-1===t&&(t=k.findIndex((function(e){return e.originalKey===o}))),t=Math.max(0,t),j=[].concat(j.slice(0,t),[i],j.slice(t))})),{first:n&&0===O.length,transitions:j,current:C,deleted:k,prevProps:e}},t.render=function(){var e=this,t=this.props,n=(t.initial,t.from,t.enter,t.leave,t.update,t.onDestroyed,t.keys,t.items,t.onFrame),o=t.onRest,i=t.onStart,l=(t.trail,t.config,t.children),c=(t.unique,t.reset),u=(0,r.Z)(t,["initial","from","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","trail","config","children","unique","reset"]);return this.state.transitions.map((function(t,r){var p,f=t.state,d=t.key,h=t.item,m=t.from,g=t.to,v=t.trail,y=t.config,b=t.destroyed;return s().createElement(Ce,(0,a.Z)({reset:c&&"enter"===f,primitive:ye,state:f,filter:ne,states:(p={},p[f]=g,p),key:d,onRest:b?e.destroyItem(h,d,f):o&&function(e){return o(h,f,e)},onStart:i&&function(){return i(h,f)},onFrame:n&&function(e){return n(h,f,e)},delay:v,config:y},u,{from:m,children:function(e){var t=l(h,f,r);return t?t(e):null}}))}))},n}(s().PureComponent);Se.defaultProps={keys:function(e){return e},unique:!1,reset:!1},["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].reduce((function(e,t){return e[t]=ve(t),e}),ve)},3697:(e,t,n)=>{"use strict";var r=n(5972).functionsHaveConfigurableNames(),o=Object,i=TypeError;e.exports=function(){if(null!=this&&this!==o(this))throw new i("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.sticky&&(e+="y"),e},r&&Object.defineProperty&&Object.defineProperty(e.exports,"name",{value:"get flags"})},2847:(e,t,n)=>{"use strict";var r=n(4289),o=n(5559),i=n(3697),a=n(8437),l=n(2753),s=o(a());r(s,{getPolyfill:a,implementation:i,shim:l}),e.exports=s},8437:(e,t,n)=>{"use strict";var r=n(3697),o=n(4289).supportsDescriptors,i=Object.getOwnPropertyDescriptor;e.exports=function(){if(o&&"gim"===/a/gim.flags){var e=i(RegExp.prototype,"flags");if(e&&"function"==typeof e.get&&"boolean"==typeof RegExp.prototype.dotAll&&"boolean"==typeof RegExp.prototype.hasIndices){var t="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(n,"sticky",{get:function(){t+="y"}}),"dy"===t)return e.get}}return r}},2753:(e,t,n)=>{"use strict";var r=n(4289).supportsDescriptors,o=n(8437),i=Object.getOwnPropertyDescriptor,a=Object.defineProperty,l=TypeError,s=Object.getPrototypeOf,c=/a/;e.exports=function(){if(!r||!s)throw new l("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=o(),t=s(c),n=i(t,"flags");return n&&n.get===e||a(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},7478:(e,t,n)=>{"use strict";var r=n(210),o=n(1924),i=n(631),a=r("%TypeError%"),l=r("%WeakMap%",!0),s=r("%Map%",!0),c=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),p=o("WeakMap.prototype.has",!0),f=o("Map.prototype.get",!0),d=o("Map.prototype.set",!0),h=o("Map.prototype.has",!0),m=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+i(e))},get:function(r){if(l&&r&&("object"==typeof r||"function"==typeof r)){if(e)return c(e,r)}else if(s){if(t)return f(t,r)}else if(n)return function(e,t){var n=m(e,t);return n&&n.value}(n,r)},has:function(r){if(l&&r&&("object"==typeof r||"function"==typeof r)){if(e)return p(e,r)}else if(s){if(t)return h(t,r)}else if(n)return function(e,t){return!!m(e,t)}(n,r);return!1},set:function(r,o){l&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new l),u(e,r,o)):s?(t||(t=new s),d(t,r,o)):(n||(n={key:{},next:null}),function(e,t,n){var r=m(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,o))}};return r}},6399:e=>{e.exports=function(e,t,n){return function(r){if(e[0]===e[1]||t[0]===t[1])return t[0];var o=(t[1]-t[0])/(e[1]-e[0]),i=t[0]+o*(r-e[0]);return n?Math.min(t[1],Math.max(t[0],i)):i}}},6373:(e,t,n)=>{"use strict";var r=n(9496),o=SyntaxError,i="object"==typeof StopIteration?StopIteration:null;e.exports=function(e){if(!i)throw new o("this environment lacks StopIteration");r.set(e,"[[Done]]",!1);var t={next:function(){var e=r.get(this,"[[Iterator]]"),t=r.get(e,"[[Done]]");try{return{done:t,value:t?void 0:e.next()}}catch(t){if(r.set(e,"[[Done]]",!0),t!==i)throw t;return{done:!0,value:void 0}}}};return r.set(t,"[[Iterator]]",e),t}},8901:(e,t,n)=>{var r,o;n.amdD,r=[n(9567)],void 0===(o=function(e){return function(){var t,n,r,o=0,i="error",a="info",l="success",s="warning",c={clear:function(n,r){var o=h();t||u(o),p(n,o,r)||function(n){for(var r=t.children(),o=r.length-1;o>=0;o--)p(e(r[o]),n)}(o)},remove:function(n){var r=h();t||u(r),n&&0===e(":focus",n).length?m(n):t.children().length&&t.remove()},error:function(e,t,n){return d({type:i,iconClass:h().iconClasses.error,message:e,optionsOverride:n,title:t})},getContainer:u,info:function(e,t,n){return d({type:a,iconClass:h().iconClasses.info,message:e,optionsOverride:n,title:t})},options:{},subscribe:function(e){n=e},success:function(e,t,n){return d({type:l,iconClass:h().iconClasses.success,message:e,optionsOverride:n,title:t})},version:"2.1.4",warning:function(e,t,n){return d({type:s,iconClass:h().iconClasses.warning,message:e,optionsOverride:n,title:t})}};return c;function u(n,r){return n||(n=h()),(t=e("#"+n.containerId)).length||r&&(t=function(n){return(t=e("<div/>").attr("id",n.containerId).addClass(n.positionClass)).appendTo(e(n.target)),t}(n)),t}function p(t,n,r){var o=!(!r||!r.force)&&r.force;return!(!t||!o&&0!==e(":focus",t).length||(t[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){m(t)}}),0))}function f(e){n&&n(e)}function d(n){var i=h(),a=n.iconClass||i.iconClass;if(void 0!==n.optionsOverride&&(i=e.extend(i,n.optionsOverride),a=n.optionsOverride.iconClass||a),!function(e,t){if(e.preventDuplicates){if(t.message===r)return!0;r=t.message}return!1}(i,n)){o++,t=u(i,!0);var l=null,s=e("<div/>"),c=e("<div/>"),p=e("<div/>"),d=e("<div/>"),g=e(i.closeHtml),v={intervalId:null,hideEta:null,maxHideTime:null},y={toastId:o,state:"visible",startTime:new Date,options:i,map:n};return n.iconClass&&s.addClass(i.toastClass).addClass(a),function(){if(n.title){var e=n.title;i.escapeHtml&&(e=b(n.title)),c.append(e).addClass(i.titleClass),s.append(c)}}(),function(){if(n.message){var e=n.message;i.escapeHtml&&(e=b(n.message)),p.append(e).addClass(i.messageClass),s.append(p)}}(),i.closeButton&&(g.addClass(i.closeClass).attr("role","button"),s.prepend(g)),i.progressBar&&(d.addClass(i.progressClass),s.prepend(d)),i.rtl&&s.addClass("rtl"),i.newestOnTop?t.prepend(s):t.append(s),function(){var e="";switch(n.iconClass){case"toast-success":case"toast-info":e="polite";break;default:e="assertive"}s.attr("aria-live",e)}(),s.hide(),s[i.showMethod]({duration:i.showDuration,easing:i.showEasing,complete:i.onShown}),i.timeOut>0&&(l=setTimeout(w,i.timeOut),v.maxHideTime=parseFloat(i.timeOut),v.hideEta=(new Date).getTime()+v.maxHideTime,i.progressBar&&(v.intervalId=setInterval((function(){var e=(v.hideEta-(new Date).getTime())/v.maxHideTime*100;d.width(e+"%")}),10))),i.closeOnHover&&s.hover((function(){clearTimeout(l),v.hideEta=0,s.stop(!0,!0)[i.showMethod]({duration:i.showDuration,easing:i.showEasing})}),(function(){(i.timeOut>0||i.extendedTimeOut>0)&&(l=setTimeout(w,i.extendedTimeOut),v.maxHideTime=parseFloat(i.extendedTimeOut),v.hideEta=(new Date).getTime()+v.maxHideTime)})),!i.onclick&&i.tapToDismiss&&s.click(w),i.closeButton&&g&&g.click((function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),i.onCloseClick&&i.onCloseClick(e),w(!0)})),i.onclick&&s.click((function(e){i.onclick(e),w()})),f(y),i.debug&&console&&console.log(y),s}function b(e){return null==e&&(e=""),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function w(t){var n=t&&!1!==i.closeMethod?i.closeMethod:i.hideMethod,r=t&&!1!==i.closeDuration?i.closeDuration:i.hideDuration,o=t&&!1!==i.closeEasing?i.closeEasing:i.hideEasing;if(!e(":focus",s).length||t)return clearTimeout(v.intervalId),s[n]({duration:r,easing:o,complete:function(){m(s),clearTimeout(l),i.onHidden&&"hidden"!==y.state&&i.onHidden(),y.state="hidden",y.endTime=new Date,f(y)}})}}function h(){return e.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">×</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},c.options)}function m(e){t||(t=u()),e.is(":visible")||(e.remove(),e=null,0===t.children().length&&(t.remove(),r=void 0))}}()}.apply(t,r))||(e.exports=o)},1742:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},3679:(e,t,n)=>{"use strict";var r=n(9981),o=n(4578),i=n(6814),a=n(2636),l=n(3376);e.exports=function(e){return null==e||"object"!=typeof e&&"function"!=typeof e?null:r(e)?"String":o(e)?"Number":i(e)?"Boolean":a(e)?"Symbol":l(e)?"BigInt":void 0}},6430:(e,t,n)=>{"use strict";var r=n(4029),o=n(3083),i=n(1924),a=n(7296),l=i("Object.prototype.toString"),s=n(6410)(),c="undefined"==typeof globalThis?n.g:globalThis,u=o(),p=i("String.prototype.slice"),f={},d=Object.getPrototypeOf;s&&a&&d&&r(u,(function(e){if("function"==typeof c[e]){var t=new c[e];if(Symbol.toStringTag in t){var n=d(t),r=a(n,Symbol.toStringTag);if(!r){var o=d(n);r=a(o,Symbol.toStringTag)}f[e]=r.get}}}));var h=n(5692);e.exports=function(e){return!!h(e)&&(s&&Symbol.toStringTag in e?function(e){var t=!1;return r(f,(function(n,r){if(!t)try{var o=n.call(e);o===r&&(t=o)}catch(e){}})),t}(e):p(l(e),8,-1))}},9196:e=>{"use strict";e.exports=window.React},9567:e=>{"use strict";e.exports=window.jQuery},6989:e=>{"use strict";e.exports=window.wp.apiFetch},5609:e=>{"use strict";e.exports=window.wp.components},9307:e=>{"use strict";e.exports=window.wp.element},5736:e=>{"use strict";e.exports=window.wp.i18n},6483:e=>{"use strict";e.exports=window.wp.url},4654:()=>{},3083:(e,t,n)=>{"use strict";var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof o[r[t]]&&(e[e.length]=r[t]);return e}},1897:(e,t,n)=>{"use strict";e.exports=n(4559)},4559:(e,t,n)=>{"use strict";var r=n(210)("%TypeError%");e.exports=function(e,t){if(null==e)throw new r(t||"Cannot call method on "+e);return e}},3216:(e,t,n)=>{"use strict";var r=n(2584),o=n(6373);if(n(1405)()||n(5419)()){var i=Symbol.iterator;e.exports=function(e){return null!=e&&void 0!==e[i]?e[i]():r(e)?Array.prototype[i].call(e):void 0}}else{var a=n(5677),l=n(9981),s=n(210),c=s("%Map%",!0),u=s("%Set%",!0),p=n(1924),f=p("Array.prototype.push"),d=p("String.prototype.charCodeAt"),h=p("String.prototype.slice"),m=function(e){var t=0;return{next:function(){var n,r=t>=e.length;return r||(n=e[t],t+=1),{done:r,value:n}}}},g=function(e,t){if(a(e)||r(e))return m(e);if(l(e)){var n=0;return{next:function(){var t=function(e,t){if(t+1>=e.length)return t+1;var n=d(e,t);if(n<55296||n>56319)return t+1;var r=d(e,t+1);return r<56320||r>57343?t+1:t+2}(e,n),r=h(e,n,t);return n=t,{done:t>e.length,value:r}}}}return t&&void 0!==e["_es6-shim iterator_"]?e["_es6-shim iterator_"]():void 0};if(c||u){var v=n(8379),y=n(9572),b=p("Map.prototype.forEach",!0),w=p("Set.prototype.forEach",!0);if("undefined"==typeof process||!process.versions||!process.versions.node)var E=p("Map.prototype.iterator",!0),C=p("Set.prototype.iterator",!0);var k=p("Map.prototype.@@iterator",!0)||p("Map.prototype._es6-shim iterator_",!0),_=p("Set.prototype.@@iterator",!0)||p("Set.prototype._es6-shim iterator_",!0);e.exports=function(e){return function(e){if(v(e)){if(E)return o(E(e));if(k)return k(e);if(b){var t=[];return b(e,(function(e,n){f(t,[n,e])})),m(t)}}if(y(e)){if(C)return o(C(e));if(_)return _(e);if(w){var n=[];return w(e,(function(e){f(n,e)})),m(n)}}}(e)||g(e)}}else e.exports=function(e){if(null!=e)return g(e,!0)}}},3483:(e,t,n)=>{"use strict";var r=n(8379),o=n(9572),i=n(1718),a=n(5899);e.exports=function(e){if(e&&"object"==typeof e){if(r(e))return"Map";if(o(e))return"Set";if(i(e))return"WeakMap";if(a(e))return"WeakSet"}return!1}},7462:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},1721:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:()=>o})},3366:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:()=>r})},9050:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>Hn});var r={};n.r(r),n.d(r,{VERSION:()=>o,after:()=>Lt,all:()=>en,allKeys:()=>ge,any:()=>tn,assign:()=>Le,before:()=>Rt,bind:()=>Ct,bindAll:()=>St,chain:()=>yt,chunk:()=>In,clone:()=>Fe,collect:()=>qt,compact:()=>Nn,compose:()=>Tt,constant:()=>Q,contains:()=>nn,countBy:()=>vn,create:()=>Be,debounce:()=>Pt,default:()=>Zn,defaults:()=>Re,defer:()=>Nt,delay:()=>Ot,detect:()=>$t,difference:()=>Pn,drop:()=>xn,each:()=>Kt,escape:()=>at,every:()=>en,extend:()=>Te,extendOwn:()=>Le,filter:()=>Qt,find:()=>$t,findIndex:()=>It,findKey:()=>Bt,findLastIndex:()=>zt,findWhere:()=>Wt,first:()=>Sn,flatten:()=>An,foldl:()=>Yt,foldr:()=>Jt,forEach:()=>Kt,functions:()=>je,get:()=>Ue,groupBy:()=>mn,has:()=>He,head:()=>Sn,identity:()=>$e,include:()=>nn,includes:()=>nn,indexBy:()=>gn,indexOf:()=>Ut,initial:()=>kn,inject:()=>Yt,intersection:()=>Ln,invert:()=>Pe,invoke:()=>rn,isArguments:()=>G,isArray:()=>W,isArrayBuffer:()=>B,isBoolean:()=>N,isDataView:()=>$,isDate:()=>T,isElement:()=>A,isEmpty:()=>se,isEqual:()=>me,isError:()=>R,isFinite:()=>Y,isFunction:()=>z,isMap:()=>_e,isMatch:()=>ce,isNaN:()=>J,isNull:()=>x,isNumber:()=>M,isObject:()=>S,isRegExp:()=>L,isSet:()=>xe,isString:()=>j,isSymbol:()=>D,isTypedArray:()=>oe,isUndefined:()=>O,isWeakMap:()=>Se,isWeakSet:()=>Oe,iteratee:()=>Ye,keys:()=>le,last:()=>On,lastIndexOf:()=>Ht,map:()=>qt,mapObject:()=>Qe,matcher:()=>We,matches:()=>We,max:()=>ln,memoize:()=>xt,methods:()=>je,min:()=>sn,mixin:()=>Vn,negate:()=>Mt,noop:()=>Xe,now:()=>rt,object:()=>Bn,omit:()=>Cn,once:()=>Dt,pairs:()=>Ae,partial:()=>Et,partition:()=>yn,pick:()=>En,pluck:()=>on,property:()=>Ke,propertyOf:()=>et,random:()=>nt,range:()=>Fn,reduce:()=>Yt,reduceRight:()=>Jt,reject:()=>Xt,rest:()=>xn,restArguments:()=>_,result:()=>mt,sample:()=>pn,select:()=>Qt,shuffle:()=>fn,size:()=>bn,some:()=>tn,sortBy:()=>dn,sortedIndex:()=>Vt,tail:()=>xn,take:()=>Sn,tap:()=>Ie,template:()=>ht,templateSettings:()=>st,throttle:()=>At,times:()=>tt,toArray:()=>un,toPath:()=>ze,transpose:()=>Rn,unescape:()=>lt,union:()=>Tn,uniq:()=>Mn,unique:()=>Mn,uniqueId:()=>vt,unzip:()=>Rn,values:()=>Ne,where:()=>an,without:()=>jn,wrap:()=>jt,zip:()=>Dn});var o="1.13.6",i="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},a=Array.prototype,l=Object.prototype,s="undefined"!=typeof Symbol?Symbol.prototype:null,c=a.push,u=a.slice,p=l.toString,f=l.hasOwnProperty,d="undefined"!=typeof ArrayBuffer,h="undefined"!=typeof DataView,m=Array.isArray,g=Object.keys,v=Object.create,y=d&&ArrayBuffer.isView,b=isNaN,w=isFinite,E=!{toString:null}.propertyIsEnumerable("toString"),C=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=Math.pow(2,53)-1;function _(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),o=0;o<n;o++)r[o]=arguments[o+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var i=Array(t+1);for(o=0;o<t;o++)i[o]=arguments[o];return i[t]=r,e.apply(this,i)}}function S(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function x(e){return null===e}function O(e){return void 0===e}function N(e){return!0===e||!1===e||"[object Boolean]"===p.call(e)}function A(e){return!(!e||1!==e.nodeType)}function P(e){var t="[object "+e+"]";return function(e){return p.call(e)===t}}const j=P("String"),M=P("Number"),T=P("Date"),L=P("RegExp"),R=P("Error"),D=P("Symbol"),B=P("ArrayBuffer");var F=P("Function"),I=i.document&&i.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof I&&(F=function(e){return"function"==typeof e||!1});const z=F,V=P("Object");var Z=h&&V(new DataView(new ArrayBuffer(8))),U="undefined"!=typeof Map&&V(new Map),H=P("DataView");const $=Z?function(e){return null!=e&&z(e.getInt8)&&B(e.buffer)}:H,W=m||P("Array");function K(e,t){return null!=e&&f.call(e,t)}var q=P("Arguments");!function(){q(arguments)||(q=function(e){return K(e,"callee")})}();const G=q;function Y(e){return!D(e)&&w(e)&&!isNaN(parseFloat(e))}function J(e){return M(e)&&b(e)}function Q(e){return function(){return e}}function X(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=k}}function ee(e){return function(t){return null==t?void 0:t[e]}}const te=ee("byteLength"),ne=X(te);var re=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const oe=d?function(e){return y?y(e)&&!$(e):ne(e)&&re.test(p.call(e))}:Q(!1),ie=ee("length");function ae(e,t){t=function(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return!0===t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=C.length,r=e.constructor,o=z(r)&&r.prototype||l,i="constructor";for(K(e,i)&&!t.contains(i)&&t.push(i);n--;)(i=C[n])in e&&e[i]!==o[i]&&!t.contains(i)&&t.push(i)}function le(e){if(!S(e))return[];if(g)return g(e);var t=[];for(var n in e)K(e,n)&&t.push(n);return E&&ae(e,t),t}function se(e){if(null==e)return!0;var t=ie(e);return"number"==typeof t&&(W(e)||j(e)||G(e))?0===t:0===ie(le(e))}function ce(e,t){var n=le(t),r=n.length;if(null==e)return!r;for(var o=Object(e),i=0;i<r;i++){var a=n[i];if(t[a]!==o[a]||!(a in o))return!1}return!0}function ue(e){return e instanceof ue?e:this instanceof ue?void(this._wrapped=e):new ue(e)}function pe(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,te(e))}ue.VERSION=o,ue.prototype.value=function(){return this._wrapped},ue.prototype.valueOf=ue.prototype.toJSON=ue.prototype.value,ue.prototype.toString=function(){return String(this._wrapped)};var fe="[object DataView]";function de(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var o=typeof e;return("function"===o||"object"===o||"object"==typeof t)&&he(e,t,n,r)}function he(e,t,n,r){e instanceof ue&&(e=e._wrapped),t instanceof ue&&(t=t._wrapped);var o=p.call(e);if(o!==p.call(t))return!1;if(Z&&"[object Object]"==o&&$(e)){if(!$(t))return!1;o=fe}switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return s.valueOf.call(e)===s.valueOf.call(t);case"[object ArrayBuffer]":case fe:return he(pe(e),pe(t),n,r)}var i="[object Array]"===o;if(!i&&oe(e)){if(te(e)!==te(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;i=!0}if(!i){if("object"!=typeof e||"object"!=typeof t)return!1;var a=e.constructor,l=t.constructor;if(a!==l&&!(z(a)&&a instanceof a&&z(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var c=(n=n||[]).length;c--;)if(n[c]===e)return r[c]===t;if(n.push(e),r.push(t),i){if((c=e.length)!==t.length)return!1;for(;c--;)if(!de(e[c],t[c],n,r))return!1}else{var u,f=le(e);if(c=f.length,le(t).length!==c)return!1;for(;c--;)if(!K(t,u=f[c])||!de(e[u],t[u],n,r))return!1}return n.pop(),r.pop(),!0}function me(e,t){return de(e,t)}function ge(e){if(!S(e))return[];var t=[];for(var n in e)t.push(n);return E&&ae(e,t),t}function ve(e){var t=ie(e);return function(n){if(null==n)return!1;var r=ge(n);if(ie(r))return!1;for(var o=0;o<t;o++)if(!z(n[e[o]]))return!1;return e!==Ce||!z(n[ye])}}var ye="forEach",be=["clear","delete"],we=["get","has","set"],Ee=be.concat(ye,we),Ce=be.concat(we),ke=["add"].concat(be,ye,"has");const _e=U?ve(Ee):P("Map"),Se=U?ve(Ce):P("WeakMap"),xe=U?ve(ke):P("Set"),Oe=P("WeakSet");function Ne(e){for(var t=le(e),n=t.length,r=Array(n),o=0;o<n;o++)r[o]=e[t[o]];return r}function Ae(e){for(var t=le(e),n=t.length,r=Array(n),o=0;o<n;o++)r[o]=[t[o],e[t[o]]];return r}function Pe(e){for(var t={},n=le(e),r=0,o=n.length;r<o;r++)t[e[n[r]]]=n[r];return t}function je(e){var t=[];for(var n in e)z(e[n])&&t.push(n);return t.sort()}function Me(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var o=1;o<r;o++)for(var i=arguments[o],a=e(i),l=a.length,s=0;s<l;s++){var c=a[s];t&&void 0!==n[c]||(n[c]=i[c])}return n}}const Te=Me(ge),Le=Me(le),Re=Me(ge,!0);function De(e){if(!S(e))return{};if(v)return v(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function Be(e,t){var n=De(e);return t&&Le(n,t),n}function Fe(e){return S(e)?W(e)?e.slice():Te({},e):e}function Ie(e,t){return t(e),e}function ze(e){return W(e)?e:[e]}function Ve(e){return ue.toPath(e)}function Ze(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0}function Ue(e,t,n){var r=Ze(e,Ve(t));return O(r)?n:r}function He(e,t){for(var n=(t=Ve(t)).length,r=0;r<n;r++){var o=t[r];if(!K(e,o))return!1;e=e[o]}return!!n}function $e(e){return e}function We(e){return e=Le({},e),function(t){return ce(t,e)}}function Ke(e){return e=Ve(e),function(t){return Ze(t,e)}}function qe(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,i){return e.call(t,n,r,o,i)}}return function(){return e.apply(t,arguments)}}function Ge(e,t,n){return null==e?$e:z(e)?qe(e,t,n):S(e)&&!W(e)?We(e):Ke(e)}function Ye(e,t){return Ge(e,t,1/0)}function Je(e,t,n){return ue.iteratee!==Ye?ue.iteratee(e,t):Ge(e,t,n)}function Qe(e,t,n){t=Je(t,n);for(var r=le(e),o=r.length,i={},a=0;a<o;a++){var l=r[a];i[l]=t(e[l],l,e)}return i}function Xe(){}function et(e){return null==e?Xe:function(t){return Ue(e,t)}}function tt(e,t,n){var r=Array(Math.max(0,e));t=qe(t,n,1);for(var o=0;o<e;o++)r[o]=t(o);return r}function nt(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}ue.toPath=ze,ue.iteratee=Ye;const rt=Date.now||function(){return(new Date).getTime()};function ot(e){var t=function(t){return e[t]},n="(?:"+le(e).join("|")+")",r=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(o,t):e}}const it={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},at=ot(it),lt=ot(Pe(it)),st=ue.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var ct=/(.)^/,ut={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},pt=/\\|'|\r|\n|\u2028|\u2029/g;function ft(e){return"\\"+ut[e]}var dt=/^\s*(\w|\$)+\s*$/;function ht(e,t,n){!t&&n&&(t=n),t=Re({},t,ue.templateSettings);var r=RegExp([(t.escape||ct).source,(t.interpolate||ct).source,(t.evaluate||ct).source].join("|")+"|$","g"),o=0,i="__p+='";e.replace(r,(function(t,n,r,a,l){return i+=e.slice(o,l).replace(pt,ft),o=l+t.length,n?i+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(i+="';\n"+a+"\n__p+='"),t})),i+="';\n";var a,l=t.variable;if(l){if(!dt.test(l))throw new Error("variable is not a bare identifier: "+l)}else i="with(obj||{}){\n"+i+"}\n",l="obj";i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{a=new Function(l,"_",i)}catch(e){throw e.source=i,e}var s=function(e){return a.call(this,e,ue)};return s.source="function("+l+"){\n"+i+"}",s}function mt(e,t,n){var r=(t=Ve(t)).length;if(!r)return z(n)?n.call(e):n;for(var o=0;o<r;o++){var i=null==e?void 0:e[t[o]];void 0===i&&(i=n,o=r),e=z(i)?i.call(e):i}return e}var gt=0;function vt(e){var t=++gt+"";return e?e+t:t}function yt(e){var t=ue(e);return t._chain=!0,t}function bt(e,t,n,r,o){if(!(r instanceof t))return e.apply(n,o);var i=De(e.prototype),a=e.apply(i,o);return S(a)?a:i}var wt=_((function(e,t){var n=wt.placeholder,r=function(){for(var o=0,i=t.length,a=Array(i),l=0;l<i;l++)a[l]=t[l]===n?arguments[o++]:t[l];for(;o<arguments.length;)a.push(arguments[o++]);return bt(e,r,this,this,a)};return r}));wt.placeholder=ue;const Et=wt,Ct=_((function(e,t,n){if(!z(e))throw new TypeError("Bind must be called on a function");var r=_((function(o){return bt(e,r,t,this,n.concat(o))}));return r})),kt=X(ie);function _t(e,t,n,r){if(r=r||[],t||0===t){if(t<=0)return r.concat(e)}else t=1/0;for(var o=r.length,i=0,a=ie(e);i<a;i++){var l=e[i];if(kt(l)&&(W(l)||G(l)))if(t>1)_t(l,t-1,n,r),o=r.length;else for(var s=0,c=l.length;s<c;)r[o++]=l[s++];else n||(r[o++]=l)}return r}const St=_((function(e,t){var n=(t=_t(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=Ct(e[r],e)}return e}));function xt(e,t){var n=function(r){var o=n.cache,i=""+(t?t.apply(this,arguments):r);return K(o,i)||(o[i]=e.apply(this,arguments)),o[i]};return n.cache={},n}const Ot=_((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),Nt=Et(Ot,ue,1);function At(e,t,n){var r,o,i,a,l=0;n||(n={});var s=function(){l=!1===n.leading?0:rt(),r=null,a=e.apply(o,i),r||(o=i=null)},c=function(){var c=rt();l||!1!==n.leading||(l=c);var u=t-(c-l);return o=this,i=arguments,u<=0||u>t?(r&&(clearTimeout(r),r=null),l=c,a=e.apply(o,i),r||(o=i=null)):r||!1===n.trailing||(r=setTimeout(s,u)),a};return c.cancel=function(){clearTimeout(r),l=0,r=o=i=null},c}function Pt(e,t,n){var r,o,i,a,l,s=function(){var c=rt()-o;t>c?r=setTimeout(s,t-c):(r=null,n||(a=e.apply(l,i)),r||(i=l=null))},c=_((function(c){return l=this,i=c,o=rt(),r||(r=setTimeout(s,t),n&&(a=e.apply(l,i))),a}));return c.cancel=function(){clearTimeout(r),r=i=l=null},c}function jt(e,t){return Et(t,e)}function Mt(e){return function(){return!e.apply(this,arguments)}}function Tt(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function Lt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function Rt(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}const Dt=Et(Rt,2);function Bt(e,t,n){t=Je(t,n);for(var r,o=le(e),i=0,a=o.length;i<a;i++)if(t(e[r=o[i]],r,e))return r}function Ft(e){return function(t,n,r){n=Je(n,r);for(var o=ie(t),i=e>0?0:o-1;i>=0&&i<o;i+=e)if(n(t[i],i,t))return i;return-1}}const It=Ft(1),zt=Ft(-1);function Vt(e,t,n,r){for(var o=(n=Je(n,r,1))(t),i=0,a=ie(e);i<a;){var l=Math.floor((i+a)/2);n(e[l])<o?i=l+1:a=l}return i}function Zt(e,t,n){return function(r,o,i){var a=0,l=ie(r);if("number"==typeof i)e>0?a=i>=0?i:Math.max(i+l,a):l=i>=0?Math.min(i+1,l):i+l+1;else if(n&&i&&l)return r[i=n(r,o)]===o?i:-1;if(o!=o)return(i=t(u.call(r,a,l),J))>=0?i+a:-1;for(i=e>0?a:l-1;i>=0&&i<l;i+=e)if(r[i]===o)return i;return-1}}const Ut=Zt(1,It,Vt),Ht=Zt(-1,zt);function $t(e,t,n){var r=(kt(e)?It:Bt)(e,t,n);if(void 0!==r&&-1!==r)return e[r]}function Wt(e,t){return $t(e,We(t))}function Kt(e,t,n){var r,o;if(t=qe(t,n),kt(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else{var i=le(e);for(r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e)}return e}function qt(e,t,n){t=Je(t,n);for(var r=!kt(e)&&le(e),o=(r||e).length,i=Array(o),a=0;a<o;a++){var l=r?r[a]:a;i[a]=t(e[l],l,e)}return i}function Gt(e){return function(t,n,r,o){var i=arguments.length>=3;return function(t,n,r,o){var i=!kt(t)&&le(t),a=(i||t).length,l=e>0?0:a-1;for(o||(r=t[i?i[l]:l],l+=e);l>=0&&l<a;l+=e){var s=i?i[l]:l;r=n(r,t[s],s,t)}return r}(t,qe(n,o,4),r,i)}}const Yt=Gt(1),Jt=Gt(-1);function Qt(e,t,n){var r=[];return t=Je(t,n),Kt(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r}function Xt(e,t,n){return Qt(e,Mt(Je(t)),n)}function en(e,t,n){t=Je(t,n);for(var r=!kt(e)&&le(e),o=(r||e).length,i=0;i<o;i++){var a=r?r[i]:i;if(!t(e[a],a,e))return!1}return!0}function tn(e,t,n){t=Je(t,n);for(var r=!kt(e)&&le(e),o=(r||e).length,i=0;i<o;i++){var a=r?r[i]:i;if(t(e[a],a,e))return!0}return!1}function nn(e,t,n,r){return kt(e)||(e=Ne(e)),("number"!=typeof n||r)&&(n=0),Ut(e,t,n)>=0}const rn=_((function(e,t,n){var r,o;return z(t)?o=t:(t=Ve(t),r=t.slice(0,-1),t=t[t.length-1]),qt(e,(function(e){var i=o;if(!i){if(r&&r.length&&(e=Ze(e,r)),null==e)return;i=e[t]}return null==i?i:i.apply(e,n)}))}));function on(e,t){return qt(e,Ke(t))}function an(e,t){return Qt(e,We(t))}function ln(e,t,n){var r,o,i=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var l=0,s=(e=kt(e)?e:Ne(e)).length;l<s;l++)null!=(r=e[l])&&r>i&&(i=r);else t=Je(t,n),Kt(e,(function(e,n,r){((o=t(e,n,r))>a||o===-1/0&&i===-1/0)&&(i=e,a=o)}));return i}function sn(e,t,n){var r,o,i=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var l=0,s=(e=kt(e)?e:Ne(e)).length;l<s;l++)null!=(r=e[l])&&r<i&&(i=r);else t=Je(t,n),Kt(e,(function(e,n,r){((o=t(e,n,r))<a||o===1/0&&i===1/0)&&(i=e,a=o)}));return i}var cn=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function un(e){return e?W(e)?u.call(e):j(e)?e.match(cn):kt(e)?qt(e,$e):Ne(e):[]}function pn(e,t,n){if(null==t||n)return kt(e)||(e=Ne(e)),e[nt(e.length-1)];var r=un(e),o=ie(r);t=Math.max(Math.min(t,o),0);for(var i=o-1,a=0;a<t;a++){var l=nt(a,i),s=r[a];r[a]=r[l],r[l]=s}return r.slice(0,t)}function fn(e){return pn(e,1/0)}function dn(e,t,n){var r=0;return t=Je(t,n),on(qt(e,(function(e,n,o){return{value:e,index:r++,criteria:t(e,n,o)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index})),"value")}function hn(e,t){return function(n,r,o){var i=t?[[],[]]:{};return r=Je(r,o),Kt(n,(function(t,o){var a=r(t,o,n);e(i,t,a)})),i}}const mn=hn((function(e,t,n){K(e,n)?e[n].push(t):e[n]=[t]})),gn=hn((function(e,t,n){e[n]=t})),vn=hn((function(e,t,n){K(e,n)?e[n]++:e[n]=1})),yn=hn((function(e,t,n){e[n?0:1].push(t)}),!0);function bn(e){return null==e?0:kt(e)?e.length:le(e).length}function wn(e,t,n){return t in n}const En=_((function(e,t){var n={},r=t[0];if(null==e)return n;z(r)?(t.length>1&&(r=qe(r,t[1])),t=ge(e)):(r=wn,t=_t(t,!1,!1),e=Object(e));for(var o=0,i=t.length;o<i;o++){var a=t[o],l=e[a];r(l,a,e)&&(n[a]=l)}return n})),Cn=_((function(e,t){var n,r=t[0];return z(r)?(r=Mt(r),t.length>1&&(n=t[1])):(t=qt(_t(t,!1,!1),String),r=function(e,n){return!nn(t,n)}),En(e,r,n)}));function kn(e,t,n){return u.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function Sn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:kn(e,e.length-t)}function xn(e,t,n){return u.call(e,null==t||n?1:t)}function On(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:xn(e,Math.max(0,e.length-t))}function Nn(e){return Qt(e,Boolean)}function An(e,t){return _t(e,t,!1)}const Pn=_((function(e,t){return t=_t(t,!0,!0),Qt(e,(function(e){return!nn(t,e)}))})),jn=_((function(e,t){return Pn(e,t)}));function Mn(e,t,n,r){N(t)||(r=n,n=t,t=!1),null!=n&&(n=Je(n,r));for(var o=[],i=[],a=0,l=ie(e);a<l;a++){var s=e[a],c=n?n(s,a,e):s;t&&!n?(a&&i===c||o.push(s),i=c):n?nn(i,c)||(i.push(c),o.push(s)):nn(o,s)||o.push(s)}return o}const Tn=_((function(e){return Mn(_t(e,!0,!0))}));function Ln(e){for(var t=[],n=arguments.length,r=0,o=ie(e);r<o;r++){var i=e[r];if(!nn(t,i)){var a;for(a=1;a<n&&nn(arguments[a],i);a++);a===n&&t.push(i)}}return t}function Rn(e){for(var t=e&&ln(e,ie).length||0,n=Array(t),r=0;r<t;r++)n[r]=on(e,r);return n}const Dn=_(Rn);function Bn(e,t){for(var n={},r=0,o=ie(e);r<o;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function Fn(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),o=Array(r),i=0;i<r;i++,e+=n)o[i]=e;return o}function In(e,t){if(null==t||t<1)return[];for(var n=[],r=0,o=e.length;r<o;)n.push(u.call(e,r,r+=t));return n}function zn(e,t){return e._chain?ue(t).chain():t}function Vn(e){return Kt(je(e),(function(t){var n=ue[t]=e[t];ue.prototype[t]=function(){var e=[this._wrapped];return c.apply(e,arguments),zn(this,n.apply(ue,e))}})),ue}Kt(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=a[e];ue.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),zn(this,n)}})),Kt(["concat","join","slice"],(function(e){var t=a[e];ue.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),zn(this,e)}}));const Zn=ue;var Un=Vn(r);Un._=Un;const Hn=Un}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.amdD=function(){throw new Error("define cannot be used indirect")},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r);var e=n(9307),t=n(7462);function o(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}const a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],l=e&&o(e),s=t&&o(t),c=l||s;if(e&&o(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var u=a[a.length-1];n="."===u||".."===u||""===u}else n=!1;for(var p=0,f=a.length;f>=0;f--){var d=a[f];"."===d?i(a,f):".."===d?(i(a,f),p++):p&&(i(a,f),p--)}if(!c)for(;p--;p)a.unshift("..");!c||""===a[0]||a[0]&&o(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};var l=!0,s="Invariant failed";function c(e,t){if(!e){if(l)throw new Error(s);var n="function"==typeof t?t():t,r=n?"".concat(s,": ").concat(n):s;throw new Error(r)}}function u(e){return"/"===e.charAt(0)?e:"/"+e}function p(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function f(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function d(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function h(e,n,r,o){var i;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),i.state=n):(void 0===(i=(0,t.Z)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==n&&void 0===i.state&&(i.state=n));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return r&&(i.key=r),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function m(){var e=null,t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var g=!("undefined"==typeof window||!window.document||!window.document.createElement);function v(e,t){t(window.confirm(e))}var y="popstate",b="hashchange";function w(){try{return window.history.state||{}}catch(e){return{}}}var E=n(1721),C=n(9196),k=n.n(C),_=n(5697),S=n.n(_),x=n(4779),O=n.n(x),N=(n(9864),n(3366)),A=(n(8679),1073741823),P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{},j=k().createContext||function(e,t){var n,r,o,i="__create-react-context-"+((P[o="__global_unique_id__"]=(P[o]||0)+1)+"__"),a=function(e){function n(){for(var t,n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(t=e.call.apply(e,[this].concat(i))||this).emitter=(n=t.props.value,r=[],{on:function(e){r.push(e)},off:function(e){r=r.filter((function(t){return t!==e}))},get:function(){return n},set:function(e,t){n=e,r.forEach((function(e){return e(n,t)}))}}),t}(0,E.Z)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[i]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((i=r)===(a=o)?0!==i||1/i==1/a:i!=i&&a!=a)?n=0:(n="function"==typeof t?t(r,o):A,0!=(n|=0)&&this.emitter.set(e.value,n))}var i,a},r.render=function(){return this.props.children},n}(k().Component);a.childContextTypes=((n={})[i]=S().object.isRequired,n);var l=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,E.Z)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?A:t},r.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?A:e},r.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},r.getValue=function(){return this.context[i]?this.context[i].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(k().Component);return l.contextTypes=((r={})[i]=S().object,r),{Provider:a,Consumer:l}},M=function(e){var t=j();return t.displayName=e,t},T=M("Router-History"),L=M("Router"),R=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,E.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return k().createElement(L.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},k().createElement(T.Provider,{children:this.props.children||null,value:this.props.history}))},t}(k().Component);k().Component,k().Component;var D={},B=1e4,F=0;k().Component,k().Component,k().Component;var I=k().useContext;function z(){return I(L).location}var V=n(6053);window.wp.data;var Z=n(7045),U=n(509);const H=window.moment;var $=n.n(H),W=n(5736),K=n(6967);const q=window.wp.hooks;var G=n(6989),Y=n.n(G),J=n(8901),Q=n.n(J),X=n(6483);const ee={per_page:-1,orderby:"date",order:"desc"},te=function(n){const{wheelData:r,setAllData:o,trashData:i,setTrashData:a,type:l}=n,s="wheel"==l,[c,u]=(0,e.useState)(!1),p=document.querySelector(".wheeloflife-main-wrapper"),[f,d]=(0,e.useState)([]),h=()=>{let e=document.querySelectorAll(".list-checkboxes"),t=[];e?.forEach((e=>{e.checked&&t.push(e.id)})),d(t),t.length>1?u(!0):u(!1)};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-table-wrapper fadeInUp"},(0,e.createElement)("table",{className:"wheeloflife-table"},(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(0,e.createElement)("input",{type:"checkbox",onClick:e=>{let t=[];var n=document.querySelectorAll(".list-checkboxes");1==e.target.checked?(u(!0),n.forEach((function(e){t.push(e.id),e.checked=!0}))):(u(!1),n.forEach((function(e){e.checked=!1}))),d(t)},className:"wheeloflife-bulk-checkbox"})),(0,e.createElement)("th",{className:"wheeloflife-title-col"},(0,W.__)("Title","wheel-of-life")),s&&(0,e.createElement)("th",{className:"wheeloflife-shortcode-col"},(0,W.__)("Shortcode","wheel-of-life")),(0,e.createElement)("th",{className:"wheeloflife-date-col"},(0,W.__)("Created","wheel-of-life")),(0,e.createElement)("th",{className:"wheeloflife-status-col"},(0,W.__)("Status","wheel-of-life")),(0,e.createElement)("th",{className:"wheeloflife-action-col"}))),(0,e.createElement)("tbody",null,r.length<1&&(0,e.createElement)("tr",null,(0,e.createElement)("td",{colSpan:"6"},(0,e.createElement)("span",{className:"wheeloflife-error-msg"},(0,W.__)("Sorry! No data found.","wheel-of-life")))),null!=r&&""!=r&&r.map((function(r,o){const i="draft"==r.status?"draft":"published";return(0,e.createElement)("tr",{key:o},(0,e.createElement)("td",null,(0,e.createElement)("input",{type:"checkbox",id:r.id,className:"list-checkboxes",onClick:h})),(0,e.createElement)("td",{className:"wheeloflife-title-col"},(0,e.createElement)("a",{dangerouslySetInnerHTML:{__html:r.title.rendered}})),s&&(0,e.createElement)("td",{className:"wheeloflife-shortcode-col"},(0,e.createElement)(Z.Z,{shortcode:`[wheeloflife id=${r.id}]`})),(0,e.createElement)("td",{className:"wheeloflife-date-col"},(0,e.createElement)("span",null,$()(r.date).format("MMM Do ,YYYY"))),(0,e.createElement)("td",{className:"wheeloflife-status-col"},(0,e.createElement)("span",{className:`wheeloflife-status ${i}`},r.status&&"publish"==r.status?(0,W.__)("Published","wheel-of-life"):r.status[0].toUpperCase()+r.status.slice(1))),(0,e.createElement)("td",{className:"wheeloflife-action-col"},(0,e.createElement)(U.DropdownButton,(0,t.Z)({value:(0,e.createElement)(V.V4,null),align:"right",id:r.id},n))))}))))),c&&f&&f.length>1&&(0,e.createElement)(K.Z,{root:p,bulkStatus:u,selectedIds:d},(0,e.createElement)("span",{className:"selected-items"},f.length," ",(0,W.__)("items selected","wheel-of-life")),(0,e.createElement)(U.Button,{options:{btnStyle:"borderd-primary",type:"button",value:"Delete"},onClick:()=>{f.length>0?(f.forEach((function(e){Y()({path:`wp/v2/${l}/${e}`,method:"DELETE"}).then((e=>{d([]),Y()({path:(0,X.addQueryArgs)(`wp/v2/${l}?status=any`,ee),method:"GET"}).then((e=>{o([]),o(e)})),Y()({path:(0,X.addQueryArgs)(`wp/v2/${l}?status=trash`,ee),method:"GET"}).then((e=>{a([]),a(e)}))}))})),Q().success((0,W.__)("Items deleted successfully.","wheel-of-life"))):Q().error((0,W.__)("No items selected.","wheel-of-life"))}})))},ne={per_page:-1,orderby:"date",order:"desc"},re=function(n){const{wheelData:r,setAllData:o,trashData:i,setTrashData:a,type:l}=n,s="wheel"==l;var c=!1;0==r.filter((e=>"draft"==e.status)).length&&(c=!0);const[u,p]=(0,e.useState)(!1),f=document.querySelector(".wheeloflife-main-wrapper"),[d,h]=(0,e.useState)([]),m=()=>{let e=document.querySelectorAll(".list-checkboxes"),t=[];e?.forEach((e=>{e.checked&&t.push(e.id)})),h(t),t.length>1?p(!0):p(!1)};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-table-wrapper fadeInUp"},(0,e.createElement)("table",{className:"wheeloflife-table"},(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(0,e.createElement)("input",{type:"checkbox",onClick:e=>{let t=[];var n=document.querySelectorAll(".list-checkboxes");1==e.target.checked?(p(!0),n.forEach((function(e){t.push(e.id),e.checked=!0}))):(p(!1),n.forEach((function(e){e.checked=!1}))),h(t)},className:"wheeloflife-bulk-checkbox"})),(0,e.createElement)("th",{className:"wheeloflife-title-col"},(0,W.__)("Title","wheel-of-life")),s&&(0,e.createElement)("th",{className:"wheeloflife-shortcode-col"},(0,W.__)("Shortcode","wheel-of-life")),(0,e.createElement)("th",{className:"wheeloflife-date-col"},(0,W.__)("Created","wheel-of-life")),(0,e.createElement)("th",{className:"wheeloflife-status-col"},(0,W.__)("Status","wheel-of-life")),(0,e.createElement)("th",{className:"wheeloflife-action-col"}))),(0,e.createElement)("tbody",null,!0===c&&(0,e.createElement)("tr",null,(0,e.createElement)("td",{colSpan:"6"},(0,e.createElement)("span",{className:"wheeloflife-error-msg"},(0,W.__)("Sorry! No data found.","wheel-of-life")))),null!=r&&""!=r&&!1===c&&r.map((function(r,o){if("draft"==r.status)return(0,e.createElement)("tr",{key:o},(0,e.createElement)("td",null,(0,e.createElement)("input",{type:"checkbox",id:r.id,className:"list-checkboxes",onClick:m})),(0,e.createElement)("td",{className:"wheeloflife-title-col"},(0,e.createElement)("a",null,r.title.rendered?.replace("&","&")?.replace("&","&"),s&&(0,q.applyFilters)("wol_wheel_title",null,r))),s&&(0,e.createElement)("td",{className:"wheeloflife-shortcode-col"},(0,e.createElement)(Z.Z,{shortcode:`[wheeloflife id=${r.id}]`})),(0,e.createElement)("td",{className:"wheeloflife-date-col"},(0,e.createElement)("span",null,moment(r.date).format("MMM Do ,YYYY"))),(0,e.createElement)("td",{className:"wheeloflife-status-col"},(0,e.createElement)("span",{className:"wheeloflife-status draft"},r.status[0].toUpperCase()+r.status.slice(1))),(0,e.createElement)("td",{className:"wheeloflife-action-col"},(0,e.createElement)(U.DropdownButton,(0,t.Z)({value:(0,e.createElement)(V.V4,null),align:"right",id:r.id},n))))}))))),u&&d&&d.length>1&&(0,e.createElement)(K.Z,{root:f,bulkStatus:p,selectedIds:h},(0,e.createElement)("span",{className:"selected-items"},d.length," ",(0,W.__)("items selected","wheel-of-life")),(0,e.createElement)(U.Button,{options:{btnStyle:"borderd-primary",type:"button",value:"Delete"},onClick:()=>{d.length>0?(d.forEach((function(e){Y()({path:`wp/v2/${l}/${e}`,method:"DELETE"}).then((e=>{h([]),Y()({path:(0,X.addQueryArgs)(`wp/v2/${l}?status=any`,ne),method:"GET"}).then((e=>{o([]),o(e)})),Y()({path:(0,X.addQueryArgs)(`wp/v2/${l}?status=trash`,ne),method:"GET"}).then((e=>{a([]),a(e)}))}))})),Q().success((0,W.__)("Items deleted successfully.","wheel-of-life"))):Q().error((0,W.__)("No items selected.","wheel-of-life"))}})))},oe={per_page:-1,orderby:"date",order:"desc"},ie=function(n){const{wheelData:r,setAllData:o,trashData:i,setTrashData:a,type:l}=n,s="wheel"==l;var c=!1;0==r.filter((e=>"publish"==e.status)).length&&(c=!0);const[u,p]=(0,e.useState)(!1),f=document.querySelector(".wheeloflife-main-wrapper"),[d,h]=(0,e.useState)([]),m=()=>{let e=document.querySelectorAll(".list-checkboxes"),t=[];e?.forEach((e=>{e.checked&&t.push(e.id)})),h(t),t.length>1?p(!0):p(!1)};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-table-wrapper fadeInUp"},(0,e.createElement)("table",{className:"wheeloflife-table"},(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(0,e.createElement)("input",{type:"checkbox",onClick:e=>{let t=[];var n=document.querySelectorAll(".list-checkboxes");1==e.target.checked?(p(!0),n.forEach((function(e){t.push(e.id),e.checked=!0}))):(p(!1),n.forEach((function(e){e.checked=!1}))),h(t)},className:"wheeloflife-bulk-checkbox"})),(0,e.createElement)("th",{className:"wheeloflife-title-col"},(0,W.__)("Title","wheel-of-life")),s&&(0,e.createElement)("th",{className:"wheeloflife-shortcode-col"},(0,W.__)("Shortcode","wheel-of-life")),(0,e.createElement)("th",{className:"wheeloflife-date-col"},(0,W.__)("Created","wheel-of-life")),(0,e.createElement)("th",{className:"wheeloflife-status-col"},(0,W.__)("Status","wheel-of-life")),(0,e.createElement)("th",{className:"wheeloflife-action-col"}))),(0,e.createElement)("tbody",null,!0===c&&(0,e.createElement)("tr",null,(0,e.createElement)("td",{colSpan:"6"},(0,e.createElement)("span",{className:"wheeloflife-error-msg"},(0,W.__)("Sorry! No data found.","wheel-of-life")))),null!=r&&""!=r&&!1===c&&r.map((function(r,o){if("publish"==r.status)return(0,e.createElement)("tr",{key:o},(0,e.createElement)("td",null,(0,e.createElement)("input",{type:"checkbox",id:r.id,className:"list-checkboxes",onClick:m})),(0,e.createElement)("td",{className:"wheeloflife-title-col"},(0,e.createElement)("a",null,r.title.rendered?.replace("&","&")?.replace("&","&"),s&&(0,q.applyFilters)("wol_wheel_title",null,r))),s&&(0,e.createElement)("td",{className:"wheeloflife-shortcode-col"},(0,e.createElement)(Z.Z,{shortcode:`[wheeloflife id=${r.id}]`})),(0,e.createElement)("td",{className:"wheeloflife-date-col"},(0,e.createElement)("span",null,moment(r.date).format("MMM Do ,YYYY"))),(0,e.createElement)("td",{className:"wheeloflife-status-col"},(0,e.createElement)("span",{className:"wheeloflife-status published"},(0,W.__)("Published","wheel-of-life"))),(0,e.createElement)("td",{className:"wheeloflife-action-col"},(0,e.createElement)(U.DropdownButton,(0,t.Z)({value:(0,e.createElement)(V.V4,null),align:"right",id:r.id},n))))}))))),u&&d&&d.length>1&&(0,e.createElement)(K.Z,{root:f,bulkStatus:p,selectedIds:h},(0,e.createElement)("span",{className:"selected-items"},d.length," ",(0,W.__)("items selected","wheel-of-life")),(0,e.createElement)(U.Button,{options:{btnStyle:"borderd-primary",type:"button",value:"Delete"},onClick:()=>{d.length>0?(d.forEach((function(e){Y()({path:`wp/v2/${l}/${e}`,method:"DELETE"}).then((e=>{h([]),Y()({path:(0,X.addQueryArgs)(`wp/v2/${l}?status=any`,oe),method:"GET"}).then((e=>{o([]),o(e)})),Y()({path:(0,X.addQueryArgs)(`wp/v2/${l}?status=trash`,oe),method:"GET"}).then((e=>{a([]),a(e)}))}))})),Q().success((0,W.__)("Items deleted successfully.","wheel-of-life"))):Q().error((0,W.__)("No items selected.","wheel-of-life"))}})))},ae={per_page:-1,orderby:"date",order:"desc"},le=function(n){const{wheelData:r,setAllData:o,trashData:i,setTrashData:a,setWheelTab:l,type:s}=n,c="wheel"==s;var u=!1;0==i.filter((e=>"trash"==e.status)).length&&(u=!0);const[p,f]=(0,e.useState)(!1),d=document.querySelector(".wheeloflife-main-wrapper"),[h,m]=(0,e.useState)([]),g=()=>{let e=document.querySelectorAll(".list-checkboxes"),t=[];e?.forEach((e=>{e.checked&&t.push(e.id)})),m(t),t.length>1?f(!0):f(!1)};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-table-wrapper fadeInUp"},(0,e.createElement)("table",{className:"wheeloflife-table"},(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(0,e.createElement)("input",{type:"checkbox",onClick:e=>{let t=[];var n=document.querySelectorAll(".list-checkboxes");1==e.target.checked?(f(!0),n.forEach((function(e){t.push(e.id),e.checked=!0}))):(f(!1),n.forEach((function(e){e.checked=!1}))),m(t)},className:"wheeloflife-bulk-checkbox"})),(0,e.createElement)("th",{className:"wheeloflife-title-col"},(0,W.__)("Title","wheel-of-life")),c&&(0,e.createElement)("th",{className:"wheeloflife-shortcode-col"},(0,W.__)("Shortcode","wheel-of-life")),(0,e.createElement)("th",{className:"wheeloflife-date-col"},(0,W.__)("Created","wheel-of-life")),(0,e.createElement)("th",{className:"wheeloflife-status-col"},(0,W.__)("Status","wheel-of-life")),(0,e.createElement)("th",{className:"wheeloflife-action-col"}))),(0,e.createElement)("tbody",null,!0===u&&(0,e.createElement)("tr",null,(0,e.createElement)("td",{colSpan:"6"},(0,e.createElement)("span",{className:"wheeloflife-error-msg"},(0,W.__)("Sorry! No Trash data found.","wheel-of-life")))),null!=i&&""!=i&&!1===u&&i.map((function(r,o){if("trash"==r.status)return(0,e.createElement)("tr",{key:o},(0,e.createElement)("td",null,(0,e.createElement)("input",{type:"checkbox",id:r.id,className:"list-checkboxes",onClick:g})),(0,e.createElement)("td",{className:"wheeloflife-title-col"},(0,e.createElement)("a",null,r.title.rendered?.replace("&","&")?.replace("&","&"),c&&(0,q.applyFilters)("wol_wheel_title",null,r))),c&&(0,e.createElement)("td",{className:"wheeloflife-shortcode-col"},(0,e.createElement)(Z.Z,{shortcode:`[wheeloflife id=${r.id}]`})),(0,e.createElement)("td",{className:"wheeloflife-date-col"},(0,e.createElement)("span",null,moment(r.date).format("MMM Do ,YYYY"))),(0,e.createElement)("td",{className:"wheeloflife-status-col"},(0,e.createElement)("span",{className:"wheeloflife-status draft"},r.status[0].toUpperCase()+r.status.slice(1))),(0,e.createElement)("td",{className:"wheeloflife-action-col"},(0,e.createElement)(U.DropdownButton,(0,t.Z)({value:(0,e.createElement)(V.V4,null),align:"right",tab:"trash",id:r.id},n))))}))))),p&&h&&h.length>1&&(0,e.createElement)(K.Z,{root:d,bulkStatus:f,selectedIds:m},(0,e.createElement)("span",{className:"selected-items"},h.length," ",(0,W.__)("items selected","wheel-of-life")),(0,e.createElement)(U.Button,{options:{btnStyle:"borderd-primary",type:"button",value:"Delete"},onClick:()=>{h.length>0?(h.forEach((function(e){Y()({path:`wp/v2/${s}/${e}?force=1`,method:"DELETE"}).then((e=>{m([]),Y()({path:(0,X.addQueryArgs)(`wp/v2/${s}?status=any`,ae),method:"GET"}).then((e=>{o([]),o(e)})),Y()({path:(0,X.addQueryArgs)(`wp/v2/${s}?status=trash`,ae),method:"GET"}).then((e=>{a([]),a(e)}))}))})),Q().success((0,W.__)("Items deleted successfully.","wheel-of-life"))):Q().error((0,W.__)("No items selected.","wheel-of-life"))}})))},se={per_page:-1,orderby:"date",order:"desc"},ce=()=>{const[t,n]=(0,e.useState)("all_wheels"),[r,o]=(0,e.useState)(!1),[i,a]=(0,e.useState)(!1),[l,s]=(0,e.useState)([]),[c,u]=(0,e.useState)(0),[p,f]=(0,e.useState)(0),[d,h]=(0,e.useState)(!1);(0,e.useEffect)((()=>{Y()({path:(0,X.addQueryArgs)("wp/v2/wheel?status=any",se),method:"GET"}).then((e=>{o(e)}))}),[]),(0,e.useEffect)((()=>{s(r)}),[r]),(0,e.useEffect)((()=>{Y()({path:(0,X.addQueryArgs)("wp/v2/wheel?status=trash",se),method:"GET"}).then((e=>{a(e)}))}),[]);const[m,g]=(0,e.useState)("");(0,e.useEffect)((()=>{g(m),function(){if(""!==m){const e=r.filter((e=>e.title.rendered&&e.title.rendered.toLowerCase().includes(m)));s(e)}else s(r)}()}),[m]),(0,e.useEffect)((()=>{if(r){const e=r.filter((e=>e.status&&e.status.toLowerCase().includes("draft"))),t=r.filter((e=>e.status&&e.status.toLowerCase().includes("publish")));u(e.length),f(t.length)}}),[r]);var v={all_wheels:{label:(0,W.__)("All Wheels","wheel-of-life"),count:r.length},draft_wheels:{label:(0,W.__)("Draft","wheel-of-life"),count:c},published_wheels:{label:(0,W.__)("Published","wheel-of-life"),count:p}};return i.length>0&&(v={all_wheels:{label:(0,W.__)("All Wheels","wheel-of-life"),count:r.length},draft_wheels:{label:(0,W.__)("Draft","wheel-of-life"),count:c},published_wheels:{label:(0,W.__)("Published","wheel-of-life"),count:p},trash_wheels:{label:(0,W.__)("Trash","wheel-of-life"),count:i.length}}),(0,e.createElement)("div",{className:"wheeloflife-dashboard-container"},(0,e.createElement)("header",{className:"wheeloflife-header-wrap"},(0,e.createElement)("h1",{className:"wheeloflife-title"},(0,W.__)("Wheel of Life","wheel-of-life")),(0,e.createElement)(U.SearchForm,{onKeyUp:e=>function(e){g(e.target.value)}(e),onClick:e=>(s(r),void g("")),options:{placeholder:"Search Wheel"}})),(0,e.createElement)("div",{className:"wheeloflife-wheel-list-wrapper"},(0,e.createElement)(U.NavTab,{navs:v,setActiveTab:n,activeTab:t,tabId:"wheel-lists-tab",className:"tab-sticky tab-bg"}),"all_wheels"===t&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-list-items"},"Showing ",r.length," of ",r.length),(0,e.createElement)(te,{wheelData:l,setAllData:o,trashData:i,setTrashData:a,type:"wheel"})),"draft_wheels"===t&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-list-items"},"Showing ",c," of ",c),(0,e.createElement)(re,{wheelData:l,setAllData:o,trashData:i,setTrashData:a,type:"wheel"})),"published_wheels"===t&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-list-items"},"Showing ",p," of ",p),(0,e.createElement)(ie,{wheelData:l,setAllData:o,trashData:i,setTrashData:a,type:"wheel"})),"trash_wheels"===t&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-list-items"},"Showing ",i.length," of ",i.length),(0,e.createElement)(le,{wheelData:l,setAllData:o,trashData:i,setTrashData:a,setWheelTab:n,type:"wheel"}))))},ue=(0,q.applyFilters)("wheeloflife_global_settings_tabs",{social_share:{label:(0,W.__)("Social Share","wheel-of-life")},cta:{label:(0,W.__)("Call To Action","wheel-of-life")}});var pe=n(5903),fe=n(5749),de=n(5609),he=n(2095);const me=function(t){let{Values:n,setValues:r}=t;const{PanelBody:o}=wp.components,[i,a]=(0,e.useState)(1);function l(e,t){let o={...n};o.customizer[t]=e,r(o)}return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o,{title:(0,W.__)("General","wheel-of-life"),initialOpen:!0},(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field wheeloflife-blocks-gradient-option inline"},(0,e.createElement)(he.ZP,{value:n.customizer.background,values:n.customizer.background,id:"button-border",option:{id:"button-border",label:(0,W.__)("Background","wheel-of-life"),type:"ab-background",value:n.customizer.background},hasRevertButton:!0,onChange:e=>l(e,"background")})),(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field inline"},(0,e.createElement)(he.ZP,{value:n.customizer.alignment,values:n.customizer.alignment,id:"alignment",option:{id:"alignment",label:(0,W.__)("Alignment","wheel-of-life"),attr:{"data-type":"alignment"},type:"ab-radio",choices:{"flex-start":"",center:"","flex-end":""}},hasRevertButton:!0,onChange:e=>l(e,"alignment")}))),(0,e.createElement)(o,{title:(0,W.__)("CTA Title","wheel-of-life"),initialOpen:!1},(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field"},(0,e.createElement)(de.RangeControl,{label:"Font Size",value:n.customizer.fontSize,onChange:e=>l(e,"fontSize"),min:1,max:100})),(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field inline"},(0,e.createElement)("label",null,(0,W.__)("Font Color","wheel-of-life")),(0,e.createElement)(fe.Z,{value:{fontColor:{color:null!=n.customizer&&null!=n.customizer.fontColor?n.customizer.fontColor:"#3DBB55"}},onChange:e=>l(e.fontColor.color,"fontColor"),option:{pickers:[{id:"fontColor",title:(0,W.__)("Font Color")}]}}))),(0,e.createElement)(o,{title:(0,W.__)("CTA Description","wheel-of-life"),initialOpen:!1},(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field"},(0,e.createElement)(de.RangeControl,{label:"Font Size",value:n.customizer.descFontSize,onChange:e=>l(e,"descFontSize"),min:1,max:100})),(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field"},(0,e.createElement)("label",null,(0,W.__)("Font Color","wheel-of-life")),(0,e.createElement)(fe.Z,{value:{descFontColor:{color:null!=n.customizer&&null!=n.customizer.descFontColor?n.customizer.descFontColor:"#3DBB55"}},onChange:e=>l(e.descFontColor.color,"descFontColor"),option:{pickers:[{id:"descFontColor",title:(0,W.__)("Font Color")}]}}))),(0,e.createElement)(o,{title:(0,W.__)("CTA Buttons","wheel-of-life"),initialOpen:!1},(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field"},(0,e.createElement)(he.ZP,{value:n.customizer.buttonType,values:n.customizer.buttonType,id:"button-type",option:{id:"button-type",type:"ab-radio",choices:{primary:(0,W.__)("Primary Button","wheel-of-life"),secondary:(0,W.__)("Secondary Button","wheel-of-life")}},onChange:e=>l(e,"buttonType")})),"primary"===n.customizer.buttonType&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field"},(0,e.createElement)(de.RangeControl,{label:"Font Size",value:n.customizer.pbFontSize,onChange:e=>l(e,"pbFontSize"),min:1,max:100})),(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field"},(0,e.createElement)("label",null,(0,W.__)("Font Color","wheel-of-life")),(0,e.createElement)(fe.Z,{value:{pbfontColor:{color:null!=n.customizer&&null!=n.customizer.pbfontColors.pbfontColor?n.customizer.pbfontColors.pbfontColor:"#3DBB55"},pbfontHoverColor:{color:null!=n.customizer&&null!=n.customizer.pbfontColors.pbfontHoverColor?n.customizer.pbfontColors.pbfontHoverColor:"#3DBB55"}},onChange:e=>{!function(e,t){let o={...n};o.customizer.pbfontColors={pbfontColor:e,pbfontHoverColor:t},r(o)}(e.pbfontColor.color,e.pbfontHoverColor.color)},option:{pickers:[{id:"pbfontColor",title:(0,W.__)("Font Color")},{id:"pbfontHoverColor",title:(0,W.__)("Font Hover Color")}]}})),(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field"},(0,e.createElement)("label",null,(0,W.__)("Background Color","wheel-of-life")),(0,e.createElement)(fe.Z,{value:{pbBgColor:{color:null!=n.customizer&&null!=n.customizer.pbBgColors.pbBgColor?n.customizer.pbBgColors.pbBgColor:"#3DBB55"},pbBgHoverColor:{color:null!=n.customizer&&null!=n.customizer.pbBgColors.pbBgHoverColor?n.customizer.pbBgColors.pbBgHoverColor:"#3DBB55"}},onChange:e=>{!function(e,t){let o={...n};o.customizer.pbBgColors={pbBgColor:e,pbBgHoverColor:t},r(o)}(e.pbBgColor.color,e.pbBgHoverColor.color)},option:{pickers:[{id:"pbBgColor",title:(0,W.__)("Background Color")},{id:"pbBgHoverColor",title:(0,W.__)("Background Hover Color")}]}})),(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field"},(0,e.createElement)(de.RangeControl,{label:"Border Radius",value:n.customizer.pbBorderRadius,onChange:e=>l(e,"pbBorderRadius"),min:1,max:100}))),"secondary"===n.customizer.buttonType&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field"},(0,e.createElement)(de.RangeControl,{label:"Font Size",value:n.customizer.sbFontSize,onChange:e=>l(e,"sbFontSize"),min:1,max:100})),(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field"},(0,e.createElement)("label",null,(0,W.__)("Font Color","wheel-of-life")),(0,e.createElement)(fe.Z,{value:{sbfontColor:{color:null!=n.customizer&&null!=n.customizer.sbfontColors.sbfontColor?n.customizer.sbfontColors.sbfontColor:"#3DBB55"},sbfontHoverColor:{color:null!=n.customizer&&null!=n.customizer.sbfontColors.sbfontHoverColor?n.customizer.sbfontColors.sbfontHoverColor:"#3DBB55"}},onChange:e=>{!function(e,t){let o={...n};o.customizer.sbfontColors={sbfontColor:e,sbfontHoverColor:t},r(o)}(e.sbfontColor.color,e.sbfontHoverColor.color)},option:{pickers:[{id:"sbfontColor",title:(0,W.__)("Font Color")},{id:"sbfontHoverColor",title:(0,W.__)("Font Hover Color")}]}})),(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field"},(0,e.createElement)("label",null,(0,W.__)("Background Color","wheel-of-life")),(0,e.createElement)(fe.Z,{value:{sbBgColor:{color:null!=n.customizer&&null!=n.customizer.sbBgColors.sbBgColor?n.customizer.sbBgColors.sbBgColor:"#3DBB55"},sbBgHoverColor:{color:null!=n.customizer&&null!=n.customizer.sbBgColors.sbBgHoverColor?n.customizer.sbBgColors.sbBgHoverColor:"#3DBB55"}},onChange:e=>{!function(e,t){let o={...n};o.customizer.sbBgColors={sbBgColor:e,sbBgHoverColor:t},r(o)}(e.sbBgColor.color,e.sbBgHoverColor.color)},option:{pickers:[{id:"sbBgColor",title:(0,W.__)("Background Color")},{id:"sbBgHoverColor",title:(0,W.__)("Background Hover Color")}]}})),(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field"},(0,e.createElement)(de.RangeControl,{label:"Border Radius",value:n.customizer.sbBorderRadius,onChange:e=>l(e,"sbBorderRadius"),min:1,max:100})))),(0,e.createElement)(o,{title:(0,W.__)("Others","wheel-of-life"),initialOpen:!1},(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field"},(0,e.createElement)(he.ZP,{value:n.customizer.margin,values:n.customizer.margin,id:"margin",option:{id:"margin",label:(0,W.__)("Margin","wheel-of-life"),type:"ab-spacing",value:n.customizer.margin,responsive:!1,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>l(e,"margin")}),(0,e.createElement)("span",{className:"wheeloflife-field-info"},"Add the margins to give space outside the CTA.")),(0,e.createElement)("div",{className:"wheeloflife-blocks-option components-base-control__field"},(0,e.createElement)(he.ZP,{value:n.customizer.padding,values:n.customizer.padding,id:"padding",option:{id:"padding",label:(0,W.__)("Padding","wheel-of-life"),type:"ab-spacing",value:n.customizer.padding,responsive:!1,units:[{unit:"",min:0,max:10,decimals:1},{unit:"px",min:0,max:50},{unit:"em",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:e=>l(e,"padding")}),(0,e.createElement)("span",{className:"wheeloflife-field-info"},"Add the paddings to give space inside the CTA."))))},ge=function(){const[t,n]=(0,e.useState)(!1),[r,o]=(0,e.useState)("primary_btn"),[i,a]=(0,e.useState)({title:"",description:"",buttonLabel:"",buttonLink:"",openInTab:!1,setLinkAttrNoFollow:!1,setLinkAttrSponser:!1,setLinkAttrDownload:!1,sbuttonLabel:(0,W.__)("Services","wheel-of-life"),sbuttonLink:"",sbopenInTab:!1,sbsetLinkAttrNoFollow:!1,sbsetLinkAttrSponser:!1,sbsetLinkAttrDownload:!1,customizer:{background:{background_type:"color",background_pattern:"type-1",background_image:{attachment_id:null,x:0,y:0},gradient:"",background_repeat:"no-repeat",background_size:"cover",background_attachment:"scroll",patternColor:{default:{color:"#e5e7ea"}},overlayColor:{default:{color:"#dd1919"}},backgroundColor:{default:{color:"#dd1919"}}},bgtype:"",bgColor:"",bgImage:"",alignment:"center",fontSize:32,fontColor:"#fff",descFontSize:18,descFontColor:"#fff",buttonType:"primary",pbFontSize:16,pbfontColors:{pbfontColor:"#fff",pbfontHoverColor:""},pbBgColors:{pbBgColor:"#038181",pbBgHoverColor:""},pbBorderRadius:4,sbFontSize:16,sbfontColors:{sbfontColor:"#038181",sbfontHoverColor:""},sbBgColors:{sbBgColor:"#fff",sbBgHoverColor:""},sbBorderRadius:4,margin:{top:"10",left:"10",right:"10",bottom:"10"},padding:{top:"50px",left:"38px",right:"38px",bottom:"50px"}}});return(0,e.useEffect)((()=>{let e=new FormData;e.append("action","getCTA"),e.append("security",wolVariables.ajax_nonce),Y()({url:wolVariables.ajax_url,method:"POST",body:e}).then((e=>{!0===e.success&&""!=e.data&&a(JSON.parse(e.data))}))}),[]),(0,e.createElement)("div",{className:"wheelofllifepro-cta-tab fadeInUp"},(0,e.createElement)("div",{className:"wheeloflife-card"},(0,e.createElement)("div",{className:"wheeloflife-card-header"},(0,e.createElement)("h2",{className:"wheeloflife-title"},(0,W.__)("Title and description","wheel-of-life")),(0,e.createElement)("p",null,(0,W.__)("Use call to action at the end of the accessment for the user engagement.","wheel-of-life"))),(0,e.createElement)("div",{className:"wheeloflife-card-body"},(0,e.createElement)("div",{className:"wheeloflife-field"},(0,e.createElement)("label",null,(0,W.__)("Call to Action Title","wheel-of-life")),(0,e.createElement)("input",{type:"text",onKeyUp:function(e){let t={...i};t.title=e.target.value,a(t)},defaultValue:i.title&&i.title})),(0,e.createElement)("div",{className:"wheeloflife-field"},(0,e.createElement)("label",null,(0,W.__)("Call to Action Description","wheel-of-life")),(0,e.createElement)("textarea",{rows:"5",onKeyUp:function(e){let t={...i};t.description=e.target.value,a(t)},defaultValue:i.description&&i.description})))),(0,e.createElement)("div",{className:"wheeloflife-card"},(0,e.createElement)("div",{className:"wheeloflife-card-header"},(0,e.createElement)("h2",{className:"wheeloflife-title"},(0,W.__)("Action Buttons","wheel-of-life")),(0,e.createElement)("p",null,(0,W.__)("Set the action buttons and page redirections.","wheel-of-life"))),(0,e.createElement)("div",{className:"wheeloflife-card-header has-nav-tab"},(0,e.createElement)(U.NavTab,{navs:{primary_btn:{label:"Primary Button"},secondary_btn:{label:"Secondary Button"}},activeTab:r,setActiveTab:o,tabId:"card_tab"})),(0,e.createElement)("div",{className:"wheeloflife-card-body"},"primary_btn"==r&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-field"},(0,e.createElement)("label",null,(0,W.__)("Button Label","wheel-of-life")),(0,e.createElement)("input",{type:"text",onKeyUp:function(e){let t={...i};t.buttonLabel=e.target.value,a(t)},defaultValue:i.buttonLabel&&i.buttonLabel})),(0,e.createElement)("div",{className:"wheeloflife-field"},(0,e.createElement)("label",null,(0,W.__)("Button Link","wheel-of-life")),(0,e.createElement)("input",{type:"url",placeholder:"https://example.com/",onKeyUp:function(e){let t={...i};t.buttonLink=e.target.value,a(t)},defaultValue:i.buttonLink&&i.buttonLink})),(0,e.createElement)("div",{className:"wheeloflife-field"},(0,e.createElement)(U.SwitchBox,{id:"switch-1",type:"openInTab",label:"Open in new tab",checked:i.openInTab,Values:i,setValues:a}),(0,e.createElement)("span",{className:"wheeloflife-field-info"},(0,W.__)("Enable the option to open the page in new tab.","wheel-of-life"))),(0,e.createElement)("div",{className:"wheeloflife-field"},(0,e.createElement)(U.SwitchBox,{id:"switch-2",type:"setLinkAttrNoFollow",label:"Set Link attribute to nofollow",checked:i.setLinkAttrNoFollow,Values:i,setValues:a}),(0,e.createElement)("span",{className:"wheeloflife-field-info"},(0,W.__)("Enable the option to open the page in new tab.","wheel-of-life"))),(0,e.createElement)("div",{className:"wheeloflife-field"},(0,e.createElement)(U.SwitchBox,{id:"switch-3",type:"setLinkAttrSponser",label:"Set Link attribute to Sponsored",checked:i.setLinkAttrSponser,Values:i,setValues:a}),(0,e.createElement)("span",{className:"wheeloflife-field-info"},(0,W.__)("Enable the option if the link has any sponsorship.","wheel-of-life"))),(0,e.createElement)("div",{className:"wheeloflife-field"},(0,e.createElement)(U.SwitchBox,{id:"switch-4",type:"setLinkAttrDownload",label:"Set Link attribute to Download",checked:i.setLinkAttrDownload,Values:i,setValues:a}),(0,e.createElement)("span",{className:"wheeloflife-field-info"},(0,W.__)("Enable the option if the link has downloadable files.","wheel-of-life")))),"secondary_btn"==r&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-field"},(0,e.createElement)("label",null,(0,W.__)("Button Label","wheel-of-life")),(0,e.createElement)("input",{type:"text",placeholder:"Schedule an Appointment",onKeyUp:function(e){let t={...i};t.sbuttonLabel=e.target.value,a(t)},defaultValue:i.sbuttonLabel&&i.sbuttonLabel})),(0,e.createElement)("div",{className:"wheeloflife-field"},(0,e.createElement)("label",null,(0,W.__)("Button Link","wheel-of-life")),(0,e.createElement)("input",{type:"url",placeholder:"https://example.com/",onKeyUp:function(e){let t={...i};t.sbuttonLink=e.target.value,a(t)},defaultValue:i.sbuttonLink&&i.sbuttonLink})),(0,e.createElement)("div",{className:"wheeloflife-field"},(0,e.createElement)(U.SwitchBox,{id:"sbButtonTab-1",type:"sbopenInTab",label:"Open in new tab",checked:i.sbopenInTab,Values:i,setValues:a}),(0,e.createElement)("span",{className:"wheeloflife-field-info"},(0,W.__)("Enable the option to open the page in new tab.","wheel-of-life"))),(0,e.createElement)("div",{className:"wheeloflife-field"},(0,e.createElement)(U.SwitchBox,{id:"sbButtonTab-2",type:"sbsetLinkAttrNoFollow",label:"Set Link attribute to nofollow",checked:i.sbsetLinkAttrNoFollow,Values:i,setValues:a}),(0,e.createElement)("span",{className:"wheeloflife-field-info"},(0,W.__)("Enable the option to open the page in new tab.","wheel-of-life"))),(0,e.createElement)("div",{className:"wheeloflife-field"},(0,e.createElement)(U.SwitchBox,{id:"sbButtonTab-3",type:"sbsetLinkAttrSponser",label:"Set Link attribute to Sponsored",checked:i.sbsetLinkAttrSponser,Values:i,setValues:a}),(0,e.createElement)("span",{className:"wheeloflife-field-info"},(0,W.__)("Enable the option if the link has any sponsorship.","wheel-of-life"))),(0,e.createElement)("div",{className:"wheeloflife-field"},(0,e.createElement)(U.SwitchBox,{id:"sbButtonTab-4",type:"sbsetLinkAttrDownload",label:"Set Link attribute to Download",checked:i.sbsetLinkAttrDownload,Values:i,setValues:a}),(0,e.createElement)("span",{className:"wheeloflife-field-info"},(0,W.__)("Enable the option if the link has downloadable files.","wheel-of-life")))))),(0,e.createElement)("div",{className:"wheeloflife-card"},(0,e.createElement)("div",{className:"wheeloflife-card-header"},(0,e.createElement)("h2",{className:"wheeloflife-title"},(0,W.__)("Style and Customization","wheel-of-life")),(0,e.createElement)("p",null,(0,W.__)("Change colors, font-sizes and more to make your CTA appealing to your site visitors.","wheel-of-life"))),(0,e.createElement)("div",{className:"wheeloflife-card-body"},(0,e.createElement)("div",{className:"wheeloflife-field"},(0,e.createElement)("label",null,(0,W.__)("Call to Action Preview","wheel-of-life")),(0,e.createElement)("div",{className:`wheeloflife-cta-preview ${"image"===i.customizer.background.background_type&&"has-overlay"}`,style:{background:"image"===i.customizer.background.background_type?"url("+i.customizer.background.background_image.url+") "+100*i.customizer.background.background_image.x+"% "+100*i.customizer.background.background_image.y+"% "+i.customizer.background.background_repeat:"color"===i.customizer.background.background_type?i.customizer.background.backgroundColor.default.color:i.customizer.background.gradient,backgroundSize:"image"===i.customizer.background.background_type&&i.customizer.background.background_size,backgroundAttachment:"image"===i.customizer.background.background_type&&i.customizer.background.background_attachment,padding:i.customizer.padding.top+" "+i.customizer.padding.right+" "+i.customizer.padding.bottom+" "+i.customizer.padding.left,margin:i.customizer.margin.top+" "+i.customizer.margin.right+" "+i.customizer.margin.bottom+" "+i.customizer.margin.left,"--cta-overlay-color":i.customizer.background.overlayColor.default.color},align:"flex-start"===i.customizer.alignment?"left":"flex-end"===i.customizer.alignment?"right":"center"},(0,e.createElement)("h2",{className:"wheeloflife-cta-title",style:{fontSize:i.customizer.fontSize,color:i.customizer.fontColor}},i.title),(0,e.createElement)("div",{className:"wheeloflife-cta-description",style:{fontSize:i.customizer.descFontSize,color:i.customizer.descFontColor},dangerouslySetInnerHTML:{__html:i.description.replace(/\n/g,"<br/>")}}),(0,e.createElement)("div",{className:"wheeloflife-cta-btns"},""!==i.buttonLabel&&""!==i.buttonLink&&(0,e.createElement)("button",{className:"wheeloflife-cta-btn primary",style:{fontSize:i.customizer.pbFontSize,color:i.customizer.pbfontColors.pbfontColor,background:i.customizer.pbBgColors.pbBgColor,borderRadius:i.customizer.pbBorderRadius},onMouseOver:e=>{e.target.style.color=i.customizer.pbfontColors.pbfontHoverColor,e.target.style.background=i.customizer.pbBgColors.pbBgHoverColor},onMouseOut:e=>{e.target.style.color=i.customizer.pbfontColors.pbfontColor,e.target.style.background=i.customizer.pbBgColors.pbBgColor}},i.buttonLabel),""!==i.sbuttonLabel&&""!==i.sbuttonLink&&(0,e.createElement)("button",{className:"wheeloflife-cta-btn secondary",style:{fontSize:i.customizer.sbFontSize,color:i.customizer.sbfontColors.sbfontColor,background:i.customizer.sbBgColors.sbBgColor,borderRadius:i.customizer.sbBorderRadius},onMouseOver:e=>{e.target.style.color=i.customizer.sbfontColors.sbfontHoverColor,e.target.style.background=i.customizer.sbBgColors.sbBgHoverColor},onMouseOut:e=>{e.target.style.color=i.customizer.sbfontColors.sbfontColor,e.target.style.background=i.customizer.sbBgColors.sbBgColor}},i.sbuttonLabel))),(0,e.createElement)("span",{className:"wheeloflife-field-info"},(0,W.__)("This is the preview of the CTA in your wheel. Click on the Customize button below to change the design styles.","wheel-of-life"))),(0,e.createElement)("div",{className:"wheeloflife-field-btn"},(0,e.createElement)(U.Button,{options:{btnStyle:"primary",type:"button",value:(0,W.__)("Customize","wheel-of-life")},onClick:()=>n(!0)})))),(0,e.createElement)("div",{className:"wheeloflife-btn-wrap"},(0,e.createElement)(U.Button,{options:{btnStyle:"primary",type:"button",value:(0,W.__)("Save Settings","wheel-of-life")},onClick:function(){let e=new FormData;e.append("data",JSON.stringify(i)),e.append("action","saveCTA"),e.append("security",wolVariables.ajax_nonce),Y()({url:wolVariables.ajax_url,method:"POST",body:e}).then((e=>{!0===e.success?Q().success(e.data):Q().error(e.data)}))}})),t&&(0,e.createElement)(pe.Z,{modalTitle:"Customize",modalStatus:n,type:"form",className:"customizeer-modal",modalAlign:"right"},(0,e.createElement)("div",null,(0,e.createElement)(me,{Values:i,setValues:a})),(0,e.createElement)("div",{className:"wheeloflife-modal-footer",align:"right"},(0,e.createElement)(U.Button,{options:{btnStyle:"primary",type:"button",value:"Done"},onClick:()=>{n(!1)}}))))},ve=function(){const[t,n]=(0,e.useState)("social_share"),[r,o]=(0,e.useState)({facebook:!1,twitter:!1,linkedIn:!1,reddit:!1,email:!1}),[i,a]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{let e=new FormData;e.append("action","getSocialShare"),e.append("security",wolVariables.ajax_nonce),Y()({url:wolVariables.ajax_url,method:"POST",body:e}).then((e=>{!0===e.success&&""!=e.data&&o(JSON.parse(e.data))})),Q().options.positionClass="toast-bottom-full-width",Q().options.timeOut="5000"}),[]),(0,e.useEffect)((()=>{a(!1)}),[r]),(0,e.createElement)("div",{className:"wheeloflife-settings-container"},(0,e.createElement)("header",{className:"wheeloflife-header-wrap"},(0,e.createElement)("h1",{className:"wheeloflife-title"},(0,W.__)("Settings","wheel-of-life"))),(0,e.createElement)(U.NavTab,{navs:ue,activeTab:t,setActiveTab:n,tabId:"global-settings-tab",className:"tab-sticky tab-bg"}),"social_share"===t&&(0,e.createElement)("div",{className:"wheeloflife-social-tab fadeInUp"},(0,e.createElement)("div",{className:"wheeloflife-card"},(0,e.createElement)("header",{className:"wheeloflife-card-header"},(0,e.createElement)("h2",{className:"wheeloflife-title"},(0,W.__)("Social Share","wheel-of-life")),(0,e.createElement)("p",null,(0,W.__)("Enable the social media platforms to share the results.","wheel-of-life"))),(0,e.createElement)("div",{className:"wheeloflife-card-body"},(0,e.createElement)("div",{className:"wheeloflife-field flex-row"},(0,e.createElement)(U.SocialIcon,{icon:(0,e.createElement)(V.s1,null),label:(0,W.__)("Facebook","wheel-of-life")}),(0,e.createElement)(U.SwitchBox,{id:"switch-1",type:"facebook",checked:r.facebook,Values:r,setValues:o})),(0,e.createElement)("div",{className:"wheeloflife-field flex-row"},(0,e.createElement)(U.SocialIcon,{icon:(0,e.createElement)(V.tL,null),label:(0,W.__)("Twitter","wheel-of-life")}),(0,e.createElement)(U.SwitchBox,{id:"switch-2",type:"twitter",checked:r.twitter,Values:r,setValues:o})),(0,e.createElement)("div",{className:"wheeloflife-field flex-row"},(0,e.createElement)(U.SocialIcon,{icon:(0,e.createElement)(V.yh,null),label:(0,W.__)("Linked In","wheel-of-life")}),(0,e.createElement)(U.SwitchBox,{id:"switch-3",type:"linkedIn",checked:r.linkedIn,Values:r,setValues:o})),(0,e.createElement)("div",{className:"wheeloflife-field flex-row"},(0,e.createElement)(U.SocialIcon,{icon:(0,e.createElement)(V.JP,null),label:(0,W.__)("Reddit","wheel-of-life")}),(0,e.createElement)(U.SwitchBox,{id:"switch-4",type:"reddit",checked:r.reddit,Values:r,setValues:o})),(0,e.createElement)("div",{className:"wheeloflife-field flex-row"},(0,e.createElement)(U.SocialIcon,{icon:(0,e.createElement)(V.GT,null),label:(0,W.__)("Email","wheel-of-life")}),(0,e.createElement)(U.SwitchBox,{id:"switch-5",type:"email",checked:r.email,Values:r,setValues:o}))),(0,e.createElement)("div",{className:"wheeloflife-card-footer",align:"right"},(0,e.createElement)(U.Button,{options:{btnStyle:"primary",type:"button",value:(0,W.__)("Save Settings","wheel-of-life")},onClick:function(){let e=new FormData;e.append("data",JSON.stringify(r)),e.append("action","saveSocialShare"),e.append("security",wolVariables.ajax_nonce),Y()({url:wolVariables.ajax_url,method:"POST",body:e}).then((e=>{!0===e.success&&(i||(Q().success(e.data),a(!0)))}))}})))),"cta"===t&&(0,e.createElement)(ge,null),(0,q.applyFilters)("wheeloflife_global_tab_content",null,r,o,t))},ye={per_page:-1,orderby:"date",order:"desc"},be=()=>{const[t,n]=(0,e.useState)("all_wheels"),[r,o]=(0,e.useState)(!1),[i,a]=(0,e.useState)(!1),[l,s]=(0,e.useState)([]),[c,u]=(0,e.useState)(0),[p,f]=(0,e.useState)(0);(0,e.useEffect)((()=>{Y()({path:(0,X.addQueryArgs)("wp/v2/wheel-submissions?status=any",ye),method:"GET"}).then((e=>{o(e)}))}),[]),(0,e.useEffect)((()=>{s(r)}),[r]),(0,e.useEffect)((()=>{Y()({path:(0,X.addQueryArgs)("wp/v2/wheel-submissions?status=trash",ye),method:"GET"}).then((e=>{a(e)}))}),[]);const[d,h]=(0,e.useState)("");(0,e.useEffect)((()=>{h(d),function(){if(""!==d){const e=r.filter((e=>e.title.rendered&&e.title.rendered.toLowerCase().includes(d)));s(e)}else s(r)}()}),[d]),(0,e.useEffect)((()=>{if(r){const e=r.filter((e=>e.status&&e.status.toLowerCase().includes("draft"))),t=r.filter((e=>e.status&&e.status.toLowerCase().includes("publish")));u(e.length),f(t.length)}}),[r]);var m={all_wheels:{label:(0,W.__)("All Submissions","wheel-of-life"),count:r.length},draft_wheels:{label:(0,W.__)("Draft","wheel-of-life"),count:c},published_wheels:{label:(0,W.__)("Published","wheel-of-life"),count:p}};return i.length>0&&(m={all_wheels:{label:(0,W.__)("All Submissions","wheel-of-life"),count:r.length},draft_wheels:{label:(0,W.__)("Draft","wheel-of-life"),count:c},published_wheels:{label:(0,W.__)("Published","wheel-of-life"),count:p},trash_wheels:{label:(0,W.__)("Trash","wheel-of-life"),count:i.length}}),(0,e.createElement)("div",{className:"wheeloflife-dashboard-container"},(0,e.createElement)("header",{className:"wheeloflife-header-wrap"},(0,e.createElement)("h1",{className:"wheeloflife-title"},(0,W.__)("All Submissions","wheel-of-life")),(0,e.createElement)(U.SearchForm,{onKeyUp:e=>function(e){h(e.target.value)}(e),onClick:e=>(s(r),void h("")),options:{placeholder:"Search submission"}})),(0,e.createElement)("div",{className:"wheeloflife-wheel-list-wrapper"},(0,e.createElement)(U.NavTab,{navs:m,setActiveTab:n,activeTab:t,tabId:"wheel-submission-tab",className:"tab-sticky tab-bg"}),"all_wheels"===t&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-list-items"},"Showing ",r.length," of ",r.length),(0,e.createElement)(te,{wheelData:l,setAllData:o,trashData:i,setTrashData:a,type:"wheel-submissions"})),"draft_wheels"===t&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-list-items"},"Showing ",c," of ",c),(0,e.createElement)(re,{wheelData:l,setAllData:o,trashData:i,setTrashData:a,type:"wheel-submissions"})),"published_wheels"===t&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-list-items"},"Showing ",p," of ",p),(0,e.createElement)(ie,{wheelData:l,setAllData:o,trashData:i,setTrashData:a,type:"wheel-submissions"})),"trash_wheels"===t&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wheeloflife-list-items"},"Showing ",i.length," of ",i.length),(0,e.createElement)(le,{wheelData:l,setAllData:o,trashData:i,setTrashData:a,setWheelTab:n,type:"wheel-submissions"}))))};k().Component,k().Component;var we=function(e,t){return"function"==typeof e?e(t):e},Ee=function(e,t){return"string"==typeof e?h(e,null,null,t):e},Ce=function(e){return e},ke=k().forwardRef;void 0===ke&&(ke=Ce);var _e=ke((function(e,n){var r=e.innerRef,o=e.navigate,i=e.onClick,a=(0,N.Z)(e,["innerRef","navigate","onClick"]),l=a.target,s=(0,t.Z)({},a,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||l&&"_self"!==l||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),o())}});return s.ref=Ce!==ke&&n||r,k().createElement("a",s)})),Se=ke((function(e,n){var r=e.component,o=void 0===r?_e:r,i=e.replace,a=e.to,l=e.innerRef,s=(0,N.Z)(e,["component","replace","to","innerRef"]);return k().createElement(L.Consumer,null,(function(e){e||c(!1);var r=e.history,u=Ee(we(a,e.location),e.location),p=u?r.createHref(u):"",f=(0,t.Z)({},s,{href:p,navigate:function(){var t=we(a,e.location),n=d(e.location)===d(Ee(t));(i||n?r.replace:r.push)(t)}});return Ce!==ke?f.ref=n||l:f.innerRef=l,k().createElement(o,f)}))})),xe=function(e){return e},Oe=k().forwardRef;void 0===Oe&&(Oe=xe),Oe((function(e,n){var r=e["aria-current"],o=void 0===r?"page":r,i=e.activeClassName,a=void 0===i?"active":i,l=e.activeStyle,s=e.className,u=e.exact,p=e.isActive,f=e.location,d=e.sensitive,h=e.strict,m=e.style,g=e.to,v=e.innerRef,y=(0,N.Z)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return k().createElement(L.Consumer,null,(function(e){e||c(!1);var r=f||e.location,i=Ee(we(g,r),r),b=i.pathname,w=b&&b.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),E=w?function(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,l=void 0!==a&&a,s=n.sensitive,c=void 0!==s&&s;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=D[n]||(D[n]={});if(r[e])return r[e];var o=[],i={regexp:O()(e,o,t),keys:o};return F<B&&(r[e]=i,F++),i}(n,{end:i,strict:l,sensitive:c}),o=r.regexp,a=r.keys,s=o.exec(e);if(!s)return null;var u=s[0],p=s.slice(1),f=e===u;return i&&!f?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:f,params:a.reduce((function(e,t,n){return e[t.name]=p[n],e}),{})}}),null)}(r.pathname,{path:w,exact:u,sensitive:d,strict:h}):null,C=!!(p?p(E,r):E),_="function"==typeof s?s(C):s,S="function"==typeof m?m(C):m;C&&(_=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(_,a),S=(0,t.Z)({},S,l));var x=(0,t.Z)({"aria-current":C&&o||null,className:_,style:S,to:i},y);return xe!==Oe?x.ref=n||v:x.innerRef=v,k().createElement(Se,x)}))}));const Ne=(0,q.applyFilters)("wheeloflife_sidebar",{wheels_of_life_all_lists:{label:(0,W.__)("All Wheel of Life","wheel-of-life"),path:"wheels_of_life_all_lists"},wheels_of_life_global_settings:{label:(0,W.__)("Settings","wheel-of-life"),path:"wheels_of_life_global_settings"},wheels_of_life_submissions:{label:(0,W.__)("Submissions","wheel-of-life"),path:"wheels_of_life_submissions"}});const Ae=function(){let t=sessionStorage.getItem("wol_sidebar_collapsed");return(0,e.useEffect)((()=>{let e=document.querySelector("body"),n=document.getElementById("wol-sidebar-toggle-btn");"collapsed"==t?(e.classList.add("wol-sidebar-collapsed"),e.style.setProperty("--wol-sidebar-width","85px"),n.classList.add("collapsed-in")):(e.classList.remove("wol-sidebar-collapsed"),e.style.setProperty("--wol-sidebar-width","320px"),n.classList.remove("collapsed-in"))})),(0,e.createElement)("div",{className:"wheeloflife-sidebar-main"},(0,e.createElement)("div",{className:"wheeloflife-sidebar-inner-wrapper"},(0,e.createElement)("div",{className:"wheeloflife-sidebar-header"},(0,e.createElement)("div",{className:"wheeloflife-brand-wrap"},(0,e.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M12 2C12.5523 2 13 1.55228 13 1C13 0.447715 12.5523 0 12 0C11.4477 0 11 0.447715 11 1C11 1.55228 11.4477 2 12 2Z",fill:"#038181"}),(0,e.createElement)("path",{d:"M12 24C12.5523 24 13 23.5523 13 23C13 22.4477 12.5523 22 12 22C11.4477 22 11 22.4477 11 23C11 23.5523 11.4477 24 12 24Z",fill:"#038181"}),(0,e.createElement)("path",{d:"M23 13C23.5523 13 24 12.5523 24 12C24 11.4477 23.5523 11 23 11C22.4477 11 22 11.4477 22 12C22 12.5523 22.4477 13 23 13Z",fill:"#038181"}),(0,e.createElement)("path",{d:"M1 13C1.55228 13 2 12.5523 2 12C2 11.4477 1.55228 11 1 11C0.447715 11 0 11.4477 0 12C0 12.5523 0.447715 13 1 13Z",fill:"#038181"}),(0,e.createElement)("path",{d:"M19.78 5.21997C20.3323 5.21997 20.78 4.77226 20.78 4.21997C20.78 3.66769 20.3323 3.21997 19.78 3.21997C19.2277 3.21997 18.78 3.66769 18.78 4.21997C18.78 4.77226 19.2277 5.21997 19.78 5.21997Z",fill:"#038181"}),(0,e.createElement)("path",{d:"M4.21997 20.78C4.77226 20.78 5.21997 20.3323 5.21997 19.78C5.21997 19.2277 4.77226 18.78 4.21997 18.78C3.66769 18.78 3.21997 19.2277 3.21997 19.78C3.21997 20.3323 3.66769 20.78 4.21997 20.78Z",fill:"#038181"}),(0,e.createElement)("path",{d:"M19.78 20.78C20.3323 20.78 20.78 20.3323 20.78 19.78C20.78 19.2277 20.3323 18.78 19.78 18.78C19.2277 18.78 18.78 19.2277 18.78 19.78C18.78 20.3323 19.2277 20.78 19.78 20.78Z",fill:"#038181"}),(0,e.createElement)("path",{d:"M4.21997 5.21997C4.77226 5.21997 5.21997 4.77226 5.21997 4.21997C5.21997 3.66769 4.77226 3.21997 4.21997 3.21997C3.66769 3.21997 3.21997 3.66769 3.21997 4.21997C3.21997 4.77226 3.66769 5.21997 4.21997 5.21997Z",fill:"#038181"}),(0,e.createElement)("path",{d:"M12 2C10.0222 2 8.08879 2.58649 6.4443 3.6853C4.79981 4.78412 3.51809 6.3459 2.76121 8.17316C2.00434 10.0004 1.8063 12.0111 2.19215 13.9509C2.578 15.8907 3.53041 17.6725 4.92894 19.0711C6.32746 20.4696 8.10929 21.422 10.0491 21.8079C11.9889 22.1937 13.9996 21.9957 15.8268 21.2388C17.6541 20.4819 19.2159 19.2002 20.3147 17.5557C21.4135 15.9112 22 13.9778 22 12C22 9.34784 20.9464 6.8043 19.0711 4.92893C17.1957 3.05357 14.6522 2 12 2V2ZM12.5 4.025C14.2737 4.13805 15.9584 4.8422 17.285 6.025L13.735 9.57C13.366 9.31287 12.9439 9.14199 12.5 9.07V4.025ZM11.5 4.025V9.025C11.0561 9.09699 10.634 9.26787 10.265 9.525L6.715 5.98C8.04771 4.81353 9.73177 4.12548 11.5 4.025V4.025ZM6 6.715L9.545 10.265C9.28787 10.634 9.11699 11.0561 9.045 11.5H4.045C4.14548 9.73176 4.83353 8.0477 6 6.715V6.715ZM4 12.5H9C9.07199 12.9439 9.24287 13.366 9.5 13.735L5.95501 17.285C4.79759 15.9489 4.11848 14.2652 4.02501 12.5H4ZM11.5 20C9.72628 19.8869 8.0416 19.1828 6.715 18L10.265 14.455C10.634 14.7121 11.0561 14.883 11.5 14.955V20ZM10 12C10 11.6044 10.1173 11.2178 10.3371 10.8889C10.5568 10.56 10.8692 10.3036 11.2346 10.1522C11.6001 10.0009 12.0022 9.96126 12.3902 10.0384C12.7781 10.1156 13.1345 10.3061 13.4142 10.5858C13.6939 10.8655 13.8844 11.2219 13.9616 11.6098C14.0387 11.9978 13.9991 12.3999 13.8478 12.7654C13.6964 13.1308 13.44 13.4432 13.1111 13.6629C12.7822 13.8827 12.3956 14 12 14C11.4696 14 10.9609 13.7893 10.5858 13.4142C10.2107 13.0391 10 12.5304 10 12ZM12.5 20V15C12.9439 14.928 13.366 14.7571 13.735 14.5L17.285 18.045C15.9523 19.2115 14.2682 19.8995 12.5 20V20ZM18 17.31L14.455 13.76C14.7121 13.391 14.883 12.9689 14.955 12.525H19.955C19.8491 14.2845 19.1614 15.9589 18 17.285V17.31ZM14.955 11.5C14.883 11.0561 14.7121 10.634 14.455 10.265L18 6.715C19.1828 8.04159 19.887 9.72628 20 11.5H14.955Z",fill:"#038181"})),(0,e.createElement)("span",{className:"wheeloflife-brand-name"},(0,W.__)("Wheel of Life","wheel-of-life"))),(0,e.createElement)("div",{className:"wheeloflife-create-wheel-btn-wrap"},(0,e.createElement)("button",{type:"button",className:"wheeloflife-btn primary create-wheel-btn",onClick:function(){let e=new FormData;e.append("action","addNewPost"),e.append("security",wolVariables.ajax_nonce),Y()({url:wolVariables.ajax_url,method:"POST",body:e}).then((e=>{!0===e.success&&(location.href=e.data)}))}},(0,e.createElement)("i",null,(0,e.createElement)(V.I8,null)),(0,e.createElement)("span",{className:"btn-label"},(0,W.__)("Create New Wheel","wheel-of-life"))))),(0,e.createElement)("div",{className:"wheeloflife-menu-wrap"},(0,e.createElement)("ul",{className:"wheeloflife-menu-list"},Object.values(Ne).map((function(t,n){return(0,e.createElement)("li",{className:(r=t.path,new URLSearchParams(z().search).get("page")===r?"active":""),key:n},(0,e.createElement)(Se,{to:`/wp-admin/admin.php?page=${t.path}`},(0,e.createElement)("i",null,(0,e.createElement)(V.Ts,{menuName:t.path})),(0,e.createElement)("span",{className:"wol-page-label"},t.label)));var r}))))),(0,e.createElement)("div",{className:"wheeloflife-sidebar-footer-wrapper"},(0,e.createElement)("div",{className:"wheeloflife-upgrade-container"},(0,e.createElement)("div",{className:"wheeloflife-title-wrap"},(0,e.createElement)("span",{className:"wheeloflife-icon"},(0,e.createElement)(V.Mh,null)),(0,e.createElement)("span",{className:"wheeloflife-title"},(0,e.createElement)("a",{target:"_blank",href:"https://wheeloflife.pro/support/"},(0,W.__)("Support","wheel-of-life")))),(0,e.createElement)("div",{className:"wheeloflife-title-wrap"},(0,e.createElement)("span",{className:"wheeloflife-icon"},(0,e.createElement)(V.$B,null)),(0,e.createElement)("span",{className:"wheeloflife-title"},(0,e.createElement)("a",{target:"_blank",href:"https://wheeloflife.pro/docs/"},(0,W.__)("Documentation","wheel-of-life")))),!wolVariables.proActive&&(0,e.createElement)("div",{className:"wheeloflife-upgrade-area"},(0,e.createElement)("div",{className:"wheeloflife-title-wrap"},(0,e.createElement)("span",{className:"wheeloflife-icon upgrade-icon"},(0,e.createElement)(V.cD,null))),(0,e.createElement)("div",{className:"wheeloflife-upgrade-box"},(0,e.createElement)("p",null,(0,W.__)("Upgrade to Pro version to add user dashboard, manage profiles, configure email templates, analytics dashboard and more exciting features.","wheel-of-life")),(0,e.createElement)("a",{target:"_blank",href:"https://wheeloflife.pro/pricing/",className:"wheeloflife-btn primary"},(0,W.__)("Upgrade Now","wheel-of-life")))))),(0,e.createElement)("button",{type:"button",id:"wol-sidebar-toggle-btn",className:"wol-sidebar-toggle-btn",onClick:e=>{let n=document.querySelector("body");"collapsed"==t?(n.classList.remove("wol-sidebar-collapsed"),n.style.setProperty("--wol-sidebar-width","320px"),e.target.classList.remove("collapsed-in"),sessionStorage.setItem("wol_sidebar_collapsed",""),t=""):(n.classList.add("wol-sidebar-collapsed"),n.style.setProperty("--wol-sidebar-width","85px"),e.target.classList.add("collapsed-in"),sessionStorage.setItem("wol_sidebar_collapsed","collapsed"),t="collapsed")}},(0,e.createElement)(V.y2,null)))},Pe=function(e){void 0===e&&(e={}),g||c(!1);var n,r=window.history,o=(-1===(n=window.navigator.userAgent).indexOf("Android 2.")&&-1===n.indexOf("Android 4.0")||-1===n.indexOf("Mobile Safari")||-1!==n.indexOf("Chrome")||-1!==n.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),a=e,l=a.forceRefresh,s=void 0!==l&&l,E=a.getUserConfirmation,C=void 0===E?v:E,k=a.keyLength,_=void 0===k?6:k,S=e.basename?f(u(e.basename)):"";function x(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return S&&(i=p(i,S)),h(i,r,n)}function O(){return Math.random().toString(36).substr(2,_)}var N=m();function A(e){(0,t.Z)(V,e),V.length=r.length,N.notifyListeners(V.location,V.action)}function P(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||T(x(e.state))}function j(){T(x(w()))}var M=!1;function T(e){M?(M=!1,A()):N.confirmTransitionTo(e,"POP",C,(function(t){t?A({action:"POP",location:e}):function(e){var t=V.location,n=R.indexOf(t.key);-1===n&&(n=0);var r=R.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(M=!0,B(o))}(e)}))}var L=x(w()),R=[L.key];function D(e){return S+d(e)}function B(e){r.go(e)}var F=0;function I(e){1===(F+=e)&&1===e?(window.addEventListener(y,P),i&&window.addEventListener(b,j)):0===F&&(window.removeEventListener(y,P),i&&window.removeEventListener(b,j))}var z=!1,V={length:r.length,action:"POP",location:L,createHref:D,push:function(e,t){var n="PUSH",i=h(e,t,O(),V.location);N.confirmTransitionTo(i,n,C,(function(e){if(e){var t=D(i),a=i.key,l=i.state;if(o)if(r.pushState({key:a,state:l},null,t),s)window.location.href=t;else{var c=R.indexOf(V.location.key),u=R.slice(0,c+1);u.push(i.key),R=u,A({action:n,location:i})}else window.location.href=t}}))},replace:function(e,t){var n="REPLACE",i=h(e,t,O(),V.location);N.confirmTransitionTo(i,n,C,(function(e){if(e){var t=D(i),a=i.key,l=i.state;if(o)if(r.replaceState({key:a,state:l},null,t),s)window.location.replace(t);else{var c=R.indexOf(V.location.key);-1!==c&&(R[c]=i.key),A({action:n,location:i})}else window.location.replace(t)}}))},go:B,goBack:function(){B(-1)},goForward:function(){B(1)},block:function(e){void 0===e&&(e=!1);var t=N.setPrompt(e);return z||(I(1),z=!0),function(){return z&&(z=!1,I(-1)),t()}},listen:function(e){var t=N.appendListener(e);return I(1),function(){I(-1),t()}}};return V}();function je(t){let{path:n}=t;return"wheels_of_life_all_lists"===n?(0,e.createElement)(ce,null):"wheels_of_life_global_settings"===n?(0,e.createElement)(ve,null):"wheels_of_life_submissions"===n?(0,e.createElement)(be,null):(0,q.applyFilters)("wheel_of_life_sub_menu_page_redirect",null,n)}function Me(){let t=new URLSearchParams(z().search);return(0,e.createElement)(je,{path:t.get("page")})}const Te=function(){return(0,e.createElement)(R,{history:Pe},(0,e.createElement)("div",{className:"wheeloflife-main-wrapper has-sidebar"},(0,e.createElement)(Ae,null),(0,e.createElement)("div",{className:"wheeloflife-inner-wrapper"},(0,e.createElement)(Me,null))))};function Le(){return(0,e.createElement)(Te,null)}!function(){let t=document.getElementById("wheelOfLifeAdminRoot");document.addEventListener("DOMContentLoaded",(function(){null!==t&&(0,e.render)((0,e.createElement)(Le,null),t)}))}()})(),(wheeloflifeExports=void 0===wheeloflifeExports?{}:wheeloflifeExports).globalApp=r})(); -
wheel-of-life/trunk/app/build/globalCSS.asset.php
r2887037 r2919602 1 <?php return array('dependencies' => array(), 'version' => ' ef55c992f186393fb050');1 <?php return array('dependencies' => array(), 'version' => 'f39645a72ef6aa923093'); -
wheel-of-life/trunk/app/build/globalCSS.css
r2887037 r2919602 1 .wheeloflife-sidebar-main{background-color:#fff;box-shadow:0 8px 20px rgba(38,41,51,.05);display:flex;flex-direction:column;height:100%;left:0;padding:1rem;position:absolute;top:0;transition:all .3s ease;width:320px;z-index:1111}.wheeloflife-sidebar-main .wheeloflife-sidebar-footer-wrapper svg{color:var(--gray-500)}.wheeloflife-sidebar-main .wheeloflife-sidebar-footer-wrapper svg path{stroke:var(--gray-500)}.wheeloflife-sidebar-main .wol-sidebar-toggle-btn{border:none;border-radius:50%;box-shadow:0 0 25px rgba(0,0,0,.06);height:50px;padding:0;position:absolute;right:-25px;top:31px;width:50px;z-index:11}.wheeloflife-sidebar-main .wol-sidebar-toggle-btn.collapsed-in{transform:rotate(180deg)}.wheeloflife-sidebar-main .wol-sidebar-toggle-btn svg{height:100%;max-height:unset;pointer-events:none;width:100%}.wheeloflife-sidebar-main .wol-sidebar-toggle-btn svg line,.wheeloflife-sidebar-main .wol-sidebar-toggle-btn svg path{fill:none;transition:all .3s ease}.wheeloflife-sidebar-main .wol-sidebar-toggle-btn:hover line,.wheeloflife-sidebar-main .wol-sidebar-toggle-btn:hover path{stroke:var(--primary-color);opacity:1}.wheeloflife-sidebar-main .wheeloflife-brand-wrap{align-items:center;color:var(--gray-600);display:flex;font-size:1.5rem;font-weight:700;justify-content:center;margin-bottom:2.25rem;margin-top:1.25rem;overflow:hidden}.wheeloflife-sidebar-main .wheeloflife-brand-wrap svg{flex:0 0 40px;width:40px}.wheeloflife-sidebar-main .wheeloflife-brand-name{margin-left:.75rem;transition:all .3s ease;white-space:nowrap}.wheeloflife-sidebar-main .wheeloflife-btn{white-space:nowrap;width:100%}.wheeloflife-sidebar-main .wheeloflife-btn i{display:inline-block;margin-right:.5rem;vertical-align:middle}.wheeloflife-sidebar-main .wheeloflife-btn svg path,.wheeloflife-sidebar-main .wheeloflife-btn:hover svg path{stroke:#fff}.wheeloflife-sidebar-main .wheeloflife-sidebar-inner-wrapper{flex:1}.wheeloflife-sidebar-main .wheeloflife-upgrade-container .wheeloflife-title a{color:var(--gray-600);text-decoration:none}.wheeloflife-sidebar-main .wheeloflife-upgrade-container .wheeloflife-title a:hover{color:var(--primary-color)}.wheeloflife-sidebar-main .wheeloflife-upgrade-area .wheeloflife-title-wrap{background:var(--primary-color);border-radius:.25rem;cursor:pointer;display:none;justify-content:center}.wheeloflife-sidebar-main .wheeloflife-upgrade-area .upgrade-icon{flex:0 0 24px;margin:0}.wheeloflife-sidebar-main .wheeloflife-upgrade-area .upgrade-icon svg path{stroke:none;fill:#fff}.wheeloflife-sidebar-main .wheeloflife-upgrade-box{background-color:var(--primary-light-color);border-radius:.25rem;color:#282828;padding:1rem}.wheeloflife-sidebar-main .wheeloflife-upgrade-box p{color:#282828!important;margin-top:0}.wheeloflife-sidebar-main .wheeloflife-upgrade-box .wheeloflife-btn{display:block;font-weight:500;margin-top:1rem;text-decoration:none}body.wol-sidebar-collapsed .wheeloflife-sidebar-main{width:85px}body.wol-sidebar-collapsed .wheeloflife-sidebar-main .wheeloflife-brand-name{opacity:0;position:absolute;visibility:hidden;width:0}body.wol-sidebar-collapsed .wheeloflife-sidebar-main .wheeloflife-btn{position:relative}body.wol-sidebar-collapsed .wheeloflife-sidebar-main .wheeloflife-btn .btn-label{background:var(--primary-light-color);border-radius:.25rem;color:var(--primary-color);display:inline-block;left:100%;margin-left:0;opacity:0;padding:.5rem 1rem;position:absolute;top:50%;transform:translateY(-50%);transition:all .3s ease;visibility:hidden}body.wol-sidebar-collapsed .wheeloflife-sidebar-main .wheeloflife-btn .btn-label:before{border:5px solid transparent;border-right:5px solid var(--primary-light-color);content:"";position:absolute;right:100%;top:50%;transform:translateY(-50%)}body.wol-sidebar-collapsed .wheeloflife-sidebar-main .wheeloflife-btn:hover .btn-label{margin-left:1rem;opacity:1;visibility:visible}body.wol-sidebar-collapsed .wheeloflife-sidebar-main .wheeloflife-upgrade-container .wheeloflife-title-wrap{position:relative}body.wol-sidebar-collapsed .wheeloflife-sidebar-main .wheeloflife-upgrade-container .wheeloflife-title-wrap a{background:var(--primary-light-color);border-radius:.25rem;display:inline-block;left:100%;margin-left:0;opacity:0;padding:.5rem 1rem;position:absolute;top:50%;transform:translateY(-50%);transition:all .3s ease;visibility:hidden}body.wol-sidebar-collapsed .wheeloflife-sidebar-main .wheeloflife-upgrade-container .wheeloflife-title-wrap a:before{border:5px solid transparent;border-right:5px solid var(--primary-light-color);content:"";position:absolute;right:100%;top:50%;transform:translateY(-50%)}body.wol-sidebar-collapsed .wheeloflife-sidebar-main .wheeloflife-upgrade-container .wheeloflife-title-wrap:hover a{margin-left:1rem;opacity:1;visibility:visible}body.wol-sidebar-collapsed .wheeloflife-sidebar-main .wheeloflife-upgrade-container .wheeloflife-upgrade-area{position:relative}body.wol-sidebar-collapsed .wheeloflife-sidebar-main .wheeloflife-upgrade-container .wheeloflife-upgrade-area .wheeloflife-title-wrap{display:flex}body.wol-sidebar-collapsed .wheeloflife-sidebar-main .wheeloflife-upgrade-container .wheeloflife-upgrade-area .wheeloflife-upgrade-box{bottom:0;left:100%;opacity:0;position:absolute;transition:all .3s ease;visibility:hidden;width:288px}body.wol-sidebar-collapsed .wheeloflife-sidebar-main .wheeloflife-upgrade-container .wheeloflife-upgrade-area .wheeloflife-upgrade-box:before{border:5px solid transparent;border-right:5px solid var(--primary-light-color);bottom:25px;content:"";position:absolute;right:100%}body.wol-sidebar-collapsed .wheeloflife-sidebar-main .wheeloflife-upgrade-container .wheeloflife-upgrade-area:hover .wheeloflife-upgrade-box{margin-left:1rem;opacity:1;visibility:visible}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeInDown{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInRight{0%{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}@keyframes popup{0%{transform:scale(0)}80%{transform:scale(1.2)}to{transform:scale(1)}}@keyframes cw-loader-spinner{0%{transform:rotate(0turn)}to{transform:rotate(1turn)}}.fadeInUp{animation:fadeInUp .5s cubic-bezier(.23,1,.32,1)}.fadeIn{animation:fadeIn .5s cubic-bezier(.23,1,.32,1)}.fadeInRight{animation:fadeInRight .5s cubic-bezier(.23,1,.32,1)}.cw-loader{display:flex}.cw-loader:after{animation:cw-loader-spinner .9s ease infinite;border:2px solid rgba(0,0,0,.2);border-radius:50%;border-top-color:#000;content:"";display:block;height:16px;margin:auto auto auto .5rem;width:16px}.wheeloflife-wheel-list-wrapper{display:flex;flex-wrap:wrap;justify-content:space-between;position:relative}.wheeloflife-wheel-list-wrapper>.wheeloflife-list-items{position:absolute;right:10px;top:0;z-index:11}.wheeloflife-wheel-list-wrapper .wheeloflife-table-wrapper{width:100%}.wheeloflife-wheel-list-wrapper .wheeloflife-table-wrapper .wheeloflife-table td a,.wheeloflife-wheel-list-wrapper .wheeloflife-table-wrapper .wheeloflife-table th a{color:inherit;cursor:pointer;display:block}.wheeloflife-wheel-list-wrapper .wheeloflife-table-wrapper .wheeloflife-table td a:hover,.wheeloflife-wheel-list-wrapper .wheeloflife-table-wrapper .wheeloflife-table th a:hover{color:var(--primary-color)}.wheeloflife-wheel-list-wrapper .wheeloflife-table-wrapper .wheeloflife-table td.wheeloflife-title-col,.wheeloflife-wheel-list-wrapper .wheeloflife-table-wrapper .wheeloflife-table th.wheeloflife-title-col{width:40%}.wheeloflife-wheel-list-wrapper .wheeloflife-table-wrapper .wheeloflife-table td.wheeloflife-shortcode-col,.wheeloflife-wheel-list-wrapper .wheeloflife-table-wrapper .wheeloflife-table th.wheeloflife-shortcode-col{width:30%}.wheeloflife-wheel-list-wrapper .wheeloflife-table-wrapper .wheeloflife-table td.wheeloflife-date-col,.wheeloflife-wheel-list-wrapper .wheeloflife-table-wrapper .wheeloflife-table th.wheeloflife-date-col{width:24%}.wheeloflife-wheel-list-wrapper .wheeloflife-table-wrapper .wheeloflife-table td.wheeloflife-status-col,.wheeloflife-wheel-list-wrapper .wheeloflife-table-wrapper .wheeloflife-table th.wheeloflife-status-col{min-width:115px}.wheeloflife-wheel-list-wrapper .wheeloflife-table-wrapper .wheeloflife-table td.wheeloflife-action-col,.wheeloflife-wheel-list-wrapper .wheeloflife-table-wrapper .wheeloflife-table th.wheeloflife-action-col{text-align:center}.wheeloflife-menu-wrap .wheeloflife-menu-list a{align-items:center;border:1px solid transparent;border-radius:.25rem;color:inherit;display:flex;opacity:.5;padding:.5rem 1rem;pointer-events:none;text-decoration:none;white-space:nowrap}.wheeloflife-menu-wrap .wheeloflife-menu-list a:link,.wheeloflife-menu-wrap .wheeloflife-menu-list a:visited{opacity:1;pointer-events:all}.wheeloflife-menu-wrap .wheeloflife-menu-list a:active,.wheeloflife-menu-wrap .wheeloflife-menu-list a:focus{border-color:var(--primary-light-color);box-shadow:0 0 5px var(--primary-light-color);color:var(--primary-color)}.wheeloflife-menu-wrap .wheeloflife-menu-list li{position:relative}.wheeloflife-menu-wrap .wheeloflife-menu-list li i{display:inline-flex;font-size:20px;margin-right:.5rem}.wheeloflife-menu-wrap .wheeloflife-menu-list li svg{height:1em;vertical-align:middle;width:1em}.wheeloflife-menu-wrap .wheeloflife-menu-list li svg circle,.wheeloflife-menu-wrap .wheeloflife-menu-list li svg path{stroke:var(--gray-500)}.wheeloflife-menu-wrap .wheeloflife-menu-list li:hover a:link,.wheeloflife-menu-wrap .wheeloflife-menu-list li:hover a:visited{color:var(--primary-color)}.wheeloflife-menu-wrap .wheeloflife-menu-list li:hover svg circle,.wheeloflife-menu-wrap .wheeloflife-menu-list li:hover svg path{stroke:var(--primary-color)}.wheeloflife-menu-wrap .wheeloflife-menu-list li.active a:link,.wheeloflife-menu-wrap .wheeloflife-menu-list li.active a:visited{background-color:var(--primary-light-color);border-color:transparent;box-shadow:none;color:var(--primary-color)}.wheeloflife-menu-wrap .wheeloflife-menu-list li.active svg{color:var(--primary-color)}.wheeloflife-menu-wrap .wheeloflife-menu-list li.active svg circle,.wheeloflife-menu-wrap .wheeloflife-menu-list li.active svg path{stroke:var(--primary-color)}body.wol-sidebar-collapsed .wheeloflife-menu-wrap .wheeloflife-menu-list li .wol-page-label{background:var(--primary-light-color);border-radius:.25rem;display:inline-block;left:100%;margin-left:0;opacity:0;padding:.5rem 1rem;position:absolute;top:50%;transform:translateY(-50%);transition:all .3s ease;visibility:hidden}body.wol-sidebar-collapsed .wheeloflife-menu-wrap .wheeloflife-menu-list li .wol-page-label:before{border:5px solid transparent;border-right:5px solid var(--primary-light-color);content:"";position:absolute;right:100%;top:50%;transform:translateY(-50%)}body.wol-sidebar-collapsed .wheeloflife-menu-wrap .wheeloflife-menu-list li a:hover .wol-page-label{margin-left:1rem;opacity:1;visibility:visible}.wheeloflife-settings-container>.wheeloflife-tabnav{position:relative}.wheeloflife-settings-container>.wheeloflife-tabnav:after{border-bottom:1px solid var(--gray-200);bottom:1.5rem;content:"";height:0;left:0;position:absolute;width:100%}.wheeloflife-settings-container .wheeloflife-social-tab .wheeloflife-field .wheeloflife-shocial-icon{width:324px}#wheeloflife__modal{background:rgba(38,41,51,.3);height:100vh;left:0;position:fixed;top:0;width:100vw;z-index:1111}.wheeloflife-modal-container{background:#fff;border-radius:.5rem;left:0;margin-left:auto;margin-right:auto;max-height:calc(100vh - 2rem);max-width:100%;position:fixed;right:0;top:100px;width:800px}.wheeloflife-modal-container:not(.modal-container-right):not(.modal-container-left){max-height:calc(100vh - 4rem);top:50%;transform:translateY(-50%)}.wheeloflife-modal-container:not(.modal-container-right):not(.modal-container-left) .wheeloflife-modal-footer{padding-top:0}.wheeloflife-modal-container.modal-container-right{border-radius:0;bottom:0;height:calc(100vh - 2rem);left:auto;right:0;top:auto}.wheeloflife-modal-container.modal-container-left{border-radius:0;bottom:0;height:calc(100vh - 2rem);left:0;right:auto;top:auto}.wheeloflife-modal-container .wheeloflife-modal-cancel{background:none;border:none;padding:0;position:absolute;right:1.5rem;top:1.5rem}.wheeloflife-modal-container .wheeloflife-field.flex-row .wheeloflife-field-label{flex:0 0 31.7%;max-width:31.7%}.wheeloflife-modal-container .wheeloflife-modal-wrapper{display:flex;flex-direction:column;height:100%;max-height:100%}.wheeloflife-modal-container .wheeloflife-modal-wrapper>:not(.wheeloflife-modal-header):not(.wheeloflife-modal-footer){flex:1;max-height:100%;overflow:auto}.wheeloflife-modal-container .wheeloflife-modal-wrapper>:not(.wheeloflife-modal-header):not(.wheeloflife-modal-footer)::-webkit-scrollbar{height:.375rem;width:.375rem}.wheeloflife-modal-container .wheeloflife-modal-wrapper>:not(.wheeloflife-modal-header):not(.wheeloflife-modal-footer)::-webkit-scrollbar-track{background-color:var(--gray-200);border-radius:.375rem;opacity:0;-webkit-transition:all .3s ease;transition:all .3s ease;visibility:hidden}.wheeloflife-modal-container .wheeloflife-modal-wrapper>:not(.wheeloflife-modal-header):not(.wheeloflife-modal-footer)::-webkit-scrollbar-thumb{background-color:var(--gray-400);border-radius:.375rem;opacity:0;-webkit-transition:all .3s ease;transition:all .3s ease;visibility:hidden}.wheeloflife-modal-container .wheeloflife-modal-wrapper>:not(.wheeloflife-modal-header):not(.wheeloflife-modal-footer):hover::-webkit-scrollbar-thumb,.wheeloflife-modal-container .wheeloflife-modal-wrapper>:not(.wheeloflife-modal-header):not(.wheeloflife-modal-footer):hover::-webkit-scrollbar-track{opacity:1;visibility:visible}.email-placeholder-modal .wheeloflife-modal-container{max-width:400px}.customizeer-modal .wheeloflife-modal-container{max-width:540px}.wheeloflife-modal-header{border-bottom:1px solid var(--gray-200);padding:1.5rem}.wheeloflife-modal-header .wheeloflife-title{font-size:1.25rem;line-height:1.6;margin:0 1.5rem 0 0}.wheeloflife-modal-footer{padding:1.5rem}.wheeloflife-modal-footer button+button{margin-left:1rem}.wheeloflife-modal-body{padding:1.5rem}.components-panel__body{border-bottom:1px solid var(--gray-200);padding:0 1.5rem}.components-panel__body .components-panel__body-title{margin:0 -1.5rem}.components-panel__body .components-panel__body-title .components-panel__body-toggle{border:none;border-radius:0;color:var(--gray-500);display:flex;flex-direction:row-reverse;font-size:16px;font-weight:500;justify-content:space-between;line-height:1.5;padding:1.5rem;text-align:left;width:100%}.components-panel__body .components-panel__body-title .components-panel__body-toggle[aria-expanded=true]{color:var(--gray-600)}.components-panel__body .components-base-control__field{margin-bottom:1rem}.components-panel__body .components-base-control__field label{color:var(--gray-600);font-family:var(--primary-font);font-size:16px;font-weight:400;line-height:1.5;margin-right:1.5rem}.components-panel__body .components-base-control__field .components-input-control__input,.components-panel__body .components-base-control__field input:not([type=radio]):not([type=checkbox]){border:1px solid var(--gray-300)!important;border-radius:.25rem!important;color:var(--gray-500);font-size:16px;height:40px;line-height:1.4;min-width:64px;padding:.5rem 1rem}.components-panel__body .components-base-control__field .components-input-control__input:focus,.components-panel__body .components-base-control__field input:not([type=radio]):not([type=checkbox]):focus{border-color:var(--primary-color)!important}.components-panel__body .components-base-control__field .components-input-control__input[type=number],.components-panel__body .components-base-control__field input[type=number]:not([type=radio]):not([type=checkbox]){padding-right:5px}.components-panel__body .components-base-control__field input.components-range-control__slider:not([type=radio]):not([type=checkbox]){height:40px}.components-panel__body .components-base-control__field .components-input-control__backdrop{opacity:0}.components-panel__body .components-base-control__field .components-base-control__label{display:block;margin-bottom:.5rem}.components-panel__body .components-base-control__field section{display:block}.components-panel__body .components-base-control__field.inline .components-base-control__label{display:inline-block;margin-bottom:0}.components-panel__body .components-base-control__field.inline section{display:inline-block}.components-panel__body .components-range-control__wrapper{margin-left:0}.components-panel__body .components-range-control__wrapper .css-10jvx6y-Rail,.components-panel__body .components-range-control__wrapper .css-1bvn3w2-Track{border-radius:.5rem;height:4px;margin-top:20px;transition:all .3s ease}.components-panel__body .components-range-control__wrapper .components-simple-tooltip{transition:all .3s ease}.components-panel__body .components-range-control__wrapper .css-10jvx6y-Rail{background:var(--gray-200)}.components-panel__body .components-range-control__wrapper .css-1bvn3w2-Track{background:var(--primary-color)}.components-panel__body .components-range-control__wrapper .css-5p7d2w-ThumbWrapper{height:16px;margin-top:13px;transition:all .3s ease;width:16px}.components-panel__body .components-range-control__wrapper .css-5p7d2w-ThumbWrapper .css-ckoo7b-Thumb,.components-panel__body .components-range-control__wrapper .css-5p7d2w-ThumbWrapper .css-ln2ltz-Thumb{background:var(--primary-color);border:none;box-shadow:0 0 5px rgba(0,0,0,.1)}.components-panel__body .wheeloflife-color-picker-container{display:inline-flex;vertical-align:middle}.components-panel__body .wheeloflife-color-picker-container .wheeloflife-color-picker-single{border:1px solid var(--gray-300);border-radius:.25rem;padding:.5rem}.components-panel__body .wheeloflife-color-picker-container .wheeloflife-color-picker-single>span{border:1px solid var(--gray-300);height:24px;width:24px}.components-panel__body .wheeloflife-color-picker-container .wheeloflife-color-picker-single>span span{height:100%;width:100%}.components-panel__body .ct-buttons-group{align-items:center;display:inline-flex;margin-top:0;vertical-align:middle}.components-panel__body .ct-buttons-group li{background:none!important;border:1px solid var(--gray-300);border-radius:.25rem!important;color:var(--gray-500);cursor:pointer;font-size:16px;font-weight:400;height:unset;line-height:1.5;margin-right:1rem;padding:.5rem 1rem;transition:all .3s ease}.components-panel__body .ct-buttons-group li.active{border-color:var(--primary-color);color:var(--primary-color)}.components-panel__body .ct-buttons-group[data-type=alignment] li{align-items:center;border:none!important;border-radius:.25rem;box-shadow:none;color:var(--gray-600);display:flex;flex:0 0 40px;font-size:20px;height:40px;justify-content:center;margin:0;padding:0;width:40px}.components-panel__body .ct-buttons-group[data-type=alignment] li.active{background:var(--gray-200)!important}.components-panel__body .ct-buttons-group[data-type=alignment] li:before{background-position:50%;background-repeat:no-repeat;background-size:100%;content:""!important;display:block;height:1em;width:1em}.components-panel__body .ct-buttons-group[data-type=alignment] li:first-child:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2720%27 height=%2711%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath fill=%27%23262933%27 d=%27M0 0h20v1H0zM0 5h10v1H0zM0 10h16v1H0z%27/%3E%3C/svg%3E")}.components-panel__body .ct-buttons-group[data-type=alignment] li:nth-child(2):before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2720%27 height=%2711%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath fill=%27%23262933%27 d=%27M0 0h20v1H0zM5 5h10v1H5zM2 10h16v1H2z%27/%3E%3C/svg%3E")}.components-panel__body .ct-buttons-group[data-type=alignment] li:nth-child(3):before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2720%27 height=%2711%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath fill=%27%23262933%27 d=%27M0 0h20v1H0zM10 5h10v1H10zM4 10h16v1H4z%27/%3E%3C/svg%3E");transform:unset}.components-panel__body .ct-option-spacing{display:flex;width:100%}.components-panel__body .ct-option-spacing input:not([type=radio]):not([type=checkbox]){min-width:unset;padding:.5rem;text-align:center}.components-panel__body .ct-option-spacing>span{flex:0 0 50px;flex:1;margin-right:0;width:40px}.components-panel__body .ct-option-spacing>span:not(:first-child) input:not([type=radio]):not([type=checkbox]){border-bottom-left-radius:0!important;border-left:0!important;border-top-left-radius:0!important}.components-panel__body .ct-option-spacing>span:not(:last-child) input:not([type=radio]):not([type=checkbox]){border-bottom-right-radius:0!important;border-top-right-radius:0!important}.components-panel__body .ct-option-spacing>span input:not([type=radio]):not([type=checkbox]):focus{border-color:var(--gray-300)!important}.components-panel__body .ct-option-spacing>span small{display:none}.components-panel__body .ct-option-spacing .ct-spacing-controls{background:none;display:flex;flex:1;margin-left:0;padding:0;position:relative}.components-panel__body .ct-option-spacing .ct-spacing-controls .ct-current-value,.components-panel__body .ct-option-spacing .ct-spacing-controls>a{align-items:center;border:1px solid var(--gray-300);border-radius:.25rem;cursor:default;display:flex;flex:1;height:40px;justify-content:center;width:40px}.components-panel__body .ct-option-spacing .ct-spacing-controls>a{border-left:0;border-radius:0;border-right:0}.components-panel__body .ct-option-spacing .ct-spacing-controls>a path{fill:var(--gray-400)}.components-panel__body .ct-option-spacing .ct-spacing-controls .ct-value-divider{display:none}.components-panel__body .ct-option-spacing .ct-spacing-controls .ct-current-value{background:var(--gray-200);border-bottom-left-radius:0;border-top-left-radius:0}.components-panel__body .ct-option-spacing .ct-spacing-controls .ct-units-list{background:#fff;border:1px solid var(--gray-300);border-radius:.25rem;display:flex;flex-wrap:wrap;left:0;margin-top:0;opacity:0;position:absolute;top:0;transition:all .3s ease;visibility:hidden;z-index:1}.components-panel__body .ct-option-spacing .ct-spacing-controls .ct-units-list:after{content:none}.components-panel__body .ct-option-spacing .ct-spacing-controls .ct-units-list li{display:flex;margin:0;padding:0}.components-panel__body .ct-option-spacing .ct-spacing-controls .ct-units-list li:not(:last-child){border-bottom:1px solid var(--gray-300)}.components-panel__body .ct-option-spacing .ct-spacing-controls .ct-units-list li span{align-items:center;cursor:default;display:flex;flex:0 0 50%;height:40px;justify-content:center;width:40px}.components-panel__body .ct-option-spacing .ct-spacing-controls .ct-units-list li span:not(:last-child){border-right:1px solid var(--gray-300)}.components-panel__body .ct-option-spacing .ct-spacing-controls.active .ct-units-list{opacity:1;visibility:visible}.components-panel__body .ct-option-spacing.linked .ct-spacing-controls>a{background:var(--gray-200);color:var(--primary-color)}.components-panel__body .ct-option-spacing.linked .ct-spacing-controls>a path{fill:var(--primary-color)}.components-panel__body section{display:inline-block;max-width:100%}.components-panel__body .rara-revert{margin-right:1rem}.components-panel__body .wheeloflife-blocks-gradient-option section{border:1px solid var(--gray-300);border-radius:.25rem;max-width:42px;padding:.5rem;vertical-align:middle}.components-panel__body .wheeloflife-blocks-gradient-option section .ct-background{height:24px;width:24px}.ct-option-modal .ct-control[data-design=inline]{align-items:center;display:flex;flex-wrap:wrap}.ct-option-modal .ct-control[data-design=inline] .components-base-control__label{margin-right:1rem}.ct-option-modal .ct-control .components-base-control__label{margin-bottom:.5rem}.ct-option-modal .ct-control .wheeloflife-color-picker-single{border:1px solid var(--gray-300);padding:.5rem}.ct-option-modal .ct-control .wheeloflife-color-picker-single>span{height:24px;width:24px}.components-custom-gradient-picker .components-custom-gradient-picker__gradient-bar{border-radius:36px;height:36px;margin-bottom:12px;margin-top:12px;padding-left:6px;padding-right:30px;width:100%}.components-custom-gradient-picker .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{position:relative}.components-custom-gradient-picker .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container .components-custom-gradient-picker__inserter .components-custom-gradient-picker__insert-point{align-items:center;background:#fff;border-radius:50%;color:#000;display:flex;height:24px;justify-content:center;padding:0;top:6px;width:24px}.components-custom-gradient-picker .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container .components-custom-gradient-picker__inserter .components-custom-gradient-picker__insert-point:hover{border:none;color:inherit}.components-custom-gradient-picker .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border:2px solid #fff;border-radius:50%;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff;height:24px;padding:0;position:absolute;top:6px;width:24px}.components-custom-gradient-picker .components-input-control__container{margin-left:0}[class*=wheeloflife-tooltip]{-webkit-font-smoothing:antialiased;align-items:center;background:#363f42;border-radius:3px;color:#fff;display:flex;font-size:12px;font-style:italic;font-weight:400;height:26px;letter-spacing:normal;opacity:0;padding:0 8px;pointer-events:none;position:absolute;text-transform:none;transition:opacity .2s cubic-bezier(.455,.03,.515,.955),transform .2s cubic-bezier(.455,.03,.515,.955),visibility .2s cubic-bezier(.455,.03,.515,.955);-webkit-user-select:none;-moz-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;width:auto;z-index:200}[class*=wheeloflife-tooltip]:after,[class*=wheeloflife-tooltip]:before{box-sizing:border-box;content:"";position:absolute}[class*=wheeloflife-tooltip][class*=-top]:before{bottom:-10px;height:10px;left:0;width:100%}[class*=wheeloflife-tooltip][class*=-top]:after{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #363f42;bottom:-5px;height:5px;left:0;margin:0 auto;right:0;width:10px}.wheeloflife-color-picker-container{align-items:center;display:inline-flex;height:100%}.wheeloflife-color-picker-container .wheeloflife-color-picker-single{border:1px solid rgba(var(--font-color-rgb),.1);border-radius:3px;padding:10px}.wheeloflife-color-picker-single>span{border-radius:3px;height:30px;width:30px}.wheeloflife-color-picker-skins li.active:before{background:rgba(0,0,0,.07)}.wheeloflife-option-modal{background:#fff;border-radius:6px;box-shadow:var(--option-modal-shadown,0 15px 15px rgba(0,0,0,.08));box-sizing:border-box;position:fixed;right:var(--modal-x-offset);width:var(--option-modal-width,295px);z-index:100000}.wheeloflife-option-modal:before{border-style:solid;content:"";left:var(--option-modal-arrow-position,calc(100% - 55px));position:absolute}.wheeloflife-option-modal[data-position=bottom]{top:calc(var(--modal-y-offset) + var(--modal-y-offset-plus, 13px));transform-origin:center top}.wheeloflife-option-modal[data-position=bottom]:before{border-color:transparent transparent #fff;border-width:0 6px 7px;top:-7px}.wheeloflife-option-modal[data-position=top]{bottom:calc(var(--modal-y-offset) + var(--modal-y-offset-plus, 13px));transform-origin:center bottom}.wheeloflife-option-modal[data-position=top]:before{border-color:#fff transparent transparent;border-width:7px 6px 0;bottom:-7px}:root{--accentColor:#307ac9;--accentColorHover:#0071a1;--optionBorderColor:#ddd}.expanded .wp-full-overlay-footer,.wp-full-overlay-sidebar .wp-full-overlay-header{background-color:rgba(86,103,121,.149)}#customize-controls .wp-full-overlay-sidebar-content{scrollbar-color:rgba(86,103,121,.502) rgba(86,103,121,.149);scrollbar-width:thin}#customize-controls .wp-full-overlay-sidebar-content::-webkit-scrollbar{background-color:#fff;width:8px}#customize-controls .wp-full-overlay-sidebar-content::-webkit-scrollbar-track{background-color:rgba(86,103,121,.15)}#customize-controls .wp-full-overlay-sidebar-content::-webkit-scrollbar-thumb{background-color:rgba(86,103,121,.5);border-radius:16px}.wp-full-overlay-sidebar{background:#fff}.ct-control,.ct-controls-group{position:relative}.ct-control>header:not(:empty),.ct-controls-group>header:not(:empty){display:flex;justify-content:space-between;position:relative}.ct-control>header label,.ct-controls-group>header label{color:#566779;cursor:default;font-size:15px;font-weight:400;letter-spacing:.1px;line-height:1.5;margin-right:5px}.ct-control[data-design=inline],.ct-controls-group[data-design=inline]{display:flex;flex-wrap:wrap}.ct-control[data-design=inline]>header,.ct-controls-group[data-design=inline]>header{flex:var(--flex,1 1 auto)}.ct-control[data-design=inline]>header label,.ct-controls-group[data-design=inline]>header label{align-items:center;display:flex;max-width:130px}.ct-control[data-design*=block]>header:not(:empty),.ct-controls-group[data-design*=block]>header:not(:empty){margin-bottom:18px}.ct-options-container{display:block;position:relative}.ct-options-container .customize-control-ct-options{display:block!important}.ct-options-container .ct-control{padding:20px 11px}.ct-options-container .ct-control:after{background:rgba(5,16,26,.05);bottom:0;content:"";display:block;height:1px;left:auto;position:absolute;right:auto;width:calc(100% - 22px)}.ct-panel.ct-click-allowed{cursor:pointer}.ct-panel.ct-click-allowed:before{content:"";height:60px;left:-12px;position:absolute;top:0;width:calc(100% + 24px)}.ct-panel.ct-click-allowed header>label{cursor:pointer}.ct-panel.ct-click-allowed .rara-customizer-panel-option button{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .2s ease .2s,transform .2s ease .2s}.ct-panel[data-panel=only-arrow] .rara-customizer-panel-option button{right:-10px}.rara-customizer-panel-option{cursor:pointer;min-height:20px;position:relative}.rara-customizer-panel-option button{align-items:center;background:transparent;border:none;color:#566779;cursor:pointer;display:flex;height:20px;justify-content:center;opacity:0;padding:0;pointer-events:none;position:absolute;right:-10px;top:calc(50% - 10px);width:25px}.rara-customizer-panel-option button:after{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:inherit;content:"";font-family:dashicons;font-size:15px;height:15px;width:15px}.rara-customizer-panel-option button:focus{outline:none}.rara-customizer-panel-option .ct-option-switch+button{transform:translate3d(-7px,0,0);transition:opacity 0s ease 0s,transform 0s ease 0s}.ct-panel-open{height:100%!important;overflow-y:hidden!important;transform:translateX(-100%)!important}.ct-option-switch{border:2px solid #566779;border-radius:100px;box-sizing:border-box;cursor:pointer;height:20px;margin-left:auto;margin-right:15px;padding:2px;position:relative;transition:border-color .15s cubic-bezier(.4,0,.2,1);width:40px}.ct-option-switch>span{background:#566779;border-radius:inherit;display:flex;height:12px;transform:translateZ(0);transition:background .15s cubic-bezier(.4,0,.2,1),transform .15s cubic-bezier(.4,0,.2,1);width:12px}.ct-option-switch.ct-active{background:#307ac9;border-color:#307ac9}.ct-option-switch.ct-active span{background:#fff;transform:translate3d(20px,0,0)}.rara-customizer-panel{border-bottom:1px solid #ddd;border-top:1px solid #ddd;bottom:0;left:0;overflow-y:auto;position:absolute;right:0;top:0;z-index:99}.customize-panel-actions{background:#fff;border-bottom:1px solid #ddd;display:flex}.customize-panel-actions button{background:#fff;border:none;border-left:4px solid #fff;border-right:1px solid #ddd;cursor:pointer;padding:0 24px 0 0;width:48px}.customize-panel-actions button:before{content:"";font:normal 20px/48px dashicons;left:9px;position:relative}.customize-panel-actions button:focus{outline:none}.customize-panel-actions h3{color:#566779;display:block;font-size:20px!important;font-weight:200;line-height:26px;margin:0;overflow:hidden;padding:10px 10px 12px 14px;text-overflow:ellipsis;white-space:nowrap;width:100%}.customize-panel-actions h3 span{display:block;font-size:13px;font-weight:400;overflow:hidden}.customizer-panel-content{margin-top:20px;padding:0 12px 30px}.rara-revert{-webkit-font-smoothing:antialiased;align-items:center;background:transparent;border:none;display:flex;font-family:dashicons;justify-content:center;padding:0}.rara-revert:before{content:"";transform:rotate(45deg);transition:transform .3s ease}.rara-revert:hover:before{transform:rotate(-45deg)}.rara-revert:focus{outline:none}.rara-revert:not([disabled]){cursor:pointer}.ct-control .rara-revert{color:#0073aa;font-size:10px;height:18px;left:0;opacity:0;position:absolute;top:0;transform:translate3d(-15px,0,0);transition:opacity .2s ease,transform .2s ease;width:18px}.ct-control:hover .rara-revert:not([disabled]){opacity:1;transform:translate3d(-20px,0,0)}.ct-control[data-design=inline] .rara-revert{top:calc(50% - 9px)}#customize-header-actions .rara-revert{border-right:1px solid #ddd;box-sizing:content-box;color:#444;font-size:13px;height:45px;margin-left:33px;width:48px}#customize-header-actions .rara-revert:before{position:relative;top:1px}#customize-header-actions .rara-revert:hover{background:#fff;color:#0073aa}.ct-dashboard-overlay-open #customize-header-actions .rara-revert:before{transform:rotate(-45deg)}.ct-options-container .ct-control-options{align-self:center;display:flex}.ct-responsive-controls{align-items:center;display:flex;margin:0}.ct-responsive-controls li{align-items:center;color:var(--color);cursor:pointer;display:flex;justify-content:center}.ct-responsive-controls li.active{--color:#007bff}.ct-responsive-controls li:not(.active){--color:#05101a}.ct-responsive-controls li:not(.active):hover{--color:#007bff}.ct-responsive-controls li.ct-desktop,.ct-responsive-controls li.ct-tablet{margin-right:10px}.ct-devices li{margin-bottom:0}.ct-devices li:before{border-radius:2px;box-sizing:border-box;content:""}.ct-devices li.ct-desktop{flex-direction:column}.ct-devices li.ct-desktop:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2717%27 height=%2717%27 viewBox=%270 0 21 21%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Crect x=%27.5%27 y=%27.625%27 width=%2720%27 height=%2714.75%27 rx=%271.5%27 stroke=%27%23307AC9%27/%3E%3Cpath stroke=%27%23307AC9%27 stroke-width=%27.5%27 d=%27M10.25 16.125h.5v4.5h-.5z%27/%3E%3Cpath fill=%27%23307AC9%27 d=%27M6 20.875v-1h9v1z%27/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2717%27 height=%2717%27 viewBox=%270 0 21 21%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Crect x=%27.5%27 y=%27.625%27 width=%2720%27 height=%2714.75%27 rx=%271.5%27 stroke=%27%23307AC9%27/%3E%3Cpath stroke=%27%23307AC9%27 stroke-width=%27.5%27 d=%27M10.25 16.125h.5v4.5h-.5z%27/%3E%3Cpath fill=%27%23307AC9%27 d=%27M6 20.875v-1h9v1z%27/%3E%3C/svg%3E")}.ct-devices li.ct-desktop:before,.ct-devices li.ct-tablet:before{background:currentColor;content:"";display:block;height:17px;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:17px}.ct-devices li.ct-tablet:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2717%27 height=%2717%27 viewBox=%270 0 18 21%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cg opacity=%27.8%27%3E%3Crect x=%27.5%27 y=%2720.5%27 width=%2720%27 height=%2717%27 rx=%271.5%27 transform=%27rotate%28-90 .5 20.5%29%27 stroke=%27%2305101A%27/%3E%3Crect opacity=%27.8%27 x=%277%27 y=%2718%27 width=%271%27 height=%274%27 rx=%27.5%27 transform=%27rotate%28-90 7 18%29%27 fill=%27%2305101A%27/%3E%3C/g%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2717%27 height=%2717%27 viewBox=%270 0 18 21%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cg opacity=%27.8%27%3E%3Crect x=%27.5%27 y=%2720.5%27 width=%2720%27 height=%2717%27 rx=%271.5%27 transform=%27rotate%28-90 .5 20.5%29%27 stroke=%27%2305101A%27/%3E%3Crect opacity=%27.8%27 x=%277%27 y=%2718%27 width=%271%27 height=%274%27 rx=%27.5%27 transform=%27rotate%28-90 7 18%29%27 fill=%27%2305101A%27/%3E%3C/g%3E%3C/svg%3E")}.ct-devices li.ct-mobile:before{background:currentColor;content:"";display:block;height:17px;mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2717%27 height=%2717%27 viewBox=%270 0 12 21%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Crect opacity=%27.8%27 x=%27.5%27 y=%2720.5%27 width=%2720%27 height=%2711%27 rx=%271.5%27 transform=%27rotate%28-90 .5 20.5%29%27 stroke=%27%2305101A%27/%3E%3Crect opacity=%27.8%27 x=%274%27 y=%2718%27 width=%271%27 height=%274%27 rx=%27.5%27 transform=%27rotate%28-90 4 18%29%27 fill=%27%2305101A%27/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2717%27 height=%2717%27 viewBox=%270 0 12 21%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Crect opacity=%27.8%27 x=%27.5%27 y=%2720.5%27 width=%2720%27 height=%2711%27 rx=%271.5%27 transform=%27rotate%28-90 .5 20.5%29%27 stroke=%27%2305101A%27/%3E%3Crect opacity=%27.8%27 x=%274%27 y=%2718%27 width=%271%27 height=%274%27 rx=%27.5%27 transform=%27rotate%28-90 4 18%29%27 fill=%27%2305101A%27/%3E%3C/svg%3E");-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:17px}.ab-slider{border-radius:2px;cursor:pointer;height:18px;margin-right:14px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.ab-slider:before{background:rgba(48,122,201,.2);border-radius:inherit;content:"";height:2px;left:0;position:absolute;top:calc(50% - 1px);width:calc(100% + 14px)}.ab-slider span{background:var(--accentColor);border-radius:100%;bottom:0;height:14px;left:var(--position);margin:auto 0;position:absolute;top:0;transition:box-shadow .1s ease,background .1s ease;width:14px}.ab-slider span:active,.ab-slider span:focus,.ab-slider span:hover{box-shadow:0 0 0 2px var(--accentColor),0 8px 15px 0 rgba(0,0,0,.25)}.ab-slider span:active{background:#fff}.ab-slider div{background:var(--accentColor);border-radius:inherit;height:2px;left:0;padding-right:7px;position:absolute;top:calc(50% - 1px)}.ct-option-slider{align-items:center;display:flex}.ct-option-slider .ab-slider{flex:1 1 auto}.ct-value-changer{align-items:center;background:rgba(48,122,201,.08);border:none;border-radius:4px;box-sizing:border-box;color:#566779;display:flex;height:40px;min-width:85px;padding:10px;transition:background .1s ease,border-color .1s ease}.ct-value-changer input[type=number]{--width:38px;--padding:2px;--margin:-1px -1px -1px -2px;--fontSize:11px;--borderColor:transparent;--background:transparent;-moz-appearance:textfield;position:relative;text-align:center;z-index:1}.ct-value-changer input[type=number]::-webkit-inner-spin-button,.ct-value-changer input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.ct-value-changer:not(.no-unit-list) .ct-current-value{cursor:pointer}.ct-value-changer:not(.no-unit-list) .ct-current-value:hover{color:var(--accentColor)}.ct-value-divider{border-left:1px solid #566779;height:14px;opacity:.5}.ct-current-value{align-items:center;display:flex;font-size:12px;font-weight:400;height:100%;justify-content:center;letter-spacing:1px;line-height:normal;text-transform:uppercase;transition:color .1s ease,font-weight .1s ease;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:35px}.ct-value-changer{position:relative}.ct-value-changer ul{background:#fff;border-radius:3px;box-shadow:var(--option-modal-shadown,0 15px 15px rgba(0,0,0,.08));box-sizing:border-box;display:flex;flex-direction:column;left:-1px;margin:0;opacity:0;padding:2px;position:absolute;top:-1px;transform:scale3d(.95,.95,1);transform-origin:center top;transition:opacity .1s ease,visibility .1s ease,transform .1s ease-out;visibility:hidden;width:calc(100% + 2px);z-index:3}.ct-value-changer ul li{display:flex;justify-content:space-between}.ct-value-changer ul li:not(:last-child){border-bottom:1px solid #eee;margin-bottom:2px;padding-bottom:2px}.ct-value-changer ul li:last-child{margin-bottom:0}.ct-value-changer ul li span{align-items:center;border-radius:2px;color:#566779;cursor:pointer;display:flex;font-size:12px;font-weight:700;height:26px;justify-content:center;letter-spacing:.06em;text-align:center;text-transform:uppercase}.ct-value-changer ul li span:first-child{width:calc(50% - 3px)}.ct-value-changer ul li span:last-child{width:calc(50% - 2px)}.ct-value-changer ul li span:hover{background:var(--accentColor);color:#fff}.ct-value-changer ul:after{border-left:1px solid #eee;content:"";height:calc(100% - 6px);left:0;margin:0 auto;position:absolute;right:0;top:3px;width:1px}.ct-value-changer.active{background:transparent}.ct-value-changer.active ul{opacity:1;transform:scaleX(1);visibility:visible}.ab-slider-input{position:relative}.ab-slider-input input{margin:0;position:relative;text-align:center;width:100%;z-index:2}.ct-option-slider .ab-slider-input{margin-left:7%}.ct-option-slider .ab-slider-input input{width:45px}.ct-option-spacing input[type=number],.ct-option-spacing input[type=text]{border:1px solid rgba(5,16,26,.2)!important}[class*=ct-option] input[type=number],[class*=ct-option] input[type=text]{--fontSize:14px;background-color:var(--background,#fff);border:none;border-radius:0!important;box-shadow:0 0 0 0 transparent;color:#566779;font-size:var(--fontSize)!important;height:40px;line-height:normal;margin:var(--margin,0)!important;min-height:auto;padding:var(--padding,3px 8px)!important;transition:box-shadow .1s linear,background .1s linear,border-radius .1s linear,border-color .1s linear;width:var(--width,100%)!important}[class*=ct-option] input[type=number]::-moz-placeholder,[class*=ct-option] input[type=text]::-moz-placeholder{opacity:.5}[class*=ct-option] input[type=number]::placeholder,[class*=ct-option] input[type=text]::placeholder{opacity:.5}.ct-options-container [data-design=inline] .ct-option-input,.ct-options-container [data-design=inline] .ct-select-input{max-width:var(--select-input-width,130px)}.ct-select-input{position:relative;width:100%}.ct-select-input input{align-items:center;border:none;border-radius:4px;color:#566779;cursor:pointer;display:flex;font-size:14px;height:40px;margin:0;padding:10px;text-overflow:ellipsis;transition:box-shadow .1s linear,border-color .1s linear;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:inherit}.ct-select-input input:focus{border-color:var(--accentColor);box-shadow:0 0 0 1px var(--accentColor);outline:none}.ct-select-input input::-moz-placeholder{line-height:26px}.ct-select-input input[readonly]{background-color:rgba(48,122,201,.08)}.ct-select-input input:hover,.ct-select-input[aria-expanded=true] input{border-color:#307ac9}.ct-select-input[aria-expanded=true]:after{transform:rotate(90deg)}.ct-select-input:after{content:"";content:"";font:400 10px/10px dashicons;height:10px;pointer-events:none;position:absolute;right:8px;top:calc(50% - 5px);transform:rotate(-90deg);width:10px}.ct-select-input:before{height:0;position:absolute;visibility:hidden;width:0}.ct-options-container .ct-option-description{color:#566779;flex:0 0 100%;font-size:14px;font-style:italic;line-height:1.5;margin:10px 0 0;opacity:.9;transition:opacity .1s ease}.ct-options-container .ct-option-description a{color:#5081f5;text-decoration:none;transition:color .1s ease}.ct-options-container .ct-option-description a:hover{color:var(--accentColor);text-decoration:underline}.ct-options-container .ct-title h3{color:#484f56;font-size:13px!important;font-weight:600;margin:0}.ct-options-container .ct-title:not(:first-child){border-top:1px solid var(--optionBorderColor);padding-top:var(--title-option-vertical-spacing,30px)}.ct-options-container .ct-title[data-type*=simple]{box-sizing:border-box;margin-left:-12px;margin-right:-12px;margin-top:var(--title-option-vertical-spacing,30px);padding-left:26px;padding-right:26px;width:calc(100% + 24px)}.ct-options-container .ct-title[data-type*=simple-small]{margin-left:14px;margin-right:14px;padding-left:0;padding-right:0;width:calc(100% - 24px)}.ct-options-container .ct-title[data-type*=no-border]{border-top:0;padding-top:0}.ct-options-container .ct-title[data-type*=menu-location]{border-top:none;box-sizing:border-box;margin-left:-12px;margin-right:-12px;margin-top:21px;padding:0 26px;width:calc(100% + 24px)}.ct-options-container .ct-title[data-type*=menu-location] h3{background:hsla(0,0%,100%,.5);border:1px solid #cecece;border-radius:3px;padding:10px}.ct-options-container .ct-control:hover .ct-option-description,.ct-options-container .ct-title:hover .ct-option-description{opacity:1}.ct-options-container .ct-linked,.ct-options-container .ct-separated{background:transparent;border:none;color:#000;cursor:pointer;height:15px;opacity:.2;padding:0;transition:opacity .1s ease,color .1s ease;width:15px}.ct-options-container .ct-linked svg,.ct-options-container .ct-separated svg{fill:currentColor}.ct-options-container .ct-linked:focus,.ct-options-container .ct-separated:focus{outline:none}.ct-options-container .ct-linked:hover,.ct-options-container .ct-separated:hover{opacity:.4}.ct-options-container .ct-linked.active,.ct-options-container .ct-separated.active{color:#0e8ecc;opacity:1}.ct-options-container .ct-linked{margin-left:10px}.ct-options-container .ct-layer{box-shadow:0 1px 1px rgba(0,0,0,.02)}.ct-options-container [data-label=heading-label] header>label{color:#484f56;font-size:13px;font-weight:600}.ct-options-container .ct-disabled-notification{align-items:center;background:#fff;border-left:2px solid rgba(14,142,204,.8);display:flex;font-size:12px;min-height:28px;padding:8px 10px 8px 12px}.ct-options-container .ct-notification{margin-top:20px;padding:0 14px}.ct-divider:before{background:var(--optionBorderColor);content:"";display:block;height:1px}.ct-divider:not([data-type]){margin:30px 0}.ct-divider:not([data-type]):before{margin:0 -12px;width:calc(100% + 24px)}.ct-divider[data-type=full-small]{margin:20px 0}.ct-divider[data-type=full-small]:before{margin:0 -12px;width:calc(100% + 24px)}.ct-divider[data-type=small]{margin:25px 0}.ct-divider[data-type=small]:before{margin:0 12px;opacity:.8;width:calc(100% - 24px)}.wp-customizer .ct-option-modal{left:12px}.ct-reset-styles{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;padding:initial}.ct-panel.ct-click-allowed:hover:before{background:hsla(0,0%,100%,.7)}.customizer-panel-content>li:first-child{margin-top:30px}.customizer-panel-content>li:first-child.customize-control-ct-title{border-top:none!important;margin-top:0}.ct-option-select{display:flex;position:relative;width:210px}.ct-select-dropdown{background:#fff;border-radius:3px;box-shadow:0 10px 15px rgba(0,0,0,.08),0 0 1px 1px rgba(0,0,0,.02);box-sizing:border-box;color:#566779;font-size:12px;line-height:1.5;max-height:228px;overflow-y:scroll;right:var(--modal-x-offset);width:var(--x-select-dropdown-width,100%);z-index:999999}.ct-select-dropdown[data-position=bottom]{top:calc(var(--modal-y-offset) + var(--modal-y-offset-plus, 7px))}.ct-select-dropdown[data-position=top]{bottom:calc(var(--modal-y-offset) + var(--modal-y-offset-plus, 7px))}.ct-select-dropdown.ct-fixed{--x-select-dropdown-width:250px;position:fixed}.ct-select-dropdown:not(.ct-fixed){margin-bottom:20px;margin-top:7px;position:absolute;right:var(--x-select-dropdown-right,initial);top:100%}.ct-select-dropdown .ct-select-dropdown-group,.ct-select-dropdown .ct-select-dropdown-item,.ct-select-dropdown .ct-select-no-results{align-items:center;border-top:1px solid #eee;box-sizing:border-box;display:flex;margin:-1px 0 0;min-height:38px;padding:5px 8px!important;text-align:left;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ct-select-dropdown .ct-select-dropdown-item{cursor:pointer;overflow:hidden;position:relative}.ct-select-dropdown .ct-select-dropdown-item.selected{color:var(--accentColor);font-weight:500}.ct-select-dropdown .ct-select-dropdown-item.selected:after{content:"";font-family:dashicons;font-size:13px;position:absolute;right:6px;top:10px}.ct-select-dropdown .ct-select-dropdown-group{background:#f7f7f7;font-size:12px;font-weight:600}.ct-select-dropdown .ct-select-dropdown-group~.ct-select-dropdown-item{padding-left:20px!important}.ct-select-dropdown .ct-select-no-results{border-bottom:none}.ct-layers{list-style:none;margin:0;padding:0}.ct-layers:not(:empty)+button{margin-top:20px}.ct-layer{background:#fff;box-shadow:0 1px 1px rgba(0,0,0,.04);list-style:none;z-index:9999999}.ct-layer:not(:last-child){margin-bottom:10px}.ct-layer.ct-disabled{opacity:.6}.ct-layer.ct-disabled:hover{opacity:.8}.ct-layer.ct-disabled .ct-layer-controls .ct-visibility:before{opacity:1}.ct-layer.ct-disabled .ct-layer-controls .ct-toggle{pointer-events:none}.ct-layer.ct-disabled .ct-layer-content{display:none}.ct-layer-controls{border:1px solid var(--optionBorderColor);box-sizing:border-box;display:flex;height:40px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ct-layer-controls button{align-items:center;background:transparent;border:none;box-shadow:none;color:#72777c;cursor:pointer;display:flex;flex:0 0 40px;height:100%;justify-content:center;padding:0;width:40px}.ct-layer-controls button svg{fill:currentColor}.ct-layer-controls button.ct-remove,.ct-layer-controls button.ct-toggle{-webkit-font-smoothing:antialiased;font:400 16px dashicons}.ct-layer-controls button.ct-toggle:before{content:""}.ct-layer-controls button.ct-remove:before{content:""}.ct-layer-controls button.ct-remove:hover:before{color:#dd4b39}.ct-layer-controls button.ct-clone:hover .wheeloflife-tooltip-top{opacity:1;transform:translate3d(0,-42px,0);visibility:visible}.ct-layer-controls button.ct-visibility{position:relative}.ct-layer-controls button.ct-visibility:before{background:#656565;border-radius:5px;box-shadow:0 0 0 1px #fff;content:"";height:2px;opacity:0;position:absolute;transform:rotate(-45deg);transition:opacity .1s ease;width:18px}.ct-layer-controls button.ct-visibility:hover:before{opacity:1}.ct-layer-controls button:focus{outline:none}.ct-layer-controls span{align-items:center;cursor:move;display:flex;flex:1 1 auto;font-size:12px;font-weight:600;padding:0 15px}.ct-layer-controls>:not(:last-child){border-right:1px solid var(--optionBorderColor)}.ct-layer-content{border-top:none!important;display:flex;flex-direction:column}.ct-layer-content:not(:empty){border:1px solid var(--optionBorderColor)}.ct-layer-content>:not(:empty){margin-top:17px!important;padding:var(--layer-content-padding,0 17px 17px 17px)!important}.ct-layer-content>:not(:empty):not(:last-child){border-bottom:1px solid var(--optionBorderColor)}.ct-add-layer-controls{display:flex;padding-bottom:10px}.ct-add-layer-controls .ct-select-input{max-width:100%}.ct-add-layer-controls button{margin-left:10px!important;padding:0 8px 1px!important}.ct-inner-layer{--layer-content-padding:0 15px 20px 15px}.ct-inner-layer .ct-layer-controls{height:34px}.ct-inner-layer .ct-layer-controls button{flex:0 0 33px;width:33px}.ct-inner-layer .ct-layer-controls span{font-size:11px;font-weight:500;padding:0 10px}.ct-inner-layer .ct-layer-controls .ct-visibility svg{height:13px;width:13px}.ct-inner-layer .ct-layer-controls .ct-visibility:before{width:15px}.ct-option-slider [class*=placement]{display:flex;flex:0 0 15px;margin-right:5%}.ct-option-slider [class*=placement] .shape{fill:#000;opacity:.15}.ct-option-slider [class*=placement] .shape-active{fill:#0073aa}.ct-option-slider .placement-right svg{transform:rotate(90deg)}.ct-option-slider .placement-bottom svg{transform:rotate(180deg)}.ct-option-slider .placement-left svg{transform:rotate(270deg)}[data-steps] div{display:none}[data-steps] section{align-items:center;bottom:-7px;display:flex;height:5px;justify-content:space-between;left:0;opacity:.5;pointer-events:none;position:absolute;width:calc(100% + 14px)}[data-steps] section i{align-items:center;display:flex;font-style:normal;height:5px;justify-content:center;position:relative;width:5px}[data-steps] section i:before{background:currentColor;content:"";height:1px;position:absolute;width:inherit}[data-steps] section i.zero:before{transform:rotate(90deg)}[data-steps] section i.plus:after{background:currentColor;content:"";height:inherit;position:absolute;width:1px}[data-steps] section.positive .minus{display:none}[data-steps] section.positive .zero:before{left:-2px}input[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:2px solid #c3c7ca;box-shadow:none;flex:0 0 16px;height:16px;margin:0 8px 0 0;width:16px}input[type=radio]:checked{background:var(--accentColor);border-color:var(--accentColor)}input[type=radio]:checked:before{background:#fff!important;content:"";height:6px;margin:3px;width:6px}label:hover input[type=radio]:not(:checked){border-color:var(--accentColor)}.ct-radio-option{display:flex;flex-wrap:wrap;margin:0}.ct-radio-option label{align-items:center;display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ct-radio-option:not([data-inline]):not([data-columns]) label:not(:last-child){margin-bottom:10px}.ct-radio-option[data-inline]{display:flex;flex-wrap:wrap;margin-top:-10px}.ct-radio-option[data-inline] label{padding-top:10px}.ct-radio-option[data-inline] label:not(:last-child){margin-right:15px}.ct-radio-option[data-columns="2"]{grid-column-gap:15px;grid-row-gap:15px;display:grid;grid-template-columns:repeat(2,1fr)}.ct-radio-option[data-columns="3"]{grid-column-gap:15px;grid-row-gap:15px;display:grid;grid-template-columns:repeat(3,1fr)}.ct-radio-option[data-radio-text=small] li{font-size:12px}.ct-radio-option[data-type*=alignment] li{font-family:dashicons;font-size:16px}.ct-radio-option[data-type*=alignment] li:first-child:before{content:""}.ct-radio-option[data-type*=alignment] li:nth-child(2):before{content:""}.ct-radio-option[data-type*=alignment] li:last-child:before{content:"";transform:rotate(180deg)}.ct-radio-option[data-type=vertical-alignment] li:before{transform:rotate(90deg)}.ct-radio-option[data-type=vertical-alignment] li:last-child:before{transform:rotate(-90deg)}.ct-radio-option[data-type=repeat] li:not(.active){color:#5c5c5c}.ct-radio-option[data-type=repeat] li svg{fill:currentColor;height:13px;width:13px}.ct-option-checkbox label{align-items:center;display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ct-option-checkbox label:hover input:not(:checked){border-color:#c3cacf}.ct-option-checkbox input[type=checkbox]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:hsla(0,0%,100%,.2);border:2px solid #d5dbde;border-radius:2px;box-shadow:none;box-sizing:border-box;flex:0 0 16px;height:16px;margin:0 8px 0 0;transition:none;width:16px}.ct-option-checkbox input[type=checkbox]:checked{background:var(--accentColor);border-color:var(--accentColor)}.ct-option-checkbox input[type=checkbox]:checked:before{align-items:center;color:#fff!important;content:"";display:flex;font-family:dashicons;font-size:15px;height:16px;justify-content:center;margin:-2px 0 0 -2px;width:16px}.ct-option-checkbox[data-columns]{grid-row-gap:15px;display:grid;grid-template-columns:repeat(2,1fr)}.ct-option-checkbox[data-columns]:not([data-columns*=no-gap]){grid-column-gap:10px}.ct-option-number{align-items:center;display:flex;height:30px;position:relative;width:var(--width,100px)}.ct-option-number[data-width=full]{width:100%}.ct-option-number[data-position=right]{margin-left:auto}.ct-option-number input{--padding:3px 30px;text-align:center}.ct-option-number>a{color:inherit;height:calc(100% - 2px);position:absolute;top:1px;width:30px}.ct-option-number>a:after,.ct-option-number>a:before{background:currentColor;bottom:0;content:"";height:1px;left:0;margin:auto;opacity:.8;position:absolute;right:0;top:0;transition:background .1s linear,opacity .1s linear;width:8px}.ct-option-number>a.ct-minus{border-bottom-left-radius:2px;border-top-left-radius:2px;left:1px}.ct-option-number>a.ct-minus:after{display:none}.ct-option-number>a.ct-plus{border-bottom-right-radius:2px;border-top-right-radius:2px;right:1px}.ct-option-number>a.ct-plus:after{transform:rotate(90deg)}.ct-option-number>a:not(.ct-disabled){cursor:pointer}.ct-option-number>a:not(.ct-disabled):hover{background:var(--accentColor);color:#fff;opacity:1}.ct-option-number>a.ct-disabled{opacity:.4}.ct-option-number>a:hover~input{--borderColor:var(--accentColor)!important}.ct-option-number input[type=text]{border:var(--borderWidth,1px) solid var(--borderColor,#ddd)!important;height:30px!important}.ct-image-picker{grid-column-gap:var(--column-gap,16px);grid-row-gap:var(--row-gap,16px);display:grid;grid-template-columns:var(--grid-columns,repeat(2,1fr))}.ct-image-picker[data-columns="3"]{--grid-columns:repeat(3,1fr);--column-gap:16px;--row-gap:16px}.ct-image-picker[data-columns="4"]{--grid-columns:repeat(4,1fr);--column-gap:12px}.ct-image-picker li{background:rgba(48,122,201,.08);border:2px solid transparent;border-radius:4px;cursor:pointer;margin:0;position:relative;transition:background .15s ease,box-shadow .15s ease}.ct-image-picker li,.ct-image-picker li span{align-items:center;display:flex;flex-direction:column}.ct-image-picker li span{justify-content:center;min-height:inherit}.ct-image-picker li.active span svg{fill:#f6f7f8;border-radius:5px}.ct-image-picker li span svg{fill:#fff;border-radius:5px}.ct-image-picker li:hover{border:2px solid #307ac9}.ct-image-picker li.active{background:transparent;border:2px solid #307ac9;box-shadow:0 5px 15px 0 rgba(0,0,0,.05)}.ct-image-picker li>:first-child{height:100%;left:0;position:absolute;top:0;width:100%}.ct-image-picker li:before{content:"";height:0;padding:60.667% 0;width:100%}.ct-image-picker[data-ratio="2:1"] li:before{--ratio:62%}.ct-image-picker[data-state=sync] li:first-child{position:relative}.ct-image-picker[data-state=sync] li:first-child:after{align-items:center;animation:rotation 3.5s linear infinite;animation-play-state:paused;content:"";display:flex;height:25px;justify-content:center;position:absolute;top:calc(50% - 5px);width:25px;will-change:transform}.ct-image-picker[data-state=sync] li:first-child.active:after{animation-play-state:running}@keyframes rotation{0%{transform:rotate(0deg)}to{transform:rotate(359deg)}}.ct-image-picker li:hover .wheeloflife-tooltip-top{opacity:1;transform:translate3d(0,-40px,0);visibility:visible}.ct-option-spacing{align-items:flex-start;display:flex}.ct-option-spacing>span{margin-right:6px}.ct-option-spacing>span input{position:relative;text-align:center}.ct-option-spacing>span input.inactive{background:hsla(0,0%,100%,.8);color:rgba(50,55,60,.5);pointer-events:none}.ct-option-spacing>span input:focus+small{color:rgba(85,93,102,.8)}.ct-option-spacing>span small{color:#566779;display:block;font-size:9px;font-weight:500;line-height:normal;margin-top:5px;text-align:center;text-transform:uppercase}.ct-option-spacing .ct-spacing-controls{margin-left:4px}.ct-option-spacing .ct-spacing-controls a{align-items:center;color:#566779;cursor:pointer;display:flex;height:100%;justify-content:center;width:35px}.ct-option-spacing .ct-spacing-controls a:hover{color:var(--accentColor)}.ct-option-spacing .ct-spacing-controls a svg{fill:currentColor}.ct-option-border{align-items:center;display:flex;justify-content:flex-end}.ct-option-border>:first-child{margin-left:15px;order:2}.ct-option-border .ct-disabled{justify-content:center}.ct-option-border .ct-disabled .ct-value-divider,.ct-option-border .ct-disabled input,.ct-option-border .ct-disabled+div{display:none}.ct-option-border [data-style]:before{border-bottom-color:currentColor;border-bottom-width:2px;content:"";width:22px}.ct-option-border [data-style=dotted]:before{border-bottom-style:dotted}.ct-option-border [data-style=solid]:before{border-bottom-style:solid}.ct-option-border [data-style=dashed]:before{border-bottom-style:dashed}.ct-option-border [data-style=none]{font-size:9px}.ct-option-border [data-style=none]:before{display:none}.ct-tabs{margin:40px -12px 0}.ct-tabs>ul,.ct-tabs>ul>li{display:flex;margin:0}.ct-tabs>ul>li{align-items:center;background:#fff;border:1px solid rgba(86,103,121,.2);box-sizing:border-box;color:#566779;cursor:pointer;flex:1 1 0;font-size:15px;font-weight:400;height:50px;justify-content:center;line-height:1.285;padding:0 10px}.ct-tabs>ul>li:not(:first-child){border-left:none}.ct-tabs>ul>li.active{background:#f1f5f9;position:relative}.ct-tabs>ul>li.active:before{background:#307ac9;content:"";height:2px;left:-1px;position:absolute;right:-1px;top:-2px}.ct-tabs>.ct-current-tab{border-top:1px solid #d6d6d6;margin-top:-1px;padding:0 12px}.ct-tabs:not(:last-child)>.ct-current-tab{margin-bottom:20px}.rara-admin-modal .ct-tabs>ul>li{background:#f5f5f5}.rara-admin-modal .ct-tabs>ul>li.active:after{background:#fff}.ct-option-textarea textarea{border-color:var(--borderColor,#ddd);border-radius:3px;font-size:14px;min-height:80px;padding:4px 8px;resize:none;transition:box-shadow .1s linear,border-color .1s linear;width:100%}.ct-option-textarea textarea:hover{border-color:#0e8ecc}.ct-option-textarea textarea:focus{border-color:#0e8ecc;box-shadow:0 0 0 1px #0e8ecc}[class*=ct-attachment] .thumbnail{align-items:center;cursor:pointer;display:flex;flex-direction:column;position:relative}[class*=ct-attachment] .thumbnail img{border-radius:3px;max-width:100%}[class*=ct-attachment] .thumbnail:hover .actions{opacity:1}[class*=ct-attachment] .actions{background:#fff;border-radius:3px;box-shadow:0 2px 5px rgba(0,0,0,.02);opacity:0;overflow:hidden;position:absolute;right:var(--actions-spacing,18px);top:var(--actions-spacing,18px)}[class*=ct-attachment] .actions button{background:transparent;border:none;border-radius:0;height:29px;line-height:29px;min-height:auto;padding:0;width:34px}[class*=ct-attachment] .actions button:hover{background:var(--accentColor);color:#fff}[class*=ct-attachment] .actions button:last-child{border-left:1px solid rgba(0,0,0,.1)}[class*=ct-attachment] .actions button:before{font-family:dashicons;font-size:15px}[class*=ct-attachment] .actions .edit-button:before{content:""}[class*=ct-attachment] .actions .remove-button:before{content:""}.ct-attachment:not([data-type=no-frame]) .thumbnail{border:1px dashed #c1c4ca;border-radius:3px;padding:8px}.ct-attachment[data-type=no-frame],.ct-attachment[data-type=small]{--actions-spacing:10px}.ct-attachment[data-type=small] .thumbnail{justify-content:center}.ct-attachment[data-type=small] .thumbnail img{max-height:100px;min-height:32px}.ct-thumbnails-list{grid-column-gap:15px;grid-row-gap:15px;display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,125px));margin-bottom:20px}.ct-thumbnails-list .thumbnail{max-height:130px}.ct-thumbnails-list .thumbnail img{height:100%;-o-object-fit:cover;object-fit:cover;-o-object-position:center center;object-position:center center;width:100%}.ct-thumbnails-list .actions{--actions-spacing:12px}.ct-buttons-group,.ct-buttons-group li{display:flex;margin:0}.ct-buttons-group li{align-items:center;background:hsla(0,0%,100%,.6);box-shadow:inset 0 0 0 1px #ddd;cursor:pointer;flex:1 1 auto;font-size:13px;height:30px;justify-content:center;min-width:40px;position:relative;transition:all .15s cubic-bezier(.4,0,.2,1)}.ct-buttons-group li:hover{background:#fff;color:#444}.ct-buttons-group li.active{background:#0e8ecc;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);color:#fff;z-index:1}.ct-buttons-group li:not(:first-child){margin-left:-1px}.ct-buttons-group li:first-child{border-radius:3px 0 0 3px}.ct-buttons-group li:last-child{border-radius:0 3px 3px 0}.ct-buttons-group[data-type=compact] li{height:26px}.ct-buttons-group[data-buttons=ratio]{font-size:11px;font-weight:500;letter-spacing:.05em}.ct-buttons-group[data-type=meta-divider] li{flex:1 0 0}.ct-buttons-group[data-type=meta-divider] li:nth-child(2):before{background:currentColor;border-radius:2px;content:"";height:10px;transform:rotate(25deg);width:1px}.ct-buttons-group[data-type=meta-divider] li:nth-child(3):before{background:currentColor;border-radius:2px;content:"";height:1px;width:10px}.ct-buttons-group[data-type=meta-divider] li:nth-child(4):before{content:"●";font-size:5px}.ct-buttons-group[data-type=content-spacing] li{height:42px}.ct-buttons-group[data-type=content-spacing] li:hover .wheeloflife-tooltip-top{opacity:1;transform:translate3d(0,-42px,0);visibility:visible}.ct-buttons-group[data-type=content-spacing] li span{background:currentColor;opacity:.9;position:relative;width:18px}.ct-buttons-group[data-type=content-spacing] li span:after,.ct-buttons-group[data-type=content-spacing] li span:before{border:1px solid;box-sizing:border-box;content:"";height:6px;left:0;position:absolute;width:100%}.ct-buttons-group[data-type=content-spacing] li span:before{top:1px;transform:translateY(-100%)}.ct-buttons-group[data-type=content-spacing] li span:after{bottom:1px;transform:translateY(100%)}.ct-buttons-group[data-type=content-spacing] li:first-child span{height:8px}.ct-buttons-group[data-type=content-spacing] li:nth-child(2) span{height:13px;top:3px}.ct-buttons-group[data-type=content-spacing] li:nth-child(2) span:after{background:currentColor;display:none}.ct-buttons-group[data-type=content-spacing] li:nth-child(3) span{bottom:2px;height:13px}.ct-buttons-group[data-type=content-spacing] li:nth-child(3) span:before{display:none}.ct-buttons-group[data-type=content-spacing] li:nth-child(4) span{height:18px}.ct-buttons-group[data-type=content-spacing] li:nth-child(4) span:after,.ct-buttons-group[data-type=content-spacing] li:nth-child(4) span:before{display:none}[data-state=disabled]>section{opacity:.5;pointer-events:none}[data-state=disabled].ct-panel>header>label{opacity:.5}.ct-notification{color:rgba(85,93,102,.8);font-size:12px;font-style:italic}[class*=ct-tooltip]{-webkit-font-smoothing:antialiased;align-items:center;background:#363f42;border-radius:3px;color:#fff;display:flex;font-size:12px;font-style:italic;font-weight:400;height:26px;letter-spacing:normal;opacity:0;padding:0 8px;pointer-events:none;position:absolute;text-transform:none;transition:opacity .2s cubic-bezier(.455,.03,.515,.955),transform .2s cubic-bezier(.455,.03,.515,.955),visibility .2s cubic-bezier(.455,.03,.515,.955);-webkit-user-select:none;-moz-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;width:auto;z-index:200}[class*=ct-tooltip]:after,[class*=ct-tooltip]:before{box-sizing:border-box;content:"";position:absolute}[class*=ct-tooltip][class*=-top]:before{bottom:-10px;height:10px;left:0;width:100%}[class*=ct-tooltip][class*=-top]:after{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #363f42;bottom:-5px;height:5px;left:0;margin:0 auto;right:0;width:10px}.wheeloflife-tooltip-top{transform:translate3d(0,-35px,0)}.ct-typography{position:relative}.ct-typohraphy-value{align-items:center;background:#fff;border:1px solid #ddd;border-radius:3px;cursor:pointer;display:flex;justify-content:space-between;padding-right:8px;transition:border-color .1s linear}.ct-typohraphy-value:hover{border-color:#0e8ecc}.ct-typohraphy-value:hover a{color:#0073aa;opacity:1}.ct-typohraphy-value>div{box-sizing:border-box;overflow:hidden;padding:6px 0 6px 8px;text-overflow:ellipsis;white-space:nowrap;width:100%}.ct-typohraphy-value>div i{font-size:70%;font-style:normal;line-height:normal;margin:-5px 7px 0;opacity:.5;position:relative}.ct-typohraphy-value>div>span{position:relative}.ct-typohraphy-value>div>span:after{background:rgba(14,142,204,.3);border-radius:2px;bottom:-1px;content:"";display:block;left:-3px;opacity:0;position:absolute;right:-3px;top:-1px}.ct-typohraphy-value>div>span span{position:relative;z-index:2}.ct-typohraphy-value>div>span:hover:after{opacity:1}.ct-typohraphy-value>div>span:hover span{color:#28607b}.ct-typohraphy-value .ct-font{align-items:center;display:inline-flex}.ct-typohraphy-value .ct-font span{display:inline-block;max-width:100px;overflow:hidden;text-overflow:ellipsis;text-transform:capitalize;white-space:nowrap}.ct-typohraphy-value a{align-items:center;color:inherit;display:inline-flex;font-size:10px;height:17px;justify-content:center;letter-spacing:.1em;opacity:.5;width:17px}.ct-typohraphy-value a:before{content:"•••"}.ct-typography-container{display:flex;flex-direction:column;min-height:430px;overflow:hidden;position:relative}.ct-typography-top{align-items:center;border-bottom:1px dashed #eee;box-sizing:border-box;display:flex;height:70px;margin:0;padding:0 20px;position:relative}.ct-typography-top.ct-static>*{transition:none!important}.ct-typography-top~*{left:0;right:0;top:70px}.ct-typography-top li{align-items:center;background:#fff;border:1px solid #d1d5d9;border-radius:3px;box-shadow:0 0 0 0 transparent;box-sizing:border-box;color:#566779;cursor:pointer;display:flex;height:28px;margin-bottom:0;overflow:hidden;padding:0 8px;position:relative;transition:box-shadow .1s cubic-bezier(.455,.03,.515,.955),border-color .1s cubic-bezier(.455,.03,.515,.955);-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}.ct-typography-top li.active{box-shadow:0 0 0 1px var(--accentColor)}.ct-typography-top li.active,.ct-typography-top li:hover{border-color:var(--accentColor)}.ct-typography-top .ct-font{flex:1}.ct-typography-top .ct-font span{overflow:hidden;text-overflow:ellipsis;text-transform:capitalize;transition:width .1s cubic-bezier(.455,.03,.515,.955);white-space:nowrap;width:100%}.ct-typography-top .ct-font input{border:none;color:inherit;font:inherit;margin:0;padding:0;width:100%}.ct-typography-top .ct-font input:focus{outline:none}.ct-typography-top .ct-font svg{fill:currentColor;cursor:pointer;opacity:0;position:absolute;right:8px;top:calc(50% - 3px);transition:opacity .15s cubic-bezier(.455,.03,.515,.955)}.ct-typography-top .ct-font.active svg{opacity:1}.ct-typography-top .ct-weight{justify-content:flex-end;margin-left:7%;transition:width .1s cubic-bezier(.455,.03,.515,.955);width:78px}.ct-typography-top .ct-weight:before{color:#727c88;content:"A";font-size:15px;left:8px;margin-right:10px;opacity:1;position:absolute;transition:font-weight .1s cubic-bezier(.455,.03,.515,.955),opacity .15s cubic-bezier(.455,.03,.515,.955);z-index:0}.ct-typography-top .ct-weight:hover:before{font-weight:700}.ct-typography-top .ct-weight span{background:#fff;box-shadow:0 0 10px 3px #fff;line-height:normal;position:relative;text-align:right;width:44px;z-index:1}.ct-typography-top .ct-weight span[data-variation*=i]{font-style:italic}.ct-typography-top .ct-weight span[data-variation=Default]{opacity:0}.ct-typography-top .ct-back{margin-left:-44px;margin-right:12px;opacity:0;transition:margin .1s cubic-bezier(.455,.03,.515,.955),opacity .1s cubic-bezier(.455,.03,.515,.955);width:28px;z-index:2}.ct-typography-top .ct-back svg{fill:currentColor}.ct-typography-top.rara-switch-panel .ct-back{margin-left:0;opacity:1}.ct-typography-top.rara-switch-panel .ct-font span{width:90%}.ct-typography-top.rara-switch-panel .ct-weight{margin-left:5%}.ct-typography-top.rara-switch-panel .ct-weight:not(.active){width:45px}.ct-typography-top.rara-switch-panel .ct-weight:not(.active):before{opacity:0}.ct-typography-options{margin:0}.ct-typography-options>li{align-items:center;box-sizing:border-box;margin:0;padding:0 20px}.ct-typography-options>li:not(.ct-typography-variant){display:flex;height:95px}.ct-typography-options>li:not(:last-child){border-bottom:1px solid #eee}.ct-typography-options .ct-control{margin:0!important;padding:0!important;width:100%}.ct-typography-options .ct-control:after{display:none}.ct-option-input input{border:1px solid #ddd!important}.ct-typography-options .ab-slider:before{--backgroundColor:#e3e6e8}.ct-typography-options .ct-value-changer ul{box-shadow:0 10px 20px 3px rgba(0,0,0,.07),0 1px 3px 0 rgba(0,0,0,.03)}.ct-typography-options .ct-disabled-notification{background:hsla(240,9%,96%,.5)}.ct-typography-variant{grid-column-gap:15px;display:grid;grid-template-columns:repeat(2,1fr);height:75px}.ct-typography-variant ul{display:flex}.ct-typography-variant ul li{border:1px solid #dfe1e4;cursor:pointer;display:flex;flex:1;justify-content:center;margin:0;padding:5px 0;position:relative}.ct-typography-variant ul li:before{font-size:13px;font-weight:700;letter-spacing:.04em}.ct-typography-variant ul li+li{margin-left:-1px}.ct-typography-variant ul li:first-child{border-radius:3px 0 0 3px}.ct-typography-variant ul li:last-child{border-radius:0 3px 3px 0}.ct-typography-variant ul li:not(.active){color:#727c88}.ct-typography-variant ul li:not(.active):hover{color:var(--accentColor)}.ct-typography-variant ul li.active{background:var(--accentColor);border-color:var(--accentColor);color:#fff;z-index:2}.ct-typography-variant ul li[data-variant=capitalize]:before{content:"Aa"}.ct-typography-variant ul li[data-variant=uppercase]:before{content:"AA"}.ct-typography-variant ul li[data-variant=line-through]:before,.ct-typography-variant ul li[data-variant=underline]:before{content:"Aa"}.ct-typography-variant ul li:hover .wheeloflife-tooltip-top{opacity:1;transform:translate3d(0,-40px,0);visibility:visible}.ct-text-decoration li:after{background:currentColor;border-radius:2px;content:"";height:1px;left:0;margin:auto;opacity:.7;position:absolute;right:0;width:50%}.ct-text-decoration li[data-variant=underline]:after{bottom:6px}.ct-text-decoration li[data-variant=line-through]:after{bottom:0;top:3px}.ct-typography-single-font,.ct-typography-variations li{cursor:pointer;position:relative}.ct-typography-single-font:not(:first-child),.ct-typography-variations li:not(:first-child){border-top:1px solid #eee}.ct-typography-single-font.active,.ct-typography-single-font:hover,.ct-typography-variations li.active,.ct-typography-variations li:hover{background:var(--accentColor);border-color:var(--accentColor);color:#fff}.ct-typography-single-font.active:after,.ct-typography-single-font:hover:after,.ct-typography-variations li.active:after,.ct-typography-variations li:hover:after{box-shadow:-5px 0 15px 10px var(--accentColor)}.ct-typography-single-font.active+*,.ct-typography-single-font:hover+*,.ct-typography-variations li.active+*,.ct-typography-variations li:hover+*{border-top-color:hsla(0,0%,100%,.3)}.ct-typography-single-font.active:before,.ct-typography-variations li.active:before{content:"";font:400 17px/17px dashicons;position:absolute;right:20px}.ct-typography-fonts{max-height:360px;overflow-x:scroll}.ct-typography-single-font{box-sizing:border-box;display:flex;flex-direction:column;height:85px;justify-content:center;overflow:hidden;padding:0 20px}.ct-typography-single-font:before{top:18px}.ct-typography-single-font:after{background:#fff;box-shadow:-5px 0 15px 10px #fff;content:"";height:100%;position:absolute;right:0;top:0;transform:translateX(100%);width:10px}.ct-typography-single-font .ct-font-name{opacity:.7}.ct-typography-single-font .ct-font-preview{font-size:20px;font-weight:400;line-height:1.3;margin-top:10px;white-space:nowrap}.ct-typography-single-font:hover .ct-font-name{opacity:1}.ct-typography-variations{margin:0;max-height:360px;overflow-x:auto}.ct-typography-variations li{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;align-items:center;box-sizing:border-box;display:flex;height:50px;margin-bottom:0;padding:0 20px}.ct-typography-variations .ct-variation-name{font-size:14px;line-height:1.3}.ct-typography-variations [data-variation*="1"]{font-weight:100}.ct-typography-variations [data-variation*="2"]{font-weight:200}.ct-typography-variations [data-variation*="3"]{font-weight:300}.ct-typography-variations [data-variation*="4"]{font-weight:400}.ct-typography-variations [data-variation*="5"]{font-weight:500}.ct-typography-variations [data-variation*="6"]{font-weight:600}.ct-typography-variations [data-variation*="7"]{font-weight:700}.ct-typography-variations [data-variation*="8"]{font-weight:800}.ct-typography-variations [data-variation*="9"]{font-weight:900}.ct-typography-variations [data-variation*=i]{font-style:italic}.ct-attachment .components-base-control__field{margin-bottom:0}.ct-attachment .components-focal-point-picker{box-shadow:none}.ct-attachment .focal-point-picker__controls{padding:1em 0 .6em}.ct-ratio-picker>ul+div{margin-top:20px}.ct-ratio-picker [class*=ct-ratio]{align-items:center;display:flex;flex-wrap:wrap}.ct-ratio-picker.reversed button span{transform:rotate(-90deg)}.ct-ratio-picker .ct-notification{margin:0;padding:0;width:100%}.ct-ratio-predefined ul{flex:1;font-size:11px;font-weight:500;letter-spacing:.05em}.ct-ratio-predefined button{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:none;cursor:pointer;display:flex;justify-content:center;margin-left:12px;padding:0}.ct-ratio-predefined button:focus{outline:none}.ct-ratio-predefined button span{align-items:center;display:flex;height:30px;justify-content:center;position:relative;transition:transform .15s cubic-bezier(.4,0,.2,1);width:30px}.ct-ratio-predefined button span:after,.ct-ratio-predefined button span:before{box-sizing:border-box;content:"";position:absolute;transition:z-index .15s cubic-bezier(.4,0,.2,1),background .15s cubic-bezier(.4,0,.2,1),border-color .15s cubic-bezier(.4,0,.2,1)}.ct-ratio-predefined button span:before{background:transparent;border:1px solid hsla(210,4%,47%,.5);border-radius:1px;height:25px;width:13px}.ct-ratio-predefined button span:after{background:#9ca3a9;border:1px solid transparent;border-radius:2px;height:13px;margin:auto;width:25px}.ct-ratio-predefined button:hover span:before{background:var(--accentColor);border-color:transparent;border-radius:2px;z-index:2}.ct-ratio-predefined button:hover span:after{background:transparent;border:1px dashed hsla(210,4%,47%,.5);border-radius:1px}.ct-ratio-predefined button:hover .wheeloflife-tooltip-top{opacity:1;transform:translate3d(0,-38px,0);visibility:visible}.ct-ratio-custom{justify-content:space-between}.ct-ratio-custom .ct-option-input{width:45%}.ct-ratio-custom span{font-weight:700;text-align:center;width:10%}.ct-ratio-custom .ct-notification{margin-top:10px}.ct-ratio-preview{align-items:center;background:var(--backgroundColor,#fff);border:1px solid var(--borderColor,#ddd);border-radius:3px;box-sizing:border-box;cursor:pointer;display:flex;font-size:12px;height:30px;justify-content:center;line-height:normal;min-width:75px;padding:0 10px}.ct-ratio-preview .ct-ratio-key{border-right:1px solid var(--borderColor,#ccc);margin-right:8px;padding-right:8px}.ct-ratio-preview .ct-width-key{border-left:1px solid var(--borderColor,#ccc);margin-left:8px;padding-left:8px}.ct-ratio-preview:hover{border-color:var(--accentColor)}.ct-ratio-modal{background:#fff;border-radius:6px;box-shadow:0 15px 15px rgba(0,0,0,.1);left:-14px;margin-bottom:30px;position:absolute;top:19px;transform-origin:center top;width:295px;z-index:20}.ct-ratio-modal:before{border-color:transparent transparent #fff;border-style:solid;border-width:0 6px 7px;content:"";height:0;position:absolute;right:28px;top:-7px;width:0}.ct-ratio-modal .ct-ratio-content{padding:25px 20px}.ct-ratio-modal .ct-ratio-content .ct-radio-option{border-bottom:1px dashed #eee;padding-bottom:20px}.ct-ratio-modal .ct-ratio-content .ct-control{padding-left:0;padding-right:0}.ct-ratio-modal .ct-ratio-content .ct-control:first-child{margin-top:0}.ct-background{background-color:hsla(0,0%,100%,.8);background-image:linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ddd 0),linear-gradient(-45deg,transparent 75%,#ddd 0);background-position:0 0,0 5px,5px -5px,-5px 0;background-size:10px 10px;border-radius:100%;cursor:pointer;height:38px;margin-left:auto;width:38px}.ct-background-preview{align-items:center;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15);box-sizing:border-box;cursor:pointer;display:flex;height:inherit;justify-content:center;position:relative;width:inherit}.ct-background-preview[data-background-type=image]{background-position:var(--background-position)}.ct-background-preview[data-background-type=gradient],.ct-background-preview[data-background-type=image]{background-image:var(--background-image);background-repeat:no-repeat;background-size:cover}.ct-background-preview[data-background-type*=pattern]:before{background-color:var(--pattern-color);border-radius:100%;content:"";height:calc(100% - 2px);left:1px;-webkit-mask:var(--pattern-mask);mask:var(--pattern-mask);-webkit-mask-position:50% 50%;mask-position:50% 50%;-webkit-mask-size:48px;mask-size:48px;position:absolute;top:1px;width:calc(100% - 2px)}.ct-background-preview:hover .wheeloflife-tooltip-top{opacity:1;transform:translate3d(0,-43px,0);visibility:visible}.ct-background-preview.no-color{background-color:#fff!important;will-change:transform}.ct-background-preview.no-color svg{fill:#566779;animation:spin 4.5s linear infinite;height:18px;width:18px}.wheeloflife-background-modal .wheeloflife-color-picker-modal .wheeloflife-color-picker-top{padding:20px 14px}.wheeloflife-background-modal .wheeloflife-color-picker-modal .components-color-picker{--cpm-ph:14px}.ct-gradient-tab .components-circular-option-picker{box-sizing:border-box;margin:0;padding:20px 14px}.ct-gradient-tab .components-circular-option-picker__swatches{display:none}.ct-gradient-tab .components-custom-gradient-picker__gradient-bar{box-sizing:border-box;margin:0}.ct-gradient-tab .components-custom-gradient-picker__inserter,.ct-gradient-tab .components-custom-gradient-picker__markers-container{height:100%}.ct-gradient-tab .components-custom-gradient-picker__ui-line{margin:18px 0}.ct-gradient-tab .components-custom-gradient-picker__ui-line>:first-child{max-width:130px;width:100%}.ct-gradient-tab .components-custom-gradient-picker__ui-line .components-base-control__field{margin-bottom:0}.ct-gradient-tab .components-custom-gradient-picker__ui-line .components-input-control__label{display:none!important}.ct-gradient-tab .components-circular-option-picker__custom-clear-wrapper{justify-content:normal}.ct-gradient-tab .components-popover{animation:none!important;left:0!important;margin-left:-20px;margin-top:36px;position:absolute;right:0!important;top:0!important;transform-origin:top center!important;z-index:11}.ct-gradient-tab .components-popover .components-popover__content{border:none;border-bottom:1px solid #eee;border-radius:0;box-shadow:none;box-sizing:border-box;left:auto;margin:0!important;min-width:var(--modalWidth,295px)}.ct-gradient-tab .components-popover .components-popover__content>div{padding:0}.ct-gradient-tab .components-popover .components-popover__content .components-color-picker{--cpm-pv:16px}.ct-gradient-tab .components-custom-gradient-picker__remove-control-point{margin-bottom:15px;margin-left:14px}.ct-gradient-tab .components-custom-gradient-picker__inserter .components-popover{margin-right:-44px;z-index:11}.ct-gradient-swatches{grid-column-gap:19px;grid-row-gap:19px;border-top:1px dashed #eee;display:grid;grid-template-columns:repeat(6,1fr);margin:0;padding:20px 14px}.ct-gradient-swatches li{align-items:center;background-image:var(--background-image);border-radius:100%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);cursor:pointer;display:flex;height:28px;justify-content:center;margin:auto;transition:box-shadow .1s ease;width:28px}.ct-gradient-swatches li.active{box-shadow:inset 0 0 0 1px rgba(0,0,0,.1),0 0 0 2px #fff,0 0 0 4px #606a73;position:relative}.ct-gradient-swatches li.active:before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:#fff;content:"";font-family:dashicons;font-size:20px;margin-top:1px;position:absolute;text-shadow:0 1px 2px rgba(0,0,0,.2)}.ct-image-tab{padding:20px 0}.ct-image-tab .ct-control{--options-vertical-spacing:20px}.ct-image-tab .ct-control:not(:last-child){border-bottom:1px dashed #eee;padding-bottom:20px}.ct-image-tab>.ct-radio-option{padding:0 14px}.ct-image-tab>.ct-radio-option+*{border-top:1px dashed #eee;padding-top:20px}.ct-image-tab .wheeloflife-color-picker-modal{border-radius:0;border-top:1px solid #eee;margin:20px -14px 0;opacity:1!important;position:relative;transform:none!important;transition:none!important}.ct-image-tab .wheeloflife-color-picker-modal:before{background:#fff;border-left:1px solid #e6e6e6;border-top:1px solid #e6e6e6;content:"";height:12px;position:absolute;right:20px;top:-7px;transform:rotate(45deg);width:12px}.ct-image-tab .wheeloflife-color-picker-modal .components-color-picker{padding-bottom:0}.ct-image-tab .wheeloflife-tooltip-top{display:none}.ct-patterns-list{grid-column-gap:15px;grid-row-gap:15px;border-bottom:1px dashed #eee;display:grid;grid-template-columns:repeat(3,1fr);margin:25px 0 0;padding:0 14px 25px}.ct-patterns-list li{border:2px solid #e0e0e0;border-radius:3px;box-sizing:border-box;cursor:pointer;margin:0;min-height:71.6px;padding:2px}.ct-patterns-list li img{display:block;max-width:100%}.ct-patterns-list li:hover{border-color:#d1d2d2}.ct-patterns-list li.active{border-color:var(--accentColor);box-shadow:0 5px 15px 0 rgba(0,0,0,.05)}.wheeloflife-background-modal{--option-modal-arrow-position:calc(100% - 38px);display:flex;flex-direction:column;height:430px;opacity:0;transform:scale3d(.95,.95,1);transition:opacity .1s ease,visibility .1s ease,transform .1s ease-out;visibility:hidden}.wheeloflife-background-modal.active{opacity:1;transform:scaleX(1);visibility:visible}.wheeloflife-background-modal .ct-modal-tabs{flex:0 0 43px}.wheeloflife-background-modal>div{flex:1}.wheeloflife-background-modal .ct-gradient-tab,.wheeloflife-background-modal .ct-image-tab{overflow-x:hidden;overflow-y:scroll}.wheeloflife-color-picker-container{display:flex;justify-content:flex-end}.wheeloflife-color-picker-single:not(:last-child){margin-right:10px}.wheeloflife-color-picker-single>span{background-color:hsla(0,0%,100%,.8);background-image:linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ddd 0),linear-gradient(-45deg,transparent 75%,#ddd 0);background-position:0 0,0 5px,5px -5px,-5px 0;background-size:10px 10px;border-radius:100%;display:flex;height:26px;width:26px}.wheeloflife-color-picker-single>span span:focus{outline:none}.wheeloflife-color-picker-single>span span:hover .wheeloflife-tooltip-top{opacity:1;transform:translate3d(0,-38px,0);visibility:visible}.wheeloflife-color-picker-single.ct-no-color>span span{background:hsla(0,0%,100%,.8)}.wheeloflife-color-picker-single.ct-no-color>span span:after{background:#e60606;border-radius:2px;content:"";height:2px;position:absolute;transform:rotate(-40deg);width:12px}.wheeloflife-color-modal-wrapper{display:flex;justify-content:center;position:relative;width:100%;z-index:20}.wheeloflife-color-picker-modal{border-radius:8px;width:var(--modalWidth,295px)}.wheeloflife-color-picker-modal[data-position=bottom] .ct-arrow{top:-12px}.wheeloflife-color-picker-modal[data-position=top] .ct-arrow{bottom:-12px}.wheeloflife-color-picker-modal .ct-arrow{border-color:transparent transparent red;border-style:solid;border-width:0 6px 7px;height:0;position:absolute;width:0;z-index:1}.wheeloflife-color-picker-top{align-items:center;border-bottom:1px solid #eee;display:flex;justify-content:space-between;padding:17px}.wheeloflife-color-picker-skins{display:flex;margin:0}.wheeloflife-color-picker-skins li{align-items:center;border-radius:100%;box-shadow:inset 0 0 3px rgba(0,0,0,.09);cursor:pointer;display:flex;height:24px;justify-content:center;margin-bottom:0;position:relative;width:24px}.wheeloflife-color-picker-skins li:not(:last-child){margin-right:15.7px}.wheeloflife-color-picker-skins li.active{box-shadow:inset 0 0 3px rgba(0,0,0,.09),0 0 0 3px #fff}.wheeloflife-color-picker-skins li.active:before{background:rgba(0,0,0,.4);border-radius:100%;content:"";height:calc(100% + 8px);position:absolute;width:calc(100% + 8px);z-index:-1}.wheeloflife-color-picker-skins li.active:after{align-items:center;bottom:0;color:#fff;content:"";display:flex;font-family:dashicons;font-size:15px;justify-content:center;left:-1px;position:absolute;right:0;text-shadow:0 1px 2px rgba(0,0,0,.2);top:1px}.wheeloflife-color-picker-skins li.ct-no-color-pill{background:hsla(0,0%,100%,.8)}.wheeloflife-color-picker-skins li.ct-no-color-pill:after{background:#e60606;border-radius:2px;bottom:auto;content:"";height:2px;left:auto;right:auto;top:auto;transform:rotate(-40deg);width:14px}.ct-edit-palette{align-items:center;cursor:pointer;display:flex;justify-content:center;position:relative}.ct-edit-palette span{border-radius:100%;box-shadow:inset 0 0 2px 0 rgba(0,0,0,.4);height:24px;-webkit-mask-image:-webkit-radial-gradient(#fff,#000);mask-image:-webkit-radial-gradient(#fff,#000);overflow:hidden;width:24px}.ct-edit-palette span svg{filter:blur(.2em);height:inherit;opacity:.9;transform:scale(1.3);width:inherit}.ct-edit-palette:focus{box-shadow:none;outline:none}.ct-edit-palette:hover .wheeloflife-tooltip-top,.wheeloflife-color-picker-skins li:hover .wheeloflife-tooltip-top{opacity:1;transform:translate3d(0,-38px,0);visibility:visible}.wheeloflife-color-picker-modal .components-color-picker{background:#fff;box-sizing:border-box;max-width:280px;overflow:hidden;width:100%}.wheeloflife-color-picker-modal .components-color-picker *{box-sizing:border-box}.wheeloflife-color-picker-modal .components-color-picker__saturation{padding-bottom:55%;position:relative;width:100%}.wheeloflife-color-picker-modal .components-color-picker__body{padding:20px 0 0}.wheeloflife-color-picker-modal .components-color-picker__controls{display:flex}.wheeloflife-color-picker-modal .components-color-picker__alpha-pointer,.wheeloflife-color-picker-modal .components-color-picker__hue-pointer,.wheeloflife-color-picker-modal .components-color-picker__saturation-pointer{border:none;box-shadow:none;cursor:pointer;padding:0;position:absolute}.wheeloflife-color-picker-modal .components-visually-hidden{clip:rect(1px,1px,1px,1px);word-wrap:normal!important;border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.wheeloflife-color-picker-modal .components-color-picker__saturation-black,.wheeloflife-color-picker-modal .components-color-picker__saturation-color,.wheeloflife-color-picker-modal .components-color-picker__saturation-white{bottom:0;left:0;position:absolute;right:0;top:0}.wheeloflife-color-picker-modal .components-color-picker__saturation-black,.wheeloflife-color-picker-modal .components-color-picker__saturation-white{box-shadow:inset 0 0 5px rgba(0,0,0,.1)}.wheeloflife-color-picker-modal .components-color-picker__saturation-color{border-radius:5px;-webkit-mask-image:-webkit-radial-gradient(#fff,#000);mask-image:-webkit-radial-gradient(#fff,#000);overflow:hidden}.wheeloflife-color-picker-modal .components-color-picker__saturation-white{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.wheeloflife-color-picker-modal .components-color-picker__saturation-black{background:linear-gradient(0deg,#000,transparent)}.wheeloflife-color-picker-modal .components-color-picker__saturation-pointer{background-color:transparent;border-radius:50%;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);height:14px;padding:0;transform:translate(-4px,-4px);width:14px}.wheeloflife-color-picker-modal .components-color-picker__swatch{display:none}.wheeloflife-color-picker-modal .components-color-picker__active{border-radius:50%;bottom:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);left:0;position:absolute;right:0;top:0;z-index:2}.wheeloflife-color-picker-modal .components-color-picker__toggles{flex:1}.wheeloflife-color-picker-modal .components-color-picker__alpha{background-image:linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ddd 0),linear-gradient(-45deg,transparent 75%,#ddd 0);background-position:0 0,0 5px,5px -5px,-5px 0;background-size:10px 10px}.wheeloflife-color-picker-modal .components-color-picker__alpha-gradient,.wheeloflife-color-picker-modal .components-color-picker__hue-gradient{border-radius:10px;bottom:0;left:0;position:absolute;right:0;top:0}.wheeloflife-color-picker-modal .components-color-picker__alpha,.wheeloflife-color-picker-modal .components-color-picker__hue{border-radius:10px;height:18px;position:relative}.wheeloflife-color-picker-modal .is-alpha-enabled .components-color-picker__hue{margin-bottom:10px}.wheeloflife-color-picker-modal .components-color-picker__alpha-bar,.wheeloflife-color-picker-modal .components-color-picker__hue-bar{height:100%;margin:0 3px;padding:0 2px;position:relative}.wheeloflife-color-picker-modal .components-color-picker__hue-gradient{background:linear-gradient(90deg,red 0,#ff0 17%,lime 33%,cyan 50%,blue 67%,#f0f 83%,red)}.wheeloflife-color-picker-modal .components-color-picker__alpha-gradient,.wheeloflife-color-picker-modal .components-color-picker__hue-gradient{box-shadow:inset 0 0 5px rgba(0,0,0,.1)}.wheeloflife-color-picker-modal .components-color-picker__alpha-pointer,.wheeloflife-color-picker-modal .components-color-picker__hue-pointer{background:#fff;border-radius:50%;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);height:14px;left:0;transform:translate(-7px,2px);width:14px}.wheeloflife-color-picker-modal .components-color-picker__hue-pointer,.wheeloflife-color-picker-modal .components-color-picker__saturation-pointer{transition:box-shadow .1s linear}.wheeloflife-color-picker-modal .components-color-picker__saturation-pointer:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px blue,0 0 5px 0 blue,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4)}.wheeloflife-color-picker-modal .components-color-picker__alpha-pointer:focus,.wheeloflife-color-picker-modal .components-color-picker__hue-pointer:focus{border-color:blue;box-shadow:0 0 0 2px blue,0 0 3px 0 blue;outline:2px solid transparent;outline-offset:-2px}.wheeloflife-color-picker-modal .components-color-picker__inputs-wrapper{align-items:flex-end;border-top:1px solid #eee;display:flex;margin:20px calc(var(--cpm-ph)*-1) 0 calc(var(--cpm-ph)*-1);padding:20px var(--cpm-ph) 1px var(--cpm-ph)}.wheeloflife-color-picker-modal .components-color-picker__inputs-wrapper fieldset{border:none;flex:1;margin:0;padding:0}.wheeloflife-color-picker-modal .components-color-picker__inputs-field{width:100%}.wheeloflife-color-picker-modal .components-color-picker__inputs-fields{direction:ltr;display:flex;flex-grow:1;margin-right:0}.wheeloflife-color-picker-modal .components-color-picker__inputs-fields .components-base-control+.components-base-control{margin-top:0}.wheeloflife-color-picker-modal .components-color-picker__inputs-fields .components-base-control__field{margin:0}.wheeloflife-color-picker-modal .components-color-picker{--cpm-pv:20px;--cpm-ph:17px;padding:var(--cpm-pv) var(--cpm-ph)}.wheeloflife-color-picker-modal .components-color-picker__hue-bar{margin:0 8px 0 9px}.wheeloflife-color-picker-modal .components-color-picker__alpha-bar{margin:0 9px}.wheeloflife-color-picker-modal .components-color-picker__alpha-pointer,.wheeloflife-color-picker-modal .components-color-picker__hue-pointer,.wheeloflife-color-picker-modal .components-color-picker__saturation-pointer{background:transparent!important;border:3px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.37),inset 0 0 3px rgba(0,0,0,.2)!important}.wheeloflife-color-picker-modal .components-color-picker__alpha-pointer:active,.wheeloflife-color-picker-modal .components-color-picker__alpha-pointer:hover,.wheeloflife-color-picker-modal .components-color-picker__hue-pointer:active,.wheeloflife-color-picker-modal .components-color-picker__hue-pointer:hover,.wheeloflife-color-picker-modal .components-color-picker__saturation-pointer:active,.wheeloflife-color-picker-modal .components-color-picker__saturation-pointer:hover{border-width:4px}.wheeloflife-color-picker-modal .components-color-picker__inputs-wrapper .components-text-control__input{border:1px solid rgba(5,16,26,.2)!important;border-radius:4px!important;font-size:11px!important;height:28px!important;padding:3px 5px!important}.wheeloflife-color-picker-modal .components-color-picker__inputs-wrapper>.components-color-picker__inputs-fields .components-base-control__label{font-size:0}.wheeloflife-color-picker-modal .components-color-picker__inputs-wrapper>.components-color-picker__inputs-fields .components-base-control__label:before{content:"HEX";font-size:9px;padding:0 6px}.wheeloflife-color-picker-modal .components-color-picker__inputs-wrapper>.components-color-picker__inputs-fields .components-text-control__input{padding-left:38px!important}.wheeloflife-color-picker-modal .components-color-picker__inputs-wrapper .components-base-control:not(:last-child){margin-right:5px}.wheeloflife-color-picker-modal .components-color-picker__inputs-wrapper .components-base-control__field{position:relative}.wheeloflife-color-picker-modal .components-color-picker__inputs-wrapper .components-base-control__field label{align-items:center;background:hsla(0,0%,93%,.65);border-radius:2px 0 0 2px;bottom:1px;display:flex;font-size:9px;font-weight:600;justify-content:center;left:1px;margin:0;min-width:18px;position:absolute;text-transform:uppercase;top:1px}.wheeloflife-color-picker-modal .components-color-picker__inputs-wrapper .components-base-control__field input[type=number]{padding-left:20px!important;padding-right:2px!important;text-align:center}.wheeloflife-color-picker-modal .components-color-picker__inputs-wrapper input[type=number]{-moz-appearance:textfield}.wheeloflife-color-picker-modal .components-color-picker__inputs-wrapper input[type=number]::-webkit-inner-spin-button,.wheeloflife-color-picker-modal .components-color-picker__inputs-wrapper input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}.wheeloflife-color-picker-modal .components-color-picker__inputs-toggle-wrapper{display:flex}.wheeloflife-color-picker-modal .components-color-picker__inputs-toggle{align-items:center;background:hsla(0,0%,93%,.65);border:1px solid var(--borderColor,#ddd);border-radius:3px;cursor:pointer;display:flex;height:28px;justify-content:center;margin-left:5px;padding:0;transition:border-color .1s linear;width:28px}.wheeloflife-color-picker-modal .components-color-picker__inputs-toggle:focus{outline:none}.wheeloflife-color-picker-modal .components-color-picker__inputs-toggle:hover{border-color:var(--accentColor)}.wheeloflife-color-picker-modal .components-color-picker__inputs-toggle svg{height:14px;width:14px}.wheeloflife-color-picker-modal .components-color-picker__inputs-toggle span{display:none}.wheeloflife-color-palettes{margin:0 -15px;position:relative}.wheeloflife-color-palettes li{align-items:center;background:transparent;border-radius:100px;box-sizing:border-box;display:flex;flex-wrap:wrap;height:50px;justify-content:space-between;margin-bottom:12px;padding:0 15px;position:relative;transition:background .15s ease}.wheeloflife-color-palettes li:last-child{margin-bottom:0}.wheeloflife-color-palettes li.active,.wheeloflife-color-palettes li:hover{background:#fff}.wheeloflife-color-palettes li>label{align-items:center;display:flex;font-size:12px;font-weight:500;height:100%}.wheeloflife-color-palette-modal{--modal-y-offset-plus:10px}.wheeloflife-option-editor textarea{border-radius:0!important;opacity:1!important}.wheeloflife-option-editor textarea:focus{box-shadow:none!important}.ct-box-shadow{align-items:center;display:flex;justify-content:flex-end;position:relative}.ct-box-shadow-values{align-items:center;background:var(--backgroundColor,#fff);border:1px solid var(--borderColor,#ddd);border-radius:3px;box-sizing:border-box;cursor:pointer;display:flex;height:30px;justify-content:center;margin-left:5px;transition:border-color .1s linear;width:75px}.ct-box-shadow-values>span{font-size:9px;font-weight:600;letter-spacing:1px;line-height:normal;text-transform:uppercase}.ct-box-shadow-modal{margin-bottom:30px}.ct-shadow-trigger{border-bottom:1px dashed #eee;display:flex;justify-content:space-between;padding:20px}.ct-shadow-trigger>label{font-size:12px;font-weight:500}.shadow-sliders{position:relative}.shadow-sliders>section{border-bottom:1px dashed #eee;padding:20px}.shadow-sliders label{cursor:default;display:block;font-size:11px;font-weight:500;letter-spacing:.1px;margin-bottom:5px}.shadow-sliders .ab-slider:before{background:#e3e6e8}.ct-shadow-style{display:flex;margin:0;padding:20px}.ct-shadow-style li{border:1px solid #dfe1e4;cursor:pointer;display:flex;flex:1;font-weight:500;justify-content:center;margin-bottom:0;padding:5px 0;position:relative}.ct-shadow-style li:first-child{border-radius:3px 0 0 3px}.ct-shadow-style li:last-child{border-radius:0 3px 3px 0;margin-left:-1px}.ct-shadow-style li.active{background:var(--accentColor);border-color:var(--accentColor);color:#fff;z-index:2}.ct-shadow-style li:not(.active):hover{color:var(--accentColor)}.ct-box-shadow.ct-disabled .wheeloflife-color-picker-single{display:none}.ct-controls-group>header{margin-bottom:10px}.ct-controls-group>section .ct-control{padding:0}.ct-controls-group>section[data-columns="1"]>:first-child{margin-top:0}.ct-controls-group>section[data-columns*="2"]{grid-column-gap:var(--col-gap,7px);display:grid;grid-template-columns:repeat(2,1fr)}.ct-controls-group>section[data-columns*="2"]>.ct-control{margin:0}.ct-controls-group>section[data-columns*=medium]{--col-gap:25px}.ct-layer-content .ct-controls-group>section>*{padding:0}.wheeloflife-option-editor .wp-editor-container{border-color:#dfdfdf}.wheeloflife-option-editor .wp-editor-container .mce-tinymce{border:none}.wheeloflife-option-editor .mce-tinymce{border:1px solid #dfdfdf;box-shadow:0 1px 1px rgba(0,0,0,.1)}.wheeloflife-option-editor .mce-top-part:before{box-shadow:none}.ct-option-widget-area>.customize-pane-child{border-bottom:none!important;display:flex!important;flex-direction:column;margin-top:25px!important;overflow:initial!important;padding:0!important;position:relative!important}.ct-option-widget-area>.customize-pane-child .customize-control{--ui-padding:0 8px}.ct-option-widget-area>.customize-pane-child .customize-control-sidebar_widgets{order:100}.customize-control-widget_form .widget-top .widget-title h3{padding:13px 15px}.customize-control-widget_form .widget-top .widget-action{padding:8px}.customize-control-widget_form .widget-top .widget-reorder-nav span{height:39px}.customize-control-widget_form .widget-top .widget-reorder-nav span:before{line-height:39px}.widget-inside .rara-options-panel{margin-bottom:20px}.widget-inside .ct-options-root>.ct-control{border-bottom:1px solid #e5e5e5;margin-left:-15px;margin-right:-15px;padding-bottom:20px;position:relative}.widget-inside .ct-control{margin-top:20px;padding-left:15px;padding-right:15px}.widget-inside .ct-control[data-design=inline]{display:flex;flex-wrap:wrap}.widget-inside .ct-control[data-design=inline]>header{flex:0 0 45%;max-width:45%}.widget-inside .ct-control[data-design=inline]>section{flex:0 0 55%;max-width:55%;text-align:right}.widget-inside .ct-control[data-design=block]>header:not(:empty){margin-bottom:10px}.widget-inside .ct-option-description{color:rgba(85,93,102,.8);font-size:12px;font-style:italic;margin-top:15px}.customize-pane-child .widget-inside .ct-control{margin-left:-10px;margin-right:-10px}#widget-list>div[id*=rt_customizer_ct] h3{position:relative}#widget-list>div[id*=rt_customizer_ct] h3:before{background:#0085ba;content:"";height:100%;left:0;position:absolute;top:0;width:3px}.ct-modal-tabs{display:flex;height:43px;margin:0;overflow-x:hidden}.ct-modal-tabs li{align-items:center;border-bottom:1px solid #eee;box-sizing:border-box;cursor:pointer;display:flex;flex:1;font-size:13px;font-weight:500;justify-content:center;margin:0;min-height:100%}.ct-modal-tabs li:not(:last-child){border-right:1px solid #eee}.ct-modal-tabs li:not(.active){color:rgba(68,68,68,.7)}.ct-modal-tabs li:not(.active):hover{color:#444}.ct-modal-tabs li.active{position:relative}.ct-modal-tabs li.active:after{background:var(--accentColor);bottom:-1px;content:"";height:2px;left:-1px;position:absolute;width:calc(100% + 2px)}.ct-woo-columns-and-rows{grid-column-gap:23px;display:grid;grid-template-columns:repeat(2,1fr)}.ct-woo-columns-and-rows .ct-option-number{--width:100%}.ct-woo-columns-and-rows.ct-mobile>:last-child{opacity:.5;pointer-events:none}.ct-labeled-group-item{align-items:center;display:flex;flex-wrap:wrap;margin-top:10px}.ct-labeled-group-item>label{cursor:default;font-size:11px;margin-right:auto;opacity:.8}.ct-labeled-group-item .wheeloflife-background-modal-wrapper{width:100%}.ct-icon-picker-value{align-items:center;display:flex;justify-content:flex-end}.ct-icon-picker-value>div{align-items:center;border:1px solid var(--borderColor,#ddd);border-radius:3px;box-sizing:border-box;cursor:pointer;display:flex;font-size:9px;font-weight:600;height:30px;justify-content:center;letter-spacing:1px;margin-left:15px;min-width:75px;text-transform:uppercase;transition:border-color .1s linear}.ct-icon-picker-value>div:hover{border-color:var(--accentColor)}.ct-icon-picker-value>div .ct-edit,.ct-icon-picker-value>div .ct-remove{align-items:center;display:flex;height:100%;justify-content:center;width:50%}.ct-icon-picker-value>div .ct-edit:before,.ct-icon-picker-value>div .ct-remove:before{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:dashicons;font-size:15px;font-weight:400;height:15px;line-height:15px;width:15px}.ct-icon-picker-value>div .ct-edit:hover .wheeloflife-tooltip-top,.ct-icon-picker-value>div .ct-remove:hover .wheeloflife-tooltip-top{opacity:1;transform:translate3d(0,-40px,0);visibility:visible}.ct-icon-picker-value>div .ct-edit:before{content:""}.ct-icon-picker-value>div .ct-edit:hover{color:var(--accentColor)}.ct-icon-picker-value>div .ct-remove:before{content:"";margin-left:1px}.ct-icon-picker-value>div .ct-remove:hover{color:#dd4b39}.ct-icon-picker-value>div .divider{border-left:1px solid var(--borderColor,#ccc);height:50%}.ct-icon-picker-value .ct-icon-preview{cursor:pointer;display:flex;transition:color .1s linear}.ct-icon-picker-value .ct-icon-preview svg{fill:currentColor;height:24px;width:24px}.ct-icon-picker-value .ct-icon-preview:hover{color:var(--accentColor)}.ct-icon-picker-modal{display:flex;flex-direction:column;height:400px;padding:20px}.ct-icon-picker-modal input[type=text]{--height:30px}.ct-icon-picker-modal .ct-icons-list{box-sizing:border-box;margin:10px -20px 0;overflow:auto;padding:0 20px;width:calc(100% + 40px)}.ct-icon-picker-modal .ct-icons-list h2{font-size:13px;font-weight:500;margin:15px 0 10px}.ct-icon-picker-modal ul{grid-column-gap:5px;grid-row-gap:5px;display:grid;grid-template-columns:repeat(6,1fr)}.ct-icon-picker-modal ul li{align-items:center;border-radius:3px;box-sizing:border-box;cursor:pointer;display:flex;height:45px;justify-content:center;margin:0;padding:5px}.ct-icon-picker-modal ul li.active{background:var(--accentColor);color:#fff}.ct-icon-picker-modal ul li:not(.active):hover{background:#f5f5f5}.ct-icon-picker-modal ul li svg{fill:currentColor;max-width:20px}.ct-date-time-picker .CalendarMonthGrid,.ct-date-time-picker .CalendarMonthGrid_month__horizontal,.ct-date-time-picker .CalendarMonth_table,.ct-date-time-picker .DayPicker__horizontal,.ct-date-time-picker .DayPicker__horizontal>div>div,.ct-date-time-picker .DayPicker_transitionContainer{width:100%!important}.ct-date-time-picker .CalendarMonthGrid__horizontal{left:0}.ct-date-time-picker .CalendarMonth{padding:0!important}.ct-date-time-picker .DayPickerNavigation_rightButton__horizontalDefault{right:0}.ct-date-time-picker .DayPicker_weekHeaders__horizontal{margin-left:0}.ct-date-time-picker .CalendarDay__default:not(:hover):not(.CalendarDay__selected),.ct-date-time-picker .CalendarMonth,.ct-date-time-picker .CalendarMonthGrid,.ct-date-time-picker .DayPicker,.ct-date-time-picker .DayPicker__horizontal{background:transparent}.ct-date-time-picker .CalendarDay{height:36px!important}.ct-date-time-picker .components-datetime__time-field-month{flex:1}.ct-date-time-picker .components-datetime__time-field-month select{width:calc(100% - 5px)}.ct-date-time-picker .components-datetime__time-field-month select:not(:focus){border-color:var(--borderColor,#ddd)}.ct-date-time-picker .components-datetime__time-field-day-input,.ct-date-time-picker .components-datetime__time-field-hours-input,.ct-date-time-picker .components-datetime__time-field-minutes-input{--width:35px;--margin:0 4px 0 0}.ct-date-time-picker .components-datetime__time-field-year-input{--width:55px}.ct-date-time-picker .DayPicker_weekHeader{padding:0!important;right:0;top:55px}.ct-date-time-picker .DayPicker_weekHeader_ul{display:flex;justify-content:space-between}.ct-date-time-picker .DayPicker_weekHeader_li{margin-bottom:0}.ct-date-time-picker .DayPicker_transitionContainer[style*="height: 246px"]{height:270px!important}.ct-date-time-picker .DayPicker_transitionContainer[style*="height: 275px"]{height:305px!important}.ct-option-modal{background:#fff;border:1px solid #ddd;border-radius:6px;box-shadow:5px 15px 20px rgba(0,0,0,.4);box-sizing:border-box;position:fixed;right:var(--modal-x-offset);width:var(--option-modal-width,295px);z-index:100000}.ct-option-modal:before{border-style:solid;content:"";left:var(--option-modal-arrow-position,calc(100% - 55px));position:absolute}.ct-option-modal[data-position=bottom]{top:calc(var(--modal-y-offset) + var(--modal-y-offset-plus, 13px));transform-origin:center top}.ct-option-modal[data-position=bottom]:before{border-color:transparent transparent #ddd;border-width:0 6px 7px;top:-7px}.ct-option-modal[data-position=top]{bottom:calc(var(--modal-y-offset) + var(--modal-y-offset-plus, 13px));transform-origin:center bottom}.ct-option-modal[data-position=top]:before{border-color:#fff transparent transparent;border-width:7px 6px 0;bottom:-7px}.wp-customizer .ct-option-modal{z-index:500000}.ct-control .ct-upload-button{background:rgba(0,0,0,.02);border:1px dashed #c1c4ca;border-radius:3px;box-shadow:none;padding:5px 0;width:100%}.ct-control .ct-upload-button:hover{background:#fbfbfc}.ct-control .ct-upload-button:active{transform:none}@keyframes shake{0%{transform:translateZ(0)}2.59259%{transform:translate3d(-1px,0,0)}5.18519%{transform:translate3d(1.5px,0,0)}7.77778%{transform:translate3d(-2px,0,0)}10.37037%{transform:translate3d(2px,0,0)}12.96296%{transform:translate3d(-2px,0,0)}15.55556%{transform:translate3d(2px,0,0)}18.14815%{transform:translate3d(-2px,0,0)}20.74074%{transform:translate3d(1.5px,0,0)}23.33333%{transform:translate3d(-1px,0,0)}25.92593%{transform:translateZ(0)}to{transform:translateZ(0)}}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}:root{--reach-dialog:1;--modal-width:600px;--modal-padding:50px;--modal-margin:5vh auto;--modal-radius:5px;--modal-max-height:85vh;--modal-min-height:400px}.ct-dashboard-overlay-open{overflow:hidden!important}[data-reach-dialog-overlay]{align-items:center;background:rgba(245,247,249,.8);bottom:0;display:flex;left:var(--modal-left,160px);overflow:auto;position:fixed;right:0;top:0;z-index:999}.folded [data-reach-dialog-overlay]{--modal-left:36px}@media(max-width:782px){.auto-fold [data-reach-dialog-overlay]{--modal-left:0}}@media(min-width:783px)and (max-width:960px){.auto-fold [data-reach-dialog-overlay]{--modal-left:36px}}.ct-modal-list{list-style:initial;margin:0;padding-left:20px}.ct-modal-list li{line-height:1.5;margin-bottom:2em}.ct-modal-list li:last-child{margin-bottom:0}.ct-modal-list li i{display:block;line-height:1.7}.rara-modal-actions{margin-top:25px}.rara-modal-actions button svg{margin-top:11px}.rara-modal-actions .button-primary{font-size:14px;font-weight:500;min-height:40px;width:100%}.rara-modal-actions.has-divider{margin-bottom:-10px;margin-top:auto;padding-top:calc(var(--modal-padding) - 10px);position:relative}.rara-modal-actions.has-divider:before{background:var(--optionBorderColor);content:"";height:1px;left:calc(var(--modal-padding)*-1);position:absolute;top:0;width:var(--modal-width)}.rara-modal-actions[data-buttons="2"]{grid-column-gap:20px;display:grid;grid-template-columns:repeat(2,1fr)}.ct-divider[data-type=full-modal]{margin:30px 0}.ct-divider[data-type=full-modal]:before{margin-left:calc(var(--modal-padding)*-1);width:var(--modal-width)}.extension-notice{border:2px dashed #dfe3e6;border-radius:5px;color:#717a84;line-height:1.5;margin-top:30px;max-height:300px;overflow-y:scroll;padding:20px}.extension-notice h3{font-size:15px;margin-top:0}.ct-modal-scroll{margin:0 calc(var(--modal-padding)*-1);overflow:auto;padding:0 var(--modal-padding)}.ct-tabs-scroll{margin:0 calc(var(--modal-padding)*-1)}.ct-tabs-scroll,.ct-tabs-scroll .ct-tabs{display:flex;flex-direction:column;overflow:hidden}.ct-tabs-scroll .ct-tabs{--tabs-container-margin:20px 0 0 0;--tabs-pills-margin:0 var(--modal-padding);padding-top:1px}.ct-tabs-scroll .ct-current-tab{overflow:auto;padding:15px var(--modal-padding) 35px var(--modal-padding)}.ct-image-picker[data-usage=totop] li span svg{fill:none;stroke:#565d66}.ct-image-picker[data-usage=totop] li:last-child span svg{fill:#565d66;stroke:none}.ct-image-picker[data-usage=totop] li.active span svg{fill:none;stroke:#565d66}.ct-image-picker[data-usage=totop] li.active:last-child span svg{fill:#565d66;stroke:none}#customize-control-typography_section_options .ct-divider{display:none}#customize-control-layouts_seooptions_options .ct-image-picker li:before,[data-usage=totop].ct-image-picker li:before{padding:35% 0}#customize-control-layouts_seooptions_options .ct-image-picker li span svg{fill:#565d66}#wheelOfLifeAdminRoot{background-color:var(--bg-color);height:calc(100vh - 72px);margin-bottom:-65px;margin-left:-20px;position:relative}#wheelOfLifeAdminRoot,#wheeloflife__modal{color:var(--font-color);font-family:var(--primary-font);font-size:1rem;line-height:1.5}#wheelOfLifeAdminRoot h1,#wheelOfLifeAdminRoot h2,#wheelOfLifeAdminRoot h3,#wheelOfLifeAdminRoot h4,#wheelOfLifeAdminRoot h5,#wheelOfLifeAdminRoot h6,#wheeloflife__modal h1,#wheeloflife__modal h2,#wheeloflife__modal h3,#wheeloflife__modal h4,#wheeloflife__modal h5,#wheeloflife__modal h6{font-weight:400;line-height:1.2}#wheelOfLifeAdminRoot p,#wheeloflife__modal p{color:var(--font-color);font-size:1rem}#wheelOfLifeAdminRoot ol,#wheelOfLifeAdminRoot ul,#wheeloflife__modal ol,#wheeloflife__modal ul{margin-bottom:0}#wheelOfLifeAdminRoot .placeholder-copy-list,#wheeloflife__modal .placeholder-copy-list{margin-top:1.5rem}#wheelOfLifeAdminRoot .placeholder-copy-list li,#wheeloflife__modal .placeholder-copy-list li{margin-bottom:1.5rem}#wheelOfLifeAdminRoot .placeholder-copy-list li:last-child,#wheeloflife__modal .placeholder-copy-list li:last-child{margin-bottom:0}#wheelOfLifeAdminRoot input[type=checkbox]:not(.switch),#wheeloflife__modal input[type=checkbox]:not(.switch){align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid var(--gray-300);border-radius:.25rem;box-shadow:none;display:flex;height:20px;justify-content:center;transition:all .3s ease;width:20px}#wheelOfLifeAdminRoot input[type=checkbox]:not(.switch):checked,#wheeloflife__modal input[type=checkbox]:not(.switch):checked{background:var(--primary-color);border-color:var(--primary-color)}#wheelOfLifeAdminRoot input[type=checkbox]:not(.switch):checked:before,#wheeloflife__modal input[type=checkbox]:not(.switch):checked:before{content:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2712%27 height=%279%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M11 1 4.125 8 1 4.818%27 stroke=%27%23fff%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");height:unset;margin:0;width:unset}#wheelOfLifeAdminRoot input[type=checkbox]:not(.switch).wheeloflife-bulk-checkbox:checked:before,#wheeloflife__modal input[type=checkbox]:not(.switch).wheeloflife-bulk-checkbox:checked:before{content:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2716%27 height=%272%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Crect width=%2716%27 height=%272%27 rx=%271%27 fill=%27%23fff%27/%3E%3C/svg%3E");height:inherit;line-height:1}#wheelOfLifeAdminRoot .text-nowrap,#wheeloflife__modal .text-nowrap{white-space:nowrap}.wheeloflife-bulk-container{background:#fff;border-top:1px solid var(--gray-200);bottom:0;box-shadow:0 8px 20px rgba(38,41,51,.05);left:0;padding:1rem 3rem;position:absolute;right:0;width:100%;z-index:11}.wheeloflife-bulk-container .wheeloflife-bulk-wrapper{display:flex}.wheeloflife-bulk-container .wheeloflife-bulk-wrapper .wheeloflife-bulk-content .selected-items{margin-right:1rem}.wheeloflife-bulk-container .wheeloflife-bulk-wrapper .bulk-cancel-btn{margin-left:1rem}.wheeloflife-main-wrapper{display:flex;height:100%;position:relative}.wheeloflife-main-wrapper.has-sidebar{padding-left:var(--wol-sidebar-width);transition:all .3s ease}.wheeloflife-main-wrapper.has-sidebar .wheeloflife-bulk-container{left:var(--wol-sidebar-width);transition:all .3s ease;width:calc(100% - var(--wol-sidebar-width))}.wheeloflife-main-wrapper .wheeloflife-inner-wrapper{flex:1;max-height:100%;overflow:auto;padding:0 3rem 3rem}.wheeloflife-main-wrapper .wheeloflife-inner-wrapper>*{display:flex;flex-direction:column}.wheeloflife-main-wrapper .wheeloflife-search-form{display:inline-block;position:relative}.wheeloflife-main-wrapper .wheeloflife-search-form input[type=search],.wheeloflife-main-wrapper .wheeloflife-search-form input[type=text]{padding-right:2.5rem}.wheeloflife-main-wrapper .wheeloflife-search-form button{background:none;border-color:transparent;padding:.5rem .625rem;position:absolute;right:0;top:0}.wheeloflife-title-wrap{align-items:center;display:flex;padding:1rem}.wheeloflife-icon{margin-right:.5rem}.wheeloflife-title{color:var(--gray-600);margin:0}.wheeloflife-header-wrap{align-items:center;background-color:var(--gray-100);display:flex;flex-wrap:wrap;justify-content:space-between;padding-bottom:1.5rem;padding-top:3rem;position:sticky;top:0;z-index:111}.wheeloflife-header-wrap .wheeloflife-title{font-size:2.5rem;font-weight:400;margin:0}#wheelOfLifeAdminRoot select,input[type=date],input[type=email],input[type=number],input[type=search],input[type=text],input[type=url],select.wheeloflife-select,textarea{border:1px solid var(--gray-300);border-radius:.25rem;font-size:1rem;font-weight:400;line-height:1.4;max-width:100%;padding:.5rem 1rem;width:100%}#wheelOfLifeAdminRoot select:focus,input[type=date]:focus,input[type=email]:focus,input[type=number]:focus,input[type=search]:focus,input[type=text]:focus,input[type=url]:focus,select.wheeloflife-select:focus,textarea:focus{border-color:var(--primary-color);box-shadow:0 0 5px var(--primary-light-color)}#wheelOfLifeAdminRoot select::-webkit-placeholder,input[type=date]::-webkit-placeholder,input[type=email]::-webkit-placeholder,input[type=number]::-webkit-placeholder,input[type=search]::-webkit-placeholder,input[type=text]::-webkit-placeholder,input[type=url]::-webkit-placeholder,select.wheeloflife-select::-webkit-placeholder,textarea::-webkit-placeholder{color:var(--gray-400);font-weight:400}#wheelOfLifeAdminRoot select::-moz-placeholder,input[type=date]::-moz-placeholder,input[type=email]::-moz-placeholder,input[type=number]::-moz-placeholder,input[type=search]::-moz-placeholder,input[type=text]::-moz-placeholder,input[type=url]::-moz-placeholder,select.wheeloflife-select::-moz-placeholder,textarea::-moz-placeholder{color:var(--gray-400);font-weight:400}#wheelOfLifeAdminRoot select::placeholder,input[type=date]::placeholder,input[type=email]::placeholder,input[type=number]::placeholder,input[type=search]::placeholder,input[type=text]::placeholder,input[type=url]::placeholder,select.wheeloflife-select::placeholder,textarea::placeholder{color:var(--gray-400);font-weight:400}#wheelOfLifeAdminRoot select:-moz-read-only,input[type=date]:-moz-read-only,input[type=email]:-moz-read-only,input[type=number]:-moz-read-only,input[type=search]:-moz-read-only,input[type=text]:-moz-read-only,input[type=url]:-moz-read-only,select.wheeloflife-select:-moz-read-only,textarea:-moz-read-only{background-color:var(--bg-color);color:var(--font-color)}#wheelOfLifeAdminRoot select:read-only,input[type=date]:read-only,input[type=email]:read-only,input[type=number]:read-only,input[type=search]:read-only,input[type=text]:read-only,input[type=url]:read-only,select.wheeloflife-select:read-only,textarea:read-only{background-color:var(--bg-color);color:var(--font-color)}input[type=date],input[type=email],input[type=number],input[type=search],input[type=text],input[type=url],select.wheeloflife-select{max-height:40px}.css-2b097c-container .css-b8ldur-Input,.wheeloflife-select .css-b8ldur-Input{margin:0}.css-2b097c-container .css-yk16xz-control,.wheeloflife-select .css-yk16xz-control{border-color:var(--gray-300)}#wheelOfLifeAdminRoot select,select.wheeloflife-select{padding-right:1.5rem}input[type=checkbox]{border:1px solid var(--gray-300);border-radius:.25rem;box-shadow:none;height:20px;width:20px}input[type=checkbox]:checked:before{height:1.25rem;margin-left:-.063rem;margin-top:-.063rem;width:1.25rem}.wheeloflife-tabnav{display:flex;flex-wrap:wrap;justify-content:space-between;padding-bottom:1.5rem;width:100%;z-index:11}.wheeloflife-tabnav.tab-borderd{border-bottom:1px solid var(--gray-200);margin:0 -1.5rem 1rem;padding:0 1.5rem;width:unset}.wheeloflife-tabnav.tab-sticky{position:sticky;top:0}.wheeloflife-tabnav.tab-bg{background-color:var(--gray-100)}.wheeloflife-tabnav .wheeloflife-actions{align-items:center;display:flex;flex-wrap:wrap;position:relative}.wheeloflife-tabnav .wheeloflife-actions button{border:none;border-radius:0;margin-right:2rem;padding:0 0 1rem;position:relative}.wheeloflife-tabnav .wheeloflife-actions button.active{color:var(--primary-color)}.wheeloflife-tabnav .wheeloflife-actions button:active{background:none}.wheeloflife-tabnav .wheeloflife-actions button .wheeloflife-list-items{align-items:center;background-color:var(--gray-300);border-radius:50%;color:var(--gray-600);display:inline-flex;font-size:.875rem;height:24px;justify-content:center;line-height:1.4;margin-left:.375rem;pointer-events:none;width:24px}.wheeloflife-tabnav .wheeloflife-actions .action-active-line{background:var(--primary-color);border-radius:2px 2px 0 0;bottom:0;height:2px;position:absolute;transition:all .3s ease;z-index:1}#global-settings-tab,#wheel-lists-tab,#wheel-submission-tab{top:120px}.wheeloflife-table-wrapper{background-color:#fff;border:1px solid var(--gray-200);border-collapse:collapse;border-radius:.5rem;margin-bottom:1.5rem}.wheeloflife-table-wrapper .wheeloflife-pagination{justify-content:flex-end}.wheeloflife-table-wrapper a{color:var(--primary-color);text-decoration:none}.wheeloflife-table-wrapper a:hover{text-decoration:underline}.wheeloflife-table-wrapper.table-responsive{overflow:auto;scrollbar-color:var(--gray-400) var(--gray-100);scrollbar-width:thin}.wheeloflife-table-wrapper.table-responsive::-webkit-scrollbar{height:6px;width:6px}.wheeloflife-table-wrapper.table-responsive::-webkit-scrollbar-track{background:var(--gray-100)}.wheeloflife-table-wrapper.table-responsive::-webkit-scrollbar-thumb{background:var(--gray-400);border-radius:6px}.wheeloflife-table-wrapper.has-table-header .wheeloflife-table-header{border-bottom:1px solid var(--gray-200);display:flex;flex-wrap:wrap;justify-content:space-between;padding:1rem 1.5rem}.wheeloflife-table-wrapper.has-table-header .wheeloflife-table-header .wheeloflife-table-title-wrap{align-items:center;display:flex}.wheeloflife-table-wrapper.has-table-header .wheeloflife-table-header .wheeloflife-title{font-size:1.25rem;line-height:1.6}.wheeloflife-table-wrapper.has-table-header .wheeloflife-table-header .wheeloflife-table-row-count{background:var(--gray-200);border-radius:.25rem;color:var(--gray-600);font-size:1rem;line-height:1.5;margin-left:1rem;padding:0 .5rem}.wheeloflife-table-wrapper.has-table-header .wheeloflife-table-header input[type=search]{width:320px}.wheeloflife-table-wrapper.has-table-header thead th{background:var(--gray-100)}.wheeloflife-table{border-collapse:collapse;text-align:left;width:100%}.wheeloflife-table t d,.wheeloflife-table th{border-bottom:1px solid var(--gray-200);font-size:1rem;padding:1rem 1.5rem}.wheeloflife-table td.date,.wheeloflife-table th.date{background:#fff;left:0;position:sticky;white-space:nowrap;z-index:111}.wheeloflife-table th{background:#fff;color:var(--font-color);font-weight:500;position:sticky;top:0;white-space:nowrap;z-index:11}.wheeloflife-table td{color:var(--gray-600)}.wheeloflife-table td.date{z-index:1}.wheeloflife-table tr:first-child th:first-child{border-top-left-radius:.5rem}.wheeloflife-table tr:first-child th:last-child{border-top-right-radius:.5rem}.wheeloflife-table tr:last-child td{border-bottom:none}.wheeloflife-table tr:last-child td:first-child{border-bottom-left-radius:.5rem}.wheeloflife-table tr:last-child td:last-child{border-bottom-right-radius:.5rem}.wheeloflife-table .visibility{background:orange;border-radius:1.5rem;color:#fff;display:inline-block;font-size:.65rem;font-weight:500;letter-spacing:1px;line-height:1;margin-left:.5rem;padding:.25rem .75rem;vertical-align:middle}.wheeloflife-table .cell-info{color:var(--gray-500);display:block;font-size:.875rem}.wheeloflife-status{border-radius:.75rem;font-size:.875rem;line-height:1.4;padding:.125rem .5rem}.wheeloflife-status.draft{background-color:var(--gray-300)}.wheeloflife-status.published{background-color:var(--green);color:#fff}.wheeloflife-shortcode-wrap{display:inline-block;position:relative}.wheeloflife-shortcode-wrap input{padding-right:2.5rem}.wheeloflife-shortcode-wrap button{border-bottom-left-radius:0;border-color:transparent;border-left:1px solid var(--gray-300);border-top-left-radius:0;padding:.5rem .625rem;position:absolute;right:0;top:0;z-index:0}.wheeloflife-shortcode-wrap .copy-info{animation:fadeInUpInfo .1s ease-in;background-color:rgba(38,41,51,.8);border-radius:.25rem;bottom:100%;color:#fff;font-size:.875rem;line-height:1.7;margin-bottom:1.188rem;padding:.5rem 1rem;position:absolute;right:46px;transform:translateX(50%);white-space:nowrap;z-index:11}@keyframes fadeInUpInfo{0%{opacity:0;transform:translate(50%,15px)}to{opacity:1;transform:translate(50%)}}.wheeloflife-shortcode-wrap .copy-info:before{border:6px solid transparent;border-top-color:rgba(38,41,51,.8);content:"";left:50%;position:absolute;top:100%;transform:translateX(-50%)}.copy-clipboard-wrap{align-items:center;display:flex}.copy-clipboard-wrap p{background:var(--gray-200);border:1px solid var(--gray-300);border-radius:.25rem 0 0 .25rem;border-right:0;line-height:1.4;margin:0;min-width:200px;padding:.5rem}.copy-clipboard-wrap .wheeloflife-copy-btn{border-radius:0 .25rem .25rem 0}.wheeloflife-shocial-icon{align-items:center;display:inline-flex;margin-right:1rem}.wheeloflife-shocial-icon .icon{margin-right:.5rem;width:2.5rem}.wheeloflife-shocial-icon .social-icon-name{font-size:1rem}.mt-0{margin-top:0!important}.wheeloflife-icon-picker{display:inline-block;margin-right:1rem;vertical-align:middle}.wheeloflife-icon-picker>div{border:1px solid var(--gray-300);height:40px;width:40px}.wheeloflife-icon-picker>div>div{font-size:20px!important;line-height:1}.wheeloflife-icon-picker>div>div:nth-child(2){border:1px solid var(--gray-300);box-shadow:0 16px 24px rgba(0,0,0,.02);font-size:1rem;justify-content:space-between;padding:1rem;width:250px}.wheeloflife-icon-picker>div>div:nth-child(2)::-webkit-scrollbar{height:.375rem;width:.375rem}.wheeloflife-icon-picker>div>div:nth-child(2)::-webkit-scrollbar-track{background-color:var(--gray-200);border-radius:.375rem}.wheeloflife-icon-picker>div>div:nth-child(2)::-webkit-scrollbar-thumb{background-color:var(--gray-400);border-radius:.375rem}.wheeloflife-icon-picker>div>div:nth-child(2) input{border:1px solid var(--gray-300);border-radius:.25rem;box-shadow:0 -16px 0 26px #fff;font-size:1rem;font-weight:400;line-height:1.4;margin-bottom:1rem;max-width:100%;padding:.5rem 1rem;position:sticky;top:0;width:100%}.wheeloflife-icon-picker>div>div:nth-child(2)>div{align-items:center;border:1px solid var(--gray-300);border-radius:.25rem;display:flex;font-size:20px!important;height:32px;justify-content:center;margin-bottom:4px;max-width:32px;text-align:center;width:20%}.wheeloflife-color-picker-single>span span{align-items:center;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);cursor:pointer;display:flex;height:inherit;justify-content:center;position:relative;text-decoration:none;width:inherit}.wheeloflife-field .wheeloflife-color-picker-container{display:inline-block}.wheeloflife-field .wheeloflife-color-picker-container .wheeloflife-color-picker-single{align-items:center;border:1px solid var(--gray-300);border-radius:.25rem;display:inline-flex;height:40px;justify-content:center;margin-right:1rem;padding:.5rem;vertical-align:middle;width:40px}.wheeloflife-field .wheeloflife-color-picker-container .wheeloflife-color-picker-single>span{box-shadow:0 0 0 1px var(--gray-300);display:block;height:24px;width:24px}.wheeloflife-field .wheeloflife-user-wrap{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between}.wheeloflife-field .wheeloflife-user-wrap .wheeloflife-user-preview{align-items:center;display:flex;margin-right:1rem}.wheeloflife-field .wheeloflife-user-wrap .wheeloflife-user-preview .user-avatar{background:var(--primary-light-color);border-radius:50%;display:block;flex:0 0 96px;height:96px;margin-right:1rem;overflow:hidden;width:96px}.wheeloflife-field .wheeloflife-user-wrap .wheeloflife-user-preview .user-avatar img,.wheeloflife-field .wheeloflife-user-wrap .wheeloflife-user-preview .user-avatar svg{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.wheeloflife-field .wheeloflife-user-wrap .wheeloflife-user-preview .user-name{color:var(--gray-600);display:block;font-size:1.5rem;font-weight:500}.wheeloflife-field .wheeloflife-user-wrap .wheeloflife-user-preview .user-email{color:var(--gray-500);font-size:1rem}.wheeloflife-field .wheeloflife-user-wrap .wheeloflife-user-preview label{margin:0}.wheeloflife-field .wheeloflife-error-msg{align-self:flex-start;animation:fadeInDown .1s ease;background:rgba(255,0,0,.1);border-radius:.25rem;display:inline-block;font-size:.875rem;margin-top:.5rem;padding:.25rem .5rem;position:relative}.wheeloflife-field .wheeloflife-error-msg:before{border:5px solid transparent;border-bottom-color:rgba(255,0,0,.1);bottom:100%;content:"";left:1rem;position:absolute}.wheeloflife-field .wheeloflife-success-msg{align-self:flex-start;animation:fadeInDown .1s ease;background:rgba(0,128,0,.1);border-radius:.25rem;display:inline-block;font-size:.875rem;margin-top:.5rem;padding:.25rem .5rem;position:relative}.wheeloflife-field .wheeloflife-success-msg:before{border:5px solid transparent;border-bottom-color:rgba(0,128,0,.1);bottom:100%;content:"";left:1rem;position:absolute}.wheeloflife-field .wheeloflife-success-msg svg{margin-right:.5rem;vertical-align:middle}.wheeloflife-field .wheeloflife-success-msg path{stroke:green}.wheeloflife-field .wheeloflife-info-msg{align-items:center;display:flex;font-size:.875rem;margin-bottom:.5rem}.wheeloflife-field .wheeloflife-info-msg svg{margin-right:.5rem}.wheeloflife-field .wheeloflife-info-msg path{stroke:#306eff}.wheeloflife-row{display:flex;flex-wrap:wrap;margin:0 -.75rem}.wheeloflife-row .wheeloflife-col{padding:0 .75rem;width:100%}.wheeloflife-row.cols-2 .wheeloflife-col,.wheeloflife-row.cols-4 .wheeloflife-col{flex:0 0 50%;max-width:50%}@media(min-width:1200px){.wheeloflife-row.cols-4 .wheeloflife-col{flex:0 0 25%;max-width:25%}}.wheeloflife-pagination{align-items:center;border-top:1px solid var(--gray-200);color:var(--gray-500);display:flex;flex-wrap:wrap;font-size:1rem;padding:1rem 1.5rem}.wheeloflife-pagination span{display:inline-block}.wheeloflife-pagination span:not(:last-child){margin-right:1rem}.wheeloflife-pagination .page-btn{background-position:50%;background-repeat:no-repeat;border:1px solid var(--gray-300);border-radius:.25rem;cursor:pointer;height:32px;transition:all .3s ease;width:32px}.wheeloflife-pagination .page-btn:hover{background:var(--primary-color);background-position:50%;background-repeat:no-repeat}.wheeloflife-pagination .prev-btn{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%278%27 height=%2712%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27m6.5 11-5-5 5-5%27 stroke=%27%23A3AABF%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E")}.wheeloflife-pagination .prev-btn:hover{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%278%27 height=%2712%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27m6.5 11-5-5 5-5%27 stroke=%27%23fff%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E")}.wheeloflife-pagination .next-btn{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%278%27 height=%2712%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27m1.5 1 5 5-5 5%27 stroke=%27%23A3AABF%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E")}.wheeloflife-pagination .next-btn:hover{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%278%27 height=%2712%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27m1.5 1 5 5-5 5%27 stroke=%27%23fff%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E")}a.wheeloflife-tooltip{align-items:center;background:none;color:#fff;cursor:pointer;display:inline-flex;height:unset;line-height:1;margin:0 .5rem;opacity:1;padding:0;pointer-events:all;position:relative;vertical-align:middle;visibility:visible;z-index:1}a.wheeloflife-tooltip:after,a.wheeloflife-tooltip:before{content:none}a.wheeloflife-tooltip i{vertical-align:top}a.wheeloflife-tooltip .info-text{background:#363f42;border-radius:.125rem;bottom:100%;left:50%;margin:auto auto -5px;opacity:0;padding:.25rem .5rem;position:absolute;transform:translateX(-50%);transition:all .3s ease;visibility:hidden;white-space:nowrap}a.wheeloflife-tooltip .info-text:before{border:5px solid transparent;border-top-color:#363f42;content:"";left:50%;position:absolute;top:100%;transform:translateX(-50%)}a.wheeloflife-tooltip:hover .info-text{margin-bottom:5px;opacity:1;visibility:visible}a.wheeloflife-tooltip:hover svg path{stroke:var(--primary-color)}[class*=-ValueContainer] [class*=-singleValue]{max-width:calc(100% - 15px)}1 .wheeloflife-sidebar-main{background-color:#fff;box-shadow:0 8px 20px rgba(38,41,51,.05);display:flex;flex-direction:column;height:100%;left:0;padding:1rem;position:absolute;top:0;transition:all .3s ease;width:320px;z-index:1111}.wheeloflife-sidebar-main .wheeloflife-sidebar-footer-wrapper svg{color:var(--gray-500)}.wheeloflife-sidebar-main .wheeloflife-sidebar-footer-wrapper svg path{stroke:var(--gray-500)}.wheeloflife-sidebar-main .wol-sidebar-toggle-btn{border:none;border-radius:50%;box-shadow:0 0 25px rgba(0,0,0,.06);height:50px;padding:0;position:absolute;right:-25px;top:31px;width:50px;z-index:11}.wheeloflife-sidebar-main .wol-sidebar-toggle-btn.collapsed-in{transform:rotate(180deg)}.wheeloflife-sidebar-main .wol-sidebar-toggle-btn svg{height:100%;max-height:unset;pointer-events:none;width:100%}.wheeloflife-sidebar-main .wol-sidebar-toggle-btn svg line,.wheeloflife-sidebar-main .wol-sidebar-toggle-btn svg path{fill:none;transition:all .3s ease}.wheeloflife-sidebar-main .wol-sidebar-toggle-btn:hover line,.wheeloflife-sidebar-main .wol-sidebar-toggle-btn:hover path{stroke:var(--primary-color);opacity:1}.wheeloflife-sidebar-main .wheeloflife-brand-wrap{align-items:center;color:var(--gray-600);display:flex;font-size:1.5rem;font-weight:700;justify-content:center;margin-bottom:2.25rem;margin-top:1.25rem;overflow:hidden}.wheeloflife-sidebar-main .wheeloflife-brand-wrap svg{flex:0 0 40px;width:40px}.wheeloflife-sidebar-main .wheeloflife-brand-name{margin-left:.75rem;transition:all .3s ease;white-space:nowrap}.wheeloflife-sidebar-main .wheeloflife-btn{white-space:nowrap;width:100%}.wheeloflife-sidebar-main .wheeloflife-btn i{display:inline-block;margin-right:.5rem;vertical-align:middle}.wheeloflife-sidebar-main .wheeloflife-btn svg path,.wheeloflife-sidebar-main .wheeloflife-btn:hover svg path{stroke:#fff}.wheeloflife-sidebar-main .wheeloflife-sidebar-inner-wrapper{flex:1}.wheeloflife-sidebar-main .wheeloflife-upgrade-container .wheeloflife-title a{color:var(--gray-600);text-decoration:none}.wheeloflife-sidebar-main .wheeloflife-upgrade-container .wheeloflife-title a:hover{color:var(--primary-color)}.wheeloflife-sidebar-main .wheeloflife-upgrade-area .wheeloflife-title-wrap{background:var(--primary-color);border-radius:.25rem;cursor:pointer;display:none;justify-content:center}.wheeloflife-sidebar-main .wheeloflife-upgrade-area .upgrade-icon{flex:0 0 24px;margin:0}.wheeloflife-sidebar-main .wheeloflife-upgrade-area .upgrade-icon svg path{stroke:none;fill:#fff}.wheeloflife-sidebar-main .wheeloflife-upgrade-box{background-color:var(--primary-light-color);border-radius:.25rem;color:#282828;padding:1rem}.wheeloflife-sidebar-main .wheeloflife-upgrade-box p{color:#282828!important;margin-top:0}.wheeloflife-sidebar-main .wheeloflife-upgrade-box .wheeloflife-btn{display:block;font-weight:500;margin-top:1rem;text-decoration:none}body.wol-sidebar-collapsed .wheeloflife-sidebar-main{width:85px}body.wol-sidebar-collapsed .wheeloflife-sidebar-main .wheeloflife-brand-name{opacity:0;position:absolute;visibility:hidden;width:0}body.wol-sidebar-collapsed .wheeloflife-sidebar-main .wheeloflife-btn{position:relative}body.wol-sidebar-collapsed .wheeloflife-sidebar-main .wheeloflife-btn .btn-label{background:var(--primary-light-color);border-radius:.25rem;color:var(--primary-color);display:inline-block;left:100%;margin-left:0;opacity:0;padding:.5rem 1rem;position:absolute;top:50%;transform:translateY(-50%);transition:all .3s ease;visibility:hidden}body.wol-sidebar-collapsed .wheeloflife-sidebar-main .wheeloflife-btn .btn-label:before{border:5px solid transparent;border-right:5px solid var(--primary-light-color);content:"";position:absolute;right:100%;top:50%;transform:translateY(-50%)}body.wol-sidebar-collapsed .wheeloflife-sidebar-main .wheeloflife-btn:hover .btn-label{margin-left:1rem;opacity:1;visibility:visible}body.wol-sidebar-collapsed .wheeloflife-sidebar-main .wheeloflife-upgrade-container .wheeloflife-title-wrap{position:relative}body.wol-sidebar-collapsed .wheeloflife-sidebar-main .wheeloflife-upgrade-container .wheeloflife-title-wrap a{background:var(--primary-light-color);border-radius:.25rem;display:inline-block;left:100%;margin-left:0;opacity:0;padding:.5rem 1rem;position:absolute;top:50%;transform:translateY(-50%);transition:all .3s ease;visibility:hidden}body.wol-sidebar-collapsed .wheeloflife-sidebar-main .wheeloflife-upgrade-container .wheeloflife-title-wrap a:before{border:5px solid transparent;border-right:5px solid var(--primary-light-color);content:"";position:absolute;right:100%;top:50%;transform:translateY(-50%)}body.wol-sidebar-collapsed .wheeloflife-sidebar-main .wheeloflife-upgrade-container .wheeloflife-title-wrap:hover a{margin-left:1rem;opacity:1;visibility:visible}body.wol-sidebar-collapsed .wheeloflife-sidebar-main .wheeloflife-upgrade-container .wheeloflife-upgrade-area{position:relative}body.wol-sidebar-collapsed .wheeloflife-sidebar-main .wheeloflife-upgrade-container .wheeloflife-upgrade-area .wheeloflife-title-wrap{display:flex}body.wol-sidebar-collapsed .wheeloflife-sidebar-main .wheeloflife-upgrade-container .wheeloflife-upgrade-area .wheeloflife-upgrade-box{bottom:0;left:100%;opacity:0;position:absolute;transition:all .3s ease;visibility:hidden;width:288px}body.wol-sidebar-collapsed .wheeloflife-sidebar-main .wheeloflife-upgrade-container .wheeloflife-upgrade-area .wheeloflife-upgrade-box:before{border:5px solid transparent;border-right:5px solid var(--primary-light-color);bottom:25px;content:"";position:absolute;right:100%}body.wol-sidebar-collapsed .wheeloflife-sidebar-main .wheeloflife-upgrade-container .wheeloflife-upgrade-area:hover .wheeloflife-upgrade-box{margin-left:1rem;opacity:1;visibility:visible}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeInDown{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInRight{0%{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}@keyframes popup{0%{transform:scale(0)}80%{transform:scale(1.2)}to{transform:scale(1)}}@keyframes cw-loader-spinner{0%{transform:rotate(0turn)}to{transform:rotate(1turn)}}.fadeInUp{animation:fadeInUp .5s cubic-bezier(.23,1,.32,1)}.fadeIn{animation:fadeIn .5s cubic-bezier(.23,1,.32,1)}.fadeInRight{animation:fadeInRight .5s cubic-bezier(.23,1,.32,1)}.cw-loader{display:flex}.cw-loader:after{animation:cw-loader-spinner .9s ease infinite;border:2px solid rgba(0,0,0,.2);border-radius:50%;border-top-color:#000;content:"";display:block;height:16px;margin:auto auto auto .5rem;width:16px}.wheeloflife-wheel-list-wrapper{display:flex;flex-wrap:wrap;justify-content:space-between;position:relative}.wheeloflife-wheel-list-wrapper>.wheeloflife-list-items{position:absolute;right:10px;top:0;z-index:11}.wheeloflife-wheel-list-wrapper .wheeloflife-table-wrapper{width:100%}.wheeloflife-wheel-list-wrapper .wheeloflife-table-wrapper .wheeloflife-table td a,.wheeloflife-wheel-list-wrapper .wheeloflife-table-wrapper .wheeloflife-table th a{color:inherit;cursor:pointer;display:block}.wheeloflife-wheel-list-wrapper .wheeloflife-table-wrapper .wheeloflife-table td a:hover,.wheeloflife-wheel-list-wrapper .wheeloflife-table-wrapper .wheeloflife-table th a:hover{color:var(--primary-color)}.wheeloflife-wheel-list-wrapper .wheeloflife-table-wrapper .wheeloflife-table td.wheeloflife-title-col,.wheeloflife-wheel-list-wrapper .wheeloflife-table-wrapper .wheeloflife-table th.wheeloflife-title-col{width:40%}.wheeloflife-wheel-list-wrapper .wheeloflife-table-wrapper .wheeloflife-table td.wheeloflife-shortcode-col,.wheeloflife-wheel-list-wrapper .wheeloflife-table-wrapper .wheeloflife-table th.wheeloflife-shortcode-col{width:30%}.wheeloflife-wheel-list-wrapper .wheeloflife-table-wrapper .wheeloflife-table td.wheeloflife-date-col,.wheeloflife-wheel-list-wrapper .wheeloflife-table-wrapper .wheeloflife-table th.wheeloflife-date-col{width:24%}.wheeloflife-wheel-list-wrapper .wheeloflife-table-wrapper .wheeloflife-table td.wheeloflife-status-col,.wheeloflife-wheel-list-wrapper .wheeloflife-table-wrapper .wheeloflife-table th.wheeloflife-status-col{min-width:115px}.wheeloflife-wheel-list-wrapper .wheeloflife-table-wrapper .wheeloflife-table td.wheeloflife-action-col,.wheeloflife-wheel-list-wrapper .wheeloflife-table-wrapper .wheeloflife-table th.wheeloflife-action-col{text-align:center}.wheeloflife-menu-wrap .wheeloflife-menu-list a{align-items:center;border:1px solid transparent;border-radius:.25rem;color:inherit;display:flex;opacity:.5;padding:.5rem 1rem;pointer-events:none;text-decoration:none;white-space:nowrap}.wheeloflife-menu-wrap .wheeloflife-menu-list a:link,.wheeloflife-menu-wrap .wheeloflife-menu-list a:visited{opacity:1;pointer-events:all}.wheeloflife-menu-wrap .wheeloflife-menu-list a:active,.wheeloflife-menu-wrap .wheeloflife-menu-list a:focus{border-color:var(--primary-light-color);box-shadow:0 0 5px var(--primary-light-color);color:var(--primary-color)}.wheeloflife-menu-wrap .wheeloflife-menu-list li{position:relative}.wheeloflife-menu-wrap .wheeloflife-menu-list li i{display:inline-flex;font-size:20px;margin-right:.5rem}.wheeloflife-menu-wrap .wheeloflife-menu-list li svg{height:1em;vertical-align:middle;width:1em}.wheeloflife-menu-wrap .wheeloflife-menu-list li svg circle,.wheeloflife-menu-wrap .wheeloflife-menu-list li svg path{stroke:var(--gray-500)}.wheeloflife-menu-wrap .wheeloflife-menu-list li:hover a:link,.wheeloflife-menu-wrap .wheeloflife-menu-list li:hover a:visited{color:var(--primary-color)}.wheeloflife-menu-wrap .wheeloflife-menu-list li:hover svg circle,.wheeloflife-menu-wrap .wheeloflife-menu-list li:hover svg path{stroke:var(--primary-color)}.wheeloflife-menu-wrap .wheeloflife-menu-list li.active a:link,.wheeloflife-menu-wrap .wheeloflife-menu-list li.active a:visited{background-color:var(--primary-light-color);border-color:transparent;box-shadow:none;color:var(--primary-color)}.wheeloflife-menu-wrap .wheeloflife-menu-list li.active svg{color:var(--primary-color)}.wheeloflife-menu-wrap .wheeloflife-menu-list li.active svg circle,.wheeloflife-menu-wrap .wheeloflife-menu-list li.active svg path{stroke:var(--primary-color)}body.wol-sidebar-collapsed .wheeloflife-menu-wrap .wheeloflife-menu-list li .wol-page-label{background:var(--primary-light-color);border-radius:.25rem;display:inline-block;left:100%;margin-left:0;opacity:0;padding:.5rem 1rem;position:absolute;top:50%;transform:translateY(-50%);transition:all .3s ease;visibility:hidden}body.wol-sidebar-collapsed .wheeloflife-menu-wrap .wheeloflife-menu-list li .wol-page-label:before{border:5px solid transparent;border-right:5px solid var(--primary-light-color);content:"";position:absolute;right:100%;top:50%;transform:translateY(-50%)}body.wol-sidebar-collapsed .wheeloflife-menu-wrap .wheeloflife-menu-list li a:hover .wol-page-label{margin-left:1rem;opacity:1;visibility:visible}.wheeloflife-settings-container>.wheeloflife-tabnav{position:relative}.wheeloflife-settings-container>.wheeloflife-tabnav:after{border-bottom:1px solid var(--gray-200);bottom:1.5rem;content:"";height:0;left:0;position:absolute;width:100%}.wheeloflife-settings-container .wheeloflife-social-tab .wheeloflife-field .wheeloflife-shocial-icon{width:324px}#wheeloflife__modal{background:rgba(38,41,51,.3);height:100vh;left:0;position:fixed;top:0;width:100vw;z-index:1111}.wheeloflife-modal-container{background:#fff;border-radius:.5rem;left:0;margin-left:auto;margin-right:auto;max-height:calc(100vh - 2rem);max-width:100%;position:fixed;right:0;top:100px;width:800px}.wheeloflife-modal-container:not(.modal-container-right):not(.modal-container-left){max-height:calc(100vh - 4rem);top:50%;transform:translateY(-50%)}.wheeloflife-modal-container:not(.modal-container-right):not(.modal-container-left) .wheeloflife-modal-footer{padding-top:0}.wheeloflife-modal-container.modal-container-right{border-radius:0;bottom:0;height:calc(100vh - 2rem);left:auto;right:0;top:auto}.wheeloflife-modal-container.modal-container-left{border-radius:0;bottom:0;height:calc(100vh - 2rem);left:0;right:auto;top:auto}.wheeloflife-modal-container .wheeloflife-modal-cancel{background:none;border:none;padding:0;position:absolute;right:1.5rem;top:1.5rem}.wheeloflife-modal-container .wheeloflife-field.flex-row .wheeloflife-field-label{flex:0 0 31.7%;max-width:31.7%}.wheeloflife-modal-container .wheeloflife-modal-wrapper{display:flex;flex-direction:column;height:100%;max-height:100%}.wheeloflife-modal-container .wheeloflife-modal-wrapper>:not(.wheeloflife-modal-header):not(.wheeloflife-modal-footer){flex:1;max-height:100%;overflow:auto}.wheeloflife-modal-container .wheeloflife-modal-wrapper>:not(.wheeloflife-modal-header):not(.wheeloflife-modal-footer)::-webkit-scrollbar{height:.375rem;width:.375rem}.wheeloflife-modal-container .wheeloflife-modal-wrapper>:not(.wheeloflife-modal-header):not(.wheeloflife-modal-footer)::-webkit-scrollbar-track{background-color:var(--gray-200);border-radius:.375rem;opacity:0;-webkit-transition:all .3s ease;transition:all .3s ease;visibility:hidden}.wheeloflife-modal-container .wheeloflife-modal-wrapper>:not(.wheeloflife-modal-header):not(.wheeloflife-modal-footer)::-webkit-scrollbar-thumb{background-color:var(--gray-400);border-radius:.375rem;opacity:0;-webkit-transition:all .3s ease;transition:all .3s ease;visibility:hidden}.wheeloflife-modal-container .wheeloflife-modal-wrapper>:not(.wheeloflife-modal-header):not(.wheeloflife-modal-footer):hover::-webkit-scrollbar-thumb,.wheeloflife-modal-container .wheeloflife-modal-wrapper>:not(.wheeloflife-modal-header):not(.wheeloflife-modal-footer):hover::-webkit-scrollbar-track{opacity:1;visibility:visible}.email-placeholder-modal .wheeloflife-modal-container{max-width:400px}.customizeer-modal .wheeloflife-modal-container{max-width:540px}.wheeloflife-modal-header{border-bottom:1px solid var(--gray-200);padding:1.5rem}.wheeloflife-modal-header .wheeloflife-title{font-size:1.25rem;line-height:1.6;margin:0 1.5rem 0 0}.wheeloflife-modal-footer{padding:1.5rem}.wheeloflife-modal-footer button+button{margin-left:1rem}.wheeloflife-modal-body{padding:1.5rem}.components-panel__body{border-bottom:1px solid var(--gray-200);padding:0 1.5rem}.components-panel__body .components-panel__body-title{margin:0 -1.5rem}.components-panel__body .components-panel__body-title .components-panel__body-toggle{border:none;border-radius:0;color:var(--gray-500);display:flex;flex-direction:row-reverse;font-size:16px;font-weight:500;justify-content:space-between;line-height:1.5;padding:1.5rem;text-align:left;width:100%}.components-panel__body .components-panel__body-title .components-panel__body-toggle[aria-expanded=true]{color:var(--gray-600)}.components-panel__body .components-base-control__field{margin-bottom:1rem}.components-panel__body .components-base-control__field label{color:var(--gray-600);font-family:var(--primary-font);font-size:16px;font-weight:400;line-height:1.5;margin-right:1.5rem}.components-panel__body .components-base-control__field .components-input-control__input,.components-panel__body .components-base-control__field input:not([type=radio]):not([type=checkbox]){border:1px solid var(--gray-300)!important;border-radius:.25rem!important;color:var(--gray-500);font-size:16px;height:40px;line-height:1.4;min-width:64px;padding:.5rem 1rem}.components-panel__body .components-base-control__field .components-input-control__input:focus,.components-panel__body .components-base-control__field input:not([type=radio]):not([type=checkbox]):focus{border-color:var(--primary-color)!important}.components-panel__body .components-base-control__field .components-input-control__input[type=number],.components-panel__body .components-base-control__field input[type=number]:not([type=radio]):not([type=checkbox]){padding-right:5px}.components-panel__body .components-base-control__field input.components-range-control__slider:not([type=radio]):not([type=checkbox]){height:40px}.components-panel__body .components-base-control__field .components-input-control__backdrop{opacity:0}.components-panel__body .components-base-control__field .components-base-control__label{display:block;margin-bottom:.5rem}.components-panel__body .components-base-control__field section{display:block}.components-panel__body .components-base-control__field.inline .components-base-control__label{display:inline-block;margin-bottom:0}.components-panel__body .components-base-control__field.inline section{display:inline-block}.components-panel__body .components-range-control__wrapper{margin-left:0}.components-panel__body .components-range-control__wrapper .css-10jvx6y-Rail,.components-panel__body .components-range-control__wrapper .css-1bvn3w2-Track{border-radius:.5rem;height:4px;margin-top:20px;transition:all .3s ease}.components-panel__body .components-range-control__wrapper .components-simple-tooltip{transition:all .3s ease}.components-panel__body .components-range-control__wrapper .css-10jvx6y-Rail{background:var(--gray-200)}.components-panel__body .components-range-control__wrapper .css-1bvn3w2-Track{background:var(--primary-color)}.components-panel__body .components-range-control__wrapper .css-5p7d2w-ThumbWrapper{height:16px;margin-top:13px;transition:all .3s ease;width:16px}.components-panel__body .components-range-control__wrapper .css-5p7d2w-ThumbWrapper .css-ckoo7b-Thumb,.components-panel__body .components-range-control__wrapper .css-5p7d2w-ThumbWrapper .css-ln2ltz-Thumb{background:var(--primary-color);border:none;box-shadow:0 0 5px rgba(0,0,0,.1)}.components-panel__body .wheeloflife-color-picker-container{display:inline-flex;vertical-align:middle}.components-panel__body .wheeloflife-color-picker-container .wheeloflife-color-picker-single{border:1px solid var(--gray-300);border-radius:.25rem;padding:.5rem}.components-panel__body .wheeloflife-color-picker-container .wheeloflife-color-picker-single>span{border:1px solid var(--gray-300);height:24px;width:24px}.components-panel__body .wheeloflife-color-picker-container .wheeloflife-color-picker-single>span span{height:100%;width:100%}.components-panel__body .ct-buttons-group{align-items:center;display:inline-flex;margin-top:0;vertical-align:middle}.components-panel__body .ct-buttons-group li{background:none!important;border:1px solid var(--gray-300);border-radius:.25rem!important;color:var(--gray-500);cursor:pointer;font-size:16px;font-weight:400;height:unset;line-height:1.5;margin-right:1rem;padding:.5rem 1rem;transition:all .3s ease}.components-panel__body .ct-buttons-group li.active{border-color:var(--primary-color);color:var(--primary-color)}.components-panel__body .ct-buttons-group[data-type=alignment] li{align-items:center;border:none!important;border-radius:.25rem;box-shadow:none;color:var(--gray-600);display:flex;flex:0 0 40px;font-size:20px;height:40px;justify-content:center;margin:0;padding:0;width:40px}.components-panel__body .ct-buttons-group[data-type=alignment] li.active{background:var(--gray-200)!important}.components-panel__body .ct-buttons-group[data-type=alignment] li:before{background-position:50%;background-repeat:no-repeat;background-size:100%;content:""!important;display:block;height:1em;width:1em}.components-panel__body .ct-buttons-group[data-type=alignment] li:first-child:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2720%27 height=%2711%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath fill=%27%23262933%27 d=%27M0 0h20v1H0zM0 5h10v1H0zM0 10h16v1H0z%27/%3E%3C/svg%3E")}.components-panel__body .ct-buttons-group[data-type=alignment] li:nth-child(2):before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2720%27 height=%2711%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath fill=%27%23262933%27 d=%27M0 0h20v1H0zM5 5h10v1H5zM2 10h16v1H2z%27/%3E%3C/svg%3E")}.components-panel__body .ct-buttons-group[data-type=alignment] li:nth-child(3):before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2720%27 height=%2711%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath fill=%27%23262933%27 d=%27M0 0h20v1H0zM10 5h10v1H10zM4 10h16v1H4z%27/%3E%3C/svg%3E");transform:unset}.components-panel__body .ct-option-spacing{display:flex;width:100%}.components-panel__body .ct-option-spacing input:not([type=radio]):not([type=checkbox]){min-width:unset;padding:.5rem;text-align:center}.components-panel__body .ct-option-spacing>span{flex:0 0 50px;flex:1;margin-right:0;width:40px}.components-panel__body .ct-option-spacing>span:not(:first-child) input:not([type=radio]):not([type=checkbox]){border-bottom-left-radius:0!important;border-left:0!important;border-top-left-radius:0!important}.components-panel__body .ct-option-spacing>span:not(:last-child) input:not([type=radio]):not([type=checkbox]){border-bottom-right-radius:0!important;border-top-right-radius:0!important}.components-panel__body .ct-option-spacing>span input:not([type=radio]):not([type=checkbox]):focus{border-color:var(--gray-300)!important}.components-panel__body .ct-option-spacing>span small{display:none}.components-panel__body .ct-option-spacing .ct-spacing-controls{background:none;display:flex;flex:1;margin-left:0;padding:0;position:relative}.components-panel__body .ct-option-spacing .ct-spacing-controls .ct-current-value,.components-panel__body .ct-option-spacing .ct-spacing-controls>a{align-items:center;border:1px solid var(--gray-300);border-radius:.25rem;cursor:default;display:flex;flex:1;height:40px;justify-content:center;width:40px}.components-panel__body .ct-option-spacing .ct-spacing-controls>a{border-left:0;border-radius:0;border-right:0}.components-panel__body .ct-option-spacing .ct-spacing-controls>a path{fill:var(--gray-400)}.components-panel__body .ct-option-spacing .ct-spacing-controls .ct-value-divider{display:none}.components-panel__body .ct-option-spacing .ct-spacing-controls .ct-current-value{background:var(--gray-200);border-bottom-left-radius:0;border-top-left-radius:0}.components-panel__body .ct-option-spacing .ct-spacing-controls .ct-units-list{background:#fff;border:1px solid var(--gray-300);border-radius:.25rem;display:flex;flex-wrap:wrap;left:0;margin-top:0;opacity:0;position:absolute;top:0;transition:all .3s ease;visibility:hidden;z-index:1}.components-panel__body .ct-option-spacing .ct-spacing-controls .ct-units-list:after{content:none}.components-panel__body .ct-option-spacing .ct-spacing-controls .ct-units-list li{display:flex;margin:0;padding:0}.components-panel__body .ct-option-spacing .ct-spacing-controls .ct-units-list li:not(:last-child){border-bottom:1px solid var(--gray-300)}.components-panel__body .ct-option-spacing .ct-spacing-controls .ct-units-list li span{align-items:center;cursor:default;display:flex;flex:0 0 50%;height:40px;justify-content:center;width:40px}.components-panel__body .ct-option-spacing .ct-spacing-controls .ct-units-list li span:not(:last-child){border-right:1px solid var(--gray-300)}.components-panel__body .ct-option-spacing .ct-spacing-controls.active .ct-units-list{opacity:1;visibility:visible}.components-panel__body .ct-option-spacing.linked .ct-spacing-controls>a{background:var(--gray-200);color:var(--primary-color)}.components-panel__body .ct-option-spacing.linked .ct-spacing-controls>a path{fill:var(--primary-color)}.components-panel__body section{display:inline-block;max-width:100%}.components-panel__body .rara-revert{margin-right:1rem}.components-panel__body .wheeloflife-blocks-gradient-option section{border:1px solid var(--gray-300);border-radius:.25rem;max-width:42px;padding:.5rem;vertical-align:middle}.components-panel__body .wheeloflife-blocks-gradient-option section .ct-background{height:24px;width:24px}.ct-option-modal .ct-control[data-design=inline]{align-items:center;display:flex;flex-wrap:wrap}.ct-option-modal .ct-control[data-design=inline] .components-base-control__label{margin-right:1rem}.ct-option-modal .ct-control .components-base-control__label{margin-bottom:.5rem}.ct-option-modal .ct-control .wheeloflife-color-picker-single{border:1px solid var(--gray-300);padding:.5rem}.ct-option-modal .ct-control .wheeloflife-color-picker-single>span{height:24px;width:24px}.components-custom-gradient-picker .components-custom-gradient-picker__gradient-bar{border-radius:36px;height:36px;margin-bottom:12px;margin-top:12px;padding-left:6px;padding-right:30px;width:100%}.components-custom-gradient-picker .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{position:relative}.components-custom-gradient-picker .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container .components-custom-gradient-picker__inserter .components-custom-gradient-picker__insert-point{align-items:center;background:#fff;border-radius:50%;color:#000;display:flex;height:24px;justify-content:center;padding:0;top:6px;width:24px}.components-custom-gradient-picker .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container .components-custom-gradient-picker__inserter .components-custom-gradient-picker__insert-point:hover{border:none;color:inherit}.components-custom-gradient-picker .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border:2px solid #fff;border-radius:50%;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff;height:24px;padding:0;position:absolute;top:6px;width:24px}.components-custom-gradient-picker .components-input-control__container{margin-left:0}[class*=wheeloflife-tooltip]{-webkit-font-smoothing:antialiased;align-items:center;background:#363f42;border-radius:3px;color:#fff;display:flex;font-size:12px;font-style:italic;font-weight:400;height:26px;letter-spacing:normal;opacity:0;padding:0 8px;pointer-events:none;position:absolute;text-transform:none;transition:opacity .2s cubic-bezier(.455,.03,.515,.955),transform .2s cubic-bezier(.455,.03,.515,.955),visibility .2s cubic-bezier(.455,.03,.515,.955);-webkit-user-select:none;-moz-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;width:auto;z-index:200}[class*=wheeloflife-tooltip]:after,[class*=wheeloflife-tooltip]:before{box-sizing:border-box;content:"";position:absolute}[class*=wheeloflife-tooltip][class*=-top]:before{bottom:-10px;height:10px;left:0;width:100%}[class*=wheeloflife-tooltip][class*=-top]:after{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #363f42;bottom:-5px;height:5px;left:0;margin:0 auto;right:0;width:10px}.wheeloflife-color-picker-container{align-items:center;display:inline-flex;height:100%}.wheeloflife-color-picker-container .wheeloflife-color-picker-single{border:1px solid rgba(var(--font-color-rgb),.1);border-radius:3px;padding:10px}.wheeloflife-color-picker-single>span{border-radius:3px;height:30px;width:30px}.wheeloflife-color-picker-skins li.active:before{background:rgba(0,0,0,.07)}.wheeloflife-option-modal{background:#fff;border-radius:6px;box-shadow:var(--option-modal-shadown,0 15px 15px rgba(0,0,0,.08));box-sizing:border-box;position:fixed;right:var(--modal-x-offset);width:var(--option-modal-width,295px);z-index:100000}.wheeloflife-option-modal:before{border-style:solid;content:"";left:var(--option-modal-arrow-position,calc(100% - 55px));position:absolute}.wheeloflife-option-modal[data-position=bottom]{top:calc(var(--modal-y-offset) + var(--modal-y-offset-plus, 13px));transform-origin:center top}.wheeloflife-option-modal[data-position=bottom]:before{border-color:transparent transparent #fff;border-width:0 6px 7px;top:-7px}.wheeloflife-option-modal[data-position=top]{bottom:calc(var(--modal-y-offset) + var(--modal-y-offset-plus, 13px));transform-origin:center bottom}.wheeloflife-option-modal[data-position=top]:before{border-color:#fff transparent transparent;border-width:7px 6px 0;bottom:-7px}:root{--accentColor:#307ac9;--accentColorHover:#0071a1;--optionBorderColor:#ddd}.expanded .wp-full-overlay-footer,.wp-full-overlay-sidebar .wp-full-overlay-header{background-color:rgba(86,103,121,.149)}#customize-controls .wp-full-overlay-sidebar-content{scrollbar-color:rgba(86,103,121,.502) rgba(86,103,121,.149);scrollbar-width:thin}#customize-controls .wp-full-overlay-sidebar-content::-webkit-scrollbar{background-color:#fff;width:8px}#customize-controls .wp-full-overlay-sidebar-content::-webkit-scrollbar-track{background-color:rgba(86,103,121,.15)}#customize-controls .wp-full-overlay-sidebar-content::-webkit-scrollbar-thumb{background-color:rgba(86,103,121,.5);border-radius:16px}.wp-full-overlay-sidebar{background:#fff}.ct-control,.ct-controls-group{position:relative}.ct-control>header:not(:empty),.ct-controls-group>header:not(:empty){display:flex;justify-content:space-between;position:relative}.ct-control>header label,.ct-controls-group>header label{color:#566779;cursor:default;font-size:15px;font-weight:400;letter-spacing:.1px;line-height:1.5;margin-right:5px}.ct-control[data-design=inline],.ct-controls-group[data-design=inline]{display:flex;flex-wrap:wrap}.ct-control[data-design=inline]>header,.ct-controls-group[data-design=inline]>header{flex:var(--flex,1 1 auto)}.ct-control[data-design=inline]>header label,.ct-controls-group[data-design=inline]>header label{align-items:center;display:flex;max-width:130px}.ct-control[data-design*=block]>header:not(:empty),.ct-controls-group[data-design*=block]>header:not(:empty){margin-bottom:18px}.ct-options-container{display:block;position:relative}.ct-options-container .customize-control-ct-options{display:block!important}.ct-options-container .ct-control{padding:20px 11px}.ct-options-container .ct-control:after{background:rgba(5,16,26,.05);bottom:0;content:"";display:block;height:1px;left:auto;position:absolute;right:auto;width:calc(100% - 22px)}.ct-panel.ct-click-allowed{cursor:pointer}.ct-panel.ct-click-allowed:before{content:"";height:60px;left:-12px;position:absolute;top:0;width:calc(100% + 24px)}.ct-panel.ct-click-allowed header>label{cursor:pointer}.ct-panel.ct-click-allowed .rara-customizer-panel-option button{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .2s ease .2s,transform .2s ease .2s}.ct-panel[data-panel=only-arrow] .rara-customizer-panel-option button{right:-10px}.rara-customizer-panel-option{cursor:pointer;min-height:20px;position:relative}.rara-customizer-panel-option button{align-items:center;background:transparent;border:none;color:#566779;cursor:pointer;display:flex;height:20px;justify-content:center;opacity:0;padding:0;pointer-events:none;position:absolute;right:-10px;top:calc(50% - 10px);width:25px}.rara-customizer-panel-option button:after{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:inherit;content:"";font-family:dashicons;font-size:15px;height:15px;width:15px}.rara-customizer-panel-option button:focus{outline:none}.rara-customizer-panel-option .ct-option-switch+button{transform:translate3d(-7px,0,0);transition:opacity 0s ease 0s,transform 0s ease 0s}.ct-panel-open{height:100%!important;overflow-y:hidden!important;transform:translateX(-100%)!important}.ct-option-switch{border:2px solid #566779;border-radius:100px;box-sizing:border-box;cursor:pointer;height:20px;margin-left:auto;margin-right:15px;padding:2px;position:relative;transition:border-color .15s cubic-bezier(.4,0,.2,1);width:40px}.ct-option-switch>span{background:#566779;border-radius:inherit;display:flex;height:12px;transform:translateZ(0);transition:background .15s cubic-bezier(.4,0,.2,1),transform .15s cubic-bezier(.4,0,.2,1);width:12px}.ct-option-switch.ct-active{background:#307ac9;border-color:#307ac9}.ct-option-switch.ct-active span{background:#fff;transform:translate3d(20px,0,0)}.rara-customizer-panel{border-bottom:1px solid #ddd;border-top:1px solid #ddd;bottom:0;left:0;overflow-y:auto;position:absolute;right:0;top:0;z-index:99}.customize-panel-actions{background:#fff;border-bottom:1px solid #ddd;display:flex}.customize-panel-actions button{background:#fff;border:none;border-left:4px solid #fff;border-right:1px solid #ddd;cursor:pointer;padding:0 24px 0 0;width:48px}.customize-panel-actions button:before{content:"";font:normal 20px/48px dashicons;left:9px;position:relative}.customize-panel-actions button:focus{outline:none}.customize-panel-actions h3{color:#566779;display:block;font-size:20px!important;font-weight:200;line-height:26px;margin:0;overflow:hidden;padding:10px 10px 12px 14px;text-overflow:ellipsis;white-space:nowrap;width:100%}.customize-panel-actions h3 span{display:block;font-size:13px;font-weight:400;overflow:hidden}.customizer-panel-content{margin-top:20px;padding:0 12px 30px}.rara-revert{-webkit-font-smoothing:antialiased;align-items:center;background:transparent;border:none;display:flex;font-family:dashicons;justify-content:center;padding:0}.rara-revert:before{content:"";transform:rotate(45deg);transition:transform .3s ease}.rara-revert:hover:before{transform:rotate(-45deg)}.rara-revert:focus{outline:none}.rara-revert:not([disabled]){cursor:pointer}.ct-control .rara-revert{color:#0073aa;font-size:10px;height:18px;left:0;opacity:0;position:absolute;top:0;transform:translate3d(-15px,0,0);transition:opacity .2s ease,transform .2s ease;width:18px}.ct-control:hover .rara-revert:not([disabled]){opacity:1;transform:translate3d(-20px,0,0)}.ct-control[data-design=inline] .rara-revert{top:calc(50% - 9px)}#customize-header-actions .rara-revert{border-right:1px solid #ddd;box-sizing:content-box;color:#444;font-size:13px;height:45px;margin-left:33px;width:48px}#customize-header-actions .rara-revert:before{position:relative;top:1px}#customize-header-actions .rara-revert:hover{background:#fff;color:#0073aa}.ct-dashboard-overlay-open #customize-header-actions .rara-revert:before{transform:rotate(-45deg)}.ct-options-container .ct-control-options{align-self:center;display:flex}.ct-responsive-controls{align-items:center;display:flex;margin:0}.ct-responsive-controls li{align-items:center;color:var(--color);cursor:pointer;display:flex;justify-content:center}.ct-responsive-controls li.active{--color:#007bff}.ct-responsive-controls li:not(.active){--color:#05101a}.ct-responsive-controls li:not(.active):hover{--color:#007bff}.ct-responsive-controls li.ct-desktop,.ct-responsive-controls li.ct-tablet{margin-right:10px}.ct-devices li{margin-bottom:0}.ct-devices li:before{border-radius:2px;box-sizing:border-box;content:""}.ct-devices li.ct-desktop{flex-direction:column}.ct-devices li.ct-desktop:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2717%27 height=%2717%27 viewBox=%270 0 21 21%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Crect x=%27.5%27 y=%27.625%27 width=%2720%27 height=%2714.75%27 rx=%271.5%27 stroke=%27%23307AC9%27/%3E%3Cpath stroke=%27%23307AC9%27 stroke-width=%27.5%27 d=%27M10.25 16.125h.5v4.5h-.5z%27/%3E%3Cpath fill=%27%23307AC9%27 d=%27M6 20.875v-1h9v1z%27/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2717%27 height=%2717%27 viewBox=%270 0 21 21%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Crect x=%27.5%27 y=%27.625%27 width=%2720%27 height=%2714.75%27 rx=%271.5%27 stroke=%27%23307AC9%27/%3E%3Cpath stroke=%27%23307AC9%27 stroke-width=%27.5%27 d=%27M10.25 16.125h.5v4.5h-.5z%27/%3E%3Cpath fill=%27%23307AC9%27 d=%27M6 20.875v-1h9v1z%27/%3E%3C/svg%3E")}.ct-devices li.ct-desktop:before,.ct-devices li.ct-tablet:before{background:currentColor;content:"";display:block;height:17px;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:17px}.ct-devices li.ct-tablet:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2717%27 height=%2717%27 viewBox=%270 0 18 21%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cg opacity=%27.8%27%3E%3Crect x=%27.5%27 y=%2720.5%27 width=%2720%27 height=%2717%27 rx=%271.5%27 transform=%27rotate%28-90 .5 20.5%29%27 stroke=%27%2305101A%27/%3E%3Crect opacity=%27.8%27 x=%277%27 y=%2718%27 width=%271%27 height=%274%27 rx=%27.5%27 transform=%27rotate%28-90 7 18%29%27 fill=%27%2305101A%27/%3E%3C/g%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2717%27 height=%2717%27 viewBox=%270 0 18 21%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cg opacity=%27.8%27%3E%3Crect x=%27.5%27 y=%2720.5%27 width=%2720%27 height=%2717%27 rx=%271.5%27 transform=%27rotate%28-90 .5 20.5%29%27 stroke=%27%2305101A%27/%3E%3Crect opacity=%27.8%27 x=%277%27 y=%2718%27 width=%271%27 height=%274%27 rx=%27.5%27 transform=%27rotate%28-90 7 18%29%27 fill=%27%2305101A%27/%3E%3C/g%3E%3C/svg%3E")}.ct-devices li.ct-mobile:before{background:currentColor;content:"";display:block;height:17px;mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2717%27 height=%2717%27 viewBox=%270 0 12 21%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Crect opacity=%27.8%27 x=%27.5%27 y=%2720.5%27 width=%2720%27 height=%2711%27 rx=%271.5%27 transform=%27rotate%28-90 .5 20.5%29%27 stroke=%27%2305101A%27/%3E%3Crect opacity=%27.8%27 x=%274%27 y=%2718%27 width=%271%27 height=%274%27 rx=%27.5%27 transform=%27rotate%28-90 4 18%29%27 fill=%27%2305101A%27/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2717%27 height=%2717%27 viewBox=%270 0 12 21%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Crect opacity=%27.8%27 x=%27.5%27 y=%2720.5%27 width=%2720%27 height=%2711%27 rx=%271.5%27 transform=%27rotate%28-90 .5 20.5%29%27 stroke=%27%2305101A%27/%3E%3Crect opacity=%27.8%27 x=%274%27 y=%2718%27 width=%271%27 height=%274%27 rx=%27.5%27 transform=%27rotate%28-90 4 18%29%27 fill=%27%2305101A%27/%3E%3C/svg%3E");-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:17px}.ab-slider{border-radius:2px;cursor:pointer;height:18px;margin-right:14px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.ab-slider:before{background:rgba(48,122,201,.2);border-radius:inherit;content:"";height:2px;left:0;position:absolute;top:calc(50% - 1px);width:calc(100% + 14px)}.ab-slider span{background:var(--accentColor);border-radius:100%;bottom:0;height:14px;left:var(--position);margin:auto 0;position:absolute;top:0;transition:box-shadow .1s ease,background .1s ease;width:14px}.ab-slider span:active,.ab-slider span:focus,.ab-slider span:hover{box-shadow:0 0 0 2px var(--accentColor),0 8px 15px 0 rgba(0,0,0,.25)}.ab-slider span:active{background:#fff}.ab-slider div{background:var(--accentColor);border-radius:inherit;height:2px;left:0;padding-right:7px;position:absolute;top:calc(50% - 1px)}.ct-option-slider{align-items:center;display:flex}.ct-option-slider .ab-slider{flex:1 1 auto}.ct-value-changer{align-items:center;background:rgba(48,122,201,.08);border:none;border-radius:4px;box-sizing:border-box;color:#566779;display:flex;height:40px;min-width:85px;padding:10px;transition:background .1s ease,border-color .1s ease}.ct-value-changer input[type=number]{--width:38px;--padding:2px;--margin:-1px -1px -1px -2px;--fontSize:11px;--borderColor:transparent;--background:transparent;-moz-appearance:textfield;position:relative;text-align:center;z-index:1}.ct-value-changer input[type=number]::-webkit-inner-spin-button,.ct-value-changer input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.ct-value-changer:not(.no-unit-list) .ct-current-value{cursor:pointer}.ct-value-changer:not(.no-unit-list) .ct-current-value:hover{color:var(--accentColor)}.ct-value-divider{border-left:1px solid #566779;height:14px;opacity:.5}.ct-current-value{align-items:center;display:flex;font-size:12px;font-weight:400;height:100%;justify-content:center;letter-spacing:1px;line-height:normal;text-transform:uppercase;transition:color .1s ease,font-weight .1s ease;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:35px}.ct-value-changer{position:relative}.ct-value-changer ul{background:#fff;border-radius:3px;box-shadow:var(--option-modal-shadown,0 15px 15px rgba(0,0,0,.08));box-sizing:border-box;display:flex;flex-direction:column;left:-1px;margin:0;opacity:0;padding:2px;position:absolute;top:-1px;transform:scale3d(.95,.95,1);transform-origin:center top;transition:opacity .1s ease,visibility .1s ease,transform .1s ease-out;visibility:hidden;width:calc(100% + 2px);z-index:3}.ct-value-changer ul li{display:flex;justify-content:space-between}.ct-value-changer ul li:not(:last-child){border-bottom:1px solid #eee;margin-bottom:2px;padding-bottom:2px}.ct-value-changer ul li:last-child{margin-bottom:0}.ct-value-changer ul li span{align-items:center;border-radius:2px;color:#566779;cursor:pointer;display:flex;font-size:12px;font-weight:700;height:26px;justify-content:center;letter-spacing:.06em;text-align:center;text-transform:uppercase}.ct-value-changer ul li span:first-child{width:calc(50% - 3px)}.ct-value-changer ul li span:last-child{width:calc(50% - 2px)}.ct-value-changer ul li span:hover{background:var(--accentColor);color:#fff}.ct-value-changer ul:after{border-left:1px solid #eee;content:"";height:calc(100% - 6px);left:0;margin:0 auto;position:absolute;right:0;top:3px;width:1px}.ct-value-changer.active{background:transparent}.ct-value-changer.active ul{opacity:1;transform:scaleX(1);visibility:visible}.ab-slider-input{position:relative}.ab-slider-input input{margin:0;position:relative;text-align:center;width:100%;z-index:2}.ct-option-slider .ab-slider-input{margin-left:7%}.ct-option-slider .ab-slider-input input{width:45px}.ct-option-spacing input[type=number],.ct-option-spacing input[type=text]{border:1px solid rgba(5,16,26,.2)!important}[class*=ct-option] input[type=number],[class*=ct-option] input[type=text]{--fontSize:14px;background-color:var(--background,#fff);border:none;border-radius:0!important;box-shadow:0 0 0 0 transparent;color:#566779;font-size:var(--fontSize)!important;height:40px;line-height:normal;margin:var(--margin,0)!important;min-height:auto;padding:var(--padding,3px 8px)!important;transition:box-shadow .1s linear,background .1s linear,border-radius .1s linear,border-color .1s linear;width:var(--width,100%)!important}[class*=ct-option] input[type=number]::-moz-placeholder,[class*=ct-option] input[type=text]::-moz-placeholder{opacity:.5}[class*=ct-option] input[type=number]::placeholder,[class*=ct-option] input[type=text]::placeholder{opacity:.5}.ct-options-container [data-design=inline] .ct-option-input,.ct-options-container [data-design=inline] .ct-select-input{max-width:var(--select-input-width,130px)}.ct-select-input{position:relative;width:100%}.ct-select-input input{align-items:center;border:none;border-radius:4px;color:#566779;cursor:pointer;display:flex;font-size:14px;height:40px;margin:0;padding:10px;text-overflow:ellipsis;transition:box-shadow .1s linear,border-color .1s linear;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:inherit}.ct-select-input input:focus{border-color:var(--accentColor);box-shadow:0 0 0 1px var(--accentColor);outline:none}.ct-select-input input::-moz-placeholder{line-height:26px}.ct-select-input input[readonly]{background-color:rgba(48,122,201,.08)}.ct-select-input input:hover,.ct-select-input[aria-expanded=true] input{border-color:#307ac9}.ct-select-input[aria-expanded=true]:after{transform:rotate(90deg)}.ct-select-input:after{content:"";content:"";font:400 10px/10px dashicons;height:10px;pointer-events:none;position:absolute;right:8px;top:calc(50% - 5px);transform:rotate(-90deg);width:10px}.ct-select-input:before{height:0;position:absolute;visibility:hidden;width:0}.ct-options-container .ct-option-description{color:#566779;flex:0 0 100%;font-size:14px;font-style:italic;line-height:1.5;margin:10px 0 0;opacity:.9;transition:opacity .1s ease}.ct-options-container .ct-option-description a{color:#5081f5;text-decoration:none;transition:color .1s ease}.ct-options-container .ct-option-description a:hover{color:var(--accentColor);text-decoration:underline}.ct-options-container .ct-title h3{color:#484f56;font-size:13px!important;font-weight:600;margin:0}.ct-options-container .ct-title:not(:first-child){border-top:1px solid var(--optionBorderColor);padding-top:var(--title-option-vertical-spacing,30px)}.ct-options-container .ct-title[data-type*=simple]{box-sizing:border-box;margin-left:-12px;margin-right:-12px;margin-top:var(--title-option-vertical-spacing,30px);padding-left:26px;padding-right:26px;width:calc(100% + 24px)}.ct-options-container .ct-title[data-type*=simple-small]{margin-left:14px;margin-right:14px;padding-left:0;padding-right:0;width:calc(100% - 24px)}.ct-options-container .ct-title[data-type*=no-border]{border-top:0;padding-top:0}.ct-options-container .ct-title[data-type*=menu-location]{border-top:none;box-sizing:border-box;margin-left:-12px;margin-right:-12px;margin-top:21px;padding:0 26px;width:calc(100% + 24px)}.ct-options-container .ct-title[data-type*=menu-location] h3{background:hsla(0,0%,100%,.5);border:1px solid #cecece;border-radius:3px;padding:10px}.ct-options-container .ct-control:hover .ct-option-description,.ct-options-container .ct-title:hover .ct-option-description{opacity:1}.ct-options-container .ct-linked,.ct-options-container .ct-separated{background:transparent;border:none;color:#000;cursor:pointer;height:15px;opacity:.2;padding:0;transition:opacity .1s ease,color .1s ease;width:15px}.ct-options-container .ct-linked svg,.ct-options-container .ct-separated svg{fill:currentColor}.ct-options-container .ct-linked:focus,.ct-options-container .ct-separated:focus{outline:none}.ct-options-container .ct-linked:hover,.ct-options-container .ct-separated:hover{opacity:.4}.ct-options-container .ct-linked.active,.ct-options-container .ct-separated.active{color:#0e8ecc;opacity:1}.ct-options-container .ct-linked{margin-left:10px}.ct-options-container .ct-layer{box-shadow:0 1px 1px rgba(0,0,0,.02)}.ct-options-container [data-label=heading-label] header>label{color:#484f56;font-size:13px;font-weight:600}.ct-options-container .ct-disabled-notification{align-items:center;background:#fff;border-left:2px solid rgba(14,142,204,.8);display:flex;font-size:12px;min-height:28px;padding:8px 10px 8px 12px}.ct-options-container .ct-notification{margin-top:20px;padding:0 14px}.ct-divider:before{background:var(--optionBorderColor);content:"";display:block;height:1px}.ct-divider:not([data-type]){margin:30px 0}.ct-divider:not([data-type]):before{margin:0 -12px;width:calc(100% + 24px)}.ct-divider[data-type=full-small]{margin:20px 0}.ct-divider[data-type=full-small]:before{margin:0 -12px;width:calc(100% + 24px)}.ct-divider[data-type=small]{margin:25px 0}.ct-divider[data-type=small]:before{margin:0 12px;opacity:.8;width:calc(100% - 24px)}.wp-customizer .ct-option-modal{left:12px}.ct-reset-styles{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;padding:initial}.ct-panel.ct-click-allowed:hover:before{background:hsla(0,0%,100%,.7)}.customizer-panel-content>li:first-child{margin-top:30px}.customizer-panel-content>li:first-child.customize-control-ct-title{border-top:none!important;margin-top:0}.ct-option-select{display:flex;position:relative;width:210px}.ct-select-dropdown{background:#fff;border-radius:3px;box-shadow:0 10px 15px rgba(0,0,0,.08),0 0 1px 1px rgba(0,0,0,.02);box-sizing:border-box;color:#566779;font-size:12px;line-height:1.5;max-height:228px;overflow-y:scroll;right:var(--modal-x-offset);width:var(--x-select-dropdown-width,100%);z-index:999999}.ct-select-dropdown[data-position=bottom]{top:calc(var(--modal-y-offset) + var(--modal-y-offset-plus, 7px))}.ct-select-dropdown[data-position=top]{bottom:calc(var(--modal-y-offset) + var(--modal-y-offset-plus, 7px))}.ct-select-dropdown.ct-fixed{--x-select-dropdown-width:250px;position:fixed}.ct-select-dropdown:not(.ct-fixed){margin-bottom:20px;margin-top:7px;position:absolute;right:var(--x-select-dropdown-right,initial);top:100%}.ct-select-dropdown .ct-select-dropdown-group,.ct-select-dropdown .ct-select-dropdown-item,.ct-select-dropdown .ct-select-no-results{align-items:center;border-top:1px solid #eee;box-sizing:border-box;display:flex;margin:-1px 0 0;min-height:38px;padding:5px 8px!important;text-align:left;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ct-select-dropdown .ct-select-dropdown-item{cursor:pointer;overflow:hidden;position:relative}.ct-select-dropdown .ct-select-dropdown-item.selected{color:var(--accentColor);font-weight:500}.ct-select-dropdown .ct-select-dropdown-item.selected:after{content:"";font-family:dashicons;font-size:13px;position:absolute;right:6px;top:10px}.ct-select-dropdown .ct-select-dropdown-group{background:#f7f7f7;font-size:12px;font-weight:600}.ct-select-dropdown .ct-select-dropdown-group~.ct-select-dropdown-item{padding-left:20px!important}.ct-select-dropdown .ct-select-no-results{border-bottom:none}.ct-layers{list-style:none;margin:0;padding:0}.ct-layers:not(:empty)+button{margin-top:20px}.ct-layer{background:#fff;box-shadow:0 1px 1px rgba(0,0,0,.04);list-style:none;z-index:9999999}.ct-layer:not(:last-child){margin-bottom:10px}.ct-layer.ct-disabled{opacity:.6}.ct-layer.ct-disabled:hover{opacity:.8}.ct-layer.ct-disabled .ct-layer-controls .ct-visibility:before{opacity:1}.ct-layer.ct-disabled .ct-layer-controls .ct-toggle{pointer-events:none}.ct-layer.ct-disabled .ct-layer-content{display:none}.ct-layer-controls{border:1px solid var(--optionBorderColor);box-sizing:border-box;display:flex;height:40px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ct-layer-controls button{align-items:center;background:transparent;border:none;box-shadow:none;color:#72777c;cursor:pointer;display:flex;flex:0 0 40px;height:100%;justify-content:center;padding:0;width:40px}.ct-layer-controls button svg{fill:currentColor}.ct-layer-controls button.ct-remove,.ct-layer-controls button.ct-toggle{-webkit-font-smoothing:antialiased;font:400 16px dashicons}.ct-layer-controls button.ct-toggle:before{content:""}.ct-layer-controls button.ct-remove:before{content:""}.ct-layer-controls button.ct-remove:hover:before{color:#dd4b39}.ct-layer-controls button.ct-clone:hover .wheeloflife-tooltip-top{opacity:1;transform:translate3d(0,-42px,0);visibility:visible}.ct-layer-controls button.ct-visibility{position:relative}.ct-layer-controls button.ct-visibility:before{background:#656565;border-radius:5px;box-shadow:0 0 0 1px #fff;content:"";height:2px;opacity:0;position:absolute;transform:rotate(-45deg);transition:opacity .1s ease;width:18px}.ct-layer-controls button.ct-visibility:hover:before{opacity:1}.ct-layer-controls button:focus{outline:none}.ct-layer-controls span{align-items:center;cursor:move;display:flex;flex:1 1 auto;font-size:12px;font-weight:600;padding:0 15px}.ct-layer-controls>:not(:last-child){border-right:1px solid var(--optionBorderColor)}.ct-layer-content{border-top:none!important;display:flex;flex-direction:column}.ct-layer-content:not(:empty){border:1px solid var(--optionBorderColor)}.ct-layer-content>:not(:empty){margin-top:17px!important;padding:var(--layer-content-padding,0 17px 17px 17px)!important}.ct-layer-content>:not(:empty):not(:last-child){border-bottom:1px solid var(--optionBorderColor)}.ct-add-layer-controls{display:flex;padding-bottom:10px}.ct-add-layer-controls .ct-select-input{max-width:100%}.ct-add-layer-controls button{margin-left:10px!important;padding:0 8px 1px!important}.ct-inner-layer{--layer-content-padding:0 15px 20px 15px}.ct-inner-layer .ct-layer-controls{height:34px}.ct-inner-layer .ct-layer-controls button{flex:0 0 33px;width:33px}.ct-inner-layer .ct-layer-controls span{font-size:11px;font-weight:500;padding:0 10px}.ct-inner-layer .ct-layer-controls .ct-visibility svg{height:13px;width:13px}.ct-inner-layer .ct-layer-controls .ct-visibility:before{width:15px}.ct-option-slider [class*=placement]{display:flex;flex:0 0 15px;margin-right:5%}.ct-option-slider [class*=placement] .shape{fill:#000;opacity:.15}.ct-option-slider [class*=placement] .shape-active{fill:#0073aa}.ct-option-slider .placement-right svg{transform:rotate(90deg)}.ct-option-slider .placement-bottom svg{transform:rotate(180deg)}.ct-option-slider .placement-left svg{transform:rotate(270deg)}[data-steps] div{display:none}[data-steps] section{align-items:center;bottom:-7px;display:flex;height:5px;justify-content:space-between;left:0;opacity:.5;pointer-events:none;position:absolute;width:calc(100% + 14px)}[data-steps] section i{align-items:center;display:flex;font-style:normal;height:5px;justify-content:center;position:relative;width:5px}[data-steps] section i:before{background:currentColor;content:"";height:1px;position:absolute;width:inherit}[data-steps] section i.zero:before{transform:rotate(90deg)}[data-steps] section i.plus:after{background:currentColor;content:"";height:inherit;position:absolute;width:1px}[data-steps] section.positive .minus{display:none}[data-steps] section.positive .zero:before{left:-2px}input[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:2px solid #c3c7ca;box-shadow:none;flex:0 0 16px;height:16px;margin:0 8px 0 0;width:16px}input[type=radio]:checked{background:var(--accentColor);border-color:var(--accentColor)}input[type=radio]:checked:before{background:#fff!important;content:"";height:6px;margin:3px;width:6px}label:hover input[type=radio]:not(:checked){border-color:var(--accentColor)}.ct-radio-option{display:flex;flex-wrap:wrap;margin:0}.ct-radio-option label{align-items:center;display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ct-radio-option:not([data-inline]):not([data-columns]) label:not(:last-child){margin-bottom:10px}.ct-radio-option[data-inline]{display:flex;flex-wrap:wrap;margin-top:-10px}.ct-radio-option[data-inline] label{padding-top:10px}.ct-radio-option[data-inline] label:not(:last-child){margin-right:15px}.ct-radio-option[data-columns="2"]{grid-column-gap:15px;grid-row-gap:15px;display:grid;grid-template-columns:repeat(2,1fr)}.ct-radio-option[data-columns="3"]{grid-column-gap:15px;grid-row-gap:15px;display:grid;grid-template-columns:repeat(3,1fr)}.ct-radio-option[data-radio-text=small] li{font-size:12px}.ct-radio-option[data-type*=alignment] li{font-family:dashicons;font-size:16px}.ct-radio-option[data-type*=alignment] li:first-child:before{content:""}.ct-radio-option[data-type*=alignment] li:nth-child(2):before{content:""}.ct-radio-option[data-type*=alignment] li:last-child:before{content:"";transform:rotate(180deg)}.ct-radio-option[data-type=vertical-alignment] li:before{transform:rotate(90deg)}.ct-radio-option[data-type=vertical-alignment] li:last-child:before{transform:rotate(-90deg)}.ct-radio-option[data-type=repeat] li:not(.active){color:#5c5c5c}.ct-radio-option[data-type=repeat] li svg{fill:currentColor;height:13px;width:13px}.ct-option-checkbox label{align-items:center;display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ct-option-checkbox label:hover input:not(:checked){border-color:#c3cacf}.ct-option-checkbox input[type=checkbox]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:hsla(0,0%,100%,.2);border:2px solid #d5dbde;border-radius:2px;box-shadow:none;box-sizing:border-box;flex:0 0 16px;height:16px;margin:0 8px 0 0;transition:none;width:16px}.ct-option-checkbox input[type=checkbox]:checked{background:var(--accentColor);border-color:var(--accentColor)}.ct-option-checkbox input[type=checkbox]:checked:before{align-items:center;color:#fff!important;content:"";display:flex;font-family:dashicons;font-size:15px;height:16px;justify-content:center;margin:-2px 0 0 -2px;width:16px}.ct-option-checkbox[data-columns]{grid-row-gap:15px;display:grid;grid-template-columns:repeat(2,1fr)}.ct-option-checkbox[data-columns]:not([data-columns*=no-gap]){grid-column-gap:10px}.ct-option-number{align-items:center;display:flex;height:30px;position:relative;width:var(--width,100px)}.ct-option-number[data-width=full]{width:100%}.ct-option-number[data-position=right]{margin-left:auto}.ct-option-number input{--padding:3px 30px;text-align:center}.ct-option-number>a{color:inherit;height:calc(100% - 2px);position:absolute;top:1px;width:30px}.ct-option-number>a:after,.ct-option-number>a:before{background:currentColor;bottom:0;content:"";height:1px;left:0;margin:auto;opacity:.8;position:absolute;right:0;top:0;transition:background .1s linear,opacity .1s linear;width:8px}.ct-option-number>a.ct-minus{border-bottom-left-radius:2px;border-top-left-radius:2px;left:1px}.ct-option-number>a.ct-minus:after{display:none}.ct-option-number>a.ct-plus{border-bottom-right-radius:2px;border-top-right-radius:2px;right:1px}.ct-option-number>a.ct-plus:after{transform:rotate(90deg)}.ct-option-number>a:not(.ct-disabled){cursor:pointer}.ct-option-number>a:not(.ct-disabled):hover{background:var(--accentColor);color:#fff;opacity:1}.ct-option-number>a.ct-disabled{opacity:.4}.ct-option-number>a:hover~input{--borderColor:var(--accentColor)!important}.ct-option-number input[type=text]{border:var(--borderWidth,1px) solid var(--borderColor,#ddd)!important;height:30px!important}.ct-image-picker{grid-column-gap:var(--column-gap,16px);grid-row-gap:var(--row-gap,16px);display:grid;grid-template-columns:var(--grid-columns,repeat(2,1fr))}.ct-image-picker[data-columns="3"]{--grid-columns:repeat(3,1fr);--column-gap:16px;--row-gap:16px}.ct-image-picker[data-columns="4"]{--grid-columns:repeat(4,1fr);--column-gap:12px}.ct-image-picker li{background:rgba(48,122,201,.08);border:2px solid transparent;border-radius:4px;cursor:pointer;margin:0;position:relative;transition:background .15s ease,box-shadow .15s ease}.ct-image-picker li,.ct-image-picker li span{align-items:center;display:flex;flex-direction:column}.ct-image-picker li span{justify-content:center;min-height:inherit}.ct-image-picker li.active span svg{fill:#f6f7f8;border-radius:5px}.ct-image-picker li span svg{fill:#fff;border-radius:5px}.ct-image-picker li:hover{border:2px solid #307ac9}.ct-image-picker li.active{background:transparent;border:2px solid #307ac9;box-shadow:0 5px 15px 0 rgba(0,0,0,.05)}.ct-image-picker li>:first-child{height:100%;left:0;position:absolute;top:0;width:100%}.ct-image-picker li:before{content:"";height:0;padding:60.667% 0;width:100%}.ct-image-picker[data-ratio="2:1"] li:before{--ratio:62%}.ct-image-picker[data-state=sync] li:first-child{position:relative}.ct-image-picker[data-state=sync] li:first-child:after{align-items:center;animation:rotation 3.5s linear infinite;animation-play-state:paused;content:"";display:flex;height:25px;justify-content:center;position:absolute;top:calc(50% - 5px);width:25px;will-change:transform}.ct-image-picker[data-state=sync] li:first-child.active:after{animation-play-state:running}@keyframes rotation{0%{transform:rotate(0deg)}to{transform:rotate(359deg)}}.ct-image-picker li:hover .wheeloflife-tooltip-top{opacity:1;transform:translate3d(0,-40px,0);visibility:visible}.ct-option-spacing{align-items:flex-start;display:flex}.ct-option-spacing>span{margin-right:6px}.ct-option-spacing>span input{position:relative;text-align:center}.ct-option-spacing>span input.inactive{background:hsla(0,0%,100%,.8);color:rgba(50,55,60,.5);pointer-events:none}.ct-option-spacing>span input:focus+small{color:rgba(85,93,102,.8)}.ct-option-spacing>span small{color:#566779;display:block;font-size:9px;font-weight:500;line-height:normal;margin-top:5px;text-align:center;text-transform:uppercase}.ct-option-spacing .ct-spacing-controls{margin-left:4px}.ct-option-spacing .ct-spacing-controls a{align-items:center;color:#566779;cursor:pointer;display:flex;height:100%;justify-content:center;width:35px}.ct-option-spacing .ct-spacing-controls a:hover{color:var(--accentColor)}.ct-option-spacing .ct-spacing-controls a svg{fill:currentColor}.ct-option-border{align-items:center;display:flex;justify-content:flex-end}.ct-option-border>:first-child{margin-left:15px;order:2}.ct-option-border .ct-disabled{justify-content:center}.ct-option-border .ct-disabled .ct-value-divider,.ct-option-border .ct-disabled input,.ct-option-border .ct-disabled+div{display:none}.ct-option-border [data-style]:before{border-bottom-color:currentColor;border-bottom-width:2px;content:"";width:22px}.ct-option-border [data-style=dotted]:before{border-bottom-style:dotted}.ct-option-border [data-style=solid]:before{border-bottom-style:solid}.ct-option-border [data-style=dashed]:before{border-bottom-style:dashed}.ct-option-border [data-style=none]{font-size:9px}.ct-option-border [data-style=none]:before{display:none}.ct-tabs{margin:40px -12px 0}.ct-tabs>ul,.ct-tabs>ul>li{display:flex;margin:0}.ct-tabs>ul>li{align-items:center;background:#fff;border:1px solid rgba(86,103,121,.2);box-sizing:border-box;color:#566779;cursor:pointer;flex:1 1 0;font-size:15px;font-weight:400;height:50px;justify-content:center;line-height:1.285;padding:0 10px}.ct-tabs>ul>li:not(:first-child){border-left:none}.ct-tabs>ul>li.active{background:#f1f5f9;position:relative}.ct-tabs>ul>li.active:before{background:#307ac9;content:"";height:2px;left:-1px;position:absolute;right:-1px;top:-2px}.ct-tabs>.ct-current-tab{border-top:1px solid #d6d6d6;margin-top:-1px;padding:0 12px}.ct-tabs:not(:last-child)>.ct-current-tab{margin-bottom:20px}.rara-admin-modal .ct-tabs>ul>li{background:#f5f5f5}.rara-admin-modal .ct-tabs>ul>li.active:after{background:#fff}.ct-option-textarea textarea{border-color:var(--borderColor,#ddd);border-radius:3px;font-size:14px;min-height:80px;padding:4px 8px;resize:none;transition:box-shadow .1s linear,border-color .1s linear;width:100%}.ct-option-textarea textarea:hover{border-color:#0e8ecc}.ct-option-textarea textarea:focus{border-color:#0e8ecc;box-shadow:0 0 0 1px #0e8ecc}[class*=ct-attachment] .thumbnail{align-items:center;cursor:pointer;display:flex;flex-direction:column;position:relative}[class*=ct-attachment] .thumbnail img{border-radius:3px;max-width:100%}[class*=ct-attachment] .thumbnail:hover .actions{opacity:1}[class*=ct-attachment] .actions{background:#fff;border-radius:3px;box-shadow:0 2px 5px rgba(0,0,0,.02);opacity:0;overflow:hidden;position:absolute;right:var(--actions-spacing,18px);top:var(--actions-spacing,18px)}[class*=ct-attachment] .actions button{background:transparent;border:none;border-radius:0;height:29px;line-height:29px;min-height:auto;padding:0;width:34px}[class*=ct-attachment] .actions button:hover{background:var(--accentColor);color:#fff}[class*=ct-attachment] .actions button:last-child{border-left:1px solid rgba(0,0,0,.1)}[class*=ct-attachment] .actions button:before{font-family:dashicons;font-size:15px}[class*=ct-attachment] .actions .edit-button:before{content:""}[class*=ct-attachment] .actions .remove-button:before{content:""}.ct-attachment:not([data-type=no-frame]) .thumbnail{border:1px dashed #c1c4ca;border-radius:3px;padding:8px}.ct-attachment[data-type=no-frame],.ct-attachment[data-type=small]{--actions-spacing:10px}.ct-attachment[data-type=small] .thumbnail{justify-content:center}.ct-attachment[data-type=small] .thumbnail img{max-height:100px;min-height:32px}.ct-thumbnails-list{grid-column-gap:15px;grid-row-gap:15px;display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,125px));margin-bottom:20px}.ct-thumbnails-list .thumbnail{max-height:130px}.ct-thumbnails-list .thumbnail img{height:100%;-o-object-fit:cover;object-fit:cover;-o-object-position:center center;object-position:center center;width:100%}.ct-thumbnails-list .actions{--actions-spacing:12px}.ct-buttons-group,.ct-buttons-group li{display:flex;margin:0}.ct-buttons-group li{align-items:center;background:hsla(0,0%,100%,.6);box-shadow:inset 0 0 0 1px #ddd;cursor:pointer;flex:1 1 auto;font-size:13px;height:30px;justify-content:center;min-width:40px;position:relative;transition:all .15s cubic-bezier(.4,0,.2,1)}.ct-buttons-group li:hover{background:#fff;color:#444}.ct-buttons-group li.active{background:#0e8ecc;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);color:#fff;z-index:1}.ct-buttons-group li:not(:first-child){margin-left:-1px}.ct-buttons-group li:first-child{border-radius:3px 0 0 3px}.ct-buttons-group li:last-child{border-radius:0 3px 3px 0}.ct-buttons-group[data-type=compact] li{height:26px}.ct-buttons-group[data-buttons=ratio]{font-size:11px;font-weight:500;letter-spacing:.05em}.ct-buttons-group[data-type=meta-divider] li{flex:1 0 0}.ct-buttons-group[data-type=meta-divider] li:nth-child(2):before{background:currentColor;border-radius:2px;content:"";height:10px;transform:rotate(25deg);width:1px}.ct-buttons-group[data-type=meta-divider] li:nth-child(3):before{background:currentColor;border-radius:2px;content:"";height:1px;width:10px}.ct-buttons-group[data-type=meta-divider] li:nth-child(4):before{content:"●";font-size:5px}.ct-buttons-group[data-type=content-spacing] li{height:42px}.ct-buttons-group[data-type=content-spacing] li:hover .wheeloflife-tooltip-top{opacity:1;transform:translate3d(0,-42px,0);visibility:visible}.ct-buttons-group[data-type=content-spacing] li span{background:currentColor;opacity:.9;position:relative;width:18px}.ct-buttons-group[data-type=content-spacing] li span:after,.ct-buttons-group[data-type=content-spacing] li span:before{border:1px solid;box-sizing:border-box;content:"";height:6px;left:0;position:absolute;width:100%}.ct-buttons-group[data-type=content-spacing] li span:before{top:1px;transform:translateY(-100%)}.ct-buttons-group[data-type=content-spacing] li span:after{bottom:1px;transform:translateY(100%)}.ct-buttons-group[data-type=content-spacing] li:first-child span{height:8px}.ct-buttons-group[data-type=content-spacing] li:nth-child(2) span{height:13px;top:3px}.ct-buttons-group[data-type=content-spacing] li:nth-child(2) span:after{background:currentColor;display:none}.ct-buttons-group[data-type=content-spacing] li:nth-child(3) span{bottom:2px;height:13px}.ct-buttons-group[data-type=content-spacing] li:nth-child(3) span:before{display:none}.ct-buttons-group[data-type=content-spacing] li:nth-child(4) span{height:18px}.ct-buttons-group[data-type=content-spacing] li:nth-child(4) span:after,.ct-buttons-group[data-type=content-spacing] li:nth-child(4) span:before{display:none}[data-state=disabled]>section{opacity:.5;pointer-events:none}[data-state=disabled].ct-panel>header>label{opacity:.5}.ct-notification{color:rgba(85,93,102,.8);font-size:12px;font-style:italic}[class*=ct-tooltip]{-webkit-font-smoothing:antialiased;align-items:center;background:#363f42;border-radius:3px;color:#fff;display:flex;font-size:12px;font-style:italic;font-weight:400;height:26px;letter-spacing:normal;opacity:0;padding:0 8px;pointer-events:none;position:absolute;text-transform:none;transition:opacity .2s cubic-bezier(.455,.03,.515,.955),transform .2s cubic-bezier(.455,.03,.515,.955),visibility .2s cubic-bezier(.455,.03,.515,.955);-webkit-user-select:none;-moz-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;width:auto;z-index:200}[class*=ct-tooltip]:after,[class*=ct-tooltip]:before{box-sizing:border-box;content:"";position:absolute}[class*=ct-tooltip][class*=-top]:before{bottom:-10px;height:10px;left:0;width:100%}[class*=ct-tooltip][class*=-top]:after{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #363f42;bottom:-5px;height:5px;left:0;margin:0 auto;right:0;width:10px}.wheeloflife-tooltip-top{transform:translate3d(0,-35px,0)}.ct-typography{position:relative}.ct-typohraphy-value{align-items:center;background:#fff;border:1px solid #ddd;border-radius:3px;cursor:pointer;display:flex;justify-content:space-between;padding-right:8px;transition:border-color .1s linear}.ct-typohraphy-value:hover{border-color:#0e8ecc}.ct-typohraphy-value:hover a{color:#0073aa;opacity:1}.ct-typohraphy-value>div{box-sizing:border-box;overflow:hidden;padding:6px 0 6px 8px;text-overflow:ellipsis;white-space:nowrap;width:100%}.ct-typohraphy-value>div i{font-size:70%;font-style:normal;line-height:normal;margin:-5px 7px 0;opacity:.5;position:relative}.ct-typohraphy-value>div>span{position:relative}.ct-typohraphy-value>div>span:after{background:rgba(14,142,204,.3);border-radius:2px;bottom:-1px;content:"";display:block;left:-3px;opacity:0;position:absolute;right:-3px;top:-1px}.ct-typohraphy-value>div>span span{position:relative;z-index:2}.ct-typohraphy-value>div>span:hover:after{opacity:1}.ct-typohraphy-value>div>span:hover span{color:#28607b}.ct-typohraphy-value .ct-font{align-items:center;display:inline-flex}.ct-typohraphy-value .ct-font span{display:inline-block;max-width:100px;overflow:hidden;text-overflow:ellipsis;text-transform:capitalize;white-space:nowrap}.ct-typohraphy-value a{align-items:center;color:inherit;display:inline-flex;font-size:10px;height:17px;justify-content:center;letter-spacing:.1em;opacity:.5;width:17px}.ct-typohraphy-value a:before{content:"•••"}.ct-typography-container{display:flex;flex-direction:column;min-height:430px;overflow:hidden;position:relative}.ct-typography-top{align-items:center;border-bottom:1px dashed #eee;box-sizing:border-box;display:flex;height:70px;margin:0;padding:0 20px;position:relative}.ct-typography-top.ct-static>*{transition:none!important}.ct-typography-top~*{left:0;right:0;top:70px}.ct-typography-top li{align-items:center;background:#fff;border:1px solid #d1d5d9;border-radius:3px;box-shadow:0 0 0 0 transparent;box-sizing:border-box;color:#566779;cursor:pointer;display:flex;height:28px;margin-bottom:0;overflow:hidden;padding:0 8px;position:relative;transition:box-shadow .1s cubic-bezier(.455,.03,.515,.955),border-color .1s cubic-bezier(.455,.03,.515,.955);-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}.ct-typography-top li.active{box-shadow:0 0 0 1px var(--accentColor)}.ct-typography-top li.active,.ct-typography-top li:hover{border-color:var(--accentColor)}.ct-typography-top .ct-font{flex:1}.ct-typography-top .ct-font span{overflow:hidden;text-overflow:ellipsis;text-transform:capitalize;transition:width .1s cubic-bezier(.455,.03,.515,.955);white-space:nowrap;width:100%}.ct-typography-top .ct-font input{border:none;color:inherit;font:inherit;margin:0;padding:0;width:100%}.ct-typography-top .ct-font input:focus{outline:none}.ct-typography-top .ct-font svg{fill:currentColor;cursor:pointer;opacity:0;position:absolute;right:8px;top:calc(50% - 3px);transition:opacity .15s cubic-bezier(.455,.03,.515,.955)}.ct-typography-top .ct-font.active svg{opacity:1}.ct-typography-top .ct-weight{justify-content:flex-end;margin-left:7%;transition:width .1s cubic-bezier(.455,.03,.515,.955);width:78px}.ct-typography-top .ct-weight:before{color:#727c88;content:"A";font-size:15px;left:8px;margin-right:10px;opacity:1;position:absolute;transition:font-weight .1s cubic-bezier(.455,.03,.515,.955),opacity .15s cubic-bezier(.455,.03,.515,.955);z-index:0}.ct-typography-top .ct-weight:hover:before{font-weight:700}.ct-typography-top .ct-weight span{background:#fff;box-shadow:0 0 10px 3px #fff;line-height:normal;position:relative;text-align:right;width:44px;z-index:1}.ct-typography-top .ct-weight span[data-variation*=i]{font-style:italic}.ct-typography-top .ct-weight span[data-variation=Default]{opacity:0}.ct-typography-top .ct-back{margin-left:-44px;margin-right:12px;opacity:0;transition:margin .1s cubic-bezier(.455,.03,.515,.955),opacity .1s cubic-bezier(.455,.03,.515,.955);width:28px;z-index:2}.ct-typography-top .ct-back svg{fill:currentColor}.ct-typography-top.rara-switch-panel .ct-back{margin-left:0;opacity:1}.ct-typography-top.rara-switch-panel .ct-font span{width:90%}.ct-typography-top.rara-switch-panel .ct-weight{margin-left:5%}.ct-typography-top.rara-switch-panel .ct-weight:not(.active){width:45px}.ct-typography-top.rara-switch-panel .ct-weight:not(.active):before{opacity:0}.ct-typography-options{margin:0}.ct-typography-options>li{align-items:center;box-sizing:border-box;margin:0;padding:0 20px}.ct-typography-options>li:not(.ct-typography-variant){display:flex;height:95px}.ct-typography-options>li:not(:last-child){border-bottom:1px solid #eee}.ct-typography-options .ct-control{margin:0!important;padding:0!important;width:100%}.ct-typography-options .ct-control:after{display:none}.ct-option-input input{border:1px solid #ddd!important}.ct-typography-options .ab-slider:before{--backgroundColor:#e3e6e8}.ct-typography-options .ct-value-changer ul{box-shadow:0 10px 20px 3px rgba(0,0,0,.07),0 1px 3px 0 rgba(0,0,0,.03)}.ct-typography-options .ct-disabled-notification{background:hsla(240,9%,96%,.5)}.ct-typography-variant{grid-column-gap:15px;display:grid;grid-template-columns:repeat(2,1fr);height:75px}.ct-typography-variant ul{display:flex}.ct-typography-variant ul li{border:1px solid #dfe1e4;cursor:pointer;display:flex;flex:1;justify-content:center;margin:0;padding:5px 0;position:relative}.ct-typography-variant ul li:before{font-size:13px;font-weight:700;letter-spacing:.04em}.ct-typography-variant ul li+li{margin-left:-1px}.ct-typography-variant ul li:first-child{border-radius:3px 0 0 3px}.ct-typography-variant ul li:last-child{border-radius:0 3px 3px 0}.ct-typography-variant ul li:not(.active){color:#727c88}.ct-typography-variant ul li:not(.active):hover{color:var(--accentColor)}.ct-typography-variant ul li.active{background:var(--accentColor);border-color:var(--accentColor);color:#fff;z-index:2}.ct-typography-variant ul li[data-variant=capitalize]:before{content:"Aa"}.ct-typography-variant ul li[data-variant=uppercase]:before{content:"AA"}.ct-typography-variant ul li[data-variant=line-through]:before,.ct-typography-variant ul li[data-variant=underline]:before{content:"Aa"}.ct-typography-variant ul li:hover .wheeloflife-tooltip-top{opacity:1;transform:translate3d(0,-40px,0);visibility:visible}.ct-text-decoration li:after{background:currentColor;border-radius:2px;content:"";height:1px;left:0;margin:auto;opacity:.7;position:absolute;right:0;width:50%}.ct-text-decoration li[data-variant=underline]:after{bottom:6px}.ct-text-decoration li[data-variant=line-through]:after{bottom:0;top:3px}.ct-typography-single-font,.ct-typography-variations li{cursor:pointer;position:relative}.ct-typography-single-font:not(:first-child),.ct-typography-variations li:not(:first-child){border-top:1px solid #eee}.ct-typography-single-font.active,.ct-typography-single-font:hover,.ct-typography-variations li.active,.ct-typography-variations li:hover{background:var(--accentColor);border-color:var(--accentColor);color:#fff}.ct-typography-single-font.active:after,.ct-typography-single-font:hover:after,.ct-typography-variations li.active:after,.ct-typography-variations li:hover:after{box-shadow:-5px 0 15px 10px var(--accentColor)}.ct-typography-single-font.active+*,.ct-typography-single-font:hover+*,.ct-typography-variations li.active+*,.ct-typography-variations li:hover+*{border-top-color:hsla(0,0%,100%,.3)}.ct-typography-single-font.active:before,.ct-typography-variations li.active:before{content:"";font:400 17px/17px dashicons;position:absolute;right:20px}.ct-typography-fonts{max-height:360px;overflow-x:scroll}.ct-typography-single-font{box-sizing:border-box;display:flex;flex-direction:column;height:85px;justify-content:center;overflow:hidden;padding:0 20px}.ct-typography-single-font:before{top:18px}.ct-typography-single-font:after{background:#fff;box-shadow:-5px 0 15px 10px #fff;content:"";height:100%;position:absolute;right:0;top:0;transform:translateX(100%);width:10px}.ct-typography-single-font .ct-font-name{opacity:.7}.ct-typography-single-font .ct-font-preview{font-size:20px;font-weight:400;line-height:1.3;margin-top:10px;white-space:nowrap}.ct-typography-single-font:hover .ct-font-name{opacity:1}.ct-typography-variations{margin:0;max-height:360px;overflow-x:auto}.ct-typography-variations li{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;align-items:center;box-sizing:border-box;display:flex;height:50px;margin-bottom:0;padding:0 20px}.ct-typography-variations .ct-variation-name{font-size:14px;line-height:1.3}.ct-typography-variations [data-variation*="1"]{font-weight:100}.ct-typography-variations [data-variation*="2"]{font-weight:200}.ct-typography-variations [data-variation*="3"]{font-weight:300}.ct-typography-variations [data-variation*="4"]{font-weight:400}.ct-typography-variations [data-variation*="5"]{font-weight:500}.ct-typography-variations [data-variation*="6"]{font-weight:600}.ct-typography-variations [data-variation*="7"]{font-weight:700}.ct-typography-variations [data-variation*="8"]{font-weight:800}.ct-typography-variations [data-variation*="9"]{font-weight:900}.ct-typography-variations [data-variation*=i]{font-style:italic}.ct-attachment .components-base-control__field{margin-bottom:0}.ct-attachment .components-focal-point-picker{box-shadow:none}.ct-attachment .focal-point-picker__controls{padding:1em 0 .6em}.ct-ratio-picker>ul+div{margin-top:20px}.ct-ratio-picker [class*=ct-ratio]{align-items:center;display:flex;flex-wrap:wrap}.ct-ratio-picker.reversed button span{transform:rotate(-90deg)}.ct-ratio-picker .ct-notification{margin:0;padding:0;width:100%}.ct-ratio-predefined ul{flex:1;font-size:11px;font-weight:500;letter-spacing:.05em}.ct-ratio-predefined button{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:none;cursor:pointer;display:flex;justify-content:center;margin-left:12px;padding:0}.ct-ratio-predefined button:focus{outline:none}.ct-ratio-predefined button span{align-items:center;display:flex;height:30px;justify-content:center;position:relative;transition:transform .15s cubic-bezier(.4,0,.2,1);width:30px}.ct-ratio-predefined button span:after,.ct-ratio-predefined button span:before{box-sizing:border-box;content:"";position:absolute;transition:z-index .15s cubic-bezier(.4,0,.2,1),background .15s cubic-bezier(.4,0,.2,1),border-color .15s cubic-bezier(.4,0,.2,1)}.ct-ratio-predefined button span:before{background:transparent;border:1px solid hsla(210,4%,47%,.5);border-radius:1px;height:25px;width:13px}.ct-ratio-predefined button span:after{background:#9ca3a9;border:1px solid transparent;border-radius:2px;height:13px;margin:auto;width:25px}.ct-ratio-predefined button:hover span:before{background:var(--accentColor);border-color:transparent;border-radius:2px;z-index:2}.ct-ratio-predefined button:hover span:after{background:transparent;border:1px dashed hsla(210,4%,47%,.5);border-radius:1px}.ct-ratio-predefined button:hover .wheeloflife-tooltip-top{opacity:1;transform:translate3d(0,-38px,0);visibility:visible}.ct-ratio-custom{justify-content:space-between}.ct-ratio-custom .ct-option-input{width:45%}.ct-ratio-custom span{font-weight:700;text-align:center;width:10%}.ct-ratio-custom .ct-notification{margin-top:10px}.ct-ratio-preview{align-items:center;background:var(--backgroundColor,#fff);border:1px solid var(--borderColor,#ddd);border-radius:3px;box-sizing:border-box;cursor:pointer;display:flex;font-size:12px;height:30px;justify-content:center;line-height:normal;min-width:75px;padding:0 10px}.ct-ratio-preview .ct-ratio-key{border-right:1px solid var(--borderColor,#ccc);margin-right:8px;padding-right:8px}.ct-ratio-preview .ct-width-key{border-left:1px solid var(--borderColor,#ccc);margin-left:8px;padding-left:8px}.ct-ratio-preview:hover{border-color:var(--accentColor)}.ct-ratio-modal{background:#fff;border-radius:6px;box-shadow:0 15px 15px rgba(0,0,0,.1);left:-14px;margin-bottom:30px;position:absolute;top:19px;transform-origin:center top;width:295px;z-index:20}.ct-ratio-modal:before{border-color:transparent transparent #fff;border-style:solid;border-width:0 6px 7px;content:"";height:0;position:absolute;right:28px;top:-7px;width:0}.ct-ratio-modal .ct-ratio-content{padding:25px 20px}.ct-ratio-modal .ct-ratio-content .ct-radio-option{border-bottom:1px dashed #eee;padding-bottom:20px}.ct-ratio-modal .ct-ratio-content .ct-control{padding-left:0;padding-right:0}.ct-ratio-modal .ct-ratio-content .ct-control:first-child{margin-top:0}.ct-background{background-color:hsla(0,0%,100%,.8);background-image:linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ddd 0),linear-gradient(-45deg,transparent 75%,#ddd 0);background-position:0 0,0 5px,5px -5px,-5px 0;background-size:10px 10px;border-radius:100%;cursor:pointer;height:38px;margin-left:auto;width:38px}.ct-background-preview{align-items:center;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15);box-sizing:border-box;cursor:pointer;display:flex;height:inherit;justify-content:center;position:relative;width:inherit}.ct-background-preview[data-background-type=image]{background-position:var(--background-position)}.ct-background-preview[data-background-type=gradient],.ct-background-preview[data-background-type=image]{background-image:var(--background-image);background-repeat:no-repeat;background-size:cover}.ct-background-preview[data-background-type*=pattern]:before{background-color:var(--pattern-color);border-radius:100%;content:"";height:calc(100% - 2px);left:1px;-webkit-mask:var(--pattern-mask);mask:var(--pattern-mask);-webkit-mask-position:50% 50%;mask-position:50% 50%;-webkit-mask-size:48px;mask-size:48px;position:absolute;top:1px;width:calc(100% - 2px)}.ct-background-preview:hover .wheeloflife-tooltip-top{opacity:1;transform:translate3d(0,-43px,0);visibility:visible}.ct-background-preview.no-color{background-color:#fff!important;will-change:transform}.ct-background-preview.no-color svg{fill:#566779;animation:spin 4.5s linear infinite;height:18px;width:18px}.wheeloflife-background-modal .wheeloflife-color-picker-modal .wheeloflife-color-picker-top{padding:20px 14px}.wheeloflife-background-modal .wheeloflife-color-picker-modal .components-color-picker{--cpm-ph:14px}.ct-gradient-tab .components-circular-option-picker{box-sizing:border-box;margin:0;padding:20px 14px}.ct-gradient-tab .components-circular-option-picker__swatches{display:none}.ct-gradient-tab .components-custom-gradient-picker__gradient-bar{box-sizing:border-box;margin:0}.ct-gradient-tab .components-custom-gradient-picker__inserter,.ct-gradient-tab .components-custom-gradient-picker__markers-container{height:100%}.ct-gradient-tab .components-custom-gradient-picker__ui-line{margin:18px 0}.ct-gradient-tab .components-custom-gradient-picker__ui-line>:first-child{max-width:130px;width:100%}.ct-gradient-tab .components-custom-gradient-picker__ui-line .components-base-control__field{margin-bottom:0}.ct-gradient-tab .components-custom-gradient-picker__ui-line .components-input-control__label{display:none!important}.ct-gradient-tab .components-circular-option-picker__custom-clear-wrapper{justify-content:normal}.ct-gradient-tab .components-popover{animation:none!important;left:0!important;margin-left:-20px;margin-top:36px;position:absolute;right:0!important;top:0!important;transform-origin:top center!important;z-index:11}.ct-gradient-tab .components-popover .components-popover__content{border:none;border-bottom:1px solid #eee;border-radius:0;box-shadow:none;box-sizing:border-box;left:auto;margin:0!important;min-width:var(--modalWidth,295px)}.ct-gradient-tab .components-popover .components-popover__content>div{padding:0}.ct-gradient-tab .components-popover .components-popover__content .components-color-picker{--cpm-pv:16px}.ct-gradient-tab .components-custom-gradient-picker__remove-control-point{margin-bottom:15px;margin-left:14px}.ct-gradient-tab .components-custom-gradient-picker__inserter .components-popover{margin-right:-44px;z-index:11}.ct-gradient-swatches{grid-column-gap:19px;grid-row-gap:19px;border-top:1px dashed #eee;display:grid;grid-template-columns:repeat(6,1fr);margin:0;padding:20px 14px}.ct-gradient-swatches li{align-items:center;background-image:var(--background-image);border-radius:100%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);cursor:pointer;display:flex;height:28px;justify-content:center;margin:auto;transition:box-shadow .1s ease;width:28px}.ct-gradient-swatches li.active{box-shadow:inset 0 0 0 1px rgba(0,0,0,.1),0 0 0 2px #fff,0 0 0 4px #606a73;position:relative}.ct-gradient-swatches li.active:before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:#fff;content:"";font-family:dashicons;font-size:20px;margin-top:1px;position:absolute;text-shadow:0 1px 2px rgba(0,0,0,.2)}.ct-image-tab{padding:20px 0}.ct-image-tab .ct-control{--options-vertical-spacing:20px}.ct-image-tab .ct-control:not(:last-child){border-bottom:1px dashed #eee;padding-bottom:20px}.ct-image-tab>.ct-radio-option{padding:0 14px}.ct-image-tab>.ct-radio-option+*{border-top:1px dashed #eee;padding-top:20px}.ct-image-tab .wheeloflife-color-picker-modal{border-radius:0;border-top:1px solid #eee;margin:20px -14px 0;opacity:1!important;position:relative;transform:none!important;transition:none!important}.ct-image-tab .wheeloflife-color-picker-modal:before{background:#fff;border-left:1px solid #e6e6e6;border-top:1px solid #e6e6e6;content:"";height:12px;position:absolute;right:20px;top:-7px;transform:rotate(45deg);width:12px}.ct-image-tab .wheeloflife-color-picker-modal .components-color-picker{padding-bottom:0}.ct-image-tab .wheeloflife-tooltip-top{display:none}.ct-patterns-list{grid-column-gap:15px;grid-row-gap:15px;border-bottom:1px dashed #eee;display:grid;grid-template-columns:repeat(3,1fr);margin:25px 0 0;padding:0 14px 25px}.ct-patterns-list li{border:2px solid #e0e0e0;border-radius:3px;box-sizing:border-box;cursor:pointer;margin:0;min-height:71.6px;padding:2px}.ct-patterns-list li img{display:block;max-width:100%}.ct-patterns-list li:hover{border-color:#d1d2d2}.ct-patterns-list li.active{border-color:var(--accentColor);box-shadow:0 5px 15px 0 rgba(0,0,0,.05)}.wheeloflife-background-modal{--option-modal-arrow-position:calc(100% - 38px);display:flex;flex-direction:column;height:430px;opacity:0;transform:scale3d(.95,.95,1);transition:opacity .1s ease,visibility .1s ease,transform .1s ease-out;visibility:hidden}.wheeloflife-background-modal.active{opacity:1;transform:scaleX(1);visibility:visible}.wheeloflife-background-modal .ct-modal-tabs{flex:0 0 43px}.wheeloflife-background-modal>div{flex:1}.wheeloflife-background-modal .ct-gradient-tab,.wheeloflife-background-modal .ct-image-tab{overflow-x:hidden;overflow-y:scroll}.wheeloflife-color-picker-container{display:flex;justify-content:flex-end}.wheeloflife-color-picker-single:not(:last-child){margin-right:10px}.wheeloflife-color-picker-single>span{background-color:hsla(0,0%,100%,.8);background-image:linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ddd 0),linear-gradient(-45deg,transparent 75%,#ddd 0);background-position:0 0,0 5px,5px -5px,-5px 0;background-size:10px 10px;border-radius:100%;display:flex;height:26px;width:26px}.wheeloflife-color-picker-single>span span:focus{outline:none}.wheeloflife-color-picker-single>span span:hover .wheeloflife-tooltip-top{opacity:1;transform:translate3d(0,-38px,0);visibility:visible}.wheeloflife-color-picker-single.ct-no-color>span span{background:hsla(0,0%,100%,.8)}.wheeloflife-color-picker-single.ct-no-color>span span:after{background:#e60606;border-radius:2px;content:"";height:2px;position:absolute;transform:rotate(-40deg);width:12px}.wheeloflife-color-modal-wrapper{display:flex;justify-content:center;position:relative;width:100%;z-index:20}.wheeloflife-color-picker-modal{border-radius:8px;width:var(--modalWidth,295px)}.wheeloflife-color-picker-modal[data-position=bottom] .ct-arrow{top:-12px}.wheeloflife-color-picker-modal[data-position=top] .ct-arrow{bottom:-12px}.wheeloflife-color-picker-modal .ct-arrow{border-color:transparent transparent red;border-style:solid;border-width:0 6px 7px;height:0;position:absolute;width:0;z-index:1}.wheeloflife-color-picker-top{align-items:center;border-bottom:1px solid #eee;display:flex;justify-content:space-between;padding:17px}.wheeloflife-color-picker-skins{display:flex;margin:0}.wheeloflife-color-picker-skins li{align-items:center;border-radius:100%;box-shadow:inset 0 0 3px rgba(0,0,0,.09);cursor:pointer;display:flex;height:24px;justify-content:center;margin-bottom:0;position:relative;width:24px}.wheeloflife-color-picker-skins li:not(:last-child){margin-right:15.7px}.wheeloflife-color-picker-skins li.active{box-shadow:inset 0 0 3px rgba(0,0,0,.09),0 0 0 3px #fff}.wheeloflife-color-picker-skins li.active:before{background:rgba(0,0,0,.4);border-radius:100%;content:"";height:calc(100% + 8px);position:absolute;width:calc(100% + 8px);z-index:-1}.wheeloflife-color-picker-skins li.active:after{align-items:center;bottom:0;color:#fff;content:"";display:flex;font-family:dashicons;font-size:15px;justify-content:center;left:-1px;position:absolute;right:0;text-shadow:0 1px 2px rgba(0,0,0,.2);top:1px}.wheeloflife-color-picker-skins li.ct-no-color-pill{background:hsla(0,0%,100%,.8)}.wheeloflife-color-picker-skins li.ct-no-color-pill:after{background:#e60606;border-radius:2px;bottom:auto;content:"";height:2px;left:auto;right:auto;top:auto;transform:rotate(-40deg);width:14px}.ct-edit-palette{align-items:center;cursor:pointer;display:flex;justify-content:center;position:relative}.ct-edit-palette span{border-radius:100%;box-shadow:inset 0 0 2px 0 rgba(0,0,0,.4);height:24px;-webkit-mask-image:-webkit-radial-gradient(#fff,#000);mask-image:-webkit-radial-gradient(#fff,#000);overflow:hidden;width:24px}.ct-edit-palette span svg{filter:blur(.2em);height:inherit;opacity:.9;transform:scale(1.3);width:inherit}.ct-edit-palette:focus{box-shadow:none;outline:none}.ct-edit-palette:hover .wheeloflife-tooltip-top,.wheeloflife-color-picker-skins li:hover .wheeloflife-tooltip-top{opacity:1;transform:translate3d(0,-38px,0);visibility:visible}.wheeloflife-color-picker-modal .components-color-picker{background:#fff;box-sizing:border-box;max-width:280px;overflow:hidden;width:100%}.wheeloflife-color-picker-modal .components-color-picker *{box-sizing:border-box}.wheeloflife-color-picker-modal .components-color-picker__saturation{padding-bottom:55%;position:relative;width:100%}.wheeloflife-color-picker-modal .components-color-picker__body{padding:20px 0 0}.wheeloflife-color-picker-modal .components-color-picker__controls{display:flex}.wheeloflife-color-picker-modal .components-color-picker__alpha-pointer,.wheeloflife-color-picker-modal .components-color-picker__hue-pointer,.wheeloflife-color-picker-modal .components-color-picker__saturation-pointer{border:none;box-shadow:none;cursor:pointer;padding:0;position:absolute}.wheeloflife-color-picker-modal .components-visually-hidden{clip:rect(1px,1px,1px,1px);word-wrap:normal!important;border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.wheeloflife-color-picker-modal .components-color-picker__saturation-black,.wheeloflife-color-picker-modal .components-color-picker__saturation-color,.wheeloflife-color-picker-modal .components-color-picker__saturation-white{bottom:0;left:0;position:absolute;right:0;top:0}.wheeloflife-color-picker-modal .components-color-picker__saturation-black,.wheeloflife-color-picker-modal .components-color-picker__saturation-white{box-shadow:inset 0 0 5px rgba(0,0,0,.1)}.wheeloflife-color-picker-modal .components-color-picker__saturation-color{border-radius:5px;-webkit-mask-image:-webkit-radial-gradient(#fff,#000);mask-image:-webkit-radial-gradient(#fff,#000);overflow:hidden}.wheeloflife-color-picker-modal .components-color-picker__saturation-white{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.wheeloflife-color-picker-modal .components-color-picker__saturation-black{background:linear-gradient(0deg,#000,transparent)}.wheeloflife-color-picker-modal .components-color-picker__saturation-pointer{background-color:transparent;border-radius:50%;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);height:14px;padding:0;transform:translate(-4px,-4px);width:14px}.wheeloflife-color-picker-modal .components-color-picker__swatch{display:none}.wheeloflife-color-picker-modal .components-color-picker__active{border-radius:50%;bottom:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);left:0;position:absolute;right:0;top:0;z-index:2}.wheeloflife-color-picker-modal .components-color-picker__toggles{flex:1}.wheeloflife-color-picker-modal .components-color-picker__alpha{background-image:linear-gradient(45deg,#ddd 25%,transparent 0),linear-gradient(-45deg,#ddd 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ddd 0),linear-gradient(-45deg,transparent 75%,#ddd 0);background-position:0 0,0 5px,5px -5px,-5px 0;background-size:10px 10px}.wheeloflife-color-picker-modal .components-color-picker__alpha-gradient,.wheeloflife-color-picker-modal .components-color-picker__hue-gradient{border-radius:10px;bottom:0;left:0;position:absolute;right:0;top:0}.wheeloflife-color-picker-modal .components-color-picker__alpha,.wheeloflife-color-picker-modal .components-color-picker__hue{border-radius:10px;height:18px;position:relative}.wheeloflife-color-picker-modal .is-alpha-enabled .components-color-picker__hue{margin-bottom:10px}.wheeloflife-color-picker-modal .components-color-picker__alpha-bar,.wheeloflife-color-picker-modal .components-color-picker__hue-bar{height:100%;margin:0 3px;padding:0 2px;position:relative}.wheeloflife-color-picker-modal .components-color-picker__hue-gradient{background:linear-gradient(90deg,red 0,#ff0 17%,lime 33%,cyan 50%,blue 67%,#f0f 83%,red)}.wheeloflife-color-picker-modal .components-color-picker__alpha-gradient,.wheeloflife-color-picker-modal .components-color-picker__hue-gradient{box-shadow:inset 0 0 5px rgba(0,0,0,.1)}.wheeloflife-color-picker-modal .components-color-picker__alpha-pointer,.wheeloflife-color-picker-modal .components-color-picker__hue-pointer{background:#fff;border-radius:50%;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);height:14px;left:0;transform:translate(-7px,2px);width:14px}.wheeloflife-color-picker-modal .components-color-picker__hue-pointer,.wheeloflife-color-picker-modal .components-color-picker__saturation-pointer{transition:box-shadow .1s linear}.wheeloflife-color-picker-modal .components-color-picker__saturation-pointer:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px blue,0 0 5px 0 blue,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4)}.wheeloflife-color-picker-modal .components-color-picker__alpha-pointer:focus,.wheeloflife-color-picker-modal .components-color-picker__hue-pointer:focus{border-color:blue;box-shadow:0 0 0 2px blue,0 0 3px 0 blue;outline:2px solid transparent;outline-offset:-2px}.wheeloflife-color-picker-modal .components-color-picker__inputs-wrapper{align-items:flex-end;border-top:1px solid #eee;display:flex;margin:20px calc(var(--cpm-ph)*-1) 0 calc(var(--cpm-ph)*-1);padding:20px var(--cpm-ph) 1px var(--cpm-ph)}.wheeloflife-color-picker-modal .components-color-picker__inputs-wrapper fieldset{border:none;flex:1;margin:0;padding:0}.wheeloflife-color-picker-modal .components-color-picker__inputs-field{width:100%}.wheeloflife-color-picker-modal .components-color-picker__inputs-fields{direction:ltr;display:flex;flex-grow:1;margin-right:0}.wheeloflife-color-picker-modal .components-color-picker__inputs-fields .components-base-control+.components-base-control{margin-top:0}.wheeloflife-color-picker-modal .components-color-picker__inputs-fields .components-base-control__field{margin:0}.wheeloflife-color-picker-modal .components-color-picker{--cpm-pv:20px;--cpm-ph:17px;padding:var(--cpm-pv) var(--cpm-ph)}.wheeloflife-color-picker-modal .components-color-picker__hue-bar{margin:0 8px 0 9px}.wheeloflife-color-picker-modal .components-color-picker__alpha-bar{margin:0 9px}.wheeloflife-color-picker-modal .components-color-picker__alpha-pointer,.wheeloflife-color-picker-modal .components-color-picker__hue-pointer,.wheeloflife-color-picker-modal .components-color-picker__saturation-pointer{background:transparent!important;border:3px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.37),inset 0 0 3px rgba(0,0,0,.2)!important}.wheeloflife-color-picker-modal .components-color-picker__alpha-pointer:active,.wheeloflife-color-picker-modal .components-color-picker__alpha-pointer:hover,.wheeloflife-color-picker-modal .components-color-picker__hue-pointer:active,.wheeloflife-color-picker-modal .components-color-picker__hue-pointer:hover,.wheeloflife-color-picker-modal .components-color-picker__saturation-pointer:active,.wheeloflife-color-picker-modal .components-color-picker__saturation-pointer:hover{border-width:4px}.wheeloflife-color-picker-modal .components-color-picker__inputs-wrapper .components-text-control__input{border:1px solid rgba(5,16,26,.2)!important;border-radius:4px!important;font-size:11px!important;height:28px!important;padding:3px 5px!important}.wheeloflife-color-picker-modal .components-color-picker__inputs-wrapper>.components-color-picker__inputs-fields .components-base-control__label{font-size:0}.wheeloflife-color-picker-modal .components-color-picker__inputs-wrapper>.components-color-picker__inputs-fields .components-base-control__label:before{content:"HEX";font-size:9px;padding:0 6px}.wheeloflife-color-picker-modal .components-color-picker__inputs-wrapper>.components-color-picker__inputs-fields .components-text-control__input{padding-left:38px!important}.wheeloflife-color-picker-modal .components-color-picker__inputs-wrapper .components-base-control:not(:last-child){margin-right:5px}.wheeloflife-color-picker-modal .components-color-picker__inputs-wrapper .components-base-control__field{position:relative}.wheeloflife-color-picker-modal .components-color-picker__inputs-wrapper .components-base-control__field label{align-items:center;background:hsla(0,0%,93%,.65);border-radius:2px 0 0 2px;bottom:1px;display:flex;font-size:9px;font-weight:600;justify-content:center;left:1px;margin:0;min-width:18px;position:absolute;text-transform:uppercase;top:1px}.wheeloflife-color-picker-modal .components-color-picker__inputs-wrapper .components-base-control__field input[type=number]{padding-left:20px!important;padding-right:2px!important;text-align:center}.wheeloflife-color-picker-modal .components-color-picker__inputs-wrapper input[type=number]{-moz-appearance:textfield}.wheeloflife-color-picker-modal .components-color-picker__inputs-wrapper input[type=number]::-webkit-inner-spin-button,.wheeloflife-color-picker-modal .components-color-picker__inputs-wrapper input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}.wheeloflife-color-picker-modal .components-color-picker__inputs-toggle-wrapper{display:flex}.wheeloflife-color-picker-modal .components-color-picker__inputs-toggle{align-items:center;background:hsla(0,0%,93%,.65);border:1px solid var(--borderColor,#ddd);border-radius:3px;cursor:pointer;display:flex;height:28px;justify-content:center;margin-left:5px;padding:0;transition:border-color .1s linear;width:28px}.wheeloflife-color-picker-modal .components-color-picker__inputs-toggle:focus{outline:none}.wheeloflife-color-picker-modal .components-color-picker__inputs-toggle:hover{border-color:var(--accentColor)}.wheeloflife-color-picker-modal .components-color-picker__inputs-toggle svg{height:14px;width:14px}.wheeloflife-color-picker-modal .components-color-picker__inputs-toggle span{display:none}.wheeloflife-color-palettes{margin:0 -15px;position:relative}.wheeloflife-color-palettes li{align-items:center;background:transparent;border-radius:100px;box-sizing:border-box;display:flex;flex-wrap:wrap;height:50px;justify-content:space-between;margin-bottom:12px;padding:0 15px;position:relative;transition:background .15s ease}.wheeloflife-color-palettes li:last-child{margin-bottom:0}.wheeloflife-color-palettes li.active,.wheeloflife-color-palettes li:hover{background:#fff}.wheeloflife-color-palettes li>label{align-items:center;display:flex;font-size:12px;font-weight:500;height:100%}.wheeloflife-color-palette-modal{--modal-y-offset-plus:10px}.wheeloflife-option-editor textarea{border-radius:0!important;opacity:1!important}.wheeloflife-option-editor textarea:focus{box-shadow:none!important}.ct-box-shadow{align-items:center;display:flex;justify-content:flex-end;position:relative}.ct-box-shadow-values{align-items:center;background:var(--backgroundColor,#fff);border:1px solid var(--borderColor,#ddd);border-radius:3px;box-sizing:border-box;cursor:pointer;display:flex;height:30px;justify-content:center;margin-left:5px;transition:border-color .1s linear;width:75px}.ct-box-shadow-values>span{font-size:9px;font-weight:600;letter-spacing:1px;line-height:normal;text-transform:uppercase}.ct-box-shadow-modal{margin-bottom:30px}.ct-shadow-trigger{border-bottom:1px dashed #eee;display:flex;justify-content:space-between;padding:20px}.ct-shadow-trigger>label{font-size:12px;font-weight:500}.shadow-sliders{position:relative}.shadow-sliders>section{border-bottom:1px dashed #eee;padding:20px}.shadow-sliders label{cursor:default;display:block;font-size:11px;font-weight:500;letter-spacing:.1px;margin-bottom:5px}.shadow-sliders .ab-slider:before{background:#e3e6e8}.ct-shadow-style{display:flex;margin:0;padding:20px}.ct-shadow-style li{border:1px solid #dfe1e4;cursor:pointer;display:flex;flex:1;font-weight:500;justify-content:center;margin-bottom:0;padding:5px 0;position:relative}.ct-shadow-style li:first-child{border-radius:3px 0 0 3px}.ct-shadow-style li:last-child{border-radius:0 3px 3px 0;margin-left:-1px}.ct-shadow-style li.active{background:var(--accentColor);border-color:var(--accentColor);color:#fff;z-index:2}.ct-shadow-style li:not(.active):hover{color:var(--accentColor)}.ct-box-shadow.ct-disabled .wheeloflife-color-picker-single{display:none}.ct-controls-group>header{margin-bottom:10px}.ct-controls-group>section .ct-control{padding:0}.ct-controls-group>section[data-columns="1"]>:first-child{margin-top:0}.ct-controls-group>section[data-columns*="2"]{grid-column-gap:var(--col-gap,7px);display:grid;grid-template-columns:repeat(2,1fr)}.ct-controls-group>section[data-columns*="2"]>.ct-control{margin:0}.ct-controls-group>section[data-columns*=medium]{--col-gap:25px}.ct-layer-content .ct-controls-group>section>*{padding:0}.wheeloflife-option-editor .wp-editor-container{border-color:#dfdfdf}.wheeloflife-option-editor .wp-editor-container .mce-tinymce{border:none}.wheeloflife-option-editor .mce-tinymce{border:1px solid #dfdfdf;box-shadow:0 1px 1px rgba(0,0,0,.1)}.wheeloflife-option-editor .mce-top-part:before{box-shadow:none}.ct-option-widget-area>.customize-pane-child{border-bottom:none!important;display:flex!important;flex-direction:column;margin-top:25px!important;overflow:initial!important;padding:0!important;position:relative!important}.ct-option-widget-area>.customize-pane-child .customize-control{--ui-padding:0 8px}.ct-option-widget-area>.customize-pane-child .customize-control-sidebar_widgets{order:100}.customize-control-widget_form .widget-top .widget-title h3{padding:13px 15px}.customize-control-widget_form .widget-top .widget-action{padding:8px}.customize-control-widget_form .widget-top .widget-reorder-nav span{height:39px}.customize-control-widget_form .widget-top .widget-reorder-nav span:before{line-height:39px}.widget-inside .rara-options-panel{margin-bottom:20px}.widget-inside .ct-options-root>.ct-control{border-bottom:1px solid #e5e5e5;margin-left:-15px;margin-right:-15px;padding-bottom:20px;position:relative}.widget-inside .ct-control{margin-top:20px;padding-left:15px;padding-right:15px}.widget-inside .ct-control[data-design=inline]{display:flex;flex-wrap:wrap}.widget-inside .ct-control[data-design=inline]>header{flex:0 0 45%;max-width:45%}.widget-inside .ct-control[data-design=inline]>section{flex:0 0 55%;max-width:55%;text-align:right}.widget-inside .ct-control[data-design=block]>header:not(:empty){margin-bottom:10px}.widget-inside .ct-option-description{color:rgba(85,93,102,.8);font-size:12px;font-style:italic;margin-top:15px}.customize-pane-child .widget-inside .ct-control{margin-left:-10px;margin-right:-10px}#widget-list>div[id*=rt_customizer_ct] h3{position:relative}#widget-list>div[id*=rt_customizer_ct] h3:before{background:#0085ba;content:"";height:100%;left:0;position:absolute;top:0;width:3px}.ct-modal-tabs{display:flex;height:43px;margin:0;overflow-x:hidden}.ct-modal-tabs li{align-items:center;border-bottom:1px solid #eee;box-sizing:border-box;cursor:pointer;display:flex;flex:1;font-size:13px;font-weight:500;justify-content:center;margin:0;min-height:100%}.ct-modal-tabs li:not(:last-child){border-right:1px solid #eee}.ct-modal-tabs li:not(.active){color:rgba(68,68,68,.7)}.ct-modal-tabs li:not(.active):hover{color:#444}.ct-modal-tabs li.active{position:relative}.ct-modal-tabs li.active:after{background:var(--accentColor);bottom:-1px;content:"";height:2px;left:-1px;position:absolute;width:calc(100% + 2px)}.ct-woo-columns-and-rows{grid-column-gap:23px;display:grid;grid-template-columns:repeat(2,1fr)}.ct-woo-columns-and-rows .ct-option-number{--width:100%}.ct-woo-columns-and-rows.ct-mobile>:last-child{opacity:.5;pointer-events:none}.ct-labeled-group-item{align-items:center;display:flex;flex-wrap:wrap;margin-top:10px}.ct-labeled-group-item>label{cursor:default;font-size:11px;margin-right:auto;opacity:.8}.ct-labeled-group-item .wheeloflife-background-modal-wrapper{width:100%}.ct-icon-picker-value{align-items:center;display:flex;justify-content:flex-end}.ct-icon-picker-value>div{align-items:center;border:1px solid var(--borderColor,#ddd);border-radius:3px;box-sizing:border-box;cursor:pointer;display:flex;font-size:9px;font-weight:600;height:30px;justify-content:center;letter-spacing:1px;margin-left:15px;min-width:75px;text-transform:uppercase;transition:border-color .1s linear}.ct-icon-picker-value>div:hover{border-color:var(--accentColor)}.ct-icon-picker-value>div .ct-edit,.ct-icon-picker-value>div .ct-remove{align-items:center;display:flex;height:100%;justify-content:center;width:50%}.ct-icon-picker-value>div .ct-edit:before,.ct-icon-picker-value>div .ct-remove:before{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:dashicons;font-size:15px;font-weight:400;height:15px;line-height:15px;width:15px}.ct-icon-picker-value>div .ct-edit:hover .wheeloflife-tooltip-top,.ct-icon-picker-value>div .ct-remove:hover .wheeloflife-tooltip-top{opacity:1;transform:translate3d(0,-40px,0);visibility:visible}.ct-icon-picker-value>div .ct-edit:before{content:""}.ct-icon-picker-value>div .ct-edit:hover{color:var(--accentColor)}.ct-icon-picker-value>div .ct-remove:before{content:"";margin-left:1px}.ct-icon-picker-value>div .ct-remove:hover{color:#dd4b39}.ct-icon-picker-value>div .divider{border-left:1px solid var(--borderColor,#ccc);height:50%}.ct-icon-picker-value .ct-icon-preview{cursor:pointer;display:flex;transition:color .1s linear}.ct-icon-picker-value .ct-icon-preview svg{fill:currentColor;height:24px;width:24px}.ct-icon-picker-value .ct-icon-preview:hover{color:var(--accentColor)}.ct-icon-picker-modal{display:flex;flex-direction:column;height:400px;padding:20px}.ct-icon-picker-modal input[type=text]{--height:30px}.ct-icon-picker-modal .ct-icons-list{box-sizing:border-box;margin:10px -20px 0;overflow:auto;padding:0 20px;width:calc(100% + 40px)}.ct-icon-picker-modal .ct-icons-list h2{font-size:13px;font-weight:500;margin:15px 0 10px}.ct-icon-picker-modal ul{grid-column-gap:5px;grid-row-gap:5px;display:grid;grid-template-columns:repeat(6,1fr)}.ct-icon-picker-modal ul li{align-items:center;border-radius:3px;box-sizing:border-box;cursor:pointer;display:flex;height:45px;justify-content:center;margin:0;padding:5px}.ct-icon-picker-modal ul li.active{background:var(--accentColor);color:#fff}.ct-icon-picker-modal ul li:not(.active):hover{background:#f5f5f5}.ct-icon-picker-modal ul li svg{fill:currentColor;max-width:20px}.ct-date-time-picker .CalendarMonthGrid,.ct-date-time-picker .CalendarMonthGrid_month__horizontal,.ct-date-time-picker .CalendarMonth_table,.ct-date-time-picker .DayPicker__horizontal,.ct-date-time-picker .DayPicker__horizontal>div>div,.ct-date-time-picker .DayPicker_transitionContainer{width:100%!important}.ct-date-time-picker .CalendarMonthGrid__horizontal{left:0}.ct-date-time-picker .CalendarMonth{padding:0!important}.ct-date-time-picker .DayPickerNavigation_rightButton__horizontalDefault{right:0}.ct-date-time-picker .DayPicker_weekHeaders__horizontal{margin-left:0}.ct-date-time-picker .CalendarDay__default:not(:hover):not(.CalendarDay__selected),.ct-date-time-picker .CalendarMonth,.ct-date-time-picker .CalendarMonthGrid,.ct-date-time-picker .DayPicker,.ct-date-time-picker .DayPicker__horizontal{background:transparent}.ct-date-time-picker .CalendarDay{height:36px!important}.ct-date-time-picker .components-datetime__time-field-month{flex:1}.ct-date-time-picker .components-datetime__time-field-month select{width:calc(100% - 5px)}.ct-date-time-picker .components-datetime__time-field-month select:not(:focus){border-color:var(--borderColor,#ddd)}.ct-date-time-picker .components-datetime__time-field-day-input,.ct-date-time-picker .components-datetime__time-field-hours-input,.ct-date-time-picker .components-datetime__time-field-minutes-input{--width:35px;--margin:0 4px 0 0}.ct-date-time-picker .components-datetime__time-field-year-input{--width:55px}.ct-date-time-picker .DayPicker_weekHeader{padding:0!important;right:0;top:55px}.ct-date-time-picker .DayPicker_weekHeader_ul{display:flex;justify-content:space-between}.ct-date-time-picker .DayPicker_weekHeader_li{margin-bottom:0}.ct-date-time-picker .DayPicker_transitionContainer[style*="height: 246px"]{height:270px!important}.ct-date-time-picker .DayPicker_transitionContainer[style*="height: 275px"]{height:305px!important}.ct-option-modal{background:#fff;border:1px solid #ddd;border-radius:6px;box-shadow:5px 15px 20px rgba(0,0,0,.4);box-sizing:border-box;position:fixed;right:var(--modal-x-offset);width:var(--option-modal-width,295px);z-index:100000}.ct-option-modal:before{border-style:solid;content:"";left:var(--option-modal-arrow-position,calc(100% - 55px));position:absolute}.ct-option-modal[data-position=bottom]{top:calc(var(--modal-y-offset) + var(--modal-y-offset-plus, 13px));transform-origin:center top}.ct-option-modal[data-position=bottom]:before{border-color:transparent transparent #ddd;border-width:0 6px 7px;top:-7px}.ct-option-modal[data-position=top]{bottom:calc(var(--modal-y-offset) + var(--modal-y-offset-plus, 13px));transform-origin:center bottom}.ct-option-modal[data-position=top]:before{border-color:#fff transparent transparent;border-width:7px 6px 0;bottom:-7px}.wp-customizer .ct-option-modal{z-index:500000}.ct-control .ct-upload-button{background:rgba(0,0,0,.02);border:1px dashed #c1c4ca;border-radius:3px;box-shadow:none;padding:5px 0;width:100%}.ct-control .ct-upload-button:hover{background:#fbfbfc}.ct-control .ct-upload-button:active{transform:none}@keyframes shake{0%{transform:translateZ(0)}2.59259%{transform:translate3d(-1px,0,0)}5.18519%{transform:translate3d(1.5px,0,0)}7.77778%{transform:translate3d(-2px,0,0)}10.37037%{transform:translate3d(2px,0,0)}12.96296%{transform:translate3d(-2px,0,0)}15.55556%{transform:translate3d(2px,0,0)}18.14815%{transform:translate3d(-2px,0,0)}20.74074%{transform:translate3d(1.5px,0,0)}23.33333%{transform:translate3d(-1px,0,0)}25.92593%{transform:translateZ(0)}to{transform:translateZ(0)}}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}:root{--reach-dialog:1;--modal-width:600px;--modal-padding:50px;--modal-margin:5vh auto;--modal-radius:5px;--modal-max-height:85vh;--modal-min-height:400px}.ct-dashboard-overlay-open{overflow:hidden!important}[data-reach-dialog-overlay]{align-items:center;background:rgba(245,247,249,.8);bottom:0;display:flex;left:var(--modal-left,160px);overflow:auto;position:fixed;right:0;top:0;z-index:999}.folded [data-reach-dialog-overlay]{--modal-left:36px}@media(max-width:782px){.auto-fold [data-reach-dialog-overlay]{--modal-left:0}}@media(min-width:783px)and (max-width:960px){.auto-fold [data-reach-dialog-overlay]{--modal-left:36px}}.ct-modal-list{list-style:initial;margin:0;padding-left:20px}.ct-modal-list li{line-height:1.5;margin-bottom:2em}.ct-modal-list li:last-child{margin-bottom:0}.ct-modal-list li i{display:block;line-height:1.7}.rara-modal-actions{margin-top:25px}.rara-modal-actions button svg{margin-top:11px}.rara-modal-actions .button-primary{font-size:14px;font-weight:500;min-height:40px;width:100%}.rara-modal-actions.has-divider{margin-bottom:-10px;margin-top:auto;padding-top:calc(var(--modal-padding) - 10px);position:relative}.rara-modal-actions.has-divider:before{background:var(--optionBorderColor);content:"";height:1px;left:calc(var(--modal-padding)*-1);position:absolute;top:0;width:var(--modal-width)}.rara-modal-actions[data-buttons="2"]{grid-column-gap:20px;display:grid;grid-template-columns:repeat(2,1fr)}.ct-divider[data-type=full-modal]{margin:30px 0}.ct-divider[data-type=full-modal]:before{margin-left:calc(var(--modal-padding)*-1);width:var(--modal-width)}.extension-notice{border:2px dashed #dfe3e6;border-radius:5px;color:#717a84;line-height:1.5;margin-top:30px;max-height:300px;overflow-y:scroll;padding:20px}.extension-notice h3{font-size:15px;margin-top:0}.ct-modal-scroll{margin:0 calc(var(--modal-padding)*-1);overflow:auto;padding:0 var(--modal-padding)}.ct-tabs-scroll{margin:0 calc(var(--modal-padding)*-1)}.ct-tabs-scroll,.ct-tabs-scroll .ct-tabs{display:flex;flex-direction:column;overflow:hidden}.ct-tabs-scroll .ct-tabs{--tabs-container-margin:20px 0 0 0;--tabs-pills-margin:0 var(--modal-padding);padding-top:1px}.ct-tabs-scroll .ct-current-tab{overflow:auto;padding:15px var(--modal-padding) 35px var(--modal-padding)}.ct-image-picker[data-usage=totop] li span svg{fill:none;stroke:#565d66}.ct-image-picker[data-usage=totop] li:last-child span svg{fill:#565d66;stroke:none}.ct-image-picker[data-usage=totop] li.active span svg{fill:none;stroke:#565d66}.ct-image-picker[data-usage=totop] li.active:last-child span svg{fill:#565d66;stroke:none}#customize-control-typography_section_options .ct-divider{display:none}#customize-control-layouts_seooptions_options .ct-image-picker li:before,[data-usage=totop].ct-image-picker li:before{padding:35% 0}#customize-control-layouts_seooptions_options .ct-image-picker li span svg{fill:#565d66}#wheelOfLifeAdminRoot{background-color:var(--bg-color);height:calc(100vh - 72px);margin-bottom:-65px;margin-left:-20px;position:relative}#wheelOfLifeAdminRoot,#wheeloflife__modal{color:var(--font-color);font-family:var(--primary-font);font-size:1rem;line-height:1.5}#wheelOfLifeAdminRoot h1,#wheelOfLifeAdminRoot h2,#wheelOfLifeAdminRoot h3,#wheelOfLifeAdminRoot h4,#wheelOfLifeAdminRoot h5,#wheelOfLifeAdminRoot h6,#wheeloflife__modal h1,#wheeloflife__modal h2,#wheeloflife__modal h3,#wheeloflife__modal h4,#wheeloflife__modal h5,#wheeloflife__modal h6{font-weight:400;line-height:1.2}#wheelOfLifeAdminRoot p,#wheeloflife__modal p{color:var(--font-color);font-size:1rem}#wheelOfLifeAdminRoot ol,#wheelOfLifeAdminRoot ul,#wheeloflife__modal ol,#wheeloflife__modal ul{margin-bottom:0}#wheelOfLifeAdminRoot .placeholder-copy-list,#wheeloflife__modal .placeholder-copy-list{margin-top:1.5rem}#wheelOfLifeAdminRoot .placeholder-copy-list li,#wheeloflife__modal .placeholder-copy-list li{margin-bottom:1.5rem}#wheelOfLifeAdminRoot .placeholder-copy-list li:last-child,#wheeloflife__modal .placeholder-copy-list li:last-child{margin-bottom:0}#wheelOfLifeAdminRoot input[type=checkbox]:not(.switch),#wheeloflife__modal input[type=checkbox]:not(.switch){align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid var(--gray-300);border-radius:.25rem;box-shadow:none;display:flex;height:20px;justify-content:center;transition:all .3s ease;width:20px}#wheelOfLifeAdminRoot input[type=checkbox]:not(.switch):checked,#wheeloflife__modal input[type=checkbox]:not(.switch):checked{background:var(--primary-color);border-color:var(--primary-color)}#wheelOfLifeAdminRoot input[type=checkbox]:not(.switch):checked:before,#wheeloflife__modal input[type=checkbox]:not(.switch):checked:before{content:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2712%27 height=%279%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M11 1 4.125 8 1 4.818%27 stroke=%27%23fff%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");height:unset;margin:0;width:unset}#wheelOfLifeAdminRoot input[type=checkbox]:not(.switch).wheeloflife-bulk-checkbox:checked:before,#wheeloflife__modal input[type=checkbox]:not(.switch).wheeloflife-bulk-checkbox:checked:before{content:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2716%27 height=%272%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Crect width=%2716%27 height=%272%27 rx=%271%27 fill=%27%23fff%27/%3E%3C/svg%3E");height:inherit;line-height:1}#wheelOfLifeAdminRoot .text-nowrap,#wheeloflife__modal .text-nowrap{white-space:nowrap}.wheeloflife-bulk-container{background:#fff;border-top:1px solid var(--gray-200);bottom:0;box-shadow:0 8px 20px rgba(38,41,51,.05);left:0;padding:1rem 3rem;position:absolute;right:0;width:100%;z-index:11}.wheeloflife-bulk-container .wheeloflife-bulk-wrapper{display:flex}.wheeloflife-bulk-container .wheeloflife-bulk-wrapper .wheeloflife-bulk-content .selected-items{margin-right:1rem}.wheeloflife-bulk-container .wheeloflife-bulk-wrapper .bulk-cancel-btn{margin-left:1rem}.wheeloflife-main-wrapper{display:flex;height:100%;position:relative}.wheeloflife-main-wrapper.has-sidebar{padding-left:var(--wol-sidebar-width);transition:all .3s ease}.wheeloflife-main-wrapper.has-sidebar .wheeloflife-bulk-container{left:var(--wol-sidebar-width);transition:all .3s ease;width:calc(100% - var(--wol-sidebar-width))}.wheeloflife-main-wrapper .wheeloflife-inner-wrapper{flex:1;max-height:100%;overflow:auto;padding:0 3rem 3rem}.wheeloflife-main-wrapper .wheeloflife-inner-wrapper>*{display:flex;flex-direction:column}.wheeloflife-main-wrapper .wheeloflife-search-form{display:inline-block;position:relative}.wheeloflife-main-wrapper .wheeloflife-search-form input[type=search],.wheeloflife-main-wrapper .wheeloflife-search-form input[type=text]{padding-right:2.5rem}.wheeloflife-main-wrapper .wheeloflife-search-form button{background:none;border-color:transparent;padding:.5rem .625rem;position:absolute;right:0;top:0}.wheeloflife-title-wrap{align-items:center;display:flex;padding:1rem}.wheeloflife-icon{margin-right:.5rem}.wheeloflife-title{color:var(--gray-600);margin:0}.wheeloflife-header-wrap{align-items:center;background-color:var(--gray-100);display:flex;flex-wrap:wrap;justify-content:space-between;padding-bottom:1.5rem;padding-top:3rem;position:sticky;top:0;z-index:111}.wheeloflife-header-wrap .wheeloflife-title{font-size:2.5rem;font-weight:400;margin:0}#wheelOfLifeAdminRoot select,input[type=date],input[type=email],input[type=number],input[type=search],input[type=text],input[type=url],select.wheeloflife-select,textarea{border:1px solid var(--gray-300);border-radius:.25rem;font-size:1rem;font-weight:400;line-height:1.4;max-width:100%;padding:.5rem 1rem;width:100%}#wheelOfLifeAdminRoot select:focus,input[type=date]:focus,input[type=email]:focus,input[type=number]:focus,input[type=search]:focus,input[type=text]:focus,input[type=url]:focus,select.wheeloflife-select:focus,textarea:focus{border-color:var(--primary-color);box-shadow:0 0 5px var(--primary-light-color)}#wheelOfLifeAdminRoot select::-webkit-placeholder,input[type=date]::-webkit-placeholder,input[type=email]::-webkit-placeholder,input[type=number]::-webkit-placeholder,input[type=search]::-webkit-placeholder,input[type=text]::-webkit-placeholder,input[type=url]::-webkit-placeholder,select.wheeloflife-select::-webkit-placeholder,textarea::-webkit-placeholder{color:var(--gray-400);font-weight:400}#wheelOfLifeAdminRoot select::-moz-placeholder,input[type=date]::-moz-placeholder,input[type=email]::-moz-placeholder,input[type=number]::-moz-placeholder,input[type=search]::-moz-placeholder,input[type=text]::-moz-placeholder,input[type=url]::-moz-placeholder,select.wheeloflife-select::-moz-placeholder,textarea::-moz-placeholder{color:var(--gray-400);font-weight:400}#wheelOfLifeAdminRoot select::placeholder,input[type=date]::placeholder,input[type=email]::placeholder,input[type=number]::placeholder,input[type=search]::placeholder,input[type=text]::placeholder,input[type=url]::placeholder,select.wheeloflife-select::placeholder,textarea::placeholder{color:var(--gray-400);font-weight:400}#wheelOfLifeAdminRoot select:-moz-read-only,input[type=date]:-moz-read-only,input[type=email]:-moz-read-only,input[type=number]:-moz-read-only,input[type=search]:-moz-read-only,input[type=text]:-moz-read-only,input[type=url]:-moz-read-only,select.wheeloflife-select:-moz-read-only,textarea:-moz-read-only{background-color:var(--bg-color);color:var(--font-color)}#wheelOfLifeAdminRoot select:read-only,input[type=date]:read-only,input[type=email]:read-only,input[type=number]:read-only,input[type=search]:read-only,input[type=text]:read-only,input[type=url]:read-only,select.wheeloflife-select:read-only,textarea:read-only{background-color:var(--bg-color);color:var(--font-color)}input[type=date],input[type=email],input[type=number],input[type=search],input[type=text],input[type=url],select.wheeloflife-select{max-height:40px}.css-2b097c-container .css-b8ldur-Input,.wheeloflife-select .css-b8ldur-Input{margin:0}.css-2b097c-container .css-yk16xz-control,.wheeloflife-select .css-yk16xz-control{border-color:var(--gray-300)}#wheelOfLifeAdminRoot select,select.wheeloflife-select{padding-right:1.5rem}input[type=checkbox]{border:1px solid var(--gray-300);border-radius:.25rem;box-shadow:none;height:20px;width:20px}input[type=checkbox]:checked:before{height:1.25rem;margin-left:-.063rem;margin-top:-.063rem;width:1.25rem}.wheeloflife-tabnav{display:flex;flex-wrap:wrap;justify-content:space-between;padding-bottom:1.5rem;width:100%;z-index:11}.wheeloflife-tabnav.tab-borderd{border-bottom:1px solid var(--gray-200);margin:0 -1.5rem 1rem;padding:0 1.5rem;width:unset}.wheeloflife-tabnav.tab-sticky{position:sticky;top:0}.wheeloflife-tabnav.tab-bg{background-color:var(--gray-100)}.wheeloflife-tabnav .wheeloflife-actions{align-items:center;display:flex;flex-wrap:wrap;position:relative}.wheeloflife-tabnav .wheeloflife-actions button{border:none;border-radius:0;margin-right:2rem;padding:0 0 1rem;position:relative}.wheeloflife-tabnav .wheeloflife-actions button.active{color:var(--primary-color)}.wheeloflife-tabnav .wheeloflife-actions button:active{background:none}.wheeloflife-tabnav .wheeloflife-actions button .wheeloflife-list-items{align-items:center;background-color:var(--gray-300);border-radius:50%;color:var(--gray-600);display:inline-flex;font-size:.875rem;height:24px;justify-content:center;line-height:1.4;margin-left:.375rem;pointer-events:none;width:24px}.wheeloflife-tabnav .wheeloflife-actions .action-active-line{background:var(--primary-color);border-radius:2px 2px 0 0;bottom:0;height:2px;position:absolute;transition:all .3s ease;z-index:1}#global-settings-tab,#wheel-lists-tab,#wheel-submission-tab{top:120px}.wheeloflife-table-wrapper{background-color:#fff;border:1px solid var(--gray-200);border-collapse:collapse;border-radius:.5rem;margin-bottom:1.5rem}.wheeloflife-table-wrapper .wheeloflife-pagination{justify-content:flex-end}.wheeloflife-table-wrapper a{color:var(--primary-color);text-decoration:none}.wheeloflife-table-wrapper a:hover{text-decoration:underline}.wheeloflife-table-wrapper.table-responsive{overflow:auto;scrollbar-color:var(--gray-400) var(--gray-100);scrollbar-width:thin}.wheeloflife-table-wrapper.table-responsive::-webkit-scrollbar{height:6px;width:6px}.wheeloflife-table-wrapper.table-responsive::-webkit-scrollbar-track{background:var(--gray-100)}.wheeloflife-table-wrapper.table-responsive::-webkit-scrollbar-thumb{background:var(--gray-400);border-radius:6px}.wheeloflife-table-wrapper.has-table-header .wheeloflife-table-header{border-bottom:1px solid var(--gray-200);display:flex;flex-wrap:wrap;justify-content:space-between;padding:1rem 1.5rem}.wheeloflife-table-wrapper.has-table-header .wheeloflife-table-header .wheeloflife-table-title-wrap{align-items:center;display:flex}.wheeloflife-table-wrapper.has-table-header .wheeloflife-table-header .wheeloflife-title{font-size:1.25rem;line-height:1.6}.wheeloflife-table-wrapper.has-table-header .wheeloflife-table-header .wheeloflife-table-row-count{background:var(--gray-200);border-radius:.25rem;color:var(--gray-600);font-size:1rem;line-height:1.5;margin-left:1rem;padding:0 .5rem}.wheeloflife-table-wrapper.has-table-header .wheeloflife-table-header input[type=search]{width:320px}.wheeloflife-table-wrapper.has-table-header thead th{background:var(--gray-100)}.wheeloflife-table{border-collapse:collapse;text-align:left;width:100%}.wheeloflife-table tfoot tr:first-child td,.wheeloflife-table tfoot tr:first-child th{border-top:1px solid var(--gray-200)}.wheeloflife-table td,.wheeloflife-table th{border-bottom:1px solid var(--gray-200);font-size:1rem;padding:1rem 1.5rem}.wheeloflife-table td.date,.wheeloflife-table th.date{background:#fff;left:0;position:sticky;white-space:nowrap;z-index:111}.wheeloflife-table th{background:#fff;color:var(--font-color);font-weight:500;position:sticky;top:0;white-space:nowrap;z-index:11}.wheeloflife-table td{color:var(--gray-600)}.wheeloflife-table td.date{z-index:1}.wheeloflife-table tr:first-child th:first-child{border-top-left-radius:.5rem}.wheeloflife-table tr:first-child th:last-child{border-top-right-radius:.5rem}.wheeloflife-table tr:last-child td{border-bottom:none}.wheeloflife-table tr:last-child td:first-child{border-bottom-left-radius:.5rem}.wheeloflife-table tr:last-child td:last-child{border-bottom-right-radius:.5rem}.wheeloflife-table .visibility{background:orange;border-radius:1.5rem;color:#fff;display:inline-block;font-size:.65rem;font-weight:500;letter-spacing:1px;line-height:1;margin-left:.5rem;padding:.25rem .75rem;vertical-align:middle}.wheeloflife-table .cell-info{color:var(--gray-500);display:block;font-size:.875rem}.wheeloflife-status{border-radius:.75rem;font-size:.875rem;line-height:1.4;padding:.125rem .5rem}.wheeloflife-status.draft{background-color:var(--gray-300)}.wheeloflife-status.published{background-color:var(--green);color:#fff}.wheeloflife-shortcode-wrap{display:inline-block;position:relative}.wheeloflife-shortcode-wrap input{padding-right:2.5rem}.wheeloflife-shortcode-wrap button{border-bottom-left-radius:0;border-color:transparent;border-left:1px solid var(--gray-300);border-top-left-radius:0;padding:.5rem .625rem;position:absolute;right:0;top:0;z-index:0}.wheeloflife-shortcode-wrap .copy-info{animation:fadeInUpInfo .1s ease-in;background-color:rgba(38,41,51,.8);border-radius:.25rem;bottom:100%;color:#fff;font-size:.875rem;line-height:1.7;margin-bottom:1.188rem;padding:.5rem 1rem;position:absolute;right:46px;transform:translateX(50%);white-space:nowrap;z-index:11}@keyframes fadeInUpInfo{0%{opacity:0;transform:translate(50%,15px)}to{opacity:1;transform:translate(50%)}}.wheeloflife-shortcode-wrap .copy-info:before{border:6px solid transparent;border-top-color:rgba(38,41,51,.8);content:"";left:50%;position:absolute;top:100%;transform:translateX(-50%)}.copy-clipboard-wrap{align-items:center;display:flex}.copy-clipboard-wrap p{background:var(--gray-200);border:1px solid var(--gray-300);border-radius:.25rem 0 0 .25rem;border-right:0;line-height:1.4;margin:0;min-width:200px;padding:.5rem}.copy-clipboard-wrap .wheeloflife-copy-btn{border-radius:0 .25rem .25rem 0}.wheeloflife-shocial-icon{align-items:center;display:inline-flex;margin-right:1rem}.wheeloflife-shocial-icon .icon{margin-right:.5rem;width:2.5rem}.wheeloflife-shocial-icon .social-icon-name{font-size:1rem}.mt-0{margin-top:0!important}.wheeloflife-icon-picker{display:inline-block;margin-right:1rem;vertical-align:middle}.wheeloflife-icon-picker>div{border:1px solid var(--gray-300);height:40px;width:40px}.wheeloflife-icon-picker>div>div{font-size:20px!important;line-height:1}.wheeloflife-icon-picker>div>div:nth-child(2){border:1px solid var(--gray-300);box-shadow:0 16px 24px rgba(0,0,0,.02);font-size:1rem;justify-content:space-between;padding:1rem;width:250px}.wheeloflife-icon-picker>div>div:nth-child(2)::-webkit-scrollbar{height:.375rem;width:.375rem}.wheeloflife-icon-picker>div>div:nth-child(2)::-webkit-scrollbar-track{background-color:var(--gray-200);border-radius:.375rem}.wheeloflife-icon-picker>div>div:nth-child(2)::-webkit-scrollbar-thumb{background-color:var(--gray-400);border-radius:.375rem}.wheeloflife-icon-picker>div>div:nth-child(2) input{border:1px solid var(--gray-300);border-radius:.25rem;box-shadow:0 -16px 0 26px #fff;font-size:1rem;font-weight:400;line-height:1.4;margin-bottom:1rem;max-width:100%;padding:.5rem 1rem;position:sticky;top:0;width:100%}.wheeloflife-icon-picker>div>div:nth-child(2)>div{align-items:center;border:1px solid var(--gray-300);border-radius:.25rem;display:flex;font-size:20px!important;height:32px;justify-content:center;margin-bottom:4px;max-width:32px;text-align:center;width:20%}.wheeloflife-color-picker-single>span span{align-items:center;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);cursor:pointer;display:flex;height:inherit;justify-content:center;position:relative;text-decoration:none;width:inherit}.wheeloflife-field .wheeloflife-color-picker-container{display:inline-block}.wheeloflife-field .wheeloflife-color-picker-container .wheeloflife-color-picker-single{align-items:center;border:1px solid var(--gray-300);border-radius:.25rem;display:inline-flex;height:40px;justify-content:center;margin-right:1rem;padding:.5rem;vertical-align:middle;width:40px}.wheeloflife-field .wheeloflife-color-picker-container .wheeloflife-color-picker-single>span{box-shadow:0 0 0 1px var(--gray-300);display:block;height:24px;width:24px}.wheeloflife-field .wheeloflife-user-wrap{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between}.wheeloflife-field .wheeloflife-user-wrap .wheeloflife-user-preview{align-items:center;display:flex;margin-right:1rem}.wheeloflife-field .wheeloflife-user-wrap .wheeloflife-user-preview .user-avatar{background:var(--primary-light-color);border-radius:50%;display:block;flex:0 0 96px;height:96px;margin-right:1rem;overflow:hidden;width:96px}.wheeloflife-field .wheeloflife-user-wrap .wheeloflife-user-preview .user-avatar img,.wheeloflife-field .wheeloflife-user-wrap .wheeloflife-user-preview .user-avatar svg{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.wheeloflife-field .wheeloflife-user-wrap .wheeloflife-user-preview .user-name{color:var(--gray-600);display:block;font-size:1.5rem;font-weight:500}.wheeloflife-field .wheeloflife-user-wrap .wheeloflife-user-preview .user-email{color:var(--gray-500);font-size:1rem}.wheeloflife-field .wheeloflife-user-wrap .wheeloflife-user-preview label{margin:0}.wheeloflife-field .wheeloflife-error-msg{align-self:flex-start;animation:fadeInDown .1s ease;background:rgba(255,0,0,.1);border-radius:.25rem;display:inline-block;font-size:.875rem;margin-top:.5rem;padding:.25rem .5rem;position:relative}.wheeloflife-field .wheeloflife-error-msg:before{border:5px solid transparent;border-bottom-color:rgba(255,0,0,.1);bottom:100%;content:"";left:1rem;position:absolute}.wheeloflife-field .wheeloflife-success-msg{align-self:flex-start;animation:fadeInDown .1s ease;background:rgba(0,128,0,.1);border-radius:.25rem;display:inline-block;font-size:.875rem;margin-top:.5rem;padding:.25rem .5rem;position:relative}.wheeloflife-field .wheeloflife-success-msg:before{border:5px solid transparent;border-bottom-color:rgba(0,128,0,.1);bottom:100%;content:"";left:1rem;position:absolute}.wheeloflife-field .wheeloflife-success-msg svg{margin-right:.5rem;vertical-align:middle}.wheeloflife-field .wheeloflife-success-msg path{stroke:green}.wheeloflife-field .wheeloflife-info-msg{align-items:center;display:flex;font-size:.875rem;margin-bottom:.5rem}.wheeloflife-field .wheeloflife-info-msg svg{margin-right:.5rem}.wheeloflife-field .wheeloflife-info-msg path{stroke:#306eff}.wheeloflife-row{display:flex;flex-wrap:wrap;margin:0 -.75rem}.wheeloflife-row .wheeloflife-col{padding:0 .75rem;width:100%}.wheeloflife-row.cols-2 .wheeloflife-col,.wheeloflife-row.cols-4 .wheeloflife-col{flex:0 0 50%;max-width:50%}@media(min-width:1200px){.wheeloflife-row.cols-4 .wheeloflife-col{flex:0 0 25%;max-width:25%}}.wheeloflife-pagination{align-items:center;border-top:1px solid var(--gray-200);color:var(--gray-500);display:flex;flex-wrap:wrap;font-size:1rem;padding:1rem 1.5rem}.wheeloflife-pagination span{display:inline-block}.wheeloflife-pagination span:not(:last-child){margin-right:1rem}.wheeloflife-pagination .page-btn{background-position:50%;background-repeat:no-repeat;border:1px solid var(--gray-300);border-radius:.25rem;cursor:pointer;height:32px;transition:all .3s ease;width:32px}.wheeloflife-pagination .page-btn:hover{background:var(--primary-color);background-position:50%;background-repeat:no-repeat}.wheeloflife-pagination .prev-btn{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%278%27 height=%2712%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27m6.5 11-5-5 5-5%27 stroke=%27%23A3AABF%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E")}.wheeloflife-pagination .prev-btn:hover{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%278%27 height=%2712%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27m6.5 11-5-5 5-5%27 stroke=%27%23fff%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E")}.wheeloflife-pagination .next-btn{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%278%27 height=%2712%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27m1.5 1 5 5-5 5%27 stroke=%27%23A3AABF%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E")}.wheeloflife-pagination .next-btn:hover{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%278%27 height=%2712%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27m1.5 1 5 5-5 5%27 stroke=%27%23fff%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E")}a.wheeloflife-tooltip{align-items:center;background:none;color:#fff;cursor:pointer;display:inline-flex;height:unset;line-height:1;margin:0 .5rem;opacity:1;padding:0;pointer-events:all;position:relative;vertical-align:middle;visibility:visible;z-index:1}a.wheeloflife-tooltip:after,a.wheeloflife-tooltip:before{content:none}a.wheeloflife-tooltip i{vertical-align:top}a.wheeloflife-tooltip .info-text{background:#363f42;border-radius:.125rem;bottom:100%;left:50%;margin:auto auto -5px;opacity:0;padding:.25rem .5rem;position:absolute;transform:translateX(-50%);transition:all .3s ease;visibility:hidden;white-space:nowrap}a.wheeloflife-tooltip .info-text:before{border:5px solid transparent;border-top-color:#363f42;content:"";left:50%;position:absolute;top:100%;transform:translateX(-50%)}a.wheeloflife-tooltip:hover .info-text{margin-bottom:5px;opacity:1;visibility:visible}a.wheeloflife-tooltip:hover svg path{stroke:var(--primary-color)}[class*=-ValueContainer] [class*=-singleValue]{max-width:calc(100% - 15px)} -
wheel-of-life/trunk/app/build/wheelsFrontend.asset.php
r2887037 r2919602 1 <?php return array('dependencies' => array('jquery', 'react', 'wp-api-fetch', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-url'), 'version' => ' 4a9718378ce74484946a');1 <?php return array('dependencies' => array('jquery', 'react', 'wp-api-fetch', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-url'), 'version' => '9b3964641ddd59de2b3f'); -
wheel-of-life/trunk/app/build/wheelsFrontend.js
r2887037 r2919602 1 var wheeloflifeExports;(()=>{var t={8901:(t,e,i)=>{var s,n;i.amdD,s=[i(9567)],void 0===(n=function(t){return function(){var e,i,s,n=0,o="error",a="info",r="success",l="warning",h={clear:function(i,s){var n=p();e||c(n),d(i,n,s)||function(i){for(var s=e.children(),n=s.length-1;n>=0;n--)d(t(s[n]),i)}(n)},remove:function(i){var s=p();e||c(s),i&&0===t(":focus",i).length?g(i):e.children().length&&e.remove()},error:function(t,e,i){return f({type:o,iconClass:p().iconClasses.error,message:t,optionsOverride:i,title:e})},getContainer:c,info:function(t,e,i){return f({type:a,iconClass:p().iconClasses.info,message:t,optionsOverride:i,title:e})},options:{},subscribe:function(t){i=t},success:function(t,e,i){return f({type:r,iconClass:p().iconClasses.success,message:t,optionsOverride:i,title:e})},version:"2.1.4",warning:function(t,e,i){return f({type:l,iconClass:p().iconClasses.warning,message:t,optionsOverride:i,title:e})}};return h;function c(i,s){return i||(i=p()),(e=t("#"+i.containerId)).length||s&&(e=function(i){return(e=t("<div/>").attr("id",i.containerId).addClass(i.positionClass)).appendTo(t(i.target)),e}(i)),e}function d(e,i,s){var n=!(!s||!s.force)&&s.force;return!(!e||!n&&0!==t(":focus",e).length||(e[i.hideMethod]({duration:i.hideDuration,easing:i.hideEasing,complete:function(){g(e)}}),0))}function u(t){i&&i(t)}function f(i){var o=p(),a=i.iconClass||o.iconClass;if(void 0!==i.optionsOverride&&(o=t.extend(o,i.optionsOverride),a=i.optionsOverride.iconClass||a),!function(t,e){if(t.preventDuplicates){if(e.message===s)return!0;s=e.message}return!1}(o,i)){n++,e=c(o,!0);var r=null,l=t("<div/>"),h=t("<div/>"),d=t("<div/>"),f=t("<div/>"),m=t(o.closeHtml),b={intervalId:null,hideEta:null,maxHideTime:null},x={toastId:n,state:"visible",startTime:new Date,options:o,map:i};return i.iconClass&&l.addClass(o.toastClass).addClass(a),function(){if(i.title){var t=i.title;o.escapeHtml&&(t=y(i.title)),h.append(t).addClass(o.titleClass),l.append(h)}}(),function(){if(i.message){var t=i.message;o.escapeHtml&&(t=y(i.message)),d.append(t).addClass(o.messageClass),l.append(d)}}(),o.closeButton&&(m.addClass(o.closeClass).attr("role","button"),l.prepend(m)),o.progressBar&&(f.addClass(o.progressClass),l.prepend(f)),o.rtl&&l.addClass("rtl"),o.newestOnTop?e.prepend(l):e.append(l),function(){var t="";switch(i.iconClass){case"toast-success":case"toast-info":t="polite";break;default:t="assertive"}l.attr("aria-live",t)}(),l.hide(),l[o.showMethod]({duration:o.showDuration,easing:o.showEasing,complete:o.onShown}),o.timeOut>0&&(r=setTimeout(_,o.timeOut),b.maxHideTime=parseFloat(o.timeOut),b.hideEta=(new Date).getTime()+b.maxHideTime,o.progressBar&&(b.intervalId=setInterval((function(){var t=(b.hideEta-(new Date).getTime())/b.maxHideTime*100;f.width(t+"%")}),10))),o.closeOnHover&&l.hover((function(){clearTimeout(r),b.hideEta=0,l.stop(!0,!0)[o.showMethod]({duration:o.showDuration,easing:o.showEasing})}),(function(){(o.timeOut>0||o.extendedTimeOut>0)&&(r=setTimeout(_,o.extendedTimeOut),b.maxHideTime=parseFloat(o.extendedTimeOut),b.hideEta=(new Date).getTime()+b.maxHideTime)})),!o.onclick&&o.tapToDismiss&&l.click(_),o.closeButton&&m&&m.click((function(t){t.stopPropagation?t.stopPropagation():void 0!==t.cancelBubble&&!0!==t.cancelBubble&&(t.cancelBubble=!0),o.onCloseClick&&o.onCloseClick(t),_(!0)})),o.onclick&&l.click((function(t){o.onclick(t),_()})),u(x),o.debug&&console&&console.log(x),l}function y(t){return null==t&&(t=""),t.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function _(e){var i=e&&!1!==o.closeMethod?o.closeMethod:o.hideMethod,s=e&&!1!==o.closeDuration?o.closeDuration:o.hideDuration,n=e&&!1!==o.closeEasing?o.closeEasing:o.hideEasing;if(!t(":focus",l).length||e)return clearTimeout(b.intervalId),l[i]({duration:s,easing:n,complete:function(){g(l),clearTimeout(r),o.onHidden&&"hidden"!==x.state&&o.onHidden(),x.state="hidden",x.endTime=new Date,u(x)}})}}function p(){return t.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">×</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},h.options)}function g(t){e||(e=c()),t.is(":visible")||(t.remove(),t=null,0===e.children().length&&(e.remove(),s=void 0))}}()}.apply(e,s))||(t.exports=n)},9567:t=>{"use strict";t.exports=window.jQuery}},e={};function i(s){var n=e[s];if(void 0!==n)return n.exports;var o=e[s]={exports:{}};return t[s](o,o.exports,i),o.exports}i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var s in e)i.o(e,s)&&!i.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var s={};(()=>{"use strict";i.r(s);const t=window.wp.element,e=window.wp.apiFetch;var n=i.n(e);const o=window.React;var a=i.n(o);const r=function(){return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("svg",{width:"400",height:"400",viewBox:"0 0 400 400",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("g",{clipPath:"url(#clip0)"},(0,t.createElement)("path",{d:"M319.019 171.203C319.019 185.414 316.25 199.487 310.872 212.617C305.494 225.747 297.611 237.677 287.674 247.726L212 171.203H319.019Z",fill:"#FF7134",stroke:"white",strokeWidth:"2"}),(0,t.createElement)("path",{d:"M134.626 94.6788C155.147 74.3834 182.979 62.9816 212 62.9816L212 171.202L134.626 94.6788Z",fill:"#30EED7",stroke:"white",strokeWidth:"2"}),(0,t.createElement)("path",{d:"M212 34.1228C248.675 34.1228 283.847 48.6918 309.78 74.6247L212 172.405L212 34.1228Z",fill:"#1DB53F",stroke:"white",strokeWidth:"2"}),(0,t.createElement)("path",{d:"M330.297 54.0127C361.517 85.2325 379.056 127.576 379.056 171.727L212.583 171.727L330.297 54.0127Z",fill:"#E3DB13",stroke:"white",strokeWidth:"2"}),(0,t.createElement)("path",{d:"M212.001 289.044C196.683 289.044 181.516 285.995 167.365 280.073C153.214 274.151 140.356 265.471 129.525 254.529L212.001 171.203L212.001 289.044Z",fill:"#811EFF",stroke:"white",strokeWidth:"2"}),(0,t.createElement)("path",{d:"M350.593 309.593C332.393 327.793 310.786 342.23 287.006 352.08C263.226 361.93 237.739 367 212 367L212 171L350.593 309.593Z",fill:"#FF3737",stroke:"white",strokeWidth:"2"}),(0,t.createElement)("path",{d:"M21.4282 172.425C21.4282 147.343 26.3686 122.506 35.9673 99.3327C45.5659 76.1595 59.6349 55.1038 77.3709 37.3678L212.428 172.425L21.4282 172.425Z",fill:"#29D2EC",stroke:"white",strokeWidth:"2"}),(0,t.createElement)("path",{d:"M95.514 288.891C64.62 257.997 47.2639 216.096 47.2639 172.405L212 172.405L95.514 288.891Z",fill:"#2663FF",stroke:"white",strokeWidth:"2"})),(0,t.createElement)("defs",null,(0,t.createElement)("clipPath",{id:"clip0"},(0,t.createElement)("rect",{width:"400",height:"400",fill:"white"})))))},l=function(e){const{onClick:i,title:s,btnLabel:n,postBlocks:o,featImg:a,isBlock:l}=e;return(0,t.createElement)("div",{className:"wheeloflife-into-wrap"},(0,t.createElement)("div",{className:"wheeloflife-title-wrap"},(0,t.createElement)("h2",{className:"wheeloflife-title",dangerouslySetInnerHTML:{__html:s}}),null!=o&&""!==o&&o.map((function(e,i){if("core/paragraph"===e.blockName)return(0,t.createElement)("div",{className:"wol_description",dangerouslySetInnerHTML:{__html:e.innerHTML}})}))),s&&(0,t.createElement)("div",{className:"wheeloflife-life-wheel"},a?(0,t.createElement)("img",{src:a}):(0,t.createElement)(r,null)),s&&(0,t.createElement)("div",{className:"wheeloflife-btn-wrap"},l?(0,t.createElement)("div",{className:"wolblk-btn-inner"},(0,t.createElement)("button",{type:"button",className:"wheeloflifeblks-button",onClick:i},n)):(0,t.createElement)("button",{type:"button",className:"wheeloflife-btn is-primary",onClick:i},n))||null)},h=e=>{let{setValue:i,label:s,handleFormValue:n,setRangeValue:o,rangeValue:a,options:r}=e,l=r.maxValue,h=r.minValue,c=r.name,d=r.bgColor;const u=r.type;if((0,t.useEffect)((()=>{o(h)}),[]),"likert"===u)for(var f=[],p=h;p<=l;p++)f.push((0,t.createElement)("li",null,(0,t.createElement)("input",{id:`${c}-rate-${p}`,type:"radio",name:c,checked:!1,onChange:n(p,s,d)}),(0,t.createElement)("label",{htmlFor:`${c}-rate-${p}`},p)));let g=l/2>=a,m=l/4*3>=a;return(0,t.createElement)(t.Fragment,null,"likert"===u&&(0,t.createElement)("div",{className:"wheeloflife-meter-likert-container"},(0,t.createElement)("div",{className:"meter-likert-wrapper"},(0,t.createElement)("ul",{className:"meter-likert-rating"},f))),"slider"===u&&(0,t.createElement)("div",{className:"wheeloflife-meter-slider-container"},(0,t.createElement)("div",{className:"meter-slider-wrapper"},(0,t.createElement)("input",{type:"range",min:h,max:l,defaultValue:h,name:c,onChange:t=>{o(t.target.value)},id:c}),(0,t.createElement)("div",{className:"meter-slider-track",style:g?{"--green":"red"}:m?{"--green":"#F9A94D"}:{"--green":"#1db53f"}},(0,t.createElement)("span",{className:"meter-slider-progress",style:{width:"calc("+a/l*100+"% + 5px)"}}),(0,t.createElement)("label",{htmlFor:c,className:"meter-slider-thumb",style:{left:a/l*100+"%"}}),(0,t.createElement)("span",{className:"range-number",style:{left:a/l*100+"%"}},a)))))};function c(){}const d=function(){let t=0;return function(){return t++}}();function u(t){return null==t}function f(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function p(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const g=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function m(t,e){return g(t)?t:e}function b(t,e){return void 0===t?e:t}const x=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function y(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function _(t,e,i,s){let n,o,a;if(f(t))if(o=t.length,s)for(n=o-1;n>=0;n--)e.call(i,t[n],n);else for(n=0;n<o;n++)e.call(i,t[n],n);else if(p(t))for(a=Object.keys(t),o=a.length,n=0;n<o;n++)e.call(i,t[a[n]],a[n])}function v(t,e){let i,s,n,o;if(!t||!e||t.length!==e.length)return!1;for(i=0,s=t.length;i<s;++i)if(n=t[i],o=e[i],n.datasetIndex!==o.datasetIndex||n.index!==o.index)return!1;return!0}function w(t){if(f(t))return t.map(w);if(p(t)){const e=Object.create(null),i=Object.keys(t),s=i.length;let n=0;for(;n<s;++n)e[i[n]]=w(t[i[n]]);return e}return t}function k(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function C(t,e,i,s){if(!k(t))return;const n=e[t],o=i[t];p(n)&&p(o)?M(n,o,s):e[t]=w(o)}function M(t,e,i){const s=f(e)?e:[e],n=s.length;if(!p(t))return t;const o=(i=i||{}).merger||C;for(let a=0;a<n;++a){if(!p(e=s[a]))continue;const n=Object.keys(e);for(let s=0,a=n.length;s<a;++s)o(n[s],t,e,i)}return t}function S(t,e){return M(t,e,{merger:E})}function E(t,e,i){if(!k(t))return;const s=e[t],n=i[t];p(s)&&p(n)?S(s,n):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=w(n))}const L={"":t=>t,x:t=>t.x,y:t=>t.y};function D(t,e){const i=L[e]||(L[e]=function(t){const e=function(t){const e=t.split("."),i=[];let s="";for(const t of e)s+=t,s.endsWith("\\")?s=s.slice(0,-1)+".":(i.push(s),s="");return i}(t);return t=>{for(const i of e){if(""===i)break;t=t&&t[i]}return t}}(e));return i(t)}function P(t){return t.charAt(0).toUpperCase()+t.slice(1)}const O=t=>void 0!==t,T=t=>"function"==typeof t,A=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0},z=Math.PI,R=2*z,I=R+z,F=Number.POSITIVE_INFINITY,V=z/180,N=z/2,B=z/4,H=2*z/3,W=Math.log10,j=Math.sign;function $(t){const e=Math.round(t);t=Y(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(W(t))),s=t/i;return(s<=1?1:s<=2?2:s<=5?5:10)*i}function Z(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Y(t,e,i){return Math.abs(t-e)<i}function U(t,e,i){let s,n,o;for(s=0,n=t.length;s<n;s++)o=t[s][i],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function X(t){return t*(z/180)}function q(t){return t*(180/z)}function K(t){if(!g(t))return;let e=1,i=0;for(;Math.round(t*e)/e!==t;)e*=10,i++;return i}function G(t,e){const i=e.x-t.x,s=e.y-t.y,n=Math.sqrt(i*i+s*s);let o=Math.atan2(s,i);return o<-.5*z&&(o+=R),{angle:o,distance:n}}function J(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Q(t,e){return(t-e+I)%R-z}function tt(t){return(t%R+R)%R}function et(t,e,i,s){const n=tt(t),o=tt(e),a=tt(i),r=tt(o-n),l=tt(a-n),h=tt(n-o),c=tt(n-a);return n===o||n===a||s&&o===a||r>l&&h<c}function it(t,e,i){return Math.max(e,Math.min(i,t))}function st(t,e,i,s=1e-6){return t>=Math.min(e,i)-s&&t<=Math.max(e,i)+s}function nt(t,e,i){i=i||(i=>t[i]<e);let s,n=t.length-1,o=0;for(;n-o>1;)s=o+n>>1,i(s)?o=s:n=s;return{lo:o,hi:n}}const ot=(t,e,i,s)=>nt(t,i,s?s=>t[s][e]<=i:s=>t[s][e]<i),at=(t,e,i)=>nt(t,i,(s=>t[s][e]>=i)),rt=["push","pop","shift","splice","unshift"];function lt(t,e){const i=t._chartjs;if(!i)return;const s=i.listeners,n=s.indexOf(e);-1!==n&&s.splice(n,1),s.length>0||(rt.forEach((e=>{delete t[e]})),delete t._chartjs)}function ht(t){const e=new Set;let i,s;for(i=0,s=t.length;i<s;++i)e.add(t[i]);return e.size===s?t:Array.from(e)}const ct="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function dt(t,e,i){const s=i||(t=>Array.prototype.slice.call(t));let n=!1,o=[];return function(...i){o=s(i),n||(n=!0,ct.call(window,(()=>{n=!1,t.apply(e,o)})))}}const ut=t=>"start"===t?"left":"end"===t?"right":"center",ft=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2;function pt(t,e,i){const s=e.length;let n=0,o=s;if(t._sorted){const{iScale:a,_parsed:r}=t,l=a.axis,{min:h,max:c,minDefined:d,maxDefined:u}=a.getUserBounds();d&&(n=it(Math.min(ot(r,a.axis,h).lo,i?s:ot(e,l,a.getPixelForValue(h)).lo),0,s-1)),o=u?it(Math.max(ot(r,a.axis,c,!0).hi+1,i?0:ot(e,l,a.getPixelForValue(c),!0).hi+1),n,s)-n:s-n}return{start:n,count:o}}function gt(t){const{xScale:e,yScale:i,_scaleRanges:s}=t,n={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!s)return t._scaleRanges=n,!0;const o=s.xmin!==e.min||s.xmax!==e.max||s.ymin!==i.min||s.ymax!==i.max;return Object.assign(s,n),o}const mt=t=>0===t||1===t,bt=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*R/i),xt=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*R/i)+1,yt={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*N),easeOutSine:t=>Math.sin(t*N),easeInOutSine:t=>-.5*(Math.cos(z*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=>mt(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=>mt(t)?t:bt(t,.075,.3),easeOutElastic:t=>mt(t)?t:xt(t,.075,.3),easeInOutElastic(t){const e=.1125;return mt(t)?t:t<.5?.5*bt(2*t,e,.45):.5+.5*xt(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-yt.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375},easeInOutBounce:t=>t<.5?.5*yt.easeInBounce(2*t):.5*yt.easeOutBounce(2*t-1)+.5};function _t(t){return t+.5|0}const vt=(t,e,i)=>Math.max(Math.min(t,i),e);function wt(t){return vt(_t(2.55*t),0,255)}function kt(t){return vt(_t(255*t),0,255)}function Ct(t){return vt(_t(t/2.55)/100,0,1)}function Mt(t){return vt(_t(100*t),0,100)}const St={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},Et=[..."0123456789ABCDEF"],Lt=t=>Et[15&t],Dt=t=>Et[(240&t)>>4]+Et[15&t],Pt=t=>(240&t)>>4==(15&t),Ot=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Tt(t,e,i){const s=e*Math.min(i,1-i),n=(e,n=(e+t/30)%12)=>i-s*Math.max(Math.min(n-3,9-n,1),-1);return[n(0),n(8),n(4)]}function At(t,e,i){const s=(s,n=(s+t/60)%6)=>i-i*e*Math.max(Math.min(n,4-n,1),0);return[s(5),s(3),s(1)]}function zt(t,e,i){const s=Tt(t,1,.5);let n;for(e+i>1&&(n=1/(e+i),e*=n,i*=n),n=0;n<3;n++)s[n]*=1-e-i,s[n]+=e;return s}function Rt(t){const e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),o=Math.min(e,i,s),a=(n+o)/2;let r,l,h;return n!==o&&(h=n-o,l=a>.5?h/(2-n-o):h/(n+o),r=function(t,e,i,s,n){return t===n?(e-i)/s+(e<i?6:0):e===n?(i-t)/s+2:(t-e)/s+4}(e,i,s,h,n),r=60*r+.5),[0|r,l||0,a]}function It(t,e,i,s){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,s)).map(kt)}function Ft(t,e,i){return It(Tt,t,e,i)}function Vt(t){return(t%360+360)%360}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"},Bt={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 Ht;const Wt=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,jt=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,$t=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Zt(t,e,i){if(t){let s=Rt(t);s[e]=Math.max(0,Math.min(s[e]+s[e]*i,0===e?360:1)),s=Ft(s),t.r=s[0],t.g=s[1],t.b=s[2]}}function Yt(t,e){return t?Object.assign(e||{},t):t}function Ut(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=kt(t[3]))):(e=Yt(t,{r:0,g:0,b:0,a:1})).a=kt(e.a),e}function Xt(t){return"r"===t.charAt(0)?function(t){const e=Wt.exec(t);let i,s,n,o=255;if(e){if(e[7]!==i){const t=+e[7];o=e[8]?wt(t):vt(255*t,0,255)}return i=+e[1],s=+e[3],n=+e[5],i=255&(e[2]?wt(i):vt(i,0,255)),s=255&(e[4]?wt(s):vt(s,0,255)),n=255&(e[6]?wt(n):vt(n,0,255)),{r:i,g:s,b:n,a:o}}}(t):function(t){const e=Ot.exec(t);let i,s=255;if(!e)return;e[5]!==i&&(s=e[6]?wt(+e[5]):kt(+e[5]));const n=Vt(+e[2]),o=+e[3]/100,a=+e[4]/100;return i="hwb"===e[1]?function(t,e,i){return It(zt,t,e,i)}(n,o,a):"hsv"===e[1]?function(t,e,i){return It(At,t,e,i)}(n,o,a):Ft(n,o,a),{r:i[0],g:i[1],b:i[2],a:s}}(t)}class qt{constructor(t){if(t instanceof qt)return t;const e=typeof t;let i;var s,n,o;"object"===e?i=Ut(t):"string"===e&&(o=(s=t).length,"#"===s[0]&&(4===o||5===o?n={r:255&17*St[s[1]],g:255&17*St[s[2]],b:255&17*St[s[3]],a:5===o?17*St[s[4]]:255}:7!==o&&9!==o||(n={r:St[s[1]]<<4|St[s[2]],g:St[s[3]]<<4|St[s[4]],b:St[s[5]]<<4|St[s[6]],a:9===o?St[s[7]]<<4|St[s[8]]:255})),i=n||function(t){Ht||(Ht=function(){const t={},e=Object.keys(Bt),i=Object.keys(Nt);let s,n,o,a,r;for(s=0;s<e.length;s++){for(a=r=e[s],n=0;n<i.length;n++)o=i[n],r=r.replace(o,Nt[o]);o=parseInt(Bt[a],16),t[r]=[o>>16&255,o>>8&255,255&o]}return t}(),Ht.transparent=[0,0,0,0]);const e=Ht[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||Xt(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=Yt(this._rgb);return t&&(t.a=Ct(t.a)),t}set rgb(t){this._rgb=Ut(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Ct(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?(e=(t=>Pt(t.r)&&Pt(t.g)&&Pt(t.b)&&Pt(t.a))(t=this._rgb)?Lt:Dt,t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0):void 0;var t,e}hslString(){return this._valid?function(t){if(!t)return;const e=Rt(t),i=e[0],s=Mt(e[1]),n=Mt(e[2]);return t.a<255?`hsla(${i}, ${s}%, ${n}%, ${Ct(t.a)})`:`hsl(${i}, ${s}%, ${n}%)`}(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,s=t.rgb;let n;const o=e===n?.5:e,a=2*o-1,r=i.a-s.a,l=((a*r==-1?a:(a+r)/(1+a*r))+1)/2;n=1-l,i.r=255&l*i.r+n*s.r+.5,i.g=255&l*i.g+n*s.g+.5,i.b=255&l*i.b+n*s.b+.5,i.a=o*i.a+(1-o)*s.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,i){const s=$t(Ct(t.r)),n=$t(Ct(t.g)),o=$t(Ct(t.b));return{r:kt(jt(s+i*($t(Ct(e.r))-s))),g:kt(jt(n+i*($t(Ct(e.g))-n))),b:kt(jt(o+i*($t(Ct(e.b))-o))),a:t.a+i*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new qt(this.rgb)}alpha(t){return this._rgb.a=kt(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=_t(.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 Zt(this._rgb,2,t),this}darken(t){return Zt(this._rgb,2,-t),this}saturate(t){return Zt(this._rgb,1,t),this}desaturate(t){return Zt(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=Rt(t);i[0]=Vt(i[0]+e),i=Ft(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}function Kt(t){return new qt(t)}function Gt(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Jt(t){return Gt(t)?t:Kt(t)}function Qt(t){return Gt(t)?t:Kt(t).saturate(.5).darken(.1).hexString()}const te=Object.create(null),ee=Object.create(null);function ie(t,e){if(!e)return t;const i=e.split(".");for(let e=0,s=i.length;e<s;++e){const s=i[e];t=t[s]||(t[s]=Object.create(null))}return t}function se(t,e,i){return"string"==typeof e?M(ie(t,e),i):M(ie(t,""),e)}var ne=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)=>Qt(e.backgroundColor),this.hoverBorderColor=(t,e)=>Qt(e.borderColor),this.hoverColor=(t,e)=>Qt(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return se(this,t,e)}get(t){return ie(this,t)}describe(t,e){return se(ee,t,e)}override(t,e){return se(te,t,e)}route(t,e,i,s){const n=ie(this,t),o=ie(this,i),a="_"+e;Object.defineProperties(n,{[a]:{value:n[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=o[s];return p(t)?Object.assign({},e,t):b(t,e)},set(t){this[a]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function oe(t,e,i,s,n){let o=e[n];return o||(o=e[n]=t.measureText(n).width,i.push(n)),o>s&&(s=o),s}function ae(t,e,i,s){let n=(s=s||{}).data=s.data||{},o=s.garbageCollect=s.garbageCollect||[];s.font!==e&&(n=s.data={},o=s.garbageCollect=[],s.font=e),t.save(),t.font=e;let a=0;const r=i.length;let l,h,c,d,u;for(l=0;l<r;l++)if(d=i[l],null!=d&&!0!==f(d))a=oe(t,n,o,a,d);else if(f(d))for(h=0,c=d.length;h<c;h++)u=d[h],null==u||f(u)||(a=oe(t,n,o,a,u));t.restore();const p=o.length/2;if(p>i.length){for(l=0;l<p;l++)delete n[o[l]];o.splice(0,p)}return a}function re(t,e,i){const s=t.currentDevicePixelRatio,n=0!==i?Math.max(i/2,.5):0;return Math.round((e-n)*s)/s+n}function le(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function he(t,e,i,s){ce(t,e,i,s,null)}function ce(t,e,i,s,n){let o,a,r,l,h,c;const d=e.pointStyle,u=e.rotation,f=e.radius;let p=(u||0)*V;if(d&&"object"==typeof d&&(o=d.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return t.save(),t.translate(i,s),t.rotate(p),t.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),void t.restore();if(!(isNaN(f)||f<=0)){switch(t.beginPath(),d){default:n?t.ellipse(i,s,n/2,f,0,0,R):t.arc(i,s,f,0,R),t.closePath();break;case"triangle":t.moveTo(i+Math.sin(p)*f,s-Math.cos(p)*f),p+=H,t.lineTo(i+Math.sin(p)*f,s-Math.cos(p)*f),p+=H,t.lineTo(i+Math.sin(p)*f,s-Math.cos(p)*f),t.closePath();break;case"rectRounded":h=.516*f,l=f-h,a=Math.cos(p+B)*l,r=Math.sin(p+B)*l,t.arc(i-a,s-r,h,p-z,p-N),t.arc(i+r,s-a,h,p-N,p),t.arc(i+a,s+r,h,p,p+N),t.arc(i-r,s+a,h,p+N,p+z),t.closePath();break;case"rect":if(!u){l=Math.SQRT1_2*f,c=n?n/2:l,t.rect(i-c,s-l,2*c,2*l);break}p+=B;case"rectRot":a=Math.cos(p)*f,r=Math.sin(p)*f,t.moveTo(i-a,s-r),t.lineTo(i+r,s-a),t.lineTo(i+a,s+r),t.lineTo(i-r,s+a),t.closePath();break;case"crossRot":p+=B;case"cross":a=Math.cos(p)*f,r=Math.sin(p)*f,t.moveTo(i-a,s-r),t.lineTo(i+a,s+r),t.moveTo(i+r,s-a),t.lineTo(i-r,s+a);break;case"star":a=Math.cos(p)*f,r=Math.sin(p)*f,t.moveTo(i-a,s-r),t.lineTo(i+a,s+r),t.moveTo(i+r,s-a),t.lineTo(i-r,s+a),p+=B,a=Math.cos(p)*f,r=Math.sin(p)*f,t.moveTo(i-a,s-r),t.lineTo(i+a,s+r),t.moveTo(i+r,s-a),t.lineTo(i-r,s+a);break;case"line":a=n?n/2:Math.cos(p)*f,r=Math.sin(p)*f,t.moveTo(i-a,s-r),t.lineTo(i+a,s+r);break;case"dash":t.moveTo(i,s),t.lineTo(i+Math.cos(p)*f,s+Math.sin(p)*f)}t.fill(),e.borderWidth>0&&t.stroke()}}function de(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.x<e.right+i&&t.y>e.top-i&&t.y<e.bottom+i}function ue(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function fe(t){t.restore()}function pe(t,e,i,s,n){if(!e)return t.lineTo(i.x,i.y);if("middle"===n){const s=(e.x+i.x)/2;t.lineTo(s,e.y),t.lineTo(s,i.y)}else"after"===n!=!!s?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y);t.lineTo(i.x,i.y)}function ge(t,e,i,s){if(!e)return t.lineTo(i.x,i.y);t.bezierCurveTo(s?e.cp1x:e.cp2x,s?e.cp1y:e.cp2y,s?i.cp2x:i.cp1x,s?i.cp2y:i.cp1y,i.x,i.y)}function me(t,e,i,s,n,o={}){const a=f(e)?e:[e],r=o.strokeWidth>0&&""!==o.strokeColor;let l,h;for(t.save(),t.font=n.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),l=0;l<a.length;++l)h=a[l],r&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),u(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(h,i,s,o.maxWidth)),t.fillText(h,i,s,o.maxWidth),be(t,i,s,h,o),s+=n.lineHeight;t.restore()}function be(t,e,i,s,n){if(n.strikethrough||n.underline){const o=t.measureText(s),a=e-o.actualBoundingBoxLeft,r=e+o.actualBoundingBoxRight,l=i-o.actualBoundingBoxAscent,h=i+o.actualBoundingBoxDescent,c=n.strikethrough?(l+h)/2:h;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=n.decorationWidth||2,t.moveTo(a,c),t.lineTo(r,c),t.stroke()}}function xe(t,e){const{x:i,y:s,w:n,h:o,radius:a}=e;t.arc(i+a.topLeft,s+a.topLeft,a.topLeft,-N,z,!0),t.lineTo(i,s+o-a.bottomLeft),t.arc(i+a.bottomLeft,s+o-a.bottomLeft,a.bottomLeft,z,N,!0),t.lineTo(i+n-a.bottomRight,s+o),t.arc(i+n-a.bottomRight,s+o-a.bottomRight,a.bottomRight,N,0,!0),t.lineTo(i+n,s+a.topRight),t.arc(i+n-a.topRight,s+a.topRight,a.topRight,0,-N,!0),t.lineTo(i+a.topLeft,s)}const ye=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),_e=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function ve(t,e){const i=(""+t).match(ye);if(!i||"normal"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case"px":return t;case"%":t/=100}return e*t}const we=t=>+t||0;function ke(t,e){const i={},s=p(e),n=s?Object.keys(e):e,o=p(t)?s?i=>b(t[i],t[e[i]]):e=>t[e]:()=>t;for(const t of n)i[t]=we(o(t));return i}function Ce(t){return ke(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Me(t){return ke(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Se(t){const e=Ce(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Ee(t,e){t=t||{},e=e||ne.font;let i=b(t.size,e.size);"string"==typeof i&&(i=parseInt(i,10));let s=b(t.style,e.style);s&&!(""+s).match(_e)&&(console.warn('Invalid font style specified: "'+s+'"'),s="");const n={family:b(t.family,e.family),lineHeight:ve(b(t.lineHeight,e.lineHeight),i),size:i,style:s,weight:b(t.weight,e.weight),string:""};return n.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}(n),n}function Le(t,e,i,s){let n,o,a,r=!0;for(n=0,o=t.length;n<o;++n)if(a=t[n],void 0!==a&&(void 0!==e&&"function"==typeof a&&(a=a(e),r=!1),void 0!==i&&f(a)&&(a=a[i%a.length],r=!1),void 0!==a))return s&&!r&&(s.cacheable=!1),a}function De(t,e){return Object.assign(Object.create(t),e)}function Pe(t,e=[""],i=t,s,n=(()=>t[0])){O(s)||(s=He("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:s,_getTarget:n,override:n=>Pe([n,...t],e,i,s)};return new Proxy(o,{deleteProperty:(e,i)=>(delete e[i],delete e._keys,delete t[0][i],!0),get:(i,s)=>Re(i,s,(()=>function(t,e,i,s){let n;for(const o of e)if(n=He(Ae(o,t),i),O(n))return ze(t,n)?Ne(i,s,t,n):n}(s,e,t,i))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>We(t).includes(e),ownKeys:t=>We(t),set(t,e,i){const s=t._storage||(t._storage=n());return t[e]=s[e]=i,delete t._keys,!0}})}function Oe(t,e,i,s){const n={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:Te(t,s),setContext:e=>Oe(t,e,i,s),override:n=>Oe(t.override(n),e,i,s)};return new Proxy(n,{deleteProperty:(e,i)=>(delete e[i],delete t[i],!0),get:(t,e,i)=>Re(t,e,(()=>function(t,e,i){const{_proxy:s,_context:n,_subProxy:o,_descriptors:a}=t;let r=s[e];return T(r)&&a.isScriptable(e)&&(r=function(t,e,i,s){const{_proxy:n,_context:o,_subProxy:a,_stack:r}=i;if(r.has(t))throw new Error("Recursion detected: "+Array.from(r).join("->")+"->"+t);return r.add(t),e=e(o,a||s),r.delete(t),ze(t,e)&&(e=Ne(n._scopes,n,t,e)),e}(e,r,t,i)),f(r)&&r.length&&(r=function(t,e,i,s){const{_proxy:n,_context:o,_subProxy:a,_descriptors:r}=i;if(O(o.index)&&s(t))e=e[o.index%e.length];else if(p(e[0])){const i=e,s=n._scopes.filter((t=>t!==i));e=[];for(const l of i){const i=Ne(s,n,t,l);e.push(Oe(i,o,a&&a[t],r))}}return e}(e,r,t,a.isIndexable)),ze(e,r)&&(r=Oe(r,n,o&&o[e],a)),r}(t,e,i))),getOwnPropertyDescriptor:(e,i)=>e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,i)=>Reflect.has(t,i),ownKeys:()=>Reflect.ownKeys(t),set:(e,i,s)=>(t[i]=s,delete e[i],!0)})}function Te(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:s=e.indexable,_allKeys:n=e.allKeys}=t;return{allKeys:n,scriptable:i,indexable:s,isScriptable:T(i)?i:()=>i,isIndexable:T(s)?s:()=>s}}const Ae=(t,e)=>t?t+P(e):e,ze=(t,e)=>p(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Re(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const s=i();return t[e]=s,s}function Ie(t,e,i){return T(t)?t(e,i):t}const Fe=(t,e)=>!0===t?e:"string"==typeof t?D(e,t):void 0;function Ve(t,e,i,s,n){for(const o of e){const e=Fe(i,o);if(e){t.add(e);const o=Ie(e._fallback,i,n);if(O(o)&&o!==i&&o!==s)return o}else if(!1===e&&O(s)&&i!==s)return null}return!1}function Ne(t,e,i,s){const n=e._rootScopes,o=Ie(e._fallback,i,s),a=[...t,...n],r=new Set;r.add(s);let l=Be(r,a,i,o||i,s);return null!==l&&(!O(o)||o===i||(l=Be(r,a,o,l,s),null!==l))&&Pe(Array.from(r),[""],n,o,(()=>function(t,e,i){const s=t._getTarget();e in s||(s[e]={});const n=s[e];return f(n)&&p(i)?i:n}(e,i,s)))}function Be(t,e,i,s,n){for(;i;)i=Ve(t,e,i,s,n);return i}function He(t,e){for(const i of e){if(!i)continue;const e=i[t];if(O(e))return e}}function We(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const i of t)for(const t of Object.keys(i).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function je(t,e,i,s){const{iScale:n}=t,{key:o="r"}=this._parsing,a=new Array(s);let r,l,h,c;for(r=0,l=s;r<l;++r)h=r+i,c=e[h],a[r]={r:n.parse(D(c,o),h)};return a}const $e=Number.EPSILON||1e-14,Ze=(t,e)=>e<t.length&&!t[e].skip&&t[e],Ye=t=>"x"===t?"y":"x";function Ue(t,e,i,s){const n=t.skip?e:t,o=e,a=i.skip?e:i,r=J(o,n),l=J(a,o);let h=r/(r+l),c=l/(r+l);h=isNaN(h)?0:h,c=isNaN(c)?0:c;const d=s*h,u=s*c;return{previous:{x:o.x-d*(a.x-n.x),y:o.y-d*(a.y-n.y)},next:{x:o.x+u*(a.x-n.x),y:o.y+u*(a.y-n.y)}}}function Xe(t,e,i){return Math.max(Math.min(t,i),e)}function qe(t,e,i,s,n){let o,a,r,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)!function(t,e="x"){const i=Ye(e),s=t.length,n=Array(s).fill(0),o=Array(s);let a,r,l,h=Ze(t,0);for(a=0;a<s;++a)if(r=l,l=h,h=Ze(t,a+1),l){if(h){const t=h[e]-l[e];n[a]=0!==t?(h[i]-l[i])/t:0}o[a]=r?h?j(n[a-1])!==j(n[a])?0:(n[a-1]+n[a])/2:n[a-1]:n[a]}!function(t,e,i){const s=t.length;let n,o,a,r,l,h=Ze(t,0);for(let c=0;c<s-1;++c)l=h,h=Ze(t,c+1),l&&h&&(Y(e[c],0,$e)?i[c]=i[c+1]=0:(n=i[c]/e[c],o=i[c+1]/e[c],r=Math.pow(n,2)+Math.pow(o,2),r<=9||(a=3/Math.sqrt(r),i[c]=n*a*e[c],i[c+1]=o*a*e[c])))}(t,n,o),function(t,e,i="x"){const s=Ye(i),n=t.length;let o,a,r,l=Ze(t,0);for(let h=0;h<n;++h){if(a=r,r=l,l=Ze(t,h+1),!r)continue;const n=r[i],c=r[s];a&&(o=(n-a[i])/3,r[`cp1${i}`]=n-o,r[`cp1${s}`]=c-o*e[h]),l&&(o=(l[i]-n)/3,r[`cp2${i}`]=n+o,r[`cp2${s}`]=c+o*e[h])}}(t,o,e)}(t,n);else{let i=s?t[t.length-1]:t[0];for(o=0,a=t.length;o<a;++o)r=t[o],l=Ue(i,r,t[Math.min(o+1,a-(s?0:1))%a],e.tension),r.cp1x=l.previous.x,r.cp1y=l.previous.y,r.cp2x=l.next.x,r.cp2y=l.next.y,i=r}e.capBezierPoints&&function(t,e){let i,s,n,o,a,r=de(t[0],e);for(i=0,s=t.length;i<s;++i)a=o,o=r,r=i<s-1&&de(t[i+1],e),o&&(n=t[i],a&&(n.cp1x=Xe(n.cp1x,e.left,e.right),n.cp1y=Xe(n.cp1y,e.top,e.bottom)),r&&(n.cp2x=Xe(n.cp2x,e.left,e.right),n.cp2y=Xe(n.cp2y,e.top,e.bottom)))}(t,i)}function Ke(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Ge(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function Je(t,e,i){let s;return"string"==typeof t?(s=parseInt(t,10),-1!==t.indexOf("%")&&(s=s/100*e.parentNode[i])):s=t,s}const Qe=t=>window.getComputedStyle(t,null),ti=["top","right","bottom","left"];function ei(t,e,i){const s={};i=i?"-"+i:"";for(let n=0;n<4;n++){const o=ti[n];s[o]=parseFloat(t[e+"-"+o+i])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}const ii=(t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot);function si(t,e){if("native"in t)return t;const{canvas:i,currentDevicePixelRatio:s}=e,n=Qe(i),o="border-box"===n.boxSizing,a=ei(n,"padding"),r=ei(n,"border","width"),{x:l,y:h,box:c}=function(t,e){const i=t.touches,s=i&&i.length?i[0]:t,{offsetX:n,offsetY:o}=s;let a,r,l=!1;if(ii(n,o,t.target))a=n,r=o;else{const t=e.getBoundingClientRect();a=s.clientX-t.left,r=s.clientY-t.top,l=!0}return{x:a,y:r,box:l}}(t,i),d=a.left+(c&&r.left),u=a.top+(c&&r.top);let{width:f,height:p}=e;return o&&(f-=a.width+r.width,p-=a.height+r.height),{x:Math.round((l-d)/f*i.width/s),y:Math.round((h-u)/p*i.height/s)}}const ni=t=>Math.round(10*t)/10;function oi(t,e,i){const s=e||1,n=Math.floor(t.height*s),o=Math.floor(t.width*s);t.height=n/s,t.width=o/s;const a=t.canvas;return a.style&&(i||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==s||a.height!==n||a.width!==o)&&(t.currentDevicePixelRatio=s,a.height=n,a.width=o,t.ctx.setTransform(s,0,0,s,0,0),!0)}const ai=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 ri(t,e){const i=function(t,e){return Qe(t).getPropertyValue(e)}(t,e),s=i&&i.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function li(t,e,i,s){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function hi(t,e,i,s){return{x:t.x+i*(e.x-t.x),y:"middle"===s?i<.5?t.y:e.y:"after"===s?i<1?t.y:e.y:i>0?e.y:t.y}}function ci(t,e,i,s){const n={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},a=li(t,n,i),r=li(n,o,i),l=li(o,e,i),h=li(a,r,i),c=li(r,l,i);return li(h,c,i)}const di=new Map;function ui(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let s=di.get(i);return s||(s=new Intl.NumberFormat(t,e),di.set(i,s)),s}(e,i).format(t)}const fi=function(t,e){return{x:i=>t+t+e-i,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}},pi=function(){return{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}};function gi(t,e,i){return t?fi(e,i):pi()}function mi(t,e){let i,s;"ltr"!==e&&"rtl"!==e||(i=t.canvas.style,s=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=s)}function bi(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function xi(t){return"angle"===t?{between:et,compare:Q,normalize:tt}:{between:st,compare:(t,e)=>t-e,normalize:t=>t}}function yi({start:t,end:e,count:i,loop:s,style:n}){return{start:t%i,end:e%i,loop:s&&(e-t+1)%i==0,style:n}}function _i(t,e,i){if(!i)return[t];const{property:s,start:n,end:o}=i,a=e.length,{compare:r,between:l,normalize:h}=xi(s),{start:c,end:d,loop:u,style:f}=function(t,e,i){const{property:s,start:n,end:o}=i,{between:a,normalize:r}=xi(s),l=e.length;let h,c,{start:d,end:u,loop:f}=t;if(f){for(d+=l,u+=l,h=0,c=l;h<c&&a(r(e[d%l][s]),n,o);++h)d--,u--;d%=l,u%=l}return u<d&&(u+=l),{start:d,end:u,loop:f,style:t.style}}(t,e,i),p=[];let g,m,b,x=!1,y=null;for(let t=c,i=c;t<=d;++t)m=e[t%a],m.skip||(g=h(m[s]),g!==b&&(x=l(g,n,o),null===y&&(x||l(n,b,g)&&0!==r(n,b))&&(y=0===r(g,n)?t:i),null!==y&&(!x||0===r(o,g)||l(o,b,g))&&(p.push(yi({start:y,end:t,loop:u,count:a,style:f})),y=null),i=t,b=g));return null!==y&&p.push(yi({start:y,end:d,loop:u,count:a,style:f})),p}function vi(t,e){const i=[],s=t.segments;for(let n=0;n<s.length;n++){const o=_i(s[n],t.points,e);o.length&&i.push(...o)}return i}function wi(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function ki(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}var Ci=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,s){const n=e.listeners[s],o=e.duration;n.forEach((s=>s({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=ct.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((i,s)=>{if(!i.running||!i.items.length)return;const n=i.items;let o,a=n.length-1,r=!1;for(;a>=0;--a)o=n[a],o._active?(o._total>i.duration&&(i.duration=o._total),o.tick(t),r=!0):(n[a]=n[n.length-1],n.pop());r&&(s.draw(),this._notify(s,i,t,"progress")),n.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),e+=n.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}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 i=e.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const Mi="transparent",Si={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const s=Jt(t||Mi),n=s.valid&&Jt(e||Mi);return n&&n.valid?n.mix(s,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class Ei{constructor(t,e,i,s){const n=e[i];s=Le([t.to,s,n,t.from]);const o=Le([t.from,n,s]);this._active=!0,this._fn=t.fn||Si[t.type||typeof o],this._easing=yt[t.easing]||yt.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=i,this._from=o,this._to=s,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const s=this._target[this._prop],n=i-this._start,o=this._duration-n;this._start=i,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=n,this._loop=!!t.loop,this._to=Le([t.to,e,s,t.from]),this._from=Le([t.from,s,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,s=this._prop,n=this._from,o=this._loop,a=this._to;let r;if(this._active=n!==a&&(o||e<i),!this._active)return this._target[s]=a,void this._notify(!0);e<0?this._target[s]=n:(r=e/i%2,r=o&&r>1?2-r:r,r=this._easing(Math.min(1,Math.max(0,r))),this._target[s]=this._fn(n,a,r))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,i)=>{t.push({res:e,rej:i})}))}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let t=0;t<i.length;t++)i[t][e]()}}ne.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 Li=Object.keys(ne.animation);ne.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),ne.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),ne.describe("animations",{_fallback:"animation"}),ne.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 Di{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!p(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach((i=>{const s=t[i];if(!p(s))return;const n={};for(const t of Li)n[t]=s[t];(f(s.properties)&&s.properties||[i]).forEach((t=>{t!==i&&e.has(t)||e.set(t,n)}))}))}_animateOptions(t,e){const i=e.options,s=function(t,e){if(!e)return;let i=t.options;if(i)return i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}})),i;t.options=e}(t,i);if(!s)return[];const n=this._createAnimations(s,i);return i.$shared&&function(t,e){const i=[],s=Object.keys(e);for(let e=0;e<s.length;e++){const n=t[s[e]];n&&n.active()&&i.push(n.wait())}return Promise.all(i)}(t.options.$animations,i).then((()=>{t.options=i}),(()=>{})),n}_createAnimations(t,e){const i=this._properties,s=[],n=t.$animations||(t.$animations={}),o=Object.keys(e),a=Date.now();let r;for(r=o.length-1;r>=0;--r){const l=o[r];if("$"===l.charAt(0))continue;if("options"===l){s.push(...this._animateOptions(t,e));continue}const h=e[l];let c=n[l];const d=i.get(l);if(c){if(d&&c.active()){c.update(d,h,a);continue}c.cancel()}d&&d.duration?(n[l]=c=new Ei(d,t,l,h),s.push(c)):t[l]=h}return s}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(Ci.add(this._chart,i),!0):void 0}}function Pi(t,e){const i=t&&t.options||{},s=i.reverse,n=void 0===i.min?e:0,o=void 0===i.max?e:0;return{start:s?o:n,end:s?n:o}}function Oi(t,e){const i=[],s=t._getSortedDatasetMetas(e);let n,o;for(n=0,o=s.length;n<o;++n)i.push(s[n].index);return i}function Ti(t,e,i,s={}){const n=t.keys,o="single"===s.mode;let a,r,l,h;if(null!==e){for(a=0,r=n.length;a<r;++a){if(l=+n[a],l===i){if(s.all)continue;break}h=t.values[l],g(h)&&(o||0===e||j(e)===j(h))&&(e+=h)}return e}}function Ai(t,e){const i=t&&t.options.stacked;return i||void 0===i&&void 0!==e.stack}function zi(t,e,i){const s=t[e]||(t[e]={});return s[i]||(s[i]={})}function Ri(t,e,i,s){for(const n of e.getMatchingVisibleMetas(s).reverse()){const e=t[n.index];if(i&&e>0||!i&&e<0)return n.index}return null}function Ii(t,e){const{chart:i,_cachedMeta:s}=t,n=i._stacks||(i._stacks={}),{iScale:o,vScale:a,index:r}=s,l=o.axis,h=a.axis,c=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(o,a,s),d=e.length;let u;for(let t=0;t<d;++t){const i=e[t],{[l]:o,[h]:d}=i;u=(i._stacks||(i._stacks={}))[h]=zi(n,c,o),u[r]=d,u._top=Ri(u,a,!0,s.type),u._bottom=Ri(u,a,!1,s.type)}}function Fi(t,e){const i=t.scales;return Object.keys(i).filter((t=>i[t].axis===e)).shift()}function Vi(t,e){const i=t.controller.index,s=t.vScale&&t.vScale.axis;if(s){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[s]||void 0===e[s][i])return;delete e[s][i]}}}const Ni=t=>"reset"===t||"none"===t,Bi=(t,e)=>e?t:Object.assign({},t);class Hi{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.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Ai(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&Vi(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),s=(t,e,i,s)=>"x"===t?e:"r"===t?s:i,n=e.xAxisID=b(i.xAxisID,Fi(t,"x")),o=e.yAxisID=b(i.yAxisID,Fi(t,"y")),a=e.rAxisID=b(i.rAxisID,Fi(t,"r")),r=e.indexAxis,l=e.iAxisID=s(r,n,o,a),h=e.vAxisID=s(r,o,n,a);e.xScale=this.getScaleForId(n),e.yScale=this.getScaleForId(o),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&<(this._data,this),t._stacked&&Vi(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(p(e))this._data=function(t){const e=Object.keys(t),i=new Array(e.length);let s,n,o;for(s=0,n=e.length;s<n;++s)o=e[s],i[s]={x:o,y:t[o]};return i}(e);else if(i!==e){if(i){lt(i,this);const t=this._cachedMeta;Vi(t),t._parsed=[]}e&&Object.isExtensible(e)&&(this,(s=e)._chartjs?s._chartjs.listeners.push(this):(Object.defineProperty(s,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[this]}}),rt.forEach((t=>{const e="_onData"+P(t),i=s[t];Object.defineProperty(s,t,{configurable:!0,enumerable:!1,value(...t){const n=i.apply(this,t);return s._chartjs.listeners.forEach((i=>{"function"==typeof i[e]&&i[e](...t)})),n}})})))),this._syncList=[],this._data=e}var s}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let s=!1;this._dataCheck();const n=e._stacked;e._stacked=Ai(e.vScale,e),e.stack!==i.stack&&(s=!0,Vi(e),e.stack=i.stack),this._resyncElements(t),(s||n!==e._stacked)&&Ii(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:s}=this,{iScale:n,_stacked:o}=i,a=n.axis;let r,l,h,c=0===t&&e===s.length||i._sorted,d=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=s,i._sorted=!0,h=s;else{h=f(s[t])?this.parseArrayData(i,s,t,e):p(s[t])?this.parseObjectData(i,s,t,e):this.parsePrimitiveData(i,s,t,e);const n=()=>null===l[a]||d&&l[a]<d[a];for(r=0;r<e;++r)i._parsed[r+t]=l=h[r],c&&(n()&&(c=!1),d=l);i._sorted=c}o&&Ii(this,h)}parsePrimitiveData(t,e,i,s){const{iScale:n,vScale:o}=t,a=n.axis,r=o.axis,l=n.getLabels(),h=n===o,c=new Array(s);let d,u,f;for(d=0,u=s;d<u;++d)f=d+i,c[d]={[a]:h||n.parse(l[f],f),[r]:o.parse(e[f],f)};return c}parseArrayData(t,e,i,s){const{xScale:n,yScale:o}=t,a=new Array(s);let r,l,h,c;for(r=0,l=s;r<l;++r)h=r+i,c=e[h],a[r]={x:n.parse(c[0],h),y:o.parse(c[1],h)};return a}parseObjectData(t,e,i,s){const{xScale:n,yScale:o}=t,{xAxisKey:a="x",yAxisKey:r="y"}=this._parsing,l=new Array(s);let h,c,d,u;for(h=0,c=s;h<c;++h)d=h+i,u=e[d],l[h]={x:n.parse(D(u,a),d),y:o.parse(D(u,r),d)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){const s=this.chart,n=this._cachedMeta,o=e[t.axis];return Ti({keys:Oi(s,!0),values:e._stacks[t.axis]},o,n.index,{mode:i})}updateRangeFromParsed(t,e,i,s){const n=i[e.axis];let o=null===n?NaN:n;const a=s&&i._stacks[e.axis];s&&a&&(s.values=a,o=Ti(s,n,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const i=this._cachedMeta,s=i._parsed,n=i._sorted&&t===i.iScale,o=s.length,a=this._getOtherScale(t),r=((t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:Oi(i,!0),values:null})(e,i,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:c}=function(t){const{min:e,max:i,minDefined:s,maxDefined:n}=t.getUserBounds();return{min:s?e:Number.NEGATIVE_INFINITY,max:n?i:Number.POSITIVE_INFINITY}}(a);let d,u;function f(){u=s[d];const e=u[a.axis];return!g(u[t.axis])||h>e||c<e}for(d=0;d<o&&(f()||(this.updateRangeFromParsed(l,t,u,r),!n));++d);if(n)for(d=o-1;d>=0;--d)if(!f()){this.updateRangeFromParsed(l,t,u,r);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let s,n,o;for(s=0,n=e.length;s<n;++s)o=e[s][t.axis],g(o)&&i.push(o);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,i=e.iScale,s=e.vScale,n=this.getParsed(t);return{label:i?""+i.getLabelForValue(n[i.axis]):"",value:s?""+s.getLabelForValue(n[s.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,i,s,n;return p(t)?(e=t.top,i=t.right,s=t.bottom,n=t.left):e=i=s=n=t,{top:e,right:i,bottom:s,left:n,disabled:!1===t}}(b(this.options.clip,function(t,e,i){if(!1===i)return!1;const s=Pi(t,i),n=Pi(e,i);return{top:n.end,right:s.end,bottom:n.start,left:s.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,i=this._cachedMeta,s=i.data||[],n=e.chartArea,o=[],a=this._drawStart||0,r=this._drawCount||s.length-a,l=this.options.drawActiveElementsOnTop;let h;for(i.dataset&&i.dataset.draw(t,n,a,r),h=a;h<a+r;++h){const e=s[h];e.hidden||(e.active&&l?o.push(e):e.draw(t,n))}for(h=0;h<o.length;++h)o[h].draw(t,n)}getStyle(t,e){const i=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,e,i){const s=this.getDataset();let n;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];n=e.$context||(e.$context=function(t,e,i){return De(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:i,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),n.parsed=this.getParsed(t),n.raw=s.data[t],n.index=n.dataIndex=t}else n=this.$context||(this.$context=function(t,e){return De(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),n.dataset=s,n.index=n.datasetIndex=this.index;return n.active=!!e,n.mode=i,n}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",i){const s="active"===e,n=this._cachedDataOpts,o=t+"-"+e,a=n[o],r=this.enableOptionSharing&&O(i);if(a)return Bi(a,r);const l=this.chart.config,h=l.datasetElementScopeKeys(this._type,t),c=s?[`${t}Hover`,"hover",t,""]:[t,""],d=l.getOptionScopes(this.getDataset(),h),u=Object.keys(ne.elements[t]),f=l.resolveNamedOptions(d,u,(()=>this.getContext(i,s)),c);return f.$shared&&(f.$shared=r,n[o]=Object.freeze(Bi(f,r))),f}_resolveAnimations(t,e,i){const s=this.chart,n=this._cachedDataOpts,o=`animation-${e}`,a=n[o];if(a)return a;let r;if(!1!==s.options.animation){const s=this.chart.config,n=s.datasetAnimationScopeKeys(this._type,e),o=s.getOptionScopes(this.getDataset(),n);r=s.createResolver(o,this.getContext(t,i,e))}const l=new Di(s,r&&r.animations);return r&&r._cacheable&&(n[o]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Ni(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),s=this._sharedOptions,n=this.getSharedOptions(i),o=this.includeOptions(e,n)||n!==s;return this.updateSharedOptions(n,e,i),{sharedOptions:n,includeOptions:o}}updateElement(t,e,i,s){Ni(s)?Object.assign(t,i):this._resolveAnimations(e,s).update(t,i)}updateSharedOptions(t,e,i){t&&!Ni(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,s){t.active=s;const n=this.getStyle(e,s);this._resolveAnimations(e,i,s).update(t,{options:!s&&this.getSharedOptions(n)||n})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"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,i=this._cachedMeta.data;for(const[t,e,i]of this._syncList)this[t](e,i);this._syncList=[];const s=i.length,n=e.length,o=Math.min(n,s);o&&this.parse(0,o),n>s?this._insertElements(s,n-s,t):n<s&&this._removeElements(n,s-n)}_insertElements(t,e,i=!0){const s=this._cachedMeta,n=s.data,o=t+e;let a;const r=t=>{for(t.length+=e,a=t.length-1;a>=o;a--)t[a]=t[a-e]};for(r(n),a=t;a<o;++a)n[a]=new this.dataElementType;this._parsing&&r(s._parsed),this.parse(t,e),i&&this.updateElements(n,t,e,"reset")}updateElements(t,e,i,s){}_removeElements(t,e){const i=this._cachedMeta;if(this._parsing){const s=i._parsed.splice(t,e);i._stacked&&Vi(i,s)}i.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,i,s]=t;this[e](i,s)}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 i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Wi(t){const e=t.iScale,i=function(t,e){if(!t._cache.$bar){const i=t.getMatchingVisibleMetas(e);let s=[];for(let e=0,n=i.length;e<n;e++)s=s.concat(i[e].controller.getAllParsedValues(t));t._cache.$bar=ht(s.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let s,n,o,a,r=e._length;const l=()=>{32767!==o&&-32768!==o&&(O(a)&&(r=Math.min(r,Math.abs(o-a)||r)),a=o)};for(s=0,n=i.length;s<n;++s)o=e.getPixelForValue(i[s]),l();for(a=void 0,s=0,n=e.ticks.length;s<n;++s)o=e.getPixelForTick(s),l();return r}function ji(t,e,i,s){return f(t)?function(t,e,i,s){const n=i.parse(t[0],s),o=i.parse(t[1],s),a=Math.min(n,o),r=Math.max(n,o);let l=a,h=r;Math.abs(a)>Math.abs(r)&&(l=r,h=a),e[i.axis]=h,e._custom={barStart:l,barEnd:h,start:n,end:o,min:a,max:r}}(t,e,i,s):e[i.axis]=i.parse(t,s),e}function $i(t,e,i,s){const n=t.iScale,o=t.vScale,a=n.getLabels(),r=n===o,l=[];let h,c,d,u;for(h=i,c=i+s;h<c;++h)u=e[h],d={},d[n.axis]=r||n.parse(a[h],h),l.push(ji(u,d,o,h));return l}function Zi(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Yi(t,e,i,s){let n=e.borderSkipped;const o={};if(!n)return void(t.borderSkipped=o);if(!0===n)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:r,reverse:l,top:h,bottom:c}=function(t){let e,i,s,n,o;return t.horizontal?(e=t.base>t.x,i="left",s="right"):(e=t.base<t.y,i="bottom",s="top"),e?(n="end",o="start"):(n="start",o="end"),{start:i,end:s,reverse:e,top:n,bottom:o}}(t);"middle"===n&&i&&(t.enableBorderRadius=!0,(i._top||0)===s?n=h:(i._bottom||0)===s?n=c:(o[Ui(c,a,r,l)]=!0,n=h)),o[Ui(n,a,r,l)]=!0,t.borderSkipped=o}function Ui(t,e,i,s){var n,o,a;return s?(a=i,t=Xi(t=(n=t)===(o=e)?a:n===a?o:n,i,e)):t=Xi(t,e,i),t}function Xi(t,e,i){return"start"===t?e:"end"===t?i:t}function qi(t,{inflateAmount:e},i){t.inflateAmount="auto"===e?1===i?.33:0:e}Hi.defaults={},Hi.prototype.datasetElementType=null,Hi.prototype.dataElementType=null;class Ki extends Hi{parsePrimitiveData(t,e,i,s){return $i(t,e,i,s)}parseArrayData(t,e,i,s){return $i(t,e,i,s)}parseObjectData(t,e,i,s){const{iScale:n,vScale:o}=t,{xAxisKey:a="x",yAxisKey:r="y"}=this._parsing,l="x"===n.axis?a:r,h="x"===o.axis?a:r,c=[];let d,u,f,p;for(d=i,u=i+s;d<u;++d)p=e[d],f={},f[n.axis]=n.parse(D(p,l),d),c.push(ji(D(p,h),f,o,d));return c}updateRangeFromParsed(t,e,i,s){super.updateRangeFromParsed(t,e,i,s);const n=i._custom;n&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,n.min),t.max=Math.max(t.max,n.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:i,vScale:s}=e,n=this.getParsed(t),o=n._custom,a=Zi(o)?"["+o.start+", "+o.end+"]":""+s.getLabelForValue(n[s.axis]);return{label:""+i.getLabelForValue(n[i.axis]),value:a}}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,i,s){const n="reset"===s,{index:o,_cachedMeta:{vScale:a}}=this,r=a.getBasePixel(),l=a.isHorizontal(),h=this._getRuler(),{sharedOptions:c,includeOptions:d}=this._getSharedOptions(e,s);for(let f=e;f<e+i;f++){const e=this.getParsed(f),i=n||u(e[a.axis])?{base:r,head:r}:this._calculateBarValuePixels(f),p=this._calculateBarIndexPixels(f,h),g=(e._stacks||{})[a.axis],m={horizontal:l,base:i.base,enableBorderRadius:!g||Zi(e._custom)||o===g._top||o===g._bottom,x:l?i.head:p.center,y:l?p.center:i.head,height:l?p.size:Math.abs(i.size),width:l?Math.abs(i.size):p.size};d&&(m.options=c||this.resolveDataElementOptions(f,t[f].active?"active":s));const b=m.options||t[f].options;Yi(m,b,g,o),qi(m,b,h.ratio),this.updateElement(t[f],f,m,s)}}_getStacks(t,e){const{iScale:i}=this._cachedMeta,s=i.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),n=i.options.stacked,o=[],a=t=>{const i=t.controller.getParsed(e),s=i&&i[t.vScale.axis];if(u(s)||isNaN(s))return!0};for(const i of s)if((void 0===e||!a(i))&&((!1===n||-1===o.indexOf(i.stack)||void 0===n&&void 0===i.stack)&&o.push(i.stack),i.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const s=this._getStacks(t,i),n=void 0!==e?s.indexOf(e):-1;return-1===n?s.length-1:n}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,s=[];let n,o;for(n=0,o=e.data.length;n<o;++n)s.push(i.getPixelForValue(this.getParsed(n)[i.axis],n));const a=t.barThickness;return{min:a||Wi(e),pixels:s,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:i},options:{base:s,minBarLength:n}}=this,o=s||0,a=this.getParsed(t),r=a._custom,l=Zi(r);let h,c,d=a[e.axis],f=0,p=i?this.applyStack(e,a,i):d;p!==d&&(f=p-d,p=d),l&&(d=r.barStart,p=r.barEnd-r.barStart,0!==d&&j(d)!==j(r.barEnd)&&(f=0),f+=d);const g=u(s)||l?f:s;let m=e.getPixelForValue(g);if(h=this.chart.getDataVisibility(t)?e.getPixelForValue(f+p):m,c=h-m,Math.abs(c)<n){c=function(t,e,i){return 0!==t?j(t):(e.isHorizontal()?1:-1)*(e.min>=i?1:-1)}(c,e,o)*n,d===o&&(m-=c/2);const t=e.getPixelForDecimal(0),i=e.getPixelForDecimal(1),s=Math.min(t,i),a=Math.max(t,i);m=Math.max(Math.min(m,a),s),h=m+c}if(m===e.getPixelForValue(o)){const t=j(c)*e.getLineWidthForValue(o)/2;m+=t,c-=t}return{size:c,base:m,head:h,center:h+c/2}}_calculateBarIndexPixels(t,e){const i=e.scale,s=this.options,n=s.skipNull,o=b(s.maxBarThickness,1/0);let a,r;if(e.grouped){const i=n?this._getStackCount(t):e.stackCount,l="flex"===s.barThickness?function(t,e,i,s){const n=e.pixels,o=n[t];let a=t>0?n[t-1]:null,r=t<n.length-1?n[t+1]:null;const l=i.categoryPercentage;null===a&&(a=o-(null===r?e.end-e.start:r-o)),null===r&&(r=o+o-a);const h=o-(o-Math.min(a,r))/2*l;return{chunk:Math.abs(r-a)/2*l/s,ratio:i.barPercentage,start:h}}(t,e,s,i):function(t,e,i,s){const n=i.barThickness;let o,a;return u(n)?(o=e.min*i.categoryPercentage,a=i.barPercentage):(o=n*s,a=1),{chunk:o/s,ratio:a,start:e.pixels[t]-o/2}}(t,e,s,i),h=this._getStackIndex(this.index,this._cachedMeta.stack,n?t:void 0);a=l.start+l.chunk*h+l.chunk/2,r=Math.min(o,l.chunk*l.ratio)}else a=i.getPixelForValue(this.getParsed(t)[i.axis],t),r=Math.min(o,e.min*e.ratio);return{base:a-r/2,head:a+r/2,center:a,size:r}}draw(){const t=this._cachedMeta,e=t.vScale,i=t.data,s=i.length;let n=0;for(;n<s;++n)null!==this.getParsed(n)[e.axis]&&i[n].draw(this._ctx)}}Ki.id="bar",Ki.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},Ki.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class Gi extends Hi{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,i,s){const n=super.parsePrimitiveData(t,e,i,s);for(let t=0;t<n.length;t++)n[t]._custom=this.resolveDataElementOptions(t+i).radius;return n}parseArrayData(t,e,i,s){const n=super.parseArrayData(t,e,i,s);for(let t=0;t<n.length;t++){const s=e[i+t];n[t]._custom=b(s[2],this.resolveDataElementOptions(t+i).radius)}return n}parseObjectData(t,e,i,s){const n=super.parseObjectData(t,e,i,s);for(let t=0;t<n.length;t++){const s=e[i+t];n[t]._custom=b(s&&s.r&&+s.r,this.resolveDataElementOptions(t+i).radius)}return n}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let i=t.length-1;i>=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:i,yScale:s}=e,n=this.getParsed(t),o=i.getLabelForValue(n.x),a=s.getLabelForValue(n.y),r=n._custom;return{label:e.label,value:"("+o+", "+a+(r?", "+r:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,s){const n="reset"===s,{iScale:o,vScale:a}=this._cachedMeta,{sharedOptions:r,includeOptions:l}=this._getSharedOptions(e,s),h=o.axis,c=a.axis;for(let d=e;d<e+i;d++){const e=t[d],i=!n&&this.getParsed(d),u={},f=u[h]=n?o.getPixelForDecimal(.5):o.getPixelForValue(i[h]),p=u[c]=n?a.getBasePixel():a.getPixelForValue(i[c]);u.skip=isNaN(f)||isNaN(p),l&&(u.options=r||this.resolveDataElementOptions(d,e.active?"active":s),n&&(u.options.radius=0)),this.updateElement(e,d,u,s)}}resolveDataElementOptions(t,e){const i=this.getParsed(t);let s=super.resolveDataElementOptions(t,e);s.$shared&&(s=Object.assign({},s,{$shared:!1}));const n=s.radius;return"active"!==e&&(s.radius=0),s.radius+=b(i&&i._custom,n),s}}Gi.id="bubble",Gi.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},Gi.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class Ji extends Hi{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 i=this.getDataset().data,s=this._cachedMeta;if(!1===this._parsing)s._parsed=i;else{let n,o,a=t=>+i[t];if(p(i[t])){const{key:t="value"}=this._parsing;a=e=>+D(i[e],t)}for(n=t,o=t+e;n<o;++n)s._parsed[n]=a(n)}}_getRotation(){return X(this.options.rotation-90)}_getCircumference(){return X(this.options.circumference)}_getRotationExtents(){let t=R,e=-R;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)){const s=this.chart.getDatasetMeta(i).controller,n=s._getRotation(),o=s._getCircumference();t=Math.min(t,n),e=Math.max(e,n+o)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:i}=e,s=this._cachedMeta,n=s.data,o=this.getMaxBorderWidth()+this.getMaxOffset(n)+this.options.spacing,a=Math.max((Math.min(i.width,i.height)-o)/2,0),r=Math.min((h=a,"string"==typeof(l=this.options.cutout)&&l.endsWith("%")?parseFloat(l)/100:l/h),1);var l,h;const c=this._getRingWeight(this.index),{circumference:d,rotation:u}=this._getRotationExtents(),{ratioX:f,ratioY:p,offsetX:g,offsetY:m}=function(t,e,i){let s=1,n=1,o=0,a=0;if(e<R){const r=t,l=r+e,h=Math.cos(r),c=Math.sin(r),d=Math.cos(l),u=Math.sin(l),f=(t,e,s)=>et(t,r,l,!0)?1:Math.max(e,e*i,s,s*i),p=(t,e,s)=>et(t,r,l,!0)?-1:Math.min(e,e*i,s,s*i),g=f(0,h,d),m=f(N,c,u),b=p(z,h,d),x=p(z+N,c,u);s=(g-b)/2,n=(m-x)/2,o=-(g+b)/2,a=-(m+x)/2}return{ratioX:s,ratioY:n,offsetX:o,offsetY:a}}(u,d,r),b=(i.width-o)/f,y=(i.height-o)/p,_=Math.max(Math.min(b,y)/2,0),v=x(this.options.radius,_),w=(v-Math.max(v*r,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*v,this.offsetY=m*v,s.total=this.calculateTotal(),this.outerRadius=v-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*c,0),this.updateElements(n,0,n.length,t)}_circumference(t,e){const i=this.options,s=this._cachedMeta,n=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===s._parsed[t]||s.data[t].hidden?0:this.calculateCircumference(s._parsed[t]*n/R)}updateElements(t,e,i,s){const n="reset"===s,o=this.chart,a=o.chartArea,r=o.options.animation,l=(a.left+a.right)/2,h=(a.top+a.bottom)/2,c=n&&r.animateScale,d=c?0:this.innerRadius,u=c?0:this.outerRadius,{sharedOptions:f,includeOptions:p}=this._getSharedOptions(e,s);let g,m=this._getRotation();for(g=0;g<e;++g)m+=this._circumference(g,n);for(g=e;g<e+i;++g){const e=this._circumference(g,n),i=t[g],o={x:l+this.offsetX,y:h+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:u,innerRadius:d};p&&(o.options=f||this.resolveDataElementOptions(g,i.active?"active":s)),m+=e,this.updateElement(i,g,o,s)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let i,s=0;for(i=0;i<e.length;i++){const n=t._parsed[i];null===n||isNaN(n)||!this.chart.getDataVisibility(i)||e[i].hidden||(s+=Math.abs(n))}return s}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?R*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,s=i.data.labels||[],n=ui(e._parsed[t],i.options.locale);return{label:s[t]||"",value:n}}getMaxBorderWidth(t){let e=0;const i=this.chart;let s,n,o,a,r;if(!t)for(s=0,n=i.data.datasets.length;s<n;++s)if(i.isDatasetVisible(s)){o=i.getDatasetMeta(s),t=o.data,a=o.controller;break}if(!t)return 0;for(s=0,n=t.length;s<n;++s)r=a.resolveDataElementOptions(s),"inner"!==r.borderAlign&&(e=Math.max(e,r.borderWidth||0,r.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let i=0,s=t.length;i<s;++i){const t=this.resolveDataElementOptions(i);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e}_getRingWeight(t){return Math.max(b(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Ji.id="doughnut",Ji.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"},Ji.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},Ji.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map(((e,s)=>{const n=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const i=": "+t.formattedValue;return f(e)?(e=e.slice(),e[0]+=i):e+=i,e}}}}};class Qi extends Hi{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:s=[],_dataset:n}=e,o=this.chart._animationsDisabled;let{start:a,count:r}=pt(e,s,o);this._drawStart=a,this._drawCount=r,gt(e)&&(a=0,r=s.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!n._decimated,i.points=s;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(i,void 0,{animated:!o,options:l},t),this.updateElements(s,a,r,t)}updateElements(t,e,i,s){const n="reset"===s,{iScale:o,vScale:a,_stacked:r,_dataset:l}=this._cachedMeta,{sharedOptions:h,includeOptions:c}=this._getSharedOptions(e,s),d=o.axis,f=a.axis,{spanGaps:p,segment:g}=this.options,m=Z(p)?p:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||n||"none"===s;let x=e>0&&this.getParsed(e-1);for(let p=e;p<e+i;++p){const e=t[p],i=this.getParsed(p),y=b?e:{},_=u(i[f]),v=y[d]=o.getPixelForValue(i[d],p),w=y[f]=n||_?a.getBasePixel():a.getPixelForValue(r?this.applyStack(a,i,r):i[f],p);y.skip=isNaN(v)||isNaN(w)||_,y.stop=p>0&&Math.abs(i[d]-x[d])>m,g&&(y.parsed=i,y.raw=l.data[p]),c&&(y.options=h||this.resolveDataElementOptions(p,e.active?"active":s)),b||this.updateElement(e,p,y,s),x=i}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,s=t.data||[];if(!s.length)return i;const n=s[0].size(this.resolveDataElementOptions(0)),o=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,n,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Qi.id="line",Qi.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},Qi.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class ts extends Hi{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,s=i.data.labels||[],n=ui(e._parsed[t].r,i.options.locale);return{label:s[t]||"",value:n}}parseObjectData(t,e,i,s){return je.bind(this)(t,e,i,s)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach(((t,i)=>{const s=this.getParsed(i).r;!isNaN(s)&&this.chart.getDataVisibility(i)&&(s<e.min&&(e.min=s),s>e.max&&(e.max=s))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,s=Math.min(e.right-e.left,e.bottom-e.top),n=Math.max(s/2,0),o=(n-Math.max(i.cutoutPercentage?n/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=n-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,i,s){const n="reset"===s,o=this.chart,a=o.options.animation,r=this._cachedMeta.rScale,l=r.xCenter,h=r.yCenter,c=r.getIndexAngle(0)-.5*z;let d,u=c;const f=360/this.countVisibleElements();for(d=0;d<e;++d)u+=this._computeAngle(d,s,f);for(d=e;d<e+i;d++){const e=t[d];let i=u,p=u+this._computeAngle(d,s,f),g=o.getDataVisibility(d)?r.getDistanceFromCenterForValue(this.getParsed(d).r):0;u=p,n&&(a.animateScale&&(g=0),a.animateRotate&&(i=p=c));const m={x:l,y:h,innerRadius:0,outerRadius:g,startAngle:i,endAngle:p,options:this.resolveDataElementOptions(d,e.active?"active":s)};this.updateElement(e,d,m,s)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach(((t,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++})),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?X(this.resolveDataElementOptions(t,e).angle||i):0}}ts.id="polarArea",ts.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},ts.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map(((e,s)=>{const n=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.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 es extends Ji{}es.id="pie",es.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class is extends Hi{getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,s){return je.bind(this)(t,e,i,s)}update(t){const e=this._cachedMeta,i=e.dataset,s=e.data||[],n=e.iScale.getLabels();if(i.points=s,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:n.length===s.length,options:e};this.updateElement(i,void 0,o,t)}this.updateElements(s,0,s.length,t)}updateElements(t,e,i,s){const n=this._cachedMeta.rScale,o="reset"===s;for(let a=e;a<e+i;a++){const e=t[a],i=this.resolveDataElementOptions(a,e.active?"active":s),r=n.getPointPositionForValue(a,this.getParsed(a).r),l=o?n.xCenter:r.x,h=o?n.yCenter:r.y,c={x:l,y:h,angle:r.angle,skip:isNaN(l)||isNaN(h),options:i};this.updateElement(e,a,c,s)}}}is.id="radar",is.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},is.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class ss{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:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return Z(this.x)&&Z(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const s={};return t.forEach((t=>{s[t]=i[t]&&i[t].active()?i[t]._to:this[t]})),s}}ss.defaults={},ss.defaultRoutes=void 0;const ns={values:t=>f(t)?t:""+t,numeric(t,e,i){if(0===t)return"0";const s=this.chart.options.locale;let n,o=t;if(i.length>1){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(n="scientific"),o=function(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t)),i}(t,i)}const a=W(Math.abs(o)),r=Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:n,minimumFractionDigits:r,maximumFractionDigits:r};return Object.assign(l,this.options.ticks.format),ui(t,s,l)},logarithmic(t,e,i){if(0===t)return"0";const s=t/Math.pow(10,Math.floor(W(t)));return 1===s||2===s||5===s?ns.numeric.call(this,t,e,i):""}};var os={formatters:ns};function as(t,e,i,s,n){const o=b(s,0),a=Math.min(b(n,t.length),t.length);let r,l,h,c=0;for(i=Math.ceil(i),n&&(r=n-s,i=r/Math.floor(r/i)),h=o;h<0;)c++,h=Math.round(o+c*i);for(l=Math.max(o,0);l<a;l++)l===h&&(e.push(t[l]),c++,h=Math.round(o+c*i))}ne.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:os.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),ne.route("scale.ticks","color","","color"),ne.route("scale.grid","color","","borderColor"),ne.route("scale.grid","borderColor","","borderColor"),ne.route("scale.title","color","","color"),ne.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),ne.describe("scales",{_fallback:"scale"}),ne.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const rs=t=>"left"===t?"right":"right"===t?"left":t,ls=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i;function hs(t,e){const i=[],s=t.length/e,n=t.length;let o=0;for(;o<n;o+=s)i.push(t[Math.floor(o)]);return i}function cs(t,e,i){const s=t.ticks.length,n=Math.min(e,s-1),o=t._startPixel,a=t._endPixel,r=1e-6;let l,h=t.getPixelForTick(n);if(!(i&&(l=1===s?Math.max(h-o,a-h):0===e?(t.getPixelForTick(1)-h)/2:(h-t.getPixelForTick(n-1))/2,h+=n<e?l:-l,h<o-r||h>a+r)))return h}function ds(t){return t.drawTicks?t.tickLength:0}function us(t,e){if(!t.display)return 0;const i=Ee(t.font,e),s=Se(t.padding);return(f(t.text)?t.text.length:1)*i.lineHeight+s.height}function fs(t,e,i){let s=ut(t);return(i&&"right"!==e||!i&&"right"===e)&&(s=rs(s)),s}class ps extends ss{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:i,_suggestedMax:s}=this;return t=m(t,Number.POSITIVE_INFINITY),e=m(e,Number.NEGATIVE_INFINITY),i=m(i,Number.POSITIVE_INFINITY),s=m(s,Number.NEGATIVE_INFINITY),{min:m(t,i),max:m(e,s),minDefined:g(t),maxDefined:g(e)}}getMinMax(t){let e,{min:i,max:s,minDefined:n,maxDefined:o}=this.getUserBounds();if(n&&o)return{min:i,max:s};const a=this.getMatchingVisibleMetas();for(let r=0,l=a.length;r<l;++r)e=a[r].controller.getMinMax(this,t),n||(i=Math.min(i,e.min)),o||(s=Math.max(s,e.max));return i=o&&i>s?s:i,s=n&&i>s?i:s,{min:m(i,m(s,i)),max:m(s,m(i,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(){y(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:s,grace:n,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,i){const{min:s,max:n}=t,o=x(e,(n-s)/2),a=(t,e)=>i&&0===t?0:t+e;return{min:a(s,-Math.abs(o)),max:a(n,o)}}(this,n,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const r=a<this.ticks.length;this._convertTicksToLabels(r?hs(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=function(t,e){const i=t.options.ticks,s=i.maxTicksLimit||function(t){const e=t.options.offset,i=t._tickSize(),s=t._length/i+(e?0:1),n=t._maxLength/i;return Math.floor(Math.min(s,n))}(t),n=i.major.enabled?function(t){const e=[];let i,s;for(i=0,s=t.length;i<s;i++)t[i].major&&e.push(i);return e}(e):[],o=n.length,a=n[0],r=n[o-1],l=[];if(o>s)return function(t,e,i,s){let n,o=0,a=i[0];for(s=Math.ceil(s),n=0;n<t.length;n++)n===a&&(e.push(t[n]),o++,a=i[o*s])}(e,l,n,o/s),l;const h=function(t,e,i){const s=function(t){const e=t.length;let i,s;if(e<2)return!1;for(s=t[0],i=1;i<e;++i)if(t[i]-t[i-1]!==s)return!1;return s}(t),n=e.length/i;if(!s)return Math.max(n,1);const o=function(t){const e=[],i=Math.sqrt(t);let s;for(s=1;s<i;s++)t%s==0&&(e.push(s),e.push(t/s));return i===(0|i)&&e.push(i),e.sort(((t,e)=>t-e)).pop(),e}(s);for(let t=0,e=o.length-1;t<e;t++){const e=o[t];if(e>n)return e}return Math.max(n,1)}(n,e,s);if(o>0){let t,i;const s=o>1?Math.round((r-a)/(o-1)):null;for(as(e,l,h,u(s)?0:a-s,a),t=0,i=o-1;t<i;t++)as(e,l,h,n[t],n[t+1]);return as(e,l,h,r,u(s)?e.length:r+s),l}return as(e,l,h),l}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),r&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,i=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,i=!i),this._startPixel=t,this._endPixel=e,this._reversePixels=i,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){y(this.options.afterUpdate,[this])}beforeSetDimensions(){y(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(){y(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),y(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){y(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let i,s,n;for(i=0,s=t.length;i<s;i++)n=t[i],n.label=y(e.callback,[n.value,i,t],this)}afterTickToLabelConversion(){y(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){y(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,i=this.ticks.length,s=e.minRotation||0,n=e.maxRotation;let o,a,r,l=s;if(!this._isVisible()||!e.display||s>=n||i<=1||!this.isHorizontal())return void(this.labelRotation=s);const h=this._getLabelSizes(),c=h.widest.width,d=h.highest.height,u=it(this.chart.width-c,0,this.maxWidth);o=t.offset?this.maxWidth/i:u/(i-1),c+6>o&&(o=u/(i-(t.offset?.5:1)),a=this.maxHeight-ds(t.grid)-e.padding-us(t.title,this.chart.options.font),r=Math.sqrt(c*c+d*d),l=q(Math.min(Math.asin(it((h.highest.height+6)/o,-1,1)),Math.asin(it(a/r,-1,1))-Math.asin(it(d/r,-1,1)))),l=Math.max(s,Math.min(n,l))),this.labelRotation=l}afterCalculateLabelRotation(){y(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){y(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:s,grid:n}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const o=us(s,e.options.font);if(a?(t.width=this.maxWidth,t.height=ds(n)+o):(t.height=this.maxHeight,t.width=ds(n)+o),i.display&&this.ticks.length){const{first:e,last:s,widest:n,highest:o}=this._getLabelSizes(),r=2*i.padding,l=X(this.labelRotation),h=Math.cos(l),c=Math.sin(l);if(a){const e=i.mirror?0:c*n.width+h*o.height;t.height=Math.min(this.maxHeight,t.height+e+r)}else{const e=i.mirror?0:h*n.width+c*o.height;t.width=Math.min(this.maxWidth,t.width+e+r)}this._calculatePadding(e,s,c,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,i,s){const{ticks:{align:n,padding:o},position:a}=this.options,r=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let c=0,d=0;r?l?(c=s*t.width,d=i*e.height):(c=i*t.height,d=s*e.width):"start"===n?d=e.width:"end"===n?c=t.width:"inner"!==n&&(c=t.width/2,d=e.width/2),this.paddingLeft=Math.max((c-a+o)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-h+o)*this.width/(this.width-h),0)}else{let i=e.height/2,s=t.height/2;"start"===n?(i=0,s=t.height):"end"===n&&(i=e.height,s=0),this.paddingTop=i+o,this.paddingBottom=s+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(){y(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,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e<i;e++)u(t[e].label)&&(t.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let i=this.ticks;e<i.length&&(i=hs(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length)}return t}_computeLabelSizes(t,e){const{ctx:i,_longestTextCache:s}=this,n=[],o=[];let a,r,l,h,c,d,p,g,m,b,x,y=0,v=0;for(a=0;a<e;++a){if(h=t[a].label,c=this._resolveTickFontOptions(a),i.font=d=c.string,p=s[d]=s[d]||{data:{},gc:[]},g=c.lineHeight,m=b=0,u(h)||f(h)){if(f(h))for(r=0,l=h.length;r<l;++r)x=h[r],u(x)||f(x)||(m=oe(i,p.data,p.gc,m,x),b+=g)}else m=oe(i,p.data,p.gc,m,h),b=g;n.push(m),o.push(b),y=Math.max(m,y),v=Math.max(b,v)}!function(t,e){_(t,(t=>{const i=t.gc,s=i.length/2;let n;if(s>e){for(n=0;n<s;++n)delete t.data[i[n]];i.splice(0,s)}}))}(s,e);const w=n.indexOf(y),k=o.indexOf(v),C=t=>({width:n[t]||0,height:o[t]||0});return{first:C(0),last:C(e-1),widest:C(w),highest:C(k),widths:n,heights:o}}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 it(this._alignToPixels?re(this.chart,e,0):e,-32768,32767)}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 i=e[t];return i.$context||(i.$context=function(t,e,i){return De(t,{tick:i,index:e,type:"tick"})}(this.getContext(),t,i))}return this.$context||(this.$context=De(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=X(this.labelRotation),i=Math.abs(Math.cos(e)),s=Math.abs(Math.sin(e)),n=this._getLabelSizes(),o=t.autoSkipPadding||0,a=n?n.widest.width+o:0,r=n?n.highest.height+o:0;return this.isHorizontal()?r*i>a*s?a/i:r/s:r*s<a*i?r/i:a/s}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,i=this.chart,s=this.options,{grid:n,position:o}=s,a=n.offset,r=this.isHorizontal(),l=this.ticks.length+(a?1:0),h=ds(n),c=[],d=n.setContext(this.getContext()),u=d.drawBorder?d.borderWidth:0,f=u/2,g=function(t){return re(i,t,u)};let m,x,y,_,v,w,k,C,M,S,E,L;if("top"===o)m=g(this.bottom),w=this.bottom-h,C=m-f,S=g(t.top)+f,L=t.bottom;else if("bottom"===o)m=g(this.top),S=t.top,L=g(t.bottom)-f,w=m+f,C=this.top+h;else if("left"===o)m=g(this.right),v=this.right-h,k=m-f,M=g(t.left)+f,E=t.right;else if("right"===o)m=g(this.left),M=t.left,E=g(t.right)-f,v=m+f,k=this.left+h;else if("x"===e){if("center"===o)m=g((t.top+t.bottom)/2+.5);else if(p(o)){const t=Object.keys(o)[0],e=o[t];m=g(this.chart.scales[t].getPixelForValue(e))}S=t.top,L=t.bottom,w=m+f,C=w+h}else if("y"===e){if("center"===o)m=g((t.left+t.right)/2);else if(p(o)){const t=Object.keys(o)[0],e=o[t];m=g(this.chart.scales[t].getPixelForValue(e))}v=m-f,k=v-h,M=t.left,E=t.right}const D=b(s.ticks.maxTicksLimit,l),P=Math.max(1,Math.ceil(l/D));for(x=0;x<l;x+=P){const t=n.setContext(this.getContext(x)),e=t.lineWidth,s=t.color,o=t.borderDash||[],l=t.borderDashOffset,h=t.tickWidth,d=t.tickColor,u=t.tickBorderDash||[],f=t.tickBorderDashOffset;y=cs(this,x,a),void 0!==y&&(_=re(i,y,e),r?v=k=M=E=_:w=C=S=L=_,c.push({tx1:v,ty1:w,tx2:k,ty2:C,x1:M,y1:S,x2:E,y2:L,width:e,color:s,borderDash:o,borderDashOffset:l,tickWidth:h,tickColor:d,tickBorderDash:u,tickBorderDashOffset:f}))}return this._ticksLength=l,this._borderValue=m,c}_computeLabelItems(t){const e=this.axis,i=this.options,{position:s,ticks:n}=i,o=this.isHorizontal(),a=this.ticks,{align:r,crossAlign:l,padding:h,mirror:c}=n,d=ds(i.grid),u=d+h,g=c?-h:u,m=-X(this.labelRotation),b=[];let x,y,_,v,w,k,C,M,S,E,L,D,P="middle";if("top"===s)k=this.bottom-g,C=this._getXAxisLabelAlignment();else if("bottom"===s)k=this.top+g,C=this._getXAxisLabelAlignment();else if("left"===s){const t=this._getYAxisLabelAlignment(d);C=t.textAlign,w=t.x}else if("right"===s){const t=this._getYAxisLabelAlignment(d);C=t.textAlign,w=t.x}else if("x"===e){if("center"===s)k=(t.top+t.bottom)/2+u;else if(p(s)){const t=Object.keys(s)[0],e=s[t];k=this.chart.scales[t].getPixelForValue(e)+u}C=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===s)w=(t.left+t.right)/2-u;else if(p(s)){const t=Object.keys(s)[0],e=s[t];w=this.chart.scales[t].getPixelForValue(e)}C=this._getYAxisLabelAlignment(d).textAlign}"y"===e&&("start"===r?P="top":"end"===r&&(P="bottom"));const O=this._getLabelSizes();for(x=0,y=a.length;x<y;++x){_=a[x],v=_.label;const t=n.setContext(this.getContext(x));M=this.getPixelForTick(x)+n.labelOffset,S=this._resolveTickFontOptions(x),E=S.lineHeight,L=f(v)?v.length:1;const e=L/2,i=t.color,r=t.textStrokeColor,h=t.textStrokeWidth;let d,u=C;if(o?(w=M,"inner"===C&&(u=x===y-1?this.options.reverse?"left":"right":0===x?this.options.reverse?"right":"left":"center"),D="top"===s?"near"===l||0!==m?-L*E+E/2:"center"===l?-O.highest.height/2-e*E+E:-O.highest.height+E/2:"near"===l||0!==m?E/2:"center"===l?O.highest.height/2-e*E:O.highest.height-L*E,c&&(D*=-1)):(k=M,D=(1-L)*E/2),t.showLabelBackdrop){const e=Se(t.backdropPadding),i=O.heights[x],s=O.widths[x];let n=k+D-e.top,o=w-e.left;switch(P){case"middle":n-=i/2;break;case"bottom":n-=i}switch(C){case"center":o-=s/2;break;case"right":o-=s}d={left:o,top:n,width:s+e.width,height:i+e.height,color:t.backdropColor}}b.push({rotation:m,label:v,font:S,color:i,strokeColor:r,strokeWidth:h,textOffset:D,textAlign:u,textBaseline:P,translation:[w,k],backdrop:d})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-X(this.labelRotation))return"top"===t?"left":"right";let i="center";return"start"===e.align?i="left":"end"===e.align?i="right":"inner"===e.align&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:i,mirror:s,padding:n}}=this.options,o=t+n,a=this._getLabelSizes().widest.width;let r,l;return"left"===e?s?(l=this.right+n,"near"===i?r="left":"center"===i?(r="center",l+=a/2):(r="right",l+=a)):(l=this.right-o,"near"===i?r="right":"center"===i?(r="center",l-=a/2):(r="left",l=this.left)):"right"===e?s?(l=this.left+n,"near"===i?r="right":"center"===i?(r="center",l-=a/2):(r="left",l-=a)):(l=this.left+o,"near"===i?r="left":"center"===i?(r="center",l+=a/2):(r="right",l=this.right)):r="right",{textAlign:r,x:l}}_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:i,top:s,width:n,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,s,n,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const i=this.ticks.findIndex((e=>e.value===t));return i>=0?e.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const e=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let n,o;const a=(t,e,s)=>{s.width&&s.color&&(i.save(),i.lineWidth=s.width,i.strokeStyle=s.color,i.setLineDash(s.borderDash||[]),i.lineDashOffset=s.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(n=0,o=s.length;n<o;++n){const t=s[n];e.drawOnChartArea&&a({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&a({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:i}}=this,s=i.setContext(this.getContext()),n=i.drawBorder?s.borderWidth:0;if(!n)return;const o=i.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let r,l,h,c;this.isHorizontal()?(r=re(t,this.left,n)-n/2,l=re(t,this.right,o)+o/2,h=c=a):(h=re(t,this.top,n)-n/2,c=re(t,this.bottom,o)+o/2,r=l=a),e.save(),e.lineWidth=s.borderWidth,e.strokeStyle=s.borderColor,e.beginPath(),e.moveTo(r,h),e.lineTo(l,c),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,i=this._computeLabelArea();i&&ue(e,i);const s=this._labelItems||(this._labelItems=this._computeLabelItems(t));let n,o;for(n=0,o=s.length;n<o;++n){const t=s[n],i=t.font,o=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height)),me(e,o,0,t.textOffset,i,t)}i&&fe(e)}drawTitle(){const{ctx:t,options:{position:e,title:i,reverse:s}}=this;if(!i.display)return;const n=Ee(i.font),o=Se(i.padding),a=i.align;let r=n.lineHeight/2;"bottom"===e||"center"===e||p(e)?(r+=o.bottom,f(i.text)&&(r+=n.lineHeight*(i.text.length-1))):r+=o.top;const{titleX:l,titleY:h,maxWidth:c,rotation:d}=function(t,e,i,s){const{top:n,left:o,bottom:a,right:r,chart:l}=t,{chartArea:h,scales:c}=l;let d,u,f,g=0;const m=a-n,b=r-o;if(t.isHorizontal()){if(u=ft(s,o,r),p(i)){const t=Object.keys(i)[0],s=i[t];f=c[t].getPixelForValue(s)+m-e}else f="center"===i?(h.bottom+h.top)/2+m-e:ls(t,i,e);d=r-o}else{if(p(i)){const t=Object.keys(i)[0],s=i[t];u=c[t].getPixelForValue(s)-b+e}else u="center"===i?(h.left+h.right)/2-b+e:ls(t,i,e);f=ft(s,a,n),g="left"===i?-N:N}return{titleX:u,titleY:f,maxWidth:d,rotation:g}}(this,r,e,a);me(t,i.text,0,0,n,{color:i.color,maxWidth:c,rotation:d,textAlign:fs(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,i=b(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===ps.prototype.draw?[{z:i,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i+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(),i=this.axis+"AxisID",s=[];let n,o;for(n=0,o=e.length;n<o;++n){const o=e[n];o[i]!==this.id||t&&o.type!==t||s.push(o)}return s}_resolveTickFontOptions(t){return Ee(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class gs{constructor(t,e,i){this.type=t,this.scope=e,this.override=i,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 i;(function(t){return"id"in t&&"defaults"in t})(e)&&(i=this.register(e));const s=this.items,n=t.id,o=this.scope+"."+n;if(!n)throw new Error("class does not have id: "+t);return n in s||(s[n]=t,function(t,e,i){const s=M(Object.create(null),[i?ne.get(i):{},ne.get(e),t.defaults]);ne.set(e,s),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((i=>{const s=i.split("."),n=s.pop(),o=[t].concat(s).join("."),a=e[i].split("."),r=a.pop(),l=a.join(".");ne.route(o,n,l,r)}))}(e,t.defaultRoutes),t.descriptors&&ne.describe(e,t.descriptors)}(t,o,i),this.override&&ne.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,s=this.scope;i in e&&delete e[i],s&&i in ne[s]&&(delete ne[s][i],this.override&&delete te[i])}}var ms=new class{constructor(){this.controllers=new gs(Hi,"datasets",!0),this.elements=new gs(ss,"elements"),this.plugins=new gs(Object,"plugins"),this.scales=new gs(ps,"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,i){[...e].forEach((e=>{const s=i||this._getRegistryForType(e);i||s.isForType(e)||s===this.plugins&&e.id?this._exec(t,s,e):_(e,(e=>{const s=i||this._getRegistryForType(e);this._exec(t,s,e)}))}))}_exec(t,e,i){const s=P(t);y(i["before"+s],[],i),e[t](i),y(i["after"+s],[],i)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const i=this._typedRegistries[e];if(i.isForType(t))return i}return this.plugins}_get(t,e,i){const s=e.get(t);if(void 0===s)throw new Error('"'+t+'" is not a registered '+i+".");return s}};class bs extends Hi{update(t){const e=this._cachedMeta,{data:i=[]}=e,s=this.chart._animationsDisabled;let{start:n,count:o}=pt(e,i,s);if(this._drawStart=n,this._drawCount=o,gt(e)&&(n=0,o=i.length),this.options.showLine){const{dataset:n,_dataset:o}=e;n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=i;const a=this.resolveDatasetElementOptions(t);a.segment=this.options.segment,this.updateElement(n,void 0,{animated:!s,options:a},t)}this.updateElements(i,n,o,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=ms.getElement("line")),super.addElements()}updateElements(t,e,i,s){const n="reset"===s,{iScale:o,vScale:a,_stacked:r,_dataset:l}=this._cachedMeta,h=this.resolveDataElementOptions(e,s),c=this.getSharedOptions(h),d=this.includeOptions(s,c),f=o.axis,p=a.axis,{spanGaps:g,segment:m}=this.options,b=Z(g)?g:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||n||"none"===s;let y=e>0&&this.getParsed(e-1);for(let h=e;h<e+i;++h){const e=t[h],i=this.getParsed(h),g=x?e:{},_=u(i[p]),v=g[f]=o.getPixelForValue(i[f],h),w=g[p]=n||_?a.getBasePixel():a.getPixelForValue(r?this.applyStack(a,i,r):i[p],h);g.skip=isNaN(v)||isNaN(w)||_,g.stop=h>0&&Math.abs(i[f]-y[f])>b,m&&(g.parsed=i,g.raw=l.data[h]),d&&(g.options=c||this.resolveDataElementOptions(h,e.active?"active":s)),x||this.updateElement(e,h,g,s),y=i}this.updateSharedOptions(c,s,h)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let i=e.length-1;i>=0;--i)t=Math.max(t,e[i].size(this.resolveDataElementOptions(i))/2);return t>0&&t}const i=t.dataset,s=i.options&&i.options.borderWidth||0;if(!e.length)return s;const n=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(s,n,o)/2}}bs.id="scatter",bs.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},bs.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var xs=Object.freeze({__proto__:null,BarController:Ki,BubbleController:Gi,DoughnutController:Ji,LineController:Qi,PolarAreaController:ts,PieController:es,RadarController:is,ScatterController:bs});function ys(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class _s{constructor(t){this.options=t||{}}init(t){}formats(){return ys()}parse(t,e){return ys()}format(t,e){return ys()}add(t,e,i){return ys()}diff(t,e,i){return ys()}startOf(t,e,i){return ys()}endOf(t,e){return ys()}}_s.override=function(t){Object.assign(_s.prototype,t)};var vs={_date:_s};function ws(t,e,i,s){const{controller:n,data:o,_sorted:a}=t,r=n._cachedMeta.iScale;if(r&&e===r.axis&&"r"!==e&&a&&o.length){const t=r._reversePixels?at:ot;if(!s)return t(o,e,i);if(n._sharedOptions){const s=o[0],n="function"==typeof s.getRange&&s.getRange(e);if(n){const s=t(o,e,i-n),a=t(o,e,i+n);return{lo:s.lo,hi:a.hi}}}}return{lo:0,hi:o.length-1}}function ks(t,e,i,s,n){const o=t.getSortedVisibleDatasetMetas(),a=i[e];for(let t=0,i=o.length;t<i;++t){const{index:i,data:r}=o[t],{lo:l,hi:h}=ws(o[t],e,a,n);for(let t=l;t<=h;++t){const e=r[t];e.skip||s(e,i,t)}}}function Cs(t,e,i,s,n){const o=[];return n||t.isPointInArea(e)?(ks(t,i,e,(function(i,a,r){(n||de(i,t.chartArea,0))&&i.inRange(e.x,e.y,s)&&o.push({element:i,datasetIndex:a,index:r})}),!0),o):o}function Ms(t,e,i,s,n,o){return o||t.isPointInArea(e)?"r"!==i||s?function(t,e,i,s,n,o){let a=[];const r=function(t){const e=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,s){const n=e?Math.abs(t.x-s.x):0,o=i?Math.abs(t.y-s.y):0;return Math.sqrt(Math.pow(n,2)+Math.pow(o,2))}}(i);let l=Number.POSITIVE_INFINITY;return ks(t,i,e,(function(i,h,c){const d=i.inRange(e.x,e.y,n);if(s&&!d)return;const u=i.getCenterPoint(n);if(!o&&!t.isPointInArea(u)&&!d)return;const f=r(e,u);f<l?(a=[{element:i,datasetIndex:h,index:c}],l=f):f===l&&a.push({element:i,datasetIndex:h,index:c})})),a}(t,e,i,s,n,o):function(t,e,i,s){let n=[];return ks(t,i,e,(function(t,i,o){const{startAngle:a,endAngle:r}=t.getProps(["startAngle","endAngle"],s),{angle:l}=G(t,{x:e.x,y:e.y});et(l,a,r)&&n.push({element:t,datasetIndex:i,index:o})})),n}(t,e,i,n):[]}function Ss(t,e,i,s,n){const o=[],a="x"===i?"inXRange":"inYRange";let r=!1;return ks(t,i,e,((t,s,l)=>{t[a](e[i],n)&&(o.push({element:t,datasetIndex:s,index:l}),r=r||t.inRange(e.x,e.y,n))})),s&&!r?[]:o}var Es={evaluateInteractionItems:ks,modes:{index(t,e,i,s){const n=si(e,t),o=i.axis||"x",a=i.includeInvisible||!1,r=i.intersect?Cs(t,n,o,s,a):Ms(t,n,o,!1,s,a),l=[];return r.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=r[0].index,i=t.data[e];i&&!i.skip&&l.push({element:i,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,i,s){const n=si(e,t),o=i.axis||"xy",a=i.includeInvisible||!1;let r=i.intersect?Cs(t,n,o,s,a):Ms(t,n,o,!1,s,a);if(r.length>0){const e=r[0].datasetIndex,i=t.getDatasetMeta(e).data;r=[];for(let t=0;t<i.length;++t)r.push({element:i[t],datasetIndex:e,index:t})}return r},point:(t,e,i,s)=>Cs(t,si(e,t),i.axis||"xy",s,i.includeInvisible||!1),nearest(t,e,i,s){const n=si(e,t),o=i.axis||"xy",a=i.includeInvisible||!1;return Ms(t,n,o,i.intersect,s,a)},x:(t,e,i,s)=>Ss(t,si(e,t),"x",i.intersect,s),y:(t,e,i,s)=>Ss(t,si(e,t),"y",i.intersect,s)}};const Ls=["left","top","right","bottom"];function Ds(t,e){return t.filter((t=>t.pos===e))}function Ps(t,e){return t.filter((t=>-1===Ls.indexOf(t.pos)&&t.box.axis===e))}function Os(t,e){return t.sort(((t,i)=>{const s=e?i:t,n=e?t:i;return s.weight===n.weight?s.index-n.index:s.weight-n.weight}))}function Ts(t,e,i,s){return Math.max(t[i],e[i])+Math.max(t[s],e[s])}function As(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 zs(t,e,i,s){const{pos:n,box:o}=i,a=t.maxPadding;if(!p(n)){i.size&&(t[n]-=i.size);const e=s[i.stack]||{size:0,count:1};e.size=Math.max(e.size,i.horizontal?o.height:o.width),i.size=e.size/e.count,t[n]+=i.size}o.getPadding&&As(a,o.getPadding());const r=Math.max(0,e.outerWidth-Ts(a,t,"left","right")),l=Math.max(0,e.outerHeight-Ts(a,t,"top","bottom")),h=r!==t.w,c=l!==t.h;return t.w=r,t.h=l,i.horizontal?{same:h,other:c}:{same:c,other:h}}function Rs(t,e){const i=e.maxPadding;return function(t){const s={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{s[t]=Math.max(e[t],i[t])})),s}(t?["left","right"]:["top","bottom"])}function Is(t,e,i,s){const n=[];let o,a,r,l,h,c;for(o=0,a=t.length,h=0;o<a;++o){r=t[o],l=r.box,l.update(r.width||e.w,r.height||e.h,Rs(r.horizontal,e));const{same:a,other:d}=zs(e,i,r,s);h|=a&&n.length,c=c||d,l.fullSize||n.push(r)}return h&&Is(n,e,i,s)||c}function Fs(t,e,i,s,n){t.top=i,t.left=e,t.right=e+s,t.bottom=i+n,t.width=s,t.height=n}function Vs(t,e,i,s){const n=i.padding;let{x:o,y:a}=e;for(const r of t){const t=r.box,l=s[r.stack]||{count:1,placed:0,weight:1},h=r.stackWeight/l.weight||1;if(r.horizontal){const s=e.w*h,o=l.size||t.height;O(l.start)&&(a=l.start),t.fullSize?Fs(t,n.left,a,i.outerWidth-n.right-n.left,o):Fs(t,e.left+l.placed,a,s,o),l.start=a,l.placed+=s,a=t.bottom}else{const s=e.h*h,a=l.size||t.width;O(l.start)&&(o=l.start),t.fullSize?Fs(t,o,n.top,a,i.outerHeight-n.bottom-n.top):Fs(t,o,e.top+l.placed,a,s),l.start=o,l.placed+=s,o=t.right}}e.x=o,e.y=a}ne.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Ns={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 i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure(t,e,i){e.fullSize=i.fullSize,e.position=i.position,e.weight=i.weight},update(t,e,i,s){if(!t)return;const n=Se(t.options.layout.padding),o=Math.max(e-n.width,0),a=Math.max(i-n.height,0),r=function(t){const e=function(t){const e=[];let i,s,n,o,a,r;for(i=0,s=(t||[]).length;i<s;++i)n=t[i],({position:o,options:{stack:a,stackWeight:r=1}}=n),e.push({index:i,box:n,pos:o,horizontal:n.isHorizontal(),weight:n.weight,stack:a&&o+a,stackWeight:r});return e}(t),i=Os(e.filter((t=>t.box.fullSize)),!0),s=Os(Ds(e,"left"),!0),n=Os(Ds(e,"right")),o=Os(Ds(e,"top"),!0),a=Os(Ds(e,"bottom")),r=Ps(e,"x"),l=Ps(e,"y");return{fullSize:i,leftAndTop:s.concat(o),rightAndBottom:n.concat(l).concat(a).concat(r),chartArea:Ds(e,"chartArea"),vertical:s.concat(n).concat(l),horizontal:o.concat(a).concat(r)}}(t.boxes),l=r.vertical,h=r.horizontal;_(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const c=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,d=Object.freeze({outerWidth:e,outerHeight:i,padding:n,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/c,hBoxMaxHeight:a/2}),u=Object.assign({},n);As(u,Se(s));const f=Object.assign({maxPadding:u,w:o,h:a,x:n.left,y:n.top},n),p=function(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:s,stackWeight:n}=i;if(!t||!Ls.includes(s))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=n}return e}(t),{vBoxMaxWidth:s,hBoxMaxHeight:n}=e;let o,a,r;for(o=0,a=t.length;o<a;++o){r=t[o];const{fullSize:a}=r.box,l=i[r.stack],h=l&&r.stackWeight/l.weight;r.horizontal?(r.width=h?h*s:a&&e.availableWidth,r.height=n):(r.width=s,r.height=h?h*n:a&&e.availableHeight)}return i}(l.concat(h),d);Is(r.fullSize,f,d,p),Is(l,f,d,p),Is(h,f,d,p)&&Is(l,f,d,p),function(t){const e=t.maxPadding;function i(i){const s=Math.max(e[i]-t[i],0);return t[i]+=s,s}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(f),Vs(r.leftAndTop,f,d,p),f.x+=f.w,f.y+=f.h,Vs(r.rightAndBottom,f,d,p),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},_(r.chartArea,(e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})}))}};class Bs{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,s){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,s?Math.floor(e/s):i)}}isAttached(t){return!0}updateConfig(t){}}class Hs extends Bs{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Ws="$chartjs",js={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},$s=t=>null===t||""===t,Zs=!!ai&&{passive:!0};function Ys(t,e,i){t.canvas.removeEventListener(e,i,Zs)}function Us(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function Xs(t,e,i){const s=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||Us(i.addedNodes,s),e=e&&!Us(i.removedNodes,s);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}function qs(t,e,i){const s=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||Us(i.removedNodes,s),e=e&&!Us(i.addedNodes,s);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}const Ks=new Map;let Gs=0;function Js(){const t=window.devicePixelRatio;t!==Gs&&(Gs=t,Ks.forEach(((e,i)=>{i.currentDevicePixelRatio!==t&&e()})))}function Qs(t,e,i){const s=t.canvas,n=s&&Ge(s);if(!n)return;const o=dt(((t,e)=>{const s=n.clientWidth;i(t,e),s<n.clientWidth&&i()}),window),a=new ResizeObserver((t=>{const e=t[0],i=e.contentRect.width,s=e.contentRect.height;0===i&&0===s||o(i,s)}));return a.observe(n),function(t,e){Ks.size||window.addEventListener("resize",Js),Ks.set(t,e)}(t,o),a}function tn(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){Ks.delete(t),Ks.size||window.removeEventListener("resize",Js)}(t)}function en(t,e,i){const s=t.canvas,n=dt((e=>{null!==t.ctx&&i(function(t,e){const i=js[t.type]||t.type,{x:s,y:n}=si(t,e);return{type:i,chart:e,native:t,x:void 0!==s?s:null,y:void 0!==n?n:null}}(e,t))}),t,(t=>{const e=t[0];return[e,e.offsetX,e.offsetY]}));return function(t,e,i){t.addEventListener(e,i,Zs)}(s,e,n),n}class sn extends Bs{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,s=t.getAttribute("height"),n=t.getAttribute("width");if(t[Ws]={initial:{height:s,width:n,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",$s(n)){const e=ri(t,"width");void 0!==e&&(t.width=e)}if($s(s))if(""===t.style.height)t.height=t.width/(e||2);else{const e=ri(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[Ws])return!1;const i=e[Ws].initial;["height","width"].forEach((t=>{const s=i[t];u(s)?e.removeAttribute(t):e.setAttribute(t,s)}));const s=i.style||{};return Object.keys(s).forEach((t=>{e.style[t]=s[t]})),e.width=e.width,delete e[Ws],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const s=t.$proxies||(t.$proxies={}),n={attach:Xs,detach:qs,resize:Qs}[e]||en;s[e]=n(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),s=i[e];s&&(({attach:tn,detach:tn,resize:tn}[e]||Ys)(t,e,s),i[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,s){return function(t,e,i,s){const n=Qe(t),o=ei(n,"margin"),a=Je(n.maxWidth,t,"clientWidth")||F,r=Je(n.maxHeight,t,"clientHeight")||F,l=function(t,e,i){let s,n;if(void 0===e||void 0===i){const o=Ge(t);if(o){const t=o.getBoundingClientRect(),a=Qe(o),r=ei(a,"border","width"),l=ei(a,"padding");e=t.width-l.width-r.width,i=t.height-l.height-r.height,s=Je(a.maxWidth,o,"clientWidth"),n=Je(a.maxHeight,o,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:s||F,maxHeight:n||F}}(t,e,i);let{width:h,height:c}=l;if("content-box"===n.boxSizing){const t=ei(n,"border","width"),e=ei(n,"padding");h-=e.width+t.width,c-=e.height+t.height}return h=Math.max(0,h-o.width),c=Math.max(0,s?Math.floor(h/s):c-o.height),h=ni(Math.min(h,a,l.maxWidth)),c=ni(Math.min(c,r,l.maxHeight)),h&&!c&&(c=ni(h/2)),{width:h,height:c}}(t,e,i,s)}isAttached(t){const e=Ge(t);return!(!e||!e.isConnected)}}class nn{constructor(){this._init=[]}notify(t,e,i,s){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const n=s?this._descriptors(t).filter(s):this._descriptors(t),o=this._notify(n,t,e,i);return"afterDestroy"===e&&(this._notify(n,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,i,s){s=s||{};for(const n of t){const t=n.plugin;if(!1===y(t[i],[e,s,n.options],t)&&s.cancelable)return!1}return!0}invalidate(){u(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 i=t&&t.config,s=b(i.options&&i.options.plugins,{}),n=function(t){const e={},i=[],s=Object.keys(ms.plugins.items);for(let t=0;t<s.length;t++)i.push(ms.getPlugin(s[t]));const n=t.plugins||[];for(let t=0;t<n.length;t++){const s=n[t];-1===i.indexOf(s)&&(i.push(s),e[s.id]=!0)}return{plugins:i,localIds:e}}(i);return!1!==s||e?function(t,{plugins:e,localIds:i},s,n){const o=[],a=t.getContext();for(const r of e){const e=r.id,l=on(s[e],n);null!==l&&o.push({plugin:r,options:an(t.config,{plugin:r,local:i[e]},l,a)})}return o}(t,n,s,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],i=this._cache,s=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(s(e,i),t,"stop"),this._notify(s(i,e),t,"start")}}function on(t,e){return e||!1!==t?!0===t?{}:t:null}function an(t,{plugin:e,local:i},s,n){const o=t.pluginScopeKeys(e),a=t.getOptionScopes(s,o);return i&&e.defaults&&a.push(e.defaults),t.createResolver(a,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function rn(t,e){const i=ne.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function ln(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(i=e.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||t.charAt(0).toLowerCase();var i}function hn(t){const e=t.options||(t.options={});e.plugins=b(e.plugins,{}),e.scales=function(t,e){const i=te[t.type]||{scales:{}},s=e.scales||{},n=rn(t.type,e),o=Object.create(null),a=Object.create(null);return Object.keys(s).forEach((t=>{const e=s[t];if(!p(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 r=ln(t,e),l=function(t,e){return t===e?"_index_":"_value_"}(r,n),h=i.scales||{};o[r]=o[r]||t,a[t]=S(Object.create(null),[{axis:r},e,h[r],h[l]])})),t.data.datasets.forEach((i=>{const n=i.type||t.type,r=i.indexAxis||rn(n,e),l=(te[n]||{}).scales||{};Object.keys(l).forEach((t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,r),n=i[e+"AxisID"]||o[e]||e;a[n]=a[n]||Object.create(null),S(a[n],[{axis:e},s[n],l[t]])}))})),Object.keys(a).forEach((t=>{const e=a[t];S(e,[ne.scales[e.type],ne.scale])})),a}(t,e)}function cn(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const dn=new Map,un=new Set;function fn(t,e){let i=dn.get(t);return i||(i=e(),dn.set(t,i),un.add(i)),i}const pn=(t,e,i)=>{const s=D(e,i);void 0!==s&&t.add(s)};class gn{constructor(t){this._config=function(t){return(t=t||{}).data=cn(t.data),hn(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=cn(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(),hn(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return fn(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return fn(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return fn(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return fn(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const i=this._scopeCache;let s=i.get(t);return s&&!e||(s=new Map,i.set(t,s)),s}getOptionScopes(t,e,i){const{options:s,type:n}=this,o=this._cachedScopes(t,i),a=o.get(e);if(a)return a;const r=new Set;e.forEach((e=>{t&&(r.add(t),e.forEach((e=>pn(r,t,e)))),e.forEach((t=>pn(r,s,t))),e.forEach((t=>pn(r,te[n]||{},t))),e.forEach((t=>pn(r,ne,t))),e.forEach((t=>pn(r,ee,t)))}));const l=Array.from(r);return 0===l.length&&l.push(Object.create(null)),un.has(e)&&o.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,te[e]||{},ne.datasets[e]||{},{type:e},ne,ee]}resolveNamedOptions(t,e,i,s=[""]){const n={$shared:!0},{resolver:o,subPrefixes:a}=mn(this._resolverCache,t,s);let r=o;(function(t,e){const{isScriptable:i,isIndexable:s}=Te(t);for(const n of e){const e=i(n),o=s(n),a=(o||e)&&t[n];if(e&&(T(a)||bn(a))||o&&f(a))return!0}return!1})(o,e)&&(n.$shared=!1,r=Oe(o,i=T(i)?i():i,this.createResolver(t,i,a)));for(const t of e)n[t]=r[t];return n}createResolver(t,e,i=[""],s){const{resolver:n}=mn(this._resolverCache,t,i);return p(e)?Oe(n,e,void 0,s):n}}function mn(t,e,i){let s=t.get(e);s||(s=new Map,t.set(e,s));const n=i.join();let o=s.get(n);return o||(o={resolver:Pe(e,i),subPrefixes:i.filter((t=>!t.toLowerCase().includes("hover")))},s.set(n,o)),o}const bn=t=>p(t)&&Object.getOwnPropertyNames(t).reduce(((e,i)=>e||T(t[i])),!1),xn=["top","bottom","left","right","chartArea"];function yn(t,e){return"top"===t||"bottom"===t||-1===xn.indexOf(t)&&"x"===e}function vn(t,e){return function(i,s){return i[t]===s[t]?i[e]-s[e]:i[t]-s[t]}}function wn(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),y(i&&i.onComplete,[t],e)}function kn(t){const e=t.chart,i=e.options.animation;y(i&&i.onProgress,[t],e)}function Cn(t){return Ke()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Mn={},Sn=t=>{const e=Cn(t);return Object.values(Mn).filter((t=>t.canvas===e)).pop()};function En(t,e,i){const s=Object.keys(t);for(const n of s){const s=+n;if(s>=e){const o=t[n];delete t[n],(i>0||s>e)&&(t[s+i]=o)}}}class Ln{constructor(t,e){const i=this.config=new gn(e),s=Cn(t),n=Sn(s);if(n)throw new Error("Canvas is already in use. Chart with ID '"+n.id+"' must be destroyed before the canvas with ID '"+n.canvas.id+"' can be reused.");const o=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(t){return!Ke()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Hs:sn}(s)),this.platform.updateConfig(i);const a=this.platform.acquireContext(s,o.aspectRatio),r=a&&a.canvas,l=r&&r.height,h=r&&r.width;this.id=d(),this.ctx=a,this.canvas=r,this.width=h,this.height=l,this._options=o,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 nn,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let i;return function(...s){return e?(clearTimeout(i),i=setTimeout(t,e,s)):t.apply(this,s),e}}((t=>this.update(t)),o.resizeDelay||0),this._dataChanges=[],Mn[this.id]=this,a&&r?(Ci.listen(this,"complete",wn),Ci.listen(this,"progress",kn),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:i,height:s,_aspectRatio:n}=this;return u(t)?e&&n?n:s?i/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():oi(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return le(this.canvas,this.ctx),this}stop(){return Ci.stop(this),this}resize(t,e){Ci.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,s=this.canvas,n=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(s,t,e,n),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),r=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,oi(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),y(i.onResize,[this,o],this),this.attached&&this._doResize(r)&&this.render())}ensureScalesHaveIDs(){_(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,s=Object.keys(i).reduce(((t,e)=>(t[e]=!1,t)),{});let n=[];e&&(n=n.concat(Object.keys(e).map((t=>{const i=e[t],s=ln(t,i),n="r"===s,o="x"===s;return{options:i,dposition:n?"chartArea":o?"bottom":"left",dtype:n?"radialLinear":o?"category":"linear"}})))),_(n,(e=>{const n=e.options,o=n.id,a=ln(o,n),r=b(n.type,e.dtype);void 0!==n.position&&yn(n.position,a)===yn(e.dposition)||(n.position=e.dposition),s[o]=!0;let l=null;o in i&&i[o].type===r?l=i[o]:(l=new(ms.getScale(r))({id:o,type:r,ctx:this.ctx,chart:this}),i[l.id]=l),l.init(n,t)})),_(s,((t,e)=>{t||delete i[e]})),_(i,(t=>{Ns.configure(this,t,t.options),Ns.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort(((t,e)=>t.index-e.index)),i>e){for(let t=e;t<i;++t)this._destroyDatasetMeta(t);t.splice(e,i-e)}this._sortedMetasets=t.slice(0).sort(vn("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,i)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(i)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,s;for(this._removeUnreferencedMetasets(),i=0,s=e.length;i<s;i++){const s=e[i];let n=this.getDatasetMeta(i);const o=s.type||this.config.type;if(n.type&&n.type!==o&&(this._destroyDatasetMeta(i),n=this.getDatasetMeta(i)),n.type=o,n.indexAxis=s.indexAxis||rn(o,this.options),n.order=s.order||0,n.index=i,n.label=""+s.label,n.visible=this.isDatasetVisible(i),n.controller)n.controller.updateIndex(i),n.controller.linkScales();else{const e=ms.getController(o),{datasetElementType:s,dataElementType:a}=ne.datasets[o];Object.assign(e.prototype,{dataElementType:ms.getElement(a),datasetElementType:s&&ms.getElement(s)}),n.controller=new e(this,i),t.push(n.controller)}}return this._updateMetasets(),t}_resetElements(){_(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 i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const n=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),i=!s&&-1===n.indexOf(e);e.buildOrUpdateElements(i),o=Math.max(+e.getMaxOverflow(),o)}o=this._minPadding=i.layout.autoPadding?o:0,this._updateLayout(o),s||_(n,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(vn("z","_idx"));const{_active:a,_lastEvent:r}=this;r?this._eventHandler(r,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){_(this.scales,(t=>{Ns.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);A(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:n}of e)En(t,s,"_removeElements"===i?-n:n)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),s=i(0);for(let t=1;t<e;t++)if(!A(s,i(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;Ns.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],_(this.boxes,(t=>{i&&"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,i=this.data.datasets.length;e<i;++e)this._updateDataset(e,T(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const i=this.getDatasetMeta(t),s={meta:i,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",s)&&(i.controller._update(e),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Ci.has(this)?this.attached&&!Ci.running(this)&&Ci.start(this):(this.draw(),wn({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,i=[];let s,n;for(s=0,n=e.length;s<n;++s){const n=e[s];t&&!n.visible||i.push(n)}return i}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,i=t._clip,s=!i.disabled,n=this.chartArea,o={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(s&&ue(e,{left:!1===i.left?0:n.left-i.left,right:!1===i.right?this.width:n.right+i.right,top:!1===i.top?0:n.top-i.top,bottom:!1===i.bottom?this.height:n.bottom+i.bottom}),t.controller.draw(),s&&fe(e),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return de(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,s){const n=Es.modes[e];return"function"==typeof n?n(this,t,i,s):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let s=i.filter((t=>t&&t._dataset===e)).pop();return s||(s={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},i.push(s)),s}getContext(){return this.$context||(this.$context=De(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.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,i){const s=i?"show":"hide",n=this.getDatasetMeta(t),o=n.controller._resolveAnimations(void 0,s);O(e)?(n.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),o.update(n,{visible:i}),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(),Ci.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(),le(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete Mn[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,i=(i,s)=>{e.addEventListener(this,i,s),t[i]=s},s=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};_(this.options.events,(t=>i(t,s)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,s)=>{e.addEventListener(this,i,s),t[i]=s},s=(i,s)=>{t[i]&&(e.removeEventListener(this,i,s),delete t[i])},n=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const a=()=>{s("attach",a),this.attached=!0,this.resize(),i("resize",n),i("detach",o)};o=()=>{this.attached=!1,s("resize",n),this._stop(),this._resize(0,0),i("attach",a)},e.isAttached(this.canvas)?a():o()}unbindEvents(){_(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},_(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const s=i?"set":"remove";let n,o,a,r;for("dataset"===e&&(n=this.getDatasetMeta(t[0].datasetIndex),n.controller["_"+s+"DatasetHoverStyle"]()),a=0,r=t.length;a<r;++a){o=t[a];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[s+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],i=t.map((({datasetIndex:t,index:e})=>{const i=this.getDatasetMeta(t);if(!i)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}));!v(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}_updateHoverStyles(t,e,i){const s=this.options.hover,n=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=n(e,t),a=i?t:n(t,e);o.length&&this.updateHoverStyle(o,s.mode,!1),a.length&&s.mode&&this.updateHoverStyle(a,s.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},s=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,s))return;const n=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(n||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:s=[],options:n}=this,o=e,a=this._getActiveElements(t,s,i,o),r=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,i,s){return i&&"mouseout"!==t.type?s?e:t:null}(t,this._lastEvent,i,r);i&&(this._lastEvent=null,y(n.onHover,[t,a,this],this),r&&y(n.onClick,[t,a,this],this));const h=!v(a,s);return(h||e)&&(this._active=a,this._updateHoverStyles(a,s,e)),this._lastEvent=l,h}_getActiveElements(t,e,i,s){if("mouseout"===t.type)return[];if(!i)return e;const n=this.options.hover;return this.getElementsAtEventForMode(t,n.mode,n,s)}}const Dn=()=>_(Ln.instances,(t=>t._plugins.invalidate())),Pn=!0;function On(t,e,i){const{startAngle:s,pixelMargin:n,x:o,y:a,outerRadius:r,innerRadius:l}=e;let h=n/r;t.beginPath(),t.arc(o,a,r,s-h,i+h),l>n?(h=n/l,t.arc(o,a,l,i+h,s-h,!0)):t.arc(o,a,n,i+N,s-N),t.closePath(),t.clip()}function Tn(t,e,i,s){return{x:i+t*Math.cos(e),y:s+t*Math.sin(e)}}function An(t,e,i,s,n,o){const{x:a,y:r,startAngle:l,pixelMargin:h,innerRadius:c}=e,d=Math.max(e.outerRadius+s+i-h,0),u=c>0?c+s+i+h:0;let f=0;const p=n-l;if(s){const t=((c>0?c-s:0)+(d>0?d-s:0))/2;f=(p-(0!==t?p*t/(t+s):p))/2}const g=(p-Math.max(.001,p*d-i/z)/d)/2,m=l+g+f,b=n-g-f,{outerStart:x,outerEnd:y,innerStart:_,innerEnd:v}=function(t,e,i,s){const n=ke(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),o=(i-e)/2,a=Math.min(o,s*e/2),r=t=>{const e=(i-Math.min(o,t))*s/2;return it(t,0,Math.min(o,e))};return{outerStart:r(n.outerStart),outerEnd:r(n.outerEnd),innerStart:it(n.innerStart,0,a),innerEnd:it(n.innerEnd,0,a)}}(e,u,d,b-m),w=d-x,k=d-y,C=m+x/w,M=b-y/k,S=u+_,E=u+v,L=m+_/S,D=b-v/E;if(t.beginPath(),o){if(t.arc(a,r,d,C,M),y>0){const e=Tn(k,M,a,r);t.arc(e.x,e.y,y,M,b+N)}const e=Tn(E,b,a,r);if(t.lineTo(e.x,e.y),v>0){const e=Tn(E,D,a,r);t.arc(e.x,e.y,v,b+N,D+Math.PI)}if(t.arc(a,r,u,b-v/u,m+_/u,!0),_>0){const e=Tn(S,L,a,r);t.arc(e.x,e.y,_,L+Math.PI,m-N)}const i=Tn(w,m,a,r);if(t.lineTo(i.x,i.y),x>0){const e=Tn(w,C,a,r);t.arc(e.x,e.y,x,m-N,C)}}else{t.moveTo(a,r);const e=Math.cos(C)*d+a,i=Math.sin(C)*d+r;t.lineTo(e,i);const s=Math.cos(M)*d+a,n=Math.sin(M)*d+r;t.lineTo(s,n)}t.closePath()}Object.defineProperties(Ln,{defaults:{enumerable:Pn,value:ne},instances:{enumerable:Pn,value:Mn},overrides:{enumerable:Pn,value:te},registry:{enumerable:Pn,value:ms},version:{enumerable:Pn,value:"3.9.1"},getChart:{enumerable:Pn,value:Sn},register:{enumerable:Pn,value:(...t)=>{ms.add(...t),Dn()}},unregister:{enumerable:Pn,value:(...t)=>{ms.remove(...t),Dn()}}});class zn extends ss{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,i){const s=this.getProps(["x","y"],i),{angle:n,distance:o}=G(s,{x:t,y:e}),{startAngle:a,endAngle:r,innerRadius:l,outerRadius:h,circumference:c}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),d=this.options.spacing/2,u=b(c,r-a)>=R||et(n,a,r),f=st(o,l+d,h+d);return u&&f}getCenterPoint(t){const{x:e,y:i,startAngle:s,endAngle:n,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:r,spacing:l}=this.options,h=(s+n)/2,c=(o+a+l+r)/2;return{x:e+Math.cos(h)*c,y:i+Math.sin(h)*c}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,s=(e.offset||0)/2,n=(e.spacing||0)/2,o=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>R?Math.floor(i/R):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();let a=0;if(s){a=s/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*a,Math.sin(e)*a),this.circumference>=z&&(a=s)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const r=function(t,e,i,s,n){const{fullCircles:o,startAngle:a,circumference:r}=e;let l=e.endAngle;if(o){An(t,e,i,s,a+R,n);for(let e=0;e<o;++e)t.fill();isNaN(r)||(l=a+r%R,r%R==0&&(l+=R))}return An(t,e,i,s,l,n),t.fill(),l}(t,this,a,n,o);(function(t,e,i,s,n,o){const{options:a}=e,{borderWidth:r,borderJoinStyle:l}=a,h="inner"===a.borderAlign;r&&(h?(t.lineWidth=2*r,t.lineJoin=l||"round"):(t.lineWidth=r,t.lineJoin=l||"bevel"),e.fullCircles&&function(t,e,i){const{x:s,y:n,startAngle:o,pixelMargin:a,fullCircles:r}=e,l=Math.max(e.outerRadius-a,0),h=e.innerRadius+a;let c;for(i&&On(t,e,o+R),t.beginPath(),t.arc(s,n,h,o+R,o,!0),c=0;c<r;++c)t.stroke();for(t.beginPath(),t.arc(s,n,l,o,o+R),c=0;c<r;++c)t.stroke()}(t,e,h),h&&On(t,e,n),An(t,e,i,s,n,o),t.stroke())})(t,this,a,n,r,o),t.restore()}}function Rn(t,e,i=e){t.lineCap=b(i.borderCapStyle,e.borderCapStyle),t.setLineDash(b(i.borderDash,e.borderDash)),t.lineDashOffset=b(i.borderDashOffset,e.borderDashOffset),t.lineJoin=b(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=b(i.borderWidth,e.borderWidth),t.strokeStyle=b(i.borderColor,e.borderColor)}function In(t,e,i){t.lineTo(i.x,i.y)}function Fn(t,e,i={}){const s=t.length,{start:n=0,end:o=s-1}=i,{start:a,end:r}=e,l=Math.max(n,a),h=Math.min(o,r),c=n<a&&o<a||n>r&&o>r;return{count:s,start:l,loop:e.loop,ilen:h<l&&!c?s+h-l:h-l}}function Vn(t,e,i,s){const{points:n,options:o}=e,{count:a,start:r,loop:l,ilen:h}=Fn(n,i,s),c=function(t){return t.stepped?pe:t.tension||"monotone"===t.cubicInterpolationMode?ge:In}(o);let d,u,f,{move:p=!0,reverse:g}=s||{};for(d=0;d<=h;++d)u=n[(r+(g?h-d:d))%a],u.skip||(p?(t.moveTo(u.x,u.y),p=!1):c(t,f,u,g,o.stepped),f=u);return l&&(u=n[(r+(g?h:0))%a],c(t,f,u,g,o.stepped)),!!l}function Nn(t,e,i,s){const n=e.points,{count:o,start:a,ilen:r}=Fn(n,i,s),{move:l=!0,reverse:h}=s||{};let c,d,u,f,p,g,m=0,b=0;const x=t=>(a+(h?r-t:t))%o,y=()=>{f!==p&&(t.lineTo(m,p),t.lineTo(m,f),t.lineTo(m,g))};for(l&&(d=n[x(0)],t.moveTo(d.x,d.y)),c=0;c<=r;++c){if(d=n[x(c)],d.skip)continue;const e=d.x,i=d.y,s=0|e;s===u?(i<f?f=i:i>p&&(p=i),m=(b*m+e)/++b):(y(),t.lineTo(e,i),u=s,b=0,f=p=i),g=i}y()}function Bn(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||i?Vn:Nn}zn.id="arc",zn.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},zn.defaultRoutes={backgroundColor:"backgroundColor"};const Hn="function"==typeof Path2D;class Wn extends ss{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 i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const s=i.spanGaps?this._loop:this._fullLoop;qe(this._points,i,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=function(t,e){const i=t.points,s=t.options.spanGaps,n=i.length;if(!n)return[];const o=!!t._loop,{start:a,end:r}=function(t,e,i,s){let n=0,o=e-1;if(i&&!s)for(;n<e&&!t[n].skip;)n++;for(;n<e&&t[n].skip;)n++;for(n%=e,i&&(o+=n);o>n&&t[o%e].skip;)o--;return o%=e,{start:n,end:o}}(i,n,o,s);return function(t,e,i,s){return s&&s.setContext&&i?function(t,e,i,s){const n=t._chart.getContext(),o=wi(t.options),{_datasetIndex:a,options:{spanGaps:r}}=t,l=i.length,h=[];let c=o,d=e[0].start,u=d;function f(t,e,s,n){const o=r?-1:1;if(t!==e){for(t+=l;i[t%l].skip;)t-=o;for(;i[e%l].skip;)e+=o;t%l!=e%l&&(h.push({start:t%l,end:e%l,loop:s,style:n}),c=n,d=e%l)}}for(const t of e){d=r?d:t.start;let e,o=i[d%l];for(u=d+1;u<=t.end;u++){const r=i[u%l];e=wi(s.setContext(De(n,{type:"segment",p0:o,p1:r,p0DataIndex:(u-1)%l,p1DataIndex:u%l,datasetIndex:a}))),ki(e,c)&&f(d,u-1,t.loop,c),o=r,c=e}d<u-1&&f(d,u-1,t.loop,c)}return h}(t,e,i,s):e}(t,!0===s?[{start:a,end:r,loop:o}]:function(t,e,i,s){const n=t.length,o=[];let a,r=e,l=t[e];for(a=e+1;a<=i;++a){const i=t[a%n];i.skip||i.stop?l.skip||(s=!1,o.push({start:e%n,end:(a-1)%n,loop:s}),e=r=i.stop?a:null):(r=a,l.skip&&(e=a)),l=i}return null!==r&&o.push({start:e%n,end:r%n,loop:s}),o}(i,a,r<a?r+n:r,!!t._fullLoop&&0===a&&r===n-1),i,e)}(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,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this.options,s=t[e],n=this.points,o=vi(this,{property:e,start:s,end:s});if(!o.length)return;const a=[],r=function(t){return t.stepped?hi:t.tension||"monotone"===t.cubicInterpolationMode?ci:li}(i);let l,h;for(l=0,h=o.length;l<h;++l){const{start:h,end:c}=o[l],d=n[h],u=n[c];if(d===u){a.push(d);continue}const f=r(d,u,Math.abs((s-d[e])/(u[e]-d[e])),i.stepped);f[e]=t[e],a.push(f)}return 1===a.length?a[0]:a}pathSegment(t,e,i){return Bn(this)(t,this,e,i)}path(t,e,i){const s=this.segments,n=Bn(this);let o=this._loop;e=e||0,i=i||this.points.length-e;for(const a of s)o&=n(t,this,a,{start:e,end:e+i-1});return!!o}draw(t,e,i,s){const n=this.options||{};(this.points||[]).length&&n.borderWidth&&(t.save(),function(t,e,i,s){Hn&&!e.options.segment?function(t,e,i,s){let n=e._path;n||(n=e._path=new Path2D,e.path(n,i,s)&&n.closePath()),Rn(t,e.options),t.stroke(n)}(t,e,i,s):function(t,e,i,s){const{segments:n,options:o}=e,a=Bn(e);for(const r of n)Rn(t,o,r.style),t.beginPath(),a(t,e,r,{start:i,end:i+s-1})&&t.closePath(),t.stroke()}(t,e,i,s)}(t,this,i,s),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function jn(t,e,i,s){const n=t.options,{[i]:o}=t.getProps([i],s);return Math.abs(e-o)<n.radius+n.hitRadius}Wn.id="line",Wn.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Wn.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Wn.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class $n extends ss{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,i){const s=this.options,{x:n,y:o}=this.getProps(["x","y"],i);return Math.pow(t-n,2)+Math.pow(e-o,2)<Math.pow(s.hitRadius+s.radius,2)}inXRange(t,e){return jn(this,t,"x",e)}inYRange(t,e){return jn(this,t,"y",e)}getCenterPoint(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}size(t){let e=(t=t||this.options||{}).radius||0;return e=Math.max(e,e&&t.hoverRadius||0),2*(e+(e&&t.borderWidth||0))}draw(t,e){const i=this.options;this.skip||i.radius<.1||!de(this,e,this.size(i)/2)||(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,he(t,i,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function Zn(t,e){const{x:i,y:s,base:n,width:o,height:a}=t.getProps(["x","y","base","width","height"],e);let r,l,h,c,d;return t.horizontal?(d=a/2,r=Math.min(i,n),l=Math.max(i,n),h=s-d,c=s+d):(d=o/2,r=i-d,l=i+d,h=Math.min(s,n),c=Math.max(s,n)),{left:r,top:h,right:l,bottom:c}}function Yn(t,e,i,s){return t?0:it(e,i,s)}function Un(t,e,i,s){const n=null===e,o=null===i,a=t&&!(n&&o)&&Zn(t,s);return a&&(n||st(e,a.left,a.right))&&(o||st(i,a.top,a.bottom))}function Xn(t,e){t.rect(e.x,e.y,e.w,e.h)}function qn(t,e,i={}){const s=t.x!==i.x?-e:0,n=t.y!==i.y?-e:0,o=(t.x+t.w!==i.x+i.w?e:0)-s,a=(t.y+t.h!==i.y+i.h?e:0)-n;return{x:t.x+s,y:t.y+n,w:t.w+o,h:t.h+a,radius:t.radius}}$n.id="point",$n.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},$n.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Kn extends ss{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:i,backgroundColor:s}}=this,{inner:n,outer:o}=function(t){const e=Zn(t),i=e.right-e.left,s=e.bottom-e.top,n=function(t,e,i){const s=t.options.borderWidth,n=t.borderSkipped,o=Ce(s);return{t:Yn(n.top,o.top,0,i),r:Yn(n.right,o.right,0,e),b:Yn(n.bottom,o.bottom,0,i),l:Yn(n.left,o.left,0,e)}}(t,i/2,s/2),o=function(t,e,i){const{enableBorderRadius:s}=t.getProps(["enableBorderRadius"]),n=t.options.borderRadius,o=Me(n),a=Math.min(e,i),r=t.borderSkipped,l=s||p(n);return{topLeft:Yn(!l||r.top||r.left,o.topLeft,0,a),topRight:Yn(!l||r.top||r.right,o.topRight,0,a),bottomLeft:Yn(!l||r.bottom||r.left,o.bottomLeft,0,a),bottomRight:Yn(!l||r.bottom||r.right,o.bottomRight,0,a)}}(t,i/2,s/2);return{outer:{x:e.left,y:e.top,w:i,h:s,radius:o},inner:{x:e.left+n.l,y:e.top+n.t,w:i-n.l-n.r,h:s-n.t-n.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(n.t,n.l)),topRight:Math.max(0,o.topRight-Math.max(n.t,n.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(n.b,n.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(n.b,n.r))}}}}(this),a=(r=o.radius).topLeft||r.topRight||r.bottomLeft||r.bottomRight?xe:Xn;var r;t.save(),o.w===n.w&&o.h===n.h||(t.beginPath(),a(t,qn(o,e,n)),t.clip(),a(t,qn(n,-e,o)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),a(t,qn(n,e)),t.fillStyle=s,t.fill(),t.restore()}inRange(t,e,i){return Un(this,t,e,i)}inXRange(t,e){return Un(this,t,null,e)}inYRange(t,e){return Un(this,null,t,e)}getCenterPoint(t){const{x:e,y:i,base:s,horizontal:n}=this.getProps(["x","y","base","horizontal"],t);return{x:n?(e+s)/2:e,y:n?i:(i+s)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}Kn.id="bar",Kn.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},Kn.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Gn=Object.freeze({__proto__:null,ArcElement:zn,LineElement:Wn,PointElement:$n,BarElement:Kn});function Jn(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{value:e})}}function Qn(t){t.data.datasets.forEach((t=>{Jn(t)}))}var to={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,i)=>{if(!i.enabled)return void Qn(t);const s=t.width;t.data.datasets.forEach(((e,n)=>{const{_data:o,indexAxis:a}=e,r=t.getDatasetMeta(n),l=o||e.data;if("y"===Le([a,t.options.indexAxis]))return;if(!r.controller.supportsDecimation)return;const h=t.scales[r.xAxisID];if("linear"!==h.type&&"time"!==h.type)return;if(t.options.parsing)return;let c,{start:d,count:f}=function(t,e){const i=e.length;let s,n=0;const{iScale:o}=t,{min:a,max:r,minDefined:l,maxDefined:h}=o.getUserBounds();return l&&(n=it(ot(e,o.axis,a).lo,0,i-1)),s=h?it(ot(e,o.axis,r).hi+1,n,i)-n:i-n,{start:n,count:s}}(r,l);if(f<=(i.threshold||4*s))Jn(e);else{switch(u(o)&&(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}})),i.algorithm){case"lttb":c=function(t,e,i,s,n){const o=n.samples||s;if(o>=i)return t.slice(e,e+i);const a=[],r=(i-2)/(o-2);let l=0;const h=e+i-1;let c,d,u,f,p,g=e;for(a[l++]=t[g],c=0;c<o-2;c++){let s,n=0,o=0;const h=Math.floor((c+1)*r)+1+e,m=Math.min(Math.floor((c+2)*r)+1,i)+e,b=m-h;for(s=h;s<m;s++)n+=t[s].x,o+=t[s].y;n/=b,o/=b;const x=Math.floor(c*r)+1+e,y=Math.min(Math.floor((c+1)*r)+1,i)+e,{x:_,y:v}=t[g];for(u=f=-1,s=x;s<y;s++)f=.5*Math.abs((_-n)*(t[s].y-v)-(_-t[s].x)*(o-v)),f>u&&(u=f,d=t[s],p=s);a[l++]=d,g=p}return a[l++]=t[h],a}(l,d,f,s,i);break;case"min-max":c=function(t,e,i,s){let n,o,a,r,l,h,c,d,f,p,g=0,m=0;const b=[],x=e+i-1,y=t[e].x,_=t[x].x-y;for(n=e;n<e+i;++n){o=t[n],a=(o.x-y)/_*s,r=o.y;const e=0|a;if(e===l)r<f?(f=r,h=n):r>p&&(p=r,c=n),g=(m*g+o.x)/++m;else{const i=n-1;if(!u(h)&&!u(c)){const e=Math.min(h,c),s=Math.max(h,c);e!==d&&e!==i&&b.push({...t[e],x:g}),s!==d&&s!==i&&b.push({...t[s],x:g})}n>0&&i!==d&&b.push(t[i]),b.push(o),l=e,m=0,f=p=r,h=c=d=n}}return b}(l,d,f,s);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}e._decimated=c}}))},destroy(t){Qn(t)}};function eo(t,e,i,s){if(s)return;let n=e[t],o=i[t];return"angle"===t&&(n=tt(n),o=tt(o)),{property:t,start:n,end:o}}function io(t,e,i){for(;e>t;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function so(t,e,i,s){return t&&e?s(t[i],e[i]):t?t[i]:e?e[i]:0}function no(t,e){let i=[],s=!1;return f(t)?(s=!0,i=t):i=function(t,e){const{x:i=null,y:s=null}=t||{},n=e.points,o=[];return e.segments.forEach((({start:t,end:e})=>{e=io(t,e,n);const a=n[t],r=n[e];null!==s?(o.push({x:a.x,y:s}),o.push({x:r.x,y:s})):null!==i&&(o.push({x:i,y:a.y}),o.push({x:i,y:r.y}))})),o}(t,e),i.length?new Wn({points:i,options:{tension:0},_loop:s,_fullLoop:s}):null}function oo(t){return t&&!1!==t.fill}function ao(t,e,i){let s=t[e].fill;const n=[e];let o;if(!i)return s;for(;!1!==s&&-1===n.indexOf(s);){if(!g(s))return s;if(o=t[s],!o)return!1;if(o.visible)return s;n.push(s),s=o.fill}return!1}function ro(t,e,i){const s=function(t){const e=t.options,i=e.fill;let s=b(i&&i.target,i);return void 0===s&&(s=!!e.backgroundColor),!1!==s&&null!==s&&(!0===s?"origin":s)}(t);if(p(s))return!isNaN(s.value)&&s;let n=parseFloat(s);return g(n)&&Math.floor(n)===n?function(t,e,i,s){return"-"!==t&&"+"!==t||(i=e+i),!(i===e||i<0||i>=s)&&i}(s[0],e,n,i):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}function lo(t,e,i){const s=[];for(let n=0;n<i.length;n++){const o=i[n],{first:a,last:r,point:l}=ho(o,e,"x");if(!(!l||a&&r))if(a)s.unshift(l);else if(t.push(l),!r)break}t.push(...s)}function ho(t,e,i){const s=t.interpolate(e,i);if(!s)return{};const n=s[i],o=t.segments,a=t.points;let r=!1,l=!1;for(let t=0;t<o.length;t++){const e=o[t],s=a[e.start][i],h=a[e.end][i];if(st(n,s,h)){r=n===s,l=n===h;break}}return{first:r,last:l,point:s}}class co{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){const{x:s,y:n,radius:o}=this;return e=e||{start:0,end:R},t.arc(s,n,o,e.end,e.start,!0),!i.bounds}interpolate(t){const{x:e,y:i,radius:s}=this,n=t.angle;return{x:e+Math.cos(n)*s,y:i+Math.sin(n)*s,angle:n}}}function uo(t,e,i){const s=function(t){const{chart:e,fill:i,line:s}=t;if(g(i))return function(t,e){const i=t.getDatasetMeta(e);return i&&t.isDatasetVisible(e)?i.dataset:null}(e,i);if("stack"===i)return function(t){const{scale:e,index:i,line:s}=t,n=[],o=s.segments,a=s.points,r=function(t,e){const i=[],s=t.getMatchingVisibleMetas("line");for(let t=0;t<s.length;t++){const n=s[t];if(n.index===e)break;n.hidden||i.unshift(n.dataset)}return i}(e,i);r.push(no({x:null,y:e.bottom},s));for(let t=0;t<o.length;t++){const e=o[t];for(let t=e.start;t<=e.end;t++)lo(n,a[t],r)}return new Wn({points:n,options:{}})}(t);if("shape"===i)return!0;const n=function(t){return(t.scale||{}).getPointPositionForValue?function(t){const{scale:e,fill:i}=t,s=e.options,n=e.getLabels().length,o=s.reverse?e.max:e.min,a=function(t,e,i){let s;return s="start"===t?i:"end"===t?e.options.reverse?e.min:e.max:p(t)?t.value:e.getBaseValue(),s}(i,e,o),r=[];if(s.grid.circular){const t=e.getPointPositionForValue(0,o);return new co({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(a)})}for(let t=0;t<n;++t)r.push(e.getPointPositionForValue(t,a));return r}(t):function(t){const{scale:e={},fill:i}=t,s=function(t,e){let i=null;return"start"===t?i=e.bottom:"end"===t?i=e.top:p(t)?i=e.getPixelForValue(t.value):e.getBasePixel&&(i=e.getBasePixel()),i}(i,e);if(g(s)){const t=e.isHorizontal();return{x:t?s:null,y:t?null:s}}return null}(t)}(t);return n instanceof co?n:no(n,s)}(e),{line:n,scale:o,axis:a}=e,r=n.options,l=r.fill,h=r.backgroundColor,{above:c=h,below:d=h}=l||{};s&&n.points.length&&(ue(t,i),function(t,e){const{line:i,target:s,above:n,below:o,area:a,scale:r}=e,l=i._loop?"angle":e.axis;t.save(),"x"===l&&o!==n&&(fo(t,s,a.top),po(t,{line:i,target:s,color:n,scale:r,property:l}),t.restore(),t.save(),fo(t,s,a.bottom)),po(t,{line:i,target:s,color:o,scale:r,property:l}),t.restore()}(t,{line:n,target:s,above:c,below:d,area:i,scale:o,axis:a}),fe(t))}function fo(t,e,i){const{segments:s,points:n}=e;let o=!0,a=!1;t.beginPath();for(const r of s){const{start:s,end:l}=r,h=n[s],c=n[io(s,l,n)];o?(t.moveTo(h.x,h.y),o=!1):(t.lineTo(h.x,i),t.lineTo(h.x,h.y)),a=!!e.pathSegment(t,r,{move:a}),a?t.closePath():t.lineTo(c.x,i)}t.lineTo(e.first().x,i),t.closePath(),t.clip()}function po(t,e){const{line:i,target:s,property:n,color:o,scale:a}=e,r=function(t,e,i){const s=t.segments,n=t.points,o=e.points,a=[];for(const t of s){let{start:s,end:r}=t;r=io(s,r,n);const l=eo(i,n[s],n[r],t.loop);if(!e.segments){a.push({source:t,target:l,start:n[s],end:n[r]});continue}const h=vi(e,l);for(const e of h){const s=eo(i,o[e.start],o[e.end],e.loop),r=_i(t,n,s);for(const t of r)a.push({source:t,target:e,start:{[i]:so(l,s,"start",Math.max)},end:{[i]:so(l,s,"end",Math.min)}})}}return a}(i,s,n);for(const{source:e,target:l,start:h,end:c}of r){const{style:{backgroundColor:r=o}={}}=e,d=!0!==s;t.save(),t.fillStyle=r,go(t,a,d&&eo(n,h,c)),t.beginPath();const u=!!i.pathSegment(t,e);let f;if(d){u?t.closePath():mo(t,s,c,n);const e=!!s.pathSegment(t,l,{move:u,reverse:!0});f=u&&e,f||mo(t,s,h,n)}t.closePath(),t.fill(f?"evenodd":"nonzero"),t.restore()}}function go(t,e,i){const{top:s,bottom:n}=e.chart.chartArea,{property:o,start:a,end:r}=i||{};"x"===o&&(t.beginPath(),t.rect(a,s,r-a,n-s),t.clip())}function mo(t,e,i,s){const n=e.interpolate(i,s);n&&t.lineTo(n.x,n.y)}var bo={id:"filler",afterDatasetsUpdate(t,e,i){const s=(t.data.datasets||[]).length,n=[];let o,a,r,l;for(a=0;a<s;++a)o=t.getDatasetMeta(a),r=o.dataset,l=null,r&&r.options&&r instanceof Wn&&(l={visible:t.isDatasetVisible(a),index:a,fill:ro(r,a,s),chart:t,axis:o.controller.options.indexAxis,scale:o.vScale,line:r}),o.$filler=l,n.push(l);for(a=0;a<s;++a)l=n[a],l&&!1!==l.fill&&(l.fill=ao(n,a,i.propagate))},beforeDraw(t,e,i){const s="beforeDraw"===i.drawTime,n=t.getSortedVisibleDatasetMetas(),o=t.chartArea;for(let e=n.length-1;e>=0;--e){const i=n[e].$filler;i&&(i.line.updateControlPoints(o,i.axis),s&&i.fill&&uo(t.ctx,i,o))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const s=t.getSortedVisibleDatasetMetas();for(let e=s.length-1;e>=0;--e){const i=s[e].$filler;oo(i)&&uo(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,i){const s=e.meta.$filler;oo(s)&&"beforeDatasetDraw"===i.drawTime&&uo(t.ctx,s,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const xo=(t,e)=>{let{boxHeight:i=e,boxWidth:s=e}=t;return t.usePointStyle&&(i=Math.min(i,e),s=t.pointStyleWidth||Math.min(s,e)),{boxWidth:s,boxHeight:i,itemHeight:Math.max(e,i)}};class yo extends ss{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,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,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=y(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,i)=>t.sort(e,i,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 i=t.labels,s=Ee(i.font),n=s.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:r}=xo(i,n);let l,h;e.font=s.string,this.isHorizontal()?(l=this.maxWidth,h=this._fitRows(o,n,a,r)+10):(h=this.maxHeight,l=this._fitCols(o,n,a,r)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(h,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,s){const{ctx:n,maxWidth:o,options:{labels:{padding:a}}}=this,r=this.legendHitBoxes=[],l=this.lineWidths=[0],h=s+a;let c=t;n.textAlign="left",n.textBaseline="middle";let d=-1,u=-h;return this.legendItems.forEach(((t,f)=>{const p=i+e/2+n.measureText(t.text).width;(0===f||l[l.length-1]+p+2*a>o)&&(c+=h,l[l.length-(f>0?0:1)]=0,u+=h,d++),r[f]={left:0,top:u,row:d,width:p,height:s},l[l.length-1]+=p+a})),c}_fitCols(t,e,i,s){const{ctx:n,maxHeight:o,options:{labels:{padding:a}}}=this,r=this.legendHitBoxes=[],l=this.columnSizes=[],h=o-t;let c=a,d=0,u=0,f=0,p=0;return this.legendItems.forEach(((t,o)=>{const g=i+e/2+n.measureText(t.text).width;o>0&&u+s+2*a>h&&(c+=d+a,l.push({width:d,height:u}),f+=d+a,p++,d=u=0),r[o]={left:f,top:u,col:p,width:g,height:s},d=Math.max(d,g),u+=s+a})),c+=d,l.push({width:d,height:u}),c}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:s},rtl:n}}=this,o=gi(n,this.left,this.width);if(this.isHorizontal()){let n=0,a=ft(i,this.left+s,this.right-this.lineWidths[n]);for(const r of e)n!==r.row&&(n=r.row,a=ft(i,this.left+s,this.right-this.lineWidths[n])),r.top+=this.top+t+s,r.left=o.leftForLtr(o.x(a),r.width),a+=r.width+s}else{let n=0,a=ft(i,this.top+t+s,this.bottom-this.columnSizes[n].height);for(const r of e)r.col!==n&&(n=r.col,a=ft(i,this.top+t+s,this.bottom-this.columnSizes[n].height)),r.top=a,r.left+=this.left+s,r.left=o.leftForLtr(o.x(r.left),r.width),a+=r.height+s}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;ue(t,this),this._draw(),fe(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:s}=this,{align:n,labels:o}=t,a=ne.color,r=gi(t.rtl,this.left,this.width),l=Ee(o.font),{color:h,padding:c}=o,d=l.size,u=d/2;let f;this.drawTitle(),s.textAlign=r.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=l.string;const{boxWidth:p,boxHeight:g,itemHeight:m}=xo(o,d),x=this.isHorizontal(),y=this._computeTitleHeight();f=x?{x:ft(n,this.left+c,this.right-i[0]),y:this.top+c+y,line:0}:{x:this.left+c,y:ft(n,this.top+y+c,this.bottom-e[0].height),line:0},mi(this.ctx,t.textDirection);const _=m+c;this.legendItems.forEach(((v,w)=>{s.strokeStyle=v.fontColor||h,s.fillStyle=v.fontColor||h;const k=s.measureText(v.text).width,C=r.textAlign(v.textAlign||(v.textAlign=o.textAlign)),M=p+u+k;let S=f.x,E=f.y;r.setWidth(this.width),x?w>0&&S+M+c>this.right&&(E=f.y+=_,f.line++,S=f.x=ft(n,this.left+c,this.right-i[f.line])):w>0&&E+_>this.bottom&&(S=f.x=S+e[f.line].width+c,f.line++,E=f.y=ft(n,this.top+y+c,this.bottom-e[f.line].height)),function(t,e,i){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;s.save();const n=b(i.lineWidth,1);if(s.fillStyle=b(i.fillStyle,a),s.lineCap=b(i.lineCap,"butt"),s.lineDashOffset=b(i.lineDashOffset,0),s.lineJoin=b(i.lineJoin,"miter"),s.lineWidth=n,s.strokeStyle=b(i.strokeStyle,a),s.setLineDash(b(i.lineDash,[])),o.usePointStyle){const a={radius:g*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:n},l=r.xPlus(t,p/2);ce(s,a,l,e+u,o.pointStyleWidth&&p)}else{const o=e+Math.max((d-g)/2,0),a=r.leftForLtr(t,p),l=Me(i.borderRadius);s.beginPath(),Object.values(l).some((t=>0!==t))?xe(s,{x:a,y:o,w:p,h:g,radius:l}):s.rect(a,o,p,g),s.fill(),0!==n&&s.stroke()}s.restore()}(r.x(S),E,v),S=((t,e,i,s)=>t===(s?"left":"right")?i:"center"===t?(e+i)/2:e)(C,S+p+u,x?S+M:this.right,t.rtl),function(t,e,i){me(s,i.text,t,e+m/2,l,{strikethrough:i.hidden,textAlign:r.textAlign(i.textAlign)})}(r.x(S),E,v),x?f.x+=M+c:f.y+=_})),bi(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=Ee(e.font),s=Se(e.padding);if(!e.display)return;const n=gi(t.rtl,this.left,this.width),o=this.ctx,a=e.position,r=i.size/2,l=s.top+r;let h,c=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),h=this.top+l,c=ft(t.align,c,this.right-d);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);h=l+ft(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const u=ft(a,c,c+d);o.textAlign=n.textAlign(ut(a)),o.textBaseline="middle",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=i.string,me(o,e.text,u,h,i)}_computeTitleHeight(){const t=this.options.title,e=Ee(t.font),i=Se(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,s,n;if(st(t,this.left,this.right)&&st(e,this.top,this.bottom))for(n=this.legendHitBoxes,i=0;i<n.length;++i)if(s=n[i],st(t,s.left,s.left+s.width)&&st(e,s.top,s.top+s.height))return this.legendItems[i];return null}handleEvent(t){const e=this.options;if(!function(t,e){return!("mousemove"!==t&&"mouseout"!==t||!e.onHover&&!e.onLeave)||!(!e.onClick||"click"!==t&&"mouseup"!==t)}(t.type,e))return;const i=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const o=this._hoveredItem,a=(n=i,null!==(s=o)&&null!==n&&s.datasetIndex===n.datasetIndex&&s.index===n.index);o&&!a&&y(e.onLeave,[t,o,this],this),this._hoveredItem=i,i&&!a&&y(e.onHover,[t,i,this],this)}else i&&y(e.onClick,[t,i,this],this);var s,n}}var _o={id:"legend",_element:yo,start(t,e,i){const s=t.legend=new yo({ctx:t.ctx,options:i,chart:t});Ns.configure(t,s,i),Ns.addBox(t,s)},stop(t){Ns.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){const s=t.legend;Ns.configure(t,s,i),s.options=i},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,i){const s=e.datasetIndex,n=i.chart;n.isDatasetVisible(s)?(n.hide(s),e.hidden=!0):(n.show(s),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:i,pointStyle:s,textAlign:n,color:o}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const a=t.controller.getStyle(i?0:void 0),r=Se(a.borderWidth);return{text:e[t.index].label,fillStyle:a.backgroundColor,fontColor:o,hidden:!t.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(r.width+r.height)/4,strokeStyle:a.borderColor,pointStyle:s||a.pointStyle,rotation:a.rotation,textAlign:n||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 vo extends ss{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 i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const s=f(i.text)?i.text.length:1;this._padding=Se(i.padding);const n=s*Ee(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=n:this.width=n}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:s,right:n,options:o}=this,a=o.align;let r,l,h,c=0;return this.isHorizontal()?(l=ft(a,i,n),h=e+t,r=n-i):("left"===o.position?(l=i+t,h=ft(a,s,e),c=-.5*z):(l=n-t,h=ft(a,e,s),c=.5*z),r=s-e),{titleX:l,titleY:h,maxWidth:r,rotation:c}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=Ee(e.font),s=i.lineHeight/2+this._padding.top,{titleX:n,titleY:o,maxWidth:a,rotation:r}=this._drawArgs(s);me(t,e.text,0,0,i,{color:e.color,maxWidth:a,rotation:r,textAlign:ut(e.align),textBaseline:"middle",translation:[n,o]})}}var wo={id:"title",_element:vo,start(t,e,i){!function(t,e){const i=new vo({ctx:t.ctx,options:e,chart:t});Ns.configure(t,i,e),Ns.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){const e=t.titleBlock;Ns.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const s=t.titleBlock;Ns.configure(t,s,i),s.options=i},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 ko=new WeakMap;var Co={id:"subtitle",start(t,e,i){const s=new vo({ctx:t.ctx,options:i,chart:t});Ns.configure(t,s,i),Ns.addBox(t,s),ko.set(t,s)},stop(t){Ns.removeBox(t,ko.get(t)),ko.delete(t)},beforeUpdate(t,e,i){const s=ko.get(t);Ns.configure(t,s,i),s.options=i},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 Mo={average(t){if(!t.length)return!1;let e,i,s=0,n=0,o=0;for(e=0,i=t.length;e<i;++e){const i=t[e].element;if(i&&i.hasValue()){const t=i.tooltipPosition();s+=t.x,n+=t.y,++o}}return{x:s/o,y:n/o}},nearest(t,e){if(!t.length)return!1;let i,s,n,o=e.x,a=e.y,r=Number.POSITIVE_INFINITY;for(i=0,s=t.length;i<s;++i){const s=t[i].element;if(s&&s.hasValue()){const t=J(e,s.getCenterPoint());t<r&&(r=t,n=s)}}if(n){const t=n.tooltipPosition();o=t.x,a=t.y}return{x:o,y:a}}};function So(t,e){return e&&(f(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Eo(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Lo(t,e){const{element:i,datasetIndex:s,index:n}=e,o=t.getDatasetMeta(s).controller,{label:a,value:r}=o.getLabelAndValue(n);return{chart:t,label:a,parsed:o.getParsed(n),raw:t.data.datasets[s].data[n],formattedValue:r,dataset:o.getDataset(),dataIndex:n,datasetIndex:s,element:i}}function Do(t,e){const i=t.chart.ctx,{body:s,footer:n,title:o}=t,{boxWidth:a,boxHeight:r}=e,l=Ee(e.bodyFont),h=Ee(e.titleFont),c=Ee(e.footerFont),d=o.length,u=n.length,f=s.length,p=Se(e.padding);let g=p.height,m=0,b=s.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);b+=t.beforeBody.length+t.afterBody.length,d&&(g+=d*h.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),b&&(g+=f*(e.displayColors?Math.max(r,l.lineHeight):l.lineHeight)+(b-f)*l.lineHeight+(b-1)*e.bodySpacing),u&&(g+=e.footerMarginTop+u*c.lineHeight+(u-1)*e.footerSpacing);let x=0;const y=function(t){m=Math.max(m,i.measureText(t).width+x)};return i.save(),i.font=h.string,_(t.title,y),i.font=l.string,_(t.beforeBody.concat(t.afterBody),y),x=e.displayColors?a+2+e.boxPadding:0,_(s,(t=>{_(t.before,y),_(t.lines,y),_(t.after,y)})),x=0,i.font=c.string,_(t.footer,y),i.restore(),m+=p.width,{width:m,height:g}}function Po(t,e,i,s){const{x:n,width:o}=i,{width:a,chartArea:{left:r,right:l}}=t;let h="center";return"center"===s?h=n<=(r+l)/2?"left":"right":n<=o/2?h="left":n>=a-o/2&&(h="right"),function(t,e,i,s){const{x:n,width:o}=s,a=i.caretSize+i.caretPadding;return"left"===t&&n+o+a>e.width||"right"===t&&n-o-a<0||void 0}(h,t,e,i)&&(h="center"),h}function Oo(t,e,i){const s=i.yAlign||e.yAlign||function(t,e){const{y:i,height:s}=e;return i<s/2?"top":i>t.height-s/2?"bottom":"center"}(t,i);return{xAlign:i.xAlign||e.xAlign||Po(t,e,i,s),yAlign:s}}function To(t,e,i,s){const{caretSize:n,caretPadding:o,cornerRadius:a}=t,{xAlign:r,yAlign:l}=i,h=n+o,{topLeft:c,topRight:d,bottomLeft:u,bottomRight:f}=Me(a);let p=function(t,e){let{x:i,width:s}=t;return"right"===e?i-=s:"center"===e&&(i-=s/2),i}(e,r);const g=function(t,e,i){let{y:s,height:n}=t;return"top"===e?s+=i:s-="bottom"===e?n+i:n/2,s}(e,l,h);return"center"===l?"left"===r?p+=h:"right"===r&&(p-=h):"left"===r?p-=Math.max(c,u)+n:"right"===r&&(p+=Math.max(d,f)+n),{x:it(p,0,s.width-e.width),y:it(g,0,s.height-e.height)}}function Ao(t,e,i){const s=Se(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-s.right:t.x+s.left}function zo(t){return So([],Eo(t))}function Ro(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}class Io extends ss{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,i=this.options.setContext(this.getContext()),s=i.enabled&&e.options.animation&&i.animations,n=new Di(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(n)),n}getContext(){return this.$context||(this.$context=(this,De(this.chart.getContext(),{tooltip:this,tooltipItems:this._tooltipItems,type:"tooltip"})))}getTitle(t,e){const{callbacks:i}=e,s=i.beforeTitle.apply(this,[t]),n=i.title.apply(this,[t]),o=i.afterTitle.apply(this,[t]);let a=[];return a=So(a,Eo(s)),a=So(a,Eo(n)),a=So(a,Eo(o)),a}getBeforeBody(t,e){return zo(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:i}=e,s=[];return _(t,(t=>{const e={before:[],lines:[],after:[]},n=Ro(i,t);So(e.before,Eo(n.beforeLabel.call(this,t))),So(e.lines,n.label.call(this,t)),So(e.after,Eo(n.afterLabel.call(this,t))),s.push(e)})),s}getAfterBody(t,e){return zo(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:i}=e,s=i.beforeFooter.apply(this,[t]),n=i.footer.apply(this,[t]),o=i.afterFooter.apply(this,[t]);let a=[];return a=So(a,Eo(s)),a=So(a,Eo(n)),a=So(a,Eo(o)),a}_createItems(t){const e=this._active,i=this.chart.data,s=[],n=[],o=[];let a,r,l=[];for(a=0,r=e.length;a<r;++a)l.push(Lo(this.chart,e[a]));return t.filter&&(l=l.filter(((e,s,n)=>t.filter(e,s,n,i)))),t.itemSort&&(l=l.sort(((e,s)=>t.itemSort(e,s,i)))),_(l,(e=>{const i=Ro(t.callbacks,e);s.push(i.labelColor.call(this,e)),n.push(i.labelPointStyle.call(this,e)),o.push(i.labelTextColor.call(this,e))})),this.labelColors=s,this.labelPointStyles=n,this.labelTextColors=o,this.dataPoints=l,l}update(t,e){const i=this.options.setContext(this.getContext()),s=this._active;let n,o=[];if(s.length){const t=Mo[i.position].call(this,s,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const e=this._size=Do(this,i),a=Object.assign({},t,e),r=Oo(this.chart,i,a),l=To(i,a,r,this.chart);this.xAlign=r.xAlign,this.yAlign=r.yAlign,n={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(n={opacity:0});this._tooltipItems=o,this.$context=void 0,n&&this._resolveAnimations().update(this,n),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,s){const n=this.getCaretPosition(t,i,s);e.lineTo(n.x1,n.y1),e.lineTo(n.x2,n.y2),e.lineTo(n.x3,n.y3)}getCaretPosition(t,e,i){const{xAlign:s,yAlign:n}=this,{caretSize:o,cornerRadius:a}=i,{topLeft:r,topRight:l,bottomLeft:h,bottomRight:c}=Me(a),{x:d,y:u}=t,{width:f,height:p}=e;let g,m,b,x,y,_;return"center"===n?(y=u+p/2,"left"===s?(g=d,m=g-o,x=y+o,_=y-o):(g=d+f,m=g+o,x=y-o,_=y+o),b=g):(m="left"===s?d+Math.max(r,h)+o:"right"===s?d+f-Math.max(l,c)-o:this.caretX,"top"===n?(x=u,y=x-o,g=m-o,b=m+o):(x=u+p,y=x+o,g=m+o,b=m-o),_=x),{x1:g,x2:m,x3:b,y1:x,y2:y,y3:_}}drawTitle(t,e,i){const s=this.title,n=s.length;let o,a,r;if(n){const l=gi(i.rtl,this.x,this.width);for(t.x=Ao(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline="middle",o=Ee(i.titleFont),a=i.titleSpacing,e.fillStyle=i.titleColor,e.font=o.string,r=0;r<n;++r)e.fillText(s[r],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+a,r+1===n&&(t.y+=i.titleMarginBottom-a)}}_drawColorBox(t,e,i,s,n){const o=this.labelColors[i],a=this.labelPointStyles[i],{boxHeight:r,boxWidth:l,boxPadding:h}=n,c=Ee(n.bodyFont),d=Ao(this,"left",n),u=s.x(d),f=r<c.lineHeight?(c.lineHeight-r)/2:0,g=e.y+f;if(n.usePointStyle){const e={radius:Math.min(l,r)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},i=s.leftForLtr(u,l)+l/2,h=g+r/2;t.strokeStyle=n.multiKeyBackground,t.fillStyle=n.multiKeyBackground,he(t,e,i,h),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,he(t,e,i,h)}else{t.lineWidth=p(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const e=s.leftForLtr(u,l-h),i=s.leftForLtr(s.xPlus(u,1),l-h-2),a=Me(o.borderRadius);Object.values(a).some((t=>0!==t))?(t.beginPath(),t.fillStyle=n.multiKeyBackground,xe(t,{x:e,y:g,w:l,h:r,radius:a}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),xe(t,{x:i,y:g+1,w:l-2,h:r-2,radius:a}),t.fill()):(t.fillStyle=n.multiKeyBackground,t.fillRect(e,g,l,r),t.strokeRect(e,g,l,r),t.fillStyle=o.backgroundColor,t.fillRect(i,g+1,l-2,r-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:s}=this,{bodySpacing:n,bodyAlign:o,displayColors:a,boxHeight:r,boxWidth:l,boxPadding:h}=i,c=Ee(i.bodyFont);let d=c.lineHeight,u=0;const f=gi(i.rtl,this.x,this.width),p=function(i){e.fillText(i,f.x(t.x+u),t.y+d/2),t.y+=d+n},g=f.textAlign(o);let m,b,x,y,v,w,k;for(e.textAlign=o,e.textBaseline="middle",e.font=c.string,t.x=Ao(this,g,i),e.fillStyle=i.bodyColor,_(this.beforeBody,p),u=a&&"right"!==g?"center"===o?l/2+h:l+2+h:0,y=0,w=s.length;y<w;++y){for(m=s[y],b=this.labelTextColors[y],e.fillStyle=b,_(m.before,p),x=m.lines,a&&x.length&&(this._drawColorBox(e,t,y,f,i),d=Math.max(c.lineHeight,r)),v=0,k=x.length;v<k;++v)p(x[v]),d=c.lineHeight;_(m.after,p)}u=0,d=c.lineHeight,_(this.afterBody,p),t.y-=n}drawFooter(t,e,i){const s=this.footer,n=s.length;let o,a;if(n){const r=gi(i.rtl,this.x,this.width);for(t.x=Ao(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=r.textAlign(i.footerAlign),e.textBaseline="middle",o=Ee(i.footerFont),e.fillStyle=i.footerColor,e.font=o.string,a=0;a<n;++a)e.fillText(s[a],r.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+i.footerSpacing}}drawBackground(t,e,i,s){const{xAlign:n,yAlign:o}=this,{x:a,y:r}=t,{width:l,height:h}=i,{topLeft:c,topRight:d,bottomLeft:u,bottomRight:f}=Me(s.cornerRadius);e.fillStyle=s.backgroundColor,e.strokeStyle=s.borderColor,e.lineWidth=s.borderWidth,e.beginPath(),e.moveTo(a+c,r),"top"===o&&this.drawCaret(t,e,i,s),e.lineTo(a+l-d,r),e.quadraticCurveTo(a+l,r,a+l,r+d),"center"===o&&"right"===n&&this.drawCaret(t,e,i,s),e.lineTo(a+l,r+h-f),e.quadraticCurveTo(a+l,r+h,a+l-f,r+h),"bottom"===o&&this.drawCaret(t,e,i,s),e.lineTo(a+u,r+h),e.quadraticCurveTo(a,r+h,a,r+h-u),"center"===o&&"left"===n&&this.drawCaret(t,e,i,s),e.lineTo(a,r+c),e.quadraticCurveTo(a,r,a+c,r),e.closePath(),e.fill(),s.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,s=i&&i.x,n=i&&i.y;if(s||n){const i=Mo[t.position].call(this,this._active,this._eventPosition);if(!i)return;const o=this._size=Do(this,t),a=Object.assign({},i,this._size),r=Oo(e,t,a),l=To(t,a,r,e);s._to===l.x&&n._to===l.y||(this.xAlign=r.xAlign,this.yAlign=r.yAlign,this.width=o.width,this.height=o.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const s={width:this.width,height:this.height},n={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=Se(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=i,this.drawBackground(n,t,s,e),mi(t,e.textDirection),n.y+=o.top,this.drawTitle(n,t,e),this.drawBody(n,t,e),this.drawFooter(n,t,e),bi(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,s=t.map((({datasetIndex:t,index:e})=>{const i=this.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}})),n=!v(i,s),o=this._positionChanged(s,e);(n||o)&&(this._active=s,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,n=this._active||[],o=this._getActiveElements(t,n,e,i),a=this._positionChanged(o,t),r=e||!v(o,n)||a;return r&&(this._active=o,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),r}_getActiveElements(t,e,i,s){const n=this.options;if("mouseout"===t.type)return[];if(!s)return e;const o=this.chart.getElementsAtEventForMode(t,n.mode,n,i);return n.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:i,caretY:s,options:n}=this,o=Mo[n.position].call(this,t,e);return!1!==o&&(i!==o.x||s!==o.y)}}Io.positioners=Mo;var Fo={id:"tooltip",_element:Io,positioners:Mo,afterInit(t,e,i){i&&(t.tooltip=new Io({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",i))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i,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:c,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,s=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(s>0&&e.dataIndex<s)return i[e.dataIndex]}return""},afterTitle:c,beforeBody:c,beforeLabel:c,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 i=t.formattedValue;return u(i)||(e+=i),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:c,afterBody:c,beforeFooter:c,footer:c,afterFooter:c}},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"]},Vo=Object.freeze({__proto__:null,Decimation:to,Filler:bo,Legend:_o,SubTitle:Co,Title:wo,Tooltip:Fo});class No extends ps{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:i,label:s}of e)t[i]===s&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(u(t))return null;const i=this.getLabels();return e=isFinite(e)&&i[e]===t?e:function(t,e,i,s){const n=t.indexOf(e);return-1===n?((t,e,i,s)=>("string"==typeof e?(i=t.push(e)-1,s.unshift({index:i,label:e})):isNaN(e)&&(i=null),i))(t,e,i,s):n!==t.lastIndexOf(e)?i:n}(i,t,b(e,t),this._addedLabels),((t,e)=>null===t?null:it(Math.round(t),0,e))(e,i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:s}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),e||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,s=[];let n=this.getLabels();n=0===t&&e===n.length-1?n:n.slice(t,e+1),this._valueRange=Math.max(n.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let i=t;i<=e;i++)s.push({value:i});return s}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 Bo(t,e,{horizontal:i,minRotation:s}){const n=X(s),o=(i?Math.sin(n):Math.cos(n))||.001,a=.75*e*(""+t).length;return Math.min(e/o,a)}No.id="category",No.defaults={ticks:{callback:No.prototype.getLabelForValue}};class Ho extends ps{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 u(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:s,max:n}=this;const o=t=>s=e?s:t,a=t=>n=i?n:t;if(t){const t=j(s),e=j(n);t<0&&e<0?a(0):t>0&&e>0&&o(0)}if(s===n){let e=1;(n>=Number.MAX_SAFE_INTEGER||s<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*n)),a(n+e),t||o(s-e)}this.min=s,this.max=n}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:s}=t;return s?(e=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const s=function(t,e){const i=[],{bounds:s,step:n,min:o,max:a,precision:r,count:l,maxTicks:h,maxDigits:c,includeBounds:d}=t,f=n||1,p=h-1,{min:g,max:m}=e,b=!u(o),x=!u(a),y=!u(l),_=(m-g)/(c+1);let v,w,k,C,M=$((m-g)/p/f)*f;if(M<1e-14&&!b&&!x)return[{value:g},{value:m}];C=Math.ceil(m/M)-Math.floor(g/M),C>p&&(M=$(C*M/p/f)*f),u(r)||(v=Math.pow(10,r),M=Math.ceil(M*v)/v),"ticks"===s?(w=Math.floor(g/M)*M,k=Math.ceil(m/M)*M):(w=g,k=m),b&&x&&n&&function(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}((a-o)/n,M/1e3)?(C=Math.round(Math.min((a-o)/M,h)),M=(a-o)/C,w=o,k=a):y?(w=b?o:w,k=x?a:k,C=l-1,M=(k-w)/C):(C=(k-w)/M,C=Y(C,Math.round(C),M/1e3)?Math.round(C):Math.ceil(C));const S=Math.max(K(M),K(w));v=Math.pow(10,u(r)?S:r),w=Math.round(w*v)/v,k=Math.round(k*v)/v;let E=0;for(b&&(d&&w!==o?(i.push({value:o}),w<o&&E++,Y(Math.round((w+E*M)*v)/v,o,Bo(o,_,t))&&E++):w<o&&E++);E<C;++E)i.push({value:Math.round((w+E*M)*v)/v});return x&&d&&k!==a?i.length&&Y(i[i.length-1].value,a,Bo(a,_,t))?i[i.length-1].value=a:i.push({value:a}):x&&k!==a||i.push({value:k}),i}({maxTicks:i,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&&U(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,i=this.max;if(super.configure(),this.options.offset&&t.length){const s=(i-e)/Math.max(t.length-1,1)/2;e-=s,i+=s}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return ui(t,this.chart.options.locale,this.options.ticks.format)}}class Wo extends Ho{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=g(t)?t:0,this.max=g(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=X(this.options.ticks.minRotation),s=(t?Math.sin(i):Math.cos(i))||.001,n=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,n.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 jo(t){return 1==t/Math.pow(10,Math.floor(W(t)))}Wo.id="linear",Wo.defaults={ticks:{callback:os.formatters.numeric}};class $o extends ps{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=Ho.prototype.parse.apply(this,[t,e]);if(0!==i)return g(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=g(t)?Math.max(0,t):null,this.max=g(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,s=this.max;const n=e=>i=t?i:e,o=t=>s=e?s:t,a=(t,e)=>Math.pow(10,Math.floor(W(t))+e);i===s&&(i<=0?(n(1),o(10)):(n(a(i,-1)),o(a(s,1)))),i<=0&&n(a(s,-1)),s<=0&&o(a(i,1)),this._zero&&this.min!==this._suggestedMin&&i===a(this.min,0)&&n(a(i,-1)),this.min=i,this.max=s}buildTicks(){const t=this.options,e=function(t,e){const i=Math.floor(W(e.max)),s=Math.ceil(e.max/Math.pow(10,i)),n=[];let o=m(t.min,Math.pow(10,Math.floor(W(e.min)))),a=Math.floor(W(o)),r=Math.floor(o/Math.pow(10,a)),l=a<0?Math.pow(10,Math.abs(a)):1;do{n.push({value:o,major:jo(o)}),++r,10===r&&(r=1,++a,l=a>=0?1:l),o=Math.round(r*Math.pow(10,a)*l)/l}while(a<i||a===i&&r<s);const h=m(t.max,o);return n.push({value:h,major:jo(o)}),n}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&U(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":ui(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=W(t),this._valueRange=W(this.max)-W(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(W(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Zo(t){const e=t.ticks;if(e.display&&t.display){const t=Se(e.backdropPadding);return b(e.font&&e.font.size,ne.font.size)+t.height}return 0}function Yo(t,e,i,s,n){return t===s||t===n?{start:e-i/2,end:e+i/2}:t<s||t>n?{start:e-i,end:e}:{start:e,end:e+i}}function Uo(t,e,i,s,n){const o=Math.abs(Math.sin(i)),a=Math.abs(Math.cos(i));let r=0,l=0;s.start<e.l?(r=(e.l-s.start)/o,t.l=Math.min(t.l,e.l-r)):s.end>e.r&&(r=(s.end-e.r)/o,t.r=Math.max(t.r,e.r+r)),n.start<e.t?(l=(e.t-n.start)/a,t.t=Math.min(t.t,e.t-l)):n.end>e.b&&(l=(n.end-e.b)/a,t.b=Math.max(t.b,e.b+l))}function Xo(t){return 0===t||180===t?"center":t<180?"left":"right"}function qo(t,e,i){return 90===i||270===i?t-=e/2:(i>270||i<90)&&(t-=e),t}function Ko(t,e,i,s){const{ctx:n}=t;if(i)n.arc(t.xCenter,t.yCenter,e,0,R);else{let i=t.getPointPosition(0,e);n.moveTo(i.x,i.y);for(let o=1;o<s;o++)i=t.getPointPosition(o,e),n.lineTo(i.x,i.y)}}$o.id="logarithmic",$o.defaults={ticks:{callback:os.formatters.logarithmic,major:{enabled:!0}}};class Go extends Ho{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=Se(Zo(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=g(t)&&!isNaN(t)?t:0,this.max=g(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Zo(this.options))}generateTickLabels(t){Ho.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const i=y(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?function(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},i=Object.assign({},e),s=[],n=[],o=t._pointLabels.length,a=t.options.pointLabels,r=a.centerPointLabels?z/o:0;for(let d=0;d<o;d++){const o=a.setContext(t.getPointLabelContext(d));n[d]=o.padding;const u=t.getPointPosition(d,t.drawingArea+n[d],r),p=Ee(o.font),g=(l=t.ctx,h=p,c=f(c=t._pointLabels[d])?c:[c],{w:ae(l,h.string,c),h:c.length*h.lineHeight});s[d]=g;const m=tt(t.getIndexAngle(d)+r),b=Math.round(q(m));Uo(i,e,m,Yo(b,u.x,g.w,0,180),Yo(b,u.y,g.h,90,270))}var l,h,c;t.setCenterPoint(e.l-i.l,i.r-e.r,e.t-i.t,i.b-e.b),t._pointLabelItems=function(t,e,i){const s=[],n=t._pointLabels.length,o=t.options,a=Zo(o)/2,r=t.drawingArea,l=o.pointLabels.centerPointLabels?z/n:0;for(let o=0;o<n;o++){const n=t.getPointPosition(o,r+a+i[o],l),u=Math.round(q(tt(n.angle+N))),f=e[o],p=qo(n.y,f.h,u),g=Xo(u),m=(h=n.x,c=f.w,"right"===(d=g)?h-=c:"center"===d&&(h-=c/2),h);s.push({x:n.x,y:p,textAlign:g,left:m,top:p,right:m+f.w,bottom:p+f.h})}var h,c,d;return s}(t,s,n)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,s){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,s))}getIndexAngle(t){return tt(t*(R/(this._pointLabels.length||1))+X(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(u(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(u(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 i=e[t];return function(t,e,i){return De(t,{label:i,index:e,type:"pointLabel"})}(this.getContext(),t,i)}}getPointPosition(t,e,i=0){const s=this.getIndexAngle(t)-N+i;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:i,right:s,bottom:n}=this._pointLabelItems[t];return{left:e,top:i,right:s,bottom:n}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),Ko(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:i,grid:s}=e,n=this._pointLabels.length;let o,a,r;if(e.pointLabels.display&&function(t,e){const{ctx:i,options:{pointLabels:s}}=t;for(let n=e-1;n>=0;n--){const e=s.setContext(t.getPointLabelContext(n)),o=Ee(e.font),{x:a,y:r,textAlign:l,left:h,top:c,right:d,bottom:f}=t._pointLabelItems[n],{backdropColor:p}=e;if(!u(p)){const t=Me(e.borderRadius),s=Se(e.backdropPadding);i.fillStyle=p;const n=h-s.left,o=c-s.top,a=d-h+s.width,r=f-c+s.height;Object.values(t).some((t=>0!==t))?(i.beginPath(),xe(i,{x:n,y:o,w:a,h:r,radius:t}),i.fill()):i.fillRect(n,o,a,r)}me(i,t._pointLabels[n],a,r+o.lineHeight/2,o,{color:e.color,textAlign:l,textBaseline:"middle"})}}(this,n),s.display&&this.ticks.forEach(((t,e)=>{0!==e&&(a=this.getDistanceFromCenterForValue(t.value),function(t,e,i,s){const n=t.ctx,o=e.circular,{color:a,lineWidth:r}=e;!o&&!s||!a||!r||i<0||(n.save(),n.strokeStyle=a,n.lineWidth=r,n.setLineDash(e.borderDash),n.lineDashOffset=e.borderDashOffset,n.beginPath(),Ko(t,i,o,s),n.closePath(),n.stroke(),n.restore())}(this,s.setContext(this.getContext(e-1)),a,n))})),i.display){for(t.save(),o=n-1;o>=0;o--){const s=i.setContext(this.getPointLabelContext(o)),{color:n,lineWidth:l}=s;l&&n&&(t.lineWidth=l,t.strokeStyle=n,t.setLineDash(s.borderDash),t.lineDashOffset=s.borderDashOffset,a=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),r=this.getPointPosition(o,a),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(r.x,r.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const s=this.getIndexAngle(0);let n,o;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 r=i.setContext(this.getContext(a)),l=Ee(r.font);if(n=this.getDistanceFromCenterForValue(this.ticks[a].value),r.showLabelBackdrop){t.font=l.string,o=t.measureText(s.label).width,t.fillStyle=r.backdropColor;const e=Se(r.backdropPadding);t.fillRect(-o/2-e.left,-n-l.size/2-e.top,o+e.width,l.size+e.height)}me(t,s.label,0,-n,l,{color:r.color})})),t.restore()}drawTitle(){}}Go.id="radialLinear",Go.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:os.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},Go.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Go.descriptors={angleLines:{_fallback:"grid"}};const Jo={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}},Qo=Object.keys(Jo);function ta(t,e){return t-e}function ea(t,e){if(u(e))return null;const i=t._adapter,{parser:s,round:n,isoWeekday:o}=t._parseOpts;let a=e;return"function"==typeof s&&(a=s(a)),g(a)||(a="string"==typeof s?i.parse(a,s):i.parse(a)),null===a?null:(n&&(a="week"!==n||!Z(o)&&!0!==o?i.startOf(a,n):i.startOf(a,"isoWeek",o)),+a)}function ia(t,e,i,s){const n=Qo.length;for(let o=Qo.indexOf(t);o<n-1;++o){const t=Jo[Qo[o]],n=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((i-e)/(n*t.size))<=s)return Qo[o]}return Qo[n-1]}function sa(t,e,i){if(i){if(i.length){const{lo:s,hi:n}=nt(i,e);t[i[s]>=e?i[s]:i[n]]=!0}}else t[e]=!0}function na(t,e,i){const s=[],n={},o=e.length;let a,r;for(a=0;a<o;++a)r=e[a],n[r]=a,s.push({value:r,major:!1});return 0!==o&&i?function(t,e,i,s){const n=t._adapter,o=+n.startOf(e[0].value,s),a=e[e.length-1].value;let r,l;for(r=o;r<=a;r=+n.add(r,1,s))l=i[r],l>=0&&(e[l].major=!0);return e}(t,s,n,i):s}class oa extends ps{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 i=t.time||(t.time={}),s=this._adapter=new vs._date(t.adapters.date);s.init(e),S(i.displayFormats,s.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:ea(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:s,max:n,minDefined:o,maxDefined:a}=this.getUserBounds();function r(t){o||isNaN(t.min)||(s=Math.min(s,t.min)),a||isNaN(t.max)||(n=Math.max(n,t.max))}o&&a||(r(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||r(this.getMinMax(!1))),s=g(s)&&!isNaN(s)?s:+e.startOf(Date.now(),i),n=g(n)&&!isNaN(n)?n:+e.endOf(Date.now(),i)+1,this.min=Math.min(s,n-1),this.max=Math.max(s+1,n)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,s="labels"===i.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 n=this.min,o=function(t,e,i){let s=0,n=t.length;for(;s<n&&t[s]<e;)s++;for(;n>s&&t[n-1]>i;)n--;return s>0||n<t.length?t.slice(s,n):t}(s,n,this.max);return this._unit=e.unit||(i.autoSkip?ia(e.minUnit,this.min,this.max,this._getLabelCapacity(n)):function(t,e,i,s,n){for(let o=Qo.length-1;o>=Qo.indexOf(i);o--){const i=Qo[o];if(Jo[i].common&&t._adapter.diff(n,s,i)>=e-1)return i}return Qo[i?Qo.indexOf(i):0]}(this,o.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=Qo.indexOf(t)+1,i=Qo.length;e<i;++e)if(Jo[Qo[e]].common)return Qo[e]}(this._unit):void 0,this.initOffsets(s),t.reverse&&o.reverse(),na(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((t=>+t.value)))}initOffsets(t){let e,i,s=0,n=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),s=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),n=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;s=it(s,0,o),n=it(n,0,o),this._offsets={start:s,end:n,factor:1/(s+1+n)}}_generate(){const t=this._adapter,e=this.min,i=this.max,s=this.options,n=s.time,o=n.unit||ia(n.minUnit,e,i,this._getLabelCapacity(e)),a=b(n.stepSize,1),r="week"===o&&n.isoWeekday,l=Z(r)||!0===r,h={};let c,d,u=e;if(l&&(u=+t.startOf(u,"isoWeek",r)),u=+t.startOf(u,l?"day":o),t.diff(i,e,o)>1e5*a)throw new Error(e+" and "+i+" are too far apart with stepSize of "+a+" "+o);const f="data"===s.ticks.source&&this.getDataTimestamps();for(c=u,d=0;c<i;c=+t.add(c,a,o),d++)sa(h,c,f);return c!==i&&"ticks"!==s.bounds&&1!==d||sa(h,c,f),Object.keys(h).sort(((t,e)=>t-e)).map((t=>+t))}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}_tickFormatFunction(t,e,i,s){const n=this.options,o=n.time.displayFormats,a=this._unit,r=this._majorUnit,l=a&&o[a],h=r&&o[r],c=i[e],d=r&&h&&c&&c.major,u=this._adapter.format(t,s||(d?h:l)),f=n.ticks.callback;return f?y(f,[u,e,i],this):u}generateTickLabels(t){let e,i,s;for(e=0,i=t.length;e<i;++e)s=t[e],s.label=this._tickFormatFunction(s.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+i)*e.factor)}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,i=this.ctx.measureText(t).width,s=X(this.isHorizontal()?e.maxRotation:e.minRotation),n=Math.cos(s),o=Math.sin(s),a=this._resolveTickFontOptions(0).size;return{w:i*n+a*o,h:i*o+a*n}}_getLabelCapacity(t){const e=this.options.time,i=e.displayFormats,s=i[e.unit]||i.millisecond,n=this._tickFormatFunction(t,0,na(this,[t],this._majorUnit),s),o=this._getLabelSize(n),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(t=0,e=s.length;t<e;++t)i=i.concat(s[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(i)}getLabelTimestamps(){const t=this._cache.labels||[];let e,i;if(t.length)return t;const s=this.getLabels();for(e=0,i=s.length;e<i;++e)t.push(ea(this,s[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return ht(t.sort(ta))}}function aa(t,e,i){let s,n,o,a,r=0,l=t.length-1;i?(e>=t[r].pos&&e<=t[l].pos&&({lo:r,hi:l}=ot(t,"pos",e)),({pos:s,time:o}=t[r]),({pos:n,time:a}=t[l])):(e>=t[r].time&&e<=t[l].time&&({lo:r,hi:l}=ot(t,"time",e)),({time:s,pos:o}=t[r]),({time:n,pos:a}=t[l]));const h=n-s;return h?o+(a-o)*(e-s)/h:o}oa.id="time",oa.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class ra extends oa{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=aa(e,this.min),this._tableRange=aa(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,s=[],n=[];let o,a,r,l,h;for(o=0,a=t.length;o<a;++o)l=t[o],l>=e&&l<=i&&s.push(l);if(s.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(o=0,a=s.length;o<a;++o)h=s[o+1],r=s[o-1],l=s[o],Math.round((h+r)/2)!==l&&n.push({time:l,pos:o/(a-1)});return n}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),i=this.getLabelTimestamps();return t=e.length&&i.length?this.normalize(e.concat(i)):e.length?e:i,t=this._cache.all=t,t}getDecimalForValue(t){return(aa(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return aa(this._table,i*this._tableRange+this._minPos,!0)}}ra.id="timeseries",ra.defaults=oa.defaults;const la=[xs,Gn,Vo,Object.freeze({__proto__:null,CategoryScale:No,LinearScale:Wo,LogarithmicScale:$o,RadialLinearScale:Go,TimeScale:oa,TimeSeriesScale:ra})];Ln.register(...la);const ha=Ln;function ca(t){for(var e=arguments,i=function(i){var s=null!=e[i]?e[i]:{},n=Object.keys(s);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(s).filter((function(t){return Object.getOwnPropertyDescriptor(s,t).enumerable})))),n.forEach((function(e){!function(t,e,i){e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i}(t,e,s[e])}))},s=1;s<arguments.length;s++)i(s);return t}function da(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function ua(t,e){t.labels=e}function fa(t,e){t.datasets=e.map((function(e){var i=t.datasets.find((function(t){return t.label===e.label&&t.type===e.type}));return i&&e.data?(Object.assign(i,e),i):ca({},e)}))}function pa(t){var e={labels:[],datasets:[]};return ua(e,t.labels),fa(e,t.datasets),e}var ga={datasets:[]};function ma(t,e){var i,s=t.height,n=void 0===s?150:s,r=t.width,l=void 0===r?300:r,h=t.redraw,c=void 0!==h&&h,d=t.type,u=t.data,f=t.options,p=t.plugins,g=void 0===p?[]:p,m=t.getDatasetAtEvent,b=t.getElementAtEvent,x=t.getElementsAtEvent,y=t.fallbackContent,_=t.onClick,v=function(t,e){if(null==t)return{};var i,s,n=function(t,e){if(null==t)return{};var i,s,n={},o=Object.keys(t);for(s=0;s<o.length;s++)i=o[s],e.indexOf(i)>=0||(n[i]=t[i]);return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(s=0;s<o.length;s++)i=o[s],e.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(n[i]=t[i])}return n}(t,["height","width","redraw","type","data","options","plugins","getDatasetAtEvent","getElementAtEvent","getElementsAtEvent","fallbackContent","onClick"]),w=(0,o.useRef)(null),k=(0,o.useRef)(),C=function(t){if(Array.isArray(t))return t}(i=(0,o.useState)())||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}(),M=C[0],S=C[1],E=M||("function"==typeof u?ga:u),L=function(){w.current&&(k.current=new ha(w.current,{type:d,data:pa(E),options:f,plugins:g}),da(e,k.current))},D=function(){da(e,null),k.current&&(k.current.destroy(),k.current=null)};return(0,o.useEffect)((function(){"function"==typeof u&&w.current&&S(u(w.current))}),[u]),(0,o.useEffect)((function(){var t,e;!c&&k.current&&f&&(t=k.current,e=f,t.options=ca({},e))}),[c,f]),(0,o.useEffect)((function(){!c&&k.current&&ua(k.current.config.data,E.labels)}),[c,E.labels]),(0,o.useEffect)((function(){!c&&k.current&&E.datasets&&fa(k.current.config.data,E.datasets)}),[c,E.datasets]),(0,o.useEffect)((function(){k.current&&(c?(D(),setTimeout(L)):k.current.update())}),[c,f,E.labels,E.datasets]),(0,o.useEffect)((function(){return L(),function(){return D()}}),[]),a().createElement("canvas",Object.assign({ref:w,role:"img",height:n,width:l,onClick:function(t){_&&_(t);var e=k.current;e&&(m&&m(e.getElementsAtEventForMode(t.nativeEvent,"dataset",{intersect:!0},!1),t),b&&b(e.getElementsAtEventForMode(t.nativeEvent,"nearest",{intersect:!0},!1),t),x&&x(e.getElementsAtEventForMode(t.nativeEvent,"index",{intersect:!0},!1),t))}},v),y)}var ba=(0,o.forwardRef)(ma);function xa(t){return(0,o.forwardRef)((function(e,i){return a().createElement(ba,Object.assign({},e,{ref:i,type:t}))}))}xa("line"),xa("bar"),xa("radar"),xa("doughnut");var ya=xa("polarArea");xa("bubble"),xa("pie"),xa("scatter");const _a=()=>(0,t.createElement)("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M3.83366 3.3335H17.167C18.0837 3.3335 18.8337 4.0835 18.8337 5.00016V15.0002C18.8337 15.9168 18.0837 16.6668 17.167 16.6668H3.83366C2.91699 16.6668 2.16699 15.9168 2.16699 15.0002V5.00016C2.16699 4.0835 2.91699 3.3335 3.83366 3.3335Z",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.createElement)("path",{d:"M18.8337 5L10.5003 10.8333L2.16699 5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),va=()=>(0,t.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M11.9346 9.5563H13.9757H14.5576L14.47 10.1315L14.0644 12.7964L13.9998 13.2212H13.5701H11.9334V18.5601C15.7868 17.6766 18.6668 14.2059 18.6668 10.0563C18.6668 5.23582 14.784 1.33356 10.0014 1.3335L11.9346 9.5563ZM11.9346 9.5563V8.32631C11.9346 8.03337 12.0068 7.8056 12.1337 7.65767C12.2486 7.52389 12.4684 7.38503 12.9274 7.38503H14.0834H14.5834V6.88503V4.61657V4.19505L14.168 4.12377L14.0834 4.61657L14.1679 4.12375L14.1678 4.12373L14.1675 4.12368L14.1666 4.12353L14.1637 4.12304L14.1534 4.12132L14.1157 4.11516C14.0832 4.10994 14.0363 4.1026 13.9771 4.09385C13.8589 4.07635 13.6912 4.05314 13.4914 4.02996C13.094 3.98384 12.56 3.93669 12.0315 3.93669C10.883 3.93669 9.87843 4.28879 9.16067 5.01132C8.44276 5.734 8.06919 6.7694 8.06919 8.02385V9.55745H6.24115H5.74115V10.0574V12.7223V13.2223H6.24115H8.0669V18.5612C4.21356 17.6778 1.3335 14.207 1.3335 10.0574C1.3335 5.23596 5.21624 1.33464 10.0013 1.3335L11.9346 9.5563Z",fill:"white",stroke:"white"})),wa=()=>(0,t.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},(0,t.createElement)("path",{d:"M3.5901 11.9296L3.58928 12.1136C3.58991 12.1136 3.59053 12.1136 3.59116 12.1136L3.59303 12.1136L3.59249 11.934C3.59169 11.9325 3.5909 11.9311 3.5901 11.9296ZM3.5901 11.9296C3.53598 11.828 3.48715 11.7233 3.44389 11.616L3.5912 11.6853L3.5901 11.9296ZM6.59245 16.8966H6.5923C5.30933 16.897 4.0439 16.6556 2.86038 16.1911C4.25955 15.9944 5.58943 15.4315 6.71109 14.5506L7.81648 13.6824L6.41112 13.6574C5.73068 13.6454 5.07106 13.4208 4.52464 13.0151C4.19179 12.768 3.9111 12.4612 3.69542 12.1127C4.04014 12.1055 4.38278 12.0555 4.71546 11.9639L4.68242 10.9919C3.94479 10.8417 3.28165 10.4414 2.80507 9.85876C2.48597 9.46861 2.26362 9.01271 2.15125 8.52806C2.5077 8.63592 2.87784 8.69746 3.25256 8.71019L5.00528 8.76974L3.54748 7.79486C2.85724 7.33326 2.36854 6.62626 2.18064 5.81743C2.04836 5.24805 2.07213 4.65824 2.24295 4.10824C3.13053 5.05234 4.17689 5.83656 5.3364 6.42411C6.73469 7.13266 8.2663 7.53937 9.83189 7.61788L10.4942 7.65109L10.3439 7.00519C10.1811 6.30558 10.2536 5.57181 10.5501 4.91754C10.8465 4.26328 11.3505 3.72503 11.9838 3.38617C12.6172 3.04731 13.3446 2.92676 14.0534 3.04318C14.7622 3.1596 15.4128 3.50649 15.9045 4.03013L16.0933 4.23122L16.3641 4.17875C16.7226 4.10929 17.0752 4.01545 17.4196 3.89815C17.2209 4.10336 16.9947 4.28325 16.7458 4.43204L17.0622 5.35761C17.2653 5.33312 17.4672 5.301 17.6675 5.26135C17.4553 5.45828 17.231 5.6425 16.9956 5.81286L16.7777 5.97058L16.7893 6.23929C16.7956 6.3872 16.7957 6.53915 16.7957 6.70142C16.7957 11.4488 13.1777 16.8966 6.59245 16.8966Z",fill:"white",stroke:"white"})),ka=()=>(0,t.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},(0,t.createElement)("path",{d:"M6.49735 16.6808H6.99735V16.1808V7.90214V7.40214H6.49735H3.7462H3.2462V7.90214V16.1808V16.6808H3.7462H6.49735ZM7.17839 5.3412H7.1785L7.17828 5.33063C7.16719 4.80625 6.97258 4.31885 6.60396 3.96221C6.23442 3.60467 5.72404 3.4112 5.14068 3.4112C4.55852 3.4112 4.04142 3.60404 3.66585 3.95822C3.28935 4.31328 3.0835 4.80457 3.0835 5.3412C3.0835 6.42436 3.91629 7.2712 5.10402 7.2712H5.12235C5.71482 7.2712 6.2329 7.07318 6.6061 6.71528C6.97901 6.35765 7.17839 5.8673 7.17839 5.3412ZM10.7461 16.6808H11.2461V16.1808V11.5574C11.2461 11.3126 11.2677 11.1541 11.2995 11.0778L11.2995 11.0778L11.3018 11.0721C11.4523 10.6972 11.7596 10.3798 12.2494 10.3798C12.6 10.3798 12.7852 10.502 12.9062 10.6797C13.049 10.8895 13.1428 11.2405 13.1428 11.7521V16.1808V16.6808H13.6428H16.3939H16.8939V16.1808V11.4325C16.8939 10.0746 16.531 9.008 15.857 8.27658C15.1792 7.54113 14.2434 7.2062 13.2268 7.2062C12.3977 7.2062 11.7695 7.43637 11.2921 7.76668C11.2765 7.77741 11.2612 7.78822 11.2461 7.79912V7.40214H10.7461H7.9961H7.47349L7.49659 7.92424C7.5131 8.29748 7.51331 10.349 7.50899 12.3317C7.50684 13.3176 7.50362 14.2793 7.50094 14.9946L7.49751 15.8548L7.49648 16.0941L7.4962 16.157L7.49613 16.1731L7.49611 16.1771L7.49611 16.1782L7.49611 16.1784L7.9961 16.1808L7.4961 16.1785L7.4938 16.6808H7.9961H10.7461ZM1.3335 2.14662C1.3335 1.70916 1.70049 1.3335 2.17985 1.3335H17.8205C18.2998 1.3335 18.6668 1.70916 18.6668 2.14662V17.8537C18.6668 18.2912 18.2998 18.6668 17.8205 18.6668H2.17985C1.70049 18.6668 1.3335 18.2912 1.3335 17.8537V2.14662Z",fill:"white",stroke:"white"})),Ca=()=>(0,t.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},(0,t.createElement)("mask",{id:"path-1-inside-1",fill:"white"},(0,t.createElement)("path",{d:"M7.89977 10C7.64763 10.0003 7.40591 10.1006 7.22762 10.2789C7.04933 10.4572 6.94903 10.6989 6.94873 10.951C6.94873 11.477 7.37498 11.9135 7.89977 11.9032C8.14644 11.8947 8.38015 11.7907 8.55162 11.6131C8.72309 11.4356 8.81893 11.1984 8.81893 10.9516C8.81893 10.7048 8.72309 10.4676 8.55162 10.2901C8.38015 10.1126 8.14644 10.0086 7.89977 10ZM10.0115 14.1789C10.3725 14.1789 11.6191 14.1353 12.2757 13.4787C12.3183 13.4303 12.3417 13.3679 12.3417 13.3034C12.3417 13.2389 12.3183 13.1766 12.2757 13.1281C12.253 13.1046 12.2257 13.086 12.1956 13.0732C12.1655 13.0604 12.1331 13.0539 12.1004 13.0539C12.0677 13.0539 12.0353 13.0604 12.0052 13.0732C11.9751 13.086 11.9478 13.1046 11.9251 13.1281C11.5206 13.5441 10.6349 13.6861 10.0115 13.6861C9.38706 13.6861 8.51279 13.5441 8.09686 13.1281C8.0741 13.1046 8.04686 13.086 8.01674 13.0732C7.98662 13.0604 7.95425 13.0539 7.92154 13.0539C7.88884 13.0539 7.85646 13.0604 7.82635 13.0732C7.79623 13.086 7.76899 13.1046 7.74623 13.1281C7.72274 13.1509 7.70406 13.1781 7.6913 13.2082C7.67854 13.2384 7.67197 13.2707 7.67197 13.3034C7.67197 13.3361 7.67854 13.3685 7.6913 13.3986C7.70406 13.4287 7.72274 13.456 7.74623 13.4787C8.39248 14.1239 9.63915 14.1777 10.0115 14.1777V14.1789ZM11.1482 10.9625C11.1482 11.4873 11.5756 11.9135 12.1004 11.9135C12.6252 11.9135 13.0514 11.477 13.0514 10.9625C13.0394 10.7183 12.934 10.4881 12.757 10.3196C12.5799 10.151 12.3448 10.057 12.1004 10.057C11.8559 10.057 11.6209 10.151 11.4438 10.3196C11.2668 10.4881 11.1613 10.7183 11.1494 10.9625H11.1482Z"})),(0,t.createElement)("path",{d:"M7.89977 10C7.64763 10.0003 7.40591 10.1006 7.22762 10.2789C7.04933 10.4572 6.94903 10.6989 6.94873 10.951C6.94873 11.477 7.37498 11.9135 7.89977 11.9032C8.14644 11.8947 8.38015 11.7907 8.55162 11.6131C8.72309 11.4356 8.81893 11.1984 8.81893 10.9516C8.81893 10.7048 8.72309 10.4676 8.55162 10.2901C8.38015 10.1126 8.14644 10.0086 7.89977 10ZM10.0115 14.1789C10.3725 14.1789 11.6191 14.1353 12.2757 13.4787C12.3183 13.4303 12.3417 13.3679 12.3417 13.3034C12.3417 13.2389 12.3183 13.1766 12.2757 13.1281C12.253 13.1046 12.2257 13.086 12.1956 13.0732C12.1655 13.0604 12.1331 13.0539 12.1004 13.0539C12.0677 13.0539 12.0353 13.0604 12.0052 13.0732C11.9751 13.086 11.9478 13.1046 11.9251 13.1281C11.5206 13.5441 10.6349 13.6861 10.0115 13.6861C9.38706 13.6861 8.51279 13.5441 8.09686 13.1281C8.0741 13.1046 8.04686 13.086 8.01674 13.0732C7.98662 13.0604 7.95425 13.0539 7.92154 13.0539C7.88884 13.0539 7.85646 13.0604 7.82635 13.0732C7.79623 13.086 7.76899 13.1046 7.74623 13.1281C7.72274 13.1509 7.70406 13.1781 7.6913 13.2082C7.67854 13.2384 7.67197 13.2707 7.67197 13.3034C7.67197 13.3361 7.67854 13.3685 7.6913 13.3986C7.70406 13.4287 7.72274 13.456 7.74623 13.4787C8.39248 14.1239 9.63915 14.1777 10.0115 14.1777V14.1789ZM11.1482 10.9625C11.1482 11.4873 11.5756 11.9135 12.1004 11.9135C12.6252 11.9135 13.0514 11.477 13.0514 10.9625C13.0394 10.7183 12.934 10.4881 12.757 10.3196C12.5799 10.151 12.3448 10.057 12.1004 10.057C11.8559 10.057 11.6209 10.151 11.4438 10.3196C11.2668 10.4881 11.1613 10.7183 11.1494 10.9625H11.1482Z",fill:"white"}),(0,t.createElement)("path",{d:"M7.89977 10L7.93446 9.0006L7.91652 8.99998L7.89857 9L7.89977 10ZM6.94873 10.951L5.94873 10.9498V10.951H6.94873ZM7.89977 11.9032L7.91942 12.903L7.92694 12.9029L7.93446 12.9026L7.89977 11.9032ZM10.0115 14.1789H9.01154V15.1789H10.0115V14.1789ZM12.2757 13.4787L12.9828 14.1859L13.0059 14.1628L13.0274 14.1382L12.2757 13.4787ZM12.3417 13.3034H11.3417H12.3417ZM12.2757 13.1281L13.0274 12.4686L13.0112 12.4501L12.994 12.4324L12.2757 13.1281ZM12.1004 13.0539V14.0539V13.0539ZM11.9251 13.1281L12.642 13.8253L12.6434 13.8238L11.9251 13.1281ZM8.09686 13.1281L7.37855 13.8238L7.3841 13.8296L7.38975 13.8352L8.09686 13.1281ZM7.92154 13.0539V14.0539V13.0539ZM7.74623 13.1281L8.44195 13.8464L8.45343 13.8353L8.46454 13.8238L7.74623 13.1281ZM7.74623 13.4787L8.45271 12.771L8.44737 12.7657L8.44195 12.7604L7.74623 13.4787ZM10.0115 14.1777H11.0115V13.1777H10.0115V14.1777ZM11.1482 10.9625V9.9625H10.1482V10.9625H11.1482ZM13.0514 10.9625H14.0514V10.938L14.0502 10.9135L13.0514 10.9625ZM11.1494 10.9625V11.9625H12.1015L12.1482 11.0115L11.1494 10.9625ZM7.89857 9C7.38163 9.00062 6.88604 9.20625 6.52051 9.57178L7.93473 10.986C7.92577 10.9949 7.91364 11 7.90097 11L7.89857 9ZM6.52051 9.57178C6.15498 9.93731 5.94935 10.4329 5.94873 10.9498L7.94873 10.9522C7.94871 10.9649 7.94368 10.977 7.93473 10.986L6.52051 9.57178ZM5.94873 10.951C5.94873 12.0102 6.80835 12.9249 7.91942 12.903L7.88013 10.9034C7.8917 10.9032 7.90483 10.9057 7.91643 10.9105C7.92713 10.915 7.93376 10.9203 7.93748 10.9241C7.94409 10.9307 7.94873 10.9405 7.94873 10.951H5.94873ZM7.93446 12.9026C8.44018 12.8851 8.91933 12.6718 9.27089 12.3079L7.83236 10.9184C7.84097 10.9095 7.8527 10.9043 7.86509 10.9038L7.93446 12.9026ZM9.27089 12.3079C9.62244 11.9439 9.81893 11.4576 9.81893 10.9516H7.81893C7.81893 10.9392 7.82375 10.9273 7.83236 10.9184L9.27089 12.3079ZM9.81893 10.9516C9.81893 10.4456 9.62244 9.95933 9.27089 9.59536L7.83236 10.9848C7.82375 10.9759 7.81893 10.964 7.81893 10.9516H9.81893ZM9.27089 9.59536C8.91933 9.23139 8.44018 9.01815 7.93446 9.0006L7.86509 10.9994C7.8527 10.999 7.84097 10.9937 7.83236 10.9848L9.27089 9.59536ZM10.0115 15.1789C10.2259 15.1789 10.7052 15.1666 11.24 15.0533C11.7529 14.9447 12.4531 14.7156 12.9828 14.1859L11.5686 12.7716C11.4417 12.8985 11.1903 13.0195 10.8255 13.0967C10.4826 13.1694 10.1581 13.1789 10.0115 13.1789V15.1789ZM13.0274 14.1382C13.23 13.9073 13.3417 13.6106 13.3417 13.3034H11.3417C11.3417 13.1253 11.4065 12.9532 11.524 12.8193L13.0274 14.1382ZM13.3417 13.3034C13.3417 12.9963 13.23 12.6996 13.0274 12.4686L11.524 13.7876C11.4065 13.6537 11.3417 13.4816 11.3417 13.3034H13.3417ZM12.994 12.4324C12.878 12.3126 12.7391 12.2174 12.5856 12.1524L11.8055 13.994C11.7123 13.9545 11.6279 13.8966 11.5574 13.8238L12.994 12.4324ZM12.5856 12.1524C12.4321 12.0874 12.2671 12.0539 12.1004 12.0539V14.0539C11.9991 14.0539 11.8988 14.0335 11.8055 13.994L12.5856 12.1524ZM12.1004 12.0539C11.9337 12.0539 11.7687 12.0874 11.6152 12.1524L12.3952 13.994C12.302 14.0335 12.2017 14.0539 12.1004 14.0539V12.0539ZM11.6152 12.1524C11.4617 12.2174 11.3228 12.3126 11.2068 12.4324L12.6434 13.8238C12.5729 13.8966 12.4885 13.9545 12.3952 13.994L11.6152 12.1524ZM11.2082 12.431C11.2114 12.4277 11.1874 12.4523 11.1105 12.4892C11.0359 12.525 10.9346 12.5613 10.8078 12.593C10.5509 12.6572 10.2569 12.6861 10.0115 12.6861V14.6861C10.3895 14.6861 10.85 14.644 11.293 14.5332C11.7096 14.4291 12.2474 14.2311 12.642 13.8253L11.2082 12.431ZM10.0115 12.6861C9.76594 12.6861 9.47477 12.6573 9.21947 12.5932C8.94106 12.5233 8.82446 12.4415 8.80396 12.421L7.38975 13.8352C7.78519 14.2307 8.31369 14.4279 8.73252 14.533C9.17447 14.644 9.63267 14.6861 10.0115 14.6861V12.6861ZM8.81517 12.4324C8.69917 12.3126 8.56029 12.2174 8.40679 12.1524L7.62669 13.994C7.53343 13.9545 7.44904 13.8966 7.37855 13.8238L8.81517 12.4324ZM8.40679 12.1524C8.25329 12.0874 8.08827 12.0539 7.92154 12.0539V14.0539C7.82023 14.0539 7.71996 14.0335 7.62669 13.994L8.40679 12.1524ZM7.92154 12.0539C7.75481 12.0539 7.5898 12.0874 7.4363 12.1524L8.2164 13.994C8.12313 14.0335 8.02286 14.0539 7.92154 14.0539V12.0539ZM7.4363 12.1524C7.2828 12.2174 7.14392 12.3126 7.02792 12.4324L8.46454 13.8238C8.39405 13.8966 8.30966 13.9545 8.2164 13.994L7.4363 12.1524ZM7.05051 12.4098C6.93075 12.5258 6.83553 12.6647 6.7705 12.8182L8.61209 13.5983C8.57258 13.6916 8.51472 13.776 8.44195 13.8464L7.05051 12.4098ZM6.7705 12.8182C6.70547 12.9717 6.67197 13.1367 6.67197 13.3034H8.67197C8.67197 13.4047 8.65161 13.505 8.61209 13.5983L6.7705 12.8182ZM6.67197 13.3034C6.67197 13.4701 6.70547 13.6352 6.7705 13.7887L8.61209 13.0086C8.65161 13.1019 8.67197 13.2021 8.67197 13.3034H6.67197ZM6.7705 13.7887C6.83553 13.9422 6.93075 14.0811 7.05051 14.1971L8.44195 12.7604C8.51472 12.8309 8.57258 12.9153 8.61209 13.0086L6.7705 13.7887ZM7.03975 14.1865C7.56436 14.7102 8.26187 14.9386 8.77199 15.0479C9.30512 15.1622 9.78652 15.1777 10.0115 15.1777V13.1777C9.86417 13.1777 9.53604 13.1663 9.19118 13.0924C8.8233 13.0135 8.57435 12.8924 8.45271 12.771L7.03975 14.1865ZM9.01154 14.1777V14.1789H11.0115V14.1777H9.01154ZM10.1482 10.9625C10.1482 12.0411 11.0249 12.9135 12.1004 12.9135V10.9135C12.1142 10.9135 12.1271 10.9202 12.134 10.9271C12.1374 10.9305 12.1409 10.9353 12.1438 10.9419C12.1469 10.9492 12.1482 10.9568 12.1482 10.9625H10.1482ZM12.1004 12.9135C13.1845 12.9135 14.0514 12.0222 14.0514 10.9625H12.0514C12.0514 10.9399 12.0607 10.9288 12.063 10.9265C12.0648 10.9246 12.0684 10.9216 12.075 10.9188C12.0824 10.9156 12.0917 10.9135 12.1004 10.9135V12.9135ZM14.0502 10.9135C14.0257 10.4129 13.8095 9.94093 13.4465 9.59535L12.0674 11.0438C12.0585 11.0354 12.0532 11.0238 12.0526 11.0115L14.0502 10.9135ZM13.4465 9.59535C13.0836 9.24976 12.6016 9.05701 12.1004 9.05701V11.057C12.0881 11.057 12.0763 11.0523 12.0674 11.0438L13.4465 9.59535ZM12.1004 9.05701C11.5992 9.05701 11.1172 9.24976 10.7543 9.59535L12.1334 11.0438C12.1245 11.0523 12.1127 11.057 12.1004 11.057V9.05701ZM10.7543 9.59535C10.3913 9.94093 10.1751 10.4129 10.1506 10.9135L12.1482 11.0115C12.1476 11.0238 12.1423 11.0354 12.1334 11.0438L10.7543 9.59535ZM11.1494 9.9625H11.1482V11.9625H11.1494V9.9625Z",fill:"white",mask:"url(#path-1-inside-1)"}),(0,t.createElement)("path",{d:"M19.1668 10.0002C19.1668 12.4313 18.2011 14.7629 16.482 16.482C14.7629 18.2011 12.4313 19.1668 10.0002 19.1668C7.56901 19.1668 5.23743 18.2011 3.51835 16.482C1.79927 14.7629 0.833496 12.4313 0.833496 10.0002C0.833496 7.56901 1.79927 5.23743 3.51835 3.51835C5.23743 1.79927 7.56901 0.833496 10.0002 0.833496C12.4313 0.833496 14.7629 1.79927 16.482 3.51835C18.2011 5.23743 19.1668 7.56901 19.1668 10.0002ZM14.7806 8.66527C14.4196 8.66527 14.0908 8.80735 13.8502 9.03766C12.9323 8.3811 11.6731 7.95485 10.274 7.89985L10.8859 5.03412L12.8773 5.46037C12.8861 5.64632 12.9492 5.82561 13.0589 5.97602C13.1686 6.12643 13.32 6.24134 13.4943 6.30652C13.6687 6.3717 13.8584 6.38427 14.0398 6.34269C14.2213 6.3011 14.3865 6.20718 14.5151 6.07256C14.6437 5.93795 14.7299 5.76856 14.7631 5.5854C14.7963 5.40224 14.7751 5.21335 14.702 5.04216C14.6288 4.87097 14.5071 4.72499 14.3518 4.62234C14.1965 4.51968 14.0145 4.46485 13.8284 4.46464C13.6503 4.46526 13.476 4.51586 13.3253 4.61066C13.1746 4.70546 13.0535 4.84067 12.9759 5.00089L10.7553 4.5311C10.7254 4.52466 10.6945 4.52418 10.6644 4.52968C10.6343 4.53519 10.6056 4.54657 10.58 4.56318C10.5532 4.57989 10.5305 4.60232 10.5134 4.62888C10.4964 4.65543 10.4854 4.68543 10.4814 4.71672L9.80308 7.91131C8.38225 7.95485 7.1012 8.3811 6.17079 9.04797C5.93016 8.81881 5.60245 8.67672 5.24266 8.67672C4.93753 8.67627 4.64149 8.78055 4.404 8.97213C4.16651 9.16371 4.00196 9.43099 3.93784 9.72931C3.87373 10.0276 3.91393 10.3389 4.05173 10.6112C4.18953 10.8834 4.41658 11.1001 4.69495 11.2251C4.67204 11.3568 4.66173 11.4886 4.66173 11.6295C4.66173 13.6863 7.05766 15.3604 10.0116 15.3604C12.9644 15.3604 15.3604 13.6978 15.3604 11.6295C15.3604 11.4989 15.3489 11.3568 15.3271 11.2251C15.7866 11.0177 16.1155 10.5467 16.1155 10.0002C16.1155 9.25537 15.5139 8.66527 14.7806 8.66527Z",fill:"white"})),Ma=function(e){let{children:i,setModalStatus:s,className:n}=e;return(0,t.createElement)("div",{className:`wheeloflife-modal ${n}`},(0,t.createElement)("div",{className:"wheeloflife-modal-container"},(0,t.createElement)("button",{type:"button",className:"modal-close-btn",onClick:()=>s(!1)},(0,t.createElement)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M13 1L1 13",stroke:"#A3AABF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.createElement)("path",{d:"M1 1L13 13",stroke:"#A3AABF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),i))},Sa=window.wp.i18n;var Ea=i(8901),La=i.n(Ea);const Da=function(e){var i,s,o,a;let{setModalStatus:r,getWheelReport:l,reportLink:h,reportTitle:c}=e;const[d,u]=(0,t.useState)(!1),[f,p]=(0,t.useState)({}),[g,m]=(0,t.useState)(null),[b,x]=(0,t.useState)(""),[y,_]=(0,t.useState)("");return(0,t.useEffect)((()=>{let t=new FormData;t.append("action","getSocialShare"),t.append("security",wolVariablesFrontend.ajax_nonce),n()({url:wolVariablesFrontend.ajax_url,method:"POST",body:t}).then((t=>{!0===t.success&&""!=t.data&&p(JSON.parse(t.data))})),l(),La().options.positionClass="toast-bottom-full-width",La().options.timeOut="5000"}),[]),(0,t.useEffect)((()=>{m({facebookShare:`https://www.facebook.com/sharer.php?u=${h}`,twitterShare:`https://twitter.com/intent/tweet?text=${c} ${h}`,linkedInShare:`https://www.linkedin.com/shareArticle?mini=true&url=${h}&title=${c}`,redditShare:`http://www.reddit.com/submit?url=${h}&title=${c}`})}),[h,c]),(0,t.createElement)(t.Fragment,null,h&&g&&f&&Object.keys(f)?.length>0&&(f.email||f.facebook||f.twitter||f.linkedIn||f.reddit)&&(0,t.createElement)("div",{className:"wheel-widget-inner"},f.email&&(0,t.createElement)("div",{className:"wheel-widget"},(0,t.createElement)("h2",{className:"widget-title"},(0,Sa.__)("Get the report","wheel-of-life")),(0,t.createElement)("div",{className:"widget-content"},(0,t.createElement)("a",{type:"button",className:"wheeloflife-share-btn",onClick:()=>{u(!0), r(!0),!h&&l()}},(0,t.createElement)("i",null,(0,t.createElement)(_a,null)),(0,Sa.__)("Email My Wheel","wheel-of-life")))),(f.facebook||f.twitter||f.linkedIn||f.reddit)&&(0,t.createElement)("div",{className:"wheel-widget"},(0,t.createElement)("h2",{className:"widget-title"},(0,Sa.__)("Share the report","wheel-of-life")),(0,t.createElement)("div",{className:"widget-content"},f.facebook&&(0,t.createElement)("a",{type:"button",className:"wheeloflife-share-btn is-facebook",href:null!==(i=g.facebookShare)&&void 0!==i?i:"#",rel:"nofollow noopener",target:"_blank"},(0,t.createElement)("i",null,(0,t.createElement)(va,null))),f.twitter&&(0,t.createElement)("a",{type:"button",className:"wheeloflife-share-btn is-twitter",href:null!==(s=g.twitterShare)&&void 0!==s?s:"#",rel:"nofollow noopener",target:"_blank"},(0,t.createElement)("i",null,(0,t.createElement)(wa,null))),f.linkedIn&&(0,t.createElement)("a",{type:"button",className:"wheeloflife-share-btn is-linkedin",href:null!==(o=g.linkedInShare)&&void 0!==o?o:"#",rel:"nofollow noopener",target:"_blank"},(0,t.createElement)("i",null,(0,t.createElement)(ka,null))),f.reddit&&(0,t.createElement)("a",{type:"button",className:"wheeloflife-share-btn is-reddit",href:null!==(a=g.redditShare)&&void 0!==a?a:"#",rel:"nofollow noopener",target:"_blank"},(0,t.createElement)("i",null,(0,t.createElement)(Ca,null)))))),d&&(0,t.createElement)(Ma,{setModalStatus:u,className:"wheeloflife-share-modal"},(0,t.createElement)("div",{className:"wheeloflife-modal-header"},(0,t.createElement)("h2",{className:"wheeloflife-modal-title"},(0,Sa.__)("Email my Wheel","wheel-of-life"))),(0,t.createElement)("div",{className:"wheeloflife-modal-body"},(0,t.createElement)("p",null,(0,Sa.__)("Please enter the email address where you would like to send your assessment result:","wheel-of-life")),(0,t.createElement)("p",null,(0,t.createElement)("input",{value:y,type:"text",placeholder:(0,Sa.__)("Enter your full name","wheel-of-life"),onChange:t=>{_(t.target.value)}})),(0,t.createElement)("p",null,(0,t.createElement)("input",{id:"wheeloflife-send-to-email",type:"email",placeholder:(0,Sa.__)("Enter your email","wheel-of-life"),onChange:t=>x(t.target.value)}))),(0,t.createElement)("div",{className:"wheeloflife-modal-footer"},(0,t.createElement)("button",{type:"button",className:"wheeloflife-btn is-tertiary is-small",onClick:()=>u(!1)},(0,Sa.__)("Cancel","wheel-of-life")),(0,t.createElement)("button",{type:"button",className:"wheeloflife-btn is-primary is-small",onClick:()=>(()=>{let t=null!=b?b:jQuery("input#wheeloflife-send-to-email").val();if(""==t)return void alert((0,Sa.__)("No email supplied. Please enter valid email.","wheel-of-life"));let e=null!=h?h:"",i=new FormData;i.append("action","sendMyWheelEmail"),i.append("security",wolVariablesFrontend.ajax_nonce),i.append("reportLink",e),i.append("toEmail",t),i.append("fullName",y),n()({url:wolVariablesFrontend.ajax_url,method:"POST",body:i}).then((t=>{!0===t.success?La().success(t.data):La().error(t.data)}))})(),disabled:y.length<=0||!b.match(/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/g)},(0,Sa.__)("Send","wheel-of-life")))))},Pa=()=>(0,t.createElement)("svg",{width:"182",height:"316",viewBox:"0 0 182 316",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M174.585 173.644L38.71 309.514C30.0667 318.162 16.0531 318.162 7.41394 309.514C-1.22587 300.875 -1.22587 286.862 7.41394 278.223L127.643 157.998L7.41743 37.7771C-1.22238 29.1338 -1.22238 15.1223 7.41743 6.48247C16.0572 -2.16082 30.0702 -2.16082 38.7135 6.48247L174.589 142.355C178.909 146.677 181.066 152.336 181.066 157.997C181.066 163.661 178.904 169.324 174.585 173.644Z",fill:"black"})),Oa=window.wp.hooks,Ta=window.wp.url,Aa={id:"htmlLegend",afterUpdate(t,e,i){const s=((t,e)=>{const i=document.getElementById(e);let s=i.querySelector("ul");return s||(s=document.createElement("ul"),s.style.display="flex",s.style.flexWrap="wrap",s.style.margin=0,s.style.padding=0,i.appendChild(s)),s})(0,i.containerID);for(;s.firstChild;)s.firstChild.remove();t.options.plugins.legend.labels.generateLabels(t).forEach((e=>{const i=document.createElement("li");i.style.alignItems="flex-start",i.style.cursor="pointer",i.style.display="flex",i.style.flexDirection="row",i.style.marginLeft="10px",i.style.paddingLeft="30px",i.style.position="relative",i.onclick=()=>{const{type:i}=t.config;"pie"===i||"doughnut"===i?t.toggleDataVisibility(e.index):t.setDatasetVisibility(e.datasetIndex,!t.isDatasetVisible(e.datasetIndex)),t.update()};const n=document.createElement("span");n.style.background=e.fillStyle,n.style.borderColor=e.strokeStyle,n.style.borderWidth=e.lineWidth+"px",n.style.display="inline-block",n.style.height="20px",n.style.marginRight="10px",n.style.width="20px",n.style.position="absolute",n.style.inset="5px 0 0",n.style.borderRadius="50%";const o=document.createElement("p");o.style.color=e.fontColor,o.style.margin=0,o.style.padding=0,o.style.textAlign="left",o.style.textDecoration=e.hidden?"line-through":"";const a=document.createTextNode(e.text);o.appendChild(a),i.appendChild(n),i.appendChild(o),s.appendChild(i)}))}},za=e=>{let{data:i,options:s}=e;const n={...s};return s.plugins.htmlLegend={containerID:"wheeloflife-legend-container"},s.plugins.legend={display:!1},(0,t.createElement)("div",{className:"wheeloflife_polar_chart_wrapper"},(0,t.createElement)("div",{id:"wheeloflife-legend-container"}),(0,t.createElement)(ya,{data:i,options:n,plugins:[Aa]}))},Ra=function(e){let{postMeta:i,wheelCTA:s,postBlocks:o,setModalStatus:a,wheelId:r}=e;const[l,c]=(0,t.useState)(1),[d,u]=(0,t.useState)(0),[f,p]=(0,t.useState)({}),[g,m]=(0,t.useState)([]),[b,x]=(0,t.useState)([]),[y,_]=(0,t.useState)(1),[v,w]=(0,t.useState)([]),[k,C]=(0,t.useState)([]),[M,S]=(0,t.useState)(null),[E,L]=(0,t.useState)(null),[D,P]=(0,t.useState)(null),[O,T]=(0,t.useState)(!1);(0,t.useEffect)((()=>{s?.page?.value&&n()({path:(0,Ta.addQueryArgs)(`wp/v2/pages/${s.page.value}`),method:"GET"}).then((t=>{T(t.link)}))}),[]);var A=i.wheel_meta_range_max,z=i.wheel_meta_range_min,R=i.wheel_meta_input_type,I=i.wheel_chart_type?i.wheel_chart_type:"polar-chart";(0,t.useEffect)((()=>{let t=new FormData;t.append("action","getCTA"),t.append("mode","front"),n()({url:wolVariablesFrontend.ajax_url,method:"POST",body:t}).then((t=>{!0===t.success&&""!=t.data&&C(JSON.parse(t.data))}))}),[]);var F={responsive:!0,scales:{r:{ticks:{display:!1}}},borderWidth:"transparent",plugins:{legend:{position:"top",labels:{usePointStyle:!0,pointStyle:"circle",boxWidth:12,color:"#262933",font:{size:16,family:"Rubik"}},onClick:function(t,e,i){let s=o.find((t=>"wheeloflife/add-wheels"===t.blockName)).innerBlocks.map((t=>({label:t.attrs.label?.replace("&","&")?.replace("&","&"),link:t.attrs.link}))).find((t=>t.label===e.text)).link;s&&window.open(s,"_blank")},onHover:function(t){t.native.target.style.cursor="pointer"}}}};const V=(t,e,i)=>()=>{f[e]=t,p(f),u(d+1),c(l+1),g.push(e),b.push(t),v.push(i),m(g),x(b),w(v)};var N={labels:g,datasets:[{data:b,backgroundColor:v}]};const B=()=>{!function(t,e){let i=new FormData;i.append("chartData",JSON.stringify(t)),i.append("chartOptions",JSON.stringify(e)),i.append("wheelId",r),i.append("chartType",I),i.append("action","saveWheelReport"),i.append("security",wolVariablesFrontend.ajax_nonce),n()({url:wolVariablesFrontend.ajax_url,method:"POST",body:i}).then((t=>{!0===t.success&&(S(t.data.link),L(t.data.title),P(t.data.id))}))}((0,Oa.applyFilters)("wheeloflife_chart_data",{labels:g,datasets:[{data:b,backgroundColor:v}]}),(0,Oa.applyFilters)("wheeloflife_chart_options",F))};return(0,t.createElement)("form",{className:"wheeloflife-wheel-form"},""!=o&&null!=typeof o&&o.map((function(e,n){if("wheeloflife/add-wheels"===e.blockName){var o,r="",p="",m="#1DB53F",x=(0,Sa.__)("Skip this area - it's not important to me","wheel-of-life"),w="";if(null!=e.innerBlocks[d]){let t=e.innerBlocks[d].attrs;r=t.label?.replace("&","&")?.replace("&","&"),p=t.desc,m=t?.lengendColor?t?.lengendColor:m,o=t.isRequired,x=t?.skipText?t?.skipText:x,w=t?.link?t?.link:w}var C=e.innerBlocks.length;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"wheeloflife-title-wrap"},(0,t.createElement)("h2",{className:"wheeloflife-title"},w?(0,t.createElement)("a",{href:w,target:"_blank"},r):r),(0,t.createElement)("p",{dangerouslySetInnerHTML:{__html:p}})),(0,t.createElement)("div",{className:"wheeloflife-rating"},l==d+1&&l<=C&&(0,t.createElement)(h,{setValue:f.label,label:r,handleFormValue:V,setRangeValue:_,rangeValue:y,options:{maxValue:A,minValue:z,name:r,type:R,bgColor:m}})),l<=C&&x&&!o&&(0,t.createElement)("button",{type:"button",className:"wheeloflife-btn is-tertiary is-skip-btn p-0",onClick:()=>{c(l+1),u(d+1)}},x),(0,t.createElement)("div",{className:"wheeloflife-life-wheel"},(0,t.createElement)("div",{className:"wheeloflife-life-wheel-wrapper"},(0,t.createElement)("div",{className:"life-wheel"},(0,t.createElement)(t.Fragment,null,I&&"polar-chart"===I&&(0,t.createElement)(za,{data:N,options:F}),(0,Oa.applyFilters)("wheeloflife_chart_types",null,i,g,b,v),l>C&&D&&(0,t.createElement)("div",{className:"submission-title",style:{marginTop:"16px"}},(0,Sa.sprintf)((0,Sa.__)("Wheel Submission No: #%d","wheel-of-life"),D)))),l>C&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"wheel-widget-area"},(0,t.createElement)(Da,{setModalStatus:a,reportLink:M,reportTitle:E,getWheelReport:B}),(0,t.createElement)("div",{className:"wheeloflife-btn-wrap"},(0,t.createElement)("a",{type:"button",className:"wheeloflife-btn is-tertiary view-wheel-btn",href:null!=M?M:"#",target:"_blank"},(0,Sa.__)("View My Wheel","wheel-of-life"),(0,t.createElement)(Pa,null)))))),l>C&&(0,t.createElement)(t.Fragment,null,"page-cta"===s?.ctaType&&(0,t.createElement)("div",{className:"wheeloflife-cta-container"},(0,t.createElement)("div",{className:`wheeloflife-cta-wrapper ${"image"===s.customizer.background.background_type&&"has-overlay"}`,style:{background:"image"===s.customizer.background.background_type?"url("+s.customizer.background.background_image.url+") "+100*s.customizer.background.background_image.x+"% "+100*s.customizer.background.background_image.y+"%":"color"===s.customizer.background.background_type?s.customizer.background.backgroundColor.default.color:s.customizer.background.gradient,backgroundSize:"image"===s.customizer.background.background_type&&s.customizer.background.background_size,backgroundAttachment:"image"===s.customizer.background.background_type&&s.customizer.background.background_attachment,padding:s.customizer.padding.top+" "+s.customizer.padding.right+" "+s.customizer.padding.bottom+" "+s.customizer.padding.left,margin:s.customizer.margin.top+" "+s.customizer.margin.right+" "+s.customizer.margin.bottom+" "+s.customizer.margin.left,"--cta-overlay-color":s.customizer.background.overlayColor.default.color},align:"flex-start"===s.customizer.alignment?"left":"flex-end"===s.customizer.alignment?"right":"center"},(0,t.createElement)("h2",{className:"wheeloflife-cta-title",style:{fontSize:s.customizer.fontSize,color:s.customizer.fontColor}},s.title),(0,t.createElement)("div",{className:"wheeloflife-cta-description",style:{fontSize:s.customizer.descFontSize,color:s.customizer.descFontColor},dangerouslySetInnerHTML:{__html:s.description}}),(0,t.createElement)("div",{className:"wheeloflife-cta-btns"},""!==s.btn_label&&""!==O&&(0,t.createElement)("a",{href:O,target:!0===s.openInTab?"_blank":"",rel:"noexternal noopener",className:"wheeloflife-btn primary",style:{fontSize:s.customizer.pbFontSize,color:s.customizer.pbfontColors.pbfontColor,background:s.customizer.pbBgColors.pbBgColor,borderRadius:s.customizer.pbBorderRadius},onMouseOver:t=>{t.target.style.color=s.customizer.pbfontColors.pbfontHoverColor,t.target.style.background=s.customizer.pbBgColors.pbBgHoverColor},onMouseOut:t=>{t.target.style.color=s.customizer.pbfontColors.pbfontColor,t.target.style.background=s.customizer.pbBgColors.pbBgColor}},s.btn_label)))),(!s||"global-cta"===s?.ctaType)&&""!=k.title&&(0,t.createElement)("div",{className:"wheeloflife-cta-container"},(0,t.createElement)("div",{className:`wheeloflife-cta-wrapper ${"image"===k.customizer.background.background_type&&"has-overlay"}`,style:{background:"image"===k.customizer.background.background_type?"url("+k.customizer.background.background_image.url+") "+100*k.customizer.background.background_image.x+"% "+100*k.customizer.background.background_image.y+"%":"color"===k.customizer.background.background_type?k.customizer.background.backgroundColor.default.color:k.customizer.background.gradient,backgroundSize:"image"===k.customizer.background.background_type&&k.customizer.background.background_size,backgroundAttachment:"image"===k.customizer.background.background_type&&k.customizer.background.background_attachment,padding:k.customizer.padding.top+" "+k.customizer.padding.right+" "+k.customizer.padding.bottom+" "+k.customizer.padding.left,margin:k.customizer.margin.top+" "+k.customizer.margin.right+" "+k.customizer.margin.bottom+" "+k.customizer.margin.left,"--cta-overlay-color":k.customizer.background.overlayColor.default.color},align:"flex-start"===k.customizer.alignment?"left":"flex-end"===k.customizer.alignment?"right":"center"},(0,t.createElement)("h2",{className:"wheeloflife-cta-title",style:{fontSize:k.customizer.fontSize,color:k.customizer.fontColor}},k.title),(0,t.createElement)("div",{className:"wheeloflife-cta-description",style:{fontSize:k.customizer.descFontSize,color:k.customizer.descFontColor},dangerouslySetInnerHTML:{__html:k.description}}),(0,t.createElement)("div",{className:"wheeloflife-cta-btns"},""!==k.buttonLabel&&""!==k.buttonLink&&(0,t.createElement)("a",{href:k.buttonLink,target:!0===k.openInTab?"_blank":"",rel:`noexternal noopener ${1==k.setLinkAttrNoFollow&&"nofollow"} ${1==k.setLinkAttrSponser&&"sponsored"}`,className:"wheeloflife-btn primary",style:{fontSize:k.customizer.pbFontSize,color:k.customizer.pbfontColors.pbfontColor,background:k.customizer.pbBgColors.pbBgColor,borderRadius:k.customizer.pbBorderRadius},onMouseOver:t=>{t.target.style.color=k.customizer.pbfontColors.pbfontHoverColor,t.target.style.background=k.customizer.pbBgColors.pbBgHoverColor},onMouseOut:t=>{t.target.style.color=k.customizer.pbfontColors.pbfontColor,t.target.style.background=k.customizer.pbBgColors.pbBgColor},download:1==k.setLinkAttrDownload},k.buttonLabel),""!==k.sbuttonLabel&&""!==k.sbuttonLink&&(0,t.createElement)("a",{href:k.sbuttonLink,target:!0===k.sbopenInTab?"_blank":"",rel:`noexternal noopener ${1==k.sbsetLinkAttrNoFollow&&"nofollow"} ${1==k.sbsetLinkAttrSponser&&"sponsored"}`,className:"wheeloflife-btn secondary",style:{fontSize:k.customizer.sbFontSize,color:k.customizer.sbfontColors.sbfontColor,background:k.customizer.sbBgColors.sbBgColor,borderRadius:k.customizer.sbBorderRadius},onMouseOver:t=>{t.target.style.color=k.customizer.sbfontColors.sbfontHoverColor,t.target.style.background=k.customizer.sbBgColors.sbBgHoverColor},onMouseOut:t=>{t.target.style.color=k.customizer.sbfontColors.sbfontColor,t.target.style.background=k.customizer.sbBgColors.sbBgColor},download:1==k.sbsetLinkAttrDownload},k.sbuttonLabel)))))),"slider"===R&&l<=C&&(0,t.createElement)("div",{className:"wheeloflife-btn-wrap"},(0,t.createElement)("button",{type:"button",className:"wheeloflife-btn is-primary is-small",onClick:()=>{V(y,r,m)(),_(z)}},(0,Sa.__)("Next","wheel-of-life"))))}})))},Ia=function(e){let{wheelId:i,wheelMode:s,btnLabel:o,popupLabel:a,isBlock:r}=e;const[h,c]=(0,t.useState)(!1),[d,u]=(0,t.useState)(!1),[f,p]=(0,t.useState)(""),[g,m]=(0,t.useState)([]),[b,x]=(0,t.useState)([]),[y,_]=(0,t.useState)([]),[v,w]=(0,t.useState)(!1);(0,t.useEffect)((()=>{i&&n()({path:"wp/v2/wheel/"+i,method:"GET"}).then((t=>{p(t.title.rendered),m(t.blocks),x(t.meta),_(t.wheel_CTA),w(t.fimg_url)}))}),[]);const k=(e,s)=>(0,t.createElement)(t.Fragment,null,s?(0,t.createElement)("div",{className:"wolblk-btn-inner"},(0,t.createElement)("button",{type:"button",className:"wheeloflifeblks-button",onClick:()=>u(!0)},a)):(0,t.createElement)("button",{type:"button",className:"wheeloflife-btn is-primary",onClick:()=>u(!0)},a),d&&(0,t.createElement)(Ma,{setModalStatus:u,className:`wheeloflife-assessment-modal ${e}`},(0,t.createElement)("div",{className:"wheeloflife-modal-body"},!h&&(0,t.createElement)(l,{onClick:()=>c(!0),title:f,btnLabel:o,postBlocks:g,featImg:v}),h&&(0,t.createElement)(Ra,{setModalStatus:u,postMeta:b,wheelCTA:y,postBlocks:g,wheelId:i}))));let C="inline"==s?"wheeloflife-wrapper mode-inline":"wheeloflife-wrapper";return(0,t.createElement)("div",{className:C},!i&&(0,Sa.__)("Error: No wheel selected or wheel ID missing!!","wheel-of-life"),"popup"==s&&k("",r),"inline"==s&&(e=>h?(0,t.createElement)(Ra,{postMeta:b,postBlocks:g,wheelCTA:y,setModalStatus:c,wheelId:i}):(0,t.createElement)(l,{onClick:()=>c(!0),title:f,btnLabel:o,postBlocks:g,featImg:v,isBlock:e}))(r),("fullwidth"==s||"full-width"==s)&&k("modal-fullwidth",r))},Fa=e=>{let{wheelId:i,wheelMode:s,btnLabel:n,popupLabel:o,isBlock:a}=e;return(0,t.createElement)("div",{className:"wheeloflife-container"},(0,t.createElement)(Ia,{wheelId:i,wheelMode:s,btnLabel:n,popupLabel:o,isBlock:a}))};function Va(e){let{wheelId:i,wheelMode:s,btnLabel:n,popupLabel:o,isBlock:a}=e;return(0,t.createElement)(Fa,{wheelId:i,wheelMode:s,btnLabel:n,popupLabel:o,isBlock:a})}function Na(e){let{chartData:i,chartOption:s,wheelData:o}=e;var a=o.chartType,r=o.wheelId;const[l,h]=(0,t.useState)([]);(0,t.useEffect)((()=>{r&&n()({path:"wp/v2/wheel/"+r,method:"GET"}).then((t=>{h(t.blocks)}))}),[]);const c=function(t,e,i){let s=l.find((t=>"wheeloflife/add-wheels"===t.blockName)).innerBlocks.map((t=>({label:t.attrs.label?.replace("&","&")?.replace("&","&"),link:t.attrs.link}))).find((t=>t.label===e.text)).link;s&&window.open(s,"_blank")};let d={...s,plugins:{legend:{...s?.plugins?.legend,onClick:c,onHover:function(t){t.native.target.style.cursor="pointer"}}}};var u={responsive:!0,scales:{r:{ticks:{display:!1}}},borderWidth:"transparent",plugins:{legend:{position:"top",labels:{usePointStyle:!0,pointStyle:"circle",boxWidth:12,color:"#262933",font:{size:16,family:"Rubik"}},onClick:c,onHover:function(t){t.native.target.style.cursor="pointer"}}}};let f={...i},p=null!=d?d:u;return p.plugins.htmlLegend={containerID:"wheeloflife-legend-container"},p.plugins.legend={display:!1},(0,t.createElement)(t.Fragment,null,a&&"polar-chart"===a&&(0,t.createElement)("div",{className:"wheeloflife_polar_chart_wrapper"},(0,t.createElement)("div",{id:"wheeloflife-legend-container"}),(0,t.createElement)(ya,{data:f,options:p,plugins:[Aa],width:"400",height:"400"})),(0,Oa.applyFilters)("wheeloflife_submission_chart",null,i,s,a,r),(0,t.createElement)(Da,{setModalStatus:!1,reportLink:o.reportLink,reportTitle:o.reportTitle,getWheelReport:()=>{}}))}document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".wheelOfLifeRootAppSelector").forEach(((e,i)=>{let s=e.dataset.wheelId,n=e.dataset.mode,o=e.dataset.btnLabel,a=e.dataset.popupLbl,r=e.dataset?.isblock||!1;null!==e&&(0,t.render)((0,t.createElement)(Va,{wheelId:s,wheelMode:n,btnLabel:o,popupLabel:a,isBlock:r}),e)}));let e=document.getElementById("submission-chart");if(null!==e){const i=JSON.parse(e.dataset.chartdata),s=JSON.parse(e.dataset.chartoption),n={reportTitle:e.dataset.reporttitle,reportLink:e.dataset.reportlink,chartType:e.dataset.charttype,wheelId:e.dataset.wheelid};(0,t.render)((0,t.createElement)(Na,{chartData:i,chartOption:s,wheelData:n}),e)}}))})(),(wheeloflifeExports=void 0===wheeloflifeExports?{}:wheeloflifeExports).wheelsFrontend=s})();1 var wheeloflifeExports;(()=>{var t={8901:(t,e,i)=>{var s,n;i.amdD,s=[i(9567)],void 0===(n=function(t){return function(){var e,i,s,n=0,o="error",a="info",r="success",l="warning",h={clear:function(i,s){var n=p();e||c(n),d(i,n,s)||function(i){for(var s=e.children(),n=s.length-1;n>=0;n--)d(t(s[n]),i)}(n)},remove:function(i){var s=p();e||c(s),i&&0===t(":focus",i).length?g(i):e.children().length&&e.remove()},error:function(t,e,i){return f({type:o,iconClass:p().iconClasses.error,message:t,optionsOverride:i,title:e})},getContainer:c,info:function(t,e,i){return f({type:a,iconClass:p().iconClasses.info,message:t,optionsOverride:i,title:e})},options:{},subscribe:function(t){i=t},success:function(t,e,i){return f({type:r,iconClass:p().iconClasses.success,message:t,optionsOverride:i,title:e})},version:"2.1.4",warning:function(t,e,i){return f({type:l,iconClass:p().iconClasses.warning,message:t,optionsOverride:i,title:e})}};return h;function c(i,s){return i||(i=p()),(e=t("#"+i.containerId)).length||s&&(e=function(i){return(e=t("<div/>").attr("id",i.containerId).addClass(i.positionClass)).appendTo(t(i.target)),e}(i)),e}function d(e,i,s){var n=!(!s||!s.force)&&s.force;return!(!e||!n&&0!==t(":focus",e).length||(e[i.hideMethod]({duration:i.hideDuration,easing:i.hideEasing,complete:function(){g(e)}}),0))}function u(t){i&&i(t)}function f(i){var o=p(),a=i.iconClass||o.iconClass;if(void 0!==i.optionsOverride&&(o=t.extend(o,i.optionsOverride),a=i.optionsOverride.iconClass||a),!function(t,e){if(t.preventDuplicates){if(e.message===s)return!0;s=e.message}return!1}(o,i)){n++,e=c(o,!0);var r=null,l=t("<div/>"),h=t("<div/>"),d=t("<div/>"),f=t("<div/>"),m=t(o.closeHtml),b={intervalId:null,hideEta:null,maxHideTime:null},x={toastId:n,state:"visible",startTime:new Date,options:o,map:i};return i.iconClass&&l.addClass(o.toastClass).addClass(a),function(){if(i.title){var t=i.title;o.escapeHtml&&(t=y(i.title)),h.append(t).addClass(o.titleClass),l.append(h)}}(),function(){if(i.message){var t=i.message;o.escapeHtml&&(t=y(i.message)),d.append(t).addClass(o.messageClass),l.append(d)}}(),o.closeButton&&(m.addClass(o.closeClass).attr("role","button"),l.prepend(m)),o.progressBar&&(f.addClass(o.progressClass),l.prepend(f)),o.rtl&&l.addClass("rtl"),o.newestOnTop?e.prepend(l):e.append(l),function(){var t="";switch(i.iconClass){case"toast-success":case"toast-info":t="polite";break;default:t="assertive"}l.attr("aria-live",t)}(),l.hide(),l[o.showMethod]({duration:o.showDuration,easing:o.showEasing,complete:o.onShown}),o.timeOut>0&&(r=setTimeout(_,o.timeOut),b.maxHideTime=parseFloat(o.timeOut),b.hideEta=(new Date).getTime()+b.maxHideTime,o.progressBar&&(b.intervalId=setInterval((function(){var t=(b.hideEta-(new Date).getTime())/b.maxHideTime*100;f.width(t+"%")}),10))),o.closeOnHover&&l.hover((function(){clearTimeout(r),b.hideEta=0,l.stop(!0,!0)[o.showMethod]({duration:o.showDuration,easing:o.showEasing})}),(function(){(o.timeOut>0||o.extendedTimeOut>0)&&(r=setTimeout(_,o.extendedTimeOut),b.maxHideTime=parseFloat(o.extendedTimeOut),b.hideEta=(new Date).getTime()+b.maxHideTime)})),!o.onclick&&o.tapToDismiss&&l.click(_),o.closeButton&&m&&m.click((function(t){t.stopPropagation?t.stopPropagation():void 0!==t.cancelBubble&&!0!==t.cancelBubble&&(t.cancelBubble=!0),o.onCloseClick&&o.onCloseClick(t),_(!0)})),o.onclick&&l.click((function(t){o.onclick(t),_()})),u(x),o.debug&&console&&console.log(x),l}function y(t){return null==t&&(t=""),t.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function _(e){var i=e&&!1!==o.closeMethod?o.closeMethod:o.hideMethod,s=e&&!1!==o.closeDuration?o.closeDuration:o.hideDuration,n=e&&!1!==o.closeEasing?o.closeEasing:o.hideEasing;if(!t(":focus",l).length||e)return clearTimeout(b.intervalId),l[i]({duration:s,easing:n,complete:function(){g(l),clearTimeout(r),o.onHidden&&"hidden"!==x.state&&o.onHidden(),x.state="hidden",x.endTime=new Date,u(x)}})}}function p(){return t.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">×</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},h.options)}function g(t){e||(e=c()),t.is(":visible")||(t.remove(),t=null,0===e.children().length&&(e.remove(),s=void 0))}}()}.apply(e,s))||(t.exports=n)},9567:t=>{"use strict";t.exports=window.jQuery}},e={};function i(s){var n=e[s];if(void 0!==n)return n.exports;var o=e[s]={exports:{}};return t[s](o,o.exports,i),o.exports}i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var s in e)i.o(e,s)&&!i.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var s={};(()=>{"use strict";i.r(s);const t=window.wp.element,e=window.wp.apiFetch;var n=i.n(e);const o=window.React;var a=i.n(o);const r=function(){return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("svg",{width:"400",height:"400",viewBox:"0 0 400 400",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("g",{clipPath:"url(#clip0)"},(0,t.createElement)("path",{d:"M319.019 171.203C319.019 185.414 316.25 199.487 310.872 212.617C305.494 225.747 297.611 237.677 287.674 247.726L212 171.203H319.019Z",fill:"#FF7134",stroke:"white",strokeWidth:"2"}),(0,t.createElement)("path",{d:"M134.626 94.6788C155.147 74.3834 182.979 62.9816 212 62.9816L212 171.202L134.626 94.6788Z",fill:"#30EED7",stroke:"white",strokeWidth:"2"}),(0,t.createElement)("path",{d:"M212 34.1228C248.675 34.1228 283.847 48.6918 309.78 74.6247L212 172.405L212 34.1228Z",fill:"#1DB53F",stroke:"white",strokeWidth:"2"}),(0,t.createElement)("path",{d:"M330.297 54.0127C361.517 85.2325 379.056 127.576 379.056 171.727L212.583 171.727L330.297 54.0127Z",fill:"#E3DB13",stroke:"white",strokeWidth:"2"}),(0,t.createElement)("path",{d:"M212.001 289.044C196.683 289.044 181.516 285.995 167.365 280.073C153.214 274.151 140.356 265.471 129.525 254.529L212.001 171.203L212.001 289.044Z",fill:"#811EFF",stroke:"white",strokeWidth:"2"}),(0,t.createElement)("path",{d:"M350.593 309.593C332.393 327.793 310.786 342.23 287.006 352.08C263.226 361.93 237.739 367 212 367L212 171L350.593 309.593Z",fill:"#FF3737",stroke:"white",strokeWidth:"2"}),(0,t.createElement)("path",{d:"M21.4282 172.425C21.4282 147.343 26.3686 122.506 35.9673 99.3327C45.5659 76.1595 59.6349 55.1038 77.3709 37.3678L212.428 172.425L21.4282 172.425Z",fill:"#29D2EC",stroke:"white",strokeWidth:"2"}),(0,t.createElement)("path",{d:"M95.514 288.891C64.62 257.997 47.2639 216.096 47.2639 172.405L212 172.405L95.514 288.891Z",fill:"#2663FF",stroke:"white",strokeWidth:"2"})),(0,t.createElement)("defs",null,(0,t.createElement)("clipPath",{id:"clip0"},(0,t.createElement)("rect",{width:"400",height:"400",fill:"white"})))))},l=function(e){const{onClick:i,title:s,btnLabel:n,postBlocks:o,featImg:a,isBlock:l}=e;return(0,t.createElement)("div",{className:"wheeloflife-into-wrap"},(0,t.createElement)("div",{className:"wheeloflife-title-wrap"},(0,t.createElement)("h2",{className:"wheeloflife-title",dangerouslySetInnerHTML:{__html:s}}),null!=o&&""!==o&&o.map((function(e,i){if("core/paragraph"===e.blockName)return(0,t.createElement)("div",{className:"wol_description",dangerouslySetInnerHTML:{__html:e.innerHTML}})}))),s&&(0,t.createElement)("div",{className:"wheeloflife-life-wheel"},a?(0,t.createElement)("img",{src:a}):(0,t.createElement)(r,null)),s&&(0,t.createElement)("div",{className:"wheeloflife-btn-wrap"},l?(0,t.createElement)("div",{className:"wolblk-btn-inner"},(0,t.createElement)("button",{type:"button",className:"wheeloflifeblks-button",onClick:i},n)):(0,t.createElement)("button",{type:"button",className:"wheeloflife-btn is-primary",onClick:i},n))||null)},h=e=>{let{setValue:i,label:s,handleFormValue:n,setRangeValue:o,rangeValue:a,options:r}=e,l=r.maxValue,h=r.minValue,c=r.name,d=r.bgColor;const u=r.type;if((0,t.useEffect)((()=>{o(h)}),[]),"likert"===u)for(var f=[],p=h;p<=l;p++)f.push((0,t.createElement)("li",null,(0,t.createElement)("input",{id:`${c}-rate-${p}`,type:"radio",name:c,checked:!1,onChange:n(p,s,d)}),(0,t.createElement)("label",{htmlFor:`${c}-rate-${p}`},p)));let g=l/2>=a,m=l/4*3>=a;return(0,t.createElement)(t.Fragment,null,"likert"===u&&(0,t.createElement)("div",{className:"wheeloflife-meter-likert-container"},(0,t.createElement)("div",{className:"meter-likert-wrapper"},(0,t.createElement)("ul",{className:"meter-likert-rating"},f))),"slider"===u&&(0,t.createElement)("div",{className:"wheeloflife-meter-slider-container"},(0,t.createElement)("div",{className:"meter-slider-wrapper"},(0,t.createElement)("input",{type:"range",min:h,max:l,defaultValue:h,name:c,onChange:t=>{o(t.target.value)},id:c}),(0,t.createElement)("div",{className:"meter-slider-track",style:g?{"--green":"red"}:m?{"--green":"#F9A94D"}:{"--green":"#1db53f"}},(0,t.createElement)("span",{className:"meter-slider-progress",style:{width:"calc("+a/l*100+"% + 5px)"}}),(0,t.createElement)("label",{htmlFor:c,className:"meter-slider-thumb",style:{left:a/l*100+"%"}}),(0,t.createElement)("span",{className:"range-number",style:{left:a/l*100+"%"}},a)))))};function c(){}const d=function(){let t=0;return function(){return t++}}();function u(t){return null==t}function f(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function p(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const g=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function m(t,e){return g(t)?t:e}function b(t,e){return void 0===t?e:t}const x=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function y(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function _(t,e,i,s){let n,o,a;if(f(t))if(o=t.length,s)for(n=o-1;n>=0;n--)e.call(i,t[n],n);else for(n=0;n<o;n++)e.call(i,t[n],n);else if(p(t))for(a=Object.keys(t),o=a.length,n=0;n<o;n++)e.call(i,t[a[n]],a[n])}function v(t,e){let i,s,n,o;if(!t||!e||t.length!==e.length)return!1;for(i=0,s=t.length;i<s;++i)if(n=t[i],o=e[i],n.datasetIndex!==o.datasetIndex||n.index!==o.index)return!1;return!0}function w(t){if(f(t))return t.map(w);if(p(t)){const e=Object.create(null),i=Object.keys(t),s=i.length;let n=0;for(;n<s;++n)e[i[n]]=w(t[i[n]]);return e}return t}function k(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function C(t,e,i,s){if(!k(t))return;const n=e[t],o=i[t];p(n)&&p(o)?M(n,o,s):e[t]=w(o)}function M(t,e,i){const s=f(e)?e:[e],n=s.length;if(!p(t))return t;const o=(i=i||{}).merger||C;for(let a=0;a<n;++a){if(!p(e=s[a]))continue;const n=Object.keys(e);for(let s=0,a=n.length;s<a;++s)o(n[s],t,e,i)}return t}function S(t,e){return M(t,e,{merger:E})}function E(t,e,i){if(!k(t))return;const s=e[t],n=i[t];p(s)&&p(n)?S(s,n):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=w(n))}const L={"":t=>t,x:t=>t.x,y:t=>t.y};function D(t,e){const i=L[e]||(L[e]=function(t){const e=function(t){const e=t.split("."),i=[];let s="";for(const t of e)s+=t,s.endsWith("\\")?s=s.slice(0,-1)+".":(i.push(s),s="");return i}(t);return t=>{for(const i of e){if(""===i)break;t=t&&t[i]}return t}}(e));return i(t)}function P(t){return t.charAt(0).toUpperCase()+t.slice(1)}const O=t=>void 0!==t,T=t=>"function"==typeof t,A=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0},z=Math.PI,R=2*z,I=R+z,F=Number.POSITIVE_INFINITY,V=z/180,N=z/2,B=z/4,H=2*z/3,W=Math.log10,j=Math.sign;function $(t){const e=Math.round(t);t=Y(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(W(t))),s=t/i;return(s<=1?1:s<=2?2:s<=5?5:10)*i}function Z(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Y(t,e,i){return Math.abs(t-e)<i}function U(t,e,i){let s,n,o;for(s=0,n=t.length;s<n;s++)o=t[s][i],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function X(t){return t*(z/180)}function q(t){return t*(180/z)}function K(t){if(!g(t))return;let e=1,i=0;for(;Math.round(t*e)/e!==t;)e*=10,i++;return i}function G(t,e){const i=e.x-t.x,s=e.y-t.y,n=Math.sqrt(i*i+s*s);let o=Math.atan2(s,i);return o<-.5*z&&(o+=R),{angle:o,distance:n}}function J(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Q(t,e){return(t-e+I)%R-z}function tt(t){return(t%R+R)%R}function et(t,e,i,s){const n=tt(t),o=tt(e),a=tt(i),r=tt(o-n),l=tt(a-n),h=tt(n-o),c=tt(n-a);return n===o||n===a||s&&o===a||r>l&&h<c}function it(t,e,i){return Math.max(e,Math.min(i,t))}function st(t,e,i,s=1e-6){return t>=Math.min(e,i)-s&&t<=Math.max(e,i)+s}function nt(t,e,i){i=i||(i=>t[i]<e);let s,n=t.length-1,o=0;for(;n-o>1;)s=o+n>>1,i(s)?o=s:n=s;return{lo:o,hi:n}}const ot=(t,e,i,s)=>nt(t,i,s?s=>t[s][e]<=i:s=>t[s][e]<i),at=(t,e,i)=>nt(t,i,(s=>t[s][e]>=i)),rt=["push","pop","shift","splice","unshift"];function lt(t,e){const i=t._chartjs;if(!i)return;const s=i.listeners,n=s.indexOf(e);-1!==n&&s.splice(n,1),s.length>0||(rt.forEach((e=>{delete t[e]})),delete t._chartjs)}function ht(t){const e=new Set;let i,s;for(i=0,s=t.length;i<s;++i)e.add(t[i]);return e.size===s?t:Array.from(e)}const ct="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function dt(t,e,i){const s=i||(t=>Array.prototype.slice.call(t));let n=!1,o=[];return function(...i){o=s(i),n||(n=!0,ct.call(window,(()=>{n=!1,t.apply(e,o)})))}}const ut=t=>"start"===t?"left":"end"===t?"right":"center",ft=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2;function pt(t,e,i){const s=e.length;let n=0,o=s;if(t._sorted){const{iScale:a,_parsed:r}=t,l=a.axis,{min:h,max:c,minDefined:d,maxDefined:u}=a.getUserBounds();d&&(n=it(Math.min(ot(r,a.axis,h).lo,i?s:ot(e,l,a.getPixelForValue(h)).lo),0,s-1)),o=u?it(Math.max(ot(r,a.axis,c,!0).hi+1,i?0:ot(e,l,a.getPixelForValue(c),!0).hi+1),n,s)-n:s-n}return{start:n,count:o}}function gt(t){const{xScale:e,yScale:i,_scaleRanges:s}=t,n={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!s)return t._scaleRanges=n,!0;const o=s.xmin!==e.min||s.xmax!==e.max||s.ymin!==i.min||s.ymax!==i.max;return Object.assign(s,n),o}const mt=t=>0===t||1===t,bt=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*R/i),xt=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*R/i)+1,yt={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*N),easeOutSine:t=>Math.sin(t*N),easeInOutSine:t=>-.5*(Math.cos(z*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=>mt(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=>mt(t)?t:bt(t,.075,.3),easeOutElastic:t=>mt(t)?t:xt(t,.075,.3),easeInOutElastic(t){const e=.1125;return mt(t)?t:t<.5?.5*bt(2*t,e,.45):.5+.5*xt(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-yt.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375},easeInOutBounce:t=>t<.5?.5*yt.easeInBounce(2*t):.5*yt.easeOutBounce(2*t-1)+.5};function _t(t){return t+.5|0}const vt=(t,e,i)=>Math.max(Math.min(t,i),e);function wt(t){return vt(_t(2.55*t),0,255)}function kt(t){return vt(_t(255*t),0,255)}function Ct(t){return vt(_t(t/2.55)/100,0,1)}function Mt(t){return vt(_t(100*t),0,100)}const St={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},Et=[..."0123456789ABCDEF"],Lt=t=>Et[15&t],Dt=t=>Et[(240&t)>>4]+Et[15&t],Pt=t=>(240&t)>>4==(15&t),Ot=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Tt(t,e,i){const s=e*Math.min(i,1-i),n=(e,n=(e+t/30)%12)=>i-s*Math.max(Math.min(n-3,9-n,1),-1);return[n(0),n(8),n(4)]}function At(t,e,i){const s=(s,n=(s+t/60)%6)=>i-i*e*Math.max(Math.min(n,4-n,1),0);return[s(5),s(3),s(1)]}function zt(t,e,i){const s=Tt(t,1,.5);let n;for(e+i>1&&(n=1/(e+i),e*=n,i*=n),n=0;n<3;n++)s[n]*=1-e-i,s[n]+=e;return s}function Rt(t){const e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),o=Math.min(e,i,s),a=(n+o)/2;let r,l,h;return n!==o&&(h=n-o,l=a>.5?h/(2-n-o):h/(n+o),r=function(t,e,i,s,n){return t===n?(e-i)/s+(e<i?6:0):e===n?(i-t)/s+2:(t-e)/s+4}(e,i,s,h,n),r=60*r+.5),[0|r,l||0,a]}function It(t,e,i,s){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,s)).map(kt)}function Ft(t,e,i){return It(Tt,t,e,i)}function Vt(t){return(t%360+360)%360}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"},Bt={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 Ht;const Wt=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,jt=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,$t=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Zt(t,e,i){if(t){let s=Rt(t);s[e]=Math.max(0,Math.min(s[e]+s[e]*i,0===e?360:1)),s=Ft(s),t.r=s[0],t.g=s[1],t.b=s[2]}}function Yt(t,e){return t?Object.assign(e||{},t):t}function Ut(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=kt(t[3]))):(e=Yt(t,{r:0,g:0,b:0,a:1})).a=kt(e.a),e}function Xt(t){return"r"===t.charAt(0)?function(t){const e=Wt.exec(t);let i,s,n,o=255;if(e){if(e[7]!==i){const t=+e[7];o=e[8]?wt(t):vt(255*t,0,255)}return i=+e[1],s=+e[3],n=+e[5],i=255&(e[2]?wt(i):vt(i,0,255)),s=255&(e[4]?wt(s):vt(s,0,255)),n=255&(e[6]?wt(n):vt(n,0,255)),{r:i,g:s,b:n,a:o}}}(t):function(t){const e=Ot.exec(t);let i,s=255;if(!e)return;e[5]!==i&&(s=e[6]?wt(+e[5]):kt(+e[5]));const n=Vt(+e[2]),o=+e[3]/100,a=+e[4]/100;return i="hwb"===e[1]?function(t,e,i){return It(zt,t,e,i)}(n,o,a):"hsv"===e[1]?function(t,e,i){return It(At,t,e,i)}(n,o,a):Ft(n,o,a),{r:i[0],g:i[1],b:i[2],a:s}}(t)}class qt{constructor(t){if(t instanceof qt)return t;const e=typeof t;let i;var s,n,o;"object"===e?i=Ut(t):"string"===e&&(o=(s=t).length,"#"===s[0]&&(4===o||5===o?n={r:255&17*St[s[1]],g:255&17*St[s[2]],b:255&17*St[s[3]],a:5===o?17*St[s[4]]:255}:7!==o&&9!==o||(n={r:St[s[1]]<<4|St[s[2]],g:St[s[3]]<<4|St[s[4]],b:St[s[5]]<<4|St[s[6]],a:9===o?St[s[7]]<<4|St[s[8]]:255})),i=n||function(t){Ht||(Ht=function(){const t={},e=Object.keys(Bt),i=Object.keys(Nt);let s,n,o,a,r;for(s=0;s<e.length;s++){for(a=r=e[s],n=0;n<i.length;n++)o=i[n],r=r.replace(o,Nt[o]);o=parseInt(Bt[a],16),t[r]=[o>>16&255,o>>8&255,255&o]}return t}(),Ht.transparent=[0,0,0,0]);const e=Ht[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||Xt(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=Yt(this._rgb);return t&&(t.a=Ct(t.a)),t}set rgb(t){this._rgb=Ut(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Ct(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?(e=(t=>Pt(t.r)&&Pt(t.g)&&Pt(t.b)&&Pt(t.a))(t=this._rgb)?Lt:Dt,t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0):void 0;var t,e}hslString(){return this._valid?function(t){if(!t)return;const e=Rt(t),i=e[0],s=Mt(e[1]),n=Mt(e[2]);return t.a<255?`hsla(${i}, ${s}%, ${n}%, ${Ct(t.a)})`:`hsl(${i}, ${s}%, ${n}%)`}(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,s=t.rgb;let n;const o=e===n?.5:e,a=2*o-1,r=i.a-s.a,l=((a*r==-1?a:(a+r)/(1+a*r))+1)/2;n=1-l,i.r=255&l*i.r+n*s.r+.5,i.g=255&l*i.g+n*s.g+.5,i.b=255&l*i.b+n*s.b+.5,i.a=o*i.a+(1-o)*s.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,i){const s=$t(Ct(t.r)),n=$t(Ct(t.g)),o=$t(Ct(t.b));return{r:kt(jt(s+i*($t(Ct(e.r))-s))),g:kt(jt(n+i*($t(Ct(e.g))-n))),b:kt(jt(o+i*($t(Ct(e.b))-o))),a:t.a+i*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new qt(this.rgb)}alpha(t){return this._rgb.a=kt(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=_t(.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 Zt(this._rgb,2,t),this}darken(t){return Zt(this._rgb,2,-t),this}saturate(t){return Zt(this._rgb,1,t),this}desaturate(t){return Zt(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=Rt(t);i[0]=Vt(i[0]+e),i=Ft(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}function Kt(t){return new qt(t)}function Gt(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Jt(t){return Gt(t)?t:Kt(t)}function Qt(t){return Gt(t)?t:Kt(t).saturate(.5).darken(.1).hexString()}const te=Object.create(null),ee=Object.create(null);function ie(t,e){if(!e)return t;const i=e.split(".");for(let e=0,s=i.length;e<s;++e){const s=i[e];t=t[s]||(t[s]=Object.create(null))}return t}function se(t,e,i){return"string"==typeof e?M(ie(t,e),i):M(ie(t,""),e)}var ne=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)=>Qt(e.backgroundColor),this.hoverBorderColor=(t,e)=>Qt(e.borderColor),this.hoverColor=(t,e)=>Qt(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return se(this,t,e)}get(t){return ie(this,t)}describe(t,e){return se(ee,t,e)}override(t,e){return se(te,t,e)}route(t,e,i,s){const n=ie(this,t),o=ie(this,i),a="_"+e;Object.defineProperties(n,{[a]:{value:n[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=o[s];return p(t)?Object.assign({},e,t):b(t,e)},set(t){this[a]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function oe(t,e,i,s,n){let o=e[n];return o||(o=e[n]=t.measureText(n).width,i.push(n)),o>s&&(s=o),s}function ae(t,e,i,s){let n=(s=s||{}).data=s.data||{},o=s.garbageCollect=s.garbageCollect||[];s.font!==e&&(n=s.data={},o=s.garbageCollect=[],s.font=e),t.save(),t.font=e;let a=0;const r=i.length;let l,h,c,d,u;for(l=0;l<r;l++)if(d=i[l],null!=d&&!0!==f(d))a=oe(t,n,o,a,d);else if(f(d))for(h=0,c=d.length;h<c;h++)u=d[h],null==u||f(u)||(a=oe(t,n,o,a,u));t.restore();const p=o.length/2;if(p>i.length){for(l=0;l<p;l++)delete n[o[l]];o.splice(0,p)}return a}function re(t,e,i){const s=t.currentDevicePixelRatio,n=0!==i?Math.max(i/2,.5):0;return Math.round((e-n)*s)/s+n}function le(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function he(t,e,i,s){ce(t,e,i,s,null)}function ce(t,e,i,s,n){let o,a,r,l,h,c;const d=e.pointStyle,u=e.rotation,f=e.radius;let p=(u||0)*V;if(d&&"object"==typeof d&&(o=d.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return t.save(),t.translate(i,s),t.rotate(p),t.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),void t.restore();if(!(isNaN(f)||f<=0)){switch(t.beginPath(),d){default:n?t.ellipse(i,s,n/2,f,0,0,R):t.arc(i,s,f,0,R),t.closePath();break;case"triangle":t.moveTo(i+Math.sin(p)*f,s-Math.cos(p)*f),p+=H,t.lineTo(i+Math.sin(p)*f,s-Math.cos(p)*f),p+=H,t.lineTo(i+Math.sin(p)*f,s-Math.cos(p)*f),t.closePath();break;case"rectRounded":h=.516*f,l=f-h,a=Math.cos(p+B)*l,r=Math.sin(p+B)*l,t.arc(i-a,s-r,h,p-z,p-N),t.arc(i+r,s-a,h,p-N,p),t.arc(i+a,s+r,h,p,p+N),t.arc(i-r,s+a,h,p+N,p+z),t.closePath();break;case"rect":if(!u){l=Math.SQRT1_2*f,c=n?n/2:l,t.rect(i-c,s-l,2*c,2*l);break}p+=B;case"rectRot":a=Math.cos(p)*f,r=Math.sin(p)*f,t.moveTo(i-a,s-r),t.lineTo(i+r,s-a),t.lineTo(i+a,s+r),t.lineTo(i-r,s+a),t.closePath();break;case"crossRot":p+=B;case"cross":a=Math.cos(p)*f,r=Math.sin(p)*f,t.moveTo(i-a,s-r),t.lineTo(i+a,s+r),t.moveTo(i+r,s-a),t.lineTo(i-r,s+a);break;case"star":a=Math.cos(p)*f,r=Math.sin(p)*f,t.moveTo(i-a,s-r),t.lineTo(i+a,s+r),t.moveTo(i+r,s-a),t.lineTo(i-r,s+a),p+=B,a=Math.cos(p)*f,r=Math.sin(p)*f,t.moveTo(i-a,s-r),t.lineTo(i+a,s+r),t.moveTo(i+r,s-a),t.lineTo(i-r,s+a);break;case"line":a=n?n/2:Math.cos(p)*f,r=Math.sin(p)*f,t.moveTo(i-a,s-r),t.lineTo(i+a,s+r);break;case"dash":t.moveTo(i,s),t.lineTo(i+Math.cos(p)*f,s+Math.sin(p)*f)}t.fill(),e.borderWidth>0&&t.stroke()}}function de(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.x<e.right+i&&t.y>e.top-i&&t.y<e.bottom+i}function ue(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function fe(t){t.restore()}function pe(t,e,i,s,n){if(!e)return t.lineTo(i.x,i.y);if("middle"===n){const s=(e.x+i.x)/2;t.lineTo(s,e.y),t.lineTo(s,i.y)}else"after"===n!=!!s?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y);t.lineTo(i.x,i.y)}function ge(t,e,i,s){if(!e)return t.lineTo(i.x,i.y);t.bezierCurveTo(s?e.cp1x:e.cp2x,s?e.cp1y:e.cp2y,s?i.cp2x:i.cp1x,s?i.cp2y:i.cp1y,i.x,i.y)}function me(t,e,i,s,n,o={}){const a=f(e)?e:[e],r=o.strokeWidth>0&&""!==o.strokeColor;let l,h;for(t.save(),t.font=n.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),l=0;l<a.length;++l)h=a[l],r&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),u(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(h,i,s,o.maxWidth)),t.fillText(h,i,s,o.maxWidth),be(t,i,s,h,o),s+=n.lineHeight;t.restore()}function be(t,e,i,s,n){if(n.strikethrough||n.underline){const o=t.measureText(s),a=e-o.actualBoundingBoxLeft,r=e+o.actualBoundingBoxRight,l=i-o.actualBoundingBoxAscent,h=i+o.actualBoundingBoxDescent,c=n.strikethrough?(l+h)/2:h;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=n.decorationWidth||2,t.moveTo(a,c),t.lineTo(r,c),t.stroke()}}function xe(t,e){const{x:i,y:s,w:n,h:o,radius:a}=e;t.arc(i+a.topLeft,s+a.topLeft,a.topLeft,-N,z,!0),t.lineTo(i,s+o-a.bottomLeft),t.arc(i+a.bottomLeft,s+o-a.bottomLeft,a.bottomLeft,z,N,!0),t.lineTo(i+n-a.bottomRight,s+o),t.arc(i+n-a.bottomRight,s+o-a.bottomRight,a.bottomRight,N,0,!0),t.lineTo(i+n,s+a.topRight),t.arc(i+n-a.topRight,s+a.topRight,a.topRight,0,-N,!0),t.lineTo(i+a.topLeft,s)}const ye=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),_e=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function ve(t,e){const i=(""+t).match(ye);if(!i||"normal"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case"px":return t;case"%":t/=100}return e*t}const we=t=>+t||0;function ke(t,e){const i={},s=p(e),n=s?Object.keys(e):e,o=p(t)?s?i=>b(t[i],t[e[i]]):e=>t[e]:()=>t;for(const t of n)i[t]=we(o(t));return i}function Ce(t){return ke(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Me(t){return ke(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Se(t){const e=Ce(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Ee(t,e){t=t||{},e=e||ne.font;let i=b(t.size,e.size);"string"==typeof i&&(i=parseInt(i,10));let s=b(t.style,e.style);s&&!(""+s).match(_e)&&(console.warn('Invalid font style specified: "'+s+'"'),s="");const n={family:b(t.family,e.family),lineHeight:ve(b(t.lineHeight,e.lineHeight),i),size:i,style:s,weight:b(t.weight,e.weight),string:""};return n.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}(n),n}function Le(t,e,i,s){let n,o,a,r=!0;for(n=0,o=t.length;n<o;++n)if(a=t[n],void 0!==a&&(void 0!==e&&"function"==typeof a&&(a=a(e),r=!1),void 0!==i&&f(a)&&(a=a[i%a.length],r=!1),void 0!==a))return s&&!r&&(s.cacheable=!1),a}function De(t,e){return Object.assign(Object.create(t),e)}function Pe(t,e=[""],i=t,s,n=(()=>t[0])){O(s)||(s=He("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:s,_getTarget:n,override:n=>Pe([n,...t],e,i,s)};return new Proxy(o,{deleteProperty:(e,i)=>(delete e[i],delete e._keys,delete t[0][i],!0),get:(i,s)=>Re(i,s,(()=>function(t,e,i,s){let n;for(const o of e)if(n=He(Ae(o,t),i),O(n))return ze(t,n)?Ne(i,s,t,n):n}(s,e,t,i))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>We(t).includes(e),ownKeys:t=>We(t),set(t,e,i){const s=t._storage||(t._storage=n());return t[e]=s[e]=i,delete t._keys,!0}})}function Oe(t,e,i,s){const n={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:Te(t,s),setContext:e=>Oe(t,e,i,s),override:n=>Oe(t.override(n),e,i,s)};return new Proxy(n,{deleteProperty:(e,i)=>(delete e[i],delete t[i],!0),get:(t,e,i)=>Re(t,e,(()=>function(t,e,i){const{_proxy:s,_context:n,_subProxy:o,_descriptors:a}=t;let r=s[e];return T(r)&&a.isScriptable(e)&&(r=function(t,e,i,s){const{_proxy:n,_context:o,_subProxy:a,_stack:r}=i;if(r.has(t))throw new Error("Recursion detected: "+Array.from(r).join("->")+"->"+t);return r.add(t),e=e(o,a||s),r.delete(t),ze(t,e)&&(e=Ne(n._scopes,n,t,e)),e}(e,r,t,i)),f(r)&&r.length&&(r=function(t,e,i,s){const{_proxy:n,_context:o,_subProxy:a,_descriptors:r}=i;if(O(o.index)&&s(t))e=e[o.index%e.length];else if(p(e[0])){const i=e,s=n._scopes.filter((t=>t!==i));e=[];for(const l of i){const i=Ne(s,n,t,l);e.push(Oe(i,o,a&&a[t],r))}}return e}(e,r,t,a.isIndexable)),ze(e,r)&&(r=Oe(r,n,o&&o[e],a)),r}(t,e,i))),getOwnPropertyDescriptor:(e,i)=>e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,i)=>Reflect.has(t,i),ownKeys:()=>Reflect.ownKeys(t),set:(e,i,s)=>(t[i]=s,delete e[i],!0)})}function Te(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:s=e.indexable,_allKeys:n=e.allKeys}=t;return{allKeys:n,scriptable:i,indexable:s,isScriptable:T(i)?i:()=>i,isIndexable:T(s)?s:()=>s}}const Ae=(t,e)=>t?t+P(e):e,ze=(t,e)=>p(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Re(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const s=i();return t[e]=s,s}function Ie(t,e,i){return T(t)?t(e,i):t}const Fe=(t,e)=>!0===t?e:"string"==typeof t?D(e,t):void 0;function Ve(t,e,i,s,n){for(const o of e){const e=Fe(i,o);if(e){t.add(e);const o=Ie(e._fallback,i,n);if(O(o)&&o!==i&&o!==s)return o}else if(!1===e&&O(s)&&i!==s)return null}return!1}function Ne(t,e,i,s){const n=e._rootScopes,o=Ie(e._fallback,i,s),a=[...t,...n],r=new Set;r.add(s);let l=Be(r,a,i,o||i,s);return null!==l&&(!O(o)||o===i||(l=Be(r,a,o,l,s),null!==l))&&Pe(Array.from(r),[""],n,o,(()=>function(t,e,i){const s=t._getTarget();e in s||(s[e]={});const n=s[e];return f(n)&&p(i)?i:n}(e,i,s)))}function Be(t,e,i,s,n){for(;i;)i=Ve(t,e,i,s,n);return i}function He(t,e){for(const i of e){if(!i)continue;const e=i[t];if(O(e))return e}}function We(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const i of t)for(const t of Object.keys(i).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function je(t,e,i,s){const{iScale:n}=t,{key:o="r"}=this._parsing,a=new Array(s);let r,l,h,c;for(r=0,l=s;r<l;++r)h=r+i,c=e[h],a[r]={r:n.parse(D(c,o),h)};return a}const $e=Number.EPSILON||1e-14,Ze=(t,e)=>e<t.length&&!t[e].skip&&t[e],Ye=t=>"x"===t?"y":"x";function Ue(t,e,i,s){const n=t.skip?e:t,o=e,a=i.skip?e:i,r=J(o,n),l=J(a,o);let h=r/(r+l),c=l/(r+l);h=isNaN(h)?0:h,c=isNaN(c)?0:c;const d=s*h,u=s*c;return{previous:{x:o.x-d*(a.x-n.x),y:o.y-d*(a.y-n.y)},next:{x:o.x+u*(a.x-n.x),y:o.y+u*(a.y-n.y)}}}function Xe(t,e,i){return Math.max(Math.min(t,i),e)}function qe(t,e,i,s,n){let o,a,r,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)!function(t,e="x"){const i=Ye(e),s=t.length,n=Array(s).fill(0),o=Array(s);let a,r,l,h=Ze(t,0);for(a=0;a<s;++a)if(r=l,l=h,h=Ze(t,a+1),l){if(h){const t=h[e]-l[e];n[a]=0!==t?(h[i]-l[i])/t:0}o[a]=r?h?j(n[a-1])!==j(n[a])?0:(n[a-1]+n[a])/2:n[a-1]:n[a]}!function(t,e,i){const s=t.length;let n,o,a,r,l,h=Ze(t,0);for(let c=0;c<s-1;++c)l=h,h=Ze(t,c+1),l&&h&&(Y(e[c],0,$e)?i[c]=i[c+1]=0:(n=i[c]/e[c],o=i[c+1]/e[c],r=Math.pow(n,2)+Math.pow(o,2),r<=9||(a=3/Math.sqrt(r),i[c]=n*a*e[c],i[c+1]=o*a*e[c])))}(t,n,o),function(t,e,i="x"){const s=Ye(i),n=t.length;let o,a,r,l=Ze(t,0);for(let h=0;h<n;++h){if(a=r,r=l,l=Ze(t,h+1),!r)continue;const n=r[i],c=r[s];a&&(o=(n-a[i])/3,r[`cp1${i}`]=n-o,r[`cp1${s}`]=c-o*e[h]),l&&(o=(l[i]-n)/3,r[`cp2${i}`]=n+o,r[`cp2${s}`]=c+o*e[h])}}(t,o,e)}(t,n);else{let i=s?t[t.length-1]:t[0];for(o=0,a=t.length;o<a;++o)r=t[o],l=Ue(i,r,t[Math.min(o+1,a-(s?0:1))%a],e.tension),r.cp1x=l.previous.x,r.cp1y=l.previous.y,r.cp2x=l.next.x,r.cp2y=l.next.y,i=r}e.capBezierPoints&&function(t,e){let i,s,n,o,a,r=de(t[0],e);for(i=0,s=t.length;i<s;++i)a=o,o=r,r=i<s-1&&de(t[i+1],e),o&&(n=t[i],a&&(n.cp1x=Xe(n.cp1x,e.left,e.right),n.cp1y=Xe(n.cp1y,e.top,e.bottom)),r&&(n.cp2x=Xe(n.cp2x,e.left,e.right),n.cp2y=Xe(n.cp2y,e.top,e.bottom)))}(t,i)}function Ke(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Ge(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function Je(t,e,i){let s;return"string"==typeof t?(s=parseInt(t,10),-1!==t.indexOf("%")&&(s=s/100*e.parentNode[i])):s=t,s}const Qe=t=>window.getComputedStyle(t,null),ti=["top","right","bottom","left"];function ei(t,e,i){const s={};i=i?"-"+i:"";for(let n=0;n<4;n++){const o=ti[n];s[o]=parseFloat(t[e+"-"+o+i])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}const ii=(t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot);function si(t,e){if("native"in t)return t;const{canvas:i,currentDevicePixelRatio:s}=e,n=Qe(i),o="border-box"===n.boxSizing,a=ei(n,"padding"),r=ei(n,"border","width"),{x:l,y:h,box:c}=function(t,e){const i=t.touches,s=i&&i.length?i[0]:t,{offsetX:n,offsetY:o}=s;let a,r,l=!1;if(ii(n,o,t.target))a=n,r=o;else{const t=e.getBoundingClientRect();a=s.clientX-t.left,r=s.clientY-t.top,l=!0}return{x:a,y:r,box:l}}(t,i),d=a.left+(c&&r.left),u=a.top+(c&&r.top);let{width:f,height:p}=e;return o&&(f-=a.width+r.width,p-=a.height+r.height),{x:Math.round((l-d)/f*i.width/s),y:Math.round((h-u)/p*i.height/s)}}const ni=t=>Math.round(10*t)/10;function oi(t,e,i){const s=e||1,n=Math.floor(t.height*s),o=Math.floor(t.width*s);t.height=n/s,t.width=o/s;const a=t.canvas;return a.style&&(i||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==s||a.height!==n||a.width!==o)&&(t.currentDevicePixelRatio=s,a.height=n,a.width=o,t.ctx.setTransform(s,0,0,s,0,0),!0)}const ai=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 ri(t,e){const i=function(t,e){return Qe(t).getPropertyValue(e)}(t,e),s=i&&i.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function li(t,e,i,s){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function hi(t,e,i,s){return{x:t.x+i*(e.x-t.x),y:"middle"===s?i<.5?t.y:e.y:"after"===s?i<1?t.y:e.y:i>0?e.y:t.y}}function ci(t,e,i,s){const n={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},a=li(t,n,i),r=li(n,o,i),l=li(o,e,i),h=li(a,r,i),c=li(r,l,i);return li(h,c,i)}const di=new Map;function ui(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let s=di.get(i);return s||(s=new Intl.NumberFormat(t,e),di.set(i,s)),s}(e,i).format(t)}const fi=function(t,e){return{x:i=>t+t+e-i,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}},pi=function(){return{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}};function gi(t,e,i){return t?fi(e,i):pi()}function mi(t,e){let i,s;"ltr"!==e&&"rtl"!==e||(i=t.canvas.style,s=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=s)}function bi(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function xi(t){return"angle"===t?{between:et,compare:Q,normalize:tt}:{between:st,compare:(t,e)=>t-e,normalize:t=>t}}function yi({start:t,end:e,count:i,loop:s,style:n}){return{start:t%i,end:e%i,loop:s&&(e-t+1)%i==0,style:n}}function _i(t,e,i){if(!i)return[t];const{property:s,start:n,end:o}=i,a=e.length,{compare:r,between:l,normalize:h}=xi(s),{start:c,end:d,loop:u,style:f}=function(t,e,i){const{property:s,start:n,end:o}=i,{between:a,normalize:r}=xi(s),l=e.length;let h,c,{start:d,end:u,loop:f}=t;if(f){for(d+=l,u+=l,h=0,c=l;h<c&&a(r(e[d%l][s]),n,o);++h)d--,u--;d%=l,u%=l}return u<d&&(u+=l),{start:d,end:u,loop:f,style:t.style}}(t,e,i),p=[];let g,m,b,x=!1,y=null;for(let t=c,i=c;t<=d;++t)m=e[t%a],m.skip||(g=h(m[s]),g!==b&&(x=l(g,n,o),null===y&&(x||l(n,b,g)&&0!==r(n,b))&&(y=0===r(g,n)?t:i),null!==y&&(!x||0===r(o,g)||l(o,b,g))&&(p.push(yi({start:y,end:t,loop:u,count:a,style:f})),y=null),i=t,b=g));return null!==y&&p.push(yi({start:y,end:d,loop:u,count:a,style:f})),p}function vi(t,e){const i=[],s=t.segments;for(let n=0;n<s.length;n++){const o=_i(s[n],t.points,e);o.length&&i.push(...o)}return i}function wi(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function ki(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}var Ci=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,s){const n=e.listeners[s],o=e.duration;n.forEach((s=>s({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=ct.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((i,s)=>{if(!i.running||!i.items.length)return;const n=i.items;let o,a=n.length-1,r=!1;for(;a>=0;--a)o=n[a],o._active?(o._total>i.duration&&(i.duration=o._total),o.tick(t),r=!0):(n[a]=n[n.length-1],n.pop());r&&(s.draw(),this._notify(s,i,t,"progress")),n.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),e+=n.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}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 i=e.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const Mi="transparent",Si={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const s=Jt(t||Mi),n=s.valid&&Jt(e||Mi);return n&&n.valid?n.mix(s,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class Ei{constructor(t,e,i,s){const n=e[i];s=Le([t.to,s,n,t.from]);const o=Le([t.from,n,s]);this._active=!0,this._fn=t.fn||Si[t.type||typeof o],this._easing=yt[t.easing]||yt.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=i,this._from=o,this._to=s,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const s=this._target[this._prop],n=i-this._start,o=this._duration-n;this._start=i,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=n,this._loop=!!t.loop,this._to=Le([t.to,e,s,t.from]),this._from=Le([t.from,s,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,s=this._prop,n=this._from,o=this._loop,a=this._to;let r;if(this._active=n!==a&&(o||e<i),!this._active)return this._target[s]=a,void this._notify(!0);e<0?this._target[s]=n:(r=e/i%2,r=o&&r>1?2-r:r,r=this._easing(Math.min(1,Math.max(0,r))),this._target[s]=this._fn(n,a,r))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,i)=>{t.push({res:e,rej:i})}))}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let t=0;t<i.length;t++)i[t][e]()}}ne.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 Li=Object.keys(ne.animation);ne.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),ne.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),ne.describe("animations",{_fallback:"animation"}),ne.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 Di{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!p(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach((i=>{const s=t[i];if(!p(s))return;const n={};for(const t of Li)n[t]=s[t];(f(s.properties)&&s.properties||[i]).forEach((t=>{t!==i&&e.has(t)||e.set(t,n)}))}))}_animateOptions(t,e){const i=e.options,s=function(t,e){if(!e)return;let i=t.options;if(i)return i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}})),i;t.options=e}(t,i);if(!s)return[];const n=this._createAnimations(s,i);return i.$shared&&function(t,e){const i=[],s=Object.keys(e);for(let e=0;e<s.length;e++){const n=t[s[e]];n&&n.active()&&i.push(n.wait())}return Promise.all(i)}(t.options.$animations,i).then((()=>{t.options=i}),(()=>{})),n}_createAnimations(t,e){const i=this._properties,s=[],n=t.$animations||(t.$animations={}),o=Object.keys(e),a=Date.now();let r;for(r=o.length-1;r>=0;--r){const l=o[r];if("$"===l.charAt(0))continue;if("options"===l){s.push(...this._animateOptions(t,e));continue}const h=e[l];let c=n[l];const d=i.get(l);if(c){if(d&&c.active()){c.update(d,h,a);continue}c.cancel()}d&&d.duration?(n[l]=c=new Ei(d,t,l,h),s.push(c)):t[l]=h}return s}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(Ci.add(this._chart,i),!0):void 0}}function Pi(t,e){const i=t&&t.options||{},s=i.reverse,n=void 0===i.min?e:0,o=void 0===i.max?e:0;return{start:s?o:n,end:s?n:o}}function Oi(t,e){const i=[],s=t._getSortedDatasetMetas(e);let n,o;for(n=0,o=s.length;n<o;++n)i.push(s[n].index);return i}function Ti(t,e,i,s={}){const n=t.keys,o="single"===s.mode;let a,r,l,h;if(null!==e){for(a=0,r=n.length;a<r;++a){if(l=+n[a],l===i){if(s.all)continue;break}h=t.values[l],g(h)&&(o||0===e||j(e)===j(h))&&(e+=h)}return e}}function Ai(t,e){const i=t&&t.options.stacked;return i||void 0===i&&void 0!==e.stack}function zi(t,e,i){const s=t[e]||(t[e]={});return s[i]||(s[i]={})}function Ri(t,e,i,s){for(const n of e.getMatchingVisibleMetas(s).reverse()){const e=t[n.index];if(i&&e>0||!i&&e<0)return n.index}return null}function Ii(t,e){const{chart:i,_cachedMeta:s}=t,n=i._stacks||(i._stacks={}),{iScale:o,vScale:a,index:r}=s,l=o.axis,h=a.axis,c=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(o,a,s),d=e.length;let u;for(let t=0;t<d;++t){const i=e[t],{[l]:o,[h]:d}=i;u=(i._stacks||(i._stacks={}))[h]=zi(n,c,o),u[r]=d,u._top=Ri(u,a,!0,s.type),u._bottom=Ri(u,a,!1,s.type)}}function Fi(t,e){const i=t.scales;return Object.keys(i).filter((t=>i[t].axis===e)).shift()}function Vi(t,e){const i=t.controller.index,s=t.vScale&&t.vScale.axis;if(s){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[s]||void 0===e[s][i])return;delete e[s][i]}}}const Ni=t=>"reset"===t||"none"===t,Bi=(t,e)=>e?t:Object.assign({},t);class Hi{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.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Ai(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&Vi(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),s=(t,e,i,s)=>"x"===t?e:"r"===t?s:i,n=e.xAxisID=b(i.xAxisID,Fi(t,"x")),o=e.yAxisID=b(i.yAxisID,Fi(t,"y")),a=e.rAxisID=b(i.rAxisID,Fi(t,"r")),r=e.indexAxis,l=e.iAxisID=s(r,n,o,a),h=e.vAxisID=s(r,o,n,a);e.xScale=this.getScaleForId(n),e.yScale=this.getScaleForId(o),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&<(this._data,this),t._stacked&&Vi(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(p(e))this._data=function(t){const e=Object.keys(t),i=new Array(e.length);let s,n,o;for(s=0,n=e.length;s<n;++s)o=e[s],i[s]={x:o,y:t[o]};return i}(e);else if(i!==e){if(i){lt(i,this);const t=this._cachedMeta;Vi(t),t._parsed=[]}e&&Object.isExtensible(e)&&(this,(s=e)._chartjs?s._chartjs.listeners.push(this):(Object.defineProperty(s,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[this]}}),rt.forEach((t=>{const e="_onData"+P(t),i=s[t];Object.defineProperty(s,t,{configurable:!0,enumerable:!1,value(...t){const n=i.apply(this,t);return s._chartjs.listeners.forEach((i=>{"function"==typeof i[e]&&i[e](...t)})),n}})})))),this._syncList=[],this._data=e}var s}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let s=!1;this._dataCheck();const n=e._stacked;e._stacked=Ai(e.vScale,e),e.stack!==i.stack&&(s=!0,Vi(e),e.stack=i.stack),this._resyncElements(t),(s||n!==e._stacked)&&Ii(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:s}=this,{iScale:n,_stacked:o}=i,a=n.axis;let r,l,h,c=0===t&&e===s.length||i._sorted,d=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=s,i._sorted=!0,h=s;else{h=f(s[t])?this.parseArrayData(i,s,t,e):p(s[t])?this.parseObjectData(i,s,t,e):this.parsePrimitiveData(i,s,t,e);const n=()=>null===l[a]||d&&l[a]<d[a];for(r=0;r<e;++r)i._parsed[r+t]=l=h[r],c&&(n()&&(c=!1),d=l);i._sorted=c}o&&Ii(this,h)}parsePrimitiveData(t,e,i,s){const{iScale:n,vScale:o}=t,a=n.axis,r=o.axis,l=n.getLabels(),h=n===o,c=new Array(s);let d,u,f;for(d=0,u=s;d<u;++d)f=d+i,c[d]={[a]:h||n.parse(l[f],f),[r]:o.parse(e[f],f)};return c}parseArrayData(t,e,i,s){const{xScale:n,yScale:o}=t,a=new Array(s);let r,l,h,c;for(r=0,l=s;r<l;++r)h=r+i,c=e[h],a[r]={x:n.parse(c[0],h),y:o.parse(c[1],h)};return a}parseObjectData(t,e,i,s){const{xScale:n,yScale:o}=t,{xAxisKey:a="x",yAxisKey:r="y"}=this._parsing,l=new Array(s);let h,c,d,u;for(h=0,c=s;h<c;++h)d=h+i,u=e[d],l[h]={x:n.parse(D(u,a),d),y:o.parse(D(u,r),d)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){const s=this.chart,n=this._cachedMeta,o=e[t.axis];return Ti({keys:Oi(s,!0),values:e._stacks[t.axis]},o,n.index,{mode:i})}updateRangeFromParsed(t,e,i,s){const n=i[e.axis];let o=null===n?NaN:n;const a=s&&i._stacks[e.axis];s&&a&&(s.values=a,o=Ti(s,n,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const i=this._cachedMeta,s=i._parsed,n=i._sorted&&t===i.iScale,o=s.length,a=this._getOtherScale(t),r=((t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:Oi(i,!0),values:null})(e,i,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:c}=function(t){const{min:e,max:i,minDefined:s,maxDefined:n}=t.getUserBounds();return{min:s?e:Number.NEGATIVE_INFINITY,max:n?i:Number.POSITIVE_INFINITY}}(a);let d,u;function f(){u=s[d];const e=u[a.axis];return!g(u[t.axis])||h>e||c<e}for(d=0;d<o&&(f()||(this.updateRangeFromParsed(l,t,u,r),!n));++d);if(n)for(d=o-1;d>=0;--d)if(!f()){this.updateRangeFromParsed(l,t,u,r);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let s,n,o;for(s=0,n=e.length;s<n;++s)o=e[s][t.axis],g(o)&&i.push(o);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,i=e.iScale,s=e.vScale,n=this.getParsed(t);return{label:i?""+i.getLabelForValue(n[i.axis]):"",value:s?""+s.getLabelForValue(n[s.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,i,s,n;return p(t)?(e=t.top,i=t.right,s=t.bottom,n=t.left):e=i=s=n=t,{top:e,right:i,bottom:s,left:n,disabled:!1===t}}(b(this.options.clip,function(t,e,i){if(!1===i)return!1;const s=Pi(t,i),n=Pi(e,i);return{top:n.end,right:s.end,bottom:n.start,left:s.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,i=this._cachedMeta,s=i.data||[],n=e.chartArea,o=[],a=this._drawStart||0,r=this._drawCount||s.length-a,l=this.options.drawActiveElementsOnTop;let h;for(i.dataset&&i.dataset.draw(t,n,a,r),h=a;h<a+r;++h){const e=s[h];e.hidden||(e.active&&l?o.push(e):e.draw(t,n))}for(h=0;h<o.length;++h)o[h].draw(t,n)}getStyle(t,e){const i=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,e,i){const s=this.getDataset();let n;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];n=e.$context||(e.$context=function(t,e,i){return De(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:i,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),n.parsed=this.getParsed(t),n.raw=s.data[t],n.index=n.dataIndex=t}else n=this.$context||(this.$context=function(t,e){return De(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),n.dataset=s,n.index=n.datasetIndex=this.index;return n.active=!!e,n.mode=i,n}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",i){const s="active"===e,n=this._cachedDataOpts,o=t+"-"+e,a=n[o],r=this.enableOptionSharing&&O(i);if(a)return Bi(a,r);const l=this.chart.config,h=l.datasetElementScopeKeys(this._type,t),c=s?[`${t}Hover`,"hover",t,""]:[t,""],d=l.getOptionScopes(this.getDataset(),h),u=Object.keys(ne.elements[t]),f=l.resolveNamedOptions(d,u,(()=>this.getContext(i,s)),c);return f.$shared&&(f.$shared=r,n[o]=Object.freeze(Bi(f,r))),f}_resolveAnimations(t,e,i){const s=this.chart,n=this._cachedDataOpts,o=`animation-${e}`,a=n[o];if(a)return a;let r;if(!1!==s.options.animation){const s=this.chart.config,n=s.datasetAnimationScopeKeys(this._type,e),o=s.getOptionScopes(this.getDataset(),n);r=s.createResolver(o,this.getContext(t,i,e))}const l=new Di(s,r&&r.animations);return r&&r._cacheable&&(n[o]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Ni(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),s=this._sharedOptions,n=this.getSharedOptions(i),o=this.includeOptions(e,n)||n!==s;return this.updateSharedOptions(n,e,i),{sharedOptions:n,includeOptions:o}}updateElement(t,e,i,s){Ni(s)?Object.assign(t,i):this._resolveAnimations(e,s).update(t,i)}updateSharedOptions(t,e,i){t&&!Ni(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,s){t.active=s;const n=this.getStyle(e,s);this._resolveAnimations(e,i,s).update(t,{options:!s&&this.getSharedOptions(n)||n})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"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,i=this._cachedMeta.data;for(const[t,e,i]of this._syncList)this[t](e,i);this._syncList=[];const s=i.length,n=e.length,o=Math.min(n,s);o&&this.parse(0,o),n>s?this._insertElements(s,n-s,t):n<s&&this._removeElements(n,s-n)}_insertElements(t,e,i=!0){const s=this._cachedMeta,n=s.data,o=t+e;let a;const r=t=>{for(t.length+=e,a=t.length-1;a>=o;a--)t[a]=t[a-e]};for(r(n),a=t;a<o;++a)n[a]=new this.dataElementType;this._parsing&&r(s._parsed),this.parse(t,e),i&&this.updateElements(n,t,e,"reset")}updateElements(t,e,i,s){}_removeElements(t,e){const i=this._cachedMeta;if(this._parsing){const s=i._parsed.splice(t,e);i._stacked&&Vi(i,s)}i.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,i,s]=t;this[e](i,s)}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 i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Wi(t){const e=t.iScale,i=function(t,e){if(!t._cache.$bar){const i=t.getMatchingVisibleMetas(e);let s=[];for(let e=0,n=i.length;e<n;e++)s=s.concat(i[e].controller.getAllParsedValues(t));t._cache.$bar=ht(s.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let s,n,o,a,r=e._length;const l=()=>{32767!==o&&-32768!==o&&(O(a)&&(r=Math.min(r,Math.abs(o-a)||r)),a=o)};for(s=0,n=i.length;s<n;++s)o=e.getPixelForValue(i[s]),l();for(a=void 0,s=0,n=e.ticks.length;s<n;++s)o=e.getPixelForTick(s),l();return r}function ji(t,e,i,s){return f(t)?function(t,e,i,s){const n=i.parse(t[0],s),o=i.parse(t[1],s),a=Math.min(n,o),r=Math.max(n,o);let l=a,h=r;Math.abs(a)>Math.abs(r)&&(l=r,h=a),e[i.axis]=h,e._custom={barStart:l,barEnd:h,start:n,end:o,min:a,max:r}}(t,e,i,s):e[i.axis]=i.parse(t,s),e}function $i(t,e,i,s){const n=t.iScale,o=t.vScale,a=n.getLabels(),r=n===o,l=[];let h,c,d,u;for(h=i,c=i+s;h<c;++h)u=e[h],d={},d[n.axis]=r||n.parse(a[h],h),l.push(ji(u,d,o,h));return l}function Zi(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Yi(t,e,i,s){let n=e.borderSkipped;const o={};if(!n)return void(t.borderSkipped=o);if(!0===n)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:r,reverse:l,top:h,bottom:c}=function(t){let e,i,s,n,o;return t.horizontal?(e=t.base>t.x,i="left",s="right"):(e=t.base<t.y,i="bottom",s="top"),e?(n="end",o="start"):(n="start",o="end"),{start:i,end:s,reverse:e,top:n,bottom:o}}(t);"middle"===n&&i&&(t.enableBorderRadius=!0,(i._top||0)===s?n=h:(i._bottom||0)===s?n=c:(o[Ui(c,a,r,l)]=!0,n=h)),o[Ui(n,a,r,l)]=!0,t.borderSkipped=o}function Ui(t,e,i,s){var n,o,a;return s?(a=i,t=Xi(t=(n=t)===(o=e)?a:n===a?o:n,i,e)):t=Xi(t,e,i),t}function Xi(t,e,i){return"start"===t?e:"end"===t?i:t}function qi(t,{inflateAmount:e},i){t.inflateAmount="auto"===e?1===i?.33:0:e}Hi.defaults={},Hi.prototype.datasetElementType=null,Hi.prototype.dataElementType=null;class Ki extends Hi{parsePrimitiveData(t,e,i,s){return $i(t,e,i,s)}parseArrayData(t,e,i,s){return $i(t,e,i,s)}parseObjectData(t,e,i,s){const{iScale:n,vScale:o}=t,{xAxisKey:a="x",yAxisKey:r="y"}=this._parsing,l="x"===n.axis?a:r,h="x"===o.axis?a:r,c=[];let d,u,f,p;for(d=i,u=i+s;d<u;++d)p=e[d],f={},f[n.axis]=n.parse(D(p,l),d),c.push(ji(D(p,h),f,o,d));return c}updateRangeFromParsed(t,e,i,s){super.updateRangeFromParsed(t,e,i,s);const n=i._custom;n&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,n.min),t.max=Math.max(t.max,n.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:i,vScale:s}=e,n=this.getParsed(t),o=n._custom,a=Zi(o)?"["+o.start+", "+o.end+"]":""+s.getLabelForValue(n[s.axis]);return{label:""+i.getLabelForValue(n[i.axis]),value:a}}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,i,s){const n="reset"===s,{index:o,_cachedMeta:{vScale:a}}=this,r=a.getBasePixel(),l=a.isHorizontal(),h=this._getRuler(),{sharedOptions:c,includeOptions:d}=this._getSharedOptions(e,s);for(let f=e;f<e+i;f++){const e=this.getParsed(f),i=n||u(e[a.axis])?{base:r,head:r}:this._calculateBarValuePixels(f),p=this._calculateBarIndexPixels(f,h),g=(e._stacks||{})[a.axis],m={horizontal:l,base:i.base,enableBorderRadius:!g||Zi(e._custom)||o===g._top||o===g._bottom,x:l?i.head:p.center,y:l?p.center:i.head,height:l?p.size:Math.abs(i.size),width:l?Math.abs(i.size):p.size};d&&(m.options=c||this.resolveDataElementOptions(f,t[f].active?"active":s));const b=m.options||t[f].options;Yi(m,b,g,o),qi(m,b,h.ratio),this.updateElement(t[f],f,m,s)}}_getStacks(t,e){const{iScale:i}=this._cachedMeta,s=i.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),n=i.options.stacked,o=[],a=t=>{const i=t.controller.getParsed(e),s=i&&i[t.vScale.axis];if(u(s)||isNaN(s))return!0};for(const i of s)if((void 0===e||!a(i))&&((!1===n||-1===o.indexOf(i.stack)||void 0===n&&void 0===i.stack)&&o.push(i.stack),i.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const s=this._getStacks(t,i),n=void 0!==e?s.indexOf(e):-1;return-1===n?s.length-1:n}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,s=[];let n,o;for(n=0,o=e.data.length;n<o;++n)s.push(i.getPixelForValue(this.getParsed(n)[i.axis],n));const a=t.barThickness;return{min:a||Wi(e),pixels:s,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:i},options:{base:s,minBarLength:n}}=this,o=s||0,a=this.getParsed(t),r=a._custom,l=Zi(r);let h,c,d=a[e.axis],f=0,p=i?this.applyStack(e,a,i):d;p!==d&&(f=p-d,p=d),l&&(d=r.barStart,p=r.barEnd-r.barStart,0!==d&&j(d)!==j(r.barEnd)&&(f=0),f+=d);const g=u(s)||l?f:s;let m=e.getPixelForValue(g);if(h=this.chart.getDataVisibility(t)?e.getPixelForValue(f+p):m,c=h-m,Math.abs(c)<n){c=function(t,e,i){return 0!==t?j(t):(e.isHorizontal()?1:-1)*(e.min>=i?1:-1)}(c,e,o)*n,d===o&&(m-=c/2);const t=e.getPixelForDecimal(0),i=e.getPixelForDecimal(1),s=Math.min(t,i),a=Math.max(t,i);m=Math.max(Math.min(m,a),s),h=m+c}if(m===e.getPixelForValue(o)){const t=j(c)*e.getLineWidthForValue(o)/2;m+=t,c-=t}return{size:c,base:m,head:h,center:h+c/2}}_calculateBarIndexPixels(t,e){const i=e.scale,s=this.options,n=s.skipNull,o=b(s.maxBarThickness,1/0);let a,r;if(e.grouped){const i=n?this._getStackCount(t):e.stackCount,l="flex"===s.barThickness?function(t,e,i,s){const n=e.pixels,o=n[t];let a=t>0?n[t-1]:null,r=t<n.length-1?n[t+1]:null;const l=i.categoryPercentage;null===a&&(a=o-(null===r?e.end-e.start:r-o)),null===r&&(r=o+o-a);const h=o-(o-Math.min(a,r))/2*l;return{chunk:Math.abs(r-a)/2*l/s,ratio:i.barPercentage,start:h}}(t,e,s,i):function(t,e,i,s){const n=i.barThickness;let o,a;return u(n)?(o=e.min*i.categoryPercentage,a=i.barPercentage):(o=n*s,a=1),{chunk:o/s,ratio:a,start:e.pixels[t]-o/2}}(t,e,s,i),h=this._getStackIndex(this.index,this._cachedMeta.stack,n?t:void 0);a=l.start+l.chunk*h+l.chunk/2,r=Math.min(o,l.chunk*l.ratio)}else a=i.getPixelForValue(this.getParsed(t)[i.axis],t),r=Math.min(o,e.min*e.ratio);return{base:a-r/2,head:a+r/2,center:a,size:r}}draw(){const t=this._cachedMeta,e=t.vScale,i=t.data,s=i.length;let n=0;for(;n<s;++n)null!==this.getParsed(n)[e.axis]&&i[n].draw(this._ctx)}}Ki.id="bar",Ki.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},Ki.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class Gi extends Hi{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,i,s){const n=super.parsePrimitiveData(t,e,i,s);for(let t=0;t<n.length;t++)n[t]._custom=this.resolveDataElementOptions(t+i).radius;return n}parseArrayData(t,e,i,s){const n=super.parseArrayData(t,e,i,s);for(let t=0;t<n.length;t++){const s=e[i+t];n[t]._custom=b(s[2],this.resolveDataElementOptions(t+i).radius)}return n}parseObjectData(t,e,i,s){const n=super.parseObjectData(t,e,i,s);for(let t=0;t<n.length;t++){const s=e[i+t];n[t]._custom=b(s&&s.r&&+s.r,this.resolveDataElementOptions(t+i).radius)}return n}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let i=t.length-1;i>=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:i,yScale:s}=e,n=this.getParsed(t),o=i.getLabelForValue(n.x),a=s.getLabelForValue(n.y),r=n._custom;return{label:e.label,value:"("+o+", "+a+(r?", "+r:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,s){const n="reset"===s,{iScale:o,vScale:a}=this._cachedMeta,{sharedOptions:r,includeOptions:l}=this._getSharedOptions(e,s),h=o.axis,c=a.axis;for(let d=e;d<e+i;d++){const e=t[d],i=!n&&this.getParsed(d),u={},f=u[h]=n?o.getPixelForDecimal(.5):o.getPixelForValue(i[h]),p=u[c]=n?a.getBasePixel():a.getPixelForValue(i[c]);u.skip=isNaN(f)||isNaN(p),l&&(u.options=r||this.resolveDataElementOptions(d,e.active?"active":s),n&&(u.options.radius=0)),this.updateElement(e,d,u,s)}}resolveDataElementOptions(t,e){const i=this.getParsed(t);let s=super.resolveDataElementOptions(t,e);s.$shared&&(s=Object.assign({},s,{$shared:!1}));const n=s.radius;return"active"!==e&&(s.radius=0),s.radius+=b(i&&i._custom,n),s}}Gi.id="bubble",Gi.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},Gi.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class Ji extends Hi{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 i=this.getDataset().data,s=this._cachedMeta;if(!1===this._parsing)s._parsed=i;else{let n,o,a=t=>+i[t];if(p(i[t])){const{key:t="value"}=this._parsing;a=e=>+D(i[e],t)}for(n=t,o=t+e;n<o;++n)s._parsed[n]=a(n)}}_getRotation(){return X(this.options.rotation-90)}_getCircumference(){return X(this.options.circumference)}_getRotationExtents(){let t=R,e=-R;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)){const s=this.chart.getDatasetMeta(i).controller,n=s._getRotation(),o=s._getCircumference();t=Math.min(t,n),e=Math.max(e,n+o)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:i}=e,s=this._cachedMeta,n=s.data,o=this.getMaxBorderWidth()+this.getMaxOffset(n)+this.options.spacing,a=Math.max((Math.min(i.width,i.height)-o)/2,0),r=Math.min((h=a,"string"==typeof(l=this.options.cutout)&&l.endsWith("%")?parseFloat(l)/100:l/h),1);var l,h;const c=this._getRingWeight(this.index),{circumference:d,rotation:u}=this._getRotationExtents(),{ratioX:f,ratioY:p,offsetX:g,offsetY:m}=function(t,e,i){let s=1,n=1,o=0,a=0;if(e<R){const r=t,l=r+e,h=Math.cos(r),c=Math.sin(r),d=Math.cos(l),u=Math.sin(l),f=(t,e,s)=>et(t,r,l,!0)?1:Math.max(e,e*i,s,s*i),p=(t,e,s)=>et(t,r,l,!0)?-1:Math.min(e,e*i,s,s*i),g=f(0,h,d),m=f(N,c,u),b=p(z,h,d),x=p(z+N,c,u);s=(g-b)/2,n=(m-x)/2,o=-(g+b)/2,a=-(m+x)/2}return{ratioX:s,ratioY:n,offsetX:o,offsetY:a}}(u,d,r),b=(i.width-o)/f,y=(i.height-o)/p,_=Math.max(Math.min(b,y)/2,0),v=x(this.options.radius,_),w=(v-Math.max(v*r,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*v,this.offsetY=m*v,s.total=this.calculateTotal(),this.outerRadius=v-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*c,0),this.updateElements(n,0,n.length,t)}_circumference(t,e){const i=this.options,s=this._cachedMeta,n=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===s._parsed[t]||s.data[t].hidden?0:this.calculateCircumference(s._parsed[t]*n/R)}updateElements(t,e,i,s){const n="reset"===s,o=this.chart,a=o.chartArea,r=o.options.animation,l=(a.left+a.right)/2,h=(a.top+a.bottom)/2,c=n&&r.animateScale,d=c?0:this.innerRadius,u=c?0:this.outerRadius,{sharedOptions:f,includeOptions:p}=this._getSharedOptions(e,s);let g,m=this._getRotation();for(g=0;g<e;++g)m+=this._circumference(g,n);for(g=e;g<e+i;++g){const e=this._circumference(g,n),i=t[g],o={x:l+this.offsetX,y:h+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:u,innerRadius:d};p&&(o.options=f||this.resolveDataElementOptions(g,i.active?"active":s)),m+=e,this.updateElement(i,g,o,s)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let i,s=0;for(i=0;i<e.length;i++){const n=t._parsed[i];null===n||isNaN(n)||!this.chart.getDataVisibility(i)||e[i].hidden||(s+=Math.abs(n))}return s}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?R*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,s=i.data.labels||[],n=ui(e._parsed[t],i.options.locale);return{label:s[t]||"",value:n}}getMaxBorderWidth(t){let e=0;const i=this.chart;let s,n,o,a,r;if(!t)for(s=0,n=i.data.datasets.length;s<n;++s)if(i.isDatasetVisible(s)){o=i.getDatasetMeta(s),t=o.data,a=o.controller;break}if(!t)return 0;for(s=0,n=t.length;s<n;++s)r=a.resolveDataElementOptions(s),"inner"!==r.borderAlign&&(e=Math.max(e,r.borderWidth||0,r.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let i=0,s=t.length;i<s;++i){const t=this.resolveDataElementOptions(i);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e}_getRingWeight(t){return Math.max(b(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Ji.id="doughnut",Ji.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"},Ji.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},Ji.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map(((e,s)=>{const n=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const i=": "+t.formattedValue;return f(e)?(e=e.slice(),e[0]+=i):e+=i,e}}}}};class Qi extends Hi{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:s=[],_dataset:n}=e,o=this.chart._animationsDisabled;let{start:a,count:r}=pt(e,s,o);this._drawStart=a,this._drawCount=r,gt(e)&&(a=0,r=s.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!n._decimated,i.points=s;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(i,void 0,{animated:!o,options:l},t),this.updateElements(s,a,r,t)}updateElements(t,e,i,s){const n="reset"===s,{iScale:o,vScale:a,_stacked:r,_dataset:l}=this._cachedMeta,{sharedOptions:h,includeOptions:c}=this._getSharedOptions(e,s),d=o.axis,f=a.axis,{spanGaps:p,segment:g}=this.options,m=Z(p)?p:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||n||"none"===s;let x=e>0&&this.getParsed(e-1);for(let p=e;p<e+i;++p){const e=t[p],i=this.getParsed(p),y=b?e:{},_=u(i[f]),v=y[d]=o.getPixelForValue(i[d],p),w=y[f]=n||_?a.getBasePixel():a.getPixelForValue(r?this.applyStack(a,i,r):i[f],p);y.skip=isNaN(v)||isNaN(w)||_,y.stop=p>0&&Math.abs(i[d]-x[d])>m,g&&(y.parsed=i,y.raw=l.data[p]),c&&(y.options=h||this.resolveDataElementOptions(p,e.active?"active":s)),b||this.updateElement(e,p,y,s),x=i}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,s=t.data||[];if(!s.length)return i;const n=s[0].size(this.resolveDataElementOptions(0)),o=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,n,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Qi.id="line",Qi.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},Qi.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class ts extends Hi{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,s=i.data.labels||[],n=ui(e._parsed[t].r,i.options.locale);return{label:s[t]||"",value:n}}parseObjectData(t,e,i,s){return je.bind(this)(t,e,i,s)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach(((t,i)=>{const s=this.getParsed(i).r;!isNaN(s)&&this.chart.getDataVisibility(i)&&(s<e.min&&(e.min=s),s>e.max&&(e.max=s))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,s=Math.min(e.right-e.left,e.bottom-e.top),n=Math.max(s/2,0),o=(n-Math.max(i.cutoutPercentage?n/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=n-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,i,s){const n="reset"===s,o=this.chart,a=o.options.animation,r=this._cachedMeta.rScale,l=r.xCenter,h=r.yCenter,c=r.getIndexAngle(0)-.5*z;let d,u=c;const f=360/this.countVisibleElements();for(d=0;d<e;++d)u+=this._computeAngle(d,s,f);for(d=e;d<e+i;d++){const e=t[d];let i=u,p=u+this._computeAngle(d,s,f),g=o.getDataVisibility(d)?r.getDistanceFromCenterForValue(this.getParsed(d).r):0;u=p,n&&(a.animateScale&&(g=0),a.animateRotate&&(i=p=c));const m={x:l,y:h,innerRadius:0,outerRadius:g,startAngle:i,endAngle:p,options:this.resolveDataElementOptions(d,e.active?"active":s)};this.updateElement(e,d,m,s)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach(((t,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++})),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?X(this.resolveDataElementOptions(t,e).angle||i):0}}ts.id="polarArea",ts.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},ts.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map(((e,s)=>{const n=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.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 es extends Ji{}es.id="pie",es.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class is extends Hi{getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,s){return je.bind(this)(t,e,i,s)}update(t){const e=this._cachedMeta,i=e.dataset,s=e.data||[],n=e.iScale.getLabels();if(i.points=s,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:n.length===s.length,options:e};this.updateElement(i,void 0,o,t)}this.updateElements(s,0,s.length,t)}updateElements(t,e,i,s){const n=this._cachedMeta.rScale,o="reset"===s;for(let a=e;a<e+i;a++){const e=t[a],i=this.resolveDataElementOptions(a,e.active?"active":s),r=n.getPointPositionForValue(a,this.getParsed(a).r),l=o?n.xCenter:r.x,h=o?n.yCenter:r.y,c={x:l,y:h,angle:r.angle,skip:isNaN(l)||isNaN(h),options:i};this.updateElement(e,a,c,s)}}}is.id="radar",is.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},is.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class ss{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:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return Z(this.x)&&Z(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const s={};return t.forEach((t=>{s[t]=i[t]&&i[t].active()?i[t]._to:this[t]})),s}}ss.defaults={},ss.defaultRoutes=void 0;const ns={values:t=>f(t)?t:""+t,numeric(t,e,i){if(0===t)return"0";const s=this.chart.options.locale;let n,o=t;if(i.length>1){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(n="scientific"),o=function(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t)),i}(t,i)}const a=W(Math.abs(o)),r=Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:n,minimumFractionDigits:r,maximumFractionDigits:r};return Object.assign(l,this.options.ticks.format),ui(t,s,l)},logarithmic(t,e,i){if(0===t)return"0";const s=t/Math.pow(10,Math.floor(W(t)));return 1===s||2===s||5===s?ns.numeric.call(this,t,e,i):""}};var os={formatters:ns};function as(t,e,i,s,n){const o=b(s,0),a=Math.min(b(n,t.length),t.length);let r,l,h,c=0;for(i=Math.ceil(i),n&&(r=n-s,i=r/Math.floor(r/i)),h=o;h<0;)c++,h=Math.round(o+c*i);for(l=Math.max(o,0);l<a;l++)l===h&&(e.push(t[l]),c++,h=Math.round(o+c*i))}ne.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:os.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),ne.route("scale.ticks","color","","color"),ne.route("scale.grid","color","","borderColor"),ne.route("scale.grid","borderColor","","borderColor"),ne.route("scale.title","color","","color"),ne.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),ne.describe("scales",{_fallback:"scale"}),ne.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const rs=t=>"left"===t?"right":"right"===t?"left":t,ls=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i;function hs(t,e){const i=[],s=t.length/e,n=t.length;let o=0;for(;o<n;o+=s)i.push(t[Math.floor(o)]);return i}function cs(t,e,i){const s=t.ticks.length,n=Math.min(e,s-1),o=t._startPixel,a=t._endPixel,r=1e-6;let l,h=t.getPixelForTick(n);if(!(i&&(l=1===s?Math.max(h-o,a-h):0===e?(t.getPixelForTick(1)-h)/2:(h-t.getPixelForTick(n-1))/2,h+=n<e?l:-l,h<o-r||h>a+r)))return h}function ds(t){return t.drawTicks?t.tickLength:0}function us(t,e){if(!t.display)return 0;const i=Ee(t.font,e),s=Se(t.padding);return(f(t.text)?t.text.length:1)*i.lineHeight+s.height}function fs(t,e,i){let s=ut(t);return(i&&"right"!==e||!i&&"right"===e)&&(s=rs(s)),s}class ps extends ss{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:i,_suggestedMax:s}=this;return t=m(t,Number.POSITIVE_INFINITY),e=m(e,Number.NEGATIVE_INFINITY),i=m(i,Number.POSITIVE_INFINITY),s=m(s,Number.NEGATIVE_INFINITY),{min:m(t,i),max:m(e,s),minDefined:g(t),maxDefined:g(e)}}getMinMax(t){let e,{min:i,max:s,minDefined:n,maxDefined:o}=this.getUserBounds();if(n&&o)return{min:i,max:s};const a=this.getMatchingVisibleMetas();for(let r=0,l=a.length;r<l;++r)e=a[r].controller.getMinMax(this,t),n||(i=Math.min(i,e.min)),o||(s=Math.max(s,e.max));return i=o&&i>s?s:i,s=n&&i>s?i:s,{min:m(i,m(s,i)),max:m(s,m(i,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(){y(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:s,grace:n,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,i){const{min:s,max:n}=t,o=x(e,(n-s)/2),a=(t,e)=>i&&0===t?0:t+e;return{min:a(s,-Math.abs(o)),max:a(n,o)}}(this,n,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const r=a<this.ticks.length;this._convertTicksToLabels(r?hs(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=function(t,e){const i=t.options.ticks,s=i.maxTicksLimit||function(t){const e=t.options.offset,i=t._tickSize(),s=t._length/i+(e?0:1),n=t._maxLength/i;return Math.floor(Math.min(s,n))}(t),n=i.major.enabled?function(t){const e=[];let i,s;for(i=0,s=t.length;i<s;i++)t[i].major&&e.push(i);return e}(e):[],o=n.length,a=n[0],r=n[o-1],l=[];if(o>s)return function(t,e,i,s){let n,o=0,a=i[0];for(s=Math.ceil(s),n=0;n<t.length;n++)n===a&&(e.push(t[n]),o++,a=i[o*s])}(e,l,n,o/s),l;const h=function(t,e,i){const s=function(t){const e=t.length;let i,s;if(e<2)return!1;for(s=t[0],i=1;i<e;++i)if(t[i]-t[i-1]!==s)return!1;return s}(t),n=e.length/i;if(!s)return Math.max(n,1);const o=function(t){const e=[],i=Math.sqrt(t);let s;for(s=1;s<i;s++)t%s==0&&(e.push(s),e.push(t/s));return i===(0|i)&&e.push(i),e.sort(((t,e)=>t-e)).pop(),e}(s);for(let t=0,e=o.length-1;t<e;t++){const e=o[t];if(e>n)return e}return Math.max(n,1)}(n,e,s);if(o>0){let t,i;const s=o>1?Math.round((r-a)/(o-1)):null;for(as(e,l,h,u(s)?0:a-s,a),t=0,i=o-1;t<i;t++)as(e,l,h,n[t],n[t+1]);return as(e,l,h,r,u(s)?e.length:r+s),l}return as(e,l,h),l}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),r&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,i=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,i=!i),this._startPixel=t,this._endPixel=e,this._reversePixels=i,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){y(this.options.afterUpdate,[this])}beforeSetDimensions(){y(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(){y(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),y(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){y(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let i,s,n;for(i=0,s=t.length;i<s;i++)n=t[i],n.label=y(e.callback,[n.value,i,t],this)}afterTickToLabelConversion(){y(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){y(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,i=this.ticks.length,s=e.minRotation||0,n=e.maxRotation;let o,a,r,l=s;if(!this._isVisible()||!e.display||s>=n||i<=1||!this.isHorizontal())return void(this.labelRotation=s);const h=this._getLabelSizes(),c=h.widest.width,d=h.highest.height,u=it(this.chart.width-c,0,this.maxWidth);o=t.offset?this.maxWidth/i:u/(i-1),c+6>o&&(o=u/(i-(t.offset?.5:1)),a=this.maxHeight-ds(t.grid)-e.padding-us(t.title,this.chart.options.font),r=Math.sqrt(c*c+d*d),l=q(Math.min(Math.asin(it((h.highest.height+6)/o,-1,1)),Math.asin(it(a/r,-1,1))-Math.asin(it(d/r,-1,1)))),l=Math.max(s,Math.min(n,l))),this.labelRotation=l}afterCalculateLabelRotation(){y(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){y(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:s,grid:n}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const o=us(s,e.options.font);if(a?(t.width=this.maxWidth,t.height=ds(n)+o):(t.height=this.maxHeight,t.width=ds(n)+o),i.display&&this.ticks.length){const{first:e,last:s,widest:n,highest:o}=this._getLabelSizes(),r=2*i.padding,l=X(this.labelRotation),h=Math.cos(l),c=Math.sin(l);if(a){const e=i.mirror?0:c*n.width+h*o.height;t.height=Math.min(this.maxHeight,t.height+e+r)}else{const e=i.mirror?0:h*n.width+c*o.height;t.width=Math.min(this.maxWidth,t.width+e+r)}this._calculatePadding(e,s,c,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,i,s){const{ticks:{align:n,padding:o},position:a}=this.options,r=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let c=0,d=0;r?l?(c=s*t.width,d=i*e.height):(c=i*t.height,d=s*e.width):"start"===n?d=e.width:"end"===n?c=t.width:"inner"!==n&&(c=t.width/2,d=e.width/2),this.paddingLeft=Math.max((c-a+o)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-h+o)*this.width/(this.width-h),0)}else{let i=e.height/2,s=t.height/2;"start"===n?(i=0,s=t.height):"end"===n&&(i=e.height,s=0),this.paddingTop=i+o,this.paddingBottom=s+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(){y(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,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e<i;e++)u(t[e].label)&&(t.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let i=this.ticks;e<i.length&&(i=hs(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length)}return t}_computeLabelSizes(t,e){const{ctx:i,_longestTextCache:s}=this,n=[],o=[];let a,r,l,h,c,d,p,g,m,b,x,y=0,v=0;for(a=0;a<e;++a){if(h=t[a].label,c=this._resolveTickFontOptions(a),i.font=d=c.string,p=s[d]=s[d]||{data:{},gc:[]},g=c.lineHeight,m=b=0,u(h)||f(h)){if(f(h))for(r=0,l=h.length;r<l;++r)x=h[r],u(x)||f(x)||(m=oe(i,p.data,p.gc,m,x),b+=g)}else m=oe(i,p.data,p.gc,m,h),b=g;n.push(m),o.push(b),y=Math.max(m,y),v=Math.max(b,v)}!function(t,e){_(t,(t=>{const i=t.gc,s=i.length/2;let n;if(s>e){for(n=0;n<s;++n)delete t.data[i[n]];i.splice(0,s)}}))}(s,e);const w=n.indexOf(y),k=o.indexOf(v),C=t=>({width:n[t]||0,height:o[t]||0});return{first:C(0),last:C(e-1),widest:C(w),highest:C(k),widths:n,heights:o}}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 it(this._alignToPixels?re(this.chart,e,0):e,-32768,32767)}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 i=e[t];return i.$context||(i.$context=function(t,e,i){return De(t,{tick:i,index:e,type:"tick"})}(this.getContext(),t,i))}return this.$context||(this.$context=De(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=X(this.labelRotation),i=Math.abs(Math.cos(e)),s=Math.abs(Math.sin(e)),n=this._getLabelSizes(),o=t.autoSkipPadding||0,a=n?n.widest.width+o:0,r=n?n.highest.height+o:0;return this.isHorizontal()?r*i>a*s?a/i:r/s:r*s<a*i?r/i:a/s}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,i=this.chart,s=this.options,{grid:n,position:o}=s,a=n.offset,r=this.isHorizontal(),l=this.ticks.length+(a?1:0),h=ds(n),c=[],d=n.setContext(this.getContext()),u=d.drawBorder?d.borderWidth:0,f=u/2,g=function(t){return re(i,t,u)};let m,x,y,_,v,w,k,C,M,S,E,L;if("top"===o)m=g(this.bottom),w=this.bottom-h,C=m-f,S=g(t.top)+f,L=t.bottom;else if("bottom"===o)m=g(this.top),S=t.top,L=g(t.bottom)-f,w=m+f,C=this.top+h;else if("left"===o)m=g(this.right),v=this.right-h,k=m-f,M=g(t.left)+f,E=t.right;else if("right"===o)m=g(this.left),M=t.left,E=g(t.right)-f,v=m+f,k=this.left+h;else if("x"===e){if("center"===o)m=g((t.top+t.bottom)/2+.5);else if(p(o)){const t=Object.keys(o)[0],e=o[t];m=g(this.chart.scales[t].getPixelForValue(e))}S=t.top,L=t.bottom,w=m+f,C=w+h}else if("y"===e){if("center"===o)m=g((t.left+t.right)/2);else if(p(o)){const t=Object.keys(o)[0],e=o[t];m=g(this.chart.scales[t].getPixelForValue(e))}v=m-f,k=v-h,M=t.left,E=t.right}const D=b(s.ticks.maxTicksLimit,l),P=Math.max(1,Math.ceil(l/D));for(x=0;x<l;x+=P){const t=n.setContext(this.getContext(x)),e=t.lineWidth,s=t.color,o=t.borderDash||[],l=t.borderDashOffset,h=t.tickWidth,d=t.tickColor,u=t.tickBorderDash||[],f=t.tickBorderDashOffset;y=cs(this,x,a),void 0!==y&&(_=re(i,y,e),r?v=k=M=E=_:w=C=S=L=_,c.push({tx1:v,ty1:w,tx2:k,ty2:C,x1:M,y1:S,x2:E,y2:L,width:e,color:s,borderDash:o,borderDashOffset:l,tickWidth:h,tickColor:d,tickBorderDash:u,tickBorderDashOffset:f}))}return this._ticksLength=l,this._borderValue=m,c}_computeLabelItems(t){const e=this.axis,i=this.options,{position:s,ticks:n}=i,o=this.isHorizontal(),a=this.ticks,{align:r,crossAlign:l,padding:h,mirror:c}=n,d=ds(i.grid),u=d+h,g=c?-h:u,m=-X(this.labelRotation),b=[];let x,y,_,v,w,k,C,M,S,E,L,D,P="middle";if("top"===s)k=this.bottom-g,C=this._getXAxisLabelAlignment();else if("bottom"===s)k=this.top+g,C=this._getXAxisLabelAlignment();else if("left"===s){const t=this._getYAxisLabelAlignment(d);C=t.textAlign,w=t.x}else if("right"===s){const t=this._getYAxisLabelAlignment(d);C=t.textAlign,w=t.x}else if("x"===e){if("center"===s)k=(t.top+t.bottom)/2+u;else if(p(s)){const t=Object.keys(s)[0],e=s[t];k=this.chart.scales[t].getPixelForValue(e)+u}C=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===s)w=(t.left+t.right)/2-u;else if(p(s)){const t=Object.keys(s)[0],e=s[t];w=this.chart.scales[t].getPixelForValue(e)}C=this._getYAxisLabelAlignment(d).textAlign}"y"===e&&("start"===r?P="top":"end"===r&&(P="bottom"));const O=this._getLabelSizes();for(x=0,y=a.length;x<y;++x){_=a[x],v=_.label;const t=n.setContext(this.getContext(x));M=this.getPixelForTick(x)+n.labelOffset,S=this._resolveTickFontOptions(x),E=S.lineHeight,L=f(v)?v.length:1;const e=L/2,i=t.color,r=t.textStrokeColor,h=t.textStrokeWidth;let d,u=C;if(o?(w=M,"inner"===C&&(u=x===y-1?this.options.reverse?"left":"right":0===x?this.options.reverse?"right":"left":"center"),D="top"===s?"near"===l||0!==m?-L*E+E/2:"center"===l?-O.highest.height/2-e*E+E:-O.highest.height+E/2:"near"===l||0!==m?E/2:"center"===l?O.highest.height/2-e*E:O.highest.height-L*E,c&&(D*=-1)):(k=M,D=(1-L)*E/2),t.showLabelBackdrop){const e=Se(t.backdropPadding),i=O.heights[x],s=O.widths[x];let n=k+D-e.top,o=w-e.left;switch(P){case"middle":n-=i/2;break;case"bottom":n-=i}switch(C){case"center":o-=s/2;break;case"right":o-=s}d={left:o,top:n,width:s+e.width,height:i+e.height,color:t.backdropColor}}b.push({rotation:m,label:v,font:S,color:i,strokeColor:r,strokeWidth:h,textOffset:D,textAlign:u,textBaseline:P,translation:[w,k],backdrop:d})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-X(this.labelRotation))return"top"===t?"left":"right";let i="center";return"start"===e.align?i="left":"end"===e.align?i="right":"inner"===e.align&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:i,mirror:s,padding:n}}=this.options,o=t+n,a=this._getLabelSizes().widest.width;let r,l;return"left"===e?s?(l=this.right+n,"near"===i?r="left":"center"===i?(r="center",l+=a/2):(r="right",l+=a)):(l=this.right-o,"near"===i?r="right":"center"===i?(r="center",l-=a/2):(r="left",l=this.left)):"right"===e?s?(l=this.left+n,"near"===i?r="right":"center"===i?(r="center",l-=a/2):(r="left",l-=a)):(l=this.left+o,"near"===i?r="left":"center"===i?(r="center",l+=a/2):(r="right",l=this.right)):r="right",{textAlign:r,x:l}}_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:i,top:s,width:n,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,s,n,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const i=this.ticks.findIndex((e=>e.value===t));return i>=0?e.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const e=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let n,o;const a=(t,e,s)=>{s.width&&s.color&&(i.save(),i.lineWidth=s.width,i.strokeStyle=s.color,i.setLineDash(s.borderDash||[]),i.lineDashOffset=s.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(n=0,o=s.length;n<o;++n){const t=s[n];e.drawOnChartArea&&a({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&a({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:i}}=this,s=i.setContext(this.getContext()),n=i.drawBorder?s.borderWidth:0;if(!n)return;const o=i.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let r,l,h,c;this.isHorizontal()?(r=re(t,this.left,n)-n/2,l=re(t,this.right,o)+o/2,h=c=a):(h=re(t,this.top,n)-n/2,c=re(t,this.bottom,o)+o/2,r=l=a),e.save(),e.lineWidth=s.borderWidth,e.strokeStyle=s.borderColor,e.beginPath(),e.moveTo(r,h),e.lineTo(l,c),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,i=this._computeLabelArea();i&&ue(e,i);const s=this._labelItems||(this._labelItems=this._computeLabelItems(t));let n,o;for(n=0,o=s.length;n<o;++n){const t=s[n],i=t.font,o=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height)),me(e,o,0,t.textOffset,i,t)}i&&fe(e)}drawTitle(){const{ctx:t,options:{position:e,title:i,reverse:s}}=this;if(!i.display)return;const n=Ee(i.font),o=Se(i.padding),a=i.align;let r=n.lineHeight/2;"bottom"===e||"center"===e||p(e)?(r+=o.bottom,f(i.text)&&(r+=n.lineHeight*(i.text.length-1))):r+=o.top;const{titleX:l,titleY:h,maxWidth:c,rotation:d}=function(t,e,i,s){const{top:n,left:o,bottom:a,right:r,chart:l}=t,{chartArea:h,scales:c}=l;let d,u,f,g=0;const m=a-n,b=r-o;if(t.isHorizontal()){if(u=ft(s,o,r),p(i)){const t=Object.keys(i)[0],s=i[t];f=c[t].getPixelForValue(s)+m-e}else f="center"===i?(h.bottom+h.top)/2+m-e:ls(t,i,e);d=r-o}else{if(p(i)){const t=Object.keys(i)[0],s=i[t];u=c[t].getPixelForValue(s)-b+e}else u="center"===i?(h.left+h.right)/2-b+e:ls(t,i,e);f=ft(s,a,n),g="left"===i?-N:N}return{titleX:u,titleY:f,maxWidth:d,rotation:g}}(this,r,e,a);me(t,i.text,0,0,n,{color:i.color,maxWidth:c,rotation:d,textAlign:fs(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,i=b(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===ps.prototype.draw?[{z:i,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i+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(),i=this.axis+"AxisID",s=[];let n,o;for(n=0,o=e.length;n<o;++n){const o=e[n];o[i]!==this.id||t&&o.type!==t||s.push(o)}return s}_resolveTickFontOptions(t){return Ee(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class gs{constructor(t,e,i){this.type=t,this.scope=e,this.override=i,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 i;(function(t){return"id"in t&&"defaults"in t})(e)&&(i=this.register(e));const s=this.items,n=t.id,o=this.scope+"."+n;if(!n)throw new Error("class does not have id: "+t);return n in s||(s[n]=t,function(t,e,i){const s=M(Object.create(null),[i?ne.get(i):{},ne.get(e),t.defaults]);ne.set(e,s),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((i=>{const s=i.split("."),n=s.pop(),o=[t].concat(s).join("."),a=e[i].split("."),r=a.pop(),l=a.join(".");ne.route(o,n,l,r)}))}(e,t.defaultRoutes),t.descriptors&&ne.describe(e,t.descriptors)}(t,o,i),this.override&&ne.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,s=this.scope;i in e&&delete e[i],s&&i in ne[s]&&(delete ne[s][i],this.override&&delete te[i])}}var ms=new class{constructor(){this.controllers=new gs(Hi,"datasets",!0),this.elements=new gs(ss,"elements"),this.plugins=new gs(Object,"plugins"),this.scales=new gs(ps,"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,i){[...e].forEach((e=>{const s=i||this._getRegistryForType(e);i||s.isForType(e)||s===this.plugins&&e.id?this._exec(t,s,e):_(e,(e=>{const s=i||this._getRegistryForType(e);this._exec(t,s,e)}))}))}_exec(t,e,i){const s=P(t);y(i["before"+s],[],i),e[t](i),y(i["after"+s],[],i)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const i=this._typedRegistries[e];if(i.isForType(t))return i}return this.plugins}_get(t,e,i){const s=e.get(t);if(void 0===s)throw new Error('"'+t+'" is not a registered '+i+".");return s}};class bs extends Hi{update(t){const e=this._cachedMeta,{data:i=[]}=e,s=this.chart._animationsDisabled;let{start:n,count:o}=pt(e,i,s);if(this._drawStart=n,this._drawCount=o,gt(e)&&(n=0,o=i.length),this.options.showLine){const{dataset:n,_dataset:o}=e;n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=i;const a=this.resolveDatasetElementOptions(t);a.segment=this.options.segment,this.updateElement(n,void 0,{animated:!s,options:a},t)}this.updateElements(i,n,o,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=ms.getElement("line")),super.addElements()}updateElements(t,e,i,s){const n="reset"===s,{iScale:o,vScale:a,_stacked:r,_dataset:l}=this._cachedMeta,h=this.resolveDataElementOptions(e,s),c=this.getSharedOptions(h),d=this.includeOptions(s,c),f=o.axis,p=a.axis,{spanGaps:g,segment:m}=this.options,b=Z(g)?g:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||n||"none"===s;let y=e>0&&this.getParsed(e-1);for(let h=e;h<e+i;++h){const e=t[h],i=this.getParsed(h),g=x?e:{},_=u(i[p]),v=g[f]=o.getPixelForValue(i[f],h),w=g[p]=n||_?a.getBasePixel():a.getPixelForValue(r?this.applyStack(a,i,r):i[p],h);g.skip=isNaN(v)||isNaN(w)||_,g.stop=h>0&&Math.abs(i[f]-y[f])>b,m&&(g.parsed=i,g.raw=l.data[h]),d&&(g.options=c||this.resolveDataElementOptions(h,e.active?"active":s)),x||this.updateElement(e,h,g,s),y=i}this.updateSharedOptions(c,s,h)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let i=e.length-1;i>=0;--i)t=Math.max(t,e[i].size(this.resolveDataElementOptions(i))/2);return t>0&&t}const i=t.dataset,s=i.options&&i.options.borderWidth||0;if(!e.length)return s;const n=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(s,n,o)/2}}bs.id="scatter",bs.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},bs.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var xs=Object.freeze({__proto__:null,BarController:Ki,BubbleController:Gi,DoughnutController:Ji,LineController:Qi,PolarAreaController:ts,PieController:es,RadarController:is,ScatterController:bs});function ys(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class _s{constructor(t){this.options=t||{}}init(t){}formats(){return ys()}parse(t,e){return ys()}format(t,e){return ys()}add(t,e,i){return ys()}diff(t,e,i){return ys()}startOf(t,e,i){return ys()}endOf(t,e){return ys()}}_s.override=function(t){Object.assign(_s.prototype,t)};var vs={_date:_s};function ws(t,e,i,s){const{controller:n,data:o,_sorted:a}=t,r=n._cachedMeta.iScale;if(r&&e===r.axis&&"r"!==e&&a&&o.length){const t=r._reversePixels?at:ot;if(!s)return t(o,e,i);if(n._sharedOptions){const s=o[0],n="function"==typeof s.getRange&&s.getRange(e);if(n){const s=t(o,e,i-n),a=t(o,e,i+n);return{lo:s.lo,hi:a.hi}}}}return{lo:0,hi:o.length-1}}function ks(t,e,i,s,n){const o=t.getSortedVisibleDatasetMetas(),a=i[e];for(let t=0,i=o.length;t<i;++t){const{index:i,data:r}=o[t],{lo:l,hi:h}=ws(o[t],e,a,n);for(let t=l;t<=h;++t){const e=r[t];e.skip||s(e,i,t)}}}function Cs(t,e,i,s,n){const o=[];return n||t.isPointInArea(e)?(ks(t,i,e,(function(i,a,r){(n||de(i,t.chartArea,0))&&i.inRange(e.x,e.y,s)&&o.push({element:i,datasetIndex:a,index:r})}),!0),o):o}function Ms(t,e,i,s,n,o){return o||t.isPointInArea(e)?"r"!==i||s?function(t,e,i,s,n,o){let a=[];const r=function(t){const e=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,s){const n=e?Math.abs(t.x-s.x):0,o=i?Math.abs(t.y-s.y):0;return Math.sqrt(Math.pow(n,2)+Math.pow(o,2))}}(i);let l=Number.POSITIVE_INFINITY;return ks(t,i,e,(function(i,h,c){const d=i.inRange(e.x,e.y,n);if(s&&!d)return;const u=i.getCenterPoint(n);if(!o&&!t.isPointInArea(u)&&!d)return;const f=r(e,u);f<l?(a=[{element:i,datasetIndex:h,index:c}],l=f):f===l&&a.push({element:i,datasetIndex:h,index:c})})),a}(t,e,i,s,n,o):function(t,e,i,s){let n=[];return ks(t,i,e,(function(t,i,o){const{startAngle:a,endAngle:r}=t.getProps(["startAngle","endAngle"],s),{angle:l}=G(t,{x:e.x,y:e.y});et(l,a,r)&&n.push({element:t,datasetIndex:i,index:o})})),n}(t,e,i,n):[]}function Ss(t,e,i,s,n){const o=[],a="x"===i?"inXRange":"inYRange";let r=!1;return ks(t,i,e,((t,s,l)=>{t[a](e[i],n)&&(o.push({element:t,datasetIndex:s,index:l}),r=r||t.inRange(e.x,e.y,n))})),s&&!r?[]:o}var Es={evaluateInteractionItems:ks,modes:{index(t,e,i,s){const n=si(e,t),o=i.axis||"x",a=i.includeInvisible||!1,r=i.intersect?Cs(t,n,o,s,a):Ms(t,n,o,!1,s,a),l=[];return r.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=r[0].index,i=t.data[e];i&&!i.skip&&l.push({element:i,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,i,s){const n=si(e,t),o=i.axis||"xy",a=i.includeInvisible||!1;let r=i.intersect?Cs(t,n,o,s,a):Ms(t,n,o,!1,s,a);if(r.length>0){const e=r[0].datasetIndex,i=t.getDatasetMeta(e).data;r=[];for(let t=0;t<i.length;++t)r.push({element:i[t],datasetIndex:e,index:t})}return r},point:(t,e,i,s)=>Cs(t,si(e,t),i.axis||"xy",s,i.includeInvisible||!1),nearest(t,e,i,s){const n=si(e,t),o=i.axis||"xy",a=i.includeInvisible||!1;return Ms(t,n,o,i.intersect,s,a)},x:(t,e,i,s)=>Ss(t,si(e,t),"x",i.intersect,s),y:(t,e,i,s)=>Ss(t,si(e,t),"y",i.intersect,s)}};const Ls=["left","top","right","bottom"];function Ds(t,e){return t.filter((t=>t.pos===e))}function Ps(t,e){return t.filter((t=>-1===Ls.indexOf(t.pos)&&t.box.axis===e))}function Os(t,e){return t.sort(((t,i)=>{const s=e?i:t,n=e?t:i;return s.weight===n.weight?s.index-n.index:s.weight-n.weight}))}function Ts(t,e,i,s){return Math.max(t[i],e[i])+Math.max(t[s],e[s])}function As(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 zs(t,e,i,s){const{pos:n,box:o}=i,a=t.maxPadding;if(!p(n)){i.size&&(t[n]-=i.size);const e=s[i.stack]||{size:0,count:1};e.size=Math.max(e.size,i.horizontal?o.height:o.width),i.size=e.size/e.count,t[n]+=i.size}o.getPadding&&As(a,o.getPadding());const r=Math.max(0,e.outerWidth-Ts(a,t,"left","right")),l=Math.max(0,e.outerHeight-Ts(a,t,"top","bottom")),h=r!==t.w,c=l!==t.h;return t.w=r,t.h=l,i.horizontal?{same:h,other:c}:{same:c,other:h}}function Rs(t,e){const i=e.maxPadding;return function(t){const s={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{s[t]=Math.max(e[t],i[t])})),s}(t?["left","right"]:["top","bottom"])}function Is(t,e,i,s){const n=[];let o,a,r,l,h,c;for(o=0,a=t.length,h=0;o<a;++o){r=t[o],l=r.box,l.update(r.width||e.w,r.height||e.h,Rs(r.horizontal,e));const{same:a,other:d}=zs(e,i,r,s);h|=a&&n.length,c=c||d,l.fullSize||n.push(r)}return h&&Is(n,e,i,s)||c}function Fs(t,e,i,s,n){t.top=i,t.left=e,t.right=e+s,t.bottom=i+n,t.width=s,t.height=n}function Vs(t,e,i,s){const n=i.padding;let{x:o,y:a}=e;for(const r of t){const t=r.box,l=s[r.stack]||{count:1,placed:0,weight:1},h=r.stackWeight/l.weight||1;if(r.horizontal){const s=e.w*h,o=l.size||t.height;O(l.start)&&(a=l.start),t.fullSize?Fs(t,n.left,a,i.outerWidth-n.right-n.left,o):Fs(t,e.left+l.placed,a,s,o),l.start=a,l.placed+=s,a=t.bottom}else{const s=e.h*h,a=l.size||t.width;O(l.start)&&(o=l.start),t.fullSize?Fs(t,o,n.top,a,i.outerHeight-n.bottom-n.top):Fs(t,o,e.top+l.placed,a,s),l.start=o,l.placed+=s,o=t.right}}e.x=o,e.y=a}ne.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Ns={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 i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure(t,e,i){e.fullSize=i.fullSize,e.position=i.position,e.weight=i.weight},update(t,e,i,s){if(!t)return;const n=Se(t.options.layout.padding),o=Math.max(e-n.width,0),a=Math.max(i-n.height,0),r=function(t){const e=function(t){const e=[];let i,s,n,o,a,r;for(i=0,s=(t||[]).length;i<s;++i)n=t[i],({position:o,options:{stack:a,stackWeight:r=1}}=n),e.push({index:i,box:n,pos:o,horizontal:n.isHorizontal(),weight:n.weight,stack:a&&o+a,stackWeight:r});return e}(t),i=Os(e.filter((t=>t.box.fullSize)),!0),s=Os(Ds(e,"left"),!0),n=Os(Ds(e,"right")),o=Os(Ds(e,"top"),!0),a=Os(Ds(e,"bottom")),r=Ps(e,"x"),l=Ps(e,"y");return{fullSize:i,leftAndTop:s.concat(o),rightAndBottom:n.concat(l).concat(a).concat(r),chartArea:Ds(e,"chartArea"),vertical:s.concat(n).concat(l),horizontal:o.concat(a).concat(r)}}(t.boxes),l=r.vertical,h=r.horizontal;_(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const c=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,d=Object.freeze({outerWidth:e,outerHeight:i,padding:n,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/c,hBoxMaxHeight:a/2}),u=Object.assign({},n);As(u,Se(s));const f=Object.assign({maxPadding:u,w:o,h:a,x:n.left,y:n.top},n),p=function(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:s,stackWeight:n}=i;if(!t||!Ls.includes(s))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=n}return e}(t),{vBoxMaxWidth:s,hBoxMaxHeight:n}=e;let o,a,r;for(o=0,a=t.length;o<a;++o){r=t[o];const{fullSize:a}=r.box,l=i[r.stack],h=l&&r.stackWeight/l.weight;r.horizontal?(r.width=h?h*s:a&&e.availableWidth,r.height=n):(r.width=s,r.height=h?h*n:a&&e.availableHeight)}return i}(l.concat(h),d);Is(r.fullSize,f,d,p),Is(l,f,d,p),Is(h,f,d,p)&&Is(l,f,d,p),function(t){const e=t.maxPadding;function i(i){const s=Math.max(e[i]-t[i],0);return t[i]+=s,s}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(f),Vs(r.leftAndTop,f,d,p),f.x+=f.w,f.y+=f.h,Vs(r.rightAndBottom,f,d,p),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},_(r.chartArea,(e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})}))}};class Bs{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,s){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,s?Math.floor(e/s):i)}}isAttached(t){return!0}updateConfig(t){}}class Hs extends Bs{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Ws="$chartjs",js={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},$s=t=>null===t||""===t,Zs=!!ai&&{passive:!0};function Ys(t,e,i){t.canvas.removeEventListener(e,i,Zs)}function Us(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function Xs(t,e,i){const s=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||Us(i.addedNodes,s),e=e&&!Us(i.removedNodes,s);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}function qs(t,e,i){const s=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||Us(i.removedNodes,s),e=e&&!Us(i.addedNodes,s);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}const Ks=new Map;let Gs=0;function Js(){const t=window.devicePixelRatio;t!==Gs&&(Gs=t,Ks.forEach(((e,i)=>{i.currentDevicePixelRatio!==t&&e()})))}function Qs(t,e,i){const s=t.canvas,n=s&&Ge(s);if(!n)return;const o=dt(((t,e)=>{const s=n.clientWidth;i(t,e),s<n.clientWidth&&i()}),window),a=new ResizeObserver((t=>{const e=t[0],i=e.contentRect.width,s=e.contentRect.height;0===i&&0===s||o(i,s)}));return a.observe(n),function(t,e){Ks.size||window.addEventListener("resize",Js),Ks.set(t,e)}(t,o),a}function tn(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){Ks.delete(t),Ks.size||window.removeEventListener("resize",Js)}(t)}function en(t,e,i){const s=t.canvas,n=dt((e=>{null!==t.ctx&&i(function(t,e){const i=js[t.type]||t.type,{x:s,y:n}=si(t,e);return{type:i,chart:e,native:t,x:void 0!==s?s:null,y:void 0!==n?n:null}}(e,t))}),t,(t=>{const e=t[0];return[e,e.offsetX,e.offsetY]}));return function(t,e,i){t.addEventListener(e,i,Zs)}(s,e,n),n}class sn extends Bs{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,s=t.getAttribute("height"),n=t.getAttribute("width");if(t[Ws]={initial:{height:s,width:n,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",$s(n)){const e=ri(t,"width");void 0!==e&&(t.width=e)}if($s(s))if(""===t.style.height)t.height=t.width/(e||2);else{const e=ri(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[Ws])return!1;const i=e[Ws].initial;["height","width"].forEach((t=>{const s=i[t];u(s)?e.removeAttribute(t):e.setAttribute(t,s)}));const s=i.style||{};return Object.keys(s).forEach((t=>{e.style[t]=s[t]})),e.width=e.width,delete e[Ws],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const s=t.$proxies||(t.$proxies={}),n={attach:Xs,detach:qs,resize:Qs}[e]||en;s[e]=n(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),s=i[e];s&&(({attach:tn,detach:tn,resize:tn}[e]||Ys)(t,e,s),i[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,s){return function(t,e,i,s){const n=Qe(t),o=ei(n,"margin"),a=Je(n.maxWidth,t,"clientWidth")||F,r=Je(n.maxHeight,t,"clientHeight")||F,l=function(t,e,i){let s,n;if(void 0===e||void 0===i){const o=Ge(t);if(o){const t=o.getBoundingClientRect(),a=Qe(o),r=ei(a,"border","width"),l=ei(a,"padding");e=t.width-l.width-r.width,i=t.height-l.height-r.height,s=Je(a.maxWidth,o,"clientWidth"),n=Je(a.maxHeight,o,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:s||F,maxHeight:n||F}}(t,e,i);let{width:h,height:c}=l;if("content-box"===n.boxSizing){const t=ei(n,"border","width"),e=ei(n,"padding");h-=e.width+t.width,c-=e.height+t.height}return h=Math.max(0,h-o.width),c=Math.max(0,s?Math.floor(h/s):c-o.height),h=ni(Math.min(h,a,l.maxWidth)),c=ni(Math.min(c,r,l.maxHeight)),h&&!c&&(c=ni(h/2)),{width:h,height:c}}(t,e,i,s)}isAttached(t){const e=Ge(t);return!(!e||!e.isConnected)}}class nn{constructor(){this._init=[]}notify(t,e,i,s){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const n=s?this._descriptors(t).filter(s):this._descriptors(t),o=this._notify(n,t,e,i);return"afterDestroy"===e&&(this._notify(n,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,i,s){s=s||{};for(const n of t){const t=n.plugin;if(!1===y(t[i],[e,s,n.options],t)&&s.cancelable)return!1}return!0}invalidate(){u(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 i=t&&t.config,s=b(i.options&&i.options.plugins,{}),n=function(t){const e={},i=[],s=Object.keys(ms.plugins.items);for(let t=0;t<s.length;t++)i.push(ms.getPlugin(s[t]));const n=t.plugins||[];for(let t=0;t<n.length;t++){const s=n[t];-1===i.indexOf(s)&&(i.push(s),e[s.id]=!0)}return{plugins:i,localIds:e}}(i);return!1!==s||e?function(t,{plugins:e,localIds:i},s,n){const o=[],a=t.getContext();for(const r of e){const e=r.id,l=on(s[e],n);null!==l&&o.push({plugin:r,options:an(t.config,{plugin:r,local:i[e]},l,a)})}return o}(t,n,s,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],i=this._cache,s=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(s(e,i),t,"stop"),this._notify(s(i,e),t,"start")}}function on(t,e){return e||!1!==t?!0===t?{}:t:null}function an(t,{plugin:e,local:i},s,n){const o=t.pluginScopeKeys(e),a=t.getOptionScopes(s,o);return i&&e.defaults&&a.push(e.defaults),t.createResolver(a,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function rn(t,e){const i=ne.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function ln(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(i=e.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||t.charAt(0).toLowerCase();var i}function hn(t){const e=t.options||(t.options={});e.plugins=b(e.plugins,{}),e.scales=function(t,e){const i=te[t.type]||{scales:{}},s=e.scales||{},n=rn(t.type,e),o=Object.create(null),a=Object.create(null);return Object.keys(s).forEach((t=>{const e=s[t];if(!p(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 r=ln(t,e),l=function(t,e){return t===e?"_index_":"_value_"}(r,n),h=i.scales||{};o[r]=o[r]||t,a[t]=S(Object.create(null),[{axis:r},e,h[r],h[l]])})),t.data.datasets.forEach((i=>{const n=i.type||t.type,r=i.indexAxis||rn(n,e),l=(te[n]||{}).scales||{};Object.keys(l).forEach((t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,r),n=i[e+"AxisID"]||o[e]||e;a[n]=a[n]||Object.create(null),S(a[n],[{axis:e},s[n],l[t]])}))})),Object.keys(a).forEach((t=>{const e=a[t];S(e,[ne.scales[e.type],ne.scale])})),a}(t,e)}function cn(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const dn=new Map,un=new Set;function fn(t,e){let i=dn.get(t);return i||(i=e(),dn.set(t,i),un.add(i)),i}const pn=(t,e,i)=>{const s=D(e,i);void 0!==s&&t.add(s)};class gn{constructor(t){this._config=function(t){return(t=t||{}).data=cn(t.data),hn(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=cn(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(),hn(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return fn(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return fn(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return fn(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return fn(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const i=this._scopeCache;let s=i.get(t);return s&&!e||(s=new Map,i.set(t,s)),s}getOptionScopes(t,e,i){const{options:s,type:n}=this,o=this._cachedScopes(t,i),a=o.get(e);if(a)return a;const r=new Set;e.forEach((e=>{t&&(r.add(t),e.forEach((e=>pn(r,t,e)))),e.forEach((t=>pn(r,s,t))),e.forEach((t=>pn(r,te[n]||{},t))),e.forEach((t=>pn(r,ne,t))),e.forEach((t=>pn(r,ee,t)))}));const l=Array.from(r);return 0===l.length&&l.push(Object.create(null)),un.has(e)&&o.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,te[e]||{},ne.datasets[e]||{},{type:e},ne,ee]}resolveNamedOptions(t,e,i,s=[""]){const n={$shared:!0},{resolver:o,subPrefixes:a}=mn(this._resolverCache,t,s);let r=o;(function(t,e){const{isScriptable:i,isIndexable:s}=Te(t);for(const n of e){const e=i(n),o=s(n),a=(o||e)&&t[n];if(e&&(T(a)||bn(a))||o&&f(a))return!0}return!1})(o,e)&&(n.$shared=!1,r=Oe(o,i=T(i)?i():i,this.createResolver(t,i,a)));for(const t of e)n[t]=r[t];return n}createResolver(t,e,i=[""],s){const{resolver:n}=mn(this._resolverCache,t,i);return p(e)?Oe(n,e,void 0,s):n}}function mn(t,e,i){let s=t.get(e);s||(s=new Map,t.set(e,s));const n=i.join();let o=s.get(n);return o||(o={resolver:Pe(e,i),subPrefixes:i.filter((t=>!t.toLowerCase().includes("hover")))},s.set(n,o)),o}const bn=t=>p(t)&&Object.getOwnPropertyNames(t).reduce(((e,i)=>e||T(t[i])),!1),xn=["top","bottom","left","right","chartArea"];function yn(t,e){return"top"===t||"bottom"===t||-1===xn.indexOf(t)&&"x"===e}function vn(t,e){return function(i,s){return i[t]===s[t]?i[e]-s[e]:i[t]-s[t]}}function wn(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),y(i&&i.onComplete,[t],e)}function kn(t){const e=t.chart,i=e.options.animation;y(i&&i.onProgress,[t],e)}function Cn(t){return Ke()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Mn={},Sn=t=>{const e=Cn(t);return Object.values(Mn).filter((t=>t.canvas===e)).pop()};function En(t,e,i){const s=Object.keys(t);for(const n of s){const s=+n;if(s>=e){const o=t[n];delete t[n],(i>0||s>e)&&(t[s+i]=o)}}}class Ln{constructor(t,e){const i=this.config=new gn(e),s=Cn(t),n=Sn(s);if(n)throw new Error("Canvas is already in use. Chart with ID '"+n.id+"' must be destroyed before the canvas with ID '"+n.canvas.id+"' can be reused.");const o=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(t){return!Ke()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Hs:sn}(s)),this.platform.updateConfig(i);const a=this.platform.acquireContext(s,o.aspectRatio),r=a&&a.canvas,l=r&&r.height,h=r&&r.width;this.id=d(),this.ctx=a,this.canvas=r,this.width=h,this.height=l,this._options=o,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 nn,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let i;return function(...s){return e?(clearTimeout(i),i=setTimeout(t,e,s)):t.apply(this,s),e}}((t=>this.update(t)),o.resizeDelay||0),this._dataChanges=[],Mn[this.id]=this,a&&r?(Ci.listen(this,"complete",wn),Ci.listen(this,"progress",kn),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:i,height:s,_aspectRatio:n}=this;return u(t)?e&&n?n:s?i/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():oi(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return le(this.canvas,this.ctx),this}stop(){return Ci.stop(this),this}resize(t,e){Ci.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,s=this.canvas,n=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(s,t,e,n),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),r=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,oi(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),y(i.onResize,[this,o],this),this.attached&&this._doResize(r)&&this.render())}ensureScalesHaveIDs(){_(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,s=Object.keys(i).reduce(((t,e)=>(t[e]=!1,t)),{});let n=[];e&&(n=n.concat(Object.keys(e).map((t=>{const i=e[t],s=ln(t,i),n="r"===s,o="x"===s;return{options:i,dposition:n?"chartArea":o?"bottom":"left",dtype:n?"radialLinear":o?"category":"linear"}})))),_(n,(e=>{const n=e.options,o=n.id,a=ln(o,n),r=b(n.type,e.dtype);void 0!==n.position&&yn(n.position,a)===yn(e.dposition)||(n.position=e.dposition),s[o]=!0;let l=null;o in i&&i[o].type===r?l=i[o]:(l=new(ms.getScale(r))({id:o,type:r,ctx:this.ctx,chart:this}),i[l.id]=l),l.init(n,t)})),_(s,((t,e)=>{t||delete i[e]})),_(i,(t=>{Ns.configure(this,t,t.options),Ns.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort(((t,e)=>t.index-e.index)),i>e){for(let t=e;t<i;++t)this._destroyDatasetMeta(t);t.splice(e,i-e)}this._sortedMetasets=t.slice(0).sort(vn("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,i)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(i)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,s;for(this._removeUnreferencedMetasets(),i=0,s=e.length;i<s;i++){const s=e[i];let n=this.getDatasetMeta(i);const o=s.type||this.config.type;if(n.type&&n.type!==o&&(this._destroyDatasetMeta(i),n=this.getDatasetMeta(i)),n.type=o,n.indexAxis=s.indexAxis||rn(o,this.options),n.order=s.order||0,n.index=i,n.label=""+s.label,n.visible=this.isDatasetVisible(i),n.controller)n.controller.updateIndex(i),n.controller.linkScales();else{const e=ms.getController(o),{datasetElementType:s,dataElementType:a}=ne.datasets[o];Object.assign(e.prototype,{dataElementType:ms.getElement(a),datasetElementType:s&&ms.getElement(s)}),n.controller=new e(this,i),t.push(n.controller)}}return this._updateMetasets(),t}_resetElements(){_(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 i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const n=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),i=!s&&-1===n.indexOf(e);e.buildOrUpdateElements(i),o=Math.max(+e.getMaxOverflow(),o)}o=this._minPadding=i.layout.autoPadding?o:0,this._updateLayout(o),s||_(n,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(vn("z","_idx"));const{_active:a,_lastEvent:r}=this;r?this._eventHandler(r,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){_(this.scales,(t=>{Ns.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);A(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:n}of e)En(t,s,"_removeElements"===i?-n:n)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),s=i(0);for(let t=1;t<e;t++)if(!A(s,i(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;Ns.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],_(this.boxes,(t=>{i&&"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,i=this.data.datasets.length;e<i;++e)this._updateDataset(e,T(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const i=this.getDatasetMeta(t),s={meta:i,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",s)&&(i.controller._update(e),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Ci.has(this)?this.attached&&!Ci.running(this)&&Ci.start(this):(this.draw(),wn({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,i=[];let s,n;for(s=0,n=e.length;s<n;++s){const n=e[s];t&&!n.visible||i.push(n)}return i}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,i=t._clip,s=!i.disabled,n=this.chartArea,o={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(s&&ue(e,{left:!1===i.left?0:n.left-i.left,right:!1===i.right?this.width:n.right+i.right,top:!1===i.top?0:n.top-i.top,bottom:!1===i.bottom?this.height:n.bottom+i.bottom}),t.controller.draw(),s&&fe(e),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return de(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,s){const n=Es.modes[e];return"function"==typeof n?n(this,t,i,s):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let s=i.filter((t=>t&&t._dataset===e)).pop();return s||(s={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},i.push(s)),s}getContext(){return this.$context||(this.$context=De(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.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,i){const s=i?"show":"hide",n=this.getDatasetMeta(t),o=n.controller._resolveAnimations(void 0,s);O(e)?(n.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),o.update(n,{visible:i}),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(),Ci.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(),le(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete Mn[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,i=(i,s)=>{e.addEventListener(this,i,s),t[i]=s},s=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};_(this.options.events,(t=>i(t,s)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,s)=>{e.addEventListener(this,i,s),t[i]=s},s=(i,s)=>{t[i]&&(e.removeEventListener(this,i,s),delete t[i])},n=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const a=()=>{s("attach",a),this.attached=!0,this.resize(),i("resize",n),i("detach",o)};o=()=>{this.attached=!1,s("resize",n),this._stop(),this._resize(0,0),i("attach",a)},e.isAttached(this.canvas)?a():o()}unbindEvents(){_(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},_(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const s=i?"set":"remove";let n,o,a,r;for("dataset"===e&&(n=this.getDatasetMeta(t[0].datasetIndex),n.controller["_"+s+"DatasetHoverStyle"]()),a=0,r=t.length;a<r;++a){o=t[a];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[s+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],i=t.map((({datasetIndex:t,index:e})=>{const i=this.getDatasetMeta(t);if(!i)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}));!v(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}_updateHoverStyles(t,e,i){const s=this.options.hover,n=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=n(e,t),a=i?t:n(t,e);o.length&&this.updateHoverStyle(o,s.mode,!1),a.length&&s.mode&&this.updateHoverStyle(a,s.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},s=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,s))return;const n=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(n||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:s=[],options:n}=this,o=e,a=this._getActiveElements(t,s,i,o),r=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,i,s){return i&&"mouseout"!==t.type?s?e:t:null}(t,this._lastEvent,i,r);i&&(this._lastEvent=null,y(n.onHover,[t,a,this],this),r&&y(n.onClick,[t,a,this],this));const h=!v(a,s);return(h||e)&&(this._active=a,this._updateHoverStyles(a,s,e)),this._lastEvent=l,h}_getActiveElements(t,e,i,s){if("mouseout"===t.type)return[];if(!i)return e;const n=this.options.hover;return this.getElementsAtEventForMode(t,n.mode,n,s)}}const Dn=()=>_(Ln.instances,(t=>t._plugins.invalidate())),Pn=!0;function On(t,e,i){const{startAngle:s,pixelMargin:n,x:o,y:a,outerRadius:r,innerRadius:l}=e;let h=n/r;t.beginPath(),t.arc(o,a,r,s-h,i+h),l>n?(h=n/l,t.arc(o,a,l,i+h,s-h,!0)):t.arc(o,a,n,i+N,s-N),t.closePath(),t.clip()}function Tn(t,e,i,s){return{x:i+t*Math.cos(e),y:s+t*Math.sin(e)}}function An(t,e,i,s,n,o){const{x:a,y:r,startAngle:l,pixelMargin:h,innerRadius:c}=e,d=Math.max(e.outerRadius+s+i-h,0),u=c>0?c+s+i+h:0;let f=0;const p=n-l;if(s){const t=((c>0?c-s:0)+(d>0?d-s:0))/2;f=(p-(0!==t?p*t/(t+s):p))/2}const g=(p-Math.max(.001,p*d-i/z)/d)/2,m=l+g+f,b=n-g-f,{outerStart:x,outerEnd:y,innerStart:_,innerEnd:v}=function(t,e,i,s){const n=ke(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),o=(i-e)/2,a=Math.min(o,s*e/2),r=t=>{const e=(i-Math.min(o,t))*s/2;return it(t,0,Math.min(o,e))};return{outerStart:r(n.outerStart),outerEnd:r(n.outerEnd),innerStart:it(n.innerStart,0,a),innerEnd:it(n.innerEnd,0,a)}}(e,u,d,b-m),w=d-x,k=d-y,C=m+x/w,M=b-y/k,S=u+_,E=u+v,L=m+_/S,D=b-v/E;if(t.beginPath(),o){if(t.arc(a,r,d,C,M),y>0){const e=Tn(k,M,a,r);t.arc(e.x,e.y,y,M,b+N)}const e=Tn(E,b,a,r);if(t.lineTo(e.x,e.y),v>0){const e=Tn(E,D,a,r);t.arc(e.x,e.y,v,b+N,D+Math.PI)}if(t.arc(a,r,u,b-v/u,m+_/u,!0),_>0){const e=Tn(S,L,a,r);t.arc(e.x,e.y,_,L+Math.PI,m-N)}const i=Tn(w,m,a,r);if(t.lineTo(i.x,i.y),x>0){const e=Tn(w,C,a,r);t.arc(e.x,e.y,x,m-N,C)}}else{t.moveTo(a,r);const e=Math.cos(C)*d+a,i=Math.sin(C)*d+r;t.lineTo(e,i);const s=Math.cos(M)*d+a,n=Math.sin(M)*d+r;t.lineTo(s,n)}t.closePath()}Object.defineProperties(Ln,{defaults:{enumerable:Pn,value:ne},instances:{enumerable:Pn,value:Mn},overrides:{enumerable:Pn,value:te},registry:{enumerable:Pn,value:ms},version:{enumerable:Pn,value:"3.9.1"},getChart:{enumerable:Pn,value:Sn},register:{enumerable:Pn,value:(...t)=>{ms.add(...t),Dn()}},unregister:{enumerable:Pn,value:(...t)=>{ms.remove(...t),Dn()}}});class zn extends ss{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,i){const s=this.getProps(["x","y"],i),{angle:n,distance:o}=G(s,{x:t,y:e}),{startAngle:a,endAngle:r,innerRadius:l,outerRadius:h,circumference:c}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),d=this.options.spacing/2,u=b(c,r-a)>=R||et(n,a,r),f=st(o,l+d,h+d);return u&&f}getCenterPoint(t){const{x:e,y:i,startAngle:s,endAngle:n,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:r,spacing:l}=this.options,h=(s+n)/2,c=(o+a+l+r)/2;return{x:e+Math.cos(h)*c,y:i+Math.sin(h)*c}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,s=(e.offset||0)/2,n=(e.spacing||0)/2,o=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>R?Math.floor(i/R):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();let a=0;if(s){a=s/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*a,Math.sin(e)*a),this.circumference>=z&&(a=s)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const r=function(t,e,i,s,n){const{fullCircles:o,startAngle:a,circumference:r}=e;let l=e.endAngle;if(o){An(t,e,i,s,a+R,n);for(let e=0;e<o;++e)t.fill();isNaN(r)||(l=a+r%R,r%R==0&&(l+=R))}return An(t,e,i,s,l,n),t.fill(),l}(t,this,a,n,o);(function(t,e,i,s,n,o){const{options:a}=e,{borderWidth:r,borderJoinStyle:l}=a,h="inner"===a.borderAlign;r&&(h?(t.lineWidth=2*r,t.lineJoin=l||"round"):(t.lineWidth=r,t.lineJoin=l||"bevel"),e.fullCircles&&function(t,e,i){const{x:s,y:n,startAngle:o,pixelMargin:a,fullCircles:r}=e,l=Math.max(e.outerRadius-a,0),h=e.innerRadius+a;let c;for(i&&On(t,e,o+R),t.beginPath(),t.arc(s,n,h,o+R,o,!0),c=0;c<r;++c)t.stroke();for(t.beginPath(),t.arc(s,n,l,o,o+R),c=0;c<r;++c)t.stroke()}(t,e,h),h&&On(t,e,n),An(t,e,i,s,n,o),t.stroke())})(t,this,a,n,r,o),t.restore()}}function Rn(t,e,i=e){t.lineCap=b(i.borderCapStyle,e.borderCapStyle),t.setLineDash(b(i.borderDash,e.borderDash)),t.lineDashOffset=b(i.borderDashOffset,e.borderDashOffset),t.lineJoin=b(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=b(i.borderWidth,e.borderWidth),t.strokeStyle=b(i.borderColor,e.borderColor)}function In(t,e,i){t.lineTo(i.x,i.y)}function Fn(t,e,i={}){const s=t.length,{start:n=0,end:o=s-1}=i,{start:a,end:r}=e,l=Math.max(n,a),h=Math.min(o,r),c=n<a&&o<a||n>r&&o>r;return{count:s,start:l,loop:e.loop,ilen:h<l&&!c?s+h-l:h-l}}function Vn(t,e,i,s){const{points:n,options:o}=e,{count:a,start:r,loop:l,ilen:h}=Fn(n,i,s),c=function(t){return t.stepped?pe:t.tension||"monotone"===t.cubicInterpolationMode?ge:In}(o);let d,u,f,{move:p=!0,reverse:g}=s||{};for(d=0;d<=h;++d)u=n[(r+(g?h-d:d))%a],u.skip||(p?(t.moveTo(u.x,u.y),p=!1):c(t,f,u,g,o.stepped),f=u);return l&&(u=n[(r+(g?h:0))%a],c(t,f,u,g,o.stepped)),!!l}function Nn(t,e,i,s){const n=e.points,{count:o,start:a,ilen:r}=Fn(n,i,s),{move:l=!0,reverse:h}=s||{};let c,d,u,f,p,g,m=0,b=0;const x=t=>(a+(h?r-t:t))%o,y=()=>{f!==p&&(t.lineTo(m,p),t.lineTo(m,f),t.lineTo(m,g))};for(l&&(d=n[x(0)],t.moveTo(d.x,d.y)),c=0;c<=r;++c){if(d=n[x(c)],d.skip)continue;const e=d.x,i=d.y,s=0|e;s===u?(i<f?f=i:i>p&&(p=i),m=(b*m+e)/++b):(y(),t.lineTo(e,i),u=s,b=0,f=p=i),g=i}y()}function Bn(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||i?Vn:Nn}zn.id="arc",zn.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},zn.defaultRoutes={backgroundColor:"backgroundColor"};const Hn="function"==typeof Path2D;class Wn extends ss{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 i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const s=i.spanGaps?this._loop:this._fullLoop;qe(this._points,i,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=function(t,e){const i=t.points,s=t.options.spanGaps,n=i.length;if(!n)return[];const o=!!t._loop,{start:a,end:r}=function(t,e,i,s){let n=0,o=e-1;if(i&&!s)for(;n<e&&!t[n].skip;)n++;for(;n<e&&t[n].skip;)n++;for(n%=e,i&&(o+=n);o>n&&t[o%e].skip;)o--;return o%=e,{start:n,end:o}}(i,n,o,s);return function(t,e,i,s){return s&&s.setContext&&i?function(t,e,i,s){const n=t._chart.getContext(),o=wi(t.options),{_datasetIndex:a,options:{spanGaps:r}}=t,l=i.length,h=[];let c=o,d=e[0].start,u=d;function f(t,e,s,n){const o=r?-1:1;if(t!==e){for(t+=l;i[t%l].skip;)t-=o;for(;i[e%l].skip;)e+=o;t%l!=e%l&&(h.push({start:t%l,end:e%l,loop:s,style:n}),c=n,d=e%l)}}for(const t of e){d=r?d:t.start;let e,o=i[d%l];for(u=d+1;u<=t.end;u++){const r=i[u%l];e=wi(s.setContext(De(n,{type:"segment",p0:o,p1:r,p0DataIndex:(u-1)%l,p1DataIndex:u%l,datasetIndex:a}))),ki(e,c)&&f(d,u-1,t.loop,c),o=r,c=e}d<u-1&&f(d,u-1,t.loop,c)}return h}(t,e,i,s):e}(t,!0===s?[{start:a,end:r,loop:o}]:function(t,e,i,s){const n=t.length,o=[];let a,r=e,l=t[e];for(a=e+1;a<=i;++a){const i=t[a%n];i.skip||i.stop?l.skip||(s=!1,o.push({start:e%n,end:(a-1)%n,loop:s}),e=r=i.stop?a:null):(r=a,l.skip&&(e=a)),l=i}return null!==r&&o.push({start:e%n,end:r%n,loop:s}),o}(i,a,r<a?r+n:r,!!t._fullLoop&&0===a&&r===n-1),i,e)}(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,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this.options,s=t[e],n=this.points,o=vi(this,{property:e,start:s,end:s});if(!o.length)return;const a=[],r=function(t){return t.stepped?hi:t.tension||"monotone"===t.cubicInterpolationMode?ci:li}(i);let l,h;for(l=0,h=o.length;l<h;++l){const{start:h,end:c}=o[l],d=n[h],u=n[c];if(d===u){a.push(d);continue}const f=r(d,u,Math.abs((s-d[e])/(u[e]-d[e])),i.stepped);f[e]=t[e],a.push(f)}return 1===a.length?a[0]:a}pathSegment(t,e,i){return Bn(this)(t,this,e,i)}path(t,e,i){const s=this.segments,n=Bn(this);let o=this._loop;e=e||0,i=i||this.points.length-e;for(const a of s)o&=n(t,this,a,{start:e,end:e+i-1});return!!o}draw(t,e,i,s){const n=this.options||{};(this.points||[]).length&&n.borderWidth&&(t.save(),function(t,e,i,s){Hn&&!e.options.segment?function(t,e,i,s){let n=e._path;n||(n=e._path=new Path2D,e.path(n,i,s)&&n.closePath()),Rn(t,e.options),t.stroke(n)}(t,e,i,s):function(t,e,i,s){const{segments:n,options:o}=e,a=Bn(e);for(const r of n)Rn(t,o,r.style),t.beginPath(),a(t,e,r,{start:i,end:i+s-1})&&t.closePath(),t.stroke()}(t,e,i,s)}(t,this,i,s),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function jn(t,e,i,s){const n=t.options,{[i]:o}=t.getProps([i],s);return Math.abs(e-o)<n.radius+n.hitRadius}Wn.id="line",Wn.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Wn.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Wn.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class $n extends ss{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,i){const s=this.options,{x:n,y:o}=this.getProps(["x","y"],i);return Math.pow(t-n,2)+Math.pow(e-o,2)<Math.pow(s.hitRadius+s.radius,2)}inXRange(t,e){return jn(this,t,"x",e)}inYRange(t,e){return jn(this,t,"y",e)}getCenterPoint(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}size(t){let e=(t=t||this.options||{}).radius||0;return e=Math.max(e,e&&t.hoverRadius||0),2*(e+(e&&t.borderWidth||0))}draw(t,e){const i=this.options;this.skip||i.radius<.1||!de(this,e,this.size(i)/2)||(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,he(t,i,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function Zn(t,e){const{x:i,y:s,base:n,width:o,height:a}=t.getProps(["x","y","base","width","height"],e);let r,l,h,c,d;return t.horizontal?(d=a/2,r=Math.min(i,n),l=Math.max(i,n),h=s-d,c=s+d):(d=o/2,r=i-d,l=i+d,h=Math.min(s,n),c=Math.max(s,n)),{left:r,top:h,right:l,bottom:c}}function Yn(t,e,i,s){return t?0:it(e,i,s)}function Un(t,e,i,s){const n=null===e,o=null===i,a=t&&!(n&&o)&&Zn(t,s);return a&&(n||st(e,a.left,a.right))&&(o||st(i,a.top,a.bottom))}function Xn(t,e){t.rect(e.x,e.y,e.w,e.h)}function qn(t,e,i={}){const s=t.x!==i.x?-e:0,n=t.y!==i.y?-e:0,o=(t.x+t.w!==i.x+i.w?e:0)-s,a=(t.y+t.h!==i.y+i.h?e:0)-n;return{x:t.x+s,y:t.y+n,w:t.w+o,h:t.h+a,radius:t.radius}}$n.id="point",$n.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},$n.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Kn extends ss{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:i,backgroundColor:s}}=this,{inner:n,outer:o}=function(t){const e=Zn(t),i=e.right-e.left,s=e.bottom-e.top,n=function(t,e,i){const s=t.options.borderWidth,n=t.borderSkipped,o=Ce(s);return{t:Yn(n.top,o.top,0,i),r:Yn(n.right,o.right,0,e),b:Yn(n.bottom,o.bottom,0,i),l:Yn(n.left,o.left,0,e)}}(t,i/2,s/2),o=function(t,e,i){const{enableBorderRadius:s}=t.getProps(["enableBorderRadius"]),n=t.options.borderRadius,o=Me(n),a=Math.min(e,i),r=t.borderSkipped,l=s||p(n);return{topLeft:Yn(!l||r.top||r.left,o.topLeft,0,a),topRight:Yn(!l||r.top||r.right,o.topRight,0,a),bottomLeft:Yn(!l||r.bottom||r.left,o.bottomLeft,0,a),bottomRight:Yn(!l||r.bottom||r.right,o.bottomRight,0,a)}}(t,i/2,s/2);return{outer:{x:e.left,y:e.top,w:i,h:s,radius:o},inner:{x:e.left+n.l,y:e.top+n.t,w:i-n.l-n.r,h:s-n.t-n.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(n.t,n.l)),topRight:Math.max(0,o.topRight-Math.max(n.t,n.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(n.b,n.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(n.b,n.r))}}}}(this),a=(r=o.radius).topLeft||r.topRight||r.bottomLeft||r.bottomRight?xe:Xn;var r;t.save(),o.w===n.w&&o.h===n.h||(t.beginPath(),a(t,qn(o,e,n)),t.clip(),a(t,qn(n,-e,o)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),a(t,qn(n,e)),t.fillStyle=s,t.fill(),t.restore()}inRange(t,e,i){return Un(this,t,e,i)}inXRange(t,e){return Un(this,t,null,e)}inYRange(t,e){return Un(this,null,t,e)}getCenterPoint(t){const{x:e,y:i,base:s,horizontal:n}=this.getProps(["x","y","base","horizontal"],t);return{x:n?(e+s)/2:e,y:n?i:(i+s)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}Kn.id="bar",Kn.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},Kn.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Gn=Object.freeze({__proto__:null,ArcElement:zn,LineElement:Wn,PointElement:$n,BarElement:Kn});function Jn(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{value:e})}}function Qn(t){t.data.datasets.forEach((t=>{Jn(t)}))}var to={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,i)=>{if(!i.enabled)return void Qn(t);const s=t.width;t.data.datasets.forEach(((e,n)=>{const{_data:o,indexAxis:a}=e,r=t.getDatasetMeta(n),l=o||e.data;if("y"===Le([a,t.options.indexAxis]))return;if(!r.controller.supportsDecimation)return;const h=t.scales[r.xAxisID];if("linear"!==h.type&&"time"!==h.type)return;if(t.options.parsing)return;let c,{start:d,count:f}=function(t,e){const i=e.length;let s,n=0;const{iScale:o}=t,{min:a,max:r,minDefined:l,maxDefined:h}=o.getUserBounds();return l&&(n=it(ot(e,o.axis,a).lo,0,i-1)),s=h?it(ot(e,o.axis,r).hi+1,n,i)-n:i-n,{start:n,count:s}}(r,l);if(f<=(i.threshold||4*s))Jn(e);else{switch(u(o)&&(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}})),i.algorithm){case"lttb":c=function(t,e,i,s,n){const o=n.samples||s;if(o>=i)return t.slice(e,e+i);const a=[],r=(i-2)/(o-2);let l=0;const h=e+i-1;let c,d,u,f,p,g=e;for(a[l++]=t[g],c=0;c<o-2;c++){let s,n=0,o=0;const h=Math.floor((c+1)*r)+1+e,m=Math.min(Math.floor((c+2)*r)+1,i)+e,b=m-h;for(s=h;s<m;s++)n+=t[s].x,o+=t[s].y;n/=b,o/=b;const x=Math.floor(c*r)+1+e,y=Math.min(Math.floor((c+1)*r)+1,i)+e,{x:_,y:v}=t[g];for(u=f=-1,s=x;s<y;s++)f=.5*Math.abs((_-n)*(t[s].y-v)-(_-t[s].x)*(o-v)),f>u&&(u=f,d=t[s],p=s);a[l++]=d,g=p}return a[l++]=t[h],a}(l,d,f,s,i);break;case"min-max":c=function(t,e,i,s){let n,o,a,r,l,h,c,d,f,p,g=0,m=0;const b=[],x=e+i-1,y=t[e].x,_=t[x].x-y;for(n=e;n<e+i;++n){o=t[n],a=(o.x-y)/_*s,r=o.y;const e=0|a;if(e===l)r<f?(f=r,h=n):r>p&&(p=r,c=n),g=(m*g+o.x)/++m;else{const i=n-1;if(!u(h)&&!u(c)){const e=Math.min(h,c),s=Math.max(h,c);e!==d&&e!==i&&b.push({...t[e],x:g}),s!==d&&s!==i&&b.push({...t[s],x:g})}n>0&&i!==d&&b.push(t[i]),b.push(o),l=e,m=0,f=p=r,h=c=d=n}}return b}(l,d,f,s);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}e._decimated=c}}))},destroy(t){Qn(t)}};function eo(t,e,i,s){if(s)return;let n=e[t],o=i[t];return"angle"===t&&(n=tt(n),o=tt(o)),{property:t,start:n,end:o}}function io(t,e,i){for(;e>t;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function so(t,e,i,s){return t&&e?s(t[i],e[i]):t?t[i]:e?e[i]:0}function no(t,e){let i=[],s=!1;return f(t)?(s=!0,i=t):i=function(t,e){const{x:i=null,y:s=null}=t||{},n=e.points,o=[];return e.segments.forEach((({start:t,end:e})=>{e=io(t,e,n);const a=n[t],r=n[e];null!==s?(o.push({x:a.x,y:s}),o.push({x:r.x,y:s})):null!==i&&(o.push({x:i,y:a.y}),o.push({x:i,y:r.y}))})),o}(t,e),i.length?new Wn({points:i,options:{tension:0},_loop:s,_fullLoop:s}):null}function oo(t){return t&&!1!==t.fill}function ao(t,e,i){let s=t[e].fill;const n=[e];let o;if(!i)return s;for(;!1!==s&&-1===n.indexOf(s);){if(!g(s))return s;if(o=t[s],!o)return!1;if(o.visible)return s;n.push(s),s=o.fill}return!1}function ro(t,e,i){const s=function(t){const e=t.options,i=e.fill;let s=b(i&&i.target,i);return void 0===s&&(s=!!e.backgroundColor),!1!==s&&null!==s&&(!0===s?"origin":s)}(t);if(p(s))return!isNaN(s.value)&&s;let n=parseFloat(s);return g(n)&&Math.floor(n)===n?function(t,e,i,s){return"-"!==t&&"+"!==t||(i=e+i),!(i===e||i<0||i>=s)&&i}(s[0],e,n,i):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}function lo(t,e,i){const s=[];for(let n=0;n<i.length;n++){const o=i[n],{first:a,last:r,point:l}=ho(o,e,"x");if(!(!l||a&&r))if(a)s.unshift(l);else if(t.push(l),!r)break}t.push(...s)}function ho(t,e,i){const s=t.interpolate(e,i);if(!s)return{};const n=s[i],o=t.segments,a=t.points;let r=!1,l=!1;for(let t=0;t<o.length;t++){const e=o[t],s=a[e.start][i],h=a[e.end][i];if(st(n,s,h)){r=n===s,l=n===h;break}}return{first:r,last:l,point:s}}class co{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){const{x:s,y:n,radius:o}=this;return e=e||{start:0,end:R},t.arc(s,n,o,e.end,e.start,!0),!i.bounds}interpolate(t){const{x:e,y:i,radius:s}=this,n=t.angle;return{x:e+Math.cos(n)*s,y:i+Math.sin(n)*s,angle:n}}}function uo(t,e,i){const s=function(t){const{chart:e,fill:i,line:s}=t;if(g(i))return function(t,e){const i=t.getDatasetMeta(e);return i&&t.isDatasetVisible(e)?i.dataset:null}(e,i);if("stack"===i)return function(t){const{scale:e,index:i,line:s}=t,n=[],o=s.segments,a=s.points,r=function(t,e){const i=[],s=t.getMatchingVisibleMetas("line");for(let t=0;t<s.length;t++){const n=s[t];if(n.index===e)break;n.hidden||i.unshift(n.dataset)}return i}(e,i);r.push(no({x:null,y:e.bottom},s));for(let t=0;t<o.length;t++){const e=o[t];for(let t=e.start;t<=e.end;t++)lo(n,a[t],r)}return new Wn({points:n,options:{}})}(t);if("shape"===i)return!0;const n=function(t){return(t.scale||{}).getPointPositionForValue?function(t){const{scale:e,fill:i}=t,s=e.options,n=e.getLabels().length,o=s.reverse?e.max:e.min,a=function(t,e,i){let s;return s="start"===t?i:"end"===t?e.options.reverse?e.min:e.max:p(t)?t.value:e.getBaseValue(),s}(i,e,o),r=[];if(s.grid.circular){const t=e.getPointPositionForValue(0,o);return new co({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(a)})}for(let t=0;t<n;++t)r.push(e.getPointPositionForValue(t,a));return r}(t):function(t){const{scale:e={},fill:i}=t,s=function(t,e){let i=null;return"start"===t?i=e.bottom:"end"===t?i=e.top:p(t)?i=e.getPixelForValue(t.value):e.getBasePixel&&(i=e.getBasePixel()),i}(i,e);if(g(s)){const t=e.isHorizontal();return{x:t?s:null,y:t?null:s}}return null}(t)}(t);return n instanceof co?n:no(n,s)}(e),{line:n,scale:o,axis:a}=e,r=n.options,l=r.fill,h=r.backgroundColor,{above:c=h,below:d=h}=l||{};s&&n.points.length&&(ue(t,i),function(t,e){const{line:i,target:s,above:n,below:o,area:a,scale:r}=e,l=i._loop?"angle":e.axis;t.save(),"x"===l&&o!==n&&(fo(t,s,a.top),po(t,{line:i,target:s,color:n,scale:r,property:l}),t.restore(),t.save(),fo(t,s,a.bottom)),po(t,{line:i,target:s,color:o,scale:r,property:l}),t.restore()}(t,{line:n,target:s,above:c,below:d,area:i,scale:o,axis:a}),fe(t))}function fo(t,e,i){const{segments:s,points:n}=e;let o=!0,a=!1;t.beginPath();for(const r of s){const{start:s,end:l}=r,h=n[s],c=n[io(s,l,n)];o?(t.moveTo(h.x,h.y),o=!1):(t.lineTo(h.x,i),t.lineTo(h.x,h.y)),a=!!e.pathSegment(t,r,{move:a}),a?t.closePath():t.lineTo(c.x,i)}t.lineTo(e.first().x,i),t.closePath(),t.clip()}function po(t,e){const{line:i,target:s,property:n,color:o,scale:a}=e,r=function(t,e,i){const s=t.segments,n=t.points,o=e.points,a=[];for(const t of s){let{start:s,end:r}=t;r=io(s,r,n);const l=eo(i,n[s],n[r],t.loop);if(!e.segments){a.push({source:t,target:l,start:n[s],end:n[r]});continue}const h=vi(e,l);for(const e of h){const s=eo(i,o[e.start],o[e.end],e.loop),r=_i(t,n,s);for(const t of r)a.push({source:t,target:e,start:{[i]:so(l,s,"start",Math.max)},end:{[i]:so(l,s,"end",Math.min)}})}}return a}(i,s,n);for(const{source:e,target:l,start:h,end:c}of r){const{style:{backgroundColor:r=o}={}}=e,d=!0!==s;t.save(),t.fillStyle=r,go(t,a,d&&eo(n,h,c)),t.beginPath();const u=!!i.pathSegment(t,e);let f;if(d){u?t.closePath():mo(t,s,c,n);const e=!!s.pathSegment(t,l,{move:u,reverse:!0});f=u&&e,f||mo(t,s,h,n)}t.closePath(),t.fill(f?"evenodd":"nonzero"),t.restore()}}function go(t,e,i){const{top:s,bottom:n}=e.chart.chartArea,{property:o,start:a,end:r}=i||{};"x"===o&&(t.beginPath(),t.rect(a,s,r-a,n-s),t.clip())}function mo(t,e,i,s){const n=e.interpolate(i,s);n&&t.lineTo(n.x,n.y)}var bo={id:"filler",afterDatasetsUpdate(t,e,i){const s=(t.data.datasets||[]).length,n=[];let o,a,r,l;for(a=0;a<s;++a)o=t.getDatasetMeta(a),r=o.dataset,l=null,r&&r.options&&r instanceof Wn&&(l={visible:t.isDatasetVisible(a),index:a,fill:ro(r,a,s),chart:t,axis:o.controller.options.indexAxis,scale:o.vScale,line:r}),o.$filler=l,n.push(l);for(a=0;a<s;++a)l=n[a],l&&!1!==l.fill&&(l.fill=ao(n,a,i.propagate))},beforeDraw(t,e,i){const s="beforeDraw"===i.drawTime,n=t.getSortedVisibleDatasetMetas(),o=t.chartArea;for(let e=n.length-1;e>=0;--e){const i=n[e].$filler;i&&(i.line.updateControlPoints(o,i.axis),s&&i.fill&&uo(t.ctx,i,o))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const s=t.getSortedVisibleDatasetMetas();for(let e=s.length-1;e>=0;--e){const i=s[e].$filler;oo(i)&&uo(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,i){const s=e.meta.$filler;oo(s)&&"beforeDatasetDraw"===i.drawTime&&uo(t.ctx,s,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const xo=(t,e)=>{let{boxHeight:i=e,boxWidth:s=e}=t;return t.usePointStyle&&(i=Math.min(i,e),s=t.pointStyleWidth||Math.min(s,e)),{boxWidth:s,boxHeight:i,itemHeight:Math.max(e,i)}};class yo extends ss{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,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,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=y(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,i)=>t.sort(e,i,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 i=t.labels,s=Ee(i.font),n=s.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:r}=xo(i,n);let l,h;e.font=s.string,this.isHorizontal()?(l=this.maxWidth,h=this._fitRows(o,n,a,r)+10):(h=this.maxHeight,l=this._fitCols(o,n,a,r)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(h,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,s){const{ctx:n,maxWidth:o,options:{labels:{padding:a}}}=this,r=this.legendHitBoxes=[],l=this.lineWidths=[0],h=s+a;let c=t;n.textAlign="left",n.textBaseline="middle";let d=-1,u=-h;return this.legendItems.forEach(((t,f)=>{const p=i+e/2+n.measureText(t.text).width;(0===f||l[l.length-1]+p+2*a>o)&&(c+=h,l[l.length-(f>0?0:1)]=0,u+=h,d++),r[f]={left:0,top:u,row:d,width:p,height:s},l[l.length-1]+=p+a})),c}_fitCols(t,e,i,s){const{ctx:n,maxHeight:o,options:{labels:{padding:a}}}=this,r=this.legendHitBoxes=[],l=this.columnSizes=[],h=o-t;let c=a,d=0,u=0,f=0,p=0;return this.legendItems.forEach(((t,o)=>{const g=i+e/2+n.measureText(t.text).width;o>0&&u+s+2*a>h&&(c+=d+a,l.push({width:d,height:u}),f+=d+a,p++,d=u=0),r[o]={left:f,top:u,col:p,width:g,height:s},d=Math.max(d,g),u+=s+a})),c+=d,l.push({width:d,height:u}),c}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:s},rtl:n}}=this,o=gi(n,this.left,this.width);if(this.isHorizontal()){let n=0,a=ft(i,this.left+s,this.right-this.lineWidths[n]);for(const r of e)n!==r.row&&(n=r.row,a=ft(i,this.left+s,this.right-this.lineWidths[n])),r.top+=this.top+t+s,r.left=o.leftForLtr(o.x(a),r.width),a+=r.width+s}else{let n=0,a=ft(i,this.top+t+s,this.bottom-this.columnSizes[n].height);for(const r of e)r.col!==n&&(n=r.col,a=ft(i,this.top+t+s,this.bottom-this.columnSizes[n].height)),r.top=a,r.left+=this.left+s,r.left=o.leftForLtr(o.x(r.left),r.width),a+=r.height+s}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;ue(t,this),this._draw(),fe(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:s}=this,{align:n,labels:o}=t,a=ne.color,r=gi(t.rtl,this.left,this.width),l=Ee(o.font),{color:h,padding:c}=o,d=l.size,u=d/2;let f;this.drawTitle(),s.textAlign=r.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=l.string;const{boxWidth:p,boxHeight:g,itemHeight:m}=xo(o,d),x=this.isHorizontal(),y=this._computeTitleHeight();f=x?{x:ft(n,this.left+c,this.right-i[0]),y:this.top+c+y,line:0}:{x:this.left+c,y:ft(n,this.top+y+c,this.bottom-e[0].height),line:0},mi(this.ctx,t.textDirection);const _=m+c;this.legendItems.forEach(((v,w)=>{s.strokeStyle=v.fontColor||h,s.fillStyle=v.fontColor||h;const k=s.measureText(v.text).width,C=r.textAlign(v.textAlign||(v.textAlign=o.textAlign)),M=p+u+k;let S=f.x,E=f.y;r.setWidth(this.width),x?w>0&&S+M+c>this.right&&(E=f.y+=_,f.line++,S=f.x=ft(n,this.left+c,this.right-i[f.line])):w>0&&E+_>this.bottom&&(S=f.x=S+e[f.line].width+c,f.line++,E=f.y=ft(n,this.top+y+c,this.bottom-e[f.line].height)),function(t,e,i){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;s.save();const n=b(i.lineWidth,1);if(s.fillStyle=b(i.fillStyle,a),s.lineCap=b(i.lineCap,"butt"),s.lineDashOffset=b(i.lineDashOffset,0),s.lineJoin=b(i.lineJoin,"miter"),s.lineWidth=n,s.strokeStyle=b(i.strokeStyle,a),s.setLineDash(b(i.lineDash,[])),o.usePointStyle){const a={radius:g*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:n},l=r.xPlus(t,p/2);ce(s,a,l,e+u,o.pointStyleWidth&&p)}else{const o=e+Math.max((d-g)/2,0),a=r.leftForLtr(t,p),l=Me(i.borderRadius);s.beginPath(),Object.values(l).some((t=>0!==t))?xe(s,{x:a,y:o,w:p,h:g,radius:l}):s.rect(a,o,p,g),s.fill(),0!==n&&s.stroke()}s.restore()}(r.x(S),E,v),S=((t,e,i,s)=>t===(s?"left":"right")?i:"center"===t?(e+i)/2:e)(C,S+p+u,x?S+M:this.right,t.rtl),function(t,e,i){me(s,i.text,t,e+m/2,l,{strikethrough:i.hidden,textAlign:r.textAlign(i.textAlign)})}(r.x(S),E,v),x?f.x+=M+c:f.y+=_})),bi(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=Ee(e.font),s=Se(e.padding);if(!e.display)return;const n=gi(t.rtl,this.left,this.width),o=this.ctx,a=e.position,r=i.size/2,l=s.top+r;let h,c=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),h=this.top+l,c=ft(t.align,c,this.right-d);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);h=l+ft(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const u=ft(a,c,c+d);o.textAlign=n.textAlign(ut(a)),o.textBaseline="middle",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=i.string,me(o,e.text,u,h,i)}_computeTitleHeight(){const t=this.options.title,e=Ee(t.font),i=Se(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,s,n;if(st(t,this.left,this.right)&&st(e,this.top,this.bottom))for(n=this.legendHitBoxes,i=0;i<n.length;++i)if(s=n[i],st(t,s.left,s.left+s.width)&&st(e,s.top,s.top+s.height))return this.legendItems[i];return null}handleEvent(t){const e=this.options;if(!function(t,e){return!("mousemove"!==t&&"mouseout"!==t||!e.onHover&&!e.onLeave)||!(!e.onClick||"click"!==t&&"mouseup"!==t)}(t.type,e))return;const i=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const o=this._hoveredItem,a=(n=i,null!==(s=o)&&null!==n&&s.datasetIndex===n.datasetIndex&&s.index===n.index);o&&!a&&y(e.onLeave,[t,o,this],this),this._hoveredItem=i,i&&!a&&y(e.onHover,[t,i,this],this)}else i&&y(e.onClick,[t,i,this],this);var s,n}}var _o={id:"legend",_element:yo,start(t,e,i){const s=t.legend=new yo({ctx:t.ctx,options:i,chart:t});Ns.configure(t,s,i),Ns.addBox(t,s)},stop(t){Ns.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){const s=t.legend;Ns.configure(t,s,i),s.options=i},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,i){const s=e.datasetIndex,n=i.chart;n.isDatasetVisible(s)?(n.hide(s),e.hidden=!0):(n.show(s),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:i,pointStyle:s,textAlign:n,color:o}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const a=t.controller.getStyle(i?0:void 0),r=Se(a.borderWidth);return{text:e[t.index].label,fillStyle:a.backgroundColor,fontColor:o,hidden:!t.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(r.width+r.height)/4,strokeStyle:a.borderColor,pointStyle:s||a.pointStyle,rotation:a.rotation,textAlign:n||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 vo extends ss{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 i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const s=f(i.text)?i.text.length:1;this._padding=Se(i.padding);const n=s*Ee(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=n:this.width=n}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:s,right:n,options:o}=this,a=o.align;let r,l,h,c=0;return this.isHorizontal()?(l=ft(a,i,n),h=e+t,r=n-i):("left"===o.position?(l=i+t,h=ft(a,s,e),c=-.5*z):(l=n-t,h=ft(a,e,s),c=.5*z),r=s-e),{titleX:l,titleY:h,maxWidth:r,rotation:c}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=Ee(e.font),s=i.lineHeight/2+this._padding.top,{titleX:n,titleY:o,maxWidth:a,rotation:r}=this._drawArgs(s);me(t,e.text,0,0,i,{color:e.color,maxWidth:a,rotation:r,textAlign:ut(e.align),textBaseline:"middle",translation:[n,o]})}}var wo={id:"title",_element:vo,start(t,e,i){!function(t,e){const i=new vo({ctx:t.ctx,options:e,chart:t});Ns.configure(t,i,e),Ns.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){const e=t.titleBlock;Ns.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const s=t.titleBlock;Ns.configure(t,s,i),s.options=i},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 ko=new WeakMap;var Co={id:"subtitle",start(t,e,i){const s=new vo({ctx:t.ctx,options:i,chart:t});Ns.configure(t,s,i),Ns.addBox(t,s),ko.set(t,s)},stop(t){Ns.removeBox(t,ko.get(t)),ko.delete(t)},beforeUpdate(t,e,i){const s=ko.get(t);Ns.configure(t,s,i),s.options=i},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 Mo={average(t){if(!t.length)return!1;let e,i,s=0,n=0,o=0;for(e=0,i=t.length;e<i;++e){const i=t[e].element;if(i&&i.hasValue()){const t=i.tooltipPosition();s+=t.x,n+=t.y,++o}}return{x:s/o,y:n/o}},nearest(t,e){if(!t.length)return!1;let i,s,n,o=e.x,a=e.y,r=Number.POSITIVE_INFINITY;for(i=0,s=t.length;i<s;++i){const s=t[i].element;if(s&&s.hasValue()){const t=J(e,s.getCenterPoint());t<r&&(r=t,n=s)}}if(n){const t=n.tooltipPosition();o=t.x,a=t.y}return{x:o,y:a}}};function So(t,e){return e&&(f(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Eo(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Lo(t,e){const{element:i,datasetIndex:s,index:n}=e,o=t.getDatasetMeta(s).controller,{label:a,value:r}=o.getLabelAndValue(n);return{chart:t,label:a,parsed:o.getParsed(n),raw:t.data.datasets[s].data[n],formattedValue:r,dataset:o.getDataset(),dataIndex:n,datasetIndex:s,element:i}}function Do(t,e){const i=t.chart.ctx,{body:s,footer:n,title:o}=t,{boxWidth:a,boxHeight:r}=e,l=Ee(e.bodyFont),h=Ee(e.titleFont),c=Ee(e.footerFont),d=o.length,u=n.length,f=s.length,p=Se(e.padding);let g=p.height,m=0,b=s.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);b+=t.beforeBody.length+t.afterBody.length,d&&(g+=d*h.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),b&&(g+=f*(e.displayColors?Math.max(r,l.lineHeight):l.lineHeight)+(b-f)*l.lineHeight+(b-1)*e.bodySpacing),u&&(g+=e.footerMarginTop+u*c.lineHeight+(u-1)*e.footerSpacing);let x=0;const y=function(t){m=Math.max(m,i.measureText(t).width+x)};return i.save(),i.font=h.string,_(t.title,y),i.font=l.string,_(t.beforeBody.concat(t.afterBody),y),x=e.displayColors?a+2+e.boxPadding:0,_(s,(t=>{_(t.before,y),_(t.lines,y),_(t.after,y)})),x=0,i.font=c.string,_(t.footer,y),i.restore(),m+=p.width,{width:m,height:g}}function Po(t,e,i,s){const{x:n,width:o}=i,{width:a,chartArea:{left:r,right:l}}=t;let h="center";return"center"===s?h=n<=(r+l)/2?"left":"right":n<=o/2?h="left":n>=a-o/2&&(h="right"),function(t,e,i,s){const{x:n,width:o}=s,a=i.caretSize+i.caretPadding;return"left"===t&&n+o+a>e.width||"right"===t&&n-o-a<0||void 0}(h,t,e,i)&&(h="center"),h}function Oo(t,e,i){const s=i.yAlign||e.yAlign||function(t,e){const{y:i,height:s}=e;return i<s/2?"top":i>t.height-s/2?"bottom":"center"}(t,i);return{xAlign:i.xAlign||e.xAlign||Po(t,e,i,s),yAlign:s}}function To(t,e,i,s){const{caretSize:n,caretPadding:o,cornerRadius:a}=t,{xAlign:r,yAlign:l}=i,h=n+o,{topLeft:c,topRight:d,bottomLeft:u,bottomRight:f}=Me(a);let p=function(t,e){let{x:i,width:s}=t;return"right"===e?i-=s:"center"===e&&(i-=s/2),i}(e,r);const g=function(t,e,i){let{y:s,height:n}=t;return"top"===e?s+=i:s-="bottom"===e?n+i:n/2,s}(e,l,h);return"center"===l?"left"===r?p+=h:"right"===r&&(p-=h):"left"===r?p-=Math.max(c,u)+n:"right"===r&&(p+=Math.max(d,f)+n),{x:it(p,0,s.width-e.width),y:it(g,0,s.height-e.height)}}function Ao(t,e,i){const s=Se(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-s.right:t.x+s.left}function zo(t){return So([],Eo(t))}function Ro(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}class Io extends ss{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,i=this.options.setContext(this.getContext()),s=i.enabled&&e.options.animation&&i.animations,n=new Di(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(n)),n}getContext(){return this.$context||(this.$context=(this,De(this.chart.getContext(),{tooltip:this,tooltipItems:this._tooltipItems,type:"tooltip"})))}getTitle(t,e){const{callbacks:i}=e,s=i.beforeTitle.apply(this,[t]),n=i.title.apply(this,[t]),o=i.afterTitle.apply(this,[t]);let a=[];return a=So(a,Eo(s)),a=So(a,Eo(n)),a=So(a,Eo(o)),a}getBeforeBody(t,e){return zo(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:i}=e,s=[];return _(t,(t=>{const e={before:[],lines:[],after:[]},n=Ro(i,t);So(e.before,Eo(n.beforeLabel.call(this,t))),So(e.lines,n.label.call(this,t)),So(e.after,Eo(n.afterLabel.call(this,t))),s.push(e)})),s}getAfterBody(t,e){return zo(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:i}=e,s=i.beforeFooter.apply(this,[t]),n=i.footer.apply(this,[t]),o=i.afterFooter.apply(this,[t]);let a=[];return a=So(a,Eo(s)),a=So(a,Eo(n)),a=So(a,Eo(o)),a}_createItems(t){const e=this._active,i=this.chart.data,s=[],n=[],o=[];let a,r,l=[];for(a=0,r=e.length;a<r;++a)l.push(Lo(this.chart,e[a]));return t.filter&&(l=l.filter(((e,s,n)=>t.filter(e,s,n,i)))),t.itemSort&&(l=l.sort(((e,s)=>t.itemSort(e,s,i)))),_(l,(e=>{const i=Ro(t.callbacks,e);s.push(i.labelColor.call(this,e)),n.push(i.labelPointStyle.call(this,e)),o.push(i.labelTextColor.call(this,e))})),this.labelColors=s,this.labelPointStyles=n,this.labelTextColors=o,this.dataPoints=l,l}update(t,e){const i=this.options.setContext(this.getContext()),s=this._active;let n,o=[];if(s.length){const t=Mo[i.position].call(this,s,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const e=this._size=Do(this,i),a=Object.assign({},t,e),r=Oo(this.chart,i,a),l=To(i,a,r,this.chart);this.xAlign=r.xAlign,this.yAlign=r.yAlign,n={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(n={opacity:0});this._tooltipItems=o,this.$context=void 0,n&&this._resolveAnimations().update(this,n),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,s){const n=this.getCaretPosition(t,i,s);e.lineTo(n.x1,n.y1),e.lineTo(n.x2,n.y2),e.lineTo(n.x3,n.y3)}getCaretPosition(t,e,i){const{xAlign:s,yAlign:n}=this,{caretSize:o,cornerRadius:a}=i,{topLeft:r,topRight:l,bottomLeft:h,bottomRight:c}=Me(a),{x:d,y:u}=t,{width:f,height:p}=e;let g,m,b,x,y,_;return"center"===n?(y=u+p/2,"left"===s?(g=d,m=g-o,x=y+o,_=y-o):(g=d+f,m=g+o,x=y-o,_=y+o),b=g):(m="left"===s?d+Math.max(r,h)+o:"right"===s?d+f-Math.max(l,c)-o:this.caretX,"top"===n?(x=u,y=x-o,g=m-o,b=m+o):(x=u+p,y=x+o,g=m+o,b=m-o),_=x),{x1:g,x2:m,x3:b,y1:x,y2:y,y3:_}}drawTitle(t,e,i){const s=this.title,n=s.length;let o,a,r;if(n){const l=gi(i.rtl,this.x,this.width);for(t.x=Ao(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline="middle",o=Ee(i.titleFont),a=i.titleSpacing,e.fillStyle=i.titleColor,e.font=o.string,r=0;r<n;++r)e.fillText(s[r],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+a,r+1===n&&(t.y+=i.titleMarginBottom-a)}}_drawColorBox(t,e,i,s,n){const o=this.labelColors[i],a=this.labelPointStyles[i],{boxHeight:r,boxWidth:l,boxPadding:h}=n,c=Ee(n.bodyFont),d=Ao(this,"left",n),u=s.x(d),f=r<c.lineHeight?(c.lineHeight-r)/2:0,g=e.y+f;if(n.usePointStyle){const e={radius:Math.min(l,r)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},i=s.leftForLtr(u,l)+l/2,h=g+r/2;t.strokeStyle=n.multiKeyBackground,t.fillStyle=n.multiKeyBackground,he(t,e,i,h),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,he(t,e,i,h)}else{t.lineWidth=p(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const e=s.leftForLtr(u,l-h),i=s.leftForLtr(s.xPlus(u,1),l-h-2),a=Me(o.borderRadius);Object.values(a).some((t=>0!==t))?(t.beginPath(),t.fillStyle=n.multiKeyBackground,xe(t,{x:e,y:g,w:l,h:r,radius:a}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),xe(t,{x:i,y:g+1,w:l-2,h:r-2,radius:a}),t.fill()):(t.fillStyle=n.multiKeyBackground,t.fillRect(e,g,l,r),t.strokeRect(e,g,l,r),t.fillStyle=o.backgroundColor,t.fillRect(i,g+1,l-2,r-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:s}=this,{bodySpacing:n,bodyAlign:o,displayColors:a,boxHeight:r,boxWidth:l,boxPadding:h}=i,c=Ee(i.bodyFont);let d=c.lineHeight,u=0;const f=gi(i.rtl,this.x,this.width),p=function(i){e.fillText(i,f.x(t.x+u),t.y+d/2),t.y+=d+n},g=f.textAlign(o);let m,b,x,y,v,w,k;for(e.textAlign=o,e.textBaseline="middle",e.font=c.string,t.x=Ao(this,g,i),e.fillStyle=i.bodyColor,_(this.beforeBody,p),u=a&&"right"!==g?"center"===o?l/2+h:l+2+h:0,y=0,w=s.length;y<w;++y){for(m=s[y],b=this.labelTextColors[y],e.fillStyle=b,_(m.before,p),x=m.lines,a&&x.length&&(this._drawColorBox(e,t,y,f,i),d=Math.max(c.lineHeight,r)),v=0,k=x.length;v<k;++v)p(x[v]),d=c.lineHeight;_(m.after,p)}u=0,d=c.lineHeight,_(this.afterBody,p),t.y-=n}drawFooter(t,e,i){const s=this.footer,n=s.length;let o,a;if(n){const r=gi(i.rtl,this.x,this.width);for(t.x=Ao(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=r.textAlign(i.footerAlign),e.textBaseline="middle",o=Ee(i.footerFont),e.fillStyle=i.footerColor,e.font=o.string,a=0;a<n;++a)e.fillText(s[a],r.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+i.footerSpacing}}drawBackground(t,e,i,s){const{xAlign:n,yAlign:o}=this,{x:a,y:r}=t,{width:l,height:h}=i,{topLeft:c,topRight:d,bottomLeft:u,bottomRight:f}=Me(s.cornerRadius);e.fillStyle=s.backgroundColor,e.strokeStyle=s.borderColor,e.lineWidth=s.borderWidth,e.beginPath(),e.moveTo(a+c,r),"top"===o&&this.drawCaret(t,e,i,s),e.lineTo(a+l-d,r),e.quadraticCurveTo(a+l,r,a+l,r+d),"center"===o&&"right"===n&&this.drawCaret(t,e,i,s),e.lineTo(a+l,r+h-f),e.quadraticCurveTo(a+l,r+h,a+l-f,r+h),"bottom"===o&&this.drawCaret(t,e,i,s),e.lineTo(a+u,r+h),e.quadraticCurveTo(a,r+h,a,r+h-u),"center"===o&&"left"===n&&this.drawCaret(t,e,i,s),e.lineTo(a,r+c),e.quadraticCurveTo(a,r,a+c,r),e.closePath(),e.fill(),s.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,s=i&&i.x,n=i&&i.y;if(s||n){const i=Mo[t.position].call(this,this._active,this._eventPosition);if(!i)return;const o=this._size=Do(this,t),a=Object.assign({},i,this._size),r=Oo(e,t,a),l=To(t,a,r,e);s._to===l.x&&n._to===l.y||(this.xAlign=r.xAlign,this.yAlign=r.yAlign,this.width=o.width,this.height=o.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const s={width:this.width,height:this.height},n={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=Se(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=i,this.drawBackground(n,t,s,e),mi(t,e.textDirection),n.y+=o.top,this.drawTitle(n,t,e),this.drawBody(n,t,e),this.drawFooter(n,t,e),bi(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,s=t.map((({datasetIndex:t,index:e})=>{const i=this.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}})),n=!v(i,s),o=this._positionChanged(s,e);(n||o)&&(this._active=s,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,n=this._active||[],o=this._getActiveElements(t,n,e,i),a=this._positionChanged(o,t),r=e||!v(o,n)||a;return r&&(this._active=o,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),r}_getActiveElements(t,e,i,s){const n=this.options;if("mouseout"===t.type)return[];if(!s)return e;const o=this.chart.getElementsAtEventForMode(t,n.mode,n,i);return n.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:i,caretY:s,options:n}=this,o=Mo[n.position].call(this,t,e);return!1!==o&&(i!==o.x||s!==o.y)}}Io.positioners=Mo;var Fo={id:"tooltip",_element:Io,positioners:Mo,afterInit(t,e,i){i&&(t.tooltip=new Io({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",i))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i,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:c,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,s=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(s>0&&e.dataIndex<s)return i[e.dataIndex]}return""},afterTitle:c,beforeBody:c,beforeLabel:c,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 i=t.formattedValue;return u(i)||(e+=i),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:c,afterBody:c,beforeFooter:c,footer:c,afterFooter:c}},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"]},Vo=Object.freeze({__proto__:null,Decimation:to,Filler:bo,Legend:_o,SubTitle:Co,Title:wo,Tooltip:Fo});class No extends ps{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:i,label:s}of e)t[i]===s&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(u(t))return null;const i=this.getLabels();return e=isFinite(e)&&i[e]===t?e:function(t,e,i,s){const n=t.indexOf(e);return-1===n?((t,e,i,s)=>("string"==typeof e?(i=t.push(e)-1,s.unshift({index:i,label:e})):isNaN(e)&&(i=null),i))(t,e,i,s):n!==t.lastIndexOf(e)?i:n}(i,t,b(e,t),this._addedLabels),((t,e)=>null===t?null:it(Math.round(t),0,e))(e,i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:s}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),e||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,s=[];let n=this.getLabels();n=0===t&&e===n.length-1?n:n.slice(t,e+1),this._valueRange=Math.max(n.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let i=t;i<=e;i++)s.push({value:i});return s}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 Bo(t,e,{horizontal:i,minRotation:s}){const n=X(s),o=(i?Math.sin(n):Math.cos(n))||.001,a=.75*e*(""+t).length;return Math.min(e/o,a)}No.id="category",No.defaults={ticks:{callback:No.prototype.getLabelForValue}};class Ho extends ps{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 u(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:s,max:n}=this;const o=t=>s=e?s:t,a=t=>n=i?n:t;if(t){const t=j(s),e=j(n);t<0&&e<0?a(0):t>0&&e>0&&o(0)}if(s===n){let e=1;(n>=Number.MAX_SAFE_INTEGER||s<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*n)),a(n+e),t||o(s-e)}this.min=s,this.max=n}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:s}=t;return s?(e=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const s=function(t,e){const i=[],{bounds:s,step:n,min:o,max:a,precision:r,count:l,maxTicks:h,maxDigits:c,includeBounds:d}=t,f=n||1,p=h-1,{min:g,max:m}=e,b=!u(o),x=!u(a),y=!u(l),_=(m-g)/(c+1);let v,w,k,C,M=$((m-g)/p/f)*f;if(M<1e-14&&!b&&!x)return[{value:g},{value:m}];C=Math.ceil(m/M)-Math.floor(g/M),C>p&&(M=$(C*M/p/f)*f),u(r)||(v=Math.pow(10,r),M=Math.ceil(M*v)/v),"ticks"===s?(w=Math.floor(g/M)*M,k=Math.ceil(m/M)*M):(w=g,k=m),b&&x&&n&&function(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}((a-o)/n,M/1e3)?(C=Math.round(Math.min((a-o)/M,h)),M=(a-o)/C,w=o,k=a):y?(w=b?o:w,k=x?a:k,C=l-1,M=(k-w)/C):(C=(k-w)/M,C=Y(C,Math.round(C),M/1e3)?Math.round(C):Math.ceil(C));const S=Math.max(K(M),K(w));v=Math.pow(10,u(r)?S:r),w=Math.round(w*v)/v,k=Math.round(k*v)/v;let E=0;for(b&&(d&&w!==o?(i.push({value:o}),w<o&&E++,Y(Math.round((w+E*M)*v)/v,o,Bo(o,_,t))&&E++):w<o&&E++);E<C;++E)i.push({value:Math.round((w+E*M)*v)/v});return x&&d&&k!==a?i.length&&Y(i[i.length-1].value,a,Bo(a,_,t))?i[i.length-1].value=a:i.push({value:a}):x&&k!==a||i.push({value:k}),i}({maxTicks:i,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&&U(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,i=this.max;if(super.configure(),this.options.offset&&t.length){const s=(i-e)/Math.max(t.length-1,1)/2;e-=s,i+=s}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return ui(t,this.chart.options.locale,this.options.ticks.format)}}class Wo extends Ho{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=g(t)?t:0,this.max=g(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=X(this.options.ticks.minRotation),s=(t?Math.sin(i):Math.cos(i))||.001,n=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,n.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 jo(t){return 1==t/Math.pow(10,Math.floor(W(t)))}Wo.id="linear",Wo.defaults={ticks:{callback:os.formatters.numeric}};class $o extends ps{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=Ho.prototype.parse.apply(this,[t,e]);if(0!==i)return g(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=g(t)?Math.max(0,t):null,this.max=g(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,s=this.max;const n=e=>i=t?i:e,o=t=>s=e?s:t,a=(t,e)=>Math.pow(10,Math.floor(W(t))+e);i===s&&(i<=0?(n(1),o(10)):(n(a(i,-1)),o(a(s,1)))),i<=0&&n(a(s,-1)),s<=0&&o(a(i,1)),this._zero&&this.min!==this._suggestedMin&&i===a(this.min,0)&&n(a(i,-1)),this.min=i,this.max=s}buildTicks(){const t=this.options,e=function(t,e){const i=Math.floor(W(e.max)),s=Math.ceil(e.max/Math.pow(10,i)),n=[];let o=m(t.min,Math.pow(10,Math.floor(W(e.min)))),a=Math.floor(W(o)),r=Math.floor(o/Math.pow(10,a)),l=a<0?Math.pow(10,Math.abs(a)):1;do{n.push({value:o,major:jo(o)}),++r,10===r&&(r=1,++a,l=a>=0?1:l),o=Math.round(r*Math.pow(10,a)*l)/l}while(a<i||a===i&&r<s);const h=m(t.max,o);return n.push({value:h,major:jo(o)}),n}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&U(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":ui(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=W(t),this._valueRange=W(this.max)-W(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(W(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Zo(t){const e=t.ticks;if(e.display&&t.display){const t=Se(e.backdropPadding);return b(e.font&&e.font.size,ne.font.size)+t.height}return 0}function Yo(t,e,i,s,n){return t===s||t===n?{start:e-i/2,end:e+i/2}:t<s||t>n?{start:e-i,end:e}:{start:e,end:e+i}}function Uo(t,e,i,s,n){const o=Math.abs(Math.sin(i)),a=Math.abs(Math.cos(i));let r=0,l=0;s.start<e.l?(r=(e.l-s.start)/o,t.l=Math.min(t.l,e.l-r)):s.end>e.r&&(r=(s.end-e.r)/o,t.r=Math.max(t.r,e.r+r)),n.start<e.t?(l=(e.t-n.start)/a,t.t=Math.min(t.t,e.t-l)):n.end>e.b&&(l=(n.end-e.b)/a,t.b=Math.max(t.b,e.b+l))}function Xo(t){return 0===t||180===t?"center":t<180?"left":"right"}function qo(t,e,i){return 90===i||270===i?t-=e/2:(i>270||i<90)&&(t-=e),t}function Ko(t,e,i,s){const{ctx:n}=t;if(i)n.arc(t.xCenter,t.yCenter,e,0,R);else{let i=t.getPointPosition(0,e);n.moveTo(i.x,i.y);for(let o=1;o<s;o++)i=t.getPointPosition(o,e),n.lineTo(i.x,i.y)}}$o.id="logarithmic",$o.defaults={ticks:{callback:os.formatters.logarithmic,major:{enabled:!0}}};class Go extends Ho{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=Se(Zo(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=g(t)&&!isNaN(t)?t:0,this.max=g(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Zo(this.options))}generateTickLabels(t){Ho.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const i=y(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?function(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},i=Object.assign({},e),s=[],n=[],o=t._pointLabels.length,a=t.options.pointLabels,r=a.centerPointLabels?z/o:0;for(let d=0;d<o;d++){const o=a.setContext(t.getPointLabelContext(d));n[d]=o.padding;const u=t.getPointPosition(d,t.drawingArea+n[d],r),p=Ee(o.font),g=(l=t.ctx,h=p,c=f(c=t._pointLabels[d])?c:[c],{w:ae(l,h.string,c),h:c.length*h.lineHeight});s[d]=g;const m=tt(t.getIndexAngle(d)+r),b=Math.round(q(m));Uo(i,e,m,Yo(b,u.x,g.w,0,180),Yo(b,u.y,g.h,90,270))}var l,h,c;t.setCenterPoint(e.l-i.l,i.r-e.r,e.t-i.t,i.b-e.b),t._pointLabelItems=function(t,e,i){const s=[],n=t._pointLabels.length,o=t.options,a=Zo(o)/2,r=t.drawingArea,l=o.pointLabels.centerPointLabels?z/n:0;for(let o=0;o<n;o++){const n=t.getPointPosition(o,r+a+i[o],l),u=Math.round(q(tt(n.angle+N))),f=e[o],p=qo(n.y,f.h,u),g=Xo(u),m=(h=n.x,c=f.w,"right"===(d=g)?h-=c:"center"===d&&(h-=c/2),h);s.push({x:n.x,y:p,textAlign:g,left:m,top:p,right:m+f.w,bottom:p+f.h})}var h,c,d;return s}(t,s,n)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,s){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,s))}getIndexAngle(t){return tt(t*(R/(this._pointLabels.length||1))+X(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(u(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(u(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 i=e[t];return function(t,e,i){return De(t,{label:i,index:e,type:"pointLabel"})}(this.getContext(),t,i)}}getPointPosition(t,e,i=0){const s=this.getIndexAngle(t)-N+i;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:i,right:s,bottom:n}=this._pointLabelItems[t];return{left:e,top:i,right:s,bottom:n}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),Ko(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:i,grid:s}=e,n=this._pointLabels.length;let o,a,r;if(e.pointLabels.display&&function(t,e){const{ctx:i,options:{pointLabels:s}}=t;for(let n=e-1;n>=0;n--){const e=s.setContext(t.getPointLabelContext(n)),o=Ee(e.font),{x:a,y:r,textAlign:l,left:h,top:c,right:d,bottom:f}=t._pointLabelItems[n],{backdropColor:p}=e;if(!u(p)){const t=Me(e.borderRadius),s=Se(e.backdropPadding);i.fillStyle=p;const n=h-s.left,o=c-s.top,a=d-h+s.width,r=f-c+s.height;Object.values(t).some((t=>0!==t))?(i.beginPath(),xe(i,{x:n,y:o,w:a,h:r,radius:t}),i.fill()):i.fillRect(n,o,a,r)}me(i,t._pointLabels[n],a,r+o.lineHeight/2,o,{color:e.color,textAlign:l,textBaseline:"middle"})}}(this,n),s.display&&this.ticks.forEach(((t,e)=>{0!==e&&(a=this.getDistanceFromCenterForValue(t.value),function(t,e,i,s){const n=t.ctx,o=e.circular,{color:a,lineWidth:r}=e;!o&&!s||!a||!r||i<0||(n.save(),n.strokeStyle=a,n.lineWidth=r,n.setLineDash(e.borderDash),n.lineDashOffset=e.borderDashOffset,n.beginPath(),Ko(t,i,o,s),n.closePath(),n.stroke(),n.restore())}(this,s.setContext(this.getContext(e-1)),a,n))})),i.display){for(t.save(),o=n-1;o>=0;o--){const s=i.setContext(this.getPointLabelContext(o)),{color:n,lineWidth:l}=s;l&&n&&(t.lineWidth=l,t.strokeStyle=n,t.setLineDash(s.borderDash),t.lineDashOffset=s.borderDashOffset,a=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),r=this.getPointPosition(o,a),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(r.x,r.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const s=this.getIndexAngle(0);let n,o;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 r=i.setContext(this.getContext(a)),l=Ee(r.font);if(n=this.getDistanceFromCenterForValue(this.ticks[a].value),r.showLabelBackdrop){t.font=l.string,o=t.measureText(s.label).width,t.fillStyle=r.backdropColor;const e=Se(r.backdropPadding);t.fillRect(-o/2-e.left,-n-l.size/2-e.top,o+e.width,l.size+e.height)}me(t,s.label,0,-n,l,{color:r.color})})),t.restore()}drawTitle(){}}Go.id="radialLinear",Go.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:os.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},Go.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Go.descriptors={angleLines:{_fallback:"grid"}};const Jo={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}},Qo=Object.keys(Jo);function ta(t,e){return t-e}function ea(t,e){if(u(e))return null;const i=t._adapter,{parser:s,round:n,isoWeekday:o}=t._parseOpts;let a=e;return"function"==typeof s&&(a=s(a)),g(a)||(a="string"==typeof s?i.parse(a,s):i.parse(a)),null===a?null:(n&&(a="week"!==n||!Z(o)&&!0!==o?i.startOf(a,n):i.startOf(a,"isoWeek",o)),+a)}function ia(t,e,i,s){const n=Qo.length;for(let o=Qo.indexOf(t);o<n-1;++o){const t=Jo[Qo[o]],n=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((i-e)/(n*t.size))<=s)return Qo[o]}return Qo[n-1]}function sa(t,e,i){if(i){if(i.length){const{lo:s,hi:n}=nt(i,e);t[i[s]>=e?i[s]:i[n]]=!0}}else t[e]=!0}function na(t,e,i){const s=[],n={},o=e.length;let a,r;for(a=0;a<o;++a)r=e[a],n[r]=a,s.push({value:r,major:!1});return 0!==o&&i?function(t,e,i,s){const n=t._adapter,o=+n.startOf(e[0].value,s),a=e[e.length-1].value;let r,l;for(r=o;r<=a;r=+n.add(r,1,s))l=i[r],l>=0&&(e[l].major=!0);return e}(t,s,n,i):s}class oa extends ps{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 i=t.time||(t.time={}),s=this._adapter=new vs._date(t.adapters.date);s.init(e),S(i.displayFormats,s.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:ea(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:s,max:n,minDefined:o,maxDefined:a}=this.getUserBounds();function r(t){o||isNaN(t.min)||(s=Math.min(s,t.min)),a||isNaN(t.max)||(n=Math.max(n,t.max))}o&&a||(r(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||r(this.getMinMax(!1))),s=g(s)&&!isNaN(s)?s:+e.startOf(Date.now(),i),n=g(n)&&!isNaN(n)?n:+e.endOf(Date.now(),i)+1,this.min=Math.min(s,n-1),this.max=Math.max(s+1,n)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,s="labels"===i.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 n=this.min,o=function(t,e,i){let s=0,n=t.length;for(;s<n&&t[s]<e;)s++;for(;n>s&&t[n-1]>i;)n--;return s>0||n<t.length?t.slice(s,n):t}(s,n,this.max);return this._unit=e.unit||(i.autoSkip?ia(e.minUnit,this.min,this.max,this._getLabelCapacity(n)):function(t,e,i,s,n){for(let o=Qo.length-1;o>=Qo.indexOf(i);o--){const i=Qo[o];if(Jo[i].common&&t._adapter.diff(n,s,i)>=e-1)return i}return Qo[i?Qo.indexOf(i):0]}(this,o.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=Qo.indexOf(t)+1,i=Qo.length;e<i;++e)if(Jo[Qo[e]].common)return Qo[e]}(this._unit):void 0,this.initOffsets(s),t.reverse&&o.reverse(),na(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((t=>+t.value)))}initOffsets(t){let e,i,s=0,n=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),s=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),n=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;s=it(s,0,o),n=it(n,0,o),this._offsets={start:s,end:n,factor:1/(s+1+n)}}_generate(){const t=this._adapter,e=this.min,i=this.max,s=this.options,n=s.time,o=n.unit||ia(n.minUnit,e,i,this._getLabelCapacity(e)),a=b(n.stepSize,1),r="week"===o&&n.isoWeekday,l=Z(r)||!0===r,h={};let c,d,u=e;if(l&&(u=+t.startOf(u,"isoWeek",r)),u=+t.startOf(u,l?"day":o),t.diff(i,e,o)>1e5*a)throw new Error(e+" and "+i+" are too far apart with stepSize of "+a+" "+o);const f="data"===s.ticks.source&&this.getDataTimestamps();for(c=u,d=0;c<i;c=+t.add(c,a,o),d++)sa(h,c,f);return c!==i&&"ticks"!==s.bounds&&1!==d||sa(h,c,f),Object.keys(h).sort(((t,e)=>t-e)).map((t=>+t))}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}_tickFormatFunction(t,e,i,s){const n=this.options,o=n.time.displayFormats,a=this._unit,r=this._majorUnit,l=a&&o[a],h=r&&o[r],c=i[e],d=r&&h&&c&&c.major,u=this._adapter.format(t,s||(d?h:l)),f=n.ticks.callback;return f?y(f,[u,e,i],this):u}generateTickLabels(t){let e,i,s;for(e=0,i=t.length;e<i;++e)s=t[e],s.label=this._tickFormatFunction(s.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+i)*e.factor)}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,i=this.ctx.measureText(t).width,s=X(this.isHorizontal()?e.maxRotation:e.minRotation),n=Math.cos(s),o=Math.sin(s),a=this._resolveTickFontOptions(0).size;return{w:i*n+a*o,h:i*o+a*n}}_getLabelCapacity(t){const e=this.options.time,i=e.displayFormats,s=i[e.unit]||i.millisecond,n=this._tickFormatFunction(t,0,na(this,[t],this._majorUnit),s),o=this._getLabelSize(n),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(t=0,e=s.length;t<e;++t)i=i.concat(s[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(i)}getLabelTimestamps(){const t=this._cache.labels||[];let e,i;if(t.length)return t;const s=this.getLabels();for(e=0,i=s.length;e<i;++e)t.push(ea(this,s[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return ht(t.sort(ta))}}function aa(t,e,i){let s,n,o,a,r=0,l=t.length-1;i?(e>=t[r].pos&&e<=t[l].pos&&({lo:r,hi:l}=ot(t,"pos",e)),({pos:s,time:o}=t[r]),({pos:n,time:a}=t[l])):(e>=t[r].time&&e<=t[l].time&&({lo:r,hi:l}=ot(t,"time",e)),({time:s,pos:o}=t[r]),({time:n,pos:a}=t[l]));const h=n-s;return h?o+(a-o)*(e-s)/h:o}oa.id="time",oa.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class ra extends oa{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=aa(e,this.min),this._tableRange=aa(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,s=[],n=[];let o,a,r,l,h;for(o=0,a=t.length;o<a;++o)l=t[o],l>=e&&l<=i&&s.push(l);if(s.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(o=0,a=s.length;o<a;++o)h=s[o+1],r=s[o-1],l=s[o],Math.round((h+r)/2)!==l&&n.push({time:l,pos:o/(a-1)});return n}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),i=this.getLabelTimestamps();return t=e.length&&i.length?this.normalize(e.concat(i)):e.length?e:i,t=this._cache.all=t,t}getDecimalForValue(t){return(aa(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return aa(this._table,i*this._tableRange+this._minPos,!0)}}ra.id="timeseries",ra.defaults=oa.defaults;const la=[xs,Gn,Vo,Object.freeze({__proto__:null,CategoryScale:No,LinearScale:Wo,LogarithmicScale:$o,RadialLinearScale:Go,TimeScale:oa,TimeSeriesScale:ra})];Ln.register(...la);const ha=Ln;function ca(t){for(var e=arguments,i=function(i){var s=null!=e[i]?e[i]:{},n=Object.keys(s);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(s).filter((function(t){return Object.getOwnPropertyDescriptor(s,t).enumerable})))),n.forEach((function(e){!function(t,e,i){e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i}(t,e,s[e])}))},s=1;s<arguments.length;s++)i(s);return t}function da(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function ua(t,e){t.labels=e}function fa(t,e){t.datasets=e.map((function(e){var i=t.datasets.find((function(t){return t.label===e.label&&t.type===e.type}));return i&&e.data?(Object.assign(i,e),i):ca({},e)}))}function pa(t){var e={labels:[],datasets:[]};return ua(e,t.labels),fa(e,t.datasets),e}var ga={datasets:[]};function ma(t,e){var i,s=t.height,n=void 0===s?150:s,r=t.width,l=void 0===r?300:r,h=t.redraw,c=void 0!==h&&h,d=t.type,u=t.data,f=t.options,p=t.plugins,g=void 0===p?[]:p,m=t.getDatasetAtEvent,b=t.getElementAtEvent,x=t.getElementsAtEvent,y=t.fallbackContent,_=t.onClick,v=function(t,e){if(null==t)return{};var i,s,n=function(t,e){if(null==t)return{};var i,s,n={},o=Object.keys(t);for(s=0;s<o.length;s++)i=o[s],e.indexOf(i)>=0||(n[i]=t[i]);return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(s=0;s<o.length;s++)i=o[s],e.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(n[i]=t[i])}return n}(t,["height","width","redraw","type","data","options","plugins","getDatasetAtEvent","getElementAtEvent","getElementsAtEvent","fallbackContent","onClick"]),w=(0,o.useRef)(null),k=(0,o.useRef)(),C=function(t){if(Array.isArray(t))return t}(i=(0,o.useState)())||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}(),M=C[0],S=C[1],E=M||("function"==typeof u?ga:u),L=function(){w.current&&(k.current=new ha(w.current,{type:d,data:pa(E),options:f,plugins:g}),da(e,k.current))},D=function(){da(e,null),k.current&&(k.current.destroy(),k.current=null)};return(0,o.useEffect)((function(){"function"==typeof u&&w.current&&S(u(w.current))}),[u]),(0,o.useEffect)((function(){var t,e;!c&&k.current&&f&&(t=k.current,e=f,t.options=ca({},e))}),[c,f]),(0,o.useEffect)((function(){!c&&k.current&&ua(k.current.config.data,E.labels)}),[c,E.labels]),(0,o.useEffect)((function(){!c&&k.current&&E.datasets&&fa(k.current.config.data,E.datasets)}),[c,E.datasets]),(0,o.useEffect)((function(){k.current&&(c?(D(),setTimeout(L)):k.current.update())}),[c,f,E.labels,E.datasets]),(0,o.useEffect)((function(){return L(),function(){return D()}}),[]),a().createElement("canvas",Object.assign({ref:w,role:"img",height:n,width:l,onClick:function(t){_&&_(t);var e=k.current;e&&(m&&m(e.getElementsAtEventForMode(t.nativeEvent,"dataset",{intersect:!0},!1),t),b&&b(e.getElementsAtEventForMode(t.nativeEvent,"nearest",{intersect:!0},!1),t),x&&x(e.getElementsAtEventForMode(t.nativeEvent,"index",{intersect:!0},!1),t))}},v),y)}var ba=(0,o.forwardRef)(ma);function xa(t){return(0,o.forwardRef)((function(e,i){return a().createElement(ba,Object.assign({},e,{ref:i,type:t}))}))}xa("line"),xa("bar"),xa("radar"),xa("doughnut");var ya=xa("polarArea");xa("bubble"),xa("pie"),xa("scatter");const _a=()=>(0,t.createElement)("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M3.83366 3.3335H17.167C18.0837 3.3335 18.8337 4.0835 18.8337 5.00016V15.0002C18.8337 15.9168 18.0837 16.6668 17.167 16.6668H3.83366C2.91699 16.6668 2.16699 15.9168 2.16699 15.0002V5.00016C2.16699 4.0835 2.91699 3.3335 3.83366 3.3335Z",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.createElement)("path",{d:"M18.8337 5L10.5003 10.8333L2.16699 5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),va=()=>(0,t.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M11.9346 9.5563H13.9757H14.5576L14.47 10.1315L14.0644 12.7964L13.9998 13.2212H13.5701H11.9334V18.5601C15.7868 17.6766 18.6668 14.2059 18.6668 10.0563C18.6668 5.23582 14.784 1.33356 10.0014 1.3335L11.9346 9.5563ZM11.9346 9.5563V8.32631C11.9346 8.03337 12.0068 7.8056 12.1337 7.65767C12.2486 7.52389 12.4684 7.38503 12.9274 7.38503H14.0834H14.5834V6.88503V4.61657V4.19505L14.168 4.12377L14.0834 4.61657L14.1679 4.12375L14.1678 4.12373L14.1675 4.12368L14.1666 4.12353L14.1637 4.12304L14.1534 4.12132L14.1157 4.11516C14.0832 4.10994 14.0363 4.1026 13.9771 4.09385C13.8589 4.07635 13.6912 4.05314 13.4914 4.02996C13.094 3.98384 12.56 3.93669 12.0315 3.93669C10.883 3.93669 9.87843 4.28879 9.16067 5.01132C8.44276 5.734 8.06919 6.7694 8.06919 8.02385V9.55745H6.24115H5.74115V10.0574V12.7223V13.2223H6.24115H8.0669V18.5612C4.21356 17.6778 1.3335 14.207 1.3335 10.0574C1.3335 5.23596 5.21624 1.33464 10.0013 1.3335L11.9346 9.5563Z",fill:"white",stroke:"white"})),wa=()=>(0,t.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},(0,t.createElement)("path",{d:"M3.5901 11.9296L3.58928 12.1136C3.58991 12.1136 3.59053 12.1136 3.59116 12.1136L3.59303 12.1136L3.59249 11.934C3.59169 11.9325 3.5909 11.9311 3.5901 11.9296ZM3.5901 11.9296C3.53598 11.828 3.48715 11.7233 3.44389 11.616L3.5912 11.6853L3.5901 11.9296ZM6.59245 16.8966H6.5923C5.30933 16.897 4.0439 16.6556 2.86038 16.1911C4.25955 15.9944 5.58943 15.4315 6.71109 14.5506L7.81648 13.6824L6.41112 13.6574C5.73068 13.6454 5.07106 13.4208 4.52464 13.0151C4.19179 12.768 3.9111 12.4612 3.69542 12.1127C4.04014 12.1055 4.38278 12.0555 4.71546 11.9639L4.68242 10.9919C3.94479 10.8417 3.28165 10.4414 2.80507 9.85876C2.48597 9.46861 2.26362 9.01271 2.15125 8.52806C2.5077 8.63592 2.87784 8.69746 3.25256 8.71019L5.00528 8.76974L3.54748 7.79486C2.85724 7.33326 2.36854 6.62626 2.18064 5.81743C2.04836 5.24805 2.07213 4.65824 2.24295 4.10824C3.13053 5.05234 4.17689 5.83656 5.3364 6.42411C6.73469 7.13266 8.2663 7.53937 9.83189 7.61788L10.4942 7.65109L10.3439 7.00519C10.1811 6.30558 10.2536 5.57181 10.5501 4.91754C10.8465 4.26328 11.3505 3.72503 11.9838 3.38617C12.6172 3.04731 13.3446 2.92676 14.0534 3.04318C14.7622 3.1596 15.4128 3.50649 15.9045 4.03013L16.0933 4.23122L16.3641 4.17875C16.7226 4.10929 17.0752 4.01545 17.4196 3.89815C17.2209 4.10336 16.9947 4.28325 16.7458 4.43204L17.0622 5.35761C17.2653 5.33312 17.4672 5.301 17.6675 5.26135C17.4553 5.45828 17.231 5.6425 16.9956 5.81286L16.7777 5.97058L16.7893 6.23929C16.7956 6.3872 16.7957 6.53915 16.7957 6.70142C16.7957 11.4488 13.1777 16.8966 6.59245 16.8966Z",fill:"white",stroke:"white"})),ka=()=>(0,t.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},(0,t.createElement)("path",{d:"M6.49735 16.6808H6.99735V16.1808V7.90214V7.40214H6.49735H3.7462H3.2462V7.90214V16.1808V16.6808H3.7462H6.49735ZM7.17839 5.3412H7.1785L7.17828 5.33063C7.16719 4.80625 6.97258 4.31885 6.60396 3.96221C6.23442 3.60467 5.72404 3.4112 5.14068 3.4112C4.55852 3.4112 4.04142 3.60404 3.66585 3.95822C3.28935 4.31328 3.0835 4.80457 3.0835 5.3412C3.0835 6.42436 3.91629 7.2712 5.10402 7.2712H5.12235C5.71482 7.2712 6.2329 7.07318 6.6061 6.71528C6.97901 6.35765 7.17839 5.8673 7.17839 5.3412ZM10.7461 16.6808H11.2461V16.1808V11.5574C11.2461 11.3126 11.2677 11.1541 11.2995 11.0778L11.2995 11.0778L11.3018 11.0721C11.4523 10.6972 11.7596 10.3798 12.2494 10.3798C12.6 10.3798 12.7852 10.502 12.9062 10.6797C13.049 10.8895 13.1428 11.2405 13.1428 11.7521V16.1808V16.6808H13.6428H16.3939H16.8939V16.1808V11.4325C16.8939 10.0746 16.531 9.008 15.857 8.27658C15.1792 7.54113 14.2434 7.2062 13.2268 7.2062C12.3977 7.2062 11.7695 7.43637 11.2921 7.76668C11.2765 7.77741 11.2612 7.78822 11.2461 7.79912V7.40214H10.7461H7.9961H7.47349L7.49659 7.92424C7.5131 8.29748 7.51331 10.349 7.50899 12.3317C7.50684 13.3176 7.50362 14.2793 7.50094 14.9946L7.49751 15.8548L7.49648 16.0941L7.4962 16.157L7.49613 16.1731L7.49611 16.1771L7.49611 16.1782L7.49611 16.1784L7.9961 16.1808L7.4961 16.1785L7.4938 16.6808H7.9961H10.7461ZM1.3335 2.14662C1.3335 1.70916 1.70049 1.3335 2.17985 1.3335H17.8205C18.2998 1.3335 18.6668 1.70916 18.6668 2.14662V17.8537C18.6668 18.2912 18.2998 18.6668 17.8205 18.6668H2.17985C1.70049 18.6668 1.3335 18.2912 1.3335 17.8537V2.14662Z",fill:"white",stroke:"white"})),Ca=()=>(0,t.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},(0,t.createElement)("mask",{id:"path-1-inside-1",fill:"white"},(0,t.createElement)("path",{d:"M7.89977 10C7.64763 10.0003 7.40591 10.1006 7.22762 10.2789C7.04933 10.4572 6.94903 10.6989 6.94873 10.951C6.94873 11.477 7.37498 11.9135 7.89977 11.9032C8.14644 11.8947 8.38015 11.7907 8.55162 11.6131C8.72309 11.4356 8.81893 11.1984 8.81893 10.9516C8.81893 10.7048 8.72309 10.4676 8.55162 10.2901C8.38015 10.1126 8.14644 10.0086 7.89977 10ZM10.0115 14.1789C10.3725 14.1789 11.6191 14.1353 12.2757 13.4787C12.3183 13.4303 12.3417 13.3679 12.3417 13.3034C12.3417 13.2389 12.3183 13.1766 12.2757 13.1281C12.253 13.1046 12.2257 13.086 12.1956 13.0732C12.1655 13.0604 12.1331 13.0539 12.1004 13.0539C12.0677 13.0539 12.0353 13.0604 12.0052 13.0732C11.9751 13.086 11.9478 13.1046 11.9251 13.1281C11.5206 13.5441 10.6349 13.6861 10.0115 13.6861C9.38706 13.6861 8.51279 13.5441 8.09686 13.1281C8.0741 13.1046 8.04686 13.086 8.01674 13.0732C7.98662 13.0604 7.95425 13.0539 7.92154 13.0539C7.88884 13.0539 7.85646 13.0604 7.82635 13.0732C7.79623 13.086 7.76899 13.1046 7.74623 13.1281C7.72274 13.1509 7.70406 13.1781 7.6913 13.2082C7.67854 13.2384 7.67197 13.2707 7.67197 13.3034C7.67197 13.3361 7.67854 13.3685 7.6913 13.3986C7.70406 13.4287 7.72274 13.456 7.74623 13.4787C8.39248 14.1239 9.63915 14.1777 10.0115 14.1777V14.1789ZM11.1482 10.9625C11.1482 11.4873 11.5756 11.9135 12.1004 11.9135C12.6252 11.9135 13.0514 11.477 13.0514 10.9625C13.0394 10.7183 12.934 10.4881 12.757 10.3196C12.5799 10.151 12.3448 10.057 12.1004 10.057C11.8559 10.057 11.6209 10.151 11.4438 10.3196C11.2668 10.4881 11.1613 10.7183 11.1494 10.9625H11.1482Z"})),(0,t.createElement)("path",{d:"M7.89977 10C7.64763 10.0003 7.40591 10.1006 7.22762 10.2789C7.04933 10.4572 6.94903 10.6989 6.94873 10.951C6.94873 11.477 7.37498 11.9135 7.89977 11.9032C8.14644 11.8947 8.38015 11.7907 8.55162 11.6131C8.72309 11.4356 8.81893 11.1984 8.81893 10.9516C8.81893 10.7048 8.72309 10.4676 8.55162 10.2901C8.38015 10.1126 8.14644 10.0086 7.89977 10ZM10.0115 14.1789C10.3725 14.1789 11.6191 14.1353 12.2757 13.4787C12.3183 13.4303 12.3417 13.3679 12.3417 13.3034C12.3417 13.2389 12.3183 13.1766 12.2757 13.1281C12.253 13.1046 12.2257 13.086 12.1956 13.0732C12.1655 13.0604 12.1331 13.0539 12.1004 13.0539C12.0677 13.0539 12.0353 13.0604 12.0052 13.0732C11.9751 13.086 11.9478 13.1046 11.9251 13.1281C11.5206 13.5441 10.6349 13.6861 10.0115 13.6861C9.38706 13.6861 8.51279 13.5441 8.09686 13.1281C8.0741 13.1046 8.04686 13.086 8.01674 13.0732C7.98662 13.0604 7.95425 13.0539 7.92154 13.0539C7.88884 13.0539 7.85646 13.0604 7.82635 13.0732C7.79623 13.086 7.76899 13.1046 7.74623 13.1281C7.72274 13.1509 7.70406 13.1781 7.6913 13.2082C7.67854 13.2384 7.67197 13.2707 7.67197 13.3034C7.67197 13.3361 7.67854 13.3685 7.6913 13.3986C7.70406 13.4287 7.72274 13.456 7.74623 13.4787C8.39248 14.1239 9.63915 14.1777 10.0115 14.1777V14.1789ZM11.1482 10.9625C11.1482 11.4873 11.5756 11.9135 12.1004 11.9135C12.6252 11.9135 13.0514 11.477 13.0514 10.9625C13.0394 10.7183 12.934 10.4881 12.757 10.3196C12.5799 10.151 12.3448 10.057 12.1004 10.057C11.8559 10.057 11.6209 10.151 11.4438 10.3196C11.2668 10.4881 11.1613 10.7183 11.1494 10.9625H11.1482Z",fill:"white"}),(0,t.createElement)("path",{d:"M7.89977 10L7.93446 9.0006L7.91652 8.99998L7.89857 9L7.89977 10ZM6.94873 10.951L5.94873 10.9498V10.951H6.94873ZM7.89977 11.9032L7.91942 12.903L7.92694 12.9029L7.93446 12.9026L7.89977 11.9032ZM10.0115 14.1789H9.01154V15.1789H10.0115V14.1789ZM12.2757 13.4787L12.9828 14.1859L13.0059 14.1628L13.0274 14.1382L12.2757 13.4787ZM12.3417 13.3034H11.3417H12.3417ZM12.2757 13.1281L13.0274 12.4686L13.0112 12.4501L12.994 12.4324L12.2757 13.1281ZM12.1004 13.0539V14.0539V13.0539ZM11.9251 13.1281L12.642 13.8253L12.6434 13.8238L11.9251 13.1281ZM8.09686 13.1281L7.37855 13.8238L7.3841 13.8296L7.38975 13.8352L8.09686 13.1281ZM7.92154 13.0539V14.0539V13.0539ZM7.74623 13.1281L8.44195 13.8464L8.45343 13.8353L8.46454 13.8238L7.74623 13.1281ZM7.74623 13.4787L8.45271 12.771L8.44737 12.7657L8.44195 12.7604L7.74623 13.4787ZM10.0115 14.1777H11.0115V13.1777H10.0115V14.1777ZM11.1482 10.9625V9.9625H10.1482V10.9625H11.1482ZM13.0514 10.9625H14.0514V10.938L14.0502 10.9135L13.0514 10.9625ZM11.1494 10.9625V11.9625H12.1015L12.1482 11.0115L11.1494 10.9625ZM7.89857 9C7.38163 9.00062 6.88604 9.20625 6.52051 9.57178L7.93473 10.986C7.92577 10.9949 7.91364 11 7.90097 11L7.89857 9ZM6.52051 9.57178C6.15498 9.93731 5.94935 10.4329 5.94873 10.9498L7.94873 10.9522C7.94871 10.9649 7.94368 10.977 7.93473 10.986L6.52051 9.57178ZM5.94873 10.951C5.94873 12.0102 6.80835 12.9249 7.91942 12.903L7.88013 10.9034C7.8917 10.9032 7.90483 10.9057 7.91643 10.9105C7.92713 10.915 7.93376 10.9203 7.93748 10.9241C7.94409 10.9307 7.94873 10.9405 7.94873 10.951H5.94873ZM7.93446 12.9026C8.44018 12.8851 8.91933 12.6718 9.27089 12.3079L7.83236 10.9184C7.84097 10.9095 7.8527 10.9043 7.86509 10.9038L7.93446 12.9026ZM9.27089 12.3079C9.62244 11.9439 9.81893 11.4576 9.81893 10.9516H7.81893C7.81893 10.9392 7.82375 10.9273 7.83236 10.9184L9.27089 12.3079ZM9.81893 10.9516C9.81893 10.4456 9.62244 9.95933 9.27089 9.59536L7.83236 10.9848C7.82375 10.9759 7.81893 10.964 7.81893 10.9516H9.81893ZM9.27089 9.59536C8.91933 9.23139 8.44018 9.01815 7.93446 9.0006L7.86509 10.9994C7.8527 10.999 7.84097 10.9937 7.83236 10.9848L9.27089 9.59536ZM10.0115 15.1789C10.2259 15.1789 10.7052 15.1666 11.24 15.0533C11.7529 14.9447 12.4531 14.7156 12.9828 14.1859L11.5686 12.7716C11.4417 12.8985 11.1903 13.0195 10.8255 13.0967C10.4826 13.1694 10.1581 13.1789 10.0115 13.1789V15.1789ZM13.0274 14.1382C13.23 13.9073 13.3417 13.6106 13.3417 13.3034H11.3417C11.3417 13.1253 11.4065 12.9532 11.524 12.8193L13.0274 14.1382ZM13.3417 13.3034C13.3417 12.9963 13.23 12.6996 13.0274 12.4686L11.524 13.7876C11.4065 13.6537 11.3417 13.4816 11.3417 13.3034H13.3417ZM12.994 12.4324C12.878 12.3126 12.7391 12.2174 12.5856 12.1524L11.8055 13.994C11.7123 13.9545 11.6279 13.8966 11.5574 13.8238L12.994 12.4324ZM12.5856 12.1524C12.4321 12.0874 12.2671 12.0539 12.1004 12.0539V14.0539C11.9991 14.0539 11.8988 14.0335 11.8055 13.994L12.5856 12.1524ZM12.1004 12.0539C11.9337 12.0539 11.7687 12.0874 11.6152 12.1524L12.3952 13.994C12.302 14.0335 12.2017 14.0539 12.1004 14.0539V12.0539ZM11.6152 12.1524C11.4617 12.2174 11.3228 12.3126 11.2068 12.4324L12.6434 13.8238C12.5729 13.8966 12.4885 13.9545 12.3952 13.994L11.6152 12.1524ZM11.2082 12.431C11.2114 12.4277 11.1874 12.4523 11.1105 12.4892C11.0359 12.525 10.9346 12.5613 10.8078 12.593C10.5509 12.6572 10.2569 12.6861 10.0115 12.6861V14.6861C10.3895 14.6861 10.85 14.644 11.293 14.5332C11.7096 14.4291 12.2474 14.2311 12.642 13.8253L11.2082 12.431ZM10.0115 12.6861C9.76594 12.6861 9.47477 12.6573 9.21947 12.5932C8.94106 12.5233 8.82446 12.4415 8.80396 12.421L7.38975 13.8352C7.78519 14.2307 8.31369 14.4279 8.73252 14.533C9.17447 14.644 9.63267 14.6861 10.0115 14.6861V12.6861ZM8.81517 12.4324C8.69917 12.3126 8.56029 12.2174 8.40679 12.1524L7.62669 13.994C7.53343 13.9545 7.44904 13.8966 7.37855 13.8238L8.81517 12.4324ZM8.40679 12.1524C8.25329 12.0874 8.08827 12.0539 7.92154 12.0539V14.0539C7.82023 14.0539 7.71996 14.0335 7.62669 13.994L8.40679 12.1524ZM7.92154 12.0539C7.75481 12.0539 7.5898 12.0874 7.4363 12.1524L8.2164 13.994C8.12313 14.0335 8.02286 14.0539 7.92154 14.0539V12.0539ZM7.4363 12.1524C7.2828 12.2174 7.14392 12.3126 7.02792 12.4324L8.46454 13.8238C8.39405 13.8966 8.30966 13.9545 8.2164 13.994L7.4363 12.1524ZM7.05051 12.4098C6.93075 12.5258 6.83553 12.6647 6.7705 12.8182L8.61209 13.5983C8.57258 13.6916 8.51472 13.776 8.44195 13.8464L7.05051 12.4098ZM6.7705 12.8182C6.70547 12.9717 6.67197 13.1367 6.67197 13.3034H8.67197C8.67197 13.4047 8.65161 13.505 8.61209 13.5983L6.7705 12.8182ZM6.67197 13.3034C6.67197 13.4701 6.70547 13.6352 6.7705 13.7887L8.61209 13.0086C8.65161 13.1019 8.67197 13.2021 8.67197 13.3034H6.67197ZM6.7705 13.7887C6.83553 13.9422 6.93075 14.0811 7.05051 14.1971L8.44195 12.7604C8.51472 12.8309 8.57258 12.9153 8.61209 13.0086L6.7705 13.7887ZM7.03975 14.1865C7.56436 14.7102 8.26187 14.9386 8.77199 15.0479C9.30512 15.1622 9.78652 15.1777 10.0115 15.1777V13.1777C9.86417 13.1777 9.53604 13.1663 9.19118 13.0924C8.8233 13.0135 8.57435 12.8924 8.45271 12.771L7.03975 14.1865ZM9.01154 14.1777V14.1789H11.0115V14.1777H9.01154ZM10.1482 10.9625C10.1482 12.0411 11.0249 12.9135 12.1004 12.9135V10.9135C12.1142 10.9135 12.1271 10.9202 12.134 10.9271C12.1374 10.9305 12.1409 10.9353 12.1438 10.9419C12.1469 10.9492 12.1482 10.9568 12.1482 10.9625H10.1482ZM12.1004 12.9135C13.1845 12.9135 14.0514 12.0222 14.0514 10.9625H12.0514C12.0514 10.9399 12.0607 10.9288 12.063 10.9265C12.0648 10.9246 12.0684 10.9216 12.075 10.9188C12.0824 10.9156 12.0917 10.9135 12.1004 10.9135V12.9135ZM14.0502 10.9135C14.0257 10.4129 13.8095 9.94093 13.4465 9.59535L12.0674 11.0438C12.0585 11.0354 12.0532 11.0238 12.0526 11.0115L14.0502 10.9135ZM13.4465 9.59535C13.0836 9.24976 12.6016 9.05701 12.1004 9.05701V11.057C12.0881 11.057 12.0763 11.0523 12.0674 11.0438L13.4465 9.59535ZM12.1004 9.05701C11.5992 9.05701 11.1172 9.24976 10.7543 9.59535L12.1334 11.0438C12.1245 11.0523 12.1127 11.057 12.1004 11.057V9.05701ZM10.7543 9.59535C10.3913 9.94093 10.1751 10.4129 10.1506 10.9135L12.1482 11.0115C12.1476 11.0238 12.1423 11.0354 12.1334 11.0438L10.7543 9.59535ZM11.1494 9.9625H11.1482V11.9625H11.1494V9.9625Z",fill:"white",mask:"url(#path-1-inside-1)"}),(0,t.createElement)("path",{d:"M19.1668 10.0002C19.1668 12.4313 18.2011 14.7629 16.482 16.482C14.7629 18.2011 12.4313 19.1668 10.0002 19.1668C7.56901 19.1668 5.23743 18.2011 3.51835 16.482C1.79927 14.7629 0.833496 12.4313 0.833496 10.0002C0.833496 7.56901 1.79927 5.23743 3.51835 3.51835C5.23743 1.79927 7.56901 0.833496 10.0002 0.833496C12.4313 0.833496 14.7629 1.79927 16.482 3.51835C18.2011 5.23743 19.1668 7.56901 19.1668 10.0002ZM14.7806 8.66527C14.4196 8.66527 14.0908 8.80735 13.8502 9.03766C12.9323 8.3811 11.6731 7.95485 10.274 7.89985L10.8859 5.03412L12.8773 5.46037C12.8861 5.64632 12.9492 5.82561 13.0589 5.97602C13.1686 6.12643 13.32 6.24134 13.4943 6.30652C13.6687 6.3717 13.8584 6.38427 14.0398 6.34269C14.2213 6.3011 14.3865 6.20718 14.5151 6.07256C14.6437 5.93795 14.7299 5.76856 14.7631 5.5854C14.7963 5.40224 14.7751 5.21335 14.702 5.04216C14.6288 4.87097 14.5071 4.72499 14.3518 4.62234C14.1965 4.51968 14.0145 4.46485 13.8284 4.46464C13.6503 4.46526 13.476 4.51586 13.3253 4.61066C13.1746 4.70546 13.0535 4.84067 12.9759 5.00089L10.7553 4.5311C10.7254 4.52466 10.6945 4.52418 10.6644 4.52968C10.6343 4.53519 10.6056 4.54657 10.58 4.56318C10.5532 4.57989 10.5305 4.60232 10.5134 4.62888C10.4964 4.65543 10.4854 4.68543 10.4814 4.71672L9.80308 7.91131C8.38225 7.95485 7.1012 8.3811 6.17079 9.04797C5.93016 8.81881 5.60245 8.67672 5.24266 8.67672C4.93753 8.67627 4.64149 8.78055 4.404 8.97213C4.16651 9.16371 4.00196 9.43099 3.93784 9.72931C3.87373 10.0276 3.91393 10.3389 4.05173 10.6112C4.18953 10.8834 4.41658 11.1001 4.69495 11.2251C4.67204 11.3568 4.66173 11.4886 4.66173 11.6295C4.66173 13.6863 7.05766 15.3604 10.0116 15.3604C12.9644 15.3604 15.3604 13.6978 15.3604 11.6295C15.3604 11.4989 15.3489 11.3568 15.3271 11.2251C15.7866 11.0177 16.1155 10.5467 16.1155 10.0002C16.1155 9.25537 15.5139 8.66527 14.7806 8.66527Z",fill:"white"})),Ma=function(e){let{children:i,setModalStatus:s,className:n}=e;return(0,t.createElement)("div",{className:`wheeloflife-modal ${n}`},(0,t.createElement)("div",{className:"wheeloflife-modal-container"},(0,t.createElement)("button",{type:"button",className:"modal-close-btn",onClick:()=>s(!1)},(0,t.createElement)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M13 1L1 13",stroke:"#A3AABF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.createElement)("path",{d:"M1 1L13 13",stroke:"#A3AABF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),i))},Sa=window.wp.i18n;var Ea=i(8901),La=i.n(Ea);const Da=function(e){var i,s,o,a;let{setModalStatus:r,getWheelReport:l,reportLink:h,reportTitle:c}=e;const[d,u]=(0,t.useState)(!1),[f,p]=(0,t.useState)({}),[g,m]=(0,t.useState)(null),[b,x]=(0,t.useState)(""),[y,_]=(0,t.useState)("");return(0,t.useEffect)((()=>{let t=new FormData;t.append("action","getSocialShare"),t.append("security",wolVariablesFrontend.ajax_nonce),n()({url:wolVariablesFrontend.ajax_url,method:"POST",body:t}).then((t=>{!0===t.success&&""!=t.data&&p(JSON.parse(t.data))})),l(),La().options.positionClass="toast-bottom-full-width",La().options.timeOut="5000"}),[]),(0,t.useEffect)((()=>{m({facebookShare:`https://www.facebook.com/sharer.php?u=${h}`,twitterShare:`https://twitter.com/intent/tweet?text=${c} ${h}`,linkedInShare:`https://www.linkedin.com/shareArticle?mini=true&url=${h}&title=${c}`,redditShare:`http://www.reddit.com/submit?url=${h}&title=${c}`})}),[h,c]),(0,t.createElement)(t.Fragment,null,h&&g&&f&&Object.keys(f)?.length>0&&(f.email||f.facebook||f.twitter||f.linkedIn||f.reddit)&&(0,t.createElement)("div",{className:"wheel-widget-inner"},f.email&&(0,t.createElement)("div",{className:"wheel-widget"},(0,t.createElement)("h2",{className:"widget-title"},(0,Sa.__)("Get the report","wheel-of-life")),(0,t.createElement)("div",{className:"widget-content"},(0,t.createElement)("a",{type:"button",className:"wheeloflife-share-btn",onClick:()=>{u(!0),"function"==typeof r&&r(!0),!h&&l()}},(0,t.createElement)("i",null,(0,t.createElement)(_a,null)),(0,Sa.__)("Email My Wheel","wheel-of-life")))),(f.facebook||f.twitter||f.linkedIn||f.reddit)&&(0,t.createElement)("div",{className:"wheel-widget"},(0,t.createElement)("h2",{className:"widget-title"},(0,Sa.__)("Share the report","wheel-of-life")),(0,t.createElement)("div",{className:"widget-content"},f.facebook&&(0,t.createElement)("a",{type:"button",className:"wheeloflife-share-btn is-facebook",href:null!==(i=g.facebookShare)&&void 0!==i?i:"#",rel:"nofollow noopener",target:"_blank"},(0,t.createElement)("i",null,(0,t.createElement)(va,null))),f.twitter&&(0,t.createElement)("a",{type:"button",className:"wheeloflife-share-btn is-twitter",href:null!==(s=g.twitterShare)&&void 0!==s?s:"#",rel:"nofollow noopener",target:"_blank"},(0,t.createElement)("i",null,(0,t.createElement)(wa,null))),f.linkedIn&&(0,t.createElement)("a",{type:"button",className:"wheeloflife-share-btn is-linkedin",href:null!==(o=g.linkedInShare)&&void 0!==o?o:"#",rel:"nofollow noopener",target:"_blank"},(0,t.createElement)("i",null,(0,t.createElement)(ka,null))),f.reddit&&(0,t.createElement)("a",{type:"button",className:"wheeloflife-share-btn is-reddit",href:null!==(a=g.redditShare)&&void 0!==a?a:"#",rel:"nofollow noopener",target:"_blank"},(0,t.createElement)("i",null,(0,t.createElement)(Ca,null)))))),d&&(0,t.createElement)(Ma,{setModalStatus:u,className:"wheeloflife-share-modal"},(0,t.createElement)("div",{className:"wheeloflife-modal-header"},(0,t.createElement)("h2",{className:"wheeloflife-modal-title"},(0,Sa.__)("Email my Wheel","wheel-of-life"))),(0,t.createElement)("div",{className:"wheeloflife-modal-body"},(0,t.createElement)("p",null,(0,Sa.__)("Please enter the email address where you would like to send your assessment result:","wheel-of-life")),(0,t.createElement)("p",null,(0,t.createElement)("input",{value:y,type:"text",placeholder:(0,Sa.__)("Enter your full name","wheel-of-life"),onChange:t=>{_(t.target.value)}})),(0,t.createElement)("p",null,(0,t.createElement)("input",{id:"wheeloflife-send-to-email",type:"email",placeholder:(0,Sa.__)("Enter your email","wheel-of-life"),onChange:t=>x(t.target.value)}))),(0,t.createElement)("div",{className:"wheeloflife-modal-footer"},(0,t.createElement)("button",{type:"button",className:"wheeloflife-btn is-tertiary is-small",onClick:()=>u(!1)},(0,Sa.__)("Cancel","wheel-of-life")),(0,t.createElement)("button",{type:"button",className:"wheeloflife-btn is-primary is-small",onClick:()=>(()=>{let t=null!=b?b:jQuery("input#wheeloflife-send-to-email").val();if(""==t)return void alert((0,Sa.__)("No email supplied. Please enter valid email.","wheel-of-life"));let e=null!=h?h:"",i=new FormData;i.append("action","sendMyWheelEmail"),i.append("security",wolVariablesFrontend.ajax_nonce),i.append("reportLink",e),i.append("toEmail",t),i.append("fullName",y),n()({url:wolVariablesFrontend.ajax_url,method:"POST",body:i}).then((t=>{!0===t.success?La().success(t.data):La().error(t.data)}))})(),disabled:y.length<=0||!b.match(/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/g)},(0,Sa.__)("Send","wheel-of-life")))))},Pa=()=>(0,t.createElement)("svg",{width:"182",height:"316",viewBox:"0 0 182 316",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M174.585 173.644L38.71 309.514C30.0667 318.162 16.0531 318.162 7.41394 309.514C-1.22587 300.875 -1.22587 286.862 7.41394 278.223L127.643 157.998L7.41743 37.7771C-1.22238 29.1338 -1.22238 15.1223 7.41743 6.48247C16.0572 -2.16082 30.0702 -2.16082 38.7135 6.48247L174.589 142.355C178.909 146.677 181.066 152.336 181.066 157.997C181.066 163.661 178.904 169.324 174.585 173.644Z",fill:"black"})),Oa=window.wp.hooks,Ta=window.wp.url,Aa={id:"htmlLegend",afterUpdate(t,e,i){const s=((t,e)=>{const i=document.getElementById(e);let s=i.querySelector("ul");return s||(s=document.createElement("ul"),s.style.display="flex",s.style.flexWrap="wrap",s.style.margin=0,s.style.padding=0,i.appendChild(s)),s})(0,i.containerID);for(;s.firstChild;)s.firstChild.remove();t.options.plugins.legend.labels.generateLabels(t).forEach((e=>{const i=document.createElement("li");i.style.alignItems="flex-start",i.style.cursor="pointer",i.style.display="flex",i.style.flexDirection="row",i.style.marginLeft="10px",i.style.paddingLeft="30px",i.style.position="relative",i.onclick=()=>{const{type:i}=t.config;"pie"===i||"doughnut"===i?t.toggleDataVisibility(e.index):t.setDatasetVisibility(e.datasetIndex,!t.isDatasetVisible(e.datasetIndex)),t.update()};const n=document.createElement("span");n.style.background=e.fillStyle,n.style.borderColor=e.strokeStyle,n.style.borderWidth=e.lineWidth+"px",n.style.display="inline-block",n.style.height="20px",n.style.marginRight="10px",n.style.width="20px",n.style.position="absolute",n.style.inset="5px 0 0",n.style.borderRadius="50%";const o=document.createElement("p");o.style.color=e.fontColor,o.style.margin=0,o.style.padding=0,o.style.textAlign="left",o.style.textDecoration=e.hidden?"line-through":"";const a=document.createTextNode(e.text);o.appendChild(a),i.appendChild(n),i.appendChild(o),s.appendChild(i)}))}},za=e=>{let{data:i,options:s}=e;const n={...s};return s.plugins.htmlLegend={containerID:"wheeloflife-legend-container"},s.plugins.legend={display:!1},(0,t.createElement)("div",{className:"wheeloflife_polar_chart_wrapper"},(0,t.createElement)("div",{id:"wheeloflife-legend-container"}),(0,t.createElement)(ya,{data:i,options:n,plugins:[Aa]}))},Ra=function(e){let{postMeta:i,wheelCTA:s,postBlocks:o,setModalStatus:a,wheelId:r}=e;const[l,c]=(0,t.useState)(1),[d,u]=(0,t.useState)(0),[f,p]=(0,t.useState)({}),[g,m]=(0,t.useState)([]),[b,x]=(0,t.useState)([]),[y,_]=(0,t.useState)(1),[v,w]=(0,t.useState)([]),[k,C]=(0,t.useState)([]),[M,S]=(0,t.useState)(null),[E,L]=(0,t.useState)(null),[D,P]=(0,t.useState)(null),[O,T]=(0,t.useState)(!1);(0,t.useEffect)((()=>{s?.page?.value&&n()({path:(0,Ta.addQueryArgs)(`wp/v2/pages/${s.page.value}`),method:"GET"}).then((t=>{T(t.link)}))}),[]);var A=i.wheel_meta_range_max,z=i.wheel_meta_range_min,R=i.wheel_meta_input_type,I=i.wheel_chart_type?i.wheel_chart_type:"polar-chart";(0,t.useEffect)((()=>{let t=new FormData;t.append("action","getCTA"),t.append("mode","front"),n()({url:wolVariablesFrontend.ajax_url,method:"POST",body:t}).then((t=>{!0===t.success&&""!=t.data&&C(JSON.parse(t.data))}))}),[]);var F={responsive:!0,scales:{r:{ticks:{display:!1}}},borderWidth:"transparent",plugins:{legend:{position:"top",labels:{usePointStyle:!0,pointStyle:"circle",boxWidth:12,color:"#262933",font:{size:16,family:"Rubik"}},onClick:function(t,e,i){let s=o.find((t=>"wheeloflife/add-wheels"===t.blockName)).innerBlocks.map((t=>({label:t.attrs.label?.replace("&","&")?.replace("&","&"),link:t.attrs.link}))).find((t=>t.label===e.text)).link;s&&window.open(s,"_blank")},onHover:function(t){t.native.target.style.cursor="pointer"}}}};const V=(t,e,i)=>()=>{f[e]=t,p(f),u(d+1),c(l+1),g.push(e),b.push(t),v.push(i),m(g),x(b),w(v)};var N={labels:g,datasets:[{data:b,backgroundColor:v}]};const B=()=>{!function(t,e){let i=new FormData;i.append("chartData",JSON.stringify(t)),i.append("chartOptions",JSON.stringify(e)),i.append("wheelId",r),i.append("chartType",I),i.append("action","saveWheelReport"),i.append("security",wolVariablesFrontend.ajax_nonce),n()({url:wolVariablesFrontend.ajax_url,method:"POST",body:i}).then((t=>{!0===t.success&&(S(t.data.link),L(t.data.title),P(t.data.id))}))}((0,Oa.applyFilters)("wheeloflife_chart_data",{labels:g,datasets:[{data:b,backgroundColor:v}]}),(0,Oa.applyFilters)("wheeloflife_chart_options",F))};return(0,t.createElement)("form",{className:"wheeloflife-wheel-form"},""!=o&&null!=typeof o&&o.map((function(e,n){if("wheeloflife/add-wheels"===e.blockName){var o,r="",p="",m="#1DB53F",x=(0,Sa.__)("Skip this area - it's not important to me","wheel-of-life"),w="";if(null!=e.innerBlocks[d]){let t=e.innerBlocks[d].attrs;r=t.label?.replace("&","&")?.replace("&","&"),p=t.desc,m=t?.lengendColor?t?.lengendColor:m,o=t.isRequired,x=t?.skipText?t?.skipText:x,w=t?.link?t?.link:w}var C=e.innerBlocks.length;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"wheeloflife-title-wrap"},(0,t.createElement)("h2",{className:"wheeloflife-title"},w?(0,t.createElement)("a",{href:w,target:"_blank"},r):r),(0,t.createElement)("p",{dangerouslySetInnerHTML:{__html:p}})),(0,t.createElement)("div",{className:"wheeloflife-rating"},l==d+1&&l<=C&&(0,t.createElement)(h,{setValue:f.label,label:r,handleFormValue:V,setRangeValue:_,rangeValue:y,options:{maxValue:A,minValue:z,name:r,type:R,bgColor:m}})),l<=C&&x&&!o&&(0,t.createElement)("button",{type:"button",className:"wheeloflife-btn is-tertiary is-skip-btn p-0",onClick:()=>{c(l+1),u(d+1)}},x),(0,t.createElement)("div",{className:"wheeloflife-life-wheel"},(0,t.createElement)("div",{className:"wheeloflife-life-wheel-wrapper"},(0,t.createElement)("div",{className:"life-wheel"},(0,t.createElement)(t.Fragment,null,I&&"polar-chart"===I&&(0,t.createElement)(za,{data:N,options:F}),(0,Oa.applyFilters)("wheeloflife_chart_types",null,i,g,b,v),l>C&&D&&(0,t.createElement)("div",{className:"submission-title",style:{marginTop:"16px"}},(0,Sa.sprintf)((0,Sa.__)("Wheel Submission No: #%d","wheel-of-life"),D)))),l>C&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"wheel-widget-area"},(0,t.createElement)(Da,{setModalStatus:a,reportLink:M,reportTitle:E,getWheelReport:B}),(0,t.createElement)("div",{className:"wheeloflife-btn-wrap"},(0,t.createElement)("a",{type:"button",className:"wheeloflife-btn is-tertiary view-wheel-btn",href:null!=M?M:"#",target:"_blank"},(0,Sa.__)("View My Wheel","wheel-of-life"),(0,t.createElement)(Pa,null)))))),l>C&&(0,t.createElement)(t.Fragment,null,"page-cta"===s?.ctaType&&(0,t.createElement)("div",{className:"wheeloflife-cta-container"},(0,t.createElement)("div",{className:`wheeloflife-cta-wrapper ${"image"===s.customizer.background.background_type&&"has-overlay"}`,style:{background:"image"===s.customizer.background.background_type?"url("+s.customizer.background.background_image.url+") "+100*s.customizer.background.background_image.x+"% "+100*s.customizer.background.background_image.y+"%":"color"===s.customizer.background.background_type?s.customizer.background.backgroundColor.default.color:s.customizer.background.gradient,backgroundSize:"image"===s.customizer.background.background_type&&s.customizer.background.background_size,backgroundAttachment:"image"===s.customizer.background.background_type&&s.customizer.background.background_attachment,padding:s.customizer.padding.top+" "+s.customizer.padding.right+" "+s.customizer.padding.bottom+" "+s.customizer.padding.left,margin:s.customizer.margin.top+" "+s.customizer.margin.right+" "+s.customizer.margin.bottom+" "+s.customizer.margin.left,"--cta-overlay-color":s.customizer.background.overlayColor.default.color},align:"flex-start"===s.customizer.alignment?"left":"flex-end"===s.customizer.alignment?"right":"center"},(0,t.createElement)("h2",{className:"wheeloflife-cta-title",style:{fontSize:s.customizer.fontSize,color:s.customizer.fontColor}},s.title),(0,t.createElement)("div",{className:"wheeloflife-cta-description",style:{fontSize:s.customizer.descFontSize,color:s.customizer.descFontColor},dangerouslySetInnerHTML:{__html:s.description}}),(0,t.createElement)("div",{className:"wheeloflife-cta-btns"},""!==s.btn_label&&""!==O&&(0,t.createElement)("a",{href:O,target:!0===s.openInTab?"_blank":"",rel:"noexternal noopener",className:"wheeloflife-btn primary",style:{fontSize:s.customizer.pbFontSize,color:s.customizer.pbfontColors.pbfontColor,background:s.customizer.pbBgColors.pbBgColor,borderRadius:s.customizer.pbBorderRadius},onMouseOver:t=>{t.target.style.color=s.customizer.pbfontColors.pbfontHoverColor,t.target.style.background=s.customizer.pbBgColors.pbBgHoverColor},onMouseOut:t=>{t.target.style.color=s.customizer.pbfontColors.pbfontColor,t.target.style.background=s.customizer.pbBgColors.pbBgColor}},s.btn_label)))),(!s||"global-cta"===s?.ctaType)&&""!=k.title&&(0,t.createElement)("div",{className:"wheeloflife-cta-container"},(0,t.createElement)("div",{className:`wheeloflife-cta-wrapper ${"image"===k.customizer.background.background_type&&"has-overlay"}`,style:{background:"image"===k.customizer.background.background_type?"url("+k.customizer.background.background_image.url+") "+100*k.customizer.background.background_image.x+"% "+100*k.customizer.background.background_image.y+"%":"color"===k.customizer.background.background_type?k.customizer.background.backgroundColor.default.color:k.customizer.background.gradient,backgroundSize:"image"===k.customizer.background.background_type&&k.customizer.background.background_size,backgroundAttachment:"image"===k.customizer.background.background_type&&k.customizer.background.background_attachment,padding:k.customizer.padding.top+" "+k.customizer.padding.right+" "+k.customizer.padding.bottom+" "+k.customizer.padding.left,margin:k.customizer.margin.top+" "+k.customizer.margin.right+" "+k.customizer.margin.bottom+" "+k.customizer.margin.left,"--cta-overlay-color":k.customizer.background.overlayColor.default.color},align:"flex-start"===k.customizer.alignment?"left":"flex-end"===k.customizer.alignment?"right":"center"},(0,t.createElement)("h2",{className:"wheeloflife-cta-title",style:{fontSize:k.customizer.fontSize,color:k.customizer.fontColor}},k.title),(0,t.createElement)("div",{className:"wheeloflife-cta-description",style:{fontSize:k.customizer.descFontSize,color:k.customizer.descFontColor},dangerouslySetInnerHTML:{__html:k.description}}),(0,t.createElement)("div",{className:"wheeloflife-cta-btns"},""!==k.buttonLabel&&""!==k.buttonLink&&(0,t.createElement)("a",{href:k.buttonLink,target:!0===k.openInTab?"_blank":"",rel:`noexternal noopener ${1==k.setLinkAttrNoFollow&&"nofollow"} ${1==k.setLinkAttrSponser&&"sponsored"}`,className:"wheeloflife-btn primary",style:{fontSize:k.customizer.pbFontSize,color:k.customizer.pbfontColors.pbfontColor,background:k.customizer.pbBgColors.pbBgColor,borderRadius:k.customizer.pbBorderRadius},onMouseOver:t=>{t.target.style.color=k.customizer.pbfontColors.pbfontHoverColor,t.target.style.background=k.customizer.pbBgColors.pbBgHoverColor},onMouseOut:t=>{t.target.style.color=k.customizer.pbfontColors.pbfontColor,t.target.style.background=k.customizer.pbBgColors.pbBgColor},download:1==k.setLinkAttrDownload},k.buttonLabel),""!==k.sbuttonLabel&&""!==k.sbuttonLink&&(0,t.createElement)("a",{href:k.sbuttonLink,target:!0===k.sbopenInTab?"_blank":"",rel:`noexternal noopener ${1==k.sbsetLinkAttrNoFollow&&"nofollow"} ${1==k.sbsetLinkAttrSponser&&"sponsored"}`,className:"wheeloflife-btn secondary",style:{fontSize:k.customizer.sbFontSize,color:k.customizer.sbfontColors.sbfontColor,background:k.customizer.sbBgColors.sbBgColor,borderRadius:k.customizer.sbBorderRadius},onMouseOver:t=>{t.target.style.color=k.customizer.sbfontColors.sbfontHoverColor,t.target.style.background=k.customizer.sbBgColors.sbBgHoverColor},onMouseOut:t=>{t.target.style.color=k.customizer.sbfontColors.sbfontColor,t.target.style.background=k.customizer.sbBgColors.sbBgColor},download:1==k.sbsetLinkAttrDownload},k.sbuttonLabel)))))),"slider"===R&&l<=C&&(0,t.createElement)("div",{className:"wheeloflife-btn-wrap"},(0,t.createElement)("button",{type:"button",className:"wheeloflife-btn is-primary is-small",onClick:()=>{V(y,r,m)(),_(z)}},(0,Sa.__)("Next","wheel-of-life"))))}})))},Ia=function(e){let{wheelId:i,wheelMode:s,btnLabel:o,popupLabel:a,isBlock:r}=e;const[h,c]=(0,t.useState)(!1),[d,u]=(0,t.useState)(!1),[f,p]=(0,t.useState)(""),[g,m]=(0,t.useState)([]),[b,x]=(0,t.useState)([]),[y,_]=(0,t.useState)([]),[v,w]=(0,t.useState)(!1);(0,t.useEffect)((()=>{i&&n()({path:"wp/v2/wheel/"+i,method:"GET"}).then((t=>{p(t.title.rendered),m(t.blocks),x(t.meta),_(t.wheel_CTA),w(t.fimg_url)}))}),[]);const k=(e,s)=>(0,t.createElement)(t.Fragment,null,s?(0,t.createElement)("div",{className:"wolblk-btn-inner"},(0,t.createElement)("button",{type:"button",className:"wheeloflifeblks-button",onClick:()=>u(!0)},a)):(0,t.createElement)("button",{type:"button",className:"wheeloflife-btn is-primary",onClick:()=>u(!0)},a),d&&(0,t.createElement)(Ma,{setModalStatus:u,className:`wheeloflife-assessment-modal ${e}`},(0,t.createElement)("div",{className:"wheeloflife-modal-body"},!h&&(0,t.createElement)(l,{onClick:()=>c(!0),title:f,btnLabel:o,postBlocks:g,featImg:v}),h&&(0,t.createElement)(Ra,{setModalStatus:u,postMeta:b,wheelCTA:y,postBlocks:g,wheelId:i}))));let C="inline"==s?"wheeloflife-wrapper mode-inline":"wheeloflife-wrapper";return(0,t.createElement)("div",{className:C},!i&&(0,Sa.__)("Error: No wheel selected or wheel ID missing!!","wheel-of-life"),"popup"==s&&k("",r),"inline"==s&&(e=>h?(0,t.createElement)(Ra,{postMeta:b,postBlocks:g,wheelCTA:y,setModalStatus:c,wheelId:i}):(0,t.createElement)(l,{onClick:()=>c(!0),title:f,btnLabel:o,postBlocks:g,featImg:v,isBlock:e}))(r),("fullwidth"==s||"full-width"==s)&&k("modal-fullwidth",r))},Fa=e=>{let{wheelId:i,wheelMode:s,btnLabel:n,popupLabel:o,isBlock:a}=e;return(0,t.createElement)("div",{className:"wheeloflife-container"},(0,t.createElement)(Ia,{wheelId:i,wheelMode:s,btnLabel:n,popupLabel:o,isBlock:a}))};function Va(e){let{wheelId:i,wheelMode:s,btnLabel:n,popupLabel:o,isBlock:a}=e;return(0,t.createElement)(Fa,{wheelId:i,wheelMode:s,btnLabel:n,popupLabel:o,isBlock:a})}function Na(e){let{chartData:i,chartOption:s,wheelData:o}=e;var a=o.chartType,r=o.wheelId;const[l,h]=(0,t.useState)([]);(0,t.useEffect)((()=>{r&&n()({path:"wp/v2/wheel/"+r,method:"GET"}).then((t=>{h(t.blocks)}))}),[]);const c=function(t,e,i){let s=l.find((t=>"wheeloflife/add-wheels"===t.blockName)).innerBlocks.map((t=>({label:t.attrs.label?.replace("&","&")?.replace("&","&"),link:t.attrs.link}))).find((t=>t.label===e.text)).link;s&&window.open(s,"_blank")};let d={...s,plugins:{legend:{...s?.plugins?.legend,onClick:c,onHover:function(t){t.native.target.style.cursor="pointer"}}}};var u={responsive:!0,scales:{r:{ticks:{display:!1}}},borderWidth:"transparent",plugins:{legend:{position:"top",labels:{usePointStyle:!0,pointStyle:"circle",boxWidth:12,color:"#262933",font:{size:16,family:"Rubik"}},onClick:c,onHover:function(t){t.native.target.style.cursor="pointer"}}}};let f={...i},p=null!=d?d:u;return p.plugins.htmlLegend={containerID:"wheeloflife-legend-container"},p.plugins.legend={display:!1},(0,t.createElement)(t.Fragment,null,a&&"polar-chart"===a&&(0,t.createElement)("div",{className:"wheeloflife_polar_chart_wrapper"},(0,t.createElement)("div",{id:"wheeloflife-legend-container"}),(0,t.createElement)(ya,{data:f,options:p,plugins:[Aa],width:"400",height:"400"})),(0,Oa.applyFilters)("wheeloflife_submission_chart",null,i,s,a,r),(0,t.createElement)(Da,{setModalStatus:!1,reportLink:o.reportLink,reportTitle:o.reportTitle,getWheelReport:()=>{}}))}document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".wheelOfLifeRootAppSelector").forEach(((e,i)=>{let s=e.dataset.wheelId,n=e.dataset.mode,o=e.dataset.btnLabel,a=e.dataset.popupLbl,r=e.dataset?.isblock||!1;null!==e&&(0,t.render)((0,t.createElement)(Va,{wheelId:s,wheelMode:n,btnLabel:o,popupLabel:a,isBlock:r}),e)}));let e=document.getElementById("submission-chart");if(null!==e){const i=JSON.parse(e.dataset.chartdata),s=JSON.parse(e.dataset.chartoption),n={reportTitle:e.dataset.reporttitle,reportLink:e.dataset.reportlink,chartType:e.dataset.charttype,wheelId:e.dataset.wheelid};(0,t.render)((0,t.createElement)(Na,{chartData:i,chartOption:s,wheelData:n}),e)}}))})(),(wheeloflifeExports=void 0===wheeloflifeExports?{}:wheeloflifeExports).wheelsFrontend=s})(); -
wheel-of-life/trunk/includes/Wheel_Of_Life.php
r2887037 r2919602 20 20 * @var string 21 21 */ 22 public $version = '1.1. 5';22 public $version = '1.1.6'; 23 23 24 24 /** -
wheel-of-life/trunk/languages/wheel-of-life.pot
r2887037 r2919602 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Wheel of Life 1.1. 5\n"5 "Project-Id-Version: Wheel of Life 1.1.6\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wheeloflife\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2023-0 3-26T08:16:20+00:00\n"12 "POT-Creation-Date: 2023-05-31T10:11:09+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.7.1\n" -
wheel-of-life/trunk/readme.txt
r2887037 r2919602 4 4 Tags: survey, coaching, lead, wheel, coaches 5 5 Requires at least: 5.1 6 Tested up to: 6. 16 Tested up to: 6.2 7 7 Requires PHP: 7.0 8 Stable tag: 1.1. 58 Stable tag: 1.1.6 9 9 License: GPLv3 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 96 96 == Changelog == 97 97 98 = 1.1.6 - 31st May, 2023 = 99 * Compatibility Update for WordPress 6.2 100 98 101 = 1.1.5 - 26th March 2023 = 99 102 * Fix: Result not appears after assessment completion -
wheel-of-life/trunk/vendor/autoload.php
r2887037 r2919602 3 3 // autoload.php @generated by Composer 4 4 5 if (PHP_VERSION_ID < 50600) {6 if (!headers_sent()) {7 header('HTTP/1.1 500 Internal Server Error');8 }9 $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;10 if (!ini_get('display_errors')) {11 if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {12 fwrite(STDERR, $err);13 } elseif (!headers_sent()) {14 echo $err;15 }16 }17 trigger_error(18 $err,19 E_USER_ERROR20 );21 }22 23 5 require_once __DIR__ . '/composer/autoload_real.php'; 24 6 25 return ComposerAutoloaderInit 377c01d70952be55122c937b7d267df5::getLoader();7 return ComposerAutoloaderInit190ed122fc4381361abf0c7fb3195757::getLoader(); -
wheel-of-life/trunk/vendor/composer/ClassLoader.php
r2887037 r2919602 43 43 class ClassLoader 44 44 { 45 /** @var \Closure(string):void */46 private static $includeFile;47 48 /** @var ?string */49 45 private $vendorDir; 50 46 51 47 // PSR-4 52 /**53 * @var array[]54 * @psalm-var array<string, array<string, int>>55 */56 48 private $prefixLengthsPsr4 = array(); 57 /**58 * @var array[]59 * @psalm-var array<string, array<int, string>>60 */61 49 private $prefixDirsPsr4 = array(); 62 /**63 * @var array[]64 * @psalm-var array<string, string>65 */66 50 private $fallbackDirsPsr4 = array(); 67 51 68 52 // PSR-0 69 /**70 * @var array[]71 * @psalm-var array<string, array<string, string[]>>72 */73 53 private $prefixesPsr0 = array(); 74 /**75 * @var array[]76 * @psalm-var array<string, string>77 */78 54 private $fallbackDirsPsr0 = array(); 79 55 80 /** @var bool */81 56 private $useIncludePath = false; 82 83 /**84 * @var string[]85 * @psalm-var array<string, string>86 */87 57 private $classMap = array(); 88 89 /** @var bool */90 58 private $classMapAuthoritative = false; 91 92 /**93 * @var bool[]94 * @psalm-var array<string, bool>95 */96 59 private $missingClasses = array(); 97 98 /** @var ?string */99 60 private $apcuPrefix; 100 61 101 /**102 * @var self[]103 */104 62 private static $registeredLoaders = array(); 105 63 106 /**107 * @param ?string $vendorDir108 */109 64 public function __construct($vendorDir = null) 110 65 { 111 66 $this->vendorDir = $vendorDir; 112 self::initializeIncludeClosure(); 113 } 114 115 /** 116 * @return string[] 117 */ 67 } 68 118 69 public function getPrefixes() 119 70 { … … 125 76 } 126 77 127 /**128 * @return array[]129 * @psalm-return array<string, array<int, string>>130 */131 78 public function getPrefixesPsr4() 132 79 { … … 134 81 } 135 82 136 /**137 * @return array[]138 * @psalm-return array<string, string>139 */140 83 public function getFallbackDirs() 141 84 { … … 143 86 } 144 87 145 /**146 * @return array[]147 * @psalm-return array<string, string>148 */149 88 public function getFallbackDirsPsr4() 150 89 { … … 152 91 } 153 92 154 /**155 * @return string[] Array of classname => path156 * @psalm-return array<string, string>157 */158 93 public function getClassMap() 159 94 { … … 162 97 163 98 /** 164 * @param string[] $classMap Class to filename map 165 * @psalm-param array<string, string> $classMap 166 * 167 * @return void 99 * @param array $classMap Class to filename map 168 100 */ 169 101 public function addClassMap(array $classMap) … … 180 112 * appending or prepending to the ones previously set for this prefix. 181 113 * 182 * @param string $prefix The prefix 183 * @param string[]|string $paths The PSR-0 root directories 184 * @param bool $prepend Whether to prepend the directories 185 * 186 * @return void 114 * @param string $prefix The prefix 115 * @param array|string $paths The PSR-0 root directories 116 * @param bool $prepend Whether to prepend the directories 187 117 */ 188 118 public function add($prefix, $paths, $prepend = false) … … 227 157 * appending or prepending to the ones previously set for this namespace. 228 158 * 229 * @param string $prefix The prefix/namespace, with trailing '\\'230 * @param string[]|string $paths The PSR-4 base directories231 * @param bool $prepend Whether to prepend the directories159 * @param string $prefix The prefix/namespace, with trailing '\\' 160 * @param array|string $paths The PSR-4 base directories 161 * @param bool $prepend Whether to prepend the directories 232 162 * 233 163 * @throws \InvalidArgumentException 234 *235 * @return void236 164 */ 237 165 public function addPsr4($prefix, $paths, $prepend = false) … … 277 205 * replacing any others previously set for this prefix. 278 206 * 279 * @param string $prefix The prefix 280 * @param string[]|string $paths The PSR-0 base directories 281 * 282 * @return void 207 * @param string $prefix The prefix 208 * @param array|string $paths The PSR-0 base directories 283 209 */ 284 210 public function set($prefix, $paths) … … 295 221 * replacing any others previously set for this namespace. 296 222 * 297 * @param string $prefix The prefix/namespace, with trailing '\\'298 * @param string[]|string $paths The PSR-4 base directories223 * @param string $prefix The prefix/namespace, with trailing '\\' 224 * @param array|string $paths The PSR-4 base directories 299 225 * 300 226 * @throws \InvalidArgumentException 301 *302 * @return void303 227 */ 304 228 public function setPsr4($prefix, $paths) … … 320 244 * 321 245 * @param bool $useIncludePath 322 *323 * @return void324 246 */ 325 247 public function setUseIncludePath($useIncludePath) … … 344 266 * 345 267 * @param bool $classMapAuthoritative 346 *347 * @return void348 268 */ 349 269 public function setClassMapAuthoritative($classMapAuthoritative) … … 366 286 * 367 287 * @param string|null $apcuPrefix 368 *369 * @return void370 288 */ 371 289 public function setApcuPrefix($apcuPrefix) … … 388 306 * 389 307 * @param bool $prepend Whether to prepend the autoloader or not 390 *391 * @return void392 308 */ 393 309 public function register($prepend = false) … … 409 325 /** 410 326 * Unregisters this instance as an autoloader. 411 *412 * @return void413 327 */ 414 328 public function unregister() … … 430 344 { 431 345 if ($file = $this->findFile($class)) { 432 (self::$includeFile)($file);346 includeFile($file); 433 347 434 348 return true; … … 490 404 } 491 405 492 /**493 * @param string $class494 * @param string $ext495 * @return string|false496 */497 406 private function findFileWithExtension($class, $ext) 498 407 { … … 560 469 return false; 561 470 } 562 563 private static function initializeIncludeClosure(): void564 {565 if (self::$includeFile !== null) {566 return;567 }568 569 /**570 * Scope isolated include.571 *572 * Prevents access to $this/self from included files.573 *574 * @param string $file575 * @return void576 */577 self::$includeFile = static function($file) {578 include $file;579 };580 }581 471 } 472 473 /** 474 * Scope isolated include. 475 * 476 * Prevents access to $this/self from included files. 477 */ 478 function includeFile($file) 479 { 480 include $file; 481 } -
wheel-of-life/trunk/vendor/composer/InstalledVersions.php
r2887037 r2919602 21 21 * See also https://getcomposer.org/doc/07-runtime.md#installed-versions 22 22 * 23 * To require its presence, you can require `composer-runtime-api ^2.0` 24 * 25 * @final 23 * To require it's presence, you can require `composer-runtime-api ^2.0` 26 24 */ 27 25 class InstalledVersions 28 26 { 29 /**30 * @var mixed[]|null31 * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null32 */33 27 private static $installed; 34 35 /**36 * @var bool|null37 */38 28 private static $canGetVendors; 39 40 /**41 * @var array[]42 * @psalm-var array<string, array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>43 */44 29 private static $installedByVendor = array(); 45 30 … … 244 229 /** 245 230 * @return array 246 * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}231 * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string} 247 232 */ 248 233 public static function getRootPackage() … … 258 243 * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect. 259 244 * @return array[] 260 * @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}245 * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>} 261 246 */ 262 247 public static function getRawData() … … 281 266 * 282 267 * @return array[] 283 * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>268 * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>}> 284 269 */ 285 270 public static function getAllRawData() … … 304 289 * @return void 305 290 * 306 * @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $data291 * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>} $data 307 292 */ 308 293 public static function reload($data) … … 314 299 /** 315 300 * @return array[] 316 * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>301 * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>}> 317 302 */ 318 303 private static function getInstalled() -
wheel-of-life/trunk/vendor/composer/autoload_classmap.php
r2887037 r2919602 3 3 // autoload_classmap.php @generated by Composer 4 4 5 $vendorDir = dirname( __DIR__);5 $vendorDir = dirname(dirname(__FILE__)); 6 6 $baseDir = dirname($vendorDir); 7 7 -
wheel-of-life/trunk/vendor/composer/autoload_files.php
r2887037 r2919602 3 3 // autoload_files.php @generated by Composer 4 4 5 $vendorDir = dirname( __DIR__);5 $vendorDir = dirname(dirname(__FILE__)); 6 6 $baseDir = dirname($vendorDir); 7 7 -
wheel-of-life/trunk/vendor/composer/autoload_namespaces.php
r2887037 r2919602 3 3 // autoload_namespaces.php @generated by Composer 4 4 5 $vendorDir = dirname( __DIR__);5 $vendorDir = dirname(dirname(__FILE__)); 6 6 $baseDir = dirname($vendorDir); 7 7 -
wheel-of-life/trunk/vendor/composer/autoload_psr4.php
r2887037 r2919602 3 3 // autoload_psr4.php @generated by Composer 4 4 5 $vendorDir = dirname( __DIR__);5 $vendorDir = dirname(dirname(__FILE__)); 6 6 $baseDir = dirname($vendorDir); 7 7 -
wheel-of-life/trunk/vendor/composer/autoload_real.php
r2887037 r2919602 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 377c01d70952be55122c937b7d267df55 class ComposerAutoloaderInit190ed122fc4381361abf0c7fb3195757 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 377c01d70952be55122c937b7d267df5', 'loadClassLoader'), true, true);26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname( __DIR__));27 spl_autoload_unregister(array('ComposerAutoloaderInit 377c01d70952be55122c937b7d267df5', 'loadClassLoader'));25 spl_autoload_register(array('ComposerAutoloaderInit190ed122fc4381361abf0c7fb3195757', 'loadClassLoader'), true, true); 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); 27 spl_autoload_unregister(array('ComposerAutoloaderInit190ed122fc4381361abf0c7fb3195757', 'loadClassLoader')); 28 28 29 require __DIR__ . '/autoload_static.php'; 30 call_user_func(\Composer\Autoload\ComposerStaticInit377c01d70952be55122c937b7d267df5::getInitializer($loader)); 29 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); 30 if ($useStaticLoader) { 31 require __DIR__ . '/autoload_static.php'; 32 33 call_user_func(\Composer\Autoload\ComposerStaticInit190ed122fc4381361abf0c7fb3195757::getInitializer($loader)); 34 } else { 35 $map = require __DIR__ . '/autoload_namespaces.php'; 36 foreach ($map as $namespace => $path) { 37 $loader->set($namespace, $path); 38 } 39 40 $map = require __DIR__ . '/autoload_psr4.php'; 41 foreach ($map as $namespace => $path) { 42 $loader->setPsr4($namespace, $path); 43 } 44 45 $classMap = require __DIR__ . '/autoload_classmap.php'; 46 if ($classMap) { 47 $loader->addClassMap($classMap); 48 } 49 } 31 50 32 51 $loader->register(true); 33 52 34 $filesToLoad = \Composer\Autoload\ComposerStaticInit377c01d70952be55122c937b7d267df5::$files; 35 $requireFile = static function ($fileIdentifier, $file) { 36 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { 37 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; 38 39 require $file; 40 } 41 }; 42 foreach ($filesToLoad as $fileIdentifier => $file) { 43 ($requireFile)($fileIdentifier, $file); 53 if ($useStaticLoader) { 54 $includeFiles = Composer\Autoload\ComposerStaticInit190ed122fc4381361abf0c7fb3195757::$files; 55 } else { 56 $includeFiles = require __DIR__ . '/autoload_files.php'; 57 } 58 foreach ($includeFiles as $fileIdentifier => $file) { 59 composerRequire190ed122fc4381361abf0c7fb3195757($fileIdentifier, $file); 44 60 } 45 61 … … 47 63 } 48 64 } 65 66 function composerRequire190ed122fc4381361abf0c7fb3195757($fileIdentifier, $file) 67 { 68 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { 69 require $file; 70 71 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; 72 } 73 } -
wheel-of-life/trunk/vendor/composer/autoload_static.php
r2887037 r2919602 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 377c01d70952be55122c937b7d267df57 class ComposerStaticInit190ed122fc4381361abf0c7fb3195757 8 8 { 9 9 public static $files = array ( … … 37 37 { 38 38 return \Closure::bind(function () use ($loader) { 39 $loader->prefixLengthsPsr4 = ComposerStaticInit 377c01d70952be55122c937b7d267df5::$prefixLengthsPsr4;40 $loader->prefixDirsPsr4 = ComposerStaticInit 377c01d70952be55122c937b7d267df5::$prefixDirsPsr4;41 $loader->classMap = ComposerStaticInit 377c01d70952be55122c937b7d267df5::$classMap;39 $loader->prefixLengthsPsr4 = ComposerStaticInit190ed122fc4381361abf0c7fb3195757::$prefixLengthsPsr4; 40 $loader->prefixDirsPsr4 = ComposerStaticInit190ed122fc4381361abf0c7fb3195757::$prefixDirsPsr4; 41 $loader->classMap = ComposerStaticInit190ed122fc4381361abf0c7fb3195757::$classMap; 42 42 43 43 }, null, ClassLoader::class); -
wheel-of-life/trunk/vendor/composer/installed.php
r2887037 r2919602 1 1 <?php return array( 2 2 'root' => array( 3 'name' => 'avee/wheeloflife',4 3 'pretty_version' => 'dev-master', 5 4 'version' => 'dev-master', 6 'reference' => 'a9bd2bc26abd2103451f4a9ead06c3af0467a9e2',7 5 'type' => 'worpress-plugin', 8 6 'install_path' => __DIR__ . '/../../', 9 7 'aliases' => array(), 8 'reference' => 'b498924f9cdd8f1d5f92ce8edb03ebe8f7ce29c5', 9 'name' => 'avee/wheeloflife', 10 10 'dev' => false, 11 11 ), … … 14 14 'pretty_version' => 'dev-master', 15 15 'version' => 'dev-master', 16 'reference' => 'a9bd2bc26abd2103451f4a9ead06c3af0467a9e2',17 16 'type' => 'worpress-plugin', 18 17 'install_path' => __DIR__ . '/../../', 19 18 'aliases' => array(), 19 'reference' => 'b498924f9cdd8f1d5f92ce8edb03ebe8f7ce29c5', 20 20 'dev_requirement' => false, 21 21 ), -
wheel-of-life/trunk/wheel-of-life.php
r2887037 r2919602 8 8 * Text Domain: wheel-of-life 9 9 * Domain Path: /languages 10 * Version: 1.1. 510 * Version: 1.1.6 11 11 * Requires at least: 5.2 12 12 * Requires PHP: 7.0 13 * Tested up to: 6. 113 * Tested up to: 6.2 14 14 * 15 15 * @package Wheeloflife
Note: See TracChangeset
for help on using the changeset viewer.