col-browser 2.2.2 → 2.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/chunks/{Distributions-Cwl_75VG.js → Distributions-CLwWAH98.js} +424 -417
- package/es/chunks/{Distributions-Cwl_75VG.js.map → Distributions-CLwWAH98.js.map} +1 -1
- package/es/taxon.js +1 -2
- package/es/taxon.js.map +1 -1
- package/es/taxonDistribution.js +1 -1
- package/package.json +2 -2
- package/umd/col-browser.js +48 -44
- package/umd/col-browser.js.map +1 -1
- package/umd/col-browser.min.js +3 -3
- package/umd/col-browser.min.js.map +1 -1
package/umd/col-browser.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* col-browser v2.2.
|
|
2
|
+
* col-browser v2.2.3
|
|
3
3
|
* MIT Licensed
|
|
4
4
|
*/
|
|
5
5
|
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("maplibre-gl")):"function"==typeof define&&define.amd?define(["maplibre-gl"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).ColBrowser=t(e.maplibregl)}(this,function(e){"use strict";var t,n,r=Object.defineProperty,o=(e,t,n)=>((e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),i=void 0!==globalThis.setImmediate?globalThis.setImmediate:function(e){return setTimeout(e,0)};function a(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var s,c,u={exports:{}},d={};function h(){if(s)return d;s=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),f=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,y={};function v(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||m}function b(){}function x(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||m}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=v.prototype;var w=x.prototype=new b;w.constructor=x,g(w,v.prototype),w.isPureReactComponent=!0;var C=Array.isArray;function k(){}var S={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function $(t,n,r){var o=r.ref;return{$$typeof:e,type:t,key:n,ref:void 0!==o?o:null,props:r}}function T(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var M=/\/+/g;function P(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function N(n,r,o,i,a){var l=typeof n;"undefined"!==l&&"boolean"!==l||(n=null);var s,c,u=!1;if(null===n)u=!0;else switch(l){case"bigint":case"string":case"number":u=!0;break;case"object":switch(n.$$typeof){case e:case t:u=!0;break;case h:return N((u=n._init)(n._payload),r,o,i,a)}}if(u)return a=a(n),u=""===i?"."+P(n,0):i,C(a)?(o="",null!=u&&(o=u.replace(M,"$&/")+"/"),N(a,r,o,"",function(e){return e})):null!=a&&(T(a)&&(s=a,c=o+(null==a.key||n&&n.key===a.key?"":(""+a.key).replace(M,"$&/")+"/")+u,a=$(s.type,c,s.props)),r.push(a)),1;u=0;var d,p=""===i?".":i+":";if(C(n))for(var m=0;m<n.length;m++)u+=N(i=n[m],r,o,l=p+P(i,m),a);else if("function"==typeof(m=null===(d=n)||"object"!=typeof d?null:"function"==typeof(d=f&&d[f]||d["@@iterator"])?d:null))for(n=m.call(n),m=0;!(i=n.next()).done;)u+=N(i=i.value,r,o,l=p+P(i,m++),a);else if("object"===l){if("function"==typeof n.then)return N(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(k,k):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(n),r,o,i,a);throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return u}function I(e,t,n){if(null==e)return e;var r=[],o=0;return N(e,r,"","",function(e){return t.call(n,e,o++)}),r}function O(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var A="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},R={map:I,forEach:function(e,t,n){I(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return I(e,function(){t++}),t},toArray:function(e){return I(e,function(e){return e})||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};return d.Activity=p,d.Children=R,d.Component=v,d.Fragment=n,d.Profiler=o,d.PureComponent=x,d.StrictMode=r,d.Suspense=c,d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,d.__COMPILER_RUNTIME={__proto__:null,c:function(e){return S.H.useMemoCache(e)}},d.cache=function(e){return function(){return e.apply(null,arguments)}},d.cacheSignal=function(){return null},d.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=g({},e.props),o=e.key;if(null!=t)for(i in void 0!==t.key&&(o=""+t.key),t)!E.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(r[i]=t[i]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var a=Array(i),l=0;l<i;l++)a[l]=arguments[l+2];r.children=a}return $(e.type,o,r)},d.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:i,_context:e},e},d.createElement=function(e,t,n){var r,o={},i=null;if(null!=t)for(r in void 0!==t.key&&(i=""+t.key),t)E.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var a=arguments.length-2;if(1===a)o.children=n;else if(1<a){for(var l=Array(a),s=0;s<a;s++)l[s]=arguments[s+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===o[r]&&(o[r]=a[r]);return $(e,i,o)},d.createRef=function(){return{current:null}},d.forwardRef=function(e){return{$$typeof:l,render:e}},d.isValidElement=T,d.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:O}},d.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},d.startTransition=function(e){var t=S.T,n={};S.T=n;try{var r=e(),o=S.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(k,A)}catch(e){A(e)}finally{null!==t&&null!==n.types&&(t.types=n.types),S.T=t}},d.unstable_useCacheRefresh=function(){return S.H.useCacheRefresh()},d.use=function(e){return S.H.use(e)},d.useActionState=function(e,t,n){return S.H.useActionState(e,t,n)},d.useCallback=function(e,t){return S.H.useCallback(e,t)},d.useContext=function(e){return S.H.useContext(e)},d.useDebugValue=function(){},d.useDeferredValue=function(e,t){return S.H.useDeferredValue(e,t)},d.useEffect=function(e,t){return S.H.useEffect(e,t)},d.useEffectEvent=function(e){return S.H.useEffectEvent(e)},d.useId=function(){return S.H.useId()},d.useImperativeHandle=function(e,t,n){return S.H.useImperativeHandle(e,t,n)},d.useInsertionEffect=function(e,t){return S.H.useInsertionEffect(e,t)},d.useLayoutEffect=function(e,t){return S.H.useLayoutEffect(e,t)},d.useMemo=function(e,t){return S.H.useMemo(e,t)},d.useOptimistic=function(e,t){return S.H.useOptimistic(e,t)},d.useReducer=function(e,t,n){return S.H.useReducer(e,t,n)},d.useRef=function(e){return S.H.useRef(e)},d.useState=function(e){return S.H.useState(e)},d.useSyncExternalStore=function(e,t,n){return S.H.useSyncExternalStore(e,t,n)},d.useTransition=function(){return S.H.useTransition()},d.version="19.2.6",d}function p(){return c||(c=1,u.exports=h()),u.exports}var f=p();const m=l(f),g=a({__proto__:null,default:m},[f]);var y,v,b={exports:{}},x={},w={exports:{}},C={};function k(){return v||(v=1,w.exports=(y||(y=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>o(s,n))c<i&&0>o(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var c=[],u=[],d=1,h=null,p=3,f=!1,m=!1,g=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,x=void 0!==i?i:null;function w(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(c,o)}o=n(u)}}function C(e){if(g=!1,w(e),!m)if(null!==n(c))m=!0,S||(S=!0,k());else{var t=n(u);null!==t&&O(C,t.startTime-e)}}var k,S=!1,E=-1,$=5,T=-1;function M(){return!(!y&&e.unstable_now()-T<$)}function P(){if(y=!1,S){var t=e.unstable_now();T=t;var o=!0;try{e:{m=!1,g&&(g=!1,b(E),E=-1),f=!0;var i=p;try{t:{for(w(t),h=n(c);null!==h&&!(h.expirationTime>t&&M());){var a=h.callback;if("function"==typeof a){h.callback=null,p=h.priorityLevel;var l=a(h.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof l){h.callback=l,w(t),o=!0;break t}h===n(c)&&r(c),w(t)}else r(c);h=n(c)}if(null!==h)o=!0;else{var s=n(u);null!==s&&O(C,s.startTime-t),o=!1}}break e}finally{h=null,p=i,f=!1}o=void 0}}finally{o?k():S=!1}}}if("function"==typeof x)k=function(){x(P)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,I=N.port2;N.port1.onmessage=P,k=function(){I.postMessage(null)}}else k=function(){v(P,0)};function O(t,n){E=v(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_requestPaint=function(){y=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:d++,callback:o,priorityLevel:r,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(r.sortIndex=i,t(u,r),null===n(c)&&r===n(u)&&(g?(b(E),E=-1):g=!0,O(C,i-a))):(r.sortIndex=l,t(c,r),m||f||(m=!0,S||(S=!0,k()))),r},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(C)),C)),w.exports}var S,E,$,T,M={exports:{}},P={};function N(){if(S)return P;S=1;var e=p();function t(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}return P.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,P.createPortal=function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!n||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error(t(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:o,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,n,null,r)},P.flushSync=function(e){var t=i.T,n=r.p;try{if(i.T=null,r.p=2,e)return e()}finally{i.T=t,r.p=n,r.d.f()}},P.preconnect=function(e,t){"string"==typeof e&&(t?t="string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,r.d.C(e,t))},P.prefetchDNS=function(e){"string"==typeof e&&r.d.D(e)},P.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,o=a(n,t.crossOrigin),i="string"==typeof t.integrity?t.integrity:void 0,l="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?r.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:o,integrity:i,fetchPriority:l}):"script"===n&&r.d.X(e,{crossOrigin:o,integrity:i,fetchPriority:l,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},P.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=a(t.as,t.crossOrigin);r.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&r.d.M(e)},P.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,o=a(n,t.crossOrigin);r.d.L(e,n,{crossOrigin:o,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},P.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=a(t.as,t.crossOrigin);r.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else r.d.m(e)},P.requestFormReset=function(e){r.d.r(e)},P.unstable_batchedUpdates=function(e,t){return e(t)},P.useFormState=function(e,t,n){return i.H.useFormState(e,t,n)},P.useFormStatus=function(){return i.H.useHostTransitionStatus()},P.version="19.2.6",P}function I(){if(E)return M.exports;return E=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),M.exports=N(),M.exports}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
19
19
|
* @website https://github.com/cssinjs/jss
|
|
20
20
|
* @license MIT
|
|
21
|
-
*/zz();var Hz,_z=Date.now(),Wz="fnValues"+_z,Kz="fnStyle"+ ++_z;Hz="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")();var Vz,Gz,qz=("function"==typeof(Gz=Hz.Symbol)?Gz.observable?Vz=Gz.observable:(Vz=Gz("observable"),Gz.observable=Vz):Vz="@@observable",Vz),Xz=function(e){return e&&e[qz]&&e===e[qz]()},Uz=/;\n/,Yz=function(e){"string"==typeof e.style&&(e.style=function(e){for(var t={},n=e.split(Uz),r=0;r<n.length;r++){var o=(n[r]||"").trim();if(o){var i=o.indexOf(":");if(-1!==i){var a=o.substr(0,i).trim(),l=o.substr(i+1).trim();t[a]=l}}}return t}(e.style))};var Zz="@global",Qz="@global ",Jz=function(){function e(e,t,n){for(var r in this.type="global",this.at=Zz,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new gz(Vd({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),eD=function(){function e(e,t,n){this.type="global",this.at=Zz,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,Vd({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),tD=/\s*,\s*/g;function nD(e,t){for(var n=e.split(tD),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function rD(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Zz)return new Jz(e,t,n);if("@"===e[0]&&e.substr(0,8)===Qz)return new eD(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[Zz]:null;if(o){for(var i in o)t.addRule(i,o[i],Vd({},n,{selector:nD(i,e.selector)}));delete r[Zz]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,7)===Zz){var i=nD(o.substr(7),e.selector);t.addRule(i,r[o],Vd({},n,{selector:i})),delete r[o]}}(e,t))}}}var oD=function(e){return e&&"object"==typeof e&&!Array.isArray(e)},iD="extendCurrValue"+Date.now();function aD(e,t,n,r){return void 0===r&&(r={}),function(e,t,n,r){if("string"!=typeof e.extend)if(Array.isArray(e.extend))for(var o=0;o<e.extend.length;o++){var i=e.extend[o];aD("string"==typeof i?Vd({},e,{extend:i}):e.extend[o],t,n,r)}else for(var a in e.extend)"extend"!==a?oD(e.extend[a])?(a in r||(r[a]={}),aD(e.extend[a],t,n,r[a])):r[a]=e.extend[a]:aD(e.extend.extend,t,n,r);else{if(!n)return;var l=n.getRule(e.extend);if(!l)return;if(l===t)return;var s=l.options.parent;s&&aD(s.rules.raw[e.extend],t,n,r)}}(e,t,n,r),function(e,t,n,r){for(var o in e)"extend"!==o&&(oD(r[o])&&oD(e[o])?aD(e[o],t,n,r[o]):oD(e[o])?r[o]=aD(e[o],t,n):r[o]=e[o])}(e,t,n,r),r}var lD=/\s*,\s*/g,sD=/&/g,cD=/\$([\w-]+)/g;function uD(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(lD),r=e.split(lD),o="",i=0;i<n.length;i++)for(var a=n[i],l=0;l<r.length;l++){var s=r[l];o&&(o+=", "),o+=-1!==s.indexOf("&")?s.replace(sD,a):a+" "+s}return o}function n(e,t,n){if(n)return Vd({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=Vd({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,l,s=o,c=s.options.parent;for(var u in r){var d=-1!==u.indexOf("&"),h="@"===u[0];if(d||h){if(a=n(s,c,a),d){var p=t(u,s.selector);l||(l=e(c,i)),p=p.replace(cD,l);var f=s.key+"-"+u;"replaceRule"in c?c.replaceRule(f,r[u],Vd({},a,{selector:p})):c.addRule(f,r[u],Vd({},a,{selector:p}))}else h&&c.addRule(u,{},a).addRule(s.key,r[u],{selector:s.selector});delete r[u]}}return r}}}function dD(e,t){if(!t)return!0;if(Array.isArray(t)){for(var n=0;n<t.length;n++){if(!dD(e,t[n]))return!1}return!0}if(t.indexOf(" ")>-1)return dD(e,t.split(" "));var r=e.options.parent;if("$"===t[0]){var o=r.getRule(t.substr(1));return!!o&&(o!==e&&(r.classes[e.key]+=" "+r.classes[o.key],!0))}return r.classes[e.key]+=" "+t,!0}function hD(){return{onProcessStyle:function(e,t){return"composes"in e?(dD(t,e.composes),delete e.composes,e):e}}}var pD=/[A-Z]/g,fD=/^ms-/,mD={};function gD(e){return"-"+e.toLowerCase()}function yD(e){if(mD.hasOwnProperty(e))return mD[e];var t=e.replace(pD,gD);return mD[e]=fD.test(t)?"-"+t:t}function vD(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:yD(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(vD):t.fallbacks=vD(e.fallbacks)),t}var bD=jz&&CSS?CSS.px:"px",xD=jz&&CSS?CSS.ms:"ms",wD=jz&&CSS?CSS.percent:"%";function CD(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var kD=CD({"animation-delay":xD,"animation-duration":xD,"background-position":bD,"background-position-x":bD,"background-position-y":bD,"background-size":bD,border:bD,"border-bottom":bD,"border-bottom-left-radius":bD,"border-bottom-right-radius":bD,"border-bottom-width":bD,"border-left":bD,"border-left-width":bD,"border-radius":bD,"border-right":bD,"border-right-width":bD,"border-top":bD,"border-top-left-radius":bD,"border-top-right-radius":bD,"border-top-width":bD,"border-width":bD,"border-block":bD,"border-block-end":bD,"border-block-end-width":bD,"border-block-start":bD,"border-block-start-width":bD,"border-block-width":bD,"border-inline":bD,"border-inline-end":bD,"border-inline-end-width":bD,"border-inline-start":bD,"border-inline-start-width":bD,"border-inline-width":bD,"border-start-start-radius":bD,"border-start-end-radius":bD,"border-end-start-radius":bD,"border-end-end-radius":bD,margin:bD,"margin-bottom":bD,"margin-left":bD,"margin-right":bD,"margin-top":bD,"margin-block":bD,"margin-block-end":bD,"margin-block-start":bD,"margin-inline":bD,"margin-inline-end":bD,"margin-inline-start":bD,padding:bD,"padding-bottom":bD,"padding-left":bD,"padding-right":bD,"padding-top":bD,"padding-block":bD,"padding-block-end":bD,"padding-block-start":bD,"padding-inline":bD,"padding-inline-end":bD,"padding-inline-start":bD,"mask-position-x":bD,"mask-position-y":bD,"mask-size":bD,height:bD,width:bD,"min-height":bD,"max-height":bD,"min-width":bD,"max-width":bD,bottom:bD,left:bD,top:bD,right:bD,inset:bD,"inset-block":bD,"inset-block-end":bD,"inset-block-start":bD,"inset-inline":bD,"inset-inline-end":bD,"inset-inline-start":bD,"box-shadow":bD,"text-shadow":bD,"column-gap":bD,"column-rule":bD,"column-rule-width":bD,"column-width":bD,"font-size":bD,"font-size-delta":bD,"letter-spacing":bD,"text-decoration-thickness":bD,"text-indent":bD,"text-stroke":bD,"text-stroke-width":bD,"word-spacing":bD,motion:bD,"motion-offset":bD,outline:bD,"outline-offset":bD,"outline-width":bD,perspective:bD,"perspective-origin-x":wD,"perspective-origin-y":wD,"transform-origin":wD,"transform-origin-x":wD,"transform-origin-y":wD,"transform-origin-z":wD,"transition-delay":xD,"transition-duration":xD,"vertical-align":bD,"flex-basis":bD,"shape-margin":bD,size:bD,gap:bD,grid:bD,"grid-gap":bD,"row-gap":bD,"grid-row-gap":bD,"grid-column-gap":bD,"grid-template-rows":bD,"grid-template-columns":bD,"grid-auto-rows":bD,"grid-auto-columns":bD,"box-shadow-x":bD,"box-shadow-y":bD,"box-shadow-blur":bD,"box-shadow-spread":bD,"font-line-height":bD,"text-shadow-x":bD,"text-shadow-y":bD,"text-shadow-blur":bD});function SD(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=SD(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=SD(o,t[o],n);else for(var i in t)t[i]=SD(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||kD[e];return!a||0===t&&a===bD?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function ED(e){void 0===e&&(e={});var t=CD(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=SD(r,e[r],t);return e},onChangeValue:function(e,n){return SD(n,e,t)}}}var $D={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},TD={position:!0,size:!0},MD={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},PD={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},"border-bottom":{width:"border-bottom-width",style:"border-bottom-style",color:"border-bottom-color"},"border-top":{width:"border-top-width",style:"border-top-style",color:"border-top-color"},"border-left":{width:"border-left-width",style:"border-left-style",color:"border-left-color"},"border-right":{width:"border-right-width",style:"border-right-style",color:"border-right-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}};function ND(e,t,n,r){return null==n[t]?e:0===e.length?[]:Array.isArray(e[0])?ND(e[0],t,n,r):"object"==typeof e[0]?function(e,t,n){return e.map(function(e){return ID(e,t,n,!1,!0)})}(e,t,r):[e]}function ID(e,t,n,r,o){if(!MD[t]&&!PD[t])return[];var i=[];if(PD[t]&&(e=function(e,t,n,r){for(var o in n){var i=n[o];if(void 0!==e[o]&&(r||!t.prop(i))){var a,l=OD((a={},a[i]=e[o],a),t)[i];r?t.style.fallbacks[i]=l:t.style[i]=l}delete e[o]}return e}(e,n,PD[t],r)),Object.keys(e).length)for(var a in MD[t])e[a]?Array.isArray(e[a])?i.push(null===TD[a]?e[a]:e[a].join(" ")):i.push(e[a]):null!=MD[t][a]&&i.push(MD[t][a]);return!i.length||o?i:[i]}function OD(e,t,n){for(var r in e){var o=e[r];if(Array.isArray(o)){if(!Array.isArray(o[0])){if("fallbacks"===r){for(var i=0;i<e.fallbacks.length;i++)e.fallbacks[i]=OD(e.fallbacks[i],t,!0);continue}e[r]=ND(o,r,$D,t),e[r].length||delete e[r]}}else if("object"==typeof o){if("fallbacks"===r){e.fallbacks=OD(e.fallbacks,t,!0);continue}e[r]=ID(o,r,t,n),e[r].length||delete e[r]}else""===e[r]&&delete e[r]}return e}var AD="",RD="",LD="",BD="",zD=PB&&"ontouchstart"in document.documentElement;if(PB){var DD={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},jD=document.createElement("p").style;for(var FD in DD)if(FD+"Transform"in jD){AD=FD,RD=DD[FD];break}"Webkit"===AD&&"msHyphens"in jD&&(AD="ms",RD=DD.ms,BD="edge"),"Webkit"===AD&&"-apple-trailing-word"in jD&&(LD="apple")}var HD=AD,_D=RD,WD=LD,KD=BD,VD=zD;var GD={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===HD?"-webkit-"+e:_D+e)}},qD={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===HD?_D+"print-"+e:e)}},XD=/[-\s]+(.)?/g;function UD(e,t){return t?t.toUpperCase():""}function YD(e){return e.replace(XD,UD)}function ZD(e){return YD("-"+e)}var QD,JD={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===HD){var n="mask-image";if(YD(n)in t)return e;if(HD+ZD(n)in t)return _D+e}return e}},ej={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==WD||VD?e:_D+e)}},tj={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:_D+e)}},nj={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:_D+e)}},rj={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===HD||"ms"===HD&&"edge"!==KD?_D+e:e)}},oj={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===HD||"ms"===HD||"apple"===WD?_D+e:e)}},ij={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===HD?"WebkitColumn"+ZD(e)in t&&_D+"column-"+e:"Moz"===HD&&("page"+ZD(e)in t&&"page-"+e))}},aj={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===HD)return e;var n=e.replace("-inline","");return HD+ZD(n)in t&&_D+n}},lj={supportedProperty:function(e,t){return YD(e)in t&&e}},sj={supportedProperty:function(e,t){var n=ZD(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:HD+n in t?_D+e:"Webkit"!==HD&&"Webkit"+n in t&&"-webkit-"+e}},cj={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===HD?""+_D+e:e)}},uj={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===HD?_D+"scroll-chaining":e)}},dj={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},hj={supportedProperty:function(e,t){var n=dj[e];return!!n&&(HD+ZD(n)in t&&_D+n)}},pj={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},fj=Object.keys(pj),mj=function(e){return _D+e},gj=[GD,qD,JD,ej,tj,nj,rj,oj,ij,aj,lj,sj,cj,uj,hj,{supportedProperty:function(e,t,n){var r=n.multiple;if(fj.indexOf(e)>-1){var o=pj[e];if(!Array.isArray(o))return HD+ZD(o)in t&&_D+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(HD+ZD(o[0])in t))return!1;return o.map(mj)}return!1}}],yj=gj.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),vj=gj.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,Vt(t.noPrefill)),e},[]),bj={};if(PB){QD=document.createElement("p");var xj=window.getComputedStyle(document.documentElement,"");for(var wj in xj)isNaN(wj)||(bj[xj[wj]]=xj[wj]);vj.forEach(function(e){return delete bj[e]})}function Cj(e,t){if(void 0===t&&(t={}),!QD)return e;if(null!=bj[e])return bj[e];"transition"!==e&&"transform"!==e||(t[e]=e in QD.style);for(var n=0;n<yj.length&&(bj[e]=yj[n](e,QD.style,t),!bj[e]);n++);try{QD.style[e]=""}catch(e){return!1}return bj[e]}var kj,Sj={},Ej={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},$j=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Tj(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Cj(t):", "+Cj(n);return r||(t||n)}function Mj(e,t){var n=t;if(!kj||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Sj[r])return Sj[r];try{kj.style[e]=n}catch(e){return Sj[r]=!1,!1}if(Ej[e])n=n.replace($j,Tj);else if(""===kj.style[e]&&("-ms-flex"===(n=_D+n)&&(kj.style[e]="-ms-flexbox"),kj.style[e]=n,""===kj.style[e]))return Sj[r]=!1,!1;return kj.style[e]="",Sj[r]=n,Sj[r]}function Pj(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=Cj(n);i&&i!==n&&(o=!0);var a=!1,l=Mj(i,LB(r));l&&l!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=l||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at="-"===(n=t.at)[1]||"ms"===HD?n:"@"+_D+"keyframes"+n.substr(10)}var n},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Mj(t,LB(e))||e}}}PB&&(kj=document.createElement("p"));var Nj=function(e){return void 0===e&&(e={}),{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=AB(e,{},n);return r[Kz]=t,r},onProcessStyle:function(e,t){if(Wz in t||Kz in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[Wz]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Kz];i&&(o.style=i(e)||{});var a=o[Wz];if(a)for(var l in a)o.prop(l,a[l](e),r)}},(n=e.observable,{onCreateRule:function(e,t,r){if(!Xz(t))return null;var o=t,i=AB(e,{},r);return o.subscribe(function(e){for(var t in e)i.prop(t,e[t],n)}),i},onProcessRule:function(e){if(!e||"style"===e.type){var t=e,r=t.style,o=function(e){var o=r[e];if(!Xz(o))return"continue";delete r[e],o.subscribe({next:function(r){t.prop(e,r,n)}})};for(var i in r)o(i)}}}),{onProcessRule:Yz},rD(),{onProcessStyle:function(e,t,n){return"extend"in e?aD(e,t,n):e},onChangeValue:function(e,t,n){if("extend"!==t)return e;if(null==e||!1===e){for(var r in n[iD])n.prop(r,null);return n[iD]=null,null}if("object"==typeof e){for(var o in e)n.prop(o,e[o]);n[iD]=e}return null}},uD(),hD(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=vD(e[t]);return e}return vD(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=yD(t);return t===r?e:(n.prop(r,e),null)}},ED(e.defaultUnit),{onProcessStyle:function(e,t){if(!e||"style"!==t.type)return e;if(Array.isArray(e)){for(var n=0;n<e.length;n++)e[n]=OD(e[n],t);return e}return OD(e,t)}},Pj(),(t=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r={},o=Object.keys(e).sort(t),i=0;i<o.length;i++)r[o[i]]=e[o[i]];return r}})]};var t,n},Ij=zz(Nj());!function(e){void 0===e&&(e=Ij);var t,n=new Map,r=0,o=function(){return(!t||t.rules.index.length>1e4)&&(t=e.createStyleSheet().attach()),t};function i(){var e=arguments,t=JSON.stringify(e),i=n.get(t);if(i)return i.className;var a=[];for(var l in e){var s=e[l];if(Array.isArray(s))for(var c=0;c<s.length;c++)a.push(s[c]);else a.push(s)}for(var u={},d=[],h=0;h<a.length;h++){var p=a[h];if(p){var f=p;if("string"==typeof p){var m=n.get(p);m&&(m.labels.length&&d.push.apply(d,m.labels),f=m.style)}f.label&&-1===d.indexOf(f.label)&&d.push(f.label),Object.assign(u,f)}}delete u.label;var g=(0===d.length?"css":d.join("-"))+"-"+r++;o().addRule(g,u);var y=o().classes[g],v={style:u,labels:d,className:y};return n.set(t,v),n.set(y,v),y}i.getSheet=o}();var Oj=Number.MIN_SAFE_INTEGER||-1e9,Aj=function(){return Oj++},Rj=f.createContext({classNamePrefix:"",disableStylesGeneration:!1,isSSR:!PB}),Lj=new Map,Bj=function(e,t){var n=e.managers;if(n)return n[t]||(n[t]=new Dz),n[t];var r=Lj.get(t);return r||(r=new Dz,Lj.set(t,r)),r},zj=function(e){var t=e.sheet,n=e.context,r=e.index,o=e.theme;t&&(Bj(n,r).manage(o),n.registry&&n.registry.add(t))},Dj=zz(Nj()),jj=new WeakMap,Fj=function(e){return jj.get(e)};var Hj=function(e){if(!e.context.disableStylesGeneration){var t=Bj(e.context,e.index),n=t.get(e.theme);if(n)return n;var r=e.context.jss||Dj,o=function(e){var t=e.styles;return"function"!=typeof t?t:t(e.theme)}(e),i=Fz(o),a=r.createStyleSheet(o,function(e,t){var n;e.context.id&&null!=e.context.id.minify&&(n=e.context.id.minify);var r=e.context.classNamePrefix||"";e.name&&!n&&(r+=e.name.replace(/\s/g,"-")+"-");var o="";return e.name&&(o=e.name+", "),o+="function"==typeof e.styles?"Themed":"Unthemed",Vd({},e.sheetOptions,{index:e.index,meta:o,classNamePrefix:r,link:t,generateId:e.sheetOptions&&e.sheetOptions.generateId?e.sheetOptions.generateId:e.context.generateId})}(e,null!==i));return function(e,t){jj.set(e,t)}(a,{dynamicStyles:i,styles:o}),t.add(e.theme,a),a}},_j=function(e,t){var n=Fj(e);if(n){var r={};for(var o in n.dynamicStyles)for(var i=e.rules.index.length,a=e.addRule(o,n.dynamicStyles[o]),l=i;l<e.rules.index.length;l++){var s=e.rules.index[l];e.updateOne(s,t),r[a===s?o:s.key]=s}return r}};function Wj(e){return e?f.useEffect:m.useInsertionEffect||f.useLayoutEffect}var Kj={},Vj=function(e,t){void 0===t&&(t={});var n=t,r=n.index,o=void 0===r?Aj():r,i=n.theming,a=n.name,l=cw(n,["index","theming","name"]),s=i&&i.context||TB,c={};return function(t){var n=f.useRef(!0),r=f.useContext(Rj),i=function(t){return"function"==typeof e&&(t||f.useContext(s))||Kj}(t&&t.theme),u=f.useMemo(function(){var n=Hj({context:r,styles:e,name:a,theme:i,index:o,sheetOptions:l});return n&&r.isSSR&&zj({index:o,context:r,sheet:n,theme:i}),[n,n?_j(n,t):null]},[r,i]),d=u[0],h=u[1];Wj(r.isSSR)(function(){d&&h&&!n.current&&function(e,t,n){for(var r in n)t.updateOne(n[r],e)}(t,d,h)},[t]),Wj(r.isSSR)(function(){return d&&zj({index:o,context:r,sheet:d,theme:i}),function(){d&&(function(e){e.sheet&&Bj(e.context,e.index).unmanage(e.theme)}({index:o,context:r,sheet:d,theme:i}),h&&function(e,t){for(var n in t)e.deleteRule(t[n])}(d,h))}},[d]);var p=f.useMemo(function(){return d&&h?function(e,t){if(!t)return e.classes;var n=Fj(e);if(!n)return e.classes;var r={};for(var o in n.styles)r[o]=e.classes[o],o in t&&(r[o]+=" "+e.classes[t[o].key]);return r}(d,h):c},[d,h]);return f.useDebugValue(p),f.useDebugValue(i===Kj?"No theme":i),f.useEffect(function(){n.current=!1}),p}},Gj=function(e){return e.children||null},qj=function(e,t){void 0===t&&(t={});var n=t,r=n.index,o=void 0===r?Aj():r,i=n.theming,a=n.injectTheme,l=cw(n,["index","theming","injectTheme"]),s=i?i.context:TB;return function(t){void 0===t&&(t=Gj);var n,r,c,u,d=(n=t).displayName||n.name||"Component",h=(r=function(e,t){return t?function(e,t){var n=Vd({},e);for(var r in t)n[r]=r in n?n[r]+" "+t[r]:t[r];return n}(e,t):e},function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(Array.isArray(c)&&t.length===c.length){for(var o=!0,i=0;i<t.length;i++)t[i]!==c[i]&&(o=!1);if(o)return u}return c=t,u=r.apply(void 0,t)}),p=Object.assign(l,{theming:i,index:o,name:d}),m=Vj(e,p),g=f.forwardRef(function(e,n){var r=f.useContext(s),o=Vd({},e);a&&null==o.theme&&(o.theme=r);var i=m(o),l=h(i,e.classes);return f.createElement(t,Vd({},o,{classes:l,ref:n}))});return g.displayName="WithStyles("+d+")",g.defaultProps=Vd({},t.defaultProps),g.InnerComponent=t,lB(g,t)}};const Xj=class e extends m.Component{constructor(t){super(t),o(this,"handleResize",()=>{clearTimeout(this.deferTime),this.deferTime=setTimeout(()=>{this.updateWidth()},this.resizeInterval)}),o(this,"updateWidth",()=>{let t,n=this.getViewportWidth();t=n>=e.EXTRA_LARGE_WIDTH?e.EXTRA_LARGE:n>=e.LARGE_WIDTH?e.LARGE:n>=e.MEDIUM_WIDTH?e.MEDIUM:e.SMALL,t!==this.state.width&&this.setState({width:t})}),this.deferTime=null,this.resizeInterval=166,this.state={width:null}}componentDidMount(){window&&window.addEventListener("resize",this.handleResize),this.updateWidth()}componentWillUnmount(){window&&window.removeEventListener("resize",this.handleResize),clearTimeout(this.deferTime)}getViewportWidth(){return window.innerWidth&&document.documentElement.clientWidth?Math.min(window.innerWidth,document.documentElement.clientWidth):window.innerWidth||document.documentElement.clientWidth||document.querySelector("body").clientWidth}render(){return this.props.children(this.state.width)}};o(Xj,"EXTRA_LARGE",4),o(Xj,"LARGE",3),o(Xj,"MEDIUM",2),o(Xj,"SMALL",1),o(Xj,"EXTRA_LARGE_WIDTH",1200),o(Xj,"LARGE_WIDTH",992),o(Xj,"MEDIUM_WIDTH",768);let Uj=Xj;const Yj=()=>e=>class extends Uj{render(){return j.jsx(e,{...this.props,width:this.state.width})}},Zj=Yj()(qj({formItem:{paddingBottom:0,width:"100%",clear:"both"},label:{display:"block",color:"rgba(0, 0, 0, 0.85)"},content:{wordBreak:"break-word",marginBottom:0},noContent:{wordBreak:"break-word",color:"#bbb",marginBottom:0},contentCol:{wordBreak:"break-word"},smallMargin:{marginBottom:5,marginTop:5},mediumMargin:{marginBottom:10,marginTop:10}})(({classes:e,children:t,size:n})=>{const r="medium"===n?e.mediumMargin:e.smallMargin;return j.jsx(Lw,{className:e.formItem,children:j.jsx(Aw,{span:24,className:r,children:(()=>{let n;return Array.isArray(t)&&t.length>0?n=t.map((t,n)=>j.jsx("span",{className:e.content,children:t},n)):Array.isArray(t)||void 0===t||(n=j.jsx("span",{className:e.content,children:t})),n})()})})}));class Qj extends m.Component{constructor(e){super(e),o(this,"getData",()=>{const{referenceId:e,datasetKey:t,references:n}=this.props;if(e){const r=VP(e)?e:[e],o=[];this.setState({loading:!0}),Promise.allSettled(r.map(e=>zI(n,e)?Promise.resolve(o.push(n[e])):fR(`${gR.dataApi}dataset/${t}/reference/${e}`).then(e=>o.push(e.data)).catch(e=>this.setState({error:e})))).then(()=>this.setState({reference:o,loading:!1}))}}),o(this,"getContent",()=>{const{error:e,reference:t,loading:n}=this.state;return n?j.jsx(mS,{}):e?j.jsx(LR,{error:e}):1===t.length?t[0].citation:j.jsx("ul",{children:t.map(e=>j.jsx("li",{children:e.citation},e.id))})}),o(this,"scrollToReference",(e,t)=>{const n=document.getElementById(`col-reference-${t}`);n&&(e.preventDefault(),n.scrollIntoView({behavior:"smooth",block:"start"}))}),o(this,"render",()=>{const{referenceId:e,referenceIndexMap:t,trigger:n}=this.props,r=VP(e)?e:[e];let o=t&&zI(t,r[0])?r.map(e=>j.jsx("a",{className:"col-reference-link",href:`#col-reference-${e}`,onClick:t=>this.scrollToReference(t,e),children:`[${t[e]}]`},e)):j.jsx(tL,{style:{cursor:"pointer"}});return e?j.jsx("div",{id:`reference_${e}`,style:this.props.style,children:j.jsx(iv,{getPopupContainer:()=>document.getElementById(`reference_${e}`),placement:this.props.placement||"left",title:"Reference",onOpenChange:e=>e&&this.getData(),content:j.jsx("div",{style:{maxWidth:"500px"},children:this.getContent()}),trigger:n||"hover",children:o})},`reference_${e}`):""}),this.state={reference:[],loading:!1,error:null}}}const Jj=({style:e={},decision:t,popoverPlacement:n})=>{const r=f.useRef(Math.random().toString(36).substring(2,15)),{subject:o,originalSubjectId:i,subjectDatasetKey:a,datasetKey:l,created:s,createdBy:c,modified:u,modifiedBy:d,...h}=t;return j.jsx("div",{style:{display:"inline"},id:r.current,children:j.jsx(iv,{getPopupContainer:()=>document.getElementById(r.current),title:"Editorial decision",content:j.jsxs("div",{style:{overflow:"scroll"},children:[" ",j.jsx("pre",{style:{fontSize:"10px",fontFamily:"monospace",width:"400px"},children:JSON.stringify(h,null,2)})]}),placement:n||"right",trigger:"click",children:j.jsx(xP,{color:"gold",style:{cursor:"pointer",fontFamily:"monospace",fontSize:"8px",fontWeight:900,padding:"2px",lineHeight:"8px",verticalAlign:"middle",marginRight:"2px",...e},children:"DC"})})})},eF="numeric",tF="ascii",nF="alpha",rF="asciinumeric",oF="alphanumeric",iF="domain",aF="emoji",lF="scheme",sF="slashscheme",cF="whitespace";function uF(e,t){return e in t||(t[e]=[]),t[e]}function dF(e,t,n){t[eF]&&(t[rF]=!0,t[oF]=!0),t[tF]&&(t[rF]=!0,t[nF]=!0),t[rF]&&(t[oF]=!0),t[nF]&&(t[oF]=!0),t[oF]&&(t[iF]=!0),t[aF]&&(t[iF]=!0);for(const r in t){const t=uF(r,n);t.indexOf(e)<0&&t.push(e)}}function hF(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}hF.groups={},hF.prototype={accepts(){return!!this.t},go(e){const t=this,n=t.j[e];if(n)return n;for(let n=0;n<t.jr.length;n++){const r=t.jr[n][0],o=t.jr[n][1];if(o&&r.test(e))return o}return t.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let o=0;o<e.length;o++)this.tt(e[o],t,n,r)},tr(e,t,n,r){let o;return r=r||hF.groups,t&&t.j?o=t:(o=new hF(t),n&&r&&dF(t,n,r)),this.jr.push([e,o]),o},ts(e,t,n,r){let o=this;const i=e.length;if(!i)return o;for(let t=0;t<i-1;t++)o=o.tt(e[t]);return o.tt(e[i-1],t,n,r)},tt(e,t,n,r){r=r||hF.groups;const o=this;if(t&&t.j)return o.j[e]=t,t;const i=t;let a,l=o.go(e);if(l?(a=new hF,Object.assign(a.j,l.j),a.jr.push.apply(a.jr,l.jr),a.jd=l.jd,a.t=l.t):a=new hF,i){if(r)if(a.t&&"string"==typeof a.t){const e=Object.assign(function(e,t){const n={};for(const r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}(a.t,r),n);dF(i,e,r)}else n&&dF(i,n,r);a.t=i}return o.j[e]=a,a}};const pF=(e,t,n,r,o)=>e.ta(t,n,r,o),fF=(e,t,n,r,o)=>e.tr(t,n,r,o),mF=(e,t,n,r,o)=>e.ts(t,n,r,o),gF=(e,t,n,r,o)=>e.tt(t,n,r,o),yF="WORD",vF="UWORD",bF="ASCIINUMERICAL",xF="ALPHANUMERICAL",wF="LOCALHOST",CF="TLD",kF="UTLD",SF="SCHEME",EF="SLASH_SCHEME",$F="NUM",TF="WS",MF="NL",PF="OPENBRACE",NF="CLOSEBRACE",IF="OPENBRACKET",OF="CLOSEBRACKET",AF="OPENPAREN",RF="CLOSEPAREN",LF="OPENANGLEBRACKET",BF="CLOSEANGLEBRACKET",zF="FULLWIDTHLEFTPAREN",DF="FULLWIDTHRIGHTPAREN",jF="LEFTCORNERBRACKET",FF="RIGHTCORNERBRACKET",HF="LEFTWHITECORNERBRACKET",_F="RIGHTWHITECORNERBRACKET",WF="FULLWIDTHLESSTHAN",KF="FULLWIDTHGREATERTHAN",VF="AMPERSAND",GF="APOSTROPHE",qF="ASTERISK",XF="AT",UF="BACKSLASH",YF="BACKTICK",ZF="CARET",QF="COLON",JF="COMMA",eH="DOLLAR",tH="DOT",nH="EQUALS",rH="EXCLAMATION",oH="HYPHEN",iH="PERCENT",aH="PIPE",lH="PLUS",sH="POUND",cH="QUERY",uH="QUOTE",dH="FULLWIDTHMIDDLEDOT",hH="SEMI",pH="SLASH",fH="TILDE",mH="UNDERSCORE",gH="EMOJI",yH="SYM";var vH=Object.freeze({__proto__:null,ALPHANUMERICAL:xF,AMPERSAND:VF,APOSTROPHE:GF,ASCIINUMERICAL:bF,ASTERISK:qF,AT:XF,BACKSLASH:UF,BACKTICK:YF,CARET:ZF,CLOSEANGLEBRACKET:BF,CLOSEBRACE:NF,CLOSEBRACKET:OF,CLOSEPAREN:RF,COLON:QF,COMMA:JF,DOLLAR:eH,DOT:tH,EMOJI:gH,EQUALS:nH,EXCLAMATION:rH,FULLWIDTHGREATERTHAN:KF,FULLWIDTHLEFTPAREN:zF,FULLWIDTHLESSTHAN:WF,FULLWIDTHMIDDLEDOT:dH,FULLWIDTHRIGHTPAREN:DF,HYPHEN:oH,LEFTCORNERBRACKET:jF,LEFTWHITECORNERBRACKET:HF,LOCALHOST:wF,NL:MF,NUM:$F,OPENANGLEBRACKET:LF,OPENBRACE:PF,OPENBRACKET:IF,OPENPAREN:AF,PERCENT:iH,PIPE:aH,PLUS:lH,POUND:sH,QUERY:cH,QUOTE:uH,RIGHTCORNERBRACKET:FF,RIGHTWHITECORNERBRACKET:_F,SCHEME:SF,SEMI:hH,SLASH:pH,SLASH_SCHEME:EF,SYM:yH,TILDE:fH,TLD:CF,UNDERSCORE:mH,UTLD:kF,UWORD:vF,WORD:yF,WS:TF});const bH=/[a-z]/,xH=new RegExp("\\p{L}","u"),wH=new RegExp("\\p{Emoji}","u"),CH=/\d/,kH=/\s/;let SH=null,EH=null;function $H(e,t){const n=function(e){const t=[],n=e.length;let r=0;for(;r<n;){let o,i=e.charCodeAt(r),a=i<55296||i>56319||r+1===n||(o=e.charCodeAt(r+1))<56320||o>57343?e[r]:e.slice(r,r+2);t.push(a),r+=a.length}return t}(t.replace(/[A-Z]/g,e=>e.toLowerCase())),r=n.length,o=[];let i=0,a=0;for(;a<r;){let l=e,s=null,c=0,u=null,d=-1,h=-1;for(;a<r&&(s=l.go(n[a]));)l=s,l.accepts()?(d=0,h=0,u=l):d>=0&&(d+=n[a].length,h++),c+=n[a].length,i+=n[a].length,a++;i-=d,a-=h,c-=d,o.push({t:u.t,v:t.slice(i-c,i),s:i-c,e:i})}return o}function TH(e,t,n,r,o){let i;const a=t.length;for(let n=0;n<a-1;n++){const a=t[n];e.j[a]?i=e.j[a]:(i=new hF(r),i.jr=o.slice(),e.j[a]=i),e=i}return i=new hF(n),i.jr=o.slice(),e.j[t[a-1]]=i,i}function MH(e){const t=[],n=[];let r=0;for(;r<e.length;){let o=0;for(;"0123456789".indexOf(e[r+o])>=0;)o++;if(o>0){t.push(n.join(""));for(let t=parseInt(e.substring(r,r+o),10);t>0;t--)n.pop();r+=o}else n.push(e[r]),r++}return t}const PH={defaultProtocol:"http",events:null,format:IH,formatHref:IH,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function NH(e,t=null){let n=Object.assign({},PH);e&&(n=Object.assign(n,e instanceof NH?e.o:e));const r=n.ignoreTags,o=[];for(let e=0;e<r.length;e++)o.push(r[e].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=o}function IH(e){return e}function OH(e,t){this.t="token",this.v=e,this.tk=t}function AH(e,t){class n extends OH{constructor(t,n){super(t,n),this.t=e}}for(const e in t)n.prototype[e]=t[e];return n.t=e,n}NH.prototype={o:PH,ignoreTags:[],defaultRender:e=>e,check(e){return this.get("validate",e.toString(),e)},get(e,t,n){const r=null!=t;let o=this.o[e];return o?("object"==typeof o?(o=n.t in o?o[n.t]:PH[e],"function"==typeof o&&r&&(o=o(t,n))):"function"==typeof o&&r&&(o=o(t,n.t,n)),o):o},getObj(e,t,n){let r=this.o[e];return"function"==typeof r&&null!=t&&(r=r(t,n.t,n)),r},render(e){const t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}},OH.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=PH.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,n=this.toHref(e.get("defaultProtocol")),r=e.get("formatHref",n,this),o=e.get("tagName",n,t),i=this.toFormattedString(e),a={},l=e.get("className",n,t),s=e.get("target",n,t),c=e.get("rel",n,t),u=e.getObj("attributes",n,t),d=e.getObj("events",n,t);return a.href=r,l&&(a.class=l),s&&(a.target=s),c&&(a.rel=c),u&&Object.assign(a,u),{tagName:o,attributes:a,content:i,eventListeners:d}}};const RH=AH("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),LH=AH("text"),BH=AH("nl"),zH=AH("url",{isLink:!0,toHref(e=PH.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==wF&&e[1].t===QF}}),DH=e=>new hF(e);function jH(e,t,n){const r=n[0].s,o=n[n.length-1].e;return new e(t.slice(r,o),n)}const FH={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function HH(){FH.scanner=function(e=[]){const t={};hF.groups=t;const n=new hF;null==SH&&(SH=MH("aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2")),null==EH&&(EH=MH("ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2")),gF(n,"'",GF),gF(n,"{",PF),gF(n,"}",NF),gF(n,"[",IF),gF(n,"]",OF),gF(n,"(",AF),gF(n,")",RF),gF(n,"<",LF),gF(n,">",BF),gF(n,"(",zF),gF(n,")",DF),gF(n,"「",jF),gF(n,"」",FF),gF(n,"『",HF),gF(n,"』",_F),gF(n,"<",WF),gF(n,">",KF),gF(n,"&",VF),gF(n,"*",qF),gF(n,"@",XF),gF(n,"`",YF),gF(n,"^",ZF),gF(n,":",QF),gF(n,",",JF),gF(n,"$",eH),gF(n,".",tH),gF(n,"=",nH),gF(n,"!",rH),gF(n,"-",oH),gF(n,"%",iH),gF(n,"|",aH),gF(n,"+",lH),gF(n,"#",sH),gF(n,"?",cH),gF(n,'"',uH),gF(n,"/",pH),gF(n,";",hH),gF(n,"~",fH),gF(n,"_",mH),gF(n,"\\",UF),gF(n,"・",dH);const r=fF(n,CH,$F,{[eF]:!0});fF(r,CH,r);const o=fF(r,bH,bF,{[rF]:!0}),i=fF(r,xH,xF,{[oF]:!0}),a=fF(n,bH,yF,{[tF]:!0});fF(a,CH,o),fF(a,bH,a),fF(o,CH,o),fF(o,bH,o);const l=fF(n,xH,vF,{[nF]:!0});fF(l,bH),fF(l,CH,i),fF(l,xH,l),fF(i,CH,i),fF(i,bH),fF(i,xH,i);const s=gF(n,"\n",MF,{[cF]:!0}),c=gF(n,"\r",TF,{[cF]:!0}),u=fF(n,kH,TF,{[cF]:!0});gF(n,"",u),gF(c,"\n",s),gF(c,"",u),fF(c,kH,u),gF(u,"\r"),gF(u,"\n"),fF(u,kH,u),gF(u,"",u);const d=fF(n,wH,gH,{[aF]:!0});gF(d,"#"),fF(d,wH,d),gF(d,"️",d);const h=gF(d,"");gF(h,"#"),fF(h,wH,d);const p=[[bH,a],[CH,o]],f=[[bH,null],[xH,l],[CH,i]];for(let e=0;e<SH.length;e++)TH(n,SH[e],CF,yF,p);for(let e=0;e<EH.length;e++)TH(n,EH[e],kF,vF,f);dF(CF,{tld:!0,ascii:!0},t),dF(kF,{utld:!0,alpha:!0},t),TH(n,"file",SF,yF,p),TH(n,"mailto",SF,yF,p),TH(n,"http",EF,yF,p),TH(n,"https",EF,yF,p),TH(n,"ftp",EF,yF,p),TH(n,"ftps",EF,yF,p),dF(SF,{scheme:!0,ascii:!0},t),dF(EF,{slashscheme:!0,ascii:!0},t),e=e.sort((e,t)=>e[0]>t[0]?1:-1);for(let t=0;t<e.length;t++){const r=e[t][0],o=e[t][1]?{[lF]:!0}:{[sF]:!0};r.indexOf("-")>=0?o[iF]=!0:bH.test(r)?CH.test(r)?o[rF]=!0:o[tF]=!0:o[eF]=!0,mF(n,r,r,o)}return mF(n,"localhost",wF,{ascii:!0}),n.jd=new hF(yH),{start:n,tokens:Object.assign({groups:t},vH)}}(FH.customSchemes);for(let e=0;e<FH.tokenQueue.length;e++)FH.tokenQueue[e][1]({scanner:FH.scanner});FH.parser=function({groups:e}){const t=e.domain.concat([VF,qF,XF,UF,YF,ZF,eH,nH,oH,$F,iH,aH,lH,sH,pH,yH,fH,mH]),n=[GF,QF,JF,tH,rH,iH,cH,uH,hH,LF,BF,PF,NF,OF,IF,AF,RF,zF,DF,jF,FF,HF,_F,WF,KF],r=[VF,GF,qF,UF,YF,ZF,eH,nH,oH,PF,NF,iH,aH,lH,sH,cH,pH,yH,fH,mH],o=DH(),i=gF(o,fH);pF(i,r,i),pF(i,e.domain,i);const a=DH(),l=DH(),s=DH();pF(o,e.domain,a),pF(o,e.scheme,l),pF(o,e.slashscheme,s),pF(a,r,i),pF(a,e.domain,a);const c=gF(a,XF);gF(i,XF,c),gF(l,XF,c),gF(s,XF,c);const u=gF(i,tH);pF(u,r,i),pF(u,e.domain,i);const d=DH();pF(c,e.domain,d),pF(d,e.domain,d);const h=gF(d,tH);pF(h,e.domain,d);const p=DH(RH);pF(h,e.tld,p),pF(h,e.utld,p),gF(c,wF,p);const f=gF(d,oH);gF(f,oH,f),pF(f,e.domain,d),pF(p,e.domain,d),gF(p,tH,h),gF(p,oH,f);const m=gF(a,oH),g=gF(a,tH);gF(m,oH,m),pF(m,e.domain,a),pF(g,r,i),pF(g,e.domain,a);const y=DH(zH);pF(g,e.tld,y),pF(g,e.utld,y),pF(y,e.domain,a),pF(y,r,i),gF(y,tH,g),gF(y,oH,m),gF(y,XF,c);const v=gF(y,QF),b=DH(zH);pF(v,e.numeric,b);const x=DH(zH),w=DH();pF(x,t,x),pF(x,n,w),pF(w,t,x),pF(w,n,w),gF(y,pH,x),gF(b,pH,x);const C=gF(l,QF),k=gF(s,QF),S=gF(k,pH),E=gF(S,pH);pF(l,e.domain,a),gF(l,tH,g),gF(l,oH,m),pF(s,e.domain,a),gF(s,tH,g),gF(s,oH,m),pF(C,e.domain,x),gF(C,pH,x),gF(C,cH,x),pF(E,e.domain,x),pF(E,t,x),gF(E,pH,x);const $=[[PF,NF],[IF,OF],[AF,RF],[LF,BF],[zF,DF],[jF,FF],[HF,_F],[WF,KF]];for(let e=0;e<$.length;e++){const[r,o]=$[e],i=gF(x,r);gF(w,r,i);const a=DH(zH);pF(i,t,a);const l=DH();pF(i,n,l),gF(i,o,x),pF(a,t,a),pF(a,n,l),pF(l,t,a),pF(l,n,l),gF(a,o,x),gF(l,o,x)}return gF(o,wF,y),gF(o,MF,BH),{start:o,tokens:vH}}(FH.scanner.tokens);for(let e=0;e<FH.pluginQueue.length;e++)FH.pluginQueue[e][1]({scanner:FH.scanner,parser:FH.parser});return FH.initialized=!0,FH}function _H(e){return FH.initialized||HH(),function(e,t,n){let r=n.length,o=0,i=[],a=[];for(;o<r;){let l=e,s=null,c=null,u=0,d=null,h=-1;for(;o<r&&!(s=l.go(n[o].t));)a.push(n[o++]);for(;o<r&&(c=s||l.go(n[o].t));)s=null,l=c,l.accepts()?(h=0,d=l):h>=0&&h++,o++,u++;if(h<0)o-=u,o<r&&(a.push(n[o]),o++);else{a.length>0&&(i.push(jH(LH,t,a)),a=[]),o-=h,u-=h;const e=d.t,r=n.slice(o-u,o);i.push(jH(e,t,r))}}return a.length>0&&i.push(jH(LH,t,a)),i}(FH.parser.start,e,$H(FH.scanner.start,e))}_H.scan=$H;var WH={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"'},KH=/^#[xX]([A-Fa-f0-9]+)$/,VH=/^#([0-9]+)$/,GH=/^([A-Za-z0-9]+)$/,qH=function(){function e(e){this.named=e}return e.prototype.parse=function(e){if(e){var t=e.match(KH);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(VH))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(GH))?this.named[t[1]]||"&"+t[1]+";":void 0}},e}(),XH=/[\t\n\f ]/,UH=/[A-Za-z]/,YH=/\r\n?/g;function ZH(e){return XH.test(e)}function QH(e){return UH.test(e)}var JH=function(){function e(e,t,n){void 0===n&&(n="precompile"),this.delegate=e,this.entityParser=t,this.mode=n,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var e=this.peek();if("<"!==e||this.isIgnoredEndTag()){if("precompile"===this.mode&&"\n"===e){var t=this.tagNameBuffer.toLowerCase();"pre"!==t&&"textarea"!==t||this.consume()}this.transitionTo("data"),this.delegate.beginData()}else this.transitionTo("tagOpen"),this.markTagStart(),this.consume()},data:function(){var e=this.peek(),t=this.tagNameBuffer;"<"!==e||this.isIgnoredEndTag()?"&"===e&&"script"!==t&&"style"!==t?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(e)):(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume())},tagOpen:function(){var e=this.consume();"!"===e?this.transitionTo("markupDeclarationOpen"):"/"===e?this.transitionTo("endTagOpen"):("@"===e||":"===e||QH(e))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(e))},markupDeclarationOpen:function(){var e=this.consume();"-"===e&&"-"===this.peek()?(this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment()):"DOCTYPE"===e.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase()&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())},doctype:function(){ZH(this.consume())&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var e=this.consume();ZH(e)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase()))},doctypeName:function(){var e=this.consume();ZH(e)?this.transitionTo("afterDoctypeName"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase())},afterDoctypeName:function(){var e=this.consume();if(!ZH(e))if(">"===e)this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var t=e.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),n="PUBLIC"===t.toUpperCase(),r="SYSTEM"===t.toUpperCase();(n||r)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),n?this.transitionTo("afterDoctypePublicKeyword"):r&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var e=this.peek();ZH(e)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):'"'===e?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):"'"===e?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):">"===e&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var e=this.consume();'"'===e?this.transitionTo("afterDoctypePublicIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},doctypePublicIdentifierSingleQuoted:function(){var e=this.consume();"'"===e?this.transitionTo("afterDoctypePublicIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},afterDoctypePublicIdentifier:function(){var e=this.consume();ZH(e)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===e?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===e&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var e=this.consume();ZH(e)||(">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===e?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===e&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var e=this.consume();'"'===e?this.transitionTo("afterDoctypeSystemIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},doctypeSystemIdentifierSingleQuoted:function(){var e=this.consume();"'"===e?this.transitionTo("afterDoctypeSystemIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},afterDoctypeSystemIdentifier:function(){var e=this.consume();ZH(e)||">"===e&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var e=this.consume();"-"===e&&"-"===this.peek()?this.transitionTo("commentStartDash"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(e),this.transitionTo("comment"))},commentStartDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var e=this.consume();"-"===e?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(e)},commentEndDash:function(){var e=this.consume();"-"===e&&"-"===this.peek()?this.delegate.appendToCommentData(e):"-"===e?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+e),this.transitionTo("comment"))},commentEnd:function(){var e=this.consume();">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+e),this.transitionTo("comment"))},tagName:function(){var e=this.consume();ZH(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();ZH(e)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):"/"===e?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(e)},beforeAttributeName:function(){var e=this.peek();ZH(e)?this.consume():"/"===e?(this.transitionTo("selfClosingStartTag"),this.consume()):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):"="===e?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var e=this.peek();ZH(e)?(this.transitionTo("afterAttributeName"),this.consume()):"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.transitionTo("beforeAttributeValue"),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):'"'===e||"'"===e||"<"===e?(this.delegate.reportSyntaxError(e+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(e)):(this.consume(),this.delegate.appendToAttributeName(e))},afterAttributeName:function(){var e=this.peek();ZH(e)?this.consume():"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.consume(),this.transitionTo("beforeAttributeValue")):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e))},beforeAttributeValue:function(){var e=this.peek();ZH(e)?this.consume():'"'===e?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):"'"===e?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(e))},attributeValueDoubleQuoted:function(){var e=this.consume();'"'===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueSingleQuoted:function(){var e=this.consume();"'"===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueUnquoted:function(){var e=this.peek();ZH(e)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"&"===e?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):">"===e?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(e))},afterAttributeValueQuoted:function(){var e=this.peek();ZH(e)?(this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.consume(),this.transitionTo("selfClosingStartTag")):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var e=this.consume();("@"===e||":"===e||QH(e))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(e))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(e){this.state=e},e.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},e.prototype.tokenizePart=function(e){for(this.input+=function(e){return e.replace(YH,"\n")}(e);this.index<this.input.length;){var t=this.states[this.state];if(void 0===t)throw new Error("unhandled state "+this.state);t.call(this)}},e.prototype.tokenizeEOF=function(){this.flushData()},e.prototype.flushData=function(){"data"===this.state&&(this.delegate.finishData(),this.transitionTo("beforeData"))},e.prototype.peek=function(){return this.input.charAt(this.index)},e.prototype.consume=function(){var e=this.peek();return this.index++,"\n"===e?(this.line++,this.column=0):this.column++,e},e.prototype.consumeCharRef=function(){var e=this.input.indexOf(";",this.index);if(-1!==e){var t=this.input.slice(this.index,e),n=this.entityParser.parse(t);if(n){for(var r=t.length;r;)this.consume(),r--;return this.consume(),n}}},e.prototype.markTagStart=function(){this.delegate.tagOpen()},e.prototype.appendToTagName=function(e){this.tagNameBuffer+=e,this.delegate.appendToTagName(e)},e.prototype.isIgnoredEndTag=function(){var e=this.tagNameBuffer;return"title"===e&&"</title>"!==this.input.substring(this.index,this.index+8)||"style"===e&&"</style>"!==this.input.substring(this.index,this.index+8)||"script"===e&&"<\/script>"!==this.input.substring(this.index,this.index+9)},e}(),e_=function(){function e(e,t){void 0===t&&(t={}),this.options=t,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new JH(this,e,t.mode),this._currentAttribute=void 0}return e.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},e.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var e=this.token;if(null===e)throw new Error("token was unexpectedly null");if(0===arguments.length)return e;for(var t=0;t<arguments.length;t++)if(e.type===arguments[t])return e;throw new Error("token type was unexpectedly "+e.type)},e.prototype.push=function(e){this.token=e,this.tokens.push(e)},e.prototype.currentAttribute=function(){return this._currentAttribute},e.prototype.addLocInfo=function(){this.options.loc&&(this.current().loc={start:{line:this.startLine,column:this.startColumn},end:{line:this.tokenizer.line,column:this.tokenizer.column}}),this.startLine=this.tokenizer.line,this.startColumn=this.tokenizer.column},e.prototype.beginDoctype=function(){this.push({type:"Doctype",name:""})},e.prototype.appendToDoctypeName=function(e){this.current("Doctype").name+=e},e.prototype.appendToDoctypePublicIdentifier=function(e){var t=this.current("Doctype");void 0===t.publicIdentifier?t.publicIdentifier=e:t.publicIdentifier+=e},e.prototype.appendToDoctypeSystemIdentifier=function(e){var t=this.current("Doctype");void 0===t.systemIdentifier?t.systemIdentifier=e:t.systemIdentifier+=e},e.prototype.endDoctype=function(){this.addLocInfo()},e.prototype.beginData=function(){this.push({type:"Chars",chars:""})},e.prototype.appendToData=function(e){this.current("Chars").chars+=e},e.prototype.finishData=function(){this.addLocInfo()},e.prototype.beginComment=function(){this.push({type:"Comment",chars:""})},e.prototype.appendToCommentData=function(e){this.current("Comment").chars+=e},e.prototype.finishComment=function(){this.addLocInfo()},e.prototype.tagOpen=function(){},e.prototype.beginStartTag=function(){this.push({type:"StartTag",tagName:"",attributes:[],selfClosing:!1})},e.prototype.beginEndTag=function(){this.push({type:"EndTag",tagName:""})},e.prototype.finishTag=function(){this.addLocInfo()},e.prototype.markTagAsSelfClosing=function(){this.current("StartTag").selfClosing=!0},e.prototype.appendToTagName=function(e){this.current("StartTag","EndTag").tagName+=e},e.prototype.beginAttribute=function(){this._currentAttribute=["","",!1]},e.prototype.appendToAttributeName=function(e){this.currentAttribute()[0]+=e},e.prototype.beginAttributeValue=function(e){this.currentAttribute()[2]=e},e.prototype.appendToAttributeValue=function(e){this.currentAttribute()[1]+=e},e.prototype.finishAttributeValue=function(){this.current("StartTag").attributes.push(this._currentAttribute)},e.prototype.reportSyntaxError=function(e){this.current().syntaxError=e},e}();const t_="LinkifyResult",n_="StartTag",r_="EndTag",o_="Chars";function i_(e,t={}){const n=function(e,t){return new e_(new qH(WH),t).tokenize(e)}(e),r=[],o=[],i=new NH(t,s_);for(let e=0;e<n.length;e++){const t=n[e];if(t.type===n_){r.push(t);const o=t.tagName.toUpperCase();if(!("A"===o||i.ignoreTags.indexOf(o)>=0))continue;let a=r.length;l_(o,n,++e,r),e+=r.length-a-1}else if(t.type!==o_)r.push(t);else{const e=a_(t.chars,i);r.push.apply(r,e)}}for(let e=0;e<r.length;e++){const t=r[e];switch(t.type){case t_:o.push(t.rendered);break;case n_:{let e="<"+t.tagName;t.attributes.length>0&&(e+=" "+d_(t.attributes).join(" ")),t.selfClosing&&(e+=" /"),e+=">",o.push(e);break}case r_:o.push(`</${t.tagName}>`);break;case o_:o.push(c_(t.chars));break;case"Comment":o.push(`\x3c!--${c_(t.chars)}--\x3e`);break;case"Doctype":{let e=`<!DOCTYPE ${t.name}`;t.publicIdentifier&&(e+=` PUBLIC "${t.publicIdentifier}"`),t.systemIdentifier&&(e+=` "${t.systemIdentifier}"`),e+=">",o.push(e);break}}}return o.join("")}function a_(e,t){const n=_H(e),r=[];for(let e=0;e<n.length;e++){const o=n[e];"nl"===o.t&&t.get("nl2br")?r.push({type:n_,tagName:"br",attributes:[],selfClosing:!0}):o.isLink&&t.check(o)?r.push({type:t_,rendered:t.render(o)}):r.push({type:o_,chars:o.toString()})}return r}function l_(e,t,n,r){let o=1;for(;n<t.length&&o>0;){let i=t[n];i.type===n_&&i.tagName.toUpperCase()===e?o++:i.type===r_&&i.tagName.toUpperCase()===e&&o--,r.push(i),n++}return r}function s_({tagName:e,attributes:t,content:n}){return`<${e} ${function(e){const t=[];for(const n in e){const r=e[n]+"";t.push(`${n}="${u_(r)}"`)}return t.join(" ")}(t)}>${c_(n)}</${e}>`}function c_(e){return e.replace(/</g,"<").replace(/>/g,">")}function u_(e){return e.replace(/"/g,""")}function d_(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n][0],o=e[n][1]+"";t.push(`${r}="${u_(o)}"`)}return t}const h_=e=>{const t=e?e.toUpperCase():"";return["HOLOTYPE","LECTOTYPE","NEOTYPE"].includes(t)?"#e2614a":["PARATYPE","PARALECTOTYPE","SYNTYPE"].includes(t)?"#f1eb0b":["ALLOTYPE"].includes(t)?"#7edaff":null},p_=(e,t)=>{var n;let r=(null==e?void 0:e.gbifKey)&&(null==e?void 0:e.gbifPublisherKey)===(null==gR?void 0:gR.plaziGbifPublisherKey)?`https://www.gbif.org/occurrence/${null==e?void 0:e.gbifKey}/${t.id}`:"";!r&&(null==(n=null==t?void 0:t.link)?void 0:n.startsWith("https://www.gbif.org/occurrence/"))&&(r=null==t?void 0:t.link);const o=(null==t?void 0:t.associatedSequences)&&(null==t?void 0:t.associatedSequences.indexOf("ncbi."))>-1?null==t?void 0:t.associatedSequences:"";return(r||o)&&j.jsx("span",{id:`${t.id}-type-material-links`,children:j.jsxs(CC,{children:[r&&j.jsx(Jy,{title:"Occurrence in GBIF",getPopupContainer:()=>document.getElementById(`${t.id}-type-material-links`)||document.body,children:j.jsxs("a",{style:{marginLeft:4},href:r,target:"_blank",rel:"noreferrer",children:["GBIF ",j.jsx(iL,{})]})}),o&&j.jsx(Jy,{title:"DNA sequence in GenBank",children:j.jsxs("a",{href:o,target:"_blank",rel:"noreferrer",children:["GenBank ",j.jsx(iL,{})]})})]})})},f_=({dataset:e,data:t,nameID:n,style:r})=>t[n]?j.jsx("div",{style:r,children:t[n].map(t=>j.jsxs(Zj,{children:[j.jsx(xP,{color:h_(null==t?void 0:t.status),children:null==t?void 0:t.status})," ",t.merged&&j.jsx(OR,{createdBy:null==t?void 0:t.createdBy,datasetKey:null==t?void 0:t.datasetKey,verbatimSourceKey:null==t?void 0:t.verbatimSourceKey,sourceDatasetKey:null==t?void 0:t.sourceDatasetKey}),p_(e,t)," ",(null==t?void 0:t.citation)&&j.jsx("span",{dangerouslySetInnerHTML:{__html:i_((null==t?void 0:t.citation)||"")}})]},t.id))}):null;class m_ extends m.Component{constructor(e){super(e),o(this,"getData",()=>{const{nameId:e,datasetKey:t,references:n}=this.props;if(referenceId){const r=VP(referenceId)?referenceId:[referenceId],o=[];this.setState({loading:!0}),Promise.all(r.map(r=>zI(n,r)?Promise.resolve(o.push(n[e])):fR(`${gR.dataApi}dataset/${t}/name/${encodeURIComponent(e)}/types`).then(e=>o.push(e.data)))).then(()=>this.setState({typeMaterial:o,loading:!1}))}}),o(this,"getContent",()=>{const{typeMaterial:e,nameId:t}=this.props,n=(null==e?void 0:e[t])||[];if(n.length>0)return j.jsx("div",{children:n.map(e=>j.jsxs("div",{style:{marginBottom:"8px"},children:[j.jsx(xP,{color:h_(null==e?void 0:e.status),children:null==e?void 0:e.status}),e.merged&&j.jsxs(j.Fragment,{children:[j.jsx(OR,{})," "]}),(null==e?void 0:e.citation)&&j.jsx("span",{dangerouslySetInnerHTML:{__html:i_((null==e?void 0:e.citation)||"")}})]},e.id))})}),o(this,"render",()=>{const{typeMaterial:e,nameId:t}=this.props;return((null==e?void 0:e[t])||[]).length>0?j.jsxs(iv,{getPopupContainer:()=>document.getElementById(`type_popover_${t}`),placement:this.props.placement||"left",title:"Type Material",content:j.jsx("div",{style:{maxWidth:"500px"},children:this.getContent()}),trigger:"click",children:[" ",j.jsx(pL,{style:{cursor:"pointer"},id:`type_popover_${t}`})]}):""}),this.state={typeMaterial:[],loading:!1,error:null}}}const g_=({total:e,visible:t,showAll:n,onChange:r})=>e<=t&&!n?null:j.jsx("a",{onClick:()=>r(!n),style:{cursor:"pointer"},children:n?"Show less":`Show all (${e})`}),y_=({datasetKey:e,data:t,style:n,nomStatus:r,references:o,decisions:i,typeMaterial:a,referenceIndexMap:l,primarySource:s})=>{const[c,u]=f.useState(!1),d=(e,t)=>zI(e,"name.combinationAuthorship.year")&&zI(t,"name.combinationAuthorship.year")?zI(t,"name.combinationAuthorship.year")-zI(e,"name.combinationAuthorship.year"):zI(e,"name.scientificName")<zI(t,"name.scientificName")?-1:1,h=[];t.homotypic&&[...t.homotypic].sort(d).forEach(e=>{h.push({syn:e,homotypic:!0,indent:!1})}),t.heterotypicGroups&&[...t.heterotypicGroups].sort((e,t)=>d(e[0],t[0])).forEach(e=>{e.forEach((e,t)=>{h.push({syn:e,homotypic:t>0,indent:t>0})})});const p=h.length,m=c?h:h.slice(0,5);return j.jsxs("div",{style:n,children:[m.map(({syn:t,homotypic:n,indent:c})=>{return j.jsxs(Zj,{children:[j.jsxs("span",{style:c?{marginLeft:"10px"}:null,children:[!0===n?"≡ ":"= "," ",j.jsx("span",{dangerouslySetInnerHTML:{__html:zI(t,"labelHtml",`${zI(t,"name.scientificName")} ${zI(t,"name.authorship","")}`)}})]})," ",(null==t?void 0:t.sourceDatasetKey)&&zI(s,"key")!==(null==t?void 0:t.sourceDatasetKey)&&j.jsx(OR,{createdBy:null==t?void 0:t.createdBy,datasetKey:t.datasetKey,sourceDatasetKey:null==t?void 0:t.sourceDatasetKey,verbatimSourceKey:t.verbatimSourceKey})," ",(null==i?void 0:i[null==t?void 0:t.id])&&j.jsx(Jj,{decision:null==i?void 0:i[null==t?void 0:t.id]}),j.jsx(m_,{datasetKey:e,typeMaterial:a,nameId:zI(t,"name.id"),placement:"top"})," ",zI(t,"name.nomStatus")?`(${u=t,r?r[zI(u,"name.nomStatus")][zI(u,"name.code"),"zoological"]:zI(u,"name.nomStatus")})`:""," ","misapplied"===zI(t,"status")&&zI(t,"accordingTo")?zI(t,"accordingTo"):"","ambiguous synonym"===zI(t,"status")&&"(Ambiguous)",j.jsx(Qj,{datasetKey:e,references:o,referenceIndexMap:l,referenceId:zI(t,"name.publishedInId")?[zI(t,"name.publishedInId"),...t.referenceIds||[]]:t.referenceIds,placement:"top",style:{display:"inline-block"}})]},zI(t,"name.id"));var u}),j.jsx(g_,{total:p,visible:5,showAll:c,onChange:u})]})};class v_ extends m.Component{constructor(e){super(e),o(this,"componentDidMount",()=>{const{data:e}=this.props;fL().then(t=>{const n={},r={};t.forEach(e=>{n[e.alpha3]=e,r[e.alpha2]=e});const o=e.map(e=>this.decorateWithCountryByCode(e,r,n));return this.setState({data:o}),Promise.all(o.map(this.decorateWithLanguageByCode))}).then(()=>{this.state.data.sort((e,t)=>e.languageName>t.languageName?1:-1),this.setState({data:[...this.state.data]})})}),o(this,"decorateWithCountryByCode",(e,t,n)=>t&&e.country&&2===e.country.length?{...e,countryTitle:zI(t,`[${e.country}].title`)||""}:n&&e.country&&3===e.country.length?{...e,countryTitle:zI(n,`[${e.country}].title`)||""}:e),o(this,"decorateWithLanguageByCode",e=>e.language?fR(`${gR.dataApi}vocab/language/${e.language}`).then(t=>{e.languageName=t.data}).catch(e=>console.log(e)):Promise.resolve());const{references:t}=this.props;this.state={data:this.props.data?[...this.props.data]:[],showAll:!1,countryAlpha3:{},countryAlpha2:{},columns:[{title:"",dataIndex:"merged",key:"merged",width:12,render:(e,t)=>(null==t?void 0:t.merged)?j.jsx(OR,{createdBy:null==t?void 0:t.createdBy,datasetKey:null==t?void 0:t.datasetKey,verbatimSourceKey:null==t?void 0:t.verbatimSourceKey,sourceDatasetKey:null==t?void 0:t.sourceDatasetKey}):""},{title:"Original name",dataIndex:"name",key:"name"},{title:"Transliterated name",dataIndex:"latin",key:"latin"},{title:"Language",dataIndex:"language",key:"language",render:(e,t)=>t.languageName?t.languageName:e},{title:"Country of use",dataIndex:"country",key:"country",render:(e,t)=>t.countryTitle?t.countryTitle:e},{title:"",dataIndex:"referenceId",key:"referenceId",render:(e,n)=>e?j.jsx(Qj,{referenceId:e,references:t,datasetKey:this.props.datasetKey,placement:"left"}):""}]}}render(){const{style:e}=this.props,{data:t,columns:n,showAll:r}=this.state,o=r?t:t.slice(0,5);return j.jsxs(j.Fragment,{children:[j.jsx(cP,{style:e,className:"colplus-taxon-page-list",columns:n,dataSource:o,rowKey:"id",pagination:!1,size:"middle"}),j.jsx(g_,{total:t.length,visible:5,showAll:r,onChange:e=>this.setState({showAll:e})})]})}}const b_=qj({tip:{color:"rgba(0,0,0,.45)",marginLeft:"4px"},icon:{marginTop:"4px"}})(({title:e,classes:t})=>j.jsx(m.Fragment,{children:e&&j.jsx("span",{className:t.tip,children:j.jsx(Jy,{title:e,getPopupContainer:()=>document.getElementsByClassName("catalogue-of-life")[0],children:j.jsx(UC,{className:t.icon})})})})),x_=({label:e,helpText:t,classes:n,children:r,width:o,md:i,size:a})=>{const l=i||8,s=l<24?24-l:24,c="medium"===a?n.mediumMargin:n.smallMargin;return j.jsxs(Lw,{className:n.formItem,children:[j.jsx(Aw,{sm:24,md:l,style:o<2?{marginBottom:0}:{},className:c,children:j.jsx("div",{children:j.jsxs("dt",{className:n.label,children:[e,j.jsx(b_,{title:t})]})})}),j.jsx(Aw,{sm:24,md:s,style:o<2?{marginTop:0}:{},className:c,children:(()=>{let e;return Array.isArray(r)&&r.length>0?e=r.map((e,t)=>j.jsx("span",{className:n.content,children:e},t)):Array.isArray(r)||void 0===r||(e=j.jsx("span",{className:n.content,children:r})),e})()})]})};x_.propTypes={label:yB.string.isRequired,helpText:yB.object};const w_=Yj()(qj({formItem:{paddingBottom:0,width:"100%",clear:"both",borderBottom:"1px solid #eee","&:last-of-type":{border:"none"},"&>div":{paddingLeft:10,paddingRight:10}},label:{display:"block",color:"rgba(0, 0, 0, 0.85)"},content:{wordBreak:"break-word",marginBottom:0},noContent:{wordBreak:"break-word",color:"#bbb",marginBottom:0},contentCol:{wordBreak:"break-word"},smallMargin:{marginBottom:3,marginTop:3},mediumMargin:{marginBottom:10,marginTop:10}})(x_)),C_=["subspecies","variety","subvariety","form","subform","infraspecific name"],k_=(e,t)=>{const n=t.indexOf(e);return-1===n?[]:C_.filter(e=>t.indexOf(e)>n)},S_=e=>{var t,n;return"text"!==(null==(t=null==e?void 0:e.area)?void 0:t.gazetteer)&&!!(null==(n=null==e?void 0:e.area)?void 0:n.globalId)},E_=async({datasetKey:e,focalTaxon:t,rankOrder:n})=>{var r;const o=k_(null==(r=null==t?void 0:t.name)?void 0:r.rank,n);let i=!1,a=[];try{a=await(async(e,t,n)=>{var r;if(0===n.length)return[];const o=new URLSearchParams;o.append("TAXON_ID",t),n.forEach(e=>o.append("rank",e)),["accepted","provisionally accepted"].forEach(e=>o.append("status",e)),o.append("limit","1000");const i=`${gR.dataApi}dataset/${e}/nameusage/search?${o}`,a=await fR(i);return((null==(r=null==a?void 0:a.data)?void 0:r.result)||[]).filter(e=>{var t;return null==(t=null==e?void 0:e.usage)?void 0:t.id}).map(e=>{var t,n,r,o,i,a;return{id:e.usage.id,scientificName:(null==(n=null==(t=e.usage)?void 0:t.name)?void 0:n.scientificName)||(null==(r=e.usage)?void 0:r.label)||e.usage.id,rank:null==(i=null==(o=e.usage)?void 0:o.name)?void 0:i.rank,parentId:null==(a=e.usage)?void 0:a.parentId}})})(e,t.id,o)}catch{return i=!0,{taxa:[],descendantsFailed:i}}const l=await(async(e,t,n)=>{const r=new Array(e.length);let o=0;const i=Array.from({length:Math.min(n,e.length)},async()=>{for(;;){const n=o++;if(n>=e.length)return;r[n]=await t(e[n],n)}});return await Promise.all(i),r})(a,t=>(async(e,t)=>{const n=`${gR.dataApi}dataset/${e}/taxon/${encodeURIComponent(t)}/distribution`;try{const e=await fR(n);return Array.isArray(null==e?void 0:e.data)?e.data:[]}catch{return[]}})(e,t.id),16);return{taxa:a.map((e,t)=>{const n=l[t]||[];return{...e,distributions:n,mappable:n.filter(S_)}}),descendantsFailed:i}},$_=["#E58606","#5D69B1","#52BCA3","#99C945","#CC61B0","#24796C","#DAA51B","#2F8AC4","#764E9F","#ED645A","#CC3A8E","#A5AA99"],T_=(e,t)=>{const n=t.indexOf(e);return-1===n?t.length:n},M_={position:"absolute",bottom:8,left:8,zIndex:1e3,background:"#fff",borderRadius:4,boxShadow:"0 1px 4px rgba(0,0,0,0.2)",padding:"6px 8px",fontSize:12,lineHeight:1.5,maxWidth:260},P_={maxHeight:240,overflowY:"auto"},N_={fontWeight:600,marginTop:4},I_={...N_,marginTop:0},O_={display:"flex",alignItems:"center",gap:6,paddingLeft:4},A_=e=>({display:"inline-block",width:12,height:12,background:e,border:"1px solid rgba(0,0,0,0.15)",borderRadius:2,flex:"0 0 auto"}),R_={marginTop:6,cursor:"pointer",color:"#1890ff",fontSize:11},L_={marginTop:4,borderTop:"1px solid #eee",paddingTop:4,color:"#666"},B_={fontWeight:600,marginTop:4},z_={...B_,marginTop:0},D_={fontStyle:"italic",paddingLeft:4},j_=e=>e.reduce((e,t)=>e+t.taxa.length,0),F_=()=>j.jsxs("div",{style:O_,children:[j.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12","aria-hidden":"true",children:j.jsx("polygon",{points:"3,1 9,1 11,6 9,11 3,11 1,6",fill:"#de1e6e",stroke:"rgba(0,0,0,0.25)",strokeWidth:"0.75"})}),j.jsx("span",{children:"GBIF occurrences"})]}),H_=({visibleGroups:e,unmappableGroups:t,showGbif:n})=>{const[r,o]=f.useState(!1),i=j_(e),a=j_(t);return 0!==i||0!==a||n?j.jsxs("div",{style:M_,children:[j.jsxs("div",{style:P_,children:[e.map((e,t)=>j.jsxs("div",{children:[j.jsx("div",{style:0===t?I_:N_,children:e.label}),e.taxa.map(e=>j.jsxs("div",{style:O_,children:[j.jsx("span",{style:A_(e.color)}),j.jsx("span",{style:{fontStyle:"italic"},children:e.displayName||e.scientificName})]},e.id))]},e.rank)),n&&j.jsx(F_,{})]}),a>0&&j.jsxs(j.Fragment,{children:[j.jsxs("div",{style:R_,onClick:()=>o(e=>!e),children:[r?"− Hide":"+"," ",a," without map data"]}),r&&j.jsx("div",{style:L_,children:t.map((e,t)=>j.jsxs("div",{children:[j.jsx("div",{style:0===t?z_:B_,children:e.label}),e.taxa.map(e=>j.jsx("div",{style:D_,children:e.displayName||e.scientificName},e.id))]},e.rank))})]})]}):null},__=["establishmentMeans","degreeOfEstablishment","pathway","threatStatus","year","lifeStage"],W_=[{key:"nativeendemic",label:"Native endemic",color:"#0F8554"},{key:"native",label:"Native",color:"#87C55F"},{key:"nativereintroduced",label:"Native reintroduced",color:"#C9DB74"},{key:"introduced",label:"Introduced",color:"#FE88B1"},{key:"introducedassistedcolonisation",label:"Introduced assisted colonisation",color:"#DCB0F2"},{key:"vagrant",label:"Vagrant",color:"#F6CF71"},{key:"uncertain",label:"Uncertain",color:"#8BE0A4"}],K_=Object.fromEntries(W_.map(e=>[e.key,e.color])),V_="#66C5CC",G_=e=>{const t=null==e?void 0:e.establishmentMeans;if(null==t||""===t)return null;const n=String(t||"").toLowerCase().replace(/[^a-z]/g,"");return K_[n]?n:"uncertain"},q_="gbif-visible",X_=e=>XR(q_,e),U_="col-focal-distributions",Y_="col-focal-fill",Z_="col-focal-line",Q_="col-gbif-occurrences",J_="col-gbif-occurrences",eW=e=>`col-descendant-${e}`,tW=e=>`col-descendant-fill-${e}`,nW=e=>`col-descendant-line-${e}`,rW=new Map,oW=(e,t)=>{const n=`${e}:${t}`;if(rW.has(n))return rW.get(n);const r=fR(`${gR.dataApi}vocab/area/${n}`,{headers:{Accept:"application/geo+json"}}).then(e=>e.data,()=>null);return rW.set(n,r),r},iW=e=>String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""),aW=e=>{var t,n;const r=(null==(t=null==e?void 0:e.area)?void 0:t.name)||(null==(n=null==e?void 0:e.area)?void 0:n.globalId)||"",o=__.map(t=>[t,null==e?void 0:e[t]]).filter(([,e])=>null!=e&&""!==e).map(([e,t])=>`<div><strong>${iW(e)}:</strong> ${iW(t)}</div>`).join("");return`<div style="min-width:180px"><div style="font-weight:600;margin-bottom:4px">${iW(r)}</div>${o}</div>`},lW={subspecies:"subspecies",variety:"varieties",subvariety:"subvarieties",form:"forms",subform:"subforms","infraspecific name":"infraspecific names"},sW=e=>lW[e]||e,cW=e=>{if(!e)return"";const t=e.trim().split(/\s+/);return t[t.length-1]},uW=()=>j.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[j.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12","aria-hidden":"true",children:j.jsx("polygon",{points:"3,1 9,1 11,6 9,11 3,11 1,6",fill:"#de1e6e",stroke:"rgba(0,0,0,0.25)",strokeWidth:"0.75"})}),j.jsx("span",{children:"GBIF occurrences"})]}),dW=e=>e?"FeatureCollection"===e.type?e.features||[]:[e]:[],hW=()=>"function"==typeof(null==e?void 0:e.supported)?e.supported():"undefined"!=typeof WebGLRenderingContext,pW=({records:t,onUnmappable:n,datasetKey:r,focalTaxon:o,rankOrder:i,gbifChecklistKey:a,gbifAvailable:l=!0})=>{var s;const c=f.useRef(null),u=f.useRef(null),d=f.useRef(null),h=f.useRef(new Map),p=f.useRef(new Map),m=f.useRef(new Map),g=f.useRef(!1),y=f.useRef(!1),v=f.useRef(new Set),[b,x]=f.useState(!1),[w,C]=f.useState(!1),[k,S]=f.useState({status:"idle",taxa:[]}),[E,$]=f.useState(!0),T=!(!a||t&&0!==t.length),[M,P]=f.useState(()=>qR(q_,!0)),[N,I]=f.useState(new Set),[O,A]=f.useState(!1),R=f.useRef(!1),L=()=>{P(!0),X_(!0)},B=f.useMemo(()=>{if(!(null==t?void 0:t.length))return[];const e=new Set;return t.forEach(t=>{const n=G_(t);null!=n&&e.add(n)}),W_.filter(t=>e.has(t.key))},[t]),z=f.useMemo(()=>"ready"!==k.status?{}:((e,t)=>{const n=[...e].sort((e,n)=>{const r=T_(e.rank,t),o=T_(n.rank,t);return r!==o?r-o:e.scientificName.localeCompare(n.scientificName)}),r={};return n.forEach((e,t)=>{r[e.id]=$_[t%$_.length]}),r})(k.taxa.filter(e=>e.mappable.length>0),i||[]),[k,i]),D=f.useMemo(()=>{if("ready"!==k.status)return{visibleGroups:[],unmappableGroups:[]};const e=e=>{const t={};return e.forEach(e=>{(t[e.rank]=t[e.rank]||[]).push((e=>({...e,color:z[e.id],displayName:cW(e.scientificName)}))(e))}),C_.filter(e=>t[e]).map(e=>({rank:e,label:sW(e),taxa:t[e]}))};return{visibleGroups:e(k.taxa.filter(e=>e.mappable.length>0&&N.has(e.id))),unmappableGroups:e(k.taxa.filter(e=>0===e.mappable.length))}},[k,z,N]),F=D.visibleGroups.length>0;f.useEffect(()=>{if(!c.current||u.current)return;if(!hW())return;const t=new e.Map({container:c.current,style:"https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",center:[0,20],zoom:1,minZoom:0,attributionControl:!1,renderWorldCopies:!0});t.addControl(new e.AttributionControl({compact:!0}),"bottom-right"),t.addControl(new e.NavigationControl({showCompass:!1}),"top-left"),u.current=t,t.on("load",()=>{x(!0);const e=t.getContainer().querySelector(".maplibregl-ctrl-attrib");e&&e.classList.remove("maplibregl-compact-show")});const n="undefined"!=typeof ResizeObserver?new ResizeObserver(()=>t.resize()):null;return n&&n.observe(c.current),()=>{n&&n.disconnect(),d.current&&(d.current.remove(),d.current=null),t.remove(),u.current=null,g.current=!1,y.current=!1,v.current=new Set}},[]),f.useEffect(()=>{if(!b||!(null==t?void 0:t.length))return;const e=u.current;if(!e)return;let r=!1;return C(!1),Promise.allSettled(t.map(e=>oW(e.area.gazetteer,e.area.id).then(t=>({record:e,geojson:t})))).then(t=>{if(r)return;const o=[],i=new Map;let a=0;t.forEach((e,t)=>{if("fulfilled"!==e.status||!e.value.geojson)return void(a+=1);const{record:n,geojson:r}=e.value,l=(e=>{const t=G_(e);return null==t?V_:K_[t]})(n),s=`focal-${t}`;i.set(s,n),dW(r).forEach(e=>{o.push({...e,properties:{...e.properties||{},_recordKey:s,_color:l}})})}),h.current=i;const l={type:"FeatureCollection",features:o};if(e.getSource(U_))e.getSource(U_).setData(l);else{const t=e.getLayer(J_)?J_:void 0;e.addSource(U_,{type:"geojson",data:l}),e.addLayer({id:Y_,type:"fill",source:U_,paint:{"fill-color":["coalesce",["get","_color"],V_],"fill-opacity":.65}},t),e.addLayer({id:Z_,type:"line",source:U_,paint:{"line-color":["coalesce",["get","_color"],V_],"line-width":1}},t),e.on("click",Y_,H),e.on("mouseenter",Y_,_),e.on("mouseleave",Y_,W),g.current=!0}if(o.length>0){const t=(e=>{var t;let n=1/0,r=1/0,o=-1/0,i=-1/0;const a=e=>{if("number"==typeof e[0]){const[t,a]=e;t<n&&(n=t),t>o&&(o=t),a<r&&(r=a),a>i&&(i=a)}else for(let t=0;t<e.length;t++)a(e[t])};for(let n=0;n<e.length;n++){const r=null==(t=e[n])?void 0:t.geometry;(null==r?void 0:r.coordinates)&&a(r.coordinates)}return n===1/0?null:[[n,r],[o,i]]})(o);t&&e.fitBounds(t,{padding:20,animate:!1})}"function"==typeof n&&n(a),C(!0)}),()=>{r=!0}},[b,t]);const H=t=>{var n,r;const o=u.current;if(!o)return;const i=null==(n=t.features)?void 0:n[0],a=null==(r=null==i?void 0:i.properties)?void 0:r._recordKey,l=a?h.current.get(a):null;l&&(d.current&&d.current.remove(),d.current=new e.Popup({closeButton:!0,maxWidth:"320px"}).setLngLat(t.lngLat).setHTML(aW(l)).addTo(o))},_=()=>{const e=u.current;e&&(e.getCanvas().style.cursor="pointer")},W=()=>{const e=u.current;e&&(e.getCanvas().style.cursor="")};f.useEffect(()=>{const e=u.current;if(!e||!g.current)return;const t=E?"visible":"none";e.getLayer(Y_)&&e.setLayoutProperty(Y_,"visibility",t),e.getLayer(Z_)&&e.setLayoutProperty(Z_,"visibility",t)},[E,w]),f.useEffect(()=>{if(!b)return;const e=u.current;if(!e)return;if(e.getLayer(J_)&&e.removeLayer(J_),e.getSource(Q_)&&e.removeSource(Q_),y.current=!1,!a||!(null==o?void 0:o.id))return;if(!1===l)return;const t=(gR.gbifApi+"/v2/map/occurrence/density/{z}/{x}/{y}@1x.png?srs=EPSG%3A3857&style=iNaturalist.poly&bin=hex&hexPerTile=64&hasCoordinate=true&hasGeospatialIssue=false&occurrenceStatus=PRESENT&checklistKey={checklistKey}&taxonKey={taxonKey}").replace("{checklistKey}",encodeURIComponent(a)).replace("{taxonKey}",encodeURIComponent(o.id)),n=gR.gbifPortal+"/occurrence/search?checklist_key="+encodeURIComponent(a)+"&taxon_key="+encodeURIComponent(o.id);e.addSource(Q_,{type:"raster",tiles:[t],tileSize:256,attribution:'<a href="'+n+'" target="_blank" rel="noopener">GBIF</a> occurrence data'}),e.addLayer({id:J_,type:"raster",source:Q_,paint:{"raster-opacity":.9},layout:{visibility:M?"visible":"none"}}),y.current=!0},[b,a,null==o?void 0:o.id,l]),f.useEffect(()=>{const e=u.current;if(!e||!y.current)return;const t=M?"visible":"none";e.getLayer(J_)&&e.setLayoutProperty(J_,"visibility",t)},[M]),f.useEffect(()=>{if(!b)return;const e=u.current;if(!e)return;if(v.current.forEach(t=>{e.getLayer(tW(t))&&e.removeLayer(tW(t)),e.getLayer(nW(t))&&e.removeLayer(nW(t)),e.getSource(eW(t))&&e.removeSource(eW(t))}),v.current=new Set,p.current=new Map,m.current=new Map,"ready"!==k.status)return;const t=z;k.taxa.forEach(e=>{0!==e.mappable.length&&(p.current.set(e.id,e),Promise.allSettled(e.mappable.map(e=>oW(e.area.gazetteer,e.area.id).then(t=>({record:e,geojson:t})))).then(n=>{if(!u.current)return;const r=[];n.forEach((t,n)=>{if("fulfilled"!==t.status||!t.value.geojson)return;const{record:o,geojson:i}=t.value,a=`desc-${e.id}-${n}`;m.current.set(a,{taxon:e,record:o}),dW(i).forEach(e=>{r.push({...e,properties:{...e.properties||{},_recordKey:a}})})});const o=t[e.id]||V_,i={type:"FeatureCollection",features:r},a=eW(e.id);if(u.current.getSource(a))u.current.getSource(a).setData(i);else{u.current.addSource(a,{type:"geojson",data:i});const t=tW(e.id),n=nW(e.id),r=u.current.getLayer(J_)?J_:void 0;u.current.addLayer({id:t,type:"fill",source:a,paint:{"fill-color":o,"fill-opacity":.55},layout:{visibility:"none"}},r),u.current.addLayer({id:n,type:"line",source:a,paint:{"line-color":o,"line-width":2},layout:{visibility:"none"}},r),u.current.on("click",t,K),u.current.on("mouseenter",t,_),u.current.on("mouseleave",t,W),v.current.add(e.id)}}))})},[b,k,z]);const K=t=>{var n,r;const o=u.current;if(!o)return;const i=null==(n=t.features)?void 0:n[0],a=null==(r=null==i?void 0:i.properties)?void 0:r._recordKey,l=a?m.current.get(a):null;var s,c;l&&(d.current&&d.current.remove(),d.current=new e.Popup({closeButton:!0,maxWidth:"320px"}).setLngLat(t.lngLat).setHTML((s=l.taxon,c=l.record,`<div style="font-weight:600;font-style:italic;margin-bottom:4px">${iW(s.scientificName)}</div><div style="color:#888;margin-bottom:4px">${iW(s.rank||"")}</div>`+aW(c))).addTo(o))};f.useEffect(()=>{const e=u.current;e&&v.current.forEach(t=>{const n=N.has(t)?"visible":"none";e.getLayer(tW(t))&&e.setLayoutProperty(tW(t),"visibility",n),e.getLayer(nW(t))&&e.setLayoutProperty(nW(t),"visibility",n)})},[N,k]);const V=()=>{var e;if(R.current)return;if(!r||!o||!i)return;const t=null==(e=null==o?void 0:o.name)?void 0:e.rank;if(!t)return;if("species"!==t&&!C_.includes(t))return;0!==k_(t,i).length&&(R.current=!0,S({status:"loading",taxa:[]}),E_({datasetKey:r,focalTaxon:o,rankOrder:i}).then(({taxa:e,descendantsFailed:t})=>{t?S({status:"error",taxa:[]}):0!==e.length?S({status:"ready",taxa:e}):S({status:"empty",taxa:[]})}))},G=f.useMemo(()=>{if("ready"!==k.status)return[];const e={};return k.taxa.filter(e=>e.mappable.length>0).forEach(t=>{(e[t.rank]=e[t.rank]||[]).push(t)}),C_.filter(t=>e[t]).map(t=>({rank:t,label:sW(t),taxa:e[t].slice().sort((e,t)=>e.scientificName.localeCompare(t.scientificName))}))},[k]);if(!hW())return j.jsx("div",{style:{padding:12,background:"#fafafa",border:"1px solid #eee",borderRadius:4,color:"#666",fontSize:12},children:"Maps require WebGL, which your browser doesn't support."});if(T&&!M)return j.jsxs("div",{className:"col-distributions-map col-distributions-map--collapsed",style:{display:"flex",alignItems:"center",gap:6,padding:"8px 12px",background:"#fafafa",border:"1px solid #eee",borderRadius:4,color:"#666",fontSize:12},children:[j.jsx("span",{children:"No curated distribution data."}),j.jsx("a",{role:"button",tabIndex:0,style:{cursor:"pointer"},onClick:L,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),L())},children:"Show GBIF occurrences"})]});const q=(null==(s=null==o?void 0:o.name)?void 0:s.scientificName)||"This taxon";return j.jsxs("div",{className:"col-distributions-map",style:{position:"relative"},children:[j.jsx("div",{ref:c,style:{height:360,width:"100%",background:"#f5f5f5"}}),j.jsx(fW,{open:O,onOpen:()=>{A(!0),V()},onClose:()=>A(!1),focalName:q,focalReady:w,focalVisible:E,onToggleFocal:()=>$(e=>!e),gbifEnabled:!!a,gbifVisible:M,gbifAvailable:l,onToggleGbif:()=>{P(e=>{const t=!e;return X_(t),t})},descendantStatus:k.status,descendantsByRank:G,descendantColors:z,visibleTaxonIds:N,onToggleTaxon:e=>{I(t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},onToggleRankGroup:e=>{I(t=>{const n=new Set(t),r=e.every(e=>t.has(e.id));return e.forEach(e=>{r?n.delete(e.id):n.add(e.id)}),n})},onRetry:()=>{R.current=!1,S({status:"idle",taxa:[]}),V()}}),!F&&(B.length>0||a&&!1!==l&&M)&&j.jsxs("div",{style:{position:"absolute",bottom:8,left:8,zIndex:1,background:"#fff",borderRadius:4,boxShadow:"0 1px 4px rgba(0,0,0,0.2)",padding:"6px 8px",fontSize:12,lineHeight:1.5},children:[B.map(e=>j.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[j.jsx("span",{style:{display:"inline-block",width:12,height:12,background:e.color,border:"1px solid rgba(0,0,0,0.15)",borderRadius:2}}),j.jsx("span",{children:e.label})]},e.key)),a&&!1!==l&&M&&j.jsx(uW,{})]}),F&&j.jsx(H_,{visibleGroups:D.visibleGroups,unmappableGroups:D.unmappableGroups,showGbif:!!a&&!1!==l&&M})]})},fW=({open:e,onOpen:t,onClose:n,focalName:r,focalReady:o,focalVisible:i,onToggleFocal:a,gbifEnabled:l,gbifVisible:s,gbifAvailable:c,onToggleGbif:u,descendantStatus:d,descendantsByRank:h,descendantColors:p,visibleTaxonIds:f,onToggleTaxon:m,onToggleRankGroup:g,onRetry:y})=>e?j.jsxs("div",{style:{position:"absolute",top:10,right:10,zIndex:2,background:"#fff",borderRadius:4,boxShadow:"0 1px 4px rgba(0,0,0,0.2)",padding:"6px 10px",fontSize:12,lineHeight:1.5,maxHeight:320,overflowY:"auto",minWidth:160},onMouseLeave:n,children:[j.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[j.jsx("input",{type:"checkbox",checked:i,disabled:!o,onChange:a}),j.jsx("span",{style:{fontStyle:"italic"},children:r})]}),l&&j.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,opacity:!1===c?.5:1},title:!1===c?"GBIF has no occurrence records for this taxon.":void 0,children:[j.jsx("input",{type:"checkbox",checked:!1!==c&&s,disabled:!1===c,onChange:u}),j.jsx("span",{children:"GBIF occurrences"})]}),"loading"===d&&j.jsx("div",{style:{marginTop:6,color:"#888"},children:"Loading descendants…"}),"error"===d&&j.jsxs("div",{style:{marginTop:6,color:"#888"},children:["Couldn't load descendants."," ",j.jsx("a",{onClick:y,style:{cursor:"pointer"},children:"Retry"})]}),"ready"===d&&h.map(e=>{const t=e.taxa.every(e=>f.has(e.id)),n=e.taxa.some(e=>f.has(e.id));return j.jsxs("div",{style:{marginTop:6},children:[j.jsxs("label",{style:{display:"flex",alignItems:"center",gap:6,fontWeight:600},children:[j.jsx("input",{type:"checkbox",checked:t,ref:e=>{e&&(e.indeterminate=!t&&n)},onChange:()=>g(e.taxa)}),e.label]}),j.jsx("div",{style:{paddingLeft:18},children:e.taxa.map(e=>j.jsxs("label",{style:{display:"flex",alignItems:"center",gap:6},children:[j.jsx("input",{type:"checkbox",checked:f.has(e.id),onChange:()=>m(e.id)}),j.jsx("span",{style:{display:"inline-block",width:10,height:10,background:p[e.id],border:"1px solid rgba(0,0,0,0.15)",borderRadius:2}}),j.jsx("span",{style:{fontStyle:"italic"},children:cW(e.scientificName)})]},e.id))})]},e.rank)})]}):j.jsx("button",{type:"button",onClick:t,onMouseEnter:t,title:"Layers",style:{position:"absolute",top:10,right:10,zIndex:2,width:30,height:30,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",borderRadius:4,cursor:"pointer",fontSize:18,lineHeight:"26px",padding:0,boxShadow:"0 1px 4px rgba(0,0,0,0.2)"},children:"+"}),mW=e=>{var t,n;return"text"!==(null==(t=null==e?void 0:e.area)?void 0:t.gazetteer)&&!!(null==(n=null==e?void 0:e.area)?void 0:n.globalId)},gW=({datasetKey:e,data:t})=>{const[n,r]=f.useState({});return f.useEffect(()=>{let e=!1;for(let n=0;n<t.length;n++)if("iso"===t[n].gazetteer){e=!0;break}e&&fR(`${gR.dataApi}vocab/country`).then(e=>{r(rR(e.data,"alpha3"))})},[]),j.jsx("div",{children:t.map((r,o)=>j.jsxs("span",{children:[(null==r?void 0:r.merged)&&j.jsx(OR,{createdBy:null==r?void 0:r.createdBy,datasetKey:r.datasetKey,sourceDatasetKey:null==r?void 0:r.sourceDatasetKey,verbatimSourceKey:null==r?void 0:r.verbatimSourceKey,style:{marginRight:"4px"}}),(zI(n,`[${zI(r,"area.name")}].name`)?cR(zI(n,`[${zI(r,"area.name")}].name`)):null)||zI(r,"area.name")||zI(r,"area.globalId")," ",r.referenceId&&j.jsx(Qj,{datasetKey:e,referenceId:r.referenceId,placement:"bottom"}),o<t.length-1&&", "]},o))})},yW=({datasetKey:e,data:t,style:n,showDistributionMap:r,focalTaxon:o,rankOrder:i,gbifChecklistKey:a,label:l,md:s})=>{const c=t.filter(mW),u=t.length-c.length,d=!!a,h=t.length>0,[p,m]=f.useState("map"),[g,y]=f.useState(0),[v,b]=f.useState(null);f.useEffect(()=>{if(!a||!(null==o?void 0:o.id))return void b(null);b(null);let e=!1;return mR.get(`${gR.gbifApi}/v1/occurrence/search`,{params:{checklistKey:a,taxonKey:o.id,hasCoordinate:!0,hasGeospatialIssue:!1,occurrenceStatus:"PRESENT",limit:0}}).then(t=>{var n;e||b((null==(n=null==t?void 0:t.data)?void 0:n.count)??0)},()=>{e||b(null)}),()=>{e=!0}},[a,null==o?void 0:o.id]);const x=!!d&&(null===v||v>0),w=c.length>0&&g>=c.length,C=r&&(c.length>0||x)&&!(c.length>0&&w&&!x);if(!C&&!h)return null;const k=u+g,S=h,E="map"===(C&&S?p:C?"map":"list")?j.jsxs(j.Fragment,{children:[S?j.jsxs(Ox.Group,{size:"small",value:p,onChange:e=>m(e.target.value),style:{marginBottom:8},children:[j.jsx(Ox.Button,{value:"map",children:"Map"}),j.jsx(Ox.Button,{value:"list",children:"List"})]}):j.jsx("div",{style:{height:24,marginBottom:8}}),j.jsx(pW,{records:c,onUnmappable:y,datasetKey:e,focalTaxon:o,rankOrder:i,gbifChecklistKey:a,gbifAvailable:x}),S&&k>0&&j.jsx("div",{style:{marginTop:6},children:j.jsxs("a",{onClick:()=>m("list"),style:{cursor:"pointer"},children:["+",k," distribution",1===k?"":"s"," not on map"]})})]}):j.jsx(gW,{datasetKey:e,data:t}),$=j.jsx("div",{style:n,children:E});return l?j.jsx(w_,{md:s,label:l,children:$}):$},vW={color:"rgba(0, 0, 0, 0.45)",fontSize:"11px"},bW=({data:e,style:t})=>j.jsxs("div",{style:t,children:[" ",e.map((t,n)=>j.jsxs("div",{style:{float:"left",marginRight:"3px"},children:[j.jsxs("span",{style:vW,children:[t.rank,": "]}),j.jsx(ER,{to:"taxon",args:t.id,children:j.jsx("span",{dangerouslySetInnerHTML:{__html:t.labelHtml}})}),n<e.length-1&&" >"]},t.rank))]}),xW=(e,t)=>{if(t)switch(e.type){case"spelling correction":return"Has spelling correction";case"based on":return"Other name based on this";case"replacement name":return"Replaced by";case"later homonym":return"Has later homonym";case"superfluous":return"Has superfluous name";case"basionym":return"Basionym of";case"type":return"Type of";default:return hO(e.type)}else switch(e.type){case"spelling correction":return"Spelling correction of";case"based on":return"Based on";case"replacement name":return"Replacement name of";case"later homonym":return"Later homonym of";case"superfluous":return"Superfluous name for";case"basionym":return"Basionym";case"type":return"Type";default:return hO(e.type)}},wW=({data:e,md:t,reverse:n})=>e.map((e,r)=>j.jsxs(w_,{md:t,label:xW(e,n),helpText:e.note,children:[!n&&j.jsx("span",{dangerouslySetInnerHTML:{__html:e.relatedName.labelHtml}}),n&&j.jsx("span",{dangerouslySetInnerHTML:{__html:e.name.labelHtml}})]},r));
|
|
21
|
+
*/zz();var Hz,_z=Date.now(),Wz="fnValues"+_z,Kz="fnStyle"+ ++_z;Hz="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")();var Vz,Gz,qz=("function"==typeof(Gz=Hz.Symbol)?Gz.observable?Vz=Gz.observable:(Vz=Gz("observable"),Gz.observable=Vz):Vz="@@observable",Vz),Xz=function(e){return e&&e[qz]&&e===e[qz]()},Uz=/;\n/,Yz=function(e){"string"==typeof e.style&&(e.style=function(e){for(var t={},n=e.split(Uz),r=0;r<n.length;r++){var o=(n[r]||"").trim();if(o){var i=o.indexOf(":");if(-1!==i){var a=o.substr(0,i).trim(),l=o.substr(i+1).trim();t[a]=l}}}return t}(e.style))};var Zz="@global",Qz="@global ",Jz=function(){function e(e,t,n){for(var r in this.type="global",this.at=Zz,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new gz(Vd({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),eD=function(){function e(e,t,n){this.type="global",this.at=Zz,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,Vd({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),tD=/\s*,\s*/g;function nD(e,t){for(var n=e.split(tD),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function rD(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Zz)return new Jz(e,t,n);if("@"===e[0]&&e.substr(0,8)===Qz)return new eD(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[Zz]:null;if(o){for(var i in o)t.addRule(i,o[i],Vd({},n,{selector:nD(i,e.selector)}));delete r[Zz]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,7)===Zz){var i=nD(o.substr(7),e.selector);t.addRule(i,r[o],Vd({},n,{selector:i})),delete r[o]}}(e,t))}}}var oD=function(e){return e&&"object"==typeof e&&!Array.isArray(e)},iD="extendCurrValue"+Date.now();function aD(e,t,n,r){return void 0===r&&(r={}),function(e,t,n,r){if("string"!=typeof e.extend)if(Array.isArray(e.extend))for(var o=0;o<e.extend.length;o++){var i=e.extend[o];aD("string"==typeof i?Vd({},e,{extend:i}):e.extend[o],t,n,r)}else for(var a in e.extend)"extend"!==a?oD(e.extend[a])?(a in r||(r[a]={}),aD(e.extend[a],t,n,r[a])):r[a]=e.extend[a]:aD(e.extend.extend,t,n,r);else{if(!n)return;var l=n.getRule(e.extend);if(!l)return;if(l===t)return;var s=l.options.parent;s&&aD(s.rules.raw[e.extend],t,n,r)}}(e,t,n,r),function(e,t,n,r){for(var o in e)"extend"!==o&&(oD(r[o])&&oD(e[o])?aD(e[o],t,n,r[o]):oD(e[o])?r[o]=aD(e[o],t,n):r[o]=e[o])}(e,t,n,r),r}var lD=/\s*,\s*/g,sD=/&/g,cD=/\$([\w-]+)/g;function uD(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(lD),r=e.split(lD),o="",i=0;i<n.length;i++)for(var a=n[i],l=0;l<r.length;l++){var s=r[l];o&&(o+=", "),o+=-1!==s.indexOf("&")?s.replace(sD,a):a+" "+s}return o}function n(e,t,n){if(n)return Vd({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=Vd({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,l,s=o,c=s.options.parent;for(var u in r){var d=-1!==u.indexOf("&"),h="@"===u[0];if(d||h){if(a=n(s,c,a),d){var p=t(u,s.selector);l||(l=e(c,i)),p=p.replace(cD,l);var f=s.key+"-"+u;"replaceRule"in c?c.replaceRule(f,r[u],Vd({},a,{selector:p})):c.addRule(f,r[u],Vd({},a,{selector:p}))}else h&&c.addRule(u,{},a).addRule(s.key,r[u],{selector:s.selector});delete r[u]}}return r}}}function dD(e,t){if(!t)return!0;if(Array.isArray(t)){for(var n=0;n<t.length;n++){if(!dD(e,t[n]))return!1}return!0}if(t.indexOf(" ")>-1)return dD(e,t.split(" "));var r=e.options.parent;if("$"===t[0]){var o=r.getRule(t.substr(1));return!!o&&(o!==e&&(r.classes[e.key]+=" "+r.classes[o.key],!0))}return r.classes[e.key]+=" "+t,!0}function hD(){return{onProcessStyle:function(e,t){return"composes"in e?(dD(t,e.composes),delete e.composes,e):e}}}var pD=/[A-Z]/g,fD=/^ms-/,mD={};function gD(e){return"-"+e.toLowerCase()}function yD(e){if(mD.hasOwnProperty(e))return mD[e];var t=e.replace(pD,gD);return mD[e]=fD.test(t)?"-"+t:t}function vD(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:yD(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(vD):t.fallbacks=vD(e.fallbacks)),t}var bD=jz&&CSS?CSS.px:"px",xD=jz&&CSS?CSS.ms:"ms",wD=jz&&CSS?CSS.percent:"%";function CD(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var kD=CD({"animation-delay":xD,"animation-duration":xD,"background-position":bD,"background-position-x":bD,"background-position-y":bD,"background-size":bD,border:bD,"border-bottom":bD,"border-bottom-left-radius":bD,"border-bottom-right-radius":bD,"border-bottom-width":bD,"border-left":bD,"border-left-width":bD,"border-radius":bD,"border-right":bD,"border-right-width":bD,"border-top":bD,"border-top-left-radius":bD,"border-top-right-radius":bD,"border-top-width":bD,"border-width":bD,"border-block":bD,"border-block-end":bD,"border-block-end-width":bD,"border-block-start":bD,"border-block-start-width":bD,"border-block-width":bD,"border-inline":bD,"border-inline-end":bD,"border-inline-end-width":bD,"border-inline-start":bD,"border-inline-start-width":bD,"border-inline-width":bD,"border-start-start-radius":bD,"border-start-end-radius":bD,"border-end-start-radius":bD,"border-end-end-radius":bD,margin:bD,"margin-bottom":bD,"margin-left":bD,"margin-right":bD,"margin-top":bD,"margin-block":bD,"margin-block-end":bD,"margin-block-start":bD,"margin-inline":bD,"margin-inline-end":bD,"margin-inline-start":bD,padding:bD,"padding-bottom":bD,"padding-left":bD,"padding-right":bD,"padding-top":bD,"padding-block":bD,"padding-block-end":bD,"padding-block-start":bD,"padding-inline":bD,"padding-inline-end":bD,"padding-inline-start":bD,"mask-position-x":bD,"mask-position-y":bD,"mask-size":bD,height:bD,width:bD,"min-height":bD,"max-height":bD,"min-width":bD,"max-width":bD,bottom:bD,left:bD,top:bD,right:bD,inset:bD,"inset-block":bD,"inset-block-end":bD,"inset-block-start":bD,"inset-inline":bD,"inset-inline-end":bD,"inset-inline-start":bD,"box-shadow":bD,"text-shadow":bD,"column-gap":bD,"column-rule":bD,"column-rule-width":bD,"column-width":bD,"font-size":bD,"font-size-delta":bD,"letter-spacing":bD,"text-decoration-thickness":bD,"text-indent":bD,"text-stroke":bD,"text-stroke-width":bD,"word-spacing":bD,motion:bD,"motion-offset":bD,outline:bD,"outline-offset":bD,"outline-width":bD,perspective:bD,"perspective-origin-x":wD,"perspective-origin-y":wD,"transform-origin":wD,"transform-origin-x":wD,"transform-origin-y":wD,"transform-origin-z":wD,"transition-delay":xD,"transition-duration":xD,"vertical-align":bD,"flex-basis":bD,"shape-margin":bD,size:bD,gap:bD,grid:bD,"grid-gap":bD,"row-gap":bD,"grid-row-gap":bD,"grid-column-gap":bD,"grid-template-rows":bD,"grid-template-columns":bD,"grid-auto-rows":bD,"grid-auto-columns":bD,"box-shadow-x":bD,"box-shadow-y":bD,"box-shadow-blur":bD,"box-shadow-spread":bD,"font-line-height":bD,"text-shadow-x":bD,"text-shadow-y":bD,"text-shadow-blur":bD});function SD(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=SD(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=SD(o,t[o],n);else for(var i in t)t[i]=SD(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||kD[e];return!a||0===t&&a===bD?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function ED(e){void 0===e&&(e={});var t=CD(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=SD(r,e[r],t);return e},onChangeValue:function(e,n){return SD(n,e,t)}}}var $D={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},TD={position:!0,size:!0},MD={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},PD={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},"border-bottom":{width:"border-bottom-width",style:"border-bottom-style",color:"border-bottom-color"},"border-top":{width:"border-top-width",style:"border-top-style",color:"border-top-color"},"border-left":{width:"border-left-width",style:"border-left-style",color:"border-left-color"},"border-right":{width:"border-right-width",style:"border-right-style",color:"border-right-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}};function ND(e,t,n,r){return null==n[t]?e:0===e.length?[]:Array.isArray(e[0])?ND(e[0],t,n,r):"object"==typeof e[0]?function(e,t,n){return e.map(function(e){return ID(e,t,n,!1,!0)})}(e,t,r):[e]}function ID(e,t,n,r,o){if(!MD[t]&&!PD[t])return[];var i=[];if(PD[t]&&(e=function(e,t,n,r){for(var o in n){var i=n[o];if(void 0!==e[o]&&(r||!t.prop(i))){var a,l=OD((a={},a[i]=e[o],a),t)[i];r?t.style.fallbacks[i]=l:t.style[i]=l}delete e[o]}return e}(e,n,PD[t],r)),Object.keys(e).length)for(var a in MD[t])e[a]?Array.isArray(e[a])?i.push(null===TD[a]?e[a]:e[a].join(" ")):i.push(e[a]):null!=MD[t][a]&&i.push(MD[t][a]);return!i.length||o?i:[i]}function OD(e,t,n){for(var r in e){var o=e[r];if(Array.isArray(o)){if(!Array.isArray(o[0])){if("fallbacks"===r){for(var i=0;i<e.fallbacks.length;i++)e.fallbacks[i]=OD(e.fallbacks[i],t,!0);continue}e[r]=ND(o,r,$D,t),e[r].length||delete e[r]}}else if("object"==typeof o){if("fallbacks"===r){e.fallbacks=OD(e.fallbacks,t,!0);continue}e[r]=ID(o,r,t,n),e[r].length||delete e[r]}else""===e[r]&&delete e[r]}return e}var AD="",RD="",LD="",BD="",zD=PB&&"ontouchstart"in document.documentElement;if(PB){var DD={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},jD=document.createElement("p").style;for(var FD in DD)if(FD+"Transform"in jD){AD=FD,RD=DD[FD];break}"Webkit"===AD&&"msHyphens"in jD&&(AD="ms",RD=DD.ms,BD="edge"),"Webkit"===AD&&"-apple-trailing-word"in jD&&(LD="apple")}var HD=AD,_D=RD,WD=LD,KD=BD,VD=zD;var GD={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===HD?"-webkit-"+e:_D+e)}},qD={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===HD?_D+"print-"+e:e)}},XD=/[-\s]+(.)?/g;function UD(e,t){return t?t.toUpperCase():""}function YD(e){return e.replace(XD,UD)}function ZD(e){return YD("-"+e)}var QD,JD={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===HD){var n="mask-image";if(YD(n)in t)return e;if(HD+ZD(n)in t)return _D+e}return e}},ej={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==WD||VD?e:_D+e)}},tj={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:_D+e)}},nj={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:_D+e)}},rj={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===HD||"ms"===HD&&"edge"!==KD?_D+e:e)}},oj={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===HD||"ms"===HD||"apple"===WD?_D+e:e)}},ij={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===HD?"WebkitColumn"+ZD(e)in t&&_D+"column-"+e:"Moz"===HD&&("page"+ZD(e)in t&&"page-"+e))}},aj={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===HD)return e;var n=e.replace("-inline","");return HD+ZD(n)in t&&_D+n}},lj={supportedProperty:function(e,t){return YD(e)in t&&e}},sj={supportedProperty:function(e,t){var n=ZD(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:HD+n in t?_D+e:"Webkit"!==HD&&"Webkit"+n in t&&"-webkit-"+e}},cj={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===HD?""+_D+e:e)}},uj={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===HD?_D+"scroll-chaining":e)}},dj={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},hj={supportedProperty:function(e,t){var n=dj[e];return!!n&&(HD+ZD(n)in t&&_D+n)}},pj={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},fj=Object.keys(pj),mj=function(e){return _D+e},gj=[GD,qD,JD,ej,tj,nj,rj,oj,ij,aj,lj,sj,cj,uj,hj,{supportedProperty:function(e,t,n){var r=n.multiple;if(fj.indexOf(e)>-1){var o=pj[e];if(!Array.isArray(o))return HD+ZD(o)in t&&_D+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(HD+ZD(o[0])in t))return!1;return o.map(mj)}return!1}}],yj=gj.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),vj=gj.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,Vt(t.noPrefill)),e},[]),bj={};if(PB){QD=document.createElement("p");var xj=window.getComputedStyle(document.documentElement,"");for(var wj in xj)isNaN(wj)||(bj[xj[wj]]=xj[wj]);vj.forEach(function(e){return delete bj[e]})}function Cj(e,t){if(void 0===t&&(t={}),!QD)return e;if(null!=bj[e])return bj[e];"transition"!==e&&"transform"!==e||(t[e]=e in QD.style);for(var n=0;n<yj.length&&(bj[e]=yj[n](e,QD.style,t),!bj[e]);n++);try{QD.style[e]=""}catch(e){return!1}return bj[e]}var kj,Sj={},Ej={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},$j=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Tj(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Cj(t):", "+Cj(n);return r||(t||n)}function Mj(e,t){var n=t;if(!kj||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Sj[r])return Sj[r];try{kj.style[e]=n}catch(e){return Sj[r]=!1,!1}if(Ej[e])n=n.replace($j,Tj);else if(""===kj.style[e]&&("-ms-flex"===(n=_D+n)&&(kj.style[e]="-ms-flexbox"),kj.style[e]=n,""===kj.style[e]))return Sj[r]=!1,!1;return kj.style[e]="",Sj[r]=n,Sj[r]}function Pj(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=Cj(n);i&&i!==n&&(o=!0);var a=!1,l=Mj(i,LB(r));l&&l!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=l||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at="-"===(n=t.at)[1]||"ms"===HD?n:"@"+_D+"keyframes"+n.substr(10)}var n},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Mj(t,LB(e))||e}}}PB&&(kj=document.createElement("p"));var Nj=function(e){return void 0===e&&(e={}),{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=AB(e,{},n);return r[Kz]=t,r},onProcessStyle:function(e,t){if(Wz in t||Kz in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[Wz]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Kz];i&&(o.style=i(e)||{});var a=o[Wz];if(a)for(var l in a)o.prop(l,a[l](e),r)}},(n=e.observable,{onCreateRule:function(e,t,r){if(!Xz(t))return null;var o=t,i=AB(e,{},r);return o.subscribe(function(e){for(var t in e)i.prop(t,e[t],n)}),i},onProcessRule:function(e){if(!e||"style"===e.type){var t=e,r=t.style,o=function(e){var o=r[e];if(!Xz(o))return"continue";delete r[e],o.subscribe({next:function(r){t.prop(e,r,n)}})};for(var i in r)o(i)}}}),{onProcessRule:Yz},rD(),{onProcessStyle:function(e,t,n){return"extend"in e?aD(e,t,n):e},onChangeValue:function(e,t,n){if("extend"!==t)return e;if(null==e||!1===e){for(var r in n[iD])n.prop(r,null);return n[iD]=null,null}if("object"==typeof e){for(var o in e)n.prop(o,e[o]);n[iD]=e}return null}},uD(),hD(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=vD(e[t]);return e}return vD(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=yD(t);return t===r?e:(n.prop(r,e),null)}},ED(e.defaultUnit),{onProcessStyle:function(e,t){if(!e||"style"!==t.type)return e;if(Array.isArray(e)){for(var n=0;n<e.length;n++)e[n]=OD(e[n],t);return e}return OD(e,t)}},Pj(),(t=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r={},o=Object.keys(e).sort(t),i=0;i<o.length;i++)r[o[i]]=e[o[i]];return r}})]};var t,n},Ij=zz(Nj());!function(e){void 0===e&&(e=Ij);var t,n=new Map,r=0,o=function(){return(!t||t.rules.index.length>1e4)&&(t=e.createStyleSheet().attach()),t};function i(){var e=arguments,t=JSON.stringify(e),i=n.get(t);if(i)return i.className;var a=[];for(var l in e){var s=e[l];if(Array.isArray(s))for(var c=0;c<s.length;c++)a.push(s[c]);else a.push(s)}for(var u={},d=[],h=0;h<a.length;h++){var p=a[h];if(p){var f=p;if("string"==typeof p){var m=n.get(p);m&&(m.labels.length&&d.push.apply(d,m.labels),f=m.style)}f.label&&-1===d.indexOf(f.label)&&d.push(f.label),Object.assign(u,f)}}delete u.label;var g=(0===d.length?"css":d.join("-"))+"-"+r++;o().addRule(g,u);var y=o().classes[g],v={style:u,labels:d,className:y};return n.set(t,v),n.set(y,v),y}i.getSheet=o}();var Oj=Number.MIN_SAFE_INTEGER||-1e9,Aj=function(){return Oj++},Rj=f.createContext({classNamePrefix:"",disableStylesGeneration:!1,isSSR:!PB}),Lj=new Map,Bj=function(e,t){var n=e.managers;if(n)return n[t]||(n[t]=new Dz),n[t];var r=Lj.get(t);return r||(r=new Dz,Lj.set(t,r)),r},zj=function(e){var t=e.sheet,n=e.context,r=e.index,o=e.theme;t&&(Bj(n,r).manage(o),n.registry&&n.registry.add(t))},Dj=zz(Nj()),jj=new WeakMap,Fj=function(e){return jj.get(e)};var Hj=function(e){if(!e.context.disableStylesGeneration){var t=Bj(e.context,e.index),n=t.get(e.theme);if(n)return n;var r=e.context.jss||Dj,o=function(e){var t=e.styles;return"function"!=typeof t?t:t(e.theme)}(e),i=Fz(o),a=r.createStyleSheet(o,function(e,t){var n;e.context.id&&null!=e.context.id.minify&&(n=e.context.id.minify);var r=e.context.classNamePrefix||"";e.name&&!n&&(r+=e.name.replace(/\s/g,"-")+"-");var o="";return e.name&&(o=e.name+", "),o+="function"==typeof e.styles?"Themed":"Unthemed",Vd({},e.sheetOptions,{index:e.index,meta:o,classNamePrefix:r,link:t,generateId:e.sheetOptions&&e.sheetOptions.generateId?e.sheetOptions.generateId:e.context.generateId})}(e,null!==i));return function(e,t){jj.set(e,t)}(a,{dynamicStyles:i,styles:o}),t.add(e.theme,a),a}},_j=function(e,t){var n=Fj(e);if(n){var r={};for(var o in n.dynamicStyles)for(var i=e.rules.index.length,a=e.addRule(o,n.dynamicStyles[o]),l=i;l<e.rules.index.length;l++){var s=e.rules.index[l];e.updateOne(s,t),r[a===s?o:s.key]=s}return r}};function Wj(e){return e?f.useEffect:m.useInsertionEffect||f.useLayoutEffect}var Kj={},Vj=function(e,t){void 0===t&&(t={});var n=t,r=n.index,o=void 0===r?Aj():r,i=n.theming,a=n.name,l=cw(n,["index","theming","name"]),s=i&&i.context||TB,c={};return function(t){var n=f.useRef(!0),r=f.useContext(Rj),i=function(t){return"function"==typeof e&&(t||f.useContext(s))||Kj}(t&&t.theme),u=f.useMemo(function(){var n=Hj({context:r,styles:e,name:a,theme:i,index:o,sheetOptions:l});return n&&r.isSSR&&zj({index:o,context:r,sheet:n,theme:i}),[n,n?_j(n,t):null]},[r,i]),d=u[0],h=u[1];Wj(r.isSSR)(function(){d&&h&&!n.current&&function(e,t,n){for(var r in n)t.updateOne(n[r],e)}(t,d,h)},[t]),Wj(r.isSSR)(function(){return d&&zj({index:o,context:r,sheet:d,theme:i}),function(){d&&(function(e){e.sheet&&Bj(e.context,e.index).unmanage(e.theme)}({index:o,context:r,sheet:d,theme:i}),h&&function(e,t){for(var n in t)e.deleteRule(t[n])}(d,h))}},[d]);var p=f.useMemo(function(){return d&&h?function(e,t){if(!t)return e.classes;var n=Fj(e);if(!n)return e.classes;var r={};for(var o in n.styles)r[o]=e.classes[o],o in t&&(r[o]+=" "+e.classes[t[o].key]);return r}(d,h):c},[d,h]);return f.useDebugValue(p),f.useDebugValue(i===Kj?"No theme":i),f.useEffect(function(){n.current=!1}),p}},Gj=function(e){return e.children||null},qj=function(e,t){void 0===t&&(t={});var n=t,r=n.index,o=void 0===r?Aj():r,i=n.theming,a=n.injectTheme,l=cw(n,["index","theming","injectTheme"]),s=i?i.context:TB;return function(t){void 0===t&&(t=Gj);var n,r,c,u,d=(n=t).displayName||n.name||"Component",h=(r=function(e,t){return t?function(e,t){var n=Vd({},e);for(var r in t)n[r]=r in n?n[r]+" "+t[r]:t[r];return n}(e,t):e},function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(Array.isArray(c)&&t.length===c.length){for(var o=!0,i=0;i<t.length;i++)t[i]!==c[i]&&(o=!1);if(o)return u}return c=t,u=r.apply(void 0,t)}),p=Object.assign(l,{theming:i,index:o,name:d}),m=Vj(e,p),g=f.forwardRef(function(e,n){var r=f.useContext(s),o=Vd({},e);a&&null==o.theme&&(o.theme=r);var i=m(o),l=h(i,e.classes);return f.createElement(t,Vd({},o,{classes:l,ref:n}))});return g.displayName="WithStyles("+d+")",g.defaultProps=Vd({},t.defaultProps),g.InnerComponent=t,lB(g,t)}};const Xj=class e extends m.Component{constructor(t){super(t),o(this,"handleResize",()=>{clearTimeout(this.deferTime),this.deferTime=setTimeout(()=>{this.updateWidth()},this.resizeInterval)}),o(this,"updateWidth",()=>{let t,n=this.getViewportWidth();t=n>=e.EXTRA_LARGE_WIDTH?e.EXTRA_LARGE:n>=e.LARGE_WIDTH?e.LARGE:n>=e.MEDIUM_WIDTH?e.MEDIUM:e.SMALL,t!==this.state.width&&this.setState({width:t})}),this.deferTime=null,this.resizeInterval=166,this.state={width:null}}componentDidMount(){window&&window.addEventListener("resize",this.handleResize),this.updateWidth()}componentWillUnmount(){window&&window.removeEventListener("resize",this.handleResize),clearTimeout(this.deferTime)}getViewportWidth(){return window.innerWidth&&document.documentElement.clientWidth?Math.min(window.innerWidth,document.documentElement.clientWidth):window.innerWidth||document.documentElement.clientWidth||document.querySelector("body").clientWidth}render(){return this.props.children(this.state.width)}};o(Xj,"EXTRA_LARGE",4),o(Xj,"LARGE",3),o(Xj,"MEDIUM",2),o(Xj,"SMALL",1),o(Xj,"EXTRA_LARGE_WIDTH",1200),o(Xj,"LARGE_WIDTH",992),o(Xj,"MEDIUM_WIDTH",768);let Uj=Xj;const Yj=()=>e=>class extends Uj{render(){return j.jsx(e,{...this.props,width:this.state.width})}},Zj=Yj()(qj({formItem:{paddingBottom:0,width:"100%",clear:"both"},label:{display:"block",color:"rgba(0, 0, 0, 0.85)"},content:{wordBreak:"break-word",marginBottom:0},noContent:{wordBreak:"break-word",color:"#bbb",marginBottom:0},contentCol:{wordBreak:"break-word"},smallMargin:{marginBottom:5,marginTop:5},mediumMargin:{marginBottom:10,marginTop:10}})(({classes:e,children:t,size:n})=>{const r="medium"===n?e.mediumMargin:e.smallMargin;return j.jsx(Lw,{className:e.formItem,children:j.jsx(Aw,{span:24,className:r,children:(()=>{let n;return Array.isArray(t)&&t.length>0?n=t.map((t,n)=>j.jsx("span",{className:e.content,children:t},n)):Array.isArray(t)||void 0===t||(n=j.jsx("span",{className:e.content,children:t})),n})()})})}));class Qj extends m.Component{constructor(e){super(e),o(this,"getData",()=>{const{referenceId:e,datasetKey:t,references:n}=this.props;if(e){const r=VP(e)?e:[e],o=[];this.setState({loading:!0}),Promise.allSettled(r.map(e=>zI(n,e)?Promise.resolve(o.push(n[e])):fR(`${gR.dataApi}dataset/${t}/reference/${e}`).then(e=>o.push(e.data)).catch(e=>this.setState({error:e})))).then(()=>this.setState({reference:o,loading:!1}))}}),o(this,"getContent",()=>{const{error:e,reference:t,loading:n}=this.state;return n?j.jsx(mS,{}):e?j.jsx(LR,{error:e}):1===t.length?t[0].citation:j.jsx("ul",{children:t.map(e=>j.jsx("li",{children:e.citation},e.id))})}),o(this,"scrollToReference",(e,t)=>{const n=document.getElementById(`col-reference-${t}`);n&&(e.preventDefault(),n.scrollIntoView({behavior:"smooth",block:"start"}))}),o(this,"render",()=>{const{referenceId:e,referenceIndexMap:t,trigger:n}=this.props,r=VP(e)?e:[e];let o=t&&zI(t,r[0])?r.map(e=>j.jsx("a",{className:"col-reference-link",href:`#col-reference-${e}`,onClick:t=>this.scrollToReference(t,e),children:`[${t[e]}]`},e)):j.jsx(tL,{style:{cursor:"pointer"}});return e?j.jsx("div",{id:`reference_${e}`,style:this.props.style,children:j.jsx(iv,{getPopupContainer:()=>document.getElementById(`reference_${e}`),placement:this.props.placement||"left",title:"Reference",onOpenChange:e=>e&&this.getData(),content:j.jsx("div",{style:{maxWidth:"500px"},children:this.getContent()}),trigger:n||"hover",children:o})},`reference_${e}`):""}),this.state={reference:[],loading:!1,error:null}}}const Jj=({style:e={},decision:t,popoverPlacement:n})=>{const r=f.useRef(Math.random().toString(36).substring(2,15)),{subject:o,originalSubjectId:i,subjectDatasetKey:a,datasetKey:l,created:s,createdBy:c,modified:u,modifiedBy:d,...h}=t;return j.jsx("div",{style:{display:"inline"},id:r.current,children:j.jsx(iv,{getPopupContainer:()=>document.getElementById(r.current),title:"Editorial decision",content:j.jsxs("div",{style:{overflow:"scroll"},children:[" ",j.jsx("pre",{style:{fontSize:"10px",fontFamily:"monospace",width:"400px"},children:JSON.stringify(h,null,2)})]}),placement:n||"right",trigger:"click",children:j.jsx(xP,{color:"gold",style:{cursor:"pointer",fontFamily:"monospace",fontSize:"8px",fontWeight:900,padding:"2px",lineHeight:"8px",verticalAlign:"middle",marginRight:"2px",...e},children:"DC"})})})},eF="numeric",tF="ascii",nF="alpha",rF="asciinumeric",oF="alphanumeric",iF="domain",aF="emoji",lF="scheme",sF="slashscheme",cF="whitespace";function uF(e,t){return e in t||(t[e]=[]),t[e]}function dF(e,t,n){t[eF]&&(t[rF]=!0,t[oF]=!0),t[tF]&&(t[rF]=!0,t[nF]=!0),t[rF]&&(t[oF]=!0),t[nF]&&(t[oF]=!0),t[oF]&&(t[iF]=!0),t[aF]&&(t[iF]=!0);for(const r in t){const t=uF(r,n);t.indexOf(e)<0&&t.push(e)}}function hF(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}hF.groups={},hF.prototype={accepts(){return!!this.t},go(e){const t=this,n=t.j[e];if(n)return n;for(let n=0;n<t.jr.length;n++){const r=t.jr[n][0],o=t.jr[n][1];if(o&&r.test(e))return o}return t.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let o=0;o<e.length;o++)this.tt(e[o],t,n,r)},tr(e,t,n,r){let o;return r=r||hF.groups,t&&t.j?o=t:(o=new hF(t),n&&r&&dF(t,n,r)),this.jr.push([e,o]),o},ts(e,t,n,r){let o=this;const i=e.length;if(!i)return o;for(let t=0;t<i-1;t++)o=o.tt(e[t]);return o.tt(e[i-1],t,n,r)},tt(e,t,n,r){r=r||hF.groups;const o=this;if(t&&t.j)return o.j[e]=t,t;const i=t;let a,l=o.go(e);if(l?(a=new hF,Object.assign(a.j,l.j),a.jr.push.apply(a.jr,l.jr),a.jd=l.jd,a.t=l.t):a=new hF,i){if(r)if(a.t&&"string"==typeof a.t){const e=Object.assign(function(e,t){const n={};for(const r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}(a.t,r),n);dF(i,e,r)}else n&&dF(i,n,r);a.t=i}return o.j[e]=a,a}};const pF=(e,t,n,r,o)=>e.ta(t,n,r,o),fF=(e,t,n,r,o)=>e.tr(t,n,r,o),mF=(e,t,n,r,o)=>e.ts(t,n,r,o),gF=(e,t,n,r,o)=>e.tt(t,n,r,o),yF="WORD",vF="UWORD",bF="ASCIINUMERICAL",xF="ALPHANUMERICAL",wF="LOCALHOST",CF="TLD",kF="UTLD",SF="SCHEME",EF="SLASH_SCHEME",$F="NUM",TF="WS",MF="NL",PF="OPENBRACE",NF="CLOSEBRACE",IF="OPENBRACKET",OF="CLOSEBRACKET",AF="OPENPAREN",RF="CLOSEPAREN",LF="OPENANGLEBRACKET",BF="CLOSEANGLEBRACKET",zF="FULLWIDTHLEFTPAREN",DF="FULLWIDTHRIGHTPAREN",jF="LEFTCORNERBRACKET",FF="RIGHTCORNERBRACKET",HF="LEFTWHITECORNERBRACKET",_F="RIGHTWHITECORNERBRACKET",WF="FULLWIDTHLESSTHAN",KF="FULLWIDTHGREATERTHAN",VF="AMPERSAND",GF="APOSTROPHE",qF="ASTERISK",XF="AT",UF="BACKSLASH",YF="BACKTICK",ZF="CARET",QF="COLON",JF="COMMA",eH="DOLLAR",tH="DOT",nH="EQUALS",rH="EXCLAMATION",oH="HYPHEN",iH="PERCENT",aH="PIPE",lH="PLUS",sH="POUND",cH="QUERY",uH="QUOTE",dH="FULLWIDTHMIDDLEDOT",hH="SEMI",pH="SLASH",fH="TILDE",mH="UNDERSCORE",gH="EMOJI",yH="SYM";var vH=Object.freeze({__proto__:null,ALPHANUMERICAL:xF,AMPERSAND:VF,APOSTROPHE:GF,ASCIINUMERICAL:bF,ASTERISK:qF,AT:XF,BACKSLASH:UF,BACKTICK:YF,CARET:ZF,CLOSEANGLEBRACKET:BF,CLOSEBRACE:NF,CLOSEBRACKET:OF,CLOSEPAREN:RF,COLON:QF,COMMA:JF,DOLLAR:eH,DOT:tH,EMOJI:gH,EQUALS:nH,EXCLAMATION:rH,FULLWIDTHGREATERTHAN:KF,FULLWIDTHLEFTPAREN:zF,FULLWIDTHLESSTHAN:WF,FULLWIDTHMIDDLEDOT:dH,FULLWIDTHRIGHTPAREN:DF,HYPHEN:oH,LEFTCORNERBRACKET:jF,LEFTWHITECORNERBRACKET:HF,LOCALHOST:wF,NL:MF,NUM:$F,OPENANGLEBRACKET:LF,OPENBRACE:PF,OPENBRACKET:IF,OPENPAREN:AF,PERCENT:iH,PIPE:aH,PLUS:lH,POUND:sH,QUERY:cH,QUOTE:uH,RIGHTCORNERBRACKET:FF,RIGHTWHITECORNERBRACKET:_F,SCHEME:SF,SEMI:hH,SLASH:pH,SLASH_SCHEME:EF,SYM:yH,TILDE:fH,TLD:CF,UNDERSCORE:mH,UTLD:kF,UWORD:vF,WORD:yF,WS:TF});const bH=/[a-z]/,xH=new RegExp("\\p{L}","u"),wH=new RegExp("\\p{Emoji}","u"),CH=/\d/,kH=/\s/;let SH=null,EH=null;function $H(e,t){const n=function(e){const t=[],n=e.length;let r=0;for(;r<n;){let o,i=e.charCodeAt(r),a=i<55296||i>56319||r+1===n||(o=e.charCodeAt(r+1))<56320||o>57343?e[r]:e.slice(r,r+2);t.push(a),r+=a.length}return t}(t.replace(/[A-Z]/g,e=>e.toLowerCase())),r=n.length,o=[];let i=0,a=0;for(;a<r;){let l=e,s=null,c=0,u=null,d=-1,h=-1;for(;a<r&&(s=l.go(n[a]));)l=s,l.accepts()?(d=0,h=0,u=l):d>=0&&(d+=n[a].length,h++),c+=n[a].length,i+=n[a].length,a++;i-=d,a-=h,c-=d,o.push({t:u.t,v:t.slice(i-c,i),s:i-c,e:i})}return o}function TH(e,t,n,r,o){let i;const a=t.length;for(let n=0;n<a-1;n++){const a=t[n];e.j[a]?i=e.j[a]:(i=new hF(r),i.jr=o.slice(),e.j[a]=i),e=i}return i=new hF(n),i.jr=o.slice(),e.j[t[a-1]]=i,i}function MH(e){const t=[],n=[];let r=0;for(;r<e.length;){let o=0;for(;"0123456789".indexOf(e[r+o])>=0;)o++;if(o>0){t.push(n.join(""));for(let t=parseInt(e.substring(r,r+o),10);t>0;t--)n.pop();r+=o}else n.push(e[r]),r++}return t}const PH={defaultProtocol:"http",events:null,format:IH,formatHref:IH,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function NH(e,t=null){let n=Object.assign({},PH);e&&(n=Object.assign(n,e instanceof NH?e.o:e));const r=n.ignoreTags,o=[];for(let e=0;e<r.length;e++)o.push(r[e].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=o}function IH(e){return e}function OH(e,t){this.t="token",this.v=e,this.tk=t}function AH(e,t){class n extends OH{constructor(t,n){super(t,n),this.t=e}}for(const e in t)n.prototype[e]=t[e];return n.t=e,n}NH.prototype={o:PH,ignoreTags:[],defaultRender:e=>e,check(e){return this.get("validate",e.toString(),e)},get(e,t,n){const r=null!=t;let o=this.o[e];return o?("object"==typeof o?(o=n.t in o?o[n.t]:PH[e],"function"==typeof o&&r&&(o=o(t,n))):"function"==typeof o&&r&&(o=o(t,n.t,n)),o):o},getObj(e,t,n){let r=this.o[e];return"function"==typeof r&&null!=t&&(r=r(t,n.t,n)),r},render(e){const t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}},OH.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=PH.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,n=this.toHref(e.get("defaultProtocol")),r=e.get("formatHref",n,this),o=e.get("tagName",n,t),i=this.toFormattedString(e),a={},l=e.get("className",n,t),s=e.get("target",n,t),c=e.get("rel",n,t),u=e.getObj("attributes",n,t),d=e.getObj("events",n,t);return a.href=r,l&&(a.class=l),s&&(a.target=s),c&&(a.rel=c),u&&Object.assign(a,u),{tagName:o,attributes:a,content:i,eventListeners:d}}};const RH=AH("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),LH=AH("text"),BH=AH("nl"),zH=AH("url",{isLink:!0,toHref(e=PH.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==wF&&e[1].t===QF}}),DH=e=>new hF(e);function jH(e,t,n){const r=n[0].s,o=n[n.length-1].e;return new e(t.slice(r,o),n)}const FH={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function HH(){FH.scanner=function(e=[]){const t={};hF.groups=t;const n=new hF;null==SH&&(SH=MH("aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2")),null==EH&&(EH=MH("ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2")),gF(n,"'",GF),gF(n,"{",PF),gF(n,"}",NF),gF(n,"[",IF),gF(n,"]",OF),gF(n,"(",AF),gF(n,")",RF),gF(n,"<",LF),gF(n,">",BF),gF(n,"(",zF),gF(n,")",DF),gF(n,"「",jF),gF(n,"」",FF),gF(n,"『",HF),gF(n,"』",_F),gF(n,"<",WF),gF(n,">",KF),gF(n,"&",VF),gF(n,"*",qF),gF(n,"@",XF),gF(n,"`",YF),gF(n,"^",ZF),gF(n,":",QF),gF(n,",",JF),gF(n,"$",eH),gF(n,".",tH),gF(n,"=",nH),gF(n,"!",rH),gF(n,"-",oH),gF(n,"%",iH),gF(n,"|",aH),gF(n,"+",lH),gF(n,"#",sH),gF(n,"?",cH),gF(n,'"',uH),gF(n,"/",pH),gF(n,";",hH),gF(n,"~",fH),gF(n,"_",mH),gF(n,"\\",UF),gF(n,"・",dH);const r=fF(n,CH,$F,{[eF]:!0});fF(r,CH,r);const o=fF(r,bH,bF,{[rF]:!0}),i=fF(r,xH,xF,{[oF]:!0}),a=fF(n,bH,yF,{[tF]:!0});fF(a,CH,o),fF(a,bH,a),fF(o,CH,o),fF(o,bH,o);const l=fF(n,xH,vF,{[nF]:!0});fF(l,bH),fF(l,CH,i),fF(l,xH,l),fF(i,CH,i),fF(i,bH),fF(i,xH,i);const s=gF(n,"\n",MF,{[cF]:!0}),c=gF(n,"\r",TF,{[cF]:!0}),u=fF(n,kH,TF,{[cF]:!0});gF(n,"",u),gF(c,"\n",s),gF(c,"",u),fF(c,kH,u),gF(u,"\r"),gF(u,"\n"),fF(u,kH,u),gF(u,"",u);const d=fF(n,wH,gH,{[aF]:!0});gF(d,"#"),fF(d,wH,d),gF(d,"️",d);const h=gF(d,"");gF(h,"#"),fF(h,wH,d);const p=[[bH,a],[CH,o]],f=[[bH,null],[xH,l],[CH,i]];for(let e=0;e<SH.length;e++)TH(n,SH[e],CF,yF,p);for(let e=0;e<EH.length;e++)TH(n,EH[e],kF,vF,f);dF(CF,{tld:!0,ascii:!0},t),dF(kF,{utld:!0,alpha:!0},t),TH(n,"file",SF,yF,p),TH(n,"mailto",SF,yF,p),TH(n,"http",EF,yF,p),TH(n,"https",EF,yF,p),TH(n,"ftp",EF,yF,p),TH(n,"ftps",EF,yF,p),dF(SF,{scheme:!0,ascii:!0},t),dF(EF,{slashscheme:!0,ascii:!0},t),e=e.sort((e,t)=>e[0]>t[0]?1:-1);for(let t=0;t<e.length;t++){const r=e[t][0],o=e[t][1]?{[lF]:!0}:{[sF]:!0};r.indexOf("-")>=0?o[iF]=!0:bH.test(r)?CH.test(r)?o[rF]=!0:o[tF]=!0:o[eF]=!0,mF(n,r,r,o)}return mF(n,"localhost",wF,{ascii:!0}),n.jd=new hF(yH),{start:n,tokens:Object.assign({groups:t},vH)}}(FH.customSchemes);for(let e=0;e<FH.tokenQueue.length;e++)FH.tokenQueue[e][1]({scanner:FH.scanner});FH.parser=function({groups:e}){const t=e.domain.concat([VF,qF,XF,UF,YF,ZF,eH,nH,oH,$F,iH,aH,lH,sH,pH,yH,fH,mH]),n=[GF,QF,JF,tH,rH,iH,cH,uH,hH,LF,BF,PF,NF,OF,IF,AF,RF,zF,DF,jF,FF,HF,_F,WF,KF],r=[VF,GF,qF,UF,YF,ZF,eH,nH,oH,PF,NF,iH,aH,lH,sH,cH,pH,yH,fH,mH],o=DH(),i=gF(o,fH);pF(i,r,i),pF(i,e.domain,i);const a=DH(),l=DH(),s=DH();pF(o,e.domain,a),pF(o,e.scheme,l),pF(o,e.slashscheme,s),pF(a,r,i),pF(a,e.domain,a);const c=gF(a,XF);gF(i,XF,c),gF(l,XF,c),gF(s,XF,c);const u=gF(i,tH);pF(u,r,i),pF(u,e.domain,i);const d=DH();pF(c,e.domain,d),pF(d,e.domain,d);const h=gF(d,tH);pF(h,e.domain,d);const p=DH(RH);pF(h,e.tld,p),pF(h,e.utld,p),gF(c,wF,p);const f=gF(d,oH);gF(f,oH,f),pF(f,e.domain,d),pF(p,e.domain,d),gF(p,tH,h),gF(p,oH,f);const m=gF(a,oH),g=gF(a,tH);gF(m,oH,m),pF(m,e.domain,a),pF(g,r,i),pF(g,e.domain,a);const y=DH(zH);pF(g,e.tld,y),pF(g,e.utld,y),pF(y,e.domain,a),pF(y,r,i),gF(y,tH,g),gF(y,oH,m),gF(y,XF,c);const v=gF(y,QF),b=DH(zH);pF(v,e.numeric,b);const x=DH(zH),w=DH();pF(x,t,x),pF(x,n,w),pF(w,t,x),pF(w,n,w),gF(y,pH,x),gF(b,pH,x);const C=gF(l,QF),k=gF(s,QF),S=gF(k,pH),E=gF(S,pH);pF(l,e.domain,a),gF(l,tH,g),gF(l,oH,m),pF(s,e.domain,a),gF(s,tH,g),gF(s,oH,m),pF(C,e.domain,x),gF(C,pH,x),gF(C,cH,x),pF(E,e.domain,x),pF(E,t,x),gF(E,pH,x);const $=[[PF,NF],[IF,OF],[AF,RF],[LF,BF],[zF,DF],[jF,FF],[HF,_F],[WF,KF]];for(let e=0;e<$.length;e++){const[r,o]=$[e],i=gF(x,r);gF(w,r,i);const a=DH(zH);pF(i,t,a);const l=DH();pF(i,n,l),gF(i,o,x),pF(a,t,a),pF(a,n,l),pF(l,t,a),pF(l,n,l),gF(a,o,x),gF(l,o,x)}return gF(o,wF,y),gF(o,MF,BH),{start:o,tokens:vH}}(FH.scanner.tokens);for(let e=0;e<FH.pluginQueue.length;e++)FH.pluginQueue[e][1]({scanner:FH.scanner,parser:FH.parser});return FH.initialized=!0,FH}function _H(e){return FH.initialized||HH(),function(e,t,n){let r=n.length,o=0,i=[],a=[];for(;o<r;){let l=e,s=null,c=null,u=0,d=null,h=-1;for(;o<r&&!(s=l.go(n[o].t));)a.push(n[o++]);for(;o<r&&(c=s||l.go(n[o].t));)s=null,l=c,l.accepts()?(h=0,d=l):h>=0&&h++,o++,u++;if(h<0)o-=u,o<r&&(a.push(n[o]),o++);else{a.length>0&&(i.push(jH(LH,t,a)),a=[]),o-=h,u-=h;const e=d.t,r=n.slice(o-u,o);i.push(jH(e,t,r))}}return a.length>0&&i.push(jH(LH,t,a)),i}(FH.parser.start,e,$H(FH.scanner.start,e))}_H.scan=$H;var WH={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"'},KH=/^#[xX]([A-Fa-f0-9]+)$/,VH=/^#([0-9]+)$/,GH=/^([A-Za-z0-9]+)$/,qH=function(){function e(e){this.named=e}return e.prototype.parse=function(e){if(e){var t=e.match(KH);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(VH))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(GH))?this.named[t[1]]||"&"+t[1]+";":void 0}},e}(),XH=/[\t\n\f ]/,UH=/[A-Za-z]/,YH=/\r\n?/g;function ZH(e){return XH.test(e)}function QH(e){return UH.test(e)}var JH=function(){function e(e,t,n){void 0===n&&(n="precompile"),this.delegate=e,this.entityParser=t,this.mode=n,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var e=this.peek();if("<"!==e||this.isIgnoredEndTag()){if("precompile"===this.mode&&"\n"===e){var t=this.tagNameBuffer.toLowerCase();"pre"!==t&&"textarea"!==t||this.consume()}this.transitionTo("data"),this.delegate.beginData()}else this.transitionTo("tagOpen"),this.markTagStart(),this.consume()},data:function(){var e=this.peek(),t=this.tagNameBuffer;"<"!==e||this.isIgnoredEndTag()?"&"===e&&"script"!==t&&"style"!==t?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(e)):(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume())},tagOpen:function(){var e=this.consume();"!"===e?this.transitionTo("markupDeclarationOpen"):"/"===e?this.transitionTo("endTagOpen"):("@"===e||":"===e||QH(e))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(e))},markupDeclarationOpen:function(){var e=this.consume();"-"===e&&"-"===this.peek()?(this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment()):"DOCTYPE"===e.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase()&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())},doctype:function(){ZH(this.consume())&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var e=this.consume();ZH(e)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase()))},doctypeName:function(){var e=this.consume();ZH(e)?this.transitionTo("afterDoctypeName"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase())},afterDoctypeName:function(){var e=this.consume();if(!ZH(e))if(">"===e)this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var t=e.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),n="PUBLIC"===t.toUpperCase(),r="SYSTEM"===t.toUpperCase();(n||r)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),n?this.transitionTo("afterDoctypePublicKeyword"):r&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var e=this.peek();ZH(e)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):'"'===e?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):"'"===e?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):">"===e&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var e=this.consume();'"'===e?this.transitionTo("afterDoctypePublicIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},doctypePublicIdentifierSingleQuoted:function(){var e=this.consume();"'"===e?this.transitionTo("afterDoctypePublicIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},afterDoctypePublicIdentifier:function(){var e=this.consume();ZH(e)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===e?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===e&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var e=this.consume();ZH(e)||(">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===e?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===e&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var e=this.consume();'"'===e?this.transitionTo("afterDoctypeSystemIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},doctypeSystemIdentifierSingleQuoted:function(){var e=this.consume();"'"===e?this.transitionTo("afterDoctypeSystemIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},afterDoctypeSystemIdentifier:function(){var e=this.consume();ZH(e)||">"===e&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var e=this.consume();"-"===e&&"-"===this.peek()?this.transitionTo("commentStartDash"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(e),this.transitionTo("comment"))},commentStartDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var e=this.consume();"-"===e?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(e)},commentEndDash:function(){var e=this.consume();"-"===e&&"-"===this.peek()?this.delegate.appendToCommentData(e):"-"===e?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+e),this.transitionTo("comment"))},commentEnd:function(){var e=this.consume();">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+e),this.transitionTo("comment"))},tagName:function(){var e=this.consume();ZH(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();ZH(e)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):"/"===e?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(e)},beforeAttributeName:function(){var e=this.peek();ZH(e)?this.consume():"/"===e?(this.transitionTo("selfClosingStartTag"),this.consume()):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):"="===e?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var e=this.peek();ZH(e)?(this.transitionTo("afterAttributeName"),this.consume()):"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.transitionTo("beforeAttributeValue"),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):'"'===e||"'"===e||"<"===e?(this.delegate.reportSyntaxError(e+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(e)):(this.consume(),this.delegate.appendToAttributeName(e))},afterAttributeName:function(){var e=this.peek();ZH(e)?this.consume():"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.consume(),this.transitionTo("beforeAttributeValue")):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e))},beforeAttributeValue:function(){var e=this.peek();ZH(e)?this.consume():'"'===e?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):"'"===e?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(e))},attributeValueDoubleQuoted:function(){var e=this.consume();'"'===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueSingleQuoted:function(){var e=this.consume();"'"===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueUnquoted:function(){var e=this.peek();ZH(e)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"&"===e?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):">"===e?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(e))},afterAttributeValueQuoted:function(){var e=this.peek();ZH(e)?(this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.consume(),this.transitionTo("selfClosingStartTag")):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var e=this.consume();("@"===e||":"===e||QH(e))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(e))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(e){this.state=e},e.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},e.prototype.tokenizePart=function(e){for(this.input+=function(e){return e.replace(YH,"\n")}(e);this.index<this.input.length;){var t=this.states[this.state];if(void 0===t)throw new Error("unhandled state "+this.state);t.call(this)}},e.prototype.tokenizeEOF=function(){this.flushData()},e.prototype.flushData=function(){"data"===this.state&&(this.delegate.finishData(),this.transitionTo("beforeData"))},e.prototype.peek=function(){return this.input.charAt(this.index)},e.prototype.consume=function(){var e=this.peek();return this.index++,"\n"===e?(this.line++,this.column=0):this.column++,e},e.prototype.consumeCharRef=function(){var e=this.input.indexOf(";",this.index);if(-1!==e){var t=this.input.slice(this.index,e),n=this.entityParser.parse(t);if(n){for(var r=t.length;r;)this.consume(),r--;return this.consume(),n}}},e.prototype.markTagStart=function(){this.delegate.tagOpen()},e.prototype.appendToTagName=function(e){this.tagNameBuffer+=e,this.delegate.appendToTagName(e)},e.prototype.isIgnoredEndTag=function(){var e=this.tagNameBuffer;return"title"===e&&"</title>"!==this.input.substring(this.index,this.index+8)||"style"===e&&"</style>"!==this.input.substring(this.index,this.index+8)||"script"===e&&"<\/script>"!==this.input.substring(this.index,this.index+9)},e}(),e_=function(){function e(e,t){void 0===t&&(t={}),this.options=t,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new JH(this,e,t.mode),this._currentAttribute=void 0}return e.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},e.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var e=this.token;if(null===e)throw new Error("token was unexpectedly null");if(0===arguments.length)return e;for(var t=0;t<arguments.length;t++)if(e.type===arguments[t])return e;throw new Error("token type was unexpectedly "+e.type)},e.prototype.push=function(e){this.token=e,this.tokens.push(e)},e.prototype.currentAttribute=function(){return this._currentAttribute},e.prototype.addLocInfo=function(){this.options.loc&&(this.current().loc={start:{line:this.startLine,column:this.startColumn},end:{line:this.tokenizer.line,column:this.tokenizer.column}}),this.startLine=this.tokenizer.line,this.startColumn=this.tokenizer.column},e.prototype.beginDoctype=function(){this.push({type:"Doctype",name:""})},e.prototype.appendToDoctypeName=function(e){this.current("Doctype").name+=e},e.prototype.appendToDoctypePublicIdentifier=function(e){var t=this.current("Doctype");void 0===t.publicIdentifier?t.publicIdentifier=e:t.publicIdentifier+=e},e.prototype.appendToDoctypeSystemIdentifier=function(e){var t=this.current("Doctype");void 0===t.systemIdentifier?t.systemIdentifier=e:t.systemIdentifier+=e},e.prototype.endDoctype=function(){this.addLocInfo()},e.prototype.beginData=function(){this.push({type:"Chars",chars:""})},e.prototype.appendToData=function(e){this.current("Chars").chars+=e},e.prototype.finishData=function(){this.addLocInfo()},e.prototype.beginComment=function(){this.push({type:"Comment",chars:""})},e.prototype.appendToCommentData=function(e){this.current("Comment").chars+=e},e.prototype.finishComment=function(){this.addLocInfo()},e.prototype.tagOpen=function(){},e.prototype.beginStartTag=function(){this.push({type:"StartTag",tagName:"",attributes:[],selfClosing:!1})},e.prototype.beginEndTag=function(){this.push({type:"EndTag",tagName:""})},e.prototype.finishTag=function(){this.addLocInfo()},e.prototype.markTagAsSelfClosing=function(){this.current("StartTag").selfClosing=!0},e.prototype.appendToTagName=function(e){this.current("StartTag","EndTag").tagName+=e},e.prototype.beginAttribute=function(){this._currentAttribute=["","",!1]},e.prototype.appendToAttributeName=function(e){this.currentAttribute()[0]+=e},e.prototype.beginAttributeValue=function(e){this.currentAttribute()[2]=e},e.prototype.appendToAttributeValue=function(e){this.currentAttribute()[1]+=e},e.prototype.finishAttributeValue=function(){this.current("StartTag").attributes.push(this._currentAttribute)},e.prototype.reportSyntaxError=function(e){this.current().syntaxError=e},e}();const t_="LinkifyResult",n_="StartTag",r_="EndTag",o_="Chars";function i_(e,t={}){const n=function(e,t){return new e_(new qH(WH),t).tokenize(e)}(e),r=[],o=[],i=new NH(t,s_);for(let e=0;e<n.length;e++){const t=n[e];if(t.type===n_){r.push(t);const o=t.tagName.toUpperCase();if(!("A"===o||i.ignoreTags.indexOf(o)>=0))continue;let a=r.length;l_(o,n,++e,r),e+=r.length-a-1}else if(t.type!==o_)r.push(t);else{const e=a_(t.chars,i);r.push.apply(r,e)}}for(let e=0;e<r.length;e++){const t=r[e];switch(t.type){case t_:o.push(t.rendered);break;case n_:{let e="<"+t.tagName;t.attributes.length>0&&(e+=" "+d_(t.attributes).join(" ")),t.selfClosing&&(e+=" /"),e+=">",o.push(e);break}case r_:o.push(`</${t.tagName}>`);break;case o_:o.push(c_(t.chars));break;case"Comment":o.push(`\x3c!--${c_(t.chars)}--\x3e`);break;case"Doctype":{let e=`<!DOCTYPE ${t.name}`;t.publicIdentifier&&(e+=` PUBLIC "${t.publicIdentifier}"`),t.systemIdentifier&&(e+=` "${t.systemIdentifier}"`),e+=">",o.push(e);break}}}return o.join("")}function a_(e,t){const n=_H(e),r=[];for(let e=0;e<n.length;e++){const o=n[e];"nl"===o.t&&t.get("nl2br")?r.push({type:n_,tagName:"br",attributes:[],selfClosing:!0}):o.isLink&&t.check(o)?r.push({type:t_,rendered:t.render(o)}):r.push({type:o_,chars:o.toString()})}return r}function l_(e,t,n,r){let o=1;for(;n<t.length&&o>0;){let i=t[n];i.type===n_&&i.tagName.toUpperCase()===e?o++:i.type===r_&&i.tagName.toUpperCase()===e&&o--,r.push(i),n++}return r}function s_({tagName:e,attributes:t,content:n}){return`<${e} ${function(e){const t=[];for(const n in e){const r=e[n]+"";t.push(`${n}="${u_(r)}"`)}return t.join(" ")}(t)}>${c_(n)}</${e}>`}function c_(e){return e.replace(/</g,"<").replace(/>/g,">")}function u_(e){return e.replace(/"/g,""")}function d_(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n][0],o=e[n][1]+"";t.push(`${r}="${u_(o)}"`)}return t}const h_=e=>{const t=e?e.toUpperCase():"";return["HOLOTYPE","LECTOTYPE","NEOTYPE"].includes(t)?"#e2614a":["PARATYPE","PARALECTOTYPE","SYNTYPE"].includes(t)?"#f1eb0b":["ALLOTYPE"].includes(t)?"#7edaff":null},p_=(e,t)=>{var n;let r=(null==e?void 0:e.gbifKey)&&(null==e?void 0:e.gbifPublisherKey)===(null==gR?void 0:gR.plaziGbifPublisherKey)?`https://www.gbif.org/occurrence/${null==e?void 0:e.gbifKey}/${t.id}`:"";!r&&(null==(n=null==t?void 0:t.link)?void 0:n.startsWith("https://www.gbif.org/occurrence/"))&&(r=null==t?void 0:t.link);const o=(null==t?void 0:t.associatedSequences)&&(null==t?void 0:t.associatedSequences.indexOf("ncbi."))>-1?null==t?void 0:t.associatedSequences:"";return(r||o)&&j.jsx("span",{id:`${t.id}-type-material-links`,children:j.jsxs(CC,{children:[r&&j.jsx(Jy,{title:"Occurrence in GBIF",getPopupContainer:()=>document.getElementById(`${t.id}-type-material-links`)||document.body,children:j.jsxs("a",{style:{marginLeft:4},href:r,target:"_blank",rel:"noreferrer",children:["GBIF ",j.jsx(iL,{})]})}),o&&j.jsx(Jy,{title:"DNA sequence in GenBank",children:j.jsxs("a",{href:o,target:"_blank",rel:"noreferrer",children:["GenBank ",j.jsx(iL,{})]})})]})})},f_=({dataset:e,data:t,nameID:n,style:r})=>t[n]?j.jsx("div",{style:r,children:t[n].map(t=>j.jsxs(Zj,{children:[j.jsx(xP,{color:h_(null==t?void 0:t.status),children:null==t?void 0:t.status})," ",t.merged&&j.jsx(OR,{createdBy:null==t?void 0:t.createdBy,datasetKey:null==t?void 0:t.datasetKey,verbatimSourceKey:null==t?void 0:t.verbatimSourceKey,sourceDatasetKey:null==t?void 0:t.sourceDatasetKey}),p_(e,t)," ",(null==t?void 0:t.citation)&&j.jsx("span",{dangerouslySetInnerHTML:{__html:i_((null==t?void 0:t.citation)||"")}})]},t.id))}):null;class m_ extends m.Component{constructor(e){super(e),o(this,"getData",()=>{const{nameId:e,datasetKey:t,references:n}=this.props;if(referenceId){const r=VP(referenceId)?referenceId:[referenceId],o=[];this.setState({loading:!0}),Promise.all(r.map(r=>zI(n,r)?Promise.resolve(o.push(n[e])):fR(`${gR.dataApi}dataset/${t}/name/${encodeURIComponent(e)}/types`).then(e=>o.push(e.data)))).then(()=>this.setState({typeMaterial:o,loading:!1}))}}),o(this,"getContent",()=>{const{typeMaterial:e,nameId:t}=this.props,n=(null==e?void 0:e[t])||[];if(n.length>0)return j.jsx("div",{children:n.map(e=>j.jsxs("div",{style:{marginBottom:"8px"},children:[j.jsx(xP,{color:h_(null==e?void 0:e.status),children:null==e?void 0:e.status}),e.merged&&j.jsxs(j.Fragment,{children:[j.jsx(OR,{})," "]}),(null==e?void 0:e.citation)&&j.jsx("span",{dangerouslySetInnerHTML:{__html:i_((null==e?void 0:e.citation)||"")}})]},e.id))})}),o(this,"render",()=>{const{typeMaterial:e,nameId:t}=this.props;return((null==e?void 0:e[t])||[]).length>0?j.jsxs(iv,{getPopupContainer:()=>document.getElementById(`type_popover_${t}`),placement:this.props.placement||"left",title:"Type Material",content:j.jsx("div",{style:{maxWidth:"500px"},children:this.getContent()}),trigger:"click",children:[" ",j.jsx(pL,{style:{cursor:"pointer"},id:`type_popover_${t}`})]}):""}),this.state={typeMaterial:[],loading:!1,error:null}}}const g_=({total:e,visible:t,showAll:n,onChange:r})=>e<=t&&!n?null:j.jsx("a",{onClick:()=>r(!n),style:{cursor:"pointer"},children:n?"Show less":`Show all (${e})`}),y_=({datasetKey:e,data:t,style:n,nomStatus:r,references:o,decisions:i,typeMaterial:a,referenceIndexMap:l,primarySource:s})=>{const[c,u]=f.useState(!1),d=(e,t)=>zI(e,"name.combinationAuthorship.year")&&zI(t,"name.combinationAuthorship.year")?zI(t,"name.combinationAuthorship.year")-zI(e,"name.combinationAuthorship.year"):zI(e,"name.scientificName")<zI(t,"name.scientificName")?-1:1,h=[];t.homotypic&&[...t.homotypic].sort(d).forEach(e=>{h.push({syn:e,homotypic:!0,indent:!1})}),t.heterotypicGroups&&[...t.heterotypicGroups].sort((e,t)=>d(e[0],t[0])).forEach(e=>{e.forEach((e,t)=>{h.push({syn:e,homotypic:t>0,indent:t>0})})});const p=h.length,m=c?h:h.slice(0,5);return j.jsxs("div",{style:n,children:[m.map(({syn:t,homotypic:n,indent:c})=>{return j.jsxs(Zj,{children:[j.jsxs("span",{style:c?{marginLeft:"10px"}:null,children:[!0===n?"≡ ":"= "," ",j.jsx("span",{dangerouslySetInnerHTML:{__html:zI(t,"labelHtml",`${zI(t,"name.scientificName")} ${zI(t,"name.authorship","")}`)}})]})," ",(null==t?void 0:t.sourceDatasetKey)&&zI(s,"key")!==(null==t?void 0:t.sourceDatasetKey)&&j.jsx(OR,{createdBy:null==t?void 0:t.createdBy,datasetKey:t.datasetKey,sourceDatasetKey:null==t?void 0:t.sourceDatasetKey,verbatimSourceKey:t.verbatimSourceKey})," ",(null==i?void 0:i[null==t?void 0:t.id])&&j.jsx(Jj,{decision:null==i?void 0:i[null==t?void 0:t.id]}),j.jsx(m_,{datasetKey:e,typeMaterial:a,nameId:zI(t,"name.id"),placement:"top"})," ",zI(t,"name.nomStatus")?`(${u=t,r?r[zI(u,"name.nomStatus")][zI(u,"name.code"),"zoological"]:zI(u,"name.nomStatus")})`:""," ","misapplied"===zI(t,"status")&&zI(t,"accordingTo")?zI(t,"accordingTo"):"","ambiguous synonym"===zI(t,"status")&&"(Ambiguous)",j.jsx(Qj,{datasetKey:e,references:o,referenceIndexMap:l,referenceId:zI(t,"name.publishedInId")?[zI(t,"name.publishedInId"),...t.referenceIds||[]]:t.referenceIds,placement:"top",style:{display:"inline-block"}})]},zI(t,"name.id"));var u}),j.jsx(g_,{total:p,visible:5,showAll:c,onChange:u})]})};class v_ extends m.Component{constructor(e){super(e),o(this,"componentDidMount",()=>{const{data:e}=this.props;fL().then(t=>{const n={},r={};t.forEach(e=>{n[e.alpha3]=e,r[e.alpha2]=e});const o=e.map(e=>this.decorateWithCountryByCode(e,r,n));return this.setState({data:o}),Promise.all(o.map(this.decorateWithLanguageByCode))}).then(()=>{this.state.data.sort((e,t)=>e.languageName>t.languageName?1:-1),this.setState({data:[...this.state.data]})})}),o(this,"decorateWithCountryByCode",(e,t,n)=>t&&e.country&&2===e.country.length?{...e,countryTitle:zI(t,`[${e.country}].title`)||""}:n&&e.country&&3===e.country.length?{...e,countryTitle:zI(n,`[${e.country}].title`)||""}:e),o(this,"decorateWithLanguageByCode",e=>e.language?fR(`${gR.dataApi}vocab/language/${e.language}`).then(t=>{e.languageName=t.data}).catch(e=>console.log(e)):Promise.resolve());const{references:t}=this.props;this.state={data:this.props.data?[...this.props.data]:[],showAll:!1,countryAlpha3:{},countryAlpha2:{},columns:[{title:"",dataIndex:"merged",key:"merged",width:12,render:(e,t)=>(null==t?void 0:t.merged)?j.jsx(OR,{createdBy:null==t?void 0:t.createdBy,datasetKey:null==t?void 0:t.datasetKey,verbatimSourceKey:null==t?void 0:t.verbatimSourceKey,sourceDatasetKey:null==t?void 0:t.sourceDatasetKey}):""},{title:"Original name",dataIndex:"name",key:"name"},{title:"Transliterated name",dataIndex:"latin",key:"latin"},{title:"Language",dataIndex:"language",key:"language",render:(e,t)=>t.languageName?t.languageName:e},{title:"Country of use",dataIndex:"country",key:"country",render:(e,t)=>t.countryTitle?t.countryTitle:e},{title:"",dataIndex:"referenceId",key:"referenceId",render:(e,n)=>e?j.jsx(Qj,{referenceId:e,references:t,datasetKey:this.props.datasetKey,placement:"left"}):""}]}}render(){const{style:e}=this.props,{data:t,columns:n,showAll:r}=this.state,o=r?t:t.slice(0,5);return j.jsxs(j.Fragment,{children:[j.jsx(cP,{style:e,className:"colplus-taxon-page-list",columns:n,dataSource:o,rowKey:"id",pagination:!1,size:"middle"}),j.jsx(g_,{total:t.length,visible:5,showAll:r,onChange:e=>this.setState({showAll:e})})]})}}const b_=qj({tip:{color:"rgba(0,0,0,.45)",marginLeft:"4px"},icon:{marginTop:"4px"}})(({title:e,classes:t})=>j.jsx(m.Fragment,{children:e&&j.jsx("span",{className:t.tip,children:j.jsx(Jy,{title:e,getPopupContainer:()=>document.getElementsByClassName("catalogue-of-life")[0],children:j.jsx(UC,{className:t.icon})})})})),x_=({label:e,helpText:t,classes:n,children:r,width:o,md:i,size:a})=>{const l=i||8,s=l<24?24-l:24,c="medium"===a?n.mediumMargin:n.smallMargin;return j.jsxs(Lw,{className:n.formItem,children:[j.jsx(Aw,{sm:24,md:l,style:o<2?{marginBottom:0}:{},className:c,children:j.jsx("div",{children:j.jsxs("dt",{className:n.label,children:[e,j.jsx(b_,{title:t})]})})}),j.jsx(Aw,{sm:24,md:s,style:o<2?{marginTop:0}:{},className:c,children:(()=>{let e;return Array.isArray(r)&&r.length>0?e=r.map((e,t)=>j.jsx("span",{className:n.content,children:e},t)):Array.isArray(r)||void 0===r||(e=j.jsx("span",{className:n.content,children:r})),e})()})]})};x_.propTypes={label:yB.string.isRequired,helpText:yB.object};const w_=Yj()(qj({formItem:{paddingBottom:0,width:"100%",clear:"both",borderBottom:"1px solid #eee","&:last-of-type":{border:"none"},"&>div":{paddingLeft:10,paddingRight:10}},label:{display:"block",color:"rgba(0, 0, 0, 0.85)"},content:{wordBreak:"break-word",marginBottom:0},noContent:{wordBreak:"break-word",color:"#bbb",marginBottom:0},contentCol:{wordBreak:"break-word"},smallMargin:{marginBottom:3,marginTop:3},mediumMargin:{marginBottom:10,marginTop:10}})(x_)),C_=["subspecies","variety","subvariety","form","subform","infraspecific name"],k_=(e,t)=>{const n=t.indexOf(e);return-1===n?[]:C_.filter(e=>t.indexOf(e)>n)},S_=e=>{var t,n;return"text"!==(null==(t=null==e?void 0:e.area)?void 0:t.gazetteer)&&!!(null==(n=null==e?void 0:e.area)?void 0:n.globalId)},E_=async({datasetKey:e,focalTaxon:t,rankOrder:n})=>{var r;const o=k_(null==(r=null==t?void 0:t.name)?void 0:r.rank,n);let i=!1,a=[];try{a=await(async(e,t,n)=>{var r;if(0===n.length)return[];const o=new URLSearchParams;o.append("TAXON_ID",t),n.forEach(e=>o.append("rank",e)),["accepted","provisionally accepted"].forEach(e=>o.append("status",e)),o.append("limit","1000");const i=`${gR.dataApi}dataset/${e}/nameusage/search?${o}`,a=await fR(i);return((null==(r=null==a?void 0:a.data)?void 0:r.result)||[]).filter(e=>{var t;return null==(t=null==e?void 0:e.usage)?void 0:t.id}).map(e=>{var t,n,r,o,i,a;return{id:e.usage.id,scientificName:(null==(n=null==(t=e.usage)?void 0:t.name)?void 0:n.scientificName)||(null==(r=e.usage)?void 0:r.label)||e.usage.id,rank:null==(i=null==(o=e.usage)?void 0:o.name)?void 0:i.rank,parentId:null==(a=e.usage)?void 0:a.parentId}})})(e,t.id,o)}catch{return i=!0,{taxa:[],descendantsFailed:i}}const l=await(async(e,t,n)=>{const r=new Array(e.length);let o=0;const i=Array.from({length:Math.min(n,e.length)},async()=>{for(;;){const n=o++;if(n>=e.length)return;r[n]=await t(e[n],n)}});return await Promise.all(i),r})(a,t=>(async(e,t)=>{const n=`${gR.dataApi}dataset/${e}/taxon/${encodeURIComponent(t)}/distribution`;try{const e=await fR(n);return Array.isArray(null==e?void 0:e.data)?e.data:[]}catch{return[]}})(e,t.id),16);return{taxa:a.map((e,t)=>{const n=l[t]||[];return{...e,distributions:n,mappable:n.filter(S_)}}),descendantsFailed:i}},$_=["#E58606","#5D69B1","#52BCA3","#99C945","#CC61B0","#24796C","#DAA51B","#2F8AC4","#764E9F","#ED645A","#CC3A8E","#A5AA99"],T_=(e,t)=>{const n=t.indexOf(e);return-1===n?t.length:n},M_={position:"absolute",bottom:8,left:8,zIndex:1e3,background:"#fff",borderRadius:4,boxShadow:"0 1px 4px rgba(0,0,0,0.2)",padding:"6px 8px",fontSize:12,lineHeight:1.5,maxWidth:260},P_={maxHeight:240,overflowY:"auto"},N_={fontWeight:600,marginTop:4},I_={...N_,marginTop:0},O_={display:"flex",alignItems:"center",gap:6,paddingLeft:4},A_=e=>({display:"inline-block",width:12,height:12,background:e,border:"1px solid rgba(0,0,0,0.15)",borderRadius:2,flex:"0 0 auto"}),R_={marginTop:6,cursor:"pointer",color:"#1890ff",fontSize:11},L_={marginTop:4,borderTop:"1px solid #eee",paddingTop:4,color:"#666"},B_={fontWeight:600,marginTop:4},z_={...B_,marginTop:0},D_={fontStyle:"italic",paddingLeft:4},j_=e=>e.reduce((e,t)=>e+t.taxa.length,0),F_=()=>j.jsxs("div",{style:O_,children:[j.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12","aria-hidden":"true",children:j.jsx("polygon",{points:"3,1 9,1 11,6 9,11 3,11 1,6",fill:"#de1e6e",stroke:"rgba(0,0,0,0.25)",strokeWidth:"0.75"})}),j.jsx("span",{children:"GBIF occurrences"})]}),H_=({visibleGroups:e,unmappableGroups:t,showGbif:n})=>{const[r,o]=f.useState(!1),i=j_(e),a=j_(t);return 0!==i||0!==a||n?j.jsxs("div",{style:M_,children:[j.jsxs("div",{style:P_,children:[e.map((e,t)=>j.jsxs("div",{children:[j.jsx("div",{style:0===t?I_:N_,children:e.label}),e.taxa.map(e=>j.jsxs("div",{style:O_,children:[j.jsx("span",{style:A_(e.color)}),j.jsx("span",{style:{fontStyle:"italic"},children:e.displayName||e.scientificName})]},e.id))]},e.rank)),n&&j.jsx(F_,{})]}),a>0&&j.jsxs(j.Fragment,{children:[j.jsxs("div",{style:R_,onClick:()=>o(e=>!e),children:[r?"− Hide":"+"," ",a," without map data"]}),r&&j.jsx("div",{style:L_,children:t.map((e,t)=>j.jsxs("div",{children:[j.jsx("div",{style:0===t?z_:B_,children:e.label}),e.taxa.map(e=>j.jsx("div",{style:D_,children:e.displayName||e.scientificName},e.id))]},e.rank))})]})]}):null},__=["establishmentMeans","degreeOfEstablishment","pathway","threatStatus","year","lifeStage"],W_=[{key:"nativeendemic",label:"Native endemic",color:"#0F8554"},{key:"native",label:"Native",color:"#87C55F"},{key:"nativereintroduced",label:"Native reintroduced",color:"#C9DB74"},{key:"introduced",label:"Introduced",color:"#FE88B1"},{key:"introducedassistedcolonisation",label:"Introduced assisted colonisation",color:"#DCB0F2"},{key:"vagrant",label:"Vagrant",color:"#F6CF71"},{key:"uncertain",label:"Uncertain",color:"#8BE0A4"}],K_=Object.fromEntries(W_.map(e=>[e.key,e.color])),V_="#66C5CC",G_=e=>{const t=null==e?void 0:e.establishmentMeans;if(null==t||""===t)return null;const n=String(t||"").toLowerCase().replace(/[^a-z]/g,"");return K_[n]?n:"uncertain"},q_="gbif-visible",X_=e=>XR(q_,e),U_="col-focal-distributions",Y_="col-focal-fill",Z_="col-focal-line",Q_="col-gbif-occurrences",J_="col-gbif-occurrences",eW=e=>`col-descendant-${e}`,tW=e=>`col-descendant-fill-${e}`,nW=e=>`col-descendant-line-${e}`,rW=new Map,oW=(e,t)=>{const n=`${e}:${t}`;if(rW.has(n))return rW.get(n);const r=fR(`${gR.dataApi}vocab/area/${n}`,{headers:{Accept:"application/geo+json"}}).then(e=>e.data,()=>null);return rW.set(n,r),r},iW=e=>String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""),aW=e=>{var t,n;const r=(null==(t=null==e?void 0:e.area)?void 0:t.name)||(null==(n=null==e?void 0:e.area)?void 0:n.globalId)||"",o=__.map(t=>[t,null==e?void 0:e[t]]).filter(([,e])=>null!=e&&""!==e).map(([e,t])=>`<div><strong>${iW(e)}:</strong> ${iW(t)}</div>`).join("");return`<div style="min-width:180px"><div style="font-weight:600;margin-bottom:4px">${iW(r)}</div>${o}</div>`},lW={subspecies:"subspecies",variety:"varieties",subvariety:"subvarieties",form:"forms",subform:"subforms","infraspecific name":"infraspecific names"},sW=e=>lW[e]||e,cW=e=>{if(!e)return"";const t=e.trim().split(/\s+/);return t[t.length-1]},uW=()=>j.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[j.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12","aria-hidden":"true",children:j.jsx("polygon",{points:"3,1 9,1 11,6 9,11 3,11 1,6",fill:"#de1e6e",stroke:"rgba(0,0,0,0.25)",strokeWidth:"0.75"})}),j.jsx("span",{children:"GBIF occurrences"})]}),dW=e=>e?"FeatureCollection"===e.type?e.features||[]:[e]:[],hW=()=>"function"==typeof(null==e?void 0:e.supported)?e.supported():"undefined"!=typeof WebGLRenderingContext,pW=({records:t,onUnmappable:n,datasetKey:r,focalTaxon:o,rankOrder:i,gbifChecklistKey:a,gbifAvailable:l=!0})=>{var s;const c=f.useRef(null),u=f.useRef(null),d=f.useRef(null),h=f.useRef(new Map),p=f.useRef(new Map),m=f.useRef(new Map),g=f.useRef(!1),y=f.useRef(!1),v=f.useRef(new Set),[b,x]=f.useState(!1),[w,C]=f.useState(!1),[k,S]=f.useState({status:"idle",taxa:[]}),[E,$]=f.useState(!0),T=!(!a||t&&0!==t.length),[M,P]=f.useState(()=>qR(q_,!0)),[N,I]=f.useState(new Set),[O,A]=f.useState(!1),R=f.useRef(!1),L=()=>{P(!0),X_(!0)},B=f.useMemo(()=>{if(!(null==t?void 0:t.length))return[];const e=new Set;return t.forEach(t=>{const n=G_(t);null!=n&&e.add(n)}),W_.filter(t=>e.has(t.key))},[t]),z=f.useMemo(()=>"ready"!==k.status?{}:((e,t)=>{const n=[...e].sort((e,n)=>{const r=T_(e.rank,t),o=T_(n.rank,t);return r!==o?r-o:e.scientificName.localeCompare(n.scientificName)}),r={};return n.forEach((e,t)=>{r[e.id]=$_[t%$_.length]}),r})(k.taxa.filter(e=>e.mappable.length>0),i||[]),[k,i]),D=f.useMemo(()=>{if("ready"!==k.status)return{visibleGroups:[],unmappableGroups:[]};const e=e=>{const t={};return e.forEach(e=>{(t[e.rank]=t[e.rank]||[]).push((e=>({...e,color:z[e.id],displayName:cW(e.scientificName)}))(e))}),C_.filter(e=>t[e]).map(e=>({rank:e,label:sW(e),taxa:t[e]}))};return{visibleGroups:e(k.taxa.filter(e=>e.mappable.length>0&&N.has(e.id))),unmappableGroups:e(k.taxa.filter(e=>0===e.mappable.length))}},[k,z,N]),F=D.visibleGroups.length>0;f.useEffect(()=>{if(!c.current||u.current)return;if(!hW())return;const t=new e.Map({container:c.current,style:"https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",center:[0,20],zoom:1,minZoom:0,attributionControl:!1,renderWorldCopies:!0});t.addControl(new e.AttributionControl({compact:!0}),"bottom-right"),t.addControl(new e.NavigationControl({showCompass:!1}),"top-left"),u.current=t,t.on("load",()=>{x(!0);const e=t.getContainer().querySelector(".maplibregl-ctrl-attrib");e&&e.classList.remove("maplibregl-compact-show")});const n="undefined"!=typeof ResizeObserver?new ResizeObserver(()=>t.resize()):null;return n&&n.observe(c.current),()=>{n&&n.disconnect(),d.current&&(d.current.remove(),d.current=null),t.remove(),u.current=null,g.current=!1,y.current=!1,v.current=new Set}},[]),f.useEffect(()=>{if(!b||!(null==t?void 0:t.length))return;const e=u.current;if(!e)return;let r=!1;return C(!1),Promise.allSettled(t.map(e=>oW(e.area.gazetteer,e.area.id).then(t=>({record:e,geojson:t})))).then(t=>{if(r)return;const o=[],i=new Map;let a=0;t.forEach((e,t)=>{if("fulfilled"!==e.status||!e.value.geojson)return void(a+=1);const{record:n,geojson:r}=e.value,l=(e=>{const t=G_(e);return null==t?V_:K_[t]})(n),s=`focal-${t}`;i.set(s,n),dW(r).forEach(e=>{o.push({...e,properties:{...e.properties||{},_recordKey:s,_color:l}})})}),h.current=i;const l={type:"FeatureCollection",features:o};if(e.getSource(U_))e.getSource(U_).setData(l);else{const t=e.getLayer(J_)?J_:void 0;e.addSource(U_,{type:"geojson",data:l}),e.addLayer({id:Y_,type:"fill",source:U_,paint:{"fill-color":["coalesce",["get","_color"],V_],"fill-opacity":.65}},t),e.addLayer({id:Z_,type:"line",source:U_,paint:{"line-color":["coalesce",["get","_color"],V_],"line-width":1}},t),e.on("click",Y_,H),e.on("mouseenter",Y_,_),e.on("mouseleave",Y_,W),g.current=!0}if(o.length>0){const t=(e=>{var t;let n=1/0,r=1/0,o=-1/0,i=-1/0;const a=e=>{if("number"==typeof e[0]){const[t,a]=e;t<n&&(n=t),t>o&&(o=t),a<r&&(r=a),a>i&&(i=a)}else for(let t=0;t<e.length;t++)a(e[t])};for(let n=0;n<e.length;n++){const r=null==(t=e[n])?void 0:t.geometry;(null==r?void 0:r.coordinates)&&a(r.coordinates)}return n===1/0?null:[[n,r],[o,i]]})(o);t&&e.fitBounds(t,{padding:20,animate:!1})}"function"==typeof n&&n(a),C(!0)}),()=>{r=!0}},[b,t]);const H=t=>{var n,r;const o=u.current;if(!o)return;const i=null==(n=t.features)?void 0:n[0],a=null==(r=null==i?void 0:i.properties)?void 0:r._recordKey,l=a?h.current.get(a):null;l&&(d.current&&d.current.remove(),d.current=new e.Popup({closeButton:!0,maxWidth:"320px"}).setLngLat(t.lngLat).setHTML(aW(l)).addTo(o))},_=()=>{const e=u.current;e&&(e.getCanvas().style.cursor="pointer")},W=()=>{const e=u.current;e&&(e.getCanvas().style.cursor="")};f.useEffect(()=>{const e=u.current;if(!e||!g.current)return;const t=E?"visible":"none";e.getLayer(Y_)&&e.setLayoutProperty(Y_,"visibility",t),e.getLayer(Z_)&&e.setLayoutProperty(Z_,"visibility",t)},[E,w]),f.useEffect(()=>{if(!b)return;const e=u.current;if(!e)return;if(e.getLayer(J_)&&e.removeLayer(J_),e.getSource(Q_)&&e.removeSource(Q_),y.current=!1,!a||!(null==o?void 0:o.id))return;if(!1===l)return;const t=(gR.gbifApi+"/v2/map/occurrence/density/{z}/{x}/{y}@1x.png?srs=EPSG%3A3857&style=iNaturalist.poly&bin=hex&hexPerTile=64&hasCoordinate=true&hasGeospatialIssue=false&occurrenceStatus=PRESENT&checklistKey={checklistKey}&taxonKey={taxonKey}").replace("{checklistKey}",encodeURIComponent(a)).replace("{taxonKey}",encodeURIComponent(o.id)),n=gR.gbifPortal+"/occurrence/search?checklist_key="+encodeURIComponent(a)+"&taxon_key="+encodeURIComponent(o.id);e.addSource(Q_,{type:"raster",tiles:[t],tileSize:256,attribution:'<a href="'+n+'" target="_blank" rel="noopener">GBIF</a> occurrence data'}),e.addLayer({id:J_,type:"raster",source:Q_,paint:{"raster-opacity":.9},layout:{visibility:M?"visible":"none"}}),y.current=!0},[b,a,null==o?void 0:o.id,l]),f.useEffect(()=>{const e=u.current;if(!e||!y.current)return;const t=M?"visible":"none";e.getLayer(J_)&&e.setLayoutProperty(J_,"visibility",t)},[M]),f.useEffect(()=>{if(!b)return;const e=u.current;if(!e)return;if(v.current.forEach(t=>{e.getLayer(tW(t))&&e.removeLayer(tW(t)),e.getLayer(nW(t))&&e.removeLayer(nW(t)),e.getSource(eW(t))&&e.removeSource(eW(t))}),v.current=new Set,p.current=new Map,m.current=new Map,"ready"!==k.status)return;const t=z;k.taxa.forEach(e=>{0!==e.mappable.length&&(p.current.set(e.id,e),Promise.allSettled(e.mappable.map(e=>oW(e.area.gazetteer,e.area.id).then(t=>({record:e,geojson:t})))).then(n=>{if(!u.current)return;const r=[];n.forEach((t,n)=>{if("fulfilled"!==t.status||!t.value.geojson)return;const{record:o,geojson:i}=t.value,a=`desc-${e.id}-${n}`;m.current.set(a,{taxon:e,record:o}),dW(i).forEach(e=>{r.push({...e,properties:{...e.properties||{},_recordKey:a}})})});const o=t[e.id]||V_,i={type:"FeatureCollection",features:r},a=eW(e.id);if(u.current.getSource(a))u.current.getSource(a).setData(i);else{u.current.addSource(a,{type:"geojson",data:i});const t=tW(e.id),n=nW(e.id),r=u.current.getLayer(J_)?J_:void 0;u.current.addLayer({id:t,type:"fill",source:a,paint:{"fill-color":o,"fill-opacity":.55},layout:{visibility:"none"}},r),u.current.addLayer({id:n,type:"line",source:a,paint:{"line-color":o,"line-width":2},layout:{visibility:"none"}},r),u.current.on("click",t,K),u.current.on("mouseenter",t,_),u.current.on("mouseleave",t,W),v.current.add(e.id)}}))})},[b,k,z]);const K=t=>{var n,r;const o=u.current;if(!o)return;const i=null==(n=t.features)?void 0:n[0],a=null==(r=null==i?void 0:i.properties)?void 0:r._recordKey,l=a?m.current.get(a):null;var s,c;l&&(d.current&&d.current.remove(),d.current=new e.Popup({closeButton:!0,maxWidth:"320px"}).setLngLat(t.lngLat).setHTML((s=l.taxon,c=l.record,`<div style="font-weight:600;font-style:italic;margin-bottom:4px">${iW(s.scientificName)}</div><div style="color:#888;margin-bottom:4px">${iW(s.rank||"")}</div>`+aW(c))).addTo(o))};f.useEffect(()=>{const e=u.current;e&&v.current.forEach(t=>{const n=N.has(t)?"visible":"none";e.getLayer(tW(t))&&e.setLayoutProperty(tW(t),"visibility",n),e.getLayer(nW(t))&&e.setLayoutProperty(nW(t),"visibility",n)})},[N,k]);const V=()=>{var e;if(R.current)return;if(!r||!o||!i)return;const t=null==(e=null==o?void 0:o.name)?void 0:e.rank;if(!t)return;if("species"!==t&&!C_.includes(t))return;0!==k_(t,i).length&&(R.current=!0,S({status:"loading",taxa:[]}),E_({datasetKey:r,focalTaxon:o,rankOrder:i}).then(({taxa:e,descendantsFailed:t})=>{t?S({status:"error",taxa:[]}):0!==e.length?S({status:"ready",taxa:e}):S({status:"empty",taxa:[]})}))},G=f.useMemo(()=>{if("ready"!==k.status)return[];const e={};return k.taxa.filter(e=>e.mappable.length>0).forEach(t=>{(e[t.rank]=e[t.rank]||[]).push(t)}),C_.filter(t=>e[t]).map(t=>({rank:t,label:sW(t),taxa:e[t].slice().sort((e,t)=>e.scientificName.localeCompare(t.scientificName))}))},[k]);if(!hW())return j.jsx("div",{style:{padding:12,background:"#fafafa",border:"1px solid #eee",borderRadius:4,color:"#666",fontSize:12},children:"Maps require WebGL, which your browser doesn't support."});if(T&&!M)return j.jsxs("div",{className:"col-distributions-map col-distributions-map--collapsed",style:{display:"flex",alignItems:"center",gap:6,padding:"8px 12px",background:"#fafafa",border:"1px solid #eee",borderRadius:4,color:"#666",fontSize:12},children:[j.jsx("span",{children:"No curated distribution data."}),j.jsx("a",{role:"button",tabIndex:0,style:{cursor:"pointer"},onClick:L,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),L())},children:"Show GBIF occurrences"})]});const q=(null==(s=null==o?void 0:o.name)?void 0:s.scientificName)||"This taxon";return j.jsxs("div",{className:"col-distributions-map",style:{position:"relative"},children:[j.jsx("div",{ref:c,style:{height:360,width:"100%",background:"#f5f5f5"}}),j.jsx(fW,{open:O,onOpen:()=>{A(!0),V()},onClose:()=>A(!1),focalName:q,focalReady:w,focalVisible:E,onToggleFocal:()=>$(e=>!e),gbifEnabled:!!a,gbifVisible:M,gbifAvailable:l,onToggleGbif:()=>{P(e=>{const t=!e;return X_(t),t})},descendantStatus:k.status,descendantsByRank:G,descendantColors:z,visibleTaxonIds:N,onToggleTaxon:e=>{I(t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},onToggleRankGroup:e=>{I(t=>{const n=new Set(t),r=e.every(e=>t.has(e.id));return e.forEach(e=>{r?n.delete(e.id):n.add(e.id)}),n})},onRetry:()=>{R.current=!1,S({status:"idle",taxa:[]}),V()}}),!F&&(B.length>0||a&&!1!==l&&M)&&j.jsxs("div",{style:{position:"absolute",bottom:8,left:8,zIndex:1,background:"#fff",borderRadius:4,boxShadow:"0 1px 4px rgba(0,0,0,0.2)",padding:"6px 8px",fontSize:12,lineHeight:1.5},children:[B.map(e=>j.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[j.jsx("span",{style:{display:"inline-block",width:12,height:12,background:e.color,border:"1px solid rgba(0,0,0,0.15)",borderRadius:2}}),j.jsx("span",{children:e.label})]},e.key)),a&&!1!==l&&M&&j.jsx(uW,{})]}),F&&j.jsx(H_,{visibleGroups:D.visibleGroups,unmappableGroups:D.unmappableGroups,showGbif:!!a&&!1!==l&&M})]})},fW=({open:e,onOpen:t,onClose:n,focalName:r,focalReady:o,focalVisible:i,onToggleFocal:a,gbifEnabled:l,gbifVisible:s,gbifAvailable:c,onToggleGbif:u,descendantStatus:d,descendantsByRank:h,descendantColors:p,visibleTaxonIds:f,onToggleTaxon:m,onToggleRankGroup:g,onRetry:y})=>e?j.jsxs("div",{style:{position:"absolute",top:10,right:10,zIndex:2,background:"#fff",borderRadius:4,boxShadow:"0 1px 4px rgba(0,0,0,0.2)",padding:"6px 10px",fontSize:12,lineHeight:1.5,maxHeight:320,overflowY:"auto",minWidth:160},onMouseLeave:n,children:[j.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[j.jsx("input",{type:"checkbox",checked:i,disabled:!o,onChange:a}),j.jsx("span",{style:{fontStyle:"italic"},children:r})]}),l&&j.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,opacity:!1===c?.5:1},title:!1===c?"GBIF has no occurrence records for this taxon.":void 0,children:[j.jsx("input",{type:"checkbox",checked:!1!==c&&s,disabled:!1===c,onChange:u}),j.jsx("span",{children:"GBIF occurrences"})]}),"loading"===d&&j.jsx("div",{style:{marginTop:6,color:"#888"},children:"Loading descendants…"}),"error"===d&&j.jsxs("div",{style:{marginTop:6,color:"#888"},children:["Couldn't load descendants."," ",j.jsx("a",{onClick:y,style:{cursor:"pointer"},children:"Retry"})]}),"ready"===d&&h.map(e=>{const t=e.taxa.every(e=>f.has(e.id)),n=e.taxa.some(e=>f.has(e.id));return j.jsxs("div",{style:{marginTop:6},children:[j.jsxs("label",{style:{display:"flex",alignItems:"center",gap:6,fontWeight:600},children:[j.jsx("input",{type:"checkbox",checked:t,ref:e=>{e&&(e.indeterminate=!t&&n)},onChange:()=>g(e.taxa)}),e.label]}),j.jsx("div",{style:{paddingLeft:18},children:e.taxa.map(e=>j.jsxs("label",{style:{display:"flex",alignItems:"center",gap:6},children:[j.jsx("input",{type:"checkbox",checked:f.has(e.id),onChange:()=>m(e.id)}),j.jsx("span",{style:{display:"inline-block",width:10,height:10,background:p[e.id],border:"1px solid rgba(0,0,0,0.15)",borderRadius:2}}),j.jsx("span",{style:{fontStyle:"italic"},children:cW(e.scientificName)})]},e.id))})]},e.rank)})]}):j.jsx("button",{type:"button",onClick:t,onMouseEnter:t,title:"Layers",style:{position:"absolute",top:10,right:10,zIndex:2,width:30,height:30,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",borderRadius:4,cursor:"pointer",fontSize:18,lineHeight:"26px",padding:0,boxShadow:"0 1px 4px rgba(0,0,0,0.2)"},children:"+"}),mW=e=>{var t,n;return"text"!==(null==(t=null==e?void 0:e.area)?void 0:t.gazetteer)&&!!(null==(n=null==e?void 0:e.area)?void 0:n.globalId)},gW=({datasetKey:e,data:t})=>{const[n,r]=f.useState({});return f.useEffect(()=>{let e=!1;for(let n=0;n<t.length;n++)if("iso"===t[n].gazetteer){e=!0;break}e&&fR(`${gR.dataApi}vocab/country`).then(e=>{r(rR(e.data,"alpha3"))})},[]),j.jsx("div",{children:t.map((r,o)=>j.jsxs("span",{children:[(null==r?void 0:r.merged)&&j.jsx(OR,{createdBy:null==r?void 0:r.createdBy,datasetKey:r.datasetKey,sourceDatasetKey:null==r?void 0:r.sourceDatasetKey,verbatimSourceKey:null==r?void 0:r.verbatimSourceKey,style:{marginRight:"4px"}}),(zI(n,`[${zI(r,"area.name")}].name`)?cR(zI(n,`[${zI(r,"area.name")}].name`)):null)||zI(r,"area.name")||zI(r,"area.globalId")," ",r.referenceId&&j.jsx(Qj,{datasetKey:e,referenceId:r.referenceId,placement:"bottom"}),o<t.length-1&&", "]},o))})},yW=({datasetKey:e,data:t,style:n,showDistributionMap:r,focalTaxon:o,rankOrder:i,gbifChecklistKey:a,label:l,md:s})=>{const c=t.filter(mW),u=t.length-c.length,d=!!a,h=t.length>0,[p,m]=f.useState("map"),[g,y]=f.useState(0),[v,b]=f.useState(null);f.useEffect(()=>{if(!a||!(null==o?void 0:o.id))return void b(null);b(null);let e=!1;return mR.get(`${gR.gbifApi}/v1/occurrence/search`,{params:{checklistKey:a,taxonKey:o.id,hasCoordinate:!0,hasGeospatialIssue:!1,occurrenceStatus:"PRESENT",limit:0}}).then(t=>{var n;e||b((null==(n=null==t?void 0:t.data)?void 0:n.count)??0)},()=>{e||b(null)}),()=>{e=!0}},[a,null==o?void 0:o.id]);const x=!!d&&(null===v||v>0),w=c.length>0&&g>=c.length,C=r&&(c.length>0||x)&&!(c.length>0&&w&&!x);if(!C&&!h)return null;const k=u+g,S=h;let E;if(C){const n=S?p:"map";E=j.jsxs(j.Fragment,{children:[S?j.jsxs(Ox.Group,{size:"small",value:n,onChange:e=>m(e.target.value),style:{marginBottom:8},children:[j.jsx(Ox.Button,{value:"map",children:"Map"}),j.jsx(Ox.Button,{value:"list",children:"List"})]}):j.jsx("div",{style:{height:24,marginBottom:8}}),"map"===n?j.jsxs(j.Fragment,{children:[j.jsx(pW,{records:c,onUnmappable:y,datasetKey:e,focalTaxon:o,rankOrder:i,gbifChecklistKey:a,gbifAvailable:x}),S&&k>0&&j.jsx("div",{style:{marginTop:6},children:j.jsxs("a",{onClick:()=>m("list"),style:{cursor:"pointer"},children:["+",k," distribution",1===k?"":"s"," not on map"]})})]}):j.jsx(gW,{datasetKey:e,data:t})]})}else E=j.jsx(gW,{datasetKey:e,data:t});const $=l&&C?{marginTop:-3}:null,T=j.jsx("div",{style:{...$,...n},children:E});return l?j.jsx(w_,{md:s,label:l,children:T}):T},vW={color:"rgba(0, 0, 0, 0.45)",fontSize:"11px"},bW=({data:e,style:t})=>j.jsxs("div",{style:t,children:[" ",e.map((t,n)=>j.jsxs("div",{style:{float:"left",marginRight:"3px"},children:[j.jsxs("span",{style:vW,children:[t.rank,": "]}),j.jsx(ER,{to:"taxon",args:t.id,children:j.jsx("span",{dangerouslySetInnerHTML:{__html:t.labelHtml}})}),n<e.length-1&&" >"]},t.rank))]}),xW=(e,t)=>{if(t)switch(e.type){case"spelling correction":return"Has spelling correction";case"based on":return"Other name based on this";case"replacement name":return"Replaced by";case"later homonym":return"Has later homonym";case"superfluous":return"Has superfluous name";case"basionym":return"Basionym of";case"type":return"Type of";default:return hO(e.type)}else switch(e.type){case"spelling correction":return"Spelling correction of";case"based on":return"Based on";case"replacement name":return"Replacement name of";case"later homonym":return"Later homonym of";case"superfluous":return"Superfluous name for";case"basionym":return"Basionym";case"type":return"Type";default:return hO(e.type)}},wW=({data:e,md:t,reverse:n})=>e.map((e,r)=>j.jsxs(w_,{md:t,label:xW(e,n),helpText:e.note,children:[!n&&j.jsx("span",{dangerouslySetInnerHTML:{__html:e.relatedName.labelHtml}}),n&&j.jsx("span",{dangerouslySetInnerHTML:{__html:e.name.labelHtml}})]},r));
|
|
22
22
|
/*! @license DOMPurify 3.4.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.6/LICENSE */
|
|
23
|
-
function CW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kW(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return CW(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?CW(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const SW=Object.entries,EW=Object.setPrototypeOf,$W=Object.isFrozen,TW=Object.getPrototypeOf,MW=Object.getOwnPropertyDescriptor;let PW=Object.freeze,NW=Object.seal,IW=Object.create,OW="undefined"!=typeof Reflect&&Reflect,AW=OW.apply,RW=OW.construct;PW||(PW=function(e){return e}),NW||(NW=function(e){return e}),AW||(AW=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),RW||(RW=function(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 new e(...n)});const LW=nK(Array.prototype.forEach),BW=nK(Array.prototype.lastIndexOf),zW=nK(Array.prototype.pop),DW=nK(Array.prototype.push),jW=nK(Array.prototype.splice),FW=Array.isArray,HW=nK(String.prototype.toLowerCase),_W=nK(String.prototype.toString),WW=nK(String.prototype.match),KW=nK(String.prototype.replace),VW=nK(String.prototype.indexOf),GW=nK(String.prototype.trim),qW=nK(Number.prototype.toString),XW=nK(Boolean.prototype.toString),UW="undefined"==typeof BigInt?null:nK(BigInt.prototype.toString),YW="undefined"==typeof Symbol?null:nK(Symbol.prototype.toString),ZW=nK(Object.prototype.hasOwnProperty),QW=nK(Object.prototype.toString),JW=nK(RegExp.prototype.test),eK=(tK=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return RW(tK,t)});var tK;function nK(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return AW(e,t,r)}}function rK(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:HW;if(EW&&EW(e,null),!FW(t))return e;let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&($W(t)||(t[r]=e),o=e)}e[o]=!0}return e}function oK(e){for(let t=0;t<e.length;t++){ZW(e,t)||(e[t]=null)}return e}function iK(e){const t=IW(null);for(const r of SW(e)){var n=kW(r,2);const o=n[0],i=n[1];ZW(e,o)&&(FW(i)?t[o]=oK(i):i&&"object"==typeof i&&i.constructor===Object?t[o]=iK(i):t[o]=i)}return t}function aK(e,t){for(;null!==e;){const n=MW(e,t);if(n){if(n.get)return nK(n.get);if("function"==typeof n.value)return nK(n.value)}e=TW(e)}return function(){return null}}const lK=PW(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),sK=PW(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),cK=PW(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),uK=PW(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),dK=PW(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),hK=PW(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),pK=PW(["#text"]),fK=PW(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),mK=PW(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),gK=PW(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),yK=PW(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),vK=NW(/{{[\w\W]*|^[\w\W]*}}/g),bK=NW(/<%[\w\W]*|^[\w\W]*%>/g),xK=NW(/\${[\w\W]*/g),wK=NW(/^data-[\-\w.\u00B7-\uFFFF]+$/),CK=NW(/^aria-[\-\w]+$/),kK=NW(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),SK=NW(/^(?:\w+script|data):/i),EK=NW(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$K=NW(/^html$/i),TK=NW(/^[a-z][.\w]*(-[.\w]+)+$/i),MK=1,PK=3,NK=7,IK=8,OK=9,AK=11;var RK=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const n=t=>e(t);if(n.version="3.4.6",n.removed=[],!t||!t.document||t.document.nodeType!==OK||!t.Element)return n.isSupported=!1,n;let r=t.document;const o=r,i=o.currentScript;t.DocumentFragment;const a=t.HTMLTemplateElement,l=t.Node,s=t.Element,c=t.NodeFilter,u=t.NamedNodeMap;void 0===u&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const d=t.DOMParser,h=t.trustedTypes,p=s.prototype,f=aK(p,"cloneNode"),m=aK(p,"remove"),g=aK(p,"nextSibling"),y=aK(p,"childNodes"),v=aK(p,"parentNode"),b=aK(p,"shadowRoot"),x=aK(p,"attributes"),w=l&&l.prototype?aK(l.prototype,"nodeType"):null,C=l&&l.prototype?aK(l.prototype,"nodeName"):null;if("function"==typeof a){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let k,S="";const E=r,$=E.implementation,T=E.createNodeIterator,M=E.createDocumentFragment,P=E.getElementsByTagName,N=o.importNode;let I={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof SW&&"function"==typeof v&&$&&void 0!==$.createHTMLDocument;const O=vK,A=bK,R=xK,L=wK,B=CK,z=SK,D=EK,j=TK;let F=kK,H=null;const _=rK({},[...lK,...sK,...cK,...dK,...pK]);let W=null;const K=rK({},[...fK,...mK,...gK,...yK]);let V=Object.seal(IW(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),G=null,q=null;const X=Object.seal(IW(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let U=!0,Y=!0,Z=!1,Q=!0,J=!1,ee=!0,te=!1,ne=!1,re=!1,oe=!1,ie=!1,ae=!1,le=!0,se=!1;const ce="user-content-";let ue=!0,de=!1,he={},pe=null;const fe=rK({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let me=null;const ge=rK({},["audio","video","img","source","image","track"]);let ye=null;const ve=rK({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),be="http://www.w3.org/1998/Math/MathML",xe="http://www.w3.org/2000/svg",we="http://www.w3.org/1999/xhtml";let Ce=we,ke=!1,Se=null;const Ee=rK({},[be,xe,we],_W);let $e=rK({},["mi","mo","mn","ms","mtext"]),Te=rK({},["annotation-xml"]);const Me=rK({},["title","style","font","a","script"]);let Pe=null;const Ne=["application/xhtml+xml","text/html"];let Ie=null,Oe=null;const Ae=r.createElement("form"),Re=function(e){return e instanceof RegExp||e instanceof Function},Le=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Oe&&Oe===e)return;e&&"object"==typeof e||(e={}),e=iK(e),Pe=-1===Ne.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ie="application/xhtml+xml"===Pe?_W:HW,H=ZW(e,"ALLOWED_TAGS")&&FW(e.ALLOWED_TAGS)?rK({},e.ALLOWED_TAGS,Ie):_,W=ZW(e,"ALLOWED_ATTR")&&FW(e.ALLOWED_ATTR)?rK({},e.ALLOWED_ATTR,Ie):K,Se=ZW(e,"ALLOWED_NAMESPACES")&&FW(e.ALLOWED_NAMESPACES)?rK({},e.ALLOWED_NAMESPACES,_W):Ee,ye=ZW(e,"ADD_URI_SAFE_ATTR")&&FW(e.ADD_URI_SAFE_ATTR)?rK(iK(ve),e.ADD_URI_SAFE_ATTR,Ie):ve,me=ZW(e,"ADD_DATA_URI_TAGS")&&FW(e.ADD_DATA_URI_TAGS)?rK(iK(ge),e.ADD_DATA_URI_TAGS,Ie):ge,pe=ZW(e,"FORBID_CONTENTS")&&FW(e.FORBID_CONTENTS)?rK({},e.FORBID_CONTENTS,Ie):fe,G=ZW(e,"FORBID_TAGS")&&FW(e.FORBID_TAGS)?rK({},e.FORBID_TAGS,Ie):iK({}),q=ZW(e,"FORBID_ATTR")&&FW(e.FORBID_ATTR)?rK({},e.FORBID_ATTR,Ie):iK({}),he=!!ZW(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?iK(e.USE_PROFILES):e.USE_PROFILES),U=!1!==e.ALLOW_ARIA_ATTR,Y=!1!==e.ALLOW_DATA_ATTR,Z=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Q=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,J=e.SAFE_FOR_TEMPLATES||!1,ee=!1!==e.SAFE_FOR_XML,te=e.WHOLE_DOCUMENT||!1,oe=e.RETURN_DOM||!1,ie=e.RETURN_DOM_FRAGMENT||!1,ae=e.RETURN_TRUSTED_TYPE||!1,re=e.FORCE_BODY||!1,le=!1!==e.SANITIZE_DOM,se=e.SANITIZE_NAMED_PROPS||!1,ue=!1!==e.KEEP_CONTENT,de=e.IN_PLACE||!1,F=function(e){try{return JW(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:kK,Ce="string"==typeof e.NAMESPACE?e.NAMESPACE:we,$e=ZW(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?iK(e.MATHML_TEXT_INTEGRATION_POINTS):rK({},["mi","mo","mn","ms","mtext"]),Te=ZW(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?iK(e.HTML_INTEGRATION_POINTS):rK({},["annotation-xml"]);const t=ZW(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?iK(e.CUSTOM_ELEMENT_HANDLING):IW(null);if(V=IW(null),ZW(t,"tagNameCheck")&&Re(t.tagNameCheck)&&(V.tagNameCheck=t.tagNameCheck),ZW(t,"attributeNameCheck")&&Re(t.attributeNameCheck)&&(V.attributeNameCheck=t.attributeNameCheck),ZW(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(V.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),J&&(Y=!1),ie&&(oe=!0),he&&(H=rK({},pK),W=IW(null),!0===he.html&&(rK(H,lK),rK(W,fK)),!0===he.svg&&(rK(H,sK),rK(W,mK),rK(W,yK)),!0===he.svgFilters&&(rK(H,cK),rK(W,mK),rK(W,yK)),!0===he.mathMl&&(rK(H,dK),rK(W,gK),rK(W,yK))),X.tagCheck=null,X.attributeCheck=null,ZW(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?X.tagCheck=e.ADD_TAGS:FW(e.ADD_TAGS)&&(H===_&&(H=iK(H)),rK(H,e.ADD_TAGS,Ie))),ZW(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?X.attributeCheck=e.ADD_ATTR:FW(e.ADD_ATTR)&&(W===K&&(W=iK(W)),rK(W,e.ADD_ATTR,Ie))),ZW(e,"ADD_URI_SAFE_ATTR")&&FW(e.ADD_URI_SAFE_ATTR)&&rK(ye,e.ADD_URI_SAFE_ATTR,Ie),ZW(e,"FORBID_CONTENTS")&&FW(e.FORBID_CONTENTS)&&(pe===fe&&(pe=iK(pe)),rK(pe,e.FORBID_CONTENTS,Ie)),ZW(e,"ADD_FORBID_CONTENTS")&&FW(e.ADD_FORBID_CONTENTS)&&(pe===fe&&(pe=iK(pe)),rK(pe,e.ADD_FORBID_CONTENTS,Ie)),ue&&(H["#text"]=!0),te&&rK(H,["html","head","body"]),H.table&&(rK(H,["tbody"]),delete G.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw eK('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw eK('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=e.TRUSTED_TYPES_POLICY,S=k.createHTML("")}else void 0===k&&(k=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(h,i)),null!==k&&"string"==typeof S&&(S=k.createHTML(""));PW&&PW(e),Oe=e},Be=rK({},[...sK,...cK,...uK]),ze=rK({},[...dK,...hK]),De=function(e){DW(n.removed,{element:e});try{v(e).removeChild(e)}catch(t){m(e)}},je=function(e,t){try{DW(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){DW(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(oe||ie)try{De(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Fe=function(e){let t=null,n=null;if(re)e="<remove></remove>"+e;else{const t=WW(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Pe&&Ce===we&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=k?k.createHTML(e):e;if(Ce===we)try{t=(new d).parseFromString(o,Pe)}catch(e){}if(!t||!t.documentElement){t=$.createDocument(Ce,"template",null);try{t.documentElement.innerHTML=ke?S:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),Ce===we?P.call(t,te?"html":"body")[0]:te?t.documentElement:i},He=function(e){return T.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},_e=function(e){e.normalize();const t=T.call(e.ownerDocument||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let n=t.nextNode();for(;n;){let e=n.data;LW([O,A,R],t=>{e=KW(e,t," ")}),n.data=e,n=t.nextNode()}},We=function(e){const t=C?C(e):null;return"string"==typeof t&&("form"===Ie(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==x(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.childNodes!==y(e)))},Ke=function(e){if(!w||"object"!=typeof e||null===e)return!1;try{return w(e)===AK}catch(e){return!1}},Ve=function(e){if(!w||"object"!=typeof e||null===e)return!1;try{return"number"==typeof w(e)}catch(e){return!1}};function Ge(e,t,r){LW(e,e=>{e.call(n,t,r,Oe)})}const qe=function(e){let t=null;if(Ge(I.beforeSanitizeElements,e,null),We(e))return De(e),!0;const r=Ie(e.nodeName);if(Ge(I.uponSanitizeElement,e,{tagName:r,allowedTags:H}),ee&&e.hasChildNodes()&&!Ve(e.firstElementChild)&&JW(/<[/\w!]/g,e.innerHTML)&&JW(/<[/\w!]/g,e.textContent))return De(e),!0;if(ee&&e.namespaceURI===we&&"style"===r&&Ve(e.firstElementChild))return De(e),!0;if(e.nodeType===NK)return De(e),!0;if(ee&&e.nodeType===IK&&JW(/<[/\w]/g,e.data))return De(e),!0;if(G[r]||!(X.tagCheck instanceof Function&&X.tagCheck(r))&&!H[r]){if(!G[r]&&Ye(r)){if(V.tagNameCheck instanceof RegExp&&JW(V.tagNameCheck,r))return!1;if(V.tagNameCheck instanceof Function&&V.tagNameCheck(r))return!1}if(ue&&!pe[r]){const t=v(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const o=f(n[r],!0);t.insertBefore(o,g(e))}}}return De(e),!0}return((w?w(e):e.nodeType)!==MK||function(e){let t=v(e);t&&t.tagName||(t={namespaceURI:Ce,tagName:"template"});const n=HW(e.tagName),r=HW(t.tagName);return!!Se[e.namespaceURI]&&(e.namespaceURI===xe?t.namespaceURI===we?"svg"===n:t.namespaceURI===be?"svg"===n&&("annotation-xml"===r||$e[r]):Boolean(Be[n]):e.namespaceURI===be?t.namespaceURI===we?"math"===n:t.namespaceURI===xe?"math"===n&&Te[r]:Boolean(ze[n]):e.namespaceURI===we?!(t.namespaceURI===xe&&!Te[r])&&!(t.namespaceURI===be&&!$e[r])&&!ze[n]&&(Me[n]||!Be[n]):!("application/xhtml+xml"!==Pe||!Se[e.namespaceURI]))}(e))&&("noscript"!==r&&"noembed"!==r&&"noframes"!==r||!JW(/<\/no(script|embed|frames)/i,e.innerHTML))?(J&&e.nodeType===PK&&(t=e.textContent,LW([O,A,R],e=>{t=KW(t,e," ")}),e.textContent!==t&&(DW(n.removed,{element:e.cloneNode()}),e.textContent=t)),Ge(I.afterSanitizeElements,e,null),!1):(De(e),!0)},Xe=function(e,t,n){if(q[t])return!1;if(le&&("id"===t||"name"===t)&&(n in r||n in Ae))return!1;const o=W[t]||X.attributeCheck instanceof Function&&X.attributeCheck(t,e);if(Y&&!q[t]&&JW(L,t));else if(U&&JW(B,t));else if(!o||q[t]){if(!(Ye(e)&&(V.tagNameCheck instanceof RegExp&&JW(V.tagNameCheck,e)||V.tagNameCheck instanceof Function&&V.tagNameCheck(e))&&(V.attributeNameCheck instanceof RegExp&&JW(V.attributeNameCheck,t)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(t,e))||"is"===t&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&JW(V.tagNameCheck,n)||V.tagNameCheck instanceof Function&&V.tagNameCheck(n))))return!1}else if(ye[t]);else if(JW(F,KW(n,D,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==VW(n,"data:")||!me[e]){if(Z&&!JW(z,KW(n,D,"")));else if(n)return!1}else;return!0},Ue=rK({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ye=function(e){return!Ue[HW(e)]&&JW(j,e)},Ze=function(e){Ge(I.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||We(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0};let o=t.length;for(;o--;){const i=t[o],a=i.name,l=i.namespaceURI,s=i.value,c=Ie(a),u=s;let d="value"===a?u:GW(u);if(r.attrName=c,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,Ge(I.uponSanitizeAttribute,e,r),d=r.attrValue,!se||"id"!==c&&"name"!==c||0===VW(d,ce)||(je(a,e),d=ce+d),ee&&JW(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){je(a,e);continue}if("attributename"===c&&WW(d,"href")){je(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){je(a,e);continue}if(!Q&&JW(/\/>/i,d)){je(a,e);continue}J&&LW([O,A,R],e=>{d=KW(d,e," ")});const p=Ie(e.nodeName);if(Xe(p,c,d)){if(k&&"object"==typeof h&&"function"==typeof h.getAttributeType)if(l);else switch(h.getAttributeType(p,c)){case"TrustedHTML":d=k.createHTML(d);break;case"TrustedScriptURL":d=k.createScriptURL(d)}if(d!==u)try{l?e.setAttributeNS(l,a,d):e.setAttribute(a,d),We(e)?De(e):zW(n.removed)}catch(t){je(a,e)}}else je(a,e)}Ge(I.afterSanitizeAttributes,e,null)},Qe=function(e){let t=null;const n=He(e);for(Ge(I.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)Ge(I.uponSanitizeShadowNode,t,null),qe(t),Ze(t),Ke(t.content)&&Qe(t.content);Ge(I.afterSanitizeShadowDOM,e,null)},Je=function(e){if((w?w(e):e.nodeType)===MK){const t=b?b(e):e.shadowRoot;Ke(t)&&(Je(t),Qe(t))}const t=y?y(e):e.childNodes;if(!t)return;const n=[];LW(t,e=>{DW(n,e)});for(const e of n)Je(e)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,a=null,l=null;if(ke=!e,ke&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Ve(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return qW(e);case"boolean":return XW(e);case"bigint":return UW?UW(e):"0";case"symbol":return YW?YW(e):"Symbol()";case"undefined":default:return QW(e);case"function":case"object":{if(null===e)return QW(e);const t=e,n=aK(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:QW(e)}return QW(e)}}}(e)))throw eK("dirty is not a string, aborting");if(!n.isSupported)return e;if(ne||Le(t),n.removed=[],"string"==typeof e&&(de=!1),de){const t=C?C(e):e.nodeName;if("string"==typeof t){const e=Ie(t);if(!H[e]||G[e])throw eK("root node is forbidden and cannot be sanitized in-place")}if(We(e))throw eK("root node is clobbered and cannot be sanitized in-place");Je(e)}else if(Ve(e))r=Fe("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),i.nodeType===MK&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i),Je(i);else{if(!oe&&!J&&!te&&-1===e.indexOf("<"))return k&&ae?k.createHTML(e):e;if(r=Fe(e),!r)return oe?null:ae?S:""}r&&re&&De(r.firstChild);const s=He(de?e:r);for(;a=s.nextNode();)qe(a),Ze(a),Ke(a.content)&&Qe(a.content);if(de)return J&&_e(e),e;if(oe){if(J&&_e(r),ie)for(l=M.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(W.shadowroot||W.shadowrootmode)&&(l=N.call(o,l,!0)),l}let c=te?r.outerHTML:r.innerHTML;return te&&H["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&JW($K,r.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+c),J&&LW([O,A,R],e=>{c=KW(c,e," ")}),k&&ae?k.createHTML(c):c},n.setConfig=function(){Le(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),ne=!0},n.clearConfig=function(){Oe=null,ne=!1},n.isValidAttribute=function(e,t,n){Oe||Le({});const r=Ie(e),o=Ie(t);return Xe(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&DW(I[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=BW(I[e],t);return-1===n?void 0:jW(I[e],n,1)[0]}return zW(I[e])},n.removeHooks=function(e){I[e]=[]},n.removeAllHooks=function(){I={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const LK=({data:e,referenceIndexMap:t,style:n,primarySourceDatasetKey:r})=>(f.useEffect(()=>{},[t]),j.jsx("div",{style:n,className:"col-reference-link-container",children:YA(e).map(e=>{var n,o;return j.jsxs(Lw,{children:[j.jsx(Aw,{style:{paddingRight:"5px"},children:zI(t,e.id)&&j.jsx("span",{children:`[${zI(t,e.id)}]`})}),j.jsxs(Aw,{span:20,children:[(null==(n=null==e?void 0:e.sourceDataset)?void 0:n.key)!==r&&j.jsx(OR,{createdBy:null==e?void 0:e.createdBy,datasetKey:e.datasetKey,verbatimSourceKey:null==e?void 0:e.verbatimSourceKey,sourceDatasetKey:null==(o=null==e?void 0:e.sourceDataset)?void 0:o.key}),j.jsx("span",{id:`col-reference-${e.id}`,dangerouslySetInnerHTML:{__html:i_(RK.sanitize(e.citation))}})]})]},e.id)})}));var BK,zK,DK={exports:{}};const jK=l((BK||(BK=1,DK.exports=(zK={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},function(e,t,n){var r=t.prototype,o=r.format;n.en.formats=zK,r.format=function(e){void 0===e&&(e="YYYY-MM-DDTHH:mm:ssZ");var t,n=this.$locale().formats,r=(t=void 0===n?{}:n,e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(e,n,r){var o=r&&r.toUpperCase();return n||t[r]||zK[r]||t[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})}));return o.call(this,r)}})),DK.exports)),FK=({data:e,style:t,rank:n,taxon:r})=>{const o=n.reduce((e,t)=>(e[t.value]=t.plural,e),{});return j.jsxs("div",{style:t,children:[" ",e.filter(e=>e.value!==r.name.rank).sort((e,t)=>n.indexOf(e.value)-n.indexOf(t.value)).map(e=>j.jsx(w_,{md:6,label:cR(o[e.value]||e.value),classes:{formItem:{borderBottom:"none"}},children:j.jsx(ER,{to:"search",args:{TAXON_ID:r.id,rank:e.value,status:["accepted","provisionally accepted"]},children:e.count})},e.value))]})};class HK extends m.Component{constructor(e){super(e),this.state={error:!0,loading:!0}}render(){const{fallBack:e=null,datasetKey:t,sourceDatasetKey:n,style:r,size:o="MEDIUM"}=this.props,{error:i,loading:a}=this.state;return a||!i?j.jsx("img",{style:r,src:`${gR.dataApi}dataset/${t}/logo/source/${n}?size=${o}`,onLoad:()=>this.setState({error:!1,loading:!1}),onError:()=>this.setState({error:!0,loading:!1})}):e}}const _K=()=>j.jsx(m.Fragment,{children:j.jsx("div",{style:{minHeight:"calc(100vh - 100px)",display:"flex",justifyContent:"center",alignItems:"center"},className:"catalogue-of-life",children:j.jsxs("div",{style:{backgroundImage:"url(\"data:image/svg+xml,%3Csvg width='423px' height='341px' viewBox='0 0 423 341' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Ctitle%3EGroup 4%3C/title%3E%3Cg id='Ant-Design-Pro-3.0' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='404' transform='translate(-484.000000, -221.000000)'%3E%3Cg id='Group-4' transform='translate(464.000000, 222.000000)'%3E%3Cg id='Group-5' transform='translate(75.417348, 0.163879)' stroke='%23A3B1BF' stroke-width='1.62' opacity='0.6' stroke-linejoin='round' stroke-dasharray='12.15'%3E%3Cpath d='M169.575185,288.890375 C103.647066,288.890375 50.2010204,235.455806 50.2010204,169.540425 C50.2010204,103.625045 103.647066,50.1904762 169.575185,50.1904762 C235.50394,50.1904762 288.94935,103.625045 288.94935,169.540425 C288.94935,235.455806 235.50394,288.890375 169.575185,288.890375 Z' id='Stroke-1'%3E%3C/path%3E%3Cpath d='M169.405699,338.555288 C76.0274364,338.555288 0.329411882,262.872619 0.329411882,169.513299 C0.329411882,76.1539786 76.0274364,0.471309613 169.405699,0.471309613 C262.783961,0.471309613 338.481985,76.1539786 338.481985,169.513299 C338.481985,262.872619 262.783961,338.555288 169.405699,338.555288 Z' id='Stroke-3'%3E%3C/path%3E%3C/g%3E%3Cpolygon id='Fill-6' fill='%23F5F5F5' transform='translate(106.914750, 199.432805) rotate(22.000000) translate(-106.914750, -199.432805) ' points='97.7112298 198.803016 116.11827 190.231152 107.544667 208.634458'%3E%3C/polygon%3E%3Cpolygon id='Stroke-7' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(106.914750, 199.432805) rotate(22.000000) translate(-106.914750, -199.432805) ' points='97.7112298 198.803016 116.11827 190.231152 107.544667 208.634458'%3E%3C/polygon%3E%3Cpolygon id='Fill-8' transform='translate(58.996118, 219.767028) rotate(22.000000) translate(-58.996118, -219.767028) ' points='38.8543444 215.183828 54.4119879 199.629341 79.1378915 224.350228 63.580248 239.904716'%3E%3C/polygon%3E%3Cpolygon id='Stroke-9' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(58.996118, 219.767028) rotate(22.000000) translate(-58.996118, -219.767028) ' points='38.8543444 215.183828 54.4119879 199.629341 79.1378915 224.350228 63.580248 239.904716'%3E%3C/polygon%3E%3Cpolygon id='Fill-10' fill='%23F5F5F5' transform='translate(71.226096, 214.577614) rotate(22.000000) translate(-71.226096, -214.577614) ' points='51.4642422 198.657893 55.3028278 194.820086 90.9879502 230.497335 87.1487294 234.335141'%3E%3C/polygon%3E%3Cpolygon id='Stroke-11' stroke='%23A3B1BF' stroke-width='1.62' fill='%23F0F2F5' stroke-linejoin='round' transform='translate(71.226096, 214.577614) rotate(22.000000) translate(-71.226096, -214.577614) ' points='51.4642422 198.657893 55.3028278 194.820086 90.9879502 230.497335 87.1487294 234.335141'%3E%3C/polygon%3E%3Cpolygon id='Fill-12' transform='translate(84.698338, 273.903349) rotate(22.000000) translate(-84.698338, -273.903349) ' points='56.0769883 259.690379 70.4821667 245.288122 113.319688 288.116319 98.9145099 302.518575'%3E%3C/polygon%3E%3Cpolygon id='Stroke-13' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(84.698338, 273.903349) rotate(22.000000) translate(-84.698338, -273.903349) ' points='56.0769883 259.690379 70.4821667 245.288122 113.319688 288.116319 98.9145099 302.518575'%3E%3C/polygon%3E%3Cpolygon id='Fill-14' transform='translate(75.456149, 212.782520) rotate(22.000000) translate(-75.456149, -212.782520) ' points='63.8911557 203.879723 66.5512281 201.22019 87.0211429 221.685318 84.3604352 224.34485'%3E%3C/polygon%3E%3Cpolygon id='Stroke-15' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(75.456149, 212.782520) rotate(22.000000) translate(-75.456149, -212.782520) ' points='63.8911557 203.879723 66.5512281 201.22019 87.0211429 221.685318 84.3604352 224.34485'%3E%3C/polygon%3E%3Cpolygon id='Fill-16' fill='%23F5F5F5' transform='translate(78.176142, 202.618192) rotate(22.000000) translate(-78.176142, -202.618192) ' points='74.4026766 205.006817 80.5652518 198.845492 81.9496076 200.229567 75.7870324 206.390892'%3E%3C/polygon%3E%3Cpolygon id='Stroke-17' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(78.176142, 202.618192) rotate(22.000000) translate(-78.176142, -202.618192) ' points='74.4026766 205.006817 80.5652518 198.845492 81.9496076 200.229567 75.7870324 206.390892'%3E%3C/polygon%3E%3Cpolygon id='Fill-18' fill='%23F5F5F5' transform='translate(84.676979, 217.928886) rotate(22.000000) translate(-84.676979, -217.928886) ' points='80.9035138 220.317511 87.066089 214.156186 88.4504448 215.540261 82.2878696 221.701586'%3E%3C/polygon%3E%3Cpolygon id='Stroke-19' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(84.676979, 217.928886) rotate(22.000000) translate(-84.676979, -217.928886) ' points='80.9035138 220.317511 87.066089 214.156186 88.4504448 215.540261 82.2878696 221.701586'%3E%3C/polygon%3E%3Cpolygon id='Fill-20' transform='translate(70.238421, 242.404581) rotate(22.000000) translate(-70.238421, -242.404581) ' points='67.8493111 238.631881 74.0118863 244.793206 72.6275305 246.177281 66.4649553 240.015956'%3E%3C/polygon%3E%3Cpolygon id='Stroke-21' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(70.238421, 242.404581) rotate(22.000000) translate(-70.238421, -242.404581) ' points='67.8493111 238.631881 74.0118863 244.793206 72.6275305 246.177281 66.4649553 240.015956'%3E%3C/polygon%3E%3Cpolygon id='Fill-22' transform='translate(48.081755, 224.398789) rotate(22.000000) translate(-48.081755, -224.398789) ' points='35.1127107 220.725179 36.3242602 211.432376 61.0507992 236.153899 51.756111 237.365203'%3E%3C/polygon%3E%3Cpolygon id='Stroke-23' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(48.081755, 224.398789) rotate(22.000000) translate(-48.081755, -224.398789) ' points='35.1127107 220.725179 36.3242602 211.432376 61.0507992 236.153899 51.756111 237.365203'%3E%3C/polygon%3E%3Cpolygon id='Fill-24' transform='translate(38.612968, 228.416820) rotate(22.000000) translate(-38.612968, -228.416820) ' points='32.9179858 217.470622 26.2496982 216.056058 50.9762371 240.777581 49.5613861 234.110647'%3E%3C/polygon%3E%3Cpolygon id='Stroke-25' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(38.612968, 228.416820) rotate(22.000000) translate(-38.612968, -228.416820) ' points='32.9179858 217.470622 26.2496982 216.056058 50.9762371 240.777581 49.5613861 234.110647'%3E%3C/polygon%3E%3Cpolygon id='Fill-26' transform='translate(31.086342, 221.523909) rotate(22.000000) translate(-31.086342, -221.523909) ' points='32.6469986 217.297684 26.8592604 218.37941 34.2314793 225.750133 35.3134242 219.963569'%3E%3C/polygon%3E%3Cpolygon id='Stroke-27' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(31.086342, 221.523909) rotate(22.000000) translate(-31.086342, -221.523909) ' points='32.6469986 217.297684 26.8592604 218.37941 34.2314793 225.750133 35.3134242 219.963569'%3E%3C/polygon%3E%3Cpolygon id='Fill-28' transform='translate(38.344372, 238.617819) rotate(22.000000) translate(-38.344372, -238.617819) ' points='39.9050284 234.391595 34.1172902 235.47332 41.4895091 242.844044 42.571454 237.05748'%3E%3C/polygon%3E%3Cpolygon id='Stroke-29' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(38.344372, 238.617819) rotate(22.000000) translate(-38.344372, -238.617819) ' points='39.9050284 234.391595 34.1172902 235.47332 41.4895091 242.844044 42.571454 237.05748'%3E%3C/polygon%3E%3Cpolygon id='Fill-30' fill='%23F0F2F5' transform='translate(75.352798, 203.766862) rotate(22.000000) translate(-75.352798, -203.766862) ' points='71.4417859 201.708217 73.2937351 199.856644 79.2638092 205.824871 77.4118601 207.67708'%3E%3C/polygon%3E%3Cpolygon id='Stroke-31' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(75.352798, 203.766862) rotate(22.000000) translate(-75.352798, -203.766862) ' points='71.4417859 201.708217 73.2937351 199.856644 79.2638092 205.824871 77.4118601 207.67708'%3E%3C/polygon%3E%3Cpolygon id='Fill-32' fill='%23F0F2F5' transform='translate(81.871541, 219.119730) rotate(22.000000) translate(-81.871541, -219.119730) ' points='77.9605297 217.061085 79.8124789 215.209512 85.7825531 221.177739 83.9306039 223.029948'%3E%3C/polygon%3E%3Cpolygon id='Stroke-33' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(81.871541, 219.119730) rotate(22.000000) translate(-81.871541, -219.119730) ' points='77.9605297 217.061085 79.8124789 215.209512 85.7825531 221.177739 83.9306039 223.029948'%3E%3C/polygon%3E%3Cpolygon id='Fill-34' transform='translate(68.034935, 237.215417) rotate(22.000000) translate(-68.034935, -237.215417) ' points='65.1594898 237.106164 67.9256601 234.340555 70.9103796 237.324669 68.1442092 240.090278'%3E%3C/polygon%3E%3Cpolygon id='Stroke-35' stroke='%23A3B1BF' stroke-width='1.62' fill='%23F5F5F5' stroke-linejoin='round' transform='translate(68.034935, 237.215417) rotate(22.000000) translate(-68.034935, -237.215417) ' points='65.1594898 237.106164 67.9256601 234.340555 70.9103796 237.324669 68.1442092 240.090278'%3E%3C/polygon%3E%3Cpath d='M90.2556147,213.065319 C79.2271463,202.039088 74.6433339,188.153875 78.4889079,179.512775 C79.1248602,178.084237 80.8319571,175.429786 84.5339495,179.131027 C88.2353065,182.832268 120.560237,215.150007 123.931865,218.52095 C127.303492,221.891894 125.245065,224.192545 123.817508,224.827733 C115.174655,228.675068 101.284718,224.092186 90.2556147,213.065319 Z' id='Fill-36' fill='%23F5F5F5' transform='translate(101.453924, 201.708917) rotate(22.000000) translate(-101.453924, -201.708917) '%3E%3C/path%3E%3Cpath d='M90.2556147,213.065319 C79.2271463,202.039088 74.6433339,188.153875 78.4889079,179.512775 C79.1248602,178.084237 80.8319571,175.429786 84.5339495,179.131027 C88.2353065,182.832268 120.560237,215.150007 123.931865,218.52095 C127.303492,221.891894 125.245065,224.192545 123.817508,224.827733 C115.174655,228.675068 101.284718,224.092186 90.2556147,213.065319 Z' id='Stroke-38' stroke='%23A3B1BF' stroke-width='1.62' fill='%23F0F2F5' stroke-linejoin='round' transform='translate(101.453924, 201.708917) rotate(22.000000) translate(-101.453924, -201.708917) '%3E%3C/path%3E%3Cpolygon id='Fill-40' fill='%23F0F2F5' transform='translate(86.633853, 208.038961) rotate(22.000000) translate(-86.633853, -208.038961) ' points='77.9716233 201.230061 79.8235724 199.378488 95.2960835 214.84786 93.4441343 216.699433'%3E%3C/polygon%3E%3Cpolygon id='Stroke-42' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(86.633853, 208.038961) rotate(22.000000) translate(-86.633853, -208.038961) ' points='77.9716233 201.230061 79.8235724 199.378488 95.2960835 214.84786 93.4441343 216.699433'%3E%3C/polygon%3E%3Cpath d='M121.635514,196.068815 C120.517356,197.186746 118.704797,197.186746 117.586639,196.068815 C116.469116,194.950884 116.469116,193.138692 117.586639,192.020761 C118.704797,190.903465 120.517356,190.903465 121.635514,192.020761 C122.753672,193.138692 122.753672,194.950884 121.635514,196.068815' id='Fill-44' fill='%23A3B1BF' transform='translate(119.611315, 194.045026) rotate(22.000000) translate(-119.611315, -194.045026) '%3E%3C/path%3E%3Cpolygon id='Fill-46' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(81.250567, 248.056422) rotate(22.000000) translate(-81.250567, -248.056422) ' points='81.2505672 249.672341 79.6343206 248.056422 81.2505672 246.440503 82.8668137 248.056422'%3E%3C/polygon%3E%3Cpolygon id='Stroke-48' transform='translate(81.250567, 248.056422) rotate(22.000000) translate(-81.250567, -248.056422) ' points='81.2505672 249.672341 79.6343206 248.056422 81.2505672 246.440503 82.8668137 248.056422'%3E%3C/polygon%3E%3Cpolygon id='Fill-50' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(82.702196, 251.475282) rotate(22.000000) translate(-82.702196, -251.475282) ' points='82.7021965 253.091201 81.0859499 251.475282 82.7021965 249.859363 84.318443 251.475282'%3E%3C/polygon%3E%3Cpolygon id='Stroke-52' transform='translate(82.702196, 251.475282) rotate(22.000000) translate(-82.702196, -251.475282) ' points='82.7021965 253.091201 81.0859499 251.475282 82.7021965 249.859363 84.318443 251.475282'%3E%3C/polygon%3E%3Cpolygon id='Fill-54' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(84.153791, 254.894059) rotate(22.000000) translate(-84.153791, -254.894059) ' points='84.1537906 256.509978 82.5375441 254.894059 84.1537906 253.278141 85.7700372 254.894059'%3E%3C/polygon%3E%3Cpolygon id='Stroke-56' transform='translate(84.153791, 254.894059) rotate(22.000000) translate(-84.153791, -254.894059) ' points='84.1537906 256.509978 82.5375441 254.894059 84.1537906 253.278141 85.7700372 254.894059'%3E%3C/polygon%3E%3Cpolygon id='Fill-58' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(85.605385, 258.312837) rotate(22.000000) translate(-85.605385, -258.312837) ' points='85.6053848 259.928756 83.9891383 258.312837 85.6053848 256.696918 87.2216313 258.312837'%3E%3C/polygon%3E%3Cpolygon id='Stroke-60' transform='translate(85.605385, 258.312837) rotate(22.000000) translate(-85.605385, -258.312837) ' points='85.6053848 259.928756 83.9891383 258.312837 85.6053848 256.696918 87.2216313 258.312837'%3E%3C/polygon%3E%3Cpolygon id='Fill-62' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(78.094482, 249.395723) rotate(22.000000) translate(-78.094482, -249.395723) ' points='78.0944819 251.011642 76.4782353 249.395723 78.0944819 247.779804 79.7107284 249.395723'%3E%3C/polygon%3E%3Cpolygon id='Stroke-64' transform='translate(78.094482, 249.395723) rotate(22.000000) translate(-78.094482, -249.395723) ' points='78.0944819 251.011642 76.4782353 249.395723 78.0944819 247.779804 79.7107284 249.395723'%3E%3C/polygon%3E%3Cpolygon id='Fill-66' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(79.546052, 252.814559) rotate(22.000000) translate(-79.546052, -252.814559) ' points='79.5460522 254.430478 77.9298057 252.814559 79.5460522 251.198641 81.1622988 252.814559'%3E%3C/polygon%3E%3Cpolygon id='Stroke-68' transform='translate(79.546052, 252.814559) rotate(22.000000) translate(-79.546052, -252.814559) ' points='79.5460522 254.430478 77.9298057 252.814559 79.5460522 251.198641 81.1622988 252.814559'%3E%3C/polygon%3E%3Cpolygon id='Fill-70' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(80.997705, 256.233360) rotate(22.000000) translate(-80.997705, -256.233360) ' points='80.9977053 257.849279 79.3814588 256.23336 80.9977053 254.617442 82.6139518 256.23336'%3E%3C/polygon%3E%3Cpolygon id='Stroke-72' transform='translate(80.997705, 256.233360) rotate(22.000000) translate(-80.997705, -256.233360) ' points='79.3814588 256.23336 80.9977053 254.617442 82.6139518 256.23336 80.9977053 257.849279'%3E%3C/polygon%3E%3Cpolygon id='Fill-74' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(82.449276, 259.652197) rotate(22.000000) translate(-82.449276, -259.652197) ' points='82.4492757 261.268115 80.8330292 259.652197 82.4492757 258.036278 84.0655222 259.652197'%3E%3C/polygon%3E%3Cpolygon id='Stroke-76' transform='translate(82.449276, 259.652197) rotate(22.000000) translate(-82.449276, -259.652197) ' points='82.4492757 261.268115 80.8330292 259.652197 82.4492757 258.036278 84.0655222 259.652197'%3E%3C/polygon%3E%3Cpolygon id='Fill-78' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(74.938373, 250.735083) rotate(22.000000) translate(-74.938373, -250.735083) ' points='74.9383727 252.351002 73.3221262 250.735083 74.9383727 249.119164 76.5546193 250.735083'%3E%3C/polygon%3E%3Cpolygon id='Stroke-80' transform='translate(74.938373, 250.735083) rotate(22.000000) translate(-74.938373, -250.735083) ' points='74.9383727 252.351002 73.3221262 250.735083 74.9383727 249.119164 76.5546193 250.735083'%3E%3C/polygon%3E%3Cpolygon id='Fill-82' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(76.389967, 254.153860) rotate(22.000000) translate(-76.389967, -254.153860) ' points='76.3899669 255.769779 74.7737204 254.15386 76.3899669 252.537942 78.0062134 254.15386'%3E%3C/polygon%3E%3Cpolygon id='Stroke-84' transform='translate(76.389967, 254.153860) rotate(22.000000) translate(-76.389967, -254.153860) ' points='76.3899669 255.769779 74.7737204 254.15386 76.3899669 252.537942 78.0062134 254.15386'%3E%3C/polygon%3E%3Cpolygon id='Fill-86' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(77.841620, 257.572661) rotate(22.000000) translate(-77.841620, -257.572661) ' points='77.84162 259.18858 76.2253735 257.572661 77.84162 255.956743 79.4578665 257.572661'%3E%3C/polygon%3E%3Cpolygon id='Stroke-88' transform='translate(77.841620, 257.572661) rotate(22.000000) translate(-77.841620, -257.572661) ' points='77.84162 259.18858 76.2253735 257.572661 77.84162 255.956743 79.4578665 257.572661'%3E%3C/polygon%3E%3Cpolygon id='Fill-90' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(79.293190, 260.991498) rotate(22.000000) translate(-79.293190, -260.991498) ' points='79.2931904 262.607416 77.6769438 260.991498 79.2931904 259.375579 80.9094369 260.991498'%3E%3C/polygon%3E%3Cpolygon id='Stroke-92' transform='translate(79.293190, 260.991498) rotate(22.000000) translate(-79.293190, -260.991498) ' points='79.2931904 262.607416 77.6769438 260.991498 79.2931904 259.375579 80.9094369 260.991498'%3E%3C/polygon%3E%3Cpolygon id='Fill-94' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(71.782287, 252.074384) rotate(22.000000) translate(-71.782287, -252.074384) ' points='71.7822874 253.690302 70.1660409 252.074384 71.7822874 250.458465 73.3985339 252.074384'%3E%3C/polygon%3E%3Cpolygon id='Stroke-96' transform='translate(71.782287, 252.074384) rotate(22.000000) translate(-71.782287, -252.074384) ' points='71.7822874 253.690302 70.1660409 252.074384 71.7822874 250.458465 73.3985339 252.074384'%3E%3C/polygon%3E%3Cpolygon id='Fill-98' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(73.233882, 255.493161) rotate(22.000000) translate(-73.233882, -255.493161) ' points='73.2338816 257.10908 71.6176351 255.493161 73.2338816 253.877242 74.8501281 255.493161'%3E%3C/polygon%3E%3Cpolygon id='Stroke-100' transform='translate(73.233882, 255.493161) rotate(22.000000) translate(-73.233882, -255.493161) ' points='73.2338816 257.10908 71.6176351 255.493161 73.2338816 253.877242 74.8501281 255.493161'%3E%3C/polygon%3E%3Cpolygon id='Fill-102' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(74.685535, 258.911962) rotate(22.000000) translate(-74.685535, -258.911962) ' points='74.6855347 260.527881 73.0692881 258.911962 74.6855347 257.296044 76.3017812 258.911962'%3E%3C/polygon%3E%3Cpolygon id='Stroke-104' transform='translate(74.685535, 258.911962) rotate(22.000000) translate(-74.685535, -258.911962) ' points='74.6855347 260.527881 73.0692881 258.911962 74.6855347 257.296044 76.3017812 258.911962'%3E%3C/polygon%3E%3Cpolygon id='Fill-106' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(76.137105, 262.330799) rotate(22.000000) translate(-76.137105, -262.330799) ' points='76.137105 263.946717 74.5208585 262.330799 76.137105 260.71488 77.7533516 262.330799'%3E%3C/polygon%3E%3Cpolygon id='Stroke-108' transform='translate(76.137105, 262.330799) rotate(22.000000) translate(-76.137105, -262.330799) ' points='76.137105 263.946717 74.5208585 262.330799 76.137105 260.71488 77.7533516 262.330799'%3E%3C/polygon%3E%3Cpolygon id='Fill-110' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(68.626202, 253.413685) rotate(22.000000) translate(-68.626202, -253.413685) ' points='68.6262021 255.029603 67.0099556 253.413685 68.6262021 251.797766 70.2424486 253.413685'%3E%3C/polygon%3E%3Cpolygon id='Stroke-112' transform='translate(68.626202, 253.413685) rotate(22.000000) translate(-68.626202, -253.413685) ' points='68.6262021 255.029603 67.0099556 253.413685 68.6262021 251.797766 70.2424486 253.413685'%3E%3C/polygon%3E%3Cpolygon id='Fill-114' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(70.077796, 256.832462) rotate(22.000000) translate(-70.077796, -256.832462) ' points='70.0777963 258.448381 68.4615497 256.832462 70.0777963 255.216543 71.6940428 256.832462'%3E%3C/polygon%3E%3Cpolygon id='Stroke-116' transform='translate(70.077796, 256.832462) rotate(22.000000) translate(-70.077796, -256.832462) ' points='70.0777963 258.448381 68.4615497 256.832462 70.0777963 255.216543 71.6940428 256.832462'%3E%3C/polygon%3E%3Cpolygon id='Fill-118' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(71.529426, 260.251322) rotate(22.000000) translate(-71.529426, -260.251322) ' points='71.5294256 261.867241 69.913179 260.251322 71.5294256 258.635403 73.1456721 260.251322'%3E%3C/polygon%3E%3Cpolygon id='Stroke-120' transform='translate(71.529426, 260.251322) rotate(22.000000) translate(-71.529426, -260.251322) ' points='71.5294256 261.867241 69.913179 260.251322 71.5294256 258.635403 73.1456721 260.251322'%3E%3C/polygon%3E%3Cpolygon id='Fill-122' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(72.981020, 263.670099) rotate(22.000000) translate(-72.981020, -263.670099) ' points='72.9810197 265.286018 71.3647732 263.670099 72.9810197 262.054181 74.5972663 263.670099'%3E%3C/polygon%3E%3Cpolygon id='Stroke-124' transform='translate(72.981020, 263.670099) rotate(22.000000) translate(-72.981020, -263.670099) ' points='72.9810197 265.286018 71.3647732 263.670099 72.9810197 262.054181 74.5972663 263.670099'%3E%3C/polygon%3E%3Cpolygon id='Fill-126' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(88.852907, 265.961362) rotate(22.000000) translate(-88.852907, -265.961362) ' points='88.8529067 267.577281 87.2366602 265.961362 88.8529067 264.345443 90.4691533 265.961362'%3E%3C/polygon%3E%3Cpolygon id='Stroke-128' transform='translate(88.852907, 265.961362) rotate(22.000000) translate(-88.852907, -265.961362) ' points='88.8529067 267.577281 87.2366602 265.961362 88.8529067 264.345443 90.4691533 265.961362'%3E%3C/polygon%3E%3Cpolygon id='Fill-130' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(90.304501, 269.380139) rotate(22.000000) translate(-90.304501, -269.380139) ' points='90.3045009 270.996058 88.6882544 269.380139 90.3045009 267.764221 91.9207474 269.380139'%3E%3C/polygon%3E%3Cpolygon id='Stroke-132' transform='translate(90.304501, 269.380139) rotate(22.000000) translate(-90.304501, -269.380139) ' points='90.3045009 270.996058 88.6882544 269.380139 90.3045009 267.764221 91.9207474 269.380139'%3E%3C/polygon%3E%3Cpolygon id='Fill-134' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(91.756130, 272.798999) rotate(22.000000) translate(-91.756130, -272.798999) ' points='91.7561302 274.414918 90.1398837 272.798999 91.7561302 271.183081 93.3723767 272.798999'%3E%3C/polygon%3E%3Cpolygon id='Stroke-136' transform='translate(91.756130, 272.798999) rotate(22.000000) translate(-91.756130, -272.798999) ' points='91.7561302 274.414918 90.1398837 272.798999 91.7561302 271.183081 93.3723767 272.798999'%3E%3C/polygon%3E%3Cpolygon id='Fill-138' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(93.207724, 276.217777) rotate(22.000000) translate(-93.207724, -276.217777) ' points='93.2077244 277.833695 91.5914778 276.217777 93.2077244 274.601858 94.8239709 276.217777'%3E%3C/polygon%3E%3Cpolygon id='Stroke-140' transform='translate(93.207724, 276.217777) rotate(22.000000) translate(-93.207724, -276.217777) ' points='93.2077244 277.833695 91.5914778 276.217777 93.2077244 274.601858 94.8239709 276.217777'%3E%3C/polygon%3E%3Cpolygon id='Fill-142' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(85.696821, 267.300663) rotate(22.000000) translate(-85.696821, -267.300663) ' points='85.6968214 268.916582 84.0805749 267.300663 85.6968214 265.684744 87.313068 267.300663'%3E%3C/polygon%3E%3Cpolygon id='Stroke-144' transform='translate(85.696821, 267.300663) rotate(22.000000) translate(-85.696821, -267.300663) ' points='85.6968214 268.916582 84.0805749 267.300663 85.6968214 265.684744 87.313068 267.300663'%3E%3C/polygon%3E%3Cpolygon id='Fill-146' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(87.148416, 270.719440) rotate(22.000000) translate(-87.148416, -270.719440) ' points='87.1484156 272.335359 85.5321691 270.71944 87.1484156 269.103521 88.7646621 270.71944'%3E%3C/polygon%3E%3Cpolygon id='Stroke-148' transform='translate(87.148416, 270.719440) rotate(22.000000) translate(-87.148416, -270.719440) ' points='87.1484156 272.335359 85.5321691 270.71944 87.1484156 269.103521 88.7646621 270.71944'%3E%3C/polygon%3E%3Cpolygon id='Fill-150' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(88.599986, 274.138276) rotate(22.000000) translate(-88.599986, -274.138276) ' points='88.599986 275.754195 86.9837394 274.138276 88.599986 272.522358 90.2162325 274.138276'%3E%3C/polygon%3E%3Cpolygon id='Stroke-152' transform='translate(88.599986, 274.138276) rotate(22.000000) translate(-88.599986, -274.138276) ' points='88.599986 275.754195 86.9837394 274.138276 88.599986 272.522358 90.2162325 274.138276'%3E%3C/polygon%3E%3Cpolygon id='Fill-154' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(90.051639, 277.557078) rotate(22.000000) translate(-90.051639, -277.557078) ' points='90.0516391 279.172996 88.4353925 277.557078 90.0516391 275.941159 91.6678856 277.557078'%3E%3C/polygon%3E%3Cpolygon id='Stroke-156' transform='translate(90.051639, 277.557078) rotate(22.000000) translate(-90.051639, -277.557078) ' points='90.0516391 279.172996 88.4353925 277.557078 90.0516391 275.941159 91.6678856 277.557078'%3E%3C/polygon%3E%3Cpolygon id='Fill-158' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(82.540736, 268.639964) rotate(22.000000) translate(-82.540736, -268.639964) ' points='82.5407361 270.255882 80.9244896 268.639964 82.5407361 267.024045 84.1569826 268.639964'%3E%3C/polygon%3E%3Cpolygon id='Stroke-160' transform='translate(82.540736, 268.639964) rotate(22.000000) translate(-82.540736, -268.639964) ' points='82.5407361 270.255882 80.9244896 268.639964 82.5407361 267.024045 84.1569826 268.639964'%3E%3C/polygon%3E%3Cpolygon id='Fill-162' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(83.992306, 272.058800) rotate(22.000000) translate(-83.992306, -272.058800) ' points='83.9923065 273.674719 82.3760599 272.0588 83.9923065 270.442881 85.608553 272.0588'%3E%3C/polygon%3E%3Cpolygon id='Stroke-164' transform='translate(83.992306, 272.058800) rotate(22.000000) translate(-83.992306, -272.058800) ' points='83.9923065 273.674719 82.3760599 272.0588 83.9923065 270.442881 85.608553 272.0588'%3E%3C/polygon%3E%3Cpolygon id='Fill-166' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(85.443901, 275.477577) rotate(22.000000) translate(-85.443901, -275.477577) ' points='85.4439007 277.093496 83.8276541 275.477577 85.4439007 273.861659 87.0601472 275.477577'%3E%3C/polygon%3E%3Cpolygon id='Stroke-168' transform='translate(85.443901, 275.477577) rotate(22.000000) translate(-85.443901, -275.477577) ' points='85.4439007 277.093496 83.8276541 275.477577 85.4439007 273.861659 87.0601472 275.477577'%3E%3C/polygon%3E%3Cpolygon id='Fill-170' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(86.895554, 278.896378) rotate(22.000000) translate(-86.895554, -278.896378) ' points='86.8955537 280.512297 85.2793072 278.896378 86.8955537 277.28046 88.5118003 278.896378'%3E%3C/polygon%3E%3Cpolygon id='Stroke-172' transform='translate(86.895554, 278.896378) rotate(22.000000) translate(-86.895554, -278.896378) ' points='86.8955537 280.512297 85.2793072 278.896378 86.8955537 277.28046 88.5118003 278.896378'%3E%3C/polygon%3E%3Cpolygon id='Fill-174' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(79.384651, 269.979265) rotate(22.000000) translate(-79.384651, -269.979265) ' points='79.3846508 271.595183 77.7684043 269.979265 79.3846508 268.363346 81.0008973 269.979265'%3E%3C/polygon%3E%3Cpolygon id='Stroke-176' transform='translate(79.384651, 269.979265) rotate(22.000000) translate(-79.384651, -269.979265) ' points='79.3846508 271.595183 77.7684043 269.979265 79.3846508 268.363346 81.0008973 269.979265'%3E%3C/polygon%3E%3Cpolygon id='Fill-178' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(80.836221, 273.398101) rotate(22.000000) translate(-80.836221, -273.398101) ' points='80.8362212 275.01402 79.2199746 273.398101 80.8362212 271.782182 82.4524677 273.398101'%3E%3C/polygon%3E%3Cpolygon id='Stroke-180' transform='translate(80.836221, 273.398101) rotate(22.000000) translate(-80.836221, -273.398101) ' points='80.8362212 275.01402 79.2199746 273.398101 80.8362212 271.782182 82.4524677 273.398101'%3E%3C/polygon%3E%3Cpolygon id='Fill-182' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(82.287815, 276.816878) rotate(22.000000) translate(-82.287815, -276.816878) ' points='82.2878153 278.432797 80.6715688 276.816878 82.2878153 275.20096 83.9040619 276.816878'%3E%3C/polygon%3E%3Cpolygon id='Stroke-184' transform='translate(82.287815, 276.816878) rotate(22.000000) translate(-82.287815, -276.816878) ' points='82.2878153 278.432797 80.6715688 276.816878 82.2878153 275.20096 83.9040619 276.816878'%3E%3C/polygon%3E%3Cpolygon id='Fill-186' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(83.739445, 280.235738) rotate(22.000000) translate(-83.739445, -280.235738) ' points='83.7394446 281.851657 82.1231981 280.235738 83.7394446 278.61982 85.3556912 280.235738'%3E%3C/polygon%3E%3Cpolygon id='Stroke-188' transform='translate(83.739445, 280.235738) rotate(22.000000) translate(-83.739445, -280.235738) ' points='83.7394446 281.851657 82.1231981 280.235738 83.7394446 278.61982 85.3556912 280.235738'%3E%3C/polygon%3E%3Cpolygon id='Fill-190' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(76.228483, 271.318601) rotate(22.000000) translate(-76.228483, -271.318601) ' points='76.2284828 272.934519 74.6122362 271.318601 76.2284828 269.702682 77.8447293 271.318601'%3E%3C/polygon%3E%3Cpolygon id='Stroke-192' transform='translate(76.228483, 271.318601) rotate(22.000000) translate(-76.228483, -271.318601) ' points='76.2284828 272.934519 74.6122362 271.318601 76.2284828 269.702682 77.8447293 271.318601'%3E%3C/polygon%3E%3Cpolygon id='Fill-194' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(77.680136, 274.737402) rotate(22.000000) translate(-77.680136, -274.737402) ' points='77.6801358 276.353321 76.0638893 274.737402 77.6801358 273.121483 79.2963824 274.737402'%3E%3C/polygon%3E%3Cpolygon id='Stroke-196' transform='translate(77.680136, 274.737402) rotate(22.000000) translate(-77.680136, -274.737402) ' points='77.6801358 276.353321 76.0638893 274.737402 77.6801358 273.121483 79.2963824 274.737402'%3E%3C/polygon%3E%3Cpolygon id='Fill-198' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(79.131730, 278.156179) rotate(22.000000) translate(-79.131730, -278.156179) ' points='79.13173 279.772098 77.5154835 278.156179 79.13173 276.540261 80.7479765 278.156179'%3E%3C/polygon%3E%3Cpolygon id='Stroke-200' transform='translate(79.131730, 278.156179) rotate(22.000000) translate(-79.131730, -278.156179) ' points='79.13173 279.772098 77.5154835 278.156179 79.13173 276.540261 80.7479765 278.156179'%3E%3C/polygon%3E%3Cpolygon id='Fill-202' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(80.583359, 281.575039) rotate(22.000000) translate(-80.583359, -281.575039) ' points='80.5833593 283.190958 78.9671128 281.575039 80.5833593 279.959121 82.1996058 281.575039'%3E%3C/polygon%3E%3Cpolygon id='Stroke-204' transform='translate(80.583359, 281.575039) rotate(22.000000) translate(-80.583359, -281.575039) ' points='80.5833593 283.190958 78.9671128 281.575039 80.5833593 279.959121 82.1996058 281.575039'%3E%3C/polygon%3E%3Cpolygon id='Fill-206' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(96.455246, 283.866302) rotate(22.000000) translate(-96.455246, -283.866302) ' points='96.4552463 285.48222 94.8389998 283.866302 96.4552463 282.250383 98.0714929 283.866302'%3E%3C/polygon%3E%3Cpolygon id='Stroke-208' transform='translate(96.455246, 283.866302) rotate(22.000000) translate(-96.455246, -283.866302) ' points='96.4552463 285.48222 94.8389998 283.866302 96.4552463 282.250383 98.0714929 283.866302'%3E%3C/polygon%3E%3Cpolygon id='Fill-210' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(97.906840, 287.285079) rotate(22.000000) translate(-97.906840, -287.285079) ' points='97.9068405 288.900998 96.290594 287.285079 97.9068405 285.66916 99.523087 287.285079'%3E%3C/polygon%3E%3Cpolygon id='Stroke-212' transform='translate(97.906840, 287.285079) rotate(22.000000) translate(-97.906840, -287.285079) ' points='97.9068405 288.900998 96.290594 287.285079 97.9068405 285.66916 99.523087 287.285079'%3E%3C/polygon%3E%3Cpolygon id='Fill-214' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(99.358435, 290.703856) rotate(22.000000) translate(-99.358435, -290.703856) ' points='99.3584347 292.319775 97.7421881 290.703856 99.3584347 289.087938 100.974681 290.703856'%3E%3C/polygon%3E%3Cpolygon id='Stroke-216' transform='translate(99.358435, 290.703856) rotate(22.000000) translate(-99.358435, -290.703856) ' points='99.3584347 292.319775 97.7421881 290.703856 99.3584347 289.087938 100.974681 290.703856'%3E%3C/polygon%3E%3Cpolygon id='Fill-218' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(100.810064, 294.122716) rotate(22.000000) translate(-100.810064, -294.122716) ' points='100.810064 295.738635 99.1938174 294.122716 100.810064 292.506798 102.42631 294.122716'%3E%3C/polygon%3E%3Cpolygon id='Stroke-220' transform='translate(100.810064, 294.122716) rotate(22.000000) translate(-100.810064, -294.122716) ' points='100.810064 295.738635 99.1938174 294.122716 100.810064 292.506798 102.42631 294.122716'%3E%3C/polygon%3E%3Cpolygon id='Fill-222' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(93.299102, 285.205579) rotate(22.000000) translate(-93.299102, -285.205579) ' points='93.2991021 286.821497 91.6828556 285.205579 93.2991021 283.58966 94.9153486 285.205579'%3E%3C/polygon%3E%3Cpolygon id='Stroke-224' transform='translate(93.299102, 285.205579) rotate(22.000000) translate(-93.299102, -285.205579) ' points='93.2991021 286.821497 91.6828556 285.205579 93.2991021 283.58966 94.9153486 285.205579'%3E%3C/polygon%3E%3Cpolygon id='Fill-226' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(94.750755, 288.624380) rotate(22.000000) translate(-94.750755, -288.624380) ' points='94.7507552 290.240299 93.1345086 288.62438 94.7507552 287.008461 96.3670017 288.62438'%3E%3C/polygon%3E%3Cpolygon id='Stroke-228' transform='translate(94.750755, 288.624380) rotate(22.000000) translate(-94.750755, -288.624380) ' points='94.7507552 290.240299 93.1345086 288.62438 94.7507552 287.008461 96.3670017 288.62438'%3E%3C/polygon%3E%3Cpolygon id='Fill-230' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(96.202326, 292.043216) rotate(22.000000) translate(-96.202326, -292.043216) ' points='96.2023255 293.659135 94.586079 292.043216 96.2023255 290.427297 97.8185721 292.043216'%3E%3C/polygon%3E%3Cpolygon id='Stroke-232' transform='translate(96.202326, 292.043216) rotate(22.000000) translate(-96.202326, -292.043216) ' points='96.2023255 293.659135 94.586079 292.043216 96.2023255 290.427297 97.8185721 292.043216'%3E%3C/polygon%3E%3Cpolygon id='Fill-234' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(97.653979, 295.462017) rotate(22.000000) translate(-97.653979, -295.462017) ' points='97.6539786 297.077936 96.0377321 295.462017 97.6539786 293.846099 99.2702252 295.462017'%3E%3C/polygon%3E%3Cpolygon id='Stroke-236' transform='translate(97.653979, 295.462017) rotate(22.000000) translate(-97.653979, -295.462017) ' points='97.6539786 297.077936 96.0377321 295.462017 97.6539786 293.846099 99.2702252 295.462017'%3E%3C/polygon%3E%3Cpolygon id='Fill-238' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(90.143017, 286.544880) rotate(22.000000) translate(-90.143017, -286.544880) ' points='90.1430168 288.160798 88.5267702 286.54488 90.1430168 284.928961 91.7592633 286.54488'%3E%3C/polygon%3E%3Cpolygon id='Stroke-240' transform='translate(90.143017, 286.544880) rotate(22.000000) translate(-90.143017, -286.544880) ' points='90.1430168 288.160798 88.5267702 286.54488 90.1430168 284.928961 91.7592633 286.54488'%3E%3C/polygon%3E%3Cpolygon id='Fill-242' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(91.594670, 289.963681) rotate(22.000000) translate(-91.594670, -289.963681) ' points='91.5946698 291.5796 89.9784233 289.963681 91.5946698 288.347762 93.2109164 289.963681'%3E%3C/polygon%3E%3Cpolygon id='Stroke-244' transform='translate(91.594670, 289.963681) rotate(22.000000) translate(-91.594670, -289.963681) ' points='91.5946698 291.5796 89.9784233 289.963681 91.5946698 288.347762 93.2109164 289.963681'%3E%3C/polygon%3E%3Cpolygon id='Fill-246' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(93.046240, 293.382517) rotate(22.000000) translate(-93.046240, -293.382517) ' points='93.0462402 294.998436 91.4299937 293.382517 93.0462402 291.766598 94.6624868 293.382517'%3E%3C/polygon%3E%3Cpolygon id='Stroke-248' transform='translate(93.046240, 293.382517) rotate(22.000000) translate(-93.046240, -293.382517) ' points='93.0462402 294.998436 91.4299937 293.382517 93.0462402 291.766598 94.6624868 293.382517'%3E%3C/polygon%3E%3Cpolygon id='Fill-250' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(94.497893, 296.801318) rotate(22.000000) translate(-94.497893, -296.801318) ' points='94.4978933 298.417237 92.8816468 296.801318 94.4978933 295.1854 96.1141398 296.801318'%3E%3C/polygon%3E%3Cpolygon id='Stroke-252' transform='translate(94.497893, 296.801318) rotate(22.000000) translate(-94.497893, -296.801318) ' points='94.4978933 298.417237 92.8816468 296.801318 94.4978933 295.1854 96.1141398 296.801318'%3E%3C/polygon%3E%3Cpolygon id='Fill-254' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(86.986931, 287.884181) rotate(22.000000) translate(-86.986931, -287.884181) ' points='86.9869315 289.500099 85.3706849 287.884181 86.9869315 286.268262 88.603178 287.884181'%3E%3C/polygon%3E%3Cpolygon id='Stroke-256' transform='translate(86.986931, 287.884181) rotate(22.000000) translate(-86.986931, -287.884181) ' points='86.9869315 289.500099 85.3706849 287.884181 86.9869315 286.268262 88.603178 287.884181'%3E%3C/polygon%3E%3Cpolygon id='Fill-258' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(88.438585, 291.302982) rotate(22.000000) translate(-88.438585, -291.302982) ' points='88.4385845 292.9189 86.822338 291.302982 88.4385845 289.687063 90.0548311 291.302982'%3E%3C/polygon%3E%3Cpolygon id='Stroke-260' transform='translate(88.438585, 291.302982) rotate(22.000000) translate(-88.438585, -291.302982) ' points='88.4385845 292.9189 86.822338 291.302982 88.4385845 289.687063 90.0548311 291.302982'%3E%3C/polygon%3E%3Cpolygon id='Fill-262' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(89.890155, 294.721818) rotate(22.000000) translate(-89.890155, -294.721818) ' points='89.8901549 296.337737 88.2739084 294.721818 89.8901549 293.105899 91.5064014 294.721818'%3E%3C/polygon%3E%3Cpolygon id='Stroke-264' transform='translate(89.890155, 294.721818) rotate(22.000000) translate(-89.890155, -294.721818) ' points='89.8901549 296.337737 88.2739084 294.721818 89.8901549 293.105899 91.5064014 294.721818'%3E%3C/polygon%3E%3Cpolygon id='Fill-266' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(91.341749, 298.140595) rotate(22.000000) translate(-91.341749, -298.140595) ' points='91.3417491 299.756514 89.7255025 298.140595 91.3417491 296.524677 92.9579956 298.140595'%3E%3C/polygon%3E%3Cpolygon id='Stroke-268' transform='translate(91.341749, 298.140595) rotate(22.000000) translate(-91.341749, -298.140595) ' points='91.3417491 299.756514 89.7255025 298.140595 91.3417491 296.524677 92.9579956 298.140595'%3E%3C/polygon%3E%3Cpolygon id='Fill-270' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(83.830846, 289.223482) rotate(22.000000) translate(-83.830846, -289.223482) ' points='83.8308461 290.8394 82.2145996 289.223482 83.8308461 287.607563 85.4470927 289.223482'%3E%3C/polygon%3E%3Cpolygon id='Stroke-272' transform='translate(83.830846, 289.223482) rotate(22.000000) translate(-83.830846, -289.223482) ' points='82.2145996 289.223482 83.8308461 287.607563 85.4470927 289.223482 83.8308461 290.8394'%3E%3C/polygon%3E%3Cpolygon id='Fill-274' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(85.282417, 292.642318) rotate(22.000000) translate(-85.282417, -292.642318) ' points='85.2824165 294.258236 83.66617 292.642318 85.2824165 291.026399 86.898663 292.642318'%3E%3C/polygon%3E%3Cpolygon id='Stroke-276' transform='translate(85.282417, 292.642318) rotate(22.000000) translate(-85.282417, -292.642318) ' points='85.2824165 294.258236 83.66617 292.642318 85.2824165 291.026399 86.898663 292.642318'%3E%3C/polygon%3E%3Cpolygon id='Fill-278' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(86.734070, 296.061119) rotate(22.000000) translate(-86.734070, -296.061119) ' points='86.7340696 297.677038 85.1178231 296.061119 86.7340696 294.4452 88.3503161 296.061119'%3E%3C/polygon%3E%3Cpolygon id='Stroke-280' transform='translate(86.734070, 296.061119) rotate(22.000000) translate(-86.734070, -296.061119) ' points='86.7340696 297.677038 85.1178231 296.061119 86.7340696 294.4452 88.3503161 296.061119'%3E%3C/polygon%3E%3Cpolygon id='Fill-282' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(88.185664, 299.479896) rotate(22.000000) translate(-88.185664, -299.479896) ' points='88.1856638 301.095815 86.5694172 299.479896 88.1856638 297.863978 89.8019103 299.479896'%3E%3C/polygon%3E%3Cpolygon id='Stroke-284' transform='translate(88.185664, 299.479896) rotate(22.000000) translate(-88.185664, -299.479896) ' points='88.1856638 301.095815 86.5694172 299.479896 88.1856638 297.863978 89.8019103 299.479896'%3E%3C/polygon%3E%3Cpolygon id='Fill-286' transform='translate(37.779995, 163.402514) rotate(22.000000) translate(-37.779995, -163.402514) ' points='51.9961666 192.018058 66.401345 177.615802 23.5644587 134.78697 9.15864501 149.189862'%3E%3C/polygon%3E%3Cpolygon id='Fill-290' transform='translate(50.400318, 195.682118) rotate(22.000000) translate(-50.400318, -195.682118) ' points='54.1737837 198.070743 48.0112085 191.909418 46.6268527 193.293493 52.7894279 199.454818'%3E%3C/polygon%3E%3Cpolygon id='Stroke-292' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(50.400318, 195.682118) rotate(22.000000) translate(-50.400318, -195.682118) ' points='54.1737837 198.070743 48.0112085 191.909418 46.6268527 193.293493 52.7894279 199.454818'%3E%3C/polygon%3E%3Cpolygon id='Fill-294' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(52.603532, 200.871447) rotate(22.000000) translate(-52.603532, -200.871447) ' points='52.712807 203.746308 55.4789773 200.980699 52.4942579 197.996585 49.7280876 200.762195'%3E%3C/polygon%3E%3Cpolygon id='Stroke-296' stroke='%23A3B1BF' stroke-width='1.62' fill='%23FFFFFF' stroke-linejoin='round' transform='translate(52.603532, 200.871447) rotate(22.000000) translate(-52.603532, -200.871447) ' points='52.712807 203.746308 55.4789773 200.980699 52.4942579 197.996585 49.7280876 200.762195'%3E%3C/polygon%3E%3Cpolygon id='Fill-298' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(53.983257, 183.836778) rotate(22.000000) translate(-53.983257, -183.836778) ' points='52.3670108 183.836778 53.9832574 185.452697 55.5995039 183.836778 53.9832574 182.22086'%3E%3C/polygon%3E%3Cpolygon id='Stroke-300' transform='translate(53.983257, 183.836778) rotate(22.000000) translate(-53.983257, -183.836778) ' points='52.3670108 183.836778 53.9832574 185.452697 55.5995039 183.836778 53.9832574 182.22086'%3E%3C/polygon%3E%3Cpolygon id='Fill-302' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(52.531663, 180.418001) rotate(22.000000) translate(-52.531663, -180.418001) ' points='50.9154167 180.418001 52.5316632 182.03392 54.1479097 180.418001 52.5316632 178.802082'%3E%3C/polygon%3E%3Cpolygon id='Stroke-304' transform='translate(52.531663, 180.418001) rotate(22.000000) translate(-52.531663, -180.418001) ' points='50.9154167 180.418001 52.5316632 182.03392 54.1479097 180.418001 52.5316632 178.802082'%3E%3C/polygon%3E%3Cpolygon id='Fill-306' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(51.080034, 176.999141) rotate(22.000000) translate(-51.080034, -176.999141) ' points='49.4637874 176.999141 51.0800339 178.61506 52.6962805 176.999141 51.0800339 175.383222'%3E%3C/polygon%3E%3Cpolygon id='Stroke-308' transform='translate(51.080034, 176.999141) rotate(22.000000) translate(-51.080034, -176.999141) ' points='49.4637874 176.999141 51.0800339 178.61506 52.6962805 176.999141 51.0800339 175.383222'%3E%3C/polygon%3E%3Cpolygon id='Fill-310' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(49.628440, 173.580364) rotate(22.000000) translate(-49.628440, -173.580364) ' points='48.0121932 173.580364 49.6284397 175.196282 51.2446863 173.580364 49.6284397 171.964445'%3E%3C/polygon%3E%3Cpolygon id='Stroke-312' transform='translate(49.628440, 173.580364) rotate(22.000000) translate(-49.628440, -173.580364) ' points='48.0121932 173.580364 49.6284397 175.196282 51.2446863 173.580364 49.6284397 171.964445'%3E%3C/polygon%3E%3Cpolygon id='Fill-314' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(50.827172, 185.176079) rotate(22.000000) translate(-50.827172, -185.176079) ' points='49.2109255 185.176079 50.8271721 186.791998 52.4434186 185.176079 50.8271721 183.560161'%3E%3C/polygon%3E%3Cpolygon id='Stroke-316' transform='translate(50.827172, 185.176079) rotate(22.000000) translate(-50.827172, -185.176079) ' points='49.2109255 185.176079 50.8271721 186.791998 52.4434186 185.176079 50.8271721 183.560161'%3E%3C/polygon%3E%3Cpolygon id='Fill-318' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(49.375578, 181.757302) rotate(22.000000) translate(-49.375578, -181.757302) ' points='47.7593313 181.757302 49.3755779 183.373221 50.9918244 181.757302 49.3755779 180.141383'%3E%3C/polygon%3E%3Cpolygon id='Stroke-320' transform='translate(49.375578, 181.757302) rotate(22.000000) translate(-49.375578, -181.757302) ' points='47.7593313 181.757302 49.3755779 183.373221 50.9918244 181.757302 49.3755779 180.141383'%3E%3C/polygon%3E%3Cpolygon id='Fill-322' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(47.923949, 178.338442) rotate(22.000000) translate(-47.923949, -178.338442) ' points='46.3077021 178.338442 47.9239486 179.954361 49.5401951 178.338442 47.9239486 176.722523'%3E%3C/polygon%3E%3Cpolygon id='Stroke-324' transform='translate(47.923949, 178.338442) rotate(22.000000) translate(-47.923949, -178.338442) ' points='46.3077021 178.338442 47.9239486 179.954361 49.5401951 178.338442 47.9239486 176.722523'%3E%3C/polygon%3E%3Cpolygon id='Fill-326' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(46.472354, 174.919665) rotate(22.000000) translate(-46.472354, -174.919665) ' points='44.8561079 174.919665 46.4723544 176.535583 48.088601 174.919665 46.4723544 173.303746'%3E%3C/polygon%3E%3Cpolygon id='Stroke-328' transform='translate(46.472354, 174.919665) rotate(22.000000) translate(-46.472354, -174.919665) ' points='44.8561079 174.919665 46.4723544 176.535583 48.088601 174.919665 46.4723544 173.303746'%3E%3C/polygon%3E%3Cpolygon id='Fill-330' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(47.671087, 186.515380) rotate(22.000000) translate(-47.671087, -186.515380) ' points='46.0548402 186.51538 47.6710867 188.131299 49.2873333 186.51538 47.6710867 184.899461'%3E%3C/polygon%3E%3Cpolygon id='Stroke-332' transform='translate(47.671087, 186.515380) rotate(22.000000) translate(-47.671087, -186.515380) ' points='46.0548402 186.51538 47.6710867 188.131299 49.2873333 186.51538 47.6710867 184.899461'%3E%3C/polygon%3E%3Cpolygon id='Fill-334' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(46.219493, 183.096603) rotate(22.000000) translate(-46.219493, -183.096603) ' points='44.603246 183.096603 46.2194926 184.712521 47.8357391 183.096603 46.2194926 181.480684'%3E%3C/polygon%3E%3Cpolygon id='Stroke-336' transform='translate(46.219493, 183.096603) rotate(22.000000) translate(-46.219493, -183.096603) ' points='44.603246 183.096603 46.2194926 184.712521 47.8357391 183.096603 46.2194926 181.480684'%3E%3C/polygon%3E%3Cpolygon id='Fill-338' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(44.767839, 179.677802) rotate(22.000000) translate(-44.767839, -179.677802) ' points='43.1515929 179.677802 44.7678395 181.29372 46.384086 179.677802 44.7678395 178.061883'%3E%3C/polygon%3E%3Cpolygon id='Stroke-340' transform='translate(44.767839, 179.677802) rotate(22.000000) translate(-44.767839, -179.677802) ' points='43.1515929 179.677802 44.7678395 181.29372 46.384086 179.677802 44.7678395 178.061883'%3E%3C/polygon%3E%3Cpolygon id='Fill-342' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(43.316269, 176.258965) rotate(22.000000) translate(-43.316269, -176.258965) ' points='41.7000226 176.258965 43.3162691 177.874884 44.9325156 176.258965 43.3162691 174.643047'%3E%3C/polygon%3E%3Cpolygon id='Stroke-344' transform='translate(43.316269, 176.258965) rotate(22.000000) translate(-43.316269, -176.258965) ' points='41.7000226 176.258965 43.3162691 177.874884 44.9325156 176.258965 43.3162691 174.643047'%3E%3C/polygon%3E%3Cpolygon id='Fill-346' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(44.514978, 187.854740) rotate(22.000000) translate(-44.514978, -187.854740) ' points='42.8987311 187.85474 44.5149776 189.470659 46.1312242 187.85474 44.5149776 186.238821'%3E%3C/polygon%3E%3Cpolygon id='Stroke-348' transform='translate(44.514978, 187.854740) rotate(22.000000) translate(-44.514978, -187.854740) ' points='42.8987311 187.85474 44.5149776 189.470659 46.1312242 187.85474 44.5149776 186.238821'%3E%3C/polygon%3E%3Cpolygon id='Fill-350' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(43.063348, 184.435880) rotate(22.000000) translate(-43.063348, -184.435880) ' points='41.4471018 184.43588 43.0633483 186.051799 44.6795949 184.43588 43.0633483 182.819961'%3E%3C/polygon%3E%3Cpolygon id='Stroke-352' transform='translate(43.063348, 184.435880) rotate(22.000000) translate(-43.063348, -184.435880) ' points='41.4471018 184.43588 43.0633483 186.051799 44.6795949 184.43588 43.0633483 182.819961'%3E%3C/polygon%3E%3Cpolygon id='Fill-354' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(41.611754, 181.017103) rotate(22.000000) translate(-41.611754, -181.017103) ' points='39.9955076 181.017103 41.6117542 182.633021 43.2280007 181.017103 41.6117542 179.401184'%3E%3C/polygon%3E%3Cpolygon id='Stroke-356' transform='translate(41.611754, 181.017103) rotate(22.000000) translate(-41.611754, -181.017103) ' points='39.9955076 181.017103 41.6117542 182.633021 43.2280007 181.017103 41.6117542 179.401184'%3E%3C/polygon%3E%3Cpolygon id='Fill-358' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(40.160184, 177.598266) rotate(22.000000) translate(-40.160184, -177.598266) ' points='38.5439373 177.598266 40.1601838 179.214185 41.7764303 177.598266 40.1601838 175.982348'%3E%3C/polygon%3E%3Cpolygon id='Stroke-360' transform='translate(40.160184, 177.598266) rotate(22.000000) translate(-40.160184, -177.598266) ' points='38.5439373 177.598266 40.1601838 179.214185 41.7764303 177.598266 40.1601838 175.982348'%3E%3C/polygon%3E%3Cpolygon id='Fill-362' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(41.358892, 189.194041) rotate(22.000000) translate(-41.358892, -189.194041) ' points='39.7426458 189.194041 41.3588923 190.80996 42.9751388 189.194041 41.3588923 187.578122'%3E%3C/polygon%3E%3Cpolygon id='Stroke-364' transform='translate(41.358892, 189.194041) rotate(22.000000) translate(-41.358892, -189.194041) ' points='39.7426458 189.194041 41.3588923 190.80996 42.9751388 189.194041 41.3588923 187.578122'%3E%3C/polygon%3E%3Cpolygon id='Fill-366' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(39.907263, 185.775181) rotate(22.000000) translate(-39.907263, -185.775181) ' points='38.2910165 185.775181 39.907263 187.3911 41.5235095 185.775181 39.907263 184.159262'%3E%3C/polygon%3E%3Cpolygon id='Stroke-368' transform='translate(39.907263, 185.775181) rotate(22.000000) translate(-39.907263, -185.775181) ' points='38.2910165 185.775181 39.907263 187.3911 41.5235095 185.775181 39.907263 184.159262'%3E%3C/polygon%3E%3Cpolygon id='Fill-370' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(38.455669, 182.356404) rotate(22.000000) translate(-38.455669, -182.356404) ' points='36.8394223 182.356404 38.4556688 183.972322 40.0719154 182.356404 38.4556688 180.740485'%3E%3C/polygon%3E%3Cpolygon id='Stroke-372' transform='translate(38.455669, 182.356404) rotate(22.000000) translate(-38.455669, -182.356404) ' points='36.8394223 182.356404 38.4556688 183.972322 40.0719154 182.356404 38.4556688 180.740485'%3E%3C/polygon%3E%3Cpolygon id='Fill-374' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(37.004016, 178.937602) rotate(22.000000) translate(-37.004016, -178.937602) ' points='35.3877692 178.937602 37.0040158 180.553521 38.6202623 178.937602 37.0040158 177.321684'%3E%3C/polygon%3E%3Cpolygon id='Stroke-376' transform='translate(37.004016, 178.937602) rotate(22.000000) translate(-37.004016, -178.937602) ' points='35.3877692 178.937602 37.0040158 180.553521 38.6202623 178.937602 37.0040158 177.321684'%3E%3C/polygon%3E%3Cpolygon id='Fill-378' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(46.380894, 165.931897) rotate(22.000000) translate(-46.380894, -165.931897) ' points='44.7646475 165.931897 46.380894 167.547816 47.9971405 165.931897 46.380894 164.315979'%3E%3C/polygon%3E%3Cpolygon id='Stroke-380' transform='translate(46.380894, 165.931897) rotate(22.000000) translate(-46.380894, -165.931897) ' points='44.7646475 165.931897 46.380894 167.547816 47.9971405 165.931897 46.380894 164.315979'%3E%3C/polygon%3E%3Cpolygon id='Fill-382' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(44.929324, 162.513061) rotate(22.000000) translate(-44.929324, -162.513061) ' points='43.3130771 162.513061 44.9293236 164.12898 46.5455702 162.513061 44.9293236 160.897143'%3E%3C/polygon%3E%3Cpolygon id='Stroke-384' transform='translate(44.929324, 162.513061) rotate(22.000000) translate(-44.929324, -162.513061) ' points='43.3130771 162.513061 44.9293236 164.12898 46.5455702 162.513061 44.9293236 160.897143'%3E%3C/polygon%3E%3Cpolygon id='Fill-386' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(43.477729, 159.094284) rotate(22.000000) translate(-43.477729, -159.094284) ' points='41.8614829 159.094284 43.4777295 160.710203 45.093976 159.094284 43.4777295 157.478365'%3E%3C/polygon%3E%3Cpolygon id='Stroke-388' transform='translate(43.477729, 159.094284) rotate(22.000000) translate(-43.477729, -159.094284) ' points='41.8614829 159.094284 43.4777295 160.710203 45.093976 159.094284 43.4777295 157.478365'%3E%3C/polygon%3E%3Cpolygon id='Fill-390' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(42.026100, 155.675424) rotate(22.000000) translate(-42.026100, -155.675424) ' points='40.4098536 155.675424 42.0261002 157.291342 43.6423467 155.675424 42.0261002 154.059505'%3E%3C/polygon%3E%3Cpolygon id='Stroke-392' transform='translate(42.026100, 155.675424) rotate(22.000000) translate(-42.026100, -155.675424) ' points='40.4098536 155.675424 42.0261002 157.291342 43.6423467 155.675424 42.0261002 154.059505'%3E%3C/polygon%3E%3Cpolygon id='Fill-394' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(43.224809, 167.271198) rotate(22.000000) translate(-43.224809, -167.271198) ' points='41.6085622 167.271198 43.2248087 168.887117 44.8410552 167.271198 43.2248087 165.65528'%3E%3C/polygon%3E%3Cpolygon id='Stroke-396' transform='translate(43.224809, 167.271198) rotate(22.000000) translate(-43.224809, -167.271198) ' points='41.6085622 167.271198 43.2248087 168.887117 44.8410552 167.271198 43.2248087 165.65528'%3E%3C/polygon%3E%3Cpolygon id='Fill-398' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(41.773238, 163.852362) rotate(22.000000) translate(-41.773238, -163.852362) ' points='40.1569918 163.852362 41.7732383 165.468281 43.3894848 163.852362 41.7732383 162.236443'%3E%3C/polygon%3E%3Cpolygon id='Stroke-400' transform='translate(41.773238, 163.852362) rotate(22.000000) translate(-41.773238, -163.852362) ' points='40.1569918 163.852362 41.7732383 165.468281 43.3894848 163.852362 41.7732383 162.236443'%3E%3C/polygon%3E%3Cpolygon id='Fill-402' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(40.321585, 160.433561) rotate(22.000000) translate(-40.321585, -160.433561) ' points='38.7053387 160.433561 40.3215852 162.04948 41.9378318 160.433561 40.3215852 158.817642'%3E%3C/polygon%3E%3Cpolygon id='Stroke-404' transform='translate(40.321585, 160.433561) rotate(22.000000) translate(-40.321585, -160.433561) ' points='38.7053387 160.433561 40.3215852 162.04948 41.9378318 160.433561 40.3215852 158.817642'%3E%3C/polygon%3E%3Cpolygon id='Fill-406' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(38.869991, 157.014784) rotate(22.000000) translate(-38.869991, -157.014784) ' points='37.2537445 157.014784 38.8699911 158.630702 40.4862376 157.014784 38.8699911 155.398865'%3E%3C/polygon%3E%3Cpolygon id='Stroke-408' transform='translate(38.869991, 157.014784) rotate(22.000000) translate(-38.869991, -157.014784) ' points='37.2537445 157.014784 38.8699911 158.630702 40.4862376 157.014784 38.8699911 155.398865'%3E%3C/polygon%3E%3Cpolygon id='Fill-410' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(40.068723, 168.610499) rotate(22.000000) translate(-40.068723, -168.610499) ' points='38.4524768 168.610499 40.0687234 170.226418 41.6849699 168.610499 40.0687234 166.994581'%3E%3C/polygon%3E%3Cpolygon id='Stroke-412' transform='translate(40.068723, 168.610499) rotate(22.000000) translate(-40.068723, -168.610499) ' points='38.4524768 168.610499 40.0687234 170.226418 41.6849699 168.610499 40.0687234 166.994581'%3E%3C/polygon%3E%3Cpolygon id='Fill-414' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(38.617129, 165.191722) rotate(22.000000) translate(-38.617129, -165.191722) ' points='37.0008827 165.191722 38.6171292 166.807641 40.2333757 165.191722 38.6171292 163.575803'%3E%3C/polygon%3E%3Cpolygon id='Stroke-416' transform='translate(38.617129, 165.191722) rotate(22.000000) translate(-38.617129, -165.191722) ' points='37.0008827 165.191722 38.6171292 166.807641 40.2333757 165.191722 38.6171292 163.575803'%3E%3C/polygon%3E%3Cpolygon id='Fill-418' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(37.165500, 161.772862) rotate(22.000000) translate(-37.165500, -161.772862) ' points='35.5492534 161.772862 37.1654999 163.388781 38.7817464 161.772862 37.1654999 160.156943'%3E%3C/polygon%3E%3Cpolygon id='Stroke-420' transform='translate(37.165500, 161.772862) rotate(22.000000) translate(-37.165500, -161.772862) ' points='35.5492534 161.772862 37.1654999 163.388781 38.7817464 161.772862 37.1654999 160.156943'%3E%3C/polygon%3E%3Cpolygon id='Fill-422' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(35.713906, 158.354085) rotate(22.000000) translate(-35.713906, -158.354085) ' points='34.0976592 158.354085 35.7139057 159.970003 37.3301523 158.354085 35.7139057 156.738166'%3E%3C/polygon%3E%3Cpolygon id='Stroke-424' transform='translate(35.713906, 158.354085) rotate(22.000000) translate(-35.713906, -158.354085) ' points='34.0976592 158.354085 35.7139057 159.970003 37.3301523 158.354085 35.7139057 156.738166'%3E%3C/polygon%3E%3Cpolygon id='Fill-426' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(36.912638, 169.949800) rotate(22.000000) translate(-36.912638, -169.949800) ' points='35.2963915 169.9498 36.912638 171.565719 38.5288846 169.9498 36.912638 168.333882'%3E%3C/polygon%3E%3Cpolygon id='Stroke-428' transform='translate(36.912638, 169.949800) rotate(22.000000) translate(-36.912638, -169.949800) ' points='35.2963915 169.9498 36.912638 171.565719 38.5288846 169.9498 36.912638 168.333882'%3E%3C/polygon%3E%3Cpolygon id='Fill-430' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(35.461068, 166.530964) rotate(22.000000) translate(-35.461068, -166.530964) ' points='33.8448211 166.530964 35.4610677 168.146883 37.0773142 166.530964 35.4610677 164.915045'%3E%3C/polygon%3E%3Cpolygon id='Stroke-432' transform='translate(35.461068, 166.530964) rotate(22.000000) translate(-35.461068, -166.530964) ' points='33.8448211 166.530964 35.4610677 168.146883 37.0773142 166.530964 35.4610677 164.915045'%3E%3C/polygon%3E%3Cpolygon id='Fill-434' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(34.009415, 163.112163) rotate(22.000000) translate(-34.009415, -163.112163) ' points='32.3931681 163.112163 34.0094146 164.728081 35.6256611 163.112163 34.0094146 161.496244'%3E%3C/polygon%3E%3Cpolygon id='Stroke-436' transform='translate(34.009415, 163.112163) rotate(22.000000) translate(-34.009415, -163.112163) ' points='32.3931681 163.112163 34.0094146 164.728081 35.6256611 163.112163 34.0094146 161.496244'%3E%3C/polygon%3E%3Cpolygon id='Fill-438' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(32.557820, 159.693385) rotate(22.000000) translate(-32.557820, -159.693385) ' points='30.9415739 159.693385 32.5578204 161.309304 34.174067 159.693385 32.5578204 158.077467'%3E%3C/polygon%3E%3Cpolygon id='Stroke-440' transform='translate(32.557820, 159.693385) rotate(22.000000) translate(-32.557820, -159.693385) ' points='30.9415739 159.693385 32.5578204 161.309304 34.174067 159.693385 32.5578204 158.077467'%3E%3C/polygon%3E%3Cpolygon id='Fill-442' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(33.756553, 171.289101) rotate(22.000000) translate(-33.756553, -171.289101) ' points='32.1403062 171.289101 33.7565527 172.90502 35.3727993 171.289101 33.7565527 169.673182'%3E%3C/polygon%3E%3Cpolygon id='Stroke-444' transform='translate(33.756553, 171.289101) rotate(22.000000) translate(-33.756553, -171.289101) ' points='32.1403062 171.289101 33.7565527 172.90502 35.3727993 171.289101 33.7565527 169.673182'%3E%3C/polygon%3E%3Cpolygon id='Fill-446' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(32.304959, 167.870324) rotate(22.000000) translate(-32.304959, -167.870324) ' points='30.688712 167.870324 32.3049586 169.486242 33.9212051 167.870324 32.3049586 166.254405'%3E%3C/polygon%3E%3Cpolygon id='Stroke-448' transform='translate(32.304959, 167.870324) rotate(22.000000) translate(-32.304959, -167.870324) ' points='30.688712 167.870324 32.3049586 169.486242 33.9212051 167.870324 32.3049586 166.254405'%3E%3C/polygon%3E%3Cpolygon id='Fill-450' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(30.853329, 164.451464) rotate(22.000000) translate(-30.853329, -164.451464) ' points='29.2370827 164.451464 30.8533293 166.067382 32.4695758 164.451464 30.8533293 162.835545'%3E%3C/polygon%3E%3Cpolygon id='Stroke-452' transform='translate(30.853329, 164.451464) rotate(22.000000) translate(-30.853329, -164.451464) ' points='29.2370827 164.451464 30.8533293 166.067382 32.4695758 164.451464 30.8533293 162.835545'%3E%3C/polygon%3E%3Cpolygon id='Fill-454' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(29.401735, 161.032686) rotate(22.000000) translate(-29.401735, -161.032686) ' points='27.7854886 161.032686 29.4017351 162.648605 31.0179816 161.032686 29.4017351 159.416768'%3E%3C/polygon%3E%3Cpolygon id='Stroke-456' transform='translate(29.401735, 161.032686) rotate(22.000000) translate(-29.401735, -161.032686) ' points='27.7854886 161.032686 29.4017351 162.648605 31.0179816 161.032686 29.4017351 159.416768'%3E%3C/polygon%3E%3Cpolygon id='Fill-458' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(38.778613, 148.026981) rotate(22.000000) translate(-38.778613, -148.026981) ' points='37.1623668 148.026981 38.7786133 149.6429 40.3948599 148.026981 38.7786133 146.411063'%3E%3C/polygon%3E%3Cpolygon id='Stroke-460' transform='translate(38.778613, 148.026981) rotate(22.000000) translate(-38.778613, -148.026981) ' points='37.1623668 148.026981 38.7786133 149.6429 40.3948599 148.026981 38.7786133 146.411063'%3E%3C/polygon%3E%3Cpolygon id='Fill-462' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(37.326984, 144.608121) rotate(22.000000) translate(-37.326984, -144.608121) ' points='35.7107375 144.608121 37.3269841 146.22404 38.9432306 144.608121 37.3269841 142.992203'%3E%3C/polygon%3E%3Cpolygon id='Stroke-464' transform='translate(37.326984, 144.608121) rotate(22.000000) translate(-37.326984, -144.608121) ' points='35.7107375 144.608121 37.3269841 146.22404 38.9432306 144.608121 37.3269841 142.992203'%3E%3C/polygon%3E%3Cpolygon id='Fill-466' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(35.875390, 141.189344) rotate(22.000000) translate(-35.875390, -141.189344) ' points='34.2591433 141.189344 35.8753899 142.805263 37.4916364 141.189344 35.8753899 139.573425'%3E%3C/polygon%3E%3Cpolygon id='Stroke-468' transform='translate(35.875390, 141.189344) rotate(22.000000) translate(-35.875390, -141.189344) ' points='34.2591433 141.189344 35.8753899 142.805263 37.4916364 141.189344 35.8753899 139.573425'%3E%3C/polygon%3E%3Cpolygon id='Fill-470' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(34.423796, 137.770567) rotate(22.000000) translate(-34.423796, -137.770567) ' points='32.8075492 137.770567 34.4237957 139.386485 36.0400422 137.770567 34.4237957 136.154648'%3E%3C/polygon%3E%3Cpolygon id='Stroke-472' fill='%23B2BECA' transform='translate(34.423796, 137.770567) rotate(22.000000) translate(-34.423796, -137.770567) ' points='34.4237957 139.386485 36.0400422 137.770567 34.4237957 136.154648 32.8075492 137.770567'%3E%3C/polygon%3E%3Cpolygon id='Fill-474' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(35.622528, 149.366282) rotate(22.000000) translate(-35.622528, -149.366282) ' points='34.0062815 149.366282 35.622528 150.982201 37.2387746 149.366282 35.622528 147.750364'%3E%3C/polygon%3E%3Cpolygon id='Stroke-476' transform='translate(35.622528, 149.366282) rotate(22.000000) translate(-35.622528, -149.366282) ' points='34.0062815 149.366282 35.622528 150.982201 37.2387746 149.366282 35.622528 147.750364'%3E%3C/polygon%3E%3Cpolygon id='Fill-478' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(34.170875, 145.947481) rotate(22.000000) translate(-34.170875, -145.947481) ' points='32.5546284 145.947481 34.1708749 147.5634 35.7871215 145.947481 34.1708749 144.331563'%3E%3C/polygon%3E%3Cpolygon id='Stroke-480' transform='translate(34.170875, 145.947481) rotate(22.000000) translate(-34.170875, -145.947481) ' points='32.5546284 145.947481 34.1708749 147.5634 35.7871215 145.947481 34.1708749 144.331563'%3E%3C/polygon%3E%3Cpolygon id='Fill-482' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(32.719305, 142.528645) rotate(22.000000) translate(-32.719305, -142.528645) ' points='31.103058 142.528645 32.7193046 144.144564 34.3355511 142.528645 32.7193046 140.912726'%3E%3C/polygon%3E%3Cpolygon id='Stroke-484' transform='translate(32.719305, 142.528645) rotate(22.000000) translate(-32.719305, -142.528645) ' points='31.103058 142.528645 32.7193046 144.144564 34.3355511 142.528645 32.7193046 140.912726'%3E%3C/polygon%3E%3Cpolygon id='Fill-486' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(31.267651, 139.109844) rotate(22.000000) translate(-31.267651, -139.109844) ' points='29.651405 139.109844 31.2676515 140.725763 32.883898 139.109844 31.2676515 137.493925'%3E%3C/polygon%3E%3Cpolygon id='Stroke-488' transform='translate(31.267651, 139.109844) rotate(22.000000) translate(-31.267651, -139.109844) ' points='29.651405 139.109844 31.2676515 140.725763 32.883898 139.109844 31.2676515 137.493925'%3E%3C/polygon%3E%3Cpolygon id='Fill-490' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(32.466384, 150.705559) rotate(22.000000) translate(-32.466384, -150.705559) ' points='30.8501373 150.705559 32.4663838 152.321478 34.0826303 150.705559 32.4663838 149.089641'%3E%3C/polygon%3E%3Cpolygon id='Stroke-492' transform='translate(32.466384, 150.705559) rotate(22.000000) translate(-32.466384, -150.705559) ' points='30.8501373 150.705559 32.4663838 152.321478 34.0826303 150.705559 32.4663838 149.089641'%3E%3C/polygon%3E%3Cpolygon id='Fill-494' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(31.014790, 147.286782) rotate(22.000000) translate(-31.014790, -147.286782) ' points='29.3985431 147.286782 31.0147896 148.902701 32.6310362 147.286782 31.0147896 145.670863'%3E%3C/polygon%3E%3Cpolygon id='Stroke-496' transform='translate(31.014790, 147.286782) rotate(22.000000) translate(-31.014790, -147.286782) ' points='29.3985431 147.286782 31.0147896 148.902701 32.6310362 147.286782 31.0147896 145.670863'%3E%3C/polygon%3E%3Cpolygon id='Fill-498' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(29.563219, 143.867946) rotate(22.000000) translate(-29.563219, -143.867946) ' points='27.9469727 143.867946 29.5632192 145.483865 31.1794658 143.867946 29.5632192 142.252027'%3E%3C/polygon%3E%3Cpolygon id='Stroke-500' transform='translate(29.563219, 143.867946) rotate(22.000000) translate(-29.563219, -143.867946) ' points='27.9469727 143.867946 29.5632192 145.483865 31.1794658 143.867946 29.5632192 142.252027'%3E%3C/polygon%3E%3Cpolygon id='Fill-502' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(28.111566, 140.449145) rotate(22.000000) translate(-28.111566, -140.449145) ' points='26.4953196 140.449145 28.1115662 142.065063 29.7278127 140.449145 28.1115662 138.833226'%3E%3C/polygon%3E%3Cpolygon id='Stroke-504' transform='translate(28.111566, 140.449145) rotate(22.000000) translate(-28.111566, -140.449145) ' points='26.4953196 140.449145 28.1115662 142.065063 29.7278127 140.449145 28.1115662 138.833226'%3E%3C/polygon%3E%3Cpolygon id='Fill-506' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(29.310298, 152.044860) rotate(22.000000) translate(-29.310298, -152.044860) ' points='27.6940519 152.04486 29.3102985 153.660779 30.926545 152.04486 29.3102985 150.428942'%3E%3C/polygon%3E%3Cpolygon id='Stroke-508' transform='translate(29.310298, 152.044860) rotate(22.000000) translate(-29.310298, -152.044860) ' points='27.6940519 152.04486 29.3102985 153.660779 30.926545 152.04486 29.3102985 150.428942'%3E%3C/polygon%3E%3Cpolygon id='Fill-510' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(27.858704, 148.626083) rotate(22.000000) translate(-27.858704, -148.626083) ' points='26.2424578 148.626083 27.8587043 150.242002 29.4749508 148.626083 27.8587043 147.010164'%3E%3C/polygon%3E%3Cpolygon id='Stroke-512' transform='translate(27.858704, 148.626083) rotate(22.000000) translate(-27.858704, -148.626083) ' points='26.2424578 148.626083 27.8587043 150.242002 29.4749508 148.626083 27.8587043 147.010164'%3E%3C/polygon%3E%3Cpolygon id='Fill-514' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(26.407134, 145.207247) rotate(22.000000) translate(-26.407134, -145.207247) ' points='24.7908874 145.207247 26.4071339 146.823166 28.0233805 145.207247 26.4071339 143.591328'%3E%3C/polygon%3E%3Cpolygon id='Stroke-516' transform='translate(26.407134, 145.207247) rotate(22.000000) translate(-26.407134, -145.207247) ' points='24.7908874 145.207247 26.4071339 146.823166 28.0233805 145.207247 26.4071339 143.591328'%3E%3C/polygon%3E%3Cpolygon id='Fill-518' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(24.955481, 141.788446) rotate(22.000000) translate(-24.955481, -141.788446) ' points='23.3392343 141.788446 24.9554808 143.404364 26.5717274 141.788446 24.9554808 140.172527'%3E%3C/polygon%3E%3Cpolygon id='Stroke-520' transform='translate(24.955481, 141.788446) rotate(22.000000) translate(-24.955481, -141.788446) ' points='23.3392343 141.788446 24.9554808 143.404364 26.5717274 141.788446 24.9554808 140.172527'%3E%3C/polygon%3E%3Cpolygon id='Fill-522' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(26.154213, 153.384161) rotate(22.000000) translate(-26.154213, -153.384161) ' points='24.5379666 153.384161 26.1542132 155.00008 27.7704597 153.384161 26.1542132 151.768243'%3E%3C/polygon%3E%3Cpolygon id='Stroke-524' transform='translate(26.154213, 153.384161) rotate(22.000000) translate(-26.154213, -153.384161) ' points='24.5379666 153.384161 26.1542132 155.00008 27.7704597 153.384161 26.1542132 151.768243'%3E%3C/polygon%3E%3Cpolygon id='Fill-526' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(24.702619, 149.965384) rotate(22.000000) translate(-24.702619, -149.965384) ' points='23.0863724 149.965384 24.702619 151.581303 26.3188655 149.965384 24.702619 148.349465'%3E%3C/polygon%3E%3Cpolygon id='Stroke-528' transform='translate(24.702619, 149.965384) rotate(22.000000) translate(-24.702619, -149.965384) ' points='23.0863724 149.965384 24.702619 151.581303 26.3188655 149.965384 24.702619 148.349465'%3E%3C/polygon%3E%3Cpolygon id='Fill-530' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(23.250966, 146.546583) rotate(22.000000) translate(-23.250966, -146.546583) ' points='21.6347194 146.546583 23.2509659 148.162502 24.8672124 146.546583 23.2509659 144.930664'%3E%3C/polygon%3E%3Cpolygon id='Stroke-532' transform='translate(23.250966, 146.546583) rotate(22.000000) translate(-23.250966, -146.546583) ' points='21.6347194 146.546583 23.2509659 148.162502 24.8672124 146.546583 23.2509659 144.930664'%3E%3C/polygon%3E%3Cpolygon id='Fill-534' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(21.799396, 143.127747) rotate(22.000000) translate(-21.799396, -143.127747) ' points='20.183149 143.127747 21.7993955 144.743665 23.4156421 143.127747 21.7993955 141.511828'%3E%3C/polygon%3E%3Cpolygon id='Stroke-536' transform='translate(21.799396, 143.127747) rotate(22.000000) translate(-21.799396, -143.127747) ' points='20.183149 143.127747 21.7993955 144.743665 23.4156421 143.127747 21.7993955 141.511828'%3E%3C/polygon%3E%3Cpath d='M129.314819,189.942425 C126.372666,187.000233 124.490222,184.112668 125.110927,183.492089 C125.731631,182.87151 128.619783,184.753573 131.562571,187.695129 C134.504724,190.637321 136.387169,193.524886 135.766464,194.145465 C135.145759,194.766044 132.257608,192.883981 129.314819,189.942425 Z' id='Fill-538' fill='%23F5F5F5' transform='translate(130.438695, 188.818777) rotate(22.000000) translate(-130.438695, -188.818777) '%3E%3C/path%3E%3Cpath d='M129.314819,189.942425 C126.372666,187.000233 124.490222,184.112668 125.110927,183.492089 C125.731631,182.87151 128.619783,184.753573 131.562571,187.695129 C134.504724,190.637321 136.387169,193.524886 135.766464,194.145465 C135.145759,194.766044 132.257608,192.883981 129.314819,189.942425 Z' id='Stroke-540' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(130.438695, 188.818777) rotate(22.000000) translate(-130.438695, -188.818777) '%3E%3C/path%3E%3Cpath d='M136.083433,187.715086 C130.20421,181.837055 126.443133,176.067006 127.683272,174.827118 C128.92341,173.587231 134.69463,177.347545 140.573854,183.225576 C146.453713,189.104243 150.21479,194.874292 148.974651,196.114179 C147.734513,197.354066 141.963293,193.593752 136.083433,187.715086 Z' id='Fill-542' fill='%23F5F5F5' transform='translate(138.328961, 185.470648) rotate(22.000000) translate(-138.328961, -185.470648) '%3E%3C/path%3E%3Cpath d='M136.083433,187.715086 C130.20421,181.837055 126.443133,176.067006 127.683272,174.827118 C128.92341,173.587231 134.69463,177.347545 140.573854,183.225576 C146.453713,189.104243 150.21479,194.874292 148.974651,196.114179 C147.734513,197.354066 141.963293,193.593752 136.083433,187.715086 Z' id='Stroke-544' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(138.328961, 185.470648) rotate(22.000000) translate(-138.328961, -185.470648) '%3E%3C/path%3E%3Cpath d='M146.697288,183.650834 C138.818086,175.773231 133.777481,168.04045 135.43947,166.378798 C137.101459,164.717146 144.835809,169.756729 152.715011,177.634332 C160.594213,185.511936 165.634818,193.244716 163.972829,194.906369 C162.310839,196.568021 154.57649,191.528438 146.697288,183.650834 Z' id='Fill-546' fill-opacity='0.35' fill='%23F5F5F5' transform='translate(149.706149, 180.642583) rotate(22.000000) translate(-149.706149, -180.642583) '%3E%3C/path%3E%3Cpath d='M146.697288,183.650834 C138.818086,175.773231 133.777481,168.04045 135.43947,166.378798 C137.101459,164.717146 144.835809,169.756729 152.715011,177.634332 C160.594213,185.511936 165.634818,193.244716 163.972829,194.906369 C162.310839,196.568021 154.57649,191.528438 146.697288,183.650834 Z' id='Stroke-548' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(149.706149, 180.642583) rotate(22.000000) translate(-149.706149, -180.642583) '%3E%3C/path%3E%3Cpath d='M65.2279553,90.2345285 C62.4548336,90.0320836 60.4105231,89.3345405 60.4105231,88.5051511 C60.4105231,87.676673 62.4503446,86.9797514 65.2188187,86.7764428 C65.4149139,84.0068366 66.0879499,81.9659221 66.8880741,81.9659221 C67.6881984,81.9659221 68.3612344,84.0068366 68.5573295,86.7764428 C71.3258036,86.9797514 73.3656251,87.676673 73.3656251,88.5051511 C73.3656251,89.3345405 71.3213146,90.0320836 68.548193,90.2345285 C68.3410329,92.9408238 67.6762073,94.9210242 66.8880741,94.9210242 C66.0999409,94.9210242 65.4351154,92.9408238 65.2279553,90.2345285 Z' id='Oval-80-Copy-3' fill-opacity='0.4' fill='%23A3B1BF' opacity='0.85' transform='translate(66.888074, 88.443473) rotate(-340.000000) translate(-66.888074, -88.443473) '%3E%3C/path%3E%3Cpath d='M118.775569,329.140492 L118.424988,329.526146 C117.522244,330.5192 115.985396,330.592411 114.992341,329.689667 C114.596934,329.330218 114.331035,328.850456 114.235803,328.324641 L114.143075,327.812647 L113.669257,327.599091 C112.445737,327.047635 111.900921,325.608734 112.452377,324.385214 C112.672015,323.8979 113.046204,323.496601 113.516991,323.243469 L113.97521,322.997095 L114.032158,322.478985 C114.178786,321.144967 115.379087,320.182398 116.713105,320.329026 C117.24418,320.387399 117.741214,320.61917 118.127299,320.988476 L118.503957,321.348765 L119.01334,321.242962 C120.327346,320.970031 121.613813,321.813989 121.886744,323.127995 C121.995449,323.651349 121.928561,324.195943 121.696437,324.677436 L121.470742,325.145594 L121.728812,325.597409 C122.394441,326.762759 121.989337,328.247061 120.823987,328.91269 C120.359975,329.177726 119.82154,329.282421 119.292023,329.21057 L118.775569,329.140492 Z' id='Star-1-Copy-16' fill-opacity='0.4' fill='%23A3B1BF'%3E%3C/path%3E%3Cpath d='M432.83752,120.004816 L432.837087,120.005044 L432.837087,120.005044 C432.092472,120.396429 431.171561,120.110079 430.780176,119.365464 C430.624337,119.068978 430.570573,118.729391 430.627206,118.399266 L430.627206,118.399266 L430.627206,118.399266 L430.627206,118.399266 C430.024845,117.812233 430.01242,116.848039 430.599453,116.245678 C430.833262,116.005765 431.139652,115.849637 431.471171,115.801474 L431.471471,115.801431 L431.471471,115.801431 L431.471471,115.801431 C431.843891,115.046982 432.757399,114.737288 433.511848,115.109709 C433.812195,115.25797 434.055308,115.501083 434.20357,115.801431 L434.20357,115.801431 L434.203869,115.801474 L434.203869,115.801474 C435.036229,115.922398 435.612963,116.695187 435.492039,117.527547 C435.443876,117.859067 435.287748,118.165457 435.047835,118.399266 L435.047835,118.399266 L435.047835,118.399266 L435.047835,118.399266 C435.190066,119.228364 434.63325,120.015783 433.804152,120.158014 C433.474027,120.214647 433.134439,120.160883 432.837954,120.005044 L432.83752,120.004816 Z' id='Star-1-Copy-18' fill-opacity='0.4' fill='%23A3B1BF' transform='translate(432.837619, 117.566125) rotate(-3.000000) translate(-432.837619, -117.566125) '%3E%3C/path%3E%3Cpath d='M99.7727703,38.762372 L99.0266308,39.1545584 L99.0266308,39.1545584 C97.8386845,39.7789675 96.36948,39.3221304 95.7450708,38.134184 C95.4964477,37.6611755 95.4106732,37.1194035 95.5010241,36.5927278 L95.6433921,35.7628333 L95.0407812,35.1755563 L95.0407812,35.1755563 C94.0796578,34.2388893 94.059832,32.7004261 94.996499,31.7393027 C95.369563,31.3564979 95.8584376,31.1073808 96.3874089,31.0305329 L97.2206742,30.9094778 L97.5937913,30.1536188 L97.5937913,30.1536188 C98.1878378,28.950202 99.6449697,28.4562097 100.848387,29.0502562 C101.327469,29.2867472 101.715258,29.6745363 101.951749,30.1536188 L102.324866,30.9094778 L103.158132,31.0305329 L103.158132,31.0305329 C104.486241,31.223478 105.406474,32.4565366 105.213529,33.7846464 C105.136681,34.3136177 104.887564,34.8024923 104.504759,35.1755563 L103.902148,35.7628333 L104.044516,36.5927278 L104.044516,36.5927278 C104.27143,37.9154575 103.383095,39.1716915 102.060366,39.398605 C101.53369,39.4889559 100.991918,39.4031814 100.51891,39.1545584 L99.7727703,38.762372 Z' id='Star-1-Copy-19' fill-opacity='0.4' fill='%23A3B1BF' transform='translate(99.772928, 34.116388) rotate(19.000000) translate(-99.772928, -34.116388) '%3E%3C/path%3E%3Cpath d='M396.631073,305.744172 L396.098125,305.608596 C394.797498,305.277731 394.01135,303.955146 394.342215,302.654518 C394.473956,302.136643 394.772729,301.676633 395.192288,301.345694 L395.623376,301.00566 L395.587617,300.458372 C395.500116,299.119176 396.514815,297.962609 397.854012,297.875108 C398.387399,297.840257 398.917395,297.982247 399.361919,298.279089 L399.818473,298.583965 L400.329362,298.380373 C401.576068,297.883555 402.989473,298.491459 403.486291,299.738164 C403.684076,300.23448 403.712777,300.782145 403.567956,301.296416 L403.418882,301.825788 L403.76981,302.247972 C404.627682,303.280038 404.486471,304.812135 403.454406,305.670007 C403.043346,306.011688 402.531095,306.208301 401.996987,306.229395 L401.44896,306.251039 L401.15585,306.715309 C400.439401,307.850123 398.938655,308.189275 397.80384,307.472826 C397.351988,307.187555 397.006767,306.761296 396.821614,306.260029 L396.631073,305.744172 Z' id='Star-1-Copy-20' fill-opacity='0.4' fill='%23A3B1BF'%3E%3C/path%3E%3Cpath d='M439.755536,146.347757 L439.755103,146.347984 L439.755103,146.347984 C439.010488,146.739369 438.089577,146.45302 437.698192,145.708405 C437.542353,145.411919 437.488589,145.072331 437.545222,144.742206 L437.545222,144.742206 L437.545222,144.742206 L437.545222,144.742206 C436.942861,144.155173 436.930436,143.190979 437.517469,142.588619 C437.751277,142.348705 438.057668,142.192577 438.389187,142.144415 L438.389487,142.144371 L438.389487,142.144371 L438.389487,142.144371 C438.761907,141.389923 439.675415,141.080228 440.429864,141.452649 C440.730211,141.600911 440.973324,141.844024 441.121586,142.144371 L441.121586,142.144371 L441.121885,142.144415 L441.121885,142.144415 C441.954245,142.265338 442.530978,143.038128 442.410055,143.870488 C442.361892,144.202007 442.205764,144.508398 441.965851,144.742206 L441.965851,144.742206 L441.965851,144.742206 L441.965851,144.742206 C442.108082,145.571305 441.551266,146.358723 440.722168,146.500955 C440.392043,146.557588 440.052455,146.503823 439.755969,146.347984 L439.755536,146.347757 Z' id='Star-1-Copy-21' fill-opacity='0.4' fill='%23A3B1BF' transform='translate(439.755635, 143.909066) rotate(-12.000000) translate(-439.755635, -143.909066) '%3E%3C/path%3E%3Cpath d='M244.621971,220.61341 C277.15945,220.61341 303.536288,194.242112 303.536288,161.711467 C303.536288,129.180822 277.15945,102.809524 244.621971,102.809524 C212.084491,102.809524 185.707653,129.180822 185.707653,161.711467 C185.707653,194.242112 212.084491,220.61341 244.621971,220.61341 Z' id='Oval-8-Copy-2' fill-opacity='0.66' fill='%23A3B1BF'%3E%3C/path%3E%3Cpath d='M245.345696,141.060063 C241.146656,141.060063 237.880736,142.342349 235.547936,144.906921 C233.215136,147.354921 232.107056,150.618921 232.107056,154.698921 L236.714336,154.698921 C236.714336,151.842921 237.355856,149.628063 238.638896,147.996063 C240.038576,146.072635 242.196416,145.140063 245.112416,145.140063 C247.561856,145.140063 249.486416,145.781206 250.827776,147.180063 C252.110816,148.462349 252.810656,150.269206 252.810656,152.600635 C252.810656,154.232635 252.227456,155.748063 251.061056,157.205206 C250.711136,157.671492 250.011296,158.370921 249.078176,159.303492 C245.928896,162.101206 244.004336,164.316063 243.187856,166.064635 C242.488016,167.521778 242.138096,169.212063 242.138096,171.135492 L242.138096,172.476063 L246.803696,172.476063 L246.803696,171.135492 C246.803696,169.561778 247.153616,168.162921 247.911776,166.880635 C248.494976,165.831492 249.369776,164.782349 250.652816,163.674921 C253.218896,161.401778 254.793536,159.886349 255.376736,159.186921 C256.834736,157.263492 257.592896,154.990349 257.592896,152.367492 C257.592896,148.870349 256.484816,146.130921 254.326976,144.149206 C252.052496,142.050921 249.078176,141.060063 245.345696,141.060063 Z M244.470896,176.556063 C243.479456,176.556063 242.662976,176.847492 241.963136,177.546921 C241.263296,178.188063 240.971696,179.004063 240.971696,179.994921 C240.971696,180.985778 241.263296,181.801778 241.963136,182.501206 C242.662976,183.142349 243.479456,183.492063 244.470896,183.492063 C245.462336,183.492063 246.278816,183.142349 246.978656,182.501206 C247.678496,181.860063 248.028416,181.044063 248.028416,179.994921 C248.028416,179.004063 247.678496,178.188063 247.036976,177.546921 C246.337136,176.847492 245.462336,176.556063 244.470896,176.556063 Z' id='?' fill='%23FFFFFF'%3E%3C/path%3E%3Cpath d='M223.261662,133.139924 C229.077338,129.782947 239.631808,125.828273 236.274126,120.013819 C232.916444,114.199364 220.565868,115.043746 214.750193,118.400722 C208.934517,121.757699 202.729834,131.623951 206.087516,137.438405 C209.445198,143.252859 217.445986,136.4969 223.261662,133.139924' id='Oval-8-Copy-2' fill='%23FAFAFA'%3E%3C/path%3E%3Cpath d='M249.679003,119.820589 C252.365149,119.820589 254.5427,117.643495 254.5427,114.957913 C254.5427,112.272332 252.365149,110.095238 249.679003,110.095238 C246.992857,110.095238 244.815306,112.272332 244.815306,114.957913 C244.815306,117.643495 246.992857,119.820589 249.679003,119.820589 Z' id='Oval-10-Copy' fill='%23FAFAFA'%3E%3C/path%3E%3Cpath d='M421.5,321.5 L423,323' id='Line-2' stroke='%23979797' stroke-linecap='square'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E\")",backgroundRepeat:"no-repeat",backgroundSize:"cover",padding:"170px 176px 200px 224px"},children:[j.jsx("div",{style:{textAlign:"center",fontWeight:800},children:j.jsx("h1",{children:"404"})}),j.jsx("div",{style:{textAlign:"center",fontWeight:800},children:j.jsx("p",{children:"Sorry, this page does not exist."})})]})})});var WK,KK={exports:{}};var VK,GK=(WK||(WK=1,VK=KK,function(e,t){e._Highcharts=t(),VK.exports=e._Highcharts}("u"<typeof window?KK.exports:window,()=>(()=>{var e,t,n,r,o,i,a,l;let s,c,u,d,h,p;var f,m,g,y,v,b,x,w,C,k,S,E,$,T,M,P,N,I,O,A,R,L,B,z,D,j,F={d:(e,t)=>{for(var n in t)F.o(t,n)&&!F.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},H={};F.d(H,{default:()=>ti}),(f=k||(k={})).SVG_NS="http://www.w3.org/2000/svg",f.product="Highcharts",f.version="12.6.0",f.win="u">typeof window?window:{},f.doc=f.win.document,f.svg=!!(null==(n=null==(t=null==(e=f.doc)?void 0:e.createElementNS)?void 0:t.call(e,f.SVG_NS,"svg"))?void 0:n.createSVGRect),f.pageLang=null==(i=null==(o=null==(r=f.doc)?void 0:r.documentElement)?void 0:o.closest("[lang]"))?void 0:i.lang,f.userAgent=(null==(a=f.win.navigator)?void 0:a.userAgent)||"",f.isChrome=f.win.chrome,f.isFirefox=-1!==f.userAgent.indexOf("Firefox"),f.isMS=/(edge|msie|trident)/i.test(f.userAgent)&&!f.win.opera,f.isSafari=!f.isChrome&&-1!==f.userAgent.indexOf("Safari"),f.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(f.userAgent),f.isWebKit=-1!==f.userAgent.indexOf("AppleWebKit"),f.deg2rad=2*Math.PI/360,f.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],f.noop=function(){},f.supportsPassiveEvents=function(){let e=!1;if(!f.isMS){let t=Object.defineProperty({},"passive",{get:function(){e=!0}});f.win.addEventListener&&f.win.removeEventListener&&(f.win.addEventListener("testPassive",f.noop,t),f.win.removeEventListener("testPassive",f.noop,t))}return e}(),f.charts=[],f.composed=[],f.dateFormats={},f.seriesTypes={},f.symbolSizes={},f.chartCount=0;let _=k,{doc:W,win:K}=_;function V(e,t,n,r={}){let o="function"==typeof e&&e.prototype||e;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={});let i=o.hcEvents;_.Point&&e instanceof _.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);let a=e.addEventListener;a&&a.call(e,t,n,!!_.supportsPassiveEvents&&{passive:void 0===r.passive?-1!==t.indexOf("touch"):r.passive,capture:!1}),i[t]||(i[t]=[]);let l={fn:n,order:"number"==typeof r.order?r.order:1/0};return i[t].push(l),i[t].sort((e,t)=>e.order-t.order),function(){Oe(e,t,n)}}function G(e){let t=e.length,n=e[0];for(;t--;)e[t]<n&&(n=e[t]);return n}function q(e){let t=e.length,n=e[0];for(;t--;)e[t]>n&&(n=e[t]);return n}function X(e,t,n){let r,o=ve(t)&&!ee(n),i=(t,n)=>{ee(t)?e.setAttribute(n,t):o?(r=e.getAttribute(n))||"class"!==n||(r=e.getAttribute(n+"Name")):e.removeAttribute(n)};return ve(t)?i(n,t):Se(t,i),r}function U(e,t,n){return e>t?e<n?e:n:t}function Y(e,t){return e>1e14?e:parseFloat(e.toPrecision(t||14))}function Z(e,t,n,r,o){let i=W.createElement(e);return t&&ie(i,t),o&&J(i,{padding:"0",border:"none",margin:"0"}),n&&J(i,n),r&&r.appendChild(i),i}function Q(e,t=0,n){let r=t%2/2,o=n?-1:1;return(Math.round(e*o-r)+r)*o}function J(e,t){ie(e.style,t)}function ee(e){return null!=e}function te(e,t,n){Se(e,function(r,o){r!==t&&(null==r?void 0:r.destroy)&&r.destroy(),((null==r?void 0:r.destroy)||!n)&&delete e[o]})}function ne(e){var t;null==(t=null==e?void 0:e.parentElement)||t.removeChild(e)}function re(e,t,n,r){let o={};return function e(t,o,i,a){let l=n?o:t;Se(t,function(n,s){if(!a&&r&&r.indexOf(s)>-1&&o[s]){n=Ae(n),i[s]=[];for(let t=0;t<Math.max(n.length,o[s].length);t++)o[s][t]&&(void 0===n[t]?i[s][t]=o[s][t]:(i[s][t]={},e(n[t],o[s][t],i[s][t],a+1)))}else we(n,!0)&&!n.nodeType?(i[s]=be(n)?[]:{},e(n,o[s]||{},i[s],a+1),0===Object.keys(i[s]).length&&("colorAxis"!==s||0!==a)&&delete i[s]):(t[s]!==o[s]||s in t&&!(s in o))&&"__proto__"!==s&&"constructor"!==s&&(i[s]=l[s])})}(e,t,o,0),o}function oe(e,t){let n=e.length;for(;n--;)if(e[n]===t){e.splice(n,1);break}}function ie(e,t){let n;for(n in e||(e={}),t)e[n]=t[n];return e}function ae(e,t){let n=function(){};return ie(n.prototype=new e,t),n}function le(e,t,n,r){if(n=n||{},(null==W?void 0:W.createEvent)&&(e.dispatchEvent||e.fireEvent&&e!==_)){let r=W.createEvent("Events");r.initEvent(t,!0,!0),n=ie(r,n),e.dispatchEvent?e.dispatchEvent(n):e.fireEvent(t,n)}else if(e.hcEvents){n.target||ie(n,{preventDefault:function(){n.defaultPrevented=!0},target:e,type:t});let r=[],o=e,i=!1;for(;o.hcEvents;)Object.hasOwnProperty.call(o,"hcEvents")&&o.hcEvents[t]&&(r.length&&(i=!0),r.unshift.apply(r,o.hcEvents[t])),o=Object.getPrototypeOf(o);i&&r.sort((e,t)=>e.order-t.order),r.forEach(t=>{!1===t.fn.call(e,n,e)&&n.preventDefault()})}r&&!n.defaultPrevented&&r.call(e,n)}let se=(e="")=>({center:.5,right:1,middle:.5,bottom:1}[e]||0);function ce(e,t){let n,r,o,i=!t;return e.forEach(e=>{if(e.length>1)for(o=e.length-1;o>0;o--)(r=e[o]-e[o-1])<0&&!i?(null==t||t(),t=void 0):r&&(void 0===n||r<n)&&(n=r)}),n}function ue(e){return Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function de(e,t){let n=e.split(".");for(;n.length&&ee(t);){let e=n.shift();if(void 0===e||"__proto__"===e)return;if("this"===e){let e;return we(t)&&(e=t["@this"]),e??t}let r=t[e.replace(/[\\'"]/g,"")];if(!ee(r)||"function"==typeof r||"number"==typeof r.nodeType||r===K)return;t=r}return t}function he(e,t,n){var r;let o;if("width"===t){let t=Math.min(e.offsetWidth,e.scrollWidth),n=null==(r=e.getBoundingClientRect)?void 0:r.call(e).width;return n<t&&n>=t-1&&(t=Math.floor(n)),Math.max(0,t-(he(e,"padding-left",!0)||0)-(he(e,"padding-right",!0)||0))}if("height"===t)return Math.max(0,Math.min(e.offsetHeight,e.scrollHeight)-(he(e,"padding-top",!0)||0)-(he(e,"padding-bottom",!0)||0));let i=K.getComputedStyle(e,void 0);return i&&(o=i.getPropertyValue(t),Te(n,"opacity"!==t)&&(o=Me(o))),o}let pe=Array.prototype.find?function(e,t){return e.find(t)}:function(e,t){let n,r=e.length;for(n=0;n<r;n++)if(t(e[n],n))return e[n]};function fe(e){ee(e)&&clearTimeout(e)}function me(e){return we(e)&&"number"==typeof e.nodeType}function ge(e){let t=null==e?void 0:e.constructor;return!(!we(e,!0)||me(e)||!(null==t?void 0:t.name)||"Object"===t.name)}function ye(e){return"number"==typeof e&&!isNaN(e)&&e<1/0&&e>-1/0}function ve(e){return"string"==typeof e}function be(e){let t=Object.prototype.toString.call(e);return"[object Array]"===t||"[object Array Iterator]"===t}function xe(e){return"function"==typeof e}function we(e,t){return!(!e||"object"!=typeof e||t&&be(e))}function Ce(e,...t){let n,r=[e,...t],o={},i=function(e,t){return"object"!=typeof e&&(e={}),Se(t,function(n,r){"__proto__"!==r&&"constructor"!==r&&(!we(n,!0)||ge(n)||me(n)?e[r]=t[r]:e[r]=i(e[r]||{},n))}),e};!0===e&&(o=r[1],r=Array.prototype.slice.call(r,2));let a=r.length;for(n=0;n<a;n++)o=i(o,r[n]);return o}function ke(e,t,n,r,o){let i,a=e,l=e/(n=Te(n,ue(e)));for(!t&&(t=o?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===r&&(1===n?t=t.filter(function(e){return e%1==0}):n<=.1&&(t=[1/n]))),i=0;i<t.length&&(a=t[i],(!o||!(a*n>=e))&&(o||!(l<=(t[i]+(t[i+1]||t[i]))/2)));i++);return Y(a*n,-Math.round(Math.log(.001)/Math.LN10))}function Se(e,t,n){for(let r in e)Object.hasOwnProperty.call(e,r)&&t.call(n||e[r],e[r],r,e)}function Ee(e){let t=W.documentElement,n=e.parentElement||e.parentNode?e.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:n.top+(K.pageYOffset||t.scrollTop)-(t.clientTop||0),left:n.left+(K.pageXOffset||t.scrollLeft)-(t.clientLeft||0),width:n.width,height:n.height}}function $e(e,t,n){return Array((t||2)+1-String(e).replace("-","").length).join(n||"0")+e}function Te(){let e=arguments,t=e.length;for(let n=0;n<t;n++){let t=e[n];if(null!=t)return t}}function Me(e,t){return parseInt(e,t||10)}function Pe(e,t){return 0>e.indexOf(t)&&!!e.push(t)}function Ne(e,t,n){return/%$/.test(e)?t*parseFloat(e)/100+(n||0):parseFloat(e)}function Ie(e,...t){let n,r;do{for(r of(n=e,t))e=e.replace(r[0],r[1])}while(e!==n);return e}function Oe(e,t,n){function r(t,n){let r=e.removeEventListener;r&&r.call(e,t,n,!1)}function o(n){let o,i;e.nodeName&&(t?(o={})[t]=!0:o=n,Se(o,function(e,t){if(n[t])for(i=n[t].length;i--;)r(t,n[t][i].fn)}))}let i="function"==typeof e&&e.prototype||e;if(Object.hasOwnProperty.call(i,"hcEvents")){let e=i.hcEvents;if(t){let i=e[t]||[];n?(e[t]=i.filter(function(e){return n!==e.fn}),r(t,n)):(o(e),e[t]=[])}else o(e),delete i.hcEvents}}function Ae(e){return be(e)?e:[e]}function Re(e,t){let n,r,o=e.length;for(r=0;r<o;r++)e[r].safeI=r;for(e.sort(function(e,r){return 0===(n=t(e,r))?e.safeI-r.safeI:n}),r=0;r<o;r++)delete e[r].safeI}function Le(e,t,n){return t>0?setTimeout(e,t,n):(e.call(0,n),-1)}function Be(e){return ve(e)?e.substring(0,1).toUpperCase()+e.substring(1):String(e)}let{charts:ze,win:De}=_;function je(e,t,n,r){let o=t?"Highcharts error":"Highcharts warning";32===e&&(e=`${o}: Deprecated member`);let i=ye(e),a=i?`${o} #${e}: www.highcharts.com/errors/${e}/`:e.toString();if(void 0!==r){let e="";i&&(a+="?"),Se(r,function(t,n){e+=`\n - ${n}: ${t}`,i&&(a+=encodeURI(n)+"="+encodeURI(t))}),a+=e}le(_,"displayError",{chart:n,code:e,message:a,params:r},function(){if(t)throw Error(a);De.console&&-1===je.messages.indexOf(a)&&console.warn(a)}),je.messages.push(a)}function Fe(e,t){let n,r=e.options.index,o=t.length;for(n=e.options.isInternal?o:0;n<o+1;n++)if(!t[n]||ye(r)&&r<Te(t[n].options.index,t[n]._i)||t[n].options.isInternal){t.splice(n,0,e);break}return n}(je||(je={})).messages=[];let He={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5};Math.easeInOutSine=function(e){return-.5*(Math.cos(Math.PI*e)-1)};let _e=(u=Math.random().toString(36).substring(2,9)+"-",d=0,function(){return"highcharts-"+(s?"":u)+d++});De.jQuery&&(De.jQuery.fn.highcharts=function(){let e=[].slice.call(arguments);if(this[0])return e[0]?(new(_[ve(e[0])?e.shift():"Chart"])(this[0],e[0],e[1]),this):ze[X(this[0],"data-highcharts-chart")]});let{pageLang:We,win:Ke}=_,Ve=_.isSafari&&Ke.Intl&&!Ke.Intl.DateTimeFormat.prototype.formatRange,Ge=class{constructor(e,t){this.options={timezone:"UTC"},this.variableTimezone=!1,this.Date=Ke.Date,this.update(e),this.lang=t}update(e={}){this.dTLCache={},this.options=e=Ce(!0,this.options,e);let{timezoneOffset:t,useUTC:n,locale:r}=e;this.Date=e.Date||Ke.Date||Date;let o=e.timezone;ee(n)&&(o=n?"UTC":void 0),t&&t%60==0&&(o="Etc/GMT"+(t>0?"+":"")+t/60),this.variableTimezone="UTC"!==o&&0!==(null==o?void 0:o.indexOf("Etc/GMT")),this.timezone=o,this.lang&&r&&(this.lang.locale=r),["months","shortMonths","weekdays","shortWeekdays"].forEach(e=>{let t=/months/i.test(e),n=/short/.test(e),r={timeZone:"UTC"};r[t?"month":"weekday"]=n?"short":"long",this[e]=(t?[0,1,2,3,4,5,6,7,8,9,10,11]:[3,4,5,6,7,8,9]).map(e=>this.dateFormat(r,24*(t?31:1)*36e5*e))})}toParts(e){let[t,n,r,o,i,a,l]=this.dateTimeFormat({weekday:"narrow",day:"numeric",month:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},e,"es").split(/(?:, | |\/|:)/g);return[o,r-1,n,i,a,l,Math.floor(Number(e)||0)%1e3,"DLMXJVS".indexOf(t)].map(Number)}dateTimeFormat(e,t,n=this.options.locale||We){let r=JSON.stringify(e)+n;ve(e)&&(e=this.str2dtf(e));let o=this.dTLCache[r];if(!o){e.timeZone??(e.timeZone=this.timezone);try{o=new Intl.DateTimeFormat(n,e)}catch(t){/Invalid time zone/i.test(t.message)?(je(34),e.timeZone="UTC",o=new Intl.DateTimeFormat(n,e)):je(t.message,!1)}}return this.dTLCache[r]=o,(null==o?void 0:o.format(t))||""}str2dtf(e,t={}){let n={L:{fractionalSecondDigits:3},S:{second:"2-digit"},M:{minute:"numeric"},H:{hour:"2-digit"},k:{hour:"numeric"},E:{weekday:"narrow"},a:{weekday:"short"},A:{weekday:"long"},d:{day:"2-digit"},e:{day:"numeric"},b:{month:"short"},B:{month:"long"},m:{month:"2-digit"},o:{month:"numeric"},y:{year:"2-digit"},Y:{year:"numeric"}};return Object.keys(n).forEach(r=>{-1!==e.indexOf(r)&&ie(t,n[r])}),t}makeTime(e,t,n=1,r=0,o,i,a){let l=this.Date.UTC(e,t,n,r,o||0,i||0,a||0);if("UTC"!==this.timezone){let e=this.getTimezoneOffset(l);if(l+=e,-1!==[2,3,8,9,10,11].indexOf(t)&&(r<5||r>20)){let t=this.getTimezoneOffset(l);e!==t?l+=t-e:e-36e5!==this.getTimezoneOffset(l-36e5)||Ve||(l-=36e5)}}return l}parse(e){if(!ve(e))return e??void 0;let t=(e=e.replace(/\//g,"-").replace(/(GMT|UTC)/,"")).indexOf("Z")>-1||/([+-][0-9]{2}):?[0-9]{2}$/.test(e),n=/^[0-9]{4}-[0-9]{2}(-[0-9]{2}|)$/.test(e);t||n||(e+="Z");let r=Date.parse(e);return ye(r)?r+(!t||n?this.getTimezoneOffset(r):0):void 0}getTimezoneOffset(e){if("UTC"!==this.timezone){let[t,n,r,o,i=0]=this.dateTimeFormat({timeZoneName:"shortOffset"},e,"en").split(/(GMT|:)/).map(Number),a=-60*(r+i/60)*6e4;if(ye(a))return a}return 0}dateFormat(e,t,n){let r=this.lang;if(!ee(t)||isNaN(t))return(null==r?void 0:r.invalidDate)||"";if(ve(e=e??"%Y-%m-%d %H:%M:%S")){let n,o=/%\[([a-zA-Z]+)\]/g;for(;n=o.exec(e);)e=e.replace(n[0],this.dateTimeFormat(n[1],t,null==r?void 0:r.locale))}if(ve(e)&&-1!==e.indexOf("%")){let n=this,[o,i,a,l,s,c,u,d]=this.toParts(t),h=(null==r?void 0:r.weekdays)||this.weekdays,p=(null==r?void 0:r.shortWeekdays)||this.shortWeekdays,f=(null==r?void 0:r.months)||this.months,m=(null==r?void 0:r.shortMonths)||this.shortMonths;Se(ie({a:p?p[d]:h[d].substr(0,3),A:h[d],d:$e(a),e:$e(a,2," "),w:d,v:(null==r?void 0:r.weekFrom)??"",b:m[i],B:f[i],m:$e(i+1),o:i+1,y:o.toString().substr(2,2),Y:o,H:$e(l),k:l,I:$e(l%12||12),l:l%12||12,M:$e(s),p:l<12?"AM":"PM",P:l<12?"am":"pm",S:$e(c),L:$e(u,3)},_.dateFormats),function(r,o){if(ve(e))for(;-1!==e.indexOf("%"+o);)e=e.replace("%"+o,"function"==typeof r?r.call(n,t,n):r)})}else if(we(e)){let n=(this.getTimezoneOffset(t)||0)/36e5,r=this.timezone||"Etc/GMT"+(n>=0?"+":"")+n,{prefix:o="",suffix:i=""}=e;e=o+this.dateTimeFormat(ie({timeZone:r},e),t)+i}return n?Be(e):e}resolveDTLFormat(e){return we(e,!0)?we(e,!0)&&void 0===e.main?{main:e}:e:{main:(e=Ae(e))[0],from:e[1],to:e[2]}}getDateFormat(e,t,n,r){let o=this.dateFormat("%m-%d %H:%M:%S.%L",t),i="01-01 00:00:00.000",a={millisecond:15,second:12,minute:9,hour:6,day:3},l="millisecond",s=l;for(l in He){if(e&&e===He.week&&+this.dateFormat("%w",t)===n&&o.substr(6)===i.substr(6)){l="week";break}if(e&&He[l]>e){l=s;break}if(a[l]&&o.substr(a[l])!==i.substr(a[l]))break;"week"!==l&&(s=l)}return this.resolveDTLFormat(r[l]).main}},qe=class extends Ge{getTimeTicks(e,t,n,r){let o,i=this,a=[],l={},{count:s=1,unitRange:c}=e,[u,d,h,p,f,m]=i.toParts(t),g=(t||0)%1e3;if(r??(r=1),ee(t)){if(g=c>=He.second?0:s*Math.floor(g/s),c>=He.second&&(m=c>=He.minute?0:s*Math.floor(m/s)),c>=He.minute&&(f=c>=He.hour?0:s*Math.floor(f/s)),c>=He.hour&&(p=c>=He.day?0:s*Math.floor(p/s)),c>=He.day&&(h=c>=He.month?1:Math.max(1,s*Math.floor(h/s))),c>=He.month&&(d=c>=He.year?0:s*Math.floor(d/s)),c>=He.year&&(u-=u%s),c===He.week){s&&(t=i.makeTime(u,d,h,p,f,m,g));let e=this.dateTimeFormat({timeZone:this.timezone,weekday:"narrow"},t,"es"),n="DLMXJVS".indexOf(e);h+=-n+r+(n<r?-7:0)}t=i.makeTime(u,d,h,p,f,m,g),i.variableTimezone&&ee(n)&&(o=n-t>4*He.month||i.getTimezoneOffset(t)!==i.getTimezoneOffset(n));let e=t,y=1;for(;e<n;)a.push(e),c===He.year?e=i.makeTime(u+y*s,0):c===He.month?e=i.makeTime(u,d+y*s):!o||c!==He.day&&c!==He.week?o&&c===He.hour&&s>1?e=i.makeTime(u,d,h,p+y*s):e+=c*s:e=i.makeTime(u,d,h+y*s*(c===He.day?1:7)),y++;a.push(e),c<=He.hour&&a.length<1e4&&a.forEach(e=>{e%18e5==0&&"000000000"===i.dateFormat("%H%M%S%L",e)&&(l[e]="day")})}return a.info=ie(e,{higherRanks:l,totalRange:c*s}),a}},{isTouchDevice:Xe}=_,Ue={colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"],symbols:["circle","diamond","square","triangle","triangle-down"],lang:{weekFrom:"week from",chartTitle:"Chart title",locale:void 0,loading:"Loading...",months:void 0,seriesName:"Series {add index 1}",shortMonths:void 0,weekdays:void 0,numericSymbols:["k","M","G","T","P","E"],pieSliceName:"Slice",resetZoom:"Reset zoom",yAxisTitle:"Values",resetZoomTitle:"Reset zoom level 1:1"},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,timezone:"UTC",timezoneOffset:0,useUTC:void 0},chart:{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",margin:15,minScale:.67},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:""},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",events:{},layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{color:"#333333",fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:e=>Math.sqrt(1-Math.pow(e-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%[AebHMSL]",second:"%[AebHMS]",minute:"%[AebHM]",hour:"%[AebHM]",day:"%[AebY]",week:"%v %[AebY]",month:"%[BY]",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,showDelay:0,padding:8,position:{x:0,y:3},shared:!1,snap:Xe?25:10,headerFormat:'<span style="font-size: 0.8em">{ucfirst point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}},Ye=new qe(Ue.time,Ue.lang),Ze={defaultOptions:Ue,defaultTime:Ye,getOptions:function(){return Ue},setOptions:function(e){var t;return le(_,"setOptions",{options:e}),Ce(!0,Ue,e),e.time&&Ye.update(Ue.time),e.lang&&"locale"in e.lang&&Ye.update({locale:e.lang.locale}),(null==(t=e.lang)?void 0:t.chartTitle)&&(Ue.title={...Ue.title,text:e.lang.chartTitle}),Ue}},{win:Qe}=_,Je=(e,t,n)=>`color-mix(in srgb,${e},${t} ${100*n}%)`,et=e=>ve(e)&&!!e&&"none"!==e;class tt{static parse(e){return e?new tt(e):tt.None}constructor(e){let t,n,r,o;this.rgba=[NaN,NaN,NaN,NaN],this.input=e;const i=_.Color;if(i&&i!==tt)return new i(e);if("object"==typeof e&&void 0!==e.stops)this.stops=e.stops.map(e=>new tt(e[1]));else if("string"==typeof e)for(this.input=e=tt.names[e.toLowerCase()]||e,r=tt.parsers.length;r--&&!n;)(t=(o=tt.parsers[r]).regex.exec(e))&&(n=o.parse(t));n&&(this.rgba=n)}get(e){let t=this.input,n=this.rgba;if(this.output)return this.output;if("object"==typeof t&&void 0!==this.stops){let n=Ce(t);return n.stops=[].slice.call(n.stops),this.stops.forEach((t,r)=>{n.stops[r]=[n.stops[r][0],t.get(e)]}),n}return n&&ye(n[0])?"rgb"===e||!e&&1===n[3]?"rgb("+n[0]+","+n[1]+","+n[2]+")":"a"===e?`${n[3]}`:"rgba("+n.join(",")+")":t}brighten(e){let t=this.rgba;if(this.stops)this.stops.forEach(function(t){t.brighten(e)});else if(ye(e)&&0!==e)if(ye(t[0]))for(let n=0;n<3;n++)t[n]+=Me(255*e),t[n]<0&&(t[n]=0),t[n]>255&&(t[n]=255);else tt.useColorMix&&et(this.input)&&(this.output=Je(this.input,e>0?"white":"black",Math.abs(e)));return this}setOpacity(e){return this.rgba[3]=e,this}tweenTo(e,t){let n=this.rgba,r=e.rgba;if(!ye(n[0])||!ye(r[0]))return tt.useColorMix&&et(this.input)&&et(e.input)&&t<.99?Je(this.input,e.input,t):e.input||"none";let o=1!==r[3]||1!==n[3],i=(e,r)=>e+(n[r]-e)*(1-t),a=r.slice(0,3).map(i).map(Math.round);return o&&a.push(i(r[3],3)),(o?"rgba(":"rgb(")+a.join(",")+")"}}tt.names={white:"#ffffff",black:"#000000"},tt.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(e){return[Me(e[1]),Me(e[2]),Me(e[3]),parseFloat(e[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(e){return[Me(e[1]),Me(e[2]),Me(e[3]),1]}},{regex:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?$/i,parse:function(e){return[Me(e[1]+e[1],16),Me(e[2]+e[2],16),Me(e[3]+e[3],16),ee(e[4])?Me(e[4]+e[4],16)/255:1]}},{regex:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?$/i,parse:function(e){return[Me(e[1],16),Me(e[2],16),Me(e[3],16),ee(e[4])?Me(e[4],16)/255:1]}}],tt.useColorMix=null==(l=Qe.CSS)?void 0:l.supports("color","color-mix(in srgb,red,blue 9%)"),tt.None=new tt("");let{parse:nt}=tt,{win:rt}=_;class ot{constructor(e,t,n){this.pos=NaN,this.options=t,this.elem=e,this.prop=n}dSetter(){let e=this.paths,t=null==e?void 0:e[0],n=null==e?void 0:e[1],r=this.now||0,o=[];if(1!==r&&t&&n)if(t.length===n.length&&r<1)for(let e=0;e<n.length;e++){let i=t[e],a=n[e],l=[];for(let e=0;e<a.length;e++){let t=i[e],n=a[e];ye(t)&&ye(n)&&("A"!==a[0]||4!==e&&5!==e)?l[e]=t+r*(n-t):l[e]=n}o.push(l)}else o=n;else o=this.toD||[];this.elem.attr("d",o,void 0,!0)}update(){let e=this.elem,t=this.prop,n=this.now,r=this.options.step;this[t+"Setter"]?this[t+"Setter"]():e.attr?e.element&&e.attr(t,n,null,!0):e.style[t]=n+this.unit,r&&r.call(e,n,this)}run(e,t,n){let r=this,o=r.options,i=function(e){return!i.stopped&&r.step(e)},a=rt.requestAnimationFrame||function(e){setTimeout(e,13)},l=function(){for(let e=0;e<ot.timers.length;e++)ot.timers[e]()||ot.timers.splice(e--,1);ot.timers.length&&a(l)};e!==t||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=e,this.end=t,this.unit=n,this.now=this.start,this.pos=0,i.elem=this.elem,i.prop=this.prop,i()&&1===ot.timers.push(i)&&a(l)):(delete o.curAnim[this.prop],o.complete&&0===Object.keys(o.curAnim).length&&o.complete.call(this.elem))}step(e){let t,n,r=+new Date,o=this.options,i=this.elem,a=o.complete,l=o.duration,s=o.curAnim;return i.attr&&!i.element?t=!1:e||r>=l+this.startTime?(this.now=this.end,this.pos=1,this.update(),s[this.prop]=!0,n=!0,Se(s,function(e){!0!==e&&(n=!1)}),n&&a&&a.call(i),t=!1):(this.pos=o.easing((r-this.startTime)/l),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0),t}initPath(e,t,n){let r,o,i,a,l=e.startX,s=e.endX,c=n.slice(),u=e.isArea,d=u?2:1,h=t&&n.length>t.length&&n.hasStackedCliffs,p=null==t?void 0:t.slice();if(!p||h)return[c,c];function f(e,t){for(;e.length<o;){let n=e[0],r=t[o-e.length];if(r&&"M"===n[0]&&("C"===r[0]?e[0]=["C",n[1],n[2],n[1],n[2],n[1],n[2]]:e[0]=["L",n[1],n[2]]),e.unshift(n),u){let t=e.pop();e.push(e[e.length-1],t)}}}function m(e){for(;e.length<o;){let t=e[Math.floor(e.length/d)-1].slice();if("C"===t[0]&&(t[1]=t[5],t[2]=t[6]),u){let n=e[Math.floor(e.length/d)].slice();e.splice(e.length/2,0,t,n)}else e.push(t)}}if(l&&s&&s.length){for(i=0;i<l.length;i++){if(l[i]===s[0]){r=i;break}if(l[0]===s[s.length-l.length+i]){r=i,a=!0;break}if(l[l.length-1]===s[s.length-l.length+i]){r=l.length-i;break}}void 0===r&&(p=[])}return p.length&&ye(r)&&(o=c.length+r*d,a?(f(p,c),m(c)):(f(c,p),m(p))),[p,c]}fillSetter(){ot.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,nt(this.start).tweenTo(nt(this.end),this.pos),void 0,!0)}}function it(e){return we(e)?Ce({duration:500,defer:0},e):{duration:500*!!e,defer:0}}function at(e,t){let n=ot.timers.length;for(;n--;)ot.timers[n].elem!==e||t&&t!==ot.timers[n].prop||(ot.timers[n].stopped=!0)}ot.timers=[];let lt={animate:function(e,t,n){let r,o,i,a,l="";we(n)||(a=arguments,n={duration:a[2],easing:a[3],complete:a[4]}),ye(n.duration)||(n.duration=400),n.easing="function"==typeof n.easing?n.easing:Math[n.easing]||Math.easeInOutSine,n.curAnim=Ce(t),Se(t,function(a,s){at(e,s),i=new ot(e,n,s),o=void 0,"d"===s&&be(t.d)?(i.paths=i.initPath(e,e.pathArray,t.d),i.toD=t.d,r=0,o=1):e.attr?r=e.attr(s):(r=parseFloat(he(e,s))||0,"opacity"!==s&&(l="px")),o||(o=a),"string"==typeof o&&o.match("px")&&(o=o.replace(/px/g,"")),i.run(r,o,l)})},animObject:it,getDeferredAnimation:function(e,t,n){let r=it(t),o=n?[n]:e.series,i=0,a=0;return o.forEach(e=>{let n=it(e.options.animation);i=we(t)&&ee(t.defer)?r.defer:Math.max(i,n.duration+n.defer),a=Math.min(r.duration,n.duration)}),e.renderer.forExport&&(i=0),{defer:Math.max(0,i-a),duration:Math.min(i,a)}},setAnimation:function(e,t){t.renderer.globalAnimation=Te(e,t.options.chart.animation,!0)},stop:at},{SVG_NS:st,win:ct}=_,{trustedTypes:ut}=ct,dt=ut&&xe(ut.createPolicy)&&ut.createPolicy("highcharts",{createHTML:e=>e}),ht=dt?dt.createHTML(""):"";class pt{static filterUserAttributes(e){return Se(e,(t,n)=>{let r=!0;-1===pt.allowedAttributes.indexOf(n)&&(r=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(n)&&(r=ve(t)&&pt.allowedReferences.some(e=>0===t.indexOf(e))),r||(je(33,!1,void 0,{"Invalid attribute in config":`${n}`}),delete e[n]),ve(t)&&e[n]&&(e[n]=t.replace(/</g,"<"))}),e}static parseStyle(e){return e.split(";").reduce((e,t)=>{let n=t.split(":").map(e=>e.trim()),r=n.shift();return r&&n.length&&(e[r.replace(/-([a-z])/g,e=>e[1].toUpperCase())]=n.join(":")),e},{})}static setElementHTML(e,t){e.innerHTML=pt.emptyHTML,t&&new pt(t).addToDOM(e)}constructor(e){this.nodes="string"==typeof e?this.parseMarkup(e):e}addToDOM(e){return function e(t,n){let r;return Ae(t).forEach(function(t){let o,i=t.tagName,a=t.textContent?_.doc.createTextNode(t.textContent):void 0,l=pt.bypassHTMLFiltering;if(i)if("#text"===i)o=a;else if(-1!==pt.allowedTags.indexOf(i)||l){let r="svg"===i?st:n.namespaceURI||st,s=_.doc.createElementNS(r,i),c=t.attributes||{};Se(t,function(e,t){"tagName"!==t&&"attributes"!==t&&"children"!==t&&"style"!==t&&"textContent"!==t&&(c[t]=e)}),X(s,l?c:pt.filterUserAttributes(c)),t.style&&J(s,t.style),a&&s.appendChild(a),e(t.children||[],s),o=s}else je(33,!1,void 0,{"Invalid tagName in config":i});o&&n.appendChild(o),r=o}),r}(this.nodes,e)}parseMarkup(e){let t,n=[];e=e.trim().replace(/ style=(["'])/g," data-style=$1");try{t=(new DOMParser).parseFromString(dt?dt.createHTML(e):e,"text/html")}catch{}if(!t){let n=Z("div");n.innerHTML=e,t={body:n}}let r=(e,t)=>{let n=e.nodeName.toLowerCase(),o={tagName:n};"#text"===n&&(o.textContent=e.textContent||"");let i=e.attributes;if(i){let e={};[].forEach.call(i,t=>{"data-style"===t.name?o.style=pt.parseStyle(t.value):e[t.name]=t.value}),o.attributes=e}if(e.childNodes.length){let t=[];[].forEach.call(e.childNodes,e=>{r(e,t)}),t.length&&(o.children=t)}t.push(o)};return[].forEach.call(t.body.childNodes,e=>r(e,n)),n}}pt.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","disabled","dx","dy","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","in2","markerHeight","markerWidth","offset","opacity","operator","orient","padding","paddingLeft","paddingRight","patternUnits","r","radius","refX","refY","result","role","rowspan","scope","slope","src","startOffset","stdDeviation","stroke-linecap","stroke-width","stroke","style","summary","tabindex","tableValues","target","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],pt.allowedReferences=["https://","http://","mailto:","/","../","./","#"],pt.allowedTags=["#text","a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","tbody","td","text","textPath","th","thead","title","tr","tspan","u","ul"],pt.emptyHTML=ht,pt.bypassHTMLFiltering=!1;let{defaultOptions:ft,defaultTime:mt}=Ze,{pageLang:gt}=_,yt={add:(e,t)=>e+t,divide:(e,t)=>0!==t?e/t:"",eq:(e,t)=>e==t,each:function(e){let t=arguments[arguments.length-1];return!!be(e)&&e.map((n,r)=>bt(t.body,ie(we(n)?n:{"@this":n},{"@index":r,"@first":0===r,"@last":r===e.length-1}))).join("")},ge:(e,t)=>e>=t,gt:(e,t)=>e>t,if:e=>!!e,le:(e,t)=>e<=t,lt:(e,t)=>e<t,multiply:(e,t)=>e*t,ne:(e,t)=>e!=t,subtract:(e,t)=>e-t,ucfirst:Be,unless:e=>!e},vt={};function bt(e="",t,n){var r;let o,i,a,l=RegExp("\\{([\\p{L}\\p{M}\\d:\\.,;\\-\\/<>\\[\\]%_@+\"'’= #\\(\\)]+)\\}","gu"),s=RegExp("\\(([\\p{L}\\p{M}\\d:\\.,;\\-\\/<>\\[\\]%_@+\"'= ]+)\\)","gu"),c=[],u=/f$/,d=/\.(\d)/,h=(null==(r=null==n?void 0:n.options)?void 0:r.lang)||ft.lang,p=(null==n?void 0:n.time)||mt,f=(null==n?void 0:n.numberFormatter)||xt.bind(n),m=(e="")=>{let n;return"true"===e||"false"!==e&&((n=Number(e)).toString()===e?n:/^["'].+["']$/.test(e)?e.slice(1,-1):de(e,t))},g=0;for(;null!==(o=l.exec(e));){let n=o,r=s.exec(o[1]);r&&(o=r,a=!0),(null==i?void 0:i.isBlock)||(i={ctx:t,expression:o[1],find:o[0],isBlock:"#"===o[1].charAt(0),start:o.index,startInner:o.index+o[0].length,length:o[0].length});let l=(i.isBlock?n:o)[1].split(" ")[0].replace("#","");yt[l]&&(i.isBlock&&l===i.fn&&g++,i.fn||(i.fn=l));let u="else"===o[1];if(i.isBlock&&i.fn&&(o[1]===`/${i.fn}`||u))if(g)!u&&g--;else{let t=i.startInner,n=e.substr(t,o.index-t);void 0===i.body?(i.body=n,i.startInner=o.index+o[0].length):i.elseBody=n,i.find+=n+o[0],u||(c.push(i),i=void 0)}else i.isBlock||c.push(i);if(r&&!(null==i?void 0:i.isBlock))break}return c.forEach(r=>{let o,i,{body:a,elseBody:l,expression:c,fn:g}=r;if(g){let e,s=[r],u=[],d=c.length,h=0;for(i=0;i<=d;i++){let t=c.charAt(i);e||'"'!==t&&"'"!==t?e===t&&(e=""):e=t,e||" "!==t&&i!==d||(u.push(c.substr(h,i-h)),h=i+1)}for(i=yt[g].length;i--;)s.unshift(m(u[i+1]));o=yt[g].apply(t,s),r.isBlock&&"boolean"==typeof o&&(o=bt(o?a:l,t,n))}else{let e=/^["'].+["']$/.test(c)?[c]:c.split(":");if(o=m(e.shift()||""),e.length&&"number"==typeof o){let t=e.join(":");if(u.test(t)){let e=parseInt((t.match(d)||["","-1"])[1],10);null!==o&&(o=f(o,e,h.decimalPoint,t.indexOf(",")>-1?h.thousandsSep:""))}else o=p.dateFormat(t,o)}s.lastIndex=0,s.test(r.find)&&ve(o)&&(o=`"${o}"`)}e=e.replace(r.find,Te(o,""))}),a?bt(e,t,n):e}function xt(e,t,n,r){var o;t*=1;let i,a,[l,s]=(e=+e||0).toString().split("e").map(Number),c=(null==(o=null==this?void 0:this.options)?void 0:o.lang)||ft.lang,u=(e.toString().split(".")[1]||"").split("e")[0].length,d=t,h={};n??(n=c.decimalPoint),r??(r=c.thousandsSep),-1===t?t=Math.min(u,20):ye(t)?t&&s<0&&((a=t+s)>=0?(l=+l.toExponential(a).split("e")[0],t=a):(l=Math.floor(l),e=t<20?+(l*Math.pow(10,s)).toFixed(t):0,s=0)):t=2,s&&(t??(t=2),e=l),ye(t)&&t>=0&&(h.minimumFractionDigits=t,h.maximumFractionDigits=t),""===r&&(h.useGrouping=!1);let p=r||n,f=p?"en":(null==this?void 0:this.locale)||c.locale||gt,m=JSON.stringify(h)+f;return i=(vt[m]??(vt[m]=new Intl.NumberFormat(f,h))).format(e),p&&(i=i.replace(/([,\.])/g,"_$1").replace(/_\,/g,r??",").replace("_.",n??".")),(t||0!=+i)&&(!(s<0)||d)||(i="0"),s&&0!=+i&&(i+="e"+(s<0?"":"+")+s),i}let wt={dateFormat:function(e,t,n){return mt.dateFormat(e,t,n)},format:bt,helpers:yt,numberFormat:xt};(m=S||(S={})).rendererTypes={},m.getRendererType=function(e=h){return m.rendererTypes[e]||m.rendererTypes[h]},m.registerRendererType=function(e,t,n){m.rendererTypes[e]=t,(!h||n)&&(h=e,_.Renderer=t)};let Ct=S;(E||(E={})).distribute=function e(t,n,r){let o,i,a,l=t,s=l.reducedLen||n,c=(e,t)=>e.target-t.target,u=[],d=t.length,h=[],p=u.push,f=!0,m=0;for(o=d;o--;)m+=t[o].size;if(m>s){if(Re(t,(e,t)=>(t.rank||0)-(e.rank||0)),t[0].rank===t[t.length-1].rank){let e=[[0,d-1]];for(;e.length&&m>s;){let n=e.shift();if(!n)break;i=t[o=Math.floor((n[0]+n[1])/2)],Pe(h,o)&&(m-=i.size),n[0]<o&&e.push([n[0],o-1]),o<n[1]&&e.push([o+1,n[1]])}}else for(o=d-1;m>s&&o>=0;)i=t[o],Pe(h,o)&&(m-=i.size),o--;h.sort((e,t)=>t-e).forEach(e=>p.apply(u,t.splice(e,1)))}for(Re(t,c),t=t.map(e=>({size:e.size,targets:[e.target],align:Te(e.align,.5)}));f;){for(o=t.length;o--;)i=t[o],a=(Math.min.apply(0,i.targets)+Math.max.apply(0,i.targets))/2,i.pos=U(a-i.size*i.align,0,n-i.size);for(o=t.length,f=!1;o--;)o>0&&t[o-1].pos+t[o-1].size>t[o].pos&&(t[o-1].size+=t[o].size,t[o-1].targets=t[o-1].targets.concat(t[o].targets),t[o-1].align=.5,t[o-1].pos+t[o-1].size>n&&(t[o-1].pos=n-t[o-1].size),t.splice(o,1),f=!0)}return p.apply(l,u),o=0,t.some(t=>{let i=0;return(t.targets||[]).some(()=>(l[o].pos=t.pos+i,void 0!==r&&Math.abs(l[o].pos-l[o].target)>r?(l.slice(0,o+1).forEach(e=>delete e.pos),l.reducedLen=(l.reducedLen||n)-.1*n,l.reducedLen>.1*n&&e(l,n,r),!0):(i+=l[o].size,o++,!1)))}),Re(l,c),l};let kt=E,{animate:St,animObject:Et,stop:$t}=lt,{deg2rad:Tt,doc:Mt,svg:Pt,SVG_NS:Nt,win:It,isFirefox:Ot}=_;class At{_defaultGetter(e){let t=Te(this[e+"Value"],this[e],this.element?this.element.getAttribute(e):null,0);return/^-?[\d\.]+$/.test(t)&&(t=parseFloat(t)),t}_defaultSetter(e,t,n){n.setAttribute(t,e)}add(e){let t,n=this.renderer,r=this.element;return e&&(this.parentGroup=e),void 0!==this.textStr&&"text"===this.element.nodeName&&n.buildText(this),this.added=!0,(!e||e.handleZ||this.zIndex)&&(t=this.zIndexSetter()),t||(e?e.element:n.box).appendChild(r),this.onAdd&&this.onAdd(),this}addClass(e,t){let n=t?"":this.attr("class")||"";return(e=(e||"").split(/ /g).reduce(function(e,t){return-1===n.indexOf(t)&&e.push(t),e},n?[n]:[]).join(" "))!==n&&this.attr("class",e),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(e,t,n,r=!0){let o=this.renderer,i=o.alignedObjects,a=!!e;e?(this.alignOptions=e,this.alignByTranslate=t,this.alignTo=n):(e=this.alignOptions||{},t=this.alignByTranslate,n=this.alignTo);let l=!n||ve(n)?n||"renderer":void 0;l&&(a&&Pe(i,this),n=void 0);let s=Te(n,o[l],o),c=(s.x||0)+(e.x||0)+((s.width||0)-(e.width||0))*se(e.align),u=(s.y||0)+(e.y||0)+((s.height||0)-(e.height||0))*se(e.verticalAlign),d={};return e.align&&(d["text-align"]=e.align),d[t?"translateX":"x"]=Math.round(c),d[t?"translateY":"y"]=Math.round(u),r&&(this[this.placed?"animate":"attr"](d),this.placed=!0),this.alignAttr=d,this}alignSetter(e){let t={left:"start",center:"middle",right:"end"};t[e]&&(this.alignValue=e,this.element.setAttribute("text-anchor",t[e]))}animate(e,t,n){let r=Et(Te(t,this.renderer.globalAnimation,!0)),o=r.defer;return Mt.hidden&&(r.duration=0),0!==r.duration?(n&&(r.complete=n),Le(()=>{this.element&&St(this,e,r)},o)):(this.attr(e,void 0,n||r.complete),Se(e,function(e,t){r.step&&r.step.call(this,e,{prop:t,pos:1,elem:this})},this)),this}applyTextOutline(e){let t=this.element;-1!==e.indexOf("contrast")&&(e=e.replace(/contrast/g,this.renderer.getContrast(t.style.fill)));let n=e.indexOf(" "),r=e.substring(n+1),o=e.substring(0,n);if(o&&"none"!==o&&_.svg){this.fakeTS=!0,o=o.replace(/(^[\d\.]+)(.*?)$/g,function(e,t,n){return 2*Number(t)+n}),this.removeTextOutline();let e=Mt.createElementNS(Nt,"tspan");X(e,{class:"highcharts-text-outline",fill:r,stroke:r,"stroke-width":o,"stroke-linejoin":"round"});let n=t.querySelector("textPath")||t;[].forEach.call(n.childNodes,t=>{let n=t.cloneNode(!0);n.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(e=>n.removeAttribute(e)),e.appendChild(n)});let i=0;[].forEach.call(n.querySelectorAll("text tspan"),e=>{i+=Number(e.getAttribute("dy"))});let a=Mt.createElementNS(Nt,"tspan");a.textContent="",X(a,{x:Number(t.getAttribute("x")),dy:-i}),e.appendChild(a),n.insertBefore(e,n.firstChild)}}attr(e,t,n,r){let o,i,a,{element:l}=this,s=At.symbolCustomAttribs,c=this;return"string"==typeof e&&void 0!==t&&(o=e,(e={})[o]=t),"string"==typeof e?c=(this[e+"Getter"]||this._defaultGetter).call(this,e,l):(Se(e,function(t,n){a=!1,r||$t(this,n),this.symbolName&&-1!==s.indexOf(n)&&(i||(this.symbolAttr(e),i=!0),a=!0),this.rotation&&("x"===n||"y"===n)&&(this.doTransform=!0),a||(this[n+"Setter"]||this._defaultSetter).call(this,t,n,l)},this),this.afterSetters()),n&&n.call(this),c}clip(e){if(e&&!e.clipPath){let t=_e()+"-",n=this.renderer.createElement("clipPath").attr({id:t}).add(this.renderer.defs);ie(e,{clipPath:n,id:t,count:0}),e.add(n)}return this.attr("clip-path",e?`url(${this.renderer.url}#${e.id})`:"none")}crisp(e,t){t=Math.round(t||e.strokeWidth||0);let n=e.x||this.x||0,r=e.y||this.y||0,o=(e.width||this.width||0)+n,i=(e.height||this.height||0)+r,a=Q(n,t),l=Q(r,t);return ie(e,{x:a,y:l,width:Q(o,t)-a,height:Q(i,t)-l}),ee(e.strokeWidth)&&(e.strokeWidth=t),e}complexColor(e,t,n){let r,o,i,a,l,s,c,u,d,h,p,f=this.renderer,m=[];le(this.renderer,"complexColor",{args:arguments},function(){if(e.radialGradient?o="radialGradient":e.linearGradient&&(o="linearGradient"),o){if(i=e[o],l=f.gradients,s=e.stops,d=n.radialReference,be(i)&&(e[o]=i={x1:i[0],y1:i[1],x2:i[2],y2:i[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===o&&d&&!ee(i.gradientUnits)&&(a=i,i=Ce(i,f.getRadialAttr(d,a),{gradientUnits:"userSpaceOnUse"})),Se(i,function(e,t){"id"!==t&&m.push(t,e)}),Se(s,function(e){m.push(e)}),l[m=m.join(",")])h=l[m].attr("id");else{i.id=h=_e();let e=l[m]=f.createElement(o).attr(i).add(f.defs);e.radAttr=a,e.stops=[],s.forEach(function(t){0===t[1].indexOf("rgba")?(c=(r=tt.parse(t[1])).get("rgb"),u=r.get("a")):(c=t[1],u=1);let n=f.createElement("stop").attr({offset:t[0],"stop-color":c,"stop-opacity":u}).add(e);e.stops.push(n)})}p="url("+f.url+"#"+h+")",n.setAttribute(t,p),n.gradient=m,e.toString=function(){return p}}})}css(e){let t,n=this.styles,r={},o=this.element,i=!n;if(n&&Se(e,function(e,t){n&&n[t]!==e&&(r[t]=e,i=!0)}),i){n&&(e=ie(n,r)),null===e.width||"auto"===e.width?delete this.textWidth:"text"===o.nodeName.toLowerCase()&&e.width&&(t=this.textWidth=Me(e.width)),ie(this.styles,e),t&&!Pt&&this.renderer.forExport&&delete e.width;let i=Ot&&e.fontSize||null;i&&(ye(i)||/^\d+$/.test(i))&&(e.fontSize+="px");let a=Ce(e);o.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","whiteSpace","width"].forEach(e=>a&&delete a[e]),a.color&&(a.fill=a.color,delete a.color)),J(o,a)}return this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),e.textOutline&&this.applyTextOutline(e.textOutline)),this}dashstyleSetter(e){let t,n=this["stroke-width"];if("inherit"===n&&(n=1),e){let r=(e=e.toLowerCase()).replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(t=r.length;t--;)r[t]=""+Me(r[t])*Te(n,NaN);e=r.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",e)}}destroy(){let e,t=this,{element:n={},renderer:r,stops:o}=t,i=n.ownerSVGElement,a="SPAN"===n.nodeName&&t.parentGroup||void 0;if(n.onclick=n.onmouseout=n.onmouseover=n.onmousemove=n.point=null,$t(t),t.clipPath&&i){let e=t.clipPath;[].forEach.call(i.querySelectorAll("[clip-path],[CLIP-PATH]"),function(t){t.getAttribute("clip-path").indexOf(e.element.id)>-1&&t.removeAttribute("clip-path")}),t.clipPath=e.destroy()}if(o){for(let e of o)e.destroy();o.length=0}for(t.safeRemoveChild(n);(null==a?void 0:a.div)&&0===a.div.childNodes.length;)e=a.parentGroup,t.safeRemoveChild(a.div),delete a.div,a=e;t.alignOptions&&oe(r.alignedObjects,t),Se(t,(e,n)=>{var r,o,i;((null==(r=t[n])?void 0:r.parentGroup)===t||-1!==["connector","foreignObject"].indexOf(n))&&(null==(i=null==(o=t[n])?void 0:o.destroy)||i.call(o)),delete t[n]})}dSetter(e,t,n){be(e)&&("string"==typeof e[0]&&(e=this.renderer.pathToSegments(e)),this.pathArray=e,e=e.reduce((e,t,n)=>(null==t?void 0:t.join)?(n?e+" ":"")+t.join(" "):(t||"").toString(),"")),/(NaN| {2}|^$)/.test(e)&&(e="M 0 0"),this[t]!==e&&(n.setAttribute(t,e),this[t]=e)}fillSetter(e,t,n){"string"==typeof e?n.setAttribute(t,e):e&&this.complexColor(e,t,n)}hrefSetter(e,t,n){n.setAttributeNS("http://www.w3.org/1999/xlink",t,e)}getBBox(e,t){let n,r,o,{element:i,renderer:a,styles:l,textStr:s}=this,{cache:c,cacheKeys:u}=a,d=i.namespaceURI===this.SVG_NS,h=Te(t,this.rotation,0),p=a.styledMode?i&&At.prototype.getStyle.call(i,"font-size"):l.fontSize,f=this.getBBoxCacheKey([a.rootFontSize,this.textWidth,this.alignValue,l.fontWeight,l.lineClamp,l.textOverflow,p,h]);if(f&&!e&&(n=c[f]),!n||n.polygon){if(d||a.forExport){try{o=this.fakeTS&&function(e){let t=i.querySelector(".highcharts-text-outline");t&&J(t,{display:e})},xe(o)&&o("none"),n=i.getBBox?ie({},i.getBBox()):{width:i.offsetWidth,height:i.offsetHeight,x:0,y:0},xe(o)&&o("")}catch{}(!n||n.width<0)&&(n={x:0,y:0,width:0,height:0})}else n=this.htmlGetBBox();r=n.height,d&&(n.height=r={"11px,17":14,"13px,20":16}[`${p||""},${Math.round(r)}`]||r),h&&(n=this.getRotatedBox(n,h));let e={bBox:n};le(this,"afterGetBBox",e),n=e.bBox}if(f&&(""===s||n.height>0)){for(;u.length>250;)delete c[u.shift()];c[f]||u.push(f),c[f]=n}return n}getBBoxCacheKey(e){if(ee(this.textStr)){let t=""+this.textStr;return-1===t.indexOf("<")&&(t=t.replace(/\d/g,"0")),[t,...e].join(",")}}getRotatedBox(e,t){let{x:n,y:r,width:o,height:i}=e,{alignValue:a,translateY:l,rotationOriginX:s=0,rotationOriginY:c=0}=this,u=se(a),d=Number(this.element.getAttribute("y")||0)-(l?0:r),h=t*Tt,p=(t-90)*Tt,f=Math.cos(h),m=Math.sin(h),g=o*f,y=o*m,v=Math.cos(p),b=Math.sin(p),[[x,w],[C,k]]=[s,c].map(e=>[e-e*f,e*m]),S=n+u*(o-g)+x+k+d*v,E=S+g,$=E-i*v,T=$-g,M=r+d-u*y-w+C+d*b,P=M+y,N=P-i*b,I=N-y,O=Math.min(S,E,$,T),A=Math.min(M,P,N,I);return{x:O,y:A,width:Math.max(S,E,$,T)-O,height:Math.max(M,P,N,I)-A,polygon:[[S,M],[E,P],[$,N],[T,I]]}}getStyle(e){return It.getComputedStyle(this.element||this,"").getPropertyValue(e)}hasClass(e){return-1!==(""+this.attr("class")).split(" ").indexOf(e)}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(e,t){this.onEvents={},this.opacity=1,this.SVG_NS=Nt,this.element="span"===t||"body"===t?Z(t):Mt.createElementNS(this.SVG_NS,t),this.renderer=e,this.styles={},le(this,"afterInit")}on(e,t){let{onEvents:n}=this;return n[e]&&n[e](),n[e]=V(this.element,e,t),this}opacitySetter(e,t,n){let r=Number(Number(e).toFixed(3));this.opacity=r,n.setAttribute(t,r)}reAlign(){var e;(null==(e=this.alignOptions)?void 0:e.width)&&"left"!==this.alignOptions.align&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(e){return this.attr("class",(""+this.attr("class")).replace(ve(e)?RegExp(`(^| )${e}( |$)`):e," ").replace(/ +/g," ").trim())}removeTextOutline(){let e=this.element.querySelector("tspan.highcharts-text-outline");e&&this.safeRemoveChild(e)}safeRemoveChild(e){let t=e.parentNode;t&&t.removeChild(e)}setRadialReference(e){let t=this.element.gradient&&this.renderer.gradients[this.element.gradient]||void 0;return this.element.radialReference=e,(null==t?void 0:t.radAttr)&&t.animate(this.renderer.getRadialAttr(e,t.radAttr)),this}shadow(e){var t;let{renderer:n}=this,r=Ce(90===(null==(t=this.parentGroup)?void 0:t.rotation)?{offsetX:-1,offsetY:-1}:{},we(e)?e:{}),o=n.shadowDefinition(r);return this.attr({filter:e?`url(${n.url}#${o})`:"none"})}show(e=!0){return this.attr({visibility:e?"inherit":"visible"})}"stroke-widthSetter"(e,t,n){this[t]=e,n.setAttribute(t,e)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let e,t=this.getStyle("stroke-width"),n=0;return/px$/.test(t)?n=Me(t):""!==t&&(X(e=Mt.createElementNS(Nt,"rect"),{width:t,"stroke-width":0}),this.element.parentNode.appendChild(e),n=e.getBBox().width,e.parentNode.removeChild(e)),n}symbolAttr(e){let t=this;At.symbolCustomAttribs.forEach(function(n){t[n]=Te(e[n],t[n])}),t.attr({d:t.renderer.symbols[t.symbolName](t.x,t.y,t.width,t.height,t)})}textSetter(e){e!==this.textStr&&(delete this.textPxLength,this.textStr=e,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(e){let t=this.element,n=t.getElementsByTagName("title")[0]||Mt.createElementNS(this.SVG_NS,"title");t.insertBefore?t.insertBefore(n,t.firstChild):t.appendChild(n),n.textContent=Ie(Te(e,""),[/<[^>]*>/g,""]).replace(/</g,"<").replace(/>/g,">")}toFront(){let e=this.element;return e.parentNode.appendChild(e),this}translate(e,t){return this.attr({translateX:e,translateY:t})}updateTransform(e="transform"){let{element:t,foreignObject:n,matrix:r,padding:o,rotation:i=0,rotationOriginX:a,rotationOriginY:l,scaleX:s,scaleY:c,text:u,translateX:d=0,translateY:h=0}=this,p=[`translate(${d},${h})`];ee(r)&&p.push("matrix("+r.join(",")+")"),i&&(p.push("rotate("+i+" "+(a??t.getAttribute("x")??this.x??0)+" "+(l??t.getAttribute("y")??this.y??0)+")"),"SPAN"!==(null==u?void 0:u.element.tagName)||(null==u?void 0:u.foreignObject)||u.attr({rotation:i,rotationOriginX:(a||0)-o,rotationOriginY:(l||0)-o})),(ee(s)||ee(c))&&p.push(`scale(${s??1} ${c??1})`),p.length&&!(u||this).textPath&&((null==n?void 0:n.element)||t).setAttribute(e,p.join(" "))}visibilitySetter(e,t,n){"inherit"===e?n.removeAttribute(t):this[t]!==e&&n.setAttribute(t,e),this[t]=e}xGetter(e){return"circle"===this.element.nodeName&&("x"===e?e="cx":"y"===e&&(e="cy")),this._defaultGetter(e)}zIndexSetter(e,t){let n,r,o,i,a,l=this.renderer,s=this.parentGroup,c=(s||l).element||l.box,u=this.element,d=c===l.box,h=!1,p=this.added;if(ee(e)?(u.setAttribute("data-z-index",e),e*=1,this[t]===e&&(p=!1)):ee(this[t])&&u.removeAttribute("data-z-index"),this[t]=e,p){for((e=this.zIndex)&&s&&(s.handleZ=!0),a=(n=c.childNodes).length-1;a>=0&&!h;a--)i=!ee(o=(r=n[a]).getAttribute("data-z-index")),r!==u&&(e<0&&i&&!d&&!a?(c.insertBefore(u,n[a]),h=!0):(Me(o)<=e||i&&(!ee(e)||e>=0))&&(c.insertBefore(u,n[a+1]),h=!0));h||(c.insertBefore(u,n[3*!!d]),h=!0)}return h}}At.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],At.prototype.strokeSetter=At.prototype.fillSetter,At.prototype.yGetter=At.prototype.xGetter,At.prototype.matrixSetter=At.prototype.rotationOriginXSetter=At.prototype.rotationOriginYSetter=At.prototype.rotationSetter=At.prototype.scaleXSetter=At.prototype.scaleYSetter=At.prototype.translateXSetter=At.prototype.translateYSetter=At.prototype.verticalAlignSetter=function(e,t){this[t]=e,this.doTransform=!0};let Rt=At;class Lt extends Rt{constructor(e,t,n,r,o,i,a,l,s,c){let u;super(e,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.doUpdate=!1,this.textStr=t,this.x=n,this.y=r,this.anchorX=i,this.anchorY=a,this.baseline=s,this.className=c,this.addClass("button"===c?"highcharts-no-tooltip":"highcharts-label"),c&&this.addClass("highcharts-"+c),this.text=e.text(void 0,0,0,l).attr({zIndex:1}),"string"==typeof o&&((u=/^url\((.*?)\)$/.test(o))||this.renderer.symbols[o])&&(this.symbolKey=o),this.bBox=Lt.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=e.styledMode||u,this.deferredAttr={},this.alignFactor=0}alignSetter(e){let t=se(e);this.textAlign=e,t!==this.alignFactor&&(this.alignFactor=t,this.bBox&&ye(this.xSetting)&&this.attr({x:this.xSetting}),this.updateTextPadding())}anchorXSetter(e,t){this.anchorX=e,this.boxAttr(t,Math.round(e)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(e,t){this.anchorY=e,this.boxAttr(t,e-this.ySetting)}boxAttr(e,t){this.box?this.box.attr(e,t):this.deferredAttr[e]=t}css(e){if(e){let t={};e=Ce(e),Lt.textProps.forEach(n=>{void 0!==e[n]&&(t[n]=e[n],delete e[n])}),this.text.css(t),"fontSize"in t||"fontWeight"in t||"width"in t?this.updateTextPadding():"textOverflow"in t&&this.updateBoxSize()}return Rt.prototype.css.call(this,e)}destroy(){Oe(this.element,"mouseenter"),Oe(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),Rt.prototype.destroy.call(this)}fillSetter(e,t){e&&(this.needsBox=!0),this.fill=e,this.boxAttr(t,e)}getBBox(e,t){(this.textStr&&0===this.bBox.width&&0===this.bBox.height||this.rotation)&&this.updateBoxSize();let{padding:n,height:r=0,translateX:o=0,translateY:i=0,width:a=0}=this,l=Te(this.paddingLeft,n),s=t??(this.rotation||0),c={width:a,height:r,x:o+this.bBox.x-l,y:i+this.bBox.y-n+this.baselineOffset};return s&&(c=this.getRotatedBox(c,s)),c}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(e){this.heightSetting=e,this.doUpdate=!0}afterSetters(){super.afterSetters(),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=!1)}onAdd(){this.text.add(this),this.attr({text:Te(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&ee(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(e,t){ye(e)?e!==this[t]&&(this[t]=e,this.updateTextPadding()):this[t]=void 0}rSetter(e,t){this.boxAttr(t,e)}strokeSetter(e,t){this.stroke=e,this.boxAttr(t,e)}"stroke-widthSetter"(e,t){e&&(this.needsBox=!0),this["stroke-width"]=e,this.boxAttr(t,e)}"text-alignSetter"(e){this.textAlign=this["text-align"]=e,this.updateTextPadding()}textSetter(e){void 0!==e&&this.text.attr({text:e}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){let e,t=this.text,n={},r=this.padding,o=this.bBox=ye(this.widthSetting)&&ye(this.heightSetting)&&!this.textAlign||!ee(t.textStr)?Lt.emptyBBox:t.getBBox(void 0,0);this.width=this.getPaddedWidth(),this.height=(this.heightSetting||o.height||0)+2*r;let i=this.renderer.fontMetrics(t);if(this.baselineOffset=r+Math.min((this.text.firstLineMetrics||i).b,o.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-i.h)/2),this.needsBox&&!t.textPath){if(!this.box){let e=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();e.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),e.add(this)}n.x=e=this.getCrispAdjust(),n.y=(this.baseline?-this.baselineOffset:0)+e,n.width=Math.round(this.width),n.height=Math.round(this.height),this.box.attr(ie(n,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let e=this.text,t=e.styles.textAlign||this.textAlign;if(!e.textPath){this.updateBoxSize();let n=this.baseline?0:this.baselineOffset,r=(this.paddingLeft??this.padding)+se(t)*(this.widthSetting??this.bBox.width);(r!==e.x||n!==e.y)&&(e.attr({align:t,x:r}),void 0!==n&&e.attr("y",n)),e.x=r,e.y=n}}widthSetter(e){this.widthSetting=ye(e)?e:void 0,this.doUpdate=!0}getPaddedWidth(){let e=this.padding,t=Te(this.paddingLeft,e),n=Te(this.paddingRight,e);return(this.widthSetting||this.bBox.width||0)+t+n}xSetter(e){this.x=e,this.alignFactor&&(e-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.anchorX&&(this["forceAnimate:anchorX"]=!0),this.xSetting=Math.round(e),this.attr("translateX",this.xSetting)}ySetter(e){this.anchorY&&(this["forceAnimate:anchorY"]=!0),this.ySetting=this.y=Math.round(e),this.attr("translateY",this.ySetting)}}function Bt(e,t,n,r,o){let i=[];if(o){let a=o.start||0,l=o.end||0,s=Te(o.r,n),c=Te(o.r,r||n),u=1e-4>Math.abs(l-a-2*Math.PI);u&&(a=Math.PI/2,l=2.5*Math.PI-1e-4);let d=o.innerR,h=Te(o.open,u),p=u?0:Math.cos(a),f=u?1:Math.sin(a),m=u?0:Math.cos(l),g=u?1:Math.sin(l),y=Te(o.longArc,l-a-Math.PI<1e-4?0:1),v=["A",s,c,0,y,Te(o.clockwise,1),e+(u?.001:s*m),t+c*g];v.params={start:a,end:l,cx:e,cy:t},i.push(["M",e+s*p,t+c*f],v),ee(d)&&((v=["A",d,d,0,y,ee(o.clockwise)?1-o.clockwise:0,e+(u?-.001:d*p),t+d*f]).params={start:l,end:a,cx:e,cy:t},i.push(h?["M",e+d*m,t+d*g]:["L",e+d*m,t+d*g],v)),h||i.push(["Z"])}return i}function zt(e,t,n,r,o){return(null==o?void 0:o.r)?Dt(e,t,n,r,o):[["M",e,t],["L",e+n,t],["L",e+n,t+r],["L",e,t+r],["Z"]]}function Dt(e,t,n,r,o){let i=(null==o?void 0:o.r)||0;return[["M",e+i,t],["L",e+n-i,t],["A",i,i,0,0,1,e+n,t+i],["L",e+n,t+r-i],["A",i,i,0,0,1,e+n-i,t+r],["L",e+i,t+r],["A",i,i,0,0,1,e,t+r-i],["L",e,t+i],["A",i,i,0,0,1,e+i,t],["Z"]]}Lt.emptyBBox={width:0,height:0,x:0,y:0},Lt.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineClamp","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"];let jt={arc:Bt,callout:function(e,t,n,r,o){let i=Math.min((null==o?void 0:o.r)||0,n,r),a=i+6,l=null==o?void 0:o.anchorX,s=(null==o?void 0:o.anchorY)||0,c=Dt(e,t,n,r,{r:i});if(!ye(l)||l<n&&l>0&&s<r&&s>0)return c;if(e+l>n-a)if(s>t+a&&s<t+r-a)c.splice(3,1,["L",e+n,s-6],["L",e+n+6,s],["L",e+n,s+6],["L",e+n,t+r-i]);else if(l<n){let o=s<t+a,u=o?t:t+r;c.splice(o?2:5,0,["L",l,s],["L",e+n-i,u])}else c.splice(3,1,["L",e+n,r/2],["L",l,s],["L",e+n,r/2],["L",e+n,t+r-i]);else if(e+l<a)if(s>t+a&&s<t+r-a)c.splice(7,1,["L",e,s+6],["L",e-6,s],["L",e,s-6],["L",e,t+i]);else if(l>0){let n=s<t+a,o=n?t:t+r;c.splice(n?1:6,0,["L",l,s],["L",e+i,o])}else c.splice(7,1,["L",e,r/2],["L",l,s],["L",e,r/2],["L",e,t+i]);else s>r&&l<n-a?c.splice(5,1,["L",l+6,t+r],["L",l,t+r+6],["L",l-6,t+r],["L",e+i,t+r]):s<0&&l>a&&c.splice(1,1,["L",l-6,t],["L",l,t-6],["L",l+6,t],["L",n-i,t]);return c},circle:function(e,t,n,r){return Bt(e+n/2,t+r/2,n/2,r/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(e,t,n,r){return[["M",e+n/2,t],["L",e+n,t+r/2],["L",e+n/2,t+r],["L",e,t+r/2],["Z"]]},rect:zt,roundedRect:Dt,square:zt,triangle:function(e,t,n,r){return[["M",e+n/2,t],["L",e+n,t+r],["L",e,t+r],["Z"]]},"triangle-down":function(e,t,n,r){return[["M",e,t],["L",e+n,t],["L",e+n/2,t+r],["Z"]]}},{doc:Ft,SVG_NS:Ht,win:_t}=_,Wt=(e,t)=>e.substring(0,t)+"…",Kt=class{constructor(e){const t=e.styles;this.renderer=e.renderer,this.svgElement=e,this.width=e.textWidth,this.textLineHeight=null==t?void 0:t.lineHeight,this.textOutline=null==t?void 0:t.textOutline,this.ellipsis="ellipsis"===(null==t?void 0:t.textOverflow),this.lineClamp=null==t?void 0:t.lineClamp,this.noWrap="nowrap"===(null==t?void 0:t.whiteSpace)}buildSVG(){let e=this.svgElement,t=e.element,n=e.renderer,r=Te(e.textStr,"").toString(),o=-1!==r.indexOf("<"),i=t.childNodes,a=!e.added&&n.box,l=[r,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,e.getStyle("font-size"),e.styles.lineClamp,this.width].join(",");if(l!==e.textCache){e.textCache=l,delete e.actualWidth;for(let e=i.length;e--;)t.removeChild(i[e]);if(o||this.ellipsis||this.width||e.textPath||-1!==r.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(r))){if(""!==r){a&&a.appendChild(t);let n=new pt(r);this.modifyTree(n.nodes),n.addToDOM(t),this.modifyDOM(),this.ellipsis&&-1!==(t.textContent||"").indexOf("…")&&e.attr("title",this.unescapeEntities(e.textStr||"",["<",">"])),a&&a.removeChild(t)}}else t.appendChild(Ft.createTextNode(this.unescapeEntities(r)));ve(this.textOutline)&&e.applyTextOutline&&e.applyTextOutline(this.textOutline)}}modifyDOM(){let e,t=this.svgElement,n=X(t.element,"x");for(t.firstLineMetrics=void 0;(e=t.element.firstChild)&&/^[\s\u200B]*$/.test(e.textContent||" ");)t.element.removeChild(e);[].forEach.call(t.element.querySelectorAll("tspan.highcharts-br"),(e,r)=>{e.nextSibling&&e.previousSibling&&(0===r&&1===e.previousSibling.nodeType&&(t.firstLineMetrics=t.renderer.fontMetrics(e.previousSibling)),X(e,{dy:this.getLineHeight(e.nextSibling),x:n}))});let r=this.width||0;if(!r)return;let o=(e,o)=>{var i;let a=e.textContent||"",l=a.replace(/([^\^])-/g,"$1- ").split(" "),s=!this.noWrap&&(l.length>1||t.element.childNodes.length>1),c=this.getLineHeight(o),u=Math.max(0,r-.8*c),d=0,h=t.actualWidth;if(s){let a=[],s=[];for(;o.firstChild&&o.firstChild!==e;)s.push(o.firstChild),o.removeChild(o.firstChild);for(;l.length;)if(l.length&&!this.noWrap&&d>0&&(a.push(e.textContent||""),e.textContent=l.join(" ").replace(/- /g,"-")),this.truncate(e,void 0,l,0===d&&h||0,r,u,(e,t)=>l.slice(0,t).join(" ").replace(/- /g,"-")),h=t.actualWidth,d++,this.lineClamp&&d>=this.lineClamp){l.length&&(this.truncate(e,e.textContent||"",void 0,0,r,u,Wt),e.textContent=(null==(i=e.textContent)?void 0:i.replace("…",""))+"…");break}s.forEach(t=>{o.insertBefore(t,e)}),a.forEach(t=>{o.insertBefore(Ft.createTextNode(t),e);let r=Ft.createElementNS(Ht,"tspan");r.textContent="",X(r,{dy:c,x:n}),o.insertBefore(r,e)})}else this.ellipsis&&a&&this.truncate(e,a,void 0,0,r,u,Wt)},i=e=>{[].slice.call(e.childNodes).forEach(n=>{n.nodeType===_t.Node.TEXT_NODE?o(n,e):(-1!==n.className.baseVal.indexOf("highcharts-br")&&(t.actualWidth=0),i(n))})};i(t.element)}getLineHeight(e){let t=e.nodeType===_t.Node.TEXT_NODE?e.parentElement:e;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(t||this.svgElement.element).h}modifyTree(e){let t=(n,r)=>{let{attributes:o={},children:i,style:a={},tagName:l}=n,s=this.renderer.styledMode;if("b"===l||"strong"===l?s?o.class="highcharts-strong":a.fontWeight="bold":("i"===l||"em"===l)&&(s?o.class="highcharts-emphasized":a.fontStyle="italic"),(null==a?void 0:a.color)&&(a.fill=a.color),"br"===l){o.class="highcharts-br",n.textContent="";let t=e[r+1];(null==t?void 0:t.textContent)&&(t.textContent=t.textContent.replace(/^ +/gm,""))}else"a"===l&&i&&i.some(e=>"#text"===e.tagName)&&(n.children=[{children:i,tagName:"tspan"}]);"#text"!==l&&"a"!==l&&(n.tagName="tspan"),ie(n,{attributes:o,style:a}),i&&i.filter(e=>"#text"!==e.tagName).forEach(t)};e.forEach(t),le(this.svgElement,"afterModifyTree",{nodes:e})}truncate(e,t,n,r,o,i,a){let l,s,c=this.svgElement,{rotation:u}=c,d=[],h=n&&!r?1:0,p=(t||n||"").length,f=p;n||(o=i);let m=function(t,o){let i=o||t,a=e.parentNode;if(a&&void 0===d[i]&&a.getSubStringLength)try{d[i]=r+a.getSubStringLength(0,n?i+1:i)}catch{}return d[i]};if(c.rotation=0,r+(s=m(e.textContent.length))>o){for(;h<=p;)f=Math.ceil((h+p)/2),n&&(l=a(n,f)),s=m(f,l&&l.length-1),h===p?h=p+1:s>o?p=f-1:h=f;0===p?e.textContent="":t&&p===t.length-1||(e.textContent=l||a(t||n,f)),this.ellipsis&&s>o&&this.truncate(e,e.textContent||"",void 0,0,o,i,Wt)}n&&n.splice(0,f),c.actualWidth=s,c.rotation=u}unescapeEntities(e,t){return Se(this.renderer.escapes,function(n,r){t&&-1!==t.indexOf(n)||(e=e.toString().replace(RegExp(n,"g"),r))}),e}},{defaultOptions:Vt}=Ze,{charts:Gt,deg2rad:qt,doc:Xt,isFirefox:Ut,isMS:Yt,isWebKit:Zt,noop:Qt,SVG_NS:Jt,symbolSizes:en,win:tn}=_;class nn{constructor(e,t,n,r,o,i,a){let l,s;this.x=0,this.y=0;const c=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),u=c.element;a||c.css(this.getStyle(r||{})),e.appendChild(u),X(e,"dir","ltr"),-1===e.innerHTML.indexOf("xmlns")&&X(u,"xmlns",this.SVG_NS),this.box=u,this.boxWrapper=c,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(Xt.createTextNode("Created with Highcharts 12.6.0")),this.defs=this.createElement("defs").add(),this.allowHTML=i,this.forExport=o,this.styledMode=a,this.gradients={},this.cache={},this.cacheKeys=[],this.asyncCounter=0,this.rootFontSize=c.getStyle("font-size"),this.setSize(t,n,!1),Ut&&e.getBoundingClientRect&&((l=function(){J(e,{left:0,top:0}),s=e.getBoundingClientRect(),J(e,{left:Math.ceil(s.left)-s.left+"px",top:Math.ceil(s.top)-s.top+"px"})})(),this.unSubPixelFix=V(tn,"resize",l))}definition(e){return new pt([e]).addToDOM(this.defs.element)}getReferenceURL(){if((Ut||Zt)&&Xt.getElementsByTagName("base").length){if(!ee(c)){let e=_e(),t=new pt([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:e},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${e})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(Xt.body);J(t,{position:"fixed",top:0,left:0,zIndex:9e5});let n=Xt.elementFromPoint(6,6);c="hitme"===(null==n?void 0:n.id),Xt.body.removeChild(t)}if(c)return Ie(tn.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(e){return this.style=ie({fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif',fontSize:"1rem"},e),this.style}setStyle(e){this.boxWrapper.css(this.getStyle(e))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let e=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),te(this.gradients||{}),this.gradients=null,this.defs=e.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}createElement(e){return new this.Element(this,e)}getRadialAttr(e,t){return{cx:e[0]-e[2]/2+(t.cx||0)*e[2],cy:e[1]-e[2]/2+(t.cy||0)*e[2],r:(t.r||0)*e[2]}}shadowDefinition(e){let t=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(e).map(t=>`${t}-${e[t]}`)].join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),n=Ce({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},e);return this.defs.element.querySelector(`#${t}`)||this.definition({tagName:"filter",attributes:{id:t,filterUnits:n.filterUnits},children:this.getShadowFilterContent(n)}),t}getShadowFilterContent(e){return[{tagName:"feDropShadow",attributes:{dx:e.offsetX,dy:e.offsetY,"flood-color":e.color,"flood-opacity":Math.min(5*e.opacity,1),stdDeviation:e.width/2}}]}buildText(e){new Kt(e).buildSVG()}getContrast(e){if("transparent"===e)return"#000000";let t=tt.parse(e).rgba,n=" clamp(0,calc(9e9*(0.5 - (0.2126*r + 0.7152*g + 0.0722*b))),1)";if(ye(t[0])||!tt.useColorMix){let e=t.map(e=>{let t=e/255;return t<=.04?t/12.92:Math.pow((t+.055)/1.055,2.4)}),n=.2126*e[0]+.7152*e[1]+.0722*e[2];return 1.05/(n+.05)>(n+.05)/.05?"#FFFFFF":"#000000"}return"color(from "+e+" srgb"+n+n+n+")"}button(e,t,n,r,o={},i,a,l,s,c){let u=this.label(e,t,n,s,void 0,void 0,c,void 0,"button"),d=this.styledMode,h=arguments,p=0;o=Ce(Vt.global.buttonTheme,o),d&&(delete o.fill,delete o.stroke,delete o["stroke-width"]);let f=o.states||{},m=o.style||{};delete o.states,delete o.style;let g=[pt.filterUserAttributes(o)],y=[m];return d||["hover","select","disabled"].forEach((e,t)=>{g.push(Ce(g[0],pt.filterUserAttributes(h[t+5]||f[e]||{}))),y.push(g[t+1].style),delete g[t+1].style}),V(u.element,Yt?"mouseover":"mouseenter",function(){3!==p&&u.setState(1)}),V(u.element,Yt?"mouseout":"mouseleave",function(){3!==p&&u.setState(p)}),u.setState=(e=0)=>{if(1!==e&&(u.state=p=e),u.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][e]),!d){u.attr(g[e]);let t=y[e];we(t)&&u.css(t)}},u.attr(g[0]),!d&&(u.css(ie({cursor:"default"},m)),c&&u.text.css({pointerEvents:"none"})),u.on("touchstart",e=>e.stopPropagation()).on("click",function(e){3!==p&&(null==r||r.call(u,e))})}crispLine(e,t){let[n,r]=e;return ee(n[1])&&n[1]===r[1]&&(n[1]=r[1]=Q(n[1],t)),ee(n[2])&&n[2]===r[2]&&(n[2]=r[2]=Q(n[2],t)),e}path(e){let t=this.styledMode?{}:{fill:"none"};return be(e)?t.d=e:we(e)&&ie(t,e),this.createElement("path").attr(t)}circle(e,t,n){let r=we(e)?e:void 0===e?{}:{x:e,y:t,r:n},o=this.createElement("circle");return o.xSetter=o.ySetter=function(e,t,n){n.setAttribute("c"+t,e)},o.attr(r)}arc(e,t,n,r,o,i){let a;we(e)?(t=(a=e).y,n=a.r,r=a.innerR,o=a.start,i=a.end,e=a.x):a={innerR:r,start:o,end:i};let l=this.symbol("arc",e,t,n,n,a);return l.r=n,l}rect(e,t,n,r,o,i){let a=we(e)?e:void 0===e?{}:{x:e,y:t,r:o,width:Math.max(n||0,0),height:Math.max(r||0,0)},l=this.createElement("rect");return this.styledMode||(void 0!==i&&(a["stroke-width"]=i,ie(a,l.crisp(a))),a.fill="none"),l.rSetter=function(e,t,n){l.r=e,X(n,{rx:e,ry:e})},l.rGetter=function(){return l.r||0},l.attr(a)}roundedRect(e){return this.symbol("roundedRect").attr(e)}setSize(e,t,n){this.width=e,this.height=t,this.boxWrapper.animate({width:e,height:t},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:Te(n,!0)?void 0:0}),this.alignElements()}g(e){let t=this.createElement("g");return e?t.attr({class:"highcharts-"+e}):t}image(e,t,n,r,o,i){let a={preserveAspectRatio:"none"};ye(t)&&(a.x=t),ye(n)&&(a.y=n),ye(r)&&(a.width=r),ye(o)&&(a.height=o);let l=this.createElement("image").attr(a),s=function(t){l.attr({href:e}),i.call(l,t)};if(i){l.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let t=new tn.Image;V(t,"load",s),t.src=e,t.complete&&s({})}else l.attr({href:e});return l}symbol(e,t,n,r,o,i){var a,l;let s,c,u,d,h=this,p=/^url\((.*?)\)$/,f=p.test(e),m=!f&&(this.symbols[e]?e:"circle"),g=m&&this.symbols[m];if(g)"number"==typeof t&&(c=g.call(this.symbols,t||0,n||0,r||0,o||0,i)),s=this.path(c),h.styledMode||s.attr("fill","none"),ie(s,{symbolName:m||void 0,x:t,y:n,width:r,height:o}),i&&ie(s,i);else if(f){u=e.match(p)[1];let r=s=this.image(u);r.imgwidth=Te(null==i?void 0:i.width,null==(a=en[u])?void 0:a.width),r.imgheight=Te(null==i?void 0:i.height,null==(l=en[u])?void 0:l.height),d=e=>e.attr({width:e.width,height:e.height}),["width","height"].forEach(e=>{r[`${e}Setter`]=function(e,t){this[t]=e;let{alignByTranslate:n,element:r,width:o,height:a,imgwidth:l,imgheight:s}=this,c="width"===t?l:s,u=1;i&&"within"===i.backgroundSize&&o&&a&&l&&s?(u=Math.min(o/l,a/s),X(r,{width:Math.round(l*u),height:Math.round(s*u)})):r&&c&&r.setAttribute(t,c),!n&&l&&s&&this.translate(((o||0)-l*u)/2,((a||0)-s*u)/2)}}),ee(t)&&r.attr({x:t,y:n}),r.isImg=!0,ee(r.imgwidth)&&ee(r.imgheight)?d(r):(r.attr({width:0,height:0}),Z("img",{onload:function(){let e=Gt[h.chartIndex];0===this.width&&(J(this,{position:"absolute",top:"-999em"}),Xt.body.appendChild(this)),en[u]={width:this.width,height:this.height},r.imgwidth=this.width,r.imgheight=this.height,r.element&&d(r),this.parentNode&&this.parentNode.removeChild(this),h.asyncCounter--,h.asyncCounter||!e||e.hasLoaded||e.onload()},src:u}),this.asyncCounter++)}return s}clipRect(e,t,n,r){return this.rect(e,t,n,r,0)}text(e,t,n,r){let o={};if(r&&(this.allowHTML||!this.forExport))return this.html(e,t,n);o.x=Math.round(t||0),n&&(o.y=Math.round(n)),ee(e)&&(o.text=e);let i=this.createElement("text").attr(o);return r&&(!this.forExport||this.allowHTML)||(i.xSetter=function(e,t,n){let r=n.getElementsByTagName("tspan"),o=n.getAttribute(t);for(let n,i=0;i<r.length;i++)(n=r[i]).getAttribute(t)===o&&n.setAttribute(t,e);n.setAttribute(t,e)}),i}fontMetrics(e){let t=ye(e)?e:Me(Rt.prototype.getStyle.call(e,"font-size")||0),n=t<24?t+3:Math.round(1.2*t);return{h:n,b:Math.round(.8*n),f:t}}rotCorr(e,t,n){let r=e;return t&&n&&(r=Math.max(r*Math.cos(t*qt),4)),{x:-e/3*Math.sin(t*qt),y:r}}pathToSegments(e){let t=[],n=[],r={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let o=0;o<e.length;o++)ve(n[0])&&ye(e[o])&&n.length===r[n[0].toUpperCase()]&&e.splice(o,0,n[0].replace("M","L").replace("m","l")),"string"==typeof e[o]&&(n.length&&t.push(n.slice(0)),n.length=0),n.push(e[o]);return t.push(n.slice(0)),t}label(e,t,n,r,o,i,a,l,s){return new Lt(this,e,t,n,r,o,i,a,l,s)}alignElements(){this.alignedObjects.forEach(e=>e.align())}}ie(nn.prototype,{Element:Rt,SVG_NS:Jt,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:jt,draw:Qt}),Ct.registerRendererType("svg",nn,!0);let{composed:rn,isFirefox:on}=_;function an(e,t,n){var r;let o=null==(r=this.div)?void 0:r.style;Rt.prototype[`${t}Setter`].call(this,e,t,n),o&&(n.style[t]=o[t]=e)}let ln=(e,t)=>{var n;if(!e.div){let r=X(e.element,"class"),o=e.css,i=Z("div",r?{className:r}:void 0,{position:"absolute",left:`${e.translateX||0}px`,top:`${e.translateY||0}px`,...e.styles,display:e.display,opacity:e.opacity,visibility:e.visibility},(null==(n=e.parentGroup)?void 0:n.div)||t);e.classSetter=(e,t,n)=>{n.setAttribute("class",e),i.className=e},e.translateXSetter=e.translateYSetter=(t,n)=>{e[n]=t,i.style["translateX"===n?"left":"top"]=`${t}px`,e.doTransform=!0},e.scaleXSetter=e.scaleYSetter=(t,n)=>{e[n]=t,e.doTransform=!0},e.opacitySetter=e.visibilitySetter=an,e.css=t=>(o.call(e,t),t.cursor&&(i.style.cursor=t.cursor),t.pointerEvents&&(i.style.pointerEvents=t.pointerEvents),e),e.on=function(){return Rt.prototype.on.apply({element:i,onEvents:e.onEvents},arguments),e},e.div=i}return e.div};class sn extends Rt{static compose(e){Pe(rn,this.compose)&&(e.prototype.html=function(e,t,n){return new sn(this,"span").attr({text:e,x:Math.round(t),y:Math.round(n)})})}constructor(e,t){super(e,t),sn.useForeignObject?this.foreignObject=e.createElement("foreignObject").attr({zIndex:2}):this.css({position:"absolute",...e.styledMode?{}:{fontFamily:e.style.fontFamily,fontSize:e.style.fontSize}}),this.element.style.whiteSpace="nowrap"}getSpanCorrection(e,t,n){this.xCorr=-e*n,this.yCorr=-t}css(e){let t,{element:n}=this,r="SPAN"===n.tagName&&e&&"width"in e,o=r&&e.width;return r&&(delete e.width,this.textWidth=Me(o)||void 0,t=!0),"ellipsis"===(null==e?void 0:e.textOverflow)&&(e.overflow="hidden",e.whiteSpace="nowrap"),(null==e?void 0:e.lineClamp)&&(e.display="-webkit-box",e.WebkitLineClamp=e.lineClamp,e.WebkitBoxOrient="vertical",e.overflow="hidden"),ye(Number(null==e?void 0:e.fontSize))&&(e.fontSize+="px"),ie(this.styles,e),J(n,e),t&&this.updateTransform(),this}htmlGetBBox(){let{element:e}=this;return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}updateTransform(){var e;if(!this.added)return void(this.alignOnAdd=!0);let{element:t,foreignObject:n,oldTextWidth:r,renderer:o,rotation:i,rotationOriginX:a,rotationOriginY:l,scaleX:s,scaleY:c,styles:{display:u="inline-block",whiteSpace:d},textAlign:h="left",textWidth:p,translateX:f=0,translateY:m=0,x:g=0,y:y=0}=this,v=()=>this.textPxLength?this.textPxLength:(J(t,{width:"",whiteSpace:d||"nowrap"}),t.offsetWidth);if(n||J(t,{marginLeft:`${f}px`,marginTop:`${m}px`}),"SPAN"===t.tagName){let f,m=[i,h,t.innerHTML,p,this.textAlign].join(","),b=-1*(null==(e=this.parentGroup)?void 0:e.padding)||0;if(p!==r){let e=v(),n=p||0,a=!o.styledMode&&""===t.style.textOverflow&&t.style.webkitLineClamp;(n>r||e>n||a)&&(/[\-\s\u00AD]/.test(t.textContent||t.innerText)||"ellipsis"===t.style.textOverflow)&&(J(t,{width:(i||s||e>n)&&ye(p)?p+"px":a?Math.min(e+1,n)+"px":"auto",display:u,whiteSpace:d||"normal"}),this.oldTextWidth=p)}n&&(J(t,{display:"inline-block",verticalAlign:"top"}),n.attr({width:o.width,height:o.height})),m!==this.cTT&&(f=o.fontMetrics(t).b,ee(i)&&!n&&(i!==(this.oldRotation||0)||h!==this.oldAlign)&&J(t,{transform:`rotate(${i}deg)`,transformOrigin:`${b}% ${b}px`}),this.getSpanCorrection(!ee(i)&&!this.textWidth&&this.textPxLength||t.offsetWidth,f,se(h)));let{xCorr:x=0,yCorr:w=0}=this,C={left:`${g+x}px`,top:`${y+w}px`,textAlign:h,transformOrigin:`${(a??g)-x-g-b}px ${(l??y)-w-y-b}px`};(s||c)&&(C.transform=`scale(${s??1},${c??1})`),n?(super.updateTransform(),ye(g)&&ye(y)?(n.attr({x:g+x,y:y+w,width:t.offsetWidth+3,height:t.offsetHeight,"transform-origin":t.getAttribute("transform-origin")||"0 0"}),J(t,{display:u,textAlign:h})):on&&n.attr({width:0,height:0})):J(t,C),this.cTT=m,this.oldRotation=i,this.oldAlign=h}}add(e){let{foreignObject:t,renderer:n}=this,r=n.box.parentNode,o=[];if(t)t.add(e),super.add(n.createElement("body").attr({xmlns:"http://www.w3.org/1999/xhtml"}).css({background:"transparent",margin:"0 3px 0 0"}).add(t));else{let t;if(this.parentGroup=e,e&&!(t=e.div)){let n=e;for(;n;)o.push(n),n=n.parentGroup;for(let e of o.reverse())t=ln(e,r)}(t||r).appendChild(this.element)}return this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(e){e!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,pt.setElementHTML(this.element,e??""),this.textStr=e,this.doTransform=!0)}alignSetter(e){this.alignValue=this.textAlign=e,this.doTransform=!0}xSetter(e,t){this[t]=e,this.doTransform=!0}}let cn=sn.prototype;cn.visibilitySetter=cn.opacitySetter=an,cn.ySetter=cn.rotationSetter=cn.rotationOriginXSetter=cn.rotationOriginYSetter=cn.xSetter,(g=$||($={})).xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%[HMSL]",range:!1},second:{main:"%[HMS]",range:!1},minute:{main:"%[HM]",range:!1},hour:{main:"%[HM]",range:!1},day:{main:"%[eb]"},week:{main:"%[eb]"},month:{main:"%[bY]"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em",textOverflow:"ellipsis"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",title:{align:"middle",useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},g.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return this.axis.chart.numberFormatter(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};let un=$;(T||(T={})).registerEventOptions=function(e,t){e.eventOptions=e.eventOptions||{},Se(t.events,function(t,n){e.eventOptions[n]!==t&&(e.eventOptions[n]&&(Oe(e,n,e.eventOptions[n]),delete e.eventOptions[n]),xe(t)&&(e.eventOptions[n]=t,V(e,n,t,{order:0})))})};let dn=T,{deg2rad:hn}=_,pn=class{constructor(e,t,n,r,o){this.isNew=!0,this.isNewLabel=!0,this.axis=e,this.pos=t,this.type=n||"",this.parameters=o||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,le(this,"init"),n||r||this.addLabel()}addLabel(){var e,t;let n,r,o,i=this,a=i.axis,l=a.options,s=a.chart,c=a.categories,u=a.logarithmic,d=a.names,h=i.pos,p=Te(null==(e=i.options)?void 0:e.labels,l.labels),f=a.tickPositions,m=h===f[0],g=h===f[f.length-1],y=(!p.step||1===p.step)&&1===a.tickInterval,v=f.info,b=i.label,x=this.parameters.category||(c?Te(c[h],d[h],h):h);u&&ye(x)&&(x=Y(u.lin2log(x))),a.dateTime&&(v?n=(r=s.time.resolveDTLFormat(l.dateTimeLabelFormats[!(null==(t=l.grid)?void 0:t.enabled)&&v.higherRanks[h]||v.unitName])).main:ye(x)&&(n=a.dateTime.getXDateFormat(x,l.dateTimeLabelFormats||{}))),i.isFirst=m,i.isLast=g;let w={axis:a,chart:s,dateTimeLabelFormat:n,isFirst:m,isLast:g,pos:h,tick:i,tickPositionInfo:v,value:x};le(this,"labelFormat",w);let C=e=>p.formatter?p.formatter.call(e,e):p.format?(e.text=a.defaultLabelFormatter.call(e),wt.format(p.format,e,s)):a.defaultLabelFormatter.call(e),k=C.call(w,w),S=null==r?void 0:r.list;i.shortenLabel=S?function(){for(o=0;o<S.length;o++)if(ie(w,{dateTimeLabelFormat:S[o]}),b.attr({text:C.call(w,w)}),b.getBBox().width<a.getSlotWidth(i)-2*(p.padding||0))return;b.attr({text:""})}:void 0,y&&a._addedPlotLB&&i.moveLabel(k,p),ee(b)||i.movedLabel?b&&b.textStr!==k&&!y&&(!b.textWidth||p.style.width||b.styles.width||b.css({width:null}),b.attr({text:k}),b.textPxLength=b.getBBox().width):(i.label=b=i.createLabel(k,p),i.rotation=0)}createLabel(e,t,n){let r=this.axis,{renderer:o,styledMode:i}=r.chart,a=t.style.whiteSpace,l=ee(e)&&t.enabled?o.text(e,null==n?void 0:n.x,null==n?void 0:n.y,t.useHTML).add(r.labelGroup):void 0;return l&&(i||l.css(Ce(t.style)),l.textPxLength=l.getBBox().width,!i&&a&&l.css({whiteSpace:a})),l}destroy(){te(this,this.axis)}getPosition(e,t,n,r){let o=this.axis,i=o.chart,a=r&&i.oldChartHeight||i.chartHeight,l={x:e?Y(o.translate(t+n,void 0,void 0,r)+o.transB):o.left+o.offset+(o.opposite?(r&&i.oldChartWidth||i.chartWidth)-o.right-o.left:0),y:e?a-o.bottom+o.offset-(o.opposite?o.height:0):Y(a-o.translate(t+n,void 0,void 0,r)-o.transB)};return l.y=U(l.y,-1e9,1e9),le(this,"afterGetPosition",{pos:l}),l}getLabelPosition(e,t,n,r,o,i,a,l){let s,c,u=this.axis,d=u.transA,h=u.isLinked&&u.linkedParent?u.linkedParent.reversed:u.reversed,p=u.staggerLines,f=u.tickRotCorr||{x:0,y:0},m=r||u.reserveSpaceDefault?0:-u.labelOffset*("center"===u.labelAlign?.5:1),g=o.distance,y={};return s=0===u.side?n.rotation?-g:-n.getBBox().height:2===u.side?f.y+g:Math.cos(n.rotation*hn)*(f.y-n.getBBox(!1,0).height/2),ee(o.y)&&(s=0===u.side&&u.horiz?o.y+s:o.y),e=e+Te(o.x,[0,1,0,-1][u.side]*g)+m+f.x-(i&&r?i*d*(h?-1:1):0),t=t+s-(i&&!r?i*d*(h?1:-1):0),p&&(c=a/(l||1)%p,u.opposite&&(c=p-c-1),t+=c*(u.labelOffset/p)),y.x=e,y.y=Math.round(t),le(this,"afterGetLabelPosition",{pos:y,tickmarkOffset:i,index:a}),y}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(e,t,n,r,o=!1,i){return i.crispLine([["M",e,t],["L",e+(o?0:-n),t+(o?n:0)]],r)}handleOverflow(e){var t;let n,r=this.axis,o=r.options.labels,i=e.x,a=r.chart.chartWidth,l=r.chart.spacing,s=Te(r.labelLeft,Math.min(r.pos,l[3])),c=Te(r.labelRight,Math.max(r.isRadial?0:r.pos+r.len,a-l[1])),u=this.label,d=this.rotation,h=se(r.labelAlign||u.attr("align")),p=u.getBBox().width,f=r.getSlotWidth(this),m=f,g=1;d||"justify"!==o.overflow?d<0&&i-h*p<s?n=Math.round(i/Math.cos(d*hn)-s):d>0&&i+h*p>c&&(n=Math.round((a-i)/Math.cos(d*hn))):(i-h*p<s?m=e.x+m*(1-h)-s:i+(1-h)*p>c&&(m=c-e.x+m*h,g=-1),(m=Math.min(f,m))<f&&"center"===r.labelAlign&&(e.x+=g*(f-m-h*(f-Math.min(p,m)))),(p>m||r.autoRotation&&(null==(t=null==u?void 0:u.styles)?void 0:t.width))&&(n=m)),n&&u&&(this.shortenLabel?this.shortenLabel():u.css(ie({},{width:Math.floor(n)+"px",lineClamp:+!r.isRadial})))}moveLabel(e,t){let n,r=this,o=r.label,i=r.axis,a=!1;o&&o.textStr===e?(r.movedLabel=o,a=!0,delete r.label):Se(i.ticks,function(t){a||t.isNew||t===r||!t.label||t.label.textStr!==e||(r.movedLabel=t.label,a=!0,t.labelPos=r.movedLabel.xy,delete t.label)}),!a&&(r.labelPos||o)&&(n=r.labelPos||o.xy,r.movedLabel=r.createLabel(e,t,n),r.movedLabel&&r.movedLabel.attr({opacity:0}))}render(e,t,n){var r;let o=this.axis,i=o.horiz,a=this.pos,l=Te(this.tickmarkOffset,o.tickmarkOffset),s=this.getPosition(i,a,l,t),c=s.x,u=s.y,d=o.pos,h=d+o.len,p=i?c:u,f=Te(n,null==(r=this.label)?void 0:r.newOpacity,1);!o.chart.polar&&(Y(p)<d||p>h)&&(n=0),n??(n=1),this.isActive=!0,this.renderGridLine(t,n),this.renderMark(s,n),this.renderLabel(s,t,f,e),this.isNew=!1,le(this,"afterRender")}renderGridLine(e,t){let n,r=this.axis,o=r.options,i={},a=this.pos,l=this.type,s=Te(this.tickmarkOffset,r.tickmarkOffset),c=r.chart.renderer,u=this.gridLine,d=o.gridLineWidth,h=o.gridLineColor,p=o.gridLineDashStyle;"minor"===this.type&&(d=o.minorGridLineWidth,h=o.minorGridLineColor,p=o.minorGridLineDashStyle),u||(r.chart.styledMode||(i.stroke=h,i["stroke-width"]=d||0,i.dashstyle=p),l||(i.zIndex=1),e&&(t=0),this.gridLine=u=c.path().attr(i).addClass("highcharts-"+(l?l+"-":"")+"grid-line").add(r.gridGroup)),u&&(n=r.getPlotLinePath({value:a+s,lineWidth:u.strokeWidth(),force:"pass",old:e,acrossPanes:!1}))&&u[e||this.isNew?"attr":"animate"]({d:n,opacity:t})}renderMark(e,t){let n=this.axis,r=n.options,o=n.chart.renderer,i=this.type,a=n.tickSize(i?i+"Tick":"tick"),l=e.x,s=e.y,c=Te(r["minor"!==i?"tickWidth":"minorTickWidth"],!i&&n.isXAxis?1:0),u=r["minor"!==i?"tickColor":"minorTickColor"],d=this.mark,h=!d;a&&(n.opposite&&(a[0]=-a[0]),!d&&(this.mark=d=o.path().addClass("highcharts-"+(i?i+"-":"")+"tick").add(n.axisGroup),n.chart.styledMode||d.attr({stroke:u,"stroke-width":c})),d[h?"attr":"animate"]({d:this.getMarkPath(l,s,a[0],d.strokeWidth(),n.horiz,o),opacity:t}))}renderLabel(e,t,n,r){let o=this.axis,i=o.horiz,a=o.options,l=this.label,s=a.labels,c=s.step,u=Te(this.tickmarkOffset,o.tickmarkOffset),d=e.x,h=e.y,p=!0;l&&ye(d)&&(l.xy=e=this.getLabelPosition(d,h,l,i,s,u,r,c),this.isFirst&&!this.isLast&&!a.showFirstLabel||this.isLast&&!this.isFirst&&!a.showLastLabel?p=!1:i&&!t&&0!==n&&this.handleOverflow(e),c&&r%c&&(p=!1),p&&ye(e.y)?(e.opacity=n,l[this.isNewLabel?"attr":"animate"](e).show(!0),this.isNewLabel=!1):(l.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let e=this.label,t=this.axis;e&&!this.isNew&&(e.animate({opacity:0},void 0,e.destroy),delete this.label),t.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}},{animObject:fn}=lt,{xAxis:mn,yAxis:gn}=un,{defaultOptions:yn}=Ze,{registerEventOptions:vn}=dn,{deg2rad:bn}=_,xn=(e,t)=>ke(t,void 0,void 0,Te(e.options.allowDecimals,t<.5||void 0!==e.tickAmount),!!e.tickAmount);ie(yn,{xAxis:mn,yAxis:Ce(mn,gn)});class wn{constructor(e,t,n){this.init(e,t,n)}init(e,t,n=this.coll){let r="xAxis"===n,o=this.isZAxis||(e.inverted?!r:r);this.chart=e,this.horiz=o,this.isXAxis=r,this.coll=n,le(this,"init",{userOptions:t}),this.opposite=Te(t.opposite,this.opposite),this.side=Te(t.side,this.side,o?2*!this.opposite:this.opposite?1:3),this.setOptions(t);let i=this.options,a=i.labels;this.type??(this.type=i.type||"linear"),this.uniqueNames??(this.uniqueNames=i.uniqueNames??!0),le(this,"afterSetType"),this.userOptions=t,this.minPixelPadding=0,this.reversed=Te(i.reversed,this.reversed),this.visible=i.visible,this.zoomEnabled=i.zoomEnabled,this.hasNames="category"===this.type||!0===i.categories,this.categories=be(i.categories)&&i.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=ee(i.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len??(this.len=0),this.minRange=this.userMinRange=i.minRange||i.maxZoom,this.range=i.range,this.offset=i.offset||0,this.max=void 0,this.min=void 0;let l=Te(i.crosshair,Ae(e.options.tooltip.crosshairs)[+!r]);this.crosshair=!0===l?{}:l,-1===e.axes.indexOf(this)&&(r?e.axes.splice(e.xAxis.length,0,this):e.axes.push(this),Fe(this,e[this.coll])),e.orderItems(this.coll),this.series=this.series||[],e.inverted&&!this.isZAxis&&r&&!ee(this.reversed)&&(this.reversed=!0),this.labelRotation=ye(a.rotation)?a.rotation:void 0,vn(this,i),le(this,"afterInit")}setOptions(e){let t=this.horiz?{labels:{autoRotation:[-45],padding:3},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=Ce(t,"yAxis"===this.coll?{title:{text:this.chart.options.lang.yAxisTitle}}:{},yn[this.coll],e),le(this,"afterSetOptions",{userOptions:e})}defaultLabelFormatter(){let e,t,n=this.axis,r=this.chart,{numberFormatter:o}=r,i=ye(this.value)?this.value:NaN,a=n.chart.time,l=n.categories,s=this.dateTimeLabelFormat,c=yn.lang,u=c.numericSymbols,d=c.numericSymbolMagnitude||1e3,h=n.logarithmic?Math.abs(i):n.tickInterval,p=null==u?void 0:u.length;if(l)t=`${this.value}`;else if(s)t=a.dateFormat(s,i,!0);else if(p&&u&&h>=1e3)for(;p--&&void 0===t;)h>=(e=Math.pow(d,p+1))&&10*i%e==0&&null!==u[p]&&0!==i&&(t=o(i/e,-1,void 0,void 0,r)+u[p]);return t??(t=o(i,-1,void 0,1e4>Math.abs(i)?"":void 0,r)),t}getSeriesExtremes(){let e,t=this;le(this,"getSeriesExtremes",null,function(){t.hasVisibleSeries=!1,t.dataMin=t.dataMax=t.threshold=void 0,t.softThreshold=!t.isXAxis,t.series.forEach(n=>{if(n.reserveSpace()){let r,o,i,a=n.options,l=a.threshold;if(t.hasVisibleSeries=!0,t.positiveValuesOnly&&0>=(l||0)&&(l=void 0),t.isXAxis)(r=n.getColumn("x")).length&&(r=t.logarithmic?r.filter(e=>e>0):r,o=(e=n.getXExtremes(r)).min,i=e.max,ye(o)||o instanceof Date||(r=r.filter(ye),o=(e=n.getXExtremes(r)).min,i=e.max),r.length&&(t.dataMin=Math.min(Te(t.dataMin,o),o),t.dataMax=Math.max(Te(t.dataMax,i),i)));else{let e=n.applyExtremes();ye(e.dataMin)&&(o=e.dataMin,t.dataMin=Math.min(Te(t.dataMin,o),o)),ye(e.dataMax)&&(i=e.dataMax,t.dataMax=Math.max(Te(t.dataMax,i),i)),ee(l)&&(t.threshold=l),(!a.softThreshold||t.positiveValuesOnly)&&(t.softThreshold=!1)}}})}),le(this,"afterGetSeriesExtremes")}translate(e,t,n,r,o,i){var a;let l=this.linkedParent||this,s=r&&l.old?l.old.min:l.min;if(!ye(s))return NaN;let c=l.minPixelPadding,u=(l.isOrdinal||(null==(a=l.brokenAxis)?void 0:a.hasBreaks)||l.logarithmic&&o)&&!!l.lin2val,d=1,h=0,p=r&&l.old?l.old.transA:l.transA,f=0;return p||(p=l.transA),n&&(d*=-1,h=l.len),l.reversed&&(d*=-1,h-=d*(l.sector||l.len)),t?(f=(e=e*d+h-c)/p+s,u&&(f=l.lin2val(f))):(u&&(e=l.val2lin(e)),f=d*(e-s)*p+h+d*c+(ye(i)?p*i:0),l.isRadial||(f=Y(f))),f}toPixels(e,t){var n;return this.translate((null==(n=this.chart)?void 0:n.time.parse(e))??NaN,!1,!this.horiz,void 0,!0)+(t?0:this.pos)}toValue(e,t){return this.translate(e-(t?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(e){let t,n,r,o,i,a=this,l=a.chart,s=a.left,c=a.top,u=e.old,d=e.value,h=e.lineWidth,p=u&&l.oldChartHeight||l.chartHeight,f=u&&l.oldChartWidth||l.chartWidth,m=a.transB,g=e.translatedValue,y=e.force;function v(e,t,n){return"pass"!==y&&(e<t||e>n)&&(y?e=U(e,t,n):i=!0),e}let b={value:d,lineWidth:h,old:u,force:y,acrossPanes:e.acrossPanes,translatedValue:g};return le(this,"getPlotLinePath",b,function(e){t=r=(g=U(g=Te(g,a.translate(d,void 0,void 0,u)),-1e9,1e9))+m,n=o=p-g-m,ye(g)?a.horiz?(n=c,o=p-a.bottom+(a.options.isInternal?0:l.scrollablePixelsY||0),t=r=v(t,s,s+a.width)):(t=s,r=f-a.right+(l.scrollablePixelsX||0),n=o=v(n,c,c+a.height)):(i=!0,y=!1),e.path=i&&!y?void 0:l.renderer.crispLine([["M",t,n],["L",r,o]],h||1)}),b.path}getLinearTickPositions(e,t,n){let r,o,i,a=Y(Math.floor(t/e)*e),l=Y(Math.ceil(n/e)*e),s=[];if(Y(a+e)===a&&(i=20),this.single)return[t];for(r=a;r<=l&&(s.push(r),(r=Y(r+e,i))!==o);)o=r;return s}getMinorTickInterval(){let{minorTicks:e,minorTickInterval:t}=this.options;return!0===e?Te(t,"auto"):!1!==e?t:void 0}getMinorTickPositions(){var e;let t,n=this.options,r=this.tickPositions,o=this.minorTickInterval,i=this.pointRangePadding||0,a=(this.min||0)-i,l=(this.max||0)+i,s=(null==(e=this.brokenAxis)?void 0:e.hasBreaks)?this.brokenAxis.unitLength:l-a,c=[];if(s&&s/o<this.len/3){let e=this.logarithmic;if(e)this.paddedTicks.forEach(function(t,n,r){n&&c.push.apply(c,e.getLogTickPositions(o,r[n-1],r[n],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())c=c.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(o),a,l,n.startOfWeek));else for(t=a+(r[0]-a)%o;t<=l&&t!==c[0];t+=o)c.push(t)}return 0!==c.length&&this.trimTicks(c),c}adjustForMinRange(){let e,t,n,r,o=this.options,i=this.logarithmic,a=this.chart.time,{max:l,min:s,minRange:c}=this;this.isXAxis&&void 0===c&&!i&&(c=ee(o.min)||ee(o.max)||ee(o.floor)||ee(o.ceiling)?null:Math.min(5*(ce(this.series.map(e=>{let t=e.getColumn("x");return e.xIncrement?t.slice(0,2):t}))||0),this.dataMax-this.dataMin)),ye(l)&&ye(s)&&ye(c)&&l-s<c&&(t=this.dataMax-this.dataMin>=c,e=(c-l+s)/2,n=[s-e,a.parse(o.min)??s-e],t&&(n[2]=i?i.log2lin(this.dataMin):this.dataMin),r=[(s=q(n))+c,a.parse(o.max)??s+c],t&&(r[2]=i?i.log2lin(this.dataMax):this.dataMax),(l=G(r))-s<c&&(n[0]=l-c,n[1]=a.parse(o.min)??l-c,s=q(n))),this.minRange=c,this.min=s,this.max=l}getClosest(){let e,t;if(this.categories)t=1;else{let n=[];this.series.forEach(function(e){let r=e.closestPointRange,o=e.getColumn("x");1===o.length?n.push(o[0]):e.sorted&&ee(r)&&e.reserveSpace()&&(t=ee(t)?Math.min(t,r):r)}),n.length&&(n.sort((e,t)=>e-t),e=ce([n]))}return e&&t?Math.min(e,t):e||t}nameToX(e){let t,n=be(this.options.categories),r=n?this.categories:this.names,o=e.options.x;return e.series.requireSorting=!1,ee(o)||(o=this.uniqueNames&&r?n?r.indexOf(e.name):Te(r.keys[e.name],-1):e.series.autoIncrement()),-1===o?!n&&r&&(t=r.length):ye(o)&&(t=o),void 0!==t?(this.names[t]=e.name,this.names.keys[e.name]=t):e.x&&(t=e.x),t}updateNames(){let e=this,t=this.names;t.length>0&&(Object.keys(t.keys).forEach(function(e){delete t.keys[e]}),t.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(t=>{t.xIncrement=null,(!t.points||t.isDirtyData)&&(e.max=Math.max(e.max||0,t.dataTable.rowCount-1),t.processData(),t.generatePoints());let n=t.getColumn("x").slice();t.data.forEach((t,r)=>{let o=n[r];(null==t?void 0:t.options)&&void 0!==t.name&&void 0!==(o=e.nameToX(t))&&o!==t.x&&(n[r]=t.x=o)}),t.dataTable.setColumn("x",n)}))}setAxisTranslation(){var e;let t,n,r=this,o=r.max-r.min,i=r.linkedParent,a=!!r.categories,l=r.isXAxis,s=r.axisPointRange||0,c=0,u=0,d=r.transA;(l||a||s)&&(t=r.getClosest(),i?(c=i.minPointOffset,u=i.pointRangePadding):r.series.forEach(function(e){let n=a?1:l?Te(e.options.pointRange,t,0):r.axisPointRange||0,o=e.options.pointPlacement;if(s=Math.max(s,n),!r.single||a){let t=e.is("xrange")?!l:l;c=Math.max(c,t&&ve(o)?0:n/2),u=Math.max(u,t&&"on"===o?0:n)}}),n=(null==(e=r.ordinal)?void 0:e.slope)&&t?r.ordinal.slope/t:1,r.minPointOffset=c*=n,r.pointRangePadding=u*=n,r.pointRange=Math.min(s,r.single&&a?1:o),l&&(r.closestPointRange=t)),r.translationSlope=r.transA=d=r.staticScale||r.len/(o+u||1),r.transB=r.horiz?r.left:r.bottom,r.minPixelPadding=d*c,le(this,"afterSetAxisTranslation")}minFromRange(){let{max:e,min:t}=this;return ye(e)&&ye(t)&&e-t||void 0}setTickInterval(e){var t,n,r,o;let i,a,l,s,c,{categories:u,chart:d,dataMax:h,dataMin:p,dateTime:f,isXAxis:m,logarithmic:g,options:y,softThreshold:v}=this,b=d.time,x=ye(this.threshold)?this.threshold:void 0,w=this.minRange||0,{ceiling:C,floor:k,linkedTo:S,softMax:E,softMin:$}=y,T=ye(S)&&(null==(t=d[this.coll])?void 0:t[S]),M=y.tickPixelInterval,P=y.maxPadding,N=y.minPadding,I=0,O=ye(y.tickInterval)&&y.tickInterval>=0?y.tickInterval:void 0;if(f||u||T||this.getTickAmount(),s=Te(this.userMin,b.parse(y.min)),c=Te(this.userMax,b.parse(y.max)),T?(this.linkedParent=T,i=T.getExtremes(),this.min=Te(i.min,i.dataMin),this.max=Te(i.max,i.dataMax),this.type!==T.type&&je(11,!0,d)):(v&&ee(x)&&ye(h)&&ye(p)&&(p>=x?(a=x,N=0):h<=x&&(l=x,P=0)),this.min=Te(s,a,p),this.max=Te(c,l,h)),ye(this.max)&&ye(this.min)&&(g&&(this.positiveValuesOnly&&!e&&0>=Math.min(this.min,Te(p,this.min))&&je(10,!0,d),this.min=Y(g.log2lin(this.min),16),this.max=Y(g.log2lin(this.max),16)),this.range&&ye(p)&&(this.userMin=this.min=s=Math.max(p,this.minFromRange()||0),this.userMax=c=this.max,this.range=void 0)),le(this,"foundExtremes"),this.adjustForMinRange(),ye(this.min)&&ye(this.max)){if(!ye(this.userMin)&&ye($)&&$<this.min&&(this.min=s=$),!ye(this.userMax)&&ye(E)&&E>this.max&&(this.max=c=E),u||this.axisPointRange||(null==(n=this.stacking)?void 0:n.usePercentage)||T||(I=this.max-this.min)&&(!ee(s)&&N&&(this.min-=I*N),!ee(c)&&P&&(this.max+=I*P)),!ye(this.userMin)&&ye(k)&&(this.min=Math.max(this.min,k)),!ye(this.userMax)&&ye(C)&&(this.max=Math.min(this.max,C)),v&&ye(p)&&ye(h)){let e=x||0;!ee(s)&&this.min<e&&p>=e?this.min=y.minRange?Math.min(e,this.max-w):e:!ee(c)&&this.max>e&&h<=e&&(this.max=y.minRange?Math.max(e,this.min+w):e)}!d.polar&&this.min>this.max&&(ee(y.min)?this.max=this.min:ee(y.max)&&(this.min=this.max)),I=this.max-this.min}if(this.min!==this.max&&ye(this.min)&&ye(this.max)?T&&!O&&M===T.options.tickPixelInterval?this.tickInterval=O=T.tickInterval:this.tickInterval=Te(O,this.tickAmount?I/Math.max(this.tickAmount-1,1):void 0,u?1:I*M/Math.max(this.len,M)):this.tickInterval=1,m&&!e){let e=this.min!==(null==(r=this.old)?void 0:r.min)||this.max!==(null==(o=this.old)?void 0:o.max);this.series.forEach(function(t){var n;t.forceCrop=null==(n=t.forceCropping)?void 0:n.call(t),t.processData(e)}),le(this,"postProcessData",{hasExtremesChanged:e})}this.setAxisTranslation(),le(this,"initialAxisTranslation"),this.pointRange&&!O&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let A=Te(y.minTickInterval,f&&!this.series.some(e=>!e.sorted)?this.closestPointRange:0);!O&&A&&this.tickInterval<A&&(this.tickInterval=A),f||g||O||(this.tickInterval=xn(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){var e,t,n;let r,o=this.options,i=o.tickPositions,a=o.tickPositioner,l=this.getMinorTickInterval(),s=!this.isPanning,c=s&&o.startOnTick,u=s&&o.endOnTick,d=[];if(this.tickmarkOffset=this.categories&&"between"===o.tickmarkPlacement&&1===this.tickInterval?.5:0,this.single=this.min===this.max&&ee(this.min)&&!this.tickAmount&&(this.min%1==0||!1!==o.allowDecimals),i)d=i.slice();else if(ye(this.min)&&ye(this.max)){if(!(null==(e=this.ordinal)?void 0:e.positions)&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))d=[this.min,this.max],je(19,!1,this.chart);else if(this.dateTime)d=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,o.units),this.min,this.max,o.startOfWeek,null==(t=this.ordinal)?void 0:t.positions,this.closestPointRange,!0);else if(this.logarithmic)d=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let e=this.tickInterval,t=e;for(;t<=2*e&&(d=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&d.length>this.tickAmount);)this.tickInterval=xn(this,t*=1.1)}d.length>this.len&&(d=[d[0],d[d.length-1]])[0]===d[1]&&(d.length=1),a&&(this.tickPositions=d,(r=a.apply(this,[this.min,this.max,this]))&&(d=r))}this.isDirty||d.length===(null==(n=this.tickPositions)?void 0:n.length)||(this.isDirty=!0),this.tickPositions=d,this.minorTickInterval="auto"===l&&this.tickInterval?this.tickInterval/o.minorTicksPerMajor:l,this.paddedTicks=d.slice(0),this.trimTicks(d,c,u),!this.isLinked&&ye(this.min)&&ye(this.max)&&(this.single&&d.length<2&&!this.categories&&!this.series.some(e=>e.is("heatmap")&&"between"===e.options.pointPlacement)&&(this.min-=.5,this.max+=.5),i||r||this.adjustTickAmount()),le(this,"afterSetTickPositions")}trimTicks(e,t,n){let r=e[0],o=e[e.length-1],i=!this.isOrdinal&&this.minPointOffset||0;if(le(this,"trimTicks"),!this.isLinked||!this.grid){if(t&&r!==-1/0)this.min=r;else for(;this.min-i>e[0];)e.shift();if(n)this.max=o;else for(;this.max+i<e[e.length-1];)e.pop();0===e.length&&ee(r)&&!this.options.tickPositions&&e.push((o+r)/2)}}alignToOthers(){let e,t=this,n=t.chart,r=[this],o=t.options,i=n.options.chart,a="yAxis"===this.coll&&i.alignThresholds,l=[];if(t.thresholdAlignment=void 0,(!1!==i.alignTicks&&o.alignTicks||a)&&!1!==o.startOnTick&&!1!==o.endOnTick&&!t.logarithmic){let o=e=>{let{horiz:t,options:n}=e;return[t?n.left:n.top,n.width,n.height,n.pane].join(",")},i=o(this);n[this.coll].forEach(function(n){let{series:a}=n;a.length&&a.some(e=>e.visible)&&n!==t&&o(n)===i&&(e=!0,r.push(n))})}if(e&&a){r.forEach(e=>{let n=e.getThresholdAlignment(t);ye(n)&&l.push(n)});let e=l.length>1?l.reduce((e,t)=>e+t,0)/l.length:void 0;r.forEach(t=>{t.thresholdAlignment=e})}return e}getThresholdAlignment(e){if((!ye(this.dataMin)||this!==e&&this.series.some(e=>{var t;return e.isDirty||e.isDirtyData||(null==(t=e.xAxis)?void 0:t.isDirty)}))&&this.getSeriesExtremes(),ye(this.threshold)){let e=U((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(e=1-e),e}}getTickAmount(){let e=this.options,t=e.tickPixelInterval,n=e.tickAmount;ee(e.tickInterval)||n||!(this.len<t)||this.isRadial||this.logarithmic||!e.startOnTick||!e.endOnTick||(n=2),!n&&this.alignToOthers()&&(n=Math.ceil(this.len/t)+1),n<4&&(this.finalTickAmt=n,n=5),this.tickAmount=n}adjustTickAmount(){let e,t,n,r=this,{finalTickAmt:o,max:i,min:a,options:l,tickPositions:s,tickAmount:c,thresholdAlignment:u}=r,d=null==s?void 0:s.length,h=Te(r.threshold,r.softThreshold?0:null),p=r.tickInterval,f=()=>s.push(Y(s[s.length-1]+p)),m=()=>s.unshift(Y(s[0]-p));if(ye(u)&&(n=0===u?0:1===u?c-1:Math.round(U(u*(c-1),1,c-2)),l.reversed&&(n=c-1-n)),r.hasData()&&ye(a)&&ye(i)){let u=()=>{r.transA*=(d-1)/(c-1),r.min=l.startOnTick?s[0]:Math.min(a,s[0]),r.max=l.endOnTick?s[s.length-1]:Math.max(i,s[s.length-1])};if(ye(n)&&ye(r.threshold)){for(;s[n]!==h||s.length!==c||s[0]>a||s[s.length-1]<i;){for(s.length=0,s.push(r.threshold);s.length<c;)void 0===s[n]||s[n]>r.threshold?m():f();if(p>8*r.tickInterval)break;p*=2}u()}else if(d<c){for(;s.length<c;)s.length%2||a===h?f():m();u()}if(ee(o)){for(t=e=s.length;t--;)(3===o&&t%2==1||o<=2&&t>0&&t<e-1)&&s.splice(t,1);r.finalTickAmt=void 0}}}setScale(){var e,t,n,r,o;let{coll:i,stacking:a}=this,l=!1,s=!1;this.series.forEach(e=>{var t;l=l||e.isDirtyData||e.isDirty,s=s||(null==(t=e.xAxis)?void 0:t.isDirty)||!1}),this.setAxisSize();let c=this.len!==(null==(e=this.old)?void 0:e.len);c||l||s||this.isLinked||this.forceRedraw||this.userMin!==(null==(t=this.old)?void 0:t.userMin)||this.userMax!==(null==(n=this.old)?void 0:n.userMax)||this.alignToOthers()?(a&&"yAxis"===i&&a.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),a&&"xAxis"===i&&a.buildStacks(),this.isDirty||(this.isDirty=c||this.min!==(null==(r=this.old)?void 0:r.min)||this.max!==(null==(o=this.old)?void 0:o.max))):a&&a.cleanStacks(),l&&delete this.allExtremes,le(this,"afterSetScale")}setExtremes(e,t,n=!0,r,o){let i=this.chart;this.series.forEach(e=>{delete e.kdTree}),le(this,"setExtremes",o=ie(o,{min:e=i.time.parse(e),max:t=i.time.parse(t)}),e=>{this.userMin=e.min,this.userMax=e.max,this.eventArgs=e,n&&i.redraw(r)})}setAxisSize(){let e=this.chart,t=this.options,n=t.offsets||[0,0,0,0],r=this.horiz,o=this.width=Math.round(Ne(Te(t.width,e.plotWidth-n[3]+n[1]),e.plotWidth)),i=this.height=Math.round(Ne(Te(t.height,e.plotHeight-n[0]+n[2]),e.plotHeight)),a=this.top=Math.round(Ne(Te(t.top,e.plotTop+n[0]),e.plotHeight,e.plotTop)),l=this.left=Math.round(Ne(Te(t.left,e.plotLeft+n[3]),e.plotWidth,e.plotLeft));this.bottom=e.chartHeight-i-a,this.right=e.chartWidth-o-l,this.len=Math.max(r?o:i,0),this.pos=r?l:a}getExtremes(){let e=this.logarithmic;return{min:e?Y(e.lin2log(this.min)):this.min,max:e?Y(e.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(e){let t=this.logarithmic,n=t?t.lin2log(this.min):this.min,r=t?t.lin2log(this.max):this.max;return null===e||e===-1/0?e=n:e===1/0?e=r:n>e?e=n:r<e&&(e=r),this.translate(e,0,1,0,1)}autoLabelAlign(e){let t=((e-90*this.side)%360+360)%360,n={align:"center"};return le(this,"autoLabelAlign",n,function(e){t>15&&t<165?e.align="right":t>195&&t<345&&(e.align="left")}),n.align}tickSize(e){let t,n=this.options,r=Te(n["tick"===e?"tickWidth":"minorTickWidth"],"tick"===e&&this.isXAxis&&!this.categories?1:0),o=n["tick"===e?"tickLength":"minorTickLength"];r&&o&&("inside"===n[e+"Position"]&&(o=-o),t=[o,r]);let i={tickSize:t};return le(this,"afterTickSize",i),i.tickSize}labelMetrics(){let e=this.chart.renderer,t=this.ticks,n=t[Object.keys(t)[0]]||{};return this.chart.renderer.fontMetrics(n.label||n.movedLabel||e.box)}unsquish(){let e,t,n=this.options.labels,r=n.padding||0,o=this.horiz,i=this.tickInterval,a=this.len/((+!!this.categories+this.max-this.min)/i),l=n.rotation,s=Y(.8*this.labelMetrics().h),c=Math.max(this.max-this.min,0),u=function(e){let t=(e+2*r)/(a||1);return(t=t>1?Math.ceil(t):1)*i>c&&e!==1/0&&a!==1/0&&c&&(t=Math.ceil(c/i)),Y(t*i)},d=i,h=Number.MAX_VALUE;if(o){if(!n.staggerLines&&(ye(l)?t=[l]:a<n.autoRotationLimit&&(t=n.autoRotation)),t){let n,r;for(let o of t)(o===l||o&&o>=-90&&o<=90)&&(r=(n=u(Math.abs(s/Math.sin(bn*o))))+Math.abs(o/360))<h&&(h=r,e=o,d=n)}}else d=u(.75*s);return this.autoRotation=t,this.labelRotation=Te(e,ye(l)?l:0),n.step?i:d}getSlotWidth(e){let t=this.chart,n=this.horiz,r=this.options.labels,o=Math.max(this.tickPositions.length-!this.categories,1),i=t.margin[3];if(e&&ye(e.slotWidth))return e.slotWidth;if(n&&r.step<2&&!this.isRadial)return r.rotation?0:(this.staggerLines||1)*this.len/o;if(!n){let e=r.style.width;if(void 0!==e)return parseInt(String(e),10);if(!this.opposite&&i)return i-t.spacing[3]}return.33*t.chartWidth}renderUnsquish(){let e,t=this.chart,n=t.renderer,r=this.tickPositions,o=this.ticks,i=this.options.labels,a=i.style,l=this.horiz,s=this.getSlotWidth(),c=Math.max(1,Math.round(s-(l?2*(i.padding||0):i.distance||0))),u={},d=this.labelMetrics(),h=a.lineClamp,p=h??(Math.floor(this.len/(r.length*d.h))||1),f=0;ve(i.rotation)||(u.rotation=i.rotation||0),r.forEach(function(e){var t;let n=o[e];n.movedLabel&&n.replaceMovedLabel();let r=(null==(t=n.label)?void 0:t.textPxLength)||0;r>f&&(f=r)}),this.maxLabelLength=f,this.autoRotation?f>c&&f>d.h?u.rotation=this.labelRotation:this.labelRotation=0:s&&(e=c),u.rotation&&(e=f>.5*t.chartHeight?.33*t.chartHeight:f,h||(p=1)),this.labelAlign=i.align||this.autoLabelAlign(this.labelRotation||0),this.labelAlign&&(u.align=this.labelAlign),r.forEach(function(t){let n=o[t],r=null==n?void 0:n.label,i=a.width,l={};r&&(r.attr(u),n.shortenLabel?n.shortenLabel():e&&!i&&"nowrap"!==a.whiteSpace&&(e<(r.textPxLength||0)||"SPAN"===r.element.tagName)?r.css(ie(l,{width:`${e}px`,lineClamp:p})):!r.styles.width||l.width||i||r.css({width:"auto"}),n.rotation=u.rotation)},this),this.tickRotCorr=n.rotCorr(d.b,this.labelRotation||0,0!==this.side)}hasData(){return this.series.some(function(e){return e.hasData()})||this.options.showEmpty&&ee(this.min)&&ee(this.max)}addTitle(e){let t,n=this.chart.renderer,r=this.horiz,o=this.opposite,i=this.options.title,a=this.chart.styledMode;this.axisTitle||((t=i.textAlign)||(t=(r?{low:"left",middle:"center",high:"right"}:{low:o?"right":"left",middle:"center",high:o?"left":"right"})[i.align]),this.axisTitle=n.text(i.text||"",0,0,i.useHTML).attr({zIndex:7,rotation:i.rotation||0,align:t}).addClass("highcharts-axis-title"),a||this.axisTitle.css(Ce(i.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),a||i.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[e?"show":"hide"](e)}generateTick(e){let t=this.ticks;t[e]?t[e].addLabel():t[e]=new pn(this,e)}createGroups(){let{axisParent:e,chart:t,coll:n,options:r}=this,o=t.renderer,i=(t,i,a)=>o.g(t).attr({zIndex:a}).addClass(`highcharts-${n.toLowerCase()}${i} `+(this.isRadial?`highcharts-radial-axis${i} `:"")+(r.className||"")).add(e);this.axisGroup||(this.gridGroup=i("grid","-grid",r.gridZIndex),this.axisGroup=i("axis","",r.zIndex),this.labelGroup=i("axis-labels","-labels",r.labels.zIndex))}getOffset(){let e,t,n,r,o=this,{chart:i,horiz:a,options:l,side:s,ticks:c,tickPositions:u,coll:d}=o,h=i.inverted&&!o.isZAxis?[1,0,3,2][s]:s,p=o.hasData(),f=l.title,m=l.labels,g=ye(l.crossing),y=i.axisOffset,v=i.clipOffset,b=[-1,1,1,-1][s],x=0,w=0,C=0;if(o.showAxis=e=p||l.showEmpty,o.staggerLines=o.horiz&&m.staggerLines||void 0,o.createGroups(),p||o.isLinked?(u.forEach(function(e){o.generateTick(e)}),o.renderUnsquish(),o.reserveSpaceDefault=0===s||2===s||{1:"left",3:"right"}[s]===o.labelAlign,Te(m.reserveSpace,!g&&null,"center"===o.labelAlign||null,o.reserveSpaceDefault)&&u.forEach(function(e){C=Math.max(c[e].getLabelSize(),C)}),o.staggerLines&&(C*=o.staggerLines),o.labelOffset=C*(o.opposite?-1:1)):Se(c,function(e,t){e.destroy(),delete c[t]}),(null==f?void 0:f.text)&&!1!==f.enabled&&(o.addTitle(e),e&&!g&&!1!==f.reserveSpace&&(o.titleOffset=x=o.axisTitle.getBBox()[a?"height":"width"],w=ee(t=f.offset)?0:Te(f.margin,a?5:10))),o.renderLine(),o.offset=b*Te(l.offset,y[s]?y[s]+(l.margin||0):0),o.tickRotCorr=o.tickRotCorr||{x:0,y:0},r=0===s?-o.labelMetrics().h:2===s?o.tickRotCorr.y:0,n=Math.abs(C)+w,C&&(n-=r,n+=b*(a?Te(m.y,o.tickRotCorr.y+b*m.distance):Te(m.x,b*m.distance))),o.axisTitleMargin=Te(t,n),o.getMaxLabelDimensions&&(o.maxLabelDimensions=o.getMaxLabelDimensions(c,u)),"colorAxis"!==d&&v){let e=this.tickSize("tick");y[s]=Math.max(y[s],(o.axisTitleMargin||0)+x+b*o.offset,n,(null==u?void 0:u.length)&&e?e[0]+b*o.offset:0);let t=!o.axisLine||l.offset?0:o.axisLine.strokeWidth()/2;v[h]=Math.max(v[h],t)}le(this,"afterGetOffset")}getLinePath(e){let t=this.chart,n=this.opposite,r=this.offset,o=this.horiz,i=this.left+(n?this.width:0)+r,a=t.chartHeight-this.bottom-(n?this.height:0)+r;return n&&(e*=-1),t.renderer.crispLine([["M",o?this.left:i,o?a:this.top],["L",o?t.chartWidth-this.right:i,o?a:t.chartHeight-this.bottom]],e)}renderLine(){!this.axisLine&&(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(e){let t=this.horiz,n=this.left,r=this.top,o=this.len,i=this.options.title,a=t?n:r,l=this.opposite,s=this.offset,c=i.x,u=i.y,d=this.chart.renderer.fontMetrics(e),h=e?Math.max(e.getBBox(!1,0).height-d.h-1,0):0,p={low:a+(t?0:o),middle:a+o/2,high:a+(t?o:0)}[i.align],f=(t?r+this.height:n)+(t?1:-1)*(l?-1:1)*(this.axisTitleMargin||0)+[-h,h,d.f,-h][this.side],m={x:t?p+c:f+(l?this.width:0)+s+c,y:t?f+u-(l?this.height:0)+s:p+u};return le(this,"afterGetTitlePosition",{titlePosition:m}),m}renderMinorTick(e,t){let n=this.minorTicks;n[e]||(n[e]=new pn(this,e,"minor")),t&&n[e].isNew&&n[e].render(null,!0),n[e].render(null,!1,1)}renderTick(e,t,n){var r;let o=this.isLinked,i=this.ticks;(!o||e>=this.min&&e<=this.max||(null==(r=this.grid)?void 0:r.isColumn))&&(i[e]||(i[e]=new pn(this,e)),n&&i[e].isNew&&i[e].render(t,!0,-1),i[e].render(t))}render(){let e,t,n=this,r=n.chart,o=n.logarithmic,i=r.renderer,a=n.options,l=n.isLinked,s=n.tickPositions,c=n.axisTitle,u=n.ticks,d=n.minorTicks,h=n.alternateBands,p=a.stackLabels,f=a.alternateGridColor,m=a.crossing,g=n.tickmarkOffset,y=n.axisLine,v=n.showAxis,b=fn(i.globalAnimation);if(n.labelEdge.length=0,n.overlap=!1,[u,d,h].forEach(function(e){Se(e,function(e){e.isActive=!1})}),ye(m)){let e=this.isXAxis?r.yAxis[0]:r.xAxis[0],t=[1,-1,-1,1][this.side];if(e){let r=e.toPixels(m,!0);n.horiz&&(r=e.len-r),n.offset=t*r}}if(n.hasData()||l){let i=n.chart.hasRendered&&n.old&&ye(n.old.min);n.minorTickInterval&&!n.categories&&n.getMinorTickPositions().forEach(function(e){n.renderMinorTick(e,i)}),s.length&&(s.forEach(function(e,t){n.renderTick(e,t,i)}),g&&(0===n.min||n.single)&&(u[-1]||(u[-1]=new pn(n,-1,null,!0)),u[-1].render(-1))),f&&s.forEach(function(i,a){t=void 0!==s[a+1]?s[a+1]+g:n.max-g,a%2==0&&i<n.max&&t<=n.max+(r.polar?-g:g)&&(h[i]||(h[i]=new _.PlotLineOrBand(n,{})),e=i+g,h[i].options={from:o?o.lin2log(e):e,to:o?o.lin2log(t):t,color:f,className:"highcharts-alternate-grid"},h[i].render(),h[i].isActive=!0)}),n._addedPlotLB||(n._addedPlotLB=!0,(a.plotLines||[]).concat(a.plotBands||[]).forEach(function(e){n.addPlotBandOrLine(e)}))}[u,d,h].forEach(function(e){let t=[],n=b.duration;Se(e,function(e,n){e.isActive||(e.render(n,!1,0),e.isActive=!1,t.push(n))}),Le(function(){let n=t.length;for(;n--;)e[t[n]]&&!e[t[n]].isActive&&(e[t[n]].destroy(),delete e[t[n]])},e!==h&&r.hasRendered&&n?n:0)}),y&&(y[y.isPlaced?"animate":"attr"]({d:this.getLinePath(y.strokeWidth())}),y.isPlaced=!0,y[v?"show":"hide"](v)),c&&v&&(c[c.isNew?"attr":"animate"](n.getTitlePosition(c)),c.isNew=!1),(null==p?void 0:p.enabled)&&n.stacking&&n.stacking.renderStackTotals(),n.old={len:n.len,max:n.max,min:n.min,transA:n.transA,userMax:n.userMax,userMin:n.userMin},n.isDirty=!1,le(this,"afterRender")}redraw(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(e){e.render()})),this.series.forEach(function(e){e.isDirty=!0})}getKeepProps(){return this.keepProps||wn.keepProps}destroy(e){let t=this,n=t.plotLinesAndBands,r=this.eventOptions;if(le(this,"destroy",{keepEvents:e}),e||Oe(t),[t.ticks,t.minorTicks,t.alternateBands].forEach(function(e){te(e)}),n){let e=n.length;for(;e--;)n[e].destroy()}for(let e in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(e){t[e]&&(t[e]=t[e].destroy())}),t.plotLinesAndBandsGroups)t.plotLinesAndBandsGroups[e]=t.plotLinesAndBandsGroups[e].destroy();Se(t,function(e,n){-1===t.getKeepProps().indexOf(n)&&delete t[n]}),this.eventOptions=r}drawCrosshair(e,t){var n;let r,o,i,a,l=this.crosshair,s=(null==l?void 0:l.snap)??!0,c=this.chart,u=this.cross;if(le(this,"drawCrosshair",{e:e,point:t}),e||(e=null==(n=this.cross)?void 0:n.e),l&&!1!==(ee(t)||!s)){if(clearTimeout(this.crossShowTimer),s?ee(t)&&(o=Te("colorAxis"!==this.coll?t.crosshairPos:null,this.isXAxis?t.plotX:this.len-t.plotY)):o=e&&(this.horiz?e.chartX-this.pos:this.len-e.chartY+this.pos),ee(o)&&(a={value:t&&(this.isXAxis?t.x:Te(t.stackY,t.y)),translatedValue:o},c.polar&&ie(a,{isCrosshair:!0,chartX:null==e?void 0:e.chartX,chartY:null==e?void 0:e.chartY,point:t}),r=this.getPlotLinePath(a)||null),!ee(r))return void this.hideCrosshair();i=this.categories&&!this.isRadial,this.crossShowTimer=Le(()=>{let t=this.cross;t||(this.cross=t=c.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(i?"category ":"thin ")+(l.className||"")).attr({zIndex:Te(l.zIndex,2)}).add(),!c.styledMode&&(t.attr({stroke:l.color||(i?tt.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":Te(l.width,1)}).css({"pointer-events":"none"}),l.dashStyle&&t.attr({dashstyle:l.dashStyle}))),t.show().animate({d:r},fn(null==l?void 0:l.animation)),i&&!l.width&&t.attr({"stroke-width":this.transA}),this.cross&&(this.cross.e=e)},(!u||"hidden"===u.attr("visibility"))&&l.showDelay||0)}else this.hideCrosshair();le(this,"afterDrawCrosshair",{e:e,point:t})}hideCrosshair(){clearTimeout(this.crossShowTimer),this.cross&&this.cross.hide(),le(this,"afterHideCrosshair")}update(e,t){let n=this.chart;e=Ce(this.userOptions,e),this.destroy(!0),this.init(n,e),n.isDirtyBox=!0,Te(t,!0)&&n.redraw()}remove(e){let t=this.chart,n=this.coll,r=this.series,o=r.length;for(;o--;)r[o]&&r[o].remove(!1);oe(t.axes,this),oe(t[n]||[],this),t.orderItems(n),this.destroy(),t.isDirtyBox=!0,Te(e,!0)&&t.redraw()}setTitle(e,t){this.update({title:e},t)}setCategories(e,t){this.update({categories:e},t)}}wn.keepProps=["coll","extKey","hcEvents","len","names","series","userMax","userMin"],function(e){function t(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function n(){"datetime"===this.type?this.dateTime||(this.dateTime=new r(this)):this.dateTime=void 0}e.compose=function(e){return e.keepProps.includes("dateTime")||(e.keepProps.push("dateTime"),e.prototype.getTimeTicks=t,V(e,"afterSetType",n)),e};class r{constructor(e){this.axis=e}normalizeTimeTickInterval(e,t){let n,r,o=t||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],i=o[o.length-1],a=He[i[0]],l=i[1];for(n=0;n<o.length;n++)if(a=He[(i=o[n])[0]],l=i[1],o[n+1]){let t=(a*l[l.length-1]+He[o[n+1][0]])/2;if(e<=t){r=t/e;break}}return a===He.year&&e<5*a&&(l=[1,2,5]),{unitRange:a,count:ke(e/a,l,"year"===i[0]?Math.max(ue(e/a),1):1),unitName:i[0],match:r}}getXDateFormat(e,t){let{axis:n}=this,r=n.chart.time;return n.closestPointRange?r.getDateFormat(n.closestPointRange,e,n.options.startOfWeek,t)||r.resolveDTLFormat(t.year).main:r.resolveDTLFormat(t.day).main}}e.Additions=r}(M||(M={}));let Cn=M;!function(e){function t(){"logarithmic"!==this.type?this.logarithmic=void 0:this.logarithmic??(this.logarithmic=new r(this))}function n(){let e=this.logarithmic;e&&(this.lin2val=function(t){return e.lin2log(t)},this.val2lin=function(t){return e.log2lin(t)})}e.compose=function(e){return e.keepProps.includes("logarithmic")||(e.keepProps.push("logarithmic"),V(e,"afterSetType",t),V(e,"afterInit",n)),e};class r{constructor(e){this.axis=e}getLogTickPositions(e,t,n,r){let o=this.axis,i=o.len,a=o.options,l=[];if(r||(this.minorAutoInterval=void 0),e>=.5)e=Math.round(e),l=o.getLinearTickPositions(e,t,n);else if(e>=.08){let o,i,a,s,c,u,d;for(o=e>.3?[1,2,4]:e>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],i=Math.floor(t);i<n+1&&!d;i++)for(a=0,s=o.length;a<s&&!d;a++)(c=this.log2lin(this.lin2log(i)*o[a]))>t&&(!r||u<=n)&&void 0!==u&&l.push(u),u>n&&(d=!0),u=c}else{let s=this.lin2log(t),c=this.lin2log(n),u=r?o.getMinorTickInterval():a.tickInterval,d=a.tickPixelInterval/(r?5:1),h=r?i/o.tickPositions.length:i;e=ke(e=Te("auto"===u?null:u,this.minorAutoInterval,(c-s)*d/(h||1))),l=o.getLinearTickPositions(e,s,c).map(this.log2lin),r||(this.minorAutoInterval=e/5)}return r||(o.tickInterval=e),l}lin2log(e){return Math.pow(10,e)}log2lin(e){return Math.log(e)/Math.LN10}}e.Additions=r}(P||(P={}));let kn=P;!function(e){let t;function n(e){return this.addPlotBandOrLine(e,"plotBands")}function r(e,n){let r=this.userOptions,o=new t(this,e);if(this.visible&&(o=o.render()),o){if(this._addedPlotLB||(this._addedPlotLB=!0,(r.plotLines||[]).concat(r.plotBands||[]).forEach(e=>{this.addPlotBandOrLine(e)})),n){let t=r[n]||[];t.push(e),r[n]=t}this.plotLinesAndBands.push(o)}return o}function o(e){return this.addPlotBandOrLine(e,"plotLines")}function i(e,t,n){n=n||this.options;let r,o,i=this.getPlotLinePath({value:t,force:!0,acrossPanes:n.acrossPanes}),a=[],l=this.horiz,s=!ye(this.min)||!ye(this.max)||e<this.min&&t<this.min||e>this.max&&t>this.max,c=this.getPlotLinePath({value:e,force:!0,acrossPanes:n.acrossPanes}),u=1;if(c&&i)for(s&&(o=c.toString()===i.toString(),u=0),r=0;r<c.length;r+=2){let e=c[r],t=c[r+1],n=i[r],s=i[r+1];("M"===e[0]||"L"===e[0])&&("M"===t[0]||"L"===t[0])&&("M"===n[0]||"L"===n[0])&&("M"===s[0]||"L"===s[0])&&(l&&n[1]===e[1]?(n[1]+=u,s[1]+=u):l||n[2]!==e[2]||(n[2]+=u,s[2]+=u),a.push(["M",e[1],e[2]],["L",t[1],t[2]],["L",s[1],s[2]],["L",n[1],n[2]],["Z"])),a.isFlat=o}return a}function a(e){this.removePlotBandOrLine(e)}function l(e){let t=this.plotLinesAndBands,n=this.options,r=this.userOptions;if(t){let o=t.length;for(;o--;)t[o].id===e&&t[o].destroy();[n.plotLines||[],r.plotLines||[],n.plotBands||[],r.plotBands||[]].forEach(function(t){var n;for(o=t.length;o--;)(null==(n=t[o])?void 0:n.id)===e&&oe(t,t[o])})}}function s(e){this.removePlotBandOrLine(e)}e.compose=function(e,c){let u=c.prototype;return u.addPlotBand||(t=e,ie(u,{addPlotBand:n,addPlotLine:o,addPlotBandOrLine:r,getPlotBandPath:i,removePlotBand:a,removePlotLine:s,removePlotBandOrLine:l})),c}}(N||(N={}));let Sn=N;class En{static compose(e,t){return V(e,"afterInit",function(){this.labelCollectors.push(()=>{var e;let t=[];for(let n of this.axes)for(let{label:r,options:o}of n.plotLinesAndBands)r&&!(null==(e=null==o?void 0:o.label)?void 0:e.allowOverlap)&&t.push(r);return t})}),Sn.compose(En,t)}constructor(e,t){this.axis=e,this.options=t,this.id=t.id}render(){le(this,"render");let e,{axis:t,options:n}=this,{horiz:r,logarithmic:o}=t,{color:i,events:a,zIndex:l=0}=n,{renderer:s,time:c}=t.chart,u={},d=c.parse(n.to),h=c.parse(n.from),p=c.parse(n.value),f=n.borderWidth,m=n.label,{label:g,svgElem:y}=this,v=[],b=ee(h)&&ee(d),x=ee(p),w=!y,C={class:"highcharts-plot-"+(b?"band ":"line ")+(n.className||"")},k=b?"bands":"lines";if(!t.chart.styledMode&&(x?(C.stroke=i||"#999999",C["stroke-width"]=Te(n.width,1),n.dashStyle&&(C.dashstyle=n.dashStyle)):b&&(C.fill=i||"#e6e9ff",f&&(C.stroke=n.borderColor,C["stroke-width"]=f))),u.zIndex=l,k+="-"+l,(e=t.plotLinesAndBandsGroups[k])||(t.plotLinesAndBandsGroups[k]=e=s.g("plot-"+k).attr(u).add()),y||(this.svgElem=y=s.path().attr(C).add(e)),ee(p))v=t.getPlotLinePath({value:(null==o?void 0:o.log2lin(p))??p,lineWidth:y.strokeWidth(),acrossPanes:n.acrossPanes});else{if(!ee(h)||!ee(d))return;v=t.getPlotBandPath((null==o?void 0:o.log2lin(h))??h,(null==o?void 0:o.log2lin(d))??d,n)}return!this.eventsAdded&&a&&(Se(a,(e,t)=>{null==y||y.on(t,e=>{a[t].apply(this,[e,this])})}),this.eventsAdded=!0),!w&&y.d||!(null==v?void 0:v.length)?y&&(v?(y.show(),y.animate({d:v})):y.d&&(y.hide(),g&&(this.label=g=g.destroy()))):y.attr({d:v}),m&&(ee(m.text)||ee(m.formatter))&&(null==v?void 0:v.length)&&t.width>0&&t.height>0&&!v.isFlat?(m=Ce({align:r&&b?"center":void 0,x:r?!b&&4:10,verticalAlign:!r&&b?"middle":void 0,y:r?b?16:10:b?6:-4,rotation:r&&!b?90:0,...b?{inside:!0}:{}},m),this.renderLabel(m,v,b,l)):g&&g.hide(),this}renderLabel(e,t,n,r){var o,i,a;let l=this.axis,s=l.chart.renderer,c=e.inside,u=this.label;u||(this.label=u=s.text(this.getLabelText(e),0,0,e.useHTML).attr({align:e.textAlign||e.align,rotation:e.rotation,class:"highcharts-plot-"+(n?"band":"line")+"-label "+(e.className||""),zIndex:r}),l.chart.styledMode||u.css(Ce({color:null==(i=null==(o=l.chart.options.title)?void 0:o.style)?void 0:i.color,fontSize:"0.8em",textOverflow:n&&!c?"":"ellipsis"},e.style)),u.add());let d=t.xBounds||[t[0][1],t[1][1],n?t[2][1]:t[0][1]],h=t.yBounds||[t[0][2],t[1][2],n?t[2][2]:t[0][2]],p=G(d),f=G(h),m=q(d)-p;u.align(e,!1,{x:p,y:f,width:m,height:q(h)-f}),u.alignAttr.y-=s.fontMetrics(u).b,(!u.alignValue||"left"===u.alignValue||ee(c))&&u.css({width:((null==(a=e.style)?void 0:a.width)||(n&&c?m:90===u.rotation?l.height-(u.alignAttr.y-l.top):(e.clip?l.width+l.left:l.chart.chartWidth)-u.alignAttr.x))+"px"}),u.show(!0)}getLabelText(e){return ee(e.formatter)?e.formatter.call(this,this):e.text}destroy(){oe(this.axis.plotLinesAndBands,this),delete this.axis,te(this)}}let{animObject:$n}=lt,{format:Tn}=wt,{composed:Mn,dateFormats:Pn,doc:Nn,isSafari:In}=_,{distribute:On}=kt,An=e=>{clearTimeout(e.hideTimer),clearTimeout(e.showTimer)};class Rn{constructor(e,t,n){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=e,this.init(e,t),this.pointer=n}bodyFormatter(e){return e.map(e=>{let t=e.series.tooltipOptions,n=e.formatPrefix||"point";return(t[n+"Formatter"]||e.tooltipFormatter).call(e,t[n+"Format"]||"",e)})}cleanSplit(e){this.chart.series.forEach(function(t){let n=null==t?void 0:t.tt;n&&(!n.isActive||e?t.tt=n.destroy():n.isActive=!1)})}defaultFormatter(e){let t,n=this.points||Ae(this);return(t=(t=[e.headerFooterFormatter(n[0])]).concat(e.bodyFormatter(n))).push(e.headerFooterFormatter(n[0],!0)),t}destroy(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),ne(this.container)),fe(this.hideTimer),An(this)}getAnchor(e,t){var n;let r,{chart:o,pointer:i}=this,a=o.inverted,l=o.plotTop,s=o.plotLeft;if((null==(n=(e=Ae(e))[0].series)?void 0:n.yAxis)&&!e[0].series.yAxis.options.reversedStacks&&(e=e.slice().reverse()),this.followPointer&&t)void 0===t.chartX&&(t=i.normalize(t)),r=[t.chartX-s,t.chartY-l];else if(e[0].tooltipPos)r=e[0].tooltipPos;else{let n=0,o=0;e.forEach(function(e){let t=e.pos(!0);t&&(n+=t[0],o+=t[1])}),n/=e.length,o/=e.length,this.shared&&e.length>1&&t&&(a?n=t.chartX:o=t.chartY),r=[n-s,o-l]}let c={point:e[0],ret:r};return le(this,"getAnchor",c),c.ret.map(Math.round)}getClassName(e,t,n){let r=this.options,o=e.series,i=o.options;return[r.className,"highcharts-label",n&&"highcharts-tooltip-header",t?"highcharts-tooltip-box":"highcharts-tooltip",!n&&"highcharts-color-"+Te(e.colorIndex,o.colorIndex),null==i?void 0:i.className].filter(ve).join(" ")}getLabel({anchorX:e,anchorY:t}={anchorX:0,anchorY:0}){let n=this,r=this.chart.styledMode,o=this.options,i=this.split&&this.allowShared,a=this.container,l=this.chart.renderer;if(this.label){let e=!this.label.hasClass("highcharts-label");(!i&&e||i&&!e)&&this.destroy()}if(!this.label){if(this.outside){let e=this.chart,t=e.options.chart.style,n=Ct.getRendererType();this.container=a=_.doc.createElement("div"),a.className="highcharts-tooltip-container "+(e.renderTo.className.match(/(highcharts[a-zA-Z0-9-]+)\s?/gm)||""),J(a,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,((null==t?void 0:t.zIndex)||0)+3)}),this.renderer=l=new n(a,0,0,t,void 0,void 0,l.styledMode)}if(i?this.label=l.g("tooltip"):(this.label=l.label("",e,t,o.shape||"callout",void 0,void 0,o.useHTML,void 0,"tooltip").attr({padding:o.padding,r:o.borderRadius}),r||this.label.attr({fill:o.backgroundColor,"stroke-width":o.borderWidth||0}).css(o.style).css({pointerEvents:o.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),n.outside){let e=this.label;[e.xSetter,e.ySetter].forEach((t,r)=>{e[r?"ySetter":"xSetter"]=o=>{t.call(e,n.distance),e[r?"y":"x"]=o,a&&(a.style[r?"top":"left"]=`${o}px`)}})}this.label.attr({zIndex:8}).shadow(o.shadow??!o.fixed).add()}return a&&!a.parentElement&&_.doc.body.appendChild(a),this.label}getPlayingField(){let{body:e,documentElement:t}=Nn,{chart:n,distance:r,outside:o}=this;return{width:o?Math.max(e.scrollWidth,t.scrollWidth,e.offsetWidth,t.offsetWidth,t.clientWidth)-2*r-2:n.chartWidth,height:o?Math.max(e.scrollHeight,t.scrollHeight,e.offsetHeight,t.offsetHeight,t.clientHeight):n.chartHeight}}getPosition(e,t,n){var r,o;let i,{distance:a,chart:l,outside:s,pointer:c}=this,{inverted:u,plotLeft:d,plotTop:h,polar:p}=l,{plotX:f=0,plotY:m=0}=n,g={},y=u&&n.h||0,{height:v,width:b}=this.getPlayingField(),x=c.getChartPosition(),w=n=>{let r="x"===n;return[n,r?b:v,r?e:t].concat(s?[r?e*x.scaleX:t*x.scaleY,r?x.left-a+(f+d)*x.scaleX:x.top-a+(m+h)*x.scaleY,0,r?b:v]:[r?e:t,r?f+d:m+h,r?d:h,r?d+l.plotWidth:h+l.plotHeight])},C=w("y"),k=w("x"),S=!!n.negative;!p&&(null==(o=null==(r=l.hoverSeries)?void 0:r.yAxis)?void 0:o.reversed)&&(S=!S);let E=!this.followPointer&&Te(n.ttBelow,!p&&!u===S),$=function(e,t,n,r,o,i,l){let c=s?"y"===e?a*x.scaleY:a*x.scaleX:a,u=(n-r)/2,d=r<o-a,h=o+a+r<t,p=o-c-n+u,f=o+c-u;if(E&&h)g[e]=f;else if(!E&&d)g[e]=p;else if(d)g[e]=Math.min(l-r,p-y<0?p:p-y);else{if(!h)return g[e]=0,!1;g[e]=Math.max(i,f+y+n>t?f:f+y)}},T=function(e,t,n,r,o){if(o<a||o>t-a)return!1;g[e]=o<n/2?1:o>t-r/2?t-r-2:o-n/2},M=function(e){[C,k]=[k,C],i=e},P=()=>{!1!==$.apply(0,C)?!1!==T.apply(0,k)||i||(M(!0),P()):i?g.x=g.y=0:(M(!0),P())};return(u&&!p||this.len>1)&&M(),P(),s&&(g.x-=x.left,g.y-=x.top),g}getFixedPosition(e,t,n){var r;let o=n.series,{chart:i,options:a,split:l}=this,s=a.position,c=s.relativeTo,u=a.shared||(null==(r=null==o?void 0:o.yAxis)?void 0:r.isRadial)&&("pane"===c||!c)?"plotBox":c,d="chart"===u?i.renderer:i[u]||i.getClipBox(o,!0);return{x:d.x+(d.width-e)*se(s.align)+s.x,y:d.y+(d.height-t)*se(s.verticalAlign)+(!l&&s.y||0)}}hide(e){let t=this;An(this),e=Te(e,this.options.hideDelay),this.isHidden||(this.hideTimer=Le(function(){let n=t.getLabel();t.getLabel().animate({opacity:0},{duration:e?150:e,complete:()=>{n.hide(),t.container&&t.container.remove()}}),t.isHidden=!0},e))}init(e,t){this.chart=e,this.options=t,this.crosshairs=[],this.isHidden=!0,this.split=t.split&&!e.inverted&&!e.polar,this.shared=t.shared||this.split,this.outside=Te(t.outside,!(!e.scrollablePixelsX&&!e.scrollablePixelsY))}shouldStickOnContact(e){return!(this.followPointer||!this.options.stickOnContact||e&&!this.pointer.inClass(e.target,"highcharts-tooltip"))}move(e,t,n,r){let{followPointer:o,options:i}=this,a=$n(!o&&!this.isHidden&&!i.fixed&&i.animation),l={x:e,y:t};o||(this.len||0)>1?l.anchorX=l.anchorY=NaN:(l.anchorX=n,l.anchorY=r),a.step=()=>this.drawTracker(),this.getLabel().animate(l,a)}refresh(e,t){let n=this,{chart:r,options:o,pointer:i,shared:a}=this,l=Ae(e),s=l[0],c=o.format,u=o.formatter||n.defaultFormatter,d=r.styledMode,h=n.allowShared;if(!o.enabled||!s.series)return;An(this),n.allowShared=!(!be(e)&&e.series&&e.series.noSharedTooltip),h=h&&!n.allowShared,n.followPointer=!n.split&&s.series.tooltipOptions.followPointer;let p=n.getAnchor(e,t),f=p[0],m=p[1];a&&n.allowShared&&(i.applyInactiveState(l),l.forEach(e=>e.setState("hover")),s.points=l),this.len=l.length;let g=ve(c)?Tn(c,s,r):u.call(s,n,s);s.points=void 0;let y=s.series;this.distance=Te(y.tooltipOptions.distance,16),!1===g?this.hide():this.showTimer=Le(()=>{if(n.split&&n.allowShared)n.renderSplit(g,l);else{let e=f,a=m;if(t&&i.isDirectTouch&&(e=t.chartX-r.plotLeft,a=t.chartY-r.plotTop),!r.polar&&!1!==y.options.clip&&!l.some(t=>i.isDirectTouch||t.series.shouldShowTooltip(e,a)))return void n.hide();{let e=n.getLabel(h&&n.tt||{});(!o.style.width||d)&&e.css({width:(this.outside?this.getPlayingField():r.spacingBox).width-2*o.padding+"px"}),e.attr({class:n.getClassName(s),text:be(g)?g.join(""):g}),this.outside&&e.attr({x:U(e.x||0,0,this.getPlayingField().width-(e.width||0)-1)}),d||e.attr({stroke:o.borderColor||s.color||y.color||"#666666"}),n.updatePosition({plotX:f,plotY:m,negative:s.negative,ttBelow:s.ttBelow,series:y,h:p[2]||0})}}n.isHidden&&n.label&&n.label.attr({opacity:1}).show(),n.isHidden=!1},n.isHidden&&o.showDelay||0),le(this,"refresh")}renderSplit(e,t){var n,r;let o=this,{chart:i,chart:{chartWidth:a,chartHeight:l,plotHeight:s,plotLeft:c,plotTop:u,scrollablePixelsY:d=0,scrollablePixelsX:h,styledMode:p},distance:f,options:m,options:{fixed:g,position:y,positioner:v},pointer:b}=o,{scrollLeft:x=0,scrollTop:w=0}=(null==(n=i.scrollablePlotArea)?void 0:n.scrollingContainer)||{},C=o.outside&&"number"!=typeof h?Nn.documentElement.getBoundingClientRect():{left:x,right:x+a},k=o.getLabel(),S=this.renderer||i.renderer,E=!!(null==(r=i.xAxis[0])?void 0:r.opposite),{left:$,top:T}=b.getChartPosition(),M=v||g,P=u+w,N=0,I=s-d,O=function(e,t,n,r,i=[0,0],a=!0){let l,s;if(n.isHeader)s=E?0:I,l=U(i[0]-e/2,C.left,C.right-e-(o.outside?$:0));else if(g&&n){let r=o.getFixedPosition(e,t,n);l=r.x,s=r.y-P}else s=i[1]-P,l=U(l=a?i[0]-e-f:i[0]+f,a?l:C.left,C.right);return{x:l,y:s}};ve(e)&&(e=[!1,e]);let A=e.slice(0,t.length+1).reduce(function(e,n,r){if(!1!==n&&""!==n){let i=t[r-1]||{isHeader:!0,plotX:t[0].plotX,plotY:s,series:{}},a=i.isHeader,l=a?o:i.series,d=l.tt=function(e,t,n){let r=e,{isHeader:i,series:a}=t,l=a.tooltipOptions||m;if(!r){let e={padding:l.padding,r:l.borderRadius};p||(e.fill=l.backgroundColor,e["stroke-width"]=l.borderWidth??(g&&!i?0:1)),r=S.label("",0,0,l[i?"headerShape":"shape"]||(g&&!i?"rect":"callout"),void 0,void 0,l.useHTML).addClass(o.getClassName(t,!0,i)).attr(e).add(k)}return r.isActive=!0,r.attr({text:n}),p||r.css(l.style).attr({stroke:l.borderColor||t.color||a.color||"#333333"}),r}(l.tt,i,n.toString()),h=d.getBBox(),y=h.width+d.strokeWidth();a&&(N=h.height,I+=N,E&&(P-=N));let{anchorX:b,anchorY:x}=function(e){let t,n,{isHeader:r,plotX:o=0,plotY:i=0,series:a}=e;if(r)t=Math.max(c+o,c),n=u+s/2;else{let{xAxis:e,yAxis:r}=a;t=e.pos+U(o,-f,e.len+f),a.shouldShowTooltip(0,r.pos-u+i,{ignoreX:!0})&&(n=r.pos+i)}return{anchorX:t=U(t,C.left-f,C.right+f),anchorY:n}}(i);if("number"==typeof x){let t=h.height+1,n=(v||O).call(o,y,t,i,o,[b,x]);e.push({align:M?0:void 0,anchorX:b,anchorY:x,boxWidth:y,point:i,rank:Te(n.rank,+!!a),size:t,target:n.y,tt:d,x:n.x})}else d.isActive=!1}return e},[]);!M&&A.some(e=>{let{outside:t}=o,n=(t?$:0)+e.anchorX;return n<C.left&&n+e.boxWidth<C.right||n<$-C.left+e.boxWidth&&C.right-n>n})&&(A=A.map(e=>{let{x:t,y:n}=O.call(this,e.boxWidth,e.size,e.point,void 0,[e.anchorX,e.anchorY],!1);return ie(e,{target:n,x:t})})),o.cleanSplit(),On(A,I);let R={left:$,right:$};A.forEach(function(e){let{x:t,boxWidth:n,isHeader:r}=e;!r&&(o.outside&&$+t<R.left&&(R.left=$+t),!r&&o.outside&&R.left+n>R.right&&(R.right=$+t))}),A.forEach(function(e){let{x:t,anchorX:n,anchorY:r,pos:i,point:{isHeader:a}}=e,l={visibility:void 0===i?"hidden":"inherit",x:t,y:(i||0)+P+(g&&y.y||0),anchorX:n,anchorY:r};if(o.outside&&t<n){let e=$-R.left;e>0&&(a||(l.x=t+e,l.anchorX=n+e),a&&(l.x=(R.right-R.left)/2,l.anchorX=n+e))}e.tt.attr(l)});let{container:L,outside:B,renderer:z}=o;if(B&&L&&z){let{width:e,height:t,x:n,y:r}=k.getBBox();z.setSize(e+n,t+r,!1),L.style.left=R.left+"px",L.style.top=T+"px"}In&&k.attr({opacity:1===k.opacity?.999:1})}drawTracker(){let e=this;if(!this.shouldStickOnContact())return void(e.tracker&&(e.tracker=e.tracker.destroy()));let t=e.chart,n=e.label,r=e.shared?t.hoverPoints:t.hoverPoint;if(!n||!r)return;let o={x:0,y:0,width:0,height:0},i=this.getAnchor(r),a=n.getBBox();i[0]+=t.plotLeft-(n.translateX||0),i[1]+=t.plotTop-(n.translateY||0),o.x=Math.min(0,i[0]),o.y=Math.min(0,i[1]),o.width=i[0]<0?Math.max(Math.abs(i[0]),a.width-i[0]):Math.max(Math.abs(i[0]),a.width),o.height=i[1]<0?Math.max(Math.abs(i[1]),a.height-Math.abs(i[1])):Math.max(Math.abs(i[1]),a.height),e.tracker?e.tracker.attr(o):(e.tracker=n.renderer.rect(o).addClass("highcharts-tracker").add(n),V(e.tracker.element,"mouseenter",()=>An(e)),t.styledMode||e.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(e){return e.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}headerFooterFormatter(e,t){let n=e.series,r=n.tooltipOptions,o=n.xAxis,i=null==o?void 0:o.dateTime,a={isFooter:t,point:e},l=r.xDateFormat||"",s=r[t?"footerFormat":"headerFormat"];return le(this,"headerFormatter",a,function(t){if(i&&!l&&ye(e.key)&&(l=i.getXDateFormat(e.key,r.dateTimeLabelFormats)),i&&l){if(we(l)){let e=l;Pn[0]=t=>n.chart.time.dateFormat(e,t),l="%0"}(e.tooltipDateKeys||["key"]).forEach(e=>{s=s.replace(RegExp("point\\."+e+"([ \\)}])"),`(point.${e}:${l})$1`)})}n.chart.styledMode&&(s=this.styledModeFormat(s)),t.text=Tn(s,e,this.chart)}),a.text||""}update(e){this.destroy(),this.init(this.chart,Ce(!0,this.options,e))}updatePosition(e){var t;let n,{chart:r,container:o,distance:i,options:a,pointer:l,renderer:s}=this,{height:c=0,width:u=0}=this.getLabel(),{fixed:d,positioner:h}=a,{left:p,top:f,scaleX:m,scaleY:g}=l.getChartPosition(),y=(h||d&&this.getFixedPosition||this.getPosition).call(this,u,c,e,this),v=_.doc,b=(e.plotX||0)+r.plotLeft,x=(e.plotY||0)+r.plotTop;if(s&&o){let{scrollLeft:e=0,scrollTop:l=0}=(null==(t=r.scrollablePlotArea)?void 0:t.scrollingContainer)||{};y.x+=e+p,y.y+=l+f,n=(a.borderWidth||0)+2*i+2,s.setSize(U(u+n,0,v.documentElement.clientWidth)-1,c+n,!1),(1!==m||1!==g)&&(J(o,{transform:`scale(${m}, ${g})`}),b*=m,x*=g),b+=p-y.x,x+=f-y.y}this.move(Math.round(y.x),Math.round(y.y||0),b,x)}}(y=Rn||(Rn={})).compose=function(e){Pe(Mn,"Core.Tooltip")&&V(e,"afterInit",function(){let e=this.chart;e.options.tooltip&&(e.tooltip=new y(e,e.options.tooltip,this))})};let Ln=Rn,{animObject:Bn}=lt,{defaultOptions:zn}=Ze,{format:Dn}=wt;class jn{constructor(e,t,n){var r,o;this.formatPrefix="point",this.visible=!0,this.point=this,this.series=e,this.applyOptions(t,n),this.id??(this.id=_e()),this.resolveColor(),this.dataLabelOnNull??(this.dataLabelOnNull=e.options.nullInteraction),e.chart.pointCount++,this.category=(null==(o=null==(r=e.xAxis)?void 0:r.categories)?void 0:o[this.x])??this.x,this.key=this.name??this.category,le(this,"afterInit")}animateBeforeDestroy(){let e=this,t={x:e.startXPos,opacity:0},n=e.getGraphicalProps();n.singular.forEach(function(n){e[n]=e[n].animate("dataLabel"===n?{x:e[n].startXPos,y:e[n].startYPos,opacity:0}:t)}),n.plural.forEach(function(t){e[t].forEach(function(t){t.element&&t.animate(ie({x:e.startXPos},t.startYPos?{x:t.startXPos,y:t.startYPos}:{}))})})}applyOptions(e,t){let n=this.series,r=n.options.pointValKey||n.pointValKey;return ie(this,e=jn.prototype.optionsToObject.call(this,e)),this.options?this.options=n.chart.options.chart.allowMutatingData?ie(this.options,e):Ce(this.options,e):this.options=e,e.group&&delete this.group,e.dataLabels&&delete this.dataLabels,r&&(this.y=jn.prototype.getNestedProperty.call(this,r)),this.selected&&(this.state="select"),"name"in this&&void 0===t&&n.xAxis&&n.xAxis.hasNames&&(this.x=n.xAxis.nameToX(this)),void 0===this.x&&n?this.x=t??n.autoIncrement():ye(e.x)&&n.options.relativeXValue?this.x=n.autoIncrement(e.x):"string"==typeof this.x&&(t??(t=n.chart.time.parse(this.x)),ye(t)&&(this.x=t)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}destroy(){if(!this.destroyed){let e=this,t=e.series,n=t.chart,r=t.options.dataSorting,o=n.hoverPoints,i=Bn(e.series.chart.renderer.globalAnimation),a=()=>{for(let t in(e.graphic||e.graphics||e.dataLabel||e.dataLabels)&&(Oe(e),e.destroyElements()),e)delete e[t]};e.legendItem&&n.legend.destroyItem(e),o&&(e.setState(),oe(o,e),o.length||(n.hoverPoints=null)),e===n.hoverPoint&&e.onMouseOut(),(null==r?void 0:r.enabled)?(this.animateBeforeDestroy(),Le(a,i.duration)):a(),n.pointCount--}this.destroyed=!0}destroyElements(e){let t=this,n=t.getGraphicalProps(e);n.singular.forEach(function(e){t[e]=t[e].destroy()}),n.plural.forEach(function(e){t[e].forEach(function(e){(null==e?void 0:e.element)&&e.destroy()}),delete t[e]})}firePointEvent(e,t,n){let r=this,o=this.series.options;r.manageEvent(e),"click"===e&&o.allowPointSelect&&(n=function(e){!r.destroyed&&r.select&&r.select(null,e.ctrlKey||e.metaKey||e.shiftKey)}),le(r,e,t,n)}getClassName(){var e;return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative&&!1!==this.series.options.negativeColor?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+((null==(e=this.zone)?void 0:e.className)?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(e){let t,n,r=this,o=[],i={singular:[],plural:[]};for((e=e||{graphic:1,dataLabel:1}).graphic&&o.push("graphic","connector"),e.dataLabel&&o.push("dataLabel","dataLabelPath","dataLabelUpper"),n=o.length;n--;)r[t=o[n]]&&i.singular.push(t);return["graphic","dataLabel"].forEach(function(t){let n=t+"s";e[t]&&r[n]&&i.plural.push(n)}),i}getNestedProperty(e){if(e)return 0===e.indexOf("custom.")?de(e,this.options):this[e]}getZone(){let e,t=this.series,n=t.zones,r=t.zoneAxis||"y",o=0;for(e=n[0];this[r]>=e.value;)e=n[++o];return this.nonZonedColor||(this.nonZonedColor=this.color),(null==e?void 0:e.color)&&!this.options.color?this.color=e.color:this.color=this.nonZonedColor,e}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}isValid(){return(ye(this.x)||this.x instanceof Date)&&ye(this.y)}optionsToObject(e){var t;let n,r=this.series,o=r.options.keys,i=o||r.pointArrayMap||["y"],a=i.length,l={},s=0,c=0;if(ye(e)||null===e)l[i[0]]=e;else if(be(e))for(!o&&e.length>a&&("string"==(n=typeof e[0])?(null==(t=r.xAxis)?void 0:t.dateTime)?l.x=r.chart.time.parse(e[0]):l.name=e[0]:"number"===n&&(l.x=e[0]),s++);c<a;)o&&void 0===e[s]||(i[c].indexOf(".")>0?jn.prototype.setNestedProperty(l,e[s],i[c]):l[i[c]]=e[s]),s++,c++;else"object"==typeof e&&(l=e,e.dataLabels&&(r.hasDataLabels=()=>!0),e.marker&&(r._hasPointMarkers=!0));return l}pos(e,t=this.plotY){if(!this.destroyed){let{plotX:n,series:r}=this,{chart:o,xAxis:i,yAxis:a}=r,l=0,s=0;if(ye(n)&&ye(t))return e&&(l=i?i.pos:o.plotLeft,s=a?a.pos:o.plotTop),o.inverted&&i&&a?[a.len-t+s,i.len-n+l]:[n+l,t+s]}}resolveColor(){let e,t,n,r=this.series,o=r.chart.options.chart,i=r.chart.styledMode,a=o.colorCount;delete this.nonZonedColor,r.options.colorByPoint?(i||(e=(t=r.options.colors||r.chart.options.colors)[r.colorCounter],a=t.length),n=r.colorCounter,r.colorCounter++,r.colorCounter===a&&(r.colorCounter=0)):(i||(e=r.color),n=r.colorIndex),this.colorIndex=Te(this.options.colorIndex,n),this.color=Te(this.options.color,e)}setNestedProperty(e,t,n){return n.split(".").reduce(function(e,n,r,o){let i=o.length-1===r;return e[n]=i?t:we(e[n],!0)?e[n]:{},e[n]},e),e}shouldDraw(){return!this.isNull}tooltipFormatter(e){var t;let{chart:n,pointArrayMap:r=["y"],tooltipOptions:o}=this.series,{valueDecimals:i="",valuePrefix:a="",valueSuffix:l=""}=o;return n.styledMode&&(e=(null==(t=n.tooltip)?void 0:t.styledModeFormat(e))||e),r.forEach(t=>{t="{point."+t,(a||l)&&(e=e.replace(RegExp(t+"}","g"),a+t+"}"+l)),e=e.replace(RegExp(t+"}","g"),t+":,."+i+"f}")}),Dn(e,this,n)}update(e,t,n,r){let o,i=this,a=i.series,l=i.graphic,s=a.chart,c=a.options,u=c.data;function d(){i.applyOptions(e);let r=l&&i.hasMockGraphic,d=null===i.y?!r:r;l&&d&&(i.graphic=l.destroy(),delete i.hasMockGraphic),we(e,!0)&&((null==l?void 0:l.element)&&e&&e.marker&&void 0!==e.marker.symbol&&(i.graphic=l.destroy()),(null==e?void 0:e.dataLabels)&&i.dataLabel&&(i.dataLabel=i.dataLabel.destroy())),o=i.index;let h={};for(let e of a.dataColumnKeys())h[e]=i[e];a.dataTable.setRow(h,o),u&&!a.processedData&&(u[o]=we(u[o],!0)||we(e,!0)?i.options:e??u[o]),a.isDirty=a.isDirtyData=!0,!a.fixedBox&&a.hasCartesianSeries&&(s.isDirtyBox=!0),"point"===c.legendType&&(s.isDirtyLegend=!0),t&&s.redraw(n)}t=Te(t,!0),!1===r?d():i.firePointEvent("update",{options:e},d)}remove(e,t){this.series.removePoint(this.series.data.indexOf(this),e,t)}select(e,t){let n=this,r=n.series,o=r.chart;e=Te(e,!n.selected),this.selectedStaging=e,n.firePointEvent(e?"select":"unselect",{accumulate:t},function(){n.selected=n.options.selected=e,r.options.data[r.data.indexOf(n)]=n.options,n.setState(e&&"select"),t||o.getSelectedPoints().forEach(function(e){let t=e.series;e.selected&&e!==n&&(e.selected=e.options.selected=!1,t.options.data[t.data.indexOf(e)]=e.options,e.setState(o.hoverPoints&&t.options.inactiveOtherPoints?"inactive":""),e.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(e){let{inverted:t,pointer:n}=this.series.chart;n&&(e=e?n.normalize(e):n.getChartCoordinatesFromPoint(this,t),n.runPointActions(e,this))}onMouseOut(){let e=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(e.hoverPoints||[]).forEach(function(e){e.setState()}),e.hoverPoints=e.hoverPoint=null}manageEvent(e){var t,n,r,o,i,a,l;let s=null==(t=Ce(this.series.options.point,this.options).events)?void 0:t[e];!xe(s)||(null==(n=this.hcEvents)?void 0:n[e])&&-1!==(null==(o=null==(r=this.hcEvents)?void 0:r[e])?void 0:o.map(e=>e.fn).indexOf(s))?this.importedUserEvent&&!s&&(null==(a=this.hcEvents)?void 0:a[e])&&(null==(l=this.hcEvents)?void 0:l[e].userEvent)&&(Oe(this,e),delete this.hcEvents[e],Object.keys(this.hcEvents)||delete this.importedUserEvent):(null==(i=this.importedUserEvent)||i.call(this),this.importedUserEvent=V(this,e,s),this.hcEvents&&(this.hcEvents[e].userEvent=!0))}setState(e,t){var n,r;let o,i,a,l,s=this.series,c=this.state,u=s.options.states[e||"normal"]||{},d=zn.plotOptions[s.type].marker&&s.options.marker,h=d&&!1===d.enabled,p=(null==(n=null==d?void 0:d.states)?void 0:n[e||"normal"])||{},f=!1===p.enabled,m=this.marker||{},g=s.chart,y=d&&s.markerAttribs,v=s.halo,b=s.stateMarkerGraphic;if((e=e||"")===this.state&&!t||this.selected&&"select"!==e||!1===u.enabled||e&&(f||h&&!1===p.enabled)||e&&m.states&&m.states[e]&&!1===m.states[e].enabled)return;if(this.state=e,y&&(o=s.markerAttribs(this,e)),this.graphic&&!this.hasMockGraphic){if(c&&this.graphic.removeClass("highcharts-point-"+c),e&&this.graphic.addClass("highcharts-point-"+e),!g.styledMode){i=s.pointAttribs(this,e),a=Te(g.options.chart.animation,u.animation);let t=i.opacity;s.options.inactiveOtherPoints&&ye(t)&&(this.dataLabels||[]).forEach(function(e){e&&!e.hasClass("highcharts-data-label-hidden")&&(e.animate({opacity:t},a),e.connector&&e.connector.animate({opacity:t},a))}),this.graphic.animate(i,a)}o&&this.graphic.animate(o,Te(g.options.chart.animation,p.animation,d.animation)),b&&b.hide()}else e&&p&&(l=m.symbol||s.symbol,b&&b.currentSymbol!==l&&(b=b.destroy()),o&&(b?b[t?"animate":"attr"]({x:o.x,y:o.y}):l&&(s.stateMarkerGraphic=b=g.renderer.symbol(l,o.x,o.y,o.width,o.height,Ce(d,p)).add(s.markerGroup),b.currentSymbol=l)),!g.styledMode&&b&&"inactive"!==this.state&&b.attr(s.pointAttribs(this,e))),b&&(b[e&&this.isInside?"show":"hide"](),b.element.point=this,b.addClass(this.getClassName(),!0));let x=u.halo,w=this.graphic||b,C=(null==w?void 0:w.visibility)||"inherit";(null==x?void 0:x.size)&&w&&"hidden"!==C&&!this.isCluster?(v||(s.halo=v=g.renderer.path().add(w.parentGroup)),v.show()[t?"animate":"attr"]({d:this.haloPath(x.size)}),v.attr({class:"highcharts-halo highcharts-color-"+Te(this.colorIndex,s.colorIndex)+(this.className?" "+this.className:""),visibility:C,zIndex:-1}),v.point=this,g.styledMode||v.attr(ie({fill:this.color||s.color,"fill-opacity":x.opacity},pt.filterUserAttributes(x.attributes||{})))):(null==(r=null==v?void 0:v.point)?void 0:r.haloPath)&&!v.point.destroyed&&v.animate({d:v.point.haloPath(0)},null,v.hide),le(this,"afterSetState",{state:e})}haloPath(e){let t=this.pos();return t?this.series.chart.renderer.symbols.circle(Q(t[0],1)-e,t[1]-e,2*e,2*e):[]}}let Fn=jn,{parse:Hn}=tt,{charts:_n,composed:Wn,isTouchDevice:Kn}=_,Vn=(e,t)=>!ee(t)||e[`${t}Key`];class Gn{applyInactiveState(e=[]){var t,n;let r=[];for(let o of(e.forEach(e=>{let t=e.series;r.push(t),t.linkedParent&&r.push(t.linkedParent),t.linkedSeries&&r.push.apply(r,t.linkedSeries),t.navigatorSeries&&r.push(t.navigatorSeries),t.boosted&&t.markerGroup&&r.push.apply(r,this.chart.series.filter(e=>e.markerGroup===t.markerGroup))}),this.chart.series)){let e=o.options;!1!==(null==(n=null==(t=e.states)?void 0:t.inactive)?void 0:n.enabled)&&(-1===r.indexOf(o)?o.setState("inactive",!0):e.inactiveOtherPoints&&o.setAllPointsToState("inactive"))}}destroy(){let e=this;this.eventsToUnbind.forEach(e=>e()),this.eventsToUnbind=[],!_.chartCount&&(Gn.unbindDocumentMouseUp.forEach(e=>e.unbind()),Gn.unbindDocumentMouseUp.length=0,Gn.unbindDocumentTouchEnd&&(Gn.unbindDocumentTouchEnd=Gn.unbindDocumentTouchEnd())),Se(e,function(t,n){e[n]=void 0})}getSelectionMarkerAttrs(e,t){let n={args:{chartX:e,chartY:t},attrs:{},shapeType:"rect"};return le(this,"getSelectionMarkerAttrs",n,n=>{let r,{chart:o,zoomHor:i,zoomVert:a}=this,{mouseDownX:l=0,mouseDownY:s=0}=o,c=n.attrs;c.x=o.plotLeft,c.y=o.plotTop,c.width=i?1:o.plotWidth,c.height=a?1:o.plotHeight,i&&(c.width=Math.max(1,Math.abs(r=e-l)),c.x=(r>0?0:r)+l),a&&(c.height=Math.max(1,Math.abs(r=t-s)),c.y=(r>0?0:r)+s)}),n}drag(e){let t,{chart:n}=this,{mouseDownX:r=0,mouseDownY:o=0}=n,{panning:i,panKey:a,selectionMarkerFill:l}=n.options.chart,s=n.plotLeft,c=n.plotTop,u=n.plotWidth,d=n.plotHeight,h=we(i)?i.enabled:i,p=a&&e[`${a}Key`],f=e.chartX,m=e.chartY,g=this.selectionMarker;if((!g||!g.touch)&&(f<s?f=s:f>s+u&&(f=s+u),m<c?m=c:m>c+d&&(m=c+d),this.hasDragged=Math.sqrt(Math.pow(r-f,2)+Math.pow(o-m,2)),this.hasDragged>10)){t=n.isInsidePlot(r-s,o-c,{visiblePlotOnly:!0});let{shapeType:u,attrs:d}=this.getSelectionMarkerAttrs(f,m);this.hasZoom&&t&&!p&&!g&&(this.selectionMarker=g=n.renderer[u](),g.attr({class:"highcharts-selection-marker",zIndex:7}).add(),n.styledMode||g.attr({fill:l||Hn("#334eff").setOpacity(.25).get()})),g&&g.attr(d),t&&!g&&h&&Vn(e,a)&&n.pan(e,i)}}dragStart(e){let t=this.chart;t.mouseIsDown=e.type,t.cancelClick=!1,t.mouseDownX=e.chartX,t.mouseDownY=e.chartY}getSelectionBox(e){let t={args:{marker:e},result:e.getBBox()};return le(this,"getSelectionBox",t),t.result}drop(e){let t,{chart:n,selectionMarker:r}=this;for(let e of n.axes)e.isPanning&&(e.isPanning=!1,(e.options.startOnTick||e.options.endOnTick||e.series.some(e=>e.boosted))&&(e.forceRedraw=!0,e.setExtremes(e.userMin,e.userMax,!1),t=!0));if(t&&n.redraw(),r&&e){if(this.hasDragged){let t=this.getSelectionBox(r);n.transform({axes:n.axes.filter(e=>e.zoomEnabled&&("xAxis"===e.coll&&this.zoomX||"yAxis"===e.coll&&this.zoomY)),selection:{originalEvent:e,xAxis:[],yAxis:[],...t},from:t})}ye(n.index)&&(this.selectionMarker=r.destroy())}n&&ye(n.index)&&(J(n.container,{cursor:n._cursor}),n.cancelClick=this.hasDragged>10,n.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[],this.hasPinchMoved=!1)}findNearestKDPoint(e,t,n){let r;return e.forEach(function(e){var o,i,a;let l,s,c,u=!(e.noSharedTooltip&&t)&&0>e.options.findNearestPointBy.indexOf("y"),d=e.searchPoint(n,u);we(d,!0)&&d.series&&(!we(r,!0)||(l=(a=r).distX-d.distX,s=a.dist-d.dist,c=(null==(o=d.series.group)?void 0:o.zIndex)-(null==(i=a.series.group)?void 0:i.zIndex),(0!==l&&t?l:0!==s?s:0!==c?c:a.series.index>d.series.index?-1:1)>0))&&(r=d)}),r}getChartCoordinatesFromPoint(e,t){let{xAxis:n,yAxis:r}=e.series,o=e.shapeArgs;if(n&&r){let i=e.clientX??e.plotX??0,a=e.plotY||0;return e.isNode&&o&&ye(o.x)&&ye(o.y)&&(i=o.x,a=o.y),t?{chartX:r.len+r.pos-a,chartY:n.len+n.pos-i}:{chartX:i+n.pos,chartY:a+r.pos}}if((null==o?void 0:o.x)&&o.y)return{chartX:o.x,chartY:o.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:e}=this.chart,t=Ee(e);this.chartPosition={left:t.left,top:t.top,scaleX:1,scaleY:1};let{offsetHeight:n,offsetWidth:r}=e;return r>2&&n>2&&(this.chartPosition.scaleX=t.width/r,this.chartPosition.scaleY=t.height/n),this.chartPosition}getCoordinates(e){let t={xAxis:[],yAxis:[]};for(let n of this.chart.axes)t[n.isXAxis?"xAxis":"yAxis"].push({axis:n,value:n.toValue(e[n.horiz?"chartX":"chartY"])});return t}getHoverData(e,t,n,r,o,i){let a,l=[],s=function(e){return e.visible&&!(!o&&e.directTouch)&&Te(e.options.enableMouseTracking,!0)},c=t,u={chartX:i?i.chartX:void 0,chartY:i?i.chartY:void 0,shared:o};le(this,"beforeGetHoverData",u),a=c&&!c.stickyTracking?[c]:n.filter(e=>e.stickyTracking&&(u.filter||s)(e));let d=r&&e||!i?e:this.findNearestKDPoint(a,o,i);return c=null==d?void 0:d.series,d&&(o&&!c.noSharedTooltip?(a=n.filter(function(e){return u.filter?u.filter(e):s(e)&&!e.noSharedTooltip})).forEach(function(e){var t;let n=null==(t=e.options)?void 0:t.nullInteraction,r=pe(e.points,function(e){return!(e.x!==d.x||e.isNull&&!n)});we(r)&&(e.boosted&&e.boost&&(r=e.boost.getPoint(r)),l.push(r))}):l.push(d)),le(this,"afterGetHoverData",u={hoverPoint:d}),{hoverPoint:u.hoverPoint,hoverSeries:c,hoverPoints:l}}getPointFromEvent(e){let t,n=e.target;for(;n&&!t;)t=n.point,n=n.parentNode;return t}onTrackerMouseOut(e){let t=this.chart,n=e.relatedTarget,r=t.hoverSeries;this.isDirectTouch=!1,!r||!n||r.stickyTracking||this.inClass(n,"highcharts-tooltip")||this.inClass(n,"highcharts-series-"+r.index)&&this.inClass(n,"highcharts-tracker")||r.onMouseOut()}inClass(e,t){let n,r=e;for(;r;){if(n=X(r,"class")){if(-1!==n.indexOf(t))return!0;if(-1!==n.indexOf("highcharts-container"))return!1}r=r.parentElement}}constructor(e,t){var n;this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=t,this.chart=e,this.runChartClick=!!(null==(n=t.chart.events)?void 0:n.click),this.pinchDown=[],this.setDOMEvents(),le(this,"afterInit")}normalize(e,t){let n=e.touches,r=n?n.length?n.item(0):Te(n.changedTouches,e.changedTouches)[0]:e;t||(t=this.getChartPosition());let o=r.pageX-t.left,i=r.pageY-t.top;return ie(e,{chartX:Math.round(o/=t.scaleX),chartY:Math.round(i/=t.scaleY)})}onContainerClick(e){let t=this.chart,n=t.hoverPoint,r=this.normalize(e),o=t.plotLeft,i=t.plotTop;!t.cancelClick&&(n&&this.inClass(r.target,"highcharts-tracker")?(le(n.series,"click",ie(r,{point:n})),t.hoverPoint&&n.firePointEvent("click",r)):(ie(r,this.getCoordinates(r)),t.isInsidePlot(r.chartX-o,r.chartY-i,{visiblePlotOnly:!0})&&le(t,"click",r)))}onContainerMouseDown(e){var t;let n=!(1&~(e.buttons||e.button));e=this.normalize(e),_.isFirefox&&0!==e.button&&this.onContainerMouseMove(e),(void 0===e.button||n)&&(this.zoomOption(e),n&&(null==(t=e.preventDefault)||t.call(e)),this.dragStart(e))}onContainerMouseLeave(e){let{pointer:t}=_n[Te(Gn.hoverChartIndex,-1)]||{};e=this.normalize(e),this.onContainerMouseMove(e),t&&!this.inClass(e.relatedTarget,"highcharts-tooltip")&&(t.reset(),t.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(e){var t;let n=this.chart,r=n.tooltip,o=this.normalize(e);this.setHoverChartIndex(e),("mousedown"===n.mouseIsDown||this.touchSelect(o))&&this.drag(o),!(null==(t=n.exporting)?void 0:t.openMenu)&&(this.inClass(o.target,"highcharts-tracker")||n.isInsidePlot(o.chartX-n.plotLeft,o.chartY-n.plotTop,{visiblePlotOnly:!0}))&&!(null==r?void 0:r.shouldStickOnContact(o))&&(this.inClass(o.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(o))}onDocumentTouchEnd(e){this.onDocumentMouseUp(e)}onContainerTouchMove(e){this.touchSelect(e)?this.onContainerMouseMove(e):this.touch(e)}onContainerTouchStart(e){this.touchSelect(e)?this.onContainerMouseDown(e):(this.zoomOption(e),this.touch(e,!0))}onDocumentMouseMove(e){let t=this.chart,n=t.tooltip,r=this.chartPosition,o=this.normalize(e,r);!r||t.isInsidePlot(o.chartX-t.plotLeft,o.chartY-t.plotTop,{visiblePlotOnly:!0})||(null==n?void 0:n.shouldStickOnContact(o))||o.target!==t.container.ownerDocument&&this.inClass(o.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(e){var t,n,r;(null==e?void 0:e.touches)&&this.hasPinchMoved&&(null==(t=null==e?void 0:e.preventDefault)||t.call(e)),null==(r=null==(n=_n[Te(Gn.hoverChartIndex,-1)])?void 0:n.pointer)||r.drop(e)}pinch(e){let t=this,{chart:n,hasZoom:r,lastTouches:o}=t,i=[].map.call(e.touches||[],e=>t.normalize(e)),a=i.length,l=1===a&&(t.inClass(e.target,"highcharts-tracker")&&n.runTrackerClick||t.runChartClick),s=n.tooltip,c=1===a&&Te(null==s?void 0:s.options.followTouchMove,!0);a>1?t.initiated=!0:c&&(t.initiated=!1),r&&t.initiated&&!l&&!1!==e.cancelable&&e.preventDefault(),"touchstart"===e.type?(t.pinchDown=i,t.res=!0,n.mouseDownX=e.chartX):c?this.runPointActions(t.normalize(e)):o&&(le(n,"touchpan",{originalEvent:e,touches:i},()=>{let t=e=>{let t=e[0],n=e[1]||t;return{x:t.chartX,y:t.chartY,width:n.chartX-t.chartX,height:n.chartY-t.chartY}};n.transform({axes:n.axes.filter(e=>e.zoomEnabled&&(this.zoomHor&&e.horiz||this.zoomVert&&!e.horiz)),to:t(i),from:t(o),trigger:e.type})}),t.res&&(t.res=!1,this.reset(!1,0))),t.lastTouches=i}reset(e,t){let n=this.chart,r=n.hoverSeries,o=n.hoverPoint,i=n.hoverPoints,a=n.tooltip,l=(null==a?void 0:a.shared)?i:o;e&&l&&Ae(l).forEach(function(t){t.series.isCartesian&&void 0===t.plotX&&(e=!1)}),e?a&&l&&Ae(l).length&&(a.refresh(l),a.shared&&i?i.forEach(function(e){e.setState(e.state,!0),e.series.isCartesian&&(e.series.xAxis.crosshair&&e.series.xAxis.drawCrosshair(null,e),e.series.yAxis.crosshair&&e.series.yAxis.drawCrosshair(null,e))}):o&&(o.setState(o.state,!0),n.axes.forEach(function(e){e.crosshair&&o.series[e.coll]===e&&e.drawCrosshair(null,o)}))):(o&&o.onMouseOut(),i&&i.forEach(function(e){e.setState()}),r&&r.onMouseOut(),a&&a.hide(t),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),n.axes.forEach(function(e){e.hideCrosshair()}),n.hoverPoints=n.hoverPoint=void 0)}runPointActions(e,t,n){var r;let o=this.chart,i=o.series,a=(null==(r=o.tooltip)?void 0:r.options.enabled)?o.tooltip:void 0,l=!!a&&a.shared,s=t||o.hoverPoint,c=(null==s?void 0:s.series)||o.hoverSeries,u=(!e||"touchmove"!==e.type)&&(!!t||(null==c?void 0:c.directTouch)&&this.isDirectTouch),d=this.getHoverData(s,c,i,u,l,e);s=d.hoverPoint,c=d.hoverSeries;let h=d.hoverPoints,p=(null==c?void 0:c.tooltipOptions.followPointer)&&!c.tooltipOptions.split,f=l&&c&&!c.noSharedTooltip;if(s&&(n||s!==o.hoverPoint||(null==a?void 0:a.isHidden))){if((o.hoverPoints||[]).forEach(function(e){-1===h.indexOf(e)&&e.setState()}),o.hoverSeries!==c&&c.onMouseOver(),this.applyInactiveState(h),(h||[]).forEach(function(e){e.setState("hover")}),o.hoverPoint&&o.hoverPoint.firePointEvent("mouseOut"),!s.series)return;o.hoverPoints=h,o.hoverPoint=s,s.firePointEvent("mouseOver",void 0,()=>{a&&s&&a.refresh(f?h:s,e)})}else if(p&&a&&!a.isHidden){let t=a.getAnchor([{}],e);o.isInsidePlot(t[0],t[1],{visiblePlotOnly:!0})&&a.updatePosition({plotX:t[0],plotY:t[1]})}this.unDocMouseMove||(this.unDocMouseMove=V(o.container.ownerDocument,"mousemove",e=>{var t,n;return null==(n=null==(t=_n[Gn.hoverChartIndex??-1])?void 0:t.pointer)?void 0:n.onDocumentMouseMove(e)}),this.eventsToUnbind.push(this.unDocMouseMove)),o.axes.forEach(function(t){var n;let r,i=(null==(n=t.crosshair)?void 0:n.snap)??!0;i&&((r=o.hoverPoint)&&r.series[t.coll]===t||(r=pe(h,e=>{var n;return(null==(n=e.series)?void 0:n[t.coll])===t}))),r||!i?t.drawCrosshair(e,r):t.hideCrosshair()})}setDOMEvents(){let e=this.chart.container,t=e.ownerDocument,n=e=>{var t,n;return e.parentElement||(null==(n=null==(t=e.getRootNode())?void 0:t.host)?void 0:n.parentElement)};e.onmousedown=this.onContainerMouseDown.bind(this),e.onmousemove=this.onContainerMouseMove.bind(this),e.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(V(e,"mouseenter",this.onContainerMouseEnter.bind(this)),V(e,"mouseleave",this.onContainerMouseLeave.bind(this))),Gn.unbindDocumentMouseUp.some(e=>e.doc===t)||Gn.unbindDocumentMouseUp.push({doc:t,unbind:V(t,"mouseup",this.onDocumentMouseUp.bind(this))});let r=n(this.chart.renderTo);for(;r&&"BODY"!==r.tagName;)this.eventsToUnbind.push(V(r,"scroll",()=>{delete this.chartPosition})),r=n(r);this.eventsToUnbind.push(V(e,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),V(e,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),Gn.unbindDocumentTouchEnd||(Gn.unbindDocumentTouchEnd=V(t,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),V(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){var e,t;if(!Kn)return;let n=this.pointerCaptureEventsToUnbind,r=this.chart,o=r.container,i=Te(null==(e=r.options.tooltip)?void 0:e.followTouchMove,!0)&&r.series.some(e=>e.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&i?(n.push(V(o,"pointerdown",e=>{var t,n;(null==(t=e.target)?void 0:t.hasPointerCapture(e.pointerId))&&(null==(n=e.target)||n.releasePointerCapture(e.pointerId))}),V(o,"pointermove",e=>{var t,n;null==(n=null==(t=r.pointer)?void 0:t.getPointFromEvent(e))||n.onMouseOver(e)})),r.styledMode||J(o,{"touch-action":"none"}),o.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!i&&(n.forEach(e=>e()),n.length=0,r.styledMode||J(o,{"touch-action":Te(null==(t=r.options.chart.style)?void 0:t["touch-action"],"manipulation")}),o.className=o.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}setHoverChartIndex(e){var t;let n=this.chart,r=_.charts[Te(Gn.hoverChartIndex,-1)];if(r&&r!==n){let o={relatedTarget:n.container};e&&!(null==e?void 0:e.relatedTarget)&&Object.assign({},e,o),null==(t=r.pointer)||t.onContainerMouseLeave(e||o)}(null==r?void 0:r.mouseIsDown)||(Gn.hoverChartIndex=n.index)}touch(e,t){var n;let r,{chart:o,pinchDown:i=[]}=this;this.setHoverChartIndex(),1===(e=this.normalize(e)).touches.length?o.isInsidePlot(e.chartX-o.plotLeft,e.chartY-o.plotTop,{visiblePlotOnly:!0})&&!(null==(n=o.exporting)?void 0:n.openMenu)?(t&&this.runPointActions(e),"touchmove"===e.type&&(this.hasPinchMoved=r=!!i[0]&&Math.pow(i[0].chartX-e.chartX,2)+Math.pow(i[0].chartY-e.chartY,2)>=16),Te(r,!0)&&this.pinch(e)):t&&this.reset():2===e.touches.length&&this.pinch(e)}touchSelect(e){return!(!this.chart.zooming.singleTouch||!e.touches||1!==e.touches.length)}zoomOption(e){let t,n,r=this.chart,o=r.inverted,i=r.zooming.type||"";/touch/.test(e.type)&&(i=Te(r.zooming.pinchType,i)),this.zoomX=t=/x/.test(i),this.zoomY=n=/y/.test(i),this.zoomHor=t&&!o||n&&o,this.zoomVert=n&&!o||t&&o,this.hasZoom=(t||n)&&Vn(e,r.zooming.key)}}Gn.unbindDocumentMouseUp=[],(v=Gn||(Gn={})).compose=function(e){Pe(Wn,"Core.Pointer")&&V(e,"beforeRender",function(){this.pointer=new v(this,this.options)})};let qn=Gn,{setLength:Xn,splice:Un}={setLength:function(e,t,n){return Array.isArray(e)?(e.length=t,e):e[n?"subarray":"slice"](0,t)},splice:function(e,t,n,r,o=[]){if(Array.isArray(e))return Array.isArray(o)||(o=Array.from(o)),{removed:e.splice(t,n,...o),array:e};let i=Object.getPrototypeOf(e).constructor,a=e[r?"subarray":"slice"](t,t+n),l=new i(e.length-n+o.length);return l.set(e.subarray(0,t),0),l.set(o,t),l.set(e.subarray(t+n),t+o.length),{removed:a,array:l}}},Yn=class{constructor(e={}){this.autoId=!e.id,this.columns={},this.id=e.id||_e(),this.rowCount=0,this.versionTag=_e();let t=0;Se(e.columns||{},(e,n)=>{this.columns[n]=e.slice(),t=Math.max(t,e.length)}),this.applyRowCount(t)}applyRowCount(e){this.rowCount=e,Se(this.columns,(t,n)=>{t.length!==e&&(this.columns[n]=Xn(t,e))})}deleteRows(e,t=1){if(t>0&&e<this.rowCount){let n=0;Se(this.columns,(r,o)=>{this.columns[o]=Un(r,e,t).array,n=r.length}),this.rowCount=n}le(this,"afterDeleteRows",{rowIndex:e,rowCount:t}),this.versionTag=_e()}getColumn(e,t){return this.columns[e]}getColumns(e,t){return(e||Object.keys(this.columns)).reduce((e,t)=>(e[t]=this.columns[t],e),{})}getRow(e,t){return(t||Object.keys(this.columns)).map(t=>{var n;return null==(n=this.columns[t])?void 0:n[e]})}setColumn(e,t=[],n=0,r){this.setColumns({[e]:t},n,r)}setColumns(e,t,n){let r=this.rowCount;Se(e,(e,t)=>{this.columns[t]=e.slice(),r=e.length}),this.applyRowCount(r),(null==n?void 0:n.silent)||(le(this,"afterSetColumns"),this.versionTag=_e())}setRow(e,t=this.rowCount,n,r){let{columns:o}=this,i=n?this.rowCount+1:t+1,a=Object.keys(e);if(!1!==(null==r?void 0:r.addColumns))for(let e=0,t=a.length;e<t;e++){let t=a[e];o[t]||(o[t]=[])}Se(o,(a,l)=>{a||!1===(null==r?void 0:r.addColumns)||(a=Array(i)),a&&(n?a=Un(a,t,0,!0,[e[l]??null]).array:a[t]=e[l]??null,o[l]=a)}),i>this.rowCount&&this.applyRowCount(i),(null==r?void 0:r.silent)||(le(this,"afterSetRows"),this.versionTag=_e())}getModified(){return this.modified||this}};var Zn=I||(I={});function Qn(e,t,n){var r,o;let i,a=this.legendItem=this.legendItem||{},{chart:l,options:s}=this,{baseline:c=0,symbolWidth:u,symbolHeight:d}=e,h=this.symbol||"circle",p=d/2,f=l.renderer,m=a.group,g=c-Math.round(((null==(r=e.fontMetrics)?void 0:r.b)||d)*(n?.4:.3)),y={},v=s.marker,b=0;if(l.styledMode||(y["stroke-width"]=Math.min(s.lineWidth||0,24),s.dashStyle?y.dashstyle=s.dashStyle:"square"!==s.linecap&&(y["stroke-linecap"]="round")),a.line=f.path().addClass("highcharts-graph").attr(y).add(m),n&&(a.area=f.path().addClass("highcharts-area").add(m)),y["stroke-linecap"]&&(b=Math.min(a.line.strokeWidth(),u)/2),u){let e=[["M",b,g],["L",u-b,g]];a.line.attr({d:e}),null==(o=a.area)||o.attr({d:[...e,["L",u-b,c],["L",b,c]]})}if(v&&!1!==v.enabled&&u){let e=Math.min(Te(v.radius,p),p);0===h.indexOf("url")&&(v=Ce(v,{width:d,height:d}),e=0),a.symbol=i=f.symbol(h,u/2-e,g-e,2*e,2*e,ie({context:"legend"},v)).addClass("highcharts-point").add(m),i.isMarker=!0}}Zn.areaMarker=function(e,t){Qn.call(this,e,t,!0)},Zn.lineMarker=Qn;let Jn=I,{defaultOptions:er}=Ze;var tr=O||(O={});function nr(e,t){let n=er.plotOptions||{},r=t.defaultOptions,o=t.prototype;return o.type=e,o.pointClass||(o.pointClass=Fn),!tr.seriesTypes[e]&&(r&&(n[e]=r),tr.seriesTypes[e]=t,!0)}tr.seriesTypes=_.seriesTypes,tr.registerSeriesType=nr,tr.seriesType=function(e,t,n,r,o){let i=er.plotOptions||{};if(t=t||"",i[e]=Ce(i[t],n),delete tr.seriesTypes[e],nr(e,ae(tr.seriesTypes[t]||_.Series,r)),tr.seriesTypes[e].prototype.type=e,o){class t extends Fn{}ie(t.prototype,o),tr.seriesTypes[e].prototype.pointClass=t}return tr.seriesTypes[e]};let rr=O,{animObject:or,setAnimation:ir}=lt,{defaultOptions:ar}=Ze,{registerEventOptions:lr}=dn,{svg:sr,win:cr}=_,{seriesTypes:ur}=rr,{format:dr}=wt;class hr{constructor(){this.zoneAxis="y"}init(e,t){var n,r,o;let i;le(this,"init",{options:t}),this.dataTable??(this.dataTable=new Yn);let a=e.series;this.eventsToUnbind=[],this.chart=e,this.options=this.setOptions(t);let l=this.options,s=!1!==l.visible;this.linkedSeries=[],this.bindAxes(),ie(this,{name:l.name,state:"",visible:s,selected:!0===l.selected}),lr(this,l);let c=l.events;((null==c?void 0:c.click)||(null==(r=null==(n=l.point)?void 0:n.events)?void 0:r.click)||l.allowPointSelect)&&(e.runTrackerClick=!0),this.getColor(),this.getSymbol(),this.isCartesian&&(e.hasCartesianSeries=!0),a.length&&(i=a[a.length-1]),this._i=Te(null==i?void 0:i._i,-1)+1,this.opacity=this.options.opacity,e.orderItems("series",Fe(this,a)),(null==(o=l.dataSorting)?void 0:o.enabled)?this.setDataSortingOptions():this.points||this.data||this.setData(l.data,!1),le(this,"afterInit")}is(e){return ur[e]&&this instanceof ur[e]}bindAxes(){let e,t=this,n=t.options,r=t.chart;le(this,"bindAxes",null,function(){(t.axisTypes||[]).forEach(function(o){(r[o]||[]).forEach(function(r){e=r.options,(Te(n[o],0)===r.index||void 0!==n[o]&&n[o]===e.id)&&(Fe(t,r.series),t[o]=r,r.isDirty=!0)}),t[o]||t.optionalAxis===o||je(18,!0,r)})}),le(this,"afterBindAxes")}hasData(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.dataTable.rowCount>0}hasMarkerChanged(e,t){let n=e.marker,r=t.marker||{};return n&&(r.enabled&&!n.enabled||r.symbol!==n.symbol||r.height!==n.height||r.width!==n.width)}autoIncrement(e){let t,n=this.options,{pointIntervalUnit:r,relativeXValue:o}=this.options,i=this.chart.time,a=this.xIncrement??i.parse(n.pointStart)??0;if(this.pointInterval=t=Te(this.pointInterval,n.pointInterval,1),o&&ye(e)&&(t*=e),r){let e=i.toParts(a);"day"===r?e[2]+=t:"month"===r?e[1]+=t:"year"===r&&(e[0]+=t),t=i.makeTime.apply(i,e)-a}return o&&ye(e)?a+t:(this.xIncrement=a+t,a)}setDataSortingOptions(){let e=this.options;ie(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),ee(e.pointRange)||(e.pointRange=1)}setOptions(e){var t,n;let r,o=this.chart,i=o.options.plotOptions,a=o.userOptions||{},l=Ce(e),s=o.styledMode,c={plotOptions:i,userOptions:l};le(this,"setOptions",c);let u=c.plotOptions[this.type],d=a.plotOptions||{},h=d.series||{},p=ar.plotOptions[this.type]||{},f=d[this.type]||{};u.dataLabels=this.mergeArrays(p.dataLabels,u.dataLabels),this.userOptions=c.userOptions;let m=Ce(u,i.series,f,l);this.tooltipOptions=Ce(ar.tooltip,null==(t=ar.plotOptions.series)?void 0:t.tooltip,null==p?void 0:p.tooltip,o.userOptions.tooltip,null==(n=d.series)?void 0:n.tooltip,f.tooltip,l.tooltip),this.stickyTracking=Te(l.stickyTracking,f.stickyTracking,h.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||m.stickyTracking),null===u.marker&&delete m.marker;let{negativeColor:g,negativeFillColor:y,zoneAxis:v="y",zones:b}=m,x=this.zones=(b||[]).map(e=>({...e}));return this.zoneAxis=v,(g||y)&&!b&&(r={value:m[v+"Threshold"]||m.threshold||0,className:"highcharts-negative"},s||("boolean"!=typeof g&&(r.color=g),r.fillColor=y),x.push(r)),x.length&&ee(x[x.length-1].value)&&x.push(s?{}:{color:this.color,fillColor:this.fillColor}),le(this,"afterSetOptions",{options:m}),m}getName(){return this.options.name??dr(this.chart.options.lang.seriesName,this,this.chart)}getCyclic(e,t,n){let r,o,i=this.chart,a=`${e}Index`,l=`${e}Counter`,s=(null==n?void 0:n.length)||i.options.chart.colorCount;!t&&(ee(o=Te("color"===e?this.options.colorIndex:void 0,this[a]))?r=o:(i.series.length||(i[l]=0),r=i[l]%s,i[l]+=1),n&&(t=n[r])),void 0!==r&&(this[a]=r),this[e]=t}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||ar.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let e=this.options.marker;this.getCyclic("symbol",e.symbol,this.chart.options.symbols)}getColumn(e,t){return(t?this.dataTable.getModified():this.dataTable).getColumn(e,!0)||[]}findPointIndex(e,t){var n;let r,o,i,{id:a,x:l}=e,s=this.points,c=this.options.dataSorting,u=this.cropStart||0;if(a){let e=this.chart.get(a);e instanceof Fn&&(r=e)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let t=t=>!t.touched&&t.index===e.index;if((null==c?void 0:c.matchByName)?t=t=>!t.touched&&t.name===e.name:this.options.relativeXValue&&(t=t=>!t.touched&&t.options.x===e.x),!(r=pe(s,t)))return}return r&&void 0!==(i=null==r?void 0:r.index)&&(o=!0),void 0===i&&ye(l)&&(i=this.getColumn("x").indexOf(l,t)),-1!==i&&void 0!==i&&this.cropped&&(i=i>=u?i-u:i),!o&&ye(i)&&(null==(n=s[i])?void 0:n.touched)&&(i=void 0),i}updateData(e,t){var n;let r,o,i,a,{options:l,requireSorting:s}=this,c=l.dataSorting,u=this.points,d=[],h=e.length===u.length,p=this.xIncrement,f=!0;if(this.xIncrement=null,e.forEach((e,t)=>{var n;let o,i=ee(e)&&this.pointClass.prototype.optionsToObject.call({series:this},e)||{},{id:p,x:f}=i;p||ye(f)?(-1===(o=this.findPointIndex(i,a))||void 0===o?d.push(e):u[o]&&e!==(null==(n=l.data)?void 0:n[o])?(u[o].update(e,!1,void 0,!1),u[o].touched=!0,s&&(a=o+1)):u[o]&&(u[o].touched=!0),(!h||t!==o||(null==c?void 0:c.enabled)||this.hasDerivedData)&&(r=!0)):d.push(e)},this),r)for(o=u.length;o--;)(i=u[o])&&!i.touched&&(null==(n=i.remove)||n.call(i,!1,t));else h&&!(null==c?void 0:c.enabled)?(e.forEach((e,t)=>{e===u[t].y||u[t].destroyed||u[t].update(e,!1,void 0,!1)}),d.length=0):f=!1;if(u.forEach(e=>{e&&(e.touched=!1)}),!f)return!1;d.forEach(e=>{this.addPoint(e,!1,void 0,void 0,!1)},this);let m=this.getColumn("x");return null!==p&&null===this.xIncrement&&m.length&&(this.xIncrement=q(m),this.autoIncrement()),!0}dataColumnKeys(){return["x",...this.pointArrayMap||["y"]]}setData(e,t=!0,n,r){var o,i;let a,l,s,c=this.points,u=(null==c?void 0:c.length)||0,d=this.options,h=this.chart,p=d.dataSorting,f=this.xAxis,m=d.turboThreshold,g=this.dataTable,y=this.dataColumnKeys(),v=this.pointValKey||"y",b=(this.pointArrayMap||[]).length,x=d.keys,w=0,C=1;h.options.chart.allowMutatingData||(d.data&&delete this.options.data,this.userOptions.data&&delete this.userOptions.data,s=Ce(!0,e));let k=(e=s||e||[]).length;if((null==p?void 0:p.enabled)&&(e=this.sortData(e)),!1!==r&&k&&u&&!this.cropped&&!this.hasGroupedData&&this.visible&&!this.boosted&&(l=this.updateData(e,n)),!l){this.xIncrement=null,this.colorCounter=0;let t=m&&!d.relativeXValue&&k>m;if(t){let n=this.getFirstValidPoint(e),r=this.getFirstValidPoint(e,k-1,-1),i=e=>!(!be(e)||!x&&!ye(e[0]));if(ye(n)&&ye(r)){let t=[],n=[];for(let r of e)t.push(this.autoIncrement()),n.push(r);g.setColumns({x:t,[v]:n})}else if(i(n)&&i(r))if(b){let t=+(n.length===b),r=Array(y.length).fill(0).map(()=>[]);for(let n of e){t&&r[0].push(this.autoIncrement());for(let e=t;e<=b;e++)null==(o=r[e])||o.push(n[e-t])}g.setColumns(y.reduce((e,t,n)=>(e[t]=r[n],e),{}))}else{x&&(w=x.indexOf("x"),C=x.indexOf("y"),w=w>=0?w:0,C=C>=0?C:1),1===n.length&&(C=0);let t=[],r=[];for(let n of e)w===C?t.push(this.autoIncrement()):t.push(n[w]??n.x??null),r.push(n[C]??n.y??null);g.setColumns({x:t,[v]:r})}else t=!1}if(!t){let t=y.reduce((e,t)=>(e[t]=[],e),{});for(a=0;a<k;a++){let n=this.pointClass.prototype.applyOptions.apply({series:this},[e[a]]);for(let e of y)t[e][a]=n[e]}g.setColumns(t)}for(ve(this.getColumn("y")[0])&&je(14,!0,h),this.data=[],this.options.data=this.userOptions.data=e,a=u;a--;)null==(i=c[a])||i.destroy();f&&(f.minRange=f.userMinRange),this.isDirty=h.isDirtyBox=!0,this.isDirtyData=!!c,n=!1}"point"===d.legendType&&(this.processData(),this.generatePoints()),t&&h.redraw(n)}sortData(e){let t=this,n=t.options.dataSorting.sortKey||"y",r=function(e,t){return ee(t)&&e.pointClass.prototype.optionsToObject.call({series:e},t)||{}};return e.forEach(function(n,o){e[o]=r(t,n),e[o].index=o},this),e.concat().sort((e,t)=>{let r=de(n,e),o=de(n,t);return o<r?-1:+(o>r)}).forEach(function(e,t){e.x=t},this),t.linkedSeries&&t.linkedSeries.forEach(function(t){var n;let o=t.options,i=o.data;!(null==(n=o.dataSorting)?void 0:n.enabled)&&i&&(i.forEach(function(n,o){i[o]=r(t,n),e[o]&&(i[o].x=e[o].x,i[o].index=o)}),t.setData(i,!1))}),e}getProcessedData(e){let t,n,r,o,i,a=this,{dataTable:l,isCartesian:s,options:c,xAxis:u}=a,d=c.cropThreshold,h=e||a.getExtremesFromAll,p=null==u?void 0:u.logarithmic,f=l.rowCount,m=0,g=a.getColumn("x"),y=l,v=!1;return u&&(o=(r=u.getExtremes()).min,i=r.max,v=!(!u.categories||u.names.length),s&&a.sorted&&!h&&(!d||f>d||a.forceCrop)&&(g[f-1]<o||g[0]>i?y=new Yn:a.getColumn(a.pointValKey||"y").length&&(g[0]<o||g[f-1]>i)&&(y=(t=this.cropData(l,o,i)).modified,m=t.start,n=!0))),g=y.getColumn("x")||[],{modified:y,cropped:n,cropStart:m,closestPointRange:ce([p?g.map(p.log2lin):g],()=>a.requireSorting&&!v&&je(15,!1,a.chart))}}processData(e){let t=this.xAxis,n=this.dataTable;if(this.isCartesian&&!this.isDirty&&!t.isDirty&&!this.yAxis.isDirty&&!e)return!1;let r=this.getProcessedData();n.modified=r.modified,this.cropped=r.cropped,this.cropStart=r.cropStart,this.closestPointRange=this.basePointRange=r.closestPointRange,le(this,"afterProcessData")}cropData(e,t,n){let r,o,i=e.getColumn("x",!0)||[],a=i.length,l={},s=0,c=a;for(r=0;r<a;r++)if(i[r]>=t){s=Math.max(0,r-1);break}for(o=r;o<a;o++)if(i[o]>n){c=o+1;break}for(let t of this.dataColumnKeys()){let n=e.getColumn(t,!0);n&&(l[t]=n.slice(s,c))}return{modified:new Yn({columns:l}),start:s,end:c}}generatePoints(){var e,t,n,r,o;let i,a,l,s,c,u=this.options,d=this.processedData||u.data,h=this.dataTable.getModified(),p=this.getColumn("x",!0),f=this.pointClass,m=h.rowCount,g=this.cropStart||0,y=this.hasGroupedData,v=u.keys,b=[],x=(null==(e=u.dataGrouping)?void 0:e.groupAll)?g:0,w=this.pointArrayMap||["y"],C=this.dataColumnKeys(),k=this.data;if(!k&&!y){let e=[];e.length=(null==d?void 0:d.length)||0,k=this.data=e}for(v&&y&&(this.options.keys=!1),s=0;s<m;s++)a=g+s,y?((l=new f(this,h.getRow(s,C)||[])).dataGroup=null==(t=this.groupMap)?void 0:t[x+s],(null==(n=l.dataGroup)?void 0:n.options)&&(l.options=l.dataGroup.options,ie(l,l.dataGroup.options),delete l.dataLabels,l.key=l.name??l.category)):(l=k[a],c=d?d[a]:h.getRow(s,w),l||void 0===c?l&&(l.category=(null==(o=null==(r=this.xAxis)?void 0:r.categories)?void 0:o[l.x])??l.x,l.key=l.name??l.category):k[a]=l=new f(this,c,p[s])),l&&(l.index=y?x+s:a,b[s]=l);if(this.options.keys=v,k&&(m!==(i=k.length)||y))for(s=0;s<i;s++)s!==g||y||(s+=m),k[s]&&(k[s].destroyElements(),k[s].plotX=void 0);this.data=k,this.points=b,le(this,"afterGeneratePoints")}getXExtremes(e){return{min:G(e),max:q(e)}}getExtremes(e,t){var n;let r,o,i,{xAxis:a,yAxis:l}=this,s=t||this.getExtremesFromAll||this.options.getExtremesFromAll,c=s&&this.cropped?this.dataTable:this.dataTable.getModified(),u=c.rowCount,d=e||this.stackedYData,h=d?[d]:(null==(n=this.keysAffectYAxis||this.pointArrayMap||["y"])?void 0:n.map(e=>c.getColumn(e,!0)||[]))||[],p=this.getColumn("x",!0),f=[],m=this.requireSorting&&!this.is("column")?1:0,g=!!l&&l.positiveValuesOnly,y=s||this.cropped||!a,v=0,b=0;for(a&&(v=(r=a.getExtremes()).min,b=r.max),i=0;i<u;i++)if(o=p[i],y||(p[i+m]||o)>=v&&(p[i-m]||o)<=b)for(let e of h){let t=e[i];ye(t)&&(t>0||!g)&&f.push(t)}let x={activeYData:f,dataMin:G(f),dataMax:q(f)};return le(this,"afterGetExtremes",{dataExtremes:x}),x}applyExtremes(){let e=this.getExtremes();return this.dataMin=e.dataMin,this.dataMax=e.dataMax,e}getFirstValidPoint(e,t=0,n=1){let r=e.length,o=t;for(;o>=0&&o<r;){if(ee(e[o]))return e[o];o+=n}}translate(){var e;this.generatePoints();let t,n,r,o,i=this.options,a=i.stacking,l=this.xAxis,s=this.enabledDataSorting,c=this.yAxis,u=this.points,d=u.length,h=this.pointPlacementToXValue(),p=!!h,f=i.threshold,m=i.startFromThreshold?f:0,g=(null==i?void 0:i.nullInteraction)&&c.len,y=Number.MAX_VALUE;function v(e){return U(e,-1e9,1e9)}for(t=0;t<d;t++){let i,d,b,x=u[t],w=x.x,C=x.y,k=x.low,S=a&&(null==(e=c.stacking)?void 0:e.stacks[(this.negStacks&&C<(m?0:f)?"-":"")+this.stackKey]);x.plotX=ye(n=l.translate(w,!1,!1,!1,!0,h))?Y(v(n)):void 0,a&&this.visible&&S&&S[w]&&(o=this.getStackIndicator(o,w,this.index),!x.isNull&&o.key&&(b=(d=S[w]).points[o.key]),d&&be(b)&&(k=b[0],C=b[1],k===m&&o.key===S[w].base&&(k=Te(ye(f)?f:c.min)),c.positiveValuesOnly&&ee(k)&&k<=0&&(k=void 0),x.total=x.stackTotal=Te(d.total),x.percentage=ee(x.y)&&d.total?x.y/d.total*100:void 0,x.stackY=C,this.irregularWidths||d.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),x.yBottom=ee(k)?v(c.translate(k,!1,!0,!1,!0)):void 0,this.dataModify&&(C=this.dataModify.modifyValue(C,t)),ye(C)&&void 0!==x.plotX?i=ye(i=c.translate(C,!1,!0,!1,!0))?v(i):void 0:!ye(C)&&g&&(i=g),x.plotY=i,x.isInside=this.isPointInside(x),x.clientX=p?Y(l.translate(w,!1,!1,!1,!0,h)):n,x.negative=(x.y||0)<(f||0),x.isNull||!1===x.visible||(void 0!==r&&(y=Math.min(y,Math.abs(n-r))),r=n),x.zone=this.zones.length?x.getZone():void 0,!x.graphic&&this.group&&s&&(x.isNew=!0)}this.closestPointRangePx=y,le(this,"afterTranslate")}getValidPoints(e,t,n){let r=this.chart;return(e||this.points||[]).filter(function(e){let{plotX:o,plotY:i}=e;return!(!n&&(e.isNull||!ye(i))||t&&!r.isInsidePlot(o,i,{inverted:r.inverted})||!1===e.visible)})}getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey}setClip(){let{chart:e,group:t,markerGroup:n}=this,r=e.sharedClips,o=e.renderer,i=e.getClipBox(this),a=this.getSharedClipKey(),l=r[a];le(this,"setClip",{clipBox:i}),l?l.animate(i):r[a]=l=o.clipRect(i),t&&t.clip(!1===this.options.clip?void 0:l),n&&n.clip()}animate(e){let{chart:t,group:n,markerGroup:r}=this,o=t.inverted,i=or(this.options.animation),a=[this.getSharedClipKey(),i.duration,i.easing,i.defer].join(","),l=t.sharedClips[a],s=t.sharedClips[a+"m"];if(e&&n){let e=t.getClipBox(this);if(l)l.attr("height",e.height);else{e.width=0,o&&(e.x=t.plotHeight),l=t.renderer.clipRect(e),t.sharedClips[a]=l;let n={x:-99,y:-99,width:o?t.plotWidth+199:99,height:o?99:t.plotHeight+199};s=t.renderer.clipRect(n),t.sharedClips[a+"m"]=s}n.clip(l),null==r||r.clip(s)}else if(l&&!l.hasClass("highcharts-animating")){let e=t.getClipBox(this),n=i.step;((null==r?void 0:r.element.childNodes.length)||t.series.length>1)&&(i.step=function(e,t){n&&n.apply(t,arguments),"width"===t.prop&&(null==s?void 0:s.element)&&s.attr(o?"height":"width",e+99)}),l.addClass("highcharts-animating").animate(e,i)}}afterAnimate(){this.setClip(),Se(this.chart.sharedClips,(e,t,n)=>{e&&!this.chart.container.querySelector(`[clip-path="url(#${e.id})"]`)&&(e.destroy(),delete n[t])}),this.finishedAnimating=!0,le(this,"afterAnimate")}drawPoints(e=this.points){let t,n,r,o,i,a,l,s=this.chart,c=s.styledMode,{colorAxis:u,options:d}=this,h=d.marker,p=d.nullInteraction,f=this[this.specialGroup||"markerGroup"],m=this.xAxis,g=Te(h.enabled,!m||!!m.isRadial||null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(t=0;t<e.length;t++){o=(r=(n=e[t]).graphic)?"animate":"attr",i=n.marker||{},a=!!n.marker;let d=n.isNull;if(!(g&&!ee(i.enabled)||i.enabled)||d&&!p||!1===n.visible)r&&(n.graphic=r.destroy());else{let e=Te(i.symbol,this.symbol,"rect");l=this.markerAttribs(n,n.selected&&"select"),this.enabledDataSorting&&(n.startXPos=m.reversed?-(l.width||0):m.width);let t=!1!==n.isInside;if(!r&&t&&((l.width||0)>0||n.hasImage)&&(n.graphic=r=s.renderer.symbol(e,l.x,l.y,l.width,l.height,a?i:h).add(f),this.enabledDataSorting&&s.hasRendered&&(r.attr({x:n.startXPos}),o="animate")),r&&"animate"===o&&r[t?"show":"hide"](t).animate(l),r){let e=this.pointAttribs(n,c||!n.selected?void 0:"select");c?u&&r.css({fill:e.fill}):r[o](e)}r&&r.addClass(n.getClassName(),!0)}}}markerAttribs(e,t){var n,r;let o,i,a=this.options,l=a.marker,s=e.marker||{},c=s.symbol||l.symbol,u={},d=Te(s.radius,null==l?void 0:l.radius);t&&(o=null==(n=null==l?void 0:l.states)?void 0:n[t],i=null==(r=s.states)?void 0:r[t],d=Te(null==i?void 0:i.radius,null==o?void 0:o.radius,d&&d+((null==o?void 0:o.radiusPlus)||0))),e.hasImage=c&&0===c.indexOf("url"),e.hasImage&&(d=0);let h=e.pos();return ye(d)&&h&&(a.crisp&&(h[0]=Q(h[0],e.hasImage?0:"rect"===c?(null==l?void 0:l.lineWidth)||0:1)),u.x=h[0]-d,u.y=h[1]-d),d&&(u.width=u.height=2*d),u}pointAttribs(e,t){var n;let r,o,i,a,l=this.options,s=l.marker,c=null==e?void 0:e.options,u=(null==c?void 0:c.marker)||{},d=null==c?void 0:c.color,h=null==e?void 0:e.color,p=null==(n=null==e?void 0:e.zone)?void 0:n.color,f=this.color,m=Te(u.lineWidth,s.lineWidth),g=(null==e?void 0:e.isNull)&&l.nullInteraction?0:1;return f=d||p||h||f,i=u.fillColor||s.fillColor||f,a=u.lineColor||s.lineColor||f,t=t||"normal",r=s.states[t]||{},m=Te((o=u.states&&u.states[t]||{}).lineWidth,r.lineWidth,m+Te(o.lineWidthPlus,r.lineWidthPlus,0)),i=o.fillColor||r.fillColor||i,a=o.lineColor||r.lineColor||a,{stroke:a,"stroke-width":m,fill:i,opacity:g=Te(o.opacity,r.opacity,g)}}destroy(e){var t,n;let r,o,i=this,a=i.chart,l=/AppleWebKit\/533/.test(cr.navigator.userAgent),s=i.data||[];for(le(i,"destroy",{keepEventsForUpdate:e}),this.removeEvents(e),(i.axisTypes||[]).forEach(function(e){o=i[e],(null==o?void 0:o.series)&&(oe(o.series,i),o.isDirty=o.forceRedraw=!0)}),i.legendItem&&i.chart.legend.destroyItem(i),r=s.length;r--;)null==(n=null==(t=s[r])?void 0:t.destroy)||n.call(t);for(let e of i.zones)te(e,void 0,!0);fe(i.animationTimeout),Se(i,function(e,t){e instanceof Rt&&!e.survive&&e[l&&"group"===t?"hide":"destroy"]()}),a.hoverSeries===i&&(a.hoverSeries=void 0),oe(a.series,i),a.orderItems("series"),Se(i,function(t,n){e&&"hcEvents"===n||delete i[n]})}applyZones(){let{area:e,chart:t,graph:n,zones:r,points:o,xAxis:i,yAxis:a,zoneAxis:l}=this,{inverted:s,renderer:c}=t,u=this[`${l}Axis`],{isXAxis:d,len:h=0,minPointOffset:p=0}=u||{},f=((null==n?void 0:n.strokeWidth())||0)/2+1,m=(e,t=0,n=0)=>{s&&(n=h-n);let{translated:r=0,lineClip:o}=e,i=n-r;null==o||o.push(["L",t,Math.abs(i)<f?n-f*(i<=0?-1:1):r])};if(r.length&&(n||e)&&u&&ye(u.min)){let t=u.getExtremes().max+p,f=e=>{e.forEach((t,n)=>{("M"===t[0]||"L"===t[0])&&(e[n]=[t[0],d?h-t[1]:t[1],d?t[2]:h-t[2]])})};if(r.forEach(e=>{e.lineClip=[],e.translated=U(u.toPixels(Te(e.value,t),!0)||0,0,h)}),n&&!this.showLine&&n.hide(),e&&e.hide(),"y"===l&&o.length<i.len)for(let e of o){let{plotX:t,plotY:n,zone:o}=e,i=o&&r[r.indexOf(o)-1];o&&m(o,t,n),i&&m(i,t,n)}let g=[],y=u.toPixels(u.getExtremes().min-p,!0);r.forEach(t=>{var r,o;let l=t.lineClip||[],u=Math.round(t.translated||0);i.reversed&&l.reverse();let{clip:h,simpleClip:p}=t,m=0,v=0,b=i.len,x=a.len;d?(m=u,b=y):(v=u,x=y);let w=[["M",m,v],["L",b,v],["L",b,x],["L",m,x],["Z"]],C=[w[0],...l,w[1],w[2],...g,w[3],w[4]];g=l.reverse(),y=u,s&&(f(C),e&&f(w)),h?(h.animate({d:C}),null==p||p.animate({d:w})):(h=t.clip=c.path(C),e&&(p=t.simpleClip=c.path(w))),n&&(null==(r=t.graph)||r.clip(h)),e&&(null==(o=t.area)||o.clip(p))})}else this.visible&&(n&&n.show(),e&&e.show())}plotGroup(e,t,n,r,o){let i=this[e],a=!i,l={visibility:n,zIndex:r||.1};return ee(this.opacity)&&!this.chart.styledMode&&"inactive"!==this.state&&(l.opacity=this.opacity),i||(this[e]=i=this.chart.renderer.g().add(o)),i.addClass("highcharts-"+t+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(ee(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(i.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),i.attr(l)[a?"attr":"animate"](this.getPlotBox(t)),i}getPlotBox(e){let t=this.xAxis,n=this.yAxis,r=this.chart,o=r.inverted&&!r.polar&&t&&this.invertible&&"series"===e;r.inverted&&(t=n,n=this.xAxis);let i={scale:1,translateX:t?t.left:r.plotLeft,translateY:n?n.top:r.plotTop,name:e};le(this,"getPlotBox",i);let{scale:a,translateX:l,translateY:s}=i;return{translateX:l,translateY:s,rotation:90*!!o,rotationOriginX:o?a*(t.len-n.len)/2:0,rotationOriginY:o?a*(t.len+n.len)/2:0,scaleX:o?-a:a,scaleY:a}}removeEvents(e){let{eventsToUnbind:t}=this;e||Oe(this),t.length&&(t.forEach(e=>{e()}),t.length=0)}render(){var e,t,n,r,o;let i=this,{chart:a,options:l,hasRendered:s}=i,c=or(l.animation),u=i.visible?"inherit":"hidden",d=l.zIndex,h=a.seriesGroup,p=i.finishedAnimating?0:c.duration;le(this,"render"),i.plotGroup("group","series",u,d,h),i.markerGroup=i.plotGroup("markerGroup","markers",u,d,h),!1!==l.clip&&i.setClip(),p&&(null==(e=i.animate)||e.call(i,!0)),i.drawGraph&&(i.drawGraph(),i.applyZones()),i.visible&&i.drawPoints(),null==(t=i.drawDataLabels)||t.call(i),null==(n=i.redrawPoints)||n.call(i),l.enableMouseTracking&&(null==(r=i.drawTracker)||r.call(i)),p&&(null==(o=i.animate)||o.call(i)),s||(p&&c.defer&&(p+=c.defer),i.animationTimeout=Le(()=>{i.afterAnimate()},p||0)),i.isDirty=!1,i.hasRendered=!0,le(i,"afterRender")}redraw(){let e=this.isDirty||this.isDirtyData;this.translate(),this.render(),e&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(e,t){let{xAxis:n,yAxis:r}=this,o=this.chart.inverted;return this.searchKDTree({clientX:o?n.len-e.chartY+n.pos:e.chartX-n.pos,plotY:o?r.len-e.chartX+r.pos:e.chartY-r.pos},t,e)}buildKDTree(e){this.buildingKdTree=!0;let t=this,n=t.options,r=n.findNearestPointBy.indexOf("y")>-1?2:1;delete t.kdTree,Le(function(){t.kdTree=function e(n,r,o){let i,a,l=null==n?void 0:n.length;if(l)return i=t.kdAxisArray[r%o],n.sort((e,t)=>(e[i]||0)-(t[i]||0)),{point:n[a=Math.floor(l/2)],left:e(n.slice(0,a),r+1,o),right:e(n.slice(a+1),r+1,o)}}(t.getValidPoints(void 0,!t.directTouch,null==n?void 0:n.nullInteraction),r,r),t.buildingKdTree=!1},n.kdNow||"touchstart"===(null==e?void 0:e.type)?0:1)}searchKDTree(e,t,n,r,o){let i=this,[a,l]=this.kdAxisArray,s=t?"distX":"dist",c=(i.options.findNearestPointBy||"").indexOf("y")>-1?2:1,u=!!i.isBubble,d=r||((e,t,n)=>{let r=e[n]||0,o=t[n]||0;return[r===o&&e.index>t.index||r<o?e:t,!1]}),h=o||((e,t)=>e<t);if(this.kdTree||this.buildingKdTree||this.buildKDTree(n),this.kdTree)return function e(t,n,r,o){var c,p;let f,m,g,y,v,b,x,w=n.point,C=i.kdAxisArray[r%o],k=w,S=!1;f=t[a],m=w[a],g=ee(f)&&ee(m)?f-m:null,y=t[l],v=w[l],b=ee(y)&&ee(v)?y-v:0,x=u&&(null==(c=w.marker)?void 0:c.radius)||0,w.dist=Math.sqrt((g&&g*g||0)+b*b)-x,w.distX=ee(g)?Math.abs(g)-x:Number.MAX_VALUE;let E=(t[C]||0)-(w[C]||0)+(u&&(null==(p=w.marker)?void 0:p.radius)||0),$=E<0?"left":"right",T=E<0?"right":"left";return n[$]&&([k,S]=d(w,e(t,n[$],r+1,o),s)),n[T]&&h(Math.sqrt(E*E),k[s],S)&&(k=d(k,e(t,n[T],r+1,o),s)[0]),k}(e,this.kdTree,c,c)}pointPlacementToXValue(){let{options:e,xAxis:t}=this,n=e.pointPlacement;return"between"===n&&(n=t.reversed?-.5:.5),ye(n)?n*(e.pointRange||t.pointRange):0}isPointInside(e){let{chart:t,xAxis:n,yAxis:r}=this,{plotX:o=-1,plotY:i=-1}=e;return i>=0&&i<=(r?r.len:t.plotHeight)&&o>=0&&o<=(n?n.len:t.plotWidth)}drawTracker(){var e;let t=this,n=t.options,r=n.trackByArea,o=[].concat((r?t.areaPath:t.graphPath)||[]),i=t.chart,a=i.pointer,l=i.renderer,s=(null==(e=i.options.tooltip)?void 0:e.snap)||0,c=()=>{n.enableMouseTracking&&i.hoverSeries!==t&&t.onMouseOver()},u="rgba(192,192,192,"+(sr?1e-4:.002)+")",d=t.tracker;d?d.attr({d:o}):t.graph&&(t.tracker=d=l.path(o).attr({visibility:t.visible?"inherit":"hidden",zIndex:2}).addClass(r?"highcharts-tracker-area":"highcharts-tracker-line").add(t.group),i.styledMode||d.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:u,fill:r?u:"none","stroke-width":t.graph.strokeWidth()+(r?0:2*s)}),[t.tracker,t.markerGroup,...t.dataLabelsGroups||[]].forEach(e=>{e&&(e.addClass("highcharts-tracker").on("mouseover",c).on("mouseout",e=>{null==a||a.onTrackerMouseOut(e)}),n.cursor&&!i.styledMode&&e.css({cursor:n.cursor}),e.on("touchstart",c))})),le(this,"afterDrawTracker")}addPoint(e,t,n,r,o){let i,a,l=this.options,{chart:s,data:c,dataTable:u,xAxis:d}=this,h=(null==d?void 0:d.hasNames)&&d.names,p=l.data,f=this.getColumn("x");t=Te(t,!0);let m={series:this};this.pointClass.prototype.applyOptions.apply(m,[e]);let g=m.x;if(a=f.length,this.requireSorting&&g<f[a-1])for(i=!0;a&&f[a-1]>g;)a--;u.setRow(m,a,!0,{addColumns:!1}),h&&m.name&&(h[g]=m.name),null==p||p.splice(a,0,e),(i||this.processedData)&&(this.data.splice(a,0,null),this.processData()),"point"===l.legendType&&this.generatePoints(),n&&(c[0]&&c[0].remove?c[0].remove(!1):([c,p].filter(ee).forEach(e=>{e.shift()}),u.deleteRows(0))),!1!==o&&le(this,"addPoint",{point:m}),this.isDirty=!0,this.isDirtyData=!0,t&&s.redraw(r)}removePoint(e,t,n){let r=this,{chart:o,data:i,points:a,dataTable:l}=r,s=i[e],c=function(){[(null==a?void 0:a.length)===i.length?a:void 0,i,r.options.data].filter(ee).forEach(t=>{t.splice(e,1)}),l.deleteRows(e),null==s||s.destroy(),r.isDirty=!0,r.isDirtyData=!0,t&&o.redraw()};ir(n,o),t=Te(t,!0),s?s.firePointEvent("remove",null,c):c()}remove(e,t,n,r){let o=this,i=o.chart;function a(){o.destroy(r),i.isDirtyLegend=i.isDirtyBox=!0,i.linkSeries(r),Te(e,!0)&&i.redraw(t)}!1!==n?le(o,"remove",null,a):a()}update(e,t){var n,r;le(this,"update",{options:e=re(e,this.userOptions)});let o,i,a=this,l=a.chart,s=a.userOptions,c=a.initialType||a.type,u=l.options.plotOptions,d=ur[c].prototype,h=a.finishedAnimating&&{animation:!1},p={},f=hr.keepProps.slice(),m=e.type||s.type||l.options.chart.type,g=!(this.hasDerivedData||m&&m!==this.type||void 0!==e.keys||void 0!==e.pointStart||void 0!==e.pointInterval||void 0!==e.relativeXValue||e.joinBy||e.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(e=>a.hasOptionChanged(e)));m=m||c,g?(f.push.apply(f,hr.keepPropsForPoints),!1!==e.visible&&f.push("area","graph"),a.parallelArrays.forEach(function(e){f.push(e+"Data")}),e.data&&(e.dataSorting&&ie(a.options.dataSorting,e.dataSorting),this.setData(e.data,!1))):this.dataTable.modified=this.dataTable,e.dataLabels&&s.dataLabels&&(e.dataLabels=this.mergeArrays(s.dataLabels,e.dataLabels)),e=Ce(s,{index:void 0===s.index?a.index:s.index,pointStart:(null==(n=null==u?void 0:u.series)?void 0:n.pointStart)??s.pointStart??a.getColumn("x")[0]},!g&&{data:a.options.data},e,h),g&&e.data&&(e.data=a.options.data),(f=["dataLabelsGroup","dataLabelsGroups","dataLabelsParentGroups","group","markerGroup","transformGroup"].concat(f)).forEach(function(e){f[e]=a[e],delete a[e]});let y=!1;if(ur[m]){if(y=m!==a.type,a.remove(!1,!1,!1,!0),y)if(l.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(a,ur[m].prototype);else{let e=Object.hasOwnProperty.call(a,"hcEvents")&&a.hcEvents;for(i in d)a[i]=void 0;ie(a,ur[m].prototype),e?a.hcEvents=e:delete a.hcEvents}}else je(17,!0,l,{missingModuleFor:m});if(f.forEach(function(e){a[e]=f[e]}),a.init(l,e),g&&this.points)for(let e of(!1===(o=a.options).visible?(p.graphic=1,p.dataLabel=1):(this.hasMarkerChanged(o,s)&&(p.graphic=1),(null==(r=a.hasDataLabels)?void 0:r.call(a))||(p.dataLabel=1)),this.points))(null==e?void 0:e.series)&&(e.resolveColor(),Object.keys(p).length&&e.destroyElements(p),!1===o.showInLegend&&e.legendItem&&l.legend.destroyItem(e));a.initialType=c,l.linkSeries(),l.setSortedData(),y&&a.linkedSeries.length&&(a.isDirtyData=!0),le(this,"afterUpdate"),Te(t,!0)&&l.redraw(!!g&&void 0)}setName(e){this.name=this.options.name=this.userOptions.name=e,this.chart.isDirtyLegend=!0}hasOptionChanged(e){var t,n;let r=this.chart,o=this.options[e],i=r.options.plotOptions,a=this.userOptions[e],l=Te(null==(t=null==i?void 0:i[this.type])?void 0:t[e],null==(n=null==i?void 0:i.series)?void 0:n[e]);return a&&!ee(l)?o!==a:o!==Te(l,o)}onMouseOver(){let e=this.chart,t=e.hoverSeries,n=e.pointer;null==n||n.setHoverChartIndex(),t&&t!==this&&t.onMouseOut(),this.options.events.mouseOver&&le(this,"mouseOver"),this.setState("hover"),e.hoverSeries=this}onMouseOut(){let e=this.options,t=this.chart,n=t.tooltip,r=t.hoverPoint;t.hoverSeries=null,r&&r.onMouseOut(),this&&e.events.mouseOut&&le(this,"mouseOut"),n&&!this.stickyTracking&&(!n.shared||this.noSharedTooltip)&&n.hide(),t.series.forEach(function(e){e.setState("",!0)})}setState(e,t){var n,r;let o=this,{graph:i,options:a}=o,{inactiveOtherPoints:l,states:s}=a,c=Te(null==(n=null==s?void 0:s[e||"normal"])?void 0:n.animation,o.chart.options.chart.animation),{lineWidth:u,opacity:d}=a;if(e=e||"",o.state!==e&&([o.group,o.markerGroup,...o.dataLabelsGroups||[]].forEach(function(t){t&&(o.state&&t.removeClass("highcharts-series-"+o.state),e&&t.addClass("highcharts-series-"+e))}),o.state=e,!o.chart.styledMode)){if(!1===(null==(r=s[e])?void 0:r.enabled))return;if(e&&(u=s[e].lineWidth||u+(s[e].lineWidthPlus||0),d=Te(s[e].opacity,d)),i&&!i.dashstyle&&ye(u))for(let e of[i,...this.zones.map(e=>e.graph)])null==e||e.animate({"stroke-width":u},c);l||[o.group,o.markerGroup,...o.dataLabelsGroups||[],o.labelBySeries].forEach(function(e){null==e||e.animate({opacity:d},c)})}t&&l&&o.points&&o.setAllPointsToState(e||void 0)}setAllPointsToState(e){this.points.forEach(function(t){t.setState&&t.setState(e)})}setVisible(e,t){var n,r;let o=this,i=o.chart,a=i.options.chart.ignoreHiddenSeries,l=o.visible;o.visible=e=o.options.visible=o.userOptions.visible=void 0===e?!l:e;let s=e?"show":"hide";["group","markerGroup","tracker","tt"].forEach(e=>{var t;null==(t=o[e])||t[s]()}),null==(n=o.dataLabelsGroups)||n.forEach(e=>{null==e||e[s]()}),(i.hoverSeries===o||(null==(r=i.hoverPoint)?void 0:r.series)===o)&&o.onMouseOut(),o.legendItem&&i.legend.colorizeItem(o,e),o.isDirty=!0,o.options.stacking&&i.series.forEach(e=>{e.options.stacking&&e.visible&&(e.isDirty=!0)}),o.linkedSeries.forEach(t=>{t.setVisible(e,!1)}),a&&(i.isDirtyBox=!0),le(o,s),!1!==t&&i.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(e){this.selected=e=this.options.selected=void 0===e?!this.selected:e,this.checkbox&&(this.checkbox.checked=e),le(this,e?"select":"unselect")}shouldShowTooltip(e,t,n={}){return n.series=this,n.visiblePlotOnly=!0,this.chart.isInsidePlot(e,t,n)}drawLegendSymbol(e,t){var n;let r=this.chart.renderer,o=this.options.legendSymbol||"rectangle",i=t.legendItem||{},{options:a,symbolHeight:l,symbolWidth:s}=e,c=a.squareSymbol,u=c?l:s,d=c?(s-l)/2:0,h=(e.baseline||0)-l+1,p=a.symbolRadius??l,f="rectangle"===o?r.rect(d,h,u,l,p):r.symbols[o]&&r.symbol(o,d,h,u,l,{r:p});f?i.symbol=f.addClass("highcharts-point").attr({zIndex:3}).add(i.group):null==(n=Jn[o])||n.call(this,e,t)}}hr.defaultOptions={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){let{numberFormatter:e}=this.series.chart;return"number"!=typeof this.y?"":e(this.y,-1)},padding:5,style:{fontSize:"0.7em",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},hr.types=rr.seriesTypes,hr.registerType=rr.registerSeriesType,hr.keepProps=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],hr.keepPropsForPoints=["data","isDirtyData","isDirtyCanvas","points","dataTable","processedData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"],ie(hr.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:Fn,requireSorting:!0,sorted:!0}),rr.series=hr;let pr=hr,{animObject:fr,setAnimation:mr}=lt,{registerEventOptions:gr}=dn,{composed:yr,marginNames:vr}=_,{distribute:br}=kt,{format:xr}=wt;class wr{constructor(e,t){this.allItems=[],this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.padding=0,this.pages=[],this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=e,this.setOptions(t),t.enabled&&(this.render(),gr(this,t),V(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),V(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(e){let t=Te(e.padding,8);this.options=e,this.chart.styledMode||(this.itemStyle=e.itemStyle,this.itemHiddenStyle=Ce(this.itemStyle,e.itemHiddenStyle)),this.itemMarginTop=e.itemMarginTop,this.itemMarginBottom=e.itemMarginBottom,this.padding=t,this.initialItemY=t-5,this.symbolWidth=Te(e.symbolWidth,16),this.pages=[],this.proximate="proximate"===e.layout&&!this.chart.inverted,this.baseline=void 0}update(e,t){let n=this.chart;this.setOptions(Ce(!0,this.options,e)),"events"in this.options&&gr(this,this.options),this.destroy(),n.isDirtyLegend=n.isDirtyBox=!0,Te(t,!0)&&n.redraw(),le(this,"afterUpdate",{redraw:t})}colorizeItem(e,t){var n;let r=e.color,{area:o,group:i,label:a,line:l,symbol:s}=e.legendItem||{};if((e instanceof pr||e instanceof Fn)&&(e.color=(null==(n=e.options)?void 0:n.legendSymbolColor)||r),null==i||i[t?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:n={}}=this,r=n.color,{fillColor:i,fillOpacity:c,lineColor:u,marker:d}=e.options,h=e=>(!t&&(e.fill&&(e.fill=r),e.stroke&&(e.stroke=r)),e);null==a||a.css(Ce(t?this.itemStyle:n)),null==l||l.attr(h({stroke:u||e.color})),s&&s.attr(h(d&&s.isMarker?e.pointAttribs():{fill:e.color})),null==o||o.attr(h({fill:i||e.color,"fill-opacity":i?1:c??.75}))}e.color=r,le(this,"afterColorizeItem",{item:e,visible:t})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(e){let{group:t,x:n=0,y:r=0}=e.legendItem||{},o=this.options,i=o.symbolPadding,a=!o.rtl,l=e.checkbox;if(null==t?void 0:t.element){let o={translateX:a?n:this.legendWidth-n-2*i-4,translateY:r},l=()=>{le(this,"afterPositionItem",{item:e})};t[ee(t.translateY)?"animate":"attr"](o,void 0,l)}l&&(l.x=n,l.y=r)}destroyItem(e){let t=e.legendItem||{};for(let e of["group","label","line","symbol"])t[e]&&(t[e]=t[e].destroy());e.checkbox=ne(e.checkbox),e.legendItem=void 0}destroy(){for(let e of this.getAllItems())this.destroyItem(e);for(let e of["clipRect","up","down","pager","nav","box","title","group"])this[e]&&(this[e]=this[e].destroy());this.display=null}positionCheckboxes(){var e;let t,n=null==(e=this.group)?void 0:e.alignAttr,r=this.clipHeight||this.legendHeight,o=this.titleHeight;n&&(t=n.translateY,this.allItems.forEach(function(e){let i,a=e.checkbox;a&&(i=t+o+a.y+(this.scrollOffset||0)+3,J(a,{left:n.translateX+e.checkboxOffset+a.x-20+"px",top:i+"px",display:this.proximate||i>t-6&&i<t+r-6?"":"none"}))},this))}renderTitle(){let e,t=this.options,n=this.padding,r=t.title,o=0;r.text&&(this.title||(this.title=this.chart.renderer.label(r.text,n-3,n-4,void 0,void 0,void 0,t.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(r.style),this.title.add(this.group)),r.width||this.title.css({width:this.maxLegendWidth+"px"}),o=(e=this.title.getBBox()).height,this.offsetWidth=e.width,this.contentGroup.attr({translateY:o})),this.titleHeight=o}setText(e){let t=this.options;e.legendItem.label.attr({text:t.labelFormat?xr(t.labelFormat,e,this.chart):t.labelFormatter.call(e,e)})}renderItem(e){var t;let n=e.legendItem=e.legendItem||{},r=this.chart,o=r.renderer,i=this.options,a="horizontal"===i.layout,l=this.symbolWidth,s=i.symbolPadding||0,c=this.itemStyle,u=this.itemHiddenStyle,d=a?Te(i.itemDistance,20):0,h=!i.rtl,p=!e.series,f=!p&&e.series.drawLegendSymbol?e.series:e,m=f.options,g=!!this.createCheckboxForItem&&m&&m.showCheckbox,y=i.useHTML,v=e.options.className,b=n.label,x=l+s+d+20*!!g;!b&&(n.group=o.g("legend-item").addClass("highcharts-"+f.type+"-series highcharts-color-"+e.colorIndex+(v?" "+v:"")+(p?" highcharts-series-"+e.index:"")).attr({zIndex:1}).add(this.scrollGroup),n.label=b=o.text("",h?l+s:-s,this.baseline||0,y),r.styledMode||b.css(Ce(e.visible?c:u)),b.attr({align:h?"left":"right",zIndex:2}).add(n.group),!this.baseline&&(this.fontMetrics=o.fontMetrics(b),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,b.attr("y",this.baseline),this.symbolHeight=Te(i.symbolHeight,this.fontMetrics.f),i.squareSymbol&&(this.symbolWidth=Te(i.symbolWidth,Math.max(this.symbolHeight,16)),x=this.symbolWidth+s+d+20*!!g,h&&b.attr("x",this.symbolWidth+s))),f.drawLegendSymbol(this,e),this.setItemEvents&&this.setItemEvents(e,b,y)),g&&!e.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(e),this.colorizeItem(e,e.visible),(r.styledMode||!c.width)&&b.css({width:Math.min(i.itemWidth||this.widthOption||r.spacingBox.width,i.maxWidth?Ne(i.maxWidth,r.chartWidth):1/0)-x+"px"}),this.setText(e);let w=b.getBBox(),C=(null==(t=this.fontMetrics)?void 0:t.h)||0;e.itemWidth=e.checkboxOffset=i.itemWidth||n.labelWidth||w.width+x,this.maxItemWidth=Math.max(this.maxItemWidth,e.itemWidth),this.totalItemWidth+=e.itemWidth,this.itemHeight=e.itemHeight=Math.round(n.labelHeight||(w.height>1.5*C?w.height:C))}layoutItem(e){let t=this.options,n=this.padding,r="horizontal"===t.layout,o=e.itemHeight,i=this.itemMarginBottom,a=this.itemMarginTop,l=r?Te(t.itemDistance,20):0,s=this.maxLegendWidth,c=t.alignColumns&&this.totalItemWidth>s?this.maxItemWidth:e.itemWidth,u=e.legendItem||{};r&&this.itemX-n+c>s&&(this.itemX=n,this.lastLineHeight&&(this.itemY+=a+this.lastLineHeight+i),this.lastLineHeight=0),this.lastItemY=a+this.itemY+i,this.lastLineHeight=Math.max(o,this.lastLineHeight),u.x=this.itemX,u.y=this.itemY,r?this.itemX+=c:(this.itemY+=a+o+i,this.lastLineHeight=o),this.offsetWidth=this.widthOption||Math.max((r?this.itemX-n-(e.checkbox?0:l):c)+n,this.offsetWidth)}getAllItems(){let e=[];return this.chart.series.forEach(function(t){var n;let r=null==t?void 0:t.options;t&&Te(r.showInLegend,!ee(r.linkedTo)&&void 0,!0)&&(e=e.concat((null==(n=t.legendItem)?void 0:n.labels)||("point"===r.legendType?t.data:t)))}),le(this,"afterGetAllItems",{allItems:e}),e}getAlignment(){let e=this.options;return this.proximate?e.align.charAt(0)+"tv":e.floating?"":e.align.charAt(0)+e.verticalAlign.charAt(0)+e.layout.charAt(0)}adjustMargins(e,t){let n=this.chart,r=this.options,o=this.getAlignment();o&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((i,a)=>{i.test(o)&&!ee(e[a])&&(n[vr[a]]=Math.max(n[vr[a]],n.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*r[a%2?"x":"y"]+(r.margin??12)+t[a]+(n.titleOffset[a]||0)))})}proximatePositions(){let e,t=this.chart,n=[],r="left"===this.options.align;for(let o of(this.allItems.forEach(function(e){let o,i,a,l,s=r;e.yAxis&&(e.xAxis.options.reversed&&(s=!s),e.points&&(o=pe(s?e.points:e.points.slice(0).reverse(),function(e){return ye(e.plotY)})),i=this.itemMarginTop+e.legendItem.label.getBBox().height+this.itemMarginBottom,l=e.yAxis.top-t.plotTop,a=e.visible?(o?o.plotY:e.yAxis.height)+(l-.3*i):l+e.yAxis.height,n.push({target:a,size:i,item:e}))},this),br(n,t.plotHeight)))e=o.item.legendItem||{},ye(o.pos)&&(e.y=t.plotTop-t.spacing[0]+o.pos)}render(){let e,t,n,r,o=this.chart,i=o.spacingBox.width,a=o.renderer,l=this.options,s=this.padding,c=this.getAllItems(),u=this.group,d=this.box;this.itemX=s,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=Ne(l.width,i-s),r=i-2*s-l.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(r/=2),this.maxLegendWidth=this.widthOption||r,u||(this.group=u=a.g("legend").addClass(l.className||"").attr({zIndex:7}).add(),this.contentGroup=a.g().attr({zIndex:1}).add(u),this.scrollGroup=a.g().add(this.contentGroup)),this.renderTitle(),Re(c,(e,t)=>{var n,r;return((null==(n=e.options)?void 0:n.legendIndex)||0)-((null==(r=t.options)?void 0:r.legendIndex)||0)}),l.reversed&&c.reverse(),this.allItems=c,this.display=e=!!c.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,c.forEach(this.renderItem,this),c.forEach(this.layoutItem,this),t=(l.maxWidth?Math.min(this.widthOption||this.offsetWidth,r,Ne(l.maxWidth,o.chartWidth)||1/0):this.widthOption||this.offsetWidth)+s,n=this.lastItemY+this.lastLineHeight+this.titleHeight,n=this.handleOverflow(n)+s,d||(this.box=d=a.rect().addClass("highcharts-legend-box").attr({r:l.borderRadius}).add(u)),o.styledMode||d.attr({stroke:l.borderColor,"stroke-width":l.borderWidth||0,fill:l.backgroundColor||"none"}).shadow(l.shadow),t>0&&n>0&&d[d.placed?"animate":"attr"](d.crisp.call({},{x:0,y:0,width:t,height:n},d.strokeWidth())),u[e?"show":"hide"](),o.styledMode&&"none"===u.getStyle("display")&&(t=n=0),this.legendWidth=t,this.legendHeight=n,e&&this.align(),this.proximate||this.positionItems(),le(this,"afterRender")}align(e=this.chart.spacingBox){let t=this.chart,n=this.options,r=e.y;/(lth|ct|rth)/.test(this.getAlignment())&&t.titleOffset[0]>0?r+=t.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&t.titleOffset[2]>0&&(r-=t.titleOffset[2]),r!==e.y&&(e=Ce(e,{y:r})),t.hasRendered||(this.group.placed=!1),this.group.align(Ce(n,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":n.verticalAlign}),!0,e)}handleOverflow(e){let t,n,r,o,i=this,a=this.chart,l=a.renderer,s=this.options,c=s.y,u="top"===s.verticalAlign,d=this.padding,h=s.maxHeight,p=s.navigation,f=Te(p.animation,!0),m=p.arrowSize||12,g=this.pages,y=this.allItems,v=function(e){"number"==typeof e?C.attr({height:e}):C&&(i.clipRect=C.destroy(),i.contentGroup.clip()),i.contentGroup.div&&(i.contentGroup.div.style.clip=e?"rect("+d+"px,9999px,"+(d+e)+"px,0)":"auto")},b=function(e){return i[e]=l.circle(0,0,1.3*m).translate(m/2,m/2).add(w),a.styledMode||i[e].attr("fill","rgba(0,0,0,0.0001)"),i[e]},x=a.spacingBox.height+(u?-c:c)-d,w=this.nav,C=this.clipRect;return"horizontal"!==s.layout||"middle"===s.verticalAlign||s.floating||(x/=2),h&&(x=Math.min(x,h)),g.length=0,e&&x>0&&e>x&&!1!==p.enabled?(this.clipHeight=t=Math.max(x-20-this.titleHeight-d,0),this.currentPage=Te(this.currentPage,1),this.fullHeight=e,y.forEach((e,i)=>{let a=(r=e.legendItem||{}).y||0,l=Math.round(r.label.getBBox().height),s=g.length;(!s||a-g[s-1]>t&&(n||a)!==g[s-1])&&(g.push(n||a),s++),r.pageIx=s-1,n&&o&&(o.pageIx=s-1),i===y.length-1&&a+l-g[s-1]>t&&a>g[s-1]&&(g.push(a),r.pageIx=s),a!==n&&(n=a),o=r}),C||(C=i.clipRect=l.clipRect(0,d-2,9999,0),i.contentGroup.clip(C)),v(t),w||(this.nav=w=l.g().attr({zIndex:1}).add(this.group),this.up=l.symbol("triangle",0,0,m,m).add(w),b("upTracker").on("click",function(){i.scroll(-1,f)}),this.pager=l.text("",15,10).addClass("highcharts-legend-navigation"),!a.styledMode&&p.style&&this.pager.css(p.style),this.pager.add(w),this.down=l.symbol("triangle-down",0,0,m,m).add(w),b("downTracker").on("click",function(){i.scroll(1,f)})),i.scroll(0),e=x):w&&(v(),this.nav=w.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e}scroll(e,t){let n=this.chart,r=this.pages,o=r.length,i=this.clipHeight,a=this.options.navigation,l=this.pager,s=this.padding,c=this.currentPage+e;c>o&&(c=o),c>0&&(void 0!==t&&mr(t,n),this.nav.attr({translateX:s,translateY:i+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(e){e.attr({class:1===c?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),l.attr({text:c+"/"+o}),[this.down,this.downTracker].forEach(function(e){e.attr({x:18+this.pager.getBBox().width,class:c===o?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),n.styledMode||(this.up.attr({fill:1===c?a.inactiveColor:a.activeColor}),this.upTracker.css({cursor:1===c?"default":"pointer"}),this.down.attr({fill:c===o?a.inactiveColor:a.activeColor}),this.downTracker.css({cursor:c===o?"default":"pointer"})),this.scrollOffset=-r[c-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=c,this.positionCheckboxes(),Le(()=>{le(this,"afterScroll",{currentPage:c})},fr(Te(t,n.renderer.globalAnimation,!0)).duration))}setItemEvents(e,t,n){let r=this,o=e.legendItem||{},i=r.chart.renderer.boxWrapper,a=e instanceof Fn,l=e instanceof pr,s="highcharts-legend-"+(a?"point":"series")+"-active",c=r.chart.styledMode,u=n?[t,o.symbol]:[o.group],d=t=>{r.allItems.forEach(n=>{e!==n&&[n].concat(n.linkedSeries||[]).forEach(e=>{e.setState(t,!a)})})};for(let n of u)n&&n.on("mouseover",function(){e.visible&&d("inactive"),e.setState("hover"),e.visible&&i.addClass(s),c||t.css(r.options.itemHoverStyle)}).on("mouseout",function(){r.chart.styledMode||t.css(Ce(e.visible?r.itemStyle:r.itemHiddenStyle)),d(""),i.removeClass(s),e.setState()}).on("click",function(t){i.removeClass(s),le(r,"itemClick",{browserEvent:t,legendItem:e,context:r},function(){e.setVisible&&e.setVisible(),d(e.visible?"inactive":"")}),a?e.firePointEvent("legendItemClick",{browserEvent:t}):l&&le(e,"legendItemClick",{browserEvent:t})})}createCheckboxForItem(e){e.checkbox=Z("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:e.selected,defaultChecked:e.selected},this.options.itemCheckboxStyle,this.chart.container),V(e.checkbox,"click",function(t){let n=t.target;le(e.series||e,"checkboxClick",{checked:n.checked,item:e},function(){e.select()})})}}(b=wr||(wr={})).compose=function(e){Pe(yr,"Core.Legend")&&V(e,"beforeMargins",function(){this.legend=new b(this,this.options.legend)})};let Cr=wr,{animate:kr,animObject:Sr,setAnimation:Er}=lt,{defaultOptions:$r}=Ze,{numberFormat:Tr}=wt,{registerEventOptions:Mr}=dn,{charts:Pr,doc:Nr,marginNames:Ir,svg:Or,win:Ar}=_,{seriesTypes:Rr}=rr;class Lr{static chart(e,t,n){return new Lr(e,t,n)}constructor(e,t,n){if(this.sharedClips={},!Nr)return void je(36,!1,this);const r=[...arguments];(ve(e)||e.nodeName)&&(this.renderTo=r.shift()),this.init(r[0],r[1])}setZoomOptions(){let e=this.options.chart,t=e.zooming;this.zooming={...t,type:Te(e.zoomType,t.type),key:Te(e.zoomKey,t.key),pinchType:Te(e.pinchType,t.pinchType),singleTouch:Te(e.zoomBySingleTouch,t.singleTouch,!1),resetButton:Ce(t.resetButton,e.resetZoomButton)}}init(e,t){le(this,"init",{args:arguments},function(){var n;let r=Ce($r,e),o=r.chart,i=this.renderTo||o.renderTo;this.userOptions=ie({},e),(this.renderTo=ve(i)?Nr.getElementById(i):i)||je(13,!0,this),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=t,this.isResizing=0,this.options=r,this.axes=[],this.series=[],this.locale=r.lang.locale??(null==(n=this.renderTo.closest("[lang]"))?void 0:n.lang),this.time=new qe(ie(r.time||{},{locale:this.locale}),r.lang),r.time=this.time.options,this.numberFormatter=(o.numberFormatter||Tr).bind(this),this.styledMode=o.styledMode,this.hasCartesianSeries=o.showAxes,this.index=Pr.length,Pr.push(this),_.chartCount++,Mr(this,o),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),le(this,"afterInit"),this.firstRender()})}initSeries(e){let t=this.options.chart,n=e.type||t.type,r=Rr[n];r||je(17,!0,this,{missingModuleFor:n});let o=new r;return"function"==typeof o.init&&o.init(this,e),o}setSortedData(){this.getSeriesOrderByLinks().forEach(function(e){e.points||e.data||!e.enabledDataSorting||e.setData(e.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(e,t){return e.linkedSeries.length||t.linkedSeries.length?t.linkedSeries.length-e.linkedSeries.length:0})}orderItems(e,t=0){let n=this[e],r=this.options[e]=Ae(this.options[e]).slice(),o=this.userOptions[e]=this.userOptions[e]?Ae(this.userOptions[e]).slice():[];if(this.hasRendered&&(r.splice(t),o.splice(t)),n)for(let e=t,i=n.length;e<i;++e){let t=n[e];t&&(t.index=e,t instanceof pr&&(t.name=t.getName()),t.options.isInternal||(r[e]=t.options,o[e]=t.userOptions))}}getClipBox(e,t){var n,r;let o=this.inverted,{xAxis:i,yAxis:a}=e||{},{x:l,y:s,width:c,height:u}=Ce(this.clipBox);return e&&(i&&i.len!==this.plotSizeX&&(c=i.len),a&&a.len!==this.plotSizeY&&(u=a.len),o&&!e.invertible&&([c,u]=[u,c])),t&&(l+=(null==(n=o?a:i)?void 0:n.pos)??this.plotLeft,s+=(null==(r=o?i:a)?void 0:r.pos)??this.plotTop),{x:l,y:s,width:c,height:u}}isInsidePlot(e,t,n={}){var r;let{inverted:o,plotBox:i,plotLeft:a,plotTop:l,scrollablePlotBox:s}=this,{scrollLeft:c=0,scrollTop:u=0}=n.visiblePlotOnly&&(null==(r=this.scrollablePlotArea)?void 0:r.scrollingContainer)||{},d=n.series,h=n.visiblePlotOnly&&s||i,p=n.inverted?t:e,f=n.inverted?e:t,m={x:p,y:f,isInsidePlot:!0,options:n};if(!n.ignoreX){let e=d&&(o&&!this.polar?d.yAxis:d.xAxis)||{pos:a,len:1/0},t=n.paneCoordinates?e.pos+p:a+p;t>=Math.max(c+a,e.pos)&&t<=Math.min(c+a+h.width,e.pos+e.len)||(m.isInsidePlot=!1)}if(!n.ignoreY&&m.isInsidePlot){let e=!o&&n.axis&&!n.axis.isXAxis&&n.axis||d&&(o?d.xAxis:d.yAxis)||{pos:l,len:1/0},t=n.paneCoordinates?e.pos+f:l+f;t>=Math.max(u+l,e.pos)&&t<=Math.min(u+l+h.height,e.pos+e.len)||(m.isInsidePlot=!1)}return le(this,"afterIsInsidePlot",m),m.isInsidePlot}redraw(e){le(this,"beforeRedraw");let t,n,r,o,i=this.hasCartesianSeries?this.axes:this.colorAxis||[],a=this.series,l=this.pointer,s=this.legend,c=this.userOptions.legend,u=this.renderer,d=u.isHidden(),h=[],p=this.isDirtyBox,f=this.isDirtyLegend;for(u.rootFontSize=u.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),Er(!!this.hasRendered&&e,this),d&&this.temporaryDisplay(),this.layOutTitles(!1),r=a.length;r--;)if(((o=a[r]).options.stacking||o.options.centerInCategory)&&(n=!0,o.isDirty)){t=!0;break}if(t)for(r=a.length;r--;)(o=a[r]).options.stacking&&(o.isDirty=!0);a.forEach(function(e){e.isDirty&&("point"===e.options.legendType?("function"==typeof e.updateTotals&&e.updateTotals(),f=!0):c&&(c.labelFormatter||c.labelFormat)&&(f=!0)),e.isDirtyData&&le(e,"updatedData")}),f&&s&&s.options.enabled&&(s.render(),this.isDirtyLegend=!1),n&&this.getStacks(),i.forEach(function(e){e.updateNames(),e.setScale()}),this.getMargins(),i.forEach(function(e){e.isDirty&&(p=!0)}),i.forEach(function(e){let t=e.min+","+e.max;e.extKey!==t&&(e.extKey=t,h.push(function(){le(e,"afterSetExtremes",ie(e.eventArgs,e.getExtremes())),delete e.eventArgs})),(p||n)&&e.redraw()}),p&&this.drawChartBox(),le(this,"predraw"),a.forEach(function(e){(p||e.isDirty)&&e.visible&&e.redraw(),e.isDirtyData=!1}),l&&l.reset(!0),u.draw(),le(this,"redraw"),le(this,"render"),d&&this.temporaryDisplay(!0),h.forEach(function(e){e.call()})}get(e){let t=this.series;function n(t){return t.id===e||t.options&&t.options.id===e}let r=pe(this.axes,n)||pe(this.series,n);for(let e=0;!r&&e<t.length;e++)r=pe(t[e].points||[],n);return r}createAxes(){let e=this.userOptions;for(let t of(le(this,"createAxes"),["xAxis","yAxis"]))for(let n of e[t]=Ae(e[t]||{}))new wn(this,n,t);le(this,"afterCreateAxes")}getSelectedPoints(){return this.series.reduce((e,t)=>(t.getPointsCollection().forEach(t=>{Te(t.selectedStaging,t.selected)&&e.push(t)}),e),[])}getSelectedSeries(){return this.series.filter(e=>e.selected)}setTitle(e,t,n){this.applyDescription("title",e),this.applyDescription("subtitle",t),this.applyDescription("caption",void 0),this.layOutTitles(n)}applyDescription(e,t){var n;let r=this,o=this.options[e]=Ce(this.options[e],t),i=this[e];i&&t&&(this[e]=i=i.destroy()),o&&!i&&((i=this.renderer.text(o.text,0,0,o.useHTML).attr({align:o.align,class:"highcharts-"+e,zIndex:o.zIndex||4}).css({textOverflow:"ellipsis",whiteSpace:"nowrap"}).add()).update=function(t,n){r.applyDescription(e,t),r.layOutTitles(n)},this.styledMode||i.css(ie("title"===e?{fontSize:this.options.isStock?"1em":"1.2em"}:{},o.style)),i.textPxLength=i.getBBox().width,i.css({whiteSpace:null==(n=o.style)?void 0:n.whiteSpace}),this[e]=i)}layOutTitles(e=!0){var t,n,r,o;let i=[0,0,0],{options:a,renderer:l,spacingBox:s}=this;["title","subtitle","caption"].forEach(e=>{var t;let n=this[e],r=this.options[e],o=Ce(s),a=(null==n?void 0:n.textPxLength)||0;if(n&&r){le(this,"layOutTitle",{alignTo:o,key:e,textPxLength:a});let s=l.fontMetrics(n),c=s.b,u=s.h,d=r.verticalAlign||"top",h="top"===d,p=h&&r.minScale||1,f="title"===e?h?-3:0:h?i[0]+2:0,m=Math.min(o.width/a,1),g=Math.max(p,m),y=Ce({y:"bottom"===d?c:f+c},r),v=(r.width||(m>p?this.chartWidth:o.width)/g)+"px";y.align??(y.align="title"===e?m<p?"left":"center":null==(t=this.title)?void 0:t.alignValue),n.alignValue!==y.align&&(n.placed=!1);let b=Math.round(n.css({width:v}).getBBox(r.useHTML).height);if(y.height=b,n.align(y,!1,o).attr({align:y.align,scaleX:g,scaleY:g,"transform-origin":`${o.x+a*g*se(y.align)} ${u}`}),!r.floating){let e=b*(b<1.2*u?1:g);"top"===d?i[0]=Math.ceil(i[0]+e):"bottom"===d&&(i[2]=Math.ceil(i[2]+e))}}},this),i[0]&&"top"===((null==(t=a.title)?void 0:t.verticalAlign)||"top")&&(i[0]+=(null==(n=a.title)?void 0:n.margin)||0),i[2]&&"bottom"===(null==(r=a.caption)?void 0:r.verticalAlign)&&(i[2]+=(null==(o=a.caption)?void 0:o.margin)||0);let c=!this.titleOffset||this.titleOffset.join(",")!==i.join(",");this.titleOffset=i,le(this,"afterLayOutTitles"),!this.isDirtyBox&&c&&(this.isDirtyBox=this.isDirtyLegend=c,this.hasRendered&&e&&this.isDirtyBox&&this.redraw())}getContainerBox(){let e=[].map.call(this.renderTo.children,e=>{if(e!==this.container){let t=e.style.display;return e.style.display="none",[e,t]}}),t={width:he(this.renderTo,"width",!0)||0,height:he(this.renderTo,"height",!0)||0};return e.filter(Boolean).forEach(([e,t])=>{e.style.display=t}),t}getChartSize(){var e;let t=this.options.chart,n=t.width,r=t.height,o=this.getContainerBox(),i=o.height<=1||!(null==(e=this.renderTo.parentElement)?void 0:e.style.height)&&"100%"===this.renderTo.style.height;this.chartWidth=Math.max(0,n||o.width||600),this.chartHeight=Math.max(0,Ne(r,this.chartWidth)||(i?400:o.height)),this.containerBox=o}temporaryDisplay(e){let t,n=this.renderTo;if(e)for(;null==n?void 0:n.style;)n.hcOrigStyle&&(J(n,n.hcOrigStyle),delete n.hcOrigStyle),n.hcOrigDetached&&(Nr.body.removeChild(n),n.hcOrigDetached=!1),n=n.parentNode;else for(;(null==n?void 0:n.style)&&(Nr.body.contains(n)||n.parentNode||(n.hcOrigDetached=!0,Nr.body.appendChild(n)),("none"===he(n,"display",!1)||n.hcOrigDetached)&&(n.hcOrigStyle={display:n.style.display,height:n.style.height,overflow:n.style.overflow},t={display:"block",overflow:"hidden"},n!==this.renderTo&&(t.height=0),J(n,t),n.offsetWidth||n.style.setProperty("display","block","important")),(n=n.parentNode)!==Nr.body););}setClassName(e){this.container.className="highcharts-container "+(e||"")}getContainer(){var e,t;let n,r=this.options,o=r.chart,i="data-highcharts-chart",a=_e(),l=this.renderTo,s=Me(X(l,i));ye(s)&&Pr[s]&&Pr[s].hasRendered&&Pr[s].destroy(),X(l,i,this.index),l.innerHTML=pt.emptyHTML,o.skipClone||l.offsetWidth||this.temporaryDisplay(),this.getChartSize();let c=this.chartHeight,u=this.chartWidth;J(l,{overflow:"hidden"}),this.styledMode||(n=ie({position:"relative",overflow:"hidden",width:u+"px",height:c+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none",padding:"0px"},o.style||{}));let d=Z("div",{id:a},n,l);this.container=d,this.getChartSize(),u!==this.chartWidth&&(u=this.chartWidth,this.styledMode||J(d,{width:Te(null==(e=o.style)?void 0:e.width,u+"px")})),this.containerBox=this.getContainerBox(),this._cursor=d.style.cursor;let h=o.renderer||!Or?Ct.getRendererType(o.renderer):nn;if(this.renderer=new h(d,u,c,void 0,o.forExport,null==(t=r.exporting)?void 0:t.allowHTML,this.styledMode),Er(void 0,this),this.setClassName(o.className),this.styledMode)for(let e in r.defs)this.renderer.definition(r.defs[e]);else this.renderer.setStyle(o.style);this.renderer.chartIndex=this.index,le(this,"afterGetContainer")}getMargins(e){var t;let{spacing:n,margin:r,titleOffset:o}=this;this.resetMargins(),o[0]&&!ee(r[0])&&(this.plotTop=Math.max(this.plotTop,o[0]+n[0])),o[2]&&!ee(r[2])&&(this.marginBottom=Math.max(this.marginBottom,o[2]+n[2])),(null==(t=this.legend)?void 0:t.display)&&this.legend.adjustMargins(r,n),le(this,"getMargins"),e||this.getAxisMargins()}getAxisMargins(){let e=this,t=e.axisOffset=[0,0,0,0],n=e.colorAxis,r=e.margin,o=e=>{e.forEach(e=>{e.visible&&e.getOffset()})};e.hasCartesianSeries?o(e.axes):(null==n?void 0:n.length)&&o(n),Ir.forEach((n,o)=>{ee(r[o])||(e[n]+=t[o])}),e.setChartSize()}getOptions(){return re(this.userOptions,$r)}reflow(e){var t,n;let r=this,o=r.containerBox,i=r.getContainerBox();null==(t=r.pointer)||delete t.chartPosition,!(null==(n=r.exporting)?void 0:n.isPrinting)&&!r.isResizing&&o&&i.width&&((i.width!==o.width||i.height!==o.height)&&(fe(r.reflowTimeout),r.reflowTimeout=Le(function(){if(r.container){r.setSize(void 0,void 0,!1);let e=r.containerBox;e&&(e.height=r.chartHeight)}},100*!!e)),r.containerBox=i)}setReflow(){let e=this,t=t=>{var n;(null==(n=e.options)?void 0:n.chart.reflow)&&e.hasLoaded&&e.reflow(t)};if("function"==typeof ResizeObserver)new ResizeObserver(t).observe(e.renderTo);else{let e=V(Ar,"resize",t);V(this,"destroy",e)}}setSize(e,t,n){let r=this,o=r.renderer;r.isResizing+=1,Er(n,r);let i=o.globalAnimation;r.oldChartHeight=r.chartHeight,r.oldChartWidth=r.chartWidth,void 0!==e&&(r.options.chart.width=e),void 0!==t&&(r.options.chart.height=t),r.getChartSize();let{chartWidth:a,chartHeight:l,scrollablePixelsX:s=0,scrollablePixelsY:c=0}=r;(r.isDirtyBox||a!==r.oldChartWidth||l!==r.oldChartHeight)&&(r.styledMode||(i?kr:J)(r.container,{width:`${a+s}px`,height:`${l+c}px`},i),r.setChartSize(!0),o.setSize(a,l,i),r.axes.forEach(function(e){e.isDirty=!0,e.setScale()}),r.isDirtyLegend=!0,r.isDirtyBox=!0,r.layOutTitles(),r.getMargins(),r.redraw(i),r.oldChartHeight=void 0,le(r,"resize"),setTimeout(()=>{r&&le(r,"endResize")},Sr(i).duration)),r.isResizing-=1}setChartSize(e){let t,n,r,o,{chartHeight:i,chartWidth:a,inverted:l,spacing:s,renderer:c}=this,u=this.clipOffset,d=Math[l?"floor":"round"];this.plotLeft=t=Math.round(this.plotLeft),this.plotTop=n=Math.round(this.plotTop),this.plotWidth=r=Math.max(0,Math.round(a-t-(this.marginRight??0))),this.plotHeight=o=Math.max(0,Math.round(i-n-(this.marginBottom??0))),this.plotSizeX=l?o:r,this.plotSizeY=l?r:o,this.spacingBox=c.spacingBox={x:s[3],y:s[0],width:a-s[3]-s[1],height:i-s[0]-s[2]},this.plotBox=c.plotBox={x:t,y:n,width:r,height:o},u&&(this.clipBox={x:d(u[3]),y:d(u[0]),width:d(this.plotSizeX-u[1]-u[3]),height:d(this.plotSizeY-u[0]-u[2])}),e||(this.axes.forEach(function(e){e.setAxisSize(),e.setAxisTranslation()}),c.alignElements()),le(this,"afterSetChartSize",{skipAxes:e})}resetMargins(){le(this,"resetMargins");let e=this,t=e.options.chart,n=t.plotBorderWidth||0,r=Math.round(n)/2;["margin","spacing"].forEach(n=>{let r=t[n],o=we(r)?r:[r,r,r,r];["Top","Right","Bottom","Left"].forEach((r,i)=>{e[n][i]=t[`${n}${r}`]??o[i]})}),Ir.forEach((t,n)=>{e[t]=e.margin[n]??e.spacing[n]}),e.axisOffset=[0,0,0,0],e.clipOffset=[r,r,r,r],e.plotBorderWidth=n}drawChartBox(){let e,t,n,r=this.options.chart,o=this.renderer,i=this.chartWidth,a=this.chartHeight,l=this.styledMode,s=this.plotBGImage,c=r.backgroundColor,u=r.plotBackgroundColor,d=r.plotBackgroundImage,h=this.plotLeft,p=this.plotTop,f=this.plotWidth,m=this.plotHeight,g=this.plotBox,y=this.clipRect,v=this.clipBox,b=this.chartBackground,x=this.plotBackground,w=this.plotBorder,C="animate";b||(this.chartBackground=b=o.rect().addClass("highcharts-background").add(),C="attr"),l?e=t=b.strokeWidth():(t=(e=r.borderWidth||0)+8*!!r.shadow,n={fill:c||"none"},(e||b["stroke-width"])&&(n.stroke=r.borderColor,n["stroke-width"]=e),b.attr(n).shadow(r.shadow)),b[C]({x:t/2,y:t/2,width:i-t-e%2,height:a-t-e%2,r:r.borderRadius}),C="animate",x||(C="attr",this.plotBackground=x=o.rect().addClass("highcharts-plot-background").add()),x[C](g),!l&&(x.attr({fill:u||"none"}).shadow(r.plotShadow),d&&(s?(d!==s.attr("href")&&s.attr("href",d),s.animate(g)):this.plotBGImage=o.image(d,h,p,f,m).add())),y?y.animate({width:v.width,height:v.height}):this.clipRect=o.clipRect(v),C="animate",w||(C="attr",this.plotBorder=w=o.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),l||w.attr({stroke:r.plotBorderColor,"stroke-width":r.plotBorderWidth||0,fill:"none"}),w[C](w.crisp(g,-w.strokeWidth())),this.isDirtyBox=!1,le(this,"afterDrawChartBox")}propFromSeries(){let e,t,n,r=this,o=r.options.chart,i=r.options.series;["inverted","angular","polar"].forEach(function(a){for(t=Rr[o.type],n=o[a]||t&&t.prototype[a],e=null==i?void 0:i.length;!n&&e--;)(t=Rr[i[e].type])&&t.prototype[a]&&(n=!0);r[a]=n})}linkSeries(e){let t=this,n=t.series;n.forEach(function(e){e.linkedSeries.length=0}),n.forEach(function(e){let{linkedTo:r}=e.options,o=ve(r)&&(":previous"===r?n[e.index-1]:t.get(r));o&&o.linkedParent!==e&&(o.linkedSeries.push(e),e.linkedParent=o,o.enabledDataSorting&&e.setDataSortingOptions(),e.visible=e.options.visible??o.options.visible??e.visible)}),le(this,"afterLinkSeries",{isUpdating:e})}renderSeries(){this.series.forEach(function(e){e.translate(),e.render()})}render(){var e,t,n;let r,o=this.axes,i=this.colorAxis,a=this.renderer,l=this.options.chart.axisLayoutRuns||2,s=e=>{e.forEach(e=>{e.visible&&e.render()})},c=0,u=!0,d=0;for(let t of(this.setTitle(),le(this,"beforeMargins"),null==(e=this.getStacks)||e.call(this),this.getMargins(!0),this.setChartSize(),o)){let{options:e}=t,{labels:n}=e;if(this.hasCartesianSeries&&t.horiz&&t.visible&&n.enabled&&t.series.length&&"colorAxis"!==t.coll&&!this.polar){c=e.tickLength,t.createGroups();let r=new pn(t,0,"",!0),o=r.createLabel("x",n);if(r.destroy(),o&&Te(n.reserveSpace,!ye(e.crossing))&&(c=o.getBBox().height+n.distance+Math.max(e.offset||0,0)),c){null==o||o.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-c,0);(u||r||l>1)&&d<l;){let e=this.plotWidth,i=this.plotHeight,a=[1.05,1.1];for(let e of o){let o=+(e.horiz||0);if(0===d){e.setScale();let r=null==(n=null==(t=e.tickPositions)?void 0:t.info)?void 0:n.match;r&&(a[o]=Math.min(r,a[o]))}else(o&&u||!o&&r)&&e.setTickInterval(!0)}0===d?this.getAxisMargins():this.getMargins(),u=e/this.plotWidth>(d?1:a[1]),r=i/this.plotHeight>(d?1:a[0]),d++}this.drawChartBox(),this.hasCartesianSeries?s(o):(null==i?void 0:i.length)&&s(i),this.seriesGroup||(this.seriesGroup=a.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(e){var t;let n=this,r=Ce(!0,this.options.credits,e);r.enabled&&!this.credits&&(this.credits=this.renderer.text(r.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(e){le(n,"creditsClick",e,()=>{r.href&&(Ar.location.href=r.href)})}).attr({align:r.position.align,zIndex:8}),(null==(t=r.events)?void 0:t.click)&&V(n,"creditsClick",r.events.click),n.styledMode||this.credits.css(r.style),this.credits.add().align(r.position),this.credits.update=function(e){n.credits=n.credits.destroy(),n.addCredits(e)})}destroy(){var e,t;let n,r=this,o=r.axes,i=r.series,a=r.container,l=null==a?void 0:a.parentNode;for(le(r,"destroy"),r.renderer.forExport?oe(Pr,r):Pr[r.index]=void 0,_.chartCount--,r.renderTo.removeAttribute("data-highcharts-chart"),Oe(r),n=o.length;n--;)o[n]=o[n].destroy();for(null==(t=null==(e=this.scroller)?void 0:e.destroy)||t.call(e),n=i.length;n--;)i[n]=i[n].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(e=>{var t,n;r[e]=null==(n=null==(t=r[e])?void 0:t.destroy)?void 0:n.call(t)}),a&&(a.innerHTML=pt.emptyHTML,Oe(a),l&&ne(a)),Se(r,function(e,t){delete r[t]})}firstRender(){var e;let t=this,n=t.options;t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.createAxes();let r=be(n.series)?n.series:[];n.series=[],r.forEach(function(e){t.initSeries(e)}),t.linkSeries(),t.setSortedData(),le(t,"beforeRender"),t.render(),null==(e=t.pointer)||e.getChartPosition(),t.renderer.asyncCounter||t.hasLoaded||t.onload(),t.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(e){e&&void 0!==this.index&&e.apply(this,[this])},this),le(this,"load"),le(this,"render"),ee(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.warnIfCSSNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:e,title:t}=this;e&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":((null==t?void 0:t.element.textContent)||"").replace(/</g,"<")}),e.accessibility&&!1===e.accessibility.enabled||je('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))}warnIfCSSNotLoaded(){this.styledMode&&"0"!==Ar.getComputedStyle(this.container).zIndex&&je(35,!1,this)}addSeries(e,t,n){let r,o=this;return e&&(t=Te(t,!0),le(o,"addSeries",{options:e},function(){r=o.initSeries(e),o.isDirtyLegend=!0,o.linkSeries(),r.enabledDataSorting&&r.setData(e.data,!1),le(o,"afterAddSeries",{series:r}),t&&o.redraw(n)})),r}addAxis(e,t,n,r){return this.createAxis(t?"xAxis":"yAxis",{axis:e,redraw:n,animation:r})}addColorAxis(e,t,n){return this.createAxis("colorAxis",{axis:e,redraw:t,animation:n})}createAxis(e,t){let n=new wn(this,t.axis,e);return Te(t.redraw,!0)&&this.redraw(t.animation),n}showLoading(e){let t=this,n=t.options,r=n.loading,o=(null==r?void 0:r.style)??{},i=function(){a&&J(a,{left:o.left??t.plotLeft+"px",top:o.top??t.plotTop+"px",width:o.width??t.plotWidth+"px",height:o.height??t.plotHeight+"px"})},a=t.loadingDiv,l=t.loadingSpan;a||(t.loadingDiv=a=Z("div",{className:"highcharts-loading highcharts-loading-hidden"},null,t.container)),l||(t.loadingSpan=l=Z("span",{className:"highcharts-loading-inner"},null,a),V(t,"redraw",i)),a.className="highcharts-loading",pt.setElementHTML(l,Te(e,n.lang.loading,"")),!t.styledMode&&(J(a,ie(o,{zIndex:10})),J(l,(null==r?void 0:r.labelStyle)??{}),t.loadingShown||(J(a,{opacity:0,display:""}),kr(a,{opacity:o.opacity??.5},{duration:(null==r?void 0:r.showDuration)??0}))),t.loadingShown=!0,i()}hideLoading(){var e;let t=this.options,n=this.loadingDiv;n&&(n.className="highcharts-loading highcharts-loading-hidden",this.styledMode||kr(n,{opacity:0},{duration:(null==(e=t.loading)?void 0:e.hideDuration)??100,complete:function(){J(n,{display:"none"})}})),this.loadingShown=!1}update(e,t,n,r){let o,i,a,l=this,s={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},c=e.isResponsiveOptions,u=[];le(l,"update",{options:e}),c||l.setResponsive(!1,!0),e=re(e,l.options),l.userOptions=Ce(l.userOptions,e);let d=e.chart;d&&(Ce(!0,l.options.chart,d),this.setZoomOptions(),"className"in d&&l.setClassName(d.className),("inverted"in d||"polar"in d||"type"in d)&&(l.propFromSeries(),o=!0),"alignTicks"in d&&(o=!0),"events"in d&&Mr(this,d),Se(d,function(e,t){-1!==l.propsRequireUpdateSeries.indexOf("chart."+t)&&(i=!0),-1!==l.propsRequireDirtyBox.indexOf(t)&&(l.isDirtyBox=!0),-1!==l.propsRequireReflow.indexOf(t)&&(l.isDirtyBox=!0,c||(a=!0))}),!l.styledMode&&d.style&&l.renderer.setStyle(l.options.chart.style||{})),!l.styledMode&&e.colors&&(this.options.colors=e.colors),Se(e,function(t,n){l[n]&&"function"==typeof l[n].update?l[n].update(t,!1):"function"==typeof l[s[n]]?l[s[n]](t):"colors"!==n&&-1===l.collectionsWithUpdate.indexOf(n)&&Ce(!0,l.options[n],e[n]),"chart"!==n&&-1!==l.propsRequireUpdateSeries.indexOf(n)&&(i=!0)}),this.collectionsWithUpdate.forEach(t=>{e[t]&&(Ae(e[t]).forEach((e,r)=>{let o;if(!e)return;let i=ee(e.id);i&&(o=l.get(e.id)),!o&&l[t]&&(o=l[t][Te(e.index,r)])&&(i&&ee(o.options.id)||o.options.isInternal)&&(o=void 0),o&&o.coll===t&&(o.update(e,!1),n&&(o.touched=!0)),!o&&n&&l.collectionsWithInit[t]&&(l.collectionsWithInit[t][0].apply(l,[e].concat(l.collectionsWithInit[t][1]||[]).concat([!1])).touched=!0)}),n&&l[t].forEach(e=>{e.touched||e.options.isInternal?delete e.touched:u.push(e)}))}),u.forEach(e=>{e.chart&&e.remove&&e.remove(!1)}),o&&l.axes.forEach(function(e){e.update({},!1)}),i&&l.getSeriesOrderByLinks().forEach(function(e){e.chart&&e.update({},!1)},this);let h=null==d?void 0:d.width,p=d&&(ve(d.height)?Ne(d.height,h||l.chartWidth):d.height);a||ye(h)&&h!==l.chartWidth||ye(p)&&p!==l.chartHeight?l.setSize(h,p,r):Te(t,!0)&&l.redraw(r),le(l,"afterUpdate",{options:e,redraw:t,animation:r})}setSubtitle(e,t){this.applyDescription("subtitle",e),this.layOutTitles(t)}setCaption(e,t){this.applyDescription("caption",e),this.layOutTitles(t)}showResetZoom(){let e=this,t=$r.lang,n=e.zooming.resetButton,r=n.theme,o="chart"===n.relativeTo||"spacingBox"===n.relativeTo?null:"plotBox";function i(){e.zoomOut()}le(this,"beforeShowResetZoom",null,function(){e.resetZoomButton=e.renderer.button(t.resetZoom,null,null,i,r).attr({align:n.position.align,title:t.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(n.position,!1,o)}),le(this,"afterShowResetZoom")}zoomOut(){le(this,"selection",{resetSelection:!0},()=>this.transform({reset:!0,trigger:"zoom"}))}pan(e,t){let n=this,r="object"==typeof t?t:{enabled:t,type:"x"},o=r.type,i=o&&n[{x:"xAxis",xy:"axes",y:"yAxis"}[o]].filter(e=>e.options.panningEnabled&&!e.options.isInternal),a=n.options.chart;(null==a?void 0:a.panning)&&(a.panning=r),le(this,"pan",{originalEvent:e},()=>{n.transform({axes:i,event:e,to:{x:e.chartX-(n.mouseDownX||0),y:e.chartY-(n.mouseDownY||0)},trigger:"pan"}),J(n.container,{cursor:"move"})})}transform(e){var t;let{axes:n=this.axes,event:r,from:o={},reset:i,selection:a,to:l={},trigger:s,allowResetButton:c=!0}=e,{inverted:u,time:d}=this;null==(t=this.hoverPoints)||t.forEach(e=>e.setState()),le(this,"transform",e);let h,p,f=e.hasZoomed||!1;for(let e of n){let{horiz:t,len:n,minPointOffset:m=0,options:g,reversed:y}=e,v=t?"width":"height",b=t?"x":"y",x=Te(l[v],e.len),w=Te(o[v],e.len),C=10>Math.abs(x)?1:x/w,k=(o[b]||0)+w/2-e.pos,S=k-((l[b]??e.pos)+x/2-e.pos)/C,E=y&&!u||!y&&u?-1:1;if(!i&&(k<0||k>e.len))continue;let $=e.chart.polar||e.isOrdinal?0:m*E||0,T=e.toValue(S,!0),M=e.toValue(S+n/C,!0),P=T+$,N=M-$,I=e.allExtremes;if(a&&a[e.coll].push({axis:e,min:Math.min(T,M),max:Math.max(T,M)}),P>N&&([P,N]=[N,P]),1===C&&!i&&"yAxis"===e.coll&&!I){for(let t of e.series){let e=t.getExtremes(t.getProcessedData(!0).modified.getColumn(t.pointValKey||"y")||[],!0);I??(I={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),ye(e.dataMin)&&ye(e.dataMax)&&(I.dataMin=Math.min(e.dataMin,I.dataMin),I.dataMax=Math.max(e.dataMax,I.dataMax))}e.allExtremes=I}let{dataMin:O,dataMax:A,min:R,max:L}=ie(e.getExtremes(),I||{}),B=d.parse(g.min),z=d.parse(g.max),D=O??B,j=A??z,F=N-P,H=e.categories?0:Math.min(F,j-D),_=D-H*(ee(B)?0:g.minPadding),W=j+H*(ee(z)?0:g.maxPadding),K=e.allowZoomOutside||1===C||"zoom"!==s&&C>1,V=Math.min(B??_,_,K?R:_),G=Math.max(z??W,W,K?L:W);(!e.isOrdinal||1!==C||i)&&(P<V&&(P=V,C>=1&&(N=P+F)),N>G&&(N=G,C>=1&&(P=N-F)),(i||e.series.length&&(P!==R||N!==L)&&P>=V&&N<=G)&&(a?a[e.coll].push({axis:e,min:P,max:N}):(e.isPanning="zoom"!==s,e.isPanning&&"mousewheel"!==s&&(p=!0),e.setExtremes(i?void 0:P,i?void 0:N,!1,!1,{move:S,trigger:s,scale:C}),!i&&(P>V||N<G)&&(h=c)),f=!0),this.hasCartesianSeries||i||(h=c),r&&(this[t?"mouseDownX":"mouseDownY"]=r[t?"chartX":"chartY"]))}return f&&(a?le(this,"selection",a,()=>{delete e.selection,e.trigger="zoom",this.transform(e)}):(!h||p||this.resetZoomButton?!h&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw("zoom"===s&&(this.options.chart.animation??this.pointCount<100)))),f}}ie(Lr.prototype,{callbacks:[],collectionsWithInit:{xAxis:[Lr.prototype.addAxis,[!0]],yAxis:[Lr.prototype.addAxis,[!1]],series:[Lr.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]});let{stop:Br}=lt,{composed:zr}=_;function Dr(){let e=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!e&&(this.scrollablePlotArea=e=new Fr(this)),null==e||e.applyFixed()}function jr(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}class Fr{static compose(e,t,n){Pe(zr,this.compose)&&(V(e,"afterInit",jr),V(t,"afterSetChartSize",e=>this.afterSetSize(e.target,e)),V(t,"render",Dr),V(n,"show",jr))}static afterSetSize(e,t){let n,r,o,{minWidth:i,minHeight:a}=e.options.chart.scrollablePlotArea||{},{clipBox:l,plotBox:s,inverted:c,renderer:u}=e;if(!u.forExport)if(i?(e.scrollablePixelsX=n=Math.max(0,i-e.chartWidth),n&&(e.scrollablePlotBox=Ce(e.plotBox),s.width=e.plotWidth+=n,l[c?"height":"width"]+=n,o=!0)):a&&(e.scrollablePixelsY=r=Math.max(0,a-e.chartHeight),ee(r)&&(e.scrollablePlotBox=Ce(e.plotBox),s.height=e.plotHeight+=r,l[c?"width":"height"]+=r,o=!1)),ee(o)){if(!t.skipAxes)for(let t of e.axes)(t.horiz===o||e.hasParallelCoordinates&&"yAxis"===t.coll)&&(t.setAxisSize(),t.setAxisTranslation())}else delete e.scrollablePlotBox}constructor(e){var t;let n;const r=e.options.chart,o=Ct.getRendererType(),i=r.scrollablePlotArea||{},a=this.moveFixedElements.bind(this),l={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};e.scrollablePixelsX&&(l.overflowX="auto"),e.scrollablePixelsY&&(l.overflowY="auto"),this.chart=e;const s=this.parentDiv=Z("div",{className:"highcharts-scrolling-parent"},{position:"relative"},e.renderTo),c=this.scrollingContainer=Z("div",{className:"highcharts-scrolling"},l,s),u=this.innerContainer=Z("div",{className:"highcharts-inner-container"},void 0,c),d=this.fixedDiv=Z("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:((null==(t=r.style)?void 0:t.zIndex)||0)+2,top:0},void 0,!0),h=this.fixedRenderer=new o(d,e.chartWidth,e.chartHeight,r.style);this.mask=h.path().attr({fill:r.backgroundColor||"#fff","fill-opacity":i.opacity??.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),c.parentNode.insertBefore(d,c),J(e.renderTo,{overflow:"visible"}),V(e,"afterShowResetZoom",a),V(e,"afterApplyDrilldown",a),V(e,"afterLayOutTitles",a),V(c,"scroll",()=>{let{pointer:t,hoverPoint:r}=e;t&&(delete t.chartPosition,r&&(n=r),t.runPointActions(void 0,n,!0))}),u.appendChild(e.container)}applyFixed(){var e;let{chart:t,fixedRenderer:n,isDirty:r,scrollingContainer:o}=this,{axisOffset:i,chartWidth:a,chartHeight:l,container:s,plotHeight:c,plotLeft:u,plotTop:d,plotWidth:h,scrollablePixelsX:p=0,scrollablePixelsY:f=0}=t,{scrollPositionX:m=0,scrollPositionY:g=0}=t.options.chart.scrollablePlotArea||{},y=a+p,v=l+f;n.setSize(a,l),(r??!0)&&(this.isDirty=!1,this.moveFixedElements()),Br(t.container),J(s,{width:`${y}px`,height:`${v}px`}),t.renderer.boxWrapper.attr({width:y,height:v,viewBox:["0 0",y,v].join(" ")}),null==(e=t.chartBackground)||e.attr({width:y,height:v}),J(o,{width:`${a}px`,height:`${l}px`}),ee(r)||(o.scrollLeft=p*m,o.scrollTop=f*g);let b=d-i[0]-1,x=u-i[3]-1,w=d+c+i[2]+1,C=u+h+i[1]+1,k=u+h-p,S=d+c-f,E=[["M",0,0]];p?E=[["M",0,b],["L",u-1,b],["L",u-1,w],["L",0,w],["Z"],["M",k,b],["L",a,b],["L",a,w],["L",k,w],["Z"]]:f&&(E=[["M",x,0],["L",x,d-1],["L",C,d-1],["L",C,0],["Z"],["M",x,S],["L",x,l],["L",C,l],["L",C,S],["Z"]]),"adjustHeight"!==t.redrawTrigger&&this.mask.attr({d:E})}moveFixedElements(){let e,{container:t,inverted:n,scrollablePixelsX:r,scrollablePixelsY:o}=this.chart,i=this.fixedRenderer,a=Fr.fixedSelectors.slice();if(r&&!n?e=".highcharts-yaxis":r&&n||o&&!n?e=".highcharts-xaxis":o&&n&&(e=".highcharts-yaxis"),!e||this.chart.hasParallelCoordinates&&".highcharts-yaxis"===e)for(let e of[".highcharts-xaxis",".highcharts-yaxis"])for(let t of[`${e}:not(.highcharts-radial-axis)`,`${e}-labels:not(.highcharts-radial-axis-labels)`])oe(a,t);else for(let t of[`${e}:not(.highcharts-radial-axis)`,`${e}-labels:not(.highcharts-radial-axis-labels)`])Pe(a,t);for(let e of a)[].forEach.call(t.querySelectorAll(e),e=>{(e.namespaceURI===i.SVG_NS?i.box:i.box.parentNode).appendChild(e),e.style.pointerEvents="auto"})}}Fr.fixedSelectors=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-caption",".highcharts-credits",".highcharts-drillup-button",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-range-selector-group",".highcharts-reset-zoom",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"];let{format:Hr}=wt,{series:_r}=rr,Wr=class{constructor(e,t,n,r,o){const i=e.chart.inverted,a=e.reversed;this.axis=e;const l=this.isNegative=!!n!=!!a;this.options=t=t||{},this.x=r,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=o,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:t.align||(i?l?"left":"right":"center"),verticalAlign:t.verticalAlign||(i?"middle":l?"bottom":"top"),y:t.y,x:t.x},this.textAlign=t.textAlign||(i?l?"right":"left":"center")}destroy(){te(this,this.axis)}render(e){var t;let n=this.axis.chart,r=this.options,o=r.format,i=(o?Hr(o,this,n):null==(t=r.formatter)?void 0:t.call(this,this))||"";if(this.label)this.label.attr({text:i,visibility:"hidden"});else{this.label=n.renderer.label(i,null,void 0,r.shape,void 0,void 0,r.useHTML,!1,"stack-labels");let t={r:r.borderRadius||0,text:i,padding:Te(r.padding,5),visibility:"hidden"};n.styledMode||(t.fill=r.backgroundColor,t.stroke=r.borderColor,t["stroke-width"]=r.borderWidth,this.label.css(r.style||{})),this.label.attr(t),this.label.added||this.label.add(e)}this.label.labelrank=n.plotSizeY,le(this,"afterRender")}setOffset(e,t,n,r,o,i){let{alignOptions:a,axis:l,label:s,options:c,textAlign:u}=this,d=l.chart,h=this.getStackBox({xOffset:e,width:t,boxBottom:n,boxTop:r,defaultX:o,xAxis:i}),{verticalAlign:p}=a;if(s&&h){let e,t=s.getBBox(void 0,0),n=s.padding,r="justify"===Te(c.overflow,"justify");a.x=c.x||0,a.y=c.y||0;let{x:o,y:i}=this.adjustStackPosition({labelBox:t,verticalAlign:p,textAlign:u});h.x-=o,h.y-=i,s.align(a,!1,h),(e=d.isInsidePlot(s.alignAttr.x+a.x+o,s.alignAttr.y+a.y+i))||(r=!1),r&&_r.prototype.justifyDataLabel.call(l,s,a,s.alignAttr,t,h),s.attr({x:s.alignAttr.x,y:s.alignAttr.y,rotation:c.rotation,rotationOriginX:t.width*se(c.textAlign||"center"),rotationOriginY:t.height/2}),Te(!r&&c.crop,!0)&&(e=ye(s.x)&&ye(s.y)&&d.isInsidePlot(s.x-n+(s.width||0),s.y)&&d.isInsidePlot(s.x+n,s.y)),s[e?"show":"hide"]()}le(this,"afterSetOffset",{xOffset:e,width:t})}adjustStackPosition({labelBox:e,verticalAlign:t,textAlign:n}){return{x:e.width/2+e.width/2*(2*se(n)-1),y:e.height/2*2*(1-se(t))}}getStackBox(e){let t=this.axis,n=t.chart,{boxTop:r,defaultX:o,xOffset:i,width:a,boxBottom:l}=e,s=t.stacking.usePercentage?100:Te(r,this.total,0),c=t.toPixels(s),u=e.xAxis||n.xAxis[0],d=Te(o,u.translate(this.x))+i,h=Math.abs(c-t.toPixels(l||ye(t.min)&&t.logarithmic&&t.logarithmic.lin2log(t.min)||0)),p=n.inverted,f=this.isNegative;return p?{x:(f?c:c-h)-n.plotLeft,y:u.height-d-a+u.top-n.plotTop,width:h,height:a}:{x:d+u.transB-n.plotLeft,y:(f?c-h:c)-n.plotTop,width:a,height:h}}},{getDeferredAnimation:Kr}=lt,{series:{prototype:Vr}}=rr;function Gr(){let e=this.inverted;this.axes.forEach(e=>{var t;(null==(t=e.stacking)?void 0:t.stacks)&&e.hasVisibleSeries&&(e.stacking.oldStacks=e.stacking.stacks)}),this.series.forEach(t=>{var n;let r=(null==(n=t.xAxis)?void 0:n.options)||{};t.options.stacking&&t.reserveSpace()&&(t.stackKey=[t.type,Te(t.options.stack,""),e?r.top:r.left,e?r.height:r.width].join(","))})}function qr(){var e;let t=this.stacking;if(t){let n=t.stacks;Se(n,(e,t)=>{te(e),delete n[t]}),null==(e=t.stackTotalGroup)||e.destroy()}}function Xr(){this.stacking||(this.stacking=new eo(this))}function Ur(e,t,n,r){return!ee(e)||e.x!==t||r&&e.stackKey!==r?e={x:t,index:0,key:r,stackKey:r}:e.index++,e.key=[n,t,e.index].join(","),e}function Yr(){let e,t=this,n=t.yAxis,r=t.stackKey||"",o=n.stacking.stacks,i=t.getColumn("x",!0),a=t.options.stacking,l=t[a+"Stacker"];l&&[r,"-"+r].forEach(n=>{var r;let a,s,c,u=i.length;for(;u--;)a=i[u],e=t.getStackIndicator(e,a,t.index,n),s=null==(r=o[n])?void 0:r[a],(c=null==s?void 0:s.points[e.key||""])&&l.call(t,c,s,u)})}function Zr(e,t,n){let r=t.total?100/t.total:0;e[0]=Y(e[0]*r),e[1]=Y(e[1]*r),this.stackedYData[n]=e[1]}function Qr(e){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&this.chart.series.length>1?Vr.setStackedPoints.call(this,e,"group"):e.stacking.resetStacks())}function Jr(e,t){var n,r;let o,i,a,l,s,c,u,d=t||this.options.stacking;if(!d||!this.reserveSpace()||({group:"xAxis"}[d]||"yAxis")!==e.coll)return;let h=this.getColumn("x",!0),p=this.getColumn(this.pointValKey||"y",!0),f=[],m=p.length,g=this.options,y=g.threshold||0,v=g.startFromThreshold?y:0,b=g.stack,x=t?`${this.type},${d}`:this.stackKey||"",w="-"+x,C=this.negStacks,k=e.stacking,S=k.stacks,E=k.oldStacks;for(k.stacksTouched+=1,u=0;u<m;u++){let t=h[u]||0,m=p[u],g=ye(m)&&m||0;c=(o=this.getStackIndicator(o,t,this.index)).key||"",S[s=(i=C&&g<(v?0:y))?w:x]||(S[s]={}),S[s][t]||((null==(n=E[s])?void 0:n[t])?(S[s][t]=E[s][t],S[s][t].total=null):S[s][t]=new Wr(e,e.options.stackLabels,!!i,t,b)),a=S[s][t],null!==m?(a.points[c]=a.points[this.index]=[Te(a.cumulative,v)],ee(a.cumulative)||(a.base=c),a.touched=k.stacksTouched,o.index>0&&!1===this.singleStacks&&(a.points[c][0]=a.points[this.index+","+t+",0"][0])):(delete a.points[c],delete a.points[this.index]);let $=a.total||0;"percent"===d?(l=i?x:w,$=C&&(null==(r=S[l])?void 0:r[t])?(l=S[l][t]).total=Math.max(l.total||0,$)+Math.abs(g):Y($+Math.abs(g))):"group"===d?ye(m)&&$++:$=Y($+g),a.cumulative="group"===d?($||1)-1:Y(Te(a.cumulative,v)+g),a.total=$,null!==m&&(a.points[c].push(a.cumulative),f[u]=a.cumulative,a.hasValidPoints=!0)}"percent"===d&&(k.usePercentage=!0),"group"!==d&&(this.stackedYData=f),k.oldStacks={}}class eo{constructor(e){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=e}buildStacks(){let e,t,n=this.axis,r=n.series,o="xAxis"===n.coll,i=n.options.reversedStacks,a=r.length;for(this.resetStacks(),this.usePercentage=!1,t=a;t--;)e=r[i?t:a-t-1],o&&e.setGroupedPoints(n),e.setStackedPoints(n);if(!o)for(t=0;t<a;t++)r[t].modifyStacks();le(n,"afterBuildStacks")}cleanStacks(){this.oldStacks&&(this.stacks=this.oldStacks,Se(this.stacks,e=>{Se(e,e=>{e.cumulative=e.total})}))}resetStacks(){Se(this.stacks,e=>{Se(e,(t,n)=>{ye(t.touched)&&t.touched<this.stacksTouched?(t.destroy(),delete e[n]):(t.total=null,t.cumulative=null)})})}renderStackTotals(){var e;let t=this.axis,n=t.chart,r=n.renderer,o=this.stacks,i=Kr(n,(null==(e=t.options.stackLabels)?void 0:e.animation)||!1),a=this.stackTotalGroup=this.stackTotalGroup||r.g("stack-labels").attr({zIndex:6,opacity:0}).add();a.translate(n.plotLeft,n.plotTop),Se(o,e=>{Se(e,e=>{e.render(a)})}),a.animate({opacity:1},i)}}(A||(A={})).compose=function(e,t,n){let r=t.prototype,o=n.prototype;r.getStacks||(V(e,"init",Xr),V(e,"destroy",qr),r.getStacks=Gr,o.getStackIndicator=Ur,o.modifyStacks=Yr,o.percentStacker=Zr,o.setGroupedPoints=Qr,o.setStackedPoints=Jr)};let to=A;class no extends pr{drawGraph(){let e=this.options,t=(this.gappedPath||this.getGraphPath).call(this),n=this.chart.styledMode;[this,...this.zones].forEach((r,o)=>{let i,a=r.graph,l=a?"animate":"attr",s=r.dashStyle||e.dashStyle;if(a?(a.endX=this.preventGraphAnimation?null:t.xMap,a.animate({d:t})):t.length&&(r.graph=a=this.chart.renderer.path(t).addClass("highcharts-graph"+(o?` highcharts-zone-graph-${o-1} `:" ")+(o&&r.className||"")).attr({zIndex:1}).add(this.group)),a&&!n&&(i={stroke:!o&&e.lineColor||r.color||this.color||"#cccccc","stroke-width":e.lineWidth||0,fill:this.fillGraph&&this.color||"none"},s?i.dashstyle=s:"square"!==e.linecap&&(i["stroke-linecap"]=i["stroke-linejoin"]="round"),a[l](i),e.shadow)){let t=this.chart.inverted,n={filterUnits:"userSpaceOnUse"},r=we(e.shadow)?Ce(t?{}:n,e.shadow):!!t||n;a.shadow(r)}a&&(a.startX=t.xMap,a.isArea=t.isArea)})}getGraphPath(e,t,n){let r,o=this,i=o.options,a=[],l=[],s=i.step,c=(e=e||o.points).reversed;return c&&e.reverse(),(s={right:1,center:2}[s]||s&&3)&&c&&(s=4-s),(e=this.getValidPoints(e,!1,i.nullInteraction||!(i.connectNulls&&!t&&!n))).forEach(function(c,u){let d,h=c.plotX,p=c.plotY,f=e[u-1],m=c.isNull||"number"!=typeof p;(c.leftCliff||(null==f?void 0:f.rightCliff))&&!n&&(r=!0),m&&!ee(t)&&u>0?r=!i.connectNulls:m&&!t?r=!0:(0===u||r?d=[["M",c.plotX,c.plotY]]:o.getPointSpline?d=[o.getPointSpline(e,c,u)]:s?(d=1===s?[["L",f.plotX,p]]:2===s?[["L",(f.plotX+h)/2,f.plotY],["L",(f.plotX+h)/2,p]]:[["L",h,f.plotY]]).push(["L",h,p]):d=[["L",h,p]],l.push(c.x),s&&(l.push(c.x),2===s&&l.push(c.x)),a.push.apply(a,d),r=!1)}),a.xMap=l,o.graphPath=a,a}}no.defaultOptions=Ce(pr.defaultOptions,{legendSymbol:"lineMarker"}),rr.registerSeriesType("line",no);let{seriesTypes:{line:ro}}=rr;class oo extends ro{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:e,options:t}=this;[this,...this.zones].forEach((n,r)=>{let o={},i=n.fillColor||t.fillColor,a=n.area,l=a?"animate":"attr";a?(a.endX=this.preventGraphAnimation?null:e.xMap,a.animate({d:e})):(o.zIndex=0,(a=n.area=this.chart.renderer.path(e).addClass("highcharts-area"+(r?` highcharts-zone-area-${r-1} `:" ")+(r&&n.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(o.fill=i||n.color||this.color,o["fill-opacity"]=i?1:t.fillOpacity??.75,a.css({pointerEvents:this.stickyTracking?"none":"auto"})),a[l](o),a.startX=e.xMap,a.shiftUnit=t.step?2:1})}getGraphPath(e){let t,n,r,o=ro.prototype.getGraphPath,i=this.options,a=i.stacking,l=this.yAxis,s=[],c=[],u=this.index,d=l.stacking.stacks[this.stackKey],h=i.threshold,p=Math.round(l.getThreshold(i.threshold)),f=Te(i.connectNulls,"percent"===a),m=function(n,r,o){let i,f,m=e[n],g=e[r],y=a&&d[m.x].points[u],v=m[o+"Null"]||0,b=m[o+"Cliff"]||0,x=!0;y&&(b||v)?(i=(v?y[0]:y[1])+b,f=y[0]+b,x=!!v):!a&&g&&(g.isNull||!ee(g.plotY))&&(i=f=h),void 0!==i&&(c.push({plotX:t,plotY:null===i?p:l.getThreshold(i),isNull:x,isCliff:!0}),s.push({plotX:t,plotY:null===f?p:l.getThreshold(f),doCurve:!1}))};e=e||this.points,a&&(e=this.getStackPoints(e));for(let o=0,i=e.length;o<i;++o)a||(e[o].leftCliff=e[o].rightCliff=e[o].leftNull=e[o].rightNull=void 0),n=e[o].isNull||!ee(e[o].plotY),t=Te(e[o].rectPlotX,e[o].plotX),r=a?Te(e[o].yBottom,p):p,(!n||f)&&(f||m(o,o-1,"left"),n&&!a&&f||(c.push(e[o]),s.push({x:o,plotX:t,plotY:r})),f||m(o,o+1,"right"));let g=o.call(this,c,!0,!0);s.reversed=!0;let y=o.call(this,s,!0,!0),v=y[0];v&&"M"===v[0]&&(y[0]=["L",v[1],v[2]]);let b=g.concat(y);b.length&&b.push(["Z"]);let x=o.call(this,c,!1,f);return this.chart.series.length>1&&a&&c.some(e=>e.isCliff)&&(b.hasStackedCliffs=x.hasStackedCliffs=!0),b.xMap=g.xMap,this.areaPath=b,x}getStackPoints(e){let t=this,n=[],r=[],o=this.xAxis,i=this.yAxis,a=i.stacking.stacks[this.stackKey],l={},s=i.series,c=s.length,u=i.options.reversedStacks?1:-1,d=s.indexOf(t),h=i.getThreshold(t.options.threshold||0);if(e=e||this.points,this.options.stacking){for(let t=0;t<e.length;t++)e[t].leftNull=e[t].rightNull=void 0,l[e[t].x]=e[t];Se(a,function(e,t){null!==e.total&&r.push(t)}),r.sort(function(e,t){return e-t});let p=s.map(e=>e.visible);r.forEach(function(e,f){let m,g,y=0;if(l[e]&&!l[e].isNull)n.push(l[e]),[-1,1].forEach(function(n){let o=1===n?"rightNull":"leftNull",i=a[r[f+n]],h=0;if(i){let n=d;for(;n>=0&&n<c;){let r=s[n].index;!(m=i.points[r])&&(r===t.index?l[e][o]=!0:p[n]&&(g=a[e].points[r])&&(h-=g[1]-g[0])),n+=u}}l[e][1===n?"rightCliff":"leftCliff"]=h});else{let t=d;for(;t>=0&&t<c;){let n=s[t].index;if(m=a[e].points[n]){y=m[1];break}t+=u}y||(y=0);let r=i.positiveValuesOnly&&y<=0?h:i.translate(y,!1,!0,!1,!0);n.push({isNull:!0,plotX:o.translate(e,!1,!1,!1,!0),x:e,plotY:r,yBottom:r})}})}return n}}oo.defaultOptions=Ce(ro.defaultOptions,{threshold:0,legendSymbol:"areaMarker"}),ie(oo.prototype,{singleStacks:!1}),rr.registerSeriesType("area",oo);let{line:io}=rr.seriesTypes;class ao extends io{getPointSpline(e,t,n){let r,o,i,a,l=t.plotX||0,s=t.plotY||0,c=e[n-1],u=e[n+1];function d(e){return e&&!e.isNull&&!1!==e.doCurve&&!t.isCliff}if(d(c)&&d(u)){let e=c.plotX||0,n=c.plotY||0,d=u.plotX||0,h=u.plotY||0,p=0;r=(1.5*l+e)/2.5,o=(1.5*s+n)/2.5,i=(1.5*l+d)/2.5,a=(1.5*s+h)/2.5,i!==r&&(p=(a-o)*(i-l)/(i-r)+s-a),o+=p,a+=p,o>n&&o>s?(o=Math.max(n,s),a=2*s-o):o<n&&o<s&&(o=Math.min(n,s),a=2*s-o),a>h&&a>s?(a=Math.max(h,s),o=2*s-a):a<h&&a<s&&(a=Math.min(h,s),o=2*s-a),t.rightContX=i,t.rightContY=a,t.controlPoints={low:[r,o],high:[i,a]}}let h=["C",Te(c.rightContX,c.plotX,0),Te(c.rightContY,c.plotY,0),Te(r,l,0),Te(o,s,0),l,s];return c.rightContX=c.rightContY=void 0,h}}ao.defaultOptions=Ce(io.defaultOptions),rr.registerSeriesType("spline",ao);let lo=ao,{area:so,area:{prototype:co}}=rr.seriesTypes;class uo extends lo{}uo.defaultOptions=Ce(lo.defaultOptions,so.defaultOptions),ie(uo.prototype,{getGraphPath:co.getGraphPath,getStackPoints:co.getStackPoints,drawGraph:co.drawGraph}),rr.registerSeriesType("areaspline",uo);let{animObject:ho}=lt,{parse:po}=tt,{noop:fo}=_;class mo extends pr{animate(e){let t,n,r=this,o=this.yAxis,i=o.pos,a=o.reversed,l=r.options,{clipOffset:s,inverted:c}=this.chart,u={},d=c?"translateX":"translateY";e&&s?(u.scaleY=.001,n=U(o.toPixels(l.threshold||0),i,i+o.len),c?u.translateX=(n+=a?-Math.floor(s[0]):Math.ceil(s[2]))-o.len:u.translateY=n+=a?Math.ceil(s[0]):-Math.floor(s[2]),r.clipBox&&r.setClip(),r.group.attr(u)):(t=Number(r.group.attr(d)),r.group.animate({scaleY:1},ie(ho(r.options.animation),{step:function(e,n){r.group&&(u[d]=t+n.pos*(i-t),r.group.attr(u))}})))}init(e,t){super.init.apply(this,arguments);let n=this;(e=n.chart).hasRendered&&e.series.forEach(function(e){e.type===n.type&&(e.isDirty=!0)})}getColumnMetrics(){var e,t;let n,r=this,o=r.options,i=r.xAxis,a=r.yAxis,l=i.options.reversedStacks,s=i.reversed&&!l||!i.reversed&&l,c={},u=0;!1===o.grouping?u=1:r.chart.series.forEach(function(e){let t,o=e.yAxis,i=e.options;e.type===r.type&&e.reserveSpace()&&a.len===o.len&&a.pos===o.pos&&(i.stacking&&"group"!==i.stacking?(void 0===c[n=e.stackKey]&&(c[n]=u++),t=c[n]):!1!==i.grouping&&(t=u++),e.columnIndex=t)});let d=Math.min(Math.abs(i.transA)*(!(null==(e=i.brokenAxis)?void 0:e.hasBreaks)&&(null==(t=i.ordinal)?void 0:t.slope)||o.pointRange||i.closestPointRange||i.tickInterval||1),i.len),h=d*o.groupPadding,p=(d-2*h)/(u||1),f=Math.min(o.maxPointWidth||i.len,Te(o.pointWidth,p*(1-2*o.pointPadding))),m=(r.columnIndex||0)+ +!!s;return r.columnMetrics={width:f,offset:(p-f)/2+(h+m*p-d/2)*(s?-1:1),paddedWidth:p,columnCount:u},r.columnMetrics}crispCol(e,t,n,r){let o=this.borderWidth,i=this.chart.inverted;return r=Q(t+r,o,i)-(t=Q(t,o,i)),this.options.crisp&&(n=Q(e+n,o)-(e=Q(e,o))),{x:e,y:t,width:n,height:r}}adjustForMissingColumns(e,t,n,r){var o;if(!n.isNull&&r.columnCount>1){let i=this.xAxis.series.filter(e=>e.visible).map(e=>e.index),a=0,l=0;Se(null==(o=this.xAxis.stacking)?void 0:o.stacks,e=>{var t;let r="number"==typeof n.x?null==(t=e[n.x.toString()])?void 0:t.points:void 0,o=null==r?void 0:r[this.index],s={};if(r&&be(o)){let e=this.index,t=Object.keys(r).filter(e=>!e.match(",")&&r[e]&&r[e].length>1).map(parseFloat).filter(e=>-1!==i.indexOf(e)).filter(t=>{let n=this.chart.series[t].options,r=n.stacking&&n.stack;if(ee(r)){if(ye(s[r]))return e===t&&(e=s[r]),!1;s[r]=t}return!0}).sort((e,t)=>t-e);a=t.indexOf(e),l=t.length}}),a=this.xAxis.reversed?l-1-a:a;let s=(l-1)*r.paddedWidth+t;e=(n.plotX||0)+s/2-t-a*r.paddedWidth}return e}translate(){let e=this,t=e.chart,n=e.options,r=e.dense=e.closestPointRange*e.xAxis.transA<2,o=e.borderWidth=n.borderWidth??+!r,i=e.xAxis,a=e.yAxis,l=n.threshold,s=n.minPointLength??5,c=e.getColumnMetrics(),u=c.width,d=e.pointXOffset=c.offset,h=e.dataMin,p=e.dataMax,f=e.translatedThreshold=a.getThreshold(l),m=e.barW=Math.max(u,1+2*o);n.pointPadding&&n.crisp&&(m=Math.ceil(m)),pr.prototype.translate.apply(e),e.points.forEach(function(r){let o,g=r.yBottom??f,y=999+Math.abs(g),v=r.plotX||0,b=U(r.plotY,-y,a.len+y),x=Math.min(b,g),w=Math.max(b,g)-x,C=u,k=v+d,S=m;s&&Math.abs(w)<s&&(w=s,o=!a.reversed&&!r.negative||a.reversed&&r.negative,ye(l)&&ye(p)&&r.y===l&&p<=l&&(a.min||0)<l&&(h!==p||(a.max||0)<=l)&&(o=!o,r.negative=!r.negative),x=Math.abs(x-f)>s?g-(o?s:0):f-(o?s:0)),ee(r.options.pointWidth)&&(k-=Math.round(((C=S=Math.ceil(r.options.pointWidth))-u)/2)),n.centerInCategory&&(k=e.adjustForMissingColumns(k,C,r,c)),r.barX=k,r.pointWidth=C,r.tooltipPos=t.inverted?[U(a.len+a.pos-t.plotLeft-b,a.pos-t.plotLeft,a.len+a.pos-t.plotLeft),i.len+i.pos-t.plotTop-k-S/2,w]:[i.left-t.plotLeft+k+S/2,U(b+a.pos-t.plotTop,a.pos-t.plotTop,a.len+a.pos-t.plotTop),w],r.shapeType=e.pointClass.prototype.shapeType||"roundedRect",r.shapeArgs=e.crispCol(k,x,S,r.isNull?0:w)}),le(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(e,t){var n;let r,o,i,a=this.options,l=this.pointAttrToOptions||{},s=l.stroke||"borderColor",c=l["stroke-width"]||"borderWidth",u=e&&e.color||this.color,d=e&&e[s]||a[s]||u,h=e&&e.options.dashStyle||a.dashStyle,p=e&&e[c]||a[c]||this[c]||0,f=(null==e?void 0:e.isNull)&&a.nullInteraction?0:(null==e?void 0:e.opacity)??a.opacity??1;e&&this.zones.length&&(o=e.getZone(),u=e.options.color||o&&(o.color||e.nonZonedColor)||this.color,o&&(d=o.borderColor||d,h=o.dashStyle||h,p=o.borderWidth||p)),t&&e&&(i=(r=Ce(a.states[t],(null==(n=e.options.states)?void 0:n[t])||{})).brightness,u=r.color||void 0!==i&&po(u).brighten(r.brightness).get()||u,d=r[s]||d,p=r[c]||p,h=r.dashStyle||h,f=Te(r.opacity,f));let m={fill:u,stroke:d,"stroke-width":p,opacity:f};return h&&(m.dashstyle=h),m}drawPoints(e=this.points){let t,n=this,r=this.chart,o=n.options,i=o.nullInteraction,a=r.renderer,l=o.animationLimit||250;e.forEach(function(e){let s=e.plotY,c=e.graphic,u=!!c,d=c&&r.pointCount<l?"animate":"attr";ye(s)&&(null!==e.y||i)?(t=e.shapeArgs,c&&e.hasNewShapeType()&&(c=c.destroy()),n.enabledDataSorting&&(e.startXPos=n.xAxis.reversed?-(t&&t.width||0):n.xAxis.width),!c&&(e.graphic=c=a[e.shapeType](t).add(e.group||n.group),c&&n.enabledDataSorting&&r.hasRendered&&r.pointCount<l&&(c.attr({x:e.startXPos}),u=!0,d="animate")),c&&u&&c[d](Ce(t)),r.styledMode||c[d](n.pointAttribs(e,e.selected&&"select")).shadow(!1!==e.allowShadow&&o.shadow),c&&(c.addClass(e.getClassName(),!0),c.attr({visibility:e.visible?"inherit":"hidden"}))):c&&(e.graphic=c.destroy())})}drawTracker(e=this.points){var t;let n,r=this,o=r.chart,i=o.pointer,a=function(e){null==i||i.normalize(e);let t=null==i?void 0:i.getPointFromEvent(e);i&&t&&r.options.enableMouseTracking&&(o.isInsidePlot(e.chartX-o.plotLeft,e.chartY-o.plotTop,{visiblePlotOnly:!0})||r.allowOutsidePlotInteraction&&(null==i?void 0:i.inClass(e.target,"highcharts-point"))||(null==i?void 0:i.inClass(e.target,"highcharts-data-label")))&&(i.isDirectTouch=!0,t.onMouseOver(e))};e.forEach(function(e){n=be(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[],e.graphic&&(e.graphic.element.point=e),n.forEach(function(t){(t.div||t.element).point=e})}),r._hasTracking||(null==(t=r.trackerGroups)||t.reduce((e,t)=>("dataLabelsGroup"===t?e.push(...r.dataLabelsGroups||[]):e.push(r[t]),e),[]).forEach(e=>{e&&(e.addClass("highcharts-tracker").on("mouseover",a).on("mouseout",function(e){null==i||i.onTrackerMouseOut(e)}).on("touchstart",a),!o.styledMode&&r.options.cursor&&e.css({cursor:r.options.cursor}))}),r._hasTracking=!0),le(this,"afterDrawTracker")}remove(){let e=this,t=e.chart;t.hasRendered&&t.series.forEach(function(t){t.type===e.type&&(t.isDirty=!0)}),pr.prototype.remove.apply(e,arguments)}}mo.defaultOptions=Ce(pr.defaultOptions,{borderRadius:3,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}),ie(mo.prototype,{directTouch:!0,getSymbol:fo,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),rr.registerSeriesType("column",mo);let go=mo,{getDeferredAnimation:yo}=lt,{format:vo}=wt;!function(e){function t(){return s(this).some(e=>null==e?void 0:e.enabled)}function n(e,t,n,r,o){var i;let{chart:a,enabledDataSorting:l}=this,s=this.isCartesian&&a.inverted,c=e.plotX,u=e.plotY,d=n.rotation||0,h=ee(c)&&ee(u)&&a.isInsidePlot(c,Math.round(u),{inverted:s,paneCoordinates:!0,series:this}),p=0===d&&"justify"===Te(n.overflow,l?"none":"justify"),f=this.visible&&!1!==e.visible&&ee(c)&&(e.series.forceDL||l&&!p||h||Te(n.inside,!!this.options.stacking)&&r&&a.isInsidePlot(c,s?r.x+1:r.y+r.height-1,{inverted:s,paneCoordinates:!0,series:this})),m=e.pos();if(f&&m){var g;let c=t.getBBox(),u=t.getBBox(void 0,0);if(r=ie({x:m[0],y:Math.round(m[1]),width:0,height:0},r||{}),"plotEdges"===n.alignTo&&this.isCartesian&&(r[s?"x":"y"]=0,r[s?"width":"height"]=(null==(i=this.yAxis)?void 0:i.len)||0),ie(n,{width:c.width,height:c.height}),g=r,l&&this.xAxis&&!p&&this.setDataLabelStartPos(e,t,o,h,g),t.align(Ce(n,{width:u.width,height:u.height}),!1,r,!1),t.alignAttr.x+=se(n.align)*(u.width-c.width),t.alignAttr.y+=se(n.verticalAlign)*(u.height-c.height),t[t.placed?"animate":"attr"]({"text-align":t.alignAttr["text-align"]||"center",x:t.alignAttr.x+(c.width-u.width)/2,y:t.alignAttr.y+(c.height-u.height)/2,rotationOriginX:(t.width||0)/2,rotationOriginY:(t.height||0)/2}),p&&r.height>=0)this.justifyDataLabel(t,n,t.alignAttr,c,r,o);else if(Te(n.crop,!0)){let{x:e,y:n}=t.alignAttr;f=a.isInsidePlot(e,n,{paneCoordinates:!0,series:this})&&a.isInsidePlot(e+c.width-1,n+c.height-1,{paneCoordinates:!0,series:this})}n.shape&&!d&&t[o?"attr":"animate"]({anchorX:m[0],anchorY:m[1]})}o&&l&&(t.placed=!1),f||l&&!p?(t.show(),t.placed=!0):(t.hide(),t.placed=!1)}function r(e,t){var n,r;le(this,"initDataLabelsGroup",{index:e,zIndex:(null==t?void 0:t.zIndex)??6}),this.dataLabelsGroup=null==(n=this.dataLabelsGroups)?void 0:n[e];let o=this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",(null==t?void 0:t.zIndex)??6,null==(r=this.dataLabelsParentGroups)?void 0:r[e]);return this.dataLabelsGroups||(this.dataLabelsGroups=[]),this.dataLabelsGroups[e]=o,this.dataLabelsGroup=this.dataLabelsGroups[0],o}function o(e,t,n){let r=!!this.hasRendered,o=this.initDataLabelsGroup(e,n).attr({opacity:+r});return!r&&o&&(this.visible&&o.show(),this.options.animation?o.animate({opacity:1},t):o.attr({opacity:1})),o}function i(e){var t;let n;e=e||this.points;let r=this,o=r.chart,i=r.options,a=o.renderer,{backgroundColor:c,plotBackgroundColor:u}=o.options.chart,d=a.getContrast(ve(u)&&u||ve(c)&&c||"#000000"),h=s(r),{animation:p,defer:f}=h[0],m=f?yo(o,p,r):{defer:0,duration:0};le(this,"drawDataLabels"),(null==(t=r.hasDataLabels)?void 0:t.call(r))&&e.forEach(e=>{var t,s,c;let u=e.dataLabels||[],p=e.color||r.color;Ae(l(h,e.dlOptions||(null==(t=e.options)?void 0:t.dataLabels))).forEach((t,l)=>{var s;n=this.initDataLabels(l,m,t);let c,h,f,g,y=t.enabled&&(e.visible||e.dataLabelOnHidden)&&(!e.isNull||e.dataLabelOnNull)&&function(e,t){let n=t.filter;if(n){let t=n.operator,r=e[n.property],o=n.value;return">"===t&&r>o||"<"===t&&r<o||">="===t&&r>=o||"<="===t&&r<=o||"=="===t&&r==o||"==="===t&&r===o||"!="===t&&r!=o||"!=="===t&&r!==o||!1}return!0}(e,t),{backgroundColor:v,borderColor:b,distance:x,style:w={}}=t,C={},k=u[l],S=!k;y&&(h=ee(c=Te(t[e.formatPrefix+"Format"],t.format))?vo(c,e,o):(t[e.formatPrefix+"Formatter"]||t.formatter).call(e,t,e),f=t.rotation,!o.styledMode&&(w.color=Te(t.color,w.color,ve(r.color)?r.color:void 0,"#000000"),"contrast"===w.color?("none"!==v&&(g=v),e.contrastColor=a.getContrast("auto"!==g&&ve(g)&&g||(ve(p)?p:"")),w.color=g||!ee(x)&&t.inside||0>Me(x||0)||i.stacking?e.contrastColor:d):delete e.contrastColor,i.cursor&&(w.cursor=i.cursor)),C={r:t.borderRadius||0,rotation:f,padding:t.padding,zIndex:1},o.styledMode||(C.fill="auto"===v?e.color:v,C.stroke="auto"===b?e.color:b,C["stroke-width"]=t.borderWidth),Se(C,(e,t)=>{void 0===e&&delete C[t]})),!k||y&&ee(h)&&!(!k.div&&!(null==(s=k.text)?void 0:s.foreignObject))==!!t.useHTML&&(k.rotation&&t.rotation||k.rotation===t.rotation)||(k=void 0,S=!0),y&&ee(h)&&""!==h&&(k?C.text=h:(k=a.label(h,0,0,t.shape,void 0,void 0,t.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+e.colorIndex+" "+(t.className||"")+(t.useHTML?" highcharts-tracker":"")),k&&(k.options=t,k.attr(C),o.styledMode?w.width&&k.css({width:w.width,textOverflow:w.textOverflow,whiteSpace:w.whiteSpace}):k.css(w).shadow(t.shadow),le(k,"beforeAddingDataLabel",{labelOptions:t,point:e}),k.added||k.add(n),r.alignDataLabel(e,k,t,void 0,S),k.isActive=!0,u[l]&&u[l]!==k&&u[l].destroy(),u[l]=k))});let f=u.length;for(;f--;)(null==(s=u[f])?void 0:s.isActive)?u[f].isActive=!1:(null==(c=u[f])||c.destroy(),u.splice(f,1));e.dataLabel=u[0],e.dataLabels=u}),le(this,"afterDrawDataLabels")}function a(e,t,n,r,o,i){let a,l,s=this.chart,c=t.align,u=t.verticalAlign,d=e.box?0:e.padding||0,h=s.inverted?this.yAxis:this.xAxis,p=h?h.left-s.plotLeft:0,f=s.inverted?this.xAxis:this.yAxis,m=f?f.top-s.plotTop:0,{x:g=0,y:y=0}=t;return(a=(n.x||0)+d+p)<0&&("right"===c&&g>=0?(t.align="left",t.inside=!0):g-=a,l=!0),(a=(n.x||0)+r.width-d+p)>s.plotWidth&&("left"===c&&g<=0?(t.align="right",t.inside=!0):g+=s.plotWidth-a,l=!0),(a=n.y+d+m)<0&&("bottom"===u&&y>=0?(t.verticalAlign="top",t.inside=!0):y-=a,l=!0),(a=(n.y||0)+r.height-d+m)>s.plotHeight&&("top"===u&&y<=0?(t.verticalAlign="bottom",t.inside=!0):y+=s.plotHeight-a,l=!0),l&&(t.x=g,t.y=y,e.placed=!i,e.align(t,void 0,o)),l}function l(e,t){let n,r=[];if(be(e)&&!be(t))r=e.map(function(e){return Ce(e,t)});else if(be(t)&&!be(e))r=t.map(function(t){return Ce(e,t)});else if(be(e)||be(t)){if(be(e)&&be(t))for(n=Math.max(e.length,t.length);n--;)r[n]=Ce(e[n],t[n])}else r=Ce(e,t);return r}function s(e){var t,n;let r=e.chart.options.plotOptions;return Ae(l(l(null==(t=null==r?void 0:r.series)?void 0:t.dataLabels,null==(n=null==r?void 0:r[e.type])?void 0:n.dataLabels),e.options.dataLabels))}function c(e,t,n,r,o){let i=this.chart,a=i.inverted,l=this.xAxis,s=l.reversed,c=((a?t.height:t.width)||0)/2,u=e.pointWidth,d=u?u/2:0;t.startXPos=a?o.x:s?-c-d:l.width-c+d,t.startYPos=a?s?this.yAxis.height-c+d:-c-d:o.y,r?"hidden"===t.visibility&&(t.show(),t.attr({opacity:0}).animate({opacity:1})):t.attr({opacity:1}).animate({opacity:0},void 0,t.hide),i.hasRendered&&(n&&t.attr({x:t.startXPos,y:t.startYPos}),t.placed=!0)}e.compose=function(e){let s=e.prototype;s.initDataLabels||(s.initDataLabels=o,s.initDataLabelsGroup=r,s.alignDataLabel=n,s.drawDataLabels=i,s.justifyDataLabel=a,s.mergeArrays=l,s.setDataLabelStartPos=c,s.hasDataLabels=t)}}(R||(R={}));let bo=R,{composed:xo}=_,{series:wo}=rr;function Co(e,t,n,r,o){var i,a;let{chart:l,options:s}=this,c=l.inverted,u=(null==(i=this.xAxis)?void 0:i.len)||l.plotSizeX||0,d=(null==(a=this.yAxis)?void 0:a.len)||l.plotSizeY||0,h=e.dlBox||e.shapeArgs,p=e.below??(e.plotY||0)>(this.translatedThreshold??d),f=n.inside??!!s.stacking;if(h){if(r=Ce(h),"allow"!==n.overflow||!1!==n.crop||!1!==s.clip){r.y<0&&(r.height+=r.y,r.y=0);let e=r.y+r.height-d;e>0&&e<r.height-1&&(r.height-=e)}c&&(r={x:d-r.y-r.height,y:u-r.x-r.width,width:r.height,height:r.width}),f||(c?(r.x+=p?0:r.width,r.width=0):(r.y+=p?r.height:0,r.height=0))}n.align??(n.align=!c||f?"center":p?"right":"left"),n.verticalAlign??(n.verticalAlign=c||f?"middle":p?"top":"bottom"),wo.prototype.alignDataLabel.call(this,e,t,n,r,o),n.inside&&e.contrastColor&&t.css({color:e.contrastColor})}(L||(L={})).compose=function(e){bo.compose(wo),Pe(xo,"ColumnDataLabel")&&(e.prototype.alignDataLabel=Co)};let ko=L;class So extends go{}So.defaultOptions=Ce(go.defaultOptions,{}),ie(So.prototype,{inverted:!0}),rr.registerSeriesType("bar",So);let{column:Eo,line:$o}=rr.seriesTypes;class To extends $o{applyJitter(){let e=this,t=this.options.jitter,n=this.points.length;t&&this.points.forEach(function(r,o){["x","y"].forEach(function(i,a){if(t[i]&&!r.isNull){let l=`plot${i.toUpperCase()}`,s=e[`${i}Axis`],c=t[i]*s.transA;if(s&&!s.logarithmic){let e,t=Math.max(0,(r[l]||0)-c),u=Math.min(s.len,(r[l]||0)+c);r[l]=t+(u-t)*((e=1e4*Math.sin(o+a*n))-Math.floor(e)),"x"===i&&(r.clientX=r.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}To.defaultOptions=Ce($o.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 0.8em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}),ie(To.prototype,{allowOutsidePlotInteraction:!0,drawTracker:Eo.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),V(To,"afterTranslate",function(){this.applyJitter()}),rr.registerSeriesType("scatter",To);let{deg2rad:Mo}=_;(x=B||(B={})).getCenter=function(){let e,t,n,r=this.options,o=this.chart,i=2*(r.slicedOffset||0),a=o.plotWidth-2*i,l=o.plotHeight-2*i,s=r.center,c=Math.min(a,l),u=r.thickness,d=r.size,h=r.innerSize||0;"string"==typeof d&&(d=parseFloat(d)),"string"==typeof h&&(h=parseFloat(h));let p=[Te(null==s?void 0:s[0],"50%"),Te(null==s?void 0:s[1],"50%"),Te(d&&d<0?void 0:r.size,"100%"),Te(h&&h<0?void 0:r.innerSize||0,"0%")];for(!o.angular||this instanceof pr||(p[3]=0),t=0;t<4;++t)n=p[t],e=t<2||2===t&&/%$/.test(n),p[t]=Ne(n,[a,l,c,p[2]][t])+(e?i:0);return p[3]>p[2]&&(p[3]=p[2]),ye(u)&&2*u<p[2]&&u>0&&(p[3]=p[2]-2*u),le(this,"afterGetCenter",{positions:p}),p},x.getStartAndEndRadians=function(e,t){let n=ye(e)?e:0,r=ye(t)&&t>n&&t-n<360?t:n+360;return{start:Mo*(n+-90),end:Mo*(r+-90)}};let Po=B,{setAnimation:No}=lt;class Io extends Fn{getConnectorPath(e){let t=e.dataLabelPosition,n=e.options||{},r=n.connectorShape,o=this.connectorShapes[r]||r;return t&&o.call(this,{...t.computed,alignment:t.alignment},t.connectorPosition,n)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(e){let t=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(t.x,t.y,t.r+e,t.r+e,{innerR:t.r-1,start:t.start,end:t.end,borderRadius:t.borderRadius})}constructor(e,t,n){super(e,t,n),this.half=0,this.name??(this.name=e.chart.options.lang.pieSliceName);const r=e=>{this.slice("select"===e.type)};V(this,"select",r),V(this,"unselect",r)}isValid(){return ye(this.y)&&this.y>=0}setVisible(e,t=!0){e!==this.visible&&this.update({visible:e??!this.visible},t,void 0,!1)}slice(e,t,n){let r=this.series;No(n,r.chart),t=Te(t,!0),this.sliced=this.options.sliced=e=ee(e)?e:!this.sliced,r.options.data[r.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}ie(Io.prototype,{connectorShapes:{fixedOffset:function(e,t,n){let r=t.breakAt,o=t.touchingSliceAt,i=n.softConnector?["C",e.x+("left"===e.alignment?-5:5),e.y,2*r.x-o.x,2*r.y-o.y,r.x,r.y]:["L",r.x,r.y];return[["M",e.x,e.y],i,["L",o.x,o.y]]},straight:function(e,t){let n=t.touchingSliceAt;return[["M",e.x,e.y],["L",n.x,n.y]]},crookedLine:function(e,t,n){let{angle:r=this.angle||0,breakAt:o,touchingSliceAt:i}=t,{series:a}=this,[l,s,c]=a.center,u=c/2,{plotLeft:d,plotWidth:h}=a.chart,p="left"===e.alignment,{x:f,y:m}=e,g=o.x;if(n.crookDistance){let e=Ne(n.crookDistance,1);g=p?l+u+(h+d-l-u)*(1-e):d+(l-u)*e}else g=l+(s-m)*Math.tan(r-Math.PI/2);let y=[["M",f,m]];return(p?g<=f&&g>=o.x:g>=f&&g<=o.x)&&y.push(["L",g,m]),y.push(["L",o.x,o.y],["L",i.x,i.y]),y}}});let{getStartAndEndRadians:Oo}=Po,{noop:Ao}=_;class Ro extends pr{animate(e){let t=this,n=t.points,r=t.startAngleRad;e||n.forEach(function(e){let n=e.graphic,o=e.shapeArgs;n&&o&&(n.attr({r:Te(e.startR,t.center&&t.center[3]/2),start:r,end:r}),n.animate({r:o.r,start:o.start,end:o.end},t.options.animation))})}drawEmpty(){let e,t,n=this.startAngleRad,r=this.endAngleRad,o=this.options;0===this.total&&this.center?(e=this.center[0],t=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(e,t,this.center[1]/2,0,n,r).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:jt.arc(e,t,this.center[2]/2,0,{start:n,end:r,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":o.borderWidth,fill:o.fillColor||"none",stroke:o.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let e=this.chart.renderer;this.points.forEach(function(t){t.graphic&&t.hasNewShapeType()&&(t.graphic=t.graphic.destroy()),t.graphic||(t.graphic=e[t.shapeType](t.shapeArgs).add(t.series.group),t.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(e,t,n,r){let o=this.center,i=this.radii?this.radii[n.index]||0:o[2]/2,a=r.dataLabelPosition,l=(null==a?void 0:a.distance)||0,s=Math.asin(U((e-o[1])/(i+l),-1,1));return o[0]+Math.cos(s)*(i+l)*(t?-1:1)+(l>0?(t?-1:1)*(r.padding||0):0)}hasData(){return this.points.some(e=>e.visible)}redrawPoints(){let e,t,n,r,o=this,i=o.chart;this.drawEmpty(),o.group&&!i.styledMode&&o.group.shadow(o.options.shadow),o.points.forEach(function(a){let l={};t=a.graphic,!a.isNull&&t?(r=a.shapeArgs,e=a.getTranslate(),i.styledMode||(n=o.pointAttribs(a,a.selected&&"select")),a.delayedRendering?(t.setRadialReference(o.center).attr(r).attr(e),i.styledMode||t.attr(n).attr({"stroke-linejoin":"round"}),a.delayedRendering=!1):(t.setRadialReference(o.center),i.styledMode||Ce(!0,l,n),Ce(!0,l,r,e),t.animate(l)),t.attr({visibility:a.visible?"inherit":"hidden"}),t.addClass(a.getClassName(),!0)):t&&(a.graphic=t.destroy())})}sortByAngle(e,t){e.sort(function(e,n){return void 0!==e.angle&&(n.angle-e.angle)*t})}translate(e){le(this,"translate"),this.generatePoints();let t,n,r,o,i,a,l,s=this.options,c=s.slicedOffset,u=Oo(s.startAngle,s.endAngle),d=this.startAngleRad=u.start,h=(this.endAngleRad=u.end)-d,p=this.points,f=s.ignoreHiddenPoint,m=p.length,g=0;for(e||(this.center=e=this.getCenter()),a=0;a<m;a++){l=p[a],t=d+g*h,l.isValid()&&(!f||l.visible)&&(g+=l.percentage/100),n=d+g*h;let s={x:e[0],y:e[1],r:e[2]/2,innerR:e[3]/2,start:t,end:n};l.shapeType="arc",l.shapeArgs=s,(r=(n+t)/2)>1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI),l.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)},o=Math.cos(r)*e[2]/2,i=Math.sin(r)*e[2]/2,l.tooltipPos=[e[0]+.7*o,e[1]+.7*i],l.half=+(r<-Math.PI/2||r>Math.PI/2),l.angle=r}le(this,"afterTranslate")}updateTotals(){let e,t,n=this.points,r=n.length,o=this.options.ignoreHiddenPoint,i=0;for(e=0;e<r;e++)(t=n[e]).isValid()&&(!o||t.visible)&&(i+=t.y);for(e=0,this.total=i;e<r;e++)(t=n[e]).percentage=i>0&&(t.visible||!o)?t.y/i*100:0,t.total=i}}Ro.defaultOptions=Ce(pr.defaultOptions,{borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.isNull?void 0:this.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}),ie(Ro.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:go.prototype.drawTracker,getCenter:Po.getCenter,getSymbol:Ao,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:go.prototype.pointAttribs,pointClass:Io,requireSorting:!1,searchPoint:Ao,trackerGroups:["group","dataLabelsGroup"]}),rr.registerSeriesType("pie",Ro);let{composed:Lo,noop:Bo}=_,{distribute:zo}=kt,{series:Do}=rr;!function(e){let t={radialDistributionY:function(e,t){var n;return((null==(n=t.dataLabelPosition)?void 0:n.top)||0)+e.distributeBox.pos},radialDistributionX:function(e,t,n,r,o){let i=o.dataLabelPosition;return e.getX(n<((null==i?void 0:i.top)||0)+2||n>((null==i?void 0:i.bottom)||0)-2?r:n,t.half,t,o)},justify:function(e,t,n,r){var o;return r[0]+(e.half?-1:1)*(n+((null==(o=t.dataLabelPosition)?void 0:o.distance)||0))},alignToPlotEdges:function(e,t,n,r){let o=e.getBBox().width;return t?o+r:n-o-r},alignToConnectors:function(e,t,n,r){let o,i=0;return e.forEach(function(e){(o=e.dataLabel.getBBox().width)>i&&(i=o)}),t?i+r:n-i-r}};function n(e,t){let n=Math.PI/2,{start:r=0,end:o=0}=e.shapeArgs||{},i=e.angle||0;t>0&&r<n&&o>n&&i>n/2&&i<1.5*n&&(i=i<=n?Math.max(n/2,(r+n)/2):Math.min(1.5*n,(n+o)/2));let{center:a,options:l}=this,s=a[2]/2,c=Math.cos(i),u=Math.sin(i),d=a[0]+c*s,h=a[1]+u*s,p=Math.min((l.slicedOffset||0)+(l.borderWidth||0),t/5);return{natural:{x:d+c*t,y:h+u*t},computed:{},alignment:t<0?"center":e.half?"right":"left",connectorPosition:{angle:i,breakAt:{x:d+c*p,y:h+u*p},touchingSliceAt:{x:d,y:h}},distance:t}}function r(){var e;let t,n,r,o=this,i=o.points,a=o.chart,l=a.plotWidth,s=a.plotHeight,c=a.plotLeft,u=Math.round(a.chartWidth/3),d=o.center,h=d[2]/2,p=d[1],f=[[],[]],m=[0,0,0,0],g=o.dataLabelPositioners,y=0;o.visible&&(null==(e=o.hasDataLabels)?void 0:e.call(o))&&(i.forEach(e=>{(e.dataLabels||[]).forEach(e=>{e.shortened&&(e.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),e.shortened=!1)})}),Do.prototype.drawDataLabels.apply(o),i.forEach(e=>{(e.dataLabels||[]).forEach((t,n)=>{var r;let o=d[2]/2,i=t.options,a=Ne((null==i?void 0:i.distance)||0,o);0===n&&f[e.half].push(e),!ee(null==(r=null==i?void 0:i.style)?void 0:r.width)&&t.getBBox().width>u&&(t.css({width:Math.round(.7*u)+"px"}),t.shortened=!0),t.dataLabelPosition=this.getDataLabelPosition(e,a),y=Math.max(y,a)})}),f.forEach((e,t)=>{let i,u,f,v=e.length,b=[],x=0;v&&(o.sortByAngle(e,t-.5),y>0&&(i=Math.max(0,p-h-y),u=Math.min(p+h+y,a.plotHeight),e.forEach(e=>{(e.dataLabels||[]).forEach(t=>{var n;let r=t.dataLabelPosition;r&&r.distance>0&&(r.top=Math.max(0,p-h-r.distance),r.bottom=Math.min(p+h+r.distance,a.plotHeight),x=t.getBBox().height||21,t.lineHeight=a.renderer.fontMetrics(t.text||t).h+2*t.padding,e.distributeBox={target:((null==(n=t.dataLabelPosition)?void 0:n.natural.y)||0)-r.top+t.lineHeight/2,size:x,rank:e.y},b.push(e.distributeBox))})}),zo(b,f=u+x-i,f/5)),e.forEach(i=>{(i.dataLabels||[]).forEach(a=>{let u=a.options||{},p=i.distributeBox,f=a.dataLabelPosition,y=(null==f?void 0:f.natural.y)||0,v=u.connectorPadding||0,x=a.lineHeight||21,w=(x-a.getBBox().height)/2,C=0,k=y,S="inherit";if(f){if(b&&ee(p)&&f.distance>0&&(void 0===p.pos?S="hidden":(r=p.size,k=g.radialDistributionY(i,a))),u.justify)C=g.justify(i,a,h,d);else switch(u.alignTo){case"connectors":C=g.alignToConnectors(e,t,l,c);break;case"plotEdges":C=g.alignToPlotEdges(a,t,l,c);break;default:C=g.radialDistributionX(o,i,k-w,y,a)}if(f.attribs={visibility:S,align:f.alignment},f.posAttribs={x:C+(u.x||0)+({left:v,right:-v}[f.alignment]||0),y:k+(u.y||0)-x/2},f.computed.x=C,f.computed.y=k-w,Te(u.crop,!0)){let e;C-(n=a.getBBox().width)<v&&1===t?(e=Math.round(n-C+v),m[3]=Math.max(e,m[3])):C+n>l-v&&0===t&&(e=Math.round(C+n-l+v),m[1]=Math.max(e,m[1])),k-r/2<0?m[0]=Math.max(Math.round(r/2-k),m[0]):k+r/2>s&&(m[2]=Math.max(Math.round(k+r/2-s),m[2])),f.sideOverflow=e}}})}))}),(0===q(m)||this.verifyDataLabelOverflow(m))&&(this.placeDataLabels(),this.points.forEach(e=>{var n;null==(n=e.dataLabels)||n.forEach((n,r)=>{var i,l;let{connectorColor:s,connectorWidth:c=1}=n.options||{},u=n.dataLabelPosition;if(ye(c)){let d;t=n.connector,u&&u.distance>0?(d=!t,t||(n.connector=t=a.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+e.colorIndex+(e.className?" "+e.className:"")).add(null==(i=o.dataLabelsGroups)?void 0:i[r])),a.styledMode||t.attr({"stroke-width":c,stroke:s||e.color||"#666666"}),t[d?"attr":"animate"]({d:e.getConnectorPath(n)}),t.attr({visibility:null==(l=u.attribs)?void 0:l.visibility})):t&&(n.connector=t.destroy())}})})))}function o(){this.points.forEach(e=>{(e.dataLabels||[]).forEach(e=>{var t,n;let r=e.dataLabelPosition;r?(r.sideOverflow&&(e.css({width:Math.max(e.getBBox().width-r.sideOverflow,0)+"px",textOverflow:(null==(n=null==(t=e.options)?void 0:t.style)?void 0:n.textOverflow)||"ellipsis"}),e.shortened=!0),e.attr(r.attribs),e[e.moved?"animate":"attr"](r.posAttribs),e.moved=!0):e&&e.attr({y:-9999})}),delete e.distributeBox},this)}function i(e){let t=this.center,n=this.options,r=n.center,o=n.minSize||80,i=o,a=null!==n.size;return!a&&(null!==r[0]?i=Math.max(t[2]-Math.max(e[1],e[3]),o):(i=Math.max(t[2]-e[1]-e[3],o),t[0]+=(e[3]-e[1])/2),null!==r[1]?i=U(i,o,t[2]-Math.max(e[0],e[2])):(i=U(i,o,t[2]-e[0]-e[2]),t[1]+=(e[0]-e[2])/2),i<t[2]?(t[2]=i,t[3]=Math.min(n.thickness?Math.max(0,i-2*n.thickness):Math.max(0,Ne(n.innerSize||0,i)),i),this.translate(t),this.drawDataLabels&&this.drawDataLabels()):a=!0),a}e.compose=function(e){if(bo.compose(Do),Pe(Lo,"PieDataLabel")){let a=e.prototype;a.dataLabelPositioners=t,a.alignDataLabel=Bo,a.drawDataLabels=r,a.getDataLabelPosition=n,a.placeDataLabels=o,a.verifyDataLabelOverflow=i}}}(z||(z={}));let jo=z;(w=D||(D={})).getCenterOfPoints=function(e){let t=e.reduce((e,t)=>(e.x+=t.x,e.y+=t.y,e),{x:0,y:0});return{x:t.x/e.length,y:t.y/e.length}},w.getDistanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},w.getAngleBetweenPoints=function(e,t){return Math.atan2(t.x-e.x,t.y-e.y)},w.pointInPolygon=function({x:e,y:t},n){let r,o,i=n.length,a=!1;for(r=0,o=i-1;r<i;o=r++){let[i,l]=n[r],[s,c]=n[o];l>t!=c>t&&e<(s-i)*(t-l)/(c-l)+i&&(a=!a)}return a};let{pointInPolygon:Fo}=D;function Ho(e,t){let n,r=!1;return e&&(n=e.newOpacity,e.oldOpacity!==n&&(e.hasClass("highcharts-data-label")?(e[n?"removeClass":"addClass"]("highcharts-data-label-hidden"),r=!0,e[e.isOld?"animate":"attr"]({opacity:n},void 0,function(){t.styledMode||e.css({pointerEvents:n?"auto":"none"})}),le(t,"afterHideOverlappingLabel")):e.attr({opacity:n})),e.isOld=!0),r}let{defaultOptions:_o}=Ze,{noop:Wo}=_,Ko={radius:0,scope:"stack",where:void 0},Vo=Wo,Go=Wo;function qo(e,t,n,r,o={}){let i=Vo(e,t,n,r,o),{brStart:a=!0,brEnd:l=!0,innerR:s=0,r:c=n,start:u=0,end:d=0}=o;if(o.open||!o.borderRadius)return i;let h=d-u,p=Math.sin(h/2),f=Math.max(Math.min(Ne(o.borderRadius||0,c-s),(c-s)/2,c*p/(1+p)),0),m=Math.min(f,h/Math.PI*2*s),g=i.length-1;for(;g--;)(a||0!==g&&3!==g)&&(l||1!==g&&2!==g)&&function(e,t,n){let r,o,i,a=e[t],l=e[t+1];if("Z"===l[0]&&(l=e[0]),"M"!==a[0]&&"L"!==a[0]||"A"!==l[0]?"A"===a[0]&&("M"===l[0]||"L"===l[0])&&(r=l,o=a):(r=a,o=l,i=!0),r&&o&&o.params){let a=o[1],l=o[5],s=o.params,{start:c,end:u,cx:d,cy:h}=s,p=l?a-n:a+n,f=p?Math.asin(n/p):0,m=l?f:-f,g=Math.cos(f)*p;i?(s.start=c+m,r[1]=d+g*Math.cos(c),r[2]=h+g*Math.sin(c),e.splice(t+1,0,["A",n,n,0,0,1,d+a*Math.cos(s.start),h+a*Math.sin(s.start)])):(s.end=u-m,o[6]=d+a*Math.cos(s.end),o[7]=h+a*Math.sin(s.end),e.splice(t+1,0,["A",n,n,0,0,1,d+g*Math.cos(u),h+g*Math.sin(u)])),o[4]=Math.abs(s.end-s.start)<Math.PI?0:1}}(i,g,g>1?m:f);return i}function Xo(){var e,t;if(this.options.borderRadius&&(!this.chart.is3d||!this.chart.is3d())){let{options:n,yAxis:r}=this,o="percent"===n.stacking,i=null==(t=null==(e=_o.plotOptions)?void 0:e[this.type])?void 0:t.borderRadius,a=Uo(n.borderRadius,we(i)?i:{}),l=r.options.reversed;for(let e of this.points){let{shapeArgs:t}=e;if("roundedRect"===e.shapeType&&t){let{width:i=0,height:s=0,y:c=0}=t,u=c,d=s;if("stack"===a.scope&&e.stackTotal){let t=r.translate(o?100:e.stackTotal,!1,!0,!1,!0),i=r.translate(n.threshold||0,!1,!0,!1,!0),a=this.crispCol(0,Math.min(t,i),0,Math.abs(t-i));u=a.y,d=a.height}let h=(e.negative?-1:1)*(l?-1:1)==-1,p=a.where;!p&&this.is("waterfall")&&Math.abs((e.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(p="all"),p||(p="end");let f=Math.min(Ne(a.radius,i),i/2,"all"===p?d/2:1/0)||0;"end"===p&&(h&&(u-=f),d+=f),ie(t,{brBoxHeight:d,brBoxY:u,r:f})}}}}function Uo(e,t){return we(e)||(e={radius:e||0}),Ce(Ko,t,e)}function Yo(){let e=Uo(this.options.borderRadius);for(let t of this.points){let n=t.shapeArgs;n&&(n.borderRadius=Ne(e.radius,(n.r||0)-(n.innerR||0)))}}function Zo(e,t,n,r,o={}){let i=Go(e,t,n,r,o),{r:a=0,brBoxHeight:l=r,brBoxY:s=t}=o,c=t-s,u=s+l-(t+r),d=c-a>-.1?0:a,h=u-a>-.1?0:a,p=Math.max(d&&c,0),f=Math.max(h&&u,0),m=[e+d,t],g=[e+n-d,t],y=[e+n,t+d],v=[e+n,t+r-h],b=[e+n-h,t+r],x=[e+h,t+r],w=[e,t+r-h],C=[e,t+d],k=(e,t)=>Math.sqrt(Math.pow(e,2)-Math.pow(t,2));if(p){let e=k(d,d-p);m[0]-=e,g[0]+=e,y[1]=C[1]=t+d-p}if(r<d-p){let o=k(d,d-p-r);y[0]=v[0]=e+n-d+o,b[0]=Math.min(y[0],b[0]),x[0]=Math.max(v[0],x[0]),w[0]=C[0]=e+d-o,y[1]=C[1]=t+r}if(f){let e=k(h,h-f);b[0]+=e,x[0]-=e,v[1]=w[1]=t+r-h+f}if(r<h-f){let o=k(h,h-f-r);y[0]=v[0]=e+n-h+o,g[0]=Math.min(y[0],g[0]),m[0]=Math.max(v[0],m[0]),w[0]=C[0]=e+h-o,v[1]=w[1]=t}return i.length=0,i.push(["M",...m],["L",...g],["A",d,d,0,0,1,...y],["L",...v],["A",h,h,0,0,1,...b],["L",...x],["A",h,h,0,0,1,...w],["L",...C],["A",d,d,0,0,1,...m],["Z"]),i}function Qo(e,t){let n=e.condition;(n.callback||function(){return this.chartWidth<=Te(n.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=Te(n.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=Te(n.minWidth,0)&&this.chartHeight>=Te(n.minHeight,0)}).call(this,this)&&t.push(e._id)}function Jo(e,t){let n,r=this.options.responsive,o=this.currentResponsive,i=[];!t&&r&&r.rules&&r.rules.forEach(e=>{void 0===e._id&&(e._id=_e()),this.matchResponsiveRule(e,i)},this);let a=Ce(...i.map(e=>pe((null==r?void 0:r.rules)||[],t=>t._id===e)).map(e=>null==e?void 0:e.chartOptions));a.isResponsiveOptions=!0,i=i.toString()||void 0;let l=null==o?void 0:o.ruleIds;i!==l&&(o&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(o.undoOptions,e,!0),this.updatingResponsive=!1),i?((n=re(a,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:i,mergedOptions:a,undoOptions:n},this.updatingResponsive||this.update(a,e,!0)):this.currentResponsive=void 0)}(j||(j={})).compose=function(e){let t=e.prototype;return t.matchResponsiveRule||ie(t,{matchResponsiveRule:Qo,setResponsive:Jo}),e};let ei=j;_.AST=pt,_.Axis=wn,_.Chart=Lr,_.Color=tt,_.DataLabel=bo,_.DataTableCore=Yn,_.Fx=ot,_.HTMLElement=sn,_.Legend=Cr,_.LegendSymbol=Jn,_.PlotLineOrBand=En,_.Point=Fn,_.Pointer=qn,_.RendererRegistry=Ct,_.Series=pr,_.SeriesRegistry=rr,_.StackItem=Wr,_.SVGElement=Rt,_.SVGRenderer=nn,_.Templating=wt,_.Tick=pn,_.Time=qe,_.Tooltip=Ln,_.addEvent=V,_.animObject=lt.animObject,_.animate=lt.animate,_.arrayMax=q,_.arrayMin=G,_.attr=X,_.chart=Lr.chart,_.clamp=U,_.color=tt.parse,_.correctFloat=Y,_.createElement=Z,_.css=J,_.dateFormat=wt.dateFormat,_.defaultOptions=Ze.defaultOptions,_.defined=ee,_.destroyObjectProperties=te,_.diffObjects=re,_.discardElement=ne,_.distribute=kt.distribute,_.erase=oe,_.error=je,_.extend=ie,_.extendClass=ae,_.find=pe,_.fireEvent=le,_.format=wt.format,_.getDeferredAnimation=lt.getDeferredAnimation,_.getMagnitude=ue,_.getOptions=Ze.getOptions,_.getStyle=he,_.insertItem=Fe,_.isArray=be,_.isClass=ge,_.isDOMElement=me,_.isFunction=xe,_.isNumber=ye,_.isObject=we,_.isString=ve,_.merge=Ce,_.normalizeTickInterval=ke,_.numberFormat=wt.numberFormat,_.objectEach=Se,_.offset=Ee,_.pad=$e,_.pick=Te,_.pInt=Me,_.relativeLength=Ne,_.removeEvent=Oe,_.seriesType=rr.seriesType,_.setAnimation=lt.setAnimation,_.setOptions=Ze.setOptions,_.splat=Ae,_.stableSort=Re,_.stop=lt.stop,_.syncTimeout=Le,_.time=Ze.defaultTime,_.timers=ot.timers,_.timeUnits=He,_.uniqueKey=_e,_.useSerialIds=function(e){return s=Te(e,s)},_.wrap=function(e,t,n){let r=e[t];e[t]=function(){let e=arguments,t=this;return n.apply(this,[function(){return r.apply(t,arguments.length?arguments:e)}].concat([].slice.call(arguments)))}},function(e,t,n){let r=e.types.pie;if(!t.symbolCustomAttribs.includes("borderRadius")){let o=n.prototype.symbols;V(e,"afterColumnTranslate",Xo,{order:9}),V(r,"afterTranslate",Yo),t.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY","brEnd","brStart"),Vo=o.arc,Go=o.roundedRect,o.arc=qo,o.roundedRect=Zo}}(_.Series,_.SVGElement,_.SVGRenderer),ko.compose(_.Series.types.column),bo.compose(_.Series),Cn.compose(_.Axis),sn.compose(_.SVGRenderer),Cr.compose(_.Chart),kn.compose(_.Axis),(p=(C=_.Chart).prototype).hideOverlappingLabels||(p.hideOverlappingLabels=function(e){let t,n,r,o,i,a=e.length,l=(e,t)=>!(t.x>=e.x+e.width||t.x+t.width<=e.x||t.y>=e.y+e.height||t.y+t.height<=e.y),s=(e,t)=>{for(let n of e)if(Fo({x:n[0],y:n[1]},t))return!0;return!1},c=!1;for(let n=0;n<a;n++)(t=e[n])&&(t.oldOpacity=t.opacity,t.newOpacity=1,t.absoluteBox=function(e){var t,n;if(e&&(!e.alignAttr||e.placed)){let r=e.box?0:e.padding||0,o=e.alignAttr||{x:e.attr("x"),y:e.attr("y")},{height:i,polygon:a,width:l}=e.getBBox(),s=se(e.alignValue)*l;return e.width=l,e.height=i,{x:o.x+((null==(t=e.parentGroup)?void 0:t.translateX)||0)+r-s,y:o.y+((null==(n=e.parentGroup)?void 0:n.translateY)||0)+r,width:l-2*r,height:i-2*r,polygon:a}}}(t));e.sort((e,t)=>((null==t?void 0:t.labelrank)||0)-((null==e?void 0:e.labelrank)||0));for(let t=0;t<a;++t){o=(n=e[t])&&n.absoluteBox;let c=null==o?void 0:o.polygon;for(let u=t+1;u<a;++u){i=(r=e[u])&&r.absoluteBox;let t=!1;if(o&&i&&n!==r&&0!==(null==n?void 0:n.newOpacity)&&0!==(null==r?void 0:r.newOpacity)&&"hidden"!==(null==n?void 0:n.visibility)&&"hidden"!==(null==r?void 0:r.visibility)){let e=i.polygon;if(c&&e&&c!==e?s(c,e)&&(t=!0):l(o,i)&&(t=!0),t){let e=(null==n?void 0:n.labelrank)<(null==r?void 0:r.labelrank)?n:r,t=null==e?void 0:e.text;e&&(e.newOpacity=0),(null==t?void 0:t.element.querySelector("textPath"))&&t.hide()}}}}for(let t of e)t&&Ho(t,this)&&(c=!0);c&&le(this,"afterHideAllOverlappingLabels")},V(C,"render",function(){var e;let t=this,n=[];for(let e of t.labelCollectors||[])n=n.concat(e());for(let e of t.yAxis||[])e.stacking&&e.options.stackLabels&&!e.options.stackLabels.allowOverlap&&Se(e.stacking.stacks,e=>{Se(e,e=>{e.label&&n.push(e.label)})});for(let r of t.series||[])if(r.visible&&(null==(e=r.hasDataLabels)?void 0:e.call(r))){let e=e=>{for(let r of e)r.visible&&(r.dataLabels||[]).forEach(e=>{var o;let i=e.options||{};e.labelrank=Te(i.labelrank,r.labelrank,null==(o=r.shapeArgs)?void 0:o.height),i.allowOverlap??Number(i.distance)>0?(e.oldOpacity=e.opacity,e.newOpacity=1,Ho(e,t)):n.push(e)})};e(r.nodes||[]),e(r.points)}this.hideOverlappingLabels(n)})),jo.compose(_.Series.types.pie),En.compose(_.Chart,_.Axis),qn.compose(_.Chart),ei.compose(_.Chart),Fr.compose(_.Axis,_.Chart,_.Series),to.compose(_.Axis,_.Chart,_.Series),Ln.compose(_.Pointer);let ti=_;return H.default})())),KK.exports);const qK=l(GK);var XK,UK={exports:{}},YK=UK.exports;XK||(XK=1,function(e){!function(t,n){e.exports=n(t._Highcharts,t._Highcharts.AST,t._Highcharts.Chart)}("u"<typeof window?YK:window,(e,t,n)=>(()=>{var r,o,i={660:e=>{e.exports=t},944:t=>{t.exports=e},960:e=>{e.exports=n}},a={};function l(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return i[e](n,n.exports,l),n.exports}l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var s={};l.d(s,{default:()=>le});var c=l(944),u=l.n(c),d=l(660),h=l.n(d),p=l(960),f=l.n(p),m=r||(r={});m.compose=function(e){return e.navigation||(e.navigation=new g(e)),e};class g{constructor(e){this.updates=[],this.chart=e}addUpdate(e){this.chart.navigation.updates.push(e)}update(e,t){this.updates.forEach(n=>{n.call(this.chart,e,t)})}}m.Additions=g;let y=r,{isSafari:v,win:b,win:{document:x}}=u(),w=b.URL||b.webkitURL||b;function C(e,t){let n=b.navigator,r=x.createElement("a");if("string"!=typeof e&&!(e instanceof String)&&n.msSaveOrOpenBlob)return void n.msSaveOrOpenBlob(e,t);if(e=""+e,n.userAgent.length>1e3)throw Error("Input too long");let o=/Edge\/\d+/.test(n.userAgent);if((v&&"string"==typeof e&&0===e.indexOf("data:application/pdf")||o||e.length>2e6)&&!(e=function(e){let t=e.replace(/filename=.*;/,"").match(/data:([^;]*)(;base64)?,([A-Z+\d\/]+)/i);if(t&&t.length>3&&b.atob&&b.ArrayBuffer&&b.Uint8Array&&b.Blob&&w.createObjectURL){let e=b.atob(t[3]),n=new b.ArrayBuffer(e.length),r=new b.Uint8Array(n);for(let t=0;t<r.length;++t)r[t]=e.charCodeAt(t);return w.createObjectURL(new b.Blob([r],{type:t[1]}))}}(e)||""))throw Error("Failed to convert to blob");if(void 0!==r.download)r.href=e,r.download=t,x.body.appendChild(r),r.click(),x.body.removeChild(r);else try{if(!b.open(e,"chart"))throw Error("Failed to open window")}catch{b.location.href=e}}let{isTouchDevice:k}=u(),S={exporting:{allowTableSorting:!0,libURL:"https://code.highcharts.com/12.6.0/lib/",local:!0,type:"image/png",url:`https://export-svg.highcharts.com?v=${u().version}`,pdfFont:{normal:void 0,bold:void 0,bolditalic:void 0,italic:void 0},printMaxWidth:780,scale:2,buttons:{contextButton:{className:"highcharts-contextbutton",menuClassName:"highcharts-contextmenu",symbol:"menu",titleKey:"contextButtonTitle",menuItems:["viewFullscreen","printChart","separator","downloadPNG","downloadJPEG","downloadSVG"]}},menuItemDefinitions:{viewFullscreen:{textKey:"viewFullscreen",onclick:function(){var e;null==(e=this.fullscreen)||e.toggle()}},printChart:{textKey:"printChart",onclick:function(){var e;null==(e=this.exporting)||e.print()}},separator:{separator:!0},downloadPNG:{textKey:"downloadPNG",onclick:async function(){var e;await(null==(e=this.exporting)?void 0:e.exportChart())}},downloadJPEG:{textKey:"downloadJPEG",onclick:async function(){var e;await(null==(e=this.exporting)?void 0:e.exportChart({type:"image/jpeg"}))}},downloadPDF:{textKey:"downloadPDF",onclick:async function(){var e;await(null==(e=this.exporting)?void 0:e.exportChart({type:"application/pdf"}))}},downloadSVG:{textKey:"downloadSVG",onclick:async function(){var e;await(null==(e=this.exporting)?void 0:e.exportChart({type:"image/svg+xml"}))}}}},lang:{viewFullscreen:"View in full screen",exitFullscreen:"Exit from full screen",printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",contextButtonTitle:"Chart context menu"},navigation:{buttonOptions:{symbolSize:14,symbolX:14.5,symbolY:13.5,align:"right",buttonSpacing:5,height:28,y:-5,verticalAlign:"top",width:28,symbolFill:"#666666",symbolStroke:"#666666",symbolStrokeWidth:3,theme:{fill:"#ffffff",padding:5,stroke:"none","stroke-linecap":"round"}},menuStyle:{border:"none",borderRadius:"3px",background:"#ffffff",padding:"0.5em"},menuItemStyle:{background:"none",borderRadius:"3px",color:"#333333",padding:"0.5em",fontSize:k?"0.9em":"0.8em",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"#f2f2f2"}}};!function(e){let t=[];function n(e,t,n,r){return[["M",e,t+2.5],["L",e+n,t+2.5],["M",e,t+r/2+.5],["L",e+n,t+r/2+.5],["M",e,t+r-1.5],["L",e+n,t+r-1.5]]}function r(e,t,n,r){let o=r/3-2;return[].concat(this.circle(n-o,t,o,o),this.circle(n-o,t+o+4,o,o),this.circle(n-o,t+2*(o+4),o,o))}e.compose=function(e){if(-1===t.indexOf(e)){t.push(e);let o=e.prototype.symbols;o.menu=n,o.menuball=r.bind(o)}}}(o||(o={}));let E=o,{doc:$,win:T}=u();function M(e,t,n,r={}){let o="function"==typeof e&&e.prototype||e;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={});let i=o.hcEvents;u().Point&&e instanceof u().Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);let a=e.addEventListener;a&&a.call(e,t,n,!!u().supportsPassiveEvents&&{passive:void 0===r.passive?-1!==t.indexOf("touch"):r.passive,capture:!1}),i[t]||(i[t]=[]);let l={fn:n,order:"number"==typeof r.order?r.order:1/0};return i[t].push(l),i[t].sort((e,t)=>e.order-t.order),function(){W(e,t,n)}}function P(e,t,n,r,o){let i=$.createElement(e);return t&&O(i,t),n&&N(i,n),r&&r.appendChild(i),i}function N(e,t){O(e.style,t)}function I(e){var t;null==(t=null==e?void 0:e.parentElement)||t.removeChild(e)}function O(e,t){let n;for(n in e||(e={}),t)e[n]=t[n];return e}function A(e,t,n,r){if(n=n||{},(null==$?void 0:$.createEvent)&&(e.dispatchEvent||e.fireEvent&&e!==u())){let r=$.createEvent("Events");r.initEvent(t,!0,!0),n=O(r,n),e.dispatchEvent?e.dispatchEvent(n):e.fireEvent(t,n)}else if(e.hcEvents){n.target||O(n,{preventDefault:function(){n.defaultPrevented=!0},target:e,type:t});let r=[],o=e,i=!1;for(;o.hcEvents;)Object.hasOwnProperty.call(o,"hcEvents")&&o.hcEvents[t]&&(r.length&&(i=!0),r.unshift.apply(r,o.hcEvents[t])),o=Object.getPrototypeOf(o);i&&r.sort((e,t)=>e.order-t.order),r.forEach(t=>{!1===t.fn.call(e,n,e)&&n.preventDefault()})}r&&!n.defaultPrevented&&r.call(e,n)}let R=Array.prototype.find?function(e,t){return e.find(t)}:function(e,t){let n,r=e.length;for(n=0;n<r;n++)if(t(e[n],n))return e[n]};function L(e){null!=e&&clearTimeout(e)}function B(e){return D(e)&&"number"==typeof e.nodeType}function z(e){let t=Object.prototype.toString.call(e);return"[object Array]"===t||"[object Array Iterator]"===t}function D(e,t){return!(!e||"object"!=typeof e||t&&z(e))}function j(e,...t){let n,r=[e,...t],o={},i=function(e,t){return"object"!=typeof e&&(e={}),F(t,function(n,r){if("__proto__"!==r&&"constructor"!==r){let o;!D(n,!0)||(o=null==n?void 0:n.constructor,D(n,!0)&&!B(n)&&(null==o?void 0:o.name)&&"Object"!==o.name)||B(n)?e[r]=t[r]:e[r]=i(e[r]||{},n)}}),e};!0===e&&(o=r[1],r=Array.prototype.slice.call(r,2));let a=r.length;for(n=0;n<a;n++)o=i(o,r[n]);return o}function F(e,t,n){for(let n in e)Object.hasOwnProperty.call(e,n)&&t.call(e[n],e[n],n,e)}function H(){let e=arguments,t=e.length;for(let n=0;n<t;n++){let t=e[n];if(null!=t)return t}}function _(e,t){return 0>e.indexOf(t)&&!!e.push(t)}function W(e,t,n){function r(t,n){let r=e.removeEventListener;r&&r.call(e,t,n,!1)}function o(n){let o,i;e.nodeName&&(t?(o={})[t]=!0:o=n,F(o,function(e,t){if(n[t])for(i=n[t].length;i--;)r(t,n[t][i].fn)}))}let i="function"==typeof e&&e.prototype||e;if(Object.hasOwnProperty.call(i,"hcEvents")){let e=i.hcEvents;if(t){let i=e[t]||[];n?(e[t]=i.filter(function(e){return n!==e.fn}),r(t,n)):(o(e),e[t]=[])}else o(e),delete i.hcEvents}}let{composed:K}=u();function V(){this.fullscreen=new G(this)}class G{static compose(e){_(K,"Fullscreen")&&M(e,"beforeRender",V)}constructor(e){this.chart=e,this.isOpen=!1;const t=e.renderTo;!this.browserProps&&("function"==typeof t.requestFullscreen?this.browserProps={fullscreenChange:"fullscreenchange",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen"}:t.mozRequestFullScreen?this.browserProps={fullscreenChange:"mozfullscreenchange",requestFullscreen:"mozRequestFullScreen",exitFullscreen:"mozCancelFullScreen"}:t.webkitRequestFullScreen?this.browserProps={fullscreenChange:"webkitfullscreenchange",requestFullscreen:"webkitRequestFullScreen",exitFullscreen:"webkitExitFullscreen"}:t.msRequestFullscreen&&(this.browserProps={fullscreenChange:"MSFullscreenChange",requestFullscreen:"msRequestFullscreen",exitFullscreen:"msExitFullscreen"}))}close(){let e=this,t=e.chart,n=t.options.chart;A(t,"fullscreenClose",void 0,function(){e.isOpen&&e.browserProps&&t.container.ownerDocument instanceof Document&&t.container.ownerDocument[e.browserProps.exitFullscreen](),e.unbindFullscreenEvent&&(e.unbindFullscreenEvent=e.unbindFullscreenEvent()),t.setSize(e.origWidth,e.origHeight,!1),e.origWidth=void 0,e.origHeight=void 0,n.width=e.origWidthOption,n.height=e.origHeightOption,e.origWidthOption=void 0,e.origHeightOption=void 0,e.isOpen=!1,e.setButtonText()})}open(){let e=this,t=e.chart,n=t.options.chart;A(t,"fullscreenOpen",void 0,function(){if(n&&(e.origWidthOption=n.width,e.origHeightOption=n.height),e.origWidth=t.chartWidth,e.origHeight=t.chartHeight,e.browserProps){let n=M(t.container.ownerDocument,e.browserProps.fullscreenChange,function(){e.isOpen?(e.isOpen=!1,e.close()):(t.setSize(null,null,!1),e.isOpen=!0,e.setButtonText())}),r=M(t,"destroy",n);e.unbindFullscreenEvent=()=>{n(),r()};let o=t.renderTo[e.browserProps.requestFullscreen]();o&&o.catch(function(){alert("Full screen is not supported inside a frame.")})}})}setButtonText(){var e,t;let n=this.chart,r=null==(e=n.exporting)?void 0:e.divElements,o=n.options.exporting,i=o&&o.buttons&&o.buttons.contextButton.menuItems,a=n.options.lang;if((null==o?void 0:o.menuItemDefinitions)&&(null==a?void 0:a.exitFullscreen)&&a.viewFullscreen&&i&&r){let e=r[i.indexOf("viewFullscreen")];e&&h().setElementHTML(e,this.isOpen?a.exitFullscreen:(null==(t=o.menuItemDefinitions.viewFullscreen)?void 0:t.textKey)||a.viewFullscreen)}}toggle(){this.isOpen?this.close():this.open()}}let{win:q}=u(),X={ajax:function(e){var t;let n={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},r=new XMLHttpRequest;function o(t,n){e.error&&e.error(t,n)}if(!e.url)return!1;r.open((e.type||"get").toUpperCase(),e.url,!0),(null==(t=e.headers)?void 0:t["Content-Type"])||r.setRequestHeader("Content-Type",n[e.dataType||"json"]||n.text),F(e.headers,function(e,t){r.setRequestHeader(t,e)}),e.responseType&&(r.responseType=e.responseType),r.onreadystatechange=function(){var t;let n;if(4===r.readyState){if(200===r.status){if("blob"!==e.responseType&&(n=r.responseText,"json"===e.dataType))try{n=JSON.parse(n)}catch(e){if(e instanceof Error)return o(r,e)}return null==(t=e.success)?void 0:t.call(e,n,r)}o(r,r.responseText)}},e.data&&"string"!=typeof e.data&&(e.data=JSON.stringify(e.data)),r.send(e.data)},getJSON:function(e,t){X.ajax({url:e,success:t,dataType:"json",headers:{"Content-Type":"text/plain"}})},post:async function(e,t,n){let r=new q.FormData;F(t,function(e,t){r.append(t,e)}),r.append("b64","true");let o=await q.fetch(e,{method:"POST",body:r,...n});if(o.ok){let e=await o.text(),n=document.createElement("a");n.href=`data:${t.type};base64,${e}`,n.download=t.filename,n.click(),I(n)}}},{defaultOptions:U,setOptions:Y}=u(),{composed:Z,doc:Q,isFirefox:J,isMS:ee,isSafari:te,SVG_NS:ne,win:re}=u();h().allowedAttributes.push("data-z-index","fill-opacity","filter","preserveAspectRatio","rx","ry","stroke-dasharray","stroke-linejoin","stroke-opacity","text-anchor","transform","transform-origin","version","viewBox","visibility","xmlns","xmlns:xlink"),h().allowedTags.push("desc","clippath","fedropshadow","femorphology","g","image");let oe=re.URL||re.webkitURL||re;class ie{constructor(e,t){this.options={},this.chart=e,this.options=t,this.btnCount=0,this.buttonOffset=0,this.divElements=[],this.svgElements=[]}static hyphenate(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})}static async imageToDataURL(e,t,n){let r=await ie.loadImage(e),o=Q.createElement("canvas"),i=null==o?void 0:o.getContext("2d");if(i)return o.height=r.height*t,o.width=r.width*t,i.drawImage(r,0,0,o.width,o.height),o.toDataURL(n);throw Error("No canvas found!")}static async fetchCSS(e){try{let t=await fetch(e),n=await t.text(),r=new CSSStyleSheet;return r.replaceSync(n),r}catch{(0,c.error)(`Warning: Failed to fetch CSS from ${e}`,!1)}}static async handleStyleSheet(e,t){try{for(let n of Array.from(e.cssRules)){if(n instanceof CSSImportRule){let e=await ie.fetchCSS(n.href);e&&await ie.handleStyleSheet(e,t)}if(n instanceof CSSFontFaceRule){let r=n.cssText;if(e.href){let t=e.href,n=/url\(\s*(['"]?)(?![a-z]+:|\/\/)([^'")]+?)\1\s*\)/gi;r=r.replace(n,(e,n,r)=>`url(${n}${new URL(r,t).href}${n})`)}t.push(r)}}}catch{if(e.href){let n=await ie.fetchCSS(e.href);n&&await ie.handleStyleSheet(n,t)}}}static async fetchStyleSheets(){let e=[];for(let t of Array.from(Q.styleSheets))await ie.handleStyleSheet(t,e);return e}static async inlineFonts(e){let t,n=/url\(([^)]+)\)/g,r=[],o=(await ie.fetchStyleSheets()).join("\n");for(;t=n.exec(o);){let e=t[1].replace(/['"]/g,"");r.includes(e)||r.push(e)}let i=e=>{let t="",n=new Uint8Array(e);for(let e=0;e<n.byteLength;e++)t+=String.fromCharCode(n[e]);return btoa(t)},a={};for(let e of r)try{let t=await fetch(e),n=t.headers.get("Content-Type")||"",r=i(await t.arrayBuffer());a[e]=`data:${n};base64,${r}`}catch{}o=o.replace(n,(e,t)=>{let n=t.replace(/['"]/g,"");return`url(${a[n]||n})`});let l=document.createElementNS("http://www.w3.org/2000/svg","style");return l.textContent=o,e.append(l),e}static loadImage(e){return new Promise((t,n)=>{let r=new re.Image;r.crossOrigin="Anonymous",r.onload=()=>{setTimeout(()=>{t(r)},ie.loadEventDeferDelay)},r.onerror=e=>{n(e)},r.src=e})}static prepareImageOptions(e){var t;let n=(null==e?void 0:e.type)||"image/png",r=(null==e?void 0:e.libURL)||(null==(t=U.exporting)?void 0:t.libURL);return{type:n,filename:((null==e?void 0:e.filename)||"chart")+"."+("image/svg+xml"===n?"svg":n.split("/")[1]),scale:(null==e?void 0:e.scale)||1,libURL:"/"!==(null==r?void 0:r.slice(-1))?r+"/":r}}static sanitizeSVG(e,t){var n;let r=e.indexOf("</svg>")+6,o=e.indexOf("<foreignObject")>-1,i=e.substr(r);return e=e.substr(0,r),o?e=e.replace(/(<(?:img|br).*?(?=\>))>/g,"$1 />").replace(/(<svg(?![^>]*xmlns=)[^>]*)>/g,'$1 xmlns="http://www.w3.org/2000/svg">'):i&&(null==(n=null==t?void 0:t.exporting)?void 0:n.allowHTML)&&(i='<foreignObject x="0" y="0" width="'+t.chart.width+'" height="'+t.chart.height+'"><body xmlns="http://www.w3.org/1999/xhtml">'+i.replace(/(<(?:img|br).*?(?=\>))>/g,"$1 />").replace(/(<svg(?![^>]*xmlns=)[^>]*)>/g,'$1 xmlns="http://www.w3.org/2000/svg">')+"</body></foreignObject>",e=e.replace("</svg>",i+"</svg>")),e.replace(/zIndex="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery\d+="[^"]+"/g,"").replace(/url\(("|")(.*?)("|")\;?\)/g,"url($2)").replace(/url\([^#]+#/g,"url(#").replace(/<svg /,'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ').replace(/ (NS\d+\:)?href=/g," xlink:href=").replace(/(<image[^>]*) xlink:href=/g,"$1 href=").replace(/\n+/g," ").replace(/ /g," ").replace(/­/g,"")}static svgToDataURL(e){let t=re.navigator.userAgent,n=t.indexOf("WebKit")>-1&&0>t.indexOf("Chrome");try{if(!n&&-1===e.indexOf("<foreignObject"))return oe.createObjectURL(new re.Blob([e],{type:"image/svg+xml;charset-utf-16"}))}catch{}return"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(e)}addButton(e){var t;let n,r=this,o=r.chart,i=o.renderer,a=j(null==(t=o.options.navigation)?void 0:t.buttonOptions,e),l=a.onclick,s=a.menuItems,c=a.symbolSize||12;if(!1===a.enabled||!a.theme)return;let u=o.styledMode?{}:a.theme,d=()=>{};l?d=function(e){e&&e.stopPropagation(),l.call(o,e,o)}:s&&(d=function(e){e&&e.stopPropagation(),r.contextMenu(h.menuClassName,s,h.translateX||0,h.translateY||0,h.width||0,h.height||0,h),h.setState(2)}),a.text&&a.symbol?u.paddingLeft=H(u.paddingLeft,30):a.text||O(u,{width:a.width,height:a.height,padding:0});let h=i.button(a.text||"",0,0,d,u,void 0,void 0,void 0,void 0,a.useHTML).addClass(e.className||"").attr({title:H(o.options.lang[a._titleKey||a.titleKey],"")});h.menuClassName=e.menuClassName||"highcharts-menu-"+r.btnCount++,a.symbol&&(n=i.symbol(a.symbol,Math.round((a.symbolX||0)-c/2),Math.round((a.symbolY||0)-c/2),c,c,{width:c,height:c}).addClass("highcharts-button-symbol").attr({zIndex:1}).add(h),o.styledMode||n.attr({stroke:a.symbolStroke,fill:a.symbolFill,"stroke-width":a.symbolStrokeWidth||1})),h.add(r.group).align(O(a,{width:h.width,x:H(a.x,r.buttonOffset)}),!0,"spacingBox"),r.buttonOffset+=((h.width||0)+(a.buttonSpacing||0))*("right"===a.align?-1:1),r.svgElements.push(h,n)}afterPrint(){let e=this.chart;if(!this.printReverseInfo)return;let{childNodes:t,origDisplay:n,resetParams:r}=this.printReverseInfo;this.moveContainers(e.renderTo),[].forEach.call(t,function(e,t){1===e.nodeType&&(e.style.display=n[t]||"")}),this.isPrinting=!1,r&&e.setSize.apply(e,r),delete this.printReverseInfo,ie.printingChart=void 0,A(e,"afterPrint")}beforePrint(){var e;let t=this.chart,n=Q.body,r=this.options.printMaxWidth,o={childNodes:n.childNodes,origDisplay:[],resetParams:void 0};this.isPrinting=!0,null==(e=t.pointer)||e.reset(void 0,0),A(t,"beforePrint"),r&&t.chartWidth>r&&(o.resetParams=[t.options.chart.width,void 0,!1],t.setSize(r,void 0,!1)),[].forEach.call(o.childNodes,function(e,t){1===e.nodeType&&(o.origDisplay[t]=e.style.display,e.style.display="none")}),this.moveContainers(n),this.printReverseInfo=o}contextMenu(e,t,n,r,o,i,a){var l,s,c;let u,d=this,p=d.chart,f=p.options.navigation,m=p.chartWidth,g=p.chartHeight,y="cache-"+e,v=Math.max(o,i),b=p[y];b||(d.contextMenuEl=p[y]=b=P("div",{className:e},{position:"absolute",zIndex:1e3,padding:v+"px",pointerEvents:"auto",...p.renderer.style},(null==(l=p.scrollablePlotArea)?void 0:l.fixedDiv)||p.container),u=P("ul",{className:"highcharts-menu"},p.styledMode?{}:{listStyle:"none",margin:0,padding:0},b),p.styledMode||N(u,O({MozBoxShadow:"3px 3px 10px #0008",WebkitBoxShadow:"3px 3px 10px #0008",boxShadow:"3px 3px 10px #0008"},(null==f?void 0:f.menuStyle)||{})),b.hideMenu=function(){N(b,{display:"none"}),a&&a.setState(0),p.exporting&&(p.exporting.openMenu=!1),N(p.renderTo,{overflow:"hidden"}),N(p.container,{overflow:"hidden"}),L(b.hideTimer),A(p,"exportMenuHidden")},null==(s=d.events)||s.push(M(b,"mouseleave",function(){b.hideTimer=re.setTimeout(b.hideMenu,500)}),M(b,"mouseenter",function(){L(b.hideTimer)}),M(Q,"mouseup",function(t){var n;(null==(n=p.pointer)?void 0:n.inClass(t.target,e))||b.hideMenu()}),M(b,"click",function(){var e;(null==(e=p.exporting)?void 0:e.openMenu)&&b.hideMenu()})),t.forEach(function(e){var t;if("string"==typeof e&&(null==(t=d.options.menuItemDefinitions)?void 0:t[e])&&(e=d.options.menuItemDefinitions[e]),D(e,!0)){let t;e.separator?t=P("hr",void 0,void 0,u):("viewData"===e.textKey&&d.isDataTableVisible&&(e.textKey="hideData"),t=P("li",{className:"highcharts-menu-item",onclick:function(t){t&&t.stopPropagation(),b.hideMenu(),"string"!=typeof e&&e.onclick&&e.onclick.apply(p,arguments)}},void 0,u),h().setElementHTML(t,e.text||p.options.lang[e.textKey]),p.styledMode||(t.onmouseover=function(){N(this,(null==f?void 0:f.menuItemHoverStyle)||{})},t.onmouseout=function(){N(this,(null==f?void 0:f.menuItemStyle)||{})},N(t,O({cursor:"pointer"},(null==f?void 0:f.menuItemStyle)||{})))),d.divElements.push(t)}}),d.divElements.push(u,b),d.menuHeight=b.offsetHeight,d.menuWidth=b.offsetWidth);let x={display:"block"};n+(d.menuWidth||0)>m?x.right=m-n-o-v+"px":x.left=n-v+"px",r+i+(d.menuHeight||0)>g&&"top"!==(null==(c=a.alignOptions)?void 0:c.verticalAlign)?x.bottom=g-r-v+"px":x.top=r+i-v+"px",N(b,x),N(p.renderTo,{overflow:""}),N(p.container,{overflow:""}),p.exporting&&(p.exporting.openMenu=!0),A(p,"exportMenuShown")}destroy(e){let t,n=e?e.target:this.chart,{divElements:r,events:o,svgElements:i}=this;i.forEach((e,r)=>{e&&(e.onclick=e.ontouchstart=null,n[t="cache-"+e.menuClassName]&&delete n[t],i[r]=e.destroy())}),i.length=0,this.group&&(this.group.destroy(),delete this.group),r.forEach(function(e,t){e&&(L(e.hideTimer),W(e,"mouseleave"),r[t]=e.onmouseout=e.onmouseover=e.ontouchstart=e.onclick=null,I(e))}),r.length=0,o&&(o.forEach(function(e){e()}),o.length=0)}async downloadSVG(e,t){let n,r={svg:e,exportingOptions:t,exporting:this};if(A(ie.prototype,"downloadSVG",r),r.defaultPrevented)return;let{type:o,filename:i,scale:a,libURL:l}=ie.prepareImageOptions(t);if("application/pdf"===o)throw Error("Offline exporting logic for PDF type is not found.");if("image/svg+xml"===o){if(void 0!==re.MSBlobBuilder){let t=new re.MSBlobBuilder;t.append(e),n=t.getBlob("image/svg+xml")}else n=ie.svgToDataURL(e);C(n,i)}else{n=ie.svgToDataURL(e);try{ie.objectURLRevoke=!0,C(await ie.imageToDataURL(n,a,o),i)}catch(t){if("No canvas found!"===t.message)throw t;if(e.length>1e8)throw Error("Input too long");let n=Q.createElement("canvas"),r=n.getContext("2d"),u=e.match(/^<svg[^>]*\s{,1000}width\s{,1000}=\s{,1000}\"?(\d+)\"?[^>]*>/),d=e.match(/^<svg[^>]*\s{0,1000}height\s{,1000}=\s{,1000}\"?(\d+)\"?[^>]*>/);if(r&&u&&d){let t=u[1]*a,h=d[1]*a;var s;n.width=t,n.height=h,re.canvg||(ie.objectURLRevoke=!0,await(s=l+"canvg.js",new Promise((e,t)=>{let n=x.getElementsByTagName("head")[0],r=x.createElement("script");r.type="text/javascript",r.src=s,r.onload=()=>{e()},r.onerror=()=>{let e=`Error loading script ${s}`;(0,c.error)(e),t(Error(e))},n.appendChild(r)}))),re.canvg.Canvg.fromString(r,e).start(),C(re.navigator.msSaveOrOpenBlob?n.msToBlob():n.toDataURL(o),i)}}finally{if(ie.objectURLRevoke)try{oe.revokeObjectURL(n)}catch{}}}}async exportChart(e,t){if((e=j(this.options,e)).local)await this.localExport(e,t||{});else{let n=await this.getSVGForExport(e,t);e.url&&await X.post(e.url,{filename:e.filename?e.filename.replace(/\//g,"-"):this.getFilename(),type:e.type,width:e.width,scale:e.scale,svg:n},e.fetchOptions)}}async fallbackToServer(e,t){!1===e.fallbackToExportServer?e.error?e.error(e,t):(0,c.error)(28,!0):"application/pdf"===e.type&&(e.local=!1,await this.exportChart(e))}getChartHTML(e){let t=this.chart;return e&&this.inlineStyles(),this.resolveCSSVariables(),t.container.querySelectorAll("canvas").forEach(function(e){let n=e.toDataURL("image/png"),r=e.parentNode,o=t.renderer.image(n,0,0,e.width,e.height);N(o.element,{width:e.style.width,height:e.style.height}),r.parentNode.insertBefore(o.element,r),r.remove()}),t.container.innerHTML}getFilename(){var e;let t=null==(e=this.chart.userOptions.title)?void 0:e.text,n=this.options.filename;return n?n.replace(/\//g,"-"):("string"==typeof t&&(n=t.toLowerCase().replace(/<\/?[^>]+(>|$)/g,"").replace(/[\s_]+/g,"-").replace(/[^a-z\d\-]/g,"").replace(/^[\-]+/g,"").replace(/[\-]+/g,"-").substr(0,24).replace(/[\-]+$/g,"")),(!n||n.length<5)&&(n="chart"),n)}getSVG(e,t){var n,r;let o,i,a=this.chart,l=j(a.options,e);l.plotOptions=j(a.userOptions.plotOptions,null==e?void 0:e.plotOptions),l.time=j(a.userOptions.time,null==e?void 0:e.time);let s=P("div",void 0,{position:"absolute",top:"-9999em",width:a.chartWidth+"px",height:a.chartHeight+"px"},Q.body),u=a.renderTo.style.width,d=a.renderTo.style.height,h=(null==(n=l.exporting)?void 0:n.sourceWidth)||l.chart.width||/px$/.test(u)&&parseInt(u,10)||(l.isGantt?800:600),p=(null==(r=l.exporting)?void 0:r.sourceHeight)||l.chart.height||/px$/.test(d)&&parseInt(d,10)||400;O(l.chart,{animation:!1,renderTo:s,forExport:!0,renderer:"SVGRenderer",width:h,height:p}),l.exporting&&(l.exporting.enabled=!1),delete l.data,l.series=[],a.series.forEach(function(e){var t;(i=j(e.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:e.visible})).isInternal||null==(t=null==l?void 0:l.series)||t.push(i)});let f={};a.axes.forEach(function(e){e.userOptions.internalKey||(e.userOptions.internalKey=(0,c.uniqueKey)()),l&&!e.options.isInternal&&(f[e.coll]||(f[e.coll]=!0,l[e.coll]=[]),l[e.coll].push(j(e.userOptions,{visible:e.visible,type:e.type,uniqueNames:e.uniqueNames})))}),l.colorAxis=a.userOptions.colorAxis;let m=t=>{var n;e&&["xAxis","yAxis","series"].forEach(function(n){e[n]&&t.update({[n]:e[n]})}),a.axes.forEach(function(n){let r=R(t.axes,e=>e.options.internalKey===n.userOptions.internalKey);if(r){var o;let t=n.getExtremes(),i=(z(o=(null==e?void 0:e[n.coll])||{})?o:[o])[0],a="min"in i?i.min:t.userMin,l="max"in i?i.max:t.userMax;(void 0!==a&&a!==r.min||void 0!==l&&l!==r.max)&&r.setExtremes(a??void 0,l??void 0,!0,!1)}});let r=t.exporting;return(null==r?void 0:r.options.applyStyleSheets)&&this.applyShadowDOMStyles(t),o=(null==r?void 0:r.getChartHTML(a.styledMode||(null==(n=null==l?void 0:l.exporting)?void 0:n.applyStyleSheets)))||"",A(a,"getSVG",{chartCopy:t}),o=ie.sanitizeSVG(o,l),l=void 0,t.destroy(),I(s),o};return t?new Promise(e=>new a.constructor(l||{},function(t){var n;null==(n=a.callback)||n.call(this,t),e(m(this))})):m(new a.constructor(l,a.callback))}applyShadowDOMStyles(e){let t,n=this.chart,r=[],o=n.container;for(;o&&(!(t=o.getRootNode())||"object"!=typeof t.host);)o=o.parentNode,t=null;null==t||t.querySelectorAll("style").forEach(t=>{let n=t.cloneNode(!0);e.container.appendChild(n),r.push(n)}),M(n,"getSVG",()=>{r.forEach(e=>{e.remove()})})}async getSVGForExport(e,t){let n=this.options;return await this.getSVG(j({chart:{borderRadius:0}},n.chartOptions,t,{exporting:{sourceWidth:(null==e?void 0:e.sourceWidth)||n.sourceWidth,sourceHeight:(null==e?void 0:e.sourceHeight)||n.sourceHeight}}),!0)}inlineStyles(){var e;let t,n=ie.inlineDenylist,r=ie.inlineAllowlist,o={},i=P("iframe",void 0,{width:"1px",height:"1px",visibility:"hidden"},Q.body),a=null==(e=i.contentWindow)?void 0:e.document;a&&a.body.appendChild(a.createElementNS(ne,"svg")),function e(i){let l,s,c,u,d,h,p={};if(a&&1===i.nodeType&&-1===ie.unstyledElements.indexOf(i.nodeName)){if(l=re.getComputedStyle(i,null),s="svg"===i.nodeName?{}:re.getComputedStyle(i.parentNode,null),!o[i.nodeName]){t=a.getElementsByTagName("svg")[0],c=a.createElementNS(i.namespaceURI,i.nodeName),t.appendChild(c);let e=re.getComputedStyle(c,null),n={};for(let t in e)t.length<1e3&&"string"==typeof e[t]&&!/^\d+$/.test(t)&&(n[t]=e[t]);o[i.nodeName]=n,"text"===i.nodeName&&delete o.text.fill,t.removeChild(c)}for(let e in l)(J||ee||te||Object.hasOwnProperty.call(l,e))&&function(e,t){if(u=d=!1,r.length){for(h=r.length;h--&&!d;)d=r[h].test(t);u=!d}for("transform"===t&&"none"===e&&(u=!0),h=n.length;h--&&!u;){if(t.length>1e3)throw Error("Input too long");u=n[h].test(t)||"function"==typeof e}!u&&(s[t]!==e||"svg"===i.nodeName)&&o[i.nodeName][t]!==e&&(ie.inlineToAttributes&&-1===ie.inlineToAttributes.indexOf(t)?p[t]=e:e&&i.setAttribute(ie.hyphenate(t),e))}(l[e],e);if(N(i,p),"svg"===i.nodeName&&i.setAttribute("stroke-width","1px"),"text"===i.nodeName)return;[].forEach.call(i.children||i.childNodes,e)}}(this.chart.container.querySelector("svg")),t.parentNode.removeChild(t),i.parentNode.removeChild(i)}async localExport(e,t){var n,r,o;let i,a,l,s=this.chart,c=null;if(ee&&s.styledMode&&!ie.inlineAllowlist.length&&ie.inlineAllowlist.push(/^blockSize/,/^border/,/^caretColor/,/^color/,/^columnRule/,/^columnRuleColor/,/^cssFloat/,/^cursor/,/^fill$/,/^fillOpacity/,/^font/,/^inlineSize/,/^length/,/^lineHeight/,/^opacity/,/^outline/,/^parentRule/,/^rx$/,/^ry$/,/^stroke/,/^textAlign/,/^textAnchor/,/^textDecoration/,/^transform/,/^vectorEffect/,/^visibility/,/^x$/,/^y$/),ee&&("application/pdf"===e.type||s.container.getElementsByTagName("image").length&&"image/svg+xml"!==e.type)||"application/pdf"===e.type&&[].some.call(s.container.getElementsByTagName("image"),function(e){let t=e.getAttribute("href");return""!==t&&"string"==typeof t&&0!==t.indexOf("data:")}))return void await this.fallbackToServer(e,Error("Image type not supported for this chart/browser."));let u=M(s,"getSVG",e=>{a=e.chartCopy.options,l=(i=e.chartCopy.container.cloneNode(!0))&&i.getElementsByTagName("image")||[]});try{let s;for(let n of(await this.getSVGForExport(e,t),l?Array.from(l):[]))if(c=n.getAttributeNS("http://www.w3.org/1999/xlink","href")){ie.objectURLRevoke=!1;let t=await ie.imageToDataURL(c,(null==e?void 0:e.scale)||1,(null==e?void 0:e.type)||"image/png");n.setAttributeNS("http://www.w3.org/1999/xlink","href",t)}else n.parentNode.removeChild(n);let u=null==i?void 0:i.querySelector("svg");u&&!(null==(o=null==(r=null==(n=e.chartOptions)?void 0:n.chart)?void 0:r.style)?void 0:o.fontFamily)&&await ie.inlineFonts(u);let d=(s=null==i?void 0:i.innerHTML,ie.sanitizeSVG(s||"",a));if(d.indexOf("<foreignObject")>-1&&"image/svg+xml"!==e.type&&(ee||"application/pdf"===e.type))throw Error("Image type not supported for charts with embedded HTML");return await this.downloadSVG(d,O({filename:this.getFilename()},e)),d}catch(t){await this.fallbackToServer(e,t)}finally{u()}}moveContainers(e){let t=this.chart,{scrollablePlotArea:n}=t;(n?[n.fixedDiv,n.scrollingContainer]:[t.container]).forEach(function(t){e.appendChild(t)})}print(){let e=this.chart;this.isPrinting||(ie.printingChart=e,te||this.beforePrint(),setTimeout(()=>{re.focus(),re.print(),te||setTimeout(()=>{var t;null==(t=e.exporting)||t.afterPrint()},1e3)},1))}render(){let e=this,{chart:t,options:n}=e,r=(null==e?void 0:e.isDirty)||!(null==e?void 0:e.svgElements.length);e.buttonOffset=0,e.isDirty&&e.destroy(),r&&!1!==n.enabled&&(e.events=[],e.group||(e.group=t.renderer.g("exporting-group").attr({zIndex:3}).add()),F(null==n?void 0:n.buttons,function(t){e.addButton(t)}),e.isDirty=!1)}resolveCSSVariables(){Array.from(this.chart.container.querySelectorAll("*")).forEach(e=>{["color","fill","stop-color","stroke"].forEach(t=>{var n;let r=e.getAttribute(t);(null==r?void 0:r.includes("var("))&&e.setAttribute(t,getComputedStyle(e).getPropertyValue(t));let o=null==(n=e.style)?void 0:n[t];(null==o?void 0:o.includes("var("))&&(e.style[t]=getComputedStyle(e).getPropertyValue(t))})})}update(e,t){this.isDirty=!0,j(!0,this.options,e),H(t,!0)&&this.chart.redraw()}}ie.inlineAllowlist=[],ie.inlineDenylist=[/-/,/^(clipPath|cssText|d|height|width)$/,/^font$/,/[lL]ogical(Width|Height)$/,/^parentRule$/,/^(cssRules|ownerRules)$/,/perspective/,/TapHighlightColor/,/^transition/,/^length$/,/^\d+$/],ie.inlineToAttributes=["fill","stroke","strokeLinecap","strokeLinejoin","strokeWidth","textAnchor","x","y"],ie.loadEventDeferDelay=150*!!ee,ie.unstyledElements=["clipPath","defs","desc"],function(e){function t(e){let t=e.exporting;t&&(t.render(),M(e,"redraw",function(){var e;null==(e=this.exporting)||e.render()}),M(e,"destroy",function(){var e;null==(e=this.exporting)||e.destroy()}))}function n(){let t=this;t.options.exporting&&(t.exporting=new e(t,t.options.exporting),y.compose(t).navigation.addUpdate((e,n)=>{t.exporting&&(t.exporting.isDirty=!0,j(!0,t.options.navigation,e),H(n,!0)&&t.redraw())}))}function r({alignTo:e,key:t,textPxLength:n}){var r,o,i;let a=this.options.exporting,{align:l,buttonSpacing:s=0,verticalAlign:c,width:u=0}=j(null==(r=this.options.navigation)?void 0:r.buttonOptions,null==(o=null==a?void 0:a.buttons)?void 0:o.contextButton),d=e.width-n,h=u+s;((null==a?void 0:a.enabled)??1)&&"title"===t&&"right"===l&&"top"===c&&d<2*h&&(d<h?e.width-=h:"left"!==(null==(i=this.title)?void 0:i.alignValue)&&(e.x-=h-d/2))}e.compose=function(o,i){E.compose(i),G.compose(o),_(Z,"Exporting")&&(O(f().prototype,{exportChart:async function(e,t){var n;await(null==(n=this.exporting)?void 0:n.exportChart(e,t))},getChartHTML:function(e){var t;return null==(t=this.exporting)?void 0:t.getChartHTML(e)},getFilename:function(){var e;return null==(e=this.exporting)?void 0:e.getFilename()},getSVG:function(e){var t;return null==(t=this.exporting)?void 0:t.getSVG(e,!1)},print:function(){var e;return null==(e=this.exporting)?void 0:e.print()}}),o.prototype.callbacks.push(t),M(o,"afterInit",n),M(o,"layOutTitle",r),te&&re.matchMedia("print").addListener(function(t){var n,r;e.printingChart&&(t.matches?null==(n=e.printingChart.exporting)||n.beforePrint():null==(r=e.printingChart.exporting)||r.afterPrint())}),Y(S))}}(ie||(ie={}));let ae=u();ae.Exporting=ie,ae.HttpUtilities=ae.HttpUtilities||X,ae.ajax=ae.HttpUtilities.ajax,ae.getJSON=ae.HttpUtilities.getJSON,ae.post=ae.HttpUtilities.post,ie.compose(ae.Chart,ae.Renderer);let le=u();return s.default})())}(UK));var ZK,QK={exports:{}};var JK=(ZK||(ZK=1,function(e){var t;"undefined"!=typeof self&&self,e.exports=(t=p(),function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){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)}function o(e){return s(e)||l(e)||a(e)||i()}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function l(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(e){if(Array.isArray(e))return c(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"HighchartsReact",function(){return f});var d=n(1),h=n.n(d),p="undefined"!=typeof window?d.useLayoutEffect:d.useEffect,f=Object(d.memo)(Object(d.forwardRef)(function(e,t){var n=Object(d.useRef)(),i=Object(d.useRef)(),a=Object(d.useRef)(e.constructorType),l=Object(d.useRef)(e.highcharts);return p(function(){function t(){var t=e.highcharts||"object"===("undefined"==typeof window?"undefined":u(window))&&window.Highcharts,r=e.constructorType||"chart";t?t[r]?e.options?i.current=t[r](n.current,e.options,e.callback):console.warn('The "options" property was not passed.'):console.warn('The "constructorType" property is incorrect or some required module is not imported.'):console.warn('The "highcharts" property was not passed.')}if(i.current){if(!1!==e.allowChartUpdate)if(e.constructorType!==a.current||e.highcharts!==l.current)a.current=e.constructorType,l.current=e.highcharts,t();else if(!e.immutable&&i.current){var r;(r=i.current).update.apply(r,[e.options].concat(o(e.updateArgs||[!0,!0])))}else t()}else t()},[e.options,e.allowChartUpdate,e.updateArgs,e.containerProps,e.highcharts,e.constructorType]),p(function(){return function(){i.current&&(i.current.destroy(),i.current=null)}},[]),Object(d.useImperativeHandle)(t,function(){return{get chart(){return i.current},container:n}},[]),h.a.createElement("div",r({},e.containerProps,{ref:n}))}));t.default=f},function(e,n){e.exports=t}]))}(QK)),QK.exports);const eV=l(JK),tV="breakdown-level",nV=["kingdom","phylum","class","order","family","genus","species"],rV=e=>e?`Not assigned ${e}`:"Not assigned",oV=e=>{if(!e||0===e.length)return[];const t=[...e].sort((e,t)=>(t.species||0)-(e.species||0));return t.length<=100?t:t.slice(0,100)},iV=({taxon:e,datasetKey:t,rank:n=[],dataset:r,level:o=1,showLevelSwitch:i=!1,darkMode:a})=>{const l=(e=>{const t=kR()[e];return t&&t.onNavigate?t.onNavigate:wR})("taxon"),[s,c]=f.useState(null),[u,d]=f.useState(!1),[h,p]=f.useState(!1),[m,g]=f.useState(()=>i?qR(tV,o):o);f.useEffect(()=>{i||g(o)},[o,i]),f.useEffect(()=>{i&&XR(tV,m)},[m,i]),f.useEffect(()=>{(null==e?void 0:e.id)&&t&&y()},[e,t,m]);const y=async()=>{d(!0);try{const r=await(async()=>{const n=await fR(`${gR.dataApi}dataset/${t}/nameusage/search?TAXON_ID=${encodeURIComponent(e.id)}&facet=rank&status=accepted&status=provisionally%20accepted&limit=0`);return rR(zI(n,"data.facets.rank",[]),"value")})(),o=nV;let i,a=o.indexOf(zI(e,"name.rank"));if(-1===a){let t=n.indexOf(zI(e,"name.rank"))+1;for(;-1===a&&t<n.length-1;){const e=o.indexOf(n[t]);e>-1&&(a=e-1),t++}}let l=a+1;for(;!i&&l<o.length;){const e=zI(o,`[${l}]`);e&&zI(r,`${e}.count`,0)>0?i=e:l++}if(!i)return p(!0),void d(!1);const s=(await fR(`${gR.dataApi}dataset/${t}/taxon/${e.id}/breakdown?level=${m}`)).data||[],c=zI(r,"species.count",0);d(!1),v(s,c)}catch(e){d(!1)}},v=(t,n)=>{const o=r.doi?"https://doi.org/"+r.doi:null,i=qK.getOptions().colors,s=("boolean"==typeof a?a:"undefined"!=typeof window&&"function"==typeof window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)?"#1f1f1f":"#ffffff",u={click:e=>{e.point._id&&l(e.point._id)}},d=((e,t)=>{const n=oV(e||[]),r=n.reduce((e,t)=>e+(t.species||0),0);return r>=t?n:[...n,{name:rV(zI(n,"[0].rank","")),species:t-r,children:[]}]})(t,n).map((e,t)=>({name:e.name,y:e.species,_id:e.id,color:i[t%i.length],_kids:e.children})),h=[],p=m>=2&&d.some(e=>e._kids&&e._kids.length>0);p&&d.forEach(e=>{const t=oV(e._kids||[]),n=t.reduce((e,t)=>e+(t.species||0),0);t.forEach((n,r)=>{const o=.4*(t.length>1?r/(t.length-1):0)-.1;h.push({name:n.name,y:n.species,_id:n.id,color:qK.color(e.color).brighten(o).get()})}),n<e.y&&h.push({name:rV(zI(t,"[0].rank","")),y:e.y-n,color:s,borderColor:s,borderWidth:0,dataLabels:{enabled:!1}})});const f=n||d.reduce((e,t)=>e+t.y,0),g=p?{formatter:function(){return this.y>f/10?this.point.name:null},distance:-30,style:{color:"contrast",textOutline:"1px contrast",fontWeight:"bold"}}:{formatter:function(){return this.y>1?"<b>"+this.point.name+":</b> "+this.y.toLocaleString("en-GB"):null}},y=[{name:"Species",data:(v=d,v.map(({_kids:e,...t})=>t)),size:p?"60%":"85%",dataLabels:g,point:{events:u}}];var v;p&&y.push({name:"Species",data:h,size:"85%",innerSize:"60%",dataLabels:{formatter:function(){return this.y>1?"<b>"+this.point.name+":</b> "+this.y.toLocaleString("en-GB"):null}},point:{events:u}}),c({chart:{type:"pie"},credits:{text:`${e.name.scientificName} in ${r.title}${r.version?" ("+r.version+")":""}. ${(r.doi?"DOI:"+r.doi:null)||r.url||""}`,href:o||r.url||""},title:{text:""},plotOptions:{pie:{shadow:!1,center:["50%","50%"]}},tooltip:{},series:y,responsive:{rules:[{condition:{maxWidth:400},chartOptions:{series:p?[{},{dataLabels:{enabled:!1}}]:[{}]}}]},exporting:{chartOptions:{plotOptions:{series:{dataLabels:{enabled:!0}}}},fallbackToExportServer:!1}})};if(h)return null;const b=i?j.jsx(YS,{size:"small",checked:2===m,onChange:e=>g(e?2:1),checkedChildren:"lvl2",unCheckedChildren:"lvl1",style:{position:"absolute",top:11,right:44,zIndex:2,background:2===m?"#8c8c8c":"#bfbfbf"}}):null;return j.jsxs("div",{style:{position:"relative"},children:[b,u||!s?j.jsxs(Lw,{style:{padding:"48px"},children:[j.jsx(Aw,{flex:"auto"}),j.jsx(Aw,{children:j.jsx(mS,{size:"large"})}),j.jsx(Aw,{flex:"auto"})]}):j.jsx(eV,{highcharts:qK,options:s})]})},aV=({info:e,datasetKey:t})=>{var n,r;const[o,i]=f.useState({});f.useEffect(()=>{var t;(null==(t=null==e?void 0:e.source)?void 0:t.secondarySources)&&l()},[e]);const a=new xR(e=>$R(e,t)),l=async()=>{var t;const n={};try{await Promise.all(Object.keys((null==(t=null==e?void 0:e.source)?void 0:t.secondarySources)||{}).map(t=>{var r;return a.load(null==(r=null==e?void 0:e.source)?void 0:r.secondarySources[t].datasetKey).then(e=>{n[e.key]=e})}))}catch(e){console.log(e)}i(n)};return(null==(n=null==e?void 0:e.source)?void 0:n.secondarySources)?Object.keys((null==(r=null==e?void 0:e.source)?void 0:r.secondarySources)||{}).map(t=>{var n,r,i,a,l,s,c,u,d,h,p,f,g;return j.jsxs(m.Fragment,{children:[cR(t),":"," ",j.jsx("a",{href:`https://www.checklistbank.org/dataset/${null==(i=null==(r=null==(n=null==e?void 0:e.source)?void 0:n.secondarySources)?void 0:r[t])?void 0:i.datasetKey}/taxon/${encodeURIComponent(null==(s=null==(l=null==(a=null==e?void 0:e.source)?void 0:a.secondarySources)?void 0:l[t])?void 0:s.id)}`,children:(null==(h=o[null==(d=null==(u=null==(c=null==e?void 0:e.source)?void 0:c.secondarySources)?void 0:u[t])?void 0:d.datasetKey])?void 0:h.title)||(null==(g=null==(f=null==(p=null==e?void 0:e.source)?void 0:p.secondarySources)?void 0:f[t])?void 0:g.datasetKey)})]},t)}):null};ES.config({getContainer:()=>document.getElementsByClassName("catalogue-of-life")[0]});const lV=e=>{var t,n;return(null==(n=null==(t=null==e?void 0:e.response)?void 0:t.data)?void 0:n.message)||(null==e?void 0:e.message)||"An error occurred"},sV=({error:e})=>j.jsx("div",{style:{margin:"6px"},children:j.jsx("span",{children:lV(e)})}),cV=({datasetKey:e,taxonKey:t})=>{const[n]=nk.useForm(),[r,o]=f.useState(!1),[i,a]=f.useState(!1),[l,s]=f.useState(null),[c,u]=f.useState(null),d=n=>{mR.post(`${gR.dataApi}dataset/${e}/nameusage/${t}/feedback`,n).then(e=>{console.log(e),o(!1),u(e.data)}).catch(e=>{o(!1),s(e)})};return j.jsxs(j.Fragment,{children:[j.jsxs(MS,{getContainer:".catalogue-of-life",title:"Feedback",open:i,destroyOnClose:!0,onOk:()=>{if(c)return a(!1),void u(null);o(!0),n.validateFields().then(e=>(n.resetFields(),d(e)))},onCancel:()=>a(!1),confirmLoading:r,children:[l&&j.jsx(pl,{style:{marginBottom:"10px"},message:j.jsx(sV,{error:l}),type:"error",onClose:()=>s(null),closable:!0}),c&&j.jsxs("p",{children:["Thank you, your feedback was saved. You can follow for progress and further discussion ",j.jsx("a",{target:"_blank",href:c,children:"here."})]}),!c&&j.jsxs(j.Fragment,{children:[" ",j.jsxs("p",{children:["We will create a ",j.jsx("a",{href:"https://github.com/CatalogueofLife/data/issues",target:"_blank",children:"github issue"})," which you can monitor or use to further discuss with us."]}),j.jsx(mS,{spinning:r,children:j.jsxs(nk,{labelCol:{span:6},wrapperCol:{span:18},form:n,onFinish:d,onFinishFailed:({errorFields:e})=>{n.scrollToField(e[0].name)},children:[j.jsx(nk.Item,{name:"message",label:"Message",rules:[{required:!0}],children:j.jsx(kk.TextArea,{rows:8})}),j.jsx(nk.Item,{name:"email",label:"Email (optional)",rules:[{type:"email"}],children:j.jsx(kk,{type:"email"})})]})})]})]}),j.jsxs(Lw,{children:[j.jsx(Aw,{flex:"auto"}),j.jsx(Aw,{}),j.jsxs(ph,{href:`https://www.checklistbank.org/dataset/${e}/download?taxonID=${t}`,style:{marginTop:"12px",marginRight:"4px"},size:"small",children:["Download ",j.jsx(PP,{})]}),j.jsxs(ph,{style:{marginTop:"12px"},size:"small",onClick:()=>a(!0),children:["Feedback ",j.jsx(cL,{})]})]})]})};lx.extend(jK);class uV extends m.Component{constructor(e){super(e),o(this,"componentDidMount",()=>{const{taxonKey:e}=this.props;this.getCatalogue(),e&&(this.getTaxon(e),this.getInfo(e),this.getRank(e),this.getIncludes(e),this.getNomStatus(e))}),o(this,"getTaxon",e=>{const{datasetKey:t,pageTitleTemplate:n}=this.props;this.setState({loading:!0}),fR(`${gR.dataApi}dataset/${t}/taxon/${e}`).then(e=>{let r=[e];return n&&zI(e,"data.label")&&(document.title=n.replace("__taxon__",e.data.label)),zI(e,"data.name.publishedInId")&&r.push(fR(`${gR.dataApi}dataset/${t}/reference/${zI(e,"data.name.publishedInId")}`).then(t=>(e.data.name.publishedIn=t.data,e))),zI(e,"data.name")&&r.push(fR(`${gR.dataApi}dataset/${t}/name/${zI(e,"data.name.id")}/relations`).then(n=>(e.data.name.relations=n.data,Promise.allSettled(n.data.map(e=>fR(`${gR.dataApi}dataset/${t}/name/${e.relatedNameId}`).then(t=>{e.relatedName=t.data}))).then(e=>e.filter(e=>e.status="fulfilled").map(e=>e.value))))),zI(e,"data.sectorKey")&&fR(`${gR.dataApi}dataset/${t}/sector/${zI(e,"data.sectorKey")}`).then(e=>{fR(`${gR.dataApi}dataset/${t}/logo/source/${zI(e,"data.subjectDatasetKey")}`).then(()=>{this.setState({logoUrl:`${gR.dataApi}dataset/${t}/logo/source/${zI(e,"data.subjectDatasetKey")}?size=MEDIUM`})}).catch(()=>{}),fR(`${gR.dataApi}dataset/${t}/source/${zI(e,"data.subjectDatasetKey")}`).then(e=>{this.setState({sourceDataset:e.data})})}),Promise.allSettled(r).then(e=>e.filter(e=>e.status="fulfilled").map(e=>e.value))}).then(e=>{this.setState({taxonLoading:!1,taxon:e[0].data,taxonError:null})}).catch(t=>{404===zI(t,"response.status")?this.fetchSynonymAndRedirect(e):this.setState({taxonLoading:!1,taxonError:t,taxon:null})})}),o(this,"getCatalogue",()=>{const{datasetKey:e}=this.props;fR(`${gR.dataApi}dataset/${e}`).then(e=>{this.setState({catalogue:e.data})}).catch(e=>{})}),o(this,"datasetLoader",new xR(e=>$R(e,this.props.datasetKey))),o(this,"sectorLoader",new xR(e=>BR(e,this.props.datasetKey))),o(this,"decorateWithSectorsAndDataset",async e=>{const{datasetKey:t}=this.props,n={};for(const r of["misapplied","heterotypic","homotypic"].filter(t=>!!e[t]))await Promise.allSettled(e[r].filter(e=>!!e.sectorKey).map(e=>this.sectorLoader.load(e.sectorKey,t).then(t=>(e.sector=t,this.datasetLoader.load(t.subjectDatasetKey).then(t=>{e.sourceDatasetKey=t.key,n[t.key]=t})))));if(null==e?void 0:e.heterotypicGroups)for(const r of null==e?void 0:e.heterotypicGroups)await Promise.allSettled(r.filter(e=>!!e.sectorKey).map(e=>this.sectorLoader.load(e.sectorKey,t).then(t=>(e.sector=t,this.datasetLoader.load(t.subjectDatasetKey).then(t=>{e.sourceDatasetKey=t.key,n[t.key]=t})))));return Object.keys(n).length>0?n:null}),o(this,"getInfo",async e=>{var t,n,r,o,i,a;const{datasetKey:l}=this.props;try{const s=await fR(`${gR.dataApi}dataset/${l}/taxon/${e}/info`);let c={};zI(s,"data.references")&&(Object.keys(s.data.references).forEach((e,t)=>{c[e]=(t+1).toString()}),await Promise.allSettled(Object.keys(s.data.references).map(e=>s.data.references[e]).filter(e=>!!e.sectorKey).map(e=>this.sectorLoader.load(e.sectorKey).then(t=>(e.sector=t,this.datasetLoader.load(t.subjectDatasetKey).then(t=>{e.sourceDataset=t})))))),(null==(t=null==s?void 0:s.data)?void 0:t.vernacularNames)&&await Promise.allSettled(s.data.vernacularNames.filter(e=>!!e.sectorKey).map(e=>this.sectorLoader.load(e.sectorKey).then(t=>{e.sector=t,e.sourceDatasetKey=t.subjectDatasetKey}))),(null==(n=null==s?void 0:s.data)?void 0:n.distributions)&&await Promise.allSettled(s.data.distributions.filter(e=>!!e.sectorKey).map(e=>this.sectorLoader.load(e.sectorKey).then(t=>{e.sector=t,e.sourceDatasetKey=t.subjectDatasetKey})));let u=zI(s,"data.synonyms")?await this.decorateWithSectorsAndDataset(zI(s,"data.synonyms")):null;(null==(r=null==s?void 0:s.data)?void 0:r.nameRelations)&&(null==(o=null==s?void 0:s.data)?void 0:o.names)&&(null==(i=null==s?void 0:s.data)||i.nameRelations.forEach(e=>{var t,n,r,o;e.relatedName=null==(n=null==(t=null==s?void 0:s.data)?void 0:t.names)?void 0:n[null==e?void 0:e.relatedNameId],e.name=null==(o=null==(r=null==s?void 0:s.data)?void 0:r.names)?void 0:o[null==e?void 0:e.nameId]})),this.setState({infoLoading:!1,info:s.data,classification:null==(a=null==s?void 0:s.data)?void 0:a.classification,infoError:null,referenceIndexMap:c,sourceDatasetKeyMap:u})}catch(t){404===zI(t,"response.status")?this.fetchSynonymAndRedirect(e):this.setState({infoLoading:!1,infoError:t,info:null})}}),o(this,"getRank",()=>{fR(`${gR.dataApi}vocab/rank`).then(e=>this.setState({rank:e.data.map(e=>e.name)}))}),o(this,"getNomStatus",()=>{fR(`${gR.dataApi}vocab/nomstatus`).then(e=>this.setState({nomStatus:e.data.reduce((e,t)=>(e[t.name]=t,e),{})}))}),o(this,"getIncludes",e=>{const{datasetKey:t}=this.props;fR(`${gR.dataApi}dataset/${t}/nameusage/search?TAXON_ID=${e}&facet=rank&status=accepted&status=provisionally%20accepted&limit=0`).then(e=>{this.setState({includesLoading:!1,includes:zI(e,"data.facets.rank")||[]})}).catch(e=>{this.setState({includesLoading:!1,includes:[]})})}),o(this,"fetchSynonymAndRedirect",e=>{var t,n;const{datasetKey:r}=this.props,o=null==(n=null==(t=this.context)?void 0:t.taxon)?void 0:n.onNavigate;fR(`${gR.dataApi}dataset/${r}/synonym/${e}`).then(e=>{const t=zI(e,"data.accepted.id");t&&o&&o(t)}).catch(e=>{404===zI(e,"response.status")&&this.setState({status:404})})}),dR(this.props.auth),this.state={taxon:null,info:null,taxonLoading:!0,datasetLoading:!0,infoLoading:!0,infoError:null,taxonError:null,verbatimLoading:!0,verbatimError:null,verbatim:null,logoUrl:null,sourceDataset:null,includes:[],rank:[],nomStatus:null,catalogue:null,referenceIndexMap:{},sourceDatasetKeyMap:null}}componentDidUpdate(e){if(e.taxonKey!==this.props.taxonKey&&this.props.taxonKey){const e=this.props.taxonKey;this.getTaxon(e),this.getInfo(e),this.getRank(e),this.getIncludes(e),this.getNomStatus(e)}}render(){var e,t,n,r,o,i,a,l,s,c,u,d,h,p,f,g,y,v,b,x,w,C,k,S,E,$,T,M,P;const{datasetKey:N,showDistributionMap:I,gbifChecklistKey:O}=this.props,{taxon:A,info:R,classification:L,sourceDataset:B,includes:z,rank:D,nomStatus:F,taxonError:H,synonymsError:_,classificationError:W,infoError:K,status:V,catalogue:G,referenceIndexMap:q}=this.state,X=D?D.indexOf("genus"):-1,U=zI(R,"synonyms.homotypic",[]);zI(R,"synonyms.heterotypic",[]);return zI(R,"synonyms.misapplied",[]),U.map(e=>({...e,__homotypic:!0})),404===V?j.jsx(_K,{}):j.jsx(m.Fragment,{children:j.jsxs("div",{className:"catalogue-of-life",style:{padding:24,minHeight:280,margin:"16px 0",fontSize:"12px"},children:[H&&j.jsx(pl,{message:j.jsx(LR,{error:H}),type:"error"}),A&&j.jsxs(Lw,{align:"bottom",children:[j.jsx(Aw,{flex:"auto",children:j.jsxs("div",{style:{marginLeft:(null==(e=null==R?void 0:R.usage)?void 0:e.merged)?"-22px":0},children:[(null==(t=null==R?void 0:R.usage)?void 0:t.merged)&&j.jsx(OR,{style:{marginBottom:"10px"},createdBy:null==(n=null==R?void 0:R.usage)?void 0:n.createdBy,datasetKey:null==(r=null==R?void 0:R.usage)?void 0:r.datasetKey,verbatimSourceKey:null==(o=null==R?void 0:R.usage)?void 0:o.verbatimSourceKey,sourceDatasetKey:null==(i=null==R?void 0:R.source)?void 0:i.sourceDatasetKey,sourceId:null==(a=null==R?void 0:R.source)?void 0:a.sourceId}),j.jsx("h1",{style:{fontSize:"30px",fontWeight:"400",paddingLeft:"10px",display:"inline",textTransform:"none"},dangerouslySetInnerHTML:{__html:A.labelHtml}})]})}),j.jsxs(Aw,{span:1,children:[j.jsx("a",{href:""}),A.provisional&&j.jsx(xP,{color:"red",children:"Provisional"})]}),B&&j.jsx(Aw,{span:5,style:{textAlign:"right"},children:j.jsx(HK,{auth:this.props.auth,style:{maxWidth:"100%",height:"auto",marginRight:"8px"},datasetKey:N,sourceDatasetKey:B.key})})]}),zI(A,"id")&&j.jsxs(w_,{md:5,label:zI(this.props,"identifierLabel","Identifier"),children:[zI(A,"id")," ",j.jsx("a",{href:`https://www.checklistbank.org/dataset/${N}/taxon/${zI(A,"id")}`,children:j.jsx(iL,{})}),j.jsx(Jy,{title:"Download data for this taxon and descendants",getPopupContainer:()=>document.getElementById(`col-download-${zI(A,"id")}`)||document.body,children:j.jsx("a",{style:{marginLeft:"5px"},id:`col-download-${zI(A,"id")}`,target:"_blank",href:`http://checklistbank.org/dataset/${N}/download?taxonID=${encodeURIComponent(zI(A,"id"))}`,children:j.jsx(PP,{})})})]}),zI(A,"labelHtml")&&j.jsx(w_,{md:5,label:"Name",children:j.jsx("span",{dangerouslySetInnerHTML:{__html:A.labelHtml}})}),zI(A,"name.publishedIn.citation")&&j.jsxs(w_,{md:5,label:"Published in",children:[zI(R,"source.secondarySources['published in']")&&j.jsx(OR,{sourceDatasetKey:zI(R,"source.secondarySources['published in'].datasetKey"),sourceId:zI(R,"source.secondarySources['published in'].id")}),zI(A,"name.publishedIn.citation")]}),zI(A,"status")&&j.jsxs(w_,{md:5,label:"Checklist status",children:[`${zI(A,"status")} ${zI(A,"name.rank")}`,(null==(l=null==R?void 0:R.decisions)?void 0:l[null==A?void 0:A.id])&&j.jsxs(j.Fragment,{children:[" with"," ",null==(c=null==(s=null==R?void 0:R.decisions)?void 0:s[null==A?void 0:A.id])?void 0:c.mode," ","decision",j.jsx(Jj,{style:{marginLeft:"10px"},decision:null==(u=null==R?void 0:R.decisions)?void 0:u[null==A?void 0:A.id]})]})]}),zI(A,"name.nomStatus")&&F&&j.jsx(w_,{md:5,label:"Nomenclatural Status",children:F[zI(A,"name.nomStatus")][zI(A,"name.code"),"zoological"]}),K&&j.jsx(pl,{message:j.jsx(LR,{error:K}),type:"error"}),zI(R,"synonyms")&&j.jsx(w_,{md:5,label:"Synonyms and combinations",children:j.jsx(y_,{primarySource:B,data:zI(R,"synonyms"),decisions:zI(R,"decisions"),references:zI(R,"references"),typeMaterial:zI(R,"typeMaterial"),referenceIndexMap:q,style:{marginTop:"-3px"},datasetKey:N})}),zI(R,"typeMaterial")&&R.typeMaterial[null==(h=null==(d=null==R?void 0:R.usage)?void 0:d.name)?void 0:h.id]&&j.jsx(w_,{md:5,label:"Type material",children:j.jsx(f_,{data:zI(R,"typeMaterial"),nameID:zI(A,"name.id")})}),zI(R,"nameRelations")&&R.nameRelations.filter(e=>(null==e?void 0:e.usageId)===(null==A?void 0:A.id)).length>0&&j.jsx(wW,{md:5,style:{marginTop:"-3px"},data:R.nameRelations.filter(e=>(null==e?void 0:e.usageId)===(null==A?void 0:A.id))}),zI(R,"nameRelations")&&R.nameRelations.filter(e=>(null==e?void 0:e.usageId)!==(null==A?void 0:A.id)).length>0&&j.jsx(wW,{md:5,reverse:!0,style:{marginTop:"-3px"},data:R.nameRelations.filter(e=>(null==e?void 0:e.usageId)!==(null==A?void 0:A.id))}),_&&j.jsx(pl,{message:j.jsx(LR,{error:_}),type:"error"}),W&&j.jsx(pl,{message:j.jsx(LR,{error:W}),type:"error"}),L&&j.jsx(w_,{md:5,label:"Classification",children:j.jsx(bW,{style:{marginTop:"-3px",marginLeft:"-3px"},data:L,taxon:A,datasetKey:N})}),(A&&D.indexOf(zI(A,"name.rank"))<X&&D.indexOf(zI(A,"name.rank"))>-1||"unranked"===zI(A,"name.rank")&&"Biota"===zI(A,"name.scientificName"))&&j.jsx(w_,{md:5,label:"Breakdown",children:j.jsx(iV,{taxon:A,datasetKey:N,rank:D,dataset:G,showLevelSwitch:!0})}),z.length>1&&D&&A&&j.jsx(w_,{md:5,label:"Statistics",children:j.jsx(FK,{style:{marginTop:"-3px",marginLeft:"-3px"},data:z,rank:D,taxon:A})}),zI(R,"vernacularNames")&&A&&j.jsx(w_,{md:5,label:"Vernacular names",children:j.jsx(v_,{style:{marginTop:"-3px",marginLeft:"-3px"},data:R.vernacularNames,references:zI(R,"references"),datasetKey:A.datasetKey})}),(zI(R,"distributions")||I&&O&&A)&&j.jsx(yW,{style:{marginTop:"-3px"},label:"Distributions",md:5,data:(null==R?void 0:R.distributions)||[],datasetKey:N,showDistributionMap:I,focalTaxon:A,rankOrder:D,gbifChecklistKey:O}),zI(A,"environments")&&j.jsx(w_,{md:5,label:"Environment(s)",children:zI(A,"environments").join(", ")}),zI(A,"remarks")&&j.jsx(w_,{md:5,label:"Additional Data",children:A.remarks}),j.jsx(Lw,{children:zI(A,"accordingTo")&&j.jsx(Aw,{span:12,children:j.jsxs(w_,{md:10,label:"According to",children:[`${zI(A,"accordingTo")}`,zI(A,"accordingToDate")&&`, ${lx(zI(A,"accordingToDate")).format("LL")}`]})})}),zI(A,"scrutinizer")&&j.jsx(Aw,{span:12,children:j.jsx(w_,{md:10,label:"Taxonomic scrutiny",children:`${zI(A,"scrutinizer")}${zI(A,"scrutinizerDate")?", "+zI(A,"scrutinizerDate"):""}`})}),zI(B,"title")&&j.jsx(w_,{md:5,label:"Source",children:j.jsxs("div",{style:{display:"inline-block"},children:[(null==(p=null==R?void 0:R.usage)?void 0:p.merged)&&j.jsx(OR,{createdBy:null==(f=null==R?void 0:R.usage)?void 0:f.createdBy,datasetKey:null==(g=null==R?void 0:R.usage)?void 0:g.datasetKey,verbatimSourceKey:null==(y=null==R?void 0:R.usage)?void 0:y.verbatimSourceKey,sourceDatasetKey:null==(v=null==R?void 0:R.source)?void 0:v.sourceDatasetKey,sourceId:null==(b=null==R?void 0:R.source)?void 0:b.sourceId})," ",(null==R?void 0:R.source)&&(null==(x=null==R?void 0:R.source)?void 0:x.sourceId)&&j.jsxs(j.Fragment,{children:[j.jsx("a",{href:`https://www.checklistbank.org/dataset/${null==(w=null==R?void 0:R.source)?void 0:w.sourceDatasetKey}/taxon/${null==(C=null==R?void 0:R.source)?void 0:C.sourceId}`,children:null==(k=null==R?void 0:R.source)?void 0:k.sourceId})," ","in"," "]}),j.jsx(ER,{to:"source",args:zI(B,"key"),children:`${zI(B,"alias")}: ${zI(B,"title")}`}),j.jsx("span",{style:{marginLeft:"10px"},children:zI(B,"completeness")&&zI(B,"completeness")+"%"}),zI(B,"confidence")&&j.jsx(HS,{style:{marginLeft:"10px"},value:zI(B,"confidence"),disabled:!0})]})}),zI(A,"link")&&j.jsx(w_,{md:5,label:"Link to original resource",children:j.jsx("a",{href:zI(A,"link"),children:zI(A,"link")})}),(null==(S=null==R?void 0:R.source)?void 0:S.secondarySources)&&j.jsx(w_,{md:5,label:"Secondary Sources",children:j.jsx(aV,{info:R,datasetKey:N})}),zI(R,"references")&&j.jsx(w_,{md:5,label:"References",children:j.jsx(LK,{referenceIndexMap:q,primarySourceDatasetKey:null==(E=null==R?void 0:R.source)?void 0:E.sourceDatasetKey,data:zI(R,"references"),style:{marginTop:"-3px"}})}),(null==(T=null==($=null==window?void 0:window.location)?void 0:$.hostname)?void 0:T.endsWith("catalogueoflife.org"))&&j.jsx(w_,{md:5,label:"",children:j.jsx(cV,{taxonKey:null==(P=null==(M=null==this?void 0:this.state)?void 0:M.taxon)?void 0:P.id,datasetKey:this.props.datasetKey})})]})})}}o(uV,"contextType",CR);const dV=NP(_(function({taxonKey:e,datasetKey:t,pageTitleTemplate:n,identifierLabel:r,showDistributionMap:o,gbifChecklistKey:i,auth:a,...l}){return j.jsx(CR.Provider,{value:SR(l),children:j.jsx(uV,{taxonKey:e,datasetKey:t,pageTitleTemplate:n,identifierLabel:r,showDistributionMap:o,gbifChecklistKey:i,auth:a})})})),hV=(e,t)=>(zI(e,`taxaByRankCount.${t}`)||0)-(zI(e,`extinctTaxaByRankCount.${t}`)||0),pV=(e,t)=>zI(e,`extinctTaxaByRankCount.${t}`)||0,fV=e=>{const t=e.key?{SECTOR_DATASET_KEY:e.key}:{SECTOR_PUBLISHER_KEY:e.id};return VP(e.sectorModes)&&(t.sectorMode=e.sectorModes),t},mV=({metrics:e,rank:t,style:n,dataset:r})=>e&&t?j.jsxs("div",{style:n,children:[j.jsxs(m.Fragment,{children:[j.jsx(w_,{label:"Living species",children:r?j.jsx(ER,{to:"search",args:{...fV(r),rank:"species",extinct:["false","_NULL"]},children:hV(e,"species").toLocaleString("en-GB")}):hV(e,"species").toLocaleString("en-GB")}),j.jsx(w_,{label:"Extinct species",children:r?j.jsx(ER,{to:"search",args:{...fV(r),rank:"species",extinct:"true"},children:pV(e,"species").toLocaleString("en-GB")}):pV(e,"species").toLocaleString("en-GB")})]}),e.taxaByRankCount&&Object.keys(e.taxaByRankCount).sort((e,n)=>t.indexOf(n)-t.indexOf(e)).map(t=>j.jsx(w_,{label:`${cR(t)}`,children:r?j.jsx(ER,{to:"search",args:{...fV(r),rank:t,status:["accepted","provisionally accepted"]},children:e.taxaByRankCount[t].toLocaleString("en-GB")}):e.taxaByRankCount[t].toLocaleString("en-GB")},t)),j.jsx(w_,{label:"Synonyms",children:r?j.jsx(ER,{to:"search",args:{...fV(r),status:["misapplied","synonym","ambiguous synonym"]},children:(e.synonymCount||0).toLocaleString("en-GB")}):(e.synonymCount||0).toLocaleString("en-GB")},"Synonyms"),j.jsx(w_,{label:"Common names",children:(e.vernacularCount||0).toLocaleString("en-GB")},"vernaculars"),j.jsx(w_,{label:"Total number of names",children:r?j.jsx(ER,{to:"search",args:fV(r),children:(e.nameCount||0).toLocaleString("en-GB")}):(e.nameCount||0).toLocaleString("en-GB")},"names")]}):j.jsx(w_,{label:"",children:j.jsx(yf,{active:!0,paragraph:{rows:4}})});class gV extends m.Component{constructor(e){super(e),o(this,"getData",()=>{const{dataset:e,datasetKey:t}=this.props;fR(`${gR.dataApi}dataset/${t}/source/${e.key}/metrics`).then(e=>{this.setState({metrics:e.data})})}),o(this,"getRank",()=>{fR(`${gR.dataApi}vocab/rank`).then(e=>this.setState({rank:e.data.map(e=>e.name)}))}),o(this,"render",()=>j.jsx(mV,{...this.state,dataset:this.props.dataset})),this.state={metrics:null,rank:null,loading:!0}}componentDidMount(){this.getData(),this.getRank()}}class yV extends m.Component{constructor(e){super(e),o(this,"getData",()=>{const{dataset:e,datasetKey:t}=this.props,n={};fR(`${gR.dataApi}dataset/${t}/sector?limit=1000&subjectDatasetKey=${e.key}`).then(e=>Promise.allSettled(e.data.result.filter(e=>!!(null==e?void 0:e.target)).map(e=>{var r,o,i,a;return fR(`${gR.dataApi}dataset/${t}/nameusage/search?TAXON_ID=${null==(r=null==e?void 0:e.target)?void 0:r.id}${(null==(o=null==e?void 0:e.subject)?void 0:o.rank)?"&rank="+(null==(i=null==e?void 0:e.subject)?void 0:i.rank):""}&q=${null==(a=null==e?void 0:e.subject)?void 0:a.name}`).then(e=>{const t=zI(e,"data.result[0]");if(t){const e=t.classification.slice(1,t.classification.length-1).map(e=>e.name).join(" > ");n[e]?n[e].push(t.classification[t.classification.length-1]):n[e]=[t.classification[t.classification.length-1]]}}).catch(t=>{console.log(e),console.log(t)})})).then(()=>this.setState({taxonMap:n,loading:!1})))}),o(this,"render",()=>{const{taxonMap:e}=this.state,{style:t}=this.props;return e?Object.keys(e).length>0?Object.keys(e).sort((e,t)=>e.length-t.length).map(n=>j.jsxs("div",{style:t,children:[j.jsxs("span",{children:[n,""!==n?":":""]})," ",e[n].map((t,r)=>j.jsxs(m.Fragment,{children:[j.jsx(ER,{to:"tree",args:{taxonKey:t.id},children:t.name}),r!==e[n].length-1?", ":""]},r))]},n)):"N/A":j.jsx(yf,{active:!0,paragraph:{rows:4}})}),this.state={loading:!0,taxonMap:null}}componentDidMount(){this.getData()}}const vV=({agent:e,countryAlpha2:t,style:n,noLinks:r})=>{const o=zI(e,"country")?zI(t,`[${zI(e,"country")}].title`,zI(e,"country")):null;return e?j.jsxs("span",{style:n,children:[(e.given||e.family)&&j.jsx("span",{style:{display:"block"},children:[e.family,e.given].filter(e=>!!e).join(", ")}),e.orcid&&(r?j.jsxs("div",{children:[j.jsx("img",{src:"https://www.checklistbank.org/images/orcid_16x16.png",style:{flex:"0 0 auto"},alt:""})," ",e.orcid]}):j.jsxs("a",{style:{display:"block"},href:`https://orcid.org/${e.orcid}`,children:[j.jsx("img",{src:"https://www.checklistbank.org/images/orcid_16x16.png",style:{flex:"0 0 auto"},alt:""})," ",e.orcid]})),e.organisation&&j.jsx("span",{style:{display:"block"},children:e.organisation}),e.rorid&&(r?j.jsxs("div",{children:[j.jsx("img",{src:"https://www.checklistbank.org/images/ror-logo-small.png",style:{flex:"0 0 auto",height:"20px"},alt:""})," ",e.rorid]}):j.jsxs("a",{style:{display:"block"},href:`https://ror.org/${e.rorid}`,children:[j.jsx("img",{src:"https://www.checklistbank.org/images/ror-logo-small.png",style:{flex:"0 0 auto",height:"20px"},alt:""})," ",e.rorid]})),e.department&&j.jsx("span",{style:{display:"block"},children:e.department}),(e.city||e.state||o)&&j.jsx("span",{style:{display:"block"},children:[e.city,e.state,o].filter(e=>!!e).join(", ")})]}):null},bV=({datasetKey:e,sourceDatasetKey:t,style:n={}})=>{const r=t?`${gR.dataApi}dataset/${e}/source/${t}.bib`:`${gR.dataApi}dataset/${e}.bib`;return j.jsx("a",{href:r,children:j.jsx("img",{src:"https://www.checklistbank.org/images/bibtex_logo.png",style:{height:"40px",...n}})})};function xV(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var wV={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function CV(e){wV=e}var kV={exec:()=>null};function SV(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),o=t[r];return o||(o=e(r),t[r]=o),o}}function EV(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let o="string"==typeof t?t:t.source;return o=o.replace(TV.caret,"$1"),n=n.replace(e,o),r},getRegex:()=>new RegExp(n,t)};return r}var $V=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),TV={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:SV(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`)),hrRegex:SV(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:SV(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:SV(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:SV(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:SV(e=>new RegExp(`^ {0,${e}}>`))},MV=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,PV=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,NV=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,IV=EV(NV).replace(/bull/g,PV).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),OV=EV(NV).replace(/bull/g,PV).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),AV=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,RV=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,LV=EV(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",RV).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),BV=EV(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,PV).getRegex(),zV="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",DV=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,jV=EV("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",DV).replace("tag",zV).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),FV=EV(AV).replace("hr",MV).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",zV).getRegex(),HV={blockquote:EV(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",FV).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:LV,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:MV,html:jV,lheading:IV,list:BV,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:FV,table:kV,text:/^[^\n]+/},_V=EV("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",MV).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",zV).getRegex(),WV={...HV,lheading:OV,table:_V,paragraph:EV(AV).replace("hr",MV).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",_V).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",zV).getRegex()},KV={...HV,html:EV("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",DV).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:kV,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:EV(AV).replace("hr",MV).replace("heading"," *#{1,6} *[^\n]").replace("lheading",IV).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},VV=/^( {2,}|\\)\n(?!\s*$)/,GV=/[\p{P}\p{S}]/u,qV=/[\s\p{P}\p{S}]/u,XV=/[^\s\p{P}\p{S}]/u,UV=EV(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,qV).getRegex(),YV=/(?!~)[\p{P}\p{S}]/u,ZV=EV(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",$V?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),QV=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,JV=EV(QV,"u").replace(/punct/g,GV).getRegex(),eG=EV(QV,"u").replace(/punct/g,YV).getRegex(),tG="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",nG=EV(tG,"gu").replace(/notPunctSpace/g,XV).replace(/punctSpace/g,qV).replace(/punct/g,GV).getRegex(),rG=EV(tG,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,YV).getRegex(),oG=EV("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,XV).replace(/punctSpace/g,qV).replace(/punct/g,GV).getRegex(),iG=EV(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,GV).getRegex(),aG=EV("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,XV).replace(/punctSpace/g,qV).replace(/punct/g,GV).getRegex(),lG=EV(/\\(punct)/,"gu").replace(/punct/g,GV).getRegex(),sG=EV(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),cG=EV(DV).replace("(?:--\x3e|$)","--\x3e").getRegex(),uG=EV("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",cG).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),dG=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,hG=EV(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",dG).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),pG=EV(/^!?\[(label)\]\[(ref)\]/).replace("label",dG).replace("ref",RV).getRegex(),fG=EV(/^!?\[(ref)\](?:\[\])?/).replace("ref",RV).getRegex(),mG=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,gG={_backpedal:kV,anyPunctuation:lG,autolink:sG,blockSkip:ZV,br:VV,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:kV,delLDelim:kV,delRDelim:kV,emStrongLDelim:JV,emStrongRDelimAst:nG,emStrongRDelimUnd:oG,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:hG,nolink:fG,punctuation:UV,reflink:pG,reflinkSearch:EV("reflink|nolink(?!\\()","g").replace("reflink",pG).replace("nolink",fG).getRegex(),tag:uG,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:kV},yG={...gG,link:EV(/^!?\[(label)\]\((.*?)\)/).replace("label",dG).getRegex(),reflink:EV(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",dG).getRegex()},vG={...gG,emStrongRDelimAst:rG,emStrongLDelim:eG,delLDelim:iG,delRDelim:aG,url:EV(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",mG).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:EV(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",mG).getRegex()},bG={...vG,br:EV(VV).replace("{2,}","*").getRegex(),text:EV(vG.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},xG={normal:HV,gfm:WV,pedantic:KV},wG={normal:gG,gfm:vG,breaks:bG,pedantic:yG},CG={"&":"&","<":"<",">":">",'"':""","'":"'"},kG=e=>CG[e];function SG(e,t){if(t){if(TV.escapeTest.test(e))return e.replace(TV.escapeReplace,kG)}else if(TV.escapeTestNoEncode.test(e))return e.replace(TV.escapeReplaceNoEncode,kG);return e}function EG(e){try{e=encodeURI(e).replace(TV.percentDecode,"%")}catch{return null}return e}function $G(e,t){var n;let r=e.replace(TV.findPipe,(e,t,n)=>{let r=!1,o=t;for(;--o>=0&&"\\"===n[o];)r=!r;return r?"|":" |"}).split(TV.splitPipe),o=0;if(r[0].trim()||r.shift(),r.length>0&&!(null==(n=r.at(-1))?void 0:n.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;o<r.length;o++)r[o]=r[o].trim().replace(TV.slashPipe,"|");return r}function TG(e,t,n){let r=e.length;if(0===r)return"";let o=0;for(;o<r;){if(e.charAt(r-o-1)!==t)break;o++}return e.slice(0,r-o)}function MG(e){let t=e.split("\n"),n=t.length-1;for(;n>=0&&TV.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join("\n")}function PG(e,t=0){let n=t,r="";for(let t of e)if("\t"===t){let e=4-n%4;r+=" ".repeat(e),n+=e}else r+=t,n++;return r}function NG(e,t,n,r,o){let i=t.href,a=t.title||null,l=e[1].replace(o.other.outputLinkReplace,"$1");r.state.inLink=!0;let s={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:i,title:a,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,s}var IG=class{constructor(e){o(this,"options"),o(this,"rules"),o(this,"lexer"),this.options=e||wV}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:MG(t[0]),n=e.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e,codeBlockStyle:"indented",text:n}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let o=r[1];return t.split("\n").map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=o.length?e.slice(o.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=TG(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:TG(t[0],"\n"),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:TG(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=TG(t[0],"\n").split("\n"),n="",r="",o=[];for(;e.length>0;){let t,i=!1,a=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))a.push(e[t]),i=!0;else{if(i)break;a.push(e[t])}e=e.slice(t);let l=a.join("\n"),s=l.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${l}`:l,r=r?`${r}\n${s}`:s;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(s,o,!0),this.lexer.state.top=c,0===e.length)break;let u=o.at(-1);if("code"===(null==u?void 0:u.type))break;if("blockquote"===(null==u?void 0:u.type)){let t=u,i=t.raw+"\n"+e.join("\n"),a=this.blockquote(i);o[o.length-1]=a,n=n.substring(0,n.length-t.raw.length)+a.raw,r=r.substring(0,r.length-t.text.length)+a.text;break}if("list"===(null==u?void 0:u.type)){let t=u,i=t.raw+"\n"+e.join("\n"),a=this.list(i);o[o.length-1]=a,n=n.substring(0,n.length-u.raw.length)+a.raw,r=r.substring(0,r.length-t.raw.length)+a.raw,e=i.substring(o.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:o,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,o={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let i=this.rules.other.listItemRegex(n),a=!1;for(;e;){let n=!1,r="",l="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let s=PG(t[2].split("\n",1)[0],t[1].length),c=e.split("\n",1)[0],u=!s.trim(),d=0;if(this.options.pedantic?(d=2,l=s.trimStart()):u?d=t[1].length+1:(d=s.search(this.rules.other.nonSpaceChar),d=d>4?1:d,l=s.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(r+=c+"\n",e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),o=this.rules.other.fencesBeginRegex(d),i=this.rules.other.headingBeginRegex(d),a=this.rules.other.htmlBeginRegex(d),h=this.rules.other.blockquoteBeginRegex(d);for(;e;){let p,f=e.split("\n",1)[0];if(c=f,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),p=c):p=c.replace(this.rules.other.tabCharGlobal," "),o.test(c)||i.test(c)||a.test(c)||h.test(c)||t.test(c)||n.test(c))break;if(p.search(this.rules.other.nonSpaceChar)>=d||!c.trim())l+="\n"+p.slice(d);else{if(u||s.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||o.test(s)||i.test(s)||n.test(s))break;l+="\n"+c}u=!c.trim(),r+=f+"\n",e=e.substring(f.length+1),s=p.slice(d)}}o.loose||(a?o.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(a=!0)),o.items.push({type:"list_item",raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(l),loose:!1,text:l,tokens:[]}),o.raw+=r}let l=o.items.at(-1);if(!l)return;l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd(),o.raw=o.raw.trimEnd();for(let e of o.items){this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]);let t=e.tokens[0];if(!e.task||"text"!==(null==t?void 0:t.type)&&"paragraph"!==(null==t?void 0:t.type))e.task&&(e.task=!1);else{e.text=e.text.replace(this.rules.other.listReplaceTask,""),t.raw=t.raw.replace(this.rules.other.listReplaceTask,""),t.text=t.text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:"checkbox",raw:n[0]+" ",checked:"[ ]"!==n[0]};e.checked=t.checked,o.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:"paragraph",raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}if(!o.loose){let t=e.tokens.filter(e=>"space"===e.type),n=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));o.loose=n}}if(o.loose)for(let e of o.items){e.loose=!0;for(let t of e.tokens)"text"===t.type&&(t.type="paragraph")}return o}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=MG(t[0]);return{type:"html",block:!0,raw:e,pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:TG(t[0],"\n"),href:n,title:r}}}table(e){var t;let n=this.rules.block.table.exec(e);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let r=$G(n[1]),o=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(null==(t=n[3])?void 0:t.trim())?n[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],a={type:"table",raw:TG(n[0],"\n"),header:[],align:[],rows:[]};if(r.length===o.length){for(let e of o)this.rules.other.tableAlignRight.test(e)?a.align.push("right"):this.rules.other.tableAlignCenter.test(e)?a.align.push("center"):this.rules.other.tableAlignLeft.test(e)?a.align.push("left"):a.align.push(null);for(let e=0;e<r.length;e++)a.header.push({text:r[e],tokens:this.lexer.inline(r[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push($G(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:"heading",raw:TG(t[0],"\n"),depth:"="===t[2].charAt(0)?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=TG(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),NG(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return NG(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(r&&(r[1]||r[2]||r[3]||r[4])&&(!r[4]||!n.match(this.rules.other.unicodeAlphaNumeric))&&(!r[1]&&!r[3]||!n||this.rules.inline.punctuation.exec(n))){let n,o,i=[...r[0]].length-1,a=i,l=0,s="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(s.lastIndex=0,t=t.slice(-1*e.length+i);null!==(r=s.exec(t));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n)continue;if(o=[...n].length,r[3]||r[4]){a+=o;continue}if((r[5]||r[6])&&i%3&&!((i+o)%3)){l+=o;continue}if(a-=o,a>0)continue;o=Math.min(o,o+a+l);let t=[...r[0]][0].length,s=e.slice(0,i+r.index+t+o);if(Math.min(i,o)%2){let e=s.slice(1,-1);return{type:"em",raw:s,text:e,tokens:this.lexer.inlineTokens(e)}}let c=s.slice(2,-2);return{type:"strong",raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n,o,i=[...r[0]].length-1,a=i,l=this.rules.inline.delRDelim;for(l.lastIndex=0,t=t.slice(-1*e.length+i);null!==(r=l.exec(t));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n||(o=[...n].length,o!==i))continue;if(r[3]||r[4]){a+=o;continue}if(a-=o,a>0)continue;o=Math.min(o,o+a);let t=[...r[0]][0].length,l=e.slice(0,i+r.index+t+o),s=l.slice(i,-i);return{type:"del",raw:l,text:s,tokens:this.lexer.inlineTokens(s)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=t[1],n="mailto:"+e):(e=t[1],n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){var t;let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=n[0],r="mailto:"+e;else{let o;do{o=n[0],n[0]=(null==(t=this.rules.inline._backpedal.exec(n[0]))?void 0:t[0])??""}while(o!==n[0]);e=n[0],r="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},OG=class e{constructor(e){o(this,"tokens"),o(this,"options"),o(this,"state"),o(this,"inlineQueue"),o(this,"tokenizer"),this.tokens=[],this.tokens.links=Object.create(null),this.options=e||wV,this.options.tokenizer=this.options.tokenizer||new IG,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:TV,block:xG.normal,inline:wG.normal};this.options.pedantic?(t.block=xG.pedantic,t.inline=wG.pedantic):this.options.gfm&&(t.block=xG.gfm,this.options.breaks?t.inline=wG.breaks:t.inline=wG.gfm),this.tokenizer.rules=t}static get rules(){return{block:xG,inline:wG}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(TV.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){var r,o,i;this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(TV.tabCharGlobal," ").replace(TV.spaceLine,""));let a=1/0;for(;e;){if(!(e.length<a)){this.infiniteLoopError(e.charCodeAt(0));break}let l;if(a=e.length,null==(o=null==(r=this.options.extensions)?void 0:r.block)?void 0:o.some(n=>!!(l=n.call({lexer:this},e,t))&&(e=e.substring(l.raw.length),t.push(l),!0)))continue;if(l=this.tokenizer.space(e)){e=e.substring(l.raw.length);let n=t.at(-1);1===l.raw.length&&void 0!==n?n.raw+="\n":t.push(l);continue}if(l=this.tokenizer.code(e)){e=e.substring(l.raw.length);let n=t.at(-1);"paragraph"===(null==n?void 0:n.type)||"text"===(null==n?void 0:n.type)?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+l.raw,n.text+="\n"+l.text,this.inlineQueue.at(-1).src=n.text):t.push(l);continue}if(l=this.tokenizer.fences(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.heading(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.hr(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.blockquote(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.list(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.html(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.def(e)){e=e.substring(l.raw.length);let n=t.at(-1);"paragraph"===(null==n?void 0:n.type)||"text"===(null==n?void 0:n.type)?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+l.raw,n.text+="\n"+l.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[l.tag]||(this.tokens.links[l.tag]={href:l.href,title:l.title},t.push(l));continue}if(l=this.tokenizer.table(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.lheading(e)){e=e.substring(l.raw.length),t.push(l);continue}let s=e;if(null==(i=this.options.extensions)?void 0:i.startBlock){let t,n=1/0,r=e.slice(1);this.options.extensions.startBlock.forEach(e=>{t=e.call({lexer:this},r),"number"==typeof t&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(s=e.substring(0,n+1))}if(this.state.top&&(l=this.tokenizer.paragraph(s))){let r=t.at(-1);n&&"paragraph"===(null==r?void 0:r.type)?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+l.raw,r.text+="\n"+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(l),n=s.length!==e.length,e=e.substring(l.raw.length);continue}if(l=this.tokenizer.text(e)){e=e.substring(l.raw.length);let n=t.at(-1);"text"===(null==n?void 0:n.type)?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+l.raw,n.text+="\n"+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(l);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){var n,r,o,i,a;this.tokenizer.lexer=this;let l,s=e,c=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!==(c=this.tokenizer.rules.inline.reflinkSearch.exec(s));)e.includes(c[0].slice(c[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,c.index)+"["+"a".repeat(c[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!==(c=this.tokenizer.rules.inline.anyPunctuation.exec(s));)s=s.slice(0,c.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!==(c=this.tokenizer.rules.inline.blockSkip.exec(s));)l=c[2]?c[2].length:0,s=s.slice(0,c.index+l)+"["+"a".repeat(c[0].length-l-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=(null==(r=null==(n=this.options.hooks)?void 0:n.emStrongMask)?void 0:r.call({lexer:this},s))??s;let u=!1,d="",h=1/0;for(;e;){if(!(e.length<h)){this.infiniteLoopError(e.charCodeAt(0));break}let n;if(h=e.length,u||(d=""),u=!1,null==(i=null==(o=this.options.extensions)?void 0:o.inline)?void 0:i.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let r=t.at(-1);"text"===n.type&&"text"===(null==r?void 0:r.type)?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,s,d)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e,s,d)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let r=e;if(null==(a=this.options.extensions)?void 0:a.startInline){let t,n=1/0,o=e.slice(1);this.options.extensions.startInline.forEach(e=>{t=e.call({lexer:this},o),"number"==typeof t&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(r=e.substring(0,n+1))}if(n=this.tokenizer.inlineText(r)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(d=n.raw.slice(-1)),u=!0;let r=t.at(-1);"text"===(null==r?void 0:r.type)?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t="Infinite loop on byte: "+e;if(!this.options.silent)throw new Error(t);console.error(t)}},AG=class{constructor(e){o(this,"options"),o(this,"parser"),this.options=e||wV}space(e){return""}code({text:e,lang:t,escaped:n}){var r;let o=null==(r=(t||"").match(TV.notSpaceStart))?void 0:r[0],i=e.replace(TV.endingNewline,"")+"\n";return o?'<pre><code class="language-'+SG(o)+'">'+(n?i:SG(i,!0))+"</code></pre>\n":"<pre><code>"+(n?i:SG(i,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let o=t?"ol":"ul";return"<"+o+(t&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+o+">\n"}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let o=e.rows[t];n="";for(let e=0;e<o.length;e++)n+=this.tablecell(o[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+r+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${SG(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),o=EG(e);if(null===o)return r;let i='<a href="'+(e=o)+'"';return t&&(i+=' title="'+SG(t)+'"'),i+=">"+r+"</a>",i}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let o=EG(e);if(null===o)return SG(n);let i=`<img src="${e=o}" alt="${SG(n)}"`;return t&&(i+=` title="${SG(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:SG(e.text)}},RG=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},LG=class e{constructor(e){o(this,"options"),o(this,"renderer"),o(this,"textRenderer"),this.options=e||wV,this.options.renderer=this.options.renderer||new AG,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new RG}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){var t,n;this.renderer.parser=this;let r="";for(let o=0;o<e.length;o++){let i=e[o];if(null==(n=null==(t=this.options.extensions)?void 0:t.renderers)?void 0:n[i.type]){let e=i,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(e.type)){r+=t||"";continue}}let a=i;switch(a.type){case"space":r+=this.renderer.space(a);break;case"hr":r+=this.renderer.hr(a);break;case"heading":r+=this.renderer.heading(a);break;case"code":r+=this.renderer.code(a);break;case"table":r+=this.renderer.table(a);break;case"blockquote":r+=this.renderer.blockquote(a);break;case"list":r+=this.renderer.list(a);break;case"checkbox":r+=this.renderer.checkbox(a);break;case"html":r+=this.renderer.html(a);break;case"def":r+=this.renderer.def(a);break;case"paragraph":r+=this.renderer.paragraph(a);break;case"text":r+=this.renderer.text(a);break;default:{let e='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return r}parseInline(e,t=this.renderer){var n,r;this.renderer.parser=this;let o="";for(let i=0;i<e.length;i++){let a=e[i];if(null==(r=null==(n=this.options.extensions)?void 0:n.renderers)?void 0:r[a.type]){let e=this.options.extensions.renderers[a.type].call({parser:this},a);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){o+=e||"";continue}}let l=a;switch(l.type){case"escape":case"text":o+=t.text(l);break;case"html":o+=t.html(l);break;case"link":o+=t.link(l);break;case"image":o+=t.image(l);break;case"checkbox":o+=t.checkbox(l);break;case"strong":o+=t.strong(l);break;case"em":o+=t.em(l);break;case"codespan":o+=t.codespan(l);break;case"br":o+=t.br(l);break;case"del":o+=t.del(l);break;default:{let e='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return o}},BG=(n=class{constructor(e){o(this,"options"),o(this,"block"),this.options=e||wV}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?OG.lex:OG.lexInline}provideParser(e=this.block){return e?LG.parse:LG.parseInline}},o(n,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),o(n,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),n),zG=new class{constructor(...e){o(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),o(this,"options",this.setOptions),o(this,"parse",this.parseMarkdown(!0)),o(this,"parseInline",this.parseMarkdown(!1)),o(this,"Parser",LG),o(this,"Renderer",AG),o(this,"TextRenderer",RG),o(this,"Lexer",OG),o(this,"Tokenizer",IG),o(this,"Hooks",BG),this.use(...e)}walkTokens(e,t){var n,r;let o=[];for(let i of e)switch(o=o.concat(t.call(this,i)),i.type){case"table":{let e=i;for(let n of e.header)o=o.concat(this.walkTokens(n.tokens,t));for(let n of e.rows)for(let e of n)o=o.concat(this.walkTokens(e.tokens,t));break}case"list":{let e=i;o=o.concat(this.walkTokens(e.items,t));break}default:{let e=i;(null==(r=null==(n=this.defaults.extensions)?void 0:n.childTokens)?void 0:r[e.type])?this.defaults.extensions.childTokens[e.type].forEach(n=>{let r=e[n].flat(1/0);o=o.concat(this.walkTokens(r,t))}):e.tokens&&(o=o.concat(this.walkTokens(e.tokens,t)))}}return o}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new AG(this.defaults);for(let n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=n,o=e.renderer[r],i=t[r];t[r]=(...e)=>{let n=o.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new IG(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=n,o=e.tokenizer[r],i=t[r];t[r]=(...e)=>{let n=o.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new BG;for(let n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=n,o=e.hooks[r],i=t[r];BG.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&BG.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await o.call(t,e);return i.call(t,n)})();let r=o.call(t,e);return i.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await o.apply(t,e);return!1===n&&(n=await i.apply(t,e)),n})();let n=o.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return OG.lex(e,t??this.defaults)}parser(e,t){return LG.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},o={...this.defaults,...r},i=this.onError(!!o.silent,!!o.async);if(!0===this.defaults.async&&!1===r.async)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return i(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=e),o.async)return(async()=>{let n=o.hooks?await o.hooks.preprocess(t):t,r=await(o.hooks?await o.hooks.provideLexer(e):e?OG.lex:OG.lexInline)(n,o),i=o.hooks?await o.hooks.processAllTokens(r):r;o.walkTokens&&await Promise.all(this.walkTokens(i,o.walkTokens));let a=await(o.hooks?await o.hooks.provideParser(e):e?LG.parse:LG.parseInline)(i,o);return o.hooks?await o.hooks.postprocess(a):a})().catch(i);try{o.hooks&&(t=o.hooks.preprocess(t));let n=(o.hooks?o.hooks.provideLexer(e):e?OG.lex:OG.lexInline)(t,o);o.hooks&&(n=o.hooks.processAllTokens(n)),o.walkTokens&&this.walkTokens(n,o.walkTokens);let r=(o.hooks?o.hooks.provideParser(e):e?LG.parse:LG.parseInline)(n,o);return o.hooks&&(r=o.hooks.postprocess(r)),r}catch(e){return i(e)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+SG(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function DG(e,t){return zG.parse(e,t)}DG.options=DG.setOptions=function(e){return zG.setOptions(e),DG.defaults=zG.defaults,CV(DG.defaults),DG},DG.getDefaults=xV,DG.defaults=wV,DG.use=function(...e){return zG.use(...e),DG.defaults=zG.defaults,CV(DG.defaults),DG},DG.walkTokens=function(e,t){return zG.walkTokens(e,t)},DG.parseInline=zG.parseInline,DG.Parser=LG,DG.parser=LG.parse,DG.Renderer=AG,DG.TextRenderer=RG,DG.Lexer=OG,DG.lexer=OG.lex,DG.Tokenizer=IG,DG.Hooks=BG,DG.parse=DG,DG.options,DG.setOptions,DG.use,DG.walkTokens,DG.parseInline,LG.parse,OG.lex;const jG={col:"https://www.checklistbank.org/dataset/",gbif:"https://www.gbif.org/dataset/",plazi:"http://publication.plazi.org/id/",doi:"https://doi.org/"};class FG extends m.Component{constructor(e){super(e),o(this,"componentDidMount",()=>{this.getData(),fL().then(e=>{const t={};e.forEach(e=>{t[e.alpha2]=e}),this.setState({countryAlpha2:t})})}),o(this,"getData",()=>{const{datasetKey:e,sourceDatasetKey:t,pageTitleTemplate:n}=this.props;t&&fR(`${gR.dataApi}dataset/${e}/source/${t}`).then(e=>{n&&zI(e,"data.title")&&(document.title=n.replace("__dataset__",e.data.title)),this.setState({data:e.data,datasetError:null})}).catch(e=>this.setState({datasetError:e,data:null}))}),o(this,"getRank",()=>{fR(`${gR.dataApi}vocab/rank`).then(e=>this.setState({rank:e.data.map(e=>e.name)}))}),dR(this.props.auth),this.state={datasetLoading:!0,data:null,rank:null,countryAlpha2:{}}}componentDidUpdate(e){e.sourceDatasetKey===this.props.sourceDatasetKey&&e.datasetKey===this.props.datasetKey||this.getData()}render(){const{datasetKey:e}=this.props,{data:t,countryAlpha2:n,datasetError:r}=this.state;return j.jsx(m.Fragment,{children:j.jsxs("div",{className:"catalogue-of-life",style:{background:"#fff",padding:24,minHeight:280,margin:"16px 0",fontSize:"12px"},children:[r&&j.jsx(pl,{message:j.jsx(LR,{error:r}),type:"error"}),t&&j.jsxs(Lw,{children:[j.jsxs(Aw,{flex:"auto",children:[j.jsx("h1",{style:{fontSize:"30px",fontWeight:"400",paddingLeft:"10px",display:"inline-block",textTransform:"none"},children:t.title}),t&&j.jsxs(m.Fragment,{children:[j.jsx("br",{}),j.jsx(bV,{style:{marginLeft:"8px",height:"32px"},datasetKey:e,sourceDatasetKey:e!==t.key?t.key:void 0})]})]}),j.jsx(Aw,{style:{textAlign:"right"},children:j.jsx(HK,{auth:this.props.auth,style:{maxWidth:"100%",height:"auto",marginRight:"8px"},datasetKey:e,sourceDatasetKey:t.key})})]}),t&&j.jsxs(m.Fragment,{children:[j.jsxs(w_,{label:"Short name",children:[t.alias,j.jsx(Jy,{title:"Visit in COL Checklistbank",getPopupContainer:()=>document.getElementsByClassName("catalogue-of-life")[0],children:j.jsxs(ph,{type:"link",href:`https://www.checklistbank.org/dataset/${t.key}`,children:[j.jsx(iL,{})," "]})})]}),j.jsx(w_,{label:"Full name",children:t.title}),(t.version||t.issued)&&j.jsx(w_,{label:`${t.version?"Version":""}${t.version&&t.issued?" / ":""}${t.issued?"Issued":""}`,children:(t.version||t.issued)&&`${t.version?t.version:""}${t.issued?" / "+t.issued:""}`}),j.jsx(w_,{label:"DOI",children:t.doi?j.jsxs("a",{href:`https://doi.org/${t.doi}`,children:[j.jsx("img",{src:"https://www.checklistbank.org/images/DOI_logo.png",style:{flex:"0 0 auto",height:"16px"},alt:""}),t.doi]}):"-"}),t.contact&&!JA(t.contact)&&j.jsx(w_,{label:"Contact",children:j.jsx(vV,{countryAlpha2:n,agent:t.contact})}),t.publisher&&!JA(t.publisher)&&j.jsx(w_,{label:"Publisher",children:j.jsx(vV,{countryAlpha2:n,agent:t.publisher})}),t.creator&&j.jsx(w_,{label:"Creator",children:j.jsx(Lw,{gutter:[8,8],children:t.creator.map(e=>j.jsx(Aw,{span:8,children:j.jsx(vV,{countryAlpha2:n,agent:e})}))})}),t.editor&&j.jsx(w_,{label:"Editor",children:j.jsx(Lw,{gutter:[8,8],children:t.editor.map(e=>j.jsx(Aw,{span:8,children:j.jsx(vV,{countryAlpha2:n,agent:e})}))})}),t.contributor&&j.jsx(w_,{label:"Contributor",children:j.jsx(Lw,{gutter:[8,8],children:t.contributor.map(e=>j.jsx(Aw,{span:8,children:j.jsx(vV,{countryAlpha2:n,agent:e})}))})}),j.jsx(w_,{label:"Taxonomic coverage",children:j.jsx(yV,{dataset:t,datasetKey:e})}),j.jsx(gV,{datasetKey:e,dataset:t}),j.jsx(w_,{label:"Abstract",children:t.description?j.jsx("span",{dangerouslySetInnerHTML:{__html:RK.sanitize(DG.parse(t.description))}}):""}),j.jsx(w_,{label:"Taxonomic scope",children:t.taxonomicScope||"-"}),j.jsx(w_,{label:"Geographic scope",children:t.geographicScope||"-"}),j.jsx(w_,{label:"Temporal scope",children:t.temporalScope||"-"})," ",j.jsx(w_,{label:"License",children:t.license||"-"}),j.jsx(w_,{label:"Checklist Confidence",children:j.jsx(HS,{value:t.confidence,disabled:!0})}),j.jsx(w_,{label:"Completeness",children:t.completeness}),j.jsx(w_,{label:"Url (website)",children:t.url?j.jsx("a",{href:t.url,target:"_blank",children:t.url}):"-"}),j.jsx(w_,{label:"ISSN",children:t.issn?j.jsx("a",{href:`https://portal.issn.org/resource/ISSN/${t.issn}`,children:t.issn}):"-"}),j.jsx(w_,{label:"GBIF key",children:t.gbifKey?j.jsx("a",{href:`https://www.gbif.org/dataset/${t.gbifKey}`,children:t.gbifKey}):"-"}),j.jsx(w_,{label:"Identifiers",children:t.identifier?j.jsx("ol",{style:{listStyle:"none",paddingInlineStart:"0px"},children:Object.keys(t.identifier).map(e=>j.jsxs("li",{style:{float:"left",marginRight:"8px"},children:[`${e.toUpperCase()}: `,jG[e]?j.jsx("a",{href:`${jG[e]}${t.identifier[e]}`,target:"_blank",children:t.identifier[e]}):t.identifier[e]]}))}):"-"}),j.jsx(w_,{label:"Citation",children:t.citation&&j.jsx("span",{dangerouslySetInnerHTML:{__html:t.citation}})}),j.jsx(w_,{label:"Source",children:t.source&&VP(t.source)?t.source.map(e=>!!e&&(e.citation?j.jsx("div",{style:{display:"inline-block"},dangerouslySetInnerHTML:{__html:e.citation}}):e.title)):"-"})]})]})})}}const HG=NP(_(function({sourceDatasetKey:e,datasetKey:t,pageTitleTemplate:n,auth:r,...o}){return j.jsx(CR.Provider,{value:SR(o),children:j.jsx(FG,{sourceDatasetKey:e,datasetKey:t,pageTitleTemplate:n,auth:r})})})),_G=e=>{const t=e.key?{SECTOR_DATASET_KEY:e.key}:{SECTOR_PUBLISHER_KEY:e.id};return VP(e.sectorModes)&&(t.sectorMode=e.sectorModes),t},WG=(e,t)=>zI(e,`metrics.taxaByRankCount.${t||"species"}`)||0,KG=(e,t,n)=>[{title:"Title",dataIndex:["alias"],key:"title",ellipsis:!0,render:(t,n)=>j.jsxs(j.Fragment,{children:[n.id?j.jsxs("span",{children:[j.jsx(OR,{style:{marginLeft:"0px"}})," ","Publisher: "," ",j.jsx("a",{href:`https://www.checklistbank.org/dataset/${e}/publisher/${n.id}`,target:"_blank",rel:"noopener noreferrer",dangerouslySetInnerHTML:{__html:t}})," "]}):j.jsxs(j.Fragment,{children:[" ",!!(null==n?void 0:n.merged)&&j.jsx(OR,{style:{marginLeft:"0px"}})," ",j.jsx(ER,{to:"source",args:n.key,children:n.alias||n.title}),!!(null==n?void 0:n.taxonomicScope)&&j.jsx("br",{})]}),!!(null==n?void 0:n.taxonomicScope)&&(null==n?void 0:n.taxonomicScope)]}),width:"30%",sorter:(e,t)=>e.alias&&t.alias?e.alias.localeCompare(t.alias):0},{title:"Datasets",dataIndex:["metrics","datasetCount"],key:"datasets",render:(e,t)=>zI(t,"metrics.datasetCount",1).toLocaleString("en-GB")},{title:j.jsx(Jy,{placement:"topLeft",title:"Count of all accepted families including extinct species",getPopupContainer:()=>document.getElementById("familyCount"),children:j.jsx("span",{id:"familyCount",children:"Families"})}),dataIndex:["metrics","taxaByRankCount","family"],key:"species",render:(e,t)=>j.jsx(ER,{to:"search",args:{..._G(t),rank:"family",status:["accepted","provisionally accepted"]},children:WG(t,"family").toLocaleString("en-GB")}),sorter:(e,t)=>WG(e,"family")-WG(t,"family")},{title:j.jsx(Jy,{placement:"topLeft",title:"Count of all accepted genera including extinct species",getPopupContainer:()=>document.getElementById("genusCount"),children:j.jsx("span",{id:"genusCount",children:"Genera"})}),dataIndex:["metrics","taxaByRankCount","genus"],key:"species",render:(e,t)=>j.jsx(ER,{to:"search",args:{..._G(t),rank:"genus",status:["accepted","provisionally accepted"]},children:WG(t,"genus").toLocaleString("en-GB")}),sorter:(e,t)=>WG(e,"genus")-WG(t,"genus")},{title:j.jsx(Jy,{placement:"topLeft",title:"Count of all accepted species including extinct species",getPopupContainer:()=>document.getElementById("speciesCount"),children:j.jsx("span",{id:"speciesCount",children:"Species"})}),dataIndex:["metrics","taxaByRankCount","species"],key:"species",render:(e,t)=>j.jsx(ER,{to:"search",args:{..._G(t),rank:"species",status:["accepted","provisionally accepted"]},children:WG(t).toLocaleString("en-GB")}),sorter:(e,t)=>WG(e)-WG(t)}].filter(e=>!!n||"datasets"!==e.key);class VG extends m.Component{constructor(e){super(e),o(this,"componentDidMount",()=>{this.getData(),this.getRank()}),o(this,"getData",()=>{this.setState({loading:!0});const{datasetKey:e}=this.props;Promise.all([fR(`${gR.dataApi}dataset/${e}/source?splitMerge=true`),fR(`${gR.dataApi}dataset/${e}/sector/publisher?limit=1000`)]).then(([t,n])=>{let r={};const o=t.data||[],i=zI(n,"data.result",[]);return i.length>0&&this.setState({hasPublishers:!0}),Promise.all([...i.map(t=>this.getPublisherMetrics(e,t.id).then(e=>({...t,metrics:e}))),...o.map(t=>this.getMetrics(e,t).then(e=>(r=oR(r,e),{...t,metrics:e})))])}).then(e=>{this.setState({loading:!1,data:e.filter(e=>{var t;return!(null==e?void 0:e.id)||!!(null==e?void 0:e.id)&&(null==(t=null==e?void 0:e.metrics)?void 0:t.sectorCount)>0}).sort((e,t)=>e.id&&!t.id?e:t.id&&!e.id?t:e.alias&&t.alias?0===e.alias.localeCompare(t.alias)?!0===e.merged?1:-1:e.alias.localeCompare(t.alias):0),err:null})}).catch(e=>{this.setState({loading:!1,error:e,data:[]})})}),o(this,"getMetrics",(e,t)=>fR(`${gR.dataApi}dataset/${e}/source/${null==t?void 0:t.key}/metrics?merged=${null==t?void 0:t.merged}`).then(e=>e.data)),o(this,"getPublisherMetrics",(e,t)=>fR(`${gR.dataApi}dataset/${e}/sector/publisher/${t}/metrics`).then(e=>e.data)),o(this,"getRank",()=>{fR(`${gR.dataApi}vocab/rank`).then(e=>this.setState({rank:e.data.map(e=>e.name)}))}),dR(this.props.auth),this.state={data:[],rank:null,hasPublishers:!1,loading:!1,showMerged:!0}}render(){const{data:e,loading:t,rank:n,hasPublishers:r,error:o}=this.state,{datasetKey:i}=this.props;return j.jsxs("div",{className:"catalogue-of-life",style:{background:"#fff",padding:24,minHeight:280,margin:"16px 0"},children:[j.jsx(Lw,{children:o&&j.jsx(pl,{style:{marginBottom:"10px"},message:j.jsx(LR,{error:o}),type:"error"})}),j.jsxs(Lw,{children:[j.jsxs(Aw,{span:12,style:{marginBottom:"8px"},children:["Include ",j.jsx(OR,{})," ",j.jsx(Nw,{checked:this.state.showMerged,onChange:({target:{checked:e}})=>this.setState({showMerged:e})})]}),j.jsx(Aw,{span:12,style:{textAlign:"right",marginBottom:"8px"},children:`Source datasets: ${e.reduce((e,t)=>{var n,r,o;return this.state.showMerged||!(null==t?void 0:t.merged)&&!(null==t?void 0:t.id)?(null==(n=null==t?void 0:t.metrics)?void 0:n.publisherKey)?(null==(r=null==t?void 0:t.metrics)?void 0:r.publisherKey)?e+(null==(o=null==t?void 0:t.metrics)?void 0:o.datasetCount):void 0:e+1:e},0).toLocaleString("en-GB")}`})]}),!o&&j.jsx(cP,{size:"small",columns:KG(i,this.props.auth,r),dataSource:e.filter(e=>{var t,n,r;return!(!this.state.showMerged&&((null==e?void 0:e.merged)||(null==e?void 0:e.id)))&&(!(null==(t=null==e?void 0:e.metrics)?void 0:t.publisherKey)||!(0===(null==(n=null==e?void 0:e.metrics)?void 0:n.datasetCount)||0===(null==(r=null==e?void 0:e.metrics)?void 0:r.usagesCount)))}),loading:t,rowKey:e=>`${e.key||e.id}-${e.merged}`,showSorterTooltip:!1,pagination:!1,expandedRowRender:e=>j.jsxs("div",{style:{marginLeft:"40px"},children:[j.jsxs(Lw,{children:[j.jsx(Aw,{flex:"auto",style:{paddingLeft:"8px"},children:j.jsx("h3",{children:null==e?void 0:e.title})}),j.jsx(Aw,{children:j.jsx(HK,{auth:this.props.auth,datasetKey:i,sourceDatasetKey:e.key,style:{maxHeight:"64px"},size:"MEDIUM"})})]}),j.jsx(mV,{metrics:e.metrics,dataset:e,rank:n}),j.jsxs("div",{style:{marginTop:"12px"},children:[(null==e?void 0:e.version)&&j.jsx(w_,{md:8,label:"Dataset version",children:e.version}),(null==e?void 0:e.taxonomicScope)&&j.jsx(w_,{md:8,label:"Taxonomic scope",children:e.taxonomicScope})]}),e.citation&&j.jsx("div",{style:{marginTop:"12px"},children:j.jsx(w_,{md:24,label:"Citation",children:j.jsx("div",{dangerouslySetInnerHTML:{__html:e.citation}})})})]})})]})}}const GG=NP(_(function({datasetKey:e,auth:t,...n}){return j.jsx(CR.Provider,{value:SR(n),children:j.jsx(VG,{datasetKey:e,auth:t})})})),qG=NP(function(e){const t=e.displayName||e.name||"BibTex",n=n=>{const{catalogueKey:r,datasetKey:o,sourceDatasetKey:i,...a}=n;return void 0!==r?(H(t,"the `catalogueKey` prop is deprecated; pass the catalogue as `datasetKey` and the source as `sourceDatasetKey`."),j.jsx(e,{...a,datasetKey:r,sourceDatasetKey:void 0!==i?i:o})):j.jsx(e,{...a,datasetKey:o,sourceDatasetKey:i})};return n.displayName=`withBibTexLegacyShim(${t})`,n}(bV)),XG=NP(({taxonId:e,datasetKey:t,level:n=1,showLevelSwitch:r=!1,darkMode:o,auth:i,...a})=>{dR(i);const[l,s]=f.useState(null),[c,u]=f.useState(null),[d,h]=f.useState([]);f.useEffect(()=>{e&&t&&m(),t&&(g(),p())},[e,t]);const p=()=>fR(`${gR.dataApi}vocab/rank`).then(e=>h(e.data.map(e=>e.name))),m=()=>fR(`${gR.dataApi}dataset/${t}/taxon/${e}`).then(e=>s(e.data)),g=()=>fR(`${gR.dataApi}dataset/${t}`).then(e=>u(e.data));return j.jsx(CR.Provider,{value:SR(a),children:l&&c&&d.length>0?j.jsx(iV,{taxon:l,datasetKey:t,rank:d,dataset:c,level:n,showLevelSwitch:r,darkMode:o}):j.jsx(Lw,{justify:"center",style:{padding:"24px"},children:j.jsx(Aw,{children:j.jsx(mS,{size:"large"})})})})}),UG=NP(({taxonId:e,datasetKey:t,gbifChecklistKey:n,style:r,auth:o,...i})=>{dR(o);const[a,l]=f.useState(null),[s,c]=f.useState(null),[u,d]=f.useState([]);return f.useEffect(()=>{let n=!1;if(l(null),c(null),e&&t)return fR(`${gR.dataApi}vocab/rank`).then(e=>{n||d(e.data.map(e=>e.name))}),fR(`${gR.dataApi}dataset/${t}/taxon/${encodeURIComponent(e)}`).then(e=>{n||l(e.data)}),fR(`${gR.dataApi}dataset/${t}/taxon/${encodeURIComponent(e)}/info`).then(e=>{var t;n||c((null==(t=null==e?void 0:e.data)?void 0:t.distributions)||[])}),()=>{n=!0}},[e,t]),j.jsx(CR.Provider,{value:SR(i),children:a&&null!==s&&0!==u.length?j.jsx(yW,{data:s,datasetKey:t,focalTaxon:a,rankOrder:u,gbifChecklistKey:n,showDistributionMap:!0,style:r}):j.jsx(Lw,{justify:"center",style:{padding:"24px"},children:j.jsx(Aw,{children:j.jsx(mS,{size:"large"})})})})}),YG=e=>"hash"===e,ZG=e=>{if(YG(e)){const e="undefined"!=typeof window&&window.location.hash||"",t=e.startsWith("#")?e.slice(1):e,n=t.indexOf("?");return{path:n>=0?t.slice(0,n):t,search:n>=0?t.slice(n):""}}return{path:"undefined"!=typeof window&&window.location.pathname||"",search:"undefined"!=typeof window&&window.location.search||""}},QG=(e,t,n)=>{const r=n&&Object.keys(n).length>0?`?${BL.stringify(n,{arrayFormat:"none"})}`:"";if(YG(e)){const e=`${t}${r}`;window.location.hash=e}else{const e=`${t}${r}`;window.history.pushState(null,"",e),window.dispatchEvent(new PopStateEvent("popstate"))}},JG=(e,t,n,r={})=>{if(!t)return null;const o=null==n||"object"==typeof n?"":String(n),i="object"==typeof n&&n?{...n,...r}:{...r},a=`${t}${o}${Object.keys(i).length>0?`?${BL.stringify(i,{arrayFormat:"none"})}`:""}`;return YG(e)?`#${a}`:a},eq=(e,t,n,r,o={})=>{if(!n)return;if("reload"===t){const t=JG(e,n,r,o);return void(null!=t&&"undefined"!=typeof window&&window.location.assign(t))}let i=n,a=Object.keys(o).length>0?{...o}:null;"string"==typeof r||"number"==typeof r?i=`${n}${r}`:r&&"object"==typeof r&&(a={...a||{},...r}),QG(e,i,a)},tq=(e,t)=>{if(t){if(!e.startsWith(t)){const n=e.indexOf(t);if(n<0)return;return e.slice(n+t.length).split("/").filter(Boolean).pop()}return e.slice(t.length).split("/").filter(Boolean).pop()}};return{...Object.freeze(Object.defineProperty({__proto__:null,BibTex:qG,Search:JL,SourceDataset:HG,SourceDatasetList:GG,Taxon:dV,TaxonBreakdown:XG,TaxonDistribution:UG,Tree:ZR,withRouting:function(e,t){const{kind:n,mode:r="path",navigation:o="spa",paths:i={},query:a=""}=t,l=a?BL.parse(a):{},s=Object.keys(l),c=e=>{if(0===s.length)return e;const t={...e};for(const e of s)delete t[e];return t},u=t=>{const[a,s]=f.useState(0);f.useEffect(()=>((e,t)=>{const n=YG(e)?"hashchange":"popstate";return window.addEventListener(n,t),()=>window.removeEventListener(n,t)})(r,()=>s(e=>e+1)),[]);const{path:u,search:d}=ZG(r),h=f.useMemo(()=>((e,t,n,r={})=>({hrefForTaxon:t=>JG(e,n.taxon,t,r),hrefForTree:t=>JG(e,n.tree,t,r),hrefForSearch:t=>JG(e,n.search,t,r),hrefForSource:t=>JG(e,n.source,t,r),onNavigateToTaxon:o=>eq(e,t,n.taxon,o,r),onNavigateToTree:o=>eq(e,t,n.tree,o,r),onNavigateToSearch:o=>eq(e,t,n.search,o,r),onNavigateToSource:o=>eq(e,t,n.source,o,r)}))(r,o,i,l),[]);let p={};if("taxon"===n)p.taxonKey=tq(u,i.taxon);else if("source"===n)p.sourceDatasetKey=tq(u,i.source);else if("taxonBreakdown"===n)p.taxonId=tq(u,i.taxonBreakdown);else if("taxonDistribution"===n)p.taxonId=tq(u,i.taxonDistribution);else if("bibtex"===n)p.sourceDatasetKey=tq(u,i.bibtex);else if("tree"===n){const e=c(BL.parse(d));p.expandedTaxonKey=e.taxonKey||void 0,p.onExpandedTaxonKeyChange=f.useCallback(e=>{const t=ZG(r),n=BL.parse(t.search);e?n.taxonKey=e:delete n.taxonKey,QG(r,t.path||i.tree||"/",n)},[])}else if("search"===n){const e=c(BL.parse(d,{arrayFormat:"none"}));p.filters=e,p.onFiltersChange=f.useCallback(e=>{const t=ZG(r);QG(r,t.path||i.search||"/",{...l,...e})},[])}return j.jsx(e,{...h,...p,...t})};return u.displayName=`withRouting(${e.displayName||e.name||"Component"})`,u}},Symbol.toStringTag,{value:"Module"})),React:g,ReactDOM:R}});
|
|
23
|
+
function CW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kW(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return CW(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?CW(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const SW=Object.entries,EW=Object.setPrototypeOf,$W=Object.isFrozen,TW=Object.getPrototypeOf,MW=Object.getOwnPropertyDescriptor;let PW=Object.freeze,NW=Object.seal,IW=Object.create,OW="undefined"!=typeof Reflect&&Reflect,AW=OW.apply,RW=OW.construct;PW||(PW=function(e){return e}),NW||(NW=function(e){return e}),AW||(AW=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),RW||(RW=function(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 new e(...n)});const LW=nK(Array.prototype.forEach),BW=nK(Array.prototype.lastIndexOf),zW=nK(Array.prototype.pop),DW=nK(Array.prototype.push),jW=nK(Array.prototype.splice),FW=Array.isArray,HW=nK(String.prototype.toLowerCase),_W=nK(String.prototype.toString),WW=nK(String.prototype.match),KW=nK(String.prototype.replace),VW=nK(String.prototype.indexOf),GW=nK(String.prototype.trim),qW=nK(Number.prototype.toString),XW=nK(Boolean.prototype.toString),UW="undefined"==typeof BigInt?null:nK(BigInt.prototype.toString),YW="undefined"==typeof Symbol?null:nK(Symbol.prototype.toString),ZW=nK(Object.prototype.hasOwnProperty),QW=nK(Object.prototype.toString),JW=nK(RegExp.prototype.test),eK=(tK=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return RW(tK,t)});var tK;function nK(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return AW(e,t,r)}}function rK(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:HW;if(EW&&EW(e,null),!FW(t))return e;let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&($W(t)||(t[r]=e),o=e)}e[o]=!0}return e}function oK(e){for(let t=0;t<e.length;t++){ZW(e,t)||(e[t]=null)}return e}function iK(e){const t=IW(null);for(const r of SW(e)){var n=kW(r,2);const o=n[0],i=n[1];ZW(e,o)&&(FW(i)?t[o]=oK(i):i&&"object"==typeof i&&i.constructor===Object?t[o]=iK(i):t[o]=i)}return t}function aK(e,t){for(;null!==e;){const n=MW(e,t);if(n){if(n.get)return nK(n.get);if("function"==typeof n.value)return nK(n.value)}e=TW(e)}return function(){return null}}const lK=PW(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),sK=PW(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),cK=PW(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),uK=PW(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),dK=PW(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),hK=PW(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),pK=PW(["#text"]),fK=PW(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),mK=PW(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),gK=PW(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),yK=PW(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),vK=NW(/{{[\w\W]*|^[\w\W]*}}/g),bK=NW(/<%[\w\W]*|^[\w\W]*%>/g),xK=NW(/\${[\w\W]*/g),wK=NW(/^data-[\-\w.\u00B7-\uFFFF]+$/),CK=NW(/^aria-[\-\w]+$/),kK=NW(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),SK=NW(/^(?:\w+script|data):/i),EK=NW(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$K=NW(/^html$/i),TK=NW(/^[a-z][.\w]*(-[.\w]+)+$/i),MK=1,PK=3,NK=7,IK=8,OK=9,AK=11;var RK=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const n=t=>e(t);if(n.version="3.4.6",n.removed=[],!t||!t.document||t.document.nodeType!==OK||!t.Element)return n.isSupported=!1,n;let r=t.document;const o=r,i=o.currentScript;t.DocumentFragment;const a=t.HTMLTemplateElement,l=t.Node,s=t.Element,c=t.NodeFilter,u=t.NamedNodeMap;void 0===u&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const d=t.DOMParser,h=t.trustedTypes,p=s.prototype,f=aK(p,"cloneNode"),m=aK(p,"remove"),g=aK(p,"nextSibling"),y=aK(p,"childNodes"),v=aK(p,"parentNode"),b=aK(p,"shadowRoot"),x=aK(p,"attributes"),w=l&&l.prototype?aK(l.prototype,"nodeType"):null,C=l&&l.prototype?aK(l.prototype,"nodeName"):null;if("function"==typeof a){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let k,S="";const E=r,$=E.implementation,T=E.createNodeIterator,M=E.createDocumentFragment,P=E.getElementsByTagName,N=o.importNode;let I={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof SW&&"function"==typeof v&&$&&void 0!==$.createHTMLDocument;const O=vK,A=bK,R=xK,L=wK,B=CK,z=SK,D=EK,j=TK;let F=kK,H=null;const _=rK({},[...lK,...sK,...cK,...dK,...pK]);let W=null;const K=rK({},[...fK,...mK,...gK,...yK]);let V=Object.seal(IW(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),G=null,q=null;const X=Object.seal(IW(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let U=!0,Y=!0,Z=!1,Q=!0,J=!1,ee=!0,te=!1,ne=!1,re=!1,oe=!1,ie=!1,ae=!1,le=!0,se=!1;const ce="user-content-";let ue=!0,de=!1,he={},pe=null;const fe=rK({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let me=null;const ge=rK({},["audio","video","img","source","image","track"]);let ye=null;const ve=rK({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),be="http://www.w3.org/1998/Math/MathML",xe="http://www.w3.org/2000/svg",we="http://www.w3.org/1999/xhtml";let Ce=we,ke=!1,Se=null;const Ee=rK({},[be,xe,we],_W);let $e=rK({},["mi","mo","mn","ms","mtext"]),Te=rK({},["annotation-xml"]);const Me=rK({},["title","style","font","a","script"]);let Pe=null;const Ne=["application/xhtml+xml","text/html"];let Ie=null,Oe=null;const Ae=r.createElement("form"),Re=function(e){return e instanceof RegExp||e instanceof Function},Le=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Oe&&Oe===e)return;e&&"object"==typeof e||(e={}),e=iK(e),Pe=-1===Ne.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ie="application/xhtml+xml"===Pe?_W:HW,H=ZW(e,"ALLOWED_TAGS")&&FW(e.ALLOWED_TAGS)?rK({},e.ALLOWED_TAGS,Ie):_,W=ZW(e,"ALLOWED_ATTR")&&FW(e.ALLOWED_ATTR)?rK({},e.ALLOWED_ATTR,Ie):K,Se=ZW(e,"ALLOWED_NAMESPACES")&&FW(e.ALLOWED_NAMESPACES)?rK({},e.ALLOWED_NAMESPACES,_W):Ee,ye=ZW(e,"ADD_URI_SAFE_ATTR")&&FW(e.ADD_URI_SAFE_ATTR)?rK(iK(ve),e.ADD_URI_SAFE_ATTR,Ie):ve,me=ZW(e,"ADD_DATA_URI_TAGS")&&FW(e.ADD_DATA_URI_TAGS)?rK(iK(ge),e.ADD_DATA_URI_TAGS,Ie):ge,pe=ZW(e,"FORBID_CONTENTS")&&FW(e.FORBID_CONTENTS)?rK({},e.FORBID_CONTENTS,Ie):fe,G=ZW(e,"FORBID_TAGS")&&FW(e.FORBID_TAGS)?rK({},e.FORBID_TAGS,Ie):iK({}),q=ZW(e,"FORBID_ATTR")&&FW(e.FORBID_ATTR)?rK({},e.FORBID_ATTR,Ie):iK({}),he=!!ZW(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?iK(e.USE_PROFILES):e.USE_PROFILES),U=!1!==e.ALLOW_ARIA_ATTR,Y=!1!==e.ALLOW_DATA_ATTR,Z=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Q=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,J=e.SAFE_FOR_TEMPLATES||!1,ee=!1!==e.SAFE_FOR_XML,te=e.WHOLE_DOCUMENT||!1,oe=e.RETURN_DOM||!1,ie=e.RETURN_DOM_FRAGMENT||!1,ae=e.RETURN_TRUSTED_TYPE||!1,re=e.FORCE_BODY||!1,le=!1!==e.SANITIZE_DOM,se=e.SANITIZE_NAMED_PROPS||!1,ue=!1!==e.KEEP_CONTENT,de=e.IN_PLACE||!1,F=function(e){try{return JW(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:kK,Ce="string"==typeof e.NAMESPACE?e.NAMESPACE:we,$e=ZW(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?iK(e.MATHML_TEXT_INTEGRATION_POINTS):rK({},["mi","mo","mn","ms","mtext"]),Te=ZW(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?iK(e.HTML_INTEGRATION_POINTS):rK({},["annotation-xml"]);const t=ZW(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?iK(e.CUSTOM_ELEMENT_HANDLING):IW(null);if(V=IW(null),ZW(t,"tagNameCheck")&&Re(t.tagNameCheck)&&(V.tagNameCheck=t.tagNameCheck),ZW(t,"attributeNameCheck")&&Re(t.attributeNameCheck)&&(V.attributeNameCheck=t.attributeNameCheck),ZW(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(V.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),J&&(Y=!1),ie&&(oe=!0),he&&(H=rK({},pK),W=IW(null),!0===he.html&&(rK(H,lK),rK(W,fK)),!0===he.svg&&(rK(H,sK),rK(W,mK),rK(W,yK)),!0===he.svgFilters&&(rK(H,cK),rK(W,mK),rK(W,yK)),!0===he.mathMl&&(rK(H,dK),rK(W,gK),rK(W,yK))),X.tagCheck=null,X.attributeCheck=null,ZW(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?X.tagCheck=e.ADD_TAGS:FW(e.ADD_TAGS)&&(H===_&&(H=iK(H)),rK(H,e.ADD_TAGS,Ie))),ZW(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?X.attributeCheck=e.ADD_ATTR:FW(e.ADD_ATTR)&&(W===K&&(W=iK(W)),rK(W,e.ADD_ATTR,Ie))),ZW(e,"ADD_URI_SAFE_ATTR")&&FW(e.ADD_URI_SAFE_ATTR)&&rK(ye,e.ADD_URI_SAFE_ATTR,Ie),ZW(e,"FORBID_CONTENTS")&&FW(e.FORBID_CONTENTS)&&(pe===fe&&(pe=iK(pe)),rK(pe,e.FORBID_CONTENTS,Ie)),ZW(e,"ADD_FORBID_CONTENTS")&&FW(e.ADD_FORBID_CONTENTS)&&(pe===fe&&(pe=iK(pe)),rK(pe,e.ADD_FORBID_CONTENTS,Ie)),ue&&(H["#text"]=!0),te&&rK(H,["html","head","body"]),H.table&&(rK(H,["tbody"]),delete G.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw eK('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw eK('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=e.TRUSTED_TYPES_POLICY,S=k.createHTML("")}else void 0===k&&(k=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(h,i)),null!==k&&"string"==typeof S&&(S=k.createHTML(""));PW&&PW(e),Oe=e},Be=rK({},[...sK,...cK,...uK]),ze=rK({},[...dK,...hK]),De=function(e){DW(n.removed,{element:e});try{v(e).removeChild(e)}catch(t){m(e)}},je=function(e,t){try{DW(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){DW(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(oe||ie)try{De(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Fe=function(e){let t=null,n=null;if(re)e="<remove></remove>"+e;else{const t=WW(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Pe&&Ce===we&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=k?k.createHTML(e):e;if(Ce===we)try{t=(new d).parseFromString(o,Pe)}catch(e){}if(!t||!t.documentElement){t=$.createDocument(Ce,"template",null);try{t.documentElement.innerHTML=ke?S:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),Ce===we?P.call(t,te?"html":"body")[0]:te?t.documentElement:i},He=function(e){return T.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},_e=function(e){e.normalize();const t=T.call(e.ownerDocument||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let n=t.nextNode();for(;n;){let e=n.data;LW([O,A,R],t=>{e=KW(e,t," ")}),n.data=e,n=t.nextNode()}},We=function(e){const t=C?C(e):null;return"string"==typeof t&&("form"===Ie(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==x(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.childNodes!==y(e)))},Ke=function(e){if(!w||"object"!=typeof e||null===e)return!1;try{return w(e)===AK}catch(e){return!1}},Ve=function(e){if(!w||"object"!=typeof e||null===e)return!1;try{return"number"==typeof w(e)}catch(e){return!1}};function Ge(e,t,r){LW(e,e=>{e.call(n,t,r,Oe)})}const qe=function(e){let t=null;if(Ge(I.beforeSanitizeElements,e,null),We(e))return De(e),!0;const r=Ie(e.nodeName);if(Ge(I.uponSanitizeElement,e,{tagName:r,allowedTags:H}),ee&&e.hasChildNodes()&&!Ve(e.firstElementChild)&&JW(/<[/\w!]/g,e.innerHTML)&&JW(/<[/\w!]/g,e.textContent))return De(e),!0;if(ee&&e.namespaceURI===we&&"style"===r&&Ve(e.firstElementChild))return De(e),!0;if(e.nodeType===NK)return De(e),!0;if(ee&&e.nodeType===IK&&JW(/<[/\w]/g,e.data))return De(e),!0;if(G[r]||!(X.tagCheck instanceof Function&&X.tagCheck(r))&&!H[r]){if(!G[r]&&Ye(r)){if(V.tagNameCheck instanceof RegExp&&JW(V.tagNameCheck,r))return!1;if(V.tagNameCheck instanceof Function&&V.tagNameCheck(r))return!1}if(ue&&!pe[r]){const t=v(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const o=f(n[r],!0);t.insertBefore(o,g(e))}}}return De(e),!0}return((w?w(e):e.nodeType)!==MK||function(e){let t=v(e);t&&t.tagName||(t={namespaceURI:Ce,tagName:"template"});const n=HW(e.tagName),r=HW(t.tagName);return!!Se[e.namespaceURI]&&(e.namespaceURI===xe?t.namespaceURI===we?"svg"===n:t.namespaceURI===be?"svg"===n&&("annotation-xml"===r||$e[r]):Boolean(Be[n]):e.namespaceURI===be?t.namespaceURI===we?"math"===n:t.namespaceURI===xe?"math"===n&&Te[r]:Boolean(ze[n]):e.namespaceURI===we?!(t.namespaceURI===xe&&!Te[r])&&!(t.namespaceURI===be&&!$e[r])&&!ze[n]&&(Me[n]||!Be[n]):!("application/xhtml+xml"!==Pe||!Se[e.namespaceURI]))}(e))&&("noscript"!==r&&"noembed"!==r&&"noframes"!==r||!JW(/<\/no(script|embed|frames)/i,e.innerHTML))?(J&&e.nodeType===PK&&(t=e.textContent,LW([O,A,R],e=>{t=KW(t,e," ")}),e.textContent!==t&&(DW(n.removed,{element:e.cloneNode()}),e.textContent=t)),Ge(I.afterSanitizeElements,e,null),!1):(De(e),!0)},Xe=function(e,t,n){if(q[t])return!1;if(le&&("id"===t||"name"===t)&&(n in r||n in Ae))return!1;const o=W[t]||X.attributeCheck instanceof Function&&X.attributeCheck(t,e);if(Y&&!q[t]&&JW(L,t));else if(U&&JW(B,t));else if(!o||q[t]){if(!(Ye(e)&&(V.tagNameCheck instanceof RegExp&&JW(V.tagNameCheck,e)||V.tagNameCheck instanceof Function&&V.tagNameCheck(e))&&(V.attributeNameCheck instanceof RegExp&&JW(V.attributeNameCheck,t)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(t,e))||"is"===t&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&JW(V.tagNameCheck,n)||V.tagNameCheck instanceof Function&&V.tagNameCheck(n))))return!1}else if(ye[t]);else if(JW(F,KW(n,D,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==VW(n,"data:")||!me[e]){if(Z&&!JW(z,KW(n,D,"")));else if(n)return!1}else;return!0},Ue=rK({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ye=function(e){return!Ue[HW(e)]&&JW(j,e)},Ze=function(e){Ge(I.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||We(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0};let o=t.length;for(;o--;){const i=t[o],a=i.name,l=i.namespaceURI,s=i.value,c=Ie(a),u=s;let d="value"===a?u:GW(u);if(r.attrName=c,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,Ge(I.uponSanitizeAttribute,e,r),d=r.attrValue,!se||"id"!==c&&"name"!==c||0===VW(d,ce)||(je(a,e),d=ce+d),ee&&JW(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){je(a,e);continue}if("attributename"===c&&WW(d,"href")){je(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){je(a,e);continue}if(!Q&&JW(/\/>/i,d)){je(a,e);continue}J&&LW([O,A,R],e=>{d=KW(d,e," ")});const p=Ie(e.nodeName);if(Xe(p,c,d)){if(k&&"object"==typeof h&&"function"==typeof h.getAttributeType)if(l);else switch(h.getAttributeType(p,c)){case"TrustedHTML":d=k.createHTML(d);break;case"TrustedScriptURL":d=k.createScriptURL(d)}if(d!==u)try{l?e.setAttributeNS(l,a,d):e.setAttribute(a,d),We(e)?De(e):zW(n.removed)}catch(t){je(a,e)}}else je(a,e)}Ge(I.afterSanitizeAttributes,e,null)},Qe=function(e){let t=null;const n=He(e);for(Ge(I.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)Ge(I.uponSanitizeShadowNode,t,null),qe(t),Ze(t),Ke(t.content)&&Qe(t.content);Ge(I.afterSanitizeShadowDOM,e,null)},Je=function(e){if((w?w(e):e.nodeType)===MK){const t=b?b(e):e.shadowRoot;Ke(t)&&(Je(t),Qe(t))}const t=y?y(e):e.childNodes;if(!t)return;const n=[];LW(t,e=>{DW(n,e)});for(const e of n)Je(e)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,a=null,l=null;if(ke=!e,ke&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Ve(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return qW(e);case"boolean":return XW(e);case"bigint":return UW?UW(e):"0";case"symbol":return YW?YW(e):"Symbol()";case"undefined":default:return QW(e);case"function":case"object":{if(null===e)return QW(e);const t=e,n=aK(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:QW(e)}return QW(e)}}}(e)))throw eK("dirty is not a string, aborting");if(!n.isSupported)return e;if(ne||Le(t),n.removed=[],"string"==typeof e&&(de=!1),de){const t=C?C(e):e.nodeName;if("string"==typeof t){const e=Ie(t);if(!H[e]||G[e])throw eK("root node is forbidden and cannot be sanitized in-place")}if(We(e))throw eK("root node is clobbered and cannot be sanitized in-place");Je(e)}else if(Ve(e))r=Fe("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),i.nodeType===MK&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i),Je(i);else{if(!oe&&!J&&!te&&-1===e.indexOf("<"))return k&&ae?k.createHTML(e):e;if(r=Fe(e),!r)return oe?null:ae?S:""}r&&re&&De(r.firstChild);const s=He(de?e:r);for(;a=s.nextNode();)qe(a),Ze(a),Ke(a.content)&&Qe(a.content);if(de)return J&&_e(e),e;if(oe){if(J&&_e(r),ie)for(l=M.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(W.shadowroot||W.shadowrootmode)&&(l=N.call(o,l,!0)),l}let c=te?r.outerHTML:r.innerHTML;return te&&H["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&JW($K,r.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+c),J&&LW([O,A,R],e=>{c=KW(c,e," ")}),k&&ae?k.createHTML(c):c},n.setConfig=function(){Le(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),ne=!0},n.clearConfig=function(){Oe=null,ne=!1},n.isValidAttribute=function(e,t,n){Oe||Le({});const r=Ie(e),o=Ie(t);return Xe(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&DW(I[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=BW(I[e],t);return-1===n?void 0:jW(I[e],n,1)[0]}return zW(I[e])},n.removeHooks=function(e){I[e]=[]},n.removeAllHooks=function(){I={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const LK=({data:e,referenceIndexMap:t,style:n,primarySourceDatasetKey:r})=>(f.useEffect(()=>{},[t]),j.jsx("div",{style:n,className:"col-reference-link-container",children:YA(e).map(e=>{var n,o;return j.jsxs(Lw,{children:[j.jsx(Aw,{style:{paddingRight:"5px"},children:zI(t,e.id)&&j.jsx("span",{children:`[${zI(t,e.id)}]`})}),j.jsxs(Aw,{span:20,children:[(null==(n=null==e?void 0:e.sourceDataset)?void 0:n.key)!==r&&j.jsx(OR,{createdBy:null==e?void 0:e.createdBy,datasetKey:e.datasetKey,verbatimSourceKey:null==e?void 0:e.verbatimSourceKey,sourceDatasetKey:null==(o=null==e?void 0:e.sourceDataset)?void 0:o.key}),j.jsx("span",{id:`col-reference-${e.id}`,dangerouslySetInnerHTML:{__html:i_(RK.sanitize(e.citation))}})]})]},e.id)})}));var BK,zK,DK={exports:{}};const jK=l((BK||(BK=1,DK.exports=(zK={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},function(e,t,n){var r=t.prototype,o=r.format;n.en.formats=zK,r.format=function(e){void 0===e&&(e="YYYY-MM-DDTHH:mm:ssZ");var t,n=this.$locale().formats,r=(t=void 0===n?{}:n,e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(e,n,r){var o=r&&r.toUpperCase();return n||t[r]||zK[r]||t[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})}));return o.call(this,r)}})),DK.exports)),FK=({data:e,style:t,rank:n,taxon:r})=>{const o=n.reduce((e,t)=>(e[t.value]=t.plural,e),{});return j.jsxs("div",{style:t,children:[" ",e.filter(e=>e.value!==r.name.rank).sort((e,t)=>n.indexOf(e.value)-n.indexOf(t.value)).map(e=>j.jsx(w_,{md:6,label:cR(o[e.value]||e.value),classes:{formItem:{borderBottom:"none"}},children:j.jsx(ER,{to:"search",args:{TAXON_ID:r.id,rank:e.value,status:["accepted","provisionally accepted"]},children:e.count})},e.value))]})};class HK extends m.Component{constructor(e){super(e),this.state={error:!0,loading:!0}}render(){const{fallBack:e=null,datasetKey:t,sourceDatasetKey:n,style:r,size:o="MEDIUM"}=this.props,{error:i,loading:a}=this.state;return a||!i?j.jsx("img",{style:r,src:`${gR.dataApi}dataset/${t}/logo/source/${n}?size=${o}`,onLoad:()=>this.setState({error:!1,loading:!1}),onError:()=>this.setState({error:!0,loading:!1})}):e}}const _K=()=>j.jsx(m.Fragment,{children:j.jsx("div",{style:{minHeight:"calc(100vh - 100px)",display:"flex",justifyContent:"center",alignItems:"center"},className:"catalogue-of-life",children:j.jsxs("div",{style:{backgroundImage:"url(\"data:image/svg+xml,%3Csvg width='423px' height='341px' viewBox='0 0 423 341' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Ctitle%3EGroup 4%3C/title%3E%3Cg id='Ant-Design-Pro-3.0' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='404' transform='translate(-484.000000, -221.000000)'%3E%3Cg id='Group-4' transform='translate(464.000000, 222.000000)'%3E%3Cg id='Group-5' transform='translate(75.417348, 0.163879)' stroke='%23A3B1BF' stroke-width='1.62' opacity='0.6' stroke-linejoin='round' stroke-dasharray='12.15'%3E%3Cpath d='M169.575185,288.890375 C103.647066,288.890375 50.2010204,235.455806 50.2010204,169.540425 C50.2010204,103.625045 103.647066,50.1904762 169.575185,50.1904762 C235.50394,50.1904762 288.94935,103.625045 288.94935,169.540425 C288.94935,235.455806 235.50394,288.890375 169.575185,288.890375 Z' id='Stroke-1'%3E%3C/path%3E%3Cpath d='M169.405699,338.555288 C76.0274364,338.555288 0.329411882,262.872619 0.329411882,169.513299 C0.329411882,76.1539786 76.0274364,0.471309613 169.405699,0.471309613 C262.783961,0.471309613 338.481985,76.1539786 338.481985,169.513299 C338.481985,262.872619 262.783961,338.555288 169.405699,338.555288 Z' id='Stroke-3'%3E%3C/path%3E%3C/g%3E%3Cpolygon id='Fill-6' fill='%23F5F5F5' transform='translate(106.914750, 199.432805) rotate(22.000000) translate(-106.914750, -199.432805) ' points='97.7112298 198.803016 116.11827 190.231152 107.544667 208.634458'%3E%3C/polygon%3E%3Cpolygon id='Stroke-7' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(106.914750, 199.432805) rotate(22.000000) translate(-106.914750, -199.432805) ' points='97.7112298 198.803016 116.11827 190.231152 107.544667 208.634458'%3E%3C/polygon%3E%3Cpolygon id='Fill-8' transform='translate(58.996118, 219.767028) rotate(22.000000) translate(-58.996118, -219.767028) ' points='38.8543444 215.183828 54.4119879 199.629341 79.1378915 224.350228 63.580248 239.904716'%3E%3C/polygon%3E%3Cpolygon id='Stroke-9' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(58.996118, 219.767028) rotate(22.000000) translate(-58.996118, -219.767028) ' points='38.8543444 215.183828 54.4119879 199.629341 79.1378915 224.350228 63.580248 239.904716'%3E%3C/polygon%3E%3Cpolygon id='Fill-10' fill='%23F5F5F5' transform='translate(71.226096, 214.577614) rotate(22.000000) translate(-71.226096, -214.577614) ' points='51.4642422 198.657893 55.3028278 194.820086 90.9879502 230.497335 87.1487294 234.335141'%3E%3C/polygon%3E%3Cpolygon id='Stroke-11' stroke='%23A3B1BF' stroke-width='1.62' fill='%23F0F2F5' stroke-linejoin='round' transform='translate(71.226096, 214.577614) rotate(22.000000) translate(-71.226096, -214.577614) ' points='51.4642422 198.657893 55.3028278 194.820086 90.9879502 230.497335 87.1487294 234.335141'%3E%3C/polygon%3E%3Cpolygon id='Fill-12' transform='translate(84.698338, 273.903349) rotate(22.000000) translate(-84.698338, -273.903349) ' points='56.0769883 259.690379 70.4821667 245.288122 113.319688 288.116319 98.9145099 302.518575'%3E%3C/polygon%3E%3Cpolygon id='Stroke-13' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(84.698338, 273.903349) rotate(22.000000) translate(-84.698338, -273.903349) ' points='56.0769883 259.690379 70.4821667 245.288122 113.319688 288.116319 98.9145099 302.518575'%3E%3C/polygon%3E%3Cpolygon id='Fill-14' transform='translate(75.456149, 212.782520) rotate(22.000000) translate(-75.456149, -212.782520) ' points='63.8911557 203.879723 66.5512281 201.22019 87.0211429 221.685318 84.3604352 224.34485'%3E%3C/polygon%3E%3Cpolygon id='Stroke-15' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(75.456149, 212.782520) rotate(22.000000) translate(-75.456149, -212.782520) ' points='63.8911557 203.879723 66.5512281 201.22019 87.0211429 221.685318 84.3604352 224.34485'%3E%3C/polygon%3E%3Cpolygon id='Fill-16' fill='%23F5F5F5' transform='translate(78.176142, 202.618192) rotate(22.000000) translate(-78.176142, -202.618192) ' points='74.4026766 205.006817 80.5652518 198.845492 81.9496076 200.229567 75.7870324 206.390892'%3E%3C/polygon%3E%3Cpolygon id='Stroke-17' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(78.176142, 202.618192) rotate(22.000000) translate(-78.176142, -202.618192) ' points='74.4026766 205.006817 80.5652518 198.845492 81.9496076 200.229567 75.7870324 206.390892'%3E%3C/polygon%3E%3Cpolygon id='Fill-18' fill='%23F5F5F5' transform='translate(84.676979, 217.928886) rotate(22.000000) translate(-84.676979, -217.928886) ' points='80.9035138 220.317511 87.066089 214.156186 88.4504448 215.540261 82.2878696 221.701586'%3E%3C/polygon%3E%3Cpolygon id='Stroke-19' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(84.676979, 217.928886) rotate(22.000000) translate(-84.676979, -217.928886) ' points='80.9035138 220.317511 87.066089 214.156186 88.4504448 215.540261 82.2878696 221.701586'%3E%3C/polygon%3E%3Cpolygon id='Fill-20' transform='translate(70.238421, 242.404581) rotate(22.000000) translate(-70.238421, -242.404581) ' points='67.8493111 238.631881 74.0118863 244.793206 72.6275305 246.177281 66.4649553 240.015956'%3E%3C/polygon%3E%3Cpolygon id='Stroke-21' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(70.238421, 242.404581) rotate(22.000000) translate(-70.238421, -242.404581) ' points='67.8493111 238.631881 74.0118863 244.793206 72.6275305 246.177281 66.4649553 240.015956'%3E%3C/polygon%3E%3Cpolygon id='Fill-22' transform='translate(48.081755, 224.398789) rotate(22.000000) translate(-48.081755, -224.398789) ' points='35.1127107 220.725179 36.3242602 211.432376 61.0507992 236.153899 51.756111 237.365203'%3E%3C/polygon%3E%3Cpolygon id='Stroke-23' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(48.081755, 224.398789) rotate(22.000000) translate(-48.081755, -224.398789) ' points='35.1127107 220.725179 36.3242602 211.432376 61.0507992 236.153899 51.756111 237.365203'%3E%3C/polygon%3E%3Cpolygon id='Fill-24' transform='translate(38.612968, 228.416820) rotate(22.000000) translate(-38.612968, -228.416820) ' points='32.9179858 217.470622 26.2496982 216.056058 50.9762371 240.777581 49.5613861 234.110647'%3E%3C/polygon%3E%3Cpolygon id='Stroke-25' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(38.612968, 228.416820) rotate(22.000000) translate(-38.612968, -228.416820) ' points='32.9179858 217.470622 26.2496982 216.056058 50.9762371 240.777581 49.5613861 234.110647'%3E%3C/polygon%3E%3Cpolygon id='Fill-26' transform='translate(31.086342, 221.523909) rotate(22.000000) translate(-31.086342, -221.523909) ' points='32.6469986 217.297684 26.8592604 218.37941 34.2314793 225.750133 35.3134242 219.963569'%3E%3C/polygon%3E%3Cpolygon id='Stroke-27' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(31.086342, 221.523909) rotate(22.000000) translate(-31.086342, -221.523909) ' points='32.6469986 217.297684 26.8592604 218.37941 34.2314793 225.750133 35.3134242 219.963569'%3E%3C/polygon%3E%3Cpolygon id='Fill-28' transform='translate(38.344372, 238.617819) rotate(22.000000) translate(-38.344372, -238.617819) ' points='39.9050284 234.391595 34.1172902 235.47332 41.4895091 242.844044 42.571454 237.05748'%3E%3C/polygon%3E%3Cpolygon id='Stroke-29' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(38.344372, 238.617819) rotate(22.000000) translate(-38.344372, -238.617819) ' points='39.9050284 234.391595 34.1172902 235.47332 41.4895091 242.844044 42.571454 237.05748'%3E%3C/polygon%3E%3Cpolygon id='Fill-30' fill='%23F0F2F5' transform='translate(75.352798, 203.766862) rotate(22.000000) translate(-75.352798, -203.766862) ' points='71.4417859 201.708217 73.2937351 199.856644 79.2638092 205.824871 77.4118601 207.67708'%3E%3C/polygon%3E%3Cpolygon id='Stroke-31' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(75.352798, 203.766862) rotate(22.000000) translate(-75.352798, -203.766862) ' points='71.4417859 201.708217 73.2937351 199.856644 79.2638092 205.824871 77.4118601 207.67708'%3E%3C/polygon%3E%3Cpolygon id='Fill-32' fill='%23F0F2F5' transform='translate(81.871541, 219.119730) rotate(22.000000) translate(-81.871541, -219.119730) ' points='77.9605297 217.061085 79.8124789 215.209512 85.7825531 221.177739 83.9306039 223.029948'%3E%3C/polygon%3E%3Cpolygon id='Stroke-33' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(81.871541, 219.119730) rotate(22.000000) translate(-81.871541, -219.119730) ' points='77.9605297 217.061085 79.8124789 215.209512 85.7825531 221.177739 83.9306039 223.029948'%3E%3C/polygon%3E%3Cpolygon id='Fill-34' transform='translate(68.034935, 237.215417) rotate(22.000000) translate(-68.034935, -237.215417) ' points='65.1594898 237.106164 67.9256601 234.340555 70.9103796 237.324669 68.1442092 240.090278'%3E%3C/polygon%3E%3Cpolygon id='Stroke-35' stroke='%23A3B1BF' stroke-width='1.62' fill='%23F5F5F5' stroke-linejoin='round' transform='translate(68.034935, 237.215417) rotate(22.000000) translate(-68.034935, -237.215417) ' points='65.1594898 237.106164 67.9256601 234.340555 70.9103796 237.324669 68.1442092 240.090278'%3E%3C/polygon%3E%3Cpath d='M90.2556147,213.065319 C79.2271463,202.039088 74.6433339,188.153875 78.4889079,179.512775 C79.1248602,178.084237 80.8319571,175.429786 84.5339495,179.131027 C88.2353065,182.832268 120.560237,215.150007 123.931865,218.52095 C127.303492,221.891894 125.245065,224.192545 123.817508,224.827733 C115.174655,228.675068 101.284718,224.092186 90.2556147,213.065319 Z' id='Fill-36' fill='%23F5F5F5' transform='translate(101.453924, 201.708917) rotate(22.000000) translate(-101.453924, -201.708917) '%3E%3C/path%3E%3Cpath d='M90.2556147,213.065319 C79.2271463,202.039088 74.6433339,188.153875 78.4889079,179.512775 C79.1248602,178.084237 80.8319571,175.429786 84.5339495,179.131027 C88.2353065,182.832268 120.560237,215.150007 123.931865,218.52095 C127.303492,221.891894 125.245065,224.192545 123.817508,224.827733 C115.174655,228.675068 101.284718,224.092186 90.2556147,213.065319 Z' id='Stroke-38' stroke='%23A3B1BF' stroke-width='1.62' fill='%23F0F2F5' stroke-linejoin='round' transform='translate(101.453924, 201.708917) rotate(22.000000) translate(-101.453924, -201.708917) '%3E%3C/path%3E%3Cpolygon id='Fill-40' fill='%23F0F2F5' transform='translate(86.633853, 208.038961) rotate(22.000000) translate(-86.633853, -208.038961) ' points='77.9716233 201.230061 79.8235724 199.378488 95.2960835 214.84786 93.4441343 216.699433'%3E%3C/polygon%3E%3Cpolygon id='Stroke-42' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(86.633853, 208.038961) rotate(22.000000) translate(-86.633853, -208.038961) ' points='77.9716233 201.230061 79.8235724 199.378488 95.2960835 214.84786 93.4441343 216.699433'%3E%3C/polygon%3E%3Cpath d='M121.635514,196.068815 C120.517356,197.186746 118.704797,197.186746 117.586639,196.068815 C116.469116,194.950884 116.469116,193.138692 117.586639,192.020761 C118.704797,190.903465 120.517356,190.903465 121.635514,192.020761 C122.753672,193.138692 122.753672,194.950884 121.635514,196.068815' id='Fill-44' fill='%23A3B1BF' transform='translate(119.611315, 194.045026) rotate(22.000000) translate(-119.611315, -194.045026) '%3E%3C/path%3E%3Cpolygon id='Fill-46' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(81.250567, 248.056422) rotate(22.000000) translate(-81.250567, -248.056422) ' points='81.2505672 249.672341 79.6343206 248.056422 81.2505672 246.440503 82.8668137 248.056422'%3E%3C/polygon%3E%3Cpolygon id='Stroke-48' transform='translate(81.250567, 248.056422) rotate(22.000000) translate(-81.250567, -248.056422) ' points='81.2505672 249.672341 79.6343206 248.056422 81.2505672 246.440503 82.8668137 248.056422'%3E%3C/polygon%3E%3Cpolygon id='Fill-50' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(82.702196, 251.475282) rotate(22.000000) translate(-82.702196, -251.475282) ' points='82.7021965 253.091201 81.0859499 251.475282 82.7021965 249.859363 84.318443 251.475282'%3E%3C/polygon%3E%3Cpolygon id='Stroke-52' transform='translate(82.702196, 251.475282) rotate(22.000000) translate(-82.702196, -251.475282) ' points='82.7021965 253.091201 81.0859499 251.475282 82.7021965 249.859363 84.318443 251.475282'%3E%3C/polygon%3E%3Cpolygon id='Fill-54' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(84.153791, 254.894059) rotate(22.000000) translate(-84.153791, -254.894059) ' points='84.1537906 256.509978 82.5375441 254.894059 84.1537906 253.278141 85.7700372 254.894059'%3E%3C/polygon%3E%3Cpolygon id='Stroke-56' transform='translate(84.153791, 254.894059) rotate(22.000000) translate(-84.153791, -254.894059) ' points='84.1537906 256.509978 82.5375441 254.894059 84.1537906 253.278141 85.7700372 254.894059'%3E%3C/polygon%3E%3Cpolygon id='Fill-58' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(85.605385, 258.312837) rotate(22.000000) translate(-85.605385, -258.312837) ' points='85.6053848 259.928756 83.9891383 258.312837 85.6053848 256.696918 87.2216313 258.312837'%3E%3C/polygon%3E%3Cpolygon id='Stroke-60' transform='translate(85.605385, 258.312837) rotate(22.000000) translate(-85.605385, -258.312837) ' points='85.6053848 259.928756 83.9891383 258.312837 85.6053848 256.696918 87.2216313 258.312837'%3E%3C/polygon%3E%3Cpolygon id='Fill-62' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(78.094482, 249.395723) rotate(22.000000) translate(-78.094482, -249.395723) ' points='78.0944819 251.011642 76.4782353 249.395723 78.0944819 247.779804 79.7107284 249.395723'%3E%3C/polygon%3E%3Cpolygon id='Stroke-64' transform='translate(78.094482, 249.395723) rotate(22.000000) translate(-78.094482, -249.395723) ' points='78.0944819 251.011642 76.4782353 249.395723 78.0944819 247.779804 79.7107284 249.395723'%3E%3C/polygon%3E%3Cpolygon id='Fill-66' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(79.546052, 252.814559) rotate(22.000000) translate(-79.546052, -252.814559) ' points='79.5460522 254.430478 77.9298057 252.814559 79.5460522 251.198641 81.1622988 252.814559'%3E%3C/polygon%3E%3Cpolygon id='Stroke-68' transform='translate(79.546052, 252.814559) rotate(22.000000) translate(-79.546052, -252.814559) ' points='79.5460522 254.430478 77.9298057 252.814559 79.5460522 251.198641 81.1622988 252.814559'%3E%3C/polygon%3E%3Cpolygon id='Fill-70' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(80.997705, 256.233360) rotate(22.000000) translate(-80.997705, -256.233360) ' points='80.9977053 257.849279 79.3814588 256.23336 80.9977053 254.617442 82.6139518 256.23336'%3E%3C/polygon%3E%3Cpolygon id='Stroke-72' transform='translate(80.997705, 256.233360) rotate(22.000000) translate(-80.997705, -256.233360) ' points='79.3814588 256.23336 80.9977053 254.617442 82.6139518 256.23336 80.9977053 257.849279'%3E%3C/polygon%3E%3Cpolygon id='Fill-74' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(82.449276, 259.652197) rotate(22.000000) translate(-82.449276, -259.652197) ' points='82.4492757 261.268115 80.8330292 259.652197 82.4492757 258.036278 84.0655222 259.652197'%3E%3C/polygon%3E%3Cpolygon id='Stroke-76' transform='translate(82.449276, 259.652197) rotate(22.000000) translate(-82.449276, -259.652197) ' points='82.4492757 261.268115 80.8330292 259.652197 82.4492757 258.036278 84.0655222 259.652197'%3E%3C/polygon%3E%3Cpolygon id='Fill-78' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(74.938373, 250.735083) rotate(22.000000) translate(-74.938373, -250.735083) ' points='74.9383727 252.351002 73.3221262 250.735083 74.9383727 249.119164 76.5546193 250.735083'%3E%3C/polygon%3E%3Cpolygon id='Stroke-80' transform='translate(74.938373, 250.735083) rotate(22.000000) translate(-74.938373, -250.735083) ' points='74.9383727 252.351002 73.3221262 250.735083 74.9383727 249.119164 76.5546193 250.735083'%3E%3C/polygon%3E%3Cpolygon id='Fill-82' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(76.389967, 254.153860) rotate(22.000000) translate(-76.389967, -254.153860) ' points='76.3899669 255.769779 74.7737204 254.15386 76.3899669 252.537942 78.0062134 254.15386'%3E%3C/polygon%3E%3Cpolygon id='Stroke-84' transform='translate(76.389967, 254.153860) rotate(22.000000) translate(-76.389967, -254.153860) ' points='76.3899669 255.769779 74.7737204 254.15386 76.3899669 252.537942 78.0062134 254.15386'%3E%3C/polygon%3E%3Cpolygon id='Fill-86' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(77.841620, 257.572661) rotate(22.000000) translate(-77.841620, -257.572661) ' points='77.84162 259.18858 76.2253735 257.572661 77.84162 255.956743 79.4578665 257.572661'%3E%3C/polygon%3E%3Cpolygon id='Stroke-88' transform='translate(77.841620, 257.572661) rotate(22.000000) translate(-77.841620, -257.572661) ' points='77.84162 259.18858 76.2253735 257.572661 77.84162 255.956743 79.4578665 257.572661'%3E%3C/polygon%3E%3Cpolygon id='Fill-90' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(79.293190, 260.991498) rotate(22.000000) translate(-79.293190, -260.991498) ' points='79.2931904 262.607416 77.6769438 260.991498 79.2931904 259.375579 80.9094369 260.991498'%3E%3C/polygon%3E%3Cpolygon id='Stroke-92' transform='translate(79.293190, 260.991498) rotate(22.000000) translate(-79.293190, -260.991498) ' points='79.2931904 262.607416 77.6769438 260.991498 79.2931904 259.375579 80.9094369 260.991498'%3E%3C/polygon%3E%3Cpolygon id='Fill-94' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(71.782287, 252.074384) rotate(22.000000) translate(-71.782287, -252.074384) ' points='71.7822874 253.690302 70.1660409 252.074384 71.7822874 250.458465 73.3985339 252.074384'%3E%3C/polygon%3E%3Cpolygon id='Stroke-96' transform='translate(71.782287, 252.074384) rotate(22.000000) translate(-71.782287, -252.074384) ' points='71.7822874 253.690302 70.1660409 252.074384 71.7822874 250.458465 73.3985339 252.074384'%3E%3C/polygon%3E%3Cpolygon id='Fill-98' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(73.233882, 255.493161) rotate(22.000000) translate(-73.233882, -255.493161) ' points='73.2338816 257.10908 71.6176351 255.493161 73.2338816 253.877242 74.8501281 255.493161'%3E%3C/polygon%3E%3Cpolygon id='Stroke-100' transform='translate(73.233882, 255.493161) rotate(22.000000) translate(-73.233882, -255.493161) ' points='73.2338816 257.10908 71.6176351 255.493161 73.2338816 253.877242 74.8501281 255.493161'%3E%3C/polygon%3E%3Cpolygon id='Fill-102' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(74.685535, 258.911962) rotate(22.000000) translate(-74.685535, -258.911962) ' points='74.6855347 260.527881 73.0692881 258.911962 74.6855347 257.296044 76.3017812 258.911962'%3E%3C/polygon%3E%3Cpolygon id='Stroke-104' transform='translate(74.685535, 258.911962) rotate(22.000000) translate(-74.685535, -258.911962) ' points='74.6855347 260.527881 73.0692881 258.911962 74.6855347 257.296044 76.3017812 258.911962'%3E%3C/polygon%3E%3Cpolygon id='Fill-106' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(76.137105, 262.330799) rotate(22.000000) translate(-76.137105, -262.330799) ' points='76.137105 263.946717 74.5208585 262.330799 76.137105 260.71488 77.7533516 262.330799'%3E%3C/polygon%3E%3Cpolygon id='Stroke-108' transform='translate(76.137105, 262.330799) rotate(22.000000) translate(-76.137105, -262.330799) ' points='76.137105 263.946717 74.5208585 262.330799 76.137105 260.71488 77.7533516 262.330799'%3E%3C/polygon%3E%3Cpolygon id='Fill-110' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(68.626202, 253.413685) rotate(22.000000) translate(-68.626202, -253.413685) ' points='68.6262021 255.029603 67.0099556 253.413685 68.6262021 251.797766 70.2424486 253.413685'%3E%3C/polygon%3E%3Cpolygon id='Stroke-112' transform='translate(68.626202, 253.413685) rotate(22.000000) translate(-68.626202, -253.413685) ' points='68.6262021 255.029603 67.0099556 253.413685 68.6262021 251.797766 70.2424486 253.413685'%3E%3C/polygon%3E%3Cpolygon id='Fill-114' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(70.077796, 256.832462) rotate(22.000000) translate(-70.077796, -256.832462) ' points='70.0777963 258.448381 68.4615497 256.832462 70.0777963 255.216543 71.6940428 256.832462'%3E%3C/polygon%3E%3Cpolygon id='Stroke-116' transform='translate(70.077796, 256.832462) rotate(22.000000) translate(-70.077796, -256.832462) ' points='70.0777963 258.448381 68.4615497 256.832462 70.0777963 255.216543 71.6940428 256.832462'%3E%3C/polygon%3E%3Cpolygon id='Fill-118' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(71.529426, 260.251322) rotate(22.000000) translate(-71.529426, -260.251322) ' points='71.5294256 261.867241 69.913179 260.251322 71.5294256 258.635403 73.1456721 260.251322'%3E%3C/polygon%3E%3Cpolygon id='Stroke-120' transform='translate(71.529426, 260.251322) rotate(22.000000) translate(-71.529426, -260.251322) ' points='71.5294256 261.867241 69.913179 260.251322 71.5294256 258.635403 73.1456721 260.251322'%3E%3C/polygon%3E%3Cpolygon id='Fill-122' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(72.981020, 263.670099) rotate(22.000000) translate(-72.981020, -263.670099) ' points='72.9810197 265.286018 71.3647732 263.670099 72.9810197 262.054181 74.5972663 263.670099'%3E%3C/polygon%3E%3Cpolygon id='Stroke-124' transform='translate(72.981020, 263.670099) rotate(22.000000) translate(-72.981020, -263.670099) ' points='72.9810197 265.286018 71.3647732 263.670099 72.9810197 262.054181 74.5972663 263.670099'%3E%3C/polygon%3E%3Cpolygon id='Fill-126' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(88.852907, 265.961362) rotate(22.000000) translate(-88.852907, -265.961362) ' points='88.8529067 267.577281 87.2366602 265.961362 88.8529067 264.345443 90.4691533 265.961362'%3E%3C/polygon%3E%3Cpolygon id='Stroke-128' transform='translate(88.852907, 265.961362) rotate(22.000000) translate(-88.852907, -265.961362) ' points='88.8529067 267.577281 87.2366602 265.961362 88.8529067 264.345443 90.4691533 265.961362'%3E%3C/polygon%3E%3Cpolygon id='Fill-130' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(90.304501, 269.380139) rotate(22.000000) translate(-90.304501, -269.380139) ' points='90.3045009 270.996058 88.6882544 269.380139 90.3045009 267.764221 91.9207474 269.380139'%3E%3C/polygon%3E%3Cpolygon id='Stroke-132' transform='translate(90.304501, 269.380139) rotate(22.000000) translate(-90.304501, -269.380139) ' points='90.3045009 270.996058 88.6882544 269.380139 90.3045009 267.764221 91.9207474 269.380139'%3E%3C/polygon%3E%3Cpolygon id='Fill-134' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(91.756130, 272.798999) rotate(22.000000) translate(-91.756130, -272.798999) ' points='91.7561302 274.414918 90.1398837 272.798999 91.7561302 271.183081 93.3723767 272.798999'%3E%3C/polygon%3E%3Cpolygon id='Stroke-136' transform='translate(91.756130, 272.798999) rotate(22.000000) translate(-91.756130, -272.798999) ' points='91.7561302 274.414918 90.1398837 272.798999 91.7561302 271.183081 93.3723767 272.798999'%3E%3C/polygon%3E%3Cpolygon id='Fill-138' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(93.207724, 276.217777) rotate(22.000000) translate(-93.207724, -276.217777) ' points='93.2077244 277.833695 91.5914778 276.217777 93.2077244 274.601858 94.8239709 276.217777'%3E%3C/polygon%3E%3Cpolygon id='Stroke-140' transform='translate(93.207724, 276.217777) rotate(22.000000) translate(-93.207724, -276.217777) ' points='93.2077244 277.833695 91.5914778 276.217777 93.2077244 274.601858 94.8239709 276.217777'%3E%3C/polygon%3E%3Cpolygon id='Fill-142' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(85.696821, 267.300663) rotate(22.000000) translate(-85.696821, -267.300663) ' points='85.6968214 268.916582 84.0805749 267.300663 85.6968214 265.684744 87.313068 267.300663'%3E%3C/polygon%3E%3Cpolygon id='Stroke-144' transform='translate(85.696821, 267.300663) rotate(22.000000) translate(-85.696821, -267.300663) ' points='85.6968214 268.916582 84.0805749 267.300663 85.6968214 265.684744 87.313068 267.300663'%3E%3C/polygon%3E%3Cpolygon id='Fill-146' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(87.148416, 270.719440) rotate(22.000000) translate(-87.148416, -270.719440) ' points='87.1484156 272.335359 85.5321691 270.71944 87.1484156 269.103521 88.7646621 270.71944'%3E%3C/polygon%3E%3Cpolygon id='Stroke-148' transform='translate(87.148416, 270.719440) rotate(22.000000) translate(-87.148416, -270.719440) ' points='87.1484156 272.335359 85.5321691 270.71944 87.1484156 269.103521 88.7646621 270.71944'%3E%3C/polygon%3E%3Cpolygon id='Fill-150' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(88.599986, 274.138276) rotate(22.000000) translate(-88.599986, -274.138276) ' points='88.599986 275.754195 86.9837394 274.138276 88.599986 272.522358 90.2162325 274.138276'%3E%3C/polygon%3E%3Cpolygon id='Stroke-152' transform='translate(88.599986, 274.138276) rotate(22.000000) translate(-88.599986, -274.138276) ' points='88.599986 275.754195 86.9837394 274.138276 88.599986 272.522358 90.2162325 274.138276'%3E%3C/polygon%3E%3Cpolygon id='Fill-154' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(90.051639, 277.557078) rotate(22.000000) translate(-90.051639, -277.557078) ' points='90.0516391 279.172996 88.4353925 277.557078 90.0516391 275.941159 91.6678856 277.557078'%3E%3C/polygon%3E%3Cpolygon id='Stroke-156' transform='translate(90.051639, 277.557078) rotate(22.000000) translate(-90.051639, -277.557078) ' points='90.0516391 279.172996 88.4353925 277.557078 90.0516391 275.941159 91.6678856 277.557078'%3E%3C/polygon%3E%3Cpolygon id='Fill-158' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(82.540736, 268.639964) rotate(22.000000) translate(-82.540736, -268.639964) ' points='82.5407361 270.255882 80.9244896 268.639964 82.5407361 267.024045 84.1569826 268.639964'%3E%3C/polygon%3E%3Cpolygon id='Stroke-160' transform='translate(82.540736, 268.639964) rotate(22.000000) translate(-82.540736, -268.639964) ' points='82.5407361 270.255882 80.9244896 268.639964 82.5407361 267.024045 84.1569826 268.639964'%3E%3C/polygon%3E%3Cpolygon id='Fill-162' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(83.992306, 272.058800) rotate(22.000000) translate(-83.992306, -272.058800) ' points='83.9923065 273.674719 82.3760599 272.0588 83.9923065 270.442881 85.608553 272.0588'%3E%3C/polygon%3E%3Cpolygon id='Stroke-164' transform='translate(83.992306, 272.058800) rotate(22.000000) translate(-83.992306, -272.058800) ' points='83.9923065 273.674719 82.3760599 272.0588 83.9923065 270.442881 85.608553 272.0588'%3E%3C/polygon%3E%3Cpolygon id='Fill-166' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(85.443901, 275.477577) rotate(22.000000) translate(-85.443901, -275.477577) ' points='85.4439007 277.093496 83.8276541 275.477577 85.4439007 273.861659 87.0601472 275.477577'%3E%3C/polygon%3E%3Cpolygon id='Stroke-168' transform='translate(85.443901, 275.477577) rotate(22.000000) translate(-85.443901, -275.477577) ' points='85.4439007 277.093496 83.8276541 275.477577 85.4439007 273.861659 87.0601472 275.477577'%3E%3C/polygon%3E%3Cpolygon id='Fill-170' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(86.895554, 278.896378) rotate(22.000000) translate(-86.895554, -278.896378) ' points='86.8955537 280.512297 85.2793072 278.896378 86.8955537 277.28046 88.5118003 278.896378'%3E%3C/polygon%3E%3Cpolygon id='Stroke-172' transform='translate(86.895554, 278.896378) rotate(22.000000) translate(-86.895554, -278.896378) ' points='86.8955537 280.512297 85.2793072 278.896378 86.8955537 277.28046 88.5118003 278.896378'%3E%3C/polygon%3E%3Cpolygon id='Fill-174' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(79.384651, 269.979265) rotate(22.000000) translate(-79.384651, -269.979265) ' points='79.3846508 271.595183 77.7684043 269.979265 79.3846508 268.363346 81.0008973 269.979265'%3E%3C/polygon%3E%3Cpolygon id='Stroke-176' transform='translate(79.384651, 269.979265) rotate(22.000000) translate(-79.384651, -269.979265) ' points='79.3846508 271.595183 77.7684043 269.979265 79.3846508 268.363346 81.0008973 269.979265'%3E%3C/polygon%3E%3Cpolygon id='Fill-178' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(80.836221, 273.398101) rotate(22.000000) translate(-80.836221, -273.398101) ' points='80.8362212 275.01402 79.2199746 273.398101 80.8362212 271.782182 82.4524677 273.398101'%3E%3C/polygon%3E%3Cpolygon id='Stroke-180' transform='translate(80.836221, 273.398101) rotate(22.000000) translate(-80.836221, -273.398101) ' points='80.8362212 275.01402 79.2199746 273.398101 80.8362212 271.782182 82.4524677 273.398101'%3E%3C/polygon%3E%3Cpolygon id='Fill-182' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(82.287815, 276.816878) rotate(22.000000) translate(-82.287815, -276.816878) ' points='82.2878153 278.432797 80.6715688 276.816878 82.2878153 275.20096 83.9040619 276.816878'%3E%3C/polygon%3E%3Cpolygon id='Stroke-184' transform='translate(82.287815, 276.816878) rotate(22.000000) translate(-82.287815, -276.816878) ' points='82.2878153 278.432797 80.6715688 276.816878 82.2878153 275.20096 83.9040619 276.816878'%3E%3C/polygon%3E%3Cpolygon id='Fill-186' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(83.739445, 280.235738) rotate(22.000000) translate(-83.739445, -280.235738) ' points='83.7394446 281.851657 82.1231981 280.235738 83.7394446 278.61982 85.3556912 280.235738'%3E%3C/polygon%3E%3Cpolygon id='Stroke-188' transform='translate(83.739445, 280.235738) rotate(22.000000) translate(-83.739445, -280.235738) ' points='83.7394446 281.851657 82.1231981 280.235738 83.7394446 278.61982 85.3556912 280.235738'%3E%3C/polygon%3E%3Cpolygon id='Fill-190' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(76.228483, 271.318601) rotate(22.000000) translate(-76.228483, -271.318601) ' points='76.2284828 272.934519 74.6122362 271.318601 76.2284828 269.702682 77.8447293 271.318601'%3E%3C/polygon%3E%3Cpolygon id='Stroke-192' transform='translate(76.228483, 271.318601) rotate(22.000000) translate(-76.228483, -271.318601) ' points='76.2284828 272.934519 74.6122362 271.318601 76.2284828 269.702682 77.8447293 271.318601'%3E%3C/polygon%3E%3Cpolygon id='Fill-194' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(77.680136, 274.737402) rotate(22.000000) translate(-77.680136, -274.737402) ' points='77.6801358 276.353321 76.0638893 274.737402 77.6801358 273.121483 79.2963824 274.737402'%3E%3C/polygon%3E%3Cpolygon id='Stroke-196' transform='translate(77.680136, 274.737402) rotate(22.000000) translate(-77.680136, -274.737402) ' points='77.6801358 276.353321 76.0638893 274.737402 77.6801358 273.121483 79.2963824 274.737402'%3E%3C/polygon%3E%3Cpolygon id='Fill-198' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(79.131730, 278.156179) rotate(22.000000) translate(-79.131730, -278.156179) ' points='79.13173 279.772098 77.5154835 278.156179 79.13173 276.540261 80.7479765 278.156179'%3E%3C/polygon%3E%3Cpolygon id='Stroke-200' transform='translate(79.131730, 278.156179) rotate(22.000000) translate(-79.131730, -278.156179) ' points='79.13173 279.772098 77.5154835 278.156179 79.13173 276.540261 80.7479765 278.156179'%3E%3C/polygon%3E%3Cpolygon id='Fill-202' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(80.583359, 281.575039) rotate(22.000000) translate(-80.583359, -281.575039) ' points='80.5833593 283.190958 78.9671128 281.575039 80.5833593 279.959121 82.1996058 281.575039'%3E%3C/polygon%3E%3Cpolygon id='Stroke-204' transform='translate(80.583359, 281.575039) rotate(22.000000) translate(-80.583359, -281.575039) ' points='80.5833593 283.190958 78.9671128 281.575039 80.5833593 279.959121 82.1996058 281.575039'%3E%3C/polygon%3E%3Cpolygon id='Fill-206' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(96.455246, 283.866302) rotate(22.000000) translate(-96.455246, -283.866302) ' points='96.4552463 285.48222 94.8389998 283.866302 96.4552463 282.250383 98.0714929 283.866302'%3E%3C/polygon%3E%3Cpolygon id='Stroke-208' transform='translate(96.455246, 283.866302) rotate(22.000000) translate(-96.455246, -283.866302) ' points='96.4552463 285.48222 94.8389998 283.866302 96.4552463 282.250383 98.0714929 283.866302'%3E%3C/polygon%3E%3Cpolygon id='Fill-210' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(97.906840, 287.285079) rotate(22.000000) translate(-97.906840, -287.285079) ' points='97.9068405 288.900998 96.290594 287.285079 97.9068405 285.66916 99.523087 287.285079'%3E%3C/polygon%3E%3Cpolygon id='Stroke-212' transform='translate(97.906840, 287.285079) rotate(22.000000) translate(-97.906840, -287.285079) ' points='97.9068405 288.900998 96.290594 287.285079 97.9068405 285.66916 99.523087 287.285079'%3E%3C/polygon%3E%3Cpolygon id='Fill-214' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(99.358435, 290.703856) rotate(22.000000) translate(-99.358435, -290.703856) ' points='99.3584347 292.319775 97.7421881 290.703856 99.3584347 289.087938 100.974681 290.703856'%3E%3C/polygon%3E%3Cpolygon id='Stroke-216' transform='translate(99.358435, 290.703856) rotate(22.000000) translate(-99.358435, -290.703856) ' points='99.3584347 292.319775 97.7421881 290.703856 99.3584347 289.087938 100.974681 290.703856'%3E%3C/polygon%3E%3Cpolygon id='Fill-218' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(100.810064, 294.122716) rotate(22.000000) translate(-100.810064, -294.122716) ' points='100.810064 295.738635 99.1938174 294.122716 100.810064 292.506798 102.42631 294.122716'%3E%3C/polygon%3E%3Cpolygon id='Stroke-220' transform='translate(100.810064, 294.122716) rotate(22.000000) translate(-100.810064, -294.122716) ' points='100.810064 295.738635 99.1938174 294.122716 100.810064 292.506798 102.42631 294.122716'%3E%3C/polygon%3E%3Cpolygon id='Fill-222' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(93.299102, 285.205579) rotate(22.000000) translate(-93.299102, -285.205579) ' points='93.2991021 286.821497 91.6828556 285.205579 93.2991021 283.58966 94.9153486 285.205579'%3E%3C/polygon%3E%3Cpolygon id='Stroke-224' transform='translate(93.299102, 285.205579) rotate(22.000000) translate(-93.299102, -285.205579) ' points='93.2991021 286.821497 91.6828556 285.205579 93.2991021 283.58966 94.9153486 285.205579'%3E%3C/polygon%3E%3Cpolygon id='Fill-226' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(94.750755, 288.624380) rotate(22.000000) translate(-94.750755, -288.624380) ' points='94.7507552 290.240299 93.1345086 288.62438 94.7507552 287.008461 96.3670017 288.62438'%3E%3C/polygon%3E%3Cpolygon id='Stroke-228' transform='translate(94.750755, 288.624380) rotate(22.000000) translate(-94.750755, -288.624380) ' points='94.7507552 290.240299 93.1345086 288.62438 94.7507552 287.008461 96.3670017 288.62438'%3E%3C/polygon%3E%3Cpolygon id='Fill-230' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(96.202326, 292.043216) rotate(22.000000) translate(-96.202326, -292.043216) ' points='96.2023255 293.659135 94.586079 292.043216 96.2023255 290.427297 97.8185721 292.043216'%3E%3C/polygon%3E%3Cpolygon id='Stroke-232' transform='translate(96.202326, 292.043216) rotate(22.000000) translate(-96.202326, -292.043216) ' points='96.2023255 293.659135 94.586079 292.043216 96.2023255 290.427297 97.8185721 292.043216'%3E%3C/polygon%3E%3Cpolygon id='Fill-234' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(97.653979, 295.462017) rotate(22.000000) translate(-97.653979, -295.462017) ' points='97.6539786 297.077936 96.0377321 295.462017 97.6539786 293.846099 99.2702252 295.462017'%3E%3C/polygon%3E%3Cpolygon id='Stroke-236' transform='translate(97.653979, 295.462017) rotate(22.000000) translate(-97.653979, -295.462017) ' points='97.6539786 297.077936 96.0377321 295.462017 97.6539786 293.846099 99.2702252 295.462017'%3E%3C/polygon%3E%3Cpolygon id='Fill-238' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(90.143017, 286.544880) rotate(22.000000) translate(-90.143017, -286.544880) ' points='90.1430168 288.160798 88.5267702 286.54488 90.1430168 284.928961 91.7592633 286.54488'%3E%3C/polygon%3E%3Cpolygon id='Stroke-240' transform='translate(90.143017, 286.544880) rotate(22.000000) translate(-90.143017, -286.544880) ' points='90.1430168 288.160798 88.5267702 286.54488 90.1430168 284.928961 91.7592633 286.54488'%3E%3C/polygon%3E%3Cpolygon id='Fill-242' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(91.594670, 289.963681) rotate(22.000000) translate(-91.594670, -289.963681) ' points='91.5946698 291.5796 89.9784233 289.963681 91.5946698 288.347762 93.2109164 289.963681'%3E%3C/polygon%3E%3Cpolygon id='Stroke-244' transform='translate(91.594670, 289.963681) rotate(22.000000) translate(-91.594670, -289.963681) ' points='91.5946698 291.5796 89.9784233 289.963681 91.5946698 288.347762 93.2109164 289.963681'%3E%3C/polygon%3E%3Cpolygon id='Fill-246' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(93.046240, 293.382517) rotate(22.000000) translate(-93.046240, -293.382517) ' points='93.0462402 294.998436 91.4299937 293.382517 93.0462402 291.766598 94.6624868 293.382517'%3E%3C/polygon%3E%3Cpolygon id='Stroke-248' transform='translate(93.046240, 293.382517) rotate(22.000000) translate(-93.046240, -293.382517) ' points='93.0462402 294.998436 91.4299937 293.382517 93.0462402 291.766598 94.6624868 293.382517'%3E%3C/polygon%3E%3Cpolygon id='Fill-250' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(94.497893, 296.801318) rotate(22.000000) translate(-94.497893, -296.801318) ' points='94.4978933 298.417237 92.8816468 296.801318 94.4978933 295.1854 96.1141398 296.801318'%3E%3C/polygon%3E%3Cpolygon id='Stroke-252' transform='translate(94.497893, 296.801318) rotate(22.000000) translate(-94.497893, -296.801318) ' points='94.4978933 298.417237 92.8816468 296.801318 94.4978933 295.1854 96.1141398 296.801318'%3E%3C/polygon%3E%3Cpolygon id='Fill-254' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(86.986931, 287.884181) rotate(22.000000) translate(-86.986931, -287.884181) ' points='86.9869315 289.500099 85.3706849 287.884181 86.9869315 286.268262 88.603178 287.884181'%3E%3C/polygon%3E%3Cpolygon id='Stroke-256' transform='translate(86.986931, 287.884181) rotate(22.000000) translate(-86.986931, -287.884181) ' points='86.9869315 289.500099 85.3706849 287.884181 86.9869315 286.268262 88.603178 287.884181'%3E%3C/polygon%3E%3Cpolygon id='Fill-258' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(88.438585, 291.302982) rotate(22.000000) translate(-88.438585, -291.302982) ' points='88.4385845 292.9189 86.822338 291.302982 88.4385845 289.687063 90.0548311 291.302982'%3E%3C/polygon%3E%3Cpolygon id='Stroke-260' transform='translate(88.438585, 291.302982) rotate(22.000000) translate(-88.438585, -291.302982) ' points='88.4385845 292.9189 86.822338 291.302982 88.4385845 289.687063 90.0548311 291.302982'%3E%3C/polygon%3E%3Cpolygon id='Fill-262' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(89.890155, 294.721818) rotate(22.000000) translate(-89.890155, -294.721818) ' points='89.8901549 296.337737 88.2739084 294.721818 89.8901549 293.105899 91.5064014 294.721818'%3E%3C/polygon%3E%3Cpolygon id='Stroke-264' transform='translate(89.890155, 294.721818) rotate(22.000000) translate(-89.890155, -294.721818) ' points='89.8901549 296.337737 88.2739084 294.721818 89.8901549 293.105899 91.5064014 294.721818'%3E%3C/polygon%3E%3Cpolygon id='Fill-266' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(91.341749, 298.140595) rotate(22.000000) translate(-91.341749, -298.140595) ' points='91.3417491 299.756514 89.7255025 298.140595 91.3417491 296.524677 92.9579956 298.140595'%3E%3C/polygon%3E%3Cpolygon id='Stroke-268' transform='translate(91.341749, 298.140595) rotate(22.000000) translate(-91.341749, -298.140595) ' points='91.3417491 299.756514 89.7255025 298.140595 91.3417491 296.524677 92.9579956 298.140595'%3E%3C/polygon%3E%3Cpolygon id='Fill-270' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(83.830846, 289.223482) rotate(22.000000) translate(-83.830846, -289.223482) ' points='83.8308461 290.8394 82.2145996 289.223482 83.8308461 287.607563 85.4470927 289.223482'%3E%3C/polygon%3E%3Cpolygon id='Stroke-272' transform='translate(83.830846, 289.223482) rotate(22.000000) translate(-83.830846, -289.223482) ' points='82.2145996 289.223482 83.8308461 287.607563 85.4470927 289.223482 83.8308461 290.8394'%3E%3C/polygon%3E%3Cpolygon id='Fill-274' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(85.282417, 292.642318) rotate(22.000000) translate(-85.282417, -292.642318) ' points='85.2824165 294.258236 83.66617 292.642318 85.2824165 291.026399 86.898663 292.642318'%3E%3C/polygon%3E%3Cpolygon id='Stroke-276' transform='translate(85.282417, 292.642318) rotate(22.000000) translate(-85.282417, -292.642318) ' points='85.2824165 294.258236 83.66617 292.642318 85.2824165 291.026399 86.898663 292.642318'%3E%3C/polygon%3E%3Cpolygon id='Fill-278' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(86.734070, 296.061119) rotate(22.000000) translate(-86.734070, -296.061119) ' points='86.7340696 297.677038 85.1178231 296.061119 86.7340696 294.4452 88.3503161 296.061119'%3E%3C/polygon%3E%3Cpolygon id='Stroke-280' transform='translate(86.734070, 296.061119) rotate(22.000000) translate(-86.734070, -296.061119) ' points='86.7340696 297.677038 85.1178231 296.061119 86.7340696 294.4452 88.3503161 296.061119'%3E%3C/polygon%3E%3Cpolygon id='Fill-282' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(88.185664, 299.479896) rotate(22.000000) translate(-88.185664, -299.479896) ' points='88.1856638 301.095815 86.5694172 299.479896 88.1856638 297.863978 89.8019103 299.479896'%3E%3C/polygon%3E%3Cpolygon id='Stroke-284' transform='translate(88.185664, 299.479896) rotate(22.000000) translate(-88.185664, -299.479896) ' points='88.1856638 301.095815 86.5694172 299.479896 88.1856638 297.863978 89.8019103 299.479896'%3E%3C/polygon%3E%3Cpolygon id='Fill-286' transform='translate(37.779995, 163.402514) rotate(22.000000) translate(-37.779995, -163.402514) ' points='51.9961666 192.018058 66.401345 177.615802 23.5644587 134.78697 9.15864501 149.189862'%3E%3C/polygon%3E%3Cpolygon id='Fill-290' transform='translate(50.400318, 195.682118) rotate(22.000000) translate(-50.400318, -195.682118) ' points='54.1737837 198.070743 48.0112085 191.909418 46.6268527 193.293493 52.7894279 199.454818'%3E%3C/polygon%3E%3Cpolygon id='Stroke-292' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(50.400318, 195.682118) rotate(22.000000) translate(-50.400318, -195.682118) ' points='54.1737837 198.070743 48.0112085 191.909418 46.6268527 193.293493 52.7894279 199.454818'%3E%3C/polygon%3E%3Cpolygon id='Fill-294' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(52.603532, 200.871447) rotate(22.000000) translate(-52.603532, -200.871447) ' points='52.712807 203.746308 55.4789773 200.980699 52.4942579 197.996585 49.7280876 200.762195'%3E%3C/polygon%3E%3Cpolygon id='Stroke-296' stroke='%23A3B1BF' stroke-width='1.62' fill='%23FFFFFF' stroke-linejoin='round' transform='translate(52.603532, 200.871447) rotate(22.000000) translate(-52.603532, -200.871447) ' points='52.712807 203.746308 55.4789773 200.980699 52.4942579 197.996585 49.7280876 200.762195'%3E%3C/polygon%3E%3Cpolygon id='Fill-298' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(53.983257, 183.836778) rotate(22.000000) translate(-53.983257, -183.836778) ' points='52.3670108 183.836778 53.9832574 185.452697 55.5995039 183.836778 53.9832574 182.22086'%3E%3C/polygon%3E%3Cpolygon id='Stroke-300' transform='translate(53.983257, 183.836778) rotate(22.000000) translate(-53.983257, -183.836778) ' points='52.3670108 183.836778 53.9832574 185.452697 55.5995039 183.836778 53.9832574 182.22086'%3E%3C/polygon%3E%3Cpolygon id='Fill-302' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(52.531663, 180.418001) rotate(22.000000) translate(-52.531663, -180.418001) ' points='50.9154167 180.418001 52.5316632 182.03392 54.1479097 180.418001 52.5316632 178.802082'%3E%3C/polygon%3E%3Cpolygon id='Stroke-304' transform='translate(52.531663, 180.418001) rotate(22.000000) translate(-52.531663, -180.418001) ' points='50.9154167 180.418001 52.5316632 182.03392 54.1479097 180.418001 52.5316632 178.802082'%3E%3C/polygon%3E%3Cpolygon id='Fill-306' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(51.080034, 176.999141) rotate(22.000000) translate(-51.080034, -176.999141) ' points='49.4637874 176.999141 51.0800339 178.61506 52.6962805 176.999141 51.0800339 175.383222'%3E%3C/polygon%3E%3Cpolygon id='Stroke-308' transform='translate(51.080034, 176.999141) rotate(22.000000) translate(-51.080034, -176.999141) ' points='49.4637874 176.999141 51.0800339 178.61506 52.6962805 176.999141 51.0800339 175.383222'%3E%3C/polygon%3E%3Cpolygon id='Fill-310' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(49.628440, 173.580364) rotate(22.000000) translate(-49.628440, -173.580364) ' points='48.0121932 173.580364 49.6284397 175.196282 51.2446863 173.580364 49.6284397 171.964445'%3E%3C/polygon%3E%3Cpolygon id='Stroke-312' transform='translate(49.628440, 173.580364) rotate(22.000000) translate(-49.628440, -173.580364) ' points='48.0121932 173.580364 49.6284397 175.196282 51.2446863 173.580364 49.6284397 171.964445'%3E%3C/polygon%3E%3Cpolygon id='Fill-314' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(50.827172, 185.176079) rotate(22.000000) translate(-50.827172, -185.176079) ' points='49.2109255 185.176079 50.8271721 186.791998 52.4434186 185.176079 50.8271721 183.560161'%3E%3C/polygon%3E%3Cpolygon id='Stroke-316' transform='translate(50.827172, 185.176079) rotate(22.000000) translate(-50.827172, -185.176079) ' points='49.2109255 185.176079 50.8271721 186.791998 52.4434186 185.176079 50.8271721 183.560161'%3E%3C/polygon%3E%3Cpolygon id='Fill-318' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(49.375578, 181.757302) rotate(22.000000) translate(-49.375578, -181.757302) ' points='47.7593313 181.757302 49.3755779 183.373221 50.9918244 181.757302 49.3755779 180.141383'%3E%3C/polygon%3E%3Cpolygon id='Stroke-320' transform='translate(49.375578, 181.757302) rotate(22.000000) translate(-49.375578, -181.757302) ' points='47.7593313 181.757302 49.3755779 183.373221 50.9918244 181.757302 49.3755779 180.141383'%3E%3C/polygon%3E%3Cpolygon id='Fill-322' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(47.923949, 178.338442) rotate(22.000000) translate(-47.923949, -178.338442) ' points='46.3077021 178.338442 47.9239486 179.954361 49.5401951 178.338442 47.9239486 176.722523'%3E%3C/polygon%3E%3Cpolygon id='Stroke-324' transform='translate(47.923949, 178.338442) rotate(22.000000) translate(-47.923949, -178.338442) ' points='46.3077021 178.338442 47.9239486 179.954361 49.5401951 178.338442 47.9239486 176.722523'%3E%3C/polygon%3E%3Cpolygon id='Fill-326' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(46.472354, 174.919665) rotate(22.000000) translate(-46.472354, -174.919665) ' points='44.8561079 174.919665 46.4723544 176.535583 48.088601 174.919665 46.4723544 173.303746'%3E%3C/polygon%3E%3Cpolygon id='Stroke-328' transform='translate(46.472354, 174.919665) rotate(22.000000) translate(-46.472354, -174.919665) ' points='44.8561079 174.919665 46.4723544 176.535583 48.088601 174.919665 46.4723544 173.303746'%3E%3C/polygon%3E%3Cpolygon id='Fill-330' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(47.671087, 186.515380) rotate(22.000000) translate(-47.671087, -186.515380) ' points='46.0548402 186.51538 47.6710867 188.131299 49.2873333 186.51538 47.6710867 184.899461'%3E%3C/polygon%3E%3Cpolygon id='Stroke-332' transform='translate(47.671087, 186.515380) rotate(22.000000) translate(-47.671087, -186.515380) ' points='46.0548402 186.51538 47.6710867 188.131299 49.2873333 186.51538 47.6710867 184.899461'%3E%3C/polygon%3E%3Cpolygon id='Fill-334' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(46.219493, 183.096603) rotate(22.000000) translate(-46.219493, -183.096603) ' points='44.603246 183.096603 46.2194926 184.712521 47.8357391 183.096603 46.2194926 181.480684'%3E%3C/polygon%3E%3Cpolygon id='Stroke-336' transform='translate(46.219493, 183.096603) rotate(22.000000) translate(-46.219493, -183.096603) ' points='44.603246 183.096603 46.2194926 184.712521 47.8357391 183.096603 46.2194926 181.480684'%3E%3C/polygon%3E%3Cpolygon id='Fill-338' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(44.767839, 179.677802) rotate(22.000000) translate(-44.767839, -179.677802) ' points='43.1515929 179.677802 44.7678395 181.29372 46.384086 179.677802 44.7678395 178.061883'%3E%3C/polygon%3E%3Cpolygon id='Stroke-340' transform='translate(44.767839, 179.677802) rotate(22.000000) translate(-44.767839, -179.677802) ' points='43.1515929 179.677802 44.7678395 181.29372 46.384086 179.677802 44.7678395 178.061883'%3E%3C/polygon%3E%3Cpolygon id='Fill-342' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(43.316269, 176.258965) rotate(22.000000) translate(-43.316269, -176.258965) ' points='41.7000226 176.258965 43.3162691 177.874884 44.9325156 176.258965 43.3162691 174.643047'%3E%3C/polygon%3E%3Cpolygon id='Stroke-344' transform='translate(43.316269, 176.258965) rotate(22.000000) translate(-43.316269, -176.258965) ' points='41.7000226 176.258965 43.3162691 177.874884 44.9325156 176.258965 43.3162691 174.643047'%3E%3C/polygon%3E%3Cpolygon id='Fill-346' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(44.514978, 187.854740) rotate(22.000000) translate(-44.514978, -187.854740) ' points='42.8987311 187.85474 44.5149776 189.470659 46.1312242 187.85474 44.5149776 186.238821'%3E%3C/polygon%3E%3Cpolygon id='Stroke-348' transform='translate(44.514978, 187.854740) rotate(22.000000) translate(-44.514978, -187.854740) ' points='42.8987311 187.85474 44.5149776 189.470659 46.1312242 187.85474 44.5149776 186.238821'%3E%3C/polygon%3E%3Cpolygon id='Fill-350' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(43.063348, 184.435880) rotate(22.000000) translate(-43.063348, -184.435880) ' points='41.4471018 184.43588 43.0633483 186.051799 44.6795949 184.43588 43.0633483 182.819961'%3E%3C/polygon%3E%3Cpolygon id='Stroke-352' transform='translate(43.063348, 184.435880) rotate(22.000000) translate(-43.063348, -184.435880) ' points='41.4471018 184.43588 43.0633483 186.051799 44.6795949 184.43588 43.0633483 182.819961'%3E%3C/polygon%3E%3Cpolygon id='Fill-354' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(41.611754, 181.017103) rotate(22.000000) translate(-41.611754, -181.017103) ' points='39.9955076 181.017103 41.6117542 182.633021 43.2280007 181.017103 41.6117542 179.401184'%3E%3C/polygon%3E%3Cpolygon id='Stroke-356' transform='translate(41.611754, 181.017103) rotate(22.000000) translate(-41.611754, -181.017103) ' points='39.9955076 181.017103 41.6117542 182.633021 43.2280007 181.017103 41.6117542 179.401184'%3E%3C/polygon%3E%3Cpolygon id='Fill-358' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(40.160184, 177.598266) rotate(22.000000) translate(-40.160184, -177.598266) ' points='38.5439373 177.598266 40.1601838 179.214185 41.7764303 177.598266 40.1601838 175.982348'%3E%3C/polygon%3E%3Cpolygon id='Stroke-360' transform='translate(40.160184, 177.598266) rotate(22.000000) translate(-40.160184, -177.598266) ' points='38.5439373 177.598266 40.1601838 179.214185 41.7764303 177.598266 40.1601838 175.982348'%3E%3C/polygon%3E%3Cpolygon id='Fill-362' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(41.358892, 189.194041) rotate(22.000000) translate(-41.358892, -189.194041) ' points='39.7426458 189.194041 41.3588923 190.80996 42.9751388 189.194041 41.3588923 187.578122'%3E%3C/polygon%3E%3Cpolygon id='Stroke-364' transform='translate(41.358892, 189.194041) rotate(22.000000) translate(-41.358892, -189.194041) ' points='39.7426458 189.194041 41.3588923 190.80996 42.9751388 189.194041 41.3588923 187.578122'%3E%3C/polygon%3E%3Cpolygon id='Fill-366' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(39.907263, 185.775181) rotate(22.000000) translate(-39.907263, -185.775181) ' points='38.2910165 185.775181 39.907263 187.3911 41.5235095 185.775181 39.907263 184.159262'%3E%3C/polygon%3E%3Cpolygon id='Stroke-368' transform='translate(39.907263, 185.775181) rotate(22.000000) translate(-39.907263, -185.775181) ' points='38.2910165 185.775181 39.907263 187.3911 41.5235095 185.775181 39.907263 184.159262'%3E%3C/polygon%3E%3Cpolygon id='Fill-370' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(38.455669, 182.356404) rotate(22.000000) translate(-38.455669, -182.356404) ' points='36.8394223 182.356404 38.4556688 183.972322 40.0719154 182.356404 38.4556688 180.740485'%3E%3C/polygon%3E%3Cpolygon id='Stroke-372' transform='translate(38.455669, 182.356404) rotate(22.000000) translate(-38.455669, -182.356404) ' points='36.8394223 182.356404 38.4556688 183.972322 40.0719154 182.356404 38.4556688 180.740485'%3E%3C/polygon%3E%3Cpolygon id='Fill-374' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(37.004016, 178.937602) rotate(22.000000) translate(-37.004016, -178.937602) ' points='35.3877692 178.937602 37.0040158 180.553521 38.6202623 178.937602 37.0040158 177.321684'%3E%3C/polygon%3E%3Cpolygon id='Stroke-376' transform='translate(37.004016, 178.937602) rotate(22.000000) translate(-37.004016, -178.937602) ' points='35.3877692 178.937602 37.0040158 180.553521 38.6202623 178.937602 37.0040158 177.321684'%3E%3C/polygon%3E%3Cpolygon id='Fill-378' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(46.380894, 165.931897) rotate(22.000000) translate(-46.380894, -165.931897) ' points='44.7646475 165.931897 46.380894 167.547816 47.9971405 165.931897 46.380894 164.315979'%3E%3C/polygon%3E%3Cpolygon id='Stroke-380' transform='translate(46.380894, 165.931897) rotate(22.000000) translate(-46.380894, -165.931897) ' points='44.7646475 165.931897 46.380894 167.547816 47.9971405 165.931897 46.380894 164.315979'%3E%3C/polygon%3E%3Cpolygon id='Fill-382' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(44.929324, 162.513061) rotate(22.000000) translate(-44.929324, -162.513061) ' points='43.3130771 162.513061 44.9293236 164.12898 46.5455702 162.513061 44.9293236 160.897143'%3E%3C/polygon%3E%3Cpolygon id='Stroke-384' transform='translate(44.929324, 162.513061) rotate(22.000000) translate(-44.929324, -162.513061) ' points='43.3130771 162.513061 44.9293236 164.12898 46.5455702 162.513061 44.9293236 160.897143'%3E%3C/polygon%3E%3Cpolygon id='Fill-386' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(43.477729, 159.094284) rotate(22.000000) translate(-43.477729, -159.094284) ' points='41.8614829 159.094284 43.4777295 160.710203 45.093976 159.094284 43.4777295 157.478365'%3E%3C/polygon%3E%3Cpolygon id='Stroke-388' transform='translate(43.477729, 159.094284) rotate(22.000000) translate(-43.477729, -159.094284) ' points='41.8614829 159.094284 43.4777295 160.710203 45.093976 159.094284 43.4777295 157.478365'%3E%3C/polygon%3E%3Cpolygon id='Fill-390' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(42.026100, 155.675424) rotate(22.000000) translate(-42.026100, -155.675424) ' points='40.4098536 155.675424 42.0261002 157.291342 43.6423467 155.675424 42.0261002 154.059505'%3E%3C/polygon%3E%3Cpolygon id='Stroke-392' transform='translate(42.026100, 155.675424) rotate(22.000000) translate(-42.026100, -155.675424) ' points='40.4098536 155.675424 42.0261002 157.291342 43.6423467 155.675424 42.0261002 154.059505'%3E%3C/polygon%3E%3Cpolygon id='Fill-394' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(43.224809, 167.271198) rotate(22.000000) translate(-43.224809, -167.271198) ' points='41.6085622 167.271198 43.2248087 168.887117 44.8410552 167.271198 43.2248087 165.65528'%3E%3C/polygon%3E%3Cpolygon id='Stroke-396' transform='translate(43.224809, 167.271198) rotate(22.000000) translate(-43.224809, -167.271198) ' points='41.6085622 167.271198 43.2248087 168.887117 44.8410552 167.271198 43.2248087 165.65528'%3E%3C/polygon%3E%3Cpolygon id='Fill-398' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(41.773238, 163.852362) rotate(22.000000) translate(-41.773238, -163.852362) ' points='40.1569918 163.852362 41.7732383 165.468281 43.3894848 163.852362 41.7732383 162.236443'%3E%3C/polygon%3E%3Cpolygon id='Stroke-400' transform='translate(41.773238, 163.852362) rotate(22.000000) translate(-41.773238, -163.852362) ' points='40.1569918 163.852362 41.7732383 165.468281 43.3894848 163.852362 41.7732383 162.236443'%3E%3C/polygon%3E%3Cpolygon id='Fill-402' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(40.321585, 160.433561) rotate(22.000000) translate(-40.321585, -160.433561) ' points='38.7053387 160.433561 40.3215852 162.04948 41.9378318 160.433561 40.3215852 158.817642'%3E%3C/polygon%3E%3Cpolygon id='Stroke-404' transform='translate(40.321585, 160.433561) rotate(22.000000) translate(-40.321585, -160.433561) ' points='38.7053387 160.433561 40.3215852 162.04948 41.9378318 160.433561 40.3215852 158.817642'%3E%3C/polygon%3E%3Cpolygon id='Fill-406' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(38.869991, 157.014784) rotate(22.000000) translate(-38.869991, -157.014784) ' points='37.2537445 157.014784 38.8699911 158.630702 40.4862376 157.014784 38.8699911 155.398865'%3E%3C/polygon%3E%3Cpolygon id='Stroke-408' transform='translate(38.869991, 157.014784) rotate(22.000000) translate(-38.869991, -157.014784) ' points='37.2537445 157.014784 38.8699911 158.630702 40.4862376 157.014784 38.8699911 155.398865'%3E%3C/polygon%3E%3Cpolygon id='Fill-410' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(40.068723, 168.610499) rotate(22.000000) translate(-40.068723, -168.610499) ' points='38.4524768 168.610499 40.0687234 170.226418 41.6849699 168.610499 40.0687234 166.994581'%3E%3C/polygon%3E%3Cpolygon id='Stroke-412' transform='translate(40.068723, 168.610499) rotate(22.000000) translate(-40.068723, -168.610499) ' points='38.4524768 168.610499 40.0687234 170.226418 41.6849699 168.610499 40.0687234 166.994581'%3E%3C/polygon%3E%3Cpolygon id='Fill-414' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(38.617129, 165.191722) rotate(22.000000) translate(-38.617129, -165.191722) ' points='37.0008827 165.191722 38.6171292 166.807641 40.2333757 165.191722 38.6171292 163.575803'%3E%3C/polygon%3E%3Cpolygon id='Stroke-416' transform='translate(38.617129, 165.191722) rotate(22.000000) translate(-38.617129, -165.191722) ' points='37.0008827 165.191722 38.6171292 166.807641 40.2333757 165.191722 38.6171292 163.575803'%3E%3C/polygon%3E%3Cpolygon id='Fill-418' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(37.165500, 161.772862) rotate(22.000000) translate(-37.165500, -161.772862) ' points='35.5492534 161.772862 37.1654999 163.388781 38.7817464 161.772862 37.1654999 160.156943'%3E%3C/polygon%3E%3Cpolygon id='Stroke-420' transform='translate(37.165500, 161.772862) rotate(22.000000) translate(-37.165500, -161.772862) ' points='35.5492534 161.772862 37.1654999 163.388781 38.7817464 161.772862 37.1654999 160.156943'%3E%3C/polygon%3E%3Cpolygon id='Fill-422' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(35.713906, 158.354085) rotate(22.000000) translate(-35.713906, -158.354085) ' points='34.0976592 158.354085 35.7139057 159.970003 37.3301523 158.354085 35.7139057 156.738166'%3E%3C/polygon%3E%3Cpolygon id='Stroke-424' transform='translate(35.713906, 158.354085) rotate(22.000000) translate(-35.713906, -158.354085) ' points='34.0976592 158.354085 35.7139057 159.970003 37.3301523 158.354085 35.7139057 156.738166'%3E%3C/polygon%3E%3Cpolygon id='Fill-426' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(36.912638, 169.949800) rotate(22.000000) translate(-36.912638, -169.949800) ' points='35.2963915 169.9498 36.912638 171.565719 38.5288846 169.9498 36.912638 168.333882'%3E%3C/polygon%3E%3Cpolygon id='Stroke-428' transform='translate(36.912638, 169.949800) rotate(22.000000) translate(-36.912638, -169.949800) ' points='35.2963915 169.9498 36.912638 171.565719 38.5288846 169.9498 36.912638 168.333882'%3E%3C/polygon%3E%3Cpolygon id='Fill-430' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(35.461068, 166.530964) rotate(22.000000) translate(-35.461068, -166.530964) ' points='33.8448211 166.530964 35.4610677 168.146883 37.0773142 166.530964 35.4610677 164.915045'%3E%3C/polygon%3E%3Cpolygon id='Stroke-432' transform='translate(35.461068, 166.530964) rotate(22.000000) translate(-35.461068, -166.530964) ' points='33.8448211 166.530964 35.4610677 168.146883 37.0773142 166.530964 35.4610677 164.915045'%3E%3C/polygon%3E%3Cpolygon id='Fill-434' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(34.009415, 163.112163) rotate(22.000000) translate(-34.009415, -163.112163) ' points='32.3931681 163.112163 34.0094146 164.728081 35.6256611 163.112163 34.0094146 161.496244'%3E%3C/polygon%3E%3Cpolygon id='Stroke-436' transform='translate(34.009415, 163.112163) rotate(22.000000) translate(-34.009415, -163.112163) ' points='32.3931681 163.112163 34.0094146 164.728081 35.6256611 163.112163 34.0094146 161.496244'%3E%3C/polygon%3E%3Cpolygon id='Fill-438' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(32.557820, 159.693385) rotate(22.000000) translate(-32.557820, -159.693385) ' points='30.9415739 159.693385 32.5578204 161.309304 34.174067 159.693385 32.5578204 158.077467'%3E%3C/polygon%3E%3Cpolygon id='Stroke-440' transform='translate(32.557820, 159.693385) rotate(22.000000) translate(-32.557820, -159.693385) ' points='30.9415739 159.693385 32.5578204 161.309304 34.174067 159.693385 32.5578204 158.077467'%3E%3C/polygon%3E%3Cpolygon id='Fill-442' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(33.756553, 171.289101) rotate(22.000000) translate(-33.756553, -171.289101) ' points='32.1403062 171.289101 33.7565527 172.90502 35.3727993 171.289101 33.7565527 169.673182'%3E%3C/polygon%3E%3Cpolygon id='Stroke-444' transform='translate(33.756553, 171.289101) rotate(22.000000) translate(-33.756553, -171.289101) ' points='32.1403062 171.289101 33.7565527 172.90502 35.3727993 171.289101 33.7565527 169.673182'%3E%3C/polygon%3E%3Cpolygon id='Fill-446' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(32.304959, 167.870324) rotate(22.000000) translate(-32.304959, -167.870324) ' points='30.688712 167.870324 32.3049586 169.486242 33.9212051 167.870324 32.3049586 166.254405'%3E%3C/polygon%3E%3Cpolygon id='Stroke-448' transform='translate(32.304959, 167.870324) rotate(22.000000) translate(-32.304959, -167.870324) ' points='30.688712 167.870324 32.3049586 169.486242 33.9212051 167.870324 32.3049586 166.254405'%3E%3C/polygon%3E%3Cpolygon id='Fill-450' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(30.853329, 164.451464) rotate(22.000000) translate(-30.853329, -164.451464) ' points='29.2370827 164.451464 30.8533293 166.067382 32.4695758 164.451464 30.8533293 162.835545'%3E%3C/polygon%3E%3Cpolygon id='Stroke-452' transform='translate(30.853329, 164.451464) rotate(22.000000) translate(-30.853329, -164.451464) ' points='29.2370827 164.451464 30.8533293 166.067382 32.4695758 164.451464 30.8533293 162.835545'%3E%3C/polygon%3E%3Cpolygon id='Fill-454' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(29.401735, 161.032686) rotate(22.000000) translate(-29.401735, -161.032686) ' points='27.7854886 161.032686 29.4017351 162.648605 31.0179816 161.032686 29.4017351 159.416768'%3E%3C/polygon%3E%3Cpolygon id='Stroke-456' transform='translate(29.401735, 161.032686) rotate(22.000000) translate(-29.401735, -161.032686) ' points='27.7854886 161.032686 29.4017351 162.648605 31.0179816 161.032686 29.4017351 159.416768'%3E%3C/polygon%3E%3Cpolygon id='Fill-458' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(38.778613, 148.026981) rotate(22.000000) translate(-38.778613, -148.026981) ' points='37.1623668 148.026981 38.7786133 149.6429 40.3948599 148.026981 38.7786133 146.411063'%3E%3C/polygon%3E%3Cpolygon id='Stroke-460' transform='translate(38.778613, 148.026981) rotate(22.000000) translate(-38.778613, -148.026981) ' points='37.1623668 148.026981 38.7786133 149.6429 40.3948599 148.026981 38.7786133 146.411063'%3E%3C/polygon%3E%3Cpolygon id='Fill-462' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(37.326984, 144.608121) rotate(22.000000) translate(-37.326984, -144.608121) ' points='35.7107375 144.608121 37.3269841 146.22404 38.9432306 144.608121 37.3269841 142.992203'%3E%3C/polygon%3E%3Cpolygon id='Stroke-464' transform='translate(37.326984, 144.608121) rotate(22.000000) translate(-37.326984, -144.608121) ' points='35.7107375 144.608121 37.3269841 146.22404 38.9432306 144.608121 37.3269841 142.992203'%3E%3C/polygon%3E%3Cpolygon id='Fill-466' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(35.875390, 141.189344) rotate(22.000000) translate(-35.875390, -141.189344) ' points='34.2591433 141.189344 35.8753899 142.805263 37.4916364 141.189344 35.8753899 139.573425'%3E%3C/polygon%3E%3Cpolygon id='Stroke-468' transform='translate(35.875390, 141.189344) rotate(22.000000) translate(-35.875390, -141.189344) ' points='34.2591433 141.189344 35.8753899 142.805263 37.4916364 141.189344 35.8753899 139.573425'%3E%3C/polygon%3E%3Cpolygon id='Fill-470' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(34.423796, 137.770567) rotate(22.000000) translate(-34.423796, -137.770567) ' points='32.8075492 137.770567 34.4237957 139.386485 36.0400422 137.770567 34.4237957 136.154648'%3E%3C/polygon%3E%3Cpolygon id='Stroke-472' fill='%23B2BECA' transform='translate(34.423796, 137.770567) rotate(22.000000) translate(-34.423796, -137.770567) ' points='34.4237957 139.386485 36.0400422 137.770567 34.4237957 136.154648 32.8075492 137.770567'%3E%3C/polygon%3E%3Cpolygon id='Fill-474' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(35.622528, 149.366282) rotate(22.000000) translate(-35.622528, -149.366282) ' points='34.0062815 149.366282 35.622528 150.982201 37.2387746 149.366282 35.622528 147.750364'%3E%3C/polygon%3E%3Cpolygon id='Stroke-476' transform='translate(35.622528, 149.366282) rotate(22.000000) translate(-35.622528, -149.366282) ' points='34.0062815 149.366282 35.622528 150.982201 37.2387746 149.366282 35.622528 147.750364'%3E%3C/polygon%3E%3Cpolygon id='Fill-478' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(34.170875, 145.947481) rotate(22.000000) translate(-34.170875, -145.947481) ' points='32.5546284 145.947481 34.1708749 147.5634 35.7871215 145.947481 34.1708749 144.331563'%3E%3C/polygon%3E%3Cpolygon id='Stroke-480' transform='translate(34.170875, 145.947481) rotate(22.000000) translate(-34.170875, -145.947481) ' points='32.5546284 145.947481 34.1708749 147.5634 35.7871215 145.947481 34.1708749 144.331563'%3E%3C/polygon%3E%3Cpolygon id='Fill-482' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(32.719305, 142.528645) rotate(22.000000) translate(-32.719305, -142.528645) ' points='31.103058 142.528645 32.7193046 144.144564 34.3355511 142.528645 32.7193046 140.912726'%3E%3C/polygon%3E%3Cpolygon id='Stroke-484' transform='translate(32.719305, 142.528645) rotate(22.000000) translate(-32.719305, -142.528645) ' points='31.103058 142.528645 32.7193046 144.144564 34.3355511 142.528645 32.7193046 140.912726'%3E%3C/polygon%3E%3Cpolygon id='Fill-486' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(31.267651, 139.109844) rotate(22.000000) translate(-31.267651, -139.109844) ' points='29.651405 139.109844 31.2676515 140.725763 32.883898 139.109844 31.2676515 137.493925'%3E%3C/polygon%3E%3Cpolygon id='Stroke-488' transform='translate(31.267651, 139.109844) rotate(22.000000) translate(-31.267651, -139.109844) ' points='29.651405 139.109844 31.2676515 140.725763 32.883898 139.109844 31.2676515 137.493925'%3E%3C/polygon%3E%3Cpolygon id='Fill-490' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(32.466384, 150.705559) rotate(22.000000) translate(-32.466384, -150.705559) ' points='30.8501373 150.705559 32.4663838 152.321478 34.0826303 150.705559 32.4663838 149.089641'%3E%3C/polygon%3E%3Cpolygon id='Stroke-492' transform='translate(32.466384, 150.705559) rotate(22.000000) translate(-32.466384, -150.705559) ' points='30.8501373 150.705559 32.4663838 152.321478 34.0826303 150.705559 32.4663838 149.089641'%3E%3C/polygon%3E%3Cpolygon id='Fill-494' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(31.014790, 147.286782) rotate(22.000000) translate(-31.014790, -147.286782) ' points='29.3985431 147.286782 31.0147896 148.902701 32.6310362 147.286782 31.0147896 145.670863'%3E%3C/polygon%3E%3Cpolygon id='Stroke-496' transform='translate(31.014790, 147.286782) rotate(22.000000) translate(-31.014790, -147.286782) ' points='29.3985431 147.286782 31.0147896 148.902701 32.6310362 147.286782 31.0147896 145.670863'%3E%3C/polygon%3E%3Cpolygon id='Fill-498' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(29.563219, 143.867946) rotate(22.000000) translate(-29.563219, -143.867946) ' points='27.9469727 143.867946 29.5632192 145.483865 31.1794658 143.867946 29.5632192 142.252027'%3E%3C/polygon%3E%3Cpolygon id='Stroke-500' transform='translate(29.563219, 143.867946) rotate(22.000000) translate(-29.563219, -143.867946) ' points='27.9469727 143.867946 29.5632192 145.483865 31.1794658 143.867946 29.5632192 142.252027'%3E%3C/polygon%3E%3Cpolygon id='Fill-502' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(28.111566, 140.449145) rotate(22.000000) translate(-28.111566, -140.449145) ' points='26.4953196 140.449145 28.1115662 142.065063 29.7278127 140.449145 28.1115662 138.833226'%3E%3C/polygon%3E%3Cpolygon id='Stroke-504' transform='translate(28.111566, 140.449145) rotate(22.000000) translate(-28.111566, -140.449145) ' points='26.4953196 140.449145 28.1115662 142.065063 29.7278127 140.449145 28.1115662 138.833226'%3E%3C/polygon%3E%3Cpolygon id='Fill-506' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(29.310298, 152.044860) rotate(22.000000) translate(-29.310298, -152.044860) ' points='27.6940519 152.04486 29.3102985 153.660779 30.926545 152.04486 29.3102985 150.428942'%3E%3C/polygon%3E%3Cpolygon id='Stroke-508' transform='translate(29.310298, 152.044860) rotate(22.000000) translate(-29.310298, -152.044860) ' points='27.6940519 152.04486 29.3102985 153.660779 30.926545 152.04486 29.3102985 150.428942'%3E%3C/polygon%3E%3Cpolygon id='Fill-510' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(27.858704, 148.626083) rotate(22.000000) translate(-27.858704, -148.626083) ' points='26.2424578 148.626083 27.8587043 150.242002 29.4749508 148.626083 27.8587043 147.010164'%3E%3C/polygon%3E%3Cpolygon id='Stroke-512' transform='translate(27.858704, 148.626083) rotate(22.000000) translate(-27.858704, -148.626083) ' points='26.2424578 148.626083 27.8587043 150.242002 29.4749508 148.626083 27.8587043 147.010164'%3E%3C/polygon%3E%3Cpolygon id='Fill-514' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(26.407134, 145.207247) rotate(22.000000) translate(-26.407134, -145.207247) ' points='24.7908874 145.207247 26.4071339 146.823166 28.0233805 145.207247 26.4071339 143.591328'%3E%3C/polygon%3E%3Cpolygon id='Stroke-516' transform='translate(26.407134, 145.207247) rotate(22.000000) translate(-26.407134, -145.207247) ' points='24.7908874 145.207247 26.4071339 146.823166 28.0233805 145.207247 26.4071339 143.591328'%3E%3C/polygon%3E%3Cpolygon id='Fill-518' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(24.955481, 141.788446) rotate(22.000000) translate(-24.955481, -141.788446) ' points='23.3392343 141.788446 24.9554808 143.404364 26.5717274 141.788446 24.9554808 140.172527'%3E%3C/polygon%3E%3Cpolygon id='Stroke-520' transform='translate(24.955481, 141.788446) rotate(22.000000) translate(-24.955481, -141.788446) ' points='23.3392343 141.788446 24.9554808 143.404364 26.5717274 141.788446 24.9554808 140.172527'%3E%3C/polygon%3E%3Cpolygon id='Fill-522' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(26.154213, 153.384161) rotate(22.000000) translate(-26.154213, -153.384161) ' points='24.5379666 153.384161 26.1542132 155.00008 27.7704597 153.384161 26.1542132 151.768243'%3E%3C/polygon%3E%3Cpolygon id='Stroke-524' transform='translate(26.154213, 153.384161) rotate(22.000000) translate(-26.154213, -153.384161) ' points='24.5379666 153.384161 26.1542132 155.00008 27.7704597 153.384161 26.1542132 151.768243'%3E%3C/polygon%3E%3Cpolygon id='Fill-526' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(24.702619, 149.965384) rotate(22.000000) translate(-24.702619, -149.965384) ' points='23.0863724 149.965384 24.702619 151.581303 26.3188655 149.965384 24.702619 148.349465'%3E%3C/polygon%3E%3Cpolygon id='Stroke-528' transform='translate(24.702619, 149.965384) rotate(22.000000) translate(-24.702619, -149.965384) ' points='23.0863724 149.965384 24.702619 151.581303 26.3188655 149.965384 24.702619 148.349465'%3E%3C/polygon%3E%3Cpolygon id='Fill-530' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(23.250966, 146.546583) rotate(22.000000) translate(-23.250966, -146.546583) ' points='21.6347194 146.546583 23.2509659 148.162502 24.8672124 146.546583 23.2509659 144.930664'%3E%3C/polygon%3E%3Cpolygon id='Stroke-532' transform='translate(23.250966, 146.546583) rotate(22.000000) translate(-23.250966, -146.546583) ' points='21.6347194 146.546583 23.2509659 148.162502 24.8672124 146.546583 23.2509659 144.930664'%3E%3C/polygon%3E%3Cpolygon id='Fill-534' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(21.799396, 143.127747) rotate(22.000000) translate(-21.799396, -143.127747) ' points='20.183149 143.127747 21.7993955 144.743665 23.4156421 143.127747 21.7993955 141.511828'%3E%3C/polygon%3E%3Cpolygon id='Stroke-536' transform='translate(21.799396, 143.127747) rotate(22.000000) translate(-21.799396, -143.127747) ' points='20.183149 143.127747 21.7993955 144.743665 23.4156421 143.127747 21.7993955 141.511828'%3E%3C/polygon%3E%3Cpath d='M129.314819,189.942425 C126.372666,187.000233 124.490222,184.112668 125.110927,183.492089 C125.731631,182.87151 128.619783,184.753573 131.562571,187.695129 C134.504724,190.637321 136.387169,193.524886 135.766464,194.145465 C135.145759,194.766044 132.257608,192.883981 129.314819,189.942425 Z' id='Fill-538' fill='%23F5F5F5' transform='translate(130.438695, 188.818777) rotate(22.000000) translate(-130.438695, -188.818777) '%3E%3C/path%3E%3Cpath d='M129.314819,189.942425 C126.372666,187.000233 124.490222,184.112668 125.110927,183.492089 C125.731631,182.87151 128.619783,184.753573 131.562571,187.695129 C134.504724,190.637321 136.387169,193.524886 135.766464,194.145465 C135.145759,194.766044 132.257608,192.883981 129.314819,189.942425 Z' id='Stroke-540' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(130.438695, 188.818777) rotate(22.000000) translate(-130.438695, -188.818777) '%3E%3C/path%3E%3Cpath d='M136.083433,187.715086 C130.20421,181.837055 126.443133,176.067006 127.683272,174.827118 C128.92341,173.587231 134.69463,177.347545 140.573854,183.225576 C146.453713,189.104243 150.21479,194.874292 148.974651,196.114179 C147.734513,197.354066 141.963293,193.593752 136.083433,187.715086 Z' id='Fill-542' fill='%23F5F5F5' transform='translate(138.328961, 185.470648) rotate(22.000000) translate(-138.328961, -185.470648) '%3E%3C/path%3E%3Cpath d='M136.083433,187.715086 C130.20421,181.837055 126.443133,176.067006 127.683272,174.827118 C128.92341,173.587231 134.69463,177.347545 140.573854,183.225576 C146.453713,189.104243 150.21479,194.874292 148.974651,196.114179 C147.734513,197.354066 141.963293,193.593752 136.083433,187.715086 Z' id='Stroke-544' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(138.328961, 185.470648) rotate(22.000000) translate(-138.328961, -185.470648) '%3E%3C/path%3E%3Cpath d='M146.697288,183.650834 C138.818086,175.773231 133.777481,168.04045 135.43947,166.378798 C137.101459,164.717146 144.835809,169.756729 152.715011,177.634332 C160.594213,185.511936 165.634818,193.244716 163.972829,194.906369 C162.310839,196.568021 154.57649,191.528438 146.697288,183.650834 Z' id='Fill-546' fill-opacity='0.35' fill='%23F5F5F5' transform='translate(149.706149, 180.642583) rotate(22.000000) translate(-149.706149, -180.642583) '%3E%3C/path%3E%3Cpath d='M146.697288,183.650834 C138.818086,175.773231 133.777481,168.04045 135.43947,166.378798 C137.101459,164.717146 144.835809,169.756729 152.715011,177.634332 C160.594213,185.511936 165.634818,193.244716 163.972829,194.906369 C162.310839,196.568021 154.57649,191.528438 146.697288,183.650834 Z' id='Stroke-548' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(149.706149, 180.642583) rotate(22.000000) translate(-149.706149, -180.642583) '%3E%3C/path%3E%3Cpath d='M65.2279553,90.2345285 C62.4548336,90.0320836 60.4105231,89.3345405 60.4105231,88.5051511 C60.4105231,87.676673 62.4503446,86.9797514 65.2188187,86.7764428 C65.4149139,84.0068366 66.0879499,81.9659221 66.8880741,81.9659221 C67.6881984,81.9659221 68.3612344,84.0068366 68.5573295,86.7764428 C71.3258036,86.9797514 73.3656251,87.676673 73.3656251,88.5051511 C73.3656251,89.3345405 71.3213146,90.0320836 68.548193,90.2345285 C68.3410329,92.9408238 67.6762073,94.9210242 66.8880741,94.9210242 C66.0999409,94.9210242 65.4351154,92.9408238 65.2279553,90.2345285 Z' id='Oval-80-Copy-3' fill-opacity='0.4' fill='%23A3B1BF' opacity='0.85' transform='translate(66.888074, 88.443473) rotate(-340.000000) translate(-66.888074, -88.443473) '%3E%3C/path%3E%3Cpath d='M118.775569,329.140492 L118.424988,329.526146 C117.522244,330.5192 115.985396,330.592411 114.992341,329.689667 C114.596934,329.330218 114.331035,328.850456 114.235803,328.324641 L114.143075,327.812647 L113.669257,327.599091 C112.445737,327.047635 111.900921,325.608734 112.452377,324.385214 C112.672015,323.8979 113.046204,323.496601 113.516991,323.243469 L113.97521,322.997095 L114.032158,322.478985 C114.178786,321.144967 115.379087,320.182398 116.713105,320.329026 C117.24418,320.387399 117.741214,320.61917 118.127299,320.988476 L118.503957,321.348765 L119.01334,321.242962 C120.327346,320.970031 121.613813,321.813989 121.886744,323.127995 C121.995449,323.651349 121.928561,324.195943 121.696437,324.677436 L121.470742,325.145594 L121.728812,325.597409 C122.394441,326.762759 121.989337,328.247061 120.823987,328.91269 C120.359975,329.177726 119.82154,329.282421 119.292023,329.21057 L118.775569,329.140492 Z' id='Star-1-Copy-16' fill-opacity='0.4' fill='%23A3B1BF'%3E%3C/path%3E%3Cpath d='M432.83752,120.004816 L432.837087,120.005044 L432.837087,120.005044 C432.092472,120.396429 431.171561,120.110079 430.780176,119.365464 C430.624337,119.068978 430.570573,118.729391 430.627206,118.399266 L430.627206,118.399266 L430.627206,118.399266 L430.627206,118.399266 C430.024845,117.812233 430.01242,116.848039 430.599453,116.245678 C430.833262,116.005765 431.139652,115.849637 431.471171,115.801474 L431.471471,115.801431 L431.471471,115.801431 L431.471471,115.801431 C431.843891,115.046982 432.757399,114.737288 433.511848,115.109709 C433.812195,115.25797 434.055308,115.501083 434.20357,115.801431 L434.20357,115.801431 L434.203869,115.801474 L434.203869,115.801474 C435.036229,115.922398 435.612963,116.695187 435.492039,117.527547 C435.443876,117.859067 435.287748,118.165457 435.047835,118.399266 L435.047835,118.399266 L435.047835,118.399266 L435.047835,118.399266 C435.190066,119.228364 434.63325,120.015783 433.804152,120.158014 C433.474027,120.214647 433.134439,120.160883 432.837954,120.005044 L432.83752,120.004816 Z' id='Star-1-Copy-18' fill-opacity='0.4' fill='%23A3B1BF' transform='translate(432.837619, 117.566125) rotate(-3.000000) translate(-432.837619, -117.566125) '%3E%3C/path%3E%3Cpath d='M99.7727703,38.762372 L99.0266308,39.1545584 L99.0266308,39.1545584 C97.8386845,39.7789675 96.36948,39.3221304 95.7450708,38.134184 C95.4964477,37.6611755 95.4106732,37.1194035 95.5010241,36.5927278 L95.6433921,35.7628333 L95.0407812,35.1755563 L95.0407812,35.1755563 C94.0796578,34.2388893 94.059832,32.7004261 94.996499,31.7393027 C95.369563,31.3564979 95.8584376,31.1073808 96.3874089,31.0305329 L97.2206742,30.9094778 L97.5937913,30.1536188 L97.5937913,30.1536188 C98.1878378,28.950202 99.6449697,28.4562097 100.848387,29.0502562 C101.327469,29.2867472 101.715258,29.6745363 101.951749,30.1536188 L102.324866,30.9094778 L103.158132,31.0305329 L103.158132,31.0305329 C104.486241,31.223478 105.406474,32.4565366 105.213529,33.7846464 C105.136681,34.3136177 104.887564,34.8024923 104.504759,35.1755563 L103.902148,35.7628333 L104.044516,36.5927278 L104.044516,36.5927278 C104.27143,37.9154575 103.383095,39.1716915 102.060366,39.398605 C101.53369,39.4889559 100.991918,39.4031814 100.51891,39.1545584 L99.7727703,38.762372 Z' id='Star-1-Copy-19' fill-opacity='0.4' fill='%23A3B1BF' transform='translate(99.772928, 34.116388) rotate(19.000000) translate(-99.772928, -34.116388) '%3E%3C/path%3E%3Cpath d='M396.631073,305.744172 L396.098125,305.608596 C394.797498,305.277731 394.01135,303.955146 394.342215,302.654518 C394.473956,302.136643 394.772729,301.676633 395.192288,301.345694 L395.623376,301.00566 L395.587617,300.458372 C395.500116,299.119176 396.514815,297.962609 397.854012,297.875108 C398.387399,297.840257 398.917395,297.982247 399.361919,298.279089 L399.818473,298.583965 L400.329362,298.380373 C401.576068,297.883555 402.989473,298.491459 403.486291,299.738164 C403.684076,300.23448 403.712777,300.782145 403.567956,301.296416 L403.418882,301.825788 L403.76981,302.247972 C404.627682,303.280038 404.486471,304.812135 403.454406,305.670007 C403.043346,306.011688 402.531095,306.208301 401.996987,306.229395 L401.44896,306.251039 L401.15585,306.715309 C400.439401,307.850123 398.938655,308.189275 397.80384,307.472826 C397.351988,307.187555 397.006767,306.761296 396.821614,306.260029 L396.631073,305.744172 Z' id='Star-1-Copy-20' fill-opacity='0.4' fill='%23A3B1BF'%3E%3C/path%3E%3Cpath d='M439.755536,146.347757 L439.755103,146.347984 L439.755103,146.347984 C439.010488,146.739369 438.089577,146.45302 437.698192,145.708405 C437.542353,145.411919 437.488589,145.072331 437.545222,144.742206 L437.545222,144.742206 L437.545222,144.742206 L437.545222,144.742206 C436.942861,144.155173 436.930436,143.190979 437.517469,142.588619 C437.751277,142.348705 438.057668,142.192577 438.389187,142.144415 L438.389487,142.144371 L438.389487,142.144371 L438.389487,142.144371 C438.761907,141.389923 439.675415,141.080228 440.429864,141.452649 C440.730211,141.600911 440.973324,141.844024 441.121586,142.144371 L441.121586,142.144371 L441.121885,142.144415 L441.121885,142.144415 C441.954245,142.265338 442.530978,143.038128 442.410055,143.870488 C442.361892,144.202007 442.205764,144.508398 441.965851,144.742206 L441.965851,144.742206 L441.965851,144.742206 L441.965851,144.742206 C442.108082,145.571305 441.551266,146.358723 440.722168,146.500955 C440.392043,146.557588 440.052455,146.503823 439.755969,146.347984 L439.755536,146.347757 Z' id='Star-1-Copy-21' fill-opacity='0.4' fill='%23A3B1BF' transform='translate(439.755635, 143.909066) rotate(-12.000000) translate(-439.755635, -143.909066) '%3E%3C/path%3E%3Cpath d='M244.621971,220.61341 C277.15945,220.61341 303.536288,194.242112 303.536288,161.711467 C303.536288,129.180822 277.15945,102.809524 244.621971,102.809524 C212.084491,102.809524 185.707653,129.180822 185.707653,161.711467 C185.707653,194.242112 212.084491,220.61341 244.621971,220.61341 Z' id='Oval-8-Copy-2' fill-opacity='0.66' fill='%23A3B1BF'%3E%3C/path%3E%3Cpath d='M245.345696,141.060063 C241.146656,141.060063 237.880736,142.342349 235.547936,144.906921 C233.215136,147.354921 232.107056,150.618921 232.107056,154.698921 L236.714336,154.698921 C236.714336,151.842921 237.355856,149.628063 238.638896,147.996063 C240.038576,146.072635 242.196416,145.140063 245.112416,145.140063 C247.561856,145.140063 249.486416,145.781206 250.827776,147.180063 C252.110816,148.462349 252.810656,150.269206 252.810656,152.600635 C252.810656,154.232635 252.227456,155.748063 251.061056,157.205206 C250.711136,157.671492 250.011296,158.370921 249.078176,159.303492 C245.928896,162.101206 244.004336,164.316063 243.187856,166.064635 C242.488016,167.521778 242.138096,169.212063 242.138096,171.135492 L242.138096,172.476063 L246.803696,172.476063 L246.803696,171.135492 C246.803696,169.561778 247.153616,168.162921 247.911776,166.880635 C248.494976,165.831492 249.369776,164.782349 250.652816,163.674921 C253.218896,161.401778 254.793536,159.886349 255.376736,159.186921 C256.834736,157.263492 257.592896,154.990349 257.592896,152.367492 C257.592896,148.870349 256.484816,146.130921 254.326976,144.149206 C252.052496,142.050921 249.078176,141.060063 245.345696,141.060063 Z M244.470896,176.556063 C243.479456,176.556063 242.662976,176.847492 241.963136,177.546921 C241.263296,178.188063 240.971696,179.004063 240.971696,179.994921 C240.971696,180.985778 241.263296,181.801778 241.963136,182.501206 C242.662976,183.142349 243.479456,183.492063 244.470896,183.492063 C245.462336,183.492063 246.278816,183.142349 246.978656,182.501206 C247.678496,181.860063 248.028416,181.044063 248.028416,179.994921 C248.028416,179.004063 247.678496,178.188063 247.036976,177.546921 C246.337136,176.847492 245.462336,176.556063 244.470896,176.556063 Z' id='?' fill='%23FFFFFF'%3E%3C/path%3E%3Cpath d='M223.261662,133.139924 C229.077338,129.782947 239.631808,125.828273 236.274126,120.013819 C232.916444,114.199364 220.565868,115.043746 214.750193,118.400722 C208.934517,121.757699 202.729834,131.623951 206.087516,137.438405 C209.445198,143.252859 217.445986,136.4969 223.261662,133.139924' id='Oval-8-Copy-2' fill='%23FAFAFA'%3E%3C/path%3E%3Cpath d='M249.679003,119.820589 C252.365149,119.820589 254.5427,117.643495 254.5427,114.957913 C254.5427,112.272332 252.365149,110.095238 249.679003,110.095238 C246.992857,110.095238 244.815306,112.272332 244.815306,114.957913 C244.815306,117.643495 246.992857,119.820589 249.679003,119.820589 Z' id='Oval-10-Copy' fill='%23FAFAFA'%3E%3C/path%3E%3Cpath d='M421.5,321.5 L423,323' id='Line-2' stroke='%23979797' stroke-linecap='square'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E\")",backgroundRepeat:"no-repeat",backgroundSize:"cover",padding:"170px 176px 200px 224px"},children:[j.jsx("div",{style:{textAlign:"center",fontWeight:800},children:j.jsx("h1",{children:"404"})}),j.jsx("div",{style:{textAlign:"center",fontWeight:800},children:j.jsx("p",{children:"Sorry, this page does not exist."})})]})})});var WK,KK={exports:{}};var VK,GK=(WK||(WK=1,VK=KK,function(e,t){e._Highcharts=t(),VK.exports=e._Highcharts}("u"<typeof window?KK.exports:window,()=>(()=>{var e,t,n,r,o,i,a,l;let s,c,u,d,h,p;var f,m,g,y,v,b,x,w,C,k,S,E,$,T,M,P,N,I,O,A,R,L,B,z,D,j,F={d:(e,t)=>{for(var n in t)F.o(t,n)&&!F.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},H={};F.d(H,{default:()=>ti}),(f=k||(k={})).SVG_NS="http://www.w3.org/2000/svg",f.product="Highcharts",f.version="12.6.0",f.win="u">typeof window?window:{},f.doc=f.win.document,f.svg=!!(null==(n=null==(t=null==(e=f.doc)?void 0:e.createElementNS)?void 0:t.call(e,f.SVG_NS,"svg"))?void 0:n.createSVGRect),f.pageLang=null==(i=null==(o=null==(r=f.doc)?void 0:r.documentElement)?void 0:o.closest("[lang]"))?void 0:i.lang,f.userAgent=(null==(a=f.win.navigator)?void 0:a.userAgent)||"",f.isChrome=f.win.chrome,f.isFirefox=-1!==f.userAgent.indexOf("Firefox"),f.isMS=/(edge|msie|trident)/i.test(f.userAgent)&&!f.win.opera,f.isSafari=!f.isChrome&&-1!==f.userAgent.indexOf("Safari"),f.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(f.userAgent),f.isWebKit=-1!==f.userAgent.indexOf("AppleWebKit"),f.deg2rad=2*Math.PI/360,f.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],f.noop=function(){},f.supportsPassiveEvents=function(){let e=!1;if(!f.isMS){let t=Object.defineProperty({},"passive",{get:function(){e=!0}});f.win.addEventListener&&f.win.removeEventListener&&(f.win.addEventListener("testPassive",f.noop,t),f.win.removeEventListener("testPassive",f.noop,t))}return e}(),f.charts=[],f.composed=[],f.dateFormats={},f.seriesTypes={},f.symbolSizes={},f.chartCount=0;let _=k,{doc:W,win:K}=_;function V(e,t,n,r={}){let o="function"==typeof e&&e.prototype||e;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={});let i=o.hcEvents;_.Point&&e instanceof _.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);let a=e.addEventListener;a&&a.call(e,t,n,!!_.supportsPassiveEvents&&{passive:void 0===r.passive?-1!==t.indexOf("touch"):r.passive,capture:!1}),i[t]||(i[t]=[]);let l={fn:n,order:"number"==typeof r.order?r.order:1/0};return i[t].push(l),i[t].sort((e,t)=>e.order-t.order),function(){Oe(e,t,n)}}function G(e){let t=e.length,n=e[0];for(;t--;)e[t]<n&&(n=e[t]);return n}function q(e){let t=e.length,n=e[0];for(;t--;)e[t]>n&&(n=e[t]);return n}function X(e,t,n){let r,o=ve(t)&&!ee(n),i=(t,n)=>{ee(t)?e.setAttribute(n,t):o?(r=e.getAttribute(n))||"class"!==n||(r=e.getAttribute(n+"Name")):e.removeAttribute(n)};return ve(t)?i(n,t):Se(t,i),r}function U(e,t,n){return e>t?e<n?e:n:t}function Y(e,t){return e>1e14?e:parseFloat(e.toPrecision(t||14))}function Z(e,t,n,r,o){let i=W.createElement(e);return t&&ie(i,t),o&&J(i,{padding:"0",border:"none",margin:"0"}),n&&J(i,n),r&&r.appendChild(i),i}function Q(e,t=0,n){let r=t%2/2,o=n?-1:1;return(Math.round(e*o-r)+r)*o}function J(e,t){ie(e.style,t)}function ee(e){return null!=e}function te(e,t,n){Se(e,function(r,o){r!==t&&(null==r?void 0:r.destroy)&&r.destroy(),((null==r?void 0:r.destroy)||!n)&&delete e[o]})}function ne(e){var t;null==(t=null==e?void 0:e.parentElement)||t.removeChild(e)}function re(e,t,n,r){let o={};return function e(t,o,i,a){let l=n?o:t;Se(t,function(n,s){if(!a&&r&&r.indexOf(s)>-1&&o[s]){n=Ae(n),i[s]=[];for(let t=0;t<Math.max(n.length,o[s].length);t++)o[s][t]&&(void 0===n[t]?i[s][t]=o[s][t]:(i[s][t]={},e(n[t],o[s][t],i[s][t],a+1)))}else we(n,!0)&&!n.nodeType?(i[s]=be(n)?[]:{},e(n,o[s]||{},i[s],a+1),0===Object.keys(i[s]).length&&("colorAxis"!==s||0!==a)&&delete i[s]):(t[s]!==o[s]||s in t&&!(s in o))&&"__proto__"!==s&&"constructor"!==s&&(i[s]=l[s])})}(e,t,o,0),o}function oe(e,t){let n=e.length;for(;n--;)if(e[n]===t){e.splice(n,1);break}}function ie(e,t){let n;for(n in e||(e={}),t)e[n]=t[n];return e}function ae(e,t){let n=function(){};return ie(n.prototype=new e,t),n}function le(e,t,n,r){if(n=n||{},(null==W?void 0:W.createEvent)&&(e.dispatchEvent||e.fireEvent&&e!==_)){let r=W.createEvent("Events");r.initEvent(t,!0,!0),n=ie(r,n),e.dispatchEvent?e.dispatchEvent(n):e.fireEvent(t,n)}else if(e.hcEvents){n.target||ie(n,{preventDefault:function(){n.defaultPrevented=!0},target:e,type:t});let r=[],o=e,i=!1;for(;o.hcEvents;)Object.hasOwnProperty.call(o,"hcEvents")&&o.hcEvents[t]&&(r.length&&(i=!0),r.unshift.apply(r,o.hcEvents[t])),o=Object.getPrototypeOf(o);i&&r.sort((e,t)=>e.order-t.order),r.forEach(t=>{!1===t.fn.call(e,n,e)&&n.preventDefault()})}r&&!n.defaultPrevented&&r.call(e,n)}let se=(e="")=>({center:.5,right:1,middle:.5,bottom:1}[e]||0);function ce(e,t){let n,r,o,i=!t;return e.forEach(e=>{if(e.length>1)for(o=e.length-1;o>0;o--)(r=e[o]-e[o-1])<0&&!i?(null==t||t(),t=void 0):r&&(void 0===n||r<n)&&(n=r)}),n}function ue(e){return Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function de(e,t){let n=e.split(".");for(;n.length&&ee(t);){let e=n.shift();if(void 0===e||"__proto__"===e)return;if("this"===e){let e;return we(t)&&(e=t["@this"]),e??t}let r=t[e.replace(/[\\'"]/g,"")];if(!ee(r)||"function"==typeof r||"number"==typeof r.nodeType||r===K)return;t=r}return t}function he(e,t,n){var r;let o;if("width"===t){let t=Math.min(e.offsetWidth,e.scrollWidth),n=null==(r=e.getBoundingClientRect)?void 0:r.call(e).width;return n<t&&n>=t-1&&(t=Math.floor(n)),Math.max(0,t-(he(e,"padding-left",!0)||0)-(he(e,"padding-right",!0)||0))}if("height"===t)return Math.max(0,Math.min(e.offsetHeight,e.scrollHeight)-(he(e,"padding-top",!0)||0)-(he(e,"padding-bottom",!0)||0));let i=K.getComputedStyle(e,void 0);return i&&(o=i.getPropertyValue(t),Te(n,"opacity"!==t)&&(o=Me(o))),o}let pe=Array.prototype.find?function(e,t){return e.find(t)}:function(e,t){let n,r=e.length;for(n=0;n<r;n++)if(t(e[n],n))return e[n]};function fe(e){ee(e)&&clearTimeout(e)}function me(e){return we(e)&&"number"==typeof e.nodeType}function ge(e){let t=null==e?void 0:e.constructor;return!(!we(e,!0)||me(e)||!(null==t?void 0:t.name)||"Object"===t.name)}function ye(e){return"number"==typeof e&&!isNaN(e)&&e<1/0&&e>-1/0}function ve(e){return"string"==typeof e}function be(e){let t=Object.prototype.toString.call(e);return"[object Array]"===t||"[object Array Iterator]"===t}function xe(e){return"function"==typeof e}function we(e,t){return!(!e||"object"!=typeof e||t&&be(e))}function Ce(e,...t){let n,r=[e,...t],o={},i=function(e,t){return"object"!=typeof e&&(e={}),Se(t,function(n,r){"__proto__"!==r&&"constructor"!==r&&(!we(n,!0)||ge(n)||me(n)?e[r]=t[r]:e[r]=i(e[r]||{},n))}),e};!0===e&&(o=r[1],r=Array.prototype.slice.call(r,2));let a=r.length;for(n=0;n<a;n++)o=i(o,r[n]);return o}function ke(e,t,n,r,o){let i,a=e,l=e/(n=Te(n,ue(e)));for(!t&&(t=o?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===r&&(1===n?t=t.filter(function(e){return e%1==0}):n<=.1&&(t=[1/n]))),i=0;i<t.length&&(a=t[i],(!o||!(a*n>=e))&&(o||!(l<=(t[i]+(t[i+1]||t[i]))/2)));i++);return Y(a*n,-Math.round(Math.log(.001)/Math.LN10))}function Se(e,t,n){for(let r in e)Object.hasOwnProperty.call(e,r)&&t.call(n||e[r],e[r],r,e)}function Ee(e){let t=W.documentElement,n=e.parentElement||e.parentNode?e.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:n.top+(K.pageYOffset||t.scrollTop)-(t.clientTop||0),left:n.left+(K.pageXOffset||t.scrollLeft)-(t.clientLeft||0),width:n.width,height:n.height}}function $e(e,t,n){return Array((t||2)+1-String(e).replace("-","").length).join(n||"0")+e}function Te(){let e=arguments,t=e.length;for(let n=0;n<t;n++){let t=e[n];if(null!=t)return t}}function Me(e,t){return parseInt(e,t||10)}function Pe(e,t){return 0>e.indexOf(t)&&!!e.push(t)}function Ne(e,t,n){return/%$/.test(e)?t*parseFloat(e)/100+(n||0):parseFloat(e)}function Ie(e,...t){let n,r;do{for(r of(n=e,t))e=e.replace(r[0],r[1])}while(e!==n);return e}function Oe(e,t,n){function r(t,n){let r=e.removeEventListener;r&&r.call(e,t,n,!1)}function o(n){let o,i;e.nodeName&&(t?(o={})[t]=!0:o=n,Se(o,function(e,t){if(n[t])for(i=n[t].length;i--;)r(t,n[t][i].fn)}))}let i="function"==typeof e&&e.prototype||e;if(Object.hasOwnProperty.call(i,"hcEvents")){let e=i.hcEvents;if(t){let i=e[t]||[];n?(e[t]=i.filter(function(e){return n!==e.fn}),r(t,n)):(o(e),e[t]=[])}else o(e),delete i.hcEvents}}function Ae(e){return be(e)?e:[e]}function Re(e,t){let n,r,o=e.length;for(r=0;r<o;r++)e[r].safeI=r;for(e.sort(function(e,r){return 0===(n=t(e,r))?e.safeI-r.safeI:n}),r=0;r<o;r++)delete e[r].safeI}function Le(e,t,n){return t>0?setTimeout(e,t,n):(e.call(0,n),-1)}function Be(e){return ve(e)?e.substring(0,1).toUpperCase()+e.substring(1):String(e)}let{charts:ze,win:De}=_;function je(e,t,n,r){let o=t?"Highcharts error":"Highcharts warning";32===e&&(e=`${o}: Deprecated member`);let i=ye(e),a=i?`${o} #${e}: www.highcharts.com/errors/${e}/`:e.toString();if(void 0!==r){let e="";i&&(a+="?"),Se(r,function(t,n){e+=`\n - ${n}: ${t}`,i&&(a+=encodeURI(n)+"="+encodeURI(t))}),a+=e}le(_,"displayError",{chart:n,code:e,message:a,params:r},function(){if(t)throw Error(a);De.console&&-1===je.messages.indexOf(a)&&console.warn(a)}),je.messages.push(a)}function Fe(e,t){let n,r=e.options.index,o=t.length;for(n=e.options.isInternal?o:0;n<o+1;n++)if(!t[n]||ye(r)&&r<Te(t[n].options.index,t[n]._i)||t[n].options.isInternal){t.splice(n,0,e);break}return n}(je||(je={})).messages=[];let He={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5};Math.easeInOutSine=function(e){return-.5*(Math.cos(Math.PI*e)-1)};let _e=(u=Math.random().toString(36).substring(2,9)+"-",d=0,function(){return"highcharts-"+(s?"":u)+d++});De.jQuery&&(De.jQuery.fn.highcharts=function(){let e=[].slice.call(arguments);if(this[0])return e[0]?(new(_[ve(e[0])?e.shift():"Chart"])(this[0],e[0],e[1]),this):ze[X(this[0],"data-highcharts-chart")]});let{pageLang:We,win:Ke}=_,Ve=_.isSafari&&Ke.Intl&&!Ke.Intl.DateTimeFormat.prototype.formatRange,Ge=class{constructor(e,t){this.options={timezone:"UTC"},this.variableTimezone=!1,this.Date=Ke.Date,this.update(e),this.lang=t}update(e={}){this.dTLCache={},this.options=e=Ce(!0,this.options,e);let{timezoneOffset:t,useUTC:n,locale:r}=e;this.Date=e.Date||Ke.Date||Date;let o=e.timezone;ee(n)&&(o=n?"UTC":void 0),t&&t%60==0&&(o="Etc/GMT"+(t>0?"+":"")+t/60),this.variableTimezone="UTC"!==o&&0!==(null==o?void 0:o.indexOf("Etc/GMT")),this.timezone=o,this.lang&&r&&(this.lang.locale=r),["months","shortMonths","weekdays","shortWeekdays"].forEach(e=>{let t=/months/i.test(e),n=/short/.test(e),r={timeZone:"UTC"};r[t?"month":"weekday"]=n?"short":"long",this[e]=(t?[0,1,2,3,4,5,6,7,8,9,10,11]:[3,4,5,6,7,8,9]).map(e=>this.dateFormat(r,24*(t?31:1)*36e5*e))})}toParts(e){let[t,n,r,o,i,a,l]=this.dateTimeFormat({weekday:"narrow",day:"numeric",month:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},e,"es").split(/(?:, | |\/|:)/g);return[o,r-1,n,i,a,l,Math.floor(Number(e)||0)%1e3,"DLMXJVS".indexOf(t)].map(Number)}dateTimeFormat(e,t,n=this.options.locale||We){let r=JSON.stringify(e)+n;ve(e)&&(e=this.str2dtf(e));let o=this.dTLCache[r];if(!o){e.timeZone??(e.timeZone=this.timezone);try{o=new Intl.DateTimeFormat(n,e)}catch(t){/Invalid time zone/i.test(t.message)?(je(34),e.timeZone="UTC",o=new Intl.DateTimeFormat(n,e)):je(t.message,!1)}}return this.dTLCache[r]=o,(null==o?void 0:o.format(t))||""}str2dtf(e,t={}){let n={L:{fractionalSecondDigits:3},S:{second:"2-digit"},M:{minute:"numeric"},H:{hour:"2-digit"},k:{hour:"numeric"},E:{weekday:"narrow"},a:{weekday:"short"},A:{weekday:"long"},d:{day:"2-digit"},e:{day:"numeric"},b:{month:"short"},B:{month:"long"},m:{month:"2-digit"},o:{month:"numeric"},y:{year:"2-digit"},Y:{year:"numeric"}};return Object.keys(n).forEach(r=>{-1!==e.indexOf(r)&&ie(t,n[r])}),t}makeTime(e,t,n=1,r=0,o,i,a){let l=this.Date.UTC(e,t,n,r,o||0,i||0,a||0);if("UTC"!==this.timezone){let e=this.getTimezoneOffset(l);if(l+=e,-1!==[2,3,8,9,10,11].indexOf(t)&&(r<5||r>20)){let t=this.getTimezoneOffset(l);e!==t?l+=t-e:e-36e5!==this.getTimezoneOffset(l-36e5)||Ve||(l-=36e5)}}return l}parse(e){if(!ve(e))return e??void 0;let t=(e=e.replace(/\//g,"-").replace(/(GMT|UTC)/,"")).indexOf("Z")>-1||/([+-][0-9]{2}):?[0-9]{2}$/.test(e),n=/^[0-9]{4}-[0-9]{2}(-[0-9]{2}|)$/.test(e);t||n||(e+="Z");let r=Date.parse(e);return ye(r)?r+(!t||n?this.getTimezoneOffset(r):0):void 0}getTimezoneOffset(e){if("UTC"!==this.timezone){let[t,n,r,o,i=0]=this.dateTimeFormat({timeZoneName:"shortOffset"},e,"en").split(/(GMT|:)/).map(Number),a=-60*(r+i/60)*6e4;if(ye(a))return a}return 0}dateFormat(e,t,n){let r=this.lang;if(!ee(t)||isNaN(t))return(null==r?void 0:r.invalidDate)||"";if(ve(e=e??"%Y-%m-%d %H:%M:%S")){let n,o=/%\[([a-zA-Z]+)\]/g;for(;n=o.exec(e);)e=e.replace(n[0],this.dateTimeFormat(n[1],t,null==r?void 0:r.locale))}if(ve(e)&&-1!==e.indexOf("%")){let n=this,[o,i,a,l,s,c,u,d]=this.toParts(t),h=(null==r?void 0:r.weekdays)||this.weekdays,p=(null==r?void 0:r.shortWeekdays)||this.shortWeekdays,f=(null==r?void 0:r.months)||this.months,m=(null==r?void 0:r.shortMonths)||this.shortMonths;Se(ie({a:p?p[d]:h[d].substr(0,3),A:h[d],d:$e(a),e:$e(a,2," "),w:d,v:(null==r?void 0:r.weekFrom)??"",b:m[i],B:f[i],m:$e(i+1),o:i+1,y:o.toString().substr(2,2),Y:o,H:$e(l),k:l,I:$e(l%12||12),l:l%12||12,M:$e(s),p:l<12?"AM":"PM",P:l<12?"am":"pm",S:$e(c),L:$e(u,3)},_.dateFormats),function(r,o){if(ve(e))for(;-1!==e.indexOf("%"+o);)e=e.replace("%"+o,"function"==typeof r?r.call(n,t,n):r)})}else if(we(e)){let n=(this.getTimezoneOffset(t)||0)/36e5,r=this.timezone||"Etc/GMT"+(n>=0?"+":"")+n,{prefix:o="",suffix:i=""}=e;e=o+this.dateTimeFormat(ie({timeZone:r},e),t)+i}return n?Be(e):e}resolveDTLFormat(e){return we(e,!0)?we(e,!0)&&void 0===e.main?{main:e}:e:{main:(e=Ae(e))[0],from:e[1],to:e[2]}}getDateFormat(e,t,n,r){let o=this.dateFormat("%m-%d %H:%M:%S.%L",t),i="01-01 00:00:00.000",a={millisecond:15,second:12,minute:9,hour:6,day:3},l="millisecond",s=l;for(l in He){if(e&&e===He.week&&+this.dateFormat("%w",t)===n&&o.substr(6)===i.substr(6)){l="week";break}if(e&&He[l]>e){l=s;break}if(a[l]&&o.substr(a[l])!==i.substr(a[l]))break;"week"!==l&&(s=l)}return this.resolveDTLFormat(r[l]).main}},qe=class extends Ge{getTimeTicks(e,t,n,r){let o,i=this,a=[],l={},{count:s=1,unitRange:c}=e,[u,d,h,p,f,m]=i.toParts(t),g=(t||0)%1e3;if(r??(r=1),ee(t)){if(g=c>=He.second?0:s*Math.floor(g/s),c>=He.second&&(m=c>=He.minute?0:s*Math.floor(m/s)),c>=He.minute&&(f=c>=He.hour?0:s*Math.floor(f/s)),c>=He.hour&&(p=c>=He.day?0:s*Math.floor(p/s)),c>=He.day&&(h=c>=He.month?1:Math.max(1,s*Math.floor(h/s))),c>=He.month&&(d=c>=He.year?0:s*Math.floor(d/s)),c>=He.year&&(u-=u%s),c===He.week){s&&(t=i.makeTime(u,d,h,p,f,m,g));let e=this.dateTimeFormat({timeZone:this.timezone,weekday:"narrow"},t,"es"),n="DLMXJVS".indexOf(e);h+=-n+r+(n<r?-7:0)}t=i.makeTime(u,d,h,p,f,m,g),i.variableTimezone&&ee(n)&&(o=n-t>4*He.month||i.getTimezoneOffset(t)!==i.getTimezoneOffset(n));let e=t,y=1;for(;e<n;)a.push(e),c===He.year?e=i.makeTime(u+y*s,0):c===He.month?e=i.makeTime(u,d+y*s):!o||c!==He.day&&c!==He.week?o&&c===He.hour&&s>1?e=i.makeTime(u,d,h,p+y*s):e+=c*s:e=i.makeTime(u,d,h+y*s*(c===He.day?1:7)),y++;a.push(e),c<=He.hour&&a.length<1e4&&a.forEach(e=>{e%18e5==0&&"000000000"===i.dateFormat("%H%M%S%L",e)&&(l[e]="day")})}return a.info=ie(e,{higherRanks:l,totalRange:c*s}),a}},{isTouchDevice:Xe}=_,Ue={colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"],symbols:["circle","diamond","square","triangle","triangle-down"],lang:{weekFrom:"week from",chartTitle:"Chart title",locale:void 0,loading:"Loading...",months:void 0,seriesName:"Series {add index 1}",shortMonths:void 0,weekdays:void 0,numericSymbols:["k","M","G","T","P","E"],pieSliceName:"Slice",resetZoom:"Reset zoom",yAxisTitle:"Values",resetZoomTitle:"Reset zoom level 1:1"},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,timezone:"UTC",timezoneOffset:0,useUTC:void 0},chart:{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",margin:15,minScale:.67},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:""},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",events:{},layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{color:"#333333",fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:e=>Math.sqrt(1-Math.pow(e-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%[AebHMSL]",second:"%[AebHMS]",minute:"%[AebHM]",hour:"%[AebHM]",day:"%[AebY]",week:"%v %[AebY]",month:"%[BY]",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,showDelay:0,padding:8,position:{x:0,y:3},shared:!1,snap:Xe?25:10,headerFormat:'<span style="font-size: 0.8em">{ucfirst point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}},Ye=new qe(Ue.time,Ue.lang),Ze={defaultOptions:Ue,defaultTime:Ye,getOptions:function(){return Ue},setOptions:function(e){var t;return le(_,"setOptions",{options:e}),Ce(!0,Ue,e),e.time&&Ye.update(Ue.time),e.lang&&"locale"in e.lang&&Ye.update({locale:e.lang.locale}),(null==(t=e.lang)?void 0:t.chartTitle)&&(Ue.title={...Ue.title,text:e.lang.chartTitle}),Ue}},{win:Qe}=_,Je=(e,t,n)=>`color-mix(in srgb,${e},${t} ${100*n}%)`,et=e=>ve(e)&&!!e&&"none"!==e;class tt{static parse(e){return e?new tt(e):tt.None}constructor(e){let t,n,r,o;this.rgba=[NaN,NaN,NaN,NaN],this.input=e;const i=_.Color;if(i&&i!==tt)return new i(e);if("object"==typeof e&&void 0!==e.stops)this.stops=e.stops.map(e=>new tt(e[1]));else if("string"==typeof e)for(this.input=e=tt.names[e.toLowerCase()]||e,r=tt.parsers.length;r--&&!n;)(t=(o=tt.parsers[r]).regex.exec(e))&&(n=o.parse(t));n&&(this.rgba=n)}get(e){let t=this.input,n=this.rgba;if(this.output)return this.output;if("object"==typeof t&&void 0!==this.stops){let n=Ce(t);return n.stops=[].slice.call(n.stops),this.stops.forEach((t,r)=>{n.stops[r]=[n.stops[r][0],t.get(e)]}),n}return n&&ye(n[0])?"rgb"===e||!e&&1===n[3]?"rgb("+n[0]+","+n[1]+","+n[2]+")":"a"===e?`${n[3]}`:"rgba("+n.join(",")+")":t}brighten(e){let t=this.rgba;if(this.stops)this.stops.forEach(function(t){t.brighten(e)});else if(ye(e)&&0!==e)if(ye(t[0]))for(let n=0;n<3;n++)t[n]+=Me(255*e),t[n]<0&&(t[n]=0),t[n]>255&&(t[n]=255);else tt.useColorMix&&et(this.input)&&(this.output=Je(this.input,e>0?"white":"black",Math.abs(e)));return this}setOpacity(e){return this.rgba[3]=e,this}tweenTo(e,t){let n=this.rgba,r=e.rgba;if(!ye(n[0])||!ye(r[0]))return tt.useColorMix&&et(this.input)&&et(e.input)&&t<.99?Je(this.input,e.input,t):e.input||"none";let o=1!==r[3]||1!==n[3],i=(e,r)=>e+(n[r]-e)*(1-t),a=r.slice(0,3).map(i).map(Math.round);return o&&a.push(i(r[3],3)),(o?"rgba(":"rgb(")+a.join(",")+")"}}tt.names={white:"#ffffff",black:"#000000"},tt.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(e){return[Me(e[1]),Me(e[2]),Me(e[3]),parseFloat(e[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(e){return[Me(e[1]),Me(e[2]),Me(e[3]),1]}},{regex:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?$/i,parse:function(e){return[Me(e[1]+e[1],16),Me(e[2]+e[2],16),Me(e[3]+e[3],16),ee(e[4])?Me(e[4]+e[4],16)/255:1]}},{regex:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?$/i,parse:function(e){return[Me(e[1],16),Me(e[2],16),Me(e[3],16),ee(e[4])?Me(e[4],16)/255:1]}}],tt.useColorMix=null==(l=Qe.CSS)?void 0:l.supports("color","color-mix(in srgb,red,blue 9%)"),tt.None=new tt("");let{parse:nt}=tt,{win:rt}=_;class ot{constructor(e,t,n){this.pos=NaN,this.options=t,this.elem=e,this.prop=n}dSetter(){let e=this.paths,t=null==e?void 0:e[0],n=null==e?void 0:e[1],r=this.now||0,o=[];if(1!==r&&t&&n)if(t.length===n.length&&r<1)for(let e=0;e<n.length;e++){let i=t[e],a=n[e],l=[];for(let e=0;e<a.length;e++){let t=i[e],n=a[e];ye(t)&&ye(n)&&("A"!==a[0]||4!==e&&5!==e)?l[e]=t+r*(n-t):l[e]=n}o.push(l)}else o=n;else o=this.toD||[];this.elem.attr("d",o,void 0,!0)}update(){let e=this.elem,t=this.prop,n=this.now,r=this.options.step;this[t+"Setter"]?this[t+"Setter"]():e.attr?e.element&&e.attr(t,n,null,!0):e.style[t]=n+this.unit,r&&r.call(e,n,this)}run(e,t,n){let r=this,o=r.options,i=function(e){return!i.stopped&&r.step(e)},a=rt.requestAnimationFrame||function(e){setTimeout(e,13)},l=function(){for(let e=0;e<ot.timers.length;e++)ot.timers[e]()||ot.timers.splice(e--,1);ot.timers.length&&a(l)};e!==t||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=e,this.end=t,this.unit=n,this.now=this.start,this.pos=0,i.elem=this.elem,i.prop=this.prop,i()&&1===ot.timers.push(i)&&a(l)):(delete o.curAnim[this.prop],o.complete&&0===Object.keys(o.curAnim).length&&o.complete.call(this.elem))}step(e){let t,n,r=+new Date,o=this.options,i=this.elem,a=o.complete,l=o.duration,s=o.curAnim;return i.attr&&!i.element?t=!1:e||r>=l+this.startTime?(this.now=this.end,this.pos=1,this.update(),s[this.prop]=!0,n=!0,Se(s,function(e){!0!==e&&(n=!1)}),n&&a&&a.call(i),t=!1):(this.pos=o.easing((r-this.startTime)/l),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0),t}initPath(e,t,n){let r,o,i,a,l=e.startX,s=e.endX,c=n.slice(),u=e.isArea,d=u?2:1,h=t&&n.length>t.length&&n.hasStackedCliffs,p=null==t?void 0:t.slice();if(!p||h)return[c,c];function f(e,t){for(;e.length<o;){let n=e[0],r=t[o-e.length];if(r&&"M"===n[0]&&("C"===r[0]?e[0]=["C",n[1],n[2],n[1],n[2],n[1],n[2]]:e[0]=["L",n[1],n[2]]),e.unshift(n),u){let t=e.pop();e.push(e[e.length-1],t)}}}function m(e){for(;e.length<o;){let t=e[Math.floor(e.length/d)-1].slice();if("C"===t[0]&&(t[1]=t[5],t[2]=t[6]),u){let n=e[Math.floor(e.length/d)].slice();e.splice(e.length/2,0,t,n)}else e.push(t)}}if(l&&s&&s.length){for(i=0;i<l.length;i++){if(l[i]===s[0]){r=i;break}if(l[0]===s[s.length-l.length+i]){r=i,a=!0;break}if(l[l.length-1]===s[s.length-l.length+i]){r=l.length-i;break}}void 0===r&&(p=[])}return p.length&&ye(r)&&(o=c.length+r*d,a?(f(p,c),m(c)):(f(c,p),m(p))),[p,c]}fillSetter(){ot.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,nt(this.start).tweenTo(nt(this.end),this.pos),void 0,!0)}}function it(e){return we(e)?Ce({duration:500,defer:0},e):{duration:500*!!e,defer:0}}function at(e,t){let n=ot.timers.length;for(;n--;)ot.timers[n].elem!==e||t&&t!==ot.timers[n].prop||(ot.timers[n].stopped=!0)}ot.timers=[];let lt={animate:function(e,t,n){let r,o,i,a,l="";we(n)||(a=arguments,n={duration:a[2],easing:a[3],complete:a[4]}),ye(n.duration)||(n.duration=400),n.easing="function"==typeof n.easing?n.easing:Math[n.easing]||Math.easeInOutSine,n.curAnim=Ce(t),Se(t,function(a,s){at(e,s),i=new ot(e,n,s),o=void 0,"d"===s&&be(t.d)?(i.paths=i.initPath(e,e.pathArray,t.d),i.toD=t.d,r=0,o=1):e.attr?r=e.attr(s):(r=parseFloat(he(e,s))||0,"opacity"!==s&&(l="px")),o||(o=a),"string"==typeof o&&o.match("px")&&(o=o.replace(/px/g,"")),i.run(r,o,l)})},animObject:it,getDeferredAnimation:function(e,t,n){let r=it(t),o=n?[n]:e.series,i=0,a=0;return o.forEach(e=>{let n=it(e.options.animation);i=we(t)&&ee(t.defer)?r.defer:Math.max(i,n.duration+n.defer),a=Math.min(r.duration,n.duration)}),e.renderer.forExport&&(i=0),{defer:Math.max(0,i-a),duration:Math.min(i,a)}},setAnimation:function(e,t){t.renderer.globalAnimation=Te(e,t.options.chart.animation,!0)},stop:at},{SVG_NS:st,win:ct}=_,{trustedTypes:ut}=ct,dt=ut&&xe(ut.createPolicy)&&ut.createPolicy("highcharts",{createHTML:e=>e}),ht=dt?dt.createHTML(""):"";class pt{static filterUserAttributes(e){return Se(e,(t,n)=>{let r=!0;-1===pt.allowedAttributes.indexOf(n)&&(r=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(n)&&(r=ve(t)&&pt.allowedReferences.some(e=>0===t.indexOf(e))),r||(je(33,!1,void 0,{"Invalid attribute in config":`${n}`}),delete e[n]),ve(t)&&e[n]&&(e[n]=t.replace(/</g,"<"))}),e}static parseStyle(e){return e.split(";").reduce((e,t)=>{let n=t.split(":").map(e=>e.trim()),r=n.shift();return r&&n.length&&(e[r.replace(/-([a-z])/g,e=>e[1].toUpperCase())]=n.join(":")),e},{})}static setElementHTML(e,t){e.innerHTML=pt.emptyHTML,t&&new pt(t).addToDOM(e)}constructor(e){this.nodes="string"==typeof e?this.parseMarkup(e):e}addToDOM(e){return function e(t,n){let r;return Ae(t).forEach(function(t){let o,i=t.tagName,a=t.textContent?_.doc.createTextNode(t.textContent):void 0,l=pt.bypassHTMLFiltering;if(i)if("#text"===i)o=a;else if(-1!==pt.allowedTags.indexOf(i)||l){let r="svg"===i?st:n.namespaceURI||st,s=_.doc.createElementNS(r,i),c=t.attributes||{};Se(t,function(e,t){"tagName"!==t&&"attributes"!==t&&"children"!==t&&"style"!==t&&"textContent"!==t&&(c[t]=e)}),X(s,l?c:pt.filterUserAttributes(c)),t.style&&J(s,t.style),a&&s.appendChild(a),e(t.children||[],s),o=s}else je(33,!1,void 0,{"Invalid tagName in config":i});o&&n.appendChild(o),r=o}),r}(this.nodes,e)}parseMarkup(e){let t,n=[];e=e.trim().replace(/ style=(["'])/g," data-style=$1");try{t=(new DOMParser).parseFromString(dt?dt.createHTML(e):e,"text/html")}catch{}if(!t){let n=Z("div");n.innerHTML=e,t={body:n}}let r=(e,t)=>{let n=e.nodeName.toLowerCase(),o={tagName:n};"#text"===n&&(o.textContent=e.textContent||"");let i=e.attributes;if(i){let e={};[].forEach.call(i,t=>{"data-style"===t.name?o.style=pt.parseStyle(t.value):e[t.name]=t.value}),o.attributes=e}if(e.childNodes.length){let t=[];[].forEach.call(e.childNodes,e=>{r(e,t)}),t.length&&(o.children=t)}t.push(o)};return[].forEach.call(t.body.childNodes,e=>r(e,n)),n}}pt.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","disabled","dx","dy","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","in2","markerHeight","markerWidth","offset","opacity","operator","orient","padding","paddingLeft","paddingRight","patternUnits","r","radius","refX","refY","result","role","rowspan","scope","slope","src","startOffset","stdDeviation","stroke-linecap","stroke-width","stroke","style","summary","tabindex","tableValues","target","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],pt.allowedReferences=["https://","http://","mailto:","/","../","./","#"],pt.allowedTags=["#text","a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","tbody","td","text","textPath","th","thead","title","tr","tspan","u","ul"],pt.emptyHTML=ht,pt.bypassHTMLFiltering=!1;let{defaultOptions:ft,defaultTime:mt}=Ze,{pageLang:gt}=_,yt={add:(e,t)=>e+t,divide:(e,t)=>0!==t?e/t:"",eq:(e,t)=>e==t,each:function(e){let t=arguments[arguments.length-1];return!!be(e)&&e.map((n,r)=>bt(t.body,ie(we(n)?n:{"@this":n},{"@index":r,"@first":0===r,"@last":r===e.length-1}))).join("")},ge:(e,t)=>e>=t,gt:(e,t)=>e>t,if:e=>!!e,le:(e,t)=>e<=t,lt:(e,t)=>e<t,multiply:(e,t)=>e*t,ne:(e,t)=>e!=t,subtract:(e,t)=>e-t,ucfirst:Be,unless:e=>!e},vt={};function bt(e="",t,n){var r;let o,i,a,l=RegExp("\\{([\\p{L}\\p{M}\\d:\\.,;\\-\\/<>\\[\\]%_@+\"'’= #\\(\\)]+)\\}","gu"),s=RegExp("\\(([\\p{L}\\p{M}\\d:\\.,;\\-\\/<>\\[\\]%_@+\"'= ]+)\\)","gu"),c=[],u=/f$/,d=/\.(\d)/,h=(null==(r=null==n?void 0:n.options)?void 0:r.lang)||ft.lang,p=(null==n?void 0:n.time)||mt,f=(null==n?void 0:n.numberFormatter)||xt.bind(n),m=(e="")=>{let n;return"true"===e||"false"!==e&&((n=Number(e)).toString()===e?n:/^["'].+["']$/.test(e)?e.slice(1,-1):de(e,t))},g=0;for(;null!==(o=l.exec(e));){let n=o,r=s.exec(o[1]);r&&(o=r,a=!0),(null==i?void 0:i.isBlock)||(i={ctx:t,expression:o[1],find:o[0],isBlock:"#"===o[1].charAt(0),start:o.index,startInner:o.index+o[0].length,length:o[0].length});let l=(i.isBlock?n:o)[1].split(" ")[0].replace("#","");yt[l]&&(i.isBlock&&l===i.fn&&g++,i.fn||(i.fn=l));let u="else"===o[1];if(i.isBlock&&i.fn&&(o[1]===`/${i.fn}`||u))if(g)!u&&g--;else{let t=i.startInner,n=e.substr(t,o.index-t);void 0===i.body?(i.body=n,i.startInner=o.index+o[0].length):i.elseBody=n,i.find+=n+o[0],u||(c.push(i),i=void 0)}else i.isBlock||c.push(i);if(r&&!(null==i?void 0:i.isBlock))break}return c.forEach(r=>{let o,i,{body:a,elseBody:l,expression:c,fn:g}=r;if(g){let e,s=[r],u=[],d=c.length,h=0;for(i=0;i<=d;i++){let t=c.charAt(i);e||'"'!==t&&"'"!==t?e===t&&(e=""):e=t,e||" "!==t&&i!==d||(u.push(c.substr(h,i-h)),h=i+1)}for(i=yt[g].length;i--;)s.unshift(m(u[i+1]));o=yt[g].apply(t,s),r.isBlock&&"boolean"==typeof o&&(o=bt(o?a:l,t,n))}else{let e=/^["'].+["']$/.test(c)?[c]:c.split(":");if(o=m(e.shift()||""),e.length&&"number"==typeof o){let t=e.join(":");if(u.test(t)){let e=parseInt((t.match(d)||["","-1"])[1],10);null!==o&&(o=f(o,e,h.decimalPoint,t.indexOf(",")>-1?h.thousandsSep:""))}else o=p.dateFormat(t,o)}s.lastIndex=0,s.test(r.find)&&ve(o)&&(o=`"${o}"`)}e=e.replace(r.find,Te(o,""))}),a?bt(e,t,n):e}function xt(e,t,n,r){var o;t*=1;let i,a,[l,s]=(e=+e||0).toString().split("e").map(Number),c=(null==(o=null==this?void 0:this.options)?void 0:o.lang)||ft.lang,u=(e.toString().split(".")[1]||"").split("e")[0].length,d=t,h={};n??(n=c.decimalPoint),r??(r=c.thousandsSep),-1===t?t=Math.min(u,20):ye(t)?t&&s<0&&((a=t+s)>=0?(l=+l.toExponential(a).split("e")[0],t=a):(l=Math.floor(l),e=t<20?+(l*Math.pow(10,s)).toFixed(t):0,s=0)):t=2,s&&(t??(t=2),e=l),ye(t)&&t>=0&&(h.minimumFractionDigits=t,h.maximumFractionDigits=t),""===r&&(h.useGrouping=!1);let p=r||n,f=p?"en":(null==this?void 0:this.locale)||c.locale||gt,m=JSON.stringify(h)+f;return i=(vt[m]??(vt[m]=new Intl.NumberFormat(f,h))).format(e),p&&(i=i.replace(/([,\.])/g,"_$1").replace(/_\,/g,r??",").replace("_.",n??".")),(t||0!=+i)&&(!(s<0)||d)||(i="0"),s&&0!=+i&&(i+="e"+(s<0?"":"+")+s),i}let wt={dateFormat:function(e,t,n){return mt.dateFormat(e,t,n)},format:bt,helpers:yt,numberFormat:xt};(m=S||(S={})).rendererTypes={},m.getRendererType=function(e=h){return m.rendererTypes[e]||m.rendererTypes[h]},m.registerRendererType=function(e,t,n){m.rendererTypes[e]=t,(!h||n)&&(h=e,_.Renderer=t)};let Ct=S;(E||(E={})).distribute=function e(t,n,r){let o,i,a,l=t,s=l.reducedLen||n,c=(e,t)=>e.target-t.target,u=[],d=t.length,h=[],p=u.push,f=!0,m=0;for(o=d;o--;)m+=t[o].size;if(m>s){if(Re(t,(e,t)=>(t.rank||0)-(e.rank||0)),t[0].rank===t[t.length-1].rank){let e=[[0,d-1]];for(;e.length&&m>s;){let n=e.shift();if(!n)break;i=t[o=Math.floor((n[0]+n[1])/2)],Pe(h,o)&&(m-=i.size),n[0]<o&&e.push([n[0],o-1]),o<n[1]&&e.push([o+1,n[1]])}}else for(o=d-1;m>s&&o>=0;)i=t[o],Pe(h,o)&&(m-=i.size),o--;h.sort((e,t)=>t-e).forEach(e=>p.apply(u,t.splice(e,1)))}for(Re(t,c),t=t.map(e=>({size:e.size,targets:[e.target],align:Te(e.align,.5)}));f;){for(o=t.length;o--;)i=t[o],a=(Math.min.apply(0,i.targets)+Math.max.apply(0,i.targets))/2,i.pos=U(a-i.size*i.align,0,n-i.size);for(o=t.length,f=!1;o--;)o>0&&t[o-1].pos+t[o-1].size>t[o].pos&&(t[o-1].size+=t[o].size,t[o-1].targets=t[o-1].targets.concat(t[o].targets),t[o-1].align=.5,t[o-1].pos+t[o-1].size>n&&(t[o-1].pos=n-t[o-1].size),t.splice(o,1),f=!0)}return p.apply(l,u),o=0,t.some(t=>{let i=0;return(t.targets||[]).some(()=>(l[o].pos=t.pos+i,void 0!==r&&Math.abs(l[o].pos-l[o].target)>r?(l.slice(0,o+1).forEach(e=>delete e.pos),l.reducedLen=(l.reducedLen||n)-.1*n,l.reducedLen>.1*n&&e(l,n,r),!0):(i+=l[o].size,o++,!1)))}),Re(l,c),l};let kt=E,{animate:St,animObject:Et,stop:$t}=lt,{deg2rad:Tt,doc:Mt,svg:Pt,SVG_NS:Nt,win:It,isFirefox:Ot}=_;class At{_defaultGetter(e){let t=Te(this[e+"Value"],this[e],this.element?this.element.getAttribute(e):null,0);return/^-?[\d\.]+$/.test(t)&&(t=parseFloat(t)),t}_defaultSetter(e,t,n){n.setAttribute(t,e)}add(e){let t,n=this.renderer,r=this.element;return e&&(this.parentGroup=e),void 0!==this.textStr&&"text"===this.element.nodeName&&n.buildText(this),this.added=!0,(!e||e.handleZ||this.zIndex)&&(t=this.zIndexSetter()),t||(e?e.element:n.box).appendChild(r),this.onAdd&&this.onAdd(),this}addClass(e,t){let n=t?"":this.attr("class")||"";return(e=(e||"").split(/ /g).reduce(function(e,t){return-1===n.indexOf(t)&&e.push(t),e},n?[n]:[]).join(" "))!==n&&this.attr("class",e),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(e,t,n,r=!0){let o=this.renderer,i=o.alignedObjects,a=!!e;e?(this.alignOptions=e,this.alignByTranslate=t,this.alignTo=n):(e=this.alignOptions||{},t=this.alignByTranslate,n=this.alignTo);let l=!n||ve(n)?n||"renderer":void 0;l&&(a&&Pe(i,this),n=void 0);let s=Te(n,o[l],o),c=(s.x||0)+(e.x||0)+((s.width||0)-(e.width||0))*se(e.align),u=(s.y||0)+(e.y||0)+((s.height||0)-(e.height||0))*se(e.verticalAlign),d={};return e.align&&(d["text-align"]=e.align),d[t?"translateX":"x"]=Math.round(c),d[t?"translateY":"y"]=Math.round(u),r&&(this[this.placed?"animate":"attr"](d),this.placed=!0),this.alignAttr=d,this}alignSetter(e){let t={left:"start",center:"middle",right:"end"};t[e]&&(this.alignValue=e,this.element.setAttribute("text-anchor",t[e]))}animate(e,t,n){let r=Et(Te(t,this.renderer.globalAnimation,!0)),o=r.defer;return Mt.hidden&&(r.duration=0),0!==r.duration?(n&&(r.complete=n),Le(()=>{this.element&&St(this,e,r)},o)):(this.attr(e,void 0,n||r.complete),Se(e,function(e,t){r.step&&r.step.call(this,e,{prop:t,pos:1,elem:this})},this)),this}applyTextOutline(e){let t=this.element;-1!==e.indexOf("contrast")&&(e=e.replace(/contrast/g,this.renderer.getContrast(t.style.fill)));let n=e.indexOf(" "),r=e.substring(n+1),o=e.substring(0,n);if(o&&"none"!==o&&_.svg){this.fakeTS=!0,o=o.replace(/(^[\d\.]+)(.*?)$/g,function(e,t,n){return 2*Number(t)+n}),this.removeTextOutline();let e=Mt.createElementNS(Nt,"tspan");X(e,{class:"highcharts-text-outline",fill:r,stroke:r,"stroke-width":o,"stroke-linejoin":"round"});let n=t.querySelector("textPath")||t;[].forEach.call(n.childNodes,t=>{let n=t.cloneNode(!0);n.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(e=>n.removeAttribute(e)),e.appendChild(n)});let i=0;[].forEach.call(n.querySelectorAll("text tspan"),e=>{i+=Number(e.getAttribute("dy"))});let a=Mt.createElementNS(Nt,"tspan");a.textContent="",X(a,{x:Number(t.getAttribute("x")),dy:-i}),e.appendChild(a),n.insertBefore(e,n.firstChild)}}attr(e,t,n,r){let o,i,a,{element:l}=this,s=At.symbolCustomAttribs,c=this;return"string"==typeof e&&void 0!==t&&(o=e,(e={})[o]=t),"string"==typeof e?c=(this[e+"Getter"]||this._defaultGetter).call(this,e,l):(Se(e,function(t,n){a=!1,r||$t(this,n),this.symbolName&&-1!==s.indexOf(n)&&(i||(this.symbolAttr(e),i=!0),a=!0),this.rotation&&("x"===n||"y"===n)&&(this.doTransform=!0),a||(this[n+"Setter"]||this._defaultSetter).call(this,t,n,l)},this),this.afterSetters()),n&&n.call(this),c}clip(e){if(e&&!e.clipPath){let t=_e()+"-",n=this.renderer.createElement("clipPath").attr({id:t}).add(this.renderer.defs);ie(e,{clipPath:n,id:t,count:0}),e.add(n)}return this.attr("clip-path",e?`url(${this.renderer.url}#${e.id})`:"none")}crisp(e,t){t=Math.round(t||e.strokeWidth||0);let n=e.x||this.x||0,r=e.y||this.y||0,o=(e.width||this.width||0)+n,i=(e.height||this.height||0)+r,a=Q(n,t),l=Q(r,t);return ie(e,{x:a,y:l,width:Q(o,t)-a,height:Q(i,t)-l}),ee(e.strokeWidth)&&(e.strokeWidth=t),e}complexColor(e,t,n){let r,o,i,a,l,s,c,u,d,h,p,f=this.renderer,m=[];le(this.renderer,"complexColor",{args:arguments},function(){if(e.radialGradient?o="radialGradient":e.linearGradient&&(o="linearGradient"),o){if(i=e[o],l=f.gradients,s=e.stops,d=n.radialReference,be(i)&&(e[o]=i={x1:i[0],y1:i[1],x2:i[2],y2:i[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===o&&d&&!ee(i.gradientUnits)&&(a=i,i=Ce(i,f.getRadialAttr(d,a),{gradientUnits:"userSpaceOnUse"})),Se(i,function(e,t){"id"!==t&&m.push(t,e)}),Se(s,function(e){m.push(e)}),l[m=m.join(",")])h=l[m].attr("id");else{i.id=h=_e();let e=l[m]=f.createElement(o).attr(i).add(f.defs);e.radAttr=a,e.stops=[],s.forEach(function(t){0===t[1].indexOf("rgba")?(c=(r=tt.parse(t[1])).get("rgb"),u=r.get("a")):(c=t[1],u=1);let n=f.createElement("stop").attr({offset:t[0],"stop-color":c,"stop-opacity":u}).add(e);e.stops.push(n)})}p="url("+f.url+"#"+h+")",n.setAttribute(t,p),n.gradient=m,e.toString=function(){return p}}})}css(e){let t,n=this.styles,r={},o=this.element,i=!n;if(n&&Se(e,function(e,t){n&&n[t]!==e&&(r[t]=e,i=!0)}),i){n&&(e=ie(n,r)),null===e.width||"auto"===e.width?delete this.textWidth:"text"===o.nodeName.toLowerCase()&&e.width&&(t=this.textWidth=Me(e.width)),ie(this.styles,e),t&&!Pt&&this.renderer.forExport&&delete e.width;let i=Ot&&e.fontSize||null;i&&(ye(i)||/^\d+$/.test(i))&&(e.fontSize+="px");let a=Ce(e);o.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","whiteSpace","width"].forEach(e=>a&&delete a[e]),a.color&&(a.fill=a.color,delete a.color)),J(o,a)}return this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),e.textOutline&&this.applyTextOutline(e.textOutline)),this}dashstyleSetter(e){let t,n=this["stroke-width"];if("inherit"===n&&(n=1),e){let r=(e=e.toLowerCase()).replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(t=r.length;t--;)r[t]=""+Me(r[t])*Te(n,NaN);e=r.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",e)}}destroy(){let e,t=this,{element:n={},renderer:r,stops:o}=t,i=n.ownerSVGElement,a="SPAN"===n.nodeName&&t.parentGroup||void 0;if(n.onclick=n.onmouseout=n.onmouseover=n.onmousemove=n.point=null,$t(t),t.clipPath&&i){let e=t.clipPath;[].forEach.call(i.querySelectorAll("[clip-path],[CLIP-PATH]"),function(t){t.getAttribute("clip-path").indexOf(e.element.id)>-1&&t.removeAttribute("clip-path")}),t.clipPath=e.destroy()}if(o){for(let e of o)e.destroy();o.length=0}for(t.safeRemoveChild(n);(null==a?void 0:a.div)&&0===a.div.childNodes.length;)e=a.parentGroup,t.safeRemoveChild(a.div),delete a.div,a=e;t.alignOptions&&oe(r.alignedObjects,t),Se(t,(e,n)=>{var r,o,i;((null==(r=t[n])?void 0:r.parentGroup)===t||-1!==["connector","foreignObject"].indexOf(n))&&(null==(i=null==(o=t[n])?void 0:o.destroy)||i.call(o)),delete t[n]})}dSetter(e,t,n){be(e)&&("string"==typeof e[0]&&(e=this.renderer.pathToSegments(e)),this.pathArray=e,e=e.reduce((e,t,n)=>(null==t?void 0:t.join)?(n?e+" ":"")+t.join(" "):(t||"").toString(),"")),/(NaN| {2}|^$)/.test(e)&&(e="M 0 0"),this[t]!==e&&(n.setAttribute(t,e),this[t]=e)}fillSetter(e,t,n){"string"==typeof e?n.setAttribute(t,e):e&&this.complexColor(e,t,n)}hrefSetter(e,t,n){n.setAttributeNS("http://www.w3.org/1999/xlink",t,e)}getBBox(e,t){let n,r,o,{element:i,renderer:a,styles:l,textStr:s}=this,{cache:c,cacheKeys:u}=a,d=i.namespaceURI===this.SVG_NS,h=Te(t,this.rotation,0),p=a.styledMode?i&&At.prototype.getStyle.call(i,"font-size"):l.fontSize,f=this.getBBoxCacheKey([a.rootFontSize,this.textWidth,this.alignValue,l.fontWeight,l.lineClamp,l.textOverflow,p,h]);if(f&&!e&&(n=c[f]),!n||n.polygon){if(d||a.forExport){try{o=this.fakeTS&&function(e){let t=i.querySelector(".highcharts-text-outline");t&&J(t,{display:e})},xe(o)&&o("none"),n=i.getBBox?ie({},i.getBBox()):{width:i.offsetWidth,height:i.offsetHeight,x:0,y:0},xe(o)&&o("")}catch{}(!n||n.width<0)&&(n={x:0,y:0,width:0,height:0})}else n=this.htmlGetBBox();r=n.height,d&&(n.height=r={"11px,17":14,"13px,20":16}[`${p||""},${Math.round(r)}`]||r),h&&(n=this.getRotatedBox(n,h));let e={bBox:n};le(this,"afterGetBBox",e),n=e.bBox}if(f&&(""===s||n.height>0)){for(;u.length>250;)delete c[u.shift()];c[f]||u.push(f),c[f]=n}return n}getBBoxCacheKey(e){if(ee(this.textStr)){let t=""+this.textStr;return-1===t.indexOf("<")&&(t=t.replace(/\d/g,"0")),[t,...e].join(",")}}getRotatedBox(e,t){let{x:n,y:r,width:o,height:i}=e,{alignValue:a,translateY:l,rotationOriginX:s=0,rotationOriginY:c=0}=this,u=se(a),d=Number(this.element.getAttribute("y")||0)-(l?0:r),h=t*Tt,p=(t-90)*Tt,f=Math.cos(h),m=Math.sin(h),g=o*f,y=o*m,v=Math.cos(p),b=Math.sin(p),[[x,w],[C,k]]=[s,c].map(e=>[e-e*f,e*m]),S=n+u*(o-g)+x+k+d*v,E=S+g,$=E-i*v,T=$-g,M=r+d-u*y-w+C+d*b,P=M+y,N=P-i*b,I=N-y,O=Math.min(S,E,$,T),A=Math.min(M,P,N,I);return{x:O,y:A,width:Math.max(S,E,$,T)-O,height:Math.max(M,P,N,I)-A,polygon:[[S,M],[E,P],[$,N],[T,I]]}}getStyle(e){return It.getComputedStyle(this.element||this,"").getPropertyValue(e)}hasClass(e){return-1!==(""+this.attr("class")).split(" ").indexOf(e)}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(e,t){this.onEvents={},this.opacity=1,this.SVG_NS=Nt,this.element="span"===t||"body"===t?Z(t):Mt.createElementNS(this.SVG_NS,t),this.renderer=e,this.styles={},le(this,"afterInit")}on(e,t){let{onEvents:n}=this;return n[e]&&n[e](),n[e]=V(this.element,e,t),this}opacitySetter(e,t,n){let r=Number(Number(e).toFixed(3));this.opacity=r,n.setAttribute(t,r)}reAlign(){var e;(null==(e=this.alignOptions)?void 0:e.width)&&"left"!==this.alignOptions.align&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(e){return this.attr("class",(""+this.attr("class")).replace(ve(e)?RegExp(`(^| )${e}( |$)`):e," ").replace(/ +/g," ").trim())}removeTextOutline(){let e=this.element.querySelector("tspan.highcharts-text-outline");e&&this.safeRemoveChild(e)}safeRemoveChild(e){let t=e.parentNode;t&&t.removeChild(e)}setRadialReference(e){let t=this.element.gradient&&this.renderer.gradients[this.element.gradient]||void 0;return this.element.radialReference=e,(null==t?void 0:t.radAttr)&&t.animate(this.renderer.getRadialAttr(e,t.radAttr)),this}shadow(e){var t;let{renderer:n}=this,r=Ce(90===(null==(t=this.parentGroup)?void 0:t.rotation)?{offsetX:-1,offsetY:-1}:{},we(e)?e:{}),o=n.shadowDefinition(r);return this.attr({filter:e?`url(${n.url}#${o})`:"none"})}show(e=!0){return this.attr({visibility:e?"inherit":"visible"})}"stroke-widthSetter"(e,t,n){this[t]=e,n.setAttribute(t,e)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let e,t=this.getStyle("stroke-width"),n=0;return/px$/.test(t)?n=Me(t):""!==t&&(X(e=Mt.createElementNS(Nt,"rect"),{width:t,"stroke-width":0}),this.element.parentNode.appendChild(e),n=e.getBBox().width,e.parentNode.removeChild(e)),n}symbolAttr(e){let t=this;At.symbolCustomAttribs.forEach(function(n){t[n]=Te(e[n],t[n])}),t.attr({d:t.renderer.symbols[t.symbolName](t.x,t.y,t.width,t.height,t)})}textSetter(e){e!==this.textStr&&(delete this.textPxLength,this.textStr=e,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(e){let t=this.element,n=t.getElementsByTagName("title")[0]||Mt.createElementNS(this.SVG_NS,"title");t.insertBefore?t.insertBefore(n,t.firstChild):t.appendChild(n),n.textContent=Ie(Te(e,""),[/<[^>]*>/g,""]).replace(/</g,"<").replace(/>/g,">")}toFront(){let e=this.element;return e.parentNode.appendChild(e),this}translate(e,t){return this.attr({translateX:e,translateY:t})}updateTransform(e="transform"){let{element:t,foreignObject:n,matrix:r,padding:o,rotation:i=0,rotationOriginX:a,rotationOriginY:l,scaleX:s,scaleY:c,text:u,translateX:d=0,translateY:h=0}=this,p=[`translate(${d},${h})`];ee(r)&&p.push("matrix("+r.join(",")+")"),i&&(p.push("rotate("+i+" "+(a??t.getAttribute("x")??this.x??0)+" "+(l??t.getAttribute("y")??this.y??0)+")"),"SPAN"!==(null==u?void 0:u.element.tagName)||(null==u?void 0:u.foreignObject)||u.attr({rotation:i,rotationOriginX:(a||0)-o,rotationOriginY:(l||0)-o})),(ee(s)||ee(c))&&p.push(`scale(${s??1} ${c??1})`),p.length&&!(u||this).textPath&&((null==n?void 0:n.element)||t).setAttribute(e,p.join(" "))}visibilitySetter(e,t,n){"inherit"===e?n.removeAttribute(t):this[t]!==e&&n.setAttribute(t,e),this[t]=e}xGetter(e){return"circle"===this.element.nodeName&&("x"===e?e="cx":"y"===e&&(e="cy")),this._defaultGetter(e)}zIndexSetter(e,t){let n,r,o,i,a,l=this.renderer,s=this.parentGroup,c=(s||l).element||l.box,u=this.element,d=c===l.box,h=!1,p=this.added;if(ee(e)?(u.setAttribute("data-z-index",e),e*=1,this[t]===e&&(p=!1)):ee(this[t])&&u.removeAttribute("data-z-index"),this[t]=e,p){for((e=this.zIndex)&&s&&(s.handleZ=!0),a=(n=c.childNodes).length-1;a>=0&&!h;a--)i=!ee(o=(r=n[a]).getAttribute("data-z-index")),r!==u&&(e<0&&i&&!d&&!a?(c.insertBefore(u,n[a]),h=!0):(Me(o)<=e||i&&(!ee(e)||e>=0))&&(c.insertBefore(u,n[a+1]),h=!0));h||(c.insertBefore(u,n[3*!!d]),h=!0)}return h}}At.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],At.prototype.strokeSetter=At.prototype.fillSetter,At.prototype.yGetter=At.prototype.xGetter,At.prototype.matrixSetter=At.prototype.rotationOriginXSetter=At.prototype.rotationOriginYSetter=At.prototype.rotationSetter=At.prototype.scaleXSetter=At.prototype.scaleYSetter=At.prototype.translateXSetter=At.prototype.translateYSetter=At.prototype.verticalAlignSetter=function(e,t){this[t]=e,this.doTransform=!0};let Rt=At;class Lt extends Rt{constructor(e,t,n,r,o,i,a,l,s,c){let u;super(e,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.doUpdate=!1,this.textStr=t,this.x=n,this.y=r,this.anchorX=i,this.anchorY=a,this.baseline=s,this.className=c,this.addClass("button"===c?"highcharts-no-tooltip":"highcharts-label"),c&&this.addClass("highcharts-"+c),this.text=e.text(void 0,0,0,l).attr({zIndex:1}),"string"==typeof o&&((u=/^url\((.*?)\)$/.test(o))||this.renderer.symbols[o])&&(this.symbolKey=o),this.bBox=Lt.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=e.styledMode||u,this.deferredAttr={},this.alignFactor=0}alignSetter(e){let t=se(e);this.textAlign=e,t!==this.alignFactor&&(this.alignFactor=t,this.bBox&&ye(this.xSetting)&&this.attr({x:this.xSetting}),this.updateTextPadding())}anchorXSetter(e,t){this.anchorX=e,this.boxAttr(t,Math.round(e)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(e,t){this.anchorY=e,this.boxAttr(t,e-this.ySetting)}boxAttr(e,t){this.box?this.box.attr(e,t):this.deferredAttr[e]=t}css(e){if(e){let t={};e=Ce(e),Lt.textProps.forEach(n=>{void 0!==e[n]&&(t[n]=e[n],delete e[n])}),this.text.css(t),"fontSize"in t||"fontWeight"in t||"width"in t?this.updateTextPadding():"textOverflow"in t&&this.updateBoxSize()}return Rt.prototype.css.call(this,e)}destroy(){Oe(this.element,"mouseenter"),Oe(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),Rt.prototype.destroy.call(this)}fillSetter(e,t){e&&(this.needsBox=!0),this.fill=e,this.boxAttr(t,e)}getBBox(e,t){(this.textStr&&0===this.bBox.width&&0===this.bBox.height||this.rotation)&&this.updateBoxSize();let{padding:n,height:r=0,translateX:o=0,translateY:i=0,width:a=0}=this,l=Te(this.paddingLeft,n),s=t??(this.rotation||0),c={width:a,height:r,x:o+this.bBox.x-l,y:i+this.bBox.y-n+this.baselineOffset};return s&&(c=this.getRotatedBox(c,s)),c}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(e){this.heightSetting=e,this.doUpdate=!0}afterSetters(){super.afterSetters(),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=!1)}onAdd(){this.text.add(this),this.attr({text:Te(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&ee(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(e,t){ye(e)?e!==this[t]&&(this[t]=e,this.updateTextPadding()):this[t]=void 0}rSetter(e,t){this.boxAttr(t,e)}strokeSetter(e,t){this.stroke=e,this.boxAttr(t,e)}"stroke-widthSetter"(e,t){e&&(this.needsBox=!0),this["stroke-width"]=e,this.boxAttr(t,e)}"text-alignSetter"(e){this.textAlign=this["text-align"]=e,this.updateTextPadding()}textSetter(e){void 0!==e&&this.text.attr({text:e}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){let e,t=this.text,n={},r=this.padding,o=this.bBox=ye(this.widthSetting)&&ye(this.heightSetting)&&!this.textAlign||!ee(t.textStr)?Lt.emptyBBox:t.getBBox(void 0,0);this.width=this.getPaddedWidth(),this.height=(this.heightSetting||o.height||0)+2*r;let i=this.renderer.fontMetrics(t);if(this.baselineOffset=r+Math.min((this.text.firstLineMetrics||i).b,o.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-i.h)/2),this.needsBox&&!t.textPath){if(!this.box){let e=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();e.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),e.add(this)}n.x=e=this.getCrispAdjust(),n.y=(this.baseline?-this.baselineOffset:0)+e,n.width=Math.round(this.width),n.height=Math.round(this.height),this.box.attr(ie(n,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let e=this.text,t=e.styles.textAlign||this.textAlign;if(!e.textPath){this.updateBoxSize();let n=this.baseline?0:this.baselineOffset,r=(this.paddingLeft??this.padding)+se(t)*(this.widthSetting??this.bBox.width);(r!==e.x||n!==e.y)&&(e.attr({align:t,x:r}),void 0!==n&&e.attr("y",n)),e.x=r,e.y=n}}widthSetter(e){this.widthSetting=ye(e)?e:void 0,this.doUpdate=!0}getPaddedWidth(){let e=this.padding,t=Te(this.paddingLeft,e),n=Te(this.paddingRight,e);return(this.widthSetting||this.bBox.width||0)+t+n}xSetter(e){this.x=e,this.alignFactor&&(e-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.anchorX&&(this["forceAnimate:anchorX"]=!0),this.xSetting=Math.round(e),this.attr("translateX",this.xSetting)}ySetter(e){this.anchorY&&(this["forceAnimate:anchorY"]=!0),this.ySetting=this.y=Math.round(e),this.attr("translateY",this.ySetting)}}function Bt(e,t,n,r,o){let i=[];if(o){let a=o.start||0,l=o.end||0,s=Te(o.r,n),c=Te(o.r,r||n),u=1e-4>Math.abs(l-a-2*Math.PI);u&&(a=Math.PI/2,l=2.5*Math.PI-1e-4);let d=o.innerR,h=Te(o.open,u),p=u?0:Math.cos(a),f=u?1:Math.sin(a),m=u?0:Math.cos(l),g=u?1:Math.sin(l),y=Te(o.longArc,l-a-Math.PI<1e-4?0:1),v=["A",s,c,0,y,Te(o.clockwise,1),e+(u?.001:s*m),t+c*g];v.params={start:a,end:l,cx:e,cy:t},i.push(["M",e+s*p,t+c*f],v),ee(d)&&((v=["A",d,d,0,y,ee(o.clockwise)?1-o.clockwise:0,e+(u?-.001:d*p),t+d*f]).params={start:l,end:a,cx:e,cy:t},i.push(h?["M",e+d*m,t+d*g]:["L",e+d*m,t+d*g],v)),h||i.push(["Z"])}return i}function zt(e,t,n,r,o){return(null==o?void 0:o.r)?Dt(e,t,n,r,o):[["M",e,t],["L",e+n,t],["L",e+n,t+r],["L",e,t+r],["Z"]]}function Dt(e,t,n,r,o){let i=(null==o?void 0:o.r)||0;return[["M",e+i,t],["L",e+n-i,t],["A",i,i,0,0,1,e+n,t+i],["L",e+n,t+r-i],["A",i,i,0,0,1,e+n-i,t+r],["L",e+i,t+r],["A",i,i,0,0,1,e,t+r-i],["L",e,t+i],["A",i,i,0,0,1,e+i,t],["Z"]]}Lt.emptyBBox={width:0,height:0,x:0,y:0},Lt.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineClamp","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"];let jt={arc:Bt,callout:function(e,t,n,r,o){let i=Math.min((null==o?void 0:o.r)||0,n,r),a=i+6,l=null==o?void 0:o.anchorX,s=(null==o?void 0:o.anchorY)||0,c=Dt(e,t,n,r,{r:i});if(!ye(l)||l<n&&l>0&&s<r&&s>0)return c;if(e+l>n-a)if(s>t+a&&s<t+r-a)c.splice(3,1,["L",e+n,s-6],["L",e+n+6,s],["L",e+n,s+6],["L",e+n,t+r-i]);else if(l<n){let o=s<t+a,u=o?t:t+r;c.splice(o?2:5,0,["L",l,s],["L",e+n-i,u])}else c.splice(3,1,["L",e+n,r/2],["L",l,s],["L",e+n,r/2],["L",e+n,t+r-i]);else if(e+l<a)if(s>t+a&&s<t+r-a)c.splice(7,1,["L",e,s+6],["L",e-6,s],["L",e,s-6],["L",e,t+i]);else if(l>0){let n=s<t+a,o=n?t:t+r;c.splice(n?1:6,0,["L",l,s],["L",e+i,o])}else c.splice(7,1,["L",e,r/2],["L",l,s],["L",e,r/2],["L",e,t+i]);else s>r&&l<n-a?c.splice(5,1,["L",l+6,t+r],["L",l,t+r+6],["L",l-6,t+r],["L",e+i,t+r]):s<0&&l>a&&c.splice(1,1,["L",l-6,t],["L",l,t-6],["L",l+6,t],["L",n-i,t]);return c},circle:function(e,t,n,r){return Bt(e+n/2,t+r/2,n/2,r/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(e,t,n,r){return[["M",e+n/2,t],["L",e+n,t+r/2],["L",e+n/2,t+r],["L",e,t+r/2],["Z"]]},rect:zt,roundedRect:Dt,square:zt,triangle:function(e,t,n,r){return[["M",e+n/2,t],["L",e+n,t+r],["L",e,t+r],["Z"]]},"triangle-down":function(e,t,n,r){return[["M",e,t],["L",e+n,t],["L",e+n/2,t+r],["Z"]]}},{doc:Ft,SVG_NS:Ht,win:_t}=_,Wt=(e,t)=>e.substring(0,t)+"…",Kt=class{constructor(e){const t=e.styles;this.renderer=e.renderer,this.svgElement=e,this.width=e.textWidth,this.textLineHeight=null==t?void 0:t.lineHeight,this.textOutline=null==t?void 0:t.textOutline,this.ellipsis="ellipsis"===(null==t?void 0:t.textOverflow),this.lineClamp=null==t?void 0:t.lineClamp,this.noWrap="nowrap"===(null==t?void 0:t.whiteSpace)}buildSVG(){let e=this.svgElement,t=e.element,n=e.renderer,r=Te(e.textStr,"").toString(),o=-1!==r.indexOf("<"),i=t.childNodes,a=!e.added&&n.box,l=[r,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,e.getStyle("font-size"),e.styles.lineClamp,this.width].join(",");if(l!==e.textCache){e.textCache=l,delete e.actualWidth;for(let e=i.length;e--;)t.removeChild(i[e]);if(o||this.ellipsis||this.width||e.textPath||-1!==r.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(r))){if(""!==r){a&&a.appendChild(t);let n=new pt(r);this.modifyTree(n.nodes),n.addToDOM(t),this.modifyDOM(),this.ellipsis&&-1!==(t.textContent||"").indexOf("…")&&e.attr("title",this.unescapeEntities(e.textStr||"",["<",">"])),a&&a.removeChild(t)}}else t.appendChild(Ft.createTextNode(this.unescapeEntities(r)));ve(this.textOutline)&&e.applyTextOutline&&e.applyTextOutline(this.textOutline)}}modifyDOM(){let e,t=this.svgElement,n=X(t.element,"x");for(t.firstLineMetrics=void 0;(e=t.element.firstChild)&&/^[\s\u200B]*$/.test(e.textContent||" ");)t.element.removeChild(e);[].forEach.call(t.element.querySelectorAll("tspan.highcharts-br"),(e,r)=>{e.nextSibling&&e.previousSibling&&(0===r&&1===e.previousSibling.nodeType&&(t.firstLineMetrics=t.renderer.fontMetrics(e.previousSibling)),X(e,{dy:this.getLineHeight(e.nextSibling),x:n}))});let r=this.width||0;if(!r)return;let o=(e,o)=>{var i;let a=e.textContent||"",l=a.replace(/([^\^])-/g,"$1- ").split(" "),s=!this.noWrap&&(l.length>1||t.element.childNodes.length>1),c=this.getLineHeight(o),u=Math.max(0,r-.8*c),d=0,h=t.actualWidth;if(s){let a=[],s=[];for(;o.firstChild&&o.firstChild!==e;)s.push(o.firstChild),o.removeChild(o.firstChild);for(;l.length;)if(l.length&&!this.noWrap&&d>0&&(a.push(e.textContent||""),e.textContent=l.join(" ").replace(/- /g,"-")),this.truncate(e,void 0,l,0===d&&h||0,r,u,(e,t)=>l.slice(0,t).join(" ").replace(/- /g,"-")),h=t.actualWidth,d++,this.lineClamp&&d>=this.lineClamp){l.length&&(this.truncate(e,e.textContent||"",void 0,0,r,u,Wt),e.textContent=(null==(i=e.textContent)?void 0:i.replace("…",""))+"…");break}s.forEach(t=>{o.insertBefore(t,e)}),a.forEach(t=>{o.insertBefore(Ft.createTextNode(t),e);let r=Ft.createElementNS(Ht,"tspan");r.textContent="",X(r,{dy:c,x:n}),o.insertBefore(r,e)})}else this.ellipsis&&a&&this.truncate(e,a,void 0,0,r,u,Wt)},i=e=>{[].slice.call(e.childNodes).forEach(n=>{n.nodeType===_t.Node.TEXT_NODE?o(n,e):(-1!==n.className.baseVal.indexOf("highcharts-br")&&(t.actualWidth=0),i(n))})};i(t.element)}getLineHeight(e){let t=e.nodeType===_t.Node.TEXT_NODE?e.parentElement:e;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(t||this.svgElement.element).h}modifyTree(e){let t=(n,r)=>{let{attributes:o={},children:i,style:a={},tagName:l}=n,s=this.renderer.styledMode;if("b"===l||"strong"===l?s?o.class="highcharts-strong":a.fontWeight="bold":("i"===l||"em"===l)&&(s?o.class="highcharts-emphasized":a.fontStyle="italic"),(null==a?void 0:a.color)&&(a.fill=a.color),"br"===l){o.class="highcharts-br",n.textContent="";let t=e[r+1];(null==t?void 0:t.textContent)&&(t.textContent=t.textContent.replace(/^ +/gm,""))}else"a"===l&&i&&i.some(e=>"#text"===e.tagName)&&(n.children=[{children:i,tagName:"tspan"}]);"#text"!==l&&"a"!==l&&(n.tagName="tspan"),ie(n,{attributes:o,style:a}),i&&i.filter(e=>"#text"!==e.tagName).forEach(t)};e.forEach(t),le(this.svgElement,"afterModifyTree",{nodes:e})}truncate(e,t,n,r,o,i,a){let l,s,c=this.svgElement,{rotation:u}=c,d=[],h=n&&!r?1:0,p=(t||n||"").length,f=p;n||(o=i);let m=function(t,o){let i=o||t,a=e.parentNode;if(a&&void 0===d[i]&&a.getSubStringLength)try{d[i]=r+a.getSubStringLength(0,n?i+1:i)}catch{}return d[i]};if(c.rotation=0,r+(s=m(e.textContent.length))>o){for(;h<=p;)f=Math.ceil((h+p)/2),n&&(l=a(n,f)),s=m(f,l&&l.length-1),h===p?h=p+1:s>o?p=f-1:h=f;0===p?e.textContent="":t&&p===t.length-1||(e.textContent=l||a(t||n,f)),this.ellipsis&&s>o&&this.truncate(e,e.textContent||"",void 0,0,o,i,Wt)}n&&n.splice(0,f),c.actualWidth=s,c.rotation=u}unescapeEntities(e,t){return Se(this.renderer.escapes,function(n,r){t&&-1!==t.indexOf(n)||(e=e.toString().replace(RegExp(n,"g"),r))}),e}},{defaultOptions:Vt}=Ze,{charts:Gt,deg2rad:qt,doc:Xt,isFirefox:Ut,isMS:Yt,isWebKit:Zt,noop:Qt,SVG_NS:Jt,symbolSizes:en,win:tn}=_;class nn{constructor(e,t,n,r,o,i,a){let l,s;this.x=0,this.y=0;const c=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),u=c.element;a||c.css(this.getStyle(r||{})),e.appendChild(u),X(e,"dir","ltr"),-1===e.innerHTML.indexOf("xmlns")&&X(u,"xmlns",this.SVG_NS),this.box=u,this.boxWrapper=c,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(Xt.createTextNode("Created with Highcharts 12.6.0")),this.defs=this.createElement("defs").add(),this.allowHTML=i,this.forExport=o,this.styledMode=a,this.gradients={},this.cache={},this.cacheKeys=[],this.asyncCounter=0,this.rootFontSize=c.getStyle("font-size"),this.setSize(t,n,!1),Ut&&e.getBoundingClientRect&&((l=function(){J(e,{left:0,top:0}),s=e.getBoundingClientRect(),J(e,{left:Math.ceil(s.left)-s.left+"px",top:Math.ceil(s.top)-s.top+"px"})})(),this.unSubPixelFix=V(tn,"resize",l))}definition(e){return new pt([e]).addToDOM(this.defs.element)}getReferenceURL(){if((Ut||Zt)&&Xt.getElementsByTagName("base").length){if(!ee(c)){let e=_e(),t=new pt([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:e},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${e})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(Xt.body);J(t,{position:"fixed",top:0,left:0,zIndex:9e5});let n=Xt.elementFromPoint(6,6);c="hitme"===(null==n?void 0:n.id),Xt.body.removeChild(t)}if(c)return Ie(tn.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(e){return this.style=ie({fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif',fontSize:"1rem"},e),this.style}setStyle(e){this.boxWrapper.css(this.getStyle(e))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let e=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),te(this.gradients||{}),this.gradients=null,this.defs=e.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}createElement(e){return new this.Element(this,e)}getRadialAttr(e,t){return{cx:e[0]-e[2]/2+(t.cx||0)*e[2],cy:e[1]-e[2]/2+(t.cy||0)*e[2],r:(t.r||0)*e[2]}}shadowDefinition(e){let t=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(e).map(t=>`${t}-${e[t]}`)].join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),n=Ce({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},e);return this.defs.element.querySelector(`#${t}`)||this.definition({tagName:"filter",attributes:{id:t,filterUnits:n.filterUnits},children:this.getShadowFilterContent(n)}),t}getShadowFilterContent(e){return[{tagName:"feDropShadow",attributes:{dx:e.offsetX,dy:e.offsetY,"flood-color":e.color,"flood-opacity":Math.min(5*e.opacity,1),stdDeviation:e.width/2}}]}buildText(e){new Kt(e).buildSVG()}getContrast(e){if("transparent"===e)return"#000000";let t=tt.parse(e).rgba,n=" clamp(0,calc(9e9*(0.5 - (0.2126*r + 0.7152*g + 0.0722*b))),1)";if(ye(t[0])||!tt.useColorMix){let e=t.map(e=>{let t=e/255;return t<=.04?t/12.92:Math.pow((t+.055)/1.055,2.4)}),n=.2126*e[0]+.7152*e[1]+.0722*e[2];return 1.05/(n+.05)>(n+.05)/.05?"#FFFFFF":"#000000"}return"color(from "+e+" srgb"+n+n+n+")"}button(e,t,n,r,o={},i,a,l,s,c){let u=this.label(e,t,n,s,void 0,void 0,c,void 0,"button"),d=this.styledMode,h=arguments,p=0;o=Ce(Vt.global.buttonTheme,o),d&&(delete o.fill,delete o.stroke,delete o["stroke-width"]);let f=o.states||{},m=o.style||{};delete o.states,delete o.style;let g=[pt.filterUserAttributes(o)],y=[m];return d||["hover","select","disabled"].forEach((e,t)=>{g.push(Ce(g[0],pt.filterUserAttributes(h[t+5]||f[e]||{}))),y.push(g[t+1].style),delete g[t+1].style}),V(u.element,Yt?"mouseover":"mouseenter",function(){3!==p&&u.setState(1)}),V(u.element,Yt?"mouseout":"mouseleave",function(){3!==p&&u.setState(p)}),u.setState=(e=0)=>{if(1!==e&&(u.state=p=e),u.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][e]),!d){u.attr(g[e]);let t=y[e];we(t)&&u.css(t)}},u.attr(g[0]),!d&&(u.css(ie({cursor:"default"},m)),c&&u.text.css({pointerEvents:"none"})),u.on("touchstart",e=>e.stopPropagation()).on("click",function(e){3!==p&&(null==r||r.call(u,e))})}crispLine(e,t){let[n,r]=e;return ee(n[1])&&n[1]===r[1]&&(n[1]=r[1]=Q(n[1],t)),ee(n[2])&&n[2]===r[2]&&(n[2]=r[2]=Q(n[2],t)),e}path(e){let t=this.styledMode?{}:{fill:"none"};return be(e)?t.d=e:we(e)&&ie(t,e),this.createElement("path").attr(t)}circle(e,t,n){let r=we(e)?e:void 0===e?{}:{x:e,y:t,r:n},o=this.createElement("circle");return o.xSetter=o.ySetter=function(e,t,n){n.setAttribute("c"+t,e)},o.attr(r)}arc(e,t,n,r,o,i){let a;we(e)?(t=(a=e).y,n=a.r,r=a.innerR,o=a.start,i=a.end,e=a.x):a={innerR:r,start:o,end:i};let l=this.symbol("arc",e,t,n,n,a);return l.r=n,l}rect(e,t,n,r,o,i){let a=we(e)?e:void 0===e?{}:{x:e,y:t,r:o,width:Math.max(n||0,0),height:Math.max(r||0,0)},l=this.createElement("rect");return this.styledMode||(void 0!==i&&(a["stroke-width"]=i,ie(a,l.crisp(a))),a.fill="none"),l.rSetter=function(e,t,n){l.r=e,X(n,{rx:e,ry:e})},l.rGetter=function(){return l.r||0},l.attr(a)}roundedRect(e){return this.symbol("roundedRect").attr(e)}setSize(e,t,n){this.width=e,this.height=t,this.boxWrapper.animate({width:e,height:t},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:Te(n,!0)?void 0:0}),this.alignElements()}g(e){let t=this.createElement("g");return e?t.attr({class:"highcharts-"+e}):t}image(e,t,n,r,o,i){let a={preserveAspectRatio:"none"};ye(t)&&(a.x=t),ye(n)&&(a.y=n),ye(r)&&(a.width=r),ye(o)&&(a.height=o);let l=this.createElement("image").attr(a),s=function(t){l.attr({href:e}),i.call(l,t)};if(i){l.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let t=new tn.Image;V(t,"load",s),t.src=e,t.complete&&s({})}else l.attr({href:e});return l}symbol(e,t,n,r,o,i){var a,l;let s,c,u,d,h=this,p=/^url\((.*?)\)$/,f=p.test(e),m=!f&&(this.symbols[e]?e:"circle"),g=m&&this.symbols[m];if(g)"number"==typeof t&&(c=g.call(this.symbols,t||0,n||0,r||0,o||0,i)),s=this.path(c),h.styledMode||s.attr("fill","none"),ie(s,{symbolName:m||void 0,x:t,y:n,width:r,height:o}),i&&ie(s,i);else if(f){u=e.match(p)[1];let r=s=this.image(u);r.imgwidth=Te(null==i?void 0:i.width,null==(a=en[u])?void 0:a.width),r.imgheight=Te(null==i?void 0:i.height,null==(l=en[u])?void 0:l.height),d=e=>e.attr({width:e.width,height:e.height}),["width","height"].forEach(e=>{r[`${e}Setter`]=function(e,t){this[t]=e;let{alignByTranslate:n,element:r,width:o,height:a,imgwidth:l,imgheight:s}=this,c="width"===t?l:s,u=1;i&&"within"===i.backgroundSize&&o&&a&&l&&s?(u=Math.min(o/l,a/s),X(r,{width:Math.round(l*u),height:Math.round(s*u)})):r&&c&&r.setAttribute(t,c),!n&&l&&s&&this.translate(((o||0)-l*u)/2,((a||0)-s*u)/2)}}),ee(t)&&r.attr({x:t,y:n}),r.isImg=!0,ee(r.imgwidth)&&ee(r.imgheight)?d(r):(r.attr({width:0,height:0}),Z("img",{onload:function(){let e=Gt[h.chartIndex];0===this.width&&(J(this,{position:"absolute",top:"-999em"}),Xt.body.appendChild(this)),en[u]={width:this.width,height:this.height},r.imgwidth=this.width,r.imgheight=this.height,r.element&&d(r),this.parentNode&&this.parentNode.removeChild(this),h.asyncCounter--,h.asyncCounter||!e||e.hasLoaded||e.onload()},src:u}),this.asyncCounter++)}return s}clipRect(e,t,n,r){return this.rect(e,t,n,r,0)}text(e,t,n,r){let o={};if(r&&(this.allowHTML||!this.forExport))return this.html(e,t,n);o.x=Math.round(t||0),n&&(o.y=Math.round(n)),ee(e)&&(o.text=e);let i=this.createElement("text").attr(o);return r&&(!this.forExport||this.allowHTML)||(i.xSetter=function(e,t,n){let r=n.getElementsByTagName("tspan"),o=n.getAttribute(t);for(let n,i=0;i<r.length;i++)(n=r[i]).getAttribute(t)===o&&n.setAttribute(t,e);n.setAttribute(t,e)}),i}fontMetrics(e){let t=ye(e)?e:Me(Rt.prototype.getStyle.call(e,"font-size")||0),n=t<24?t+3:Math.round(1.2*t);return{h:n,b:Math.round(.8*n),f:t}}rotCorr(e,t,n){let r=e;return t&&n&&(r=Math.max(r*Math.cos(t*qt),4)),{x:-e/3*Math.sin(t*qt),y:r}}pathToSegments(e){let t=[],n=[],r={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let o=0;o<e.length;o++)ve(n[0])&&ye(e[o])&&n.length===r[n[0].toUpperCase()]&&e.splice(o,0,n[0].replace("M","L").replace("m","l")),"string"==typeof e[o]&&(n.length&&t.push(n.slice(0)),n.length=0),n.push(e[o]);return t.push(n.slice(0)),t}label(e,t,n,r,o,i,a,l,s){return new Lt(this,e,t,n,r,o,i,a,l,s)}alignElements(){this.alignedObjects.forEach(e=>e.align())}}ie(nn.prototype,{Element:Rt,SVG_NS:Jt,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:jt,draw:Qt}),Ct.registerRendererType("svg",nn,!0);let{composed:rn,isFirefox:on}=_;function an(e,t,n){var r;let o=null==(r=this.div)?void 0:r.style;Rt.prototype[`${t}Setter`].call(this,e,t,n),o&&(n.style[t]=o[t]=e)}let ln=(e,t)=>{var n;if(!e.div){let r=X(e.element,"class"),o=e.css,i=Z("div",r?{className:r}:void 0,{position:"absolute",left:`${e.translateX||0}px`,top:`${e.translateY||0}px`,...e.styles,display:e.display,opacity:e.opacity,visibility:e.visibility},(null==(n=e.parentGroup)?void 0:n.div)||t);e.classSetter=(e,t,n)=>{n.setAttribute("class",e),i.className=e},e.translateXSetter=e.translateYSetter=(t,n)=>{e[n]=t,i.style["translateX"===n?"left":"top"]=`${t}px`,e.doTransform=!0},e.scaleXSetter=e.scaleYSetter=(t,n)=>{e[n]=t,e.doTransform=!0},e.opacitySetter=e.visibilitySetter=an,e.css=t=>(o.call(e,t),t.cursor&&(i.style.cursor=t.cursor),t.pointerEvents&&(i.style.pointerEvents=t.pointerEvents),e),e.on=function(){return Rt.prototype.on.apply({element:i,onEvents:e.onEvents},arguments),e},e.div=i}return e.div};class sn extends Rt{static compose(e){Pe(rn,this.compose)&&(e.prototype.html=function(e,t,n){return new sn(this,"span").attr({text:e,x:Math.round(t),y:Math.round(n)})})}constructor(e,t){super(e,t),sn.useForeignObject?this.foreignObject=e.createElement("foreignObject").attr({zIndex:2}):this.css({position:"absolute",...e.styledMode?{}:{fontFamily:e.style.fontFamily,fontSize:e.style.fontSize}}),this.element.style.whiteSpace="nowrap"}getSpanCorrection(e,t,n){this.xCorr=-e*n,this.yCorr=-t}css(e){let t,{element:n}=this,r="SPAN"===n.tagName&&e&&"width"in e,o=r&&e.width;return r&&(delete e.width,this.textWidth=Me(o)||void 0,t=!0),"ellipsis"===(null==e?void 0:e.textOverflow)&&(e.overflow="hidden",e.whiteSpace="nowrap"),(null==e?void 0:e.lineClamp)&&(e.display="-webkit-box",e.WebkitLineClamp=e.lineClamp,e.WebkitBoxOrient="vertical",e.overflow="hidden"),ye(Number(null==e?void 0:e.fontSize))&&(e.fontSize+="px"),ie(this.styles,e),J(n,e),t&&this.updateTransform(),this}htmlGetBBox(){let{element:e}=this;return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}updateTransform(){var e;if(!this.added)return void(this.alignOnAdd=!0);let{element:t,foreignObject:n,oldTextWidth:r,renderer:o,rotation:i,rotationOriginX:a,rotationOriginY:l,scaleX:s,scaleY:c,styles:{display:u="inline-block",whiteSpace:d},textAlign:h="left",textWidth:p,translateX:f=0,translateY:m=0,x:g=0,y:y=0}=this,v=()=>this.textPxLength?this.textPxLength:(J(t,{width:"",whiteSpace:d||"nowrap"}),t.offsetWidth);if(n||J(t,{marginLeft:`${f}px`,marginTop:`${m}px`}),"SPAN"===t.tagName){let f,m=[i,h,t.innerHTML,p,this.textAlign].join(","),b=-1*(null==(e=this.parentGroup)?void 0:e.padding)||0;if(p!==r){let e=v(),n=p||0,a=!o.styledMode&&""===t.style.textOverflow&&t.style.webkitLineClamp;(n>r||e>n||a)&&(/[\-\s\u00AD]/.test(t.textContent||t.innerText)||"ellipsis"===t.style.textOverflow)&&(J(t,{width:(i||s||e>n)&&ye(p)?p+"px":a?Math.min(e+1,n)+"px":"auto",display:u,whiteSpace:d||"normal"}),this.oldTextWidth=p)}n&&(J(t,{display:"inline-block",verticalAlign:"top"}),n.attr({width:o.width,height:o.height})),m!==this.cTT&&(f=o.fontMetrics(t).b,ee(i)&&!n&&(i!==(this.oldRotation||0)||h!==this.oldAlign)&&J(t,{transform:`rotate(${i}deg)`,transformOrigin:`${b}% ${b}px`}),this.getSpanCorrection(!ee(i)&&!this.textWidth&&this.textPxLength||t.offsetWidth,f,se(h)));let{xCorr:x=0,yCorr:w=0}=this,C={left:`${g+x}px`,top:`${y+w}px`,textAlign:h,transformOrigin:`${(a??g)-x-g-b}px ${(l??y)-w-y-b}px`};(s||c)&&(C.transform=`scale(${s??1},${c??1})`),n?(super.updateTransform(),ye(g)&&ye(y)?(n.attr({x:g+x,y:y+w,width:t.offsetWidth+3,height:t.offsetHeight,"transform-origin":t.getAttribute("transform-origin")||"0 0"}),J(t,{display:u,textAlign:h})):on&&n.attr({width:0,height:0})):J(t,C),this.cTT=m,this.oldRotation=i,this.oldAlign=h}}add(e){let{foreignObject:t,renderer:n}=this,r=n.box.parentNode,o=[];if(t)t.add(e),super.add(n.createElement("body").attr({xmlns:"http://www.w3.org/1999/xhtml"}).css({background:"transparent",margin:"0 3px 0 0"}).add(t));else{let t;if(this.parentGroup=e,e&&!(t=e.div)){let n=e;for(;n;)o.push(n),n=n.parentGroup;for(let e of o.reverse())t=ln(e,r)}(t||r).appendChild(this.element)}return this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(e){e!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,pt.setElementHTML(this.element,e??""),this.textStr=e,this.doTransform=!0)}alignSetter(e){this.alignValue=this.textAlign=e,this.doTransform=!0}xSetter(e,t){this[t]=e,this.doTransform=!0}}let cn=sn.prototype;cn.visibilitySetter=cn.opacitySetter=an,cn.ySetter=cn.rotationSetter=cn.rotationOriginXSetter=cn.rotationOriginYSetter=cn.xSetter,(g=$||($={})).xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%[HMSL]",range:!1},second:{main:"%[HMS]",range:!1},minute:{main:"%[HM]",range:!1},hour:{main:"%[HM]",range:!1},day:{main:"%[eb]"},week:{main:"%[eb]"},month:{main:"%[bY]"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em",textOverflow:"ellipsis"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",title:{align:"middle",useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},g.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return this.axis.chart.numberFormatter(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};let un=$;(T||(T={})).registerEventOptions=function(e,t){e.eventOptions=e.eventOptions||{},Se(t.events,function(t,n){e.eventOptions[n]!==t&&(e.eventOptions[n]&&(Oe(e,n,e.eventOptions[n]),delete e.eventOptions[n]),xe(t)&&(e.eventOptions[n]=t,V(e,n,t,{order:0})))})};let dn=T,{deg2rad:hn}=_,pn=class{constructor(e,t,n,r,o){this.isNew=!0,this.isNewLabel=!0,this.axis=e,this.pos=t,this.type=n||"",this.parameters=o||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,le(this,"init"),n||r||this.addLabel()}addLabel(){var e,t;let n,r,o,i=this,a=i.axis,l=a.options,s=a.chart,c=a.categories,u=a.logarithmic,d=a.names,h=i.pos,p=Te(null==(e=i.options)?void 0:e.labels,l.labels),f=a.tickPositions,m=h===f[0],g=h===f[f.length-1],y=(!p.step||1===p.step)&&1===a.tickInterval,v=f.info,b=i.label,x=this.parameters.category||(c?Te(c[h],d[h],h):h);u&&ye(x)&&(x=Y(u.lin2log(x))),a.dateTime&&(v?n=(r=s.time.resolveDTLFormat(l.dateTimeLabelFormats[!(null==(t=l.grid)?void 0:t.enabled)&&v.higherRanks[h]||v.unitName])).main:ye(x)&&(n=a.dateTime.getXDateFormat(x,l.dateTimeLabelFormats||{}))),i.isFirst=m,i.isLast=g;let w={axis:a,chart:s,dateTimeLabelFormat:n,isFirst:m,isLast:g,pos:h,tick:i,tickPositionInfo:v,value:x};le(this,"labelFormat",w);let C=e=>p.formatter?p.formatter.call(e,e):p.format?(e.text=a.defaultLabelFormatter.call(e),wt.format(p.format,e,s)):a.defaultLabelFormatter.call(e),k=C.call(w,w),S=null==r?void 0:r.list;i.shortenLabel=S?function(){for(o=0;o<S.length;o++)if(ie(w,{dateTimeLabelFormat:S[o]}),b.attr({text:C.call(w,w)}),b.getBBox().width<a.getSlotWidth(i)-2*(p.padding||0))return;b.attr({text:""})}:void 0,y&&a._addedPlotLB&&i.moveLabel(k,p),ee(b)||i.movedLabel?b&&b.textStr!==k&&!y&&(!b.textWidth||p.style.width||b.styles.width||b.css({width:null}),b.attr({text:k}),b.textPxLength=b.getBBox().width):(i.label=b=i.createLabel(k,p),i.rotation=0)}createLabel(e,t,n){let r=this.axis,{renderer:o,styledMode:i}=r.chart,a=t.style.whiteSpace,l=ee(e)&&t.enabled?o.text(e,null==n?void 0:n.x,null==n?void 0:n.y,t.useHTML).add(r.labelGroup):void 0;return l&&(i||l.css(Ce(t.style)),l.textPxLength=l.getBBox().width,!i&&a&&l.css({whiteSpace:a})),l}destroy(){te(this,this.axis)}getPosition(e,t,n,r){let o=this.axis,i=o.chart,a=r&&i.oldChartHeight||i.chartHeight,l={x:e?Y(o.translate(t+n,void 0,void 0,r)+o.transB):o.left+o.offset+(o.opposite?(r&&i.oldChartWidth||i.chartWidth)-o.right-o.left:0),y:e?a-o.bottom+o.offset-(o.opposite?o.height:0):Y(a-o.translate(t+n,void 0,void 0,r)-o.transB)};return l.y=U(l.y,-1e9,1e9),le(this,"afterGetPosition",{pos:l}),l}getLabelPosition(e,t,n,r,o,i,a,l){let s,c,u=this.axis,d=u.transA,h=u.isLinked&&u.linkedParent?u.linkedParent.reversed:u.reversed,p=u.staggerLines,f=u.tickRotCorr||{x:0,y:0},m=r||u.reserveSpaceDefault?0:-u.labelOffset*("center"===u.labelAlign?.5:1),g=o.distance,y={};return s=0===u.side?n.rotation?-g:-n.getBBox().height:2===u.side?f.y+g:Math.cos(n.rotation*hn)*(f.y-n.getBBox(!1,0).height/2),ee(o.y)&&(s=0===u.side&&u.horiz?o.y+s:o.y),e=e+Te(o.x,[0,1,0,-1][u.side]*g)+m+f.x-(i&&r?i*d*(h?-1:1):0),t=t+s-(i&&!r?i*d*(h?1:-1):0),p&&(c=a/(l||1)%p,u.opposite&&(c=p-c-1),t+=c*(u.labelOffset/p)),y.x=e,y.y=Math.round(t),le(this,"afterGetLabelPosition",{pos:y,tickmarkOffset:i,index:a}),y}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(e,t,n,r,o=!1,i){return i.crispLine([["M",e,t],["L",e+(o?0:-n),t+(o?n:0)]],r)}handleOverflow(e){var t;let n,r=this.axis,o=r.options.labels,i=e.x,a=r.chart.chartWidth,l=r.chart.spacing,s=Te(r.labelLeft,Math.min(r.pos,l[3])),c=Te(r.labelRight,Math.max(r.isRadial?0:r.pos+r.len,a-l[1])),u=this.label,d=this.rotation,h=se(r.labelAlign||u.attr("align")),p=u.getBBox().width,f=r.getSlotWidth(this),m=f,g=1;d||"justify"!==o.overflow?d<0&&i-h*p<s?n=Math.round(i/Math.cos(d*hn)-s):d>0&&i+h*p>c&&(n=Math.round((a-i)/Math.cos(d*hn))):(i-h*p<s?m=e.x+m*(1-h)-s:i+(1-h)*p>c&&(m=c-e.x+m*h,g=-1),(m=Math.min(f,m))<f&&"center"===r.labelAlign&&(e.x+=g*(f-m-h*(f-Math.min(p,m)))),(p>m||r.autoRotation&&(null==(t=null==u?void 0:u.styles)?void 0:t.width))&&(n=m)),n&&u&&(this.shortenLabel?this.shortenLabel():u.css(ie({},{width:Math.floor(n)+"px",lineClamp:+!r.isRadial})))}moveLabel(e,t){let n,r=this,o=r.label,i=r.axis,a=!1;o&&o.textStr===e?(r.movedLabel=o,a=!0,delete r.label):Se(i.ticks,function(t){a||t.isNew||t===r||!t.label||t.label.textStr!==e||(r.movedLabel=t.label,a=!0,t.labelPos=r.movedLabel.xy,delete t.label)}),!a&&(r.labelPos||o)&&(n=r.labelPos||o.xy,r.movedLabel=r.createLabel(e,t,n),r.movedLabel&&r.movedLabel.attr({opacity:0}))}render(e,t,n){var r;let o=this.axis,i=o.horiz,a=this.pos,l=Te(this.tickmarkOffset,o.tickmarkOffset),s=this.getPosition(i,a,l,t),c=s.x,u=s.y,d=o.pos,h=d+o.len,p=i?c:u,f=Te(n,null==(r=this.label)?void 0:r.newOpacity,1);!o.chart.polar&&(Y(p)<d||p>h)&&(n=0),n??(n=1),this.isActive=!0,this.renderGridLine(t,n),this.renderMark(s,n),this.renderLabel(s,t,f,e),this.isNew=!1,le(this,"afterRender")}renderGridLine(e,t){let n,r=this.axis,o=r.options,i={},a=this.pos,l=this.type,s=Te(this.tickmarkOffset,r.tickmarkOffset),c=r.chart.renderer,u=this.gridLine,d=o.gridLineWidth,h=o.gridLineColor,p=o.gridLineDashStyle;"minor"===this.type&&(d=o.minorGridLineWidth,h=o.minorGridLineColor,p=o.minorGridLineDashStyle),u||(r.chart.styledMode||(i.stroke=h,i["stroke-width"]=d||0,i.dashstyle=p),l||(i.zIndex=1),e&&(t=0),this.gridLine=u=c.path().attr(i).addClass("highcharts-"+(l?l+"-":"")+"grid-line").add(r.gridGroup)),u&&(n=r.getPlotLinePath({value:a+s,lineWidth:u.strokeWidth(),force:"pass",old:e,acrossPanes:!1}))&&u[e||this.isNew?"attr":"animate"]({d:n,opacity:t})}renderMark(e,t){let n=this.axis,r=n.options,o=n.chart.renderer,i=this.type,a=n.tickSize(i?i+"Tick":"tick"),l=e.x,s=e.y,c=Te(r["minor"!==i?"tickWidth":"minorTickWidth"],!i&&n.isXAxis?1:0),u=r["minor"!==i?"tickColor":"minorTickColor"],d=this.mark,h=!d;a&&(n.opposite&&(a[0]=-a[0]),!d&&(this.mark=d=o.path().addClass("highcharts-"+(i?i+"-":"")+"tick").add(n.axisGroup),n.chart.styledMode||d.attr({stroke:u,"stroke-width":c})),d[h?"attr":"animate"]({d:this.getMarkPath(l,s,a[0],d.strokeWidth(),n.horiz,o),opacity:t}))}renderLabel(e,t,n,r){let o=this.axis,i=o.horiz,a=o.options,l=this.label,s=a.labels,c=s.step,u=Te(this.tickmarkOffset,o.tickmarkOffset),d=e.x,h=e.y,p=!0;l&&ye(d)&&(l.xy=e=this.getLabelPosition(d,h,l,i,s,u,r,c),this.isFirst&&!this.isLast&&!a.showFirstLabel||this.isLast&&!this.isFirst&&!a.showLastLabel?p=!1:i&&!t&&0!==n&&this.handleOverflow(e),c&&r%c&&(p=!1),p&&ye(e.y)?(e.opacity=n,l[this.isNewLabel?"attr":"animate"](e).show(!0),this.isNewLabel=!1):(l.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let e=this.label,t=this.axis;e&&!this.isNew&&(e.animate({opacity:0},void 0,e.destroy),delete this.label),t.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}},{animObject:fn}=lt,{xAxis:mn,yAxis:gn}=un,{defaultOptions:yn}=Ze,{registerEventOptions:vn}=dn,{deg2rad:bn}=_,xn=(e,t)=>ke(t,void 0,void 0,Te(e.options.allowDecimals,t<.5||void 0!==e.tickAmount),!!e.tickAmount);ie(yn,{xAxis:mn,yAxis:Ce(mn,gn)});class wn{constructor(e,t,n){this.init(e,t,n)}init(e,t,n=this.coll){let r="xAxis"===n,o=this.isZAxis||(e.inverted?!r:r);this.chart=e,this.horiz=o,this.isXAxis=r,this.coll=n,le(this,"init",{userOptions:t}),this.opposite=Te(t.opposite,this.opposite),this.side=Te(t.side,this.side,o?2*!this.opposite:this.opposite?1:3),this.setOptions(t);let i=this.options,a=i.labels;this.type??(this.type=i.type||"linear"),this.uniqueNames??(this.uniqueNames=i.uniqueNames??!0),le(this,"afterSetType"),this.userOptions=t,this.minPixelPadding=0,this.reversed=Te(i.reversed,this.reversed),this.visible=i.visible,this.zoomEnabled=i.zoomEnabled,this.hasNames="category"===this.type||!0===i.categories,this.categories=be(i.categories)&&i.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=ee(i.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len??(this.len=0),this.minRange=this.userMinRange=i.minRange||i.maxZoom,this.range=i.range,this.offset=i.offset||0,this.max=void 0,this.min=void 0;let l=Te(i.crosshair,Ae(e.options.tooltip.crosshairs)[+!r]);this.crosshair=!0===l?{}:l,-1===e.axes.indexOf(this)&&(r?e.axes.splice(e.xAxis.length,0,this):e.axes.push(this),Fe(this,e[this.coll])),e.orderItems(this.coll),this.series=this.series||[],e.inverted&&!this.isZAxis&&r&&!ee(this.reversed)&&(this.reversed=!0),this.labelRotation=ye(a.rotation)?a.rotation:void 0,vn(this,i),le(this,"afterInit")}setOptions(e){let t=this.horiz?{labels:{autoRotation:[-45],padding:3},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=Ce(t,"yAxis"===this.coll?{title:{text:this.chart.options.lang.yAxisTitle}}:{},yn[this.coll],e),le(this,"afterSetOptions",{userOptions:e})}defaultLabelFormatter(){let e,t,n=this.axis,r=this.chart,{numberFormatter:o}=r,i=ye(this.value)?this.value:NaN,a=n.chart.time,l=n.categories,s=this.dateTimeLabelFormat,c=yn.lang,u=c.numericSymbols,d=c.numericSymbolMagnitude||1e3,h=n.logarithmic?Math.abs(i):n.tickInterval,p=null==u?void 0:u.length;if(l)t=`${this.value}`;else if(s)t=a.dateFormat(s,i,!0);else if(p&&u&&h>=1e3)for(;p--&&void 0===t;)h>=(e=Math.pow(d,p+1))&&10*i%e==0&&null!==u[p]&&0!==i&&(t=o(i/e,-1,void 0,void 0,r)+u[p]);return t??(t=o(i,-1,void 0,1e4>Math.abs(i)?"":void 0,r)),t}getSeriesExtremes(){let e,t=this;le(this,"getSeriesExtremes",null,function(){t.hasVisibleSeries=!1,t.dataMin=t.dataMax=t.threshold=void 0,t.softThreshold=!t.isXAxis,t.series.forEach(n=>{if(n.reserveSpace()){let r,o,i,a=n.options,l=a.threshold;if(t.hasVisibleSeries=!0,t.positiveValuesOnly&&0>=(l||0)&&(l=void 0),t.isXAxis)(r=n.getColumn("x")).length&&(r=t.logarithmic?r.filter(e=>e>0):r,o=(e=n.getXExtremes(r)).min,i=e.max,ye(o)||o instanceof Date||(r=r.filter(ye),o=(e=n.getXExtremes(r)).min,i=e.max),r.length&&(t.dataMin=Math.min(Te(t.dataMin,o),o),t.dataMax=Math.max(Te(t.dataMax,i),i)));else{let e=n.applyExtremes();ye(e.dataMin)&&(o=e.dataMin,t.dataMin=Math.min(Te(t.dataMin,o),o)),ye(e.dataMax)&&(i=e.dataMax,t.dataMax=Math.max(Te(t.dataMax,i),i)),ee(l)&&(t.threshold=l),(!a.softThreshold||t.positiveValuesOnly)&&(t.softThreshold=!1)}}})}),le(this,"afterGetSeriesExtremes")}translate(e,t,n,r,o,i){var a;let l=this.linkedParent||this,s=r&&l.old?l.old.min:l.min;if(!ye(s))return NaN;let c=l.minPixelPadding,u=(l.isOrdinal||(null==(a=l.brokenAxis)?void 0:a.hasBreaks)||l.logarithmic&&o)&&!!l.lin2val,d=1,h=0,p=r&&l.old?l.old.transA:l.transA,f=0;return p||(p=l.transA),n&&(d*=-1,h=l.len),l.reversed&&(d*=-1,h-=d*(l.sector||l.len)),t?(f=(e=e*d+h-c)/p+s,u&&(f=l.lin2val(f))):(u&&(e=l.val2lin(e)),f=d*(e-s)*p+h+d*c+(ye(i)?p*i:0),l.isRadial||(f=Y(f))),f}toPixels(e,t){var n;return this.translate((null==(n=this.chart)?void 0:n.time.parse(e))??NaN,!1,!this.horiz,void 0,!0)+(t?0:this.pos)}toValue(e,t){return this.translate(e-(t?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(e){let t,n,r,o,i,a=this,l=a.chart,s=a.left,c=a.top,u=e.old,d=e.value,h=e.lineWidth,p=u&&l.oldChartHeight||l.chartHeight,f=u&&l.oldChartWidth||l.chartWidth,m=a.transB,g=e.translatedValue,y=e.force;function v(e,t,n){return"pass"!==y&&(e<t||e>n)&&(y?e=U(e,t,n):i=!0),e}let b={value:d,lineWidth:h,old:u,force:y,acrossPanes:e.acrossPanes,translatedValue:g};return le(this,"getPlotLinePath",b,function(e){t=r=(g=U(g=Te(g,a.translate(d,void 0,void 0,u)),-1e9,1e9))+m,n=o=p-g-m,ye(g)?a.horiz?(n=c,o=p-a.bottom+(a.options.isInternal?0:l.scrollablePixelsY||0),t=r=v(t,s,s+a.width)):(t=s,r=f-a.right+(l.scrollablePixelsX||0),n=o=v(n,c,c+a.height)):(i=!0,y=!1),e.path=i&&!y?void 0:l.renderer.crispLine([["M",t,n],["L",r,o]],h||1)}),b.path}getLinearTickPositions(e,t,n){let r,o,i,a=Y(Math.floor(t/e)*e),l=Y(Math.ceil(n/e)*e),s=[];if(Y(a+e)===a&&(i=20),this.single)return[t];for(r=a;r<=l&&(s.push(r),(r=Y(r+e,i))!==o);)o=r;return s}getMinorTickInterval(){let{minorTicks:e,minorTickInterval:t}=this.options;return!0===e?Te(t,"auto"):!1!==e?t:void 0}getMinorTickPositions(){var e;let t,n=this.options,r=this.tickPositions,o=this.minorTickInterval,i=this.pointRangePadding||0,a=(this.min||0)-i,l=(this.max||0)+i,s=(null==(e=this.brokenAxis)?void 0:e.hasBreaks)?this.brokenAxis.unitLength:l-a,c=[];if(s&&s/o<this.len/3){let e=this.logarithmic;if(e)this.paddedTicks.forEach(function(t,n,r){n&&c.push.apply(c,e.getLogTickPositions(o,r[n-1],r[n],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())c=c.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(o),a,l,n.startOfWeek));else for(t=a+(r[0]-a)%o;t<=l&&t!==c[0];t+=o)c.push(t)}return 0!==c.length&&this.trimTicks(c),c}adjustForMinRange(){let e,t,n,r,o=this.options,i=this.logarithmic,a=this.chart.time,{max:l,min:s,minRange:c}=this;this.isXAxis&&void 0===c&&!i&&(c=ee(o.min)||ee(o.max)||ee(o.floor)||ee(o.ceiling)?null:Math.min(5*(ce(this.series.map(e=>{let t=e.getColumn("x");return e.xIncrement?t.slice(0,2):t}))||0),this.dataMax-this.dataMin)),ye(l)&&ye(s)&&ye(c)&&l-s<c&&(t=this.dataMax-this.dataMin>=c,e=(c-l+s)/2,n=[s-e,a.parse(o.min)??s-e],t&&(n[2]=i?i.log2lin(this.dataMin):this.dataMin),r=[(s=q(n))+c,a.parse(o.max)??s+c],t&&(r[2]=i?i.log2lin(this.dataMax):this.dataMax),(l=G(r))-s<c&&(n[0]=l-c,n[1]=a.parse(o.min)??l-c,s=q(n))),this.minRange=c,this.min=s,this.max=l}getClosest(){let e,t;if(this.categories)t=1;else{let n=[];this.series.forEach(function(e){let r=e.closestPointRange,o=e.getColumn("x");1===o.length?n.push(o[0]):e.sorted&&ee(r)&&e.reserveSpace()&&(t=ee(t)?Math.min(t,r):r)}),n.length&&(n.sort((e,t)=>e-t),e=ce([n]))}return e&&t?Math.min(e,t):e||t}nameToX(e){let t,n=be(this.options.categories),r=n?this.categories:this.names,o=e.options.x;return e.series.requireSorting=!1,ee(o)||(o=this.uniqueNames&&r?n?r.indexOf(e.name):Te(r.keys[e.name],-1):e.series.autoIncrement()),-1===o?!n&&r&&(t=r.length):ye(o)&&(t=o),void 0!==t?(this.names[t]=e.name,this.names.keys[e.name]=t):e.x&&(t=e.x),t}updateNames(){let e=this,t=this.names;t.length>0&&(Object.keys(t.keys).forEach(function(e){delete t.keys[e]}),t.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(t=>{t.xIncrement=null,(!t.points||t.isDirtyData)&&(e.max=Math.max(e.max||0,t.dataTable.rowCount-1),t.processData(),t.generatePoints());let n=t.getColumn("x").slice();t.data.forEach((t,r)=>{let o=n[r];(null==t?void 0:t.options)&&void 0!==t.name&&void 0!==(o=e.nameToX(t))&&o!==t.x&&(n[r]=t.x=o)}),t.dataTable.setColumn("x",n)}))}setAxisTranslation(){var e;let t,n,r=this,o=r.max-r.min,i=r.linkedParent,a=!!r.categories,l=r.isXAxis,s=r.axisPointRange||0,c=0,u=0,d=r.transA;(l||a||s)&&(t=r.getClosest(),i?(c=i.minPointOffset,u=i.pointRangePadding):r.series.forEach(function(e){let n=a?1:l?Te(e.options.pointRange,t,0):r.axisPointRange||0,o=e.options.pointPlacement;if(s=Math.max(s,n),!r.single||a){let t=e.is("xrange")?!l:l;c=Math.max(c,t&&ve(o)?0:n/2),u=Math.max(u,t&&"on"===o?0:n)}}),n=(null==(e=r.ordinal)?void 0:e.slope)&&t?r.ordinal.slope/t:1,r.minPointOffset=c*=n,r.pointRangePadding=u*=n,r.pointRange=Math.min(s,r.single&&a?1:o),l&&(r.closestPointRange=t)),r.translationSlope=r.transA=d=r.staticScale||r.len/(o+u||1),r.transB=r.horiz?r.left:r.bottom,r.minPixelPadding=d*c,le(this,"afterSetAxisTranslation")}minFromRange(){let{max:e,min:t}=this;return ye(e)&&ye(t)&&e-t||void 0}setTickInterval(e){var t,n,r,o;let i,a,l,s,c,{categories:u,chart:d,dataMax:h,dataMin:p,dateTime:f,isXAxis:m,logarithmic:g,options:y,softThreshold:v}=this,b=d.time,x=ye(this.threshold)?this.threshold:void 0,w=this.minRange||0,{ceiling:C,floor:k,linkedTo:S,softMax:E,softMin:$}=y,T=ye(S)&&(null==(t=d[this.coll])?void 0:t[S]),M=y.tickPixelInterval,P=y.maxPadding,N=y.minPadding,I=0,O=ye(y.tickInterval)&&y.tickInterval>=0?y.tickInterval:void 0;if(f||u||T||this.getTickAmount(),s=Te(this.userMin,b.parse(y.min)),c=Te(this.userMax,b.parse(y.max)),T?(this.linkedParent=T,i=T.getExtremes(),this.min=Te(i.min,i.dataMin),this.max=Te(i.max,i.dataMax),this.type!==T.type&&je(11,!0,d)):(v&&ee(x)&&ye(h)&&ye(p)&&(p>=x?(a=x,N=0):h<=x&&(l=x,P=0)),this.min=Te(s,a,p),this.max=Te(c,l,h)),ye(this.max)&&ye(this.min)&&(g&&(this.positiveValuesOnly&&!e&&0>=Math.min(this.min,Te(p,this.min))&&je(10,!0,d),this.min=Y(g.log2lin(this.min),16),this.max=Y(g.log2lin(this.max),16)),this.range&&ye(p)&&(this.userMin=this.min=s=Math.max(p,this.minFromRange()||0),this.userMax=c=this.max,this.range=void 0)),le(this,"foundExtremes"),this.adjustForMinRange(),ye(this.min)&&ye(this.max)){if(!ye(this.userMin)&&ye($)&&$<this.min&&(this.min=s=$),!ye(this.userMax)&&ye(E)&&E>this.max&&(this.max=c=E),u||this.axisPointRange||(null==(n=this.stacking)?void 0:n.usePercentage)||T||(I=this.max-this.min)&&(!ee(s)&&N&&(this.min-=I*N),!ee(c)&&P&&(this.max+=I*P)),!ye(this.userMin)&&ye(k)&&(this.min=Math.max(this.min,k)),!ye(this.userMax)&&ye(C)&&(this.max=Math.min(this.max,C)),v&&ye(p)&&ye(h)){let e=x||0;!ee(s)&&this.min<e&&p>=e?this.min=y.minRange?Math.min(e,this.max-w):e:!ee(c)&&this.max>e&&h<=e&&(this.max=y.minRange?Math.max(e,this.min+w):e)}!d.polar&&this.min>this.max&&(ee(y.min)?this.max=this.min:ee(y.max)&&(this.min=this.max)),I=this.max-this.min}if(this.min!==this.max&&ye(this.min)&&ye(this.max)?T&&!O&&M===T.options.tickPixelInterval?this.tickInterval=O=T.tickInterval:this.tickInterval=Te(O,this.tickAmount?I/Math.max(this.tickAmount-1,1):void 0,u?1:I*M/Math.max(this.len,M)):this.tickInterval=1,m&&!e){let e=this.min!==(null==(r=this.old)?void 0:r.min)||this.max!==(null==(o=this.old)?void 0:o.max);this.series.forEach(function(t){var n;t.forceCrop=null==(n=t.forceCropping)?void 0:n.call(t),t.processData(e)}),le(this,"postProcessData",{hasExtremesChanged:e})}this.setAxisTranslation(),le(this,"initialAxisTranslation"),this.pointRange&&!O&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let A=Te(y.minTickInterval,f&&!this.series.some(e=>!e.sorted)?this.closestPointRange:0);!O&&A&&this.tickInterval<A&&(this.tickInterval=A),f||g||O||(this.tickInterval=xn(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){var e,t,n;let r,o=this.options,i=o.tickPositions,a=o.tickPositioner,l=this.getMinorTickInterval(),s=!this.isPanning,c=s&&o.startOnTick,u=s&&o.endOnTick,d=[];if(this.tickmarkOffset=this.categories&&"between"===o.tickmarkPlacement&&1===this.tickInterval?.5:0,this.single=this.min===this.max&&ee(this.min)&&!this.tickAmount&&(this.min%1==0||!1!==o.allowDecimals),i)d=i.slice();else if(ye(this.min)&&ye(this.max)){if(!(null==(e=this.ordinal)?void 0:e.positions)&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))d=[this.min,this.max],je(19,!1,this.chart);else if(this.dateTime)d=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,o.units),this.min,this.max,o.startOfWeek,null==(t=this.ordinal)?void 0:t.positions,this.closestPointRange,!0);else if(this.logarithmic)d=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let e=this.tickInterval,t=e;for(;t<=2*e&&(d=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&d.length>this.tickAmount);)this.tickInterval=xn(this,t*=1.1)}d.length>this.len&&(d=[d[0],d[d.length-1]])[0]===d[1]&&(d.length=1),a&&(this.tickPositions=d,(r=a.apply(this,[this.min,this.max,this]))&&(d=r))}this.isDirty||d.length===(null==(n=this.tickPositions)?void 0:n.length)||(this.isDirty=!0),this.tickPositions=d,this.minorTickInterval="auto"===l&&this.tickInterval?this.tickInterval/o.minorTicksPerMajor:l,this.paddedTicks=d.slice(0),this.trimTicks(d,c,u),!this.isLinked&&ye(this.min)&&ye(this.max)&&(this.single&&d.length<2&&!this.categories&&!this.series.some(e=>e.is("heatmap")&&"between"===e.options.pointPlacement)&&(this.min-=.5,this.max+=.5),i||r||this.adjustTickAmount()),le(this,"afterSetTickPositions")}trimTicks(e,t,n){let r=e[0],o=e[e.length-1],i=!this.isOrdinal&&this.minPointOffset||0;if(le(this,"trimTicks"),!this.isLinked||!this.grid){if(t&&r!==-1/0)this.min=r;else for(;this.min-i>e[0];)e.shift();if(n)this.max=o;else for(;this.max+i<e[e.length-1];)e.pop();0===e.length&&ee(r)&&!this.options.tickPositions&&e.push((o+r)/2)}}alignToOthers(){let e,t=this,n=t.chart,r=[this],o=t.options,i=n.options.chart,a="yAxis"===this.coll&&i.alignThresholds,l=[];if(t.thresholdAlignment=void 0,(!1!==i.alignTicks&&o.alignTicks||a)&&!1!==o.startOnTick&&!1!==o.endOnTick&&!t.logarithmic){let o=e=>{let{horiz:t,options:n}=e;return[t?n.left:n.top,n.width,n.height,n.pane].join(",")},i=o(this);n[this.coll].forEach(function(n){let{series:a}=n;a.length&&a.some(e=>e.visible)&&n!==t&&o(n)===i&&(e=!0,r.push(n))})}if(e&&a){r.forEach(e=>{let n=e.getThresholdAlignment(t);ye(n)&&l.push(n)});let e=l.length>1?l.reduce((e,t)=>e+t,0)/l.length:void 0;r.forEach(t=>{t.thresholdAlignment=e})}return e}getThresholdAlignment(e){if((!ye(this.dataMin)||this!==e&&this.series.some(e=>{var t;return e.isDirty||e.isDirtyData||(null==(t=e.xAxis)?void 0:t.isDirty)}))&&this.getSeriesExtremes(),ye(this.threshold)){let e=U((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(e=1-e),e}}getTickAmount(){let e=this.options,t=e.tickPixelInterval,n=e.tickAmount;ee(e.tickInterval)||n||!(this.len<t)||this.isRadial||this.logarithmic||!e.startOnTick||!e.endOnTick||(n=2),!n&&this.alignToOthers()&&(n=Math.ceil(this.len/t)+1),n<4&&(this.finalTickAmt=n,n=5),this.tickAmount=n}adjustTickAmount(){let e,t,n,r=this,{finalTickAmt:o,max:i,min:a,options:l,tickPositions:s,tickAmount:c,thresholdAlignment:u}=r,d=null==s?void 0:s.length,h=Te(r.threshold,r.softThreshold?0:null),p=r.tickInterval,f=()=>s.push(Y(s[s.length-1]+p)),m=()=>s.unshift(Y(s[0]-p));if(ye(u)&&(n=0===u?0:1===u?c-1:Math.round(U(u*(c-1),1,c-2)),l.reversed&&(n=c-1-n)),r.hasData()&&ye(a)&&ye(i)){let u=()=>{r.transA*=(d-1)/(c-1),r.min=l.startOnTick?s[0]:Math.min(a,s[0]),r.max=l.endOnTick?s[s.length-1]:Math.max(i,s[s.length-1])};if(ye(n)&&ye(r.threshold)){for(;s[n]!==h||s.length!==c||s[0]>a||s[s.length-1]<i;){for(s.length=0,s.push(r.threshold);s.length<c;)void 0===s[n]||s[n]>r.threshold?m():f();if(p>8*r.tickInterval)break;p*=2}u()}else if(d<c){for(;s.length<c;)s.length%2||a===h?f():m();u()}if(ee(o)){for(t=e=s.length;t--;)(3===o&&t%2==1||o<=2&&t>0&&t<e-1)&&s.splice(t,1);r.finalTickAmt=void 0}}}setScale(){var e,t,n,r,o;let{coll:i,stacking:a}=this,l=!1,s=!1;this.series.forEach(e=>{var t;l=l||e.isDirtyData||e.isDirty,s=s||(null==(t=e.xAxis)?void 0:t.isDirty)||!1}),this.setAxisSize();let c=this.len!==(null==(e=this.old)?void 0:e.len);c||l||s||this.isLinked||this.forceRedraw||this.userMin!==(null==(t=this.old)?void 0:t.userMin)||this.userMax!==(null==(n=this.old)?void 0:n.userMax)||this.alignToOthers()?(a&&"yAxis"===i&&a.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),a&&"xAxis"===i&&a.buildStacks(),this.isDirty||(this.isDirty=c||this.min!==(null==(r=this.old)?void 0:r.min)||this.max!==(null==(o=this.old)?void 0:o.max))):a&&a.cleanStacks(),l&&delete this.allExtremes,le(this,"afterSetScale")}setExtremes(e,t,n=!0,r,o){let i=this.chart;this.series.forEach(e=>{delete e.kdTree}),le(this,"setExtremes",o=ie(o,{min:e=i.time.parse(e),max:t=i.time.parse(t)}),e=>{this.userMin=e.min,this.userMax=e.max,this.eventArgs=e,n&&i.redraw(r)})}setAxisSize(){let e=this.chart,t=this.options,n=t.offsets||[0,0,0,0],r=this.horiz,o=this.width=Math.round(Ne(Te(t.width,e.plotWidth-n[3]+n[1]),e.plotWidth)),i=this.height=Math.round(Ne(Te(t.height,e.plotHeight-n[0]+n[2]),e.plotHeight)),a=this.top=Math.round(Ne(Te(t.top,e.plotTop+n[0]),e.plotHeight,e.plotTop)),l=this.left=Math.round(Ne(Te(t.left,e.plotLeft+n[3]),e.plotWidth,e.plotLeft));this.bottom=e.chartHeight-i-a,this.right=e.chartWidth-o-l,this.len=Math.max(r?o:i,0),this.pos=r?l:a}getExtremes(){let e=this.logarithmic;return{min:e?Y(e.lin2log(this.min)):this.min,max:e?Y(e.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(e){let t=this.logarithmic,n=t?t.lin2log(this.min):this.min,r=t?t.lin2log(this.max):this.max;return null===e||e===-1/0?e=n:e===1/0?e=r:n>e?e=n:r<e&&(e=r),this.translate(e,0,1,0,1)}autoLabelAlign(e){let t=((e-90*this.side)%360+360)%360,n={align:"center"};return le(this,"autoLabelAlign",n,function(e){t>15&&t<165?e.align="right":t>195&&t<345&&(e.align="left")}),n.align}tickSize(e){let t,n=this.options,r=Te(n["tick"===e?"tickWidth":"minorTickWidth"],"tick"===e&&this.isXAxis&&!this.categories?1:0),o=n["tick"===e?"tickLength":"minorTickLength"];r&&o&&("inside"===n[e+"Position"]&&(o=-o),t=[o,r]);let i={tickSize:t};return le(this,"afterTickSize",i),i.tickSize}labelMetrics(){let e=this.chart.renderer,t=this.ticks,n=t[Object.keys(t)[0]]||{};return this.chart.renderer.fontMetrics(n.label||n.movedLabel||e.box)}unsquish(){let e,t,n=this.options.labels,r=n.padding||0,o=this.horiz,i=this.tickInterval,a=this.len/((+!!this.categories+this.max-this.min)/i),l=n.rotation,s=Y(.8*this.labelMetrics().h),c=Math.max(this.max-this.min,0),u=function(e){let t=(e+2*r)/(a||1);return(t=t>1?Math.ceil(t):1)*i>c&&e!==1/0&&a!==1/0&&c&&(t=Math.ceil(c/i)),Y(t*i)},d=i,h=Number.MAX_VALUE;if(o){if(!n.staggerLines&&(ye(l)?t=[l]:a<n.autoRotationLimit&&(t=n.autoRotation)),t){let n,r;for(let o of t)(o===l||o&&o>=-90&&o<=90)&&(r=(n=u(Math.abs(s/Math.sin(bn*o))))+Math.abs(o/360))<h&&(h=r,e=o,d=n)}}else d=u(.75*s);return this.autoRotation=t,this.labelRotation=Te(e,ye(l)?l:0),n.step?i:d}getSlotWidth(e){let t=this.chart,n=this.horiz,r=this.options.labels,o=Math.max(this.tickPositions.length-!this.categories,1),i=t.margin[3];if(e&&ye(e.slotWidth))return e.slotWidth;if(n&&r.step<2&&!this.isRadial)return r.rotation?0:(this.staggerLines||1)*this.len/o;if(!n){let e=r.style.width;if(void 0!==e)return parseInt(String(e),10);if(!this.opposite&&i)return i-t.spacing[3]}return.33*t.chartWidth}renderUnsquish(){let e,t=this.chart,n=t.renderer,r=this.tickPositions,o=this.ticks,i=this.options.labels,a=i.style,l=this.horiz,s=this.getSlotWidth(),c=Math.max(1,Math.round(s-(l?2*(i.padding||0):i.distance||0))),u={},d=this.labelMetrics(),h=a.lineClamp,p=h??(Math.floor(this.len/(r.length*d.h))||1),f=0;ve(i.rotation)||(u.rotation=i.rotation||0),r.forEach(function(e){var t;let n=o[e];n.movedLabel&&n.replaceMovedLabel();let r=(null==(t=n.label)?void 0:t.textPxLength)||0;r>f&&(f=r)}),this.maxLabelLength=f,this.autoRotation?f>c&&f>d.h?u.rotation=this.labelRotation:this.labelRotation=0:s&&(e=c),u.rotation&&(e=f>.5*t.chartHeight?.33*t.chartHeight:f,h||(p=1)),this.labelAlign=i.align||this.autoLabelAlign(this.labelRotation||0),this.labelAlign&&(u.align=this.labelAlign),r.forEach(function(t){let n=o[t],r=null==n?void 0:n.label,i=a.width,l={};r&&(r.attr(u),n.shortenLabel?n.shortenLabel():e&&!i&&"nowrap"!==a.whiteSpace&&(e<(r.textPxLength||0)||"SPAN"===r.element.tagName)?r.css(ie(l,{width:`${e}px`,lineClamp:p})):!r.styles.width||l.width||i||r.css({width:"auto"}),n.rotation=u.rotation)},this),this.tickRotCorr=n.rotCorr(d.b,this.labelRotation||0,0!==this.side)}hasData(){return this.series.some(function(e){return e.hasData()})||this.options.showEmpty&&ee(this.min)&&ee(this.max)}addTitle(e){let t,n=this.chart.renderer,r=this.horiz,o=this.opposite,i=this.options.title,a=this.chart.styledMode;this.axisTitle||((t=i.textAlign)||(t=(r?{low:"left",middle:"center",high:"right"}:{low:o?"right":"left",middle:"center",high:o?"left":"right"})[i.align]),this.axisTitle=n.text(i.text||"",0,0,i.useHTML).attr({zIndex:7,rotation:i.rotation||0,align:t}).addClass("highcharts-axis-title"),a||this.axisTitle.css(Ce(i.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),a||i.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[e?"show":"hide"](e)}generateTick(e){let t=this.ticks;t[e]?t[e].addLabel():t[e]=new pn(this,e)}createGroups(){let{axisParent:e,chart:t,coll:n,options:r}=this,o=t.renderer,i=(t,i,a)=>o.g(t).attr({zIndex:a}).addClass(`highcharts-${n.toLowerCase()}${i} `+(this.isRadial?`highcharts-radial-axis${i} `:"")+(r.className||"")).add(e);this.axisGroup||(this.gridGroup=i("grid","-grid",r.gridZIndex),this.axisGroup=i("axis","",r.zIndex),this.labelGroup=i("axis-labels","-labels",r.labels.zIndex))}getOffset(){let e,t,n,r,o=this,{chart:i,horiz:a,options:l,side:s,ticks:c,tickPositions:u,coll:d}=o,h=i.inverted&&!o.isZAxis?[1,0,3,2][s]:s,p=o.hasData(),f=l.title,m=l.labels,g=ye(l.crossing),y=i.axisOffset,v=i.clipOffset,b=[-1,1,1,-1][s],x=0,w=0,C=0;if(o.showAxis=e=p||l.showEmpty,o.staggerLines=o.horiz&&m.staggerLines||void 0,o.createGroups(),p||o.isLinked?(u.forEach(function(e){o.generateTick(e)}),o.renderUnsquish(),o.reserveSpaceDefault=0===s||2===s||{1:"left",3:"right"}[s]===o.labelAlign,Te(m.reserveSpace,!g&&null,"center"===o.labelAlign||null,o.reserveSpaceDefault)&&u.forEach(function(e){C=Math.max(c[e].getLabelSize(),C)}),o.staggerLines&&(C*=o.staggerLines),o.labelOffset=C*(o.opposite?-1:1)):Se(c,function(e,t){e.destroy(),delete c[t]}),(null==f?void 0:f.text)&&!1!==f.enabled&&(o.addTitle(e),e&&!g&&!1!==f.reserveSpace&&(o.titleOffset=x=o.axisTitle.getBBox()[a?"height":"width"],w=ee(t=f.offset)?0:Te(f.margin,a?5:10))),o.renderLine(),o.offset=b*Te(l.offset,y[s]?y[s]+(l.margin||0):0),o.tickRotCorr=o.tickRotCorr||{x:0,y:0},r=0===s?-o.labelMetrics().h:2===s?o.tickRotCorr.y:0,n=Math.abs(C)+w,C&&(n-=r,n+=b*(a?Te(m.y,o.tickRotCorr.y+b*m.distance):Te(m.x,b*m.distance))),o.axisTitleMargin=Te(t,n),o.getMaxLabelDimensions&&(o.maxLabelDimensions=o.getMaxLabelDimensions(c,u)),"colorAxis"!==d&&v){let e=this.tickSize("tick");y[s]=Math.max(y[s],(o.axisTitleMargin||0)+x+b*o.offset,n,(null==u?void 0:u.length)&&e?e[0]+b*o.offset:0);let t=!o.axisLine||l.offset?0:o.axisLine.strokeWidth()/2;v[h]=Math.max(v[h],t)}le(this,"afterGetOffset")}getLinePath(e){let t=this.chart,n=this.opposite,r=this.offset,o=this.horiz,i=this.left+(n?this.width:0)+r,a=t.chartHeight-this.bottom-(n?this.height:0)+r;return n&&(e*=-1),t.renderer.crispLine([["M",o?this.left:i,o?a:this.top],["L",o?t.chartWidth-this.right:i,o?a:t.chartHeight-this.bottom]],e)}renderLine(){!this.axisLine&&(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(e){let t=this.horiz,n=this.left,r=this.top,o=this.len,i=this.options.title,a=t?n:r,l=this.opposite,s=this.offset,c=i.x,u=i.y,d=this.chart.renderer.fontMetrics(e),h=e?Math.max(e.getBBox(!1,0).height-d.h-1,0):0,p={low:a+(t?0:o),middle:a+o/2,high:a+(t?o:0)}[i.align],f=(t?r+this.height:n)+(t?1:-1)*(l?-1:1)*(this.axisTitleMargin||0)+[-h,h,d.f,-h][this.side],m={x:t?p+c:f+(l?this.width:0)+s+c,y:t?f+u-(l?this.height:0)+s:p+u};return le(this,"afterGetTitlePosition",{titlePosition:m}),m}renderMinorTick(e,t){let n=this.minorTicks;n[e]||(n[e]=new pn(this,e,"minor")),t&&n[e].isNew&&n[e].render(null,!0),n[e].render(null,!1,1)}renderTick(e,t,n){var r;let o=this.isLinked,i=this.ticks;(!o||e>=this.min&&e<=this.max||(null==(r=this.grid)?void 0:r.isColumn))&&(i[e]||(i[e]=new pn(this,e)),n&&i[e].isNew&&i[e].render(t,!0,-1),i[e].render(t))}render(){let e,t,n=this,r=n.chart,o=n.logarithmic,i=r.renderer,a=n.options,l=n.isLinked,s=n.tickPositions,c=n.axisTitle,u=n.ticks,d=n.minorTicks,h=n.alternateBands,p=a.stackLabels,f=a.alternateGridColor,m=a.crossing,g=n.tickmarkOffset,y=n.axisLine,v=n.showAxis,b=fn(i.globalAnimation);if(n.labelEdge.length=0,n.overlap=!1,[u,d,h].forEach(function(e){Se(e,function(e){e.isActive=!1})}),ye(m)){let e=this.isXAxis?r.yAxis[0]:r.xAxis[0],t=[1,-1,-1,1][this.side];if(e){let r=e.toPixels(m,!0);n.horiz&&(r=e.len-r),n.offset=t*r}}if(n.hasData()||l){let i=n.chart.hasRendered&&n.old&&ye(n.old.min);n.minorTickInterval&&!n.categories&&n.getMinorTickPositions().forEach(function(e){n.renderMinorTick(e,i)}),s.length&&(s.forEach(function(e,t){n.renderTick(e,t,i)}),g&&(0===n.min||n.single)&&(u[-1]||(u[-1]=new pn(n,-1,null,!0)),u[-1].render(-1))),f&&s.forEach(function(i,a){t=void 0!==s[a+1]?s[a+1]+g:n.max-g,a%2==0&&i<n.max&&t<=n.max+(r.polar?-g:g)&&(h[i]||(h[i]=new _.PlotLineOrBand(n,{})),e=i+g,h[i].options={from:o?o.lin2log(e):e,to:o?o.lin2log(t):t,color:f,className:"highcharts-alternate-grid"},h[i].render(),h[i].isActive=!0)}),n._addedPlotLB||(n._addedPlotLB=!0,(a.plotLines||[]).concat(a.plotBands||[]).forEach(function(e){n.addPlotBandOrLine(e)}))}[u,d,h].forEach(function(e){let t=[],n=b.duration;Se(e,function(e,n){e.isActive||(e.render(n,!1,0),e.isActive=!1,t.push(n))}),Le(function(){let n=t.length;for(;n--;)e[t[n]]&&!e[t[n]].isActive&&(e[t[n]].destroy(),delete e[t[n]])},e!==h&&r.hasRendered&&n?n:0)}),y&&(y[y.isPlaced?"animate":"attr"]({d:this.getLinePath(y.strokeWidth())}),y.isPlaced=!0,y[v?"show":"hide"](v)),c&&v&&(c[c.isNew?"attr":"animate"](n.getTitlePosition(c)),c.isNew=!1),(null==p?void 0:p.enabled)&&n.stacking&&n.stacking.renderStackTotals(),n.old={len:n.len,max:n.max,min:n.min,transA:n.transA,userMax:n.userMax,userMin:n.userMin},n.isDirty=!1,le(this,"afterRender")}redraw(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(e){e.render()})),this.series.forEach(function(e){e.isDirty=!0})}getKeepProps(){return this.keepProps||wn.keepProps}destroy(e){let t=this,n=t.plotLinesAndBands,r=this.eventOptions;if(le(this,"destroy",{keepEvents:e}),e||Oe(t),[t.ticks,t.minorTicks,t.alternateBands].forEach(function(e){te(e)}),n){let e=n.length;for(;e--;)n[e].destroy()}for(let e in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(e){t[e]&&(t[e]=t[e].destroy())}),t.plotLinesAndBandsGroups)t.plotLinesAndBandsGroups[e]=t.plotLinesAndBandsGroups[e].destroy();Se(t,function(e,n){-1===t.getKeepProps().indexOf(n)&&delete t[n]}),this.eventOptions=r}drawCrosshair(e,t){var n;let r,o,i,a,l=this.crosshair,s=(null==l?void 0:l.snap)??!0,c=this.chart,u=this.cross;if(le(this,"drawCrosshair",{e:e,point:t}),e||(e=null==(n=this.cross)?void 0:n.e),l&&!1!==(ee(t)||!s)){if(clearTimeout(this.crossShowTimer),s?ee(t)&&(o=Te("colorAxis"!==this.coll?t.crosshairPos:null,this.isXAxis?t.plotX:this.len-t.plotY)):o=e&&(this.horiz?e.chartX-this.pos:this.len-e.chartY+this.pos),ee(o)&&(a={value:t&&(this.isXAxis?t.x:Te(t.stackY,t.y)),translatedValue:o},c.polar&&ie(a,{isCrosshair:!0,chartX:null==e?void 0:e.chartX,chartY:null==e?void 0:e.chartY,point:t}),r=this.getPlotLinePath(a)||null),!ee(r))return void this.hideCrosshair();i=this.categories&&!this.isRadial,this.crossShowTimer=Le(()=>{let t=this.cross;t||(this.cross=t=c.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(i?"category ":"thin ")+(l.className||"")).attr({zIndex:Te(l.zIndex,2)}).add(),!c.styledMode&&(t.attr({stroke:l.color||(i?tt.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":Te(l.width,1)}).css({"pointer-events":"none"}),l.dashStyle&&t.attr({dashstyle:l.dashStyle}))),t.show().animate({d:r},fn(null==l?void 0:l.animation)),i&&!l.width&&t.attr({"stroke-width":this.transA}),this.cross&&(this.cross.e=e)},(!u||"hidden"===u.attr("visibility"))&&l.showDelay||0)}else this.hideCrosshair();le(this,"afterDrawCrosshair",{e:e,point:t})}hideCrosshair(){clearTimeout(this.crossShowTimer),this.cross&&this.cross.hide(),le(this,"afterHideCrosshair")}update(e,t){let n=this.chart;e=Ce(this.userOptions,e),this.destroy(!0),this.init(n,e),n.isDirtyBox=!0,Te(t,!0)&&n.redraw()}remove(e){let t=this.chart,n=this.coll,r=this.series,o=r.length;for(;o--;)r[o]&&r[o].remove(!1);oe(t.axes,this),oe(t[n]||[],this),t.orderItems(n),this.destroy(),t.isDirtyBox=!0,Te(e,!0)&&t.redraw()}setTitle(e,t){this.update({title:e},t)}setCategories(e,t){this.update({categories:e},t)}}wn.keepProps=["coll","extKey","hcEvents","len","names","series","userMax","userMin"],function(e){function t(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function n(){"datetime"===this.type?this.dateTime||(this.dateTime=new r(this)):this.dateTime=void 0}e.compose=function(e){return e.keepProps.includes("dateTime")||(e.keepProps.push("dateTime"),e.prototype.getTimeTicks=t,V(e,"afterSetType",n)),e};class r{constructor(e){this.axis=e}normalizeTimeTickInterval(e,t){let n,r,o=t||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],i=o[o.length-1],a=He[i[0]],l=i[1];for(n=0;n<o.length;n++)if(a=He[(i=o[n])[0]],l=i[1],o[n+1]){let t=(a*l[l.length-1]+He[o[n+1][0]])/2;if(e<=t){r=t/e;break}}return a===He.year&&e<5*a&&(l=[1,2,5]),{unitRange:a,count:ke(e/a,l,"year"===i[0]?Math.max(ue(e/a),1):1),unitName:i[0],match:r}}getXDateFormat(e,t){let{axis:n}=this,r=n.chart.time;return n.closestPointRange?r.getDateFormat(n.closestPointRange,e,n.options.startOfWeek,t)||r.resolveDTLFormat(t.year).main:r.resolveDTLFormat(t.day).main}}e.Additions=r}(M||(M={}));let Cn=M;!function(e){function t(){"logarithmic"!==this.type?this.logarithmic=void 0:this.logarithmic??(this.logarithmic=new r(this))}function n(){let e=this.logarithmic;e&&(this.lin2val=function(t){return e.lin2log(t)},this.val2lin=function(t){return e.log2lin(t)})}e.compose=function(e){return e.keepProps.includes("logarithmic")||(e.keepProps.push("logarithmic"),V(e,"afterSetType",t),V(e,"afterInit",n)),e};class r{constructor(e){this.axis=e}getLogTickPositions(e,t,n,r){let o=this.axis,i=o.len,a=o.options,l=[];if(r||(this.minorAutoInterval=void 0),e>=.5)e=Math.round(e),l=o.getLinearTickPositions(e,t,n);else if(e>=.08){let o,i,a,s,c,u,d;for(o=e>.3?[1,2,4]:e>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],i=Math.floor(t);i<n+1&&!d;i++)for(a=0,s=o.length;a<s&&!d;a++)(c=this.log2lin(this.lin2log(i)*o[a]))>t&&(!r||u<=n)&&void 0!==u&&l.push(u),u>n&&(d=!0),u=c}else{let s=this.lin2log(t),c=this.lin2log(n),u=r?o.getMinorTickInterval():a.tickInterval,d=a.tickPixelInterval/(r?5:1),h=r?i/o.tickPositions.length:i;e=ke(e=Te("auto"===u?null:u,this.minorAutoInterval,(c-s)*d/(h||1))),l=o.getLinearTickPositions(e,s,c).map(this.log2lin),r||(this.minorAutoInterval=e/5)}return r||(o.tickInterval=e),l}lin2log(e){return Math.pow(10,e)}log2lin(e){return Math.log(e)/Math.LN10}}e.Additions=r}(P||(P={}));let kn=P;!function(e){let t;function n(e){return this.addPlotBandOrLine(e,"plotBands")}function r(e,n){let r=this.userOptions,o=new t(this,e);if(this.visible&&(o=o.render()),o){if(this._addedPlotLB||(this._addedPlotLB=!0,(r.plotLines||[]).concat(r.plotBands||[]).forEach(e=>{this.addPlotBandOrLine(e)})),n){let t=r[n]||[];t.push(e),r[n]=t}this.plotLinesAndBands.push(o)}return o}function o(e){return this.addPlotBandOrLine(e,"plotLines")}function i(e,t,n){n=n||this.options;let r,o,i=this.getPlotLinePath({value:t,force:!0,acrossPanes:n.acrossPanes}),a=[],l=this.horiz,s=!ye(this.min)||!ye(this.max)||e<this.min&&t<this.min||e>this.max&&t>this.max,c=this.getPlotLinePath({value:e,force:!0,acrossPanes:n.acrossPanes}),u=1;if(c&&i)for(s&&(o=c.toString()===i.toString(),u=0),r=0;r<c.length;r+=2){let e=c[r],t=c[r+1],n=i[r],s=i[r+1];("M"===e[0]||"L"===e[0])&&("M"===t[0]||"L"===t[0])&&("M"===n[0]||"L"===n[0])&&("M"===s[0]||"L"===s[0])&&(l&&n[1]===e[1]?(n[1]+=u,s[1]+=u):l||n[2]!==e[2]||(n[2]+=u,s[2]+=u),a.push(["M",e[1],e[2]],["L",t[1],t[2]],["L",s[1],s[2]],["L",n[1],n[2]],["Z"])),a.isFlat=o}return a}function a(e){this.removePlotBandOrLine(e)}function l(e){let t=this.plotLinesAndBands,n=this.options,r=this.userOptions;if(t){let o=t.length;for(;o--;)t[o].id===e&&t[o].destroy();[n.plotLines||[],r.plotLines||[],n.plotBands||[],r.plotBands||[]].forEach(function(t){var n;for(o=t.length;o--;)(null==(n=t[o])?void 0:n.id)===e&&oe(t,t[o])})}}function s(e){this.removePlotBandOrLine(e)}e.compose=function(e,c){let u=c.prototype;return u.addPlotBand||(t=e,ie(u,{addPlotBand:n,addPlotLine:o,addPlotBandOrLine:r,getPlotBandPath:i,removePlotBand:a,removePlotLine:s,removePlotBandOrLine:l})),c}}(N||(N={}));let Sn=N;class En{static compose(e,t){return V(e,"afterInit",function(){this.labelCollectors.push(()=>{var e;let t=[];for(let n of this.axes)for(let{label:r,options:o}of n.plotLinesAndBands)r&&!(null==(e=null==o?void 0:o.label)?void 0:e.allowOverlap)&&t.push(r);return t})}),Sn.compose(En,t)}constructor(e,t){this.axis=e,this.options=t,this.id=t.id}render(){le(this,"render");let e,{axis:t,options:n}=this,{horiz:r,logarithmic:o}=t,{color:i,events:a,zIndex:l=0}=n,{renderer:s,time:c}=t.chart,u={},d=c.parse(n.to),h=c.parse(n.from),p=c.parse(n.value),f=n.borderWidth,m=n.label,{label:g,svgElem:y}=this,v=[],b=ee(h)&&ee(d),x=ee(p),w=!y,C={class:"highcharts-plot-"+(b?"band ":"line ")+(n.className||"")},k=b?"bands":"lines";if(!t.chart.styledMode&&(x?(C.stroke=i||"#999999",C["stroke-width"]=Te(n.width,1),n.dashStyle&&(C.dashstyle=n.dashStyle)):b&&(C.fill=i||"#e6e9ff",f&&(C.stroke=n.borderColor,C["stroke-width"]=f))),u.zIndex=l,k+="-"+l,(e=t.plotLinesAndBandsGroups[k])||(t.plotLinesAndBandsGroups[k]=e=s.g("plot-"+k).attr(u).add()),y||(this.svgElem=y=s.path().attr(C).add(e)),ee(p))v=t.getPlotLinePath({value:(null==o?void 0:o.log2lin(p))??p,lineWidth:y.strokeWidth(),acrossPanes:n.acrossPanes});else{if(!ee(h)||!ee(d))return;v=t.getPlotBandPath((null==o?void 0:o.log2lin(h))??h,(null==o?void 0:o.log2lin(d))??d,n)}return!this.eventsAdded&&a&&(Se(a,(e,t)=>{null==y||y.on(t,e=>{a[t].apply(this,[e,this])})}),this.eventsAdded=!0),!w&&y.d||!(null==v?void 0:v.length)?y&&(v?(y.show(),y.animate({d:v})):y.d&&(y.hide(),g&&(this.label=g=g.destroy()))):y.attr({d:v}),m&&(ee(m.text)||ee(m.formatter))&&(null==v?void 0:v.length)&&t.width>0&&t.height>0&&!v.isFlat?(m=Ce({align:r&&b?"center":void 0,x:r?!b&&4:10,verticalAlign:!r&&b?"middle":void 0,y:r?b?16:10:b?6:-4,rotation:r&&!b?90:0,...b?{inside:!0}:{}},m),this.renderLabel(m,v,b,l)):g&&g.hide(),this}renderLabel(e,t,n,r){var o,i,a;let l=this.axis,s=l.chart.renderer,c=e.inside,u=this.label;u||(this.label=u=s.text(this.getLabelText(e),0,0,e.useHTML).attr({align:e.textAlign||e.align,rotation:e.rotation,class:"highcharts-plot-"+(n?"band":"line")+"-label "+(e.className||""),zIndex:r}),l.chart.styledMode||u.css(Ce({color:null==(i=null==(o=l.chart.options.title)?void 0:o.style)?void 0:i.color,fontSize:"0.8em",textOverflow:n&&!c?"":"ellipsis"},e.style)),u.add());let d=t.xBounds||[t[0][1],t[1][1],n?t[2][1]:t[0][1]],h=t.yBounds||[t[0][2],t[1][2],n?t[2][2]:t[0][2]],p=G(d),f=G(h),m=q(d)-p;u.align(e,!1,{x:p,y:f,width:m,height:q(h)-f}),u.alignAttr.y-=s.fontMetrics(u).b,(!u.alignValue||"left"===u.alignValue||ee(c))&&u.css({width:((null==(a=e.style)?void 0:a.width)||(n&&c?m:90===u.rotation?l.height-(u.alignAttr.y-l.top):(e.clip?l.width+l.left:l.chart.chartWidth)-u.alignAttr.x))+"px"}),u.show(!0)}getLabelText(e){return ee(e.formatter)?e.formatter.call(this,this):e.text}destroy(){oe(this.axis.plotLinesAndBands,this),delete this.axis,te(this)}}let{animObject:$n}=lt,{format:Tn}=wt,{composed:Mn,dateFormats:Pn,doc:Nn,isSafari:In}=_,{distribute:On}=kt,An=e=>{clearTimeout(e.hideTimer),clearTimeout(e.showTimer)};class Rn{constructor(e,t,n){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=e,this.init(e,t),this.pointer=n}bodyFormatter(e){return e.map(e=>{let t=e.series.tooltipOptions,n=e.formatPrefix||"point";return(t[n+"Formatter"]||e.tooltipFormatter).call(e,t[n+"Format"]||"",e)})}cleanSplit(e){this.chart.series.forEach(function(t){let n=null==t?void 0:t.tt;n&&(!n.isActive||e?t.tt=n.destroy():n.isActive=!1)})}defaultFormatter(e){let t,n=this.points||Ae(this);return(t=(t=[e.headerFooterFormatter(n[0])]).concat(e.bodyFormatter(n))).push(e.headerFooterFormatter(n[0],!0)),t}destroy(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),ne(this.container)),fe(this.hideTimer),An(this)}getAnchor(e,t){var n;let r,{chart:o,pointer:i}=this,a=o.inverted,l=o.plotTop,s=o.plotLeft;if((null==(n=(e=Ae(e))[0].series)?void 0:n.yAxis)&&!e[0].series.yAxis.options.reversedStacks&&(e=e.slice().reverse()),this.followPointer&&t)void 0===t.chartX&&(t=i.normalize(t)),r=[t.chartX-s,t.chartY-l];else if(e[0].tooltipPos)r=e[0].tooltipPos;else{let n=0,o=0;e.forEach(function(e){let t=e.pos(!0);t&&(n+=t[0],o+=t[1])}),n/=e.length,o/=e.length,this.shared&&e.length>1&&t&&(a?n=t.chartX:o=t.chartY),r=[n-s,o-l]}let c={point:e[0],ret:r};return le(this,"getAnchor",c),c.ret.map(Math.round)}getClassName(e,t,n){let r=this.options,o=e.series,i=o.options;return[r.className,"highcharts-label",n&&"highcharts-tooltip-header",t?"highcharts-tooltip-box":"highcharts-tooltip",!n&&"highcharts-color-"+Te(e.colorIndex,o.colorIndex),null==i?void 0:i.className].filter(ve).join(" ")}getLabel({anchorX:e,anchorY:t}={anchorX:0,anchorY:0}){let n=this,r=this.chart.styledMode,o=this.options,i=this.split&&this.allowShared,a=this.container,l=this.chart.renderer;if(this.label){let e=!this.label.hasClass("highcharts-label");(!i&&e||i&&!e)&&this.destroy()}if(!this.label){if(this.outside){let e=this.chart,t=e.options.chart.style,n=Ct.getRendererType();this.container=a=_.doc.createElement("div"),a.className="highcharts-tooltip-container "+(e.renderTo.className.match(/(highcharts[a-zA-Z0-9-]+)\s?/gm)||""),J(a,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,((null==t?void 0:t.zIndex)||0)+3)}),this.renderer=l=new n(a,0,0,t,void 0,void 0,l.styledMode)}if(i?this.label=l.g("tooltip"):(this.label=l.label("",e,t,o.shape||"callout",void 0,void 0,o.useHTML,void 0,"tooltip").attr({padding:o.padding,r:o.borderRadius}),r||this.label.attr({fill:o.backgroundColor,"stroke-width":o.borderWidth||0}).css(o.style).css({pointerEvents:o.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),n.outside){let e=this.label;[e.xSetter,e.ySetter].forEach((t,r)=>{e[r?"ySetter":"xSetter"]=o=>{t.call(e,n.distance),e[r?"y":"x"]=o,a&&(a.style[r?"top":"left"]=`${o}px`)}})}this.label.attr({zIndex:8}).shadow(o.shadow??!o.fixed).add()}return a&&!a.parentElement&&_.doc.body.appendChild(a),this.label}getPlayingField(){let{body:e,documentElement:t}=Nn,{chart:n,distance:r,outside:o}=this;return{width:o?Math.max(e.scrollWidth,t.scrollWidth,e.offsetWidth,t.offsetWidth,t.clientWidth)-2*r-2:n.chartWidth,height:o?Math.max(e.scrollHeight,t.scrollHeight,e.offsetHeight,t.offsetHeight,t.clientHeight):n.chartHeight}}getPosition(e,t,n){var r,o;let i,{distance:a,chart:l,outside:s,pointer:c}=this,{inverted:u,plotLeft:d,plotTop:h,polar:p}=l,{plotX:f=0,plotY:m=0}=n,g={},y=u&&n.h||0,{height:v,width:b}=this.getPlayingField(),x=c.getChartPosition(),w=n=>{let r="x"===n;return[n,r?b:v,r?e:t].concat(s?[r?e*x.scaleX:t*x.scaleY,r?x.left-a+(f+d)*x.scaleX:x.top-a+(m+h)*x.scaleY,0,r?b:v]:[r?e:t,r?f+d:m+h,r?d:h,r?d+l.plotWidth:h+l.plotHeight])},C=w("y"),k=w("x"),S=!!n.negative;!p&&(null==(o=null==(r=l.hoverSeries)?void 0:r.yAxis)?void 0:o.reversed)&&(S=!S);let E=!this.followPointer&&Te(n.ttBelow,!p&&!u===S),$=function(e,t,n,r,o,i,l){let c=s?"y"===e?a*x.scaleY:a*x.scaleX:a,u=(n-r)/2,d=r<o-a,h=o+a+r<t,p=o-c-n+u,f=o+c-u;if(E&&h)g[e]=f;else if(!E&&d)g[e]=p;else if(d)g[e]=Math.min(l-r,p-y<0?p:p-y);else{if(!h)return g[e]=0,!1;g[e]=Math.max(i,f+y+n>t?f:f+y)}},T=function(e,t,n,r,o){if(o<a||o>t-a)return!1;g[e]=o<n/2?1:o>t-r/2?t-r-2:o-n/2},M=function(e){[C,k]=[k,C],i=e},P=()=>{!1!==$.apply(0,C)?!1!==T.apply(0,k)||i||(M(!0),P()):i?g.x=g.y=0:(M(!0),P())};return(u&&!p||this.len>1)&&M(),P(),s&&(g.x-=x.left,g.y-=x.top),g}getFixedPosition(e,t,n){var r;let o=n.series,{chart:i,options:a,split:l}=this,s=a.position,c=s.relativeTo,u=a.shared||(null==(r=null==o?void 0:o.yAxis)?void 0:r.isRadial)&&("pane"===c||!c)?"plotBox":c,d="chart"===u?i.renderer:i[u]||i.getClipBox(o,!0);return{x:d.x+(d.width-e)*se(s.align)+s.x,y:d.y+(d.height-t)*se(s.verticalAlign)+(!l&&s.y||0)}}hide(e){let t=this;An(this),e=Te(e,this.options.hideDelay),this.isHidden||(this.hideTimer=Le(function(){let n=t.getLabel();t.getLabel().animate({opacity:0},{duration:e?150:e,complete:()=>{n.hide(),t.container&&t.container.remove()}}),t.isHidden=!0},e))}init(e,t){this.chart=e,this.options=t,this.crosshairs=[],this.isHidden=!0,this.split=t.split&&!e.inverted&&!e.polar,this.shared=t.shared||this.split,this.outside=Te(t.outside,!(!e.scrollablePixelsX&&!e.scrollablePixelsY))}shouldStickOnContact(e){return!(this.followPointer||!this.options.stickOnContact||e&&!this.pointer.inClass(e.target,"highcharts-tooltip"))}move(e,t,n,r){let{followPointer:o,options:i}=this,a=$n(!o&&!this.isHidden&&!i.fixed&&i.animation),l={x:e,y:t};o||(this.len||0)>1?l.anchorX=l.anchorY=NaN:(l.anchorX=n,l.anchorY=r),a.step=()=>this.drawTracker(),this.getLabel().animate(l,a)}refresh(e,t){let n=this,{chart:r,options:o,pointer:i,shared:a}=this,l=Ae(e),s=l[0],c=o.format,u=o.formatter||n.defaultFormatter,d=r.styledMode,h=n.allowShared;if(!o.enabled||!s.series)return;An(this),n.allowShared=!(!be(e)&&e.series&&e.series.noSharedTooltip),h=h&&!n.allowShared,n.followPointer=!n.split&&s.series.tooltipOptions.followPointer;let p=n.getAnchor(e,t),f=p[0],m=p[1];a&&n.allowShared&&(i.applyInactiveState(l),l.forEach(e=>e.setState("hover")),s.points=l),this.len=l.length;let g=ve(c)?Tn(c,s,r):u.call(s,n,s);s.points=void 0;let y=s.series;this.distance=Te(y.tooltipOptions.distance,16),!1===g?this.hide():this.showTimer=Le(()=>{if(n.split&&n.allowShared)n.renderSplit(g,l);else{let e=f,a=m;if(t&&i.isDirectTouch&&(e=t.chartX-r.plotLeft,a=t.chartY-r.plotTop),!r.polar&&!1!==y.options.clip&&!l.some(t=>i.isDirectTouch||t.series.shouldShowTooltip(e,a)))return void n.hide();{let e=n.getLabel(h&&n.tt||{});(!o.style.width||d)&&e.css({width:(this.outside?this.getPlayingField():r.spacingBox).width-2*o.padding+"px"}),e.attr({class:n.getClassName(s),text:be(g)?g.join(""):g}),this.outside&&e.attr({x:U(e.x||0,0,this.getPlayingField().width-(e.width||0)-1)}),d||e.attr({stroke:o.borderColor||s.color||y.color||"#666666"}),n.updatePosition({plotX:f,plotY:m,negative:s.negative,ttBelow:s.ttBelow,series:y,h:p[2]||0})}}n.isHidden&&n.label&&n.label.attr({opacity:1}).show(),n.isHidden=!1},n.isHidden&&o.showDelay||0),le(this,"refresh")}renderSplit(e,t){var n,r;let o=this,{chart:i,chart:{chartWidth:a,chartHeight:l,plotHeight:s,plotLeft:c,plotTop:u,scrollablePixelsY:d=0,scrollablePixelsX:h,styledMode:p},distance:f,options:m,options:{fixed:g,position:y,positioner:v},pointer:b}=o,{scrollLeft:x=0,scrollTop:w=0}=(null==(n=i.scrollablePlotArea)?void 0:n.scrollingContainer)||{},C=o.outside&&"number"!=typeof h?Nn.documentElement.getBoundingClientRect():{left:x,right:x+a},k=o.getLabel(),S=this.renderer||i.renderer,E=!!(null==(r=i.xAxis[0])?void 0:r.opposite),{left:$,top:T}=b.getChartPosition(),M=v||g,P=u+w,N=0,I=s-d,O=function(e,t,n,r,i=[0,0],a=!0){let l,s;if(n.isHeader)s=E?0:I,l=U(i[0]-e/2,C.left,C.right-e-(o.outside?$:0));else if(g&&n){let r=o.getFixedPosition(e,t,n);l=r.x,s=r.y-P}else s=i[1]-P,l=U(l=a?i[0]-e-f:i[0]+f,a?l:C.left,C.right);return{x:l,y:s}};ve(e)&&(e=[!1,e]);let A=e.slice(0,t.length+1).reduce(function(e,n,r){if(!1!==n&&""!==n){let i=t[r-1]||{isHeader:!0,plotX:t[0].plotX,plotY:s,series:{}},a=i.isHeader,l=a?o:i.series,d=l.tt=function(e,t,n){let r=e,{isHeader:i,series:a}=t,l=a.tooltipOptions||m;if(!r){let e={padding:l.padding,r:l.borderRadius};p||(e.fill=l.backgroundColor,e["stroke-width"]=l.borderWidth??(g&&!i?0:1)),r=S.label("",0,0,l[i?"headerShape":"shape"]||(g&&!i?"rect":"callout"),void 0,void 0,l.useHTML).addClass(o.getClassName(t,!0,i)).attr(e).add(k)}return r.isActive=!0,r.attr({text:n}),p||r.css(l.style).attr({stroke:l.borderColor||t.color||a.color||"#333333"}),r}(l.tt,i,n.toString()),h=d.getBBox(),y=h.width+d.strokeWidth();a&&(N=h.height,I+=N,E&&(P-=N));let{anchorX:b,anchorY:x}=function(e){let t,n,{isHeader:r,plotX:o=0,plotY:i=0,series:a}=e;if(r)t=Math.max(c+o,c),n=u+s/2;else{let{xAxis:e,yAxis:r}=a;t=e.pos+U(o,-f,e.len+f),a.shouldShowTooltip(0,r.pos-u+i,{ignoreX:!0})&&(n=r.pos+i)}return{anchorX:t=U(t,C.left-f,C.right+f),anchorY:n}}(i);if("number"==typeof x){let t=h.height+1,n=(v||O).call(o,y,t,i,o,[b,x]);e.push({align:M?0:void 0,anchorX:b,anchorY:x,boxWidth:y,point:i,rank:Te(n.rank,+!!a),size:t,target:n.y,tt:d,x:n.x})}else d.isActive=!1}return e},[]);!M&&A.some(e=>{let{outside:t}=o,n=(t?$:0)+e.anchorX;return n<C.left&&n+e.boxWidth<C.right||n<$-C.left+e.boxWidth&&C.right-n>n})&&(A=A.map(e=>{let{x:t,y:n}=O.call(this,e.boxWidth,e.size,e.point,void 0,[e.anchorX,e.anchorY],!1);return ie(e,{target:n,x:t})})),o.cleanSplit(),On(A,I);let R={left:$,right:$};A.forEach(function(e){let{x:t,boxWidth:n,isHeader:r}=e;!r&&(o.outside&&$+t<R.left&&(R.left=$+t),!r&&o.outside&&R.left+n>R.right&&(R.right=$+t))}),A.forEach(function(e){let{x:t,anchorX:n,anchorY:r,pos:i,point:{isHeader:a}}=e,l={visibility:void 0===i?"hidden":"inherit",x:t,y:(i||0)+P+(g&&y.y||0),anchorX:n,anchorY:r};if(o.outside&&t<n){let e=$-R.left;e>0&&(a||(l.x=t+e,l.anchorX=n+e),a&&(l.x=(R.right-R.left)/2,l.anchorX=n+e))}e.tt.attr(l)});let{container:L,outside:B,renderer:z}=o;if(B&&L&&z){let{width:e,height:t,x:n,y:r}=k.getBBox();z.setSize(e+n,t+r,!1),L.style.left=R.left+"px",L.style.top=T+"px"}In&&k.attr({opacity:1===k.opacity?.999:1})}drawTracker(){let e=this;if(!this.shouldStickOnContact())return void(e.tracker&&(e.tracker=e.tracker.destroy()));let t=e.chart,n=e.label,r=e.shared?t.hoverPoints:t.hoverPoint;if(!n||!r)return;let o={x:0,y:0,width:0,height:0},i=this.getAnchor(r),a=n.getBBox();i[0]+=t.plotLeft-(n.translateX||0),i[1]+=t.plotTop-(n.translateY||0),o.x=Math.min(0,i[0]),o.y=Math.min(0,i[1]),o.width=i[0]<0?Math.max(Math.abs(i[0]),a.width-i[0]):Math.max(Math.abs(i[0]),a.width),o.height=i[1]<0?Math.max(Math.abs(i[1]),a.height-Math.abs(i[1])):Math.max(Math.abs(i[1]),a.height),e.tracker?e.tracker.attr(o):(e.tracker=n.renderer.rect(o).addClass("highcharts-tracker").add(n),V(e.tracker.element,"mouseenter",()=>An(e)),t.styledMode||e.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(e){return e.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}headerFooterFormatter(e,t){let n=e.series,r=n.tooltipOptions,o=n.xAxis,i=null==o?void 0:o.dateTime,a={isFooter:t,point:e},l=r.xDateFormat||"",s=r[t?"footerFormat":"headerFormat"];return le(this,"headerFormatter",a,function(t){if(i&&!l&&ye(e.key)&&(l=i.getXDateFormat(e.key,r.dateTimeLabelFormats)),i&&l){if(we(l)){let e=l;Pn[0]=t=>n.chart.time.dateFormat(e,t),l="%0"}(e.tooltipDateKeys||["key"]).forEach(e=>{s=s.replace(RegExp("point\\."+e+"([ \\)}])"),`(point.${e}:${l})$1`)})}n.chart.styledMode&&(s=this.styledModeFormat(s)),t.text=Tn(s,e,this.chart)}),a.text||""}update(e){this.destroy(),this.init(this.chart,Ce(!0,this.options,e))}updatePosition(e){var t;let n,{chart:r,container:o,distance:i,options:a,pointer:l,renderer:s}=this,{height:c=0,width:u=0}=this.getLabel(),{fixed:d,positioner:h}=a,{left:p,top:f,scaleX:m,scaleY:g}=l.getChartPosition(),y=(h||d&&this.getFixedPosition||this.getPosition).call(this,u,c,e,this),v=_.doc,b=(e.plotX||0)+r.plotLeft,x=(e.plotY||0)+r.plotTop;if(s&&o){let{scrollLeft:e=0,scrollTop:l=0}=(null==(t=r.scrollablePlotArea)?void 0:t.scrollingContainer)||{};y.x+=e+p,y.y+=l+f,n=(a.borderWidth||0)+2*i+2,s.setSize(U(u+n,0,v.documentElement.clientWidth)-1,c+n,!1),(1!==m||1!==g)&&(J(o,{transform:`scale(${m}, ${g})`}),b*=m,x*=g),b+=p-y.x,x+=f-y.y}this.move(Math.round(y.x),Math.round(y.y||0),b,x)}}(y=Rn||(Rn={})).compose=function(e){Pe(Mn,"Core.Tooltip")&&V(e,"afterInit",function(){let e=this.chart;e.options.tooltip&&(e.tooltip=new y(e,e.options.tooltip,this))})};let Ln=Rn,{animObject:Bn}=lt,{defaultOptions:zn}=Ze,{format:Dn}=wt;class jn{constructor(e,t,n){var r,o;this.formatPrefix="point",this.visible=!0,this.point=this,this.series=e,this.applyOptions(t,n),this.id??(this.id=_e()),this.resolveColor(),this.dataLabelOnNull??(this.dataLabelOnNull=e.options.nullInteraction),e.chart.pointCount++,this.category=(null==(o=null==(r=e.xAxis)?void 0:r.categories)?void 0:o[this.x])??this.x,this.key=this.name??this.category,le(this,"afterInit")}animateBeforeDestroy(){let e=this,t={x:e.startXPos,opacity:0},n=e.getGraphicalProps();n.singular.forEach(function(n){e[n]=e[n].animate("dataLabel"===n?{x:e[n].startXPos,y:e[n].startYPos,opacity:0}:t)}),n.plural.forEach(function(t){e[t].forEach(function(t){t.element&&t.animate(ie({x:e.startXPos},t.startYPos?{x:t.startXPos,y:t.startYPos}:{}))})})}applyOptions(e,t){let n=this.series,r=n.options.pointValKey||n.pointValKey;return ie(this,e=jn.prototype.optionsToObject.call(this,e)),this.options?this.options=n.chart.options.chart.allowMutatingData?ie(this.options,e):Ce(this.options,e):this.options=e,e.group&&delete this.group,e.dataLabels&&delete this.dataLabels,r&&(this.y=jn.prototype.getNestedProperty.call(this,r)),this.selected&&(this.state="select"),"name"in this&&void 0===t&&n.xAxis&&n.xAxis.hasNames&&(this.x=n.xAxis.nameToX(this)),void 0===this.x&&n?this.x=t??n.autoIncrement():ye(e.x)&&n.options.relativeXValue?this.x=n.autoIncrement(e.x):"string"==typeof this.x&&(t??(t=n.chart.time.parse(this.x)),ye(t)&&(this.x=t)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}destroy(){if(!this.destroyed){let e=this,t=e.series,n=t.chart,r=t.options.dataSorting,o=n.hoverPoints,i=Bn(e.series.chart.renderer.globalAnimation),a=()=>{for(let t in(e.graphic||e.graphics||e.dataLabel||e.dataLabels)&&(Oe(e),e.destroyElements()),e)delete e[t]};e.legendItem&&n.legend.destroyItem(e),o&&(e.setState(),oe(o,e),o.length||(n.hoverPoints=null)),e===n.hoverPoint&&e.onMouseOut(),(null==r?void 0:r.enabled)?(this.animateBeforeDestroy(),Le(a,i.duration)):a(),n.pointCount--}this.destroyed=!0}destroyElements(e){let t=this,n=t.getGraphicalProps(e);n.singular.forEach(function(e){t[e]=t[e].destroy()}),n.plural.forEach(function(e){t[e].forEach(function(e){(null==e?void 0:e.element)&&e.destroy()}),delete t[e]})}firePointEvent(e,t,n){let r=this,o=this.series.options;r.manageEvent(e),"click"===e&&o.allowPointSelect&&(n=function(e){!r.destroyed&&r.select&&r.select(null,e.ctrlKey||e.metaKey||e.shiftKey)}),le(r,e,t,n)}getClassName(){var e;return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative&&!1!==this.series.options.negativeColor?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+((null==(e=this.zone)?void 0:e.className)?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(e){let t,n,r=this,o=[],i={singular:[],plural:[]};for((e=e||{graphic:1,dataLabel:1}).graphic&&o.push("graphic","connector"),e.dataLabel&&o.push("dataLabel","dataLabelPath","dataLabelUpper"),n=o.length;n--;)r[t=o[n]]&&i.singular.push(t);return["graphic","dataLabel"].forEach(function(t){let n=t+"s";e[t]&&r[n]&&i.plural.push(n)}),i}getNestedProperty(e){if(e)return 0===e.indexOf("custom.")?de(e,this.options):this[e]}getZone(){let e,t=this.series,n=t.zones,r=t.zoneAxis||"y",o=0;for(e=n[0];this[r]>=e.value;)e=n[++o];return this.nonZonedColor||(this.nonZonedColor=this.color),(null==e?void 0:e.color)&&!this.options.color?this.color=e.color:this.color=this.nonZonedColor,e}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}isValid(){return(ye(this.x)||this.x instanceof Date)&&ye(this.y)}optionsToObject(e){var t;let n,r=this.series,o=r.options.keys,i=o||r.pointArrayMap||["y"],a=i.length,l={},s=0,c=0;if(ye(e)||null===e)l[i[0]]=e;else if(be(e))for(!o&&e.length>a&&("string"==(n=typeof e[0])?(null==(t=r.xAxis)?void 0:t.dateTime)?l.x=r.chart.time.parse(e[0]):l.name=e[0]:"number"===n&&(l.x=e[0]),s++);c<a;)o&&void 0===e[s]||(i[c].indexOf(".")>0?jn.prototype.setNestedProperty(l,e[s],i[c]):l[i[c]]=e[s]),s++,c++;else"object"==typeof e&&(l=e,e.dataLabels&&(r.hasDataLabels=()=>!0),e.marker&&(r._hasPointMarkers=!0));return l}pos(e,t=this.plotY){if(!this.destroyed){let{plotX:n,series:r}=this,{chart:o,xAxis:i,yAxis:a}=r,l=0,s=0;if(ye(n)&&ye(t))return e&&(l=i?i.pos:o.plotLeft,s=a?a.pos:o.plotTop),o.inverted&&i&&a?[a.len-t+s,i.len-n+l]:[n+l,t+s]}}resolveColor(){let e,t,n,r=this.series,o=r.chart.options.chart,i=r.chart.styledMode,a=o.colorCount;delete this.nonZonedColor,r.options.colorByPoint?(i||(e=(t=r.options.colors||r.chart.options.colors)[r.colorCounter],a=t.length),n=r.colorCounter,r.colorCounter++,r.colorCounter===a&&(r.colorCounter=0)):(i||(e=r.color),n=r.colorIndex),this.colorIndex=Te(this.options.colorIndex,n),this.color=Te(this.options.color,e)}setNestedProperty(e,t,n){return n.split(".").reduce(function(e,n,r,o){let i=o.length-1===r;return e[n]=i?t:we(e[n],!0)?e[n]:{},e[n]},e),e}shouldDraw(){return!this.isNull}tooltipFormatter(e){var t;let{chart:n,pointArrayMap:r=["y"],tooltipOptions:o}=this.series,{valueDecimals:i="",valuePrefix:a="",valueSuffix:l=""}=o;return n.styledMode&&(e=(null==(t=n.tooltip)?void 0:t.styledModeFormat(e))||e),r.forEach(t=>{t="{point."+t,(a||l)&&(e=e.replace(RegExp(t+"}","g"),a+t+"}"+l)),e=e.replace(RegExp(t+"}","g"),t+":,."+i+"f}")}),Dn(e,this,n)}update(e,t,n,r){let o,i=this,a=i.series,l=i.graphic,s=a.chart,c=a.options,u=c.data;function d(){i.applyOptions(e);let r=l&&i.hasMockGraphic,d=null===i.y?!r:r;l&&d&&(i.graphic=l.destroy(),delete i.hasMockGraphic),we(e,!0)&&((null==l?void 0:l.element)&&e&&e.marker&&void 0!==e.marker.symbol&&(i.graphic=l.destroy()),(null==e?void 0:e.dataLabels)&&i.dataLabel&&(i.dataLabel=i.dataLabel.destroy())),o=i.index;let h={};for(let e of a.dataColumnKeys())h[e]=i[e];a.dataTable.setRow(h,o),u&&!a.processedData&&(u[o]=we(u[o],!0)||we(e,!0)?i.options:e??u[o]),a.isDirty=a.isDirtyData=!0,!a.fixedBox&&a.hasCartesianSeries&&(s.isDirtyBox=!0),"point"===c.legendType&&(s.isDirtyLegend=!0),t&&s.redraw(n)}t=Te(t,!0),!1===r?d():i.firePointEvent("update",{options:e},d)}remove(e,t){this.series.removePoint(this.series.data.indexOf(this),e,t)}select(e,t){let n=this,r=n.series,o=r.chart;e=Te(e,!n.selected),this.selectedStaging=e,n.firePointEvent(e?"select":"unselect",{accumulate:t},function(){n.selected=n.options.selected=e,r.options.data[r.data.indexOf(n)]=n.options,n.setState(e&&"select"),t||o.getSelectedPoints().forEach(function(e){let t=e.series;e.selected&&e!==n&&(e.selected=e.options.selected=!1,t.options.data[t.data.indexOf(e)]=e.options,e.setState(o.hoverPoints&&t.options.inactiveOtherPoints?"inactive":""),e.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(e){let{inverted:t,pointer:n}=this.series.chart;n&&(e=e?n.normalize(e):n.getChartCoordinatesFromPoint(this,t),n.runPointActions(e,this))}onMouseOut(){let e=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(e.hoverPoints||[]).forEach(function(e){e.setState()}),e.hoverPoints=e.hoverPoint=null}manageEvent(e){var t,n,r,o,i,a,l;let s=null==(t=Ce(this.series.options.point,this.options).events)?void 0:t[e];!xe(s)||(null==(n=this.hcEvents)?void 0:n[e])&&-1!==(null==(o=null==(r=this.hcEvents)?void 0:r[e])?void 0:o.map(e=>e.fn).indexOf(s))?this.importedUserEvent&&!s&&(null==(a=this.hcEvents)?void 0:a[e])&&(null==(l=this.hcEvents)?void 0:l[e].userEvent)&&(Oe(this,e),delete this.hcEvents[e],Object.keys(this.hcEvents)||delete this.importedUserEvent):(null==(i=this.importedUserEvent)||i.call(this),this.importedUserEvent=V(this,e,s),this.hcEvents&&(this.hcEvents[e].userEvent=!0))}setState(e,t){var n,r;let o,i,a,l,s=this.series,c=this.state,u=s.options.states[e||"normal"]||{},d=zn.plotOptions[s.type].marker&&s.options.marker,h=d&&!1===d.enabled,p=(null==(n=null==d?void 0:d.states)?void 0:n[e||"normal"])||{},f=!1===p.enabled,m=this.marker||{},g=s.chart,y=d&&s.markerAttribs,v=s.halo,b=s.stateMarkerGraphic;if((e=e||"")===this.state&&!t||this.selected&&"select"!==e||!1===u.enabled||e&&(f||h&&!1===p.enabled)||e&&m.states&&m.states[e]&&!1===m.states[e].enabled)return;if(this.state=e,y&&(o=s.markerAttribs(this,e)),this.graphic&&!this.hasMockGraphic){if(c&&this.graphic.removeClass("highcharts-point-"+c),e&&this.graphic.addClass("highcharts-point-"+e),!g.styledMode){i=s.pointAttribs(this,e),a=Te(g.options.chart.animation,u.animation);let t=i.opacity;s.options.inactiveOtherPoints&&ye(t)&&(this.dataLabels||[]).forEach(function(e){e&&!e.hasClass("highcharts-data-label-hidden")&&(e.animate({opacity:t},a),e.connector&&e.connector.animate({opacity:t},a))}),this.graphic.animate(i,a)}o&&this.graphic.animate(o,Te(g.options.chart.animation,p.animation,d.animation)),b&&b.hide()}else e&&p&&(l=m.symbol||s.symbol,b&&b.currentSymbol!==l&&(b=b.destroy()),o&&(b?b[t?"animate":"attr"]({x:o.x,y:o.y}):l&&(s.stateMarkerGraphic=b=g.renderer.symbol(l,o.x,o.y,o.width,o.height,Ce(d,p)).add(s.markerGroup),b.currentSymbol=l)),!g.styledMode&&b&&"inactive"!==this.state&&b.attr(s.pointAttribs(this,e))),b&&(b[e&&this.isInside?"show":"hide"](),b.element.point=this,b.addClass(this.getClassName(),!0));let x=u.halo,w=this.graphic||b,C=(null==w?void 0:w.visibility)||"inherit";(null==x?void 0:x.size)&&w&&"hidden"!==C&&!this.isCluster?(v||(s.halo=v=g.renderer.path().add(w.parentGroup)),v.show()[t?"animate":"attr"]({d:this.haloPath(x.size)}),v.attr({class:"highcharts-halo highcharts-color-"+Te(this.colorIndex,s.colorIndex)+(this.className?" "+this.className:""),visibility:C,zIndex:-1}),v.point=this,g.styledMode||v.attr(ie({fill:this.color||s.color,"fill-opacity":x.opacity},pt.filterUserAttributes(x.attributes||{})))):(null==(r=null==v?void 0:v.point)?void 0:r.haloPath)&&!v.point.destroyed&&v.animate({d:v.point.haloPath(0)},null,v.hide),le(this,"afterSetState",{state:e})}haloPath(e){let t=this.pos();return t?this.series.chart.renderer.symbols.circle(Q(t[0],1)-e,t[1]-e,2*e,2*e):[]}}let Fn=jn,{parse:Hn}=tt,{charts:_n,composed:Wn,isTouchDevice:Kn}=_,Vn=(e,t)=>!ee(t)||e[`${t}Key`];class Gn{applyInactiveState(e=[]){var t,n;let r=[];for(let o of(e.forEach(e=>{let t=e.series;r.push(t),t.linkedParent&&r.push(t.linkedParent),t.linkedSeries&&r.push.apply(r,t.linkedSeries),t.navigatorSeries&&r.push(t.navigatorSeries),t.boosted&&t.markerGroup&&r.push.apply(r,this.chart.series.filter(e=>e.markerGroup===t.markerGroup))}),this.chart.series)){let e=o.options;!1!==(null==(n=null==(t=e.states)?void 0:t.inactive)?void 0:n.enabled)&&(-1===r.indexOf(o)?o.setState("inactive",!0):e.inactiveOtherPoints&&o.setAllPointsToState("inactive"))}}destroy(){let e=this;this.eventsToUnbind.forEach(e=>e()),this.eventsToUnbind=[],!_.chartCount&&(Gn.unbindDocumentMouseUp.forEach(e=>e.unbind()),Gn.unbindDocumentMouseUp.length=0,Gn.unbindDocumentTouchEnd&&(Gn.unbindDocumentTouchEnd=Gn.unbindDocumentTouchEnd())),Se(e,function(t,n){e[n]=void 0})}getSelectionMarkerAttrs(e,t){let n={args:{chartX:e,chartY:t},attrs:{},shapeType:"rect"};return le(this,"getSelectionMarkerAttrs",n,n=>{let r,{chart:o,zoomHor:i,zoomVert:a}=this,{mouseDownX:l=0,mouseDownY:s=0}=o,c=n.attrs;c.x=o.plotLeft,c.y=o.plotTop,c.width=i?1:o.plotWidth,c.height=a?1:o.plotHeight,i&&(c.width=Math.max(1,Math.abs(r=e-l)),c.x=(r>0?0:r)+l),a&&(c.height=Math.max(1,Math.abs(r=t-s)),c.y=(r>0?0:r)+s)}),n}drag(e){let t,{chart:n}=this,{mouseDownX:r=0,mouseDownY:o=0}=n,{panning:i,panKey:a,selectionMarkerFill:l}=n.options.chart,s=n.plotLeft,c=n.plotTop,u=n.plotWidth,d=n.plotHeight,h=we(i)?i.enabled:i,p=a&&e[`${a}Key`],f=e.chartX,m=e.chartY,g=this.selectionMarker;if((!g||!g.touch)&&(f<s?f=s:f>s+u&&(f=s+u),m<c?m=c:m>c+d&&(m=c+d),this.hasDragged=Math.sqrt(Math.pow(r-f,2)+Math.pow(o-m,2)),this.hasDragged>10)){t=n.isInsidePlot(r-s,o-c,{visiblePlotOnly:!0});let{shapeType:u,attrs:d}=this.getSelectionMarkerAttrs(f,m);this.hasZoom&&t&&!p&&!g&&(this.selectionMarker=g=n.renderer[u](),g.attr({class:"highcharts-selection-marker",zIndex:7}).add(),n.styledMode||g.attr({fill:l||Hn("#334eff").setOpacity(.25).get()})),g&&g.attr(d),t&&!g&&h&&Vn(e,a)&&n.pan(e,i)}}dragStart(e){let t=this.chart;t.mouseIsDown=e.type,t.cancelClick=!1,t.mouseDownX=e.chartX,t.mouseDownY=e.chartY}getSelectionBox(e){let t={args:{marker:e},result:e.getBBox()};return le(this,"getSelectionBox",t),t.result}drop(e){let t,{chart:n,selectionMarker:r}=this;for(let e of n.axes)e.isPanning&&(e.isPanning=!1,(e.options.startOnTick||e.options.endOnTick||e.series.some(e=>e.boosted))&&(e.forceRedraw=!0,e.setExtremes(e.userMin,e.userMax,!1),t=!0));if(t&&n.redraw(),r&&e){if(this.hasDragged){let t=this.getSelectionBox(r);n.transform({axes:n.axes.filter(e=>e.zoomEnabled&&("xAxis"===e.coll&&this.zoomX||"yAxis"===e.coll&&this.zoomY)),selection:{originalEvent:e,xAxis:[],yAxis:[],...t},from:t})}ye(n.index)&&(this.selectionMarker=r.destroy())}n&&ye(n.index)&&(J(n.container,{cursor:n._cursor}),n.cancelClick=this.hasDragged>10,n.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[],this.hasPinchMoved=!1)}findNearestKDPoint(e,t,n){let r;return e.forEach(function(e){var o,i,a;let l,s,c,u=!(e.noSharedTooltip&&t)&&0>e.options.findNearestPointBy.indexOf("y"),d=e.searchPoint(n,u);we(d,!0)&&d.series&&(!we(r,!0)||(l=(a=r).distX-d.distX,s=a.dist-d.dist,c=(null==(o=d.series.group)?void 0:o.zIndex)-(null==(i=a.series.group)?void 0:i.zIndex),(0!==l&&t?l:0!==s?s:0!==c?c:a.series.index>d.series.index?-1:1)>0))&&(r=d)}),r}getChartCoordinatesFromPoint(e,t){let{xAxis:n,yAxis:r}=e.series,o=e.shapeArgs;if(n&&r){let i=e.clientX??e.plotX??0,a=e.plotY||0;return e.isNode&&o&&ye(o.x)&&ye(o.y)&&(i=o.x,a=o.y),t?{chartX:r.len+r.pos-a,chartY:n.len+n.pos-i}:{chartX:i+n.pos,chartY:a+r.pos}}if((null==o?void 0:o.x)&&o.y)return{chartX:o.x,chartY:o.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:e}=this.chart,t=Ee(e);this.chartPosition={left:t.left,top:t.top,scaleX:1,scaleY:1};let{offsetHeight:n,offsetWidth:r}=e;return r>2&&n>2&&(this.chartPosition.scaleX=t.width/r,this.chartPosition.scaleY=t.height/n),this.chartPosition}getCoordinates(e){let t={xAxis:[],yAxis:[]};for(let n of this.chart.axes)t[n.isXAxis?"xAxis":"yAxis"].push({axis:n,value:n.toValue(e[n.horiz?"chartX":"chartY"])});return t}getHoverData(e,t,n,r,o,i){let a,l=[],s=function(e){return e.visible&&!(!o&&e.directTouch)&&Te(e.options.enableMouseTracking,!0)},c=t,u={chartX:i?i.chartX:void 0,chartY:i?i.chartY:void 0,shared:o};le(this,"beforeGetHoverData",u),a=c&&!c.stickyTracking?[c]:n.filter(e=>e.stickyTracking&&(u.filter||s)(e));let d=r&&e||!i?e:this.findNearestKDPoint(a,o,i);return c=null==d?void 0:d.series,d&&(o&&!c.noSharedTooltip?(a=n.filter(function(e){return u.filter?u.filter(e):s(e)&&!e.noSharedTooltip})).forEach(function(e){var t;let n=null==(t=e.options)?void 0:t.nullInteraction,r=pe(e.points,function(e){return!(e.x!==d.x||e.isNull&&!n)});we(r)&&(e.boosted&&e.boost&&(r=e.boost.getPoint(r)),l.push(r))}):l.push(d)),le(this,"afterGetHoverData",u={hoverPoint:d}),{hoverPoint:u.hoverPoint,hoverSeries:c,hoverPoints:l}}getPointFromEvent(e){let t,n=e.target;for(;n&&!t;)t=n.point,n=n.parentNode;return t}onTrackerMouseOut(e){let t=this.chart,n=e.relatedTarget,r=t.hoverSeries;this.isDirectTouch=!1,!r||!n||r.stickyTracking||this.inClass(n,"highcharts-tooltip")||this.inClass(n,"highcharts-series-"+r.index)&&this.inClass(n,"highcharts-tracker")||r.onMouseOut()}inClass(e,t){let n,r=e;for(;r;){if(n=X(r,"class")){if(-1!==n.indexOf(t))return!0;if(-1!==n.indexOf("highcharts-container"))return!1}r=r.parentElement}}constructor(e,t){var n;this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=t,this.chart=e,this.runChartClick=!!(null==(n=t.chart.events)?void 0:n.click),this.pinchDown=[],this.setDOMEvents(),le(this,"afterInit")}normalize(e,t){let n=e.touches,r=n?n.length?n.item(0):Te(n.changedTouches,e.changedTouches)[0]:e;t||(t=this.getChartPosition());let o=r.pageX-t.left,i=r.pageY-t.top;return ie(e,{chartX:Math.round(o/=t.scaleX),chartY:Math.round(i/=t.scaleY)})}onContainerClick(e){let t=this.chart,n=t.hoverPoint,r=this.normalize(e),o=t.plotLeft,i=t.plotTop;!t.cancelClick&&(n&&this.inClass(r.target,"highcharts-tracker")?(le(n.series,"click",ie(r,{point:n})),t.hoverPoint&&n.firePointEvent("click",r)):(ie(r,this.getCoordinates(r)),t.isInsidePlot(r.chartX-o,r.chartY-i,{visiblePlotOnly:!0})&&le(t,"click",r)))}onContainerMouseDown(e){var t;let n=!(1&~(e.buttons||e.button));e=this.normalize(e),_.isFirefox&&0!==e.button&&this.onContainerMouseMove(e),(void 0===e.button||n)&&(this.zoomOption(e),n&&(null==(t=e.preventDefault)||t.call(e)),this.dragStart(e))}onContainerMouseLeave(e){let{pointer:t}=_n[Te(Gn.hoverChartIndex,-1)]||{};e=this.normalize(e),this.onContainerMouseMove(e),t&&!this.inClass(e.relatedTarget,"highcharts-tooltip")&&(t.reset(),t.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(e){var t;let n=this.chart,r=n.tooltip,o=this.normalize(e);this.setHoverChartIndex(e),("mousedown"===n.mouseIsDown||this.touchSelect(o))&&this.drag(o),!(null==(t=n.exporting)?void 0:t.openMenu)&&(this.inClass(o.target,"highcharts-tracker")||n.isInsidePlot(o.chartX-n.plotLeft,o.chartY-n.plotTop,{visiblePlotOnly:!0}))&&!(null==r?void 0:r.shouldStickOnContact(o))&&(this.inClass(o.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(o))}onDocumentTouchEnd(e){this.onDocumentMouseUp(e)}onContainerTouchMove(e){this.touchSelect(e)?this.onContainerMouseMove(e):this.touch(e)}onContainerTouchStart(e){this.touchSelect(e)?this.onContainerMouseDown(e):(this.zoomOption(e),this.touch(e,!0))}onDocumentMouseMove(e){let t=this.chart,n=t.tooltip,r=this.chartPosition,o=this.normalize(e,r);!r||t.isInsidePlot(o.chartX-t.plotLeft,o.chartY-t.plotTop,{visiblePlotOnly:!0})||(null==n?void 0:n.shouldStickOnContact(o))||o.target!==t.container.ownerDocument&&this.inClass(o.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(e){var t,n,r;(null==e?void 0:e.touches)&&this.hasPinchMoved&&(null==(t=null==e?void 0:e.preventDefault)||t.call(e)),null==(r=null==(n=_n[Te(Gn.hoverChartIndex,-1)])?void 0:n.pointer)||r.drop(e)}pinch(e){let t=this,{chart:n,hasZoom:r,lastTouches:o}=t,i=[].map.call(e.touches||[],e=>t.normalize(e)),a=i.length,l=1===a&&(t.inClass(e.target,"highcharts-tracker")&&n.runTrackerClick||t.runChartClick),s=n.tooltip,c=1===a&&Te(null==s?void 0:s.options.followTouchMove,!0);a>1?t.initiated=!0:c&&(t.initiated=!1),r&&t.initiated&&!l&&!1!==e.cancelable&&e.preventDefault(),"touchstart"===e.type?(t.pinchDown=i,t.res=!0,n.mouseDownX=e.chartX):c?this.runPointActions(t.normalize(e)):o&&(le(n,"touchpan",{originalEvent:e,touches:i},()=>{let t=e=>{let t=e[0],n=e[1]||t;return{x:t.chartX,y:t.chartY,width:n.chartX-t.chartX,height:n.chartY-t.chartY}};n.transform({axes:n.axes.filter(e=>e.zoomEnabled&&(this.zoomHor&&e.horiz||this.zoomVert&&!e.horiz)),to:t(i),from:t(o),trigger:e.type})}),t.res&&(t.res=!1,this.reset(!1,0))),t.lastTouches=i}reset(e,t){let n=this.chart,r=n.hoverSeries,o=n.hoverPoint,i=n.hoverPoints,a=n.tooltip,l=(null==a?void 0:a.shared)?i:o;e&&l&&Ae(l).forEach(function(t){t.series.isCartesian&&void 0===t.plotX&&(e=!1)}),e?a&&l&&Ae(l).length&&(a.refresh(l),a.shared&&i?i.forEach(function(e){e.setState(e.state,!0),e.series.isCartesian&&(e.series.xAxis.crosshair&&e.series.xAxis.drawCrosshair(null,e),e.series.yAxis.crosshair&&e.series.yAxis.drawCrosshair(null,e))}):o&&(o.setState(o.state,!0),n.axes.forEach(function(e){e.crosshair&&o.series[e.coll]===e&&e.drawCrosshair(null,o)}))):(o&&o.onMouseOut(),i&&i.forEach(function(e){e.setState()}),r&&r.onMouseOut(),a&&a.hide(t),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),n.axes.forEach(function(e){e.hideCrosshair()}),n.hoverPoints=n.hoverPoint=void 0)}runPointActions(e,t,n){var r;let o=this.chart,i=o.series,a=(null==(r=o.tooltip)?void 0:r.options.enabled)?o.tooltip:void 0,l=!!a&&a.shared,s=t||o.hoverPoint,c=(null==s?void 0:s.series)||o.hoverSeries,u=(!e||"touchmove"!==e.type)&&(!!t||(null==c?void 0:c.directTouch)&&this.isDirectTouch),d=this.getHoverData(s,c,i,u,l,e);s=d.hoverPoint,c=d.hoverSeries;let h=d.hoverPoints,p=(null==c?void 0:c.tooltipOptions.followPointer)&&!c.tooltipOptions.split,f=l&&c&&!c.noSharedTooltip;if(s&&(n||s!==o.hoverPoint||(null==a?void 0:a.isHidden))){if((o.hoverPoints||[]).forEach(function(e){-1===h.indexOf(e)&&e.setState()}),o.hoverSeries!==c&&c.onMouseOver(),this.applyInactiveState(h),(h||[]).forEach(function(e){e.setState("hover")}),o.hoverPoint&&o.hoverPoint.firePointEvent("mouseOut"),!s.series)return;o.hoverPoints=h,o.hoverPoint=s,s.firePointEvent("mouseOver",void 0,()=>{a&&s&&a.refresh(f?h:s,e)})}else if(p&&a&&!a.isHidden){let t=a.getAnchor([{}],e);o.isInsidePlot(t[0],t[1],{visiblePlotOnly:!0})&&a.updatePosition({plotX:t[0],plotY:t[1]})}this.unDocMouseMove||(this.unDocMouseMove=V(o.container.ownerDocument,"mousemove",e=>{var t,n;return null==(n=null==(t=_n[Gn.hoverChartIndex??-1])?void 0:t.pointer)?void 0:n.onDocumentMouseMove(e)}),this.eventsToUnbind.push(this.unDocMouseMove)),o.axes.forEach(function(t){var n;let r,i=(null==(n=t.crosshair)?void 0:n.snap)??!0;i&&((r=o.hoverPoint)&&r.series[t.coll]===t||(r=pe(h,e=>{var n;return(null==(n=e.series)?void 0:n[t.coll])===t}))),r||!i?t.drawCrosshair(e,r):t.hideCrosshair()})}setDOMEvents(){let e=this.chart.container,t=e.ownerDocument,n=e=>{var t,n;return e.parentElement||(null==(n=null==(t=e.getRootNode())?void 0:t.host)?void 0:n.parentElement)};e.onmousedown=this.onContainerMouseDown.bind(this),e.onmousemove=this.onContainerMouseMove.bind(this),e.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(V(e,"mouseenter",this.onContainerMouseEnter.bind(this)),V(e,"mouseleave",this.onContainerMouseLeave.bind(this))),Gn.unbindDocumentMouseUp.some(e=>e.doc===t)||Gn.unbindDocumentMouseUp.push({doc:t,unbind:V(t,"mouseup",this.onDocumentMouseUp.bind(this))});let r=n(this.chart.renderTo);for(;r&&"BODY"!==r.tagName;)this.eventsToUnbind.push(V(r,"scroll",()=>{delete this.chartPosition})),r=n(r);this.eventsToUnbind.push(V(e,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),V(e,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),Gn.unbindDocumentTouchEnd||(Gn.unbindDocumentTouchEnd=V(t,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),V(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){var e,t;if(!Kn)return;let n=this.pointerCaptureEventsToUnbind,r=this.chart,o=r.container,i=Te(null==(e=r.options.tooltip)?void 0:e.followTouchMove,!0)&&r.series.some(e=>e.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&i?(n.push(V(o,"pointerdown",e=>{var t,n;(null==(t=e.target)?void 0:t.hasPointerCapture(e.pointerId))&&(null==(n=e.target)||n.releasePointerCapture(e.pointerId))}),V(o,"pointermove",e=>{var t,n;null==(n=null==(t=r.pointer)?void 0:t.getPointFromEvent(e))||n.onMouseOver(e)})),r.styledMode||J(o,{"touch-action":"none"}),o.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!i&&(n.forEach(e=>e()),n.length=0,r.styledMode||J(o,{"touch-action":Te(null==(t=r.options.chart.style)?void 0:t["touch-action"],"manipulation")}),o.className=o.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}setHoverChartIndex(e){var t;let n=this.chart,r=_.charts[Te(Gn.hoverChartIndex,-1)];if(r&&r!==n){let o={relatedTarget:n.container};e&&!(null==e?void 0:e.relatedTarget)&&Object.assign({},e,o),null==(t=r.pointer)||t.onContainerMouseLeave(e||o)}(null==r?void 0:r.mouseIsDown)||(Gn.hoverChartIndex=n.index)}touch(e,t){var n;let r,{chart:o,pinchDown:i=[]}=this;this.setHoverChartIndex(),1===(e=this.normalize(e)).touches.length?o.isInsidePlot(e.chartX-o.plotLeft,e.chartY-o.plotTop,{visiblePlotOnly:!0})&&!(null==(n=o.exporting)?void 0:n.openMenu)?(t&&this.runPointActions(e),"touchmove"===e.type&&(this.hasPinchMoved=r=!!i[0]&&Math.pow(i[0].chartX-e.chartX,2)+Math.pow(i[0].chartY-e.chartY,2)>=16),Te(r,!0)&&this.pinch(e)):t&&this.reset():2===e.touches.length&&this.pinch(e)}touchSelect(e){return!(!this.chart.zooming.singleTouch||!e.touches||1!==e.touches.length)}zoomOption(e){let t,n,r=this.chart,o=r.inverted,i=r.zooming.type||"";/touch/.test(e.type)&&(i=Te(r.zooming.pinchType,i)),this.zoomX=t=/x/.test(i),this.zoomY=n=/y/.test(i),this.zoomHor=t&&!o||n&&o,this.zoomVert=n&&!o||t&&o,this.hasZoom=(t||n)&&Vn(e,r.zooming.key)}}Gn.unbindDocumentMouseUp=[],(v=Gn||(Gn={})).compose=function(e){Pe(Wn,"Core.Pointer")&&V(e,"beforeRender",function(){this.pointer=new v(this,this.options)})};let qn=Gn,{setLength:Xn,splice:Un}={setLength:function(e,t,n){return Array.isArray(e)?(e.length=t,e):e[n?"subarray":"slice"](0,t)},splice:function(e,t,n,r,o=[]){if(Array.isArray(e))return Array.isArray(o)||(o=Array.from(o)),{removed:e.splice(t,n,...o),array:e};let i=Object.getPrototypeOf(e).constructor,a=e[r?"subarray":"slice"](t,t+n),l=new i(e.length-n+o.length);return l.set(e.subarray(0,t),0),l.set(o,t),l.set(e.subarray(t+n),t+o.length),{removed:a,array:l}}},Yn=class{constructor(e={}){this.autoId=!e.id,this.columns={},this.id=e.id||_e(),this.rowCount=0,this.versionTag=_e();let t=0;Se(e.columns||{},(e,n)=>{this.columns[n]=e.slice(),t=Math.max(t,e.length)}),this.applyRowCount(t)}applyRowCount(e){this.rowCount=e,Se(this.columns,(t,n)=>{t.length!==e&&(this.columns[n]=Xn(t,e))})}deleteRows(e,t=1){if(t>0&&e<this.rowCount){let n=0;Se(this.columns,(r,o)=>{this.columns[o]=Un(r,e,t).array,n=r.length}),this.rowCount=n}le(this,"afterDeleteRows",{rowIndex:e,rowCount:t}),this.versionTag=_e()}getColumn(e,t){return this.columns[e]}getColumns(e,t){return(e||Object.keys(this.columns)).reduce((e,t)=>(e[t]=this.columns[t],e),{})}getRow(e,t){return(t||Object.keys(this.columns)).map(t=>{var n;return null==(n=this.columns[t])?void 0:n[e]})}setColumn(e,t=[],n=0,r){this.setColumns({[e]:t},n,r)}setColumns(e,t,n){let r=this.rowCount;Se(e,(e,t)=>{this.columns[t]=e.slice(),r=e.length}),this.applyRowCount(r),(null==n?void 0:n.silent)||(le(this,"afterSetColumns"),this.versionTag=_e())}setRow(e,t=this.rowCount,n,r){let{columns:o}=this,i=n?this.rowCount+1:t+1,a=Object.keys(e);if(!1!==(null==r?void 0:r.addColumns))for(let e=0,t=a.length;e<t;e++){let t=a[e];o[t]||(o[t]=[])}Se(o,(a,l)=>{a||!1===(null==r?void 0:r.addColumns)||(a=Array(i)),a&&(n?a=Un(a,t,0,!0,[e[l]??null]).array:a[t]=e[l]??null,o[l]=a)}),i>this.rowCount&&this.applyRowCount(i),(null==r?void 0:r.silent)||(le(this,"afterSetRows"),this.versionTag=_e())}getModified(){return this.modified||this}};var Zn=I||(I={});function Qn(e,t,n){var r,o;let i,a=this.legendItem=this.legendItem||{},{chart:l,options:s}=this,{baseline:c=0,symbolWidth:u,symbolHeight:d}=e,h=this.symbol||"circle",p=d/2,f=l.renderer,m=a.group,g=c-Math.round(((null==(r=e.fontMetrics)?void 0:r.b)||d)*(n?.4:.3)),y={},v=s.marker,b=0;if(l.styledMode||(y["stroke-width"]=Math.min(s.lineWidth||0,24),s.dashStyle?y.dashstyle=s.dashStyle:"square"!==s.linecap&&(y["stroke-linecap"]="round")),a.line=f.path().addClass("highcharts-graph").attr(y).add(m),n&&(a.area=f.path().addClass("highcharts-area").add(m)),y["stroke-linecap"]&&(b=Math.min(a.line.strokeWidth(),u)/2),u){let e=[["M",b,g],["L",u-b,g]];a.line.attr({d:e}),null==(o=a.area)||o.attr({d:[...e,["L",u-b,c],["L",b,c]]})}if(v&&!1!==v.enabled&&u){let e=Math.min(Te(v.radius,p),p);0===h.indexOf("url")&&(v=Ce(v,{width:d,height:d}),e=0),a.symbol=i=f.symbol(h,u/2-e,g-e,2*e,2*e,ie({context:"legend"},v)).addClass("highcharts-point").add(m),i.isMarker=!0}}Zn.areaMarker=function(e,t){Qn.call(this,e,t,!0)},Zn.lineMarker=Qn;let Jn=I,{defaultOptions:er}=Ze;var tr=O||(O={});function nr(e,t){let n=er.plotOptions||{},r=t.defaultOptions,o=t.prototype;return o.type=e,o.pointClass||(o.pointClass=Fn),!tr.seriesTypes[e]&&(r&&(n[e]=r),tr.seriesTypes[e]=t,!0)}tr.seriesTypes=_.seriesTypes,tr.registerSeriesType=nr,tr.seriesType=function(e,t,n,r,o){let i=er.plotOptions||{};if(t=t||"",i[e]=Ce(i[t],n),delete tr.seriesTypes[e],nr(e,ae(tr.seriesTypes[t]||_.Series,r)),tr.seriesTypes[e].prototype.type=e,o){class t extends Fn{}ie(t.prototype,o),tr.seriesTypes[e].prototype.pointClass=t}return tr.seriesTypes[e]};let rr=O,{animObject:or,setAnimation:ir}=lt,{defaultOptions:ar}=Ze,{registerEventOptions:lr}=dn,{svg:sr,win:cr}=_,{seriesTypes:ur}=rr,{format:dr}=wt;class hr{constructor(){this.zoneAxis="y"}init(e,t){var n,r,o;let i;le(this,"init",{options:t}),this.dataTable??(this.dataTable=new Yn);let a=e.series;this.eventsToUnbind=[],this.chart=e,this.options=this.setOptions(t);let l=this.options,s=!1!==l.visible;this.linkedSeries=[],this.bindAxes(),ie(this,{name:l.name,state:"",visible:s,selected:!0===l.selected}),lr(this,l);let c=l.events;((null==c?void 0:c.click)||(null==(r=null==(n=l.point)?void 0:n.events)?void 0:r.click)||l.allowPointSelect)&&(e.runTrackerClick=!0),this.getColor(),this.getSymbol(),this.isCartesian&&(e.hasCartesianSeries=!0),a.length&&(i=a[a.length-1]),this._i=Te(null==i?void 0:i._i,-1)+1,this.opacity=this.options.opacity,e.orderItems("series",Fe(this,a)),(null==(o=l.dataSorting)?void 0:o.enabled)?this.setDataSortingOptions():this.points||this.data||this.setData(l.data,!1),le(this,"afterInit")}is(e){return ur[e]&&this instanceof ur[e]}bindAxes(){let e,t=this,n=t.options,r=t.chart;le(this,"bindAxes",null,function(){(t.axisTypes||[]).forEach(function(o){(r[o]||[]).forEach(function(r){e=r.options,(Te(n[o],0)===r.index||void 0!==n[o]&&n[o]===e.id)&&(Fe(t,r.series),t[o]=r,r.isDirty=!0)}),t[o]||t.optionalAxis===o||je(18,!0,r)})}),le(this,"afterBindAxes")}hasData(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.dataTable.rowCount>0}hasMarkerChanged(e,t){let n=e.marker,r=t.marker||{};return n&&(r.enabled&&!n.enabled||r.symbol!==n.symbol||r.height!==n.height||r.width!==n.width)}autoIncrement(e){let t,n=this.options,{pointIntervalUnit:r,relativeXValue:o}=this.options,i=this.chart.time,a=this.xIncrement??i.parse(n.pointStart)??0;if(this.pointInterval=t=Te(this.pointInterval,n.pointInterval,1),o&&ye(e)&&(t*=e),r){let e=i.toParts(a);"day"===r?e[2]+=t:"month"===r?e[1]+=t:"year"===r&&(e[0]+=t),t=i.makeTime.apply(i,e)-a}return o&&ye(e)?a+t:(this.xIncrement=a+t,a)}setDataSortingOptions(){let e=this.options;ie(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),ee(e.pointRange)||(e.pointRange=1)}setOptions(e){var t,n;let r,o=this.chart,i=o.options.plotOptions,a=o.userOptions||{},l=Ce(e),s=o.styledMode,c={plotOptions:i,userOptions:l};le(this,"setOptions",c);let u=c.plotOptions[this.type],d=a.plotOptions||{},h=d.series||{},p=ar.plotOptions[this.type]||{},f=d[this.type]||{};u.dataLabels=this.mergeArrays(p.dataLabels,u.dataLabels),this.userOptions=c.userOptions;let m=Ce(u,i.series,f,l);this.tooltipOptions=Ce(ar.tooltip,null==(t=ar.plotOptions.series)?void 0:t.tooltip,null==p?void 0:p.tooltip,o.userOptions.tooltip,null==(n=d.series)?void 0:n.tooltip,f.tooltip,l.tooltip),this.stickyTracking=Te(l.stickyTracking,f.stickyTracking,h.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||m.stickyTracking),null===u.marker&&delete m.marker;let{negativeColor:g,negativeFillColor:y,zoneAxis:v="y",zones:b}=m,x=this.zones=(b||[]).map(e=>({...e}));return this.zoneAxis=v,(g||y)&&!b&&(r={value:m[v+"Threshold"]||m.threshold||0,className:"highcharts-negative"},s||("boolean"!=typeof g&&(r.color=g),r.fillColor=y),x.push(r)),x.length&&ee(x[x.length-1].value)&&x.push(s?{}:{color:this.color,fillColor:this.fillColor}),le(this,"afterSetOptions",{options:m}),m}getName(){return this.options.name??dr(this.chart.options.lang.seriesName,this,this.chart)}getCyclic(e,t,n){let r,o,i=this.chart,a=`${e}Index`,l=`${e}Counter`,s=(null==n?void 0:n.length)||i.options.chart.colorCount;!t&&(ee(o=Te("color"===e?this.options.colorIndex:void 0,this[a]))?r=o:(i.series.length||(i[l]=0),r=i[l]%s,i[l]+=1),n&&(t=n[r])),void 0!==r&&(this[a]=r),this[e]=t}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||ar.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let e=this.options.marker;this.getCyclic("symbol",e.symbol,this.chart.options.symbols)}getColumn(e,t){return(t?this.dataTable.getModified():this.dataTable).getColumn(e,!0)||[]}findPointIndex(e,t){var n;let r,o,i,{id:a,x:l}=e,s=this.points,c=this.options.dataSorting,u=this.cropStart||0;if(a){let e=this.chart.get(a);e instanceof Fn&&(r=e)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let t=t=>!t.touched&&t.index===e.index;if((null==c?void 0:c.matchByName)?t=t=>!t.touched&&t.name===e.name:this.options.relativeXValue&&(t=t=>!t.touched&&t.options.x===e.x),!(r=pe(s,t)))return}return r&&void 0!==(i=null==r?void 0:r.index)&&(o=!0),void 0===i&&ye(l)&&(i=this.getColumn("x").indexOf(l,t)),-1!==i&&void 0!==i&&this.cropped&&(i=i>=u?i-u:i),!o&&ye(i)&&(null==(n=s[i])?void 0:n.touched)&&(i=void 0),i}updateData(e,t){var n;let r,o,i,a,{options:l,requireSorting:s}=this,c=l.dataSorting,u=this.points,d=[],h=e.length===u.length,p=this.xIncrement,f=!0;if(this.xIncrement=null,e.forEach((e,t)=>{var n;let o,i=ee(e)&&this.pointClass.prototype.optionsToObject.call({series:this},e)||{},{id:p,x:f}=i;p||ye(f)?(-1===(o=this.findPointIndex(i,a))||void 0===o?d.push(e):u[o]&&e!==(null==(n=l.data)?void 0:n[o])?(u[o].update(e,!1,void 0,!1),u[o].touched=!0,s&&(a=o+1)):u[o]&&(u[o].touched=!0),(!h||t!==o||(null==c?void 0:c.enabled)||this.hasDerivedData)&&(r=!0)):d.push(e)},this),r)for(o=u.length;o--;)(i=u[o])&&!i.touched&&(null==(n=i.remove)||n.call(i,!1,t));else h&&!(null==c?void 0:c.enabled)?(e.forEach((e,t)=>{e===u[t].y||u[t].destroyed||u[t].update(e,!1,void 0,!1)}),d.length=0):f=!1;if(u.forEach(e=>{e&&(e.touched=!1)}),!f)return!1;d.forEach(e=>{this.addPoint(e,!1,void 0,void 0,!1)},this);let m=this.getColumn("x");return null!==p&&null===this.xIncrement&&m.length&&(this.xIncrement=q(m),this.autoIncrement()),!0}dataColumnKeys(){return["x",...this.pointArrayMap||["y"]]}setData(e,t=!0,n,r){var o,i;let a,l,s,c=this.points,u=(null==c?void 0:c.length)||0,d=this.options,h=this.chart,p=d.dataSorting,f=this.xAxis,m=d.turboThreshold,g=this.dataTable,y=this.dataColumnKeys(),v=this.pointValKey||"y",b=(this.pointArrayMap||[]).length,x=d.keys,w=0,C=1;h.options.chart.allowMutatingData||(d.data&&delete this.options.data,this.userOptions.data&&delete this.userOptions.data,s=Ce(!0,e));let k=(e=s||e||[]).length;if((null==p?void 0:p.enabled)&&(e=this.sortData(e)),!1!==r&&k&&u&&!this.cropped&&!this.hasGroupedData&&this.visible&&!this.boosted&&(l=this.updateData(e,n)),!l){this.xIncrement=null,this.colorCounter=0;let t=m&&!d.relativeXValue&&k>m;if(t){let n=this.getFirstValidPoint(e),r=this.getFirstValidPoint(e,k-1,-1),i=e=>!(!be(e)||!x&&!ye(e[0]));if(ye(n)&&ye(r)){let t=[],n=[];for(let r of e)t.push(this.autoIncrement()),n.push(r);g.setColumns({x:t,[v]:n})}else if(i(n)&&i(r))if(b){let t=+(n.length===b),r=Array(y.length).fill(0).map(()=>[]);for(let n of e){t&&r[0].push(this.autoIncrement());for(let e=t;e<=b;e++)null==(o=r[e])||o.push(n[e-t])}g.setColumns(y.reduce((e,t,n)=>(e[t]=r[n],e),{}))}else{x&&(w=x.indexOf("x"),C=x.indexOf("y"),w=w>=0?w:0,C=C>=0?C:1),1===n.length&&(C=0);let t=[],r=[];for(let n of e)w===C?t.push(this.autoIncrement()):t.push(n[w]??n.x??null),r.push(n[C]??n.y??null);g.setColumns({x:t,[v]:r})}else t=!1}if(!t){let t=y.reduce((e,t)=>(e[t]=[],e),{});for(a=0;a<k;a++){let n=this.pointClass.prototype.applyOptions.apply({series:this},[e[a]]);for(let e of y)t[e][a]=n[e]}g.setColumns(t)}for(ve(this.getColumn("y")[0])&&je(14,!0,h),this.data=[],this.options.data=this.userOptions.data=e,a=u;a--;)null==(i=c[a])||i.destroy();f&&(f.minRange=f.userMinRange),this.isDirty=h.isDirtyBox=!0,this.isDirtyData=!!c,n=!1}"point"===d.legendType&&(this.processData(),this.generatePoints()),t&&h.redraw(n)}sortData(e){let t=this,n=t.options.dataSorting.sortKey||"y",r=function(e,t){return ee(t)&&e.pointClass.prototype.optionsToObject.call({series:e},t)||{}};return e.forEach(function(n,o){e[o]=r(t,n),e[o].index=o},this),e.concat().sort((e,t)=>{let r=de(n,e),o=de(n,t);return o<r?-1:+(o>r)}).forEach(function(e,t){e.x=t},this),t.linkedSeries&&t.linkedSeries.forEach(function(t){var n;let o=t.options,i=o.data;!(null==(n=o.dataSorting)?void 0:n.enabled)&&i&&(i.forEach(function(n,o){i[o]=r(t,n),e[o]&&(i[o].x=e[o].x,i[o].index=o)}),t.setData(i,!1))}),e}getProcessedData(e){let t,n,r,o,i,a=this,{dataTable:l,isCartesian:s,options:c,xAxis:u}=a,d=c.cropThreshold,h=e||a.getExtremesFromAll,p=null==u?void 0:u.logarithmic,f=l.rowCount,m=0,g=a.getColumn("x"),y=l,v=!1;return u&&(o=(r=u.getExtremes()).min,i=r.max,v=!(!u.categories||u.names.length),s&&a.sorted&&!h&&(!d||f>d||a.forceCrop)&&(g[f-1]<o||g[0]>i?y=new Yn:a.getColumn(a.pointValKey||"y").length&&(g[0]<o||g[f-1]>i)&&(y=(t=this.cropData(l,o,i)).modified,m=t.start,n=!0))),g=y.getColumn("x")||[],{modified:y,cropped:n,cropStart:m,closestPointRange:ce([p?g.map(p.log2lin):g],()=>a.requireSorting&&!v&&je(15,!1,a.chart))}}processData(e){let t=this.xAxis,n=this.dataTable;if(this.isCartesian&&!this.isDirty&&!t.isDirty&&!this.yAxis.isDirty&&!e)return!1;let r=this.getProcessedData();n.modified=r.modified,this.cropped=r.cropped,this.cropStart=r.cropStart,this.closestPointRange=this.basePointRange=r.closestPointRange,le(this,"afterProcessData")}cropData(e,t,n){let r,o,i=e.getColumn("x",!0)||[],a=i.length,l={},s=0,c=a;for(r=0;r<a;r++)if(i[r]>=t){s=Math.max(0,r-1);break}for(o=r;o<a;o++)if(i[o]>n){c=o+1;break}for(let t of this.dataColumnKeys()){let n=e.getColumn(t,!0);n&&(l[t]=n.slice(s,c))}return{modified:new Yn({columns:l}),start:s,end:c}}generatePoints(){var e,t,n,r,o;let i,a,l,s,c,u=this.options,d=this.processedData||u.data,h=this.dataTable.getModified(),p=this.getColumn("x",!0),f=this.pointClass,m=h.rowCount,g=this.cropStart||0,y=this.hasGroupedData,v=u.keys,b=[],x=(null==(e=u.dataGrouping)?void 0:e.groupAll)?g:0,w=this.pointArrayMap||["y"],C=this.dataColumnKeys(),k=this.data;if(!k&&!y){let e=[];e.length=(null==d?void 0:d.length)||0,k=this.data=e}for(v&&y&&(this.options.keys=!1),s=0;s<m;s++)a=g+s,y?((l=new f(this,h.getRow(s,C)||[])).dataGroup=null==(t=this.groupMap)?void 0:t[x+s],(null==(n=l.dataGroup)?void 0:n.options)&&(l.options=l.dataGroup.options,ie(l,l.dataGroup.options),delete l.dataLabels,l.key=l.name??l.category)):(l=k[a],c=d?d[a]:h.getRow(s,w),l||void 0===c?l&&(l.category=(null==(o=null==(r=this.xAxis)?void 0:r.categories)?void 0:o[l.x])??l.x,l.key=l.name??l.category):k[a]=l=new f(this,c,p[s])),l&&(l.index=y?x+s:a,b[s]=l);if(this.options.keys=v,k&&(m!==(i=k.length)||y))for(s=0;s<i;s++)s!==g||y||(s+=m),k[s]&&(k[s].destroyElements(),k[s].plotX=void 0);this.data=k,this.points=b,le(this,"afterGeneratePoints")}getXExtremes(e){return{min:G(e),max:q(e)}}getExtremes(e,t){var n;let r,o,i,{xAxis:a,yAxis:l}=this,s=t||this.getExtremesFromAll||this.options.getExtremesFromAll,c=s&&this.cropped?this.dataTable:this.dataTable.getModified(),u=c.rowCount,d=e||this.stackedYData,h=d?[d]:(null==(n=this.keysAffectYAxis||this.pointArrayMap||["y"])?void 0:n.map(e=>c.getColumn(e,!0)||[]))||[],p=this.getColumn("x",!0),f=[],m=this.requireSorting&&!this.is("column")?1:0,g=!!l&&l.positiveValuesOnly,y=s||this.cropped||!a,v=0,b=0;for(a&&(v=(r=a.getExtremes()).min,b=r.max),i=0;i<u;i++)if(o=p[i],y||(p[i+m]||o)>=v&&(p[i-m]||o)<=b)for(let e of h){let t=e[i];ye(t)&&(t>0||!g)&&f.push(t)}let x={activeYData:f,dataMin:G(f),dataMax:q(f)};return le(this,"afterGetExtremes",{dataExtremes:x}),x}applyExtremes(){let e=this.getExtremes();return this.dataMin=e.dataMin,this.dataMax=e.dataMax,e}getFirstValidPoint(e,t=0,n=1){let r=e.length,o=t;for(;o>=0&&o<r;){if(ee(e[o]))return e[o];o+=n}}translate(){var e;this.generatePoints();let t,n,r,o,i=this.options,a=i.stacking,l=this.xAxis,s=this.enabledDataSorting,c=this.yAxis,u=this.points,d=u.length,h=this.pointPlacementToXValue(),p=!!h,f=i.threshold,m=i.startFromThreshold?f:0,g=(null==i?void 0:i.nullInteraction)&&c.len,y=Number.MAX_VALUE;function v(e){return U(e,-1e9,1e9)}for(t=0;t<d;t++){let i,d,b,x=u[t],w=x.x,C=x.y,k=x.low,S=a&&(null==(e=c.stacking)?void 0:e.stacks[(this.negStacks&&C<(m?0:f)?"-":"")+this.stackKey]);x.plotX=ye(n=l.translate(w,!1,!1,!1,!0,h))?Y(v(n)):void 0,a&&this.visible&&S&&S[w]&&(o=this.getStackIndicator(o,w,this.index),!x.isNull&&o.key&&(b=(d=S[w]).points[o.key]),d&&be(b)&&(k=b[0],C=b[1],k===m&&o.key===S[w].base&&(k=Te(ye(f)?f:c.min)),c.positiveValuesOnly&&ee(k)&&k<=0&&(k=void 0),x.total=x.stackTotal=Te(d.total),x.percentage=ee(x.y)&&d.total?x.y/d.total*100:void 0,x.stackY=C,this.irregularWidths||d.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),x.yBottom=ee(k)?v(c.translate(k,!1,!0,!1,!0)):void 0,this.dataModify&&(C=this.dataModify.modifyValue(C,t)),ye(C)&&void 0!==x.plotX?i=ye(i=c.translate(C,!1,!0,!1,!0))?v(i):void 0:!ye(C)&&g&&(i=g),x.plotY=i,x.isInside=this.isPointInside(x),x.clientX=p?Y(l.translate(w,!1,!1,!1,!0,h)):n,x.negative=(x.y||0)<(f||0),x.isNull||!1===x.visible||(void 0!==r&&(y=Math.min(y,Math.abs(n-r))),r=n),x.zone=this.zones.length?x.getZone():void 0,!x.graphic&&this.group&&s&&(x.isNew=!0)}this.closestPointRangePx=y,le(this,"afterTranslate")}getValidPoints(e,t,n){let r=this.chart;return(e||this.points||[]).filter(function(e){let{plotX:o,plotY:i}=e;return!(!n&&(e.isNull||!ye(i))||t&&!r.isInsidePlot(o,i,{inverted:r.inverted})||!1===e.visible)})}getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey}setClip(){let{chart:e,group:t,markerGroup:n}=this,r=e.sharedClips,o=e.renderer,i=e.getClipBox(this),a=this.getSharedClipKey(),l=r[a];le(this,"setClip",{clipBox:i}),l?l.animate(i):r[a]=l=o.clipRect(i),t&&t.clip(!1===this.options.clip?void 0:l),n&&n.clip()}animate(e){let{chart:t,group:n,markerGroup:r}=this,o=t.inverted,i=or(this.options.animation),a=[this.getSharedClipKey(),i.duration,i.easing,i.defer].join(","),l=t.sharedClips[a],s=t.sharedClips[a+"m"];if(e&&n){let e=t.getClipBox(this);if(l)l.attr("height",e.height);else{e.width=0,o&&(e.x=t.plotHeight),l=t.renderer.clipRect(e),t.sharedClips[a]=l;let n={x:-99,y:-99,width:o?t.plotWidth+199:99,height:o?99:t.plotHeight+199};s=t.renderer.clipRect(n),t.sharedClips[a+"m"]=s}n.clip(l),null==r||r.clip(s)}else if(l&&!l.hasClass("highcharts-animating")){let e=t.getClipBox(this),n=i.step;((null==r?void 0:r.element.childNodes.length)||t.series.length>1)&&(i.step=function(e,t){n&&n.apply(t,arguments),"width"===t.prop&&(null==s?void 0:s.element)&&s.attr(o?"height":"width",e+99)}),l.addClass("highcharts-animating").animate(e,i)}}afterAnimate(){this.setClip(),Se(this.chart.sharedClips,(e,t,n)=>{e&&!this.chart.container.querySelector(`[clip-path="url(#${e.id})"]`)&&(e.destroy(),delete n[t])}),this.finishedAnimating=!0,le(this,"afterAnimate")}drawPoints(e=this.points){let t,n,r,o,i,a,l,s=this.chart,c=s.styledMode,{colorAxis:u,options:d}=this,h=d.marker,p=d.nullInteraction,f=this[this.specialGroup||"markerGroup"],m=this.xAxis,g=Te(h.enabled,!m||!!m.isRadial||null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(t=0;t<e.length;t++){o=(r=(n=e[t]).graphic)?"animate":"attr",i=n.marker||{},a=!!n.marker;let d=n.isNull;if(!(g&&!ee(i.enabled)||i.enabled)||d&&!p||!1===n.visible)r&&(n.graphic=r.destroy());else{let e=Te(i.symbol,this.symbol,"rect");l=this.markerAttribs(n,n.selected&&"select"),this.enabledDataSorting&&(n.startXPos=m.reversed?-(l.width||0):m.width);let t=!1!==n.isInside;if(!r&&t&&((l.width||0)>0||n.hasImage)&&(n.graphic=r=s.renderer.symbol(e,l.x,l.y,l.width,l.height,a?i:h).add(f),this.enabledDataSorting&&s.hasRendered&&(r.attr({x:n.startXPos}),o="animate")),r&&"animate"===o&&r[t?"show":"hide"](t).animate(l),r){let e=this.pointAttribs(n,c||!n.selected?void 0:"select");c?u&&r.css({fill:e.fill}):r[o](e)}r&&r.addClass(n.getClassName(),!0)}}}markerAttribs(e,t){var n,r;let o,i,a=this.options,l=a.marker,s=e.marker||{},c=s.symbol||l.symbol,u={},d=Te(s.radius,null==l?void 0:l.radius);t&&(o=null==(n=null==l?void 0:l.states)?void 0:n[t],i=null==(r=s.states)?void 0:r[t],d=Te(null==i?void 0:i.radius,null==o?void 0:o.radius,d&&d+((null==o?void 0:o.radiusPlus)||0))),e.hasImage=c&&0===c.indexOf("url"),e.hasImage&&(d=0);let h=e.pos();return ye(d)&&h&&(a.crisp&&(h[0]=Q(h[0],e.hasImage?0:"rect"===c?(null==l?void 0:l.lineWidth)||0:1)),u.x=h[0]-d,u.y=h[1]-d),d&&(u.width=u.height=2*d),u}pointAttribs(e,t){var n;let r,o,i,a,l=this.options,s=l.marker,c=null==e?void 0:e.options,u=(null==c?void 0:c.marker)||{},d=null==c?void 0:c.color,h=null==e?void 0:e.color,p=null==(n=null==e?void 0:e.zone)?void 0:n.color,f=this.color,m=Te(u.lineWidth,s.lineWidth),g=(null==e?void 0:e.isNull)&&l.nullInteraction?0:1;return f=d||p||h||f,i=u.fillColor||s.fillColor||f,a=u.lineColor||s.lineColor||f,t=t||"normal",r=s.states[t]||{},m=Te((o=u.states&&u.states[t]||{}).lineWidth,r.lineWidth,m+Te(o.lineWidthPlus,r.lineWidthPlus,0)),i=o.fillColor||r.fillColor||i,a=o.lineColor||r.lineColor||a,{stroke:a,"stroke-width":m,fill:i,opacity:g=Te(o.opacity,r.opacity,g)}}destroy(e){var t,n;let r,o,i=this,a=i.chart,l=/AppleWebKit\/533/.test(cr.navigator.userAgent),s=i.data||[];for(le(i,"destroy",{keepEventsForUpdate:e}),this.removeEvents(e),(i.axisTypes||[]).forEach(function(e){o=i[e],(null==o?void 0:o.series)&&(oe(o.series,i),o.isDirty=o.forceRedraw=!0)}),i.legendItem&&i.chart.legend.destroyItem(i),r=s.length;r--;)null==(n=null==(t=s[r])?void 0:t.destroy)||n.call(t);for(let e of i.zones)te(e,void 0,!0);fe(i.animationTimeout),Se(i,function(e,t){e instanceof Rt&&!e.survive&&e[l&&"group"===t?"hide":"destroy"]()}),a.hoverSeries===i&&(a.hoverSeries=void 0),oe(a.series,i),a.orderItems("series"),Se(i,function(t,n){e&&"hcEvents"===n||delete i[n]})}applyZones(){let{area:e,chart:t,graph:n,zones:r,points:o,xAxis:i,yAxis:a,zoneAxis:l}=this,{inverted:s,renderer:c}=t,u=this[`${l}Axis`],{isXAxis:d,len:h=0,minPointOffset:p=0}=u||{},f=((null==n?void 0:n.strokeWidth())||0)/2+1,m=(e,t=0,n=0)=>{s&&(n=h-n);let{translated:r=0,lineClip:o}=e,i=n-r;null==o||o.push(["L",t,Math.abs(i)<f?n-f*(i<=0?-1:1):r])};if(r.length&&(n||e)&&u&&ye(u.min)){let t=u.getExtremes().max+p,f=e=>{e.forEach((t,n)=>{("M"===t[0]||"L"===t[0])&&(e[n]=[t[0],d?h-t[1]:t[1],d?t[2]:h-t[2]])})};if(r.forEach(e=>{e.lineClip=[],e.translated=U(u.toPixels(Te(e.value,t),!0)||0,0,h)}),n&&!this.showLine&&n.hide(),e&&e.hide(),"y"===l&&o.length<i.len)for(let e of o){let{plotX:t,plotY:n,zone:o}=e,i=o&&r[r.indexOf(o)-1];o&&m(o,t,n),i&&m(i,t,n)}let g=[],y=u.toPixels(u.getExtremes().min-p,!0);r.forEach(t=>{var r,o;let l=t.lineClip||[],u=Math.round(t.translated||0);i.reversed&&l.reverse();let{clip:h,simpleClip:p}=t,m=0,v=0,b=i.len,x=a.len;d?(m=u,b=y):(v=u,x=y);let w=[["M",m,v],["L",b,v],["L",b,x],["L",m,x],["Z"]],C=[w[0],...l,w[1],w[2],...g,w[3],w[4]];g=l.reverse(),y=u,s&&(f(C),e&&f(w)),h?(h.animate({d:C}),null==p||p.animate({d:w})):(h=t.clip=c.path(C),e&&(p=t.simpleClip=c.path(w))),n&&(null==(r=t.graph)||r.clip(h)),e&&(null==(o=t.area)||o.clip(p))})}else this.visible&&(n&&n.show(),e&&e.show())}plotGroup(e,t,n,r,o){let i=this[e],a=!i,l={visibility:n,zIndex:r||.1};return ee(this.opacity)&&!this.chart.styledMode&&"inactive"!==this.state&&(l.opacity=this.opacity),i||(this[e]=i=this.chart.renderer.g().add(o)),i.addClass("highcharts-"+t+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(ee(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(i.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),i.attr(l)[a?"attr":"animate"](this.getPlotBox(t)),i}getPlotBox(e){let t=this.xAxis,n=this.yAxis,r=this.chart,o=r.inverted&&!r.polar&&t&&this.invertible&&"series"===e;r.inverted&&(t=n,n=this.xAxis);let i={scale:1,translateX:t?t.left:r.plotLeft,translateY:n?n.top:r.plotTop,name:e};le(this,"getPlotBox",i);let{scale:a,translateX:l,translateY:s}=i;return{translateX:l,translateY:s,rotation:90*!!o,rotationOriginX:o?a*(t.len-n.len)/2:0,rotationOriginY:o?a*(t.len+n.len)/2:0,scaleX:o?-a:a,scaleY:a}}removeEvents(e){let{eventsToUnbind:t}=this;e||Oe(this),t.length&&(t.forEach(e=>{e()}),t.length=0)}render(){var e,t,n,r,o;let i=this,{chart:a,options:l,hasRendered:s}=i,c=or(l.animation),u=i.visible?"inherit":"hidden",d=l.zIndex,h=a.seriesGroup,p=i.finishedAnimating?0:c.duration;le(this,"render"),i.plotGroup("group","series",u,d,h),i.markerGroup=i.plotGroup("markerGroup","markers",u,d,h),!1!==l.clip&&i.setClip(),p&&(null==(e=i.animate)||e.call(i,!0)),i.drawGraph&&(i.drawGraph(),i.applyZones()),i.visible&&i.drawPoints(),null==(t=i.drawDataLabels)||t.call(i),null==(n=i.redrawPoints)||n.call(i),l.enableMouseTracking&&(null==(r=i.drawTracker)||r.call(i)),p&&(null==(o=i.animate)||o.call(i)),s||(p&&c.defer&&(p+=c.defer),i.animationTimeout=Le(()=>{i.afterAnimate()},p||0)),i.isDirty=!1,i.hasRendered=!0,le(i,"afterRender")}redraw(){let e=this.isDirty||this.isDirtyData;this.translate(),this.render(),e&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(e,t){let{xAxis:n,yAxis:r}=this,o=this.chart.inverted;return this.searchKDTree({clientX:o?n.len-e.chartY+n.pos:e.chartX-n.pos,plotY:o?r.len-e.chartX+r.pos:e.chartY-r.pos},t,e)}buildKDTree(e){this.buildingKdTree=!0;let t=this,n=t.options,r=n.findNearestPointBy.indexOf("y")>-1?2:1;delete t.kdTree,Le(function(){t.kdTree=function e(n,r,o){let i,a,l=null==n?void 0:n.length;if(l)return i=t.kdAxisArray[r%o],n.sort((e,t)=>(e[i]||0)-(t[i]||0)),{point:n[a=Math.floor(l/2)],left:e(n.slice(0,a),r+1,o),right:e(n.slice(a+1),r+1,o)}}(t.getValidPoints(void 0,!t.directTouch,null==n?void 0:n.nullInteraction),r,r),t.buildingKdTree=!1},n.kdNow||"touchstart"===(null==e?void 0:e.type)?0:1)}searchKDTree(e,t,n,r,o){let i=this,[a,l]=this.kdAxisArray,s=t?"distX":"dist",c=(i.options.findNearestPointBy||"").indexOf("y")>-1?2:1,u=!!i.isBubble,d=r||((e,t,n)=>{let r=e[n]||0,o=t[n]||0;return[r===o&&e.index>t.index||r<o?e:t,!1]}),h=o||((e,t)=>e<t);if(this.kdTree||this.buildingKdTree||this.buildKDTree(n),this.kdTree)return function e(t,n,r,o){var c,p;let f,m,g,y,v,b,x,w=n.point,C=i.kdAxisArray[r%o],k=w,S=!1;f=t[a],m=w[a],g=ee(f)&&ee(m)?f-m:null,y=t[l],v=w[l],b=ee(y)&&ee(v)?y-v:0,x=u&&(null==(c=w.marker)?void 0:c.radius)||0,w.dist=Math.sqrt((g&&g*g||0)+b*b)-x,w.distX=ee(g)?Math.abs(g)-x:Number.MAX_VALUE;let E=(t[C]||0)-(w[C]||0)+(u&&(null==(p=w.marker)?void 0:p.radius)||0),$=E<0?"left":"right",T=E<0?"right":"left";return n[$]&&([k,S]=d(w,e(t,n[$],r+1,o),s)),n[T]&&h(Math.sqrt(E*E),k[s],S)&&(k=d(k,e(t,n[T],r+1,o),s)[0]),k}(e,this.kdTree,c,c)}pointPlacementToXValue(){let{options:e,xAxis:t}=this,n=e.pointPlacement;return"between"===n&&(n=t.reversed?-.5:.5),ye(n)?n*(e.pointRange||t.pointRange):0}isPointInside(e){let{chart:t,xAxis:n,yAxis:r}=this,{plotX:o=-1,plotY:i=-1}=e;return i>=0&&i<=(r?r.len:t.plotHeight)&&o>=0&&o<=(n?n.len:t.plotWidth)}drawTracker(){var e;let t=this,n=t.options,r=n.trackByArea,o=[].concat((r?t.areaPath:t.graphPath)||[]),i=t.chart,a=i.pointer,l=i.renderer,s=(null==(e=i.options.tooltip)?void 0:e.snap)||0,c=()=>{n.enableMouseTracking&&i.hoverSeries!==t&&t.onMouseOver()},u="rgba(192,192,192,"+(sr?1e-4:.002)+")",d=t.tracker;d?d.attr({d:o}):t.graph&&(t.tracker=d=l.path(o).attr({visibility:t.visible?"inherit":"hidden",zIndex:2}).addClass(r?"highcharts-tracker-area":"highcharts-tracker-line").add(t.group),i.styledMode||d.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:u,fill:r?u:"none","stroke-width":t.graph.strokeWidth()+(r?0:2*s)}),[t.tracker,t.markerGroup,...t.dataLabelsGroups||[]].forEach(e=>{e&&(e.addClass("highcharts-tracker").on("mouseover",c).on("mouseout",e=>{null==a||a.onTrackerMouseOut(e)}),n.cursor&&!i.styledMode&&e.css({cursor:n.cursor}),e.on("touchstart",c))})),le(this,"afterDrawTracker")}addPoint(e,t,n,r,o){let i,a,l=this.options,{chart:s,data:c,dataTable:u,xAxis:d}=this,h=(null==d?void 0:d.hasNames)&&d.names,p=l.data,f=this.getColumn("x");t=Te(t,!0);let m={series:this};this.pointClass.prototype.applyOptions.apply(m,[e]);let g=m.x;if(a=f.length,this.requireSorting&&g<f[a-1])for(i=!0;a&&f[a-1]>g;)a--;u.setRow(m,a,!0,{addColumns:!1}),h&&m.name&&(h[g]=m.name),null==p||p.splice(a,0,e),(i||this.processedData)&&(this.data.splice(a,0,null),this.processData()),"point"===l.legendType&&this.generatePoints(),n&&(c[0]&&c[0].remove?c[0].remove(!1):([c,p].filter(ee).forEach(e=>{e.shift()}),u.deleteRows(0))),!1!==o&&le(this,"addPoint",{point:m}),this.isDirty=!0,this.isDirtyData=!0,t&&s.redraw(r)}removePoint(e,t,n){let r=this,{chart:o,data:i,points:a,dataTable:l}=r,s=i[e],c=function(){[(null==a?void 0:a.length)===i.length?a:void 0,i,r.options.data].filter(ee).forEach(t=>{t.splice(e,1)}),l.deleteRows(e),null==s||s.destroy(),r.isDirty=!0,r.isDirtyData=!0,t&&o.redraw()};ir(n,o),t=Te(t,!0),s?s.firePointEvent("remove",null,c):c()}remove(e,t,n,r){let o=this,i=o.chart;function a(){o.destroy(r),i.isDirtyLegend=i.isDirtyBox=!0,i.linkSeries(r),Te(e,!0)&&i.redraw(t)}!1!==n?le(o,"remove",null,a):a()}update(e,t){var n,r;le(this,"update",{options:e=re(e,this.userOptions)});let o,i,a=this,l=a.chart,s=a.userOptions,c=a.initialType||a.type,u=l.options.plotOptions,d=ur[c].prototype,h=a.finishedAnimating&&{animation:!1},p={},f=hr.keepProps.slice(),m=e.type||s.type||l.options.chart.type,g=!(this.hasDerivedData||m&&m!==this.type||void 0!==e.keys||void 0!==e.pointStart||void 0!==e.pointInterval||void 0!==e.relativeXValue||e.joinBy||e.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(e=>a.hasOptionChanged(e)));m=m||c,g?(f.push.apply(f,hr.keepPropsForPoints),!1!==e.visible&&f.push("area","graph"),a.parallelArrays.forEach(function(e){f.push(e+"Data")}),e.data&&(e.dataSorting&&ie(a.options.dataSorting,e.dataSorting),this.setData(e.data,!1))):this.dataTable.modified=this.dataTable,e.dataLabels&&s.dataLabels&&(e.dataLabels=this.mergeArrays(s.dataLabels,e.dataLabels)),e=Ce(s,{index:void 0===s.index?a.index:s.index,pointStart:(null==(n=null==u?void 0:u.series)?void 0:n.pointStart)??s.pointStart??a.getColumn("x")[0]},!g&&{data:a.options.data},e,h),g&&e.data&&(e.data=a.options.data),(f=["dataLabelsGroup","dataLabelsGroups","dataLabelsParentGroups","group","markerGroup","transformGroup"].concat(f)).forEach(function(e){f[e]=a[e],delete a[e]});let y=!1;if(ur[m]){if(y=m!==a.type,a.remove(!1,!1,!1,!0),y)if(l.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(a,ur[m].prototype);else{let e=Object.hasOwnProperty.call(a,"hcEvents")&&a.hcEvents;for(i in d)a[i]=void 0;ie(a,ur[m].prototype),e?a.hcEvents=e:delete a.hcEvents}}else je(17,!0,l,{missingModuleFor:m});if(f.forEach(function(e){a[e]=f[e]}),a.init(l,e),g&&this.points)for(let e of(!1===(o=a.options).visible?(p.graphic=1,p.dataLabel=1):(this.hasMarkerChanged(o,s)&&(p.graphic=1),(null==(r=a.hasDataLabels)?void 0:r.call(a))||(p.dataLabel=1)),this.points))(null==e?void 0:e.series)&&(e.resolveColor(),Object.keys(p).length&&e.destroyElements(p),!1===o.showInLegend&&e.legendItem&&l.legend.destroyItem(e));a.initialType=c,l.linkSeries(),l.setSortedData(),y&&a.linkedSeries.length&&(a.isDirtyData=!0),le(this,"afterUpdate"),Te(t,!0)&&l.redraw(!!g&&void 0)}setName(e){this.name=this.options.name=this.userOptions.name=e,this.chart.isDirtyLegend=!0}hasOptionChanged(e){var t,n;let r=this.chart,o=this.options[e],i=r.options.plotOptions,a=this.userOptions[e],l=Te(null==(t=null==i?void 0:i[this.type])?void 0:t[e],null==(n=null==i?void 0:i.series)?void 0:n[e]);return a&&!ee(l)?o!==a:o!==Te(l,o)}onMouseOver(){let e=this.chart,t=e.hoverSeries,n=e.pointer;null==n||n.setHoverChartIndex(),t&&t!==this&&t.onMouseOut(),this.options.events.mouseOver&&le(this,"mouseOver"),this.setState("hover"),e.hoverSeries=this}onMouseOut(){let e=this.options,t=this.chart,n=t.tooltip,r=t.hoverPoint;t.hoverSeries=null,r&&r.onMouseOut(),this&&e.events.mouseOut&&le(this,"mouseOut"),n&&!this.stickyTracking&&(!n.shared||this.noSharedTooltip)&&n.hide(),t.series.forEach(function(e){e.setState("",!0)})}setState(e,t){var n,r;let o=this,{graph:i,options:a}=o,{inactiveOtherPoints:l,states:s}=a,c=Te(null==(n=null==s?void 0:s[e||"normal"])?void 0:n.animation,o.chart.options.chart.animation),{lineWidth:u,opacity:d}=a;if(e=e||"",o.state!==e&&([o.group,o.markerGroup,...o.dataLabelsGroups||[]].forEach(function(t){t&&(o.state&&t.removeClass("highcharts-series-"+o.state),e&&t.addClass("highcharts-series-"+e))}),o.state=e,!o.chart.styledMode)){if(!1===(null==(r=s[e])?void 0:r.enabled))return;if(e&&(u=s[e].lineWidth||u+(s[e].lineWidthPlus||0),d=Te(s[e].opacity,d)),i&&!i.dashstyle&&ye(u))for(let e of[i,...this.zones.map(e=>e.graph)])null==e||e.animate({"stroke-width":u},c);l||[o.group,o.markerGroup,...o.dataLabelsGroups||[],o.labelBySeries].forEach(function(e){null==e||e.animate({opacity:d},c)})}t&&l&&o.points&&o.setAllPointsToState(e||void 0)}setAllPointsToState(e){this.points.forEach(function(t){t.setState&&t.setState(e)})}setVisible(e,t){var n,r;let o=this,i=o.chart,a=i.options.chart.ignoreHiddenSeries,l=o.visible;o.visible=e=o.options.visible=o.userOptions.visible=void 0===e?!l:e;let s=e?"show":"hide";["group","markerGroup","tracker","tt"].forEach(e=>{var t;null==(t=o[e])||t[s]()}),null==(n=o.dataLabelsGroups)||n.forEach(e=>{null==e||e[s]()}),(i.hoverSeries===o||(null==(r=i.hoverPoint)?void 0:r.series)===o)&&o.onMouseOut(),o.legendItem&&i.legend.colorizeItem(o,e),o.isDirty=!0,o.options.stacking&&i.series.forEach(e=>{e.options.stacking&&e.visible&&(e.isDirty=!0)}),o.linkedSeries.forEach(t=>{t.setVisible(e,!1)}),a&&(i.isDirtyBox=!0),le(o,s),!1!==t&&i.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(e){this.selected=e=this.options.selected=void 0===e?!this.selected:e,this.checkbox&&(this.checkbox.checked=e),le(this,e?"select":"unselect")}shouldShowTooltip(e,t,n={}){return n.series=this,n.visiblePlotOnly=!0,this.chart.isInsidePlot(e,t,n)}drawLegendSymbol(e,t){var n;let r=this.chart.renderer,o=this.options.legendSymbol||"rectangle",i=t.legendItem||{},{options:a,symbolHeight:l,symbolWidth:s}=e,c=a.squareSymbol,u=c?l:s,d=c?(s-l)/2:0,h=(e.baseline||0)-l+1,p=a.symbolRadius??l,f="rectangle"===o?r.rect(d,h,u,l,p):r.symbols[o]&&r.symbol(o,d,h,u,l,{r:p});f?i.symbol=f.addClass("highcharts-point").attr({zIndex:3}).add(i.group):null==(n=Jn[o])||n.call(this,e,t)}}hr.defaultOptions={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){let{numberFormatter:e}=this.series.chart;return"number"!=typeof this.y?"":e(this.y,-1)},padding:5,style:{fontSize:"0.7em",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},hr.types=rr.seriesTypes,hr.registerType=rr.registerSeriesType,hr.keepProps=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],hr.keepPropsForPoints=["data","isDirtyData","isDirtyCanvas","points","dataTable","processedData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"],ie(hr.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:Fn,requireSorting:!0,sorted:!0}),rr.series=hr;let pr=hr,{animObject:fr,setAnimation:mr}=lt,{registerEventOptions:gr}=dn,{composed:yr,marginNames:vr}=_,{distribute:br}=kt,{format:xr}=wt;class wr{constructor(e,t){this.allItems=[],this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.padding=0,this.pages=[],this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=e,this.setOptions(t),t.enabled&&(this.render(),gr(this,t),V(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),V(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(e){let t=Te(e.padding,8);this.options=e,this.chart.styledMode||(this.itemStyle=e.itemStyle,this.itemHiddenStyle=Ce(this.itemStyle,e.itemHiddenStyle)),this.itemMarginTop=e.itemMarginTop,this.itemMarginBottom=e.itemMarginBottom,this.padding=t,this.initialItemY=t-5,this.symbolWidth=Te(e.symbolWidth,16),this.pages=[],this.proximate="proximate"===e.layout&&!this.chart.inverted,this.baseline=void 0}update(e,t){let n=this.chart;this.setOptions(Ce(!0,this.options,e)),"events"in this.options&&gr(this,this.options),this.destroy(),n.isDirtyLegend=n.isDirtyBox=!0,Te(t,!0)&&n.redraw(),le(this,"afterUpdate",{redraw:t})}colorizeItem(e,t){var n;let r=e.color,{area:o,group:i,label:a,line:l,symbol:s}=e.legendItem||{};if((e instanceof pr||e instanceof Fn)&&(e.color=(null==(n=e.options)?void 0:n.legendSymbolColor)||r),null==i||i[t?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:n={}}=this,r=n.color,{fillColor:i,fillOpacity:c,lineColor:u,marker:d}=e.options,h=e=>(!t&&(e.fill&&(e.fill=r),e.stroke&&(e.stroke=r)),e);null==a||a.css(Ce(t?this.itemStyle:n)),null==l||l.attr(h({stroke:u||e.color})),s&&s.attr(h(d&&s.isMarker?e.pointAttribs():{fill:e.color})),null==o||o.attr(h({fill:i||e.color,"fill-opacity":i?1:c??.75}))}e.color=r,le(this,"afterColorizeItem",{item:e,visible:t})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(e){let{group:t,x:n=0,y:r=0}=e.legendItem||{},o=this.options,i=o.symbolPadding,a=!o.rtl,l=e.checkbox;if(null==t?void 0:t.element){let o={translateX:a?n:this.legendWidth-n-2*i-4,translateY:r},l=()=>{le(this,"afterPositionItem",{item:e})};t[ee(t.translateY)?"animate":"attr"](o,void 0,l)}l&&(l.x=n,l.y=r)}destroyItem(e){let t=e.legendItem||{};for(let e of["group","label","line","symbol"])t[e]&&(t[e]=t[e].destroy());e.checkbox=ne(e.checkbox),e.legendItem=void 0}destroy(){for(let e of this.getAllItems())this.destroyItem(e);for(let e of["clipRect","up","down","pager","nav","box","title","group"])this[e]&&(this[e]=this[e].destroy());this.display=null}positionCheckboxes(){var e;let t,n=null==(e=this.group)?void 0:e.alignAttr,r=this.clipHeight||this.legendHeight,o=this.titleHeight;n&&(t=n.translateY,this.allItems.forEach(function(e){let i,a=e.checkbox;a&&(i=t+o+a.y+(this.scrollOffset||0)+3,J(a,{left:n.translateX+e.checkboxOffset+a.x-20+"px",top:i+"px",display:this.proximate||i>t-6&&i<t+r-6?"":"none"}))},this))}renderTitle(){let e,t=this.options,n=this.padding,r=t.title,o=0;r.text&&(this.title||(this.title=this.chart.renderer.label(r.text,n-3,n-4,void 0,void 0,void 0,t.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(r.style),this.title.add(this.group)),r.width||this.title.css({width:this.maxLegendWidth+"px"}),o=(e=this.title.getBBox()).height,this.offsetWidth=e.width,this.contentGroup.attr({translateY:o})),this.titleHeight=o}setText(e){let t=this.options;e.legendItem.label.attr({text:t.labelFormat?xr(t.labelFormat,e,this.chart):t.labelFormatter.call(e,e)})}renderItem(e){var t;let n=e.legendItem=e.legendItem||{},r=this.chart,o=r.renderer,i=this.options,a="horizontal"===i.layout,l=this.symbolWidth,s=i.symbolPadding||0,c=this.itemStyle,u=this.itemHiddenStyle,d=a?Te(i.itemDistance,20):0,h=!i.rtl,p=!e.series,f=!p&&e.series.drawLegendSymbol?e.series:e,m=f.options,g=!!this.createCheckboxForItem&&m&&m.showCheckbox,y=i.useHTML,v=e.options.className,b=n.label,x=l+s+d+20*!!g;!b&&(n.group=o.g("legend-item").addClass("highcharts-"+f.type+"-series highcharts-color-"+e.colorIndex+(v?" "+v:"")+(p?" highcharts-series-"+e.index:"")).attr({zIndex:1}).add(this.scrollGroup),n.label=b=o.text("",h?l+s:-s,this.baseline||0,y),r.styledMode||b.css(Ce(e.visible?c:u)),b.attr({align:h?"left":"right",zIndex:2}).add(n.group),!this.baseline&&(this.fontMetrics=o.fontMetrics(b),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,b.attr("y",this.baseline),this.symbolHeight=Te(i.symbolHeight,this.fontMetrics.f),i.squareSymbol&&(this.symbolWidth=Te(i.symbolWidth,Math.max(this.symbolHeight,16)),x=this.symbolWidth+s+d+20*!!g,h&&b.attr("x",this.symbolWidth+s))),f.drawLegendSymbol(this,e),this.setItemEvents&&this.setItemEvents(e,b,y)),g&&!e.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(e),this.colorizeItem(e,e.visible),(r.styledMode||!c.width)&&b.css({width:Math.min(i.itemWidth||this.widthOption||r.spacingBox.width,i.maxWidth?Ne(i.maxWidth,r.chartWidth):1/0)-x+"px"}),this.setText(e);let w=b.getBBox(),C=(null==(t=this.fontMetrics)?void 0:t.h)||0;e.itemWidth=e.checkboxOffset=i.itemWidth||n.labelWidth||w.width+x,this.maxItemWidth=Math.max(this.maxItemWidth,e.itemWidth),this.totalItemWidth+=e.itemWidth,this.itemHeight=e.itemHeight=Math.round(n.labelHeight||(w.height>1.5*C?w.height:C))}layoutItem(e){let t=this.options,n=this.padding,r="horizontal"===t.layout,o=e.itemHeight,i=this.itemMarginBottom,a=this.itemMarginTop,l=r?Te(t.itemDistance,20):0,s=this.maxLegendWidth,c=t.alignColumns&&this.totalItemWidth>s?this.maxItemWidth:e.itemWidth,u=e.legendItem||{};r&&this.itemX-n+c>s&&(this.itemX=n,this.lastLineHeight&&(this.itemY+=a+this.lastLineHeight+i),this.lastLineHeight=0),this.lastItemY=a+this.itemY+i,this.lastLineHeight=Math.max(o,this.lastLineHeight),u.x=this.itemX,u.y=this.itemY,r?this.itemX+=c:(this.itemY+=a+o+i,this.lastLineHeight=o),this.offsetWidth=this.widthOption||Math.max((r?this.itemX-n-(e.checkbox?0:l):c)+n,this.offsetWidth)}getAllItems(){let e=[];return this.chart.series.forEach(function(t){var n;let r=null==t?void 0:t.options;t&&Te(r.showInLegend,!ee(r.linkedTo)&&void 0,!0)&&(e=e.concat((null==(n=t.legendItem)?void 0:n.labels)||("point"===r.legendType?t.data:t)))}),le(this,"afterGetAllItems",{allItems:e}),e}getAlignment(){let e=this.options;return this.proximate?e.align.charAt(0)+"tv":e.floating?"":e.align.charAt(0)+e.verticalAlign.charAt(0)+e.layout.charAt(0)}adjustMargins(e,t){let n=this.chart,r=this.options,o=this.getAlignment();o&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((i,a)=>{i.test(o)&&!ee(e[a])&&(n[vr[a]]=Math.max(n[vr[a]],n.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*r[a%2?"x":"y"]+(r.margin??12)+t[a]+(n.titleOffset[a]||0)))})}proximatePositions(){let e,t=this.chart,n=[],r="left"===this.options.align;for(let o of(this.allItems.forEach(function(e){let o,i,a,l,s=r;e.yAxis&&(e.xAxis.options.reversed&&(s=!s),e.points&&(o=pe(s?e.points:e.points.slice(0).reverse(),function(e){return ye(e.plotY)})),i=this.itemMarginTop+e.legendItem.label.getBBox().height+this.itemMarginBottom,l=e.yAxis.top-t.plotTop,a=e.visible?(o?o.plotY:e.yAxis.height)+(l-.3*i):l+e.yAxis.height,n.push({target:a,size:i,item:e}))},this),br(n,t.plotHeight)))e=o.item.legendItem||{},ye(o.pos)&&(e.y=t.plotTop-t.spacing[0]+o.pos)}render(){let e,t,n,r,o=this.chart,i=o.spacingBox.width,a=o.renderer,l=this.options,s=this.padding,c=this.getAllItems(),u=this.group,d=this.box;this.itemX=s,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=Ne(l.width,i-s),r=i-2*s-l.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(r/=2),this.maxLegendWidth=this.widthOption||r,u||(this.group=u=a.g("legend").addClass(l.className||"").attr({zIndex:7}).add(),this.contentGroup=a.g().attr({zIndex:1}).add(u),this.scrollGroup=a.g().add(this.contentGroup)),this.renderTitle(),Re(c,(e,t)=>{var n,r;return((null==(n=e.options)?void 0:n.legendIndex)||0)-((null==(r=t.options)?void 0:r.legendIndex)||0)}),l.reversed&&c.reverse(),this.allItems=c,this.display=e=!!c.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,c.forEach(this.renderItem,this),c.forEach(this.layoutItem,this),t=(l.maxWidth?Math.min(this.widthOption||this.offsetWidth,r,Ne(l.maxWidth,o.chartWidth)||1/0):this.widthOption||this.offsetWidth)+s,n=this.lastItemY+this.lastLineHeight+this.titleHeight,n=this.handleOverflow(n)+s,d||(this.box=d=a.rect().addClass("highcharts-legend-box").attr({r:l.borderRadius}).add(u)),o.styledMode||d.attr({stroke:l.borderColor,"stroke-width":l.borderWidth||0,fill:l.backgroundColor||"none"}).shadow(l.shadow),t>0&&n>0&&d[d.placed?"animate":"attr"](d.crisp.call({},{x:0,y:0,width:t,height:n},d.strokeWidth())),u[e?"show":"hide"](),o.styledMode&&"none"===u.getStyle("display")&&(t=n=0),this.legendWidth=t,this.legendHeight=n,e&&this.align(),this.proximate||this.positionItems(),le(this,"afterRender")}align(e=this.chart.spacingBox){let t=this.chart,n=this.options,r=e.y;/(lth|ct|rth)/.test(this.getAlignment())&&t.titleOffset[0]>0?r+=t.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&t.titleOffset[2]>0&&(r-=t.titleOffset[2]),r!==e.y&&(e=Ce(e,{y:r})),t.hasRendered||(this.group.placed=!1),this.group.align(Ce(n,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":n.verticalAlign}),!0,e)}handleOverflow(e){let t,n,r,o,i=this,a=this.chart,l=a.renderer,s=this.options,c=s.y,u="top"===s.verticalAlign,d=this.padding,h=s.maxHeight,p=s.navigation,f=Te(p.animation,!0),m=p.arrowSize||12,g=this.pages,y=this.allItems,v=function(e){"number"==typeof e?C.attr({height:e}):C&&(i.clipRect=C.destroy(),i.contentGroup.clip()),i.contentGroup.div&&(i.contentGroup.div.style.clip=e?"rect("+d+"px,9999px,"+(d+e)+"px,0)":"auto")},b=function(e){return i[e]=l.circle(0,0,1.3*m).translate(m/2,m/2).add(w),a.styledMode||i[e].attr("fill","rgba(0,0,0,0.0001)"),i[e]},x=a.spacingBox.height+(u?-c:c)-d,w=this.nav,C=this.clipRect;return"horizontal"!==s.layout||"middle"===s.verticalAlign||s.floating||(x/=2),h&&(x=Math.min(x,h)),g.length=0,e&&x>0&&e>x&&!1!==p.enabled?(this.clipHeight=t=Math.max(x-20-this.titleHeight-d,0),this.currentPage=Te(this.currentPage,1),this.fullHeight=e,y.forEach((e,i)=>{let a=(r=e.legendItem||{}).y||0,l=Math.round(r.label.getBBox().height),s=g.length;(!s||a-g[s-1]>t&&(n||a)!==g[s-1])&&(g.push(n||a),s++),r.pageIx=s-1,n&&o&&(o.pageIx=s-1),i===y.length-1&&a+l-g[s-1]>t&&a>g[s-1]&&(g.push(a),r.pageIx=s),a!==n&&(n=a),o=r}),C||(C=i.clipRect=l.clipRect(0,d-2,9999,0),i.contentGroup.clip(C)),v(t),w||(this.nav=w=l.g().attr({zIndex:1}).add(this.group),this.up=l.symbol("triangle",0,0,m,m).add(w),b("upTracker").on("click",function(){i.scroll(-1,f)}),this.pager=l.text("",15,10).addClass("highcharts-legend-navigation"),!a.styledMode&&p.style&&this.pager.css(p.style),this.pager.add(w),this.down=l.symbol("triangle-down",0,0,m,m).add(w),b("downTracker").on("click",function(){i.scroll(1,f)})),i.scroll(0),e=x):w&&(v(),this.nav=w.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e}scroll(e,t){let n=this.chart,r=this.pages,o=r.length,i=this.clipHeight,a=this.options.navigation,l=this.pager,s=this.padding,c=this.currentPage+e;c>o&&(c=o),c>0&&(void 0!==t&&mr(t,n),this.nav.attr({translateX:s,translateY:i+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(e){e.attr({class:1===c?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),l.attr({text:c+"/"+o}),[this.down,this.downTracker].forEach(function(e){e.attr({x:18+this.pager.getBBox().width,class:c===o?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),n.styledMode||(this.up.attr({fill:1===c?a.inactiveColor:a.activeColor}),this.upTracker.css({cursor:1===c?"default":"pointer"}),this.down.attr({fill:c===o?a.inactiveColor:a.activeColor}),this.downTracker.css({cursor:c===o?"default":"pointer"})),this.scrollOffset=-r[c-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=c,this.positionCheckboxes(),Le(()=>{le(this,"afterScroll",{currentPage:c})},fr(Te(t,n.renderer.globalAnimation,!0)).duration))}setItemEvents(e,t,n){let r=this,o=e.legendItem||{},i=r.chart.renderer.boxWrapper,a=e instanceof Fn,l=e instanceof pr,s="highcharts-legend-"+(a?"point":"series")+"-active",c=r.chart.styledMode,u=n?[t,o.symbol]:[o.group],d=t=>{r.allItems.forEach(n=>{e!==n&&[n].concat(n.linkedSeries||[]).forEach(e=>{e.setState(t,!a)})})};for(let n of u)n&&n.on("mouseover",function(){e.visible&&d("inactive"),e.setState("hover"),e.visible&&i.addClass(s),c||t.css(r.options.itemHoverStyle)}).on("mouseout",function(){r.chart.styledMode||t.css(Ce(e.visible?r.itemStyle:r.itemHiddenStyle)),d(""),i.removeClass(s),e.setState()}).on("click",function(t){i.removeClass(s),le(r,"itemClick",{browserEvent:t,legendItem:e,context:r},function(){e.setVisible&&e.setVisible(),d(e.visible?"inactive":"")}),a?e.firePointEvent("legendItemClick",{browserEvent:t}):l&&le(e,"legendItemClick",{browserEvent:t})})}createCheckboxForItem(e){e.checkbox=Z("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:e.selected,defaultChecked:e.selected},this.options.itemCheckboxStyle,this.chart.container),V(e.checkbox,"click",function(t){let n=t.target;le(e.series||e,"checkboxClick",{checked:n.checked,item:e},function(){e.select()})})}}(b=wr||(wr={})).compose=function(e){Pe(yr,"Core.Legend")&&V(e,"beforeMargins",function(){this.legend=new b(this,this.options.legend)})};let Cr=wr,{animate:kr,animObject:Sr,setAnimation:Er}=lt,{defaultOptions:$r}=Ze,{numberFormat:Tr}=wt,{registerEventOptions:Mr}=dn,{charts:Pr,doc:Nr,marginNames:Ir,svg:Or,win:Ar}=_,{seriesTypes:Rr}=rr;class Lr{static chart(e,t,n){return new Lr(e,t,n)}constructor(e,t,n){if(this.sharedClips={},!Nr)return void je(36,!1,this);const r=[...arguments];(ve(e)||e.nodeName)&&(this.renderTo=r.shift()),this.init(r[0],r[1])}setZoomOptions(){let e=this.options.chart,t=e.zooming;this.zooming={...t,type:Te(e.zoomType,t.type),key:Te(e.zoomKey,t.key),pinchType:Te(e.pinchType,t.pinchType),singleTouch:Te(e.zoomBySingleTouch,t.singleTouch,!1),resetButton:Ce(t.resetButton,e.resetZoomButton)}}init(e,t){le(this,"init",{args:arguments},function(){var n;let r=Ce($r,e),o=r.chart,i=this.renderTo||o.renderTo;this.userOptions=ie({},e),(this.renderTo=ve(i)?Nr.getElementById(i):i)||je(13,!0,this),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=t,this.isResizing=0,this.options=r,this.axes=[],this.series=[],this.locale=r.lang.locale??(null==(n=this.renderTo.closest("[lang]"))?void 0:n.lang),this.time=new qe(ie(r.time||{},{locale:this.locale}),r.lang),r.time=this.time.options,this.numberFormatter=(o.numberFormatter||Tr).bind(this),this.styledMode=o.styledMode,this.hasCartesianSeries=o.showAxes,this.index=Pr.length,Pr.push(this),_.chartCount++,Mr(this,o),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),le(this,"afterInit"),this.firstRender()})}initSeries(e){let t=this.options.chart,n=e.type||t.type,r=Rr[n];r||je(17,!0,this,{missingModuleFor:n});let o=new r;return"function"==typeof o.init&&o.init(this,e),o}setSortedData(){this.getSeriesOrderByLinks().forEach(function(e){e.points||e.data||!e.enabledDataSorting||e.setData(e.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(e,t){return e.linkedSeries.length||t.linkedSeries.length?t.linkedSeries.length-e.linkedSeries.length:0})}orderItems(e,t=0){let n=this[e],r=this.options[e]=Ae(this.options[e]).slice(),o=this.userOptions[e]=this.userOptions[e]?Ae(this.userOptions[e]).slice():[];if(this.hasRendered&&(r.splice(t),o.splice(t)),n)for(let e=t,i=n.length;e<i;++e){let t=n[e];t&&(t.index=e,t instanceof pr&&(t.name=t.getName()),t.options.isInternal||(r[e]=t.options,o[e]=t.userOptions))}}getClipBox(e,t){var n,r;let o=this.inverted,{xAxis:i,yAxis:a}=e||{},{x:l,y:s,width:c,height:u}=Ce(this.clipBox);return e&&(i&&i.len!==this.plotSizeX&&(c=i.len),a&&a.len!==this.plotSizeY&&(u=a.len),o&&!e.invertible&&([c,u]=[u,c])),t&&(l+=(null==(n=o?a:i)?void 0:n.pos)??this.plotLeft,s+=(null==(r=o?i:a)?void 0:r.pos)??this.plotTop),{x:l,y:s,width:c,height:u}}isInsidePlot(e,t,n={}){var r;let{inverted:o,plotBox:i,plotLeft:a,plotTop:l,scrollablePlotBox:s}=this,{scrollLeft:c=0,scrollTop:u=0}=n.visiblePlotOnly&&(null==(r=this.scrollablePlotArea)?void 0:r.scrollingContainer)||{},d=n.series,h=n.visiblePlotOnly&&s||i,p=n.inverted?t:e,f=n.inverted?e:t,m={x:p,y:f,isInsidePlot:!0,options:n};if(!n.ignoreX){let e=d&&(o&&!this.polar?d.yAxis:d.xAxis)||{pos:a,len:1/0},t=n.paneCoordinates?e.pos+p:a+p;t>=Math.max(c+a,e.pos)&&t<=Math.min(c+a+h.width,e.pos+e.len)||(m.isInsidePlot=!1)}if(!n.ignoreY&&m.isInsidePlot){let e=!o&&n.axis&&!n.axis.isXAxis&&n.axis||d&&(o?d.xAxis:d.yAxis)||{pos:l,len:1/0},t=n.paneCoordinates?e.pos+f:l+f;t>=Math.max(u+l,e.pos)&&t<=Math.min(u+l+h.height,e.pos+e.len)||(m.isInsidePlot=!1)}return le(this,"afterIsInsidePlot",m),m.isInsidePlot}redraw(e){le(this,"beforeRedraw");let t,n,r,o,i=this.hasCartesianSeries?this.axes:this.colorAxis||[],a=this.series,l=this.pointer,s=this.legend,c=this.userOptions.legend,u=this.renderer,d=u.isHidden(),h=[],p=this.isDirtyBox,f=this.isDirtyLegend;for(u.rootFontSize=u.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),Er(!!this.hasRendered&&e,this),d&&this.temporaryDisplay(),this.layOutTitles(!1),r=a.length;r--;)if(((o=a[r]).options.stacking||o.options.centerInCategory)&&(n=!0,o.isDirty)){t=!0;break}if(t)for(r=a.length;r--;)(o=a[r]).options.stacking&&(o.isDirty=!0);a.forEach(function(e){e.isDirty&&("point"===e.options.legendType?("function"==typeof e.updateTotals&&e.updateTotals(),f=!0):c&&(c.labelFormatter||c.labelFormat)&&(f=!0)),e.isDirtyData&&le(e,"updatedData")}),f&&s&&s.options.enabled&&(s.render(),this.isDirtyLegend=!1),n&&this.getStacks(),i.forEach(function(e){e.updateNames(),e.setScale()}),this.getMargins(),i.forEach(function(e){e.isDirty&&(p=!0)}),i.forEach(function(e){let t=e.min+","+e.max;e.extKey!==t&&(e.extKey=t,h.push(function(){le(e,"afterSetExtremes",ie(e.eventArgs,e.getExtremes())),delete e.eventArgs})),(p||n)&&e.redraw()}),p&&this.drawChartBox(),le(this,"predraw"),a.forEach(function(e){(p||e.isDirty)&&e.visible&&e.redraw(),e.isDirtyData=!1}),l&&l.reset(!0),u.draw(),le(this,"redraw"),le(this,"render"),d&&this.temporaryDisplay(!0),h.forEach(function(e){e.call()})}get(e){let t=this.series;function n(t){return t.id===e||t.options&&t.options.id===e}let r=pe(this.axes,n)||pe(this.series,n);for(let e=0;!r&&e<t.length;e++)r=pe(t[e].points||[],n);return r}createAxes(){let e=this.userOptions;for(let t of(le(this,"createAxes"),["xAxis","yAxis"]))for(let n of e[t]=Ae(e[t]||{}))new wn(this,n,t);le(this,"afterCreateAxes")}getSelectedPoints(){return this.series.reduce((e,t)=>(t.getPointsCollection().forEach(t=>{Te(t.selectedStaging,t.selected)&&e.push(t)}),e),[])}getSelectedSeries(){return this.series.filter(e=>e.selected)}setTitle(e,t,n){this.applyDescription("title",e),this.applyDescription("subtitle",t),this.applyDescription("caption",void 0),this.layOutTitles(n)}applyDescription(e,t){var n;let r=this,o=this.options[e]=Ce(this.options[e],t),i=this[e];i&&t&&(this[e]=i=i.destroy()),o&&!i&&((i=this.renderer.text(o.text,0,0,o.useHTML).attr({align:o.align,class:"highcharts-"+e,zIndex:o.zIndex||4}).css({textOverflow:"ellipsis",whiteSpace:"nowrap"}).add()).update=function(t,n){r.applyDescription(e,t),r.layOutTitles(n)},this.styledMode||i.css(ie("title"===e?{fontSize:this.options.isStock?"1em":"1.2em"}:{},o.style)),i.textPxLength=i.getBBox().width,i.css({whiteSpace:null==(n=o.style)?void 0:n.whiteSpace}),this[e]=i)}layOutTitles(e=!0){var t,n,r,o;let i=[0,0,0],{options:a,renderer:l,spacingBox:s}=this;["title","subtitle","caption"].forEach(e=>{var t;let n=this[e],r=this.options[e],o=Ce(s),a=(null==n?void 0:n.textPxLength)||0;if(n&&r){le(this,"layOutTitle",{alignTo:o,key:e,textPxLength:a});let s=l.fontMetrics(n),c=s.b,u=s.h,d=r.verticalAlign||"top",h="top"===d,p=h&&r.minScale||1,f="title"===e?h?-3:0:h?i[0]+2:0,m=Math.min(o.width/a,1),g=Math.max(p,m),y=Ce({y:"bottom"===d?c:f+c},r),v=(r.width||(m>p?this.chartWidth:o.width)/g)+"px";y.align??(y.align="title"===e?m<p?"left":"center":null==(t=this.title)?void 0:t.alignValue),n.alignValue!==y.align&&(n.placed=!1);let b=Math.round(n.css({width:v}).getBBox(r.useHTML).height);if(y.height=b,n.align(y,!1,o).attr({align:y.align,scaleX:g,scaleY:g,"transform-origin":`${o.x+a*g*se(y.align)} ${u}`}),!r.floating){let e=b*(b<1.2*u?1:g);"top"===d?i[0]=Math.ceil(i[0]+e):"bottom"===d&&(i[2]=Math.ceil(i[2]+e))}}},this),i[0]&&"top"===((null==(t=a.title)?void 0:t.verticalAlign)||"top")&&(i[0]+=(null==(n=a.title)?void 0:n.margin)||0),i[2]&&"bottom"===(null==(r=a.caption)?void 0:r.verticalAlign)&&(i[2]+=(null==(o=a.caption)?void 0:o.margin)||0);let c=!this.titleOffset||this.titleOffset.join(",")!==i.join(",");this.titleOffset=i,le(this,"afterLayOutTitles"),!this.isDirtyBox&&c&&(this.isDirtyBox=this.isDirtyLegend=c,this.hasRendered&&e&&this.isDirtyBox&&this.redraw())}getContainerBox(){let e=[].map.call(this.renderTo.children,e=>{if(e!==this.container){let t=e.style.display;return e.style.display="none",[e,t]}}),t={width:he(this.renderTo,"width",!0)||0,height:he(this.renderTo,"height",!0)||0};return e.filter(Boolean).forEach(([e,t])=>{e.style.display=t}),t}getChartSize(){var e;let t=this.options.chart,n=t.width,r=t.height,o=this.getContainerBox(),i=o.height<=1||!(null==(e=this.renderTo.parentElement)?void 0:e.style.height)&&"100%"===this.renderTo.style.height;this.chartWidth=Math.max(0,n||o.width||600),this.chartHeight=Math.max(0,Ne(r,this.chartWidth)||(i?400:o.height)),this.containerBox=o}temporaryDisplay(e){let t,n=this.renderTo;if(e)for(;null==n?void 0:n.style;)n.hcOrigStyle&&(J(n,n.hcOrigStyle),delete n.hcOrigStyle),n.hcOrigDetached&&(Nr.body.removeChild(n),n.hcOrigDetached=!1),n=n.parentNode;else for(;(null==n?void 0:n.style)&&(Nr.body.contains(n)||n.parentNode||(n.hcOrigDetached=!0,Nr.body.appendChild(n)),("none"===he(n,"display",!1)||n.hcOrigDetached)&&(n.hcOrigStyle={display:n.style.display,height:n.style.height,overflow:n.style.overflow},t={display:"block",overflow:"hidden"},n!==this.renderTo&&(t.height=0),J(n,t),n.offsetWidth||n.style.setProperty("display","block","important")),(n=n.parentNode)!==Nr.body););}setClassName(e){this.container.className="highcharts-container "+(e||"")}getContainer(){var e,t;let n,r=this.options,o=r.chart,i="data-highcharts-chart",a=_e(),l=this.renderTo,s=Me(X(l,i));ye(s)&&Pr[s]&&Pr[s].hasRendered&&Pr[s].destroy(),X(l,i,this.index),l.innerHTML=pt.emptyHTML,o.skipClone||l.offsetWidth||this.temporaryDisplay(),this.getChartSize();let c=this.chartHeight,u=this.chartWidth;J(l,{overflow:"hidden"}),this.styledMode||(n=ie({position:"relative",overflow:"hidden",width:u+"px",height:c+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none",padding:"0px"},o.style||{}));let d=Z("div",{id:a},n,l);this.container=d,this.getChartSize(),u!==this.chartWidth&&(u=this.chartWidth,this.styledMode||J(d,{width:Te(null==(e=o.style)?void 0:e.width,u+"px")})),this.containerBox=this.getContainerBox(),this._cursor=d.style.cursor;let h=o.renderer||!Or?Ct.getRendererType(o.renderer):nn;if(this.renderer=new h(d,u,c,void 0,o.forExport,null==(t=r.exporting)?void 0:t.allowHTML,this.styledMode),Er(void 0,this),this.setClassName(o.className),this.styledMode)for(let e in r.defs)this.renderer.definition(r.defs[e]);else this.renderer.setStyle(o.style);this.renderer.chartIndex=this.index,le(this,"afterGetContainer")}getMargins(e){var t;let{spacing:n,margin:r,titleOffset:o}=this;this.resetMargins(),o[0]&&!ee(r[0])&&(this.plotTop=Math.max(this.plotTop,o[0]+n[0])),o[2]&&!ee(r[2])&&(this.marginBottom=Math.max(this.marginBottom,o[2]+n[2])),(null==(t=this.legend)?void 0:t.display)&&this.legend.adjustMargins(r,n),le(this,"getMargins"),e||this.getAxisMargins()}getAxisMargins(){let e=this,t=e.axisOffset=[0,0,0,0],n=e.colorAxis,r=e.margin,o=e=>{e.forEach(e=>{e.visible&&e.getOffset()})};e.hasCartesianSeries?o(e.axes):(null==n?void 0:n.length)&&o(n),Ir.forEach((n,o)=>{ee(r[o])||(e[n]+=t[o])}),e.setChartSize()}getOptions(){return re(this.userOptions,$r)}reflow(e){var t,n;let r=this,o=r.containerBox,i=r.getContainerBox();null==(t=r.pointer)||delete t.chartPosition,!(null==(n=r.exporting)?void 0:n.isPrinting)&&!r.isResizing&&o&&i.width&&((i.width!==o.width||i.height!==o.height)&&(fe(r.reflowTimeout),r.reflowTimeout=Le(function(){if(r.container){r.setSize(void 0,void 0,!1);let e=r.containerBox;e&&(e.height=r.chartHeight)}},100*!!e)),r.containerBox=i)}setReflow(){let e=this,t=t=>{var n;(null==(n=e.options)?void 0:n.chart.reflow)&&e.hasLoaded&&e.reflow(t)};if("function"==typeof ResizeObserver)new ResizeObserver(t).observe(e.renderTo);else{let e=V(Ar,"resize",t);V(this,"destroy",e)}}setSize(e,t,n){let r=this,o=r.renderer;r.isResizing+=1,Er(n,r);let i=o.globalAnimation;r.oldChartHeight=r.chartHeight,r.oldChartWidth=r.chartWidth,void 0!==e&&(r.options.chart.width=e),void 0!==t&&(r.options.chart.height=t),r.getChartSize();let{chartWidth:a,chartHeight:l,scrollablePixelsX:s=0,scrollablePixelsY:c=0}=r;(r.isDirtyBox||a!==r.oldChartWidth||l!==r.oldChartHeight)&&(r.styledMode||(i?kr:J)(r.container,{width:`${a+s}px`,height:`${l+c}px`},i),r.setChartSize(!0),o.setSize(a,l,i),r.axes.forEach(function(e){e.isDirty=!0,e.setScale()}),r.isDirtyLegend=!0,r.isDirtyBox=!0,r.layOutTitles(),r.getMargins(),r.redraw(i),r.oldChartHeight=void 0,le(r,"resize"),setTimeout(()=>{r&&le(r,"endResize")},Sr(i).duration)),r.isResizing-=1}setChartSize(e){let t,n,r,o,{chartHeight:i,chartWidth:a,inverted:l,spacing:s,renderer:c}=this,u=this.clipOffset,d=Math[l?"floor":"round"];this.plotLeft=t=Math.round(this.plotLeft),this.plotTop=n=Math.round(this.plotTop),this.plotWidth=r=Math.max(0,Math.round(a-t-(this.marginRight??0))),this.plotHeight=o=Math.max(0,Math.round(i-n-(this.marginBottom??0))),this.plotSizeX=l?o:r,this.plotSizeY=l?r:o,this.spacingBox=c.spacingBox={x:s[3],y:s[0],width:a-s[3]-s[1],height:i-s[0]-s[2]},this.plotBox=c.plotBox={x:t,y:n,width:r,height:o},u&&(this.clipBox={x:d(u[3]),y:d(u[0]),width:d(this.plotSizeX-u[1]-u[3]),height:d(this.plotSizeY-u[0]-u[2])}),e||(this.axes.forEach(function(e){e.setAxisSize(),e.setAxisTranslation()}),c.alignElements()),le(this,"afterSetChartSize",{skipAxes:e})}resetMargins(){le(this,"resetMargins");let e=this,t=e.options.chart,n=t.plotBorderWidth||0,r=Math.round(n)/2;["margin","spacing"].forEach(n=>{let r=t[n],o=we(r)?r:[r,r,r,r];["Top","Right","Bottom","Left"].forEach((r,i)=>{e[n][i]=t[`${n}${r}`]??o[i]})}),Ir.forEach((t,n)=>{e[t]=e.margin[n]??e.spacing[n]}),e.axisOffset=[0,0,0,0],e.clipOffset=[r,r,r,r],e.plotBorderWidth=n}drawChartBox(){let e,t,n,r=this.options.chart,o=this.renderer,i=this.chartWidth,a=this.chartHeight,l=this.styledMode,s=this.plotBGImage,c=r.backgroundColor,u=r.plotBackgroundColor,d=r.plotBackgroundImage,h=this.plotLeft,p=this.plotTop,f=this.plotWidth,m=this.plotHeight,g=this.plotBox,y=this.clipRect,v=this.clipBox,b=this.chartBackground,x=this.plotBackground,w=this.plotBorder,C="animate";b||(this.chartBackground=b=o.rect().addClass("highcharts-background").add(),C="attr"),l?e=t=b.strokeWidth():(t=(e=r.borderWidth||0)+8*!!r.shadow,n={fill:c||"none"},(e||b["stroke-width"])&&(n.stroke=r.borderColor,n["stroke-width"]=e),b.attr(n).shadow(r.shadow)),b[C]({x:t/2,y:t/2,width:i-t-e%2,height:a-t-e%2,r:r.borderRadius}),C="animate",x||(C="attr",this.plotBackground=x=o.rect().addClass("highcharts-plot-background").add()),x[C](g),!l&&(x.attr({fill:u||"none"}).shadow(r.plotShadow),d&&(s?(d!==s.attr("href")&&s.attr("href",d),s.animate(g)):this.plotBGImage=o.image(d,h,p,f,m).add())),y?y.animate({width:v.width,height:v.height}):this.clipRect=o.clipRect(v),C="animate",w||(C="attr",this.plotBorder=w=o.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),l||w.attr({stroke:r.plotBorderColor,"stroke-width":r.plotBorderWidth||0,fill:"none"}),w[C](w.crisp(g,-w.strokeWidth())),this.isDirtyBox=!1,le(this,"afterDrawChartBox")}propFromSeries(){let e,t,n,r=this,o=r.options.chart,i=r.options.series;["inverted","angular","polar"].forEach(function(a){for(t=Rr[o.type],n=o[a]||t&&t.prototype[a],e=null==i?void 0:i.length;!n&&e--;)(t=Rr[i[e].type])&&t.prototype[a]&&(n=!0);r[a]=n})}linkSeries(e){let t=this,n=t.series;n.forEach(function(e){e.linkedSeries.length=0}),n.forEach(function(e){let{linkedTo:r}=e.options,o=ve(r)&&(":previous"===r?n[e.index-1]:t.get(r));o&&o.linkedParent!==e&&(o.linkedSeries.push(e),e.linkedParent=o,o.enabledDataSorting&&e.setDataSortingOptions(),e.visible=e.options.visible??o.options.visible??e.visible)}),le(this,"afterLinkSeries",{isUpdating:e})}renderSeries(){this.series.forEach(function(e){e.translate(),e.render()})}render(){var e,t,n;let r,o=this.axes,i=this.colorAxis,a=this.renderer,l=this.options.chart.axisLayoutRuns||2,s=e=>{e.forEach(e=>{e.visible&&e.render()})},c=0,u=!0,d=0;for(let t of(this.setTitle(),le(this,"beforeMargins"),null==(e=this.getStacks)||e.call(this),this.getMargins(!0),this.setChartSize(),o)){let{options:e}=t,{labels:n}=e;if(this.hasCartesianSeries&&t.horiz&&t.visible&&n.enabled&&t.series.length&&"colorAxis"!==t.coll&&!this.polar){c=e.tickLength,t.createGroups();let r=new pn(t,0,"",!0),o=r.createLabel("x",n);if(r.destroy(),o&&Te(n.reserveSpace,!ye(e.crossing))&&(c=o.getBBox().height+n.distance+Math.max(e.offset||0,0)),c){null==o||o.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-c,0);(u||r||l>1)&&d<l;){let e=this.plotWidth,i=this.plotHeight,a=[1.05,1.1];for(let e of o){let o=+(e.horiz||0);if(0===d){e.setScale();let r=null==(n=null==(t=e.tickPositions)?void 0:t.info)?void 0:n.match;r&&(a[o]=Math.min(r,a[o]))}else(o&&u||!o&&r)&&e.setTickInterval(!0)}0===d?this.getAxisMargins():this.getMargins(),u=e/this.plotWidth>(d?1:a[1]),r=i/this.plotHeight>(d?1:a[0]),d++}this.drawChartBox(),this.hasCartesianSeries?s(o):(null==i?void 0:i.length)&&s(i),this.seriesGroup||(this.seriesGroup=a.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(e){var t;let n=this,r=Ce(!0,this.options.credits,e);r.enabled&&!this.credits&&(this.credits=this.renderer.text(r.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(e){le(n,"creditsClick",e,()=>{r.href&&(Ar.location.href=r.href)})}).attr({align:r.position.align,zIndex:8}),(null==(t=r.events)?void 0:t.click)&&V(n,"creditsClick",r.events.click),n.styledMode||this.credits.css(r.style),this.credits.add().align(r.position),this.credits.update=function(e){n.credits=n.credits.destroy(),n.addCredits(e)})}destroy(){var e,t;let n,r=this,o=r.axes,i=r.series,a=r.container,l=null==a?void 0:a.parentNode;for(le(r,"destroy"),r.renderer.forExport?oe(Pr,r):Pr[r.index]=void 0,_.chartCount--,r.renderTo.removeAttribute("data-highcharts-chart"),Oe(r),n=o.length;n--;)o[n]=o[n].destroy();for(null==(t=null==(e=this.scroller)?void 0:e.destroy)||t.call(e),n=i.length;n--;)i[n]=i[n].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(e=>{var t,n;r[e]=null==(n=null==(t=r[e])?void 0:t.destroy)?void 0:n.call(t)}),a&&(a.innerHTML=pt.emptyHTML,Oe(a),l&&ne(a)),Se(r,function(e,t){delete r[t]})}firstRender(){var e;let t=this,n=t.options;t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.createAxes();let r=be(n.series)?n.series:[];n.series=[],r.forEach(function(e){t.initSeries(e)}),t.linkSeries(),t.setSortedData(),le(t,"beforeRender"),t.render(),null==(e=t.pointer)||e.getChartPosition(),t.renderer.asyncCounter||t.hasLoaded||t.onload(),t.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(e){e&&void 0!==this.index&&e.apply(this,[this])},this),le(this,"load"),le(this,"render"),ee(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.warnIfCSSNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:e,title:t}=this;e&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":((null==t?void 0:t.element.textContent)||"").replace(/</g,"<")}),e.accessibility&&!1===e.accessibility.enabled||je('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))}warnIfCSSNotLoaded(){this.styledMode&&"0"!==Ar.getComputedStyle(this.container).zIndex&&je(35,!1,this)}addSeries(e,t,n){let r,o=this;return e&&(t=Te(t,!0),le(o,"addSeries",{options:e},function(){r=o.initSeries(e),o.isDirtyLegend=!0,o.linkSeries(),r.enabledDataSorting&&r.setData(e.data,!1),le(o,"afterAddSeries",{series:r}),t&&o.redraw(n)})),r}addAxis(e,t,n,r){return this.createAxis(t?"xAxis":"yAxis",{axis:e,redraw:n,animation:r})}addColorAxis(e,t,n){return this.createAxis("colorAxis",{axis:e,redraw:t,animation:n})}createAxis(e,t){let n=new wn(this,t.axis,e);return Te(t.redraw,!0)&&this.redraw(t.animation),n}showLoading(e){let t=this,n=t.options,r=n.loading,o=(null==r?void 0:r.style)??{},i=function(){a&&J(a,{left:o.left??t.plotLeft+"px",top:o.top??t.plotTop+"px",width:o.width??t.plotWidth+"px",height:o.height??t.plotHeight+"px"})},a=t.loadingDiv,l=t.loadingSpan;a||(t.loadingDiv=a=Z("div",{className:"highcharts-loading highcharts-loading-hidden"},null,t.container)),l||(t.loadingSpan=l=Z("span",{className:"highcharts-loading-inner"},null,a),V(t,"redraw",i)),a.className="highcharts-loading",pt.setElementHTML(l,Te(e,n.lang.loading,"")),!t.styledMode&&(J(a,ie(o,{zIndex:10})),J(l,(null==r?void 0:r.labelStyle)??{}),t.loadingShown||(J(a,{opacity:0,display:""}),kr(a,{opacity:o.opacity??.5},{duration:(null==r?void 0:r.showDuration)??0}))),t.loadingShown=!0,i()}hideLoading(){var e;let t=this.options,n=this.loadingDiv;n&&(n.className="highcharts-loading highcharts-loading-hidden",this.styledMode||kr(n,{opacity:0},{duration:(null==(e=t.loading)?void 0:e.hideDuration)??100,complete:function(){J(n,{display:"none"})}})),this.loadingShown=!1}update(e,t,n,r){let o,i,a,l=this,s={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},c=e.isResponsiveOptions,u=[];le(l,"update",{options:e}),c||l.setResponsive(!1,!0),e=re(e,l.options),l.userOptions=Ce(l.userOptions,e);let d=e.chart;d&&(Ce(!0,l.options.chart,d),this.setZoomOptions(),"className"in d&&l.setClassName(d.className),("inverted"in d||"polar"in d||"type"in d)&&(l.propFromSeries(),o=!0),"alignTicks"in d&&(o=!0),"events"in d&&Mr(this,d),Se(d,function(e,t){-1!==l.propsRequireUpdateSeries.indexOf("chart."+t)&&(i=!0),-1!==l.propsRequireDirtyBox.indexOf(t)&&(l.isDirtyBox=!0),-1!==l.propsRequireReflow.indexOf(t)&&(l.isDirtyBox=!0,c||(a=!0))}),!l.styledMode&&d.style&&l.renderer.setStyle(l.options.chart.style||{})),!l.styledMode&&e.colors&&(this.options.colors=e.colors),Se(e,function(t,n){l[n]&&"function"==typeof l[n].update?l[n].update(t,!1):"function"==typeof l[s[n]]?l[s[n]](t):"colors"!==n&&-1===l.collectionsWithUpdate.indexOf(n)&&Ce(!0,l.options[n],e[n]),"chart"!==n&&-1!==l.propsRequireUpdateSeries.indexOf(n)&&(i=!0)}),this.collectionsWithUpdate.forEach(t=>{e[t]&&(Ae(e[t]).forEach((e,r)=>{let o;if(!e)return;let i=ee(e.id);i&&(o=l.get(e.id)),!o&&l[t]&&(o=l[t][Te(e.index,r)])&&(i&&ee(o.options.id)||o.options.isInternal)&&(o=void 0),o&&o.coll===t&&(o.update(e,!1),n&&(o.touched=!0)),!o&&n&&l.collectionsWithInit[t]&&(l.collectionsWithInit[t][0].apply(l,[e].concat(l.collectionsWithInit[t][1]||[]).concat([!1])).touched=!0)}),n&&l[t].forEach(e=>{e.touched||e.options.isInternal?delete e.touched:u.push(e)}))}),u.forEach(e=>{e.chart&&e.remove&&e.remove(!1)}),o&&l.axes.forEach(function(e){e.update({},!1)}),i&&l.getSeriesOrderByLinks().forEach(function(e){e.chart&&e.update({},!1)},this);let h=null==d?void 0:d.width,p=d&&(ve(d.height)?Ne(d.height,h||l.chartWidth):d.height);a||ye(h)&&h!==l.chartWidth||ye(p)&&p!==l.chartHeight?l.setSize(h,p,r):Te(t,!0)&&l.redraw(r),le(l,"afterUpdate",{options:e,redraw:t,animation:r})}setSubtitle(e,t){this.applyDescription("subtitle",e),this.layOutTitles(t)}setCaption(e,t){this.applyDescription("caption",e),this.layOutTitles(t)}showResetZoom(){let e=this,t=$r.lang,n=e.zooming.resetButton,r=n.theme,o="chart"===n.relativeTo||"spacingBox"===n.relativeTo?null:"plotBox";function i(){e.zoomOut()}le(this,"beforeShowResetZoom",null,function(){e.resetZoomButton=e.renderer.button(t.resetZoom,null,null,i,r).attr({align:n.position.align,title:t.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(n.position,!1,o)}),le(this,"afterShowResetZoom")}zoomOut(){le(this,"selection",{resetSelection:!0},()=>this.transform({reset:!0,trigger:"zoom"}))}pan(e,t){let n=this,r="object"==typeof t?t:{enabled:t,type:"x"},o=r.type,i=o&&n[{x:"xAxis",xy:"axes",y:"yAxis"}[o]].filter(e=>e.options.panningEnabled&&!e.options.isInternal),a=n.options.chart;(null==a?void 0:a.panning)&&(a.panning=r),le(this,"pan",{originalEvent:e},()=>{n.transform({axes:i,event:e,to:{x:e.chartX-(n.mouseDownX||0),y:e.chartY-(n.mouseDownY||0)},trigger:"pan"}),J(n.container,{cursor:"move"})})}transform(e){var t;let{axes:n=this.axes,event:r,from:o={},reset:i,selection:a,to:l={},trigger:s,allowResetButton:c=!0}=e,{inverted:u,time:d}=this;null==(t=this.hoverPoints)||t.forEach(e=>e.setState()),le(this,"transform",e);let h,p,f=e.hasZoomed||!1;for(let e of n){let{horiz:t,len:n,minPointOffset:m=0,options:g,reversed:y}=e,v=t?"width":"height",b=t?"x":"y",x=Te(l[v],e.len),w=Te(o[v],e.len),C=10>Math.abs(x)?1:x/w,k=(o[b]||0)+w/2-e.pos,S=k-((l[b]??e.pos)+x/2-e.pos)/C,E=y&&!u||!y&&u?-1:1;if(!i&&(k<0||k>e.len))continue;let $=e.chart.polar||e.isOrdinal?0:m*E||0,T=e.toValue(S,!0),M=e.toValue(S+n/C,!0),P=T+$,N=M-$,I=e.allExtremes;if(a&&a[e.coll].push({axis:e,min:Math.min(T,M),max:Math.max(T,M)}),P>N&&([P,N]=[N,P]),1===C&&!i&&"yAxis"===e.coll&&!I){for(let t of e.series){let e=t.getExtremes(t.getProcessedData(!0).modified.getColumn(t.pointValKey||"y")||[],!0);I??(I={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),ye(e.dataMin)&&ye(e.dataMax)&&(I.dataMin=Math.min(e.dataMin,I.dataMin),I.dataMax=Math.max(e.dataMax,I.dataMax))}e.allExtremes=I}let{dataMin:O,dataMax:A,min:R,max:L}=ie(e.getExtremes(),I||{}),B=d.parse(g.min),z=d.parse(g.max),D=O??B,j=A??z,F=N-P,H=e.categories?0:Math.min(F,j-D),_=D-H*(ee(B)?0:g.minPadding),W=j+H*(ee(z)?0:g.maxPadding),K=e.allowZoomOutside||1===C||"zoom"!==s&&C>1,V=Math.min(B??_,_,K?R:_),G=Math.max(z??W,W,K?L:W);(!e.isOrdinal||1!==C||i)&&(P<V&&(P=V,C>=1&&(N=P+F)),N>G&&(N=G,C>=1&&(P=N-F)),(i||e.series.length&&(P!==R||N!==L)&&P>=V&&N<=G)&&(a?a[e.coll].push({axis:e,min:P,max:N}):(e.isPanning="zoom"!==s,e.isPanning&&"mousewheel"!==s&&(p=!0),e.setExtremes(i?void 0:P,i?void 0:N,!1,!1,{move:S,trigger:s,scale:C}),!i&&(P>V||N<G)&&(h=c)),f=!0),this.hasCartesianSeries||i||(h=c),r&&(this[t?"mouseDownX":"mouseDownY"]=r[t?"chartX":"chartY"]))}return f&&(a?le(this,"selection",a,()=>{delete e.selection,e.trigger="zoom",this.transform(e)}):(!h||p||this.resetZoomButton?!h&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw("zoom"===s&&(this.options.chart.animation??this.pointCount<100)))),f}}ie(Lr.prototype,{callbacks:[],collectionsWithInit:{xAxis:[Lr.prototype.addAxis,[!0]],yAxis:[Lr.prototype.addAxis,[!1]],series:[Lr.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]});let{stop:Br}=lt,{composed:zr}=_;function Dr(){let e=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!e&&(this.scrollablePlotArea=e=new Fr(this)),null==e||e.applyFixed()}function jr(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}class Fr{static compose(e,t,n){Pe(zr,this.compose)&&(V(e,"afterInit",jr),V(t,"afterSetChartSize",e=>this.afterSetSize(e.target,e)),V(t,"render",Dr),V(n,"show",jr))}static afterSetSize(e,t){let n,r,o,{minWidth:i,minHeight:a}=e.options.chart.scrollablePlotArea||{},{clipBox:l,plotBox:s,inverted:c,renderer:u}=e;if(!u.forExport)if(i?(e.scrollablePixelsX=n=Math.max(0,i-e.chartWidth),n&&(e.scrollablePlotBox=Ce(e.plotBox),s.width=e.plotWidth+=n,l[c?"height":"width"]+=n,o=!0)):a&&(e.scrollablePixelsY=r=Math.max(0,a-e.chartHeight),ee(r)&&(e.scrollablePlotBox=Ce(e.plotBox),s.height=e.plotHeight+=r,l[c?"width":"height"]+=r,o=!1)),ee(o)){if(!t.skipAxes)for(let t of e.axes)(t.horiz===o||e.hasParallelCoordinates&&"yAxis"===t.coll)&&(t.setAxisSize(),t.setAxisTranslation())}else delete e.scrollablePlotBox}constructor(e){var t;let n;const r=e.options.chart,o=Ct.getRendererType(),i=r.scrollablePlotArea||{},a=this.moveFixedElements.bind(this),l={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};e.scrollablePixelsX&&(l.overflowX="auto"),e.scrollablePixelsY&&(l.overflowY="auto"),this.chart=e;const s=this.parentDiv=Z("div",{className:"highcharts-scrolling-parent"},{position:"relative"},e.renderTo),c=this.scrollingContainer=Z("div",{className:"highcharts-scrolling"},l,s),u=this.innerContainer=Z("div",{className:"highcharts-inner-container"},void 0,c),d=this.fixedDiv=Z("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:((null==(t=r.style)?void 0:t.zIndex)||0)+2,top:0},void 0,!0),h=this.fixedRenderer=new o(d,e.chartWidth,e.chartHeight,r.style);this.mask=h.path().attr({fill:r.backgroundColor||"#fff","fill-opacity":i.opacity??.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),c.parentNode.insertBefore(d,c),J(e.renderTo,{overflow:"visible"}),V(e,"afterShowResetZoom",a),V(e,"afterApplyDrilldown",a),V(e,"afterLayOutTitles",a),V(c,"scroll",()=>{let{pointer:t,hoverPoint:r}=e;t&&(delete t.chartPosition,r&&(n=r),t.runPointActions(void 0,n,!0))}),u.appendChild(e.container)}applyFixed(){var e;let{chart:t,fixedRenderer:n,isDirty:r,scrollingContainer:o}=this,{axisOffset:i,chartWidth:a,chartHeight:l,container:s,plotHeight:c,plotLeft:u,plotTop:d,plotWidth:h,scrollablePixelsX:p=0,scrollablePixelsY:f=0}=t,{scrollPositionX:m=0,scrollPositionY:g=0}=t.options.chart.scrollablePlotArea||{},y=a+p,v=l+f;n.setSize(a,l),(r??!0)&&(this.isDirty=!1,this.moveFixedElements()),Br(t.container),J(s,{width:`${y}px`,height:`${v}px`}),t.renderer.boxWrapper.attr({width:y,height:v,viewBox:["0 0",y,v].join(" ")}),null==(e=t.chartBackground)||e.attr({width:y,height:v}),J(o,{width:`${a}px`,height:`${l}px`}),ee(r)||(o.scrollLeft=p*m,o.scrollTop=f*g);let b=d-i[0]-1,x=u-i[3]-1,w=d+c+i[2]+1,C=u+h+i[1]+1,k=u+h-p,S=d+c-f,E=[["M",0,0]];p?E=[["M",0,b],["L",u-1,b],["L",u-1,w],["L",0,w],["Z"],["M",k,b],["L",a,b],["L",a,w],["L",k,w],["Z"]]:f&&(E=[["M",x,0],["L",x,d-1],["L",C,d-1],["L",C,0],["Z"],["M",x,S],["L",x,l],["L",C,l],["L",C,S],["Z"]]),"adjustHeight"!==t.redrawTrigger&&this.mask.attr({d:E})}moveFixedElements(){let e,{container:t,inverted:n,scrollablePixelsX:r,scrollablePixelsY:o}=this.chart,i=this.fixedRenderer,a=Fr.fixedSelectors.slice();if(r&&!n?e=".highcharts-yaxis":r&&n||o&&!n?e=".highcharts-xaxis":o&&n&&(e=".highcharts-yaxis"),!e||this.chart.hasParallelCoordinates&&".highcharts-yaxis"===e)for(let e of[".highcharts-xaxis",".highcharts-yaxis"])for(let t of[`${e}:not(.highcharts-radial-axis)`,`${e}-labels:not(.highcharts-radial-axis-labels)`])oe(a,t);else for(let t of[`${e}:not(.highcharts-radial-axis)`,`${e}-labels:not(.highcharts-radial-axis-labels)`])Pe(a,t);for(let e of a)[].forEach.call(t.querySelectorAll(e),e=>{(e.namespaceURI===i.SVG_NS?i.box:i.box.parentNode).appendChild(e),e.style.pointerEvents="auto"})}}Fr.fixedSelectors=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-caption",".highcharts-credits",".highcharts-drillup-button",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-range-selector-group",".highcharts-reset-zoom",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"];let{format:Hr}=wt,{series:_r}=rr,Wr=class{constructor(e,t,n,r,o){const i=e.chart.inverted,a=e.reversed;this.axis=e;const l=this.isNegative=!!n!=!!a;this.options=t=t||{},this.x=r,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=o,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:t.align||(i?l?"left":"right":"center"),verticalAlign:t.verticalAlign||(i?"middle":l?"bottom":"top"),y:t.y,x:t.x},this.textAlign=t.textAlign||(i?l?"right":"left":"center")}destroy(){te(this,this.axis)}render(e){var t;let n=this.axis.chart,r=this.options,o=r.format,i=(o?Hr(o,this,n):null==(t=r.formatter)?void 0:t.call(this,this))||"";if(this.label)this.label.attr({text:i,visibility:"hidden"});else{this.label=n.renderer.label(i,null,void 0,r.shape,void 0,void 0,r.useHTML,!1,"stack-labels");let t={r:r.borderRadius||0,text:i,padding:Te(r.padding,5),visibility:"hidden"};n.styledMode||(t.fill=r.backgroundColor,t.stroke=r.borderColor,t["stroke-width"]=r.borderWidth,this.label.css(r.style||{})),this.label.attr(t),this.label.added||this.label.add(e)}this.label.labelrank=n.plotSizeY,le(this,"afterRender")}setOffset(e,t,n,r,o,i){let{alignOptions:a,axis:l,label:s,options:c,textAlign:u}=this,d=l.chart,h=this.getStackBox({xOffset:e,width:t,boxBottom:n,boxTop:r,defaultX:o,xAxis:i}),{verticalAlign:p}=a;if(s&&h){let e,t=s.getBBox(void 0,0),n=s.padding,r="justify"===Te(c.overflow,"justify");a.x=c.x||0,a.y=c.y||0;let{x:o,y:i}=this.adjustStackPosition({labelBox:t,verticalAlign:p,textAlign:u});h.x-=o,h.y-=i,s.align(a,!1,h),(e=d.isInsidePlot(s.alignAttr.x+a.x+o,s.alignAttr.y+a.y+i))||(r=!1),r&&_r.prototype.justifyDataLabel.call(l,s,a,s.alignAttr,t,h),s.attr({x:s.alignAttr.x,y:s.alignAttr.y,rotation:c.rotation,rotationOriginX:t.width*se(c.textAlign||"center"),rotationOriginY:t.height/2}),Te(!r&&c.crop,!0)&&(e=ye(s.x)&&ye(s.y)&&d.isInsidePlot(s.x-n+(s.width||0),s.y)&&d.isInsidePlot(s.x+n,s.y)),s[e?"show":"hide"]()}le(this,"afterSetOffset",{xOffset:e,width:t})}adjustStackPosition({labelBox:e,verticalAlign:t,textAlign:n}){return{x:e.width/2+e.width/2*(2*se(n)-1),y:e.height/2*2*(1-se(t))}}getStackBox(e){let t=this.axis,n=t.chart,{boxTop:r,defaultX:o,xOffset:i,width:a,boxBottom:l}=e,s=t.stacking.usePercentage?100:Te(r,this.total,0),c=t.toPixels(s),u=e.xAxis||n.xAxis[0],d=Te(o,u.translate(this.x))+i,h=Math.abs(c-t.toPixels(l||ye(t.min)&&t.logarithmic&&t.logarithmic.lin2log(t.min)||0)),p=n.inverted,f=this.isNegative;return p?{x:(f?c:c-h)-n.plotLeft,y:u.height-d-a+u.top-n.plotTop,width:h,height:a}:{x:d+u.transB-n.plotLeft,y:(f?c-h:c)-n.plotTop,width:a,height:h}}},{getDeferredAnimation:Kr}=lt,{series:{prototype:Vr}}=rr;function Gr(){let e=this.inverted;this.axes.forEach(e=>{var t;(null==(t=e.stacking)?void 0:t.stacks)&&e.hasVisibleSeries&&(e.stacking.oldStacks=e.stacking.stacks)}),this.series.forEach(t=>{var n;let r=(null==(n=t.xAxis)?void 0:n.options)||{};t.options.stacking&&t.reserveSpace()&&(t.stackKey=[t.type,Te(t.options.stack,""),e?r.top:r.left,e?r.height:r.width].join(","))})}function qr(){var e;let t=this.stacking;if(t){let n=t.stacks;Se(n,(e,t)=>{te(e),delete n[t]}),null==(e=t.stackTotalGroup)||e.destroy()}}function Xr(){this.stacking||(this.stacking=new eo(this))}function Ur(e,t,n,r){return!ee(e)||e.x!==t||r&&e.stackKey!==r?e={x:t,index:0,key:r,stackKey:r}:e.index++,e.key=[n,t,e.index].join(","),e}function Yr(){let e,t=this,n=t.yAxis,r=t.stackKey||"",o=n.stacking.stacks,i=t.getColumn("x",!0),a=t.options.stacking,l=t[a+"Stacker"];l&&[r,"-"+r].forEach(n=>{var r;let a,s,c,u=i.length;for(;u--;)a=i[u],e=t.getStackIndicator(e,a,t.index,n),s=null==(r=o[n])?void 0:r[a],(c=null==s?void 0:s.points[e.key||""])&&l.call(t,c,s,u)})}function Zr(e,t,n){let r=t.total?100/t.total:0;e[0]=Y(e[0]*r),e[1]=Y(e[1]*r),this.stackedYData[n]=e[1]}function Qr(e){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&this.chart.series.length>1?Vr.setStackedPoints.call(this,e,"group"):e.stacking.resetStacks())}function Jr(e,t){var n,r;let o,i,a,l,s,c,u,d=t||this.options.stacking;if(!d||!this.reserveSpace()||({group:"xAxis"}[d]||"yAxis")!==e.coll)return;let h=this.getColumn("x",!0),p=this.getColumn(this.pointValKey||"y",!0),f=[],m=p.length,g=this.options,y=g.threshold||0,v=g.startFromThreshold?y:0,b=g.stack,x=t?`${this.type},${d}`:this.stackKey||"",w="-"+x,C=this.negStacks,k=e.stacking,S=k.stacks,E=k.oldStacks;for(k.stacksTouched+=1,u=0;u<m;u++){let t=h[u]||0,m=p[u],g=ye(m)&&m||0;c=(o=this.getStackIndicator(o,t,this.index)).key||"",S[s=(i=C&&g<(v?0:y))?w:x]||(S[s]={}),S[s][t]||((null==(n=E[s])?void 0:n[t])?(S[s][t]=E[s][t],S[s][t].total=null):S[s][t]=new Wr(e,e.options.stackLabels,!!i,t,b)),a=S[s][t],null!==m?(a.points[c]=a.points[this.index]=[Te(a.cumulative,v)],ee(a.cumulative)||(a.base=c),a.touched=k.stacksTouched,o.index>0&&!1===this.singleStacks&&(a.points[c][0]=a.points[this.index+","+t+",0"][0])):(delete a.points[c],delete a.points[this.index]);let $=a.total||0;"percent"===d?(l=i?x:w,$=C&&(null==(r=S[l])?void 0:r[t])?(l=S[l][t]).total=Math.max(l.total||0,$)+Math.abs(g):Y($+Math.abs(g))):"group"===d?ye(m)&&$++:$=Y($+g),a.cumulative="group"===d?($||1)-1:Y(Te(a.cumulative,v)+g),a.total=$,null!==m&&(a.points[c].push(a.cumulative),f[u]=a.cumulative,a.hasValidPoints=!0)}"percent"===d&&(k.usePercentage=!0),"group"!==d&&(this.stackedYData=f),k.oldStacks={}}class eo{constructor(e){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=e}buildStacks(){let e,t,n=this.axis,r=n.series,o="xAxis"===n.coll,i=n.options.reversedStacks,a=r.length;for(this.resetStacks(),this.usePercentage=!1,t=a;t--;)e=r[i?t:a-t-1],o&&e.setGroupedPoints(n),e.setStackedPoints(n);if(!o)for(t=0;t<a;t++)r[t].modifyStacks();le(n,"afterBuildStacks")}cleanStacks(){this.oldStacks&&(this.stacks=this.oldStacks,Se(this.stacks,e=>{Se(e,e=>{e.cumulative=e.total})}))}resetStacks(){Se(this.stacks,e=>{Se(e,(t,n)=>{ye(t.touched)&&t.touched<this.stacksTouched?(t.destroy(),delete e[n]):(t.total=null,t.cumulative=null)})})}renderStackTotals(){var e;let t=this.axis,n=t.chart,r=n.renderer,o=this.stacks,i=Kr(n,(null==(e=t.options.stackLabels)?void 0:e.animation)||!1),a=this.stackTotalGroup=this.stackTotalGroup||r.g("stack-labels").attr({zIndex:6,opacity:0}).add();a.translate(n.plotLeft,n.plotTop),Se(o,e=>{Se(e,e=>{e.render(a)})}),a.animate({opacity:1},i)}}(A||(A={})).compose=function(e,t,n){let r=t.prototype,o=n.prototype;r.getStacks||(V(e,"init",Xr),V(e,"destroy",qr),r.getStacks=Gr,o.getStackIndicator=Ur,o.modifyStacks=Yr,o.percentStacker=Zr,o.setGroupedPoints=Qr,o.setStackedPoints=Jr)};let to=A;class no extends pr{drawGraph(){let e=this.options,t=(this.gappedPath||this.getGraphPath).call(this),n=this.chart.styledMode;[this,...this.zones].forEach((r,o)=>{let i,a=r.graph,l=a?"animate":"attr",s=r.dashStyle||e.dashStyle;if(a?(a.endX=this.preventGraphAnimation?null:t.xMap,a.animate({d:t})):t.length&&(r.graph=a=this.chart.renderer.path(t).addClass("highcharts-graph"+(o?` highcharts-zone-graph-${o-1} `:" ")+(o&&r.className||"")).attr({zIndex:1}).add(this.group)),a&&!n&&(i={stroke:!o&&e.lineColor||r.color||this.color||"#cccccc","stroke-width":e.lineWidth||0,fill:this.fillGraph&&this.color||"none"},s?i.dashstyle=s:"square"!==e.linecap&&(i["stroke-linecap"]=i["stroke-linejoin"]="round"),a[l](i),e.shadow)){let t=this.chart.inverted,n={filterUnits:"userSpaceOnUse"},r=we(e.shadow)?Ce(t?{}:n,e.shadow):!!t||n;a.shadow(r)}a&&(a.startX=t.xMap,a.isArea=t.isArea)})}getGraphPath(e,t,n){let r,o=this,i=o.options,a=[],l=[],s=i.step,c=(e=e||o.points).reversed;return c&&e.reverse(),(s={right:1,center:2}[s]||s&&3)&&c&&(s=4-s),(e=this.getValidPoints(e,!1,i.nullInteraction||!(i.connectNulls&&!t&&!n))).forEach(function(c,u){let d,h=c.plotX,p=c.plotY,f=e[u-1],m=c.isNull||"number"!=typeof p;(c.leftCliff||(null==f?void 0:f.rightCliff))&&!n&&(r=!0),m&&!ee(t)&&u>0?r=!i.connectNulls:m&&!t?r=!0:(0===u||r?d=[["M",c.plotX,c.plotY]]:o.getPointSpline?d=[o.getPointSpline(e,c,u)]:s?(d=1===s?[["L",f.plotX,p]]:2===s?[["L",(f.plotX+h)/2,f.plotY],["L",(f.plotX+h)/2,p]]:[["L",h,f.plotY]]).push(["L",h,p]):d=[["L",h,p]],l.push(c.x),s&&(l.push(c.x),2===s&&l.push(c.x)),a.push.apply(a,d),r=!1)}),a.xMap=l,o.graphPath=a,a}}no.defaultOptions=Ce(pr.defaultOptions,{legendSymbol:"lineMarker"}),rr.registerSeriesType("line",no);let{seriesTypes:{line:ro}}=rr;class oo extends ro{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:e,options:t}=this;[this,...this.zones].forEach((n,r)=>{let o={},i=n.fillColor||t.fillColor,a=n.area,l=a?"animate":"attr";a?(a.endX=this.preventGraphAnimation?null:e.xMap,a.animate({d:e})):(o.zIndex=0,(a=n.area=this.chart.renderer.path(e).addClass("highcharts-area"+(r?` highcharts-zone-area-${r-1} `:" ")+(r&&n.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(o.fill=i||n.color||this.color,o["fill-opacity"]=i?1:t.fillOpacity??.75,a.css({pointerEvents:this.stickyTracking?"none":"auto"})),a[l](o),a.startX=e.xMap,a.shiftUnit=t.step?2:1})}getGraphPath(e){let t,n,r,o=ro.prototype.getGraphPath,i=this.options,a=i.stacking,l=this.yAxis,s=[],c=[],u=this.index,d=l.stacking.stacks[this.stackKey],h=i.threshold,p=Math.round(l.getThreshold(i.threshold)),f=Te(i.connectNulls,"percent"===a),m=function(n,r,o){let i,f,m=e[n],g=e[r],y=a&&d[m.x].points[u],v=m[o+"Null"]||0,b=m[o+"Cliff"]||0,x=!0;y&&(b||v)?(i=(v?y[0]:y[1])+b,f=y[0]+b,x=!!v):!a&&g&&(g.isNull||!ee(g.plotY))&&(i=f=h),void 0!==i&&(c.push({plotX:t,plotY:null===i?p:l.getThreshold(i),isNull:x,isCliff:!0}),s.push({plotX:t,plotY:null===f?p:l.getThreshold(f),doCurve:!1}))};e=e||this.points,a&&(e=this.getStackPoints(e));for(let o=0,i=e.length;o<i;++o)a||(e[o].leftCliff=e[o].rightCliff=e[o].leftNull=e[o].rightNull=void 0),n=e[o].isNull||!ee(e[o].plotY),t=Te(e[o].rectPlotX,e[o].plotX),r=a?Te(e[o].yBottom,p):p,(!n||f)&&(f||m(o,o-1,"left"),n&&!a&&f||(c.push(e[o]),s.push({x:o,plotX:t,plotY:r})),f||m(o,o+1,"right"));let g=o.call(this,c,!0,!0);s.reversed=!0;let y=o.call(this,s,!0,!0),v=y[0];v&&"M"===v[0]&&(y[0]=["L",v[1],v[2]]);let b=g.concat(y);b.length&&b.push(["Z"]);let x=o.call(this,c,!1,f);return this.chart.series.length>1&&a&&c.some(e=>e.isCliff)&&(b.hasStackedCliffs=x.hasStackedCliffs=!0),b.xMap=g.xMap,this.areaPath=b,x}getStackPoints(e){let t=this,n=[],r=[],o=this.xAxis,i=this.yAxis,a=i.stacking.stacks[this.stackKey],l={},s=i.series,c=s.length,u=i.options.reversedStacks?1:-1,d=s.indexOf(t),h=i.getThreshold(t.options.threshold||0);if(e=e||this.points,this.options.stacking){for(let t=0;t<e.length;t++)e[t].leftNull=e[t].rightNull=void 0,l[e[t].x]=e[t];Se(a,function(e,t){null!==e.total&&r.push(t)}),r.sort(function(e,t){return e-t});let p=s.map(e=>e.visible);r.forEach(function(e,f){let m,g,y=0;if(l[e]&&!l[e].isNull)n.push(l[e]),[-1,1].forEach(function(n){let o=1===n?"rightNull":"leftNull",i=a[r[f+n]],h=0;if(i){let n=d;for(;n>=0&&n<c;){let r=s[n].index;!(m=i.points[r])&&(r===t.index?l[e][o]=!0:p[n]&&(g=a[e].points[r])&&(h-=g[1]-g[0])),n+=u}}l[e][1===n?"rightCliff":"leftCliff"]=h});else{let t=d;for(;t>=0&&t<c;){let n=s[t].index;if(m=a[e].points[n]){y=m[1];break}t+=u}y||(y=0);let r=i.positiveValuesOnly&&y<=0?h:i.translate(y,!1,!0,!1,!0);n.push({isNull:!0,plotX:o.translate(e,!1,!1,!1,!0),x:e,plotY:r,yBottom:r})}})}return n}}oo.defaultOptions=Ce(ro.defaultOptions,{threshold:0,legendSymbol:"areaMarker"}),ie(oo.prototype,{singleStacks:!1}),rr.registerSeriesType("area",oo);let{line:io}=rr.seriesTypes;class ao extends io{getPointSpline(e,t,n){let r,o,i,a,l=t.plotX||0,s=t.plotY||0,c=e[n-1],u=e[n+1];function d(e){return e&&!e.isNull&&!1!==e.doCurve&&!t.isCliff}if(d(c)&&d(u)){let e=c.plotX||0,n=c.plotY||0,d=u.plotX||0,h=u.plotY||0,p=0;r=(1.5*l+e)/2.5,o=(1.5*s+n)/2.5,i=(1.5*l+d)/2.5,a=(1.5*s+h)/2.5,i!==r&&(p=(a-o)*(i-l)/(i-r)+s-a),o+=p,a+=p,o>n&&o>s?(o=Math.max(n,s),a=2*s-o):o<n&&o<s&&(o=Math.min(n,s),a=2*s-o),a>h&&a>s?(a=Math.max(h,s),o=2*s-a):a<h&&a<s&&(a=Math.min(h,s),o=2*s-a),t.rightContX=i,t.rightContY=a,t.controlPoints={low:[r,o],high:[i,a]}}let h=["C",Te(c.rightContX,c.plotX,0),Te(c.rightContY,c.plotY,0),Te(r,l,0),Te(o,s,0),l,s];return c.rightContX=c.rightContY=void 0,h}}ao.defaultOptions=Ce(io.defaultOptions),rr.registerSeriesType("spline",ao);let lo=ao,{area:so,area:{prototype:co}}=rr.seriesTypes;class uo extends lo{}uo.defaultOptions=Ce(lo.defaultOptions,so.defaultOptions),ie(uo.prototype,{getGraphPath:co.getGraphPath,getStackPoints:co.getStackPoints,drawGraph:co.drawGraph}),rr.registerSeriesType("areaspline",uo);let{animObject:ho}=lt,{parse:po}=tt,{noop:fo}=_;class mo extends pr{animate(e){let t,n,r=this,o=this.yAxis,i=o.pos,a=o.reversed,l=r.options,{clipOffset:s,inverted:c}=this.chart,u={},d=c?"translateX":"translateY";e&&s?(u.scaleY=.001,n=U(o.toPixels(l.threshold||0),i,i+o.len),c?u.translateX=(n+=a?-Math.floor(s[0]):Math.ceil(s[2]))-o.len:u.translateY=n+=a?Math.ceil(s[0]):-Math.floor(s[2]),r.clipBox&&r.setClip(),r.group.attr(u)):(t=Number(r.group.attr(d)),r.group.animate({scaleY:1},ie(ho(r.options.animation),{step:function(e,n){r.group&&(u[d]=t+n.pos*(i-t),r.group.attr(u))}})))}init(e,t){super.init.apply(this,arguments);let n=this;(e=n.chart).hasRendered&&e.series.forEach(function(e){e.type===n.type&&(e.isDirty=!0)})}getColumnMetrics(){var e,t;let n,r=this,o=r.options,i=r.xAxis,a=r.yAxis,l=i.options.reversedStacks,s=i.reversed&&!l||!i.reversed&&l,c={},u=0;!1===o.grouping?u=1:r.chart.series.forEach(function(e){let t,o=e.yAxis,i=e.options;e.type===r.type&&e.reserveSpace()&&a.len===o.len&&a.pos===o.pos&&(i.stacking&&"group"!==i.stacking?(void 0===c[n=e.stackKey]&&(c[n]=u++),t=c[n]):!1!==i.grouping&&(t=u++),e.columnIndex=t)});let d=Math.min(Math.abs(i.transA)*(!(null==(e=i.brokenAxis)?void 0:e.hasBreaks)&&(null==(t=i.ordinal)?void 0:t.slope)||o.pointRange||i.closestPointRange||i.tickInterval||1),i.len),h=d*o.groupPadding,p=(d-2*h)/(u||1),f=Math.min(o.maxPointWidth||i.len,Te(o.pointWidth,p*(1-2*o.pointPadding))),m=(r.columnIndex||0)+ +!!s;return r.columnMetrics={width:f,offset:(p-f)/2+(h+m*p-d/2)*(s?-1:1),paddedWidth:p,columnCount:u},r.columnMetrics}crispCol(e,t,n,r){let o=this.borderWidth,i=this.chart.inverted;return r=Q(t+r,o,i)-(t=Q(t,o,i)),this.options.crisp&&(n=Q(e+n,o)-(e=Q(e,o))),{x:e,y:t,width:n,height:r}}adjustForMissingColumns(e,t,n,r){var o;if(!n.isNull&&r.columnCount>1){let i=this.xAxis.series.filter(e=>e.visible).map(e=>e.index),a=0,l=0;Se(null==(o=this.xAxis.stacking)?void 0:o.stacks,e=>{var t;let r="number"==typeof n.x?null==(t=e[n.x.toString()])?void 0:t.points:void 0,o=null==r?void 0:r[this.index],s={};if(r&&be(o)){let e=this.index,t=Object.keys(r).filter(e=>!e.match(",")&&r[e]&&r[e].length>1).map(parseFloat).filter(e=>-1!==i.indexOf(e)).filter(t=>{let n=this.chart.series[t].options,r=n.stacking&&n.stack;if(ee(r)){if(ye(s[r]))return e===t&&(e=s[r]),!1;s[r]=t}return!0}).sort((e,t)=>t-e);a=t.indexOf(e),l=t.length}}),a=this.xAxis.reversed?l-1-a:a;let s=(l-1)*r.paddedWidth+t;e=(n.plotX||0)+s/2-t-a*r.paddedWidth}return e}translate(){let e=this,t=e.chart,n=e.options,r=e.dense=e.closestPointRange*e.xAxis.transA<2,o=e.borderWidth=n.borderWidth??+!r,i=e.xAxis,a=e.yAxis,l=n.threshold,s=n.minPointLength??5,c=e.getColumnMetrics(),u=c.width,d=e.pointXOffset=c.offset,h=e.dataMin,p=e.dataMax,f=e.translatedThreshold=a.getThreshold(l),m=e.barW=Math.max(u,1+2*o);n.pointPadding&&n.crisp&&(m=Math.ceil(m)),pr.prototype.translate.apply(e),e.points.forEach(function(r){let o,g=r.yBottom??f,y=999+Math.abs(g),v=r.plotX||0,b=U(r.plotY,-y,a.len+y),x=Math.min(b,g),w=Math.max(b,g)-x,C=u,k=v+d,S=m;s&&Math.abs(w)<s&&(w=s,o=!a.reversed&&!r.negative||a.reversed&&r.negative,ye(l)&&ye(p)&&r.y===l&&p<=l&&(a.min||0)<l&&(h!==p||(a.max||0)<=l)&&(o=!o,r.negative=!r.negative),x=Math.abs(x-f)>s?g-(o?s:0):f-(o?s:0)),ee(r.options.pointWidth)&&(k-=Math.round(((C=S=Math.ceil(r.options.pointWidth))-u)/2)),n.centerInCategory&&(k=e.adjustForMissingColumns(k,C,r,c)),r.barX=k,r.pointWidth=C,r.tooltipPos=t.inverted?[U(a.len+a.pos-t.plotLeft-b,a.pos-t.plotLeft,a.len+a.pos-t.plotLeft),i.len+i.pos-t.plotTop-k-S/2,w]:[i.left-t.plotLeft+k+S/2,U(b+a.pos-t.plotTop,a.pos-t.plotTop,a.len+a.pos-t.plotTop),w],r.shapeType=e.pointClass.prototype.shapeType||"roundedRect",r.shapeArgs=e.crispCol(k,x,S,r.isNull?0:w)}),le(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(e,t){var n;let r,o,i,a=this.options,l=this.pointAttrToOptions||{},s=l.stroke||"borderColor",c=l["stroke-width"]||"borderWidth",u=e&&e.color||this.color,d=e&&e[s]||a[s]||u,h=e&&e.options.dashStyle||a.dashStyle,p=e&&e[c]||a[c]||this[c]||0,f=(null==e?void 0:e.isNull)&&a.nullInteraction?0:(null==e?void 0:e.opacity)??a.opacity??1;e&&this.zones.length&&(o=e.getZone(),u=e.options.color||o&&(o.color||e.nonZonedColor)||this.color,o&&(d=o.borderColor||d,h=o.dashStyle||h,p=o.borderWidth||p)),t&&e&&(i=(r=Ce(a.states[t],(null==(n=e.options.states)?void 0:n[t])||{})).brightness,u=r.color||void 0!==i&&po(u).brighten(r.brightness).get()||u,d=r[s]||d,p=r[c]||p,h=r.dashStyle||h,f=Te(r.opacity,f));let m={fill:u,stroke:d,"stroke-width":p,opacity:f};return h&&(m.dashstyle=h),m}drawPoints(e=this.points){let t,n=this,r=this.chart,o=n.options,i=o.nullInteraction,a=r.renderer,l=o.animationLimit||250;e.forEach(function(e){let s=e.plotY,c=e.graphic,u=!!c,d=c&&r.pointCount<l?"animate":"attr";ye(s)&&(null!==e.y||i)?(t=e.shapeArgs,c&&e.hasNewShapeType()&&(c=c.destroy()),n.enabledDataSorting&&(e.startXPos=n.xAxis.reversed?-(t&&t.width||0):n.xAxis.width),!c&&(e.graphic=c=a[e.shapeType](t).add(e.group||n.group),c&&n.enabledDataSorting&&r.hasRendered&&r.pointCount<l&&(c.attr({x:e.startXPos}),u=!0,d="animate")),c&&u&&c[d](Ce(t)),r.styledMode||c[d](n.pointAttribs(e,e.selected&&"select")).shadow(!1!==e.allowShadow&&o.shadow),c&&(c.addClass(e.getClassName(),!0),c.attr({visibility:e.visible?"inherit":"hidden"}))):c&&(e.graphic=c.destroy())})}drawTracker(e=this.points){var t;let n,r=this,o=r.chart,i=o.pointer,a=function(e){null==i||i.normalize(e);let t=null==i?void 0:i.getPointFromEvent(e);i&&t&&r.options.enableMouseTracking&&(o.isInsidePlot(e.chartX-o.plotLeft,e.chartY-o.plotTop,{visiblePlotOnly:!0})||r.allowOutsidePlotInteraction&&(null==i?void 0:i.inClass(e.target,"highcharts-point"))||(null==i?void 0:i.inClass(e.target,"highcharts-data-label")))&&(i.isDirectTouch=!0,t.onMouseOver(e))};e.forEach(function(e){n=be(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[],e.graphic&&(e.graphic.element.point=e),n.forEach(function(t){(t.div||t.element).point=e})}),r._hasTracking||(null==(t=r.trackerGroups)||t.reduce((e,t)=>("dataLabelsGroup"===t?e.push(...r.dataLabelsGroups||[]):e.push(r[t]),e),[]).forEach(e=>{e&&(e.addClass("highcharts-tracker").on("mouseover",a).on("mouseout",function(e){null==i||i.onTrackerMouseOut(e)}).on("touchstart",a),!o.styledMode&&r.options.cursor&&e.css({cursor:r.options.cursor}))}),r._hasTracking=!0),le(this,"afterDrawTracker")}remove(){let e=this,t=e.chart;t.hasRendered&&t.series.forEach(function(t){t.type===e.type&&(t.isDirty=!0)}),pr.prototype.remove.apply(e,arguments)}}mo.defaultOptions=Ce(pr.defaultOptions,{borderRadius:3,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}),ie(mo.prototype,{directTouch:!0,getSymbol:fo,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),rr.registerSeriesType("column",mo);let go=mo,{getDeferredAnimation:yo}=lt,{format:vo}=wt;!function(e){function t(){return s(this).some(e=>null==e?void 0:e.enabled)}function n(e,t,n,r,o){var i;let{chart:a,enabledDataSorting:l}=this,s=this.isCartesian&&a.inverted,c=e.plotX,u=e.plotY,d=n.rotation||0,h=ee(c)&&ee(u)&&a.isInsidePlot(c,Math.round(u),{inverted:s,paneCoordinates:!0,series:this}),p=0===d&&"justify"===Te(n.overflow,l?"none":"justify"),f=this.visible&&!1!==e.visible&&ee(c)&&(e.series.forceDL||l&&!p||h||Te(n.inside,!!this.options.stacking)&&r&&a.isInsidePlot(c,s?r.x+1:r.y+r.height-1,{inverted:s,paneCoordinates:!0,series:this})),m=e.pos();if(f&&m){var g;let c=t.getBBox(),u=t.getBBox(void 0,0);if(r=ie({x:m[0],y:Math.round(m[1]),width:0,height:0},r||{}),"plotEdges"===n.alignTo&&this.isCartesian&&(r[s?"x":"y"]=0,r[s?"width":"height"]=(null==(i=this.yAxis)?void 0:i.len)||0),ie(n,{width:c.width,height:c.height}),g=r,l&&this.xAxis&&!p&&this.setDataLabelStartPos(e,t,o,h,g),t.align(Ce(n,{width:u.width,height:u.height}),!1,r,!1),t.alignAttr.x+=se(n.align)*(u.width-c.width),t.alignAttr.y+=se(n.verticalAlign)*(u.height-c.height),t[t.placed?"animate":"attr"]({"text-align":t.alignAttr["text-align"]||"center",x:t.alignAttr.x+(c.width-u.width)/2,y:t.alignAttr.y+(c.height-u.height)/2,rotationOriginX:(t.width||0)/2,rotationOriginY:(t.height||0)/2}),p&&r.height>=0)this.justifyDataLabel(t,n,t.alignAttr,c,r,o);else if(Te(n.crop,!0)){let{x:e,y:n}=t.alignAttr;f=a.isInsidePlot(e,n,{paneCoordinates:!0,series:this})&&a.isInsidePlot(e+c.width-1,n+c.height-1,{paneCoordinates:!0,series:this})}n.shape&&!d&&t[o?"attr":"animate"]({anchorX:m[0],anchorY:m[1]})}o&&l&&(t.placed=!1),f||l&&!p?(t.show(),t.placed=!0):(t.hide(),t.placed=!1)}function r(e,t){var n,r;le(this,"initDataLabelsGroup",{index:e,zIndex:(null==t?void 0:t.zIndex)??6}),this.dataLabelsGroup=null==(n=this.dataLabelsGroups)?void 0:n[e];let o=this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",(null==t?void 0:t.zIndex)??6,null==(r=this.dataLabelsParentGroups)?void 0:r[e]);return this.dataLabelsGroups||(this.dataLabelsGroups=[]),this.dataLabelsGroups[e]=o,this.dataLabelsGroup=this.dataLabelsGroups[0],o}function o(e,t,n){let r=!!this.hasRendered,o=this.initDataLabelsGroup(e,n).attr({opacity:+r});return!r&&o&&(this.visible&&o.show(),this.options.animation?o.animate({opacity:1},t):o.attr({opacity:1})),o}function i(e){var t;let n;e=e||this.points;let r=this,o=r.chart,i=r.options,a=o.renderer,{backgroundColor:c,plotBackgroundColor:u}=o.options.chart,d=a.getContrast(ve(u)&&u||ve(c)&&c||"#000000"),h=s(r),{animation:p,defer:f}=h[0],m=f?yo(o,p,r):{defer:0,duration:0};le(this,"drawDataLabels"),(null==(t=r.hasDataLabels)?void 0:t.call(r))&&e.forEach(e=>{var t,s,c;let u=e.dataLabels||[],p=e.color||r.color;Ae(l(h,e.dlOptions||(null==(t=e.options)?void 0:t.dataLabels))).forEach((t,l)=>{var s;n=this.initDataLabels(l,m,t);let c,h,f,g,y=t.enabled&&(e.visible||e.dataLabelOnHidden)&&(!e.isNull||e.dataLabelOnNull)&&function(e,t){let n=t.filter;if(n){let t=n.operator,r=e[n.property],o=n.value;return">"===t&&r>o||"<"===t&&r<o||">="===t&&r>=o||"<="===t&&r<=o||"=="===t&&r==o||"==="===t&&r===o||"!="===t&&r!=o||"!=="===t&&r!==o||!1}return!0}(e,t),{backgroundColor:v,borderColor:b,distance:x,style:w={}}=t,C={},k=u[l],S=!k;y&&(h=ee(c=Te(t[e.formatPrefix+"Format"],t.format))?vo(c,e,o):(t[e.formatPrefix+"Formatter"]||t.formatter).call(e,t,e),f=t.rotation,!o.styledMode&&(w.color=Te(t.color,w.color,ve(r.color)?r.color:void 0,"#000000"),"contrast"===w.color?("none"!==v&&(g=v),e.contrastColor=a.getContrast("auto"!==g&&ve(g)&&g||(ve(p)?p:"")),w.color=g||!ee(x)&&t.inside||0>Me(x||0)||i.stacking?e.contrastColor:d):delete e.contrastColor,i.cursor&&(w.cursor=i.cursor)),C={r:t.borderRadius||0,rotation:f,padding:t.padding,zIndex:1},o.styledMode||(C.fill="auto"===v?e.color:v,C.stroke="auto"===b?e.color:b,C["stroke-width"]=t.borderWidth),Se(C,(e,t)=>{void 0===e&&delete C[t]})),!k||y&&ee(h)&&!(!k.div&&!(null==(s=k.text)?void 0:s.foreignObject))==!!t.useHTML&&(k.rotation&&t.rotation||k.rotation===t.rotation)||(k=void 0,S=!0),y&&ee(h)&&""!==h&&(k?C.text=h:(k=a.label(h,0,0,t.shape,void 0,void 0,t.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+e.colorIndex+" "+(t.className||"")+(t.useHTML?" highcharts-tracker":"")),k&&(k.options=t,k.attr(C),o.styledMode?w.width&&k.css({width:w.width,textOverflow:w.textOverflow,whiteSpace:w.whiteSpace}):k.css(w).shadow(t.shadow),le(k,"beforeAddingDataLabel",{labelOptions:t,point:e}),k.added||k.add(n),r.alignDataLabel(e,k,t,void 0,S),k.isActive=!0,u[l]&&u[l]!==k&&u[l].destroy(),u[l]=k))});let f=u.length;for(;f--;)(null==(s=u[f])?void 0:s.isActive)?u[f].isActive=!1:(null==(c=u[f])||c.destroy(),u.splice(f,1));e.dataLabel=u[0],e.dataLabels=u}),le(this,"afterDrawDataLabels")}function a(e,t,n,r,o,i){let a,l,s=this.chart,c=t.align,u=t.verticalAlign,d=e.box?0:e.padding||0,h=s.inverted?this.yAxis:this.xAxis,p=h?h.left-s.plotLeft:0,f=s.inverted?this.xAxis:this.yAxis,m=f?f.top-s.plotTop:0,{x:g=0,y:y=0}=t;return(a=(n.x||0)+d+p)<0&&("right"===c&&g>=0?(t.align="left",t.inside=!0):g-=a,l=!0),(a=(n.x||0)+r.width-d+p)>s.plotWidth&&("left"===c&&g<=0?(t.align="right",t.inside=!0):g+=s.plotWidth-a,l=!0),(a=n.y+d+m)<0&&("bottom"===u&&y>=0?(t.verticalAlign="top",t.inside=!0):y-=a,l=!0),(a=(n.y||0)+r.height-d+m)>s.plotHeight&&("top"===u&&y<=0?(t.verticalAlign="bottom",t.inside=!0):y+=s.plotHeight-a,l=!0),l&&(t.x=g,t.y=y,e.placed=!i,e.align(t,void 0,o)),l}function l(e,t){let n,r=[];if(be(e)&&!be(t))r=e.map(function(e){return Ce(e,t)});else if(be(t)&&!be(e))r=t.map(function(t){return Ce(e,t)});else if(be(e)||be(t)){if(be(e)&&be(t))for(n=Math.max(e.length,t.length);n--;)r[n]=Ce(e[n],t[n])}else r=Ce(e,t);return r}function s(e){var t,n;let r=e.chart.options.plotOptions;return Ae(l(l(null==(t=null==r?void 0:r.series)?void 0:t.dataLabels,null==(n=null==r?void 0:r[e.type])?void 0:n.dataLabels),e.options.dataLabels))}function c(e,t,n,r,o){let i=this.chart,a=i.inverted,l=this.xAxis,s=l.reversed,c=((a?t.height:t.width)||0)/2,u=e.pointWidth,d=u?u/2:0;t.startXPos=a?o.x:s?-c-d:l.width-c+d,t.startYPos=a?s?this.yAxis.height-c+d:-c-d:o.y,r?"hidden"===t.visibility&&(t.show(),t.attr({opacity:0}).animate({opacity:1})):t.attr({opacity:1}).animate({opacity:0},void 0,t.hide),i.hasRendered&&(n&&t.attr({x:t.startXPos,y:t.startYPos}),t.placed=!0)}e.compose=function(e){let s=e.prototype;s.initDataLabels||(s.initDataLabels=o,s.initDataLabelsGroup=r,s.alignDataLabel=n,s.drawDataLabels=i,s.justifyDataLabel=a,s.mergeArrays=l,s.setDataLabelStartPos=c,s.hasDataLabels=t)}}(R||(R={}));let bo=R,{composed:xo}=_,{series:wo}=rr;function Co(e,t,n,r,o){var i,a;let{chart:l,options:s}=this,c=l.inverted,u=(null==(i=this.xAxis)?void 0:i.len)||l.plotSizeX||0,d=(null==(a=this.yAxis)?void 0:a.len)||l.plotSizeY||0,h=e.dlBox||e.shapeArgs,p=e.below??(e.plotY||0)>(this.translatedThreshold??d),f=n.inside??!!s.stacking;if(h){if(r=Ce(h),"allow"!==n.overflow||!1!==n.crop||!1!==s.clip){r.y<0&&(r.height+=r.y,r.y=0);let e=r.y+r.height-d;e>0&&e<r.height-1&&(r.height-=e)}c&&(r={x:d-r.y-r.height,y:u-r.x-r.width,width:r.height,height:r.width}),f||(c?(r.x+=p?0:r.width,r.width=0):(r.y+=p?r.height:0,r.height=0))}n.align??(n.align=!c||f?"center":p?"right":"left"),n.verticalAlign??(n.verticalAlign=c||f?"middle":p?"top":"bottom"),wo.prototype.alignDataLabel.call(this,e,t,n,r,o),n.inside&&e.contrastColor&&t.css({color:e.contrastColor})}(L||(L={})).compose=function(e){bo.compose(wo),Pe(xo,"ColumnDataLabel")&&(e.prototype.alignDataLabel=Co)};let ko=L;class So extends go{}So.defaultOptions=Ce(go.defaultOptions,{}),ie(So.prototype,{inverted:!0}),rr.registerSeriesType("bar",So);let{column:Eo,line:$o}=rr.seriesTypes;class To extends $o{applyJitter(){let e=this,t=this.options.jitter,n=this.points.length;t&&this.points.forEach(function(r,o){["x","y"].forEach(function(i,a){if(t[i]&&!r.isNull){let l=`plot${i.toUpperCase()}`,s=e[`${i}Axis`],c=t[i]*s.transA;if(s&&!s.logarithmic){let e,t=Math.max(0,(r[l]||0)-c),u=Math.min(s.len,(r[l]||0)+c);r[l]=t+(u-t)*((e=1e4*Math.sin(o+a*n))-Math.floor(e)),"x"===i&&(r.clientX=r.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}To.defaultOptions=Ce($o.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 0.8em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}),ie(To.prototype,{allowOutsidePlotInteraction:!0,drawTracker:Eo.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),V(To,"afterTranslate",function(){this.applyJitter()}),rr.registerSeriesType("scatter",To);let{deg2rad:Mo}=_;(x=B||(B={})).getCenter=function(){let e,t,n,r=this.options,o=this.chart,i=2*(r.slicedOffset||0),a=o.plotWidth-2*i,l=o.plotHeight-2*i,s=r.center,c=Math.min(a,l),u=r.thickness,d=r.size,h=r.innerSize||0;"string"==typeof d&&(d=parseFloat(d)),"string"==typeof h&&(h=parseFloat(h));let p=[Te(null==s?void 0:s[0],"50%"),Te(null==s?void 0:s[1],"50%"),Te(d&&d<0?void 0:r.size,"100%"),Te(h&&h<0?void 0:r.innerSize||0,"0%")];for(!o.angular||this instanceof pr||(p[3]=0),t=0;t<4;++t)n=p[t],e=t<2||2===t&&/%$/.test(n),p[t]=Ne(n,[a,l,c,p[2]][t])+(e?i:0);return p[3]>p[2]&&(p[3]=p[2]),ye(u)&&2*u<p[2]&&u>0&&(p[3]=p[2]-2*u),le(this,"afterGetCenter",{positions:p}),p},x.getStartAndEndRadians=function(e,t){let n=ye(e)?e:0,r=ye(t)&&t>n&&t-n<360?t:n+360;return{start:Mo*(n+-90),end:Mo*(r+-90)}};let Po=B,{setAnimation:No}=lt;class Io extends Fn{getConnectorPath(e){let t=e.dataLabelPosition,n=e.options||{},r=n.connectorShape,o=this.connectorShapes[r]||r;return t&&o.call(this,{...t.computed,alignment:t.alignment},t.connectorPosition,n)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(e){let t=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(t.x,t.y,t.r+e,t.r+e,{innerR:t.r-1,start:t.start,end:t.end,borderRadius:t.borderRadius})}constructor(e,t,n){super(e,t,n),this.half=0,this.name??(this.name=e.chart.options.lang.pieSliceName);const r=e=>{this.slice("select"===e.type)};V(this,"select",r),V(this,"unselect",r)}isValid(){return ye(this.y)&&this.y>=0}setVisible(e,t=!0){e!==this.visible&&this.update({visible:e??!this.visible},t,void 0,!1)}slice(e,t,n){let r=this.series;No(n,r.chart),t=Te(t,!0),this.sliced=this.options.sliced=e=ee(e)?e:!this.sliced,r.options.data[r.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}ie(Io.prototype,{connectorShapes:{fixedOffset:function(e,t,n){let r=t.breakAt,o=t.touchingSliceAt,i=n.softConnector?["C",e.x+("left"===e.alignment?-5:5),e.y,2*r.x-o.x,2*r.y-o.y,r.x,r.y]:["L",r.x,r.y];return[["M",e.x,e.y],i,["L",o.x,o.y]]},straight:function(e,t){let n=t.touchingSliceAt;return[["M",e.x,e.y],["L",n.x,n.y]]},crookedLine:function(e,t,n){let{angle:r=this.angle||0,breakAt:o,touchingSliceAt:i}=t,{series:a}=this,[l,s,c]=a.center,u=c/2,{plotLeft:d,plotWidth:h}=a.chart,p="left"===e.alignment,{x:f,y:m}=e,g=o.x;if(n.crookDistance){let e=Ne(n.crookDistance,1);g=p?l+u+(h+d-l-u)*(1-e):d+(l-u)*e}else g=l+(s-m)*Math.tan(r-Math.PI/2);let y=[["M",f,m]];return(p?g<=f&&g>=o.x:g>=f&&g<=o.x)&&y.push(["L",g,m]),y.push(["L",o.x,o.y],["L",i.x,i.y]),y}}});let{getStartAndEndRadians:Oo}=Po,{noop:Ao}=_;class Ro extends pr{animate(e){let t=this,n=t.points,r=t.startAngleRad;e||n.forEach(function(e){let n=e.graphic,o=e.shapeArgs;n&&o&&(n.attr({r:Te(e.startR,t.center&&t.center[3]/2),start:r,end:r}),n.animate({r:o.r,start:o.start,end:o.end},t.options.animation))})}drawEmpty(){let e,t,n=this.startAngleRad,r=this.endAngleRad,o=this.options;0===this.total&&this.center?(e=this.center[0],t=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(e,t,this.center[1]/2,0,n,r).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:jt.arc(e,t,this.center[2]/2,0,{start:n,end:r,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":o.borderWidth,fill:o.fillColor||"none",stroke:o.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let e=this.chart.renderer;this.points.forEach(function(t){t.graphic&&t.hasNewShapeType()&&(t.graphic=t.graphic.destroy()),t.graphic||(t.graphic=e[t.shapeType](t.shapeArgs).add(t.series.group),t.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(e,t,n,r){let o=this.center,i=this.radii?this.radii[n.index]||0:o[2]/2,a=r.dataLabelPosition,l=(null==a?void 0:a.distance)||0,s=Math.asin(U((e-o[1])/(i+l),-1,1));return o[0]+Math.cos(s)*(i+l)*(t?-1:1)+(l>0?(t?-1:1)*(r.padding||0):0)}hasData(){return this.points.some(e=>e.visible)}redrawPoints(){let e,t,n,r,o=this,i=o.chart;this.drawEmpty(),o.group&&!i.styledMode&&o.group.shadow(o.options.shadow),o.points.forEach(function(a){let l={};t=a.graphic,!a.isNull&&t?(r=a.shapeArgs,e=a.getTranslate(),i.styledMode||(n=o.pointAttribs(a,a.selected&&"select")),a.delayedRendering?(t.setRadialReference(o.center).attr(r).attr(e),i.styledMode||t.attr(n).attr({"stroke-linejoin":"round"}),a.delayedRendering=!1):(t.setRadialReference(o.center),i.styledMode||Ce(!0,l,n),Ce(!0,l,r,e),t.animate(l)),t.attr({visibility:a.visible?"inherit":"hidden"}),t.addClass(a.getClassName(),!0)):t&&(a.graphic=t.destroy())})}sortByAngle(e,t){e.sort(function(e,n){return void 0!==e.angle&&(n.angle-e.angle)*t})}translate(e){le(this,"translate"),this.generatePoints();let t,n,r,o,i,a,l,s=this.options,c=s.slicedOffset,u=Oo(s.startAngle,s.endAngle),d=this.startAngleRad=u.start,h=(this.endAngleRad=u.end)-d,p=this.points,f=s.ignoreHiddenPoint,m=p.length,g=0;for(e||(this.center=e=this.getCenter()),a=0;a<m;a++){l=p[a],t=d+g*h,l.isValid()&&(!f||l.visible)&&(g+=l.percentage/100),n=d+g*h;let s={x:e[0],y:e[1],r:e[2]/2,innerR:e[3]/2,start:t,end:n};l.shapeType="arc",l.shapeArgs=s,(r=(n+t)/2)>1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI),l.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)},o=Math.cos(r)*e[2]/2,i=Math.sin(r)*e[2]/2,l.tooltipPos=[e[0]+.7*o,e[1]+.7*i],l.half=+(r<-Math.PI/2||r>Math.PI/2),l.angle=r}le(this,"afterTranslate")}updateTotals(){let e,t,n=this.points,r=n.length,o=this.options.ignoreHiddenPoint,i=0;for(e=0;e<r;e++)(t=n[e]).isValid()&&(!o||t.visible)&&(i+=t.y);for(e=0,this.total=i;e<r;e++)(t=n[e]).percentage=i>0&&(t.visible||!o)?t.y/i*100:0,t.total=i}}Ro.defaultOptions=Ce(pr.defaultOptions,{borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.isNull?void 0:this.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}),ie(Ro.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:go.prototype.drawTracker,getCenter:Po.getCenter,getSymbol:Ao,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:go.prototype.pointAttribs,pointClass:Io,requireSorting:!1,searchPoint:Ao,trackerGroups:["group","dataLabelsGroup"]}),rr.registerSeriesType("pie",Ro);let{composed:Lo,noop:Bo}=_,{distribute:zo}=kt,{series:Do}=rr;!function(e){let t={radialDistributionY:function(e,t){var n;return((null==(n=t.dataLabelPosition)?void 0:n.top)||0)+e.distributeBox.pos},radialDistributionX:function(e,t,n,r,o){let i=o.dataLabelPosition;return e.getX(n<((null==i?void 0:i.top)||0)+2||n>((null==i?void 0:i.bottom)||0)-2?r:n,t.half,t,o)},justify:function(e,t,n,r){var o;return r[0]+(e.half?-1:1)*(n+((null==(o=t.dataLabelPosition)?void 0:o.distance)||0))},alignToPlotEdges:function(e,t,n,r){let o=e.getBBox().width;return t?o+r:n-o-r},alignToConnectors:function(e,t,n,r){let o,i=0;return e.forEach(function(e){(o=e.dataLabel.getBBox().width)>i&&(i=o)}),t?i+r:n-i-r}};function n(e,t){let n=Math.PI/2,{start:r=0,end:o=0}=e.shapeArgs||{},i=e.angle||0;t>0&&r<n&&o>n&&i>n/2&&i<1.5*n&&(i=i<=n?Math.max(n/2,(r+n)/2):Math.min(1.5*n,(n+o)/2));let{center:a,options:l}=this,s=a[2]/2,c=Math.cos(i),u=Math.sin(i),d=a[0]+c*s,h=a[1]+u*s,p=Math.min((l.slicedOffset||0)+(l.borderWidth||0),t/5);return{natural:{x:d+c*t,y:h+u*t},computed:{},alignment:t<0?"center":e.half?"right":"left",connectorPosition:{angle:i,breakAt:{x:d+c*p,y:h+u*p},touchingSliceAt:{x:d,y:h}},distance:t}}function r(){var e;let t,n,r,o=this,i=o.points,a=o.chart,l=a.plotWidth,s=a.plotHeight,c=a.plotLeft,u=Math.round(a.chartWidth/3),d=o.center,h=d[2]/2,p=d[1],f=[[],[]],m=[0,0,0,0],g=o.dataLabelPositioners,y=0;o.visible&&(null==(e=o.hasDataLabels)?void 0:e.call(o))&&(i.forEach(e=>{(e.dataLabels||[]).forEach(e=>{e.shortened&&(e.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),e.shortened=!1)})}),Do.prototype.drawDataLabels.apply(o),i.forEach(e=>{(e.dataLabels||[]).forEach((t,n)=>{var r;let o=d[2]/2,i=t.options,a=Ne((null==i?void 0:i.distance)||0,o);0===n&&f[e.half].push(e),!ee(null==(r=null==i?void 0:i.style)?void 0:r.width)&&t.getBBox().width>u&&(t.css({width:Math.round(.7*u)+"px"}),t.shortened=!0),t.dataLabelPosition=this.getDataLabelPosition(e,a),y=Math.max(y,a)})}),f.forEach((e,t)=>{let i,u,f,v=e.length,b=[],x=0;v&&(o.sortByAngle(e,t-.5),y>0&&(i=Math.max(0,p-h-y),u=Math.min(p+h+y,a.plotHeight),e.forEach(e=>{(e.dataLabels||[]).forEach(t=>{var n;let r=t.dataLabelPosition;r&&r.distance>0&&(r.top=Math.max(0,p-h-r.distance),r.bottom=Math.min(p+h+r.distance,a.plotHeight),x=t.getBBox().height||21,t.lineHeight=a.renderer.fontMetrics(t.text||t).h+2*t.padding,e.distributeBox={target:((null==(n=t.dataLabelPosition)?void 0:n.natural.y)||0)-r.top+t.lineHeight/2,size:x,rank:e.y},b.push(e.distributeBox))})}),zo(b,f=u+x-i,f/5)),e.forEach(i=>{(i.dataLabels||[]).forEach(a=>{let u=a.options||{},p=i.distributeBox,f=a.dataLabelPosition,y=(null==f?void 0:f.natural.y)||0,v=u.connectorPadding||0,x=a.lineHeight||21,w=(x-a.getBBox().height)/2,C=0,k=y,S="inherit";if(f){if(b&&ee(p)&&f.distance>0&&(void 0===p.pos?S="hidden":(r=p.size,k=g.radialDistributionY(i,a))),u.justify)C=g.justify(i,a,h,d);else switch(u.alignTo){case"connectors":C=g.alignToConnectors(e,t,l,c);break;case"plotEdges":C=g.alignToPlotEdges(a,t,l,c);break;default:C=g.radialDistributionX(o,i,k-w,y,a)}if(f.attribs={visibility:S,align:f.alignment},f.posAttribs={x:C+(u.x||0)+({left:v,right:-v}[f.alignment]||0),y:k+(u.y||0)-x/2},f.computed.x=C,f.computed.y=k-w,Te(u.crop,!0)){let e;C-(n=a.getBBox().width)<v&&1===t?(e=Math.round(n-C+v),m[3]=Math.max(e,m[3])):C+n>l-v&&0===t&&(e=Math.round(C+n-l+v),m[1]=Math.max(e,m[1])),k-r/2<0?m[0]=Math.max(Math.round(r/2-k),m[0]):k+r/2>s&&(m[2]=Math.max(Math.round(k+r/2-s),m[2])),f.sideOverflow=e}}})}))}),(0===q(m)||this.verifyDataLabelOverflow(m))&&(this.placeDataLabels(),this.points.forEach(e=>{var n;null==(n=e.dataLabels)||n.forEach((n,r)=>{var i,l;let{connectorColor:s,connectorWidth:c=1}=n.options||{},u=n.dataLabelPosition;if(ye(c)){let d;t=n.connector,u&&u.distance>0?(d=!t,t||(n.connector=t=a.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+e.colorIndex+(e.className?" "+e.className:"")).add(null==(i=o.dataLabelsGroups)?void 0:i[r])),a.styledMode||t.attr({"stroke-width":c,stroke:s||e.color||"#666666"}),t[d?"attr":"animate"]({d:e.getConnectorPath(n)}),t.attr({visibility:null==(l=u.attribs)?void 0:l.visibility})):t&&(n.connector=t.destroy())}})})))}function o(){this.points.forEach(e=>{(e.dataLabels||[]).forEach(e=>{var t,n;let r=e.dataLabelPosition;r?(r.sideOverflow&&(e.css({width:Math.max(e.getBBox().width-r.sideOverflow,0)+"px",textOverflow:(null==(n=null==(t=e.options)?void 0:t.style)?void 0:n.textOverflow)||"ellipsis"}),e.shortened=!0),e.attr(r.attribs),e[e.moved?"animate":"attr"](r.posAttribs),e.moved=!0):e&&e.attr({y:-9999})}),delete e.distributeBox},this)}function i(e){let t=this.center,n=this.options,r=n.center,o=n.minSize||80,i=o,a=null!==n.size;return!a&&(null!==r[0]?i=Math.max(t[2]-Math.max(e[1],e[3]),o):(i=Math.max(t[2]-e[1]-e[3],o),t[0]+=(e[3]-e[1])/2),null!==r[1]?i=U(i,o,t[2]-Math.max(e[0],e[2])):(i=U(i,o,t[2]-e[0]-e[2]),t[1]+=(e[0]-e[2])/2),i<t[2]?(t[2]=i,t[3]=Math.min(n.thickness?Math.max(0,i-2*n.thickness):Math.max(0,Ne(n.innerSize||0,i)),i),this.translate(t),this.drawDataLabels&&this.drawDataLabels()):a=!0),a}e.compose=function(e){if(bo.compose(Do),Pe(Lo,"PieDataLabel")){let a=e.prototype;a.dataLabelPositioners=t,a.alignDataLabel=Bo,a.drawDataLabels=r,a.getDataLabelPosition=n,a.placeDataLabels=o,a.verifyDataLabelOverflow=i}}}(z||(z={}));let jo=z;(w=D||(D={})).getCenterOfPoints=function(e){let t=e.reduce((e,t)=>(e.x+=t.x,e.y+=t.y,e),{x:0,y:0});return{x:t.x/e.length,y:t.y/e.length}},w.getDistanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},w.getAngleBetweenPoints=function(e,t){return Math.atan2(t.x-e.x,t.y-e.y)},w.pointInPolygon=function({x:e,y:t},n){let r,o,i=n.length,a=!1;for(r=0,o=i-1;r<i;o=r++){let[i,l]=n[r],[s,c]=n[o];l>t!=c>t&&e<(s-i)*(t-l)/(c-l)+i&&(a=!a)}return a};let{pointInPolygon:Fo}=D;function Ho(e,t){let n,r=!1;return e&&(n=e.newOpacity,e.oldOpacity!==n&&(e.hasClass("highcharts-data-label")?(e[n?"removeClass":"addClass"]("highcharts-data-label-hidden"),r=!0,e[e.isOld?"animate":"attr"]({opacity:n},void 0,function(){t.styledMode||e.css({pointerEvents:n?"auto":"none"})}),le(t,"afterHideOverlappingLabel")):e.attr({opacity:n})),e.isOld=!0),r}let{defaultOptions:_o}=Ze,{noop:Wo}=_,Ko={radius:0,scope:"stack",where:void 0},Vo=Wo,Go=Wo;function qo(e,t,n,r,o={}){let i=Vo(e,t,n,r,o),{brStart:a=!0,brEnd:l=!0,innerR:s=0,r:c=n,start:u=0,end:d=0}=o;if(o.open||!o.borderRadius)return i;let h=d-u,p=Math.sin(h/2),f=Math.max(Math.min(Ne(o.borderRadius||0,c-s),(c-s)/2,c*p/(1+p)),0),m=Math.min(f,h/Math.PI*2*s),g=i.length-1;for(;g--;)(a||0!==g&&3!==g)&&(l||1!==g&&2!==g)&&function(e,t,n){let r,o,i,a=e[t],l=e[t+1];if("Z"===l[0]&&(l=e[0]),"M"!==a[0]&&"L"!==a[0]||"A"!==l[0]?"A"===a[0]&&("M"===l[0]||"L"===l[0])&&(r=l,o=a):(r=a,o=l,i=!0),r&&o&&o.params){let a=o[1],l=o[5],s=o.params,{start:c,end:u,cx:d,cy:h}=s,p=l?a-n:a+n,f=p?Math.asin(n/p):0,m=l?f:-f,g=Math.cos(f)*p;i?(s.start=c+m,r[1]=d+g*Math.cos(c),r[2]=h+g*Math.sin(c),e.splice(t+1,0,["A",n,n,0,0,1,d+a*Math.cos(s.start),h+a*Math.sin(s.start)])):(s.end=u-m,o[6]=d+a*Math.cos(s.end),o[7]=h+a*Math.sin(s.end),e.splice(t+1,0,["A",n,n,0,0,1,d+g*Math.cos(u),h+g*Math.sin(u)])),o[4]=Math.abs(s.end-s.start)<Math.PI?0:1}}(i,g,g>1?m:f);return i}function Xo(){var e,t;if(this.options.borderRadius&&(!this.chart.is3d||!this.chart.is3d())){let{options:n,yAxis:r}=this,o="percent"===n.stacking,i=null==(t=null==(e=_o.plotOptions)?void 0:e[this.type])?void 0:t.borderRadius,a=Uo(n.borderRadius,we(i)?i:{}),l=r.options.reversed;for(let e of this.points){let{shapeArgs:t}=e;if("roundedRect"===e.shapeType&&t){let{width:i=0,height:s=0,y:c=0}=t,u=c,d=s;if("stack"===a.scope&&e.stackTotal){let t=r.translate(o?100:e.stackTotal,!1,!0,!1,!0),i=r.translate(n.threshold||0,!1,!0,!1,!0),a=this.crispCol(0,Math.min(t,i),0,Math.abs(t-i));u=a.y,d=a.height}let h=(e.negative?-1:1)*(l?-1:1)==-1,p=a.where;!p&&this.is("waterfall")&&Math.abs((e.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(p="all"),p||(p="end");let f=Math.min(Ne(a.radius,i),i/2,"all"===p?d/2:1/0)||0;"end"===p&&(h&&(u-=f),d+=f),ie(t,{brBoxHeight:d,brBoxY:u,r:f})}}}}function Uo(e,t){return we(e)||(e={radius:e||0}),Ce(Ko,t,e)}function Yo(){let e=Uo(this.options.borderRadius);for(let t of this.points){let n=t.shapeArgs;n&&(n.borderRadius=Ne(e.radius,(n.r||0)-(n.innerR||0)))}}function Zo(e,t,n,r,o={}){let i=Go(e,t,n,r,o),{r:a=0,brBoxHeight:l=r,brBoxY:s=t}=o,c=t-s,u=s+l-(t+r),d=c-a>-.1?0:a,h=u-a>-.1?0:a,p=Math.max(d&&c,0),f=Math.max(h&&u,0),m=[e+d,t],g=[e+n-d,t],y=[e+n,t+d],v=[e+n,t+r-h],b=[e+n-h,t+r],x=[e+h,t+r],w=[e,t+r-h],C=[e,t+d],k=(e,t)=>Math.sqrt(Math.pow(e,2)-Math.pow(t,2));if(p){let e=k(d,d-p);m[0]-=e,g[0]+=e,y[1]=C[1]=t+d-p}if(r<d-p){let o=k(d,d-p-r);y[0]=v[0]=e+n-d+o,b[0]=Math.min(y[0],b[0]),x[0]=Math.max(v[0],x[0]),w[0]=C[0]=e+d-o,y[1]=C[1]=t+r}if(f){let e=k(h,h-f);b[0]+=e,x[0]-=e,v[1]=w[1]=t+r-h+f}if(r<h-f){let o=k(h,h-f-r);y[0]=v[0]=e+n-h+o,g[0]=Math.min(y[0],g[0]),m[0]=Math.max(v[0],m[0]),w[0]=C[0]=e+h-o,v[1]=w[1]=t}return i.length=0,i.push(["M",...m],["L",...g],["A",d,d,0,0,1,...y],["L",...v],["A",h,h,0,0,1,...b],["L",...x],["A",h,h,0,0,1,...w],["L",...C],["A",d,d,0,0,1,...m],["Z"]),i}function Qo(e,t){let n=e.condition;(n.callback||function(){return this.chartWidth<=Te(n.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=Te(n.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=Te(n.minWidth,0)&&this.chartHeight>=Te(n.minHeight,0)}).call(this,this)&&t.push(e._id)}function Jo(e,t){let n,r=this.options.responsive,o=this.currentResponsive,i=[];!t&&r&&r.rules&&r.rules.forEach(e=>{void 0===e._id&&(e._id=_e()),this.matchResponsiveRule(e,i)},this);let a=Ce(...i.map(e=>pe((null==r?void 0:r.rules)||[],t=>t._id===e)).map(e=>null==e?void 0:e.chartOptions));a.isResponsiveOptions=!0,i=i.toString()||void 0;let l=null==o?void 0:o.ruleIds;i!==l&&(o&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(o.undoOptions,e,!0),this.updatingResponsive=!1),i?((n=re(a,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:i,mergedOptions:a,undoOptions:n},this.updatingResponsive||this.update(a,e,!0)):this.currentResponsive=void 0)}(j||(j={})).compose=function(e){let t=e.prototype;return t.matchResponsiveRule||ie(t,{matchResponsiveRule:Qo,setResponsive:Jo}),e};let ei=j;_.AST=pt,_.Axis=wn,_.Chart=Lr,_.Color=tt,_.DataLabel=bo,_.DataTableCore=Yn,_.Fx=ot,_.HTMLElement=sn,_.Legend=Cr,_.LegendSymbol=Jn,_.PlotLineOrBand=En,_.Point=Fn,_.Pointer=qn,_.RendererRegistry=Ct,_.Series=pr,_.SeriesRegistry=rr,_.StackItem=Wr,_.SVGElement=Rt,_.SVGRenderer=nn,_.Templating=wt,_.Tick=pn,_.Time=qe,_.Tooltip=Ln,_.addEvent=V,_.animObject=lt.animObject,_.animate=lt.animate,_.arrayMax=q,_.arrayMin=G,_.attr=X,_.chart=Lr.chart,_.clamp=U,_.color=tt.parse,_.correctFloat=Y,_.createElement=Z,_.css=J,_.dateFormat=wt.dateFormat,_.defaultOptions=Ze.defaultOptions,_.defined=ee,_.destroyObjectProperties=te,_.diffObjects=re,_.discardElement=ne,_.distribute=kt.distribute,_.erase=oe,_.error=je,_.extend=ie,_.extendClass=ae,_.find=pe,_.fireEvent=le,_.format=wt.format,_.getDeferredAnimation=lt.getDeferredAnimation,_.getMagnitude=ue,_.getOptions=Ze.getOptions,_.getStyle=he,_.insertItem=Fe,_.isArray=be,_.isClass=ge,_.isDOMElement=me,_.isFunction=xe,_.isNumber=ye,_.isObject=we,_.isString=ve,_.merge=Ce,_.normalizeTickInterval=ke,_.numberFormat=wt.numberFormat,_.objectEach=Se,_.offset=Ee,_.pad=$e,_.pick=Te,_.pInt=Me,_.relativeLength=Ne,_.removeEvent=Oe,_.seriesType=rr.seriesType,_.setAnimation=lt.setAnimation,_.setOptions=Ze.setOptions,_.splat=Ae,_.stableSort=Re,_.stop=lt.stop,_.syncTimeout=Le,_.time=Ze.defaultTime,_.timers=ot.timers,_.timeUnits=He,_.uniqueKey=_e,_.useSerialIds=function(e){return s=Te(e,s)},_.wrap=function(e,t,n){let r=e[t];e[t]=function(){let e=arguments,t=this;return n.apply(this,[function(){return r.apply(t,arguments.length?arguments:e)}].concat([].slice.call(arguments)))}},function(e,t,n){let r=e.types.pie;if(!t.symbolCustomAttribs.includes("borderRadius")){let o=n.prototype.symbols;V(e,"afterColumnTranslate",Xo,{order:9}),V(r,"afterTranslate",Yo),t.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY","brEnd","brStart"),Vo=o.arc,Go=o.roundedRect,o.arc=qo,o.roundedRect=Zo}}(_.Series,_.SVGElement,_.SVGRenderer),ko.compose(_.Series.types.column),bo.compose(_.Series),Cn.compose(_.Axis),sn.compose(_.SVGRenderer),Cr.compose(_.Chart),kn.compose(_.Axis),(p=(C=_.Chart).prototype).hideOverlappingLabels||(p.hideOverlappingLabels=function(e){let t,n,r,o,i,a=e.length,l=(e,t)=>!(t.x>=e.x+e.width||t.x+t.width<=e.x||t.y>=e.y+e.height||t.y+t.height<=e.y),s=(e,t)=>{for(let n of e)if(Fo({x:n[0],y:n[1]},t))return!0;return!1},c=!1;for(let n=0;n<a;n++)(t=e[n])&&(t.oldOpacity=t.opacity,t.newOpacity=1,t.absoluteBox=function(e){var t,n;if(e&&(!e.alignAttr||e.placed)){let r=e.box?0:e.padding||0,o=e.alignAttr||{x:e.attr("x"),y:e.attr("y")},{height:i,polygon:a,width:l}=e.getBBox(),s=se(e.alignValue)*l;return e.width=l,e.height=i,{x:o.x+((null==(t=e.parentGroup)?void 0:t.translateX)||0)+r-s,y:o.y+((null==(n=e.parentGroup)?void 0:n.translateY)||0)+r,width:l-2*r,height:i-2*r,polygon:a}}}(t));e.sort((e,t)=>((null==t?void 0:t.labelrank)||0)-((null==e?void 0:e.labelrank)||0));for(let t=0;t<a;++t){o=(n=e[t])&&n.absoluteBox;let c=null==o?void 0:o.polygon;for(let u=t+1;u<a;++u){i=(r=e[u])&&r.absoluteBox;let t=!1;if(o&&i&&n!==r&&0!==(null==n?void 0:n.newOpacity)&&0!==(null==r?void 0:r.newOpacity)&&"hidden"!==(null==n?void 0:n.visibility)&&"hidden"!==(null==r?void 0:r.visibility)){let e=i.polygon;if(c&&e&&c!==e?s(c,e)&&(t=!0):l(o,i)&&(t=!0),t){let e=(null==n?void 0:n.labelrank)<(null==r?void 0:r.labelrank)?n:r,t=null==e?void 0:e.text;e&&(e.newOpacity=0),(null==t?void 0:t.element.querySelector("textPath"))&&t.hide()}}}}for(let t of e)t&&Ho(t,this)&&(c=!0);c&&le(this,"afterHideAllOverlappingLabels")},V(C,"render",function(){var e;let t=this,n=[];for(let e of t.labelCollectors||[])n=n.concat(e());for(let e of t.yAxis||[])e.stacking&&e.options.stackLabels&&!e.options.stackLabels.allowOverlap&&Se(e.stacking.stacks,e=>{Se(e,e=>{e.label&&n.push(e.label)})});for(let r of t.series||[])if(r.visible&&(null==(e=r.hasDataLabels)?void 0:e.call(r))){let e=e=>{for(let r of e)r.visible&&(r.dataLabels||[]).forEach(e=>{var o;let i=e.options||{};e.labelrank=Te(i.labelrank,r.labelrank,null==(o=r.shapeArgs)?void 0:o.height),i.allowOverlap??Number(i.distance)>0?(e.oldOpacity=e.opacity,e.newOpacity=1,Ho(e,t)):n.push(e)})};e(r.nodes||[]),e(r.points)}this.hideOverlappingLabels(n)})),jo.compose(_.Series.types.pie),En.compose(_.Chart,_.Axis),qn.compose(_.Chart),ei.compose(_.Chart),Fr.compose(_.Axis,_.Chart,_.Series),to.compose(_.Axis,_.Chart,_.Series),Ln.compose(_.Pointer);let ti=_;return H.default})())),KK.exports);const qK=l(GK);var XK,UK={exports:{}},YK=UK.exports;XK||(XK=1,function(e){!function(t,n){e.exports=n(t._Highcharts,t._Highcharts.AST,t._Highcharts.Chart)}("u"<typeof window?YK:window,(e,t,n)=>(()=>{var r,o,i={660:e=>{e.exports=t},944:t=>{t.exports=e},960:e=>{e.exports=n}},a={};function l(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return i[e](n,n.exports,l),n.exports}l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var s={};l.d(s,{default:()=>le});var c=l(944),u=l.n(c),d=l(660),h=l.n(d),p=l(960),f=l.n(p),m=r||(r={});m.compose=function(e){return e.navigation||(e.navigation=new g(e)),e};class g{constructor(e){this.updates=[],this.chart=e}addUpdate(e){this.chart.navigation.updates.push(e)}update(e,t){this.updates.forEach(n=>{n.call(this.chart,e,t)})}}m.Additions=g;let y=r,{isSafari:v,win:b,win:{document:x}}=u(),w=b.URL||b.webkitURL||b;function C(e,t){let n=b.navigator,r=x.createElement("a");if("string"!=typeof e&&!(e instanceof String)&&n.msSaveOrOpenBlob)return void n.msSaveOrOpenBlob(e,t);if(e=""+e,n.userAgent.length>1e3)throw Error("Input too long");let o=/Edge\/\d+/.test(n.userAgent);if((v&&"string"==typeof e&&0===e.indexOf("data:application/pdf")||o||e.length>2e6)&&!(e=function(e){let t=e.replace(/filename=.*;/,"").match(/data:([^;]*)(;base64)?,([A-Z+\d\/]+)/i);if(t&&t.length>3&&b.atob&&b.ArrayBuffer&&b.Uint8Array&&b.Blob&&w.createObjectURL){let e=b.atob(t[3]),n=new b.ArrayBuffer(e.length),r=new b.Uint8Array(n);for(let t=0;t<r.length;++t)r[t]=e.charCodeAt(t);return w.createObjectURL(new b.Blob([r],{type:t[1]}))}}(e)||""))throw Error("Failed to convert to blob");if(void 0!==r.download)r.href=e,r.download=t,x.body.appendChild(r),r.click(),x.body.removeChild(r);else try{if(!b.open(e,"chart"))throw Error("Failed to open window")}catch{b.location.href=e}}let{isTouchDevice:k}=u(),S={exporting:{allowTableSorting:!0,libURL:"https://code.highcharts.com/12.6.0/lib/",local:!0,type:"image/png",url:`https://export-svg.highcharts.com?v=${u().version}`,pdfFont:{normal:void 0,bold:void 0,bolditalic:void 0,italic:void 0},printMaxWidth:780,scale:2,buttons:{contextButton:{className:"highcharts-contextbutton",menuClassName:"highcharts-contextmenu",symbol:"menu",titleKey:"contextButtonTitle",menuItems:["viewFullscreen","printChart","separator","downloadPNG","downloadJPEG","downloadSVG"]}},menuItemDefinitions:{viewFullscreen:{textKey:"viewFullscreen",onclick:function(){var e;null==(e=this.fullscreen)||e.toggle()}},printChart:{textKey:"printChart",onclick:function(){var e;null==(e=this.exporting)||e.print()}},separator:{separator:!0},downloadPNG:{textKey:"downloadPNG",onclick:async function(){var e;await(null==(e=this.exporting)?void 0:e.exportChart())}},downloadJPEG:{textKey:"downloadJPEG",onclick:async function(){var e;await(null==(e=this.exporting)?void 0:e.exportChart({type:"image/jpeg"}))}},downloadPDF:{textKey:"downloadPDF",onclick:async function(){var e;await(null==(e=this.exporting)?void 0:e.exportChart({type:"application/pdf"}))}},downloadSVG:{textKey:"downloadSVG",onclick:async function(){var e;await(null==(e=this.exporting)?void 0:e.exportChart({type:"image/svg+xml"}))}}}},lang:{viewFullscreen:"View in full screen",exitFullscreen:"Exit from full screen",printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",contextButtonTitle:"Chart context menu"},navigation:{buttonOptions:{symbolSize:14,symbolX:14.5,symbolY:13.5,align:"right",buttonSpacing:5,height:28,y:-5,verticalAlign:"top",width:28,symbolFill:"#666666",symbolStroke:"#666666",symbolStrokeWidth:3,theme:{fill:"#ffffff",padding:5,stroke:"none","stroke-linecap":"round"}},menuStyle:{border:"none",borderRadius:"3px",background:"#ffffff",padding:"0.5em"},menuItemStyle:{background:"none",borderRadius:"3px",color:"#333333",padding:"0.5em",fontSize:k?"0.9em":"0.8em",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"#f2f2f2"}}};!function(e){let t=[];function n(e,t,n,r){return[["M",e,t+2.5],["L",e+n,t+2.5],["M",e,t+r/2+.5],["L",e+n,t+r/2+.5],["M",e,t+r-1.5],["L",e+n,t+r-1.5]]}function r(e,t,n,r){let o=r/3-2;return[].concat(this.circle(n-o,t,o,o),this.circle(n-o,t+o+4,o,o),this.circle(n-o,t+2*(o+4),o,o))}e.compose=function(e){if(-1===t.indexOf(e)){t.push(e);let o=e.prototype.symbols;o.menu=n,o.menuball=r.bind(o)}}}(o||(o={}));let E=o,{doc:$,win:T}=u();function M(e,t,n,r={}){let o="function"==typeof e&&e.prototype||e;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={});let i=o.hcEvents;u().Point&&e instanceof u().Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);let a=e.addEventListener;a&&a.call(e,t,n,!!u().supportsPassiveEvents&&{passive:void 0===r.passive?-1!==t.indexOf("touch"):r.passive,capture:!1}),i[t]||(i[t]=[]);let l={fn:n,order:"number"==typeof r.order?r.order:1/0};return i[t].push(l),i[t].sort((e,t)=>e.order-t.order),function(){W(e,t,n)}}function P(e,t,n,r,o){let i=$.createElement(e);return t&&O(i,t),n&&N(i,n),r&&r.appendChild(i),i}function N(e,t){O(e.style,t)}function I(e){var t;null==(t=null==e?void 0:e.parentElement)||t.removeChild(e)}function O(e,t){let n;for(n in e||(e={}),t)e[n]=t[n];return e}function A(e,t,n,r){if(n=n||{},(null==$?void 0:$.createEvent)&&(e.dispatchEvent||e.fireEvent&&e!==u())){let r=$.createEvent("Events");r.initEvent(t,!0,!0),n=O(r,n),e.dispatchEvent?e.dispatchEvent(n):e.fireEvent(t,n)}else if(e.hcEvents){n.target||O(n,{preventDefault:function(){n.defaultPrevented=!0},target:e,type:t});let r=[],o=e,i=!1;for(;o.hcEvents;)Object.hasOwnProperty.call(o,"hcEvents")&&o.hcEvents[t]&&(r.length&&(i=!0),r.unshift.apply(r,o.hcEvents[t])),o=Object.getPrototypeOf(o);i&&r.sort((e,t)=>e.order-t.order),r.forEach(t=>{!1===t.fn.call(e,n,e)&&n.preventDefault()})}r&&!n.defaultPrevented&&r.call(e,n)}let R=Array.prototype.find?function(e,t){return e.find(t)}:function(e,t){let n,r=e.length;for(n=0;n<r;n++)if(t(e[n],n))return e[n]};function L(e){null!=e&&clearTimeout(e)}function B(e){return D(e)&&"number"==typeof e.nodeType}function z(e){let t=Object.prototype.toString.call(e);return"[object Array]"===t||"[object Array Iterator]"===t}function D(e,t){return!(!e||"object"!=typeof e||t&&z(e))}function j(e,...t){let n,r=[e,...t],o={},i=function(e,t){return"object"!=typeof e&&(e={}),F(t,function(n,r){if("__proto__"!==r&&"constructor"!==r){let o;!D(n,!0)||(o=null==n?void 0:n.constructor,D(n,!0)&&!B(n)&&(null==o?void 0:o.name)&&"Object"!==o.name)||B(n)?e[r]=t[r]:e[r]=i(e[r]||{},n)}}),e};!0===e&&(o=r[1],r=Array.prototype.slice.call(r,2));let a=r.length;for(n=0;n<a;n++)o=i(o,r[n]);return o}function F(e,t,n){for(let n in e)Object.hasOwnProperty.call(e,n)&&t.call(e[n],e[n],n,e)}function H(){let e=arguments,t=e.length;for(let n=0;n<t;n++){let t=e[n];if(null!=t)return t}}function _(e,t){return 0>e.indexOf(t)&&!!e.push(t)}function W(e,t,n){function r(t,n){let r=e.removeEventListener;r&&r.call(e,t,n,!1)}function o(n){let o,i;e.nodeName&&(t?(o={})[t]=!0:o=n,F(o,function(e,t){if(n[t])for(i=n[t].length;i--;)r(t,n[t][i].fn)}))}let i="function"==typeof e&&e.prototype||e;if(Object.hasOwnProperty.call(i,"hcEvents")){let e=i.hcEvents;if(t){let i=e[t]||[];n?(e[t]=i.filter(function(e){return n!==e.fn}),r(t,n)):(o(e),e[t]=[])}else o(e),delete i.hcEvents}}let{composed:K}=u();function V(){this.fullscreen=new G(this)}class G{static compose(e){_(K,"Fullscreen")&&M(e,"beforeRender",V)}constructor(e){this.chart=e,this.isOpen=!1;const t=e.renderTo;!this.browserProps&&("function"==typeof t.requestFullscreen?this.browserProps={fullscreenChange:"fullscreenchange",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen"}:t.mozRequestFullScreen?this.browserProps={fullscreenChange:"mozfullscreenchange",requestFullscreen:"mozRequestFullScreen",exitFullscreen:"mozCancelFullScreen"}:t.webkitRequestFullScreen?this.browserProps={fullscreenChange:"webkitfullscreenchange",requestFullscreen:"webkitRequestFullScreen",exitFullscreen:"webkitExitFullscreen"}:t.msRequestFullscreen&&(this.browserProps={fullscreenChange:"MSFullscreenChange",requestFullscreen:"msRequestFullscreen",exitFullscreen:"msExitFullscreen"}))}close(){let e=this,t=e.chart,n=t.options.chart;A(t,"fullscreenClose",void 0,function(){e.isOpen&&e.browserProps&&t.container.ownerDocument instanceof Document&&t.container.ownerDocument[e.browserProps.exitFullscreen](),e.unbindFullscreenEvent&&(e.unbindFullscreenEvent=e.unbindFullscreenEvent()),t.setSize(e.origWidth,e.origHeight,!1),e.origWidth=void 0,e.origHeight=void 0,n.width=e.origWidthOption,n.height=e.origHeightOption,e.origWidthOption=void 0,e.origHeightOption=void 0,e.isOpen=!1,e.setButtonText()})}open(){let e=this,t=e.chart,n=t.options.chart;A(t,"fullscreenOpen",void 0,function(){if(n&&(e.origWidthOption=n.width,e.origHeightOption=n.height),e.origWidth=t.chartWidth,e.origHeight=t.chartHeight,e.browserProps){let n=M(t.container.ownerDocument,e.browserProps.fullscreenChange,function(){e.isOpen?(e.isOpen=!1,e.close()):(t.setSize(null,null,!1),e.isOpen=!0,e.setButtonText())}),r=M(t,"destroy",n);e.unbindFullscreenEvent=()=>{n(),r()};let o=t.renderTo[e.browserProps.requestFullscreen]();o&&o.catch(function(){alert("Full screen is not supported inside a frame.")})}})}setButtonText(){var e,t;let n=this.chart,r=null==(e=n.exporting)?void 0:e.divElements,o=n.options.exporting,i=o&&o.buttons&&o.buttons.contextButton.menuItems,a=n.options.lang;if((null==o?void 0:o.menuItemDefinitions)&&(null==a?void 0:a.exitFullscreen)&&a.viewFullscreen&&i&&r){let e=r[i.indexOf("viewFullscreen")];e&&h().setElementHTML(e,this.isOpen?a.exitFullscreen:(null==(t=o.menuItemDefinitions.viewFullscreen)?void 0:t.textKey)||a.viewFullscreen)}}toggle(){this.isOpen?this.close():this.open()}}let{win:q}=u(),X={ajax:function(e){var t;let n={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},r=new XMLHttpRequest;function o(t,n){e.error&&e.error(t,n)}if(!e.url)return!1;r.open((e.type||"get").toUpperCase(),e.url,!0),(null==(t=e.headers)?void 0:t["Content-Type"])||r.setRequestHeader("Content-Type",n[e.dataType||"json"]||n.text),F(e.headers,function(e,t){r.setRequestHeader(t,e)}),e.responseType&&(r.responseType=e.responseType),r.onreadystatechange=function(){var t;let n;if(4===r.readyState){if(200===r.status){if("blob"!==e.responseType&&(n=r.responseText,"json"===e.dataType))try{n=JSON.parse(n)}catch(e){if(e instanceof Error)return o(r,e)}return null==(t=e.success)?void 0:t.call(e,n,r)}o(r,r.responseText)}},e.data&&"string"!=typeof e.data&&(e.data=JSON.stringify(e.data)),r.send(e.data)},getJSON:function(e,t){X.ajax({url:e,success:t,dataType:"json",headers:{"Content-Type":"text/plain"}})},post:async function(e,t,n){let r=new q.FormData;F(t,function(e,t){r.append(t,e)}),r.append("b64","true");let o=await q.fetch(e,{method:"POST",body:r,...n});if(o.ok){let e=await o.text(),n=document.createElement("a");n.href=`data:${t.type};base64,${e}`,n.download=t.filename,n.click(),I(n)}}},{defaultOptions:U,setOptions:Y}=u(),{composed:Z,doc:Q,isFirefox:J,isMS:ee,isSafari:te,SVG_NS:ne,win:re}=u();h().allowedAttributes.push("data-z-index","fill-opacity","filter","preserveAspectRatio","rx","ry","stroke-dasharray","stroke-linejoin","stroke-opacity","text-anchor","transform","transform-origin","version","viewBox","visibility","xmlns","xmlns:xlink"),h().allowedTags.push("desc","clippath","fedropshadow","femorphology","g","image");let oe=re.URL||re.webkitURL||re;class ie{constructor(e,t){this.options={},this.chart=e,this.options=t,this.btnCount=0,this.buttonOffset=0,this.divElements=[],this.svgElements=[]}static hyphenate(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})}static async imageToDataURL(e,t,n){let r=await ie.loadImage(e),o=Q.createElement("canvas"),i=null==o?void 0:o.getContext("2d");if(i)return o.height=r.height*t,o.width=r.width*t,i.drawImage(r,0,0,o.width,o.height),o.toDataURL(n);throw Error("No canvas found!")}static async fetchCSS(e){try{let t=await fetch(e),n=await t.text(),r=new CSSStyleSheet;return r.replaceSync(n),r}catch{(0,c.error)(`Warning: Failed to fetch CSS from ${e}`,!1)}}static async handleStyleSheet(e,t){try{for(let n of Array.from(e.cssRules)){if(n instanceof CSSImportRule){let e=await ie.fetchCSS(n.href);e&&await ie.handleStyleSheet(e,t)}if(n instanceof CSSFontFaceRule){let r=n.cssText;if(e.href){let t=e.href,n=/url\(\s*(['"]?)(?![a-z]+:|\/\/)([^'")]+?)\1\s*\)/gi;r=r.replace(n,(e,n,r)=>`url(${n}${new URL(r,t).href}${n})`)}t.push(r)}}}catch{if(e.href){let n=await ie.fetchCSS(e.href);n&&await ie.handleStyleSheet(n,t)}}}static async fetchStyleSheets(){let e=[];for(let t of Array.from(Q.styleSheets))await ie.handleStyleSheet(t,e);return e}static async inlineFonts(e){let t,n=/url\(([^)]+)\)/g,r=[],o=(await ie.fetchStyleSheets()).join("\n");for(;t=n.exec(o);){let e=t[1].replace(/['"]/g,"");r.includes(e)||r.push(e)}let i=e=>{let t="",n=new Uint8Array(e);for(let e=0;e<n.byteLength;e++)t+=String.fromCharCode(n[e]);return btoa(t)},a={};for(let e of r)try{let t=await fetch(e),n=t.headers.get("Content-Type")||"",r=i(await t.arrayBuffer());a[e]=`data:${n};base64,${r}`}catch{}o=o.replace(n,(e,t)=>{let n=t.replace(/['"]/g,"");return`url(${a[n]||n})`});let l=document.createElementNS("http://www.w3.org/2000/svg","style");return l.textContent=o,e.append(l),e}static loadImage(e){return new Promise((t,n)=>{let r=new re.Image;r.crossOrigin="Anonymous",r.onload=()=>{setTimeout(()=>{t(r)},ie.loadEventDeferDelay)},r.onerror=e=>{n(e)},r.src=e})}static prepareImageOptions(e){var t;let n=(null==e?void 0:e.type)||"image/png",r=(null==e?void 0:e.libURL)||(null==(t=U.exporting)?void 0:t.libURL);return{type:n,filename:((null==e?void 0:e.filename)||"chart")+"."+("image/svg+xml"===n?"svg":n.split("/")[1]),scale:(null==e?void 0:e.scale)||1,libURL:"/"!==(null==r?void 0:r.slice(-1))?r+"/":r}}static sanitizeSVG(e,t){var n;let r=e.indexOf("</svg>")+6,o=e.indexOf("<foreignObject")>-1,i=e.substr(r);return e=e.substr(0,r),o?e=e.replace(/(<(?:img|br).*?(?=\>))>/g,"$1 />").replace(/(<svg(?![^>]*xmlns=)[^>]*)>/g,'$1 xmlns="http://www.w3.org/2000/svg">'):i&&(null==(n=null==t?void 0:t.exporting)?void 0:n.allowHTML)&&(i='<foreignObject x="0" y="0" width="'+t.chart.width+'" height="'+t.chart.height+'"><body xmlns="http://www.w3.org/1999/xhtml">'+i.replace(/(<(?:img|br).*?(?=\>))>/g,"$1 />").replace(/(<svg(?![^>]*xmlns=)[^>]*)>/g,'$1 xmlns="http://www.w3.org/2000/svg">')+"</body></foreignObject>",e=e.replace("</svg>",i+"</svg>")),e.replace(/zIndex="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery\d+="[^"]+"/g,"").replace(/url\(("|")(.*?)("|")\;?\)/g,"url($2)").replace(/url\([^#]+#/g,"url(#").replace(/<svg /,'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ').replace(/ (NS\d+\:)?href=/g," xlink:href=").replace(/(<image[^>]*) xlink:href=/g,"$1 href=").replace(/\n+/g," ").replace(/ /g," ").replace(/­/g,"")}static svgToDataURL(e){let t=re.navigator.userAgent,n=t.indexOf("WebKit")>-1&&0>t.indexOf("Chrome");try{if(!n&&-1===e.indexOf("<foreignObject"))return oe.createObjectURL(new re.Blob([e],{type:"image/svg+xml;charset-utf-16"}))}catch{}return"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(e)}addButton(e){var t;let n,r=this,o=r.chart,i=o.renderer,a=j(null==(t=o.options.navigation)?void 0:t.buttonOptions,e),l=a.onclick,s=a.menuItems,c=a.symbolSize||12;if(!1===a.enabled||!a.theme)return;let u=o.styledMode?{}:a.theme,d=()=>{};l?d=function(e){e&&e.stopPropagation(),l.call(o,e,o)}:s&&(d=function(e){e&&e.stopPropagation(),r.contextMenu(h.menuClassName,s,h.translateX||0,h.translateY||0,h.width||0,h.height||0,h),h.setState(2)}),a.text&&a.symbol?u.paddingLeft=H(u.paddingLeft,30):a.text||O(u,{width:a.width,height:a.height,padding:0});let h=i.button(a.text||"",0,0,d,u,void 0,void 0,void 0,void 0,a.useHTML).addClass(e.className||"").attr({title:H(o.options.lang[a._titleKey||a.titleKey],"")});h.menuClassName=e.menuClassName||"highcharts-menu-"+r.btnCount++,a.symbol&&(n=i.symbol(a.symbol,Math.round((a.symbolX||0)-c/2),Math.round((a.symbolY||0)-c/2),c,c,{width:c,height:c}).addClass("highcharts-button-symbol").attr({zIndex:1}).add(h),o.styledMode||n.attr({stroke:a.symbolStroke,fill:a.symbolFill,"stroke-width":a.symbolStrokeWidth||1})),h.add(r.group).align(O(a,{width:h.width,x:H(a.x,r.buttonOffset)}),!0,"spacingBox"),r.buttonOffset+=((h.width||0)+(a.buttonSpacing||0))*("right"===a.align?-1:1),r.svgElements.push(h,n)}afterPrint(){let e=this.chart;if(!this.printReverseInfo)return;let{childNodes:t,origDisplay:n,resetParams:r}=this.printReverseInfo;this.moveContainers(e.renderTo),[].forEach.call(t,function(e,t){1===e.nodeType&&(e.style.display=n[t]||"")}),this.isPrinting=!1,r&&e.setSize.apply(e,r),delete this.printReverseInfo,ie.printingChart=void 0,A(e,"afterPrint")}beforePrint(){var e;let t=this.chart,n=Q.body,r=this.options.printMaxWidth,o={childNodes:n.childNodes,origDisplay:[],resetParams:void 0};this.isPrinting=!0,null==(e=t.pointer)||e.reset(void 0,0),A(t,"beforePrint"),r&&t.chartWidth>r&&(o.resetParams=[t.options.chart.width,void 0,!1],t.setSize(r,void 0,!1)),[].forEach.call(o.childNodes,function(e,t){1===e.nodeType&&(o.origDisplay[t]=e.style.display,e.style.display="none")}),this.moveContainers(n),this.printReverseInfo=o}contextMenu(e,t,n,r,o,i,a){var l,s,c;let u,d=this,p=d.chart,f=p.options.navigation,m=p.chartWidth,g=p.chartHeight,y="cache-"+e,v=Math.max(o,i),b=p[y];b||(d.contextMenuEl=p[y]=b=P("div",{className:e},{position:"absolute",zIndex:1e3,padding:v+"px",pointerEvents:"auto",...p.renderer.style},(null==(l=p.scrollablePlotArea)?void 0:l.fixedDiv)||p.container),u=P("ul",{className:"highcharts-menu"},p.styledMode?{}:{listStyle:"none",margin:0,padding:0},b),p.styledMode||N(u,O({MozBoxShadow:"3px 3px 10px #0008",WebkitBoxShadow:"3px 3px 10px #0008",boxShadow:"3px 3px 10px #0008"},(null==f?void 0:f.menuStyle)||{})),b.hideMenu=function(){N(b,{display:"none"}),a&&a.setState(0),p.exporting&&(p.exporting.openMenu=!1),N(p.renderTo,{overflow:"hidden"}),N(p.container,{overflow:"hidden"}),L(b.hideTimer),A(p,"exportMenuHidden")},null==(s=d.events)||s.push(M(b,"mouseleave",function(){b.hideTimer=re.setTimeout(b.hideMenu,500)}),M(b,"mouseenter",function(){L(b.hideTimer)}),M(Q,"mouseup",function(t){var n;(null==(n=p.pointer)?void 0:n.inClass(t.target,e))||b.hideMenu()}),M(b,"click",function(){var e;(null==(e=p.exporting)?void 0:e.openMenu)&&b.hideMenu()})),t.forEach(function(e){var t;if("string"==typeof e&&(null==(t=d.options.menuItemDefinitions)?void 0:t[e])&&(e=d.options.menuItemDefinitions[e]),D(e,!0)){let t;e.separator?t=P("hr",void 0,void 0,u):("viewData"===e.textKey&&d.isDataTableVisible&&(e.textKey="hideData"),t=P("li",{className:"highcharts-menu-item",onclick:function(t){t&&t.stopPropagation(),b.hideMenu(),"string"!=typeof e&&e.onclick&&e.onclick.apply(p,arguments)}},void 0,u),h().setElementHTML(t,e.text||p.options.lang[e.textKey]),p.styledMode||(t.onmouseover=function(){N(this,(null==f?void 0:f.menuItemHoverStyle)||{})},t.onmouseout=function(){N(this,(null==f?void 0:f.menuItemStyle)||{})},N(t,O({cursor:"pointer"},(null==f?void 0:f.menuItemStyle)||{})))),d.divElements.push(t)}}),d.divElements.push(u,b),d.menuHeight=b.offsetHeight,d.menuWidth=b.offsetWidth);let x={display:"block"};n+(d.menuWidth||0)>m?x.right=m-n-o-v+"px":x.left=n-v+"px",r+i+(d.menuHeight||0)>g&&"top"!==(null==(c=a.alignOptions)?void 0:c.verticalAlign)?x.bottom=g-r-v+"px":x.top=r+i-v+"px",N(b,x),N(p.renderTo,{overflow:""}),N(p.container,{overflow:""}),p.exporting&&(p.exporting.openMenu=!0),A(p,"exportMenuShown")}destroy(e){let t,n=e?e.target:this.chart,{divElements:r,events:o,svgElements:i}=this;i.forEach((e,r)=>{e&&(e.onclick=e.ontouchstart=null,n[t="cache-"+e.menuClassName]&&delete n[t],i[r]=e.destroy())}),i.length=0,this.group&&(this.group.destroy(),delete this.group),r.forEach(function(e,t){e&&(L(e.hideTimer),W(e,"mouseleave"),r[t]=e.onmouseout=e.onmouseover=e.ontouchstart=e.onclick=null,I(e))}),r.length=0,o&&(o.forEach(function(e){e()}),o.length=0)}async downloadSVG(e,t){let n,r={svg:e,exportingOptions:t,exporting:this};if(A(ie.prototype,"downloadSVG",r),r.defaultPrevented)return;let{type:o,filename:i,scale:a,libURL:l}=ie.prepareImageOptions(t);if("application/pdf"===o)throw Error("Offline exporting logic for PDF type is not found.");if("image/svg+xml"===o){if(void 0!==re.MSBlobBuilder){let t=new re.MSBlobBuilder;t.append(e),n=t.getBlob("image/svg+xml")}else n=ie.svgToDataURL(e);C(n,i)}else{n=ie.svgToDataURL(e);try{ie.objectURLRevoke=!0,C(await ie.imageToDataURL(n,a,o),i)}catch(t){if("No canvas found!"===t.message)throw t;if(e.length>1e8)throw Error("Input too long");let n=Q.createElement("canvas"),r=n.getContext("2d"),u=e.match(/^<svg[^>]*\s{,1000}width\s{,1000}=\s{,1000}\"?(\d+)\"?[^>]*>/),d=e.match(/^<svg[^>]*\s{0,1000}height\s{,1000}=\s{,1000}\"?(\d+)\"?[^>]*>/);if(r&&u&&d){let t=u[1]*a,h=d[1]*a;var s;n.width=t,n.height=h,re.canvg||(ie.objectURLRevoke=!0,await(s=l+"canvg.js",new Promise((e,t)=>{let n=x.getElementsByTagName("head")[0],r=x.createElement("script");r.type="text/javascript",r.src=s,r.onload=()=>{e()},r.onerror=()=>{let e=`Error loading script ${s}`;(0,c.error)(e),t(Error(e))},n.appendChild(r)}))),re.canvg.Canvg.fromString(r,e).start(),C(re.navigator.msSaveOrOpenBlob?n.msToBlob():n.toDataURL(o),i)}}finally{if(ie.objectURLRevoke)try{oe.revokeObjectURL(n)}catch{}}}}async exportChart(e,t){if((e=j(this.options,e)).local)await this.localExport(e,t||{});else{let n=await this.getSVGForExport(e,t);e.url&&await X.post(e.url,{filename:e.filename?e.filename.replace(/\//g,"-"):this.getFilename(),type:e.type,width:e.width,scale:e.scale,svg:n},e.fetchOptions)}}async fallbackToServer(e,t){!1===e.fallbackToExportServer?e.error?e.error(e,t):(0,c.error)(28,!0):"application/pdf"===e.type&&(e.local=!1,await this.exportChart(e))}getChartHTML(e){let t=this.chart;return e&&this.inlineStyles(),this.resolveCSSVariables(),t.container.querySelectorAll("canvas").forEach(function(e){let n=e.toDataURL("image/png"),r=e.parentNode,o=t.renderer.image(n,0,0,e.width,e.height);N(o.element,{width:e.style.width,height:e.style.height}),r.parentNode.insertBefore(o.element,r),r.remove()}),t.container.innerHTML}getFilename(){var e;let t=null==(e=this.chart.userOptions.title)?void 0:e.text,n=this.options.filename;return n?n.replace(/\//g,"-"):("string"==typeof t&&(n=t.toLowerCase().replace(/<\/?[^>]+(>|$)/g,"").replace(/[\s_]+/g,"-").replace(/[^a-z\d\-]/g,"").replace(/^[\-]+/g,"").replace(/[\-]+/g,"-").substr(0,24).replace(/[\-]+$/g,"")),(!n||n.length<5)&&(n="chart"),n)}getSVG(e,t){var n,r;let o,i,a=this.chart,l=j(a.options,e);l.plotOptions=j(a.userOptions.plotOptions,null==e?void 0:e.plotOptions),l.time=j(a.userOptions.time,null==e?void 0:e.time);let s=P("div",void 0,{position:"absolute",top:"-9999em",width:a.chartWidth+"px",height:a.chartHeight+"px"},Q.body),u=a.renderTo.style.width,d=a.renderTo.style.height,h=(null==(n=l.exporting)?void 0:n.sourceWidth)||l.chart.width||/px$/.test(u)&&parseInt(u,10)||(l.isGantt?800:600),p=(null==(r=l.exporting)?void 0:r.sourceHeight)||l.chart.height||/px$/.test(d)&&parseInt(d,10)||400;O(l.chart,{animation:!1,renderTo:s,forExport:!0,renderer:"SVGRenderer",width:h,height:p}),l.exporting&&(l.exporting.enabled=!1),delete l.data,l.series=[],a.series.forEach(function(e){var t;(i=j(e.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:e.visible})).isInternal||null==(t=null==l?void 0:l.series)||t.push(i)});let f={};a.axes.forEach(function(e){e.userOptions.internalKey||(e.userOptions.internalKey=(0,c.uniqueKey)()),l&&!e.options.isInternal&&(f[e.coll]||(f[e.coll]=!0,l[e.coll]=[]),l[e.coll].push(j(e.userOptions,{visible:e.visible,type:e.type,uniqueNames:e.uniqueNames})))}),l.colorAxis=a.userOptions.colorAxis;let m=t=>{var n;e&&["xAxis","yAxis","series"].forEach(function(n){e[n]&&t.update({[n]:e[n]})}),a.axes.forEach(function(n){let r=R(t.axes,e=>e.options.internalKey===n.userOptions.internalKey);if(r){var o;let t=n.getExtremes(),i=(z(o=(null==e?void 0:e[n.coll])||{})?o:[o])[0],a="min"in i?i.min:t.userMin,l="max"in i?i.max:t.userMax;(void 0!==a&&a!==r.min||void 0!==l&&l!==r.max)&&r.setExtremes(a??void 0,l??void 0,!0,!1)}});let r=t.exporting;return(null==r?void 0:r.options.applyStyleSheets)&&this.applyShadowDOMStyles(t),o=(null==r?void 0:r.getChartHTML(a.styledMode||(null==(n=null==l?void 0:l.exporting)?void 0:n.applyStyleSheets)))||"",A(a,"getSVG",{chartCopy:t}),o=ie.sanitizeSVG(o,l),l=void 0,t.destroy(),I(s),o};return t?new Promise(e=>new a.constructor(l||{},function(t){var n;null==(n=a.callback)||n.call(this,t),e(m(this))})):m(new a.constructor(l,a.callback))}applyShadowDOMStyles(e){let t,n=this.chart,r=[],o=n.container;for(;o&&(!(t=o.getRootNode())||"object"!=typeof t.host);)o=o.parentNode,t=null;null==t||t.querySelectorAll("style").forEach(t=>{let n=t.cloneNode(!0);e.container.appendChild(n),r.push(n)}),M(n,"getSVG",()=>{r.forEach(e=>{e.remove()})})}async getSVGForExport(e,t){let n=this.options;return await this.getSVG(j({chart:{borderRadius:0}},n.chartOptions,t,{exporting:{sourceWidth:(null==e?void 0:e.sourceWidth)||n.sourceWidth,sourceHeight:(null==e?void 0:e.sourceHeight)||n.sourceHeight}}),!0)}inlineStyles(){var e;let t,n=ie.inlineDenylist,r=ie.inlineAllowlist,o={},i=P("iframe",void 0,{width:"1px",height:"1px",visibility:"hidden"},Q.body),a=null==(e=i.contentWindow)?void 0:e.document;a&&a.body.appendChild(a.createElementNS(ne,"svg")),function e(i){let l,s,c,u,d,h,p={};if(a&&1===i.nodeType&&-1===ie.unstyledElements.indexOf(i.nodeName)){if(l=re.getComputedStyle(i,null),s="svg"===i.nodeName?{}:re.getComputedStyle(i.parentNode,null),!o[i.nodeName]){t=a.getElementsByTagName("svg")[0],c=a.createElementNS(i.namespaceURI,i.nodeName),t.appendChild(c);let e=re.getComputedStyle(c,null),n={};for(let t in e)t.length<1e3&&"string"==typeof e[t]&&!/^\d+$/.test(t)&&(n[t]=e[t]);o[i.nodeName]=n,"text"===i.nodeName&&delete o.text.fill,t.removeChild(c)}for(let e in l)(J||ee||te||Object.hasOwnProperty.call(l,e))&&function(e,t){if(u=d=!1,r.length){for(h=r.length;h--&&!d;)d=r[h].test(t);u=!d}for("transform"===t&&"none"===e&&(u=!0),h=n.length;h--&&!u;){if(t.length>1e3)throw Error("Input too long");u=n[h].test(t)||"function"==typeof e}!u&&(s[t]!==e||"svg"===i.nodeName)&&o[i.nodeName][t]!==e&&(ie.inlineToAttributes&&-1===ie.inlineToAttributes.indexOf(t)?p[t]=e:e&&i.setAttribute(ie.hyphenate(t),e))}(l[e],e);if(N(i,p),"svg"===i.nodeName&&i.setAttribute("stroke-width","1px"),"text"===i.nodeName)return;[].forEach.call(i.children||i.childNodes,e)}}(this.chart.container.querySelector("svg")),t.parentNode.removeChild(t),i.parentNode.removeChild(i)}async localExport(e,t){var n,r,o;let i,a,l,s=this.chart,c=null;if(ee&&s.styledMode&&!ie.inlineAllowlist.length&&ie.inlineAllowlist.push(/^blockSize/,/^border/,/^caretColor/,/^color/,/^columnRule/,/^columnRuleColor/,/^cssFloat/,/^cursor/,/^fill$/,/^fillOpacity/,/^font/,/^inlineSize/,/^length/,/^lineHeight/,/^opacity/,/^outline/,/^parentRule/,/^rx$/,/^ry$/,/^stroke/,/^textAlign/,/^textAnchor/,/^textDecoration/,/^transform/,/^vectorEffect/,/^visibility/,/^x$/,/^y$/),ee&&("application/pdf"===e.type||s.container.getElementsByTagName("image").length&&"image/svg+xml"!==e.type)||"application/pdf"===e.type&&[].some.call(s.container.getElementsByTagName("image"),function(e){let t=e.getAttribute("href");return""!==t&&"string"==typeof t&&0!==t.indexOf("data:")}))return void await this.fallbackToServer(e,Error("Image type not supported for this chart/browser."));let u=M(s,"getSVG",e=>{a=e.chartCopy.options,l=(i=e.chartCopy.container.cloneNode(!0))&&i.getElementsByTagName("image")||[]});try{let s;for(let n of(await this.getSVGForExport(e,t),l?Array.from(l):[]))if(c=n.getAttributeNS("http://www.w3.org/1999/xlink","href")){ie.objectURLRevoke=!1;let t=await ie.imageToDataURL(c,(null==e?void 0:e.scale)||1,(null==e?void 0:e.type)||"image/png");n.setAttributeNS("http://www.w3.org/1999/xlink","href",t)}else n.parentNode.removeChild(n);let u=null==i?void 0:i.querySelector("svg");u&&!(null==(o=null==(r=null==(n=e.chartOptions)?void 0:n.chart)?void 0:r.style)?void 0:o.fontFamily)&&await ie.inlineFonts(u);let d=(s=null==i?void 0:i.innerHTML,ie.sanitizeSVG(s||"",a));if(d.indexOf("<foreignObject")>-1&&"image/svg+xml"!==e.type&&(ee||"application/pdf"===e.type))throw Error("Image type not supported for charts with embedded HTML");return await this.downloadSVG(d,O({filename:this.getFilename()},e)),d}catch(t){await this.fallbackToServer(e,t)}finally{u()}}moveContainers(e){let t=this.chart,{scrollablePlotArea:n}=t;(n?[n.fixedDiv,n.scrollingContainer]:[t.container]).forEach(function(t){e.appendChild(t)})}print(){let e=this.chart;this.isPrinting||(ie.printingChart=e,te||this.beforePrint(),setTimeout(()=>{re.focus(),re.print(),te||setTimeout(()=>{var t;null==(t=e.exporting)||t.afterPrint()},1e3)},1))}render(){let e=this,{chart:t,options:n}=e,r=(null==e?void 0:e.isDirty)||!(null==e?void 0:e.svgElements.length);e.buttonOffset=0,e.isDirty&&e.destroy(),r&&!1!==n.enabled&&(e.events=[],e.group||(e.group=t.renderer.g("exporting-group").attr({zIndex:3}).add()),F(null==n?void 0:n.buttons,function(t){e.addButton(t)}),e.isDirty=!1)}resolveCSSVariables(){Array.from(this.chart.container.querySelectorAll("*")).forEach(e=>{["color","fill","stop-color","stroke"].forEach(t=>{var n;let r=e.getAttribute(t);(null==r?void 0:r.includes("var("))&&e.setAttribute(t,getComputedStyle(e).getPropertyValue(t));let o=null==(n=e.style)?void 0:n[t];(null==o?void 0:o.includes("var("))&&(e.style[t]=getComputedStyle(e).getPropertyValue(t))})})}update(e,t){this.isDirty=!0,j(!0,this.options,e),H(t,!0)&&this.chart.redraw()}}ie.inlineAllowlist=[],ie.inlineDenylist=[/-/,/^(clipPath|cssText|d|height|width)$/,/^font$/,/[lL]ogical(Width|Height)$/,/^parentRule$/,/^(cssRules|ownerRules)$/,/perspective/,/TapHighlightColor/,/^transition/,/^length$/,/^\d+$/],ie.inlineToAttributes=["fill","stroke","strokeLinecap","strokeLinejoin","strokeWidth","textAnchor","x","y"],ie.loadEventDeferDelay=150*!!ee,ie.unstyledElements=["clipPath","defs","desc"],function(e){function t(e){let t=e.exporting;t&&(t.render(),M(e,"redraw",function(){var e;null==(e=this.exporting)||e.render()}),M(e,"destroy",function(){var e;null==(e=this.exporting)||e.destroy()}))}function n(){let t=this;t.options.exporting&&(t.exporting=new e(t,t.options.exporting),y.compose(t).navigation.addUpdate((e,n)=>{t.exporting&&(t.exporting.isDirty=!0,j(!0,t.options.navigation,e),H(n,!0)&&t.redraw())}))}function r({alignTo:e,key:t,textPxLength:n}){var r,o,i;let a=this.options.exporting,{align:l,buttonSpacing:s=0,verticalAlign:c,width:u=0}=j(null==(r=this.options.navigation)?void 0:r.buttonOptions,null==(o=null==a?void 0:a.buttons)?void 0:o.contextButton),d=e.width-n,h=u+s;((null==a?void 0:a.enabled)??1)&&"title"===t&&"right"===l&&"top"===c&&d<2*h&&(d<h?e.width-=h:"left"!==(null==(i=this.title)?void 0:i.alignValue)&&(e.x-=h-d/2))}e.compose=function(o,i){E.compose(i),G.compose(o),_(Z,"Exporting")&&(O(f().prototype,{exportChart:async function(e,t){var n;await(null==(n=this.exporting)?void 0:n.exportChart(e,t))},getChartHTML:function(e){var t;return null==(t=this.exporting)?void 0:t.getChartHTML(e)},getFilename:function(){var e;return null==(e=this.exporting)?void 0:e.getFilename()},getSVG:function(e){var t;return null==(t=this.exporting)?void 0:t.getSVG(e,!1)},print:function(){var e;return null==(e=this.exporting)?void 0:e.print()}}),o.prototype.callbacks.push(t),M(o,"afterInit",n),M(o,"layOutTitle",r),te&&re.matchMedia("print").addListener(function(t){var n,r;e.printingChart&&(t.matches?null==(n=e.printingChart.exporting)||n.beforePrint():null==(r=e.printingChart.exporting)||r.afterPrint())}),Y(S))}}(ie||(ie={}));let ae=u();ae.Exporting=ie,ae.HttpUtilities=ae.HttpUtilities||X,ae.ajax=ae.HttpUtilities.ajax,ae.getJSON=ae.HttpUtilities.getJSON,ae.post=ae.HttpUtilities.post,ie.compose(ae.Chart,ae.Renderer);let le=u();return s.default})())}(UK));var ZK,QK={exports:{}};var JK=(ZK||(ZK=1,function(e){var t;"undefined"!=typeof self&&self,e.exports=(t=p(),function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){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)}function o(e){return s(e)||l(e)||a(e)||i()}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function l(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(e){if(Array.isArray(e))return c(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"HighchartsReact",function(){return f});var d=n(1),h=n.n(d),p="undefined"!=typeof window?d.useLayoutEffect:d.useEffect,f=Object(d.memo)(Object(d.forwardRef)(function(e,t){var n=Object(d.useRef)(),i=Object(d.useRef)(),a=Object(d.useRef)(e.constructorType),l=Object(d.useRef)(e.highcharts);return p(function(){function t(){var t=e.highcharts||"object"===("undefined"==typeof window?"undefined":u(window))&&window.Highcharts,r=e.constructorType||"chart";t?t[r]?e.options?i.current=t[r](n.current,e.options,e.callback):console.warn('The "options" property was not passed.'):console.warn('The "constructorType" property is incorrect or some required module is not imported.'):console.warn('The "highcharts" property was not passed.')}if(i.current){if(!1!==e.allowChartUpdate)if(e.constructorType!==a.current||e.highcharts!==l.current)a.current=e.constructorType,l.current=e.highcharts,t();else if(!e.immutable&&i.current){var r;(r=i.current).update.apply(r,[e.options].concat(o(e.updateArgs||[!0,!0])))}else t()}else t()},[e.options,e.allowChartUpdate,e.updateArgs,e.containerProps,e.highcharts,e.constructorType]),p(function(){return function(){i.current&&(i.current.destroy(),i.current=null)}},[]),Object(d.useImperativeHandle)(t,function(){return{get chart(){return i.current},container:n}},[]),h.a.createElement("div",r({},e.containerProps,{ref:n}))}));t.default=f},function(e,n){e.exports=t}]))}(QK)),QK.exports);const eV=l(JK),tV="breakdown-level",nV=["kingdom","phylum","class","order","family","genus","species"],rV=e=>e?`Not assigned ${e}`:"Not assigned",oV=e=>{if(!e||0===e.length)return[];const t=[...e].sort((e,t)=>(t.species||0)-(e.species||0));return t.length<=100?t:t.slice(0,100)},iV=({taxon:e,datasetKey:t,rank:n=[],dataset:r,level:o=1,showLevelSwitch:i=!1,darkMode:a})=>{const l=(e=>{const t=kR()[e];return t&&t.onNavigate?t.onNavigate:wR})("taxon"),[s,c]=f.useState(null),[u,d]=f.useState(!1),[h,p]=f.useState(!1),[m,g]=f.useState(()=>i?qR(tV,o):o);f.useEffect(()=>{i||g(o)},[o,i]),f.useEffect(()=>{i&&XR(tV,m)},[m,i]),f.useEffect(()=>{(null==e?void 0:e.id)&&t&&y()},[e,t,m]);const y=async()=>{d(!0);try{const r=await(async()=>{const n=await fR(`${gR.dataApi}dataset/${t}/nameusage/search?TAXON_ID=${encodeURIComponent(e.id)}&facet=rank&status=accepted&status=provisionally%20accepted&limit=0`);return rR(zI(n,"data.facets.rank",[]),"value")})(),o=nV;let i,a=o.indexOf(zI(e,"name.rank"));if(-1===a){let t=n.indexOf(zI(e,"name.rank"))+1;for(;-1===a&&t<n.length-1;){const e=o.indexOf(n[t]);e>-1&&(a=e-1),t++}}let l=a+1;for(;!i&&l<o.length;){const e=zI(o,`[${l}]`);e&&zI(r,`${e}.count`,0)>0?i=e:l++}if(!i)return p(!0),void d(!1);const s=(await fR(`${gR.dataApi}dataset/${t}/taxon/${e.id}/breakdown?level=${m}`)).data||[],c=zI(r,"species.count",0);d(!1),v(s,c)}catch(e){d(!1)}},v=(t,n)=>{const o=r.doi?"https://doi.org/"+r.doi:null,i=qK.getOptions().colors,s=("boolean"==typeof a?a:"undefined"!=typeof window&&"function"==typeof window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)?"#1f1f1f":"#ffffff",u={click:e=>{e.point._id&&l(e.point._id)}},d=((e,t)=>{const n=oV(e||[]),r=n.reduce((e,t)=>e+(t.species||0),0);return r>=t?n:[...n,{name:rV(zI(n,"[0].rank","")),species:t-r,children:[]}]})(t,n).map((e,t)=>({name:e.name,y:e.species,_id:e.id,color:i[t%i.length],_kids:e.children})),h=[],p=m>=2&&d.some(e=>e._kids&&e._kids.length>0);p&&d.forEach(e=>{const t=oV(e._kids||[]),n=t.reduce((e,t)=>e+(t.species||0),0);t.forEach((n,r)=>{const o=.4*(t.length>1?r/(t.length-1):0)-.1;h.push({name:n.name,y:n.species,_id:n.id,color:qK.color(e.color).brighten(o).get()})}),n<e.y&&h.push({name:rV(zI(t,"[0].rank","")),y:e.y-n,color:s,borderColor:s,borderWidth:0,dataLabels:{enabled:!1}})});const f=n||d.reduce((e,t)=>e+t.y,0),g=p?{formatter:function(){return this.y>f/10?this.point.name:null},distance:-30,style:{color:"contrast",textOutline:"1px contrast",fontWeight:"bold"}}:{formatter:function(){return this.y>1?"<b>"+this.point.name+":</b> "+this.y.toLocaleString("en-GB"):null}},y=[{name:"Species",data:(v=d,v.map(({_kids:e,...t})=>t)),size:p?"60%":"85%",dataLabels:g,point:{events:u}}];var v;p&&y.push({name:"Species",data:h,size:"85%",innerSize:"60%",dataLabels:{formatter:function(){return this.y>1?"<b>"+this.point.name+":</b> "+this.y.toLocaleString("en-GB"):null}},point:{events:u}}),c({chart:{type:"pie"},credits:{text:`${e.name.scientificName} in ${r.title}${r.version?" ("+r.version+")":""}. ${(r.doi?"DOI:"+r.doi:null)||r.url||""}`,href:o||r.url||""},title:{text:""},plotOptions:{pie:{shadow:!1,center:["50%","50%"]}},tooltip:{},series:y,responsive:{rules:[{condition:{maxWidth:400},chartOptions:{series:p?[{},{dataLabels:{enabled:!1}}]:[{}]}}]},exporting:{chartOptions:{plotOptions:{series:{dataLabels:{enabled:!0}}}},fallbackToExportServer:!1}})};if(h)return null;const b=i?j.jsx(YS,{size:"small",checked:2===m,onChange:e=>g(e?2:1),checkedChildren:"lvl2",unCheckedChildren:"lvl1",style:{position:"absolute",top:11,right:44,zIndex:2,background:2===m?"#8c8c8c":"#bfbfbf"}}):null;return j.jsxs("div",{style:{position:"relative"},children:[b,u||!s?j.jsxs(Lw,{style:{padding:"48px"},children:[j.jsx(Aw,{flex:"auto"}),j.jsx(Aw,{children:j.jsx(mS,{size:"large"})}),j.jsx(Aw,{flex:"auto"})]}):j.jsx(eV,{highcharts:qK,options:s})]})},aV=({info:e,datasetKey:t})=>{var n,r;const[o,i]=f.useState({});f.useEffect(()=>{var t;(null==(t=null==e?void 0:e.source)?void 0:t.secondarySources)&&l()},[e]);const a=new xR(e=>$R(e,t)),l=async()=>{var t;const n={};try{await Promise.all(Object.keys((null==(t=null==e?void 0:e.source)?void 0:t.secondarySources)||{}).map(t=>{var r;return a.load(null==(r=null==e?void 0:e.source)?void 0:r.secondarySources[t].datasetKey).then(e=>{n[e.key]=e})}))}catch(e){console.log(e)}i(n)};return(null==(n=null==e?void 0:e.source)?void 0:n.secondarySources)?Object.keys((null==(r=null==e?void 0:e.source)?void 0:r.secondarySources)||{}).map(t=>{var n,r,i,a,l,s,c,u,d,h,p,f,g;return j.jsxs(m.Fragment,{children:[cR(t),":"," ",j.jsx("a",{href:`https://www.checklistbank.org/dataset/${null==(i=null==(r=null==(n=null==e?void 0:e.source)?void 0:n.secondarySources)?void 0:r[t])?void 0:i.datasetKey}/taxon/${encodeURIComponent(null==(s=null==(l=null==(a=null==e?void 0:e.source)?void 0:a.secondarySources)?void 0:l[t])?void 0:s.id)}`,children:(null==(h=o[null==(d=null==(u=null==(c=null==e?void 0:e.source)?void 0:c.secondarySources)?void 0:u[t])?void 0:d.datasetKey])?void 0:h.title)||(null==(g=null==(f=null==(p=null==e?void 0:e.source)?void 0:p.secondarySources)?void 0:f[t])?void 0:g.datasetKey)})]},t)}):null};ES.config({getContainer:()=>document.getElementsByClassName("catalogue-of-life")[0]});const lV=e=>{var t,n;return(null==(n=null==(t=null==e?void 0:e.response)?void 0:t.data)?void 0:n.message)||(null==e?void 0:e.message)||"An error occurred"},sV=({error:e})=>j.jsx("div",{style:{margin:"6px"},children:j.jsx("span",{children:lV(e)})}),cV=({datasetKey:e,taxonKey:t})=>{const[n]=nk.useForm(),[r,o]=f.useState(!1),[i,a]=f.useState(!1),[l,s]=f.useState(null),[c,u]=f.useState(null),d=n=>{mR.post(`${gR.dataApi}dataset/${e}/nameusage/${t}/feedback`,n).then(e=>{console.log(e),o(!1),u(e.data)}).catch(e=>{o(!1),s(e)})};return j.jsxs(j.Fragment,{children:[j.jsxs(MS,{getContainer:".catalogue-of-life",title:"Feedback",open:i,destroyOnClose:!0,onOk:()=>{if(c)return a(!1),void u(null);o(!0),n.validateFields().then(e=>(n.resetFields(),d(e)))},onCancel:()=>a(!1),confirmLoading:r,children:[l&&j.jsx(pl,{style:{marginBottom:"10px"},message:j.jsx(sV,{error:l}),type:"error",onClose:()=>s(null),closable:!0}),c&&j.jsxs("p",{children:["Thank you, your feedback was saved. You can follow for progress and further discussion ",j.jsx("a",{target:"_blank",href:c,children:"here."})]}),!c&&j.jsxs(j.Fragment,{children:[" ",j.jsxs("p",{children:["We will create a ",j.jsx("a",{href:"https://github.com/CatalogueofLife/data/issues",target:"_blank",children:"github issue"})," which you can monitor or use to further discuss with us."]}),j.jsx(mS,{spinning:r,children:j.jsxs(nk,{labelCol:{span:6},wrapperCol:{span:18},form:n,onFinish:d,onFinishFailed:({errorFields:e})=>{n.scrollToField(e[0].name)},children:[j.jsx(nk.Item,{name:"message",label:"Message",rules:[{required:!0}],children:j.jsx(kk.TextArea,{rows:8})}),j.jsx(nk.Item,{name:"email",label:"Email (optional)",rules:[{type:"email"}],children:j.jsx(kk,{type:"email"})})]})})]})]}),j.jsxs(Lw,{children:[j.jsx(Aw,{flex:"auto"}),j.jsx(Aw,{}),j.jsxs(ph,{href:`https://www.checklistbank.org/dataset/${e}/download?taxonID=${t}`,style:{marginTop:"12px",marginRight:"4px"},size:"small",children:["Download ",j.jsx(PP,{})]}),j.jsxs(ph,{style:{marginTop:"12px"},size:"small",onClick:()=>a(!0),children:["Feedback ",j.jsx(cL,{})]})]})]})};lx.extend(jK);class uV extends m.Component{constructor(e){super(e),o(this,"componentDidMount",()=>{const{taxonKey:e}=this.props;this.getCatalogue(),e&&(this.getTaxon(e),this.getInfo(e),this.getRank(e),this.getIncludes(e),this.getNomStatus(e))}),o(this,"getTaxon",e=>{const{datasetKey:t,pageTitleTemplate:n}=this.props;this.setState({loading:!0}),fR(`${gR.dataApi}dataset/${t}/taxon/${e}`).then(e=>{let r=[e];return n&&zI(e,"data.label")&&(document.title=n.replace("__taxon__",e.data.label)),zI(e,"data.name.publishedInId")&&r.push(fR(`${gR.dataApi}dataset/${t}/reference/${zI(e,"data.name.publishedInId")}`).then(t=>(e.data.name.publishedIn=t.data,e))),zI(e,"data.name")&&r.push(fR(`${gR.dataApi}dataset/${t}/name/${zI(e,"data.name.id")}/relations`).then(n=>(e.data.name.relations=n.data,Promise.allSettled(n.data.map(e=>fR(`${gR.dataApi}dataset/${t}/name/${e.relatedNameId}`).then(t=>{e.relatedName=t.data}))).then(e=>e.filter(e=>e.status="fulfilled").map(e=>e.value))))),zI(e,"data.sectorKey")&&fR(`${gR.dataApi}dataset/${t}/sector/${zI(e,"data.sectorKey")}`).then(e=>{fR(`${gR.dataApi}dataset/${t}/logo/source/${zI(e,"data.subjectDatasetKey")}`).then(()=>{this.setState({logoUrl:`${gR.dataApi}dataset/${t}/logo/source/${zI(e,"data.subjectDatasetKey")}?size=MEDIUM`})}).catch(()=>{}),fR(`${gR.dataApi}dataset/${t}/source/${zI(e,"data.subjectDatasetKey")}`).then(e=>{this.setState({sourceDataset:e.data})})}),Promise.allSettled(r).then(e=>e.filter(e=>e.status="fulfilled").map(e=>e.value))}).then(e=>{this.setState({taxonLoading:!1,taxon:e[0].data,taxonError:null})}).catch(t=>{404===zI(t,"response.status")?this.fetchSynonymAndRedirect(e):this.setState({taxonLoading:!1,taxonError:t,taxon:null})})}),o(this,"getCatalogue",()=>{const{datasetKey:e}=this.props;fR(`${gR.dataApi}dataset/${e}`).then(e=>{this.setState({catalogue:e.data})}).catch(e=>{})}),o(this,"datasetLoader",new xR(e=>$R(e,this.props.datasetKey))),o(this,"sectorLoader",new xR(e=>BR(e,this.props.datasetKey))),o(this,"decorateWithSectorsAndDataset",async e=>{const{datasetKey:t}=this.props,n={};for(const r of["misapplied","heterotypic","homotypic"].filter(t=>!!e[t]))await Promise.allSettled(e[r].filter(e=>!!e.sectorKey).map(e=>this.sectorLoader.load(e.sectorKey,t).then(t=>(e.sector=t,this.datasetLoader.load(t.subjectDatasetKey).then(t=>{e.sourceDatasetKey=t.key,n[t.key]=t})))));if(null==e?void 0:e.heterotypicGroups)for(const r of null==e?void 0:e.heterotypicGroups)await Promise.allSettled(r.filter(e=>!!e.sectorKey).map(e=>this.sectorLoader.load(e.sectorKey,t).then(t=>(e.sector=t,this.datasetLoader.load(t.subjectDatasetKey).then(t=>{e.sourceDatasetKey=t.key,n[t.key]=t})))));return Object.keys(n).length>0?n:null}),o(this,"getInfo",async e=>{var t,n,r,o,i,a;const{datasetKey:l}=this.props;try{const s=await fR(`${gR.dataApi}dataset/${l}/taxon/${e}/info`);let c={};zI(s,"data.references")&&(Object.keys(s.data.references).forEach((e,t)=>{c[e]=(t+1).toString()}),await Promise.allSettled(Object.keys(s.data.references).map(e=>s.data.references[e]).filter(e=>!!e.sectorKey).map(e=>this.sectorLoader.load(e.sectorKey).then(t=>(e.sector=t,this.datasetLoader.load(t.subjectDatasetKey).then(t=>{e.sourceDataset=t})))))),(null==(t=null==s?void 0:s.data)?void 0:t.vernacularNames)&&await Promise.allSettled(s.data.vernacularNames.filter(e=>!!e.sectorKey).map(e=>this.sectorLoader.load(e.sectorKey).then(t=>{e.sector=t,e.sourceDatasetKey=t.subjectDatasetKey}))),(null==(n=null==s?void 0:s.data)?void 0:n.distributions)&&await Promise.allSettled(s.data.distributions.filter(e=>!!e.sectorKey).map(e=>this.sectorLoader.load(e.sectorKey).then(t=>{e.sector=t,e.sourceDatasetKey=t.subjectDatasetKey})));let u=zI(s,"data.synonyms")?await this.decorateWithSectorsAndDataset(zI(s,"data.synonyms")):null;(null==(r=null==s?void 0:s.data)?void 0:r.nameRelations)&&(null==(o=null==s?void 0:s.data)?void 0:o.names)&&(null==(i=null==s?void 0:s.data)||i.nameRelations.forEach(e=>{var t,n,r,o;e.relatedName=null==(n=null==(t=null==s?void 0:s.data)?void 0:t.names)?void 0:n[null==e?void 0:e.relatedNameId],e.name=null==(o=null==(r=null==s?void 0:s.data)?void 0:r.names)?void 0:o[null==e?void 0:e.nameId]})),this.setState({infoLoading:!1,info:s.data,classification:null==(a=null==s?void 0:s.data)?void 0:a.classification,infoError:null,referenceIndexMap:c,sourceDatasetKeyMap:u})}catch(t){404===zI(t,"response.status")?this.fetchSynonymAndRedirect(e):this.setState({infoLoading:!1,infoError:t,info:null})}}),o(this,"getRank",()=>{fR(`${gR.dataApi}vocab/rank`).then(e=>this.setState({rank:e.data.map(e=>e.name)}))}),o(this,"getNomStatus",()=>{fR(`${gR.dataApi}vocab/nomstatus`).then(e=>this.setState({nomStatus:e.data.reduce((e,t)=>(e[t.name]=t,e),{})}))}),o(this,"getIncludes",e=>{const{datasetKey:t}=this.props;fR(`${gR.dataApi}dataset/${t}/nameusage/search?TAXON_ID=${e}&facet=rank&status=accepted&status=provisionally%20accepted&limit=0`).then(e=>{this.setState({includesLoading:!1,includes:zI(e,"data.facets.rank")||[]})}).catch(e=>{this.setState({includesLoading:!1,includes:[]})})}),o(this,"fetchSynonymAndRedirect",e=>{var t,n;const{datasetKey:r}=this.props,o=null==(n=null==(t=this.context)?void 0:t.taxon)?void 0:n.onNavigate;fR(`${gR.dataApi}dataset/${r}/synonym/${e}`).then(e=>{const t=zI(e,"data.accepted.id");t&&o&&o(t)}).catch(e=>{404===zI(e,"response.status")&&this.setState({status:404})})}),dR(this.props.auth),this.state={taxon:null,info:null,taxonLoading:!0,datasetLoading:!0,infoLoading:!0,infoError:null,taxonError:null,verbatimLoading:!0,verbatimError:null,verbatim:null,logoUrl:null,sourceDataset:null,includes:[],rank:[],nomStatus:null,catalogue:null,referenceIndexMap:{},sourceDatasetKeyMap:null}}componentDidUpdate(e){if(e.taxonKey!==this.props.taxonKey&&this.props.taxonKey){const e=this.props.taxonKey;this.getTaxon(e),this.getInfo(e),this.getRank(e),this.getIncludes(e),this.getNomStatus(e)}}render(){var e,t,n,r,o,i,a,l,s,c,u,d,h,p,f,g,y,v,b,x,w,C,k,S,E,$,T,M,P;const{datasetKey:N,showDistributionMap:I,gbifChecklistKey:O}=this.props,{taxon:A,info:R,classification:L,sourceDataset:B,includes:z,rank:D,nomStatus:F,taxonError:H,synonymsError:_,classificationError:W,infoError:K,status:V,catalogue:G,referenceIndexMap:q}=this.state,X=D?D.indexOf("genus"):-1,U=zI(R,"synonyms.homotypic",[]);zI(R,"synonyms.heterotypic",[]);return zI(R,"synonyms.misapplied",[]),U.map(e=>({...e,__homotypic:!0})),404===V?j.jsx(_K,{}):j.jsx(m.Fragment,{children:j.jsxs("div",{className:"catalogue-of-life",style:{padding:24,minHeight:280,margin:"16px 0",fontSize:"12px"},children:[H&&j.jsx(pl,{message:j.jsx(LR,{error:H}),type:"error"}),A&&j.jsxs(Lw,{align:"bottom",children:[j.jsx(Aw,{flex:"auto",children:j.jsxs("div",{style:{marginLeft:(null==(e=null==R?void 0:R.usage)?void 0:e.merged)?"-22px":0},children:[(null==(t=null==R?void 0:R.usage)?void 0:t.merged)&&j.jsx(OR,{style:{marginBottom:"10px"},createdBy:null==(n=null==R?void 0:R.usage)?void 0:n.createdBy,datasetKey:null==(r=null==R?void 0:R.usage)?void 0:r.datasetKey,verbatimSourceKey:null==(o=null==R?void 0:R.usage)?void 0:o.verbatimSourceKey,sourceDatasetKey:null==(i=null==R?void 0:R.source)?void 0:i.sourceDatasetKey,sourceId:null==(a=null==R?void 0:R.source)?void 0:a.sourceId}),j.jsx("h1",{style:{fontSize:"30px",fontWeight:"400",paddingLeft:"10px",display:"inline",textTransform:"none"},dangerouslySetInnerHTML:{__html:A.labelHtml}})]})}),j.jsxs(Aw,{span:1,children:[j.jsx("a",{href:""}),A.provisional&&j.jsx(xP,{color:"red",children:"Provisional"})]}),B&&j.jsx(Aw,{span:5,style:{textAlign:"right"},children:j.jsx(HK,{auth:this.props.auth,style:{maxWidth:"100%",height:"auto",marginRight:"8px"},datasetKey:N,sourceDatasetKey:B.key})})]}),zI(A,"id")&&j.jsxs(w_,{md:5,label:zI(this.props,"identifierLabel","Identifier"),children:[zI(A,"id")," ",j.jsx("a",{href:`https://www.checklistbank.org/dataset/${N}/taxon/${zI(A,"id")}`,children:j.jsx(iL,{})}),j.jsx(Jy,{title:"Download data for this taxon and descendants",getPopupContainer:()=>document.getElementById(`col-download-${zI(A,"id")}`)||document.body,children:j.jsx("a",{style:{marginLeft:"5px"},id:`col-download-${zI(A,"id")}`,target:"_blank",href:`http://checklistbank.org/dataset/${N}/download?taxonID=${encodeURIComponent(zI(A,"id"))}`,children:j.jsx(PP,{})})})]}),zI(A,"labelHtml")&&j.jsx(w_,{md:5,label:"Name",children:j.jsx("span",{dangerouslySetInnerHTML:{__html:A.labelHtml}})}),zI(A,"name.publishedIn.citation")&&j.jsxs(w_,{md:5,label:"Published in",children:[zI(R,"source.secondarySources['published in']")&&j.jsx(OR,{sourceDatasetKey:zI(R,"source.secondarySources['published in'].datasetKey"),sourceId:zI(R,"source.secondarySources['published in'].id")}),zI(A,"name.publishedIn.citation")]}),zI(A,"status")&&j.jsxs(w_,{md:5,label:"Checklist status",children:[`${zI(A,"status")} ${zI(A,"name.rank")}`,(null==(l=null==R?void 0:R.decisions)?void 0:l[null==A?void 0:A.id])&&j.jsxs(j.Fragment,{children:[" with"," ",null==(c=null==(s=null==R?void 0:R.decisions)?void 0:s[null==A?void 0:A.id])?void 0:c.mode," ","decision",j.jsx(Jj,{style:{marginLeft:"10px"},decision:null==(u=null==R?void 0:R.decisions)?void 0:u[null==A?void 0:A.id]})]})]}),zI(A,"name.nomStatus")&&F&&j.jsx(w_,{md:5,label:"Nomenclatural Status",children:F[zI(A,"name.nomStatus")][zI(A,"name.code"),"zoological"]}),K&&j.jsx(pl,{message:j.jsx(LR,{error:K}),type:"error"}),zI(R,"synonyms")&&j.jsx(w_,{md:5,label:"Synonyms and combinations",children:j.jsx(y_,{primarySource:B,data:zI(R,"synonyms"),decisions:zI(R,"decisions"),references:zI(R,"references"),typeMaterial:zI(R,"typeMaterial"),referenceIndexMap:q,style:{marginTop:"-3px"},datasetKey:N})}),zI(R,"typeMaterial")&&R.typeMaterial[null==(h=null==(d=null==R?void 0:R.usage)?void 0:d.name)?void 0:h.id]&&j.jsx(w_,{md:5,label:"Type material",children:j.jsx(f_,{data:zI(R,"typeMaterial"),nameID:zI(A,"name.id")})}),zI(R,"nameRelations")&&R.nameRelations.filter(e=>(null==e?void 0:e.usageId)===(null==A?void 0:A.id)).length>0&&j.jsx(wW,{md:5,style:{marginTop:"-3px"},data:R.nameRelations.filter(e=>(null==e?void 0:e.usageId)===(null==A?void 0:A.id))}),zI(R,"nameRelations")&&R.nameRelations.filter(e=>(null==e?void 0:e.usageId)!==(null==A?void 0:A.id)).length>0&&j.jsx(wW,{md:5,reverse:!0,style:{marginTop:"-3px"},data:R.nameRelations.filter(e=>(null==e?void 0:e.usageId)!==(null==A?void 0:A.id))}),_&&j.jsx(pl,{message:j.jsx(LR,{error:_}),type:"error"}),W&&j.jsx(pl,{message:j.jsx(LR,{error:W}),type:"error"}),L&&j.jsx(w_,{md:5,label:"Classification",children:j.jsx(bW,{style:{marginTop:"-3px",marginLeft:"-3px"},data:L,taxon:A,datasetKey:N})}),(A&&D.indexOf(zI(A,"name.rank"))<X&&D.indexOf(zI(A,"name.rank"))>-1||"unranked"===zI(A,"name.rank")&&"Biota"===zI(A,"name.scientificName"))&&j.jsx(w_,{md:5,label:"Breakdown",children:j.jsx(iV,{taxon:A,datasetKey:N,rank:D,dataset:G,showLevelSwitch:!0})}),z.length>1&&D&&A&&j.jsx(w_,{md:5,label:"Statistics",children:j.jsx(FK,{style:{marginTop:"-3px",marginLeft:"-3px"},data:z,rank:D,taxon:A})}),zI(R,"vernacularNames")&&A&&j.jsx(w_,{md:5,label:"Vernacular names",children:j.jsx(v_,{style:{marginTop:"-3px",marginLeft:"-3px"},data:R.vernacularNames,references:zI(R,"references"),datasetKey:A.datasetKey})}),(zI(R,"distributions")||I&&O&&A)&&j.jsx(yW,{label:"Distributions",md:5,data:(null==R?void 0:R.distributions)||[],datasetKey:N,showDistributionMap:I,focalTaxon:A,rankOrder:D,gbifChecklistKey:O}),zI(A,"environments")&&j.jsx(w_,{md:5,label:"Environment(s)",children:zI(A,"environments").join(", ")}),zI(A,"remarks")&&j.jsx(w_,{md:5,label:"Additional Data",children:A.remarks}),j.jsx(Lw,{children:zI(A,"accordingTo")&&j.jsx(Aw,{span:12,children:j.jsxs(w_,{md:10,label:"According to",children:[`${zI(A,"accordingTo")}`,zI(A,"accordingToDate")&&`, ${lx(zI(A,"accordingToDate")).format("LL")}`]})})}),zI(A,"scrutinizer")&&j.jsx(Aw,{span:12,children:j.jsx(w_,{md:10,label:"Taxonomic scrutiny",children:`${zI(A,"scrutinizer")}${zI(A,"scrutinizerDate")?", "+zI(A,"scrutinizerDate"):""}`})}),zI(B,"title")&&j.jsx(w_,{md:5,label:"Source",children:j.jsxs("div",{style:{display:"inline-block"},children:[(null==(p=null==R?void 0:R.usage)?void 0:p.merged)&&j.jsx(OR,{createdBy:null==(f=null==R?void 0:R.usage)?void 0:f.createdBy,datasetKey:null==(g=null==R?void 0:R.usage)?void 0:g.datasetKey,verbatimSourceKey:null==(y=null==R?void 0:R.usage)?void 0:y.verbatimSourceKey,sourceDatasetKey:null==(v=null==R?void 0:R.source)?void 0:v.sourceDatasetKey,sourceId:null==(b=null==R?void 0:R.source)?void 0:b.sourceId})," ",(null==R?void 0:R.source)&&(null==(x=null==R?void 0:R.source)?void 0:x.sourceId)&&j.jsxs(j.Fragment,{children:[j.jsx("a",{href:`https://www.checklistbank.org/dataset/${null==(w=null==R?void 0:R.source)?void 0:w.sourceDatasetKey}/taxon/${null==(C=null==R?void 0:R.source)?void 0:C.sourceId}`,children:null==(k=null==R?void 0:R.source)?void 0:k.sourceId})," ","in"," "]}),j.jsx(ER,{to:"source",args:zI(B,"key"),children:`${zI(B,"alias")}: ${zI(B,"title")}`}),j.jsx("span",{style:{marginLeft:"10px"},children:zI(B,"completeness")&&zI(B,"completeness")+"%"}),zI(B,"confidence")&&j.jsx(HS,{style:{marginLeft:"10px"},value:zI(B,"confidence"),disabled:!0})]})}),zI(A,"link")&&j.jsx(w_,{md:5,label:"Link to original resource",children:j.jsx("a",{href:zI(A,"link"),children:zI(A,"link")})}),(null==(S=null==R?void 0:R.source)?void 0:S.secondarySources)&&j.jsx(w_,{md:5,label:"Secondary Sources",children:j.jsx(aV,{info:R,datasetKey:N})}),zI(R,"references")&&j.jsx(w_,{md:5,label:"References",children:j.jsx(LK,{referenceIndexMap:q,primarySourceDatasetKey:null==(E=null==R?void 0:R.source)?void 0:E.sourceDatasetKey,data:zI(R,"references"),style:{marginTop:"-3px"}})}),(null==(T=null==($=null==window?void 0:window.location)?void 0:$.hostname)?void 0:T.endsWith("catalogueoflife.org"))&&j.jsx(w_,{md:5,label:"",children:j.jsx(cV,{taxonKey:null==(P=null==(M=null==this?void 0:this.state)?void 0:M.taxon)?void 0:P.id,datasetKey:this.props.datasetKey})})]})})}}o(uV,"contextType",CR);const dV=NP(_(function({taxonKey:e,datasetKey:t,pageTitleTemplate:n,identifierLabel:r,showDistributionMap:o,gbifChecklistKey:i,auth:a,...l}){return j.jsx(CR.Provider,{value:SR(l),children:j.jsx(uV,{taxonKey:e,datasetKey:t,pageTitleTemplate:n,identifierLabel:r,showDistributionMap:o,gbifChecklistKey:i,auth:a})})})),hV=(e,t)=>(zI(e,`taxaByRankCount.${t}`)||0)-(zI(e,`extinctTaxaByRankCount.${t}`)||0),pV=(e,t)=>zI(e,`extinctTaxaByRankCount.${t}`)||0,fV=e=>{const t=e.key?{SECTOR_DATASET_KEY:e.key}:{SECTOR_PUBLISHER_KEY:e.id};return VP(e.sectorModes)&&(t.sectorMode=e.sectorModes),t},mV=({metrics:e,rank:t,style:n,dataset:r})=>e&&t?j.jsxs("div",{style:n,children:[j.jsxs(m.Fragment,{children:[j.jsx(w_,{label:"Living species",children:r?j.jsx(ER,{to:"search",args:{...fV(r),rank:"species",extinct:["false","_NULL"]},children:hV(e,"species").toLocaleString("en-GB")}):hV(e,"species").toLocaleString("en-GB")}),j.jsx(w_,{label:"Extinct species",children:r?j.jsx(ER,{to:"search",args:{...fV(r),rank:"species",extinct:"true"},children:pV(e,"species").toLocaleString("en-GB")}):pV(e,"species").toLocaleString("en-GB")})]}),e.taxaByRankCount&&Object.keys(e.taxaByRankCount).sort((e,n)=>t.indexOf(n)-t.indexOf(e)).map(t=>j.jsx(w_,{label:`${cR(t)}`,children:r?j.jsx(ER,{to:"search",args:{...fV(r),rank:t,status:["accepted","provisionally accepted"]},children:e.taxaByRankCount[t].toLocaleString("en-GB")}):e.taxaByRankCount[t].toLocaleString("en-GB")},t)),j.jsx(w_,{label:"Synonyms",children:r?j.jsx(ER,{to:"search",args:{...fV(r),status:["misapplied","synonym","ambiguous synonym"]},children:(e.synonymCount||0).toLocaleString("en-GB")}):(e.synonymCount||0).toLocaleString("en-GB")},"Synonyms"),j.jsx(w_,{label:"Common names",children:(e.vernacularCount||0).toLocaleString("en-GB")},"vernaculars"),j.jsx(w_,{label:"Total number of names",children:r?j.jsx(ER,{to:"search",args:fV(r),children:(e.nameCount||0).toLocaleString("en-GB")}):(e.nameCount||0).toLocaleString("en-GB")},"names")]}):j.jsx(w_,{label:"",children:j.jsx(yf,{active:!0,paragraph:{rows:4}})});class gV extends m.Component{constructor(e){super(e),o(this,"getData",()=>{const{dataset:e,datasetKey:t}=this.props;fR(`${gR.dataApi}dataset/${t}/source/${e.key}/metrics`).then(e=>{this.setState({metrics:e.data})})}),o(this,"getRank",()=>{fR(`${gR.dataApi}vocab/rank`).then(e=>this.setState({rank:e.data.map(e=>e.name)}))}),o(this,"render",()=>j.jsx(mV,{...this.state,dataset:this.props.dataset})),this.state={metrics:null,rank:null,loading:!0}}componentDidMount(){this.getData(),this.getRank()}}class yV extends m.Component{constructor(e){super(e),o(this,"getData",()=>{const{dataset:e,datasetKey:t}=this.props,n={};fR(`${gR.dataApi}dataset/${t}/sector?limit=1000&subjectDatasetKey=${e.key}`).then(e=>Promise.allSettled(e.data.result.filter(e=>!!(null==e?void 0:e.target)).map(e=>{var r,o,i,a;return fR(`${gR.dataApi}dataset/${t}/nameusage/search?TAXON_ID=${null==(r=null==e?void 0:e.target)?void 0:r.id}${(null==(o=null==e?void 0:e.subject)?void 0:o.rank)?"&rank="+(null==(i=null==e?void 0:e.subject)?void 0:i.rank):""}&q=${null==(a=null==e?void 0:e.subject)?void 0:a.name}`).then(e=>{const t=zI(e,"data.result[0]");if(t){const e=t.classification.slice(1,t.classification.length-1).map(e=>e.name).join(" > ");n[e]?n[e].push(t.classification[t.classification.length-1]):n[e]=[t.classification[t.classification.length-1]]}}).catch(t=>{console.log(e),console.log(t)})})).then(()=>this.setState({taxonMap:n,loading:!1})))}),o(this,"render",()=>{const{taxonMap:e}=this.state,{style:t}=this.props;return e?Object.keys(e).length>0?Object.keys(e).sort((e,t)=>e.length-t.length).map(n=>j.jsxs("div",{style:t,children:[j.jsxs("span",{children:[n,""!==n?":":""]})," ",e[n].map((t,r)=>j.jsxs(m.Fragment,{children:[j.jsx(ER,{to:"tree",args:{taxonKey:t.id},children:t.name}),r!==e[n].length-1?", ":""]},r))]},n)):"N/A":j.jsx(yf,{active:!0,paragraph:{rows:4}})}),this.state={loading:!0,taxonMap:null}}componentDidMount(){this.getData()}}const vV=({agent:e,countryAlpha2:t,style:n,noLinks:r})=>{const o=zI(e,"country")?zI(t,`[${zI(e,"country")}].title`,zI(e,"country")):null;return e?j.jsxs("span",{style:n,children:[(e.given||e.family)&&j.jsx("span",{style:{display:"block"},children:[e.family,e.given].filter(e=>!!e).join(", ")}),e.orcid&&(r?j.jsxs("div",{children:[j.jsx("img",{src:"https://www.checklistbank.org/images/orcid_16x16.png",style:{flex:"0 0 auto"},alt:""})," ",e.orcid]}):j.jsxs("a",{style:{display:"block"},href:`https://orcid.org/${e.orcid}`,children:[j.jsx("img",{src:"https://www.checklistbank.org/images/orcid_16x16.png",style:{flex:"0 0 auto"},alt:""})," ",e.orcid]})),e.organisation&&j.jsx("span",{style:{display:"block"},children:e.organisation}),e.rorid&&(r?j.jsxs("div",{children:[j.jsx("img",{src:"https://www.checklistbank.org/images/ror-logo-small.png",style:{flex:"0 0 auto",height:"20px"},alt:""})," ",e.rorid]}):j.jsxs("a",{style:{display:"block"},href:`https://ror.org/${e.rorid}`,children:[j.jsx("img",{src:"https://www.checklistbank.org/images/ror-logo-small.png",style:{flex:"0 0 auto",height:"20px"},alt:""})," ",e.rorid]})),e.department&&j.jsx("span",{style:{display:"block"},children:e.department}),(e.city||e.state||o)&&j.jsx("span",{style:{display:"block"},children:[e.city,e.state,o].filter(e=>!!e).join(", ")})]}):null},bV=({datasetKey:e,sourceDatasetKey:t,style:n={}})=>{const r=t?`${gR.dataApi}dataset/${e}/source/${t}.bib`:`${gR.dataApi}dataset/${e}.bib`;return j.jsx("a",{href:r,children:j.jsx("img",{src:"https://www.checklistbank.org/images/bibtex_logo.png",style:{height:"40px",...n}})})};function xV(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var wV={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function CV(e){wV=e}var kV={exec:()=>null};function SV(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),o=t[r];return o||(o=e(r),t[r]=o),o}}function EV(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let o="string"==typeof t?t:t.source;return o=o.replace(TV.caret,"$1"),n=n.replace(e,o),r},getRegex:()=>new RegExp(n,t)};return r}var $V=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),TV={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:SV(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`)),hrRegex:SV(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:SV(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:SV(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:SV(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:SV(e=>new RegExp(`^ {0,${e}}>`))},MV=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,PV=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,NV=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,IV=EV(NV).replace(/bull/g,PV).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),OV=EV(NV).replace(/bull/g,PV).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),AV=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,RV=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,LV=EV(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",RV).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),BV=EV(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,PV).getRegex(),zV="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",DV=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,jV=EV("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",DV).replace("tag",zV).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),FV=EV(AV).replace("hr",MV).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",zV).getRegex(),HV={blockquote:EV(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",FV).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:LV,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:MV,html:jV,lheading:IV,list:BV,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:FV,table:kV,text:/^[^\n]+/},_V=EV("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",MV).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",zV).getRegex(),WV={...HV,lheading:OV,table:_V,paragraph:EV(AV).replace("hr",MV).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",_V).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",zV).getRegex()},KV={...HV,html:EV("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",DV).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:kV,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:EV(AV).replace("hr",MV).replace("heading"," *#{1,6} *[^\n]").replace("lheading",IV).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},VV=/^( {2,}|\\)\n(?!\s*$)/,GV=/[\p{P}\p{S}]/u,qV=/[\s\p{P}\p{S}]/u,XV=/[^\s\p{P}\p{S}]/u,UV=EV(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,qV).getRegex(),YV=/(?!~)[\p{P}\p{S}]/u,ZV=EV(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",$V?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),QV=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,JV=EV(QV,"u").replace(/punct/g,GV).getRegex(),eG=EV(QV,"u").replace(/punct/g,YV).getRegex(),tG="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",nG=EV(tG,"gu").replace(/notPunctSpace/g,XV).replace(/punctSpace/g,qV).replace(/punct/g,GV).getRegex(),rG=EV(tG,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,YV).getRegex(),oG=EV("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,XV).replace(/punctSpace/g,qV).replace(/punct/g,GV).getRegex(),iG=EV(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,GV).getRegex(),aG=EV("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,XV).replace(/punctSpace/g,qV).replace(/punct/g,GV).getRegex(),lG=EV(/\\(punct)/,"gu").replace(/punct/g,GV).getRegex(),sG=EV(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),cG=EV(DV).replace("(?:--\x3e|$)","--\x3e").getRegex(),uG=EV("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",cG).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),dG=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,hG=EV(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",dG).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),pG=EV(/^!?\[(label)\]\[(ref)\]/).replace("label",dG).replace("ref",RV).getRegex(),fG=EV(/^!?\[(ref)\](?:\[\])?/).replace("ref",RV).getRegex(),mG=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,gG={_backpedal:kV,anyPunctuation:lG,autolink:sG,blockSkip:ZV,br:VV,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:kV,delLDelim:kV,delRDelim:kV,emStrongLDelim:JV,emStrongRDelimAst:nG,emStrongRDelimUnd:oG,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:hG,nolink:fG,punctuation:UV,reflink:pG,reflinkSearch:EV("reflink|nolink(?!\\()","g").replace("reflink",pG).replace("nolink",fG).getRegex(),tag:uG,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:kV},yG={...gG,link:EV(/^!?\[(label)\]\((.*?)\)/).replace("label",dG).getRegex(),reflink:EV(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",dG).getRegex()},vG={...gG,emStrongRDelimAst:rG,emStrongLDelim:eG,delLDelim:iG,delRDelim:aG,url:EV(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",mG).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:EV(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",mG).getRegex()},bG={...vG,br:EV(VV).replace("{2,}","*").getRegex(),text:EV(vG.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},xG={normal:HV,gfm:WV,pedantic:KV},wG={normal:gG,gfm:vG,breaks:bG,pedantic:yG},CG={"&":"&","<":"<",">":">",'"':""","'":"'"},kG=e=>CG[e];function SG(e,t){if(t){if(TV.escapeTest.test(e))return e.replace(TV.escapeReplace,kG)}else if(TV.escapeTestNoEncode.test(e))return e.replace(TV.escapeReplaceNoEncode,kG);return e}function EG(e){try{e=encodeURI(e).replace(TV.percentDecode,"%")}catch{return null}return e}function $G(e,t){var n;let r=e.replace(TV.findPipe,(e,t,n)=>{let r=!1,o=t;for(;--o>=0&&"\\"===n[o];)r=!r;return r?"|":" |"}).split(TV.splitPipe),o=0;if(r[0].trim()||r.shift(),r.length>0&&!(null==(n=r.at(-1))?void 0:n.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;o<r.length;o++)r[o]=r[o].trim().replace(TV.slashPipe,"|");return r}function TG(e,t,n){let r=e.length;if(0===r)return"";let o=0;for(;o<r;){if(e.charAt(r-o-1)!==t)break;o++}return e.slice(0,r-o)}function MG(e){let t=e.split("\n"),n=t.length-1;for(;n>=0&&TV.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join("\n")}function PG(e,t=0){let n=t,r="";for(let t of e)if("\t"===t){let e=4-n%4;r+=" ".repeat(e),n+=e}else r+=t,n++;return r}function NG(e,t,n,r,o){let i=t.href,a=t.title||null,l=e[1].replace(o.other.outputLinkReplace,"$1");r.state.inLink=!0;let s={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:i,title:a,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,s}var IG=class{constructor(e){o(this,"options"),o(this,"rules"),o(this,"lexer"),this.options=e||wV}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:MG(t[0]),n=e.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e,codeBlockStyle:"indented",text:n}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let o=r[1];return t.split("\n").map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=o.length?e.slice(o.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=TG(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:TG(t[0],"\n"),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:TG(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=TG(t[0],"\n").split("\n"),n="",r="",o=[];for(;e.length>0;){let t,i=!1,a=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))a.push(e[t]),i=!0;else{if(i)break;a.push(e[t])}e=e.slice(t);let l=a.join("\n"),s=l.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${l}`:l,r=r?`${r}\n${s}`:s;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(s,o,!0),this.lexer.state.top=c,0===e.length)break;let u=o.at(-1);if("code"===(null==u?void 0:u.type))break;if("blockquote"===(null==u?void 0:u.type)){let t=u,i=t.raw+"\n"+e.join("\n"),a=this.blockquote(i);o[o.length-1]=a,n=n.substring(0,n.length-t.raw.length)+a.raw,r=r.substring(0,r.length-t.text.length)+a.text;break}if("list"===(null==u?void 0:u.type)){let t=u,i=t.raw+"\n"+e.join("\n"),a=this.list(i);o[o.length-1]=a,n=n.substring(0,n.length-u.raw.length)+a.raw,r=r.substring(0,r.length-t.raw.length)+a.raw,e=i.substring(o.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:o,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,o={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let i=this.rules.other.listItemRegex(n),a=!1;for(;e;){let n=!1,r="",l="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let s=PG(t[2].split("\n",1)[0],t[1].length),c=e.split("\n",1)[0],u=!s.trim(),d=0;if(this.options.pedantic?(d=2,l=s.trimStart()):u?d=t[1].length+1:(d=s.search(this.rules.other.nonSpaceChar),d=d>4?1:d,l=s.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(r+=c+"\n",e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),o=this.rules.other.fencesBeginRegex(d),i=this.rules.other.headingBeginRegex(d),a=this.rules.other.htmlBeginRegex(d),h=this.rules.other.blockquoteBeginRegex(d);for(;e;){let p,f=e.split("\n",1)[0];if(c=f,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),p=c):p=c.replace(this.rules.other.tabCharGlobal," "),o.test(c)||i.test(c)||a.test(c)||h.test(c)||t.test(c)||n.test(c))break;if(p.search(this.rules.other.nonSpaceChar)>=d||!c.trim())l+="\n"+p.slice(d);else{if(u||s.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||o.test(s)||i.test(s)||n.test(s))break;l+="\n"+c}u=!c.trim(),r+=f+"\n",e=e.substring(f.length+1),s=p.slice(d)}}o.loose||(a?o.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(a=!0)),o.items.push({type:"list_item",raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(l),loose:!1,text:l,tokens:[]}),o.raw+=r}let l=o.items.at(-1);if(!l)return;l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd(),o.raw=o.raw.trimEnd();for(let e of o.items){this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]);let t=e.tokens[0];if(!e.task||"text"!==(null==t?void 0:t.type)&&"paragraph"!==(null==t?void 0:t.type))e.task&&(e.task=!1);else{e.text=e.text.replace(this.rules.other.listReplaceTask,""),t.raw=t.raw.replace(this.rules.other.listReplaceTask,""),t.text=t.text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:"checkbox",raw:n[0]+" ",checked:"[ ]"!==n[0]};e.checked=t.checked,o.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:"paragraph",raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}if(!o.loose){let t=e.tokens.filter(e=>"space"===e.type),n=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));o.loose=n}}if(o.loose)for(let e of o.items){e.loose=!0;for(let t of e.tokens)"text"===t.type&&(t.type="paragraph")}return o}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=MG(t[0]);return{type:"html",block:!0,raw:e,pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:TG(t[0],"\n"),href:n,title:r}}}table(e){var t;let n=this.rules.block.table.exec(e);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let r=$G(n[1]),o=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(null==(t=n[3])?void 0:t.trim())?n[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],a={type:"table",raw:TG(n[0],"\n"),header:[],align:[],rows:[]};if(r.length===o.length){for(let e of o)this.rules.other.tableAlignRight.test(e)?a.align.push("right"):this.rules.other.tableAlignCenter.test(e)?a.align.push("center"):this.rules.other.tableAlignLeft.test(e)?a.align.push("left"):a.align.push(null);for(let e=0;e<r.length;e++)a.header.push({text:r[e],tokens:this.lexer.inline(r[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push($G(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:"heading",raw:TG(t[0],"\n"),depth:"="===t[2].charAt(0)?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=TG(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),NG(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return NG(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(r&&(r[1]||r[2]||r[3]||r[4])&&(!r[4]||!n.match(this.rules.other.unicodeAlphaNumeric))&&(!r[1]&&!r[3]||!n||this.rules.inline.punctuation.exec(n))){let n,o,i=[...r[0]].length-1,a=i,l=0,s="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(s.lastIndex=0,t=t.slice(-1*e.length+i);null!==(r=s.exec(t));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n)continue;if(o=[...n].length,r[3]||r[4]){a+=o;continue}if((r[5]||r[6])&&i%3&&!((i+o)%3)){l+=o;continue}if(a-=o,a>0)continue;o=Math.min(o,o+a+l);let t=[...r[0]][0].length,s=e.slice(0,i+r.index+t+o);if(Math.min(i,o)%2){let e=s.slice(1,-1);return{type:"em",raw:s,text:e,tokens:this.lexer.inlineTokens(e)}}let c=s.slice(2,-2);return{type:"strong",raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n,o,i=[...r[0]].length-1,a=i,l=this.rules.inline.delRDelim;for(l.lastIndex=0,t=t.slice(-1*e.length+i);null!==(r=l.exec(t));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n||(o=[...n].length,o!==i))continue;if(r[3]||r[4]){a+=o;continue}if(a-=o,a>0)continue;o=Math.min(o,o+a);let t=[...r[0]][0].length,l=e.slice(0,i+r.index+t+o),s=l.slice(i,-i);return{type:"del",raw:l,text:s,tokens:this.lexer.inlineTokens(s)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=t[1],n="mailto:"+e):(e=t[1],n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){var t;let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=n[0],r="mailto:"+e;else{let o;do{o=n[0],n[0]=(null==(t=this.rules.inline._backpedal.exec(n[0]))?void 0:t[0])??""}while(o!==n[0]);e=n[0],r="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},OG=class e{constructor(e){o(this,"tokens"),o(this,"options"),o(this,"state"),o(this,"inlineQueue"),o(this,"tokenizer"),this.tokens=[],this.tokens.links=Object.create(null),this.options=e||wV,this.options.tokenizer=this.options.tokenizer||new IG,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:TV,block:xG.normal,inline:wG.normal};this.options.pedantic?(t.block=xG.pedantic,t.inline=wG.pedantic):this.options.gfm&&(t.block=xG.gfm,this.options.breaks?t.inline=wG.breaks:t.inline=wG.gfm),this.tokenizer.rules=t}static get rules(){return{block:xG,inline:wG}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(TV.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){var r,o,i;this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(TV.tabCharGlobal," ").replace(TV.spaceLine,""));let a=1/0;for(;e;){if(!(e.length<a)){this.infiniteLoopError(e.charCodeAt(0));break}let l;if(a=e.length,null==(o=null==(r=this.options.extensions)?void 0:r.block)?void 0:o.some(n=>!!(l=n.call({lexer:this},e,t))&&(e=e.substring(l.raw.length),t.push(l),!0)))continue;if(l=this.tokenizer.space(e)){e=e.substring(l.raw.length);let n=t.at(-1);1===l.raw.length&&void 0!==n?n.raw+="\n":t.push(l);continue}if(l=this.tokenizer.code(e)){e=e.substring(l.raw.length);let n=t.at(-1);"paragraph"===(null==n?void 0:n.type)||"text"===(null==n?void 0:n.type)?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+l.raw,n.text+="\n"+l.text,this.inlineQueue.at(-1).src=n.text):t.push(l);continue}if(l=this.tokenizer.fences(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.heading(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.hr(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.blockquote(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.list(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.html(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.def(e)){e=e.substring(l.raw.length);let n=t.at(-1);"paragraph"===(null==n?void 0:n.type)||"text"===(null==n?void 0:n.type)?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+l.raw,n.text+="\n"+l.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[l.tag]||(this.tokens.links[l.tag]={href:l.href,title:l.title},t.push(l));continue}if(l=this.tokenizer.table(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.lheading(e)){e=e.substring(l.raw.length),t.push(l);continue}let s=e;if(null==(i=this.options.extensions)?void 0:i.startBlock){let t,n=1/0,r=e.slice(1);this.options.extensions.startBlock.forEach(e=>{t=e.call({lexer:this},r),"number"==typeof t&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(s=e.substring(0,n+1))}if(this.state.top&&(l=this.tokenizer.paragraph(s))){let r=t.at(-1);n&&"paragraph"===(null==r?void 0:r.type)?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+l.raw,r.text+="\n"+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(l),n=s.length!==e.length,e=e.substring(l.raw.length);continue}if(l=this.tokenizer.text(e)){e=e.substring(l.raw.length);let n=t.at(-1);"text"===(null==n?void 0:n.type)?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+l.raw,n.text+="\n"+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(l);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){var n,r,o,i,a;this.tokenizer.lexer=this;let l,s=e,c=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!==(c=this.tokenizer.rules.inline.reflinkSearch.exec(s));)e.includes(c[0].slice(c[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,c.index)+"["+"a".repeat(c[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!==(c=this.tokenizer.rules.inline.anyPunctuation.exec(s));)s=s.slice(0,c.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!==(c=this.tokenizer.rules.inline.blockSkip.exec(s));)l=c[2]?c[2].length:0,s=s.slice(0,c.index+l)+"["+"a".repeat(c[0].length-l-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=(null==(r=null==(n=this.options.hooks)?void 0:n.emStrongMask)?void 0:r.call({lexer:this},s))??s;let u=!1,d="",h=1/0;for(;e;){if(!(e.length<h)){this.infiniteLoopError(e.charCodeAt(0));break}let n;if(h=e.length,u||(d=""),u=!1,null==(i=null==(o=this.options.extensions)?void 0:o.inline)?void 0:i.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let r=t.at(-1);"text"===n.type&&"text"===(null==r?void 0:r.type)?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,s,d)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e,s,d)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let r=e;if(null==(a=this.options.extensions)?void 0:a.startInline){let t,n=1/0,o=e.slice(1);this.options.extensions.startInline.forEach(e=>{t=e.call({lexer:this},o),"number"==typeof t&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(r=e.substring(0,n+1))}if(n=this.tokenizer.inlineText(r)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(d=n.raw.slice(-1)),u=!0;let r=t.at(-1);"text"===(null==r?void 0:r.type)?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t="Infinite loop on byte: "+e;if(!this.options.silent)throw new Error(t);console.error(t)}},AG=class{constructor(e){o(this,"options"),o(this,"parser"),this.options=e||wV}space(e){return""}code({text:e,lang:t,escaped:n}){var r;let o=null==(r=(t||"").match(TV.notSpaceStart))?void 0:r[0],i=e.replace(TV.endingNewline,"")+"\n";return o?'<pre><code class="language-'+SG(o)+'">'+(n?i:SG(i,!0))+"</code></pre>\n":"<pre><code>"+(n?i:SG(i,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let o=t?"ol":"ul";return"<"+o+(t&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+o+">\n"}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let o=e.rows[t];n="";for(let e=0;e<o.length;e++)n+=this.tablecell(o[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+r+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${SG(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),o=EG(e);if(null===o)return r;let i='<a href="'+(e=o)+'"';return t&&(i+=' title="'+SG(t)+'"'),i+=">"+r+"</a>",i}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let o=EG(e);if(null===o)return SG(n);let i=`<img src="${e=o}" alt="${SG(n)}"`;return t&&(i+=` title="${SG(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:SG(e.text)}},RG=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},LG=class e{constructor(e){o(this,"options"),o(this,"renderer"),o(this,"textRenderer"),this.options=e||wV,this.options.renderer=this.options.renderer||new AG,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new RG}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){var t,n;this.renderer.parser=this;let r="";for(let o=0;o<e.length;o++){let i=e[o];if(null==(n=null==(t=this.options.extensions)?void 0:t.renderers)?void 0:n[i.type]){let e=i,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(e.type)){r+=t||"";continue}}let a=i;switch(a.type){case"space":r+=this.renderer.space(a);break;case"hr":r+=this.renderer.hr(a);break;case"heading":r+=this.renderer.heading(a);break;case"code":r+=this.renderer.code(a);break;case"table":r+=this.renderer.table(a);break;case"blockquote":r+=this.renderer.blockquote(a);break;case"list":r+=this.renderer.list(a);break;case"checkbox":r+=this.renderer.checkbox(a);break;case"html":r+=this.renderer.html(a);break;case"def":r+=this.renderer.def(a);break;case"paragraph":r+=this.renderer.paragraph(a);break;case"text":r+=this.renderer.text(a);break;default:{let e='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return r}parseInline(e,t=this.renderer){var n,r;this.renderer.parser=this;let o="";for(let i=0;i<e.length;i++){let a=e[i];if(null==(r=null==(n=this.options.extensions)?void 0:n.renderers)?void 0:r[a.type]){let e=this.options.extensions.renderers[a.type].call({parser:this},a);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){o+=e||"";continue}}let l=a;switch(l.type){case"escape":case"text":o+=t.text(l);break;case"html":o+=t.html(l);break;case"link":o+=t.link(l);break;case"image":o+=t.image(l);break;case"checkbox":o+=t.checkbox(l);break;case"strong":o+=t.strong(l);break;case"em":o+=t.em(l);break;case"codespan":o+=t.codespan(l);break;case"br":o+=t.br(l);break;case"del":o+=t.del(l);break;default:{let e='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return o}},BG=(n=class{constructor(e){o(this,"options"),o(this,"block"),this.options=e||wV}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?OG.lex:OG.lexInline}provideParser(e=this.block){return e?LG.parse:LG.parseInline}},o(n,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),o(n,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),n),zG=new class{constructor(...e){o(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),o(this,"options",this.setOptions),o(this,"parse",this.parseMarkdown(!0)),o(this,"parseInline",this.parseMarkdown(!1)),o(this,"Parser",LG),o(this,"Renderer",AG),o(this,"TextRenderer",RG),o(this,"Lexer",OG),o(this,"Tokenizer",IG),o(this,"Hooks",BG),this.use(...e)}walkTokens(e,t){var n,r;let o=[];for(let i of e)switch(o=o.concat(t.call(this,i)),i.type){case"table":{let e=i;for(let n of e.header)o=o.concat(this.walkTokens(n.tokens,t));for(let n of e.rows)for(let e of n)o=o.concat(this.walkTokens(e.tokens,t));break}case"list":{let e=i;o=o.concat(this.walkTokens(e.items,t));break}default:{let e=i;(null==(r=null==(n=this.defaults.extensions)?void 0:n.childTokens)?void 0:r[e.type])?this.defaults.extensions.childTokens[e.type].forEach(n=>{let r=e[n].flat(1/0);o=o.concat(this.walkTokens(r,t))}):e.tokens&&(o=o.concat(this.walkTokens(e.tokens,t)))}}return o}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new AG(this.defaults);for(let n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=n,o=e.renderer[r],i=t[r];t[r]=(...e)=>{let n=o.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new IG(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=n,o=e.tokenizer[r],i=t[r];t[r]=(...e)=>{let n=o.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new BG;for(let n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=n,o=e.hooks[r],i=t[r];BG.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&BG.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await o.call(t,e);return i.call(t,n)})();let r=o.call(t,e);return i.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await o.apply(t,e);return!1===n&&(n=await i.apply(t,e)),n})();let n=o.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return OG.lex(e,t??this.defaults)}parser(e,t){return LG.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},o={...this.defaults,...r},i=this.onError(!!o.silent,!!o.async);if(!0===this.defaults.async&&!1===r.async)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return i(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=e),o.async)return(async()=>{let n=o.hooks?await o.hooks.preprocess(t):t,r=await(o.hooks?await o.hooks.provideLexer(e):e?OG.lex:OG.lexInline)(n,o),i=o.hooks?await o.hooks.processAllTokens(r):r;o.walkTokens&&await Promise.all(this.walkTokens(i,o.walkTokens));let a=await(o.hooks?await o.hooks.provideParser(e):e?LG.parse:LG.parseInline)(i,o);return o.hooks?await o.hooks.postprocess(a):a})().catch(i);try{o.hooks&&(t=o.hooks.preprocess(t));let n=(o.hooks?o.hooks.provideLexer(e):e?OG.lex:OG.lexInline)(t,o);o.hooks&&(n=o.hooks.processAllTokens(n)),o.walkTokens&&this.walkTokens(n,o.walkTokens);let r=(o.hooks?o.hooks.provideParser(e):e?LG.parse:LG.parseInline)(n,o);return o.hooks&&(r=o.hooks.postprocess(r)),r}catch(e){return i(e)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+SG(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function DG(e,t){return zG.parse(e,t)}DG.options=DG.setOptions=function(e){return zG.setOptions(e),DG.defaults=zG.defaults,CV(DG.defaults),DG},DG.getDefaults=xV,DG.defaults=wV,DG.use=function(...e){return zG.use(...e),DG.defaults=zG.defaults,CV(DG.defaults),DG},DG.walkTokens=function(e,t){return zG.walkTokens(e,t)},DG.parseInline=zG.parseInline,DG.Parser=LG,DG.parser=LG.parse,DG.Renderer=AG,DG.TextRenderer=RG,DG.Lexer=OG,DG.lexer=OG.lex,DG.Tokenizer=IG,DG.Hooks=BG,DG.parse=DG,DG.options,DG.setOptions,DG.use,DG.walkTokens,DG.parseInline,LG.parse,OG.lex;const jG={col:"https://www.checklistbank.org/dataset/",gbif:"https://www.gbif.org/dataset/",plazi:"http://publication.plazi.org/id/",doi:"https://doi.org/"};class FG extends m.Component{constructor(e){super(e),o(this,"componentDidMount",()=>{this.getData(),fL().then(e=>{const t={};e.forEach(e=>{t[e.alpha2]=e}),this.setState({countryAlpha2:t})})}),o(this,"getData",()=>{const{datasetKey:e,sourceDatasetKey:t,pageTitleTemplate:n}=this.props;t&&fR(`${gR.dataApi}dataset/${e}/source/${t}`).then(e=>{n&&zI(e,"data.title")&&(document.title=n.replace("__dataset__",e.data.title)),this.setState({data:e.data,datasetError:null})}).catch(e=>this.setState({datasetError:e,data:null}))}),o(this,"getRank",()=>{fR(`${gR.dataApi}vocab/rank`).then(e=>this.setState({rank:e.data.map(e=>e.name)}))}),dR(this.props.auth),this.state={datasetLoading:!0,data:null,rank:null,countryAlpha2:{}}}componentDidUpdate(e){e.sourceDatasetKey===this.props.sourceDatasetKey&&e.datasetKey===this.props.datasetKey||this.getData()}render(){const{datasetKey:e}=this.props,{data:t,countryAlpha2:n,datasetError:r}=this.state;return j.jsx(m.Fragment,{children:j.jsxs("div",{className:"catalogue-of-life",style:{background:"#fff",padding:24,minHeight:280,margin:"16px 0",fontSize:"12px"},children:[r&&j.jsx(pl,{message:j.jsx(LR,{error:r}),type:"error"}),t&&j.jsxs(Lw,{children:[j.jsxs(Aw,{flex:"auto",children:[j.jsx("h1",{style:{fontSize:"30px",fontWeight:"400",paddingLeft:"10px",display:"inline-block",textTransform:"none"},children:t.title}),t&&j.jsxs(m.Fragment,{children:[j.jsx("br",{}),j.jsx(bV,{style:{marginLeft:"8px",height:"32px"},datasetKey:e,sourceDatasetKey:e!==t.key?t.key:void 0})]})]}),j.jsx(Aw,{style:{textAlign:"right"},children:j.jsx(HK,{auth:this.props.auth,style:{maxWidth:"100%",height:"auto",marginRight:"8px"},datasetKey:e,sourceDatasetKey:t.key})})]}),t&&j.jsxs(m.Fragment,{children:[j.jsxs(w_,{label:"Short name",children:[t.alias,j.jsx(Jy,{title:"Visit in COL Checklistbank",getPopupContainer:()=>document.getElementsByClassName("catalogue-of-life")[0],children:j.jsxs(ph,{type:"link",href:`https://www.checklistbank.org/dataset/${t.key}`,children:[j.jsx(iL,{})," "]})})]}),j.jsx(w_,{label:"Full name",children:t.title}),(t.version||t.issued)&&j.jsx(w_,{label:`${t.version?"Version":""}${t.version&&t.issued?" / ":""}${t.issued?"Issued":""}`,children:(t.version||t.issued)&&`${t.version?t.version:""}${t.issued?" / "+t.issued:""}`}),j.jsx(w_,{label:"DOI",children:t.doi?j.jsxs("a",{href:`https://doi.org/${t.doi}`,children:[j.jsx("img",{src:"https://www.checklistbank.org/images/DOI_logo.png",style:{flex:"0 0 auto",height:"16px"},alt:""}),t.doi]}):"-"}),t.contact&&!JA(t.contact)&&j.jsx(w_,{label:"Contact",children:j.jsx(vV,{countryAlpha2:n,agent:t.contact})}),t.publisher&&!JA(t.publisher)&&j.jsx(w_,{label:"Publisher",children:j.jsx(vV,{countryAlpha2:n,agent:t.publisher})}),t.creator&&j.jsx(w_,{label:"Creator",children:j.jsx(Lw,{gutter:[8,8],children:t.creator.map(e=>j.jsx(Aw,{span:8,children:j.jsx(vV,{countryAlpha2:n,agent:e})}))})}),t.editor&&j.jsx(w_,{label:"Editor",children:j.jsx(Lw,{gutter:[8,8],children:t.editor.map(e=>j.jsx(Aw,{span:8,children:j.jsx(vV,{countryAlpha2:n,agent:e})}))})}),t.contributor&&j.jsx(w_,{label:"Contributor",children:j.jsx(Lw,{gutter:[8,8],children:t.contributor.map(e=>j.jsx(Aw,{span:8,children:j.jsx(vV,{countryAlpha2:n,agent:e})}))})}),j.jsx(w_,{label:"Taxonomic coverage",children:j.jsx(yV,{dataset:t,datasetKey:e})}),j.jsx(gV,{datasetKey:e,dataset:t}),j.jsx(w_,{label:"Abstract",children:t.description?j.jsx("span",{dangerouslySetInnerHTML:{__html:RK.sanitize(DG.parse(t.description))}}):""}),j.jsx(w_,{label:"Taxonomic scope",children:t.taxonomicScope||"-"}),j.jsx(w_,{label:"Geographic scope",children:t.geographicScope||"-"}),j.jsx(w_,{label:"Temporal scope",children:t.temporalScope||"-"})," ",j.jsx(w_,{label:"License",children:t.license||"-"}),j.jsx(w_,{label:"Checklist Confidence",children:j.jsx(HS,{value:t.confidence,disabled:!0})}),j.jsx(w_,{label:"Completeness",children:t.completeness}),j.jsx(w_,{label:"Url (website)",children:t.url?j.jsx("a",{href:t.url,target:"_blank",children:t.url}):"-"}),j.jsx(w_,{label:"ISSN",children:t.issn?j.jsx("a",{href:`https://portal.issn.org/resource/ISSN/${t.issn}`,children:t.issn}):"-"}),j.jsx(w_,{label:"GBIF key",children:t.gbifKey?j.jsx("a",{href:`https://www.gbif.org/dataset/${t.gbifKey}`,children:t.gbifKey}):"-"}),j.jsx(w_,{label:"Identifiers",children:t.identifier?j.jsx("ol",{style:{listStyle:"none",paddingInlineStart:"0px"},children:Object.keys(t.identifier).map(e=>j.jsxs("li",{style:{float:"left",marginRight:"8px"},children:[`${e.toUpperCase()}: `,jG[e]?j.jsx("a",{href:`${jG[e]}${t.identifier[e]}`,target:"_blank",children:t.identifier[e]}):t.identifier[e]]}))}):"-"}),j.jsx(w_,{label:"Citation",children:t.citation&&j.jsx("span",{dangerouslySetInnerHTML:{__html:t.citation}})}),j.jsx(w_,{label:"Source",children:t.source&&VP(t.source)?t.source.map(e=>!!e&&(e.citation?j.jsx("div",{style:{display:"inline-block"},dangerouslySetInnerHTML:{__html:e.citation}}):e.title)):"-"})]})]})})}}const HG=NP(_(function({sourceDatasetKey:e,datasetKey:t,pageTitleTemplate:n,auth:r,...o}){return j.jsx(CR.Provider,{value:SR(o),children:j.jsx(FG,{sourceDatasetKey:e,datasetKey:t,pageTitleTemplate:n,auth:r})})})),_G=e=>{const t=e.key?{SECTOR_DATASET_KEY:e.key}:{SECTOR_PUBLISHER_KEY:e.id};return VP(e.sectorModes)&&(t.sectorMode=e.sectorModes),t},WG=(e,t)=>zI(e,`metrics.taxaByRankCount.${t||"species"}`)||0,KG=(e,t,n)=>[{title:"Title",dataIndex:["alias"],key:"title",ellipsis:!0,render:(t,n)=>j.jsxs(j.Fragment,{children:[n.id?j.jsxs("span",{children:[j.jsx(OR,{style:{marginLeft:"0px"}})," ","Publisher: "," ",j.jsx("a",{href:`https://www.checklistbank.org/dataset/${e}/publisher/${n.id}`,target:"_blank",rel:"noopener noreferrer",dangerouslySetInnerHTML:{__html:t}})," "]}):j.jsxs(j.Fragment,{children:[" ",!!(null==n?void 0:n.merged)&&j.jsx(OR,{style:{marginLeft:"0px"}})," ",j.jsx(ER,{to:"source",args:n.key,children:n.alias||n.title}),!!(null==n?void 0:n.taxonomicScope)&&j.jsx("br",{})]}),!!(null==n?void 0:n.taxonomicScope)&&(null==n?void 0:n.taxonomicScope)]}),width:"30%",sorter:(e,t)=>e.alias&&t.alias?e.alias.localeCompare(t.alias):0},{title:"Datasets",dataIndex:["metrics","datasetCount"],key:"datasets",render:(e,t)=>zI(t,"metrics.datasetCount",1).toLocaleString("en-GB")},{title:j.jsx(Jy,{placement:"topLeft",title:"Count of all accepted families including extinct species",getPopupContainer:()=>document.getElementById("familyCount"),children:j.jsx("span",{id:"familyCount",children:"Families"})}),dataIndex:["metrics","taxaByRankCount","family"],key:"species",render:(e,t)=>j.jsx(ER,{to:"search",args:{..._G(t),rank:"family",status:["accepted","provisionally accepted"]},children:WG(t,"family").toLocaleString("en-GB")}),sorter:(e,t)=>WG(e,"family")-WG(t,"family")},{title:j.jsx(Jy,{placement:"topLeft",title:"Count of all accepted genera including extinct species",getPopupContainer:()=>document.getElementById("genusCount"),children:j.jsx("span",{id:"genusCount",children:"Genera"})}),dataIndex:["metrics","taxaByRankCount","genus"],key:"species",render:(e,t)=>j.jsx(ER,{to:"search",args:{..._G(t),rank:"genus",status:["accepted","provisionally accepted"]},children:WG(t,"genus").toLocaleString("en-GB")}),sorter:(e,t)=>WG(e,"genus")-WG(t,"genus")},{title:j.jsx(Jy,{placement:"topLeft",title:"Count of all accepted species including extinct species",getPopupContainer:()=>document.getElementById("speciesCount"),children:j.jsx("span",{id:"speciesCount",children:"Species"})}),dataIndex:["metrics","taxaByRankCount","species"],key:"species",render:(e,t)=>j.jsx(ER,{to:"search",args:{..._G(t),rank:"species",status:["accepted","provisionally accepted"]},children:WG(t).toLocaleString("en-GB")}),sorter:(e,t)=>WG(e)-WG(t)}].filter(e=>!!n||"datasets"!==e.key);class VG extends m.Component{constructor(e){super(e),o(this,"componentDidMount",()=>{this.getData(),this.getRank()}),o(this,"getData",()=>{this.setState({loading:!0});const{datasetKey:e}=this.props;Promise.all([fR(`${gR.dataApi}dataset/${e}/source?splitMerge=true`),fR(`${gR.dataApi}dataset/${e}/sector/publisher?limit=1000`)]).then(([t,n])=>{let r={};const o=t.data||[],i=zI(n,"data.result",[]);return i.length>0&&this.setState({hasPublishers:!0}),Promise.all([...i.map(t=>this.getPublisherMetrics(e,t.id).then(e=>({...t,metrics:e}))),...o.map(t=>this.getMetrics(e,t).then(e=>(r=oR(r,e),{...t,metrics:e})))])}).then(e=>{this.setState({loading:!1,data:e.filter(e=>{var t;return!(null==e?void 0:e.id)||!!(null==e?void 0:e.id)&&(null==(t=null==e?void 0:e.metrics)?void 0:t.sectorCount)>0}).sort((e,t)=>e.id&&!t.id?e:t.id&&!e.id?t:e.alias&&t.alias?0===e.alias.localeCompare(t.alias)?!0===e.merged?1:-1:e.alias.localeCompare(t.alias):0),err:null})}).catch(e=>{this.setState({loading:!1,error:e,data:[]})})}),o(this,"getMetrics",(e,t)=>fR(`${gR.dataApi}dataset/${e}/source/${null==t?void 0:t.key}/metrics?merged=${null==t?void 0:t.merged}`).then(e=>e.data)),o(this,"getPublisherMetrics",(e,t)=>fR(`${gR.dataApi}dataset/${e}/sector/publisher/${t}/metrics`).then(e=>e.data)),o(this,"getRank",()=>{fR(`${gR.dataApi}vocab/rank`).then(e=>this.setState({rank:e.data.map(e=>e.name)}))}),dR(this.props.auth),this.state={data:[],rank:null,hasPublishers:!1,loading:!1,showMerged:!0}}render(){const{data:e,loading:t,rank:n,hasPublishers:r,error:o}=this.state,{datasetKey:i}=this.props;return j.jsxs("div",{className:"catalogue-of-life",style:{background:"#fff",padding:24,minHeight:280,margin:"16px 0"},children:[j.jsx(Lw,{children:o&&j.jsx(pl,{style:{marginBottom:"10px"},message:j.jsx(LR,{error:o}),type:"error"})}),j.jsxs(Lw,{children:[j.jsxs(Aw,{span:12,style:{marginBottom:"8px"},children:["Include ",j.jsx(OR,{})," ",j.jsx(Nw,{checked:this.state.showMerged,onChange:({target:{checked:e}})=>this.setState({showMerged:e})})]}),j.jsx(Aw,{span:12,style:{textAlign:"right",marginBottom:"8px"},children:`Source datasets: ${e.reduce((e,t)=>{var n,r,o;return this.state.showMerged||!(null==t?void 0:t.merged)&&!(null==t?void 0:t.id)?(null==(n=null==t?void 0:t.metrics)?void 0:n.publisherKey)?(null==(r=null==t?void 0:t.metrics)?void 0:r.publisherKey)?e+(null==(o=null==t?void 0:t.metrics)?void 0:o.datasetCount):void 0:e+1:e},0).toLocaleString("en-GB")}`})]}),!o&&j.jsx(cP,{size:"small",columns:KG(i,this.props.auth,r),dataSource:e.filter(e=>{var t,n,r;return!(!this.state.showMerged&&((null==e?void 0:e.merged)||(null==e?void 0:e.id)))&&(!(null==(t=null==e?void 0:e.metrics)?void 0:t.publisherKey)||!(0===(null==(n=null==e?void 0:e.metrics)?void 0:n.datasetCount)||0===(null==(r=null==e?void 0:e.metrics)?void 0:r.usagesCount)))}),loading:t,rowKey:e=>`${e.key||e.id}-${e.merged}`,showSorterTooltip:!1,pagination:!1,expandedRowRender:e=>j.jsxs("div",{style:{marginLeft:"40px"},children:[j.jsxs(Lw,{children:[j.jsx(Aw,{flex:"auto",style:{paddingLeft:"8px"},children:j.jsx("h3",{children:null==e?void 0:e.title})}),j.jsx(Aw,{children:j.jsx(HK,{auth:this.props.auth,datasetKey:i,sourceDatasetKey:e.key,style:{maxHeight:"64px"},size:"MEDIUM"})})]}),j.jsx(mV,{metrics:e.metrics,dataset:e,rank:n}),j.jsxs("div",{style:{marginTop:"12px"},children:[(null==e?void 0:e.version)&&j.jsx(w_,{md:8,label:"Dataset version",children:e.version}),(null==e?void 0:e.taxonomicScope)&&j.jsx(w_,{md:8,label:"Taxonomic scope",children:e.taxonomicScope})]}),e.citation&&j.jsx("div",{style:{marginTop:"12px"},children:j.jsx(w_,{md:24,label:"Citation",children:j.jsx("div",{dangerouslySetInnerHTML:{__html:e.citation}})})})]})})]})}}const GG=NP(_(function({datasetKey:e,auth:t,...n}){return j.jsx(CR.Provider,{value:SR(n),children:j.jsx(VG,{datasetKey:e,auth:t})})})),qG=NP(function(e){const t=e.displayName||e.name||"BibTex",n=n=>{const{catalogueKey:r,datasetKey:o,sourceDatasetKey:i,...a}=n;return void 0!==r?(H(t,"the `catalogueKey` prop is deprecated; pass the catalogue as `datasetKey` and the source as `sourceDatasetKey`."),j.jsx(e,{...a,datasetKey:r,sourceDatasetKey:void 0!==i?i:o})):j.jsx(e,{...a,datasetKey:o,sourceDatasetKey:i})};return n.displayName=`withBibTexLegacyShim(${t})`,n}(bV)),XG=NP(({taxonId:e,datasetKey:t,level:n=1,showLevelSwitch:r=!1,darkMode:o,auth:i,...a})=>{dR(i);const[l,s]=f.useState(null),[c,u]=f.useState(null),[d,h]=f.useState([]);f.useEffect(()=>{e&&t&&m(),t&&(g(),p())},[e,t]);const p=()=>fR(`${gR.dataApi}vocab/rank`).then(e=>h(e.data.map(e=>e.name))),m=()=>fR(`${gR.dataApi}dataset/${t}/taxon/${e}`).then(e=>s(e.data)),g=()=>fR(`${gR.dataApi}dataset/${t}`).then(e=>u(e.data));return j.jsx(CR.Provider,{value:SR(a),children:l&&c&&d.length>0?j.jsx(iV,{taxon:l,datasetKey:t,rank:d,dataset:c,level:n,showLevelSwitch:r,darkMode:o}):j.jsx(Lw,{justify:"center",style:{padding:"24px"},children:j.jsx(Aw,{children:j.jsx(mS,{size:"large"})})})})}),UG=NP(({taxonId:e,datasetKey:t,gbifChecklistKey:n,style:r,auth:o,...i})=>{dR(o);const[a,l]=f.useState(null),[s,c]=f.useState(null),[u,d]=f.useState([]);return f.useEffect(()=>{let n=!1;if(l(null),c(null),e&&t)return fR(`${gR.dataApi}vocab/rank`).then(e=>{n||d(e.data.map(e=>e.name))}),fR(`${gR.dataApi}dataset/${t}/taxon/${encodeURIComponent(e)}`).then(e=>{n||l(e.data)}),fR(`${gR.dataApi}dataset/${t}/taxon/${encodeURIComponent(e)}/info`).then(e=>{var t;n||c((null==(t=null==e?void 0:e.data)?void 0:t.distributions)||[])}),()=>{n=!0}},[e,t]),j.jsx(CR.Provider,{value:SR(i),children:a&&null!==s&&0!==u.length?j.jsx(yW,{data:s,datasetKey:t,focalTaxon:a,rankOrder:u,gbifChecklistKey:n,showDistributionMap:!0,style:r}):j.jsx(Lw,{justify:"center",style:{padding:"24px"},children:j.jsx(Aw,{children:j.jsx(mS,{size:"large"})})})})}),YG=e=>"hash"===e,ZG=e=>{if(YG(e)){const e="undefined"!=typeof window&&window.location.hash||"",t=e.startsWith("#")?e.slice(1):e,n=t.indexOf("?");return{path:n>=0?t.slice(0,n):t,search:n>=0?t.slice(n):""}}return{path:"undefined"!=typeof window&&window.location.pathname||"",search:"undefined"!=typeof window&&window.location.search||""}},QG=(e,t,n)=>{const r=n&&Object.keys(n).length>0?`?${BL.stringify(n,{arrayFormat:"none"})}`:"";if(YG(e)){const e=`${t}${r}`;window.location.hash=e}else{const e=`${t}${r}`;window.history.pushState(null,"",e),window.dispatchEvent(new PopStateEvent("popstate"))}},JG=(e,t,n,r={})=>{if(!t)return null;const o=null==n||"object"==typeof n?"":String(n),i="object"==typeof n&&n?{...n,...r}:{...r},a=`${t}${o}${Object.keys(i).length>0?`?${BL.stringify(i,{arrayFormat:"none"})}`:""}`;return YG(e)?`#${a}`:a},eq=(e,t,n,r,o={})=>{if(!n)return;if("reload"===t){const t=JG(e,n,r,o);return void(null!=t&&"undefined"!=typeof window&&window.location.assign(t))}let i=n,a=Object.keys(o).length>0?{...o}:null;"string"==typeof r||"number"==typeof r?i=`${n}${r}`:r&&"object"==typeof r&&(a={...a||{},...r}),QG(e,i,a)},tq=(e,t)=>{if(t){if(!e.startsWith(t)){const n=e.indexOf(t);if(n<0)return;return e.slice(n+t.length).split("/").filter(Boolean).pop()}return e.slice(t.length).split("/").filter(Boolean).pop()}};return{...Object.freeze(Object.defineProperty({__proto__:null,BibTex:qG,Search:JL,SourceDataset:HG,SourceDatasetList:GG,Taxon:dV,TaxonBreakdown:XG,TaxonDistribution:UG,Tree:ZR,withRouting:function(e,t){const{kind:n,mode:r="path",navigation:o="spa",paths:i={},query:a=""}=t,l=a?BL.parse(a):{},s=Object.keys(l),c=e=>{if(0===s.length)return e;const t={...e};for(const e of s)delete t[e];return t},u=t=>{const[a,s]=f.useState(0);f.useEffect(()=>((e,t)=>{const n=YG(e)?"hashchange":"popstate";return window.addEventListener(n,t),()=>window.removeEventListener(n,t)})(r,()=>s(e=>e+1)),[]);const{path:u,search:d}=ZG(r),h=f.useMemo(()=>((e,t,n,r={})=>({hrefForTaxon:t=>JG(e,n.taxon,t,r),hrefForTree:t=>JG(e,n.tree,t,r),hrefForSearch:t=>JG(e,n.search,t,r),hrefForSource:t=>JG(e,n.source,t,r),onNavigateToTaxon:o=>eq(e,t,n.taxon,o,r),onNavigateToTree:o=>eq(e,t,n.tree,o,r),onNavigateToSearch:o=>eq(e,t,n.search,o,r),onNavigateToSource:o=>eq(e,t,n.source,o,r)}))(r,o,i,l),[]);let p={};if("taxon"===n)p.taxonKey=tq(u,i.taxon);else if("source"===n)p.sourceDatasetKey=tq(u,i.source);else if("taxonBreakdown"===n)p.taxonId=tq(u,i.taxonBreakdown);else if("taxonDistribution"===n)p.taxonId=tq(u,i.taxonDistribution);else if("bibtex"===n)p.sourceDatasetKey=tq(u,i.bibtex);else if("tree"===n){const e=c(BL.parse(d));p.expandedTaxonKey=e.taxonKey||void 0,p.onExpandedTaxonKeyChange=f.useCallback(e=>{const t=ZG(r),n=BL.parse(t.search);e?n.taxonKey=e:delete n.taxonKey,QG(r,t.path||i.tree||"/",n)},[])}else if("search"===n){const e=c(BL.parse(d,{arrayFormat:"none"}));p.filters=e,p.onFiltersChange=f.useCallback(e=>{const t=ZG(r);QG(r,t.path||i.search||"/",{...l,...e})},[])}return j.jsx(e,{...h,...p,...t})};return u.displayName=`withRouting(${e.displayName||e.name||"Component"})`,u}},Symbol.toStringTag,{value:"Module"})),React:g,ReactDOM:R}});
|
|
24
24
|
//# sourceMappingURL=col-browser.min.js.map
|