@statisticsfinland/pxvisualizer 1.0.0-t.0 → 1.0.1-d.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pxv.cjs +1 -1
- package/dist/pxv.cjs.map +1 -1
- package/dist/pxv.modern.js +19 -19
- package/dist/pxv.modern.js.map +1 -1
- package/dist/pxv.module.js +1 -1
- package/dist/pxv.module.js.map +1 -1
- package/dist/pxv.umd.js +1 -1
- package/dist/pxv.umd.js.map +1 -1
- package/package.json +12 -7
package/dist/pxv.modern.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e,{useRef as t,useContext as r,useLayoutEffect as n,createElement as a,useMemo as i,Component as o}from"react";import s from"decimal.js";import*as l from"highcharts";import c from"highcharts";import u from"highcharts/modules/accessibility.js";import m from"highcharts/modules/exporting.js";import d from"highcharts/modules/export-data.js";import p from"highcharts/modules/offline-exporting.js";import*as h from"xlsx";import{HighchartsReact as f}from"highcharts-react-official";import{v4 as g}from"uuid";function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},y.apply(this,arguments)}function v(e){var t={exports:{}};return e(t,t.exports),t.exports}var b,w=Symbol.for("react.element"),S=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),N=Symbol.for("react.context"),E=Symbol.for("react.server_context"),$=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen");function z(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case w:switch(e=e.type){case x:case k:case C:case P:case j:return e;default:switch(e=e&&e.$$typeof){case E:case N:case $:case M:case T:case A:return e;default:return t}}case S:return t}}}b=Symbol.for("react.module.reference");var L={ContextConsumer:N,ContextProvider:A,Element:w,ForwardRef:$,Fragment:x,Lazy:M,Memo:T,Portal:S,Profiler:k,StrictMode:C,Suspense:P,SuspenseList:j,isAsyncMode:function(){return!1},isConcurrentMode:function(){return!1},isContextConsumer:function(e){return z(e)===N},isContextProvider:function(e){return z(e)===A},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===w},isForwardRef:function(e){return z(e)===$},isFragment:function(e){return z(e)===x},isLazy:function(e){return z(e)===M},isMemo:function(e){return z(e)===T},isPortal:function(e){return z(e)===S},isProfiler:function(e){return z(e)===k},isStrictMode:function(e){return z(e)===C},isSuspense:function(e){return z(e)===P},isSuspenseList:function(e){return z(e)===j},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===x||e===k||e===C||e===P||e===j||e===D||"object"==typeof e&&null!==e&&(e.$$typeof===M||e.$$typeof===T||e.$$typeof===A||e.$$typeof===N||e.$$typeof===$||e.$$typeof===b||void 0!==e.getModuleId)},typeOf:z},O=v(function(e,t){"production"!==process.env.NODE_ENV&&function(){var e,r=Symbol.for("react.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:var f=e.type;switch(f){case a:case o:case i:case m:case d:return f;default:var g=f&&f.$$typeof;switch(g){case c:case l:case u:case h:case p:case s:return g;default:return t}}case n:return t}}}e=Symbol.for("react.module.reference");var y=s,v=r,b=u,w=a,S=h,x=p,C=n,k=o,A=i,N=m,E=d,$=!1,P=!1;t.ContextConsumer=l,t.ContextProvider=y,t.Element=v,t.ForwardRef=b,t.Fragment=w,t.Lazy=S,t.Memo=x,t.Portal=C,t.Profiler=k,t.StrictMode=A,t.Suspense=N,t.SuspenseList=E,t.isAsyncMode=function(e){return $||($=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},t.isConcurrentMode=function(e){return P||(P=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},t.isContextConsumer=function(e){return g(e)===l},t.isContextProvider=function(e){return g(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return g(e)===u},t.isFragment=function(e){return g(e)===a},t.isLazy=function(e){return g(e)===h},t.isMemo=function(e){return g(e)===p},t.isPortal=function(e){return g(e)===n},t.isProfiler=function(e){return g(e)===o},t.isStrictMode=function(e){return g(e)===i},t.isSuspense=function(e){return g(e)===m},t.isSuspenseList=function(e){return g(e)===d},t.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===a||t===o||t===i||t===m||t===d||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===p||t.$$typeof===s||t.$$typeof===l||t.$$typeof===u||t.$$typeof===e||void 0!==t.getModuleId)},t.typeOf=g}()}),V=v(function(e){e.exports="production"===process.env.NODE_ENV?L:O});function I(e){function t(e,n,l,c,d){for(var p,h,f,g,w,x=0,C=0,k=0,A=0,N=0,M=0,z=f=p=0,O=0,V=0,I=0,R=0,G=l.length,_=G-1,B="",q="",F="",H="";O<G;){if(h=l.charCodeAt(O),O===_&&0!==C+A+k+x&&(0!==C&&(h=47===C?10:47),A=k=x=0,G++,_++),0===C+A+k+x){if(O===_&&(0<V&&(B=B.replace(m,"")),0<B.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:B+=l.charAt(O)}h=59}switch(h){case 123:for(p=(B=B.trim()).charCodeAt(0),f=1,R=++O;O<G;){switch(h=l.charCodeAt(O)){case 123:f++;break;case 125:f--;break;case 47:switch(h=l.charCodeAt(O+1)){case 42:case 47:e:{for(z=O+1;z<_;++z)switch(l.charCodeAt(z)){case 47:if(42===h&&42===l.charCodeAt(z-1)&&O+2!==z){O=z+1;break e}break;case 10:if(47===h){O=z+1;break e}}O=z}}break;case 91:h++;case 40:h++;case 34:case 39:for(;O++<_&&l.charCodeAt(O)!==h;);}if(0===f)break;O++}if(f=l.substring(R,O),0===p&&(p=(B=B.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<V&&(B=B.replace(m,"")),h=B.charCodeAt(1)){case 100:case 109:case 115:case 45:V=n;break;default:V=T}if(R=(f=t(n,V,f,h,d+1)).length,0<D&&(w=s(3,f,V=r(T,B,I),n,$,E,R,h,d,c),B=V.join(""),void 0!==w&&0===(R=(f=w.trim()).length)&&(h=0,f="")),0<R)switch(h){case 115:B=B.replace(S,o);case 100:case 109:case 45:f=B+"{"+f+"}";break;case 107:f=(B=B.replace(y,"$1 $2"))+"{"+f+"}",f=1===j||2===j&&i("@"+f,3)?"@-webkit-"+f+"@"+f:"@"+f;break;default:f=B+f,112===c&&(q+=f,f="")}else f=""}else f=t(n,r(n,B,I),f,c,d+1);F+=f,f=I=V=z=p=0,B="",h=l.charCodeAt(++O);break;case 125:case 59:if(1<(R=(B=(0<V?B.replace(m,""):B).trim()).length))switch(0===z&&(p=B.charCodeAt(0),45===p||96<p&&123>p)&&(R=(B=B.replace(" ",":")).length),0<D&&void 0!==(w=s(1,B,n,e,$,E,q.length,c,d,c))&&0===(R=(B=w.trim()).length)&&(B="\0\0"),p=B.charCodeAt(0),h=B.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){H+=B+l.charAt(O);break}default:58!==B.charCodeAt(R-1)&&(q+=a(B,p,h,B.charCodeAt(2)))}I=V=z=p=0,B="",h=l.charCodeAt(++O)}}switch(h){case 13:case 10:47===C?C=0:0===1+p&&107!==c&&0<B.length&&(V=1,B+="\0"),0<D*L&&s(0,B,n,e,$,E,q.length,c,d,c),E=1,$++;break;case 59:case 125:if(0===C+A+k+x){E++;break}default:switch(E++,g=l.charAt(O),h){case 9:case 32:if(0===A+x+C)switch(N){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===A+C+x&&(V=I=1,g="\f"+g);break;case 108:if(0===A+C+x+P&&0<z)switch(O-z){case 2:112===N&&58===l.charCodeAt(O-3)&&(P=N);case 8:111===M&&(P=M)}break;case 58:0===A+C+x&&(z=O);break;case 44:0===C+k+A+x&&(V=1,g+="\r");break;case 34:case 39:0===C&&(A=A===h?0:0===A?h:A);break;case 91:0===A+C+k&&x++;break;case 93:0===A+C+k&&x--;break;case 41:0===A+C+x&&k--;break;case 40:0===A+C+x&&(0===p&&(2*N+3*M==533||(p=1)),k++);break;case 64:0===C+k+A+x+z+f&&(f=1);break;case 42:case 47:if(!(0<A+x+k))switch(C){case 0:switch(2*h+3*l.charCodeAt(O+1)){case 235:C=47;break;case 220:R=O,C=42}break;case 42:47===h&&42===N&&R+2!==O&&(33===l.charCodeAt(R+2)&&(q+=l.substring(R,O+1)),g="",C=0)}}0===C&&(B+=g)}M=N,N=h,O++}if(0<(R=q.length)){if(V=n,0<D&&void 0!==(w=s(2,q,V,e,$,E,R,c,d,c))&&0===(q=w).length)return H+q+F;if(q=V.join(",")+"{"+q+"}",0!=j*P){switch(2!==j||i(q,2)||(P=0),P){case 111:q=q.replace(b,":-moz-$1")+q;break;case 112:q=q.replace(v,"::-webkit-input-$1")+q.replace(v,"::-moz-$1")+q.replace(v,":-ms-input-$1")+q}P=0}}return H+q+F}function r(e,t,r){var a=t.trim().split(f);t=a;var i=a.length,o=e.length;switch(o){case 0:case 1:var s=0;for(e=0===o?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var l=s=0;for(t=[];s<i;++s)for(var c=0;c<o;++c)t[l++]=n(e[c]+" ",a[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function a(e,t,r,n){var o=e+";",s=2*t+3*r+4*n;if(944===s){e=o.indexOf(":",9)+1;var l=o.substring(e,o.length-1).trim();return l=o.substring(0,e).trim()+l+";",1===j||2===j&&i(l,1)?"-webkit-"+l+l:l}if(0===j||2===j&&!i(o,1))return o;switch(s){case 1015:return 97===o.charCodeAt(10)?"-webkit-"+o+o:o;case 951:return 116===o.charCodeAt(3)?"-webkit-"+o+o:o;case 963:return 110===o.charCodeAt(5)?"-webkit-"+o+o:o;case 1009:if(100!==o.charCodeAt(4))break;case 969:case 942:return"-webkit-"+o+o;case 978:return"-webkit-"+o+"-moz-"+o+o;case 1019:case 983:return"-webkit-"+o+"-moz-"+o+"-ms-"+o+o;case 883:if(45===o.charCodeAt(8))return"-webkit-"+o+o;if(0<o.indexOf("image-set(",11))return o.replace(N,"$1-webkit-$2")+o;break;case 932:if(45===o.charCodeAt(4))switch(o.charCodeAt(5)){case 103:return"-webkit-box-"+o.replace("-grow","")+"-webkit-"+o+"-ms-"+o.replace("grow","positive")+o;case 115:return"-webkit-"+o+"-ms-"+o.replace("shrink","negative")+o;case 98:return"-webkit-"+o+"-ms-"+o.replace("basis","preferred-size")+o}return"-webkit-"+o+"-ms-"+o+o;case 964:return"-webkit-"+o+"-ms-flex-"+o+o;case 1023:if(99!==o.charCodeAt(8))break;return"-webkit-box-pack"+(l=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+o+"-ms-flex-pack"+l+o;case 1005:return p.test(o)?o.replace(d,":-webkit-")+o.replace(d,":-moz-")+o:o;case 1e3:switch(t=(l=o.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=o.replace(w,"tb");break;case 232:l=o.replace(w,"tb-rl");break;case 220:l=o.replace(w,"lr");break;default:return o}return"-webkit-"+o+"-ms-"+l+o;case 1017:if(-1===o.indexOf("sticky",9))break;case 975:switch(t=(o=e).length-10,s=(l=(33===o.charCodeAt(t)?o.substring(0,t):o).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:o=o.replace(l,"-webkit-"+l)+";"+o;break;case 207:case 102:o=o.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+o.replace(l,"-webkit-"+l)+";"+o.replace(l,"-ms-"+l+"box")+";"+o}return o+";";case 938:if(45===o.charCodeAt(5))switch(o.charCodeAt(6)){case 105:return l=o.replace("-items",""),"-webkit-"+o+"-webkit-box-"+l+"-ms-flex-"+l+o;case 115:return"-webkit-"+o+"-ms-flex-item-"+o.replace(C,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(C,"")+o}break;case 973:case 989:if(45!==o.charCodeAt(3)||122===o.charCodeAt(4))break;case 931:case 953:if(!0===A.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?a(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):o.replace(l,"-webkit-"+l)+o.replace(l,"-moz-"+l.replace("fill-",""))+o;break;case 962:if(o="-webkit-"+o+(102===o.charCodeAt(5)?"-ms-"+o:"")+o,211===r+n&&105===o.charCodeAt(13)&&0<o.indexOf("transform",10))return o.substring(0,o.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+o}return o}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),z(2!==t?n:n.replace(k,"$1"),r,t)}function o(e,t){var r=a(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(x," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,a,i,o,s,l,u){for(var m,d=0,p=t;d<D;++d)switch(m=M[d].call(c,e,p,r,n,a,i,o,s,l,u)){case void 0:case!1:case!0:case null:break;default:p=m}if(p!==t)return p}function l(e){return void 0!==(e=e.prefix)&&(z=null,e?"function"!=typeof e?j=1:(j=2,z=e):j=0),l}function c(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<D){var a=s(-1,r,n,n,$,E,0,0,0,0);void 0!==a&&"string"==typeof a&&(r=a)}var i=t(T,n,r,0,0);return 0<D&&void 0!==(a=s(-2,i,n,n,$,E,i.length,0,0,0))&&(i=a),P=0,E=$=1,i}var u=/^\0+/g,m=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,f=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,C=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,A=/stretch|:\s*\w+\-(?:conte|avail)/,N=/([^-])(image-set\()/,E=1,$=1,P=0,j=1,T=[],M=[],D=0,z=null,L=0;return c.use=function e(t){switch(t){case void 0:case null:D=M.length=0;break;default:if("function"==typeof t)M[D++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else L=0|!!t}return e},c.set=l,void 0!==e&&l(e),c}var R={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function G(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var _=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,B=/* #__PURE__ */G(function(e){return _.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),q="function"==typeof Symbol&&Symbol.for,F=q?Symbol.for("react.element"):60103,H=q?Symbol.for("react.portal"):60106,W=q?Symbol.for("react.fragment"):60107,Y=q?Symbol.for("react.strict_mode"):60108,U=q?Symbol.for("react.profiler"):60114,Z=q?Symbol.for("react.provider"):60109,X=q?Symbol.for("react.context"):60110,K=q?Symbol.for("react.async_mode"):60111,J=q?Symbol.for("react.concurrent_mode"):60111,Q=q?Symbol.for("react.forward_ref"):60112,ee=q?Symbol.for("react.suspense"):60113,te=q?Symbol.for("react.suspense_list"):60120,re=q?Symbol.for("react.memo"):60115,ne=q?Symbol.for("react.lazy"):60116,ae=q?Symbol.for("react.block"):60121,ie=q?Symbol.for("react.fundamental"):60117,oe=q?Symbol.for("react.responder"):60118,se=q?Symbol.for("react.scope"):60119;function le(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case F:switch(e=e.type){case K:case J:case W:case U:case Y:case ee:return e;default:switch(e=e&&e.$$typeof){case X:case Q:case ne:case re:case Z:return e;default:return t}}case H:return t}}}function ce(e){return le(e)===J}var ue={AsyncMode:K,ConcurrentMode:J,ContextConsumer:X,ContextProvider:Z,Element:F,ForwardRef:Q,Fragment:W,Lazy:ne,Memo:re,Portal:H,Profiler:U,StrictMode:Y,Suspense:ee,isAsyncMode:function(e){return ce(e)||le(e)===K},isConcurrentMode:ce,isContextConsumer:function(e){return le(e)===X},isContextProvider:function(e){return le(e)===Z},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===F},isForwardRef:function(e){return le(e)===Q},isFragment:function(e){return le(e)===W},isLazy:function(e){return le(e)===ne},isMemo:function(e){return le(e)===re},isPortal:function(e){return le(e)===H},isProfiler:function(e){return le(e)===U},isStrictMode:function(e){return le(e)===Y},isSuspense:function(e){return le(e)===ee},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===W||e===J||e===U||e===Y||e===ee||e===te||"object"==typeof e&&null!==e&&(e.$$typeof===ne||e.$$typeof===re||e.$$typeof===Z||e.$$typeof===X||e.$$typeof===Q||e.$$typeof===ie||e.$$typeof===oe||e.$$typeof===se||e.$$typeof===ae)},typeOf:le},me=v(function(e,t){"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,r=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:var p=e.type;switch(p){case c:case u:case a:case o:case i:case d:return p;default:var g=p&&p.$$typeof;switch(g){case l:case m:case f:case h:case s:return g;default:return t}}case n:return t}}}var S=u,x=l,C=s,k=r,A=m,N=a,E=f,$=h,P=n,j=o,T=i,M=d,D=!1;function z(e){return w(e)===u}t.AsyncMode=c,t.ConcurrentMode=S,t.ContextConsumer=x,t.ContextProvider=C,t.Element=k,t.ForwardRef=A,t.Fragment=N,t.Lazy=E,t.Memo=$,t.Portal=P,t.Profiler=j,t.StrictMode=T,t.Suspense=M,t.isAsyncMode=function(e){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(e)||w(e)===c},t.isConcurrentMode=z,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===m},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===f},t.isMemo=function(e){return w(e)===h},t.isPortal=function(e){return w(e)===n},t.isProfiler=function(e){return w(e)===o},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===u||e===o||e===i||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===s||e.$$typeof===l||e.$$typeof===m||e.$$typeof===y||e.$$typeof===v||e.$$typeof===b||e.$$typeof===g)},t.typeOf=w}()}),de=v(function(e){e.exports="production"===process.env.NODE_ENV?ue:me}),pe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},he={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},fe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ge={};function ye(e){return de.isMemo(e)?fe:ge[e.$$typeof]||pe}ge[de.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ge[de.Memo]=fe;var ve=Object.defineProperty,be=Object.getOwnPropertyNames,we=Object.getOwnPropertySymbols,Se=Object.getOwnPropertyDescriptor,xe=Object.getPrototypeOf,Ce=Object.prototype,ke=function e(t,r,n){if("string"!=typeof r){if(Ce){var a=xe(r);a&&a!==Ce&&e(t,a,n)}var i=be(r);we&&(i=i.concat(we(r)));for(var o=ye(t),s=ye(r),l=0;l<i.length;++l){var c=i[l];if(!(he[c]||n&&n[c]||s&&s[c]||o&&o[c])){var u=Se(r,c);try{ve(t,c,u)}catch(e){}}}}return t};function Ae(){return(Ae=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var Ne=function(e,t){for(var r=[e[0]],n=0,a=t.length;n<a;n+=1)r.push(t[n],e[n+1]);return r},Ee=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!V.typeOf(e)},$e=Object.freeze([]),Pe=Object.freeze({});function je(e){return"function"==typeof e}function Te(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function Me(e){return e&&"string"==typeof e.styledComponentId}var De="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ze="undefined"!=typeof window&&"HTMLElement"in window,Le=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&(void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV)),Oe={},Ve="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function Ie(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],r=1,n=arguments.length;r<n;r+=1)t.push(r<0||arguments.length<=r?void 0:arguments[r]);return t.forEach(function(t){e=e.replace(/%[a-z]/,t)}),e}function Re(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw"production"===process.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):"")):new Error(Ie.apply(void 0,[Ve[e]].concat(r)).trim())}var Ge=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,a=n;e>=a;)(a<<=1)<0&&Re(16,""+e);this.groupSizes=new Uint32Array(a),this.groupSizes.set(r),this.length=a;for(var i=n;i<a;i++)this.groupSizes[i]=0}for(var o=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(o,t[s])&&(this.groupSizes[e]++,o++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var a=r;a<n;a++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),a=n+r,i=n;i<a;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),_e=new Map,Be=new Map,qe=1,Fe=function(e){if(_e.has(e))return _e.get(e);for(;Be.has(qe);)qe++;var t=qe++;return"production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&Re(16,""+t),_e.set(e,t),Be.set(t,e),t},He=function(e){return Be.get(e)},We=function(e,t){t>=qe&&(qe=t+1),_e.set(e,t),Be.set(t,e)},Ye="style["+De+'][data-styled-version="5.3.11"]',Ue=new RegExp("^"+De+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Ze=function(e,t,r){for(var n,a=r.split(","),i=0,o=a.length;i<o;i++)(n=a[i])&&e.registerName(t,n)},Xe=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],a=0,i=r.length;a<i;a++){var o=r[a].trim();if(o){var s=o.match(Ue);if(s){var l=0|parseInt(s[1],10),c=s[2];0!==l&&(We(c,l),Ze(e,c,s[3]),e.getTag().insertRules(l,n)),n.length=0}else n.push(o)}}},Ke=function(e){var t=document.head,r=e||t,n=document.createElement("style"),a=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(De))return n}}(r),i=void 0!==a?a.nextSibling:null;n.setAttribute(De,"active"),n.setAttribute("data-styled-version","5.3.11");var o="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return o&&n.setAttribute("nonce",o),r.insertBefore(n,i),n},Je=function(){function e(e){var t=this.element=Ke(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var a=t[r];if(a.ownerNode===e)return a}Re(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),Qe=function(){function e(e){var t=this.element=Ke(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),et=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),tt=ze,rt={isServer:!ze,useCSSOMInjection:!Le},nt=function(){function e(e,t,r){void 0===e&&(e=Pe),void 0===t&&(t={}),this.options=Ae({},rt,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&ze&&tt&&(tt=!1,function(e){for(var t=document.querySelectorAll(Ye),r=0,n=t.length;r<n;r++){var a=t[r];a&&"active"!==a.getAttribute(De)&&(Xe(e,a),a.parentNode&&a.parentNode.removeChild(a))}}(this))}e.registerId=function(e){return Fe(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(Ae({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,a=t.target,e=r?new et(a):n?new Je(a):new Qe(a),new Ge(e)));var e,t,r,n,a},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Fe(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(Fe(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Fe(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",a=0;a<r;a++){var i=He(a);if(void 0!==i){var o=e.names.get(i),s=t.getGroup(a);if(o&&s&&o.size){var l=De+".g"+a+'[id="'+i+'"]',c="";void 0!==o&&o.forEach(function(e){e.length>0&&(c+=e+",")}),n+=""+s+l+'{content:"'+c+'"}/*!sc*/\n'}}}return n}(this)},e}(),at=/(a)(d)/gi,it=function(e){return String.fromCharCode(e+(e>25?39:97))};function ot(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=it(t%52)+r;return(it(t%52)+r).replace(at,"$1-$2")}var st=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},lt=function(e){return st(5381,e)};function ct(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(je(r)&&!Me(r))return!1}return!0}var ut=lt("5.3.11"),mt=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===r||r.isStatic)&&ct(e),this.componentId=t,this.baseHash=st(ut,t),this.baseStyle=r,nt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,a=[];if(this.baseStyle&&a.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))a.push(this.staticRulesId);else{var i=Et(this.rules,e,t,r).join(""),o=ot(st(this.baseHash,i)>>>0);if(!t.hasNameForId(n,o)){var s=r(i,"."+o,void 0,n);t.insertRules(n,o,s)}a.push(o),this.staticRulesId=o}else{for(var l=this.rules.length,c=st(this.baseHash,r.hash),u="",m=0;m<l;m++){var d=this.rules[m];if("string"==typeof d)u+=d,"production"!==process.env.NODE_ENV&&(c=st(c,d+m));else if(d){var p=Et(d,e,t,r),h=Array.isArray(p)?p.join(""):p;c=st(c,h+m),u+=h}}if(u){var f=ot(c>>>0);if(!t.hasNameForId(n,f)){var g=r(u,"."+f,void 0,n);t.insertRules(n,f,g)}a.push(f)}}return a.join(" ")},e}(),dt=/^\s*\/\/.*$/gm,pt=[":","[",".","#"],ht=e.createContext(),ft=e.createContext(),gt=new nt,yt=function(e){var t,r,n,a,i=Pe.options,o=Pe.plugins,s=void 0===o?$e:o,l=new I(void 0===i?Pe:i),c=[],u=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,a,i,o,s,l,c,u,m){switch(r){case 1:if(0===u&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===c)return n+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(a[0]+n),"";default:return n+(0===m?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}(function(e){c.push(e)}),m=function(e,n,i){return 0===n&&-1!==pt.indexOf(i[r.length])||i.match(a)?e:"."+t};function d(e,i,o,s){void 0===s&&(s="&");var c=e.replace(dt,""),u=i&&o?o+" "+i+" { "+c+" }":c;return t=s,r=i,n=new RegExp("\\"+r+"\\b","g"),a=new RegExp("(\\"+r+"\\b){2,}"),l(o||!i?"":i,u)}return l.use([].concat(s,[function(e,t,a){2===e&&a.length&&a[0].lastIndexOf(r)>0&&(a[0]=a[0].replace(n,m))},u,function(e){if(-2===e){var t=c;return c=[],t}}])),d.hash=s.length?s.reduce(function(e,t){return t.name||Re(15),st(e,t.name)},5381).toString():"",d}();function vt(){return r(ht)||gt}function bt(){return r(ft)||yt}var wt=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=yt);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return Re(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=yt),this.name+e.hash},e}(),St=/([A-Z])/,xt=/([A-Z])/g,Ct=/^ms-/,kt=function(e){return"-"+e.toLowerCase()};function At(e){return St.test(e)?e.replace(xt,kt).replace(Ct,"-ms-"):e}var Nt=function(e){return null==e||!1===e||""===e};function Et(e,t,r,n){if(Array.isArray(e)){for(var a,i=[],o=0,s=e.length;o<s;o+=1)""!==(a=Et(e[o],t,r,n))&&(Array.isArray(a)?i.push.apply(i,a):i.push(a));return i}if(Nt(e))return"";if(Me(e))return"."+e.styledComponentId;if(je(e)){if("function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t)return e;var l=e(t);return"production"!==process.env.NODE_ENV&&V.isElement(l)&&console.warn(Te(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),Et(l,t,r,n)}var c;return e instanceof wt?r?(e.inject(r,n),e.getName(n)):e:Ee(e)?function e(t,r){var n,a,i=[];for(var o in t)t.hasOwnProperty(o)&&!Nt(t[o])&&(Array.isArray(t[o])&&t[o].isCss||je(t[o])?i.push(At(o)+":",t[o],";"):Ee(t[o])?i.push.apply(i,e(t[o],o)):i.push(At(o)+": "+(n=o,(null==(a=t[o])||"boolean"==typeof a||""===a?"":"number"!=typeof a||0===a||n in R||n.startsWith("--")?String(a).trim():a+"px")+";")));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString()}var $t=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Pt(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return je(e)||Ee(e)?$t(Et(Ne($e,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:$t(Et(Ne(e,r)))}var jt=/invalid hook call/i,Tt=new Set,Mt=function(e,r){if("production"!==process.env.NODE_ENV){var n="The component "+e+(r?' with the id of "'+r+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",a=console.error;try{var i=!0;console.error=function(e){if(jt.test(e))i=!1,Tt.delete(n);else{for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];a.apply(void 0,[e].concat(r))}},t(),i&&!Tt.has(n)&&(console.warn(n),Tt.add(n))}catch(e){jt.test(e.message)&&Tt.delete(n)}finally{console.error=a}}},Dt=function(e,t,r){return void 0===r&&(r=Pe),e.theme!==r.theme&&e.theme||t||r.theme},zt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Lt=/(^-|-$)/g;function Ot(e){return e.replace(zt,"-").replace(Lt,"")}var Vt=function(e){return ot(lt(e)>>>0)};function It(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var Rt=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Gt=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function _t(e,t,r){var n=e[r];Rt(t)&&Rt(n)?Bt(n,t):e[r]=t}function Bt(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var a=0,i=r;a<i.length;a++){var o=i[a];if(Rt(o))for(var s in o)Gt(s)&&_t(e,o[s],s)}return e}var qt=e.createContext(),Ft={};function Ht(t,n,i){var o=Me(t),s=!It(t),l=n.attrs,c=void 0===l?$e:l,u=n.componentId,m=void 0===u?function(e,t){var r="string"!=typeof e?"sc":Ot(e);Ft[r]=(Ft[r]||0)+1;var n=r+"-"+Vt("5.3.11"+r+Ft[r]);return t?t+"-"+n:n}(n.displayName,n.parentComponentId):u,d=n.displayName,p=void 0===d?function(e){return It(e)?"styled."+e:"Styled("+Te(e)+")"}(t):d,h=n.displayName&&n.componentId?Ot(n.displayName)+"-"+n.componentId:n.componentId||m,f=o&&t.attrs?Array.prototype.concat(t.attrs,c).filter(Boolean):c,g=n.shouldForwardProp;o&&t.shouldForwardProp&&(g=n.shouldForwardProp?function(e,r,a){return t.shouldForwardProp(e,r,a)&&n.shouldForwardProp(e,r,a)}:t.shouldForwardProp);var y,v=new mt(i,h,o?t.componentStyle:void 0),b=v.isStatic&&0===c.length,w=function(e,t){return function(e,t,n,i){var o=e.attrs,s=e.componentStyle,l=e.defaultProps,c=e.foldedComponentIds,u=e.shouldForwardProp,m=e.styledComponentId,d=e.target,p=function(e,t,r){void 0===e&&(e=Pe);var n=Ae({},t,{theme:e}),a={};return r.forEach(function(e){var t,r,i,o=e;for(t in je(o)&&(o=o(n)),o)n[t]=a[t]="className"===t?(i=o[t],(r=a[t])&&i?r+" "+i:r||i):o[t]}),[n,a]}(Dt(t,r(qt),l)||Pe,t,o),h=p[1],f=function(e,t,r,n){var a=vt(),i=bt(),o=e.generateAndInjectStyles(t?Pe:r,a,i);return"production"!==process.env.NODE_ENV&&!t&&n&&n(o),o}(s,i,p[0],"production"!==process.env.NODE_ENV?e.warnTooManyClasses:void 0),g=n,y=h.$as||t.$as||h.as||t.as||d,v=It(y),b=h!==t?Ae({},t,{},h):t,w={};for(var S in b)"$"!==S[0]&&"as"!==S&&("forwardedAs"===S?w.as=b[S]:(u?u(S,B,y):!v||B(S))&&(w[S]=b[S]));return t.style&&h.style!==t.style&&(w.style=Ae({},t.style,{},h.style)),w.className=Array.prototype.concat(c,m,f!==m?f:null,t.className,h.className).filter(Boolean).join(" "),w.ref=g,a(y,w)}(y,e,t,b)};return w.displayName=p,(y=e.forwardRef(w)).attrs=f,y.componentStyle=v,y.displayName=p,y.shouldForwardProp=g,y.foldedComponentIds=o?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):$e,y.styledComponentId=h,y.target=o?t.target:t,y.withComponent=function(e){var t=n.componentId,r=function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(a[r]=e[r]);return a}(n,["componentId"]),a=t&&t+"-"+(It(e)?e:Ot(Te(e)));return Ht(e,Ae({},r,{attrs:f,componentId:a}),i)},Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=o?Bt({},t.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(Mt(p,h),y.warnTooManyClasses=function(e,t){var r={},n=!1;return function(a){!n&&(r[a]=!0,Object.keys(r).length>=200)&&(console.warn("Over 200 classes were generated for component "+e+(t?' with the id of "'+t+'"':"")+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),n=!0,r={})}}(p,h)),Object.defineProperty(y,"toString",{value:function(){return"."+y.styledComponentId}}),s&&ke(y,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),y}var Wt=function(e){return function e(t,r,n){if(void 0===n&&(n=Pe),!V.isValidElementType(r))return Re(1,String(r));var a=function(){return t(r,n,Pt.apply(void 0,arguments))};return a.withConfig=function(a){return e(t,r,Ae({},n,{},a))},a.attrs=function(a){return e(t,r,Ae({},n,{attrs:Array.prototype.concat(n.attrs,a).filter(Boolean)}))},a}(Ht,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Wt[e]=Wt(e)});var Yt=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ct(e),nt.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var a=n(Et(this.rules,t,r,n).join(""),""),i=this.componentId+e;r.insertRules(i,i,a)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&nt.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1);var Ut,Zt,Xt,Kt=Wt;!function(e){e.VerticalBarChart="VerticalBarChart",e.GroupVerticalBarChart="GroupVerticalBarChart",e.StackedVerticalBarChart="StackedVerticalBarChart",e.PercentVerticalBarChart="PercentVerticalBarChart",e.HorizontalBarChart="HorizontalBarChart",e.GroupHorizontalBarChart="GroupHorizontalBarChart",e.StackedHorizontalBarChart="StackedHorizontalBarChart",e.PercentHorizontalBarChart="PercentHorizontalBarChart",e.PyramidChart="PyramidChart",e.PieChart="PieChart",e.LineChart="LineChart",e.ScatterPlot="ScatterPlot",e.Table="Table"}(Ut||(Ut={})),function(e){e.Unknown="N",e.Time="T",e.Ordinal="P",e.Geological="G",e.Content="C",e.OtherClassificatory="F"}(Zt||(Zt={})),function(e){e.Week="Week",e.Month="Month",e.Quarter="Quarter",e.HalfYear="HalfYear",e.Year="Year",e.Decade="Decade",e.Irregular="Irregular"}(Xt||(Xt={}));const Jt={empty:{fi:"",sv:"",en:""},preliminaryData:{fi:"Ennakko",sv:"Preliminär",en:"Preliminary data"},source:{fi:"Lähde",sv:"Källa",en:"Source"},unit:{fi:"Yksikkö",sv:"Enhet",en:"Unit"},graphCreationError:{fi:"Kuviota ei voitu muodostaa",sv:"Diagrammet kunde inte skapas",en:"The graph could not be created"},thousandsSep:{fi:" ",sv:" ",en:","},thousandsSepAccessibility:{fi:"",sv:"",en:","},decimalPoint:{fi:",",sv:",",en:"."},barMultiple:{fi:"Pystypylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Flerdimensionellt vertikalt stapeldiagram.",en:"Bar chart with {numSeries} data series."},barSingle:{fi:"Pystypylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Vertikalt stapeldiagram.",en:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}."},columnSingle:{fi:"Vaakapylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Horisontellt stapeldiagram.",en:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}."},columnMultiple:{fi:"Vaakapylväskuvio, jossa {numSeries} muuttujaa.",sv:"Flerdimensionellt horisontellt stapeldiagram.",en:"Bar chart with {numSeries} data series."},lineSingle:{fi:"Viivakuvio, jossa {numPoints} havainto{#eq numPoints 1}arvo{else}arvoa{/eq}.",sv:"Linjediagram.",en:"Line chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}."},lineMultiple:{fi:"Viivakuvio, jossa {numSeries} viivaa.",sv:"Flerdimensionellt linjediagram.",en:"Line chart with {numSeries} lines."},pieSingle:{fi:"Piirakkakuvio, jossa {numPoints} {#eq numPoints 1}lohko{else}lohkoa{/eq}.",sv:"Cirkeldiagram.",en:"Pie chart with {numPoints} {#eq numPoints 1}slice{else}slices{/eq}."},pieMultiple:{fi:"Piirakkakuvio, jossa {numSeries} piirakkaa.",sv:"Flerdimensionellt cirkeldiagram.",en:"Pie chart with {numSeries} pies."},scatterSingle:{fi:"Hajontakuvio, jossa {numPoints} {#eq numPoints 1}piste{else}pistettä{/eq}.",sv:"Spridningsdiagram.",en:"Scatter chart with {numPoints} {#eq numPoints 1}point{else}points{/eq}."},scatterMultiple:{fi:"Hajontakuvio,jossa {numSeries} datasarjaa.",sv:"Flerdimensionellt spridningsdiagram.",en:"Scatter chart with {numSeries} data series."},defaultSingle:{fi:"Kuvio, jossa {numPoints} data{#eq numPoints 1}piste{else}pistettä{/eq}.",sv:"Endimensionellt diagram.",en:"Chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}."},defaultMultiple:{fi:"Kuvio, jossa {numSeries} datasarjaa.",sv:"Flerdimensionellt diagram.",en:"Chart with {numSeries} data series."},defaultChartTitle:{fi:"Kuvio",sv:"Diagrammets rubrik",en:"Chart"},chartMenuLabel:{fi:"Kuvion valikko",sv:"Diagrammets meny",en:"Chart menu"},menuButtonLabel:{fi:"Katso valikko kuviosta {chartTitle}",sv:"Visa diagrammets meny",en:"View chart menu, {chartTitle}"},credits:{fi:"{creditsStr}",sv:"{creditsStr}",en:"{creditsStr}"},legendItem:{fi:"Näytä {itemName}",sv:"Variabelvärde",en:"Show {itemName}"},legendLabel:{fi:"Kuvion selite: {legendTitle}",sv:"Bläddra visuellt i variabelvärden",en:"Chart legend: {legendTitle}"},legendLabelNoTitle:{fi:"Vaihda sarjojen näkyvyyttä, {chartTitle}",sv:"Ingen etikett",en:"Toggle series visibility, {chartTitle}"},contextButtonTitle:{fi:"Kuvion valintamenu",sv:"Diagrammets valmeny",en:"Chart context menu"},downloadPNG:{fi:"Lataa kuvio (png)",sv:"Ladda ner figuren (png)",en:"Download figure (png)"},downloadSVG:{fi:"Lataa kuvio (svg)",sv:"Ladda ner figuren (svg)",en:"Download figure (svg)"},downloadXLSX:{fi:"Lataa taulukko (xlsx)",sv:"Ladda ner tabellen (xlsx)",en:"Download table (xlsx)"},downloadCSV:{fi:"Lataa taulukko (csv)",sv:"Ladda ner tabellen (csv)",en:"Download table (csv)"},rangeCategories:{fi:"Datan arvoalue: {numCategories} luokkaa.",sv:"Diagrammets värdeområde.",en:"Data range: {numCategories} categories."},rangeFromTo:{fi:"Arvot alkavat {rangeFrom} ja päättyvät {rangeTo}.",sv:"Värdena börjar från {rangeFrom} och slutar vid {rangeTo}.",en:"Data ranges from {rangeFrom} to {rangeTo}."},timeRangeDays:{fi:"Arvoja päiviltä {range}.",sv:"Värden för dagarna {range}.",en:"Data range: {range} days."},timeRangeHours:{fi:"Arvoja tunneilta {range}",sv:"Värden för timmarna {range}",en:"Data range: {range} hours."},timeRangeMinutes:{fi:"Arvoja minuuteilta {range}",sv:"Värden för minuterna {range}",en:"Data range: {range} minutes."},timeRangeSeconds:{fi:"Arvoja sekunneilta {range}",sv:"Värden för sekunderna {range}",en:"Data range: {range} seconds."},xAxisDescriptionPlural:{fi:"Kuviolla on {numAxes} x-akselia muuttujille {#each names}{#unless @first},{/unless}{#if @last} ja{/if} {this}{/each}.",sv:"Figuren har {numAxes} x-axlar för variablerna {#each names}{#unless @first},{/unless}{#if @last} och{/if} {this}{/each}.",en:"The chart has {numAxes} X axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}."},xAxisDescriptionSingular:{fi:"Kuviolla on 1 x-akseli muuttujalle {names[0]}. {ranges[0]}",sv:"Figuren har en x-axel för variabeln {names[0]}. {ranges[0]}",en:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}"},yAxisDescriptionPlural:{fi:"Kuviolla on {numAxes} y-akselia muuttujille {#each names}{#unless @first},{/unless}{#if @last} ja{/if} {this}{/each}.",sv:"Figuren har {numAxes} y-axlar för variablerna {#each names}{#unless @first},{/unless}{#if @last} och{/if} {this}{/each}.",en:"The chart has {numAxes} Y axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}."},yAxisDescriptionSingular:{fi:"Kuviolla on 1 y-akseli muuttujalle {names[0]}. {ranges[0]}",sv:"Figuren har en y-axel för variabeln {names[0]}. {ranges[0]}",en:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}"},seriesSummaryBar:{fi:"{series.name}muuttujan {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel",en:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryBarCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}. Pylvässarja, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel, ..variabelns .. Stapel",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryColumn:{fi:"{series.name}muuttuja, pylvässarja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel",en:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryColumnCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}. Pylvässarja, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel, ..variabelns .. Stapel",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryDefault:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. Diagram",en:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryDefaultCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. diagram, ..variabelns .. Diagram",en:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryLine:{fi:"{series.name}, viiva {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. Linje",en:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryLineCombination:{fi:"{series.name}, aikasarja {seriesNumber}/{chart.series.length}. Viivassa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. linje, ..variabelns .. Linje",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryPie:{fi:"{series.name}, piirakan {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1} lohko {else}lohkoa{/eq}.",sv:"..variabelns .. Sektor",en:"{series.name}, pie {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}."},seriesSummaryPieCombination:{fi:"{series.name}, sarja {seriesNumber}/{chart.series.length}. Piirakasta, jossa {series.points.length} {#eq series.points.length 1} lohko{else}lohkoa{/eq}.",sv:"..variabelns .. sektor, ..variabelns .. Sektor",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Pie with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}."},seriesSummaryScatter:{fi:"{series.name}, hajontakuvio {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1}piste{else}pisteet{/eq}.",sv:"..variabelns .. Punkt",en:"{series.name}, scatter plot {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryScatterCombination:{fi:"{series.name}, datasarja {seriesNumber}/{chart.series.length}, hajontakuviosta {series.points.length} {#eq series.points.length 1}piste{else}pisteet{/eq}.",sv:"..variabelns .. punkt, ..variabelns .. Punkt",en:"{series.name}, series {seriesNumber} of {chart.series.length}, scatter plot with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}."},xAxisDescription:{fi:"Toisen X-akselin kuvaus, {name}",sv:"Beskrivning av andra X-axeln, {name}",en:"X axis, {name}"},yAxisDescription:{fi:"Toisen Y-akselin kuvaus, {name}",sv:"Beskrivning av andra Y-axeln, {name}",en:"Y axis, {name}"},endOfChartMarker:{fi:"Kuvion loppu.",sv:"Diagrammets slut.",en:"End of interactive chart."},loading:{fi:"Ladataan...",sv:"Laddar...",en:"Loading..."},chartContainerLabel:{fi:"{title}. Highcharts interactive chart.",sv:"{title}. Highcharts interactive chart.",en:"{title}. Highcharts interactive chart."},toggleTableModeOnText:{fi:"Näytä taulukko",sv:"Visa tabell",en:"View table"},toggleTableModeOffText:{fi:"Näytä kuvio",sv:"Visa figur",en:"View chart"},externalLink:{fi:"Ulkoinen linkki",sv:"Ulkoinen linkki",en:"External link"},quarter:{fi:"vuosineljännes",sv:"kvartal",en:"quarter"},dataMissing:{fi:"Tieto on puuttuva",sv:"Uppgift saknas",en:"Data missing"}},Qt={months:{fi:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"],sv:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],en:["January","February","March","April","May","June","July","August","September","October","November","December"]},shortMonths:{fi:["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],sv:["jan.","febr.","mars","april","maj","juni","juli","aug.","sept.","okt.","nov.","dec."],en:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},numericSymbols:{fi:["k","M","G","T","P","E"],sv:["k","M","G","T","P","E"],en:["k","M","G","T","P","E"]},weekdays:{fi:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"],sv:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"],en:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ordinalSuffices:{en:["st.","nd.","rd.","th."]}},er=new class{constructor(){this.Translations=void 0,this.ArrayTranslations=void 0,this.GetAllLanguages=()=>Object.keys(this.Translations.empty),this.Translations=Jt,this.ArrayTranslations=Qt}AddTranslations(e){for(const t in e.Translations)t in this.Translations&&(this.Translations[t]=y({},this.Translations[t],e.Translations[t]));for(const t in e.ArrayTranslations)t in this.ArrayTranslations&&(this.ArrayTranslations[t]=y({},this.ArrayTranslations[t],e.ArrayTranslations[t]))}},tr=er.Translations,rr=er.ArrayTranslations,nr=er.GetAllLanguages;function ar(e){er.AddTranslations(e)}const ir=e=>e.reduce((e,t)=>e.map(e=>t.map(t=>e.concat([t]))).reduce((e,t)=>e.concat(t),[]),[[]]);function or(e,t,r){return r.findIndex(t=>JSON.stringify(t)===JSON.stringify(e))===t}function sr(e,t){return function(){var r;const n=[];var a,i;return e.rowVarNames&&e.rowVarNames.length>0&&this.series.name&&n.push(`${null==(a=e.rowVarNames)?void 0:a.map(e=>e[t]).join(", ")}: ${this.series.name}`),e.colVarNames&&e.colVarNames.length>0&&this.point.name&&n.push(`${null==(i=e.colVarNames)?void 0:i.map(e=>e[t]).join(", ")}: ${this.point.name}`),n.push(yr(e,this,t)),null!=(r=this.point.options.custom)&&r.preliminary&&n.push(tr.preliminaryData[t]),n.join("<br/>")}}function lr(e,t){return function(r){var n;const a=[];var i,o;return e.rowVarNames&&e.rowVarNames.length>0&&r.series.name&&a.push(`${null==(i=e.rowVarNames)?void 0:i.map(e=>e[t]).join(", ")}: ${vr(r.series.name,t)}`),e.colVarNames&&e.colVarNames.length>0&&r.name&&a.push(`${null==(o=e.colVarNames)?void 0:o.map(e=>e[t]).join(", ")}: ${vr(r.name,t)}`),a.push(yr(e,r,t)),null!=(n=r.options.custom)&&n.preliminary&&a.push(tr.preliminaryData[t]),a.join(", ")}}function cr(e){return function(){return this.value.toLocaleString(e)}}const ur=e=>nr().indexOf(e.toLowerCase().trim())>-1?e.toLowerCase().trim():nr()[0];function mr(e=null){const t=e&&e>=15?25:50;return function(){return pr(this.value,t)}}function dr(){return function(){return pr(this.name,200)}}const pr=(e,t=50)=>{const r=e.toString().length;return`${e.toString().slice(0,t).trim()}${r>t?"...":""}`};function hr(e,t){return function(r){var n,a;const i=e.series[1].rowNameGroup.map(e=>e[t]).join(", "),o=e.series[0].rowNameGroup.map(e=>e[t]).join(", "),s=null==(n=e.colVarNames)?void 0:n.map(e=>e[t]).join(", ");let l="";return i&&i.length>0&&r.series.name&&(l+=`${i}: ${vr(r.x.toLocaleString(t),t)}, `),o&&o.length>0&&(l+=`${o}: ${r.y&&vr(r.y.toLocaleString(t),t)}, `),s&&s.length>0&&e.columnNameGroups&&e.columnNameGroups.length>0&&(l+=`${s}: ${vr(e.columnNameGroups[r.index].map(e=>e[t]).join(", "),t)}`),null!=(a=r.options.custom)&&a.preliminary&&(l+=`, ${tr.preliminaryData[t]}`),l}}function fr(e,t){return function(){var r,n;const a=e.series[1].rowNameGroup.map(e=>e[t]).join(", "),i=e.series[0].rowNameGroup.map(e=>e[t]).join(", "),o=null==(r=e.colVarNames)?void 0:r.map(e=>e[t]).join(", ");let s="";var l;return a&&a.length>0&&this.series.name&&(s+=`${a}: ${this.point.x.toLocaleString(t)}<br />`),i&&i.length>0&&this.key&&(s+=`${i}: ${null==(l=this.point.y)?void 0:l.toLocaleString(t)}<br />`),o&&o.length>0&&e.columnNameGroups&&e.columnNameGroups.length>0&&(s+=`${o}: ${e.columnNameGroups[this.point.index].map(e=>e[t]).join(", ")}`),null!=(n=this.point.options.custom)&&n.preliminary&&(s+=`<br />${tr.preliminaryData[t]}`),s}}function gr(e,t){const r=e.map(e=>e.unit).filter(or);if(1===r.length)return r[0][t];if(r.length>1)return e.map(e=>`${e.name[t]}: ${e.unit[t]}`).join(", ");throw new Error("Missing required unit data")}function yr(e,t,r){return e.visualizationSettings.visualizationType===Ut.PyramidChart?Math.abs(t.y).toLocaleString(r):e.visualizationSettings.visualizationType==Ut.PercentHorizontalBarChart||e.visualizationSettings.visualizationType==Ut.PercentVerticalBarChart?`${null==(n=t.percentage)?void 0:n.toFixed(1)} (${null==(a=t.y)?void 0:a.toLocaleString(r)} ${gr(e.units,r)})`:null!=(i=null==(o=t.y)?void 0:o.toLocaleString(r))?i:"";var n,a,i,o}function vr(e,t){if(/^\d{4}[M,Q]\d{1,2}\*?$/.test(e)){const r=e.split("*")[0],n=/^\d{4}Q\d{1,2}$/;if(/^\d{4}M\d{1,2}$/.test(r)){const e=r.split("M");return`${e[0]} ${rr.months[t][Number(e[1])-1]}`}if(n.test(r)){const e=r.split("Q");return`${e[0]} ${function(e,t){const r=rr.ordinalSuffices[t],n=parseInt(e)-1;return null!=r&&r[n]?`${e}${r[n]}`:`${e}.`}(e[1],t)} ${tr.quarter[t]}`}console.log("Unsupported time pattern")}return e}const br=(e,t,r,n=!1)=>e.series.map((a,i)=>({index:n?e.series.length-1-i:i,animation:!1,type:t,name:a.rowNameGroup.map(e=>e[r]).join(", "),data:a.series.map((t,n)=>({y:t.value,name:e.columnNameGroups[n].map(e=>e[r]).join(", "),custom:{preliminary:t.preliminary}}))})),wr=1.5,Sr=3,xr=8,Cr=.5;function kr(e,t,r){return function(){const n=function(e,t,r,n=new s(0)){var a;if(e.greaterThan(t))throw new Error("dataMinValue must me smaller or equal than dataMaxValue");if((e.lessThan(0)&&t.greaterThan(0)?t.minus(e):s.max(e.abs(),t.abs())).div(r).lessThanOrEqualTo(n))return n;const i=(e=>{const t=Array.from({length:r},(e,t)=>r-t).reduce((t,r)=>{const a=function(e){if(e.equals(0))return new s(0);const t=s.pow(10,s.log10(e).floor());return e.div(t).lessThan(wr)?t.div(10).mul(e.div(t.div(10)).ceil()):e.div(t).lessThan(Sr)?e.mul(2).div(t).ceil().mul(t).div(2):e.div(t).lessThan(xr)?e.div(t).ceil().mul(t):e.div(t.mul(10)).ceil().mul(10).mul(t)}(e.div(r));return a.greaterThanOrEqualTo(n)&&t.push([(i=a,i.equals(0)?0:i.isInteger()?function(e){let t=0,r=5;for(;t<50&&e.mod(r).equals(0)&&(t++,r*=2,e.mod(r).equals(0));)t++,r*=5;return t}(i):function(e){const t=e.toString();if(t.includes("e-")){const e=t.split("e-"),r=Number.parseInt(e[1]);return e[0].endsWith("5")?-2*r+1:-2*r}{const e=t.split(".")[1];return e.endsWith("5")?-2*e.length+1:-2*e.length}}(i)),a]),t;var i},[]).sort(([e,t],[r,n])=>r-e);return t.slice(0,Math.max(2,Math.ceil(t.length*Cr))).sort(([e,t],[r,n])=>t.minus(n).toNumber())})(s.max(e.abs(),t.abs()));return e.lessThan(0)&&t.greaterThan(0)?null!=(a=i.map(([e,t])=>t).find(n=>e.abs().div(n).ceil().plus(t.div(n).ceil()).lessThanOrEqualTo(r)))?a:new s(NaN):i[0][1]}(e,t,(r=>{const n=s.pow(10,s.log10(s.max(e.abs(),t.abs())).floor()),a=Math.ceil(r/(12*(n.toString().length+(e.isNeg()?1:0))+25)-1);return Math.max(a,e.isNegative()&&t.isPositive()?2:1)})(this.chart.plotWidth),r),a=e.greaterThanOrEqualTo(0)?new s(0):e.div(n).floor().mul(n),i=t.lessThanOrEqualTo(0)?new s(0):t.div(n).ceil().mul(n);return Array.from({length:i.minus(a).div(n).plus(1).toNumber()},(e,t)=>n.mul(t).plus(a).toNumber())}}function Ar(e){let t=null,r=null,n=0;return e.forEach(e=>{e.forEach(e=>{e.value&&(!t||e.value<t)&&(t=e.value),e.value&&(!r||e.value>r)&&(r=e.value),e.precision>n&&(n=e.precision)})}),t&&r?kr(new s(t),new s(r),new s(Math.pow(10,-n))):()=>[]}function Nr(e){let t=null,r=null,n=0;return e[0].forEach((a,i)=>{const o=e.reduce((e,t)=>{var r;return e+(null!=(r=t[i].value)?r:0)},0);o&&(!t||o<t)&&(t=o),o&&(!r||o>r)&&(r=o),a.precision>n&&(n=a.precision)}),t&&r?kr(new s(t),new s(r),new s(Math.pow(10,-n))):()=>[]}const Er=e=>({accessibility:{keyboardNavigation:{seriesNavigation:{mode:"serialize"}}},responsive:{rules:[{condition:{maxHeight:600},chartOptions:{chart:{height:600}}}]},exporting:{enabled:!1,fallbackToExportServer:!1},lang:{accessibility:{thousandsSep:tr.thousandsSepAccessibility[e],credits:tr.credits[e],chartTypes:{barMultiple:tr.barMultiple[e],barSingle:tr.barSingle[e],columnMultiple:tr.columnMultiple[e],columnSingle:tr.columnSingle[e],lineSingle:tr.lineSingle[e],lineMultiple:tr.lineMultiple[e],pieSingle:tr.pieSingle[e],scatterSingle:tr.scatterSingle[e],scatterMultiple:tr.scatterMultiple[e],defaultSingle:tr.defaultSingle[e],defaultMultiple:tr.defaultMultiple[e]},defaultChartTitle:tr.defaultChartTitle[e],exporting:{chartMenuLabel:tr.chartMenuLabel[e],menuButtonLabel:tr.menuButtonLabel[e]},legend:{legendItem:tr.legendItem[e],legendLabel:tr.legendLabel[e],legendLabelNoTitle:tr.legendLabelNoTitle[e]},axis:{rangeCategories:tr.rangeCategories[e],rangeFromTo:tr.rangeFromTo[e],timeRangeDays:tr.timeRangeDays[e],timeRangeHours:tr.timeRangeHours[e],timeRangeMinutes:tr.timeRangeMinutes[e],timeRangeSeconds:tr.timeRangeSeconds[e],xAxisDescriptionPlural:tr.xAxisDescriptionPlural[e],xAxisDescriptionSingular:tr.xAxisDescriptionSingular[e],yAxisDescriptionPlural:tr.yAxisDescriptionPlural[e],yAxisDescriptionSingular:tr.yAxisDescriptionSingular[e]},series:{summary:{bar:tr.seriesSummaryBar[e],barCombination:tr.seriesSummaryBarCombination[e],column:tr.seriesSummaryColumn[e],columnCombination:tr.seriesSummaryColumnCombination[e],default:tr.seriesSummaryDefault[e],defaultCombination:tr.seriesSummaryDefaultCombination[e],line:tr.seriesSummaryLine[e],lineCombination:tr.seriesSummaryLineCombination[e],pie:tr.seriesSummaryPie[e],pieCombination:tr.seriesSummaryPieCombination[e],scatter:tr.seriesSummaryScatter[e],scatterCombination:tr.seriesSummaryScatterCombination[e]},xAxisDescription:tr.xAxisDescription[e],yAxisDescription:tr.yAxisDescription[e]},screenReaderSection:{endOfChartMarker:tr.endOfChartMarker[e]},chartContainerLabel:tr.chartContainerLabel[e]},thousandsSep:tr.thousandsSep[e],decimalPoint:tr.decimalPoint[e],contextButtonTitle:tr.contextButtonTitle[e],downloadCSV:tr.downloadCSV[e],downloadPNG:tr.downloadPNG[e],downloadSVG:tr.downloadSVG[e],months:rr.months[e],shortMonths:rr.shortMonths[e],weekdays:rr.weekdays[e],loading:tr.loading[e],numericSymbols:null},colors:["#1a56ec","#f2644c","#1b3160","#9c8d87","#26625d","#7791e8","#8c1131","#878eaf","#c73268","#288c72"],chart:{style:{fontFamily:'"Barlow Semi Condensed", Verdana, sans-serif'},spacingBottom:30,spacingLeft:20,height:"56.25%"},tooltip:{enabled:!0,headerFormat:"{point.key}<br/>",pointFormat:"{point.y}",backgroundColor:"#ffffff",outside:!0,style:{color:"#000",fontSize:"1rem",fontWeight:"400"}},title:{style:{color:"#000",fontSize:"1.25rem",fontWeight:"500",textAlign:"left"},align:"left",margin:45},subtitle:{style:{color:"#000",fontSize:"1.25rem",fontWeight:"400"},align:"left"},credits:{position:{align:"left",x:5},style:{color:"#000",fontSize:"1rem",fontWeight:"400",textAlign:"left",cursor:"default"},href:""},yAxis:{title:{style:{color:"#000",fontSize:"1rem",fontWeight:"400",left:0,textAlign:"left",textOverflow:"ellipsis"},align:"high",rotation:0,textAlign:"left",offset:0,y:-15,x:55,reserveSpace:!1},lineColor:"#000",lineWidth:1,gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5,labels:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"},autoRotation:[0],allowOverlap:!1,formatter:cr(e)}},xAxis:{labels:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"},allowOverlap:!1,autoRotation:[0]},title:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"}},lineColor:"#000",lineWidth:1,crosshair:!0},legend:{enabled:!1,itemStyle:{fontSize:"1rem",fontWeight:"400",color:"#000"},align:"center"},plotOptions:{pie:{dataLabels:{enabled:!0,useHTML:!0,connectorShape:"crookedLine",connectorColor:"#000000",style:{fontSize:"1rem",fontWeight:"400",color:"#000",textOverflow:"crop"}}},column:{groupPadding:.2,pointPadding:.01},bar:{groupPadding:.2,pointPadding:.01},series:{animation:!1}}}),$r=(e,t)=>{var r;const n=null==(r=Er(t).tooltip)?void 0:r.style,a={accessibility:{point:{descriptionFormatter:lr(e,t)}},chart:{type:"bar",spacingBottom:60},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},xAxis:{categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),labels:{formatter:mr(e.columnNameGroups.length),style:{width:200}}},yAxis:{softMin:0,max:100,tickPositioner:Ar(e.series.map(e=>e.series)),title:{text:gr(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0},plotLines:[{value:0,color:"#000",width:1}]},legend:{enabled:!1},series:br(e,"bar",t),credits:{text:`${tr.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`},tooltip:{formatter:sr(e,t)},plotOptions:{series:{dataLabels:{enabled:e.visualizationSettings.showDataPoints,style:n,useHTML:!0,formatter:function(){const e=this.point;return`<span style="background-color: ${e.updateNeeded?"rgb(255, 255, 255)":"rgba(0, 0, 0, 0)"}; border: 1px solid ${e.updateNeeded?"rgba(0, 0, 0, 1)":"rgba(0, 0, 0, 0)"};">${this.y}</span>`}}}}};return a},Pr=(e,t)=>{var r;const n=null==(r=Er(t).tooltip)?void 0:r.style,a={accessibility:{point:{descriptionFormatter:lr(e,t)}},chart:{type:"bar"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},xAxis:{categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),labels:{formatter:mr(e.columnNameGroups.length),style:{width:200}}},yAxis:{softMin:0,softMax:0,tickPositioner:Ar(e.series.map(e=>e.series)),title:{text:gr(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0},plotLines:[{value:0,color:"#000",width:1}]},legend:{enabled:!0,layout:"vertical",margin:30},series:br(e,"bar",t),credits:{text:`${tr.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`},tooltip:{formatter:sr(e,t)},plotOptions:{series:{dataLabels:{enabled:e.visualizationSettings.showDataPoints,style:n,useHTML:!0,formatter:function(){const e=this.point;return`<span style="background-color: ${e.updateNeeded?"rgb(255, 255, 255)":"rgba(0, 0, 0, 0)"}; border: 1px solid ${e.updateNeeded?"rgba(0, 0, 0, 1)":"rgba(0, 0, 0, 0)"};">${this.y}</span>`}}}}};return a};var jr;!function(e){e[e.Time=0]="Time",e[e.Ordinal=1]="Ordinal",e[e.Nominal=2]="Nominal"}(jr||(jr={}));const Tr=(e,t)=>{return{type:"category",categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),ordinal:!0,tickPositioner:(r=Math.max(...e.series.map(e=>e.series.length)),n=Math.max(...e.columnNameGroups.map(e=>e.reduce((e,r)=>(e>0?1:0)+e+r[t].length,0))),function(){const e=Math.ceil(r*n*10/this.chart.plotWidth),t=Math.ceil(r/e);return Array.from({length:t},(t,r)=>r*e)})};var r,n};function Mr(e,t){if(t){const r=new Date(t);switch(e){case Xt.Irregular:case Xt.Week:return;case Xt.Month:return{pointStart:r.getTime(),pointIntervalUnit:"month"};case Xt.Quarter:case Xt.HalfYear:return;case Xt.Year:return{pointStart:r.getTime(),pointIntervalUnit:"year"}}}}function Dr(e,t){if(e.seriesType!==jr.Time)return e.seriesType===jr.Ordinal?Tr(e,t):{type:"category",categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),labels:{autoRotation:[-45]}};switch(e.visualizationSettings.timeVariableIntervals){case Xt.Week:return zr(e,t);case Xt.Month:return Lr();case Xt.Quarter:return Or(e,t);case Xt.HalfYear:return Vr(e,t);case Xt.Year:return{type:"datetime"};default:return{type:"category",categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", "))}}}const zr=(e,t)=>({type:"linear",ordinal:!1,labels:{formatter:function(){return e.columnNameGroups[Number(this.value)].map(e=>e[t]).join(", ")}}}),Lr=(e,t)=>({type:"datetime",ordinal:!1,labels:{formatter:function(){return c.dateFormat("%YM%m",Number(this.value))}}}),Or=(e,t)=>{var r,n,a;return{type:"linear",ordinal:!1,labels:{formatter:function(){return Number.isInteger(this.value)?e.columnNameGroups[Number(this.value)].map(e=>e[t]).join(", "):""}},tickPositioner:(n=Math.max(...e.series.map(e=>e.series.length)),a=new Date(null!=(r=e.visualizationSettings.timeSeriesStartingPoint)?r:""),function(){const e=function(e){return e<=2?Math.ceil(e):e<=4?4:e<=20?4*Math.ceil(e/4):e<=40?20*Math.ceil(e/20):40*Math.ceil(e/40)}(60*n/this.chart.plotWidth),t=function(e,t){const r=(4*t.getFullYear()+Math.floor(t.getMonth()/3))%e;return r>0?e-r:0}(e,a),r=Math.ceil((n-t)/e);return Array.from({length:r},(r,n)=>t+n*e)})}},Vr=(e,t)=>{var r,n,a;return{type:"linear",ordinal:!1,labels:{formatter:function(){return Number.isInteger(this.value)?e.columnNameGroups[Number(this.value)].map(e=>e[t]).join(", "):""}},tickPositioner:(n=Math.max(...e.series.map(e=>e.series.length)),a=new Date(null!=(r=e.visualizationSettings.timeSeriesStartingPoint)?r:""),function(){const e=function(e){return e<=2?Math.ceil(e):e<=10?2*Math.ceil(e/2):e<=20?10*Math.ceil(e/10):20*Math.ceil(e/20)}(60*n/this.chart.plotWidth),t=function(e,t){const r=(2*t.getFullYear()+Math.floor(t.getMonth()/6))%e;return r>0?e-r:0}(e,a),r=Math.ceil((n-t)/e);return Array.from({length:r},(r,n)=>t+n*e)})}},Ir=(e,t)=>{var r;const n=null==(r=Er(t).tooltip)?void 0:r.style;return{accessibility:{point:{descriptionFormatter:lr(e,t)}},chart:{type:"column"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},xAxis:Dr(e,t),yAxis:{softMin:0,softMax:0,title:{text:gr(e.units,t)},plotLines:[{value:0,color:"#000",width:1}]},plotOptions:{series:y({},Mr(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:{enabled:e.visualizationSettings.showDataPoints,style:n,useHTML:!0,formatter:function(){const e=this.point;return`<span style="background-color: ${e.updateNeeded?"rgb(255, 255, 255)":"rgba(0, 0, 0, 0)"}; border: 1px solid ${e.updateNeeded?"rgba(0, 0, 0, 1)":"rgba(0, 0, 0, 0)"};">${this.y}</span>`}}})},credits:{text:`${tr.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`},series:br(e,"column",t),tooltip:{formatter:sr(e,t)},exporting:{enabled:!1}}},Rr=(e,t)=>{var r;const n=null==(r=Er(t).tooltip)?void 0:r.style;return{accessibility:{point:{descriptionFormatter:lr(e,t)}},chart:{type:"column"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},xAxis:Dr(e,t),yAxis:{softMin:0,softMax:0,title:{text:gr(e.units,t)},plotLines:[{value:0,color:"#000",width:1}]},plotOptions:{series:y({},Mr(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:{enabled:e.visualizationSettings.showDataPoints,style:n,useHTML:!0,formatter:function(){const e=this.point;return`<span style="background-color: ${e.updateNeeded?"rgb(255, 255, 255)":"rgba(0, 0, 0, 0)"}; border: 1px solid ${e.updateNeeded?"rgba(0, 0, 0, 1)":"rgba(0, 0, 0, 0)"};">${this.y}</span>`}}})},legend:{enabled:!0,labelFormatter:dr()},series:br(e,"column",t),credits:{text:`${tr.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`},tooltip:{formatter:sr(e,t)}}},Gr=(e,t)=>{var r,n;return{accessibility:{point:{descriptionFormatter:lr(e,t)}},chart:{type:"pie"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},plotOptions:{pie:{dataLabels:{formatter:(n=null!=(r=e.visualizationSettings.showDataPoints)&&r,function(){const e=n?` (${Math.round(this.percentage)}%)`:"";return pr(this.point.name,20)+e})}}},tooltip:{formatter:sr(e,t)},series:e.series.map(r=>({animation:!1,type:"pie",name:r.rowNameGroup.map(e=>e[t]).join(", "),data:r.series.map((r,n)=>({y:r.value,name:e.columnNameGroups[n].map(e=>e[t]).join(", "),unit:gr(e.units,t),custom:{preliminary:r.preliminary}}))})),credits:{text:`${tr.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`}}},_r=(e,t)=>{var r;const n=null==(r=Er(t).tooltip)?void 0:r.style;return{accessibility:{point:{descriptionFormatter:lr(e,t)}},chart:{type:"column"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},xAxis:Dr(e,t),yAxis:{softMin:0,softMax:0,title:{text:gr(e.units,t)},plotLines:[{value:0,color:"#000",width:1}]},plotOptions:{column:{stacking:"normal",dataLabels:{enabled:e.visualizationSettings.showDataPoints,style:n,useHTML:!0,formatter:function(){return`<span style="background-color: rgb(255, 255, 255); border: 1px solid rgba(0, 0, 0, 1);">${this.y}</span>`}}},series:Mr(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)},legend:{enabled:!0,layout:"vertical"},series:br(e,"column",t,!0),credits:{text:`${tr.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`},tooltip:{formatter:sr(e,t)}}},Br=(e,t)=>{var r;const n=null==(r=Er(t).tooltip)?void 0:r.style;return{accessibility:{point:{descriptionFormatter:lr(e,t)}},chart:{type:"bar"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},xAxis:{categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),labels:{formatter:mr(e.columnNameGroups.length),style:{width:200}}},yAxis:{softMin:0,softMax:0,tickPositioner:Nr(e.series.map(e=>e.series)),title:{text:gr(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0},plotLines:[{value:0,color:"#000",width:1}]},plotOptions:{bar:{stacking:"normal",dataLabels:{enabled:e.visualizationSettings.showDataPoints,style:n,useHTML:!0,formatter:function(){return`<span style="background-color: rgb(255, 255, 255); border: 1px solid rgba(0, 0, 0, 1);">${this.y}</span>`}}}},legend:{enabled:!0,layout:"horizontal",reversed:!0,margin:30},series:br(e,"bar",t,!0),credits:{text:`${tr.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`},tooltip:{formatter:sr(e,t)}}},qr=(e,t)=>{var r;const n=null==(r=Er(t).tooltip)?void 0:r.style;return{accessibility:{point:{descriptionFormatter:lr(e,t)}},chart:{type:"column"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},xAxis:Dr(e,t),yAxis:{min:0,title:{text:"%"},plotLines:[{value:0,color:"#000",width:1}]},plotOptions:{column:{stacking:"percent",dataLabels:{enabled:e.visualizationSettings.showDataPoints,style:n,useHTML:!0,formatter:function(){return`<span style="background-color: rgb(255, 255, 255); border: 1px solid rgba(0, 0, 0, 1);">${this.y}</span>`}}},series:Mr(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)},legend:{enabled:!0,layout:"vertical"},series:br(e,"column",t,!0),credits:{text:`${tr.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`},tooltip:{formatter:sr(e,t)}}},Fr=(e,t)=>{var r;const n=null==(r=Er(t).tooltip)?void 0:r.style,a={accessibility:{point:{descriptionFormatter:lr(e,t)}},chart:{type:"bar"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},xAxis:{categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),labels:{formatter:mr(e.columnNameGroups.length),style:{width:200}}},yAxis:{min:0,title:{text:"%",style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0},plotLines:[{value:0,color:"#000",width:1}]},plotOptions:{bar:{stacking:"percent",dataLabels:{enabled:e.visualizationSettings.showDataPoints,style:n,useHTML:!0,formatter:function(){return`<span style="background-color: rgb(255, 255, 255); border: 1px solid rgba(0, 0, 0, 1);">${this.y}</span>`}}}},legend:{enabled:!0,layout:"horizontal",reversed:!0,margin:30},series:br(e,"bar",t,!0),credits:{text:`${tr.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`},tooltip:{formatter:sr(e,t)}};return a},Hr=(e,t)=>{var r;const n=e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),a=Math.max(...e.series.map(e=>Math.max(...e.series.map(e=>{var t;return null!=(t=e.value)?t:0})))),i=null==(r=Er(t).tooltip)?void 0:r.style;return{accessibility:{point:{descriptionFormatter:lr(e,t)}},chart:{type:"bar"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},xAxis:{categories:n,reversed:!1,labels:{style:{width:200}}},yAxis:{min:-Math.abs(a),max:Math.abs(a),title:{text:gr(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0},labels:{formatter:function(){return Math.abs(this.value).toLocaleString(t)}},plotLines:[{value:0,color:"#000",width:1}]},legend:{enabled:!0,margin:30},series:e.series.map((r,n)=>({animation:!1,type:"bar",name:r.rowNameGroup.map(e=>e[t]).join(", "),data:r.series.map((r,a)=>({y:0===n&&r.value?-r.value:r.value,name:e.columnNameGroups[a].map(e=>e[t]).join(", "),custom:{preliminary:r.preliminary}}))})),credits:{text:`${tr.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`},plotOptions:{series:{stacking:"normal",dataLabels:{enabled:e.visualizationSettings.showDataPoints,style:i,useHTML:!0,formatter:function(){return`<span style="background-color: rgb(255, 255, 255); border: 1px solid rgba(0, 0, 0, 1);">${this.y}</span>`}}}},tooltip:{formatter:sr(e,t)},exporting:{enabled:!1}}},Wr=(e,t)=>`\n ${e[1].rowNameGroup.map(e=>e[t]).join(", ")}: {point.x}<br/>\n ${e[0].rowNameGroup.map(e=>e[t]).join(", ")}: {point.y}\n `,Yr=(e,t)=>{switch(t.visualizationSettings.visualizationType){case Ut.LineChart:return((e,t)=>{var r,n;const a=null==(r=Er(t).tooltip)?void 0:r.style,i=null!=(n=e.visualizationSettings)&&n.cutValueAxis?void 0:0;return{accessibility:{point:{descriptionFormatter:lr(e,t)}},chart:{type:"line"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},xAxis:y({},Dr(e,t),{gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5}),yAxis:{softMin:i,softMax:i,title:{text:gr(e.units,t)},plotLines:[{value:0,color:"#000",width:1}]},tooltip:{formatter:sr(e,t)},plotOptions:{line:{dataLabels:{enabled:e.visualizationSettings.showDataPoints,format:"{point.y}",style:a},marker:{enabled:!1}},series:Mr(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)},legend:{enabled:e.series.length>1,labelFormatter:dr()},credits:{text:`${tr.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`},series:br(e,"line",t),exporting:{enabled:!1}}})(t,e);case Ut.VerticalBarChart:return Ir(t,e);case Ut.HorizontalBarChart:return $r(t,e);case Ut.GroupVerticalBarChart:return Rr(t,e);case Ut.GroupHorizontalBarChart:return Pr(t,e);case Ut.StackedVerticalBarChart:return _r(t,e);case Ut.StackedHorizontalBarChart:return Br(t,e);case Ut.PercentVerticalBarChart:return qr(t,e);case Ut.PercentHorizontalBarChart:return Fr(t,e);case Ut.PieChart:return Gr(t,e);case Ut.PyramidChart:return Hr(t,e);case Ut.ScatterPlot:return((e,t)=>{var r;const n=null!=(r=e.visualizationSettings)&&r.cutValueAxis?void 0:0;return{accessibility:{point:{descriptionFormatter:hr(e,t)}},chart:{type:"scatter"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},xAxis:{softMin:0,softMax:0,title:{text:e.series[1].rowNameGroup.map(e=>e[t]).join(", ")},gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5,plotLines:[{value:0,color:"#000",width:1}]},yAxis:{softMin:n,softMax:n,title:{text:e.series[0].rowNameGroup.map(e=>e[t]).join(", ")},plotLines:[{value:0,color:"#000",width:1}]},credits:{text:`${tr.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`},series:[{animation:!1,type:"scatter",data:e.series[0].series.map((t,r)=>{var n,a;return{x:null!=(n=e.series[1].series[r].value)?n:void 0,y:null!=(a=e.series[0].series[r].value)?a:void 0,marker:{symbol:"circle"},custom:{preliminary:e.series[1].series[r].preliminary||e.series[0].series[r].preliminary}}})}],tooltip:{headerFormat:"",pointFormat:Wr(e.series,t),formatter:fr(e,t)},plotOptions:{scatter:{marker:{radius:5*(e.visualizationSettings.markerSize?.01*e.visualizationSettings.markerSize:1)}}},exporting:{enabled:!1}}})(t,e);default:throw new Error("Unsupported chart type")}},Ur=(e,t,r,n)=>{if(0===e.length)return{};let a=e,i={};if(n){const{parsedValues:e,updatedArray:t}=Zr(a,n);if(a=t,i=y({},i,e),0===a.length)return i}if(r){const{parsedValues:e,updatedArray:t}=Xr(a,r);if(a=t,i=y({},i,e),0===a.length)return i}return a.forEach(e=>{const r=t.findIndex(t=>t.code===e);r>-1&&(i[e]=t[r].type===Zt.Time?[t[r].values[t[r].values.length-1].code]:[t[r].values[0].code])}),i},Zr=(e,t)=>{const r=Object.keys(t),n={},a=e.map(e=>r.findIndex(t=>t===e)>-1&&t[e].length>0?(n[e]=t[e],""):e).filter(e=>e.length>0);return{parsedValues:n,updatedArray:a}},Xr=(e,t)=>{const r=Object.keys(t),n={},a=e.map(e=>{const a=r.findIndex(t=>t===e);return a>-1?(n[e]=t[r[a]],""):e}).filter(e=>e.length>0);return{parsedValues:n,updatedArray:a}},Kr=(e,t)=>{var r,n;return(null!=(r=e.value)?r:0)-(null!=(n=t.value)?n:0)},Jr=(e,t)=>{var r,n;return(null!=(r=t.value)?r:0)-(null!=(n=e.value)?n:0)};function Qr(e,t,r){return tn(en(e,e.series[t].series,r),t)}function en(e,t,r){const n=function(e,t){const r=[...Array(e.length).keys()];return r.sort((r,n)=>t(e[r],e[n])),r}(t,r),a=n.map(t=>e.columnNameGroups[t]),i=e.series.map(e=>function(e,t){return y({},e,{series:t.map(t=>e.series[t])})}(e,n));return y({},e,{columnNameGroups:a,series:i})}function tn(e,t){const r=[];return r.push(e.series[t]),e.series.forEach((e,n)=>{n!==t&&r.push(e)}),y({},e,{series:r})}function rn(e,t){var r,n,a,i;const o=null!=(r=e.visualizationSettings)&&r.multiselectableVariableCode?function(e,t){var r,n;const a=null!=(r=null==(n=e.visualizationSettings)?void 0:n.multiselectableVariableCode)?r:"",i=an(t),o=hn(t),s=t[a].map(t=>{var r,n;const s=on(e,y({},o,{[a]:t}),i);return function(e,t){return y({},t,{series:t.series.map(t=>y({},t,{rowNameGroup:[e].concat(t.rowNameGroup)}))})}(null!=(r=null==(n=e.metaData.find(e=>e.code===a))||null==(n=n.values.find(e=>e.code===t))?void 0:n.name)?r:tr.empty,s)});return function(e){return{header:e[0].header,tableReferenceName:e[0].tableReferenceName,subheaderValues:e[0].subheaderValues,units:e.reduce((e,t)=>e.concat(t.units),[]).filter(or),sources:e.reduce((e,t)=>e.concat(t.sources),[]).filter(or),colVarNames:e[0].colVarNames,rowVarNames:e[0].rowVarNames,selectableVarNames:e[0].selectableVarNames,columnNameGroups:e[0].columnNameGroups,series:e.reduce((e,t)=>e.concat(t.series),[]),visualizationSettings:e[0].visualizationSettings,seriesType:e[0].seriesType}}(s)}(e,t):on(e,hn(t),an(t)),s=(null==(n=o.visualizationSettings)?void 0:n.visualizationType)===Ut.PercentHorizontalBarChart||(null==(a=o.visualizationSettings)?void 0:a.visualizationType)===Ut.PercentVerticalBarChart;switch(null==(i=e.visualizationSettings)?void 0:i.sorting){case null:case void 0:case"no_sorting":return o;case"sum":return function(e,t){const r=e.columnNameGroups.map((t,r)=>({value:e.series.map(e=>e.series[r]).reduce((e,t)=>{var r;return e+(null!=(r=t.value)?r:0)},0),precision:0,preliminary:!1}));return en(e,r,t)}(o,Jr);case"ascending":return Qr(o,0,Kr);case"descending":return Qr(o,0,Jr);default:return s?(l=o,c=nn(o),u=cn(e),tn(en(l,c.series[u].series,Jr),u)):Qr(o,cn(e),Jr)}var l,c,u}function nn(e){const t=e.series.map(t=>y({},t,{series:t.series.map((t,r)=>{var n;const a=e.series.reduce((e,t)=>{var n;return e+(null!=(n=t.series[r].value)?n:0)},0),i=a&&0!==a?Math.round(100*(null!=(n=t.value)?n:0)/a*10)/10:null,o={value:i,precision:1,preliminary:t.preliminary};return null===i&&(o.missingCode=t.missingCode),o})}));return y({},e,{units:e.units.map(e=>{return{name:e.name,unit:(t=e.unit,Object.keys(t).reduce((e,t)=>(e[t]="%",e),{}))};var t}),series:t})}function an(e){const t={};return Object.entries(e).forEach(([e,r])=>t[e]=r.length),t}function on(e,t,r){const{metaData:n,selectableVariableCodes:a}=e,i=ln(n,a),o=un(n),s=function(e,t){const r=ln(e.metaData,e.selectableVariableCodes),n=e.metaData.filter(t=>e.rowVariableCodes.includes(t.code)).filter(e=>e.values.length>1).map(e=>e.values),a=e.metaData.filter(t=>e.columnVariableCodes.includes(t.code)).filter(e=>e.values.length>1).map(e=>e.values),i=ir(a),o=ir(n),s=function(e,t,r){let n=0,a=1;for(let i=e.length-1;i>=0;i--){const o=e[i].values.findIndex(r=>r.code===t[e[i].code]);if(o<0)throw new Error("Provided selected value code can not be found from the metadata");n+=o*r*a,a*=e[i].values.length}return n}(r,t,function(e){const{metaData:t,selectableVariableCodes:r}=e;return t.filter(e=>!r.includes(e.code)).map(e=>e.values.length).reduce((e,t)=>e*t,1)}(e)),l=function(e,t){const r=un(e.metaData);var n,a,i,o;return 1===r.values.length?null!=(n=null==(a=r.values[0].contentComponent)?void 0:a.numberOfDecimals)?n:null:e.selectableVariableCodes.includes(r.code)&&e.visualizationSettings.multiselectableVariableCode!==r.code&&null!=(i=null==(o=r.values.find(e=>e.code===t[r.code]))||null==(o=o.contentComponent)?void 0:o.numberOfDecimals)?i:null}(e,t);let c=0;const u=o.map(t=>{var r,n;const a=t.some(e=>Object.values(e.name)[0].trim().endsWith("*")),o=null!=(r=null!=l?l:null==(n=t.find(e=>e.contentComponent))||null==(n=n.contentComponent)?void 0:n.numberOfDecimals)?r:null,u=i.map(t=>{var r,n;const i={value:e.data[s+c],precision:null!=(r=null!=o?o:null==(n=t.find(e=>e.contentComponent))||null==(n=n.contentComponent)?void 0:n.numberOfDecimals)?r:0,preliminary:a||t.some(e=>Object.values(e.name)[0].trim().endsWith("*"))};return i.value||(i.missingCode=e.missingDataInfo[s+c]),c++,i});return{rowNameGroup:t.map(e=>e.name),series:u}});return{columnNameGroups:i.map(e=>e.map(e=>e.name)),series:u}}(e,t);return{header:e.header,tableReferenceName:e.tableReference.name,subheaderValues:mn(i,t,r),units:dn(o,t),sources:pn(o,t,e=>{var t;return null!=(t=null==e?void 0:e.source)?t:tr.empty}),columnNameGroups:s.columnNameGroups,series:s.series,colVarNames:sn(e.columnVariableCodes,e.metaData),rowVarNames:sn(e.rowVariableCodes,e.metaData),selectableVarNames:sn(e.selectableVariableCodes,e.metaData),visualizationSettings:e.visualizationSettings,seriesType:fn(e.columnVariableCodes,e.metaData)}}function sn(e,t){return e.reduce((e,r)=>{var n;const a=null==(n=t.find(e=>e.code===r))?void 0:n.name;return a&&e.push(a),e},[])}function ln(e,t){return e.filter(e=>t.includes(e.code))}function cn(e){const t=e.metaData.find(t=>t.code==e.rowVariableCodes[0]),r=null==t?void 0:t.values.findIndex(t=>{var r;return t.code===(null==(r=e.visualizationSettings)?void 0:r.sorting)});return!r||r<0?0:r}function un(e){const t=e.find(e=>e.type===Zt.Content);if(t)return t;throw new Error("Content variable is not defined")}function mn(e,t,r){const n=[];return e.forEach(e=>{var a,i;1==r[e.code]&&n.push(null!=(a=null==(i=e.values.find(r=>r.code===t[e.code]))?void 0:i.name)?a:{})}),n}function dn(e,t){const r=e.code in t?e.values.filter(r=>t[e.code]===r.code):e.values;return r.reduce((e,t)=>(t.contentComponent&&e.push({name:t.name,unit:t.contentComponent.unit}),e),[])}function pn(e,t,r){return e.code in t?e.values.filter(r=>t[e.code]===r.code).map(e=>r(e.contentComponent)).filter(or):e.values.map(e=>r(e.contentComponent)).filter(or)}function hn(e){const t={};return Object.entries(e).forEach(([e,r])=>t[e]=r[0]),t}function fn(e,t){var r;if(e.length>1||0===e.length)return jr.Nominal;const n=null==(r=t.find(t=>t.code===e[0]))?void 0:r.type;switch(n){case Zt.Time:return jr.Time;case Zt.Ordinal:return jr.Ordinal;default:return jr.Nominal}}const gn=(e,t,r,n=null)=>{const a=ur(r);"object"==typeof l&&(u(l),m(l),d(l),p(l)),l.setOptions(Er(a));const i=rn(t,Ur(t.selectableVariableCodes,t.metaData,t.visualizationSettings.defaultSelectableVariableCodes,n)),o=Yr(a,i);return l.chart(e,o)},yn=["",".","..","...","....",".....","......","-"];function vn(e,t,r=!1){if(null==e.value)throw new Error("Can not produce a localized numeric formatting for missing data");return new Intl.NumberFormat(t,{maximumFractionDigits:e.precision,minimumFractionDigits:e.precision,useGrouping:r}).format(e.value)}function bn(e,t,r=!1){if(e)return r?tr.dataMissing[t]:yn[e];throw new Error("Invalid missing code. Can not generate table presentation")}function wn(e,t,r,n,a,i,o){const s=document.getElementById(i);if(!s)throw new Error("No container with matching id found in the DOM tree");try{if(r){const r=document.createElement("span");if(r.classList.add("title"),r.append(e.header[t]),s.append(r),e.subheaderValues.length>0){const r=document.createElement("span");r.classList.add("subtitle"),r.append(e.subheaderValues.map(e=>e[t]).join(" | ")),s.append(r)}}const i=function(e,t){var r,n;const a=null!=(r=e.columnNameGroups[0].length)?r:0,i=null!=(n=e.series[0].rowNameGroup.length)?n:0,o=document.createElement("table");if(a>0){const r=function(e,t){const r=Cn(e),n=[];for(let a=0;a<e[0].length;a++){const i=document.createElement("tr");for(let n=0;n<e.length;n+=r[a]){const o=document.createElement("th");o.setAttribute("colSpan",r[a].toString()),o.setAttribute("scope","col"),o.textContent=e[n][a][t],i.append(o)}n.push(i)}return n}(e.columnNameGroups,t);if(i>0){const e=document.createElement("td");e.setAttribute("colSpan",i.toString()),e.setAttribute("rowSpan",a.toString()),r[0].prepend(e)}const n=document.createElement("thead");n.append(...r),o.append(n)}if(e.series.length>0){const r=document.createElement("tbody");r.append(...function(e,t){const r=[],n=xn(e);for(let a=0;a<e.length;a++){const i=document.createElement("tr");for(let r=0;r<e[a].rowNameGroup.length;r++)if(a%n[r]==0){const o=document.createElement("th");o.setAttribute("rowSpan",n[r].toString()),o.setAttribute("scope","row"),o.textContent=e[a].rowNameGroup[r][t],i.append(o)}for(const r of e[a].series){const e=document.createElement("td");e.textContent=null===r.value?bn(r.missingCode,t,!0):vn(r,t,!0),i.append(e)}r.push(i)}return r}(e.series,t)),o.append(r)}return o}(e,t);if(s.append(i),n){const r=document.createElement("p"),n=gr(e.units,t);r.append(`${tr.unit[t]}: ${n}`),s.append(r)}if(a){const r=document.createElement("p"),n=`${tr.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`;r.append(n),s.append(r)}if(o){const e=document.createElement("p");e.append(o),s.append(e)}}catch(e){console.error(e),s.replaceChildren();const r=document.createElement("h1");r.append(tr.graphCreationError[t]),s.append(r)}}const Sn=(e,t)=>Object.keys(e).every(r=>e[r]==t[r]),xn=e=>{if(!e[0].rowNameGroup||0===e[0].rowNameGroup.length)return[];const t=Array(e[0].rowNameGroup.length).fill(1);for(let r=0;r<e[0].rowNameGroup.length;r++)for(let n=0;n<e.length-1&&Sn(e[n].rowNameGroup[r],e[n+1].rowNameGroup[r]);n++)t[r]++;return t},Cn=e=>{if(!e||0===e.length)return[];const t=Array(e[0].length).fill(1);for(let r=0;r<e[0].length;r++)for(let n=0;n<e.length-1&&Sn(e[n][r],e[n+1][r]);n++)t[r]++;return t};var kn;!function(e){e[e.Csv=0]="Csv",e[e.Excel=1]="Excel"}(kn||(kn={}));const An=(e,t)=>t===kn.Csv?new Blob(["\ufeff",e],{type:"text/csv;charset=utf-8;"}):new Blob([Nn(e)],{type:"application/octet-stream"}),Nn=e=>{const t=new ArrayBuffer(e.length);let r=new Uint8Array(t);for(let t=0;t<e.length;t++)r[t]=255&e.charCodeAt(t);return t},En=e=>{const t=e?e.split(".")[0]:"",r=new Date;return`${t}_${r.getFullYear()}${(r.getMonth()+1).toString().padStart(2,"0")}${r.getDate().toString().padStart(2,"0")}_${r.getHours().toString().padStart(2,"0")}${r.getMinutes().toString().padStart(2,"0")}${r.getSeconds().toString().padStart(2,"0")}`},$n=(e,t)=>{var r,n,a,i,o,s,l,c;((null==(r=e.visualizationSettings)?void 0:r.visualizationType)===Ut.PercentHorizontalBarChart||(null==(n=e.visualizationSettings)?void 0:n.visualizationType)===Ut.PercentVerticalBarChart)&&(e=nn(e));const u=null!=(a=null==(i=e.columnNameGroups[0])?void 0:i.length)?a:0,m=null!=(o=null==(s=e.series[0])?void 0:s.rowNameGroup.length)?o:0,d=(null!=(l=null==(c=e.series[0])?void 0:c.series.length)?l:0)+m,p=","==tr.decimalPoint[t]?";":",",h="\n";let f=jn([`"${e.header[t]}"`],0,d,p,h);e.subheaderValues.length>0&&(f+=jn([`"${e.subheaderValues.map(e=>e[t]).join(" | ")}"`],0,d,p,h));for(let r=0;r<u;r++)f+=jn(e.columnNameGroups.map(e=>`"${e[r][t]}"`),m,d,p,h);return e.series.forEach(e=>{let r=[];e.rowNameGroup.length>0&&(r=e.rowNameGroup.map(e=>`"${e[t]}"`)),r=r.concat(e.series.map(e=>null===e.value?bn(e.missingCode,t):vn(e,t))),f+=jn(r,0,d,p,h)}),f+=jn([`"${tr.unit[t]}: ${gr(e.units,t)}"`],0,d,p,h),f+=jn([`"${tr.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}"`],0,d,p),f},Pn=(e,t)=>({onClick:()=>{const r=$n(e,t),n=An(r,kn.Csv),a=URL.createObjectURL(n),i=document.createElement("a");i.setAttribute("href",a),i.setAttribute("download",En(e.tableReferenceName)+".csv"),document.body.appendChild(i),i.click()},text:tr.downloadCSV[t]});function jn(e,t,r,n,a=""){let i="";for(let a=0;a<r;a++)a>=t&&a<t+e.length&&(i+=e[a-t]),a<r-1&&(i+=n);return i+a}const Tn=(e,t)=>{const r=h.utils.book_new(),n=h.utils.aoa_to_sheet(Mn(e,t));return h.utils.book_append_sheet(r,n,"Sheet1"),h.write(r,{bookType:"xlsx",type:"binary"})},Mn=(e,t)=>{var r,n,a,i,o,s,l,c;((null==(r=e.visualizationSettings)?void 0:r.visualizationType)===Ut.PercentHorizontalBarChart||(null==(n=e.visualizationSettings)?void 0:n.visualizationType)===Ut.PercentVerticalBarChart)&&(e=nn(e));const u=null!=(a=null==(i=e.columnNameGroups[0])?void 0:i.length)?a:0,m=null!=(o=null==(s=e.series[0])?void 0:s.rowNameGroup.length)?o:0,d=(null!=(l=null==(c=e.series[0])?void 0:c.series.length)?l:0)+m;let p=[zn([e.header[t]],0,d)];e.subheaderValues.length>0&&p.push(zn([e.subheaderValues.map(e=>e[t]).join(" | ")],0,d));for(let r=0;r<u;r++)p.push(zn(e.columnNameGroups.map(e=>e[r][t]),m,d));return e.series.forEach(e=>{let r=[];e.rowNameGroup.length>0&&(r=e.rowNameGroup.map(e=>e[t])),r=r.concat(e.series.map(e=>null===e.value?bn(e.missingCode,t):vn(e,t))),p.push(zn(r,0,d))}),p.push(zn([`${tr.unit[t]}: ${gr(e.units,t)}`],0,d)),p.push(zn([`${tr.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`],0,d)),p},Dn=(e,t)=>({onClick:()=>{const r=Tn(e,t),n=An(r,kn.Excel),a=URL.createObjectURL(n),i=document.createElement("a");i.setAttribute("href",a),i.setAttribute("download",En(e.tableReferenceName)+".xlsx"),document.body.appendChild(i),i.click()},text:tr.downloadXLSX[t]});function zn(e,t,r){const n=Array(r);for(let a=0;a<r;a++)n[a]=a>=t&&a<t+e.length?e[a-t]:null;return n}const Ln=["Bars","Times","Download","ExternalLink","Copy"],On=({icon:t,inheritColor:r=!1})=>{switch(t){case"Bars":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"39.91mm",height:"29.92mm",viewBox:"0 0 113.12 84.82"},e.createElement("path",y({},r?{}:{style:{fill:"#1A3061"}},{d:"m56.51,14.13c-16.33,0-32.67.01-49,0-5.37,0-8.89-4.83-6.99-9.59C1.63,1.76,3.77.26,6.76.01c.22-.02.44,0,.66,0,32.74,0,65.49,0,98.23,0,4.3,0,7.45,2.99,7.47,7.01.02,4.11-3.15,7.1-7.6,7.11-16.33.01-32.67,0-49,0Z"})),e.createElement("path",y({},r?{}:{style:{fill:"#1A3061"}},{d:"m56.55,49.47c-16.41,0-32.82.01-49.22,0-3.78,0-6.77-2.56-7.26-6.09-.49-3.53,1.78-6.9,5.35-7.81.77-.2,1.6-.21,2.4-.21,32.52,0,65.04-.01,97.57,0,4.51,0,7.69,2.89,7.74,6.97.04,4.19-3.16,7.14-7.79,7.15-16.26,0-32.52,0-48.78,0Z"})),e.createElement("path",y({},r?{}:{style:{fill:"#1A3061"}},{d:"m56.43,84.82c-16.33,0-32.67,0-49,0-3.68,0-6.45-2.17-7.25-5.56-.73-3.09.92-6.54,3.92-7.84,1.04-.45,2.27-.69,3.41-.69,32.74-.04,65.49-.03,98.23-.02,4.27,0,7.41,3.06,7.39,7.09-.02,4.02-3.17,7.02-7.47,7.02-16.41.02-32.82,0-49.22,0Z"})));case"Times":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"26.97mm",height:"26.97mm",viewBox:"0 0 76.44 76.44"},e.createElement("path",y({},r?{}:{style:{fill:"#1A3061"}},{d:"m0,38.09C.02,17.02,17.22-.04,38.39,0c21.08.04,38.09,17.21,38.05,38.42-.04,21-17.21,38.04-38.31,38.01C17.04,76.41-.02,59.26,0,38.09ZM38.25,5.95c-17.86-.02-32.27,14.33-32.31,32.17-.04,17.94,14.33,32.35,32.25,32.37,17.87.02,32.23-14.28,32.3-32.17.07-17.92-14.31-32.35-32.24-32.37Z"})),e.createElement("path",y({},r?{}:{style:{fill:"#1A3061"}},{d:"m38.4,34c2.9-2.94,5.58-5.67,8.27-8.39.93-.94,2.13-1.38,3.25-.73.8.47,1.7,1.46,1.78,2.29.09.92-.48,2.12-1.14,2.85-2.18,2.38-4.54,4.6-6.83,6.89-.35.35-.68.71-1.07,1.12,2.67,2.68,5.35,5.26,7.88,7.99.67.72,1.28,1.95,1.16,2.84-.12.88-1.05,1.9-1.89,2.37-1.03.57-2.22.16-3.12-.75-2.31-2.33-4.65-4.63-6.96-6.97-.38-.39-.66-.87-1.36-1.8-.71.95-1.11,1.64-1.65,2.19-2.12,2.17-4.27,4.32-6.44,6.44-1.41,1.38-3.16,1.46-4.38.28-1.26-1.22-1.2-3.02.24-4.48,2.27-2.31,4.56-4.58,6.87-6.85.38-.38.88-.64,1.42-1.03-2.89-2.89-5.5-5.47-8.07-8.1-.53-.55-1.05-1.24-1.24-1.96-.35-1.32.14-2.48,1.38-3.16,1.28-.71,2.53-.5,3.56.5,2.32,2.26,4.59,4.55,6.88,6.84.46.46.86.96,1.47,1.64Z"})));case"Download":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"33.64mm",height:"33.64mm",viewBox:"0 0 95.35 95.37"},e.createElement("path",y({},r?{}:{style:{fill:"#1A3061"}},{d:"m41.74,51.99c0-1.25,0-1.92,0-2.59,0-14.4,0-28.79,0-43.19,0-3.27,2.24-5.84,5.28-6.17,3.01-.33,5.8,1.65,6.48,4.66.16.71.14,1.48.14,2.22,0,14.15,0,28.29,0,42.44v2.34c.53-.42.91-.67,1.23-.98,3.12-3.11,6.23-6.23,9.35-9.34,2.74-2.72,6.26-2.87,8.75-.4,2.49,2.46,2.39,6.06-.3,8.75-6.79,6.81-13.59,13.61-20.4,20.4-2.92,2.91-6.25,2.92-9.15.03-6.81-6.79-13.61-13.59-20.4-20.4-2.71-2.72-2.84-6.26-.35-8.75,2.48-2.49,6.03-2.36,8.75.34,3.42,3.4,6.82,6.83,10.61,10.64Z"})),e.createElement("path",y({},r?{}:{style:{fill:"#1A3061"}},{d:"m47.67,95.37c-13.83,0-27.66,0-41.49,0-3.18,0-5.7-2.16-6.12-5.13-.42-2.98,1.5-5.82,4.51-6.59.65-.17,1.35-.18,2.02-.18,27.41,0,54.83,0,82.24,0,3.8,0,6.48,2.43,6.52,5.88.04,3.53-2.66,6.02-6.56,6.03-13.71,0-27.41,0-41.12,0Z"})));case"ExternalLink":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"88.84mm",height:"79.62mm",viewBox:"0 0 251.84 225.69"},e.createElement("path",y({},r?{}:{style:{fill:"#1A3061"}},{d:"m125.89,225.68c-22.84,0-45.67.03-68.51,0C23.18,225.63.03,202.4.01,168.14,0,131.14,0,94.13.01,57.13.04,23.53,23.35.14,56.85.1c23.67-.03,21.34.02,45.01-.03,4.75,0,8.96,1.04,11.87,5.09,2.64,3.67,3.08,7.7,1.25,11.83-2.01,4.53-5.59,7-10.57,7.06-9,.11-12,.07-21,.07-15.84,0-11.67-.05-27.5.02-18.82.08-31.81,12.98-31.84,31.74-.06,38-.06,76.01,0,114.01.03,18.74,13.04,31.7,31.86,31.72,46.67.05,93.34.06,140.01,0,18.79-.02,31.71-12.99,31.79-31.8.07-17,0-14,.03-31.01.02-8.3,4.75-13.75,11.83-13.81,7.07-.06,12.12,5.48,12.16,13.61.07,17.5.18,15.01-.02,32.51-.34,30.71-23.87,54.02-54.81,54.56h-71.01l-.02.02Z"})),e.createElement("path",y({},r?{}:{style:{fill:"#1A3061"}},{d:"m207.19,24.08c-6.95,0-23.9.04-30.85,0-8.12-.06-13.27-4.55-13.44-11.6-.17-7.19,5.18-12.33,13.32-12.38,17.33-.11,44.67-.12,62,0,8.48.06,13.45,4.99,13.5,13.37.12,16.83.12,43.67,0,60.5-.06,7.69-5.4,13.04-12.34,12.87-6.83-.17-11.53-5.35-11.61-12.97-.08-7.63-.02-25.26-.02-34.12-2.09,1.8-3.42,2.88-4.68,4.03-26.76,24.57-53.52,49.15-80.28,73.72-1.6,1.47-3.13,3-4.82,4.36-5.57,4.47-12.54,3.94-16.98-1.2-4.31-4.98-4.06-11.78,1.06-16.6,10.92-10.28,22.03-20.36,33.07-30.51,16.56-15.23,33.13-30.45,49.72-45.65.97-.89,2.15-1.56,3.23-2.33-.29-.5-.58-.99-.87-1.49h0Z"})));case"Copy":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"31.19mm",height:"31.21mm",viewBox:"0 0 88.41 88.48"},e.createElement("path",y({},r?{}:{style:{fill:"#1A3061"}},{d:"m20.67,54.61c0-7.55,0-15.1,0-22.65,0-6.79,4.38-11.2,11.13-11.21,15.16-.01,30.33-.01,45.49,0,6.75,0,11.12,4.42,11.12,11.22,0,15.1,0,30.2,0,45.3,0,6.79-4.39,11.21-11.13,11.21-15.16,0-30.33,0-45.49,0-6.66,0-11.1-4.41-11.12-11.03-.02-7.61,0-15.22,0-22.83Zm60.78.1c0-7.67,0-15.34,0-23.01,0-2.72-1.23-3.98-3.89-3.99-15.34,0-30.68,0-46.02,0-2.67,0-3.89,1.26-3.89,3.98,0,15.28,0,30.55,0,45.83,0,2.79,1.23,3.99,4.07,3.99,15.22,0,30.44,0,45.65,0,2.91,0,4.08-1.21,4.08-4.17,0-7.55,0-15.09,0-22.64Z"})),e.createElement("path",y({},r?{}:{style:{fill:"#1A3061"}},{d:"m13.66,60.85v6.64C6.35,69.22.02,64.29.01,56.9c-.02-15.34-.02-30.69,0-46.03C.02,4.48,4.36.11,10.73.1c15.1-.02,30.21.19,45.3-.1,6.89-.13,12.81,4.89,11.49,13.58h-6.74c0-.95.03-1.91,0-2.86-.08-2.34-1.35-3.69-3.66-3.69-15.53-.02-31.06-.02-46.59,0-2.36,0-3.58,1.27-3.58,3.7-.02,15.4-.02,30.81,0,46.21,0,2.65,1.32,3.87,4.01,3.91.85.01,1.7,0,2.71,0Z"})));default:return e.createElement("span",null,"No icon for ",t,e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"26.97mm",height:"26.97mm",viewBox:"0 0 76.45 76.44"},e.createElement("path",y({},r?{}:{style:{fill:"#1A3061"}},{d:"m0,38.1C.02,17.02,17.22-.04,38.4,0c21.08.04,38.1,17.21,38.06,38.43-.04,21-17.21,38.05-38.32,38.02C17.04,76.42-.02,59.27,0,38.1ZM38.26,5.95c-17.86-.02-32.27,14.33-32.31,32.17-.04,17.94,14.33,32.35,32.25,32.37,17.87.02,32.23-14.28,32.3-32.17.07-17.92-14.31-32.35-32.24-32.37Z"})),e.createElement("path",y({},r?{}:{style:{fill:"#1A3061"}},{d:"m34.1,43.95c-.12-.12-.18-.26-.18-.43v-1.62c0-1.68.43-3.04,1.29-4.07.86-1.03,2.1-2.11,3.71-3.26,1.31-.91,2.29-1.72,2.93-2.42s.96-1.57.96-2.58c0-1.08-.4-1.95-1.21-2.6-.81-.66-1.87-.99-3.18-.99-1.42,0-2.55.35-3.41,1.06-.86.71-1.29,1.62-1.29,2.73v.81c0,.37-.2.56-.61.56l-5.91-.25c-.17,0-.31-.06-.43-.18-.12-.12-.18-.26-.18-.43v-.5c0-2.02.51-3.81,1.52-5.38,1.01-1.57,2.42-2.78,4.22-3.64,1.8-.86,3.88-1.29,6.24-1.29s4.3.41,6.04,1.24c1.73.83,3.07,1.98,4.02,3.46.94,1.48,1.41,3.2,1.41,5.15,0,1.48-.26,2.75-.78,3.81-.52,1.06-1.15,1.93-1.89,2.6-.74.67-1.68,1.42-2.83,2.22-1.21.84-2.11,1.57-2.68,2.17s-.86,1.35-.86,2.22v1.16c0,.17-.06.31-.18.43-.12.12-.26.18-.43.18h-5.86c-.17,0-.31-.06-.43-.18Zm.3,10.36c-.76-.76-1.14-1.71-1.14-2.85s.37-2.09,1.11-2.83,1.7-1.11,2.88-1.11,2.13.36,2.85,1.09c.72.72,1.09,1.68,1.09,2.85s-.37,2.1-1.11,2.85c-.74.76-1.68,1.14-2.83,1.14s-2.1-.38-2.85-1.14Z"}))))}};let Vn,In,Rn,Gn,_n,Bn,qn,Fn=e=>e;const Hn=Kt.button(Vn||(Vn=Fn`
|
|
1
|
+
import e,{useRef as t,useContext as n,useLayoutEffect as r,createElement as a,useMemo as i,Component as o}from"react";import s from"decimal.js";import*as l from"highcharts";import c from"highcharts";import u from"highcharts/modules/accessibility.js";import m from"highcharts/modules/exporting.js";import d from"highcharts/modules/export-data.js";import p from"highcharts/modules/offline-exporting.js";import*as h from"xlsx";import{HighchartsReact as f}from"highcharts-react-official";import{v4 as g}from"uuid";function v(){return v=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},v.apply(this,arguments)}function y(e){var t={exports:{}};return e(t,t.exports),t.exports}var b="function"==typeof Symbol&&Symbol.for,w=b?Symbol.for("react.element"):60103,S=b?Symbol.for("react.portal"):60106,x=b?Symbol.for("react.fragment"):60107,k=b?Symbol.for("react.strict_mode"):60108,C=b?Symbol.for("react.profiler"):60114,A=b?Symbol.for("react.provider"):60109,N=b?Symbol.for("react.context"):60110,E=b?Symbol.for("react.async_mode"):60111,P=b?Symbol.for("react.concurrent_mode"):60111,$=b?Symbol.for("react.forward_ref"):60112,T=b?Symbol.for("react.suspense"):60113,j=b?Symbol.for("react.suspense_list"):60120,M=b?Symbol.for("react.memo"):60115,D=b?Symbol.for("react.lazy"):60116,z=b?Symbol.for("react.block"):60121,O=b?Symbol.for("react.fundamental"):60117,L=b?Symbol.for("react.responder"):60118,V=b?Symbol.for("react.scope"):60119;function I(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case w:switch(e=e.type){case E:case P:case x:case C:case k:case T:return e;default:switch(e=e&&e.$$typeof){case N:case $:case D:case M:case A:return e;default:return t}}case S:return t}}}function G(e){return I(e)===P}var R={AsyncMode:E,ConcurrentMode:P,ContextConsumer:N,ContextProvider:A,Element:w,ForwardRef:$,Fragment:x,Lazy:D,Memo:M,Portal:S,Profiler:C,StrictMode:k,Suspense:T,isAsyncMode:function(e){return G(e)||I(e)===E},isConcurrentMode:G,isContextConsumer:function(e){return I(e)===N},isContextProvider:function(e){return I(e)===A},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===w},isForwardRef:function(e){return I(e)===$},isFragment:function(e){return I(e)===x},isLazy:function(e){return I(e)===D},isMemo:function(e){return I(e)===M},isPortal:function(e){return I(e)===S},isProfiler:function(e){return I(e)===C},isStrictMode:function(e){return I(e)===k},isSuspense:function(e){return I(e)===T},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===x||e===P||e===C||e===k||e===T||e===j||"object"==typeof e&&null!==e&&(e.$$typeof===D||e.$$typeof===M||e.$$typeof===A||e.$$typeof===N||e.$$typeof===$||e.$$typeof===O||e.$$typeof===L||e.$$typeof===V||e.$$typeof===z)},typeOf:I},B=y(function(e,t){"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case c:case u:case a:case o:case i:case d:return p;default:var g=p&&p.$$typeof;switch(g){case l:case m:case f:case h:case s:return g;default:return t}}case r:return t}}}var S=u,x=l,k=s,C=n,A=m,N=a,E=f,P=h,$=r,T=o,j=i,M=d,D=!1;function z(e){return w(e)===u}t.AsyncMode=c,t.ConcurrentMode=S,t.ContextConsumer=x,t.ContextProvider=k,t.Element=C,t.ForwardRef=A,t.Fragment=N,t.Lazy=E,t.Memo=P,t.Portal=$,t.Profiler=T,t.StrictMode=j,t.Suspense=M,t.isAsyncMode=function(e){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(e)||w(e)===c},t.isConcurrentMode=z,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===m},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===f},t.isMemo=function(e){return w(e)===h},t.isPortal=function(e){return w(e)===r},t.isProfiler=function(e){return w(e)===o},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===u||e===o||e===i||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===s||e.$$typeof===l||e.$$typeof===m||e.$$typeof===v||e.$$typeof===y||e.$$typeof===b||e.$$typeof===g)},t.typeOf=w}()}),_=y(function(e){e.exports="production"===process.env.NODE_ENV?R:B});function q(e){function t(e,r,l,c,d){for(var p,h,f,g,w,x=0,k=0,C=0,A=0,N=0,M=0,z=f=p=0,L=0,V=0,I=0,G=0,R=l.length,B=R-1,_="",q="",F="",H="";L<R;){if(h=l.charCodeAt(L),L===B&&0!==k+A+C+x&&(0!==k&&(h=47===k?10:47),A=C=x=0,R++,B++),0===k+A+C+x){if(L===B&&(0<V&&(_=_.replace(m,"")),0<_.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:_+=l.charAt(L)}h=59}switch(h){case 123:for(p=(_=_.trim()).charCodeAt(0),f=1,G=++L;L<R;){switch(h=l.charCodeAt(L)){case 123:f++;break;case 125:f--;break;case 47:switch(h=l.charCodeAt(L+1)){case 42:case 47:e:{for(z=L+1;z<B;++z)switch(l.charCodeAt(z)){case 47:if(42===h&&42===l.charCodeAt(z-1)&&L+2!==z){L=z+1;break e}break;case 10:if(47===h){L=z+1;break e}}L=z}}break;case 91:h++;case 40:h++;case 34:case 39:for(;L++<B&&l.charCodeAt(L)!==h;);}if(0===f)break;L++}if(f=l.substring(G,L),0===p&&(p=(_=_.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<V&&(_=_.replace(m,"")),h=_.charCodeAt(1)){case 100:case 109:case 115:case 45:V=r;break;default:V=j}if(G=(f=t(r,V,f,h,d+1)).length,0<D&&(w=s(3,f,V=n(j,_,I),r,P,E,G,h,d,c),_=V.join(""),void 0!==w&&0===(G=(f=w.trim()).length)&&(h=0,f="")),0<G)switch(h){case 115:_=_.replace(S,o);case 100:case 109:case 45:f=_+"{"+f+"}";break;case 107:f=(_=_.replace(v,"$1 $2"))+"{"+f+"}",f=1===T||2===T&&i("@"+f,3)?"@-webkit-"+f+"@"+f:"@"+f;break;default:f=_+f,112===c&&(q+=f,f="")}else f=""}else f=t(r,n(r,_,I),f,c,d+1);F+=f,f=I=V=z=p=0,_="",h=l.charCodeAt(++L);break;case 125:case 59:if(1<(G=(_=(0<V?_.replace(m,""):_).trim()).length))switch(0===z&&(p=_.charCodeAt(0),45===p||96<p&&123>p)&&(G=(_=_.replace(" ",":")).length),0<D&&void 0!==(w=s(1,_,r,e,P,E,q.length,c,d,c))&&0===(G=(_=w.trim()).length)&&(_="\0\0"),p=_.charCodeAt(0),h=_.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){H+=_+l.charAt(L);break}default:58!==_.charCodeAt(G-1)&&(q+=a(_,p,h,_.charCodeAt(2)))}I=V=z=p=0,_="",h=l.charCodeAt(++L)}}switch(h){case 13:case 10:47===k?k=0:0===1+p&&107!==c&&0<_.length&&(V=1,_+="\0"),0<D*O&&s(0,_,r,e,P,E,q.length,c,d,c),E=1,P++;break;case 59:case 125:if(0===k+A+C+x){E++;break}default:switch(E++,g=l.charAt(L),h){case 9:case 32:if(0===A+x+k)switch(N){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===A+k+x&&(V=I=1,g="\f"+g);break;case 108:if(0===A+k+x+$&&0<z)switch(L-z){case 2:112===N&&58===l.charCodeAt(L-3)&&($=N);case 8:111===M&&($=M)}break;case 58:0===A+k+x&&(z=L);break;case 44:0===k+C+A+x&&(V=1,g+="\r");break;case 34:case 39:0===k&&(A=A===h?0:0===A?h:A);break;case 91:0===A+k+C&&x++;break;case 93:0===A+k+C&&x--;break;case 41:0===A+k+x&&C--;break;case 40:0===A+k+x&&(0===p&&(2*N+3*M==533||(p=1)),C++);break;case 64:0===k+C+A+x+z+f&&(f=1);break;case 42:case 47:if(!(0<A+x+C))switch(k){case 0:switch(2*h+3*l.charCodeAt(L+1)){case 235:k=47;break;case 220:G=L,k=42}break;case 42:47===h&&42===N&&G+2!==L&&(33===l.charCodeAt(G+2)&&(q+=l.substring(G,L+1)),g="",k=0)}}0===k&&(_+=g)}M=N,N=h,L++}if(0<(G=q.length)){if(V=r,0<D&&void 0!==(w=s(2,q,V,e,P,E,G,c,d,c))&&0===(q=w).length)return H+q+F;if(q=V.join(",")+"{"+q+"}",0!=T*$){switch(2!==T||i(q,2)||($=0),$){case 111:q=q.replace(b,":-moz-$1")+q;break;case 112:q=q.replace(y,"::-webkit-input-$1")+q.replace(y,"::-moz-$1")+q.replace(y,":-ms-input-$1")+q}$=0}}return H+q+F}function n(e,t,n){var a=t.trim().split(f);t=a;var i=a.length,o=e.length;switch(o){case 0:case 1:var s=0;for(e=0===o?"":e[0]+" ";s<i;++s)t[s]=r(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<i;++s)for(var c=0;c<o;++c)t[l++]=r(e[c]+" ",a[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function a(e,t,n,r){var o=e+";",s=2*t+3*n+4*r;if(944===s){e=o.indexOf(":",9)+1;var l=o.substring(e,o.length-1).trim();return l=o.substring(0,e).trim()+l+";",1===T||2===T&&i(l,1)?"-webkit-"+l+l:l}if(0===T||2===T&&!i(o,1))return o;switch(s){case 1015:return 97===o.charCodeAt(10)?"-webkit-"+o+o:o;case 951:return 116===o.charCodeAt(3)?"-webkit-"+o+o:o;case 963:return 110===o.charCodeAt(5)?"-webkit-"+o+o:o;case 1009:if(100!==o.charCodeAt(4))break;case 969:case 942:return"-webkit-"+o+o;case 978:return"-webkit-"+o+"-moz-"+o+o;case 1019:case 983:return"-webkit-"+o+"-moz-"+o+"-ms-"+o+o;case 883:if(45===o.charCodeAt(8))return"-webkit-"+o+o;if(0<o.indexOf("image-set(",11))return o.replace(N,"$1-webkit-$2")+o;break;case 932:if(45===o.charCodeAt(4))switch(o.charCodeAt(5)){case 103:return"-webkit-box-"+o.replace("-grow","")+"-webkit-"+o+"-ms-"+o.replace("grow","positive")+o;case 115:return"-webkit-"+o+"-ms-"+o.replace("shrink","negative")+o;case 98:return"-webkit-"+o+"-ms-"+o.replace("basis","preferred-size")+o}return"-webkit-"+o+"-ms-"+o+o;case 964:return"-webkit-"+o+"-ms-flex-"+o+o;case 1023:if(99!==o.charCodeAt(8))break;return"-webkit-box-pack"+(l=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+o+"-ms-flex-pack"+l+o;case 1005:return p.test(o)?o.replace(d,":-webkit-")+o.replace(d,":-moz-")+o:o;case 1e3:switch(t=(l=o.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=o.replace(w,"tb");break;case 232:l=o.replace(w,"tb-rl");break;case 220:l=o.replace(w,"lr");break;default:return o}return"-webkit-"+o+"-ms-"+l+o;case 1017:if(-1===o.indexOf("sticky",9))break;case 975:switch(t=(o=e).length-10,s=(l=(33===o.charCodeAt(t)?o.substring(0,t):o).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:o=o.replace(l,"-webkit-"+l)+";"+o;break;case 207:case 102:o=o.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+o.replace(l,"-webkit-"+l)+";"+o.replace(l,"-ms-"+l+"box")+";"+o}return o+";";case 938:if(45===o.charCodeAt(5))switch(o.charCodeAt(6)){case 105:return l=o.replace("-items",""),"-webkit-"+o+"-webkit-box-"+l+"-ms-flex-"+l+o;case 115:return"-webkit-"+o+"-ms-flex-item-"+o.replace(k,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(k,"")+o}break;case 973:case 989:if(45!==o.charCodeAt(3)||122===o.charCodeAt(4))break;case 931:case 953:if(!0===A.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?a(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):o.replace(l,"-webkit-"+l)+o.replace(l,"-moz-"+l.replace("fill-",""))+o;break;case 962:if(o="-webkit-"+o+(102===o.charCodeAt(5)?"-ms-"+o:"")+o,211===n+r&&105===o.charCodeAt(13)&&0<o.indexOf("transform",10))return o.substring(0,o.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+o}return o}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),z(2!==t?r:r.replace(C,"$1"),n,t)}function o(e,t){var n=a(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(x," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,a,i,o,s,l,u){for(var m,d=0,p=t;d<D;++d)switch(m=M[d].call(c,e,p,n,r,a,i,o,s,l,u)){case void 0:case!1:case!0:case null:break;default:p=m}if(p!==t)return p}function l(e){return void 0!==(e=e.prefix)&&(z=null,e?"function"!=typeof e?T=1:(T=2,z=e):T=0),l}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<D){var a=s(-1,n,r,r,P,E,0,0,0,0);void 0!==a&&"string"==typeof a&&(n=a)}var i=t(j,r,n,0,0);return 0<D&&void 0!==(a=s(-2,i,r,r,P,E,i.length,0,0,0))&&(i=a),$=0,E=P=1,i}var u=/^\0+/g,m=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,f=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,k=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,A=/stretch|:\s*\w+\-(?:conte|avail)/,N=/([^-])(image-set\()/,E=1,P=1,$=0,T=1,j=[],M=[],D=0,z=null,O=0;return c.use=function e(t){switch(t){case void 0:case null:D=M.length=0;break;default:if("function"==typeof t)M[D++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else O=0|!!t}return e},c.set=l,void 0!==e&&l(e),c}var F={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function H(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var W=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Y=/* #__PURE__ */H(function(e){return W.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),U={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Z={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},X={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},K={};function J(e){return _.isMemo(e)?X:K[e.$$typeof]||U}K[_.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},K[_.Memo]=X;var Q=Object.defineProperty,ee=Object.getOwnPropertyNames,te=Object.getOwnPropertySymbols,ne=Object.getOwnPropertyDescriptor,re=Object.getPrototypeOf,ae=Object.prototype,ie=function e(t,n,r){if("string"!=typeof n){if(ae){var a=re(n);a&&a!==ae&&e(t,a,r)}var i=ee(n);te&&(i=i.concat(te(n)));for(var o=J(t),s=J(n),l=0;l<i.length;++l){var c=i[l];if(!(Z[c]||r&&r[c]||s&&s[c]||o&&o[c])){var u=ne(n,c);try{Q(t,c,u)}catch(e){}}}}return t};function oe(){return(oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var se=function(e,t){for(var n=[e[0]],r=0,a=t.length;r<a;r+=1)n.push(t[r],e[r+1]);return n},le=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!_.typeOf(e)},ce=Object.freeze([]),ue=Object.freeze({});function me(e){return"function"==typeof e}function de(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function pe(e){return e&&"string"==typeof e.styledComponentId}var he="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",fe="undefined"!=typeof window&&"HTMLElement"in window,ge=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&(void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV)),ve={},ye="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function be(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach(function(t){e=e.replace(/%[a-z]/,t)}),e}function we(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw"production"===process.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):"")):new Error(be.apply(void 0,[ye[e]].concat(n)).trim())}var Se=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,a=r;e>=a;)(a<<=1)<0&&we(16,""+e);this.groupSizes=new Uint32Array(a),this.groupSizes.set(n),this.length=a;for(var i=r;i<a;i++)this.groupSizes[i]=0}for(var o=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(o,t[s])&&(this.groupSizes[e]++,o++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var a=n;a<r;a++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),a=r+n,i=r;i<a;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),xe=new Map,ke=new Map,Ce=1,Ae=function(e){if(xe.has(e))return xe.get(e);for(;ke.has(Ce);)Ce++;var t=Ce++;return"production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&we(16,""+t),xe.set(e,t),ke.set(t,e),t},Ne=function(e){return ke.get(e)},Ee=function(e,t){t>=Ce&&(Ce=t+1),xe.set(e,t),ke.set(t,e)},Pe="style["+he+'][data-styled-version="5.3.11"]',$e=new RegExp("^"+he+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Te=function(e,t,n){for(var r,a=n.split(","),i=0,o=a.length;i<o;i++)(r=a[i])&&e.registerName(t,r)},je=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],a=0,i=n.length;a<i;a++){var o=n[a].trim();if(o){var s=o.match($e);if(s){var l=0|parseInt(s[1],10),c=s[2];0!==l&&(Ee(c,l),Te(e,c,s[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(o)}}},Me=function(e){var t=document.head,n=e||t,r=document.createElement("style"),a=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(he))return r}}(n),i=void 0!==a?a.nextSibling:null;r.setAttribute(he,"active"),r.setAttribute("data-styled-version","5.3.11");var o="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return o&&r.setAttribute("nonce",o),n.insertBefore(r,i),r},De=function(){function e(e){var t=this.element=Me(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var a=t[n];if(a.ownerNode===e)return a}we(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),ze=function(){function e(e){var t=this.element=Me(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Oe=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Le=fe,Ve={isServer:!fe,useCSSOMInjection:!ge},Ie=function(){function e(e,t,n){void 0===e&&(e=ue),void 0===t&&(t={}),this.options=oe({},Ve,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&fe&&Le&&(Le=!1,function(e){for(var t=document.querySelectorAll(Pe),n=0,r=t.length;n<r;n++){var a=t[n];a&&"active"!==a.getAttribute(he)&&(je(e,a),a.parentNode&&a.parentNode.removeChild(a))}}(this))}e.registerId=function(e){return Ae(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(oe({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,a=t.target,e=n?new Oe(a):r?new De(a):new ze(a),new Se(e)));var e,t,n,r,a},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Ae(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Ae(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Ae(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",a=0;a<n;a++){var i=Ne(a);if(void 0!==i){var o=e.names.get(i),s=t.getGroup(a);if(o&&s&&o.size){var l=he+".g"+a+'[id="'+i+'"]',c="";void 0!==o&&o.forEach(function(e){e.length>0&&(c+=e+",")}),r+=""+s+l+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),Ge=/(a)(d)/gi,Re=function(e){return String.fromCharCode(e+(e>25?39:97))};function Be(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Re(t%52)+n;return(Re(t%52)+n).replace(Ge,"$1-$2")}var _e=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},qe=function(e){return _e(5381,e)};function Fe(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(me(n)&&!pe(n))return!1}return!0}var He=qe("5.3.11"),We=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Fe(e),this.componentId=t,this.baseHash=_e(He,t),this.baseStyle=n,Ie.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,a=[];if(this.baseStyle&&a.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))a.push(this.staticRulesId);else{var i=lt(this.rules,e,t,n).join(""),o=Be(_e(this.baseHash,i)>>>0);if(!t.hasNameForId(r,o)){var s=n(i,"."+o,void 0,r);t.insertRules(r,o,s)}a.push(o),this.staticRulesId=o}else{for(var l=this.rules.length,c=_e(this.baseHash,n.hash),u="",m=0;m<l;m++){var d=this.rules[m];if("string"==typeof d)u+=d,"production"!==process.env.NODE_ENV&&(c=_e(c,d+m));else if(d){var p=lt(d,e,t,n),h=Array.isArray(p)?p.join(""):p;c=_e(c,h+m),u+=h}}if(u){var f=Be(c>>>0);if(!t.hasNameForId(r,f)){var g=n(u,"."+f,void 0,r);t.insertRules(r,f,g)}a.push(f)}}return a.join(" ")},e}(),Ye=/^\s*\/\/.*$/gm,Ue=[":","[",".","#"],Ze=e.createContext(),Xe=e.createContext(),Ke=new Ie,Je=function(e){var t,n,r,a,i=ue.options,o=ue.plugins,s=void 0===o?ce:o,l=new q(void 0===i?ue:i),c=[],u=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,a,i,o,s,l,c,u,m){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(a[0]+r),"";default:return r+(0===m?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}(function(e){c.push(e)}),m=function(e,r,i){return 0===r&&-1!==Ue.indexOf(i[n.length])||i.match(a)?e:"."+t};function d(e,i,o,s){void 0===s&&(s="&");var c=e.replace(Ye,""),u=i&&o?o+" "+i+" { "+c+" }":c;return t=s,n=i,r=new RegExp("\\"+n+"\\b","g"),a=new RegExp("(\\"+n+"\\b){2,}"),l(o||!i?"":i,u)}return l.use([].concat(s,[function(e,t,a){2===e&&a.length&&a[0].lastIndexOf(n)>0&&(a[0]=a[0].replace(r,m))},u,function(e){if(-2===e){var t=c;return c=[],t}}])),d.hash=s.length?s.reduce(function(e,t){return t.name||we(15),_e(e,t.name)},5381).toString():"",d}();function Qe(){return n(Ze)||Ke}function et(){return n(Xe)||Je}var tt=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Je);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return we(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Je),this.name+e.hash},e}(),nt=/([A-Z])/,rt=/([A-Z])/g,at=/^ms-/,it=function(e){return"-"+e.toLowerCase()};function ot(e){return nt.test(e)?e.replace(rt,it).replace(at,"-ms-"):e}var st=function(e){return null==e||!1===e||""===e};function lt(e,t,n,r){if(Array.isArray(e)){for(var a,i=[],o=0,s=e.length;o<s;o+=1)""!==(a=lt(e[o],t,n,r))&&(Array.isArray(a)?i.push.apply(i,a):i.push(a));return i}if(st(e))return"";if(pe(e))return"."+e.styledComponentId;if(me(e)){if("function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t)return e;var l=e(t);return"production"!==process.env.NODE_ENV&&_.isElement(l)&&console.warn(de(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),lt(l,t,n,r)}var c;return e instanceof tt?n?(e.inject(n,r),e.getName(r)):e:le(e)?function e(t,n){var r,a,i=[];for(var o in t)t.hasOwnProperty(o)&&!st(t[o])&&(Array.isArray(t[o])&&t[o].isCss||me(t[o])?i.push(ot(o)+":",t[o],";"):le(t[o])?i.push.apply(i,e(t[o],o)):i.push(ot(o)+": "+(r=o,(null==(a=t[o])||"boolean"==typeof a||""===a?"":"number"!=typeof a||0===a||r in F||r.startsWith("--")?String(a).trim():a+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString()}var ct=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ut(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 me(e)||le(e)?ct(lt(se(ce,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ct(lt(se(e,n)))}var mt=/invalid hook call/i,dt=new Set,pt=function(e,n){if("production"!==process.env.NODE_ENV){var r="The component "+e+(n?' with the id of "'+n+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",a=console.error;try{var i=!0;console.error=function(e){if(mt.test(e))i=!1,dt.delete(r);else{for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];a.apply(void 0,[e].concat(n))}},t(),i&&!dt.has(r)&&(console.warn(r),dt.add(r))}catch(e){mt.test(e.message)&&dt.delete(r)}finally{console.error=a}}},ht=function(e,t,n){return void 0===n&&(n=ue),e.theme!==n.theme&&e.theme||t||n.theme},ft=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,gt=/(^-|-$)/g;function vt(e){return e.replace(ft,"-").replace(gt,"")}var yt=function(e){return Be(qe(e)>>>0)};function bt(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var wt=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},St=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function xt(e,t,n){var r=e[n];wt(t)&&wt(r)?kt(r,t):e[n]=t}function kt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var a=0,i=n;a<i.length;a++){var o=i[a];if(wt(o))for(var s in o)St(s)&&xt(e,o[s],s)}return e}var Ct=e.createContext(),At={};function Nt(t,r,i){var o=pe(t),s=!bt(t),l=r.attrs,c=void 0===l?ce:l,u=r.componentId,m=void 0===u?function(e,t){var n="string"!=typeof e?"sc":vt(e);At[n]=(At[n]||0)+1;var r=n+"-"+yt("5.3.11"+n+At[n]);return t?t+"-"+r:r}(r.displayName,r.parentComponentId):u,d=r.displayName,p=void 0===d?function(e){return bt(e)?"styled."+e:"Styled("+de(e)+")"}(t):d,h=r.displayName&&r.componentId?vt(r.displayName)+"-"+r.componentId:r.componentId||m,f=o&&t.attrs?Array.prototype.concat(t.attrs,c).filter(Boolean):c,g=r.shouldForwardProp;o&&t.shouldForwardProp&&(g=r.shouldForwardProp?function(e,n,a){return t.shouldForwardProp(e,n,a)&&r.shouldForwardProp(e,n,a)}:t.shouldForwardProp);var v,y=new We(i,h,o?t.componentStyle:void 0),b=y.isStatic&&0===c.length,w=function(e,t){return function(e,t,r,i){var o=e.attrs,s=e.componentStyle,l=e.defaultProps,c=e.foldedComponentIds,u=e.shouldForwardProp,m=e.styledComponentId,d=e.target,p=function(e,t,n){void 0===e&&(e=ue);var r=oe({},t,{theme:e}),a={};return n.forEach(function(e){var t,n,i,o=e;for(t in me(o)&&(o=o(r)),o)r[t]=a[t]="className"===t?(i=o[t],(n=a[t])&&i?n+" "+i:n||i):o[t]}),[r,a]}(ht(t,n(Ct),l)||ue,t,o),h=p[1],f=function(e,t,n,r){var a=Qe(),i=et(),o=e.generateAndInjectStyles(t?ue:n,a,i);return"production"!==process.env.NODE_ENV&&!t&&r&&r(o),o}(s,i,p[0],"production"!==process.env.NODE_ENV?e.warnTooManyClasses:void 0),g=r,v=h.$as||t.$as||h.as||t.as||d,y=bt(v),b=h!==t?oe({},t,{},h):t,w={};for(var S in b)"$"!==S[0]&&"as"!==S&&("forwardedAs"===S?w.as=b[S]:(u?u(S,Y,v):!y||Y(S))&&(w[S]=b[S]));return t.style&&h.style!==t.style&&(w.style=oe({},t.style,{},h.style)),w.className=Array.prototype.concat(c,m,f!==m?f:null,t.className,h.className).filter(Boolean).join(" "),w.ref=g,a(v,w)}(v,e,t,b)};return w.displayName=p,(v=e.forwardRef(w)).attrs=f,v.componentStyle=y,v.displayName=p,v.shouldForwardProp=g,v.foldedComponentIds=o?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):ce,v.styledComponentId=h,v.target=o?t.target:t,v.withComponent=function(e){var t=r.componentId,n=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(a[n]=e[n]);return a}(r,["componentId"]),a=t&&t+"-"+(bt(e)?e:vt(de(e)));return Nt(e,oe({},n,{attrs:f,componentId:a}),i)},Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=o?kt({},t.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(pt(p,h),v.warnTooManyClasses=function(e,t){var n={},r=!1;return function(a){!r&&(n[a]=!0,Object.keys(n).length>=200)&&(console.warn("Over 200 classes were generated for component "+e+(t?' with the id of "'+t+'"':"")+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={})}}(p,h)),Object.defineProperty(v,"toString",{value:function(){return"."+v.styledComponentId}}),s&&ie(v,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}var Et=function(e){return function e(t,n,r){if(void 0===r&&(r=ue),!_.isValidElementType(n))return we(1,String(n));var a=function(){return t(n,r,ut.apply(void 0,arguments))};return a.withConfig=function(a){return e(t,n,oe({},r,{},a))},a.attrs=function(a){return e(t,n,oe({},r,{attrs:Array.prototype.concat(r.attrs,a).filter(Boolean)}))},a}(Nt,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Et[e]=Et(e)});var Pt=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Fe(e),Ie.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var a=r(lt(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,a)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&Ie.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1);var $t,Tt,jt,Mt=Et;!function(e){e.VerticalBarChart="VerticalBarChart",e.GroupVerticalBarChart="GroupVerticalBarChart",e.StackedVerticalBarChart="StackedVerticalBarChart",e.PercentVerticalBarChart="PercentVerticalBarChart",e.HorizontalBarChart="HorizontalBarChart",e.GroupHorizontalBarChart="GroupHorizontalBarChart",e.StackedHorizontalBarChart="StackedHorizontalBarChart",e.PercentHorizontalBarChart="PercentHorizontalBarChart",e.PyramidChart="PyramidChart",e.PieChart="PieChart",e.LineChart="LineChart",e.ScatterPlot="ScatterPlot",e.Table="Table"}($t||($t={})),function(e){e.Unknown="N",e.Time="T",e.Ordinal="P",e.Geological="G",e.Content="C",e.OtherClassificatory="F"}(Tt||(Tt={})),function(e){e.Week="Week",e.Month="Month",e.Quarter="Quarter",e.HalfYear="HalfYear",e.Year="Year",e.Decade="Decade",e.Irregular="Irregular"}(jt||(jt={}));const Dt={empty:{fi:"",sv:"",en:""},preliminaryData:{fi:"Ennakko",sv:"Preliminär",en:"Preliminary data"},source:{fi:"Lähde",sv:"Källa",en:"Source"},unit:{fi:"Yksikkö",sv:"Enhet",en:"Unit"},graphCreationError:{fi:"Kuviota ei voitu muodostaa",sv:"Diagrammet kunde inte skapas",en:"The graph could not be created"},thousandsSep:{fi:" ",sv:" ",en:","},thousandsSepAccessibility:{fi:"",sv:"",en:","},decimalPoint:{fi:",",sv:",",en:"."},barMultiple:{fi:"Pystypylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Flerdimensionellt vertikalt stapeldiagram.",en:"Bar chart with {numSeries} data series."},barSingle:{fi:"Pystypylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Vertikalt stapeldiagram.",en:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}."},columnSingle:{fi:"Vaakapylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Horisontellt stapeldiagram.",en:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}."},columnMultiple:{fi:"Vaakapylväskuvio, jossa {numSeries} muuttujaa.",sv:"Flerdimensionellt horisontellt stapeldiagram.",en:"Bar chart with {numSeries} data series."},lineSingle:{fi:"Viivakuvio, jossa {numPoints} havainto{#eq numPoints 1}arvo{else}arvoa{/eq}.",sv:"Linjediagram.",en:"Line chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}."},lineMultiple:{fi:"Viivakuvio, jossa {numSeries} viivaa.",sv:"Flerdimensionellt linjediagram.",en:"Line chart with {numSeries} lines."},pieSingle:{fi:"Piirakkakuvio, jossa {numPoints} {#eq numPoints 1}lohko{else}lohkoa{/eq}.",sv:"Cirkeldiagram.",en:"Pie chart with {numPoints} {#eq numPoints 1}slice{else}slices{/eq}."},pieMultiple:{fi:"Piirakkakuvio, jossa {numSeries} piirakkaa.",sv:"Flerdimensionellt cirkeldiagram.",en:"Pie chart with {numSeries} pies."},scatterSingle:{fi:"Hajontakuvio, jossa {numPoints} {#eq numPoints 1}piste{else}pistettä{/eq}.",sv:"Spridningsdiagram.",en:"Scatter chart with {numPoints} {#eq numPoints 1}point{else}points{/eq}."},scatterMultiple:{fi:"Hajontakuvio,jossa {numSeries} datasarjaa.",sv:"Flerdimensionellt spridningsdiagram.",en:"Scatter chart with {numSeries} data series."},defaultSingle:{fi:"Kuvio, jossa {numPoints} data{#eq numPoints 1}piste{else}pistettä{/eq}.",sv:"Endimensionellt diagram.",en:"Chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}."},defaultMultiple:{fi:"Kuvio, jossa {numSeries} datasarjaa.",sv:"Flerdimensionellt diagram.",en:"Chart with {numSeries} data series."},defaultChartTitle:{fi:"Kuvio",sv:"Diagrammets rubrik",en:"Chart"},chartMenuLabel:{fi:"Kuvion valikko",sv:"Diagrammets meny",en:"Chart menu"},menuButtonLabel:{fi:"Katso valikko kuviosta {chartTitle}",sv:"Visa diagrammets meny",en:"View chart menu, {chartTitle}"},credits:{fi:"{creditsStr}",sv:"{creditsStr}",en:"{creditsStr}"},legendItem:{fi:"Näytä {itemName}",sv:"Variabelvärde",en:"Show {itemName}"},legendLabel:{fi:"Kuvion selite: {legendTitle}",sv:"Bläddra visuellt i variabelvärden",en:"Chart legend: {legendTitle}"},legendLabelNoTitle:{fi:"Vaihda sarjojen näkyvyyttä, {chartTitle}",sv:"Ingen etikett",en:"Toggle series visibility, {chartTitle}"},contextButtonTitle:{fi:"Kuvion valintamenu",sv:"Diagrammets valmeny",en:"Chart context menu"},downloadPNG:{fi:"Lataa kuvio (png)",sv:"Ladda ner figuren (png)",en:"Download figure (png)"},downloadSVG:{fi:"Lataa kuvio (svg)",sv:"Ladda ner figuren (svg)",en:"Download figure (svg)"},downloadXLSX:{fi:"Lataa taulukko (xlsx)",sv:"Ladda ner tabellen (xlsx)",en:"Download table (xlsx)"},downloadCSV:{fi:"Lataa taulukko (csv)",sv:"Ladda ner tabellen (csv)",en:"Download table (csv)"},rangeCategories:{fi:"Datan arvoalue: {numCategories} luokkaa.",sv:"Diagrammets värdeområde.",en:"Data range: {numCategories} categories."},rangeFromTo:{fi:"Arvot alkavat {rangeFrom} ja päättyvät {rangeTo}.",sv:"Värdena börjar från {rangeFrom} och slutar vid {rangeTo}.",en:"Data ranges from {rangeFrom} to {rangeTo}."},timeRangeDays:{fi:"Arvoja päiviltä {range}.",sv:"Värden för dagarna {range}.",en:"Data range: {range} days."},timeRangeHours:{fi:"Arvoja tunneilta {range}",sv:"Värden för timmarna {range}",en:"Data range: {range} hours."},timeRangeMinutes:{fi:"Arvoja minuuteilta {range}",sv:"Värden för minuterna {range}",en:"Data range: {range} minutes."},timeRangeSeconds:{fi:"Arvoja sekunneilta {range}",sv:"Värden för sekunderna {range}",en:"Data range: {range} seconds."},xAxisDescriptionPlural:{fi:"Kuviolla on {numAxes} x-akselia muuttujille {#each names}{#unless @first},{/unless}{#if @last} ja{/if} {this}{/each}.",sv:"Figuren har {numAxes} x-axlar för variablerna {#each names}{#unless @first},{/unless}{#if @last} och{/if} {this}{/each}.",en:"The chart has {numAxes} X axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}."},xAxisDescriptionSingular:{fi:"Kuviolla on 1 x-akseli muuttujalle {names[0]}. {ranges[0]}",sv:"Figuren har en x-axel för variabeln {names[0]}. {ranges[0]}",en:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}"},yAxisDescriptionPlural:{fi:"Kuviolla on {numAxes} y-akselia muuttujille {#each names}{#unless @first},{/unless}{#if @last} ja{/if} {this}{/each}.",sv:"Figuren har {numAxes} y-axlar för variablerna {#each names}{#unless @first},{/unless}{#if @last} och{/if} {this}{/each}.",en:"The chart has {numAxes} Y axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}."},yAxisDescriptionSingular:{fi:"Kuviolla on 1 y-akseli muuttujalle {names[0]}. {ranges[0]}",sv:"Figuren har en y-axel för variabeln {names[0]}. {ranges[0]}",en:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}"},seriesSummaryBar:{fi:"{series.name}muuttujan {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel",en:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryBarCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}. Pylvässarja, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel, ..variabelns .. Stapel",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryColumn:{fi:"{series.name}muuttuja, pylvässarja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel",en:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryColumnCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}. Pylvässarja, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel, ..variabelns .. Stapel",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryDefault:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. Diagram",en:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryDefaultCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. diagram, ..variabelns .. Diagram",en:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryLine:{fi:"{series.name}, viiva {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. Linje",en:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryLineCombination:{fi:"{series.name}, aikasarja {seriesNumber}/{chart.series.length}. Viivassa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. linje, ..variabelns .. Linje",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryPie:{fi:"{series.name}, piirakan {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1} lohko {else}lohkoa{/eq}.",sv:"..variabelns .. Sektor",en:"{series.name}, pie {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}."},seriesSummaryPieCombination:{fi:"{series.name}, sarja {seriesNumber}/{chart.series.length}. Piirakasta, jossa {series.points.length} {#eq series.points.length 1} lohko{else}lohkoa{/eq}.",sv:"..variabelns .. sektor, ..variabelns .. Sektor",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Pie with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}."},seriesSummaryScatter:{fi:"{series.name}, hajontakuvio {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1}piste{else}pisteet{/eq}.",sv:"..variabelns .. Punkt",en:"{series.name}, scatter plot {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryScatterCombination:{fi:"{series.name}, datasarja {seriesNumber}/{chart.series.length}, hajontakuviosta {series.points.length} {#eq series.points.length 1}piste{else}pisteet{/eq}.",sv:"..variabelns .. punkt, ..variabelns .. Punkt",en:"{series.name}, series {seriesNumber} of {chart.series.length}, scatter plot with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}."},xAxisDescription:{fi:"Toisen X-akselin kuvaus, {name}",sv:"Beskrivning av andra X-axeln, {name}",en:"X axis, {name}"},yAxisDescription:{fi:"Toisen Y-akselin kuvaus, {name}",sv:"Beskrivning av andra Y-axeln, {name}",en:"Y axis, {name}"},endOfChartMarker:{fi:"Kuvion loppu.",sv:"Diagrammets slut.",en:"End of interactive chart."},loading:{fi:"Ladataan...",sv:"Laddar...",en:"Loading..."},chartContainerLabel:{fi:"{title}. Highcharts interactive chart.",sv:"{title}. Highcharts interactive chart.",en:"{title}. Highcharts interactive chart."},toggleTableModeOnText:{fi:"Näytä taulukko",sv:"Visa tabell",en:"View table"},toggleTableModeOffText:{fi:"Näytä kuvio",sv:"Visa figur",en:"View chart"},externalLink:{fi:"Ulkoinen linkki",sv:"Ulkoinen linkki",en:"External link"},quarter:{fi:"vuosineljännes",sv:"kvartal",en:"quarter"},dataMissing:{fi:"Tieto on puuttuva",sv:"Uppgift saknas",en:"Data missing"}},zt={months:{fi:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"],sv:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],en:["January","February","March","April","May","June","July","August","September","October","November","December"]},shortMonths:{fi:["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],sv:["jan.","febr.","mars","april","maj","juni","juli","aug.","sept.","okt.","nov.","dec."],en:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},numericSymbols:{fi:["k","M","G","T","P","E"],sv:["k","M","G","T","P","E"],en:["k","M","G","T","P","E"]},weekdays:{fi:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"],sv:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"],en:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ordinalSuffices:{en:["st.","nd.","rd.","th."]}},Ot=new class{constructor(){this.Translations=void 0,this.ArrayTranslations=void 0,this.GetAllLanguages=()=>Object.keys(this.Translations.empty),this.Translations=Dt,this.ArrayTranslations=zt}AddTranslations(e){for(const t in e.Translations)t in this.Translations&&(this.Translations[t]=v({},this.Translations[t],e.Translations[t]));for(const t in e.ArrayTranslations)t in this.ArrayTranslations&&(this.ArrayTranslations[t]=v({},this.ArrayTranslations[t],e.ArrayTranslations[t]))}},Lt=Ot.Translations,Vt=Ot.ArrayTranslations,It=Ot.GetAllLanguages;function Gt(e){Ot.AddTranslations(e)}const Rt=e=>e.reduce((e,t)=>e.map(e=>t.map(t=>e.concat([t]))).reduce((e,t)=>e.concat(t),[]),[[]]);function Bt(e,t,n){return n.findIndex(t=>JSON.stringify(t)===JSON.stringify(e))===t}function _t(e,t){return function(){var n;const r=[];var a,i;return e.rowVarNames&&e.rowVarNames.length>0&&this.series.name&&r.push(`${null==(a=e.rowVarNames)?void 0:a.map(e=>e[t]).join(", ")}: ${this.series.name}`),e.colVarNames&&e.colVarNames.length>0&&this.point.name&&r.push(`${null==(i=e.colVarNames)?void 0:i.map(e=>e[t]).join(", ")}: ${this.point.name}`),r.push(Jt(e,this,t)),null!=(n=this.point.options.custom)&&n.preliminary&&r.push(Lt.preliminaryData[t]),r.join("<br/>")}}function qt(e,t){return function(n){var r;const a=[];var i,o;return e.rowVarNames&&e.rowVarNames.length>0&&n.series.name&&a.push(`${null==(i=e.rowVarNames)?void 0:i.map(e=>e[t]).join(", ")}: ${Qt(n.series.name,t)}`),e.colVarNames&&e.colVarNames.length>0&&n.name&&a.push(`${null==(o=e.colVarNames)?void 0:o.map(e=>e[t]).join(", ")}: ${Qt(n.name,t)}`),a.push(Jt(e,n,t)),null!=(r=n.options.custom)&&r.preliminary&&a.push(Lt.preliminaryData[t]),a.join(", ")}}function Ft(e){return function(){return this.value.toLocaleString(e)}}const Ht=e=>It().indexOf(e.toLowerCase().trim())>-1?e.toLowerCase().trim():It()[0];function Wt(e=null){const t=e&&e>=15?25:50;return function(){return Ut(this.value,t)}}function Yt(){return function(){return Ut(this.name,200)}}const Ut=(e,t=50)=>{const n=e.toString().length;return`${e.toString().slice(0,t).trim()}${n>t?"...":""}`};function Zt(e,t){return function(n){var r,a;const i=e.series[1].rowNameGroup.map(e=>e[t]).join(", "),o=e.series[0].rowNameGroup.map(e=>e[t]).join(", "),s=null==(r=e.colVarNames)?void 0:r.map(e=>e[t]).join(", ");let l="";return i&&i.length>0&&n.series.name&&(l+=`${i}: ${Qt(n.x.toLocaleString(t),t)}, `),o&&o.length>0&&(l+=`${o}: ${n.y&&Qt(n.y.toLocaleString(t),t)}, `),s&&s.length>0&&e.columnNameGroups&&e.columnNameGroups.length>0&&(l+=`${s}: ${Qt(e.columnNameGroups[n.index].map(e=>e[t]).join(", "),t)}`),null!=(a=n.options.custom)&&a.preliminary&&(l+=`, ${Lt.preliminaryData[t]}`),l}}function Xt(e,t){return function(){var n,r;const a=e.series[1].rowNameGroup.map(e=>e[t]).join(", "),i=e.series[0].rowNameGroup.map(e=>e[t]).join(", "),o=null==(n=e.colVarNames)?void 0:n.map(e=>e[t]).join(", ");let s="";var l;return a&&a.length>0&&this.series.name&&(s+=`${a}: ${this.point.x.toLocaleString(t)}<br />`),i&&i.length>0&&this.key&&(s+=`${i}: ${null==(l=this.point.y)?void 0:l.toLocaleString(t)}<br />`),o&&o.length>0&&e.columnNameGroups&&e.columnNameGroups.length>0&&(s+=`${o}: ${e.columnNameGroups[this.point.index].map(e=>e[t]).join(", ")}`),null!=(r=this.point.options.custom)&&r.preliminary&&(s+=`<br />${Lt.preliminaryData[t]}`),s}}function Kt(e,t){const n=e.map(e=>e.unit).filter(Bt);if(1===n.length)return n[0][t];if(n.length>1)return e.map(e=>`${e.name[t]}: ${e.unit[t]}`).join(", ");throw new Error("Missing required unit data")}function Jt(e,t,n){return e.visualizationSettings.visualizationType===$t.PyramidChart?Math.abs(t.y).toLocaleString(n):e.visualizationSettings.visualizationType==$t.PercentHorizontalBarChart||e.visualizationSettings.visualizationType==$t.PercentVerticalBarChart?`${null==(r=t.percentage)?void 0:r.toFixed(1)} (${null==(a=t.y)?void 0:a.toLocaleString(n)} ${Kt(e.units,n)})`:null!=(i=null==(o=t.y)?void 0:o.toLocaleString(n))?i:"";var r,a,i,o}function Qt(e,t){if(/^\d{4}[M,Q]\d{1,2}\*?$/.test(e)){const n=e.split("*")[0],r=/^\d{4}Q\d{1,2}$/;if(/^\d{4}M\d{1,2}$/.test(n)){const e=n.split("M");return`${e[0]} ${Vt.months[t][Number(e[1])-1]}`}if(r.test(n)){const e=n.split("Q");return`${e[0]} ${function(e,t){const n=Vt.ordinalSuffices[t],r=parseInt(e)-1;return null!=n&&n[r]?`${e}${n[r]}`:`${e}.`}(e[1],t)} ${Lt.quarter[t]}`}console.log("Unsupported time pattern")}return e}const en=(e,t,n,r=!1)=>e.series.map((a,i)=>({index:r?e.series.length-1-i:i,animation:!1,type:t,name:a.rowNameGroup.map(e=>e[n]).join(", "),data:a.series.map((t,r)=>({y:t.value,name:e.columnNameGroups[r].map(e=>e[n]).join(", "),custom:{preliminary:t.preliminary}}))})),tn=1.5,nn=3,rn=8,an=.5;function on(e,t,n){return function(){const r=function(e,t,n,r=new s(0)){var a;if(e.greaterThan(t))throw new Error("dataMinValue must me smaller or equal than dataMaxValue");if((e.lessThan(0)&&t.greaterThan(0)?t.minus(e):s.max(e.abs(),t.abs())).div(n).lessThanOrEqualTo(r))return r;const i=(e=>{const t=Array.from({length:n},(e,t)=>n-t).reduce((t,n)=>{const a=function(e){if(e.equals(0))return new s(0);const t=s.pow(10,s.log10(e).floor());return e.div(t).lessThan(tn)?t.div(10).mul(e.div(t.div(10)).ceil()):e.div(t).lessThan(nn)?e.mul(2).div(t).ceil().mul(t).div(2):e.div(t).lessThan(rn)?e.div(t).ceil().mul(t):e.div(t.mul(10)).ceil().mul(10).mul(t)}(e.div(n));return a.greaterThanOrEqualTo(r)&&t.push([(i=a,i.equals(0)?0:i.isInteger()?function(e){let t=0,n=5;for(;t<50&&e.mod(n).equals(0)&&(t++,n*=2,e.mod(n).equals(0));)t++,n*=5;return t}(i):function(e){const t=e.toString();if(t.includes("e-")){const e=t.split("e-"),n=Number.parseInt(e[1]);return e[0].endsWith("5")?-2*n+1:-2*n}{const e=t.split(".")[1];return e.endsWith("5")?-2*e.length+1:-2*e.length}}(i)),a]),t;var i},[]).sort(([e,t],[n,r])=>n-e);return t.slice(0,Math.max(2,Math.ceil(t.length*an))).sort(([e,t],[n,r])=>t.minus(r).toNumber())})(s.max(e.abs(),t.abs()));return e.lessThan(0)&&t.greaterThan(0)?null!=(a=i.map(([e,t])=>t).find(r=>e.abs().div(r).ceil().plus(t.div(r).ceil()).lessThanOrEqualTo(n)))?a:new s(NaN):i[0][1]}(e,t,(n=>{const r=s.pow(10,s.log10(s.max(e.abs(),t.abs())).floor()),a=Math.ceil(n/(12*(r.toString().length+(e.isNeg()?1:0))+25)-1);return Math.max(a,e.isNegative()&&t.isPositive()?2:1)})(this.chart.plotWidth),n),a=e.greaterThanOrEqualTo(0)?new s(0):e.div(r).floor().mul(r),i=t.lessThanOrEqualTo(0)?new s(0):t.div(r).ceil().mul(r);return Array.from({length:i.minus(a).div(r).plus(1).toNumber()},(e,t)=>r.mul(t).plus(a).toNumber())}}function sn(e){let t=null,n=null,r=0;return e.forEach(e=>{e.forEach(e=>{e.value&&(!t||e.value<t)&&(t=e.value),e.value&&(!n||e.value>n)&&(n=e.value),e.precision>r&&(r=e.precision)})}),t&&n?on(new s(t),new s(n),new s(Math.pow(10,-r))):()=>[]}function ln(e){let t=null,n=null,r=0;return e[0].forEach((a,i)=>{const o=e.reduce((e,t)=>{var n;return e+(null!=(n=t[i].value)?n:0)},0);o&&(!t||o<t)&&(t=o),o&&(!n||o>n)&&(n=o),a.precision>r&&(r=a.precision)}),t&&n?on(new s(t),new s(n),new s(Math.pow(10,-r))):()=>[]}const cn=e=>({accessibility:{keyboardNavigation:{seriesNavigation:{mode:"serialize"}}},responsive:{rules:[{condition:{maxHeight:600},chartOptions:{chart:{height:600}}}]},exporting:{enabled:!1,fallbackToExportServer:!1},lang:{accessibility:{thousandsSep:Lt.thousandsSepAccessibility[e],credits:Lt.credits[e],chartTypes:{barMultiple:Lt.barMultiple[e],barSingle:Lt.barSingle[e],columnMultiple:Lt.columnMultiple[e],columnSingle:Lt.columnSingle[e],lineSingle:Lt.lineSingle[e],lineMultiple:Lt.lineMultiple[e],pieSingle:Lt.pieSingle[e],scatterSingle:Lt.scatterSingle[e],scatterMultiple:Lt.scatterMultiple[e],defaultSingle:Lt.defaultSingle[e],defaultMultiple:Lt.defaultMultiple[e]},defaultChartTitle:Lt.defaultChartTitle[e],exporting:{chartMenuLabel:Lt.chartMenuLabel[e],menuButtonLabel:Lt.menuButtonLabel[e]},legend:{legendItem:Lt.legendItem[e],legendLabel:Lt.legendLabel[e],legendLabelNoTitle:Lt.legendLabelNoTitle[e]},axis:{rangeCategories:Lt.rangeCategories[e],rangeFromTo:Lt.rangeFromTo[e],timeRangeDays:Lt.timeRangeDays[e],timeRangeHours:Lt.timeRangeHours[e],timeRangeMinutes:Lt.timeRangeMinutes[e],timeRangeSeconds:Lt.timeRangeSeconds[e],xAxisDescriptionPlural:Lt.xAxisDescriptionPlural[e],xAxisDescriptionSingular:Lt.xAxisDescriptionSingular[e],yAxisDescriptionPlural:Lt.yAxisDescriptionPlural[e],yAxisDescriptionSingular:Lt.yAxisDescriptionSingular[e]},series:{summary:{bar:Lt.seriesSummaryBar[e],barCombination:Lt.seriesSummaryBarCombination[e],column:Lt.seriesSummaryColumn[e],columnCombination:Lt.seriesSummaryColumnCombination[e],default:Lt.seriesSummaryDefault[e],defaultCombination:Lt.seriesSummaryDefaultCombination[e],line:Lt.seriesSummaryLine[e],lineCombination:Lt.seriesSummaryLineCombination[e],pie:Lt.seriesSummaryPie[e],pieCombination:Lt.seriesSummaryPieCombination[e],scatter:Lt.seriesSummaryScatter[e],scatterCombination:Lt.seriesSummaryScatterCombination[e]},xAxisDescription:Lt.xAxisDescription[e],yAxisDescription:Lt.yAxisDescription[e]},screenReaderSection:{endOfChartMarker:Lt.endOfChartMarker[e]},chartContainerLabel:Lt.chartContainerLabel[e]},thousandsSep:Lt.thousandsSep[e],decimalPoint:Lt.decimalPoint[e],contextButtonTitle:Lt.contextButtonTitle[e],downloadCSV:Lt.downloadCSV[e],downloadPNG:Lt.downloadPNG[e],downloadSVG:Lt.downloadSVG[e],months:Vt.months[e],shortMonths:Vt.shortMonths[e],weekdays:Vt.weekdays[e],loading:Lt.loading[e],numericSymbols:null},colors:["#1a56ec","#f2644c","#1b3160","#9c8d87","#26625d","#7791e8","#8c1131","#878eaf","#c73268","#288c72"],chart:{style:{fontFamily:'"Barlow Semi Condensed", Verdana, sans-serif'},spacingBottom:30,spacingLeft:20,height:"56.25%"},tooltip:{enabled:!0,headerFormat:"{point.key}<br/>",pointFormat:"{point.y}",backgroundColor:"#ffffff",outside:!0,style:{color:"#000",fontSize:"1rem",fontWeight:"400"}},title:{style:{color:"#000",fontSize:"1.25rem",fontWeight:"500",textAlign:"left"},align:"left",margin:45},subtitle:{style:{color:"#000",fontSize:"1.25rem",fontWeight:"400"},align:"left"},credits:{position:{align:"left",x:5},style:{color:"#000",fontSize:"1rem",fontWeight:"400",textAlign:"left",cursor:"default"},href:""},yAxis:{title:{style:{color:"#000",fontSize:"1rem",fontWeight:"400",left:0,textAlign:"left",textOverflow:"ellipsis"},align:"high",rotation:0,textAlign:"left",offset:0,y:-15,x:55,reserveSpace:!1},lineColor:"#000",lineWidth:1,gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5,labels:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"},autoRotation:[0],allowOverlap:!1,formatter:Ft(e)}},xAxis:{labels:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"},allowOverlap:!1,autoRotation:[0]},title:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"}},lineColor:"#000",lineWidth:1,crosshair:!0},legend:{enabled:!1,itemStyle:{fontSize:"1rem",fontWeight:"400",color:"#000"},align:"center"},plotOptions:{pie:{dataLabels:{enabled:!0,useHTML:!0,connectorShape:"crookedLine",connectorColor:"#000000",style:{fontSize:"1rem",fontWeight:"400",color:"#000",textOverflow:"crop"}}},column:{groupPadding:.2,pointPadding:.01},bar:{groupPadding:.2,pointPadding:.01},series:{animation:!1}}}),un=(e,t)=>{var n;const r=null==(n=cn(t).tooltip)?void 0:n.style,a={accessibility:{point:{descriptionFormatter:qt(e,t)}},chart:{type:"bar",spacingBottom:60},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},xAxis:{categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),labels:{formatter:Wt(e.columnNameGroups.length),style:{width:200}}},yAxis:{softMin:0,max:100,tickPositioner:sn(e.series.map(e=>e.series)),title:{text:Kt(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0},plotLines:[{value:0,color:"#000",width:1}]},legend:{enabled:!1},series:en(e,"bar",t),credits:{text:`${Lt.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`},tooltip:{formatter:_t(e,t)},plotOptions:{series:{dataLabels:{enabled:e.visualizationSettings.showDataPoints,style:r,useHTML:!0,formatter:function(){const e=this.point;return`<span style="background-color: ${e.updateNeeded?"rgb(255, 255, 255)":"rgba(0, 0, 0, 0)"}; border: 1px solid ${e.updateNeeded?"rgba(0, 0, 0, 1)":"rgba(0, 0, 0, 0)"};">${this.y}</span>`}}}}};return a},mn=(e,t)=>{var n;const r=null==(n=cn(t).tooltip)?void 0:n.style,a={accessibility:{point:{descriptionFormatter:qt(e,t)}},chart:{type:"bar"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},xAxis:{categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),labels:{formatter:Wt(e.columnNameGroups.length),style:{width:200}}},yAxis:{softMin:0,softMax:0,tickPositioner:sn(e.series.map(e=>e.series)),title:{text:Kt(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0},plotLines:[{value:0,color:"#000",width:1}]},legend:{enabled:!0,layout:"vertical",margin:30},series:en(e,"bar",t),credits:{text:`${Lt.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`},tooltip:{formatter:_t(e,t)},plotOptions:{series:{dataLabels:{enabled:e.visualizationSettings.showDataPoints,style:r,useHTML:!0,formatter:function(){const e=this.point;return`<span style="background-color: ${e.updateNeeded?"rgb(255, 255, 255)":"rgba(0, 0, 0, 0)"}; border: 1px solid ${e.updateNeeded?"rgba(0, 0, 0, 1)":"rgba(0, 0, 0, 0)"};">${this.y}</span>`}}}}};return a};var dn;!function(e){e[e.Time=0]="Time",e[e.Ordinal=1]="Ordinal",e[e.Nominal=2]="Nominal"}(dn||(dn={}));const pn=(e,t)=>{return{type:"category",categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),ordinal:!0,tickPositioner:(n=Math.max(...e.series.map(e=>e.series.length)),r=Math.max(...e.columnNameGroups.map(e=>e.reduce((e,n)=>(e>0?1:0)+e+n[t].length,0))),function(){const e=Math.ceil(n*r*10/this.chart.plotWidth),t=Math.ceil(n/e);return Array.from({length:t},(t,n)=>n*e)})};var n,r};function hn(e,t){if(t){const n=new Date(t);switch(e){case jt.Irregular:case jt.Week:return;case jt.Month:return{pointStart:n.getTime(),pointIntervalUnit:"month"};case jt.Quarter:case jt.HalfYear:return;case jt.Year:return{pointStart:n.getTime(),pointIntervalUnit:"year"}}}}function fn(e,t){if(e.seriesType!==dn.Time)return e.seriesType===dn.Ordinal?pn(e,t):{type:"category",categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),labels:{autoRotation:[-45]}};switch(e.visualizationSettings.timeVariableIntervals){case jt.Week:return gn(e,t);case jt.Month:return vn();case jt.Quarter:return yn(e,t);case jt.HalfYear:return bn(e,t);case jt.Year:return{type:"datetime"};default:return{type:"category",categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", "))}}}const gn=(e,t)=>({type:"linear",ordinal:!1,labels:{formatter:function(){return e.columnNameGroups[Number(this.value)].map(e=>e[t]).join(", ")}}}),vn=(e,t)=>({type:"datetime",ordinal:!1,labels:{formatter:function(){return c.dateFormat("%YM%m",Number(this.value))}}}),yn=(e,t)=>{var n,r,a;return{type:"linear",ordinal:!1,labels:{formatter:function(){return Number.isInteger(this.value)?e.columnNameGroups[Number(this.value)].map(e=>e[t]).join(", "):""}},tickPositioner:(r=Math.max(...e.series.map(e=>e.series.length)),a=new Date(null!=(n=e.visualizationSettings.timeSeriesStartingPoint)?n:""),function(){const e=function(e){return e<=2?Math.ceil(e):e<=4?4:e<=20?4*Math.ceil(e/4):e<=40?20*Math.ceil(e/20):40*Math.ceil(e/40)}(60*r/this.chart.plotWidth),t=function(e,t){const n=(4*t.getFullYear()+Math.floor(t.getMonth()/3))%e;return n>0?e-n:0}(e,a),n=Math.ceil((r-t)/e);return Array.from({length:n},(n,r)=>t+r*e)})}},bn=(e,t)=>{var n,r,a;return{type:"linear",ordinal:!1,labels:{formatter:function(){return Number.isInteger(this.value)?e.columnNameGroups[Number(this.value)].map(e=>e[t]).join(", "):""}},tickPositioner:(r=Math.max(...e.series.map(e=>e.series.length)),a=new Date(null!=(n=e.visualizationSettings.timeSeriesStartingPoint)?n:""),function(){const e=function(e){return e<=2?Math.ceil(e):e<=10?2*Math.ceil(e/2):e<=20?10*Math.ceil(e/10):20*Math.ceil(e/20)}(60*r/this.chart.plotWidth),t=function(e,t){const n=(2*t.getFullYear()+Math.floor(t.getMonth()/6))%e;return n>0?e-n:0}(e,a),n=Math.ceil((r-t)/e);return Array.from({length:n},(n,r)=>t+r*e)})}},wn=(e,t)=>{var n;const r=null==(n=cn(t).tooltip)?void 0:n.style;return{accessibility:{point:{descriptionFormatter:qt(e,t)}},chart:{type:"column"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},xAxis:fn(e,t),yAxis:{softMin:0,softMax:0,title:{text:Kt(e.units,t)},plotLines:[{value:0,color:"#000",width:1}]},plotOptions:{series:v({},hn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:{enabled:e.visualizationSettings.showDataPoints,style:r,useHTML:!0,formatter:function(){const e=this.point;return`<span style="background-color: ${e.updateNeeded?"rgb(255, 255, 255)":"rgba(0, 0, 0, 0)"}; border: 1px solid ${e.updateNeeded?"rgba(0, 0, 0, 1)":"rgba(0, 0, 0, 0)"};">${this.y}</span>`}}})},credits:{text:`${Lt.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`},series:en(e,"column",t),tooltip:{formatter:_t(e,t)},exporting:{enabled:!1}}},Sn=(e,t)=>{var n;const r=null==(n=cn(t).tooltip)?void 0:n.style;return{accessibility:{point:{descriptionFormatter:qt(e,t)}},chart:{type:"column"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},xAxis:fn(e,t),yAxis:{softMin:0,softMax:0,title:{text:Kt(e.units,t)},plotLines:[{value:0,color:"#000",width:1}]},plotOptions:{series:v({},hn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:{enabled:e.visualizationSettings.showDataPoints,style:r,useHTML:!0,formatter:function(){const e=this.point;return`<span style="background-color: ${e.updateNeeded?"rgb(255, 255, 255)":"rgba(0, 0, 0, 0)"}; border: 1px solid ${e.updateNeeded?"rgba(0, 0, 0, 1)":"rgba(0, 0, 0, 0)"};">${this.y}</span>`}}})},legend:{enabled:!0,labelFormatter:Yt()},series:en(e,"column",t),credits:{text:`${Lt.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`},tooltip:{formatter:_t(e,t)}}},xn=(e,t)=>{var n,r;return{accessibility:{point:{descriptionFormatter:qt(e,t)}},chart:{type:"pie"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},plotOptions:{pie:{dataLabels:{formatter:(r=null!=(n=e.visualizationSettings.showDataPoints)&&n,function(){const e=r?` (${Math.round(this.percentage)}%)`:"";return Ut(this.point.name,20)+e})}}},tooltip:{formatter:_t(e,t)},series:e.series.map(n=>({animation:!1,type:"pie",name:n.rowNameGroup.map(e=>e[t]).join(", "),data:n.series.map((n,r)=>({y:n.value,name:e.columnNameGroups[r].map(e=>e[t]).join(", "),unit:Kt(e.units,t),custom:{preliminary:n.preliminary}}))})),credits:{text:`${Lt.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`}}},kn=(e,t)=>{var n;const r=null==(n=cn(t).tooltip)?void 0:n.style;return{accessibility:{point:{descriptionFormatter:qt(e,t)}},chart:{type:"column"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},xAxis:fn(e,t),yAxis:{softMin:0,softMax:0,title:{text:Kt(e.units,t)},plotLines:[{value:0,color:"#000",width:1}]},plotOptions:{column:{stacking:"normal",dataLabels:{enabled:e.visualizationSettings.showDataPoints,style:r,useHTML:!0,formatter:function(){return`<span style="background-color: rgb(255, 255, 255); border: 1px solid rgba(0, 0, 0, 1);">${this.y}</span>`}}},series:hn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)},legend:{enabled:!0,layout:"vertical"},series:en(e,"column",t,!0),credits:{text:`${Lt.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`},tooltip:{formatter:_t(e,t)}}},Cn=(e,t)=>{var n;const r=null==(n=cn(t).tooltip)?void 0:n.style;return{accessibility:{point:{descriptionFormatter:qt(e,t)}},chart:{type:"bar"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},xAxis:{categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),labels:{formatter:Wt(e.columnNameGroups.length),style:{width:200}}},yAxis:{softMin:0,softMax:0,tickPositioner:ln(e.series.map(e=>e.series)),title:{text:Kt(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0},plotLines:[{value:0,color:"#000",width:1}]},plotOptions:{bar:{stacking:"normal",dataLabels:{enabled:e.visualizationSettings.showDataPoints,style:r,useHTML:!0,formatter:function(){return`<span style="background-color: rgb(255, 255, 255); border: 1px solid rgba(0, 0, 0, 1);">${this.y}</span>`}}}},legend:{enabled:!0,layout:"horizontal",reversed:!0,margin:30},series:en(e,"bar",t,!0),credits:{text:`${Lt.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`},tooltip:{formatter:_t(e,t)}}},An=(e,t)=>{var n;const r=null==(n=cn(t).tooltip)?void 0:n.style;return{accessibility:{point:{descriptionFormatter:qt(e,t)}},chart:{type:"column"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},xAxis:fn(e,t),yAxis:{min:0,title:{text:"%"},plotLines:[{value:0,color:"#000",width:1}]},plotOptions:{column:{stacking:"percent",dataLabels:{enabled:e.visualizationSettings.showDataPoints,style:r,useHTML:!0,formatter:function(){return`<span style="background-color: rgb(255, 255, 255); border: 1px solid rgba(0, 0, 0, 1);">${this.y}</span>`}}},series:hn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)},legend:{enabled:!0,layout:"vertical"},series:en(e,"column",t,!0),credits:{text:`${Lt.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`},tooltip:{formatter:_t(e,t)}}},Nn=(e,t)=>{var n;const r=null==(n=cn(t).tooltip)?void 0:n.style,a={accessibility:{point:{descriptionFormatter:qt(e,t)}},chart:{type:"bar"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},xAxis:{categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),labels:{formatter:Wt(e.columnNameGroups.length),style:{width:200}}},yAxis:{min:0,title:{text:"%",style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0},plotLines:[{value:0,color:"#000",width:1}]},plotOptions:{bar:{stacking:"percent",dataLabels:{enabled:e.visualizationSettings.showDataPoints,style:r,useHTML:!0,formatter:function(){return`<span style="background-color: rgb(255, 255, 255); border: 1px solid rgba(0, 0, 0, 1);">${this.y}</span>`}}}},legend:{enabled:!0,layout:"horizontal",reversed:!0,margin:30},series:en(e,"bar",t,!0),credits:{text:`${Lt.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`},tooltip:{formatter:_t(e,t)}};return a},En=(e,t)=>{var n;const r=e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),a=Math.max(...e.series.map(e=>Math.max(...e.series.map(e=>{var t;return null!=(t=e.value)?t:0})))),i=null==(n=cn(t).tooltip)?void 0:n.style;return{accessibility:{point:{descriptionFormatter:qt(e,t)}},chart:{type:"bar"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},xAxis:{categories:r,reversed:!1,labels:{style:{width:200}}},yAxis:{min:-Math.abs(a),max:Math.abs(a),title:{text:Kt(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0},labels:{formatter:function(){return Math.abs(this.value).toLocaleString(t)}},plotLines:[{value:0,color:"#000",width:1}]},legend:{enabled:!0,margin:30},series:e.series.map((n,r)=>({animation:!1,type:"bar",name:n.rowNameGroup.map(e=>e[t]).join(", "),data:n.series.map((n,a)=>({y:0===r&&n.value?-n.value:n.value,name:e.columnNameGroups[a].map(e=>e[t]).join(", "),custom:{preliminary:n.preliminary}}))})),credits:{text:`${Lt.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`},plotOptions:{series:{stacking:"normal",dataLabels:{enabled:e.visualizationSettings.showDataPoints,style:i,useHTML:!0,formatter:function(){return`<span style="background-color: rgb(255, 255, 255); border: 1px solid rgba(0, 0, 0, 1);">${this.y}</span>`}}}},tooltip:{formatter:_t(e,t)},exporting:{enabled:!1}}},Pn=(e,t)=>`\n ${e[1].rowNameGroup.map(e=>e[t]).join(", ")}: {point.x}<br/>\n ${e[0].rowNameGroup.map(e=>e[t]).join(", ")}: {point.y}\n `,$n=(e,t)=>{switch(t.visualizationSettings.visualizationType){case $t.LineChart:return((e,t)=>{var n,r;const a=null==(n=cn(t).tooltip)?void 0:n.style,i=null!=(r=e.visualizationSettings)&&r.cutValueAxis?void 0:0;return{accessibility:{point:{descriptionFormatter:qt(e,t)}},chart:{type:"line"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},xAxis:v({},fn(e,t),{gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5}),yAxis:{softMin:i,softMax:i,title:{text:Kt(e.units,t)},plotLines:[{value:0,color:"#000",width:1}]},tooltip:{formatter:_t(e,t)},plotOptions:{line:{dataLabels:{enabled:e.visualizationSettings.showDataPoints,format:"{point.y}",style:a},marker:{enabled:!1}},series:hn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)},legend:{enabled:e.series.length>1,labelFormatter:Yt()},credits:{text:`${Lt.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`},series:en(e,"line",t),exporting:{enabled:!1}}})(t,e);case $t.VerticalBarChart:return wn(t,e);case $t.HorizontalBarChart:return un(t,e);case $t.GroupVerticalBarChart:return Sn(t,e);case $t.GroupHorizontalBarChart:return mn(t,e);case $t.StackedVerticalBarChart:return kn(t,e);case $t.StackedHorizontalBarChart:return Cn(t,e);case $t.PercentVerticalBarChart:return An(t,e);case $t.PercentHorizontalBarChart:return Nn(t,e);case $t.PieChart:return xn(t,e);case $t.PyramidChart:return En(t,e);case $t.ScatterPlot:return((e,t)=>{var n;const r=null!=(n=e.visualizationSettings)&&n.cutValueAxis?void 0:0;return{accessibility:{point:{descriptionFormatter:Zt(e,t)}},chart:{type:"scatter"},title:{text:e.header[t]},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},xAxis:{softMin:0,softMax:0,title:{text:e.series[1].rowNameGroup.map(e=>e[t]).join(", ")},gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5,plotLines:[{value:0,color:"#000",width:1}]},yAxis:{softMin:r,softMax:r,title:{text:e.series[0].rowNameGroup.map(e=>e[t]).join(", ")},plotLines:[{value:0,color:"#000",width:1}]},credits:{text:`${Lt.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`},series:[{animation:!1,type:"scatter",data:e.series[0].series.map((t,n)=>{var r,a;return{x:null!=(r=e.series[1].series[n].value)?r:void 0,y:null!=(a=e.series[0].series[n].value)?a:void 0,marker:{symbol:"circle"},custom:{preliminary:e.series[1].series[n].preliminary||e.series[0].series[n].preliminary}}})}],tooltip:{headerFormat:"",pointFormat:Pn(e.series,t),formatter:Xt(e,t)},plotOptions:{scatter:{marker:{radius:5*(e.visualizationSettings.markerSize?.01*e.visualizationSettings.markerSize:1)}}},exporting:{enabled:!1}}})(t,e);default:throw new Error("Unsupported chart type")}},Tn=(e,t,n,r)=>{if(0===e.length)return{};let a=e,i={};if(r){const{parsedValues:e,updatedArray:t}=jn(a,r);if(a=t,i=v({},i,e),0===a.length)return i}if(n){const{parsedValues:e,updatedArray:t}=Mn(a,n);if(a=t,i=v({},i,e),0===a.length)return i}return a.forEach(e=>{const n=t.findIndex(t=>t.code===e);n>-1&&(i[e]=t[n].type===Tt.Time?[t[n].values[t[n].values.length-1].code]:[t[n].values[0].code])}),i},jn=(e,t)=>{const n=Object.keys(t),r={},a=e.map(e=>n.findIndex(t=>t===e)>-1&&t[e].length>0?(r[e]=t[e],""):e).filter(e=>e.length>0);return{parsedValues:r,updatedArray:a}},Mn=(e,t)=>{const n=Object.keys(t),r={},a=e.map(e=>{const a=n.findIndex(t=>t===e);return a>-1?(r[e]=t[n[a]],""):e}).filter(e=>e.length>0);return{parsedValues:r,updatedArray:a}},Dn=(e,t)=>{var n,r;return(null!=(n=e.value)?n:0)-(null!=(r=t.value)?r:0)},zn=(e,t)=>{var n,r;return(null!=(n=t.value)?n:0)-(null!=(r=e.value)?r:0)};function On(e,t,n){return Vn(Ln(e,e.series[t].series,n),t)}function Ln(e,t,n){const r=function(e,t){const n=[...Array(e.length).keys()];return n.sort((n,r)=>t(e[n],e[r])),n}(t,n),a=r.map(t=>e.columnNameGroups[t]),i=e.series.map(e=>function(e,t){return v({},e,{series:t.map(t=>e.series[t])})}(e,r));return v({},e,{columnNameGroups:a,series:i})}function Vn(e,t){const n=[];return n.push(e.series[t]),e.series.forEach((e,r)=>{r!==t&&n.push(e)}),v({},e,{series:n})}function In(e,t){var n,r,a,i;const o=null!=(n=e.visualizationSettings)&&n.multiselectableVariableCode?function(e,t){var n,r;const a=null!=(n=null==(r=e.visualizationSettings)?void 0:r.multiselectableVariableCode)?n:"",i=Rn(t),o=Zn(t),s=t[a].map(t=>{var n,r;const s=Bn(e,v({},o,{[a]:t}),i);return function(e,t){return v({},t,{series:t.series.map(t=>v({},t,{rowNameGroup:[e].concat(t.rowNameGroup)}))})}(null!=(n=null==(r=e.metaData.find(e=>e.code===a))||null==(r=r.values.find(e=>e.code===t))?void 0:r.name)?n:Lt.empty,s)});return function(e){return{header:e[0].header,tableReferenceName:e[0].tableReferenceName,subheaderValues:e[0].subheaderValues,units:e.reduce((e,t)=>e.concat(t.units),[]).filter(Bt),sources:e.reduce((e,t)=>e.concat(t.sources),[]).filter(Bt),colVarNames:e[0].colVarNames,rowVarNames:e[0].rowVarNames,selectableVarNames:e[0].selectableVarNames,columnNameGroups:e[0].columnNameGroups,series:e.reduce((e,t)=>e.concat(t.series),[]),visualizationSettings:e[0].visualizationSettings,seriesType:e[0].seriesType}}(s)}(e,t):Bn(e,Zn(t),Rn(t)),s=(null==(r=o.visualizationSettings)?void 0:r.visualizationType)===$t.PercentHorizontalBarChart||(null==(a=o.visualizationSettings)?void 0:a.visualizationType)===$t.PercentVerticalBarChart;switch(null==(i=e.visualizationSettings)?void 0:i.sorting){case null:case void 0:case"no_sorting":return o;case"sum":return function(e,t){const n=e.columnNameGroups.map((t,n)=>({value:e.series.map(e=>e.series[n]).reduce((e,t)=>{var n;return e+(null!=(n=t.value)?n:0)},0),precision:0,preliminary:!1}));return Ln(e,n,t)}(o,zn);case"ascending":return On(o,0,Dn);case"descending":return On(o,0,zn);default:return s?(l=o,c=Gn(o),u=Fn(e),Vn(Ln(l,c.series[u].series,zn),u)):On(o,Fn(e),zn)}var l,c,u}function Gn(e){const t=e.series.map(t=>v({},t,{series:t.series.map((t,n)=>{var r;const a=e.series.reduce((e,t)=>{var r;return e+(null!=(r=t.series[n].value)?r:0)},0),i=a&&0!==a?Math.round(100*(null!=(r=t.value)?r:0)/a*10)/10:null,o={value:i,precision:1,preliminary:t.preliminary};return null===i&&(o.missingCode=t.missingCode),o})}));return v({},e,{units:e.units.map(e=>{return{name:e.name,unit:(t=e.unit,Object.keys(t).reduce((e,t)=>(e[t]="%",e),{}))};var t}),series:t})}function Rn(e){const t={};return Object.entries(e).forEach(([e,n])=>t[e]=n.length),t}function Bn(e,t,n){const{metaData:r,selectableVariableCodes:a}=e,i=qn(r,a),o=Hn(r),s=function(e,t){const n=qn(e.metaData,e.selectableVariableCodes),r=e.metaData.filter(t=>e.rowVariableCodes.includes(t.code)).filter(e=>e.values.length>1).map(e=>e.values),a=e.metaData.filter(t=>e.columnVariableCodes.includes(t.code)).filter(e=>e.values.length>1).map(e=>e.values),i=Rt(a),o=Rt(r),s=function(e,t,n){let r=0,a=1;for(let i=e.length-1;i>=0;i--){const o=e[i].values.findIndex(n=>n.code===t[e[i].code]);if(o<0)throw new Error("Provided selected value code can not be found from the metadata");r+=o*n*a,a*=e[i].values.length}return r}(n,t,function(e){const{metaData:t,selectableVariableCodes:n}=e;return t.filter(e=>!n.includes(e.code)).map(e=>e.values.length).reduce((e,t)=>e*t,1)}(e)),l=function(e,t){const n=Hn(e.metaData);var r,a,i,o;return 1===n.values.length?null!=(r=null==(a=n.values[0].contentComponent)?void 0:a.numberOfDecimals)?r:null:e.selectableVariableCodes.includes(n.code)&&e.visualizationSettings.multiselectableVariableCode!==n.code&&null!=(i=null==(o=n.values.find(e=>e.code===t[n.code]))||null==(o=o.contentComponent)?void 0:o.numberOfDecimals)?i:null}(e,t);let c=0;const u=o.map(t=>{var n,r;const a=t.some(e=>Object.values(e.name)[0].trim().endsWith("*")),o=null!=(n=null!=l?l:null==(r=t.find(e=>e.contentComponent))||null==(r=r.contentComponent)?void 0:r.numberOfDecimals)?n:null,u=i.map(t=>{var n,r;const i={value:e.data[s+c],precision:null!=(n=null!=o?o:null==(r=t.find(e=>e.contentComponent))||null==(r=r.contentComponent)?void 0:r.numberOfDecimals)?n:0,preliminary:a||t.some(e=>Object.values(e.name)[0].trim().endsWith("*"))};return i.value||(i.missingCode=e.missingDataInfo[s+c]),c++,i});return{rowNameGroup:t.map(e=>e.name),series:u}});return{columnNameGroups:i.map(e=>e.map(e=>e.name)),series:u}}(e,t);return{header:e.header,tableReferenceName:e.tableReference.name,subheaderValues:Wn(i,t,n),units:Yn(o,t),sources:Un(o,t,e=>{var t;return null!=(t=null==e?void 0:e.source)?t:Lt.empty}),columnNameGroups:s.columnNameGroups,series:s.series,colVarNames:_n(e.columnVariableCodes,e.metaData),rowVarNames:_n(e.rowVariableCodes,e.metaData),selectableVarNames:_n(e.selectableVariableCodes,e.metaData),visualizationSettings:e.visualizationSettings,seriesType:Xn(e.columnVariableCodes,e.metaData)}}function _n(e,t){return e.reduce((e,n)=>{var r;const a=null==(r=t.find(e=>e.code===n))?void 0:r.name;return a&&e.push(a),e},[])}function qn(e,t){return e.filter(e=>t.includes(e.code))}function Fn(e){const t=e.metaData.find(t=>t.code==e.rowVariableCodes[0]),n=null==t?void 0:t.values.findIndex(t=>{var n;return t.code===(null==(n=e.visualizationSettings)?void 0:n.sorting)});return!n||n<0?0:n}function Hn(e){const t=e.find(e=>e.type===Tt.Content);if(t)return t;throw new Error("Content variable is not defined")}function Wn(e,t,n){const r=[];return e.forEach(e=>{var a,i;1==n[e.code]&&r.push(null!=(a=null==(i=e.values.find(n=>n.code===t[e.code]))?void 0:i.name)?a:{})}),r}function Yn(e,t){const n=e.code in t?e.values.filter(n=>t[e.code]===n.code):e.values;return n.reduce((e,t)=>(t.contentComponent&&e.push({name:t.name,unit:t.contentComponent.unit}),e),[])}function Un(e,t,n){return e.code in t?e.values.filter(n=>t[e.code]===n.code).map(e=>n(e.contentComponent)).filter(Bt):e.values.map(e=>n(e.contentComponent)).filter(Bt)}function Zn(e){const t={};return Object.entries(e).forEach(([e,n])=>t[e]=n[0]),t}function Xn(e,t){var n;if(e.length>1||0===e.length)return dn.Nominal;const r=null==(n=t.find(t=>t.code===e[0]))?void 0:n.type;switch(r){case Tt.Time:return dn.Time;case Tt.Ordinal:return dn.Ordinal;default:return dn.Nominal}}const Kn=(e,t,n,r=null)=>{const a=Ht(n);"object"==typeof l&&(u(l),m(l),d(l),p(l)),l.setOptions(cn(a));const i=In(t,Tn(t.selectableVariableCodes,t.metaData,t.visualizationSettings.defaultSelectableVariableCodes,r)),o=$n(a,i);return l.chart(e,o)},Jn=["",".","..","...","....",".....","......","-"];function Qn(e,t,n=!1){if(null==e.value)throw new Error("Can not produce a localized numeric formatting for missing data");return new Intl.NumberFormat(t,{maximumFractionDigits:e.precision,minimumFractionDigits:e.precision,useGrouping:n}).format(e.value)}function er(e,t,n=!1){if(e)return n?Lt.dataMissing[t]:Jn[e];throw new Error("Invalid missing code. Can not generate table presentation")}function tr(e,t,n,r,a,i,o){const s=document.getElementById(i);if(!s)throw new Error("No container with matching id found in the DOM tree");try{if(n){const n=document.createElement("span");if(n.classList.add("title"),n.append(e.header[t]),s.append(n),e.subheaderValues.length>0){const n=document.createElement("span");n.classList.add("subtitle"),n.append(e.subheaderValues.map(e=>e[t]).join(" | ")),s.append(n)}}const i=function(e,t){var n,r;const a=null!=(n=e.columnNameGroups[0].length)?n:0,i=null!=(r=e.series[0].rowNameGroup.length)?r:0,o=document.createElement("table");if(a>0){const n=function(e,t){const n=ar(e),r=[];for(let a=0;a<e[0].length;a++){const i=document.createElement("tr");for(let r=0;r<e.length;r+=n[a]){const o=document.createElement("th");o.setAttribute("colSpan",n[a].toString()),o.setAttribute("scope","col"),o.textContent=e[r][a][t],i.append(o)}r.push(i)}return r}(e.columnNameGroups,t);if(i>0){const e=document.createElement("td");e.setAttribute("colSpan",i.toString()),e.setAttribute("rowSpan",a.toString()),n[0].prepend(e)}const r=document.createElement("thead");r.append(...n),o.append(r)}if(e.series.length>0){const n=document.createElement("tbody");n.append(...function(e,t){const n=[],r=rr(e);for(let a=0;a<e.length;a++){const i=document.createElement("tr");for(let n=0;n<e[a].rowNameGroup.length;n++)if(a%r[n]==0){const o=document.createElement("th");o.setAttribute("rowSpan",r[n].toString()),o.setAttribute("scope","row"),o.textContent=e[a].rowNameGroup[n][t],i.append(o)}for(const n of e[a].series){const e=document.createElement("td");e.textContent=null===n.value?er(n.missingCode,t,!0):Qn(n,t,!0),i.append(e)}n.push(i)}return n}(e.series,t)),o.append(n)}return o}(e,t);if(s.append(i),r){const n=document.createElement("p"),r=Kt(e.units,t);n.append(`${Lt.unit[t]}: ${r}`),s.append(n)}if(a){const n=document.createElement("p"),r=`${Lt.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`;n.append(r),s.append(n)}if(o){const e=document.createElement("p");e.append(o),s.append(e)}}catch(e){console.error(e),s.replaceChildren();const n=document.createElement("h1");n.append(Lt.graphCreationError[t]),s.append(n)}}const nr=(e,t)=>Object.keys(e).every(n=>e[n]==t[n]),rr=e=>{if(!e[0].rowNameGroup||0===e[0].rowNameGroup.length)return[];const t=Array(e[0].rowNameGroup.length).fill(1);for(let n=0;n<e[0].rowNameGroup.length;n++)for(let r=0;r<e.length-1&&nr(e[r].rowNameGroup[n],e[r+1].rowNameGroup[n]);r++)t[n]++;return t},ar=e=>{if(!e||0===e.length)return[];const t=Array(e[0].length).fill(1);for(let n=0;n<e[0].length;n++)for(let r=0;r<e.length-1&&nr(e[r][n],e[r+1][n]);r++)t[n]++;return t};var ir;!function(e){e[e.Csv=0]="Csv",e[e.Excel=1]="Excel"}(ir||(ir={}));const or=(e,t)=>t===ir.Csv?new Blob(["\ufeff",e],{type:"text/csv;charset=utf-8;"}):new Blob([sr(e)],{type:"application/octet-stream"}),sr=e=>{const t=new ArrayBuffer(e.length);let n=new Uint8Array(t);for(let t=0;t<e.length;t++)n[t]=255&e.charCodeAt(t);return t},lr=e=>{const t=e?e.split(".")[0]:"",n=new Date;return`${t}_${n.getFullYear()}${(n.getMonth()+1).toString().padStart(2,"0")}${n.getDate().toString().padStart(2,"0")}_${n.getHours().toString().padStart(2,"0")}${n.getMinutes().toString().padStart(2,"0")}${n.getSeconds().toString().padStart(2,"0")}`},cr=(e,t)=>{var n,r,a,i,o,s,l,c;((null==(n=e.visualizationSettings)?void 0:n.visualizationType)===$t.PercentHorizontalBarChart||(null==(r=e.visualizationSettings)?void 0:r.visualizationType)===$t.PercentVerticalBarChart)&&(e=Gn(e));const u=null!=(a=null==(i=e.columnNameGroups[0])?void 0:i.length)?a:0,m=null!=(o=null==(s=e.series[0])?void 0:s.rowNameGroup.length)?o:0,d=(null!=(l=null==(c=e.series[0])?void 0:c.series.length)?l:0)+m,p=","==Lt.decimalPoint[t]?";":",",h="\n";let f=mr([`"${e.header[t]}"`],0,d,p,h);e.subheaderValues.length>0&&(f+=mr([`"${e.subheaderValues.map(e=>e[t]).join(" | ")}"`],0,d,p,h));for(let n=0;n<u;n++)f+=mr(e.columnNameGroups.map(e=>`"${e[n][t]}"`),m,d,p,h);return e.series.forEach(e=>{let n=[];e.rowNameGroup.length>0&&(n=e.rowNameGroup.map(e=>`"${e[t]}"`)),n=n.concat(e.series.map(e=>null===e.value?er(e.missingCode,t):Qn(e,t))),f+=mr(n,0,d,p,h)}),f+=mr([`"${Lt.unit[t]}: ${Kt(e.units,t)}"`],0,d,p,h),f+=mr([`"${Lt.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}"`],0,d,p),f},ur=(e,t)=>({onClick:()=>{const n=cr(e,t),r=or(n,ir.Csv),a=URL.createObjectURL(r),i=document.createElement("a");i.setAttribute("href",a),i.setAttribute("download",lr(e.tableReferenceName)+".csv"),document.body.appendChild(i),i.click()},text:Lt.downloadCSV[t]});function mr(e,t,n,r,a=""){let i="";for(let a=0;a<n;a++)a>=t&&a<t+e.length&&(i+=e[a-t]),a<n-1&&(i+=r);return i+a}const dr=(e,t)=>{const n=h.utils.book_new(),r=h.utils.aoa_to_sheet(pr(e,t));return h.utils.book_append_sheet(n,r,"Sheet1"),h.write(n,{bookType:"xlsx",type:"binary"})},pr=(e,t)=>{var n,r,a,i,o,s,l,c;((null==(n=e.visualizationSettings)?void 0:n.visualizationType)===$t.PercentHorizontalBarChart||(null==(r=e.visualizationSettings)?void 0:r.visualizationType)===$t.PercentVerticalBarChart)&&(e=Gn(e));const u=null!=(a=null==(i=e.columnNameGroups[0])?void 0:i.length)?a:0,m=null!=(o=null==(s=e.series[0])?void 0:s.rowNameGroup.length)?o:0,d=(null!=(l=null==(c=e.series[0])?void 0:c.series.length)?l:0)+m;let p=[fr([e.header[t]],0,d)];e.subheaderValues.length>0&&p.push(fr([e.subheaderValues.map(e=>e[t]).join(" | ")],0,d));for(let n=0;n<u;n++)p.push(fr(e.columnNameGroups.map(e=>e[n][t]),m,d));return e.series.forEach(e=>{let n=[];e.rowNameGroup.length>0&&(n=e.rowNameGroup.map(e=>e[t])),n=n.concat(e.series.map(e=>null===e.value?er(e.missingCode,t):Qn(e,t))),p.push(fr(n,0,d))}),p.push(fr([`${Lt.unit[t]}: ${Kt(e.units,t)}`],0,d)),p.push(fr([`${Lt.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`],0,d)),p},hr=(e,t)=>({onClick:()=>{const n=dr(e,t),r=or(n,ir.Excel),a=URL.createObjectURL(r),i=document.createElement("a");i.setAttribute("href",a),i.setAttribute("download",lr(e.tableReferenceName)+".xlsx"),document.body.appendChild(i),i.click()},text:Lt.downloadXLSX[t]});function fr(e,t,n){const r=Array(n);for(let a=0;a<n;a++)r[a]=a>=t&&a<t+e.length?e[a-t]:null;return r}const gr=["Bars","Times","Download","ExternalLink","Copy"],vr=({icon:t,inheritColor:n=!1})=>{switch(t){case"Bars":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"39.91mm",height:"29.92mm",viewBox:"0 0 113.12 84.82"},e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m56.51,14.13c-16.33,0-32.67.01-49,0-5.37,0-8.89-4.83-6.99-9.59C1.63,1.76,3.77.26,6.76.01c.22-.02.44,0,.66,0,32.74,0,65.49,0,98.23,0,4.3,0,7.45,2.99,7.47,7.01.02,4.11-3.15,7.1-7.6,7.11-16.33.01-32.67,0-49,0Z"})),e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m56.55,49.47c-16.41,0-32.82.01-49.22,0-3.78,0-6.77-2.56-7.26-6.09-.49-3.53,1.78-6.9,5.35-7.81.77-.2,1.6-.21,2.4-.21,32.52,0,65.04-.01,97.57,0,4.51,0,7.69,2.89,7.74,6.97.04,4.19-3.16,7.14-7.79,7.15-16.26,0-32.52,0-48.78,0Z"})),e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m56.43,84.82c-16.33,0-32.67,0-49,0-3.68,0-6.45-2.17-7.25-5.56-.73-3.09.92-6.54,3.92-7.84,1.04-.45,2.27-.69,3.41-.69,32.74-.04,65.49-.03,98.23-.02,4.27,0,7.41,3.06,7.39,7.09-.02,4.02-3.17,7.02-7.47,7.02-16.41.02-32.82,0-49.22,0Z"})));case"Times":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"26.97mm",height:"26.97mm",viewBox:"0 0 76.44 76.44"},e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m0,38.09C.02,17.02,17.22-.04,38.39,0c21.08.04,38.09,17.21,38.05,38.42-.04,21-17.21,38.04-38.31,38.01C17.04,76.41-.02,59.26,0,38.09ZM38.25,5.95c-17.86-.02-32.27,14.33-32.31,32.17-.04,17.94,14.33,32.35,32.25,32.37,17.87.02,32.23-14.28,32.3-32.17.07-17.92-14.31-32.35-32.24-32.37Z"})),e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m38.4,34c2.9-2.94,5.58-5.67,8.27-8.39.93-.94,2.13-1.38,3.25-.73.8.47,1.7,1.46,1.78,2.29.09.92-.48,2.12-1.14,2.85-2.18,2.38-4.54,4.6-6.83,6.89-.35.35-.68.71-1.07,1.12,2.67,2.68,5.35,5.26,7.88,7.99.67.72,1.28,1.95,1.16,2.84-.12.88-1.05,1.9-1.89,2.37-1.03.57-2.22.16-3.12-.75-2.31-2.33-4.65-4.63-6.96-6.97-.38-.39-.66-.87-1.36-1.8-.71.95-1.11,1.64-1.65,2.19-2.12,2.17-4.27,4.32-6.44,6.44-1.41,1.38-3.16,1.46-4.38.28-1.26-1.22-1.2-3.02.24-4.48,2.27-2.31,4.56-4.58,6.87-6.85.38-.38.88-.64,1.42-1.03-2.89-2.89-5.5-5.47-8.07-8.1-.53-.55-1.05-1.24-1.24-1.96-.35-1.32.14-2.48,1.38-3.16,1.28-.71,2.53-.5,3.56.5,2.32,2.26,4.59,4.55,6.88,6.84.46.46.86.96,1.47,1.64Z"})));case"Download":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"33.64mm",height:"33.64mm",viewBox:"0 0 95.35 95.37"},e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m41.74,51.99c0-1.25,0-1.92,0-2.59,0-14.4,0-28.79,0-43.19,0-3.27,2.24-5.84,5.28-6.17,3.01-.33,5.8,1.65,6.48,4.66.16.71.14,1.48.14,2.22,0,14.15,0,28.29,0,42.44v2.34c.53-.42.91-.67,1.23-.98,3.12-3.11,6.23-6.23,9.35-9.34,2.74-2.72,6.26-2.87,8.75-.4,2.49,2.46,2.39,6.06-.3,8.75-6.79,6.81-13.59,13.61-20.4,20.4-2.92,2.91-6.25,2.92-9.15.03-6.81-6.79-13.61-13.59-20.4-20.4-2.71-2.72-2.84-6.26-.35-8.75,2.48-2.49,6.03-2.36,8.75.34,3.42,3.4,6.82,6.83,10.61,10.64Z"})),e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m47.67,95.37c-13.83,0-27.66,0-41.49,0-3.18,0-5.7-2.16-6.12-5.13-.42-2.98,1.5-5.82,4.51-6.59.65-.17,1.35-.18,2.02-.18,27.41,0,54.83,0,82.24,0,3.8,0,6.48,2.43,6.52,5.88.04,3.53-2.66,6.02-6.56,6.03-13.71,0-27.41,0-41.12,0Z"})));case"ExternalLink":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"88.84mm",height:"79.62mm",viewBox:"0 0 251.84 225.69"},e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m125.89,225.68c-22.84,0-45.67.03-68.51,0C23.18,225.63.03,202.4.01,168.14,0,131.14,0,94.13.01,57.13.04,23.53,23.35.14,56.85.1c23.67-.03,21.34.02,45.01-.03,4.75,0,8.96,1.04,11.87,5.09,2.64,3.67,3.08,7.7,1.25,11.83-2.01,4.53-5.59,7-10.57,7.06-9,.11-12,.07-21,.07-15.84,0-11.67-.05-27.5.02-18.82.08-31.81,12.98-31.84,31.74-.06,38-.06,76.01,0,114.01.03,18.74,13.04,31.7,31.86,31.72,46.67.05,93.34.06,140.01,0,18.79-.02,31.71-12.99,31.79-31.8.07-17,0-14,.03-31.01.02-8.3,4.75-13.75,11.83-13.81,7.07-.06,12.12,5.48,12.16,13.61.07,17.5.18,15.01-.02,32.51-.34,30.71-23.87,54.02-54.81,54.56h-71.01l-.02.02Z"})),e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m207.19,24.08c-6.95,0-23.9.04-30.85,0-8.12-.06-13.27-4.55-13.44-11.6-.17-7.19,5.18-12.33,13.32-12.38,17.33-.11,44.67-.12,62,0,8.48.06,13.45,4.99,13.5,13.37.12,16.83.12,43.67,0,60.5-.06,7.69-5.4,13.04-12.34,12.87-6.83-.17-11.53-5.35-11.61-12.97-.08-7.63-.02-25.26-.02-34.12-2.09,1.8-3.42,2.88-4.68,4.03-26.76,24.57-53.52,49.15-80.28,73.72-1.6,1.47-3.13,3-4.82,4.36-5.57,4.47-12.54,3.94-16.98-1.2-4.31-4.98-4.06-11.78,1.06-16.6,10.92-10.28,22.03-20.36,33.07-30.51,16.56-15.23,33.13-30.45,49.72-45.65.97-.89,2.15-1.56,3.23-2.33-.29-.5-.58-.99-.87-1.49h0Z"})));case"Copy":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"31.19mm",height:"31.21mm",viewBox:"0 0 88.41 88.48"},e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m20.67,54.61c0-7.55,0-15.1,0-22.65,0-6.79,4.38-11.2,11.13-11.21,15.16-.01,30.33-.01,45.49,0,6.75,0,11.12,4.42,11.12,11.22,0,15.1,0,30.2,0,45.3,0,6.79-4.39,11.21-11.13,11.21-15.16,0-30.33,0-45.49,0-6.66,0-11.1-4.41-11.12-11.03-.02-7.61,0-15.22,0-22.83Zm60.78.1c0-7.67,0-15.34,0-23.01,0-2.72-1.23-3.98-3.89-3.99-15.34,0-30.68,0-46.02,0-2.67,0-3.89,1.26-3.89,3.98,0,15.28,0,30.55,0,45.83,0,2.79,1.23,3.99,4.07,3.99,15.22,0,30.44,0,45.65,0,2.91,0,4.08-1.21,4.08-4.17,0-7.55,0-15.09,0-22.64Z"})),e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m13.66,60.85v6.64C6.35,69.22.02,64.29.01,56.9c-.02-15.34-.02-30.69,0-46.03C.02,4.48,4.36.11,10.73.1c15.1-.02,30.21.19,45.3-.1,6.89-.13,12.81,4.89,11.49,13.58h-6.74c0-.95.03-1.91,0-2.86-.08-2.34-1.35-3.69-3.66-3.69-15.53-.02-31.06-.02-46.59,0-2.36,0-3.58,1.27-3.58,3.7-.02,15.4-.02,30.81,0,46.21,0,2.65,1.32,3.87,4.01,3.91.85.01,1.7,0,2.71,0Z"})));default:return e.createElement("span",null,"No icon for ",t,e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"26.97mm",height:"26.97mm",viewBox:"0 0 76.45 76.44"},e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m0,38.1C.02,17.02,17.22-.04,38.4,0c21.08.04,38.1,17.21,38.06,38.43-.04,21-17.21,38.05-38.32,38.02C17.04,76.42-.02,59.27,0,38.1ZM38.26,5.95c-17.86-.02-32.27,14.33-32.31,32.17-.04,17.94,14.33,32.35,32.25,32.37,17.87.02,32.23-14.28,32.3-32.17.07-17.92-14.31-32.35-32.24-32.37Z"})),e.createElement("path",v({},n?{}:{style:{fill:"#1A3061"}},{d:"m34.1,43.95c-.12-.12-.18-.26-.18-.43v-1.62c0-1.68.43-3.04,1.29-4.07.86-1.03,2.1-2.11,3.71-3.26,1.31-.91,2.29-1.72,2.93-2.42s.96-1.57.96-2.58c0-1.08-.4-1.95-1.21-2.6-.81-.66-1.87-.99-3.18-.99-1.42,0-2.55.35-3.41,1.06-.86.71-1.29,1.62-1.29,2.73v.81c0,.37-.2.56-.61.56l-5.91-.25c-.17,0-.31-.06-.43-.18-.12-.12-.18-.26-.18-.43v-.5c0-2.02.51-3.81,1.52-5.38,1.01-1.57,2.42-2.78,4.22-3.64,1.8-.86,3.88-1.29,6.24-1.29s4.3.41,6.04,1.24c1.73.83,3.07,1.98,4.02,3.46.94,1.48,1.41,3.2,1.41,5.15,0,1.48-.26,2.75-.78,3.81-.52,1.06-1.15,1.93-1.89,2.6-.74.67-1.68,1.42-2.83,2.22-1.21.84-2.11,1.57-2.68,2.17s-.86,1.35-.86,2.22v1.16c0,.17-.06.31-.18.43-.12.12-.26.18-.43.18h-5.86c-.17,0-.31-.06-.43-.18Zm.3,10.36c-.76-.76-1.14-1.71-1.14-2.85s.37-2.09,1.11-2.83,1.7-1.11,2.88-1.11,2.13.36,2.85,1.09c.72.72,1.09,1.68,1.09,2.85s-.37,2.1-1.11,2.85c-.74.76-1.68,1.14-2.83,1.14s-2.1-.38-2.85-1.14Z"}))))}};let yr,br,wr,Sr,xr,kr,Cr,Ar=e=>e;const Nr=Mt.button(yr||(yr=Ar`
|
|
2
2
|
background-color: transparent;
|
|
3
3
|
text-align: left;
|
|
4
4
|
border: none;
|
|
@@ -14,12 +14,12 @@ import e,{useRef as t,useContext as r,useLayoutEffect as n,createElement as a,us
|
|
|
14
14
|
:hover {
|
|
15
15
|
text-decoration: underline;
|
|
16
16
|
}
|
|
17
|
-
`),e=>e.$separator?"1px solid #bdbdbd":"0px"),
|
|
17
|
+
`),e=>e.$separator?"1px solid #bdbdbd":"0px"),Er=Mt.a(br||(br=Ar`
|
|
18
18
|
text-decoration: none;
|
|
19
19
|
:hover {
|
|
20
20
|
text-decoration: underline;
|
|
21
21
|
}
|
|
22
|
-
`)),
|
|
22
|
+
`)),Pr=Mt.li(wr||(wr=Ar`
|
|
23
23
|
border-top-right-radius: ${0};
|
|
24
24
|
border-top-left-radius: ${0};
|
|
25
25
|
border-bottom-right-radius: ${0};
|
|
@@ -27,7 +27,7 @@ import e,{useRef as t,useContext as r,useLayoutEffect as n,createElement as a,us
|
|
|
27
27
|
:hover {
|
|
28
28
|
background-color: #f2f2f2;
|
|
29
29
|
}
|
|
30
|
-
`),e=>e.$isFirst?"18px":"0px",e=>e.$isFirst?"18px":"0px",e=>e.$isLast?"18px":"0px",e=>e.$isLast?"18px":"0px")
|
|
30
|
+
`),e=>e.$isFirst?"18px":"0px",e=>e.$isFirst?"18px":"0px",e=>e.$isLast?"18px":"0px",e=>e.$isLast?"18px":"0px"),$r=Mt.div(Sr||(Sr=Ar`
|
|
31
31
|
height: 100%;
|
|
32
32
|
width: 100%;
|
|
33
33
|
display: flex;
|
|
@@ -36,7 +36,7 @@ import e,{useRef as t,useContext as r,useLayoutEffect as n,createElement as a,us
|
|
|
36
36
|
justify-content: left;
|
|
37
37
|
align-items: center;
|
|
38
38
|
justify-items: center;
|
|
39
|
-
`)),
|
|
39
|
+
`)),Tr=Mt.div(xr||(xr=Ar`
|
|
40
40
|
height: 1rem;
|
|
41
41
|
width: 1rem;
|
|
42
42
|
svg {
|
|
@@ -44,10 +44,10 @@ import e,{useRef as t,useContext as r,useLayoutEffect as n,createElement as a,us
|
|
|
44
44
|
width: 1rem;
|
|
45
45
|
fill: #1a3061;
|
|
46
46
|
}
|
|
47
|
-
`)),
|
|
47
|
+
`)),jr=Mt.span(kr||(kr=Ar`
|
|
48
48
|
margin-left: ${0};
|
|
49
49
|
margin-right: ${0};
|
|
50
|
-
`),e=>e.$hasPrefixIcon?"0.5rem":"0px",e=>e.$hasSuffixIcon?"0.5rem":"0px"),
|
|
50
|
+
`),e=>e.$hasPrefixIcon?"0.5rem":"0px",e=>e.$hasSuffixIcon?"0.5rem":"0px"),Mr=Mt.span(Cr||(Cr=Ar`
|
|
51
51
|
clip: rect(0 0 0 0);
|
|
52
52
|
clip-path: inset(50%);
|
|
53
53
|
height: 1px;
|
|
@@ -55,10 +55,10 @@ import e,{useRef as t,useContext as r,useLayoutEffect as n,createElement as a,us
|
|
|
55
55
|
position: absolute;
|
|
56
56
|
white-space: nowrap;
|
|
57
57
|
width: 1px;
|
|
58
|
-
`)),
|
|
58
|
+
`)),Dr=({text:t,onClick:n,url:r,openNewTab:a,isExternal:i,prefixIcon:o,suffixIcon:s,locale:l,bottomSeparator:c=!1,isFirst:u=!1,isLast:m=!1})=>{let d,p;o&&(d="string"==typeof o&&gr.includes(o)?e.createElement(vr,{inheritColor:!0,icon:o}):o),s&&(p="string"==typeof s&&gr.includes(s)?e.createElement(vr,{inheritColor:!0,icon:s}):o);const h=e.createElement($r,null,d&&e.createElement(Tr,null,d),e.createElement(jr,{$hasPrefixIcon:!!o,$hasSuffixIcon:!!s||i},t),s&&e.createElement(Tr,null,p),i&&e.createElement(e.Fragment,null,e.createElement(Mr,null,Lt.externalLink[l]),e.createElement(Tr,null,e.createElement(vr,{inheritColor:!0,icon:"ExternalLink"}))));return n?e.createElement(Pr,{$isFirst:u,$isLast:m},e.createElement(Nr,{$separator:c,onClick:()=>n()},h)):r?e.createElement(Pr,{$isFirst:u,$isLast:m},e.createElement(Er,a?{href:r,target:"_blank"}:{href:r},e.createElement(Nr,{$separator:c},h))):e.createElement(e.Fragment,null)};let zr,Or,Lr,Vr,Ir,Gr=e=>e;const Rr=Mt.div(zr||(zr=Gr`
|
|
59
59
|
width: 2.5rem;
|
|
60
60
|
height: 2.5rem;
|
|
61
|
-
`)),
|
|
61
|
+
`)),Br=Mt.button(Or||(Or=Gr`
|
|
62
62
|
width: 100%;
|
|
63
63
|
height: 100%;
|
|
64
64
|
svg {
|
|
@@ -68,11 +68,11 @@ import e,{useRef as t,useContext as r,useLayoutEffect as n,createElement as a,us
|
|
|
68
68
|
background-color: transparent;
|
|
69
69
|
border: none;
|
|
70
70
|
cursor: pointer;
|
|
71
|
-
`)),
|
|
71
|
+
`)),_r=Mt.div(Lr||(Lr=Gr`
|
|
72
72
|
width: 100%;
|
|
73
73
|
height: 0;
|
|
74
74
|
position: relative;
|
|
75
|
-
`)),
|
|
75
|
+
`)),qr=Mt.div(Vr||(Vr=Gr`
|
|
76
76
|
display: flex;
|
|
77
77
|
flex-flow: column;
|
|
78
78
|
position: absolute;
|
|
@@ -81,11 +81,11 @@ import e,{useRef as t,useContext as r,useLayoutEffect as n,createElement as a,us
|
|
|
81
81
|
top: 0.2rem;
|
|
82
82
|
right: 0.2rem;
|
|
83
83
|
border: 1px solid #bdbdbd;
|
|
84
|
-
`)),
|
|
84
|
+
`)),Fr=Mt.ul(Ir||(Ir=Gr`
|
|
85
85
|
list-style-type: none;
|
|
86
86
|
margin: 0;
|
|
87
87
|
padding: 0;
|
|
88
|
-
`));function
|
|
88
|
+
`));function Hr(e,t){var n,r;const a=600;e=null!=(n=e)?n:a,t=null!=(r=t)?r:a;let i,o,s=Math.max(.5,Math.min(2,e/t));return s<1?(o=Math.max(a,Math.min(3e3,t)),i=o*s,i<a&&(i=a,o=i/s)):(i=Math.max(a,Math.min(3e3,e)),o=i/s,o<a&&(o=a,i=o*s)),{finalWidth:i,finalHeight:o}}const Wr=({viewData:t,currentChartRef:n,tableToggle:r,menuItemDefinitions:a,locale:i,menuIconInheritColor:o=!1})=>{const[s,l]=e.useState(!1),c=e.useRef(null);document.addEventListener("mousedown",e=>{c.current&&s&&!c.current.contains(e.target)&&l(!1)});const u=ur(t,i),m=hr(t,i),d=null==a?void 0:a.map((t,n)=>"onClick"in t?e.createElement(Dr,{isFirst:0===n,bottomSeparator:n+1===a.length,locale:i,prefixIcon:t.prefixIcon,suffixIcon:t.suffixIcon,key:`customfmenuitem-${n}`,text:t.text,onClick:t.onClick}):"url"in t?e.createElement(Dr,{isFirst:0===n,bottomSeparator:n+1===a.length,locale:i,prefixIcon:t.prefixIcon,suffixIcon:t.suffixIcon,isExternal:t.isExternal,key:`customlmenuitem-${n}`,text:`${t.text}`,url:t.url,openNewTab:t.openNewTab}):void 0);return e.createElement(Rr,{ref:c},e.createElement(Br,{"aria-label":`${Lt.chartMenuLabel[i]}`,"aria-expanded":s,onClick:()=>{l(!s)}},e.createElement(vr,{inheritColor:o,icon:s?"Times":"Bars"})),e.createElement(_r,null,s&&e.createElement(qr,null,e.createElement(Fr,null,a&&d,e.createElement(Dr,{isFirst:!a,locale:i,prefixIcon:"Download",text:m.text,onClick:()=>m.onClick()}),e.createElement(Dr,{isLast:!n,bottomSeparator:!!n,locale:i,prefixIcon:"Download",text:u.text,onClick:()=>u.onClick()}),n&&e.createElement(e.Fragment,null,e.createElement(Dr,{locale:i,prefixIcon:"Download",text:Lt.downloadSVG[i],onClick:()=>n.chart.exportChartLocal({filename:`${lr(t.tableReferenceName)}`,type:"image/svg+xml",sourceWidth:Hr(n.chart.chartHeight,n.chart.chartHeight).finalWidth,sourceHeight:Hr(n.chart.chartWidth,n.chart.chartHeight).finalHeight,scale:1},{})}),e.createElement(Dr,{isLast:!r,bottomSeparator:!!r,locale:i,prefixIcon:"Download",text:Lt.downloadPNG[i],onClick:()=>n.chart.exportChartLocal({filename:`${lr(t.tableReferenceName)}`,sourceWidth:Hr(n.chart.chartWidth,n.chart.chartHeight).finalWidth,sourceHeight:Hr(n.chart.chartWidth,n.chart.chartHeight).finalHeight,scale:1},{})})),r&&e.createElement(Dr,{isLast:!0,locale:i,text:r.tableMode?Lt.toggleTableModeOffText[i]:Lt.toggleTableModeOnText[i],onClick:()=>r.toggleHandler()})))))},Yr=({view:t,locale:n,footnote:r,showTitles:a=!0,showUnits:o=!0,showSources:s=!0})=>{const l=i(()=>g(),[t,n]);return e.useEffect(()=>{var e;null==(e=document.getElementById(l))||e.replaceChildren(),tr(t,n,a,o,s,l,r)},[t,n,a,o,s,r]),e.createElement("div",{className:"tableChart",id:l})};let Ur;const Zr=function(a){for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];var l=ut.apply(void 0,[a].concat(o)),c="sc-global-"+yt(JSON.stringify(l)),u=new Pt(l,c);function m(a){var i=Qe(),o=et(),s=n(Ct),m=t(i.allocateGSInstance(c)).current;return"production"!==process.env.NODE_ENV&&e.Children.count(a.children)&&console.warn("The global style component "+c+" was given child JSX. createGlobalStyle does not render children."),"production"!==process.env.NODE_ENV&&l.some(function(e){return"string"==typeof e&&-1!==e.indexOf("@import")})&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),i.server&&d(m,a,i,s,o),r(function(){if(!i.server)return d(m,a,i,s,o),function(){return u.removeStyles(m,i)}},[m,a,i,s,o]),null}function d(e,t,n,r,a){if(u.isStatic)u.renderStyles(e,ve,n,a);else{var i=oe({},t,{theme:ht(t,r,m.defaultProps)});u.renderStyles(e,i,n,a)}}return"production"!==process.env.NODE_ENV&&pt(c),e.memo(m)}(Ur||(Ur=(e=>e)`
|
|
89
89
|
/* @font-face {
|
|
90
90
|
font-family: 'Barlow Semi Condensed';
|
|
91
91
|
font-style: normal;
|
|
@@ -145,21 +145,21 @@ import e,{useRef as t,useContext as r,useLayoutEffect as n,createElement as a,us
|
|
|
145
145
|
width: 90%;
|
|
146
146
|
display: block;
|
|
147
147
|
}
|
|
148
|
-
`));let
|
|
148
|
+
`));let Xr;const Kr=Mt.div(Xr||(Xr=(e=>e)`
|
|
149
149
|
width: 100%;
|
|
150
150
|
position: relative;
|
|
151
151
|
font-family: 'Barlow Semi Condensed';
|
|
152
|
-
`)),
|
|
152
|
+
`)),Jr=({locale:t})=>e.createElement(Kr,null,e.createElement("h1",null,Lt.graphCreationError[t]));class Qr extends o{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error(e,t.componentStack)}render(){return this.state.hasError?this.props.fallback:this.props.children}}let ea,ta,na,ra,aa=e=>e;const ia=e=>{"object"==typeof c&&(c.wrap(c.SVGRenderer.prototype,"init",function(e){e.apply(this,Array.prototype.slice.call(arguments,1)),this.box.children[0]&&/Created with Highcharts/.test(this.box.children[0].innerHTML)&&this.box.children[0].remove()}),u(c),m(c),d(c),p(c),c.setOptions(cn(e)))},oa=Mt.div(ea||(ea=aa`
|
|
153
153
|
width: 100%;
|
|
154
154
|
position: relative;
|
|
155
|
-
`)),
|
|
155
|
+
`)),sa=Mt.div(ta||(ta=aa`
|
|
156
156
|
position: absolute;
|
|
157
157
|
top: 0;
|
|
158
158
|
right: 0;
|
|
159
159
|
z-index: 1;
|
|
160
|
-
`)),
|
|
160
|
+
`)),la=Mt.div(na||(na=aa`
|
|
161
161
|
display: ${0};
|
|
162
|
-
`),e=>e.$tableMode?"none":"block")
|
|
162
|
+
`),e=>e.$tableMode?"none":"block"),ca=Mt.div(ra||(ra=aa`
|
|
163
163
|
display: ${0};
|
|
164
|
-
`),e=>e.$tableMode?"block":"none"),
|
|
164
|
+
`),e=>e.$tableMode?"block":"none"),ua=({pxGraphData:t,footnote:n,locale:r,menuItemDefinitions:a,selectedVariableCodes:o=null,showContextMenu:s=!0,menuIconInheritColor:l=!1,showTableTitles:u,showTableUnits:m,showTableSources:d})=>{const p=Ht(r);ia(p);const h=e.useRef(null),[g,v]=e.useState(h.current),[y,b]=e.useState(!1),[w,S]=e.useState(0),x=i(()=>{try{return Tn(t.selectableVariableCodes,t.metaData,t.visualizationSettings.defaultSelectableVariableCodes,o)}catch(e){return console.error(e),{}}},[o,t]),k=i(()=>{try{return In(t,x)}catch(e){return console.error(e),null}},[x,t]);let C;function A(){w!==window.innerWidth&&S(window.innerWidth)}window&&window.addEventListener("resize",function(){clearTimeout(C),C=setTimeout(A,100)});const N=()=>{b(!y)};e.useEffect(()=>{h.current&&v(h.current)},[h.current]);try{if(k&&t.visualizationSettings.visualizationType!==$t.Table){const r=$n(p,k);return e.createElement(oa,null,s&&e.createElement(sa,null,e.createElement(Wr,{menuItemDefinitions:a,viewData:k,currentChartRef:g,locale:p,tableToggle:{tableMode:y,toggleHandler:N},menuIconInheritColor:l})),e.createElement(la,{$tableMode:y},e.createElement(f,{ref:h,immutable:!0,highcharts:c,options:r,callback:e=>{(e=>{if((t.visualizationSettings.visualizationType===$t.GroupHorizontalBarChart||t.visualizationSettings.visualizationType===$t.GroupVerticalBarChart||t.visualizationSettings.visualizationType===$t.HorizontalBarChart||t.visualizationSettings.visualizationType===$t.VerticalBarChart||t.visualizationSettings.visualizationType===$t.PercentVerticalBarChart||t.visualizationSettings.visualizationType===$t.PercentHorizontalBarChart)&&t.visualizationSettings.showDataPoints){let t=!1;e.series.map(e=>e.data.forEach(function(e){e.dataLabel&&e.dataLabel.alignOptions.inside&&(e.update({updateNeeded:!0}),t=!0)})),t&&e.redraw()}})(e)}})),e.createElement(ca,{$tableMode:y},e.createElement(Yr,{showTitles:null==u||u,footnote:n,showUnits:!!m,showSources:!!d,view:k,locale:p})))}if(k&&t.visualizationSettings.visualizationType===$t.Table)return e.createElement(oa,null,s&&e.createElement(sa,null,e.createElement(Wr,{menuItemDefinitions:a,viewData:k,locale:p,menuIconInheritColor:l})),e.createElement(Yr,{showTitles:null!=u&&u,footnote:n,showUnits:!!m,showSources:!!d,view:k,locale:p}))}catch(t){return console.error(t),e.createElement(Jr,{locale:p})}return e.createElement(Jr,{locale:p})},ma=t=>{const n=Ht(t.locale);return e.createElement(Qr,{fallback:e.createElement(Jr,{locale:n})},e.createElement(Zr,null),e.createElement(ua,v({},t)))};export{Gt as AddTranslations,ma as Chart,jt as ETimeVariableInterval,Tt as EVariableType,$t as EVisualizationType,In as convertPxGrafResponseToView,$n as convertPxGraphDataToChartOptions,cn as defaultTheme,Kn as drawChart,Tn as extractSelectableVariableValues,cr as generateCsv,dr as generateExcel,tr as renderHtmlTable,ur as viewToDownloadCSVOption,hr as viewToDownloadXLSOption};
|
|
165
165
|
//# sourceMappingURL=pxv.modern.js.map
|